From 9f8b32da04b4d228756d93dc93b9f16869e4f105 Mon Sep 17 00:00:00 2001 From: valerio Date: Sat, 14 Mar 2026 15:42:39 +0100 Subject: [PATCH 1/2] FIX: Gitea support release asset upload --- dist/index.js | 50 ++++++++++++++-------------- src/upload-release-assets.ts | 64 ++++++++++++++++++++++++++---------- 2 files changed, 72 insertions(+), 42 deletions(-) diff --git a/dist/index.js b/dist/index.js index eafcd36de..63b1d05d7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webpack_modules__={77708:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(){var ownKeys=function(r){ownKeys=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n};return ownKeys(r)};return function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s=ownKeys(r),u=0;ud(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);this.message.on("data",(r=>{n=Buffer.concat([n,r])}));this.message.on("end",(()=>{r(n.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((r=>d(this,void 0,void 0,(function*(){const n=[];this.message.on("data",(r=>{n.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(n))}))}))))}))}}n.HttpClientResponse=HttpClientResponse;function isHttps(r){const n=new URL(r);return n.protocol==="https:"}class HttpClient{constructor(r,n,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(r);this.handlers=n||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,n){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,n||{})}))}get(r,n){return d(this,void 0,void 0,(function*(){return this.request("GET",r,null,n||{})}))}del(r,n){return d(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,n||{})}))}post(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("POST",r,n,s||{})}))}patch(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("PATCH",r,n,s||{})}))}put(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("PUT",r,n,s||{})}))}head(r,n){return d(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,n||{})}))}sendStream(r,n,s,a){return d(this,void 0,void 0,(function*(){return this.request(r,n,s,a)}))}getJson(r){return d(this,arguments,void 0,(function*(r,n={}){n[C.Accept]=this._getExistingOrDefaultHeader(n,C.Accept,w.ApplicationJson);const s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)}))}postJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,n,s,a){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(n);let u=this._prepareRequest(r,l,a);const d=this._allowRetries&&S.includes(r)?this._maxRetries+1:1;let A=0;let p;do{p=yield this.requestRaw(u,s);if(p&&p.message&&p.message.statusCode===b.Unauthorized){let r;for(const n of this.handlers){if(n.canHandleAuthentication(p)){r=n;break}}if(r){return r.handleAuthentication(this,u,s)}else{return p}}let n=this._maxRedirects;while(p.message.statusCode&&B.includes(p.message.statusCode)&&this._allowRedirects&&n>0){const d=p.message.headers["location"];if(!d){break}const A=new URL(d);if(l.protocol==="https:"&&l.protocol!==A.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(A.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}u=this._prepareRequest(r,A,a);p=yield this.requestRaw(u,s);n--}if(!p.message.statusCode||!I.includes(p.message.statusCode)){return p}A+=1;if(A{function callbackForResult(r,n){if(r){a(r)}else if(!n){a(new Error("Unknown error"))}else{s(n)}}this.requestRawWithCallback(r,n,callbackForResult)}))}))}requestRawWithCallback(r,n,s){if(typeof n==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(r,n){if(!a){a=true;s(r,n)}}const l=r.httpModule.request(r.options,(r=>{const n=new HttpClientResponse(r);handleResult(undefined,n)}));let u;l.on("socket",(r=>{u=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(n&&typeof n==="string"){l.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",(function(){l.end()}));n.pipe(l)}else{l.end()}}getAgent(r){const n=new URL(r);return this._getAgent(n)}getAgentDispatcher(r){const n=new URL(r);const s=f.getProxyUrl(n);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,s)}_prepareRequest(r,n,s){const a={};a.parsedUrl=n;const l=a.parsedUrl.protocol==="https:";a.httpModule=l?p:A;const u=l?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):u;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,n,s){let a;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[n];if(r){a=typeof r==="number"?r.toString():r}}const l=r[n];if(l!==undefined){return typeof l==="number"?l.toString():l}if(a!==undefined){return a}return s}_getExistingOrDefaultContentTypeHeader(r,n){let s;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[C.ContentType];if(r){if(typeof r==="number"){s=String(r)}else if(Array.isArray(r)){s=r.join(", ")}else{s=r}}}const a=r[C.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(s!==undefined){return s}return n}_getAgent(r){let n;const s=f.getProxyUrl(r);const a=s&&s.hostname;if(this._keepAlive&&a){n=this._proxyAgent}if(!a){n=this._agent}if(n){return n}const l=r.protocol==="https:";let u=100;if(this.requestOptions){u=this.requestOptions.maxSockets||A.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:u,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const d=s.protocol==="https:";if(l){a=d?g.httpsOverHttps:g.httpsOverHttp}else{a=d?g.httpOverHttps:g.httpOverHttp}n=a(r);this._proxyAgent=n}if(!n){const r={keepAlive:this._keepAlive,maxSockets:u};n=l?new p.Agent(r):new A.Agent(r);this._agent=n}if(l&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(r,n){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new y.ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_getUserAgentWithOrchestrationId(r){const n=r||"actions/http-client";const s=process.env["ACTIONS_ORCHESTRATION_ID"];if(s){const r=s.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${r}`}return n}_performExponentialBackoff(r){return d(this,void 0,void 0,(function*(){r=Math.min(Q,r);const n=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),n)))}))}_processResponse(r,n){return d(this,void 0,void 0,(function*(){return new Promise(((s,a)=>d(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const u={statusCode:l,result:null,headers:{}};if(l===b.NotFound){s(u)}function dateTimeDeserializer(r,n){if(typeof n==="string"){const r=new Date(n);if(!isNaN(r.valueOf())){return r}}return n}let d;let A;try{A=yield r.readBody();if(A&&A.length>0){if(n&&n.deserializeDates){d=JSON.parse(A,dateTimeDeserializer)}else{d=JSON.parse(A)}u.result=d}u.headers=r.message.headers}catch(r){}if(l>299){let r;if(d&&d.message){r=d.message}else if(A&&A.length>0){r=A}else{r=`Failed request: (${l})`}const n=new HttpClientError(r,l);n.result=u.result;a(n)}else{s(u)}}))))}))}}n.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((n,s)=>(n[s.toLowerCase()]=r[s],n)),{})},48188:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getProxyUrl=getProxyUrl;n.checkBypass=checkBypass;function getProxyUrl(r){const n=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}function checkBypass(r){if(!r.hostname){return false}const n=r.hostname;if(isLoopbackAddress(n)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((n=>n===r||n.endsWith(`.${r}`)||r.startsWith(".")&&n.endsWith(`${r}`)))){return true}}return false}function isLoopbackAddress(r){const n=r.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(r,n){super(r,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},63250:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);n.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};function createFileSystemAdapter(r){if(r===undefined){return n.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=createFileSystemAdapter},64541:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const s=process.versions.node.split(".");if(s[0]===undefined||s[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const a=Number.parseInt(s[0],10);const l=Number.parseInt(s[1],10);const u=10;const d=10;const A=a>u;const p=a===u&&l>=d;n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=A||p},9096:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Settings=n.scandirSync=n.scandir=void 0;const a=s(69389);const l=s(72574);const u=s(62695);n.Settings=u.default;function scandir(r,n,s){if(typeof n==="function"){a.read(r,getSettings(),n);return}a.read(r,getSettings(n),s)}n.scandir=scandir;function scandirSync(r,n){const s=getSettings(n);return l.read(r,s)}n.scandirSync=scandirSync;function getSettings(r={}){if(r instanceof u.default){return r}return new u.default(r)}},69389:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readdir=n.readdirWithFileTypes=n.read=void 0;const a=s(61113);const l=s(67710);const u=s(64541);const d=s(85418);const A=s(77404);function read(r,n,s){if(!n.stats&&u.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(r,n,s);return}readdir(r,n,s)}n.read=read;function readdirWithFileTypes(r,n,s){n.fs.readdir(r,{withFileTypes:true},((a,u)=>{if(a!==null){callFailureCallback(s,a);return}const d=u.map((s=>({dirent:s,name:s.name,path:A.joinPathSegments(r,s.name,n.pathSegmentSeparator)})));if(!n.followSymbolicLinks){callSuccessCallback(s,d);return}const p=d.map((r=>makeRplTaskEntry(r,n)));l(p,((r,n)=>{if(r!==null){callFailureCallback(s,r);return}callSuccessCallback(s,n)}))}))}n.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(r,n){return s=>{if(!r.dirent.isSymbolicLink()){s(null,r);return}n.fs.stat(r.path,((a,l)=>{if(a!==null){if(n.throwErrorOnBrokenSymbolicLink){s(a);return}s(null,r);return}r.dirent=d.fs.createDirentFromStats(r.name,l);s(null,r)}))}}function readdir(r,n,s){n.fs.readdir(r,((u,p)=>{if(u!==null){callFailureCallback(s,u);return}const f=p.map((s=>{const l=A.joinPathSegments(r,s,n.pathSegmentSeparator);return r=>{a.stat(l,n.fsStatSettings,((a,u)=>{if(a!==null){r(a);return}const A={name:s,path:l,dirent:d.fs.createDirentFromStats(s,u)};if(n.stats){A.stats=u}r(null,A)}))}}));l(f,((r,n)=>{if(r!==null){callFailureCallback(s,r);return}callSuccessCallback(s,n)}))}))}n.readdir=readdir;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},77404:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.joinPathSegments=void 0;function joinPathSegments(r,n,s){if(r.endsWith(s)){return r+n}return r+s+n}n.joinPathSegments=joinPathSegments},72574:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readdir=n.readdirWithFileTypes=n.read=void 0;const a=s(61113);const l=s(64541);const u=s(85418);const d=s(77404);function read(r,n){if(!n.stats&&l.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(r,n)}return readdir(r,n)}n.read=read;function readdirWithFileTypes(r,n){const s=n.fs.readdirSync(r,{withFileTypes:true});return s.map((s=>{const a={dirent:s,name:s.name,path:d.joinPathSegments(r,s.name,n.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&n.followSymbolicLinks){try{const r=n.fs.statSync(a.path);a.dirent=u.fs.createDirentFromStats(a.name,r)}catch(r){if(n.throwErrorOnBrokenSymbolicLink){throw r}}}return a}))}n.readdirWithFileTypes=readdirWithFileTypes;function readdir(r,n){const s=n.fs.readdirSync(r);return s.map((s=>{const l=d.joinPathSegments(r,s,n.pathSegmentSeparator);const A=a.statSync(l,n.fsStatSettings);const p={name:s,path:l,dirent:u.fs.createDirentFromStats(s,A)};if(n.stats){p.stats=A}return p}))}n.readdir=readdir},62695:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(61113);const u=s(63250);class Settings{constructor(r={}){this._options=r;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=u.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new l.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},79531:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.createDirentFromStats=void 0;class DirentFromStats{constructor(r,n){this.name=r;this.isBlockDevice=n.isBlockDevice.bind(n);this.isCharacterDevice=n.isCharacterDevice.bind(n);this.isDirectory=n.isDirectory.bind(n);this.isFIFO=n.isFIFO.bind(n);this.isFile=n.isFile.bind(n);this.isSocket=n.isSocket.bind(n);this.isSymbolicLink=n.isSymbolicLink.bind(n)}}function createDirentFromStats(r,n){return new DirentFromStats(r,n)}n.createDirentFromStats=createDirentFromStats},85418:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.fs=void 0;const a=s(79531);n.fs=a},84491:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);n.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync};function createFileSystemAdapter(r){if(r===undefined){return n.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=createFileSystemAdapter},61113:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.statSync=n.stat=n.Settings=void 0;const a=s(10224);const l=s(46385);const u=s(60052);n.Settings=u.default;function stat(r,n,s){if(typeof n==="function"){a.read(r,getSettings(),n);return}a.read(r,getSettings(n),s)}n.stat=stat;function statSync(r,n){const s=getSettings(n);return l.read(r,s)}n.statSync=statSync;function getSettings(r={}){if(r instanceof u.default){return r}return new u.default(r)}},10224:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.read=void 0;function read(r,n,s){n.fs.lstat(r,((a,l)=>{if(a!==null){callFailureCallback(s,a);return}if(!l.isSymbolicLink()||!n.followSymbolicLink){callSuccessCallback(s,l);return}n.fs.stat(r,((r,a)=>{if(r!==null){if(n.throwErrorOnBrokenSymbolicLink){callFailureCallback(s,r);return}callSuccessCallback(s,l);return}if(n.markSymbolicLink){a.isSymbolicLink=()=>true}callSuccessCallback(s,a)}))}))}n.read=read;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},46385:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.read=void 0;function read(r,n){const s=n.fs.lstatSync(r);if(!s.isSymbolicLink()||!n.followSymbolicLink){return s}try{const s=n.fs.statSync(r);if(n.markSymbolicLink){s.isSymbolicLink=()=>true}return s}catch(r){if(!n.throwErrorOnBrokenSymbolicLink){return s}throw r}}n.read=read},60052:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(84491);class Settings{constructor(r={}){this._options=r;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=a.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},77669:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Settings=n.walkStream=n.walkSync=n.walk=void 0;const a=s(20228);const l=s(41254);const u=s(67885);const d=s(40328);n.Settings=d.default;function walk(r,n,s){if(typeof n==="function"){new a.default(r,getSettings()).read(n);return}new a.default(r,getSettings(n)).read(s)}n.walk=walk;function walkSync(r,n){const s=getSettings(n);const a=new u.default(r,s);return a.read()}n.walkSync=walkSync;function walkStream(r,n){const s=getSettings(n);const a=new l.default(r,s);return a.read()}n.walkStream=walkStream;function getSettings(r={}){if(r instanceof d.default){return r}return new d.default(r)}},20228:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(60750);class AsyncProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new a.default(this._root,this._settings);this._storage=[]}read(r){this._reader.onError((n=>{callFailureCallback(r,n)}));this._reader.onEntry((r=>{this._storage.push(r)}));this._reader.onEnd((()=>{callSuccessCallback(r,this._storage)}));this._reader.read()}}n["default"]=AsyncProvider;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},41254:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(60750);class StreamProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new l.default(this._root,this._settings);this._stream=new a.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((r=>{this._stream.emit("error",r)}));this._reader.onEntry((r=>{this._stream.push(r)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}n["default"]=StreamProvider},67885:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(75835);class SyncProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new a.default(this._root,this._settings)}read(){return this._reader.read()}}n["default"]=SyncProvider},60750:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(24434);const l=s(9096);const u=s(65033);const d=s(43285);const A=s(3747);class AsyncReader extends A.default{constructor(r,n){super(r,n);this._settings=n;this._scandir=l.scandir;this._emitter=new a.EventEmitter;this._queue=u(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,n){const s={directory:r,base:n};this._queue.push(s,(r=>{if(r!==null){this._handleError(r)}}))}_worker(r,n){this._scandir(r.directory,this._settings.fsScandirSettings,((s,a)=>{if(s!==null){n(s,undefined);return}for(const n of a){this._handleEntry(n,r.base)}n(null,undefined)}))}_handleError(r){if(this._isDestroyed||!d.isFatalError(this._settings,r)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",r)}_handleEntry(r,n){if(this._isDestroyed||this._isFatalError){return}const s=r.path;if(n!==undefined){r.path=d.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)}if(d.isAppliedFilter(this._settings.entryFilter,r)){this._emitEntry(r)}if(r.dirent.isDirectory()&&d.isAppliedFilter(this._settings.deepFilter,r)){this._pushToQueue(s,n===undefined?undefined:r.path)}}_emitEntry(r){this._emitter.emit("entry",r)}}n["default"]=AsyncReader},43285:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.joinPathSegments=n.replacePathSegmentSeparator=n.isAppliedFilter=n.isFatalError=void 0;function isFatalError(r,n){if(r.errorFilter===null){return true}return!r.errorFilter(n)}n.isFatalError=isFatalError;function isAppliedFilter(r,n){return r===null||r(n)}n.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(r,n){return r.split(/[/\\]/).join(n)}n.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(r,n,s){if(r===""){return n}if(r.endsWith(s)){return r+n}return r+s+n}n.joinPathSegments=joinPathSegments},3747:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(43285);class Reader{constructor(r,n){this._root=r;this._settings=n;this._root=a.replacePathSegmentSeparator(r,n.pathSegmentSeparator)}}n["default"]=Reader},75835:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(9096);const l=s(43285);const u=s(3747);class SyncReader extends u.default{constructor(){super(...arguments);this._scandir=a.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(r,n){this._queue.add({directory:r,base:n})}_handleQueue(){for(const r of this._queue.values()){this._handleDirectory(r.directory,r.base)}}_handleDirectory(r,n){try{const s=this._scandir(r,this._settings.fsScandirSettings);for(const r of s){this._handleEntry(r,n)}}catch(r){this._handleError(r)}}_handleError(r){if(!l.isFatalError(this._settings,r)){return}throw r}_handleEntry(r,n){const s=r.path;if(n!==undefined){r.path=l.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)}if(l.isAppliedFilter(this._settings.entryFilter,r)){this._pushToStorage(r)}if(r.dirent.isDirectory()&&l.isAppliedFilter(this._settings.deepFilter,r)){this._pushToQueue(s,n===undefined?undefined:r.path)}}_pushToStorage(r){this._storage.push(r)}}n["default"]=SyncReader},40328:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(9096);class Settings{constructor(r={}){this._options=r;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep);this.fsScandirSettings=new l.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},69113:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.requests=s;this.headers=a;this.response=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:n,status:s,trailers:a}}))}}n.ClientStreamingCall=ClientStreamingCall},87961:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.Deferred=n.DeferredState=void 0;var s;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(s=n.DeferredState||(n.DeferredState={}));class Deferred{constructor(r=true){this._state=s.PENDING;this._promise=new Promise(((r,n)=>{this._resolve=r;this._reject=n}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==s.PENDING)throw new Error(`cannot resolve ${s[this.state].toLowerCase()}`);this._resolve(r);this._state=s.RESOLVED}reject(r){if(this.state!==s.PENDING)throw new Error(`cannot reject ${s[this.state].toLowerCase()}`);this._reject(r);this._state=s.REJECTED}resolvePending(r){if(this._state===s.PENDING)this.resolve(r)}rejectPending(r){if(this._state===s.PENDING)this.reject(r)}}n.Deferred=Deferred},17090:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.requests=s;this.headers=a;this.responses=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:n,trailers:s}}))}}n.DuplexStreamingCall=DuplexStreamingCall},95980:(r,n,s)=>{var a;a={value:true};var l=s(31636);Object.defineProperty(n,"C0",{enumerable:true,get:function(){return l.ServiceType}});var u=s(19768);a={enumerable:true,get:function(){return u.readMethodOptions}};a={enumerable:true,get:function(){return u.readMethodOption}};a={enumerable:true,get:function(){return u.readServiceOption}};var d=s(15908);a={enumerable:true,get:function(){return d.RpcError}};var A=s(91816);a={enumerable:true,get:function(){return A.mergeRpcOptions}};var p=s(27374);a={enumerable:true,get:function(){return p.RpcOutputStreamController}};var f=s(28330);a={enumerable:true,get:function(){return f.TestTransport}};var g=s(87961);a={enumerable:true,get:function(){return g.Deferred}};a={enumerable:true,get:function(){return g.DeferredState}};var y=s(17090);a={enumerable:true,get:function(){return y.DuplexStreamingCall}};var b=s(69113);a={enumerable:true,get:function(){return b.ClientStreamingCall}};var C=s(12069);a={enumerable:true,get:function(){return C.ServerStreamingCall}};var w=s(90368);a={enumerable:true,get:function(){return w.UnaryCall}};var B=s(86473);a={enumerable:true,get:function(){return B.stackIntercept}};a={enumerable:true,get:function(){return B.stackDuplexStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackClientStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackServerStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackUnaryInterceptors}};var I=s(27072);a={enumerable:true,get:function(){return I.ServerCallContextController}}},19768:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readServiceOption=n.readMethodOption=n.readMethodOptions=n.normalizeMethodInfo=void 0;const a=s(68140);function normalizeMethodInfo(r,n){var s,l,u;let d=r;d.service=n;d.localName=(s=d.localName)!==null&&s!==void 0?s:a.lowerCamelCase(d.name);d.serverStreaming=!!d.serverStreaming;d.clientStreaming=!!d.clientStreaming;d.options=(l=d.options)!==null&&l!==void 0?l:{};d.idempotency=(u=d.idempotency)!==null&&u!==void 0?u:undefined;return d}n.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,n,s,a){var l;const u=(l=r.methods.find(((r,s)=>r.localName===n||s===n)))===null||l===void 0?void 0:l.options;return u&&u[s]?a.fromJson(u[s]):undefined}n.readMethodOptions=readMethodOptions;function readMethodOption(r,n,s,a){var l;const u=(l=r.methods.find(((r,s)=>r.localName===n||s===n)))===null||l===void 0?void 0:l.options;if(!u){return undefined}const d=u[s];if(d===undefined){return d}return a?a.fromJson(d):d}n.readMethodOption=readMethodOption;function readServiceOption(r,n,s){const a=r.options;if(!a){return undefined}const l=a[n];if(l===undefined){return l}return s?s.fromJson(l):l}n.readServiceOption=readServiceOption},15908:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.RpcError=void 0;class RpcError extends Error{constructor(r,n="UNKNOWN",s){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=n;this.meta=s!==null&&s!==void 0?s:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let n=Object.entries(this.meta);if(n.length){r.push("");r.push("Meta:");for(let[s,a]of n){r.push(` ${s}: ${a}`)}}return r.join("\n")}}n.RpcError=RpcError},86473:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.stackDuplexStreamingInterceptors=n.stackClientStreamingInterceptors=n.stackServerStreamingInterceptors=n.stackUnaryInterceptors=n.stackIntercept=void 0;const a=s(68140);function stackIntercept(r,n,s,l,u){var d,A,p,f;if(r=="unary"){let tail=(r,s,a)=>n.unary(r,s,a);for(const r of((d=l.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptUnary)).reverse()){const n=tail;tail=(s,a,l)=>r.interceptUnary(n,s,a,l)}return tail(s,u,l)}if(r=="serverStreaming"){let tail=(r,s,a)=>n.serverStreaming(r,s,a);for(const r of((A=l.interceptors)!==null&&A!==void 0?A:[]).filter((r=>r.interceptServerStreaming)).reverse()){const n=tail;tail=(s,a,l)=>r.interceptServerStreaming(n,s,a,l)}return tail(s,u,l)}if(r=="clientStreaming"){let tail=(r,s)=>n.clientStreaming(r,s);for(const r of((p=l.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptClientStreaming)).reverse()){const n=tail;tail=(s,a)=>r.interceptClientStreaming(n,s,a)}return tail(s,l)}if(r=="duplex"){let tail=(r,s)=>n.duplex(r,s);for(const r of((f=l.interceptors)!==null&&f!==void 0?f:[]).filter((r=>r.interceptDuplex)).reverse()){const n=tail;tail=(s,a)=>r.interceptDuplex(n,s,a)}return tail(s,l)}a.assertNever(r)}n.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,n,s,a){return stackIntercept("unary",r,n,a,s)}n.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,n,s,a){return stackIntercept("serverStreaming",r,n,a,s)}n.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,n,s){return stackIntercept("clientStreaming",r,n,s)}n.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,n,s){return stackIntercept("duplex",r,n,s)}n.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},91816:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.mergeRpcOptions=void 0;const a=s(68140);function mergeRpcOptions(r,n){if(!n)return r;let s={};copy(r,s);copy(n,s);for(let l of Object.keys(n)){let u=n[l];switch(l){case"jsonOptions":s.jsonOptions=a.mergeJsonOptions(r.jsonOptions,s.jsonOptions);break;case"binaryOptions":s.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,s.binaryOptions);break;case"meta":s.meta={};copy(r.meta,s.meta);copy(n.meta,s.meta);break;case"interceptors":s.interceptors=r.interceptors?r.interceptors.concat(u):u.concat();break}}return s}n.mergeRpcOptions=mergeRpcOptions;function copy(r,n){if(!r)return;let s=n;for(let[n,a]of Object.entries(r)){if(a instanceof Date)s[n]=new Date(a.getTime());else if(Array.isArray(a))s[n]=a.concat();else s[n]=a}}},27374:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.RpcOutputStreamController=void 0;const a=s(87961);const l=s(68140);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,n){n.push(r);return()=>{let s=n.indexOf(r);if(s>=0)n.splice(s,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,n,s){l.assert((r?1:0)+(n?1:0)+(s?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(n)this.notifyError(n);if(s)this.notifyComplete()}notifyMessage(r){l.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((n=>n(r)));this._lis.nxt.forEach((n=>n(r,undefined,false)))}notifyError(r){l.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((n=>n(r)));this._lis.nxt.forEach((n=>n(undefined,r,false)));this.clearLis()}notifyComplete(){l.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;l.assert(r,"bad state");l.assert(!r.p,"iterator contract broken");let n=r.q.shift();if(n)return"value"in n?Promise.resolve(n):Promise.reject(n);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let n=this._itState;if(n.p){const s=n.p;l.assert(s.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?s.resolve(r):s.reject(r);delete n.p}else{n.q.push(r)}}}n.RpcOutputStreamController=RpcOutputStreamController},27072:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,n,s,a,l={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=n;this.deadline=s;this.trailers={};this._sendRH=a;this.status=l}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const n=this._listeners;n.push(r);return()=>{let s=n.indexOf(r);if(s>=0)n.splice(s,1)}}}n.ServerCallContextController=ServerCallContextController},12069:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.request=s;this.headers=a;this.responses=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:n,trailers:s}}))}}n.ServerStreamingCall=ServerStreamingCall},31636:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ServiceType=void 0;const a=s(19768);class ServiceType{constructor(r,n,s){this.typeName=r;this.methods=n.map((r=>a.normalizeMethodInfo(r,this)));this.options=s!==null&&s!==void 0?s:{}}}n.ServiceType=ServiceType},28330:function(r,n,s){var a=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.TestTransport=void 0;const l=s(15908);const u=s(68140);const d=s(27374);const A=s(91816);const p=s(90368);const f=s(12069);const g=s(69113);const y=s(17090);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const n=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}promiseSingleResponse(r){if(this.data.response instanceof l.RpcError){return Promise.reject(this.data.response)}let n;if(Array.isArray(this.data.response)){u.assert(this.data.response.length>0);n=this.data.response[0]}else if(this.data.response!==undefined){n=this.data.response}else{n=r.O.create()}u.assert(r.O.is(n));return Promise.resolve(n)}streamResponses(r,n,s){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let n of this.data.response){u.assert(r.O.is(n));a.push(n)}}else if(!(this.data.response instanceof l.RpcError)){u.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,s)(undefined)}catch(r){n.notifyError(r);return}if(this.data.response instanceof l.RpcError){n.notifyError(this.data.response);return}for(let r of a){n.notifyMessage(r);try{yield delay(this.betweenResponseDelay,s)(undefined)}catch(r){n.notifyError(r);return}}if(this.data.status instanceof l.RpcError){n.notifyError(this.data.status);return}if(this.data.trailers instanceof l.RpcError){n.notifyError(this.data.trailers);return}n.notifyComplete()}))}promiseStatus(){var r;const n=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}promiseTrailers(){var r;const n=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let n of r){n.catch((()=>{}))}}}mergeOptions(r){return A.mergeRpcOptions({},r)}unary(r,n,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},u=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),d=u.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((n=>this.promiseSingleResponse(r))),A=d.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),f=d.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(A,f);this.lastInput={single:n};return new p.UnaryCall(r,l,n,u,d,A,f)}serverStreaming(r,n,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},u=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),A=new d.RpcOutputStreamController,p=u.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,A,s.abort))).then(delay(this.afterResponseDelay,s.abort)),g=p.then((()=>this.promiseStatus())),y=p.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(g,y);this.lastInput={single:n};return new f.ServerStreamingCall(r,l,n,u,A,g,y)}clientStreaming(r,n){var s;const a=(s=n.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),u=l.catch((r=>{})).then(delay(this.responseDelay,n.abort)).then((n=>this.promiseSingleResponse(r))),d=u.catch((r=>{})).then(delay(this.afterResponseDelay,n.abort)).then((r=>this.promiseStatus())),A=u.catch((r=>{})).then(delay(this.afterResponseDelay,n.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,A);this.lastInput=new TestInputStream(this.data,n.abort);return new g.ClientStreamingCall(r,a,this.lastInput,l,u,d,A)}duplex(r,n){var s;const a=(s=n.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),u=new d.RpcOutputStreamController,A=l.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(r,u,n.abort))).then(delay(this.afterResponseDelay,n.abort)),p=A.then((()=>this.promiseStatus())),f=A.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,n.abort);return new y.DuplexStreamingCall(r,a,this.lastInput,l,u,p,f)}}n.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,n){return s=>new Promise(((a,u)=>{if(n===null||n===void 0?void 0:n.aborted){u(new l.RpcError("user cancel","CANCELLED"))}else{const d=setTimeout((()=>a(s)),r);if(n){n.addEventListener("abort",(r=>{clearTimeout(d);u(new l.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,n){this._completed=false;this._sent=[];this.data=r;this.abort=n}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof l.RpcError){return Promise.reject(this.data.inputMessage)}const n=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(n,this.abort))}complete(){if(this.data.inputComplete instanceof l.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},90368:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.UnaryCall=void 0;class UnaryCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.request=s;this.headers=a;this.response=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:n,status:s,trailers:a}}))}}n.UnaryCall=UnaryCall},64828:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.assertFloat32=n.assertUInt32=n.assertInt32=n.assertNever=n.assert=void 0;function assert(r,n){if(!r){throw new Error(n)}}n.assert=assert;function assertNever(r,n){throw new Error(n!==null&&n!==void 0?n:"Unexpected object: "+r)}n.assertNever=assertNever;const s=34028234663852886e22,a=-34028234663852886e22,l=4294967295,u=2147483647,d=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>u||rl||r<0)throw new Error("invalid uint 32: "+r)}n.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>s||r{Object.defineProperty(n,"__esModule",{value:true});n.base64encode=n.base64decode=void 0;let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;A=d;u=2;break;case 2:s[l++]=(A&15)<<4|(d&60)>>2;A=d;u=3;break;case 3:s[l++]=(A&3)<<6|d;u=0;break}}if(u==1)throw Error(`invalid base64 string.`);return s.subarray(0,l)}n.base64decode=base64decode;function base64encode(r){let n="",a=0,l,u=0;for(let d=0;d>2];u=(l&3)<<4;a=1;break;case 1:n+=s[u|l>>4];u=(l&15)<<2;a=2;break;case 2:n+=s[u|l>>6];n+=s[l&63];a=0;break}}if(a){n+=s[u];n+="=";if(a==1)n+="="}return n}n.base64encode=base64encode},98218:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.WireType=n.mergeBinaryOptions=n.UnknownFieldHandler=void 0;var s;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(n,s,a,l,u)=>{let d=is(s)?s[r.symbol]:s[r.symbol]=[];d.push({no:a,wireType:l,data:u})};r.onWrite=(n,s,a)=>{for(let{no:n,wireType:l,data:u}of r.list(s))a.tag(n,l).raw(u)};r.list=(n,s)=>{if(is(n)){let a=n[r.symbol];return s?a.filter((r=>r.no==s)):a}return[]};r.last=(n,s)=>r.list(n,s).slice(-1)[0];const is=n=>n&&Array.isArray(n[r.symbol])})(s=n.UnknownFieldHandler||(n.UnknownFieldHandler={}));function mergeBinaryOptions(r,n){return Object.assign(Object.assign({},r),n)}n.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=n.WireType||(n.WireType={}))},49695:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.BinaryReader=n.binaryReadOptions=void 0;const a=s(98218);const l=s(38819);const u=s(61605);const d={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},d),r):d}n.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,n){this.varint64=u.varint64read;this.uint32=u.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=n!==null&&n!==void 0?n:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),n=r>>>3,s=r&7;if(n<=0||s<0||s>5)throw new Error("illegal tag: field no "+n+" wire type "+s);return[n,s]}skip(r){let n=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case a.WireType.StartGroup:let s;while((s=this.tag()[1])!==a.WireType.EndGroup){this.skip(s)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new l.PbLong(...this.varint64())}uint64(){return new l.PbULong(...this.varint64())}sint64(){let[r,n]=this.varint64();let s=-(r&1);r=(r>>>1|(n&1)<<31)^s;n=n>>>1^s;return new l.PbLong(r,n)}bool(){let[r,n]=this.varint64();return r!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new l.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new l.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let n=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(n,n+r)}string(){return this.textDecoder.decode(this.bytes())}}n.BinaryReader=BinaryReader},70079:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.BinaryWriter=n.binaryWriteOptions=void 0;const a=s(38819);const l=s(61605);const u=s(64828);const d={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},d),r):d}n.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let n=0;n>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){u.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){u.assertInt32(r);l.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let n=this.textEncoder.encode(r);this.uint32(n.byteLength);return this.raw(n)}float(r){u.assertFloat32(r);let n=new Uint8Array(4);new DataView(n.buffer).setFloat32(0,r,true);return this.raw(n)}double(r){let n=new Uint8Array(8);new DataView(n.buffer).setFloat64(0,r,true);return this.raw(n)}fixed32(r){u.assertUInt32(r);let n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,r,true);return this.raw(n)}sfixed32(r){u.assertInt32(r);let n=new Uint8Array(4);new DataView(n.buffer).setInt32(0,r,true);return this.raw(n)}sint32(r){u.assertInt32(r);r=(r<<1^r>>31)>>>0;l.varint32write(r,this.buf);return this}sfixed64(r){let n=new Uint8Array(8);let s=new DataView(n.buffer);let l=a.PbLong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(n)}fixed64(r){let n=new Uint8Array(8);let s=new DataView(n.buffer);let l=a.PbULong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(n)}int64(r){let n=a.PbLong.from(r);l.varint64write(n.lo,n.hi,this.buf);return this}sint64(r){let n=a.PbLong.from(r),s=n.hi>>31,u=n.lo<<1^s,d=(n.hi<<1|n.lo>>>31)^s;l.varint64write(u,d,this.buf);return this}uint64(r){let n=a.PbULong.from(r);l.varint64write(n.lo,n.hi,this.buf);return this}}n.BinaryWriter=BinaryWriter},4903:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.listEnumNumbers=n.listEnumNames=n.listEnumValues=n.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let n of Object.keys(r)){let s=parseInt(n);if(!Number.isNaN(s)){let n=r[s];if(n===undefined)return false;if(r[n]!==s)return false}else{let s=r[n];if(s===undefined)return false;if(typeof s!=="number")return false;if(r[s]===undefined)return false}}return true}n.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let n=[];for(let[s,a]of Object.entries(r))if(typeof a=="number")n.push({name:s,number:a});return n}n.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}n.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,n,s)=>s.indexOf(r)==n))}n.listEnumNumbers=listEnumNumbers},61605:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.varint32read=n.varint32write=n.int64toString=n.int64fromString=n.varint64write=n.varint64read=void 0;function varint64read(){let r=0;let n=0;for(let s=0;s<28;s+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((s&128)==0){this.assertBounds();return[r,n]}for(let s=3;s<=31;s+=7){let a=this.buf[this.pos++];n|=(a&127)<>>a;const u=!(l>>>7==0&&n==0);const d=(u?l|128:l)&255;s.push(d);if(!u){return}}const a=r>>>28&15|(n&7)<<4;const l=!(n>>3==0);s.push((l?a|128:a)&255);if(!l){return}for(let r=3;r<31;r=r+7){const a=n>>>r;const l=!(a>>>7==0);const u=(l?a|128:a)&255;s.push(u);if(!l){return}}s.push(n>>>31&1)}n.varint64write=varint64write;const s=(1<<16)*(1<<16);function int64fromString(r){let n=r[0]=="-";if(n)r=r.slice(1);const a=1e6;let l=0;let u=0;function add1e6digit(n,d){const A=Number(r.slice(n,d));u*=a;l=l*a+A;if(l>=s){u=u+(l/s|0);l=l%s}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[n,l,u]}n.int64fromString=int64fromString;function int64toString(r,n){if(n>>>0<=2097151){return""+(s*n+(r>>>0))}let a=r&16777215;let l=(r>>>24|n<<8)>>>0&16777215;let u=n>>16&65535;let d=a+l*6777216+u*6710656;let A=l+u*8147497;let p=u*2;let f=1e7;if(d>=f){A+=Math.floor(d/f);d%=f}if(A>=f){p+=Math.floor(A/f);A%=f}function decimalFrom1e7(r,n){let s=r?String(r):"";if(n){return"0000000".slice(s.length)+s}return s}return decimalFrom1e7(p,0)+decimalFrom1e7(A,p)+decimalFrom1e7(d,1)}n.int64toString=int64toString;function varint32write(r,n){if(r>=0){while(r>127){n.push(r&127|128);r=r>>>7}n.push(r)}else{for(let s=0;s<9;s++){n.push(r&127|128);r=r>>7}n.push(1)}}n.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let n=r&127;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<7;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<14;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<21;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&15)<<28;for(let n=5;(r&128)!==0&&n<10;n++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return n>>>0}n.varint32read=varint32read},68140:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});var a=s(13417);Object.defineProperty(n,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(n,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var l=s(20841);Object.defineProperty(n,"base64decode",{enumerable:true,get:function(){return l.base64decode}});Object.defineProperty(n,"base64encode",{enumerable:true,get:function(){return l.base64encode}});var u=s(49016);Object.defineProperty(n,"utf8read",{enumerable:true,get:function(){return u.utf8read}});var d=s(98218);Object.defineProperty(n,"WireType",{enumerable:true,get:function(){return d.WireType}});Object.defineProperty(n,"mergeBinaryOptions",{enumerable:true,get:function(){return d.mergeBinaryOptions}});Object.defineProperty(n,"UnknownFieldHandler",{enumerable:true,get:function(){return d.UnknownFieldHandler}});var A=s(49695);Object.defineProperty(n,"BinaryReader",{enumerable:true,get:function(){return A.BinaryReader}});Object.defineProperty(n,"binaryReadOptions",{enumerable:true,get:function(){return A.binaryReadOptions}});var p=s(70079);Object.defineProperty(n,"BinaryWriter",{enumerable:true,get:function(){return p.BinaryWriter}});Object.defineProperty(n,"binaryWriteOptions",{enumerable:true,get:function(){return p.binaryWriteOptions}});var f=s(38819);Object.defineProperty(n,"PbLong",{enumerable:true,get:function(){return f.PbLong}});Object.defineProperty(n,"PbULong",{enumerable:true,get:function(){return f.PbULong}});var g=s(18069);Object.defineProperty(n,"jsonReadOptions",{enumerable:true,get:function(){return g.jsonReadOptions}});Object.defineProperty(n,"jsonWriteOptions",{enumerable:true,get:function(){return g.jsonWriteOptions}});Object.defineProperty(n,"mergeJsonOptions",{enumerable:true,get:function(){return g.mergeJsonOptions}});var y=s(69251);Object.defineProperty(n,"MESSAGE_TYPE",{enumerable:true,get:function(){return y.MESSAGE_TYPE}});var b=s(69940);Object.defineProperty(n,"MessageType",{enumerable:true,get:function(){return b.MessageType}});var C=s(37048);Object.defineProperty(n,"ScalarType",{enumerable:true,get:function(){return C.ScalarType}});Object.defineProperty(n,"LongType",{enumerable:true,get:function(){return C.LongType}});Object.defineProperty(n,"RepeatType",{enumerable:true,get:function(){return C.RepeatType}});Object.defineProperty(n,"normalizeFieldInfo",{enumerable:true,get:function(){return C.normalizeFieldInfo}});Object.defineProperty(n,"readFieldOptions",{enumerable:true,get:function(){return C.readFieldOptions}});Object.defineProperty(n,"readFieldOption",{enumerable:true,get:function(){return C.readFieldOption}});Object.defineProperty(n,"readMessageOption",{enumerable:true,get:function(){return C.readMessageOption}});var w=s(30073);Object.defineProperty(n,"ReflectionTypeCheck",{enumerable:true,get:function(){return w.ReflectionTypeCheck}});var B=s(8892);Object.defineProperty(n,"reflectionCreate",{enumerable:true,get:function(){return B.reflectionCreate}});var I=s(29348);Object.defineProperty(n,"reflectionScalarDefault",{enumerable:true,get:function(){return I.reflectionScalarDefault}});var S=s(586);Object.defineProperty(n,"reflectionMergePartial",{enumerable:true,get:function(){return S.reflectionMergePartial}});var Q=s(8797);Object.defineProperty(n,"reflectionEquals",{enumerable:true,get:function(){return Q.reflectionEquals}});var v=s(6537);Object.defineProperty(n,"ReflectionBinaryReader",{enumerable:true,get:function(){return v.ReflectionBinaryReader}});var R=s(27685);Object.defineProperty(n,"ReflectionBinaryWriter",{enumerable:true,get:function(){return R.ReflectionBinaryWriter}});var D=s(98944);Object.defineProperty(n,"ReflectionJsonReader",{enumerable:true,get:function(){return D.ReflectionJsonReader}});var N=s(57324);Object.defineProperty(n,"ReflectionJsonWriter",{enumerable:true,get:function(){return N.ReflectionJsonWriter}});var T=s(82092);Object.defineProperty(n,"containsMessageType",{enumerable:true,get:function(){return T.containsMessageType}});var x=s(69473);Object.defineProperty(n,"isOneofGroup",{enumerable:true,get:function(){return x.isOneofGroup}});Object.defineProperty(n,"setOneofValue",{enumerable:true,get:function(){return x.setOneofValue}});Object.defineProperty(n,"getOneofValue",{enumerable:true,get:function(){return x.getOneofValue}});Object.defineProperty(n,"clearOneofValue",{enumerable:true,get:function(){return x.clearOneofValue}});Object.defineProperty(n,"getSelectedOneofValue",{enumerable:true,get:function(){return x.getSelectedOneofValue}});var k=s(4903);Object.defineProperty(n,"listEnumValues",{enumerable:true,get:function(){return k.listEnumValues}});Object.defineProperty(n,"listEnumNames",{enumerable:true,get:function(){return k.listEnumNames}});Object.defineProperty(n,"listEnumNumbers",{enumerable:true,get:function(){return k.listEnumNumbers}});Object.defineProperty(n,"isEnumObject",{enumerable:true,get:function(){return k.isEnumObject}});var _=s(10023);Object.defineProperty(n,"lowerCamelCase",{enumerable:true,get:function(){return _.lowerCamelCase}});var P=s(64828);Object.defineProperty(n,"assert",{enumerable:true,get:function(){return P.assert}});Object.defineProperty(n,"assertNever",{enumerable:true,get:function(){return P.assertNever}});Object.defineProperty(n,"assertInt32",{enumerable:true,get:function(){return P.assertInt32}});Object.defineProperty(n,"assertUInt32",{enumerable:true,get:function(){return P.assertUInt32}});Object.defineProperty(n,"assertFloat32",{enumerable:true,get:function(){return P.assertFloat32}})},18069:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.mergeJsonOptions=n.jsonWriteOptions=n.jsonReadOptions=void 0;const s={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}n.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},s),r):s}n.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,n){var s,a;let l=Object.assign(Object.assign({},r),n);l.typeRegistry=[...(s=r===null||r===void 0?void 0:r.typeRegistry)!==null&&s!==void 0?s:[],...(a=n===null||n===void 0?void 0:n.typeRegistry)!==null&&a!==void 0?a:[]];return l}n.mergeJsonOptions=mergeJsonOptions},13417:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isJsonObject=n.typeofJsonValue=void 0;function typeofJsonValue(r){let n=typeof r;if(n=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return n}n.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}n.isJsonObject=isJsonObject},10023:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.lowerCamelCase=void 0;function lowerCamelCase(r){let n=false;const s=[];for(let a=0;a{Object.defineProperty(n,"__esModule",{value:true});n.MESSAGE_TYPE=void 0;n.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},69940:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.MessageType=void 0;const a=s(69251);const l=s(37048);const u=s(30073);const d=s(98944);const A=s(57324);const p=s(6537);const f=s(27685);const g=s(8892);const y=s(586);const b=s(13417);const C=s(18069);const w=s(8797);const B=s(70079);const I=s(49695);const S=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const Q=S[a.MESSAGE_TYPE]={};class MessageType{constructor(r,n,s){this.defaultCheckDepth=16;this.typeName=r;this.fields=n.map(l.normalizeFieldInfo);this.options=s!==null&&s!==void 0?s:{};Q.value=this;this.messagePrototype=Object.create(null,S);this.refTypeCheck=new u.ReflectionTypeCheck(this);this.refJsonReader=new d.ReflectionJsonReader(this);this.refJsonWriter=new A.ReflectionJsonWriter(this);this.refBinReader=new p.ReflectionBinaryReader(this);this.refBinWriter=new f.ReflectionBinaryWriter(this)}create(r){let n=g.reflectionCreate(this);if(r!==undefined){y.reflectionMergePartial(this,n,r)}return n}clone(r){let n=this.create();y.reflectionMergePartial(this,n,r);return n}equals(r,n){return w.reflectionEquals(this,r,n)}is(r,n=this.defaultCheckDepth){return this.refTypeCheck.is(r,n,false)}isAssignable(r,n=this.defaultCheckDepth){return this.refTypeCheck.is(r,n,true)}mergePartial(r,n){y.reflectionMergePartial(this,r,n)}fromBinary(r,n){let s=I.binaryReadOptions(n);return this.internalBinaryRead(s.readerFactory(r),r.byteLength,s)}fromJson(r,n){return this.internalJsonRead(r,C.jsonReadOptions(n))}fromJsonString(r,n){let s=JSON.parse(r);return this.fromJson(s,n)}toJson(r,n){return this.internalJsonWrite(r,C.jsonWriteOptions(n))}toJsonString(r,n){var s;let a=this.toJson(r,n);return JSON.stringify(a,null,(s=n===null||n===void 0?void 0:n.prettySpaces)!==null&&s!==void 0?s:0)}toBinary(r,n){let s=B.binaryWriteOptions(n);return this.internalBinaryWrite(r,s.writerFactory(),s).finish()}internalJsonRead(r,n,s){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=s!==null&&s!==void 0?s:this.create();this.refJsonReader.read(r,a,n);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${b.typeofJsonValue(r)}.`)}internalJsonWrite(r,n){return this.refJsonWriter.write(r,n)}internalBinaryWrite(r,n,s){this.refBinWriter.write(r,n,s);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,l,s,n);return l}}n.MessageType=MessageType},69473:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getSelectedOneofValue=n.clearOneofValue=n.setUnknownOneofValue=n.setOneofValue=n.getOneofValue=n.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}n.isOneofGroup=isOneofGroup;function getOneofValue(r,n){return r[n]}n.getOneofValue=getOneofValue;function setOneofValue(r,n,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=n;if(s!==undefined){r[n]=s}}n.setOneofValue=setOneofValue;function setUnknownOneofValue(r,n,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=n;if(s!==undefined&&n!==undefined){r[n]=s}}n.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}n.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}n.getSelectedOneofValue=getSelectedOneofValue},38819:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.PbLong=n.PbULong=n.detectBi=void 0;const a=s(61605);let l;function detectBi(){const r=new DataView(new ArrayBuffer(8));const n=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";l=n?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}n.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const u=/^-?[0-9]+$/;const d=4294967296;const A=2147483648;class SharedPbLong{constructor(r,n){this.lo=r|0;this.hi=n|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*d+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.UMAX)throw new Error("ulong too large");l.V.setBigUint64(0,r,true);return new PbULong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!u.test(r))throw new Error("string is no integer");let[n,s,l]=a.int64fromString(r);if(n)throw new Error("signed value for ulong");return new PbULong(s,l);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/d)}throw new Error("unknown value "+typeof r)}toString(){return l?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigUint64(0,true)}}n.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.MAX)throw new Error("signed long too large");l.V.setBigInt64(0,r,true);return new PbLong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!u.test(r))throw new Error("string is no integer");let[n,s,l]=a.int64fromString(r);if(n){if(l>A||l==A&&s!=0)throw new Error("signed long too small")}else if(l>=A)throw new Error("signed long too large");let p=new PbLong(s,l);return n?p.negate():p;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/d):new PbLong(-r,-r/d).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&A)!==0}negate(){let r=~this.hi,n=this.lo;if(n)n=~n+1;else r+=1;return new PbLong(n,r)}toString(){if(l)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigInt64(0,true)}}n.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},49016:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let n=0,s=[],a=[],l=0,u;let d=r.length;while(n191&&u<224)a[l++]=(u&31)<<6|r[n++]&63;else if(u>239&&u<365){u=((u&7)<<18|(r[n++]&63)<<12|(r[n++]&63)<<6|r[n++]&63)-65536;a[l++]=55296+(u>>10);a[l++]=56320+(u&1023)}else a[l++]=(u&15)<<12|(r[n++]&63)<<6|r[n++]&63;if(l>8191){s.push(fromCharCodes(a));l=0}}if(s.length){if(l)s.push(fromCharCodes(a.slice(0,l)));return s.join("")}return fromCharCodes(a.slice(0,l))}n.utf8read=utf8read},6537:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionBinaryReader=void 0;const a=s(98218);const l=s(37048);const u=s(5232);const d=s(29348);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const n=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(n.map((r=>[r.no,r])))}}read(r,n,s,u){this.prepare();const d=u===undefined?r.len:r.pos+u;while(r.pos{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionBinaryWriter=void 0;const a=s(98218);const l=s(37048);const u=s(64828);const d=s(38819);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,n)=>r.no-n.no))}}write(r,n,s){this.prepare();for(const a of this.fields){let d,A,p=a.repeat,f=a.localName;if(a.oneof){const n=r[a.oneof];if(n.oneofKind!==f)continue;d=n[f];A=true}else{d=r[f];A=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?l.ScalarType.INT32:a.T;if(p){u.assert(Array.isArray(d));if(p==l.RepeatType.PACKED)this.packed(n,r,a.no,d);else for(const s of d)this.scalar(n,r,a.no,s,true)}else if(d===undefined)u.assert(a.opt);else this.scalar(n,r,a.no,d,A||a.opt);break;case"message":if(p){u.assert(Array.isArray(d));for(const r of d)this.message(n,s,a.T(),a.no,r)}else{this.message(n,s,a.T(),a.no,d)}break;case"map":u.assert(typeof d=="object"&&d!==null);for(const[r,l]of Object.entries(d))this.mapEntry(n,s,a,r,l);break}}let d=s.writeUnknownFields;if(d!==false)(d===true?a.UnknownFieldHandler.onWrite:d)(this.info.typeName,r,n)}mapEntry(r,n,s,d,A){r.tag(s.no,a.WireType.LengthDelimited);r.fork();let p=d;switch(s.K){case l.ScalarType.INT32:case l.ScalarType.FIXED32:case l.ScalarType.UINT32:case l.ScalarType.SFIXED32:case l.ScalarType.SINT32:p=Number.parseInt(d);break;case l.ScalarType.BOOL:u.assert(d=="true"||d=="false");p=d=="true";break}this.scalar(r,s.K,1,p,true);switch(s.V.kind){case"scalar":this.scalar(r,s.V.T,2,A,true);break;case"enum":this.scalar(r,l.ScalarType.INT32,2,A,true);break;case"message":this.message(r,n,s.V.T(),2,A);break}r.join()}message(r,n,s,l,u){if(u===undefined)return;s.internalBinaryWrite(u,r.tag(l,a.WireType.LengthDelimited).fork(),n);r.join()}scalar(r,n,s,a,l){let[u,d,A]=this.scalarInfo(n,a);if(!A||l){r.tag(s,u);r[d](a)}}packed(r,n,s,d){if(!d.length)return;u.assert(n!==l.ScalarType.BYTES&&n!==l.ScalarType.STRING);r.tag(s,a.WireType.LengthDelimited);r.fork();let[,A]=this.scalarInfo(n);for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.containsMessageType=void 0;const a=s(69251);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}n.containsMessageType=containsMessageType},8892:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionCreate=void 0;const a=s(29348);const l=s(69251);function reflectionCreate(r){const n=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},l.MESSAGE_TYPE,{value:r});for(let s of r.fields){let r=s.localName;if(s.opt)continue;if(s.oneof)n[s.oneof]={oneofKind:undefined};else if(s.repeat)n[r]=[];else switch(s.kind){case"scalar":n[r]=a.reflectionScalarDefault(s.T,s.L);break;case"enum":n[r]=0;break;case"map":n[r]={};break}}return n}n.reflectionCreate=reflectionCreate},8797:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionEquals=void 0;const a=s(37048);function reflectionEquals(r,n,s){if(n===s)return true;if(!n||!s)return false;for(let u of r.fields){let r=u.localName;let d=u.oneof?n[u.oneof][r]:n[r];let A=u.oneof?s[u.oneof][r]:s[r];switch(u.kind){case"enum":case"scalar":let r=u.kind=="enum"?a.ScalarType.INT32:u.T;if(!(u.repeat?repeatedPrimitiveEq(r,d,A):primitiveEq(r,d,A)))return false;break;case"map":if(!(u.V.kind=="message"?repeatedMsgEq(u.V.T(),l(d),l(A)):repeatedPrimitiveEq(u.V.kind=="enum"?a.ScalarType.INT32:u.V.T,l(d),l(A))))return false;break;case"message":let n=u.T();if(!(u.repeat?repeatedMsgEq(n,d,A):n.equals(d,A)))return false;break}}return true}n.reflectionEquals=reflectionEquals;const l=Object.values;function primitiveEq(r,n,s){if(n===s)return true;if(r!==a.ScalarType.BYTES)return false;let l=n;let u=s;if(l.length!==u.length)return false;for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.readMessageOption=n.readFieldOption=n.readFieldOptions=n.normalizeFieldInfo=n.RepeatType=n.LongType=n.ScalarType=void 0;const a=s(10023);var l;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(l=n.ScalarType||(n.ScalarType={}));var u;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(u=n.LongType||(n.LongType={}));var d;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(d=n.RepeatType||(n.RepeatType={}));function normalizeFieldInfo(r){var n,s,l,u;r.localName=(n=r.localName)!==null&&n!==void 0?n:a.lowerCamelCase(r.name);r.jsonName=(s=r.jsonName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.repeat=(l=r.repeat)!==null&&l!==void 0?l:d.NO;r.opt=(u=r.opt)!==null&&u!==void 0?u:r.repeat?false:r.oneof?false:r.kind=="message";return r}n.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,n,s,a){var l;const u=(l=r.fields.find(((r,s)=>r.localName==n||s==n)))===null||l===void 0?void 0:l.options;return u&&u[s]?a.fromJson(u[s]):undefined}n.readFieldOptions=readFieldOptions;function readFieldOption(r,n,s,a){var l;const u=(l=r.fields.find(((r,s)=>r.localName==n||s==n)))===null||l===void 0?void 0:l.options;if(!u){return undefined}const d=u[s];if(d===undefined){return d}return a?a.fromJson(d):d}n.readFieldOption=readFieldOption;function readMessageOption(r,n,s){const a=r.options;const l=a[n];if(l===undefined){return l}return s?s.fromJson(l):l}n.readMessageOption=readMessageOption},98944:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionJsonReader=void 0;const a=s(13417);const l=s(20841);const u=s(37048);const d=s(38819);const A=s(64828);const p=s(5232);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const n=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of n){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,n,s){if(!r){let r=a.typeofJsonValue(s);if(r=="number"||r=="boolean")r=s.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${n}`)}}read(r,n,s){this.prepare();const l=[];for(const[d,A]of Object.entries(r)){const r=this.fMap[d];if(!r){if(!s.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${d}`);continue}const p=r.localName;let f;if(r.oneof){if(A===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(l.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);l.push(r.oneof);f=n[r.oneof]={oneofKind:p}}else{f=n}if(r.kind=="map"){if(A===null){continue}this.assert(a.isJsonObject(A),r.name,A);const n=f[p];for(const[a,l]of Object.entries(A)){this.assert(l!==null,r.name+" map value",null);let d;switch(r.V.kind){case"message":d=r.V.T().internalJsonRead(l,s);break;case"enum":d=this.enum(r.V.T(),l,r.name,s.ignoreUnknownFields);if(d===false)continue;break;case"scalar":d=this.scalar(l,r.V.T,r.V.L,r.name);break}this.assert(d!==undefined,r.name+" map value",l);let A=a;if(r.K==u.ScalarType.BOOL)A=A=="true"?true:A=="false"?false:A;A=this.scalar(A,r.K,u.LongType.STRING,r.name).toString();n[A]=d}}else if(r.repeat){if(A===null)continue;this.assert(Array.isArray(A),r.name,A);const n=f[p];for(const a of A){this.assert(a!==null,r.name,null);let l;switch(r.kind){case"message":l=r.T().internalJsonRead(a,s);break;case"enum":l=this.enum(r.T(),a,r.name,s.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(a,r.T,r.L,r.name);break}this.assert(l!==undefined,r.name,A);n.push(l)}}else{switch(r.kind){case"message":if(A===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}f[p]=r.T().internalJsonRead(A,s,f[p]);break;case"enum":if(A===null)continue;let n=this.enum(r.T(),A,r.name,s.ignoreUnknownFields);if(n===false)continue;f[p]=n;break;case"scalar":if(A===null)continue;f[p]=this.scalar(A,r.T,r.L,r.name);break}}}}enum(r,n,s,a){if(r[0]=="google.protobuf.NullValue")A.assert(n===null||n==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} only accepts null.`);if(n===null)return 0;switch(typeof n){case"number":A.assert(Number.isInteger(n),`Unable to parse field ${this.info.typeName}#${s}, enum can only be integral number, got ${n}.`);return n;case"string":let l=n;if(r[2]&&n.substring(0,r[2].length)===r[2])l=n.substring(r[2].length);let u=r[1][l];if(typeof u==="undefined"&&a){return false}A.assert(typeof u=="number",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} has no value for "${n}".`);return u}A.assert(false,`Unable to parse field ${this.info.typeName}#${s}, cannot parse enum value from ${typeof n}".`)}scalar(r,n,s,a){let f;try{switch(n){case u.ScalarType.DOUBLE:case u.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){f="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){f="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){f="not a number";break}if(!Number.isFinite(a)){f="too large or small";break}if(n==u.ScalarType.FLOAT)A.assertFloat32(a);return a;case u.ScalarType.INT32:case u.ScalarType.FIXED32:case u.ScalarType.SFIXED32:case u.ScalarType.SINT32:case u.ScalarType.UINT32:if(r===null)return 0;let g;if(typeof r=="number")g=r;else if(r==="")f="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)f="extra whitespace";else g=Number(r)}if(g===undefined)break;if(n==u.ScalarType.UINT32)A.assertUInt32(g);else A.assertInt32(g);return g;case u.ScalarType.INT64:case u.ScalarType.SFIXED64:case u.ScalarType.SINT64:if(r===null)return p.reflectionLongConvert(d.PbLong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return p.reflectionLongConvert(d.PbLong.from(r),s);case u.ScalarType.FIXED64:case u.ScalarType.UINT64:if(r===null)return p.reflectionLongConvert(d.PbULong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return p.reflectionLongConvert(d.PbULong.from(r),s);case u.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case u.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){f="extra whitespace";break}try{encodeURIComponent(r)}catch(f){f="invalid UTF8";break}return r;case u.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return l.base64decode(r)}}catch(r){f=r.message}this.assert(false,a+(f?" - "+f:""),r)}}n.ReflectionJsonReader=ReflectionJsonReader},57324:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionJsonWriter=void 0;const a=s(20841);const l=s(38819);const u=s(37048);const d=s(64828);class ReflectionJsonWriter{constructor(r){var n;this.fields=(n=r.fields)!==null&&n!==void 0?n:[]}write(r,n){const s={},a=r;for(const r of this.fields){if(!r.oneof){let l=this.field(r,a[r.localName],n);if(l!==undefined)s[n.useProtoFieldName?r.name:r.jsonName]=l;continue}const l=a[r.oneof];if(l.oneofKind!==r.localName)continue;const u=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},n),{emitDefaultValues:true}):n;let A=this.field(r,l[r.localName],u);d.assert(A!==undefined);s[n.useProtoFieldName?r.name:r.jsonName]=A}return s}field(r,n,s){let a=undefined;if(r.kind=="map"){d.assert(typeof n=="object"&&n!==null);const l={};switch(r.V.kind){case"scalar":for(const[s,a]of Object.entries(n)){const n=this.scalar(r.V.T,a,r.name,false,true);d.assert(n!==undefined);l[s.toString()]=n}break;case"message":const a=r.V.T();for(const[u,A]of Object.entries(n)){const n=this.message(a,A,r.name,s);d.assert(n!==undefined);l[u.toString()]=n}break;case"enum":const u=r.V.T();for(const[a,A]of Object.entries(n)){d.assert(A===undefined||typeof A=="number");const n=this.enum(u,A,r.name,false,true,s.enumAsInteger);d.assert(n!==undefined);l[a.toString()]=n}break}if(s.emitDefaultValues||Object.keys(l).length>0)a=l}else if(r.repeat){d.assert(Array.isArray(n));const l=[];switch(r.kind){case"scalar":for(let s=0;s0||s.emitDefaultValues)a=l}else{switch(r.kind){case"scalar":a=this.scalar(r.T,n,r.name,r.opt,s.emitDefaultValues);break;case"enum":a=this.enum(r.T(),n,r.name,r.opt,s.emitDefaultValues,s.enumAsInteger);break;case"message":a=this.message(r.T(),n,r.name,s);break}}return a}enum(r,n,s,a,l,u){if(r[0]=="google.protobuf.NullValue")return!l&&!a?undefined:null;if(n===undefined){d.assert(a);return undefined}if(n===0&&!l&&!a)return undefined;d.assert(typeof n=="number");d.assert(Number.isInteger(n));if(u||!r[1].hasOwnProperty(n))return n;if(r[2])return r[2]+r[1][n];return r[1][n]}message(r,n,s,a){if(n===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(n,a)}scalar(r,n,s,A,p){if(n===undefined){d.assert(A);return undefined}const f=p||A;switch(r){case u.ScalarType.INT32:case u.ScalarType.SFIXED32:case u.ScalarType.SINT32:if(n===0)return f?0:undefined;d.assertInt32(n);return n;case u.ScalarType.FIXED32:case u.ScalarType.UINT32:if(n===0)return f?0:undefined;d.assertUInt32(n);return n;case u.ScalarType.FLOAT:d.assertFloat32(n);case u.ScalarType.DOUBLE:if(n===0)return f?0:undefined;d.assert(typeof n=="number");if(Number.isNaN(n))return"NaN";if(n===Number.POSITIVE_INFINITY)return"Infinity";if(n===Number.NEGATIVE_INFINITY)return"-Infinity";return n;case u.ScalarType.STRING:if(n==="")return f?"":undefined;d.assert(typeof n=="string");return n;case u.ScalarType.BOOL:if(n===false)return f?false:undefined;d.assert(typeof n=="boolean");return n;case u.ScalarType.UINT64:case u.ScalarType.FIXED64:d.assert(typeof n=="number"||typeof n=="string"||typeof n=="bigint");let r=l.PbULong.from(n);if(r.isZero()&&!f)return undefined;return r.toString();case u.ScalarType.INT64:case u.ScalarType.SFIXED64:case u.ScalarType.SINT64:d.assert(typeof n=="number"||typeof n=="string"||typeof n=="bigint");let s=l.PbLong.from(n);if(s.isZero()&&!f)return undefined;return s.toString();case u.ScalarType.BYTES:d.assert(n instanceof Uint8Array);if(!n.byteLength)return f?"":undefined;return a.base64encode(n)}}}n.ReflectionJsonWriter=ReflectionJsonWriter},5232:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionLongConvert=void 0;const a=s(37048);function reflectionLongConvert(r,n){switch(n){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}n.reflectionLongConvert=reflectionLongConvert},586:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionMergePartial=void 0;function reflectionMergePartial(r,n,s){let a,l=s,u;for(let s of r.fields){let r=s.localName;if(s.oneof){const d=l[s.oneof];if((d===null||d===void 0?void 0:d.oneofKind)==undefined){continue}a=d[r];u=n[s.oneof];u.oneofKind=d.oneofKind;if(a==undefined){delete u[r];continue}}else{a=l[r];u=n;if(a==undefined){continue}}if(s.repeat)u[r].length=a.length;switch(s.kind){case"scalar":case"enum":if(s.repeat)for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.reflectionScalarDefault=void 0;const a=s(37048);const l=s(5232);const u=s(38819);function reflectionScalarDefault(r,n=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return l.reflectionLongConvert(u.PbULong.ZERO,n);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return l.reflectionLongConvert(u.PbLong.ZERO,n);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}n.reflectionScalarDefault=reflectionScalarDefault},30073:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionTypeCheck=void 0;const a=s(37048);const l=s(69473);class ReflectionTypeCheck{constructor(r){var n;this.fields=(n=r.fields)!==null&&n!==void 0?n:[]}prepare(){if(this.data)return;const r=[],n=[],s=[];for(let a of this.fields){if(a.oneof){if(!s.includes(a.oneof)){s.push(a.oneof);r.push(a.oneof);n.push(a.oneof)}}else{n.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:n,oneofs:Object.values(s)}}is(r,n,s=false){if(n<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),u=this.data;if(a.length!a.includes(r))))return false;if(!s){if(a.some((r=>!u.known.includes(r))))return false}if(n<1){return true}for(const a of u.oneofs){const u=r[a];if(!l.isOneofGroup(u))return false;if(u.oneofKind===undefined)continue;const d=this.fields.find((r=>r.localName===u.oneofKind));if(!d)return false;if(!this.field(u[u.oneofKind],d,s,n))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,s,n))return false}return true}field(r,n,s,l){let u=n.repeat;switch(n.kind){case"scalar":if(r===undefined)return n.opt;if(u)return this.scalars(r,n.T,l,n.L);return this.scalar(r,n.T,n.L);case"enum":if(r===undefined)return n.opt;if(u)return this.scalars(r,a.ScalarType.INT32,l);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(u)return this.messages(r,n.T(),s,l);return this.message(r,n.T(),s,l);case"map":if(typeof r!="object"||r===null)return false;if(l<2)return true;if(!this.mapKeys(r,n.K,l))return false;switch(n.V.kind){case"scalar":return this.scalars(Object.values(r),n.V.T,l,n.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,l);case"message":return this.messages(Object.values(r),n.V.T(),s,l)}break}return true}message(r,n,s,a){if(s){return n.isAssignable(r,a)}return n.is(r,a)}messages(r,n,s,a){if(!Array.isArray(r))return false;if(a<2)return true;if(s){for(let s=0;sparseInt(r))),n,s);case a.ScalarType.BOOL:return this.scalars(l.slice(0,s).map((r=>r=="true"?true:r=="false"?false:r)),n,s);default:return this.scalars(l,n,s,a.LongType.STRING)}}}n.ReflectionTypeCheck=ReflectionTypeCheck},19914:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});var a=s(9876);class AbortSignal extends a.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const r=l.get(this);if(typeof r!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return r}}a.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const r=Object.create(AbortSignal.prototype);a.EventTarget.call(r);l.set(r,false);return r}function abortSignal(r){if(l.get(r)!==false){return}l.set(r,true);r.dispatchEvent({type:"abort"})}const l=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){u.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const u=new WeakMap;function getSignal(r){const n=u.get(r);if(n==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${r===null?"null":typeof r}`)}return n}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}n.AbortController=AbortController;n.AbortSignal=AbortSignal;n["default"]=AbortController;r.exports=AbortController;r.exports.AbortController=r.exports["default"]=AbortController;r.exports.AbortSignal=AbortSignal},84455:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};Object.defineProperty(n,"__esModule",{value:true});n.req=n.json=n.toBuffer=void 0;const d=u(s(58611));const A=u(s(65692));async function toBuffer(r){let n=0;const s=[];for await(const a of r){n+=a.length;s.push(a)}return Buffer.concat(s,n)}n.toBuffer=toBuffer;async function json(r){const n=await toBuffer(r);const s=n.toString("utf8");try{return JSON.parse(s)}catch(r){const n=r;n.message+=` (input: ${s})`;throw n}}n.json=json;function req(r,n={}){const s=typeof r==="string"?r:r.href;const a=(s.startsWith("https:")?A:d).request(r,n);const l=new Promise(((r,n)=>{a.once("response",r).once("error",n).end()}));a.then=l.then.bind(l);return a}n.req=req},10646:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__exportStar||function(r,n){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s))a(n,r,s)};Object.defineProperty(n,"__esModule",{value:true});n.Agent=void 0;const A=u(s(69278));const p=u(s(58611));const f=s(65692);d(s(84455),n);const g=Symbol("AgentBaseInternalState");class Agent extends p.Agent{constructor(r){super(r);this[g]={}}isSecureEndpoint(r){if(r){if(typeof r.secureEndpoint==="boolean"){return r.secureEndpoint}if(typeof r.protocol==="string"){return r.protocol==="https:"}}const{stack:n}=new Error;if(typeof n!=="string")return false;return n.split("\n").some((r=>r.indexOf("(https.js:")!==-1||r.indexOf("node:https:")!==-1))}incrementSockets(r){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[r]){this.sockets[r]=[]}const n=new A.Socket({writable:false});this.sockets[r].push(n);this.totalSocketCount++;return n}decrementSockets(r,n){if(!this.sockets[r]||n===null){return}const s=this.sockets[r];const a=s.indexOf(n);if(a!==-1){s.splice(a,1);this.totalSocketCount--;if(s.length===0){delete this.sockets[r]}}}getName(r){const n=this.isSecureEndpoint(r);if(n){return f.Agent.prototype.getName.call(this,r)}return super.getName(r)}createSocket(r,n,s){const a={...n,secureEndpoint:this.isSecureEndpoint(n)};const l=this.getName(a);const u=this.incrementSockets(l);Promise.resolve().then((()=>this.connect(r,a))).then((d=>{this.decrementSockets(l,u);if(d instanceof p.Agent){try{return d.addRequest(r,a)}catch(r){return s(r)}}this[g].currentSocket=d;super.createSocket(r,n,s)}),(r=>{this.decrementSockets(l,u);s(r)}))}createConnection(){const r=this[g].currentSocket;this[g].currentSocket=undefined;if(!r){throw new Error("No socket was returned in the `connect()` function")}return r}get defaultPort(){return this[g].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){if(this[g]){this[g].defaultPort=r}}get protocol(){return this[g].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){if(this[g]){this[g].protocol=r}}}n.Agent=Agent},6974:(r,n,s)=>{var a=s(6768);var l=s(16928);var u=s(23462);var d=s(5657);var A=s(48159);var p=s(48575);var f=s(63360);var g=r.exports={};var y=/[\/\\]/g;var processPatterns=function(r,n){var s=[];u(r).forEach((function(r){var a=r.indexOf("!")===0;if(a){r=r.slice(1)}var l=n(r);if(a){s=d(s,l)}else{s=A(s,l)}}));return s};g.exists=function(){var r=l.join.apply(l,arguments);return a.existsSync(r)};g.expand=function(...r){var n=p(r[0])?r.shift():{};var s=Array.isArray(r[0])?r[0]:r;if(s.length===0){return[]}var u=processPatterns(s,(function(r){return f.sync(r,n)}));if(n.filter){u=u.filter((function(r){r=l.join(n.cwd||"",r);try{if(typeof n.filter==="function"){return n.filter(r)}else{return a.statSync(r)[n.filter]()}}catch(r){return false}}))}return u};g.expandMapping=function(r,n,s){s=Object.assign({rename:function(r,n){return l.join(r||"",n)}},s);var a=[];var u={};g.expand(s,r).forEach((function(r){var d=r;if(s.flatten){d=l.basename(d)}if(s.ext){d=d.replace(/(\.[^\/]*)?$/,s.ext)}var A=s.rename(n,d,s);if(s.cwd){r=l.join(s.cwd,r)}A=A.replace(y,"/");r=r.replace(y,"/");if(u[A]){u[A].src.push(r)}else{a.push({src:[r],dest:A});u[A]=a[a.length-1]}}));return a};g.normalizeFilesArray=function(r){var n=[];r.forEach((function(r){var s;if("src"in r||"dest"in r){n.push(r)}}));if(n.length===0){return[]}n=_(n).chain().forEach((function(r){if(!("src"in r)||!r.src){return}if(Array.isArray(r.src)){r.src=u(r.src)}else{r.src=[r.src]}})).map((function(r){var n=Object.assign({},r);delete n.src;delete n.dest;if(r.expand){return g.expandMapping(r.src,r.dest,n).map((function(n){var s=Object.assign({},r);s.orig=Object.assign({},r);s.src=n.src;s.dest=n.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete s[r]}));return s}))}var s=Object.assign({},r);s.orig=Object.assign({},r);if("src"in s){Object.defineProperty(s,"src",{enumerable:true,get:function fn(){var s;if(!("result"in fn)){s=r.src;s=Array.isArray(s)?u(s):[s];fn.result=g.expand(n,s)}return fn.result}})}if("dest"in s){s.dest=r.dest}return s})).flatten().value();return n}},16090:(r,n,s)=>{var a=s(6768);var l=s(16928);var u=s(82198);var d=s(6889);var A=s(52398);var p=s(79576);var f=s(2203).Stream;var g=s(48924).PassThrough;var y=r.exports={};y.file=s(6974);y.collectStream=function(r,n){var s=[];var a=0;r.on("error",n);r.on("data",(function(r){s.push(r);a+=r.length}));r.on("end",(function(){var r=Buffer.alloc(a);var l=0;s.forEach((function(n){n.copy(r,l);l+=n.length}));n(null,r)}))};y.dateify=function(r){r=r||new Date;if(r instanceof Date){r=r}else if(typeof r==="string"){r=new Date(r)}else{r=new Date}return r};y.defaults=function(r,n,s){var a=arguments;a[0]=a[0]||{};return p(...a)};y.isStream=function(r){return u(r)};y.lazyReadStream=function(r){return new d.Readable((function(){return a.createReadStream(r)}))};y.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(y.isStream(r)){return r.pipe(new g)}return r};y.sanitizePath=function(r){return A(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};y.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};y.unixifyPath=function(r){return A(r,false).replace(/^\w+:/,"")};y.walkdir=function(r,n,s){var u=[];if(typeof n==="function"){s=n;n=r}a.readdir(r,(function(d,A){var p=0;var f;var g;if(d){return s(d)}(function next(){f=A[p++];if(!f){return s(null,u)}g=l.join(r,f);a.stat(g,(function(r,a){u.push({path:g,relative:l.relative(n,g).replace(/\\/g,"/"),stats:a});if(a&&a.isDirectory()){y.walkdir(g,n,(function(r,n){if(r){return s(r)}n.forEach((function(r){u.push(r)}));next()}))}else{next()}}))})()}))}},72709:(r,n,s)=>{ +import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webpack_modules__={89659:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(){var ownKeys=function(r){ownKeys=Object.getOwnPropertyNames||function(r){var n=[];for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s))n[n.length]=s;return n};return ownKeys(r)};return function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s=ownKeys(r),u=0;ud(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);this.message.on("data",(r=>{n=Buffer.concat([n,r])}));this.message.on("end",(()=>{r(n.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((r=>d(this,void 0,void 0,(function*(){const n=[];this.message.on("data",(r=>{n.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(n))}))}))))}))}}n.HttpClientResponse=HttpClientResponse;function isHttps(r){const n=new URL(r);return n.protocol==="https:"}class HttpClient{constructor(r,n,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(r);this.handlers=n||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,n){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,n||{})}))}get(r,n){return d(this,void 0,void 0,(function*(){return this.request("GET",r,null,n||{})}))}del(r,n){return d(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,n||{})}))}post(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("POST",r,n,s||{})}))}patch(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("PATCH",r,n,s||{})}))}put(r,n,s){return d(this,void 0,void 0,(function*(){return this.request("PUT",r,n,s||{})}))}head(r,n){return d(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,n||{})}))}sendStream(r,n,s,a){return d(this,void 0,void 0,(function*(){return this.request(r,n,s,a)}))}getJson(r){return d(this,arguments,void 0,(function*(r,n={}){n[C.Accept]=this._getExistingOrDefaultHeader(n,C.Accept,w.ApplicationJson);const s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)}))}postJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,n){return d(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[C.Accept]=this._getExistingOrDefaultHeader(s,C.Accept,w.ApplicationJson);s[C.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,w.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,n,s,a){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(n);let u=this._prepareRequest(r,l,a);const d=this._allowRetries&&S.includes(r)?this._maxRetries+1:1;let A=0;let p;do{p=yield this.requestRaw(u,s);if(p&&p.message&&p.message.statusCode===b.Unauthorized){let r;for(const n of this.handlers){if(n.canHandleAuthentication(p)){r=n;break}}if(r){return r.handleAuthentication(this,u,s)}else{return p}}let n=this._maxRedirects;while(p.message.statusCode&&B.includes(p.message.statusCode)&&this._allowRedirects&&n>0){const d=p.message.headers["location"];if(!d){break}const A=new URL(d);if(l.protocol==="https:"&&l.protocol!==A.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(A.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}u=this._prepareRequest(r,A,a);p=yield this.requestRaw(u,s);n--}if(!p.message.statusCode||!I.includes(p.message.statusCode)){return p}A+=1;if(A{function callbackForResult(r,n){if(r){a(r)}else if(!n){a(new Error("Unknown error"))}else{s(n)}}this.requestRawWithCallback(r,n,callbackForResult)}))}))}requestRawWithCallback(r,n,s){if(typeof n==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(r,n){if(!a){a=true;s(r,n)}}const l=r.httpModule.request(r.options,(r=>{const n=new HttpClientResponse(r);handleResult(undefined,n)}));let u;l.on("socket",(r=>{u=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(n&&typeof n==="string"){l.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",(function(){l.end()}));n.pipe(l)}else{l.end()}}getAgent(r){const n=new URL(r);return this._getAgent(n)}getAgentDispatcher(r){const n=new URL(r);const s=f.getProxyUrl(n);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,s)}_prepareRequest(r,n,s){const a={};a.parsedUrl=n;const l=a.parsedUrl.protocol==="https:";a.httpModule=l?p:A;const u=l?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):u;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,n,s){let a;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[n];if(r){a=typeof r==="number"?r.toString():r}}const l=r[n];if(l!==undefined){return typeof l==="number"?l.toString():l}if(a!==undefined){return a}return s}_getExistingOrDefaultContentTypeHeader(r,n){let s;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[C.ContentType];if(r){if(typeof r==="number"){s=String(r)}else if(Array.isArray(r)){s=r.join(", ")}else{s=r}}}const a=r[C.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(s!==undefined){return s}return n}_getAgent(r){let n;const s=f.getProxyUrl(r);const a=s&&s.hostname;if(this._keepAlive&&a){n=this._proxyAgent}if(!a){n=this._agent}if(n){return n}const l=r.protocol==="https:";let u=100;if(this.requestOptions){u=this.requestOptions.maxSockets||A.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:u,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const d=s.protocol==="https:";if(l){a=d?g.httpsOverHttps:g.httpsOverHttp}else{a=d?g.httpOverHttps:g.httpOverHttp}n=a(r);this._proxyAgent=n}if(!n){const r={keepAlive:this._keepAlive,maxSockets:u};n=l?new p.Agent(r):new A.Agent(r);this._agent=n}if(l&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(r,n){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new y.ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_getUserAgentWithOrchestrationId(r){const n=r||"actions/http-client";const s=process.env["ACTIONS_ORCHESTRATION_ID"];if(s){const r=s.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${r}`}return n}_performExponentialBackoff(r){return d(this,void 0,void 0,(function*(){r=Math.min(Q,r);const n=v*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),n)))}))}_processResponse(r,n){return d(this,void 0,void 0,(function*(){return new Promise(((s,a)=>d(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const u={statusCode:l,result:null,headers:{}};if(l===b.NotFound){s(u)}function dateTimeDeserializer(r,n){if(typeof n==="string"){const r=new Date(n);if(!isNaN(r.valueOf())){return r}}return n}let d;let A;try{A=yield r.readBody();if(A&&A.length>0){if(n&&n.deserializeDates){d=JSON.parse(A,dateTimeDeserializer)}else{d=JSON.parse(A)}u.result=d}u.headers=r.message.headers}catch(r){}if(l>299){let r;if(d&&d.message){r=d.message}else if(A&&A.length>0){r=A}else{r=`Failed request: (${l})`}const n=new HttpClientError(r,l);n.result=u.result;a(n)}else{s(u)}}))))}))}}n.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((n,s)=>(n[s.toLowerCase()]=r[s],n)),{})},83335:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getProxyUrl=getProxyUrl;n.checkBypass=checkBypass;function getProxyUrl(r){const n=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}function checkBypass(r){if(!r.hostname){return false}const n=r.hostname;if(isLoopbackAddress(n)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((n=>n===r||n.endsWith(`.${r}`)||r.startsWith(".")&&n.endsWith(`${r}`)))){return true}}return false}function isLoopbackAddress(r){const n=r.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(r,n){super(r,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},92400:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);n.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};function createFileSystemAdapter(r){if(r===undefined){return n.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=createFileSystemAdapter},52479:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;const s=process.versions.node.split(".");if(s[0]===undefined||s[1]===undefined){throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`)}const a=Number.parseInt(s[0],10);const l=Number.parseInt(s[1],10);const u=10;const d=10;const A=a>u;const p=a===u&&l>=d;n.IS_SUPPORT_READDIR_WITH_FILE_TYPES=A||p},37198:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Settings=n.scandirSync=n.scandir=void 0;const a=s(77299);const l=s(17200);const u=s(92501);n.Settings=u.default;function scandir(r,n,s){if(typeof n==="function"){a.read(r,getSettings(),n);return}a.read(r,getSettings(n),s)}n.scandir=scandir;function scandirSync(r,n){const s=getSettings(n);return l.read(r,s)}n.scandirSync=scandirSync;function getSettings(r={}){if(r instanceof u.default){return r}return new u.default(r)}},77299:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readdir=n.readdirWithFileTypes=n.read=void 0;const a=s(91470);const l=s(22743);const u=s(52479);const d=s(21144);const A=s(770);function read(r,n,s){if(!n.stats&&u.IS_SUPPORT_READDIR_WITH_FILE_TYPES){readdirWithFileTypes(r,n,s);return}readdir(r,n,s)}n.read=read;function readdirWithFileTypes(r,n,s){n.fs.readdir(r,{withFileTypes:true},((a,u)=>{if(a!==null){callFailureCallback(s,a);return}const d=u.map((s=>({dirent:s,name:s.name,path:A.joinPathSegments(r,s.name,n.pathSegmentSeparator)})));if(!n.followSymbolicLinks){callSuccessCallback(s,d);return}const p=d.map((r=>makeRplTaskEntry(r,n)));l(p,((r,n)=>{if(r!==null){callFailureCallback(s,r);return}callSuccessCallback(s,n)}))}))}n.readdirWithFileTypes=readdirWithFileTypes;function makeRplTaskEntry(r,n){return s=>{if(!r.dirent.isSymbolicLink()){s(null,r);return}n.fs.stat(r.path,((a,l)=>{if(a!==null){if(n.throwErrorOnBrokenSymbolicLink){s(a);return}s(null,r);return}r.dirent=d.fs.createDirentFromStats(r.name,l);s(null,r)}))}}function readdir(r,n,s){n.fs.readdir(r,((u,p)=>{if(u!==null){callFailureCallback(s,u);return}const f=p.map((s=>{const l=A.joinPathSegments(r,s,n.pathSegmentSeparator);return r=>{a.stat(l,n.fsStatSettings,((a,u)=>{if(a!==null){r(a);return}const A={name:s,path:l,dirent:d.fs.createDirentFromStats(s,u)};if(n.stats){A.stats=u}r(null,A)}))}}));l(f,((r,n)=>{if(r!==null){callFailureCallback(s,r);return}callSuccessCallback(s,n)}))}))}n.readdir=readdir;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},770:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.joinPathSegments=void 0;function joinPathSegments(r,n,s){if(r.endsWith(s)){return r+n}return r+s+n}n.joinPathSegments=joinPathSegments},17200:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readdir=n.readdirWithFileTypes=n.read=void 0;const a=s(91470);const l=s(52479);const u=s(21144);const d=s(770);function read(r,n){if(!n.stats&&l.IS_SUPPORT_READDIR_WITH_FILE_TYPES){return readdirWithFileTypes(r,n)}return readdir(r,n)}n.read=read;function readdirWithFileTypes(r,n){const s=n.fs.readdirSync(r,{withFileTypes:true});return s.map((s=>{const a={dirent:s,name:s.name,path:d.joinPathSegments(r,s.name,n.pathSegmentSeparator)};if(a.dirent.isSymbolicLink()&&n.followSymbolicLinks){try{const r=n.fs.statSync(a.path);a.dirent=u.fs.createDirentFromStats(a.name,r)}catch(r){if(n.throwErrorOnBrokenSymbolicLink){throw r}}}return a}))}n.readdirWithFileTypes=readdirWithFileTypes;function readdir(r,n){const s=n.fs.readdirSync(r);return s.map((s=>{const l=d.joinPathSegments(r,s,n.pathSegmentSeparator);const A=a.statSync(l,n.fsStatSettings);const p={name:s,path:l,dirent:u.fs.createDirentFromStats(s,A)};if(n.stats){p.stats=A}return p}))}n.readdir=readdir},92501:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(91470);const u=s(92400);class Settings{constructor(r={}){this._options=r;this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,false);this.fs=u.createFileSystemAdapter(this._options.fs);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep);this.stats=this._getValue(this._options.stats,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true);this.fsStatSettings=new l.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},75497:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.createDirentFromStats=void 0;class DirentFromStats{constructor(r,n){this.name=r;this.isBlockDevice=n.isBlockDevice.bind(n);this.isCharacterDevice=n.isCharacterDevice.bind(n);this.isDirectory=n.isDirectory.bind(n);this.isFIFO=n.isFIFO.bind(n);this.isFile=n.isFile.bind(n);this.isSocket=n.isSocket.bind(n);this.isSymbolicLink=n.isSymbolicLink.bind(n)}}function createDirentFromStats(r,n){return new DirentFromStats(r,n)}n.createDirentFromStats=createDirentFromStats},21144:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.fs=void 0;const a=s(75497);n.fs=a},24368:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);n.FILE_SYSTEM_ADAPTER={lstat:a.lstat,stat:a.stat,lstatSync:a.lstatSync,statSync:a.statSync};function createFileSystemAdapter(r){if(r===undefined){return n.FILE_SYSTEM_ADAPTER}return Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=createFileSystemAdapter},91470:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.statSync=n.stat=n.Settings=void 0;const a=s(31539);const l=s(26544);const u=s(84853);n.Settings=u.default;function stat(r,n,s){if(typeof n==="function"){a.read(r,getSettings(),n);return}a.read(r,getSettings(n),s)}n.stat=stat;function statSync(r,n){const s=getSettings(n);return l.read(r,s)}n.statSync=statSync;function getSettings(r={}){if(r instanceof u.default){return r}return new u.default(r)}},31539:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.read=void 0;function read(r,n,s){n.fs.lstat(r,((a,l)=>{if(a!==null){callFailureCallback(s,a);return}if(!l.isSymbolicLink()||!n.followSymbolicLink){callSuccessCallback(s,l);return}n.fs.stat(r,((r,a)=>{if(r!==null){if(n.throwErrorOnBrokenSymbolicLink){callFailureCallback(s,r);return}callSuccessCallback(s,l);return}if(n.markSymbolicLink){a.isSymbolicLink=()=>true}callSuccessCallback(s,a)}))}))}n.read=read;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},26544:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.read=void 0;function read(r,n){const s=n.fs.lstatSync(r);if(!s.isSymbolicLink()||!n.followSymbolicLink){return s}try{const s=n.fs.statSync(r);if(n.markSymbolicLink){s.isSymbolicLink=()=>true}return s}catch(r){if(!n.throwErrorOnBrokenSymbolicLink){return s}throw r}}n.read=read},84853:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(24368);class Settings{constructor(r={}){this._options=r;this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,true);this.fs=a.createFileSystemAdapter(this._options.fs);this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,true)}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},79337:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Settings=n.walkStream=n.walkSync=n.walk=void 0;const a=s(11936);const l=s(88986);const u=s(8769);const d=s(30244);n.Settings=d.default;function walk(r,n,s){if(typeof n==="function"){new a.default(r,getSettings()).read(n);return}new a.default(r,getSettings(n)).read(s)}n.walk=walk;function walkSync(r,n){const s=getSettings(n);const a=new u.default(r,s);return a.read()}n.walkSync=walkSync;function walkStream(r,n){const s=getSettings(n);const a=new l.default(r,s);return a.read()}n.walkStream=walkStream;function getSettings(r={}){if(r instanceof d.default){return r}return new d.default(r)}},11936:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(21906);class AsyncProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new a.default(this._root,this._settings);this._storage=[]}read(r){this._reader.onError((n=>{callFailureCallback(r,n)}));this._reader.onEntry((r=>{this._storage.push(r)}));this._reader.onEnd((()=>{callSuccessCallback(r,this._storage)}));this._reader.read()}}n["default"]=AsyncProvider;function callFailureCallback(r,n){r(n)}function callSuccessCallback(r,n){r(null,n)}},88986:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(21906);class StreamProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new l.default(this._root,this._settings);this._stream=new a.Readable({objectMode:true,read:()=>{},destroy:()=>{if(!this._reader.isDestroyed){this._reader.destroy()}}})}read(){this._reader.onError((r=>{this._stream.emit("error",r)}));this._reader.onEntry((r=>{this._stream.push(r)}));this._reader.onEnd((()=>{this._stream.push(null)}));this._reader.read();return this._stream}}n["default"]=StreamProvider},8769:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(83431);class SyncProvider{constructor(r,n){this._root=r;this._settings=n;this._reader=new a.default(this._root,this._settings)}read(){return this._reader.read()}}n["default"]=SyncProvider},21906:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(24434);const l=s(37198);const u=s(53281);const d=s(94449);const A=s(35903);class AsyncReader extends A.default{constructor(r,n){super(r,n);this._settings=n;this._scandir=l.scandir;this._emitter=new a.EventEmitter;this._queue=u(this._worker.bind(this),this._settings.concurrency);this._isFatalError=false;this._isDestroyed=false;this._queue.drain=()=>{if(!this._isFatalError){this._emitter.emit("end")}}}read(){this._isFatalError=false;this._isDestroyed=false;setImmediate((()=>{this._pushToQueue(this._root,this._settings.basePath)}));return this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed){throw new Error("The reader is already destroyed")}this._isDestroyed=true;this._queue.killAndDrain()}onEntry(r){this._emitter.on("entry",r)}onError(r){this._emitter.once("error",r)}onEnd(r){this._emitter.once("end",r)}_pushToQueue(r,n){const s={directory:r,base:n};this._queue.push(s,(r=>{if(r!==null){this._handleError(r)}}))}_worker(r,n){this._scandir(r.directory,this._settings.fsScandirSettings,((s,a)=>{if(s!==null){n(s,undefined);return}for(const n of a){this._handleEntry(n,r.base)}n(null,undefined)}))}_handleError(r){if(this._isDestroyed||!d.isFatalError(this._settings,r)){return}this._isFatalError=true;this._isDestroyed=true;this._emitter.emit("error",r)}_handleEntry(r,n){if(this._isDestroyed||this._isFatalError){return}const s=r.path;if(n!==undefined){r.path=d.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)}if(d.isAppliedFilter(this._settings.entryFilter,r)){this._emitEntry(r)}if(r.dirent.isDirectory()&&d.isAppliedFilter(this._settings.deepFilter,r)){this._pushToQueue(s,n===undefined?undefined:r.path)}}_emitEntry(r){this._emitter.emit("entry",r)}}n["default"]=AsyncReader},94449:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.joinPathSegments=n.replacePathSegmentSeparator=n.isAppliedFilter=n.isFatalError=void 0;function isFatalError(r,n){if(r.errorFilter===null){return true}return!r.errorFilter(n)}n.isFatalError=isFatalError;function isAppliedFilter(r,n){return r===null||r(n)}n.isAppliedFilter=isAppliedFilter;function replacePathSegmentSeparator(r,n){return r.split(/[/\\]/).join(n)}n.replacePathSegmentSeparator=replacePathSegmentSeparator;function joinPathSegments(r,n,s){if(r===""){return n}if(r.endsWith(s)){return r+n}return r+s+n}n.joinPathSegments=joinPathSegments},35903:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(94449);class Reader{constructor(r,n){this._root=r;this._settings=n;this._root=a.replacePathSegmentSeparator(r,n.pathSegmentSeparator)}}n["default"]=Reader},83431:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(37198);const l=s(94449);const u=s(35903);class SyncReader extends u.default{constructor(){super(...arguments);this._scandir=a.scandirSync;this._storage=[];this._queue=new Set}read(){this._pushToQueue(this._root,this._settings.basePath);this._handleQueue();return this._storage}_pushToQueue(r,n){this._queue.add({directory:r,base:n})}_handleQueue(){for(const r of this._queue.values()){this._handleDirectory(r.directory,r.base)}}_handleDirectory(r,n){try{const s=this._scandir(r,this._settings.fsScandirSettings);for(const r of s){this._handleEntry(r,n)}}catch(r){this._handleError(r)}}_handleError(r){if(!l.isFatalError(this._settings,r)){return}throw r}_handleEntry(r,n){const s=r.path;if(n!==undefined){r.path=l.joinPathSegments(n,r.name,this._settings.pathSegmentSeparator)}if(l.isAppliedFilter(this._settings.entryFilter,r)){this._pushToStorage(r)}if(r.dirent.isDirectory()&&l.isAppliedFilter(this._settings.deepFilter,r)){this._pushToQueue(s,n===undefined?undefined:r.path)}}_pushToStorage(r){this._storage.push(r)}}n["default"]=SyncReader},30244:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(37198);class Settings{constructor(r={}){this._options=r;this.basePath=this._getValue(this._options.basePath,undefined);this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY);this.deepFilter=this._getValue(this._options.deepFilter,null);this.entryFilter=this._getValue(this._options.entryFilter,null);this.errorFilter=this._getValue(this._options.errorFilter,null);this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,a.sep);this.fsScandirSettings=new l.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink})}_getValue(r,n){return r!==null&&r!==void 0?r:n}}n["default"]=Settings},37889:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.requests=s;this.headers=a;this.response=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,response:n,status:s,trailers:a}}))}}n.ClientStreamingCall=ClientStreamingCall},71409:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.Deferred=n.DeferredState=void 0;var s;(function(r){r[r["PENDING"]=0]="PENDING";r[r["REJECTED"]=1]="REJECTED";r[r["RESOLVED"]=2]="RESOLVED"})(s=n.DeferredState||(n.DeferredState={}));class Deferred{constructor(r=true){this._state=s.PENDING;this._promise=new Promise(((r,n)=>{this._resolve=r;this._reject=n}));if(r){this._promise.catch((r=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(r){if(this.state!==s.PENDING)throw new Error(`cannot resolve ${s[this.state].toLowerCase()}`);this._resolve(r);this._state=s.RESOLVED}reject(r){if(this.state!==s.PENDING)throw new Error(`cannot reject ${s[this.state].toLowerCase()}`);this._reject(r);this._state=s.REJECTED}resolvePending(r){if(this._state===s.PENDING)this.resolve(r)}rejectPending(r){if(this._state===s.PENDING)this.reject(r)}}n.Deferred=Deferred},36826:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.requests=s;this.headers=a;this.responses=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:r,status:n,trailers:s}}))}}n.DuplexStreamingCall=DuplexStreamingCall},44420:(r,n,s)=>{var a;a={value:true};var l=s(56892);Object.defineProperty(n,"C0",{enumerable:true,get:function(){return l.ServiceType}});var u=s(62496);a={enumerable:true,get:function(){return u.readMethodOptions}};a={enumerable:true,get:function(){return u.readMethodOption}};a={enumerable:true,get:function(){return u.readServiceOption}};var d=s(78636);a={enumerable:true,get:function(){return d.RpcError}};var A=s(28576);a={enumerable:true,get:function(){return A.mergeRpcOptions}};var p=s(72726);a={enumerable:true,get:function(){return p.RpcOutputStreamController}};var f=s(79122);a={enumerable:true,get:function(){return f.TestTransport}};var g=s(71409);a={enumerable:true,get:function(){return g.Deferred}};a={enumerable:true,get:function(){return g.DeferredState}};var y=s(36826);a={enumerable:true,get:function(){return y.DuplexStreamingCall}};var b=s(37889);a={enumerable:true,get:function(){return b.ClientStreamingCall}};var C=s(46173);a={enumerable:true,get:function(){return C.ServerStreamingCall}};var w=s(29288);a={enumerable:true,get:function(){return w.UnaryCall}};var B=s(52849);a={enumerable:true,get:function(){return B.stackIntercept}};a={enumerable:true,get:function(){return B.stackDuplexStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackClientStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackServerStreamingInterceptors}};a={enumerable:true,get:function(){return B.stackUnaryInterceptors}};var I=s(43352);a={enumerable:true,get:function(){return I.ServerCallContextController}}},62496:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.readServiceOption=n.readMethodOption=n.readMethodOptions=n.normalizeMethodInfo=void 0;const a=s(68886);function normalizeMethodInfo(r,n){var s,l,u;let d=r;d.service=n;d.localName=(s=d.localName)!==null&&s!==void 0?s:a.lowerCamelCase(d.name);d.serverStreaming=!!d.serverStreaming;d.clientStreaming=!!d.clientStreaming;d.options=(l=d.options)!==null&&l!==void 0?l:{};d.idempotency=(u=d.idempotency)!==null&&u!==void 0?u:undefined;return d}n.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(r,n,s,a){var l;const u=(l=r.methods.find(((r,s)=>r.localName===n||s===n)))===null||l===void 0?void 0:l.options;return u&&u[s]?a.fromJson(u[s]):undefined}n.readMethodOptions=readMethodOptions;function readMethodOption(r,n,s,a){var l;const u=(l=r.methods.find(((r,s)=>r.localName===n||s===n)))===null||l===void 0?void 0:l.options;if(!u){return undefined}const d=u[s];if(d===undefined){return d}return a?a.fromJson(d):d}n.readMethodOption=readMethodOption;function readServiceOption(r,n,s){const a=r.options;if(!a){return undefined}const l=a[n];if(l===undefined){return l}return s?s.fromJson(l):l}n.readServiceOption=readServiceOption},78636:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.RpcError=void 0;class RpcError extends Error{constructor(r,n="UNKNOWN",s){super(r);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=n;this.meta=s!==null&&s!==void 0?s:{}}toString(){const r=[this.name+": "+this.message];if(this.code){r.push("");r.push("Code: "+this.code)}if(this.serviceName&&this.methodName){r.push("Method: "+this.serviceName+"/"+this.methodName)}let n=Object.entries(this.meta);if(n.length){r.push("");r.push("Meta:");for(let[s,a]of n){r.push(` ${s}: ${a}`)}}return r.join("\n")}}n.RpcError=RpcError},52849:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.stackDuplexStreamingInterceptors=n.stackClientStreamingInterceptors=n.stackServerStreamingInterceptors=n.stackUnaryInterceptors=n.stackIntercept=void 0;const a=s(68886);function stackIntercept(r,n,s,l,u){var d,A,p,f;if(r=="unary"){let tail=(r,s,a)=>n.unary(r,s,a);for(const r of((d=l.interceptors)!==null&&d!==void 0?d:[]).filter((r=>r.interceptUnary)).reverse()){const n=tail;tail=(s,a,l)=>r.interceptUnary(n,s,a,l)}return tail(s,u,l)}if(r=="serverStreaming"){let tail=(r,s,a)=>n.serverStreaming(r,s,a);for(const r of((A=l.interceptors)!==null&&A!==void 0?A:[]).filter((r=>r.interceptServerStreaming)).reverse()){const n=tail;tail=(s,a,l)=>r.interceptServerStreaming(n,s,a,l)}return tail(s,u,l)}if(r=="clientStreaming"){let tail=(r,s)=>n.clientStreaming(r,s);for(const r of((p=l.interceptors)!==null&&p!==void 0?p:[]).filter((r=>r.interceptClientStreaming)).reverse()){const n=tail;tail=(s,a)=>r.interceptClientStreaming(n,s,a)}return tail(s,l)}if(r=="duplex"){let tail=(r,s)=>n.duplex(r,s);for(const r of((f=l.interceptors)!==null&&f!==void 0?f:[]).filter((r=>r.interceptDuplex)).reverse()){const n=tail;tail=(s,a)=>r.interceptDuplex(n,s,a)}return tail(s,l)}a.assertNever(r)}n.stackIntercept=stackIntercept;function stackUnaryInterceptors(r,n,s,a){return stackIntercept("unary",r,n,a,s)}n.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(r,n,s,a){return stackIntercept("serverStreaming",r,n,a,s)}n.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(r,n,s){return stackIntercept("clientStreaming",r,n,s)}n.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(r,n,s){return stackIntercept("duplex",r,n,s)}n.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},28576:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.mergeRpcOptions=void 0;const a=s(68886);function mergeRpcOptions(r,n){if(!n)return r;let s={};copy(r,s);copy(n,s);for(let l of Object.keys(n)){let u=n[l];switch(l){case"jsonOptions":s.jsonOptions=a.mergeJsonOptions(r.jsonOptions,s.jsonOptions);break;case"binaryOptions":s.binaryOptions=a.mergeBinaryOptions(r.binaryOptions,s.binaryOptions);break;case"meta":s.meta={};copy(r.meta,s.meta);copy(n.meta,s.meta);break;case"interceptors":s.interceptors=r.interceptors?r.interceptors.concat(u):u.concat();break}}return s}n.mergeRpcOptions=mergeRpcOptions;function copy(r,n){if(!r)return;let s=n;for(let[n,a]of Object.entries(r)){if(a instanceof Date)s[n]=new Date(a.getTime());else if(Array.isArray(a))s[n]=a.concat();else s[n]=a}}},72726:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.RpcOutputStreamController=void 0;const a=s(71409);const l=s(68886);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(r){return this.addLis(r,this._lis.nxt)}onMessage(r){return this.addLis(r,this._lis.msg)}onError(r){return this.addLis(r,this._lis.err)}onComplete(r){return this.addLis(r,this._lis.cmp)}addLis(r,n){n.push(r);return()=>{let s=n.indexOf(r);if(s>=0)n.splice(s,1)}}clearLis(){for(let r of Object.values(this._lis))r.splice(0,r.length)}get closed(){return this._closed!==false}notifyNext(r,n,s){l.assert((r?1:0)+(n?1:0)+(s?1:0)<=1,"only one emission at a time");if(r)this.notifyMessage(r);if(n)this.notifyError(n);if(s)this.notifyComplete()}notifyMessage(r){l.assert(!this.closed,"stream is closed");this.pushIt({value:r,done:false});this._lis.msg.forEach((n=>n(r)));this._lis.nxt.forEach((n=>n(r,undefined,false)))}notifyError(r){l.assert(!this.closed,"stream is closed");this._closed=r;this.pushIt(r);this._lis.err.forEach((n=>n(r)));this._lis.nxt.forEach((n=>n(undefined,r,false)));this.clearLis()}notifyComplete(){l.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((r=>r()));this._lis.nxt.forEach((r=>r(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let r=this._itState;l.assert(r,"bad state");l.assert(!r.p,"iterator contract broken");let n=r.q.shift();if(n)return"value"in n?Promise.resolve(n):Promise.reject(n);r.p=new a.Deferred;return r.p.promise}}}pushIt(r){let n=this._itState;if(n.p){const s=n.p;l.assert(s.state==a.DeferredState.PENDING,"iterator contract broken");"value"in r?s.resolve(r):s.reject(r);delete n.p}else{n.q.push(r)}}}n.RpcOutputStreamController=RpcOutputStreamController},43352:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.ServerCallContextController=void 0;class ServerCallContextController{constructor(r,n,s,a,l={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=r;this.headers=n;this.deadline=s;this.trailers={};this._sendRH=a;this.status=l}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let r of this._listeners){r()}}}sendResponseHeaders(r){this._sendRH(r)}get cancelled(){return this._cancelled}onCancel(r){const n=this._listeners;n.push(r);return()=>{let s=n.indexOf(r);if(s>=0)n.splice(s,1)}}}n.ServerCallContextController=ServerCallContextController},46173:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.request=s;this.headers=a;this.responses=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,status:n,trailers:s}}))}}n.ServerStreamingCall=ServerStreamingCall},56892:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ServiceType=void 0;const a=s(62496);class ServiceType{constructor(r,n,s){this.typeName=r;this.methods=n.map((r=>a.normalizeMethodInfo(r,this)));this.options=s!==null&&s!==void 0?s:{}}}n.ServiceType=ServiceType},79122:function(r,n,s){var a=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.TestTransport=void 0;const l=s(78636);const u=s(68886);const d=s(72726);const A=s(28576);const p=s(29288);const f=s(46173);const g=s(37889);const y=s(36826);class TestTransport{constructor(r){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=r!==null&&r!==void 0?r:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var r;const n=(r=this.data.headers)!==null&&r!==void 0?r:TestTransport.defaultHeaders;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}promiseSingleResponse(r){if(this.data.response instanceof l.RpcError){return Promise.reject(this.data.response)}let n;if(Array.isArray(this.data.response)){u.assert(this.data.response.length>0);n=this.data.response[0]}else if(this.data.response!==undefined){n=this.data.response}else{n=r.O.create()}u.assert(r.O.is(n));return Promise.resolve(n)}streamResponses(r,n,s){return a(this,void 0,void 0,(function*(){const a=[];if(this.data.response===undefined){a.push(r.O.create())}else if(Array.isArray(this.data.response)){for(let n of this.data.response){u.assert(r.O.is(n));a.push(n)}}else if(!(this.data.response instanceof l.RpcError)){u.assert(r.O.is(this.data.response));a.push(this.data.response)}try{yield delay(this.responseDelay,s)(undefined)}catch(r){n.notifyError(r);return}if(this.data.response instanceof l.RpcError){n.notifyError(this.data.response);return}for(let r of a){n.notifyMessage(r);try{yield delay(this.betweenResponseDelay,s)(undefined)}catch(r){n.notifyError(r);return}}if(this.data.status instanceof l.RpcError){n.notifyError(this.data.status);return}if(this.data.trailers instanceof l.RpcError){n.notifyError(this.data.trailers);return}n.notifyComplete()}))}promiseStatus(){var r;const n=(r=this.data.status)!==null&&r!==void 0?r:TestTransport.defaultStatus;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}promiseTrailers(){var r;const n=(r=this.data.trailers)!==null&&r!==void 0?r:TestTransport.defaultTrailers;return n instanceof l.RpcError?Promise.reject(n):Promise.resolve(n)}maybeSuppressUncaught(...r){if(this.suppressUncaughtRejections){for(let n of r){n.catch((()=>{}))}}}mergeOptions(r){return A.mergeRpcOptions({},r)}unary(r,n,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},u=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),d=u.catch((r=>{})).then(delay(this.responseDelay,s.abort)).then((n=>this.promiseSingleResponse(r))),A=d.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseStatus())),f=d.catch((r=>{})).then(delay(this.afterResponseDelay,s.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(A,f);this.lastInput={single:n};return new p.UnaryCall(r,l,n,u,d,A,f)}serverStreaming(r,n,s){var a;const l=(a=s.meta)!==null&&a!==void 0?a:{},u=this.promiseHeaders().then(delay(this.headerDelay,s.abort)),A=new d.RpcOutputStreamController,p=u.then(delay(this.responseDelay,s.abort)).catch((()=>{})).then((()=>this.streamResponses(r,A,s.abort))).then(delay(this.afterResponseDelay,s.abort)),g=p.then((()=>this.promiseStatus())),y=p.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(g,y);this.lastInput={single:n};return new f.ServerStreamingCall(r,l,n,u,A,g,y)}clientStreaming(r,n){var s;const a=(s=n.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),u=l.catch((r=>{})).then(delay(this.responseDelay,n.abort)).then((n=>this.promiseSingleResponse(r))),d=u.catch((r=>{})).then(delay(this.afterResponseDelay,n.abort)).then((r=>this.promiseStatus())),A=u.catch((r=>{})).then(delay(this.afterResponseDelay,n.abort)).then((r=>this.promiseTrailers()));this.maybeSuppressUncaught(d,A);this.lastInput=new TestInputStream(this.data,n.abort);return new g.ClientStreamingCall(r,a,this.lastInput,l,u,d,A)}duplex(r,n){var s;const a=(s=n.meta)!==null&&s!==void 0?s:{},l=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),u=new d.RpcOutputStreamController,A=l.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(r,u,n.abort))).then(delay(this.afterResponseDelay,n.abort)),p=A.then((()=>this.promiseStatus())),f=A.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(p,f);this.lastInput=new TestInputStream(this.data,n.abort);return new y.DuplexStreamingCall(r,a,this.lastInput,l,u,p,f)}}n.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(r,n){return s=>new Promise(((a,u)=>{if(n===null||n===void 0?void 0:n.aborted){u(new l.RpcError("user cancel","CANCELLED"))}else{const d=setTimeout((()=>a(s)),r);if(n){n.addEventListener("abort",(r=>{clearTimeout(d);u(new l.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(r,n){this._completed=false;this._sent=[];this.data=r;this.abort=n}get sent(){return this._sent}get completed(){return this._completed}send(r){if(this.data.inputMessage instanceof l.RpcError){return Promise.reject(this.data.inputMessage)}const n=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(r)})).then(delay(n,this.abort))}complete(){if(this.data.inputComplete instanceof l.RpcError){return Promise.reject(this.data.inputComplete)}const r=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(r,this.abort))}}},29288:function(r,n){var s=this&&this.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};Object.defineProperty(n,"__esModule",{value:true});n.UnaryCall=void 0;class UnaryCall{constructor(r,n,s,a,l,u,d){this.method=r;this.requestHeaders=n;this.request=s;this.headers=a;this.response=l;this.status=u;this.trailers=d}then(r,n){return this.promiseFinished().then((n=>r?Promise.resolve(r(n)):n),(r=>n?Promise.resolve(n(r)):Promise.reject(r)))}promiseFinished(){return s(this,void 0,void 0,(function*(){let[r,n,s,a]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:r,response:n,status:s,trailers:a}}))}}n.UnaryCall=UnaryCall},8602:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.assertFloat32=n.assertUInt32=n.assertInt32=n.assertNever=n.assert=void 0;function assert(r,n){if(!r){throw new Error(n)}}n.assert=assert;function assertNever(r,n){throw new Error(n!==null&&n!==void 0?n:"Unexpected object: "+r)}n.assertNever=assertNever;const s=34028234663852886e22,a=-34028234663852886e22,l=4294967295,u=2147483647,d=-2147483648;function assertInt32(r){if(typeof r!=="number")throw new Error("invalid int 32: "+typeof r);if(!Number.isInteger(r)||r>u||rl||r<0)throw new Error("invalid uint 32: "+r)}n.assertUInt32=assertUInt32;function assertFloat32(r){if(typeof r!=="number")throw new Error("invalid float 32: "+typeof r);if(!Number.isFinite(r))return;if(r>s||r{Object.defineProperty(n,"__esModule",{value:true});n.base64encode=n.base64decode=void 0;let s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let a=[];for(let r=0;r>4;A=d;u=2;break;case 2:s[l++]=(A&15)<<4|(d&60)>>2;A=d;u=3;break;case 3:s[l++]=(A&3)<<6|d;u=0;break}}if(u==1)throw Error(`invalid base64 string.`);return s.subarray(0,l)}n.base64decode=base64decode;function base64encode(r){let n="",a=0,l,u=0;for(let d=0;d>2];u=(l&3)<<4;a=1;break;case 1:n+=s[u|l>>4];u=(l&15)<<2;a=2;break;case 2:n+=s[u|l>>6];n+=s[l&63];a=0;break}}if(a){n+=s[u];n+="=";if(a==1)n+="="}return n}n.base64encode=base64encode},54816:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.WireType=n.mergeBinaryOptions=n.UnknownFieldHandler=void 0;var s;(function(r){r.symbol=Symbol.for("protobuf-ts/unknown");r.onRead=(n,s,a,l,u)=>{let d=is(s)?s[r.symbol]:s[r.symbol]=[];d.push({no:a,wireType:l,data:u})};r.onWrite=(n,s,a)=>{for(let{no:n,wireType:l,data:u}of r.list(s))a.tag(n,l).raw(u)};r.list=(n,s)=>{if(is(n)){let a=n[r.symbol];return s?a.filter((r=>r.no==s)):a}return[]};r.last=(n,s)=>r.list(n,s).slice(-1)[0];const is=n=>n&&Array.isArray(n[r.symbol])})(s=n.UnknownFieldHandler||(n.UnknownFieldHandler={}));function mergeBinaryOptions(r,n){return Object.assign(Object.assign({},r),n)}n.mergeBinaryOptions=mergeBinaryOptions;var a;(function(r){r[r["Varint"]=0]="Varint";r[r["Bit64"]=1]="Bit64";r[r["LengthDelimited"]=2]="LengthDelimited";r[r["StartGroup"]=3]="StartGroup";r[r["EndGroup"]=4]="EndGroup";r[r["Bit32"]=5]="Bit32"})(a=n.WireType||(n.WireType={}))},92889:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.BinaryReader=n.binaryReadOptions=void 0;const a=s(54816);const l=s(61753);const u=s(93223);const d={readUnknownField:true,readerFactory:r=>new BinaryReader(r)};function binaryReadOptions(r){return r?Object.assign(Object.assign({},d),r):d}n.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(r,n){this.varint64=u.varint64read;this.uint32=u.varint32read;this.buf=r;this.len=r.length;this.pos=0;this.view=new DataView(r.buffer,r.byteOffset,r.byteLength);this.textDecoder=n!==null&&n!==void 0?n:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let r=this.uint32(),n=r>>>3,s=r&7;if(n<=0||s<0||s>5)throw new Error("illegal tag: field no "+n+" wire type "+s);return[n,s]}skip(r){let n=this.pos;switch(r){case a.WireType.Varint:while(this.buf[this.pos++]&128){}break;case a.WireType.Bit64:this.pos+=4;case a.WireType.Bit32:this.pos+=4;break;case a.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case a.WireType.StartGroup:let s;while((s=this.tag()[1])!==a.WireType.EndGroup){this.skip(s)}break;default:throw new Error("cant skip wire type "+r)}this.assertBounds();return this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let r=this.uint32();return r>>>1^-(r&1)}int64(){return new l.PbLong(...this.varint64())}uint64(){return new l.PbULong(...this.varint64())}sint64(){let[r,n]=this.varint64();let s=-(r&1);r=(r>>>1|(n&1)<<31)^s;n=n>>>1^s;return new l.PbLong(r,n)}bool(){let[r,n]=this.varint64();return r!==0||n!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new l.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new l.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let r=this.uint32();let n=this.pos;this.pos+=r;this.assertBounds();return this.buf.subarray(n,n+r)}string(){return this.textDecoder.decode(this.bytes())}}n.BinaryReader=BinaryReader},23957:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.BinaryWriter=n.binaryWriteOptions=void 0;const a=s(61753);const l=s(93223);const u=s(8602);const d={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(r){return r?Object.assign(Object.assign({},d),r):d}n.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(r){this.stack=[];this.textEncoder=r!==null&&r!==void 0?r:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let r=0;for(let n=0;n>>0)}raw(r){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(r);return this}uint32(r){u.assertUInt32(r);while(r>127){this.buf.push(r&127|128);r=r>>>7}this.buf.push(r);return this}int32(r){u.assertInt32(r);l.varint32write(r,this.buf);return this}bool(r){this.buf.push(r?1:0);return this}bytes(r){this.uint32(r.byteLength);return this.raw(r)}string(r){let n=this.textEncoder.encode(r);this.uint32(n.byteLength);return this.raw(n)}float(r){u.assertFloat32(r);let n=new Uint8Array(4);new DataView(n.buffer).setFloat32(0,r,true);return this.raw(n)}double(r){let n=new Uint8Array(8);new DataView(n.buffer).setFloat64(0,r,true);return this.raw(n)}fixed32(r){u.assertUInt32(r);let n=new Uint8Array(4);new DataView(n.buffer).setUint32(0,r,true);return this.raw(n)}sfixed32(r){u.assertInt32(r);let n=new Uint8Array(4);new DataView(n.buffer).setInt32(0,r,true);return this.raw(n)}sint32(r){u.assertInt32(r);r=(r<<1^r>>31)>>>0;l.varint32write(r,this.buf);return this}sfixed64(r){let n=new Uint8Array(8);let s=new DataView(n.buffer);let l=a.PbLong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(n)}fixed64(r){let n=new Uint8Array(8);let s=new DataView(n.buffer);let l=a.PbULong.from(r);s.setInt32(0,l.lo,true);s.setInt32(4,l.hi,true);return this.raw(n)}int64(r){let n=a.PbLong.from(r);l.varint64write(n.lo,n.hi,this.buf);return this}sint64(r){let n=a.PbLong.from(r),s=n.hi>>31,u=n.lo<<1^s,d=(n.hi<<1|n.lo>>>31)^s;l.varint64write(u,d,this.buf);return this}uint64(r){let n=a.PbULong.from(r);l.varint64write(n.lo,n.hi,this.buf);return this}}n.BinaryWriter=BinaryWriter},70257:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.listEnumNumbers=n.listEnumNames=n.listEnumValues=n.isEnumObject=void 0;function isEnumObject(r){if(typeof r!="object"||r===null){return false}if(!r.hasOwnProperty(0)){return false}for(let n of Object.keys(r)){let s=parseInt(n);if(!Number.isNaN(s)){let n=r[s];if(n===undefined)return false;if(r[n]!==s)return false}else{let s=r[n];if(s===undefined)return false;if(typeof s!=="number")return false;if(r[s]===undefined)return false}}return true}n.isEnumObject=isEnumObject;function listEnumValues(r){if(!isEnumObject(r))throw new Error("not a typescript enum object");let n=[];for(let[s,a]of Object.entries(r))if(typeof a=="number")n.push({name:s,number:a});return n}n.listEnumValues=listEnumValues;function listEnumNames(r){return listEnumValues(r).map((r=>r.name))}n.listEnumNames=listEnumNames;function listEnumNumbers(r){return listEnumValues(r).map((r=>r.number)).filter(((r,n,s)=>s.indexOf(r)==n))}n.listEnumNumbers=listEnumNumbers},93223:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.varint32read=n.varint32write=n.int64toString=n.int64fromString=n.varint64write=n.varint64read=void 0;function varint64read(){let r=0;let n=0;for(let s=0;s<28;s+=7){let a=this.buf[this.pos++];r|=(a&127)<>4;if((s&128)==0){this.assertBounds();return[r,n]}for(let s=3;s<=31;s+=7){let a=this.buf[this.pos++];n|=(a&127)<>>a;const u=!(l>>>7==0&&n==0);const d=(u?l|128:l)&255;s.push(d);if(!u){return}}const a=r>>>28&15|(n&7)<<4;const l=!(n>>3==0);s.push((l?a|128:a)&255);if(!l){return}for(let r=3;r<31;r=r+7){const a=n>>>r;const l=!(a>>>7==0);const u=(l?a|128:a)&255;s.push(u);if(!l){return}}s.push(n>>>31&1)}n.varint64write=varint64write;const s=(1<<16)*(1<<16);function int64fromString(r){let n=r[0]=="-";if(n)r=r.slice(1);const a=1e6;let l=0;let u=0;function add1e6digit(n,d){const A=Number(r.slice(n,d));u*=a;l=l*a+A;if(l>=s){u=u+(l/s|0);l=l%s}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[n,l,u]}n.int64fromString=int64fromString;function int64toString(r,n){if(n>>>0<=2097151){return""+(s*n+(r>>>0))}let a=r&16777215;let l=(r>>>24|n<<8)>>>0&16777215;let u=n>>16&65535;let d=a+l*6777216+u*6710656;let A=l+u*8147497;let p=u*2;let f=1e7;if(d>=f){A+=Math.floor(d/f);d%=f}if(A>=f){p+=Math.floor(A/f);A%=f}function decimalFrom1e7(r,n){let s=r?String(r):"";if(n){return"0000000".slice(s.length)+s}return s}return decimalFrom1e7(p,0)+decimalFrom1e7(A,p)+decimalFrom1e7(d,1)}n.int64toString=int64toString;function varint32write(r,n){if(r>=0){while(r>127){n.push(r&127|128);r=r>>>7}n.push(r)}else{for(let s=0;s<9;s++){n.push(r&127|128);r=r>>7}n.push(1)}}n.varint32write=varint32write;function varint32read(){let r=this.buf[this.pos++];let n=r&127;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<7;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<14;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&127)<<21;if((r&128)==0){this.assertBounds();return n}r=this.buf[this.pos++];n|=(r&15)<<28;for(let n=5;(r&128)!==0&&n<10;n++)r=this.buf[this.pos++];if((r&128)!=0)throw new Error("invalid varint");this.assertBounds();return n>>>0}n.varint32read=varint32read},68886:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});var a=s(49999);Object.defineProperty(n,"typeofJsonValue",{enumerable:true,get:function(){return a.typeofJsonValue}});Object.defineProperty(n,"isJsonObject",{enumerable:true,get:function(){return a.isJsonObject}});var l=s(26335);Object.defineProperty(n,"base64decode",{enumerable:true,get:function(){return l.base64decode}});Object.defineProperty(n,"base64encode",{enumerable:true,get:function(){return l.base64encode}});var u=s(58950);Object.defineProperty(n,"utf8read",{enumerable:true,get:function(){return u.utf8read}});var d=s(54816);Object.defineProperty(n,"WireType",{enumerable:true,get:function(){return d.WireType}});Object.defineProperty(n,"mergeBinaryOptions",{enumerable:true,get:function(){return d.mergeBinaryOptions}});Object.defineProperty(n,"UnknownFieldHandler",{enumerable:true,get:function(){return d.UnknownFieldHandler}});var A=s(92889);Object.defineProperty(n,"BinaryReader",{enumerable:true,get:function(){return A.BinaryReader}});Object.defineProperty(n,"binaryReadOptions",{enumerable:true,get:function(){return A.binaryReadOptions}});var p=s(23957);Object.defineProperty(n,"BinaryWriter",{enumerable:true,get:function(){return p.BinaryWriter}});Object.defineProperty(n,"binaryWriteOptions",{enumerable:true,get:function(){return p.binaryWriteOptions}});var f=s(61753);Object.defineProperty(n,"PbLong",{enumerable:true,get:function(){return f.PbLong}});Object.defineProperty(n,"PbULong",{enumerable:true,get:function(){return f.PbULong}});var g=s(29367);Object.defineProperty(n,"jsonReadOptions",{enumerable:true,get:function(){return g.jsonReadOptions}});Object.defineProperty(n,"jsonWriteOptions",{enumerable:true,get:function(){return g.jsonWriteOptions}});Object.defineProperty(n,"mergeJsonOptions",{enumerable:true,get:function(){return g.mergeJsonOptions}});var y=s(43785);Object.defineProperty(n,"MESSAGE_TYPE",{enumerable:true,get:function(){return y.MESSAGE_TYPE}});var b=s(15106);Object.defineProperty(n,"MessageType",{enumerable:true,get:function(){return b.MessageType}});var C=s(67910);Object.defineProperty(n,"ScalarType",{enumerable:true,get:function(){return C.ScalarType}});Object.defineProperty(n,"LongType",{enumerable:true,get:function(){return C.LongType}});Object.defineProperty(n,"RepeatType",{enumerable:true,get:function(){return C.RepeatType}});Object.defineProperty(n,"normalizeFieldInfo",{enumerable:true,get:function(){return C.normalizeFieldInfo}});Object.defineProperty(n,"readFieldOptions",{enumerable:true,get:function(){return C.readFieldOptions}});Object.defineProperty(n,"readFieldOption",{enumerable:true,get:function(){return C.readFieldOption}});Object.defineProperty(n,"readMessageOption",{enumerable:true,get:function(){return C.readMessageOption}});var w=s(25167);Object.defineProperty(n,"ReflectionTypeCheck",{enumerable:true,get:function(){return w.ReflectionTypeCheck}});var B=s(75726);Object.defineProperty(n,"reflectionCreate",{enumerable:true,get:function(){return B.reflectionCreate}});var I=s(19526);Object.defineProperty(n,"reflectionScalarDefault",{enumerable:true,get:function(){return I.reflectionScalarDefault}});var S=s(98044);Object.defineProperty(n,"reflectionMergePartial",{enumerable:true,get:function(){return S.reflectionMergePartial}});var Q=s(4827);Object.defineProperty(n,"reflectionEquals",{enumerable:true,get:function(){return Q.reflectionEquals}});var v=s(89611);Object.defineProperty(n,"ReflectionBinaryReader",{enumerable:true,get:function(){return v.ReflectionBinaryReader}});var R=s(66907);Object.defineProperty(n,"ReflectionBinaryWriter",{enumerable:true,get:function(){return R.ReflectionBinaryWriter}});var N=s(46790);Object.defineProperty(n,"ReflectionJsonReader",{enumerable:true,get:function(){return N.ReflectionJsonReader}});var x=s(11094);Object.defineProperty(n,"ReflectionJsonWriter",{enumerable:true,get:function(){return x.ReflectionJsonWriter}});var D=s(59946);Object.defineProperty(n,"containsMessageType",{enumerable:true,get:function(){return D.containsMessageType}});var T=s(18063);Object.defineProperty(n,"isOneofGroup",{enumerable:true,get:function(){return T.isOneofGroup}});Object.defineProperty(n,"setOneofValue",{enumerable:true,get:function(){return T.setOneofValue}});Object.defineProperty(n,"getOneofValue",{enumerable:true,get:function(){return T.getOneofValue}});Object.defineProperty(n,"clearOneofValue",{enumerable:true,get:function(){return T.clearOneofValue}});Object.defineProperty(n,"getSelectedOneofValue",{enumerable:true,get:function(){return T.getSelectedOneofValue}});var k=s(70257);Object.defineProperty(n,"listEnumValues",{enumerable:true,get:function(){return k.listEnumValues}});Object.defineProperty(n,"listEnumNames",{enumerable:true,get:function(){return k.listEnumNames}});Object.defineProperty(n,"listEnumNumbers",{enumerable:true,get:function(){return k.listEnumNumbers}});Object.defineProperty(n,"isEnumObject",{enumerable:true,get:function(){return k.isEnumObject}});var _=s(4073);Object.defineProperty(n,"lowerCamelCase",{enumerable:true,get:function(){return _.lowerCamelCase}});var P=s(8602);Object.defineProperty(n,"assert",{enumerable:true,get:function(){return P.assert}});Object.defineProperty(n,"assertNever",{enumerable:true,get:function(){return P.assertNever}});Object.defineProperty(n,"assertInt32",{enumerable:true,get:function(){return P.assertInt32}});Object.defineProperty(n,"assertUInt32",{enumerable:true,get:function(){return P.assertUInt32}});Object.defineProperty(n,"assertFloat32",{enumerable:true,get:function(){return P.assertFloat32}})},29367:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.mergeJsonOptions=n.jsonWriteOptions=n.jsonReadOptions=void 0;const s={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},a={ignoreUnknownFields:false};function jsonReadOptions(r){return r?Object.assign(Object.assign({},a),r):a}n.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(r){return r?Object.assign(Object.assign({},s),r):s}n.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(r,n){var s,a;let l=Object.assign(Object.assign({},r),n);l.typeRegistry=[...(s=r===null||r===void 0?void 0:r.typeRegistry)!==null&&s!==void 0?s:[],...(a=n===null||n===void 0?void 0:n.typeRegistry)!==null&&a!==void 0?a:[]];return l}n.mergeJsonOptions=mergeJsonOptions},49999:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isJsonObject=n.typeofJsonValue=void 0;function typeofJsonValue(r){let n=typeof r;if(n=="object"){if(Array.isArray(r))return"array";if(r===null)return"null"}return n}n.typeofJsonValue=typeofJsonValue;function isJsonObject(r){return r!==null&&typeof r=="object"&&!Array.isArray(r)}n.isJsonObject=isJsonObject},4073:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.lowerCamelCase=void 0;function lowerCamelCase(r){let n=false;const s=[];for(let a=0;a{Object.defineProperty(n,"__esModule",{value:true});n.MESSAGE_TYPE=void 0;n.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},15106:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.MessageType=void 0;const a=s(43785);const l=s(67910);const u=s(25167);const d=s(46790);const A=s(11094);const p=s(89611);const f=s(66907);const g=s(75726);const y=s(98044);const b=s(49999);const C=s(29367);const w=s(4827);const B=s(23957);const I=s(92889);const S=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const Q=S[a.MESSAGE_TYPE]={};class MessageType{constructor(r,n,s){this.defaultCheckDepth=16;this.typeName=r;this.fields=n.map(l.normalizeFieldInfo);this.options=s!==null&&s!==void 0?s:{};Q.value=this;this.messagePrototype=Object.create(null,S);this.refTypeCheck=new u.ReflectionTypeCheck(this);this.refJsonReader=new d.ReflectionJsonReader(this);this.refJsonWriter=new A.ReflectionJsonWriter(this);this.refBinReader=new p.ReflectionBinaryReader(this);this.refBinWriter=new f.ReflectionBinaryWriter(this)}create(r){let n=g.reflectionCreate(this);if(r!==undefined){y.reflectionMergePartial(this,n,r)}return n}clone(r){let n=this.create();y.reflectionMergePartial(this,n,r);return n}equals(r,n){return w.reflectionEquals(this,r,n)}is(r,n=this.defaultCheckDepth){return this.refTypeCheck.is(r,n,false)}isAssignable(r,n=this.defaultCheckDepth){return this.refTypeCheck.is(r,n,true)}mergePartial(r,n){y.reflectionMergePartial(this,r,n)}fromBinary(r,n){let s=I.binaryReadOptions(n);return this.internalBinaryRead(s.readerFactory(r),r.byteLength,s)}fromJson(r,n){return this.internalJsonRead(r,C.jsonReadOptions(n))}fromJsonString(r,n){let s=JSON.parse(r);return this.fromJson(s,n)}toJson(r,n){return this.internalJsonWrite(r,C.jsonWriteOptions(n))}toJsonString(r,n){var s;let a=this.toJson(r,n);return JSON.stringify(a,null,(s=n===null||n===void 0?void 0:n.prettySpaces)!==null&&s!==void 0?s:0)}toBinary(r,n){let s=B.binaryWriteOptions(n);return this.internalBinaryWrite(r,s.writerFactory(),s).finish()}internalJsonRead(r,n,s){if(r!==null&&typeof r=="object"&&!Array.isArray(r)){let a=s!==null&&s!==void 0?s:this.create();this.refJsonReader.read(r,a,n);return a}throw new Error(`Unable to parse message ${this.typeName} from JSON ${b.typeofJsonValue(r)}.`)}internalJsonWrite(r,n){return this.refJsonWriter.write(r,n)}internalBinaryWrite(r,n,s){this.refBinWriter.write(r,n,s);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create();this.refBinReader.read(r,l,s,n);return l}}n.MessageType=MessageType},18063:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.getSelectedOneofValue=n.clearOneofValue=n.setUnknownOneofValue=n.setOneofValue=n.getOneofValue=n.isOneofGroup=void 0;function isOneofGroup(r){if(typeof r!="object"||r===null||!r.hasOwnProperty("oneofKind")){return false}switch(typeof r.oneofKind){case"string":if(r[r.oneofKind]===undefined)return false;return Object.keys(r).length==2;case"undefined":return Object.keys(r).length==1;default:return false}}n.isOneofGroup=isOneofGroup;function getOneofValue(r,n){return r[n]}n.getOneofValue=getOneofValue;function setOneofValue(r,n,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=n;if(s!==undefined){r[n]=s}}n.setOneofValue=setOneofValue;function setUnknownOneofValue(r,n,s){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=n;if(s!==undefined&&n!==undefined){r[n]=s}}n.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(r){if(r.oneofKind!==undefined){delete r[r.oneofKind]}r.oneofKind=undefined}n.clearOneofValue=clearOneofValue;function getSelectedOneofValue(r){if(r.oneofKind===undefined){return undefined}return r[r.oneofKind]}n.getSelectedOneofValue=getSelectedOneofValue},61753:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.PbLong=n.PbULong=n.detectBi=void 0;const a=s(93223);let l;function detectBi(){const r=new DataView(new ArrayBuffer(8));const n=globalThis.BigInt!==undefined&&typeof r.getBigInt64==="function"&&typeof r.getBigUint64==="function"&&typeof r.setBigInt64==="function"&&typeof r.setBigUint64==="function";l=n?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:r}:undefined}n.detectBi=detectBi;detectBi();function assertBi(r){if(!r)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const u=/^-?[0-9]+$/;const d=4294967296;const A=2147483648;class SharedPbLong{constructor(r,n){this.lo=r|0;this.hi=n|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let r=this.hi*d+(this.lo>>>0);if(!Number.isSafeInteger(r))throw new Error("cannot convert to safe number");return r}}class PbULong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.UMAX)throw new Error("ulong too large");l.V.setBigUint64(0,r,true);return new PbULong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!u.test(r))throw new Error("string is no integer");let[n,s,l]=a.int64fromString(r);if(n)throw new Error("signed value for ulong");return new PbULong(s,l);case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");if(r<0)throw new Error("signed value for ulong");return new PbULong(r,r/d)}throw new Error("unknown value "+typeof r)}toString(){return l?this.toBigInt().toString():a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigUint64(0,true)}}n.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(r){if(l)switch(typeof r){case"string":if(r=="0")return this.ZERO;if(r=="")throw new Error("string is no integer");r=l.C(r);case"number":if(r===0)return this.ZERO;r=l.C(r);case"bigint":if(!r)return this.ZERO;if(rl.MAX)throw new Error("signed long too large");l.V.setBigInt64(0,r,true);return new PbLong(l.V.getInt32(0,true),l.V.getInt32(4,true))}else switch(typeof r){case"string":if(r=="0")return this.ZERO;r=r.trim();if(!u.test(r))throw new Error("string is no integer");let[n,s,l]=a.int64fromString(r);if(n){if(l>A||l==A&&s!=0)throw new Error("signed long too small")}else if(l>=A)throw new Error("signed long too large");let p=new PbLong(s,l);return n?p.negate():p;case"number":if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw new Error("number is no integer");return r>0?new PbLong(r,r/d):new PbLong(-r,-r/d).negate()}throw new Error("unknown value "+typeof r)}isNegative(){return(this.hi&A)!==0}negate(){let r=~this.hi,n=this.lo;if(n)n=~n+1;else r+=1;return new PbLong(n,r)}toString(){if(l)return this.toBigInt().toString();if(this.isNegative()){let r=this.negate();return"-"+a.int64toString(r.lo,r.hi)}return a.int64toString(this.lo,this.hi)}toBigInt(){assertBi(l);l.V.setInt32(0,this.lo,true);l.V.setInt32(4,this.hi,true);return l.V.getBigInt64(0,true)}}n.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},58950:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.utf8read=void 0;const fromCharCodes=r=>String.fromCharCode.apply(String,r);function utf8read(r){if(r.length<1)return"";let n=0,s=[],a=[],l=0,u;let d=r.length;while(n191&&u<224)a[l++]=(u&31)<<6|r[n++]&63;else if(u>239&&u<365){u=((u&7)<<18|(r[n++]&63)<<12|(r[n++]&63)<<6|r[n++]&63)-65536;a[l++]=55296+(u>>10);a[l++]=56320+(u&1023)}else a[l++]=(u&15)<<12|(r[n++]&63)<<6|r[n++]&63;if(l>8191){s.push(fromCharCodes(a));l=0}}if(s.length){if(l)s.push(fromCharCodes(a.slice(0,l)));return s.join("")}return fromCharCodes(a.slice(0,l))}n.utf8read=utf8read},89611:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionBinaryReader=void 0;const a=s(54816);const l=s(67910);const u=s(63402);const d=s(19526);class ReflectionBinaryReader{constructor(r){this.info=r}prepare(){var r;if(!this.fieldNoToField){const n=(r=this.info.fields)!==null&&r!==void 0?r:[];this.fieldNoToField=new Map(n.map((r=>[r.no,r])))}}read(r,n,s,u){this.prepare();const d=u===undefined?r.len:r.pos+u;while(r.pos{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionBinaryWriter=void 0;const a=s(54816);const l=s(67910);const u=s(8602);const d=s(61753);class ReflectionBinaryWriter{constructor(r){this.info=r}prepare(){if(!this.fields){const r=this.info.fields?this.info.fields.concat():[];this.fields=r.sort(((r,n)=>r.no-n.no))}}write(r,n,s){this.prepare();for(const a of this.fields){let d,A,p=a.repeat,f=a.localName;if(a.oneof){const n=r[a.oneof];if(n.oneofKind!==f)continue;d=n[f];A=true}else{d=r[f];A=false}switch(a.kind){case"scalar":case"enum":let r=a.kind=="enum"?l.ScalarType.INT32:a.T;if(p){u.assert(Array.isArray(d));if(p==l.RepeatType.PACKED)this.packed(n,r,a.no,d);else for(const s of d)this.scalar(n,r,a.no,s,true)}else if(d===undefined)u.assert(a.opt);else this.scalar(n,r,a.no,d,A||a.opt);break;case"message":if(p){u.assert(Array.isArray(d));for(const r of d)this.message(n,s,a.T(),a.no,r)}else{this.message(n,s,a.T(),a.no,d)}break;case"map":u.assert(typeof d=="object"&&d!==null);for(const[r,l]of Object.entries(d))this.mapEntry(n,s,a,r,l);break}}let d=s.writeUnknownFields;if(d!==false)(d===true?a.UnknownFieldHandler.onWrite:d)(this.info.typeName,r,n)}mapEntry(r,n,s,d,A){r.tag(s.no,a.WireType.LengthDelimited);r.fork();let p=d;switch(s.K){case l.ScalarType.INT32:case l.ScalarType.FIXED32:case l.ScalarType.UINT32:case l.ScalarType.SFIXED32:case l.ScalarType.SINT32:p=Number.parseInt(d);break;case l.ScalarType.BOOL:u.assert(d=="true"||d=="false");p=d=="true";break}this.scalar(r,s.K,1,p,true);switch(s.V.kind){case"scalar":this.scalar(r,s.V.T,2,A,true);break;case"enum":this.scalar(r,l.ScalarType.INT32,2,A,true);break;case"message":this.message(r,n,s.V.T(),2,A);break}r.join()}message(r,n,s,l,u){if(u===undefined)return;s.internalBinaryWrite(u,r.tag(l,a.WireType.LengthDelimited).fork(),n);r.join()}scalar(r,n,s,a,l){let[u,d,A]=this.scalarInfo(n,a);if(!A||l){r.tag(s,u);r[d](a)}}packed(r,n,s,d){if(!d.length)return;u.assert(n!==l.ScalarType.BYTES&&n!==l.ScalarType.STRING);r.tag(s,a.WireType.LengthDelimited);r.fork();let[,A]=this.scalarInfo(n);for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.containsMessageType=void 0;const a=s(43785);function containsMessageType(r){return r[a.MESSAGE_TYPE]!=null}n.containsMessageType=containsMessageType},75726:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionCreate=void 0;const a=s(19526);const l=s(43785);function reflectionCreate(r){const n=r.messagePrototype?Object.create(r.messagePrototype):Object.defineProperty({},l.MESSAGE_TYPE,{value:r});for(let s of r.fields){let r=s.localName;if(s.opt)continue;if(s.oneof)n[s.oneof]={oneofKind:undefined};else if(s.repeat)n[r]=[];else switch(s.kind){case"scalar":n[r]=a.reflectionScalarDefault(s.T,s.L);break;case"enum":n[r]=0;break;case"map":n[r]={};break}}return n}n.reflectionCreate=reflectionCreate},4827:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionEquals=void 0;const a=s(67910);function reflectionEquals(r,n,s){if(n===s)return true;if(!n||!s)return false;for(let u of r.fields){let r=u.localName;let d=u.oneof?n[u.oneof][r]:n[r];let A=u.oneof?s[u.oneof][r]:s[r];switch(u.kind){case"enum":case"scalar":let r=u.kind=="enum"?a.ScalarType.INT32:u.T;if(!(u.repeat?repeatedPrimitiveEq(r,d,A):primitiveEq(r,d,A)))return false;break;case"map":if(!(u.V.kind=="message"?repeatedMsgEq(u.V.T(),l(d),l(A)):repeatedPrimitiveEq(u.V.kind=="enum"?a.ScalarType.INT32:u.V.T,l(d),l(A))))return false;break;case"message":let n=u.T();if(!(u.repeat?repeatedMsgEq(n,d,A):n.equals(d,A)))return false;break}}return true}n.reflectionEquals=reflectionEquals;const l=Object.values;function primitiveEq(r,n,s){if(n===s)return true;if(r!==a.ScalarType.BYTES)return false;let l=n;let u=s;if(l.length!==u.length)return false;for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.readMessageOption=n.readFieldOption=n.readFieldOptions=n.normalizeFieldInfo=n.RepeatType=n.LongType=n.ScalarType=void 0;const a=s(4073);var l;(function(r){r[r["DOUBLE"]=1]="DOUBLE";r[r["FLOAT"]=2]="FLOAT";r[r["INT64"]=3]="INT64";r[r["UINT64"]=4]="UINT64";r[r["INT32"]=5]="INT32";r[r["FIXED64"]=6]="FIXED64";r[r["FIXED32"]=7]="FIXED32";r[r["BOOL"]=8]="BOOL";r[r["STRING"]=9]="STRING";r[r["BYTES"]=12]="BYTES";r[r["UINT32"]=13]="UINT32";r[r["SFIXED32"]=15]="SFIXED32";r[r["SFIXED64"]=16]="SFIXED64";r[r["SINT32"]=17]="SINT32";r[r["SINT64"]=18]="SINT64"})(l=n.ScalarType||(n.ScalarType={}));var u;(function(r){r[r["BIGINT"]=0]="BIGINT";r[r["STRING"]=1]="STRING";r[r["NUMBER"]=2]="NUMBER"})(u=n.LongType||(n.LongType={}));var d;(function(r){r[r["NO"]=0]="NO";r[r["PACKED"]=1]="PACKED";r[r["UNPACKED"]=2]="UNPACKED"})(d=n.RepeatType||(n.RepeatType={}));function normalizeFieldInfo(r){var n,s,l,u;r.localName=(n=r.localName)!==null&&n!==void 0?n:a.lowerCamelCase(r.name);r.jsonName=(s=r.jsonName)!==null&&s!==void 0?s:a.lowerCamelCase(r.name);r.repeat=(l=r.repeat)!==null&&l!==void 0?l:d.NO;r.opt=(u=r.opt)!==null&&u!==void 0?u:r.repeat?false:r.oneof?false:r.kind=="message";return r}n.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(r,n,s,a){var l;const u=(l=r.fields.find(((r,s)=>r.localName==n||s==n)))===null||l===void 0?void 0:l.options;return u&&u[s]?a.fromJson(u[s]):undefined}n.readFieldOptions=readFieldOptions;function readFieldOption(r,n,s,a){var l;const u=(l=r.fields.find(((r,s)=>r.localName==n||s==n)))===null||l===void 0?void 0:l.options;if(!u){return undefined}const d=u[s];if(d===undefined){return d}return a?a.fromJson(d):d}n.readFieldOption=readFieldOption;function readMessageOption(r,n,s){const a=r.options;const l=a[n];if(l===undefined){return l}return s?s.fromJson(l):l}n.readMessageOption=readMessageOption},46790:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionJsonReader=void 0;const a=s(49999);const l=s(26335);const u=s(67910);const d=s(61753);const A=s(8602);const p=s(63402);class ReflectionJsonReader{constructor(r){this.info=r}prepare(){var r;if(this.fMap===undefined){this.fMap={};const n=(r=this.info.fields)!==null&&r!==void 0?r:[];for(const r of n){this.fMap[r.name]=r;this.fMap[r.jsonName]=r;this.fMap[r.localName]=r}}}assert(r,n,s){if(!r){let r=a.typeofJsonValue(s);if(r=="number"||r=="boolean")r=s.toString();throw new Error(`Cannot parse JSON ${r} for ${this.info.typeName}#${n}`)}}read(r,n,s){this.prepare();const l=[];for(const[d,A]of Object.entries(r)){const r=this.fMap[d];if(!r){if(!s.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${d}`);continue}const p=r.localName;let f;if(r.oneof){if(A===null&&(r.kind!=="enum"||r.T()[0]!=="google.protobuf.NullValue")){continue}if(l.includes(r.oneof))throw new Error(`Multiple members of the oneof group "${r.oneof}" of ${this.info.typeName} are present in JSON.`);l.push(r.oneof);f=n[r.oneof]={oneofKind:p}}else{f=n}if(r.kind=="map"){if(A===null){continue}this.assert(a.isJsonObject(A),r.name,A);const n=f[p];for(const[a,l]of Object.entries(A)){this.assert(l!==null,r.name+" map value",null);let d;switch(r.V.kind){case"message":d=r.V.T().internalJsonRead(l,s);break;case"enum":d=this.enum(r.V.T(),l,r.name,s.ignoreUnknownFields);if(d===false)continue;break;case"scalar":d=this.scalar(l,r.V.T,r.V.L,r.name);break}this.assert(d!==undefined,r.name+" map value",l);let A=a;if(r.K==u.ScalarType.BOOL)A=A=="true"?true:A=="false"?false:A;A=this.scalar(A,r.K,u.LongType.STRING,r.name).toString();n[A]=d}}else if(r.repeat){if(A===null)continue;this.assert(Array.isArray(A),r.name,A);const n=f[p];for(const a of A){this.assert(a!==null,r.name,null);let l;switch(r.kind){case"message":l=r.T().internalJsonRead(a,s);break;case"enum":l=this.enum(r.T(),a,r.name,s.ignoreUnknownFields);if(l===false)continue;break;case"scalar":l=this.scalar(a,r.T,r.L,r.name);break}this.assert(l!==undefined,r.name,A);n.push(l)}}else{switch(r.kind){case"message":if(A===null&&r.T().typeName!="google.protobuf.Value"){this.assert(r.oneof===undefined,r.name+" (oneof member)",null);continue}f[p]=r.T().internalJsonRead(A,s,f[p]);break;case"enum":if(A===null)continue;let n=this.enum(r.T(),A,r.name,s.ignoreUnknownFields);if(n===false)continue;f[p]=n;break;case"scalar":if(A===null)continue;f[p]=this.scalar(A,r.T,r.L,r.name);break}}}}enum(r,n,s,a){if(r[0]=="google.protobuf.NullValue")A.assert(n===null||n==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} only accepts null.`);if(n===null)return 0;switch(typeof n){case"number":A.assert(Number.isInteger(n),`Unable to parse field ${this.info.typeName}#${s}, enum can only be integral number, got ${n}.`);return n;case"string":let l=n;if(r[2]&&n.substring(0,r[2].length)===r[2])l=n.substring(r[2].length);let u=r[1][l];if(typeof u==="undefined"&&a){return false}A.assert(typeof u=="number",`Unable to parse field ${this.info.typeName}#${s}, enum ${r[0]} has no value for "${n}".`);return u}A.assert(false,`Unable to parse field ${this.info.typeName}#${s}, cannot parse enum value from ${typeof n}".`)}scalar(r,n,s,a){let f;try{switch(n){case u.ScalarType.DOUBLE:case u.ScalarType.FLOAT:if(r===null)return 0;if(r==="NaN")return Number.NaN;if(r==="Infinity")return Number.POSITIVE_INFINITY;if(r==="-Infinity")return Number.NEGATIVE_INFINITY;if(r===""){f="empty string";break}if(typeof r=="string"&&r.trim().length!==r.length){f="extra whitespace";break}if(typeof r!="string"&&typeof r!="number"){break}let a=Number(r);if(Number.isNaN(a)){f="not a number";break}if(!Number.isFinite(a)){f="too large or small";break}if(n==u.ScalarType.FLOAT)A.assertFloat32(a);return a;case u.ScalarType.INT32:case u.ScalarType.FIXED32:case u.ScalarType.SFIXED32:case u.ScalarType.SINT32:case u.ScalarType.UINT32:if(r===null)return 0;let g;if(typeof r=="number")g=r;else if(r==="")f="empty string";else if(typeof r=="string"){if(r.trim().length!==r.length)f="extra whitespace";else g=Number(r)}if(g===undefined)break;if(n==u.ScalarType.UINT32)A.assertUInt32(g);else A.assertInt32(g);return g;case u.ScalarType.INT64:case u.ScalarType.SFIXED64:case u.ScalarType.SINT64:if(r===null)return p.reflectionLongConvert(d.PbLong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return p.reflectionLongConvert(d.PbLong.from(r),s);case u.ScalarType.FIXED64:case u.ScalarType.UINT64:if(r===null)return p.reflectionLongConvert(d.PbULong.ZERO,s);if(typeof r!="number"&&typeof r!="string")break;return p.reflectionLongConvert(d.PbULong.from(r),s);case u.ScalarType.BOOL:if(r===null)return false;if(typeof r!=="boolean")break;return r;case u.ScalarType.STRING:if(r===null)return"";if(typeof r!=="string"){f="extra whitespace";break}try{encodeURIComponent(r)}catch(f){f="invalid UTF8";break}return r;case u.ScalarType.BYTES:if(r===null||r==="")return new Uint8Array(0);if(typeof r!=="string")break;return l.base64decode(r)}}catch(r){f=r.message}this.assert(false,a+(f?" - "+f:""),r)}}n.ReflectionJsonReader=ReflectionJsonReader},11094:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionJsonWriter=void 0;const a=s(26335);const l=s(61753);const u=s(67910);const d=s(8602);class ReflectionJsonWriter{constructor(r){var n;this.fields=(n=r.fields)!==null&&n!==void 0?n:[]}write(r,n){const s={},a=r;for(const r of this.fields){if(!r.oneof){let l=this.field(r,a[r.localName],n);if(l!==undefined)s[n.useProtoFieldName?r.name:r.jsonName]=l;continue}const l=a[r.oneof];if(l.oneofKind!==r.localName)continue;const u=r.kind=="scalar"||r.kind=="enum"?Object.assign(Object.assign({},n),{emitDefaultValues:true}):n;let A=this.field(r,l[r.localName],u);d.assert(A!==undefined);s[n.useProtoFieldName?r.name:r.jsonName]=A}return s}field(r,n,s){let a=undefined;if(r.kind=="map"){d.assert(typeof n=="object"&&n!==null);const l={};switch(r.V.kind){case"scalar":for(const[s,a]of Object.entries(n)){const n=this.scalar(r.V.T,a,r.name,false,true);d.assert(n!==undefined);l[s.toString()]=n}break;case"message":const a=r.V.T();for(const[u,A]of Object.entries(n)){const n=this.message(a,A,r.name,s);d.assert(n!==undefined);l[u.toString()]=n}break;case"enum":const u=r.V.T();for(const[a,A]of Object.entries(n)){d.assert(A===undefined||typeof A=="number");const n=this.enum(u,A,r.name,false,true,s.enumAsInteger);d.assert(n!==undefined);l[a.toString()]=n}break}if(s.emitDefaultValues||Object.keys(l).length>0)a=l}else if(r.repeat){d.assert(Array.isArray(n));const l=[];switch(r.kind){case"scalar":for(let s=0;s0||s.emitDefaultValues)a=l}else{switch(r.kind){case"scalar":a=this.scalar(r.T,n,r.name,r.opt,s.emitDefaultValues);break;case"enum":a=this.enum(r.T(),n,r.name,r.opt,s.emitDefaultValues,s.enumAsInteger);break;case"message":a=this.message(r.T(),n,r.name,s);break}}return a}enum(r,n,s,a,l,u){if(r[0]=="google.protobuf.NullValue")return!l&&!a?undefined:null;if(n===undefined){d.assert(a);return undefined}if(n===0&&!l&&!a)return undefined;d.assert(typeof n=="number");d.assert(Number.isInteger(n));if(u||!r[1].hasOwnProperty(n))return n;if(r[2])return r[2]+r[1][n];return r[1][n]}message(r,n,s,a){if(n===undefined)return a.emitDefaultValues?null:undefined;return r.internalJsonWrite(n,a)}scalar(r,n,s,A,p){if(n===undefined){d.assert(A);return undefined}const f=p||A;switch(r){case u.ScalarType.INT32:case u.ScalarType.SFIXED32:case u.ScalarType.SINT32:if(n===0)return f?0:undefined;d.assertInt32(n);return n;case u.ScalarType.FIXED32:case u.ScalarType.UINT32:if(n===0)return f?0:undefined;d.assertUInt32(n);return n;case u.ScalarType.FLOAT:d.assertFloat32(n);case u.ScalarType.DOUBLE:if(n===0)return f?0:undefined;d.assert(typeof n=="number");if(Number.isNaN(n))return"NaN";if(n===Number.POSITIVE_INFINITY)return"Infinity";if(n===Number.NEGATIVE_INFINITY)return"-Infinity";return n;case u.ScalarType.STRING:if(n==="")return f?"":undefined;d.assert(typeof n=="string");return n;case u.ScalarType.BOOL:if(n===false)return f?false:undefined;d.assert(typeof n=="boolean");return n;case u.ScalarType.UINT64:case u.ScalarType.FIXED64:d.assert(typeof n=="number"||typeof n=="string"||typeof n=="bigint");let r=l.PbULong.from(n);if(r.isZero()&&!f)return undefined;return r.toString();case u.ScalarType.INT64:case u.ScalarType.SFIXED64:case u.ScalarType.SINT64:d.assert(typeof n=="number"||typeof n=="string"||typeof n=="bigint");let s=l.PbLong.from(n);if(s.isZero()&&!f)return undefined;return s.toString();case u.ScalarType.BYTES:d.assert(n instanceof Uint8Array);if(!n.byteLength)return f?"":undefined;return a.base64encode(n)}}}n.ReflectionJsonWriter=ReflectionJsonWriter},63402:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionLongConvert=void 0;const a=s(67910);function reflectionLongConvert(r,n){switch(n){case a.LongType.BIGINT:return r.toBigInt();case a.LongType.NUMBER:return r.toNumber();default:return r.toString()}}n.reflectionLongConvert=reflectionLongConvert},98044:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.reflectionMergePartial=void 0;function reflectionMergePartial(r,n,s){let a,l=s,u;for(let s of r.fields){let r=s.localName;if(s.oneof){const d=l[s.oneof];if((d===null||d===void 0?void 0:d.oneofKind)==undefined){continue}a=d[r];u=n[s.oneof];u.oneofKind=d.oneofKind;if(a==undefined){delete u[r];continue}}else{a=l[r];u=n;if(a==undefined){continue}}if(s.repeat)u[r].length=a.length;switch(s.kind){case"scalar":case"enum":if(s.repeat)for(let n=0;n{Object.defineProperty(n,"__esModule",{value:true});n.reflectionScalarDefault=void 0;const a=s(67910);const l=s(63402);const u=s(61753);function reflectionScalarDefault(r,n=a.LongType.STRING){switch(r){case a.ScalarType.BOOL:return false;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:return l.reflectionLongConvert(u.PbULong.ZERO,n);case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:return l.reflectionLongConvert(u.PbLong.ZERO,n);case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:return 0;case a.ScalarType.BYTES:return new Uint8Array(0);case a.ScalarType.STRING:return"";default:return 0}}n.reflectionScalarDefault=reflectionScalarDefault},25167:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.ReflectionTypeCheck=void 0;const a=s(67910);const l=s(18063);class ReflectionTypeCheck{constructor(r){var n;this.fields=(n=r.fields)!==null&&n!==void 0?n:[]}prepare(){if(this.data)return;const r=[],n=[],s=[];for(let a of this.fields){if(a.oneof){if(!s.includes(a.oneof)){s.push(a.oneof);r.push(a.oneof);n.push(a.oneof)}}else{n.push(a.localName);switch(a.kind){case"scalar":case"enum":if(!a.opt||a.repeat)r.push(a.localName);break;case"message":if(a.repeat)r.push(a.localName);break;case"map":r.push(a.localName);break}}}this.data={req:r,known:n,oneofs:Object.values(s)}}is(r,n,s=false){if(n<0)return true;if(r===null||r===undefined||typeof r!="object")return false;this.prepare();let a=Object.keys(r),u=this.data;if(a.length!a.includes(r))))return false;if(!s){if(a.some((r=>!u.known.includes(r))))return false}if(n<1){return true}for(const a of u.oneofs){const u=r[a];if(!l.isOneofGroup(u))return false;if(u.oneofKind===undefined)continue;const d=this.fields.find((r=>r.localName===u.oneofKind));if(!d)return false;if(!this.field(u[u.oneofKind],d,s,n))return false}for(const a of this.fields){if(a.oneof!==undefined)continue;if(!this.field(r[a.localName],a,s,n))return false}return true}field(r,n,s,l){let u=n.repeat;switch(n.kind){case"scalar":if(r===undefined)return n.opt;if(u)return this.scalars(r,n.T,l,n.L);return this.scalar(r,n.T,n.L);case"enum":if(r===undefined)return n.opt;if(u)return this.scalars(r,a.ScalarType.INT32,l);return this.scalar(r,a.ScalarType.INT32);case"message":if(r===undefined)return true;if(u)return this.messages(r,n.T(),s,l);return this.message(r,n.T(),s,l);case"map":if(typeof r!="object"||r===null)return false;if(l<2)return true;if(!this.mapKeys(r,n.K,l))return false;switch(n.V.kind){case"scalar":return this.scalars(Object.values(r),n.V.T,l,n.V.L);case"enum":return this.scalars(Object.values(r),a.ScalarType.INT32,l);case"message":return this.messages(Object.values(r),n.V.T(),s,l)}break}return true}message(r,n,s,a){if(s){return n.isAssignable(r,a)}return n.is(r,a)}messages(r,n,s,a){if(!Array.isArray(r))return false;if(a<2)return true;if(s){for(let s=0;sparseInt(r))),n,s);case a.ScalarType.BOOL:return this.scalars(l.slice(0,s).map((r=>r=="true"?true:r=="false"?false:r)),n,s);default:return this.scalars(l,n,s,a.LongType.STRING)}}}n.ReflectionTypeCheck=ReflectionTypeCheck},17413:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});var a=s(16577);class AbortSignal extends a.EventTarget{constructor(){super();throw new TypeError("AbortSignal cannot be constructed directly")}get aborted(){const r=l.get(this);if(typeof r!=="boolean"){throw new TypeError(`Expected 'this' to be an 'AbortSignal' object, but got ${this===null?"null":typeof this}`)}return r}}a.defineEventAttribute(AbortSignal.prototype,"abort");function createAbortSignal(){const r=Object.create(AbortSignal.prototype);a.EventTarget.call(r);l.set(r,false);return r}function abortSignal(r){if(l.get(r)!==false){return}l.set(r,true);r.dispatchEvent({type:"abort"})}const l=new WeakMap;Object.defineProperties(AbortSignal.prototype,{aborted:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortSignal.prototype,Symbol.toStringTag,{configurable:true,value:"AbortSignal"})}class AbortController{constructor(){u.set(this,createAbortSignal())}get signal(){return getSignal(this)}abort(){abortSignal(getSignal(this))}}const u=new WeakMap;function getSignal(r){const n=u.get(r);if(n==null){throw new TypeError(`Expected 'this' to be an 'AbortController' object, but got ${r===null?"null":typeof r}`)}return n}Object.defineProperties(AbortController.prototype,{signal:{enumerable:true},abort:{enumerable:true}});if(typeof Symbol==="function"&&typeof Symbol.toStringTag==="symbol"){Object.defineProperty(AbortController.prototype,Symbol.toStringTag,{configurable:true,value:"AbortController"})}n.AbortController=AbortController;n.AbortSignal=AbortSignal;n["default"]=AbortController;r.exports=AbortController;r.exports.AbortController=r.exports["default"]=AbortController;r.exports.AbortSignal=AbortSignal},15183:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};Object.defineProperty(n,"__esModule",{value:true});n.req=n.json=n.toBuffer=void 0;const d=u(s(58611));const A=u(s(65692));async function toBuffer(r){let n=0;const s=[];for await(const a of r){n+=a.length;s.push(a)}return Buffer.concat(s,n)}n.toBuffer=toBuffer;async function json(r){const n=await toBuffer(r);const s=n.toString("utf8");try{return JSON.parse(s)}catch(r){const n=r;n.message+=` (input: ${s})`;throw n}}n.json=json;function req(r,n={}){const s=typeof r==="string"?r:r.href;const a=(s.startsWith("https:")?A:d).request(r,n);const l=new Promise(((r,n)=>{a.once("response",r).once("error",n).end()}));a.then=l.then.bind(l);return a}n.req=req},98894:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__exportStar||function(r,n){for(var s in r)if(s!=="default"&&!Object.prototype.hasOwnProperty.call(n,s))a(n,r,s)};Object.defineProperty(n,"__esModule",{value:true});n.Agent=void 0;const A=u(s(69278));const p=u(s(58611));const f=s(65692);d(s(15183),n);const g=Symbol("AgentBaseInternalState");class Agent extends p.Agent{constructor(r){super(r);this[g]={}}isSecureEndpoint(r){if(r){if(typeof r.secureEndpoint==="boolean"){return r.secureEndpoint}if(typeof r.protocol==="string"){return r.protocol==="https:"}}const{stack:n}=new Error;if(typeof n!=="string")return false;return n.split("\n").some((r=>r.indexOf("(https.js:")!==-1||r.indexOf("node:https:")!==-1))}incrementSockets(r){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[r]){this.sockets[r]=[]}const n=new A.Socket({writable:false});this.sockets[r].push(n);this.totalSocketCount++;return n}decrementSockets(r,n){if(!this.sockets[r]||n===null){return}const s=this.sockets[r];const a=s.indexOf(n);if(a!==-1){s.splice(a,1);this.totalSocketCount--;if(s.length===0){delete this.sockets[r]}}}getName(r){const n=this.isSecureEndpoint(r);if(n){return f.Agent.prototype.getName.call(this,r)}return super.getName(r)}createSocket(r,n,s){const a={...n,secureEndpoint:this.isSecureEndpoint(n)};const l=this.getName(a);const u=this.incrementSockets(l);Promise.resolve().then((()=>this.connect(r,a))).then((d=>{this.decrementSockets(l,u);if(d instanceof p.Agent){try{return d.addRequest(r,a)}catch(r){return s(r)}}this[g].currentSocket=d;super.createSocket(r,n,s)}),(r=>{this.decrementSockets(l,u);s(r)}))}createConnection(){const r=this[g].currentSocket;this[g].currentSocket=undefined;if(!r){throw new Error("No socket was returned in the `connect()` function")}return r}get defaultPort(){return this[g].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(r){if(this[g]){this[g].defaultPort=r}}get protocol(){return this[g].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(r){if(this[g]){this[g].protocol=r}}}n.Agent=Agent},38816:(r,n,s)=>{var a=s(35744);var l=s(16928);var u=s(97047);var d=s(57294);var A=s(73270);var p=s(36542);var f=s(21363);var g=r.exports={};var y=/[\/\\]/g;var processPatterns=function(r,n){var s=[];u(r).forEach((function(r){var a=r.indexOf("!")===0;if(a){r=r.slice(1)}var l=n(r);if(a){s=d(s,l)}else{s=A(s,l)}}));return s};g.exists=function(){var r=l.join.apply(l,arguments);return a.existsSync(r)};g.expand=function(...r){var n=p(r[0])?r.shift():{};var s=Array.isArray(r[0])?r[0]:r;if(s.length===0){return[]}var u=processPatterns(s,(function(r){return f.sync(r,n)}));if(n.filter){u=u.filter((function(r){r=l.join(n.cwd||"",r);try{if(typeof n.filter==="function"){return n.filter(r)}else{return a.statSync(r)[n.filter]()}}catch(r){return false}}))}return u};g.expandMapping=function(r,n,s){s=Object.assign({rename:function(r,n){return l.join(r||"",n)}},s);var a=[];var u={};g.expand(s,r).forEach((function(r){var d=r;if(s.flatten){d=l.basename(d)}if(s.ext){d=d.replace(/(\.[^\/]*)?$/,s.ext)}var A=s.rename(n,d,s);if(s.cwd){r=l.join(s.cwd,r)}A=A.replace(y,"/");r=r.replace(y,"/");if(u[A]){u[A].src.push(r)}else{a.push({src:[r],dest:A});u[A]=a[a.length-1]}}));return a};g.normalizeFilesArray=function(r){var n=[];r.forEach((function(r){var s;if("src"in r||"dest"in r){n.push(r)}}));if(n.length===0){return[]}n=_(n).chain().forEach((function(r){if(!("src"in r)||!r.src){return}if(Array.isArray(r.src)){r.src=u(r.src)}else{r.src=[r.src]}})).map((function(r){var n=Object.assign({},r);delete n.src;delete n.dest;if(r.expand){return g.expandMapping(r.src,r.dest,n).map((function(n){var s=Object.assign({},r);s.orig=Object.assign({},r);s.src=n.src;s.dest=n.dest;["expand","cwd","flatten","rename","ext"].forEach((function(r){delete s[r]}));return s}))}var s=Object.assign({},r);s.orig=Object.assign({},r);if("src"in s){Object.defineProperty(s,"src",{enumerable:true,get:function fn(){var s;if(!("result"in fn)){s=r.src;s=Array.isArray(s)?u(s):[s];fn.result=g.expand(n,s)}return fn.result}})}if("dest"in s){s.dest=r.dest}return s})).flatten().value();return n}},53296:(r,n,s)=>{var a=s(35744);var l=s(16928);var u=s(96543);var d=s(32126);var A=s(56133);var p=s(7511);var f=s(2203).Stream;var g=s(29963).PassThrough;var y=r.exports={};y.file=s(38816);y.collectStream=function(r,n){var s=[];var a=0;r.on("error",n);r.on("data",(function(r){s.push(r);a+=r.length}));r.on("end",(function(){var r=Buffer.alloc(a);var l=0;s.forEach((function(n){n.copy(r,l);l+=n.length}));n(null,r)}))};y.dateify=function(r){r=r||new Date;if(r instanceof Date){r=r}else if(typeof r==="string"){r=new Date(r)}else{r=new Date}return r};y.defaults=function(r,n,s){var a=arguments;a[0]=a[0]||{};return p(...a)};y.isStream=function(r){return u(r)};y.lazyReadStream=function(r){return new d.Readable((function(){return a.createReadStream(r)}))};y.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(y.isStream(r)){return r.pipe(new g)}return r};y.sanitizePath=function(r){return A(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};y.trailingSlashIt=function(r){return r.slice(-1)!=="/"?r+"/":r};y.unixifyPath=function(r){return A(r,false).replace(/^\w+:/,"")};y.walkdir=function(r,n,s){var u=[];if(typeof n==="function"){s=n;n=r}a.readdir(r,(function(d,A){var p=0;var f;var g;if(d){return s(d)}(function next(){f=A[p++];if(!f){return s(null,u)}g=l.join(r,f);a.stat(g,(function(r,a){u.push({path:g,relative:l.relative(n,g).replace(/\\/g,"/"),stats:a});if(a&&a.isDirectory()){y.walkdir(g,n,(function(r,n){if(r){return s(r)}n.forEach((function(r){u.push(r)}));next()}))}else{next()}}))})()}))}},99392:(r,n,s)=>{ /** * Archiver Vending * @@ -6,7 +6,7 @@ import{createRequire as __WEBPACK_EXTERNAL_createRequire}from"module";var __webp * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(77170);var l={};var vending=function(r,n){return vending.create(r,n)};vending.create=function(r,n){if(l[r]){var s=new a(r,n);s.setFormat(r);s.setModule(new l[r](n));return s}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,n){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof n!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof n.prototype.append!=="function"||typeof n.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=n};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",s(92477));vending.registerFormat("tar",s(46125));vending.registerFormat("json",s(60602));r.exports=vending},77170:(r,n,s)=>{ +var a=s(50549);var l={};var vending=function(r,n){return vending.create(r,n)};vending.create=function(r,n){if(l[r]){var s=new a(r,n);s.setFormat(r);s.setModule(new l[r](n));return s}else{throw new Error("create("+r+"): format not registered")}};vending.registerFormat=function(r,n){if(l[r]){throw new Error("register("+r+"): format already registered")}if(typeof n!=="function"){throw new Error("register("+r+"): format module invalid")}if(typeof n.prototype.append!=="function"||typeof n.prototype.finalize!=="function"){throw new Error("register("+r+"): format module missing methods")}l[r]=n};vending.isRegisteredFormat=function(r){if(l[r]){return true}return false};vending.registerFormat("zip",s(22836));vending.registerFormat("tar",s(10396));vending.registerFormat("json",s(54693));r.exports=vending},50549:(r,n,s)=>{ /** * Archiver Core * @@ -14,7 +14,7 @@ var a=s(77170);var l={};var vending=function(r,n){return vending.create(r,n)};ve * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(79896);var l=s(15934);var u=s(14113);var d=s(16928);var A=s(16090);var p=s(39023).inherits;var f=s(4135);var g=s(48924).Transform;var y=process.platform==="win32";var Archiver=function(r,n){if(!(this instanceof Archiver)){return new Archiver(r,n)}if(typeof r!=="string"){n=r;r="zip"}n=this.options=A.defaults(n,{highWaterMark:1024*1024,statConcurrency:4});g.call(this,n);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=u.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=u.queue(this._onStatQueueTask.bind(this),n.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};p(Archiver,g);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,n){n=n||{};var s={source:null,filepath:r};if(!n.name){n.name=r}n.sourcePath=r;s.data=n;this._entriesCount++;if(n.stats&&n.stats instanceof a.Stats){s=this._updateQueueTaskWithStats(s,n.stats);if(s){if(n.stats.size){this._fsEntriesTotalBytes+=n.stats.size}this._queue.push(s)}}else{this._statQueue.push(s)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,n,s){if(this._state.aborted){s();return}this._module.append(r,n,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(s);return}this.emit("entry",n);this._entriesProcessedCount++;if(n.stats&&n.stats.size){this._fsEntriesProcessedBytes+=n.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(s)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new f("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,n){r=A.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(n&&r.stats===false){r.stats=n}var s=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=A.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(typeof r.mode==="number"){if(y){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(y){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(y&&s){r.mode=493}}else if(r.mode===null){r.mode=s?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=A.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,n){var fullCallback=()=>{if(r.data.callback){r.data.callback()}n()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,n){if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}a.lstat(r.filepath,function(s,a){if(this._state.aborted){setImmediate(n);return}if(s){this._entriesCount--;this.emit("warning",s);setImmediate(n);return}r=this._updateQueueTaskWithStats(r,a);if(r){if(a.size){this._fsEntriesTotalBytes+=a.size}this._queue.push(r)}setImmediate(n)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,n,s){if(r){this._pointer+=r.length}s(null,r)};Archiver.prototype._updateQueueTaskWithStats=function(r,n){if(n.isFile()){r.data.type="file";r.data.sourceType="stream";r.source=A.lazyReadStream(r.filepath)}else if(n.isDirectory()&&this._moduleSupports("directory")){r.data.name=A.trailingSlashIt(r.data.name);r.data.type="directory";r.data.sourcePath=A.trailingSlashIt(r.filepath);r.data.sourceType="buffer";r.source=Buffer.concat([])}else if(n.isSymbolicLink()&&this._moduleSupports("symlink")){var s=a.readlinkSync(r.filepath);var l=d.dirname(r.filepath);r.data.type="symlink";r.data.linkname=d.relative(l,d.resolve(l,s));r.data.sourceType="buffer";r.source=Buffer.concat([])}else{if(n.isDirectory()){this.emit("warning",new f("DIRECTORYNOTSUPPORTED",r.data))}else if(n.isSymbolicLink()){this.emit("warning",new f("SYMLINKNOTSUPPORTED",r.data))}else{this.emit("warning",new f("ENTRYNOTSUPPORTED",r.data))}return null}r.data=this._normalizeEntryData(r.data,n);return r};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(r,n){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}n=this._normalizeEntryData(n);if(typeof n.name!=="string"||n.name.length===0){this.emit("error",new f("ENTRYNAMEREQUIRED"));return this}if(n.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new f("DIRECTORYNOTSUPPORTED",{name:n.name}));return this}r=A.normalizeInputSource(r);if(Buffer.isBuffer(r)){n.sourceType="buffer"}else if(A.isStream(r)){n.sourceType="stream"}else{this.emit("error",new f("INPUTSTEAMBUFFERREQUIRED",{name:n.name}));return this}this._entriesCount++;this._queue.push({data:n,source:r});return this};Archiver.prototype.directory=function(r,n,s){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(n===false){n=""}else if(typeof n!=="string"){n=r}var a=false;if(typeof s==="function"){a=s;s={}}else if(typeof s!=="object"){s={}}var u={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(l){d.pause();var u=false;var A=Object.assign({},s);A.name=l.relative;A.prefix=n;A.stats=l.stat;A.callback=d.resume.bind(d);try{if(a){A=a(A);if(A===false){u=true}else if(typeof A!=="object"){throw new f("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:r})}}}catch(r){this.emit("error",r);return}if(u){d.resume();return}this._append(l.absolute,A)}var d=l(r,u);d.on("error",onGlobError.bind(this));d.on("match",onGlobMatch.bind(this));d.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(r,n){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("FILEFILEPATHREQUIRED"));return this}this._append(r,n);return this};Archiver.prototype.glob=function(r,n,s){this._pending++;n=A.defaults(n,{stat:true,pattern:r});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(r){a.pause();var n=Object.assign({},s);n.callback=a.resume.bind(a);n.stats=r.stat;n.name=r.relative;this._append(r.absolute,n)}var a=l(n.cwd||".",n);a.on("error",onGlobError.bind(this));a.on("match",onGlobMatch.bind(this));a.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var r=new f("ABORTED");this.emit("error",r);return Promise.reject(r)}if(this._state.finalize){var n=new f("FINALIZING");this.emit("error",n);return Promise.reject(n)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var s=this;return new Promise((function(r,n){var a;s._module.on("end",(function(){if(!a){r()}}));s._module.on("error",(function(r){a=true;n(r)}))}))};Archiver.prototype.setFormat=function(r){if(this._format){this.emit("error",new f("FORMATSET"));return this}this._format=r;return this};Archiver.prototype.setModule=function(r){if(this._state.aborted){this.emit("error",new f("ABORTED"));return this}if(this._state.module){this.emit("error",new f("MODULESET"));return this}this._module=r;this._modulePipe();return this};Archiver.prototype.symlink=function(r,n,s){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("SYMLINKFILEPATHREQUIRED"));return this}if(typeof n!=="string"||n.length===0){this.emit("error",new f("SYMLINKTARGETREQUIRED",{filepath:r}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new f("SYMLINKNOTSUPPORTED",{filepath:r}));return this}var a={};a.type="symlink";a.name=r.replace(/\\/g,"/");a.linkname=n.replace(/\\/g,"/");a.sourceType="buffer";if(typeof s==="number"){a.mode=s}this._entriesCount++;this._queue.push({data:a,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(r){this._streams.push(r);return this};r.exports=Archiver},4135:(r,n,s)=>{ +var a=s(79896);var l=s(51364);var u=s(97329);var d=s(16928);var A=s(53296);var p=s(39023).inherits;var f=s(13110);var g=s(29963).Transform;var y=process.platform==="win32";var Archiver=function(r,n){if(!(this instanceof Archiver)){return new Archiver(r,n)}if(typeof r!=="string"){n=r;r="zip"}n=this.options=A.defaults(n,{highWaterMark:1024*1024,statConcurrency:4});g.call(this,n);this._format=false;this._module=false;this._pending=0;this._pointer=0;this._entriesCount=0;this._entriesProcessedCount=0;this._fsEntriesTotalBytes=0;this._fsEntriesProcessedBytes=0;this._queue=u.queue(this._onQueueTask.bind(this),1);this._queue.drain(this._onQueueDrain.bind(this));this._statQueue=u.queue(this._onStatQueueTask.bind(this),n.statConcurrency);this._statQueue.drain(this._onQueueDrain.bind(this));this._state={aborted:false,finalize:false,finalizing:false,finalized:false,modulePiped:false};this._streams=[]};p(Archiver,g);Archiver.prototype._abort=function(){this._state.aborted=true;this._queue.kill();this._statQueue.kill();if(this._queue.idle()){this._shutdown()}};Archiver.prototype._append=function(r,n){n=n||{};var s={source:null,filepath:r};if(!n.name){n.name=r}n.sourcePath=r;s.data=n;this._entriesCount++;if(n.stats&&n.stats instanceof a.Stats){s=this._updateQueueTaskWithStats(s,n.stats);if(s){if(n.stats.size){this._fsEntriesTotalBytes+=n.stats.size}this._queue.push(s)}}else{this._statQueue.push(s)}};Archiver.prototype._finalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}this._state.finalizing=true;this._moduleFinalize();this._state.finalizing=false;this._state.finalized=true};Archiver.prototype._maybeFinalize=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return false}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize();return true}return false};Archiver.prototype._moduleAppend=function(r,n,s){if(this._state.aborted){s();return}this._module.append(r,n,function(r){this._task=null;if(this._state.aborted){this._shutdown();return}if(r){this.emit("error",r);setImmediate(s);return}this.emit("entry",n);this._entriesProcessedCount++;if(n.stats&&n.stats.size){this._fsEntriesProcessedBytes+=n.stats.size}this.emit("progress",{entries:{total:this._entriesCount,processed:this._entriesProcessedCount},fs:{totalBytes:this._fsEntriesTotalBytes,processedBytes:this._fsEntriesProcessedBytes}});setImmediate(s)}.bind(this))};Archiver.prototype._moduleFinalize=function(){if(typeof this._module.finalize==="function"){this._module.finalize()}else if(typeof this._module.end==="function"){this._module.end()}else{this.emit("error",new f("NOENDMETHOD"))}};Archiver.prototype._modulePipe=function(){this._module.on("error",this._onModuleError.bind(this));this._module.pipe(this);this._state.modulePiped=true};Archiver.prototype._moduleSupports=function(r){if(!this._module.supports||!this._module.supports[r]){return false}return this._module.supports[r]};Archiver.prototype._moduleUnpipe=function(){this._module.unpipe(this);this._state.modulePiped=false};Archiver.prototype._normalizeEntryData=function(r,n){r=A.defaults(r,{type:"file",name:null,date:null,mode:null,prefix:null,sourcePath:null,stats:false});if(n&&r.stats===false){r.stats=n}var s=r.type==="directory";if(r.name){if(typeof r.prefix==="string"&&""!==r.prefix){r.name=r.prefix+"/"+r.name;r.prefix=null}r.name=A.sanitizePath(r.name);if(r.type!=="symlink"&&r.name.slice(-1)==="/"){s=true;r.type="directory"}else if(s){r.name+="/"}}if(typeof r.mode==="number"){if(y){r.mode&=511}else{r.mode&=4095}}else if(r.stats&&r.mode===null){if(y){r.mode=r.stats.mode&511}else{r.mode=r.stats.mode&4095}if(y&&s){r.mode=493}}else if(r.mode===null){r.mode=s?493:420}if(r.stats&&r.date===null){r.date=r.stats.mtime}else{r.date=A.dateify(r.date)}return r};Archiver.prototype._onModuleError=function(r){this.emit("error",r)};Archiver.prototype._onQueueDrain=function(){if(this._state.finalizing||this._state.finalized||this._state.aborted){return}if(this._state.finalize&&this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}};Archiver.prototype._onQueueTask=function(r,n){var fullCallback=()=>{if(r.data.callback){r.data.callback()}n()};if(this._state.finalizing||this._state.finalized||this._state.aborted){fullCallback();return}this._task=r;this._moduleAppend(r.source,r.data,fullCallback)};Archiver.prototype._onStatQueueTask=function(r,n){if(this._state.finalizing||this._state.finalized||this._state.aborted){n();return}a.lstat(r.filepath,function(s,a){if(this._state.aborted){setImmediate(n);return}if(s){this._entriesCount--;this.emit("warning",s);setImmediate(n);return}r=this._updateQueueTaskWithStats(r,a);if(r){if(a.size){this._fsEntriesTotalBytes+=a.size}this._queue.push(r)}setImmediate(n)}.bind(this))};Archiver.prototype._shutdown=function(){this._moduleUnpipe();this.end()};Archiver.prototype._transform=function(r,n,s){if(r){this._pointer+=r.length}s(null,r)};Archiver.prototype._updateQueueTaskWithStats=function(r,n){if(n.isFile()){r.data.type="file";r.data.sourceType="stream";r.source=A.lazyReadStream(r.filepath)}else if(n.isDirectory()&&this._moduleSupports("directory")){r.data.name=A.trailingSlashIt(r.data.name);r.data.type="directory";r.data.sourcePath=A.trailingSlashIt(r.filepath);r.data.sourceType="buffer";r.source=Buffer.concat([])}else if(n.isSymbolicLink()&&this._moduleSupports("symlink")){var s=a.readlinkSync(r.filepath);var l=d.dirname(r.filepath);r.data.type="symlink";r.data.linkname=d.relative(l,d.resolve(l,s));r.data.sourceType="buffer";r.source=Buffer.concat([])}else{if(n.isDirectory()){this.emit("warning",new f("DIRECTORYNOTSUPPORTED",r.data))}else if(n.isSymbolicLink()){this.emit("warning",new f("SYMLINKNOTSUPPORTED",r.data))}else{this.emit("warning",new f("ENTRYNOTSUPPORTED",r.data))}return null}r.data=this._normalizeEntryData(r.data,n);return r};Archiver.prototype.abort=function(){if(this._state.aborted||this._state.finalized){return this}this._abort();return this};Archiver.prototype.append=function(r,n){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}n=this._normalizeEntryData(n);if(typeof n.name!=="string"||n.name.length===0){this.emit("error",new f("ENTRYNAMEREQUIRED"));return this}if(n.type==="directory"&&!this._moduleSupports("directory")){this.emit("error",new f("DIRECTORYNOTSUPPORTED",{name:n.name}));return this}r=A.normalizeInputSource(r);if(Buffer.isBuffer(r)){n.sourceType="buffer"}else if(A.isStream(r)){n.sourceType="stream"}else{this.emit("error",new f("INPUTSTEAMBUFFERREQUIRED",{name:n.name}));return this}this._entriesCount++;this._queue.push({data:n,source:r});return this};Archiver.prototype.directory=function(r,n,s){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("DIRECTORYDIRPATHREQUIRED"));return this}this._pending++;if(n===false){n=""}else if(typeof n!=="string"){n=r}var a=false;if(typeof s==="function"){a=s;s={}}else if(typeof s!=="object"){s={}}var u={stat:true,dot:true};function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(l){d.pause();var u=false;var A=Object.assign({},s);A.name=l.relative;A.prefix=n;A.stats=l.stat;A.callback=d.resume.bind(d);try{if(a){A=a(A);if(A===false){u=true}else if(typeof A!=="object"){throw new f("DIRECTORYFUNCTIONINVALIDDATA",{dirpath:r})}}}catch(r){this.emit("error",r);return}if(u){d.resume();return}this._append(l.absolute,A)}var d=l(r,u);d.on("error",onGlobError.bind(this));d.on("match",onGlobMatch.bind(this));d.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.file=function(r,n){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("FILEFILEPATHREQUIRED"));return this}this._append(r,n);return this};Archiver.prototype.glob=function(r,n,s){this._pending++;n=A.defaults(n,{stat:true,pattern:r});function onGlobEnd(){this._pending--;this._maybeFinalize()}function onGlobError(r){this.emit("error",r)}function onGlobMatch(r){a.pause();var n=Object.assign({},s);n.callback=a.resume.bind(a);n.stats=r.stat;n.name=r.relative;this._append(r.absolute,n)}var a=l(n.cwd||".",n);a.on("error",onGlobError.bind(this));a.on("match",onGlobMatch.bind(this));a.on("end",onGlobEnd.bind(this));return this};Archiver.prototype.finalize=function(){if(this._state.aborted){var r=new f("ABORTED");this.emit("error",r);return Promise.reject(r)}if(this._state.finalize){var n=new f("FINALIZING");this.emit("error",n);return Promise.reject(n)}this._state.finalize=true;if(this._pending===0&&this._queue.idle()&&this._statQueue.idle()){this._finalize()}var s=this;return new Promise((function(r,n){var a;s._module.on("end",(function(){if(!a){r()}}));s._module.on("error",(function(r){a=true;n(r)}))}))};Archiver.prototype.setFormat=function(r){if(this._format){this.emit("error",new f("FORMATSET"));return this}this._format=r;return this};Archiver.prototype.setModule=function(r){if(this._state.aborted){this.emit("error",new f("ABORTED"));return this}if(this._state.module){this.emit("error",new f("MODULESET"));return this}this._module=r;this._modulePipe();return this};Archiver.prototype.symlink=function(r,n,s){if(this._state.finalize||this._state.aborted){this.emit("error",new f("QUEUECLOSED"));return this}if(typeof r!=="string"||r.length===0){this.emit("error",new f("SYMLINKFILEPATHREQUIRED"));return this}if(typeof n!=="string"||n.length===0){this.emit("error",new f("SYMLINKTARGETREQUIRED",{filepath:r}));return this}if(!this._moduleSupports("symlink")){this.emit("error",new f("SYMLINKNOTSUPPORTED",{filepath:r}));return this}var a={};a.type="symlink";a.name=r.replace(/\\/g,"/");a.linkname=n.replace(/\\/g,"/");a.sourceType="buffer";if(typeof s==="number"){a.mode=s}this._entriesCount++;this._queue.push({data:a,source:Buffer.concat([])});return this};Archiver.prototype.pointer=function(){return this._pointer};Archiver.prototype.use=function(r){this._streams.push(r);return this};r.exports=Archiver},13110:(r,n,s)=>{ /** * Archiver Core * @@ -22,7 +22,7 @@ var a=s(79896);var l=s(15934);var u=s(14113);var d=s(16928);var A=s(16090);var p * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(39023);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,n){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=n}a.inherits(ArchiverError,Error);n=r.exports=ArchiverError},60602:(r,n,s)=>{ +var a=s(39023);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:"diretory dirpath argument must be a non-empty string value",DIRECTORYFUNCTIONINVALIDDATA:"invalid data returned by directory custom data function",ENTRYNAMEREQUIRED:"entry name must be a non-empty string value",FILEFILEPATHREQUIRED:"file filepath argument must be a non-empty string value",FINALIZING:"archive already finalizing",QUEUECLOSED:"queue closed",NOENDMETHOD:"no suitable finalize/end method defined by module",DIRECTORYNOTSUPPORTED:"support for directory entries not defined by module",FORMATSET:"archive format already set",INPUTSTEAMBUFFERREQUIRED:"input source must be valid Stream or Buffer instance",MODULESET:"module already set",SYMLINKNOTSUPPORTED:"support for symlink entries not defined by module",SYMLINKFILEPATHREQUIRED:"symlink filepath argument must be a non-empty string value",SYMLINKTARGETREQUIRED:"symlink target argument must be a non-empty string value",ENTRYNOTSUPPORTED:"entry not supported"};function ArchiverError(r,n){Error.captureStackTrace(this,this.constructor);this.message=l[r]||r;this.code=r;this.data=n}a.inherits(ArchiverError,Error);n=r.exports=ArchiverError},54693:(r,n,s)=>{ /** * JSON Format Plugin * @@ -30,7 +30,7 @@ var a=s(39023);const l={ABORTED:"archive was aborted",DIRECTORYDIRPATHREQUIRED:" * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(39023).inherits;var l=s(48924).Transform;var u=s(57212);var d=s(16090);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=d.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};a(Json,l);Json.prototype._transform=function(r,n,s){s(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,n,s){var a=this;n.crc32=0;function onend(r,l){if(r){s(r);return}n.size=l.length||0;n.crc32=u.unsigned(l);a.files.push(n);s(null,n)}if(n.sourceType==="buffer"){onend(null,r)}else if(n.sourceType==="stream"){d.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},46125:(r,n,s)=>{ +var a=s(39023).inherits;var l=s(29963).Transform;var u=s(84928);var d=s(53296);var Json=function(r){if(!(this instanceof Json)){return new Json(r)}r=this.options=d.defaults(r,{});l.call(this,r);this.supports={directory:true,symlink:true};this.files=[]};a(Json,l);Json.prototype._transform=function(r,n,s){s(null,r)};Json.prototype._writeStringified=function(){var r=JSON.stringify(this.files);this.write(r)};Json.prototype.append=function(r,n,s){var a=this;n.crc32=0;function onend(r,l){if(r){s(r);return}n.size=l.length||0;n.crc32=u.unsigned(l);a.files.push(n);s(null,n)}if(n.sourceType==="buffer"){onend(null,r)}else if(n.sourceType==="stream"){d.collectStream(r,onend)}};Json.prototype.finalize=function(){this._writeStringified();this.end()};r.exports=Json},10396:(r,n,s)=>{ /** * TAR Format Plugin * @@ -38,7 +38,7 @@ var a=s(39023).inherits;var l=s(48924).Transform;var u=s(57212);var d=s(16090);v * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(43106);var l=s(93761);var u=s(16090);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=u.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=a.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,n,s){var a=this;n.mtime=n.date;function append(r,l){if(r){s(r);return}a.engine.entry(n,l,(function(r){s(r,n)}))}if(n.sourceType==="buffer"){append(null,r)}else if(n.sourceType==="stream"&&n.stats){n.size=n.stats.size;var l=a.engine.entry(n,(function(r){s(r,n)}));r.pipe(l)}else if(n.sourceType==="stream"){u.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,n){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,n)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},92477:(r,n,s)=>{ +var a=s(43106);var l=s(56118);var u=s(53296);var Tar=function(r){if(!(this instanceof Tar)){return new Tar(r)}r=this.options=u.defaults(r,{gzip:false});if(typeof r.gzipOptions!=="object"){r.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=l.pack(r);this.compressor=false;if(r.gzip){this.compressor=a.createGzip(r.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};Tar.prototype._onCompressorError=function(r){this.engine.emit("error",r)};Tar.prototype.append=function(r,n,s){var a=this;n.mtime=n.date;function append(r,l){if(r){s(r);return}a.engine.entry(n,l,(function(r){s(r,n)}))}if(n.sourceType==="buffer"){append(null,r)}else if(n.sourceType==="stream"&&n.stats){n.size=n.stats.size;var l=a.engine.entry(n,(function(r){s(r,n)}));r.pipe(l)}else if(n.sourceType==="stream"){u.collectStream(r,append)}};Tar.prototype.finalize=function(){this.engine.finalize()};Tar.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Tar.prototype.pipe=function(r,n){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(r,n)}else{return this.engine.pipe.apply(this.engine,arguments)}};Tar.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};r.exports=Tar},22836:(r,n,s)=>{ /** * ZIP Format Plugin * @@ -46,65 +46,65 @@ var a=s(43106);var l=s(93761);var u=s(16090);var Tar=function(r){if(!(this insta * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} * @copyright (c) 2012-2014 Chris Talkington, contributors. */ -var a=s(60318);var l=s(16090);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new a(r)};Zip.prototype.append=function(r,n,s){this.engine.entry(r,n,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},14113:function(r,n){(function(r,s){true?s(n):0})(this,(function(r){"use strict";function apply(r,...n){return(...s)=>r(...n,...s)}function initialParams(r){return function(...n){var s=n.pop();return r.call(this,n,s)}}var n=typeof queueMicrotask==="function"&&queueMicrotask;var s=typeof setImmediate==="function"&&setImmediate;var a=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(n,...s)=>r((()=>n(...s)))}var l;if(n){l=queueMicrotask}else if(s){l=setImmediate}else if(a){l=process.nextTick}else{l=fallback}var u=wrap(l);function asyncify(r){if(isAsync(r)){return function(...n){const s=n.pop();const a=r.apply(this,n);return handlePromise(a,s)}}return initialParams((function(n,s){var a;try{a=r.apply(this,n)}catch(r){return s(r)}if(a&&typeof a.then==="function"){return handlePromise(a,s)}else{s(null,a)}}))}function handlePromise(r,n){return r.then((r=>{invokeCallback(n,null,r)}),(r=>{invokeCallback(n,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,n,s){try{r(n,s)}catch(r){u((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,n){if(!n)n=r.length;if(!n)throw new Error("arity is undefined");function awaitable(...s){if(typeof s[n-1]==="function"){return r.apply(this,s)}return new Promise(((a,l)=>{s[n-1]=(r,...n)=>{if(r)return l(r);a(n.length>1?n:n[0])};r.apply(this,s)}))}return awaitable}function applyEach$1(r){return function applyEach(n,...s){const a=awaitify((function(a){var l=this;return r(n,((r,n)=>{wrapAsync(r).apply(l,s.concat(n))}),a)}));return a}}function _asyncMap(r,n,s,a){n=n||[];var l=[];var u=0;var d=wrapAsync(s);return r(n,((r,n,s)=>{var a=u++;d(r,((r,n)=>{l[a]=n;s(r)}))}),(r=>{a(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const d={};function once(r){function wrapper(...n){if(r===null)return;var s=r;r=null;s.apply(this,n)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var n=-1;var s=r.length;return function next(){return++n=n||A||l)return;A=true;r.next().then((({value:r,done:n})=>{if(u||l)return;A=false;if(n){l=true;if(p<=0){a(null)}return}p++;s(r,f,iterateeCallback);f++;replenish()})).catch(handleError)}function iterateeCallback(r,n){p-=1;if(u)return;if(r)return handleError(r);if(r===false){l=true;u=true;return}if(n===d||l&&p<=0){l=true;return a(null)}replenish()}function handleError(r){if(u)return;A=false;l=true;a(r)}replenish()}var eachOfLimit$2=r=>(n,s,a)=>{a=once(a);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!n){return a(null)}if(isAsyncGenerator(n)){return asyncEachOfLimit(n,r,s,a)}if(isAsyncIterable(n)){return asyncEachOfLimit(n[Symbol.asyncIterator](),r,s,a)}var l=createIterator(n);var u=false;var A=false;var p=0;var f=false;function iterateeCallback(r,n){if(A)return;p-=1;if(r){u=true;a(r)}else if(r===false){u=true;A=true}else if(n===d||u&&p<=0){u=true;return a(null)}else if(!f){replenish()}}function replenish(){f=true;while(p1?a:a[0])}callback[w]=new Promise(((s,a)=>{r=s,n=a}));return callback}function auto(r,n,s){if(typeof n!=="number"){s=n;n=null}s=once(s||promiseCallback());var a=Object.keys(r).length;if(!a){return s(null)}if(!n){n=a}var l={};var u=0;var d=false;var A=false;var p=Object.create(null);var f=[];var g=[];var y={};Object.keys(r).forEach((n=>{var s=r[n];if(!Array.isArray(s)){enqueueTask(n,[s]);g.push(n);return}var a=s.slice(0,s.length-1);var l=a.length;if(l===0){enqueueTask(n,s);g.push(n);return}y[n]=l;a.forEach((u=>{if(!r[u]){throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+u+"` in "+a.join(", "))}addListener(u,(()=>{l--;if(l===0){enqueueTask(n,s)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(r,n){f.push((()=>runTask(r,n)))}function processQueue(){if(d)return;if(f.length===0&&u===0){return s(null,l)}while(f.length&&ur()));processQueue()}function runTask(r,n){if(A)return;var a=onlyOnce(((n,...a)=>{u--;if(n===false){d=true;return}if(a.length<2){[a]=a}if(n){var f={};Object.keys(l).forEach((r=>{f[r]=l[r]}));f[r]=a;A=true;p=Object.create(null);if(d)return;s(n,f)}else{l[r]=a;taskComplete(r)}}));u++;var f=wrapAsync(n[n.length-1]);if(n.length>1){f(l,a)}else{f(a)}}function checkForDeadlocks(){var r;var n=0;while(g.length){r=g.pop();n++;getDependents(r).forEach((r=>{if(--y[r]===0){g.push(r)}}))}if(n!==a){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(n){var s=[];Object.keys(r).forEach((a=>{const l=r[a];if(Array.isArray(l)&&l.indexOf(n)>=0){s.push(a)}}));return s}return s[w]}var B=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;var I=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;var S=/,/;var Q=/(=.+)?(\s*)$/;function stripComments(r){let n="";let s=0;let a=r.indexOf("*/");while(sr.replace(Q,"").trim()))}function autoInject(r,n){var s={};Object.keys(r).forEach((n=>{var a=r[n];var l;var u=isAsync(a);var d=!u&&a.length===1||u&&a.length===0;if(Array.isArray(a)){l=[...a];a=l.pop();s[n]=l.concat(l.length>0?newTask:a)}else if(d){s[n]=a}else{l=parseParams(a);if(a.length===0&&!u&&l.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!u)l.pop();s[n]=l.concat(newTask)}function newTask(r,n){var s=l.map((n=>r[n]));s.push(n);wrapAsync(a)(...s)}}));return auto(s,n)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(r){if(r.prev)r.prev.next=r.next;else this.head=r.next;if(r.next)r.next.prev=r.prev;else this.tail=r.prev;r.prev=r.next=null;this.length-=1;return r}empty(){while(this.head)this.shift();return this}insertAfter(r,n){n.prev=r;n.next=r.next;if(r.next)r.next.prev=n;else this.tail=n;r.next=n;this.length+=1}insertBefore(r,n){n.prev=r.prev;n.next=r;if(r.prev)r.prev.next=n;else this.head=n;r.prev=n;this.length+=1}unshift(r){if(this.head)this.insertBefore(this.head,r);else setInitial(this,r)}push(r){if(this.tail)this.insertAfter(this.tail,r);else setInitial(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var r=this.head;while(r){yield r.data;r=r.next}}remove(r){var n=this.head;while(n){var{next:s}=n;if(r(n)){this.removeLink(n)}n=s}return this}}function setInitial(r,n){r.length=1;r.head=r.tail=n}function queue$1(r,n,s){if(n==null){n=1}else if(n===0){throw new RangeError("Concurrency must not be zero")}var a=wrapAsync(r);var l=0;var d=[];const A={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(r,n){A[r].push(n)}function once(r,n){const handleAndRemove=(...s)=>{off(r,handleAndRemove);n(...s)};A[r].push(handleAndRemove)}function off(r,n){if(!r)return Object.keys(A).forEach((r=>A[r]=[]));if(!n)return A[r]=[];A[r]=A[r].filter((r=>r!==n))}function trigger(r,...n){A[r].forEach((r=>r(...n)))}var p=false;function _insert(r,n,s,a){if(a!=null&&typeof a!=="function"){throw new Error("task callback must be a function")}g.started=true;var l,d;function promiseCallback(r,...n){if(r)return s?d(r):l();if(n.length<=1)return l(n[0]);l(n)}var A=g._createTaskItem(r,s?promiseCallback:a||promiseCallback);if(n){g._tasks.unshift(A)}else{g._tasks.push(A)}if(!p){p=true;u((()=>{p=false;g.process()}))}if(s||!a){return new Promise(((r,n)=>{l=r;d=n}))}}function _createCB(r){return function(n,...s){l-=1;for(var a=0,u=r.length;a0){d.splice(p,1)}A.callback(n,...s);if(n!=null){trigger("error",n,A.data)}}if(l<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(r){if(r.length===0&&g.idle()){u((()=>trigger("drain")));return true}return false}const eventMethod=r=>n=>{if(!n){return new Promise(((n,s)=>{once(r,((r,a)=>{if(r)return s(r);n(a)}))}))}off(r);on(r,n)};var f=false;var g={_tasks:new DLL,_createTaskItem(r,n){return{data:r,callback:n}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:n,payload:s,buffer:n/4,started:false,paused:false,push(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,false,n)))}return _insert(r,false,false,n)},pushAsync(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,true,n)))}return _insert(r,false,true,n)},kill(){off();g._tasks.empty()},unshift(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,false,n)))}return _insert(r,true,false,n)},unshiftAsync(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,true,n)))}return _insert(r,true,true,n)},remove(r){g._tasks.remove(r)},process(){if(f){return}f=true;while(!g.paused&&l{l(n,r,((r,s)=>{n=s;a(r)}))}),(r=>a(r,n)))}var v=awaitify(reduce,4);function seq(...r){var n=r.map(wrapAsync);return function(...r){var s=this;var a=r[r.length-1];if(typeof a=="function"){r.pop()}else{a=promiseCallback()}v(n,r,((r,n,a)=>{n.apply(s,r.concat(((r,...n)=>{a(r,n)})))}),((r,n)=>a(r,...n)));return a[w]}}function compose(...r){return seq(...r.reverse())}function mapLimit(r,n,s,a){return _asyncMap(eachOfLimit$2(n),r,s,a)}var R=awaitify(mapLimit,4);function concatLimit(r,n,s,a){var l=wrapAsync(s);return R(r,n,((r,n)=>{l(r,((r,...s)=>{if(r)return n(r);return n(r,s)}))}),((r,n)=>{var s=[];for(var l=0;l{var A=false;var p;const f=wrapAsync(l);s(a,((s,a,l)=>{f(s,((a,u)=>{if(a||a===false)return l(a);if(r(u)&&!p){A=true;p=n(true,s);return l(null,d)}l()}))}),(r=>{if(r)return u(r);u(null,A?p:n(false))}))}}function detect(r,n,s){return _createTester((r=>r),((r,n)=>n))(p,r,n,s)}var x=awaitify(detect,3);function detectLimit(r,n,s,a){return _createTester((r=>r),((r,n)=>n))(eachOfLimit$2(n),r,s,a)}var k=awaitify(detectLimit,4);function detectSeries(r,n,s){return _createTester((r=>r),((r,n)=>n))(eachOfLimit$2(1),r,n,s)}var _=awaitify(detectSeries,3);function consoleFunc(r){return(n,...s)=>wrapAsync(n)(...s,((n,...s)=>{if(typeof console==="object"){if(n){if(console.error){console.error(n)}}else if(console[r]){s.forEach((n=>console[r](n)))}}}))}var P=consoleFunc("dir");function doWhilst(r,n,s){s=onlyOnce(s);var a=wrapAsync(r);var l=wrapAsync(n);var u;function next(r,...n){if(r)return s(r);if(r===false)return;u=n;l(...n,check)}function check(r,n){if(r)return s(r);if(r===false)return;if(!n)return s(null,...u);a(next)}return check(null,true)}var F=awaitify(doWhilst,3);function doUntil(r,n,s){const a=wrapAsync(n);return F(r,((...r)=>{const n=r.pop();a(...r,((r,s)=>n(r,!s)))}),s)}function _withoutIndex(r){return(n,s,a)=>r(n,a)}function eachLimit$2(r,n,s){return p(r,_withoutIndex(wrapAsync(n)),s)}var L=awaitify(eachLimit$2,3);function eachLimit(r,n,s,a){return eachOfLimit$2(n)(r,_withoutIndex(wrapAsync(s)),a)}var O=awaitify(eachLimit,4);function eachSeries(r,n,s){return O(r,1,n,s)}var M=awaitify(eachSeries,3);function ensureAsync(r){if(isAsync(r))return r;return function(...n){var s=n.pop();var a=true;n.push(((...r)=>{if(a){u((()=>s(...r)))}else{s(...r)}}));r.apply(this,n);a=false}}function every(r,n,s){return _createTester((r=>!r),(r=>!r))(p,r,n,s)}var U=awaitify(every,3);function everyLimit(r,n,s,a){return _createTester((r=>!r),(r=>!r))(eachOfLimit$2(n),r,s,a)}var H=awaitify(everyLimit,4);function everySeries(r,n,s){return _createTester((r=>!r),(r=>!r))(y,r,n,s)}var G=awaitify(everySeries,3);function filterArray(r,n,s,a){var l=new Array(n.length);r(n,((r,n,a)=>{s(r,((r,s)=>{l[n]=!!s;a(r)}))}),(r=>{if(r)return a(r);var s=[];for(var u=0;u{s(r,((s,u)=>{if(s)return a(s);if(u){l.push({index:n,value:r})}a(s)}))}),(r=>{if(r)return a(r);a(null,l.sort(((r,n)=>r.index-n.index)).map((r=>r.value)))}))}function _filter(r,n,s,a){var l=isArrayLike(n)?filterArray:filterGeneric;return l(r,n,wrapAsync(s),a)}function filter(r,n,s){return _filter(p,r,n,s)}var z=awaitify(filter,3);function filterLimit(r,n,s,a){return _filter(eachOfLimit$2(n),r,s,a)}var q=awaitify(filterLimit,4);function filterSeries(r,n,s){return _filter(y,r,n,s)}var V=awaitify(filterSeries,3);function forever(r,n){var s=onlyOnce(n);var a=wrapAsync(ensureAsync(r));function next(r){if(r)return s(r);if(r===false)return;a(next)}return next()}var W=awaitify(forever,2);function groupByLimit(r,n,s,a){var l=wrapAsync(s);return R(r,n,((r,n)=>{l(r,((s,a)=>{if(s)return n(s);return n(s,{key:a,val:r})}))}),((r,n)=>{var s={};var{hasOwnProperty:l}=Object.prototype;for(var u=0;u{u(r,n,((r,a)=>{if(r)return s(r);l[n]=a;s(r)}))}),(r=>a(r,l)))}var J=awaitify(mapValuesLimit,4);function mapValues(r,n,s){return J(r,Infinity,n,s)}function mapValuesSeries(r,n,s){return J(r,1,n,s)}function memoize(r,n=r=>r){var s=Object.create(null);var a=Object.create(null);var l=wrapAsync(r);var d=initialParams(((r,d)=>{var A=n(...r);if(A in s){u((()=>d(null,...s[A])))}else if(A in a){a[A].push(d)}else{a[A]=[d];l(...r,((r,...n)=>{if(!r){s[A]=n}var l=a[A];delete a[A];for(var u=0,d=l.length;u{var a=isArrayLike(n)?[]:{};r(n,((r,n,s)=>{wrapAsync(r)(((r,...l)=>{if(l.length<2){[l]=l}a[n]=l;s(r)}))}),(r=>s(r,a)))}),3);function parallel(r,n){return X(p,r,n)}function parallelLimit(r,n,s){return X(eachOfLimit$2(n),r,s)}function queue(r,n){var s=wrapAsync(r);return queue$1(((r,n)=>{s(r[0],n)}),n,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(r){let n;while(r>0&&smaller(this.heap[r],this.heap[n=parent(r)])){let s=this.heap[r];this.heap[r]=this.heap[n];this.heap[n]=s;r=n}}percDown(r){let n;while((n=leftChi(r))=0;r--){this.percDown(r)}return this}}function leftChi(r){return(r<<1)+1}function parent(r){return(r+1>>1)-1}function smaller(r,n){if(r.priority!==n.priority){return r.priority({data:r,priority:n,callback:s});function createDataItems(r,n){if(!Array.isArray(r)){return{data:r,priority:n}}return r.map((r=>({data:r,priority:n})))}s.push=function(r,n=0,s){return a(createDataItems(r,n),s)};s.pushAsync=function(r,n=0,s){return l(createDataItems(r,n),s)};delete s.unshift;delete s.unshiftAsync;return s}function race(r,n){n=once(n);if(!Array.isArray(r))return n(new TypeError("First argument to race must be an array of functions"));if(!r.length)return n();for(var s=0,a=r.length;s{let a={};if(r){a.error=r}if(n.length>0){var l=n;if(n.length<=1){[l]=n}a.value=l}s(null,a)}));return n.apply(this,r)}))}function reflectAll(r){var n;if(Array.isArray(r)){n=r.map(reflect)}else{n={};Object.keys(r).forEach((s=>{n[s]=reflect.call(this,r[s])}))}return n}function reject$2(r,n,s,a){const l=wrapAsync(s);return _filter(r,n,((r,n)=>{l(r,((r,s)=>{n(r,!s)}))}),a)}function reject(r,n,s){return reject$2(p,r,n,s)}var ee=awaitify(reject,3);function rejectLimit(r,n,s,a){return reject$2(eachOfLimit$2(n),r,s,a)}var te=awaitify(rejectLimit,4);function rejectSeries(r,n,s){return reject$2(y,r,n,s)}var re=awaitify(rejectSeries,3);function constant(r){return function(){return r}}const ne=5;const se=0;function retry(r,n,s){var a={times:ne,intervalFunc:constant(se)};if(arguments.length<3&&typeof r==="function"){s=n||promiseCallback();n=r}else{parseTimes(a,r);s=s||promiseCallback()}if(typeof n!=="function"){throw new Error("Invalid arguments for async.retry")}var l=wrapAsync(n);var u=1;function retryAttempt(){l(((r,...n)=>{if(r===false)return;if(r&&u++{if(n.lengthr))(p,r,n,s)}var ie=awaitify(some,3);function someLimit(r,n,s,a){return _createTester(Boolean,(r=>r))(eachOfLimit$2(n),r,s,a)}var oe=awaitify(someLimit,4);function someSeries(r,n,s){return _createTester(Boolean,(r=>r))(y,r,n,s)}var ae=awaitify(someSeries,3);function sortBy(r,n,s){var a=wrapAsync(n);return f(r,((r,n)=>{a(r,((s,a)=>{if(s)return n(s);n(s,{value:r,criteria:a})}))}),((r,n)=>{if(r)return s(r);s(null,n.sort(comparator).map((r=>r.value)))}));function comparator(r,n){var s=r.criteria,a=n.criteria;return sa?1:0}}var le=awaitify(sortBy,3);function timeout(r,n,s){var a=wrapAsync(r);return initialParams(((l,u)=>{var d=false;var A;function timeoutCallback(){var n=r.name||"anonymous";var a=new Error('Callback function "'+n+'" timed out.');a.code="ETIMEDOUT";if(s){a.info=s}d=true;u(a)}l.push(((...r)=>{if(!d){u(...r);clearTimeout(A)}}));A=setTimeout(timeoutCallback,n);a(...l)}))}function range(r){var n=Array(r);while(r--){n[r]=r}return n}function timesLimit(r,n,s,a){var l=wrapAsync(s);return R(range(r),n,l,a)}function times(r,n,s){return timesLimit(r,Infinity,n,s)}function timesSeries(r,n,s){return timesLimit(r,1,n,s)}function transform(r,n,s,a){if(arguments.length<=3&&typeof n==="function"){a=s;s=n;n=Array.isArray(r)?[]:{}}a=once(a||promiseCallback());var l=wrapAsync(s);p(r,((r,s,a)=>{l(n,r,s,a)}),(r=>a(r,n)));return a[w]}function tryEach(r,n){var s=null;var a;return M(r,((r,n)=>{wrapAsync(r)(((r,...l)=>{if(r===false)return n(r);if(l.length<2){[a]=l}else{a=l}s=r;n(r?null:{})}))}),(()=>n(s,a)))}var ce=awaitify(tryEach);function unmemoize(r){return(...n)=>(r.unmemoized||r)(...n)}function whilst(r,n,s){s=onlyOnce(s);var a=wrapAsync(n);var l=wrapAsync(r);var u=[];function next(r,...n){if(r)return s(r);u=n;if(r===false)return;l(check)}function check(r,n){if(r)return s(r);if(r===false)return;if(!n)return s(null,...u);a(next)}return l(check)}var ue=awaitify(whilst,3);function until(r,n,s){const a=wrapAsync(r);return ue((r=>a(((n,s)=>r(n,!s)))),n,s)}function waterfall(r,n){n=once(n);if(!Array.isArray(r))return n(new Error("First argument to waterfall must be an array of functions"));if(!r.length)return n();var s=0;function nextTask(n){var a=wrapAsync(r[s++]);a(...n,onlyOnce(next))}function next(a,...l){if(a===false)return;if(a||s===r.length){return n(a,...l)}nextTask(l)}nextTask([])}var de=awaitify(waterfall);var Ae={apply:apply,applyEach:g,applyEachSeries:C,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:N,concatLimit:D,concatSeries:T,constant:constant$1,detect:x,detectLimit:k,detectSeries:_,dir:P,doUntil:doUntil,doWhilst:F,each:L,eachLimit:O,eachOf:p,eachOfLimit:A,eachOfSeries:y,eachSeries:M,ensureAsync:ensureAsync,every:U,everyLimit:H,everySeries:G,filter:z,filterLimit:q,filterSeries:V,forever:W,groupBy:groupBy,groupByLimit:j,groupBySeries:groupBySeries,log:Y,map:f,mapLimit:R,mapSeries:b,mapValues:mapValues,mapValuesLimit:J,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:K,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:Z,reduce:v,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:ee,rejectLimit:te,rejectSeries:re,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:u,some:ie,someLimit:oe,someSeries:ae,sortBy:le,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ce,unmemoize:unmemoize,until:until,waterfall:de,whilst:ue,all:U,allLimit:H,allSeries:G,any:ie,anyLimit:oe,anySeries:ae,find:x,findLimit:k,findSeries:_,flatMap:N,flatMapLimit:D,flatMapSeries:T,forEach:L,forEachSeries:M,forEachLimit:O,forEachOf:p,forEachOfSeries:y,forEachOfLimit:A,inject:v,foldl:v,foldr:reduceRight,select:z,selectLimit:q,selectSeries:V,wrapSync:asyncify,during:ue,doDuring:F};r.all=U;r.allLimit=H;r.allSeries=G;r.any=ie;r.anyLimit=oe;r.anySeries=ae;r.apply=apply;r.applyEach=g;r.applyEachSeries=C;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo$1;r.cargoQueue=cargo;r.compose=compose;r.concat=N;r.concatLimit=D;r.concatSeries=T;r.constant=constant$1;r.default=Ae;r.detect=x;r.detectLimit=k;r.detectSeries=_;r.dir=P;r.doDuring=F;r.doUntil=doUntil;r.doWhilst=F;r.during=ue;r.each=L;r.eachLimit=O;r.eachOf=p;r.eachOfLimit=A;r.eachOfSeries=y;r.eachSeries=M;r.ensureAsync=ensureAsync;r.every=U;r.everyLimit=H;r.everySeries=G;r.filter=z;r.filterLimit=q;r.filterSeries=V;r.find=x;r.findLimit=k;r.findSeries=_;r.flatMap=N;r.flatMapLimit=D;r.flatMapSeries=T;r.foldl=v;r.foldr=reduceRight;r.forEach=L;r.forEachLimit=O;r.forEachOf=p;r.forEachOfLimit=A;r.forEachOfSeries=y;r.forEachSeries=M;r.forever=W;r.groupBy=groupBy;r.groupByLimit=j;r.groupBySeries=groupBySeries;r.inject=v;r.log=Y;r.map=f;r.mapLimit=R;r.mapSeries=b;r.mapValues=mapValues;r.mapValuesLimit=J;r.mapValuesSeries=mapValuesSeries;r.memoize=memoize;r.nextTick=K;r.parallel=parallel;r.parallelLimit=parallelLimit;r.priorityQueue=priorityQueue;r.queue=queue;r.race=Z;r.reduce=v;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=ee;r.rejectLimit=te;r.rejectSeries=re;r.retry=retry;r.retryable=retryable;r.select=z;r.selectLimit=q;r.selectSeries=V;r.seq=seq;r.series=series;r.setImmediate=u;r.some=ie;r.someLimit=oe;r.someSeries=ae;r.sortBy=le;r.timeout=timeout;r.times=times;r.timesLimit=timesLimit;r.timesSeries=timesSeries;r.transform=transform;r.tryEach=ce;r.unmemoize=unmemoize;r.until=until;r.waterfall=de;r.whilst=ue;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},79988:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,n,s){return Buffer.alloc(r,n,s)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,n){return Buffer.byteLength(r,n)}function compare(r,n){return Buffer.compare(r,n)}function concat(r,n){return Buffer.concat(r,n)}function copy(r,n,s,a,l){return toBuffer(r).copy(n,s,a,l)}function equals(r,n){return toBuffer(r).equals(n)}function fill(r,n,s,a,l){return toBuffer(r).fill(n,s,a,l)}function from(r,n,s){return Buffer.from(r,n,s)}function includes(r,n,s,a){return toBuffer(r).includes(n,s,a)}function indexOf(r,n,s,a){return toBuffer(r).indexOf(n,s,a)}function lastIndexOf(r,n,s,a){return toBuffer(r).lastIndexOf(n,s,a)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,n,s,a){return toBuffer(r).toString(n,s,a)}function write(r,n,s,a,l){return toBuffer(r).write(n,s,a,l)}function readDoubleBE(r,n){return toBuffer(r).readDoubleBE(n)}function readDoubleLE(r,n){return toBuffer(r).readDoubleLE(n)}function readFloatBE(r,n){return toBuffer(r).readFloatBE(n)}function readFloatLE(r,n){return toBuffer(r).readFloatLE(n)}function readInt32BE(r,n){return toBuffer(r).readInt32BE(n)}function readInt32LE(r,n){return toBuffer(r).readInt32LE(n)}function readUInt32BE(r,n){return toBuffer(r).readUInt32BE(n)}function readUInt32LE(r,n){return toBuffer(r).readUInt32LE(n)}function writeDoubleBE(r,n,s){return toBuffer(r).writeDoubleBE(n,s)}function writeDoubleLE(r,n,s){return toBuffer(r).writeDoubleLE(n,s)}function writeFloatBE(r,n,s){return toBuffer(r).writeFloatBE(n,s)}function writeFloatLE(r,n,s){return toBuffer(r).writeFloatLE(n,s)}function writeInt32BE(r,n,s){return toBuffer(r).writeInt32BE(n,s)}function writeInt32LE(r,n,s){return toBuffer(r).writeInt32LE(n,s)}function writeUInt32BE(r,n,s){return toBuffer(r).writeUInt32BE(n,s)}function writeUInt32LE(r,n,s){return toBuffer(r).writeUInt32LE(n,s)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,readDoubleBE:readDoubleBE,readDoubleLE:readDoubleLE,readFloatBE:readFloatBE,readFloatLE:readFloatLE,readInt32BE:readInt32BE,readInt32LE:readInt32LE,readUInt32BE:readUInt32BE,readUInt32LE:readUInt32LE,writeDoubleBE:writeDoubleBE,writeDoubleLE:writeDoubleLE,writeFloatBE:writeFloatBE,writeFloatLE:writeFloatLE,writeInt32BE:writeInt32BE,writeInt32LE:writeInt32LE,writeUInt32BE:writeUInt32BE,writeUInt32LE:writeUInt32LE}},90870:r=>{r.exports=balanced;function balanced(r,n,s){if(r instanceof RegExp)r=maybeMatch(r,s);if(n instanceof RegExp)n=maybeMatch(n,s);var a=range(r,n,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+r.length,a[1]),post:s.slice(a[1]+n.length)}}function maybeMatch(r,n){var s=n.match(r);return s?s[0]:null}balanced.range=range;function range(r,n,s){var a,l,u,d,A;var p=s.indexOf(r);var f=s.indexOf(n,p+1);var g=p;if(p>=0&&f>0){if(r===n){return[p,f]}a=[];u=s.length;while(g>=0&&!A){if(g==p){a.push(g);p=s.indexOf(r,g+1)}else if(a.length==1){A=[a.pop(),f]}else{l=a.pop();if(l=0?p:f}if(a.length){A=[u,d]}}return A}},52386:(r,n,s)=>{var a=s(66428);var l=s(24434).EventEmitter;var u=s(66869);var d=s(78174);var A=s(2203).Stream;n=r.exports=function(r,s){if(Buffer.isBuffer(r)){return n.parse(r)}var a=n.stream();if(r&&r.pipe){r.pipe(a)}else if(r){r.on(s||"data",(function(r){a.write(r)}));r.on("end",(function(){a.end()}))}return a};n.stream=function(r){if(r)return n.apply(null,arguments);var s=null;function getBytes(r,n,a){s={bytes:r,skip:a,cb:function(r){s=null;n(r)}};dispatch()}var p=null;function dispatch(){if(!s){if(C)b=true;return}if(typeof s==="function"){s()}else{var r=p+s.bytes;if(g.length>=r){var n;if(p==null){n=g.splice(0,r);if(!s.skip){n=n.slice()}}else{if(!s.skip){n=g.slice(p,r)}p=r}if(s.skip){s.cb()}else{s.cb(n)}}}}function builder(r){function next(){if(!b)r.next()}var n=words((function(r,n){return function(s){getBytes(r,(function(r){y.set(s,n(r));next()}))}}));n.tap=function(n){r.nest(n,y.store)};n.into=function(n,s){if(!y.get(n))y.set(n,{});var a=y;y=d(a.get(n));r.nest((function(){s.apply(this,arguments);this.tap((function(){y=a}))}),y.store)};n.flush=function(){y.store={};next()};n.loop=function(n){var s=false;r.nest(false,(function loop(){this.vars=y.store;n.call(this,(function(){s=true;next()}),y.store);this.tap(function(){if(s)r.next();else loop.call(this)}.bind(this))}),y.store)};n.buffer=function(r,n){if(typeof n==="string"){n=y.get(n)}getBytes(n,(function(n){y.set(r,n);next()}))};n.skip=function(r){if(typeof r==="string"){r=y.get(r)}getBytes(r,(function(){next()}))};n.scan=function find(r,n){if(typeof n==="string"){n=new Buffer(n)}else if(!Buffer.isBuffer(n)){throw new Error("search must be a Buffer or a string")}var a=0;s=function(){var l=g.indexOf(n,p+a);var u=l-p-a;if(l!==-1){s=null;if(p!=null){y.set(r,g.slice(p,p+a+u));p+=a+u+n.length}else{y.set(r,g.slice(0,a+u));g.splice(0,a+u+n.length)}next();dispatch()}else{u=Math.max(g.length-n.length-p-a,0)}a+=u};dispatch()};n.peek=function(n){p=0;r.nest((function(){n.call(this,y.store);this.tap((function(){p=null}))}))};return n}var f=a.light(builder);f.writable=true;var g=u();f.write=function(r){g.push(r);dispatch()};var y=d();var b=false,C=false;f.end=function(){C=true};f.pipe=A.prototype.pipe;Object.getOwnPropertyNames(l.prototype).forEach((function(r){f[r]=l.prototype[r]}));return f};n.parse=function parse(r){var n=words((function(l,u){return function(d){if(s+l<=r.length){var A=r.slice(s,s+l);s+=l;a.set(d,u(A))}else{a.set(d,null)}return n}}));var s=0;var a=d();n.vars=a.store;n.tap=function(r){r.call(n,a.store);return n};n.into=function(r,s){if(!a.get(r)){a.set(r,{})}var l=a;a=d(l.get(r));s.call(n,a.store);a=l;return n};n.loop=function(r){var s=false;var ender=function(){s=true};while(s===false){r.call(n,ender,a.store)}return n};n.buffer=function(l,u){if(typeof u==="string"){u=a.get(u)}var d=r.slice(s,Math.min(r.length,s+u));s+=u;a.set(l,d);return n};n.skip=function(r){if(typeof r==="string"){r=a.get(r)}s+=r;return n};n.scan=function(l,u){if(typeof u==="string"){u=new Buffer(u)}else if(!Buffer.isBuffer(u)){throw new Error("search must be a Buffer or a string")}a.set(l,null);for(var d=0;d+s<=r.length-u.length+1;d++){for(var A=0;A=r.length};return n};function decodeLEu(r){var n=0;for(var s=0;s{r.exports=function(r){function getset(r,s){var a=n.store;var l=r.split(".");l.slice(0,-1).forEach((function(r){if(a[r]===undefined)a[r]={};a=a[r]}));var u=l[l.length-1];if(arguments.length==1){return a[u]}else{return a[u]=s}}var n={get:function(r){return getset(r)},set:function(r,n){return getset(r,n)},store:r||{}};return n}},9900:function(r){(function(n,s){true?r.exports=s():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,n,s={}){var a,l,u;for(a in n){u=n[a];s[a]=(l=r[a])!=null?l:u}return s};var overwrite=function(r,n,s={}){var a,l;for(a in r){l=r[a];if(n[a]!==void 0){s[a]=l}}return s};var n={load:load,overwrite:overwrite};var s;s=class DLList{constructor(r,n){this.incr=r;this.decr=n;this._first=null;this._last=null;this.length=0}push(r){var n;this.length++;if(typeof this.incr==="function"){this.incr()}n={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=n;this._last=n}else{this._first=this._last=n}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,n,s;r=this._first;s=[];while(r!=null){s.push((n=r,r=r.next,n.value))}return s}forEachShift(r){var n;n=this.shift();while(n!=null){r(n),n=this.shift()}return void 0}debug(){var r,n,s,a,l;r=this._first;l=[];while(r!=null){l.push((n=r,r=r.next,{value:n.value,prev:(s=n.prev)!=null?s.value:void 0,next:(a=n.next)!=null?a.value:void 0}))}return l}};var a=s;var l;l=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,n)=>this._addListener(r,"many",n);this.instance.once=(r,n)=>this._addListener(r,"once",n);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,n,s){var a;if((a=this._events)[r]==null){a[r]=[]}this._events[r].push({cb:s,status:n});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...n){var s,a;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,n)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));a=this._events[r].map((async r=>{var s,a;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{a=typeof r.cb==="function"?r.cb(...n):void 0;if(typeof(a!=null?a.then:void 0)==="function"){return await a}else{return a}}catch(r){s=r;{this.trigger("error",s)}return null}}));return(await Promise.all(a)).find((function(r){return r!=null}))}catch(r){s=r;{this.trigger("error",s)}return null}}};var u=l;var d,A,p;d=a;A=u;p=class Queues{constructor(r){var n;this.Events=new A(this);this._length=0;this._lists=function(){var s,a,l;l=[];for(n=s=1,a=r;1<=a?s<=a:s>=a;n=1<=a?++s:--s){l.push(new d((()=>this.incr()),(()=>this.decr())))}return l}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(n){return n.forEachShift(r)}))}getFirst(r=this._lists){var n,s,a;for(n=0,s=r.length;n0){return a}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var f=p;var g;g=class BottleneckError extends Error{};var y=g;var b,C,w,B,I;B=10;C=5;I=n;b=y;w=class Job{constructor(r,n,s,a,l,u,d,A){this.task=r;this.args=n;this.rejectOnDrop=l;this.Events=u;this._states=d;this.Promise=A;this.options=I.load(s,a);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===a.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,n)=>{this._resolve=r;this._reject=n}));this.retryCount=0}_sanitizePriority(r){var n;n=~~r!==r?C:r;if(n<0){return 0}else if(n>B-1){return B-1}else{return n}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:n="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new b(n))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var n;n=this._states.jobStatus(this.options.id);if(!(n===r||r==="DONE"&&n===null)){throw new b(`Invalid job status ${n}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,n){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:n})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,n,s,a){var l,u,d;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}u={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",u);try{d=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(n()){this.doDone(u);await a(this.options,u);this._assertStatus("DONE");return this._resolve(d)}}catch(r){l=r;return this._onFailure(l,u,n,s,a)}}doExpire(r,n,s){var a,l;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");l={args:this.args,options:this.options,retryCount:this.retryCount};a=new b(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(a,l,r,n,s)}async _onFailure(r,n,s,a,l){var u,d;if(s()){u=await this.Events.trigger("failed",r,n);if(u!=null){d=~~u;this.Events.trigger("retry",`Retrying ${this.options.id} after ${d} ms`,n);this.retryCount++;return a(d)}else{this.doDone(n);await l(this.options,n);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var S=w;var Q,v,R;R=n;Q=y;v=class LocalDatastore{constructor(r,n,s){this.instance=r;this.storeOptions=n;this.clientId=this.instance._randomIndex();R.load(s,s,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,n,s,a,l;a=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&a>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=a;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&a>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:s,reservoir:l}=this.storeOptions);this._lastReservoirIncrease=a;n=s!=null?Math.min(r,s-l):r;if(n>0){this.storeOptions.reservoir+=n;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(n,s){return setTimeout(n,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();R.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout=r}check(r,n){return this.conditionsCheck(r)&&this._nextRequest-n<=0}async __check__(r){var n;await this.yieldLoop();n=Date.now();return this.check(r,n)}async __register__(r,n,s){var a,l;await this.yieldLoop();a=Date.now();if(this.conditionsCheck(n)){this._running+=n;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=n}l=Math.max(this._nextRequest-a,0);this._nextRequest=a+l+this.storeOptions.minTime;return{success:true,wait:l,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,n){var s,a,l;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&n>this.storeOptions.maxConcurrent){throw new Q(`Impossible to add a job having a weight of ${n} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}a=Date.now();l=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(n,a);s=this.strategyIsBlock()&&(l||this.isBlocked(a));if(s){this._unblockTime=a+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:l,blocked:s,strategy:this.storeOptions.strategy}}async __free__(r,n){await this.yieldLoop();this._running-=n;this._done+=n;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var D=v;var N,T;N=y;T=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var n,s;n=this._jobs[r];s=n+1;if(n!=null&&s{r[this.status[s]]=n;return r}),{})}};var x=T;var k,_;k=a;_=class Sync{constructor(r,n){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=n;this._running=0;this._queue=new k}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,n,s,a,l,u,d;if(this._running<1&&this._queue.length>0){this._running++;({task:d,args:r,resolve:l,reject:a}=this._queue.shift());n=await async function(){try{u=await d(...r);return function(){return l(u)}}catch(r){s=r;return function(){return a(s)}}}();this._running--;this._tryToRun();return n()}}schedule(r,...n){var s,a,l;l=a=null;s=new this.Promise((function(r,n){l=r;return a=n}));this._queue.push({task:r,args:n,resolve:l,reject:a});this._tryToRun();return s}};var P=_;var F="2.19.5";var L={version:F};var O=Object.freeze({version:F,default:L});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var M,U,H,G,z,q;q=n;M=u;G=require$$2;H=require$$3;z=require$$4;U=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;q.load(this.limiterOptions,this.defaults,this);this.Events=new M(this);this.instances={};this.Bottleneck=ce;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new G(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new H(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var n;return(n=this.instances[r])!=null?n:(()=>{var n;n=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",n,r);return n})()}async deleteKey(r=""){var n,s;s=this.instances[r];if(this.connection){n=await this.connection.__runCommand__(["del",...z.allKeys(`${this.id}-${r}`)])}if(s!=null){delete this.instances[r];await s.disconnect()}return s!=null||n>0}limiters(){var r,n,s,a;n=this.instances;s=[];for(r in n){a=n[r];s.push({key:r,limiter:a})}return s}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,n,s,a,l,u,d,A,p;if(this.connection==null){return this.Promise.resolve(this.keys())}u=[];r=null;p=`b_${this.id}-`.length;n="_settings".length;while(r!==0){[A,s]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~A;for(a=0,d=s.length;a{var r,n,s,a,l,u;l=Date.now();s=this.instances;a=[];for(n in s){u=s[n];try{if(await u._store.__groupCheck__(l)){a.push(this.deleteKey(n))}else{a.push(void 0)}}catch(n){r=n;a.push(u.Events.trigger("error",r))}}return a}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){q.overwrite(r,this.defaults,this);q.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var n;if(!this.sharedConnection){return(n=this.connection)!=null?n.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var V=U;var W,j,Y;Y=n;j=u;W=function(){class Batcher{constructor(r={}){this.options=r;Y.load(this.options,this.defaults,this);this.Events=new j(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,n)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var n;this._arr.push(r);n=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return n}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var J=W;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var $=getCjsExportFromNamespace(O);var K,X,Z,ee,te,re,ne,se,ie,oe,ae,le=[].splice;re=10;X=5;ae=n;ne=f;ee=S;te=D;se=require$$4$1;Z=u;ie=x;oe=P;K=function(){class Bottleneck{constructor(r={},...n){var s,a;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,n);ae.load(r,this.instanceDefaults,this);this._queues=new ne(re);this._scheduled={};this._states=new ie(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Z(this);this._submitLock=new oe("submit",this.Promise);this._registerLock=new oe("register",this.Promise);a=ae.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){s=ae.load(r,this.redisStoreDefaults,{});return new se(this,a,s)}else if(this.datastore==="local"){s=ae.load(r,this.localStoreDefaults,{});return new te(this,a,s)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,n){if(!(r!=null&&typeof r==="object"&&n.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,n,s,a){var l,u;try{({running:u}=await this._store.__free__(r,s.weight));this.Events.trigger("debug",`Freed ${s.id}`,a);if(u===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){l=r;return this.Events.trigger("error",l)}}_run(r,n,s){var a,l,u;n.doRun();a=this._clearGlobalState.bind(this,r);u=this._run.bind(this,r,n);l=this._free.bind(this,r,n);return this._scheduled[r]={timeout:setTimeout((()=>n.doExecute(this._limiter,a,u,l)),s),expiration:n.options.expiration!=null?setTimeout((function(){return n.doExpire(a,u,l)}),s+n.options.expiration):void 0,job:n}}_drainOne(r){return this._registerLock.schedule((()=>{var n,s,a,l,u;if(this.queued()===0){return this.Promise.resolve(null)}u=this._queues.getFirst();({options:l,args:n}=a=u.first());if(r!=null&&l.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${l.id}`,{args:n,options:l});s=this._randomIndex();return this._store.__register__(s,l.weight,l.expiration).then((({success:r,wait:d,reservoir:A})=>{var p;this.Events.trigger("debug",`Drained ${l.id}`,{success:r,args:n,options:l});if(r){u.shift();p=this.empty();if(p){this.Events.trigger("empty")}if(A===0){this.Events.trigger("depleted",p)}this._run(s,a,d);return this.Promise.resolve(l.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,n=0){return this._drainOne(r).then((s=>{var a;if(s!=null){a=r!=null?r-s:r;return this._drainAll(a,n+s)}else{return this.Promise.resolve(n)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(n){return n.doDrop({message:r})}))}stop(r={}){var n,s;r=ae.load(r,this.stopDefaults);s=r=>{var n;n=()=>{var n;n=this._states.counts;return n[0]+n[1]+n[2]+n[3]===r};return new this.Promise(((r,s)=>{if(n()){return r()}else{return this.on("done",(()=>{if(n()){this.removeAllListeners("done");return r()}}))}}))};n=r.dropWaitingJobs?(this._run=function(n,s){return s.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var n,a,l;a=this._scheduled;for(n in a){l=a[n];if(this.jobStatus(l.job.options.id)==="RUNNING"){clearTimeout(l.timeout);clearTimeout(l.expiration);l.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return s(0)}))))):this.schedule({priority:re-1,weight:0},(()=>s(1)));this._receive=function(n){return n._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return n}async _addToQueue(r){var n,s,a,l,u,d,A;({args:n,options:l}=r);try{({reachedHWM:u,blocked:s,strategy:A}=await this._store.__submit__(this.queued(),l.weight))}catch(s){a=s;this.Events.trigger("debug",`Could not queue ${l.id}`,{args:n,options:l,error:a});r.doDrop({error:a});return false}if(s){r.doDrop();return true}else if(u){d=A===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(l.priority):A===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(l.priority+1):A===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(d!=null){d.doDrop()}if(d==null||A===Bottleneck.prototype.strategy.OVERFLOW){if(d==null){r.doDrop()}return u}}r.doQueue(u,s);this._queues.push(r);await this._drainAll();return u}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var n,s,a,l,u,d,A;if(typeof r[0]==="function"){u=r,[s,...r]=u,[n]=le.call(r,-1);l=ae.load({},this.jobDefaults)}else{d=r,[l,s,...r]=d,[n]=le.call(r,-1);l=ae.load(l,this.jobDefaults)}A=(...r)=>new this.Promise((function(n,a){return s(...r,(function(...r){return(r[0]!=null?a:n)(r)}))}));a=new ee(A,r,l,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);a.promise.then((function(r){return typeof n==="function"?n(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof n==="function"?n(...r):void 0}else{return typeof n==="function"?n(r):void 0}}));return this._receive(a)}schedule(...r){var n,s,a;if(typeof r[0]==="function"){[a,...r]=r;s={}}else{[s,a,...r]=r}n=new ee(a,r,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(n);return n.promise}wrap(r){var n,s;n=this.schedule.bind(this);s=function(...s){return n(r.bind(this),...s)};s.withOptions=function(s,...a){return n(s,r,...a)};return s}async updateSettings(r={}){await this._store.__updateSettings__(ae.overwrite(r,this.storeDefaults));ae.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Z;Bottleneck.version=Bottleneck.prototype.version=$.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=y;Bottleneck.Group=Bottleneck.prototype.Group=V;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=J;Bottleneck.prototype.jobDefaults={priority:X,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var ce=K;var ue=ce;return ue}))},23033:(r,n,s)=>{var a=s(90870);r.exports=expandTop;var l="\0SLASH"+Math.random()+"\0";var u="\0OPEN"+Math.random()+"\0";var d="\0CLOSE"+Math.random()+"\0";var A="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(l).split("\\{").join(u).split("\\}").join(d).split("\\,").join(A).split("\\.").join(p)}function unescapeBraces(r){return r.split(l).join("\\").split(u).join("{").split(d).join("}").split(A).join(",").split(p).join(".")}function parseCommaParts(r){if(!r)return[""];var n=[];var s=a("{","}",r);if(!s)return r.split(",");var l=s.pre;var u=s.body;var d=s.post;var A=l.split(",");A[A.length-1]+="{"+u+"}";var p=parseCommaParts(d);if(d.length){A[A.length-1]+=p.shift();A.push.apply(A,p)}n.push.apply(n,A);return n}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,n){return r<=n}function gte(r,n){return r>=n}function expand(r,n){var s=[];var l=a("{","}",r);if(!l)return[r];var u=l.pre;var A=l.post.length?expand(l.post,false):[""];if(/\$$/.test(l.pre)){for(var p=0;p=0;if(!b&&!C){if(l.post.match(/,(?!,).*\}/)){r=l.pre+"{"+l.body+d+l.post;return expand(r)}return[r]}var w;if(b){w=l.body.split(/\.\./)}else{w=parseCommaParts(l.body);if(w.length===1){w=expand(w[0],false).map(embrace);if(w.length===1){return A.map((function(r){return l.pre+w[0]+r}))}}}var B;if(b){var I=numeric(w[0]);var S=numeric(w[1]);var Q=Math.max(w[0].length,w[1].length);var v=w.length==3?Math.abs(numeric(w[2])):1;var R=lte;var D=S0){var _=new Array(k+1).join("0");if(T<0)x="-"+_+x.slice(1);else x=_+x}}}B.push(x)}}else{B=[];for(var P=0;P{const a=s(8602);const l=s(62358);const u=s(35671);const d=s(34180);const braces=(r,n={})=>{let s=[];if(Array.isArray(r)){for(const a of r){const r=braces.create(a,n);if(Array.isArray(r)){s.push(...r)}else{s.push(r)}}}else{s=[].concat(braces.create(r,n))}if(n&&n.expand===true&&n.nodupes===true){s=[...new Set(s)]}return s};braces.parse=(r,n={})=>d(r,n);braces.stringify=(r,n={})=>{if(typeof r==="string"){return a(braces.parse(r,n),n)}return a(r,n)};braces.compile=(r,n={})=>{if(typeof r==="string"){r=braces.parse(r,n)}return l(r,n)};braces.expand=(r,n={})=>{if(typeof r==="string"){r=braces.parse(r,n)}let s=u(r,n);if(n.noempty===true){s=s.filter(Boolean)}if(n.nodupes===true){s=[...new Set(s)]}return s};braces.create=(r,n={})=>{if(r===""||r.length<3){return[r]}return n.expand!==true?braces.compile(r,n):braces.expand(r,n)};r.exports=braces},62358:(r,n,s)=>{const a=s(56198);const l=s(67494);const compile=(r,n={})=>{const walk=(r,s={})=>{const u=l.isInvalidBrace(s);const d=r.invalid===true&&n.escapeInvalid===true;const A=u===true||d===true;const p=n.escapeInvalid===true?"\\":"";let f="";if(r.isOpen===true){return p+r.value}if(r.isClose===true){console.log("node.isClose",p,r.value);return p+r.value}if(r.type==="open"){return A?p+r.value:"("}if(r.type==="close"){return A?p+r.value:")"}if(r.type==="comma"){return r.prev.type==="comma"?"":A?r.value:"|"}if(r.value){return r.value}if(r.nodes&&r.ranges>0){const s=l.reduce(r.nodes);const u=a(...s,{...n,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return s.length>1&&u.length>1?`(${u})`:u}}if(r.nodes){for(const n of r.nodes){f+=walk(n,r)}}return f};return walk(r)};r.exports=compile},71230:r=>{r.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},35671:(r,n,s)=>{const a=s(56198);const l=s(8602);const u=s(67494);const append=(r="",n="",s=false)=>{const a=[];r=[].concat(r);n=[].concat(n);if(!n.length)return r;if(!r.length){return s?u.flatten(n).map((r=>`{${r}}`)):n}for(const l of r){if(Array.isArray(l)){for(const r of l){a.push(append(r,n,s))}}else{for(let r of n){if(s===true&&typeof r==="string")r=`{${r}}`;a.push(Array.isArray(r)?append(l,r,s):l+r)}}}return u.flatten(a)};const expand=(r,n={})=>{const s=n.rangeLimit===undefined?1e3:n.rangeLimit;const walk=(r,d={})=>{r.queue=[];let A=d;let p=d.queue;while(A.type!=="brace"&&A.type!=="root"&&A.parent){A=A.parent;p=A.queue}if(r.invalid||r.dollar){p.push(append(p.pop(),l(r,n)));return}if(r.type==="brace"&&r.invalid!==true&&r.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(r.nodes&&r.ranges>0){const d=u.reduce(r.nodes);if(u.exceedsLimit(...d,n.step,s)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let A=a(...d,n);if(A.length===0){A=l(r,n)}p.push(append(p.pop(),A));r.nodes=[];return}const f=u.encloseBrace(r);let g=r.queue;let y=r;while(y.type!=="brace"&&y.type!=="root"&&y.parent){y=y.parent;g=y.queue}for(let n=0;n{const a=s(8602);const{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:d,CHAR_COMMA:A,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:b,CHAR_LEFT_SQUARE_BRACKET:C,CHAR_RIGHT_SQUARE_BRACKET:w,CHAR_DOUBLE_QUOTE:B,CHAR_SINGLE_QUOTE:I,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Q}=s(71230);const parse=(r,n={})=>{if(typeof r!=="string"){throw new TypeError("Expected a string")}const s=n||{};const v=typeof s.maxLength==="number"?Math.min(l,s.maxLength):l;if(r.length>v){throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${v})`)}const R={type:"root",input:r,nodes:[]};const D=[R];let N=R;let T=R;let x=0;const k=r.length;let _=0;let P=0;let F;const advance=()=>r[_++];const push=r=>{if(r.type==="text"&&T.type==="dot"){T.type="text"}if(T&&T.type==="text"&&r.type==="text"){T.value+=r.value;return}N.nodes.push(r);r.parent=N;r.prev=T;T=r;return r};push({type:"bos"});while(_0){if(N.ranges>0){N.ranges=0;const r=N.nodes.shift();N.nodes=[r,{type:"text",value:a(N)}]}push({type:"comma",value:F});N.commas++;continue}if(F===p&&P>0&&N.commas===0){const r=N.nodes;if(P===0||r.length===0){push({type:"text",value:F});continue}if(T.type==="dot"){N.range=[];T.value+=F;T.type="range";if(N.nodes.length!==3&&N.nodes.length!==5){N.invalid=true;N.ranges=0;T.type="text";continue}N.ranges++;N.args=[];continue}if(T.type==="range"){r.pop();const n=r[r.length-1];n.value+=T.value+F;T=n;N.ranges--;continue}push({type:"dot",value:F});continue}push({type:"text",value:F})}do{N=D.pop();if(N.type!=="root"){N.nodes.forEach((r=>{if(!r.nodes){if(r.type==="open")r.isOpen=true;if(r.type==="close")r.isClose=true;if(!r.nodes)r.type="text";r.invalid=true}}));const r=D[D.length-1];const n=r.nodes.indexOf(N);r.nodes.splice(n,1,...N.nodes)}}while(D.length>0);push({type:"eos"});return R};r.exports=parse},8602:(r,n,s)=>{const a=s(67494);r.exports=(r,n={})=>{const stringify=(r,s={})=>{const l=n.escapeInvalid&&a.isInvalidBrace(s);const u=r.invalid===true&&n.escapeInvalid===true;let d="";if(r.value){if((l||u)&&a.isOpenOrClose(r)){return"\\"+r.value}return r.value}if(r.value){return r.value}if(r.nodes){for(const n of r.nodes){d+=stringify(n)}}return d};return stringify(r)}},67494:(r,n)=>{n.isInteger=r=>{if(typeof r==="number"){return Number.isInteger(r)}if(typeof r==="string"&&r.trim()!==""){return Number.isInteger(Number(r))}return false};n.find=(r,n)=>r.nodes.find((r=>r.type===n));n.exceedsLimit=(r,s,a=1,l)=>{if(l===false)return false;if(!n.isInteger(r)||!n.isInteger(s))return false;return(Number(s)-Number(r))/Number(a)>=l};n.escapeNode=(r,n=0,s)=>{const a=r.nodes[n];if(!a)return;if(s&&a.type===s||a.type==="open"||a.type==="close"){if(a.escaped!==true){a.value="\\"+a.value;a.escaped=true}}};n.encloseBrace=r=>{if(r.type!=="brace")return false;if(r.commas>>0+r.ranges>>0===0){r.invalid=true;return true}return false};n.isInvalidBrace=r=>{if(r.type!=="brace")return false;if(r.invalid===true||r.dollar)return true;if(r.commas>>0+r.ranges>>0===0){r.invalid=true;return true}if(r.open!==true||r.close!==true){r.invalid=true;return true}return false};n.isOpenOrClose=r=>{if(r.type==="open"||r.type==="close"){return true}return r.open===true||r.close===true};n.reduce=r=>r.reduce(((r,n)=>{if(n.type==="text")r.push(n.value);if(n.type==="range")n.type="text";return r}),[]);n.flatten=(...r)=>{const n=[];const flat=r=>{for(let s=0;s{r.exports=Buffers;function Buffers(r){if(!(this instanceof Buffers))return new Buffers(r);this.buffers=r||[];this.length=this.buffers.reduce((function(r,n){return r+n.length}),0)}Buffers.prototype.push=function(){for(var r=0;r=0?r:this.length-r;var l=[].slice.call(arguments,2);if(n===undefined){n=this.length-a}else if(n>this.length-a){n=this.length-a}for(var r=0;r0){var f=a-A;if(f+n0){var C=l.slice();C.unshift(y);C.push(b);s.splice.apply(s,[p,1].concat(C));p+=C.length;l=[]}else{s.splice(p,1,y,b);p+=2}}else{u.push(s[p].slice(f));s[p]=s[p].slice(0,f);p++}}if(l.length>0){s.splice.apply(s,[p,0].concat(l));p+=l.length}while(u.lengththis.length)n=this.length;var a=0;for(var l=0;l=n-r?Math.min(f+(n-r)-d,p):p;s[A].copy(u,d,f,g);d+=g-f}return u};Buffers.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");var n=r,s=0,a=null;for(;;){a=this.buffers[s];if(n=this.buffers[s].length){a=0;s++;if(s>=this.buffers.length){return-1}}var p=this.buffers[s][a];if(p==r[l]){if(l==0){u={i:s,j:a,pos:d}}l++;if(l==r.length){return u.pos}}else if(l!=0){s=u.i;a=u.j;d=u.pos;l=0}a++;d++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(r,n,s){return this.slice(n,s).toString(r)}},66428:(r,n,s)=>{var a=s(47441);var l=s(24434).EventEmitter;r.exports=Chainsaw;function Chainsaw(r){var n=Chainsaw.saw(r,{});var s=r.call(n.handlers,n);if(s!==undefined)n.handlers=s;n.record();return n.chain()}Chainsaw.light=function ChainsawLight(r){var n=Chainsaw.saw(r,{});var s=r.call(n.handlers,n);if(s!==undefined)n.handlers=s;return n.chain()};Chainsaw.saw=function(r,n){var s=new l;s.handlers=n;s.actions=[];s.chain=function(){var r=a(s.handlers).map((function(n){if(this.isRoot)return n;var a=this.path;if(typeof n==="function"){this.update((function(){s.actions.push({path:a,args:[].slice.call(arguments)});return r}))}}));process.nextTick((function(){s.emit("begin");s.next()}));return r};s.pop=function(){return s.actions.shift()};s.next=function(){var r=s.pop();if(!r){s.emit("end")}else if(!r.trap){var n=s.handlers;r.path.forEach((function(r){n=n[r]}));n.apply(s.handlers,r.args)}};s.nest=function(n){var a=[].slice.call(arguments,1);var l=true;if(typeof n==="boolean"){var l=n;n=a.shift()}var u=Chainsaw.saw(r,{});var d=r.call(u.handlers,u);if(d!==undefined)u.handlers=d;if("undefined"!==typeof s.step){u.record()}n.apply(u.chain(),a);if(l!==false)u.on("end",s.next)};s.record=function(){upgradeChainsaw(s)};["trap","down","jump"].forEach((function(r){s[r]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return s};function upgradeChainsaw(r){r.step=0;r.pop=function(){return r.actions[r.step++]};r.trap=function(n,s){var a=Array.isArray(n)?n:[n];r.actions.push({path:a,step:r.step,cb:s,trap:true})};r.down=function(n){var s=(Array.isArray(n)?n:[n]).join("/");var a=r.actions.slice(r.step).map((function(n){if(n.trap&&n.step<=r.step)return false;return n.path.join("/")==s})).indexOf(true);if(a>=0)r.step+=a;else r.step=r.actions.length;var l=r.actions[r.step-1];if(l&&l.trap){r.step=l.step;l.cb()}else r.next()};r.jump=function(n){r.step=n;r.next()}}},83998:r=>{var n=r.exports=function(){};n.prototype.getName=function(){};n.prototype.getSize=function(){};n.prototype.getLastModifiedDate=function(){};n.prototype.isDirectory=function(){}},90586:(r,n,s)=>{var a=s(39023).inherits;var l=s(82198);var u=s(48924).Transform;var d=s(83998);var A=s(53636);var p=r.exports=function(r){if(!(this instanceof p)){return new p(r)}u.call(this,r);this.offset=0;this._archive={finish:false,finished:false,processing:false}};a(p,u);p.prototype._appendBuffer=function(r,n,s){};p.prototype._appendStream=function(r,n,s){};p.prototype._emitErrorCallback=function(r){if(r){this.emit("error",r)}};p.prototype._finish=function(r){};p.prototype._normalizeEntry=function(r){};p.prototype._transform=function(r,n,s){s(null,r)};p.prototype.entry=function(r,n,s){n=n||null;if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}if(!(r instanceof d)){s(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){s(new Error("unacceptable entry after finish"));return}if(this._archive.processing){s(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(r);this._entry=r;n=A.normalizeInputSource(n);if(Buffer.isBuffer(n)){this._appendBuffer(r,n,s)}else if(l(n)){this._appendStream(r,n,s)}else{this._archive.processing=false;s(new Error("input source must be valid Stream or Buffer instance"));return}return this};p.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};p.prototype.getBytesWritten=function(){return this.offset};p.prototype.write=function(r,n){if(r){this.offset+=r.length}return u.prototype.write.call(this,r,n)}},84964:r=>{r.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},73368:(r,n,s)=>{var a=s(59229);var l=1<<3;var u=1<<0;var d=1<<2;var A=1<<1;var p=1<<6;var f=1<<11;var g=r.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return a.getShortBytes((this.descriptor?l:0)|(this.utf8?f:0)|(this.encryption?u:0)|(this.strongEncryption?p:0))};g.prototype.parse=function(r,n){var s=a.getShortBytesValue(r,n);var y=new g;y.useDataDescriptor((s&l)!==0);y.useUTF8ForNames((s&f)!==0);y.useStrongEncryption((s&p)!==0);y.useEncryption((s&u)!==0);y.setSlidingDictionarySize((s&A)!==0?8192:4096);y.setNumberOfShannonFanoTrees((s&d)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(r){this.numberOfShannonFanoTrees=r};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(r){this.slidingDictionarySize=r};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(r){this.descriptor=r};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(r){this.encryption=r};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(r){this.strongEncryption=r};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(r){this.utf8=r};g.prototype.usesUTF8ForNames=function(){return this.utf8}},64666:r=>{r.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},59229:r=>{var n=r.exports={};n.dateToDos=function(r,n){n=n||false;var s=n?r.getFullYear():r.getUTCFullYear();if(s<1980){return 2162688}else if(s>=2044){return 2141175677}var a={year:s,month:n?r.getMonth():r.getUTCMonth(),date:n?r.getDate():r.getUTCDate(),hours:n?r.getHours():r.getUTCHours(),minutes:n?r.getMinutes():r.getUTCMinutes(),seconds:n?r.getSeconds():r.getUTCSeconds()};return a.year-1980<<25|a.month+1<<21|a.date<<16|a.hours<<11|a.minutes<<5|a.seconds/2};n.dosToDate=function(r){return new Date((r>>25&127)+1980,(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(r&31)<<1)};n.fromDosTime=function(r){return n.dosToDate(r.readUInt32LE(0))};n.getEightBytes=function(r){var n=Buffer.alloc(8);n.writeUInt32LE(r%4294967296,0);n.writeUInt32LE(r/4294967296|0,4);return n};n.getShortBytes=function(r){var n=Buffer.alloc(2);n.writeUInt16LE((r&65535)>>>0,0);return n};n.getShortBytesValue=function(r,n){return r.readUInt16LE(n)};n.getLongBytes=function(r){var n=Buffer.alloc(4);n.writeUInt32LE((r&4294967295)>>>0,0);return n};n.getLongBytesValue=function(r,n){return r.readUInt32LE(n)};n.toDosTime=function(r){return n.getLongBytes(n.dateToDos(r))}},84220:(r,n,s)=>{var a=s(39023).inherits;var l=s(52398);var u=s(83998);var d=s(73368);var A=s(64666);var p=s(84964);var f=s(59229);var g=r.exports=function(r){if(!(this instanceof g)){return new g(r)}u.call(this);this.platform=p.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new d;this.crc=0;this.time=-1;this.minver=p.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(r){this.setName(r)}};a(g,u);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:p.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?f.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==p.PLATFORM_UNIX?0:this.getExternalAttributes()>>p.SHORT_SHIFT&p.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(r){if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=r};g.prototype.setCompressedSize=function(r){if(r<0){throw new Error("invalid entry compressed size")}this.csize=r};g.prototype.setCrc=function(r){if(r<0){throw new Error("invalid entry crc32")}this.crc=r};g.prototype.setExternalAttributes=function(r){this.exattr=r>>>0};g.prototype.setExtra=function(r){this.extra=r};g.prototype.setGeneralPurposeBit=function(r){if(!(r instanceof d)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=r};g.prototype.setInternalAttributes=function(r){this.inattr=r};g.prototype.setMethod=function(r){if(r<0){throw new Error("invalid entry compression method")}this.method=r};g.prototype.setName=function(r,n=false){r=l(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(n){r=`/${r}`}if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=r};g.prototype.setPlatform=function(r){this.platform=r};g.prototype.setSize=function(r){if(r<0){throw new Error("invalid entry size")}this.size=r};g.prototype.setTime=function(r,n){if(!(r instanceof Date)){throw new Error("invalid entry time")}this.time=f.dateToDos(r,n)};g.prototype.setUnixMode=function(r){r|=this.isDirectory()?p.S_IFDIR:p.S_IFREG;var n=0;n|=r<p.ZIP64_MAGIC||this.size>p.ZIP64_MAGIC}},24956:(r,n,s)=>{var a=s(39023).inherits;var l=s(62095);var{CRC32Stream:u}=s(62305);var{DeflateCRC32Stream:d}=s(62305);var A=s(90586);var p=s(84220);var f=s(73368);var g=s(84964);var y=s(53636);var b=s(59229);var C=r.exports=function(r){if(!(this instanceof C)){return new C(r)}r=this.options=this._defaults(r);A.call(this,r);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:r.forceZip64,forceLocalTime:r.forceLocalTime}};a(C,A);C.prototype._afterAppend=function(r){this._entries.push(r);if(r.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(r)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};C.prototype._appendBuffer=function(r,n,s){if(n.length===0){r.setMethod(g.METHOD_STORED)}var a=r.getMethod();if(a===g.METHOD_STORED){r.setSize(n.length);r.setCompressedSize(n.length);r.setCrc(l.buf(n)>>>0)}this._writeLocalFileHeader(r);if(a===g.METHOD_STORED){this.write(n);this._afterAppend(r);s(null,r);return}else if(a===g.METHOD_DEFLATED){this._smartStream(r,s).end(n);return}else{s(new Error("compression method "+a+" not implemented"));return}};C.prototype._appendStream=function(r,n,s){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(r);var a=this._smartStream(r,s);n.once("error",(function(r){a.emit("error",r);a.end()}));n.pipe(a)};C.prototype._defaults=function(r){if(typeof r!=="object"){r={}}if(typeof r.zlib!=="object"){r.zlib={}}if(typeof r.zlib.level!=="number"){r.zlib.level=g.ZLIB_BEST_SPEED}r.forceZip64=!!r.forceZip64;r.forceLocalTime=!!r.forceLocalTime;return r};C.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(r){this._writeCentralFileHeader(r)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};C.prototype._normalizeEntry=function(r){if(r.getMethod()===-1){r.setMethod(g.METHOD_DEFLATED)}if(r.getMethod()===g.METHOD_DEFLATED){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(r.getTime()===-1){r.setTime(new Date,this._archive.forceLocalTime)}r._offsets={file:0,data:0,contents:0}};C.prototype._smartStream=function(r,n){var s=r.getMethod()===g.METHOD_DEFLATED;var a=s?new d(this.options.zlib):new u;var l=null;function handleStuff(){var s=a.digest().readUInt32BE(0);r.setCrc(s);r.setSize(a.size());r.setCompressedSize(a.size(true));this._afterAppend(r);n(l,r)}a.once("end",handleStuff.bind(this));a.once("error",(function(r){l=r}));a.pipe(this,{end:false});return a};C.prototype._writeCentralDirectoryEnd=function(){var r=this._entries.length;var n=this._archive.centralLength;var s=this._archive.centralOffset;if(this.isZip64()){r=g.ZIP64_MAGIC_SHORT;n=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC}this.write(b.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r));this.write(b.getShortBytes(r));this.write(b.getLongBytes(n));this.write(b.getLongBytes(s));var a=this.getComment();var l=Buffer.byteLength(a);this.write(b.getShortBytes(l));this.write(a)};C.prototype._writeCentralDirectoryZip64=function(){this.write(b.getLongBytes(g.SIG_ZIP64_EOCD));this.write(b.getEightBytes(44));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._archive.centralLength));this.write(b.getEightBytes(this._archive.centralOffset));this.write(b.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(b.getLongBytes(1))};C.prototype._writeCentralFileHeader=function(r){var n=r.getGeneralPurposeBit();var s=r.getMethod();var a=r._offsets.file;var l=r.getSize();var u=r.getCompressedSize();if(r.isZip64()||a>g.ZIP64_MAGIC){l=g.ZIP64_MAGIC;u=g.ZIP64_MAGIC;a=g.ZIP64_MAGIC;r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var d=Buffer.concat([b.getShortBytes(g.ZIP64_EXTRA_ID),b.getShortBytes(24),b.getEightBytes(r.getSize()),b.getEightBytes(r.getCompressedSize()),b.getEightBytes(r._offsets.file)],28);r.setExtra(d)}this.write(b.getLongBytes(g.SIG_CFH));this.write(b.getShortBytes(r.getPlatform()<<8|g.VERSION_MADEBY));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(n.encode());this.write(b.getShortBytes(s));this.write(b.getLongBytes(r.getTimeDos()));this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(u));this.write(b.getLongBytes(l));var A=r.getName();var p=r.getComment();var f=r.getCentralDirectoryExtra();if(n.usesUTF8ForNames()){A=Buffer.from(A);p=Buffer.from(p)}this.write(b.getShortBytes(A.length));this.write(b.getShortBytes(f.length));this.write(b.getShortBytes(p.length));this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r.getInternalAttributes()));this.write(b.getLongBytes(r.getExternalAttributes()));this.write(b.getLongBytes(a));this.write(A);this.write(f);this.write(p)};C.prototype._writeDataDescriptor=function(r){this.write(b.getLongBytes(g.SIG_DD));this.write(b.getLongBytes(r.getCrc()));if(r.isZip64()){this.write(b.getEightBytes(r.getCompressedSize()));this.write(b.getEightBytes(r.getSize()))}else{this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}};C.prototype._writeLocalFileHeader=function(r){var n=r.getGeneralPurposeBit();var s=r.getMethod();var a=r.getName();var l=r.getLocalFileDataExtra();if(r.isZip64()){n.useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64)}if(n.usesUTF8ForNames()){a=Buffer.from(a)}r._offsets.file=this.offset;this.write(b.getLongBytes(g.SIG_LFH));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(n.encode());this.write(b.getShortBytes(s));this.write(b.getLongBytes(r.getTimeDos()));r._offsets.data=this.offset;if(n.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}this.write(b.getShortBytes(a.length));this.write(b.getShortBytes(l.length));this.write(a);this.write(l);r._offsets.contents=this.offset};C.prototype.getComment=function(r){return this._archive.comment!==null?this._archive.comment:""};C.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};C.prototype.setComment=function(r){this._archive.comment=r}},93920:(r,n,s)=>{r.exports={ArchiveEntry:s(83998),ZipArchiveEntry:s(84220),ArchiveOutputStream:s(90586),ZipArchiveOutputStream:s(24956)}},53636:(r,n,s)=>{var a=s(2203).Stream;var l=s(48924).PassThrough;var u=s(82198);var d=r.exports={};d.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(u(r)&&!r._readableState){var n=new l;r.pipe(n);return n}return r}},22465:(r,n,s)=>{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}n.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}n.isBoolean=isBoolean;function isNull(r){return r===null}n.isNull=isNull;function isNullOrUndefined(r){return r==null}n.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}n.isNumber=isNumber;function isString(r){return typeof r==="string"}n.isString=isString;function isSymbol(r){return typeof r==="symbol"}n.isSymbol=isSymbol;function isUndefined(r){return r===void 0}n.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}n.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}n.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}n.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}n.isError=isError;function isFunction(r){return typeof r==="function"}n.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}n.isPrimitive=isPrimitive;n.isBuffer=s(20181).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},62095:(r,n)=>{ +var a=s(41622);var l=s(53296);var Zip=function(r){if(!(this instanceof Zip)){return new Zip(r)}r=this.options=l.defaults(r,{comment:"",forceUTC:false,namePrependSlash:false,store:false});this.supports={directory:true,symlink:true};this.engine=new a(r)};Zip.prototype.append=function(r,n,s){this.engine.entry(r,n,s)};Zip.prototype.finalize=function(){this.engine.finalize()};Zip.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};Zip.prototype.pipe=function(){return this.engine.pipe.apply(this.engine,arguments)};Zip.prototype.unpipe=function(){return this.engine.unpipe.apply(this.engine,arguments)};r.exports=Zip},97329:function(r,n){(function(r,s){true?s(n):0})(this,(function(r){"use strict";function apply(r,...n){return(...s)=>r(...n,...s)}function initialParams(r){return function(...n){var s=n.pop();return r.call(this,n,s)}}var n=typeof queueMicrotask==="function"&&queueMicrotask;var s=typeof setImmediate==="function"&&setImmediate;var a=typeof process==="object"&&typeof process.nextTick==="function";function fallback(r){setTimeout(r,0)}function wrap(r){return(n,...s)=>r((()=>n(...s)))}var l;if(n){l=queueMicrotask}else if(s){l=setImmediate}else if(a){l=process.nextTick}else{l=fallback}var u=wrap(l);function asyncify(r){if(isAsync(r)){return function(...n){const s=n.pop();const a=r.apply(this,n);return handlePromise(a,s)}}return initialParams((function(n,s){var a;try{a=r.apply(this,n)}catch(r){return s(r)}if(a&&typeof a.then==="function"){return handlePromise(a,s)}else{s(null,a)}}))}function handlePromise(r,n){return r.then((r=>{invokeCallback(n,null,r)}),(r=>{invokeCallback(n,r&&(r instanceof Error||r.message)?r:new Error(r))}))}function invokeCallback(r,n,s){try{r(n,s)}catch(r){u((r=>{throw r}),r)}}function isAsync(r){return r[Symbol.toStringTag]==="AsyncFunction"}function isAsyncGenerator(r){return r[Symbol.toStringTag]==="AsyncGenerator"}function isAsyncIterable(r){return typeof r[Symbol.asyncIterator]==="function"}function wrapAsync(r){if(typeof r!=="function")throw new Error("expected a function");return isAsync(r)?asyncify(r):r}function awaitify(r,n){if(!n)n=r.length;if(!n)throw new Error("arity is undefined");function awaitable(...s){if(typeof s[n-1]==="function"){return r.apply(this,s)}return new Promise(((a,l)=>{s[n-1]=(r,...n)=>{if(r)return l(r);a(n.length>1?n:n[0])};r.apply(this,s)}))}return awaitable}function applyEach$1(r){return function applyEach(n,...s){const a=awaitify((function(a){var l=this;return r(n,((r,n)=>{wrapAsync(r).apply(l,s.concat(n))}),a)}));return a}}function _asyncMap(r,n,s,a){n=n||[];var l=[];var u=0;var d=wrapAsync(s);return r(n,((r,n,s)=>{var a=u++;d(r,((r,n)=>{l[a]=n;s(r)}))}),(r=>{a(r,l)}))}function isArrayLike(r){return r&&typeof r.length==="number"&&r.length>=0&&r.length%1===0}const d={};function once(r){function wrapper(...n){if(r===null)return;var s=r;r=null;s.apply(this,n)}Object.assign(wrapper,r);return wrapper}function getIterator(r){return r[Symbol.iterator]&&r[Symbol.iterator]()}function createArrayIterator(r){var n=-1;var s=r.length;return function next(){return++n=n||A||l)return;A=true;r.next().then((({value:r,done:n})=>{if(u||l)return;A=false;if(n){l=true;if(p<=0){a(null)}return}p++;s(r,f,iterateeCallback);f++;replenish()})).catch(handleError)}function iterateeCallback(r,n){p-=1;if(u)return;if(r)return handleError(r);if(r===false){l=true;u=true;return}if(n===d||l&&p<=0){l=true;return a(null)}replenish()}function handleError(r){if(u)return;A=false;l=true;a(r)}replenish()}var eachOfLimit$2=r=>(n,s,a)=>{a=once(a);if(r<=0){throw new RangeError("concurrency limit cannot be less than 1")}if(!n){return a(null)}if(isAsyncGenerator(n)){return asyncEachOfLimit(n,r,s,a)}if(isAsyncIterable(n)){return asyncEachOfLimit(n[Symbol.asyncIterator](),r,s,a)}var l=createIterator(n);var u=false;var A=false;var p=0;var f=false;function iterateeCallback(r,n){if(A)return;p-=1;if(r){u=true;a(r)}else if(r===false){u=true;A=true}else if(n===d||u&&p<=0){u=true;return a(null)}else if(!f){replenish()}}function replenish(){f=true;while(p1?a:a[0])}callback[w]=new Promise(((s,a)=>{r=s,n=a}));return callback}function auto(r,n,s){if(typeof n!=="number"){s=n;n=null}s=once(s||promiseCallback());var a=Object.keys(r).length;if(!a){return s(null)}if(!n){n=a}var l={};var u=0;var d=false;var A=false;var p=Object.create(null);var f=[];var g=[];var y={};Object.keys(r).forEach((n=>{var s=r[n];if(!Array.isArray(s)){enqueueTask(n,[s]);g.push(n);return}var a=s.slice(0,s.length-1);var l=a.length;if(l===0){enqueueTask(n,s);g.push(n);return}y[n]=l;a.forEach((u=>{if(!r[u]){throw new Error("async.auto task `"+n+"` has a non-existent dependency `"+u+"` in "+a.join(", "))}addListener(u,(()=>{l--;if(l===0){enqueueTask(n,s)}}))}))}));checkForDeadlocks();processQueue();function enqueueTask(r,n){f.push((()=>runTask(r,n)))}function processQueue(){if(d)return;if(f.length===0&&u===0){return s(null,l)}while(f.length&&ur()));processQueue()}function runTask(r,n){if(A)return;var a=onlyOnce(((n,...a)=>{u--;if(n===false){d=true;return}if(a.length<2){[a]=a}if(n){var f={};Object.keys(l).forEach((r=>{f[r]=l[r]}));f[r]=a;A=true;p=Object.create(null);if(d)return;s(n,f)}else{l[r]=a;taskComplete(r)}}));u++;var f=wrapAsync(n[n.length-1]);if(n.length>1){f(l,a)}else{f(a)}}function checkForDeadlocks(){var r;var n=0;while(g.length){r=g.pop();n++;getDependents(r).forEach((r=>{if(--y[r]===0){g.push(r)}}))}if(n!==a){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(n){var s=[];Object.keys(r).forEach((a=>{const l=r[a];if(Array.isArray(l)&&l.indexOf(n)>=0){s.push(a)}}));return s}return s[w]}var B=/^(?:async\s)?(?:function)?\s*(?:\w+\s*)?\(([^)]+)\)(?:\s*{)/;var I=/^(?:async\s)?\s*(?:\(\s*)?((?:[^)=\s]\s*)*)(?:\)\s*)?=>/;var S=/,/;var Q=/(=.+)?(\s*)$/;function stripComments(r){let n="";let s=0;let a=r.indexOf("*/");while(sr.replace(Q,"").trim()))}function autoInject(r,n){var s={};Object.keys(r).forEach((n=>{var a=r[n];var l;var u=isAsync(a);var d=!u&&a.length===1||u&&a.length===0;if(Array.isArray(a)){l=[...a];a=l.pop();s[n]=l.concat(l.length>0?newTask:a)}else if(d){s[n]=a}else{l=parseParams(a);if(a.length===0&&!u&&l.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!u)l.pop();s[n]=l.concat(newTask)}function newTask(r,n){var s=l.map((n=>r[n]));s.push(n);wrapAsync(a)(...s)}}));return auto(s,n)}class DLL{constructor(){this.head=this.tail=null;this.length=0}removeLink(r){if(r.prev)r.prev.next=r.next;else this.head=r.next;if(r.next)r.next.prev=r.prev;else this.tail=r.prev;r.prev=r.next=null;this.length-=1;return r}empty(){while(this.head)this.shift();return this}insertAfter(r,n){n.prev=r;n.next=r.next;if(r.next)r.next.prev=n;else this.tail=n;r.next=n;this.length+=1}insertBefore(r,n){n.prev=r.prev;n.next=r;if(r.prev)r.prev.next=n;else this.head=n;r.prev=n;this.length+=1}unshift(r){if(this.head)this.insertBefore(this.head,r);else setInitial(this,r)}push(r){if(this.tail)this.insertAfter(this.tail,r);else setInitial(this,r)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){var r=this.head;while(r){yield r.data;r=r.next}}remove(r){var n=this.head;while(n){var{next:s}=n;if(r(n)){this.removeLink(n)}n=s}return this}}function setInitial(r,n){r.length=1;r.head=r.tail=n}function queue$1(r,n,s){if(n==null){n=1}else if(n===0){throw new RangeError("Concurrency must not be zero")}var a=wrapAsync(r);var l=0;var d=[];const A={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function on(r,n){A[r].push(n)}function once(r,n){const handleAndRemove=(...s)=>{off(r,handleAndRemove);n(...s)};A[r].push(handleAndRemove)}function off(r,n){if(!r)return Object.keys(A).forEach((r=>A[r]=[]));if(!n)return A[r]=[];A[r]=A[r].filter((r=>r!==n))}function trigger(r,...n){A[r].forEach((r=>r(...n)))}var p=false;function _insert(r,n,s,a){if(a!=null&&typeof a!=="function"){throw new Error("task callback must be a function")}g.started=true;var l,d;function promiseCallback(r,...n){if(r)return s?d(r):l();if(n.length<=1)return l(n[0]);l(n)}var A=g._createTaskItem(r,s?promiseCallback:a||promiseCallback);if(n){g._tasks.unshift(A)}else{g._tasks.push(A)}if(!p){p=true;u((()=>{p=false;g.process()}))}if(s||!a){return new Promise(((r,n)=>{l=r;d=n}))}}function _createCB(r){return function(n,...s){l-=1;for(var a=0,u=r.length;a0){d.splice(p,1)}A.callback(n,...s);if(n!=null){trigger("error",n,A.data)}}if(l<=g.concurrency-g.buffer){trigger("unsaturated")}if(g.idle()){trigger("drain")}g.process()}}function _maybeDrain(r){if(r.length===0&&g.idle()){u((()=>trigger("drain")));return true}return false}const eventMethod=r=>n=>{if(!n){return new Promise(((n,s)=>{once(r,((r,a)=>{if(r)return s(r);n(a)}))}))}off(r);on(r,n)};var f=false;var g={_tasks:new DLL,_createTaskItem(r,n){return{data:r,callback:n}},*[Symbol.iterator](){yield*g._tasks[Symbol.iterator]()},concurrency:n,payload:s,buffer:n/4,started:false,paused:false,push(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,false,n)))}return _insert(r,false,false,n)},pushAsync(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,false,true,n)))}return _insert(r,false,true,n)},kill(){off();g._tasks.empty()},unshift(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,false,n)))}return _insert(r,true,false,n)},unshiftAsync(r,n){if(Array.isArray(r)){if(_maybeDrain(r))return;return r.map((r=>_insert(r,true,true,n)))}return _insert(r,true,true,n)},remove(r){g._tasks.remove(r)},process(){if(f){return}f=true;while(!g.paused&&l{l(n,r,((r,s)=>{n=s;a(r)}))}),(r=>a(r,n)))}var v=awaitify(reduce,4);function seq(...r){var n=r.map(wrapAsync);return function(...r){var s=this;var a=r[r.length-1];if(typeof a=="function"){r.pop()}else{a=promiseCallback()}v(n,r,((r,n,a)=>{n.apply(s,r.concat(((r,...n)=>{a(r,n)})))}),((r,n)=>a(r,...n)));return a[w]}}function compose(...r){return seq(...r.reverse())}function mapLimit(r,n,s,a){return _asyncMap(eachOfLimit$2(n),r,s,a)}var R=awaitify(mapLimit,4);function concatLimit(r,n,s,a){var l=wrapAsync(s);return R(r,n,((r,n)=>{l(r,((r,...s)=>{if(r)return n(r);return n(r,s)}))}),((r,n)=>{var s=[];for(var l=0;l{var A=false;var p;const f=wrapAsync(l);s(a,((s,a,l)=>{f(s,((a,u)=>{if(a||a===false)return l(a);if(r(u)&&!p){A=true;p=n(true,s);return l(null,d)}l()}))}),(r=>{if(r)return u(r);u(null,A?p:n(false))}))}}function detect(r,n,s){return _createTester((r=>r),((r,n)=>n))(p,r,n,s)}var T=awaitify(detect,3);function detectLimit(r,n,s,a){return _createTester((r=>r),((r,n)=>n))(eachOfLimit$2(n),r,s,a)}var k=awaitify(detectLimit,4);function detectSeries(r,n,s){return _createTester((r=>r),((r,n)=>n))(eachOfLimit$2(1),r,n,s)}var _=awaitify(detectSeries,3);function consoleFunc(r){return(n,...s)=>wrapAsync(n)(...s,((n,...s)=>{if(typeof console==="object"){if(n){if(console.error){console.error(n)}}else if(console[r]){s.forEach((n=>console[r](n)))}}}))}var P=consoleFunc("dir");function doWhilst(r,n,s){s=onlyOnce(s);var a=wrapAsync(r);var l=wrapAsync(n);var u;function next(r,...n){if(r)return s(r);if(r===false)return;u=n;l(...n,check)}function check(r,n){if(r)return s(r);if(r===false)return;if(!n)return s(null,...u);a(next)}return check(null,true)}var F=awaitify(doWhilst,3);function doUntil(r,n,s){const a=wrapAsync(n);return F(r,((...r)=>{const n=r.pop();a(...r,((r,s)=>n(r,!s)))}),s)}function _withoutIndex(r){return(n,s,a)=>r(n,a)}function eachLimit$2(r,n,s){return p(r,_withoutIndex(wrapAsync(n)),s)}var L=awaitify(eachLimit$2,3);function eachLimit(r,n,s,a){return eachOfLimit$2(n)(r,_withoutIndex(wrapAsync(s)),a)}var O=awaitify(eachLimit,4);function eachSeries(r,n,s){return O(r,1,n,s)}var M=awaitify(eachSeries,3);function ensureAsync(r){if(isAsync(r))return r;return function(...n){var s=n.pop();var a=true;n.push(((...r)=>{if(a){u((()=>s(...r)))}else{s(...r)}}));r.apply(this,n);a=false}}function every(r,n,s){return _createTester((r=>!r),(r=>!r))(p,r,n,s)}var U=awaitify(every,3);function everyLimit(r,n,s,a){return _createTester((r=>!r),(r=>!r))(eachOfLimit$2(n),r,s,a)}var H=awaitify(everyLimit,4);function everySeries(r,n,s){return _createTester((r=>!r),(r=>!r))(y,r,n,s)}var G=awaitify(everySeries,3);function filterArray(r,n,s,a){var l=new Array(n.length);r(n,((r,n,a)=>{s(r,((r,s)=>{l[n]=!!s;a(r)}))}),(r=>{if(r)return a(r);var s=[];for(var u=0;u{s(r,((s,u)=>{if(s)return a(s);if(u){l.push({index:n,value:r})}a(s)}))}),(r=>{if(r)return a(r);a(null,l.sort(((r,n)=>r.index-n.index)).map((r=>r.value)))}))}function _filter(r,n,s,a){var l=isArrayLike(n)?filterArray:filterGeneric;return l(r,n,wrapAsync(s),a)}function filter(r,n,s){return _filter(p,r,n,s)}var z=awaitify(filter,3);function filterLimit(r,n,s,a){return _filter(eachOfLimit$2(n),r,s,a)}var q=awaitify(filterLimit,4);function filterSeries(r,n,s){return _filter(y,r,n,s)}var V=awaitify(filterSeries,3);function forever(r,n){var s=onlyOnce(n);var a=wrapAsync(ensureAsync(r));function next(r){if(r)return s(r);if(r===false)return;a(next)}return next()}var j=awaitify(forever,2);function groupByLimit(r,n,s,a){var l=wrapAsync(s);return R(r,n,((r,n)=>{l(r,((s,a)=>{if(s)return n(s);return n(s,{key:a,val:r})}))}),((r,n)=>{var s={};var{hasOwnProperty:l}=Object.prototype;for(var u=0;u{u(r,n,((r,a)=>{if(r)return s(r);l[n]=a;s(r)}))}),(r=>a(r,l)))}var J=awaitify(mapValuesLimit,4);function mapValues(r,n,s){return J(r,Infinity,n,s)}function mapValuesSeries(r,n,s){return J(r,1,n,s)}function memoize(r,n=r=>r){var s=Object.create(null);var a=Object.create(null);var l=wrapAsync(r);var d=initialParams(((r,d)=>{var A=n(...r);if(A in s){u((()=>d(null,...s[A])))}else if(A in a){a[A].push(d)}else{a[A]=[d];l(...r,((r,...n)=>{if(!r){s[A]=n}var l=a[A];delete a[A];for(var u=0,d=l.length;u{var a=isArrayLike(n)?[]:{};r(n,((r,n,s)=>{wrapAsync(r)(((r,...l)=>{if(l.length<2){[l]=l}a[n]=l;s(r)}))}),(r=>s(r,a)))}),3);function parallel(r,n){return X(p,r,n)}function parallelLimit(r,n,s){return X(eachOfLimit$2(n),r,s)}function queue(r,n){var s=wrapAsync(r);return queue$1(((r,n)=>{s(r[0],n)}),n,1)}class Heap{constructor(){this.heap=[];this.pushCount=Number.MIN_SAFE_INTEGER}get length(){return this.heap.length}empty(){this.heap=[];return this}percUp(r){let n;while(r>0&&smaller(this.heap[r],this.heap[n=parent(r)])){let s=this.heap[r];this.heap[r]=this.heap[n];this.heap[n]=s;r=n}}percDown(r){let n;while((n=leftChi(r))=0;r--){this.percDown(r)}return this}}function leftChi(r){return(r<<1)+1}function parent(r){return(r+1>>1)-1}function smaller(r,n){if(r.priority!==n.priority){return r.priority({data:r,priority:n,callback:s});function createDataItems(r,n){if(!Array.isArray(r)){return{data:r,priority:n}}return r.map((r=>({data:r,priority:n})))}s.push=function(r,n=0,s){return a(createDataItems(r,n),s)};s.pushAsync=function(r,n=0,s){return l(createDataItems(r,n),s)};delete s.unshift;delete s.unshiftAsync;return s}function race(r,n){n=once(n);if(!Array.isArray(r))return n(new TypeError("First argument to race must be an array of functions"));if(!r.length)return n();for(var s=0,a=r.length;s{let a={};if(r){a.error=r}if(n.length>0){var l=n;if(n.length<=1){[l]=n}a.value=l}s(null,a)}));return n.apply(this,r)}))}function reflectAll(r){var n;if(Array.isArray(r)){n=r.map(reflect)}else{n={};Object.keys(r).forEach((s=>{n[s]=reflect.call(this,r[s])}))}return n}function reject$2(r,n,s,a){const l=wrapAsync(s);return _filter(r,n,((r,n)=>{l(r,((r,s)=>{n(r,!s)}))}),a)}function reject(r,n,s){return reject$2(p,r,n,s)}var ee=awaitify(reject,3);function rejectLimit(r,n,s,a){return reject$2(eachOfLimit$2(n),r,s,a)}var te=awaitify(rejectLimit,4);function rejectSeries(r,n,s){return reject$2(y,r,n,s)}var re=awaitify(rejectSeries,3);function constant(r){return function(){return r}}const ne=5;const se=0;function retry(r,n,s){var a={times:ne,intervalFunc:constant(se)};if(arguments.length<3&&typeof r==="function"){s=n||promiseCallback();n=r}else{parseTimes(a,r);s=s||promiseCallback()}if(typeof n!=="function"){throw new Error("Invalid arguments for async.retry")}var l=wrapAsync(n);var u=1;function retryAttempt(){l(((r,...n)=>{if(r===false)return;if(r&&u++{if(n.lengthr))(p,r,n,s)}var ie=awaitify(some,3);function someLimit(r,n,s,a){return _createTester(Boolean,(r=>r))(eachOfLimit$2(n),r,s,a)}var oe=awaitify(someLimit,4);function someSeries(r,n,s){return _createTester(Boolean,(r=>r))(y,r,n,s)}var ae=awaitify(someSeries,3);function sortBy(r,n,s){var a=wrapAsync(n);return f(r,((r,n)=>{a(r,((s,a)=>{if(s)return n(s);n(s,{value:r,criteria:a})}))}),((r,n)=>{if(r)return s(r);s(null,n.sort(comparator).map((r=>r.value)))}));function comparator(r,n){var s=r.criteria,a=n.criteria;return sa?1:0}}var le=awaitify(sortBy,3);function timeout(r,n,s){var a=wrapAsync(r);return initialParams(((l,u)=>{var d=false;var A;function timeoutCallback(){var n=r.name||"anonymous";var a=new Error('Callback function "'+n+'" timed out.');a.code="ETIMEDOUT";if(s){a.info=s}d=true;u(a)}l.push(((...r)=>{if(!d){u(...r);clearTimeout(A)}}));A=setTimeout(timeoutCallback,n);a(...l)}))}function range(r){var n=Array(r);while(r--){n[r]=r}return n}function timesLimit(r,n,s,a){var l=wrapAsync(s);return R(range(r),n,l,a)}function times(r,n,s){return timesLimit(r,Infinity,n,s)}function timesSeries(r,n,s){return timesLimit(r,1,n,s)}function transform(r,n,s,a){if(arguments.length<=3&&typeof n==="function"){a=s;s=n;n=Array.isArray(r)?[]:{}}a=once(a||promiseCallback());var l=wrapAsync(s);p(r,((r,s,a)=>{l(n,r,s,a)}),(r=>a(r,n)));return a[w]}function tryEach(r,n){var s=null;var a;return M(r,((r,n)=>{wrapAsync(r)(((r,...l)=>{if(r===false)return n(r);if(l.length<2){[a]=l}else{a=l}s=r;n(r?null:{})}))}),(()=>n(s,a)))}var ce=awaitify(tryEach);function unmemoize(r){return(...n)=>(r.unmemoized||r)(...n)}function whilst(r,n,s){s=onlyOnce(s);var a=wrapAsync(n);var l=wrapAsync(r);var u=[];function next(r,...n){if(r)return s(r);u=n;if(r===false)return;l(check)}function check(r,n){if(r)return s(r);if(r===false)return;if(!n)return s(null,...u);a(next)}return l(check)}var ue=awaitify(whilst,3);function until(r,n,s){const a=wrapAsync(r);return ue((r=>a(((n,s)=>r(n,!s)))),n,s)}function waterfall(r,n){n=once(n);if(!Array.isArray(r))return n(new Error("First argument to waterfall must be an array of functions"));if(!r.length)return n();var s=0;function nextTask(n){var a=wrapAsync(r[s++]);a(...n,onlyOnce(next))}function next(a,...l){if(a===false)return;if(a||s===r.length){return n(a,...l)}nextTask(l)}nextTask([])}var de=awaitify(waterfall);var Ae={apply:apply,applyEach:g,applyEachSeries:C,asyncify:asyncify,auto:auto,autoInject:autoInject,cargo:cargo$1,cargoQueue:cargo,compose:compose,concat:x,concatLimit:N,concatSeries:D,constant:constant$1,detect:T,detectLimit:k,detectSeries:_,dir:P,doUntil:doUntil,doWhilst:F,each:L,eachLimit:O,eachOf:p,eachOfLimit:A,eachOfSeries:y,eachSeries:M,ensureAsync:ensureAsync,every:U,everyLimit:H,everySeries:G,filter:z,filterLimit:q,filterSeries:V,forever:j,groupBy:groupBy,groupByLimit:W,groupBySeries:groupBySeries,log:Y,map:f,mapLimit:R,mapSeries:b,mapValues:mapValues,mapValuesLimit:J,mapValuesSeries:mapValuesSeries,memoize:memoize,nextTick:K,parallel:parallel,parallelLimit:parallelLimit,priorityQueue:priorityQueue,queue:queue,race:Z,reduce:v,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:ee,rejectLimit:te,rejectSeries:re,retry:retry,retryable:retryable,seq:seq,series:series,setImmediate:u,some:ie,someLimit:oe,someSeries:ae,sortBy:le,timeout:timeout,times:times,timesLimit:timesLimit,timesSeries:timesSeries,transform:transform,tryEach:ce,unmemoize:unmemoize,until:until,waterfall:de,whilst:ue,all:U,allLimit:H,allSeries:G,any:ie,anyLimit:oe,anySeries:ae,find:T,findLimit:k,findSeries:_,flatMap:x,flatMapLimit:N,flatMapSeries:D,forEach:L,forEachSeries:M,forEachLimit:O,forEachOf:p,forEachOfSeries:y,forEachOfLimit:A,inject:v,foldl:v,foldr:reduceRight,select:z,selectLimit:q,selectSeries:V,wrapSync:asyncify,during:ue,doDuring:F};r.all=U;r.allLimit=H;r.allSeries=G;r.any=ie;r.anyLimit=oe;r.anySeries=ae;r.apply=apply;r.applyEach=g;r.applyEachSeries=C;r.asyncify=asyncify;r.auto=auto;r.autoInject=autoInject;r.cargo=cargo$1;r.cargoQueue=cargo;r.compose=compose;r.concat=x;r.concatLimit=N;r.concatSeries=D;r.constant=constant$1;r.default=Ae;r.detect=T;r.detectLimit=k;r.detectSeries=_;r.dir=P;r.doDuring=F;r.doUntil=doUntil;r.doWhilst=F;r.during=ue;r.each=L;r.eachLimit=O;r.eachOf=p;r.eachOfLimit=A;r.eachOfSeries=y;r.eachSeries=M;r.ensureAsync=ensureAsync;r.every=U;r.everyLimit=H;r.everySeries=G;r.filter=z;r.filterLimit=q;r.filterSeries=V;r.find=T;r.findLimit=k;r.findSeries=_;r.flatMap=x;r.flatMapLimit=N;r.flatMapSeries=D;r.foldl=v;r.foldr=reduceRight;r.forEach=L;r.forEachLimit=O;r.forEachOf=p;r.forEachOfLimit=A;r.forEachOfSeries=y;r.forEachSeries=M;r.forever=j;r.groupBy=groupBy;r.groupByLimit=W;r.groupBySeries=groupBySeries;r.inject=v;r.log=Y;r.map=f;r.mapLimit=R;r.mapSeries=b;r.mapValues=mapValues;r.mapValuesLimit=J;r.mapValuesSeries=mapValuesSeries;r.memoize=memoize;r.nextTick=K;r.parallel=parallel;r.parallelLimit=parallelLimit;r.priorityQueue=priorityQueue;r.queue=queue;r.race=Z;r.reduce=v;r.reduceRight=reduceRight;r.reflect=reflect;r.reflectAll=reflectAll;r.reject=ee;r.rejectLimit=te;r.rejectSeries=re;r.retry=retry;r.retryable=retryable;r.select=z;r.selectLimit=q;r.selectSeries=V;r.seq=seq;r.series=series;r.setImmediate=u;r.some=ie;r.someLimit=oe;r.someSeries=ae;r.sortBy=le;r.timeout=timeout;r.times=times;r.timesLimit=timesLimit;r.timesSeries=timesSeries;r.transform=transform;r.tryEach=ce;r.unmemoize=unmemoize;r.until=until;r.waterfall=de;r.whilst=ue;r.wrapSync=asyncify;Object.defineProperty(r,"__esModule",{value:true})}))},73057:r=>{function isBuffer(r){return Buffer.isBuffer(r)||r instanceof Uint8Array}function isEncoding(r){return Buffer.isEncoding(r)}function alloc(r,n,s){return Buffer.alloc(r,n,s)}function allocUnsafe(r){return Buffer.allocUnsafe(r)}function allocUnsafeSlow(r){return Buffer.allocUnsafeSlow(r)}function byteLength(r,n){return Buffer.byteLength(r,n)}function compare(r,n){return Buffer.compare(r,n)}function concat(r,n){return Buffer.concat(r,n)}function copy(r,n,s,a,l){return toBuffer(r).copy(n,s,a,l)}function equals(r,n){return toBuffer(r).equals(n)}function fill(r,n,s,a,l){return toBuffer(r).fill(n,s,a,l)}function from(r,n,s){return Buffer.from(r,n,s)}function includes(r,n,s,a){return toBuffer(r).includes(n,s,a)}function indexOf(r,n,s,a){return toBuffer(r).indexOf(n,s,a)}function lastIndexOf(r,n,s,a){return toBuffer(r).lastIndexOf(n,s,a)}function swap16(r){return toBuffer(r).swap16()}function swap32(r){return toBuffer(r).swap32()}function swap64(r){return toBuffer(r).swap64()}function toBuffer(r){if(Buffer.isBuffer(r))return r;return Buffer.from(r.buffer,r.byteOffset,r.byteLength)}function toString(r,n,s,a){return toBuffer(r).toString(n,s,a)}function write(r,n,s,a,l){return toBuffer(r).write(n,s,a,l)}function readDoubleBE(r,n){return toBuffer(r).readDoubleBE(n)}function readDoubleLE(r,n){return toBuffer(r).readDoubleLE(n)}function readFloatBE(r,n){return toBuffer(r).readFloatBE(n)}function readFloatLE(r,n){return toBuffer(r).readFloatLE(n)}function readInt32BE(r,n){return toBuffer(r).readInt32BE(n)}function readInt32LE(r,n){return toBuffer(r).readInt32LE(n)}function readUInt32BE(r,n){return toBuffer(r).readUInt32BE(n)}function readUInt32LE(r,n){return toBuffer(r).readUInt32LE(n)}function writeDoubleBE(r,n,s){return toBuffer(r).writeDoubleBE(n,s)}function writeDoubleLE(r,n,s){return toBuffer(r).writeDoubleLE(n,s)}function writeFloatBE(r,n,s){return toBuffer(r).writeFloatBE(n,s)}function writeFloatLE(r,n,s){return toBuffer(r).writeFloatLE(n,s)}function writeInt32BE(r,n,s){return toBuffer(r).writeInt32BE(n,s)}function writeInt32LE(r,n,s){return toBuffer(r).writeInt32LE(n,s)}function writeUInt32BE(r,n,s){return toBuffer(r).writeUInt32BE(n,s)}function writeUInt32LE(r,n,s){return toBuffer(r).writeUInt32LE(n,s)}r.exports={isBuffer:isBuffer,isEncoding:isEncoding,alloc:alloc,allocUnsafe:allocUnsafe,allocUnsafeSlow:allocUnsafeSlow,byteLength:byteLength,compare:compare,concat:concat,copy:copy,equals:equals,fill:fill,from:from,includes:includes,indexOf:indexOf,lastIndexOf:lastIndexOf,swap16:swap16,swap32:swap32,swap64:swap64,toBuffer:toBuffer,toString:toString,write:write,readDoubleBE:readDoubleBE,readDoubleLE:readDoubleLE,readFloatBE:readFloatBE,readFloatLE:readFloatLE,readInt32BE:readInt32BE,readInt32LE:readInt32LE,readUInt32BE:readUInt32BE,readUInt32LE:readUInt32LE,writeDoubleBE:writeDoubleBE,writeDoubleLE:writeDoubleLE,writeFloatBE:writeFloatBE,writeFloatLE:writeFloatLE,writeInt32BE:writeInt32BE,writeInt32LE:writeInt32LE,writeUInt32BE:writeUInt32BE,writeUInt32LE:writeUInt32LE}},59380:r=>{r.exports=balanced;function balanced(r,n,s){if(r instanceof RegExp)r=maybeMatch(r,s);if(n instanceof RegExp)n=maybeMatch(n,s);var a=range(r,n,s);return a&&{start:a[0],end:a[1],pre:s.slice(0,a[0]),body:s.slice(a[0]+r.length,a[1]),post:s.slice(a[1]+n.length)}}function maybeMatch(r,n){var s=n.match(r);return s?s[0]:null}balanced.range=range;function range(r,n,s){var a,l,u,d,A;var p=s.indexOf(r);var f=s.indexOf(n,p+1);var g=p;if(p>=0&&f>0){if(r===n){return[p,f]}a=[];u=s.length;while(g>=0&&!A){if(g==p){a.push(g);p=s.indexOf(r,g+1)}else if(a.length==1){A=[a.pop(),f]}else{l=a.pop();if(l=0?p:f}if(a.length){A=[u,d]}}return A}},58769:(r,n,s)=>{var a=s(71710);var l=s(24434).EventEmitter;var u=s(86627);var d=s(91259);var A=s(2203).Stream;n=r.exports=function(r,s){if(Buffer.isBuffer(r)){return n.parse(r)}var a=n.stream();if(r&&r.pipe){r.pipe(a)}else if(r){r.on(s||"data",(function(r){a.write(r)}));r.on("end",(function(){a.end()}))}return a};n.stream=function(r){if(r)return n.apply(null,arguments);var s=null;function getBytes(r,n,a){s={bytes:r,skip:a,cb:function(r){s=null;n(r)}};dispatch()}var p=null;function dispatch(){if(!s){if(C)b=true;return}if(typeof s==="function"){s()}else{var r=p+s.bytes;if(g.length>=r){var n;if(p==null){n=g.splice(0,r);if(!s.skip){n=n.slice()}}else{if(!s.skip){n=g.slice(p,r)}p=r}if(s.skip){s.cb()}else{s.cb(n)}}}}function builder(r){function next(){if(!b)r.next()}var n=words((function(r,n){return function(s){getBytes(r,(function(r){y.set(s,n(r));next()}))}}));n.tap=function(n){r.nest(n,y.store)};n.into=function(n,s){if(!y.get(n))y.set(n,{});var a=y;y=d(a.get(n));r.nest((function(){s.apply(this,arguments);this.tap((function(){y=a}))}),y.store)};n.flush=function(){y.store={};next()};n.loop=function(n){var s=false;r.nest(false,(function loop(){this.vars=y.store;n.call(this,(function(){s=true;next()}),y.store);this.tap(function(){if(s)r.next();else loop.call(this)}.bind(this))}),y.store)};n.buffer=function(r,n){if(typeof n==="string"){n=y.get(n)}getBytes(n,(function(n){y.set(r,n);next()}))};n.skip=function(r){if(typeof r==="string"){r=y.get(r)}getBytes(r,(function(){next()}))};n.scan=function find(r,n){if(typeof n==="string"){n=new Buffer(n)}else if(!Buffer.isBuffer(n)){throw new Error("search must be a Buffer or a string")}var a=0;s=function(){var l=g.indexOf(n,p+a);var u=l-p-a;if(l!==-1){s=null;if(p!=null){y.set(r,g.slice(p,p+a+u));p+=a+u+n.length}else{y.set(r,g.slice(0,a+u));g.splice(0,a+u+n.length)}next();dispatch()}else{u=Math.max(g.length-n.length-p-a,0)}a+=u};dispatch()};n.peek=function(n){p=0;r.nest((function(){n.call(this,y.store);this.tap((function(){p=null}))}))};return n}var f=a.light(builder);f.writable=true;var g=u();f.write=function(r){g.push(r);dispatch()};var y=d();var b=false,C=false;f.end=function(){C=true};f.pipe=A.prototype.pipe;Object.getOwnPropertyNames(l.prototype).forEach((function(r){f[r]=l.prototype[r]}));return f};n.parse=function parse(r){var n=words((function(l,u){return function(d){if(s+l<=r.length){var A=r.slice(s,s+l);s+=l;a.set(d,u(A))}else{a.set(d,null)}return n}}));var s=0;var a=d();n.vars=a.store;n.tap=function(r){r.call(n,a.store);return n};n.into=function(r,s){if(!a.get(r)){a.set(r,{})}var l=a;a=d(l.get(r));s.call(n,a.store);a=l;return n};n.loop=function(r){var s=false;var ender=function(){s=true};while(s===false){r.call(n,ender,a.store)}return n};n.buffer=function(l,u){if(typeof u==="string"){u=a.get(u)}var d=r.slice(s,Math.min(r.length,s+u));s+=u;a.set(l,d);return n};n.skip=function(r){if(typeof r==="string"){r=a.get(r)}s+=r;return n};n.scan=function(l,u){if(typeof u==="string"){u=new Buffer(u)}else if(!Buffer.isBuffer(u)){throw new Error("search must be a Buffer or a string")}a.set(l,null);for(var d=0;d+s<=r.length-u.length+1;d++){for(var A=0;A=r.length};return n};function decodeLEu(r){var n=0;for(var s=0;s{r.exports=function(r){function getset(r,s){var a=n.store;var l=r.split(".");l.slice(0,-1).forEach((function(r){if(a[r]===undefined)a[r]={};a=a[r]}));var u=l[l.length-1];if(arguments.length==1){return a[u]}else{return a[u]=s}}var n={get:function(r){return getset(r)},set:function(r,n){return getset(r,n)},store:r||{}};return n}},63251:function(r){(function(n,s){true?r.exports=s():0})(this,(function(){"use strict";var r=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function getCjsExportFromNamespace(r){return r&&r["default"]||r}var load=function(r,n,s={}){var a,l,u;for(a in n){u=n[a];s[a]=(l=r[a])!=null?l:u}return s};var overwrite=function(r,n,s={}){var a,l;for(a in r){l=r[a];if(n[a]!==void 0){s[a]=l}}return s};var n={load:load,overwrite:overwrite};var s;s=class DLList{constructor(r,n){this.incr=r;this.decr=n;this._first=null;this._last=null;this.length=0}push(r){var n;this.length++;if(typeof this.incr==="function"){this.incr()}n={value:r,prev:this._last,next:null};if(this._last!=null){this._last.next=n;this._last=n}else{this._first=this._last=n}return void 0}shift(){var r;if(this._first==null){return}else{this.length--;if(typeof this.decr==="function"){this.decr()}}r=this._first.value;if((this._first=this._first.next)!=null){this._first.prev=null}else{this._last=null}return r}first(){if(this._first!=null){return this._first.value}}getArray(){var r,n,s;r=this._first;s=[];while(r!=null){s.push((n=r,r=r.next,n.value))}return s}forEachShift(r){var n;n=this.shift();while(n!=null){r(n),n=this.shift()}return void 0}debug(){var r,n,s,a,l;r=this._first;l=[];while(r!=null){l.push((n=r,r=r.next,{value:n.value,prev:(s=n.prev)!=null?s.value:void 0,next:(a=n.next)!=null?a.value:void 0}))}return l}};var a=s;var l;l=class Events{constructor(r){this.instance=r;this._events={};if(this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null){throw new Error("An Emitter already exists for this object")}this.instance.on=(r,n)=>this._addListener(r,"many",n);this.instance.once=(r,n)=>this._addListener(r,"once",n);this.instance.removeAllListeners=(r=null)=>{if(r!=null){return delete this._events[r]}else{return this._events={}}}}_addListener(r,n,s){var a;if((a=this._events)[r]==null){a[r]=[]}this._events[r].push({cb:s,status:n});return this.instance}listenerCount(r){if(this._events[r]!=null){return this._events[r].length}else{return 0}}async trigger(r,...n){var s,a;try{if(r!=="debug"){this.trigger("debug",`Event triggered: ${r}`,n)}if(this._events[r]==null){return}this._events[r]=this._events[r].filter((function(r){return r.status!=="none"}));a=this._events[r].map((async r=>{var s,a;if(r.status==="none"){return}if(r.status==="once"){r.status="none"}try{a=typeof r.cb==="function"?r.cb(...n):void 0;if(typeof(a!=null?a.then:void 0)==="function"){return await a}else{return a}}catch(r){s=r;{this.trigger("error",s)}return null}}));return(await Promise.all(a)).find((function(r){return r!=null}))}catch(r){s=r;{this.trigger("error",s)}return null}}};var u=l;var d,A,p;d=a;A=u;p=class Queues{constructor(r){var n;this.Events=new A(this);this._length=0;this._lists=function(){var s,a,l;l=[];for(n=s=1,a=r;1<=a?s<=a:s>=a;n=1<=a?++s:--s){l.push(new d((()=>this.incr()),(()=>this.decr())))}return l}.call(this)}incr(){if(this._length++===0){return this.Events.trigger("leftzero")}}decr(){if(--this._length===0){return this.Events.trigger("zero")}}push(r){return this._lists[r.options.priority].push(r)}queued(r){if(r!=null){return this._lists[r].length}else{return this._length}}shiftAll(r){return this._lists.forEach((function(n){return n.forEachShift(r)}))}getFirst(r=this._lists){var n,s,a;for(n=0,s=r.length;n0){return a}}return[]}shiftLastFrom(r){return this.getFirst(this._lists.slice(r).reverse()).shift()}};var f=p;var g;g=class BottleneckError extends Error{};var y=g;var b,C,w,B,I;B=10;C=5;I=n;b=y;w=class Job{constructor(r,n,s,a,l,u,d,A){this.task=r;this.args=n;this.rejectOnDrop=l;this.Events=u;this._states=d;this.Promise=A;this.options=I.load(s,a);this.options.priority=this._sanitizePriority(this.options.priority);if(this.options.id===a.id){this.options.id=`${this.options.id}-${this._randomIndex()}`}this.promise=new this.Promise(((r,n)=>{this._resolve=r;this._reject=n}));this.retryCount=0}_sanitizePriority(r){var n;n=~~r!==r?C:r;if(n<0){return 0}else if(n>B-1){return B-1}else{return n}}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:r,message:n="This job has been dropped by Bottleneck"}={}){if(this._states.remove(this.options.id)){if(this.rejectOnDrop){this._reject(r!=null?r:new b(n))}this.Events.trigger("dropped",{args:this.args,options:this.options,task:this.task,promise:this.promise});return true}else{return false}}_assertStatus(r){var n;n=this._states.jobStatus(this.options.id);if(!(n===r||r==="DONE"&&n===null)){throw new b(`Invalid job status ${n}, expected ${r}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}}doReceive(){this._states.start(this.options.id);return this.Events.trigger("received",{args:this.args,options:this.options})}doQueue(r,n){this._assertStatus("RECEIVED");this._states.next(this.options.id);return this.Events.trigger("queued",{args:this.args,options:this.options,reachedHWM:r,blocked:n})}doRun(){if(this.retryCount===0){this._assertStatus("QUEUED");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}return this.Events.trigger("scheduled",{args:this.args,options:this.options})}async doExecute(r,n,s,a){var l,u,d;if(this.retryCount===0){this._assertStatus("RUNNING");this._states.next(this.options.id)}else{this._assertStatus("EXECUTING")}u={args:this.args,options:this.options,retryCount:this.retryCount};this.Events.trigger("executing",u);try{d=await(r!=null?r.schedule(this.options,this.task,...this.args):this.task(...this.args));if(n()){this.doDone(u);await a(this.options,u);this._assertStatus("DONE");return this._resolve(d)}}catch(r){l=r;return this._onFailure(l,u,n,s,a)}}doExpire(r,n,s){var a,l;if(this._states.jobStatus(this.options.id==="RUNNING")){this._states.next(this.options.id)}this._assertStatus("EXECUTING");l={args:this.args,options:this.options,retryCount:this.retryCount};a=new b(`This job timed out after ${this.options.expiration} ms.`);return this._onFailure(a,l,r,n,s)}async _onFailure(r,n,s,a,l){var u,d;if(s()){u=await this.Events.trigger("failed",r,n);if(u!=null){d=~~u;this.Events.trigger("retry",`Retrying ${this.options.id} after ${d} ms`,n);this.retryCount++;return a(d)}else{this.doDone(n);await l(this.options,n);this._assertStatus("DONE");return this._reject(r)}}}doDone(r){this._assertStatus("EXECUTING");this._states.next(this.options.id);return this.Events.trigger("done",r)}};var S=w;var Q,v,R;R=n;Q=y;v=class LocalDatastore{constructor(r,n,s){this.instance=r;this.storeOptions=n;this.clientId=this.instance._randomIndex();R.load(s,s,this);this._nextRequest=this._lastReservoirRefresh=this._lastReservoirIncrease=Date.now();this._running=0;this._done=0;this._unblockTime=0;this.ready=this.Promise.resolve();this.clients={};this._startHeartbeat()}_startHeartbeat(){var r;if(this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)){return typeof(r=this.heartbeat=setInterval((()=>{var r,n,s,a,l;a=Date.now();if(this.storeOptions.reservoirRefreshInterval!=null&&a>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval){this._lastReservoirRefresh=a;this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount;this.instance._drainAll(this.computeCapacity())}if(this.storeOptions.reservoirIncreaseInterval!=null&&a>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval){({reservoirIncreaseAmount:r,reservoirIncreaseMaximum:s,reservoir:l}=this.storeOptions);this._lastReservoirIncrease=a;n=s!=null?Math.min(r,s-l):r;if(n>0){this.storeOptions.reservoir+=n;return this.instance._drainAll(this.computeCapacity())}}}),this.heartbeatInterval)).unref==="function"?r.unref():void 0}else{return clearInterval(this.heartbeat)}}async __publish__(r){await this.yieldLoop();return this.instance.Events.trigger("message",r.toString())}async __disconnect__(r){await this.yieldLoop();clearInterval(this.heartbeat);return this.Promise.resolve()}yieldLoop(r=0){return new this.Promise((function(n,s){return setTimeout(n,r)}))}computePenalty(){var r;return(r=this.storeOptions.penalty)!=null?r:15*this.storeOptions.minTime||5e3}async __updateSettings__(r){await this.yieldLoop();R.overwrite(r,r,this.storeOptions);this._startHeartbeat();this.instance._drainAll(this.computeCapacity());return true}async __running__(){await this.yieldLoop();return this._running}async __queued__(){await this.yieldLoop();return this.instance.queued()}async __done__(){await this.yieldLoop();return this._done}async __groupCheck__(r){await this.yieldLoop();return this._nextRequest+this.timeout=r}check(r,n){return this.conditionsCheck(r)&&this._nextRequest-n<=0}async __check__(r){var n;await this.yieldLoop();n=Date.now();return this.check(r,n)}async __register__(r,n,s){var a,l;await this.yieldLoop();a=Date.now();if(this.conditionsCheck(n)){this._running+=n;if(this.storeOptions.reservoir!=null){this.storeOptions.reservoir-=n}l=Math.max(this._nextRequest-a,0);this._nextRequest=a+l+this.storeOptions.minTime;return{success:true,wait:l,reservoir:this.storeOptions.reservoir}}else{return{success:false}}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(r,n){var s,a,l;await this.yieldLoop();if(this.storeOptions.maxConcurrent!=null&&n>this.storeOptions.maxConcurrent){throw new Q(`Impossible to add a job having a weight of ${n} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`)}a=Date.now();l=this.storeOptions.highWater!=null&&r===this.storeOptions.highWater&&!this.check(n,a);s=this.strategyIsBlock()&&(l||this.isBlocked(a));if(s){this._unblockTime=a+this.computePenalty();this._nextRequest=this._unblockTime+this.storeOptions.minTime;this.instance._dropAllQueued()}return{reachedHWM:l,blocked:s,strategy:this.storeOptions.strategy}}async __free__(r,n){await this.yieldLoop();this._running-=n;this._done+=n;this.instance._drainAll(this.computeCapacity());return{running:this._running}}};var N=v;var x,D;x=y;D=class States{constructor(r){this.status=r;this._jobs={};this.counts=this.status.map((function(){return 0}))}next(r){var n,s;n=this._jobs[r];s=n+1;if(n!=null&&s{r[this.status[s]]=n;return r}),{})}};var T=D;var k,_;k=a;_=class Sync{constructor(r,n){this.schedule=this.schedule.bind(this);this.name=r;this.Promise=n;this._running=0;this._queue=new k}isEmpty(){return this._queue.length===0}async _tryToRun(){var r,n,s,a,l,u,d;if(this._running<1&&this._queue.length>0){this._running++;({task:d,args:r,resolve:l,reject:a}=this._queue.shift());n=await async function(){try{u=await d(...r);return function(){return l(u)}}catch(r){s=r;return function(){return a(s)}}}();this._running--;this._tryToRun();return n()}}schedule(r,...n){var s,a,l;l=a=null;s=new this.Promise((function(r,n){l=r;return a=n}));this._queue.push({task:r,args:n,resolve:l,reject:a});this._tryToRun();return s}};var P=_;var F="2.19.5";var L={version:F};var O=Object.freeze({version:F,default:L});var require$$2=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$3=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var require$$4=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var M,U,H,G,z,q;q=n;M=u;G=require$$2;H=require$$3;z=require$$4;U=function(){class Group{constructor(r={}){this.deleteKey=this.deleteKey.bind(this);this.limiterOptions=r;q.load(this.limiterOptions,this.defaults,this);this.Events=new M(this);this.instances={};this.Bottleneck=ce;this._startAutoCleanup();this.sharedConnection=this.connection!=null;if(this.connection==null){if(this.limiterOptions.datastore==="redis"){this.connection=new G(Object.assign({},this.limiterOptions,{Events:this.Events}))}else if(this.limiterOptions.datastore==="ioredis"){this.connection=new H(Object.assign({},this.limiterOptions,{Events:this.Events}))}}}key(r=""){var n;return(n=this.instances[r])!=null?n:(()=>{var n;n=this.instances[r]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${r}`,timeout:this.timeout,connection:this.connection}));this.Events.trigger("created",n,r);return n})()}async deleteKey(r=""){var n,s;s=this.instances[r];if(this.connection){n=await this.connection.__runCommand__(["del",...z.allKeys(`${this.id}-${r}`)])}if(s!=null){delete this.instances[r];await s.disconnect()}return s!=null||n>0}limiters(){var r,n,s,a;n=this.instances;s=[];for(r in n){a=n[r];s.push({key:r,limiter:a})}return s}keys(){return Object.keys(this.instances)}async clusterKeys(){var r,n,s,a,l,u,d,A,p;if(this.connection==null){return this.Promise.resolve(this.keys())}u=[];r=null;p=`b_${this.id}-`.length;n="_settings".length;while(r!==0){[A,s]=await this.connection.__runCommand__(["scan",r!=null?r:0,"match",`b_${this.id}-*_settings`,"count",1e4]);r=~~A;for(a=0,d=s.length;a{var r,n,s,a,l,u;l=Date.now();s=this.instances;a=[];for(n in s){u=s[n];try{if(await u._store.__groupCheck__(l)){a.push(this.deleteKey(n))}else{a.push(void 0)}}catch(n){r=n;a.push(u.Events.trigger("error",r))}}return a}),this.timeout/2)).unref==="function"?r.unref():void 0}updateSettings(r={}){q.overwrite(r,this.defaults,this);q.overwrite(r,r,this.limiterOptions);if(r.timeout!=null){return this._startAutoCleanup()}}disconnect(r=true){var n;if(!this.sharedConnection){return(n=this.connection)!=null?n.disconnect(r):void 0}}}Group.prototype.defaults={timeout:1e3*60*5,connection:null,Promise:Promise,id:"group-key"};return Group}.call(r);var V=U;var j,W,Y;Y=n;W=u;j=function(){class Batcher{constructor(r={}){this.options=r;Y.load(this.options,this.defaults,this);this.Events=new W(this);this._arr=[];this._resetPromise();this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise(((r,n)=>this._resolve=r))}_flush(){clearTimeout(this._timeout);this._lastFlush=Date.now();this._resolve();this.Events.trigger("batch",this._arr);this._arr=[];return this._resetPromise()}add(r){var n;this._arr.push(r);n=this._promise;if(this._arr.length===this.maxSize){this._flush()}else if(this.maxTime!=null&&this._arr.length===1){this._timeout=setTimeout((()=>this._flush()),this.maxTime)}return n}}Batcher.prototype.defaults={maxTime:null,maxSize:null,Promise:Promise};return Batcher}.call(r);var J=j;var require$$4$1=()=>console.log("You must import the full version of Bottleneck in order to use this feature.");var $=getCjsExportFromNamespace(O);var K,X,Z,ee,te,re,ne,se,ie,oe,ae,le=[].splice;re=10;X=5;ae=n;ne=f;ee=S;te=N;se=require$$4$1;Z=u;ie=T;oe=P;K=function(){class Bottleneck{constructor(r={},...n){var s,a;this._addToQueue=this._addToQueue.bind(this);this._validateOptions(r,n);ae.load(r,this.instanceDefaults,this);this._queues=new ne(re);this._scheduled={};this._states=new ie(["RECEIVED","QUEUED","RUNNING","EXECUTING"].concat(this.trackDoneStatus?["DONE"]:[]));this._limiter=null;this.Events=new Z(this);this._submitLock=new oe("submit",this.Promise);this._registerLock=new oe("register",this.Promise);a=ae.load(r,this.storeDefaults,{});this._store=function(){if(this.datastore==="redis"||this.datastore==="ioredis"||this.connection!=null){s=ae.load(r,this.redisStoreDefaults,{});return new se(this,a,s)}else if(this.datastore==="local"){s=ae.load(r,this.localStoreDefaults,{});return new te(this,a,s)}else{throw new Bottleneck.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}}.call(this);this._queues.on("leftzero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.ref==="function"?r.ref():void 0:void 0}));this._queues.on("zero",(()=>{var r;return(r=this._store.heartbeat)!=null?typeof r.unref==="function"?r.unref():void 0:void 0}))}_validateOptions(r,n){if(!(r!=null&&typeof r==="object"&&n.length===0)){throw new Bottleneck.prototype.BottleneckError("Bottleneck v2 takes a single object argument. Refer to https://github.com/SGrondin/bottleneck#upgrading-to-v2 if you're upgrading from Bottleneck v1.")}}ready(){return this._store.ready}clients(){return this._store.clients}channel(){return`b_${this.id}`}channel_client(){return`b_${this.id}_${this._store.clientId}`}publish(r){return this._store.__publish__(r)}disconnect(r=true){return this._store.__disconnect__(r)}chain(r){this._limiter=r;return this}queued(r){return this._queues.queued(r)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(r){return this._states.jobStatus(r)}jobs(r){return this._states.statusJobs(r)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(r=1){return this._store.__check__(r)}_clearGlobalState(r){if(this._scheduled[r]!=null){clearTimeout(this._scheduled[r].expiration);delete this._scheduled[r];return true}else{return false}}async _free(r,n,s,a){var l,u;try{({running:u}=await this._store.__free__(r,s.weight));this.Events.trigger("debug",`Freed ${s.id}`,a);if(u===0&&this.empty()){return this.Events.trigger("idle")}}catch(r){l=r;return this.Events.trigger("error",l)}}_run(r,n,s){var a,l,u;n.doRun();a=this._clearGlobalState.bind(this,r);u=this._run.bind(this,r,n);l=this._free.bind(this,r,n);return this._scheduled[r]={timeout:setTimeout((()=>n.doExecute(this._limiter,a,u,l)),s),expiration:n.options.expiration!=null?setTimeout((function(){return n.doExpire(a,u,l)}),s+n.options.expiration):void 0,job:n}}_drainOne(r){return this._registerLock.schedule((()=>{var n,s,a,l,u;if(this.queued()===0){return this.Promise.resolve(null)}u=this._queues.getFirst();({options:l,args:n}=a=u.first());if(r!=null&&l.weight>r){return this.Promise.resolve(null)}this.Events.trigger("debug",`Draining ${l.id}`,{args:n,options:l});s=this._randomIndex();return this._store.__register__(s,l.weight,l.expiration).then((({success:r,wait:d,reservoir:A})=>{var p;this.Events.trigger("debug",`Drained ${l.id}`,{success:r,args:n,options:l});if(r){u.shift();p=this.empty();if(p){this.Events.trigger("empty")}if(A===0){this.Events.trigger("depleted",p)}this._run(s,a,d);return this.Promise.resolve(l.weight)}else{return this.Promise.resolve(null)}}))}))}_drainAll(r,n=0){return this._drainOne(r).then((s=>{var a;if(s!=null){a=r!=null?r-s:r;return this._drainAll(a,n+s)}else{return this.Promise.resolve(n)}})).catch((r=>this.Events.trigger("error",r)))}_dropAllQueued(r){return this._queues.shiftAll((function(n){return n.doDrop({message:r})}))}stop(r={}){var n,s;r=ae.load(r,this.stopDefaults);s=r=>{var n;n=()=>{var n;n=this._states.counts;return n[0]+n[1]+n[2]+n[3]===r};return new this.Promise(((r,s)=>{if(n()){return r()}else{return this.on("done",(()=>{if(n()){this.removeAllListeners("done");return r()}}))}}))};n=r.dropWaitingJobs?(this._run=function(n,s){return s.doDrop({message:r.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule((()=>this._submitLock.schedule((()=>{var n,a,l;a=this._scheduled;for(n in a){l=a[n];if(this.jobStatus(l.job.options.id)==="RUNNING"){clearTimeout(l.timeout);clearTimeout(l.expiration);l.job.doDrop({message:r.dropErrorMessage})}}this._dropAllQueued(r.dropErrorMessage);return s(0)}))))):this.schedule({priority:re-1,weight:0},(()=>s(1)));this._receive=function(n){return n._reject(new Bottleneck.prototype.BottleneckError(r.enqueueErrorMessage))};this.stop=()=>this.Promise.reject(new Bottleneck.prototype.BottleneckError("stop() has already been called"));return n}async _addToQueue(r){var n,s,a,l,u,d,A;({args:n,options:l}=r);try{({reachedHWM:u,blocked:s,strategy:A}=await this._store.__submit__(this.queued(),l.weight))}catch(s){a=s;this.Events.trigger("debug",`Could not queue ${l.id}`,{args:n,options:l,error:a});r.doDrop({error:a});return false}if(s){r.doDrop();return true}else if(u){d=A===Bottleneck.prototype.strategy.LEAK?this._queues.shiftLastFrom(l.priority):A===Bottleneck.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(l.priority+1):A===Bottleneck.prototype.strategy.OVERFLOW?r:void 0;if(d!=null){d.doDrop()}if(d==null||A===Bottleneck.prototype.strategy.OVERFLOW){if(d==null){r.doDrop()}return u}}r.doQueue(u,s);this._queues.push(r);await this._drainAll();return u}_receive(r){if(this._states.jobStatus(r.options.id)!=null){r._reject(new Bottleneck.prototype.BottleneckError(`A job with the same id already exists (id=${r.options.id})`));return false}else{r.doReceive();return this._submitLock.schedule(this._addToQueue,r)}}submit(...r){var n,s,a,l,u,d,A;if(typeof r[0]==="function"){u=r,[s,...r]=u,[n]=le.call(r,-1);l=ae.load({},this.jobDefaults)}else{d=r,[l,s,...r]=d,[n]=le.call(r,-1);l=ae.load(l,this.jobDefaults)}A=(...r)=>new this.Promise((function(n,a){return s(...r,(function(...r){return(r[0]!=null?a:n)(r)}))}));a=new ee(A,r,l,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);a.promise.then((function(r){return typeof n==="function"?n(...r):void 0})).catch((function(r){if(Array.isArray(r)){return typeof n==="function"?n(...r):void 0}else{return typeof n==="function"?n(r):void 0}}));return this._receive(a)}schedule(...r){var n,s,a;if(typeof r[0]==="function"){[a,...r]=r;s={}}else{[s,a,...r]=r}n=new ee(a,r,s,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise);this._receive(n);return n.promise}wrap(r){var n,s;n=this.schedule.bind(this);s=function(...s){return n(r.bind(this),...s)};s.withOptions=function(s,...a){return n(s,r,...a)};return s}async updateSettings(r={}){await this._store.__updateSettings__(ae.overwrite(r,this.storeDefaults));ae.overwrite(r,this.instanceDefaults,this);return this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(r=0){return this._store.__incrementReservoir__(r)}}Bottleneck.default=Bottleneck;Bottleneck.Events=Z;Bottleneck.version=Bottleneck.prototype.version=$.version;Bottleneck.strategy=Bottleneck.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3};Bottleneck.BottleneckError=Bottleneck.prototype.BottleneckError=y;Bottleneck.Group=Bottleneck.prototype.Group=V;Bottleneck.RedisConnection=Bottleneck.prototype.RedisConnection=require$$2;Bottleneck.IORedisConnection=Bottleneck.prototype.IORedisConnection=require$$3;Bottleneck.Batcher=Bottleneck.prototype.Batcher=J;Bottleneck.prototype.jobDefaults={priority:X,weight:1,expiration:null,id:""};Bottleneck.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:Bottleneck.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null};Bottleneck.prototype.localStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:250};Bottleneck.prototype.redisStoreDefaults={Promise:Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:false,connection:null};Bottleneck.prototype.instanceDefaults={datastore:"local",connection:null,id:"",rejectOnDrop:true,trackDoneStatus:false,Promise:Promise};Bottleneck.prototype.stopDefaults={enqueueErrorMessage:"This limiter has been stopped and cannot accept new jobs.",dropWaitingJobs:true,dropErrorMessage:"This limiter has been stopped."};return Bottleneck}.call(r);var ce=K;var ue=ce;return ue}))},94691:(r,n,s)=>{var a=s(59380);r.exports=expandTop;var l="\0SLASH"+Math.random()+"\0";var u="\0OPEN"+Math.random()+"\0";var d="\0CLOSE"+Math.random()+"\0";var A="\0COMMA"+Math.random()+"\0";var p="\0PERIOD"+Math.random()+"\0";function numeric(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function escapeBraces(r){return r.split("\\\\").join(l).split("\\{").join(u).split("\\}").join(d).split("\\,").join(A).split("\\.").join(p)}function unescapeBraces(r){return r.split(l).join("\\").split(u).join("{").split(d).join("}").split(A).join(",").split(p).join(".")}function parseCommaParts(r){if(!r)return[""];var n=[];var s=a("{","}",r);if(!s)return r.split(",");var l=s.pre;var u=s.body;var d=s.post;var A=l.split(",");A[A.length-1]+="{"+u+"}";var p=parseCommaParts(d);if(d.length){A[A.length-1]+=p.shift();A.push.apply(A,p)}n.push.apply(n,A);return n}function expandTop(r){if(!r)return[];if(r.substr(0,2)==="{}"){r="\\{\\}"+r.substr(2)}return expand(escapeBraces(r),true).map(unescapeBraces)}function embrace(r){return"{"+r+"}"}function isPadded(r){return/^-?0\d/.test(r)}function lte(r,n){return r<=n}function gte(r,n){return r>=n}function expand(r,n){var s=[];var l=a("{","}",r);if(!l)return[r];var u=l.pre;var A=l.post.length?expand(l.post,false):[""];if(/\$$/.test(l.pre)){for(var p=0;p=0;if(!b&&!C){if(l.post.match(/,(?!,).*\}/)){r=l.pre+"{"+l.body+d+l.post;return expand(r)}return[r]}var w;if(b){w=l.body.split(/\.\./)}else{w=parseCommaParts(l.body);if(w.length===1){w=expand(w[0],false).map(embrace);if(w.length===1){return A.map((function(r){return l.pre+w[0]+r}))}}}var B;if(b){var I=numeric(w[0]);var S=numeric(w[1]);var Q=Math.max(w[0].length,w[1].length);var v=w.length==3?Math.abs(numeric(w[2])):1;var R=lte;var N=S0){var _=new Array(k+1).join("0");if(D<0)T="-"+_+T.slice(1);else T=_+T}}}B.push(T)}}else{B=[];for(var P=0;P{const a=s(3317);const l=s(31113);const u=s(65290);const d=s(30507);const braces=(r,n={})=>{let s=[];if(Array.isArray(r)){for(const a of r){const r=braces.create(a,n);if(Array.isArray(r)){s.push(...r)}else{s.push(r)}}}else{s=[].concat(braces.create(r,n))}if(n&&n.expand===true&&n.nodupes===true){s=[...new Set(s)]}return s};braces.parse=(r,n={})=>d(r,n);braces.stringify=(r,n={})=>{if(typeof r==="string"){return a(braces.parse(r,n),n)}return a(r,n)};braces.compile=(r,n={})=>{if(typeof r==="string"){r=braces.parse(r,n)}return l(r,n)};braces.expand=(r,n={})=>{if(typeof r==="string"){r=braces.parse(r,n)}let s=u(r,n);if(n.noempty===true){s=s.filter(Boolean)}if(n.nodupes===true){s=[...new Set(s)]}return s};braces.create=(r,n={})=>{if(r===""||r.length<3){return[r]}return n.expand!==true?braces.compile(r,n):braces.expand(r,n)};r.exports=braces},31113:(r,n,s)=>{const a=s(70877);const l=s(52257);const compile=(r,n={})=>{const walk=(r,s={})=>{const u=l.isInvalidBrace(s);const d=r.invalid===true&&n.escapeInvalid===true;const A=u===true||d===true;const p=n.escapeInvalid===true?"\\":"";let f="";if(r.isOpen===true){return p+r.value}if(r.isClose===true){console.log("node.isClose",p,r.value);return p+r.value}if(r.type==="open"){return A?p+r.value:"("}if(r.type==="close"){return A?p+r.value:")"}if(r.type==="comma"){return r.prev.type==="comma"?"":A?r.value:"|"}if(r.value){return r.value}if(r.nodes&&r.ranges>0){const s=l.reduce(r.nodes);const u=a(...s,{...n,wrap:false,toRegex:true,strictZeros:true});if(u.length!==0){return s.length>1&&u.length>1?`(${u})`:u}}if(r.nodes){for(const n of r.nodes){f+=walk(n,r)}}return f};return walk(r)};r.exports=compile},62477:r=>{r.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:"\n",CHAR_NO_BREAK_SPACE:" ",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:"\t",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\ufeff"}},65290:(r,n,s)=>{const a=s(70877);const l=s(3317);const u=s(52257);const append=(r="",n="",s=false)=>{const a=[];r=[].concat(r);n=[].concat(n);if(!n.length)return r;if(!r.length){return s?u.flatten(n).map((r=>`{${r}}`)):n}for(const l of r){if(Array.isArray(l)){for(const r of l){a.push(append(r,n,s))}}else{for(let r of n){if(s===true&&typeof r==="string")r=`{${r}}`;a.push(Array.isArray(r)?append(l,r,s):l+r)}}}return u.flatten(a)};const expand=(r,n={})=>{const s=n.rangeLimit===undefined?1e3:n.rangeLimit;const walk=(r,d={})=>{r.queue=[];let A=d;let p=d.queue;while(A.type!=="brace"&&A.type!=="root"&&A.parent){A=A.parent;p=A.queue}if(r.invalid||r.dollar){p.push(append(p.pop(),l(r,n)));return}if(r.type==="brace"&&r.invalid!==true&&r.nodes.length===2){p.push(append(p.pop(),["{}"]));return}if(r.nodes&&r.ranges>0){const d=u.reduce(r.nodes);if(u.exceedsLimit(...d,n.step,s)){throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.")}let A=a(...d,n);if(A.length===0){A=l(r,n)}p.push(append(p.pop(),A));r.nodes=[];return}const f=u.encloseBrace(r);let g=r.queue;let y=r;while(y.type!=="brace"&&y.type!=="root"&&y.parent){y=y.parent;g=y.queue}for(let n=0;n{const a=s(3317);const{MAX_LENGTH:l,CHAR_BACKSLASH:u,CHAR_BACKTICK:d,CHAR_COMMA:A,CHAR_DOT:p,CHAR_LEFT_PARENTHESES:f,CHAR_RIGHT_PARENTHESES:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_RIGHT_CURLY_BRACE:b,CHAR_LEFT_SQUARE_BRACKET:C,CHAR_RIGHT_SQUARE_BRACKET:w,CHAR_DOUBLE_QUOTE:B,CHAR_SINGLE_QUOTE:I,CHAR_NO_BREAK_SPACE:S,CHAR_ZERO_WIDTH_NOBREAK_SPACE:Q}=s(62477);const parse=(r,n={})=>{if(typeof r!=="string"){throw new TypeError("Expected a string")}const s=n||{};const v=typeof s.maxLength==="number"?Math.min(l,s.maxLength):l;if(r.length>v){throw new SyntaxError(`Input length (${r.length}), exceeds max characters (${v})`)}const R={type:"root",input:r,nodes:[]};const N=[R];let x=R;let D=R;let T=0;const k=r.length;let _=0;let P=0;let F;const advance=()=>r[_++];const push=r=>{if(r.type==="text"&&D.type==="dot"){D.type="text"}if(D&&D.type==="text"&&r.type==="text"){D.value+=r.value;return}x.nodes.push(r);r.parent=x;r.prev=D;D=r;return r};push({type:"bos"});while(_0){if(x.ranges>0){x.ranges=0;const r=x.nodes.shift();x.nodes=[r,{type:"text",value:a(x)}]}push({type:"comma",value:F});x.commas++;continue}if(F===p&&P>0&&x.commas===0){const r=x.nodes;if(P===0||r.length===0){push({type:"text",value:F});continue}if(D.type==="dot"){x.range=[];D.value+=F;D.type="range";if(x.nodes.length!==3&&x.nodes.length!==5){x.invalid=true;x.ranges=0;D.type="text";continue}x.ranges++;x.args=[];continue}if(D.type==="range"){r.pop();const n=r[r.length-1];n.value+=D.value+F;D=n;x.ranges--;continue}push({type:"dot",value:F});continue}push({type:"text",value:F})}do{x=N.pop();if(x.type!=="root"){x.nodes.forEach((r=>{if(!r.nodes){if(r.type==="open")r.isOpen=true;if(r.type==="close")r.isClose=true;if(!r.nodes)r.type="text";r.invalid=true}}));const r=N[N.length-1];const n=r.nodes.indexOf(x);r.nodes.splice(n,1,...x.nodes)}}while(N.length>0);push({type:"eos"});return R};r.exports=parse},3317:(r,n,s)=>{const a=s(52257);r.exports=(r,n={})=>{const stringify=(r,s={})=>{const l=n.escapeInvalid&&a.isInvalidBrace(s);const u=r.invalid===true&&n.escapeInvalid===true;let d="";if(r.value){if((l||u)&&a.isOpenOrClose(r)){return"\\"+r.value}return r.value}if(r.value){return r.value}if(r.nodes){for(const n of r.nodes){d+=stringify(n)}}return d};return stringify(r)}},52257:(r,n)=>{n.isInteger=r=>{if(typeof r==="number"){return Number.isInteger(r)}if(typeof r==="string"&&r.trim()!==""){return Number.isInteger(Number(r))}return false};n.find=(r,n)=>r.nodes.find((r=>r.type===n));n.exceedsLimit=(r,s,a=1,l)=>{if(l===false)return false;if(!n.isInteger(r)||!n.isInteger(s))return false;return(Number(s)-Number(r))/Number(a)>=l};n.escapeNode=(r,n=0,s)=>{const a=r.nodes[n];if(!a)return;if(s&&a.type===s||a.type==="open"||a.type==="close"){if(a.escaped!==true){a.value="\\"+a.value;a.escaped=true}}};n.encloseBrace=r=>{if(r.type!=="brace")return false;if(r.commas>>0+r.ranges>>0===0){r.invalid=true;return true}return false};n.isInvalidBrace=r=>{if(r.type!=="brace")return false;if(r.invalid===true||r.dollar)return true;if(r.commas>>0+r.ranges>>0===0){r.invalid=true;return true}if(r.open!==true||r.close!==true){r.invalid=true;return true}return false};n.isOpenOrClose=r=>{if(r.type==="open"||r.type==="close"){return true}return r.open===true||r.close===true};n.reduce=r=>r.reduce(((r,n)=>{if(n.type==="text")r.push(n.value);if(n.type==="range")n.type="text";return r}),[]);n.flatten=(...r)=>{const n=[];const flat=r=>{for(let s=0;s{r.exports=Buffers;function Buffers(r){if(!(this instanceof Buffers))return new Buffers(r);this.buffers=r||[];this.length=this.buffers.reduce((function(r,n){return r+n.length}),0)}Buffers.prototype.push=function(){for(var r=0;r=0?r:this.length-r;var l=[].slice.call(arguments,2);if(n===undefined){n=this.length-a}else if(n>this.length-a){n=this.length-a}for(var r=0;r0){var f=a-A;if(f+n0){var C=l.slice();C.unshift(y);C.push(b);s.splice.apply(s,[p,1].concat(C));p+=C.length;l=[]}else{s.splice(p,1,y,b);p+=2}}else{u.push(s[p].slice(f));s[p]=s[p].slice(0,f);p++}}if(l.length>0){s.splice.apply(s,[p,0].concat(l));p+=l.length}while(u.lengththis.length)n=this.length;var a=0;for(var l=0;l=n-r?Math.min(f+(n-r)-d,p):p;s[A].copy(u,d,f,g);d+=g-f}return u};Buffers.prototype.pos=function(r){if(r<0||r>=this.length)throw new Error("oob");var n=r,s=0,a=null;for(;;){a=this.buffers[s];if(n=this.buffers[s].length){a=0;s++;if(s>=this.buffers.length){return-1}}var p=this.buffers[s][a];if(p==r[l]){if(l==0){u={i:s,j:a,pos:d}}l++;if(l==r.length){return u.pos}}else if(l!=0){s=u.i;a=u.j;d=u.pos;l=0}a++;d++}};Buffers.prototype.toBuffer=function(){return this.slice()};Buffers.prototype.toString=function(r,n,s){return this.slice(n,s).toString(r)}},71710:(r,n,s)=>{var a=s(62958);var l=s(24434).EventEmitter;r.exports=Chainsaw;function Chainsaw(r){var n=Chainsaw.saw(r,{});var s=r.call(n.handlers,n);if(s!==undefined)n.handlers=s;n.record();return n.chain()}Chainsaw.light=function ChainsawLight(r){var n=Chainsaw.saw(r,{});var s=r.call(n.handlers,n);if(s!==undefined)n.handlers=s;return n.chain()};Chainsaw.saw=function(r,n){var s=new l;s.handlers=n;s.actions=[];s.chain=function(){var r=a(s.handlers).map((function(n){if(this.isRoot)return n;var a=this.path;if(typeof n==="function"){this.update((function(){s.actions.push({path:a,args:[].slice.call(arguments)});return r}))}}));process.nextTick((function(){s.emit("begin");s.next()}));return r};s.pop=function(){return s.actions.shift()};s.next=function(){var r=s.pop();if(!r){s.emit("end")}else if(!r.trap){var n=s.handlers;r.path.forEach((function(r){n=n[r]}));n.apply(s.handlers,r.args)}};s.nest=function(n){var a=[].slice.call(arguments,1);var l=true;if(typeof n==="boolean"){var l=n;n=a.shift()}var u=Chainsaw.saw(r,{});var d=r.call(u.handlers,u);if(d!==undefined)u.handlers=d;if("undefined"!==typeof s.step){u.record()}n.apply(u.chain(),a);if(l!==false)u.on("end",s.next)};s.record=function(){upgradeChainsaw(s)};["trap","down","jump"].forEach((function(r){s[r]=function(){throw new Error("To use the trap, down and jump features, please "+"call record() first to start recording actions.")}}));return s};function upgradeChainsaw(r){r.step=0;r.pop=function(){return r.actions[r.step++]};r.trap=function(n,s){var a=Array.isArray(n)?n:[n];r.actions.push({path:a,step:r.step,cb:s,trap:true})};r.down=function(n){var s=(Array.isArray(n)?n:[n]).join("/");var a=r.actions.slice(r.step).map((function(n){if(n.trap&&n.step<=r.step)return false;return n.path.join("/")==s})).indexOf(true);if(a>=0)r.step+=a;else r.step=r.actions.length;var l=r.actions[r.step-1];if(l&&l.trap){r.step=l.step;l.cb()}else r.next()};r.jump=function(n){r.step=n;r.next()}}},96070:r=>{var n=r.exports=function(){};n.prototype.getName=function(){};n.prototype.getSize=function(){};n.prototype.getLastModifiedDate=function(){};n.prototype.isDirectory=function(){}},36306:(r,n,s)=>{var a=s(39023).inherits;var l=s(96543);var u=s(29963).Transform;var d=s(96070);var A=s(18300);var p=r.exports=function(r){if(!(this instanceof p)){return new p(r)}u.call(this,r);this.offset=0;this._archive={finish:false,finished:false,processing:false}};a(p,u);p.prototype._appendBuffer=function(r,n,s){};p.prototype._appendStream=function(r,n,s){};p.prototype._emitErrorCallback=function(r){if(r){this.emit("error",r)}};p.prototype._finish=function(r){};p.prototype._normalizeEntry=function(r){};p.prototype._transform=function(r,n,s){s(null,r)};p.prototype.entry=function(r,n,s){n=n||null;if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}if(!(r instanceof d)){s(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){s(new Error("unacceptable entry after finish"));return}if(this._archive.processing){s(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(r);this._entry=r;n=A.normalizeInputSource(n);if(Buffer.isBuffer(n)){this._appendBuffer(r,n,s)}else if(l(n)){this._appendStream(r,n,s)}else{this._archive.processing=false;s(new Error("input source must be valid Stream or Buffer instance"));return}return this};p.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};p.prototype.getBytesWritten=function(){return this.offset};p.prototype.write=function(r,n){if(r){this.offset+=r.length}return u.prototype.write.call(this,r,n)}},94908:r=>{r.exports={WORD:4,DWORD:8,EMPTY:Buffer.alloc(0),SHORT:2,SHORT_MASK:65535,SHORT_SHIFT:16,SHORT_ZERO:Buffer.from(Array(2)),LONG:4,LONG_ZERO:Buffer.from(Array(4)),MIN_VERSION_INITIAL:10,MIN_VERSION_DATA_DESCRIPTOR:20,MIN_VERSION_ZIP64:45,VERSION_MADEBY:45,METHOD_STORED:0,METHOD_DEFLATED:8,PLATFORM_UNIX:3,PLATFORM_FAT:0,SIG_LFH:67324752,SIG_DD:134695760,SIG_CFH:33639248,SIG_EOCD:101010256,SIG_ZIP64_EOCD:101075792,SIG_ZIP64_EOCD_LOC:117853008,ZIP64_MAGIC_SHORT:65535,ZIP64_MAGIC:4294967295,ZIP64_EXTRA_ID:1,ZLIB_NO_COMPRESSION:0,ZLIB_BEST_SPEED:1,ZLIB_BEST_COMPRESSION:9,ZLIB_DEFAULT_COMPRESSION:-1,MODE_MASK:4095,DEFAULT_FILE_MODE:33188,DEFAULT_DIR_MODE:16877,EXT_FILE_ATTR_DIR:1106051088,EXT_FILE_ATTR_FILE:2175008800,S_IFMT:61440,S_IFIFO:4096,S_IFCHR:8192,S_IFDIR:16384,S_IFBLK:24576,S_IFREG:32768,S_IFLNK:40960,S_IFSOCK:49152,S_DOS_A:32,S_DOS_D:16,S_DOS_V:8,S_DOS_S:4,S_DOS_H:2,S_DOS_R:1}},97632:(r,n,s)=>{var a=s(6453);var l=1<<3;var u=1<<0;var d=1<<2;var A=1<<1;var p=1<<6;var f=1<<11;var g=r.exports=function(){if(!(this instanceof g)){return new g}this.descriptor=false;this.encryption=false;this.utf8=false;this.numberOfShannonFanoTrees=0;this.strongEncryption=false;this.slidingDictionarySize=0;return this};g.prototype.encode=function(){return a.getShortBytes((this.descriptor?l:0)|(this.utf8?f:0)|(this.encryption?u:0)|(this.strongEncryption?p:0))};g.prototype.parse=function(r,n){var s=a.getShortBytesValue(r,n);var y=new g;y.useDataDescriptor((s&l)!==0);y.useUTF8ForNames((s&f)!==0);y.useStrongEncryption((s&p)!==0);y.useEncryption((s&u)!==0);y.setSlidingDictionarySize((s&A)!==0?8192:4096);y.setNumberOfShannonFanoTrees((s&d)!==0?3:2);return y};g.prototype.setNumberOfShannonFanoTrees=function(r){this.numberOfShannonFanoTrees=r};g.prototype.getNumberOfShannonFanoTrees=function(){return this.numberOfShannonFanoTrees};g.prototype.setSlidingDictionarySize=function(r){this.slidingDictionarySize=r};g.prototype.getSlidingDictionarySize=function(){return this.slidingDictionarySize};g.prototype.useDataDescriptor=function(r){this.descriptor=r};g.prototype.usesDataDescriptor=function(){return this.descriptor};g.prototype.useEncryption=function(r){this.encryption=r};g.prototype.usesEncryption=function(){return this.encryption};g.prototype.useStrongEncryption=function(r){this.strongEncryption=r};g.prototype.usesStrongEncryption=function(){return this.strongEncryption};g.prototype.useUTF8ForNames=function(r){this.utf8=r};g.prototype.usesUTF8ForNames=function(){return this.utf8}},23810:r=>{r.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},6453:r=>{var n=r.exports={};n.dateToDos=function(r,n){n=n||false;var s=n?r.getFullYear():r.getUTCFullYear();if(s<1980){return 2162688}else if(s>=2044){return 2141175677}var a={year:s,month:n?r.getMonth():r.getUTCMonth(),date:n?r.getDate():r.getUTCDate(),hours:n?r.getHours():r.getUTCHours(),minutes:n?r.getMinutes():r.getUTCMinutes(),seconds:n?r.getSeconds():r.getUTCSeconds()};return a.year-1980<<25|a.month+1<<21|a.date<<16|a.hours<<11|a.minutes<<5|a.seconds/2};n.dosToDate=function(r){return new Date((r>>25&127)+1980,(r>>21&15)-1,r>>16&31,r>>11&31,r>>5&63,(r&31)<<1)};n.fromDosTime=function(r){return n.dosToDate(r.readUInt32LE(0))};n.getEightBytes=function(r){var n=Buffer.alloc(8);n.writeUInt32LE(r%4294967296,0);n.writeUInt32LE(r/4294967296|0,4);return n};n.getShortBytes=function(r){var n=Buffer.alloc(2);n.writeUInt16LE((r&65535)>>>0,0);return n};n.getShortBytesValue=function(r,n){return r.readUInt16LE(n)};n.getLongBytes=function(r){var n=Buffer.alloc(4);n.writeUInt32LE((r&4294967295)>>>0,0);return n};n.getLongBytesValue=function(r,n){return r.readUInt32LE(n)};n.toDosTime=function(r){return n.getLongBytes(n.dateToDos(r))}},73380:(r,n,s)=>{var a=s(39023).inherits;var l=s(56133);var u=s(96070);var d=s(97632);var A=s(23810);var p=s(94908);var f=s(6453);var g=r.exports=function(r){if(!(this instanceof g)){return new g(r)}u.call(this);this.platform=p.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new d;this.crc=0;this.time=-1;this.minver=p.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(r){this.setName(r)}};a(g,u);g.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};g.prototype.getComment=function(){return this.comment!==null?this.comment:""};g.prototype.getCompressedSize=function(){return this.csize};g.prototype.getCrc=function(){return this.crc};g.prototype.getExternalAttributes=function(){return this.exattr};g.prototype.getExtra=function(){return this.extra!==null?this.extra:p.EMPTY};g.prototype.getGeneralPurposeBit=function(){return this.gpb};g.prototype.getInternalAttributes=function(){return this.inattr};g.prototype.getLastModifiedDate=function(){return this.getTime()};g.prototype.getLocalFileDataExtra=function(){return this.getExtra()};g.prototype.getMethod=function(){return this.method};g.prototype.getName=function(){return this.name};g.prototype.getPlatform=function(){return this.platform};g.prototype.getSize=function(){return this.size};g.prototype.getTime=function(){return this.time!==-1?f.dosToDate(this.time):-1};g.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};g.prototype.getUnixMode=function(){return this.platform!==p.PLATFORM_UNIX?0:this.getExternalAttributes()>>p.SHORT_SHIFT&p.SHORT_MASK};g.prototype.getVersionNeededToExtract=function(){return this.minver};g.prototype.setComment=function(r){if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=r};g.prototype.setCompressedSize=function(r){if(r<0){throw new Error("invalid entry compressed size")}this.csize=r};g.prototype.setCrc=function(r){if(r<0){throw new Error("invalid entry crc32")}this.crc=r};g.prototype.setExternalAttributes=function(r){this.exattr=r>>>0};g.prototype.setExtra=function(r){this.extra=r};g.prototype.setGeneralPurposeBit=function(r){if(!(r instanceof d)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=r};g.prototype.setInternalAttributes=function(r){this.inattr=r};g.prototype.setMethod=function(r){if(r<0){throw new Error("invalid entry compression method")}this.method=r};g.prototype.setName=function(r,n=false){r=l(r,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(n){r=`/${r}`}if(Buffer.byteLength(r)!==r.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=r};g.prototype.setPlatform=function(r){this.platform=r};g.prototype.setSize=function(r){if(r<0){throw new Error("invalid entry size")}this.size=r};g.prototype.setTime=function(r,n){if(!(r instanceof Date)){throw new Error("invalid entry time")}this.time=f.dateToDos(r,n)};g.prototype.setUnixMode=function(r){r|=this.isDirectory()?p.S_IFDIR:p.S_IFREG;var n=0;n|=r<p.ZIP64_MAGIC||this.size>p.ZIP64_MAGIC}},82132:(r,n,s)=>{var a=s(39023).inherits;var l=s(84891);var{CRC32Stream:u}=s(82770);var{DeflateCRC32Stream:d}=s(82770);var A=s(36306);var p=s(73380);var f=s(97632);var g=s(94908);var y=s(18300);var b=s(6453);var C=r.exports=function(r){if(!(this instanceof C)){return new C(r)}r=this.options=this._defaults(r);A.call(this,r);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:r.forceZip64,forceLocalTime:r.forceLocalTime}};a(C,A);C.prototype._afterAppend=function(r){this._entries.push(r);if(r.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(r)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};C.prototype._appendBuffer=function(r,n,s){if(n.length===0){r.setMethod(g.METHOD_STORED)}var a=r.getMethod();if(a===g.METHOD_STORED){r.setSize(n.length);r.setCompressedSize(n.length);r.setCrc(l.buf(n)>>>0)}this._writeLocalFileHeader(r);if(a===g.METHOD_STORED){this.write(n);this._afterAppend(r);s(null,r);return}else if(a===g.METHOD_DEFLATED){this._smartStream(r,s).end(n);return}else{s(new Error("compression method "+a+" not implemented"));return}};C.prototype._appendStream=function(r,n,s){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(r);var a=this._smartStream(r,s);n.once("error",(function(r){a.emit("error",r);a.end()}));n.pipe(a)};C.prototype._defaults=function(r){if(typeof r!=="object"){r={}}if(typeof r.zlib!=="object"){r.zlib={}}if(typeof r.zlib.level!=="number"){r.zlib.level=g.ZLIB_BEST_SPEED}r.forceZip64=!!r.forceZip64;r.forceLocalTime=!!r.forceLocalTime;return r};C.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(r){this._writeCentralFileHeader(r)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};C.prototype._normalizeEntry=function(r){if(r.getMethod()===-1){r.setMethod(g.METHOD_DEFLATED)}if(r.getMethod()===g.METHOD_DEFLATED){r.getGeneralPurposeBit().useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_DATA_DESCRIPTOR)}if(r.getTime()===-1){r.setTime(new Date,this._archive.forceLocalTime)}r._offsets={file:0,data:0,contents:0}};C.prototype._smartStream=function(r,n){var s=r.getMethod()===g.METHOD_DEFLATED;var a=s?new d(this.options.zlib):new u;var l=null;function handleStuff(){var s=a.digest().readUInt32BE(0);r.setCrc(s);r.setSize(a.size());r.setCompressedSize(a.size(true));this._afterAppend(r);n(l,r)}a.once("end",handleStuff.bind(this));a.once("error",(function(r){l=r}));a.pipe(this,{end:false});return a};C.prototype._writeCentralDirectoryEnd=function(){var r=this._entries.length;var n=this._archive.centralLength;var s=this._archive.centralOffset;if(this.isZip64()){r=g.ZIP64_MAGIC_SHORT;n=g.ZIP64_MAGIC;s=g.ZIP64_MAGIC}this.write(b.getLongBytes(g.SIG_EOCD));this.write(g.SHORT_ZERO);this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r));this.write(b.getShortBytes(r));this.write(b.getLongBytes(n));this.write(b.getLongBytes(s));var a=this.getComment();var l=Buffer.byteLength(a);this.write(b.getShortBytes(l));this.write(a)};C.prototype._writeCentralDirectoryZip64=function(){this.write(b.getLongBytes(g.SIG_ZIP64_EOCD));this.write(b.getEightBytes(44));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(b.getShortBytes(g.MIN_VERSION_ZIP64));this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._entries.length));this.write(b.getEightBytes(this._archive.centralLength));this.write(b.getEightBytes(this._archive.centralOffset));this.write(b.getLongBytes(g.SIG_ZIP64_EOCD_LOC));this.write(g.LONG_ZERO);this.write(b.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(b.getLongBytes(1))};C.prototype._writeCentralFileHeader=function(r){var n=r.getGeneralPurposeBit();var s=r.getMethod();var a=r._offsets.file;var l=r.getSize();var u=r.getCompressedSize();if(r.isZip64()||a>g.ZIP64_MAGIC){l=g.ZIP64_MAGIC;u=g.ZIP64_MAGIC;a=g.ZIP64_MAGIC;r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64);var d=Buffer.concat([b.getShortBytes(g.ZIP64_EXTRA_ID),b.getShortBytes(24),b.getEightBytes(r.getSize()),b.getEightBytes(r.getCompressedSize()),b.getEightBytes(r._offsets.file)],28);r.setExtra(d)}this.write(b.getLongBytes(g.SIG_CFH));this.write(b.getShortBytes(r.getPlatform()<<8|g.VERSION_MADEBY));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(n.encode());this.write(b.getShortBytes(s));this.write(b.getLongBytes(r.getTimeDos()));this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(u));this.write(b.getLongBytes(l));var A=r.getName();var p=r.getComment();var f=r.getCentralDirectoryExtra();if(n.usesUTF8ForNames()){A=Buffer.from(A);p=Buffer.from(p)}this.write(b.getShortBytes(A.length));this.write(b.getShortBytes(f.length));this.write(b.getShortBytes(p.length));this.write(g.SHORT_ZERO);this.write(b.getShortBytes(r.getInternalAttributes()));this.write(b.getLongBytes(r.getExternalAttributes()));this.write(b.getLongBytes(a));this.write(A);this.write(f);this.write(p)};C.prototype._writeDataDescriptor=function(r){this.write(b.getLongBytes(g.SIG_DD));this.write(b.getLongBytes(r.getCrc()));if(r.isZip64()){this.write(b.getEightBytes(r.getCompressedSize()));this.write(b.getEightBytes(r.getSize()))}else{this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}};C.prototype._writeLocalFileHeader=function(r){var n=r.getGeneralPurposeBit();var s=r.getMethod();var a=r.getName();var l=r.getLocalFileDataExtra();if(r.isZip64()){n.useDataDescriptor(true);r.setVersionNeededToExtract(g.MIN_VERSION_ZIP64)}if(n.usesUTF8ForNames()){a=Buffer.from(a)}r._offsets.file=this.offset;this.write(b.getLongBytes(g.SIG_LFH));this.write(b.getShortBytes(r.getVersionNeededToExtract()));this.write(n.encode());this.write(b.getShortBytes(s));this.write(b.getLongBytes(r.getTimeDos()));r._offsets.data=this.offset;if(n.usesDataDescriptor()){this.write(g.LONG_ZERO);this.write(g.LONG_ZERO);this.write(g.LONG_ZERO)}else{this.write(b.getLongBytes(r.getCrc()));this.write(b.getLongBytes(r.getCompressedSize()));this.write(b.getLongBytes(r.getSize()))}this.write(b.getShortBytes(a.length));this.write(b.getShortBytes(l.length));this.write(a);this.write(l);r._offsets.contents=this.offset};C.prototype.getComment=function(r){return this._archive.comment!==null?this._archive.comment:""};C.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>g.ZIP64_MAGIC_SHORT||this._archive.centralLength>g.ZIP64_MAGIC||this._archive.centralOffset>g.ZIP64_MAGIC};C.prototype.setComment=function(r){this._archive.comment=r}},47544:(r,n,s)=>{r.exports={ArchiveEntry:s(96070),ZipArchiveEntry:s(73380),ArchiveOutputStream:s(36306),ZipArchiveOutputStream:s(82132)}},18300:(r,n,s)=>{var a=s(2203).Stream;var l=s(29963).PassThrough;var u=s(96543);var d=r.exports={};d.normalizeInputSource=function(r){if(r===null){return Buffer.alloc(0)}else if(typeof r==="string"){return Buffer.from(r)}else if(u(r)&&!r._readableState){var n=new l;r.pipe(n);return n}return r}},45481:(r,n,s)=>{function isArray(r){if(Array.isArray){return Array.isArray(r)}return objectToString(r)==="[object Array]"}n.isArray=isArray;function isBoolean(r){return typeof r==="boolean"}n.isBoolean=isBoolean;function isNull(r){return r===null}n.isNull=isNull;function isNullOrUndefined(r){return r==null}n.isNullOrUndefined=isNullOrUndefined;function isNumber(r){return typeof r==="number"}n.isNumber=isNumber;function isString(r){return typeof r==="string"}n.isString=isString;function isSymbol(r){return typeof r==="symbol"}n.isSymbol=isSymbol;function isUndefined(r){return r===void 0}n.isUndefined=isUndefined;function isRegExp(r){return objectToString(r)==="[object RegExp]"}n.isRegExp=isRegExp;function isObject(r){return typeof r==="object"&&r!==null}n.isObject=isObject;function isDate(r){return objectToString(r)==="[object Date]"}n.isDate=isDate;function isError(r){return objectToString(r)==="[object Error]"||r instanceof Error}n.isError=isError;function isFunction(r){return typeof r==="function"}n.isFunction=isFunction;function isPrimitive(r){return r===null||typeof r==="boolean"||typeof r==="number"||typeof r==="string"||typeof r==="symbol"||typeof r==="undefined"}n.isPrimitive=isPrimitive;n.isBuffer=s(20181).Buffer.isBuffer;function objectToString(r){return Object.prototype.toString.call(r)}},84891:(r,n)=>{ /*! crc32.js (C) 2014-present SheetJS -- http://sheetjs.com */ -var s;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(n)}else{}}else{r(s={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,n=new Array(256);for(var s=0;s!=256;++s){r=s;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;n[s]=r}return typeof Int32Array!=="undefined"?new Int32Array(n):n}var n=signed_crc_table();function slice_by_16_tables(r){var n=0,s=0,a=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)l[a]=r[a];for(a=0;a!=256;++a){s=r[a];for(n=256+a;n<4096;n+=256)s=l[n]=s>>>8^r[s&255]}var u=[];for(a=1;a!=16;++a)u[a-1]=typeof Int32Array!=="undefined"?l.subarray(a*256,a*256+256):l.slice(a*256,a*256+256);return u}var s=slice_by_16_tables(n);var a=s[0],l=s[1],u=s[2],d=s[3],A=s[4];var p=s[5],f=s[6],g=s[7],y=s[8],b=s[9];var C=s[10],w=s[11],B=s[12],I=s[13],S=s[14];function crc32_bstr(r,s){var a=s^-1;for(var l=0,u=r.length;l>>8^n[(a^r.charCodeAt(l++))&255];return~a}function crc32_buf(r,s){var Q=s^-1,v=r.length-15,R=0;for(;R>8&255]^B[r[R++]^Q>>16&255]^w[r[R++]^Q>>>24]^C[r[R++]]^b[r[R++]]^y[r[R++]]^g[r[R++]]^f[r[R++]]^p[r[R++]]^A[r[R++]]^d[r[R++]]^u[r[R++]]^l[r[R++]]^a[r[R++]]^n[r[R++]];v+=15;while(R>>8^n[(Q^r[R++])&255];return~Q}function crc32_str(r,s){var a=s^-1;for(var l=0,u=r.length,d=0,A=0;l>>8^n[(a^d)&255]}else if(d<2048){a=a>>>8^n[(a^(192|d>>6&31))&255];a=a>>>8^n[(a^(128|d&63))&255]}else if(d>=55296&&d<57344){d=(d&1023)+64;A=r.charCodeAt(l++)&1023;a=a>>>8^n[(a^(240|d>>8&7))&255];a=a>>>8^n[(a^(128|d>>2&63))&255];a=a>>>8^n[(a^(128|A>>6&15|(d&3)<<4))&255];a=a>>>8^n[(a^(128|A&63))&255]}else{a=a>>>8^n[(a^(224|d>>12&15))&255];a=a>>>8^n[(a^(128|d>>6&63))&255];a=a>>>8^n[(a^(128|d&63))&255]}}return~a}r.table=n;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},17395:(r,n,s)=>{const{Transform:a}=s(48924);const l=s(62095);class CRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,n,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}s(null,r)}digest(r){const n=Buffer.allocUnsafe(4);n.writeUInt32BE(this.checksum>>>0,0);return r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},12097:(r,n,s)=>{const{DeflateRaw:a}=s(43106);const l=s(62095);class DeflateCRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,n){if(r){this.compressedSize+=r.length}return super.push(r,n)}_transform(r,n,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,n,s)}digest(r){const n=Buffer.allocUnsafe(4);n.writeUInt32BE(this.checksum>>>0,0);return r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},62305:(r,n,s)=>{r.exports={CRC32Stream:s(17395),DeflateCRC32Stream:s(12097)}},76186:(r,n,s)=>{const a=s(35317);const l=s(70605);const u=s(7341);function spawn(r,n,s){const d=l(r,n,s);const A=a.spawn(d.command,d.args,d.options);u.hookChildProcess(A,d);return A}function spawnSync(r,n,s){const d=l(r,n,s);const A=a.spawnSync(d.command,d.args,d.options);A.error=A.error||u.verifyENOENTSync(A.status,d);return A}r.exports=spawn;r.exports.spawn=spawn;r.exports.sync=spawnSync;r.exports._parse=l;r.exports._enoent=u},7341:r=>{const n=process.platform==="win32";function notFoundError(r,n){return Object.assign(new Error(`${n} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${n} ${r.command}`,path:r.command,spawnargs:r.args})}function hookChildProcess(r,s){if(!n){return}const a=r.emit;r.emit=function(n,l){if(n==="exit"){const n=verifyENOENT(l,s);if(n){return a.call(r,"error",n)}}return a.apply(r,arguments)}}function verifyENOENT(r,s){if(n&&r===1&&!s.file){return notFoundError(s.original,"spawn")}return null}function verifyENOENTSync(r,s){if(n&&r===1&&!s.file){return notFoundError(s.original,"spawnSync")}return null}r.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},70605:(r,n,s)=>{const a=s(16928);const l=s(83530);const u=s(36399);const d=s(20735);const A=process.platform==="win32";const p=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(r){r.file=l(r);const n=r.file&&d(r.file);if(n){r.args.unshift(r.file);r.command=n;return l(r)}return r.file}function parseNonShell(r){if(!A){return r}const n=detectShebang(r);const s=!p.test(n);if(r.options.forceShell||s){const s=f.test(n);r.command=a.normalize(r.command);r.command=u.command(r.command);r.args=r.args.map((r=>u.argument(r,s)));const l=[r.command].concat(r.args).join(" ");r.args=["/d","/s","/c",`"${l}"`];r.command=process.env.comspec||"cmd.exe";r.options.windowsVerbatimArguments=true}return r}function parse(r,n,s){if(n&&!Array.isArray(n)){s=n;n=null}n=n?n.slice(0):[];s=Object.assign({},s);const a={command:r,args:n,options:s,file:undefined,original:{command:r,args:n}};return s.shell?a:parseNonShell(a)}r.exports=parse},36399:r=>{const n=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(r){r=r.replace(n,"^$1");return r}function escapeArgument(r,s){r=`${r}`;r=r.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');r=r.replace(/(?=(\\+?)?)\1$/,"$1$1");r=`"${r}"`;r=r.replace(n,"^$1");if(s){r=r.replace(n,"^$1")}return r}r.exports.command=escapeCommand;r.exports.argument=escapeArgument},20735:(r,n,s)=>{const a=s(79896);const l=s(64205);function readShebang(r){const n=150;const s=Buffer.alloc(n);let u;try{u=a.openSync(r,"r");a.readSync(u,s,0,n,0);a.closeSync(u)}catch(r){}return l(s.toString())}r.exports=readShebang},83530:(r,n,s)=>{const a=s(16928);const l=s(31828);const u=s(2386);function resolveCommandAttempt(r,n){const s=r.options.env||process.env;const d=process.cwd();const A=r.options.cwd!=null;const p=A&&process.chdir!==undefined&&!process.chdir.disabled;if(p){try{process.chdir(r.options.cwd)}catch(r){}}let f;try{f=l.sync(r.command,{path:s[u({env:s})],pathExt:n?a.delimiter:undefined})}catch(r){}finally{if(p){process.chdir(d)}}if(f){f=a.resolve(A?r.options.cwd:"",f)}return f}function resolveCommand(r){return resolveCommandAttempt(r)||resolveCommandAttempt(r,true)}r.exports=resolveCommand},57451:(r,n,s)=>{n.formatArgs=formatArgs;n.save=save;n.load=load;n.useColors=useColors;n.storage=localstorage();n.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let r;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(n){n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;n.splice(1,0,s,"color: inherit");let a=0;let l=0;n[0].replace(/%[a-zA-Z%]/g,(r=>{if(r==="%%"){return}a++;if(r==="%c"){l=a}}));n.splice(l,0,s)}n.log=console.debug||console.log||(()=>{});function save(r){try{if(r){n.storage.setItem("debug",r)}else{n.storage.removeItem("debug")}}catch(r){}}function load(){let r;try{r=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch(r){}if(!r&&typeof process!=="undefined"&&"env"in process){r=process.env.DEBUG}return r}function localstorage(){try{return localStorage}catch(r){}}r.exports=s(63350)(n);const{formatters:a}=r.exports;a.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},63350:(r,n,s)=>{function setup(r){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(26647);createDebug.destroy=destroy;Object.keys(r).forEach((n=>{createDebug[n]=r[n]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(r){let n=0;for(let s=0;s{if(n==="%%"){return"%"}u++;const l=createDebug.formatters[a];if(typeof l==="function"){const a=r[u];n=l.call(s,a);r.splice(u,1);u--}return n}));createDebug.formatArgs.call(s,r);const d=s.log||createDebug.log;d.apply(s,r)}debug.namespace=r;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(r);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(s!==null){return s}if(a!==createDebug.namespaces){a=createDebug.namespaces;l=createDebug.enabled(r)}return l},set:r=>{s=r}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(r,n){const s=createDebug(this.namespace+(typeof n==="undefined"?":":n)+r);s.log=this.log;return s}function enable(r){createDebug.save(r);createDebug.namespaces=r;createDebug.names=[];createDebug.skips=[];const n=(typeof r==="string"?r:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const r of n){if(r[0]==="-"){createDebug.skips.push(r.slice(1))}else{createDebug.names.push(r)}}}function matchesTemplate(r,n){let s=0;let a=0;let l=-1;let u=0;while(s"-"+r))].join(",");createDebug.enable("");return r}function enabled(r){for(const n of createDebug.skips){if(matchesTemplate(r,n)){return false}}for(const n of createDebug.names){if(matchesTemplate(r,n)){return true}}return false}function coerce(r){if(r instanceof Error){return r.stack||r.message}return r}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}r.exports=setup},18263:(r,n,s)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){r.exports=s(57451)}else{r.exports=s(76423)}},76423:(r,n,s)=>{const a=s(52018);const l=s(39023);n.init=init;n.log=log;n.formatArgs=formatArgs;n.save=save;n.load=load;n.useColors=useColors;n.destroy=l.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");n.colors=[6,2,3,4,5,1];try{const r=s(84e3);if(r&&(r.stderr||r).level>=2){n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(r){}n.inspectOpts=Object.keys(process.env).filter((r=>/^debug_/i.test(r))).reduce(((r,n)=>{const s=n.substring(6).toLowerCase().replace(/_([a-z])/g,((r,n)=>n.toUpperCase()));let a=process.env[n];if(/^(yes|on|true|enabled)$/i.test(a)){a=true}else if(/^(no|off|false|disabled)$/i.test(a)){a=false}else if(a==="null"){a=null}else{a=Number(a)}r[s]=a;return r}),{});function useColors(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):a.isatty(process.stderr.fd)}function formatArgs(n){const{namespace:s,useColors:a}=this;if(a){const a=this.color;const l="[3"+(a<8?a:"8;5;"+a);const u=` ${l};1m${s} `;n[0]=u+n[0].split("\n").join("\n"+u);n.push(l+"m+"+r.exports.humanize(this.diff)+"")}else{n[0]=getDate()+s+" "+n[0]}}function getDate(){if(n.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...r){return process.stderr.write(l.formatWithOptions(n.inspectOpts,...r)+"\n")}function save(r){if(r){process.env.DEBUG=r}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(r){r.inspectOpts={};const s=Object.keys(n.inspectOpts);for(let a=0;ar.trim())).join(" ")};u.O=function(r){this.inspectOpts.colors=this.useColors;return l.inspect(r,this.inspectOpts)}},9876:(r,n)=>{ +var s;(function(r){if(typeof DO_NOT_EXPORT_CRC==="undefined"){if(true){r(n)}else{}}else{r(s={})}})((function(r){r.version="1.2.2";function signed_crc_table(){var r=0,n=new Array(256);for(var s=0;s!=256;++s){r=s;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;r=r&1?-306674912^r>>>1:r>>>1;n[s]=r}return typeof Int32Array!=="undefined"?new Int32Array(n):n}var n=signed_crc_table();function slice_by_16_tables(r){var n=0,s=0,a=0,l=typeof Int32Array!=="undefined"?new Int32Array(4096):new Array(4096);for(a=0;a!=256;++a)l[a]=r[a];for(a=0;a!=256;++a){s=r[a];for(n=256+a;n<4096;n+=256)s=l[n]=s>>>8^r[s&255]}var u=[];for(a=1;a!=16;++a)u[a-1]=typeof Int32Array!=="undefined"?l.subarray(a*256,a*256+256):l.slice(a*256,a*256+256);return u}var s=slice_by_16_tables(n);var a=s[0],l=s[1],u=s[2],d=s[3],A=s[4];var p=s[5],f=s[6],g=s[7],y=s[8],b=s[9];var C=s[10],w=s[11],B=s[12],I=s[13],S=s[14];function crc32_bstr(r,s){var a=s^-1;for(var l=0,u=r.length;l>>8^n[(a^r.charCodeAt(l++))&255];return~a}function crc32_buf(r,s){var Q=s^-1,v=r.length-15,R=0;for(;R>8&255]^B[r[R++]^Q>>16&255]^w[r[R++]^Q>>>24]^C[r[R++]]^b[r[R++]]^y[r[R++]]^g[r[R++]]^f[r[R++]]^p[r[R++]]^A[r[R++]]^d[r[R++]]^u[r[R++]]^l[r[R++]]^a[r[R++]]^n[r[R++]];v+=15;while(R>>8^n[(Q^r[R++])&255];return~Q}function crc32_str(r,s){var a=s^-1;for(var l=0,u=r.length,d=0,A=0;l>>8^n[(a^d)&255]}else if(d<2048){a=a>>>8^n[(a^(192|d>>6&31))&255];a=a>>>8^n[(a^(128|d&63))&255]}else if(d>=55296&&d<57344){d=(d&1023)+64;A=r.charCodeAt(l++)&1023;a=a>>>8^n[(a^(240|d>>8&7))&255];a=a>>>8^n[(a^(128|d>>2&63))&255];a=a>>>8^n[(a^(128|A>>6&15|(d&3)<<4))&255];a=a>>>8^n[(a^(128|A&63))&255]}else{a=a>>>8^n[(a^(224|d>>12&15))&255];a=a>>>8^n[(a^(128|d>>6&63))&255];a=a>>>8^n[(a^(128|d&63))&255]}}return~a}r.table=n;r.bstr=crc32_bstr;r.buf=crc32_buf;r.str=crc32_str}))},3662:(r,n,s)=>{const{Transform:a}=s(29963);const l=s(84891);class CRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0}_transform(r,n,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}s(null,r)}digest(r){const n=Buffer.allocUnsafe(4);n.writeUInt32BE(this.checksum>>>0,0);return r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}r.exports=CRC32Stream},76252:(r,n,s)=>{const{DeflateRaw:a}=s(43106);const l=s(84891);class DeflateCRC32Stream extends a{constructor(r){super(r);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(r,n){if(r){this.compressedSize+=r.length}return super.push(r,n)}_transform(r,n,s){if(r){this.checksum=l.buf(r,this.checksum)>>>0;this.rawSize+=r.length}super._transform(r,n,s)}digest(r){const n=Buffer.allocUnsafe(4);n.writeUInt32BE(this.checksum>>>0,0);return r?n.toString(r):n}hex(){return this.digest("hex").toUpperCase()}size(r=false){if(r){return this.compressedSize}else{return this.rawSize}}}r.exports=DeflateCRC32Stream},82770:(r,n,s)=>{r.exports={CRC32Stream:s(3662),DeflateCRC32Stream:s(76252)}},80546:(r,n,s)=>{const a=s(35317);const l=s(97877);const u=s(16469);function spawn(r,n,s){const d=l(r,n,s);const A=a.spawn(d.command,d.args,d.options);u.hookChildProcess(A,d);return A}function spawnSync(r,n,s){const d=l(r,n,s);const A=a.spawnSync(d.command,d.args,d.options);A.error=A.error||u.verifyENOENTSync(A.status,d);return A}r.exports=spawn;r.exports.spawn=spawn;r.exports.sync=spawnSync;r.exports._parse=l;r.exports._enoent=u},16469:r=>{const n=process.platform==="win32";function notFoundError(r,n){return Object.assign(new Error(`${n} ${r.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${n} ${r.command}`,path:r.command,spawnargs:r.args})}function hookChildProcess(r,s){if(!n){return}const a=r.emit;r.emit=function(n,l){if(n==="exit"){const n=verifyENOENT(l,s);if(n){return a.call(r,"error",n)}}return a.apply(r,arguments)}}function verifyENOENT(r,s){if(n&&r===1&&!s.file){return notFoundError(s.original,"spawn")}return null}function verifyENOENTSync(r,s){if(n&&r===1&&!s.file){return notFoundError(s.original,"spawnSync")}return null}r.exports={hookChildProcess:hookChildProcess,verifyENOENT:verifyENOENT,verifyENOENTSync:verifyENOENTSync,notFoundError:notFoundError}},97877:(r,n,s)=>{const a=s(16928);const l=s(64866);const u=s(2164);const d=s(70599);const A=process.platform==="win32";const p=/\.(?:com|exe)$/i;const f=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function detectShebang(r){r.file=l(r);const n=r.file&&d(r.file);if(n){r.args.unshift(r.file);r.command=n;return l(r)}return r.file}function parseNonShell(r){if(!A){return r}const n=detectShebang(r);const s=!p.test(n);if(r.options.forceShell||s){const s=f.test(n);r.command=a.normalize(r.command);r.command=u.command(r.command);r.args=r.args.map((r=>u.argument(r,s)));const l=[r.command].concat(r.args).join(" ");r.args=["/d","/s","/c",`"${l}"`];r.command=process.env.comspec||"cmd.exe";r.options.windowsVerbatimArguments=true}return r}function parse(r,n,s){if(n&&!Array.isArray(n)){s=n;n=null}n=n?n.slice(0):[];s=Object.assign({},s);const a={command:r,args:n,options:s,file:undefined,original:{command:r,args:n}};return s.shell?a:parseNonShell(a)}r.exports=parse},2164:r=>{const n=/([()\][%!^"`<>&|;, *?])/g;function escapeCommand(r){r=r.replace(n,"^$1");return r}function escapeArgument(r,s){r=`${r}`;r=r.replace(/(?=(\\+?)?)\1"/g,'$1$1\\"');r=r.replace(/(?=(\\+?)?)\1$/,"$1$1");r=`"${r}"`;r=r.replace(n,"^$1");if(s){r=r.replace(n,"^$1")}return r}r.exports.command=escapeCommand;r.exports.argument=escapeArgument},70599:(r,n,s)=>{const a=s(79896);const l=s(79152);function readShebang(r){const n=150;const s=Buffer.alloc(n);let u;try{u=a.openSync(r,"r");a.readSync(u,s,0,n,0);a.closeSync(u)}catch(r){}return l(s.toString())}r.exports=readShebang},64866:(r,n,s)=>{const a=s(16928);const l=s(26848);const u=s(56689);function resolveCommandAttempt(r,n){const s=r.options.env||process.env;const d=process.cwd();const A=r.options.cwd!=null;const p=A&&process.chdir!==undefined&&!process.chdir.disabled;if(p){try{process.chdir(r.options.cwd)}catch(r){}}let f;try{f=l.sync(r.command,{path:s[u({env:s})],pathExt:n?a.delimiter:undefined})}catch(r){}finally{if(p){process.chdir(d)}}if(f){f=a.resolve(A?r.options.cwd:"",f)}return f}function resolveCommand(r){return resolveCommandAttempt(r)||resolveCommandAttempt(r,true)}r.exports=resolveCommand},6110:(r,n,s)=>{n.formatArgs=formatArgs;n.save=save;n.load=load;n.useColors=useColors;n.storage=localstorage();n.destroy=(()=>{let r=false;return()=>{if(!r){r=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();n.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}let r;return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(n){n[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+n[0]+(this.useColors?"%c ":" ")+"+"+r.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;n.splice(1,0,s,"color: inherit");let a=0;let l=0;n[0].replace(/%[a-zA-Z%]/g,(r=>{if(r==="%%"){return}a++;if(r==="%c"){l=a}}));n.splice(l,0,s)}n.log=console.debug||console.log||(()=>{});function save(r){try{if(r){n.storage.setItem("debug",r)}else{n.storage.removeItem("debug")}}catch(r){}}function load(){let r;try{r=n.storage.getItem("debug")||n.storage.getItem("DEBUG")}catch(r){}if(!r&&typeof process!=="undefined"&&"env"in process){r=process.env.DEBUG}return r}function localstorage(){try{return localStorage}catch(r){}}r.exports=s(40897)(n);const{formatters:a}=r.exports;a.j=function(r){try{return JSON.stringify(r)}catch(r){return"[UnexpectedJSONParseError]: "+r.message}}},40897:(r,n,s)=>{function setup(r){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(70744);createDebug.destroy=destroy;Object.keys(r).forEach((n=>{createDebug[n]=r[n]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(r){let n=0;for(let s=0;s{if(n==="%%"){return"%"}u++;const l=createDebug.formatters[a];if(typeof l==="function"){const a=r[u];n=l.call(s,a);r.splice(u,1);u--}return n}));createDebug.formatArgs.call(s,r);const d=s.log||createDebug.log;d.apply(s,r)}debug.namespace=r;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(r);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(s!==null){return s}if(a!==createDebug.namespaces){a=createDebug.namespaces;l=createDebug.enabled(r)}return l},set:r=>{s=r}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(r,n){const s=createDebug(this.namespace+(typeof n==="undefined"?":":n)+r);s.log=this.log;return s}function enable(r){createDebug.save(r);createDebug.namespaces=r;createDebug.names=[];createDebug.skips=[];const n=(typeof r==="string"?r:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const r of n){if(r[0]==="-"){createDebug.skips.push(r.slice(1))}else{createDebug.names.push(r)}}}function matchesTemplate(r,n){let s=0;let a=0;let l=-1;let u=0;while(s"-"+r))].join(",");createDebug.enable("");return r}function enabled(r){for(const n of createDebug.skips){if(matchesTemplate(r,n)){return false}}for(const n of createDebug.names){if(matchesTemplate(r,n)){return true}}return false}function coerce(r){if(r instanceof Error){return r.stack||r.message}return r}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}r.exports=setup},2830:(r,n,s)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){r.exports=s(6110)}else{r.exports=s(95108)}},95108:(r,n,s)=>{const a=s(52018);const l=s(39023);n.init=init;n.log=log;n.formatArgs=formatArgs;n.save=save;n.load=load;n.useColors=useColors;n.destroy=l.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");n.colors=[6,2,3,4,5,1];try{const r=s(60075);if(r&&(r.stderr||r).level>=2){n.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(r){}n.inspectOpts=Object.keys(process.env).filter((r=>/^debug_/i.test(r))).reduce(((r,n)=>{const s=n.substring(6).toLowerCase().replace(/_([a-z])/g,((r,n)=>n.toUpperCase()));let a=process.env[n];if(/^(yes|on|true|enabled)$/i.test(a)){a=true}else if(/^(no|off|false|disabled)$/i.test(a)){a=false}else if(a==="null"){a=null}else{a=Number(a)}r[s]=a;return r}),{});function useColors(){return"colors"in n.inspectOpts?Boolean(n.inspectOpts.colors):a.isatty(process.stderr.fd)}function formatArgs(n){const{namespace:s,useColors:a}=this;if(a){const a=this.color;const l="[3"+(a<8?a:"8;5;"+a);const u=` ${l};1m${s} `;n[0]=u+n[0].split("\n").join("\n"+u);n.push(l+"m+"+r.exports.humanize(this.diff)+"")}else{n[0]=getDate()+s+" "+n[0]}}function getDate(){if(n.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...r){return process.stderr.write(l.formatWithOptions(n.inspectOpts,...r)+"\n")}function save(r){if(r){process.env.DEBUG=r}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(r){r.inspectOpts={};const s=Object.keys(n.inspectOpts);for(let a=0;ar.trim())).join(" ")};u.O=function(r){this.inspectOpts.colors=this.useColors;return l.inspect(r,this.inspectOpts)}},16577:(r,n)=>{ /** * @author Toru Nagashima * @copyright 2015 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ -Object.defineProperty(n,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;function pd(r){const n=s.get(r);console.assert(n!=null,"'this' is expected an Event object, but got",r);return n}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,n){s.set(this,{eventTarget:r,event:n,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:n.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const a=Object.keys(n);for(let r=0;r0){const r=new Array(arguments.length);for(let n=0;n{r.exports=s(24434)},44545:r=>{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},19597:(r,n,s)=>{const a=s(44545);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new a(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const n=this.head;this.head=n.next=new a(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},80197:(r,n,s)=>{const a=s(90876);const l=s(40836);const u=s(47526);const d=s(41933);const A=s(27048);const p=s(77463);async function FastGlob(r,n){assertPatternsInput(r);const s=getWorks(r,l.default,n);const a=await Promise.all(s);return p.array.flatten(a)}(function(r){r.glob=r;r.globSync=sync;r.globStream=stream;r.async=r;function sync(r,n){assertPatternsInput(r);const s=getWorks(r,d.default,n);return p.array.flatten(s)}r.sync=sync;function stream(r,n){assertPatternsInput(r);const s=getWorks(r,u.default,n);return p.stream.merge(s)}r.stream=stream;function generateTasks(r,n){assertPatternsInput(r);const s=[].concat(r);const l=new A.default(n);return a.generate(s,l)}r.generateTasks=generateTasks;function isDynamicPattern(r,n){assertPatternsInput(r);const s=new A.default(n);return p.pattern.isDynamicPattern(r,s)}r.isDynamicPattern=isDynamicPattern;function escapePath(r){assertPatternsInput(r);return p.path.escape(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertPathToPattern(r)}r.convertPathToPattern=convertPathToPattern;let n;(function(r){function escapePath(r){assertPatternsInput(r);return p.path.escapePosixPath(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertPosixPathToPattern(r)}r.convertPathToPattern=convertPathToPattern})(n=r.posix||(r.posix={}));let s;(function(r){function escapePath(r){assertPatternsInput(r);return p.path.escapeWindowsPath(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertWindowsPathToPattern(r)}r.convertPathToPattern=convertPathToPattern})(s=r.win32||(r.win32={}))})(FastGlob||(FastGlob={}));function getWorks(r,n,s){const l=[].concat(r);const u=new A.default(s);const d=a.generate(l,u);const p=new n(u);return d.map(p.read,p)}function assertPatternsInput(r){const n=[].concat(r);const s=n.every((r=>p.string.isString(r)&&!p.string.isEmpty(r)));if(!s){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}r.exports=FastGlob},90876:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.convertPatternGroupToTask=n.convertPatternGroupsToTasks=n.groupPatternsByBaseDirectory=n.getNegativePatternsAsPositive=n.getPositivePatterns=n.convertPatternsToTasks=n.generate=void 0;const a=s(77463);function generate(r,n){const s=processPatterns(r,n);const l=processPatterns(n.ignore,n);const u=getPositivePatterns(s);const d=getNegativePatternsAsPositive(s,l);const A=u.filter((r=>a.pattern.isStaticPattern(r,n)));const p=u.filter((r=>a.pattern.isDynamicPattern(r,n)));const f=convertPatternsToTasks(A,d,false);const g=convertPatternsToTasks(p,d,true);return f.concat(g)}n.generate=generate;function processPatterns(r,n){let s=r;if(n.braceExpansion){s=a.pattern.expandPatternsWithBraceExpansion(s)}if(n.baseNameMatch){s=s.map((r=>r.includes("/")?r:`**/${r}`))}return s.map((r=>a.pattern.removeDuplicateSlashes(r)))}function convertPatternsToTasks(r,n,s){const l=[];const u=a.pattern.getPatternsOutsideCurrentDirectory(r);const d=a.pattern.getPatternsInsideCurrentDirectory(r);const A=groupPatternsByBaseDirectory(u);const p=groupPatternsByBaseDirectory(d);l.push(...convertPatternGroupsToTasks(A,n,s));if("."in p){l.push(convertPatternGroupToTask(".",d,n,s))}else{l.push(...convertPatternGroupsToTasks(p,n,s))}return l}n.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(r){return a.pattern.getPositivePatterns(r)}n.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(r,n){const s=a.pattern.getNegativePatterns(r).concat(n);const l=s.map(a.pattern.convertToPositivePattern);return l}n.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(r){const n={};return r.reduce(((r,n)=>{const s=a.pattern.getBaseDirectory(n);if(s in r){r[s].push(n)}else{r[s]=[n]}return r}),n)}n.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(r,n,s){return Object.keys(r).map((a=>convertPatternGroupToTask(a,r[a],n,s)))}n.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(r,n,s,l){return{dynamic:l,positive:n,negative:s,base:r,patterns:[].concat(n,s.map(a.pattern.convertToNegativePattern))}}n.convertPatternGroupToTask=convertPatternGroupToTask},40836:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(79118);const l=s(38555);class ProviderAsync extends l.default{constructor(){super(...arguments);this._reader=new a.default(this._settings)}async read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const a=await this.api(n,r,s);return a.map((r=>s.transform(r)))}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderAsync},34872:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77463);const l=s(6703);class DeepFilter{constructor(r,n){this._settings=r;this._micromatchOptions=n}getFilter(r,n,s){const a=this._getMatcher(n);const l=this._getNegativePatternsRe(s);return n=>this._filter(r,n,a,l)}_getMatcher(r){return new l.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){const n=r.filter(a.pattern.isAffectDepthOfReadingPattern);return a.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(r,n,s,l){if(this._isSkippedByDeep(r,n.path)){return false}if(this._isSkippedSymbolicLink(n)){return false}const u=a.path.removeLeadingDotSegment(n.path);if(this._isSkippedByPositivePatterns(u,s)){return false}return this._isSkippedByNegativePatterns(u,l)}_isSkippedByDeep(r,n){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(r,n)>=this._settings.deep}_getEntryLevel(r,n){const s=n.split("/").length;if(r===""){return s}const a=r.split("/").length;return s-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,n){return!this._settings.baseNameMatch&&!n.match(r)}_isSkippedByNegativePatterns(r,n){return!a.pattern.matchAny(r,n)}}n["default"]=DeepFilter},8244:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77463);class EntryFilter{constructor(r,n){this._settings=r;this._micromatchOptions=n;this.index=new Map}getFilter(r,n){const[s,l]=a.pattern.partitionAbsoluteAndRelative(n);const u={positive:{all:a.pattern.convertPatternsToRe(r,this._micromatchOptions)},negative:{absolute:a.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:true})),relative:a.pattern.convertPatternsToRe(l,Object.assign(Object.assign({},this._micromatchOptions),{dot:true}))}};return r=>this._filter(r,u)}_filter(r,n){const s=a.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(s)){return false}if(this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)){return false}const l=this._isMatchToPatternsSet(s,n,r.dirent.isDirectory());if(this._settings.unique&&l){this._createIndexRecord(s)}return l}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,undefined)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isMatchToPatternsSet(r,n,s){const a=this._isMatchToPatterns(r,n.positive.all,s);if(!a){return false}const l=this._isMatchToPatterns(r,n.negative.relative,s);if(l){return false}const u=this._isMatchToAbsoluteNegative(r,n.negative.absolute,s);if(u){return false}return true}_isMatchToAbsoluteNegative(r,n,s){if(n.length===0){return false}const l=a.path.makeAbsolute(this._settings.cwd,r);return this._isMatchToPatterns(l,n,s)}_isMatchToPatterns(r,n,s){if(n.length===0){return false}const l=a.pattern.matchAny(r,n);if(!l&&s){return a.pattern.matchAny(r+"/",n)}return l}}n["default"]=EntryFilter},83030:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77463);class ErrorFilter{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return a.errno.isEnoentCodeError(r)||this._settings.suppressErrors}}n["default"]=ErrorFilter},83264:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77463);class Matcher{constructor(r,n,s){this._patterns=r;this._settings=n;this._micromatchOptions=s;this._storage=[];this._fillStorage()}_fillStorage(){for(const r of this._patterns){const n=this._getPatternSegments(r);const s=this._splitSegmentsIntoSections(n);this._storage.push({complete:s.length<=1,pattern:r,segments:n,sections:s})}}_getPatternSegments(r){const n=a.pattern.getPatternParts(r,this._micromatchOptions);return n.map((r=>{const n=a.pattern.isDynamicPattern(r,this._settings);if(!n){return{dynamic:false,pattern:r}}return{dynamic:true,pattern:r,patternRe:a.pattern.makeRe(r,this._micromatchOptions)}}))}_splitSegmentsIntoSections(r){return a.array.splitWhen(r,(r=>r.dynamic&&a.pattern.hasGlobStar(r.pattern)))}}n["default"]=Matcher},6703:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(83264);class PartialMatcher extends a.default{match(r){const n=r.split("/");const s=n.length;const a=this._storage.filter((r=>!r.complete||r.segments.length>s));for(const r of a){const a=r.sections[0];if(!r.complete&&s>a.length){return true}const l=n.every(((n,s)=>{const a=r.segments[s];if(a.dynamic&&a.patternRe.test(n)){return true}if(!a.dynamic&&a.pattern===n){return true}return false}));if(l){return true}}return false}}n["default"]=PartialMatcher},38555:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(34872);const u=s(8244);const d=s(83030);const A=s(95197);class Provider{constructor(r){this._settings=r;this.errorFilter=new d.default(this._settings);this.entryFilter=new u.default(this._settings,this._getMicromatchOptions());this.deepFilter=new l.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new A.default(this._settings)}_getRootDirectory(r){return a.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){const n=r.base==="."?"":r.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}n["default"]=Provider},47526:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(28256);const u=s(38555);class ProviderStream extends u.default{constructor(){super(...arguments);this._reader=new l.default(this._settings)}read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const l=this.api(n,r,s);const u=new a.Readable({objectMode:true,read:()=>{}});l.once("error",(r=>u.emit("error",r))).on("data",(r=>u.emit("data",s.transform(r)))).once("end",(()=>u.emit("end")));u.once("close",(()=>l.destroy()));return u}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderStream},41933:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(28411);const l=s(38555);class ProviderSync extends l.default{constructor(){super(...arguments);this._reader=new a.default(this._settings)}read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const a=this.api(n,r,s);return a.map(s.transform)}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderSync},95197:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77463);class EntryTransformer{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let n=r.path;if(this._settings.absolute){n=a.path.makeAbsolute(this._settings.cwd,n);n=a.path.unixify(n)}if(this._settings.markDirectories&&r.dirent.isDirectory()){n+="/"}if(!this._settings.objectMode){return n}return Object.assign(Object.assign({},r),{path:n})}}n["default"]=EntryTransformer},79118:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(77669);const l=s(61443);const u=s(28256);class ReaderAsync extends l.default{constructor(){super(...arguments);this._walkAsync=a.walk;this._readerStream=new u.default(this._settings)}dynamic(r,n){return new Promise(((s,a)=>{this._walkAsync(r,n,((r,n)=>{if(r===null){s(n)}else{a(r)}}))}))}async static(r,n){const s=[];const a=this._readerStream.static(r,n);return new Promise(((r,n)=>{a.once("error",n);a.on("data",(r=>s.push(r)));a.once("end",(()=>r(s)))}))}}n["default"]=ReaderAsync},61443:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(61113);const u=s(77463);class Reader{constructor(r){this._settings=r;this._fsStatSettings=new l.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return a.resolve(this._settings.cwd,r)}_makeEntry(r,n){const s={name:n,path:n,dirent:u.fs.createDirentFromStats(n,r)};if(this._settings.stats){s.stats=r}return s}_isFatalError(r){return!u.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}}n["default"]=Reader},28256:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(61113);const u=s(77669);const d=s(61443);class ReaderStream extends d.default{constructor(){super(...arguments);this._walkStream=u.walkStream;this._stat=l.stat}dynamic(r,n){return this._walkStream(r,n)}static(r,n){const s=r.map(this._getFullEntryPath,this);const l=new a.PassThrough({objectMode:true});l._write=(a,u,d)=>this._getEntry(s[a],r[a],n).then((r=>{if(r!==null&&n.entryFilter(r)){l.push(r)}if(a===s.length-1){l.end()}d()})).catch(d);for(let r=0;rthis._makeEntry(r,n))).catch((r=>{if(s.errorFilter(r)){return null}throw r}))}_getStat(r){return new Promise(((n,s)=>{this._stat(r,this._fsStatSettings,((r,a)=>r===null?n(a):s(r)))}))}}n["default"]=ReaderStream},28411:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(61113);const l=s(77669);const u=s(61443);class ReaderSync extends u.default{constructor(){super(...arguments);this._walkSync=l.walkSync;this._statSync=a.statSync}dynamic(r,n){return this._walkSync(r,n)}static(r,n){const s=[];for(const a of r){const r=this._getFullEntryPath(a);const l=this._getEntry(r,a,n);if(l===null||!n.entryFilter(l)){continue}s.push(l)}return s}_getEntry(r,n,s){try{const s=this._getStat(r);return this._makeEntry(s,n)}catch(r){if(s.errorFilter(r)){return null}throw r}}_getStat(r){return this._statSync(r,this._fsStatSettings)}}n["default"]=ReaderSync},27048:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);const l=s(70857);const u=Math.max(l.cpus().length,1);n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:a.lstat,lstatSync:a.lstatSync,stat:a.stat,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};class Settings{constructor(r={}){this._options=r;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,u);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}this.ignore=[].concat(this.ignore)}_getValue(r,n){return r===undefined?n:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},n.DEFAULT_FILE_SYSTEM_ADAPTER),r)}}n["default"]=Settings},36850:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.splitWhen=n.flatten=void 0;function flatten(r){return r.reduce(((r,n)=>[].concat(r,n)),[])}n.flatten=flatten;function splitWhen(r,n){const s=[[]];let a=0;for(const l of r){if(n(l)){a++;s[a]=[]}else{s[a].push(l)}}return s}n.splitWhen=splitWhen},47119:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isEnoentCodeError=void 0;function isEnoentCodeError(r){return r.code==="ENOENT"}n.isEnoentCodeError=isEnoentCodeError},70268:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.createDirentFromStats=void 0;class DirentFromStats{constructor(r,n){this.name=r;this.isBlockDevice=n.isBlockDevice.bind(n);this.isCharacterDevice=n.isCharacterDevice.bind(n);this.isDirectory=n.isDirectory.bind(n);this.isFIFO=n.isFIFO.bind(n);this.isFile=n.isFile.bind(n);this.isSocket=n.isSocket.bind(n);this.isSymbolicLink=n.isSymbolicLink.bind(n)}}function createDirentFromStats(r,n){return new DirentFromStats(r,n)}n.createDirentFromStats=createDirentFromStats},77463:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.string=n.stream=n.pattern=n.path=n.fs=n.errno=n.array=void 0;const a=s(36850);n.array=a;const l=s(47119);n.errno=l;const u=s(70268);n.fs=u;const d=s(95720);n.path=d;const A=s(42673);n.pattern=A;const p=s(82931);n.stream=p;const f=s(48950);n.string=f},95720:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.convertPosixPathToPattern=n.convertWindowsPathToPattern=n.convertPathToPattern=n.escapePosixPath=n.escapeWindowsPath=n.escape=n.removeLeadingDotSegment=n.makeAbsolute=n.unixify=void 0;const a=s(70857);const l=s(16928);const u=a.platform()==="win32";const d=2;const A=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;const p=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g;const f=/^\\\\([.?])/;const g=/\\(?![!()+@[\]{}])/g;function unixify(r){return r.replace(/\\/g,"/")}n.unixify=unixify;function makeAbsolute(r,n){return l.resolve(r,n)}n.makeAbsolute=makeAbsolute;function removeLeadingDotSegment(r){if(r.charAt(0)==="."){const n=r.charAt(1);if(n==="/"||n==="\\"){return r.slice(d)}}return r}n.removeLeadingDotSegment=removeLeadingDotSegment;n.escape=u?escapeWindowsPath:escapePosixPath;function escapeWindowsPath(r){return r.replace(p,"\\$2")}n.escapeWindowsPath=escapeWindowsPath;function escapePosixPath(r){return r.replace(A,"\\$2")}n.escapePosixPath=escapePosixPath;n.convertPathToPattern=u?convertWindowsPathToPattern:convertPosixPathToPattern;function convertWindowsPathToPattern(r){return escapeWindowsPath(r).replace(f,"//$1").replace(g,"/")}n.convertWindowsPathToPattern=convertWindowsPathToPattern;function convertPosixPathToPattern(r){return escapePosixPath(r)}n.convertPosixPathToPattern=convertPosixPathToPattern},42673:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.isAbsolute=n.partitionAbsoluteAndRelative=n.removeDuplicateSlashes=n.matchAny=n.convertPatternsToRe=n.makeRe=n.getPatternParts=n.expandBraceExpansion=n.expandPatternsWithBraceExpansion=n.isAffectDepthOfReadingPattern=n.endsWithSlashGlobStar=n.hasGlobStar=n.getBaseDirectory=n.isPatternRelatedToParentDirectory=n.getPatternsOutsideCurrentDirectory=n.getPatternsInsideCurrentDirectory=n.getPositivePatterns=n.getNegativePatterns=n.isPositivePattern=n.isNegativePattern=n.convertToNegativePattern=n.convertToPositivePattern=n.isDynamicPattern=n.isStaticPattern=void 0;const a=s(16928);const l=s(71511);const u=s(13095);const d="**";const A="\\";const p=/[*?]|^!/;const f=/\[[^[]*]/;const g=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const y=/[!*+?@]\([^(]*\)/;const b=/,|\.\./;const C=/(?!^)\/{2,}/g;function isStaticPattern(r,n={}){return!isDynamicPattern(r,n)}n.isStaticPattern=isStaticPattern;function isDynamicPattern(r,n={}){if(r===""){return false}if(n.caseSensitiveMatch===false||r.includes(A)){return true}if(p.test(r)||f.test(r)||g.test(r)){return true}if(n.extglob!==false&&y.test(r)){return true}if(n.braceExpansion!==false&&hasBraceExpansion(r)){return true}return false}n.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(r){const n=r.indexOf("{");if(n===-1){return false}const s=r.indexOf("}",n+1);if(s===-1){return false}const a=r.slice(n,s);return b.test(a)}function convertToPositivePattern(r){return isNegativePattern(r)?r.slice(1):r}n.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(r){return"!"+r}n.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(r){return r.startsWith("!")&&r[1]!=="("}n.isNegativePattern=isNegativePattern;function isPositivePattern(r){return!isNegativePattern(r)}n.isPositivePattern=isPositivePattern;function getNegativePatterns(r){return r.filter(isNegativePattern)}n.getNegativePatterns=getNegativePatterns;function getPositivePatterns(r){return r.filter(isPositivePattern)}n.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(r){return r.filter((r=>!isPatternRelatedToParentDirectory(r)))}n.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(r){return r.filter(isPatternRelatedToParentDirectory)}n.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(r){return r.startsWith("..")||r.startsWith("./..")}n.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(r){return l(r,{flipBackslashes:false})}n.getBaseDirectory=getBaseDirectory;function hasGlobStar(r){return r.includes(d)}n.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(r){return r.endsWith("/"+d)}n.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(r){const n=a.basename(r);return endsWithSlashGlobStar(r)||isStaticPattern(n)}n.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(r){return r.reduce(((r,n)=>r.concat(expandBraceExpansion(n))),[])}n.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(r){const n=u.braces(r,{expand:true,nodupes:true,keepEscaping:true});n.sort(((r,n)=>r.length-n.length));return n.filter((r=>r!==""))}n.expandBraceExpansion=expandBraceExpansion;function getPatternParts(r,n){let{parts:s}=u.scan(r,Object.assign(Object.assign({},n),{parts:true}));if(s.length===0){s=[r]}if(s[0].startsWith("/")){s[0]=s[0].slice(1);s.unshift("")}return s}n.getPatternParts=getPatternParts;function makeRe(r,n){return u.makeRe(r,n)}n.makeRe=makeRe;function convertPatternsToRe(r,n){return r.map((r=>makeRe(r,n)))}n.convertPatternsToRe=convertPatternsToRe;function matchAny(r,n){return n.some((n=>n.test(r)))}n.matchAny=matchAny;function removeDuplicateSlashes(r){return r.replace(C,"/")}n.removeDuplicateSlashes=removeDuplicateSlashes;function partitionAbsoluteAndRelative(r){const n=[];const s=[];for(const a of r){if(isAbsolute(a)){n.push(a)}else{s.push(a)}}return[n,s]}n.partitionAbsoluteAndRelative=partitionAbsoluteAndRelative;function isAbsolute(r){return a.isAbsolute(r)}n.isAbsolute=isAbsolute},82931:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.merge=void 0;const a=s(43987);function merge(r){const n=a(r);r.forEach((r=>{r.once("error",(r=>n.emit("error",r)))}));n.once("close",(()=>propagateCloseEventToSources(r)));n.once("end",(()=>propagateCloseEventToSources(r)));return n}n.merge=merge;function propagateCloseEventToSources(r){r.forEach((r=>r.emit("close")))}},48950:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isEmpty=n.isString=void 0;function isString(r){return typeof r==="string"}n.isString=isString;function isEmpty(r){return r===""}n.isEmpty=isEmpty},56198:(r,n,s)=>{ +Object.defineProperty(n,"__esModule",{value:true});const s=new WeakMap;const a=new WeakMap;function pd(r){const n=s.get(r);console.assert(n!=null,"'this' is expected an Event object, but got",r);return n}function setCancelFlag(r){if(r.passiveListener!=null){if(typeof console!=="undefined"&&typeof console.error==="function"){console.error("Unable to preventDefault inside passive event listener invocation.",r.passiveListener)}return}if(!r.event.cancelable){return}r.canceled=true;if(typeof r.event.preventDefault==="function"){r.event.preventDefault()}}function Event(r,n){s.set(this,{eventTarget:r,event:n,eventPhase:2,currentTarget:r,canceled:false,stopped:false,immediateStopped:false,passiveListener:null,timeStamp:n.timeStamp||Date.now()});Object.defineProperty(this,"isTrusted",{value:false,enumerable:true});const a=Object.keys(n);for(let r=0;r0){const r=new Array(arguments.length);for(let n=0;n{r.exports=s(24434)},13587:r=>{r.exports=class FixedFIFO{constructor(r){if(!(r>0)||(r-1&r)!==0)throw new Error("Max size for a FixedFIFO should be a power of two");this.buffer=new Array(r);this.mask=r-1;this.top=0;this.btm=0;this.next=null}clear(){this.top=this.btm=0;this.next=null;this.buffer.fill(undefined)}push(r){if(this.buffer[this.top]!==undefined)return false;this.buffer[this.top]=r;this.top=this.top+1&this.mask;return true}shift(){const r=this.buffer[this.btm];if(r===undefined)return undefined;this.buffer[this.btm]=undefined;this.btm=this.btm+1&this.mask;return r}peek(){return this.buffer[this.btm]}isEmpty(){return this.buffer[this.btm]===undefined}}},83867:(r,n,s)=>{const a=s(13587);r.exports=class FastFIFO{constructor(r){this.hwm=r||16;this.head=new a(this.hwm);this.tail=this.head;this.length=0}clear(){this.head=this.tail;this.head.clear();this.length=0}push(r){this.length++;if(!this.head.push(r)){const n=this.head;this.head=n.next=new a(2*this.head.buffer.length);this.head.push(r)}}shift(){if(this.length!==0)this.length--;const r=this.tail.shift();if(r===undefined&&this.tail.next){const r=this.tail.next;this.tail.next=null;this.tail=r;return this.tail.shift()}return r}peek(){const r=this.tail.peek();if(r===undefined&&this.tail.next)return this.tail.next.peek();return r}isEmpty(){return this.length===0}}},25648:(r,n,s)=>{const a=s(56599);const l=s(90645);const u=s(61969);const d=s(95894);const A=s(879);const p=s(36002);async function FastGlob(r,n){assertPatternsInput(r);const s=getWorks(r,l.default,n);const a=await Promise.all(s);return p.array.flatten(a)}(function(r){r.glob=r;r.globSync=sync;r.globStream=stream;r.async=r;function sync(r,n){assertPatternsInput(r);const s=getWorks(r,d.default,n);return p.array.flatten(s)}r.sync=sync;function stream(r,n){assertPatternsInput(r);const s=getWorks(r,u.default,n);return p.stream.merge(s)}r.stream=stream;function generateTasks(r,n){assertPatternsInput(r);const s=[].concat(r);const l=new A.default(n);return a.generate(s,l)}r.generateTasks=generateTasks;function isDynamicPattern(r,n){assertPatternsInput(r);const s=new A.default(n);return p.pattern.isDynamicPattern(r,s)}r.isDynamicPattern=isDynamicPattern;function escapePath(r){assertPatternsInput(r);return p.path.escape(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertPathToPattern(r)}r.convertPathToPattern=convertPathToPattern;let n;(function(r){function escapePath(r){assertPatternsInput(r);return p.path.escapePosixPath(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertPosixPathToPattern(r)}r.convertPathToPattern=convertPathToPattern})(n=r.posix||(r.posix={}));let s;(function(r){function escapePath(r){assertPatternsInput(r);return p.path.escapeWindowsPath(r)}r.escapePath=escapePath;function convertPathToPattern(r){assertPatternsInput(r);return p.path.convertWindowsPathToPattern(r)}r.convertPathToPattern=convertPathToPattern})(s=r.win32||(r.win32={}))})(FastGlob||(FastGlob={}));function getWorks(r,n,s){const l=[].concat(r);const u=new A.default(s);const d=a.generate(l,u);const p=new n(u);return d.map(p.read,p)}function assertPatternsInput(r){const n=[].concat(r);const s=n.every((r=>p.string.isString(r)&&!p.string.isEmpty(r)));if(!s){throw new TypeError("Patterns must be a string (non empty) or an array of strings")}}r.exports=FastGlob},56599:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.convertPatternGroupToTask=n.convertPatternGroupsToTasks=n.groupPatternsByBaseDirectory=n.getNegativePatternsAsPositive=n.getPositivePatterns=n.convertPatternsToTasks=n.generate=void 0;const a=s(36002);function generate(r,n){const s=processPatterns(r,n);const l=processPatterns(n.ignore,n);const u=getPositivePatterns(s);const d=getNegativePatternsAsPositive(s,l);const A=u.filter((r=>a.pattern.isStaticPattern(r,n)));const p=u.filter((r=>a.pattern.isDynamicPattern(r,n)));const f=convertPatternsToTasks(A,d,false);const g=convertPatternsToTasks(p,d,true);return f.concat(g)}n.generate=generate;function processPatterns(r,n){let s=r;if(n.braceExpansion){s=a.pattern.expandPatternsWithBraceExpansion(s)}if(n.baseNameMatch){s=s.map((r=>r.includes("/")?r:`**/${r}`))}return s.map((r=>a.pattern.removeDuplicateSlashes(r)))}function convertPatternsToTasks(r,n,s){const l=[];const u=a.pattern.getPatternsOutsideCurrentDirectory(r);const d=a.pattern.getPatternsInsideCurrentDirectory(r);const A=groupPatternsByBaseDirectory(u);const p=groupPatternsByBaseDirectory(d);l.push(...convertPatternGroupsToTasks(A,n,s));if("."in p){l.push(convertPatternGroupToTask(".",d,n,s))}else{l.push(...convertPatternGroupsToTasks(p,n,s))}return l}n.convertPatternsToTasks=convertPatternsToTasks;function getPositivePatterns(r){return a.pattern.getPositivePatterns(r)}n.getPositivePatterns=getPositivePatterns;function getNegativePatternsAsPositive(r,n){const s=a.pattern.getNegativePatterns(r).concat(n);const l=s.map(a.pattern.convertToPositivePattern);return l}n.getNegativePatternsAsPositive=getNegativePatternsAsPositive;function groupPatternsByBaseDirectory(r){const n={};return r.reduce(((r,n)=>{const s=a.pattern.getBaseDirectory(n);if(s in r){r[s].push(n)}else{r[s]=[n]}return r}),n)}n.groupPatternsByBaseDirectory=groupPatternsByBaseDirectory;function convertPatternGroupsToTasks(r,n,s){return Object.keys(r).map((a=>convertPatternGroupToTask(a,r[a],n,s)))}n.convertPatternGroupsToTasks=convertPatternGroupsToTasks;function convertPatternGroupToTask(r,n,s,l){return{dynamic:l,positive:n,negative:s,base:r,patterns:[].concat(n,s.map(a.pattern.convertToNegativePattern))}}n.convertPatternGroupToTask=convertPatternGroupToTask},90645:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(82907);const l=s(77792);class ProviderAsync extends l.default{constructor(){super(...arguments);this._reader=new a.default(this._settings)}async read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const a=await this.api(n,r,s);return a.map((r=>s.transform(r)))}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderAsync},73591:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(36002);const l=s(5740);class DeepFilter{constructor(r,n){this._settings=r;this._micromatchOptions=n}getFilter(r,n,s){const a=this._getMatcher(n);const l=this._getNegativePatternsRe(s);return n=>this._filter(r,n,a,l)}_getMatcher(r){return new l.default(r,this._settings,this._micromatchOptions)}_getNegativePatternsRe(r){const n=r.filter(a.pattern.isAffectDepthOfReadingPattern);return a.pattern.convertPatternsToRe(n,this._micromatchOptions)}_filter(r,n,s,l){if(this._isSkippedByDeep(r,n.path)){return false}if(this._isSkippedSymbolicLink(n)){return false}const u=a.path.removeLeadingDotSegment(n.path);if(this._isSkippedByPositivePatterns(u,s)){return false}return this._isSkippedByNegativePatterns(u,l)}_isSkippedByDeep(r,n){if(this._settings.deep===Infinity){return false}return this._getEntryLevel(r,n)>=this._settings.deep}_getEntryLevel(r,n){const s=n.split("/").length;if(r===""){return s}const a=r.split("/").length;return s-a}_isSkippedSymbolicLink(r){return!this._settings.followSymbolicLinks&&r.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(r,n){return!this._settings.baseNameMatch&&!n.match(r)}_isSkippedByNegativePatterns(r,n){return!a.pattern.matchAny(r,n)}}n["default"]=DeepFilter},44285:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(36002);class EntryFilter{constructor(r,n){this._settings=r;this._micromatchOptions=n;this.index=new Map}getFilter(r,n){const[s,l]=a.pattern.partitionAbsoluteAndRelative(n);const u={positive:{all:a.pattern.convertPatternsToRe(r,this._micromatchOptions)},negative:{absolute:a.pattern.convertPatternsToRe(s,Object.assign(Object.assign({},this._micromatchOptions),{dot:true})),relative:a.pattern.convertPatternsToRe(l,Object.assign(Object.assign({},this._micromatchOptions),{dot:true}))}};return r=>this._filter(r,u)}_filter(r,n){const s=a.path.removeLeadingDotSegment(r.path);if(this._settings.unique&&this._isDuplicateEntry(s)){return false}if(this._onlyFileFilter(r)||this._onlyDirectoryFilter(r)){return false}const l=this._isMatchToPatternsSet(s,n,r.dirent.isDirectory());if(this._settings.unique&&l){this._createIndexRecord(s)}return l}_isDuplicateEntry(r){return this.index.has(r)}_createIndexRecord(r){this.index.set(r,undefined)}_onlyFileFilter(r){return this._settings.onlyFiles&&!r.dirent.isFile()}_onlyDirectoryFilter(r){return this._settings.onlyDirectories&&!r.dirent.isDirectory()}_isMatchToPatternsSet(r,n,s){const a=this._isMatchToPatterns(r,n.positive.all,s);if(!a){return false}const l=this._isMatchToPatterns(r,n.negative.relative,s);if(l){return false}const u=this._isMatchToAbsoluteNegative(r,n.negative.absolute,s);if(u){return false}return true}_isMatchToAbsoluteNegative(r,n,s){if(n.length===0){return false}const l=a.path.makeAbsolute(this._settings.cwd,r);return this._isMatchToPatterns(l,n,s)}_isMatchToPatterns(r,n,s){if(n.length===0){return false}const l=a.pattern.matchAny(r,n);if(!l&&s){return a.pattern.matchAny(r+"/",n)}return l}}n["default"]=EntryFilter},31587:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(36002);class ErrorFilter{constructor(r){this._settings=r}getFilter(){return r=>this._isNonFatalError(r)}_isNonFatalError(r){return a.errno.isEnoentCodeError(r)||this._settings.suppressErrors}}n["default"]=ErrorFilter},47827:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(36002);class Matcher{constructor(r,n,s){this._patterns=r;this._settings=n;this._micromatchOptions=s;this._storage=[];this._fillStorage()}_fillStorage(){for(const r of this._patterns){const n=this._getPatternSegments(r);const s=this._splitSegmentsIntoSections(n);this._storage.push({complete:s.length<=1,pattern:r,segments:n,sections:s})}}_getPatternSegments(r){const n=a.pattern.getPatternParts(r,this._micromatchOptions);return n.map((r=>{const n=a.pattern.isDynamicPattern(r,this._settings);if(!n){return{dynamic:false,pattern:r}}return{dynamic:true,pattern:r,patternRe:a.pattern.makeRe(r,this._micromatchOptions)}}))}_splitSegmentsIntoSections(r){return a.array.splitWhen(r,(r=>r.dynamic&&a.pattern.hasGlobStar(r.pattern)))}}n["default"]=Matcher},5740:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(47827);class PartialMatcher extends a.default{match(r){const n=r.split("/");const s=n.length;const a=this._storage.filter((r=>!r.complete||r.segments.length>s));for(const r of a){const a=r.sections[0];if(!r.complete&&s>a.length){return true}const l=n.every(((n,s)=>{const a=r.segments[s];if(a.dynamic&&a.patternRe.test(n)){return true}if(!a.dynamic&&a.pattern===n){return true}return false}));if(l){return true}}return false}}n["default"]=PartialMatcher},77792:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(73591);const u=s(44285);const d=s(31587);const A=s(57094);class Provider{constructor(r){this._settings=r;this.errorFilter=new d.default(this._settings);this.entryFilter=new u.default(this._settings,this._getMicromatchOptions());this.deepFilter=new l.default(this._settings,this._getMicromatchOptions());this.entryTransformer=new A.default(this._settings)}_getRootDirectory(r){return a.resolve(this._settings.cwd,r.base)}_getReaderOptions(r){const n=r.base==="."?"":r.base;return{basePath:n,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(n,r.positive,r.negative),entryFilter:this.entryFilter.getFilter(r.positive,r.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return{dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:true,strictSlashes:false}}}n["default"]=Provider},61969:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(87);const u=s(77792);class ProviderStream extends u.default{constructor(){super(...arguments);this._reader=new l.default(this._settings)}read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const l=this.api(n,r,s);const u=new a.Readable({objectMode:true,read:()=>{}});l.once("error",(r=>u.emit("error",r))).on("data",(r=>u.emit("data",s.transform(r)))).once("end",(()=>u.emit("end")));u.once("close",(()=>l.destroy()));return u}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderStream},95894:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(20264);const l=s(77792);class ProviderSync extends l.default{constructor(){super(...arguments);this._reader=new a.default(this._settings)}read(r){const n=this._getRootDirectory(r);const s=this._getReaderOptions(r);const a=this.api(n,r,s);return a.map(s.transform)}api(r,n,s){if(n.dynamic){return this._reader.dynamic(r,s)}return this._reader.static(n.patterns,s)}}n["default"]=ProviderSync},57094:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(36002);class EntryTransformer{constructor(r){this._settings=r}getTransformer(){return r=>this._transform(r)}_transform(r){let n=r.path;if(this._settings.absolute){n=a.path.makeAbsolute(this._settings.cwd,n);n=a.path.unixify(n)}if(this._settings.markDirectories&&r.dirent.isDirectory()){n+="/"}if(!this._settings.objectMode){return n}return Object.assign(Object.assign({},r),{path:n})}}n["default"]=EntryTransformer},82907:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(79337);const l=s(91824);const u=s(87);class ReaderAsync extends l.default{constructor(){super(...arguments);this._walkAsync=a.walk;this._readerStream=new u.default(this._settings)}dynamic(r,n){return new Promise(((s,a)=>{this._walkAsync(r,n,((r,n)=>{if(r===null){s(n)}else{a(r)}}))}))}async static(r,n){const s=[];const a=this._readerStream.static(r,n);return new Promise(((r,n)=>{a.once("error",n);a.on("data",(r=>s.push(r)));a.once("end",(()=>r(s)))}))}}n["default"]=ReaderAsync},91824:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(16928);const l=s(91470);const u=s(36002);class Reader{constructor(r){this._settings=r;this._fsStatSettings=new l.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks})}_getFullEntryPath(r){return a.resolve(this._settings.cwd,r)}_makeEntry(r,n){const s={name:n,path:n,dirent:u.fs.createDirentFromStats(n,r)};if(this._settings.stats){s.stats=r}return s}_isFatalError(r){return!u.errno.isEnoentCodeError(r)&&!this._settings.suppressErrors}}n["default"]=Reader},87:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(2203);const l=s(91470);const u=s(79337);const d=s(91824);class ReaderStream extends d.default{constructor(){super(...arguments);this._walkStream=u.walkStream;this._stat=l.stat}dynamic(r,n){return this._walkStream(r,n)}static(r,n){const s=r.map(this._getFullEntryPath,this);const l=new a.PassThrough({objectMode:true});l._write=(a,u,d)=>this._getEntry(s[a],r[a],n).then((r=>{if(r!==null&&n.entryFilter(r)){l.push(r)}if(a===s.length-1){l.end()}d()})).catch(d);for(let r=0;rthis._makeEntry(r,n))).catch((r=>{if(s.errorFilter(r)){return null}throw r}))}_getStat(r){return new Promise(((n,s)=>{this._stat(r,this._fsStatSettings,((r,a)=>r===null?n(a):s(r)))}))}}n["default"]=ReaderStream},20264:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});const a=s(91470);const l=s(79337);const u=s(91824);class ReaderSync extends u.default{constructor(){super(...arguments);this._walkSync=l.walkSync;this._statSync=a.statSync}dynamic(r,n){return this._walkSync(r,n)}static(r,n){const s=[];for(const a of r){const r=this._getFullEntryPath(a);const l=this._getEntry(r,a,n);if(l===null||!n.entryFilter(l)){continue}s.push(l)}return s}_getEntry(r,n,s){try{const s=this._getStat(r);return this._makeEntry(s,n)}catch(r){if(s.errorFilter(r)){return null}throw r}}_getStat(r){return this._statSync(r,this._fsStatSettings)}}n["default"]=ReaderSync},879:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;const a=s(79896);const l=s(70857);const u=Math.max(l.cpus().length,1);n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:a.lstat,lstatSync:a.lstatSync,stat:a.stat,statSync:a.statSync,readdir:a.readdir,readdirSync:a.readdirSync};class Settings{constructor(r={}){this._options=r;this.absolute=this._getValue(this._options.absolute,false);this.baseNameMatch=this._getValue(this._options.baseNameMatch,false);this.braceExpansion=this._getValue(this._options.braceExpansion,true);this.caseSensitiveMatch=this._getValue(this._options.caseSensitiveMatch,true);this.concurrency=this._getValue(this._options.concurrency,u);this.cwd=this._getValue(this._options.cwd,process.cwd());this.deep=this._getValue(this._options.deep,Infinity);this.dot=this._getValue(this._options.dot,false);this.extglob=this._getValue(this._options.extglob,true);this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,true);this.fs=this._getFileSystemMethods(this._options.fs);this.globstar=this._getValue(this._options.globstar,true);this.ignore=this._getValue(this._options.ignore,[]);this.markDirectories=this._getValue(this._options.markDirectories,false);this.objectMode=this._getValue(this._options.objectMode,false);this.onlyDirectories=this._getValue(this._options.onlyDirectories,false);this.onlyFiles=this._getValue(this._options.onlyFiles,true);this.stats=this._getValue(this._options.stats,false);this.suppressErrors=this._getValue(this._options.suppressErrors,false);this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,false);this.unique=this._getValue(this._options.unique,true);if(this.onlyDirectories){this.onlyFiles=false}if(this.stats){this.objectMode=true}this.ignore=[].concat(this.ignore)}_getValue(r,n){return r===undefined?n:r}_getFileSystemMethods(r={}){return Object.assign(Object.assign({},n.DEFAULT_FILE_SYSTEM_ADAPTER),r)}}n["default"]=Settings},55711:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.splitWhen=n.flatten=void 0;function flatten(r){return r.reduce(((r,n)=>[].concat(r,n)),[])}n.flatten=flatten;function splitWhen(r,n){const s=[[]];let a=0;for(const l of r){if(n(l)){a++;s[a]=[]}else{s[a].push(l)}}return s}n.splitWhen=splitWhen},9718:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isEnoentCodeError=void 0;function isEnoentCodeError(r){return r.code==="ENOENT"}n.isEnoentCodeError=isEnoentCodeError},66979:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.createDirentFromStats=void 0;class DirentFromStats{constructor(r,n){this.name=r;this.isBlockDevice=n.isBlockDevice.bind(n);this.isCharacterDevice=n.isCharacterDevice.bind(n);this.isDirectory=n.isDirectory.bind(n);this.isFIFO=n.isFIFO.bind(n);this.isFile=n.isFile.bind(n);this.isSocket=n.isSocket.bind(n);this.isSymbolicLink=n.isSymbolicLink.bind(n)}}function createDirentFromStats(r,n){return new DirentFromStats(r,n)}n.createDirentFromStats=createDirentFromStats},36002:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.string=n.stream=n.pattern=n.path=n.fs=n.errno=n.array=void 0;const a=s(55711);n.array=a;const l=s(9718);n.errno=l;const u=s(66979);n.fs=u;const d=s(9283);n.path=d;const A=s(61304);n.pattern=A;const p=s(20536);n.stream=p;const f=s(57641);n.string=f},9283:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.convertPosixPathToPattern=n.convertWindowsPathToPattern=n.convertPathToPattern=n.escapePosixPath=n.escapeWindowsPath=n.escape=n.removeLeadingDotSegment=n.makeAbsolute=n.unixify=void 0;const a=s(70857);const l=s(16928);const u=a.platform()==="win32";const d=2;const A=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;const p=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g;const f=/^\\\\([.?])/;const g=/\\(?![!()+@[\]{}])/g;function unixify(r){return r.replace(/\\/g,"/")}n.unixify=unixify;function makeAbsolute(r,n){return l.resolve(r,n)}n.makeAbsolute=makeAbsolute;function removeLeadingDotSegment(r){if(r.charAt(0)==="."){const n=r.charAt(1);if(n==="/"||n==="\\"){return r.slice(d)}}return r}n.removeLeadingDotSegment=removeLeadingDotSegment;n.escape=u?escapeWindowsPath:escapePosixPath;function escapeWindowsPath(r){return r.replace(p,"\\$2")}n.escapeWindowsPath=escapeWindowsPath;function escapePosixPath(r){return r.replace(A,"\\$2")}n.escapePosixPath=escapePosixPath;n.convertPathToPattern=u?convertWindowsPathToPattern:convertPosixPathToPattern;function convertWindowsPathToPattern(r){return escapeWindowsPath(r).replace(f,"//$1").replace(g,"/")}n.convertWindowsPathToPattern=convertWindowsPathToPattern;function convertPosixPathToPattern(r){return escapePosixPath(r)}n.convertPosixPathToPattern=convertPosixPathToPattern},61304:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.isAbsolute=n.partitionAbsoluteAndRelative=n.removeDuplicateSlashes=n.matchAny=n.convertPatternsToRe=n.makeRe=n.getPatternParts=n.expandBraceExpansion=n.expandPatternsWithBraceExpansion=n.isAffectDepthOfReadingPattern=n.endsWithSlashGlobStar=n.hasGlobStar=n.getBaseDirectory=n.isPatternRelatedToParentDirectory=n.getPatternsOutsideCurrentDirectory=n.getPatternsInsideCurrentDirectory=n.getPositivePatterns=n.getNegativePatterns=n.isPositivePattern=n.isNegativePattern=n.convertToNegativePattern=n.convertToPositivePattern=n.isDynamicPattern=n.isStaticPattern=void 0;const a=s(16928);const l=s(98505);const u=s(98785);const d="**";const A="\\";const p=/[*?]|^!/;const f=/\[[^[]*]/;const g=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/;const y=/[!*+?@]\([^(]*\)/;const b=/,|\.\./;const C=/(?!^)\/{2,}/g;function isStaticPattern(r,n={}){return!isDynamicPattern(r,n)}n.isStaticPattern=isStaticPattern;function isDynamicPattern(r,n={}){if(r===""){return false}if(n.caseSensitiveMatch===false||r.includes(A)){return true}if(p.test(r)||f.test(r)||g.test(r)){return true}if(n.extglob!==false&&y.test(r)){return true}if(n.braceExpansion!==false&&hasBraceExpansion(r)){return true}return false}n.isDynamicPattern=isDynamicPattern;function hasBraceExpansion(r){const n=r.indexOf("{");if(n===-1){return false}const s=r.indexOf("}",n+1);if(s===-1){return false}const a=r.slice(n,s);return b.test(a)}function convertToPositivePattern(r){return isNegativePattern(r)?r.slice(1):r}n.convertToPositivePattern=convertToPositivePattern;function convertToNegativePattern(r){return"!"+r}n.convertToNegativePattern=convertToNegativePattern;function isNegativePattern(r){return r.startsWith("!")&&r[1]!=="("}n.isNegativePattern=isNegativePattern;function isPositivePattern(r){return!isNegativePattern(r)}n.isPositivePattern=isPositivePattern;function getNegativePatterns(r){return r.filter(isNegativePattern)}n.getNegativePatterns=getNegativePatterns;function getPositivePatterns(r){return r.filter(isPositivePattern)}n.getPositivePatterns=getPositivePatterns;function getPatternsInsideCurrentDirectory(r){return r.filter((r=>!isPatternRelatedToParentDirectory(r)))}n.getPatternsInsideCurrentDirectory=getPatternsInsideCurrentDirectory;function getPatternsOutsideCurrentDirectory(r){return r.filter(isPatternRelatedToParentDirectory)}n.getPatternsOutsideCurrentDirectory=getPatternsOutsideCurrentDirectory;function isPatternRelatedToParentDirectory(r){return r.startsWith("..")||r.startsWith("./..")}n.isPatternRelatedToParentDirectory=isPatternRelatedToParentDirectory;function getBaseDirectory(r){return l(r,{flipBackslashes:false})}n.getBaseDirectory=getBaseDirectory;function hasGlobStar(r){return r.includes(d)}n.hasGlobStar=hasGlobStar;function endsWithSlashGlobStar(r){return r.endsWith("/"+d)}n.endsWithSlashGlobStar=endsWithSlashGlobStar;function isAffectDepthOfReadingPattern(r){const n=a.basename(r);return endsWithSlashGlobStar(r)||isStaticPattern(n)}n.isAffectDepthOfReadingPattern=isAffectDepthOfReadingPattern;function expandPatternsWithBraceExpansion(r){return r.reduce(((r,n)=>r.concat(expandBraceExpansion(n))),[])}n.expandPatternsWithBraceExpansion=expandPatternsWithBraceExpansion;function expandBraceExpansion(r){const n=u.braces(r,{expand:true,nodupes:true,keepEscaping:true});n.sort(((r,n)=>r.length-n.length));return n.filter((r=>r!==""))}n.expandBraceExpansion=expandBraceExpansion;function getPatternParts(r,n){let{parts:s}=u.scan(r,Object.assign(Object.assign({},n),{parts:true}));if(s.length===0){s=[r]}if(s[0].startsWith("/")){s[0]=s[0].slice(1);s.unshift("")}return s}n.getPatternParts=getPatternParts;function makeRe(r,n){return u.makeRe(r,n)}n.makeRe=makeRe;function convertPatternsToRe(r,n){return r.map((r=>makeRe(r,n)))}n.convertPatternsToRe=convertPatternsToRe;function matchAny(r,n){return n.some((n=>n.test(r)))}n.matchAny=matchAny;function removeDuplicateSlashes(r){return r.replace(C,"/")}n.removeDuplicateSlashes=removeDuplicateSlashes;function partitionAbsoluteAndRelative(r){const n=[];const s=[];for(const a of r){if(isAbsolute(a)){n.push(a)}else{s.push(a)}}return[n,s]}n.partitionAbsoluteAndRelative=partitionAbsoluteAndRelative;function isAbsolute(r){return a.isAbsolute(r)}n.isAbsolute=isAbsolute},20536:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.merge=void 0;const a=s(60754);function merge(r){const n=a(r);r.forEach((r=>{r.once("error",(r=>n.emit("error",r)))}));n.once("close",(()=>propagateCloseEventToSources(r)));n.once("end",(()=>propagateCloseEventToSources(r)));return n}n.merge=merge;function propagateCloseEventToSources(r){r.forEach((r=>r.emit("close")))}},57641:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.isEmpty=n.isString=void 0;function isString(r){return typeof r==="string"}n.isString=isString;function isEmpty(r){return r===""}n.isEmpty=isEmpty},70877:(r,n,s)=>{ /*! * fill-range * * Copyright (c) 2014-present, Jon Schlinkert. * Licensed under the MIT License. */ -const a=s(39023);const l=s(29947);const isObject=r=>r!==null&&typeof r==="object"&&!Array.isArray(r);const transform=r=>n=>r===true?Number(n):String(n);const isValidValue=r=>typeof r==="number"||typeof r==="string"&&r!=="";const isNumber=r=>Number.isInteger(+r);const zeros=r=>{let n=`${r}`;let s=-1;if(n[0]==="-")n=n.slice(1);if(n==="0")return false;while(n[++s]==="0");return s>0};const stringify=(r,n,s)=>{if(typeof r==="string"||typeof n==="string"){return true}return s.stringify===true};const pad=(r,n,s)=>{if(n>0){let s=r[0]==="-"?"-":"";if(s)r=r.slice(1);r=s+r.padStart(s?n-1:n,"0")}if(s===false){return String(r)}return r};const toMaxLen=(r,n)=>{let s=r[0]==="-"?"-":"";if(s){r=r.slice(1);n--}while(r.length{r.negatives.sort(((r,n)=>rn?1:0));r.positives.sort(((r,n)=>rn?1:0));let a=n.capture?"":"?:";let l="";let u="";let d;if(r.positives.length){l=r.positives.map((r=>toMaxLen(String(r),s))).join("|")}if(r.negatives.length){u=`-(${a}${r.negatives.map((r=>toMaxLen(String(r),s))).join("|")})`}if(l&&u){d=`${l}|${u}`}else{d=l||u}if(n.wrap){return`(${a}${d})`}return d};const toRange=(r,n,s,a)=>{if(s){return l(r,n,{wrap:false,...a})}let u=String.fromCharCode(r);if(r===n)return u;let d=String.fromCharCode(n);return`[${u}-${d}]`};const toRegex=(r,n,s)=>{if(Array.isArray(r)){let n=s.wrap===true;let a=s.capture?"":"?:";return n?`(${a}${r.join("|")})`:r.join("|")}return l(r,n,s)};const rangeError=(...r)=>new RangeError("Invalid range arguments: "+a.inspect(...r));const invalidRange=(r,n,s)=>{if(s.strictRanges===true)throw rangeError([r,n]);return[]};const invalidStep=(r,n)=>{if(n.strictRanges===true){throw new TypeError(`Expected step "${r}" to be a number`)}return[]};const fillNumbers=(r,n,s=1,a={})=>{let l=Number(r);let u=Number(n);if(!Number.isInteger(l)||!Number.isInteger(u)){if(a.strictRanges===true)throw rangeError([r,n]);return[]}if(l===0)l=0;if(u===0)u=0;let d=l>u;let A=String(r);let p=String(n);let f=String(s);s=Math.max(Math.abs(s),1);let g=zeros(A)||zeros(p)||zeros(f);let y=g?Math.max(A.length,p.length,f.length):0;let b=g===false&&stringify(r,n,a)===false;let C=a.transform||transform(b);if(a.toRegex&&s===1){return toRange(toMaxLen(r,y),toMaxLen(n,y),true,a)}let w={negatives:[],positives:[]};let push=r=>w[r<0?"negatives":"positives"].push(Math.abs(r));let B=[];let I=0;while(d?l>=u:l<=u){if(a.toRegex===true&&s>1){push(l)}else{B.push(pad(C(l,I),y,b))}l=d?l-s:l+s;I++}if(a.toRegex===true){return s>1?toSequence(w,a,y):toRegex(B,null,{wrap:false,...a})}return B};const fillLetters=(r,n,s=1,a={})=>{if(!isNumber(r)&&r.length>1||!isNumber(n)&&n.length>1){return invalidRange(r,n,a)}let l=a.transform||(r=>String.fromCharCode(r));let u=`${r}`.charCodeAt(0);let d=`${n}`.charCodeAt(0);let A=u>d;let p=Math.min(u,d);let f=Math.max(u,d);if(a.toRegex&&s===1){return toRange(p,f,false,a)}let g=[];let y=0;while(A?u>=d:u<=d){g.push(l(u,y));u=A?u-s:u+s;y++}if(a.toRegex===true){return toRegex(g,null,{wrap:false,options:a})}return g};const fill=(r,n,s,a={})=>{if(n==null&&isValidValue(r)){return[r]}if(!isValidValue(r)||!isValidValue(n)){return invalidRange(r,n,a)}if(typeof s==="function"){return fill(r,n,1,{transform:s})}if(isObject(s)){return fill(r,n,0,s)}let l={...a};if(l.capture===true)l.wrap=true;s=s||l.step||1;if(!isNumber(s)){if(s!=null&&!isObject(s))return invalidStep(s,l);return fill(r,n,1,s)}if(isNumber(r)&&isNumber(n)){return fillNumbers(r,n,s,l)}return fillLetters(r,n,Math.max(Math.abs(s),1),l)};r.exports=fill},71511:(r,n,s)=>{var a=s(76722);var l=s(16928).posix.dirname;var u=s(70857).platform()==="win32";var d="/";var A=/\\/g;var p=/[\{\[].*[\}\]]$/;var f=/(^|[^\\])([\{\[]|\([^\)]+$)/;var g=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function globParent(r,n){var s=Object.assign({flipBackslashes:true},n);if(s.flipBackslashes&&u&&r.indexOf(d)<0){r=r.replace(A,d)}if(p.test(r)){r+=d}r+="a";do{r=l(r)}while(a(r)||f.test(r));return r.replace(g,"$1")}},17340:r=>{r.exports=clone;var n=Object.getPrototypeOf||function(r){return r.__proto__};function clone(r){if(r===null||typeof r!=="object")return r;if(r instanceof Object)var s={__proto__:n(r)};else var s=Object.create(null);Object.getOwnPropertyNames(r).forEach((function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(r,n))}));return s}},6768:(r,n,s)=>{var a=s(79896);var l=s(27805);var u=s(90366);var d=s(17340);var A=s(39023);var p;var f;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){p=Symbol.for("graceful-fs.queue");f=Symbol.for("graceful-fs.previous")}else{p="___graceful-fs.queue";f="___graceful-fs.previous"}function noop(){}function publishQueue(r,n){Object.defineProperty(r,p,{get:function(){return n}})}var g=noop;if(A.debuglog)g=A.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var r=A.format.apply(A,arguments);r="GFS4: "+r.split(/\n/).join("\nGFS4: ");console.error(r)};if(!a[p]){var y=global[p]||[];publishQueue(a,y);a.close=function(r){function close(n,s){return r.call(a,n,(function(r){if(!r){resetQueue()}if(typeof s==="function")s.apply(this,arguments)}))}Object.defineProperty(close,f,{value:r});return close}(a.close);a.closeSync=function(r){function closeSync(n){r.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,f,{value:r});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(a[p]);s(42613).equal(a[p].length,0)}))}}if(!global[p]){publishQueue(global,a[p])}r.exports=patch(d(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){r.exports=patch(a);a.__patched=true}function patch(r){l(r);r.gracefulify=patch;r.createReadStream=createReadStream;r.createWriteStream=createWriteStream;var n=r.readFile;r.readFile=readFile;function readFile(r,s,a){if(typeof s==="function")a=s,s=null;return go$readFile(r,s,a);function go$readFile(r,s,a,l){return n(r,s,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$readFile,[r,s,a],n,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var s=r.writeFile;r.writeFile=writeFile;function writeFile(r,n,a,l){if(typeof a==="function")l=a,a=null;return go$writeFile(r,n,a,l);function go$writeFile(r,n,a,l,u){return s(r,n,a,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$writeFile,[r,n,a,l],s,u||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var a=r.appendFile;if(a)r.appendFile=appendFile;function appendFile(r,n,s,l){if(typeof s==="function")l=s,s=null;return go$appendFile(r,n,s,l);function go$appendFile(r,n,s,l,u){return a(r,n,s,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[r,n,s,l],a,u||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var d=r.copyFile;if(d)r.copyFile=copyFile;function copyFile(r,n,s,a){if(typeof s==="function"){a=s;s=0}return go$copyFile(r,n,s,a);function go$copyFile(r,n,s,a,l){return d(r,n,s,(function(u){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$copyFile,[r,n,s,a],u,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var A=r.readdir;r.readdir=readdir;var p=/^v[0-5]\./;function readdir(r,n,s){if(typeof n==="function")s=n,n=null;var a=p.test(process.version)?function go$readdir(r,n,s,a){return A(r,fs$readdirCallback(r,n,s,a))}:function go$readdir(r,n,s,a){return A(r,n,fs$readdirCallback(r,n,s,a))};return a(r,n,s);function fs$readdirCallback(r,n,s,l){return function(u,d){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([a,[r,n,s],u,l||Date.now(),Date.now()]);else{if(d&&d.sort)d.sort();if(typeof s==="function")s.call(this,u,d)}}}}if(process.version.substr(0,4)==="v0.8"){var f=u(r);ReadStream=f.ReadStream;WriteStream=f.WriteStream}var g=r.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var y=r.WriteStream;if(y){WriteStream.prototype=Object.create(y.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(r,"ReadStream",{get:function(){return ReadStream},set:function(r){ReadStream=r},enumerable:true,configurable:true});Object.defineProperty(r,"WriteStream",{get:function(){return WriteStream},set:function(r){WriteStream=r},enumerable:true,configurable:true});var b=ReadStream;Object.defineProperty(r,"FileReadStream",{get:function(){return b},set:function(r){b=r},enumerable:true,configurable:true});var C=WriteStream;Object.defineProperty(r,"FileWriteStream",{get:function(){return C},set:function(r){C=r},enumerable:true,configurable:true});function ReadStream(r,n){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(n,s){if(n){if(r.autoClose)r.destroy();r.emit("error",n)}else{r.fd=s;r.emit("open",s);r.read()}}))}function WriteStream(r,n){if(this instanceof WriteStream)return y.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(n,s){if(n){r.destroy();r.emit("error",n)}else{r.fd=s;r.emit("open",s)}}))}function createReadStream(n,s){return new r.ReadStream(n,s)}function createWriteStream(n,s){return new r.WriteStream(n,s)}var w=r.open;r.open=open;function open(r,n,s,a){if(typeof s==="function")a=s,s=null;return go$open(r,n,s,a);function go$open(r,n,s,a,l){return w(r,n,s,(function(u,d){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$open,[r,n,s,a],u,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return r}function enqueue(r){g("ENQUEUE",r[0].name,r[1]);a[p].push(r);retry()}var b;function resetQueue(){var r=Date.now();for(var n=0;n2){a[p][n][3]=r;a[p][n][4]=r}}retry()}function retry(){clearTimeout(b);b=undefined;if(a[p].length===0)return;var r=a[p].shift();var n=r[0];var s=r[1];var l=r[2];var u=r[3];var d=r[4];if(u===undefined){g("RETRY",n.name,s);n.apply(null,s)}else if(Date.now()-u>=6e4){g("TIMEOUT",n.name,s);var A=s.pop();if(typeof A==="function")A.call(null,l)}else{var f=Date.now()-d;var y=Math.max(d-u,1);var C=Math.min(y*1.2,100);if(f>=C){g("RETRY",n.name,s);n.apply(null,s.concat([u]))}else{a[p].push(r)}}if(b===undefined){b=setTimeout(retry,0)}}},90366:(r,n,s)=>{var a=s(2203).Stream;r.exports=legacy;function legacy(r){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(n,s){if(!(this instanceof ReadStream))return new ReadStream(n,s);a.call(this);var l=this;this.path=n;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;s=s||{};var u=Object.keys(s);for(var d=0,A=u.length;dthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){l._read()}));return}r.open(this.path,this.flags,this.mode,(function(r,n){if(r){l.emit("error",r);l.readable=false;return}l.fd=n;l.emit("open",n);l._read()}))}function WriteStream(n,s){if(!(this instanceof WriteStream))return new WriteStream(n,s);a.call(this);this.path=n;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;s=s||{};var l=Object.keys(s);for(var u=0,d=l.length;u= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=r.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},27805:(r,n,s)=>{var a=s(49140);var l=process.cwd;var u=null;var d=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!u)u=l.call(process);return u};try{process.cwd()}catch(r){}if(typeof process.chdir==="function"){var A=process.chdir;process.chdir=function(r){u=null;A.call(process,r)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,A)}r.exports=patch;function patch(r){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(r)}if(!r.lutimes){patchLutimes(r)}r.chown=chownFix(r.chown);r.fchown=chownFix(r.fchown);r.lchown=chownFix(r.lchown);r.chmod=chmodFix(r.chmod);r.fchmod=chmodFix(r.fchmod);r.lchmod=chmodFix(r.lchmod);r.chownSync=chownFixSync(r.chownSync);r.fchownSync=chownFixSync(r.fchownSync);r.lchownSync=chownFixSync(r.lchownSync);r.chmodSync=chmodFixSync(r.chmodSync);r.fchmodSync=chmodFixSync(r.fchmodSync);r.lchmodSync=chmodFixSync(r.lchmodSync);r.stat=statFix(r.stat);r.fstat=statFix(r.fstat);r.lstat=statFix(r.lstat);r.statSync=statFixSync(r.statSync);r.fstatSync=statFixSync(r.fstatSync);r.lstatSync=statFixSync(r.lstatSync);if(r.chmod&&!r.lchmod){r.lchmod=function(r,n,s){if(s)process.nextTick(s)};r.lchmodSync=function(){}}if(r.chown&&!r.lchown){r.lchown=function(r,n,s,a){if(a)process.nextTick(a)};r.lchownSync=function(){}}if(d==="win32"){r.rename=typeof r.rename!=="function"?r.rename:function(n){function rename(s,a,l){var u=Date.now();var d=0;n(s,a,(function CB(A){if(A&&(A.code==="EACCES"||A.code==="EPERM"||A.code==="EBUSY")&&Date.now()-u<6e4){setTimeout((function(){r.stat(a,(function(r,u){if(r&&r.code==="ENOENT")n(s,a,CB);else l(A)}))}),d);if(d<100)d+=10;return}if(l)l(A)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,n);return rename}(r.rename)}r.read=typeof r.read!=="function"?r.read:function(n){function read(s,a,l,u,d,A){var p;if(A&&typeof A==="function"){var f=0;p=function(g,y,b){if(g&&g.code==="EAGAIN"&&f<10){f++;return n.call(r,s,a,l,u,d,p)}A.apply(this,arguments)}}return n.call(r,s,a,l,u,d,p)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,n);return read}(r.read);r.readSync=typeof r.readSync!=="function"?r.readSync:function(n){return function(s,a,l,u,d){var A=0;while(true){try{return n.call(r,s,a,l,u,d)}catch(r){if(r.code==="EAGAIN"&&A<10){A++;continue}throw r}}}}(r.readSync);function patchLchmod(r){r.lchmod=function(n,s,l){r.open(n,a.O_WRONLY|a.O_SYMLINK,s,(function(n,a){if(n){if(l)l(n);return}r.fchmod(a,s,(function(n){r.close(a,(function(r){if(l)l(n||r)}))}))}))};r.lchmodSync=function(n,s){var l=r.openSync(n,a.O_WRONLY|a.O_SYMLINK,s);var u=true;var d;try{d=r.fchmodSync(l,s);u=false}finally{if(u){try{r.closeSync(l)}catch(r){}}else{r.closeSync(l)}}return d}}function patchLutimes(r){if(a.hasOwnProperty("O_SYMLINK")&&r.futimes){r.lutimes=function(n,s,l,u){r.open(n,a.O_SYMLINK,(function(n,a){if(n){if(u)u(n);return}r.futimes(a,s,l,(function(n){r.close(a,(function(r){if(u)u(n||r)}))}))}))};r.lutimesSync=function(n,s,l){var u=r.openSync(n,a.O_SYMLINK);var d;var A=true;try{d=r.futimesSync(u,s,l);A=false}finally{if(A){try{r.closeSync(u)}catch(r){}}else{r.closeSync(u)}}return d}}else if(r.futimes){r.lutimes=function(r,n,s,a){if(a)process.nextTick(a)};r.lutimesSync=function(){}}}function chmodFix(n){if(!n)return n;return function(s,a,l){return n.call(r,s,a,(function(r){if(chownErOk(r))r=null;if(l)l.apply(this,arguments)}))}}function chmodFixSync(n){if(!n)return n;return function(s,a){try{return n.call(r,s,a)}catch(r){if(!chownErOk(r))throw r}}}function chownFix(n){if(!n)return n;return function(s,a,l,u){return n.call(r,s,a,l,(function(r){if(chownErOk(r))r=null;if(u)u.apply(this,arguments)}))}}function chownFixSync(n){if(!n)return n;return function(s,a,l){try{return n.call(r,s,a,l)}catch(r){if(!chownErOk(r))throw r}}}function statFix(n){if(!n)return n;return function(s,a,l){if(typeof a==="function"){l=a;a=null}function callback(r,n){if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}if(l)l.apply(this,arguments)}return a?n.call(r,s,a,callback):n.call(r,s,callback)}}function statFixSync(n){if(!n)return n;return function(s,a){var l=a?n.call(r,s,a):n.call(r,s);if(l){if(l.uid<0)l.uid+=4294967296;if(l.gid<0)l.gid+=4294967296}return l}}function chownErOk(r){if(!r)return true;if(r.code==="ENOSYS")return true;var n=!process.getuid||process.getuid()!==0;if(n){if(r.code==="EINVAL"||r.code==="EPERM")return true}return false}}},74249:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.HttpProxyAgent=void 0;const A=u(s(69278));const p=u(s(64756));const f=d(s(18263));const g=s(24434);const y=s(10646);const b=s(87016);const C=(0,f.default)("http-proxy-agent");class HttpProxyAgent extends y.Agent{constructor(r,n){super(n);this.proxy=typeof r==="string"?new b.URL(r):r;this.proxyHeaders=n?.headers??{};C("Creating new HttpProxyAgent instance: %o",this.proxy.href);const s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...n?omit(n,"headers"):null,host:s,port:a}}addRequest(r,n){r._header=null;this.setRequestProps(r,n);super.addRequest(r,n)}setRequestProps(r,n){const{proxy:s}=this;const a=n.secureEndpoint?"https:":"http:";const l=r.getHeader("host")||"localhost";const u=`${a}//${l}`;const d=new b.URL(r.path,u);if(n.port!==80){d.port=String(n.port)}r.path=String(d);const A=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){const r=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}if(!A["Proxy-Connection"]){A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const n of Object.keys(A)){const s=A[n];if(s){r.setHeader(n,s)}}}async connect(r,n){r._header=null;if(!r.path.includes("://")){this.setRequestProps(r,n)}let s;let a;C("Regenerating stored HTTP header string for request");r._implicitHeader();if(r.outputData&&r.outputData.length>0){C("Patching connection write() output buffer with updated header");s=r.outputData[0].data;a=s.indexOf("\r\n\r\n")+4;r.outputData[0].data=r._header+s.substring(a);C("Output buffer: %o",r.outputData[0].data)}let l;if(this.proxy.protocol==="https:"){C("Creating `tls.Socket`: %o",this.connectOpts);l=p.connect(this.connectOpts)}else{C("Creating `net.Socket`: %o",this.connectOpts);l=A.connect(this.connectOpts)}await(0,g.once)(l,"connect");return l}}HttpProxyAgent.protocols=["http","https"];n.HttpProxyAgent=HttpProxyAgent;function omit(r,...n){const s={};let a;for(a in r){if(!n.includes(a)){s[a]=r[a]}}return s}},31475:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.HttpsProxyAgent=void 0;const A=u(s(69278));const p=u(s(64756));const f=d(s(42613));const g=d(s(18263));const y=s(10646);const b=s(87016);const C=s(20625);const w=(0,g.default)("https-proxy-agent");const setServernameFromNonIpHost=r=>{if(r.servername===undefined&&r.host&&!A.isIP(r.host)){return{...r,servername:r.host}}return r};class HttpsProxyAgent extends y.Agent{constructor(r,n){super(n);this.options={path:undefined};this.proxy=typeof r==="string"?new b.URL(r):r;this.proxyHeaders=n?.headers??{};w("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?omit(n,"headers"):null,host:s,port:a}}async connect(r,n){const{proxy:s}=this;if(!n.host){throw new TypeError('No "host" provided')}let a;if(s.protocol==="https:"){w("Creating `tls.Socket`: %o",this.connectOpts);a=p.connect(setServernameFromNonIpHost(this.connectOpts))}else{w("Creating `net.Socket`: %o",this.connectOpts);a=A.connect(this.connectOpts)}const l=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const u=A.isIPv6(n.host)?`[${n.host}]`:n.host;let d=`CONNECT ${u}:${n.port} HTTP/1.1\r\n`;if(s.username||s.password){const r=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}l.Host=`${u}:${n.port}`;if(!l["Proxy-Connection"]){l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const r of Object.keys(l)){d+=`${r}: ${l[r]}\r\n`}const g=(0,C.parseProxyResponse)(a);a.write(`${d}\r\n`);const{connect:y,buffered:b}=await g;r.emit("proxyConnect",y);this.emit("proxyConnect",y,r);if(y.statusCode===200){r.once("socket",resume);if(n.secureEndpoint){w("Upgrading socket connection to TLS");return p.connect({...omit(setServernameFromNonIpHost(n),"host","path","port"),socket:a})}return a}a.destroy();const B=new A.Socket({writable:false});B.readable=true;r.once("socket",(r=>{w("Replaying proxy buffer for failed request");(0,f.default)(r.listenerCount("data")>0);r.push(b);r.push(null)}));return B}}HttpsProxyAgent.protocols=["http","https"];n.HttpsProxyAgent=HttpsProxyAgent;function resume(r){r.resume()}function omit(r,...n){const s={};let a;for(a in r){if(!n.includes(a)){s[a]=r[a]}}return s}},20625:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.parseProxyResponse=void 0;const l=a(s(18263));const u=(0,l.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(r){return new Promise(((n,s)=>{let a=0;const l=[];function read(){const n=r.read();if(n)ondata(n);else r.once("readable",read)}function cleanup(){r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("readable",read)}function onend(){cleanup();u("onend");s(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(r){cleanup();u("onerror %o",r);s(r)}function ondata(d){l.push(d);a+=d.length;const A=Buffer.concat(l,a);const p=A.indexOf("\r\n\r\n");if(p===-1){u("have not received end of HTTP headers yet...");read();return}const f=A.slice(0,p).toString("ascii").split("\r\n");const g=f.shift();if(!g){r.destroy();return s(new Error("No header received from proxy CONNECT response"))}const y=g.split(" ");const b=+y[1];const C=y.slice(2).join(" ");const w={};for(const n of f){if(!n)continue;const a=n.indexOf(":");if(a===-1){r.destroy();return s(new Error(`Invalid header from proxy CONNECT response: "${n}"`))}const l=n.slice(0,a).toLowerCase();const u=n.slice(a+1).trimStart();const d=w[l];if(typeof d==="string"){w[l]=[d,u]}else if(Array.isArray(d)){d.push(u)}else{w[l]=u}}u("got proxy server response: %o %o",g,w);cleanup();n({connect:{statusCode:b,statusText:C,headers:w},buffered:A})}r.on("error",onerror);r.on("end",onend);read()}))}n.parseProxyResponse=parseProxyResponse},94877:r=>{function makeArray(r){return Array.isArray(r)?r:[r]}const n=undefined;const s="";const a=" ";const l="\\";const u=/^\s+$/;const d=/(?:[^\\]|^)\\$/;const A=/^\\!/;const p=/^\\#/;const f=/\r?\n/g;const g=/^\.{0,2}\/|^\.{1,2}$/;const y=/\/$/;const b="/";let C="node-ignore";if(typeof Symbol!=="undefined"){C=Symbol.for("node-ignore")}const w=C;const define=(r,n,s)=>{Object.defineProperty(r,n,{value:s});return s};const B=/([0-z])-([0-z])/g;const RETURN_FALSE=()=>false;const sanitizeRange=r=>r.replace(B,((r,n,a)=>n.charCodeAt(0)<=a.charCodeAt(0)?r:s));const cleanRangeBackSlash=r=>{const{length:n}=r;return r.slice(0,n-n%2)};const I=[[/^\uFEFF/,()=>s],[/((?:\\\\)*?)(\\?\s+)$/,(r,n,l)=>n+(l.indexOf("\\")===0?a:s)],[/(\\+?)\s/g,(r,n)=>{const{length:s}=n;return n.slice(0,s-s%2)+a}],[/[\\$.|*+(){^]/g,r=>`\\${r}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(r,n,s)=>n+6{const a=s.replace(/\\\*/g,"[^\\/]*");return n+a}],[/\\\\\\(?=[$.|*+(){^])/g,()=>l],[/\\\\/g,()=>l],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(r,n,s,a,u)=>n===l?`\\[${s}${cleanRangeBackSlash(a)}${u}`:u==="]"?a.length%2===0?`[${sanitizeRange(s)}${a}]`:"[]":"[]"],[/(?:[^*])$/,r=>/\/$/.test(r)?`${r}$`:`${r}(?=$|\\/$)`]];const S=/(^|\\\/)?\\\*$/;const Q="regex";const v="checkRegex";const R="_";const D={[Q](r,n){const s=n?`${n}[^/]+`:"[^/]*";return`${s}(?=$|\\/$)`},[v](r,n){const s=n?`${n}[^/]*`:"[^/]*";return`${s}(?=$|\\/$)`}};const makeRegexPrefix=r=>I.reduce(((n,[s,a])=>n.replace(s,a.bind(r))),r);const isString=r=>typeof r==="string";const checkPattern=r=>r&&isString(r)&&!u.test(r)&&!d.test(r)&&r.indexOf("#")!==0;const splitPattern=r=>r.split(f).filter(Boolean);class IgnoreRule{constructor(r,n,s,a,l,u){this.pattern=r;this.mark=n;this.negative=l;define(this,"body",s);define(this,"ignoreCase",a);define(this,"regexPrefix",u)}get regex(){const r=R+Q;if(this[r]){return this[r]}return this._make(Q,r)}get checkRegex(){const r=R+v;if(this[r]){return this[r]}return this._make(v,r)}_make(r,n){const s=this.regexPrefix.replace(S,D[r]);const a=this.ignoreCase?new RegExp(s,"i"):new RegExp(s);return define(this,n,a)}}const createRule=({pattern:r,mark:n},s)=>{let a=false;let l=r;if(l.indexOf("!")===0){a=true;l=l.substr(1)}l=l.replace(A,"!").replace(p,"#");const u=makeRegexPrefix(l);return new IgnoreRule(r,n,l,s,a,u)};class RuleManager{constructor(r){this._ignoreCase=r;this._rules=[]}_add(r){if(r&&r[w]){this._rules=this._rules.concat(r._rules._rules);this._added=true;return}if(isString(r)){r={pattern:r}}if(checkPattern(r.pattern)){const n=createRule(r,this._ignoreCase);this._added=true;this._rules.push(n)}}add(r){this._added=false;makeArray(isString(r)?splitPattern(r):r).forEach(this._add,this);return this._added}test(r,s,a){let l=false;let u=false;let d;this._rules.forEach((A=>{const{negative:p}=A;if(u===p&&l!==u||p&&!l&&!u&&!s){return}const f=A[a].test(r);if(!f){return}l=!p;u=p;d=p?n:A}));const A={ignored:l,unignored:u};if(d){A.rule=d}return A}}const throwError=(r,n)=>{throw new n(r)};const checkPath=(r,n,s)=>{if(!isString(r)){return s(`path must be a string, but got \`${n}\``,TypeError)}if(!r){return s(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(r)){const r="`path.relative()`d";return s(`path should be a ${r} string, but got "${n}"`,RangeError)}return true};const isNotRelative=r=>g.test(r);checkPath.isNotRelative=isNotRelative;checkPath.convert=r=>r;class Ignore{constructor({ignorecase:r=true,ignoreCase:n=r,allowRelativePaths:s=false}={}){define(this,w,true);this._rules=new RuleManager(n);this._strictPathCheck=!s;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}add(r){if(this._rules.add(r)){this._initCache()}return this}addPattern(r){return this.add(r)}_test(r,n,s,a){const l=r&&checkPath.convert(r);checkPath(l,r,this._strictPathCheck?throwError:RETURN_FALSE);return this._t(l,n,s,a)}checkIgnore(r){if(!y.test(r)){return this.test(r)}const n=r.split(b).filter(Boolean);n.pop();if(n.length){const r=this._t(n.join(b)+b,this._testCache,true,n);if(r.ignored){return r}}return this._rules.test(r,false,v)}_t(r,n,s,a){if(r in n){return n[r]}if(!a){a=r.split(b).filter(Boolean)}a.pop();if(!a.length){return n[r]=this._rules.test(r,s,Q)}const l=this._t(a.join(b)+b,n,s,a);return n[r]=l.ignored?l:this._rules.test(r,s,Q)}ignores(r){return this._test(r,this._ignoreCache,false).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return makeArray(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,true)}}const factory=r=>new Ignore(r);const isPathValid=r=>checkPath(r&&checkPath.convert(r),r,RETURN_FALSE);const setupWindows=()=>{const makePosix=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");checkPath.convert=makePosix;const r=/^[a-z]:\//i;checkPath.isNotRelative=n=>r.test(n)||isNotRelative(n)};if(typeof process!=="undefined"&&process.platform==="win32"){setupWindows()}r.exports=factory;factory.default=factory;r.exports.isPathValid=isPathValid;define(r.exports,Symbol.for("setupWindows"),setupWindows)},76153:(r,n,s)=>{try{var a=s(39023);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(n){r.exports=s(2562)}},2562:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,n){if(n){r.super_=n;r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,n){if(n){r.super_=n;var TempCtor=function(){};TempCtor.prototype=n.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},95677:r=>{ +const a=s(39023);const l=s(17551);const isObject=r=>r!==null&&typeof r==="object"&&!Array.isArray(r);const transform=r=>n=>r===true?Number(n):String(n);const isValidValue=r=>typeof r==="number"||typeof r==="string"&&r!=="";const isNumber=r=>Number.isInteger(+r);const zeros=r=>{let n=`${r}`;let s=-1;if(n[0]==="-")n=n.slice(1);if(n==="0")return false;while(n[++s]==="0");return s>0};const stringify=(r,n,s)=>{if(typeof r==="string"||typeof n==="string"){return true}return s.stringify===true};const pad=(r,n,s)=>{if(n>0){let s=r[0]==="-"?"-":"";if(s)r=r.slice(1);r=s+r.padStart(s?n-1:n,"0")}if(s===false){return String(r)}return r};const toMaxLen=(r,n)=>{let s=r[0]==="-"?"-":"";if(s){r=r.slice(1);n--}while(r.length{r.negatives.sort(((r,n)=>rn?1:0));r.positives.sort(((r,n)=>rn?1:0));let a=n.capture?"":"?:";let l="";let u="";let d;if(r.positives.length){l=r.positives.map((r=>toMaxLen(String(r),s))).join("|")}if(r.negatives.length){u=`-(${a}${r.negatives.map((r=>toMaxLen(String(r),s))).join("|")})`}if(l&&u){d=`${l}|${u}`}else{d=l||u}if(n.wrap){return`(${a}${d})`}return d};const toRange=(r,n,s,a)=>{if(s){return l(r,n,{wrap:false,...a})}let u=String.fromCharCode(r);if(r===n)return u;let d=String.fromCharCode(n);return`[${u}-${d}]`};const toRegex=(r,n,s)=>{if(Array.isArray(r)){let n=s.wrap===true;let a=s.capture?"":"?:";return n?`(${a}${r.join("|")})`:r.join("|")}return l(r,n,s)};const rangeError=(...r)=>new RangeError("Invalid range arguments: "+a.inspect(...r));const invalidRange=(r,n,s)=>{if(s.strictRanges===true)throw rangeError([r,n]);return[]};const invalidStep=(r,n)=>{if(n.strictRanges===true){throw new TypeError(`Expected step "${r}" to be a number`)}return[]};const fillNumbers=(r,n,s=1,a={})=>{let l=Number(r);let u=Number(n);if(!Number.isInteger(l)||!Number.isInteger(u)){if(a.strictRanges===true)throw rangeError([r,n]);return[]}if(l===0)l=0;if(u===0)u=0;let d=l>u;let A=String(r);let p=String(n);let f=String(s);s=Math.max(Math.abs(s),1);let g=zeros(A)||zeros(p)||zeros(f);let y=g?Math.max(A.length,p.length,f.length):0;let b=g===false&&stringify(r,n,a)===false;let C=a.transform||transform(b);if(a.toRegex&&s===1){return toRange(toMaxLen(r,y),toMaxLen(n,y),true,a)}let w={negatives:[],positives:[]};let push=r=>w[r<0?"negatives":"positives"].push(Math.abs(r));let B=[];let I=0;while(d?l>=u:l<=u){if(a.toRegex===true&&s>1){push(l)}else{B.push(pad(C(l,I),y,b))}l=d?l-s:l+s;I++}if(a.toRegex===true){return s>1?toSequence(w,a,y):toRegex(B,null,{wrap:false,...a})}return B};const fillLetters=(r,n,s=1,a={})=>{if(!isNumber(r)&&r.length>1||!isNumber(n)&&n.length>1){return invalidRange(r,n,a)}let l=a.transform||(r=>String.fromCharCode(r));let u=`${r}`.charCodeAt(0);let d=`${n}`.charCodeAt(0);let A=u>d;let p=Math.min(u,d);let f=Math.max(u,d);if(a.toRegex&&s===1){return toRange(p,f,false,a)}let g=[];let y=0;while(A?u>=d:u<=d){g.push(l(u,y));u=A?u-s:u+s;y++}if(a.toRegex===true){return toRegex(g,null,{wrap:false,options:a})}return g};const fill=(r,n,s,a={})=>{if(n==null&&isValidValue(r)){return[r]}if(!isValidValue(r)||!isValidValue(n)){return invalidRange(r,n,a)}if(typeof s==="function"){return fill(r,n,1,{transform:s})}if(isObject(s)){return fill(r,n,0,s)}let l={...a};if(l.capture===true)l.wrap=true;s=s||l.step||1;if(!isNumber(s)){if(s!=null&&!isObject(s))return invalidStep(s,l);return fill(r,n,1,s)}if(isNumber(r)&&isNumber(n)){return fillNumbers(r,n,s,l)}return fillLetters(r,n,Math.max(Math.abs(s),1),l)};r.exports=fill},98505:(r,n,s)=>{var a=s(91925);var l=s(16928).posix.dirname;var u=s(70857).platform()==="win32";var d="/";var A=/\\/g;var p=/[\{\[].*[\}\]]$/;var f=/(^|[^\\])([\{\[]|\([^\)]+$)/;var g=/\\([\!\*\?\|\[\]\(\)\{\}])/g;r.exports=function globParent(r,n){var s=Object.assign({flipBackslashes:true},n);if(s.flipBackslashes&&u&&r.indexOf(d)<0){r=r.replace(A,d)}if(p.test(r)){r+=d}r+="a";do{r=l(r)}while(a(r)||f.test(r));return r.replace(g,"$1")}},73964:r=>{r.exports=clone;var n=Object.getPrototypeOf||function(r){return r.__proto__};function clone(r){if(r===null||typeof r!=="object")return r;if(r instanceof Object)var s={__proto__:n(r)};else var s=Object.create(null);Object.getOwnPropertyNames(r).forEach((function(n){Object.defineProperty(s,n,Object.getOwnPropertyDescriptor(r,n))}));return s}},35744:(r,n,s)=>{var a=s(79896);var l=s(83501);var u=s(12270);var d=s(73964);var A=s(39023);var p;var f;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){p=Symbol.for("graceful-fs.queue");f=Symbol.for("graceful-fs.previous")}else{p="___graceful-fs.queue";f="___graceful-fs.previous"}function noop(){}function publishQueue(r,n){Object.defineProperty(r,p,{get:function(){return n}})}var g=noop;if(A.debuglog)g=A.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))g=function(){var r=A.format.apply(A,arguments);r="GFS4: "+r.split(/\n/).join("\nGFS4: ");console.error(r)};if(!a[p]){var y=global[p]||[];publishQueue(a,y);a.close=function(r){function close(n,s){return r.call(a,n,(function(r){if(!r){resetQueue()}if(typeof s==="function")s.apply(this,arguments)}))}Object.defineProperty(close,f,{value:r});return close}(a.close);a.closeSync=function(r){function closeSync(n){r.apply(a,arguments);resetQueue()}Object.defineProperty(closeSync,f,{value:r});return closeSync}(a.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",(function(){g(a[p]);s(42613).equal(a[p].length,0)}))}}if(!global[p]){publishQueue(global,a[p])}r.exports=patch(d(a));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!a.__patched){r.exports=patch(a);a.__patched=true}function patch(r){l(r);r.gracefulify=patch;r.createReadStream=createReadStream;r.createWriteStream=createWriteStream;var n=r.readFile;r.readFile=readFile;function readFile(r,s,a){if(typeof s==="function")a=s,s=null;return go$readFile(r,s,a);function go$readFile(r,s,a,l){return n(r,s,(function(n){if(n&&(n.code==="EMFILE"||n.code==="ENFILE"))enqueue([go$readFile,[r,s,a],n,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var s=r.writeFile;r.writeFile=writeFile;function writeFile(r,n,a,l){if(typeof a==="function")l=a,a=null;return go$writeFile(r,n,a,l);function go$writeFile(r,n,a,l,u){return s(r,n,a,(function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$writeFile,[r,n,a,l],s,u||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var a=r.appendFile;if(a)r.appendFile=appendFile;function appendFile(r,n,s,l){if(typeof s==="function")l=s,s=null;return go$appendFile(r,n,s,l);function go$appendFile(r,n,s,l,u){return a(r,n,s,(function(a){if(a&&(a.code==="EMFILE"||a.code==="ENFILE"))enqueue([go$appendFile,[r,n,s,l],a,u||Date.now(),Date.now()]);else{if(typeof l==="function")l.apply(this,arguments)}}))}}var d=r.copyFile;if(d)r.copyFile=copyFile;function copyFile(r,n,s,a){if(typeof s==="function"){a=s;s=0}return go$copyFile(r,n,s,a);function go$copyFile(r,n,s,a,l){return d(r,n,s,(function(u){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$copyFile,[r,n,s,a],u,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}var A=r.readdir;r.readdir=readdir;var p=/^v[0-5]\./;function readdir(r,n,s){if(typeof n==="function")s=n,n=null;var a=p.test(process.version)?function go$readdir(r,n,s,a){return A(r,fs$readdirCallback(r,n,s,a))}:function go$readdir(r,n,s,a){return A(r,n,fs$readdirCallback(r,n,s,a))};return a(r,n,s);function fs$readdirCallback(r,n,s,l){return function(u,d){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([a,[r,n,s],u,l||Date.now(),Date.now()]);else{if(d&&d.sort)d.sort();if(typeof s==="function")s.call(this,u,d)}}}}if(process.version.substr(0,4)==="v0.8"){var f=u(r);ReadStream=f.ReadStream;WriteStream=f.WriteStream}var g=r.ReadStream;if(g){ReadStream.prototype=Object.create(g.prototype);ReadStream.prototype.open=ReadStream$open}var y=r.WriteStream;if(y){WriteStream.prototype=Object.create(y.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(r,"ReadStream",{get:function(){return ReadStream},set:function(r){ReadStream=r},enumerable:true,configurable:true});Object.defineProperty(r,"WriteStream",{get:function(){return WriteStream},set:function(r){WriteStream=r},enumerable:true,configurable:true});var b=ReadStream;Object.defineProperty(r,"FileReadStream",{get:function(){return b},set:function(r){b=r},enumerable:true,configurable:true});var C=WriteStream;Object.defineProperty(r,"FileWriteStream",{get:function(){return C},set:function(r){C=r},enumerable:true,configurable:true});function ReadStream(r,n){if(this instanceof ReadStream)return g.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(n,s){if(n){if(r.autoClose)r.destroy();r.emit("error",n)}else{r.fd=s;r.emit("open",s);r.read()}}))}function WriteStream(r,n){if(this instanceof WriteStream)return y.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var r=this;open(r.path,r.flags,r.mode,(function(n,s){if(n){r.destroy();r.emit("error",n)}else{r.fd=s;r.emit("open",s)}}))}function createReadStream(n,s){return new r.ReadStream(n,s)}function createWriteStream(n,s){return new r.WriteStream(n,s)}var w=r.open;r.open=open;function open(r,n,s,a){if(typeof s==="function")a=s,s=null;return go$open(r,n,s,a);function go$open(r,n,s,a,l){return w(r,n,s,(function(u,d){if(u&&(u.code==="EMFILE"||u.code==="ENFILE"))enqueue([go$open,[r,n,s,a],u,l||Date.now(),Date.now()]);else{if(typeof a==="function")a.apply(this,arguments)}}))}}return r}function enqueue(r){g("ENQUEUE",r[0].name,r[1]);a[p].push(r);retry()}var b;function resetQueue(){var r=Date.now();for(var n=0;n2){a[p][n][3]=r;a[p][n][4]=r}}retry()}function retry(){clearTimeout(b);b=undefined;if(a[p].length===0)return;var r=a[p].shift();var n=r[0];var s=r[1];var l=r[2];var u=r[3];var d=r[4];if(u===undefined){g("RETRY",n.name,s);n.apply(null,s)}else if(Date.now()-u>=6e4){g("TIMEOUT",n.name,s);var A=s.pop();if(typeof A==="function")A.call(null,l)}else{var f=Date.now()-d;var y=Math.max(d-u,1);var C=Math.min(y*1.2,100);if(f>=C){g("RETRY",n.name,s);n.apply(null,s.concat([u]))}else{a[p].push(r)}}if(b===undefined){b=setTimeout(retry,0)}}},12270:(r,n,s)=>{var a=s(2203).Stream;r.exports=legacy;function legacy(r){return{ReadStream:ReadStream,WriteStream:WriteStream};function ReadStream(n,s){if(!(this instanceof ReadStream))return new ReadStream(n,s);a.call(this);var l=this;this.path=n;this.fd=null;this.readable=true;this.paused=false;this.flags="r";this.mode=438;this.bufferSize=64*1024;s=s||{};var u=Object.keys(s);for(var d=0,A=u.length;dthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick((function(){l._read()}));return}r.open(this.path,this.flags,this.mode,(function(r,n){if(r){l.emit("error",r);l.readable=false;return}l.fd=n;l.emit("open",n);l._read()}))}function WriteStream(n,s){if(!(this instanceof WriteStream))return new WriteStream(n,s);a.call(this);this.path=n;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;s=s||{};var l=Object.keys(s);for(var u=0,d=l.length;u= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=r.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},83501:(r,n,s)=>{var a=s(49140);var l=process.cwd;var u=null;var d=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!u)u=l.call(process);return u};try{process.cwd()}catch(r){}if(typeof process.chdir==="function"){var A=process.chdir;process.chdir=function(r){u=null;A.call(process,r)};if(Object.setPrototypeOf)Object.setPrototypeOf(process.chdir,A)}r.exports=patch;function patch(r){if(a.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(r)}if(!r.lutimes){patchLutimes(r)}r.chown=chownFix(r.chown);r.fchown=chownFix(r.fchown);r.lchown=chownFix(r.lchown);r.chmod=chmodFix(r.chmod);r.fchmod=chmodFix(r.fchmod);r.lchmod=chmodFix(r.lchmod);r.chownSync=chownFixSync(r.chownSync);r.fchownSync=chownFixSync(r.fchownSync);r.lchownSync=chownFixSync(r.lchownSync);r.chmodSync=chmodFixSync(r.chmodSync);r.fchmodSync=chmodFixSync(r.fchmodSync);r.lchmodSync=chmodFixSync(r.lchmodSync);r.stat=statFix(r.stat);r.fstat=statFix(r.fstat);r.lstat=statFix(r.lstat);r.statSync=statFixSync(r.statSync);r.fstatSync=statFixSync(r.fstatSync);r.lstatSync=statFixSync(r.lstatSync);if(r.chmod&&!r.lchmod){r.lchmod=function(r,n,s){if(s)process.nextTick(s)};r.lchmodSync=function(){}}if(r.chown&&!r.lchown){r.lchown=function(r,n,s,a){if(a)process.nextTick(a)};r.lchownSync=function(){}}if(d==="win32"){r.rename=typeof r.rename!=="function"?r.rename:function(n){function rename(s,a,l){var u=Date.now();var d=0;n(s,a,(function CB(A){if(A&&(A.code==="EACCES"||A.code==="EPERM"||A.code==="EBUSY")&&Date.now()-u<6e4){setTimeout((function(){r.stat(a,(function(r,u){if(r&&r.code==="ENOENT")n(s,a,CB);else l(A)}))}),d);if(d<100)d+=10;return}if(l)l(A)}))}if(Object.setPrototypeOf)Object.setPrototypeOf(rename,n);return rename}(r.rename)}r.read=typeof r.read!=="function"?r.read:function(n){function read(s,a,l,u,d,A){var p;if(A&&typeof A==="function"){var f=0;p=function(g,y,b){if(g&&g.code==="EAGAIN"&&f<10){f++;return n.call(r,s,a,l,u,d,p)}A.apply(this,arguments)}}return n.call(r,s,a,l,u,d,p)}if(Object.setPrototypeOf)Object.setPrototypeOf(read,n);return read}(r.read);r.readSync=typeof r.readSync!=="function"?r.readSync:function(n){return function(s,a,l,u,d){var A=0;while(true){try{return n.call(r,s,a,l,u,d)}catch(r){if(r.code==="EAGAIN"&&A<10){A++;continue}throw r}}}}(r.readSync);function patchLchmod(r){r.lchmod=function(n,s,l){r.open(n,a.O_WRONLY|a.O_SYMLINK,s,(function(n,a){if(n){if(l)l(n);return}r.fchmod(a,s,(function(n){r.close(a,(function(r){if(l)l(n||r)}))}))}))};r.lchmodSync=function(n,s){var l=r.openSync(n,a.O_WRONLY|a.O_SYMLINK,s);var u=true;var d;try{d=r.fchmodSync(l,s);u=false}finally{if(u){try{r.closeSync(l)}catch(r){}}else{r.closeSync(l)}}return d}}function patchLutimes(r){if(a.hasOwnProperty("O_SYMLINK")&&r.futimes){r.lutimes=function(n,s,l,u){r.open(n,a.O_SYMLINK,(function(n,a){if(n){if(u)u(n);return}r.futimes(a,s,l,(function(n){r.close(a,(function(r){if(u)u(n||r)}))}))}))};r.lutimesSync=function(n,s,l){var u=r.openSync(n,a.O_SYMLINK);var d;var A=true;try{d=r.futimesSync(u,s,l);A=false}finally{if(A){try{r.closeSync(u)}catch(r){}}else{r.closeSync(u)}}return d}}else if(r.futimes){r.lutimes=function(r,n,s,a){if(a)process.nextTick(a)};r.lutimesSync=function(){}}}function chmodFix(n){if(!n)return n;return function(s,a,l){return n.call(r,s,a,(function(r){if(chownErOk(r))r=null;if(l)l.apply(this,arguments)}))}}function chmodFixSync(n){if(!n)return n;return function(s,a){try{return n.call(r,s,a)}catch(r){if(!chownErOk(r))throw r}}}function chownFix(n){if(!n)return n;return function(s,a,l,u){return n.call(r,s,a,l,(function(r){if(chownErOk(r))r=null;if(u)u.apply(this,arguments)}))}}function chownFixSync(n){if(!n)return n;return function(s,a,l){try{return n.call(r,s,a,l)}catch(r){if(!chownErOk(r))throw r}}}function statFix(n){if(!n)return n;return function(s,a,l){if(typeof a==="function"){l=a;a=null}function callback(r,n){if(n){if(n.uid<0)n.uid+=4294967296;if(n.gid<0)n.gid+=4294967296}if(l)l.apply(this,arguments)}return a?n.call(r,s,a,callback):n.call(r,s,callback)}}function statFixSync(n){if(!n)return n;return function(s,a){var l=a?n.call(r,s,a):n.call(r,s);if(l){if(l.uid<0)l.uid+=4294967296;if(l.gid<0)l.gid+=4294967296}return l}}function chownErOk(r){if(!r)return true;if(r.code==="ENOSYS")return true;var n=!process.getuid||process.getuid()!==0;if(n){if(r.code==="EINVAL"||r.code==="EPERM")return true}return false}}},81970:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.HttpProxyAgent=void 0;const A=u(s(69278));const p=u(s(64756));const f=d(s(2830));const g=s(24434);const y=s(98894);const b=s(87016);const C=(0,f.default)("http-proxy-agent");class HttpProxyAgent extends y.Agent{constructor(r,n){super(n);this.proxy=typeof r==="string"?new b.URL(r):r;this.proxyHeaders=n?.headers??{};C("Creating new HttpProxyAgent instance: %o",this.proxy.href);const s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...n?omit(n,"headers"):null,host:s,port:a}}addRequest(r,n){r._header=null;this.setRequestProps(r,n);super.addRequest(r,n)}setRequestProps(r,n){const{proxy:s}=this;const a=n.secureEndpoint?"https:":"http:";const l=r.getHeader("host")||"localhost";const u=`${a}//${l}`;const d=new b.URL(r.path,u);if(n.port!==80){d.port=String(n.port)}r.path=String(d);const A=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){const r=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}if(!A["Proxy-Connection"]){A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const n of Object.keys(A)){const s=A[n];if(s){r.setHeader(n,s)}}}async connect(r,n){r._header=null;if(!r.path.includes("://")){this.setRequestProps(r,n)}let s;let a;C("Regenerating stored HTTP header string for request");r._implicitHeader();if(r.outputData&&r.outputData.length>0){C("Patching connection write() output buffer with updated header");s=r.outputData[0].data;a=s.indexOf("\r\n\r\n")+4;r.outputData[0].data=r._header+s.substring(a);C("Output buffer: %o",r.outputData[0].data)}let l;if(this.proxy.protocol==="https:"){C("Creating `tls.Socket`: %o",this.connectOpts);l=p.connect(this.connectOpts)}else{C("Creating `net.Socket`: %o",this.connectOpts);l=A.connect(this.connectOpts)}await(0,g.once)(l,"connect");return l}}HttpProxyAgent.protocols=["http","https"];n.HttpProxyAgent=HttpProxyAgent;function omit(r,...n){const s={};let a;for(a in r){if(!n.includes(a)){s[a]=r[a]}}return s}},3669:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.HttpsProxyAgent=void 0;const A=u(s(69278));const p=u(s(64756));const f=d(s(42613));const g=d(s(2830));const y=s(98894);const b=s(87016);const C=s(37943);const w=(0,g.default)("https-proxy-agent");const setServernameFromNonIpHost=r=>{if(r.servername===undefined&&r.host&&!A.isIP(r.host)){return{...r,servername:r.host}}return r};class HttpsProxyAgent extends y.Agent{constructor(r,n){super(n);this.options={path:undefined};this.proxy=typeof r==="string"?new b.URL(r):r;this.proxyHeaders=n?.headers??{};w("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const a=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...n?omit(n,"headers"):null,host:s,port:a}}async connect(r,n){const{proxy:s}=this;if(!n.host){throw new TypeError('No "host" provided')}let a;if(s.protocol==="https:"){w("Creating `tls.Socket`: %o",this.connectOpts);a=p.connect(setServernameFromNonIpHost(this.connectOpts))}else{w("Creating `net.Socket`: %o",this.connectOpts);a=A.connect(this.connectOpts)}const l=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const u=A.isIPv6(n.host)?`[${n.host}]`:n.host;let d=`CONNECT ${u}:${n.port} HTTP/1.1\r\n`;if(s.username||s.password){const r=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(r).toString("base64")}`}l.Host=`${u}:${n.port}`;if(!l["Proxy-Connection"]){l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const r of Object.keys(l)){d+=`${r}: ${l[r]}\r\n`}const g=(0,C.parseProxyResponse)(a);a.write(`${d}\r\n`);const{connect:y,buffered:b}=await g;r.emit("proxyConnect",y);this.emit("proxyConnect",y,r);if(y.statusCode===200){r.once("socket",resume);if(n.secureEndpoint){w("Upgrading socket connection to TLS");return p.connect({...omit(setServernameFromNonIpHost(n),"host","path","port"),socket:a})}return a}a.destroy();const B=new A.Socket({writable:false});B.readable=true;r.once("socket",(r=>{w("Replaying proxy buffer for failed request");(0,f.default)(r.listenerCount("data")>0);r.push(b);r.push(null)}));return B}}HttpsProxyAgent.protocols=["http","https"];n.HttpsProxyAgent=HttpsProxyAgent;function resume(r){r.resume()}function omit(r,...n){const s={};let a;for(a in r){if(!n.includes(a)){s[a]=r[a]}}return s}},37943:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.parseProxyResponse=void 0;const l=a(s(2830));const u=(0,l.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(r){return new Promise(((n,s)=>{let a=0;const l=[];function read(){const n=r.read();if(n)ondata(n);else r.once("readable",read)}function cleanup(){r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("readable",read)}function onend(){cleanup();u("onend");s(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(r){cleanup();u("onerror %o",r);s(r)}function ondata(d){l.push(d);a+=d.length;const A=Buffer.concat(l,a);const p=A.indexOf("\r\n\r\n");if(p===-1){u("have not received end of HTTP headers yet...");read();return}const f=A.slice(0,p).toString("ascii").split("\r\n");const g=f.shift();if(!g){r.destroy();return s(new Error("No header received from proxy CONNECT response"))}const y=g.split(" ");const b=+y[1];const C=y.slice(2).join(" ");const w={};for(const n of f){if(!n)continue;const a=n.indexOf(":");if(a===-1){r.destroy();return s(new Error(`Invalid header from proxy CONNECT response: "${n}"`))}const l=n.slice(0,a).toLowerCase();const u=n.slice(a+1).trimStart();const d=w[l];if(typeof d==="string"){w[l]=[d,u]}else if(Array.isArray(d)){d.push(u)}else{w[l]=u}}u("got proxy server response: %o %o",g,w);cleanup();n({connect:{statusCode:b,statusText:C,headers:w},buffered:A})}r.on("error",onerror);r.on("end",onend);read()}))}n.parseProxyResponse=parseProxyResponse},70298:r=>{function makeArray(r){return Array.isArray(r)?r:[r]}const n=undefined;const s="";const a=" ";const l="\\";const u=/^\s+$/;const d=/(?:[^\\]|^)\\$/;const A=/^\\!/;const p=/^\\#/;const f=/\r?\n/g;const g=/^\.{0,2}\/|^\.{1,2}$/;const y=/\/$/;const b="/";let C="node-ignore";if(typeof Symbol!=="undefined"){C=Symbol.for("node-ignore")}const w=C;const define=(r,n,s)=>{Object.defineProperty(r,n,{value:s});return s};const B=/([0-z])-([0-z])/g;const RETURN_FALSE=()=>false;const sanitizeRange=r=>r.replace(B,((r,n,a)=>n.charCodeAt(0)<=a.charCodeAt(0)?r:s));const cleanRangeBackSlash=r=>{const{length:n}=r;return r.slice(0,n-n%2)};const I=[[/^\uFEFF/,()=>s],[/((?:\\\\)*?)(\\?\s+)$/,(r,n,l)=>n+(l.indexOf("\\")===0?a:s)],[/(\\+?)\s/g,(r,n)=>{const{length:s}=n;return n.slice(0,s-s%2)+a}],[/[\\$.|*+(){^]/g,r=>`\\${r}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function startingReplacer(){return!/\/(?!$)/.test(this)?"(?:^|\\/)":"^"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(r,n,s)=>n+6{const a=s.replace(/\\\*/g,"[^\\/]*");return n+a}],[/\\\\\\(?=[$.|*+(){^])/g,()=>l],[/\\\\/g,()=>l],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(r,n,s,a,u)=>n===l?`\\[${s}${cleanRangeBackSlash(a)}${u}`:u==="]"?a.length%2===0?`[${sanitizeRange(s)}${a}]`:"[]":"[]"],[/(?:[^*])$/,r=>/\/$/.test(r)?`${r}$`:`${r}(?=$|\\/$)`]];const S=/(^|\\\/)?\\\*$/;const Q="regex";const v="checkRegex";const R="_";const N={[Q](r,n){const s=n?`${n}[^/]+`:"[^/]*";return`${s}(?=$|\\/$)`},[v](r,n){const s=n?`${n}[^/]*`:"[^/]*";return`${s}(?=$|\\/$)`}};const makeRegexPrefix=r=>I.reduce(((n,[s,a])=>n.replace(s,a.bind(r))),r);const isString=r=>typeof r==="string";const checkPattern=r=>r&&isString(r)&&!u.test(r)&&!d.test(r)&&r.indexOf("#")!==0;const splitPattern=r=>r.split(f).filter(Boolean);class IgnoreRule{constructor(r,n,s,a,l,u){this.pattern=r;this.mark=n;this.negative=l;define(this,"body",s);define(this,"ignoreCase",a);define(this,"regexPrefix",u)}get regex(){const r=R+Q;if(this[r]){return this[r]}return this._make(Q,r)}get checkRegex(){const r=R+v;if(this[r]){return this[r]}return this._make(v,r)}_make(r,n){const s=this.regexPrefix.replace(S,N[r]);const a=this.ignoreCase?new RegExp(s,"i"):new RegExp(s);return define(this,n,a)}}const createRule=({pattern:r,mark:n},s)=>{let a=false;let l=r;if(l.indexOf("!")===0){a=true;l=l.substr(1)}l=l.replace(A,"!").replace(p,"#");const u=makeRegexPrefix(l);return new IgnoreRule(r,n,l,s,a,u)};class RuleManager{constructor(r){this._ignoreCase=r;this._rules=[]}_add(r){if(r&&r[w]){this._rules=this._rules.concat(r._rules._rules);this._added=true;return}if(isString(r)){r={pattern:r}}if(checkPattern(r.pattern)){const n=createRule(r,this._ignoreCase);this._added=true;this._rules.push(n)}}add(r){this._added=false;makeArray(isString(r)?splitPattern(r):r).forEach(this._add,this);return this._added}test(r,s,a){let l=false;let u=false;let d;this._rules.forEach((A=>{const{negative:p}=A;if(u===p&&l!==u||p&&!l&&!u&&!s){return}const f=A[a].test(r);if(!f){return}l=!p;u=p;d=p?n:A}));const A={ignored:l,unignored:u};if(d){A.rule=d}return A}}const throwError=(r,n)=>{throw new n(r)};const checkPath=(r,n,s)=>{if(!isString(r)){return s(`path must be a string, but got \`${n}\``,TypeError)}if(!r){return s(`path must not be empty`,TypeError)}if(checkPath.isNotRelative(r)){const r="`path.relative()`d";return s(`path should be a ${r} string, but got "${n}"`,RangeError)}return true};const isNotRelative=r=>g.test(r);checkPath.isNotRelative=isNotRelative;checkPath.convert=r=>r;class Ignore{constructor({ignorecase:r=true,ignoreCase:n=r,allowRelativePaths:s=false}={}){define(this,w,true);this._rules=new RuleManager(n);this._strictPathCheck=!s;this._initCache()}_initCache(){this._ignoreCache=Object.create(null);this._testCache=Object.create(null)}add(r){if(this._rules.add(r)){this._initCache()}return this}addPattern(r){return this.add(r)}_test(r,n,s,a){const l=r&&checkPath.convert(r);checkPath(l,r,this._strictPathCheck?throwError:RETURN_FALSE);return this._t(l,n,s,a)}checkIgnore(r){if(!y.test(r)){return this.test(r)}const n=r.split(b).filter(Boolean);n.pop();if(n.length){const r=this._t(n.join(b)+b,this._testCache,true,n);if(r.ignored){return r}}return this._rules.test(r,false,v)}_t(r,n,s,a){if(r in n){return n[r]}if(!a){a=r.split(b).filter(Boolean)}a.pop();if(!a.length){return n[r]=this._rules.test(r,s,Q)}const l=this._t(a.join(b)+b,n,s,a);return n[r]=l.ignored?l:this._rules.test(r,s,Q)}ignores(r){return this._test(r,this._ignoreCache,false).ignored}createFilter(){return r=>!this.ignores(r)}filter(r){return makeArray(r).filter(this.createFilter())}test(r){return this._test(r,this._testCache,true)}}const factory=r=>new Ignore(r);const isPathValid=r=>checkPath(r&&checkPath.convert(r),r,RETURN_FALSE);const setupWindows=()=>{const makePosix=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");checkPath.convert=makePosix;const r=/^[a-z]:\//i;checkPath.isNotRelative=n=>r.test(n)||isNotRelative(n)};if(typeof process!=="undefined"&&process.platform==="win32"){setupWindows()}r.exports=factory;factory.default=factory;r.exports.isPathValid=isPathValid;define(r.exports,Symbol.for("setupWindows"),setupWindows)},39598:(r,n,s)=>{try{var a=s(39023);if(typeof a.inherits!=="function")throw"";r.exports=a.inherits}catch(n){r.exports=s(26589)}},26589:r=>{if(typeof Object.create==="function"){r.exports=function inherits(r,n){if(n){r.super_=n;r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:false,writable:true,configurable:true}})}}}else{r.exports=function inherits(r,n){if(n){r.super_=n;var TempCtor=function(){};TempCtor.prototype=n.prototype;r.prototype=new TempCtor;r.prototype.constructor=r}}}},75540:r=>{ /*! * is-extglob * * Copyright (c) 2014-2016, Jon Schlinkert. * Licensed under the MIT License. */ -r.exports=function isExtglob(r){if(typeof r!=="string"||r===""){return false}var n;while(n=/(\\).|([@?!+*]\(.*\))/g.exec(r)){if(n[2])return true;r=r.slice(n.index+n[0].length)}return false}},76722:(r,n,s)=>{ +r.exports=function isExtglob(r){if(typeof r!=="string"||r===""){return false}var n;while(n=/(\\).|([@?!+*]\(.*\))/g.exec(r)){if(n[2])return true;r=r.slice(n.index+n[0].length)}return false}},91925:(r,n,s)=>{ /*! * is-glob * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ -var a=s(95677);var l={"{":"}","(":")","[":"]"};var strictCheck=function(r){if(r[0]==="!"){return true}var n=0;var s=-2;var a=-2;var u=-2;var d=-2;var A=-2;while(nn){if(A===-1||A>a){return true}A=r.indexOf("\\",n);if(A===-1||A>a){return true}}}if(u!==-1&&r[n]==="{"&&r[n+1]!=="}"){u=r.indexOf("}",n);if(u>n){A=r.indexOf("\\",n);if(A===-1||A>u){return true}}}if(d!==-1&&r[n]==="("&&r[n+1]==="?"&&/[:!=]/.test(r[n+2])&&r[n+3]!==")"){d=r.indexOf(")",n);if(d>n){A=r.indexOf("\\",n);if(A===-1||A>d){return true}}}if(s!==-1&&r[n]==="("&&r[n+1]!=="|"){if(ss){A=r.indexOf("\\",s);if(A===-1||A>d){return true}}}}if(r[n]==="\\"){var p=r[n+1];n+=2;var f=l[p];if(f){var g=r.indexOf(f,n);if(g!==-1){n=g+1}}if(r[n]==="!"){return true}}else{n++}}return false};var relaxedCheck=function(r){if(r[0]==="!"){return true}var n=0;while(n{ +var a=s(75540);var l={"{":"}","(":")","[":"]"};var strictCheck=function(r){if(r[0]==="!"){return true}var n=0;var s=-2;var a=-2;var u=-2;var d=-2;var A=-2;while(nn){if(A===-1||A>a){return true}A=r.indexOf("\\",n);if(A===-1||A>a){return true}}}if(u!==-1&&r[n]==="{"&&r[n+1]!=="}"){u=r.indexOf("}",n);if(u>n){A=r.indexOf("\\",n);if(A===-1||A>u){return true}}}if(d!==-1&&r[n]==="("&&r[n+1]==="?"&&/[:!=]/.test(r[n+2])&&r[n+3]!==")"){d=r.indexOf(")",n);if(d>n){A=r.indexOf("\\",n);if(A===-1||A>d){return true}}}if(s!==-1&&r[n]==="("&&r[n+1]!=="|"){if(ss){A=r.indexOf("\\",s);if(A===-1||A>d){return true}}}}if(r[n]==="\\"){var p=r[n+1];n+=2;var f=l[p];if(f){var g=r.indexOf(f,n);if(g!==-1){n=g+1}}if(r[n]==="!"){return true}}else{n++}}return false};var relaxedCheck=function(r){if(r[0]==="!"){return true}var n=0;while(n{ /*! * is-number * * Copyright (c) 2014-present, Jon Schlinkert. * Released under the MIT License. */ -r.exports=function(r){if(typeof r==="number"){return r-r===0}if(typeof r==="string"&&r.trim()!==""){return Number.isFinite?Number.isFinite(+r):isFinite(+r)}return false}},82198:r=>{const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},92012:r=>{var n={}.toString;r.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},20845:(r,n,s)=>{var a=s(79896);var l;if(process.platform==="win32"||global.TESTING_WINDOWS){l=s(82928)}else{l=s(45518)}r.exports=isexe;isexe.sync=sync;function isexe(r,n,s){if(typeof n==="function"){s=n;n={}}if(!s){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(s,a){isexe(r,n||{},(function(r,n){if(r){a(r)}else{s(n)}}))}))}l(r,n||{},(function(r,a){if(r){if(r.code==="EACCES"||n&&n.ignoreErrors){r=null;a=false}}s(r,a)}))}function sync(r,n){try{return l.sync(r,n||{})}catch(r){if(n&&n.ignoreErrors||r.code==="EACCES"){return false}else{throw r}}}},45518:(r,n,s)=>{r.exports=isexe;isexe.sync=sync;var a=s(79896);function isexe(r,n,s){a.stat(r,(function(r,a){s(r,r?false:checkStat(a,n))}))}function sync(r,n){return checkStat(a.statSync(r),n)}function checkStat(r,n){return r.isFile()&&checkMode(r,n)}function checkMode(r,n){var s=r.mode;var a=r.uid;var l=r.gid;var u=n.uid!==undefined?n.uid:process.getuid&&process.getuid();var d=n.gid!==undefined?n.gid:process.getgid&&process.getgid();var A=parseInt("100",8);var p=parseInt("010",8);var f=parseInt("001",8);var g=A|p;var y=s&f||s&p&&l===d||s&A&&a===u||s&g&&u===0;return y}},82928:(r,n,s)=>{r.exports=isexe;isexe.sync=sync;var a=s(79896);function checkPathExt(r,n){var s=n.pathExt!==undefined?n.pathExt:process.env.PATHEXT;if(!s){return true}s=s.split(";");if(s.indexOf("")!==-1){return true}for(var a=0;a{const a=s(91801);const l=s(45463);const u={parse:a,stringify:l};r.exports=u},91801:(r,n,s)=>{const a=s(95572);let l;let u;let d;let A;let p;let f;let g;let y;let b;r.exports=function parse(r,n){l=String(r);u="start";d=[];A=0;p=1;f=0;g=undefined;y=undefined;b=undefined;do{g=lex();v[u]()}while(g.type!=="eof");if(typeof n==="function"){return internalize({"":b},"",n)}return b};function internalize(r,n,s){const a=r[n];if(a!=null&&typeof a==="object"){if(Array.isArray(a)){for(let r=0;r0){const n=peek();if(!a.isHexDigit(n)){throw invalidChar(read())}r+=read()}return String.fromCodePoint(parseInt(r,16))}const v={start(){if(g.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(g.type){case"identifier":case"string":y=g.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(g.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue(){if(g.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(g.type==="eof"){throw invalidEOF()}if(g.type==="punctuator"&&g.value==="]"){pop();return}push()},afterPropertyValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let r;switch(g.type){case"punctuator":switch(g.value){case"{":r={};break;case"[":r=[];break}break;case"null":case"boolean":case"numeric":case"string":r=g.value;break}if(b===undefined){b=r}else{const n=d[d.length-1];if(Array.isArray(n)){n.push(r)}else{Object.defineProperty(n,y,{value:r,writable:true,enumerable:true,configurable:true})}}if(r!==null&&typeof r==="object"){d.push(r);if(Array.isArray(r)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{const r=d[d.length-1];if(r==null){u="end"}else if(Array.isArray(r)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){d.pop();const r=d[d.length-1];if(r==null){u="end"}else if(Array.isArray(r)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(r){if(r===undefined){return syntaxError(`JSON5: invalid end of input at ${p}:${f}`)}return syntaxError(`JSON5: invalid character '${formatChar(r)}' at ${p}:${f}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${p}:${f}`)}function invalidIdentifier(){f-=5;return syntaxError(`JSON5: invalid identifier character at ${p}:${f}`)}function separatorChar(r){console.warn(`JSON5: '${formatChar(r)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(r){const n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(n[r]){return n[r]}if(r<" "){const n=r.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return r}function syntaxError(r){const n=new SyntaxError(r);n.lineNumber=p;n.columnNumber=f;return n}},45463:(r,n,s)=>{const a=s(95572);r.exports=function stringify(r,n,s){const l=[];let u="";let d;let A;let p="";let f;if(n!=null&&typeof n==="object"&&!Array.isArray(n)){s=n.space;f=n.quote;n=n.replacer}if(typeof n==="function"){A=n}else if(Array.isArray(n)){d=[];for(const r of n){let n;if(typeof r==="string"){n=r}else if(typeof r==="number"||r instanceof String||r instanceof Number){n=String(r)}if(n!==undefined&&d.indexOf(n)<0){d.push(n)}}}if(s instanceof Number){s=Number(s)}else if(s instanceof String){s=String(s)}if(typeof s==="number"){if(s>0){s=Math.min(10,Math.floor(s));p=" ".substr(0,s)}}else if(typeof s==="string"){p=s.substr(0,10)}return serializeProperty("",{"":r});function serializeProperty(r,n){let s=n[r];if(s!=null){if(typeof s.toJSON5==="function"){s=s.toJSON5(r)}else if(typeof s.toJSON==="function"){s=s.toJSON(r)}}if(A){s=A.call(n,r,s)}if(s instanceof Number){s=Number(s)}else if(s instanceof String){s=String(s)}else if(s instanceof Boolean){s=s.valueOf()}switch(s){case null:return"null";case true:return"true";case false:return"false"}if(typeof s==="string"){return quoteString(s,false)}if(typeof s==="number"){return String(s)}if(typeof s==="object"){return Array.isArray(s)?serializeArray(s):serializeObject(s)}return undefined}function quoteString(r){const n={"'":.1,'"':.2};const s={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let l="";for(let u=0;un[r]=0){throw TypeError("Converting circular structure to JSON5")}l.push(r);let n=u;u=u+p;let s=d||Object.keys(r);let a=[];for(const n of s){const s=serializeProperty(n,r);if(s!==undefined){let r=serializeKey(n)+":";if(p!==""){r+=" "}r+=s;a.push(r)}}let A;if(a.length===0){A="{}"}else{let r;if(p===""){r=a.join(",");A="{"+r+"}"}else{let s=",\n"+u;r=a.join(s);A="{\n"+u+r+",\n"+n+"}"}}l.pop();u=n;return A}function serializeKey(r){if(r.length===0){return quoteString(r,true)}const n=String.fromCodePoint(r.codePointAt(0));if(!a.isIdStartChar(n)){return quoteString(r,true)}for(let s=n.length;s=0){throw TypeError("Converting circular structure to JSON5")}l.push(r);let n=u;u=u+p;let s=[];for(let n=0;n{r.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;r.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\u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B\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;r.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0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84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\u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\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},95572:(r,n,s)=>{const a=s(72617);r.exports={isSpaceSeparator(r){return typeof r==="string"&&a.Space_Separator.test(r)},isIdStartChar(r){return typeof r==="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="$"||r==="_"||a.ID_Start.test(r))},isIdContinueChar(r){return typeof r==="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"||r==="$"||r==="_"||r==="‌"||r==="‍"||a.ID_Continue.test(r))},isDigit(r){return typeof r==="string"&&/[0-9]/.test(r)},isHexDigit(r){return typeof r==="string"&&/[0-9A-Fa-f]/.test(r)}}},6889:(r,n,s)=>{var a=s(39023);var l=s(26614);r.exports={Readable:Readable,Writable:Writable};a.inherits(Readable,l);a.inherits(Writable,l);function beforeFirstCall(r,n,s){r[n]=function(){delete r[n];s.apply(this,arguments);return this[n].apply(this,arguments)}}function Readable(r,n){if(!(this instanceof Readable))return new Readable(r,n);l.call(this,n);beforeFirstCall(this,"_read",(function(){var s=r.call(this,n);var a=this.emit.bind(this,"error");s.on("error",a);s.pipe(this)}));this.emit("readable")}function Writable(r,n){if(!(this instanceof Writable))return new Writable(r,n);l.call(this,n);beforeFirstCall(this,"_write",(function(){var s=r.call(this,n);var a=this.emit.bind(this,"error");s.on("error",a);this.pipe(s)}));this.emit("writable")}},4745:(r,n,s)=>{var a=s(71428),l=s(65682),u=s(33645),d=s(75393),A=s(97129);function Hash(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(1018),l=s(28700),u=s(19695),d=s(75763),A=s(24555);function ListCache(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(93578),l=s(77425);var u=a(l,"Map");r.exports=u},83225:(r,n,s)=>{var a=s(46228),l=s(9954),u=s(91805),d=s(30353),A=s(98809);function MapCache(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(93578),l=s(77425);var u=a(l,"Set");r.exports=u},20415:(r,n,s)=>{var a=s(83225),l=s(41248),u=s(35839);function SetCache(r){var n=-1,s=r==null?0:r.length;this.__data__=new a;while(++n{var a=s(77425);var l=a.Symbol;r.exports=l},26373:r=>{function apply(r,n,s){switch(s.length){case 0:return r.call(n);case 1:return r.call(n,s[0]);case 2:return r.call(n,s[0],s[1]);case 3:return r.call(n,s[0],s[1],s[2])}return r.apply(n,s)}r.exports=apply},85129:(r,n,s)=>{var a=s(24711);function arrayIncludes(r,n){var s=r==null?0:r.length;return!!s&&a(r,n,0)>-1}r.exports=arrayIncludes},26077:r=>{function arrayIncludesWith(r,n,s){var a=-1,l=r==null?0:r.length;while(++a{var a=s(29780),l=s(98656),u=s(30373),d=s(6148),A=s(56197),p=s(70243);var f=Object.prototype;var g=f.hasOwnProperty;function arrayLikeKeys(r,n){var s=u(r),f=!s&&l(r),y=!s&&!f&&d(r),b=!s&&!f&&!y&&p(r),C=s||f||y||b,w=C?a(r.length,String):[],B=w.length;for(var I in r){if((n||g.call(r,I))&&!(C&&(I=="length"||y&&(I=="offset"||I=="parent")||b&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||A(I,B)))){w.push(I)}}return w}r.exports=arrayLikeKeys},40808:r=>{function arrayMap(r,n){var s=-1,a=r==null?0:r.length,l=Array(a);while(++s{function arrayPush(r,n){var s=-1,a=n.length,l=r.length;while(++s{var a=s(29548);function assocIndexOf(r,n){var s=r.length;while(s--){if(a(r[s][0],n)){return s}}return-1}r.exports=assocIndexOf},49031:(r,n,s)=>{var a=s(20415),l=s(85129),u=s(26077),d=s(40808),A=s(41473),p=s(58919);var f=200;function baseDifference(r,n,s,g){var y=-1,b=l,C=true,w=r.length,B=[],I=n.length;if(!w){return B}if(s){n=d(n,A(s))}if(g){b=u;C=false}else if(n.length>=f){b=p;C=false;n=new a(n)}e:while(++y{function baseFindIndex(r,n,s,a){var l=r.length,u=s+(a?1:-1);while(a?u--:++u{var a=s(31964),l=s(68439);function baseFlatten(r,n,s,u,d){var A=-1,p=r.length;s||(s=l);d||(d=[]);while(++A0&&s(f)){if(n>1){baseFlatten(f,n-1,s,u,d)}else{a(d,f)}}else if(!u){d[d.length]=f}}return d}r.exports=baseFlatten},34084:(r,n,s)=>{var a=s(3653),l=s(82231),u=s(35842);var d="[object Null]",A="[object Undefined]";var p=a?a.toStringTag:undefined;function baseGetTag(r){if(r==null){return r===undefined?A:d}return p&&p in Object(r)?l(r):u(r)}r.exports=baseGetTag},24711:(r,n,s)=>{var a=s(50951),l=s(69523),u=s(43323);function baseIndexOf(r,n,s){return n===n?u(r,n,s):a(r,l,s)}r.exports=baseIndexOf},92682:(r,n,s)=>{var a=s(34084),l=s(89806);var u="[object Arguments]";function baseIsArguments(r){return l(r)&&a(r)==u}r.exports=baseIsArguments},69523:r=>{function baseIsNaN(r){return r!==r}r.exports=baseIsNaN},5343:(r,n,s)=>{var a=s(97558),l=s(66484),u=s(65265),d=s(55269);var A=/[\\^$.*+?()[\]{}|]/g;var p=/^\[object .+?Constructor\]$/;var f=Function.prototype,g=Object.prototype;var y=f.toString;var b=g.hasOwnProperty;var C=RegExp("^"+y.call(b).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(r){if(!u(r)||l(r)){return false}var n=a(r)?C:p;return n.test(d(r))}r.exports=baseIsNative},38385:(r,n,s)=>{var a=s(34084),l=s(64858),u=s(89806);var d="[object Arguments]",A="[object Array]",p="[object Boolean]",f="[object Date]",g="[object Error]",y="[object Function]",b="[object Map]",C="[object Number]",w="[object Object]",B="[object RegExp]",I="[object Set]",S="[object String]",Q="[object WeakMap]";var v="[object ArrayBuffer]",R="[object DataView]",D="[object Float32Array]",N="[object Float64Array]",T="[object Int8Array]",x="[object Int16Array]",k="[object Int32Array]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",F="[object Uint16Array]",L="[object Uint32Array]";var O={};O[D]=O[N]=O[T]=O[x]=O[k]=O[_]=O[P]=O[F]=O[L]=true;O[d]=O[A]=O[v]=O[p]=O[R]=O[f]=O[g]=O[y]=O[b]=O[C]=O[w]=O[B]=O[I]=O[S]=O[Q]=false;function baseIsTypedArray(r){return u(r)&&l(r.length)&&!!O[a(r)]}r.exports=baseIsTypedArray},74955:(r,n,s)=>{var a=s(65265),l=s(43123),u=s(32161);var d=Object.prototype;var A=d.hasOwnProperty;function baseKeysIn(r){if(!a(r)){return u(r)}var n=l(r),s=[];for(var d in r){if(!(d=="constructor"&&(n||!A.call(r,d)))){s.push(d)}}return s}r.exports=baseKeysIn},96074:(r,n,s)=>{var a=s(39524),l=s(77113),u=s(43341);function baseRest(r,n){return u(l(r,n,a),r+"")}r.exports=baseRest},20806:(r,n,s)=>{var a=s(55370),l=s(71927),u=s(39524);var d=!l?u:function(r,n){return l(r,"toString",{configurable:true,enumerable:false,value:a(n),writable:true})};r.exports=d},29780:r=>{function baseTimes(r,n){var s=-1,a=Array(r);while(++s{function baseUnary(r){return function(n){return r(n)}}r.exports=baseUnary},601:(r,n,s)=>{var a=s(20415),l=s(85129),u=s(26077),d=s(58919),A=s(40689),p=s(11491);var f=200;function baseUniq(r,n,s){var g=-1,y=l,b=r.length,C=true,w=[],B=w;if(s){C=false;y=u}else if(b>=f){var I=n?null:A(r);if(I){return p(I)}C=false;y=d;B=new a}else{B=n?[]:w}e:while(++g{function cacheHas(r,n){return r.has(n)}r.exports=cacheHas},41589:(r,n,s)=>{var a=s(77425);var l=a["__core-js_shared__"];r.exports=l},40689:(r,n,s)=>{var a=s(92677),l=s(91346),u=s(11491);var d=1/0;var A=!(a&&1/u(new a([,-0]))[1]==d)?l:function(r){return new a(r)};r.exports=A},71927:(r,n,s)=>{var a=s(93578);var l=function(){try{var r=a(Object,"defineProperty");r({},"",{});return r}catch(r){}}();r.exports=l},69020:r=>{var n=typeof global=="object"&&global&&global.Object===Object&&global;r.exports=n},1335:(r,n,s)=>{var a=s(66102);function getMapData(r,n){var s=r.__data__;return a(n)?s[typeof n=="string"?"string":"hash"]:s.map}r.exports=getMapData},93578:(r,n,s)=>{var a=s(5343),l=s(3612);function getNative(r,n){var s=l(r,n);return a(s)?s:undefined}r.exports=getNative},85515:(r,n,s)=>{var a=s(47523);var l=a(Object.getPrototypeOf,Object);r.exports=l},82231:(r,n,s)=>{var a=s(3653);var l=Object.prototype;var u=l.hasOwnProperty;var d=l.toString;var A=a?a.toStringTag:undefined;function getRawTag(r){var n=u.call(r,A),s=r[A];try{r[A]=undefined;var a=true}catch(r){}var l=d.call(r);if(a){if(n){r[A]=s}else{delete r[A]}}return l}r.exports=getRawTag},3612:r=>{function getValue(r,n){return r==null?undefined:r[n]}r.exports=getValue},71428:(r,n,s)=>{var a=s(21222);function hashClear(){this.__data__=a?a(null):{};this.size=0}r.exports=hashClear},65682:r=>{function hashDelete(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}r.exports=hashDelete},33645:(r,n,s)=>{var a=s(21222);var l="__lodash_hash_undefined__";var u=Object.prototype;var d=u.hasOwnProperty;function hashGet(r){var n=this.__data__;if(a){var s=n[r];return s===l?undefined:s}return d.call(n,r)?n[r]:undefined}r.exports=hashGet},75393:(r,n,s)=>{var a=s(21222);var l=Object.prototype;var u=l.hasOwnProperty;function hashHas(r){var n=this.__data__;return a?n[r]!==undefined:u.call(n,r)}r.exports=hashHas},97129:(r,n,s)=>{var a=s(21222);var l="__lodash_hash_undefined__";function hashSet(r,n){var s=this.__data__;this.size+=this.has(r)?0:1;s[r]=a&&n===undefined?l:n;return this}r.exports=hashSet},68439:(r,n,s)=>{var a=s(3653),l=s(98656),u=s(30373);var d=a?a.isConcatSpreadable:undefined;function isFlattenable(r){return u(r)||l(r)||!!(d&&r&&r[d])}r.exports=isFlattenable},56197:r=>{var n=9007199254740991;var s=/^(?:0|[1-9]\d*)$/;function isIndex(r,a){var l=typeof r;a=a==null?n:a;return!!a&&(l=="number"||l!="symbol"&&s.test(r))&&(r>-1&&r%1==0&&r{var a=s(29548),l=s(82962),u=s(56197),d=s(65265);function isIterateeCall(r,n,s){if(!d(s)){return false}var A=typeof n;if(A=="number"?l(s)&&u(n,s.length):A=="string"&&n in s){return a(s[n],r)}return false}r.exports=isIterateeCall},66102:r=>{function isKeyable(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}r.exports=isKeyable},66484:(r,n,s)=>{var a=s(41589);var l=function(){var r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function isMasked(r){return!!l&&l in r}r.exports=isMasked},43123:r=>{var n=Object.prototype;function isPrototype(r){var s=r&&r.constructor,a=typeof s=="function"&&s.prototype||n;return r===a}r.exports=isPrototype},1018:r=>{function listCacheClear(){this.__data__=[];this.size=0}r.exports=listCacheClear},28700:(r,n,s)=>{var a=s(10117);var l=Array.prototype;var u=l.splice;function listCacheDelete(r){var n=this.__data__,s=a(n,r);if(s<0){return false}var l=n.length-1;if(s==l){n.pop()}else{u.call(n,s,1)}--this.size;return true}r.exports=listCacheDelete},19695:(r,n,s)=>{var a=s(10117);function listCacheGet(r){var n=this.__data__,s=a(n,r);return s<0?undefined:n[s][1]}r.exports=listCacheGet},75763:(r,n,s)=>{var a=s(10117);function listCacheHas(r){return a(this.__data__,r)>-1}r.exports=listCacheHas},24555:(r,n,s)=>{var a=s(10117);function listCacheSet(r,n){var s=this.__data__,l=a(s,r);if(l<0){++this.size;s.push([r,n])}else{s[l][1]=n}return this}r.exports=listCacheSet},46228:(r,n,s)=>{var a=s(4745),l=s(61755),u=s(62155);function mapCacheClear(){this.size=0;this.__data__={hash:new a,map:new(u||l),string:new a}}r.exports=mapCacheClear},9954:(r,n,s)=>{var a=s(1335);function mapCacheDelete(r){var n=a(this,r)["delete"](r);this.size-=n?1:0;return n}r.exports=mapCacheDelete},91805:(r,n,s)=>{var a=s(1335);function mapCacheGet(r){return a(this,r).get(r)}r.exports=mapCacheGet},30353:(r,n,s)=>{var a=s(1335);function mapCacheHas(r){return a(this,r).has(r)}r.exports=mapCacheHas},98809:(r,n,s)=>{var a=s(1335);function mapCacheSet(r,n){var s=a(this,r),l=s.size;s.set(r,n);this.size+=s.size==l?0:1;return this}r.exports=mapCacheSet},21222:(r,n,s)=>{var a=s(93578);var l=a(Object,"create");r.exports=l},32161:r=>{function nativeKeysIn(r){var n=[];if(r!=null){for(var s in Object(r)){n.push(s)}}return n}r.exports=nativeKeysIn},51837:(r,n,s)=>{r=s.nmd(r);var a=s(69020);var l=true&&n&&!n.nodeType&&n;var u=l&&"object"=="object"&&r&&!r.nodeType&&r;var d=u&&u.exports===l;var A=d&&a.process;var p=function(){try{var r=u&&u.require&&u.require("util").types;if(r){return r}return A&&A.binding&&A.binding("util")}catch(r){}}();r.exports=p},35842:r=>{var n=Object.prototype;var s=n.toString;function objectToString(r){return s.call(r)}r.exports=objectToString},47523:r=>{function overArg(r,n){return function(s){return r(n(s))}}r.exports=overArg},77113:(r,n,s)=>{var a=s(26373);var l=Math.max;function overRest(r,n,s){n=l(n===undefined?r.length-1:n,0);return function(){var u=arguments,d=-1,A=l(u.length-n,0),p=Array(A);while(++d{var a=s(69020);var l=typeof self=="object"&&self&&self.Object===Object&&self;var u=a||l||Function("return this")();r.exports=u},41248:r=>{var n="__lodash_hash_undefined__";function setCacheAdd(r){this.__data__.set(r,n);return this}r.exports=setCacheAdd},35839:r=>{function setCacheHas(r){return this.__data__.has(r)}r.exports=setCacheHas},11491:r=>{function setToArray(r){var n=-1,s=Array(r.size);r.forEach((function(r){s[++n]=r}));return s}r.exports=setToArray},43341:(r,n,s)=>{var a=s(20806),l=s(25495);var u=l(a);r.exports=u},25495:r=>{var n=800,s=16;var a=Date.now;function shortOut(r){var l=0,u=0;return function(){var d=a(),A=s-(d-u);u=d;if(A>0){if(++l>=n){return arguments[0]}}else{l=0}return r.apply(undefined,arguments)}}r.exports=shortOut},43323:r=>{function strictIndexOf(r,n,s){var a=s-1,l=r.length;while(++a{var n=Function.prototype;var s=n.toString;function toSource(r){if(r!=null){try{return s.call(r)}catch(r){}try{return r+""}catch(r){}}return""}r.exports=toSource},55370:r=>{function constant(r){return function(){return r}}r.exports=constant},79576:(r,n,s)=>{var a=s(96074),l=s(29548),u=s(6756),d=s(18821);var A=Object.prototype;var p=A.hasOwnProperty;var f=a((function(r,n){r=Object(r);var s=-1;var a=n.length;var f=a>2?n[2]:undefined;if(f&&u(n[0],n[1],f)){a=1}while(++s{var a=s(49031),l=s(93372),u=s(96074),d=s(53513);var A=u((function(r,n){return d(r)?a(r,l(n,1,d,true)):[]}));r.exports=A},29548:r=>{function eq(r,n){return r===n||r!==r&&n!==n}r.exports=eq},23462:(r,n,s)=>{var a=s(93372);function flatten(r){var n=r==null?0:r.length;return n?a(r,1):[]}r.exports=flatten},39524:r=>{function identity(r){return r}r.exports=identity},98656:(r,n,s)=>{var a=s(92682),l=s(89806);var u=Object.prototype;var d=u.hasOwnProperty;var A=u.propertyIsEnumerable;var p=a(function(){return arguments}())?a:function(r){return l(r)&&d.call(r,"callee")&&!A.call(r,"callee")};r.exports=p},30373:r=>{var n=Array.isArray;r.exports=n},82962:(r,n,s)=>{var a=s(97558),l=s(64858);function isArrayLike(r){return r!=null&&l(r.length)&&!a(r)}r.exports=isArrayLike},53513:(r,n,s)=>{var a=s(82962),l=s(89806);function isArrayLikeObject(r){return l(r)&&a(r)}r.exports=isArrayLikeObject},6148:(r,n,s)=>{r=s.nmd(r);var a=s(77425),l=s(90827);var u=true&&n&&!n.nodeType&&n;var d=u&&"object"=="object"&&r&&!r.nodeType&&r;var A=d&&d.exports===u;var p=A?a.Buffer:undefined;var f=p?p.isBuffer:undefined;var g=f||l;r.exports=g},97558:(r,n,s)=>{var a=s(34084),l=s(65265);var u="[object AsyncFunction]",d="[object Function]",A="[object GeneratorFunction]",p="[object Proxy]";function isFunction(r){if(!l(r)){return false}var n=a(r);return n==d||n==A||n==u||n==p}r.exports=isFunction},64858:r=>{var n=9007199254740991;function isLength(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=n}r.exports=isLength},65265:r=>{function isObject(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}r.exports=isObject},89806:r=>{function isObjectLike(r){return r!=null&&typeof r=="object"}r.exports=isObjectLike},48575:(r,n,s)=>{var a=s(34084),l=s(85515),u=s(89806);var d="[object Object]";var A=Function.prototype,p=Object.prototype;var f=A.toString;var g=p.hasOwnProperty;var y=f.call(Object);function isPlainObject(r){if(!u(r)||a(r)!=d){return false}var n=l(r);if(n===null){return true}var s=g.call(n,"constructor")&&n.constructor;return typeof s=="function"&&s instanceof s&&f.call(s)==y}r.exports=isPlainObject},70243:(r,n,s)=>{var a=s(38385),l=s(41473),u=s(51837);var d=u&&u.isTypedArray;var A=d?l(d):a;r.exports=A},18821:(r,n,s)=>{var a=s(45603),l=s(74955),u=s(82962);function keysIn(r){return u(r)?a(r,true):l(r)}r.exports=keysIn},91346:r=>{function noop(){}r.exports=noop},90827:r=>{function stubFalse(){return false}r.exports=stubFalse},48159:(r,n,s)=>{var a=s(93372),l=s(96074),u=s(601),d=s(53513);var A=l((function(r){return u(a(r,1,d,true))}));r.exports=A},43987:(r,n,s)=>{const a=s(2203);const l=a.PassThrough;const u=Array.prototype.slice;r.exports=merge2;function merge2(){const r=[];const n=u.call(arguments);let s=false;let a=n[n.length-1];if(a&&!Array.isArray(a)&&a.pipe==null){n.pop()}else{a={}}const d=a.end!==false;const A=a.pipeError===true;if(a.objectMode==null){a.objectMode=true}if(a.highWaterMark==null){a.highWaterMark=64*1024}const p=l(a);function addStream(){for(let n=0,s=arguments.length;n0){return}s=false;mergeStream()}function pipe(r){function onend(){r.removeListener("merge2UnpipeEnd",onend);r.removeListener("end",onend);if(A){r.removeListener("error",onerror)}next()}function onerror(r){p.emit("error",r)}if(r._readableState.endEmitted){return next()}r.on("merge2UnpipeEnd",onend);r.on("end",onend);if(A){r.on("error",onerror)}r.pipe(p,{end:false});r.resume()}for(let r=0;r{const a=s(39023);const l=s(37227);const u=s(39623);const d=s(98178);const isEmptyString=r=>r===""||r==="./";const hasBraces=r=>{const n=r.indexOf("{");return n>-1&&r.indexOf("}",n)>-1};const micromatch=(r,n,s)=>{n=[].concat(n);r=[].concat(r);let a=new Set;let l=new Set;let d=new Set;let A=0;let onResult=r=>{d.add(r.output);if(s&&s.onResult){s.onResult(r)}};for(let d=0;d!a.has(r)));if(s&&f.length===0){if(s.failglob===true){throw new Error(`No matches found for "${n.join(", ")}"`)}if(s.nonull===true||s.nullglob===true){return s.unescape?n.map((r=>r.replace(/\\/g,""))):n}}return f};micromatch.match=micromatch;micromatch.matcher=(r,n)=>u(r,n);micromatch.isMatch=(r,n,s)=>u(n,s)(r);micromatch.any=micromatch.isMatch;micromatch.not=(r,n,s={})=>{n=[].concat(n).map(String);let a=new Set;let l=[];let onResult=r=>{if(s.onResult)s.onResult(r);l.push(r.output)};let u=new Set(micromatch(r,n,{...s,onResult:onResult}));for(let r of l){if(!u.has(r)){a.add(r)}}return[...a]};micromatch.contains=(r,n,s)=>{if(typeof r!=="string"){throw new TypeError(`Expected a string: "${a.inspect(r)}"`)}if(Array.isArray(n)){return n.some((n=>micromatch.contains(r,n,s)))}if(typeof n==="string"){if(isEmptyString(r)||isEmptyString(n)){return false}if(r.includes(n)||r.startsWith("./")&&r.slice(2).includes(n)){return true}}return micromatch.isMatch(r,n,{...s,contains:true})};micromatch.matchKeys=(r,n,s)=>{if(!d.isObject(r)){throw new TypeError("Expected the first argument to be an object")}let a=micromatch(Object.keys(r),n,s);let l={};for(let n of a)l[n]=r[n];return l};micromatch.some=(r,n,s)=>{let a=[].concat(r);for(let r of[].concat(n)){let n=u(String(r),s);if(a.some((r=>n(r)))){return true}}return false};micromatch.every=(r,n,s)=>{let a=[].concat(r);for(let r of[].concat(n)){let n=u(String(r),s);if(!a.every((r=>n(r)))){return false}}return true};micromatch.all=(r,n,s)=>{if(typeof r!=="string"){throw new TypeError(`Expected a string: "${a.inspect(r)}"`)}return[].concat(n).every((n=>u(n,s)(r)))};micromatch.capture=(r,n,s)=>{let a=d.isWindows(s);let l=u.makeRe(String(r),{...s,capture:true});let A=l.exec(a?d.toPosixSlashes(n):n);if(A){return A.slice(1).map((r=>r===void 0?"":r))}};micromatch.makeRe=(...r)=>u.makeRe(...r);micromatch.scan=(...r)=>u.scan(...r);micromatch.parse=(r,n)=>{let s=[];for(let a of[].concat(r||[])){for(let r of l(String(a),n)){s.push(u.parse(r,n))}}return s};micromatch.braces=(r,n)=>{if(typeof r!=="string")throw new TypeError("Expected a string");if(n&&n.nobrace===true||!hasBraces(r)){return[r]}return l(r,n)};micromatch.braceExpand=(r,n)=>{if(typeof r!=="string")throw new TypeError("Expected a string");return micromatch.braces(r,{...n,expand:true})};micromatch.hasBraces=hasBraces;r.exports=micromatch},99391:r=>{const n=typeof process==="object"&&process&&process.platform==="win32";r.exports=n?{sep:"\\"}:{sep:"/"}},82278:(r,n,s)=>{const a=r.exports=(r,n,s={})=>{assertValidPattern(n);if(!s.nocomment&&n.charAt(0)==="#"){return false}return new Minimatch(n,s).match(r)};r.exports=a;const l=s(99391);a.sep=l.sep;const u=Symbol("globstar **");a.GLOBSTAR=u;const d=s(23033);const A={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const p="[^/]";const f=p+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const y="(?:(?!(?:\\/|^)\\.).)*?";const charSet=r=>r.split("").reduce(((r,n)=>{r[n]=true;return r}),{});const b=charSet("().*{}+?[]^$\\!");const C=charSet("[.(");const w=/\/+/;a.filter=(r,n={})=>(s,l,u)=>a(s,r,n);const ext=(r,n={})=>{const s={};Object.keys(r).forEach((n=>s[n]=r[n]));Object.keys(n).forEach((r=>s[r]=n[r]));return s};a.defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return a}const n=a;const m=(s,a,l)=>n(s,a,ext(r,l));m.Minimatch=class Minimatch extends n.Minimatch{constructor(n,s){super(n,ext(r,s))}};m.Minimatch.defaults=s=>n.defaults(ext(r,s)).Minimatch;m.filter=(s,a)=>n.filter(s,ext(r,a));m.defaults=s=>n.defaults(ext(r,s));m.makeRe=(s,a)=>n.makeRe(s,ext(r,a));m.braceExpand=(s,a)=>n.braceExpand(s,ext(r,a));m.match=(s,a,l)=>n.match(s,a,ext(r,l));return m};a.braceExpand=(r,n)=>braceExpand(r,n);const braceExpand=(r,n={})=>{assertValidPattern(r);if(n.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return d(r)};const B=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>B){throw new TypeError("pattern is too long")}};const I=Symbol("subparse");a.makeRe=(r,n)=>new Minimatch(r,n||{}).makeRe();a.match=(r,n,s={})=>{const a=new Minimatch(n,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(n)}return r};const globUnescape=r=>r.replace(/\\(.)/g,"$1");const charUnescape=r=>r.replace(/\\([^-\]])/g,"$1");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=r=>r.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(r,n){assertValidPattern(r);if(!n)n={};this.options=n;this.maxGlobstarRecursion=n.maxGlobstarRecursion!==undefined?n.maxGlobstarRecursion:200;this.set=[];this.pattern=r;this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!n.partial;this.make()}debug(){}make(){const r=this.pattern;const n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();let s=this.globSet=this.braceExpand();if(n.debug)this.debug=(...r)=>console.error(...r);this.debug(this.pattern,s);s=this.globParts=s.map((r=>r.split(w)));this.debug(this.pattern,s);s=s.map(((r,n,s)=>r.map(this.parse,this)));this.debug(this.pattern,s);s=s.filter((r=>r.indexOf(false)===-1));this.debug(this.pattern,s);this.set=s}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let n=false;let s=0;for(let a=0;a=0;r--){if(n[r]===u){A=r;break}}const p=n.slice(l,d);const f=s?n.slice(d+1):n.slice(d+1,A);const g=s?[]:n.slice(A+1);if(p.length){const n=r.slice(a,a+p.length);if(!this._matchOne(n,p,s,0,0)){return false}a+=p.length}let y=0;if(g.length){if(g.length+a>r.length)return false;const n=r.length-g.length;if(this._matchOne(r,g,s,n,0)){y=g.length}else{if(r[r.length-1]!==""||a+g.length===r.length){return false}if(!this._matchOne(r,g,s,n-1,0)){return false}y=g.length+1}}if(!f.length){let n=!!y;for(let s=a;sN?"":T?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=r=>r.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(w){switch(w){case"*":a+=f;l=true;break;case"?":a+=p;l=true;break;default:a+="\\"+w;break}this.debug("clearStateChar %j %j",w,a);w=false}};for(let n=0,u;n{if(!s){s="\\"}return n+n+s+"|"}));this.debug("tail=%j\n %s",r,r,R,a);const n=R.type==="*"?f:R.type==="?"?p:"\\"+R.type;l=true;a=a.slice(0,R.reStart)+n+"\\("+r}clearStateChar();if(d){a+="\\\\"}const x=C[a.charAt(0)];for(let r=y.length-1;r>-1;r--){const s=y[r];const l=a.slice(0,s.reStart);const u=a.slice(s.reStart,s.reEnd-8);let d=a.slice(s.reEnd);const A=a.slice(s.reEnd-8,s.reEnd)+d;const p=l.split(")").length;const f=l.split("(").length-p;let g=d;for(let r=0;r{r=r.map((r=>typeof r==="string"?regExpEscape(r):r===u?u:r._src)).reduce(((r,n)=>{if(!(r[r.length-1]===u&&n===u)){r.push(n)}return r}),[]);r.forEach(((n,a)=>{if(n!==u||r[a-1]===u){return}if(a===0){if(r.length>1){r[a+1]="(?:\\/|"+s+"\\/)?"+r[a+1]}else{r[a]=s}}else if(a===r.length-1){r[a-1]+="(?:\\/|"+s+")?"}else{r[a-1]+="(?:\\/|\\/"+s+"\\/)"+r[a+1];r[a+1]=u}}));return r.filter((r=>r!==u)).join("/")})).join("|");l="^(?:"+l+")$";if(this.negate)l="^(?!"+l+").*$";try{this.regexp=new RegExp(l,a)}catch(r){this.regexp=false}return this.regexp}match(r,n=this.partial){this.debug("match",r,this.pattern);if(this.comment)return false;if(this.empty)return r==="";if(r==="/"&&n)return true;const s=this.options;if(l.sep!=="/"){r=r.split(l.sep).join("/")}r=r.split(w);this.debug(this.pattern,"split",r);const a=this.set;this.debug(this.pattern,"set",a);let u;for(let n=r.length-1;n>=0;n--){u=r[n];if(u)break}for(let l=0;l{var a=s(16928);var l=s(79896);var u=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,n,s,d){if(typeof n==="function"){s=n;n={}}else if(!n||typeof n!=="object"){n={mode:n}}var A=n.mode;var p=n.fs||l;if(A===undefined){A=u}if(!d)d=null;var f=s||function(){};r=a.resolve(r);p.mkdir(r,A,(function(s){if(!s){d=d||r;return f(null,d)}switch(s.code){case"ENOENT":if(a.dirname(r)===r)return f(s);mkdirP(a.dirname(r),n,(function(s,a){if(s)f(s,a);else mkdirP(r,n,f,a)}));break;default:p.stat(r,(function(r,n){if(r||!n.isDirectory())f(s,d);else f(null,d)}));break}}))}mkdirP.sync=function sync(r,n,s){if(!n||typeof n!=="object"){n={mode:n}}var d=n.mode;var A=n.fs||l;if(d===undefined){d=u}if(!s)s=null;r=a.resolve(r);try{A.mkdirSync(r,d);s=s||r}catch(l){switch(l.code){case"ENOENT":s=sync(a.dirname(r),n,s);sync(r,n,s);break;default:var p;try{p=A.statSync(r)}catch(r){throw l}if(!p.isDirectory())throw l;break}}return s}},26647:r=>{var n=1e3;var s=n*60;var a=s*60;var l=a*24;var u=l*7;var d=l*365.25;r.exports=function(r,n){n=n||{};var s=typeof r;if(s==="string"&&r.length>0){return parse(r)}else if(s==="number"&&isFinite(r)){return n.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!A){return}var p=parseFloat(A[1]);var f=(A[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*d;case"weeks":case"week":case"w":return p*u;case"days":case"day":case"d":return p*l;case"hours":case"hour":case"hrs":case"hr":case"h":return p*a;case"minutes":case"minute":case"mins":case"min":case"m":return p*s;case"seconds":case"second":case"secs":case"sec":case"s":return p*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return undefined}}function fmtShort(r){var u=Math.abs(r);if(u>=l){return Math.round(r/l)+"d"}if(u>=a){return Math.round(r/a)+"h"}if(u>=s){return Math.round(r/s)+"m"}if(u>=n){return Math.round(r/n)+"s"}return r+"ms"}function fmtLong(r){var u=Math.abs(r);if(u>=l){return plural(r,u,l,"day")}if(u>=a){return plural(r,u,a,"hour")}if(u>=s){return plural(r,u,s,"minute")}if(u>=n){return plural(r,u,n,"second")}return r+" ms"}function plural(r,n,s,a){var l=n>=s*1.5;return Math.round(r/s)+" "+a+(l?"s":"")}},52398:r=>{ +r.exports=function(r){if(typeof r==="number"){return r-r===0}if(typeof r==="string"&&r.trim()!==""){return Number.isFinite?Number.isFinite(+r):isFinite(+r)}return false}},96543:r=>{const isStream=r=>r!==null&&typeof r==="object"&&typeof r.pipe==="function";isStream.writable=r=>isStream(r)&&r.writable!==false&&typeof r._write==="function"&&typeof r._writableState==="object";isStream.readable=r=>isStream(r)&&r.readable!==false&&typeof r._read==="function"&&typeof r._readableState==="object";isStream.duplex=r=>isStream.writable(r)&&isStream.readable(r);isStream.transform=r=>isStream.duplex(r)&&typeof r._transform==="function";r.exports=isStream},82513:r=>{var n={}.toString;r.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},72940:(r,n,s)=>{var a=s(79896);var l;if(process.platform==="win32"||global.TESTING_WINDOWS){l=s(59225)}else{l=s(81025)}r.exports=isexe;isexe.sync=sync;function isexe(r,n,s){if(typeof n==="function"){s=n;n={}}if(!s){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(s,a){isexe(r,n||{},(function(r,n){if(r){a(r)}else{s(n)}}))}))}l(r,n||{},(function(r,a){if(r){if(r.code==="EACCES"||n&&n.ignoreErrors){r=null;a=false}}s(r,a)}))}function sync(r,n){try{return l.sync(r,n||{})}catch(r){if(n&&n.ignoreErrors||r.code==="EACCES"){return false}else{throw r}}}},81025:(r,n,s)=>{r.exports=isexe;isexe.sync=sync;var a=s(79896);function isexe(r,n,s){a.stat(r,(function(r,a){s(r,r?false:checkStat(a,n))}))}function sync(r,n){return checkStat(a.statSync(r),n)}function checkStat(r,n){return r.isFile()&&checkMode(r,n)}function checkMode(r,n){var s=r.mode;var a=r.uid;var l=r.gid;var u=n.uid!==undefined?n.uid:process.getuid&&process.getuid();var d=n.gid!==undefined?n.gid:process.getgid&&process.getgid();var A=parseInt("100",8);var p=parseInt("010",8);var f=parseInt("001",8);var g=A|p;var y=s&f||s&p&&l===d||s&A&&a===u||s&g&&u===0;return y}},59225:(r,n,s)=>{r.exports=isexe;isexe.sync=sync;var a=s(79896);function checkPathExt(r,n){var s=n.pathExt!==undefined?n.pathExt:process.env.PATHEXT;if(!s){return true}s=s.split(";");if(s.indexOf("")!==-1){return true}for(var a=0;a{const a=s(55438);const l=s(91568);const u={parse:a,stringify:l};r.exports=u},55438:(r,n,s)=>{const a=s(37393);let l;let u;let d;let A;let p;let f;let g;let y;let b;r.exports=function parse(r,n){l=String(r);u="start";d=[];A=0;p=1;f=0;g=undefined;y=undefined;b=undefined;do{g=lex();v[u]()}while(g.type!=="eof");if(typeof n==="function"){return internalize({"":b},"",n)}return b};function internalize(r,n,s){const a=r[n];if(a!=null&&typeof a==="object"){if(Array.isArray(a)){for(let r=0;r0){const n=peek();if(!a.isHexDigit(n)){throw invalidChar(read())}r+=read()}return String.fromCodePoint(parseInt(r,16))}const v={start(){if(g.type==="eof"){throw invalidEOF()}push()},beforePropertyName(){switch(g.type){case"identifier":case"string":y=g.value;u="afterPropertyName";return;case"punctuator":pop();return;case"eof":throw invalidEOF()}},afterPropertyName(){if(g.type==="eof"){throw invalidEOF()}u="beforePropertyValue"},beforePropertyValue(){if(g.type==="eof"){throw invalidEOF()}push()},beforeArrayValue(){if(g.type==="eof"){throw invalidEOF()}if(g.type==="punctuator"&&g.value==="]"){pop();return}push()},afterPropertyValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforePropertyName";return;case"}":pop()}},afterArrayValue(){if(g.type==="eof"){throw invalidEOF()}switch(g.value){case",":u="beforeArrayValue";return;case"]":pop()}},end(){}};function push(){let r;switch(g.type){case"punctuator":switch(g.value){case"{":r={};break;case"[":r=[];break}break;case"null":case"boolean":case"numeric":case"string":r=g.value;break}if(b===undefined){b=r}else{const n=d[d.length-1];if(Array.isArray(n)){n.push(r)}else{Object.defineProperty(n,y,{value:r,writable:true,enumerable:true,configurable:true})}}if(r!==null&&typeof r==="object"){d.push(r);if(Array.isArray(r)){u="beforeArrayValue"}else{u="beforePropertyName"}}else{const r=d[d.length-1];if(r==null){u="end"}else if(Array.isArray(r)){u="afterArrayValue"}else{u="afterPropertyValue"}}}function pop(){d.pop();const r=d[d.length-1];if(r==null){u="end"}else if(Array.isArray(r)){u="afterArrayValue"}else{u="afterPropertyValue"}}function invalidChar(r){if(r===undefined){return syntaxError(`JSON5: invalid end of input at ${p}:${f}`)}return syntaxError(`JSON5: invalid character '${formatChar(r)}' at ${p}:${f}`)}function invalidEOF(){return syntaxError(`JSON5: invalid end of input at ${p}:${f}`)}function invalidIdentifier(){f-=5;return syntaxError(`JSON5: invalid identifier character at ${p}:${f}`)}function separatorChar(r){console.warn(`JSON5: '${formatChar(r)}' in strings is not valid ECMAScript; consider escaping`)}function formatChar(r){const n={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(n[r]){return n[r]}if(r<" "){const n=r.charCodeAt(0).toString(16);return"\\x"+("00"+n).substring(n.length)}return r}function syntaxError(r){const n=new SyntaxError(r);n.lineNumber=p;n.columnNumber=f;return n}},91568:(r,n,s)=>{const a=s(37393);r.exports=function stringify(r,n,s){const l=[];let u="";let d;let A;let p="";let f;if(n!=null&&typeof n==="object"&&!Array.isArray(n)){s=n.space;f=n.quote;n=n.replacer}if(typeof n==="function"){A=n}else if(Array.isArray(n)){d=[];for(const r of n){let n;if(typeof r==="string"){n=r}else if(typeof r==="number"||r instanceof String||r instanceof Number){n=String(r)}if(n!==undefined&&d.indexOf(n)<0){d.push(n)}}}if(s instanceof Number){s=Number(s)}else if(s instanceof String){s=String(s)}if(typeof s==="number"){if(s>0){s=Math.min(10,Math.floor(s));p=" ".substr(0,s)}}else if(typeof s==="string"){p=s.substr(0,10)}return serializeProperty("",{"":r});function serializeProperty(r,n){let s=n[r];if(s!=null){if(typeof s.toJSON5==="function"){s=s.toJSON5(r)}else if(typeof s.toJSON==="function"){s=s.toJSON(r)}}if(A){s=A.call(n,r,s)}if(s instanceof Number){s=Number(s)}else if(s instanceof String){s=String(s)}else if(s instanceof Boolean){s=s.valueOf()}switch(s){case null:return"null";case true:return"true";case false:return"false"}if(typeof s==="string"){return quoteString(s,false)}if(typeof s==="number"){return String(s)}if(typeof s==="object"){return Array.isArray(s)?serializeArray(s):serializeObject(s)}return undefined}function quoteString(r){const n={"'":.1,'"':.2};const s={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let l="";for(let u=0;un[r]=0){throw TypeError("Converting circular structure to JSON5")}l.push(r);let n=u;u=u+p;let s=d||Object.keys(r);let a=[];for(const n of s){const s=serializeProperty(n,r);if(s!==undefined){let r=serializeKey(n)+":";if(p!==""){r+=" "}r+=s;a.push(r)}}let A;if(a.length===0){A="{}"}else{let r;if(p===""){r=a.join(",");A="{"+r+"}"}else{let s=",\n"+u;r=a.join(s);A="{\n"+u+r+",\n"+n+"}"}}l.pop();u=n;return A}function serializeKey(r){if(r.length===0){return quoteString(r,true)}const n=String.fromCodePoint(r.codePointAt(0));if(!a.isIdStartChar(n)){return quoteString(r,true)}for(let s=n.length;s=0){throw TypeError("Converting circular structure to JSON5")}l.push(r);let n=u;u=u+p;let s=[];for(let n=0;n{r.exports.Space_Separator=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;r.exports.ID_Start=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F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uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC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1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;r.exports.ID_Continue=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B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-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB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uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/},37393:(r,n,s)=>{const a=s(57414);r.exports={isSpaceSeparator(r){return typeof r==="string"&&a.Space_Separator.test(r)},isIdStartChar(r){return typeof r==="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r==="$"||r==="_"||a.ID_Start.test(r))},isIdContinueChar(r){return typeof r==="string"&&(r>="a"&&r<="z"||r>="A"&&r<="Z"||r>="0"&&r<="9"||r==="$"||r==="_"||r==="‌"||r==="‍"||a.ID_Continue.test(r))},isDigit(r){return typeof r==="string"&&/[0-9]/.test(r)},isHexDigit(r){return typeof r==="string"&&/[0-9A-Fa-f]/.test(r)}}},32126:(r,n,s)=>{var a=s(39023);var l=s(1835);r.exports={Readable:Readable,Writable:Writable};a.inherits(Readable,l);a.inherits(Writable,l);function beforeFirstCall(r,n,s){r[n]=function(){delete r[n];s.apply(this,arguments);return this[n].apply(this,arguments)}}function Readable(r,n){if(!(this instanceof Readable))return new Readable(r,n);l.call(this,n);beforeFirstCall(this,"_read",(function(){var s=r.call(this,n);var a=this.emit.bind(this,"error");s.on("error",a);s.pipe(this)}));this.emit("readable")}function Writable(r,n){if(!(this instanceof Writable))return new Writable(r,n);l.call(this,n);beforeFirstCall(this,"_write",(function(){var s=r.call(this,n);var a=this.emit.bind(this,"error");s.on("error",a);this.pipe(s)}));this.emit("writable")}},34793:(r,n,s)=>{var a=s(41564);var l=Object.keys||function(r){var n=[];for(var s in r){n.push(s)}return n};r.exports=Duplex;var u=Object.create(s(45481));u.inherits=s(39598);var d=s(74559);var A=s(54579);u.inherits(Duplex,d);{var p=l(A.prototype);for(var f=0;f{r.exports=PassThrough;var a=s(69343);var l=Object.create(s(45481));l.inherits=s(39598);l.inherits(PassThrough,a);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);a.call(this,r)}PassThrough.prototype._transform=function(r,n,s){s(null,r)}},74559:(r,n,s)=>{var a=s(41564);r.exports=Readable;var l=s(82513);var u;Readable.ReadableState=ReadableState;var d=s(24434).EventEmitter;var EElistenerCount=function(r,n){return r.listeners(n).length};var A=s(87137);var p=s(13644).Buffer;var f=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return p.from(r)}function _isUint8Array(r){return p.isBuffer(r)||r instanceof f}var g=Object.create(s(45481));g.inherits=s(39598);var y=s(39023);var b=void 0;if(y&&y.debuglog){b=y.debuglog("stream")}else{b=function(){}}var C=s(46127);var w=s(91031);var B;g.inherits(Readable,A);var I=["error","close","destroy","pause","resume"];function prependListener(r,n,s){if(typeof r.prependListener==="function")return r.prependListener(n,s);if(!r._events||!r._events[n])r.on(n,s);else if(l(r._events[n]))r._events[n].unshift(s);else r._events[n]=[s,r._events[n]]}function ReadableState(r,n){u=u||s(34793);r=r||{};var a=n instanceof u;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.readableObjectMode;var l=r.highWaterMark;var d=r.readableHighWaterMark;var A=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(d||d===0))this.highWaterMark=d;else this.highWaterMark=A;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new C;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!B)B=s(50176).I;this.decoder=new B(r.encoding);this.encoding=r.encoding}}function Readable(r){u=u||s(34793);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}A.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=w.destroy;Readable.prototype._undestroy=w.undestroy;Readable.prototype._destroy=function(r,n){this.push(null);n(r)};Readable.prototype.push=function(r,n){var s=this._readableState;var a;if(!s.objectMode){if(typeof r==="string"){n=n||s.defaultEncoding;if(n!==s.encoding){r=p.from(r,n);n=""}a=true}}else{a=true}return readableAddChunk(this,r,n,false,a)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,n,s,a,l){var u=r._readableState;if(n===null){u.reading=false;onEofChunk(r,u)}else{var d;if(!l)d=chunkInvalid(u,n);if(d){r.emit("error",d)}else if(u.objectMode||n&&n.length>0){if(typeof n!=="string"&&!u.objectMode&&Object.getPrototypeOf(n)!==p.prototype){n=_uint8ArrayToBuffer(n)}if(a){if(u.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,u,n,true)}else if(u.ended){r.emit("error",new Error("stream.push() after EOF"))}else{u.reading=false;if(u.decoder&&!s){n=u.decoder.write(n);if(u.objectMode||n.length!==0)addChunk(r,u,n,false);else maybeReadMore(r,u)}else{addChunk(r,u,n,false)}}}else if(!a){u.reading=false}}return needMoreData(u)}function addChunk(r,n,s,a){if(n.flowing&&n.length===0&&!n.sync){r.emit("data",s);r.read(0)}else{n.length+=n.objectMode?1:s.length;if(a)n.buffer.unshift(s);else n.buffer.push(s);if(n.needReadable)emitReadable(r)}maybeReadMore(r,n)}function chunkInvalid(r,n){var s;if(!_isUint8Array(n)&&typeof n!=="string"&&n!==undefined&&!r.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=S){r=S}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,n){if(r<=0||n.length===0&&n.ended)return 0;if(n.objectMode)return 1;if(r!==r){if(n.flowing&&n.length)return n.buffer.head.data.length;else return n.length}if(r>n.highWaterMark)n.highWaterMark=computeNewHighWaterMark(r);if(r<=n.length)return r;if(!n.ended){n.needReadable=true;return 0}return n.length}Readable.prototype.read=function(r){b("read",r);r=parseInt(r,10);var n=this._readableState;var s=r;if(r!==0)n.emittedReadable=false;if(r===0&&n.needReadable&&(n.length>=n.highWaterMark||n.ended)){b("read: emitReadable",n.length,n.ended);if(n.length===0&&n.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,n);if(r===0&&n.ended){if(n.length===0)endReadable(this);return null}var a=n.needReadable;b("need readable",a);if(n.length===0||n.length-r0)l=fromList(r,n);else l=null;if(l===null){n.needReadable=true;r=0}else{n.length-=r}if(n.length===0){if(!n.ended)n.needReadable=true;if(s!==r&&n.ended)endReadable(this)}if(l!==null)this.emit("data",l);return l};function onEofChunk(r,n){if(n.ended)return;if(n.decoder){var s=n.decoder.end();if(s&&s.length){n.buffer.push(s);n.length+=n.objectMode?1:s.length}}n.ended=true;emitReadable(r)}function emitReadable(r){var n=r._readableState;n.needReadable=false;if(!n.emittedReadable){b("emitReadable",n.flowing);n.emittedReadable=true;if(n.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){b("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,n){if(!n.readingMore){n.readingMore=true;a.nextTick(maybeReadMore_,r,n)}}function maybeReadMore_(r,n){var s=n.length;while(!n.reading&&!n.flowing&&!n.ended&&n.length1&&indexOf(l.pipes,r)!==-1)&&!p){b("false write response, pause",l.awaitDrain);l.awaitDrain++;f=true}s.pause()}}function onerror(n){b("onerror",n);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",n)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){b("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){b("unpipe");s.unpipe(r)}r.emit("pipe",s);if(!l.flowing){b("pipe resume");s.resume()}return r};function pipeOnDrain(r){return function(){var n=r._readableState;b("pipeOnDrain",n.awaitDrain);if(n.awaitDrain)n.awaitDrain--;if(n.awaitDrain===0&&EElistenerCount(r,"data")){n.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var n=this._readableState;var s={hasUnpiped:false};if(n.pipesCount===0)return this;if(n.pipesCount===1){if(r&&r!==n.pipes)return this;if(!r)r=n.pipes;n.pipes=null;n.pipesCount=0;n.flowing=false;if(r)r.emit("unpipe",this,s);return this}if(!r){var a=n.pipes;var l=n.pipesCount;n.pipes=null;n.pipesCount=0;n.flowing=false;for(var u=0;u=n.length){if(n.decoder)s=n.buffer.join("");else if(n.buffer.length===1)s=n.buffer.head.data;else s=n.buffer.concat(n.length);n.buffer.clear()}else{s=fromListPartial(r,n.buffer,n.decoder)}return s}function fromListPartial(r,n,s){var a;if(ru.length?u.length:r;if(d===u.length)l+=u;else l+=u.slice(0,r);r-=d;if(r===0){if(d===u.length){++a;if(s.next)n.head=s.next;else n.head=n.tail=null}else{n.head=s;s.data=u.slice(d)}break}++a}n.length-=a;return l}function copyFromBuffer(r,n){var s=p.allocUnsafe(r);var a=n.head;var l=1;a.data.copy(s);r-=a.data.length;while(a=a.next){var u=a.data;var d=r>u.length?u.length:r;u.copy(s,s.length-r,0,d);r-=d;if(r===0){if(d===u.length){++l;if(a.next)n.head=a.next;else n.head=n.tail=null}else{n.head=a;a.data=u.slice(d)}break}++l}n.length-=l;return s}function endReadable(r){var n=r._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!n.endEmitted){n.ended=true;a.nextTick(endReadableNT,n,r)}}function endReadableNT(r,n){if(!r.endEmitted&&r.length===0){r.endEmitted=true;n.readable=false;n.emit("end")}}function indexOf(r,n){for(var s=0,a=r.length;s{r.exports=Transform;var a=s(34793);var l=Object.create(s(45481));l.inherits=s(39598);l.inherits(Transform,a);function afterTransform(r,n){var s=this._transformState;s.transforming=false;var a=s.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}s.writechunk=null;s.writecb=null;if(n!=null)this.push(n);a(r);var l=this._readableState;l.reading=false;if(l.needReadable||l.length{var a=s(41564);r.exports=Writable;function WriteReq(r,n,s){this.chunk=r;this.encoding=n;this.callback=s;this.next=null}function CorkedRequest(r){var n=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(n,r)}}var l=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;var u;Writable.WritableState=WritableState;var d=Object.create(s(45481));d.inherits=s(39598);var A={deprecate:s(24488)};var p=s(87137);var f=s(13644).Buffer;var g=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return f.from(r)}function _isUint8Array(r){return f.isBuffer(r)||r instanceof g}var y=s(91031);d.inherits(Writable,p);function nop(){}function WritableState(r,n){u=u||s(34793);r=r||{};var a=n instanceof u;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.writableObjectMode;var l=r.highWaterMark;var d=r.writableHighWaterMark;var A=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(d||d===0))this.highWaterMark=d;else this.highWaterMark=A;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var p=r.decodeStrings===false;this.decodeStrings=!p;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(n,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var n=[];while(r){n.push(r);r=r.next}return n};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:A.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var b;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){b=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(b.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{b=function(r){return r instanceof this}}function Writable(r){u=u||s(34793);if(!b.call(Writable,this)&&!(this instanceof u)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}p.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,n){var s=new Error("write after end");r.emit("error",s);a.nextTick(n,s)}function validChunk(r,n,s,l){var u=true;var d=false;if(s===null){d=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!n.objectMode){d=new TypeError("Invalid non-string/buffer chunk")}if(d){r.emit("error",d);a.nextTick(l,d);u=false}return u}Writable.prototype.write=function(r,n,s){var a=this._writableState;var l=false;var u=!a.objectMode&&_isUint8Array(r);if(u&&!f.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof n==="function"){s=n;n=null}if(u)n="buffer";else if(!n)n=a.defaultEncoding;if(typeof s!=="function")s=nop;if(a.ended)writeAfterEnd(this,s);else if(u||validChunk(this,a,r,s)){a.pendingcb++;l=writeOrBuffer(this,a,u,r,n,s)}return l};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,n,s){if(!r.objectMode&&r.decodeStrings!==false&&typeof n==="string"){n=f.from(n,s)}return n}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,n,s,a,l,u){if(!s){var d=decodeChunk(n,a,l);if(a!==d){s=true;l="buffer";a=d}}var A=n.objectMode?1:a.length;n.length+=A;var p=n.length{function _classCallCheck(r,n){if(!(r instanceof n)){throw new TypeError("Cannot call a class as a function")}}var a=s(13644).Buffer;var l=s(39023);function copyBuffer(r,n,s){r.copy(n,s)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var n={data:r,next:null};if(this.length>0)this.tail.next=n;else this.head=n;this.tail=n;++this.length};BufferList.prototype.unshift=function unshift(r){var n={data:r,next:this.head};if(this.length===0)this.tail=n;this.head=n;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var n=this.head;var s=""+n.data;while(n=n.next){s+=r+n.data}return s};BufferList.prototype.concat=function concat(r){if(this.length===0)return a.alloc(0);var n=a.allocUnsafe(r>>>0);var s=this.head;var l=0;while(s){copyBuffer(s.data,n,l);l+=s.data.length;s=s.next}return n};return BufferList}();if(l&&l.inspect&&l.inspect.custom){r.exports.prototype[l.inspect.custom]=function(){var r=l.inspect({length:this.length});return this.constructor.name+" "+r}}},91031:(r,n,s)=>{var a=s(41564);function destroy(r,n){var s=this;var l=this._readableState&&this._readableState.destroyed;var u=this._writableState&&this._writableState.destroyed;if(l||u){if(n){n(r)}else if(r){if(!this._writableState){a.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;a.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!n&&r){if(!s._writableState){a.nextTick(emitErrorNT,s,r)}else if(!s._writableState.errorEmitted){s._writableState.errorEmitted=true;a.nextTick(emitErrorNT,s,r)}}else if(n){n(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,n){r.emit("error",n)}r.exports={destroy:destroy,undestroy:undestroy}},87137:(r,n,s)=>{r.exports=s(2203)},1835:(r,n,s)=>{r.exports=s(73109).PassThrough},73109:(r,n,s)=>{var a=s(2203);if(process.env.READABLE_STREAM==="disable"&&a){r.exports=a;n=r.exports=a.Readable;n.Readable=a.Readable;n.Writable=a.Writable;n.Duplex=a.Duplex;n.Transform=a.Transform;n.PassThrough=a.PassThrough;n.Stream=a}else{n=r.exports=s(74559);n.Stream=a||n;n.Readable=n;n.Writable=s(54579);n.Duplex=s(34793);n.Transform=s(69343);n.PassThrough=s(72029)}},13644:(r,n,s)=>{var a=s(20181);var l=a.Buffer;function copyProps(r,n){for(var s in r){n[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,n);n.Buffer=SafeBuffer}function SafeBuffer(r,n,s){return l(r,n,s)}copyProps(l,SafeBuffer);SafeBuffer.from=function(r,n,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,n,s)};SafeBuffer.alloc=function(r,n,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(n!==undefined){if(typeof s==="string"){a.fill(n,s)}else{a.fill(n)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},50176:(r,n,s)=>{var a=s(13644).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.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 true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var n;while(true){switch(r){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 r;default:if(n)return;r=(""+r).toLowerCase();n=true}}}function normalizeEncoding(r){var n=_normalizeEncoding(r);if(typeof n!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return n||r}n.I=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(n)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var n;var s;if(this.lastNeed){n=this.fillLast(r);if(n===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,n,s){var a=n.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,n,s){if((n[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&n.length>1){if((n[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&n.length>2){if((n[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var n=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,n);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,n,0,r.length);this.lastNeed-=r.length}function utf8Text(r,n){var s=utf8CheckIncomplete(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",n,a)}function utf8End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+"�";return n}function utf16Text(r,n){if((r.length-n)%2===0){var s=r.toString("utf16le",n);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",n,r.length-1)}function utf16End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function base64Text(r,n){var s=(r.length-n)%3;if(s===0)return r.toString("base64",n);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",n,r.length-s)}function base64End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+this.lastChar.toString("base64",0,3-this.lastNeed);return n}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},66320:(r,n,s)=>{var a=s(48051),l=s(15431),u=s(26934),d=s(64306),A=s(17226);function Hash(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(99791),l=s(24555),u=s(86634),d=s(8430),A=s(36918);function ListCache(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(68573),l=s(6748);var u=a(l,"Map");r.exports=u},79660:(r,n,s)=>{var a=s(88487),l=s(36275),u=s(30130),d=s(69254),A=s(59806);function MapCache(r){var n=-1,s=r==null?0:r.length;this.clear();while(++n{var a=s(68573),l=s(6748);var u=a(l,"Set");r.exports=u},23706:(r,n,s)=>{var a=s(79660),l=s(44671),u=s(71884);function SetCache(r){var n=-1,s=r==null?0:r.length;this.__data__=new a;while(++n{var a=s(6748);var l=a.Symbol;r.exports=l},59678:r=>{function apply(r,n,s){switch(s.length){case 0:return r.call(n);case 1:return r.call(n,s[0]);case 2:return r.call(n,s[0],s[1]);case 3:return r.call(n,s[0],s[1],s[2])}return r.apply(n,s)}r.exports=apply},70534:(r,n,s)=>{var a=s(84760);function arrayIncludes(r,n){var s=r==null?0:r.length;return!!s&&a(r,n,0)>-1}r.exports=arrayIncludes},37314:r=>{function arrayIncludesWith(r,n,s){var a=-1,l=r==null?0:r.length;while(++a{var a=s(21299),l=s(60541),u=s(77192),d=s(43739),A=s(37446),p=s(35e3);var f=Object.prototype;var g=f.hasOwnProperty;function arrayLikeKeys(r,n){var s=u(r),f=!s&&l(r),y=!s&&!f&&d(r),b=!s&&!f&&!y&&p(r),C=s||f||y||b,w=C?a(r.length,String):[],B=w.length;for(var I in r){if((n||g.call(r,I))&&!(C&&(I=="length"||y&&(I=="offset"||I=="parent")||b&&(I=="buffer"||I=="byteLength"||I=="byteOffset")||A(I,B)))){w.push(I)}}return w}r.exports=arrayLikeKeys},56649:r=>{function arrayMap(r,n){var s=-1,a=r==null?0:r.length,l=Array(a);while(++s{function arrayPush(r,n){var s=-1,a=n.length,l=r.length;while(++s{var a=s(75199);function assocIndexOf(r,n){var s=r.length;while(s--){if(a(r[s][0],n)){return s}}return-1}r.exports=assocIndexOf},3126:(r,n,s)=>{var a=s(23706),l=s(70534),u=s(37314),d=s(56649),A=s(55506),p=s(64486);var f=200;function baseDifference(r,n,s,g){var y=-1,b=l,C=true,w=r.length,B=[],I=n.length;if(!w){return B}if(s){n=d(n,A(s))}if(g){b=u;C=false}else if(n.length>=f){b=p;C=false;n=new a(n)}e:while(++y{function baseFindIndex(r,n,s,a){var l=r.length,u=s+(a?1:-1);while(a?u--:++u{var a=s(50827),l=s(45088);function baseFlatten(r,n,s,u,d){var A=-1,p=r.length;s||(s=l);d||(d=[]);while(++A0&&s(f)){if(n>1){baseFlatten(f,n-1,s,u,d)}else{a(d,f)}}else if(!u){d[d.length]=f}}return d}r.exports=baseFlatten},29117:(r,n,s)=>{var a=s(38584),l=s(95292),u=s(71723);var d="[object Null]",A="[object Undefined]";var p=a?a.toStringTag:undefined;function baseGetTag(r){if(r==null){return r===undefined?A:d}return p&&p in Object(r)?l(r):u(r)}r.exports=baseGetTag},84760:(r,n,s)=>{var a=s(35588),l=s(34352),u=s(95232);function baseIndexOf(r,n,s){return n===n?u(r,n,s):a(r,l,s)}r.exports=baseIndexOf},93605:(r,n,s)=>{var a=s(29117),l=s(51645);var u="[object Arguments]";function baseIsArguments(r){return l(r)&&a(r)==u}r.exports=baseIsArguments},34352:r=>{function baseIsNaN(r){return r!==r}r.exports=baseIsNaN},92334:(r,n,s)=>{var a=s(34329),l=s(46613),u=s(96482),d=s(57192);var A=/[\\^$.*+?()[\]{}|]/g;var p=/^\[object .+?Constructor\]$/;var f=Function.prototype,g=Object.prototype;var y=f.toString;var b=g.hasOwnProperty;var C=RegExp("^"+y.call(b).replace(A,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(r){if(!u(r)||l(r)){return false}var n=a(r)?C:p;return n.test(d(r))}r.exports=baseIsNative},16880:(r,n,s)=>{var a=s(29117),l=s(56657),u=s(51645);var d="[object Arguments]",A="[object Array]",p="[object Boolean]",f="[object Date]",g="[object Error]",y="[object Function]",b="[object Map]",C="[object Number]",w="[object Object]",B="[object RegExp]",I="[object Set]",S="[object String]",Q="[object WeakMap]";var v="[object ArrayBuffer]",R="[object DataView]",N="[object Float32Array]",x="[object Float64Array]",D="[object Int8Array]",T="[object Int16Array]",k="[object Int32Array]",_="[object Uint8Array]",P="[object Uint8ClampedArray]",F="[object Uint16Array]",L="[object Uint32Array]";var O={};O[N]=O[x]=O[D]=O[T]=O[k]=O[_]=O[P]=O[F]=O[L]=true;O[d]=O[A]=O[v]=O[p]=O[R]=O[f]=O[g]=O[y]=O[b]=O[C]=O[w]=O[B]=O[I]=O[S]=O[Q]=false;function baseIsTypedArray(r){return u(r)&&l(r.length)&&!!O[a(r)]}r.exports=baseIsTypedArray},82094:(r,n,s)=>{var a=s(96482),l=s(55944),u=s(94008);var d=Object.prototype;var A=d.hasOwnProperty;function baseKeysIn(r){if(!a(r)){return u(r)}var n=l(r),s=[];for(var d in r){if(!(d=="constructor"&&(n||!A.call(r,d)))){s.push(d)}}return s}r.exports=baseKeysIn},22035:(r,n,s)=>{var a=s(46851),l=s(20168),u=s(59402);function baseRest(r,n){return u(l(r,n,a),r+"")}r.exports=baseRest},64953:(r,n,s)=>{var a=s(85089),l=s(83106),u=s(46851);var d=!l?u:function(r,n){return l(r,"toString",{configurable:true,enumerable:false,value:a(n),writable:true})};r.exports=d},21299:r=>{function baseTimes(r,n){var s=-1,a=Array(r);while(++s{function baseUnary(r){return function(n){return r(n)}}r.exports=baseUnary},32772:(r,n,s)=>{var a=s(23706),l=s(70534),u=s(37314),d=s(64486),A=s(48242),p=s(11894);var f=200;function baseUniq(r,n,s){var g=-1,y=l,b=r.length,C=true,w=[],B=w;if(s){C=false;y=u}else if(b>=f){var I=n?null:A(r);if(I){return p(I)}C=false;y=d;B=new a}else{B=n?[]:w}e:while(++g{function cacheHas(r,n){return r.has(n)}r.exports=cacheHas},60252:(r,n,s)=>{var a=s(6748);var l=a["__core-js_shared__"];r.exports=l},48242:(r,n,s)=>{var a=s(84986),l=s(89029),u=s(11894);var d=1/0;var A=!(a&&1/u(new a([,-0]))[1]==d)?l:function(r){return new a(r)};r.exports=A},83106:(r,n,s)=>{var a=s(68573);var l=function(){try{var r=a(Object,"defineProperty");r({},"",{});return r}catch(r){}}();r.exports=l},78997:r=>{var n=typeof global=="object"&&global&&global.Object===Object&&global;r.exports=n},1194:(r,n,s)=>{var a=s(93245);function getMapData(r,n){var s=r.__data__;return a(n)?s[typeof n=="string"?"string":"hash"]:s.map}r.exports=getMapData},68573:(r,n,s)=>{var a=s(92334),l=s(8293);function getNative(r,n){var s=l(r,n);return a(s)?s:undefined}r.exports=getNative},86194:(r,n,s)=>{var a=s(61128);var l=a(Object.getPrototypeOf,Object);r.exports=l},95292:(r,n,s)=>{var a=s(38584);var l=Object.prototype;var u=l.hasOwnProperty;var d=l.toString;var A=a?a.toStringTag:undefined;function getRawTag(r){var n=u.call(r,A),s=r[A];try{r[A]=undefined;var a=true}catch(r){}var l=d.call(r);if(a){if(n){r[A]=s}else{delete r[A]}}return l}r.exports=getRawTag},8293:r=>{function getValue(r,n){return r==null?undefined:r[n]}r.exports=getValue},48051:(r,n,s)=>{var a=s(71563);function hashClear(){this.__data__=a?a(null):{};this.size=0}r.exports=hashClear},15431:r=>{function hashDelete(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}r.exports=hashDelete},26934:(r,n,s)=>{var a=s(71563);var l="__lodash_hash_undefined__";var u=Object.prototype;var d=u.hasOwnProperty;function hashGet(r){var n=this.__data__;if(a){var s=n[r];return s===l?undefined:s}return d.call(n,r)?n[r]:undefined}r.exports=hashGet},64306:(r,n,s)=>{var a=s(71563);var l=Object.prototype;var u=l.hasOwnProperty;function hashHas(r){var n=this.__data__;return a?n[r]!==undefined:u.call(n,r)}r.exports=hashHas},17226:(r,n,s)=>{var a=s(71563);var l="__lodash_hash_undefined__";function hashSet(r,n){var s=this.__data__;this.size+=this.has(r)?0:1;s[r]=a&&n===undefined?l:n;return this}r.exports=hashSet},45088:(r,n,s)=>{var a=s(38584),l=s(60541),u=s(77192);var d=a?a.isConcatSpreadable:undefined;function isFlattenable(r){return u(r)||l(r)||!!(d&&r&&r[d])}r.exports=isFlattenable},37446:r=>{var n=9007199254740991;var s=/^(?:0|[1-9]\d*)$/;function isIndex(r,a){var l=typeof r;a=a==null?n:a;return!!a&&(l=="number"||l!="symbol"&&s.test(r))&&(r>-1&&r%1==0&&r{var a=s(75199),l=s(75119),u=s(37446),d=s(96482);function isIterateeCall(r,n,s){if(!d(s)){return false}var A=typeof n;if(A=="number"?l(s)&&u(n,s.length):A=="string"&&n in s){return a(s[n],r)}return false}r.exports=isIterateeCall},93245:r=>{function isKeyable(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}r.exports=isKeyable},46613:(r,n,s)=>{var a=s(60252);var l=function(){var r=/[^.]+$/.exec(a&&a.keys&&a.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function isMasked(r){return!!l&&l in r}r.exports=isMasked},55944:r=>{var n=Object.prototype;function isPrototype(r){var s=r&&r.constructor,a=typeof s=="function"&&s.prototype||n;return r===a}r.exports=isPrototype},99791:r=>{function listCacheClear(){this.__data__=[];this.size=0}r.exports=listCacheClear},24555:(r,n,s)=>{var a=s(74024);var l=Array.prototype;var u=l.splice;function listCacheDelete(r){var n=this.__data__,s=a(n,r);if(s<0){return false}var l=n.length-1;if(s==l){n.pop()}else{u.call(n,s,1)}--this.size;return true}r.exports=listCacheDelete},86634:(r,n,s)=>{var a=s(74024);function listCacheGet(r){var n=this.__data__,s=a(n,r);return s<0?undefined:n[s][1]}r.exports=listCacheGet},8430:(r,n,s)=>{var a=s(74024);function listCacheHas(r){return a(this.__data__,r)>-1}r.exports=listCacheHas},36918:(r,n,s)=>{var a=s(74024);function listCacheSet(r,n){var s=this.__data__,l=a(s,r);if(l<0){++this.size;s.push([r,n])}else{s[l][1]=n}return this}r.exports=listCacheSet},88487:(r,n,s)=>{var a=s(66320),l=s(68884),u=s(98272);function mapCacheClear(){this.size=0;this.__data__={hash:new a,map:new(u||l),string:new a}}r.exports=mapCacheClear},36275:(r,n,s)=>{var a=s(1194);function mapCacheDelete(r){var n=a(this,r)["delete"](r);this.size-=n?1:0;return n}r.exports=mapCacheDelete},30130:(r,n,s)=>{var a=s(1194);function mapCacheGet(r){return a(this,r).get(r)}r.exports=mapCacheGet},69254:(r,n,s)=>{var a=s(1194);function mapCacheHas(r){return a(this,r).has(r)}r.exports=mapCacheHas},59806:(r,n,s)=>{var a=s(1194);function mapCacheSet(r,n){var s=a(this,r),l=s.size;s.set(r,n);this.size+=s.size==l?0:1;return this}r.exports=mapCacheSet},71563:(r,n,s)=>{var a=s(68573);var l=a(Object,"create");r.exports=l},94008:r=>{function nativeKeysIn(r){var n=[];if(r!=null){for(var s in Object(r)){n.push(s)}}return n}r.exports=nativeKeysIn},88724:(r,n,s)=>{r=s.nmd(r);var a=s(78997);var l=true&&n&&!n.nodeType&&n;var u=l&&"object"=="object"&&r&&!r.nodeType&&r;var d=u&&u.exports===l;var A=d&&a.process;var p=function(){try{var r=u&&u.require&&u.require("util").types;if(r){return r}return A&&A.binding&&A.binding("util")}catch(r){}}();r.exports=p},71723:r=>{var n=Object.prototype;var s=n.toString;function objectToString(r){return s.call(r)}r.exports=objectToString},61128:r=>{function overArg(r,n){return function(s){return r(n(s))}}r.exports=overArg},20168:(r,n,s)=>{var a=s(59678);var l=Math.max;function overRest(r,n,s){n=l(n===undefined?r.length-1:n,0);return function(){var u=arguments,d=-1,A=l(u.length-n,0),p=Array(A);while(++d{var a=s(78997);var l=typeof self=="object"&&self&&self.Object===Object&&self;var u=a||l||Function("return this")();r.exports=u},44671:r=>{var n="__lodash_hash_undefined__";function setCacheAdd(r){this.__data__.set(r,n);return this}r.exports=setCacheAdd},71884:r=>{function setCacheHas(r){return this.__data__.has(r)}r.exports=setCacheHas},11894:r=>{function setToArray(r){var n=-1,s=Array(r.size);r.forEach((function(r){s[++n]=r}));return s}r.exports=setToArray},59402:(r,n,s)=>{var a=s(64953),l=s(83286);var u=l(a);r.exports=u},83286:r=>{var n=800,s=16;var a=Date.now;function shortOut(r){var l=0,u=0;return function(){var d=a(),A=s-(d-u);u=d;if(A>0){if(++l>=n){return arguments[0]}}else{l=0}return r.apply(undefined,arguments)}}r.exports=shortOut},95232:r=>{function strictIndexOf(r,n,s){var a=s-1,l=r.length;while(++a{var n=Function.prototype;var s=n.toString;function toSource(r){if(r!=null){try{return s.call(r)}catch(r){}try{return r+""}catch(r){}}return""}r.exports=toSource},85089:r=>{function constant(r){return function(){return r}}r.exports=constant},7511:(r,n,s)=>{var a=s(22035),l=s(75199),u=s(3349),d=s(19430);var A=Object.prototype;var p=A.hasOwnProperty;var f=a((function(r,n){r=Object(r);var s=-1;var a=n.length;var f=a>2?n[2]:undefined;if(f&&u(n[0],n[1],f)){a=1}while(++s{var a=s(3126),l=s(63183),u=s(22035),d=s(97100);var A=u((function(r,n){return d(r)?a(r,l(n,1,d,true)):[]}));r.exports=A},75199:r=>{function eq(r,n){return r===n||r!==r&&n!==n}r.exports=eq},97047:(r,n,s)=>{var a=s(63183);function flatten(r){var n=r==null?0:r.length;return n?a(r,1):[]}r.exports=flatten},46851:r=>{function identity(r){return r}r.exports=identity},60541:(r,n,s)=>{var a=s(93605),l=s(51645);var u=Object.prototype;var d=u.hasOwnProperty;var A=u.propertyIsEnumerable;var p=a(function(){return arguments}())?a:function(r){return l(r)&&d.call(r,"callee")&&!A.call(r,"callee")};r.exports=p},77192:r=>{var n=Array.isArray;r.exports=n},75119:(r,n,s)=>{var a=s(34329),l=s(56657);function isArrayLike(r){return r!=null&&l(r.length)&&!a(r)}r.exports=isArrayLike},97100:(r,n,s)=>{var a=s(75119),l=s(51645);function isArrayLikeObject(r){return l(r)&&a(r)}r.exports=isArrayLikeObject},43739:(r,n,s)=>{r=s.nmd(r);var a=s(6748),l=s(92074);var u=true&&n&&!n.nodeType&&n;var d=u&&"object"=="object"&&r&&!r.nodeType&&r;var A=d&&d.exports===u;var p=A?a.Buffer:undefined;var f=p?p.isBuffer:undefined;var g=f||l;r.exports=g},34329:(r,n,s)=>{var a=s(29117),l=s(96482);var u="[object AsyncFunction]",d="[object Function]",A="[object GeneratorFunction]",p="[object Proxy]";function isFunction(r){if(!l(r)){return false}var n=a(r);return n==d||n==A||n==u||n==p}r.exports=isFunction},56657:r=>{var n=9007199254740991;function isLength(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=n}r.exports=isLength},96482:r=>{function isObject(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}r.exports=isObject},51645:r=>{function isObjectLike(r){return r!=null&&typeof r=="object"}r.exports=isObjectLike},36542:(r,n,s)=>{var a=s(29117),l=s(86194),u=s(51645);var d="[object Object]";var A=Function.prototype,p=Object.prototype;var f=A.toString;var g=p.hasOwnProperty;var y=f.call(Object);function isPlainObject(r){if(!u(r)||a(r)!=d){return false}var n=l(r);if(n===null){return true}var s=g.call(n,"constructor")&&n.constructor;return typeof s=="function"&&s instanceof s&&f.call(s)==y}r.exports=isPlainObject},35e3:(r,n,s)=>{var a=s(16880),l=s(55506),u=s(88724);var d=u&&u.isTypedArray;var A=d?l(d):a;r.exports=A},19430:(r,n,s)=>{var a=s(62e3),l=s(82094),u=s(75119);function keysIn(r){return u(r)?a(r,true):l(r)}r.exports=keysIn},89029:r=>{function noop(){}r.exports=noop},92074:r=>{function stubFalse(){return false}r.exports=stubFalse},73270:(r,n,s)=>{var a=s(63183),l=s(22035),u=s(32772),d=s(97100);var A=l((function(r){return u(a(r,1,d,true))}));r.exports=A},60754:(r,n,s)=>{const a=s(2203);const l=a.PassThrough;const u=Array.prototype.slice;r.exports=merge2;function merge2(){const r=[];const n=u.call(arguments);let s=false;let a=n[n.length-1];if(a&&!Array.isArray(a)&&a.pipe==null){n.pop()}else{a={}}const d=a.end!==false;const A=a.pipeError===true;if(a.objectMode==null){a.objectMode=true}if(a.highWaterMark==null){a.highWaterMark=64*1024}const p=l(a);function addStream(){for(let n=0,s=arguments.length;n0){return}s=false;mergeStream()}function pipe(r){function onend(){r.removeListener("merge2UnpipeEnd",onend);r.removeListener("end",onend);if(A){r.removeListener("error",onerror)}next()}function onerror(r){p.emit("error",r)}if(r._readableState.endEmitted){return next()}r.on("merge2UnpipeEnd",onend);r.on("end",onend);if(A){r.on("error",onerror)}r.pipe(p,{end:false});r.resume()}for(let r=0;r{const a=s(39023);const l=s(60748);const u=s(14006);const d=s(64059);const isEmptyString=r=>r===""||r==="./";const hasBraces=r=>{const n=r.indexOf("{");return n>-1&&r.indexOf("}",n)>-1};const micromatch=(r,n,s)=>{n=[].concat(n);r=[].concat(r);let a=new Set;let l=new Set;let d=new Set;let A=0;let onResult=r=>{d.add(r.output);if(s&&s.onResult){s.onResult(r)}};for(let d=0;d!a.has(r)));if(s&&f.length===0){if(s.failglob===true){throw new Error(`No matches found for "${n.join(", ")}"`)}if(s.nonull===true||s.nullglob===true){return s.unescape?n.map((r=>r.replace(/\\/g,""))):n}}return f};micromatch.match=micromatch;micromatch.matcher=(r,n)=>u(r,n);micromatch.isMatch=(r,n,s)=>u(n,s)(r);micromatch.any=micromatch.isMatch;micromatch.not=(r,n,s={})=>{n=[].concat(n).map(String);let a=new Set;let l=[];let onResult=r=>{if(s.onResult)s.onResult(r);l.push(r.output)};let u=new Set(micromatch(r,n,{...s,onResult:onResult}));for(let r of l){if(!u.has(r)){a.add(r)}}return[...a]};micromatch.contains=(r,n,s)=>{if(typeof r!=="string"){throw new TypeError(`Expected a string: "${a.inspect(r)}"`)}if(Array.isArray(n)){return n.some((n=>micromatch.contains(r,n,s)))}if(typeof n==="string"){if(isEmptyString(r)||isEmptyString(n)){return false}if(r.includes(n)||r.startsWith("./")&&r.slice(2).includes(n)){return true}}return micromatch.isMatch(r,n,{...s,contains:true})};micromatch.matchKeys=(r,n,s)=>{if(!d.isObject(r)){throw new TypeError("Expected the first argument to be an object")}let a=micromatch(Object.keys(r),n,s);let l={};for(let n of a)l[n]=r[n];return l};micromatch.some=(r,n,s)=>{let a=[].concat(r);for(let r of[].concat(n)){let n=u(String(r),s);if(a.some((r=>n(r)))){return true}}return false};micromatch.every=(r,n,s)=>{let a=[].concat(r);for(let r of[].concat(n)){let n=u(String(r),s);if(!a.every((r=>n(r)))){return false}}return true};micromatch.all=(r,n,s)=>{if(typeof r!=="string"){throw new TypeError(`Expected a string: "${a.inspect(r)}"`)}return[].concat(n).every((n=>u(n,s)(r)))};micromatch.capture=(r,n,s)=>{let a=d.isWindows(s);let l=u.makeRe(String(r),{...s,capture:true});let A=l.exec(a?d.toPosixSlashes(n):n);if(A){return A.slice(1).map((r=>r===void 0?"":r))}};micromatch.makeRe=(...r)=>u.makeRe(...r);micromatch.scan=(...r)=>u.scan(...r);micromatch.parse=(r,n)=>{let s=[];for(let a of[].concat(r||[])){for(let r of l(String(a),n)){s.push(u.parse(r,n))}}return s};micromatch.braces=(r,n)=>{if(typeof r!=="string")throw new TypeError("Expected a string");if(n&&n.nobrace===true||!hasBraces(r)){return[r]}return l(r,n)};micromatch.braceExpand=(r,n)=>{if(typeof r!=="string")throw new TypeError("Expected a string");return micromatch.braces(r,{...n,expand:true})};micromatch.hasBraces=hasBraces;r.exports=micromatch},4469:(r,n,s)=>{var a=s(16928);var l=s(79896);var u=parseInt("0777",8);r.exports=mkdirP.mkdirp=mkdirP.mkdirP=mkdirP;function mkdirP(r,n,s,d){if(typeof n==="function"){s=n;n={}}else if(!n||typeof n!=="object"){n={mode:n}}var A=n.mode;var p=n.fs||l;if(A===undefined){A=u}if(!d)d=null;var f=s||function(){};r=a.resolve(r);p.mkdir(r,A,(function(s){if(!s){d=d||r;return f(null,d)}switch(s.code){case"ENOENT":if(a.dirname(r)===r)return f(s);mkdirP(a.dirname(r),n,(function(s,a){if(s)f(s,a);else mkdirP(r,n,f,a)}));break;default:p.stat(r,(function(r,n){if(r||!n.isDirectory())f(s,d);else f(null,d)}));break}}))}mkdirP.sync=function sync(r,n,s){if(!n||typeof n!=="object"){n={mode:n}}var d=n.mode;var A=n.fs||l;if(d===undefined){d=u}if(!s)s=null;r=a.resolve(r);try{A.mkdirSync(r,d);s=s||r}catch(l){switch(l.code){case"ENOENT":s=sync(a.dirname(r),n,s);sync(r,n,s);break;default:var p;try{p=A.statSync(r)}catch(r){throw l}if(!p.isDirectory())throw l;break}}return s}},70744:r=>{var n=1e3;var s=n*60;var a=s*60;var l=a*24;var u=l*7;var d=l*365.25;r.exports=function(r,n){n=n||{};var s=typeof r;if(s==="string"&&r.length>0){return parse(r)}else if(s==="number"&&isFinite(r)){return n.long?fmtLong(r):fmtShort(r)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(r))};function parse(r){r=String(r);if(r.length>100){return}var A=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(r);if(!A){return}var p=parseFloat(A[1]);var f=(A[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return p*d;case"weeks":case"week":case"w":return p*u;case"days":case"day":case"d":return p*l;case"hours":case"hour":case"hrs":case"hr":case"h":return p*a;case"minutes":case"minute":case"mins":case"min":case"m":return p*s;case"seconds":case"second":case"secs":case"sec":case"s":return p*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return p;default:return undefined}}function fmtShort(r){var u=Math.abs(r);if(u>=l){return Math.round(r/l)+"d"}if(u>=a){return Math.round(r/a)+"h"}if(u>=s){return Math.round(r/s)+"m"}if(u>=n){return Math.round(r/n)+"s"}return r+"ms"}function fmtLong(r){var u=Math.abs(r);if(u>=l){return plural(r,u,l,"day")}if(u>=a){return plural(r,u,a,"hour")}if(u>=s){return plural(r,u,s,"minute")}if(u>=n){return plural(r,u,n,"second")}return r+" ms"}function plural(r,n,s,a){var l=n>=s*1.5;return Math.round(r/s)+" "+a+(l?"s":"")}},56133:r=>{ /*! * normalize-path * * Copyright (c) 2014-2018, Jon Schlinkert. * Released under the MIT License. */ -r.exports=function(r,n){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var s=r.length;if(s<=1)return r;var a="";if(s>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var u=r.split(/[/\\]+/);if(n!==false&&u[u.length-1]===""){u.pop()}return a+u.join("/")}},2386:r=>{const pathKey=(r={})=>{const n=r.env||process.env;const s=r.platform||process.platform;if(s!=="win32"){return"PATH"}return Object.keys(n).reverse().find((r=>r.toUpperCase()==="PATH"))||"Path"};r.exports=pathKey;r.exports["default"]=pathKey},39623:(r,n,s)=>{r.exports=s(62661)},78554:(r,n,s)=>{const a=s(16928);const l="\\\\/";const u=`[^${l}]`;const d="\\.";const A="\\+";const p="\\?";const f="\\/";const g="(?=.)";const y="[^/]";const b=`(?:${f}|$)`;const C=`(?:^|${f})`;const w=`${d}{1,2}${b}`;const B=`(?!${d})`;const I=`(?!${C}${w})`;const S=`(?!${d}{0,1}${b})`;const Q=`(?!${w})`;const v=`[^.${f}]`;const R=`${y}*?`;const D={DOT_LITERAL:d,PLUS_LITERAL:A,QMARK_LITERAL:p,SLASH_LITERAL:f,ONE_CHAR:g,QMARK:y,END_ANCHOR:b,DOTS_SLASH:w,NO_DOT:B,NO_DOTS:I,NO_DOT_SLASH:S,NO_DOTS_SLASH:Q,QMARK_NO_DOT:v,STAR:R,START_ANCHOR:C};const N={...D,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${d}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${d})`,NO_DOTS:`(?!(?:^|[${l}])${d}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${d}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${d}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`};const T={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:T,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:a.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===true?N:D}}},26064:(r,n,s)=>{const a=s(78554);const l=s(98178);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:d,REGEX_NON_SPECIAL_CHARS:A,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:f}=a;const expandRange=(r,n)=>{if(typeof n.expandRange==="function"){return n.expandRange(...r,n)}r.sort();const s=`[${r.join("-")}]`;try{new RegExp(s)}catch(n){return r.map((r=>l.escapeRegex(r))).join("..")}return s};const syntaxError=(r,n)=>`Missing ${r}: "${n}" - use "\\\\${n}" to match literal characters`;const parse=(r,n)=>{if(typeof r!=="string"){throw new TypeError("Expected a string")}r=f[r]||r;const s={...n};const g=typeof s.maxLength==="number"?Math.min(u,s.maxLength):u;let y=r.length;if(y>g){throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${g}`)}const b={type:"bos",value:"",output:s.prepend||""};const C=[b];const w=s.capture?"":"?:";const B=l.isWindows(n);const I=a.globChars(B);const S=a.extglobChars(I);const{DOT_LITERAL:Q,PLUS_LITERAL:v,SLASH_LITERAL:R,ONE_CHAR:D,DOTS_SLASH:N,NO_DOT:T,NO_DOT_SLASH:x,NO_DOTS_SLASH:k,QMARK:_,QMARK_NO_DOT:P,STAR:F,START_ANCHOR:L}=I;const globstar=r=>`(${w}(?:(?!${L}${r.dot?N:Q}).)*?)`;const O=s.dot?"":T;const M=s.dot?_:P;let U=s.bash===true?globstar(s):F;if(s.capture){U=`(${U})`}if(typeof s.noext==="boolean"){s.noextglob=s.noext}const H={input:r,index:-1,start:0,dot:s.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:C};r=l.removePrefix(r,H);y=r.length;const G=[];const z=[];const q=[];let V=b;let W;const eos=()=>H.index===y-1;const j=H.peek=(n=1)=>r[H.index+n];const Y=H.advance=()=>r[++H.index]||"";const remaining=()=>r.slice(H.index+1);const consume=(r="",n=0)=>{H.consumed+=r;H.index+=n};const append=r=>{H.output+=r.output!=null?r.output:r.value;consume(r.value)};const negate=()=>{let r=1;while(j()==="!"&&(j(2)!=="("||j(3)==="?")){Y();H.start++;r++}if(r%2===0){return false}H.negated=true;H.start++;return true};const increment=r=>{H[r]++;q.push(r)};const decrement=r=>{H[r]--;q.pop()};const push=r=>{if(V.type==="globstar"){const n=H.braces>0&&(r.type==="comma"||r.type==="brace");const s=r.extglob===true||G.length&&(r.type==="pipe"||r.type==="paren");if(r.type!=="slash"&&r.type!=="paren"&&!n&&!s){H.output=H.output.slice(0,-V.output.length);V.type="star";V.value="*";V.output=U;H.output+=V.output}}if(G.length&&r.type!=="paren"){G[G.length-1].inner+=r.value}if(r.value||r.output)append(r);if(V&&V.type==="text"&&r.type==="text"){V.value+=r.value;V.output=(V.output||"")+r.value;return}r.prev=V;C.push(r);V=r};const extglobOpen=(r,n)=>{const a={...S[n],conditions:1,inner:""};a.prev=V;a.parens=H.parens;a.output=H.output;const l=(s.capture?"(":"")+a.open;increment("parens");push({type:r,value:n,output:H.output?"":D});push({type:"paren",extglob:true,value:Y(),output:l});G.push(a)};const extglobClose=r=>{let a=r.close+(s.capture?")":"");let l;if(r.type==="negate"){let u=U;if(r.inner&&r.inner.length>1&&r.inner.includes("/")){u=globstar(s)}if(u!==U||eos()||/^\)+$/.test(remaining())){a=r.close=`)$))${u}`}if(r.inner.includes("*")&&(l=remaining())&&/^\.[^\\/.]+$/.test(l)){const s=parse(l,{...n,fastpaths:false}).output;a=r.close=`)${s})${u})`}if(r.prev.type==="bos"){H.negatedExtglob=true}}push({type:"paren",extglob:true,value:W,output:a});decrement("parens")};if(s.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(r)){let a=false;let u=r.replace(p,((r,n,s,l,u,d)=>{if(l==="\\"){a=true;return r}if(l==="?"){if(n){return n+l+(u?_.repeat(u.length):"")}if(d===0){return M+(u?_.repeat(u.length):"")}return _.repeat(s.length)}if(l==="."){return Q.repeat(s.length)}if(l==="*"){if(n){return n+l+(u?U:"")}return U}return n?r:`\\${r}`}));if(a===true){if(s.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(r=>r.length%2===0?"\\\\":r?"\\":""))}}if(u===r&&s.contains===true){H.output=r;return H}H.output=l.wrapOutput(u,H,n);return H}while(!eos()){W=Y();if(W==="\0"){continue}if(W==="\\"){const r=j();if(r==="/"&&s.bash!==true){continue}if(r==="."||r===";"){continue}if(!r){W+="\\";push({type:"text",value:W});continue}const n=/^\\+/.exec(remaining());let a=0;if(n&&n[0].length>2){a=n[0].length;H.index+=a;if(a%2!==0){W+="\\"}}if(s.unescape===true){W=Y()}else{W+=Y()}if(H.brackets===0){push({type:"text",value:W});continue}}if(H.brackets>0&&(W!=="]"||V.value==="["||V.value==="[^")){if(s.posix!==false&&W===":"){const r=V.value.slice(1);if(r.includes("[")){V.posix=true;if(r.includes(":")){const r=V.value.lastIndexOf("[");const n=V.value.slice(0,r);const s=V.value.slice(r+2);const a=d[s];if(a){V.value=n+a;H.backtrack=true;Y();if(!b.output&&C.indexOf(V)===1){b.output=D}continue}}}}if(W==="["&&j()!==":"||W==="-"&&j()==="]"){W=`\\${W}`}if(W==="]"&&(V.value==="["||V.value==="[^")){W=`\\${W}`}if(s.posix===true&&W==="!"&&V.value==="["){W="^"}V.value+=W;append({value:W});continue}if(H.quotes===1&&W!=='"'){W=l.escapeRegex(W);V.value+=W;append({value:W});continue}if(W==='"'){H.quotes=H.quotes===1?0:1;if(s.keepQuotes===true){push({type:"text",value:W})}continue}if(W==="("){increment("parens");push({type:"paren",value:W});continue}if(W===")"){if(H.parens===0&&s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const r=G[G.length-1];if(r&&H.parens===r.parens+1){extglobClose(G.pop());continue}push({type:"paren",value:W,output:H.parens?")":"\\)"});decrement("parens");continue}if(W==="["){if(s.nobracket===true||!remaining().includes("]")){if(s.nobracket!==true&&s.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}W=`\\${W}`}else{increment("brackets")}push({type:"bracket",value:W});continue}if(W==="]"){if(s.nobracket===true||V&&V.type==="bracket"&&V.value.length===1){push({type:"text",value:W,output:`\\${W}`});continue}if(H.brackets===0){if(s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:W,output:`\\${W}`});continue}decrement("brackets");const r=V.value.slice(1);if(V.posix!==true&&r[0]==="^"&&!r.includes("/")){W=`/${W}`}V.value+=W;append({value:W});if(s.literalBrackets===false||l.hasRegexChars(r)){continue}const n=l.escapeRegex(V.value);H.output=H.output.slice(0,-V.value.length);if(s.literalBrackets===true){H.output+=n;V.value=n;continue}V.value=`(${w}${n}|${V.value})`;H.output+=V.value;continue}if(W==="{"&&s.nobrace!==true){increment("braces");const r={type:"brace",value:W,output:"(",outputIndex:H.output.length,tokensIndex:H.tokens.length};z.push(r);push(r);continue}if(W==="}"){const r=z[z.length-1];if(s.nobrace===true||!r){push({type:"text",value:W,output:W});continue}let n=")";if(r.dots===true){const r=C.slice();const a=[];for(let n=r.length-1;n>=0;n--){C.pop();if(r[n].type==="brace"){break}if(r[n].type!=="dots"){a.unshift(r[n].value)}}n=expandRange(a,s);H.backtrack=true}if(r.comma!==true&&r.dots!==true){const s=H.output.slice(0,r.outputIndex);const a=H.tokens.slice(r.tokensIndex);r.value=r.output="\\{";W=n="\\}";H.output=s;for(const r of a){H.output+=r.output||r.value}}push({type:"brace",value:W,output:n});decrement("braces");z.pop();continue}if(W==="|"){if(G.length>0){G[G.length-1].conditions++}push({type:"text",value:W});continue}if(W===","){let r=W;const n=z[z.length-1];if(n&&q[q.length-1]==="braces"){n.comma=true;r="|"}push({type:"comma",value:W,output:r});continue}if(W==="/"){if(V.type==="dot"&&H.index===H.start+1){H.start=H.index+1;H.consumed="";H.output="";C.pop();V=b;continue}push({type:"slash",value:W,output:R});continue}if(W==="."){if(H.braces>0&&V.type==="dot"){if(V.value===".")V.output=Q;const r=z[z.length-1];V.type="dots";V.output+=W;V.value+=W;r.dots=true;continue}if(H.braces+H.parens===0&&V.type!=="bos"&&V.type!=="slash"){push({type:"text",value:W,output:Q});continue}push({type:"dot",value:W,output:Q});continue}if(W==="?"){const r=V&&V.value==="(";if(!r&&s.noextglob!==true&&j()==="("&&j(2)!=="?"){extglobOpen("qmark",W);continue}if(V&&V.type==="paren"){const r=j();let n=W;if(r==="<"&&!l.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(V.value==="("&&!/[!=<:]/.test(r)||r==="<"&&!/<([!=]|\w+>)/.test(remaining())){n=`\\${W}`}push({type:"text",value:W,output:n});continue}if(s.dot!==true&&(V.type==="slash"||V.type==="bos")){push({type:"qmark",value:W,output:P});continue}push({type:"qmark",value:W,output:_});continue}if(W==="!"){if(s.noextglob!==true&&j()==="("){if(j(2)!=="?"||!/[!=<:]/.test(j(3))){extglobOpen("negate",W);continue}}if(s.nonegate!==true&&H.index===0){negate();continue}}if(W==="+"){if(s.noextglob!==true&&j()==="("&&j(2)!=="?"){extglobOpen("plus",W);continue}if(V&&V.value==="("||s.regex===false){push({type:"plus",value:W,output:v});continue}if(V&&(V.type==="bracket"||V.type==="paren"||V.type==="brace")||H.parens>0){push({type:"plus",value:W});continue}push({type:"plus",value:v});continue}if(W==="@"){if(s.noextglob!==true&&j()==="("&&j(2)!=="?"){push({type:"at",extglob:true,value:W,output:""});continue}push({type:"text",value:W});continue}if(W!=="*"){if(W==="$"||W==="^"){W=`\\${W}`}const r=A.exec(remaining());if(r){W+=r[0];H.index+=r[0].length}push({type:"text",value:W});continue}if(V&&(V.type==="globstar"||V.star===true)){V.type="star";V.star=true;V.value+=W;V.output=U;H.backtrack=true;H.globstar=true;consume(W);continue}let n=remaining();if(s.noextglob!==true&&/^\([^?]/.test(n)){extglobOpen("star",W);continue}if(V.type==="star"){if(s.noglobstar===true){consume(W);continue}const a=V.prev;const l=a.prev;const u=a.type==="slash"||a.type==="bos";const d=l&&(l.type==="star"||l.type==="globstar");if(s.bash===true&&(!u||n[0]&&n[0]!=="/")){push({type:"star",value:W,output:""});continue}const A=H.braces>0&&(a.type==="comma"||a.type==="brace");const p=G.length&&(a.type==="pipe"||a.type==="paren");if(!u&&a.type!=="paren"&&!A&&!p){push({type:"star",value:W,output:""});continue}while(n.slice(0,3)==="/**"){const s=r[H.index+4];if(s&&s!=="/"){break}n=n.slice(3);consume("/**",3)}if(a.type==="bos"&&eos()){V.type="globstar";V.value+=W;V.output=globstar(s);H.output=V.output;H.globstar=true;consume(W);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&!d&&eos()){H.output=H.output.slice(0,-(a.output+V.output).length);a.output=`(?:${a.output}`;V.type="globstar";V.output=globstar(s)+(s.strictSlashes?")":"|$)");V.value+=W;H.globstar=true;H.output+=a.output+V.output;consume(W);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&n[0]==="/"){const r=n[1]!==void 0?"|$":"";H.output=H.output.slice(0,-(a.output+V.output).length);a.output=`(?:${a.output}`;V.type="globstar";V.output=`${globstar(s)}${R}|${R}${r})`;V.value+=W;H.output+=a.output+V.output;H.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}if(a.type==="bos"&&n[0]==="/"){V.type="globstar";V.value+=W;V.output=`(?:^|${R}|${globstar(s)}${R})`;H.output=V.output;H.globstar=true;consume(W+Y());push({type:"slash",value:"/",output:""});continue}H.output=H.output.slice(0,-V.output.length);V.type="globstar";V.output=globstar(s);V.value+=W;H.output+=V.output;H.globstar=true;consume(W);continue}const a={type:"star",value:W,output:U};if(s.bash===true){a.output=".*?";if(V.type==="bos"||V.type==="slash"){a.output=O+a.output}push(a);continue}if(V&&(V.type==="bracket"||V.type==="paren")&&s.regex===true){a.output=W;push(a);continue}if(H.index===H.start||V.type==="slash"||V.type==="dot"){if(V.type==="dot"){H.output+=x;V.output+=x}else if(s.dot===true){H.output+=k;V.output+=k}else{H.output+=O;V.output+=O}if(j()!=="*"){H.output+=D;V.output+=D}}push(a)}while(H.brackets>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));H.output=l.escapeLast(H.output,"[");decrement("brackets")}while(H.parens>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));H.output=l.escapeLast(H.output,"(");decrement("parens")}while(H.braces>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));H.output=l.escapeLast(H.output,"{");decrement("braces")}if(s.strictSlashes!==true&&(V.type==="star"||V.type==="bracket")){push({type:"maybe_slash",value:"",output:`${R}?`})}if(H.backtrack===true){H.output="";for(const r of H.tokens){H.output+=r.output!=null?r.output:r.value;if(r.suffix){H.output+=r.suffix}}}return H};parse.fastpaths=(r,n)=>{const s={...n};const d=typeof s.maxLength==="number"?Math.min(u,s.maxLength):u;const A=r.length;if(A>d){throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${d}`)}r=f[r]||r;const p=l.isWindows(n);const{DOT_LITERAL:g,SLASH_LITERAL:y,ONE_CHAR:b,DOTS_SLASH:C,NO_DOT:w,NO_DOTS:B,NO_DOTS_SLASH:I,STAR:S,START_ANCHOR:Q}=a.globChars(p);const v=s.dot?B:w;const R=s.dot?I:w;const D=s.capture?"":"?:";const N={negated:false,prefix:""};let T=s.bash===true?".*?":S;if(s.capture){T=`(${T})`}const globstar=r=>{if(r.noglobstar===true)return T;return`(${D}(?:(?!${Q}${r.dot?C:g}).)*?)`};const create=r=>{switch(r){case"*":return`${v}${b}${T}`;case".*":return`${g}${b}${T}`;case"*.*":return`${v}${T}${g}${b}${T}`;case"*/*":return`${v}${T}${y}${b}${R}${T}`;case"**":return v+globstar(s);case"**/*":return`(?:${v}${globstar(s)}${y})?${R}${b}${T}`;case"**/*.*":return`(?:${v}${globstar(s)}${y})?${R}${T}${g}${b}${T}`;case"**/.*":return`(?:${v}${globstar(s)}${y})?${g}${b}${T}`;default:{const n=/^(.*?)\.(\w+)$/.exec(r);if(!n)return;const s=create(n[1]);if(!s)return;return s+g+n[2]}}};const x=l.removePrefix(r,N);let k=create(x);if(k&&s.strictSlashes!==true){k+=`${y}?`}return k};r.exports=parse},62661:(r,n,s)=>{const a=s(16928);const l=s(54870);const u=s(26064);const d=s(98178);const A=s(78554);const isObject=r=>r&&typeof r==="object"&&!Array.isArray(r);const picomatch=(r,n,s=false)=>{if(Array.isArray(r)){const a=r.map((r=>picomatch(r,n,s)));const arrayMatcher=r=>{for(const n of a){const s=n(r);if(s)return s}return false};return arrayMatcher}const a=isObject(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!a){throw new TypeError("Expected pattern to be a non-empty string")}const l=n||{};const u=d.isWindows(n);const A=a?picomatch.compileRe(r,n):picomatch.makeRe(r,n,false,true);const p=A.state;delete A.state;let isIgnored=()=>false;if(l.ignore){const r={...n,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(l.ignore,r,s)}const matcher=(s,a=false)=>{const{isMatch:d,match:f,output:g}=picomatch.test(s,A,n,{glob:r,posix:u});const y={glob:r,state:p,regex:A,posix:u,input:s,output:g,match:f,isMatch:d};if(typeof l.onResult==="function"){l.onResult(y)}if(d===false){y.isMatch=false;return a?y:false}if(isIgnored(s)){if(typeof l.onIgnore==="function"){l.onIgnore(y)}y.isMatch=false;return a?y:false}if(typeof l.onMatch==="function"){l.onMatch(y)}return a?y:true};if(s){matcher.state=p}return matcher};picomatch.test=(r,n,s,{glob:a,posix:l}={})=>{if(typeof r!=="string"){throw new TypeError("Expected input to be a string")}if(r===""){return{isMatch:false,output:""}}const u=s||{};const A=u.format||(l?d.toPosixSlashes:null);let p=r===a;let f=p&&A?A(r):r;if(p===false){f=A?A(r):r;p=f===a}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(r,n,s,l)}else{p=n.exec(f)}}return{isMatch:Boolean(p),match:p,output:f}};picomatch.matchBase=(r,n,s,l=d.isWindows(s))=>{const u=n instanceof RegExp?n:picomatch.makeRe(n,s);return u.test(a.basename(r))};picomatch.isMatch=(r,n,s)=>picomatch(n,s)(r);picomatch.parse=(r,n)=>{if(Array.isArray(r))return r.map((r=>picomatch.parse(r,n)));return u(r,{...n,fastpaths:false})};picomatch.scan=(r,n)=>l(r,n);picomatch.compileRe=(r,n,s=false,a=false)=>{if(s===true){return r.output}const l=n||{};const u=l.contains?"":"^";const d=l.contains?"":"$";let A=`${u}(?:${r.output})${d}`;if(r&&r.negated===true){A=`^(?!${A}).*$`}const p=picomatch.toRegex(A,n);if(a===true){p.state=r}return p};picomatch.makeRe=(r,n={},s=false,a=false)=>{if(!r||typeof r!=="string"){throw new TypeError("Expected a non-empty string")}let l={negated:false,fastpaths:true};if(n.fastpaths!==false&&(r[0]==="."||r[0]==="*")){l.output=u.fastpaths(r,n)}if(!l.output){l=u(r,n)}return picomatch.compileRe(l,n,s,a)};picomatch.toRegex=(r,n)=>{try{const s=n||{};return new RegExp(r,s.flags||(s.nocase?"i":""))}catch(r){if(n&&n.debug===true)throw r;return/$^/}};picomatch.constants=A;r.exports=picomatch},54870:(r,n,s)=>{const a=s(98178);const{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:d,CHAR_COMMA:A,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:b,CHAR_LEFT_SQUARE_BRACKET:C,CHAR_PLUS:w,CHAR_QUESTION_MARK:B,CHAR_RIGHT_CURLY_BRACE:I,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:Q}=s(78554);const isPathSeparator=r=>r===g||r===d;const depth=r=>{if(r.isPrefix!==true){r.depth=r.isGlobstar?Infinity:1}};const scan=(r,n)=>{const s=n||{};const v=r.length-1;const R=s.parts===true||s.scanToEnd===true;const D=[];const N=[];const T=[];let x=r;let k=-1;let _=0;let P=0;let F=false;let L=false;let O=false;let M=false;let U=false;let H=false;let G=false;let z=false;let q=false;let V=false;let W=0;let j;let Y;let J={value:"",depth:0,isGlob:false};const eos=()=>k>=v;const peek=()=>x.charCodeAt(k+1);const advance=()=>{j=Y;return x.charCodeAt(++k)};while(k0){K=x.slice(0,_);x=x.slice(_);P-=_}if($&&O===true&&P>0){$=x.slice(0,P);X=x.slice(P)}else if(O===true){$="";X=x}else{$=x}if($&&$!==""&&$!=="/"&&$!==x){if(isPathSeparator($.charCodeAt($.length-1))){$=$.slice(0,-1)}}if(s.unescape===true){if(X)X=a.removeBackslashes(X);if($&&G===true){$=a.removeBackslashes($)}}const Z={prefix:K,input:r,start:_,base:$,glob:X,isBrace:F,isBracket:L,isGlob:O,isExtglob:M,isGlobstar:U,negated:z,negatedExtglob:q};if(s.tokens===true){Z.maxDepth=0;if(!isPathSeparator(Y)){N.push(J)}Z.tokens=N}if(s.parts===true||s.tokens===true){let n;for(let a=0;a{const a=s(16928);const l=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:d,REGEX_SPECIAL_CHARS:A,REGEX_SPECIAL_CHARS_GLOBAL:p}=s(78554);n.isObject=r=>r!==null&&typeof r==="object"&&!Array.isArray(r);n.hasRegexChars=r=>A.test(r);n.isRegexChar=r=>r.length===1&&n.hasRegexChars(r);n.escapeRegex=r=>r.replace(p,"\\$1");n.toPosixSlashes=r=>r.replace(u,"/");n.removeBackslashes=r=>r.replace(d,(r=>r==="\\"?"":r));n.supportsLookbehinds=()=>{const r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10){return true}return false};n.isWindows=r=>{if(r&&typeof r.windows==="boolean"){return r.windows}return l===true||a.sep==="\\"};n.escapeLast=(r,s,a)=>{const l=r.lastIndexOf(s,a);if(l===-1)return r;if(r[l-1]==="\\")return n.escapeLast(r,s,l-1);return`${r.slice(0,l)}\\${r.slice(l)}`};n.removePrefix=(r,n={})=>{let s=r;if(s.startsWith("./")){s=s.slice(2);n.prefix="./"}return s};n.wrapOutput=(r,n={},s={})=>{const a=s.contains?"":"^";const l=s.contains?"":"$";let u=`${a}(?:${r})${l}`;if(n.negated===true){u=`(?:^(?!${u}).*$)`}return u}},61710:r=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,n,s,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var u,d;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,n)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,n,s)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,n,s,a)}));default:u=new Array(l-1);d=0;while(d{r.exports=global.process},90033:r=>{ +r.exports=function(r,n){if(typeof r!=="string"){throw new TypeError("expected path to be a string")}if(r==="\\"||r==="/")return"/";var s=r.length;if(s<=1)return r;var a="";if(s>4&&r[3]==="\\"){var l=r[2];if((l==="?"||l===".")&&r.slice(0,2)==="\\\\"){r=r.slice(2);a="//"}}var u=r.split(/[/\\]+/);if(n!==false&&u[u.length-1]===""){u.pop()}return a+u.join("/")}},56689:r=>{const pathKey=(r={})=>{const n=r.env||process.env;const s=r.platform||process.platform;if(s!=="win32"){return"PATH"}return Object.keys(n).reverse().find((r=>r.toUpperCase()==="PATH"))||"Path"};r.exports=pathKey;r.exports["default"]=pathKey},14006:(r,n,s)=>{r.exports=s(98016)},5595:(r,n,s)=>{const a=s(16928);const l="\\\\/";const u=`[^${l}]`;const d="\\.";const A="\\+";const p="\\?";const f="\\/";const g="(?=.)";const y="[^/]";const b=`(?:${f}|$)`;const C=`(?:^|${f})`;const w=`${d}{1,2}${b}`;const B=`(?!${d})`;const I=`(?!${C}${w})`;const S=`(?!${d}{0,1}${b})`;const Q=`(?!${w})`;const v=`[^.${f}]`;const R=`${y}*?`;const N={DOT_LITERAL:d,PLUS_LITERAL:A,QMARK_LITERAL:p,SLASH_LITERAL:f,ONE_CHAR:g,QMARK:y,END_ANCHOR:b,DOTS_SLASH:w,NO_DOT:B,NO_DOTS:I,NO_DOT_SLASH:S,NO_DOTS_SLASH:Q,QMARK_NO_DOT:v,STAR:R,START_ANCHOR:C};const x={...N,SLASH_LITERAL:`[${l}]`,QMARK:u,STAR:`${u}*?`,DOTS_SLASH:`${d}{1,2}(?:[${l}]|$)`,NO_DOT:`(?!${d})`,NO_DOTS:`(?!(?:^|[${l}])${d}{1,2}(?:[${l}]|$))`,NO_DOT_SLASH:`(?!${d}{0,1}(?:[${l}]|$))`,NO_DOTS_SLASH:`(?!${d}{1,2}(?:[${l}]|$))`,QMARK_NO_DOT:`[^.${l}]`,START_ANCHOR:`(?:^|[${l}])`,END_ANCHOR:`(?:[${l}]|$)`};const D={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:D,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:a.sep,extglobChars(r){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${r.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(r){return r===true?x:N}}},78265:(r,n,s)=>{const a=s(5595);const l=s(64059);const{MAX_LENGTH:u,POSIX_REGEX_SOURCE:d,REGEX_NON_SPECIAL_CHARS:A,REGEX_SPECIAL_CHARS_BACKREF:p,REPLACEMENTS:f}=a;const expandRange=(r,n)=>{if(typeof n.expandRange==="function"){return n.expandRange(...r,n)}r.sort();const s=`[${r.join("-")}]`;try{new RegExp(s)}catch(n){return r.map((r=>l.escapeRegex(r))).join("..")}return s};const syntaxError=(r,n)=>`Missing ${r}: "${n}" - use "\\\\${n}" to match literal characters`;const parse=(r,n)=>{if(typeof r!=="string"){throw new TypeError("Expected a string")}r=f[r]||r;const s={...n};const g=typeof s.maxLength==="number"?Math.min(u,s.maxLength):u;let y=r.length;if(y>g){throw new SyntaxError(`Input length: ${y}, exceeds maximum allowed length: ${g}`)}const b={type:"bos",value:"",output:s.prepend||""};const C=[b];const w=s.capture?"":"?:";const B=l.isWindows(n);const I=a.globChars(B);const S=a.extglobChars(I);const{DOT_LITERAL:Q,PLUS_LITERAL:v,SLASH_LITERAL:R,ONE_CHAR:N,DOTS_SLASH:x,NO_DOT:D,NO_DOT_SLASH:T,NO_DOTS_SLASH:k,QMARK:_,QMARK_NO_DOT:P,STAR:F,START_ANCHOR:L}=I;const globstar=r=>`(${w}(?:(?!${L}${r.dot?x:Q}).)*?)`;const O=s.dot?"":D;const M=s.dot?_:P;let U=s.bash===true?globstar(s):F;if(s.capture){U=`(${U})`}if(typeof s.noext==="boolean"){s.noextglob=s.noext}const H={input:r,index:-1,start:0,dot:s.dot===true,consumed:"",output:"",prefix:"",backtrack:false,negated:false,brackets:0,braces:0,parens:0,quotes:0,globstar:false,tokens:C};r=l.removePrefix(r,H);y=r.length;const G=[];const z=[];const q=[];let V=b;let j;const eos=()=>H.index===y-1;const W=H.peek=(n=1)=>r[H.index+n];const Y=H.advance=()=>r[++H.index]||"";const remaining=()=>r.slice(H.index+1);const consume=(r="",n=0)=>{H.consumed+=r;H.index+=n};const append=r=>{H.output+=r.output!=null?r.output:r.value;consume(r.value)};const negate=()=>{let r=1;while(W()==="!"&&(W(2)!=="("||W(3)==="?")){Y();H.start++;r++}if(r%2===0){return false}H.negated=true;H.start++;return true};const increment=r=>{H[r]++;q.push(r)};const decrement=r=>{H[r]--;q.pop()};const push=r=>{if(V.type==="globstar"){const n=H.braces>0&&(r.type==="comma"||r.type==="brace");const s=r.extglob===true||G.length&&(r.type==="pipe"||r.type==="paren");if(r.type!=="slash"&&r.type!=="paren"&&!n&&!s){H.output=H.output.slice(0,-V.output.length);V.type="star";V.value="*";V.output=U;H.output+=V.output}}if(G.length&&r.type!=="paren"){G[G.length-1].inner+=r.value}if(r.value||r.output)append(r);if(V&&V.type==="text"&&r.type==="text"){V.value+=r.value;V.output=(V.output||"")+r.value;return}r.prev=V;C.push(r);V=r};const extglobOpen=(r,n)=>{const a={...S[n],conditions:1,inner:""};a.prev=V;a.parens=H.parens;a.output=H.output;const l=(s.capture?"(":"")+a.open;increment("parens");push({type:r,value:n,output:H.output?"":N});push({type:"paren",extglob:true,value:Y(),output:l});G.push(a)};const extglobClose=r=>{let a=r.close+(s.capture?")":"");let l;if(r.type==="negate"){let u=U;if(r.inner&&r.inner.length>1&&r.inner.includes("/")){u=globstar(s)}if(u!==U||eos()||/^\)+$/.test(remaining())){a=r.close=`)$))${u}`}if(r.inner.includes("*")&&(l=remaining())&&/^\.[^\\/.]+$/.test(l)){const s=parse(l,{...n,fastpaths:false}).output;a=r.close=`)${s})${u})`}if(r.prev.type==="bos"){H.negatedExtglob=true}}push({type:"paren",extglob:true,value:j,output:a});decrement("parens")};if(s.fastpaths!==false&&!/(^[*!]|[/()[\]{}"])/.test(r)){let a=false;let u=r.replace(p,((r,n,s,l,u,d)=>{if(l==="\\"){a=true;return r}if(l==="?"){if(n){return n+l+(u?_.repeat(u.length):"")}if(d===0){return M+(u?_.repeat(u.length):"")}return _.repeat(s.length)}if(l==="."){return Q.repeat(s.length)}if(l==="*"){if(n){return n+l+(u?U:"")}return U}return n?r:`\\${r}`}));if(a===true){if(s.unescape===true){u=u.replace(/\\/g,"")}else{u=u.replace(/\\+/g,(r=>r.length%2===0?"\\\\":r?"\\":""))}}if(u===r&&s.contains===true){H.output=r;return H}H.output=l.wrapOutput(u,H,n);return H}while(!eos()){j=Y();if(j==="\0"){continue}if(j==="\\"){const r=W();if(r==="/"&&s.bash!==true){continue}if(r==="."||r===";"){continue}if(!r){j+="\\";push({type:"text",value:j});continue}const n=/^\\+/.exec(remaining());let a=0;if(n&&n[0].length>2){a=n[0].length;H.index+=a;if(a%2!==0){j+="\\"}}if(s.unescape===true){j=Y()}else{j+=Y()}if(H.brackets===0){push({type:"text",value:j});continue}}if(H.brackets>0&&(j!=="]"||V.value==="["||V.value==="[^")){if(s.posix!==false&&j===":"){const r=V.value.slice(1);if(r.includes("[")){V.posix=true;if(r.includes(":")){const r=V.value.lastIndexOf("[");const n=V.value.slice(0,r);const s=V.value.slice(r+2);const a=d[s];if(a){V.value=n+a;H.backtrack=true;Y();if(!b.output&&C.indexOf(V)===1){b.output=N}continue}}}}if(j==="["&&W()!==":"||j==="-"&&W()==="]"){j=`\\${j}`}if(j==="]"&&(V.value==="["||V.value==="[^")){j=`\\${j}`}if(s.posix===true&&j==="!"&&V.value==="["){j="^"}V.value+=j;append({value:j});continue}if(H.quotes===1&&j!=='"'){j=l.escapeRegex(j);V.value+=j;append({value:j});continue}if(j==='"'){H.quotes=H.quotes===1?0:1;if(s.keepQuotes===true){push({type:"text",value:j})}continue}if(j==="("){increment("parens");push({type:"paren",value:j});continue}if(j===")"){if(H.parens===0&&s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","("))}const r=G[G.length-1];if(r&&H.parens===r.parens+1){extglobClose(G.pop());continue}push({type:"paren",value:j,output:H.parens?")":"\\)"});decrement("parens");continue}if(j==="["){if(s.nobracket===true||!remaining().includes("]")){if(s.nobracket!==true&&s.strictBrackets===true){throw new SyntaxError(syntaxError("closing","]"))}j=`\\${j}`}else{increment("brackets")}push({type:"bracket",value:j});continue}if(j==="]"){if(s.nobracket===true||V&&V.type==="bracket"&&V.value.length===1){push({type:"text",value:j,output:`\\${j}`});continue}if(H.brackets===0){if(s.strictBrackets===true){throw new SyntaxError(syntaxError("opening","["))}push({type:"text",value:j,output:`\\${j}`});continue}decrement("brackets");const r=V.value.slice(1);if(V.posix!==true&&r[0]==="^"&&!r.includes("/")){j=`/${j}`}V.value+=j;append({value:j});if(s.literalBrackets===false||l.hasRegexChars(r)){continue}const n=l.escapeRegex(V.value);H.output=H.output.slice(0,-V.value.length);if(s.literalBrackets===true){H.output+=n;V.value=n;continue}V.value=`(${w}${n}|${V.value})`;H.output+=V.value;continue}if(j==="{"&&s.nobrace!==true){increment("braces");const r={type:"brace",value:j,output:"(",outputIndex:H.output.length,tokensIndex:H.tokens.length};z.push(r);push(r);continue}if(j==="}"){const r=z[z.length-1];if(s.nobrace===true||!r){push({type:"text",value:j,output:j});continue}let n=")";if(r.dots===true){const r=C.slice();const a=[];for(let n=r.length-1;n>=0;n--){C.pop();if(r[n].type==="brace"){break}if(r[n].type!=="dots"){a.unshift(r[n].value)}}n=expandRange(a,s);H.backtrack=true}if(r.comma!==true&&r.dots!==true){const s=H.output.slice(0,r.outputIndex);const a=H.tokens.slice(r.tokensIndex);r.value=r.output="\\{";j=n="\\}";H.output=s;for(const r of a){H.output+=r.output||r.value}}push({type:"brace",value:j,output:n});decrement("braces");z.pop();continue}if(j==="|"){if(G.length>0){G[G.length-1].conditions++}push({type:"text",value:j});continue}if(j===","){let r=j;const n=z[z.length-1];if(n&&q[q.length-1]==="braces"){n.comma=true;r="|"}push({type:"comma",value:j,output:r});continue}if(j==="/"){if(V.type==="dot"&&H.index===H.start+1){H.start=H.index+1;H.consumed="";H.output="";C.pop();V=b;continue}push({type:"slash",value:j,output:R});continue}if(j==="."){if(H.braces>0&&V.type==="dot"){if(V.value===".")V.output=Q;const r=z[z.length-1];V.type="dots";V.output+=j;V.value+=j;r.dots=true;continue}if(H.braces+H.parens===0&&V.type!=="bos"&&V.type!=="slash"){push({type:"text",value:j,output:Q});continue}push({type:"dot",value:j,output:Q});continue}if(j==="?"){const r=V&&V.value==="(";if(!r&&s.noextglob!==true&&W()==="("&&W(2)!=="?"){extglobOpen("qmark",j);continue}if(V&&V.type==="paren"){const r=W();let n=j;if(r==="<"&&!l.supportsLookbehinds()){throw new Error("Node.js v10 or higher is required for regex lookbehinds")}if(V.value==="("&&!/[!=<:]/.test(r)||r==="<"&&!/<([!=]|\w+>)/.test(remaining())){n=`\\${j}`}push({type:"text",value:j,output:n});continue}if(s.dot!==true&&(V.type==="slash"||V.type==="bos")){push({type:"qmark",value:j,output:P});continue}push({type:"qmark",value:j,output:_});continue}if(j==="!"){if(s.noextglob!==true&&W()==="("){if(W(2)!=="?"||!/[!=<:]/.test(W(3))){extglobOpen("negate",j);continue}}if(s.nonegate!==true&&H.index===0){negate();continue}}if(j==="+"){if(s.noextglob!==true&&W()==="("&&W(2)!=="?"){extglobOpen("plus",j);continue}if(V&&V.value==="("||s.regex===false){push({type:"plus",value:j,output:v});continue}if(V&&(V.type==="bracket"||V.type==="paren"||V.type==="brace")||H.parens>0){push({type:"plus",value:j});continue}push({type:"plus",value:v});continue}if(j==="@"){if(s.noextglob!==true&&W()==="("&&W(2)!=="?"){push({type:"at",extglob:true,value:j,output:""});continue}push({type:"text",value:j});continue}if(j!=="*"){if(j==="$"||j==="^"){j=`\\${j}`}const r=A.exec(remaining());if(r){j+=r[0];H.index+=r[0].length}push({type:"text",value:j});continue}if(V&&(V.type==="globstar"||V.star===true)){V.type="star";V.star=true;V.value+=j;V.output=U;H.backtrack=true;H.globstar=true;consume(j);continue}let n=remaining();if(s.noextglob!==true&&/^\([^?]/.test(n)){extglobOpen("star",j);continue}if(V.type==="star"){if(s.noglobstar===true){consume(j);continue}const a=V.prev;const l=a.prev;const u=a.type==="slash"||a.type==="bos";const d=l&&(l.type==="star"||l.type==="globstar");if(s.bash===true&&(!u||n[0]&&n[0]!=="/")){push({type:"star",value:j,output:""});continue}const A=H.braces>0&&(a.type==="comma"||a.type==="brace");const p=G.length&&(a.type==="pipe"||a.type==="paren");if(!u&&a.type!=="paren"&&!A&&!p){push({type:"star",value:j,output:""});continue}while(n.slice(0,3)==="/**"){const s=r[H.index+4];if(s&&s!=="/"){break}n=n.slice(3);consume("/**",3)}if(a.type==="bos"&&eos()){V.type="globstar";V.value+=j;V.output=globstar(s);H.output=V.output;H.globstar=true;consume(j);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&!d&&eos()){H.output=H.output.slice(0,-(a.output+V.output).length);a.output=`(?:${a.output}`;V.type="globstar";V.output=globstar(s)+(s.strictSlashes?")":"|$)");V.value+=j;H.globstar=true;H.output+=a.output+V.output;consume(j);continue}if(a.type==="slash"&&a.prev.type!=="bos"&&n[0]==="/"){const r=n[1]!==void 0?"|$":"";H.output=H.output.slice(0,-(a.output+V.output).length);a.output=`(?:${a.output}`;V.type="globstar";V.output=`${globstar(s)}${R}|${R}${r})`;V.value+=j;H.output+=a.output+V.output;H.globstar=true;consume(j+Y());push({type:"slash",value:"/",output:""});continue}if(a.type==="bos"&&n[0]==="/"){V.type="globstar";V.value+=j;V.output=`(?:^|${R}|${globstar(s)}${R})`;H.output=V.output;H.globstar=true;consume(j+Y());push({type:"slash",value:"/",output:""});continue}H.output=H.output.slice(0,-V.output.length);V.type="globstar";V.output=globstar(s);V.value+=j;H.output+=V.output;H.globstar=true;consume(j);continue}const a={type:"star",value:j,output:U};if(s.bash===true){a.output=".*?";if(V.type==="bos"||V.type==="slash"){a.output=O+a.output}push(a);continue}if(V&&(V.type==="bracket"||V.type==="paren")&&s.regex===true){a.output=j;push(a);continue}if(H.index===H.start||V.type==="slash"||V.type==="dot"){if(V.type==="dot"){H.output+=T;V.output+=T}else if(s.dot===true){H.output+=k;V.output+=k}else{H.output+=O;V.output+=O}if(W()!=="*"){H.output+=N;V.output+=N}}push(a)}while(H.brackets>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","]"));H.output=l.escapeLast(H.output,"[");decrement("brackets")}while(H.parens>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing",")"));H.output=l.escapeLast(H.output,"(");decrement("parens")}while(H.braces>0){if(s.strictBrackets===true)throw new SyntaxError(syntaxError("closing","}"));H.output=l.escapeLast(H.output,"{");decrement("braces")}if(s.strictSlashes!==true&&(V.type==="star"||V.type==="bracket")){push({type:"maybe_slash",value:"",output:`${R}?`})}if(H.backtrack===true){H.output="";for(const r of H.tokens){H.output+=r.output!=null?r.output:r.value;if(r.suffix){H.output+=r.suffix}}}return H};parse.fastpaths=(r,n)=>{const s={...n};const d=typeof s.maxLength==="number"?Math.min(u,s.maxLength):u;const A=r.length;if(A>d){throw new SyntaxError(`Input length: ${A}, exceeds maximum allowed length: ${d}`)}r=f[r]||r;const p=l.isWindows(n);const{DOT_LITERAL:g,SLASH_LITERAL:y,ONE_CHAR:b,DOTS_SLASH:C,NO_DOT:w,NO_DOTS:B,NO_DOTS_SLASH:I,STAR:S,START_ANCHOR:Q}=a.globChars(p);const v=s.dot?B:w;const R=s.dot?I:w;const N=s.capture?"":"?:";const x={negated:false,prefix:""};let D=s.bash===true?".*?":S;if(s.capture){D=`(${D})`}const globstar=r=>{if(r.noglobstar===true)return D;return`(${N}(?:(?!${Q}${r.dot?C:g}).)*?)`};const create=r=>{switch(r){case"*":return`${v}${b}${D}`;case".*":return`${g}${b}${D}`;case"*.*":return`${v}${D}${g}${b}${D}`;case"*/*":return`${v}${D}${y}${b}${R}${D}`;case"**":return v+globstar(s);case"**/*":return`(?:${v}${globstar(s)}${y})?${R}${b}${D}`;case"**/*.*":return`(?:${v}${globstar(s)}${y})?${R}${D}${g}${b}${D}`;case"**/.*":return`(?:${v}${globstar(s)}${y})?${g}${b}${D}`;default:{const n=/^(.*?)\.(\w+)$/.exec(r);if(!n)return;const s=create(n[1]);if(!s)return;return s+g+n[2]}}};const T=l.removePrefix(r,x);let k=create(T);if(k&&s.strictSlashes!==true){k+=`${y}?`}return k};r.exports=parse},98016:(r,n,s)=>{const a=s(16928);const l=s(31781);const u=s(78265);const d=s(64059);const A=s(5595);const isObject=r=>r&&typeof r==="object"&&!Array.isArray(r);const picomatch=(r,n,s=false)=>{if(Array.isArray(r)){const a=r.map((r=>picomatch(r,n,s)));const arrayMatcher=r=>{for(const n of a){const s=n(r);if(s)return s}return false};return arrayMatcher}const a=isObject(r)&&r.tokens&&r.input;if(r===""||typeof r!=="string"&&!a){throw new TypeError("Expected pattern to be a non-empty string")}const l=n||{};const u=d.isWindows(n);const A=a?picomatch.compileRe(r,n):picomatch.makeRe(r,n,false,true);const p=A.state;delete A.state;let isIgnored=()=>false;if(l.ignore){const r={...n,ignore:null,onMatch:null,onResult:null};isIgnored=picomatch(l.ignore,r,s)}const matcher=(s,a=false)=>{const{isMatch:d,match:f,output:g}=picomatch.test(s,A,n,{glob:r,posix:u});const y={glob:r,state:p,regex:A,posix:u,input:s,output:g,match:f,isMatch:d};if(typeof l.onResult==="function"){l.onResult(y)}if(d===false){y.isMatch=false;return a?y:false}if(isIgnored(s)){if(typeof l.onIgnore==="function"){l.onIgnore(y)}y.isMatch=false;return a?y:false}if(typeof l.onMatch==="function"){l.onMatch(y)}return a?y:true};if(s){matcher.state=p}return matcher};picomatch.test=(r,n,s,{glob:a,posix:l}={})=>{if(typeof r!=="string"){throw new TypeError("Expected input to be a string")}if(r===""){return{isMatch:false,output:""}}const u=s||{};const A=u.format||(l?d.toPosixSlashes:null);let p=r===a;let f=p&&A?A(r):r;if(p===false){f=A?A(r):r;p=f===a}if(p===false||u.capture===true){if(u.matchBase===true||u.basename===true){p=picomatch.matchBase(r,n,s,l)}else{p=n.exec(f)}}return{isMatch:Boolean(p),match:p,output:f}};picomatch.matchBase=(r,n,s,l=d.isWindows(s))=>{const u=n instanceof RegExp?n:picomatch.makeRe(n,s);return u.test(a.basename(r))};picomatch.isMatch=(r,n,s)=>picomatch(n,s)(r);picomatch.parse=(r,n)=>{if(Array.isArray(r))return r.map((r=>picomatch.parse(r,n)));return u(r,{...n,fastpaths:false})};picomatch.scan=(r,n)=>l(r,n);picomatch.compileRe=(r,n,s=false,a=false)=>{if(s===true){return r.output}const l=n||{};const u=l.contains?"":"^";const d=l.contains?"":"$";let A=`${u}(?:${r.output})${d}`;if(r&&r.negated===true){A=`^(?!${A}).*$`}const p=picomatch.toRegex(A,n);if(a===true){p.state=r}return p};picomatch.makeRe=(r,n={},s=false,a=false)=>{if(!r||typeof r!=="string"){throw new TypeError("Expected a non-empty string")}let l={negated:false,fastpaths:true};if(n.fastpaths!==false&&(r[0]==="."||r[0]==="*")){l.output=u.fastpaths(r,n)}if(!l.output){l=u(r,n)}return picomatch.compileRe(l,n,s,a)};picomatch.toRegex=(r,n)=>{try{const s=n||{};return new RegExp(r,s.flags||(s.nocase?"i":""))}catch(r){if(n&&n.debug===true)throw r;return/$^/}};picomatch.constants=A;r.exports=picomatch},31781:(r,n,s)=>{const a=s(64059);const{CHAR_ASTERISK:l,CHAR_AT:u,CHAR_BACKWARD_SLASH:d,CHAR_COMMA:A,CHAR_DOT:p,CHAR_EXCLAMATION_MARK:f,CHAR_FORWARD_SLASH:g,CHAR_LEFT_CURLY_BRACE:y,CHAR_LEFT_PARENTHESES:b,CHAR_LEFT_SQUARE_BRACKET:C,CHAR_PLUS:w,CHAR_QUESTION_MARK:B,CHAR_RIGHT_CURLY_BRACE:I,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:Q}=s(5595);const isPathSeparator=r=>r===g||r===d;const depth=r=>{if(r.isPrefix!==true){r.depth=r.isGlobstar?Infinity:1}};const scan=(r,n)=>{const s=n||{};const v=r.length-1;const R=s.parts===true||s.scanToEnd===true;const N=[];const x=[];const D=[];let T=r;let k=-1;let _=0;let P=0;let F=false;let L=false;let O=false;let M=false;let U=false;let H=false;let G=false;let z=false;let q=false;let V=false;let j=0;let W;let Y;let J={value:"",depth:0,isGlob:false};const eos=()=>k>=v;const peek=()=>T.charCodeAt(k+1);const advance=()=>{W=Y;return T.charCodeAt(++k)};while(k0){K=T.slice(0,_);T=T.slice(_);P-=_}if($&&O===true&&P>0){$=T.slice(0,P);X=T.slice(P)}else if(O===true){$="";X=T}else{$=T}if($&&$!==""&&$!=="/"&&$!==T){if(isPathSeparator($.charCodeAt($.length-1))){$=$.slice(0,-1)}}if(s.unescape===true){if(X)X=a.removeBackslashes(X);if($&&G===true){$=a.removeBackslashes($)}}const Z={prefix:K,input:r,start:_,base:$,glob:X,isBrace:F,isBracket:L,isGlob:O,isExtglob:M,isGlobstar:U,negated:z,negatedExtglob:q};if(s.tokens===true){Z.maxDepth=0;if(!isPathSeparator(Y)){x.push(J)}Z.tokens=x}if(s.parts===true||s.tokens===true){let n;for(let a=0;a{const a=s(16928);const l=process.platform==="win32";const{REGEX_BACKSLASH:u,REGEX_REMOVE_BACKSLASH:d,REGEX_SPECIAL_CHARS:A,REGEX_SPECIAL_CHARS_GLOBAL:p}=s(5595);n.isObject=r=>r!==null&&typeof r==="object"&&!Array.isArray(r);n.hasRegexChars=r=>A.test(r);n.isRegexChar=r=>r.length===1&&n.hasRegexChars(r);n.escapeRegex=r=>r.replace(p,"\\$1");n.toPosixSlashes=r=>r.replace(u,"/");n.removeBackslashes=r=>r.replace(d,(r=>r==="\\"?"":r));n.supportsLookbehinds=()=>{const r=process.version.slice(1).split(".").map(Number);if(r.length===3&&r[0]>=9||r[0]===8&&r[1]>=10){return true}return false};n.isWindows=r=>{if(r&&typeof r.windows==="boolean"){return r.windows}return l===true||a.sep==="\\"};n.escapeLast=(r,s,a)=>{const l=r.lastIndexOf(s,a);if(l===-1)return r;if(r[l-1]==="\\")return n.escapeLast(r,s,l-1);return`${r.slice(0,l)}\\${r.slice(l)}`};n.removePrefix=(r,n={})=>{let s=r;if(s.startsWith("./")){s=s.slice(2);n.prefix="./"}return s};n.wrapOutput=(r,n={},s={})=>{const a=s.contains?"":"^";const l=s.contains?"":"$";let u=`${a}(?:${r})${l}`;if(n.negated===true){u=`(?:^(?!${u}).*$)`}return u}},41564:r=>{if(typeof process==="undefined"||!process.version||process.version.indexOf("v0.")===0||process.version.indexOf("v1.")===0&&process.version.indexOf("v1.8.")!==0){r.exports={nextTick:nextTick}}else{r.exports=process}function nextTick(r,n,s,a){if(typeof r!=="function"){throw new TypeError('"callback" argument must be a function')}var l=arguments.length;var u,d;switch(l){case 0:case 1:return process.nextTick(r);case 2:return process.nextTick((function afterTickOne(){r.call(null,n)}));case 3:return process.nextTick((function afterTickTwo(){r.call(null,n,s)}));case 4:return process.nextTick((function afterTickThree(){r.call(null,n,s,a)}));default:u=new Array(l-1);d=0;while(d{r.exports=global.process},74351:r=>{ /*! queue-microtask. MIT License. Feross Aboukhadijeh */ -let n;r.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):r=>(n||(n=Promise.resolve())).then(r).catch((r=>setTimeout((()=>{throw r}),0)))},7354:(r,n,s)=>{var a=s(61710);var l=Object.keys||function(r){var n=[];for(var s in r){n.push(s)}return n};r.exports=Duplex;var u=Object.create(s(22465));u.inherits=s(76153);var d=s(97576);var A=s(2232);u.inherits(Duplex,d);{var p=l(A.prototype);for(var f=0;f{r.exports=PassThrough;var a=s(34278);var l=Object.create(s(22465));l.inherits=s(76153);l.inherits(PassThrough,a);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);a.call(this,r)}PassThrough.prototype._transform=function(r,n,s){s(null,r)}},97576:(r,n,s)=>{var a=s(61710);r.exports=Readable;var l=s(92012);var u;Readable.ReadableState=ReadableState;var d=s(24434).EventEmitter;var EElistenerCount=function(r,n){return r.listeners(n).length};var A=s(94324);var p=s(79253).Buffer;var f=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return p.from(r)}function _isUint8Array(r){return p.isBuffer(r)||r instanceof f}var g=Object.create(s(22465));g.inherits=s(76153);var y=s(39023);var b=void 0;if(y&&y.debuglog){b=y.debuglog("stream")}else{b=function(){}}var C=s(65866);var w=s(83716);var B;g.inherits(Readable,A);var I=["error","close","destroy","pause","resume"];function prependListener(r,n,s){if(typeof r.prependListener==="function")return r.prependListener(n,s);if(!r._events||!r._events[n])r.on(n,s);else if(l(r._events[n]))r._events[n].unshift(s);else r._events[n]=[s,r._events[n]]}function ReadableState(r,n){u=u||s(7354);r=r||{};var a=n instanceof u;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.readableObjectMode;var l=r.highWaterMark;var d=r.readableHighWaterMark;var A=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(d||d===0))this.highWaterMark=d;else this.highWaterMark=A;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new C;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=r.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(r.encoding){if(!B)B=s(8112).I;this.decoder=new B(r.encoding);this.encoding=r.encoding}}function Readable(r){u=u||s(7354);if(!(this instanceof Readable))return new Readable(r);this._readableState=new ReadableState(r,this);this.readable=true;if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy}A.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(r){if(!this._readableState){return}this._readableState.destroyed=r}});Readable.prototype.destroy=w.destroy;Readable.prototype._undestroy=w.undestroy;Readable.prototype._destroy=function(r,n){this.push(null);n(r)};Readable.prototype.push=function(r,n){var s=this._readableState;var a;if(!s.objectMode){if(typeof r==="string"){n=n||s.defaultEncoding;if(n!==s.encoding){r=p.from(r,n);n=""}a=true}}else{a=true}return readableAddChunk(this,r,n,false,a)};Readable.prototype.unshift=function(r){return readableAddChunk(this,r,null,true,false)};function readableAddChunk(r,n,s,a,l){var u=r._readableState;if(n===null){u.reading=false;onEofChunk(r,u)}else{var d;if(!l)d=chunkInvalid(u,n);if(d){r.emit("error",d)}else if(u.objectMode||n&&n.length>0){if(typeof n!=="string"&&!u.objectMode&&Object.getPrototypeOf(n)!==p.prototype){n=_uint8ArrayToBuffer(n)}if(a){if(u.endEmitted)r.emit("error",new Error("stream.unshift() after end event"));else addChunk(r,u,n,true)}else if(u.ended){r.emit("error",new Error("stream.push() after EOF"))}else{u.reading=false;if(u.decoder&&!s){n=u.decoder.write(n);if(u.objectMode||n.length!==0)addChunk(r,u,n,false);else maybeReadMore(r,u)}else{addChunk(r,u,n,false)}}}else if(!a){u.reading=false}}return needMoreData(u)}function addChunk(r,n,s,a){if(n.flowing&&n.length===0&&!n.sync){r.emit("data",s);r.read(0)}else{n.length+=n.objectMode?1:s.length;if(a)n.buffer.unshift(s);else n.buffer.push(s);if(n.needReadable)emitReadable(r)}maybeReadMore(r,n)}function chunkInvalid(r,n){var s;if(!_isUint8Array(n)&&typeof n!=="string"&&n!==undefined&&!r.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(r){return!r.ended&&(r.needReadable||r.length=S){r=S}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,n){if(r<=0||n.length===0&&n.ended)return 0;if(n.objectMode)return 1;if(r!==r){if(n.flowing&&n.length)return n.buffer.head.data.length;else return n.length}if(r>n.highWaterMark)n.highWaterMark=computeNewHighWaterMark(r);if(r<=n.length)return r;if(!n.ended){n.needReadable=true;return 0}return n.length}Readable.prototype.read=function(r){b("read",r);r=parseInt(r,10);var n=this._readableState;var s=r;if(r!==0)n.emittedReadable=false;if(r===0&&n.needReadable&&(n.length>=n.highWaterMark||n.ended)){b("read: emitReadable",n.length,n.ended);if(n.length===0&&n.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,n);if(r===0&&n.ended){if(n.length===0)endReadable(this);return null}var a=n.needReadable;b("need readable",a);if(n.length===0||n.length-r0)l=fromList(r,n);else l=null;if(l===null){n.needReadable=true;r=0}else{n.length-=r}if(n.length===0){if(!n.ended)n.needReadable=true;if(s!==r&&n.ended)endReadable(this)}if(l!==null)this.emit("data",l);return l};function onEofChunk(r,n){if(n.ended)return;if(n.decoder){var s=n.decoder.end();if(s&&s.length){n.buffer.push(s);n.length+=n.objectMode?1:s.length}}n.ended=true;emitReadable(r)}function emitReadable(r){var n=r._readableState;n.needReadable=false;if(!n.emittedReadable){b("emitReadable",n.flowing);n.emittedReadable=true;if(n.sync)a.nextTick(emitReadable_,r);else emitReadable_(r)}}function emitReadable_(r){b("emit readable");r.emit("readable");flow(r)}function maybeReadMore(r,n){if(!n.readingMore){n.readingMore=true;a.nextTick(maybeReadMore_,r,n)}}function maybeReadMore_(r,n){var s=n.length;while(!n.reading&&!n.flowing&&!n.ended&&n.length1&&indexOf(l.pipes,r)!==-1)&&!p){b("false write response, pause",l.awaitDrain);l.awaitDrain++;f=true}s.pause()}}function onerror(n){b("onerror",n);unpipe();r.removeListener("error",onerror);if(EElistenerCount(r,"error")===0)r.emit("error",n)}prependListener(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){b("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){b("unpipe");s.unpipe(r)}r.emit("pipe",s);if(!l.flowing){b("pipe resume");s.resume()}return r};function pipeOnDrain(r){return function(){var n=r._readableState;b("pipeOnDrain",n.awaitDrain);if(n.awaitDrain)n.awaitDrain--;if(n.awaitDrain===0&&EElistenerCount(r,"data")){n.flowing=true;flow(r)}}}Readable.prototype.unpipe=function(r){var n=this._readableState;var s={hasUnpiped:false};if(n.pipesCount===0)return this;if(n.pipesCount===1){if(r&&r!==n.pipes)return this;if(!r)r=n.pipes;n.pipes=null;n.pipesCount=0;n.flowing=false;if(r)r.emit("unpipe",this,s);return this}if(!r){var a=n.pipes;var l=n.pipesCount;n.pipes=null;n.pipesCount=0;n.flowing=false;for(var u=0;u=n.length){if(n.decoder)s=n.buffer.join("");else if(n.buffer.length===1)s=n.buffer.head.data;else s=n.buffer.concat(n.length);n.buffer.clear()}else{s=fromListPartial(r,n.buffer,n.decoder)}return s}function fromListPartial(r,n,s){var a;if(ru.length?u.length:r;if(d===u.length)l+=u;else l+=u.slice(0,r);r-=d;if(r===0){if(d===u.length){++a;if(s.next)n.head=s.next;else n.head=n.tail=null}else{n.head=s;s.data=u.slice(d)}break}++a}n.length-=a;return l}function copyFromBuffer(r,n){var s=p.allocUnsafe(r);var a=n.head;var l=1;a.data.copy(s);r-=a.data.length;while(a=a.next){var u=a.data;var d=r>u.length?u.length:r;u.copy(s,s.length-r,0,d);r-=d;if(r===0){if(d===u.length){++l;if(a.next)n.head=a.next;else n.head=n.tail=null}else{n.head=a;a.data=u.slice(d)}break}++l}n.length-=l;return s}function endReadable(r){var n=r._readableState;if(n.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!n.endEmitted){n.ended=true;a.nextTick(endReadableNT,n,r)}}function endReadableNT(r,n){if(!r.endEmitted&&r.length===0){r.endEmitted=true;n.readable=false;n.emit("end")}}function indexOf(r,n){for(var s=0,a=r.length;s{r.exports=Transform;var a=s(7354);var l=Object.create(s(22465));l.inherits=s(76153);l.inherits(Transform,a);function afterTransform(r,n){var s=this._transformState;s.transforming=false;var a=s.writecb;if(!a){return this.emit("error",new Error("write callback called multiple times"))}s.writechunk=null;s.writecb=null;if(n!=null)this.push(n);a(r);var l=this._readableState;l.reading=false;if(l.needReadable||l.length{var a=s(61710);r.exports=Writable;function WriteReq(r,n,s){this.chunk=r;this.encoding=n;this.callback=s;this.next=null}function CorkedRequest(r){var n=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(n,r)}}var l=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:a.nextTick;var u;Writable.WritableState=WritableState;var d=Object.create(s(22465));d.inherits=s(76153);var A={deprecate:s(48728)};var p=s(94324);var f=s(79253).Buffer;var g=(typeof global!=="undefined"?global:typeof window!=="undefined"?window:typeof self!=="undefined"?self:{}).Uint8Array||function(){};function _uint8ArrayToBuffer(r){return f.from(r)}function _isUint8Array(r){return f.isBuffer(r)||r instanceof g}var y=s(83716);d.inherits(Writable,p);function nop(){}function WritableState(r,n){u=u||s(7354);r=r||{};var a=n instanceof u;this.objectMode=!!r.objectMode;if(a)this.objectMode=this.objectMode||!!r.writableObjectMode;var l=r.highWaterMark;var d=r.writableHighWaterMark;var A=this.objectMode?16:16*1024;if(l||l===0)this.highWaterMark=l;else if(a&&(d||d===0))this.highWaterMark=d;else this.highWaterMark=A;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var p=r.decodeStrings===false;this.decodeStrings=!p;this.defaultEncoding=r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(r){onwrite(n,r)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var r=this.bufferedRequest;var n=[];while(r){n.push(r);r=r.next}return n};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:A.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(r){}})();var b;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){b=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(r){if(b.call(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}})}else{b=function(r){return r instanceof this}}function Writable(r){u=u||s(7354);if(!b.call(Writable,this)&&!(this instanceof u)){return new Writable(r)}this._writableState=new WritableState(r,this);this.writable=true;if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final}p.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(r,n){var s=new Error("write after end");r.emit("error",s);a.nextTick(n,s)}function validChunk(r,n,s,l){var u=true;var d=false;if(s===null){d=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!n.objectMode){d=new TypeError("Invalid non-string/buffer chunk")}if(d){r.emit("error",d);a.nextTick(l,d);u=false}return u}Writable.prototype.write=function(r,n,s){var a=this._writableState;var l=false;var u=!a.objectMode&&_isUint8Array(r);if(u&&!f.isBuffer(r)){r=_uint8ArrayToBuffer(r)}if(typeof n==="function"){s=n;n=null}if(u)n="buffer";else if(!n)n=a.defaultEncoding;if(typeof s!=="function")s=nop;if(a.ended)writeAfterEnd(this,s);else if(u||validChunk(this,a,r,s)){a.pendingcb++;l=writeOrBuffer(this,a,u,r,n,s)}return l};Writable.prototype.cork=function(){var r=this._writableState;r.corked++};Writable.prototype.uncork=function(){var r=this._writableState;if(r.corked){r.corked--;if(!r.writing&&!r.corked&&!r.bufferProcessing&&r.bufferedRequest)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=r.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((r+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+r);this._writableState.defaultEncoding=r;return this};function decodeChunk(r,n,s){if(!r.objectMode&&r.decodeStrings!==false&&typeof n==="string"){n=f.from(n,s)}return n}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(r,n,s,a,l,u){if(!s){var d=decodeChunk(n,a,l);if(a!==d){s=true;l="buffer";a=d}}var A=n.objectMode?1:a.length;n.length+=A;var p=n.length{function _classCallCheck(r,n){if(!(r instanceof n)){throw new TypeError("Cannot call a class as a function")}}var a=s(79253).Buffer;var l=s(39023);function copyBuffer(r,n,s){r.copy(n,s)}r.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(r){var n={data:r,next:null};if(this.length>0)this.tail.next=n;else this.head=n;this.tail=n;++this.length};BufferList.prototype.unshift=function unshift(r){var n={data:r,next:this.head};if(this.length===0)this.tail=n;this.head=n;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(r){if(this.length===0)return"";var n=this.head;var s=""+n.data;while(n=n.next){s+=r+n.data}return s};BufferList.prototype.concat=function concat(r){if(this.length===0)return a.alloc(0);var n=a.allocUnsafe(r>>>0);var s=this.head;var l=0;while(s){copyBuffer(s.data,n,l);l+=s.data.length;s=s.next}return n};return BufferList}();if(l&&l.inspect&&l.inspect.custom){r.exports.prototype[l.inspect.custom]=function(){var r=l.inspect({length:this.length});return this.constructor.name+" "+r}}},83716:(r,n,s)=>{var a=s(61710);function destroy(r,n){var s=this;var l=this._readableState&&this._readableState.destroyed;var u=this._writableState&&this._writableState.destroyed;if(l||u){if(n){n(r)}else if(r){if(!this._writableState){a.nextTick(emitErrorNT,this,r)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;a.nextTick(emitErrorNT,this,r)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(r||null,(function(r){if(!n&&r){if(!s._writableState){a.nextTick(emitErrorNT,s,r)}else if(!s._writableState.errorEmitted){s._writableState.errorEmitted=true;a.nextTick(emitErrorNT,s,r)}}else if(n){n(r)}}));return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(r,n){r.emit("error",n)}r.exports={destroy:destroy,undestroy:undestroy}},94324:(r,n,s)=>{r.exports=s(2203)},26614:(r,n,s)=>{r.exports=s(52818).PassThrough},52818:(r,n,s)=>{var a=s(2203);if(process.env.READABLE_STREAM==="disable"&&a){r.exports=a;n=r.exports=a.Readable;n.Readable=a.Readable;n.Writable=a.Writable;n.Duplex=a.Duplex;n.Transform=a.Transform;n.PassThrough=a.PassThrough;n.Stream=a}else{n=r.exports=s(97576);n.Stream=a||n;n.Readable=n;n.Writable=s(2232);n.Duplex=s(7354);n.Transform=s(34278);n.PassThrough=s(96348)}},72105:(r,n,s)=>{const{SymbolDispose:a}=s(95512);const{AbortError:l,codes:u}=s(79885);const{isNodeStream:d,isWebStream:A,kControllerErrorFunction:p}=s(73289);const f=s(44356);const{ERR_INVALID_ARG_TYPE:g}=u;let y;const validateAbortSignal=(r,n)=>{if(typeof r!=="object"||!("aborted"in r)){throw new g(n,"AbortSignal",r)}};r.exports.addAbortSignal=function addAbortSignal(n,s){validateAbortSignal(n,"signal");if(!d(s)&&!A(s)){throw new g("stream",["ReadableStream","WritableStream","Stream"],s)}return r.exports.addAbortSignalNoValidate(n,s)};r.exports.addAbortSignalNoValidate=function(r,n){if(typeof r!=="object"||!("aborted"in r)){return n}const u=d(n)?()=>{n.destroy(new l(undefined,{cause:r.reason}))}:()=>{n[p](new l(undefined,{cause:r.reason}))};if(r.aborted){u()}else{y=y||s(75806).addAbortListener;const l=y(r,u);f(n,l[a])}return n}},21195:(r,n,s)=>{const{StringPrototypeSlice:a,SymbolIterator:l,TypedArrayPrototypeSet:u,Uint8Array:d}=s(95512);const{Buffer:A}=s(20181);const{inspect:p}=s(75806);r.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){const n={data:r,next:null};if(this.length>0)this.tail.next=n;else this.head=n;this.tail=n;++this.length}unshift(r){const n={data:r,next:this.head};if(this.length===0)this.tail=n;this.head=n;++this.length}shift(){if(this.length===0)return;const r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";let n=this.head;let s=""+n.data;while((n=n.next)!==null)s+=r+n.data;return s}concat(r){if(this.length===0)return A.alloc(0);const n=A.allocUnsafe(r>>>0);let s=this.head;let a=0;while(s){u(n,s.data,a);a+=s.data.length;s=s.next}return n}consume(r,n){const s=this.head.data;if(ru.length){n+=u;r-=u.length}else{if(r===u.length){n+=u;++l;if(s.next)this.head=s.next;else this.head=this.tail=null}else{n+=a(u,0,r);this.head=s;s.data=a(u,r)}break}++l}while((s=s.next)!==null);this.length-=l;return n}_getBuffer(r){const n=A.allocUnsafe(r);const s=r;let a=this.head;let l=0;do{const A=a.data;if(r>A.length){u(n,A,s-r);r-=A.length}else{if(r===A.length){u(n,A,s-r);++l;if(a.next)this.head=a.next;else this.head=this.tail=null}else{u(n,new d(A.buffer,A.byteOffset,r),s-r);this.head=a;a.data=A.slice(r)}break}++l}while((a=a.next)!==null);this.length-=l;return n}[Symbol.for("nodejs.util.inspect.custom")](r,n){return p(this,{...n,depth:0,customInspect:false})}}},78256:(r,n,s)=>{const{pipeline:a}=s(84712);const l=s(60400);const{destroyer:u}=s(13822);const{isNodeStream:d,isReadable:A,isWritable:p,isWebStream:f,isTransformStream:g,isWritableStream:y,isReadableStream:b}=s(73289);const{AbortError:C,codes:{ERR_INVALID_ARG_VALUE:w,ERR_MISSING_ARGS:B}}=s(79885);const I=s(44356);r.exports=function compose(...r){if(r.length===0){throw new B("streams")}if(r.length===1){return l.from(r[0])}const n=[...r];if(typeof r[0]==="function"){r[0]=l.from(r[0])}if(typeof r[r.length-1]==="function"){const n=r.length-1;r[n]=l.from(r[n])}for(let s=0;s0&&!(p(r[s])||y(r[s])||g(r[s]))){throw new w(`streams[${s}]`,n[s],"must be writable")}}let s;let S;let Q;let v;let R;function onfinished(r){const n=v;v=null;if(n){n(r)}else if(r){R.destroy(r)}else if(!x&&!T){R.destroy()}}const D=r[0];const N=a(r,onfinished);const T=!!(p(D)||y(D)||g(D));const x=!!(A(N)||b(N)||g(N));R=new l({writableObjectMode:!!(D!==null&&D!==undefined&&D.writableObjectMode),readableObjectMode:!!(N!==null&&N!==undefined&&N.readableObjectMode),writable:T,readable:x});if(T){if(d(D)){R._write=function(r,n,a){if(D.write(r,n)){a()}else{s=a}};R._final=function(r){D.end();S=r};D.on("drain",(function(){if(s){const r=s;s=null;r()}}))}else if(f(D)){const r=g(D)?D.writable:D;const n=r.getWriter();R._write=async function(r,s,a){try{await n.ready;n.write(r).catch((()=>{}));a()}catch(r){a(r)}};R._final=async function(r){try{await n.ready;n.close().catch((()=>{}));S=r}catch(n){r(n)}}}const r=g(N)?N.readable:N;I(r,(()=>{if(S){const r=S;S=null;r()}}))}if(x){if(d(N)){N.on("readable",(function(){if(Q){const r=Q;Q=null;r()}}));N.on("end",(function(){R.push(null)}));R._read=function(){while(true){const r=N.read();if(r===null){Q=R._read;return}if(!R.push(r)){return}}}}else if(f(N)){const r=g(N)?N.readable:N;const n=r.getReader();R._read=async function(){while(true){try{const{value:r,done:s}=await n.read();if(!R.push(r)){return}if(s){R.push(null);return}}catch{return}}}}}R._destroy=function(r,n){if(!r&&v!==null){r=new C}Q=null;s=null;S=null;if(v===null){n(r)}else{v=n;if(d(N)){u(N,r)}}};return R}},13822:(r,n,s)=>{const a=s(50180);const{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:u},AbortError:d}=s(79885);const{Symbol:A}=s(95512);const{kIsDestroyed:p,isDestroyed:f,isFinished:g,isServerRequest:y}=s(73289);const b=A("kDestroy");const C=A("kConstruct");function checkError(r,n,s){if(r){r.stack;if(n&&!n.errored){n.errored=r}if(s&&!s.errored){s.errored=r}}}function destroy(r,n){const s=this._readableState;const a=this._writableState;const u=a||s;if(a!==null&&a!==undefined&&a.destroyed||s!==null&&s!==undefined&&s.destroyed){if(typeof n==="function"){n()}return this}checkError(r,a,s);if(a){a.destroyed=true}if(s){s.destroyed=true}if(!u.constructed){this.once(b,(function(s){_destroy(this,l(s,r),n)}))}else{_destroy(this,r,n)}return this}function _destroy(r,n,s){let l=false;function onDestroy(n){if(l){return}l=true;const u=r._readableState;const d=r._writableState;checkError(n,d,u);if(d){d.closed=true}if(u){u.closed=true}if(typeof s==="function"){s(n)}if(n){a.nextTick(emitErrorCloseNT,r,n)}else{a.nextTick(emitCloseNT,r)}}try{r._destroy(n||null,onDestroy)}catch(n){onDestroy(n)}}function emitErrorCloseNT(r,n){emitErrorNT(r,n);emitCloseNT(r)}function emitCloseNT(r){const n=r._readableState;const s=r._writableState;if(s){s.closeEmitted=true}if(n){n.closeEmitted=true}if(s!==null&&s!==undefined&&s.emitClose||n!==null&&n!==undefined&&n.emitClose){r.emit("close")}}function emitErrorNT(r,n){const s=r._readableState;const a=r._writableState;if(a!==null&&a!==undefined&&a.errorEmitted||s!==null&&s!==undefined&&s.errorEmitted){return}if(a){a.errorEmitted=true}if(s){s.errorEmitted=true}r.emit("error",n)}function undestroy(){const r=this._readableState;const n=this._writableState;if(r){r.constructed=true;r.closed=false;r.closeEmitted=false;r.destroyed=false;r.errored=null;r.errorEmitted=false;r.reading=false;r.ended=r.readable===false;r.endEmitted=r.readable===false}if(n){n.constructed=true;n.destroyed=false;n.closed=false;n.closeEmitted=false;n.errored=null;n.errorEmitted=false;n.finalCalled=false;n.prefinished=false;n.ended=n.writable===false;n.ending=n.writable===false;n.finished=n.writable===false}}function errorOrDestroy(r,n,s){const l=r._readableState;const u=r._writableState;if(u!==null&&u!==undefined&&u.destroyed||l!==null&&l!==undefined&&l.destroyed){return this}if(l!==null&&l!==undefined&&l.autoDestroy||u!==null&&u!==undefined&&u.autoDestroy)r.destroy(n);else if(n){n.stack;if(u&&!u.errored){u.errored=n}if(l&&!l.errored){l.errored=n}if(s){a.nextTick(emitErrorNT,r,n)}else{emitErrorNT(r,n)}}}function construct(r,n){if(typeof r._construct!=="function"){return}const s=r._readableState;const l=r._writableState;if(s){s.constructed=false}if(l){l.constructed=false}r.once(C,n);if(r.listenerCount(C)>1){return}a.nextTick(constructNT,r)}function constructNT(r){let n=false;function onConstruct(s){if(n){errorOrDestroy(r,s!==null&&s!==undefined?s:new u);return}n=true;const l=r._readableState;const d=r._writableState;const A=d||l;if(l){l.constructed=true}if(d){d.constructed=true}if(A.destroyed){r.emit(b,s)}else if(s){errorOrDestroy(r,s,true)}else{a.nextTick(emitConstructNT,r)}}try{r._construct((r=>{a.nextTick(onConstruct,r)}))}catch(r){a.nextTick(onConstruct,r)}}function emitConstructNT(r){r.emit(C)}function isRequest(r){return(r===null||r===undefined?undefined:r.setHeader)&&typeof r.abort==="function"}function emitCloseLegacy(r){r.emit("close")}function emitErrorCloseLegacy(r,n){r.emit("error",n);a.nextTick(emitCloseLegacy,r)}function destroyer(r,n){if(!r||f(r)){return}if(!n&&!g(r)){n=new d}if(y(r)){r.socket=null;r.destroy(n)}else if(isRequest(r)){r.abort()}else if(isRequest(r.req)){r.req.abort()}else if(typeof r.destroy==="function"){r.destroy(n)}else if(typeof r.close==="function"){r.close()}else if(n){a.nextTick(emitErrorCloseLegacy,r,n)}else{a.nextTick(emitCloseLegacy,r)}if(!r.destroyed){r[p]=true}}r.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},60400:(r,n,s)=>{const{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:u,ObjectSetPrototypeOf:d}=s(95512);r.exports=Duplex;const A=s(406);const p=s(34234);d(Duplex.prototype,A.prototype);d(Duplex,A);{const r=u(p.prototype);for(let n=0;n{const a=s(50180);"use strict";const l=s(20181);const{isReadable:u,isWritable:d,isIterable:A,isNodeStream:p,isReadableNodeStream:f,isWritableNodeStream:g,isDuplexNodeStream:y,isReadableStream:b,isWritableStream:C}=s(73289);const w=s(44356);const{AbortError:B,codes:{ERR_INVALID_ARG_TYPE:I,ERR_INVALID_RETURN_VALUE:S}}=s(79885);const{destroyer:Q}=s(13822);const v=s(60400);const R=s(406);const D=s(34234);const{createDeferredPromise:N}=s(75806);const T=s(17806);const x=globalThis.Blob||l.Blob;const k=typeof x!=="undefined"?function isBlob(r){return r instanceof x}:function isBlob(r){return false};const _=globalThis.AbortController||s(19914).AbortController;const{FunctionPrototypeCall:P}=s(95512);class Duplexify extends v{constructor(r){super(r);if((r===null||r===undefined?undefined:r.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((r===null||r===undefined?undefined:r.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}r.exports=function duplexify(r,n){if(y(r)){return r}if(f(r)){return _duplexify({readable:r})}if(g(r)){return _duplexify({writable:r})}if(p(r)){return _duplexify({writable:false,readable:false})}if(b(r)){return _duplexify({readable:R.fromWeb(r)})}if(C(r)){return _duplexify({writable:D.fromWeb(r)})}if(typeof r==="function"){const{value:s,write:l,final:u,destroy:d}=fromAsyncGen(r);if(A(s)){return T(Duplexify,s,{objectMode:true,write:l,final:u,destroy:d})}const p=s===null||s===undefined?undefined:s.then;if(typeof p==="function"){let r;const n=P(p,s,(r=>{if(r!=null){throw new S("nully","body",r)}}),(n=>{Q(r,n)}));return r=new Duplexify({objectMode:true,readable:false,write:l,final(r){u((async()=>{try{await n;a.nextTick(r,null)}catch(n){a.nextTick(r,n)}}))},destroy:d})}throw new S("Iterable, AsyncIterable or AsyncFunction",n,s)}if(k(r)){return duplexify(r.arrayBuffer())}if(A(r)){return T(Duplexify,r,{objectMode:true,writable:false})}if(b(r===null||r===undefined?undefined:r.readable)&&C(r===null||r===undefined?undefined:r.writable)){return Duplexify.fromWeb(r)}if(typeof(r===null||r===undefined?undefined:r.writable)==="object"||typeof(r===null||r===undefined?undefined:r.readable)==="object"){const n=r!==null&&r!==undefined&&r.readable?f(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:duplexify(r.readable):undefined;const s=r!==null&&r!==undefined&&r.writable?g(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:duplexify(r.writable):undefined;return _duplexify({readable:n,writable:s})}const s=r===null||r===undefined?undefined:r.then;if(typeof s==="function"){let n;P(s,r,(r=>{if(r!=null){n.push(r)}n.push(null)}),(r=>{Q(n,r)}));return n=new Duplexify({objectMode:true,writable:false,read(){}})}throw new I(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)};function fromAsyncGen(r){let{promise:n,resolve:s}=N();const l=new _;const u=l.signal;const d=r(async function*(){while(true){const r=n;n=null;const{chunk:l,done:d,cb:A}=await r;a.nextTick(A);if(d)return;if(u.aborted)throw new B(undefined,{cause:u.reason});({promise:n,resolve:s}=N());yield l}}(),{signal:u});return{value:d,write(r,n,a){const l=s;s=null;l({chunk:r,done:false,cb:a})},final(r){const n=s;s=null;n({done:true,cb:r})},destroy(r,n){l.abort();n(r)}}}function _duplexify(r){const n=r.readable&&typeof r.readable.read!=="function"?R.wrap(r.readable):r.readable;const s=r.writable;let a=!!u(n);let l=!!d(s);let A;let p;let f;let g;let y;function onfinished(r){const n=g;g=null;if(n){n(r)}else if(r){y.destroy(r)}}y=new Duplexify({readableObjectMode:!!(n!==null&&n!==undefined&&n.readableObjectMode),writableObjectMode:!!(s!==null&&s!==undefined&&s.writableObjectMode),readable:a,writable:l});if(l){w(s,(r=>{l=false;if(r){Q(n,r)}onfinished(r)}));y._write=function(r,n,a){if(s.write(r,n)){a()}else{A=a}};y._final=function(r){s.end();p=r};s.on("drain",(function(){if(A){const r=A;A=null;r()}}));s.on("finish",(function(){if(p){const r=p;p=null;r()}}))}if(a){w(n,(r=>{a=false;if(r){Q(n,r)}onfinished(r)}));n.on("readable",(function(){if(f){const r=f;f=null;r()}}));n.on("end",(function(){y.push(null)}));y._read=function(){while(true){const r=n.read();if(r===null){f=y._read;return}if(!y.push(r)){return}}}}y._destroy=function(r,a){if(!r&&g!==null){r=new B}f=null;A=null;p=null;if(g===null){a(r)}else{g=a;Q(s,r);Q(n,r)}};return y}},44356:(r,n,s)=>{const a=s(50180);const{AbortError:l,codes:u}=s(79885);const{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_PREMATURE_CLOSE:A}=u;const{kEmptyObject:p,once:f}=s(75806);const{validateAbortSignal:g,validateFunction:y,validateObject:b,validateBoolean:C}=s(46827);const{Promise:w,PromisePrototypeThen:B,SymbolDispose:I}=s(95512);const{isClosed:S,isReadable:Q,isReadableNodeStream:v,isReadableStream:R,isReadableFinished:D,isReadableErrored:N,isWritable:T,isWritableNodeStream:x,isWritableStream:k,isWritableFinished:_,isWritableErrored:P,isNodeStream:F,willEmitClose:L,kIsClosedPromise:O}=s(73289);let M;function isRequest(r){return r.setHeader&&typeof r.abort==="function"}const nop=()=>{};function eos(r,n,u){var C,w;if(arguments.length===2){u=n;n=p}else if(n==null){n=p}else{b(n,"options")}y(u,"callback");g(n.signal,"options.signal");u=f(u);if(R(r)||k(r)){return eosWeb(r,n,u)}if(!F(r)){throw new d("stream",["ReadableStream","WritableStream","Stream"],r)}const B=(C=n.readable)!==null&&C!==undefined?C:v(r);const O=(w=n.writable)!==null&&w!==undefined?w:x(r);const U=r._writableState;const H=r._readableState;const onlegacyfinish=()=>{if(!r.writable){onfinish()}};let G=L(r)&&v(r)===B&&x(r)===O;let z=_(r,false);const onfinish=()=>{z=true;if(r.destroyed){G=false}if(G&&(!r.readable||B)){return}if(!B||q){u.call(r)}};let q=D(r,false);const onend=()=>{q=true;if(r.destroyed){G=false}if(G&&(!r.writable||O)){return}if(!O||z){u.call(r)}};const onerror=n=>{u.call(r,n)};let V=S(r);const onclose=()=>{V=true;const n=P(r)||N(r);if(n&&typeof n!=="boolean"){return u.call(r,n)}if(B&&!q&&v(r,true)){if(!D(r,false))return u.call(r,new A)}if(O&&!z){if(!_(r,false))return u.call(r,new A)}u.call(r)};const onclosed=()=>{V=true;const n=P(r)||N(r);if(n&&typeof n!=="boolean"){return u.call(r,n)}u.call(r)};const onrequest=()=>{r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);if(!G){r.on("abort",onclose)}if(r.req){onrequest()}else{r.on("request",onrequest)}}else if(O&&!U){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(!G&&typeof r.aborted==="boolean"){r.on("aborted",onclose)}r.on("end",onend);r.on("finish",onfinish);if(n.error!==false){r.on("error",onerror)}r.on("close",onclose);if(V){a.nextTick(onclose)}else if(U!==null&&U!==undefined&&U.errorEmitted||H!==null&&H!==undefined&&H.errorEmitted){if(!G){a.nextTick(onclosed)}}else if(!B&&(!G||Q(r))&&(z||T(r)===false)){a.nextTick(onclosed)}else if(!O&&(!G||T(r))&&(q||Q(r)===false)){a.nextTick(onclosed)}else if(H&&r.req&&r.aborted){a.nextTick(onclosed)}const cleanup=()=>{u=nop;r.removeListener("aborted",onclose);r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)};if(n.signal&&!V){const abort=()=>{const s=u;cleanup();s.call(r,new l(undefined,{cause:n.signal.reason}))};if(n.signal.aborted){a.nextTick(abort)}else{M=M||s(75806).addAbortListener;const a=M(n.signal,abort);const l=u;u=f(((...n)=>{a[I]();l.apply(r,n)}))}}return cleanup}function eosWeb(r,n,u){let d=false;let A=nop;if(n.signal){A=()=>{d=true;u.call(r,new l(undefined,{cause:n.signal.reason}))};if(n.signal.aborted){a.nextTick(A)}else{M=M||s(75806).addAbortListener;const a=M(n.signal,A);const l=u;u=f(((...n)=>{a[I]();l.apply(r,n)}))}}const resolverFn=(...n)=>{if(!d){a.nextTick((()=>u.apply(r,n)))}};B(r[O].promise,resolverFn,resolverFn);return nop}function finished(r,n){var s;let a=false;if(n===null){n=p}if((s=n)!==null&&s!==undefined&&s.cleanup){C(n.cleanup,"cleanup");a=n.cleanup}return new w(((s,l)=>{const u=eos(r,n,(r=>{if(a){u()}if(r){l(r)}else{s()}}))}))}r.exports=eos;r.exports.finished=finished},17806:(r,n,s)=>{const a=s(50180);const{PromisePrototypeThen:l,SymbolAsyncIterator:u,SymbolIterator:d}=s(95512);const{Buffer:A}=s(20181);const{ERR_INVALID_ARG_TYPE:p,ERR_STREAM_NULL_VALUES:f}=s(79885).codes;function from(r,n,s){let g;if(typeof n==="string"||n instanceof A){return new r({objectMode:true,...s,read(){this.push(n);this.push(null)}})}let y;if(n&&n[u]){y=true;g=n[u]()}else if(n&&n[d]){y=false;g=n[d]()}else{throw new p("iterable",["Iterable"],n)}const b=new r({objectMode:true,highWaterMark:1,...s});let C=false;b._read=function(){if(!C){C=true;next()}};b._destroy=function(r,n){l(close(r),(()=>a.nextTick(n,r)),(s=>a.nextTick(n,s||r)))};async function close(r){const n=r!==undefined&&r!==null;const s=typeof g.throw==="function";if(n&&s){const{value:n,done:s}=await g.throw(r);await n;if(s){return}}if(typeof g.return==="function"){const{value:r}=await g.return();await r}}async function next(){for(;;){try{const{value:r,done:n}=y?await g.next():g.next();if(n){b.push(null)}else{const n=r&&typeof r.then==="function"?await r:r;if(n===null){C=false;throw new f}else if(b.push(n)){continue}else{C=false}}}catch(r){b.destroy(r)}break}}return b}r.exports=from},98321:(r,n,s)=>{const{ArrayIsArray:a,ObjectSetPrototypeOf:l}=s(95512);const{EventEmitter:u}=s(24434);function Stream(r){u.call(this,r)}l(Stream.prototype,u.prototype);l(Stream,u);Stream.prototype.pipe=function(r,n){const s=this;function ondata(n){if(r.writable&&r.write(n)===false&&s.pause){s.pause()}}s.on("data",ondata);function ondrain(){if(s.readable&&s.resume){s.resume()}}r.on("drain",ondrain);if(!r._isStdio&&(!n||n.end!==false)){s.on("end",onend);s.on("close",onclose)}let a=false;function onend(){if(a)return;a=true;r.end()}function onclose(){if(a)return;a=true;if(typeof r.destroy==="function")r.destroy()}function onerror(r){cleanup();if(u.listenerCount(this,"error")===0){this.emit("error",r)}}prependListener(s,"error",onerror);prependListener(r,"error",onerror);function cleanup(){s.removeListener("data",ondata);r.removeListener("drain",ondrain);s.removeListener("end",onend);s.removeListener("close",onclose);s.removeListener("error",onerror);r.removeListener("error",onerror);s.removeListener("end",cleanup);s.removeListener("close",cleanup);r.removeListener("close",cleanup)}s.on("end",cleanup);s.on("close",cleanup);r.on("close",cleanup);r.emit("pipe",s);return r};function prependListener(r,n,s){if(typeof r.prependListener==="function")return r.prependListener(n,s);if(!r._events||!r._events[n])r.on(n,s);else if(a(r._events[n]))r._events[n].unshift(s);else r._events[n]=[s,r._events[n]]}r.exports={Stream:Stream,prependListener:prependListener}},99509:(r,n,s)=>{const a=globalThis.AbortController||s(19914).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:u,ERR_MISSING_ARGS:d,ERR_OUT_OF_RANGE:A},AbortError:p}=s(79885);const{validateAbortSignal:f,validateInteger:g,validateObject:y}=s(46827);const b=s(95512).Symbol("kWeak");const C=s(95512).Symbol("kResistStopPropagation");const{finished:w}=s(44356);const B=s(78256);const{addAbortSignalNoValidate:I}=s(72105);const{isWritable:S,isNodeStream:Q}=s(73289);const{deprecate:v}=s(75806);const{ArrayPrototypePush:R,Boolean:D,MathFloor:N,Number:T,NumberIsNaN:x,Promise:k,PromiseReject:_,PromiseResolve:P,PromisePrototypeThen:F,Symbol:L}=s(95512);const O=L("kEmpty");const M=L("kEof");function compose(r,n){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}if(Q(r)&&!S(r)){throw new l("stream",r,"must be writable")}const s=B(this,r);if(n!==null&&n!==undefined&&n.signal){I(n.signal,s)}return s}function map(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}let a=1;if((n===null||n===undefined?undefined:n.concurrency)!=null){a=N(n.concurrency)}let l=a-1;if((n===null||n===undefined?undefined:n.highWaterMark)!=null){l=N(n.highWaterMark)}g(a,"options.concurrency",1);g(l,"options.highWaterMark",0);l+=a;return async function*map(){const u=s(75806).AbortSignalAny([n===null||n===undefined?undefined:n.signal].filter(D));const d=this;const A=[];const f={signal:u};let g;let y;let b=false;let C=0;function onCatch(){b=true;afterItemProcessed()}function afterItemProcessed(){C-=1;maybeResume()}function maybeResume(){if(y&&!b&&C=l||C>=a)){await new k((r=>{y=r}))}}A.push(M)}catch(r){const n=_(r);F(n,afterItemProcessed,onCatch);A.push(n)}finally{b=true;if(g){g();g=null}}}pump();try{while(true){while(A.length>0){const r=await A[0];if(r===M){return}if(u.aborted){throw new p}if(r!==O){yield r}A.shift();maybeResume()}await new k((r=>{g=r}))}}finally{b=true;if(y){y();y=null}}}.call(this)}function asIndexedPairs(r=undefined){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){f(r.signal,"options.signal")}return async function*asIndexedPairs(){let n=0;for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new p({cause:r.signal.reason})}yield[n++,a]}}.call(this)}async function some(r,n=undefined){for await(const s of filter.call(this,r,n)){return true}return false}async function every(r,n=undefined){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}return!await some.call(this,(async(...n)=>!await r(...n)),n)}async function find(r,n){for await(const s of filter.call(this,r,n)){return s}return undefined}async function forEach(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}async function forEachFn(n,s){await r(n,s);return O}for await(const r of map.call(this,forEachFn,n));}function filter(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}async function filterFn(n,s){if(await r(n,s)){return n}return O}return map.call(this,filterFn,n)}class ReduceAwareErrMissingArgs extends d{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(r,n,s){var l;if(typeof r!=="function"){throw new u("reducer",["Function","AsyncFunction"],r)}if(s!=null){y(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){f(s.signal,"options.signal")}let d=arguments.length>1;if(s!==null&&s!==undefined&&(l=s.signal)!==null&&l!==undefined&&l.aborted){const r=new p(undefined,{cause:s.signal.reason});this.once("error",(()=>{}));await w(this.destroy(r));throw r}const A=new a;const g=A.signal;if(s!==null&&s!==undefined&&s.signal){const r={once:true,[b]:this,[C]:true};s.signal.addEventListener("abort",(()=>A.abort()),r)}let B=false;try{for await(const a of this){var I;B=true;if(s!==null&&s!==undefined&&(I=s.signal)!==null&&I!==undefined&&I.aborted){throw new p}if(!d){n=a;d=true}else{n=await r(n,a,{signal:g})}}if(!B&&!d){throw new ReduceAwareErrMissingArgs}}finally{A.abort()}return n}async function toArray(r){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){f(r.signal,"options.signal")}const n=[];for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new p(undefined,{cause:r.signal.reason})}R(n,a)}return n}function flatMap(r,n){const s=map.call(this,r,n);return async function*flatMap(){for await(const r of s){yield*r}}.call(this)}function toIntegerOrInfinity(r){r=T(r);if(x(r)){return 0}if(r<0){throw new A("number",">= 0",r)}return r}function drop(r,n=undefined){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*drop(){var s;if(n!==null&&n!==undefined&&(s=n.signal)!==null&&s!==undefined&&s.aborted){throw new p}for await(const s of this){var a;if(n!==null&&n!==undefined&&(a=n.signal)!==null&&a!==undefined&&a.aborted){throw new p}if(r--<=0){yield s}}}.call(this)}function take(r,n=undefined){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*take(){var s;if(n!==null&&n!==undefined&&(s=n.signal)!==null&&s!==undefined&&s.aborted){throw new p}for await(const s of this){var a;if(n!==null&&n!==undefined&&(a=n.signal)!==null&&a!==undefined&&a.aborted){throw new p}if(r-- >0){yield s}if(r<=0){return}}}.call(this)}r.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};r.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},26578:(r,n,s)=>{const{ObjectSetPrototypeOf:a}=s(95512);r.exports=PassThrough;const l=s(480);a(PassThrough.prototype,l.prototype);a(PassThrough,l);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);l.call(this,r)}PassThrough.prototype._transform=function(r,n,s){s(null,r)}},84712:(r,n,s)=>{const a=s(50180);"use strict";const{ArrayIsArray:l,Promise:u,SymbolAsyncIterator:d,SymbolDispose:A}=s(95512);const p=s(44356);const{once:f}=s(75806);const g=s(13822);const y=s(60400);const{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:C,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:B,ERR_STREAM_DESTROYED:I,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:Q}=s(79885);const{validateFunction:v,validateAbortSignal:R}=s(46827);const{isIterable:D,isReadable:N,isReadableNodeStream:T,isNodeStream:x,isTransformStream:k,isWebStream:_,isReadableStream:P,isReadableFinished:F}=s(73289);const L=globalThis.AbortController||s(19914).AbortController;let O;let M;let U;function destroyer(r,n,s){let a=false;r.on("close",(()=>{a=true}));const l=p(r,{readable:n,writable:s},(r=>{a=!r}));return{destroy:n=>{if(a)return;a=true;g.destroyer(r,n||new I("pipe"))},cleanup:l}}function popCallback(r){v(r[r.length-1],"streams[stream.length - 1]");return r.pop()}function makeAsyncIterable(r){if(D(r)){return r}else if(T(r)){return fromReadable(r)}throw new C("val",["Readable","Iterable","AsyncIterable"],r)}async function*fromReadable(r){if(!M){M=s(406)}yield*M.prototype[d].call(r)}async function pumpToNode(r,n,s,{end:a}){let l;let d=null;const resume=r=>{if(r){l=r}if(d){const r=d;d=null;r()}};const wait=()=>new u(((r,n)=>{if(l){n(l)}else{d=()=>{if(l){n(l)}else{r()}}}}));n.on("drain",resume);const A=p(n,{readable:false},resume);try{if(n.writableNeedDrain){await wait()}for await(const s of r){if(!n.write(s)){await wait()}}if(a){n.end();await wait()}s()}catch(r){s(l!==r?b(l,r):r)}finally{A();n.off("drain",resume)}}async function pumpToWeb(r,n,s,{end:a}){if(k(n)){n=n.writable}const l=n.getWriter();try{for await(const n of r){await l.ready;l.write(n).catch((()=>{}))}await l.ready;if(a){await l.close()}s()}catch(r){try{await l.abort(r);s(r)}catch(r){s(r)}}}function pipeline(...r){return pipelineImpl(r,f(popCallback(r)))}function pipelineImpl(r,n,u){if(r.length===1&&l(r[0])){r=r[0]}if(r.length<2){throw new B("streams")}const d=new L;const p=d.signal;const f=u===null||u===undefined?undefined:u.signal;const g=[];R(f,"options.signal");function abort(){finishImpl(new Q)}U=U||s(75806).addAbortListener;let b;if(f){b=U(f,abort)}let I;let S;const v=[];let F=0;function finish(r){finishImpl(r,--F===0)}function finishImpl(r,s){var l;if(r&&(!I||I.code==="ERR_STREAM_PREMATURE_CLOSE")){I=r}if(!I&&!s){return}while(v.length){v.shift()(I)}(l=b)===null||l===undefined?undefined:l[A]();d.abort();if(s){if(!I){g.forEach((r=>r()))}a.nextTick(n,I,S)}}let M;for(let z=0;z0;const j=V||(u===null||u===undefined?undefined:u.end)!==false;const Y=z===r.length-1;if(x(q)){if(j){const{destroy:J,cleanup:$}=destroyer(q,V,W);v.push(J);if(N(q)&&Y){g.push($)}}function onError(r){if(r&&r.name!=="AbortError"&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(r)}}q.on("error",onError);if(N(q)&&Y){g.push((()=>{q.removeListener("error",onError)}))}}if(z===0){if(typeof q==="function"){M=q({signal:p});if(!D(M)){throw new w("Iterable, AsyncIterable or Stream","source",M)}}else if(D(q)||T(q)||k(q)){M=q}else{M=y.from(q)}}else if(typeof q==="function"){if(k(M)){var H;M=makeAsyncIterable((H=M)===null||H===undefined?undefined:H.readable)}else{M=makeAsyncIterable(M)}M=q(M,{signal:p});if(V){if(!D(M,true)){throw new w("AsyncIterable",`transform[${z-1}]`,M)}}else{var G;if(!O){O=s(26578)}const K=new O({objectMode:true});const X=(G=M)===null||G===undefined?undefined:G.then;if(typeof X==="function"){F++;X.call(M,(r=>{S=r;if(r!=null){K.write(r)}if(j){K.end()}a.nextTick(finish)}),(r=>{K.destroy(r);a.nextTick(finish,r)}))}else if(D(M,true)){F++;pumpToNode(M,K,finish,{end:j})}else if(P(M)||k(M)){const te=M.readable||M;F++;pumpToNode(te,K,finish,{end:j})}else{throw new w("AsyncIterable or Promise","destination",M)}M=K;const{destroy:Z,cleanup:ee}=destroyer(M,false,true);v.push(Z);if(Y){g.push(ee)}}}else if(x(q)){if(T(M)){F+=2;const re=pipe(M,q,finish,{end:j});if(N(q)&&Y){g.push(re)}}else if(k(M)||P(M)){const ne=M.readable||M;F++;pumpToNode(ne,q,finish,{end:j})}else if(D(M)){F++;pumpToNode(M,q,finish,{end:j})}else{throw new C("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=q}else if(_(q)){if(T(M)){F++;pumpToWeb(makeAsyncIterable(M),q,finish,{end:j})}else if(P(M)||D(M)){F++;pumpToWeb(M,q,finish,{end:j})}else if(k(M)){F++;pumpToWeb(M.readable,q,finish,{end:j})}else{throw new C("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=q}else{M=y.from(q)}}if(p!==null&&p!==undefined&&p.aborted||f!==null&&f!==undefined&&f.aborted){a.nextTick(abort)}return M}function pipe(r,n,s,{end:l}){let u=false;n.on("close",(()=>{if(!u){s(new S)}}));r.pipe(n,{end:false});if(l){function endFn(){u=true;n.end()}if(F(r)){a.nextTick(endFn)}else{r.once("end",endFn)}}else{s()}p(r,{readable:true,writable:false},(n=>{const a=r._readableState;if(n&&n.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted){r.once("end",s).once("error",s)}else{s(n)}}));return p(n,{readable:false,writable:true},s)}r.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},406:(r,n,s)=>{const a=s(50180);const{ArrayPrototypeIndexOf:l,NumberIsInteger:u,NumberIsNaN:d,NumberParseInt:A,ObjectDefineProperties:p,ObjectKeys:f,ObjectSetPrototypeOf:g,Promise:y,SafeSet:b,SymbolAsyncDispose:C,SymbolAsyncIterator:w,Symbol:B}=s(95512);r.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:I}=s(24434);const{Stream:S,prependListener:Q}=s(98321);const{Buffer:v}=s(20181);const{addAbortSignal:R}=s(72105);const D=s(44356);let N=s(75806).debuglog("stream",(r=>{N=r}));const T=s(21195);const x=s(13822);const{getHighWaterMark:k,getDefaultHighWaterMark:_}=s(25873);const{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:H}=s(79885);const{validateObject:G}=s(46827);const z=B("kPaused");const{StringDecoder:q}=s(93243);const V=s(17806);g(Readable.prototype,S.prototype);g(Readable,S);const nop=()=>{};const{errorOrDestroy:W}=x;const j=1<<0;const Y=1<<1;const J=1<<2;const $=1<<3;const K=1<<4;const X=1<<5;const Z=1<<6;const ee=1<<7;const te=1<<8;const re=1<<9;const ne=1<<10;const se=1<<11;const ie=1<<12;const oe=1<<13;const ae=1<<14;const le=1<<15;const ce=1<<16;const ue=1<<17;const de=1<<18;function makeBitMapDescriptor(r){return{enumerable:false,get(){return(this.state&r)!==0},set(n){if(n)this.state|=r;else this.state&=~r}}}p(ReadableState.prototype,{objectMode:makeBitMapDescriptor(j),ended:makeBitMapDescriptor(Y),endEmitted:makeBitMapDescriptor(J),reading:makeBitMapDescriptor($),constructed:makeBitMapDescriptor(K),sync:makeBitMapDescriptor(X),needReadable:makeBitMapDescriptor(Z),emittedReadable:makeBitMapDescriptor(ee),readableListening:makeBitMapDescriptor(te),resumeScheduled:makeBitMapDescriptor(re),errorEmitted:makeBitMapDescriptor(ne),emitClose:makeBitMapDescriptor(se),autoDestroy:makeBitMapDescriptor(ie),destroyed:makeBitMapDescriptor(oe),closed:makeBitMapDescriptor(ae),closeEmitted:makeBitMapDescriptor(le),multiAwaitDrain:makeBitMapDescriptor(ce),readingMore:makeBitMapDescriptor(ue),dataEmitted:makeBitMapDescriptor(de)});function ReadableState(r,n,a){if(typeof a!=="boolean")a=n instanceof s(60400);this.state=se|ie|K|X;if(r&&r.objectMode)this.state|=j;if(a&&r&&r.readableObjectMode)this.state|=j;this.highWaterMark=r?k(this,r,"readableHighWaterMark",a):_(false);this.buffer=new T;this.length=0;this.pipes=[];this.flowing=null;this[z]=null;if(r&&r.emitClose===false)this.state&=~se;if(r&&r.autoDestroy===false)this.state&=~ie;this.errored=null;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(r&&r.encoding){this.decoder=new q(r.encoding);this.encoding=r.encoding}}function Readable(r){if(!(this instanceof Readable))return new Readable(r);const n=this instanceof s(60400);this._readableState=new ReadableState(r,this,n);if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!n)R(r.signal,this)}S.call(this,r);x.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=x.destroy;Readable.prototype._undestroy=x.undestroy;Readable.prototype._destroy=function(r,n){n(r)};Readable.prototype[I.captureRejectionSymbol]=function(r){this.destroy(r)};Readable.prototype[C]=function(){let r;if(!this.destroyed){r=this.readableEnded?null:new H;this.destroy(r)}return new y(((n,s)=>D(this,(a=>a&&a!==r?s(a):n(null)))))};Readable.prototype.push=function(r,n){return readableAddChunk(this,r,n,false)};Readable.prototype.unshift=function(r,n){return readableAddChunk(this,r,n,true)};function readableAddChunk(r,n,s,a){N("readableAddChunk",n);const l=r._readableState;let u;if((l.state&j)===0){if(typeof n==="string"){s=s||l.defaultEncoding;if(l.encoding!==s){if(a&&l.encoding){n=v.from(n,s).toString(l.encoding)}else{n=v.from(n,s);s=""}}}else if(n instanceof v){s=""}else if(S._isUint8Array(n)){n=S._uint8ArrayToBuffer(n);s=""}else if(n!=null){u=new F("chunk",["string","Buffer","Uint8Array"],n)}}if(u){W(r,u)}else if(n===null){l.state&=~$;onEofChunk(r,l)}else if((l.state&j)!==0||n&&n.length>0){if(a){if((l.state&J)!==0)W(r,new U);else if(l.destroyed||l.errored)return false;else addChunk(r,l,n,true)}else if(l.ended){W(r,new M)}else if(l.destroyed||l.errored){return false}else{l.state&=~$;if(l.decoder&&!s){n=l.decoder.write(n);if(l.objectMode||n.length!==0)addChunk(r,l,n,false);else maybeReadMore(r,l)}else{addChunk(r,l,n,false)}}}else if(!a){l.state&=~$;maybeReadMore(r,l)}return!l.ended&&(l.length0){if((n.state&ce)!==0){n.awaitDrainWriters.clear()}else{n.awaitDrainWriters=null}n.dataEmitted=true;r.emit("data",s)}else{n.length+=n.objectMode?1:s.length;if(a)n.buffer.unshift(s);else n.buffer.push(s);if((n.state&Z)!==0)emitReadable(r)}maybeReadMore(r,n)}Readable.prototype.isPaused=function(){const r=this._readableState;return r[z]===true||r.flowing===false};Readable.prototype.setEncoding=function(r){const n=new q(r);this._readableState.decoder=n;this._readableState.encoding=this._readableState.decoder.encoding;const s=this._readableState.buffer;let a="";for(const r of s){a+=n.write(r)}s.clear();if(a!=="")s.push(a);this._readableState.length=a.length;return this};const Ae=1073741824;function computeNewHighWaterMark(r){if(r>Ae){throw new O("size","<= 1GiB",r)}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,n){if(r<=0||n.length===0&&n.ended)return 0;if((n.state&j)!==0)return 1;if(d(r)){if(n.flowing&&n.length)return n.buffer.first().length;return n.length}if(r<=n.length)return r;return n.ended?n.length:0}Readable.prototype.read=function(r){N("read",r);if(r===undefined){r=NaN}else if(!u(r)){r=A(r,10)}const n=this._readableState;const s=r;if(r>n.highWaterMark)n.highWaterMark=computeNewHighWaterMark(r);if(r!==0)n.state&=~ee;if(r===0&&n.needReadable&&((n.highWaterMark!==0?n.length>=n.highWaterMark:n.length>0)||n.ended)){N("read: emitReadable",n.length,n.ended);if(n.length===0&&n.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,n);if(r===0&&n.ended){if(n.length===0)endReadable(this);return null}let a=(n.state&Z)!==0;N("need readable",a);if(n.length===0||n.length-r0)l=fromList(r,n);else l=null;if(l===null){n.needReadable=n.length<=n.highWaterMark;r=0}else{n.length-=r;if(n.multiAwaitDrain){n.awaitDrainWriters.clear()}else{n.awaitDrainWriters=null}}if(n.length===0){if(!n.ended)n.needReadable=true;if(s!==r&&n.ended)endReadable(this)}if(l!==null&&!n.errorEmitted&&!n.closeEmitted){n.dataEmitted=true;this.emit("data",l)}return l};function onEofChunk(r,n){N("onEofChunk");if(n.ended)return;if(n.decoder){const r=n.decoder.end();if(r&&r.length){n.buffer.push(r);n.length+=n.objectMode?1:r.length}}n.ended=true;if(n.sync){emitReadable(r)}else{n.needReadable=false;n.emittedReadable=true;emitReadable_(r)}}function emitReadable(r){const n=r._readableState;N("emitReadable",n.needReadable,n.emittedReadable);n.needReadable=false;if(!n.emittedReadable){N("emitReadable",n.flowing);n.emittedReadable=true;a.nextTick(emitReadable_,r)}}function emitReadable_(r){const n=r._readableState;N("emitReadable_",n.destroyed,n.length,n.ended);if(!n.destroyed&&!n.errored&&(n.length||n.ended)){r.emit("readable");n.emittedReadable=false}n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark;flow(r)}function maybeReadMore(r,n){if(!n.readingMore&&n.constructed){n.readingMore=true;a.nextTick(maybeReadMore_,r,n)}}function maybeReadMore_(r,n){while(!n.reading&&!n.ended&&(n.length1&&l.pipes.includes(r)){N("false write response, pause",l.awaitDrainWriters.size);l.awaitDrainWriters.add(r)}s.pause()}if(!A){A=pipeOnDrain(s,r);r.on("drain",A)}}s.on("data",ondata);function ondata(n){N("ondata");const s=r.write(n);N("dest.write",s);if(s===false){pause()}}function onerror(n){N("onerror",n);unpipe();r.removeListener("error",onerror);if(r.listenerCount("error")===0){const s=r._writableState||r._readableState;if(s&&!s.errorEmitted){W(r,n)}else{r.emit("error",n)}}}Q(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){N("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){N("unpipe");s.unpipe(r)}r.emit("pipe",s);if(r.writableNeedDrain===true){pause()}else if(!l.flowing){N("pipe resume");s.resume()}return r};function pipeOnDrain(r,n){return function pipeOnDrainFunctionResult(){const s=r._readableState;if(s.awaitDrainWriters===n){N("pipeOnDrain",1);s.awaitDrainWriters=null}else if(s.multiAwaitDrain){N("pipeOnDrain",s.awaitDrainWriters.size);s.awaitDrainWriters.delete(n)}if((!s.awaitDrainWriters||s.awaitDrainWriters.size===0)&&r.listenerCount("data")){r.resume()}}}Readable.prototype.unpipe=function(r){const n=this._readableState;const s={hasUnpiped:false};if(n.pipes.length===0)return this;if(!r){const r=n.pipes;n.pipes=[];this.pause();for(let n=0;n0;if(l.flowing!==false)this.resume()}else if(r==="readable"){if(!l.endEmitted&&!l.readableListening){l.readableListening=l.needReadable=true;l.flowing=false;l.emittedReadable=false;N("on readable",l.length,l.reading);if(l.length){emitReadable(this)}else if(!l.reading){a.nextTick(nReadingNextTick,this)}}}return s};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(r,n){const s=S.prototype.removeListener.call(this,r,n);if(r==="readable"){a.nextTick(updateReadableListening,this)}return s};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(r){const n=S.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===undefined){a.nextTick(updateReadableListening,this)}return n};function updateReadableListening(r){const n=r._readableState;n.readableListening=r.listenerCount("readable")>0;if(n.resumeScheduled&&n[z]===false){n.flowing=true}else if(r.listenerCount("data")>0){r.resume()}else if(!n.readableListening){n.flowing=null}}function nReadingNextTick(r){N("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){const r=this._readableState;if(!r.flowing){N("resume");r.flowing=!r.readableListening;resume(this,r)}r[z]=false;return this};function resume(r,n){if(!n.resumeScheduled){n.resumeScheduled=true;a.nextTick(resume_,r,n)}}function resume_(r,n){N("resume",n.reading);if(!n.reading){r.read(0)}n.resumeScheduled=false;r.emit("resume");flow(r);if(n.flowing&&!n.reading)r.read(0)}Readable.prototype.pause=function(){N("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){N("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[z]=true;return this};function flow(r){const n=r._readableState;N("flow",n.flowing);while(n.flowing&&r.read()!==null);}Readable.prototype.wrap=function(r){let n=false;r.on("data",(s=>{if(!this.push(s)&&r.pause){n=true;r.pause()}}));r.on("end",(()=>{this.push(null)}));r.on("error",(r=>{W(this,r)}));r.on("close",(()=>{this.destroy()}));r.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(n&&r.resume){n=false;r.resume()}};const s=f(r);for(let n=1;n{a=r?P(a,r):null;s();s=nop}));try{while(true){const n=r.destroyed?null:r.read();if(n!==null){yield n}else if(a){throw a}else if(a===null){return}else{await new y(next)}}}catch(r){a=P(a,r);throw a}finally{if((a||(n===null||n===undefined?undefined:n.destroyOnReturn)!==false)&&(a===undefined||r._readableState.autoDestroy)){x.destroyer(r,null)}else{r.off("readable",next);l()}}}p(Readable.prototype,{readable:{__proto__:null,get(){const r=this._readableState;return!!r&&r.readable!==false&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState){this._readableState.readable=!!r}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState){this._readableState.flowing=r}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(r){if(!this._readableState){return}this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});p(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==false},set(r){this[z]=!!r}}});Readable._fromList=fromList;function fromList(r,n){if(n.length===0)return null;let s;if(n.objectMode)s=n.buffer.shift();else if(!r||r>=n.length){if(n.decoder)s=n.buffer.join("");else if(n.buffer.length===1)s=n.buffer.first();else s=n.buffer.concat(n.length);n.buffer.clear()}else{s=n.buffer.consume(r,n.decoder)}return s}function endReadable(r){const n=r._readableState;N("endReadable",n.endEmitted);if(!n.endEmitted){n.ended=true;a.nextTick(endReadableNT,n,r)}}function endReadableNT(r,n){N("endReadableNT",r.endEmitted,r.length);if(!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){r.endEmitted=true;n.emit("end");if(n.writable&&n.allowHalfOpen===false){a.nextTick(endWritableNT,n)}else if(r.autoDestroy){const r=n._writableState;const s=!r||r.autoDestroy&&(r.finished||r.writable===false);if(s){n.destroy()}}}}function endWritableNT(r){const n=r.writable&&!r.writableEnded&&!r.destroyed;if(n){r.end()}}Readable.from=function(r,n){return V(Readable,r,n)};let pe;function lazyWebStreams(){if(pe===undefined)pe={};return pe}Readable.fromWeb=function(r,n){return lazyWebStreams().newStreamReadableFromReadableStream(r,n)};Readable.toWeb=function(r,n){return lazyWebStreams().newReadableStreamFromStreamReadable(r,n)};Readable.wrap=function(r,n){var s,a;return new Readable({objectMode:(s=(a=r.readableObjectMode)!==null&&a!==undefined?a:r.objectMode)!==null&&s!==undefined?s:true,...n,destroy(n,s){x.destroyer(r,n);s(n)}}).wrap(r)}},25873:(r,n,s)=>{const{MathFloor:a,NumberIsInteger:l}=s(95512);const{validateInteger:u}=s(46827);const{ERR_INVALID_ARG_VALUE:d}=s(79885).codes;let A=16*1024;let p=16;function highWaterMarkFrom(r,n,s){return r.highWaterMark!=null?r.highWaterMark:n?r[s]:null}function getDefaultHighWaterMark(r){return r?p:A}function setDefaultHighWaterMark(r,n){u(n,"value",0);if(r){p=n}else{A=n}}function getHighWaterMark(r,n,s,u){const A=highWaterMarkFrom(n,u,s);if(A!=null){if(!l(A)||A<0){const r=u?`options.${s}`:"options.highWaterMark";throw new d(r,A)}return a(A)}return getDefaultHighWaterMark(r.objectMode)}r.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},480:(r,n,s)=>{const{ObjectSetPrototypeOf:a,Symbol:l}=s(95512);r.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:u}=s(79885).codes;const d=s(60400);const{getHighWaterMark:A}=s(25873);a(Transform.prototype,d.prototype);a(Transform,d);const p=l("kCallback");function Transform(r){if(!(this instanceof Transform))return new Transform(r);const n=r?A(this,r,"readableHighWaterMark",true):null;if(n===0){r={...r,highWaterMark:null,readableHighWaterMark:n,writableHighWaterMark:r.writableHighWaterMark||0}}d.call(this,r);this._readableState.sync=false;this[p]=null;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function final(r){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((n,s)=>{if(n){if(r){r(n)}else{this.destroy(n)}return}if(s!=null){this.push(s)}this.push(null);if(r){r()}}))}else{this.push(null);if(r){r()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(r,n,s){throw new u("_transform()")};Transform.prototype._write=function(r,n,s){const a=this._readableState;const l=this._writableState;const u=a.length;this._transform(r,n,((r,n)=>{if(r){s(r);return}if(n!=null){this.push(n)}if(l.ended||u===a.length||a.length{const{SymbolAsyncIterator:a,SymbolIterator:l,SymbolFor:u}=s(95512);const d=u("nodejs.stream.destroyed");const A=u("nodejs.stream.errored");const p=u("nodejs.stream.readable");const f=u("nodejs.stream.writable");const g=u("nodejs.stream.disturbed");const y=u("nodejs.webstream.isClosedPromise");const b=u("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(r,n=false){var s;return!!(r&&typeof r.pipe==="function"&&typeof r.on==="function"&&(!n||typeof r.pause==="function"&&typeof r.resume==="function")&&(!r._writableState||((s=r._readableState)===null||s===undefined?undefined:s.readable)!==false)&&(!r._writableState||r._readableState))}function isWritableNodeStream(r){var n;return!!(r&&typeof r.write==="function"&&typeof r.on==="function"&&(!r._readableState||((n=r._writableState)===null||n===undefined?undefined:n.writable)!==false))}function isDuplexNodeStream(r){return!!(r&&typeof r.pipe==="function"&&r._readableState&&typeof r.on==="function"&&typeof r.write==="function")}function isNodeStream(r){return r&&(r._readableState||r._writableState||typeof r.write==="function"&&typeof r.on==="function"||typeof r.pipe==="function"&&typeof r.on==="function")}function isReadableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.pipeThrough==="function"&&typeof r.getReader==="function"&&typeof r.cancel==="function")}function isWritableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.getWriter==="function"&&typeof r.abort==="function")}function isTransformStream(r){return!!(r&&!isNodeStream(r)&&typeof r.readable==="object"&&typeof r.writable==="object")}function isWebStream(r){return isReadableStream(r)||isWritableStream(r)||isTransformStream(r)}function isIterable(r,n){if(r==null)return false;if(n===true)return typeof r[a]==="function";if(n===false)return typeof r[l]==="function";return typeof r[a]==="function"||typeof r[l]==="function"}function isDestroyed(r){if(!isNodeStream(r))return null;const n=r._writableState;const s=r._readableState;const a=n||s;return!!(r.destroyed||r[d]||a!==null&&a!==undefined&&a.destroyed)}function isWritableEnded(r){if(!isWritableNodeStream(r))return null;if(r.writableEnded===true)return true;const n=r._writableState;if(n!==null&&n!==undefined&&n.errored)return false;if(typeof(n===null||n===undefined?undefined:n.ended)!=="boolean")return null;return n.ended}function isWritableFinished(r,n){if(!isWritableNodeStream(r))return null;if(r.writableFinished===true)return true;const s=r._writableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.finished)!=="boolean")return null;return!!(s.finished||n===false&&s.ended===true&&s.length===0)}function isReadableEnded(r){if(!isReadableNodeStream(r))return null;if(r.readableEnded===true)return true;const n=r._readableState;if(!n||n.errored)return false;if(typeof(n===null||n===undefined?undefined:n.ended)!=="boolean")return null;return n.ended}function isReadableFinished(r,n){if(!isReadableNodeStream(r))return null;const s=r._readableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.endEmitted)!=="boolean")return null;return!!(s.endEmitted||n===false&&s.ended===true&&s.length===0)}function isReadable(r){if(r&&r[p]!=null)return r[p];if(typeof(r===null||r===undefined?undefined:r.readable)!=="boolean")return null;if(isDestroyed(r))return false;return isReadableNodeStream(r)&&r.readable&&!isReadableFinished(r)}function isWritable(r){if(r&&r[f]!=null)return r[f];if(typeof(r===null||r===undefined?undefined:r.writable)!=="boolean")return null;if(isDestroyed(r))return false;return isWritableNodeStream(r)&&r.writable&&!isWritableEnded(r)}function isFinished(r,n){if(!isNodeStream(r)){return null}if(isDestroyed(r)){return true}if((n===null||n===undefined?undefined:n.readable)!==false&&isReadable(r)){return false}if((n===null||n===undefined?undefined:n.writable)!==false&&isWritable(r)){return false}return true}function isWritableErrored(r){var n,s;if(!isNodeStream(r)){return null}if(r.writableErrored){return r.writableErrored}return(n=(s=r._writableState)===null||s===undefined?undefined:s.errored)!==null&&n!==undefined?n:null}function isReadableErrored(r){var n,s;if(!isNodeStream(r)){return null}if(r.readableErrored){return r.readableErrored}return(n=(s=r._readableState)===null||s===undefined?undefined:s.errored)!==null&&n!==undefined?n:null}function isClosed(r){if(!isNodeStream(r)){return null}if(typeof r.closed==="boolean"){return r.closed}const n=r._writableState;const s=r._readableState;if(typeof(n===null||n===undefined?undefined:n.closed)==="boolean"||typeof(s===null||s===undefined?undefined:s.closed)==="boolean"){return(n===null||n===undefined?undefined:n.closed)||(s===null||s===undefined?undefined:s.closed)}if(typeof r._closed==="boolean"&&isOutgoingMessage(r)){return r._closed}return null}function isOutgoingMessage(r){return typeof r._closed==="boolean"&&typeof r._defaultKeepAlive==="boolean"&&typeof r._removedConnection==="boolean"&&typeof r._removedContLen==="boolean"}function isServerResponse(r){return typeof r._sent100==="boolean"&&isOutgoingMessage(r)}function isServerRequest(r){var n;return typeof r._consuming==="boolean"&&typeof r._dumped==="boolean"&&((n=r.req)===null||n===undefined?undefined:n.upgradeOrConnect)===undefined}function willEmitClose(r){if(!isNodeStream(r))return null;const n=r._writableState;const s=r._readableState;const a=n||s;return!a&&isServerResponse(r)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===false)}function isDisturbed(r){var n;return!!(r&&((n=r[g])!==null&&n!==undefined?n:r.readableDidRead||r.readableAborted))}function isErrored(r){var n,s,a,l,u,d,p,f,g,y;return!!(r&&((n=(s=(a=(l=(u=(d=r[A])!==null&&d!==undefined?d:r.readableErrored)!==null&&u!==undefined?u:r.writableErrored)!==null&&l!==undefined?l:(p=r._readableState)===null||p===undefined?undefined:p.errorEmitted)!==null&&a!==undefined?a:(f=r._writableState)===null||f===undefined?undefined:f.errorEmitted)!==null&&s!==undefined?s:(g=r._readableState)===null||g===undefined?undefined:g.errored)!==null&&n!==undefined?n:(y=r._writableState)===null||y===undefined?undefined:y.errored))}r.exports={isDestroyed:isDestroyed,kIsDestroyed:d,isDisturbed:isDisturbed,kIsDisturbed:g,isErrored:isErrored,kIsErrored:A,isReadable:isReadable,kIsReadable:p,kIsClosedPromise:y,kControllerErrorFunction:b,kIsWritable:f,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},34234:(r,n,s)=>{const a=s(50180);const{ArrayPrototypeSlice:l,Error:u,FunctionPrototypeSymbolHasInstance:d,ObjectDefineProperty:A,ObjectDefineProperties:p,ObjectSetPrototypeOf:f,StringPrototypeToLowerCase:g,Symbol:y,SymbolHasInstance:b}=s(95512);r.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:C}=s(24434);const w=s(98321).Stream;const{Buffer:B}=s(20181);const I=s(13822);const{addAbortSignal:S}=s(72105);const{getHighWaterMark:Q,getDefaultHighWaterMark:v}=s(25873);const{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:D,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:T,ERR_STREAM_DESTROYED:x,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:P,ERR_UNKNOWN_ENCODING:F}=s(79885).codes;const{errorOrDestroy:L}=I;f(Writable.prototype,w.prototype);f(Writable,w);function nop(){}const O=y("kOnFinished");function WritableState(r,n,a){if(typeof a!=="boolean")a=n instanceof s(60400);this.objectMode=!!(r&&r.objectMode);if(a)this.objectMode=this.objectMode||!!(r&&r.writableObjectMode);this.highWaterMark=r?Q(this,r,"writableHighWaterMark",a):v(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const l=!!(r&&r.decodeStrings===false);this.decodeStrings=!l;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,n);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!r||r.emitClose!==false;this.autoDestroy=!r||r.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[O]=[]}function resetBuffer(r){r.buffered=[];r.bufferedIndex=0;r.allBuffers=true;r.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return l(this.buffered,this.bufferedIndex)};A(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(r){const n=this instanceof s(60400);if(!n&&!d(Writable,this))return new Writable(r);this._writableState=new WritableState(r,this,n);if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal)S(r.signal,this)}w.call(this,r);I.construct(this,(()=>{const r=this._writableState;if(!r.writing){clearBuffer(this,r)}finishMaybe(this,r)}))}A(Writable,b,{__proto__:null,value:function(r){if(d(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}});Writable.prototype.pipe=function(){L(this,new T)};function _write(r,n,s,l){const u=r._writableState;if(typeof s==="function"){l=s;s=u.defaultEncoding}else{if(!s)s=u.defaultEncoding;else if(s!=="buffer"&&!B.isEncoding(s))throw new F(s);if(typeof l!=="function")l=nop}if(n===null){throw new _}else if(!u.objectMode){if(typeof n==="string"){if(u.decodeStrings!==false){n=B.from(n,s);s="buffer"}}else if(n instanceof B){s="buffer"}else if(w._isUint8Array(n)){n=w._uint8ArrayToBuffer(n);s="buffer"}else{throw new R("chunk",["string","Buffer","Uint8Array"],n)}}let d;if(u.ending){d=new P}else if(u.destroyed){d=new x("write")}if(d){a.nextTick(l,d);L(r,d,true);return d}u.pendingcb++;return writeOrBuffer(r,u,n,s,l)}Writable.prototype.write=function(r,n,s){return _write(this,r,n,s)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const r=this._writableState;if(r.corked){r.corked--;if(!r.writing)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=g(r);if(!B.isEncoding(r))throw new F(r);this._writableState.defaultEncoding=r;return this};function writeOrBuffer(r,n,s,a,l){const u=n.objectMode?1:s.length;n.length+=u;const d=n.lengths.bufferedIndex){clearBuffer(r,s)}if(l){if(s.afterWriteTickInfo!==null&&s.afterWriteTickInfo.cb===u){s.afterWriteTickInfo.count++}else{s.afterWriteTickInfo={count:1,cb:u,stream:r,state:s};a.nextTick(afterWriteTick,s.afterWriteTickInfo)}}else{afterWrite(r,s,1,u)}}}function afterWriteTick({stream:r,state:n,count:s,cb:a}){n.afterWriteTickInfo=null;return afterWrite(r,n,s,a)}function afterWrite(r,n,s,a){const l=!n.ending&&!r.destroyed&&n.length===0&&n.needDrain;if(l){n.needDrain=false;r.emit("drain")}while(s-- >0){n.pendingcb--;a()}if(n.destroyed){errorBuffer(n)}finishMaybe(r,n)}function errorBuffer(r){if(r.writing){return}for(let s=r.bufferedIndex;s1&&r._writev){n.pendingcb-=d-1;const a=n.allNoop?nop:r=>{for(let n=A;n256){s.splice(0,A);n.bufferedIndex=0}else{n.bufferedIndex=A}}n.bufferProcessing=false}Writable.prototype._write=function(r,n,s){if(this._writev){this._writev([{chunk:r,encoding:n}],s)}else{throw new D("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(r,n,s){const l=this._writableState;if(typeof r==="function"){s=r;r=null;n=null}else if(typeof n==="function"){s=n;n=null}let d;if(r!==null&&r!==undefined){const s=_write(this,r,n);if(s instanceof u){d=s}}if(l.corked){l.corked=1;this.uncork()}if(d){}else if(!l.errored&&!l.ending){l.ending=true;finishMaybe(this,l,true);l.ended=true}else if(l.finished){d=new k("end")}else if(l.destroyed){d=new x("end")}if(typeof s==="function"){if(d||l.finished){a.nextTick(s,d)}else{l[O].push(s)}}return this};function needFinish(r){return r.ending&&!r.destroyed&&r.constructed&&r.length===0&&!r.errored&&r.buffered.length===0&&!r.finished&&!r.writing&&!r.errorEmitted&&!r.closeEmitted}function callFinal(r,n){let s=false;function onFinish(l){if(s){L(r,l!==null&&l!==undefined?l:N());return}s=true;n.pendingcb--;if(l){const s=n[O].splice(0);for(let r=0;r{if(needFinish(n)){finish(r,n)}else{n.pendingcb--}}),r,n)}else if(needFinish(n)){n.pendingcb++;finish(r,n)}}}}function finish(r,n){n.pendingcb--;n.finished=true;const s=n[O].splice(0);for(let r=0;r{const{ArrayIsArray:a,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:u,ArrayPrototypeMap:d,NumberIsInteger:A,NumberIsNaN:p,NumberMAX_SAFE_INTEGER:f,NumberMIN_SAFE_INTEGER:g,NumberParseInt:y,ObjectPrototypeHasOwnProperty:b,RegExpPrototypeExec:C,String:w,StringPrototypeToUpperCase:B,StringPrototypeTrim:I}=s(95512);const{hideStackFrames:S,codes:{ERR_SOCKET_BAD_PORT:Q,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:R,ERR_OUT_OF_RANGE:D,ERR_UNKNOWN_SIGNAL:N}}=s(79885);const{normalizeEncoding:T}=s(75806);const{isAsyncFunction:x,isArrayBufferView:k}=s(75806).types;const _={};function isInt32(r){return r===(r|0)}function isUint32(r){return r===r>>>0}const P=/^[0-7]+$/;const F="must be a 32-bit unsigned integer or an octal string";function parseFileMode(r,n,s){if(typeof r==="undefined"){r=s}if(typeof r==="string"){if(C(P,r)===null){throw new R(n,r,F)}r=y(r,8)}M(r,n);return r}const L=S(((r,n,s=g,a=f)=>{if(typeof r!=="number")throw new v(n,"number",r);if(!A(r))throw new D(n,"an integer",r);if(ra)throw new D(n,`>= ${s} && <= ${a}`,r)}));const O=S(((r,n,s=-2147483648,a=2147483647)=>{if(typeof r!=="number"){throw new v(n,"number",r)}if(!A(r)){throw new D(n,"an integer",r)}if(ra){throw new D(n,`>= ${s} && <= ${a}`,r)}}));const M=S(((r,n,s=false)=>{if(typeof r!=="number"){throw new v(n,"number",r)}if(!A(r)){throw new D(n,"an integer",r)}const a=s?1:0;const l=4294967295;if(rl){throw new D(n,`>= ${a} && <= ${l}`,r)}}));function validateString(r,n){if(typeof r!=="string")throw new v(n,"string",r)}function validateNumber(r,n,s=undefined,a){if(typeof r!=="number")throw new v(n,"number",r);if(s!=null&&ra||(s!=null||a!=null)&&p(r)){throw new D(n,`${s!=null?`>= ${s}`:""}${s!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}}const U=S(((r,n,s)=>{if(!l(s,r)){const a=u(d(s,(r=>typeof r==="string"?`'${r}'`:w(r))),", ");const l="must be one of: "+a;throw new R(n,r,l)}}));function validateBoolean(r,n){if(typeof r!=="boolean")throw new v(n,"boolean",r)}function getOwnPropertyValueOrDefault(r,n,s){return r==null||!b(r,n)?s:r[n]}const H=S(((r,n,s=null)=>{const l=getOwnPropertyValueOrDefault(s,"allowArray",false);const u=getOwnPropertyValueOrDefault(s,"allowFunction",false);const d=getOwnPropertyValueOrDefault(s,"nullable",false);if(!d&&r===null||!l&&a(r)||typeof r!=="object"&&(!u||typeof r!=="function")){throw new v(n,"Object",r)}}));const G=S(((r,n)=>{if(r!=null&&typeof r!=="object"&&typeof r!=="function"){throw new v(n,"a dictionary",r)}}));const z=S(((r,n,s=0)=>{if(!a(r)){throw new v(n,"Array",r)}if(r.length{if(!k(r)){throw new v(n,["Buffer","TypedArray","DataView"],r)}}));function validateEncoding(r,n){const s=T(n);const a=r.length;if(s==="hex"&&a%2!==0){throw new R("encoding",n,`is invalid for data of length ${a}`)}}function validatePort(r,n="Port",s=true){if(typeof r!=="number"&&typeof r!=="string"||typeof r==="string"&&I(r).length===0||+r!==+r>>>0||r>65535||r===0&&!s){throw new Q(n,r,s)}return r|0}const V=S(((r,n)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new v(n,"AbortSignal",r)}}));const W=S(((r,n)=>{if(typeof r!=="function")throw new v(n,"Function",r)}));const j=S(((r,n)=>{if(typeof r!=="function"||x(r))throw new v(n,"Function",r)}));const Y=S(((r,n)=>{if(r!==undefined)throw new v(n,"undefined",r)}));function validateUnion(r,n,s){if(!l(s,r)){throw new v(n,`('${u(s,"|")}')`,r)}}const J=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(r,n){if(typeof r==="undefined"||!C(J,r)){throw new R(n,r,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(r){if(typeof r==="string"){validateLinkHeaderFormat(r,"hints");return r}else if(a(r)){const n=r.length;let s="";if(n===0){return s}for(let a=0;a; rel=preload; as=style"')}r.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:z,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:q,validateDictionary:G,validateEncoding:validateEncoding,validateFunction:W,validateInt32:O,validateInteger:L,validateNumber:validateNumber,validateObject:H,validateOneOf:U,validatePlainFunction:j,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:M,validateUndefined:Y,validateUnion:validateUnion,validateAbortSignal:V,validateLinkHeaderValue:validateLinkHeaderValue}},79885:(r,n,s)=>{const{format:a,inspect:l}=s(73293);const{AggregateError:u}=s(95512);const d=globalThis.AggregateError||u;const A=Symbol("kIsNodeError");const p=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const f=/^([A-Z][a-z0-9]*)+$/;const g="__node_internal_";const y={};function assert(r,n){if(!r){throw new y.ERR_INTERNAL_ASSERTION(n)}}function addNumericalSeparator(r){let n="";let s=r.length;const a=r[0]==="-"?1:0;for(;s>=a+4;s-=3){n=`_${r.slice(s-3,s)}${n}`}return`${r.slice(0,s)}${n}`}function getMessage(r,n,s){if(typeof n==="function"){assert(n.length<=s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${n.length}).`);return n(...s)}const l=(n.match(/%[dfijoOs]/g)||[]).length;assert(l===s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${l}).`);if(s.length===0){return n}return a(n,...s)}function E(r,n,s){if(!s){s=Error}class NodeError extends s{constructor(...s){super(getMessage(r,n,s))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:s.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=r;NodeError.prototype[A]=true;y[r]=NodeError}function hideStackFrames(r){const n=g+r.name;Object.defineProperty(r,"name",{value:n});return r}function aggregateTwoErrors(r,n){if(r&&n&&r!==n){if(Array.isArray(n.errors)){n.errors.push(r);return n}const s=new d([n,r],n.message);s.code=n.code;return s}return r||n}class AbortError extends Error{constructor(r="The operation was aborted",n=undefined){if(n!==undefined&&typeof n!=="object"){throw new y.ERR_INVALID_ARG_TYPE("options","Object",n)}super(r,n);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((r,n,s)=>{assert(typeof r==="string","'name' must be a string");if(!Array.isArray(n)){n=[n]}let a="The ";if(r.endsWith(" argument")){a+=`${r} `}else{a+=`"${r}" ${r.includes(".")?"property":"argument"} `}a+="must be ";const u=[];const d=[];const A=[];for(const r of n){assert(typeof r==="string","All expected entries have to be of type string");if(p.includes(r)){u.push(r.toLowerCase())}else if(f.test(r)){d.push(r)}else{assert(r!=="object",'The value "object" should be written as "Object"');A.push(r)}}if(d.length>0){const r=u.indexOf("object");if(r!==-1){u.splice(u,r,1);d.push("Object")}}if(u.length>0){switch(u.length){case 1:a+=`of type ${u[0]}`;break;case 2:a+=`one of type ${u[0]} or ${u[1]}`;break;default:{const r=u.pop();a+=`one of type ${u.join(", ")}, or ${r}`}}if(d.length>0||A.length>0){a+=" or "}}if(d.length>0){switch(d.length){case 1:a+=`an instance of ${d[0]}`;break;case 2:a+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const r=d.pop();a+=`an instance of ${d.join(", ")}, or ${r}`}}if(A.length>0){a+=" or "}}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0]){a+="an "}a+=`${A[0]}`;break;case 2:a+=`one of ${A[0]} or ${A[1]}`;break;default:{const r=A.pop();a+=`one of ${A.join(", ")}, or ${r}`}}if(s==null){a+=`. Received ${s}`}else if(typeof s==="function"&&s.name){a+=`. Received function ${s.name}`}else if(typeof s==="object"){var g;if((g=s.constructor)!==null&&g!==undefined&&g.name){a+=`. Received an instance of ${s.constructor.name}`}else{const r=l(s,{depth:-1});a+=`. Received ${r}`}}else{let r=l(s,{colors:false});if(r.length>25){r=`${r.slice(0,25)}...`}a+=`. Received type ${typeof s} (${r})`}return a}),TypeError);E("ERR_INVALID_ARG_VALUE",((r,n,s="is invalid")=>{let a=l(n);if(a.length>128){a=a.slice(0,128)+"..."}const u=r.includes(".")?"property":"argument";return`The ${u} '${r}' ${s}. Received ${a}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((r,n,s)=>{var a;const l=s!==null&&s!==undefined&&(a=s.constructor)!==null&&a!==undefined&&a.name?`instance of ${s.constructor.name}`:`type ${typeof s}`;return`Expected ${r} to be returned from the "${n}"`+` function but got ${l}.`}),TypeError);E("ERR_MISSING_ARGS",((...r)=>{assert(r.length>0,"At least one arg needs to be specified");let n;const s=r.length;r=(Array.isArray(r)?r:[r]).map((r=>`"${r}"`)).join(" or ");switch(s){case 1:n+=`The ${r[0]} argument`;break;case 2:n+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const s=r.pop();n+=`The ${r.join(", ")}, and ${s} arguments`}break}return`${n} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((r,n,s)=>{assert(n,'Missing "range" argument');let a;if(Number.isInteger(s)&&Math.abs(s)>2**32){a=addNumericalSeparator(String(s))}else if(typeof s==="bigint"){a=String(s);const r=BigInt(2)**BigInt(32);if(s>r||s<-r){a=addNumericalSeparator(a)}a+="n"}else{a=l(s)}return`The value of "${r}" is out of range. It must be ${n}. Received ${a}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);r.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:y}},48924:(r,n,s)=>{const a=s(2203);if(a&&process.env.READABLE_STREAM==="disable"){const n=a.promises;r.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer;r.exports._isUint8Array=a._isUint8Array;r.exports.isDisturbed=a.isDisturbed;r.exports.isErrored=a.isErrored;r.exports.isReadable=a.isReadable;r.exports.Readable=a.Readable;r.exports.Writable=a.Writable;r.exports.Duplex=a.Duplex;r.exports.Transform=a.Transform;r.exports.PassThrough=a.PassThrough;r.exports.addAbortSignal=a.addAbortSignal;r.exports.finished=a.finished;r.exports.destroy=a.destroy;r.exports.pipeline=a.pipeline;r.exports.compose=a.compose;Object.defineProperty(a,"promises",{configurable:true,enumerable:true,get(){return n}});r.exports.Stream=a.Stream}else{const n=s(89204);const a=s(3161);const l=n.Readable.destroy;r.exports=n.Readable;r.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer;r.exports._isUint8Array=n._isUint8Array;r.exports.isDisturbed=n.isDisturbed;r.exports.isErrored=n.isErrored;r.exports.isReadable=n.isReadable;r.exports.Readable=n.Readable;r.exports.Writable=n.Writable;r.exports.Duplex=n.Duplex;r.exports.Transform=n.Transform;r.exports.PassThrough=n.PassThrough;r.exports.addAbortSignal=n.addAbortSignal;r.exports.finished=n.finished;r.exports.destroy=n.destroy;r.exports.destroy=l;r.exports.pipeline=n.pipeline;r.exports.compose=n.compose;Object.defineProperty(n,"promises",{configurable:true,enumerable:true,get(){return a}});r.exports.Stream=n.Stream}r.exports["default"]=r.exports},95512:r=>{class AggregateError extends Error{constructor(r){if(!Array.isArray(r)){throw new TypeError(`Expected input to be an Array, got ${typeof r}`)}let n="";for(let s=0;s{const a=s(20181);const{format:l,inspect:u}=s(73293);const{codes:{ERR_INVALID_ARG_TYPE:d}}=s(79885);const{kResistStopPropagation:A,AggregateError:p,SymbolDispose:f}=s(95512);const g=globalThis.AbortSignal||s(19914).AbortSignal;const y=globalThis.AbortController||s(19914).AbortController;const b=Object.getPrototypeOf((async function(){})).constructor;const C=globalThis.Blob||a.Blob;const w=typeof C!=="undefined"?function isBlob(r){return r instanceof C}:function isBlob(r){return false};const validateAbortSignal=(r,n)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new d(n,"AbortSignal",r)}};const validateFunction=(r,n)=>{if(typeof r!=="function"){throw new d(n,"Function",r)}};r.exports={AggregateError:p,kEmptyObject:Object.freeze({}),once(r){let n=false;return function(...s){if(n){return}n=true;r.apply(this,s)}},createDeferredPromise:function(){let r;let n;const s=new Promise(((s,a)=>{r=s;n=a}));return{promise:s,resolve:r,reject:n}},promisify(r){return new Promise(((n,s)=>{r(((r,...a)=>{if(r){return s(r)}return n(...a)}))}))},debuglog(){return function(){}},format:l,inspect:u,types:{isAsyncFunction(r){return r instanceof b},isArrayBufferView(r){return ArrayBuffer.isView(r)}},isBlob:w,deprecate(r,n){return r},addAbortListener:s(24434).addAbortListener||function addAbortListener(r,n){if(r===undefined){throw new d("signal","AbortSignal",r)}validateAbortSignal(r,"signal");validateFunction(n,"listener");let s;if(r.aborted){queueMicrotask((()=>n()))}else{r.addEventListener("abort",n,{__proto__:null,once:true,[A]:true});s=()=>{r.removeEventListener("abort",n)}}return{__proto__:null,[f](){var r;(r=s)===null||r===undefined?undefined:r()}}},AbortSignalAny:g.any||function AbortSignalAny(r){if(r.length===1){return r[0]}const n=new y;const abort=()=>n.abort();r.forEach((r=>{validateAbortSignal(r,"signals");r.addEventListener("abort",abort,{once:true})}));n.signal.addEventListener("abort",(()=>{r.forEach((r=>r.removeEventListener("abort",abort)))}),{once:true});return n.signal}};r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},73293:r=>{r.exports={format(r,...n){return r.replace(/%([sdifj])/g,(function(...[r,s]){const a=n.shift();if(s==="f"){return a.toFixed(6)}else if(s==="j"){return JSON.stringify(a)}else if(s==="s"&&typeof a==="object"){const r=a.constructor!==Object?a.constructor.name:"";return`${r} {}`.trim()}else{return a.toString()}}))},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"')){return`"${r}"`}else if(!r.includes("`")&&!r.includes("${")){return`\`${r}\``}}return`'${r}'`;case"number":if(isNaN(r)){return"NaN"}else if(Object.is(r,-0)){return String(r)}return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}},89204:(r,n,s)=>{const{Buffer:a}=s(20181);const{ObjectDefineProperty:l,ObjectKeys:u,ReflectApply:d}=s(95512);const{promisify:{custom:A}}=s(75806);const{streamReturningOperators:p,promiseReturningOperators:f}=s(99509);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=s(79885);const y=s(78256);const{setDefaultHighWaterMark:b,getDefaultHighWaterMark:C}=s(25873);const{pipeline:w}=s(84712);const{destroyer:B}=s(13822);const I=s(44356);const S={};const Q=s(3161);const v=s(73289);const R=r.exports=s(98321).Stream;R.isDestroyed=v.isDestroyed;R.isDisturbed=v.isDisturbed;R.isErrored=v.isErrored;R.isReadable=v.isReadable;R.isWritable=v.isWritable;R.Readable=s(406);for(const N of u(p)){const T=p[N];function fn(...r){if(new.target){throw g()}return R.Readable.from(d(T,this,r))}l(fn,"name",{__proto__:null,value:T.name});l(fn,"length",{__proto__:null,value:T.length});l(R.Readable.prototype,N,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const x of u(f)){const k=f[x];function fn(...r){if(new.target){throw g()}return d(k,this,r)}l(fn,"name",{__proto__:null,value:k.name});l(fn,"length",{__proto__:null,value:k.length});l(R.Readable.prototype,x,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}R.Writable=s(34234);R.Duplex=s(60400);R.Transform=s(480);R.PassThrough=s(26578);R.pipeline=w;const{addAbortSignal:D}=s(72105);R.addAbortSignal=D;R.finished=I;R.destroy=B;R.compose=y;R.setDefaultHighWaterMark=b;R.getDefaultHighWaterMark=C;l(R,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return Q}});l(w,A,{__proto__:null,enumerable:true,get(){return Q.pipeline}});l(I,A,{__proto__:null,enumerable:true,get(){return Q.finished}});R.Stream=R;R._isUint8Array=function isUint8Array(r){return r instanceof Uint8Array};R._uint8ArrayToBuffer=function _uint8ArrayToBuffer(r){return a.from(r.buffer,r.byteOffset,r.byteLength)}},3161:(r,n,s)=>{const{ArrayPrototypePop:a,Promise:l}=s(95512);const{isIterable:u,isNodeStream:d,isWebStream:A}=s(73289);const{pipelineImpl:p}=s(84712);const{finished:f}=s(44356);s(89204);function pipeline(...r){return new l(((n,s)=>{let l;let f;const g=r[r.length-1];if(g&&typeof g==="object"&&!d(g)&&!u(g)&&!A(g)){const n=a(r);l=n.signal;f=n.end}p(r,((r,a)=>{if(r){s(r)}else{n(a)}}),{signal:l,end:f})}))}r.exports={finished:f,pipeline:pipeline}},15934:(r,n,s)=>{r.exports=readdirGlob;const a=s(79896);const{EventEmitter:l}=s(24434);const{Minimatch:u}=s(82278);const{resolve:d}=s(16928);function readdir(r,n){return new Promise(((s,l)=>{a.readdir(r,{withFileTypes:true},((r,a)=>{if(r){switch(r.code){case"ENOTDIR":if(n){l(r)}else{s([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":s([]);break;case"ELOOP":default:l(r);break}}else{s(a)}}))}))}function stat(r,n){return new Promise(((s,l)=>{const u=n?a.stat:a.lstat;u(r,((a,l)=>{if(a){switch(a.code){case"ENOENT":if(n){s(stat(r,false))}else{s(null)}break;default:s(null);break}}else{s(l)}}))}))}async function*exploreWalkAsync(r,n,s,a,l,u){let d=await readdir(n+r,u);for(const u of d){let d=u.name;if(d===undefined){d=u;a=true}const A=r+"/"+d;const p=A.slice(1);const f=n+"/"+p;let g=null;if(a||s){g=await stat(f,s)}if(!g&&u.name!==undefined){g=u}if(g===null){g={isDirectory:()=>false}}if(g.isDirectory()){if(!l(p)){yield{relative:p,absolute:f,stats:g};yield*exploreWalkAsync(A,n,s,a,l,false)}}else{yield{relative:p,absolute:f,stats:g}}}}async function*explore(r,n,s,a){yield*exploreWalkAsync("",r,n,s,a,true)}function readOptions(r){return{pattern:r.pattern,dot:!!r.dot,noglobstar:!!r.noglobstar,matchBase:!!r.matchBase,nocase:!!r.nocase,ignore:r.ignore,skip:r.skip,follow:!!r.follow,stat:!!r.stat,nodir:!!r.nodir,mark:!!r.mark,silent:!!r.silent,absolute:!!r.absolute}}class ReaddirGlob extends l{constructor(r,n,s){super();if(typeof n==="function"){s=n;n=null}this.options=readOptions(n||{});this.matchers=[];if(this.options.pattern){const r=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=r.map((r=>new u(r,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const r=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=r.map((r=>new u(r,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const r=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=r.map((r=>new u(r,{dot:true})))}this.iterator=explore(d(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(s){this._matches=[];this.on("match",(r=>this._matches.push(this.options.absolute?r.absolute:r.relative)));this.on("error",(r=>s(r)));this.on("end",(()=>s(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(r){return this.skipMatchers.some((n=>n.match(r)))}_fileMatches(r,n){const s=r+(n?"/":"");return(this.matchers.length===0||this.matchers.some((r=>r.match(s))))&&!this.ignoreMatchers.some((r=>r.match(s)))&&(!this.options.nodir||!n)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((r=>{if(!r.done){const n=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,n)){let s=r.value.relative;let a=r.value.absolute;if(this.options.mark&&n){s+="/";a+="/"}if(this.options.stat){this.emit("match",{relative:s,absolute:a,stat:r.value.stats})}else{this.emit("match",{relative:s,absolute:a})}}this._next(this.iterator)}else{this.emit("end")}})).catch((r=>{this.abort();this.emit("error",r);if(!r.code&&!this.options.silent){console.error(r)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(r,n,s){return new ReaddirGlob(r,n,s)}readdirGlob.ReaddirGlob=ReaddirGlob},12188:r=>{function reusify(r){var n=new r;var s=n;function get(){var a=n;if(a.next){n=a.next}else{n=new r;s=n}a.next=null;return a}function release(r){s.next=r;s=r}return{get:get,release:release}}r.exports=reusify},67710:(r,n,s)=>{ +let n;r.exports=typeof queueMicrotask==="function"?queueMicrotask.bind(typeof window!=="undefined"?window:global):r=>(n||(n=Promise.resolve())).then(r).catch((r=>setTimeout((()=>{throw r}),0)))},80652:(r,n,s)=>{const{SymbolDispose:a}=s(50999);const{AbortError:l,codes:u}=s(69220);const{isNodeStream:d,isWebStream:A,kControllerErrorFunction:p}=s(83426);const f=s(36815);const{ERR_INVALID_ARG_TYPE:g}=u;let y;const validateAbortSignal=(r,n)=>{if(typeof r!=="object"||!("aborted"in r)){throw new g(n,"AbortSignal",r)}};r.exports.addAbortSignal=function addAbortSignal(n,s){validateAbortSignal(n,"signal");if(!d(s)&&!A(s)){throw new g("stream",["ReadableStream","WritableStream","Stream"],s)}return r.exports.addAbortSignalNoValidate(n,s)};r.exports.addAbortSignalNoValidate=function(r,n){if(typeof r!=="object"||!("aborted"in r)){return n}const u=d(n)?()=>{n.destroy(new l(undefined,{cause:r.reason}))}:()=>{n[p](new l(undefined,{cause:r.reason}))};if(r.aborted){u()}else{y=y||s(23539).addAbortListener;const l=y(r,u);f(n,l[a])}return n}},77336:(r,n,s)=>{const{StringPrototypeSlice:a,SymbolIterator:l,TypedArrayPrototypeSet:u,Uint8Array:d}=s(50999);const{Buffer:A}=s(20181);const{inspect:p}=s(23539);r.exports=class BufferList{constructor(){this.head=null;this.tail=null;this.length=0}push(r){const n={data:r,next:null};if(this.length>0)this.tail.next=n;else this.head=n;this.tail=n;++this.length}unshift(r){const n={data:r,next:this.head};if(this.length===0)this.tail=n;this.head=n;++this.length}shift(){if(this.length===0)return;const r=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return r}clear(){this.head=this.tail=null;this.length=0}join(r){if(this.length===0)return"";let n=this.head;let s=""+n.data;while((n=n.next)!==null)s+=r+n.data;return s}concat(r){if(this.length===0)return A.alloc(0);const n=A.allocUnsafe(r>>>0);let s=this.head;let a=0;while(s){u(n,s.data,a);a+=s.data.length;s=s.next}return n}consume(r,n){const s=this.head.data;if(ru.length){n+=u;r-=u.length}else{if(r===u.length){n+=u;++l;if(s.next)this.head=s.next;else this.head=this.tail=null}else{n+=a(u,0,r);this.head=s;s.data=a(u,r)}break}++l}while((s=s.next)!==null);this.length-=l;return n}_getBuffer(r){const n=A.allocUnsafe(r);const s=r;let a=this.head;let l=0;do{const A=a.data;if(r>A.length){u(n,A,s-r);r-=A.length}else{if(r===A.length){u(n,A,s-r);++l;if(a.next)this.head=a.next;else this.head=this.tail=null}else{u(n,new d(A.buffer,A.byteOffset,r),s-r);this.head=a;a.data=A.slice(r)}break}++l}while((a=a.next)!==null);this.length-=l;return n}[Symbol.for("nodejs.util.inspect.custom")](r,n){return p(this,{...n,depth:0,customInspect:false})}}},64999:(r,n,s)=>{const{pipeline:a}=s(16701);const l=s(16830);const{destroyer:u}=s(65089);const{isNodeStream:d,isReadable:A,isWritable:p,isWebStream:f,isTransformStream:g,isWritableStream:y,isReadableStream:b}=s(83426);const{AbortError:C,codes:{ERR_INVALID_ARG_VALUE:w,ERR_MISSING_ARGS:B}}=s(69220);const I=s(36815);r.exports=function compose(...r){if(r.length===0){throw new B("streams")}if(r.length===1){return l.from(r[0])}const n=[...r];if(typeof r[0]==="function"){r[0]=l.from(r[0])}if(typeof r[r.length-1]==="function"){const n=r.length-1;r[n]=l.from(r[n])}for(let s=0;s0&&!(p(r[s])||y(r[s])||g(r[s]))){throw new w(`streams[${s}]`,n[s],"must be writable")}}let s;let S;let Q;let v;let R;function onfinished(r){const n=v;v=null;if(n){n(r)}else if(r){R.destroy(r)}else if(!T&&!D){R.destroy()}}const N=r[0];const x=a(r,onfinished);const D=!!(p(N)||y(N)||g(N));const T=!!(A(x)||b(x)||g(x));R=new l({writableObjectMode:!!(N!==null&&N!==undefined&&N.writableObjectMode),readableObjectMode:!!(x!==null&&x!==undefined&&x.readableObjectMode),writable:D,readable:T});if(D){if(d(N)){R._write=function(r,n,a){if(N.write(r,n)){a()}else{s=a}};R._final=function(r){N.end();S=r};N.on("drain",(function(){if(s){const r=s;s=null;r()}}))}else if(f(N)){const r=g(N)?N.writable:N;const n=r.getWriter();R._write=async function(r,s,a){try{await n.ready;n.write(r).catch((()=>{}));a()}catch(r){a(r)}};R._final=async function(r){try{await n.ready;n.close().catch((()=>{}));S=r}catch(n){r(n)}}}const r=g(x)?x.readable:x;I(r,(()=>{if(S){const r=S;S=null;r()}}))}if(T){if(d(x)){x.on("readable",(function(){if(Q){const r=Q;Q=null;r()}}));x.on("end",(function(){R.push(null)}));R._read=function(){while(true){const r=x.read();if(r===null){Q=R._read;return}if(!R.push(r)){return}}}}else if(f(x)){const r=g(x)?x.readable:x;const n=r.getReader();R._read=async function(){while(true){try{const{value:r,done:s}=await n.read();if(!R.push(r)){return}if(s){R.push(null);return}}catch{return}}}}}R._destroy=function(r,n){if(!r&&v!==null){r=new C}Q=null;s=null;S=null;if(v===null){n(r)}else{v=n;if(d(x)){u(x,r)}}};return R}},65089:(r,n,s)=>{const a=s(7945);const{aggregateTwoErrors:l,codes:{ERR_MULTIPLE_CALLBACK:u},AbortError:d}=s(69220);const{Symbol:A}=s(50999);const{kIsDestroyed:p,isDestroyed:f,isFinished:g,isServerRequest:y}=s(83426);const b=A("kDestroy");const C=A("kConstruct");function checkError(r,n,s){if(r){r.stack;if(n&&!n.errored){n.errored=r}if(s&&!s.errored){s.errored=r}}}function destroy(r,n){const s=this._readableState;const a=this._writableState;const u=a||s;if(a!==null&&a!==undefined&&a.destroyed||s!==null&&s!==undefined&&s.destroyed){if(typeof n==="function"){n()}return this}checkError(r,a,s);if(a){a.destroyed=true}if(s){s.destroyed=true}if(!u.constructed){this.once(b,(function(s){_destroy(this,l(s,r),n)}))}else{_destroy(this,r,n)}return this}function _destroy(r,n,s){let l=false;function onDestroy(n){if(l){return}l=true;const u=r._readableState;const d=r._writableState;checkError(n,d,u);if(d){d.closed=true}if(u){u.closed=true}if(typeof s==="function"){s(n)}if(n){a.nextTick(emitErrorCloseNT,r,n)}else{a.nextTick(emitCloseNT,r)}}try{r._destroy(n||null,onDestroy)}catch(n){onDestroy(n)}}function emitErrorCloseNT(r,n){emitErrorNT(r,n);emitCloseNT(r)}function emitCloseNT(r){const n=r._readableState;const s=r._writableState;if(s){s.closeEmitted=true}if(n){n.closeEmitted=true}if(s!==null&&s!==undefined&&s.emitClose||n!==null&&n!==undefined&&n.emitClose){r.emit("close")}}function emitErrorNT(r,n){const s=r._readableState;const a=r._writableState;if(a!==null&&a!==undefined&&a.errorEmitted||s!==null&&s!==undefined&&s.errorEmitted){return}if(a){a.errorEmitted=true}if(s){s.errorEmitted=true}r.emit("error",n)}function undestroy(){const r=this._readableState;const n=this._writableState;if(r){r.constructed=true;r.closed=false;r.closeEmitted=false;r.destroyed=false;r.errored=null;r.errorEmitted=false;r.reading=false;r.ended=r.readable===false;r.endEmitted=r.readable===false}if(n){n.constructed=true;n.destroyed=false;n.closed=false;n.closeEmitted=false;n.errored=null;n.errorEmitted=false;n.finalCalled=false;n.prefinished=false;n.ended=n.writable===false;n.ending=n.writable===false;n.finished=n.writable===false}}function errorOrDestroy(r,n,s){const l=r._readableState;const u=r._writableState;if(u!==null&&u!==undefined&&u.destroyed||l!==null&&l!==undefined&&l.destroyed){return this}if(l!==null&&l!==undefined&&l.autoDestroy||u!==null&&u!==undefined&&u.autoDestroy)r.destroy(n);else if(n){n.stack;if(u&&!u.errored){u.errored=n}if(l&&!l.errored){l.errored=n}if(s){a.nextTick(emitErrorNT,r,n)}else{emitErrorNT(r,n)}}}function construct(r,n){if(typeof r._construct!=="function"){return}const s=r._readableState;const l=r._writableState;if(s){s.constructed=false}if(l){l.constructed=false}r.once(C,n);if(r.listenerCount(C)>1){return}a.nextTick(constructNT,r)}function constructNT(r){let n=false;function onConstruct(s){if(n){errorOrDestroy(r,s!==null&&s!==undefined?s:new u);return}n=true;const l=r._readableState;const d=r._writableState;const A=d||l;if(l){l.constructed=true}if(d){d.constructed=true}if(A.destroyed){r.emit(b,s)}else if(s){errorOrDestroy(r,s,true)}else{a.nextTick(emitConstructNT,r)}}try{r._construct((r=>{a.nextTick(onConstruct,r)}))}catch(r){a.nextTick(onConstruct,r)}}function emitConstructNT(r){r.emit(C)}function isRequest(r){return(r===null||r===undefined?undefined:r.setHeader)&&typeof r.abort==="function"}function emitCloseLegacy(r){r.emit("close")}function emitErrorCloseLegacy(r,n){r.emit("error",n);a.nextTick(emitCloseLegacy,r)}function destroyer(r,n){if(!r||f(r)){return}if(!n&&!g(r)){n=new d}if(y(r)){r.socket=null;r.destroy(n)}else if(isRequest(r)){r.abort()}else if(isRequest(r.req)){r.req.abort()}else if(typeof r.destroy==="function"){r.destroy(n)}else if(typeof r.close==="function"){r.close()}else if(n){a.nextTick(emitErrorCloseLegacy,r,n)}else{a.nextTick(emitCloseLegacy,r)}if(!r.destroyed){r[p]=true}}r.exports={construct:construct,destroyer:destroyer,destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},16830:(r,n,s)=>{const{ObjectDefineProperties:a,ObjectGetOwnPropertyDescriptor:l,ObjectKeys:u,ObjectSetPrototypeOf:d}=s(50999);r.exports=Duplex;const A=s(17783);const p=s(58939);d(Duplex.prototype,A.prototype);d(Duplex,A);{const r=u(p.prototype);for(let n=0;n{const a=s(7945);"use strict";const l=s(20181);const{isReadable:u,isWritable:d,isIterable:A,isNodeStream:p,isReadableNodeStream:f,isWritableNodeStream:g,isDuplexNodeStream:y,isReadableStream:b,isWritableStream:C}=s(83426);const w=s(36815);const{AbortError:B,codes:{ERR_INVALID_ARG_TYPE:I,ERR_INVALID_RETURN_VALUE:S}}=s(69220);const{destroyer:Q}=s(65089);const v=s(16830);const R=s(17783);const N=s(58939);const{createDeferredPromise:x}=s(23539);const D=s(4659);const T=globalThis.Blob||l.Blob;const k=typeof T!=="undefined"?function isBlob(r){return r instanceof T}:function isBlob(r){return false};const _=globalThis.AbortController||s(17413).AbortController;const{FunctionPrototypeCall:P}=s(50999);class Duplexify extends v{constructor(r){super(r);if((r===null||r===undefined?undefined:r.readable)===false){this._readableState.readable=false;this._readableState.ended=true;this._readableState.endEmitted=true}if((r===null||r===undefined?undefined:r.writable)===false){this._writableState.writable=false;this._writableState.ending=true;this._writableState.ended=true;this._writableState.finished=true}}}r.exports=function duplexify(r,n){if(y(r)){return r}if(f(r)){return _duplexify({readable:r})}if(g(r)){return _duplexify({writable:r})}if(p(r)){return _duplexify({writable:false,readable:false})}if(b(r)){return _duplexify({readable:R.fromWeb(r)})}if(C(r)){return _duplexify({writable:N.fromWeb(r)})}if(typeof r==="function"){const{value:s,write:l,final:u,destroy:d}=fromAsyncGen(r);if(A(s)){return D(Duplexify,s,{objectMode:true,write:l,final:u,destroy:d})}const p=s===null||s===undefined?undefined:s.then;if(typeof p==="function"){let r;const n=P(p,s,(r=>{if(r!=null){throw new S("nully","body",r)}}),(n=>{Q(r,n)}));return r=new Duplexify({objectMode:true,readable:false,write:l,final(r){u((async()=>{try{await n;a.nextTick(r,null)}catch(n){a.nextTick(r,n)}}))},destroy:d})}throw new S("Iterable, AsyncIterable or AsyncFunction",n,s)}if(k(r)){return duplexify(r.arrayBuffer())}if(A(r)){return D(Duplexify,r,{objectMode:true,writable:false})}if(b(r===null||r===undefined?undefined:r.readable)&&C(r===null||r===undefined?undefined:r.writable)){return Duplexify.fromWeb(r)}if(typeof(r===null||r===undefined?undefined:r.writable)==="object"||typeof(r===null||r===undefined?undefined:r.readable)==="object"){const n=r!==null&&r!==undefined&&r.readable?f(r===null||r===undefined?undefined:r.readable)?r===null||r===undefined?undefined:r.readable:duplexify(r.readable):undefined;const s=r!==null&&r!==undefined&&r.writable?g(r===null||r===undefined?undefined:r.writable)?r===null||r===undefined?undefined:r.writable:duplexify(r.writable):undefined;return _duplexify({readable:n,writable:s})}const s=r===null||r===undefined?undefined:r.then;if(typeof s==="function"){let n;P(s,r,(r=>{if(r!=null){n.push(r)}n.push(null)}),(r=>{Q(n,r)}));return n=new Duplexify({objectMode:true,writable:false,read(){}})}throw new I(n,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],r)};function fromAsyncGen(r){let{promise:n,resolve:s}=x();const l=new _;const u=l.signal;const d=r(async function*(){while(true){const r=n;n=null;const{chunk:l,done:d,cb:A}=await r;a.nextTick(A);if(d)return;if(u.aborted)throw new B(undefined,{cause:u.reason});({promise:n,resolve:s}=x());yield l}}(),{signal:u});return{value:d,write(r,n,a){const l=s;s=null;l({chunk:r,done:false,cb:a})},final(r){const n=s;s=null;n({done:true,cb:r})},destroy(r,n){l.abort();n(r)}}}function _duplexify(r){const n=r.readable&&typeof r.readable.read!=="function"?R.wrap(r.readable):r.readable;const s=r.writable;let a=!!u(n);let l=!!d(s);let A;let p;let f;let g;let y;function onfinished(r){const n=g;g=null;if(n){n(r)}else if(r){y.destroy(r)}}y=new Duplexify({readableObjectMode:!!(n!==null&&n!==undefined&&n.readableObjectMode),writableObjectMode:!!(s!==null&&s!==undefined&&s.writableObjectMode),readable:a,writable:l});if(l){w(s,(r=>{l=false;if(r){Q(n,r)}onfinished(r)}));y._write=function(r,n,a){if(s.write(r,n)){a()}else{A=a}};y._final=function(r){s.end();p=r};s.on("drain",(function(){if(A){const r=A;A=null;r()}}));s.on("finish",(function(){if(p){const r=p;p=null;r()}}))}if(a){w(n,(r=>{a=false;if(r){Q(n,r)}onfinished(r)}));n.on("readable",(function(){if(f){const r=f;f=null;r()}}));n.on("end",(function(){y.push(null)}));y._read=function(){while(true){const r=n.read();if(r===null){f=y._read;return}if(!y.push(r)){return}}}}y._destroy=function(r,a){if(!r&&g!==null){r=new B}f=null;A=null;p=null;if(g===null){a(r)}else{g=a;Q(s,r);Q(n,r)}};return y}},36815:(r,n,s)=>{const a=s(7945);const{AbortError:l,codes:u}=s(69220);const{ERR_INVALID_ARG_TYPE:d,ERR_STREAM_PREMATURE_CLOSE:A}=u;const{kEmptyObject:p,once:f}=s(23539);const{validateAbortSignal:g,validateFunction:y,validateObject:b,validateBoolean:C}=s(49554);const{Promise:w,PromisePrototypeThen:B,SymbolDispose:I}=s(50999);const{isClosed:S,isReadable:Q,isReadableNodeStream:v,isReadableStream:R,isReadableFinished:N,isReadableErrored:x,isWritable:D,isWritableNodeStream:T,isWritableStream:k,isWritableFinished:_,isWritableErrored:P,isNodeStream:F,willEmitClose:L,kIsClosedPromise:O}=s(83426);let M;function isRequest(r){return r.setHeader&&typeof r.abort==="function"}const nop=()=>{};function eos(r,n,u){var C,w;if(arguments.length===2){u=n;n=p}else if(n==null){n=p}else{b(n,"options")}y(u,"callback");g(n.signal,"options.signal");u=f(u);if(R(r)||k(r)){return eosWeb(r,n,u)}if(!F(r)){throw new d("stream",["ReadableStream","WritableStream","Stream"],r)}const B=(C=n.readable)!==null&&C!==undefined?C:v(r);const O=(w=n.writable)!==null&&w!==undefined?w:T(r);const U=r._writableState;const H=r._readableState;const onlegacyfinish=()=>{if(!r.writable){onfinish()}};let G=L(r)&&v(r)===B&&T(r)===O;let z=_(r,false);const onfinish=()=>{z=true;if(r.destroyed){G=false}if(G&&(!r.readable||B)){return}if(!B||q){u.call(r)}};let q=N(r,false);const onend=()=>{q=true;if(r.destroyed){G=false}if(G&&(!r.writable||O)){return}if(!O||z){u.call(r)}};const onerror=n=>{u.call(r,n)};let V=S(r);const onclose=()=>{V=true;const n=P(r)||x(r);if(n&&typeof n!=="boolean"){return u.call(r,n)}if(B&&!q&&v(r,true)){if(!N(r,false))return u.call(r,new A)}if(O&&!z){if(!_(r,false))return u.call(r,new A)}u.call(r)};const onclosed=()=>{V=true;const n=P(r)||x(r);if(n&&typeof n!=="boolean"){return u.call(r,n)}u.call(r)};const onrequest=()=>{r.req.on("finish",onfinish)};if(isRequest(r)){r.on("complete",onfinish);if(!G){r.on("abort",onclose)}if(r.req){onrequest()}else{r.on("request",onrequest)}}else if(O&&!U){r.on("end",onlegacyfinish);r.on("close",onlegacyfinish)}if(!G&&typeof r.aborted==="boolean"){r.on("aborted",onclose)}r.on("end",onend);r.on("finish",onfinish);if(n.error!==false){r.on("error",onerror)}r.on("close",onclose);if(V){a.nextTick(onclose)}else if(U!==null&&U!==undefined&&U.errorEmitted||H!==null&&H!==undefined&&H.errorEmitted){if(!G){a.nextTick(onclosed)}}else if(!B&&(!G||Q(r))&&(z||D(r)===false)){a.nextTick(onclosed)}else if(!O&&(!G||D(r))&&(q||Q(r)===false)){a.nextTick(onclosed)}else if(H&&r.req&&r.aborted){a.nextTick(onclosed)}const cleanup=()=>{u=nop;r.removeListener("aborted",onclose);r.removeListener("complete",onfinish);r.removeListener("abort",onclose);r.removeListener("request",onrequest);if(r.req)r.req.removeListener("finish",onfinish);r.removeListener("end",onlegacyfinish);r.removeListener("close",onlegacyfinish);r.removeListener("finish",onfinish);r.removeListener("end",onend);r.removeListener("error",onerror);r.removeListener("close",onclose)};if(n.signal&&!V){const abort=()=>{const s=u;cleanup();s.call(r,new l(undefined,{cause:n.signal.reason}))};if(n.signal.aborted){a.nextTick(abort)}else{M=M||s(23539).addAbortListener;const a=M(n.signal,abort);const l=u;u=f(((...n)=>{a[I]();l.apply(r,n)}))}}return cleanup}function eosWeb(r,n,u){let d=false;let A=nop;if(n.signal){A=()=>{d=true;u.call(r,new l(undefined,{cause:n.signal.reason}))};if(n.signal.aborted){a.nextTick(A)}else{M=M||s(23539).addAbortListener;const a=M(n.signal,A);const l=u;u=f(((...n)=>{a[I]();l.apply(r,n)}))}}const resolverFn=(...n)=>{if(!d){a.nextTick((()=>u.apply(r,n)))}};B(r[O].promise,resolverFn,resolverFn);return nop}function finished(r,n){var s;let a=false;if(n===null){n=p}if((s=n)!==null&&s!==undefined&&s.cleanup){C(n.cleanup,"cleanup");a=n.cleanup}return new w(((s,l)=>{const u=eos(r,n,(r=>{if(a){u()}if(r){l(r)}else{s()}}))}))}r.exports=eos;r.exports.finished=finished},4659:(r,n,s)=>{const a=s(7945);const{PromisePrototypeThen:l,SymbolAsyncIterator:u,SymbolIterator:d}=s(50999);const{Buffer:A}=s(20181);const{ERR_INVALID_ARG_TYPE:p,ERR_STREAM_NULL_VALUES:f}=s(69220).codes;function from(r,n,s){let g;if(typeof n==="string"||n instanceof A){return new r({objectMode:true,...s,read(){this.push(n);this.push(null)}})}let y;if(n&&n[u]){y=true;g=n[u]()}else if(n&&n[d]){y=false;g=n[d]()}else{throw new p("iterable",["Iterable"],n)}const b=new r({objectMode:true,highWaterMark:1,...s});let C=false;b._read=function(){if(!C){C=true;next()}};b._destroy=function(r,n){l(close(r),(()=>a.nextTick(n,r)),(s=>a.nextTick(n,s||r)))};async function close(r){const n=r!==undefined&&r!==null;const s=typeof g.throw==="function";if(n&&s){const{value:n,done:s}=await g.throw(r);await n;if(s){return}}if(typeof g.return==="function"){const{value:r}=await g.return();await r}}async function next(){for(;;){try{const{value:r,done:n}=y?await g.next():g.next();if(n){b.push(null)}else{const n=r&&typeof r.then==="function"?await r:r;if(n===null){C=false;throw new f}else if(b.push(n)){continue}else{C=false}}}catch(r){b.destroy(r)}break}}return b}r.exports=from},84128:(r,n,s)=>{const{ArrayIsArray:a,ObjectSetPrototypeOf:l}=s(50999);const{EventEmitter:u}=s(24434);function Stream(r){u.call(this,r)}l(Stream.prototype,u.prototype);l(Stream,u);Stream.prototype.pipe=function(r,n){const s=this;function ondata(n){if(r.writable&&r.write(n)===false&&s.pause){s.pause()}}s.on("data",ondata);function ondrain(){if(s.readable&&s.resume){s.resume()}}r.on("drain",ondrain);if(!r._isStdio&&(!n||n.end!==false)){s.on("end",onend);s.on("close",onclose)}let a=false;function onend(){if(a)return;a=true;r.end()}function onclose(){if(a)return;a=true;if(typeof r.destroy==="function")r.destroy()}function onerror(r){cleanup();if(u.listenerCount(this,"error")===0){this.emit("error",r)}}prependListener(s,"error",onerror);prependListener(r,"error",onerror);function cleanup(){s.removeListener("data",ondata);r.removeListener("drain",ondrain);s.removeListener("end",onend);s.removeListener("close",onclose);s.removeListener("error",onerror);r.removeListener("error",onerror);s.removeListener("end",cleanup);s.removeListener("close",cleanup);r.removeListener("close",cleanup)}s.on("end",cleanup);s.on("close",cleanup);r.on("close",cleanup);r.emit("pipe",s);return r};function prependListener(r,n,s){if(typeof r.prependListener==="function")return r.prependListener(n,s);if(!r._events||!r._events[n])r.on(n,s);else if(a(r._events[n]))r._events[n].unshift(s);else r._events[n]=[s,r._events[n]]}r.exports={Stream:Stream,prependListener:prependListener}},11222:(r,n,s)=>{const a=globalThis.AbortController||s(17413).AbortController;const{codes:{ERR_INVALID_ARG_VALUE:l,ERR_INVALID_ARG_TYPE:u,ERR_MISSING_ARGS:d,ERR_OUT_OF_RANGE:A},AbortError:p}=s(69220);const{validateAbortSignal:f,validateInteger:g,validateObject:y}=s(49554);const b=s(50999).Symbol("kWeak");const C=s(50999).Symbol("kResistStopPropagation");const{finished:w}=s(36815);const B=s(64999);const{addAbortSignalNoValidate:I}=s(80652);const{isWritable:S,isNodeStream:Q}=s(83426);const{deprecate:v}=s(23539);const{ArrayPrototypePush:R,Boolean:N,MathFloor:x,Number:D,NumberIsNaN:T,Promise:k,PromiseReject:_,PromiseResolve:P,PromisePrototypeThen:F,Symbol:L}=s(50999);const O=L("kEmpty");const M=L("kEof");function compose(r,n){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}if(Q(r)&&!S(r)){throw new l("stream",r,"must be writable")}const s=B(this,r);if(n!==null&&n!==undefined&&n.signal){I(n.signal,s)}return s}function map(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}let a=1;if((n===null||n===undefined?undefined:n.concurrency)!=null){a=x(n.concurrency)}let l=a-1;if((n===null||n===undefined?undefined:n.highWaterMark)!=null){l=x(n.highWaterMark)}g(a,"options.concurrency",1);g(l,"options.highWaterMark",0);l+=a;return async function*map(){const u=s(23539).AbortSignalAny([n===null||n===undefined?undefined:n.signal].filter(N));const d=this;const A=[];const f={signal:u};let g;let y;let b=false;let C=0;function onCatch(){b=true;afterItemProcessed()}function afterItemProcessed(){C-=1;maybeResume()}function maybeResume(){if(y&&!b&&C=l||C>=a)){await new k((r=>{y=r}))}}A.push(M)}catch(r){const n=_(r);F(n,afterItemProcessed,onCatch);A.push(n)}finally{b=true;if(g){g();g=null}}}pump();try{while(true){while(A.length>0){const r=await A[0];if(r===M){return}if(u.aborted){throw new p}if(r!==O){yield r}A.shift();maybeResume()}await new k((r=>{g=r}))}}finally{b=true;if(y){y();y=null}}}.call(this)}function asIndexedPairs(r=undefined){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){f(r.signal,"options.signal")}return async function*asIndexedPairs(){let n=0;for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new p({cause:r.signal.reason})}yield[n++,a]}}.call(this)}async function some(r,n=undefined){for await(const s of filter.call(this,r,n)){return true}return false}async function every(r,n=undefined){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}return!await some.call(this,(async(...n)=>!await r(...n)),n)}async function find(r,n){for await(const s of filter.call(this,r,n)){return s}return undefined}async function forEach(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}async function forEachFn(n,s){await r(n,s);return O}for await(const r of map.call(this,forEachFn,n));}function filter(r,n){if(typeof r!=="function"){throw new u("fn",["Function","AsyncFunction"],r)}async function filterFn(n,s){if(await r(n,s)){return n}return O}return map.call(this,filterFn,n)}class ReduceAwareErrMissingArgs extends d{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}}async function reduce(r,n,s){var l;if(typeof r!=="function"){throw new u("reducer",["Function","AsyncFunction"],r)}if(s!=null){y(s,"options")}if((s===null||s===undefined?undefined:s.signal)!=null){f(s.signal,"options.signal")}let d=arguments.length>1;if(s!==null&&s!==undefined&&(l=s.signal)!==null&&l!==undefined&&l.aborted){const r=new p(undefined,{cause:s.signal.reason});this.once("error",(()=>{}));await w(this.destroy(r));throw r}const A=new a;const g=A.signal;if(s!==null&&s!==undefined&&s.signal){const r={once:true,[b]:this,[C]:true};s.signal.addEventListener("abort",(()=>A.abort()),r)}let B=false;try{for await(const a of this){var I;B=true;if(s!==null&&s!==undefined&&(I=s.signal)!==null&&I!==undefined&&I.aborted){throw new p}if(!d){n=a;d=true}else{n=await r(n,a,{signal:g})}}if(!B&&!d){throw new ReduceAwareErrMissingArgs}}finally{A.abort()}return n}async function toArray(r){if(r!=null){y(r,"options")}if((r===null||r===undefined?undefined:r.signal)!=null){f(r.signal,"options.signal")}const n=[];for await(const a of this){var s;if(r!==null&&r!==undefined&&(s=r.signal)!==null&&s!==undefined&&s.aborted){throw new p(undefined,{cause:r.signal.reason})}R(n,a)}return n}function flatMap(r,n){const s=map.call(this,r,n);return async function*flatMap(){for await(const r of s){yield*r}}.call(this)}function toIntegerOrInfinity(r){r=D(r);if(T(r)){return 0}if(r<0){throw new A("number",">= 0",r)}return r}function drop(r,n=undefined){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*drop(){var s;if(n!==null&&n!==undefined&&(s=n.signal)!==null&&s!==undefined&&s.aborted){throw new p}for await(const s of this){var a;if(n!==null&&n!==undefined&&(a=n.signal)!==null&&a!==undefined&&a.aborted){throw new p}if(r--<=0){yield s}}}.call(this)}function take(r,n=undefined){if(n!=null){y(n,"options")}if((n===null||n===undefined?undefined:n.signal)!=null){f(n.signal,"options.signal")}r=toIntegerOrInfinity(r);return async function*take(){var s;if(n!==null&&n!==undefined&&(s=n.signal)!==null&&s!==undefined&&s.aborted){throw new p}for await(const s of this){var a;if(n!==null&&n!==undefined&&(a=n.signal)!==null&&a!==undefined&&a.aborted){throw new p}if(r-- >0){yield s}if(r<=0){return}}}.call(this)}r.exports.streamReturningOperators={asIndexedPairs:v(asIndexedPairs,"readable.asIndexedPairs will be removed in a future version."),drop:drop,filter:filter,flatMap:flatMap,map:map,take:take,compose:compose};r.exports.promiseReturningOperators={every:every,forEach:forEach,reduce:reduce,toArray:toArray,some:some,find:find}},19173:(r,n,s)=>{const{ObjectSetPrototypeOf:a}=s(50999);r.exports=PassThrough;const l=s(12135);a(PassThrough.prototype,l.prototype);a(PassThrough,l);function PassThrough(r){if(!(this instanceof PassThrough))return new PassThrough(r);l.call(this,r)}PassThrough.prototype._transform=function(r,n,s){s(null,r)}},16701:(r,n,s)=>{const a=s(7945);"use strict";const{ArrayIsArray:l,Promise:u,SymbolAsyncIterator:d,SymbolDispose:A}=s(50999);const p=s(36815);const{once:f}=s(23539);const g=s(65089);const y=s(16830);const{aggregateTwoErrors:b,codes:{ERR_INVALID_ARG_TYPE:C,ERR_INVALID_RETURN_VALUE:w,ERR_MISSING_ARGS:B,ERR_STREAM_DESTROYED:I,ERR_STREAM_PREMATURE_CLOSE:S},AbortError:Q}=s(69220);const{validateFunction:v,validateAbortSignal:R}=s(49554);const{isIterable:N,isReadable:x,isReadableNodeStream:D,isNodeStream:T,isTransformStream:k,isWebStream:_,isReadableStream:P,isReadableFinished:F}=s(83426);const L=globalThis.AbortController||s(17413).AbortController;let O;let M;let U;function destroyer(r,n,s){let a=false;r.on("close",(()=>{a=true}));const l=p(r,{readable:n,writable:s},(r=>{a=!r}));return{destroy:n=>{if(a)return;a=true;g.destroyer(r,n||new I("pipe"))},cleanup:l}}function popCallback(r){v(r[r.length-1],"streams[stream.length - 1]");return r.pop()}function makeAsyncIterable(r){if(N(r)){return r}else if(D(r)){return fromReadable(r)}throw new C("val",["Readable","Iterable","AsyncIterable"],r)}async function*fromReadable(r){if(!M){M=s(17783)}yield*M.prototype[d].call(r)}async function pumpToNode(r,n,s,{end:a}){let l;let d=null;const resume=r=>{if(r){l=r}if(d){const r=d;d=null;r()}};const wait=()=>new u(((r,n)=>{if(l){n(l)}else{d=()=>{if(l){n(l)}else{r()}}}}));n.on("drain",resume);const A=p(n,{readable:false},resume);try{if(n.writableNeedDrain){await wait()}for await(const s of r){if(!n.write(s)){await wait()}}if(a){n.end();await wait()}s()}catch(r){s(l!==r?b(l,r):r)}finally{A();n.off("drain",resume)}}async function pumpToWeb(r,n,s,{end:a}){if(k(n)){n=n.writable}const l=n.getWriter();try{for await(const n of r){await l.ready;l.write(n).catch((()=>{}))}await l.ready;if(a){await l.close()}s()}catch(r){try{await l.abort(r);s(r)}catch(r){s(r)}}}function pipeline(...r){return pipelineImpl(r,f(popCallback(r)))}function pipelineImpl(r,n,u){if(r.length===1&&l(r[0])){r=r[0]}if(r.length<2){throw new B("streams")}const d=new L;const p=d.signal;const f=u===null||u===undefined?undefined:u.signal;const g=[];R(f,"options.signal");function abort(){finishImpl(new Q)}U=U||s(23539).addAbortListener;let b;if(f){b=U(f,abort)}let I;let S;const v=[];let F=0;function finish(r){finishImpl(r,--F===0)}function finishImpl(r,s){var l;if(r&&(!I||I.code==="ERR_STREAM_PREMATURE_CLOSE")){I=r}if(!I&&!s){return}while(v.length){v.shift()(I)}(l=b)===null||l===undefined?undefined:l[A]();d.abort();if(s){if(!I){g.forEach((r=>r()))}a.nextTick(n,I,S)}}let M;for(let z=0;z0;const W=V||(u===null||u===undefined?undefined:u.end)!==false;const Y=z===r.length-1;if(T(q)){if(W){const{destroy:J,cleanup:$}=destroyer(q,V,j);v.push(J);if(x(q)&&Y){g.push($)}}function onError(r){if(r&&r.name!=="AbortError"&&r.code!=="ERR_STREAM_PREMATURE_CLOSE"){finish(r)}}q.on("error",onError);if(x(q)&&Y){g.push((()=>{q.removeListener("error",onError)}))}}if(z===0){if(typeof q==="function"){M=q({signal:p});if(!N(M)){throw new w("Iterable, AsyncIterable or Stream","source",M)}}else if(N(q)||D(q)||k(q)){M=q}else{M=y.from(q)}}else if(typeof q==="function"){if(k(M)){var H;M=makeAsyncIterable((H=M)===null||H===undefined?undefined:H.readable)}else{M=makeAsyncIterable(M)}M=q(M,{signal:p});if(V){if(!N(M,true)){throw new w("AsyncIterable",`transform[${z-1}]`,M)}}else{var G;if(!O){O=s(19173)}const K=new O({objectMode:true});const X=(G=M)===null||G===undefined?undefined:G.then;if(typeof X==="function"){F++;X.call(M,(r=>{S=r;if(r!=null){K.write(r)}if(W){K.end()}a.nextTick(finish)}),(r=>{K.destroy(r);a.nextTick(finish,r)}))}else if(N(M,true)){F++;pumpToNode(M,K,finish,{end:W})}else if(P(M)||k(M)){const te=M.readable||M;F++;pumpToNode(te,K,finish,{end:W})}else{throw new w("AsyncIterable or Promise","destination",M)}M=K;const{destroy:Z,cleanup:ee}=destroyer(M,false,true);v.push(Z);if(Y){g.push(ee)}}}else if(T(q)){if(D(M)){F+=2;const re=pipe(M,q,finish,{end:W});if(x(q)&&Y){g.push(re)}}else if(k(M)||P(M)){const ne=M.readable||M;F++;pumpToNode(ne,q,finish,{end:W})}else if(N(M)){F++;pumpToNode(M,q,finish,{end:W})}else{throw new C("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=q}else if(_(q)){if(D(M)){F++;pumpToWeb(makeAsyncIterable(M),q,finish,{end:W})}else if(P(M)||N(M)){F++;pumpToWeb(M,q,finish,{end:W})}else if(k(M)){F++;pumpToWeb(M.readable,q,finish,{end:W})}else{throw new C("val",["Readable","Iterable","AsyncIterable","ReadableStream","TransformStream"],M)}M=q}else{M=y.from(q)}}if(p!==null&&p!==undefined&&p.aborted||f!==null&&f!==undefined&&f.aborted){a.nextTick(abort)}return M}function pipe(r,n,s,{end:l}){let u=false;n.on("close",(()=>{if(!u){s(new S)}}));r.pipe(n,{end:false});if(l){function endFn(){u=true;n.end()}if(F(r)){a.nextTick(endFn)}else{r.once("end",endFn)}}else{s()}p(r,{readable:true,writable:false},(n=>{const a=r._readableState;if(n&&n.code==="ERR_STREAM_PREMATURE_CLOSE"&&a&&a.ended&&!a.errored&&!a.errorEmitted){r.once("end",s).once("error",s)}else{s(n)}}));return p(n,{readable:false,writable:true},s)}r.exports={pipelineImpl:pipelineImpl,pipeline:pipeline}},17783:(r,n,s)=>{const a=s(7945);const{ArrayPrototypeIndexOf:l,NumberIsInteger:u,NumberIsNaN:d,NumberParseInt:A,ObjectDefineProperties:p,ObjectKeys:f,ObjectSetPrototypeOf:g,Promise:y,SafeSet:b,SymbolAsyncDispose:C,SymbolAsyncIterator:w,Symbol:B}=s(50999);r.exports=Readable;Readable.ReadableState=ReadableState;const{EventEmitter:I}=s(24434);const{Stream:S,prependListener:Q}=s(84128);const{Buffer:v}=s(20181);const{addAbortSignal:R}=s(80652);const N=s(36815);let x=s(23539).debuglog("stream",(r=>{x=r}));const D=s(77336);const T=s(65089);const{getHighWaterMark:k,getDefaultHighWaterMark:_}=s(54874);const{aggregateTwoErrors:P,codes:{ERR_INVALID_ARG_TYPE:F,ERR_METHOD_NOT_IMPLEMENTED:L,ERR_OUT_OF_RANGE:O,ERR_STREAM_PUSH_AFTER_EOF:M,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:U},AbortError:H}=s(69220);const{validateObject:G}=s(49554);const z=B("kPaused");const{StringDecoder:q}=s(80634);const V=s(4659);g(Readable.prototype,S.prototype);g(Readable,S);const nop=()=>{};const{errorOrDestroy:j}=T;const W=1<<0;const Y=1<<1;const J=1<<2;const $=1<<3;const K=1<<4;const X=1<<5;const Z=1<<6;const ee=1<<7;const te=1<<8;const re=1<<9;const ne=1<<10;const se=1<<11;const ie=1<<12;const oe=1<<13;const ae=1<<14;const le=1<<15;const ce=1<<16;const ue=1<<17;const de=1<<18;function makeBitMapDescriptor(r){return{enumerable:false,get(){return(this.state&r)!==0},set(n){if(n)this.state|=r;else this.state&=~r}}}p(ReadableState.prototype,{objectMode:makeBitMapDescriptor(W),ended:makeBitMapDescriptor(Y),endEmitted:makeBitMapDescriptor(J),reading:makeBitMapDescriptor($),constructed:makeBitMapDescriptor(K),sync:makeBitMapDescriptor(X),needReadable:makeBitMapDescriptor(Z),emittedReadable:makeBitMapDescriptor(ee),readableListening:makeBitMapDescriptor(te),resumeScheduled:makeBitMapDescriptor(re),errorEmitted:makeBitMapDescriptor(ne),emitClose:makeBitMapDescriptor(se),autoDestroy:makeBitMapDescriptor(ie),destroyed:makeBitMapDescriptor(oe),closed:makeBitMapDescriptor(ae),closeEmitted:makeBitMapDescriptor(le),multiAwaitDrain:makeBitMapDescriptor(ce),readingMore:makeBitMapDescriptor(ue),dataEmitted:makeBitMapDescriptor(de)});function ReadableState(r,n,a){if(typeof a!=="boolean")a=n instanceof s(16830);this.state=se|ie|K|X;if(r&&r.objectMode)this.state|=W;if(a&&r&&r.readableObjectMode)this.state|=W;this.highWaterMark=r?k(this,r,"readableHighWaterMark",a):_(false);this.buffer=new D;this.length=0;this.pipes=[];this.flowing=null;this[z]=null;if(r&&r.emitClose===false)this.state&=~se;if(r&&r.autoDestroy===false)this.state&=~ie;this.errored=null;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.awaitDrainWriters=null;this.decoder=null;this.encoding=null;if(r&&r.encoding){this.decoder=new q(r.encoding);this.encoding=r.encoding}}function Readable(r){if(!(this instanceof Readable))return new Readable(r);const n=this instanceof s(16830);this._readableState=new ReadableState(r,this,n);if(r){if(typeof r.read==="function")this._read=r.read;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal&&!n)R(r.signal,this)}S.call(this,r);T.construct(this,(()=>{if(this._readableState.needReadable){maybeReadMore(this,this._readableState)}}))}Readable.prototype.destroy=T.destroy;Readable.prototype._undestroy=T.undestroy;Readable.prototype._destroy=function(r,n){n(r)};Readable.prototype[I.captureRejectionSymbol]=function(r){this.destroy(r)};Readable.prototype[C]=function(){let r;if(!this.destroyed){r=this.readableEnded?null:new H;this.destroy(r)}return new y(((n,s)=>N(this,(a=>a&&a!==r?s(a):n(null)))))};Readable.prototype.push=function(r,n){return readableAddChunk(this,r,n,false)};Readable.prototype.unshift=function(r,n){return readableAddChunk(this,r,n,true)};function readableAddChunk(r,n,s,a){x("readableAddChunk",n);const l=r._readableState;let u;if((l.state&W)===0){if(typeof n==="string"){s=s||l.defaultEncoding;if(l.encoding!==s){if(a&&l.encoding){n=v.from(n,s).toString(l.encoding)}else{n=v.from(n,s);s=""}}}else if(n instanceof v){s=""}else if(S._isUint8Array(n)){n=S._uint8ArrayToBuffer(n);s=""}else if(n!=null){u=new F("chunk",["string","Buffer","Uint8Array"],n)}}if(u){j(r,u)}else if(n===null){l.state&=~$;onEofChunk(r,l)}else if((l.state&W)!==0||n&&n.length>0){if(a){if((l.state&J)!==0)j(r,new U);else if(l.destroyed||l.errored)return false;else addChunk(r,l,n,true)}else if(l.ended){j(r,new M)}else if(l.destroyed||l.errored){return false}else{l.state&=~$;if(l.decoder&&!s){n=l.decoder.write(n);if(l.objectMode||n.length!==0)addChunk(r,l,n,false);else maybeReadMore(r,l)}else{addChunk(r,l,n,false)}}}else if(!a){l.state&=~$;maybeReadMore(r,l)}return!l.ended&&(l.length0){if((n.state&ce)!==0){n.awaitDrainWriters.clear()}else{n.awaitDrainWriters=null}n.dataEmitted=true;r.emit("data",s)}else{n.length+=n.objectMode?1:s.length;if(a)n.buffer.unshift(s);else n.buffer.push(s);if((n.state&Z)!==0)emitReadable(r)}maybeReadMore(r,n)}Readable.prototype.isPaused=function(){const r=this._readableState;return r[z]===true||r.flowing===false};Readable.prototype.setEncoding=function(r){const n=new q(r);this._readableState.decoder=n;this._readableState.encoding=this._readableState.decoder.encoding;const s=this._readableState.buffer;let a="";for(const r of s){a+=n.write(r)}s.clear();if(a!=="")s.push(a);this._readableState.length=a.length;return this};const Ae=1073741824;function computeNewHighWaterMark(r){if(r>Ae){throw new O("size","<= 1GiB",r)}else{r--;r|=r>>>1;r|=r>>>2;r|=r>>>4;r|=r>>>8;r|=r>>>16;r++}return r}function howMuchToRead(r,n){if(r<=0||n.length===0&&n.ended)return 0;if((n.state&W)!==0)return 1;if(d(r)){if(n.flowing&&n.length)return n.buffer.first().length;return n.length}if(r<=n.length)return r;return n.ended?n.length:0}Readable.prototype.read=function(r){x("read",r);if(r===undefined){r=NaN}else if(!u(r)){r=A(r,10)}const n=this._readableState;const s=r;if(r>n.highWaterMark)n.highWaterMark=computeNewHighWaterMark(r);if(r!==0)n.state&=~ee;if(r===0&&n.needReadable&&((n.highWaterMark!==0?n.length>=n.highWaterMark:n.length>0)||n.ended)){x("read: emitReadable",n.length,n.ended);if(n.length===0&&n.ended)endReadable(this);else emitReadable(this);return null}r=howMuchToRead(r,n);if(r===0&&n.ended){if(n.length===0)endReadable(this);return null}let a=(n.state&Z)!==0;x("need readable",a);if(n.length===0||n.length-r0)l=fromList(r,n);else l=null;if(l===null){n.needReadable=n.length<=n.highWaterMark;r=0}else{n.length-=r;if(n.multiAwaitDrain){n.awaitDrainWriters.clear()}else{n.awaitDrainWriters=null}}if(n.length===0){if(!n.ended)n.needReadable=true;if(s!==r&&n.ended)endReadable(this)}if(l!==null&&!n.errorEmitted&&!n.closeEmitted){n.dataEmitted=true;this.emit("data",l)}return l};function onEofChunk(r,n){x("onEofChunk");if(n.ended)return;if(n.decoder){const r=n.decoder.end();if(r&&r.length){n.buffer.push(r);n.length+=n.objectMode?1:r.length}}n.ended=true;if(n.sync){emitReadable(r)}else{n.needReadable=false;n.emittedReadable=true;emitReadable_(r)}}function emitReadable(r){const n=r._readableState;x("emitReadable",n.needReadable,n.emittedReadable);n.needReadable=false;if(!n.emittedReadable){x("emitReadable",n.flowing);n.emittedReadable=true;a.nextTick(emitReadable_,r)}}function emitReadable_(r){const n=r._readableState;x("emitReadable_",n.destroyed,n.length,n.ended);if(!n.destroyed&&!n.errored&&(n.length||n.ended)){r.emit("readable");n.emittedReadable=false}n.needReadable=!n.flowing&&!n.ended&&n.length<=n.highWaterMark;flow(r)}function maybeReadMore(r,n){if(!n.readingMore&&n.constructed){n.readingMore=true;a.nextTick(maybeReadMore_,r,n)}}function maybeReadMore_(r,n){while(!n.reading&&!n.ended&&(n.length1&&l.pipes.includes(r)){x("false write response, pause",l.awaitDrainWriters.size);l.awaitDrainWriters.add(r)}s.pause()}if(!A){A=pipeOnDrain(s,r);r.on("drain",A)}}s.on("data",ondata);function ondata(n){x("ondata");const s=r.write(n);x("dest.write",s);if(s===false){pause()}}function onerror(n){x("onerror",n);unpipe();r.removeListener("error",onerror);if(r.listenerCount("error")===0){const s=r._writableState||r._readableState;if(s&&!s.errorEmitted){j(r,n)}else{r.emit("error",n)}}}Q(r,"error",onerror);function onclose(){r.removeListener("finish",onfinish);unpipe()}r.once("close",onclose);function onfinish(){x("onfinish");r.removeListener("close",onclose);unpipe()}r.once("finish",onfinish);function unpipe(){x("unpipe");s.unpipe(r)}r.emit("pipe",s);if(r.writableNeedDrain===true){pause()}else if(!l.flowing){x("pipe resume");s.resume()}return r};function pipeOnDrain(r,n){return function pipeOnDrainFunctionResult(){const s=r._readableState;if(s.awaitDrainWriters===n){x("pipeOnDrain",1);s.awaitDrainWriters=null}else if(s.multiAwaitDrain){x("pipeOnDrain",s.awaitDrainWriters.size);s.awaitDrainWriters.delete(n)}if((!s.awaitDrainWriters||s.awaitDrainWriters.size===0)&&r.listenerCount("data")){r.resume()}}}Readable.prototype.unpipe=function(r){const n=this._readableState;const s={hasUnpiped:false};if(n.pipes.length===0)return this;if(!r){const r=n.pipes;n.pipes=[];this.pause();for(let n=0;n0;if(l.flowing!==false)this.resume()}else if(r==="readable"){if(!l.endEmitted&&!l.readableListening){l.readableListening=l.needReadable=true;l.flowing=false;l.emittedReadable=false;x("on readable",l.length,l.reading);if(l.length){emitReadable(this)}else if(!l.reading){a.nextTick(nReadingNextTick,this)}}}return s};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(r,n){const s=S.prototype.removeListener.call(this,r,n);if(r==="readable"){a.nextTick(updateReadableListening,this)}return s};Readable.prototype.off=Readable.prototype.removeListener;Readable.prototype.removeAllListeners=function(r){const n=S.prototype.removeAllListeners.apply(this,arguments);if(r==="readable"||r===undefined){a.nextTick(updateReadableListening,this)}return n};function updateReadableListening(r){const n=r._readableState;n.readableListening=r.listenerCount("readable")>0;if(n.resumeScheduled&&n[z]===false){n.flowing=true}else if(r.listenerCount("data")>0){r.resume()}else if(!n.readableListening){n.flowing=null}}function nReadingNextTick(r){x("readable nexttick read 0");r.read(0)}Readable.prototype.resume=function(){const r=this._readableState;if(!r.flowing){x("resume");r.flowing=!r.readableListening;resume(this,r)}r[z]=false;return this};function resume(r,n){if(!n.resumeScheduled){n.resumeScheduled=true;a.nextTick(resume_,r,n)}}function resume_(r,n){x("resume",n.reading);if(!n.reading){r.read(0)}n.resumeScheduled=false;r.emit("resume");flow(r);if(n.flowing&&!n.reading)r.read(0)}Readable.prototype.pause=function(){x("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){x("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState[z]=true;return this};function flow(r){const n=r._readableState;x("flow",n.flowing);while(n.flowing&&r.read()!==null);}Readable.prototype.wrap=function(r){let n=false;r.on("data",(s=>{if(!this.push(s)&&r.pause){n=true;r.pause()}}));r.on("end",(()=>{this.push(null)}));r.on("error",(r=>{j(this,r)}));r.on("close",(()=>{this.destroy()}));r.on("destroy",(()=>{this.destroy()}));this._read=()=>{if(n&&r.resume){n=false;r.resume()}};const s=f(r);for(let n=1;n{a=r?P(a,r):null;s();s=nop}));try{while(true){const n=r.destroyed?null:r.read();if(n!==null){yield n}else if(a){throw a}else if(a===null){return}else{await new y(next)}}}catch(r){a=P(a,r);throw a}finally{if((a||(n===null||n===undefined?undefined:n.destroyOnReturn)!==false)&&(a===undefined||r._readableState.autoDestroy)){T.destroyer(r,null)}else{r.off("readable",next);l()}}}p(Readable.prototype,{readable:{__proto__:null,get(){const r=this._readableState;return!!r&&r.readable!==false&&!r.destroyed&&!r.errorEmitted&&!r.endEmitted},set(r){if(this._readableState){this._readableState.readable=!!r}}},readableDidRead:{__proto__:null,enumerable:false,get:function(){return this._readableState.dataEmitted}},readableAborted:{__proto__:null,enumerable:false,get:function(){return!!(this._readableState.readable!==false&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{__proto__:null,enumerable:false,get:function(){return this._readableState.highWaterMark}},readableBuffer:{__proto__:null,enumerable:false,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{__proto__:null,enumerable:false,get:function(){return this._readableState.flowing},set:function(r){if(this._readableState){this._readableState.flowing=r}}},readableLength:{__proto__:null,enumerable:false,get(){return this._readableState.length}},readableObjectMode:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.objectMode:false}},readableEncoding:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.encoding:null}},errored:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.errored:null}},closed:{__proto__:null,get(){return this._readableState?this._readableState.closed:false}},destroyed:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.destroyed:false},set(r){if(!this._readableState){return}this._readableState.destroyed=r}},readableEnded:{__proto__:null,enumerable:false,get(){return this._readableState?this._readableState.endEmitted:false}}});p(ReadableState.prototype,{pipesCount:{__proto__:null,get(){return this.pipes.length}},paused:{__proto__:null,get(){return this[z]!==false},set(r){this[z]=!!r}}});Readable._fromList=fromList;function fromList(r,n){if(n.length===0)return null;let s;if(n.objectMode)s=n.buffer.shift();else if(!r||r>=n.length){if(n.decoder)s=n.buffer.join("");else if(n.buffer.length===1)s=n.buffer.first();else s=n.buffer.concat(n.length);n.buffer.clear()}else{s=n.buffer.consume(r,n.decoder)}return s}function endReadable(r){const n=r._readableState;x("endReadable",n.endEmitted);if(!n.endEmitted){n.ended=true;a.nextTick(endReadableNT,n,r)}}function endReadableNT(r,n){x("endReadableNT",r.endEmitted,r.length);if(!r.errored&&!r.closeEmitted&&!r.endEmitted&&r.length===0){r.endEmitted=true;n.emit("end");if(n.writable&&n.allowHalfOpen===false){a.nextTick(endWritableNT,n)}else if(r.autoDestroy){const r=n._writableState;const s=!r||r.autoDestroy&&(r.finished||r.writable===false);if(s){n.destroy()}}}}function endWritableNT(r){const n=r.writable&&!r.writableEnded&&!r.destroyed;if(n){r.end()}}Readable.from=function(r,n){return V(Readable,r,n)};let pe;function lazyWebStreams(){if(pe===undefined)pe={};return pe}Readable.fromWeb=function(r,n){return lazyWebStreams().newStreamReadableFromReadableStream(r,n)};Readable.toWeb=function(r,n){return lazyWebStreams().newReadableStreamFromStreamReadable(r,n)};Readable.wrap=function(r,n){var s,a;return new Readable({objectMode:(s=(a=r.readableObjectMode)!==null&&a!==undefined?a:r.objectMode)!==null&&s!==undefined?s:true,...n,destroy(n,s){T.destroyer(r,n);s(n)}}).wrap(r)}},54874:(r,n,s)=>{const{MathFloor:a,NumberIsInteger:l}=s(50999);const{validateInteger:u}=s(49554);const{ERR_INVALID_ARG_VALUE:d}=s(69220).codes;let A=16*1024;let p=16;function highWaterMarkFrom(r,n,s){return r.highWaterMark!=null?r.highWaterMark:n?r[s]:null}function getDefaultHighWaterMark(r){return r?p:A}function setDefaultHighWaterMark(r,n){u(n,"value",0);if(r){p=n}else{A=n}}function getHighWaterMark(r,n,s,u){const A=highWaterMarkFrom(n,u,s);if(A!=null){if(!l(A)||A<0){const r=u?`options.${s}`:"options.highWaterMark";throw new d(r,A)}return a(A)}return getDefaultHighWaterMark(r.objectMode)}r.exports={getHighWaterMark:getHighWaterMark,getDefaultHighWaterMark:getDefaultHighWaterMark,setDefaultHighWaterMark:setDefaultHighWaterMark}},12135:(r,n,s)=>{const{ObjectSetPrototypeOf:a,Symbol:l}=s(50999);r.exports=Transform;const{ERR_METHOD_NOT_IMPLEMENTED:u}=s(69220).codes;const d=s(16830);const{getHighWaterMark:A}=s(54874);a(Transform.prototype,d.prototype);a(Transform,d);const p=l("kCallback");function Transform(r){if(!(this instanceof Transform))return new Transform(r);const n=r?A(this,r,"readableHighWaterMark",true):null;if(n===0){r={...r,highWaterMark:null,readableHighWaterMark:n,writableHighWaterMark:r.writableHighWaterMark||0}}d.call(this,r);this._readableState.sync=false;this[p]=null;if(r){if(typeof r.transform==="function")this._transform=r.transform;if(typeof r.flush==="function")this._flush=r.flush}this.on("prefinish",prefinish)}function final(r){if(typeof this._flush==="function"&&!this.destroyed){this._flush(((n,s)=>{if(n){if(r){r(n)}else{this.destroy(n)}return}if(s!=null){this.push(s)}this.push(null);if(r){r()}}))}else{this.push(null);if(r){r()}}}function prefinish(){if(this._final!==final){final.call(this)}}Transform.prototype._final=final;Transform.prototype._transform=function(r,n,s){throw new u("_transform()")};Transform.prototype._write=function(r,n,s){const a=this._readableState;const l=this._writableState;const u=a.length;this._transform(r,n,((r,n)=>{if(r){s(r);return}if(n!=null){this.push(n)}if(l.ended||u===a.length||a.length{const{SymbolAsyncIterator:a,SymbolIterator:l,SymbolFor:u}=s(50999);const d=u("nodejs.stream.destroyed");const A=u("nodejs.stream.errored");const p=u("nodejs.stream.readable");const f=u("nodejs.stream.writable");const g=u("nodejs.stream.disturbed");const y=u("nodejs.webstream.isClosedPromise");const b=u("nodejs.webstream.controllerErrorFunction");function isReadableNodeStream(r,n=false){var s;return!!(r&&typeof r.pipe==="function"&&typeof r.on==="function"&&(!n||typeof r.pause==="function"&&typeof r.resume==="function")&&(!r._writableState||((s=r._readableState)===null||s===undefined?undefined:s.readable)!==false)&&(!r._writableState||r._readableState))}function isWritableNodeStream(r){var n;return!!(r&&typeof r.write==="function"&&typeof r.on==="function"&&(!r._readableState||((n=r._writableState)===null||n===undefined?undefined:n.writable)!==false))}function isDuplexNodeStream(r){return!!(r&&typeof r.pipe==="function"&&r._readableState&&typeof r.on==="function"&&typeof r.write==="function")}function isNodeStream(r){return r&&(r._readableState||r._writableState||typeof r.write==="function"&&typeof r.on==="function"||typeof r.pipe==="function"&&typeof r.on==="function")}function isReadableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.pipeThrough==="function"&&typeof r.getReader==="function"&&typeof r.cancel==="function")}function isWritableStream(r){return!!(r&&!isNodeStream(r)&&typeof r.getWriter==="function"&&typeof r.abort==="function")}function isTransformStream(r){return!!(r&&!isNodeStream(r)&&typeof r.readable==="object"&&typeof r.writable==="object")}function isWebStream(r){return isReadableStream(r)||isWritableStream(r)||isTransformStream(r)}function isIterable(r,n){if(r==null)return false;if(n===true)return typeof r[a]==="function";if(n===false)return typeof r[l]==="function";return typeof r[a]==="function"||typeof r[l]==="function"}function isDestroyed(r){if(!isNodeStream(r))return null;const n=r._writableState;const s=r._readableState;const a=n||s;return!!(r.destroyed||r[d]||a!==null&&a!==undefined&&a.destroyed)}function isWritableEnded(r){if(!isWritableNodeStream(r))return null;if(r.writableEnded===true)return true;const n=r._writableState;if(n!==null&&n!==undefined&&n.errored)return false;if(typeof(n===null||n===undefined?undefined:n.ended)!=="boolean")return null;return n.ended}function isWritableFinished(r,n){if(!isWritableNodeStream(r))return null;if(r.writableFinished===true)return true;const s=r._writableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.finished)!=="boolean")return null;return!!(s.finished||n===false&&s.ended===true&&s.length===0)}function isReadableEnded(r){if(!isReadableNodeStream(r))return null;if(r.readableEnded===true)return true;const n=r._readableState;if(!n||n.errored)return false;if(typeof(n===null||n===undefined?undefined:n.ended)!=="boolean")return null;return n.ended}function isReadableFinished(r,n){if(!isReadableNodeStream(r))return null;const s=r._readableState;if(s!==null&&s!==undefined&&s.errored)return false;if(typeof(s===null||s===undefined?undefined:s.endEmitted)!=="boolean")return null;return!!(s.endEmitted||n===false&&s.ended===true&&s.length===0)}function isReadable(r){if(r&&r[p]!=null)return r[p];if(typeof(r===null||r===undefined?undefined:r.readable)!=="boolean")return null;if(isDestroyed(r))return false;return isReadableNodeStream(r)&&r.readable&&!isReadableFinished(r)}function isWritable(r){if(r&&r[f]!=null)return r[f];if(typeof(r===null||r===undefined?undefined:r.writable)!=="boolean")return null;if(isDestroyed(r))return false;return isWritableNodeStream(r)&&r.writable&&!isWritableEnded(r)}function isFinished(r,n){if(!isNodeStream(r)){return null}if(isDestroyed(r)){return true}if((n===null||n===undefined?undefined:n.readable)!==false&&isReadable(r)){return false}if((n===null||n===undefined?undefined:n.writable)!==false&&isWritable(r)){return false}return true}function isWritableErrored(r){var n,s;if(!isNodeStream(r)){return null}if(r.writableErrored){return r.writableErrored}return(n=(s=r._writableState)===null||s===undefined?undefined:s.errored)!==null&&n!==undefined?n:null}function isReadableErrored(r){var n,s;if(!isNodeStream(r)){return null}if(r.readableErrored){return r.readableErrored}return(n=(s=r._readableState)===null||s===undefined?undefined:s.errored)!==null&&n!==undefined?n:null}function isClosed(r){if(!isNodeStream(r)){return null}if(typeof r.closed==="boolean"){return r.closed}const n=r._writableState;const s=r._readableState;if(typeof(n===null||n===undefined?undefined:n.closed)==="boolean"||typeof(s===null||s===undefined?undefined:s.closed)==="boolean"){return(n===null||n===undefined?undefined:n.closed)||(s===null||s===undefined?undefined:s.closed)}if(typeof r._closed==="boolean"&&isOutgoingMessage(r)){return r._closed}return null}function isOutgoingMessage(r){return typeof r._closed==="boolean"&&typeof r._defaultKeepAlive==="boolean"&&typeof r._removedConnection==="boolean"&&typeof r._removedContLen==="boolean"}function isServerResponse(r){return typeof r._sent100==="boolean"&&isOutgoingMessage(r)}function isServerRequest(r){var n;return typeof r._consuming==="boolean"&&typeof r._dumped==="boolean"&&((n=r.req)===null||n===undefined?undefined:n.upgradeOrConnect)===undefined}function willEmitClose(r){if(!isNodeStream(r))return null;const n=r._writableState;const s=r._readableState;const a=n||s;return!a&&isServerResponse(r)||!!(a&&a.autoDestroy&&a.emitClose&&a.closed===false)}function isDisturbed(r){var n;return!!(r&&((n=r[g])!==null&&n!==undefined?n:r.readableDidRead||r.readableAborted))}function isErrored(r){var n,s,a,l,u,d,p,f,g,y;return!!(r&&((n=(s=(a=(l=(u=(d=r[A])!==null&&d!==undefined?d:r.readableErrored)!==null&&u!==undefined?u:r.writableErrored)!==null&&l!==undefined?l:(p=r._readableState)===null||p===undefined?undefined:p.errorEmitted)!==null&&a!==undefined?a:(f=r._writableState)===null||f===undefined?undefined:f.errorEmitted)!==null&&s!==undefined?s:(g=r._readableState)===null||g===undefined?undefined:g.errored)!==null&&n!==undefined?n:(y=r._writableState)===null||y===undefined?undefined:y.errored))}r.exports={isDestroyed:isDestroyed,kIsDestroyed:d,isDisturbed:isDisturbed,kIsDisturbed:g,isErrored:isErrored,kIsErrored:A,isReadable:isReadable,kIsReadable:p,kIsClosedPromise:y,kControllerErrorFunction:b,kIsWritable:f,isClosed:isClosed,isDuplexNodeStream:isDuplexNodeStream,isFinished:isFinished,isIterable:isIterable,isReadableNodeStream:isReadableNodeStream,isReadableStream:isReadableStream,isReadableEnded:isReadableEnded,isReadableFinished:isReadableFinished,isReadableErrored:isReadableErrored,isNodeStream:isNodeStream,isWebStream:isWebStream,isWritable:isWritable,isWritableNodeStream:isWritableNodeStream,isWritableStream:isWritableStream,isWritableEnded:isWritableEnded,isWritableFinished:isWritableFinished,isWritableErrored:isWritableErrored,isServerRequest:isServerRequest,isServerResponse:isServerResponse,willEmitClose:willEmitClose,isTransformStream:isTransformStream}},58939:(r,n,s)=>{const a=s(7945);const{ArrayPrototypeSlice:l,Error:u,FunctionPrototypeSymbolHasInstance:d,ObjectDefineProperty:A,ObjectDefineProperties:p,ObjectSetPrototypeOf:f,StringPrototypeToLowerCase:g,Symbol:y,SymbolHasInstance:b}=s(50999);r.exports=Writable;Writable.WritableState=WritableState;const{EventEmitter:C}=s(24434);const w=s(84128).Stream;const{Buffer:B}=s(20181);const I=s(65089);const{addAbortSignal:S}=s(80652);const{getHighWaterMark:Q,getDefaultHighWaterMark:v}=s(54874);const{ERR_INVALID_ARG_TYPE:R,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:x,ERR_STREAM_CANNOT_PIPE:D,ERR_STREAM_DESTROYED:T,ERR_STREAM_ALREADY_FINISHED:k,ERR_STREAM_NULL_VALUES:_,ERR_STREAM_WRITE_AFTER_END:P,ERR_UNKNOWN_ENCODING:F}=s(69220).codes;const{errorOrDestroy:L}=I;f(Writable.prototype,w.prototype);f(Writable,w);function nop(){}const O=y("kOnFinished");function WritableState(r,n,a){if(typeof a!=="boolean")a=n instanceof s(16830);this.objectMode=!!(r&&r.objectMode);if(a)this.objectMode=this.objectMode||!!(r&&r.writableObjectMode);this.highWaterMark=r?Q(this,r,"writableHighWaterMark",a):v(false);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;const l=!!(r&&r.decodeStrings===false);this.decodeStrings=!l;this.defaultEncoding=r&&r.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=onwrite.bind(undefined,n);this.writecb=null;this.writelen=0;this.afterWriteTickInfo=null;resetBuffer(this);this.pendingcb=0;this.constructed=true;this.prefinished=false;this.errorEmitted=false;this.emitClose=!r||r.emitClose!==false;this.autoDestroy=!r||r.autoDestroy!==false;this.errored=null;this.closed=false;this.closeEmitted=false;this[O]=[]}function resetBuffer(r){r.buffered=[];r.bufferedIndex=0;r.allBuffers=true;r.allNoop=true}WritableState.prototype.getBuffer=function getBuffer(){return l(this.buffered,this.bufferedIndex)};A(WritableState.prototype,"bufferedRequestCount",{__proto__:null,get(){return this.buffered.length-this.bufferedIndex}});function Writable(r){const n=this instanceof s(16830);if(!n&&!d(Writable,this))return new Writable(r);this._writableState=new WritableState(r,this,n);if(r){if(typeof r.write==="function")this._write=r.write;if(typeof r.writev==="function")this._writev=r.writev;if(typeof r.destroy==="function")this._destroy=r.destroy;if(typeof r.final==="function")this._final=r.final;if(typeof r.construct==="function")this._construct=r.construct;if(r.signal)S(r.signal,this)}w.call(this,r);I.construct(this,(()=>{const r=this._writableState;if(!r.writing){clearBuffer(this,r)}finishMaybe(this,r)}))}A(Writable,b,{__proto__:null,value:function(r){if(d(this,r))return true;if(this!==Writable)return false;return r&&r._writableState instanceof WritableState}});Writable.prototype.pipe=function(){L(this,new D)};function _write(r,n,s,l){const u=r._writableState;if(typeof s==="function"){l=s;s=u.defaultEncoding}else{if(!s)s=u.defaultEncoding;else if(s!=="buffer"&&!B.isEncoding(s))throw new F(s);if(typeof l!=="function")l=nop}if(n===null){throw new _}else if(!u.objectMode){if(typeof n==="string"){if(u.decodeStrings!==false){n=B.from(n,s);s="buffer"}}else if(n instanceof B){s="buffer"}else if(w._isUint8Array(n)){n=w._uint8ArrayToBuffer(n);s="buffer"}else{throw new R("chunk",["string","Buffer","Uint8Array"],n)}}let d;if(u.ending){d=new P}else if(u.destroyed){d=new T("write")}if(d){a.nextTick(l,d);L(r,d,true);return d}u.pendingcb++;return writeOrBuffer(r,u,n,s,l)}Writable.prototype.write=function(r,n,s){return _write(this,r,n,s)===true};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){const r=this._writableState;if(r.corked){r.corked--;if(!r.writing)clearBuffer(this,r)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(r){if(typeof r==="string")r=g(r);if(!B.isEncoding(r))throw new F(r);this._writableState.defaultEncoding=r;return this};function writeOrBuffer(r,n,s,a,l){const u=n.objectMode?1:s.length;n.length+=u;const d=n.lengths.bufferedIndex){clearBuffer(r,s)}if(l){if(s.afterWriteTickInfo!==null&&s.afterWriteTickInfo.cb===u){s.afterWriteTickInfo.count++}else{s.afterWriteTickInfo={count:1,cb:u,stream:r,state:s};a.nextTick(afterWriteTick,s.afterWriteTickInfo)}}else{afterWrite(r,s,1,u)}}}function afterWriteTick({stream:r,state:n,count:s,cb:a}){n.afterWriteTickInfo=null;return afterWrite(r,n,s,a)}function afterWrite(r,n,s,a){const l=!n.ending&&!r.destroyed&&n.length===0&&n.needDrain;if(l){n.needDrain=false;r.emit("drain")}while(s-- >0){n.pendingcb--;a()}if(n.destroyed){errorBuffer(n)}finishMaybe(r,n)}function errorBuffer(r){if(r.writing){return}for(let s=r.bufferedIndex;s1&&r._writev){n.pendingcb-=d-1;const a=n.allNoop?nop:r=>{for(let n=A;n256){s.splice(0,A);n.bufferedIndex=0}else{n.bufferedIndex=A}}n.bufferProcessing=false}Writable.prototype._write=function(r,n,s){if(this._writev){this._writev([{chunk:r,encoding:n}],s)}else{throw new N("_write()")}};Writable.prototype._writev=null;Writable.prototype.end=function(r,n,s){const l=this._writableState;if(typeof r==="function"){s=r;r=null;n=null}else if(typeof n==="function"){s=n;n=null}let d;if(r!==null&&r!==undefined){const s=_write(this,r,n);if(s instanceof u){d=s}}if(l.corked){l.corked=1;this.uncork()}if(d){}else if(!l.errored&&!l.ending){l.ending=true;finishMaybe(this,l,true);l.ended=true}else if(l.finished){d=new k("end")}else if(l.destroyed){d=new T("end")}if(typeof s==="function"){if(d||l.finished){a.nextTick(s,d)}else{l[O].push(s)}}return this};function needFinish(r){return r.ending&&!r.destroyed&&r.constructed&&r.length===0&&!r.errored&&r.buffered.length===0&&!r.finished&&!r.writing&&!r.errorEmitted&&!r.closeEmitted}function callFinal(r,n){let s=false;function onFinish(l){if(s){L(r,l!==null&&l!==undefined?l:x());return}s=true;n.pendingcb--;if(l){const s=n[O].splice(0);for(let r=0;r{if(needFinish(n)){finish(r,n)}else{n.pendingcb--}}),r,n)}else if(needFinish(n)){n.pendingcb++;finish(r,n)}}}}function finish(r,n){n.pendingcb--;n.finished=true;const s=n[O].splice(0);for(let r=0;r{const{ArrayIsArray:a,ArrayPrototypeIncludes:l,ArrayPrototypeJoin:u,ArrayPrototypeMap:d,NumberIsInteger:A,NumberIsNaN:p,NumberMAX_SAFE_INTEGER:f,NumberMIN_SAFE_INTEGER:g,NumberParseInt:y,ObjectPrototypeHasOwnProperty:b,RegExpPrototypeExec:C,String:w,StringPrototypeToUpperCase:B,StringPrototypeTrim:I}=s(50999);const{hideStackFrames:S,codes:{ERR_SOCKET_BAD_PORT:Q,ERR_INVALID_ARG_TYPE:v,ERR_INVALID_ARG_VALUE:R,ERR_OUT_OF_RANGE:N,ERR_UNKNOWN_SIGNAL:x}}=s(69220);const{normalizeEncoding:D}=s(23539);const{isAsyncFunction:T,isArrayBufferView:k}=s(23539).types;const _={};function isInt32(r){return r===(r|0)}function isUint32(r){return r===r>>>0}const P=/^[0-7]+$/;const F="must be a 32-bit unsigned integer or an octal string";function parseFileMode(r,n,s){if(typeof r==="undefined"){r=s}if(typeof r==="string"){if(C(P,r)===null){throw new R(n,r,F)}r=y(r,8)}M(r,n);return r}const L=S(((r,n,s=g,a=f)=>{if(typeof r!=="number")throw new v(n,"number",r);if(!A(r))throw new N(n,"an integer",r);if(ra)throw new N(n,`>= ${s} && <= ${a}`,r)}));const O=S(((r,n,s=-2147483648,a=2147483647)=>{if(typeof r!=="number"){throw new v(n,"number",r)}if(!A(r)){throw new N(n,"an integer",r)}if(ra){throw new N(n,`>= ${s} && <= ${a}`,r)}}));const M=S(((r,n,s=false)=>{if(typeof r!=="number"){throw new v(n,"number",r)}if(!A(r)){throw new N(n,"an integer",r)}const a=s?1:0;const l=4294967295;if(rl){throw new N(n,`>= ${a} && <= ${l}`,r)}}));function validateString(r,n){if(typeof r!=="string")throw new v(n,"string",r)}function validateNumber(r,n,s=undefined,a){if(typeof r!=="number")throw new v(n,"number",r);if(s!=null&&ra||(s!=null||a!=null)&&p(r)){throw new N(n,`${s!=null?`>= ${s}`:""}${s!=null&&a!=null?" && ":""}${a!=null?`<= ${a}`:""}`,r)}}const U=S(((r,n,s)=>{if(!l(s,r)){const a=u(d(s,(r=>typeof r==="string"?`'${r}'`:w(r))),", ");const l="must be one of: "+a;throw new R(n,r,l)}}));function validateBoolean(r,n){if(typeof r!=="boolean")throw new v(n,"boolean",r)}function getOwnPropertyValueOrDefault(r,n,s){return r==null||!b(r,n)?s:r[n]}const H=S(((r,n,s=null)=>{const l=getOwnPropertyValueOrDefault(s,"allowArray",false);const u=getOwnPropertyValueOrDefault(s,"allowFunction",false);const d=getOwnPropertyValueOrDefault(s,"nullable",false);if(!d&&r===null||!l&&a(r)||typeof r!=="object"&&(!u||typeof r!=="function")){throw new v(n,"Object",r)}}));const G=S(((r,n)=>{if(r!=null&&typeof r!=="object"&&typeof r!=="function"){throw new v(n,"a dictionary",r)}}));const z=S(((r,n,s=0)=>{if(!a(r)){throw new v(n,"Array",r)}if(r.length{if(!k(r)){throw new v(n,["Buffer","TypedArray","DataView"],r)}}));function validateEncoding(r,n){const s=D(n);const a=r.length;if(s==="hex"&&a%2!==0){throw new R("encoding",n,`is invalid for data of length ${a}`)}}function validatePort(r,n="Port",s=true){if(typeof r!=="number"&&typeof r!=="string"||typeof r==="string"&&I(r).length===0||+r!==+r>>>0||r>65535||r===0&&!s){throw new Q(n,r,s)}return r|0}const V=S(((r,n)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new v(n,"AbortSignal",r)}}));const j=S(((r,n)=>{if(typeof r!=="function")throw new v(n,"Function",r)}));const W=S(((r,n)=>{if(typeof r!=="function"||T(r))throw new v(n,"Function",r)}));const Y=S(((r,n)=>{if(r!==undefined)throw new v(n,"undefined",r)}));function validateUnion(r,n,s){if(!l(s,r)){throw new v(n,`('${u(s,"|")}')`,r)}}const J=/^(?:<[^>]*>)(?:\s*;\s*[^;"\s]+(?:=(")?[^;"\s]*\1)?)*$/;function validateLinkHeaderFormat(r,n){if(typeof r==="undefined"||!C(J,r)){throw new R(n,r,'must be an array or string of format "; rel=preload; as=style"')}}function validateLinkHeaderValue(r){if(typeof r==="string"){validateLinkHeaderFormat(r,"hints");return r}else if(a(r)){const n=r.length;let s="";if(n===0){return s}for(let a=0;a; rel=preload; as=style"')}r.exports={isInt32:isInt32,isUint32:isUint32,parseFileMode:parseFileMode,validateArray:z,validateStringArray:validateStringArray,validateBooleanArray:validateBooleanArray,validateAbortSignalArray:validateAbortSignalArray,validateBoolean:validateBoolean,validateBuffer:q,validateDictionary:G,validateEncoding:validateEncoding,validateFunction:j,validateInt32:O,validateInteger:L,validateNumber:validateNumber,validateObject:H,validateOneOf:U,validatePlainFunction:W,validatePort:validatePort,validateSignalName:validateSignalName,validateString:validateString,validateUint32:M,validateUndefined:Y,validateUnion:validateUnion,validateAbortSignal:V,validateLinkHeaderValue:validateLinkHeaderValue}},69220:(r,n,s)=>{const{format:a,inspect:l}=s(43536);const{AggregateError:u}=s(50999);const d=globalThis.AggregateError||u;const A=Symbol("kIsNodeError");const p=["string","function","number","object","Function","Object","boolean","bigint","symbol"];const f=/^([A-Z][a-z0-9]*)+$/;const g="__node_internal_";const y={};function assert(r,n){if(!r){throw new y.ERR_INTERNAL_ASSERTION(n)}}function addNumericalSeparator(r){let n="";let s=r.length;const a=r[0]==="-"?1:0;for(;s>=a+4;s-=3){n=`_${r.slice(s-3,s)}${n}`}return`${r.slice(0,s)}${n}`}function getMessage(r,n,s){if(typeof n==="function"){assert(n.length<=s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${n.length}).`);return n(...s)}const l=(n.match(/%[dfijoOs]/g)||[]).length;assert(l===s.length,`Code: ${r}; The provided arguments length (${s.length}) does not match the required ones (${l}).`);if(s.length===0){return n}return a(n,...s)}function E(r,n,s){if(!s){s=Error}class NodeError extends s{constructor(...s){super(getMessage(r,n,s))}toString(){return`${this.name} [${r}]: ${this.message}`}}Object.defineProperties(NodeError.prototype,{name:{value:s.name,writable:true,enumerable:false,configurable:true},toString:{value(){return`${this.name} [${r}]: ${this.message}`},writable:true,enumerable:false,configurable:true}});NodeError.prototype.code=r;NodeError.prototype[A]=true;y[r]=NodeError}function hideStackFrames(r){const n=g+r.name;Object.defineProperty(r,"name",{value:n});return r}function aggregateTwoErrors(r,n){if(r&&n&&r!==n){if(Array.isArray(n.errors)){n.errors.push(r);return n}const s=new d([n,r],n.message);s.code=n.code;return s}return r||n}class AbortError extends Error{constructor(r="The operation was aborted",n=undefined){if(n!==undefined&&typeof n!=="object"){throw new y.ERR_INVALID_ARG_TYPE("options","Object",n)}super(r,n);this.code="ABORT_ERR";this.name="AbortError"}}E("ERR_ASSERTION","%s",Error);E("ERR_INVALID_ARG_TYPE",((r,n,s)=>{assert(typeof r==="string","'name' must be a string");if(!Array.isArray(n)){n=[n]}let a="The ";if(r.endsWith(" argument")){a+=`${r} `}else{a+=`"${r}" ${r.includes(".")?"property":"argument"} `}a+="must be ";const u=[];const d=[];const A=[];for(const r of n){assert(typeof r==="string","All expected entries have to be of type string");if(p.includes(r)){u.push(r.toLowerCase())}else if(f.test(r)){d.push(r)}else{assert(r!=="object",'The value "object" should be written as "Object"');A.push(r)}}if(d.length>0){const r=u.indexOf("object");if(r!==-1){u.splice(u,r,1);d.push("Object")}}if(u.length>0){switch(u.length){case 1:a+=`of type ${u[0]}`;break;case 2:a+=`one of type ${u[0]} or ${u[1]}`;break;default:{const r=u.pop();a+=`one of type ${u.join(", ")}, or ${r}`}}if(d.length>0||A.length>0){a+=" or "}}if(d.length>0){switch(d.length){case 1:a+=`an instance of ${d[0]}`;break;case 2:a+=`an instance of ${d[0]} or ${d[1]}`;break;default:{const r=d.pop();a+=`an instance of ${d.join(", ")}, or ${r}`}}if(A.length>0){a+=" or "}}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0]){a+="an "}a+=`${A[0]}`;break;case 2:a+=`one of ${A[0]} or ${A[1]}`;break;default:{const r=A.pop();a+=`one of ${A.join(", ")}, or ${r}`}}if(s==null){a+=`. Received ${s}`}else if(typeof s==="function"&&s.name){a+=`. Received function ${s.name}`}else if(typeof s==="object"){var g;if((g=s.constructor)!==null&&g!==undefined&&g.name){a+=`. Received an instance of ${s.constructor.name}`}else{const r=l(s,{depth:-1});a+=`. Received ${r}`}}else{let r=l(s,{colors:false});if(r.length>25){r=`${r.slice(0,25)}...`}a+=`. Received type ${typeof s} (${r})`}return a}),TypeError);E("ERR_INVALID_ARG_VALUE",((r,n,s="is invalid")=>{let a=l(n);if(a.length>128){a=a.slice(0,128)+"..."}const u=r.includes(".")?"property":"argument";return`The ${u} '${r}' ${s}. Received ${a}`}),TypeError);E("ERR_INVALID_RETURN_VALUE",((r,n,s)=>{var a;const l=s!==null&&s!==undefined&&(a=s.constructor)!==null&&a!==undefined&&a.name?`instance of ${s.constructor.name}`:`type ${typeof s}`;return`Expected ${r} to be returned from the "${n}"`+` function but got ${l}.`}),TypeError);E("ERR_MISSING_ARGS",((...r)=>{assert(r.length>0,"At least one arg needs to be specified");let n;const s=r.length;r=(Array.isArray(r)?r:[r]).map((r=>`"${r}"`)).join(" or ");switch(s){case 1:n+=`The ${r[0]} argument`;break;case 2:n+=`The ${r[0]} and ${r[1]} arguments`;break;default:{const s=r.pop();n+=`The ${r.join(", ")}, and ${s} arguments`}break}return`${n} must be specified`}),TypeError);E("ERR_OUT_OF_RANGE",((r,n,s)=>{assert(n,'Missing "range" argument');let a;if(Number.isInteger(s)&&Math.abs(s)>2**32){a=addNumericalSeparator(String(s))}else if(typeof s==="bigint"){a=String(s);const r=BigInt(2)**BigInt(32);if(s>r||s<-r){a=addNumericalSeparator(a)}a+="n"}else{a=l(s)}return`The value of "${r}" is out of range. It must be ${n}. Received ${a}`}),RangeError);E("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error);E("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error);E("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error);E("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error);E("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error);E("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);E("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error);E("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error);E("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error);E("ERR_STREAM_WRITE_AFTER_END","write after end",Error);E("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError);r.exports={AbortError:AbortError,aggregateTwoErrors:hideStackFrames(aggregateTwoErrors),hideStackFrames:hideStackFrames,codes:y}},29963:(r,n,s)=>{const a=s(2203);if(a&&process.env.READABLE_STREAM==="disable"){const n=a.promises;r.exports._uint8ArrayToBuffer=a._uint8ArrayToBuffer;r.exports._isUint8Array=a._isUint8Array;r.exports.isDisturbed=a.isDisturbed;r.exports.isErrored=a.isErrored;r.exports.isReadable=a.isReadable;r.exports.Readable=a.Readable;r.exports.Writable=a.Writable;r.exports.Duplex=a.Duplex;r.exports.Transform=a.Transform;r.exports.PassThrough=a.PassThrough;r.exports.addAbortSignal=a.addAbortSignal;r.exports.finished=a.finished;r.exports.destroy=a.destroy;r.exports.pipeline=a.pipeline;r.exports.compose=a.compose;Object.defineProperty(a,"promises",{configurable:true,enumerable:true,get(){return n}});r.exports.Stream=a.Stream}else{const n=s(12375);const a=s(65904);const l=n.Readable.destroy;r.exports=n.Readable;r.exports._uint8ArrayToBuffer=n._uint8ArrayToBuffer;r.exports._isUint8Array=n._isUint8Array;r.exports.isDisturbed=n.isDisturbed;r.exports.isErrored=n.isErrored;r.exports.isReadable=n.isReadable;r.exports.Readable=n.Readable;r.exports.Writable=n.Writable;r.exports.Duplex=n.Duplex;r.exports.Transform=n.Transform;r.exports.PassThrough=n.PassThrough;r.exports.addAbortSignal=n.addAbortSignal;r.exports.finished=n.finished;r.exports.destroy=n.destroy;r.exports.destroy=l;r.exports.pipeline=n.pipeline;r.exports.compose=n.compose;Object.defineProperty(n,"promises",{configurable:true,enumerable:true,get(){return a}});r.exports.Stream=n.Stream}r.exports["default"]=r.exports},50999:r=>{class AggregateError extends Error{constructor(r){if(!Array.isArray(r)){throw new TypeError(`Expected input to be an Array, got ${typeof r}`)}let n="";for(let s=0;s{const a=s(20181);const{format:l,inspect:u}=s(43536);const{codes:{ERR_INVALID_ARG_TYPE:d}}=s(69220);const{kResistStopPropagation:A,AggregateError:p,SymbolDispose:f}=s(50999);const g=globalThis.AbortSignal||s(17413).AbortSignal;const y=globalThis.AbortController||s(17413).AbortController;const b=Object.getPrototypeOf((async function(){})).constructor;const C=globalThis.Blob||a.Blob;const w=typeof C!=="undefined"?function isBlob(r){return r instanceof C}:function isBlob(r){return false};const validateAbortSignal=(r,n)=>{if(r!==undefined&&(r===null||typeof r!=="object"||!("aborted"in r))){throw new d(n,"AbortSignal",r)}};const validateFunction=(r,n)=>{if(typeof r!=="function"){throw new d(n,"Function",r)}};r.exports={AggregateError:p,kEmptyObject:Object.freeze({}),once(r){let n=false;return function(...s){if(n){return}n=true;r.apply(this,s)}},createDeferredPromise:function(){let r;let n;const s=new Promise(((s,a)=>{r=s;n=a}));return{promise:s,resolve:r,reject:n}},promisify(r){return new Promise(((n,s)=>{r(((r,...a)=>{if(r){return s(r)}return n(...a)}))}))},debuglog(){return function(){}},format:l,inspect:u,types:{isAsyncFunction(r){return r instanceof b},isArrayBufferView(r){return ArrayBuffer.isView(r)}},isBlob:w,deprecate(r,n){return r},addAbortListener:s(24434).addAbortListener||function addAbortListener(r,n){if(r===undefined){throw new d("signal","AbortSignal",r)}validateAbortSignal(r,"signal");validateFunction(n,"listener");let s;if(r.aborted){queueMicrotask((()=>n()))}else{r.addEventListener("abort",n,{__proto__:null,once:true,[A]:true});s=()=>{r.removeEventListener("abort",n)}}return{__proto__:null,[f](){var r;(r=s)===null||r===undefined?undefined:r()}}},AbortSignalAny:g.any||function AbortSignalAny(r){if(r.length===1){return r[0]}const n=new y;const abort=()=>n.abort();r.forEach((r=>{validateAbortSignal(r,"signals");r.addEventListener("abort",abort,{once:true})}));n.signal.addEventListener("abort",(()=>{r.forEach((r=>r.removeEventListener("abort",abort)))}),{once:true});return n.signal}};r.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")},43536:r=>{r.exports={format(r,...n){return r.replace(/%([sdifj])/g,(function(...[r,s]){const a=n.shift();if(s==="f"){return a.toFixed(6)}else if(s==="j"){return JSON.stringify(a)}else if(s==="s"&&typeof a==="object"){const r=a.constructor!==Object?a.constructor.name:"";return`${r} {}`.trim()}else{return a.toString()}}))},inspect(r){switch(typeof r){case"string":if(r.includes("'")){if(!r.includes('"')){return`"${r}"`}else if(!r.includes("`")&&!r.includes("${")){return`\`${r}\``}}return`'${r}'`;case"number":if(isNaN(r)){return"NaN"}else if(Object.is(r,-0)){return String(r)}return r;case"bigint":return`${String(r)}n`;case"boolean":case"undefined":return String(r);case"object":return"{}"}}}},12375:(r,n,s)=>{const{Buffer:a}=s(20181);const{ObjectDefineProperty:l,ObjectKeys:u,ReflectApply:d}=s(50999);const{promisify:{custom:A}}=s(23539);const{streamReturningOperators:p,promiseReturningOperators:f}=s(11222);const{codes:{ERR_ILLEGAL_CONSTRUCTOR:g}}=s(69220);const y=s(64999);const{setDefaultHighWaterMark:b,getDefaultHighWaterMark:C}=s(54874);const{pipeline:w}=s(16701);const{destroyer:B}=s(65089);const I=s(36815);const S={};const Q=s(65904);const v=s(83426);const R=r.exports=s(84128).Stream;R.isDestroyed=v.isDestroyed;R.isDisturbed=v.isDisturbed;R.isErrored=v.isErrored;R.isReadable=v.isReadable;R.isWritable=v.isWritable;R.Readable=s(17783);for(const x of u(p)){const D=p[x];function fn(...r){if(new.target){throw g()}return R.Readable.from(d(D,this,r))}l(fn,"name",{__proto__:null,value:D.name});l(fn,"length",{__proto__:null,value:D.length});l(R.Readable.prototype,x,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}for(const T of u(f)){const k=f[T];function fn(...r){if(new.target){throw g()}return d(k,this,r)}l(fn,"name",{__proto__:null,value:k.name});l(fn,"length",{__proto__:null,value:k.length});l(R.Readable.prototype,T,{__proto__:null,value:fn,enumerable:false,configurable:true,writable:true})}R.Writable=s(58939);R.Duplex=s(16830);R.Transform=s(12135);R.PassThrough=s(19173);R.pipeline=w;const{addAbortSignal:N}=s(80652);R.addAbortSignal=N;R.finished=I;R.destroy=B;R.compose=y;R.setDefaultHighWaterMark=b;R.getDefaultHighWaterMark=C;l(R,"promises",{__proto__:null,configurable:true,enumerable:true,get(){return Q}});l(w,A,{__proto__:null,enumerable:true,get(){return Q.pipeline}});l(I,A,{__proto__:null,enumerable:true,get(){return Q.finished}});R.Stream=R;R._isUint8Array=function isUint8Array(r){return r instanceof Uint8Array};R._uint8ArrayToBuffer=function _uint8ArrayToBuffer(r){return a.from(r.buffer,r.byteOffset,r.byteLength)}},65904:(r,n,s)=>{const{ArrayPrototypePop:a,Promise:l}=s(50999);const{isIterable:u,isNodeStream:d,isWebStream:A}=s(83426);const{pipelineImpl:p}=s(16701);const{finished:f}=s(36815);s(12375);function pipeline(...r){return new l(((n,s)=>{let l;let f;const g=r[r.length-1];if(g&&typeof g==="object"&&!d(g)&&!u(g)&&!A(g)){const n=a(r);l=n.signal;f=n.end}p(r,((r,a)=>{if(r){s(r)}else{n(a)}}),{signal:l,end:f})}))}r.exports={finished:f,pipeline:pipeline}},51364:(r,n,s)=>{r.exports=readdirGlob;const a=s(79896);const{EventEmitter:l}=s(24434);const{Minimatch:u}=s(6944);const{resolve:d}=s(16928);function readdir(r,n){return new Promise(((s,l)=>{a.readdir(r,{withFileTypes:true},((r,a)=>{if(r){switch(r.code){case"ENOTDIR":if(n){l(r)}else{s([])}break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":s([]);break;case"ELOOP":default:l(r);break}}else{s(a)}}))}))}function stat(r,n){return new Promise(((s,l)=>{const u=n?a.stat:a.lstat;u(r,((a,l)=>{if(a){switch(a.code){case"ENOENT":if(n){s(stat(r,false))}else{s(null)}break;default:s(null);break}}else{s(l)}}))}))}async function*exploreWalkAsync(r,n,s,a,l,u){let d=await readdir(n+r,u);for(const u of d){let d=u.name;if(d===undefined){d=u;a=true}const A=r+"/"+d;const p=A.slice(1);const f=n+"/"+p;let g=null;if(a||s){g=await stat(f,s)}if(!g&&u.name!==undefined){g=u}if(g===null){g={isDirectory:()=>false}}if(g.isDirectory()){if(!l(p)){yield{relative:p,absolute:f,stats:g};yield*exploreWalkAsync(A,n,s,a,l,false)}}else{yield{relative:p,absolute:f,stats:g}}}}async function*explore(r,n,s,a){yield*exploreWalkAsync("",r,n,s,a,true)}function readOptions(r){return{pattern:r.pattern,dot:!!r.dot,noglobstar:!!r.noglobstar,matchBase:!!r.matchBase,nocase:!!r.nocase,ignore:r.ignore,skip:r.skip,follow:!!r.follow,stat:!!r.stat,nodir:!!r.nodir,mark:!!r.mark,silent:!!r.silent,absolute:!!r.absolute}}class ReaddirGlob extends l{constructor(r,n,s){super();if(typeof n==="function"){s=n;n=null}this.options=readOptions(n||{});this.matchers=[];if(this.options.pattern){const r=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=r.map((r=>new u(r,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase})))}this.ignoreMatchers=[];if(this.options.ignore){const r=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=r.map((r=>new u(r,{dot:true})))}this.skipMatchers=[];if(this.options.skip){const r=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=r.map((r=>new u(r,{dot:true})))}this.iterator=explore(d(r||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this));this.paused=false;this.inactive=false;this.aborted=false;if(s){this._matches=[];this.on("match",(r=>this._matches.push(this.options.absolute?r.absolute:r.relative)));this.on("error",(r=>s(r)));this.on("end",(()=>s(null,this._matches)))}setTimeout((()=>this._next()),0)}_shouldSkipDirectory(r){return this.skipMatchers.some((n=>n.match(r)))}_fileMatches(r,n){const s=r+(n?"/":"");return(this.matchers.length===0||this.matchers.some((r=>r.match(s))))&&!this.ignoreMatchers.some((r=>r.match(s)))&&(!this.options.nodir||!n)}_next(){if(!this.paused&&!this.aborted){this.iterator.next().then((r=>{if(!r.done){const n=r.value.stats.isDirectory();if(this._fileMatches(r.value.relative,n)){let s=r.value.relative;let a=r.value.absolute;if(this.options.mark&&n){s+="/";a+="/"}if(this.options.stat){this.emit("match",{relative:s,absolute:a,stat:r.value.stats})}else{this.emit("match",{relative:s,absolute:a})}}this._next(this.iterator)}else{this.emit("end")}})).catch((r=>{this.abort();this.emit("error",r);if(!r.code&&!this.options.silent){console.error(r)}}))}else{this.inactive=true}}abort(){this.aborted=true}pause(){this.paused=true}resume(){this.paused=false;if(this.inactive){this.inactive=false;this._next()}}}function readdirGlob(r,n,s){return new ReaddirGlob(r,n,s)}readdirGlob.ReaddirGlob=ReaddirGlob},63669:r=>{const n=typeof process==="object"&&process&&process.platform==="win32";r.exports=n?{sep:"\\"}:{sep:"/"}},6944:(r,n,s)=>{const a=r.exports=(r,n,s={})=>{assertValidPattern(n);if(!s.nocomment&&n.charAt(0)==="#"){return false}return new Minimatch(n,s).match(r)};r.exports=a;const l=s(63669);a.sep=l.sep;const u=Symbol("globstar **");a.GLOBSTAR=u;const d=s(94691);const A={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};const p="[^/]";const f=p+"*?";const g="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const y="(?:(?!(?:\\/|^)\\.).)*?";const charSet=r=>r.split("").reduce(((r,n)=>{r[n]=true;return r}),{});const b=charSet("().*{}+?[]^$\\!");const C=charSet("[.(");const w=/\/+/;a.filter=(r,n={})=>(s,l,u)=>a(s,r,n);const ext=(r,n={})=>{const s={};Object.keys(r).forEach((n=>s[n]=r[n]));Object.keys(n).forEach((r=>s[r]=n[r]));return s};a.defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return a}const n=a;const m=(s,a,l)=>n(s,a,ext(r,l));m.Minimatch=class Minimatch extends n.Minimatch{constructor(n,s){super(n,ext(r,s))}};m.Minimatch.defaults=s=>n.defaults(ext(r,s)).Minimatch;m.filter=(s,a)=>n.filter(s,ext(r,a));m.defaults=s=>n.defaults(ext(r,s));m.makeRe=(s,a)=>n.makeRe(s,ext(r,a));m.braceExpand=(s,a)=>n.braceExpand(s,ext(r,a));m.match=(s,a,l)=>n.match(s,a,ext(r,l));return m};a.braceExpand=(r,n)=>braceExpand(r,n);const braceExpand=(r,n={})=>{assertValidPattern(r);if(n.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return d(r)};const B=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>B){throw new TypeError("pattern is too long")}};const I=Symbol("subparse");a.makeRe=(r,n)=>new Minimatch(r,n||{}).makeRe();a.match=(r,n,s={})=>{const a=new Minimatch(n,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(n)}return r};const globUnescape=r=>r.replace(/\\(.)/g,"$1");const charUnescape=r=>r.replace(/\\([^-\]])/g,"$1");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const braExpEscape=r=>r.replace(/[[\]\\]/g,"\\$&");class Minimatch{constructor(r,n){assertValidPattern(r);if(!n)n={};this.options=n;this.maxGlobstarRecursion=n.maxGlobstarRecursion!==undefined?n.maxGlobstarRecursion:200;this.set=[];this.pattern=r;this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!n.partial;this.make()}debug(){}make(){const r=this.pattern;const n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();let s=this.globSet=this.braceExpand();if(n.debug)this.debug=(...r)=>console.error(...r);this.debug(this.pattern,s);s=this.globParts=s.map((r=>r.split(w)));this.debug(this.pattern,s);s=s.map(((r,n,s)=>r.map(this.parse,this)));this.debug(this.pattern,s);s=s.filter((r=>r.indexOf(false)===-1));this.debug(this.pattern,s);this.set=s}parseNegate(){if(this.options.nonegate)return;const r=this.pattern;let n=false;let s=0;for(let a=0;a=0;r--){if(n[r]===u){A=r;break}}const p=n.slice(l,d);const f=s?n.slice(d+1):n.slice(d+1,A);const g=s?[]:n.slice(A+1);if(p.length){const n=r.slice(a,a+p.length);if(!this._matchOne(n,p,s,0,0)){return false}a+=p.length}let y=0;if(g.length){if(g.length+a>r.length)return false;const n=r.length-g.length;if(this._matchOne(r,g,s,n,0)){y=g.length}else{if(r[r.length-1]!==""||a+g.length===r.length){return false}if(!this._matchOne(r,g,s,n-1,0)){return false}y=g.length+1}}if(!f.length){let n=!!y;for(let s=a;sx?"":D?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const subPatternStart=r=>r.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";const clearStateChar=()=>{if(w){switch(w){case"*":a+=f;l=true;break;case"?":a+=p;l=true;break;default:a+="\\"+w;break}this.debug("clearStateChar %j %j",w,a);w=false}};for(let n=0,u;n{if(!s){s="\\"}return n+n+s+"|"}));this.debug("tail=%j\n %s",r,r,R,a);const n=R.type==="*"?f:R.type==="?"?p:"\\"+R.type;l=true;a=a.slice(0,R.reStart)+n+"\\("+r}clearStateChar();if(d){a+="\\\\"}const T=C[a.charAt(0)];for(let r=y.length-1;r>-1;r--){const s=y[r];const l=a.slice(0,s.reStart);const u=a.slice(s.reStart,s.reEnd-8);let d=a.slice(s.reEnd);const A=a.slice(s.reEnd-8,s.reEnd)+d;const p=l.split(")").length;const f=l.split("(").length-p;let g=d;for(let r=0;r{r=r.map((r=>typeof r==="string"?regExpEscape(r):r===u?u:r._src)).reduce(((r,n)=>{if(!(r[r.length-1]===u&&n===u)){r.push(n)}return r}),[]);r.forEach(((n,a)=>{if(n!==u||r[a-1]===u){return}if(a===0){if(r.length>1){r[a+1]="(?:\\/|"+s+"\\/)?"+r[a+1]}else{r[a]=s}}else if(a===r.length-1){r[a-1]+="(?:\\/|"+s+")?"}else{r[a-1]+="(?:\\/|\\/"+s+"\\/)"+r[a+1];r[a+1]=u}}));return r.filter((r=>r!==u)).join("/")})).join("|");l="^(?:"+l+")$";if(this.negate)l="^(?!"+l+").*$";try{this.regexp=new RegExp(l,a)}catch(r){this.regexp=false}return this.regexp}match(r,n=this.partial){this.debug("match",r,this.pattern);if(this.comment)return false;if(this.empty)return r==="";if(r==="/"&&n)return true;const s=this.options;if(l.sep!=="/"){r=r.split(l.sep).join("/")}r=r.split(w);this.debug(this.pattern,"split",r);const a=this.set;this.debug(this.pattern,"set",a);let u;for(let n=r.length-1;n>=0;n--){u=r[n];if(u)break}for(let l=0;l{function reusify(r){var n=new r;var s=n;function get(){var a=n;if(a.next){n=a.next}else{n=new r;s=n}a.next=null;return a}function release(r){s.next=r;s=r}return{get:get,release:release}}r.exports=reusify},22743:(r,n,s)=>{ /*! run-parallel. MIT License. Feross Aboukhadijeh */ -r.exports=runParallel;const a=s(90033);function runParallel(r,n){let s,l,u;let d=true;if(Array.isArray(r)){s=[];l=r.length}else{u=Object.keys(r);s={};l=u.length}function done(r){function end(){if(n)n(r,s);n=null}if(d)a(end);else end()}function each(r,n,a){s[r]=a;if(--l===0||n){done(n)}}if(!l){done(null)}else if(u){u.forEach((function(n){r[n]((function(r,s){each(n,r,s)}))}))}else{r.forEach((function(r,n){r((function(r,s){each(n,r,s)}))}))}d=false}},79253:(r,n,s)=>{var a=s(20181);var l=a.Buffer;function copyProps(r,n){for(var s in r){n[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,n);n.Buffer=SafeBuffer}function SafeBuffer(r,n,s){return l(r,n,s)}copyProps(l,SafeBuffer);SafeBuffer.from=function(r,n,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,n,s)};SafeBuffer.alloc=function(r,n,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(n!==undefined){if(typeof s==="string"){a.fill(n,s)}else{a.fill(n)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},65249:(r,n,s)=>{ +r.exports=runParallel;const a=s(74351);function runParallel(r,n){let s,l,u;let d=true;if(Array.isArray(r)){s=[];l=r.length}else{u=Object.keys(r);s={};l=u.length}function done(r){function end(){if(n)n(r,s);n=null}if(d)a(end);else end()}function each(r,n,a){s[r]=a;if(--l===0||n){done(n)}}if(!l){done(null)}else if(u){u.forEach((function(n){r[n]((function(r,s){each(n,r,s)}))}))}else{r.forEach((function(r,n){r((function(r,s){each(n,r,s)}))}))}d=false}},93058:(r,n,s)=>{ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -var a=s(20181);var l=a.Buffer;function copyProps(r,n){for(var s in r){n[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,n);n.Buffer=SafeBuffer}function SafeBuffer(r,n,s){return l(r,n,s)}SafeBuffer.prototype=Object.create(l.prototype);copyProps(l,SafeBuffer);SafeBuffer.from=function(r,n,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,n,s)};SafeBuffer.alloc=function(r,n,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(n!==undefined){if(typeof s==="string"){a.fill(n,s)}else{a.fill(n)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},64205:(r,n,s)=>{const a=s(17600);r.exports=(r="")=>{const n=r.match(a);if(!n){return null}const[s,l]=n[0].replace(/#! ?/,"").split(" ");const u=s.split("/").pop();if(u==="env"){return l}return l?`${u} ${l}`:u}},17600:r=>{r.exports=/^#!(.*)/},10634:(r,n,s)=>{const{EventEmitter:a}=s(19366);const l=new Error("Stream was destroyed");const u=new Error("Premature close");const d=s(19597);const A=s(45795);const p=typeof queueMicrotask==="undefined"?r=>global.process.nextTick(r):queueMicrotask;const f=(1<<29)-1;const g=1;const y=2;const b=4;const C=8;const w=f^g;const B=f^y;const I=1<<4;const S=2<<4;const Q=4<<4;const v=8<<4;const R=16<<4;const D=32<<4;const N=64<<4;const T=128<<4;const x=256<<4;const k=512<<4;const _=1024<<4;const P=2048<<4;const F=4096<<4;const L=8192<<4;const O=R|D;const M=I|F;const U=Q|I;const H=x|v;const G=R|L;const z=f^I;const q=f^Q;const V=f^(Q|F);const W=f^F;const j=f^R;const Y=f^(v|k);const J=f^N;const $=f^O;const K=f^P;const X=f^S;const Z=f^L;const ee=f^G;const te=1<<18;const re=2<<18;const ne=4<<18;const se=8<<18;const ie=16<<18;const oe=32<<18;const ae=64<<18;const le=128<<18;const ce=256<<18;const ue=512<<18;const de=1024<<18;const Ae=f^(te|ce);const pe=f^ne;const fe=f^(te|ue);const he=f^ie;const me=f^se;const ge=f^le;const ye=f^re;const Ee=f^de;const be=I|te;const Ce=f^be;const we=_|oe;const Be=b|C|y;const Ie=Be|g;const Se=Be|we;const Qe=pe&q;const ve=le|P;const Re=ve&Ce;const De=Ie|Re;const Ne=Ie|N|_;const Te=Ie|_|v;const xe=Ie|N|v;const ke=Ie|x|v|k;const _e=Ie|I|N|_|F|L;const Pe=Be|N|_;const Fe=S|Ie|P|Q;const Le=P|g;const Oe=Ie|ue|oe;const Me=se|ie;const Ue=se|te;const He=se|ie|Ie|te;const Ge=Ie|te|se|de;const ze=ne|te;const qe=te|ce;const Ve=Ie|ue|Ue|oe;const We=ie|Be|ue|oe;const je=re|Ie|le|ne;const Ye=ue|oe|Be;const Je=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:n=16384,map:s=null,mapWritable:a,byteLength:l,byteLengthWritable:u}={}){this.stream=r;this.queue=new d;this.highWaterMark=n;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=u||l||defaultByteLength;this.map=a||s;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&oe)!==0}push(r){if((this.stream._duplexState&Ye)!==0)return false;if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered0;this.error=null;this.pipeline=null;this.byteLength=u||l||defaultByteLength;this.map=a||s;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&_)!==0}pipe(r,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!=="function")n=null;this.stream._duplexState|=D;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,n);if(n)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(n)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const n=this.pipeline.done.bind(this.pipeline,r);const s=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",n);r.on("close",s);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const n=this.stream;if(r===null){this.highWaterMark=0;n._duplexState=(n._duplexState|N)&V;return false}if(this.map!==null){r=this.map(r);if(r===null){n._duplexState&=W;return this.buffered0)n.push(this.shift());for(let r=0;r0)a.drains.shift().resolve(false);if(a.pipeline!==null)a.pipeline.done(n,r)}}function afterWrite(r){const n=this.stream;if(r)n.destroy(r);n._duplexState&=Ae;if(this.drains!==null)tickDrains(this.drains);if((n._duplexState&He)===ie){n._duplexState&=he;if((n._duplexState&ae)===ae){n.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=z;if(this.readAhead===false&&(this.stream._duplexState&R)===0)this.stream._duplexState&=Z;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&S)===0){this.stream._duplexState&=K;this.update()}}function updateWriteNT(){if((this.stream._duplexState&re)===0){this.stream._duplexState&=ge;this.update()}}function tickDrains(r){for(let n=0;n0)?null:s(a)}}_read(r){r(null)}pipe(r,n){this._readableState.updateNextTick();this._readableState.pipe(r,n);return r}read(){this._readableState.updateNextTick();return this._readableState.read()}push(r){this._readableState.updateNextTickIfOpen();return this._readableState.push(r)}unshift(r){this._readableState.updateNextTickIfOpen();return this._readableState.unshift(r)}resume(){this._duplexState|=G;this._readableState.updateNextTick();return this}pause(){this._duplexState&=this._readableState.readAhead===false?ee:j;return this}static _fromAsyncIterator(r,n){let s;const a=new Readable({...n,read(n){r.next().then(push).then(n.bind(null,null)).catch(n)},predestroy(){s=r.return()},destroy(r){if(!s)return r(null);s.then(r.bind(null,null)).catch(r)}});return a;function push(r){if(r.done)a.push(null);else a.push(r.value)}}static from(r,n){if(isReadStreamx(r))return r;if(r[Je])return this._fromAsyncIterator(r[Je](),n);if(!Array.isArray(r))r=r===undefined?[]:[r];let s=0;return new Readable({...n,read(n){this.push(s===r.length?null:r[s++]);n(null)}})}static isBackpressured(r){return(r._duplexState&Pe)!==0||r._readableState.buffered>=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&R)===0}[Je](){const r=this;let n=null;let s=null;let a=null;this.on("error",(r=>{n=r}));this.on("readable",onreadable);this.on("close",onclose);return{[Je](){return this},next(){return new Promise((function(n,l){s=n;a=l;const u=r.read();if(u!==null)ondata(u);else if((r._duplexState&C)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(s!==null)ondata(r.read())}function onclose(){if(s!==null)ondata(null)}function ondata(u){if(a===null)return;if(n)a(n);else if(u===null&&(r._duplexState&_)===0)a(l);else s({value:u,done:u===null});a=s=null}function destroy(n){r.destroy(n);return new Promise(((s,a)=>{if(r._duplexState&C)return s({value:undefined,done:true});r.once("close",(function(){if(n)a(n);else s({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=g|_;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&We)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const n=r._writableState;const s=isWritev(r)?Math.min(1,n.queue.length):n.queue.length;const a=s+(r._duplexState&ce?1:0);if(a===0)return Promise.resolve(true);if(n.drains===null)n.drains=[];return new Promise((r=>{n.drains.push({writes:a,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=g|this._duplexState&L;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,n){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const n=this._transformState.data;this._transformState.data=null;r(null);this._transform(n,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,n){n(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,n){const s=this._transformState.afterFinal;if(r)return s(r);if(n!==null&&n!==undefined)this.push(n);this.push(null);s(null)}function pipelinePromise(...r){return new Promise(((n,s)=>pipeline(...r,(r=>{if(r)return s(r);n()}))))}function pipeline(r,...n){const s=Array.isArray(r)?[...r,...n]:[r,...n];const a=s.length&&typeof s[s.length-1]==="function"?s.pop():null;if(s.length<2)throw new Error("Pipeline requires at least 2 streams");let l=s[0];let d=null;let A=null;for(let r=1;r1,onerror);l.pipe(d)}l=d}if(a){let r=false;const n=isStreamx(d)||!!(d._writableState&&d._writableState.autoDestroy);d.on("error",(r=>{if(A===null)A=r}));d.on("finish",(()=>{r=true;if(!n)a(A)}));if(n){d.on("close",(()=>a(A||(r?null:u))))}}return d;function errorHandle(r,n,s,a){r.on("error",a);r.on("close",onclose);function onclose(){if(n&&r._readableState&&!r._readableState.ended)return a(u);if(s&&r._writableState&&!r._writableState.ended)return a(u)}}function onerror(r){if(!r||A)return;A=r;for(const n of s){n.destroy(r)}}}function echo(r){return r}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function isEnded(r){return!!r._readableState&&r._readableState.ended}function isFinished(r){return!!r._writableState&&r._writableState.ended}function getStreamError(r,n={}){const s=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return!n.all&&s===l?null:s}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isDisturbed(r){return(r._duplexState&g)!==g||(r._duplexState&ve)!==0}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,isEnded:isEnded,isFinished:isFinished,isDisturbed:isDisturbed,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},8112:(r,n,s)=>{var a=s(79253).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.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 true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var n;while(true){switch(r){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 r;default:if(n)return;r=(""+r).toLowerCase();n=true}}}function normalizeEncoding(r){var n=_normalizeEncoding(r);if(typeof n!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return n||r}n.I=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(n)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var n;var s;if(this.lastNeed){n=this.fillLast(r);if(n===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,n,s){var a=n.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,n,s){if((n[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&n.length>1){if((n[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&n.length>2){if((n[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var n=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,n);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,n,0,r.length);this.lastNeed-=r.length}function utf8Text(r,n){var s=utf8CheckIncomplete(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",n,a)}function utf8End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+"�";return n}function utf16Text(r,n){if((r.length-n)%2===0){var s=r.toString("utf16le",n);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",n,r.length-1)}function utf16End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function base64Text(r,n){var s=(r.length-n)%3;if(s===0)return r.toString("base64",n);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",n,r.length-s)}function base64End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+this.lastChar.toString("base64",0,3-this.lastNeed);return n}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},93243:(r,n,s)=>{var a=s(65249).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.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 true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var n;while(true){switch(r){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 r;default:if(n)return;r=(""+r).toLowerCase();n=true}}}function normalizeEncoding(r){var n=_normalizeEncoding(r);if(typeof n!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return n||r}n.StringDecoder=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(n)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var n;var s;if(this.lastNeed){n=this.fillLast(r);if(n===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,n,s){var a=n.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,n,s){if((n[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&n.length>1){if((n[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&n.length>2){if((n[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var n=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,n);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,n,0,r.length);this.lastNeed-=r.length}function utf8Text(r,n){var s=utf8CheckIncomplete(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",n,a)}function utf8End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+"�";return n}function utf16Text(r,n){if((r.length-n)%2===0){var s=r.toString("utf16le",n);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",n,r.length-1)}function utf16End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function base64Text(r,n){var s=(r.length-n)%3;if(s===0)return r.toString("base64",n);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",n,r.length-s)}function base64End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+this.lastChar.toString("base64",0,3-this.lastNeed);return n}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},7624:(r,n,s)=>{const a={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=s(79896).constants||a}catch{r.exports=a}},93700:(r,n,s)=>{const{Writable:a,Readable:l,getStreamError:u}=s(10634);const d=s(19597);const A=s(79988);const p=s(40407);const f=A.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new d;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return f;let n=this._next(r);if(r===n.byteLength)return n;const s=[n];while((r-=n.byteLength)>0){n=this._next(r);s.push(n)}return A.concat(s)}_next(r){const n=this.queue.peek();const s=n.byteLength-this._offset;if(r>=s){const r=this._offset?n.subarray(this._offset,n.byteLength):n;this.queue.shift();this._offset=0;this.buffered-=s;this.shifted+=s;return r}this.buffered-=r;this.shifted+=r;return n.subarray(this._offset,this._offset+=r)}}class Source extends l{constructor(r,n,s){super();this.header=n;this.offset=s;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(u(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends a{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=p.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=p.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=p.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=p.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?p.decodePax(r):Object.assign({},this._paxGlobal,p.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const n=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(n)this._stream._detach();return n&&this._locked===false}return n}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const n=this._callback;this._callback=noop;n(r)}_write(r,n){this._callback=n;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(u(this));r(null)}[Symbol.asyncIterator](){let r=null;let n=null;let s=null;let a=null;let l=null;const u=this;this.on("entry",onentry);this.on("error",(n=>{r=n}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!l)return;const n=l;l=null;n(r)}function onnext(l,d){if(r){return d(r)}if(a){l({value:a,done:false});a=null;return}n=l;s=d;consumeCallback(null);if(u._finished&&n){n({value:undefined,done:true});n=s=null}}function onentry(r,u,d){l=d;u.on("error",noop);if(n){n({value:u,done:false});n=s=null}else{a=u}}function onclose(){consumeCallback(r);if(!n)return;if(r)s(r);else n({value:undefined,done:true});n=s=null}function destroy(r){u.destroy(r);consumeCallback(r);return new Promise(((n,s)=>{if(u.destroyed)return n({value:undefined,done:true});u.once("close",(function(){if(r)s(r);else n({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},40407:(r,n,s)=>{const a=s(79988);const l="0000000000000000000";const u="7777777777777777777";const d="0".charCodeAt(0);const A=a.from([117,115,116,97,114,0]);const p=a.from([d,d]);const f=a.from([117,115,116,97,114,32]);const g=a.from([32,0]);const y=4095;const b=257;const C=263;n.decodeLongPath=function decodeLongPath(r,n){return decodeStr(r,0,r.length,n)};n.encodePax=function encodePax(r){let n="";if(r.name)n+=addLength(" path="+r.name+"\n");if(r.linkname)n+=addLength(" linkpath="+r.linkname+"\n");const s=r.pax;if(s){for(const r in s){n+=addLength(" "+r+"="+s[r]+"\n")}}return a.from(n)};n.decodePax=function decodePax(r){const n={};while(r.length){let s=0;while(s100){const r=s.indexOf("/");if(r===-1)return null;l+=l?"/"+s.slice(0,r):s.slice(0,r);s=s.slice(r+1)}if(a.byteLength(s)>100||a.byteLength(l)>155)return null;if(r.linkname&&a.byteLength(r.linkname)>100)return null;a.write(n,s);a.write(n,encodeOct(r.mode&y,6),100);a.write(n,encodeOct(r.uid,6),108);a.write(n,encodeOct(r.gid,6),116);encodeSize(r.size,n,124);a.write(n,encodeOct(r.mtime.getTime()/1e3|0,11),136);n[156]=d+toTypeflag(r.type);if(r.linkname)a.write(n,r.linkname,157);a.copy(A,n,b);a.copy(p,n,C);if(r.uname)a.write(n,r.uname,265);if(r.gname)a.write(n,r.gname,297);a.write(n,encodeOct(r.devmajor||0,6),329);a.write(n,encodeOct(r.devminor||0,6),337);if(l)a.write(n,l,345);a.write(n,encodeOct(cksum(n),6),148);return n};n.decode=function decode(r,n,s){let a=r[156]===0?0:r[156]-d;let l=decodeStr(r,0,100,n);const u=decodeOct(r,100,8);const A=decodeOct(r,108,8);const p=decodeOct(r,116,8);const f=decodeOct(r,124,12);const g=decodeOct(r,136,12);const y=toType(a);const b=r[157]===0?null:decodeStr(r,157,100,n);const C=decodeStr(r,265,32);const w=decodeStr(r,297,32);const B=decodeOct(r,329,8);const I=decodeOct(r,337,8);const S=cksum(r);if(S===8*32)return null;if(S!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])l=decodeStr(r,345,155,n)+"/"+l}else if(isGNU(r)){}else{if(!s){throw new Error("Invalid tar header: unknown format.")}}if(a===0&&l&&l[l.length-1]==="/")a=5;return{name:l,mode:u,uid:A,gid:p,size:f,mtime:new Date(1e3*g),type:y,linkname:b,uname:C,gname:w,devmajor:B,devminor:I,pax:null}};function isUSTAR(r){return a.equals(A,r.subarray(b,b+6))}function isGNU(r){return a.equals(f,r.subarray(b,b+6))&&a.equals(g,r.subarray(C,C+2))}function clamp(r,n,s){if(typeof r!=="number")return s;r=~~r;if(r>=n)return n;if(r>=0)return r;r+=n;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,n,s,a){for(;sn)return u.slice(0,n)+" ";return l.slice(0,n-r.length)+r+" "}function encodeSizeBin(r,n,s){n[s]=128;for(let a=11;a>0;a--){n[s+a]=r&255;r=Math.floor(r/256)}}function encodeSize(r,n,s){if(r.toString(8).length>11){encodeSizeBin(r,n,s)}else{a.write(n,encodeOct(r,11),s)}}function parse256(r){let n;if(r[0]===128)n=true;else if(r[0]===255)n=false;else return null;const s=[];let a;for(a=r.length-1;a>0;a--){const l=r[a];if(n)s.push(l);else s.push(255-l)}let l=0;const u=s.length;for(a=0;a=Math.pow(10,s))s++;return n+s+r}},93761:(r,n,s)=>{n.extract=s(93700);n.pack=s(41504)},41504:(r,n,s)=>{const{Readable:a,Writable:l,getStreamError:u}=s(10634);const d=s(79988);const A=s(7624);const p=s(40407);const f=493;const g=420;const y=d.alloc(1024);class Sink extends l{constructor(r,n,s){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=n;this._callback=s;this._linkname=null;this._isLinkname=n.type==="symlink"&&!n.linkname;this._isVoid=n.type!=="file"&&n.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const n=this._callback;this._callback=null;n(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,n){if(this._isLinkname){this._linkname=this._linkname?d.concat([this._linkname,r]):r;return n(null)}if(this._isVoid){if(r.byteLength>0){return n(new Error("No body allowed for this entry"))}return n()}this.written+=r.byteLength;if(this._pack.push(r))return n();this._pack._drain=n}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?d.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return u(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends a{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,n,s){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof n==="function"){s=n;n=null}if(!s)s=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?f:g;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof n==="string")n=d.from(n);const a=new Sink(this,r,s);if(d.isBuffer(n)){r.size=n.byteLength;a.write(n);a.end();return a}if(a._isVoid){return a}return a}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(y);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const n=p.encode(r);if(n){this.push(n);return}}this._encodePax(r)}_encodePax(r){const n=p.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const s={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:n.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(p.encode(s));this.push(n);overflow(this,n.byteLength);s.size=r.size;s.type=r.type;this.push(p.encode(s))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=u(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const n=this._pending.shift();n.destroy(r);n._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&A.S_IFMT){case A.S_IFBLK:return"block-device";case A.S_IFCHR:return"character-device";case A.S_IFDIR:return"directory";case A.S_IFIFO:return"fifo";case A.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,n){n&=511;if(n)r.push(y.subarray(0,512-n))}function mapWritable(r){return d.isBuffer(r)?r:d.from(r)}},45795:(r,n,s)=>{const a=s(38983);const l=s(77457);r.exports=class TextDecoder{constructor(r="utf8"){this.encoding=normalizeEncoding(r);switch(this.encoding){case"utf8":this.decoder=new l;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new a(this.encoding)}}get remaining(){return this.decoder.remaining}push(r){if(typeof r==="string")return r;return this.decoder.decode(r)}write(r){return this.push(r)}end(r){let n="";if(r)n=this.push(r);n+=this.decoder.flush();return n}};function normalizeEncoding(r){r=r.toLowerCase();switch(r){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 r;default:throw new Error("Unknown encoding: "+r)}}},38983:(r,n,s)=>{const a=s(79988);r.exports=class PassThroughDecoder{constructor(r){this.encoding=r}get remaining(){return 0}decode(r){return a.toString(r,this.encoding)}flush(){return""}}},77457:(r,n,s)=>{const a=s(79988);r.exports=class UTF8Decoder{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(r){if(r.byteLength===0)return"";if(this.bytesNeeded===0&&trailingIncomplete(r,0)===0){this.bytesSeen=trailingBytesSeen(r);return a.toString(r,"utf8")}let n="";let s=0;if(this.bytesNeeded>0){while(sthis.upperBoundary){n+="�";this._reset();break}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|a&63;this.bytesSeen++;s++;if(this.bytesSeen===this.bytesNeeded){n+=String.fromCodePoint(this.codePoint);this._reset();break}}if(this.bytesNeeded>0)return n}const l=trailingIncomplete(r,s);const u=r.byteLength-l;if(u>s)n+=a.toString(r,"utf8",s,u);for(let s=u;s=194&&a<=223){this.bytesNeeded=2;this.bytesSeen=1;this.codePoint=a&31}else if(a>=224&&a<=239){if(a===224)this.lowerBoundary=160;else if(a===237)this.upperBoundary=159;this.bytesNeeded=3;this.bytesSeen=1;this.codePoint=a&15}else if(a>=240&&a<=244){if(a===240)this.lowerBoundary=144;else if(a===244)this.upperBoundary=143;this.bytesNeeded=4;this.bytesSeen=1;this.codePoint=a&7}else{this.bytesSeen=1;n+="�"}continue}if(athis.upperBoundary){n+="�";s--;this._reset();continue}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|a&63;this.bytesSeen++;if(this.bytesSeen===this.bytesNeeded){n+=String.fromCodePoint(this.codePoint);this._reset()}}return n}flush(){const r=this.bytesNeeded>0?"�":"";this._reset();return r}_reset(){this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191}};function trailingIncomplete(r,n){const s=r.byteLength;if(s<=n)return 0;const a=Math.max(n,s-4);let l=s-1;while(l>a&&(r[l]&192)===128)l--;if(l=194&&u<=223)d=2;else if(u>=224&&u<=239)d=3;else if(u>=240&&u<=244)d=4;else return 0;const A=s-l;return A=a&&(r[l]&192)===128)l--;if(l<0)return 1;const u=r[l];let d;if(u>=194&&u<=223)d=2;else if(u>=224&&u<=239)d=3;else if(u>=240&&u<=244)d=4;else return 1;if(n-l!==d)return 1;if(d>=3){const n=r[l+1];if(u===224&&n<160)return 1;if(u===237&&n>159)return 1;if(u===240&&n<144)return 1;if(u===244&&n>143)return 1}return 0}},29947:(r,n,s)=>{ +var a=s(20181);var l=a.Buffer;function copyProps(r,n){for(var s in r){n[s]=r[s]}}if(l.from&&l.alloc&&l.allocUnsafe&&l.allocUnsafeSlow){r.exports=a}else{copyProps(a,n);n.Buffer=SafeBuffer}function SafeBuffer(r,n,s){return l(r,n,s)}SafeBuffer.prototype=Object.create(l.prototype);copyProps(l,SafeBuffer);SafeBuffer.from=function(r,n,s){if(typeof r==="number"){throw new TypeError("Argument must not be a number")}return l(r,n,s)};SafeBuffer.alloc=function(r,n,s){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}var a=l(r);if(n!==undefined){if(typeof s==="string"){a.fill(n,s)}else{a.fill(n)}}else{a.fill(0)}return a};SafeBuffer.allocUnsafe=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return l(r)};SafeBuffer.allocUnsafeSlow=function(r){if(typeof r!=="number"){throw new TypeError("Argument must be a number")}return a.SlowBuffer(r)}},79152:(r,n,s)=>{const a=s(77334);r.exports=(r="")=>{const n=r.match(a);if(!n){return null}const[s,l]=n[0].replace(/#! ?/,"").split(" ");const u=s.split("/").pop();if(u==="env"){return l}return l?`${u} ${l}`:u}},77334:r=>{r.exports=/^#!(.*)/},36204:(r,n,s)=>{const{EventEmitter:a}=s(29580);const l=new Error("Stream was destroyed");const u=new Error("Premature close");const d=s(83867);const A=s(97934);const p=typeof queueMicrotask==="undefined"?r=>global.process.nextTick(r):queueMicrotask;const f=(1<<29)-1;const g=1;const y=2;const b=4;const C=8;const w=f^g;const B=f^y;const I=1<<4;const S=2<<4;const Q=4<<4;const v=8<<4;const R=16<<4;const N=32<<4;const x=64<<4;const D=128<<4;const T=256<<4;const k=512<<4;const _=1024<<4;const P=2048<<4;const F=4096<<4;const L=8192<<4;const O=R|N;const M=I|F;const U=Q|I;const H=T|v;const G=R|L;const z=f^I;const q=f^Q;const V=f^(Q|F);const j=f^F;const W=f^R;const Y=f^(v|k);const J=f^x;const $=f^O;const K=f^P;const X=f^S;const Z=f^L;const ee=f^G;const te=1<<18;const re=2<<18;const ne=4<<18;const se=8<<18;const ie=16<<18;const oe=32<<18;const ae=64<<18;const le=128<<18;const ce=256<<18;const ue=512<<18;const de=1024<<18;const Ae=f^(te|ce);const pe=f^ne;const fe=f^(te|ue);const he=f^ie;const me=f^se;const ge=f^le;const ye=f^re;const Ee=f^de;const be=I|te;const Ce=f^be;const we=_|oe;const Be=b|C|y;const Ie=Be|g;const Se=Be|we;const Qe=pe&q;const ve=le|P;const Re=ve&Ce;const Ne=Ie|Re;const xe=Ie|x|_;const De=Ie|_|v;const Te=Ie|x|v;const ke=Ie|T|v|k;const _e=Ie|I|x|_|F|L;const Pe=Be|x|_;const Fe=S|Ie|P|Q;const Le=P|g;const Oe=Ie|ue|oe;const Me=se|ie;const Ue=se|te;const He=se|ie|Ie|te;const Ge=Ie|te|se|de;const ze=ne|te;const qe=te|ce;const Ve=Ie|ue|Ue|oe;const je=ie|Be|ue|oe;const We=re|Ie|le|ne;const Ye=ue|oe|Be;const Je=Symbol.asyncIterator||Symbol("asyncIterator");class WritableState{constructor(r,{highWaterMark:n=16384,map:s=null,mapWritable:a,byteLength:l,byteLengthWritable:u}={}){this.stream=r;this.queue=new d;this.highWaterMark=n;this.buffered=0;this.error=null;this.pipeline=null;this.drains=null;this.byteLength=u||l||defaultByteLength;this.map=a||s;this.afterWrite=afterWrite.bind(this);this.afterUpdateNextTick=updateWriteNT.bind(this)}get ended(){return(this.stream._duplexState&oe)!==0}push(r){if((this.stream._duplexState&Ye)!==0)return false;if(this.map!==null)r=this.map(r);this.buffered+=this.byteLength(r);this.queue.push(r);if(this.buffered0;this.error=null;this.pipeline=null;this.byteLength=u||l||defaultByteLength;this.map=a||s;this.pipeTo=null;this.afterRead=afterRead.bind(this);this.afterUpdateNextTick=updateReadNT.bind(this)}get ended(){return(this.stream._duplexState&_)!==0}pipe(r,n){if(this.pipeTo!==null)throw new Error("Can only pipe to one destination");if(typeof n!=="function")n=null;this.stream._duplexState|=N;this.pipeTo=r;this.pipeline=new Pipeline(this.stream,r,n);if(n)this.stream.on("error",noop);if(isStreamx(r)){r._writableState.pipeline=this.pipeline;if(n)r.on("error",noop);r.on("finish",this.pipeline.finished.bind(this.pipeline))}else{const n=this.pipeline.done.bind(this.pipeline,r);const s=this.pipeline.done.bind(this.pipeline,r,null);r.on("error",n);r.on("close",s);r.on("finish",this.pipeline.finished.bind(this.pipeline))}r.on("drain",afterDrain.bind(this));this.stream.emit("piping",r);r.emit("pipe",this.stream)}push(r){const n=this.stream;if(r===null){this.highWaterMark=0;n._duplexState=(n._duplexState|x)&V;return false}if(this.map!==null){r=this.map(r);if(r===null){n._duplexState&=j;return this.buffered0)n.push(this.shift());for(let r=0;r0)a.drains.shift().resolve(false);if(a.pipeline!==null)a.pipeline.done(n,r)}}function afterWrite(r){const n=this.stream;if(r)n.destroy(r);n._duplexState&=Ae;if(this.drains!==null)tickDrains(this.drains);if((n._duplexState&He)===ie){n._duplexState&=he;if((n._duplexState&ae)===ae){n.emit("drain")}}this.updateCallback()}function afterRead(r){if(r)this.stream.destroy(r);this.stream._duplexState&=z;if(this.readAhead===false&&(this.stream._duplexState&R)===0)this.stream._duplexState&=Z;this.updateCallback()}function updateReadNT(){if((this.stream._duplexState&S)===0){this.stream._duplexState&=K;this.update()}}function updateWriteNT(){if((this.stream._duplexState&re)===0){this.stream._duplexState&=ge;this.update()}}function tickDrains(r){for(let n=0;n0)?null:s(a)}}_read(r){r(null)}pipe(r,n){this._readableState.updateNextTick();this._readableState.pipe(r,n);return r}read(){this._readableState.updateNextTick();return this._readableState.read()}push(r){this._readableState.updateNextTickIfOpen();return this._readableState.push(r)}unshift(r){this._readableState.updateNextTickIfOpen();return this._readableState.unshift(r)}resume(){this._duplexState|=G;this._readableState.updateNextTick();return this}pause(){this._duplexState&=this._readableState.readAhead===false?ee:W;return this}static _fromAsyncIterator(r,n){let s;const a=new Readable({...n,read(n){r.next().then(push).then(n.bind(null,null)).catch(n)},predestroy(){s=r.return()},destroy(r){if(!s)return r(null);s.then(r.bind(null,null)).catch(r)}});return a;function push(r){if(r.done)a.push(null);else a.push(r.value)}}static from(r,n){if(isReadStreamx(r))return r;if(r[Je])return this._fromAsyncIterator(r[Je](),n);if(!Array.isArray(r))r=r===undefined?[]:[r];let s=0;return new Readable({...n,read(n){this.push(s===r.length?null:r[s++]);n(null)}})}static isBackpressured(r){return(r._duplexState&Pe)!==0||r._readableState.buffered>=r._readableState.highWaterMark}static isPaused(r){return(r._duplexState&R)===0}[Je](){const r=this;let n=null;let s=null;let a=null;this.on("error",(r=>{n=r}));this.on("readable",onreadable);this.on("close",onclose);return{[Je](){return this},next(){return new Promise((function(n,l){s=n;a=l;const u=r.read();if(u!==null)ondata(u);else if((r._duplexState&C)!==0)ondata(null)}))},return(){return destroy(null)},throw(r){return destroy(r)}};function onreadable(){if(s!==null)ondata(r.read())}function onclose(){if(s!==null)ondata(null)}function ondata(u){if(a===null)return;if(n)a(n);else if(u===null&&(r._duplexState&_)===0)a(l);else s({value:u,done:u===null});a=s=null}function destroy(n){r.destroy(n);return new Promise(((s,a)=>{if(r._duplexState&C)return s({value:undefined,done:true});r.once("close",(function(){if(n)a(n);else s({value:undefined,done:true})}))}))}}}class Writable extends Stream{constructor(r){super(r);this._duplexState|=g|_;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final;if(r.eagerOpen)this._writableState.updateNextTick()}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}static isBackpressured(r){return(r._duplexState&je)!==0}static drained(r){if(r.destroyed)return Promise.resolve(false);const n=r._writableState;const s=isWritev(r)?Math.min(1,n.queue.length):n.queue.length;const a=s+(r._duplexState&ce?1:0);if(a===0)return Promise.resolve(true);if(n.drains===null)n.drains=[];return new Promise((r=>{n.drains.push({writes:a,resolve:r})}))}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Duplex extends Readable{constructor(r){super(r);this._duplexState=g|this._duplexState&L;this._writableState=new WritableState(this,r);if(r){if(r.writev)this._writev=r.writev;if(r.write)this._write=r.write;if(r.final)this._final=r.final}}cork(){this._duplexState|=de}uncork(){this._duplexState&=Ee;this._writableState.updateNextTick()}_writev(r,n){n(null)}_write(r,n){this._writableState.autoBatch(r,n)}_final(r){r(null)}write(r){this._writableState.updateNextTick();return this._writableState.push(r)}end(r){this._writableState.updateNextTick();this._writableState.end(r);return this}}class Transform extends Duplex{constructor(r){super(r);this._transformState=new TransformState(this);if(r){if(r.transform)this._transform=r.transform;if(r.flush)this._flush=r.flush}}_write(r,n){if(this._readableState.buffered>=this._readableState.highWaterMark){this._transformState.data=r}else{this._transform(r,this._transformState.afterTransform)}}_read(r){if(this._transformState.data!==null){const n=this._transformState.data;this._transformState.data=null;r(null);this._transform(n,this._transformState.afterTransform)}else{r(null)}}destroy(r){super.destroy(r);if(this._transformState.data!==null){this._transformState.data=null;this._transformState.afterTransform()}}_transform(r,n){n(null,r)}_flush(r){r(null)}_final(r){this._transformState.afterFinal=r;this._flush(transformAfterFlush.bind(this))}}class PassThrough extends Transform{}function transformAfterFlush(r,n){const s=this._transformState.afterFinal;if(r)return s(r);if(n!==null&&n!==undefined)this.push(n);this.push(null);s(null)}function pipelinePromise(...r){return new Promise(((n,s)=>pipeline(...r,(r=>{if(r)return s(r);n()}))))}function pipeline(r,...n){const s=Array.isArray(r)?[...r,...n]:[r,...n];const a=s.length&&typeof s[s.length-1]==="function"?s.pop():null;if(s.length<2)throw new Error("Pipeline requires at least 2 streams");let l=s[0];let d=null;let A=null;for(let r=1;r1,onerror);l.pipe(d)}l=d}if(a){let r=false;const n=isStreamx(d)||!!(d._writableState&&d._writableState.autoDestroy);d.on("error",(r=>{if(A===null)A=r}));d.on("finish",(()=>{r=true;if(!n)a(A)}));if(n){d.on("close",(()=>a(A||(r?null:u))))}}return d;function errorHandle(r,n,s,a){r.on("error",a);r.on("close",onclose);function onclose(){if(n&&r._readableState&&!r._readableState.ended)return a(u);if(s&&r._writableState&&!r._writableState.ended)return a(u)}}function onerror(r){if(!r||A)return;A=r;for(const n of s){n.destroy(r)}}}function echo(r){return r}function isStream(r){return!!r._readableState||!!r._writableState}function isStreamx(r){return typeof r._duplexState==="number"&&isStream(r)}function isEnded(r){return!!r._readableState&&r._readableState.ended}function isFinished(r){return!!r._writableState&&r._writableState.ended}function getStreamError(r,n={}){const s=r._readableState&&r._readableState.error||r._writableState&&r._writableState.error;return!n.all&&s===l?null:s}function isReadStreamx(r){return isStreamx(r)&&r.readable}function isDisturbed(r){return(r._duplexState&g)!==g||(r._duplexState&ve)!==0}function isTypedArray(r){return typeof r==="object"&&r!==null&&typeof r.byteLength==="number"}function defaultByteLength(r){return isTypedArray(r)?r.byteLength:1024}function noop(){}function abort(){this.destroy(new Error("Stream aborted."))}function isWritev(r){return r._writev!==Writable.prototype._writev&&r._writev!==Duplex.prototype._writev}r.exports={pipeline:pipeline,pipelinePromise:pipelinePromise,isStream:isStream,isStreamx:isStreamx,isEnded:isEnded,isFinished:isFinished,isDisturbed:isDisturbed,getStreamError:getStreamError,Stream:Stream,Writable:Writable,Readable:Readable,Duplex:Duplex,Transform:Transform,PassThrough:PassThrough}},80634:(r,n,s)=>{var a=s(93058).Buffer;var l=a.isEncoding||function(r){r=""+r;switch(r&&r.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 true;default:return false}};function _normalizeEncoding(r){if(!r)return"utf8";var n;while(true){switch(r){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 r;default:if(n)return;r=(""+r).toLowerCase();n=true}}}function normalizeEncoding(r){var n=_normalizeEncoding(r);if(typeof n!=="string"&&(a.isEncoding===l||!l(r)))throw new Error("Unknown encoding: "+r);return n||r}n.StringDecoder=StringDecoder;function StringDecoder(r){this.encoding=normalizeEncoding(r);var n;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;n=4;break;case"utf8":this.fillLast=utf8FillLast;n=4;break;case"base64":this.text=base64Text;this.end=base64End;n=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=a.allocUnsafe(n)}StringDecoder.prototype.write=function(r){if(r.length===0)return"";var n;var s;if(this.lastNeed){n=this.fillLast(r);if(n===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(r>>4===14)return 3;else if(r>>3===30)return 4;return r>>6===2?-1:-2}function utf8CheckIncomplete(r,n,s){var a=n.length-1;if(a=0){if(l>0)r.lastNeed=l-1;return l}if(--a=0){if(l>0)r.lastNeed=l-2;return l}if(--a=0){if(l>0){if(l===2)l=0;else r.lastNeed=l-3}return l}return 0}function utf8CheckExtraBytes(r,n,s){if((n[0]&192)!==128){r.lastNeed=0;return"�"}if(r.lastNeed>1&&n.length>1){if((n[1]&192)!==128){r.lastNeed=1;return"�"}if(r.lastNeed>2&&n.length>2){if((n[2]&192)!==128){r.lastNeed=2;return"�"}}}}function utf8FillLast(r){var n=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,r,n);if(s!==undefined)return s;if(this.lastNeed<=r.length){r.copy(this.lastChar,n,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}r.copy(this.lastChar,n,0,r.length);this.lastNeed-=r.length}function utf8Text(r,n){var s=utf8CheckIncomplete(this,r,n);if(!this.lastNeed)return r.toString("utf8",n);this.lastTotal=s;var a=r.length-(s-this.lastNeed);r.copy(this.lastChar,0,a);return r.toString("utf8",n,a)}function utf8End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+"�";return n}function utf16Text(r,n){if((r.length-n)%2===0){var s=r.toString("utf16le",n);if(s){var a=s.charCodeAt(s.length-1);if(a>=55296&&a<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=r[r.length-1];return r.toString("utf16le",n,r.length-1)}function utf16End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return n+this.lastChar.toString("utf16le",0,s)}return n}function base64Text(r,n){var s=(r.length-n)%3;if(s===0)return r.toString("base64",n);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=r[r.length-1]}else{this.lastChar[0]=r[r.length-2];this.lastChar[1]=r[r.length-1]}return r.toString("base64",n,r.length-s)}function base64End(r){var n=r&&r.length?this.write(r):"";if(this.lastNeed)return n+this.lastChar.toString("base64",0,3-this.lastNeed);return n}function simpleWrite(r){return r.toString(this.encoding)}function simpleEnd(r){return r&&r.length?this.write(r):""}},20775:(r,n,s)=>{const a={S_IFMT:61440,S_IFDIR:16384,S_IFCHR:8192,S_IFBLK:24576,S_IFIFO:4096,S_IFLNK:40960};try{r.exports=s(79896).constants||a}catch{r.exports=a}},35763:(r,n,s)=>{const{Writable:a,Readable:l,getStreamError:u}=s(36204);const d=s(83867);const A=s(73057);const p=s(88428);const f=A.alloc(0);class BufferList{constructor(){this.buffered=0;this.shifted=0;this.queue=new d;this._offset=0}push(r){this.buffered+=r.byteLength;this.queue.push(r)}shiftFirst(r){return this._buffered===0?null:this._next(r)}shift(r){if(r>this.buffered)return null;if(r===0)return f;let n=this._next(r);if(r===n.byteLength)return n;const s=[n];while((r-=n.byteLength)>0){n=this._next(r);s.push(n)}return A.concat(s)}_next(r){const n=this.queue.peek();const s=n.byteLength-this._offset;if(r>=s){const r=this._offset?n.subarray(this._offset,n.byteLength):n;this.queue.shift();this._offset=0;this.buffered-=s;this.shifted+=s;return r}this.buffered-=r;this.shifted+=r;return n.subarray(this._offset,this._offset+=r)}}class Source extends l{constructor(r,n,s){super();this.header=n;this.offset=s;this._parent=r}_read(r){if(this.header.size===0){this.push(null)}if(this._parent._stream===this){this._parent._update()}r(null)}_predestroy(){this._parent.destroy(u(this))}_detach(){if(this._parent._stream===this){this._parent._stream=null;this._parent._missing=overflow(this.header.size);this._parent._update()}}_destroy(r){this._detach();r(null)}}class Extract extends a{constructor(r){super(r);if(!r)r={};this._buffer=new BufferList;this._offset=0;this._header=null;this._stream=null;this._missing=0;this._longHeader=false;this._callback=noop;this._locked=false;this._finished=false;this._pax=null;this._paxGlobal=null;this._gnuLongPath=null;this._gnuLongLinkPath=null;this._filenameEncoding=r.filenameEncoding||"utf-8";this._allowUnknownFormat=!!r.allowUnknownFormat;this._unlockBound=this._unlock.bind(this)}_unlock(r){this._locked=false;if(r){this.destroy(r);this._continueWrite(r);return}this._update()}_consumeHeader(){if(this._locked)return false;this._offset=this._buffer.shifted;try{this._header=p.decode(this._buffer.shift(512),this._filenameEncoding,this._allowUnknownFormat)}catch(r){this._continueWrite(r);return false}if(!this._header)return true;switch(this._header.type){case"gnu-long-path":case"gnu-long-link-path":case"pax-global-header":case"pax-header":this._longHeader=true;this._missing=this._header.size;return true}this._locked=true;this._applyLongHeaders();if(this._header.size===0||this._header.type==="directory"){this.emit("entry",this._header,this._createStream(),this._unlockBound);return true}this._stream=this._createStream();this._missing=this._header.size;this.emit("entry",this._header,this._stream,this._unlockBound);return true}_applyLongHeaders(){if(this._gnuLongPath){this._header.name=this._gnuLongPath;this._gnuLongPath=null}if(this._gnuLongLinkPath){this._header.linkname=this._gnuLongLinkPath;this._gnuLongLinkPath=null}if(this._pax){if(this._pax.path)this._header.name=this._pax.path;if(this._pax.linkpath)this._header.linkname=this._pax.linkpath;if(this._pax.size)this._header.size=parseInt(this._pax.size,10);this._header.pax=this._pax;this._pax=null}}_decodeLongHeader(r){switch(this._header.type){case"gnu-long-path":this._gnuLongPath=p.decodeLongPath(r,this._filenameEncoding);break;case"gnu-long-link-path":this._gnuLongLinkPath=p.decodeLongPath(r,this._filenameEncoding);break;case"pax-global-header":this._paxGlobal=p.decodePax(r);break;case"pax-header":this._pax=this._paxGlobal===null?p.decodePax(r):Object.assign({},this._paxGlobal,p.decodePax(r));break}}_consumeLongHeader(){this._longHeader=false;this._missing=overflow(this._header.size);const r=this._buffer.shift(this._header.size);try{this._decodeLongHeader(r)}catch(r){this._continueWrite(r);return false}return true}_consumeStream(){const r=this._buffer.shiftFirst(this._missing);if(r===null)return false;this._missing-=r.byteLength;const n=this._stream.push(r);if(this._missing===0){this._stream.push(null);if(n)this._stream._detach();return n&&this._locked===false}return n}_createStream(){return new Source(this,this._header,this._offset)}_update(){while(this._buffer.buffered>0&&!this.destroying){if(this._missing>0){if(this._stream!==null){if(this._consumeStream()===false)return;continue}if(this._longHeader===true){if(this._missing>this._buffer.buffered)break;if(this._consumeLongHeader()===false)return false;continue}const r=this._buffer.shiftFirst(this._missing);if(r!==null)this._missing-=r.byteLength;continue}if(this._buffer.buffered<512)break;if(this._stream!==null||this._consumeHeader()===false)return}this._continueWrite(null)}_continueWrite(r){const n=this._callback;this._callback=noop;n(r)}_write(r,n){this._callback=n;this._buffer.push(r);this._update()}_final(r){this._finished=this._missing===0&&this._buffer.buffered===0;r(this._finished?null:new Error("Unexpected end of data"))}_predestroy(){this._continueWrite(null)}_destroy(r){if(this._stream)this._stream.destroy(u(this));r(null)}[Symbol.asyncIterator](){let r=null;let n=null;let s=null;let a=null;let l=null;const u=this;this.on("entry",onentry);this.on("error",(n=>{r=n}));this.on("close",onclose);return{[Symbol.asyncIterator](){return this},next(){return new Promise(onnext)},return(){return destroy(null)},throw(r){return destroy(r)}};function consumeCallback(r){if(!l)return;const n=l;l=null;n(r)}function onnext(l,d){if(r){return d(r)}if(a){l({value:a,done:false});a=null;return}n=l;s=d;consumeCallback(null);if(u._finished&&n){n({value:undefined,done:true});n=s=null}}function onentry(r,u,d){l=d;u.on("error",noop);if(n){n({value:u,done:false});n=s=null}else{a=u}}function onclose(){consumeCallback(r);if(!n)return;if(r)s(r);else n({value:undefined,done:true});n=s=null}function destroy(r){u.destroy(r);consumeCallback(r);return new Promise(((n,s)=>{if(u.destroyed)return n({value:undefined,done:true});u.once("close",(function(){if(r)s(r);else n({value:undefined,done:true})}))}))}}}r.exports=function extract(r){return new Extract(r)};function noop(){}function overflow(r){r&=511;return r&&512-r}},88428:(r,n,s)=>{const a=s(73057);const l="0000000000000000000";const u="7777777777777777777";const d="0".charCodeAt(0);const A=a.from([117,115,116,97,114,0]);const p=a.from([d,d]);const f=a.from([117,115,116,97,114,32]);const g=a.from([32,0]);const y=4095;const b=257;const C=263;n.decodeLongPath=function decodeLongPath(r,n){return decodeStr(r,0,r.length,n)};n.encodePax=function encodePax(r){let n="";if(r.name)n+=addLength(" path="+r.name+"\n");if(r.linkname)n+=addLength(" linkpath="+r.linkname+"\n");const s=r.pax;if(s){for(const r in s){n+=addLength(" "+r+"="+s[r]+"\n")}}return a.from(n)};n.decodePax=function decodePax(r){const n={};while(r.length){let s=0;while(s100){const r=s.indexOf("/");if(r===-1)return null;l+=l?"/"+s.slice(0,r):s.slice(0,r);s=s.slice(r+1)}if(a.byteLength(s)>100||a.byteLength(l)>155)return null;if(r.linkname&&a.byteLength(r.linkname)>100)return null;a.write(n,s);a.write(n,encodeOct(r.mode&y,6),100);a.write(n,encodeOct(r.uid,6),108);a.write(n,encodeOct(r.gid,6),116);encodeSize(r.size,n,124);a.write(n,encodeOct(r.mtime.getTime()/1e3|0,11),136);n[156]=d+toTypeflag(r.type);if(r.linkname)a.write(n,r.linkname,157);a.copy(A,n,b);a.copy(p,n,C);if(r.uname)a.write(n,r.uname,265);if(r.gname)a.write(n,r.gname,297);a.write(n,encodeOct(r.devmajor||0,6),329);a.write(n,encodeOct(r.devminor||0,6),337);if(l)a.write(n,l,345);a.write(n,encodeOct(cksum(n),6),148);return n};n.decode=function decode(r,n,s){let a=r[156]===0?0:r[156]-d;let l=decodeStr(r,0,100,n);const u=decodeOct(r,100,8);const A=decodeOct(r,108,8);const p=decodeOct(r,116,8);const f=decodeOct(r,124,12);const g=decodeOct(r,136,12);const y=toType(a);const b=r[157]===0?null:decodeStr(r,157,100,n);const C=decodeStr(r,265,32);const w=decodeStr(r,297,32);const B=decodeOct(r,329,8);const I=decodeOct(r,337,8);const S=cksum(r);if(S===8*32)return null;if(S!==decodeOct(r,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(isUSTAR(r)){if(r[345])l=decodeStr(r,345,155,n)+"/"+l}else if(isGNU(r)){}else{if(!s){throw new Error("Invalid tar header: unknown format.")}}if(a===0&&l&&l[l.length-1]==="/")a=5;return{name:l,mode:u,uid:A,gid:p,size:f,mtime:new Date(1e3*g),type:y,linkname:b,uname:C,gname:w,devmajor:B,devminor:I,pax:null}};function isUSTAR(r){return a.equals(A,r.subarray(b,b+6))}function isGNU(r){return a.equals(f,r.subarray(b,b+6))&&a.equals(g,r.subarray(C,C+2))}function clamp(r,n,s){if(typeof r!=="number")return s;r=~~r;if(r>=n)return n;if(r>=0)return r;r+=n;if(r>=0)return r;return 0}function toType(r){switch(r){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function toTypeflag(r){switch(r){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function indexOf(r,n,s,a){for(;sn)return u.slice(0,n)+" ";return l.slice(0,n-r.length)+r+" "}function encodeSizeBin(r,n,s){n[s]=128;for(let a=11;a>0;a--){n[s+a]=r&255;r=Math.floor(r/256)}}function encodeSize(r,n,s){if(r.toString(8).length>11){encodeSizeBin(r,n,s)}else{a.write(n,encodeOct(r,11),s)}}function parse256(r){let n;if(r[0]===128)n=true;else if(r[0]===255)n=false;else return null;const s=[];let a;for(a=r.length-1;a>0;a--){const l=r[a];if(n)s.push(l);else s.push(255-l)}let l=0;const u=s.length;for(a=0;a=Math.pow(10,s))s++;return n+s+r}},56118:(r,n,s)=>{n.extract=s(35763);n.pack=s(80861)},80861:(r,n,s)=>{const{Readable:a,Writable:l,getStreamError:u}=s(36204);const d=s(73057);const A=s(20775);const p=s(88428);const f=493;const g=420;const y=d.alloc(1024);class Sink extends l{constructor(r,n,s){super({mapWritable:mapWritable,eagerOpen:true});this.written=0;this.header=n;this._callback=s;this._linkname=null;this._isLinkname=n.type==="symlink"&&!n.linkname;this._isVoid=n.type!=="file"&&n.type!=="contiguous-file";this._finished=false;this._pack=r;this._openCallback=null;if(this._pack._stream===null)this._pack._stream=this;else this._pack._pending.push(this)}_open(r){this._openCallback=r;if(this._pack._stream===this)this._continueOpen()}_continuePack(r){if(this._callback===null)return;const n=this._callback;this._callback=null;n(r)}_continueOpen(){if(this._pack._stream===null)this._pack._stream=this;const r=this._openCallback;this._openCallback=null;if(r===null)return;if(this._pack.destroying)return r(new Error("pack stream destroyed"));if(this._pack._finalized)return r(new Error("pack stream is already finalized"));this._pack._stream=this;if(!this._isLinkname){this._pack._encode(this.header)}if(this._isVoid){this._finish();this._continuePack(null)}r(null)}_write(r,n){if(this._isLinkname){this._linkname=this._linkname?d.concat([this._linkname,r]):r;return n(null)}if(this._isVoid){if(r.byteLength>0){return n(new Error("No body allowed for this entry"))}return n()}this.written+=r.byteLength;if(this._pack.push(r))return n();this._pack._drain=n}_finish(){if(this._finished)return;this._finished=true;if(this._isLinkname){this.header.linkname=this._linkname?d.toString(this._linkname,"utf-8"):"";this._pack._encode(this.header)}overflow(this._pack,this.header.size);this._pack._done(this)}_final(r){if(this.written!==this.header.size){return r(new Error("Size mismatch"))}this._finish();r(null)}_getError(){return u(this)||new Error("tar entry destroyed")}_predestroy(){this._pack.destroy(this._getError())}_destroy(r){this._pack._done(this);this._continuePack(this._finished?null:this._getError());r()}}class Pack extends a{constructor(r){super(r);this._drain=noop;this._finalized=false;this._finalizing=false;this._pending=[];this._stream=null}entry(r,n,s){if(this._finalized||this.destroying)throw new Error("already finalized or destroyed");if(typeof n==="function"){s=n;n=null}if(!s)s=noop;if(!r.size||r.type==="symlink")r.size=0;if(!r.type)r.type=modeToType(r.mode);if(!r.mode)r.mode=r.type==="directory"?f:g;if(!r.uid)r.uid=0;if(!r.gid)r.gid=0;if(!r.mtime)r.mtime=new Date;if(typeof n==="string")n=d.from(n);const a=new Sink(this,r,s);if(d.isBuffer(n)){r.size=n.byteLength;a.write(n);a.end();return a}if(a._isVoid){return a}return a}finalize(){if(this._stream||this._pending.length>0){this._finalizing=true;return}if(this._finalized)return;this._finalized=true;this.push(y);this.push(null)}_done(r){if(r!==this._stream)return;this._stream=null;if(this._finalizing)this.finalize();if(this._pending.length)this._pending.shift()._continueOpen()}_encode(r){if(!r.pax){const n=p.encode(r);if(n){this.push(n);return}}this._encodePax(r)}_encodePax(r){const n=p.encodePax({name:r.name,linkname:r.linkname,pax:r.pax});const s={name:"PaxHeader",mode:r.mode,uid:r.uid,gid:r.gid,size:n.byteLength,mtime:r.mtime,type:"pax-header",linkname:r.linkname&&"PaxHeader",uname:r.uname,gname:r.gname,devmajor:r.devmajor,devminor:r.devminor};this.push(p.encode(s));this.push(n);overflow(this,n.byteLength);s.size=r.size;s.type=r.type;this.push(p.encode(s))}_doDrain(){const r=this._drain;this._drain=noop;r()}_predestroy(){const r=u(this);if(this._stream)this._stream.destroy(r);while(this._pending.length){const n=this._pending.shift();n.destroy(r);n._continueOpen()}this._doDrain()}_read(r){this._doDrain();r()}}r.exports=function pack(r){return new Pack(r)};function modeToType(r){switch(r&A.S_IFMT){case A.S_IFBLK:return"block-device";case A.S_IFCHR:return"character-device";case A.S_IFDIR:return"directory";case A.S_IFIFO:return"fifo";case A.S_IFLNK:return"symlink"}return"file"}function noop(){}function overflow(r,n){n&=511;if(n)r.push(y.subarray(0,512-n))}function mapWritable(r){return d.isBuffer(r)?r:d.from(r)}},97934:(r,n,s)=>{const a=s(47256);const l=s(86414);r.exports=class TextDecoder{constructor(r="utf8"){this.encoding=normalizeEncoding(r);switch(this.encoding){case"utf8":this.decoder=new l;break;case"utf16le":case"base64":throw new Error("Unsupported encoding: "+this.encoding);default:this.decoder=new a(this.encoding)}}get remaining(){return this.decoder.remaining}push(r){if(typeof r==="string")return r;return this.decoder.decode(r)}write(r){return this.push(r)}end(r){let n="";if(r)n=this.push(r);n+=this.decoder.flush();return n}};function normalizeEncoding(r){r=r.toLowerCase();switch(r){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 r;default:throw new Error("Unknown encoding: "+r)}}},47256:(r,n,s)=>{const a=s(73057);r.exports=class PassThroughDecoder{constructor(r){this.encoding=r}get remaining(){return 0}decode(r){return a.toString(r,this.encoding)}flush(){return""}}},86414:(r,n,s)=>{const a=s(73057);r.exports=class UTF8Decoder{constructor(){this._reset()}get remaining(){return this.bytesSeen}decode(r){if(r.byteLength===0)return"";if(this.bytesNeeded===0&&trailingIncomplete(r,0)===0){this.bytesSeen=trailingBytesSeen(r);return a.toString(r,"utf8")}let n="";let s=0;if(this.bytesNeeded>0){while(sthis.upperBoundary){n+="�";this._reset();break}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|a&63;this.bytesSeen++;s++;if(this.bytesSeen===this.bytesNeeded){n+=String.fromCodePoint(this.codePoint);this._reset();break}}if(this.bytesNeeded>0)return n}const l=trailingIncomplete(r,s);const u=r.byteLength-l;if(u>s)n+=a.toString(r,"utf8",s,u);for(let s=u;s=194&&a<=223){this.bytesNeeded=2;this.bytesSeen=1;this.codePoint=a&31}else if(a>=224&&a<=239){if(a===224)this.lowerBoundary=160;else if(a===237)this.upperBoundary=159;this.bytesNeeded=3;this.bytesSeen=1;this.codePoint=a&15}else if(a>=240&&a<=244){if(a===240)this.lowerBoundary=144;else if(a===244)this.upperBoundary=143;this.bytesNeeded=4;this.bytesSeen=1;this.codePoint=a&7}else{this.bytesSeen=1;n+="�"}continue}if(athis.upperBoundary){n+="�";s--;this._reset();continue}this.lowerBoundary=128;this.upperBoundary=191;this.codePoint=this.codePoint<<6|a&63;this.bytesSeen++;if(this.bytesSeen===this.bytesNeeded){n+=String.fromCodePoint(this.codePoint);this._reset()}}return n}flush(){const r=this.bytesNeeded>0?"�":"";this._reset();return r}_reset(){this.codePoint=0;this.bytesNeeded=0;this.bytesSeen=0;this.lowerBoundary=128;this.upperBoundary=191}};function trailingIncomplete(r,n){const s=r.byteLength;if(s<=n)return 0;const a=Math.max(n,s-4);let l=s-1;while(l>a&&(r[l]&192)===128)l--;if(l=194&&u<=223)d=2;else if(u>=224&&u<=239)d=3;else if(u>=240&&u<=244)d=4;else return 0;const A=s-l;return A=a&&(r[l]&192)===128)l--;if(l<0)return 1;const u=r[l];let d;if(u>=194&&u<=223)d=2;else if(u>=224&&u<=239)d=3;else if(u>=240&&u<=244)d=4;else return 1;if(n-l!==d)return 1;if(d>=3){const n=r[l+1];if(u===224&&n<160)return 1;if(u===237&&n>159)return 1;if(u===240&&n<144)return 1;if(u===244&&n>143)return 1}return 0}},17551:(r,n,s)=>{ /*! * to-regex-range * * Copyright (c) 2015-present, Jon Schlinkert. * Released under the MIT License. */ -const a=s(29068);const toRegexRange=(r,n,s)=>{if(a(r)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(n===void 0||r===n){return String(r)}if(a(n)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let l={relaxZeros:true,...s};if(typeof l.strictZeros==="boolean"){l.relaxZeros=l.strictZeros===false}let u=String(l.relaxZeros);let d=String(l.shorthand);let A=String(l.capture);let p=String(l.wrap);let f=r+":"+n+"="+u+d+A+p;if(toRegexRange.cache.hasOwnProperty(f)){return toRegexRange.cache[f].result}let g=Math.min(r,n);let y=Math.max(r,n);if(Math.abs(g-y)===1){let s=r+"|"+n;if(l.capture){return`(${s})`}if(l.wrap===false){return s}return`(?:${s})`}let b=hasPadding(r)||hasPadding(n);let C={min:r,max:n,a:g,b:y};let w=[];let B=[];if(b){C.isPadded=b;C.maxLen=String(C.max).length}if(g<0){let r=y<0?Math.abs(y):1;B=splitToPatterns(r,Math.abs(g),C,l);g=C.a=0}if(y>=0){w=splitToPatterns(g,y,C,l)}C.negatives=B;C.positives=w;C.result=collatePatterns(B,w,l);if(l.capture===true){C.result=`(${C.result})`}else if(l.wrap!==false&&w.length+B.length>1){C.result=`(?:${C.result})`}toRegexRange.cache[f]=C;return C.result};function collatePatterns(r,n,s){let a=filterPatterns(r,n,"-",false,s)||[];let l=filterPatterns(n,r,"",false,s)||[];let u=filterPatterns(r,n,"-?",true,s)||[];let d=a.concat(u).concat(l);return d.join("|")}function splitToRanges(r,n){let s=1;let a=1;let l=countNines(r,s);let u=new Set([n]);while(r<=l&&l<=n){u.add(l);s+=1;l=countNines(r,s)}l=countZeros(n+1,a)-1;while(r1){A.count.pop()}A.count.push(p.count[0]);A.string=A.pattern+toQuantifier(A.count);d=n+1;continue}if(s.isPadded){f=padZeros(n,s,a)}p.string=f+p.pattern+toQuantifier(p.count);u.push(p);d=n+1;A=p}return u}function filterPatterns(r,n,s,a,l){let u=[];for(let l of r){let{string:r}=l;if(!a&&!contains(n,"string",r)){u.push(s+r)}if(a&&contains(n,"string",r)){u.push(s+r)}}return u}function zip(r,n){let s=[];for(let a=0;an?1:n>r?-1:0}function contains(r,n,s){return r.some((r=>r[n]===s))}function countNines(r,n){return Number(String(r).slice(0,-n)+"9".repeat(n))}function countZeros(r,n){return r-r%Math.pow(10,n)}function toQuantifier(r){let[n=0,s=""]=r;if(s||n>1){return`{${n+(s?","+s:"")}}`}return""}function toCharacterClass(r,n,s){return`[${r}${n-r===1?"":"-"}${n}]`}function hasPadding(r){return/^-?(0+)\d/.test(r)}function padZeros(r,n,s){if(!n.isPadded){return r}let a=Math.abs(n.maxLen-String(r).length);let l=s.relaxZeros!==false;switch(a){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:{return l?`0{0,${a}}`:`0{${a}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};r.exports=toRegexRange},47441:r=>{r.exports=Traverse;function Traverse(r){if(!(this instanceof Traverse))return new Traverse(r);this.value=r}Traverse.prototype.get=function(r){var n=this.value;for(var s=0;s{r.exports=s(44179)},44179:(r,n,s)=>{var a=s(69278);var l=s(64756);var u=s(58611);var d=s(65692);var A=s(24434);var p=s(42613);var f=s(39023);n.httpOverHttp=httpOverHttp;n.httpsOverHttp=httpsOverHttp;n.httpOverHttps=httpOverHttps;n.httpsOverHttps=httpsOverHttps;function httpOverHttp(r){var n=new TunnelingAgent(r);n.request=u.request;return n}function httpsOverHttp(r){var n=new TunnelingAgent(r);n.request=u.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function httpOverHttps(r){var n=new TunnelingAgent(r);n.request=d.request;return n}function httpsOverHttps(r){var n=new TunnelingAgent(r);n.request=d.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function TunnelingAgent(r){var n=this;n.options=r||{};n.proxyOptions=n.options.proxy||{};n.maxSockets=n.options.maxSockets||u.Agent.defaultMaxSockets;n.requests=[];n.sockets=[];n.on("free",(function onFree(r,s,a,l){var u=toOptions(s,a,l);for(var d=0,A=n.requests.length;d=this.maxSockets){l.requests.push(u);return}l.createSocket(u,(function(n){n.on("free",onFree);n.on("close",onCloseOrRemove);n.on("agentRemove",onCloseOrRemove);r.onSocket(n);function onFree(){l.emit("free",n,u)}function onCloseOrRemove(r){l.removeSocket(n);n.removeListener("free",onFree);n.removeListener("close",onCloseOrRemove);n.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(r,n){var s=this;var a={};s.sockets.push(a);var l=mergeOptions({},s.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:false,headers:{host:r.host+":"+r.port}});if(r.localAddress){l.localAddress=r.localAddress}if(l.proxyAuth){l.headers=l.headers||{};l.headers["Proxy-Authorization"]="Basic "+new Buffer(l.proxyAuth).toString("base64")}g("making CONNECT request");var u=s.request(l);u.useChunkedEncodingByDefault=false;u.once("response",onResponse);u.once("upgrade",onUpgrade);u.once("connect",onConnect);u.once("error",onError);u.end();function onResponse(r){r.upgrade=true}function onUpgrade(r,n,s){process.nextTick((function(){onConnect(r,n,s)}))}function onConnect(l,d,A){u.removeAllListeners();d.removeAllListeners();if(l.statusCode!==200){g("tunneling socket could not be established, statusCode=%d",l.statusCode);d.destroy();var p=new Error("tunneling socket could not be established, "+"statusCode="+l.statusCode);p.code="ECONNRESET";r.request.emit("error",p);s.removeSocket(a);return}if(A.length>0){g("got illegal response body from proxy");d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET";r.request.emit("error",p);s.removeSocket(a);return}g("tunneling connection has established");s.sockets[s.sockets.indexOf(a)]=d;return n(d)}function onError(n){u.removeAllListeners();g("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var l=new Error("tunneling socket could not be established, "+"cause="+n.message);l.code="ECONNRESET";r.request.emit("error",l);s.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(r){var n=this.sockets.indexOf(r);if(n===-1){return}this.sockets.splice(n,1);var s=this.requests.shift();if(s){this.createSocket(s,(function(r){s.request.onSocket(r)}))}};function createSecureSocket(r,n){var s=this;TunnelingAgent.prototype.createSocket.call(s,r,(function(a){var u=r.request.getHeader("host");var d=mergeOptions({},s.options,{socket:a,servername:u?u.replace(/:.*$/,""):r.host});var A=l.connect(0,d);s.sockets[s.sockets.indexOf(a)]=A;n(A)}))}function toOptions(r,n,s){if(typeof r==="string"){return{host:r,port:n,localAddress:s}}return r}function mergeOptions(r){for(var n=1,s=arguments.length;n{const a=s(66725);const l=s(59667);const u=s(18388);const d=s(62197);const A=s(60429);const p=s(45680);const f=s(92609);const g=s(3090);const y=s(2163);const b=s(42336);const{InvalidArgumentError:C}=y;const w=s(72247);const B=s(3952);const I=s(84469);const S=s(74173);const Q=s(99972);const v=s(38909);const R=s(57928);const{getGlobalDispatcher:D,setGlobalDispatcher:N}=s(72213);const T=s(73563);const x=s(52610);const k=s(94996);Object.assign(l.prototype,w);r.exports.Dispatcher=l;r.exports.Client=a;r.exports.Pool=u;r.exports.BalancedPool=d;r.exports.Agent=A;r.exports.ProxyAgent=p;r.exports.EnvHttpProxyAgent=f;r.exports.RetryAgent=g;r.exports.RetryHandler=R;r.exports.DecoratorHandler=T;r.exports.RedirectHandler=x;r.exports.createRedirectInterceptor=k;r.exports.interceptors={redirect:s(60506),retry:s(33738),dump:s(396),dns:s(83611)};r.exports.buildConnector=B;r.exports.errors=y;r.exports.util={parseHeaders:b.parseHeaders,headerNameToString:b.headerNameToString};function makeDispatcher(r){return(n,s,a)=>{if(typeof s==="function"){a=s;s=null}if(!n||typeof n!=="string"&&typeof n!=="object"&&!(n instanceof URL)){throw new C("invalid url")}if(s!=null&&typeof s!=="object"){throw new C("invalid opts")}if(s&&s.path!=null){if(typeof s.path!=="string"){throw new C("invalid opts.path")}let r=s.path;if(!s.path.startsWith("/")){r=`/${r}`}n=new URL(b.parseOrigin(n).origin+r)}else{if(!s){s=typeof n==="object"?n:{}}n=b.parseURL(n)}const{agent:l,dispatcher:u=D()}=s;if(l){throw new C("unsupported opts.agent. Did you mean opts.client?")}return r.call(u,{...s,origin:n.origin,path:n.search?`${n.pathname}${n.search}`:n.pathname,method:s.method||(s.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=N;r.exports.getGlobalDispatcher=D;const _=s(51118).fetch;r.exports.fetch=async function fetch(r,n=undefined){try{return await _(r,n)}catch(r){if(r&&typeof r==="object"){Error.captureStackTrace(r)}throw r}};r.exports.Headers=s(26084).Headers;r.exports.Response=s(58843).Response;r.exports.Request=s(4031).Request;r.exports.FormData=s(56694).FormData;r.exports.File=globalThis.File??s(4573).File;r.exports.FileReader=s(50579).FileReader;const{setGlobalOrigin:P,getGlobalOrigin:F}=s(4035);r.exports.setGlobalOrigin=P;r.exports.getGlobalOrigin=F;const{CacheStorage:L}=s(59453);const{kConstruct:O}=s(35869);r.exports.caches=new L(O);const{deleteCookie:M,getCookies:U,getSetCookies:H,setCookie:G}=s(77573);r.exports.deleteCookie=M;r.exports.getCookies=U;r.exports.getSetCookies=H;r.exports.setCookie=G;const{parseMIMEType:z,serializeAMimeType:q}=s(54476);r.exports.parseMIMEType=z;r.exports.serializeAMimeType=q;const{CloseEvent:V,ErrorEvent:W,MessageEvent:j}=s(58276);r.exports.WebSocket=s(18286).WebSocket;r.exports.CloseEvent=V;r.exports.ErrorEvent=W;r.exports.MessageEvent=j;r.exports.request=makeDispatcher(w.request);r.exports.stream=makeDispatcher(w.stream);r.exports.pipeline=makeDispatcher(w.pipeline);r.exports.connect=makeDispatcher(w.connect);r.exports.upgrade=makeDispatcher(w.upgrade);r.exports.MockClient=I;r.exports.MockPool=Q;r.exports.MockAgent=S;r.exports.mockErrors=v;const{EventSource:Y}=s(90630);r.exports.EventSource=Y},27182:(r,n,s)=>{const{addAbortListener:a}=s(42336);const{RequestAbortedError:l}=s(2163);const u=Symbol("kListener");const d=Symbol("kSignal");function abort(r){if(r.abort){r.abort(r[d]?.reason)}else{r.reason=r[d]?.reason??new l}removeSignal(r)}function addSignal(r,n){r.reason=null;r[d]=null;r[u]=null;if(!n){return}if(n.aborted){abort(r);return}r[d]=n;r[u]=()=>{abort(r)};a(r[d],r[u])}function removeSignal(r){if(!r[d]){return}if("removeEventListener"in r[d]){r[d].removeEventListener("abort",r[u])}else{r[d].removeListener("abort",r[u])}r[d]=null;r[u]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},35412:(r,n,s)=>{const a=s(34589);const{AsyncResource:l}=s(16698);const{InvalidArgumentError:u,SocketError:d}=s(2163);const A=s(42336);const{addSignal:p,removeSignal:f}=s(27182);class ConnectHandler extends l{constructor(r,n){if(!r||typeof r!=="object"){throw new u("invalid opts")}if(typeof n!=="function"){throw new u("invalid callback")}const{signal:s,opaque:a,responseHeaders:l}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new u("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=l||null;this.callback=n;this.abort=null;p(this,s)}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(){throw new d("bad connect",null)}onUpgrade(r,n,s){const{callback:a,opaque:l,context:u}=this;f(this);this.callback=null;let d=n;if(d!=null){d=this.responseHeaders==="raw"?A.parseRawHeaders(n):A.parseHeaders(n)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:d,socket:s,opaque:l,context:u})}onError(r){const{callback:n,opaque:s}=this;f(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,r,{opaque:s})}))}}}function connect(r,n){if(n===undefined){return new Promise(((n,s)=>{connect.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{const s=new ConnectHandler(r,n);this.dispatch({...r,method:"CONNECT"},s)}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=connect},31918:(r,n,s)=>{const{Readable:a,Duplex:l,PassThrough:u}=s(57075);const{InvalidArgumentError:d,InvalidReturnValueError:A,RequestAbortedError:p}=s(2163);const f=s(42336);const{AsyncResource:g}=s(16698);const{addSignal:y,removeSignal:b}=s(27182);const C=s(34589);const w=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[w]=null}_read(){const{[w]:r}=this;if(r){this[w]=null;r()}}_destroy(r,n){this._read();n(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[w]=r}_read(){this[w]()}_destroy(r,n){if(!r&&!this._readableState.endEmitted){r=new p}n(r)}}class PipelineHandler extends g{constructor(r,n){if(!r||typeof r!=="object"){throw new d("invalid opts")}if(typeof n!=="function"){throw new d("invalid handler")}const{signal:s,method:a,opaque:u,onInfo:A,responseHeaders:g}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new d("invalid method")}if(A&&typeof A!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=u||null;this.responseHeaders=g||null;this.handler=n;this.abort=null;this.context=null;this.onInfo=A||null;this.req=(new PipelineRequest).on("error",f.nop);this.ret=new l({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r?.resume){r.resume()}},write:(r,n,s)=>{const{req:a}=this;if(a.push(r,n)||a._readableState.destroyed){s()}else{a[w]=s}},destroy:(r,n)=>{const{body:s,req:a,res:l,ret:u,abort:d}=this;if(!r&&!u._readableState.endEmitted){r=new p}if(d&&r){d()}f.destroy(s,r);f.destroy(a,r);f.destroy(l,r);b(this);n(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;y(this,s)}onConnect(r,n){const{ret:s,res:a}=this;if(this.reason){r(this.reason);return}C(!a,"pipeline cannot be retried");C(!s.destroyed);this.abort=r;this.context=n}onHeaders(r,n,s){const{opaque:a,handler:l,context:u}=this;if(r<200){if(this.onInfo){const s=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);this.onInfo({statusCode:r,headers:s})}return}this.res=new PipelineResponse(s);let d;try{this.handler=null;const s=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);d=this.runInAsyncScope(l,null,{statusCode:r,headers:s,opaque:a,body:this.res,context:u})}catch(r){this.res.on("error",f.nop);throw r}if(!d||typeof d.on!=="function"){throw new A("expected Readable")}d.on("data",(r=>{const{ret:n,body:s}=this;if(!n.push(r)&&s.pause){s.pause()}})).on("error",(r=>{const{ret:n}=this;f.destroy(n,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){f.destroy(r,new p)}}));this.body=d}onData(r){const{res:n}=this;return n.push(r)}onComplete(r){const{res:n}=this;n.push(null)}onError(r){const{ret:n}=this;this.handler=null;f.destroy(n,r)}}function pipeline(r,n){try{const s=new PipelineHandler(r,n);this.dispatch({...r,body:s.req},s);return s.ret}catch(r){return(new u).destroy(r)}}r.exports=pipeline},84843:(r,n,s)=>{const a=s(34589);const{Readable:l}=s(22999);const{InvalidArgumentError:u,RequestAbortedError:d}=s(2163);const A=s(42336);const{getResolveErrorBodyCallback:p}=s(36055);const{AsyncResource:f}=s(16698);class RequestHandler extends f{constructor(r,n){if(!r||typeof r!=="object"){throw new u("invalid opts")}const{signal:s,method:a,opaque:l,body:p,onInfo:f,responseHeaders:g,throwOnError:y,highWaterMark:b}=r;try{if(typeof n!=="function"){throw new u("invalid callback")}if(b&&(typeof b!=="number"||b<0)){throw new u("invalid highWaterMark")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new u("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new u("invalid method")}if(f&&typeof f!=="function"){throw new u("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(A.isStream(p)){A.destroy(p.on("error",A.nop),r)}throw r}this.method=a;this.responseHeaders=g||null;this.opaque=l||null;this.callback=n;this.res=null;this.abort=null;this.body=p;this.trailers={};this.context=null;this.onInfo=f||null;this.throwOnError=y;this.highWaterMark=b;this.signal=s;this.reason=null;this.removeAbortListener=null;if(A.isStream(p)){p.on("error",(r=>{this.onError(r)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new d}else{this.removeAbortListener=A.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new d;if(this.res){A.destroy(this.res.on("error",A.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(r,n,s,a){const{callback:u,opaque:d,abort:f,context:g,responseHeaders:y,highWaterMark:b}=this;const C=y==="raw"?A.parseRawHeaders(n):A.parseHeaders(n);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:C})}return}const w=y==="raw"?A.parseHeaders(n):C;const B=w["content-type"];const I=w["content-length"];const S=new l({resume:s,abort:f,contentType:B,contentLength:this.method!=="HEAD"&&I?Number(I):null,highWaterMark:b});if(this.removeAbortListener){S.on("close",this.removeAbortListener)}this.callback=null;this.res=S;if(u!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(p,null,{callback:u,body:S,contentType:B,statusCode:r,statusMessage:a,headers:C})}else{this.runInAsyncScope(u,null,null,{statusCode:r,headers:C,trailers:this.trailers,opaque:d,body:S,context:g})}}}onData(r){return this.res.push(r)}onComplete(r){A.parseHeaders(r,this.trailers);this.res.push(null)}onError(r){const{res:n,callback:s,body:a,opaque:l}=this;if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:l})}))}if(n){this.res=null;queueMicrotask((()=>{A.destroy(n,r)}))}if(a){this.body=null;A.destroy(a,r)}if(this.removeAbortListener){n?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(r,n){if(n===undefined){return new Promise(((n,s)=>{request.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{this.dispatch(r,new RequestHandler(r,n))}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},14040:(r,n,s)=>{const a=s(34589);const{finished:l,PassThrough:u}=s(57075);const{InvalidArgumentError:d,InvalidReturnValueError:A}=s(2163);const p=s(42336);const{getResolveErrorBodyCallback:f}=s(36055);const{AsyncResource:g}=s(16698);const{addSignal:y,removeSignal:b}=s(27182);class StreamHandler extends g{constructor(r,n,s){if(!r||typeof r!=="object"){throw new d("invalid opts")}const{signal:a,method:l,opaque:u,body:A,onInfo:f,responseHeaders:g,throwOnError:b}=r;try{if(typeof s!=="function"){throw new d("invalid callback")}if(typeof n!=="function"){throw new d("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(l==="CONNECT"){throw new d("invalid method")}if(f&&typeof f!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(p.isStream(A)){p.destroy(A.on("error",p.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=u||null;this.factory=n;this.callback=s;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=A;this.onInfo=f||null;this.throwOnError=b||false;if(p.isStream(A)){A.on("error",(r=>{this.onError(r)}))}y(this,a)}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(r,n,s,a){const{factory:d,opaque:g,context:y,callback:b,responseHeaders:C}=this;const w=C==="raw"?p.parseRawHeaders(n):p.parseHeaders(n);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:w})}return}this.factory=null;let B;if(this.throwOnError&&r>=400){const s=C==="raw"?p.parseHeaders(n):w;const l=s["content-type"];B=new u;this.callback=null;this.runInAsyncScope(f,null,{callback:b,body:B,contentType:l,statusCode:r,statusMessage:a,headers:w})}else{if(d===null){return}B=this.runInAsyncScope(d,null,{statusCode:r,headers:w,opaque:g,context:y});if(!B||typeof B.write!=="function"||typeof B.end!=="function"||typeof B.on!=="function"){throw new A("expected Writable")}l(B,{readable:false},(r=>{const{callback:n,res:s,opaque:a,trailers:l,abort:u}=this;this.res=null;if(r||!s.readable){p.destroy(s,r)}this.callback=null;this.runInAsyncScope(n,null,r||null,{opaque:a,trailers:l});if(r){u()}}))}B.on("drain",s);this.res=B;const I=B.writableNeedDrain!==undefined?B.writableNeedDrain:B._writableState?.needDrain;return I!==true}onData(r){const{res:n}=this;return n?n.write(r):true}onComplete(r){const{res:n}=this;b(this);if(!n){return}this.trailers=p.parseHeaders(r);n.end()}onError(r){const{res:n,callback:s,opaque:a,body:l}=this;b(this);this.factory=null;if(n){this.res=null;p.destroy(n,r)}else if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:a})}))}if(l){this.body=null;p.destroy(l,r)}}}function stream(r,n,s){if(s===undefined){return new Promise(((s,a)=>{stream.call(this,r,n,((r,n)=>r?a(r):s(n)))}))}try{this.dispatch(r,new StreamHandler(r,n,s))}catch(n){if(typeof s!=="function"){throw n}const a=r?.opaque;queueMicrotask((()=>s(n,{opaque:a})))}}r.exports=stream},32842:(r,n,s)=>{const{InvalidArgumentError:a,SocketError:l}=s(2163);const{AsyncResource:u}=s(16698);const d=s(42336);const{addSignal:A,removeSignal:p}=s(27182);const f=s(34589);class UpgradeHandler extends u{constructor(r,n){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof n!=="function"){throw new a("invalid callback")}const{signal:s,opaque:l,responseHeaders:u}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=u||null;this.opaque=l||null;this.callback=n;this.abort=null;this.context=null;A(this,s)}onConnect(r,n){if(this.reason){r(this.reason);return}f(this.callback);this.abort=r;this.context=null}onHeaders(){throw new l("bad upgrade",null)}onUpgrade(r,n,s){f(r===101);const{callback:a,opaque:l,context:u}=this;p(this);this.callback=null;const A=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);this.runInAsyncScope(a,null,null,{headers:A,socket:s,opaque:l,context:u})}onError(r){const{callback:n,opaque:s}=this;p(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,r,{opaque:s})}))}}}function upgrade(r,n){if(n===undefined){return new Promise(((n,s)=>{upgrade.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{const s=new UpgradeHandler(r,n);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},s)}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=upgrade},72247:(r,n,s)=>{r.exports.request=s(84843);r.exports.stream=s(14040);r.exports.pipeline=s(31918);r.exports.upgrade=s(32842);r.exports.connect=s(35412)},22999:(r,n,s)=>{const a=s(34589);const{Readable:l}=s(57075);const{RequestAbortedError:u,NotSupportedError:d,InvalidArgumentError:A,AbortError:p}=s(2163);const f=s(42336);const{ReadableStreamFrom:g}=s(42336);const y=Symbol("kConsume");const b=Symbol("kReading");const C=Symbol("kBody");const w=Symbol("kAbort");const B=Symbol("kContentType");const I=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends l{constructor({resume:r,abort:n,contentType:s="",contentLength:a,highWaterMark:l=64*1024}){super({autoDestroy:true,read:r,highWaterMark:l});this._readableState.dataEmitted=false;this[w]=n;this[y]=null;this[C]=null;this[B]=s;this[I]=a;this[b]=false}destroy(r){if(!r&&!this._readableState.endEmitted){r=new u}if(r){this[w]()}return super.destroy(r)}_destroy(r,n){if(!this[b]){setImmediate((()=>{n(r)}))}else{n(r)}}on(r,...n){if(r==="data"||r==="readable"){this[b]=true}return super.on(r,...n)}addListener(r,...n){return this.on(r,...n)}off(r,...n){const s=super.off(r,...n);if(r==="data"||r==="readable"){this[b]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return s}removeListener(r,...n){return this.off(r,...n)}push(r){if(this[y]&&r!==null){consumePush(this[y],r);return this[b]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new d}get bodyUsed(){return f.isDisturbed(this)}get body(){if(!this[C]){this[C]=g(this);if(this[y]){this[C].getReader();a(this[C].locked)}}return this[C]}async dump(r){let n=Number.isFinite(r?.limit)?r.limit:128*1024;const s=r?.signal;if(s!=null&&(typeof s!=="object"||!("aborted"in s))){throw new A("signal must be an AbortSignal")}s?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((r,a)=>{if(this[I]>n){this.destroy(new p)}const onAbort=()=>{this.destroy(s.reason??new p)};s?.addEventListener("abort",onAbort);this.on("close",(function(){s?.removeEventListener("abort",onAbort);if(s?.aborted){a(s.reason??new p)}else{r(null)}})).on("error",noop).on("data",(function(r){n-=r.length;if(n<=0){this.destroy()}})).resume()}))}}function isLocked(r){return r[C]&&r[C].locked===true||r[y]}function isUnusable(r){return f.isDisturbed(r)||isLocked(r)}async function consume(r,n){a(!r[y]);return new Promise(((s,a)=>{if(isUnusable(r)){const n=r._readableState;if(n.destroyed&&n.closeEmitted===false){r.on("error",(r=>{a(r)})).on("close",(()=>{a(new TypeError("unusable"))}))}else{a(n.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{r[y]={type:n,stream:r,resolve:s,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[y],r)})).on("close",(function(){if(this[y].body!==null){consumeFinish(this[y],new u)}}));consumeStart(r[y])}))}}))}function consumeStart(r){if(r.body===null){return}const{_readableState:n}=r.stream;if(n.bufferIndex){const s=n.bufferIndex;const a=n.buffer.length;for(let l=s;l2&&s[0]===239&&s[1]===187&&s[2]===191?3:0;return s.utf8Slice(l,a)}function chunksConcat(r,n){if(r.length===0||n===0){return new Uint8Array(0)}if(r.length===1){return new Uint8Array(r[0])}const s=new Uint8Array(Buffer.allocUnsafeSlow(n).buffer);let a=0;for(let n=0;n{const a=s(34589);const{ResponseStatusCodeError:l}=s(2163);const{chunksDecode:u}=s(22999);const d=128*1024;async function getResolveErrorBodyCallback({callback:r,body:n,contentType:s,statusCode:A,statusMessage:p,headers:f}){a(n);let g=[];let y=0;try{for await(const r of n){g.push(r);y+=r.length;if(y>d){g=[];y=0;break}}}catch{g=[];y=0}const b=`Response status code ${A}${p?`: ${p}`:""}`;if(A===204||!s||!y){queueMicrotask((()=>r(new l(b,A,f))));return}const C=Error.stackTraceLimit;Error.stackTraceLimit=0;let w;try{if(isContentTypeApplicationJson(s)){w=JSON.parse(u(g,y))}else if(isContentTypeText(s)){w=u(g,y)}}catch{}finally{Error.stackTraceLimit=C}queueMicrotask((()=>r(new l(b,A,f,w))))}const isContentTypeApplicationJson=r=>r.length>15&&r[11]==="/"&&r[0]==="a"&&r[1]==="p"&&r[2]==="p"&&r[3]==="l"&&r[4]==="i"&&r[5]==="c"&&r[6]==="a"&&r[7]==="t"&&r[8]==="i"&&r[9]==="o"&&r[10]==="n"&&r[12]==="j"&&r[13]==="s"&&r[14]==="o"&&r[15]==="n";const isContentTypeText=r=>r.length>4&&r[4]==="/"&&r[0]==="t"&&r[1]==="e"&&r[2]==="x"&&r[3]==="t";r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},3952:(r,n,s)=>{const a=s(77030);const l=s(34589);const u=s(42336);const{InvalidArgumentError:d,ConnectTimeoutError:A}=s(2163);const p=s(34347);function noop(){}let f;let g;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){g=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,n)}}}function buildConnector({allowH2:r,maxCachedSessions:n,socketPath:A,timeout:p,session:b,...C}){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new d("maxCachedSessions must be a positive integer or zero")}const w={path:A,...C};const B=new g(n==null?100:n);p=p==null?1e4:p;r=r!=null?r:false;return function connect({hostname:n,host:d,protocol:A,port:g,servername:C,localAddress:I,httpSocket:S},Q){let v;if(A==="https:"){if(!f){f=s(41692)}C=C||w.servername||u.getServerName(d)||null;const a=C||n;l(a);const A=b||B.get(a)||null;g=g||443;v=f.connect({highWaterMark:16384,...w,servername:C,session:A,localAddress:I,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:S,port:g,host:n});v.on("session",(function(r){B.set(a,r)}))}else{l(!S,"httpSocket can only be sent on TLS update");g=g||80;v=a.connect({highWaterMark:64*1024,...w,localAddress:I,port:g,host:n})}if(w.keepAlive==null||w.keepAlive){const r=w.keepAliveInitialDelay===undefined?6e4:w.keepAliveInitialDelay;v.setKeepAlive(true,r)}const R=y(new WeakRef(v),{timeout:p,hostname:n,port:g});v.setNoDelay(true).once(A==="https:"?"secureConnect":"connect",(function(){queueMicrotask(R);if(Q){const r=Q;Q=null;r(null,this)}})).on("error",(function(r){queueMicrotask(R);if(Q){const n=Q;Q=null;n(r)}}));return v}}const y=process.platform==="win32"?(r,n)=>{if(!n.timeout){return noop}let s=null;let a=null;const l=p.setFastTimeout((()=>{s=setImmediate((()=>{a=setImmediate((()=>onConnectTimeout(r.deref(),n)))}))}),n.timeout);return()=>{p.clearFastTimeout(l);clearImmediate(s);clearImmediate(a)}}:(r,n)=>{if(!n.timeout){return noop}let s=null;const a=p.setFastTimeout((()=>{s=setImmediate((()=>{onConnectTimeout(r.deref(),n)}))}),n.timeout);return()=>{p.clearFastTimeout(a);clearImmediate(s)}};function onConnectTimeout(r,n){if(r==null){return}let s="Connect Timeout Error";if(Array.isArray(r.autoSelectFamilyAttemptedAddresses)){s+=` (attempted addresses: ${r.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{s+=` (attempted address: ${n.hostname}:${n.port},`}s+=` timeout: ${n.timeout}ms)`;u.destroy(r,new A(s))}r.exports=buildConnector},96639:r=>{const n={};const s=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{const a=s(53053);const l=s(57975);const u=l.debuglog("undici");const d=l.debuglog("fetch");const A=l.debuglog("websocket");let p=false;const f={beforeConnect:a.channel("undici:client:beforeConnect"),connected:a.channel("undici:client:connected"),connectError:a.channel("undici:client:connectError"),sendHeaders:a.channel("undici:client:sendHeaders"),create:a.channel("undici:request:create"),bodySent:a.channel("undici:request:bodySent"),headers:a.channel("undici:request:headers"),trailers:a.channel("undici:request:trailers"),error:a.channel("undici:request:error"),open:a.channel("undici:websocket:open"),close:a.channel("undici:websocket:close"),socketError:a.channel("undici:websocket:socket_error"),ping:a.channel("undici:websocket:ping"),pong:a.channel("undici:websocket:pong")};if(u.enabled||d.enabled){const r=d.enabled?d:u;a.channel("undici:client:beforeConnect").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connecting to %s using %s%s",`${u}${l?`:${l}`:""}`,a,s)}));a.channel("undici:client:connected").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connected to %s using %s%s",`${u}${l?`:${l}`:""}`,a,s)}));a.channel("undici:client:connectError").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u},error:d}=n;r("connection to %s using %s%s errored - %s",`${u}${l?`:${l}`:""}`,a,s,d.message)}));a.channel("undici:client:sendHeaders").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("sending request to %s %s/%s",s,l,a)}));a.channel("undici:request:headers").subscribe((n=>{const{request:{method:s,path:a,origin:l},response:{statusCode:u}}=n;r("received response to %s %s/%s - HTTP %d",s,l,a,u)}));a.channel("undici:request:trailers").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("trailers received from %s %s/%s",s,l,a)}));a.channel("undici:request:error").subscribe((n=>{const{request:{method:s,path:a,origin:l},error:u}=n;r("request to %s %s/%s errored - %s",s,l,a,u.message)}));p=true}if(A.enabled){if(!p){const r=u.enabled?u:A;a.channel("undici:client:beforeConnect").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connecting to %s%s using %s%s",u,l?`:${l}`:"",a,s)}));a.channel("undici:client:connected").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connected to %s%s using %s%s",u,l?`:${l}`:"",a,s)}));a.channel("undici:client:connectError").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u},error:d}=n;r("connection to %s%s using %s%s errored - %s",u,l?`:${l}`:"",a,s,d.message)}));a.channel("undici:client:sendHeaders").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("sending request to %s %s/%s",s,l,a)}))}a.channel("undici:websocket:open").subscribe((r=>{const{address:{address:n,port:s}}=r;A("connection opened %s%s",n,s?`:${s}`:"")}));a.channel("undici:websocket:close").subscribe((r=>{const{websocket:n,code:s,reason:a}=r;A("closed connection to %s - %s %s",n.url,s,a)}));a.channel("undici:websocket:socket_error").subscribe((r=>{A("connection errored - %s",r.message)}));a.channel("undici:websocket:ping").subscribe((r=>{A("ping received")}));a.channel("undici:websocket:pong").subscribe((r=>{A("pong received")}))}r.exports={channels:f}},2163:r=>{const n=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](r){return r&&r[n]===true}[n]=true}const s=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(r){super(r);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[s]===true}[s]=true}const a=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(r){super(r);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[a]===true}[a]=true}const l=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(r){super(r);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](r){return r&&r[l]===true}[l]=true}const u=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(r){super(r);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[u]===true}[u]=true}const d=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(r,n,s,a){super(r);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=n;this.statusCode=n;this.headers=s}static[Symbol.hasInstance](r){return r&&r[d]===true}[d]=true}const A=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(r){super(r);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](r){return r&&r[A]===true}[A]=true}const p=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(r){super(r);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](r){return r&&r[p]===true}[p]=true}const f=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(r){super(r);this.name="AbortError";this.message=r||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](r){return r&&r[f]===true}[f]=true}const g=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(r){super(r);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](r){return r&&r[g]===true}[g]=true}const y=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(r){super(r);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](r){return r&&r[y]===true}[y]=true}const b=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](r){return r&&r[b]===true}[b]=true}const C=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](r){return r&&r[C]===true}[C]=true}const w=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(r){super(r);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](r){return r&&r[w]===true}[w]=true}const B=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(r){super(r);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](r){return r&&r[B]===true}[B]=true}const I=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(r,n){super(r);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=n}static[Symbol.hasInstance](r){return r&&r[I]===true}[I]=true}const S=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(r){super(r);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](r){return r&&r[S]===true}[S]=true}const Q=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](r){return r&&r[Q]===true}[Q]=true}const v=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(r,n,s){super(r);this.name="HTTPParserError";this.code=n?`HPE_${n}`:undefined;this.data=s?s.toString():undefined}static[Symbol.hasInstance](r){return r&&r[v]===true}[v]=true}const R=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](r){return r&&r[R]===true}[R]=true}const D=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(r,n,{headers:s,data:a}){super(r);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=n;this.data=a;this.headers=s}static[Symbol.hasInstance](r){return r&&r[D]===true}[D]=true}const N=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(r,n,{headers:s,data:a}){super(r);this.name="ResponseError";this.message=r||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=n;this.data=a;this.headers=s}static[Symbol.hasInstance](r){return r&&r[N]===true}[N]=true}const T=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(r,n,s){super(n,{cause:r,...s??{}});this.name="SecureProxyConnectionError";this.message=n||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=r}static[Symbol.hasInstance](r){return r&&r[T]===true}[T]=true}r.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError}},94623:(r,n,s)=>{const{InvalidArgumentError:a,NotSupportedError:l}=s(2163);const u=s(34589);const{isValidHTTPToken:d,isValidHeaderValue:A,isStream:p,destroy:f,isBuffer:g,isFormDataLike:y,isIterable:b,isBlobLike:C,buildURL:w,validateHandler:B,getServerName:I,normalizedMethodRecords:S}=s(42336);const{channels:Q}=s(69086);const{headerNameLowerCasedRecord:v}=s(96639);const R=/[^\u0021-\u00ff]/;const D=Symbol("handler");class Request{constructor(r,{path:n,method:s,body:l,headers:u,query:A,idempotent:v,blocking:N,upgrade:T,headersTimeout:x,bodyTimeout:k,reset:_,throwOnError:P,expectContinue:F,servername:L},O){if(typeof n!=="string"){throw new a("path must be a string")}else if(n[0]!=="/"&&!(n.startsWith("http://")||n.startsWith("https://"))&&s!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(R.test(n)){throw new a("invalid request path")}if(typeof s!=="string"){throw new a("method must be a string")}else if(S[s]===undefined&&!d(s)){throw new a("invalid request method")}if(T&&typeof T!=="string"){throw new a("upgrade must be a string")}if(x!=null&&(!Number.isFinite(x)||x<0)){throw new a("invalid headersTimeout")}if(k!=null&&(!Number.isFinite(k)||k<0)){throw new a("invalid bodyTimeout")}if(_!=null&&typeof _!=="boolean"){throw new a("invalid reset")}if(F!=null&&typeof F!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=x;this.bodyTimeout=k;this.throwOnError=P===true;this.method=s;this.abort=null;if(l==null){this.body=null}else if(p(l)){this.body=l;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){f(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(g(l)){this.body=l.byteLength?l:null}else if(ArrayBuffer.isView(l)){this.body=l.buffer.byteLength?Buffer.from(l.buffer,l.byteOffset,l.byteLength):null}else if(l instanceof ArrayBuffer){this.body=l.byteLength?Buffer.from(l):null}else if(typeof l==="string"){this.body=l.length?Buffer.from(l):null}else if(y(l)||b(l)||C(l)){this.body=l}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=T||null;this.path=A?w(n,A):n;this.origin=r;this.idempotent=v==null?s==="HEAD"||s==="GET":v;this.blocking=N==null?false:N;this.reset=_==null?null:_;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=F!=null?F:false;if(Array.isArray(u)){if(u.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},30168:(r,n,s)=>{const{wellknownHeaderNames:a,headerNameLowerCasedRecord:l}=s(96639);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(r,n,s){if(s===undefined||s>=r.length){throw new TypeError("Unreachable")}const a=this.code=r.charCodeAt(s);if(a>127){throw new TypeError("key must be ascii string")}if(r.length!==++s){this.middle=new TstNode(r,n,s)}else{this.value=n}}add(r,n){const s=r.length;if(s===0){throw new TypeError("Unreachable")}let a=0;let l=this;while(true){const u=r.charCodeAt(a);if(u>127){throw new TypeError("key must be ascii string")}if(l.code===u){if(s===++a){l.value=n;break}else if(l.middle!==null){l=l.middle}else{l.middle=new TstNode(r,n,a);break}}else if(l.code=65){l|=32}while(a!==null){if(l===a.code){if(n===++s){return a}a=a.middle;break}a=a.code{const a=s(34589);const{kDestroyed:l,kBodyUsed:u,kListeners:d,kBody:A}=s(33867);const{IncomingMessage:p}=s(37067);const f=s(57075);const g=s(77030);const{Blob:y}=s(4573);const b=s(57975);const{stringify:C}=s(41792);const{EventEmitter:w}=s(78474);const{InvalidArgumentError:B}=s(2163);const{headerNameLowerCasedRecord:I}=s(96639);const{tree:S}=s(30168);const[Q,v]=process.versions.node.split(".").map((r=>Number(r)));class BodyAsyncIterable{constructor(r){this[A]=r;this[u]=false}async*[Symbol.asyncIterator](){a(!this[u],"disturbed");this[u]=true;yield*this[A]}}function wrapRequestBody(r){if(isStream(r)){if(bodyLength(r)===0){r.on("data",(function(){a(false)}))}if(typeof r.readableDidRead!=="boolean"){r[u]=false;w.prototype.on.call(r,"data",(function(){this[u]=true}))}return r}else if(r&&typeof r.pipeTo==="function"){return new BodyAsyncIterable(r)}else if(r&&typeof r!=="string"&&!ArrayBuffer.isView(r)&&isIterable(r)){return new BodyAsyncIterable(r)}else{return r}}function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){if(r===null){return false}else if(r instanceof y){return true}else if(typeof r!=="object"){return false}else{const n=r[Symbol.toStringTag];return(n==="Blob"||n==="File")&&("stream"in r&&typeof r.stream==="function"||"arrayBuffer"in r&&typeof r.arrayBuffer==="function")}}function buildURL(r,n){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const s=C(n);if(s){r+="?"+s}return r}function isValidPort(r){const n=parseInt(r,10);return n===Number(r)&&n>=0&&n<=65535}function isHttpOrHttpsPrefixed(r){return r!=null&&r[0]==="h"&&r[1]==="t"&&r[2]==="t"&&r[3]==="p"&&(r[4]===":"||r[4]==="s"&&r[5]===":")}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new B("Invalid URL: The URL argument must be a non-null object.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&isValidPort(r.port)===false){throw new B("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new B("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new B("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new B("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new B("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const n=r.port!=null?r.port:r.protocol==="https:"?443:80;let s=r.origin!=null?r.origin:`${r.protocol||""}//${r.hostname||""}:${n}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(s[s.length-1]==="/"){s=s.slice(0,s.length-1)}if(a&&a[0]!=="/"){a=`/${a}`}return new URL(`${s}${a}`)}if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new B("invalid url")}return r}function getHostname(r){if(r[0]==="["){const n=r.indexOf("]");a(n!==-1);return r.substring(1,n)}const n=r.indexOf(":");if(n===-1)return r;return r.substring(0,n)}function getServerName(r){if(!r){return null}a(typeof r==="string");const n=getHostname(r);if(g.isIP(n)){return""}return n}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const n=r._readableState;return n&&n.objectMode===false&&n.ended===true&&Number.isFinite(n.length)?n.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return r&&!!(r.destroyed||r[l]||f.isDestroyed?.(r))}function destroy(r,n){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===p){r.socket=null}r.destroy(n)}else if(n){queueMicrotask((()=>{r.emit("error",n)}))}if(r.destroyed!==true){r[l]=true}}const R=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const n=r.toString().match(R);return n?parseInt(n[1],10)*1e3:null}function headerNameToString(r){return typeof r==="string"?I[r]??r.toLowerCase():S.lookup(r)??r.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(r){return S.lookup(r)??r.toString("latin1").toLowerCase()}function parseHeaders(r,n){if(n===undefined)n={};for(let s=0;sr.toString("utf8"))):l.toString("utf8")}}}if("content-length"in n&&"content-disposition"in n){n["content-disposition"]=Buffer.from(n["content-disposition"]).toString("latin1")}return n}function parseRawHeaders(r){const n=r.length;const s=new Array(n);let a=false;let l=-1;let u;let d;let A=0;for(let n=0;n{r.close();r.byobRequest?.respond(0)}))}else{const n=Buffer.isBuffer(a)?a:Buffer.from(a);if(n.byteLength){r.enqueue(new Uint8Array(n))}}return r.desiredSize>0},async cancel(r){await n.return()},type:"bytes"})}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function addAbortListener(r,n){if("addEventListener"in r){r.addEventListener("abort",n,{once:true});return()=>r.removeEventListener("abort",n)}r.addListener("abort",n);return()=>r.removeListener("abort",n)}const D=typeof String.prototype.toWellFormed==="function";const N=typeof String.prototype.isWellFormed==="function";function toUSVString(r){return D?`${r}`.toWellFormed():b.toUSVString(r)}function isUSVString(r){return N?`${r}`.isWellFormed():toUSVString(r)===`${r}`}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let n=0;n{const{InvalidArgumentError:a}=s(2163);const{kClients:l,kRunning:u,kClose:d,kDestroy:A,kDispatch:p,kInterceptors:f}=s(33867);const g=s(63937);const y=s(18388);const b=s(66725);const C=s(42336);const w=s(94996);const B=Symbol("onConnect");const I=Symbol("onDisconnect");const S=Symbol("onConnectionError");const Q=Symbol("maxRedirections");const v=Symbol("onDrain");const R=Symbol("factory");const D=Symbol("options");function defaultFactory(r,n){return n&&n.connections===1?new b(r,n):new y(r,n)}class Agent extends g{constructor({factory:r=defaultFactory,maxRedirections:n=0,connect:s,...u}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(s!=null&&typeof s!=="function"&&typeof s!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(n)||n<0){throw new a("maxRedirections must be a positive number")}if(s&&typeof s!=="function"){s={...s}}this[f]=u.interceptors?.Agent&&Array.isArray(u.interceptors.Agent)?u.interceptors.Agent:[w({maxRedirections:n})];this[D]={...C.deepClone(u),connect:s};this[D].interceptors=u.interceptors?{...u.interceptors}:undefined;this[Q]=n;this[R]=r;this[l]=new Map;this[v]=(r,n)=>{this.emit("drain",r,[this,...n])};this[B]=(r,n)=>{this.emit("connect",r,[this,...n])};this[I]=(r,n,s)=>{this.emit("disconnect",r,[this,...n],s)};this[S]=(r,n,s)=>{this.emit("connectionError",r,[this,...n],s)}}get[u](){let r=0;for(const n of this[l].values()){r+=n[u]}return r}[p](r,n){let s;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){s=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}let u=this[l].get(s);if(!u){u=this[R](r.origin,this[D]).on("drain",this[v]).on("connect",this[B]).on("disconnect",this[I]).on("connectionError",this[S]);this[l].set(s,u)}return u.dispatch(r,n)}async[d](){const r=[];for(const n of this[l].values()){r.push(n.close())}this[l].clear();await Promise.all(r)}async[A](r){const n=[];for(const s of this[l].values()){n.push(s.destroy(r))}this[l].clear();await Promise.all(n)}}r.exports=Agent},62197:(r,n,s)=>{const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:l}=s(2163);const{PoolBase:u,kClients:d,kNeedDrain:A,kAddClient:p,kRemoveClient:f,kGetDispatcher:g}=s(34368);const y=s(18388);const{kUrl:b,kInterceptors:C}=s(33867);const{parseOrigin:w}=s(42336);const B=Symbol("factory");const I=Symbol("options");const S=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const v=Symbol("kIndex");const R=Symbol("kWeight");const D=Symbol("kMaxWeightPerServer");const N=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,n){if(r===0)return n;while(n!==0){const s=n;n=r%n;r=s}return r}function defaultFactory(r,n){return new y(r,n)}class BalancedPool extends u{constructor(r=[],{factory:n=defaultFactory,...s}={}){super();this[I]=s;this[v]=-1;this[Q]=0;this[D]=this[I].maxWeightPerServer||100;this[N]=this[I].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof n!=="function"){throw new l("factory must be a function.")}this[C]=s.interceptors?.BalancedPool&&Array.isArray(s.interceptors.BalancedPool)?s.interceptors.BalancedPool:[];this[B]=n;for(const n of r){this.addUpstream(n)}this._updateBalancedPoolStats()}addUpstream(r){const n=w(r).origin;if(this[d].find((r=>r[b].origin===n&&r.closed!==true&&r.destroyed!==true))){return this}const s=this[B](n,Object.assign({},this[I]));this[p](s);s.on("connect",(()=>{s[R]=Math.min(this[D],s[R]+this[N])}));s.on("connectionError",(()=>{s[R]=Math.max(1,s[R]-this[N]);this._updateBalancedPoolStats()}));s.on("disconnect",((...r)=>{const n=r[2];if(n&&n.code==="UND_ERR_SOCKET"){s[R]=Math.max(1,s[R]-this[N]);this._updateBalancedPoolStats()}}));for(const r of this[d]){r[R]=this[D]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let r=0;for(let n=0;nr[b].origin===n&&r.closed!==true&&r.destroyed!==true));if(s){this[f](s)}return this}get upstreams(){return this[d].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[b].origin))}[g](){if(this[d].length===0){throw new a}const r=this[d].find((r=>!r[A]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const n=this[d].map((r=>r[A])).reduce(((r,n)=>r&&n),true);if(n){return}let s=0;let l=this[d].findIndex((r=>!r[A]));while(s++this[d][l][R]&&!r[A]){l=this[v]}if(this[v]===0){this[Q]=this[Q]-this[S];if(this[Q]<=0){this[Q]=this[D]}}if(r[R]>=this[Q]&&!r[A]){return r}}this[Q]=this[d][l][R];this[v]=l;return this[d][l]}}r.exports=BalancedPool},57517:(r,n,s)=>{const a=s(34589);const l=s(42336);const{channels:u}=s(69086);const d=s(34347);const{RequestContentLengthMismatchError:A,ResponseContentLengthMismatchError:p,RequestAbortedError:f,HeadersTimeoutError:g,HeadersOverflowError:y,SocketError:b,InformationalError:C,BodyTimeoutError:w,HTTPParserError:B,ResponseExceededMaxSizeError:I}=s(2163);const{kUrl:S,kReset:Q,kClient:v,kParser:R,kBlocking:D,kRunning:N,kPending:T,kSize:x,kWriting:k,kQueue:_,kNoRef:P,kKeepAliveDefaultTimeout:F,kHostHeader:L,kPendingIdx:O,kRunningIdx:M,kError:U,kPipelining:H,kSocket:G,kKeepAliveTimeoutValue:z,kMaxHeadersSize:q,kKeepAliveMaxTimeout:V,kKeepAliveTimeoutThreshold:W,kHeadersTimeout:j,kBodyTimeout:Y,kStrictContentLength:J,kMaxRequests:$,kCounter:K,kMaxResponseSize:X,kOnError:Z,kResume:ee,kHTTPContext:te}=s(33867);const re=s(99688);const ne=Buffer.alloc(0);const se=Buffer[Symbol.species];const ie=l.addListener;const oe=l.removeAllListeners;let ae;async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?s(17166):undefined;let n;try{n=await WebAssembly.compile(s(61962))}catch(a){n=await WebAssembly.compile(r||s(17166))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onStatus(new se(de.buffer,l,s))||0},wasm_on_message_begin:r=>{a(ue.ptr===r);return ue.onMessageBegin()||0},wasm_on_header_field:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onHeaderField(new se(de.buffer,l,s))||0},wasm_on_header_value:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onHeaderValue(new se(de.buffer,l,s))||0},wasm_on_headers_complete:(r,n,s,l)=>{a(ue.ptr===r);return ue.onHeadersComplete(n,Boolean(s),Boolean(l))||0},wasm_on_body:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onBody(new se(de.buffer,l,s))||0},wasm_on_message_complete:r=>{a(ue.ptr===r);return ue.onMessageComplete()||0}}})}let le=null;let ce=lazyllhttp();ce.catch();let ue=null;let de=null;let Ae=0;let pe=null;const fe=0;const he=1;const me=2|he;const ge=4|he;const ye=8|fe;class Parser{constructor(r,n,{exports:s}){a(Number.isFinite(r[q])&&r[q]>0);this.llhttp=s;this.ptr=this.llhttp.llhttp_alloc(re.TYPE.RESPONSE);this.client=r;this.socket=n;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[q];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[X]}setTimeout(r,n){if(r!==this.timeoutValue||n&he^this.timeoutType&he){if(this.timeout){d.clearTimeout(this.timeout);this.timeout=null}if(r){if(n&he){this.timeout=d.setFastTimeout(onParserTimeout,r,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,r,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=n}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(ue==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===ge);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||ne);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(ue==null);a(!this.paused);const{socket:n,llhttp:s}=this;if(r.length>Ae){if(pe){s.free(pe)}Ae=Math.ceil(r.length/4096)*4096;pe=s.malloc(Ae)}new Uint8Array(s.memory.buffer,pe,Ae).set(r);try{let a;try{de=r;ue=this;a=s.llhttp_execute(this.ptr,pe,r.length)}catch(r){throw r}finally{ue=null;de=null}const l=s.llhttp_get_error_pos(this.ptr)-pe;if(a===re.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(l))}else if(a===re.ERROR.PAUSED){this.paused=true;n.unshift(r.slice(l))}else if(a!==re.ERROR.OK){const n=s.llhttp_get_error_reason(this.ptr);let u="";if(n){const r=new Uint8Array(s.memory.buffer,n).indexOf(0);u="Response does not match the HTTP/1.1 protocol ("+Buffer.from(s.memory.buffer,n,r).toString()+")"}throw new B(u,re.ERROR[a],r.slice(l))}}catch(r){l.destroy(n,r)}}destroy(){a(this.ptr!=null);a(ue==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&d.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:n}=this;if(r.destroyed){return-1}const s=n[_][n[M]];if(!s){return-1}s.onResponseStarted()}onHeaderField(r){const n=this.headers.length;if((n&1)===0){this.headers.push(r)}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let n=this.headers.length;if((n&1)===1){this.headers.push(r);n+=1}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],r])}const s=this.headers[n-2];if(s.length===10){const n=l.bufferToLowerCasedHeaderName(s);if(n==="keep-alive"){this.keepAlive+=r.toString()}else if(n==="connection"){this.connection+=r.toString()}}else if(s.length===14&&l.bufferToLowerCasedHeaderName(s)==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){l.destroy(this.socket,new y)}}onUpgrade(r){const{upgrade:n,client:s,socket:u,headers:d,statusCode:A}=this;a(n);a(s[G]===u);a(!u.destroyed);a(!this.paused);a((d.length&1)===0);const p=s[_][s[M]];a(p);a(p.upgrade||p.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;u.unshift(r);u[R].destroy();u[R]=null;u[v]=null;u[U]=null;oe(u);s[G]=null;s[te]=null;s[_][s[M]++]=null;s.emit("disconnect",s[S],[s],new C("upgrade"));try{p.onUpgrade(A,d,u)}catch(r){l.destroy(u,r)}s[ee]()}onHeadersComplete(r,n,s){const{client:u,socket:d,headers:A,statusText:p}=this;if(d.destroyed){return-1}const f=u[_][u[M]];if(!f){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){l.destroy(d,new b("bad response",l.getSocketInfo(d)));return-1}if(n&&!f.upgrade){l.destroy(d,new b("bad upgrade",l.getSocketInfo(d)));return-1}a(this.timeoutType===me);this.statusCode=r;this.shouldKeepAlive=s||f.method==="HEAD"&&!d[Q]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=f.bodyTimeout!=null?f.bodyTimeout:u[Y];this.setTimeout(r,ge)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(f.method==="CONNECT"){a(u[N]===1);this.upgrade=true;return 2}if(n){a(u[N]===1);this.upgrade=true;return 2}a((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&u[H]){const r=this.keepAlive?l.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const n=Math.min(r-u[W],u[V]);if(n<=0){d[Q]=true}else{u[z]=n}}else{u[z]=u[F]}}else{d[Q]=true}const g=f.onHeaders(r,A,this.resume,p)===false;if(f.aborted){return-1}if(f.method==="HEAD"){return 1}if(r<200){return 1}if(d[D]){d[D]=false;u[ee]()}return g?re.ERROR.PAUSED:0}onBody(r){const{client:n,socket:s,statusCode:u,maxResponseSize:d}=this;if(s.destroyed){return-1}const A=n[_][n[M]];a(A);a(this.timeoutType===ge);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(u>=200);if(d>-1&&this.bytesRead+r.length>d){l.destroy(s,new I);return-1}this.bytesRead+=r.length;if(A.onData(r)===false){return re.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:n,statusCode:s,upgrade:u,headers:d,contentLength:A,bytesRead:f,shouldKeepAlive:g}=this;if(n.destroyed&&(!s||g)){return-1}if(u){return}a(s>=100);a((this.headers.length&1)===0);const y=r[_][r[M]];a(y);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(s<200){return}if(y.method!=="HEAD"&&A&&f!==parseInt(A,10)){l.destroy(n,new p);return-1}y.onComplete(d);r[_][r[M]++]=null;if(n[k]){a(r[N]===0);l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(!g){l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(n[Q]&&r[N]===0){l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(r[H]==null||r[H]===1){setImmediate((()=>r[ee]()))}else{r[ee]()}}}function onParserTimeout(r){const{socket:n,timeoutType:s,client:u,paused:d}=r.deref();if(s===me){if(!n[k]||n.writableNeedDrain||u[N]>1){a(!d,"cannot be paused while waiting for headers");l.destroy(n,new g)}}else if(s===ge){if(!d){l.destroy(n,new w)}}else if(s===ye){a(u[N]===0&&u[z]);l.destroy(n,new C("socket idle timeout"))}}async function connectH1(r,n){r[G]=n;if(!le){le=await ce;ce=null}n[P]=false;n[k]=false;n[Q]=false;n[D]=false;n[R]=new Parser(r,n,le);ie(n,"error",(function(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const n=this[R];if(r.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}this[U]=r;this[v][Z](r)}));ie(n,"readable",(function(){const r=this[R];if(r){r.readMore()}}));ie(n,"end",(function(){const r=this[R];if(r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}l.destroy(this,new b("other side closed",l.getSocketInfo(this)))}));ie(n,"close",(function(){const r=this[v];const n=this[R];if(n){if(!this[U]&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete()}this[R].destroy();this[R]=null}const s=this[U]||new b("closed",l.getSocketInfo(this));r[G]=null;r[te]=null;if(r.destroyed){a(r[T]===0);const n=r[_].splice(r[M]);for(let a=0;a0&&s.code!=="UND_ERR_INFO"){const n=r[_][r[M]];r[_][r[M]++]=null;l.errorRequest(r,n,s)}r[O]=r[M];a(r[N]===0);r.emit("disconnect",r[S],[r],s);r[ee]()}));let s=false;n.on("close",(()=>{s=true}));return{version:"h1",defaultPipelining:1,write(...n){return writeH1(r,...n)},resume(){resumeH1(r)},destroy(r,a){if(s){queueMicrotask(a)}else{n.destroy(r).on("close",a)}},get destroyed(){return n.destroyed},busy(s){if(n[k]||n[Q]||n[D]){return true}if(s){if(r[N]>0&&!s.idempotent){return true}if(r[N]>0&&(s.upgrade||s.method==="CONNECT")){return true}if(r[N]>0&&l.bodyLength(s.body)!==0&&(l.isStream(s.body)||l.isAsyncIterable(s.body)||l.isFormDataLike(s.body))){return true}}return false}}}function resumeH1(r){const n=r[G];if(n&&!n.destroyed){if(r[x]===0){if(!n[P]&&n.unref){n.unref();n[P]=true}}else if(n[P]&&n.ref){n.ref();n[P]=false}if(r[x]===0){if(n[R].timeoutType!==ye){n[R].setTimeout(r[z],ye)}}else if(r[N]>0&&n[R].statusCode<200){if(n[R].timeoutType!==me){const s=r[_][r[M]];const a=s.headersTimeout!=null?s.headersTimeout:r[j];n[R].setTimeout(a,me)}}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function writeH1(r,n){const{method:d,path:p,host:g,upgrade:y,blocking:b,reset:w}=n;let{body:B,headers:I,contentLength:S}=n;const v=d==="PUT"||d==="POST"||d==="PATCH"||d==="QUERY"||d==="PROPFIND"||d==="PROPPATCH";if(l.isFormDataLike(B)){if(!ae){ae=s(58780).extractBody}const[r,a]=ae(B);if(n.contentType==null){I.push("content-type",a)}B=r.stream;S=r.length}else if(l.isBlobLike(B)&&n.contentType==null&&B.type){I.push("content-type",B.type)}if(B&&typeof B.read==="function"){B.read(0)}const R=l.bodyLength(B);S=R??S;if(S===null){S=n.contentLength}if(S===0&&!v){S=null}if(shouldSendContentLength(d)&&S>0&&n.contentLength!==null&&n.contentLength!==S){if(r[J]){l.errorRequest(r,n,new A);return false}process.emitWarning(new A)}const N=r[G];const abort=s=>{if(n.aborted||n.completed){return}l.errorRequest(r,n,s||new f);l.destroy(B);l.destroy(N,new C("aborted"))};try{n.onConnect(abort)}catch(s){l.errorRequest(r,n,s)}if(n.aborted){return false}if(d==="HEAD"){N[Q]=true}if(y||d==="CONNECT"){N[Q]=true}if(w!=null){N[Q]=w}if(r[$]&&N[K]++>=r[$]){N[Q]=true}if(b){N[D]=true}let T=`${d} ${p} HTTP/1.1\r\n`;if(typeof g==="string"){T+=`host: ${g}\r\n`}else{T+=r[L]}if(y){T+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(r[H]&&!N[Q]){T+="connection: keep-alive\r\n"}else{T+="connection: close\r\n"}if(Array.isArray(I)){for(let r=0;r{n.removeListener("error",onFinished)}));if(!y){const r=new f;queueMicrotask((()=>onFinished(r)))}};const onFinished=function(r){if(y){return}y=true;a(d.destroyed||d[k]&&s[N]<=1);d.off("drain",onDrain).off("error",onFinished);n.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!r){try{b.end()}catch(n){r=n}}b.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){l.destroy(n,r)}else{l.destroy(n)}};n.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(n.resume){n.resume()}d.on("drain",onDrain).on("error",onFinished);if(n.errorEmitted??n.errored){setImmediate((()=>onFinished(n.errored)))}else if(n.endEmitted??n.readableEnded){setImmediate((()=>onFinished(null)))}if(n.closeEmitted??n.closed){setImmediate(onClose)}}function writeBuffer(r,n,s,u,d,A,p,f){try{if(!n){if(A===0){d.write(`${p}content-length: 0\r\n\r\n`,"latin1")}else{a(A===null,"no body must not have content length");d.write(`${p}\r\n`,"latin1")}}else if(l.isBuffer(n)){a(A===n.byteLength,"buffer body must have content length");d.cork();d.write(`${p}content-length: ${A}\r\n\r\n`,"latin1");d.write(n);d.uncork();u.onBodySent(n);if(!f&&u.reset!==false){d[Q]=true}}u.onRequestSent();s[ee]()}catch(n){r(n)}}async function writeBlob(r,n,s,l,u,d,p,f){a(d===n.size,"blob body must have content length");try{if(d!=null&&d!==n.size){throw new A}const r=Buffer.from(await n.arrayBuffer());u.cork();u.write(`${p}content-length: ${d}\r\n\r\n`,"latin1");u.write(r);u.uncork();l.onBodySent(r);l.onRequestSent();if(!f&&l.reset!==false){u[Q]=true}s[ee]()}catch(n){r(n)}}async function writeIterable(r,n,s,l,u,d,A,p){a(d!==0||s[N]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const r=f;f=null;r()}}const waitForDrain=()=>new Promise(((r,n)=>{a(f===null);if(u[U]){n(u[U])}else{f=r}}));u.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({abort:r,socket:u,request:l,contentLength:d,client:s,expectsPayload:p,header:A});try{for await(const r of n){if(u[U]){throw u[U]}if(!g.write(r)){await waitForDrain()}}g.end()}catch(r){g.destroy(r)}finally{u.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:r,socket:n,request:s,contentLength:a,client:l,expectsPayload:u,header:d}){this.socket=n;this.request=s;this.contentLength=a;this.client=l;this.bytesWritten=0;this.expectsPayload=u;this.header=d;this.abort=r;n[k]=true}write(r){const{socket:n,request:s,contentLength:a,client:l,bytesWritten:u,expectsPayload:d,header:p}=this;if(n[U]){throw n[U]}if(n.destroyed){return false}const f=Buffer.byteLength(r);if(!f){return true}if(a!==null&&u+f>a){if(l[J]){throw new A}process.emitWarning(new A)}n.cork();if(u===0){if(!d&&s.reset!==false){n[Q]=true}if(a===null){n.write(`${p}transfer-encoding: chunked\r\n`,"latin1")}else{n.write(`${p}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){n.write(`\r\n${f.toString(16)}\r\n`,"latin1")}this.bytesWritten+=f;const g=n.write(r);n.uncork();s.onBodySent(r);if(!g){if(n[R].timeout&&n[R].timeoutType===me){if(n[R].timeout.refresh){n[R].timeout.refresh()}}}return g}end(){const{socket:r,contentLength:n,client:s,bytesWritten:a,expectsPayload:l,header:u,request:d}=this;d.onRequestSent();r[k]=false;if(r[U]){throw r[U]}if(r.destroyed){return}if(a===0){if(l){r.write(`${u}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${u}\r\n`,"latin1")}}else if(n===null){r.write("\r\n0\r\n\r\n","latin1")}if(n!==null&&a!==n){if(s[J]){throw new A}else{process.emitWarning(new A)}}if(r[R].timeout&&r[R].timeoutType===me){if(r[R].timeout.refresh){r[R].timeout.refresh()}}s[ee]()}destroy(r){const{socket:n,client:s,abort:l}=this;n[k]=false;if(r){a(s[N]<=1,"pipeline should only contain this request");l(r)}}}r.exports=connectH1},32932:(r,n,s)=>{const a=s(34589);const{pipeline:l}=s(57075);const u=s(42336);const{RequestContentLengthMismatchError:d,RequestAbortedError:A,SocketError:p,InformationalError:f}=s(2163);const{kUrl:g,kReset:y,kClient:b,kRunning:C,kPending:w,kQueue:B,kPendingIdx:I,kRunningIdx:S,kError:Q,kSocket:v,kStrictContentLength:R,kOnError:D,kMaxConcurrentStreams:N,kHTTP2Session:T,kResume:x,kSize:k,kHTTPContext:_}=s(33867);const P=Symbol("open streams");let F;let L=false;let O;try{O=s(32467)}catch{O={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:M,HTTP2_HEADER_METHOD:U,HTTP2_HEADER_PATH:H,HTTP2_HEADER_SCHEME:G,HTTP2_HEADER_CONTENT_LENGTH:z,HTTP2_HEADER_EXPECT:q,HTTP2_HEADER_STATUS:V}}=O;function parseH2Headers(r){const n=[];for(const[s,a]of Object.entries(r)){if(Array.isArray(a)){for(const r of a){n.push(Buffer.from(s),Buffer.from(r))}}else{n.push(Buffer.from(s),Buffer.from(a))}}return n}async function connectH2(r,n){r[v]=n;if(!L){L=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=O.connect(r[g],{createConnection:()=>n,peerMaxConcurrentStreams:r[N]});s[P]=0;s[b]=r;s[v]=n;u.addListener(s,"error",onHttp2SessionError);u.addListener(s,"frameError",onHttp2FrameError);u.addListener(s,"end",onHttp2SessionEnd);u.addListener(s,"goaway",onHTTP2GoAway);u.addListener(s,"close",(function(){const{[b]:r}=this;const{[v]:n}=r;const s=this[v][Q]||this[Q]||new p("closed",u.getSocketInfo(n));r[T]=null;if(r.destroyed){a(r[w]===0);const n=r[B].splice(r[S]);for(let a=0;a{l=true}));return{version:"h2",defaultPipelining:Infinity,write(...n){return writeH2(r,...n)},resume(){resumeH2(r)},destroy(r,s){if(l){queueMicrotask(s)}else{n.destroy(r).on("close",s)}},get destroyed(){return n.destroyed},busy(){return false}}}function resumeH2(r){const n=r[v];if(n?.destroyed===false){if(r[k]===0&&r[N]===0){n.unref();r[T].unref()}else{n.ref();r[T].ref()}}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[v][Q]=r;this[b][D](r)}function onHttp2FrameError(r,n,s){if(s===0){const s=new f(`HTTP/2: "frameError" received - type ${r}, code ${n}`);this[v][Q]=s;this[b][D](s)}}function onHttp2SessionEnd(){const r=new p("other side closed",u.getSocketInfo(this[v]));this.destroy(r);u.destroy(this[v],r)}function onHTTP2GoAway(r){const n=this[Q]||new p(`HTTP/2: "GOAWAY" frame received with code ${r}`,u.getSocketInfo(this));const s=this[b];s[v]=null;s[_]=null;if(this[T]!=null){this[T].destroy(n);this[T]=null}u.destroy(this[v],n);if(s[S]{if(n.aborted||n.completed){return}s=s||new A;u.errorRequest(r,n,s);if(_!=null){u.destroy(_,s)}u.destroy(N,s);r[B][r[S]++]=null;r[x]()};try{n.onConnect(abort)}catch(s){u.errorRequest(r,n,s)}if(n.aborted){return false}if(p==="CONNECT"){l.ref();_=l.request(k,{endStream:false,signal:Q});if(_.id&&!_.pending){n.onUpgrade(null,null,_);++l[P];r[B][r[S]++]=null}else{_.once("ready",(()=>{n.onUpgrade(null,null,_);++l[P];r[B][r[S]++]=null}))}_.once("close",(()=>{l[P]-=1;if(l[P]===0)l.unref()}));return true}k[H]=y;k[G]="https";const W=p==="PUT"||p==="POST"||p==="PATCH";if(N&&typeof N.read==="function"){N.read(0)}let j=u.bodyLength(N);if(u.isFormDataLike(N)){F??=s(58780).extractBody;const[r,n]=F(N);k["content-type"]=n;N=r.stream;j=r.length}if(j==null){j=n.contentLength}if(j===0||!W){j=null}if(shouldSendContentLength(p)&&j>0&&n.contentLength!=null&&n.contentLength!==j){if(r[R]){u.errorRequest(r,n,new d);return false}process.emitWarning(new d)}if(j!=null){a(N,"no body must not have content length");k[z]=`${j}`}l.ref();const Y=p==="GET"||p==="HEAD"||N===null;if(w){k[q]="100-continue";_=l.request(k,{endStream:Y,signal:Q});_.once("continue",writeBodyH2)}else{_=l.request(k,{endStream:Y,signal:Q});writeBodyH2()}++l[P];_.once("response",(s=>{const{[V]:a,...l}=s;n.onResponseStarted();if(n.aborted){const s=new A;u.errorRequest(r,n,s);u.destroy(_,s);return}if(n.onHeaders(Number(a),parseH2Headers(l),_.resume.bind(_),"")===false){_.pause()}_.on("data",(r=>{if(n.onData(r)===false){_.pause()}}))}));_.once("end",(()=>{if(_.state?.state==null||_.state.state<6){n.onComplete([])}if(l[P]===0){l.unref()}abort(new f("HTTP/2: stream half-closed (remote)"));r[B][r[S]++]=null;r[I]=r[S];r[x]()}));_.once("close",(()=>{l[P]-=1;if(l[P]===0){l.unref()}}));_.once("error",(function(r){abort(r)}));_.once("frameError",((r,n)=>{abort(new f(`HTTP/2: "frameError" received - type ${r}, code ${n}`))}));return true;function writeBodyH2(){if(!N||j===0){writeBuffer(abort,_,null,r,n,r[v],j,W)}else if(u.isBuffer(N)){writeBuffer(abort,_,N,r,n,r[v],j,W)}else if(u.isBlobLike(N)){if(typeof N.stream==="function"){writeIterable(abort,_,N.stream(),r,n,r[v],j,W)}else{writeBlob(abort,_,N,r,n,r[v],j,W)}}else if(u.isStream(N)){writeStream(abort,r[v],W,_,N,r,n,j)}else if(u.isIterable(N)){writeIterable(abort,_,N,r,n,r[v],j,W)}else{a(false)}}}function writeBuffer(r,n,s,l,d,A,p,f){try{if(s!=null&&u.isBuffer(s)){a(p===s.byteLength,"buffer body must have content length");n.cork();n.write(s);n.uncork();n.end();d.onBodySent(s)}if(!f){A[y]=true}d.onRequestSent();l[x]()}catch(n){r(n)}}function writeStream(r,n,s,d,A,p,f,g){a(g!==0||p[C]===0,"stream body cannot be pipelined");const b=l(A,d,(a=>{if(a){u.destroy(b,a);r(a)}else{u.removeAllListeners(b);f.onRequestSent();if(!s){n[y]=true}p[x]()}}));u.addListener(b,"data",onPipeData);function onPipeData(r){f.onBodySent(r)}}async function writeBlob(r,n,s,l,u,A,p,f){a(p===s.size,"blob body must have content length");try{if(p!=null&&p!==s.size){throw new d}const r=Buffer.from(await s.arrayBuffer());n.cork();n.write(r);n.uncork();n.end();u.onBodySent(r);u.onRequestSent();if(!f){A[y]=true}l[x]()}catch(n){r(n)}}async function writeIterable(r,n,s,l,u,d,A,p){a(A!==0||l[C]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const r=f;f=null;r()}}const waitForDrain=()=>new Promise(((r,n)=>{a(f===null);if(d[Q]){n(d[Q])}else{f=r}}));n.on("close",onDrain).on("drain",onDrain);try{for await(const r of s){if(d[Q]){throw d[Q]}const s=n.write(r);u.onBodySent(r);if(!s){await waitForDrain()}}n.end();u.onRequestSent();if(!p){d[y]=true}l[x]()}catch(n){r(n)}finally{n.off("close",onDrain).off("drain",onDrain)}}r.exports=connectH2},66725:(r,n,s)=>{const a=s(34589);const l=s(77030);const u=s(37067);const d=s(42336);const{channels:A}=s(69086);const p=s(94623);const f=s(63937);const{InvalidArgumentError:g,InformationalError:y,ClientDestroyedError:b}=s(2163);const C=s(3952);const{kUrl:w,kServerName:B,kClient:I,kBusy:S,kConnect:Q,kResuming:v,kRunning:R,kPending:D,kSize:N,kQueue:T,kConnected:x,kConnecting:k,kNeedDrain:_,kKeepAliveDefaultTimeout:P,kHostHeader:F,kPendingIdx:L,kRunningIdx:O,kError:M,kPipelining:U,kKeepAliveTimeoutValue:H,kMaxHeadersSize:G,kKeepAliveMaxTimeout:z,kKeepAliveTimeoutThreshold:q,kHeadersTimeout:V,kBodyTimeout:W,kStrictContentLength:j,kConnector:Y,kMaxRedirections:J,kMaxRequests:$,kCounter:K,kClose:X,kDestroy:Z,kDispatch:ee,kInterceptors:te,kLocalAddress:re,kMaxResponseSize:ne,kOnError:se,kHTTPContext:ie,kMaxConcurrentStreams:oe,kResume:ae}=s(33867);const le=s(57517);const ce=s(32932);let ue=false;const de=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(r){return r[U]??r[ie]?.defaultPipelining??1}class Client extends f{constructor(r,{interceptors:n,maxHeaderSize:s,headersTimeout:a,socketTimeout:A,requestTimeout:p,connectTimeout:f,bodyTimeout:y,idleTimeout:b,keepAlive:I,keepAliveTimeout:S,maxKeepAliveTimeout:Q,keepAliveMaxTimeout:R,keepAliveTimeoutThreshold:D,socketPath:N,pipelining:x,tls:k,strictContentLength:M,maxCachedSessions:K,maxRedirections:X,connect:Z,maxRequestsPerClient:ee,localAddress:le,maxResponseSize:ce,autoSelectFamily:pe,autoSelectFamilyAttemptTimeout:fe,maxConcurrentStreams:he,allowH2:me}={}){super();if(I!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(A!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(p!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(b!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(Q!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(s!=null&&!Number.isFinite(s)){throw new g("invalid maxHeaderSize")}if(N!=null&&typeof N!=="string"){throw new g("invalid socketPath")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new g("invalid connectTimeout")}if(S!=null&&(!Number.isFinite(S)||S<=0)){throw new g("invalid keepAliveTimeout")}if(R!=null&&(!Number.isFinite(R)||R<=0)){throw new g("invalid keepAliveMaxTimeout")}if(D!=null&&!Number.isFinite(D)){throw new g("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new g("headersTimeout must be a positive integer or zero")}if(y!=null&&(!Number.isInteger(y)||y<0)){throw new g("bodyTimeout must be a positive integer or zero")}if(Z!=null&&typeof Z!=="function"&&typeof Z!=="object"){throw new g("connect must be a function or an object")}if(X!=null&&(!Number.isInteger(X)||X<0)){throw new g("maxRedirections must be a positive number")}if(ee!=null&&(!Number.isInteger(ee)||ee<0)){throw new g("maxRequestsPerClient must be a positive number")}if(le!=null&&(typeof le!=="string"||l.isIP(le)===0)){throw new g("localAddress must be valid string IP address")}if(ce!=null&&(!Number.isInteger(ce)||ce<-1)){throw new g("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(me!=null&&typeof me!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(he!=null&&(typeof he!=="number"||he<1)){throw new g("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof Z!=="function"){Z=C({...k,maxCachedSessions:K,allowH2:me,socketPath:N,timeout:f,...pe?{autoSelectFamily:pe,autoSelectFamilyAttemptTimeout:fe}:undefined,...Z})}if(n?.Client&&Array.isArray(n.Client)){this[te]=n.Client;if(!ue){ue=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[te]=[Ae({maxRedirections:X})]}this[w]=d.parseOrigin(r);this[Y]=Z;this[U]=x!=null?x:1;this[G]=s||u.maxHeaderSize;this[P]=S==null?4e3:S;this[z]=R==null?6e5:R;this[q]=D==null?2e3:D;this[H]=this[P];this[B]=null;this[re]=le!=null?le:null;this[v]=0;this[_]=0;this[F]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`;this[W]=y!=null?y:3e5;this[V]=a!=null?a:3e5;this[j]=M==null?true:M;this[J]=X;this[$]=ee;this[de]=null;this[ne]=ce>-1?ce:-1;this[oe]=he!=null?he:100;this[ie]=null;this[T]=[];this[O]=0;this[L]=0;this[ae]=r=>resume(this,r);this[se]=r=>onError(this,r)}get pipelining(){return this[U]}set pipelining(r){this[U]=r;this[ae](true)}get[D](){return this[T].length-this[L]}get[R](){return this[L]-this[O]}get[N](){return this[T].length-this[O]}get[x](){return!!this[ie]&&!this[k]&&!this[ie].destroyed}get[S](){return Boolean(this[ie]?.busy(null)||this[N]>=(getPipelining(this)||1)||this[D]>0)}[Q](r){connect(this);this.once("connect",r)}[ee](r,n){const s=r.origin||this[w].origin;const a=new p(s,r,n);this[T].push(a);if(this[v]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[v]=1;queueMicrotask((()=>resume(this)))}else{this[ae](true)}if(this[v]&&this[_]!==2&&this[S]){this[_]=2}return this[_]<2}async[X](){return new Promise((r=>{if(this[N]){this[de]=r}else{r(null)}}))}async[Z](r){return new Promise((n=>{const s=this[T].splice(this[L]);for(let n=0;n{if(this[de]){this[de]();this[de]=null}n(null)};if(this[ie]){this[ie].destroy(r,callback);this[ie]=null}else{queueMicrotask(callback)}this[ae]()}))}}const Ae=s(94996);function onError(r,n){if(r[R]===0&&n.code!=="UND_ERR_INFO"&&n.code!=="UND_ERR_SOCKET"){a(r[L]===r[O]);const s=r[T].splice(r[O]);for(let a=0;a{r[Y]({host:n,hostname:s,protocol:u,port:p,servername:r[B],localAddress:r[re]},((r,n)=>{if(r){l(r)}else{a(n)}}))}));if(r.destroyed){d.destroy(l.on("error",noop),new b);return}a(l);try{r[ie]=l.alpnProtocol==="h2"?await ce(r,l):await le(r,l)}catch(r){l.destroy().on("error",noop);throw r}r[k]=false;l[K]=0;l[$]=r[$];l[I]=r;l[M]=null;if(A.connected.hasSubscribers){A.connected.publish({connectParams:{host:n,hostname:s,protocol:u,port:p,version:r[ie]?.version,servername:r[B],localAddress:r[re]},connector:r[Y],socket:l})}r.emit("connect",r[w],[r])}catch(l){if(r.destroyed){return}r[k]=false;if(A.connectError.hasSubscribers){A.connectError.publish({connectParams:{host:n,hostname:s,protocol:u,port:p,version:r[ie]?.version,servername:r[B],localAddress:r[re]},connector:r[Y],error:l})}if(l.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[R]===0);while(r[D]>0&&r[T][r[L]].servername===r[B]){const n=r[T][r[L]++];d.errorRequest(r,n,l)}}else{onError(r,l)}r.emit("connectionError",r[w],[r],l)}r[ae]()}function emitDrain(r){r[_]=0;r.emit("drain",r[w],[r])}function resume(r,n){if(r[v]===2){return}r[v]=2;_resume(r,n);r[v]=0;if(r[O]>256){r[T].splice(0,r[O]);r[L]-=r[O];r[O]=0}}function _resume(r,n){while(true){if(r.destroyed){a(r[D]===0);return}if(r[de]&&!r[N]){r[de]();r[de]=null;return}if(r[ie]){r[ie].resume()}if(r[S]){r[_]=2}else if(r[_]===2){if(n){r[_]=1;queueMicrotask((()=>emitDrain(r)))}else{emitDrain(r)}continue}if(r[D]===0){return}if(r[R]>=(getPipelining(r)||1)){return}const s=r[T][r[L]];if(r[w].protocol==="https:"&&r[B]!==s.servername){if(r[R]>0){return}r[B]=s.servername;r[ie]?.destroy(new y("servername changed"),(()=>{r[ie]=null;resume(r)}))}if(r[k]){return}if(!r[ie]){connect(r);return}if(r[ie].destroyed){return}if(r[ie].busy(s)){return}if(!s.aborted&&r[ie].write(s)){r[L]++}else{r[T].splice(r[L],1)}}}r.exports=Client},63937:(r,n,s)=>{const a=s(59667);const{ClientDestroyedError:l,ClientClosedError:u,InvalidArgumentError:d}=s(2163);const{kDestroy:A,kClose:p,kClosed:f,kDestroyed:g,kDispatch:y,kInterceptors:b}=s(33867);const C=Symbol("onDestroyed");const w=Symbol("onClosed");const B=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[g]=false;this[C]=null;this[f]=false;this[w]=[]}get destroyed(){return this[g]}get closed(){return this[f]}get interceptors(){return this[b]}set interceptors(r){if(r){for(let n=r.length-1;n>=0;n--){const r=this[b][n];if(typeof r!=="function"){throw new d("interceptor must be an function")}}}this[b]=r}close(r){if(r===undefined){return new Promise(((r,n)=>{this.close(((s,a)=>s?n(s):r(a)))}))}if(typeof r!=="function"){throw new d("invalid callback")}if(this[g]){queueMicrotask((()=>r(new l,null)));return}if(this[f]){if(this[w]){this[w].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[f]=true;this[w].push(r);const onClosed=()=>{const r=this[w];this[w]=null;for(let n=0;nthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,n){if(typeof r==="function"){n=r;r=null}if(n===undefined){return new Promise(((n,s)=>{this.destroy(r,((r,a)=>r?s(r):n(a)))}))}if(typeof n!=="function"){throw new d("invalid callback")}if(this[g]){if(this[C]){this[C].push(n)}else{queueMicrotask((()=>n(null,null)))}return}if(!r){r=new l}this[g]=true;this[C]=this[C]||[];this[C].push(n);const onDestroyed=()=>{const r=this[C];this[C]=null;for(let n=0;n{queueMicrotask(onDestroyed)}))}[B](r,n){if(!this[b]||this[b].length===0){this[B]=this[y];return this[y](r,n)}let s=this[y].bind(this);for(let r=this[b].length-1;r>=0;r--){s=this[b][r](s)}this[B]=s;return s(r,n)}dispatch(r,n){if(!n||typeof n!=="object"){throw new d("handler must be an object")}try{if(!r||typeof r!=="object"){throw new d("opts must be an object.")}if(this[g]||this[C]){throw new l}if(this[f]){throw new u}return this[B](r,n)}catch(r){if(typeof n.onError!=="function"){throw new d("invalid onError method")}n.onError(r);return false}}}r.exports=DispatcherBase},59667:(r,n,s)=>{const a=s(78474);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...r){const n=Array.isArray(r[0])?r[0]:r;let s=this.dispatch.bind(this);for(const r of n){if(r==null){continue}if(typeof r!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof r}`)}s=r(s);if(s==null||typeof s!=="function"||s.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,s)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(r,n){super();this.#e=r;this.#t=n}dispatch(...r){this.#t(...r)}close(...r){return this.#e.close(...r)}destroy(...r){return this.#e.destroy(...r)}}r.exports=Dispatcher},92609:(r,n,s)=>{const a=s(63937);const{kClose:l,kDestroy:u,kClosed:d,kDestroyed:A,kDispatch:p,kNoProxyAgent:f,kHttpProxyAgent:g,kHttpsProxyAgent:y}=s(33867);const b=s(45680);const C=s(60429);const w={"http:":80,"https:":443};let B=false;class EnvHttpProxyAgent extends a{#r=null;#n=null;#s=null;constructor(r={}){super();this.#s=r;if(!B){B=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:n,httpsProxy:s,noProxy:a,...l}=r;this[f]=new C(l);const u=n??process.env.http_proxy??process.env.HTTP_PROXY;if(u){this[g]=new b({...l,uri:u})}else{this[g]=this[f]}const d=s??process.env.https_proxy??process.env.HTTPS_PROXY;if(d){this[y]=new b({...l,uri:d})}else{this[y]=this[g]}this.#i()}[p](r,n){const s=new URL(r.origin);const a=this.#o(s);return a.dispatch(r,n)}async[l](){await this[f].close();if(!this[g][d]){await this[g].close()}if(!this[y][d]){await this[y].close()}}async[u](r){await this[f].destroy(r);if(!this[g][A]){await this[g].destroy(r)}if(!this[y][A]){await this[y].destroy(r)}}#o(r){let{protocol:n,host:s,port:a}=r;s=s.replace(/:\d*$/,"").toLowerCase();a=Number.parseInt(a,10)||w[n]||0;if(!this.#a(s,a)){return this[f]}if(n==="https:"){return this[y]}return this[g]}#a(r,n){if(this.#l){this.#i()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let s=0;s{const n=2048;const s=n-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(n);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&s)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&s}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&s;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const n=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return n}}},34368:(r,n,s)=>{const a=s(63937);const l=s(71492);const{kConnected:u,kSize:d,kRunning:A,kPending:p,kQueued:f,kBusy:g,kFree:y,kUrl:b,kClose:C,kDestroy:w,kDispatch:B}=s(33867);const I=s(862);const S=Symbol("clients");const Q=Symbol("needDrain");const v=Symbol("queue");const R=Symbol("closed resolve");const D=Symbol("onDrain");const N=Symbol("onConnect");const T=Symbol("onDisconnect");const x=Symbol("onConnectionError");const k=Symbol("get dispatcher");const _=Symbol("add client");const P=Symbol("remove client");const F=Symbol("stats");class PoolBase extends a{constructor(){super();this[v]=new l;this[S]=[];this[f]=0;const r=this;this[D]=function onDrain(n,s){const a=r[v];let l=false;while(!l){const n=a.shift();if(!n){break}r[f]--;l=!this.dispatch(n.opts,n.handler)}this[Q]=l;if(!this[Q]&&r[Q]){r[Q]=false;r.emit("drain",n,[r,...s])}if(r[R]&&a.isEmpty()){Promise.all(r[S].map((r=>r.close()))).then(r[R])}};this[N]=(n,s)=>{r.emit("connect",n,[r,...s])};this[T]=(n,s,a)=>{r.emit("disconnect",n,[r,...s],a)};this[x]=(n,s,a)=>{r.emit("connectionError",n,[r,...s],a)};this[F]=new I(this)}get[g](){return this[Q]}get[u](){return this[S].filter((r=>r[u])).length}get[y](){return this[S].filter((r=>r[u]&&!r[Q])).length}get[p](){let r=this[f];for(const{[p]:n}of this[S]){r+=n}return r}get[A](){let r=0;for(const{[A]:n}of this[S]){r+=n}return r}get[d](){let r=this[f];for(const{[d]:n}of this[S]){r+=n}return r}get stats(){return this[F]}async[C](){if(this[v].isEmpty()){await Promise.all(this[S].map((r=>r.close())))}else{await new Promise((r=>{this[R]=r}))}}async[w](r){while(true){const n=this[v].shift();if(!n){break}n.handler.onError(r)}await Promise.all(this[S].map((n=>n.destroy(r))))}[B](r,n){const s=this[k]();if(!s){this[Q]=true;this[v].push({opts:r,handler:n});this[f]++}else if(!s.dispatch(r,n)){s[Q]=true;this[Q]=!this[k]()}return!this[Q]}[_](r){r.on("drain",this[D]).on("connect",this[N]).on("disconnect",this[T]).on("connectionError",this[x]);this[S].push(r);if(this[Q]){queueMicrotask((()=>{if(this[Q]){this[D](r[b],[this,r])}}))}return this}[P](r){r.close((()=>{const n=this[S].indexOf(r);if(n!==-1){this[S].splice(n,1)}}));this[Q]=this[S].some((r=>!r[Q]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:S,kNeedDrain:Q,kAddClient:_,kRemoveClient:P,kGetDispatcher:k}},862:(r,n,s)=>{const{kFree:a,kConnected:l,kPending:u,kQueued:d,kRunning:A,kSize:p}=s(33867);const f=Symbol("pool");class PoolStats{constructor(r){this[f]=r}get connected(){return this[f][l]}get free(){return this[f][a]}get pending(){return this[f][u]}get queued(){return this[f][d]}get running(){return this[f][A]}get size(){return this[f][p]}}r.exports=PoolStats},18388:(r,n,s)=>{const{PoolBase:a,kClients:l,kNeedDrain:u,kAddClient:d,kGetDispatcher:A}=s(34368);const p=s(66725);const{InvalidArgumentError:f}=s(2163);const g=s(42336);const{kUrl:y,kInterceptors:b}=s(33867);const C=s(3952);const w=Symbol("options");const B=Symbol("connections");const I=Symbol("factory");function defaultFactory(r,n){return new p(r,n)}class Pool extends a{constructor(r,{connections:n,factory:s=defaultFactory,connect:a,connectTimeout:u,tls:d,maxCachedSessions:A,socketPath:p,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:Q,allowH2:v,...R}={}){super();if(n!=null&&(!Number.isFinite(n)||n<0)){throw new f("invalid connections")}if(typeof s!=="function"){throw new f("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new f("connect must be a function or an object")}if(typeof a!=="function"){a=C({...d,maxCachedSessions:A,allowH2:v,socketPath:p,timeout:u,...S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}this[b]=R.interceptors?.Pool&&Array.isArray(R.interceptors.Pool)?R.interceptors.Pool:[];this[B]=n||null;this[y]=g.parseOrigin(r);this[w]={...g.deepClone(R),connect:a,allowH2:v};this[w].interceptors=R.interceptors?{...R.interceptors}:undefined;this[I]=s;this.on("connectionError",((r,n,s)=>{for(const r of n){const n=this[l].indexOf(r);if(n!==-1){this[l].splice(n,1)}}}))}[A](){for(const r of this[l]){if(!r[u]){return r}}if(!this[B]||this[l].length{const{kProxy:a,kClose:l,kDestroy:u,kDispatch:d,kInterceptors:A}=s(33867);const{URL:p}=s(73136);const f=s(60429);const g=s(18388);const y=s(63937);const{InvalidArgumentError:b,RequestAbortedError:C,SecureProxyConnectionError:w}=s(2163);const B=s(3952);const I=s(66725);const S=Symbol("proxy agent");const Q=Symbol("proxy client");const v=Symbol("proxy headers");const R=Symbol("request tls settings");const D=Symbol("proxy tls settings");const N=Symbol("connect endpoint function");const T=Symbol("tunnel proxy");function defaultProtocolPort(r){return r==="https:"?443:80}function defaultFactory(r,n){return new g(r,n)}const noop=()=>{};function defaultAgentFactory(r,n){if(n.connections===1){return new I(r,n)}return new g(r,n)}class Http1ProxyWrapper extends y{#u;constructor(r,{headers:n={},connect:s,factory:a}){super();if(!r){throw new b("Proxy URL is mandatory")}this[v]=n;if(a){this.#u=a(r,{connect:s})}else{this.#u=new I(r,{connect:s})}}[d](r,n){const s=n.onHeaders;n.onHeaders=function(r,a,l){if(r===407){if(typeof n.onError==="function"){n.onError(new b("Proxy Authentication Required (407)"))}return}if(s)s.call(this,r,a,l)};const{origin:a,path:l="/",headers:u={}}=r;r.path=a+l;if(!("host"in u)&&!("Host"in u)){const{host:r}=new p(a);u.host=r}r.headers={...this[v],...u};return this.#u[d](r,n)}async[l](){return this.#u.close()}async[u](r){return this.#u.destroy(r)}}class ProxyAgent extends y{constructor(r){super();if(!r||typeof r==="object"&&!(r instanceof p)&&!r.uri){throw new b("Proxy uri is mandatory")}const{clientFactory:n=defaultFactory}=r;if(typeof n!=="function"){throw new b("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:s=true}=r;const l=this.#d(r);const{href:u,origin:d,port:g,protocol:y,username:I,password:x,hostname:k}=l;this[a]={uri:u,protocol:y};this[A]=r.interceptors?.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];this[R]=r.requestTls;this[D]=r.proxyTls;this[v]=r.headers||{};this[T]=s;if(r.auth&&r.token){throw new b("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[v]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[v]["proxy-authorization"]=r.token}else if(I&&x){this[v]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(x)}`).toString("base64")}`}const _=B({...r.proxyTls});this[N]=B({...r.requestTls});const P=r.factory||defaultAgentFactory;const factory=(r,n)=>{const{protocol:s}=new p(r);if(!this[T]&&s==="http:"&&this[a].protocol==="http:"){return new Http1ProxyWrapper(this[a].uri,{headers:this[v],connect:_,factory:P})}return P(r,n)};this[Q]=n(l,{connect:_});this[S]=new f({...r,factory:factory,connect:async(r,n)=>{let s=r.host;if(!r.port){s+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:l}=await this[Q].connect({origin:d,port:g,path:s,signal:r.signal,headers:{...this[v],host:r.host},servername:this[D]?.servername||k});if(l!==200){a.on("error",noop).destroy();n(new C(`Proxy response (${l}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){n(null,a);return}let u;if(this[R]){u=this[R].servername}else{u=r.servername}this[N]({...r,servername:u,httpSocket:a},n)}catch(r){if(r.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(new w(r))}else{n(r)}}}})}dispatch(r,n){const s=buildHeaders(r.headers);throwIfProxyAuthIsSent(s);if(s&&!("host"in s)&&!("Host"in s)){const{host:n}=new p(r.origin);s.host=n}return this[S].dispatch({...r,headers:s},n)}#d(r){if(typeof r==="string"){return new p(r)}else if(r instanceof p){return r}else{return new p(r.uri)}}async[l](){await this[S].close();await this[Q].close()}async[u](){await this[S].destroy();await this[Q].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const n={};for(let s=0;sr.toLowerCase()==="proxy-authorization"));if(n){throw new b("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},3090:(r,n,s)=>{const a=s(59667);const l=s(57928);class RetryAgent extends a{#A=null;#p=null;constructor(r,n={}){super(n);this.#A=r;this.#p=n}dispatch(r,n){const s=new l({...r,retryOptions:this.#p},{dispatch:this.#A.dispatch.bind(this.#A),handler:n});return this.#A.dispatch(r,s)}close(){return this.#A.close()}destroy(){return this.#A.destroy()}}r.exports=RetryAgent},72213:(r,n,s)=>{const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:l}=s(2163);const u=s(60429);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new u)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new l("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},73563:r=>{r.exports=class DecoratorHandler{#f;constructor(r){if(typeof r!=="object"||r===null){throw new TypeError("handler must be an object")}this.#f=r}onConnect(...r){return this.#f.onConnect?.(...r)}onError(...r){return this.#f.onError?.(...r)}onUpgrade(...r){return this.#f.onUpgrade?.(...r)}onResponseStarted(...r){return this.#f.onResponseStarted?.(...r)}onHeaders(...r){return this.#f.onHeaders?.(...r)}onData(...r){return this.#f.onData?.(...r)}onComplete(...r){return this.#f.onComplete?.(...r)}onBodySent(...r){return this.#f.onBodySent?.(...r)}}},52610:(r,n,s)=>{const a=s(42336);const{kBodyUsed:l}=s(33867);const u=s(34589);const{InvalidArgumentError:d}=s(2163);const A=s(78474);const p=[300,301,302,303,307,308];const f=Symbol("body");class BodyAsyncIterable{constructor(r){this[f]=r;this[l]=false}async*[Symbol.asyncIterator](){u(!this[l],"disturbed");this[l]=true;yield*this[f]}}class RedirectHandler{constructor(r,n,s,p){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new d("maxRedirections must be a positive number")}a.validateHandler(p,s.method,s.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...s,maxRedirections:0};this.maxRedirections=n;this.handler=p;this.history=[];this.redirectionLimitReached=false;if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){u(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[l]=false;A.prototype.on.call(this.opts.body,"data",(function(){this[l]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,n,s){this.handler.onUpgrade(r,n,s)}onError(r){this.handler.onError(r)}onHeaders(r,n,s,l){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,n);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,n,s,l)}const{origin:u,pathname:d,search:A}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const p=A?`${d}${A}`:d;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==u);this.opts.path=p;this.opts.origin=u;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,n){if(p.indexOf(r)===-1){return null}for(let r=0;r{const a=s(34589);const{kRetryHandlerDefaultRetry:l}=s(33867);const{RequestRetryError:u}=s(2163);const{isDisturbed:d,parseHeaders:A,parseRangeHeader:p,wrapRequestBody:f}=s(42336);function calculateRetryAfterHeader(r){const n=Date.now();return new Date(r).getTime()-n}class RetryHandler{constructor(r,n){const{retryOptions:s,...a}=r;const{retry:u,maxRetries:d,maxTimeout:A,minTimeout:p,timeoutFactor:g,methods:y,errorCodes:b,retryAfter:C,statusCodes:w}=s??{};this.dispatch=n.dispatch;this.handler=n.handler;this.opts={...a,body:f(r.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:u??RetryHandler[l],retryAfter:C??true,maxTimeout:A??30*1e3,minTimeout:p??500,timeoutFactor:g??2,maxRetries:d??5,methods:y??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:w??[500,502,503,504,429],errorCodes:b??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,n,s){if(this.handler.onUpgrade){this.handler.onUpgrade(r,n,s)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[l](r,{state:n,opts:s},a){const{statusCode:l,code:u,headers:d}=r;const{method:A,retryOptions:p}=s;const{maxRetries:f,minTimeout:g,maxTimeout:y,timeoutFactor:b,statusCodes:C,errorCodes:w,methods:B}=p;const{counter:I}=n;if(u&&u!=="UND_ERR_REQ_RETRY"&&!w.includes(u)){a(r);return}if(Array.isArray(B)&&!B.includes(A)){a(r);return}if(l!=null&&Array.isArray(C)&&!C.includes(l)){a(r);return}if(I>f){a(r);return}let S=d?.["retry-after"];if(S){S=Number(S);S=Number.isNaN(S)?calculateRetryAfterHeader(S):S*1e3}const Q=S>0?Math.min(S,y):Math.min(g*b**(I-1),y);setTimeout((()=>a(null)),Q)}onHeaders(r,n,s,l){const d=A(n);this.retryCount+=1;if(r>=300){if(this.retryOpts.statusCodes.includes(r)===false){return this.handler.onHeaders(r,n,s,l)}else{this.abort(new u("Request failed",r,{headers:d,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(r!==206&&(this.start>0||r!==200)){this.abort(new u("server does not support the range header and the payload was partially consumed",r,{headers:d,data:{count:this.retryCount}}));return false}const n=p(d["content-range"]);if(!n){this.abort(new u("Content-Range mismatch",r,{headers:d,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==d.etag){this.abort(new u("ETag mismatch",r,{headers:d,data:{count:this.retryCount}}));return false}const{start:l,size:A,end:f=A-1}=n;a(this.start===l,"content-range mismatch");a(this.end==null||this.end===f,"content-range mismatch");this.resume=s;return true}if(this.end==null){if(r===206){const u=p(d["content-range"]);if(u==null){return this.handler.onHeaders(r,n,s,l)}const{start:A,size:f,end:g=f-1}=u;a(A!=null&&Number.isFinite(A),"content-range mismatch");a(g!=null&&Number.isFinite(g),"invalid content-length");this.start=A;this.end=g}if(this.end==null){const r=d["content-length"];this.end=r!=null?Number(r)-1:null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=s;this.etag=d.etag!=null?d.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(r,n,s,l)}const f=new u("Request failed",r,{headers:d,data:{count:this.retryCount}});this.abort(f);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||d(this.opts.body)){return this.handler.onError(r)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(r,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||d(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){const r={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){r["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...r}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},83611:(r,n,s)=>{const{isIP:a}=s(77030);const{lookup:l}=s(40610);const u=s(73563);const{InvalidArgumentError:d,InformationalError:A}=s(2163);const p=Math.pow(2,31)-1;class DNSInstance{#h=0;#m=0;#g=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(r){this.#h=r.maxTTL;this.#m=r.maxItems;this.dualStack=r.dualStack;this.affinity=r.affinity;this.lookup=r.lookup??this.#y;this.pick=r.pick??this.#E}get full(){return this.#g.size===this.#m}runLookup(r,n,s){const a=this.#g.get(r.hostname);if(a==null&&this.full){s(null,r.origin);return}const l={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#h,maxItems:this.#m};if(a==null){this.lookup(r,l,((n,a)=>{if(n||a==null||a.length===0){s(n??new A("No DNS entries found"));return}this.setRecords(r,a);const u=this.#g.get(r.hostname);const d=this.pick(r,u,l.affinity);let p;if(typeof d.port==="number"){p=`:${d.port}`}else if(r.port!==""){p=`:${r.port}`}else{p=""}s(null,`${r.protocol}//${d.family===6?`[${d.address}]`:d.address}${p}`)}))}else{const u=this.pick(r,a,l.affinity);if(u==null){this.#g.delete(r.hostname);this.runLookup(r,n,s);return}let d;if(typeof u.port==="number"){d=`:${u.port}`}else if(r.port!==""){d=`:${r.port}`}else{d=""}s(null,`${r.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)}}#y(r,n,s){l(r.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((r,n)=>{if(r){return s(r)}const a=new Map;for(const r of n){a.set(`${r.address}:${r.family}`,r)}s(null,a.values())}))}#E(r,n,s){let a=null;const{records:l,offset:u}=n;let d;if(this.dualStack){if(s==null){if(u==null||u===p){n.offset=0;s=4}else{n.offset++;s=(n.offset&1)===1?6:4}}if(l[s]!=null&&l[s].ips.length>0){d=l[s]}else{d=l[s===4?6:4]}}else{d=l[s]}if(d==null||d.ips.length===0){return a}if(d.offset==null||d.offset===p){d.offset=0}else{d.offset++}const A=d.offset%d.ips.length;a=d.ips[A]??null;if(a==null){return a}if(Date.now()-a.timestamp>a.ttl){d.ips.splice(A,1);return this.pick(r,n,s)}return a}setRecords(r,n){const s=Date.now();const a={records:{4:null,6:null}};for(const r of n){r.timestamp=s;if(typeof r.ttl==="number"){r.ttl=Math.min(r.ttl,this.#h)}else{r.ttl=this.#h}const n=a.records[r.family]??{ips:[]};n.ips.push(r);a.records[r.family]=n}this.#g.set(r.hostname,a)}getHandler(r,n){return new DNSDispatchHandler(this,r,n)}}class DNSDispatchHandler extends u{#b=null;#s=null;#t=null;#f=null;#C=null;constructor(r,{origin:n,handler:s,dispatch:a},l){super(s);this.#C=n;this.#f=s;this.#s={...l};this.#b=r;this.#t=a}onError(r){switch(r.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#b.dualStack){this.#b.runLookup(this.#C,this.#s,((r,n)=>{if(r){return this.#f.onError(r)}const s={...this.#s,origin:n};this.#t(s,this)}));return}this.#f.onError(r);return}case"ENOTFOUND":this.#b.deleteRecord(this.#C);default:this.#f.onError(r);break}}}r.exports=r=>{if(r?.maxTTL!=null&&(typeof r?.maxTTL!=="number"||r?.maxTTL<0)){throw new d("Invalid maxTTL. Must be a positive number")}if(r?.maxItems!=null&&(typeof r?.maxItems!=="number"||r?.maxItems<1)){throw new d("Invalid maxItems. Must be a positive number and greater than zero")}if(r?.affinity!=null&&r?.affinity!==4&&r?.affinity!==6){throw new d("Invalid affinity. Must be either 4 or 6")}if(r?.dualStack!=null&&typeof r?.dualStack!=="boolean"){throw new d("Invalid dualStack. Must be a boolean")}if(r?.lookup!=null&&typeof r?.lookup!=="function"){throw new d("Invalid lookup. Must be a function")}if(r?.pick!=null&&typeof r?.pick!=="function"){throw new d("Invalid pick. Must be a function")}const n=r?.dualStack??true;let s;if(n){s=r?.affinity??null}else{s=r?.affinity??4}const l={maxTTL:r?.maxTTL??1e4,lookup:r?.lookup??null,pick:r?.pick??null,dualStack:n,affinity:s,maxItems:r?.maxItems??Infinity};const u=new DNSInstance(l);return r=>function dnsInterceptor(n,s){const l=n.origin.constructor===URL?n.origin:new URL(n.origin);if(a(l.hostname)!==0){return r(n,s)}u.runLookup(l,n,((a,d)=>{if(a){return s.onError(a)}let A=null;A={...n,servername:l.hostname,origin:d,headers:{host:l.hostname,...n.headers}};r(A,u.getHandler({origin:l,dispatch:r,handler:s},n))}));return true}}},396:(r,n,s)=>{const a=s(42336);const{InvalidArgumentError:l,RequestAbortedError:u}=s(2163);const d=s(73563);class DumpHandler extends d{#w=1024*1024;#B=null;#I=false;#S=false;#Q=0;#v=null;#f=null;constructor({maxSize:r},n){super(n);if(r!=null&&(!Number.isFinite(r)||r<1)){throw new l("maxSize must be a number greater than 0")}this.#w=r??this.#w;this.#f=n}onConnect(r){this.#B=r;this.#f.onConnect(this.#R.bind(this))}#R(r){this.#S=true;this.#v=r}onHeaders(r,n,s,l){const d=a.parseHeaders(n);const A=d["content-length"];if(A!=null&&A>this.#w){throw new u(`Response size (${A}) larger than maxSize (${this.#w})`)}if(this.#S){return true}return this.#f.onHeaders(r,n,s,l)}onError(r){if(this.#I){return}r=this.#v??r;this.#f.onError(r)}onData(r){this.#Q=this.#Q+r.length;if(this.#Q>=this.#w){this.#I=true;if(this.#S){this.#f.onError(this.#v)}else{this.#f.onComplete([])}}return true}onComplete(r){if(this.#I){return}if(this.#S){this.#f.onError(this.reason);return}this.#f.onComplete(r)}}function createDumpInterceptor({maxSize:r}={maxSize:1024*1024}){return n=>function Intercept(s,a){const{dumpMaxSize:l=r}=s;const u=new DumpHandler({maxSize:l},a);return n(s,u)}}r.exports=createDumpInterceptor},94996:(r,n,s)=>{const a=s(52610);function createRedirectInterceptor({maxRedirections:r}){return n=>function Intercept(s,l){const{maxRedirections:u=r}=s;if(!u){return n(s,l)}const d=new a(n,u,s,l);s={...s,maxRedirections:0};return n(s,d)}}r.exports=createRedirectInterceptor},60506:(r,n,s)=>{const a=s(52610);r.exports=r=>{const n=r?.maxRedirections;return r=>function redirectInterceptor(s,l){const{maxRedirections:u=n,...d}=s;if(!u){return r(s,l)}const A=new a(r,u,s,l);return r(d,A)}}},33738:(r,n,s)=>{const a=s(57928);r.exports=r=>n=>function retryInterceptor(s,l){return n(s,new a({...s,retryOptions:{...r,...s.retryOptions}},{handler:l,dispatch:n}))}},99688:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.SPECIAL_HEADERS=n.HEADER_STATE=n.MINOR=n.MAJOR=n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS=n.TOKEN=n.STRICT_TOKEN=n.HEX=n.URL_CHAR=n.STRICT_URL_CHAR=n.USERINFO_CHARS=n.MARK=n.ALPHANUM=n.NUM=n.HEX_MAP=n.NUM_MAP=n.ALPHA=n.FINISH=n.H_METHOD_MAP=n.METHOD_MAP=n.METHODS_RTSP=n.METHODS_ICE=n.METHODS_HTTP=n.METHODS=n.LENIENT_FLAGS=n.FLAGS=n.TYPE=n.ERROR=void 0;const a=s(3628);var l;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(l=n.ERROR||(n.ERROR={}));var u;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(u=n.TYPE||(n.TYPE={}));var d;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(d=n.FLAGS||(n.FLAGS={}));var A;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(A=n.LENIENT_FLAGS||(n.LENIENT_FLAGS={}));var p;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(p=n.METHODS||(n.METHODS={}));n.METHODS_HTTP=[p.DELETE,p.GET,p.HEAD,p.POST,p.PUT,p.CONNECT,p.OPTIONS,p.TRACE,p.COPY,p.LOCK,p.MKCOL,p.MOVE,p.PROPFIND,p.PROPPATCH,p.SEARCH,p.UNLOCK,p.BIND,p.REBIND,p.UNBIND,p.ACL,p.REPORT,p.MKACTIVITY,p.CHECKOUT,p.MERGE,p["M-SEARCH"],p.NOTIFY,p.SUBSCRIBE,p.UNSUBSCRIBE,p.PATCH,p.PURGE,p.MKCALENDAR,p.LINK,p.UNLINK,p.PRI,p.SOURCE];n.METHODS_ICE=[p.SOURCE];n.METHODS_RTSP=[p.OPTIONS,p.DESCRIBE,p.ANNOUNCE,p.SETUP,p.PLAY,p.PAUSE,p.TEARDOWN,p.GET_PARAMETER,p.SET_PARAMETER,p.REDIRECT,p.RECORD,p.FLUSH,p.GET,p.POST];n.METHOD_MAP=a.enumToMap(p);n.H_METHOD_MAP={};Object.keys(n.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){n.H_METHOD_MAP[r]=n.METHOD_MAP[r]}}));var f;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(f=n.FINISH||(n.FINISH={}));n.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){n.ALPHA.push(String.fromCharCode(r));n.ALPHA.push(String.fromCharCode(r+32))}n.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};n.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};n.NUM=["0","1","2","3","4","5","6","7","8","9"];n.ALPHANUM=n.ALPHA.concat(n.NUM);n.MARK=["-","_",".","!","~","*","'","(",")"];n.USERINFO_CHARS=n.ALPHANUM.concat(n.MARK).concat(["%",";",":","&","=","+","$",","]);n.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(n.ALPHANUM);n.URL_CHAR=n.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){n.URL_CHAR.push(r)}n.HEX=n.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);n.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(n.ALPHANUM);n.TOKEN=n.STRICT_TOKEN.concat([" "]);n.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){n.HEADER_CHARS.push(r)}}n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS.filter((r=>r!==44));n.MAJOR=n.NUM_MAP;n.MINOR=n.MAJOR;var g;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=n.HEADER_STATE||(n.HEADER_STATE={}));n.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection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AAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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QwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQo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AEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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C0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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xzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},3628:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.enumToMap=void 0;function enumToMap(r){const n={};Object.keys(r).forEach((s=>{const a=r[s];if(typeof a==="number"){n[s]=a}}));return n}n.enumToMap=enumToMap},74173:(r,n,s)=>{const{kClients:a}=s(33867);const l=s(60429);const{kAgent:u,kMockAgentSet:d,kMockAgentGet:A,kDispatches:p,kIsMockActive:f,kNetConnect:g,kGetNetConnect:y,kOptions:b,kFactory:C}=s(12765);const w=s(84469);const B=s(99972);const{matchValue:I,buildMockOptions:S}=s(84613);const{InvalidArgumentError:Q,UndiciError:v}=s(2163);const R=s(59667);const D=s(62489);const N=s(24158);class MockAgent extends R{constructor(r){super(r);this[g]=true;this[f]=true;if(r?.agent&&typeof r.agent.dispatch!=="function"){throw new Q("Argument opts.agent must implement Agent")}const n=r?.agent?r.agent:new l(r);this[u]=n;this[a]=n[a];this[b]=S(r)}get(r){let n=this[A](r);if(!n){n=this[C](r);this[d](r,n)}return n}dispatch(r,n){this.get(r.origin);return this[u].dispatch(r,n)}async close(){await this[u].close();this[a].clear()}deactivate(){this[f]=false}activate(){this[f]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[g])){this[g].push(r)}else{this[g]=[r]}}else if(typeof r==="undefined"){this[g]=true}else{throw new Q("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[f]}[d](r,n){this[a].set(r,n)}[C](r){const n=Object.assign({agent:this},this[b]);return this[b]&&this[b].connections===1?new w(r,n):new B(r,n)}[A](r){const n=this[a].get(r);if(n){return n}if(typeof r!=="string"){const n=this[C]("http://localhost:9999");this[d](r,n);return n}for(const[n,s]of Array.from(this[a])){if(s&&typeof n!=="string"&&I(n,r)){const n=this[C](r);this[d](r,n);n[p]=s[p];return n}}}[y](){return this[g]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,n])=>n[p].map((n=>({...n,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new N}={}){const n=this.pendingInterceptors();if(n.length===0){return}const s=new D("interceptor","interceptors").pluralize(n.length);throw new v(`\n${s.count} ${s.noun} ${s.is} pending:\n\n${r.format(n)}\n`.trim())}}r.exports=MockAgent},84469:(r,n,s)=>{const{promisify:a}=s(57975);const l=s(66725);const{buildMockDispatch:u}=s(84613);const{kDispatches:d,kMockAgent:A,kClose:p,kOriginalClose:f,kOrigin:g,kOriginalDispatch:y,kConnected:b}=s(12765);const{MockInterceptor:C}=s(29031);const w=s(33867);const{InvalidArgumentError:B}=s(2163);class MockClient extends l{constructor(r,n){super(r,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[A]=n.agent;this[g]=r;this[d]=[];this[b]=1;this[y]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=u.call(this);this.close=this[p]}get[w.kConnected](){return this[b]}intercept(r){return new C(r,this[d])}async[p](){await a(this[f])();this[b]=0;this[A][w.kClients].delete(this[g])}}r.exports=MockClient},38909:(r,n,s)=>{const{UndiciError:a}=s(2163);const l=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](r){return r&&r[l]===true}[l]=true}r.exports={MockNotMatchedError:MockNotMatchedError}},29031:(r,n,s)=>{const{getResponseData:a,buildKey:l,addMockDispatch:u}=s(84613);const{kDispatches:d,kDispatchKey:A,kDefaultHeaders:p,kDefaultTrailers:f,kContentLength:g,kMockDispatch:y}=s(12765);const{InvalidArgumentError:b}=s(2163);const{buildURL:C}=s(42336);class MockScope{constructor(r){this[y]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new b("waitInMs must be a valid integer > 0")}this[y].delay=r;return this}persist(){this[y].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new b("repeatTimes must be a valid integer > 0")}this[y].times=r;return this}}class MockInterceptor{constructor(r,n){if(typeof r!=="object"){throw new b("opts must be an object")}if(typeof r.path==="undefined"){throw new b("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=C(r.path,r.query)}else{const n=new URL(r.path,"data://");r.path=n.pathname+n.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[A]=l(r);this[d]=n;this[p]={};this[f]={};this[g]=false}createMockScopeDispatchData({statusCode:r,data:n,responseOptions:s}){const l=a(n);const u=this[g]?{"content-length":l.length}:{};const d={...this[p],...u,...s.headers};const A={...this[f],...s.trailers};return{statusCode:r,data:n,headers:d,trailers:A}}validateReplyParameters(r){if(typeof r.statusCode==="undefined"){throw new b("statusCode must be defined")}if(typeof r.responseOptions!=="object"||r.responseOptions===null){throw new b("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=n=>{const s=r(n);if(typeof s!=="object"||s===null){throw new b("reply options callback must return an object")}const a={data:"",responseOptions:{},...s};this.validateReplyParameters(a);return{...this.createMockScopeDispatchData(a)}};const n=u(this[d],this[A],wrappedDefaultsCallback);return new MockScope(n)}const n={statusCode:r,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(n);const s=this.createMockScopeDispatchData(n);const a=u(this[d],this[A],s);return new MockScope(a)}replyWithError(r){if(typeof r==="undefined"){throw new b("error must be defined")}const n=u(this[d],this[A],{error:r});return new MockScope(n)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new b("headers must be defined")}this[p]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new b("trailers must be defined")}this[f]=r;return this}replyContentLength(){this[g]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},99972:(r,n,s)=>{const{promisify:a}=s(57975);const l=s(18388);const{buildMockDispatch:u}=s(84613);const{kDispatches:d,kMockAgent:A,kClose:p,kOriginalClose:f,kOrigin:g,kOriginalDispatch:y,kConnected:b}=s(12765);const{MockInterceptor:C}=s(29031);const w=s(33867);const{InvalidArgumentError:B}=s(2163);class MockPool extends l{constructor(r,n){super(r,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[A]=n.agent;this[g]=r;this[d]=[];this[b]=1;this[y]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=u.call(this);this.close=this[p]}get[w.kConnected](){return this[b]}intercept(r){return new C(r,this[d])}async[p](){await a(this[f])();this[b]=0;this[A][w.kClients].delete(this[g])}}r.exports=MockPool},12765:r=>{r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},84613:(r,n,s)=>{const{MockNotMatchedError:a}=s(38909);const{kDispatches:l,kMockAgent:u,kOriginalDispatch:d,kOrigin:A,kGetNetConnect:p}=s(12765);const{buildURL:f}=s(42336);const{STATUS_CODES:g}=s(37067);const{types:{isPromise:y}}=s(57975);function matchValue(r,n){if(typeof r==="string"){return r===n}if(r instanceof RegExp){return r.test(n)}if(typeof r==="function"){return r(n)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,n])=>[r.toLocaleLowerCase(),n])))}function getHeaderByName(r,n){if(Array.isArray(r)){for(let s=0;s!r)).filter((({path:r})=>matchValue(safeUrl(r),l)));if(u.length===0){throw new a(`Mock dispatch not matched for path '${l}'`)}u=u.filter((({method:r})=>matchValue(r,n.method)));if(u.length===0){throw new a(`Mock dispatch not matched for method '${n.method}' on path '${l}'`)}u=u.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,n.body):true));if(u.length===0){throw new a(`Mock dispatch not matched for body '${n.body}' on path '${l}'`)}u=u.filter((r=>matchHeaders(r,n.headers)));if(u.length===0){const r=typeof n.headers==="object"?JSON.stringify(n.headers):n.headers;throw new a(`Mock dispatch not matched for headers '${r}' on path '${l}'`)}return u[0]}function addMockDispatch(r,n,s){const a={timesInvoked:0,times:1,persist:false,consumed:false};const l=typeof s==="function"?{callback:s}:{...s};const u={...a,...n,pending:true,data:{error:null,...l}};r.push(u);return u}function deleteMockDispatch(r,n){const s=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,n)}));if(s!==-1){r.splice(s,1)}}function buildKey(r){const{path:n,method:s,body:a,headers:l,query:u}=r;return{path:n,method:s,body:a,headers:l,query:u}}function generateKeyValues(r){const n=Object.keys(r);const s=[];for(let a=0;a=w;a.pending=C0){setTimeout((()=>{handleReply(this[l])}),g)}else{handleReply(this[l])}function handleReply(a,l=d){const f=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const g=typeof l==="function"?l({...r,headers:f}):l;if(y(g)){g.then((r=>handleReply(a,r)));return}const b=getResponseData(g);const C=generateKeyValues(A);const w=generateKeyValues(p);n.onConnect?.((r=>n.onError(r)),null);n.onHeaders?.(u,C,resume,getStatusText(u));n.onData?.(Buffer.from(b));n.onComplete?.(w);deleteMockDispatch(a,s)}function resume(){}return true}function buildMockDispatch(){const r=this[u];const n=this[A];const s=this[d];return function dispatch(l,u){if(r.isMockActive){try{mockDispatch.call(this,l,u)}catch(d){if(d instanceof a){const A=r[p]();if(A===false){throw new a(`${d.message}: subsequent request to origin ${n} was not allowed (net.connect disabled)`)}if(checkNetConnect(A,n)){s.call(this,l,u)}else{throw new a(`${d.message}: subsequent request to origin ${n} was not allowed (net.connect is not enabled for this origin)`)}}else{throw d}}}else{s.call(this,l,u)}}}function checkNetConnect(r,n){const s=new URL(n);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,s.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:n,...s}=r;return s}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},24158:(r,n,s)=>{const{Transform:a}=s(57075);const{Console:l}=s(37540);const u=process.versions.icu?"✅":"Y ";const d=process.versions.icu?"❌":"N ";r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,n,s){s(null,r)}});this.logger=new l({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const n=r.map((({method:r,path:n,data:{statusCode:s},persist:a,times:l,timesInvoked:A,origin:p})=>({Method:r,Origin:p,Path:n,"Status code":s,Persistent:a?u:d,Invocations:A,Remaining:a?Infinity:l-A})));this.logger.table(n);return this.transform.read().toString()}}},62489:r=>{const n={pronoun:"it",is:"is",was:"was",this:"this"};const s={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,n){this.singular=r;this.plural=n}pluralize(r){const a=r===1;const l=a?n:s;const u=a?this.singular:this.plural;return{...l,count:r,noun:u}}}},34347:r=>{let n=0;const s=1e3;const a=(s>>1)-1;let l;const u=Symbol("kFastTimer");const d=[];const A=-2;const p=-1;const f=0;const g=1;function onTick(){n+=a;let r=0;let s=d.length;while(r=l._idleStart+l._idleTimeout){l._state=p;l._idleStart=-1;l._onTimeout(l._timerArg)}if(l._state===p){l._state=A;if(--s!==0){d[r]=d[s]}}else{++r}}d.length=s;if(d.length!==0){refreshTimeout()}}function refreshTimeout(){if(l){l.refresh()}else{clearTimeout(l);l=setTimeout(onTick,a);if(l.unref){l.unref()}}}class FastTimer{[u]=true;_state=A;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(r,n,s){this._onTimeout=r;this._idleTimeout=n;this._timerArg=s;this.refresh()}refresh(){if(this._state===A){d.push(this)}if(!l||d.length===1){refreshTimeout()}this._state=f}clear(){this._state=p;this._idleStart=-1}}r.exports={setTimeout(r,n,a){return n<=s?setTimeout(r,n,a):new FastTimer(r,n,a)},clearTimeout(r){if(r[u]){r.clear()}else{clearTimeout(r)}},setFastTimeout(r,n,s){return new FastTimer(r,n,s)},clearFastTimeout(r){r.clear()},now(){return n},tick(r=0){n+=r-s+1;onTick();onTick()},reset(){n=0;d.length=0;clearTimeout(l);l=null},kFastTimer:u}},16722:(r,n,s)=>{const{kConstruct:a}=s(35869);const{urlEquals:l,getFieldValues:u}=s(40174);const{kEnumerableProperty:d,isDisturbed:A}=s(42336);const{webidl:p}=s(51861);const{Response:f,cloneResponse:g,fromInnerResponse:y}=s(58843);const{Request:b,fromInnerRequest:C}=s(4031);const{kState:w}=s(88299);const{fetching:B}=s(51118);const{urlIsHttpHttpsScheme:I,createDeferredPromise:S,readAllBytes:Q}=s(29952);const v=s(34589);class Cache{#D;constructor(){if(arguments[0]!==a){p.illegalConstructor()}p.util.markAsUncloneable(this);this.#D=arguments[1]}async match(r,n={}){p.brandCheck(this,Cache);const s="Cache.match";p.argumentLengthCheck(arguments,1,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");const a=this.#N(r,n,1);if(a.length===0){return}return a[0]}async matchAll(r=undefined,n={}){p.brandCheck(this,Cache);const s="Cache.matchAll";if(r!==undefined)r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");return this.#N(r,n)}async add(r){p.brandCheck(this,Cache);const n="Cache.add";p.argumentLengthCheck(arguments,1,n);r=p.converters.RequestInfo(r,n,"request");const s=[r];const a=this.addAll(s);return await a}async addAll(r){p.brandCheck(this,Cache);const n="Cache.addAll";p.argumentLengthCheck(arguments,1,n);const s=[];const a=[];for(let s of r){if(s===undefined){throw p.errors.conversionFailed({prefix:n,argument:"Argument 1",types:["undefined is not allowed"]})}s=p.converters.RequestInfo(s);if(typeof s==="string"){continue}const r=s[w];if(!I(r.url)||r.method!=="GET"){throw p.errors.exception({header:n,message:"Expected http/s scheme when method is not GET."})}}const l=[];for(const d of r){const r=new b(d)[w];if(!I(r.url)){throw p.errors.exception({header:n,message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";a.push(r);const A=S();l.push(B({request:r,processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){A.reject(p.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const n=u(r.headersList.get("vary"));for(const r of n){if(r==="*"){A.reject(p.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of l){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){A.reject(new DOMException("aborted","AbortError"));return}A.resolve(r)}}));s.push(A.promise)}const d=Promise.all(s);const A=await d;const f=[];let g=0;for(const r of A){const n={type:"put",request:a[g],response:r};f.push(n);g++}const y=S();let C=null;try{this.#T(f)}catch(r){C=r}queueMicrotask((()=>{if(C===null){y.resolve(undefined)}else{y.reject(C)}}));return y.promise}async put(r,n){p.brandCheck(this,Cache);const s="Cache.put";p.argumentLengthCheck(arguments,2,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.Response(n,s,"response");let a=null;if(r instanceof b){a=r[w]}else{a=new b(r)[w]}if(!I(a.url)||a.method!=="GET"){throw p.errors.exception({header:s,message:"Expected an http/s scheme when method is not GET"})}const l=n[w];if(l.status===206){throw p.errors.exception({header:s,message:"Got 206 status"})}if(l.headersList.contains("vary")){const r=u(l.headersList.get("vary"));for(const n of r){if(n==="*"){throw p.errors.exception({header:s,message:"Got * vary field value"})}}}if(l.body&&(A(l.body.stream)||l.body.stream.locked)){throw p.errors.exception({header:s,message:"Response body is locked or disturbed"})}const d=g(l);const f=S();if(l.body!=null){const r=l.body.stream;const n=r.getReader();Q(n).then(f.resolve,f.reject)}else{f.resolve(undefined)}const y=[];const C={type:"put",request:a,response:d};y.push(C);const B=await f.promise;if(d.body!=null){d.body.source=B}const v=S();let R=null;try{this.#T(y)}catch(r){R=r}queueMicrotask((()=>{if(R===null){v.resolve()}else{v.reject(R)}}));return v.promise}async delete(r,n={}){p.brandCheck(this,Cache);const s="Cache.delete";p.argumentLengthCheck(arguments,1,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");let a=null;if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return false}}else{v(typeof r==="string");a=new b(r)[w]}const l=[];const u={type:"delete",request:a,options:n};l.push(u);const d=S();let A=null;let f;try{f=this.#T(l)}catch(r){A=r}queueMicrotask((()=>{if(A===null){d.resolve(!!f?.length)}else{d.reject(A)}}));return d.promise}async keys(r=undefined,n={}){p.brandCheck(this,Cache);const s="Cache.keys";if(r!==undefined)r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");let a=null;if(r!==undefined){if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof r==="string"){a=new b(r)[w]}}const l=S();const u=[];if(r===undefined){for(const r of this.#D){u.push(r[0])}}else{const r=this.#x(a,n);for(const n of r){u.push(n[0])}}queueMicrotask((()=>{const r=[];for(const n of u){const s=C(n,(new AbortController).signal,"immutable");r.push(s)}l.resolve(Object.freeze(r))}));return l.promise}#T(r){const n=this.#D;const s=[...n];const a=[];const l=[];try{for(const s of r){if(s.type!=="delete"&&s.type!=="put"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(s.type==="delete"&&s.response!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#x(s.request,s.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(s.type==="delete"){r=this.#x(s.request,s.options);if(r.length===0){return[]}for(const s of r){const r=n.indexOf(s);v(r!==-1);n.splice(r,1)}}else if(s.type==="put"){if(s.response==null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const l=s.request;if(!I(l.url)){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(l.method!=="GET"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(s.options!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#x(s.request);for(const s of r){const r=n.indexOf(s);v(r!==-1);n.splice(r,1)}n.push([s.request,s.response]);a.push([s.request,s.response])}l.push([s.request,s.response])}return l}catch(r){this.#D.length=0;this.#D=s;throw r}}#x(r,n,s){const a=[];const l=s??this.#D;for(const s of l){const[l,u]=s;if(this.#k(r,l,u,n)){a.push(s)}}return a}#k(r,n,s=null,a){const d=new URL(r.url);const A=new URL(n.url);if(a?.ignoreSearch){A.search="";d.search=""}if(!l(d,A,true)){return false}if(s==null||a?.ignoreVary||!s.headersList.contains("vary")){return true}const p=u(s.headersList.get("vary"));for(const s of p){if(s==="*"){return false}const a=n.headersList.get(s);const l=r.headersList.get(s);if(a!==l){return false}}return true}#N(r,n,s=Infinity){let a=null;if(r!==undefined){if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof r==="string"){a=new b(r)[w]}}const l=[];if(r===undefined){for(const r of this.#D){l.push(r[1])}}else{const r=this.#x(a,n);for(const n of r){l.push(n[1])}}const u=[];for(const r of l){const n=y(r,"immutable");u.push(n.clone());if(u.length>=s){break}}return Object.freeze(u)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:d,matchAll:d,add:d,addAll:d,put:d,delete:d,keys:d});const R=[{key:"ignoreSearch",converter:p.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:p.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:p.converters.boolean,defaultValue:()=>false}];p.converters.CacheQueryOptions=p.dictionaryConverter(R);p.converters.MultiCacheQueryOptions=p.dictionaryConverter([...R,{key:"cacheName",converter:p.converters.DOMString}]);p.converters.Response=p.interfaceConverter(f);p.converters["sequence"]=p.sequenceConverter(p.converters.RequestInfo);r.exports={Cache:Cache}},59453:(r,n,s)=>{const{kConstruct:a}=s(35869);const{Cache:l}=s(16722);const{webidl:u}=s(51861);const{kEnumerableProperty:d}=s(42336);class CacheStorage{#_=new Map;constructor(){if(arguments[0]!==a){u.illegalConstructor()}u.util.markAsUncloneable(this)}async match(r,n={}){u.brandCheck(this,CacheStorage);u.argumentLengthCheck(arguments,1,"CacheStorage.match");r=u.converters.RequestInfo(r);n=u.converters.MultiCacheQueryOptions(n);if(n.cacheName!=null){if(this.#_.has(n.cacheName)){const s=this.#_.get(n.cacheName);const u=new l(a,s);return await u.match(r,n)}}else{for(const s of this.#_.values()){const u=new l(a,s);const d=await u.match(r,n);if(d!==undefined){return d}}}}async has(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.has";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");return this.#_.has(r)}async open(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.open";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");if(this.#_.has(r)){const n=this.#_.get(r);return new l(a,n)}const s=[];this.#_.set(r,s);return new l(a,s)}async delete(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.delete";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");return this.#_.delete(r)}async keys(){u.brandCheck(this,CacheStorage);const r=this.#_.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:d,has:d,open:d,delete:d,keys:d});r.exports={CacheStorage:CacheStorage}},35869:(r,n,s)=>{r.exports={kConstruct:s(33867).kConstruct}},40174:(r,n,s)=>{const a=s(34589);const{URLSerializer:l}=s(54476);const{isValidHeaderName:u}=s(29952);function urlEquals(r,n,s=false){const a=l(r,s);const u=l(n,s);return a===u}function getFieldValues(r){a(r!==null);const n=[];for(let s of r.split(",")){s=s.trim();if(u(s)){n.push(s)}}return n}r.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},75612:r=>{const n=1024;const s=4096;r.exports={maxAttributeValueSize:n,maxNameValuePairSize:s}},77573:(r,n,s)=>{const{parseSetCookie:a}=s(69946);const{stringify:l}=s(31541);const{webidl:u}=s(51861);const{Headers:d}=s(26084);function getCookies(r){u.argumentLengthCheck(arguments,1,"getCookies");u.brandCheck(r,d,{strict:false});const n=r.get("cookie");const s={};if(!n){return s}for(const r of n.split(";")){const[n,...a]=r.split("=");s[n.trim()]=a.join("=")}return s}function deleteCookie(r,n,s){u.brandCheck(r,d,{strict:false});const a="deleteCookie";u.argumentLengthCheck(arguments,2,a);n=u.converters.DOMString(n,a,"name");s=u.converters.DeleteCookieAttributes(s);setCookie(r,{name:n,value:"",expires:new Date(0),...s})}function getSetCookies(r){u.argumentLengthCheck(arguments,1,"getSetCookies");u.brandCheck(r,d,{strict:false});const n=r.getSetCookie();if(!n){return[]}return n.map((r=>a(r)))}function setCookie(r,n){u.argumentLengthCheck(arguments,2,"setCookie");u.brandCheck(r,d,{strict:false});n=u.converters.Cookie(n);const s=l(n);if(s){r.append("Set-Cookie",s)}}u.converters.DeleteCookieAttributes=u.dictionaryConverter([{converter:u.nullableConverter(u.converters.DOMString),key:"path",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"domain",defaultValue:()=>null}]);u.converters.Cookie=u.dictionaryConverter([{converter:u.converters.DOMString,key:"name"},{converter:u.converters.DOMString,key:"value"},{converter:u.nullableConverter((r=>{if(typeof r==="number"){return u.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:()=>null},{converter:u.nullableConverter(u.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"path",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.boolean),key:"secure",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:u.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:u.sequenceConverter(u.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},69946:(r,n,s)=>{const{maxNameValuePairSize:a,maxAttributeValueSize:l}=s(75612);const{isCTLExcludingHtab:u}=s(31541);const{collectASequenceOfCodePointsFast:d}=s(54476);const A=s(34589);function parseSetCookie(r){if(u(r)){return null}let n="";let s="";let l="";let A="";if(r.includes(";")){const a={position:0};n=d(";",r,a);s=r.slice(a.position)}else{n=r}if(!n.includes("=")){A=n}else{const r={position:0};l=d("=",n,r);A=n.slice(r.position+1)}l=l.trim();A=A.trim();if(l.length+A.length>a){return null}return{name:l,value:A,...parseUnparsedAttributes(s)}}function parseUnparsedAttributes(r,n={}){if(r.length===0){return n}A(r[0]===";");r=r.slice(1);let s="";if(r.includes(";")){s=d(";",r,{position:0});r=r.slice(s.length)}else{s=r;r=""}let a="";let u="";if(s.includes("=")){const r={position:0};a=d("=",s,r);u=s.slice(r.position+1)}else{a=s}a=a.trim();u=u.trim();if(u.length>l){return parseUnparsedAttributes(r,n)}const p=a.toLowerCase();if(p==="expires"){const r=new Date(u);n.expires=r}else if(p==="max-age"){const s=u.charCodeAt(0);if((s<48||s>57)&&u[0]!=="-"){return parseUnparsedAttributes(r,n)}if(!/^\d+$/.test(u)){return parseUnparsedAttributes(r,n)}const a=Number(u);n.maxAge=a}else if(p==="domain"){let r=u;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();n.domain=r}else if(p==="path"){let r="";if(u.length===0||u[0]!=="/"){r="/"}else{r=u}n.path=r}else if(p==="secure"){n.secure=true}else if(p==="httponly"){n.httpOnly=true}else if(p==="samesite"){let r="Default";const s=u.toLowerCase();if(s.includes("none")){r="None"}if(s.includes("strict")){r="Strict"}if(s.includes("lax")){r="Lax"}n.sameSite=r}else{n.unparsed??=[];n.unparsed.push(`${a}=${u}`)}return parseUnparsedAttributes(r,n)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},31541:r=>{function isCTLExcludingHtab(r){for(let n=0;n=0&&s<=8||s>=10&&s<=31||s===127){return true}}return false}function validateCookieName(r){for(let n=0;n126||s===34||s===40||s===41||s===60||s===62||s===64||s===44||s===59||s===58||s===92||s===47||s===91||s===93||s===63||s===61||s===123||s===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){let n=r.length;let s=0;if(r[0]==='"'){if(n===1||r[n-1]!=='"'){throw new Error("Invalid cookie value")}--n;++s}while(s126||n===34||n===44||n===59||n===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(r){for(let n=0;nn.toString().padStart(2,"0")));function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}return`${n[r.getUTCDay()]}, ${a[r.getUTCDate()]} ${s[r.getUTCMonth()]} ${r.getUTCFullYear()} ${a[r.getUTCHours()]}:${a[r.getUTCMinutes()]}:${a[r.getUTCSeconds()]} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const n=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){n.push("Secure")}if(r.httpOnly){n.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);n.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);n.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);n.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){n.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){n.push(`SameSite=${r.sameSite}`)}for(const s of r.unparsed){if(!s.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=s.split("=");n.push(`${r.trim()}=${a.join("=")}`)}return n.join("; ")}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},19375:(r,n,s)=>{const{Transform:a}=s(57075);const{isASCIINumber:l,isValidLastEventId:u}=s(74699);const d=[239,187,191];const A=10;const p=13;const f=58;const g=32;class EventSourceStream extends a{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(r={}){r.readableObjectMode=true;super(r);this.state=r.eventSourceSettings||{};if(r.push){this.push=r.push}}_transform(r,n,s){if(r.length===0){s();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,r])}else{this.buffer=r}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===d[0]){s();return}this.checkBOM=false;s();return;case 2:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]){s();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;s();return}this.checkBOM=false;break;default:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){n[a]=d}break}}processEvent(r){if(r.retry&&l(r.retry)){this.state.reconnectionTime=parseInt(r.retry,10)}if(r.id&&u(r.id)){this.state.lastEventId=r.id}if(r.data!==undefined){this.push({type:r.event||"message",options:{data:r.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}r.exports={EventSourceStream:EventSourceStream}},90630:(r,n,s)=>{const{pipeline:a}=s(57075);const{fetching:l}=s(51118);const{makeRequest:u}=s(4031);const{webidl:d}=s(51861);const{EventSourceStream:A}=s(19375);const{parseMIMEType:p}=s(54476);const{createFastMessageEvent:f}=s(58276);const{isNetworkError:g}=s(58843);const{delay:y}=s(74699);const{kEnumerableProperty:b}=s(42336);const{environmentSettingsObject:C}=s(29952);let w=false;const B=3e3;const I=0;const S=1;const Q=2;const v="anonymous";const R="use-credentials";class EventSource extends EventTarget{#P={open:null,error:null,message:null};#F=null;#L=false;#O=I;#M=null;#U=null;#e;#b;constructor(r,n={}){super();d.util.markAsUncloneable(this);const s="EventSource constructor";d.argumentLengthCheck(arguments,1,s);if(!w){w=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}r=d.converters.USVString(r,s,"url");n=d.converters.EventSourceInitDict(n,s,"eventSourceInitDict");this.#e=n.dispatcher;this.#b={lastEventId:"",reconnectionTime:B};const a=C;let l;try{l=new URL(r,a.settingsObject.baseUrl);this.#b.origin=l.origin}catch(r){throw new DOMException(r,"SyntaxError")}this.#F=l.href;let A=v;if(n.withCredentials){A=R;this.#L=true}const p={redirect:"follow",keepalive:true,mode:"cors",credentials:A==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};p.client=C.settingsObject;p.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];p.cache="no-store";p.initiator="other";p.urlList=[new URL(this.#F)];this.#M=u(p);this.#H()}get readyState(){return this.#O}get url(){return this.#F}get withCredentials(){return this.#L}#H(){if(this.#O===Q)return;this.#O=I;const r={request:this.#M,dispatcher:this.#e};const processEventSourceEndOfBody=r=>{if(g(r)){this.dispatchEvent(new Event("error"));this.close()}this.#G()};r.processResponseEndOfBody=processEventSourceEndOfBody;r.processResponse=r=>{if(g(r)){if(r.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#G();return}}const n=r.headersList.get("content-type",true);const s=n!==null?p(n):"failure";const l=s!=="failure"&&s.essence==="text/event-stream";if(r.status!==200||l===false){this.close();this.dispatchEvent(new Event("error"));return}this.#O=S;this.dispatchEvent(new Event("open"));this.#b.origin=r.urlList[r.urlList.length-1].origin;const u=new A({eventSourceSettings:this.#b,push:r=>{this.dispatchEvent(f(r.type,r.options))}});a(r.body.stream,u,(r=>{if(r?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#U=l(r)}async#G(){if(this.#O===Q)return;this.#O=I;this.dispatchEvent(new Event("error"));await y(this.#b.reconnectionTime);if(this.#O!==I)return;if(this.#b.lastEventId.length){this.#M.headersList.set("last-event-id",this.#b.lastEventId,true)}this.#H()}close(){d.brandCheck(this,EventSource);if(this.#O===Q)return;this.#O=Q;this.#U.abort();this.#M=null}get onopen(){return this.#P.open}set onopen(r){if(this.#P.open){this.removeEventListener("open",this.#P.open)}if(typeof r==="function"){this.#P.open=r;this.addEventListener("open",r)}else{this.#P.open=null}}get onmessage(){return this.#P.message}set onmessage(r){if(this.#P.message){this.removeEventListener("message",this.#P.message)}if(typeof r==="function"){this.#P.message=r;this.addEventListener("message",r)}else{this.#P.message=null}}get onerror(){return this.#P.error}set onerror(r){if(this.#P.error){this.removeEventListener("error",this.#P.error)}if(typeof r==="function"){this.#P.error=r;this.addEventListener("error",r)}else{this.#P.error=null}}}const D={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:I,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:S,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:Q,writable:false}};Object.defineProperties(EventSource,D);Object.defineProperties(EventSource.prototype,D);Object.defineProperties(EventSource.prototype,{close:b,onerror:b,onmessage:b,onopen:b,readyState:b,url:b,withCredentials:b});d.converters.EventSourceInitDict=d.dictionaryConverter([{key:"withCredentials",converter:d.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:d.converters.any}]);r.exports={EventSource:EventSource,defaultReconnectionTime:B}},74699:r=>{function isValidLastEventId(r){return r.indexOf("\0")===-1}function isASCIINumber(r){if(r.length===0)return false;for(let n=0;n57)return false}return true}function delay(r){return new Promise((n=>{setTimeout(n,r).unref()}))}r.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},58780:(r,n,s)=>{const a=s(42336);const{ReadableStreamFrom:l,isBlobLike:u,isReadableStreamLike:d,readableStreamClose:A,createDeferredPromise:p,fullyReadBody:f,extractMimeType:g,utf8DecodeBytes:y}=s(29952);const{FormData:b}=s(56694);const{kState:C}=s(88299);const{webidl:w}=s(51861);const{Blob:B}=s(4573);const I=s(34589);const{isErrored:S,isDisturbed:Q}=s(57075);const{isArrayBuffer:v}=s(73429);const{serializeAMimeType:R}=s(54476);const{multipartFormDataParser:D}=s(55764);let N;try{const r=s(77598);N=n=>r.randomInt(0,n)}catch{N=r=>Math.floor(Math.random(r))}const T=new TextEncoder;function noop(){}const x=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let k;if(x){k=new FinalizationRegistry((r=>{const n=r.deref();if(n&&!n.locked&&!Q(n)&&!S(n)){n.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(r,n=false){let s=null;if(r instanceof ReadableStream){s=r}else if(u(r)){s=r.stream()}else{s=new ReadableStream({async pull(r){const n=typeof f==="string"?T.encode(f):f;if(n.byteLength){r.enqueue(n)}queueMicrotask((()=>A(r)))},start(){},type:"bytes"})}I(d(s));let p=null;let f=null;let g=null;let y=null;if(typeof r==="string"){f=r;y="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){f=r.toString();y="application/x-www-form-urlencoded;charset=UTF-8"}else if(v(r)){f=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){f=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(a.isFormDataLike(r)){const n=`----formdata-undici-0${`${N(1e11)}`.padStart(11,"0")}`;const s=`--${n}\r\nContent-Disposition: form-data` -/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const l=new Uint8Array([13,10]);g=0;let u=false;for(const[n,d]of r){if(typeof d==="string"){const r=T.encode(s+`; name="${escape(normalizeLinefeeds(n))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);a.push(r);g+=r.byteLength}else{const r=T.encode(`${s}; name="${escape(normalizeLinefeeds(n))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);a.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{u=true}}}const d=T.encode(`--${n}--\r\n`);a.push(d);g+=d.byteLength;if(u){g=null}f=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};y=`multipart/form-data; boundary=${n}`}else if(u(r)){f=r;g=r.size;if(r.type){y=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(n){throw new TypeError("keepalive")}if(a.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=r instanceof ReadableStream?r:l(r)}if(typeof f==="string"||a.isBuffer(f)){g=Buffer.byteLength(f)}if(p!=null){let n;s=new ReadableStream({async start(){n=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await n.next();if(l){queueMicrotask((()=>{r.close();r.byobRequest?.respond(0)}))}else{if(!S(s)){const n=new Uint8Array(a);if(n.byteLength){r.enqueue(n)}}}return r.desiredSize>0},async cancel(r){await n.return()},type:"bytes"})}const b={stream:s,source:f,length:g};return[b,y]}function safelyExtractBody(r,n=false){if(r instanceof ReadableStream){I(!a.isDisturbed(r),"The body has already been consumed.");I(!r.locked,"The stream is locked.")}return extractBody(r,n)}function cloneBody(r,n){const[s,a]=n.stream.tee();n.stream=s;return{stream:a,length:n.length,source:n.source}}function throwIfAborted(r){if(r.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const n={blob(){return consumeBody(this,(r=>{let n=bodyMimeType(this);if(n===null){n=""}else if(n){n=R(n)}return new B([r],{type:n})}),r)},arrayBuffer(){return consumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return consumeBody(this,y,r)},json(){return consumeBody(this,parseJSONFromBytes,r)},formData(){return consumeBody(this,(r=>{const n=bodyMimeType(this);if(n!==null){switch(n.essence){case"multipart/form-data":{const s=D(r,n);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const a=new b;a[C]=s;return a}case"application/x-www-form-urlencoded":{const n=new URLSearchParams(r.toString());const s=new b;for(const[r,a]of n){s.append(r,a)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),r)},bytes(){return consumeBody(this,(r=>new Uint8Array(r)),r)}};return n}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function consumeBody(r,n,s){w.brandCheck(r,s);if(bodyUnusable(r)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(r[C]);const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(n(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(Buffer.allocUnsafe(0));return a.promise}await f(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){const n=r[C].body;return n!=null&&(n.stream.locked||a.isDisturbed(n.stream))}function parseJSONFromBytes(r){return JSON.parse(y(r))}function bodyMimeType(r){const n=r[C].headersList;const s=g(n);if(s==="failure"){return null}return s}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:k,hasFinalizationRegistry:x,bodyUnusable:bodyUnusable}},64767:r=>{const n=["GET","HEAD","POST"];const s=new Set(n);const a=[101,204,205,304];const l=[301,302,303,307,308];const u=new Set(l);const d=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const A=new Set(d);const p=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const f=new Set(p);const g=["follow","manual","error"];const y=["GET","HEAD","OPTIONS","TRACE"];const b=new Set(y);const C=["navigate","same-origin","no-cors","cors"];const w=["omit","same-origin","include"];const B=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const I=["content-encoding","content-language","content-location","content-type","content-length"];const S=["half"];const Q=["CONNECT","TRACE","TRACK"];const v=new Set(Q);const R=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const D=new Set(R);r.exports={subresource:R,forbiddenMethods:Q,requestBodyHeader:I,referrerPolicy:p,requestRedirect:g,requestMode:C,requestCredentials:w,requestCache:B,redirectStatus:l,corsSafeListedMethods:n,nullBodyStatus:a,safeMethods:y,badPorts:d,requestDuplex:S,subresourceSet:D,badPortsSet:A,redirectStatusSet:u,corsSafeListedMethodsSet:s,safeMethodsSet:b,forbiddenMethodsSet:v,referrerPolicySet:f}},54476:(r,n,s)=>{const a=s(34589);const l=new TextEncoder;const u=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const d=/[\u000A\u000D\u0009\u0020]/;const A=/[\u0009\u000A\u000C\u000D\u0020]/g;const p=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(r){a(r.protocol==="data:");let n=URLSerializer(r,true);n=n.slice(5);const s={position:0};let l=collectASequenceOfCodePointsFast(",",n,s);const u=l.length;l=removeASCIIWhitespace(l,true,true);if(s.position>=n.length){return"failure"}s.position++;const d=n.slice(u+1);let A=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(l)){const r=isomorphicDecode(A);A=forgivingBase64(r);if(A==="failure"){return"failure"}l=l.slice(0,-6);l=l.replace(/(\u0020)+$/,"");l=l.slice(0,-1)}if(l.startsWith(";")){l="text/plain"+l}let p=parseMIMEType(l);if(p==="failure"){p=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:p,body:A}}function URLSerializer(r,n=false){if(!n){return r.href}const s=r.href;const a=r.hash.length;const l=a===0?s:s.substring(0,s.length-a);if(!a&&s.endsWith("#")){return l.slice(0,-1)}return l}function collectASequenceOfCodePoints(r,n,s){let a="";while(s.position=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}function hexByteToNumber(r){return r>=48&&r<=57?r-48:(r&223)-55}function percentDecode(r){const n=r.length;const s=new Uint8Array(n);let a=0;for(let l=0;lr.length){return"failure"}n.position++;let a=collectASequenceOfCodePointsFast(";",r,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!u.test(a)){return"failure"}const l=s.toLowerCase();const A=a.toLowerCase();const f={type:l,subtype:A,parameters:new Map,essence:`${l}/${A}`};while(n.positiond.test(r)),r,n);let s=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,n);s=s.toLowerCase();if(n.positionr.length){break}let a=null;if(r[n.position]==='"'){a=collectAnHTTPQuotedString(r,n,true);collectASequenceOfCodePointsFast(";",r,n)}else{a=collectASequenceOfCodePointsFast(";",r,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(s.length!==0&&u.test(s)&&(a.length===0||p.test(a))&&!f.parameters.has(s)){f.parameters.set(s,a)}}return f}function forgivingBase64(r){r=r.replace(A,"");let n=r.length;if(n%4===0){if(r.charCodeAt(n-1)===61){--n;if(r.charCodeAt(n-1)===61){--n}}}if(n%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r.length===n?r:r.substring(0,n))){return"failure"}const s=Buffer.from(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function collectAnHTTPQuotedString(r,n,s){const l=n.position;let u="";a(r[n.position]==='"');n.position++;while(true){u+=collectASequenceOfCodePoints((r=>r!=='"'&&r!=="\\"),r,n);if(n.position>=r.length){break}const s=r[n.position];n.position++;if(s==="\\"){if(n.position>=r.length){u+="\\";break}u+=r[n.position];n.position++}else{a(s==='"');break}}if(s){return u}return r.slice(l,n.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:n,essence:s}=r;let l=s;for(let[r,s]of n.entries()){l+=";";l+=r;l+="=";if(!u.test(s)){s=s.replace(/(\\|")/g,"\\$1");s='"'+s;s+='"'}l+=s}return l}function isHTTPWhiteSpace(r){return r===13||r===10||r===9||r===32}function removeHTTPWhitespace(r,n=true,s=true){return removeChars(r,n,s,isHTTPWhiteSpace)}function isASCIIWhitespace(r){return r===13||r===10||r===9||r===12||r===32}function removeASCIIWhitespace(r,n=true,s=true){return removeChars(r,n,s,isASCIIWhitespace)}function removeChars(r,n,s,a){let l=0;let u=r.length-1;if(n){while(l0&&a(r.charCodeAt(u)))u--}return l===0&&u===r.length-1?r:r.slice(l,u+1)}function isomorphicDecode(r){const n=r.length;if((2<<15)-1>n){return String.fromCharCode.apply(null,r)}let s="";let a=0;let l=(2<<15)-1;while(an){l=n-a}s+=String.fromCharCode.apply(null,r.subarray(a,a+=l))}return s}function minimizeSupportedMimeType(r){switch(r.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(r.subtype.endsWith("+json")){return"application/json"}if(r.subtype.endsWith("+xml")){return"application/xml"}return""}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:u,isomorphicDecode:isomorphicDecode}},2669:(r,n,s)=>{const{kConnected:a,kSize:l}=s(33867);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[l]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,n){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[l]===0){this.finalizer(n)}}))}}unregister(r){}}r.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},92698:(r,n,s)=>{const{Blob:a,File:l}=s(4573);const{kState:u}=s(88299);const{webidl:d}=s(51861);class FileLike{constructor(r,n,s={}){const a=n;const l=s.type;const d=s.lastModified??Date.now();this[u]={blobLike:r,name:a,type:l,lastModified:d}}stream(...r){d.brandCheck(this,FileLike);return this[u].blobLike.stream(...r)}arrayBuffer(...r){d.brandCheck(this,FileLike);return this[u].blobLike.arrayBuffer(...r)}slice(...r){d.brandCheck(this,FileLike);return this[u].blobLike.slice(...r)}text(...r){d.brandCheck(this,FileLike);return this[u].blobLike.text(...r)}get size(){d.brandCheck(this,FileLike);return this[u].blobLike.size}get type(){d.brandCheck(this,FileLike);return this[u].blobLike.type}get name(){d.brandCheck(this,FileLike);return this[u].name}get lastModified(){d.brandCheck(this,FileLike);return this[u].lastModified}get[Symbol.toStringTag](){return"File"}}d.converters.Blob=d.interfaceConverter(a);function isFileLike(r){return r instanceof l||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={FileLike:FileLike,isFileLike:isFileLike}},55764:(r,n,s)=>{const{isUSVString:a,bufferToLowerCasedHeaderName:l}=s(42336);const{utf8DecodeBytes:u}=s(29952);const{HTTP_TOKEN_CODEPOINTS:d,isomorphicDecode:A}=s(54476);const{isFileLike:p}=s(92698);const{makeEntry:f}=s(56694);const g=s(34589);const{File:y}=s(4573);const b=globalThis.File??y;const C=Buffer.from('form-data; name="');const w=Buffer.from("; filename");const B=Buffer.from("--");const I=Buffer.from("--\r\n");function isAsciiString(r){for(let n=0;n70){return false}for(let s=0;s=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95)){return false}}return true}function multipartFormDataParser(r,n){g(n!=="failure"&&n.essence==="multipart/form-data");const s=n.parameters.get("boundary");if(s===undefined){return"failure"}const l=Buffer.from(`--${s}`,"utf8");const d=[];const A={position:0};while(r[A.position]===13&&r[A.position+1]===10){A.position+=2}let y=r.length;while(r[y-1]===10&&r[y-2]===13){y-=2}if(y!==r.length){r=r.subarray(0,y)}while(true){if(r.subarray(A.position,A.position+l.length).equals(l)){A.position+=l.length}else{return"failure"}if(A.position===r.length-2&&bufferStartsWith(r,B,A)||A.position===r.length-4&&bufferStartsWith(r,I,A)){return d}if(r[A.position]!==13||r[A.position+1]!==10){return"failure"}A.position+=2;const n=parseMultipartFormDataHeaders(r,A);if(n==="failure"){return"failure"}let{name:s,filename:y,contentType:C,encoding:w}=n;A.position+=2;let S;{const n=r.indexOf(l.subarray(2),A.position);if(n===-1){return"failure"}S=r.subarray(A.position,n-4);A.position+=S.length;if(w==="base64"){S=Buffer.from(S.toString(),"base64")}}if(r[A.position]!==13||r[A.position+1]!==10){return"failure"}else{A.position+=2}let Q;if(y!==null){C??="text/plain";if(!isAsciiString(C)){C=""}Q=new b([S],y,{type:C})}else{Q=u(Buffer.from(S))}g(a(s));g(typeof Q==="string"&&a(Q)||p(Q));d.push(f(s,Q,y))}}function parseMultipartFormDataHeaders(r,n){let s=null;let a=null;let u=null;let p=null;while(true){if(r[n.position]===13&&r[n.position+1]===10){if(s===null){return"failure"}return{name:s,filename:a,contentType:u,encoding:p}}let f=collectASequenceOfBytes((r=>r!==10&&r!==13&&r!==58),r,n);f=removeChars(f,true,true,(r=>r===9||r===32));if(!d.test(f.toString())){return"failure"}if(r[n.position]!==58){return"failure"}n.position++;collectASequenceOfBytes((r=>r===32||r===9),r,n);switch(l(f)){case"content-disposition":{s=a=null;if(!bufferStartsWith(r,C,n)){return"failure"}n.position+=17;s=parseMultipartFormDataName(r,n);if(s===null){return"failure"}if(bufferStartsWith(r,w,n)){let s=n.position+w.length;if(r[s]===42){n.position+=1;s+=1}if(r[s]!==61||r[s+1]!==34){return"failure"}n.position+=12;a=parseMultipartFormDataName(r,n);if(a===null){return"failure"}}break}case"content-type":{let s=collectASequenceOfBytes((r=>r!==10&&r!==13),r,n);s=removeChars(s,false,true,(r=>r===9||r===32));u=A(s);break}case"content-transfer-encoding":{let s=collectASequenceOfBytes((r=>r!==10&&r!==13),r,n);s=removeChars(s,false,true,(r=>r===9||r===32));p=A(s);break}default:{collectASequenceOfBytes((r=>r!==10&&r!==13),r,n)}}if(r[n.position]!==13&&r[n.position+1]!==10){return"failure"}else{n.position+=2}}}function parseMultipartFormDataName(r,n){g(r[n.position-1]===34);let s=collectASequenceOfBytes((r=>r!==10&&r!==13&&r!==34),r,n);if(r[n.position]!==34){return null}else{n.position++}s=(new TextDecoder).decode(s).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return s}function collectASequenceOfBytes(r,n,s){let a=s.position;while(a0&&a(r[u]))u--}return l===0&&u===r.length-1?r:r.subarray(l,u+1)}function bufferStartsWith(r,n,s){if(r.length{const{isBlobLike:a,iteratorMixin:l}=s(29952);const{kState:u}=s(88299);const{kEnumerableProperty:d}=s(42336);const{FileLike:A,isFileLike:p}=s(92698);const{webidl:f}=s(51861);const{File:g}=s(4573);const y=s(57975);const b=globalThis.File??g;class FormData{constructor(r){f.util.markAsUncloneable(this);if(r!==undefined){throw f.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[u]=[]}append(r,n,s=undefined){f.brandCheck(this,FormData);const l="FormData.append";f.argumentLengthCheck(arguments,2,l);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=f.converters.USVString(r,l,"name");n=a(n)?f.converters.Blob(n,l,"value",{strict:false}):f.converters.USVString(n,l,"value");s=arguments.length===3?f.converters.USVString(s,l,"filename"):undefined;const d=makeEntry(r,n,s);this[u].push(d)}delete(r){f.brandCheck(this,FormData);const n="FormData.delete";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");this[u]=this[u].filter((n=>n.name!==r))}get(r){f.brandCheck(this,FormData);const n="FormData.get";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");const s=this[u].findIndex((n=>n.name===r));if(s===-1){return null}return this[u][s].value}getAll(r){f.brandCheck(this,FormData);const n="FormData.getAll";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");return this[u].filter((n=>n.name===r)).map((r=>r.value))}has(r){f.brandCheck(this,FormData);const n="FormData.has";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");return this[u].findIndex((n=>n.name===r))!==-1}set(r,n,s=undefined){f.brandCheck(this,FormData);const l="FormData.set";f.argumentLengthCheck(arguments,2,l);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=f.converters.USVString(r,l,"name");n=a(n)?f.converters.Blob(n,l,"name",{strict:false}):f.converters.USVString(n,l,"name");s=arguments.length===3?f.converters.USVString(s,l,"name"):undefined;const d=makeEntry(r,n,s);const A=this[u].findIndex((n=>n.name===r));if(A!==-1){this[u]=[...this[u].slice(0,A),d,...this[u].slice(A+1).filter((n=>n.name!==r))]}else{this[u].push(d)}}[y.inspect.custom](r,n){const s=this[u].reduce(((r,n)=>{if(r[n.name]){if(Array.isArray(r[n.name])){r[n.name].push(n.value)}else{r[n.name]=[r[n.name],n.value]}}else{r[n.name]=n.value}return r}),{__proto__:null});n.depth??=r;n.colors??=true;const a=y.formatWithOptions(n,s);return`FormData ${a.slice(a.indexOf("]")+2)}`}}l("FormData",FormData,u,"name","value");Object.defineProperties(FormData.prototype,{append:d,delete:d,get:d,getAll:d,has:d,set:d,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,n,s){if(typeof n==="string"){}else{if(!p(n)){n=n instanceof Blob?new b([n],"blob",{type:n.type}):new A(n,"blob",{type:n.type})}if(s!==undefined){const r={type:n.type,lastModified:n.lastModified};n=n instanceof g?new b([n],s,r):new A(n,s,r)}}return{name:r,value:n}}r.exports={FormData:FormData,makeEntry:makeEntry}},4035:r=>{const n=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[n]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,n,{value:undefined,writable:true,enumerable:false,configurable:false});return}const s=new URL(r);if(s.protocol!=="http:"&&s.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${s.protocol}`)}Object.defineProperty(globalThis,n,{value:s,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},26084:(r,n,s)=>{const{kConstruct:a}=s(33867);const{kEnumerableProperty:l}=s(42336);const{iteratorMixin:u,isValidHeaderName:d,isValidHeaderValue:A}=s(29952);const{webidl:p}=s(51861);const f=s(34589);const g=s(57975);const y=Symbol("headers map");const b=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let n=0;let s=r.length;while(s>n&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s-1)))--s;while(s>n&&isHTTPWhiteSpaceCharCode(r.charCodeAt(n)))++n;return n===0&&s===r.length?r:r.substring(n,s)}function fill(r,n){if(Array.isArray(n)){for(let s=0;s>","record"]})}}function appendHeader(r,n,s){s=headerValueNormalize(s);if(!d(n)){throw p.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header name"})}else if(!A(s)){throw p.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header value"})}if(C(r)==="immutable"){throw new TypeError("immutable")}return B(r).append(n,s,false)}function compareHeaderName(r,n){return r[0]>1);if(n[A][0]<=p[0]){d=A+1}else{u=A}}if(a!==A){l=a;while(l>d){n[l]=n[--l]}n[d]=p}}if(!s.next().done){throw new TypeError("Unreachable")}return n}else{let r=0;for(const{0:s,1:{value:a}}of this[y]){n[r++]=[s,a];f(a!==null)}return n.sort(compareHeaderName)}}}class Headers{#z;#q;constructor(r=undefined){p.util.markAsUncloneable(this);if(r===a){return}this.#q=new HeadersList;this.#z="none";if(r!==undefined){r=p.converters.HeadersInit(r,"Headers contructor","init");fill(this,r)}}append(r,n){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,2,"Headers.append");const s="Headers.append";r=p.converters.ByteString(r,s,"name");n=p.converters.ByteString(n,s,"value");return appendHeader(this,r,n)}delete(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.delete");const n="Headers.delete";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this.#z==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(r,false)){return}this.#q.delete(r,false)}get(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.get");const n="Headers.get";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:n,value:r,type:"header name"})}return this.#q.get(r,false)}has(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.has");const n="Headers.has";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:n,value:r,type:"header name"})}return this.#q.contains(r,false)}set(r,n){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,2,"Headers.set");const s="Headers.set";r=p.converters.ByteString(r,s,"name");n=p.converters.ByteString(n,s,"value");n=headerValueNormalize(n);if(!d(r)){throw p.errors.invalidArgument({prefix:s,value:r,type:"header name"})}else if(!A(n)){throw p.errors.invalidArgument({prefix:s,value:n,type:"header value"})}if(this.#z==="immutable"){throw new TypeError("immutable")}this.#q.set(r,n,false)}getSetCookie(){p.brandCheck(this,Headers);const r=this.#q.cookies;if(r){return[...r]}return[]}get[b](){if(this.#q[b]){return this.#q[b]}const r=[];const n=this.#q.toSortedArray();const s=this.#q.cookies;if(s===null||s.length===1){return this.#q[b]=n}for(let a=0;a>"](r,n,s,a.bind(r))}return p.converters["record"](r,n,s)}throw p.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:C,setHeadersGuard:w,setHeadersList:I,getHeadersList:B}},51118:(r,n,s)=>{const{makeNetworkError:a,makeAppropriateNetworkError:l,filterResponse:u,makeResponse:d,fromInnerResponse:A}=s(58843);const{HeadersList:p}=s(26084);const{Request:f,cloneRequest:g}=s(4031);const y=s(38522);const{bytesMatch:b,makePolicyContainer:C,clonePolicyContainer:w,requestBadPort:B,TAOCheck:I,appendRequestOriginHeader:S,responseLocationURL:Q,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:R,tryUpgradeRequestToAPotentiallyTrustworthyURL:D,createOpaqueTimingInfo:N,appendFetchMetadata:T,corsCheck:x,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:_,coarsenedSharedCurrentTime:P,createDeferredPromise:F,isBlobLike:L,sameOrigin:O,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:G,readableStreamClose:z,isomorphicEncode:q,urlIsLocal:V,urlIsHttpHttpsScheme:W,urlHasHttpsScheme:j,clampAndCoarsenConnectionTimingInfo:Y,simpleRangeHeaderValue:J,buildContentRange:$,createInflate:K,extractMimeType:X}=s(29952);const{kState:Z,kDispatcher:ee}=s(88299);const te=s(34589);const{safelyExtractBody:re,extractBody:ne}=s(58780);const{redirectStatusSet:se,nullBodyStatus:ie,safeMethodsSet:oe,requestBodyHeader:ae,subresourceSet:le}=s(64767);const ce=s(78474);const{Readable:ue,pipeline:de,finished:Ae}=s(57075);const{addAbortListener:pe,isErrored:fe,isReadable:he,bufferToLowerCasedHeaderName:me}=s(42336);const{dataURLProcessor:ge,serializeAMimeType:ye,minimizeSupportedMimeType:Ee}=s(54476);const{getGlobalDispatcher:be}=s(72213);const{webidl:Ce}=s(51861);const{STATUS_CODES:we}=s(37067);const Be=["GET","HEAD"];const Ie=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Se;class Fetch extends ce{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing"}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function handleFetchDone(r){finalizeAndReportTiming(r,"fetch")}function fetch(r,n=undefined){Ce.argumentLengthCheck(arguments,1,"globalThis.fetch");let s=F();let a;try{a=new f(r,n)}catch(r){s.reject(r);return s.promise}const l=a[Z];if(a.signal.aborted){abortFetch(s,l,null,a.signal.reason);return s.promise}const u=l.client.globalObject;if(u?.constructor?.name==="ServiceWorkerGlobalScope"){l.serviceWorkers="none"}let d=null;let p=false;let g=null;pe(a.signal,(()=>{p=true;te(g!=null);g.abort(a.signal.reason);const r=d?.deref();abortFetch(s,l,r,a.signal.reason)}));const processResponse=r=>{if(p){return}if(r.aborted){abortFetch(s,l,d,g.serializedAbortReason);return}if(r.type==="error"){s.reject(new TypeError("fetch failed",{cause:r.error}));return}d=new WeakRef(A(r,"immutable"));s.resolve(d.deref());s=null};g=fetching({request:l,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:a[ee]});return s.promise}function finalizeAndReportTiming(r,n="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const s=r.urlList[0];let a=r.timingInfo;let l=r.cacheState;if(!W(s)){return}if(a===null){return}if(!r.timingAllowPassed){a=N({startTime:a.startTime});l=""}a.endTime=P();r.timingInfo=a;Qe(a,s.href,n,globalThis,l)}const Qe=performance.markResourceTiming;function abortFetch(r,n,s,a){if(r){r.reject(a)}if(n.body!=null&&he(n.body?.stream)){n.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(s==null){return}const l=s[Z];if(l.body!=null&&he(l.body?.stream)){l.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:a,processResponseEndOfBody:l,processResponseConsumeBody:u,useParallelQueue:d=false,dispatcher:A=be()}){te(A);let p=null;let f=false;if(r.client!=null){p=r.client.globalObject;f=r.client.crossOriginIsolatedCapability}const g=P(f);const y=N({startTime:g});const b={controller:new Fetch(A),request:r,timingInfo:y,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:a,processResponseConsumeBody:u,processResponseEndOfBody:l,taskDestination:p,crossOriginIsolatedCapability:f};te(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=w(r.client.policyContainer)}else{r.policyContainer=C()}}if(!r.headersList.contains("accept",true)){const n="*/*";r.headersList.append("accept",n,true)}if(!r.headersList.contains("accept-language",true)){r.headersList.append("accept-language","*",true)}if(r.priority===null){}if(le.has(r.destination)){}mainFetch(b).catch((r=>{b.controller.terminate(r)}));return b.controller}async function mainFetch(r,n=false){const s=r.request;let l=null;if(s.localURLsOnly&&!V(v(s))){l=a("local URLs only")}D(s);if(B(s)==="blocked"){l=a("bad port")}if(s.referrerPolicy===""){s.referrerPolicy=s.policyContainer.referrerPolicy}if(s.referrer!=="no-referrer"){s.referrer=_(s)}if(l===null){l=await(async()=>{const n=v(s);if(O(n,s.url)&&s.responseTainting==="basic"||n.protocol==="data:"||(s.mode==="navigate"||s.mode==="websocket")){s.responseTainting="basic";return await schemeFetch(r)}if(s.mode==="same-origin"){return a('request mode cannot be "same-origin"')}if(s.mode==="no-cors"){if(s.redirect!=="follow"){return a('redirect mode cannot be "follow" for "no-cors" request')}s.responseTainting="opaque";return await schemeFetch(r)}if(!W(v(s))){return a("URL scheme must be a HTTP(S) scheme")}s.responseTainting="cors";return await httpFetch(r)})()}if(n){return l}if(l.status!==0&&!l.internalResponse){if(s.responseTainting==="cors"){}if(s.responseTainting==="basic"){l=u(l,"basic")}else if(s.responseTainting==="cors"){l=u(l,"cors")}else if(s.responseTainting==="opaque"){l=u(l,"opaque")}else{te(false)}}let d=l.status===0?l:l.internalResponse;if(d.urlList.length===0){d.urlList.push(...s.urlList)}if(!s.timingAllowFailed){l.timingAllowPassed=true}if(l.type==="opaque"&&d.status===206&&d.rangeRequested&&!s.headers.contains("range",true)){l=d=a()}if(l.status!==0&&(s.method==="HEAD"||s.method==="CONNECT"||ie.includes(d.status))){d.body=null;r.controller.dump=true}if(s.integrity){const processBodyError=n=>fetchFinale(r,a(n));if(s.responseTainting==="opaque"||l.body==null){processBodyError(l.error);return}const processBody=n=>{if(!b(n,s.integrity)){processBodyError("integrity mismatch");return}l.body=re(n)[0];fetchFinale(r,l)};await G(l.body,processBody,processBodyError)}else{fetchFinale(r,l)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(l(r))}const{request:n}=r;const{protocol:u}=v(n);switch(u){case"about:":{return Promise.resolve(a("about scheme is not supported"))}case"blob:":{if(!Se){Se=s(4573).resolveObjectURL}const r=v(n);if(r.search.length!==0){return Promise.resolve(a("NetworkError when attempting to fetch resource."))}const l=Se(r.toString());if(n.method!=="GET"||!L(l)){return Promise.resolve(a("invalid method"))}const u=d();const A=l.size;const p=q(`${A}`);const f=l.type;if(!n.headersList.contains("range",true)){const r=ne(l);u.statusText="OK";u.body=r[0];u.headersList.set("content-length",p,true);u.headersList.set("content-type",f,true)}else{u.rangeRequested=true;const r=n.headersList.get("range",true);const s=J(r,true);if(s==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}let{rangeStartValue:d,rangeEndValue:p}=s;if(d===null){d=A-p;p=d+p-1}else{if(d>=A){return Promise.resolve(a("Range start is greater than the blob's size."))}if(p===null||p>=A){p=A-1}}const g=l.slice(d,p,f);const y=ne(g);u.body=y[0];const b=q(`${g.size}`);const C=$(d,p,A);u.status=206;u.statusText="Partial Content";u.headersList.set("content-length",b,true);u.headersList.set("content-type",f,true);u.headersList.set("content-range",C,true)}return Promise.resolve(u)}case"data:":{const r=v(n);const s=ge(r);if(s==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}const l=ye(s.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:l}]],body:re(s.body)[0]}))}case"file:":{return Promise.resolve(a("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>a(r)))}default:{return Promise.resolve(a("unknown scheme"))}}}function finalizeResponse(r,n){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(n)))}}function fetchFinale(r,n){let s=r.timingInfo;const processResponseEndOfBody=()=>{const a=Date.now();if(r.request.destination==="document"){r.controller.fullTimingInfo=s}r.controller.reportTimingSteps=()=>{if(r.request.url.protocol!=="https:"){return}s.endTime=a;let l=n.cacheState;const u=n.bodyInfo;if(!n.timingAllowPassed){s=N(s);l=""}let d=0;if(r.request.mode!=="navigator"||!n.hasCrossOriginRedirects){d=n.status;const r=X(n.headersList);if(r!=="failure"){u.contentType=Ee(r)}}if(r.request.initiatorType!=null){Qe(s,r.request.url.href,r.request.initiatorType,globalThis,l,u,d)}};const processResponseEndOfBodyTask=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(n)))}if(r.request.initiatorType!=null){r.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(r.processResponse!=null){queueMicrotask((()=>{r.processResponse(n);r.processResponse=null}))}const a=n.type==="error"?n:n.internalResponse??n;if(a.body==null){processResponseEndOfBody()}else{Ae(a.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(r){const n=r.request;let s=null;let l=null;const u=r.timingInfo;if(n.serviceWorkers==="all"){}if(s===null){if(n.redirect==="follow"){n.serviceWorkers="none"}l=s=await httpNetworkOrCacheFetch(r);if(n.responseTainting==="cors"&&x(n,s)==="failure"){return a("cors failure")}if(I(n,s)==="failure"){n.timingAllowFailed=true}}if((n.responseTainting==="opaque"||s.type==="opaque")&&k(n.origin,n.client,n.destination,l)==="blocked"){return a("blocked")}if(se.has(l.status)){if(n.redirect!=="manual"){r.controller.connection.destroy(undefined,false)}if(n.redirect==="error"){s=a("unexpected redirect")}else if(n.redirect==="manual"){s=l}else if(n.redirect==="follow"){s=await httpRedirectFetch(r,s)}else{te(false)}}s.timingInfo=u;return s}function httpRedirectFetch(r,n){const s=r.request;const l=n.internalResponse?n.internalResponse:n;let u;try{u=Q(l,v(s).hash);if(u==null){return n}}catch(r){return Promise.resolve(a(r))}if(!W(u)){return Promise.resolve(a("URL scheme must be a HTTP(S) scheme"))}if(s.redirectCount===20){return Promise.resolve(a("redirect count exceeded"))}s.redirectCount+=1;if(s.mode==="cors"&&(u.username||u.password)&&!O(s,u)){return Promise.resolve(a('cross origin not allowed for request mode "cors"'))}if(s.responseTainting==="cors"&&(u.username||u.password)){return Promise.resolve(a('URL cannot contain credentials for request mode "cors"'))}if(l.status!==303&&s.body!=null&&s.body.source==null){return Promise.resolve(a())}if([301,302].includes(l.status)&&s.method==="POST"||l.status===303&&!Be.includes(s.method)){s.method="GET";s.body=null;for(const r of ae){s.headersList.delete(r)}}if(!O(v(s),u)){s.headersList.delete("authorization",true);s.headersList.delete("proxy-authorization",true);s.headersList.delete("cookie",true);s.headersList.delete("host",true)}if(s.body!=null){te(s.body.source!=null);s.body=re(s.body.source)[0]}const d=r.timingInfo;d.redirectEndTime=d.postRedirectStartTime=P(r.crossOriginIsolatedCapability);if(d.redirectStartTime===0){d.redirectStartTime=d.startTime}s.urlList.push(u);R(s,l);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,n=false,s=false){const u=r.request;let d=null;let A=null;let p=null;const f=null;const y=false;if(u.window==="no-window"&&u.redirect==="error"){d=r;A=u}else{A=g(u);d={...r};d.request=A}const b=u.credentials==="include"||u.credentials==="same-origin"&&u.responseTainting==="basic";const C=A.body?A.body.length:null;let w=null;if(A.body==null&&["POST","PUT"].includes(A.method)){w="0"}if(C!=null){w=q(`${C}`)}if(w!=null){A.headersList.append("content-length",w,true)}if(C!=null&&A.keepalive){}if(A.referrer instanceof URL){A.headersList.append("referer",q(A.referrer.href),true)}S(A);T(A);if(!A.headersList.contains("user-agent",true)){A.headersList.append("user-agent",Ie)}if(A.cache==="default"&&(A.headersList.contains("if-modified-since",true)||A.headersList.contains("if-none-match",true)||A.headersList.contains("if-unmodified-since",true)||A.headersList.contains("if-match",true)||A.headersList.contains("if-range",true))){A.cache="no-store"}if(A.cache==="no-cache"&&!A.preventNoCacheCacheControlHeaderModification&&!A.headersList.contains("cache-control",true)){A.headersList.append("cache-control","max-age=0",true)}if(A.cache==="no-store"||A.cache==="reload"){if(!A.headersList.contains("pragma",true)){A.headersList.append("pragma","no-cache",true)}if(!A.headersList.contains("cache-control",true)){A.headersList.append("cache-control","no-cache",true)}}if(A.headersList.contains("range",true)){A.headersList.append("accept-encoding","identity",true)}if(!A.headersList.contains("accept-encoding",true)){if(j(v(A))){A.headersList.append("accept-encoding","br, gzip, deflate",true)}else{A.headersList.append("accept-encoding","gzip, deflate",true)}}A.headersList.delete("host",true);if(b){}if(f==null){A.cache="no-store"}if(A.cache!=="no-store"&&A.cache!=="reload"){}if(p==null){if(A.cache==="only-if-cached"){return a("only if cached")}const r=await httpNetworkFetch(d,b,s);if(!oe.has(A.method)&&r.status>=200&&r.status<=399){}if(y&&r.status===304){}if(p==null){p=r}}p.urlList=[...A.urlList];if(A.headersList.contains("range",true)){p.rangeRequested=true}p.requestIncludesCredentials=b;if(p.status===407){if(u.window==="no-window"){return a()}if(M(r)){return l(r)}return a("proxy authentication required")}if(p.status===421&&!s&&(u.body==null||u.body.source!=null)){if(M(r)){return l(r)}r.controller.connection.destroy();p=await httpNetworkOrCacheFetch(r,n,true)}if(n){}return p}async function httpNetworkFetch(r,n=false,s=false){te(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r,n=true){if(!this.destroyed){this.destroyed=true;if(n){this.abort?.(r??new DOMException("The operation was aborted.","AbortError"))}}}};const u=r.request;let A=null;const f=r.timingInfo;const g=null;if(g==null){u.cache="no-store"}const b=s?"yes":"no";if(u.mode==="websocket"){}else{}let C=null;if(u.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(u.body!=null){const processBodyChunk=async function*(n){if(M(r)){return}yield n;r.processRequestBodyChunkLength?.(n.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=n=>{if(M(r)){return}if(n.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(n)}};C=async function*(){try{for await(const r of u.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:n,status:s,statusText:a,headersList:l,socket:u}=await dispatch({body:C});if(u){A=d({status:s,statusText:a,headersList:l,socket:u})}else{const u=n[Symbol.asyncIterator]();r.controller.next=()=>u.next();A=d({status:s,statusText:a,headersList:l})}}catch(n){if(n.name==="AbortError"){r.controller.connection.destroy();return l(r,n)}return a(n)}const pullAlgorithm=async()=>{await r.controller.resume()};const cancelAlgorithm=n=>{if(!M(r)){r.controller.abort(n)}};const w=new ReadableStream({async start(n){r.controller.controller=n},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)},type:"bytes"});A.body={stream:w,source:null,length:null};r.controller.onAborted=onAborted;r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let n;let s;try{const{done:s,value:a}=await r.controller.next();if(U(r)){break}n=s?undefined:a}catch(a){if(r.controller.ended&&!f.encodedBodySize){n=undefined}else{n=a;s=true}}if(n===undefined){z(r.controller.controller);finalizeResponse(r,A);return}f.decodedBodySize+=n?.byteLength??0;if(s){r.controller.terminate(n);return}const a=new Uint8Array(n);if(a.byteLength){r.controller.controller.enqueue(a)}if(fe(w)){r.controller.terminate();return}if(r.controller.controller.desiredSize<=0){return}}};function onAborted(n){if(U(r)){A.aborted=true;if(he(w)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(he(w)){r.controller.controller.error(new TypeError("terminated",{cause:H(n)?n:undefined}))}}r.controller.connection.destroy()}return A;function dispatch({body:n}){const s=v(u);const a=r.controller.dispatcher;return new Promise(((l,d)=>a.dispatch({path:s.pathname+s.search,origin:s.origin,method:u.method,body:a.isMockActive?u.body&&(u.body.source||u.body.stream):n,headers:u.headersList.entries,maxRedirections:0,upgrade:u.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(n){const{connection:s}=r.controller;f.finalConnectionTimingInfo=Y(undefined,f.postRedirectStartTime,r.crossOriginIsolatedCapability);if(s.destroyed){n(new DOMException("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",n);this.abort=s.abort=n}f.finalNetworkRequestStartTime=P(r.crossOriginIsolatedCapability)},onResponseStarted(){f.finalNetworkResponseStartTime=P(r.crossOriginIsolatedCapability)},onHeaders(r,n,s,a){if(r<200){return}let A="";const f=new p;for(let r=0;rs){d(new Error(`too many content-encodings in response: ${n.length}, maximum allowed is ${s}`));return true}for(let r=n.length-1;r>=0;--r){const s=n[r].trim();if(s==="x-gzip"||s==="gzip"){g.push(y.createGunzip({flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH}))}else if(s==="deflate"){g.push(K({flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH}))}else if(s==="br"){g.push(y.createBrotliDecompress({flush:y.constants.BROTLI_OPERATION_FLUSH,finishFlush:y.constants.BROTLI_OPERATION_FLUSH}))}else{g.length=0;break}}}const C=this.onError.bind(this);l({status:r,statusText:a,headersList:f,body:g.length?de(this.body,...g,(r=>{if(r){this.onError(r)}})).on("error",C):this.body.on("error",C)});return true},onData(n){if(r.controller.dump){return}const s=n;f.encodedBodySize+=s.byteLength;return this.body.push(s)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}if(r.controller.onAborted){r.controller.off("terminated",r.controller.onAborted)}r.controller.ended=true;this.body.push(null)},onError(n){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(n);r.controller.terminate(n);d(n)},onUpgrade(r,n,s){if(r!==101){return}const a=new p;for(let r=0;r{const{extractBody:a,mixinBody:l,cloneBody:u,bodyUnusable:d}=s(58780);const{Headers:A,fill:p,HeadersList:f,setHeadersGuard:g,getHeadersGuard:y,setHeadersList:b,getHeadersList:C}=s(26084);const{FinalizationRegistry:w}=s(2669)();const B=s(42336);const I=s(57975);const{isValidHTTPToken:S,sameOrigin:Q,environmentSettingsObject:v}=s(29952);const{forbiddenMethodsSet:R,corsSafeListedMethodsSet:D,referrerPolicy:N,requestRedirect:T,requestMode:x,requestCredentials:k,requestCache:_,requestDuplex:P}=s(64767);const{kEnumerableProperty:F,normalizedMethodRecordsBase:L,normalizedMethodRecords:O}=B;const{kHeaders:M,kSignal:U,kState:H,kDispatcher:G}=s(88299);const{webidl:z}=s(51861);const{URLSerializer:q}=s(54476);const{kConstruct:V}=s(33867);const W=s(34589);const{getMaxListeners:j,setMaxListeners:Y,getEventListeners:J,defaultMaxListeners:$}=s(78474);const K=Symbol("abortController");const X=new w((({signal:r,abort:n})=>{r.removeEventListener("abort",n)}));const Z=new WeakMap;function buildAbort(r){return abort;function abort(){const n=r.deref();if(n!==undefined){X.unregister(abort);this.removeEventListener("abort",abort);n.abort(this.reason);const r=Z.get(n.signal);if(r!==undefined){if(r.size!==0){for(const n of r){const r=n.deref();if(r!==undefined){r.abort(this.reason)}}r.clear()}Z.delete(n.signal)}}}}let ee=false;class Request{constructor(r,n={}){z.util.markAsUncloneable(this);if(r===V){return}const s="Request constructor";z.argumentLengthCheck(arguments,1,s);r=z.converters.RequestInfo(r,s,"input");n=z.converters.RequestInit(n,s,"init");let l=null;let u=null;const y=v.settingsObject.baseUrl;let w=null;if(typeof r==="string"){this[G]=n.dispatcher;let s;try{s=new URL(r,y)}catch(n){throw new TypeError("Failed to parse URL from "+r,{cause:n})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}l=makeRequest({urlList:[s]});u="cors"}else{this[G]=n.dispatcher||r[G];W(r instanceof Request);l=r[H];w=r[U]}const I=v.settingsObject.origin;let N="client";if(l.window?.constructor?.name==="EnvironmentSettingsObject"&&Q(l.window,I)){N=l.window}if(n.window!=null){throw new TypeError(`'window' option '${N}' must be null`)}if("window"in n){N="no-window"}l=makeRequest({method:l.method,headersList:l.headersList,unsafeRequest:l.unsafeRequest,client:v.settingsObject,window:N,priority:l.priority,origin:l.origin,referrer:l.referrer,referrerPolicy:l.referrerPolicy,mode:l.mode,credentials:l.credentials,cache:l.cache,redirect:l.redirect,integrity:l.integrity,keepalive:l.keepalive,reloadNavigation:l.reloadNavigation,historyNavigation:l.historyNavigation,urlList:[...l.urlList]});const T=Object.keys(n).length!==0;if(T){if(l.mode==="navigate"){l.mode="same-origin"}l.reloadNavigation=false;l.historyNavigation=false;l.origin="client";l.referrer="client";l.referrerPolicy="";l.url=l.urlList[l.urlList.length-1];l.urlList=[l.url]}if(n.referrer!==undefined){const r=n.referrer;if(r===""){l.referrer="no-referrer"}else{let n;try{n=new URL(r,y)}catch(n){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:n})}if(n.protocol==="about:"&&n.hostname==="client"||I&&!Q(n,v.settingsObject.baseUrl)){l.referrer="client"}else{l.referrer=n}}}if(n.referrerPolicy!==undefined){l.referrerPolicy=n.referrerPolicy}let x;if(n.mode!==undefined){x=n.mode}else{x=u}if(x==="navigate"){throw z.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(x!=null){l.mode=x}if(n.credentials!==undefined){l.credentials=n.credentials}if(n.cache!==undefined){l.cache=n.cache}if(l.cache==="only-if-cached"&&l.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(n.redirect!==undefined){l.redirect=n.redirect}if(n.integrity!=null){l.integrity=String(n.integrity)}if(n.keepalive!==undefined){l.keepalive=Boolean(n.keepalive)}if(n.method!==undefined){let r=n.method;const s=O[r];if(s!==undefined){l.method=s}else{if(!S(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}const n=r.toUpperCase();if(R.has(n)){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=L[n]??r;l.method=r}if(!ee&&l.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});ee=true}}if(n.signal!==undefined){w=n.signal}this[H]=l;const k=new AbortController;this[U]=k.signal;if(w!=null){if(!w||typeof w.aborted!=="boolean"||typeof w.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(w.aborted){k.abort(w.reason)}else{this[K]=k;const r=new WeakRef(k);const n=buildAbort(r);try{if(typeof j==="function"&&j(w)===$){Y(1500,w)}else if(J(w,"abort").length>=$){Y(1500,w)}}catch{}B.addAbortListener(w,n);X.register(k,{signal:w,abort:n},n)}}this[M]=new A(V);b(this[M],l.headersList);g(this[M],"request");if(x==="no-cors"){if(!D.has(l.method)){throw new TypeError(`'${l.method} is unsupported in no-cors mode.`)}g(this[M],"request-no-cors")}if(T){const r=C(this[M]);const s=n.headers!==undefined?n.headers:new f(r);r.clear();if(s instanceof f){for(const{name:n,value:a}of s.rawValues()){r.append(n,a,false)}r.cookies=s.cookies}else{p(this[M],s)}}const _=r instanceof Request?r[H].body:null;if((n.body!=null||_!=null)&&(l.method==="GET"||l.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let P=null;if(n.body!=null){const[r,s]=a(n.body,l.keepalive);P=r;if(s&&!C(this[M]).contains("content-type",true)){this[M].append("content-type",s)}}const F=P??_;if(F!=null&&F.source==null){if(P!=null&&n.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(l.mode!=="same-origin"&&l.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}l.useCORSPreflightFlag=true}let q=F;if(P==null&&_!=null){if(d(r)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const n=new TransformStream;_.stream.pipeThrough(n);q={source:_.source,length:_.length,stream:n.readable}}this[H].body=q}get method(){z.brandCheck(this,Request);return this[H].method}get url(){z.brandCheck(this,Request);return q(this[H].url)}get headers(){z.brandCheck(this,Request);return this[M]}get destination(){z.brandCheck(this,Request);return this[H].destination}get referrer(){z.brandCheck(this,Request);if(this[H].referrer==="no-referrer"){return""}if(this[H].referrer==="client"){return"about:client"}return this[H].referrer.toString()}get referrerPolicy(){z.brandCheck(this,Request);return this[H].referrerPolicy}get mode(){z.brandCheck(this,Request);return this[H].mode}get credentials(){return this[H].credentials}get cache(){z.brandCheck(this,Request);return this[H].cache}get redirect(){z.brandCheck(this,Request);return this[H].redirect}get integrity(){z.brandCheck(this,Request);return this[H].integrity}get keepalive(){z.brandCheck(this,Request);return this[H].keepalive}get isReloadNavigation(){z.brandCheck(this,Request);return this[H].reloadNavigation}get isHistoryNavigation(){z.brandCheck(this,Request);return this[H].historyNavigation}get signal(){z.brandCheck(this,Request);return this[U]}get body(){z.brandCheck(this,Request);return this[H].body?this[H].body.stream:null}get bodyUsed(){z.brandCheck(this,Request);return!!this[H].body&&B.isDisturbed(this[H].body.stream)}get duplex(){z.brandCheck(this,Request);return"half"}clone(){z.brandCheck(this,Request);if(d(this)){throw new TypeError("unusable")}const r=cloneRequest(this[H]);const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{let r=Z.get(this.signal);if(r===undefined){r=new Set;Z.set(this.signal,r)}const s=new WeakRef(n);r.add(s);B.addAbortListener(n.signal,buildAbort(s))}return fromInnerRequest(r,n.signal,y(this[M]))}[I.inspect.custom](r,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${I.formatWithOptions(n,s)}`}}l(Request);function makeRequest(r){return{method:r.method??"GET",localURLsOnly:r.localURLsOnly??false,unsafeRequest:r.unsafeRequest??false,body:r.body??null,client:r.client??null,reservedClient:r.reservedClient??null,replacesClientId:r.replacesClientId??"",window:r.window??"client",keepalive:r.keepalive??false,serviceWorkers:r.serviceWorkers??"all",initiator:r.initiator??"",destination:r.destination??"",priority:r.priority??null,origin:r.origin??"client",policyContainer:r.policyContainer??"client",referrer:r.referrer??"client",referrerPolicy:r.referrerPolicy??"",mode:r.mode??"no-cors",useCORSPreflightFlag:r.useCORSPreflightFlag??false,credentials:r.credentials??"same-origin",useCredentials:r.useCredentials??false,cache:r.cache??"default",redirect:r.redirect??"follow",integrity:r.integrity??"",cryptoGraphicsNonceMetadata:r.cryptoGraphicsNonceMetadata??"",parserMetadata:r.parserMetadata??"",reloadNavigation:r.reloadNavigation??false,historyNavigation:r.historyNavigation??false,userActivation:r.userActivation??false,taintedOrigin:r.taintedOrigin??false,redirectCount:r.redirectCount??0,responseTainting:r.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:r.preventNoCacheCacheControlHeaderModification??false,done:r.done??false,timingAllowFailed:r.timingAllowFailed??false,urlList:r.urlList,url:r.urlList[0],headersList:r.headersList?new f(r.headersList):new f}}function cloneRequest(r){const n=makeRequest({...r,body:null});if(r.body!=null){n.body=u(n,r.body)}return n}function fromInnerRequest(r,n,s){const a=new Request(V);a[H]=r;a[U]=n;a[M]=new A(V);b(a[M],r.headersList);g(a[M],s);return a}Object.defineProperties(Request.prototype,{method:F,url:F,headers:F,redirect:F,clone:F,signal:F,duplex:F,destination:F,body:F,bodyUsed:F,isHistoryNavigation:F,isReloadNavigation:F,keepalive:F,integrity:F,cache:F,credentials:F,attribute:F,referrerPolicy:F,referrer:F,mode:F,[Symbol.toStringTag]:{value:"Request",configurable:true}});z.converters.Request=z.interfaceConverter(Request);z.converters.RequestInfo=function(r,n,s){if(typeof r==="string"){return z.converters.USVString(r,n,s)}if(r instanceof Request){return z.converters.Request(r,n,s)}return z.converters.USVString(r,n,s)};z.converters.AbortSignal=z.interfaceConverter(AbortSignal);z.converters.RequestInit=z.dictionaryConverter([{key:"method",converter:z.converters.ByteString},{key:"headers",converter:z.converters.HeadersInit},{key:"body",converter:z.nullableConverter(z.converters.BodyInit)},{key:"referrer",converter:z.converters.USVString},{key:"referrerPolicy",converter:z.converters.DOMString,allowedValues:N},{key:"mode",converter:z.converters.DOMString,allowedValues:x},{key:"credentials",converter:z.converters.DOMString,allowedValues:k},{key:"cache",converter:z.converters.DOMString,allowedValues:_},{key:"redirect",converter:z.converters.DOMString,allowedValues:T},{key:"integrity",converter:z.converters.DOMString},{key:"keepalive",converter:z.converters.boolean},{key:"signal",converter:z.nullableConverter((r=>z.converters.AbortSignal(r,"RequestInit","signal",{strict:false})))},{key:"window",converter:z.converters.any},{key:"duplex",converter:z.converters.DOMString,allowedValues:P},{key:"dispatcher",converter:z.converters.any}]);r.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},58843:(r,n,s)=>{const{Headers:a,HeadersList:l,fill:u,getHeadersGuard:d,setHeadersGuard:A,setHeadersList:p}=s(26084);const{extractBody:f,cloneBody:g,mixinBody:y,hasFinalizationRegistry:b,streamRegistry:C,bodyUnusable:w}=s(58780);const B=s(42336);const I=s(57975);const{kEnumerableProperty:S}=B;const{isValidReasonPhrase:Q,isCancelled:v,isAborted:R,isBlobLike:D,serializeJavascriptValueToJSONString:N,isErrorLike:T,isomorphicEncode:x,environmentSettingsObject:k}=s(29952);const{redirectStatusSet:_,nullBodyStatus:P}=s(64767);const{kState:F,kHeaders:L}=s(88299);const{webidl:O}=s(51861);const{FormData:M}=s(56694);const{URLSerializer:U}=s(54476);const{kConstruct:H}=s(33867);const G=s(34589);const{types:z}=s(57975);const q=new TextEncoder("utf-8");class Response{static error(){const r=fromInnerResponse(makeNetworkError(),"immutable");return r}static json(r,n={}){O.argumentLengthCheck(arguments,1,"Response.json");if(n!==null){n=O.converters.ResponseInit(n)}const s=q.encode(N(r));const a=f(s);const l=fromInnerResponse(makeResponse({}),"response");initializeResponse(l,n,{body:a[0],type:"application/json"});return l}static redirect(r,n=302){O.argumentLengthCheck(arguments,1,"Response.redirect");r=O.converters.USVString(r);n=O.converters["unsigned short"](n);let s;try{s=new URL(r,k.settingsObject.baseUrl)}catch(n){throw new TypeError(`Failed to parse URL from ${r}`,{cause:n})}if(!_.has(n)){throw new RangeError(`Invalid status code ${n}`)}const a=fromInnerResponse(makeResponse({}),"immutable");a[F].status=n;const l=x(U(s));a[F].headersList.append("location",l,true);return a}constructor(r=null,n={}){O.util.markAsUncloneable(this);if(r===H){return}if(r!==null){r=O.converters.BodyInit(r)}n=O.converters.ResponseInit(n);this[F]=makeResponse({});this[L]=new a(H);A(this[L],"response");p(this[L],this[F].headersList);let s=null;if(r!=null){const[n,a]=f(r);s={body:n,type:a}}initializeResponse(this,n,s)}get type(){O.brandCheck(this,Response);return this[F].type}get url(){O.brandCheck(this,Response);const r=this[F].urlList;const n=r[r.length-1]??null;if(n===null){return""}return U(n,true)}get redirected(){O.brandCheck(this,Response);return this[F].urlList.length>1}get status(){O.brandCheck(this,Response);return this[F].status}get ok(){O.brandCheck(this,Response);return this[F].status>=200&&this[F].status<=299}get statusText(){O.brandCheck(this,Response);return this[F].statusText}get headers(){O.brandCheck(this,Response);return this[L]}get body(){O.brandCheck(this,Response);return this[F].body?this[F].body.stream:null}get bodyUsed(){O.brandCheck(this,Response);return!!this[F].body&&B.isDisturbed(this[F].body.stream)}clone(){O.brandCheck(this,Response);if(w(this)){throw O.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[F]);if(b&&this[F].body?.stream){C.register(this,new WeakRef(this[F].body.stream))}return fromInnerResponse(r,d(this[L]))}[I.inspect.custom](r,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${I.formatWithOptions(n,s)}`}}y(Response);Object.defineProperties(Response.prototype,{type:S,url:S,status:S,ok:S,redirected:S,statusText:S,headers:S,clone:S,body:S,bodyUsed:S,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:S,redirect:S,error:S});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const n=makeResponse({...r,body:null});if(r.body!=null){n.body=g(n,r.body)}return n}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r?.headersList?new l(r?.headersList):new l,urlList:r?.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const n=T(r);return makeResponse({type:"error",status:0,error:n?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function isNetworkError(r){return r.type==="error"&&r.status===0}function makeFilteredResponse(r,n){n={internalResponse:r,...n};return new Proxy(r,{get(r,s){return s in n?n[s]:r[s]},set(r,s,a){G(!(s in n));r[s]=a;return true}})}function filterResponse(r,n){if(n==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(n==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(n==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(n==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{G(false)}}function makeAppropriateNetworkError(r,n=null){G(v(r));return R(r)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:n})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:n}))}function initializeResponse(r,n,s){if(n.status!==null&&(n.status<200||n.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in n&&n.statusText!=null){if(!Q(String(n.statusText))){throw new TypeError("Invalid statusText")}}if("status"in n&&n.status!=null){r[F].status=n.status}if("statusText"in n&&n.statusText!=null){r[F].statusText=n.statusText}if("headers"in n&&n.headers!=null){u(r[L],n.headers)}if(s){if(P.includes(r.status)){throw O.errors.exception({header:"Response constructor",message:`Invalid response status code ${r.status}`})}r[F].body=s.body;if(s.type!=null&&!r[F].headersList.contains("content-type",true)){r[F].headersList.append("content-type",s.type,true)}}}function fromInnerResponse(r,n){const s=new Response(H);s[F]=r;s[L]=new a(H);p(s[L],r.headersList);A(s[L],n);if(b&&r.body?.stream){C.register(s,new WeakRef(r.body.stream))}return s}O.converters.ReadableStream=O.interfaceConverter(ReadableStream);O.converters.FormData=O.interfaceConverter(M);O.converters.URLSearchParams=O.interfaceConverter(URLSearchParams);O.converters.XMLHttpRequestBodyInit=function(r,n,s){if(typeof r==="string"){return O.converters.USVString(r,n,s)}if(D(r)){return O.converters.Blob(r,n,s,{strict:false})}if(ArrayBuffer.isView(r)||z.isArrayBuffer(r)){return O.converters.BufferSource(r,n,s)}if(B.isFormDataLike(r)){return O.converters.FormData(r,n,s,{strict:false})}if(r instanceof URLSearchParams){return O.converters.URLSearchParams(r,n,s)}return O.converters.DOMString(r,n,s)};O.converters.BodyInit=function(r,n,s){if(r instanceof ReadableStream){return O.converters.ReadableStream(r,n,s)}if(r?.[Symbol.asyncIterator]){return r}return O.converters.XMLHttpRequestBodyInit(r,n,s)};O.converters.ResponseInit=O.dictionaryConverter([{key:"status",converter:O.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:O.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:O.converters.HeadersInit}]);r.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},88299:r=>{r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},29952:(r,n,s)=>{const{Transform:a}=s(57075);const l=s(38522);const{redirectStatusSet:u,referrerPolicySet:d,badPortsSet:A}=s(64767);const{getGlobalOrigin:p}=s(4035);const{collectASequenceOfCodePoints:f,collectAnHTTPQuotedString:g,removeChars:y,parseMIMEType:b}=s(54476);const{performance:C}=s(643);const{isBlobLike:w,ReadableStreamFrom:B,isValidHTTPToken:I,normalizedMethodRecordsBase:S}=s(42336);const Q=s(34589);const{isUint8Array:v}=s(73429);const{webidl:R}=s(51861);let D=[];let N;try{N=s(77598);const r=["sha256","sha384","sha512"];D=N.getHashes().filter((n=>r.includes(n)))}catch{}function responseURL(r){const n=r.urlList;const s=n.length;return s===0?null:n[s-1].toString()}function responseLocationURL(r,n){if(!u.has(r.status)){return null}let s=r.headersList.get("location",true);if(s!==null&&isValidHeaderValue(s)){if(!isValidEncodedURL(s)){s=normalizeBinaryStringToUtf8(s)}s=new URL(s,responseURL(r))}if(s&&!s.hash){s.hash=n}return s}function isValidEncodedURL(r){for(let n=0;n126||s<32){return false}}return true}function normalizeBinaryStringToUtf8(r){return Buffer.from(r,"binary").toString("utf8")}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const n=requestCurrentURL(r);if(urlIsHttpHttpsScheme(n)&&A.has(n.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let n=0;n=32&&s<=126||s>=128&&s<=255)){return false}}return true}const T=I;function isValidHeaderValue(r){return(r[0]==="\t"||r[0]===" "||r[r.length-1]==="\t"||r[r.length-1]===" "||r.includes("\n")||r.includes("\r")||r.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(r,n){const{headersList:s}=n;const a=(s.get("referrer-policy",true)??"").split(",");let l="";if(a.length>0){for(let r=a.length;r!==0;r--){const n=a[r-1].trim();if(d.has(n)){l=n;break}}}if(l!==""){r.referrerPolicy=l}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let n=null;n=r.mode;r.headersList.set("sec-fetch-mode",n,true)}function appendRequestOriginHeader(r){let n=r.origin;if(n==="client"||n===undefined){return}if(r.responseTainting==="cors"||r.mode==="websocket"){r.headersList.append("origin",n,true)}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":n=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){n=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){n=null}break;default:}r.headersList.append("origin",n,true)}}function coarsenTime(r,n){return r}function clampAndCoarsenConnectionTimingInfo(r,n,s){if(!r?.startTime||r.startTime4096){a=l}const u=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(n){case"origin":return l!=null?l:stripURLForReferrer(s,true);case"unsafe-url":return a;case"same-origin":return u?l:"no-referrer";case"origin-when-cross-origin":return u?a:l;case"strict-origin-when-cross-origin":{const n=requestCurrentURL(r);if(sameOrigin(a,n)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(n)){return"no-referrer"}return l}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":l}}function stripURLForReferrer(r,n){Q(r instanceof URL);r=new URL(r);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(n){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const n=new URL(r);if(n.protocol==="https:"||n.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||(n.hostname==="localhost"||n.hostname.includes("localhost."))||n.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,n){if(N===undefined){return true}const s=parseMetadata(n);if(s==="no metadata"){return true}if(s.length===0){return true}const a=getStrongestMetadata(s);const l=filterMetadataListByAlgorithm(s,a);for(const n of l){const s=n.algo;const a=n.hash;let l=N.createHash(s).update(r).digest("base64");if(l[l.length-1]==="="){if(l[l.length-2]==="="){l=l.slice(0,-2)}else{l=l.slice(0,-1)}}if(compareBase64Mixed(l,a)){return true}}return false}const x=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const n=[];let s=true;for(const a of r.split(" ")){s=false;const r=x.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const l=r.groups.algo.toLowerCase();if(D.includes(l)){n.push(r.groups)}}if(s===true){return"no metadata"}return n}function getStrongestMetadata(r){let n=r[0].algo;if(n[3]==="5"){return n}for(let s=1;s{r=s;n=a}));return{promise:s,resolve:r,reject:n}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}function normalizeMethod(r){return S[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const n=JSON.stringify(r);if(n===undefined){throw new TypeError("Value is not JSON serializable")}Q(typeof n==="string");return n}const k=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(r,n,s=0,a=1){class FastIterableIterator{#V;#W;#j;constructor(r,n){this.#V=r;this.#W=n;this.#j=0}next(){if(typeof this!=="object"||this===null||!(#V in this)){throw new TypeError(`'next' called on an object that does not implement interface ${r} Iterator.`)}const l=this.#j;const u=this.#V[n];const d=u.length;if(l>=d){return{value:undefined,done:true}}const{[s]:A,[a]:p}=u[l];this.#j=l+1;let f;switch(this.#W){case"key":f=A;break;case"value":f=p;break;case"key+value":f=[A,p];break}return{value:f,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,k);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${r} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(r,n){return new FastIterableIterator(r,n)}}function iteratorMixin(r,n,s,a=0,l=1){const u=createIterator(r,s,a,l);const d={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){R.brandCheck(this,n);return u(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){R.brandCheck(this,n);return u(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){R.brandCheck(this,n);return u(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(s,a=globalThis){R.brandCheck(this,n);R.argumentLengthCheck(arguments,1,`${r}.forEach`);if(typeof s!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${r}': parameter 1 is not of type 'Function'.`)}for(const{0:r,1:n}of u(this,"key+value")){s.call(a,n,r,this)}}}};return Object.defineProperties(n.prototype,{...d,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:d.entries.value}})}async function fullyReadBody(r,n,s){const a=n;const l=s;let u;try{u=r.stream.getReader()}catch(r){l(r);return}try{a(await readAllBytes(u))}catch(r){l(r)}}function isReadableStreamLike(r){return r instanceof ReadableStream||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}function readableStreamClose(r){try{r.close();r.byobRequest?.respond(0)}catch(r){if(!r.message.includes("Controller is already closed")&&!r.message.includes("ReadableStream is already closed")){throw r}}}const _=/[^\x00-\xFF]/;function isomorphicEncode(r){Q(!_.test(r));return r}async function readAllBytes(r){const n=[];let s=0;while(true){const{done:a,value:l}=await r.read();if(a){return Buffer.concat(n,s)}if(!v(l)){throw new TypeError("Received non-Uint8Array chunk")}n.push(l);s+=l.length}}function urlIsLocal(r){Q("protocol"in r);const n=r.protocol;return n==="about:"||n==="blob:"||n==="data:"}function urlHasHttpsScheme(r){return typeof r==="string"&&r[5]===":"&&r[0]==="h"&&r[1]==="t"&&r[2]==="t"&&r[3]==="p"&&r[4]==="s"||r.protocol==="https:"}function urlIsHttpHttpsScheme(r){Q("protocol"in r);const n=r.protocol;return n==="http:"||n==="https:"}function simpleRangeHeaderValue(r,n){const s=r;if(!s.startsWith("bytes")){return"failure"}const a={position:5};if(n){f((r=>r==="\t"||r===" "),s,a)}if(s.charCodeAt(a.position)!==61){return"failure"}a.position++;if(n){f((r=>r==="\t"||r===" "),s,a)}const l=f((r=>{const n=r.charCodeAt(0);return n>=48&&n<=57}),s,a);const u=l.length?Number(l):null;if(n){f((r=>r==="\t"||r===" "),s,a)}if(s.charCodeAt(a.position)!==45){return"failure"}a.position++;if(n){f((r=>r==="\t"||r===" "),s,a)}const d=f((r=>{const n=r.charCodeAt(0);return n>=48&&n<=57}),s,a);const A=d.length?Number(d):null;if(a.positionA){return"failure"}return{rangeStartValue:u,rangeEndValue:A}}function buildContentRange(r,n,s){let a="bytes ";a+=isomorphicEncode(`${r}`);a+="-";a+=isomorphicEncode(`${n}`);a+="/";a+=isomorphicEncode(`${s}`);return a}class InflateStream extends a{#Y;constructor(r){super();this.#Y=r}_transform(r,n,s){if(!this._inflateStream){if(r.length===0){s();return}this._inflateStream=(r[0]&15)===8?l.createInflate(this.#Y):l.createInflateRaw(this.#Y);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(r=>this.destroy(r)))}this._inflateStream.write(r,n,s)}_final(r){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}r()}}function createInflate(r){return new InflateStream(r)}function extractMimeType(r){let n=null;let s=null;let a=null;const l=getDecodeSplit("content-type",r);if(l===null){return"failure"}for(const r of l){const l=b(r);if(l==="failure"||l.essence==="*/*"){continue}a=l;if(a.essence!==s){n=null;if(a.parameters.has("charset")){n=a.parameters.get("charset")}s=a.essence}else if(!a.parameters.has("charset")&&n!==null){a.parameters.set("charset",n)}}if(a==null){return"failure"}return a}function gettingDecodingSplitting(r){const n=r;const s={position:0};const a=[];let l="";while(s.positionr!=='"'&&r!==","),n,s);if(s.positionr===9||r===32));a.push(l);l=""}return a}function getDecodeSplit(r,n){const s=n.get(r,true);if(s===null){return null}return gettingDecodingSplitting(s)}const P=new TextDecoder;function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const n=P.decode(r);return n}class EnvironmentSettingsObjectBase{get baseUrl(){return p()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const F=new EnvironmentSettingsObject;r.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:B,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:I,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:w,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:T,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:F}},51861:(r,n,s)=>{const{types:a,inspect:l}=s(57975);const{markAsUncloneable:u}=s(75919);const{toUSVString:d}=s(42336);const A={};A.converters={};A.util={};A.errors={};A.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};A.errors.conversionFailed=function(r){const n=r.types.length===1?"":" one of";const s=`${r.argument} could not be converted to`+`${n}: ${r.types.join(", ")}.`;return A.errors.exception({header:r.prefix,message:s})};A.errors.invalidArgument=function(r){return A.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};A.brandCheck=function(r,n,s){if(s?.strict!==false){if(!(r instanceof n)){const r=new TypeError("Illegal invocation");r.code="ERR_INVALID_THIS";throw r}}else{if(r?.[Symbol.toStringTag]!==n.prototype[Symbol.toStringTag]){const r=new TypeError("Illegal invocation");r.code="ERR_INVALID_THIS";throw r}}};A.argumentLengthCheck=function({length:r},n,s){if(r{});A.util.ConvertToInt=function(r,n,s,a){let l;let u;if(n===64){l=Math.pow(2,53)-1;if(s==="unsigned"){u=0}else{u=Math.pow(-2,53)+1}}else if(s==="unsigned"){u=0;l=Math.pow(2,n)-1}else{u=Math.pow(-2,n)-1;l=Math.pow(2,n-1)-1}let d=Number(r);if(d===0){d=0}if(a?.enforceRange===true){if(Number.isNaN(d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){throw A.errors.exception({header:"Integer conversion",message:`Could not convert ${A.util.Stringify(r)} to an integer.`})}d=A.util.IntegerPart(d);if(dl){throw A.errors.exception({header:"Integer conversion",message:`Value must be between ${u}-${l}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a?.clamp===true){d=Math.min(Math.max(d,u),l);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=A.util.IntegerPart(d);d=d%Math.pow(2,n);if(s==="signed"&&d>=Math.pow(2,n)-1){return d-Math.pow(2,n)}return d};A.util.IntegerPart=function(r){const n=Math.floor(Math.abs(r));if(r<0){return-1*n}return n};A.util.Stringify=function(r){const n=A.util.Type(r);switch(n){case"Symbol":return`Symbol(${r.description})`;case"Object":return l(r);case"String":return`"${r}"`;default:return`${r}`}};A.sequenceConverter=function(r){return(n,s,a,l)=>{if(A.util.Type(n)!=="Object"){throw A.errors.exception({header:s,message:`${a} (${A.util.Stringify(n)}) is not iterable.`})}const u=typeof l==="function"?l():n?.[Symbol.iterator]?.();const d=[];let p=0;if(u===undefined||typeof u.next!=="function"){throw A.errors.exception({header:s,message:`${a} is not iterable.`})}while(true){const{done:n,value:l}=u.next();if(n){break}d.push(r(l,s,`${a}[${p++}]`))}return d}};A.recordConverter=function(r,n){return(s,l,u)=>{if(A.util.Type(s)!=="Object"){throw A.errors.exception({header:l,message:`${u} ("${A.util.Type(s)}") is not an Object.`})}const d={};if(!a.isProxy(s)){const a=[...Object.getOwnPropertyNames(s),...Object.getOwnPropertySymbols(s)];for(const A of a){const a=r(A,l,u);const p=n(s[A],l,u);d[a]=p}return d}const p=Reflect.ownKeys(s);for(const a of p){const A=Reflect.getOwnPropertyDescriptor(s,a);if(A?.enumerable){const A=r(a,l,u);const p=n(s[a],l,u);d[A]=p}}return d}};A.interfaceConverter=function(r){return(n,s,a,l)=>{if(l?.strict!==false&&!(n instanceof r)){throw A.errors.exception({header:s,message:`Expected ${a} ("${A.util.Stringify(n)}") to be an instance of ${r.name}.`})}return n}};A.dictionaryConverter=function(r){return(n,s,a)=>{const l=A.util.Type(n);const u={};if(l==="Null"||l==="Undefined"){return u}else if(l!=="Object"){throw A.errors.exception({header:s,message:`Expected ${n} to be one of: Null, Undefined, Object.`})}for(const l of r){const{key:r,defaultValue:d,required:p,converter:f}=l;if(p===true){if(!Object.hasOwn(n,r)){throw A.errors.exception({header:s,message:`Missing required key "${r}".`})}}let g=n[r];const y=Object.hasOwn(l,"defaultValue");if(y&&g!==null){g??=d()}if(p||y||g!==undefined){g=f(g,s,`${a}.${r}`);if(l.allowedValues&&!l.allowedValues.includes(g)){throw A.errors.exception({header:s,message:`${g} is not an accepted type. Expected one of ${l.allowedValues.join(", ")}.`})}u[r]=g}}return u}};A.nullableConverter=function(r){return(n,s,a)=>{if(n===null){return n}return r(n,s,a)}};A.converters.DOMString=function(r,n,s,a){if(r===null&&a?.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw A.errors.exception({header:n,message:`${s} is a symbol, which cannot be converted to a DOMString.`})}return String(r)};A.converters.ByteString=function(r,n,s){const a=A.converters.DOMString(r,n,s);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${a.charCodeAt(r)} which is greater than 255.`)}}return a};A.converters.USVString=d;A.converters.boolean=function(r){const n=Boolean(r);return n};A.converters.any=function(r){return r};A.converters["long long"]=function(r,n,s){const a=A.util.ConvertToInt(r,64,"signed",undefined,n,s);return a};A.converters["unsigned long long"]=function(r,n,s){const a=A.util.ConvertToInt(r,64,"unsigned",undefined,n,s);return a};A.converters["unsigned long"]=function(r,n,s){const a=A.util.ConvertToInt(r,32,"unsigned",undefined,n,s);return a};A.converters["unsigned short"]=function(r,n,s,a){const l=A.util.ConvertToInt(r,16,"unsigned",a,n,s);return l};A.converters.ArrayBuffer=function(r,n,s,l){if(A.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw A.errors.conversionFailed({prefix:n,argument:`${s} ("${A.util.Stringify(r)}")`,types:["ArrayBuffer"]})}if(l?.allowShared===false&&a.isSharedArrayBuffer(r)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.resizable||r.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.TypedArray=function(r,n,s,l,u){if(A.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==n.name){throw A.errors.conversionFailed({prefix:s,argument:`${l} ("${A.util.Stringify(r)}")`,types:[n.name]})}if(u?.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.buffer.resizable||r.buffer.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.DataView=function(r,n,s,l){if(A.util.Type(r)!=="Object"||!a.isDataView(r)){throw A.errors.exception({header:n,message:`${s} is not a DataView.`})}if(l?.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.buffer.resizable||r.buffer.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.BufferSource=function(r,n,s,l){if(a.isAnyArrayBuffer(r)){return A.converters.ArrayBuffer(r,n,s,{...l,allowShared:false})}if(a.isTypedArray(r)){return A.converters.TypedArray(r,r.constructor,n,s,{...l,allowShared:false})}if(a.isDataView(r)){return A.converters.DataView(r,n,s,{...l,allowShared:false})}throw A.errors.conversionFailed({prefix:n,argument:`${s} ("${A.util.Stringify(r)}")`,types:["BufferSource"]})};A.converters["sequence"]=A.sequenceConverter(A.converters.ByteString);A.converters["sequence>"]=A.sequenceConverter(A.converters["sequence"]);A.converters["record"]=A.recordConverter(A.converters.ByteString,A.converters.ByteString);r.exports={webidl:A}},39295:r=>{function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},50579:(r,n,s)=>{const{staticPropertyDescriptors:a,readOperation:l,fireAProgressEvent:u}=s(56890);const{kState:d,kError:A,kResult:p,kEvents:f,kAborted:g}=s(52977);const{webidl:y}=s(51861);const{kEnumerableProperty:b}=s(42336);class FileReader extends EventTarget{constructor(){super();this[d]="empty";this[p]=null;this[A]=null;this[f]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");r=y.converters.Blob(r,{strict:false});l(this,r,"ArrayBuffer")}readAsBinaryString(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");r=y.converters.Blob(r,{strict:false});l(this,r,"BinaryString")}readAsText(r,n=undefined){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsText");r=y.converters.Blob(r,{strict:false});if(n!==undefined){n=y.converters.DOMString(n,"FileReader.readAsText","encoding")}l(this,r,"Text",n)}readAsDataURL(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");r=y.converters.Blob(r,{strict:false});l(this,r,"DataURL")}abort(){if(this[d]==="empty"||this[d]==="done"){this[p]=null;return}if(this[d]==="loading"){this[d]="done";this[p]=null}this[g]=true;u("abort",this);if(this[d]!=="loading"){u("loadend",this)}}get readyState(){y.brandCheck(this,FileReader);switch(this[d]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){y.brandCheck(this,FileReader);return this[p]}get error(){y.brandCheck(this,FileReader);return this[A]}get onloadend(){y.brandCheck(this,FileReader);return this[f].loadend}set onloadend(r){y.brandCheck(this,FileReader);if(this[f].loadend){this.removeEventListener("loadend",this[f].loadend)}if(typeof r==="function"){this[f].loadend=r;this.addEventListener("loadend",r)}else{this[f].loadend=null}}get onerror(){y.brandCheck(this,FileReader);return this[f].error}set onerror(r){y.brandCheck(this,FileReader);if(this[f].error){this.removeEventListener("error",this[f].error)}if(typeof r==="function"){this[f].error=r;this.addEventListener("error",r)}else{this[f].error=null}}get onloadstart(){y.brandCheck(this,FileReader);return this[f].loadstart}set onloadstart(r){y.brandCheck(this,FileReader);if(this[f].loadstart){this.removeEventListener("loadstart",this[f].loadstart)}if(typeof r==="function"){this[f].loadstart=r;this.addEventListener("loadstart",r)}else{this[f].loadstart=null}}get onprogress(){y.brandCheck(this,FileReader);return this[f].progress}set onprogress(r){y.brandCheck(this,FileReader);if(this[f].progress){this.removeEventListener("progress",this[f].progress)}if(typeof r==="function"){this[f].progress=r;this.addEventListener("progress",r)}else{this[f].progress=null}}get onload(){y.brandCheck(this,FileReader);return this[f].load}set onload(r){y.brandCheck(this,FileReader);if(this[f].load){this.removeEventListener("load",this[f].load)}if(typeof r==="function"){this[f].load=r;this.addEventListener("load",r)}else{this[f].load=null}}get onabort(){y.brandCheck(this,FileReader);return this[f].abort}set onabort(r){y.brandCheck(this,FileReader);if(this[f].abort){this.removeEventListener("abort",this[f].abort)}if(typeof r==="function"){this[f].abort=r;this.addEventListener("abort",r)}else{this[f].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:b,readAsBinaryString:b,readAsText:b,readAsDataURL:b,abort:b,readyState:b,result:b,error:b,onloadstart:b,onprogress:b,onload:b,onabort:b,onerror:b,onloadend:b,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},21197:(r,n,s)=>{const{webidl:a}=s(51861);const l=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,n={}){r=a.converters.DOMString(r,"ProgressEvent constructor","type");n=a.converters.ProgressEventInit(n??{});super(r,n);this[l]={lengthComputable:n.lengthComputable,loaded:n.loaded,total:n.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[l].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[l].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[l].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}]);r.exports={ProgressEvent:ProgressEvent}},52977:r=>{r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},56890:(r,n,s)=>{const{kState:a,kError:l,kResult:u,kAborted:d,kLastProgressEventFired:A}=s(52977);const{ProgressEvent:p}=s(21197);const{getEncoding:f}=s(39295);const{serializeAMimeType:g,parseMIMEType:y}=s(54476);const{types:b}=s(57975);const{StringDecoder:C}=s(13193);const{btoa:w}=s(4573);const B={enumerable:true,writable:false,configurable:false};function readOperation(r,n,s,p){if(r[a]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}r[a]="loading";r[u]=null;r[l]=null;const f=n.stream();const g=f.getReader();const y=[];let C=g.read();let w=true;(async()=>{while(!r[d]){try{const{done:f,value:B}=await C;if(w&&!r[d]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}w=false;if(!f&&b.isUint8Array(B)){y.push(B);if((r[A]===undefined||Date.now()-r[A]>=50)&&!r[d]){r[A]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}C=g.read()}else if(f){queueMicrotask((()=>{r[a]="done";try{const a=packageData(y,s,n.type,p);if(r[d]){return}r[u]=a;fireAProgressEvent("load",r)}catch(n){r[l]=n;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(n){if(r[d]){return}queueMicrotask((()=>{r[a]="done";r[l]=n;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,n){const s=new p(r,{bubbles:false,cancelable:false});n.dispatchEvent(s)}function packageData(r,n,s,a){switch(n){case"DataURL":{let n="data:";const a=y(s||"application/octet-stream");if(a!=="failure"){n+=g(a)}n+=";base64,";const l=new C("latin1");for(const s of r){n+=w(l.write(s))}n+=w(l.end());return n}case"Text":{let n="failure";if(a){n=f(a)}if(n==="failure"&&s){const r=y(s);if(r!=="failure"){n=f(r.parameters.get("charset"))}}if(n==="failure"){n="UTF-8"}return decode(r,n)}case"ArrayBuffer":{const n=combineByteSequences(r);return n.buffer}case"BinaryString":{let n="";const s=new C("latin1");for(const a of r){n+=s.write(a)}n+=s.end();return n}}}function decode(r,n){const s=combineByteSequences(r);const a=BOMSniffing(s);let l=0;if(a!==null){n=a;l=a==="UTF-8"?3:2}const u=s.slice(l);return new TextDecoder(n).decode(u)}function BOMSniffing(r){const[n,s,a]=r;if(n===239&&s===187&&a===191){return"UTF-8"}else if(n===254&&s===255){return"UTF-16BE"}else if(n===255&&s===254){return"UTF-16LE"}return null}function combineByteSequences(r){const n=r.reduce(((r,n)=>r+n.byteLength),0);let s=0;return r.reduce(((r,n)=>{r.set(n,s);s+=n.byteLength;return r}),new Uint8Array(n))}r.exports={staticPropertyDescriptors:B,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},92801:(r,n,s)=>{const{uid:a,states:l,sentCloseFrameState:u,emptyBuffer:d,opcodes:A}=s(112);const{kReadyState:p,kSentClose:f,kByteParser:g,kReceivedClose:y,kResponse:b}=s(24208);const{fireEvent:C,failWebsocketConnection:w,isClosing:B,isClosed:I,isEstablished:S,parseExtensions:Q}=s(88017);const{channels:v}=s(69086);const{CloseEvent:R}=s(58276);const{makeRequest:D}=s(4031);const{fetching:N}=s(51118);const{Headers:T,getHeadersList:x}=s(26084);const{getDecodeSplit:k}=s(29952);const{WebsocketFrameSend:_}=s(45072);let P;try{P=s(77598)}catch{}function establishWebSocketConnection(r,n,s,l,u,d){const A=r;A.protocol=r.protocol==="ws:"?"http:":"https:";const p=D({urlList:[A],client:s,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const r=x(new T(d.headers));p.headersList=r}const f=P.randomBytes(16).toString("base64");p.headersList.append("sec-websocket-key",f);p.headersList.append("sec-websocket-version","13");for(const r of n){p.headersList.append("sec-websocket-protocol",r)}const g="permessage-deflate; client_max_window_bits";p.headersList.append("sec-websocket-extensions",g);const y=N({request:p,useParallelQueue:true,dispatcher:d.dispatcher,processResponse(r){if(r.type==="error"||r.status!==101){w(l,"Received network error or non-101 status code.");return}if(n.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){w(l,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){w(l,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){w(l,'Server did not set Connection header to "upgrade".');return}const s=r.headersList.get("Sec-WebSocket-Accept");const d=P.createHash("sha1").update(f+a).digest("base64");if(s!==d){w(l,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=r.headersList.get("Sec-WebSocket-Extensions");let g;if(A!==null){g=Q(A);if(!g.has("permessage-deflate")){w(l,"Sec-WebSocket-Extensions header does not match.");return}}const y=r.headersList.get("Sec-WebSocket-Protocol");if(y!==null){const r=k("sec-websocket-protocol",p.headersList);if(!r.includes(y)){w(l,"Protocol was not set in the opening handshake.");return}}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(v.open.hasSubscribers){v.open.publish({address:r.socket.address(),protocol:y,extensions:A})}u(r,g)}});return y}function closeWebSocketConnection(r,n,s,a){if(B(r)||I(r)){}else if(!S(r)){w(r,"Connection was closed before it was established.");r[p]=l.CLOSING}else if(r[f]===u.NOT_SENT){r[f]=u.PROCESSING;const g=new _;if(n!==undefined&&s===undefined){g.frameData=Buffer.allocUnsafe(2);g.frameData.writeUInt16BE(n,0)}else if(n!==undefined&&s!==undefined){g.frameData=Buffer.allocUnsafe(2+a);g.frameData.writeUInt16BE(n,0);g.frameData.write(s,2,"utf-8")}else{g.frameData=d}const y=r[b].socket;y.write(g.createFrame(A.CLOSE));r[f]=u.SENT;r[p]=l.CLOSING}else{r[p]=l.CLOSING}}function onSocketData(r){if(!this.ws[g].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const{[b]:n}=r;n.socket.off("data",onSocketData);n.socket.off("close",onSocketClose);n.socket.off("error",onSocketError);const s=r[f]===u.SENT&&r[y];let a=1005;let d="";const A=r[g].closingInfo;if(A&&!A.error){a=A.code??1005;d=A.reason}else if(!r[y]){a=1006}r[p]=l.CLOSED;C("close",r,((r,n)=>new R(r,n)),{wasClean:s,code:a,reason:d});if(v.close.hasSubscribers){v.close.publish({websocket:r,code:a,reason:d})}}function onSocketError(r){const{ws:n}=this;n[p]=l.CLOSING;if(v.socketError.hasSubscribers){v.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},112:r=>{const n="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const s={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const l={NOT_SENT:0,PROCESSING:1,SENT:2};const u={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const A={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const p=Buffer.allocUnsafe(0);const f={string:1,typedArray:2,arrayBuffer:3,blob:4};r.exports={uid:n,sentCloseFrameState:l,staticPropertyDescriptors:s,states:a,opcodes:u,maxUnsigned16Bit:d,parserStates:A,emptyBuffer:p,sendHints:f}},58276:(r,n,s)=>{const{webidl:a}=s(51861);const{kEnumerableProperty:l}=s(42336);const{kConstruct:u}=s(33867);const{MessagePort:d}=s(75919);class MessageEvent extends Event{#J;constructor(r,n={}){if(r===u){super(arguments[1],arguments[2]);a.util.markAsUncloneable(this);return}const s="MessageEvent constructor";a.argumentLengthCheck(arguments,1,s);r=a.converters.DOMString(r,s,"type");n=a.converters.MessageEventInit(n,s,"eventInitDict");super(r,n);this.#J=n;a.util.markAsUncloneable(this)}get data(){a.brandCheck(this,MessageEvent);return this.#J.data}get origin(){a.brandCheck(this,MessageEvent);return this.#J.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#J.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#J.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#J.ports)){Object.freeze(this.#J.ports)}return this.#J.ports}initMessageEvent(r,n=false,s=false,l=null,u="",d="",A=null,p=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(r,{bubbles:n,cancelable:s,data:l,origin:u,lastEventId:d,source:A,ports:p})}static createFastMessageEvent(r,n){const s=new MessageEvent(u,r,n);s.#J=n;s.#J.data??=null;s.#J.origin??="";s.#J.lastEventId??="";s.#J.source??=null;s.#J.ports??=[];return s}}const{createFastMessageEvent:A}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#J;constructor(r,n={}){const s="CloseEvent constructor";a.argumentLengthCheck(arguments,1,s);r=a.converters.DOMString(r,s,"type");n=a.converters.CloseEventInit(n);super(r,n);this.#J=n;a.util.markAsUncloneable(this)}get wasClean(){a.brandCheck(this,CloseEvent);return this.#J.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#J.code}get reason(){a.brandCheck(this,CloseEvent);return this.#J.reason}}class ErrorEvent extends Event{#J;constructor(r,n){const s="ErrorEvent constructor";a.argumentLengthCheck(arguments,1,s);super(r,n);a.util.markAsUncloneable(this);r=a.converters.DOMString(r,s,"type");n=a.converters.ErrorEventInit(n??{});this.#J=n}get message(){a.brandCheck(this,ErrorEvent);return this.#J.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#J.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#J.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#J.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#J.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:l,origin:l,lastEventId:l,source:l,ports:l,initMessageEvent:l});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:l,code:l,wasClean:l});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:l,filename:l,lineno:l,colno:l,error:l});a.converters.MessagePort=a.interfaceConverter(d);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const p=[{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}];a.converters.MessageEventInit=a.dictionaryConverter([...p,{key:"data",converter:a.converters.any,defaultValue:()=>null},{key:"origin",converter:a.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:()=>""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:a.converters["sequence"],defaultValue:()=>new Array(0)}]);a.converters.CloseEventInit=a.dictionaryConverter([...p,{key:"wasClean",converter:a.converters.boolean,defaultValue:()=>false},{key:"code",converter:a.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:a.converters.USVString,defaultValue:()=>""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...p,{key:"message",converter:a.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:a.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:A}},45072:(r,n,s)=>{const{maxUnsigned16Bit:a}=s(112);const l=16386;let u;let d=null;let A=l;try{u=s(77598)}catch{u={randomFillSync:function randomFillSync(r,n,s){for(let n=0;na){d+=8;u=127}else if(l>125){d+=2;u=126}const A=Buffer.allocUnsafe(l+d);A[0]=A[1]=0;A[0]|=128;A[0]=(A[0]&240)+r; -/*! ws. MIT License. Einar Otto Stangvik */A[d-4]=s[0];A[d-3]=s[1];A[d-2]=s[2];A[d-1]=s[3];A[1]=u;if(u===126){A.writeUInt16BE(l,2)}else if(u===127){A[2]=A[3]=0;A.writeUIntBE(l,4,6)}A[1]|=128;for(let r=0;r{const{createInflateRaw:a,Z_DEFAULT_WINDOWBITS:l}=s(38522);const{isValidClientWindowBits:u}=s(88017);const d=Buffer.from([0,0,255,255]);const A=Symbol("kBuffer");const p=Symbol("kLength");class PerMessageDeflate{#$;#p={};constructor(r){this.#p.serverNoContextTakeover=r.has("server_no_context_takeover");this.#p.serverMaxWindowBits=r.get("server_max_window_bits")}decompress(r,n,s){if(!this.#$){let r=l;if(this.#p.serverMaxWindowBits){if(!u(this.#p.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}r=Number.parseInt(this.#p.serverMaxWindowBits)}this.#$=a({windowBits:r});this.#$[A]=[];this.#$[p]=0;this.#$.on("data",(r=>{this.#$[A].push(r);this.#$[p]+=r.length}));this.#$.on("error",(r=>{this.#$=null;s(r)}))}this.#$.write(r);if(n){this.#$.write(d)}this.#$.flush((()=>{const r=Buffer.concat(this.#$[A],this.#$[p]);this.#$[A].length=0;this.#$[p]=0;s(null,r)}))}}r.exports={PerMessageDeflate:PerMessageDeflate}},4132:(r,n,s)=>{const{Writable:a}=s(57075);const l=s(34589);const{parserStates:u,opcodes:d,states:A,emptyBuffer:p,sentCloseFrameState:f}=s(112);const{kReadyState:g,kSentClose:y,kResponse:b,kReceivedClose:C}=s(24208);const{channels:w}=s(69086);const{isValidStatusCode:B,isValidOpcode:I,failWebsocketConnection:S,websocketMessageReceived:Q,utf8Decode:v,isControlFrame:R,isTextBinaryFrame:D,isContinuationFrame:N}=s(88017);const{WebsocketFrameSend:T}=s(45072);const{closeWebSocketConnection:x}=s(92801);const{PerMessageDeflate:k}=s(75613);class ByteParser extends a{#K=[];#X=0;#Z=false;#b=u.INFO;#ee={};#te=[];#re;constructor(r,n){super();this.ws=r;this.#re=n==null?new Map:n;if(this.#re.has("permessage-deflate")){this.#re.set("permessage-deflate",new k(n))}}_write(r,n,s){this.#K.push(r);this.#X+=r.length;this.#Z=true;this.run(s)}run(r){while(this.#Z){if(this.#b===u.INFO){if(this.#X<2){return r()}const n=this.consume(2);const s=(n[0]&128)!==0;const a=n[0]&15;const l=(n[1]&128)===128;const A=!s&&a!==d.CONTINUATION;const p=n[1]&127;const f=n[0]&64;const g=n[0]&32;const y=n[0]&16;if(!I(a)){S(this.ws,"Invalid opcode received");return r()}if(l){S(this.ws,"Frame cannot be masked");return r()}if(f!==0&&!this.#re.has("permessage-deflate")){S(this.ws,"Expected RSV1 to be clear.");return}if(g!==0||y!==0){S(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(A&&!D(a)){S(this.ws,"Invalid frame type was fragmented.");return}if(D(a)&&this.#te.length>0){S(this.ws,"Expected continuation frame");return}if(this.#ee.fragmented&&A){S(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((p>125||A)&&R(a)){S(this.ws,"Control frame either too large or fragmented");return}if(N(a)&&this.#te.length===0&&!this.#ee.compressed){S(this.ws,"Unexpected continuation frame");return}if(p<=125){this.#ee.payloadLength=p;this.#b=u.READ_DATA}else if(p===126){this.#b=u.PAYLOADLENGTH_16}else if(p===127){this.#b=u.PAYLOADLENGTH_64}if(D(a)){this.#ee.binaryType=a;this.#ee.compressed=f!==0}this.#ee.opcode=a;this.#ee.masked=l;this.#ee.fin=s;this.#ee.fragmented=A}else if(this.#b===u.PAYLOADLENGTH_16){if(this.#X<2){return r()}const n=this.consume(2);this.#ee.payloadLength=n.readUInt16BE(0);this.#b=u.READ_DATA}else if(this.#b===u.PAYLOADLENGTH_64){if(this.#X<8){return r()}const n=this.consume(8);const s=n.readUInt32BE(0);if(s>2**31-1){S(this.ws,"Received payload length > 2^31 bytes.");return}const a=n.readUInt32BE(4);this.#ee.payloadLength=(s<<8)+a;this.#b=u.READ_DATA}else if(this.#b===u.READ_DATA){if(this.#X{if(n){x(this.ws,1007,n.message,n.message.length);return}this.#te.push(s);if(!this.#ee.fin){this.#b=u.INFO;this.#Z=true;this.run(r);return}Q(this.ws,this.#ee.binaryType,Buffer.concat(this.#te));this.#Z=true;this.#b=u.INFO;this.#te.length=0;this.run(r)}));this.#Z=false;break}}}}}consume(r){if(r>this.#X){throw new Error("Called consume() before buffers satiated.")}else if(r===0){return p}if(this.#K[0].length===r){this.#X-=this.#K[0].length;return this.#K.shift()}const n=Buffer.allocUnsafe(r);let s=0;while(s!==r){const a=this.#K[0];const{length:l}=a;if(l+s===r){n.set(this.#K.shift(),s);break}else if(l+s>r){n.set(a.subarray(0,r-s),s);this.#K[0]=a.subarray(r-s);break}else{n.set(this.#K.shift(),s);s+=a.length}}this.#X-=r;return n}parseCloseBody(r){l(r.length!==1);let n;if(r.length>=2){n=r.readUInt16BE(0)}if(n!==undefined&&!B(n)){return{code:1002,reason:"Invalid status code",error:true}}let s=r.subarray(2);if(s[0]===239&&s[1]===187&&s[2]===191){s=s.subarray(3)}try{s=v(s)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:n,reason:s,error:false}}parseControlFrame(r){const{opcode:n,payloadLength:s}=this.#ee;if(n===d.CLOSE){if(s===1){S(this.ws,"Received close frame with a 1-byte body.");return false}this.#ee.closeInfo=this.parseCloseBody(r);if(this.#ee.closeInfo.error){const{code:r,reason:n}=this.#ee.closeInfo;x(this.ws,r,n,n.length);S(this.ws,n);return false}if(this.ws[y]!==f.SENT){let r=p;if(this.#ee.closeInfo.code){r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#ee.closeInfo.code,0)}const n=new T(r);this.ws[b].socket.write(n.createFrame(d.CLOSE),(r=>{if(!r){this.ws[y]=f.SENT}}))}this.ws[g]=A.CLOSING;this.ws[C]=true;return false}else if(n===d.PING){if(!this.ws[C]){const n=new T(r);this.ws[b].socket.write(n.createFrame(d.PONG));if(w.ping.hasSubscribers){w.ping.publish({payload:r})}}}else if(n===d.PONG){if(w.pong.hasSubscribers){w.pong.publish({payload:r})}}return true}get closingInfo(){return this.#ee.closeInfo}}r.exports={ByteParser:ByteParser}},71196:(r,n,s)=>{const{WebsocketFrameSend:a}=s(45072);const{opcodes:l,sendHints:u}=s(112);const d=s(71492);const A=Buffer[Symbol.species];class SendQueue{#ne=new d;#se=false;#ie;constructor(r){this.#ie=r}add(r,n,s){if(s!==u.blob){const a=createFrame(r,s);if(!this.#se){this.#ie.write(a,n)}else{const r={promise:null,callback:n,frame:a};this.#ne.push(r)}return}const a={promise:r.arrayBuffer().then((r=>{a.promise=null;a.frame=createFrame(r,s)})),callback:n,frame:null};this.#ne.push(a);if(!this.#se){this.#oe()}}async#oe(){this.#se=true;const r=this.#ne;while(!r.isEmpty()){const n=r.shift();if(n.promise!==null){await n.promise}this.#ie.write(n.frame,n.callback);n.callback=n.frame=null}this.#se=false}}function createFrame(r,n){return new a(toBuffer(r,n)).createFrame(n===u.string?l.TEXT:l.BINARY)}function toBuffer(r,n){switch(n){case u.string:return Buffer.from(r);case u.arrayBuffer:case u.blob:return new A(r);case u.typedArray:return new A(r.buffer,r.byteOffset,r.byteLength)}}r.exports={SendQueue:SendQueue}},24208:r=>{r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},88017:(r,n,s)=>{const{kReadyState:a,kController:l,kResponse:u,kBinaryType:d,kWebSocketURL:A}=s(24208);const{states:p,opcodes:f}=s(112);const{ErrorEvent:g,createFastMessageEvent:y}=s(58276);const{isUtf8:b}=s(4573);const{collectASequenceOfCodePointsFast:C,removeHTTPWhitespace:w}=s(54476);function isConnecting(r){return r[a]===p.CONNECTING}function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,n,s=(r,n)=>new Event(r,n),a={}){const l=s(r,a);n.dispatchEvent(l)}function websocketMessageReceived(r,n,s){if(r[a]!==p.OPEN){return}let l;if(n===f.TEXT){try{l=S(s)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(n===f.BINARY){if(r[d]==="blob"){l=new Blob([s])}else{l=toArrayBuffer(s)}}fireEvent("message",r,y,{origin:r[A].origin,data:l})}function toArrayBuffer(r){if(r.byteLength===r.buffer.byteLength){return r.buffer}return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}function isValidSubprotocol(r){if(r.length===0){return false}for(let n=0;n126||s===34||s===40||s===41||s===44||s===47||s===58||s===59||s===60||s===61||s===62||s===63||s===64||s===91||s===92||s===93||s===123||s===125){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,n){const{[l]:s,[u]:a}=r;s.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(n){fireEvent("error",r,((r,n)=>new g(r,n)),{error:new Error(n),message:n})}}function isControlFrame(r){return r===f.CLOSE||r===f.PING||r===f.PONG}function isContinuationFrame(r){return r===f.CONTINUATION}function isTextBinaryFrame(r){return r===f.TEXT||r===f.BINARY}function isValidOpcode(r){return isTextBinaryFrame(r)||isContinuationFrame(r)||isControlFrame(r)}function parseExtensions(r){const n={position:0};const s=new Map;while(n.position57){return false}}return true}const B=typeof process.versions.icu==="string";const I=B?new TextDecoder("utf-8",{fatal:true}):undefined;const S=B?I.decode.bind(I):function(r){if(b(r)){return r.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};r.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:S,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},18286:(r,n,s)=>{const{webidl:a}=s(51861);const{URLSerializer:l}=s(54476);const{environmentSettingsObject:u}=s(29952);const{staticPropertyDescriptors:d,states:A,sentCloseFrameState:p,sendHints:f}=s(112);const{kWebSocketURL:g,kReadyState:y,kController:b,kBinaryType:C,kResponse:w,kSentClose:B,kByteParser:I}=s(24208);const{isConnecting:S,isEstablished:Q,isClosing:v,isValidSubprotocol:R,fireEvent:D}=s(88017);const{establishWebSocketConnection:N,closeWebSocketConnection:T}=s(92801);const{ByteParser:x}=s(4132);const{kEnumerableProperty:k,isBlobLike:_}=s(42336);const{getGlobalDispatcher:P}=s(72213);const{types:F}=s(57975);const{ErrorEvent:L,CloseEvent:O}=s(58276);const{SendQueue:M}=s(71196);class WebSocket extends EventTarget{#P={open:null,error:null,close:null,message:null};#ae=0;#le="";#re="";#ce;constructor(r,n=[]){super();a.util.markAsUncloneable(this);const s="WebSocket constructor";a.argumentLengthCheck(arguments,1,s);const l=a.converters["DOMString or sequence or WebSocketInit"](n,s,"options");r=a.converters.USVString(r,s,"url");n=l.protocols;const d=u.settingsObject.baseUrl;let A;try{A=new URL(r,d)}catch(r){throw new DOMException(r,"SyntaxError")}if(A.protocol==="http:"){A.protocol="ws:"}else if(A.protocol==="https:"){A.protocol="wss:"}if(A.protocol!=="ws:"&&A.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${A.protocol}`,"SyntaxError")}if(A.hash||A.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof n==="string"){n=[n]}if(n.length!==new Set(n.map((r=>r.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(n.length>0&&!n.every((r=>R(r)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(A.href);const f=u.settingsObject;this[b]=N(A,n,f,this,((r,n)=>this.#ue(r,n)),l);this[y]=WebSocket.CONNECTING;this[B]=p.NOT_SENT;this[C]="blob"}close(r=undefined,n=undefined){a.brandCheck(this,WebSocket);const s="WebSocket.close";if(r!==undefined){r=a.converters["unsigned short"](r,s,"code",{clamp:true})}if(n!==undefined){n=a.converters.USVString(n,s,"reason")}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let l=0;if(n!==undefined){l=Buffer.byteLength(n);if(l>123){throw new DOMException(`Reason must be less than 123 bytes; received ${l}`,"SyntaxError")}}T(this,r,n,l)}send(r){a.brandCheck(this,WebSocket);const n="WebSocket.send";a.argumentLengthCheck(arguments,1,n);r=a.converters.WebSocketSendData(r,n,"data");if(S(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!Q(this)||v(this)){return}if(typeof r==="string"){const n=Buffer.byteLength(r);this.#ae+=n;this.#ce.add(r,(()=>{this.#ae-=n}),f.string)}else if(F.isArrayBuffer(r)){this.#ae+=r.byteLength;this.#ce.add(r,(()=>{this.#ae-=r.byteLength}),f.arrayBuffer)}else if(ArrayBuffer.isView(r)){this.#ae+=r.byteLength;this.#ce.add(r,(()=>{this.#ae-=r.byteLength}),f.typedArray)}else if(_(r)){this.#ae+=r.size;this.#ce.add(r,(()=>{this.#ae-=r.size}),f.blob)}}get readyState(){a.brandCheck(this,WebSocket);return this[y]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#ae}get url(){a.brandCheck(this,WebSocket);return l(this[g])}get extensions(){a.brandCheck(this,WebSocket);return this.#re}get protocol(){a.brandCheck(this,WebSocket);return this.#le}get onopen(){a.brandCheck(this,WebSocket);return this.#P.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#P.open){this.removeEventListener("open",this.#P.open)}if(typeof r==="function"){this.#P.open=r;this.addEventListener("open",r)}else{this.#P.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#P.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#P.error){this.removeEventListener("error",this.#P.error)}if(typeof r==="function"){this.#P.error=r;this.addEventListener("error",r)}else{this.#P.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#P.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#P.close){this.removeEventListener("close",this.#P.close)}if(typeof r==="function"){this.#P.close=r;this.addEventListener("close",r)}else{this.#P.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#P.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#P.message){this.removeEventListener("message",this.#P.message)}if(typeof r==="function"){this.#P.message=r;this.addEventListener("message",r)}else{this.#P.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[C]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[C]="blob"}else{this[C]=r}}#ue(r,n){this[w]=r;const s=new x(this,n);s.on("drain",onParserDrain);s.on("error",onParserError.bind(this));r.socket.ws=this;this[I]=s;this.#ce=new M(r.socket);this[y]=A.OPEN;const a=r.headersList.get("sec-websocket-extensions");if(a!==null){this.#re=a}const l=r.headersList.get("sec-websocket-protocol");if(l!==null){this.#le=l}D("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=A.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=A.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=A.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=A.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:k,readyState:k,bufferedAmount:k,onopen:k,onerror:k,onclose:k,close:k,onmessage:k,binaryType:k,send:k,extensions:k,protocol:k,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r,n,s){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r,n,s)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:a.converters.any,defaultValue:()=>P()},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(_(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||F.isArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};function onParserDrain(){this.ws[w].socket.resume()}function onParserError(r){let n;let s;if(r instanceof O){n=r.reason;s=r.code}else{n=r.message}D("error",this,(()=>new L("error",{error:r,message:n})));T(this,s)}r.exports={WebSocket:WebSocket}},91046:(r,n,s)=>{var a=s(2203);var l=s(39023).inherits;function Entry(){if(!(this instanceof Entry)){return new Entry}a.PassThrough.call(this);this.path=null;this.type=null;this.isDirectory=false}l(Entry,a.PassThrough);Entry.prototype.autodrain=function(){return this.pipe(new a.Transform({transform:function(r,n,s){s()}}))};r.exports=Entry},91991:(r,n,s)=>{var a=s(79896);var l=s(16928);var u=s(39023);var d=s(15026);var A=s(2203).Transform;var p=s(17589);function Extract(r){if(!(this instanceof Extract))return new Extract(r);A.call(this);this.opts=r||{};this.unzipStream=new p(this.opts);this.unfinishedEntries=0;this.afterFlushWait=false;this.createdDirectories={};var n=this;this.unzipStream.on("entry",this._processEntry.bind(this));this.unzipStream.on("error",(function(r){n.emit("error",r)}))}u.inherits(Extract,A);Extract.prototype._transform=function(r,n,s){this.unzipStream.write(r,n,s)};Extract.prototype._flush=function(r){var n=this;var allDone=function(){process.nextTick((function(){n.emit("close")}));r()};this.unzipStream.end((function(){if(n.unfinishedEntries>0){n.afterFlushWait=true;return n.on("await-finished",allDone)}allDone()}))};Extract.prototype._processEntry=function(r){var n=this;var s=l.join(this.opts.path,r.path);var u=r.isDirectory?s:l.dirname(s);this.unfinishedEntries++;var writeFileFn=function(){var l=a.createWriteStream(s);l.on("close",(function(){n.unfinishedEntries--;n._notifyAwaiter()}));l.on("error",(function(r){n.emit("error",r)}));r.pipe(l)};if(this.createdDirectories[u]||u==="."){return writeFileFn()}d(u,(function(s){if(s)return n.emit("error",s);n.createdDirectories[u]=true;if(r.isDirectory){n.unfinishedEntries--;n._notifyAwaiter();return}writeFileFn()}))};Extract.prototype._notifyAwaiter=function(){if(this.afterFlushWait&&this.unfinishedEntries===0){this.emit("await-finished");this.afterFlushWait=false}};r.exports=Extract},35749:(r,n,s)=>{var a=s(2203).Transform;var l=s(39023);function MatcherStream(r,n){if(!(this instanceof MatcherStream)){return new MatcherStream}a.call(this);var s=typeof r==="object"?r.pattern:r;this.pattern=Buffer.isBuffer(s)?s:Buffer.from(s);this.requiredLength=this.pattern.length;if(r.requiredExtraSize)this.requiredLength+=r.requiredExtraSize;this.data=new Buffer("");this.bytesSoFar=0;this.matchFn=n}l.inherits(MatcherStream,a);MatcherStream.prototype.checkDataChunk=function(r){var n=this.data.length>=this.requiredLength;if(!n){return}var s=this.data.indexOf(this.pattern,r?1:0);if(s>=0&&s+this.requiredLength>this.data.length){if(s>0){var a=this.data.slice(0,s);this.push(a);this.bytesSoFar+=s;this.data=this.data.slice(s)}return}if(s===-1){var l=this.data.length-this.requiredLength+1;var a=this.data.slice(0,l);this.push(a);this.bytesSoFar+=l;this.data=this.data.slice(l);return}if(s>0){var a=this.data.slice(0,s);this.data=this.data.slice(s);this.push(a);this.bytesSoFar+=s}var u=this.matchFn?this.matchFn(this.data,this.bytesSoFar):true;if(u){this.data=new Buffer("");return}return true};MatcherStream.prototype._transform=function(r,n,s){this.data=Buffer.concat([this.data,r]);var a=true;while(this.checkDataChunk(!a)){a=false}s()};MatcherStream.prototype._flush=function(r){if(this.data.length>0){var n=true;while(this.checkDataChunk(!n)){n=false}}if(this.data.length>0){this.push(this.data);this.data=null}r()};r.exports=MatcherStream},88696:(r,n,s)=>{var a=s(2203).Transform;var l=s(39023);var u=s(17589);function ParserStream(r){if(!(this instanceof ParserStream)){return new ParserStream(r)}var n=r||{};a.call(this,{readableObjectMode:true});this.opts=r||{};this.unzipStream=new u(this.opts);var s=this;this.unzipStream.on("entry",(function(r){s.push(r)}));this.unzipStream.on("error",(function(r){s.emit("error",r)}))}l.inherits(ParserStream,a);ParserStream.prototype._transform=function(r,n,s){this.unzipStream.write(r,n,s)};ParserStream.prototype._flush=function(r){var n=this;this.unzipStream.end((function(){process.nextTick((function(){n.emit("close")}));r()}))};ParserStream.prototype.on=function(r,n){if(r==="entry"){return a.prototype.on.call(this,"data",n)}return a.prototype.on.call(this,r,n)};ParserStream.prototype.drainAll=function(){this.unzipStream.drainAll();return this.pipe(new a({objectMode:true,transform:function(r,n,s){s()}}))};r.exports=ParserStream},17589:(r,n,s)=>{var a=s(52386);var l=s(2203);var u=s(39023);var d=s(43106);var A=s(35749);var p=s(91046);const f={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99};const g=4294967296;const y=67324752;const b=134695760;const C=33639248;const w=101075792;const B=117853008;const I=101010256;function UnzipStream(r){if(!(this instanceof UnzipStream)){return new UnzipStream(r)}l.Transform.call(this);this.options=r||{};this.data=new Buffer("");this.state=f.STREAM_START;this.skippedBytes=0;this.parsedEntity=null;this.outStreamInfo={}}u.inherits(UnzipStream,l.Transform);UnzipStream.prototype.processDataChunk=function(r){var n;switch(this.state){case f.STREAM_START:case f.START:n=4;break;case f.LOCAL_FILE_HEADER:n=26;break;case f.LOCAL_FILE_HEADER_SUFFIX:n=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case f.DATA_DESCRIPTOR:n=12;break;case f.CENTRAL_DIRECTORY_FILE_HEADER:n=42;break;case f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:n=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case f.CDIR64_END:n=52;break;case f.CDIR64_END_DATA_SECTOR:n=this.parsedEntity.centralDirectoryRecordSize-44;break;case f.CDIR64_LOCATOR:n=16;break;case f.CENTRAL_DIRECTORY_END:n=18;break;case f.CENTRAL_DIRECTORY_END_COMMENT:n=this.parsedEntity.commentLength;break;case f.FILE_DATA:return 0;case f.FILE_DATA_END:return 0;case f.TRAILING_JUNK:if(this.options.debug)console.log("found",r.length,"bytes of TRAILING_JUNK");return r.length;default:return r.length}var s=r.length;if(s>>8;if((u&255)===80){d=A;break}}this.skippedBytes+=d;if(this.options.debug)console.log("Skipped",this.skippedBytes,"bytes");return d}this.state=f.ERROR;var b=l?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var S=r.readUInt32LE(0);var Q;try{Q=r.slice(0,4).toString()}catch(r){}console.log("Unexpected signature in zip file: 0x"+S.toString(16),'"'+Q+'", skipped',this.skippedBytes,"bytes")}this.emit("error",new Error(b));return r.length}this.skippedBytes=0;return n;case f.LOCAL_FILE_HEADER:this.parsedEntity=this._readFile(r);this.state=f.LOCAL_FILE_HEADER_SUFFIX;return n;case f.LOCAL_FILE_HEADER_SUFFIX:var v=new p;var R=(this.parsedEntity.flags&2048)!==0;v.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),R);var D=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(D);if(N&&N.parsed){if(N.parsed.path&&!R){v.path=N.parsed.path}if(Number.isFinite(N.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===g-1){this.parsedEntity.uncompressedSize=N.parsed.uncompressedSize}if(Number.isFinite(N.parsed.compressedSize)&&this.parsedEntity.compressedSize===g-1){this.parsedEntity.compressedSize=N.parsed.compressedSize}}this.parsedEntity.extra=N.parsed||{};if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:v.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:N&&N.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(r,null,2))}this._prepareOutStream(this.parsedEntity,v);this.emit("entry",v);this.state=f.FILE_DATA;return n;case f.CENTRAL_DIRECTORY_FILE_HEADER:this.parsedEntity=this._readCentralDirectoryEntry(r);this.state=f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX;return n;case f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var R=(this.parsedEntity.flags&2048)!==0;var T=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),R);var D=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var N=this._readExtraFields(D);if(N&&N.parsed&&N.parsed.path&&!R){T=N.parsed.path}this.parsedEntity.extra=N.parsed;var x=(this.parsedEntity.versionMadeBy&65280)>>8===3;var k,_;if(x){k=this.parsedEntity.externalFileAttributes>>>16;var P=k>>>12;_=(P&10)===10}if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:T,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:k&&"0"+k.toString(8),isSymlink:_,extraFields:N.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(r,null,2))}this.state=f.START;return n;case f.CDIR64_END:this.parsedEntity=this._readEndOfCentralDirectory64(r);if(this.options.debug){console.log("decoded CDIR64_END_RECORD:",this.parsedEntity)}this.state=f.CDIR64_END_DATA_SECTOR;return n;case f.CDIR64_END_DATA_SECTOR:this.state=f.START;return n;case f.CDIR64_LOCATOR:this.state=f.START;return n;case f.CENTRAL_DIRECTORY_END:this.parsedEntity=this._readEndOfCentralDirectory(r);if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity)}this.state=f.CENTRAL_DIRECTORY_END_COMMENT;return n;case f.CENTRAL_DIRECTORY_END_COMMENT:if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,n).toString())}this.state=f.TRAILING_JUNK;return n;case f.ERROR:return r.length;default:console.log("didn't handle state #",this.state,"discarding");return r.length}};UnzipStream.prototype._prepareOutStream=function(r,n){var s=this;var a=r.uncompressedSize===0&&/[\/\\]$/.test(n.path);n.path=n.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,".");n.type=a?"Directory":"File";n.isDirectory=a;var u=!(r.flags&8);if(u){n.size=r.uncompressedSize}var y=r.versionsNeededToExtract<=45;this.outStreamInfo={stream:null,limit:u?r.compressedSize:-1,written:0};if(!u){var C=new Buffer(4);C.writeUInt32LE(b,0);var w=r.extra.zip64Mode;var B=w?20:12;var I={pattern:C,requiredExtraSize:B};var S=new A(I,(function(r,n){var a=s._readDataDescriptor(r,w);var l=a.compressedSize===n;if(!w&&!l&&n>=g){var u=n-g;while(u>=0){l=a.compressedSize===u;if(l)break;u-=g}}if(!l){return}s.state=f.FILE_DATA_END;var d=w?24:16;if(s.data.length>0){s.data=Buffer.concat([r.slice(d),s.data])}else{s.data=r.slice(d)}return true}));this.outStreamInfo.stream=S}else{this.outStreamInfo.stream=new l.PassThrough}var Q=r.flags&1||r.flags&64;if(Q||!y){var v=Q?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";n.skip=true;setImmediate((()=>{s.emit("error",new Error(v))}));this.outStreamInfo.stream.pipe((new p).autodrain());return}var R=r.compressionMethod>0;if(R){var D=d.createInflateRaw();D.on("error",(function(r){s.state=f.ERROR;s.emit("error",r)}));this.outStreamInfo.stream.pipe(D).pipe(n)}else{this.outStreamInfo.stream.pipe(n)}if(this._drainAllEntries){n.autodrain()}};UnzipStream.prototype._readFile=function(r){var n=a.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return n};UnzipStream.prototype._readExtraFields=function(r){var n={};var s={parsed:n};if(this.options.debug){s.debug=[]}var l=0;while(l=f+4&&p&1){n.mtime=new Date(r.readUInt32LE(l+f)*1e3);f+=4}if(u.extraSize>=f+4&&p&2){n.atime=new Date(r.readUInt32LE(l+f)*1e3);f+=4}if(u.extraSize>=f+4&&p&4){n.ctime=new Date(r.readUInt32LE(l+f)*1e3)}break;case 28789:d="Info-ZIP Unicode Path Extra Field";var g=r.readUInt8(l);if(g===1){var f=1;var y=r.readUInt32LE(l+f);f+=4;var b=r.slice(l+f);n.path=b.toString()}break;case 13:case 22613:d=u.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var f=0;if(u.extraSize>=8){var C=new Date(r.readUInt32LE(l+f)*1e3);f+=4;var w=new Date(r.readUInt32LE(l+f)*1e3);f+=4;n.atime=C;n.mtime=w;if(u.extraSize>=12){var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.uid=B;n.gid=I}}break;case 30805:d="Info-ZIP UNIX (type 2)";var f=0;if(u.extraSize>=4){var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.uid=B;n.gid=I}break;case 30837:d="Info-ZIP New Unix";var f=0;var S=r.readUInt8(l);f+=1;if(S===1){var Q=r.readUInt8(l+f);f+=1;if(Q<=6){n.uid=r.readUIntLE(l+f,Q)}f+=Q;var v=r.readUInt8(l+f);f+=1;if(v<=6){n.gid=r.readUIntLE(l+f,v)}}break;case 30062:d="ASi Unix";var f=0;if(u.extraSize>=14){var R=r.readUInt32LE(l+f);f+=4;var D=r.readUInt16LE(l+f);f+=2;var N=r.readUInt32LE(l+f);f+=4;var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.mode=D;n.uid=B;n.gid=I;if(u.extraSize>14){var T=l+f;var x=l+u.extraSize-14;var k=this._decodeString(r.slice(T,x));n.symlink=k}}break}if(this.options.debug){s.debug.push({extraId:"0x"+u.extraId.toString(16),description:d,data:r.slice(l,l+u.extraSize).inspect()})}l+=u.extraSize}return s};UnzipStream.prototype._readDataDescriptor=function(r,n){if(n){var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return s}var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return s};UnzipStream.prototype._readCentralDirectoryEntry=function(r){var n=a.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return n};UnzipStream.prototype._readEndOfCentralDirectory64=function(r){var n=a.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return n};UnzipStream.prototype._readEndOfCentralDirectory=function(r){var n=a.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return n};const S="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";UnzipStream.prototype._decodeString=function(r,n){if(n){return r.toString("utf8")}if(this.options.decodeString){return this.options.decodeString(r)}let s="";for(var a=0;a0){this.data=this.data.slice(s);if(this.data.length===0)break}if(this.state===f.FILE_DATA){if(this.outStreamInfo.limit>=0){var a=this.outStreamInfo.limit-this.outStreamInfo.written;var l;if(a{if(this.state===f.FILE_DATA_END){this.state=f.START;return u.end(n)}n()}))}return}n()};UnzipStream.prototype.drainAll=function(){this._drainAllEntries=true};UnzipStream.prototype._transform=function(r,n,s){var a=this;if(a.data.length>0){a.data=Buffer.concat([a.data,r])}else{a.data=r}var l=a.data.length;var done=function(){if(a.data.length>0&&a.data.length0){n._parseOrOutput("buffer",(function(){if(n.data.length>0)return setImmediate((function(){n._flush(r)}));r()}));return}if(n.state===f.FILE_DATA){return r(new Error("Stream finished in an invalid state, uncompression failed"))}setImmediate(r)};r.exports=UnzipStream},34340:(r,n,s)=>{n.Parse=s(88696);n.Extract=s(91991)},48728:(r,n,s)=>{r.exports=s(39023).deprecate},31828:(r,n,s)=>{const a=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const l=s(16928);const u=a?";":":";const d=s(20845);const getNotFoundError=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"});const getPathInfo=(r,n)=>{const s=n.colon||u;const l=r.match(/\//)||a&&r.match(/\\/)?[""]:[...a?[process.cwd()]:[],...(n.path||process.env.PATH||"").split(s)];const d=a?n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const A=a?d.split(s):[""];if(a){if(r.indexOf(".")!==-1&&A[0]!=="")A.unshift("")}return{pathEnv:l,pathExt:A,pathExtExe:d}};const which=(r,n,s)=>{if(typeof n==="function"){s=n;n={}}if(!n)n={};const{pathEnv:a,pathExt:u,pathExtExe:A}=getPathInfo(r,n);const p=[];const step=s=>new Promise(((u,d)=>{if(s===a.length)return n.all&&p.length?u(p):d(getNotFoundError(r));const A=a[s];const f=/^".*"$/.test(A)?A.slice(1,-1):A;const g=l.join(f,r);const y=!f&&/^\.[\\\/]/.test(r)?r.slice(0,2)+g:g;u(subStep(y,s,0))}));const subStep=(r,s,a)=>new Promise(((l,f)=>{if(a===u.length)return l(step(s+1));const g=u[a];d(r+g,{pathExt:A},((u,d)=>{if(!u&&d){if(n.all)p.push(r+g);else return l(r+g)}return l(subStep(r,s,a+1))}))}));return s?step(0).then((r=>s(null,r)),s):step(0)};const whichSync=(r,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:u}=getPathInfo(r,n);const A=[];for(let p=0;p{ +const a=s(3102);const toRegexRange=(r,n,s)=>{if(a(r)===false){throw new TypeError("toRegexRange: expected the first argument to be a number")}if(n===void 0||r===n){return String(r)}if(a(n)===false){throw new TypeError("toRegexRange: expected the second argument to be a number.")}let l={relaxZeros:true,...s};if(typeof l.strictZeros==="boolean"){l.relaxZeros=l.strictZeros===false}let u=String(l.relaxZeros);let d=String(l.shorthand);let A=String(l.capture);let p=String(l.wrap);let f=r+":"+n+"="+u+d+A+p;if(toRegexRange.cache.hasOwnProperty(f)){return toRegexRange.cache[f].result}let g=Math.min(r,n);let y=Math.max(r,n);if(Math.abs(g-y)===1){let s=r+"|"+n;if(l.capture){return`(${s})`}if(l.wrap===false){return s}return`(?:${s})`}let b=hasPadding(r)||hasPadding(n);let C={min:r,max:n,a:g,b:y};let w=[];let B=[];if(b){C.isPadded=b;C.maxLen=String(C.max).length}if(g<0){let r=y<0?Math.abs(y):1;B=splitToPatterns(r,Math.abs(g),C,l);g=C.a=0}if(y>=0){w=splitToPatterns(g,y,C,l)}C.negatives=B;C.positives=w;C.result=collatePatterns(B,w,l);if(l.capture===true){C.result=`(${C.result})`}else if(l.wrap!==false&&w.length+B.length>1){C.result=`(?:${C.result})`}toRegexRange.cache[f]=C;return C.result};function collatePatterns(r,n,s){let a=filterPatterns(r,n,"-",false,s)||[];let l=filterPatterns(n,r,"",false,s)||[];let u=filterPatterns(r,n,"-?",true,s)||[];let d=a.concat(u).concat(l);return d.join("|")}function splitToRanges(r,n){let s=1;let a=1;let l=countNines(r,s);let u=new Set([n]);while(r<=l&&l<=n){u.add(l);s+=1;l=countNines(r,s)}l=countZeros(n+1,a)-1;while(r1){A.count.pop()}A.count.push(p.count[0]);A.string=A.pattern+toQuantifier(A.count);d=n+1;continue}if(s.isPadded){f=padZeros(n,s,a)}p.string=f+p.pattern+toQuantifier(p.count);u.push(p);d=n+1;A=p}return u}function filterPatterns(r,n,s,a,l){let u=[];for(let l of r){let{string:r}=l;if(!a&&!contains(n,"string",r)){u.push(s+r)}if(a&&contains(n,"string",r)){u.push(s+r)}}return u}function zip(r,n){let s=[];for(let a=0;an?1:n>r?-1:0}function contains(r,n,s){return r.some((r=>r[n]===s))}function countNines(r,n){return Number(String(r).slice(0,-n)+"9".repeat(n))}function countZeros(r,n){return r-r%Math.pow(10,n)}function toQuantifier(r){let[n=0,s=""]=r;if(s||n>1){return`{${n+(s?","+s:"")}}`}return""}function toCharacterClass(r,n,s){return`[${r}${n-r===1?"":"-"}${n}]`}function hasPadding(r){return/^-?(0+)\d/.test(r)}function padZeros(r,n,s){if(!n.isPadded){return r}let a=Math.abs(n.maxLen-String(r).length);let l=s.relaxZeros!==false;switch(a){case 0:return"";case 1:return l?"0?":"0";case 2:return l?"0{0,2}":"00";default:{return l?`0{0,${a}}`:`0{${a}}`}}}toRegexRange.cache={};toRegexRange.clearCache=()=>toRegexRange.cache={};r.exports=toRegexRange},62958:r=>{r.exports=Traverse;function Traverse(r){if(!(this instanceof Traverse))return new Traverse(r);this.value=r}Traverse.prototype.get=function(r){var n=this.value;for(var s=0;s{r.exports=s(20218)},20218:(r,n,s)=>{var a=s(69278);var l=s(64756);var u=s(58611);var d=s(65692);var A=s(24434);var p=s(42613);var f=s(39023);n.httpOverHttp=httpOverHttp;n.httpsOverHttp=httpsOverHttp;n.httpOverHttps=httpOverHttps;n.httpsOverHttps=httpsOverHttps;function httpOverHttp(r){var n=new TunnelingAgent(r);n.request=u.request;return n}function httpsOverHttp(r){var n=new TunnelingAgent(r);n.request=u.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function httpOverHttps(r){var n=new TunnelingAgent(r);n.request=d.request;return n}function httpsOverHttps(r){var n=new TunnelingAgent(r);n.request=d.request;n.createSocket=createSecureSocket;n.defaultPort=443;return n}function TunnelingAgent(r){var n=this;n.options=r||{};n.proxyOptions=n.options.proxy||{};n.maxSockets=n.options.maxSockets||u.Agent.defaultMaxSockets;n.requests=[];n.sockets=[];n.on("free",(function onFree(r,s,a,l){var u=toOptions(s,a,l);for(var d=0,A=n.requests.length;d=this.maxSockets){l.requests.push(u);return}l.createSocket(u,(function(n){n.on("free",onFree);n.on("close",onCloseOrRemove);n.on("agentRemove",onCloseOrRemove);r.onSocket(n);function onFree(){l.emit("free",n,u)}function onCloseOrRemove(r){l.removeSocket(n);n.removeListener("free",onFree);n.removeListener("close",onCloseOrRemove);n.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(r,n){var s=this;var a={};s.sockets.push(a);var l=mergeOptions({},s.proxyOptions,{method:"CONNECT",path:r.host+":"+r.port,agent:false,headers:{host:r.host+":"+r.port}});if(r.localAddress){l.localAddress=r.localAddress}if(l.proxyAuth){l.headers=l.headers||{};l.headers["Proxy-Authorization"]="Basic "+new Buffer(l.proxyAuth).toString("base64")}g("making CONNECT request");var u=s.request(l);u.useChunkedEncodingByDefault=false;u.once("response",onResponse);u.once("upgrade",onUpgrade);u.once("connect",onConnect);u.once("error",onError);u.end();function onResponse(r){r.upgrade=true}function onUpgrade(r,n,s){process.nextTick((function(){onConnect(r,n,s)}))}function onConnect(l,d,A){u.removeAllListeners();d.removeAllListeners();if(l.statusCode!==200){g("tunneling socket could not be established, statusCode=%d",l.statusCode);d.destroy();var p=new Error("tunneling socket could not be established, "+"statusCode="+l.statusCode);p.code="ECONNRESET";r.request.emit("error",p);s.removeSocket(a);return}if(A.length>0){g("got illegal response body from proxy");d.destroy();var p=new Error("got illegal response body from proxy");p.code="ECONNRESET";r.request.emit("error",p);s.removeSocket(a);return}g("tunneling connection has established");s.sockets[s.sockets.indexOf(a)]=d;return n(d)}function onError(n){u.removeAllListeners();g("tunneling socket could not be established, cause=%s\n",n.message,n.stack);var l=new Error("tunneling socket could not be established, "+"cause="+n.message);l.code="ECONNRESET";r.request.emit("error",l);s.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(r){var n=this.sockets.indexOf(r);if(n===-1){return}this.sockets.splice(n,1);var s=this.requests.shift();if(s){this.createSocket(s,(function(r){s.request.onSocket(r)}))}};function createSecureSocket(r,n){var s=this;TunnelingAgent.prototype.createSocket.call(s,r,(function(a){var u=r.request.getHeader("host");var d=mergeOptions({},s.options,{socket:a,servername:u?u.replace(/:.*$/,""):r.host});var A=l.connect(0,d);s.sockets[s.sockets.indexOf(a)]=A;n(A)}))}function toOptions(r,n,s){if(typeof r==="string"){return{host:r,port:n,localAddress:s}}return r}function mergeOptions(r){for(var n=1,s=arguments.length;n{const a=s(23701);const l=s(30883);const u=s(30628);const d=s(837);const A=s(57405);const p=s(76672);const f=s(53137);const g=s(30050);const y=s(68707);const b=s(3440);const{InvalidArgumentError:C}=y;const w=s(56615);const B=s(59136);const I=s(47365);const S=s(47501);const Q=s(94004);const v=s(52429);const R=s(17816);const{getGlobalDispatcher:N,setGlobalDispatcher:x}=s(32581);const D=s(58155);const T=s(8754);const k=s(25092);Object.assign(l.prototype,w);r.exports.Dispatcher=l;r.exports.Client=a;r.exports.Pool=u;r.exports.BalancedPool=d;r.exports.Agent=A;r.exports.ProxyAgent=p;r.exports.EnvHttpProxyAgent=f;r.exports.RetryAgent=g;r.exports.RetryHandler=R;r.exports.DecoratorHandler=D;r.exports.RedirectHandler=T;r.exports.createRedirectInterceptor=k;r.exports.interceptors={redirect:s(21514),retry:s(92026),dump:s(88060),dns:s(70379)};r.exports.buildConnector=B;r.exports.errors=y;r.exports.util={parseHeaders:b.parseHeaders,headerNameToString:b.headerNameToString};function makeDispatcher(r){return(n,s,a)=>{if(typeof s==="function"){a=s;s=null}if(!n||typeof n!=="string"&&typeof n!=="object"&&!(n instanceof URL)){throw new C("invalid url")}if(s!=null&&typeof s!=="object"){throw new C("invalid opts")}if(s&&s.path!=null){if(typeof s.path!=="string"){throw new C("invalid opts.path")}let r=s.path;if(!s.path.startsWith("/")){r=`/${r}`}n=new URL(b.parseOrigin(n).origin+r)}else{if(!s){s=typeof n==="object"?n:{}}n=b.parseURL(n)}const{agent:l,dispatcher:u=N()}=s;if(l){throw new C("unsupported opts.agent. Did you mean opts.client?")}return r.call(u,{...s,origin:n.origin,path:n.search?`${n.pathname}${n.search}`:n.pathname,method:s.method||(s.body?"PUT":"GET")},a)}}r.exports.setGlobalDispatcher=x;r.exports.getGlobalDispatcher=N;const _=s(54398).fetch;r.exports.fetch=async function fetch(r,n=undefined){try{return await _(r,n)}catch(r){if(r&&typeof r==="object"){Error.captureStackTrace(r)}throw r}};r.exports.Headers=s(60660).Headers;r.exports.Response=s(99051).Response;r.exports.Request=s(9967).Request;r.exports.FormData=s(35910).FormData;r.exports.File=globalThis.File??s(4573).File;r.exports.FileReader=s(48355).FileReader;const{setGlobalOrigin:P,getGlobalOrigin:F}=s(51059);r.exports.setGlobalOrigin=P;r.exports.getGlobalOrigin=F;const{CacheStorage:L}=s(3245);const{kConstruct:O}=s(20109);r.exports.caches=new L(O);const{deleteCookie:M,getCookies:U,getSetCookies:H,setCookie:G}=s(79061);r.exports.deleteCookie=M;r.exports.getCookies=U;r.exports.getSetCookies=H;r.exports.setCookie=G;const{parseMIMEType:z,serializeAMimeType:q}=s(51900);r.exports.parseMIMEType=z;r.exports.serializeAMimeType=q;const{CloseEvent:V,ErrorEvent:j,MessageEvent:W}=s(15188);r.exports.WebSocket=s(13726).WebSocket;r.exports.CloseEvent=V;r.exports.ErrorEvent=j;r.exports.MessageEvent=W;r.exports.request=makeDispatcher(w.request);r.exports.stream=makeDispatcher(w.stream);r.exports.pipeline=makeDispatcher(w.pipeline);r.exports.connect=makeDispatcher(w.connect);r.exports.upgrade=makeDispatcher(w.upgrade);r.exports.MockClient=I;r.exports.MockPool=Q;r.exports.MockAgent=S;r.exports.mockErrors=v;const{EventSource:Y}=s(21238);r.exports.EventSource=Y},80158:(r,n,s)=>{const{addAbortListener:a}=s(3440);const{RequestAbortedError:l}=s(68707);const u=Symbol("kListener");const d=Symbol("kSignal");function abort(r){if(r.abort){r.abort(r[d]?.reason)}else{r.reason=r[d]?.reason??new l}removeSignal(r)}function addSignal(r,n){r.reason=null;r[d]=null;r[u]=null;if(!n){return}if(n.aborted){abort(r);return}r[d]=n;r[u]=()=>{abort(r)};a(r[d],r[u])}function removeSignal(r){if(!r[d]){return}if("removeEventListener"in r[d]){r[d].removeEventListener("abort",r[u])}else{r[d].removeListener("abort",r[u])}r[d]=null;r[u]=null}r.exports={addSignal:addSignal,removeSignal:removeSignal}},34660:(r,n,s)=>{const a=s(34589);const{AsyncResource:l}=s(16698);const{InvalidArgumentError:u,SocketError:d}=s(68707);const A=s(3440);const{addSignal:p,removeSignal:f}=s(80158);class ConnectHandler extends l{constructor(r,n){if(!r||typeof r!=="object"){throw new u("invalid opts")}if(typeof n!=="function"){throw new u("invalid callback")}const{signal:s,opaque:a,responseHeaders:l}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new u("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=a||null;this.responseHeaders=l||null;this.callback=n;this.abort=null;p(this,s)}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(){throw new d("bad connect",null)}onUpgrade(r,n,s){const{callback:a,opaque:l,context:u}=this;f(this);this.callback=null;let d=n;if(d!=null){d=this.responseHeaders==="raw"?A.parseRawHeaders(n):A.parseHeaders(n)}this.runInAsyncScope(a,null,null,{statusCode:r,headers:d,socket:s,opaque:l,context:u})}onError(r){const{callback:n,opaque:s}=this;f(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,r,{opaque:s})}))}}}function connect(r,n){if(n===undefined){return new Promise(((n,s)=>{connect.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{const s=new ConnectHandler(r,n);this.dispatch({...r,method:"CONNECT"},s)}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=connect},76862:(r,n,s)=>{const{Readable:a,Duplex:l,PassThrough:u}=s(57075);const{InvalidArgumentError:d,InvalidReturnValueError:A,RequestAbortedError:p}=s(68707);const f=s(3440);const{AsyncResource:g}=s(16698);const{addSignal:y,removeSignal:b}=s(80158);const C=s(34589);const w=Symbol("resume");class PipelineRequest extends a{constructor(){super({autoDestroy:true});this[w]=null}_read(){const{[w]:r}=this;if(r){this[w]=null;r()}}_destroy(r,n){this._read();n(r)}}class PipelineResponse extends a{constructor(r){super({autoDestroy:true});this[w]=r}_read(){this[w]()}_destroy(r,n){if(!r&&!this._readableState.endEmitted){r=new p}n(r)}}class PipelineHandler extends g{constructor(r,n){if(!r||typeof r!=="object"){throw new d("invalid opts")}if(typeof n!=="function"){throw new d("invalid handler")}const{signal:s,method:a,opaque:u,onInfo:A,responseHeaders:g}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new d("invalid method")}if(A&&typeof A!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=u||null;this.responseHeaders=g||null;this.handler=n;this.abort=null;this.context=null;this.onInfo=A||null;this.req=(new PipelineRequest).on("error",f.nop);this.ret=new l({readableObjectMode:r.objectMode,autoDestroy:true,read:()=>{const{body:r}=this;if(r?.resume){r.resume()}},write:(r,n,s)=>{const{req:a}=this;if(a.push(r,n)||a._readableState.destroyed){s()}else{a[w]=s}},destroy:(r,n)=>{const{body:s,req:a,res:l,ret:u,abort:d}=this;if(!r&&!u._readableState.endEmitted){r=new p}if(d&&r){d()}f.destroy(s,r);f.destroy(a,r);f.destroy(l,r);b(this);n(r)}}).on("prefinish",(()=>{const{req:r}=this;r.push(null)}));this.res=null;y(this,s)}onConnect(r,n){const{ret:s,res:a}=this;if(this.reason){r(this.reason);return}C(!a,"pipeline cannot be retried");C(!s.destroyed);this.abort=r;this.context=n}onHeaders(r,n,s){const{opaque:a,handler:l,context:u}=this;if(r<200){if(this.onInfo){const s=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);this.onInfo({statusCode:r,headers:s})}return}this.res=new PipelineResponse(s);let d;try{this.handler=null;const s=this.responseHeaders==="raw"?f.parseRawHeaders(n):f.parseHeaders(n);d=this.runInAsyncScope(l,null,{statusCode:r,headers:s,opaque:a,body:this.res,context:u})}catch(r){this.res.on("error",f.nop);throw r}if(!d||typeof d.on!=="function"){throw new A("expected Readable")}d.on("data",(r=>{const{ret:n,body:s}=this;if(!n.push(r)&&s.pause){s.pause()}})).on("error",(r=>{const{ret:n}=this;f.destroy(n,r)})).on("end",(()=>{const{ret:r}=this;r.push(null)})).on("close",(()=>{const{ret:r}=this;if(!r._readableState.ended){f.destroy(r,new p)}}));this.body=d}onData(r){const{res:n}=this;return n.push(r)}onComplete(r){const{res:n}=this;n.push(null)}onError(r){const{ret:n}=this;this.handler=null;f.destroy(n,r)}}function pipeline(r,n){try{const s=new PipelineHandler(r,n);this.dispatch({...r,body:s.req},s);return s.ret}catch(r){return(new u).destroy(r)}}r.exports=pipeline},14043:(r,n,s)=>{const a=s(34589);const{Readable:l}=s(49927);const{InvalidArgumentError:u,RequestAbortedError:d}=s(68707);const A=s(3440);const{getResolveErrorBodyCallback:p}=s(87655);const{AsyncResource:f}=s(16698);class RequestHandler extends f{constructor(r,n){if(!r||typeof r!=="object"){throw new u("invalid opts")}const{signal:s,method:a,opaque:l,body:p,onInfo:f,responseHeaders:g,throwOnError:y,highWaterMark:b}=r;try{if(typeof n!=="function"){throw new u("invalid callback")}if(b&&(typeof b!=="number"||b<0)){throw new u("invalid highWaterMark")}if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new u("signal must be an EventEmitter or EventTarget")}if(a==="CONNECT"){throw new u("invalid method")}if(f&&typeof f!=="function"){throw new u("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(r){if(A.isStream(p)){A.destroy(p.on("error",A.nop),r)}throw r}this.method=a;this.responseHeaders=g||null;this.opaque=l||null;this.callback=n;this.res=null;this.abort=null;this.body=p;this.trailers={};this.context=null;this.onInfo=f||null;this.throwOnError=y;this.highWaterMark=b;this.signal=s;this.reason=null;this.removeAbortListener=null;if(A.isStream(p)){p.on("error",(r=>{this.onError(r)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new d}else{this.removeAbortListener=A.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new d;if(this.res){A.destroy(this.res.on("error",A.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(r,n,s,a){const{callback:u,opaque:d,abort:f,context:g,responseHeaders:y,highWaterMark:b}=this;const C=y==="raw"?A.parseRawHeaders(n):A.parseHeaders(n);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:C})}return}const w=y==="raw"?A.parseHeaders(n):C;const B=w["content-type"];const I=w["content-length"];const S=new l({resume:s,abort:f,contentType:B,contentLength:this.method!=="HEAD"&&I?Number(I):null,highWaterMark:b});if(this.removeAbortListener){S.on("close",this.removeAbortListener)}this.callback=null;this.res=S;if(u!==null){if(this.throwOnError&&r>=400){this.runInAsyncScope(p,null,{callback:u,body:S,contentType:B,statusCode:r,statusMessage:a,headers:C})}else{this.runInAsyncScope(u,null,null,{statusCode:r,headers:C,trailers:this.trailers,opaque:d,body:S,context:g})}}}onData(r){return this.res.push(r)}onComplete(r){A.parseHeaders(r,this.trailers);this.res.push(null)}onError(r){const{res:n,callback:s,body:a,opaque:l}=this;if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:l})}))}if(n){this.res=null;queueMicrotask((()=>{A.destroy(n,r)}))}if(a){this.body=null;A.destroy(a,r)}if(this.removeAbortListener){n?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(r,n){if(n===undefined){return new Promise(((n,s)=>{request.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{this.dispatch(r,new RequestHandler(r,n))}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=request;r.exports.RequestHandler=RequestHandler},3560:(r,n,s)=>{const a=s(34589);const{finished:l,PassThrough:u}=s(57075);const{InvalidArgumentError:d,InvalidReturnValueError:A}=s(68707);const p=s(3440);const{getResolveErrorBodyCallback:f}=s(87655);const{AsyncResource:g}=s(16698);const{addSignal:y,removeSignal:b}=s(80158);class StreamHandler extends g{constructor(r,n,s){if(!r||typeof r!=="object"){throw new d("invalid opts")}const{signal:a,method:l,opaque:u,body:A,onInfo:f,responseHeaders:g,throwOnError:b}=r;try{if(typeof s!=="function"){throw new d("invalid callback")}if(typeof n!=="function"){throw new d("invalid factory")}if(a&&typeof a.on!=="function"&&typeof a.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(l==="CONNECT"){throw new d("invalid method")}if(f&&typeof f!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(r){if(p.isStream(A)){p.destroy(A.on("error",p.nop),r)}throw r}this.responseHeaders=g||null;this.opaque=u||null;this.factory=n;this.callback=s;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=A;this.onInfo=f||null;this.throwOnError=b||false;if(p.isStream(A)){A.on("error",(r=>{this.onError(r)}))}y(this,a)}onConnect(r,n){if(this.reason){r(this.reason);return}a(this.callback);this.abort=r;this.context=n}onHeaders(r,n,s,a){const{factory:d,opaque:g,context:y,callback:b,responseHeaders:C}=this;const w=C==="raw"?p.parseRawHeaders(n):p.parseHeaders(n);if(r<200){if(this.onInfo){this.onInfo({statusCode:r,headers:w})}return}this.factory=null;let B;if(this.throwOnError&&r>=400){const s=C==="raw"?p.parseHeaders(n):w;const l=s["content-type"];B=new u;this.callback=null;this.runInAsyncScope(f,null,{callback:b,body:B,contentType:l,statusCode:r,statusMessage:a,headers:w})}else{if(d===null){return}B=this.runInAsyncScope(d,null,{statusCode:r,headers:w,opaque:g,context:y});if(!B||typeof B.write!=="function"||typeof B.end!=="function"||typeof B.on!=="function"){throw new A("expected Writable")}l(B,{readable:false},(r=>{const{callback:n,res:s,opaque:a,trailers:l,abort:u}=this;this.res=null;if(r||!s.readable){p.destroy(s,r)}this.callback=null;this.runInAsyncScope(n,null,r||null,{opaque:a,trailers:l});if(r){u()}}))}B.on("drain",s);this.res=B;const I=B.writableNeedDrain!==undefined?B.writableNeedDrain:B._writableState?.needDrain;return I!==true}onData(r){const{res:n}=this;return n?n.write(r):true}onComplete(r){const{res:n}=this;b(this);if(!n){return}this.trailers=p.parseHeaders(r);n.end()}onError(r){const{res:n,callback:s,opaque:a,body:l}=this;b(this);this.factory=null;if(n){this.res=null;p.destroy(n,r)}else if(s){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(s,null,r,{opaque:a})}))}if(l){this.body=null;p.destroy(l,r)}}}function stream(r,n,s){if(s===undefined){return new Promise(((s,a)=>{stream.call(this,r,n,((r,n)=>r?a(r):s(n)))}))}try{this.dispatch(r,new StreamHandler(r,n,s))}catch(n){if(typeof s!=="function"){throw n}const a=r?.opaque;queueMicrotask((()=>s(n,{opaque:a})))}}r.exports=stream},61882:(r,n,s)=>{const{InvalidArgumentError:a,SocketError:l}=s(68707);const{AsyncResource:u}=s(16698);const d=s(3440);const{addSignal:A,removeSignal:p}=s(80158);const f=s(34589);class UpgradeHandler extends u{constructor(r,n){if(!r||typeof r!=="object"){throw new a("invalid opts")}if(typeof n!=="function"){throw new a("invalid callback")}const{signal:s,opaque:l,responseHeaders:u}=r;if(s&&typeof s.on!=="function"&&typeof s.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=u||null;this.opaque=l||null;this.callback=n;this.abort=null;this.context=null;A(this,s)}onConnect(r,n){if(this.reason){r(this.reason);return}f(this.callback);this.abort=r;this.context=null}onHeaders(){throw new l("bad upgrade",null)}onUpgrade(r,n,s){f(r===101);const{callback:a,opaque:l,context:u}=this;p(this);this.callback=null;const A=this.responseHeaders==="raw"?d.parseRawHeaders(n):d.parseHeaders(n);this.runInAsyncScope(a,null,null,{headers:A,socket:s,opaque:l,context:u})}onError(r){const{callback:n,opaque:s}=this;p(this);if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,r,{opaque:s})}))}}}function upgrade(r,n){if(n===undefined){return new Promise(((n,s)=>{upgrade.call(this,r,((r,a)=>r?s(r):n(a)))}))}try{const s=new UpgradeHandler(r,n);this.dispatch({...r,method:r.method||"GET",upgrade:r.protocol||"Websocket"},s)}catch(s){if(typeof n!=="function"){throw s}const a=r?.opaque;queueMicrotask((()=>n(s,{opaque:a})))}}r.exports=upgrade},56615:(r,n,s)=>{r.exports.request=s(14043);r.exports.stream=s(3560);r.exports.pipeline=s(76862);r.exports.upgrade=s(61882);r.exports.connect=s(34660)},49927:(r,n,s)=>{const a=s(34589);const{Readable:l}=s(57075);const{RequestAbortedError:u,NotSupportedError:d,InvalidArgumentError:A,AbortError:p}=s(68707);const f=s(3440);const{ReadableStreamFrom:g}=s(3440);const y=Symbol("kConsume");const b=Symbol("kReading");const C=Symbol("kBody");const w=Symbol("kAbort");const B=Symbol("kContentType");const I=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends l{constructor({resume:r,abort:n,contentType:s="",contentLength:a,highWaterMark:l=64*1024}){super({autoDestroy:true,read:r,highWaterMark:l});this._readableState.dataEmitted=false;this[w]=n;this[y]=null;this[C]=null;this[B]=s;this[I]=a;this[b]=false}destroy(r){if(!r&&!this._readableState.endEmitted){r=new u}if(r){this[w]()}return super.destroy(r)}_destroy(r,n){if(!this[b]){setImmediate((()=>{n(r)}))}else{n(r)}}on(r,...n){if(r==="data"||r==="readable"){this[b]=true}return super.on(r,...n)}addListener(r,...n){return this.on(r,...n)}off(r,...n){const s=super.off(r,...n);if(r==="data"||r==="readable"){this[b]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return s}removeListener(r,...n){return this.off(r,...n)}push(r){if(this[y]&&r!==null){consumePush(this[y],r);return this[b]?super.push(r):true}return super.push(r)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new d}get bodyUsed(){return f.isDisturbed(this)}get body(){if(!this[C]){this[C]=g(this);if(this[y]){this[C].getReader();a(this[C].locked)}}return this[C]}async dump(r){let n=Number.isFinite(r?.limit)?r.limit:128*1024;const s=r?.signal;if(s!=null&&(typeof s!=="object"||!("aborted"in s))){throw new A("signal must be an AbortSignal")}s?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((r,a)=>{if(this[I]>n){this.destroy(new p)}const onAbort=()=>{this.destroy(s.reason??new p)};s?.addEventListener("abort",onAbort);this.on("close",(function(){s?.removeEventListener("abort",onAbort);if(s?.aborted){a(s.reason??new p)}else{r(null)}})).on("error",noop).on("data",(function(r){n-=r.length;if(n<=0){this.destroy()}})).resume()}))}}function isLocked(r){return r[C]&&r[C].locked===true||r[y]}function isUnusable(r){return f.isDisturbed(r)||isLocked(r)}async function consume(r,n){a(!r[y]);return new Promise(((s,a)=>{if(isUnusable(r)){const n=r._readableState;if(n.destroyed&&n.closeEmitted===false){r.on("error",(r=>{a(r)})).on("close",(()=>{a(new TypeError("unusable"))}))}else{a(n.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{r[y]={type:n,stream:r,resolve:s,reject:a,length:0,body:[]};r.on("error",(function(r){consumeFinish(this[y],r)})).on("close",(function(){if(this[y].body!==null){consumeFinish(this[y],new u)}}));consumeStart(r[y])}))}}))}function consumeStart(r){if(r.body===null){return}const{_readableState:n}=r.stream;if(n.bufferIndex){const s=n.bufferIndex;const a=n.buffer.length;for(let l=s;l2&&s[0]===239&&s[1]===187&&s[2]===191?3:0;return s.utf8Slice(l,a)}function chunksConcat(r,n){if(r.length===0||n===0){return new Uint8Array(0)}if(r.length===1){return new Uint8Array(r[0])}const s=new Uint8Array(Buffer.allocUnsafeSlow(n).buffer);let a=0;for(let n=0;n{const a=s(34589);const{ResponseStatusCodeError:l}=s(68707);const{chunksDecode:u}=s(49927);const d=128*1024;async function getResolveErrorBodyCallback({callback:r,body:n,contentType:s,statusCode:A,statusMessage:p,headers:f}){a(n);let g=[];let y=0;try{for await(const r of n){g.push(r);y+=r.length;if(y>d){g=[];y=0;break}}}catch{g=[];y=0}const b=`Response status code ${A}${p?`: ${p}`:""}`;if(A===204||!s||!y){queueMicrotask((()=>r(new l(b,A,f))));return}const C=Error.stackTraceLimit;Error.stackTraceLimit=0;let w;try{if(isContentTypeApplicationJson(s)){w=JSON.parse(u(g,y))}else if(isContentTypeText(s)){w=u(g,y)}}catch{}finally{Error.stackTraceLimit=C}queueMicrotask((()=>r(new l(b,A,f,w))))}const isContentTypeApplicationJson=r=>r.length>15&&r[11]==="/"&&r[0]==="a"&&r[1]==="p"&&r[2]==="p"&&r[3]==="l"&&r[4]==="i"&&r[5]==="c"&&r[6]==="a"&&r[7]==="t"&&r[8]==="i"&&r[9]==="o"&&r[10]==="n"&&r[12]==="j"&&r[13]==="s"&&r[14]==="o"&&r[15]==="n";const isContentTypeText=r=>r.length>4&&r[4]==="/"&&r[0]==="t"&&r[1]==="e"&&r[2]==="x"&&r[3]==="t";r.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},59136:(r,n,s)=>{const a=s(77030);const l=s(34589);const u=s(3440);const{InvalidArgumentError:d,ConnectTimeoutError:A}=s(68707);const p=s(96603);function noop(){}let f;let g;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){g=class WeakSessionCache{constructor(r){this._maxCachedSessions=r;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((r=>{if(this._sessionCache.size=this._maxCachedSessions){const{value:r}=this._sessionCache.keys().next();this._sessionCache.delete(r)}this._sessionCache.set(r,n)}}}function buildConnector({allowH2:r,maxCachedSessions:n,socketPath:A,timeout:p,session:b,...C}){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new d("maxCachedSessions must be a positive integer or zero")}const w={path:A,...C};const B=new g(n==null?100:n);p=p==null?1e4:p;r=r!=null?r:false;return function connect({hostname:n,host:d,protocol:A,port:g,servername:C,localAddress:I,httpSocket:S},Q){let v;if(A==="https:"){if(!f){f=s(41692)}C=C||w.servername||u.getServerName(d)||null;const a=C||n;l(a);const A=b||B.get(a)||null;g=g||443;v=f.connect({highWaterMark:16384,...w,servername:C,session:A,localAddress:I,ALPNProtocols:r?["http/1.1","h2"]:["http/1.1"],socket:S,port:g,host:n});v.on("session",(function(r){B.set(a,r)}))}else{l(!S,"httpSocket can only be sent on TLS update");g=g||80;v=a.connect({highWaterMark:64*1024,...w,localAddress:I,port:g,host:n})}if(w.keepAlive==null||w.keepAlive){const r=w.keepAliveInitialDelay===undefined?6e4:w.keepAliveInitialDelay;v.setKeepAlive(true,r)}const R=y(new WeakRef(v),{timeout:p,hostname:n,port:g});v.setNoDelay(true).once(A==="https:"?"secureConnect":"connect",(function(){queueMicrotask(R);if(Q){const r=Q;Q=null;r(null,this)}})).on("error",(function(r){queueMicrotask(R);if(Q){const n=Q;Q=null;n(r)}}));return v}}const y=process.platform==="win32"?(r,n)=>{if(!n.timeout){return noop}let s=null;let a=null;const l=p.setFastTimeout((()=>{s=setImmediate((()=>{a=setImmediate((()=>onConnectTimeout(r.deref(),n)))}))}),n.timeout);return()=>{p.clearFastTimeout(l);clearImmediate(s);clearImmediate(a)}}:(r,n)=>{if(!n.timeout){return noop}let s=null;const a=p.setFastTimeout((()=>{s=setImmediate((()=>{onConnectTimeout(r.deref(),n)}))}),n.timeout);return()=>{p.clearFastTimeout(a);clearImmediate(s)}};function onConnectTimeout(r,n){if(r==null){return}let s="Connect Timeout Error";if(Array.isArray(r.autoSelectFamilyAttemptedAddresses)){s+=` (attempted addresses: ${r.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{s+=` (attempted address: ${n.hostname}:${n.port},`}s+=` timeout: ${n.timeout}ms)`;u.destroy(r,new A(s))}r.exports=buildConnector},10735:r=>{const n={};const s=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let r=0;r{const a=s(53053);const l=s(57975);const u=l.debuglog("undici");const d=l.debuglog("fetch");const A=l.debuglog("websocket");let p=false;const f={beforeConnect:a.channel("undici:client:beforeConnect"),connected:a.channel("undici:client:connected"),connectError:a.channel("undici:client:connectError"),sendHeaders:a.channel("undici:client:sendHeaders"),create:a.channel("undici:request:create"),bodySent:a.channel("undici:request:bodySent"),headers:a.channel("undici:request:headers"),trailers:a.channel("undici:request:trailers"),error:a.channel("undici:request:error"),open:a.channel("undici:websocket:open"),close:a.channel("undici:websocket:close"),socketError:a.channel("undici:websocket:socket_error"),ping:a.channel("undici:websocket:ping"),pong:a.channel("undici:websocket:pong")};if(u.enabled||d.enabled){const r=d.enabled?d:u;a.channel("undici:client:beforeConnect").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connecting to %s using %s%s",`${u}${l?`:${l}`:""}`,a,s)}));a.channel("undici:client:connected").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connected to %s using %s%s",`${u}${l?`:${l}`:""}`,a,s)}));a.channel("undici:client:connectError").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u},error:d}=n;r("connection to %s using %s%s errored - %s",`${u}${l?`:${l}`:""}`,a,s,d.message)}));a.channel("undici:client:sendHeaders").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("sending request to %s %s/%s",s,l,a)}));a.channel("undici:request:headers").subscribe((n=>{const{request:{method:s,path:a,origin:l},response:{statusCode:u}}=n;r("received response to %s %s/%s - HTTP %d",s,l,a,u)}));a.channel("undici:request:trailers").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("trailers received from %s %s/%s",s,l,a)}));a.channel("undici:request:error").subscribe((n=>{const{request:{method:s,path:a,origin:l},error:u}=n;r("request to %s %s/%s errored - %s",s,l,a,u.message)}));p=true}if(A.enabled){if(!p){const r=u.enabled?u:A;a.channel("undici:client:beforeConnect").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connecting to %s%s using %s%s",u,l?`:${l}`:"",a,s)}));a.channel("undici:client:connected").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u}}=n;r("connected to %s%s using %s%s",u,l?`:${l}`:"",a,s)}));a.channel("undici:client:connectError").subscribe((n=>{const{connectParams:{version:s,protocol:a,port:l,host:u},error:d}=n;r("connection to %s%s using %s%s errored - %s",u,l?`:${l}`:"",a,s,d.message)}));a.channel("undici:client:sendHeaders").subscribe((n=>{const{request:{method:s,path:a,origin:l}}=n;r("sending request to %s %s/%s",s,l,a)}))}a.channel("undici:websocket:open").subscribe((r=>{const{address:{address:n,port:s}}=r;A("connection opened %s%s",n,s?`:${s}`:"")}));a.channel("undici:websocket:close").subscribe((r=>{const{websocket:n,code:s,reason:a}=r;A("closed connection to %s - %s %s",n.url,s,a)}));a.channel("undici:websocket:socket_error").subscribe((r=>{A("connection errored - %s",r.message)}));a.channel("undici:websocket:ping").subscribe((r=>{A("ping received")}));a.channel("undici:websocket:pong").subscribe((r=>{A("pong received")}))}r.exports={channels:f}},68707:r=>{const n=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(r){super(r);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](r){return r&&r[n]===true}[n]=true}const s=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(r){super(r);this.name="ConnectTimeoutError";this.message=r||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[s]===true}[s]=true}const a=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(r){super(r);this.name="HeadersTimeoutError";this.message=r||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[a]===true}[a]=true}const l=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(r){super(r);this.name="HeadersOverflowError";this.message=r||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](r){return r&&r[l]===true}[l]=true}const u=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(r){super(r);this.name="BodyTimeoutError";this.message=r||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](r){return r&&r[u]===true}[u]=true}const d=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(r,n,s,a){super(r);this.name="ResponseStatusCodeError";this.message=r||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=a;this.status=n;this.statusCode=n;this.headers=s}static[Symbol.hasInstance](r){return r&&r[d]===true}[d]=true}const A=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(r){super(r);this.name="InvalidArgumentError";this.message=r||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](r){return r&&r[A]===true}[A]=true}const p=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(r){super(r);this.name="InvalidReturnValueError";this.message=r||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](r){return r&&r[p]===true}[p]=true}const f=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(r){super(r);this.name="AbortError";this.message=r||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](r){return r&&r[f]===true}[f]=true}const g=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(r){super(r);this.name="AbortError";this.message=r||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](r){return r&&r[g]===true}[g]=true}const y=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(r){super(r);this.name="InformationalError";this.message=r||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](r){return r&&r[y]===true}[y]=true}const b=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(r){super(r);this.name="RequestContentLengthMismatchError";this.message=r||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](r){return r&&r[b]===true}[b]=true}const C=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(r){super(r);this.name="ResponseContentLengthMismatchError";this.message=r||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](r){return r&&r[C]===true}[C]=true}const w=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(r){super(r);this.name="ClientDestroyedError";this.message=r||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](r){return r&&r[w]===true}[w]=true}const B=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(r){super(r);this.name="ClientClosedError";this.message=r||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](r){return r&&r[B]===true}[B]=true}const I=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(r,n){super(r);this.name="SocketError";this.message=r||"Socket error";this.code="UND_ERR_SOCKET";this.socket=n}static[Symbol.hasInstance](r){return r&&r[I]===true}[I]=true}const S=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(r){super(r);this.name="NotSupportedError";this.message=r||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](r){return r&&r[S]===true}[S]=true}const Q=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(r){super(r);this.name="MissingUpstreamError";this.message=r||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](r){return r&&r[Q]===true}[Q]=true}const v=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(r,n,s){super(r);this.name="HTTPParserError";this.code=n?`HPE_${n}`:undefined;this.data=s?s.toString():undefined}static[Symbol.hasInstance](r){return r&&r[v]===true}[v]=true}const R=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(r){super(r);this.name="ResponseExceededMaxSizeError";this.message=r||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](r){return r&&r[R]===true}[R]=true}const N=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(r,n,{headers:s,data:a}){super(r);this.name="RequestRetryError";this.message=r||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=n;this.data=a;this.headers=s}static[Symbol.hasInstance](r){return r&&r[N]===true}[N]=true}const x=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(r,n,{headers:s,data:a}){super(r);this.name="ResponseError";this.message=r||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=n;this.data=a;this.headers=s}static[Symbol.hasInstance](r){return r&&r[x]===true}[x]=true}const D=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(r,n,s){super(n,{cause:r,...s??{}});this.name="SecureProxyConnectionError";this.message=n||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=r}static[Symbol.hasInstance](r){return r&&r[D]===true}[D]=true}const T=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(r){super(r);this.name="MessageSizeExceededError";this.message=r||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](r){return r&&r[T]===true}get[T](){return true}}r.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},44655:(r,n,s)=>{const{InvalidArgumentError:a,NotSupportedError:l}=s(68707);const u=s(34589);const{isValidHTTPToken:d,isValidHeaderValue:A,isStream:p,destroy:f,isBuffer:g,isFormDataLike:y,isIterable:b,isBlobLike:C,buildURL:w,validateHandler:B,getServerName:I,normalizedMethodRecords:S}=s(3440);const{channels:Q}=s(42414);const{headerNameLowerCasedRecord:v}=s(10735);const R=/[^\u0021-\u00ff]/;const N=Symbol("handler");class Request{constructor(r,{path:n,method:s,body:l,headers:u,query:v,idempotent:x,blocking:D,upgrade:T,headersTimeout:k,bodyTimeout:_,reset:P,throwOnError:F,expectContinue:L,servername:O},M){if(typeof n!=="string"){throw new a("path must be a string")}else if(n[0]!=="/"&&!(n.startsWith("http://")||n.startsWith("https://"))&&s!=="CONNECT"){throw new a("path must be an absolute URL or start with a slash")}else if(R.test(n)){throw new a("invalid request path")}if(typeof s!=="string"){throw new a("method must be a string")}else if(S[s]===undefined&&!d(s)){throw new a("invalid request method")}if(T&&typeof T!=="string"){throw new a("upgrade must be a string")}if(T&&!A(T)){throw new a("invalid upgrade header")}if(k!=null&&(!Number.isFinite(k)||k<0)){throw new a("invalid headersTimeout")}if(_!=null&&(!Number.isFinite(_)||_<0)){throw new a("invalid bodyTimeout")}if(P!=null&&typeof P!=="boolean"){throw new a("invalid reset")}if(L!=null&&typeof L!=="boolean"){throw new a("invalid expectContinue")}this.headersTimeout=k;this.bodyTimeout=_;this.throwOnError=F===true;this.method=s;this.abort=null;if(l==null){this.body=null}else if(p(l)){this.body=l;const r=this.body._readableState;if(!r||!r.autoDestroy){this.endHandler=function autoDestroy(){f(this)};this.body.on("end",this.endHandler)}this.errorHandler=r=>{if(this.abort){this.abort(r)}else{this.error=r}};this.body.on("error",this.errorHandler)}else if(g(l)){this.body=l.byteLength?l:null}else if(ArrayBuffer.isView(l)){this.body=l.buffer.byteLength?Buffer.from(l.buffer,l.byteOffset,l.byteLength):null}else if(l instanceof ArrayBuffer){this.body=l.byteLength?Buffer.from(l):null}else if(typeof l==="string"){this.body=l.length?Buffer.from(l):null}else if(y(l)||b(l)||C(l)){this.body=l}else{throw new a("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=T||null;this.path=v?w(n,v):n;this.origin=r;this.idempotent=x==null?s==="HEAD"||s==="GET":x;this.blocking=D==null?false:D;this.reset=P==null?null:P;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=L!=null?L:false;if(Array.isArray(u)){if(u.length%2!==0){throw new a("headers array must be even")}for(let r=0;r{r.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}},67752:(r,n,s)=>{const{wellknownHeaderNames:a,headerNameLowerCasedRecord:l}=s(10735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(r,n,s){if(s===undefined||s>=r.length){throw new TypeError("Unreachable")}const a=this.code=r.charCodeAt(s);if(a>127){throw new TypeError("key must be ascii string")}if(r.length!==++s){this.middle=new TstNode(r,n,s)}else{this.value=n}}add(r,n){const s=r.length;if(s===0){throw new TypeError("Unreachable")}let a=0;let l=this;while(true){const u=r.charCodeAt(a);if(u>127){throw new TypeError("key must be ascii string")}if(l.code===u){if(s===++a){l.value=n;break}else if(l.middle!==null){l=l.middle}else{l.middle=new TstNode(r,n,a);break}}else if(l.code=65){l|=32}while(a!==null){if(l===a.code){if(n===++s){return a}a=a.middle;break}a=a.code{const a=s(34589);const{kDestroyed:l,kBodyUsed:u,kListeners:d,kBody:A}=s(36443);const{IncomingMessage:p}=s(37067);const f=s(57075);const g=s(77030);const{Blob:y}=s(4573);const b=s(57975);const{stringify:C}=s(41792);const{EventEmitter:w}=s(78474);const{InvalidArgumentError:B}=s(68707);const{headerNameLowerCasedRecord:I}=s(10735);const{tree:S}=s(67752);const[Q,v]=process.versions.node.split(".").map((r=>Number(r)));class BodyAsyncIterable{constructor(r){this[A]=r;this[u]=false}async*[Symbol.asyncIterator](){a(!this[u],"disturbed");this[u]=true;yield*this[A]}}function wrapRequestBody(r){if(isStream(r)){if(bodyLength(r)===0){r.on("data",(function(){a(false)}))}if(typeof r.readableDidRead!=="boolean"){r[u]=false;w.prototype.on.call(r,"data",(function(){this[u]=true}))}return r}else if(r&&typeof r.pipeTo==="function"){return new BodyAsyncIterable(r)}else if(r&&typeof r!=="string"&&!ArrayBuffer.isView(r)&&isIterable(r)){return new BodyAsyncIterable(r)}else{return r}}function nop(){}function isStream(r){return r&&typeof r==="object"&&typeof r.pipe==="function"&&typeof r.on==="function"}function isBlobLike(r){if(r===null){return false}else if(r instanceof y){return true}else if(typeof r!=="object"){return false}else{const n=r[Symbol.toStringTag];return(n==="Blob"||n==="File")&&("stream"in r&&typeof r.stream==="function"||"arrayBuffer"in r&&typeof r.arrayBuffer==="function")}}function buildURL(r,n){if(r.includes("?")||r.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const s=C(n);if(s){r+="?"+s}return r}function isValidPort(r){const n=parseInt(r,10);return n===Number(r)&&n>=0&&n<=65535}function isHttpOrHttpsPrefixed(r){return r!=null&&r[0]==="h"&&r[1]==="t"&&r[2]==="t"&&r[3]==="p"&&(r[4]===":"||r[4]==="s"&&r[5]===":")}function parseURL(r){if(typeof r==="string"){r=new URL(r);if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}if(!r||typeof r!=="object"){throw new B("Invalid URL: The URL argument must be a non-null object.")}if(!(r instanceof URL)){if(r.port!=null&&r.port!==""&&isValidPort(r.port)===false){throw new B("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(r.path!=null&&typeof r.path!=="string"){throw new B("Invalid URL path: the path must be a string or null/undefined.")}if(r.pathname!=null&&typeof r.pathname!=="string"){throw new B("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(r.hostname!=null&&typeof r.hostname!=="string"){throw new B("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(r.origin!=null&&typeof r.origin!=="string"){throw new B("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const n=r.port!=null?r.port:r.protocol==="https:"?443:80;let s=r.origin!=null?r.origin:`${r.protocol||""}//${r.hostname||""}:${n}`;let a=r.path!=null?r.path:`${r.pathname||""}${r.search||""}`;if(s[s.length-1]==="/"){s=s.slice(0,s.length-1)}if(a&&a[0]!=="/"){a=`/${a}`}return new URL(`${s}${a}`)}if(!isHttpOrHttpsPrefixed(r.origin||r.protocol)){throw new B("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return r}function parseOrigin(r){r=parseURL(r);if(r.pathname!=="/"||r.search||r.hash){throw new B("invalid url")}return r}function getHostname(r){if(r[0]==="["){const n=r.indexOf("]");a(n!==-1);return r.substring(1,n)}const n=r.indexOf(":");if(n===-1)return r;return r.substring(0,n)}function getServerName(r){if(!r){return null}a(typeof r==="string");const n=getHostname(r);if(g.isIP(n)){return""}return n}function deepClone(r){return JSON.parse(JSON.stringify(r))}function isAsyncIterable(r){return!!(r!=null&&typeof r[Symbol.asyncIterator]==="function")}function isIterable(r){return!!(r!=null&&(typeof r[Symbol.iterator]==="function"||typeof r[Symbol.asyncIterator]==="function"))}function bodyLength(r){if(r==null){return 0}else if(isStream(r)){const n=r._readableState;return n&&n.objectMode===false&&n.ended===true&&Number.isFinite(n.length)?n.length:null}else if(isBlobLike(r)){return r.size!=null?r.size:null}else if(isBuffer(r)){return r.byteLength}return null}function isDestroyed(r){return r&&!!(r.destroyed||r[l]||f.isDestroyed?.(r))}function destroy(r,n){if(r==null||!isStream(r)||isDestroyed(r)){return}if(typeof r.destroy==="function"){if(Object.getPrototypeOf(r).constructor===p){r.socket=null}r.destroy(n)}else if(n){queueMicrotask((()=>{r.emit("error",n)}))}if(r.destroyed!==true){r[l]=true}}const R=/timeout=(\d+)/;function parseKeepAliveTimeout(r){const n=r.toString().match(R);return n?parseInt(n[1],10)*1e3:null}function headerNameToString(r){return typeof r==="string"?I[r]??r.toLowerCase():S.lookup(r)??r.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(r){return S.lookup(r)??r.toString("latin1").toLowerCase()}function parseHeaders(r,n){if(n===undefined)n={};for(let s=0;sr.toString("utf8"))):l.toString("utf8")}}}if("content-length"in n&&"content-disposition"in n){n["content-disposition"]=Buffer.from(n["content-disposition"]).toString("latin1")}return n}function parseRawHeaders(r){const n=r.length;const s=new Array(n);let a=false;let l=-1;let u;let d;let A=0;for(let n=0;n{r.close();r.byobRequest?.respond(0)}))}else{const n=Buffer.isBuffer(a)?a:Buffer.from(a);if(n.byteLength){r.enqueue(new Uint8Array(n))}}return r.desiredSize>0},async cancel(r){await n.return()},type:"bytes"})}function isFormDataLike(r){return r&&typeof r==="object"&&typeof r.append==="function"&&typeof r.delete==="function"&&typeof r.get==="function"&&typeof r.getAll==="function"&&typeof r.has==="function"&&typeof r.set==="function"&&r[Symbol.toStringTag]==="FormData"}function addAbortListener(r,n){if("addEventListener"in r){r.addEventListener("abort",n,{once:true});return()=>r.removeEventListener("abort",n)}r.addListener("abort",n);return()=>r.removeListener("abort",n)}const N=typeof String.prototype.toWellFormed==="function";const x=typeof String.prototype.isWellFormed==="function";function toUSVString(r){return N?`${r}`.toWellFormed():b.toUSVString(r)}function isUSVString(r){return x?`${r}`.isWellFormed():toUSVString(r)===`${r}`}function isTokenCharCode(r){switch(r){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return r>=33&&r<=126}}function isValidHTTPToken(r){if(r.length===0){return false}for(let n=0;n{const{InvalidArgumentError:a}=s(68707);const{kClients:l,kRunning:u,kClose:d,kDestroy:A,kDispatch:p,kInterceptors:f}=s(36443);const g=s(21841);const y=s(30628);const b=s(23701);const C=s(3440);const w=s(25092);const B=Symbol("onConnect");const I=Symbol("onDisconnect");const S=Symbol("onConnectionError");const Q=Symbol("maxRedirections");const v=Symbol("onDrain");const R=Symbol("factory");const N=Symbol("options");function defaultFactory(r,n){return n&&n.connections===1?new b(r,n):new y(r,n)}class Agent extends g{constructor({factory:r=defaultFactory,maxRedirections:n=0,connect:s,...u}={}){super();if(typeof r!=="function"){throw new a("factory must be a function.")}if(s!=null&&typeof s!=="function"&&typeof s!=="object"){throw new a("connect must be a function or an object")}if(!Number.isInteger(n)||n<0){throw new a("maxRedirections must be a positive number")}if(s&&typeof s!=="function"){s={...s}}this[f]=u.interceptors?.Agent&&Array.isArray(u.interceptors.Agent)?u.interceptors.Agent:[w({maxRedirections:n})];this[N]={...C.deepClone(u),connect:s};this[N].interceptors=u.interceptors?{...u.interceptors}:undefined;this[Q]=n;this[R]=r;this[l]=new Map;this[v]=(r,n)=>{this.emit("drain",r,[this,...n])};this[B]=(r,n)=>{this.emit("connect",r,[this,...n])};this[I]=(r,n,s)=>{this.emit("disconnect",r,[this,...n],s)};this[S]=(r,n,s)=>{this.emit("connectionError",r,[this,...n],s)}}get[u](){let r=0;for(const n of this[l].values()){r+=n[u]}return r}[p](r,n){let s;if(r.origin&&(typeof r.origin==="string"||r.origin instanceof URL)){s=String(r.origin)}else{throw new a("opts.origin must be a non-empty string or URL.")}let u=this[l].get(s);if(!u){u=this[R](r.origin,this[N]).on("drain",this[v]).on("connect",this[B]).on("disconnect",this[I]).on("connectionError",this[S]);this[l].set(s,u)}return u.dispatch(r,n)}async[d](){const r=[];for(const n of this[l].values()){r.push(n.close())}this[l].clear();await Promise.all(r)}async[A](r){const n=[];for(const s of this[l].values()){n.push(s.destroy(r))}this[l].clear();await Promise.all(n)}}r.exports=Agent},837:(r,n,s)=>{const{BalancedPoolMissingUpstreamError:a,InvalidArgumentError:l}=s(68707);const{PoolBase:u,kClients:d,kNeedDrain:A,kAddClient:p,kRemoveClient:f,kGetDispatcher:g}=s(42128);const y=s(30628);const{kUrl:b,kInterceptors:C}=s(36443);const{parseOrigin:w}=s(3440);const B=Symbol("factory");const I=Symbol("options");const S=Symbol("kGreatestCommonDivisor");const Q=Symbol("kCurrentWeight");const v=Symbol("kIndex");const R=Symbol("kWeight");const N=Symbol("kMaxWeightPerServer");const x=Symbol("kErrorPenalty");function getGreatestCommonDivisor(r,n){if(r===0)return n;while(n!==0){const s=n;n=r%n;r=s}return r}function defaultFactory(r,n){return new y(r,n)}class BalancedPool extends u{constructor(r=[],{factory:n=defaultFactory,...s}={}){super();this[I]=s;this[v]=-1;this[Q]=0;this[N]=this[I].maxWeightPerServer||100;this[x]=this[I].errorPenalty||15;if(!Array.isArray(r)){r=[r]}if(typeof n!=="function"){throw new l("factory must be a function.")}this[C]=s.interceptors?.BalancedPool&&Array.isArray(s.interceptors.BalancedPool)?s.interceptors.BalancedPool:[];this[B]=n;for(const n of r){this.addUpstream(n)}this._updateBalancedPoolStats()}addUpstream(r){const n=w(r).origin;if(this[d].find((r=>r[b].origin===n&&r.closed!==true&&r.destroyed!==true))){return this}const s=this[B](n,Object.assign({},this[I]));this[p](s);s.on("connect",(()=>{s[R]=Math.min(this[N],s[R]+this[x])}));s.on("connectionError",(()=>{s[R]=Math.max(1,s[R]-this[x]);this._updateBalancedPoolStats()}));s.on("disconnect",((...r)=>{const n=r[2];if(n&&n.code==="UND_ERR_SOCKET"){s[R]=Math.max(1,s[R]-this[x]);this._updateBalancedPoolStats()}}));for(const r of this[d]){r[R]=this[N]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let r=0;for(let n=0;nr[b].origin===n&&r.closed!==true&&r.destroyed!==true));if(s){this[f](s)}return this}get upstreams(){return this[d].filter((r=>r.closed!==true&&r.destroyed!==true)).map((r=>r[b].origin))}[g](){if(this[d].length===0){throw new a}const r=this[d].find((r=>!r[A]&&r.closed!==true&&r.destroyed!==true));if(!r){return}const n=this[d].map((r=>r[A])).reduce(((r,n)=>r&&n),true);if(n){return}let s=0;let l=this[d].findIndex((r=>!r[A]));while(s++this[d][l][R]&&!r[A]){l=this[v]}if(this[v]===0){this[Q]=this[Q]-this[S];if(this[Q]<=0){this[Q]=this[N]}}if(r[R]>=this[Q]&&!r[A]){return r}}this[Q]=this[d][l][R];this[v]=l;return this[d][l]}}r.exports=BalancedPool},637:(r,n,s)=>{const a=s(34589);const l=s(3440);const{channels:u}=s(42414);const d=s(96603);const{RequestContentLengthMismatchError:A,ResponseContentLengthMismatchError:p,RequestAbortedError:f,HeadersTimeoutError:g,HeadersOverflowError:y,SocketError:b,InformationalError:C,BodyTimeoutError:w,HTTPParserError:B,ResponseExceededMaxSizeError:I}=s(68707);const{kUrl:S,kReset:Q,kClient:v,kParser:R,kBlocking:N,kRunning:x,kPending:D,kSize:T,kWriting:k,kQueue:_,kNoRef:P,kKeepAliveDefaultTimeout:F,kHostHeader:L,kPendingIdx:O,kRunningIdx:M,kError:U,kPipelining:H,kSocket:G,kKeepAliveTimeoutValue:z,kMaxHeadersSize:q,kKeepAliveMaxTimeout:V,kKeepAliveTimeoutThreshold:j,kHeadersTimeout:W,kBodyTimeout:Y,kStrictContentLength:J,kMaxRequests:$,kCounter:K,kMaxResponseSize:X,kOnError:Z,kResume:ee,kHTTPContext:te}=s(36443);const re=s(52824);const ne=Buffer.alloc(0);const se=Buffer[Symbol.species];const ie=l.addListener;const oe=l.removeAllListeners;let ae;async function lazyllhttp(){const r=process.env.JEST_WORKER_ID?s(63870):undefined;let n;try{n=await WebAssembly.compile(s(53434))}catch(a){n=await WebAssembly.compile(r||s(63870))}return await WebAssembly.instantiate(n,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onStatus(new se(de.buffer,l,s))||0},wasm_on_message_begin:r=>{a(ue.ptr===r);return ue.onMessageBegin()||0},wasm_on_header_field:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onHeaderField(new se(de.buffer,l,s))||0},wasm_on_header_value:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onHeaderValue(new se(de.buffer,l,s))||0},wasm_on_headers_complete:(r,n,s,l)=>{a(ue.ptr===r);return ue.onHeadersComplete(n,Boolean(s),Boolean(l))||0},wasm_on_body:(r,n,s)=>{a(ue.ptr===r);const l=n-pe+de.byteOffset;return ue.onBody(new se(de.buffer,l,s))||0},wasm_on_message_complete:r=>{a(ue.ptr===r);return ue.onMessageComplete()||0}}})}let le=null;let ce=lazyllhttp();ce.catch();let ue=null;let de=null;let Ae=0;let pe=null;const fe=0;const he=1;const me=2|he;const ge=4|he;const ye=8|fe;class Parser{constructor(r,n,{exports:s}){a(Number.isFinite(r[q])&&r[q]>0);this.llhttp=s;this.ptr=this.llhttp.llhttp_alloc(re.TYPE.RESPONSE);this.client=r;this.socket=n;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=r[q];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=r[X]}setTimeout(r,n){if(r!==this.timeoutValue||n&he^this.timeoutType&he){if(this.timeout){d.clearTimeout(this.timeout);this.timeout=null}if(r){if(n&he){this.timeout=d.setFastTimeout(onParserTimeout,r,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,r,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=r}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=n}resume(){if(this.socket.destroyed||!this.paused){return}a(this.ptr!=null);a(ue==null);this.llhttp.llhttp_resume(this.ptr);a(this.timeoutType===ge);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||ne);this.readMore()}readMore(){while(!this.paused&&this.ptr){const r=this.socket.read();if(r===null){break}this.execute(r)}}execute(r){a(this.ptr!=null);a(ue==null);a(!this.paused);const{socket:n,llhttp:s}=this;if(r.length>Ae){if(pe){s.free(pe)}Ae=Math.ceil(r.length/4096)*4096;pe=s.malloc(Ae)}new Uint8Array(s.memory.buffer,pe,Ae).set(r);try{let a;try{de=r;ue=this;a=s.llhttp_execute(this.ptr,pe,r.length)}catch(r){throw r}finally{ue=null;de=null}const l=s.llhttp_get_error_pos(this.ptr)-pe;if(a===re.ERROR.PAUSED_UPGRADE){this.onUpgrade(r.slice(l))}else if(a===re.ERROR.PAUSED){this.paused=true;n.unshift(r.slice(l))}else if(a!==re.ERROR.OK){const n=s.llhttp_get_error_reason(this.ptr);let u="";if(n){const r=new Uint8Array(s.memory.buffer,n).indexOf(0);u="Response does not match the HTTP/1.1 protocol ("+Buffer.from(s.memory.buffer,n,r).toString()+")"}throw new B(u,re.ERROR[a],r.slice(l))}}catch(r){l.destroy(n,r)}}destroy(){a(this.ptr!=null);a(ue==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&d.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(r){this.statusText=r.toString()}onMessageBegin(){const{socket:r,client:n}=this;if(r.destroyed){return-1}const s=n[_][n[M]];if(!s){return-1}s.onResponseStarted()}onHeaderField(r){const n=this.headers.length;if((n&1)===0){this.headers.push(r)}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],r])}this.trackHeader(r.length)}onHeaderValue(r){let n=this.headers.length;if((n&1)===1){this.headers.push(r);n+=1}else{this.headers[n-1]=Buffer.concat([this.headers[n-1],r])}const s=this.headers[n-2];if(s.length===10){const n=l.bufferToLowerCasedHeaderName(s);if(n==="keep-alive"){this.keepAlive+=r.toString()}else if(n==="connection"){this.connection+=r.toString()}}else if(s.length===14&&l.bufferToLowerCasedHeaderName(s)==="content-length"){this.contentLength+=r.toString()}this.trackHeader(r.length)}trackHeader(r){this.headersSize+=r;if(this.headersSize>=this.headersMaxSize){l.destroy(this.socket,new y)}}onUpgrade(r){const{upgrade:n,client:s,socket:u,headers:d,statusCode:A}=this;a(n);a(s[G]===u);a(!u.destroyed);a(!this.paused);a((d.length&1)===0);const p=s[_][s[M]];a(p);a(p.upgrade||p.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;u.unshift(r);u[R].destroy();u[R]=null;u[v]=null;u[U]=null;oe(u);s[G]=null;s[te]=null;s[_][s[M]++]=null;s.emit("disconnect",s[S],[s],new C("upgrade"));try{p.onUpgrade(A,d,u)}catch(r){l.destroy(u,r)}s[ee]()}onHeadersComplete(r,n,s){const{client:u,socket:d,headers:A,statusText:p}=this;if(d.destroyed){return-1}const f=u[_][u[M]];if(!f){return-1}a(!this.upgrade);a(this.statusCode<200);if(r===100){l.destroy(d,new b("bad response",l.getSocketInfo(d)));return-1}if(n&&!f.upgrade){l.destroy(d,new b("bad upgrade",l.getSocketInfo(d)));return-1}a(this.timeoutType===me);this.statusCode=r;this.shouldKeepAlive=s||f.method==="HEAD"&&!d[Q]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const r=f.bodyTimeout!=null?f.bodyTimeout:u[Y];this.setTimeout(r,ge)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(f.method==="CONNECT"){a(u[x]===1);this.upgrade=true;return 2}if(n){a(u[x]===1);this.upgrade=true;return 2}a((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&u[H]){const r=this.keepAlive?l.parseKeepAliveTimeout(this.keepAlive):null;if(r!=null){const n=Math.min(r-u[j],u[V]);if(n<=0){d[Q]=true}else{u[z]=n}}else{u[z]=u[F]}}else{d[Q]=true}const g=f.onHeaders(r,A,this.resume,p)===false;if(f.aborted){return-1}if(f.method==="HEAD"){return 1}if(r<200){return 1}if(d[N]){d[N]=false;u[ee]()}return g?re.ERROR.PAUSED:0}onBody(r){const{client:n,socket:s,statusCode:u,maxResponseSize:d}=this;if(s.destroyed){return-1}const A=n[_][n[M]];a(A);a(this.timeoutType===ge);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}a(u>=200);if(d>-1&&this.bytesRead+r.length>d){l.destroy(s,new I);return-1}this.bytesRead+=r.length;if(A.onData(r)===false){return re.ERROR.PAUSED}}onMessageComplete(){const{client:r,socket:n,statusCode:s,upgrade:u,headers:d,contentLength:A,bytesRead:f,shouldKeepAlive:g}=this;if(n.destroyed&&(!s||g)){return-1}if(u){return}a(s>=100);a((this.headers.length&1)===0);const y=r[_][r[M]];a(y);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(s<200){return}if(y.method!=="HEAD"&&A&&f!==parseInt(A,10)){l.destroy(n,new p);return-1}y.onComplete(d);r[_][r[M]++]=null;if(n[k]){a(r[x]===0);l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(!g){l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(n[Q]&&r[x]===0){l.destroy(n,new C("reset"));return re.ERROR.PAUSED}else if(r[H]==null||r[H]===1){setImmediate((()=>r[ee]()))}else{r[ee]()}}}function onParserTimeout(r){const{socket:n,timeoutType:s,client:u,paused:d}=r.deref();if(s===me){if(!n[k]||n.writableNeedDrain||u[x]>1){a(!d,"cannot be paused while waiting for headers");l.destroy(n,new g)}}else if(s===ge){if(!d){l.destroy(n,new w)}}else if(s===ye){a(u[x]===0&&u[z]);l.destroy(n,new C("socket idle timeout"))}}async function connectH1(r,n){r[G]=n;if(!le){le=await ce;ce=null}n[P]=false;n[k]=false;n[Q]=false;n[N]=false;n[R]=new Parser(r,n,le);ie(n,"error",(function(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const n=this[R];if(r.code==="ECONNRESET"&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete();return}this[U]=r;this[v][Z](r)}));ie(n,"readable",(function(){const r=this[R];if(r){r.readMore()}}));ie(n,"end",(function(){const r=this[R];if(r.statusCode&&!r.shouldKeepAlive){r.onMessageComplete();return}l.destroy(this,new b("other side closed",l.getSocketInfo(this)))}));ie(n,"close",(function(){const r=this[v];const n=this[R];if(n){if(!this[U]&&n.statusCode&&!n.shouldKeepAlive){n.onMessageComplete()}this[R].destroy();this[R]=null}const s=this[U]||new b("closed",l.getSocketInfo(this));r[G]=null;r[te]=null;if(r.destroyed){a(r[D]===0);const n=r[_].splice(r[M]);for(let a=0;a0&&s.code!=="UND_ERR_INFO"){const n=r[_][r[M]];r[_][r[M]++]=null;l.errorRequest(r,n,s)}r[O]=r[M];a(r[x]===0);r.emit("disconnect",r[S],[r],s);r[ee]()}));let s=false;n.on("close",(()=>{s=true}));return{version:"h1",defaultPipelining:1,write(...n){return writeH1(r,...n)},resume(){resumeH1(r)},destroy(r,a){if(s){queueMicrotask(a)}else{n.destroy(r).on("close",a)}},get destroyed(){return n.destroyed},busy(s){if(n[k]||n[Q]||n[N]){return true}if(s){if(r[x]>0&&!s.idempotent){return true}if(r[x]>0&&(s.upgrade||s.method==="CONNECT")){return true}if(r[x]>0&&l.bodyLength(s.body)!==0&&(l.isStream(s.body)||l.isAsyncIterable(s.body)||l.isFormDataLike(s.body))){return true}}return false}}}function resumeH1(r){const n=r[G];if(n&&!n.destroyed){if(r[T]===0){if(!n[P]&&n.unref){n.unref();n[P]=true}}else if(n[P]&&n.ref){n.ref();n[P]=false}if(r[T]===0){if(n[R].timeoutType!==ye){n[R].setTimeout(r[z],ye)}}else if(r[x]>0&&n[R].statusCode<200){if(n[R].timeoutType!==me){const s=r[_][r[M]];const a=s.headersTimeout!=null?s.headersTimeout:r[W];n[R].setTimeout(a,me)}}}}function shouldSendContentLength(r){return r!=="GET"&&r!=="HEAD"&&r!=="OPTIONS"&&r!=="TRACE"&&r!=="CONNECT"}function writeH1(r,n){const{method:d,path:p,host:g,upgrade:y,blocking:b,reset:w}=n;let{body:B,headers:I,contentLength:S}=n;const v=d==="PUT"||d==="POST"||d==="PATCH"||d==="QUERY"||d==="PROPFIND"||d==="PROPPATCH";if(l.isFormDataLike(B)){if(!ae){ae=s(84492).extractBody}const[r,a]=ae(B);if(n.contentType==null){I.push("content-type",a)}B=r.stream;S=r.length}else if(l.isBlobLike(B)&&n.contentType==null&&B.type){I.push("content-type",B.type)}if(B&&typeof B.read==="function"){B.read(0)}const R=l.bodyLength(B);S=R??S;if(S===null){S=n.contentLength}if(S===0&&!v){S=null}if(shouldSendContentLength(d)&&S>0&&n.contentLength!==null&&n.contentLength!==S){if(r[J]){l.errorRequest(r,n,new A);return false}process.emitWarning(new A)}const x=r[G];const abort=s=>{if(n.aborted||n.completed){return}l.errorRequest(r,n,s||new f);l.destroy(B);l.destroy(x,new C("aborted"))};try{n.onConnect(abort)}catch(s){l.errorRequest(r,n,s)}if(n.aborted){return false}if(d==="HEAD"){x[Q]=true}if(y||d==="CONNECT"){x[Q]=true}if(w!=null){x[Q]=w}if(r[$]&&x[K]++>=r[$]){x[Q]=true}if(b){x[N]=true}let D=`${d} ${p} HTTP/1.1\r\n`;if(typeof g==="string"){D+=`host: ${g}\r\n`}else{D+=r[L]}if(y){D+=`connection: upgrade\r\nupgrade: ${y}\r\n`}else if(r[H]&&!x[Q]){D+="connection: keep-alive\r\n"}else{D+="connection: close\r\n"}if(Array.isArray(I)){for(let r=0;r{n.removeListener("error",onFinished)}));if(!y){const r=new f;queueMicrotask((()=>onFinished(r)))}};const onFinished=function(r){if(y){return}y=true;a(d.destroyed||d[k]&&s[x]<=1);d.off("drain",onDrain).off("error",onFinished);n.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!r){try{b.end()}catch(n){r=n}}b.destroy(r);if(r&&(r.code!=="UND_ERR_INFO"||r.message!=="reset")){l.destroy(n,r)}else{l.destroy(n)}};n.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(n.resume){n.resume()}d.on("drain",onDrain).on("error",onFinished);if(n.errorEmitted??n.errored){setImmediate((()=>onFinished(n.errored)))}else if(n.endEmitted??n.readableEnded){setImmediate((()=>onFinished(null)))}if(n.closeEmitted??n.closed){setImmediate(onClose)}}function writeBuffer(r,n,s,u,d,A,p,f){try{if(!n){if(A===0){d.write(`${p}content-length: 0\r\n\r\n`,"latin1")}else{a(A===null,"no body must not have content length");d.write(`${p}\r\n`,"latin1")}}else if(l.isBuffer(n)){a(A===n.byteLength,"buffer body must have content length");d.cork();d.write(`${p}content-length: ${A}\r\n\r\n`,"latin1");d.write(n);d.uncork();u.onBodySent(n);if(!f&&u.reset!==false){d[Q]=true}}u.onRequestSent();s[ee]()}catch(n){r(n)}}async function writeBlob(r,n,s,l,u,d,p,f){a(d===n.size,"blob body must have content length");try{if(d!=null&&d!==n.size){throw new A}const r=Buffer.from(await n.arrayBuffer());u.cork();u.write(`${p}content-length: ${d}\r\n\r\n`,"latin1");u.write(r);u.uncork();l.onBodySent(r);l.onRequestSent();if(!f&&l.reset!==false){u[Q]=true}s[ee]()}catch(n){r(n)}}async function writeIterable(r,n,s,l,u,d,A,p){a(d!==0||s[x]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const r=f;f=null;r()}}const waitForDrain=()=>new Promise(((r,n)=>{a(f===null);if(u[U]){n(u[U])}else{f=r}}));u.on("close",onDrain).on("drain",onDrain);const g=new AsyncWriter({abort:r,socket:u,request:l,contentLength:d,client:s,expectsPayload:p,header:A});try{for await(const r of n){if(u[U]){throw u[U]}if(!g.write(r)){await waitForDrain()}}g.end()}catch(r){g.destroy(r)}finally{u.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:r,socket:n,request:s,contentLength:a,client:l,expectsPayload:u,header:d}){this.socket=n;this.request=s;this.contentLength=a;this.client=l;this.bytesWritten=0;this.expectsPayload=u;this.header=d;this.abort=r;n[k]=true}write(r){const{socket:n,request:s,contentLength:a,client:l,bytesWritten:u,expectsPayload:d,header:p}=this;if(n[U]){throw n[U]}if(n.destroyed){return false}const f=Buffer.byteLength(r);if(!f){return true}if(a!==null&&u+f>a){if(l[J]){throw new A}process.emitWarning(new A)}n.cork();if(u===0){if(!d&&s.reset!==false){n[Q]=true}if(a===null){n.write(`${p}transfer-encoding: chunked\r\n`,"latin1")}else{n.write(`${p}content-length: ${a}\r\n\r\n`,"latin1")}}if(a===null){n.write(`\r\n${f.toString(16)}\r\n`,"latin1")}this.bytesWritten+=f;const g=n.write(r);n.uncork();s.onBodySent(r);if(!g){if(n[R].timeout&&n[R].timeoutType===me){if(n[R].timeout.refresh){n[R].timeout.refresh()}}}return g}end(){const{socket:r,contentLength:n,client:s,bytesWritten:a,expectsPayload:l,header:u,request:d}=this;d.onRequestSent();r[k]=false;if(r[U]){throw r[U]}if(r.destroyed){return}if(a===0){if(l){r.write(`${u}content-length: 0\r\n\r\n`,"latin1")}else{r.write(`${u}\r\n`,"latin1")}}else if(n===null){r.write("\r\n0\r\n\r\n","latin1")}if(n!==null&&a!==n){if(s[J]){throw new A}else{process.emitWarning(new A)}}if(r[R].timeout&&r[R].timeoutType===me){if(r[R].timeout.refresh){r[R].timeout.refresh()}}s[ee]()}destroy(r){const{socket:n,client:s,abort:l}=this;n[k]=false;if(r){a(s[x]<=1,"pipeline should only contain this request");l(r)}}}r.exports=connectH1},88788:(r,n,s)=>{const a=s(34589);const{pipeline:l}=s(57075);const u=s(3440);const{RequestContentLengthMismatchError:d,RequestAbortedError:A,SocketError:p,InformationalError:f}=s(68707);const{kUrl:g,kReset:y,kClient:b,kRunning:C,kPending:w,kQueue:B,kPendingIdx:I,kRunningIdx:S,kError:Q,kSocket:v,kStrictContentLength:R,kOnError:N,kMaxConcurrentStreams:x,kHTTP2Session:D,kResume:T,kSize:k,kHTTPContext:_}=s(36443);const P=Symbol("open streams");let F;let L=false;let O;try{O=s(32467)}catch{O={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:M,HTTP2_HEADER_METHOD:U,HTTP2_HEADER_PATH:H,HTTP2_HEADER_SCHEME:G,HTTP2_HEADER_CONTENT_LENGTH:z,HTTP2_HEADER_EXPECT:q,HTTP2_HEADER_STATUS:V}}=O;function parseH2Headers(r){const n=[];for(const[s,a]of Object.entries(r)){if(Array.isArray(a)){for(const r of a){n.push(Buffer.from(s),Buffer.from(r))}}else{n.push(Buffer.from(s),Buffer.from(a))}}return n}async function connectH2(r,n){r[v]=n;if(!L){L=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const s=O.connect(r[g],{createConnection:()=>n,peerMaxConcurrentStreams:r[x]});s[P]=0;s[b]=r;s[v]=n;u.addListener(s,"error",onHttp2SessionError);u.addListener(s,"frameError",onHttp2FrameError);u.addListener(s,"end",onHttp2SessionEnd);u.addListener(s,"goaway",onHTTP2GoAway);u.addListener(s,"close",(function(){const{[b]:r}=this;const{[v]:n}=r;const s=this[v][Q]||this[Q]||new p("closed",u.getSocketInfo(n));r[D]=null;if(r.destroyed){a(r[w]===0);const n=r[B].splice(r[S]);for(let a=0;a{l=true}));return{version:"h2",defaultPipelining:Infinity,write(...n){return writeH2(r,...n)},resume(){resumeH2(r)},destroy(r,s){if(l){queueMicrotask(s)}else{n.destroy(r).on("close",s)}},get destroyed(){return n.destroyed},busy(){return false}}}function resumeH2(r){const n=r[v];if(n?.destroyed===false){if(r[k]===0&&r[x]===0){n.unref();r[D].unref()}else{n.ref();r[D].ref()}}}function onHttp2SessionError(r){a(r.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[v][Q]=r;this[b][N](r)}function onHttp2FrameError(r,n,s){if(s===0){const s=new f(`HTTP/2: "frameError" received - type ${r}, code ${n}`);this[v][Q]=s;this[b][N](s)}}function onHttp2SessionEnd(){const r=new p("other side closed",u.getSocketInfo(this[v]));this.destroy(r);u.destroy(this[v],r)}function onHTTP2GoAway(r){const n=this[Q]||new p(`HTTP/2: "GOAWAY" frame received with code ${r}`,u.getSocketInfo(this));const s=this[b];s[v]=null;s[_]=null;if(this[D]!=null){this[D].destroy(n);this[D]=null}u.destroy(this[v],n);if(s[S]{if(n.aborted||n.completed){return}s=s||new A;u.errorRequest(r,n,s);if(_!=null){u.destroy(_,s)}u.destroy(x,s);r[B][r[S]++]=null;r[T]()};try{n.onConnect(abort)}catch(s){u.errorRequest(r,n,s)}if(n.aborted){return false}if(p==="CONNECT"){l.ref();_=l.request(k,{endStream:false,signal:Q});if(_.id&&!_.pending){n.onUpgrade(null,null,_);++l[P];r[B][r[S]++]=null}else{_.once("ready",(()=>{n.onUpgrade(null,null,_);++l[P];r[B][r[S]++]=null}))}_.once("close",(()=>{l[P]-=1;if(l[P]===0)l.unref()}));return true}k[H]=y;k[G]="https";const j=p==="PUT"||p==="POST"||p==="PATCH";if(x&&typeof x.read==="function"){x.read(0)}let W=u.bodyLength(x);if(u.isFormDataLike(x)){F??=s(84492).extractBody;const[r,n]=F(x);k["content-type"]=n;x=r.stream;W=r.length}if(W==null){W=n.contentLength}if(W===0||!j){W=null}if(shouldSendContentLength(p)&&W>0&&n.contentLength!=null&&n.contentLength!==W){if(r[R]){u.errorRequest(r,n,new d);return false}process.emitWarning(new d)}if(W!=null){a(x,"no body must not have content length");k[z]=`${W}`}l.ref();const Y=p==="GET"||p==="HEAD"||x===null;if(w){k[q]="100-continue";_=l.request(k,{endStream:Y,signal:Q});_.once("continue",writeBodyH2)}else{_=l.request(k,{endStream:Y,signal:Q});writeBodyH2()}++l[P];_.once("response",(s=>{const{[V]:a,...l}=s;n.onResponseStarted();if(n.aborted){const s=new A;u.errorRequest(r,n,s);u.destroy(_,s);return}if(n.onHeaders(Number(a),parseH2Headers(l),_.resume.bind(_),"")===false){_.pause()}_.on("data",(r=>{if(n.onData(r)===false){_.pause()}}))}));_.once("end",(()=>{if(_.state?.state==null||_.state.state<6){n.onComplete([])}if(l[P]===0){l.unref()}abort(new f("HTTP/2: stream half-closed (remote)"));r[B][r[S]++]=null;r[I]=r[S];r[T]()}));_.once("close",(()=>{l[P]-=1;if(l[P]===0){l.unref()}}));_.once("error",(function(r){abort(r)}));_.once("frameError",((r,n)=>{abort(new f(`HTTP/2: "frameError" received - type ${r}, code ${n}`))}));return true;function writeBodyH2(){if(!x||W===0){writeBuffer(abort,_,null,r,n,r[v],W,j)}else if(u.isBuffer(x)){writeBuffer(abort,_,x,r,n,r[v],W,j)}else if(u.isBlobLike(x)){if(typeof x.stream==="function"){writeIterable(abort,_,x.stream(),r,n,r[v],W,j)}else{writeBlob(abort,_,x,r,n,r[v],W,j)}}else if(u.isStream(x)){writeStream(abort,r[v],j,_,x,r,n,W)}else if(u.isIterable(x)){writeIterable(abort,_,x,r,n,r[v],W,j)}else{a(false)}}}function writeBuffer(r,n,s,l,d,A,p,f){try{if(s!=null&&u.isBuffer(s)){a(p===s.byteLength,"buffer body must have content length");n.cork();n.write(s);n.uncork();n.end();d.onBodySent(s)}if(!f){A[y]=true}d.onRequestSent();l[T]()}catch(n){r(n)}}function writeStream(r,n,s,d,A,p,f,g){a(g!==0||p[C]===0,"stream body cannot be pipelined");const b=l(A,d,(a=>{if(a){u.destroy(b,a);r(a)}else{u.removeAllListeners(b);f.onRequestSent();if(!s){n[y]=true}p[T]()}}));u.addListener(b,"data",onPipeData);function onPipeData(r){f.onBodySent(r)}}async function writeBlob(r,n,s,l,u,A,p,f){a(p===s.size,"blob body must have content length");try{if(p!=null&&p!==s.size){throw new d}const r=Buffer.from(await s.arrayBuffer());n.cork();n.write(r);n.uncork();n.end();u.onBodySent(r);u.onRequestSent();if(!f){A[y]=true}l[T]()}catch(n){r(n)}}async function writeIterable(r,n,s,l,u,d,A,p){a(A!==0||l[C]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const r=f;f=null;r()}}const waitForDrain=()=>new Promise(((r,n)=>{a(f===null);if(d[Q]){n(d[Q])}else{f=r}}));n.on("close",onDrain).on("drain",onDrain);try{for await(const r of s){if(d[Q]){throw d[Q]}const s=n.write(r);u.onBodySent(r);if(!s){await waitForDrain()}}n.end();u.onRequestSent();if(!p){d[y]=true}l[T]()}catch(n){r(n)}finally{n.off("close",onDrain).off("drain",onDrain)}}r.exports=connectH2},23701:(r,n,s)=>{const a=s(34589);const l=s(77030);const u=s(37067);const d=s(3440);const{channels:A}=s(42414);const p=s(44655);const f=s(21841);const{InvalidArgumentError:g,InformationalError:y,ClientDestroyedError:b}=s(68707);const C=s(59136);const{kUrl:w,kServerName:B,kClient:I,kBusy:S,kConnect:Q,kResuming:v,kRunning:R,kPending:N,kSize:x,kQueue:D,kConnected:T,kConnecting:k,kNeedDrain:_,kKeepAliveDefaultTimeout:P,kHostHeader:F,kPendingIdx:L,kRunningIdx:O,kError:M,kPipelining:U,kKeepAliveTimeoutValue:H,kMaxHeadersSize:G,kKeepAliveMaxTimeout:z,kKeepAliveTimeoutThreshold:q,kHeadersTimeout:V,kBodyTimeout:j,kStrictContentLength:W,kConnector:Y,kMaxRedirections:J,kMaxRequests:$,kCounter:K,kClose:X,kDestroy:Z,kDispatch:ee,kInterceptors:te,kLocalAddress:re,kMaxResponseSize:ne,kOnError:se,kHTTPContext:ie,kMaxConcurrentStreams:oe,kResume:ae}=s(36443);const le=s(637);const ce=s(88788);let ue=false;const de=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(r){return r[U]??r[ie]?.defaultPipelining??1}class Client extends f{constructor(r,{interceptors:n,maxHeaderSize:s,headersTimeout:a,socketTimeout:A,requestTimeout:p,connectTimeout:f,bodyTimeout:y,idleTimeout:b,keepAlive:I,keepAliveTimeout:S,maxKeepAliveTimeout:Q,keepAliveMaxTimeout:R,keepAliveTimeoutThreshold:N,socketPath:x,pipelining:T,tls:k,strictContentLength:M,maxCachedSessions:K,maxRedirections:X,connect:Z,maxRequestsPerClient:ee,localAddress:le,maxResponseSize:ce,autoSelectFamily:pe,autoSelectFamilyAttemptTimeout:fe,maxConcurrentStreams:he,allowH2:me}={}){super();if(I!==undefined){throw new g("unsupported keepAlive, use pipelining=0 instead")}if(A!==undefined){throw new g("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(p!==undefined){throw new g("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(b!==undefined){throw new g("unsupported idleTimeout, use keepAliveTimeout instead")}if(Q!==undefined){throw new g("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(s!=null&&!Number.isFinite(s)){throw new g("invalid maxHeaderSize")}if(x!=null&&typeof x!=="string"){throw new g("invalid socketPath")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new g("invalid connectTimeout")}if(S!=null&&(!Number.isFinite(S)||S<=0)){throw new g("invalid keepAliveTimeout")}if(R!=null&&(!Number.isFinite(R)||R<=0)){throw new g("invalid keepAliveMaxTimeout")}if(N!=null&&!Number.isFinite(N)){throw new g("invalid keepAliveTimeoutThreshold")}if(a!=null&&(!Number.isInteger(a)||a<0)){throw new g("headersTimeout must be a positive integer or zero")}if(y!=null&&(!Number.isInteger(y)||y<0)){throw new g("bodyTimeout must be a positive integer or zero")}if(Z!=null&&typeof Z!=="function"&&typeof Z!=="object"){throw new g("connect must be a function or an object")}if(X!=null&&(!Number.isInteger(X)||X<0)){throw new g("maxRedirections must be a positive number")}if(ee!=null&&(!Number.isInteger(ee)||ee<0)){throw new g("maxRequestsPerClient must be a positive number")}if(le!=null&&(typeof le!=="string"||l.isIP(le)===0)){throw new g("localAddress must be valid string IP address")}if(ce!=null&&(!Number.isInteger(ce)||ce<-1)){throw new g("maxResponseSize must be a positive number")}if(fe!=null&&(!Number.isInteger(fe)||fe<-1)){throw new g("autoSelectFamilyAttemptTimeout must be a positive number")}if(me!=null&&typeof me!=="boolean"){throw new g("allowH2 must be a valid boolean value")}if(he!=null&&(typeof he!=="number"||he<1)){throw new g("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof Z!=="function"){Z=C({...k,maxCachedSessions:K,allowH2:me,socketPath:x,timeout:f,...pe?{autoSelectFamily:pe,autoSelectFamilyAttemptTimeout:fe}:undefined,...Z})}if(n?.Client&&Array.isArray(n.Client)){this[te]=n.Client;if(!ue){ue=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[te]=[Ae({maxRedirections:X})]}this[w]=d.parseOrigin(r);this[Y]=Z;this[U]=T!=null?T:1;this[G]=s||u.maxHeaderSize;this[P]=S==null?4e3:S;this[z]=R==null?6e5:R;this[q]=N==null?2e3:N;this[H]=this[P];this[B]=null;this[re]=le!=null?le:null;this[v]=0;this[_]=0;this[F]=`host: ${this[w].hostname}${this[w].port?`:${this[w].port}`:""}\r\n`;this[j]=y!=null?y:3e5;this[V]=a!=null?a:3e5;this[W]=M==null?true:M;this[J]=X;this[$]=ee;this[de]=null;this[ne]=ce>-1?ce:-1;this[oe]=he!=null?he:100;this[ie]=null;this[D]=[];this[O]=0;this[L]=0;this[ae]=r=>resume(this,r);this[se]=r=>onError(this,r)}get pipelining(){return this[U]}set pipelining(r){this[U]=r;this[ae](true)}get[N](){return this[D].length-this[L]}get[R](){return this[L]-this[O]}get[x](){return this[D].length-this[O]}get[T](){return!!this[ie]&&!this[k]&&!this[ie].destroyed}get[S](){return Boolean(this[ie]?.busy(null)||this[x]>=(getPipelining(this)||1)||this[N]>0)}[Q](r){connect(this);this.once("connect",r)}[ee](r,n){const s=r.origin||this[w].origin;const a=new p(s,r,n);this[D].push(a);if(this[v]){}else if(d.bodyLength(a.body)==null&&d.isIterable(a.body)){this[v]=1;queueMicrotask((()=>resume(this)))}else{this[ae](true)}if(this[v]&&this[_]!==2&&this[S]){this[_]=2}return this[_]<2}async[X](){return new Promise((r=>{if(this[x]){this[de]=r}else{r(null)}}))}async[Z](r){return new Promise((n=>{const s=this[D].splice(this[L]);for(let n=0;n{if(this[de]){this[de]();this[de]=null}n(null)};if(this[ie]){this[ie].destroy(r,callback);this[ie]=null}else{queueMicrotask(callback)}this[ae]()}))}}const Ae=s(25092);function onError(r,n){if(r[R]===0&&n.code!=="UND_ERR_INFO"&&n.code!=="UND_ERR_SOCKET"){a(r[L]===r[O]);const s=r[D].splice(r[O]);for(let a=0;a{r[Y]({host:n,hostname:s,protocol:u,port:p,servername:r[B],localAddress:r[re]},((r,n)=>{if(r){l(r)}else{a(n)}}))}));if(r.destroyed){d.destroy(l.on("error",noop),new b);return}a(l);try{r[ie]=l.alpnProtocol==="h2"?await ce(r,l):await le(r,l)}catch(r){l.destroy().on("error",noop);throw r}r[k]=false;l[K]=0;l[$]=r[$];l[I]=r;l[M]=null;if(A.connected.hasSubscribers){A.connected.publish({connectParams:{host:n,hostname:s,protocol:u,port:p,version:r[ie]?.version,servername:r[B],localAddress:r[re]},connector:r[Y],socket:l})}r.emit("connect",r[w],[r])}catch(l){if(r.destroyed){return}r[k]=false;if(A.connectError.hasSubscribers){A.connectError.publish({connectParams:{host:n,hostname:s,protocol:u,port:p,version:r[ie]?.version,servername:r[B],localAddress:r[re]},connector:r[Y],error:l})}if(l.code==="ERR_TLS_CERT_ALTNAME_INVALID"){a(r[R]===0);while(r[N]>0&&r[D][r[L]].servername===r[B]){const n=r[D][r[L]++];d.errorRequest(r,n,l)}}else{onError(r,l)}r.emit("connectionError",r[w],[r],l)}r[ae]()}function emitDrain(r){r[_]=0;r.emit("drain",r[w],[r])}function resume(r,n){if(r[v]===2){return}r[v]=2;_resume(r,n);r[v]=0;if(r[O]>256){r[D].splice(0,r[O]);r[L]-=r[O];r[O]=0}}function _resume(r,n){while(true){if(r.destroyed){a(r[N]===0);return}if(r[de]&&!r[x]){r[de]();r[de]=null;return}if(r[ie]){r[ie].resume()}if(r[S]){r[_]=2}else if(r[_]===2){if(n){r[_]=1;queueMicrotask((()=>emitDrain(r)))}else{emitDrain(r)}continue}if(r[N]===0){return}if(r[R]>=(getPipelining(r)||1)){return}const s=r[D][r[L]];if(r[w].protocol==="https:"&&r[B]!==s.servername){if(r[R]>0){return}r[B]=s.servername;r[ie]?.destroy(new y("servername changed"),(()=>{r[ie]=null;resume(r)}))}if(r[k]){return}if(!r[ie]){connect(r);return}if(r[ie].destroyed){return}if(r[ie].busy(s)){return}if(!s.aborted&&r[ie].write(s)){r[L]++}else{r[D].splice(r[L],1)}}}r.exports=Client},21841:(r,n,s)=>{const a=s(30883);const{ClientDestroyedError:l,ClientClosedError:u,InvalidArgumentError:d}=s(68707);const{kDestroy:A,kClose:p,kClosed:f,kDestroyed:g,kDispatch:y,kInterceptors:b}=s(36443);const C=Symbol("onDestroyed");const w=Symbol("onClosed");const B=Symbol("Intercepted Dispatch");class DispatcherBase extends a{constructor(){super();this[g]=false;this[C]=null;this[f]=false;this[w]=[]}get destroyed(){return this[g]}get closed(){return this[f]}get interceptors(){return this[b]}set interceptors(r){if(r){for(let n=r.length-1;n>=0;n--){const r=this[b][n];if(typeof r!=="function"){throw new d("interceptor must be an function")}}}this[b]=r}close(r){if(r===undefined){return new Promise(((r,n)=>{this.close(((s,a)=>s?n(s):r(a)))}))}if(typeof r!=="function"){throw new d("invalid callback")}if(this[g]){queueMicrotask((()=>r(new l,null)));return}if(this[f]){if(this[w]){this[w].push(r)}else{queueMicrotask((()=>r(null,null)))}return}this[f]=true;this[w].push(r);const onClosed=()=>{const r=this[w];this[w]=null;for(let n=0;nthis.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(r,n){if(typeof r==="function"){n=r;r=null}if(n===undefined){return new Promise(((n,s)=>{this.destroy(r,((r,a)=>r?s(r):n(a)))}))}if(typeof n!=="function"){throw new d("invalid callback")}if(this[g]){if(this[C]){this[C].push(n)}else{queueMicrotask((()=>n(null,null)))}return}if(!r){r=new l}this[g]=true;this[C]=this[C]||[];this[C].push(n);const onDestroyed=()=>{const r=this[C];this[C]=null;for(let n=0;n{queueMicrotask(onDestroyed)}))}[B](r,n){if(!this[b]||this[b].length===0){this[B]=this[y];return this[y](r,n)}let s=this[y].bind(this);for(let r=this[b].length-1;r>=0;r--){s=this[b][r](s)}this[B]=s;return s(r,n)}dispatch(r,n){if(!n||typeof n!=="object"){throw new d("handler must be an object")}try{if(!r||typeof r!=="object"){throw new d("opts must be an object.")}if(this[g]||this[C]){throw new l}if(this[f]){throw new u}return this[B](r,n)}catch(r){if(typeof n.onError!=="function"){throw new d("invalid onError method")}n.onError(r);return false}}}r.exports=DispatcherBase},30883:(r,n,s)=>{const a=s(78474);class Dispatcher extends a{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...r){const n=Array.isArray(r[0])?r[0]:r;let s=this.dispatch.bind(this);for(const r of n){if(r==null){continue}if(typeof r!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof r}`)}s=r(s);if(s==null||typeof s!=="function"||s.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,s)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(r,n){super();this.#e=r;this.#t=n}dispatch(...r){this.#t(...r)}close(...r){return this.#e.close(...r)}destroy(...r){return this.#e.destroy(...r)}}r.exports=Dispatcher},53137:(r,n,s)=>{const a=s(21841);const{kClose:l,kDestroy:u,kClosed:d,kDestroyed:A,kDispatch:p,kNoProxyAgent:f,kHttpProxyAgent:g,kHttpsProxyAgent:y}=s(36443);const b=s(76672);const C=s(57405);const w={"http:":80,"https:":443};let B=false;class EnvHttpProxyAgent extends a{#r=null;#n=null;#s=null;constructor(r={}){super();this.#s=r;if(!B){B=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:n,httpsProxy:s,noProxy:a,...l}=r;this[f]=new C(l);const u=n??process.env.http_proxy??process.env.HTTP_PROXY;if(u){this[g]=new b({...l,uri:u})}else{this[g]=this[f]}const d=s??process.env.https_proxy??process.env.HTTPS_PROXY;if(d){this[y]=new b({...l,uri:d})}else{this[y]=this[g]}this.#i()}[p](r,n){const s=new URL(r.origin);const a=this.#o(s);return a.dispatch(r,n)}async[l](){await this[f].close();if(!this[g][d]){await this[g].close()}if(!this[y][d]){await this[y].close()}}async[u](r){await this[f].destroy(r);if(!this[g][A]){await this[g].destroy(r)}if(!this[y][A]){await this[y].destroy(r)}}#o(r){let{protocol:n,host:s,port:a}=r;s=s.replace(/:\d*$/,"").toLowerCase();a=Number.parseInt(a,10)||w[n]||0;if(!this.#a(s,a)){return this[f]}if(n==="https:"){return this[y]}return this[g]}#a(r,n){if(this.#l){this.#i()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let s=0;s{const n=2048;const s=n-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(n);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&s)===this.bottom}push(r){this.list[this.top]=r;this.top=this.top+1&s}shift(){const r=this.list[this.bottom];if(r===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&s;return r}}r.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(r){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(r)}shift(){const r=this.tail;const n=r.shift();if(r.isEmpty()&&r.next!==null){this.tail=r.next}return n}}},42128:(r,n,s)=>{const a=s(21841);const l=s(64660);const{kConnected:u,kSize:d,kRunning:A,kPending:p,kQueued:f,kBusy:g,kFree:y,kUrl:b,kClose:C,kDestroy:w,kDispatch:B}=s(36443);const I=s(43246);const S=Symbol("clients");const Q=Symbol("needDrain");const v=Symbol("queue");const R=Symbol("closed resolve");const N=Symbol("onDrain");const x=Symbol("onConnect");const D=Symbol("onDisconnect");const T=Symbol("onConnectionError");const k=Symbol("get dispatcher");const _=Symbol("add client");const P=Symbol("remove client");const F=Symbol("stats");class PoolBase extends a{constructor(){super();this[v]=new l;this[S]=[];this[f]=0;const r=this;this[N]=function onDrain(n,s){const a=r[v];let l=false;while(!l){const n=a.shift();if(!n){break}r[f]--;l=!this.dispatch(n.opts,n.handler)}this[Q]=l;if(!this[Q]&&r[Q]){r[Q]=false;r.emit("drain",n,[r,...s])}if(r[R]&&a.isEmpty()){Promise.all(r[S].map((r=>r.close()))).then(r[R])}};this[x]=(n,s)=>{r.emit("connect",n,[r,...s])};this[D]=(n,s,a)=>{r.emit("disconnect",n,[r,...s],a)};this[T]=(n,s,a)=>{r.emit("connectionError",n,[r,...s],a)};this[F]=new I(this)}get[g](){return this[Q]}get[u](){return this[S].filter((r=>r[u])).length}get[y](){return this[S].filter((r=>r[u]&&!r[Q])).length}get[p](){let r=this[f];for(const{[p]:n}of this[S]){r+=n}return r}get[A](){let r=0;for(const{[A]:n}of this[S]){r+=n}return r}get[d](){let r=this[f];for(const{[d]:n}of this[S]){r+=n}return r}get stats(){return this[F]}async[C](){if(this[v].isEmpty()){await Promise.all(this[S].map((r=>r.close())))}else{await new Promise((r=>{this[R]=r}))}}async[w](r){while(true){const n=this[v].shift();if(!n){break}n.handler.onError(r)}await Promise.all(this[S].map((n=>n.destroy(r))))}[B](r,n){const s=this[k]();if(!s){this[Q]=true;this[v].push({opts:r,handler:n});this[f]++}else if(!s.dispatch(r,n)){s[Q]=true;this[Q]=!this[k]()}return!this[Q]}[_](r){r.on("drain",this[N]).on("connect",this[x]).on("disconnect",this[D]).on("connectionError",this[T]);this[S].push(r);if(this[Q]){queueMicrotask((()=>{if(this[Q]){this[N](r[b],[this,r])}}))}return this}[P](r){r.close((()=>{const n=this[S].indexOf(r);if(n!==-1){this[S].splice(n,1)}}));this[Q]=this[S].some((r=>!r[Q]&&r.closed!==true&&r.destroyed!==true))}}r.exports={PoolBase:PoolBase,kClients:S,kNeedDrain:Q,kAddClient:_,kRemoveClient:P,kGetDispatcher:k}},43246:(r,n,s)=>{const{kFree:a,kConnected:l,kPending:u,kQueued:d,kRunning:A,kSize:p}=s(36443);const f=Symbol("pool");class PoolStats{constructor(r){this[f]=r}get connected(){return this[f][l]}get free(){return this[f][a]}get pending(){return this[f][u]}get queued(){return this[f][d]}get running(){return this[f][A]}get size(){return this[f][p]}}r.exports=PoolStats},30628:(r,n,s)=>{const{PoolBase:a,kClients:l,kNeedDrain:u,kAddClient:d,kGetDispatcher:A}=s(42128);const p=s(23701);const{InvalidArgumentError:f}=s(68707);const g=s(3440);const{kUrl:y,kInterceptors:b}=s(36443);const C=s(59136);const w=Symbol("options");const B=Symbol("connections");const I=Symbol("factory");function defaultFactory(r,n){return new p(r,n)}class Pool extends a{constructor(r,{connections:n,factory:s=defaultFactory,connect:a,connectTimeout:u,tls:d,maxCachedSessions:A,socketPath:p,autoSelectFamily:S,autoSelectFamilyAttemptTimeout:Q,allowH2:v,...R}={}){super();if(n!=null&&(!Number.isFinite(n)||n<0)){throw new f("invalid connections")}if(typeof s!=="function"){throw new f("factory must be a function.")}if(a!=null&&typeof a!=="function"&&typeof a!=="object"){throw new f("connect must be a function or an object")}if(typeof a!=="function"){a=C({...d,maxCachedSessions:A,allowH2:v,socketPath:p,timeout:u,...S?{autoSelectFamily:S,autoSelectFamilyAttemptTimeout:Q}:undefined,...a})}this[b]=R.interceptors?.Pool&&Array.isArray(R.interceptors.Pool)?R.interceptors.Pool:[];this[B]=n||null;this[y]=g.parseOrigin(r);this[w]={...g.deepClone(R),connect:a,allowH2:v};this[w].interceptors=R.interceptors?{...R.interceptors}:undefined;this[I]=s;this.on("connectionError",((r,n,s)=>{for(const r of n){const n=this[l].indexOf(r);if(n!==-1){this[l].splice(n,1)}}}))}[A](){for(const r of this[l]){if(!r[u]){return r}}if(!this[B]||this[l].length{const{kProxy:a,kClose:l,kDestroy:u,kDispatch:d,kInterceptors:A}=s(36443);const{URL:p}=s(73136);const f=s(57405);const g=s(30628);const y=s(21841);const{InvalidArgumentError:b,RequestAbortedError:C,SecureProxyConnectionError:w}=s(68707);const B=s(59136);const I=s(23701);const S=Symbol("proxy agent");const Q=Symbol("proxy client");const v=Symbol("proxy headers");const R=Symbol("request tls settings");const N=Symbol("proxy tls settings");const x=Symbol("connect endpoint function");const D=Symbol("tunnel proxy");function defaultProtocolPort(r){return r==="https:"?443:80}function defaultFactory(r,n){return new g(r,n)}const noop=()=>{};function defaultAgentFactory(r,n){if(n.connections===1){return new I(r,n)}return new g(r,n)}class Http1ProxyWrapper extends y{#u;constructor(r,{headers:n={},connect:s,factory:a}){super();if(!r){throw new b("Proxy URL is mandatory")}this[v]=n;if(a){this.#u=a(r,{connect:s})}else{this.#u=new I(r,{connect:s})}}[d](r,n){const s=n.onHeaders;n.onHeaders=function(r,a,l){if(r===407){if(typeof n.onError==="function"){n.onError(new b("Proxy Authentication Required (407)"))}return}if(s)s.call(this,r,a,l)};const{origin:a,path:l="/",headers:u={}}=r;r.path=a+l;if(!("host"in u)&&!("Host"in u)){const{host:r}=new p(a);u.host=r}r.headers={...this[v],...u};return this.#u[d](r,n)}async[l](){return this.#u.close()}async[u](r){return this.#u.destroy(r)}}class ProxyAgent extends y{constructor(r){super();if(!r||typeof r==="object"&&!(r instanceof p)&&!r.uri){throw new b("Proxy uri is mandatory")}const{clientFactory:n=defaultFactory}=r;if(typeof n!=="function"){throw new b("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:s=true}=r;const l=this.#d(r);const{href:u,origin:d,port:g,protocol:y,username:I,password:T,hostname:k}=l;this[a]={uri:u,protocol:y};this[A]=r.interceptors?.ProxyAgent&&Array.isArray(r.interceptors.ProxyAgent)?r.interceptors.ProxyAgent:[];this[R]=r.requestTls;this[N]=r.proxyTls;this[v]=r.headers||{};this[D]=s;if(r.auth&&r.token){throw new b("opts.auth cannot be used in combination with opts.token")}else if(r.auth){this[v]["proxy-authorization"]=`Basic ${r.auth}`}else if(r.token){this[v]["proxy-authorization"]=r.token}else if(I&&T){this[v]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(T)}`).toString("base64")}`}const _=B({...r.proxyTls});this[x]=B({...r.requestTls});const P=r.factory||defaultAgentFactory;const factory=(r,n)=>{const{protocol:s}=new p(r);if(!this[D]&&s==="http:"&&this[a].protocol==="http:"){return new Http1ProxyWrapper(this[a].uri,{headers:this[v],connect:_,factory:P})}return P(r,n)};this[Q]=n(l,{connect:_});this[S]=new f({...r,factory:factory,connect:async(r,n)=>{let s=r.host;if(!r.port){s+=`:${defaultProtocolPort(r.protocol)}`}try{const{socket:a,statusCode:l}=await this[Q].connect({origin:d,port:g,path:s,signal:r.signal,headers:{...this[v],host:r.host},servername:this[N]?.servername||k});if(l!==200){a.on("error",noop).destroy();n(new C(`Proxy response (${l}) !== 200 when HTTP Tunneling`))}if(r.protocol!=="https:"){n(null,a);return}let u;if(this[R]){u=this[R].servername}else{u=r.servername}this[x]({...r,servername:u,httpSocket:a},n)}catch(r){if(r.code==="ERR_TLS_CERT_ALTNAME_INVALID"){n(new w(r))}else{n(r)}}}})}dispatch(r,n){const s=buildHeaders(r.headers);throwIfProxyAuthIsSent(s);if(s&&!("host"in s)&&!("Host"in s)){const{host:n}=new p(r.origin);s.host=n}return this[S].dispatch({...r,headers:s},n)}#d(r){if(typeof r==="string"){return new p(r)}else if(r instanceof p){return r}else{return new p(r.uri)}}async[l](){await this[S].close();await this[Q].close()}async[u](){await this[S].destroy();await this[Q].destroy()}}function buildHeaders(r){if(Array.isArray(r)){const n={};for(let s=0;sr.toLowerCase()==="proxy-authorization"));if(n){throw new b("Proxy-Authorization should be sent in ProxyAgent constructor")}}r.exports=ProxyAgent},30050:(r,n,s)=>{const a=s(30883);const l=s(17816);class RetryAgent extends a{#A=null;#p=null;constructor(r,n={}){super(n);this.#A=r;this.#p=n}dispatch(r,n){const s=new l({...r,retryOptions:this.#p},{dispatch:this.#A.dispatch.bind(this.#A),handler:n});return this.#A.dispatch(r,s)}close(){return this.#A.close()}destroy(){return this.#A.destroy()}}r.exports=RetryAgent},32581:(r,n,s)=>{const a=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:l}=s(68707);const u=s(57405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new u)}function setGlobalDispatcher(r){if(!r||typeof r.dispatch!=="function"){throw new l("Argument agent must implement Agent")}Object.defineProperty(globalThis,a,{value:r,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[a]}r.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},58155:r=>{r.exports=class DecoratorHandler{#f;constructor(r){if(typeof r!=="object"||r===null){throw new TypeError("handler must be an object")}this.#f=r}onConnect(...r){return this.#f.onConnect?.(...r)}onError(...r){return this.#f.onError?.(...r)}onUpgrade(...r){return this.#f.onUpgrade?.(...r)}onResponseStarted(...r){return this.#f.onResponseStarted?.(...r)}onHeaders(...r){return this.#f.onHeaders?.(...r)}onData(...r){return this.#f.onData?.(...r)}onComplete(...r){return this.#f.onComplete?.(...r)}onBodySent(...r){return this.#f.onBodySent?.(...r)}}},8754:(r,n,s)=>{const a=s(3440);const{kBodyUsed:l}=s(36443);const u=s(34589);const{InvalidArgumentError:d}=s(68707);const A=s(78474);const p=[300,301,302,303,307,308];const f=Symbol("body");class BodyAsyncIterable{constructor(r){this[f]=r;this[l]=false}async*[Symbol.asyncIterator](){u(!this[l],"disturbed");this[l]=true;yield*this[f]}}class RedirectHandler{constructor(r,n,s,p){if(n!=null&&(!Number.isInteger(n)||n<0)){throw new d("maxRedirections must be a positive number")}a.validateHandler(p,s.method,s.upgrade);this.dispatch=r;this.location=null;this.abort=null;this.opts={...s,maxRedirections:0};this.maxRedirections=n;this.handler=p;this.history=[];this.redirectionLimitReached=false;if(a.isStream(this.opts.body)){if(a.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){u(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[l]=false;A.prototype.on.call(this.opts.body,"data",(function(){this[l]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&a.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(r){this.abort=r;this.handler.onConnect(r,{history:this.history})}onUpgrade(r,n,s){this.handler.onUpgrade(r,n,s)}onError(r){this.handler.onError(r)}onHeaders(r,n,s,l){this.location=this.history.length>=this.maxRedirections||a.isDisturbed(this.opts.body)?null:parseLocation(r,n);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(r,n,s,l)}const{origin:u,pathname:d,search:A}=a.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const p=A?`${d}${A}`:d;this.opts.headers=cleanRequestHeaders(this.opts.headers,r===303,this.opts.origin!==u);this.opts.path=p;this.opts.origin=u;this.opts.maxRedirections=0;this.opts.query=null;if(r===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(r){if(this.location){}else{return this.handler.onData(r)}}onComplete(r){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(r)}}onBodySent(r){if(this.handler.onBodySent){this.handler.onBodySent(r)}}}function parseLocation(r,n){if(p.indexOf(r)===-1){return null}for(let r=0;r{const a=s(34589);const{kRetryHandlerDefaultRetry:l}=s(36443);const{RequestRetryError:u}=s(68707);const{isDisturbed:d,parseHeaders:A,parseRangeHeader:p,wrapRequestBody:f}=s(3440);function calculateRetryAfterHeader(r){const n=Date.now();return new Date(r).getTime()-n}class RetryHandler{constructor(r,n){const{retryOptions:s,...a}=r;const{retry:u,maxRetries:d,maxTimeout:A,minTimeout:p,timeoutFactor:g,methods:y,errorCodes:b,retryAfter:C,statusCodes:w}=s??{};this.dispatch=n.dispatch;this.handler=n.handler;this.opts={...a,body:f(r.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:u??RetryHandler[l],retryAfter:C??true,maxTimeout:A??30*1e3,minTimeout:p??500,timeoutFactor:g??2,maxRetries:d??5,methods:y??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:w??[500,502,503,504,429],errorCodes:b??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((r=>{this.aborted=true;if(this.abort){this.abort(r)}else{this.reason=r}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(r,n,s){if(this.handler.onUpgrade){this.handler.onUpgrade(r,n,s)}}onConnect(r){if(this.aborted){r(this.reason)}else{this.abort=r}}onBodySent(r){if(this.handler.onBodySent)return this.handler.onBodySent(r)}static[l](r,{state:n,opts:s},a){const{statusCode:l,code:u,headers:d}=r;const{method:A,retryOptions:p}=s;const{maxRetries:f,minTimeout:g,maxTimeout:y,timeoutFactor:b,statusCodes:C,errorCodes:w,methods:B}=p;const{counter:I}=n;if(u&&u!=="UND_ERR_REQ_RETRY"&&!w.includes(u)){a(r);return}if(Array.isArray(B)&&!B.includes(A)){a(r);return}if(l!=null&&Array.isArray(C)&&!C.includes(l)){a(r);return}if(I>f){a(r);return}let S=d?.["retry-after"];if(S){S=Number(S);S=Number.isNaN(S)?calculateRetryAfterHeader(S):S*1e3}const Q=S>0?Math.min(S,y):Math.min(g*b**(I-1),y);setTimeout((()=>a(null)),Q)}onHeaders(r,n,s,l){const d=A(n);this.retryCount+=1;if(r>=300){if(this.retryOpts.statusCodes.includes(r)===false){return this.handler.onHeaders(r,n,s,l)}else{this.abort(new u("Request failed",r,{headers:d,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(r!==206&&(this.start>0||r!==200)){this.abort(new u("server does not support the range header and the payload was partially consumed",r,{headers:d,data:{count:this.retryCount}}));return false}const n=p(d["content-range"]);if(!n){this.abort(new u("Content-Range mismatch",r,{headers:d,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==d.etag){this.abort(new u("ETag mismatch",r,{headers:d,data:{count:this.retryCount}}));return false}const{start:l,size:A,end:f=A-1}=n;a(this.start===l,"content-range mismatch");a(this.end==null||this.end===f,"content-range mismatch");this.resume=s;return true}if(this.end==null){if(r===206){const u=p(d["content-range"]);if(u==null){return this.handler.onHeaders(r,n,s,l)}const{start:A,size:f,end:g=f-1}=u;a(A!=null&&Number.isFinite(A),"content-range mismatch");a(g!=null&&Number.isFinite(g),"invalid content-length");this.start=A;this.end=g}if(this.end==null){const r=d["content-length"];this.end=r!=null?Number(r)-1:null}a(Number.isFinite(this.start));a(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=s;this.etag=d.etag!=null?d.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(r,n,s,l)}const f=new u("Request failed",r,{headers:d,data:{count:this.retryCount}});this.abort(f);return false}onData(r){this.start+=r.length;return this.handler.onData(r)}onComplete(r){this.retryCount=0;return this.handler.onComplete(r)}onError(r){if(this.aborted||d(this.opts.body)){return this.handler.onError(r)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(r,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(r){if(r!=null||this.aborted||d(this.opts.body)){return this.handler.onError(r)}if(this.start!==0){const r={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){r["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...r}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(r){this.handler.onError(r)}}}}r.exports=RetryHandler},70379:(r,n,s)=>{const{isIP:a}=s(77030);const{lookup:l}=s(40610);const u=s(58155);const{InvalidArgumentError:d,InformationalError:A}=s(68707);const p=Math.pow(2,31)-1;class DNSInstance{#h=0;#m=0;#g=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(r){this.#h=r.maxTTL;this.#m=r.maxItems;this.dualStack=r.dualStack;this.affinity=r.affinity;this.lookup=r.lookup??this.#y;this.pick=r.pick??this.#E}get full(){return this.#g.size===this.#m}runLookup(r,n,s){const a=this.#g.get(r.hostname);if(a==null&&this.full){s(null,r.origin);return}const l={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...n.dns,maxTTL:this.#h,maxItems:this.#m};if(a==null){this.lookup(r,l,((n,a)=>{if(n||a==null||a.length===0){s(n??new A("No DNS entries found"));return}this.setRecords(r,a);const u=this.#g.get(r.hostname);const d=this.pick(r,u,l.affinity);let p;if(typeof d.port==="number"){p=`:${d.port}`}else if(r.port!==""){p=`:${r.port}`}else{p=""}s(null,`${r.protocol}//${d.family===6?`[${d.address}]`:d.address}${p}`)}))}else{const u=this.pick(r,a,l.affinity);if(u==null){this.#g.delete(r.hostname);this.runLookup(r,n,s);return}let d;if(typeof u.port==="number"){d=`:${u.port}`}else if(r.port!==""){d=`:${r.port}`}else{d=""}s(null,`${r.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)}}#y(r,n,s){l(r.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((r,n)=>{if(r){return s(r)}const a=new Map;for(const r of n){a.set(`${r.address}:${r.family}`,r)}s(null,a.values())}))}#E(r,n,s){let a=null;const{records:l,offset:u}=n;let d;if(this.dualStack){if(s==null){if(u==null||u===p){n.offset=0;s=4}else{n.offset++;s=(n.offset&1)===1?6:4}}if(l[s]!=null&&l[s].ips.length>0){d=l[s]}else{d=l[s===4?6:4]}}else{d=l[s]}if(d==null||d.ips.length===0){return a}if(d.offset==null||d.offset===p){d.offset=0}else{d.offset++}const A=d.offset%d.ips.length;a=d.ips[A]??null;if(a==null){return a}if(Date.now()-a.timestamp>a.ttl){d.ips.splice(A,1);return this.pick(r,n,s)}return a}setRecords(r,n){const s=Date.now();const a={records:{4:null,6:null}};for(const r of n){r.timestamp=s;if(typeof r.ttl==="number"){r.ttl=Math.min(r.ttl,this.#h)}else{r.ttl=this.#h}const n=a.records[r.family]??{ips:[]};n.ips.push(r);a.records[r.family]=n}this.#g.set(r.hostname,a)}getHandler(r,n){return new DNSDispatchHandler(this,r,n)}}class DNSDispatchHandler extends u{#b=null;#s=null;#t=null;#f=null;#C=null;constructor(r,{origin:n,handler:s,dispatch:a},l){super(s);this.#C=n;this.#f=s;this.#s={...l};this.#b=r;this.#t=a}onError(r){switch(r.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#b.dualStack){this.#b.runLookup(this.#C,this.#s,((r,n)=>{if(r){return this.#f.onError(r)}const s={...this.#s,origin:n};this.#t(s,this)}));return}this.#f.onError(r);return}case"ENOTFOUND":this.#b.deleteRecord(this.#C);default:this.#f.onError(r);break}}}r.exports=r=>{if(r?.maxTTL!=null&&(typeof r?.maxTTL!=="number"||r?.maxTTL<0)){throw new d("Invalid maxTTL. Must be a positive number")}if(r?.maxItems!=null&&(typeof r?.maxItems!=="number"||r?.maxItems<1)){throw new d("Invalid maxItems. Must be a positive number and greater than zero")}if(r?.affinity!=null&&r?.affinity!==4&&r?.affinity!==6){throw new d("Invalid affinity. Must be either 4 or 6")}if(r?.dualStack!=null&&typeof r?.dualStack!=="boolean"){throw new d("Invalid dualStack. Must be a boolean")}if(r?.lookup!=null&&typeof r?.lookup!=="function"){throw new d("Invalid lookup. Must be a function")}if(r?.pick!=null&&typeof r?.pick!=="function"){throw new d("Invalid pick. Must be a function")}const n=r?.dualStack??true;let s;if(n){s=r?.affinity??null}else{s=r?.affinity??4}const l={maxTTL:r?.maxTTL??1e4,lookup:r?.lookup??null,pick:r?.pick??null,dualStack:n,affinity:s,maxItems:r?.maxItems??Infinity};const u=new DNSInstance(l);return r=>function dnsInterceptor(n,s){const l=n.origin.constructor===URL?n.origin:new URL(n.origin);if(a(l.hostname)!==0){return r(n,s)}u.runLookup(l,n,((a,d)=>{if(a){return s.onError(a)}let A=null;A={...n,servername:l.hostname,origin:d,headers:{host:l.hostname,...n.headers}};r(A,u.getHandler({origin:l,dispatch:r,handler:s},n))}));return true}}},88060:(r,n,s)=>{const a=s(3440);const{InvalidArgumentError:l,RequestAbortedError:u}=s(68707);const d=s(58155);class DumpHandler extends d{#w=1024*1024;#B=null;#I=false;#S=false;#Q=0;#v=null;#f=null;constructor({maxSize:r},n){super(n);if(r!=null&&(!Number.isFinite(r)||r<1)){throw new l("maxSize must be a number greater than 0")}this.#w=r??this.#w;this.#f=n}onConnect(r){this.#B=r;this.#f.onConnect(this.#R.bind(this))}#R(r){this.#S=true;this.#v=r}onHeaders(r,n,s,l){const d=a.parseHeaders(n);const A=d["content-length"];if(A!=null&&A>this.#w){throw new u(`Response size (${A}) larger than maxSize (${this.#w})`)}if(this.#S){return true}return this.#f.onHeaders(r,n,s,l)}onError(r){if(this.#I){return}r=this.#v??r;this.#f.onError(r)}onData(r){this.#Q=this.#Q+r.length;if(this.#Q>=this.#w){this.#I=true;if(this.#S){this.#f.onError(this.#v)}else{this.#f.onComplete([])}}return true}onComplete(r){if(this.#I){return}if(this.#S){this.#f.onError(this.reason);return}this.#f.onComplete(r)}}function createDumpInterceptor({maxSize:r}={maxSize:1024*1024}){return n=>function Intercept(s,a){const{dumpMaxSize:l=r}=s;const u=new DumpHandler({maxSize:l},a);return n(s,u)}}r.exports=createDumpInterceptor},25092:(r,n,s)=>{const a=s(8754);function createRedirectInterceptor({maxRedirections:r}){return n=>function Intercept(s,l){const{maxRedirections:u=r}=s;if(!u){return n(s,l)}const d=new a(n,u,s,l);s={...s,maxRedirections:0};return n(s,d)}}r.exports=createRedirectInterceptor},21514:(r,n,s)=>{const a=s(8754);r.exports=r=>{const n=r?.maxRedirections;return r=>function redirectInterceptor(s,l){const{maxRedirections:u=n,...d}=s;if(!u){return r(s,l)}const A=new a(r,u,s,l);return r(d,A)}}},92026:(r,n,s)=>{const a=s(17816);r.exports=r=>n=>function retryInterceptor(s,l){return n(s,new a({...s,retryOptions:{...r,...s.retryOptions}},{handler:l,dispatch:n}))}},52824:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.SPECIAL_HEADERS=n.HEADER_STATE=n.MINOR=n.MAJOR=n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS=n.TOKEN=n.STRICT_TOKEN=n.HEX=n.URL_CHAR=n.STRICT_URL_CHAR=n.USERINFO_CHARS=n.MARK=n.ALPHANUM=n.NUM=n.HEX_MAP=n.NUM_MAP=n.ALPHA=n.FINISH=n.H_METHOD_MAP=n.METHOD_MAP=n.METHODS_RTSP=n.METHODS_ICE=n.METHODS_HTTP=n.METHODS=n.LENIENT_FLAGS=n.FLAGS=n.TYPE=n.ERROR=void 0;const a=s(50172);var l;(function(r){r[r["OK"]=0]="OK";r[r["INTERNAL"]=1]="INTERNAL";r[r["STRICT"]=2]="STRICT";r[r["LF_EXPECTED"]=3]="LF_EXPECTED";r[r["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";r[r["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";r[r["INVALID_METHOD"]=6]="INVALID_METHOD";r[r["INVALID_URL"]=7]="INVALID_URL";r[r["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";r[r["INVALID_VERSION"]=9]="INVALID_VERSION";r[r["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";r[r["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";r[r["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";r[r["INVALID_STATUS"]=13]="INVALID_STATUS";r[r["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";r[r["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";r[r["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";r[r["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";r[r["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";r[r["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";r[r["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";r[r["PAUSED"]=21]="PAUSED";r[r["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";r[r["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";r[r["USER"]=24]="USER"})(l=n.ERROR||(n.ERROR={}));var u;(function(r){r[r["BOTH"]=0]="BOTH";r[r["REQUEST"]=1]="REQUEST";r[r["RESPONSE"]=2]="RESPONSE"})(u=n.TYPE||(n.TYPE={}));var d;(function(r){r[r["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";r[r["CHUNKED"]=8]="CHUNKED";r[r["UPGRADE"]=16]="UPGRADE";r[r["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";r[r["SKIPBODY"]=64]="SKIPBODY";r[r["TRAILING"]=128]="TRAILING";r[r["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(d=n.FLAGS||(n.FLAGS={}));var A;(function(r){r[r["HEADERS"]=1]="HEADERS";r[r["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";r[r["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(A=n.LENIENT_FLAGS||(n.LENIENT_FLAGS={}));var p;(function(r){r[r["DELETE"]=0]="DELETE";r[r["GET"]=1]="GET";r[r["HEAD"]=2]="HEAD";r[r["POST"]=3]="POST";r[r["PUT"]=4]="PUT";r[r["CONNECT"]=5]="CONNECT";r[r["OPTIONS"]=6]="OPTIONS";r[r["TRACE"]=7]="TRACE";r[r["COPY"]=8]="COPY";r[r["LOCK"]=9]="LOCK";r[r["MKCOL"]=10]="MKCOL";r[r["MOVE"]=11]="MOVE";r[r["PROPFIND"]=12]="PROPFIND";r[r["PROPPATCH"]=13]="PROPPATCH";r[r["SEARCH"]=14]="SEARCH";r[r["UNLOCK"]=15]="UNLOCK";r[r["BIND"]=16]="BIND";r[r["REBIND"]=17]="REBIND";r[r["UNBIND"]=18]="UNBIND";r[r["ACL"]=19]="ACL";r[r["REPORT"]=20]="REPORT";r[r["MKACTIVITY"]=21]="MKACTIVITY";r[r["CHECKOUT"]=22]="CHECKOUT";r[r["MERGE"]=23]="MERGE";r[r["M-SEARCH"]=24]="M-SEARCH";r[r["NOTIFY"]=25]="NOTIFY";r[r["SUBSCRIBE"]=26]="SUBSCRIBE";r[r["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";r[r["PATCH"]=28]="PATCH";r[r["PURGE"]=29]="PURGE";r[r["MKCALENDAR"]=30]="MKCALENDAR";r[r["LINK"]=31]="LINK";r[r["UNLINK"]=32]="UNLINK";r[r["SOURCE"]=33]="SOURCE";r[r["PRI"]=34]="PRI";r[r["DESCRIBE"]=35]="DESCRIBE";r[r["ANNOUNCE"]=36]="ANNOUNCE";r[r["SETUP"]=37]="SETUP";r[r["PLAY"]=38]="PLAY";r[r["PAUSE"]=39]="PAUSE";r[r["TEARDOWN"]=40]="TEARDOWN";r[r["GET_PARAMETER"]=41]="GET_PARAMETER";r[r["SET_PARAMETER"]=42]="SET_PARAMETER";r[r["REDIRECT"]=43]="REDIRECT";r[r["RECORD"]=44]="RECORD";r[r["FLUSH"]=45]="FLUSH"})(p=n.METHODS||(n.METHODS={}));n.METHODS_HTTP=[p.DELETE,p.GET,p.HEAD,p.POST,p.PUT,p.CONNECT,p.OPTIONS,p.TRACE,p.COPY,p.LOCK,p.MKCOL,p.MOVE,p.PROPFIND,p.PROPPATCH,p.SEARCH,p.UNLOCK,p.BIND,p.REBIND,p.UNBIND,p.ACL,p.REPORT,p.MKACTIVITY,p.CHECKOUT,p.MERGE,p["M-SEARCH"],p.NOTIFY,p.SUBSCRIBE,p.UNSUBSCRIBE,p.PATCH,p.PURGE,p.MKCALENDAR,p.LINK,p.UNLINK,p.PRI,p.SOURCE];n.METHODS_ICE=[p.SOURCE];n.METHODS_RTSP=[p.OPTIONS,p.DESCRIBE,p.ANNOUNCE,p.SETUP,p.PLAY,p.PAUSE,p.TEARDOWN,p.GET_PARAMETER,p.SET_PARAMETER,p.REDIRECT,p.RECORD,p.FLUSH,p.GET,p.POST];n.METHOD_MAP=a.enumToMap(p);n.H_METHOD_MAP={};Object.keys(n.METHOD_MAP).forEach((r=>{if(/^H/.test(r)){n.H_METHOD_MAP[r]=n.METHOD_MAP[r]}}));var f;(function(r){r[r["SAFE"]=0]="SAFE";r[r["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";r[r["UNSAFE"]=2]="UNSAFE"})(f=n.FINISH||(n.FINISH={}));n.ALPHA=[];for(let r="A".charCodeAt(0);r<="Z".charCodeAt(0);r++){n.ALPHA.push(String.fromCharCode(r));n.ALPHA.push(String.fromCharCode(r+32))}n.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};n.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};n.NUM=["0","1","2","3","4","5","6","7","8","9"];n.ALPHANUM=n.ALPHA.concat(n.NUM);n.MARK=["-","_",".","!","~","*","'","(",")"];n.USERINFO_CHARS=n.ALPHANUM.concat(n.MARK).concat(["%",";",":","&","=","+","$",","]);n.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(n.ALPHANUM);n.URL_CHAR=n.STRICT_URL_CHAR.concat(["\t","\f"]);for(let r=128;r<=255;r++){n.URL_CHAR.push(r)}n.HEX=n.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);n.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(n.ALPHANUM);n.TOKEN=n.STRICT_TOKEN.concat([" "]);n.HEADER_CHARS=["\t"];for(let r=32;r<=255;r++){if(r!==127){n.HEADER_CHARS.push(r)}}n.CONNECTION_TOKEN_CHARS=n.HEADER_CHARS.filter((r=>r!==44));n.MAJOR=n.NUM_MAP;n.MINOR=n.MAJOR;var g;(function(r){r[r["GENERAL"]=0]="GENERAL";r[r["CONNECTION"]=1]="CONNECTION";r[r["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";r[r["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";r[r["UPGRADE"]=4]="UPGRADE";r[r["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";r[r["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";r[r["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";r[r["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(g=n.HEADER_STATE||(n.HEADER_STATE={}));n.SPECIAL_HEADERS={connection:g.CONNECTION,"content-length":g.CONTENT_LENGTH,"proxy-connection":g.CONNECTION,"transfer-encoding":g.TRANSFER_ENCODING,upgrade:g.UPGRADE}},63870:(r,n,s)=>{const{Buffer:a}=s(4573);r.exports=a.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNld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FDQAgAEEUaiACNgIAIAIgADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAA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MGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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gtBowEMIQtBpAEMIAtBpQEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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bwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyb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EH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},50172:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.enumToMap=void 0;function enumToMap(r){const n={};Object.keys(r).forEach((s=>{const a=r[s];if(typeof a==="number"){n[s]=a}}));return n}n.enumToMap=enumToMap},47501:(r,n,s)=>{const{kClients:a}=s(36443);const l=s(57405);const{kAgent:u,kMockAgentSet:d,kMockAgentGet:A,kDispatches:p,kIsMockActive:f,kNetConnect:g,kGetNetConnect:y,kOptions:b,kFactory:C}=s(91117);const w=s(47365);const B=s(94004);const{matchValue:I,buildMockOptions:S}=s(53397);const{InvalidArgumentError:Q,UndiciError:v}=s(68707);const R=s(30883);const N=s(91529);const x=s(56142);class MockAgent extends R{constructor(r){super(r);this[g]=true;this[f]=true;if(r?.agent&&typeof r.agent.dispatch!=="function"){throw new Q("Argument opts.agent must implement Agent")}const n=r?.agent?r.agent:new l(r);this[u]=n;this[a]=n[a];this[b]=S(r)}get(r){let n=this[A](r);if(!n){n=this[C](r);this[d](r,n)}return n}dispatch(r,n){this.get(r.origin);return this[u].dispatch(r,n)}async close(){await this[u].close();this[a].clear()}deactivate(){this[f]=false}activate(){this[f]=true}enableNetConnect(r){if(typeof r==="string"||typeof r==="function"||r instanceof RegExp){if(Array.isArray(this[g])){this[g].push(r)}else{this[g]=[r]}}else if(typeof r==="undefined"){this[g]=true}else{throw new Q("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[g]=false}get isMockActive(){return this[f]}[d](r,n){this[a].set(r,n)}[C](r){const n=Object.assign({agent:this},this[b]);return this[b]&&this[b].connections===1?new w(r,n):new B(r,n)}[A](r){const n=this[a].get(r);if(n){return n}if(typeof r!=="string"){const n=this[C]("http://localhost:9999");this[d](r,n);return n}for(const[n,s]of Array.from(this[a])){if(s&&typeof n!=="string"&&I(n,r)){const n=this[C](r);this[d](r,n);n[p]=s[p];return n}}}[y](){return this[g]}pendingInterceptors(){const r=this[a];return Array.from(r.entries()).flatMap((([r,n])=>n[p].map((n=>({...n,origin:r}))))).filter((({pending:r})=>r))}assertNoPendingInterceptors({pendingInterceptorsFormatter:r=new x}={}){const n=this.pendingInterceptors();if(n.length===0){return}const s=new N("interceptor","interceptors").pluralize(n.length);throw new v(`\n${s.count} ${s.noun} ${s.is} pending:\n\n${r.format(n)}\n`.trim())}}r.exports=MockAgent},47365:(r,n,s)=>{const{promisify:a}=s(57975);const l=s(23701);const{buildMockDispatch:u}=s(53397);const{kDispatches:d,kMockAgent:A,kClose:p,kOriginalClose:f,kOrigin:g,kOriginalDispatch:y,kConnected:b}=s(91117);const{MockInterceptor:C}=s(31511);const w=s(36443);const{InvalidArgumentError:B}=s(68707);class MockClient extends l{constructor(r,n){super(r,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[A]=n.agent;this[g]=r;this[d]=[];this[b]=1;this[y]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=u.call(this);this.close=this[p]}get[w.kConnected](){return this[b]}intercept(r){return new C(r,this[d])}async[p](){await a(this[f])();this[b]=0;this[A][w.kClients].delete(this[g])}}r.exports=MockClient},52429:(r,n,s)=>{const{UndiciError:a}=s(68707);const l=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends a{constructor(r){super(r);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=r||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](r){return r&&r[l]===true}[l]=true}r.exports={MockNotMatchedError:MockNotMatchedError}},31511:(r,n,s)=>{const{getResponseData:a,buildKey:l,addMockDispatch:u}=s(53397);const{kDispatches:d,kDispatchKey:A,kDefaultHeaders:p,kDefaultTrailers:f,kContentLength:g,kMockDispatch:y}=s(91117);const{InvalidArgumentError:b}=s(68707);const{buildURL:C}=s(3440);class MockScope{constructor(r){this[y]=r}delay(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new b("waitInMs must be a valid integer > 0")}this[y].delay=r;return this}persist(){this[y].persist=true;return this}times(r){if(typeof r!=="number"||!Number.isInteger(r)||r<=0){throw new b("repeatTimes must be a valid integer > 0")}this[y].times=r;return this}}class MockInterceptor{constructor(r,n){if(typeof r!=="object"){throw new b("opts must be an object")}if(typeof r.path==="undefined"){throw new b("opts.path must be defined")}if(typeof r.method==="undefined"){r.method="GET"}if(typeof r.path==="string"){if(r.query){r.path=C(r.path,r.query)}else{const n=new URL(r.path,"data://");r.path=n.pathname+n.search}}if(typeof r.method==="string"){r.method=r.method.toUpperCase()}this[A]=l(r);this[d]=n;this[p]={};this[f]={};this[g]=false}createMockScopeDispatchData({statusCode:r,data:n,responseOptions:s}){const l=a(n);const u=this[g]?{"content-length":l.length}:{};const d={...this[p],...u,...s.headers};const A={...this[f],...s.trailers};return{statusCode:r,data:n,headers:d,trailers:A}}validateReplyParameters(r){if(typeof r.statusCode==="undefined"){throw new b("statusCode must be defined")}if(typeof r.responseOptions!=="object"||r.responseOptions===null){throw new b("responseOptions must be an object")}}reply(r){if(typeof r==="function"){const wrappedDefaultsCallback=n=>{const s=r(n);if(typeof s!=="object"||s===null){throw new b("reply options callback must return an object")}const a={data:"",responseOptions:{},...s};this.validateReplyParameters(a);return{...this.createMockScopeDispatchData(a)}};const n=u(this[d],this[A],wrappedDefaultsCallback);return new MockScope(n)}const n={statusCode:r,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(n);const s=this.createMockScopeDispatchData(n);const a=u(this[d],this[A],s);return new MockScope(a)}replyWithError(r){if(typeof r==="undefined"){throw new b("error must be defined")}const n=u(this[d],this[A],{error:r});return new MockScope(n)}defaultReplyHeaders(r){if(typeof r==="undefined"){throw new b("headers must be defined")}this[p]=r;return this}defaultReplyTrailers(r){if(typeof r==="undefined"){throw new b("trailers must be defined")}this[f]=r;return this}replyContentLength(){this[g]=true;return this}}r.exports.MockInterceptor=MockInterceptor;r.exports.MockScope=MockScope},94004:(r,n,s)=>{const{promisify:a}=s(57975);const l=s(30628);const{buildMockDispatch:u}=s(53397);const{kDispatches:d,kMockAgent:A,kClose:p,kOriginalClose:f,kOrigin:g,kOriginalDispatch:y,kConnected:b}=s(91117);const{MockInterceptor:C}=s(31511);const w=s(36443);const{InvalidArgumentError:B}=s(68707);class MockPool extends l{constructor(r,n){super(r,n);if(!n||!n.agent||typeof n.agent.dispatch!=="function"){throw new B("Argument opts.agent must implement Agent")}this[A]=n.agent;this[g]=r;this[d]=[];this[b]=1;this[y]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=u.call(this);this.close=this[p]}get[w.kConnected](){return this[b]}intercept(r){return new C(r,this[d])}async[p](){await a(this[f])();this[b]=0;this[A][w.kClients].delete(this[g])}}r.exports=MockPool},91117:r=>{r.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},53397:(r,n,s)=>{const{MockNotMatchedError:a}=s(52429);const{kDispatches:l,kMockAgent:u,kOriginalDispatch:d,kOrigin:A,kGetNetConnect:p}=s(91117);const{buildURL:f}=s(3440);const{STATUS_CODES:g}=s(37067);const{types:{isPromise:y}}=s(57975);function matchValue(r,n){if(typeof r==="string"){return r===n}if(r instanceof RegExp){return r.test(n)}if(typeof r==="function"){return r(n)===true}return false}function lowerCaseEntries(r){return Object.fromEntries(Object.entries(r).map((([r,n])=>[r.toLocaleLowerCase(),n])))}function getHeaderByName(r,n){if(Array.isArray(r)){for(let s=0;s!r)).filter((({path:r})=>matchValue(safeUrl(r),l)));if(u.length===0){throw new a(`Mock dispatch not matched for path '${l}'`)}u=u.filter((({method:r})=>matchValue(r,n.method)));if(u.length===0){throw new a(`Mock dispatch not matched for method '${n.method}' on path '${l}'`)}u=u.filter((({body:r})=>typeof r!=="undefined"?matchValue(r,n.body):true));if(u.length===0){throw new a(`Mock dispatch not matched for body '${n.body}' on path '${l}'`)}u=u.filter((r=>matchHeaders(r,n.headers)));if(u.length===0){const r=typeof n.headers==="object"?JSON.stringify(n.headers):n.headers;throw new a(`Mock dispatch not matched for headers '${r}' on path '${l}'`)}return u[0]}function addMockDispatch(r,n,s){const a={timesInvoked:0,times:1,persist:false,consumed:false};const l=typeof s==="function"?{callback:s}:{...s};const u={...a,...n,pending:true,data:{error:null,...l}};r.push(u);return u}function deleteMockDispatch(r,n){const s=r.findIndex((r=>{if(!r.consumed){return false}return matchKey(r,n)}));if(s!==-1){r.splice(s,1)}}function buildKey(r){const{path:n,method:s,body:a,headers:l,query:u}=r;return{path:n,method:s,body:a,headers:l,query:u}}function generateKeyValues(r){const n=Object.keys(r);const s=[];for(let a=0;a=w;a.pending=C0){setTimeout((()=>{handleReply(this[l])}),g)}else{handleReply(this[l])}function handleReply(a,l=d){const f=Array.isArray(r.headers)?buildHeadersFromArray(r.headers):r.headers;const g=typeof l==="function"?l({...r,headers:f}):l;if(y(g)){g.then((r=>handleReply(a,r)));return}const b=getResponseData(g);const C=generateKeyValues(A);const w=generateKeyValues(p);n.onConnect?.((r=>n.onError(r)),null);n.onHeaders?.(u,C,resume,getStatusText(u));n.onData?.(Buffer.from(b));n.onComplete?.(w);deleteMockDispatch(a,s)}function resume(){}return true}function buildMockDispatch(){const r=this[u];const n=this[A];const s=this[d];return function dispatch(l,u){if(r.isMockActive){try{mockDispatch.call(this,l,u)}catch(d){if(d instanceof a){const A=r[p]();if(A===false){throw new a(`${d.message}: subsequent request to origin ${n} was not allowed (net.connect disabled)`)}if(checkNetConnect(A,n)){s.call(this,l,u)}else{throw new a(`${d.message}: subsequent request to origin ${n} was not allowed (net.connect is not enabled for this origin)`)}}else{throw d}}}else{s.call(this,l,u)}}}function checkNetConnect(r,n){const s=new URL(n);if(r===true){return true}else if(Array.isArray(r)&&r.some((r=>matchValue(r,s.host)))){return true}return false}function buildMockOptions(r){if(r){const{agent:n,...s}=r;return s}}r.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},56142:(r,n,s)=>{const{Transform:a}=s(57075);const{Console:l}=s(37540);const u=process.versions.icu?"✅":"Y ";const d=process.versions.icu?"❌":"N ";r.exports=class PendingInterceptorsFormatter{constructor({disableColors:r}={}){this.transform=new a({transform(r,n,s){s(null,r)}});this.logger=new l({stdout:this.transform,inspectOptions:{colors:!r&&!process.env.CI}})}format(r){const n=r.map((({method:r,path:n,data:{statusCode:s},persist:a,times:l,timesInvoked:A,origin:p})=>({Method:r,Origin:p,Path:n,"Status code":s,Persistent:a?u:d,Invocations:A,Remaining:a?Infinity:l-A})));this.logger.table(n);return this.transform.read().toString()}}},91529:r=>{const n={pronoun:"it",is:"is",was:"was",this:"this"};const s={pronoun:"they",is:"are",was:"were",this:"these"};r.exports=class Pluralizer{constructor(r,n){this.singular=r;this.plural=n}pluralize(r){const a=r===1;const l=a?n:s;const u=a?this.singular:this.plural;return{...l,count:r,noun:u}}}},96603:r=>{let n=0;const s=1e3;const a=(s>>1)-1;let l;const u=Symbol("kFastTimer");const d=[];const A=-2;const p=-1;const f=0;const g=1;function onTick(){n+=a;let r=0;let s=d.length;while(r=l._idleStart+l._idleTimeout){l._state=p;l._idleStart=-1;l._onTimeout(l._timerArg)}if(l._state===p){l._state=A;if(--s!==0){d[r]=d[s]}}else{++r}}d.length=s;if(d.length!==0){refreshTimeout()}}function refreshTimeout(){if(l){l.refresh()}else{clearTimeout(l);l=setTimeout(onTick,a);if(l.unref){l.unref()}}}class FastTimer{[u]=true;_state=A;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(r,n,s){this._onTimeout=r;this._idleTimeout=n;this._timerArg=s;this.refresh()}refresh(){if(this._state===A){d.push(this)}if(!l||d.length===1){refreshTimeout()}this._state=f}clear(){this._state=p;this._idleStart=-1}}r.exports={setTimeout(r,n,a){return n<=s?setTimeout(r,n,a):new FastTimer(r,n,a)},clearTimeout(r){if(r[u]){r.clear()}else{clearTimeout(r)}},setFastTimeout(r,n,s){return new FastTimer(r,n,s)},clearFastTimeout(r){r.clear()},now(){return n},tick(r=0){n+=r-s+1;onTick();onTick()},reset(){n=0;d.length=0;clearTimeout(l);l=null},kFastTimer:u}},89634:(r,n,s)=>{const{kConstruct:a}=s(20109);const{urlEquals:l,getFieldValues:u}=s(76798);const{kEnumerableProperty:d,isDisturbed:A}=s(3440);const{webidl:p}=s(45893);const{Response:f,cloneResponse:g,fromInnerResponse:y}=s(99051);const{Request:b,fromInnerRequest:C}=s(9967);const{kState:w}=s(93627);const{fetching:B}=s(54398);const{urlIsHttpHttpsScheme:I,createDeferredPromise:S,readAllBytes:Q}=s(73168);const v=s(34589);class Cache{#N;constructor(){if(arguments[0]!==a){p.illegalConstructor()}p.util.markAsUncloneable(this);this.#N=arguments[1]}async match(r,n={}){p.brandCheck(this,Cache);const s="Cache.match";p.argumentLengthCheck(arguments,1,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");const a=this.#x(r,n,1);if(a.length===0){return}return a[0]}async matchAll(r=undefined,n={}){p.brandCheck(this,Cache);const s="Cache.matchAll";if(r!==undefined)r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");return this.#x(r,n)}async add(r){p.brandCheck(this,Cache);const n="Cache.add";p.argumentLengthCheck(arguments,1,n);r=p.converters.RequestInfo(r,n,"request");const s=[r];const a=this.addAll(s);return await a}async addAll(r){p.brandCheck(this,Cache);const n="Cache.addAll";p.argumentLengthCheck(arguments,1,n);const s=[];const a=[];for(let s of r){if(s===undefined){throw p.errors.conversionFailed({prefix:n,argument:"Argument 1",types:["undefined is not allowed"]})}s=p.converters.RequestInfo(s);if(typeof s==="string"){continue}const r=s[w];if(!I(r.url)||r.method!=="GET"){throw p.errors.exception({header:n,message:"Expected http/s scheme when method is not GET."})}}const l=[];for(const d of r){const r=new b(d)[w];if(!I(r.url)){throw p.errors.exception({header:n,message:"Expected http/s scheme."})}r.initiator="fetch";r.destination="subresource";a.push(r);const A=S();l.push(B({request:r,processResponse(r){if(r.type==="error"||r.status===206||r.status<200||r.status>299){A.reject(p.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(r.headersList.contains("vary")){const n=u(r.headersList.get("vary"));for(const r of n){if(r==="*"){A.reject(p.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const r of l){r.abort()}return}}}},processResponseEndOfBody(r){if(r.aborted){A.reject(new DOMException("aborted","AbortError"));return}A.resolve(r)}}));s.push(A.promise)}const d=Promise.all(s);const A=await d;const f=[];let g=0;for(const r of A){const n={type:"put",request:a[g],response:r};f.push(n);g++}const y=S();let C=null;try{this.#D(f)}catch(r){C=r}queueMicrotask((()=>{if(C===null){y.resolve(undefined)}else{y.reject(C)}}));return y.promise}async put(r,n){p.brandCheck(this,Cache);const s="Cache.put";p.argumentLengthCheck(arguments,2,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.Response(n,s,"response");let a=null;if(r instanceof b){a=r[w]}else{a=new b(r)[w]}if(!I(a.url)||a.method!=="GET"){throw p.errors.exception({header:s,message:"Expected an http/s scheme when method is not GET"})}const l=n[w];if(l.status===206){throw p.errors.exception({header:s,message:"Got 206 status"})}if(l.headersList.contains("vary")){const r=u(l.headersList.get("vary"));for(const n of r){if(n==="*"){throw p.errors.exception({header:s,message:"Got * vary field value"})}}}if(l.body&&(A(l.body.stream)||l.body.stream.locked)){throw p.errors.exception({header:s,message:"Response body is locked or disturbed"})}const d=g(l);const f=S();if(l.body!=null){const r=l.body.stream;const n=r.getReader();Q(n).then(f.resolve,f.reject)}else{f.resolve(undefined)}const y=[];const C={type:"put",request:a,response:d};y.push(C);const B=await f.promise;if(d.body!=null){d.body.source=B}const v=S();let R=null;try{this.#D(y)}catch(r){R=r}queueMicrotask((()=>{if(R===null){v.resolve()}else{v.reject(R)}}));return v.promise}async delete(r,n={}){p.brandCheck(this,Cache);const s="Cache.delete";p.argumentLengthCheck(arguments,1,s);r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");let a=null;if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return false}}else{v(typeof r==="string");a=new b(r)[w]}const l=[];const u={type:"delete",request:a,options:n};l.push(u);const d=S();let A=null;let f;try{f=this.#D(l)}catch(r){A=r}queueMicrotask((()=>{if(A===null){d.resolve(!!f?.length)}else{d.reject(A)}}));return d.promise}async keys(r=undefined,n={}){p.brandCheck(this,Cache);const s="Cache.keys";if(r!==undefined)r=p.converters.RequestInfo(r,s,"request");n=p.converters.CacheQueryOptions(n,s,"options");let a=null;if(r!==undefined){if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof r==="string"){a=new b(r)[w]}}const l=S();const u=[];if(r===undefined){for(const r of this.#N){u.push(r[0])}}else{const r=this.#T(a,n);for(const n of r){u.push(n[0])}}queueMicrotask((()=>{const r=[];for(const n of u){const s=C(n,(new AbortController).signal,"immutable");r.push(s)}l.resolve(Object.freeze(r))}));return l.promise}#D(r){const n=this.#N;const s=[...n];const a=[];const l=[];try{for(const s of r){if(s.type!=="delete"&&s.type!=="put"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(s.type==="delete"&&s.response!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#T(s.request,s.options,a).length){throw new DOMException("???","InvalidStateError")}let r;if(s.type==="delete"){r=this.#T(s.request,s.options);if(r.length===0){return[]}for(const s of r){const r=n.indexOf(s);v(r!==-1);n.splice(r,1)}}else if(s.type==="put"){if(s.response==null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const l=s.request;if(!I(l.url)){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(l.method!=="GET"){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(s.options!=null){throw p.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}r=this.#T(s.request);for(const s of r){const r=n.indexOf(s);v(r!==-1);n.splice(r,1)}n.push([s.request,s.response]);a.push([s.request,s.response])}l.push([s.request,s.response])}return l}catch(r){this.#N.length=0;this.#N=s;throw r}}#T(r,n,s){const a=[];const l=s??this.#N;for(const s of l){const[l,u]=s;if(this.#k(r,l,u,n)){a.push(s)}}return a}#k(r,n,s=null,a){const d=new URL(r.url);const A=new URL(n.url);if(a?.ignoreSearch){A.search="";d.search=""}if(!l(d,A,true)){return false}if(s==null||a?.ignoreVary||!s.headersList.contains("vary")){return true}const p=u(s.headersList.get("vary"));for(const s of p){if(s==="*"){return false}const a=n.headersList.get(s);const l=r.headersList.get(s);if(a!==l){return false}}return true}#x(r,n,s=Infinity){let a=null;if(r!==undefined){if(r instanceof b){a=r[w];if(a.method!=="GET"&&!n.ignoreMethod){return[]}}else if(typeof r==="string"){a=new b(r)[w]}}const l=[];if(r===undefined){for(const r of this.#N){l.push(r[1])}}else{const r=this.#T(a,n);for(const n of r){l.push(n[1])}}const u=[];for(const r of l){const n=y(r,"immutable");u.push(n.clone());if(u.length>=s){break}}return Object.freeze(u)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:d,matchAll:d,add:d,addAll:d,put:d,delete:d,keys:d});const R=[{key:"ignoreSearch",converter:p.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:p.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:p.converters.boolean,defaultValue:()=>false}];p.converters.CacheQueryOptions=p.dictionaryConverter(R);p.converters.MultiCacheQueryOptions=p.dictionaryConverter([...R,{key:"cacheName",converter:p.converters.DOMString}]);p.converters.Response=p.interfaceConverter(f);p.converters["sequence"]=p.sequenceConverter(p.converters.RequestInfo);r.exports={Cache:Cache}},3245:(r,n,s)=>{const{kConstruct:a}=s(20109);const{Cache:l}=s(89634);const{webidl:u}=s(45893);const{kEnumerableProperty:d}=s(3440);class CacheStorage{#_=new Map;constructor(){if(arguments[0]!==a){u.illegalConstructor()}u.util.markAsUncloneable(this)}async match(r,n={}){u.brandCheck(this,CacheStorage);u.argumentLengthCheck(arguments,1,"CacheStorage.match");r=u.converters.RequestInfo(r);n=u.converters.MultiCacheQueryOptions(n);if(n.cacheName!=null){if(this.#_.has(n.cacheName)){const s=this.#_.get(n.cacheName);const u=new l(a,s);return await u.match(r,n)}}else{for(const s of this.#_.values()){const u=new l(a,s);const d=await u.match(r,n);if(d!==undefined){return d}}}}async has(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.has";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");return this.#_.has(r)}async open(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.open";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");if(this.#_.has(r)){const n=this.#_.get(r);return new l(a,n)}const s=[];this.#_.set(r,s);return new l(a,s)}async delete(r){u.brandCheck(this,CacheStorage);const n="CacheStorage.delete";u.argumentLengthCheck(arguments,1,n);r=u.converters.DOMString(r,n,"cacheName");return this.#_.delete(r)}async keys(){u.brandCheck(this,CacheStorage);const r=this.#_.keys();return[...r]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:d,has:d,open:d,delete:d,keys:d});r.exports={CacheStorage:CacheStorage}},20109:(r,n,s)=>{r.exports={kConstruct:s(36443).kConstruct}},76798:(r,n,s)=>{const a=s(34589);const{URLSerializer:l}=s(51900);const{isValidHeaderName:u}=s(73168);function urlEquals(r,n,s=false){const a=l(r,s);const u=l(n,s);return a===u}function getFieldValues(r){a(r!==null);const n=[];for(let s of r.split(",")){s=s.trim();if(u(s)){n.push(s)}}return n}r.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},71276:r=>{const n=1024;const s=4096;r.exports={maxAttributeValueSize:n,maxNameValuePairSize:s}},79061:(r,n,s)=>{const{parseSetCookie:a}=s(11978);const{stringify:l}=s(57797);const{webidl:u}=s(45893);const{Headers:d}=s(60660);function getCookies(r){u.argumentLengthCheck(arguments,1,"getCookies");u.brandCheck(r,d,{strict:false});const n=r.get("cookie");const s={};if(!n){return s}for(const r of n.split(";")){const[n,...a]=r.split("=");s[n.trim()]=a.join("=")}return s}function deleteCookie(r,n,s){u.brandCheck(r,d,{strict:false});const a="deleteCookie";u.argumentLengthCheck(arguments,2,a);n=u.converters.DOMString(n,a,"name");s=u.converters.DeleteCookieAttributes(s);setCookie(r,{name:n,value:"",expires:new Date(0),...s})}function getSetCookies(r){u.argumentLengthCheck(arguments,1,"getSetCookies");u.brandCheck(r,d,{strict:false});const n=r.getSetCookie();if(!n){return[]}return n.map((r=>a(r)))}function setCookie(r,n){u.argumentLengthCheck(arguments,2,"setCookie");u.brandCheck(r,d,{strict:false});n=u.converters.Cookie(n);const s=l(n);if(s){r.append("Set-Cookie",s)}}u.converters.DeleteCookieAttributes=u.dictionaryConverter([{converter:u.nullableConverter(u.converters.DOMString),key:"path",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"domain",defaultValue:()=>null}]);u.converters.Cookie=u.dictionaryConverter([{converter:u.converters.DOMString,key:"name"},{converter:u.converters.DOMString,key:"value"},{converter:u.nullableConverter((r=>{if(typeof r==="number"){return u.converters["unsigned long long"](r)}return new Date(r)})),key:"expires",defaultValue:()=>null},{converter:u.nullableConverter(u.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.DOMString),key:"path",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.boolean),key:"secure",defaultValue:()=>null},{converter:u.nullableConverter(u.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:u.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:u.sequenceConverter(u.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);r.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},11978:(r,n,s)=>{const{maxNameValuePairSize:a,maxAttributeValueSize:l}=s(71276);const{isCTLExcludingHtab:u}=s(57797);const{collectASequenceOfCodePointsFast:d}=s(51900);const A=s(34589);function parseSetCookie(r){if(u(r)){return null}let n="";let s="";let l="";let A="";if(r.includes(";")){const a={position:0};n=d(";",r,a);s=r.slice(a.position)}else{n=r}if(!n.includes("=")){A=n}else{const r={position:0};l=d("=",n,r);A=n.slice(r.position+1)}l=l.trim();A=A.trim();if(l.length+A.length>a){return null}return{name:l,value:A,...parseUnparsedAttributes(s)}}function parseUnparsedAttributes(r,n={}){if(r.length===0){return n}A(r[0]===";");r=r.slice(1);let s="";if(r.includes(";")){s=d(";",r,{position:0});r=r.slice(s.length)}else{s=r;r=""}let a="";let u="";if(s.includes("=")){const r={position:0};a=d("=",s,r);u=s.slice(r.position+1)}else{a=s}a=a.trim();u=u.trim();if(u.length>l){return parseUnparsedAttributes(r,n)}const p=a.toLowerCase();if(p==="expires"){const r=new Date(u);n.expires=r}else if(p==="max-age"){const s=u.charCodeAt(0);if((s<48||s>57)&&u[0]!=="-"){return parseUnparsedAttributes(r,n)}if(!/^\d+$/.test(u)){return parseUnparsedAttributes(r,n)}const a=Number(u);n.maxAge=a}else if(p==="domain"){let r=u;if(r[0]==="."){r=r.slice(1)}r=r.toLowerCase();n.domain=r}else if(p==="path"){let r="";if(u.length===0||u[0]!=="/"){r="/"}else{r=u}n.path=r}else if(p==="secure"){n.secure=true}else if(p==="httponly"){n.httpOnly=true}else if(p==="samesite"){let r="Default";const s=u.toLowerCase();if(s.includes("none")){r="None"}if(s.includes("strict")){r="Strict"}if(s.includes("lax")){r="Lax"}n.sameSite=r}else{n.unparsed??=[];n.unparsed.push(`${a}=${u}`)}return parseUnparsedAttributes(r,n)}r.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},57797:r=>{function isCTLExcludingHtab(r){for(let n=0;n=0&&s<=8||s>=10&&s<=31||s===127){return true}}return false}function validateCookieName(r){for(let n=0;n126||s===34||s===40||s===41||s===60||s===62||s===64||s===44||s===59||s===58||s===92||s===47||s===91||s===93||s===63||s===61||s===123||s===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(r){let n=r.length;let s=0;if(r[0]==='"'){if(n===1||r[n-1]!=='"'){throw new Error("Invalid cookie value")}--n;++s}while(s126||n===34||n===44||n===59||n===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(r){for(let n=0;nn.toString().padStart(2,"0")));function toIMFDate(r){if(typeof r==="number"){r=new Date(r)}return`${n[r.getUTCDay()]}, ${a[r.getUTCDate()]} ${s[r.getUTCMonth()]} ${r.getUTCFullYear()} ${a[r.getUTCHours()]}:${a[r.getUTCMinutes()]}:${a[r.getUTCSeconds()]} GMT`}function validateCookieMaxAge(r){if(r<0){throw new Error("Invalid cookie max-age")}}function stringify(r){if(r.name.length===0){return null}validateCookieName(r.name);validateCookieValue(r.value);const n=[`${r.name}=${r.value}`];if(r.name.startsWith("__Secure-")){r.secure=true}if(r.name.startsWith("__Host-")){r.secure=true;r.domain=null;r.path="/"}if(r.secure){n.push("Secure")}if(r.httpOnly){n.push("HttpOnly")}if(typeof r.maxAge==="number"){validateCookieMaxAge(r.maxAge);n.push(`Max-Age=${r.maxAge}`)}if(r.domain){validateCookieDomain(r.domain);n.push(`Domain=${r.domain}`)}if(r.path){validateCookiePath(r.path);n.push(`Path=${r.path}`)}if(r.expires&&r.expires.toString()!=="Invalid Date"){n.push(`Expires=${toIMFDate(r.expires)}`)}if(r.sameSite){n.push(`SameSite=${r.sameSite}`)}for(const s of r.unparsed){if(!s.includes("=")){throw new Error("Invalid unparsed")}const[r,...a]=s.split("=");n.push(`${r.trim()}=${a.join("=")}`)}return n.join("; ")}r.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},24031:(r,n,s)=>{const{Transform:a}=s(57075);const{isASCIINumber:l,isValidLastEventId:u}=s(94811);const d=[239,187,191];const A=10;const p=13;const f=58;const g=32;class EventSourceStream extends a{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(r={}){r.readableObjectMode=true;super(r);this.state=r.eventSourceSettings||{};if(r.push){this.push=r.push}}_transform(r,n,s){if(r.length===0){s();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,r])}else{this.buffer=r}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===d[0]){s();return}this.checkBOM=false;s();return;case 2:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]){s();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;s();return}this.checkBOM=false;break;default:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos0){n[a]=d}break}}processEvent(r){if(r.retry&&l(r.retry)){this.state.reconnectionTime=parseInt(r.retry,10)}if(r.id&&u(r.id)){this.state.lastEventId=r.id}if(r.data!==undefined){this.push({type:r.event||"message",options:{data:r.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}r.exports={EventSourceStream:EventSourceStream}},21238:(r,n,s)=>{const{pipeline:a}=s(57075);const{fetching:l}=s(54398);const{makeRequest:u}=s(9967);const{webidl:d}=s(45893);const{EventSourceStream:A}=s(24031);const{parseMIMEType:p}=s(51900);const{createFastMessageEvent:f}=s(15188);const{isNetworkError:g}=s(99051);const{delay:y}=s(94811);const{kEnumerableProperty:b}=s(3440);const{environmentSettingsObject:C}=s(73168);let w=false;const B=3e3;const I=0;const S=1;const Q=2;const v="anonymous";const R="use-credentials";class EventSource extends EventTarget{#P={open:null,error:null,message:null};#F=null;#L=false;#O=I;#M=null;#U=null;#e;#b;constructor(r,n={}){super();d.util.markAsUncloneable(this);const s="EventSource constructor";d.argumentLengthCheck(arguments,1,s);if(!w){w=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}r=d.converters.USVString(r,s,"url");n=d.converters.EventSourceInitDict(n,s,"eventSourceInitDict");this.#e=n.dispatcher;this.#b={lastEventId:"",reconnectionTime:B};const a=C;let l;try{l=new URL(r,a.settingsObject.baseUrl);this.#b.origin=l.origin}catch(r){throw new DOMException(r,"SyntaxError")}this.#F=l.href;let A=v;if(n.withCredentials){A=R;this.#L=true}const p={redirect:"follow",keepalive:true,mode:"cors",credentials:A==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};p.client=C.settingsObject;p.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];p.cache="no-store";p.initiator="other";p.urlList=[new URL(this.#F)];this.#M=u(p);this.#H()}get readyState(){return this.#O}get url(){return this.#F}get withCredentials(){return this.#L}#H(){if(this.#O===Q)return;this.#O=I;const r={request:this.#M,dispatcher:this.#e};const processEventSourceEndOfBody=r=>{if(g(r)){this.dispatchEvent(new Event("error"));this.close()}this.#G()};r.processResponseEndOfBody=processEventSourceEndOfBody;r.processResponse=r=>{if(g(r)){if(r.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#G();return}}const n=r.headersList.get("content-type",true);const s=n!==null?p(n):"failure";const l=s!=="failure"&&s.essence==="text/event-stream";if(r.status!==200||l===false){this.close();this.dispatchEvent(new Event("error"));return}this.#O=S;this.dispatchEvent(new Event("open"));this.#b.origin=r.urlList[r.urlList.length-1].origin;const u=new A({eventSourceSettings:this.#b,push:r=>{this.dispatchEvent(f(r.type,r.options))}});a(r.body.stream,u,(r=>{if(r?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#U=l(r)}async#G(){if(this.#O===Q)return;this.#O=I;this.dispatchEvent(new Event("error"));await y(this.#b.reconnectionTime);if(this.#O!==I)return;if(this.#b.lastEventId.length){this.#M.headersList.set("last-event-id",this.#b.lastEventId,true)}this.#H()}close(){d.brandCheck(this,EventSource);if(this.#O===Q)return;this.#O=Q;this.#U.abort();this.#M=null}get onopen(){return this.#P.open}set onopen(r){if(this.#P.open){this.removeEventListener("open",this.#P.open)}if(typeof r==="function"){this.#P.open=r;this.addEventListener("open",r)}else{this.#P.open=null}}get onmessage(){return this.#P.message}set onmessage(r){if(this.#P.message){this.removeEventListener("message",this.#P.message)}if(typeof r==="function"){this.#P.message=r;this.addEventListener("message",r)}else{this.#P.message=null}}get onerror(){return this.#P.error}set onerror(r){if(this.#P.error){this.removeEventListener("error",this.#P.error)}if(typeof r==="function"){this.#P.error=r;this.addEventListener("error",r)}else{this.#P.error=null}}}const N={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:I,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:S,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:Q,writable:false}};Object.defineProperties(EventSource,N);Object.defineProperties(EventSource.prototype,N);Object.defineProperties(EventSource.prototype,{close:b,onerror:b,onmessage:b,onopen:b,readyState:b,url:b,withCredentials:b});d.converters.EventSourceInitDict=d.dictionaryConverter([{key:"withCredentials",converter:d.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:d.converters.any}]);r.exports={EventSource:EventSource,defaultReconnectionTime:B}},94811:r=>{function isValidLastEventId(r){return r.indexOf("\0")===-1}function isASCIINumber(r){if(r.length===0)return false;for(let n=0;n57)return false}return true}function delay(r){return new Promise((n=>{setTimeout(n,r).unref()}))}r.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},84492:(r,n,s)=>{const a=s(3440);const{ReadableStreamFrom:l,isBlobLike:u,isReadableStreamLike:d,readableStreamClose:A,createDeferredPromise:p,fullyReadBody:f,extractMimeType:g,utf8DecodeBytes:y}=s(73168);const{FormData:b}=s(35910);const{kState:C}=s(93627);const{webidl:w}=s(45893);const{Blob:B}=s(4573);const I=s(34589);const{isErrored:S,isDisturbed:Q}=s(57075);const{isArrayBuffer:v}=s(73429);const{serializeAMimeType:R}=s(51900);const{multipartFormDataParser:N}=s(50116);let x;try{const r=s(77598);x=n=>r.randomInt(0,n)}catch{x=r=>Math.floor(Math.random(r))}const D=new TextEncoder;function noop(){}const T=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let k;if(T){k=new FinalizationRegistry((r=>{const n=r.deref();if(n&&!n.locked&&!Q(n)&&!S(n)){n.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(r,n=false){let s=null;if(r instanceof ReadableStream){s=r}else if(u(r)){s=r.stream()}else{s=new ReadableStream({async pull(r){const n=typeof f==="string"?D.encode(f):f;if(n.byteLength){r.enqueue(n)}queueMicrotask((()=>A(r)))},start(){},type:"bytes"})}I(d(s));let p=null;let f=null;let g=null;let y=null;if(typeof r==="string"){f=r;y="text/plain;charset=UTF-8"}else if(r instanceof URLSearchParams){f=r.toString();y="application/x-www-form-urlencoded;charset=UTF-8"}else if(v(r)){f=new Uint8Array(r.slice())}else if(ArrayBuffer.isView(r)){f=new Uint8Array(r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength))}else if(a.isFormDataLike(r)){const n=`----formdata-undici-0${`${x(1e11)}`.padStart(11,"0")}`;const s=`--${n}\r\nContent-Disposition: form-data` +/*! formdata-polyfill. MIT License. Jimmy Wärting */;const escape=r=>r.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=r=>r.replace(/\r?\n|\r/g,"\r\n");const a=[];const l=new Uint8Array([13,10]);g=0;let u=false;for(const[n,d]of r){if(typeof d==="string"){const r=D.encode(s+`; name="${escape(normalizeLinefeeds(n))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);a.push(r);g+=r.byteLength}else{const r=D.encode(`${s}; name="${escape(normalizeLinefeeds(n))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);a.push(r,d,l);if(typeof d.size==="number"){g+=r.byteLength+d.size+l.byteLength}else{u=true}}}const d=D.encode(`--${n}--\r\n`);a.push(d);g+=d.byteLength;if(u){g=null}f=r;p=async function*(){for(const r of a){if(r.stream){yield*r.stream()}else{yield r}}};y=`multipart/form-data; boundary=${n}`}else if(u(r)){f=r;g=r.size;if(r.type){y=r.type}}else if(typeof r[Symbol.asyncIterator]==="function"){if(n){throw new TypeError("keepalive")}if(a.isDisturbed(r)||r.locked){throw new TypeError("Response body object should not be disturbed or locked")}s=r instanceof ReadableStream?r:l(r)}if(typeof f==="string"||a.isBuffer(f)){g=Buffer.byteLength(f)}if(p!=null){let n;s=new ReadableStream({async start(){n=p(r)[Symbol.asyncIterator]()},async pull(r){const{value:a,done:l}=await n.next();if(l){queueMicrotask((()=>{r.close();r.byobRequest?.respond(0)}))}else{if(!S(s)){const n=new Uint8Array(a);if(n.byteLength){r.enqueue(n)}}}return r.desiredSize>0},async cancel(r){await n.return()},type:"bytes"})}const b={stream:s,source:f,length:g};return[b,y]}function safelyExtractBody(r,n=false){if(r instanceof ReadableStream){I(!a.isDisturbed(r),"The body has already been consumed.");I(!r.locked,"The stream is locked.")}return extractBody(r,n)}function cloneBody(r,n){const[s,a]=n.stream.tee();n.stream=s;return{stream:a,length:n.length,source:n.source}}function throwIfAborted(r){if(r.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(r){const n={blob(){return consumeBody(this,(r=>{let n=bodyMimeType(this);if(n===null){n=""}else if(n){n=R(n)}return new B([r],{type:n})}),r)},arrayBuffer(){return consumeBody(this,(r=>new Uint8Array(r).buffer),r)},text(){return consumeBody(this,y,r)},json(){return consumeBody(this,parseJSONFromBytes,r)},formData(){return consumeBody(this,(r=>{const n=bodyMimeType(this);if(n!==null){switch(n.essence){case"multipart/form-data":{const s=N(r,n);if(s==="failure"){throw new TypeError("Failed to parse body as FormData.")}const a=new b;a[C]=s;return a}case"application/x-www-form-urlencoded":{const n=new URLSearchParams(r.toString());const s=new b;for(const[r,a]of n){s.append(r,a)}return s}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),r)},bytes(){return consumeBody(this,(r=>new Uint8Array(r)),r)}};return n}function mixinBody(r){Object.assign(r.prototype,bodyMixinMethods(r))}async function consumeBody(r,n,s){w.brandCheck(r,s);if(bodyUnusable(r)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(r[C]);const a=p();const errorSteps=r=>a.reject(r);const successSteps=r=>{try{a.resolve(n(r))}catch(r){errorSteps(r)}};if(r[C].body==null){successSteps(Buffer.allocUnsafe(0));return a.promise}await f(r[C].body,successSteps,errorSteps);return a.promise}function bodyUnusable(r){const n=r[C].body;return n!=null&&(n.stream.locked||a.isDisturbed(n.stream))}function parseJSONFromBytes(r){return JSON.parse(y(r))}function bodyMimeType(r){const n=r[C].headersList;const s=g(n);if(s==="failure"){return null}return s}r.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:k,hasFinalizationRegistry:T,bodyUnusable:bodyUnusable}},4495:r=>{const n=["GET","HEAD","POST"];const s=new Set(n);const a=[101,204,205,304];const l=[301,302,303,307,308];const u=new Set(l);const d=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const A=new Set(d);const p=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const f=new Set(p);const g=["follow","manual","error"];const y=["GET","HEAD","OPTIONS","TRACE"];const b=new Set(y);const C=["navigate","same-origin","no-cors","cors"];const w=["omit","same-origin","include"];const B=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const I=["content-encoding","content-language","content-location","content-type","content-length"];const S=["half"];const Q=["CONNECT","TRACE","TRACK"];const v=new Set(Q);const R=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const N=new Set(R);r.exports={subresource:R,forbiddenMethods:Q,requestBodyHeader:I,referrerPolicy:p,requestRedirect:g,requestMode:C,requestCredentials:w,requestCache:B,redirectStatus:l,corsSafeListedMethods:n,nullBodyStatus:a,safeMethods:y,badPorts:d,requestDuplex:S,subresourceSet:N,badPortsSet:A,redirectStatusSet:u,corsSafeListedMethodsSet:s,safeMethodsSet:b,forbiddenMethodsSet:v,referrerPolicySet:f}},51900:(r,n,s)=>{const a=s(34589);const l=new TextEncoder;const u=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const d=/[\u000A\u000D\u0009\u0020]/;const A=/[\u0009\u000A\u000C\u000D\u0020]/g;const p=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(r){a(r.protocol==="data:");let n=URLSerializer(r,true);n=n.slice(5);const s={position:0};let l=collectASequenceOfCodePointsFast(",",n,s);const u=l.length;l=removeASCIIWhitespace(l,true,true);if(s.position>=n.length){return"failure"}s.position++;const d=n.slice(u+1);let A=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(l)){const r=isomorphicDecode(A);A=forgivingBase64(r);if(A==="failure"){return"failure"}l=l.slice(0,-6);l=l.replace(/(\u0020)+$/,"");l=l.slice(0,-1)}if(l.startsWith(";")){l="text/plain"+l}let p=parseMIMEType(l);if(p==="failure"){p=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:p,body:A}}function URLSerializer(r,n=false){if(!n){return r.href}const s=r.href;const a=r.hash.length;const l=a===0?s:s.substring(0,s.length-a);if(!a&&s.endsWith("#")){return l.slice(0,-1)}return l}function collectASequenceOfCodePoints(r,n,s){let a="";while(s.position=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102}function hexByteToNumber(r){return r>=48&&r<=57?r-48:(r&223)-55}function percentDecode(r){const n=r.length;const s=new Uint8Array(n);let a=0;for(let l=0;lr.length){return"failure"}n.position++;let a=collectASequenceOfCodePointsFast(";",r,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0||!u.test(a)){return"failure"}const l=s.toLowerCase();const A=a.toLowerCase();const f={type:l,subtype:A,parameters:new Map,essence:`${l}/${A}`};while(n.positiond.test(r)),r,n);let s=collectASequenceOfCodePoints((r=>r!==";"&&r!=="="),r,n);s=s.toLowerCase();if(n.positionr.length){break}let a=null;if(r[n.position]==='"'){a=collectAnHTTPQuotedString(r,n,true);collectASequenceOfCodePointsFast(";",r,n)}else{a=collectASequenceOfCodePointsFast(";",r,n);a=removeHTTPWhitespace(a,false,true);if(a.length===0){continue}}if(s.length!==0&&u.test(s)&&(a.length===0||p.test(a))&&!f.parameters.has(s)){f.parameters.set(s,a)}}return f}function forgivingBase64(r){r=r.replace(A,"");let n=r.length;if(n%4===0){if(r.charCodeAt(n-1)===61){--n;if(r.charCodeAt(n-1)===61){--n}}}if(n%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(r.length===n?r:r.substring(0,n))){return"failure"}const s=Buffer.from(r,"base64");return new Uint8Array(s.buffer,s.byteOffset,s.byteLength)}function collectAnHTTPQuotedString(r,n,s){const l=n.position;let u="";a(r[n.position]==='"');n.position++;while(true){u+=collectASequenceOfCodePoints((r=>r!=='"'&&r!=="\\"),r,n);if(n.position>=r.length){break}const s=r[n.position];n.position++;if(s==="\\"){if(n.position>=r.length){u+="\\";break}u+=r[n.position];n.position++}else{a(s==='"');break}}if(s){return u}return r.slice(l,n.position)}function serializeAMimeType(r){a(r!=="failure");const{parameters:n,essence:s}=r;let l=s;for(let[r,s]of n.entries()){l+=";";l+=r;l+="=";if(!u.test(s)){s=s.replace(/(\\|")/g,"\\$1");s='"'+s;s+='"'}l+=s}return l}function isHTTPWhiteSpace(r){return r===13||r===10||r===9||r===32}function removeHTTPWhitespace(r,n=true,s=true){return removeChars(r,n,s,isHTTPWhiteSpace)}function isASCIIWhitespace(r){return r===13||r===10||r===9||r===12||r===32}function removeASCIIWhitespace(r,n=true,s=true){return removeChars(r,n,s,isASCIIWhitespace)}function removeChars(r,n,s,a){let l=0;let u=r.length-1;if(n){while(l0&&a(r.charCodeAt(u)))u--}return l===0&&u===r.length-1?r:r.slice(l,u+1)}function isomorphicDecode(r){const n=r.length;if((2<<15)-1>n){return String.fromCharCode.apply(null,r)}let s="";let a=0;let l=(2<<15)-1;while(an){l=n-a}s+=String.fromCharCode.apply(null,r.subarray(a,a+=l))}return s}function minimizeSupportedMimeType(r){switch(r.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(r.subtype.endsWith("+json")){return"application/json"}if(r.subtype.endsWith("+xml")){return"application/xml"}return""}r.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:u,isomorphicDecode:isomorphicDecode}},66653:(r,n,s)=>{const{kConnected:a,kSize:l}=s(36443);class CompatWeakRef{constructor(r){this.value=r}deref(){return this.value[a]===0&&this.value[l]===0?undefined:this.value}}class CompatFinalizer{constructor(r){this.finalizer=r}register(r,n){if(r.on){r.on("disconnect",(()=>{if(r[a]===0&&r[l]===0){this.finalizer(n)}}))}}unregister(r){}}r.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},27114:(r,n,s)=>{const{Blob:a,File:l}=s(4573);const{kState:u}=s(93627);const{webidl:d}=s(45893);class FileLike{constructor(r,n,s={}){const a=n;const l=s.type;const d=s.lastModified??Date.now();this[u]={blobLike:r,name:a,type:l,lastModified:d}}stream(...r){d.brandCheck(this,FileLike);return this[u].blobLike.stream(...r)}arrayBuffer(...r){d.brandCheck(this,FileLike);return this[u].blobLike.arrayBuffer(...r)}slice(...r){d.brandCheck(this,FileLike);return this[u].blobLike.slice(...r)}text(...r){d.brandCheck(this,FileLike);return this[u].blobLike.text(...r)}get size(){d.brandCheck(this,FileLike);return this[u].blobLike.size}get type(){d.brandCheck(this,FileLike);return this[u].blobLike.type}get name(){d.brandCheck(this,FileLike);return this[u].name}get lastModified(){d.brandCheck(this,FileLike);return this[u].lastModified}get[Symbol.toStringTag](){return"File"}}d.converters.Blob=d.interfaceConverter(a);function isFileLike(r){return r instanceof l||r&&(typeof r.stream==="function"||typeof r.arrayBuffer==="function")&&r[Symbol.toStringTag]==="File"}r.exports={FileLike:FileLike,isFileLike:isFileLike}},50116:(r,n,s)=>{const{isUSVString:a,bufferToLowerCasedHeaderName:l}=s(3440);const{utf8DecodeBytes:u}=s(73168);const{HTTP_TOKEN_CODEPOINTS:d,isomorphicDecode:A}=s(51900);const{isFileLike:p}=s(27114);const{makeEntry:f}=s(35910);const g=s(34589);const{File:y}=s(4573);const b=globalThis.File??y;const C=Buffer.from('form-data; name="');const w=Buffer.from("; filename");const B=Buffer.from("--");const I=Buffer.from("--\r\n");function isAsciiString(r){for(let n=0;n70){return false}for(let s=0;s=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95)){return false}}return true}function multipartFormDataParser(r,n){g(n!=="failure"&&n.essence==="multipart/form-data");const s=n.parameters.get("boundary");if(s===undefined){return"failure"}const l=Buffer.from(`--${s}`,"utf8");const d=[];const A={position:0};while(r[A.position]===13&&r[A.position+1]===10){A.position+=2}let y=r.length;while(r[y-1]===10&&r[y-2]===13){y-=2}if(y!==r.length){r=r.subarray(0,y)}while(true){if(r.subarray(A.position,A.position+l.length).equals(l)){A.position+=l.length}else{return"failure"}if(A.position===r.length-2&&bufferStartsWith(r,B,A)||A.position===r.length-4&&bufferStartsWith(r,I,A)){return d}if(r[A.position]!==13||r[A.position+1]!==10){return"failure"}A.position+=2;const n=parseMultipartFormDataHeaders(r,A);if(n==="failure"){return"failure"}let{name:s,filename:y,contentType:C,encoding:w}=n;A.position+=2;let S;{const n=r.indexOf(l.subarray(2),A.position);if(n===-1){return"failure"}S=r.subarray(A.position,n-4);A.position+=S.length;if(w==="base64"){S=Buffer.from(S.toString(),"base64")}}if(r[A.position]!==13||r[A.position+1]!==10){return"failure"}else{A.position+=2}let Q;if(y!==null){C??="text/plain";if(!isAsciiString(C)){C=""}Q=new b([S],y,{type:C})}else{Q=u(Buffer.from(S))}g(a(s));g(typeof Q==="string"&&a(Q)||p(Q));d.push(f(s,Q,y))}}function parseMultipartFormDataHeaders(r,n){let s=null;let a=null;let u=null;let p=null;while(true){if(r[n.position]===13&&r[n.position+1]===10){if(s===null){return"failure"}return{name:s,filename:a,contentType:u,encoding:p}}let f=collectASequenceOfBytes((r=>r!==10&&r!==13&&r!==58),r,n);f=removeChars(f,true,true,(r=>r===9||r===32));if(!d.test(f.toString())){return"failure"}if(r[n.position]!==58){return"failure"}n.position++;collectASequenceOfBytes((r=>r===32||r===9),r,n);switch(l(f)){case"content-disposition":{s=a=null;if(!bufferStartsWith(r,C,n)){return"failure"}n.position+=17;s=parseMultipartFormDataName(r,n);if(s===null){return"failure"}if(bufferStartsWith(r,w,n)){let s=n.position+w.length;if(r[s]===42){n.position+=1;s+=1}if(r[s]!==61||r[s+1]!==34){return"failure"}n.position+=12;a=parseMultipartFormDataName(r,n);if(a===null){return"failure"}}break}case"content-type":{let s=collectASequenceOfBytes((r=>r!==10&&r!==13),r,n);s=removeChars(s,false,true,(r=>r===9||r===32));u=A(s);break}case"content-transfer-encoding":{let s=collectASequenceOfBytes((r=>r!==10&&r!==13),r,n);s=removeChars(s,false,true,(r=>r===9||r===32));p=A(s);break}default:{collectASequenceOfBytes((r=>r!==10&&r!==13),r,n)}}if(r[n.position]!==13&&r[n.position+1]!==10){return"failure"}else{n.position+=2}}}function parseMultipartFormDataName(r,n){g(r[n.position-1]===34);let s=collectASequenceOfBytes((r=>r!==10&&r!==13&&r!==34),r,n);if(r[n.position]!==34){return null}else{n.position++}s=(new TextDecoder).decode(s).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return s}function collectASequenceOfBytes(r,n,s){let a=s.position;while(a0&&a(r[u]))u--}return l===0&&u===r.length-1?r:r.subarray(l,u+1)}function bufferStartsWith(r,n,s){if(r.length{const{isBlobLike:a,iteratorMixin:l}=s(73168);const{kState:u}=s(93627);const{kEnumerableProperty:d}=s(3440);const{FileLike:A,isFileLike:p}=s(27114);const{webidl:f}=s(45893);const{File:g}=s(4573);const y=s(57975);const b=globalThis.File??g;class FormData{constructor(r){f.util.markAsUncloneable(this);if(r!==undefined){throw f.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[u]=[]}append(r,n,s=undefined){f.brandCheck(this,FormData);const l="FormData.append";f.argumentLengthCheck(arguments,2,l);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}r=f.converters.USVString(r,l,"name");n=a(n)?f.converters.Blob(n,l,"value",{strict:false}):f.converters.USVString(n,l,"value");s=arguments.length===3?f.converters.USVString(s,l,"filename"):undefined;const d=makeEntry(r,n,s);this[u].push(d)}delete(r){f.brandCheck(this,FormData);const n="FormData.delete";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");this[u]=this[u].filter((n=>n.name!==r))}get(r){f.brandCheck(this,FormData);const n="FormData.get";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");const s=this[u].findIndex((n=>n.name===r));if(s===-1){return null}return this[u][s].value}getAll(r){f.brandCheck(this,FormData);const n="FormData.getAll";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");return this[u].filter((n=>n.name===r)).map((r=>r.value))}has(r){f.brandCheck(this,FormData);const n="FormData.has";f.argumentLengthCheck(arguments,1,n);r=f.converters.USVString(r,n,"name");return this[u].findIndex((n=>n.name===r))!==-1}set(r,n,s=undefined){f.brandCheck(this,FormData);const l="FormData.set";f.argumentLengthCheck(arguments,2,l);if(arguments.length===3&&!a(n)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}r=f.converters.USVString(r,l,"name");n=a(n)?f.converters.Blob(n,l,"name",{strict:false}):f.converters.USVString(n,l,"name");s=arguments.length===3?f.converters.USVString(s,l,"name"):undefined;const d=makeEntry(r,n,s);const A=this[u].findIndex((n=>n.name===r));if(A!==-1){this[u]=[...this[u].slice(0,A),d,...this[u].slice(A+1).filter((n=>n.name!==r))]}else{this[u].push(d)}}[y.inspect.custom](r,n){const s=this[u].reduce(((r,n)=>{if(r[n.name]){if(Array.isArray(r[n.name])){r[n.name].push(n.value)}else{r[n.name]=[r[n.name],n.value]}}else{r[n.name]=n.value}return r}),{__proto__:null});n.depth??=r;n.colors??=true;const a=y.formatWithOptions(n,s);return`FormData ${a.slice(a.indexOf("]")+2)}`}}l("FormData",FormData,u,"name","value");Object.defineProperties(FormData.prototype,{append:d,delete:d,get:d,getAll:d,has:d,set:d,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(r,n,s){if(typeof n==="string"){}else{if(!p(n)){n=n instanceof Blob?new b([n],"blob",{type:n.type}):new A(n,"blob",{type:n.type})}if(s!==undefined){const r={type:n.type,lastModified:n.lastModified};n=n instanceof g?new b([n],s,r):new A(n,s,r)}}return{name:r,value:n}}r.exports={FormData:FormData,makeEntry:makeEntry}},51059:r=>{const n=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[n]}function setGlobalOrigin(r){if(r===undefined){Object.defineProperty(globalThis,n,{value:undefined,writable:true,enumerable:false,configurable:false});return}const s=new URL(r);if(s.protocol!=="http:"&&s.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${s.protocol}`)}Object.defineProperty(globalThis,n,{value:s,writable:true,enumerable:false,configurable:false})}r.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},60660:(r,n,s)=>{const{kConstruct:a}=s(36443);const{kEnumerableProperty:l}=s(3440);const{iteratorMixin:u,isValidHeaderName:d,isValidHeaderValue:A}=s(73168);const{webidl:p}=s(45893);const f=s(34589);const g=s(57975);const y=Symbol("headers map");const b=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(r){return r===10||r===13||r===9||r===32}function headerValueNormalize(r){let n=0;let s=r.length;while(s>n&&isHTTPWhiteSpaceCharCode(r.charCodeAt(s-1)))--s;while(s>n&&isHTTPWhiteSpaceCharCode(r.charCodeAt(n)))++n;return n===0&&s===r.length?r:r.substring(n,s)}function fill(r,n){if(Array.isArray(n)){for(let s=0;s>","record"]})}}function appendHeader(r,n,s){s=headerValueNormalize(s);if(!d(n)){throw p.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header name"})}else if(!A(s)){throw p.errors.invalidArgument({prefix:"Headers.append",value:s,type:"header value"})}if(C(r)==="immutable"){throw new TypeError("immutable")}return B(r).append(n,s,false)}function compareHeaderName(r,n){return r[0]>1);if(n[A][0]<=p[0]){d=A+1}else{u=A}}if(a!==A){l=a;while(l>d){n[l]=n[--l]}n[d]=p}}if(!s.next().done){throw new TypeError("Unreachable")}return n}else{let r=0;for(const{0:s,1:{value:a}}of this[y]){n[r++]=[s,a];f(a!==null)}return n.sort(compareHeaderName)}}}class Headers{#z;#q;constructor(r=undefined){p.util.markAsUncloneable(this);if(r===a){return}this.#q=new HeadersList;this.#z="none";if(r!==undefined){r=p.converters.HeadersInit(r,"Headers contructor","init");fill(this,r)}}append(r,n){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,2,"Headers.append");const s="Headers.append";r=p.converters.ByteString(r,s,"name");n=p.converters.ByteString(n,s,"value");return appendHeader(this,r,n)}delete(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.delete");const n="Headers.delete";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:"Headers.delete",value:r,type:"header name"})}if(this.#z==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(r,false)){return}this.#q.delete(r,false)}get(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.get");const n="Headers.get";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:n,value:r,type:"header name"})}return this.#q.get(r,false)}has(r){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,1,"Headers.has");const n="Headers.has";r=p.converters.ByteString(r,n,"name");if(!d(r)){throw p.errors.invalidArgument({prefix:n,value:r,type:"header name"})}return this.#q.contains(r,false)}set(r,n){p.brandCheck(this,Headers);p.argumentLengthCheck(arguments,2,"Headers.set");const s="Headers.set";r=p.converters.ByteString(r,s,"name");n=p.converters.ByteString(n,s,"value");n=headerValueNormalize(n);if(!d(r)){throw p.errors.invalidArgument({prefix:s,value:r,type:"header name"})}else if(!A(n)){throw p.errors.invalidArgument({prefix:s,value:n,type:"header value"})}if(this.#z==="immutable"){throw new TypeError("immutable")}this.#q.set(r,n,false)}getSetCookie(){p.brandCheck(this,Headers);const r=this.#q.cookies;if(r){return[...r]}return[]}get[b](){if(this.#q[b]){return this.#q[b]}const r=[];const n=this.#q.toSortedArray();const s=this.#q.cookies;if(s===null||s.length===1){return this.#q[b]=n}for(let a=0;a>"](r,n,s,a.bind(r))}return p.converters["record"](r,n,s)}throw p.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};r.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:C,setHeadersGuard:w,setHeadersList:I,getHeadersList:B}},54398:(r,n,s)=>{const{makeNetworkError:a,makeAppropriateNetworkError:l,filterResponse:u,makeResponse:d,fromInnerResponse:A}=s(99051);const{HeadersList:p}=s(60660);const{Request:f,cloneRequest:g}=s(9967);const y=s(38522);const{bytesMatch:b,makePolicyContainer:C,clonePolicyContainer:w,requestBadPort:B,TAOCheck:I,appendRequestOriginHeader:S,responseLocationURL:Q,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:R,tryUpgradeRequestToAPotentiallyTrustworthyURL:N,createOpaqueTimingInfo:x,appendFetchMetadata:D,corsCheck:T,crossOriginResourcePolicyCheck:k,determineRequestsReferrer:_,coarsenedSharedCurrentTime:P,createDeferredPromise:F,isBlobLike:L,sameOrigin:O,isCancelled:M,isAborted:U,isErrorLike:H,fullyReadBody:G,readableStreamClose:z,isomorphicEncode:q,urlIsLocal:V,urlIsHttpHttpsScheme:j,urlHasHttpsScheme:W,clampAndCoarsenConnectionTimingInfo:Y,simpleRangeHeaderValue:J,buildContentRange:$,createInflate:K,extractMimeType:X}=s(73168);const{kState:Z,kDispatcher:ee}=s(93627);const te=s(34589);const{safelyExtractBody:re,extractBody:ne}=s(84492);const{redirectStatusSet:se,nullBodyStatus:ie,safeMethodsSet:oe,requestBodyHeader:ae,subresourceSet:le}=s(4495);const ce=s(78474);const{Readable:ue,pipeline:de,finished:Ae}=s(57075);const{addAbortListener:pe,isErrored:fe,isReadable:he,bufferToLowerCasedHeaderName:me}=s(3440);const{dataURLProcessor:ge,serializeAMimeType:ye,minimizeSupportedMimeType:Ee}=s(51900);const{getGlobalDispatcher:be}=s(32581);const{webidl:Ce}=s(45893);const{STATUS_CODES:we}=s(37067);const Be=["GET","HEAD"];const Ie=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Se;class Fetch extends ce{constructor(r){super();this.dispatcher=r;this.connection=null;this.dump=false;this.state="ongoing"}terminate(r){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(r);this.emit("terminated",r)}abort(r){if(this.state!=="ongoing"){return}this.state="aborted";if(!r){r=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=r;this.connection?.destroy(r);this.emit("terminated",r)}}function handleFetchDone(r){finalizeAndReportTiming(r,"fetch")}function fetch(r,n=undefined){Ce.argumentLengthCheck(arguments,1,"globalThis.fetch");let s=F();let a;try{a=new f(r,n)}catch(r){s.reject(r);return s.promise}const l=a[Z];if(a.signal.aborted){abortFetch(s,l,null,a.signal.reason);return s.promise}const u=l.client.globalObject;if(u?.constructor?.name==="ServiceWorkerGlobalScope"){l.serviceWorkers="none"}let d=null;let p=false;let g=null;pe(a.signal,(()=>{p=true;te(g!=null);g.abort(a.signal.reason);const r=d?.deref();abortFetch(s,l,r,a.signal.reason)}));const processResponse=r=>{if(p){return}if(r.aborted){abortFetch(s,l,d,g.serializedAbortReason);return}if(r.type==="error"){s.reject(new TypeError("fetch failed",{cause:r.error}));return}d=new WeakRef(A(r,"immutable"));s.resolve(d.deref());s=null};g=fetching({request:l,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:a[ee]});return s.promise}function finalizeAndReportTiming(r,n="other"){if(r.type==="error"&&r.aborted){return}if(!r.urlList?.length){return}const s=r.urlList[0];let a=r.timingInfo;let l=r.cacheState;if(!j(s)){return}if(a===null){return}if(!r.timingAllowPassed){a=x({startTime:a.startTime});l=""}a.endTime=P();r.timingInfo=a;Qe(a,s.href,n,globalThis,l)}const Qe=performance.markResourceTiming;function abortFetch(r,n,s,a){if(r){r.reject(a)}if(n.body!=null&&he(n.body?.stream)){n.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}if(s==null){return}const l=s[Z];if(l.body!=null&&he(l.body?.stream)){l.body.stream.cancel(a).catch((r=>{if(r.code==="ERR_INVALID_STATE"){return}throw r}))}}function fetching({request:r,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:a,processResponseEndOfBody:l,processResponseConsumeBody:u,useParallelQueue:d=false,dispatcher:A=be()}){te(A);let p=null;let f=false;if(r.client!=null){p=r.client.globalObject;f=r.client.crossOriginIsolatedCapability}const g=P(f);const y=x({startTime:g});const b={controller:new Fetch(A),request:r,timingInfo:y,processRequestBodyChunkLength:n,processRequestEndOfBody:s,processResponse:a,processResponseConsumeBody:u,processResponseEndOfBody:l,taskDestination:p,crossOriginIsolatedCapability:f};te(!r.body||r.body.stream);if(r.window==="client"){r.window=r.client?.globalObject?.constructor?.name==="Window"?r.client:"no-window"}if(r.origin==="client"){r.origin=r.client.origin}if(r.policyContainer==="client"){if(r.client!=null){r.policyContainer=w(r.client.policyContainer)}else{r.policyContainer=C()}}if(!r.headersList.contains("accept",true)){const n="*/*";r.headersList.append("accept",n,true)}if(!r.headersList.contains("accept-language",true)){r.headersList.append("accept-language","*",true)}if(r.priority===null){}if(le.has(r.destination)){}mainFetch(b).catch((r=>{b.controller.terminate(r)}));return b.controller}async function mainFetch(r,n=false){const s=r.request;let l=null;if(s.localURLsOnly&&!V(v(s))){l=a("local URLs only")}N(s);if(B(s)==="blocked"){l=a("bad port")}if(s.referrerPolicy===""){s.referrerPolicy=s.policyContainer.referrerPolicy}if(s.referrer!=="no-referrer"){s.referrer=_(s)}if(l===null){l=await(async()=>{const n=v(s);if(O(n,s.url)&&s.responseTainting==="basic"||n.protocol==="data:"||(s.mode==="navigate"||s.mode==="websocket")){s.responseTainting="basic";return await schemeFetch(r)}if(s.mode==="same-origin"){return a('request mode cannot be "same-origin"')}if(s.mode==="no-cors"){if(s.redirect!=="follow"){return a('redirect mode cannot be "follow" for "no-cors" request')}s.responseTainting="opaque";return await schemeFetch(r)}if(!j(v(s))){return a("URL scheme must be a HTTP(S) scheme")}s.responseTainting="cors";return await httpFetch(r)})()}if(n){return l}if(l.status!==0&&!l.internalResponse){if(s.responseTainting==="cors"){}if(s.responseTainting==="basic"){l=u(l,"basic")}else if(s.responseTainting==="cors"){l=u(l,"cors")}else if(s.responseTainting==="opaque"){l=u(l,"opaque")}else{te(false)}}let d=l.status===0?l:l.internalResponse;if(d.urlList.length===0){d.urlList.push(...s.urlList)}if(!s.timingAllowFailed){l.timingAllowPassed=true}if(l.type==="opaque"&&d.status===206&&d.rangeRequested&&!s.headers.contains("range",true)){l=d=a()}if(l.status!==0&&(s.method==="HEAD"||s.method==="CONNECT"||ie.includes(d.status))){d.body=null;r.controller.dump=true}if(s.integrity){const processBodyError=n=>fetchFinale(r,a(n));if(s.responseTainting==="opaque"||l.body==null){processBodyError(l.error);return}const processBody=n=>{if(!b(n,s.integrity)){processBodyError("integrity mismatch");return}l.body=re(n)[0];fetchFinale(r,l)};await G(l.body,processBody,processBodyError)}else{fetchFinale(r,l)}}function schemeFetch(r){if(M(r)&&r.request.redirectCount===0){return Promise.resolve(l(r))}const{request:n}=r;const{protocol:u}=v(n);switch(u){case"about:":{return Promise.resolve(a("about scheme is not supported"))}case"blob:":{if(!Se){Se=s(4573).resolveObjectURL}const r=v(n);if(r.search.length!==0){return Promise.resolve(a("NetworkError when attempting to fetch resource."))}const l=Se(r.toString());if(n.method!=="GET"||!L(l)){return Promise.resolve(a("invalid method"))}const u=d();const A=l.size;const p=q(`${A}`);const f=l.type;if(!n.headersList.contains("range",true)){const r=ne(l);u.statusText="OK";u.body=r[0];u.headersList.set("content-length",p,true);u.headersList.set("content-type",f,true)}else{u.rangeRequested=true;const r=n.headersList.get("range",true);const s=J(r,true);if(s==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}let{rangeStartValue:d,rangeEndValue:p}=s;if(d===null){d=A-p;p=d+p-1}else{if(d>=A){return Promise.resolve(a("Range start is greater than the blob's size."))}if(p===null||p>=A){p=A-1}}const g=l.slice(d,p,f);const y=ne(g);u.body=y[0];const b=q(`${g.size}`);const C=$(d,p,A);u.status=206;u.statusText="Partial Content";u.headersList.set("content-length",b,true);u.headersList.set("content-type",f,true);u.headersList.set("content-range",C,true)}return Promise.resolve(u)}case"data:":{const r=v(n);const s=ge(r);if(s==="failure"){return Promise.resolve(a("failed to fetch the data URL"))}const l=ye(s.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:l}]],body:re(s.body)[0]}))}case"file:":{return Promise.resolve(a("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(r).catch((r=>a(r)))}default:{return Promise.resolve(a("unknown scheme"))}}}function finalizeResponse(r,n){r.request.done=true;if(r.processResponseDone!=null){queueMicrotask((()=>r.processResponseDone(n)))}}function fetchFinale(r,n){let s=r.timingInfo;const processResponseEndOfBody=()=>{const a=Date.now();if(r.request.destination==="document"){r.controller.fullTimingInfo=s}r.controller.reportTimingSteps=()=>{if(r.request.url.protocol!=="https:"){return}s.endTime=a;let l=n.cacheState;const u=n.bodyInfo;if(!n.timingAllowPassed){s=x(s);l=""}let d=0;if(r.request.mode!=="navigator"||!n.hasCrossOriginRedirects){d=n.status;const r=X(n.headersList);if(r!=="failure"){u.contentType=Ee(r)}}if(r.request.initiatorType!=null){Qe(s,r.request.url.href,r.request.initiatorType,globalThis,l,u,d)}};const processResponseEndOfBodyTask=()=>{r.request.done=true;if(r.processResponseEndOfBody!=null){queueMicrotask((()=>r.processResponseEndOfBody(n)))}if(r.request.initiatorType!=null){r.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(r.processResponse!=null){queueMicrotask((()=>{r.processResponse(n);r.processResponse=null}))}const a=n.type==="error"?n:n.internalResponse??n;if(a.body==null){processResponseEndOfBody()}else{Ae(a.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(r){const n=r.request;let s=null;let l=null;const u=r.timingInfo;if(n.serviceWorkers==="all"){}if(s===null){if(n.redirect==="follow"){n.serviceWorkers="none"}l=s=await httpNetworkOrCacheFetch(r);if(n.responseTainting==="cors"&&T(n,s)==="failure"){return a("cors failure")}if(I(n,s)==="failure"){n.timingAllowFailed=true}}if((n.responseTainting==="opaque"||s.type==="opaque")&&k(n.origin,n.client,n.destination,l)==="blocked"){return a("blocked")}if(se.has(l.status)){if(n.redirect!=="manual"){r.controller.connection.destroy(undefined,false)}if(n.redirect==="error"){s=a("unexpected redirect")}else if(n.redirect==="manual"){s=l}else if(n.redirect==="follow"){s=await httpRedirectFetch(r,s)}else{te(false)}}s.timingInfo=u;return s}function httpRedirectFetch(r,n){const s=r.request;const l=n.internalResponse?n.internalResponse:n;let u;try{u=Q(l,v(s).hash);if(u==null){return n}}catch(r){return Promise.resolve(a(r))}if(!j(u)){return Promise.resolve(a("URL scheme must be a HTTP(S) scheme"))}if(s.redirectCount===20){return Promise.resolve(a("redirect count exceeded"))}s.redirectCount+=1;if(s.mode==="cors"&&(u.username||u.password)&&!O(s,u)){return Promise.resolve(a('cross origin not allowed for request mode "cors"'))}if(s.responseTainting==="cors"&&(u.username||u.password)){return Promise.resolve(a('URL cannot contain credentials for request mode "cors"'))}if(l.status!==303&&s.body!=null&&s.body.source==null){return Promise.resolve(a())}if([301,302].includes(l.status)&&s.method==="POST"||l.status===303&&!Be.includes(s.method)){s.method="GET";s.body=null;for(const r of ae){s.headersList.delete(r)}}if(!O(v(s),u)){s.headersList.delete("authorization",true);s.headersList.delete("proxy-authorization",true);s.headersList.delete("cookie",true);s.headersList.delete("host",true)}if(s.body!=null){te(s.body.source!=null);s.body=re(s.body.source)[0]}const d=r.timingInfo;d.redirectEndTime=d.postRedirectStartTime=P(r.crossOriginIsolatedCapability);if(d.redirectStartTime===0){d.redirectStartTime=d.startTime}s.urlList.push(u);R(s,l);return mainFetch(r,true)}async function httpNetworkOrCacheFetch(r,n=false,s=false){const u=r.request;let d=null;let A=null;let p=null;const f=null;const y=false;if(u.window==="no-window"&&u.redirect==="error"){d=r;A=u}else{A=g(u);d={...r};d.request=A}const b=u.credentials==="include"||u.credentials==="same-origin"&&u.responseTainting==="basic";const C=A.body?A.body.length:null;let w=null;if(A.body==null&&["POST","PUT"].includes(A.method)){w="0"}if(C!=null){w=q(`${C}`)}if(w!=null){A.headersList.append("content-length",w,true)}if(C!=null&&A.keepalive){}if(A.referrer instanceof URL){A.headersList.append("referer",q(A.referrer.href),true)}S(A);D(A);if(!A.headersList.contains("user-agent",true)){A.headersList.append("user-agent",Ie)}if(A.cache==="default"&&(A.headersList.contains("if-modified-since",true)||A.headersList.contains("if-none-match",true)||A.headersList.contains("if-unmodified-since",true)||A.headersList.contains("if-match",true)||A.headersList.contains("if-range",true))){A.cache="no-store"}if(A.cache==="no-cache"&&!A.preventNoCacheCacheControlHeaderModification&&!A.headersList.contains("cache-control",true)){A.headersList.append("cache-control","max-age=0",true)}if(A.cache==="no-store"||A.cache==="reload"){if(!A.headersList.contains("pragma",true)){A.headersList.append("pragma","no-cache",true)}if(!A.headersList.contains("cache-control",true)){A.headersList.append("cache-control","no-cache",true)}}if(A.headersList.contains("range",true)){A.headersList.append("accept-encoding","identity",true)}if(!A.headersList.contains("accept-encoding",true)){if(W(v(A))){A.headersList.append("accept-encoding","br, gzip, deflate",true)}else{A.headersList.append("accept-encoding","gzip, deflate",true)}}A.headersList.delete("host",true);if(b){}if(f==null){A.cache="no-store"}if(A.cache!=="no-store"&&A.cache!=="reload"){}if(p==null){if(A.cache==="only-if-cached"){return a("only if cached")}const r=await httpNetworkFetch(d,b,s);if(!oe.has(A.method)&&r.status>=200&&r.status<=399){}if(y&&r.status===304){}if(p==null){p=r}}p.urlList=[...A.urlList];if(A.headersList.contains("range",true)){p.rangeRequested=true}p.requestIncludesCredentials=b;if(p.status===407){if(u.window==="no-window"){return a()}if(M(r)){return l(r)}return a("proxy authentication required")}if(p.status===421&&!s&&(u.body==null||u.body.source!=null)){if(M(r)){return l(r)}r.controller.connection.destroy();p=await httpNetworkOrCacheFetch(r,n,true)}if(n){}return p}async function httpNetworkFetch(r,n=false,s=false){te(!r.controller.connection||r.controller.connection.destroyed);r.controller.connection={abort:null,destroyed:false,destroy(r,n=true){if(!this.destroyed){this.destroyed=true;if(n){this.abort?.(r??new DOMException("The operation was aborted.","AbortError"))}}}};const u=r.request;let A=null;const f=r.timingInfo;const g=null;if(g==null){u.cache="no-store"}const b=s?"yes":"no";if(u.mode==="websocket"){}else{}let C=null;if(u.body==null&&r.processRequestEndOfBody){queueMicrotask((()=>r.processRequestEndOfBody()))}else if(u.body!=null){const processBodyChunk=async function*(n){if(M(r)){return}yield n;r.processRequestBodyChunkLength?.(n.byteLength)};const processEndOfBody=()=>{if(M(r)){return}if(r.processRequestEndOfBody){r.processRequestEndOfBody()}};const processBodyError=n=>{if(M(r)){return}if(n.name==="AbortError"){r.controller.abort()}else{r.controller.terminate(n)}};C=async function*(){try{for await(const r of u.body.stream){yield*processBodyChunk(r)}processEndOfBody()}catch(r){processBodyError(r)}}()}try{const{body:n,status:s,statusText:a,headersList:l,socket:u}=await dispatch({body:C});if(u){A=d({status:s,statusText:a,headersList:l,socket:u})}else{const u=n[Symbol.asyncIterator]();r.controller.next=()=>u.next();A=d({status:s,statusText:a,headersList:l})}}catch(n){if(n.name==="AbortError"){r.controller.connection.destroy();return l(r,n)}return a(n)}const pullAlgorithm=async()=>{await r.controller.resume()};const cancelAlgorithm=n=>{if(!M(r)){r.controller.abort(n)}};const w=new ReadableStream({async start(n){r.controller.controller=n},async pull(r){await pullAlgorithm(r)},async cancel(r){await cancelAlgorithm(r)},type:"bytes"});A.body={stream:w,source:null,length:null};r.controller.onAborted=onAborted;r.controller.on("terminated",onAborted);r.controller.resume=async()=>{while(true){let n;let s;try{const{done:s,value:a}=await r.controller.next();if(U(r)){break}n=s?undefined:a}catch(a){if(r.controller.ended&&!f.encodedBodySize){n=undefined}else{n=a;s=true}}if(n===undefined){z(r.controller.controller);finalizeResponse(r,A);return}f.decodedBodySize+=n?.byteLength??0;if(s){r.controller.terminate(n);return}const a=new Uint8Array(n);if(a.byteLength){r.controller.controller.enqueue(a)}if(fe(w)){r.controller.terminate();return}if(r.controller.controller.desiredSize<=0){return}}};function onAborted(n){if(U(r)){A.aborted=true;if(he(w)){r.controller.controller.error(r.controller.serializedAbortReason)}}else{if(he(w)){r.controller.controller.error(new TypeError("terminated",{cause:H(n)?n:undefined}))}}r.controller.connection.destroy()}return A;function dispatch({body:n}){const s=v(u);const a=r.controller.dispatcher;return new Promise(((l,d)=>a.dispatch({path:s.pathname+s.search,origin:s.origin,method:u.method,body:a.isMockActive?u.body&&(u.body.source||u.body.stream):n,headers:u.headersList.entries,maxRedirections:0,upgrade:u.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(n){const{connection:s}=r.controller;f.finalConnectionTimingInfo=Y(undefined,f.postRedirectStartTime,r.crossOriginIsolatedCapability);if(s.destroyed){n(new DOMException("The operation was aborted.","AbortError"))}else{r.controller.on("terminated",n);this.abort=s.abort=n}f.finalNetworkRequestStartTime=P(r.crossOriginIsolatedCapability)},onResponseStarted(){f.finalNetworkResponseStartTime=P(r.crossOriginIsolatedCapability)},onHeaders(r,n,s,a){if(r<200){return}let A="";const f=new p;for(let r=0;rs){d(new Error(`too many content-encodings in response: ${n.length}, maximum allowed is ${s}`));return true}for(let r=n.length-1;r>=0;--r){const s=n[r].trim();if(s==="x-gzip"||s==="gzip"){g.push(y.createGunzip({flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH}))}else if(s==="deflate"){g.push(K({flush:y.constants.Z_SYNC_FLUSH,finishFlush:y.constants.Z_SYNC_FLUSH}))}else if(s==="br"){g.push(y.createBrotliDecompress({flush:y.constants.BROTLI_OPERATION_FLUSH,finishFlush:y.constants.BROTLI_OPERATION_FLUSH}))}else{g.length=0;break}}}const C=this.onError.bind(this);l({status:r,statusText:a,headersList:f,body:g.length?de(this.body,...g,(r=>{if(r){this.onError(r)}})).on("error",C):this.body.on("error",C)});return true},onData(n){if(r.controller.dump){return}const s=n;f.encodedBodySize+=s.byteLength;return this.body.push(s)},onComplete(){if(this.abort){r.controller.off("terminated",this.abort)}if(r.controller.onAborted){r.controller.off("terminated",r.controller.onAborted)}r.controller.ended=true;this.body.push(null)},onError(n){if(this.abort){r.controller.off("terminated",this.abort)}this.body?.destroy(n);r.controller.terminate(n);d(n)},onUpgrade(r,n,s){if(r!==101){return}const a=new p;for(let r=0;r{const{extractBody:a,mixinBody:l,cloneBody:u,bodyUnusable:d}=s(84492);const{Headers:A,fill:p,HeadersList:f,setHeadersGuard:g,getHeadersGuard:y,setHeadersList:b,getHeadersList:C}=s(60660);const{FinalizationRegistry:w}=s(66653)();const B=s(3440);const I=s(57975);const{isValidHTTPToken:S,sameOrigin:Q,environmentSettingsObject:v}=s(73168);const{forbiddenMethodsSet:R,corsSafeListedMethodsSet:N,referrerPolicy:x,requestRedirect:D,requestMode:T,requestCredentials:k,requestCache:_,requestDuplex:P}=s(4495);const{kEnumerableProperty:F,normalizedMethodRecordsBase:L,normalizedMethodRecords:O}=B;const{kHeaders:M,kSignal:U,kState:H,kDispatcher:G}=s(93627);const{webidl:z}=s(45893);const{URLSerializer:q}=s(51900);const{kConstruct:V}=s(36443);const j=s(34589);const{getMaxListeners:W,setMaxListeners:Y,getEventListeners:J,defaultMaxListeners:$}=s(78474);const K=Symbol("abortController");const X=new w((({signal:r,abort:n})=>{r.removeEventListener("abort",n)}));const Z=new WeakMap;function buildAbort(r){return abort;function abort(){const n=r.deref();if(n!==undefined){X.unregister(abort);this.removeEventListener("abort",abort);n.abort(this.reason);const r=Z.get(n.signal);if(r!==undefined){if(r.size!==0){for(const n of r){const r=n.deref();if(r!==undefined){r.abort(this.reason)}}r.clear()}Z.delete(n.signal)}}}}let ee=false;class Request{constructor(r,n={}){z.util.markAsUncloneable(this);if(r===V){return}const s="Request constructor";z.argumentLengthCheck(arguments,1,s);r=z.converters.RequestInfo(r,s,"input");n=z.converters.RequestInit(n,s,"init");let l=null;let u=null;const y=v.settingsObject.baseUrl;let w=null;if(typeof r==="string"){this[G]=n.dispatcher;let s;try{s=new URL(r,y)}catch(n){throw new TypeError("Failed to parse URL from "+r,{cause:n})}if(s.username||s.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+r)}l=makeRequest({urlList:[s]});u="cors"}else{this[G]=n.dispatcher||r[G];j(r instanceof Request);l=r[H];w=r[U]}const I=v.settingsObject.origin;let x="client";if(l.window?.constructor?.name==="EnvironmentSettingsObject"&&Q(l.window,I)){x=l.window}if(n.window!=null){throw new TypeError(`'window' option '${x}' must be null`)}if("window"in n){x="no-window"}l=makeRequest({method:l.method,headersList:l.headersList,unsafeRequest:l.unsafeRequest,client:v.settingsObject,window:x,priority:l.priority,origin:l.origin,referrer:l.referrer,referrerPolicy:l.referrerPolicy,mode:l.mode,credentials:l.credentials,cache:l.cache,redirect:l.redirect,integrity:l.integrity,keepalive:l.keepalive,reloadNavigation:l.reloadNavigation,historyNavigation:l.historyNavigation,urlList:[...l.urlList]});const D=Object.keys(n).length!==0;if(D){if(l.mode==="navigate"){l.mode="same-origin"}l.reloadNavigation=false;l.historyNavigation=false;l.origin="client";l.referrer="client";l.referrerPolicy="";l.url=l.urlList[l.urlList.length-1];l.urlList=[l.url]}if(n.referrer!==undefined){const r=n.referrer;if(r===""){l.referrer="no-referrer"}else{let n;try{n=new URL(r,y)}catch(n){throw new TypeError(`Referrer "${r}" is not a valid URL.`,{cause:n})}if(n.protocol==="about:"&&n.hostname==="client"||I&&!Q(n,v.settingsObject.baseUrl)){l.referrer="client"}else{l.referrer=n}}}if(n.referrerPolicy!==undefined){l.referrerPolicy=n.referrerPolicy}let T;if(n.mode!==undefined){T=n.mode}else{T=u}if(T==="navigate"){throw z.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(T!=null){l.mode=T}if(n.credentials!==undefined){l.credentials=n.credentials}if(n.cache!==undefined){l.cache=n.cache}if(l.cache==="only-if-cached"&&l.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(n.redirect!==undefined){l.redirect=n.redirect}if(n.integrity!=null){l.integrity=String(n.integrity)}if(n.keepalive!==undefined){l.keepalive=Boolean(n.keepalive)}if(n.method!==undefined){let r=n.method;const s=O[r];if(s!==undefined){l.method=s}else{if(!S(r)){throw new TypeError(`'${r}' is not a valid HTTP method.`)}const n=r.toUpperCase();if(R.has(n)){throw new TypeError(`'${r}' HTTP method is unsupported.`)}r=L[n]??r;l.method=r}if(!ee&&l.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});ee=true}}if(n.signal!==undefined){w=n.signal}this[H]=l;const k=new AbortController;this[U]=k.signal;if(w!=null){if(!w||typeof w.aborted!=="boolean"||typeof w.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(w.aborted){k.abort(w.reason)}else{this[K]=k;const r=new WeakRef(k);const n=buildAbort(r);try{if(typeof W==="function"&&W(w)===$){Y(1500,w)}else if(J(w,"abort").length>=$){Y(1500,w)}}catch{}B.addAbortListener(w,n);X.register(k,{signal:w,abort:n},n)}}this[M]=new A(V);b(this[M],l.headersList);g(this[M],"request");if(T==="no-cors"){if(!N.has(l.method)){throw new TypeError(`'${l.method} is unsupported in no-cors mode.`)}g(this[M],"request-no-cors")}if(D){const r=C(this[M]);const s=n.headers!==undefined?n.headers:new f(r);r.clear();if(s instanceof f){for(const{name:n,value:a}of s.rawValues()){r.append(n,a,false)}r.cookies=s.cookies}else{p(this[M],s)}}const _=r instanceof Request?r[H].body:null;if((n.body!=null||_!=null)&&(l.method==="GET"||l.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let P=null;if(n.body!=null){const[r,s]=a(n.body,l.keepalive);P=r;if(s&&!C(this[M]).contains("content-type",true)){this[M].append("content-type",s)}}const F=P??_;if(F!=null&&F.source==null){if(P!=null&&n.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(l.mode!=="same-origin"&&l.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}l.useCORSPreflightFlag=true}let q=F;if(P==null&&_!=null){if(d(r)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const n=new TransformStream;_.stream.pipeThrough(n);q={source:_.source,length:_.length,stream:n.readable}}this[H].body=q}get method(){z.brandCheck(this,Request);return this[H].method}get url(){z.brandCheck(this,Request);return q(this[H].url)}get headers(){z.brandCheck(this,Request);return this[M]}get destination(){z.brandCheck(this,Request);return this[H].destination}get referrer(){z.brandCheck(this,Request);if(this[H].referrer==="no-referrer"){return""}if(this[H].referrer==="client"){return"about:client"}return this[H].referrer.toString()}get referrerPolicy(){z.brandCheck(this,Request);return this[H].referrerPolicy}get mode(){z.brandCheck(this,Request);return this[H].mode}get credentials(){return this[H].credentials}get cache(){z.brandCheck(this,Request);return this[H].cache}get redirect(){z.brandCheck(this,Request);return this[H].redirect}get integrity(){z.brandCheck(this,Request);return this[H].integrity}get keepalive(){z.brandCheck(this,Request);return this[H].keepalive}get isReloadNavigation(){z.brandCheck(this,Request);return this[H].reloadNavigation}get isHistoryNavigation(){z.brandCheck(this,Request);return this[H].historyNavigation}get signal(){z.brandCheck(this,Request);return this[U]}get body(){z.brandCheck(this,Request);return this[H].body?this[H].body.stream:null}get bodyUsed(){z.brandCheck(this,Request);return!!this[H].body&&B.isDisturbed(this[H].body.stream)}get duplex(){z.brandCheck(this,Request);return"half"}clone(){z.brandCheck(this,Request);if(d(this)){throw new TypeError("unusable")}const r=cloneRequest(this[H]);const n=new AbortController;if(this.signal.aborted){n.abort(this.signal.reason)}else{let r=Z.get(this.signal);if(r===undefined){r=new Set;Z.set(this.signal,r)}const s=new WeakRef(n);r.add(s);B.addAbortListener(n.signal,buildAbort(s))}return fromInnerRequest(r,n.signal,y(this[M]))}[I.inspect.custom](r,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${I.formatWithOptions(n,s)}`}}l(Request);function makeRequest(r){return{method:r.method??"GET",localURLsOnly:r.localURLsOnly??false,unsafeRequest:r.unsafeRequest??false,body:r.body??null,client:r.client??null,reservedClient:r.reservedClient??null,replacesClientId:r.replacesClientId??"",window:r.window??"client",keepalive:r.keepalive??false,serviceWorkers:r.serviceWorkers??"all",initiator:r.initiator??"",destination:r.destination??"",priority:r.priority??null,origin:r.origin??"client",policyContainer:r.policyContainer??"client",referrer:r.referrer??"client",referrerPolicy:r.referrerPolicy??"",mode:r.mode??"no-cors",useCORSPreflightFlag:r.useCORSPreflightFlag??false,credentials:r.credentials??"same-origin",useCredentials:r.useCredentials??false,cache:r.cache??"default",redirect:r.redirect??"follow",integrity:r.integrity??"",cryptoGraphicsNonceMetadata:r.cryptoGraphicsNonceMetadata??"",parserMetadata:r.parserMetadata??"",reloadNavigation:r.reloadNavigation??false,historyNavigation:r.historyNavigation??false,userActivation:r.userActivation??false,taintedOrigin:r.taintedOrigin??false,redirectCount:r.redirectCount??0,responseTainting:r.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:r.preventNoCacheCacheControlHeaderModification??false,done:r.done??false,timingAllowFailed:r.timingAllowFailed??false,urlList:r.urlList,url:r.urlList[0],headersList:r.headersList?new f(r.headersList):new f}}function cloneRequest(r){const n=makeRequest({...r,body:null});if(r.body!=null){n.body=u(n,r.body)}return n}function fromInnerRequest(r,n,s){const a=new Request(V);a[H]=r;a[U]=n;a[M]=new A(V);b(a[M],r.headersList);g(a[M],s);return a}Object.defineProperties(Request.prototype,{method:F,url:F,headers:F,redirect:F,clone:F,signal:F,duplex:F,destination:F,body:F,bodyUsed:F,isHistoryNavigation:F,isReloadNavigation:F,keepalive:F,integrity:F,cache:F,credentials:F,attribute:F,referrerPolicy:F,referrer:F,mode:F,[Symbol.toStringTag]:{value:"Request",configurable:true}});z.converters.Request=z.interfaceConverter(Request);z.converters.RequestInfo=function(r,n,s){if(typeof r==="string"){return z.converters.USVString(r,n,s)}if(r instanceof Request){return z.converters.Request(r,n,s)}return z.converters.USVString(r,n,s)};z.converters.AbortSignal=z.interfaceConverter(AbortSignal);z.converters.RequestInit=z.dictionaryConverter([{key:"method",converter:z.converters.ByteString},{key:"headers",converter:z.converters.HeadersInit},{key:"body",converter:z.nullableConverter(z.converters.BodyInit)},{key:"referrer",converter:z.converters.USVString},{key:"referrerPolicy",converter:z.converters.DOMString,allowedValues:x},{key:"mode",converter:z.converters.DOMString,allowedValues:T},{key:"credentials",converter:z.converters.DOMString,allowedValues:k},{key:"cache",converter:z.converters.DOMString,allowedValues:_},{key:"redirect",converter:z.converters.DOMString,allowedValues:D},{key:"integrity",converter:z.converters.DOMString},{key:"keepalive",converter:z.converters.boolean},{key:"signal",converter:z.nullableConverter((r=>z.converters.AbortSignal(r,"RequestInit","signal",{strict:false})))},{key:"window",converter:z.converters.any},{key:"duplex",converter:z.converters.DOMString,allowedValues:P},{key:"dispatcher",converter:z.converters.any}]);r.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},99051:(r,n,s)=>{const{Headers:a,HeadersList:l,fill:u,getHeadersGuard:d,setHeadersGuard:A,setHeadersList:p}=s(60660);const{extractBody:f,cloneBody:g,mixinBody:y,hasFinalizationRegistry:b,streamRegistry:C,bodyUnusable:w}=s(84492);const B=s(3440);const I=s(57975);const{kEnumerableProperty:S}=B;const{isValidReasonPhrase:Q,isCancelled:v,isAborted:R,isBlobLike:N,serializeJavascriptValueToJSONString:x,isErrorLike:D,isomorphicEncode:T,environmentSettingsObject:k}=s(73168);const{redirectStatusSet:_,nullBodyStatus:P}=s(4495);const{kState:F,kHeaders:L}=s(93627);const{webidl:O}=s(45893);const{FormData:M}=s(35910);const{URLSerializer:U}=s(51900);const{kConstruct:H}=s(36443);const G=s(34589);const{types:z}=s(57975);const q=new TextEncoder("utf-8");class Response{static error(){const r=fromInnerResponse(makeNetworkError(),"immutable");return r}static json(r,n={}){O.argumentLengthCheck(arguments,1,"Response.json");if(n!==null){n=O.converters.ResponseInit(n)}const s=q.encode(x(r));const a=f(s);const l=fromInnerResponse(makeResponse({}),"response");initializeResponse(l,n,{body:a[0],type:"application/json"});return l}static redirect(r,n=302){O.argumentLengthCheck(arguments,1,"Response.redirect");r=O.converters.USVString(r);n=O.converters["unsigned short"](n);let s;try{s=new URL(r,k.settingsObject.baseUrl)}catch(n){throw new TypeError(`Failed to parse URL from ${r}`,{cause:n})}if(!_.has(n)){throw new RangeError(`Invalid status code ${n}`)}const a=fromInnerResponse(makeResponse({}),"immutable");a[F].status=n;const l=T(U(s));a[F].headersList.append("location",l,true);return a}constructor(r=null,n={}){O.util.markAsUncloneable(this);if(r===H){return}if(r!==null){r=O.converters.BodyInit(r)}n=O.converters.ResponseInit(n);this[F]=makeResponse({});this[L]=new a(H);A(this[L],"response");p(this[L],this[F].headersList);let s=null;if(r!=null){const[n,a]=f(r);s={body:n,type:a}}initializeResponse(this,n,s)}get type(){O.brandCheck(this,Response);return this[F].type}get url(){O.brandCheck(this,Response);const r=this[F].urlList;const n=r[r.length-1]??null;if(n===null){return""}return U(n,true)}get redirected(){O.brandCheck(this,Response);return this[F].urlList.length>1}get status(){O.brandCheck(this,Response);return this[F].status}get ok(){O.brandCheck(this,Response);return this[F].status>=200&&this[F].status<=299}get statusText(){O.brandCheck(this,Response);return this[F].statusText}get headers(){O.brandCheck(this,Response);return this[L]}get body(){O.brandCheck(this,Response);return this[F].body?this[F].body.stream:null}get bodyUsed(){O.brandCheck(this,Response);return!!this[F].body&&B.isDisturbed(this[F].body.stream)}clone(){O.brandCheck(this,Response);if(w(this)){throw O.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const r=cloneResponse(this[F]);if(b&&this[F].body?.stream){C.register(this,new WeakRef(this[F].body.stream))}return fromInnerResponse(r,d(this[L]))}[I.inspect.custom](r,n){if(n.depth===null){n.depth=2}n.colors??=true;const s={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${I.formatWithOptions(n,s)}`}}y(Response);Object.defineProperties(Response.prototype,{type:S,url:S,status:S,ok:S,redirected:S,statusText:S,headers:S,clone:S,body:S,bodyUsed:S,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:S,redirect:S,error:S});function cloneResponse(r){if(r.internalResponse){return filterResponse(cloneResponse(r.internalResponse),r.type)}const n=makeResponse({...r,body:null});if(r.body!=null){n.body=g(n,r.body)}return n}function makeResponse(r){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...r,headersList:r?.headersList?new l(r?.headersList):new l,urlList:r?.urlList?[...r.urlList]:[]}}function makeNetworkError(r){const n=D(r);return makeResponse({type:"error",status:0,error:n?r:new Error(r?String(r):r),aborted:r&&r.name==="AbortError"})}function isNetworkError(r){return r.type==="error"&&r.status===0}function makeFilteredResponse(r,n){n={internalResponse:r,...n};return new Proxy(r,{get(r,s){return s in n?n[s]:r[s]},set(r,s,a){G(!(s in n));r[s]=a;return true}})}function filterResponse(r,n){if(n==="basic"){return makeFilteredResponse(r,{type:"basic",headersList:r.headersList})}else if(n==="cors"){return makeFilteredResponse(r,{type:"cors",headersList:r.headersList})}else if(n==="opaque"){return makeFilteredResponse(r,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(n==="opaqueredirect"){return makeFilteredResponse(r,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{G(false)}}function makeAppropriateNetworkError(r,n=null){G(v(r));return R(r)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:n})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:n}))}function initializeResponse(r,n,s){if(n.status!==null&&(n.status<200||n.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in n&&n.statusText!=null){if(!Q(String(n.statusText))){throw new TypeError("Invalid statusText")}}if("status"in n&&n.status!=null){r[F].status=n.status}if("statusText"in n&&n.statusText!=null){r[F].statusText=n.statusText}if("headers"in n&&n.headers!=null){u(r[L],n.headers)}if(s){if(P.includes(r.status)){throw O.errors.exception({header:"Response constructor",message:`Invalid response status code ${r.status}`})}r[F].body=s.body;if(s.type!=null&&!r[F].headersList.contains("content-type",true)){r[F].headersList.append("content-type",s.type,true)}}}function fromInnerResponse(r,n){const s=new Response(H);s[F]=r;s[L]=new a(H);p(s[L],r.headersList);A(s[L],n);if(b&&r.body?.stream){C.register(s,new WeakRef(r.body.stream))}return s}O.converters.ReadableStream=O.interfaceConverter(ReadableStream);O.converters.FormData=O.interfaceConverter(M);O.converters.URLSearchParams=O.interfaceConverter(URLSearchParams);O.converters.XMLHttpRequestBodyInit=function(r,n,s){if(typeof r==="string"){return O.converters.USVString(r,n,s)}if(N(r)){return O.converters.Blob(r,n,s,{strict:false})}if(ArrayBuffer.isView(r)||z.isArrayBuffer(r)){return O.converters.BufferSource(r,n,s)}if(B.isFormDataLike(r)){return O.converters.FormData(r,n,s,{strict:false})}if(r instanceof URLSearchParams){return O.converters.URLSearchParams(r,n,s)}return O.converters.DOMString(r,n,s)};O.converters.BodyInit=function(r,n,s){if(r instanceof ReadableStream){return O.converters.ReadableStream(r,n,s)}if(r?.[Symbol.asyncIterator]){return r}return O.converters.XMLHttpRequestBodyInit(r,n,s)};O.converters.ResponseInit=O.dictionaryConverter([{key:"status",converter:O.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:O.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:O.converters.HeadersInit}]);r.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},93627:r=>{r.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},73168:(r,n,s)=>{const{Transform:a}=s(57075);const l=s(38522);const{redirectStatusSet:u,referrerPolicySet:d,badPortsSet:A}=s(4495);const{getGlobalOrigin:p}=s(51059);const{collectASequenceOfCodePoints:f,collectAnHTTPQuotedString:g,removeChars:y,parseMIMEType:b}=s(51900);const{performance:C}=s(643);const{isBlobLike:w,ReadableStreamFrom:B,isValidHTTPToken:I,normalizedMethodRecordsBase:S}=s(3440);const Q=s(34589);const{isUint8Array:v}=s(73429);const{webidl:R}=s(45893);let N=[];let x;try{x=s(77598);const r=["sha256","sha384","sha512"];N=x.getHashes().filter((n=>r.includes(n)))}catch{}function responseURL(r){const n=r.urlList;const s=n.length;return s===0?null:n[s-1].toString()}function responseLocationURL(r,n){if(!u.has(r.status)){return null}let s=r.headersList.get("location",true);if(s!==null&&isValidHeaderValue(s)){if(!isValidEncodedURL(s)){s=normalizeBinaryStringToUtf8(s)}s=new URL(s,responseURL(r))}if(s&&!s.hash){s.hash=n}return s}function isValidEncodedURL(r){for(let n=0;n126||s<32){return false}}return true}function normalizeBinaryStringToUtf8(r){return Buffer.from(r,"binary").toString("utf8")}function requestCurrentURL(r){return r.urlList[r.urlList.length-1]}function requestBadPort(r){const n=requestCurrentURL(r);if(urlIsHttpHttpsScheme(n)&&A.has(n.port)){return"blocked"}return"allowed"}function isErrorLike(r){return r instanceof Error||(r?.constructor?.name==="Error"||r?.constructor?.name==="DOMException")}function isValidReasonPhrase(r){for(let n=0;n=32&&s<=126||s>=128&&s<=255)){return false}}return true}const D=I;function isValidHeaderValue(r){return(r[0]==="\t"||r[0]===" "||r[r.length-1]==="\t"||r[r.length-1]===" "||r.includes("\n")||r.includes("\r")||r.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(r,n){const{headersList:s}=n;const a=(s.get("referrer-policy",true)??"").split(",");let l="";if(a.length>0){for(let r=a.length;r!==0;r--){const n=a[r-1].trim();if(d.has(n)){l=n;break}}}if(l!==""){r.referrerPolicy=l}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(r){let n=null;n=r.mode;r.headersList.set("sec-fetch-mode",n,true)}function appendRequestOriginHeader(r){let n=r.origin;if(n==="client"||n===undefined){return}if(r.responseTainting==="cors"||r.mode==="websocket"){r.headersList.append("origin",n,true)}else if(r.method!=="GET"&&r.method!=="HEAD"){switch(r.referrerPolicy){case"no-referrer":n=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(r.origin&&urlHasHttpsScheme(r.origin)&&!urlHasHttpsScheme(requestCurrentURL(r))){n=null}break;case"same-origin":if(!sameOrigin(r,requestCurrentURL(r))){n=null}break;default:}r.headersList.append("origin",n,true)}}function coarsenTime(r,n){return r}function clampAndCoarsenConnectionTimingInfo(r,n,s){if(!r?.startTime||r.startTime4096){a=l}const u=sameOrigin(r,a);const d=isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(r.url);switch(n){case"origin":return l!=null?l:stripURLForReferrer(s,true);case"unsafe-url":return a;case"same-origin":return u?l:"no-referrer";case"origin-when-cross-origin":return u?a:l;case"strict-origin-when-cross-origin":{const n=requestCurrentURL(r);if(sameOrigin(a,n)){return a}if(isURLPotentiallyTrustworthy(a)&&!isURLPotentiallyTrustworthy(n)){return"no-referrer"}return l}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":l}}function stripURLForReferrer(r,n){Q(r instanceof URL);r=new URL(r);if(r.protocol==="file:"||r.protocol==="about:"||r.protocol==="blank:"){return"no-referrer"}r.username="";r.password="";r.hash="";if(n){r.pathname="";r.search=""}return r}function isURLPotentiallyTrustworthy(r){if(!(r instanceof URL)){return false}if(r.href==="about:blank"||r.href==="about:srcdoc"){return true}if(r.protocol==="data:")return true;if(r.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(r.origin);function isOriginPotentiallyTrustworthy(r){if(r==null||r==="null")return false;const n=new URL(r);if(n.protocol==="https:"||n.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||(n.hostname==="localhost"||n.hostname.includes("localhost."))||n.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(r,n){if(x===undefined){return true}const s=parseMetadata(n);if(s==="no metadata"){return true}if(s.length===0){return true}const a=getStrongestMetadata(s);const l=filterMetadataListByAlgorithm(s,a);for(const n of l){const s=n.algo;const a=n.hash;let l=x.createHash(s).update(r).digest("base64");if(l[l.length-1]==="="){if(l[l.length-2]==="="){l=l.slice(0,-2)}else{l=l.slice(0,-1)}}if(compareBase64Mixed(l,a)){return true}}return false}const T=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(r){const n=[];let s=true;for(const a of r.split(" ")){s=false;const r=T.exec(a);if(r===null||r.groups===undefined||r.groups.algo===undefined){continue}const l=r.groups.algo.toLowerCase();if(N.includes(l)){n.push(r.groups)}}if(s===true){return"no metadata"}return n}function getStrongestMetadata(r){let n=r[0].algo;if(n[3]==="5"){return n}for(let s=1;s{r=s;n=a}));return{promise:s,resolve:r,reject:n}}function isAborted(r){return r.controller.state==="aborted"}function isCancelled(r){return r.controller.state==="aborted"||r.controller.state==="terminated"}function normalizeMethod(r){return S[r.toLowerCase()]??r}function serializeJavascriptValueToJSONString(r){const n=JSON.stringify(r);if(n===undefined){throw new TypeError("Value is not JSON serializable")}Q(typeof n==="string");return n}const k=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(r,n,s=0,a=1){class FastIterableIterator{#V;#j;#W;constructor(r,n){this.#V=r;this.#j=n;this.#W=0}next(){if(typeof this!=="object"||this===null||!(#V in this)){throw new TypeError(`'next' called on an object that does not implement interface ${r} Iterator.`)}const l=this.#W;const u=this.#V[n];const d=u.length;if(l>=d){return{value:undefined,done:true}}const{[s]:A,[a]:p}=u[l];this.#W=l+1;let f;switch(this.#j){case"key":f=A;break;case"value":f=p;break;case"key+value":f=[A,p];break}return{value:f,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,k);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${r} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(r,n){return new FastIterableIterator(r,n)}}function iteratorMixin(r,n,s,a=0,l=1){const u=createIterator(r,s,a,l);const d={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){R.brandCheck(this,n);return u(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){R.brandCheck(this,n);return u(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){R.brandCheck(this,n);return u(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(s,a=globalThis){R.brandCheck(this,n);R.argumentLengthCheck(arguments,1,`${r}.forEach`);if(typeof s!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${r}': parameter 1 is not of type 'Function'.`)}for(const{0:r,1:n}of u(this,"key+value")){s.call(a,n,r,this)}}}};return Object.defineProperties(n.prototype,{...d,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:d.entries.value}})}async function fullyReadBody(r,n,s){const a=n;const l=s;let u;try{u=r.stream.getReader()}catch(r){l(r);return}try{a(await readAllBytes(u))}catch(r){l(r)}}function isReadableStreamLike(r){return r instanceof ReadableStream||r[Symbol.toStringTag]==="ReadableStream"&&typeof r.tee==="function"}function readableStreamClose(r){try{r.close();r.byobRequest?.respond(0)}catch(r){if(!r.message.includes("Controller is already closed")&&!r.message.includes("ReadableStream is already closed")){throw r}}}const _=/[^\x00-\xFF]/;function isomorphicEncode(r){Q(!_.test(r));return r}async function readAllBytes(r){const n=[];let s=0;while(true){const{done:a,value:l}=await r.read();if(a){return Buffer.concat(n,s)}if(!v(l)){throw new TypeError("Received non-Uint8Array chunk")}n.push(l);s+=l.length}}function urlIsLocal(r){Q("protocol"in r);const n=r.protocol;return n==="about:"||n==="blob:"||n==="data:"}function urlHasHttpsScheme(r){return typeof r==="string"&&r[5]===":"&&r[0]==="h"&&r[1]==="t"&&r[2]==="t"&&r[3]==="p"&&r[4]==="s"||r.protocol==="https:"}function urlIsHttpHttpsScheme(r){Q("protocol"in r);const n=r.protocol;return n==="http:"||n==="https:"}function simpleRangeHeaderValue(r,n){const s=r;if(!s.startsWith("bytes")){return"failure"}const a={position:5};if(n){f((r=>r==="\t"||r===" "),s,a)}if(s.charCodeAt(a.position)!==61){return"failure"}a.position++;if(n){f((r=>r==="\t"||r===" "),s,a)}const l=f((r=>{const n=r.charCodeAt(0);return n>=48&&n<=57}),s,a);const u=l.length?Number(l):null;if(n){f((r=>r==="\t"||r===" "),s,a)}if(s.charCodeAt(a.position)!==45){return"failure"}a.position++;if(n){f((r=>r==="\t"||r===" "),s,a)}const d=f((r=>{const n=r.charCodeAt(0);return n>=48&&n<=57}),s,a);const A=d.length?Number(d):null;if(a.positionA){return"failure"}return{rangeStartValue:u,rangeEndValue:A}}function buildContentRange(r,n,s){let a="bytes ";a+=isomorphicEncode(`${r}`);a+="-";a+=isomorphicEncode(`${n}`);a+="/";a+=isomorphicEncode(`${s}`);return a}class InflateStream extends a{#Y;constructor(r){super();this.#Y=r}_transform(r,n,s){if(!this._inflateStream){if(r.length===0){s();return}this._inflateStream=(r[0]&15)===8?l.createInflate(this.#Y):l.createInflateRaw(this.#Y);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(r=>this.destroy(r)))}this._inflateStream.write(r,n,s)}_final(r){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}r()}}function createInflate(r){return new InflateStream(r)}function extractMimeType(r){let n=null;let s=null;let a=null;const l=getDecodeSplit("content-type",r);if(l===null){return"failure"}for(const r of l){const l=b(r);if(l==="failure"||l.essence==="*/*"){continue}a=l;if(a.essence!==s){n=null;if(a.parameters.has("charset")){n=a.parameters.get("charset")}s=a.essence}else if(!a.parameters.has("charset")&&n!==null){a.parameters.set("charset",n)}}if(a==null){return"failure"}return a}function gettingDecodingSplitting(r){const n=r;const s={position:0};const a=[];let l="";while(s.positionr!=='"'&&r!==","),n,s);if(s.positionr===9||r===32));a.push(l);l=""}return a}function getDecodeSplit(r,n){const s=n.get(r,true);if(s===null){return null}return gettingDecodingSplitting(s)}const P=new TextDecoder;function utf8DecodeBytes(r){if(r.length===0){return""}if(r[0]===239&&r[1]===187&&r[2]===191){r=r.subarray(3)}const n=P.decode(r);return n}class EnvironmentSettingsObjectBase{get baseUrl(){return p()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const F=new EnvironmentSettingsObject;r.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:B,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:I,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:w,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:D,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:F}},45893:(r,n,s)=>{const{types:a,inspect:l}=s(57975);const{markAsUncloneable:u}=s(75919);const{toUSVString:d}=s(3440);const A={};A.converters={};A.util={};A.errors={};A.errors.exception=function(r){return new TypeError(`${r.header}: ${r.message}`)};A.errors.conversionFailed=function(r){const n=r.types.length===1?"":" one of";const s=`${r.argument} could not be converted to`+`${n}: ${r.types.join(", ")}.`;return A.errors.exception({header:r.prefix,message:s})};A.errors.invalidArgument=function(r){return A.errors.exception({header:r.prefix,message:`"${r.value}" is an invalid ${r.type}.`})};A.brandCheck=function(r,n,s){if(s?.strict!==false){if(!(r instanceof n)){const r=new TypeError("Illegal invocation");r.code="ERR_INVALID_THIS";throw r}}else{if(r?.[Symbol.toStringTag]!==n.prototype[Symbol.toStringTag]){const r=new TypeError("Illegal invocation");r.code="ERR_INVALID_THIS";throw r}}};A.argumentLengthCheck=function({length:r},n,s){if(r{});A.util.ConvertToInt=function(r,n,s,a){let l;let u;if(n===64){l=Math.pow(2,53)-1;if(s==="unsigned"){u=0}else{u=Math.pow(-2,53)+1}}else if(s==="unsigned"){u=0;l=Math.pow(2,n)-1}else{u=Math.pow(-2,n)-1;l=Math.pow(2,n-1)-1}let d=Number(r);if(d===0){d=0}if(a?.enforceRange===true){if(Number.isNaN(d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){throw A.errors.exception({header:"Integer conversion",message:`Could not convert ${A.util.Stringify(r)} to an integer.`})}d=A.util.IntegerPart(d);if(dl){throw A.errors.exception({header:"Integer conversion",message:`Value must be between ${u}-${l}, got ${d}.`})}return d}if(!Number.isNaN(d)&&a?.clamp===true){d=Math.min(Math.max(d,u),l);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=A.util.IntegerPart(d);d=d%Math.pow(2,n);if(s==="signed"&&d>=Math.pow(2,n)-1){return d-Math.pow(2,n)}return d};A.util.IntegerPart=function(r){const n=Math.floor(Math.abs(r));if(r<0){return-1*n}return n};A.util.Stringify=function(r){const n=A.util.Type(r);switch(n){case"Symbol":return`Symbol(${r.description})`;case"Object":return l(r);case"String":return`"${r}"`;default:return`${r}`}};A.sequenceConverter=function(r){return(n,s,a,l)=>{if(A.util.Type(n)!=="Object"){throw A.errors.exception({header:s,message:`${a} (${A.util.Stringify(n)}) is not iterable.`})}const u=typeof l==="function"?l():n?.[Symbol.iterator]?.();const d=[];let p=0;if(u===undefined||typeof u.next!=="function"){throw A.errors.exception({header:s,message:`${a} is not iterable.`})}while(true){const{done:n,value:l}=u.next();if(n){break}d.push(r(l,s,`${a}[${p++}]`))}return d}};A.recordConverter=function(r,n){return(s,l,u)=>{if(A.util.Type(s)!=="Object"){throw A.errors.exception({header:l,message:`${u} ("${A.util.Type(s)}") is not an Object.`})}const d={};if(!a.isProxy(s)){const a=[...Object.getOwnPropertyNames(s),...Object.getOwnPropertySymbols(s)];for(const A of a){const a=r(A,l,u);const p=n(s[A],l,u);d[a]=p}return d}const p=Reflect.ownKeys(s);for(const a of p){const A=Reflect.getOwnPropertyDescriptor(s,a);if(A?.enumerable){const A=r(a,l,u);const p=n(s[a],l,u);d[A]=p}}return d}};A.interfaceConverter=function(r){return(n,s,a,l)=>{if(l?.strict!==false&&!(n instanceof r)){throw A.errors.exception({header:s,message:`Expected ${a} ("${A.util.Stringify(n)}") to be an instance of ${r.name}.`})}return n}};A.dictionaryConverter=function(r){return(n,s,a)=>{const l=A.util.Type(n);const u={};if(l==="Null"||l==="Undefined"){return u}else if(l!=="Object"){throw A.errors.exception({header:s,message:`Expected ${n} to be one of: Null, Undefined, Object.`})}for(const l of r){const{key:r,defaultValue:d,required:p,converter:f}=l;if(p===true){if(!Object.hasOwn(n,r)){throw A.errors.exception({header:s,message:`Missing required key "${r}".`})}}let g=n[r];const y=Object.hasOwn(l,"defaultValue");if(y&&g!==null){g??=d()}if(p||y||g!==undefined){g=f(g,s,`${a}.${r}`);if(l.allowedValues&&!l.allowedValues.includes(g)){throw A.errors.exception({header:s,message:`${g} is not an accepted type. Expected one of ${l.allowedValues.join(", ")}.`})}u[r]=g}}return u}};A.nullableConverter=function(r){return(n,s,a)=>{if(n===null){return n}return r(n,s,a)}};A.converters.DOMString=function(r,n,s,a){if(r===null&&a?.legacyNullToEmptyString){return""}if(typeof r==="symbol"){throw A.errors.exception({header:n,message:`${s} is a symbol, which cannot be converted to a DOMString.`})}return String(r)};A.converters.ByteString=function(r,n,s){const a=A.converters.DOMString(r,n,s);for(let r=0;r255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${r} has a value of ${a.charCodeAt(r)} which is greater than 255.`)}}return a};A.converters.USVString=d;A.converters.boolean=function(r){const n=Boolean(r);return n};A.converters.any=function(r){return r};A.converters["long long"]=function(r,n,s){const a=A.util.ConvertToInt(r,64,"signed",undefined,n,s);return a};A.converters["unsigned long long"]=function(r,n,s){const a=A.util.ConvertToInt(r,64,"unsigned",undefined,n,s);return a};A.converters["unsigned long"]=function(r,n,s){const a=A.util.ConvertToInt(r,32,"unsigned",undefined,n,s);return a};A.converters["unsigned short"]=function(r,n,s,a){const l=A.util.ConvertToInt(r,16,"unsigned",a,n,s);return l};A.converters.ArrayBuffer=function(r,n,s,l){if(A.util.Type(r)!=="Object"||!a.isAnyArrayBuffer(r)){throw A.errors.conversionFailed({prefix:n,argument:`${s} ("${A.util.Stringify(r)}")`,types:["ArrayBuffer"]})}if(l?.allowShared===false&&a.isSharedArrayBuffer(r)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.resizable||r.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.TypedArray=function(r,n,s,l,u){if(A.util.Type(r)!=="Object"||!a.isTypedArray(r)||r.constructor.name!==n.name){throw A.errors.conversionFailed({prefix:s,argument:`${l} ("${A.util.Stringify(r)}")`,types:[n.name]})}if(u?.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.buffer.resizable||r.buffer.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.DataView=function(r,n,s,l){if(A.util.Type(r)!=="Object"||!a.isDataView(r)){throw A.errors.exception({header:n,message:`${s} is not a DataView.`})}if(l?.allowShared===false&&a.isSharedArrayBuffer(r.buffer)){throw A.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(r.buffer.resizable||r.buffer.growable){throw A.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return r};A.converters.BufferSource=function(r,n,s,l){if(a.isAnyArrayBuffer(r)){return A.converters.ArrayBuffer(r,n,s,{...l,allowShared:false})}if(a.isTypedArray(r)){return A.converters.TypedArray(r,r.constructor,n,s,{...l,allowShared:false})}if(a.isDataView(r)){return A.converters.DataView(r,n,s,{...l,allowShared:false})}throw A.errors.conversionFailed({prefix:n,argument:`${s} ("${A.util.Stringify(r)}")`,types:["BufferSource"]})};A.converters["sequence"]=A.sequenceConverter(A.converters.ByteString);A.converters["sequence>"]=A.sequenceConverter(A.converters["sequence"]);A.converters["record"]=A.recordConverter(A.converters.ByteString,A.converters.ByteString);r.exports={webidl:A}},22607:r=>{function getEncoding(r){if(!r){return"failure"}switch(r.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}r.exports={getEncoding:getEncoding}},48355:(r,n,s)=>{const{staticPropertyDescriptors:a,readOperation:l,fireAProgressEvent:u}=s(53610);const{kState:d,kError:A,kResult:p,kEvents:f,kAborted:g}=s(20961);const{webidl:y}=s(45893);const{kEnumerableProperty:b}=s(3440);class FileReader extends EventTarget{constructor(){super();this[d]="empty";this[p]=null;this[A]=null;this[f]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");r=y.converters.Blob(r,{strict:false});l(this,r,"ArrayBuffer")}readAsBinaryString(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");r=y.converters.Blob(r,{strict:false});l(this,r,"BinaryString")}readAsText(r,n=undefined){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsText");r=y.converters.Blob(r,{strict:false});if(n!==undefined){n=y.converters.DOMString(n,"FileReader.readAsText","encoding")}l(this,r,"Text",n)}readAsDataURL(r){y.brandCheck(this,FileReader);y.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");r=y.converters.Blob(r,{strict:false});l(this,r,"DataURL")}abort(){if(this[d]==="empty"||this[d]==="done"){this[p]=null;return}if(this[d]==="loading"){this[d]="done";this[p]=null}this[g]=true;u("abort",this);if(this[d]!=="loading"){u("loadend",this)}}get readyState(){y.brandCheck(this,FileReader);switch(this[d]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){y.brandCheck(this,FileReader);return this[p]}get error(){y.brandCheck(this,FileReader);return this[A]}get onloadend(){y.brandCheck(this,FileReader);return this[f].loadend}set onloadend(r){y.brandCheck(this,FileReader);if(this[f].loadend){this.removeEventListener("loadend",this[f].loadend)}if(typeof r==="function"){this[f].loadend=r;this.addEventListener("loadend",r)}else{this[f].loadend=null}}get onerror(){y.brandCheck(this,FileReader);return this[f].error}set onerror(r){y.brandCheck(this,FileReader);if(this[f].error){this.removeEventListener("error",this[f].error)}if(typeof r==="function"){this[f].error=r;this.addEventListener("error",r)}else{this[f].error=null}}get onloadstart(){y.brandCheck(this,FileReader);return this[f].loadstart}set onloadstart(r){y.brandCheck(this,FileReader);if(this[f].loadstart){this.removeEventListener("loadstart",this[f].loadstart)}if(typeof r==="function"){this[f].loadstart=r;this.addEventListener("loadstart",r)}else{this[f].loadstart=null}}get onprogress(){y.brandCheck(this,FileReader);return this[f].progress}set onprogress(r){y.brandCheck(this,FileReader);if(this[f].progress){this.removeEventListener("progress",this[f].progress)}if(typeof r==="function"){this[f].progress=r;this.addEventListener("progress",r)}else{this[f].progress=null}}get onload(){y.brandCheck(this,FileReader);return this[f].load}set onload(r){y.brandCheck(this,FileReader);if(this[f].load){this.removeEventListener("load",this[f].load)}if(typeof r==="function"){this[f].load=r;this.addEventListener("load",r)}else{this[f].load=null}}get onabort(){y.brandCheck(this,FileReader);return this[f].abort}set onabort(r){y.brandCheck(this,FileReader);if(this[f].abort){this.removeEventListener("abort",this[f].abort)}if(typeof r==="function"){this[f].abort=r;this.addEventListener("abort",r)}else{this[f].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:a,LOADING:a,DONE:a,readAsArrayBuffer:b,readAsBinaryString:b,readAsText:b,readAsDataURL:b,abort:b,readyState:b,result:b,error:b,onloadstart:b,onprogress:b,onload:b,onabort:b,onerror:b,onloadend:b,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:a,LOADING:a,DONE:a});r.exports={FileReader:FileReader}},88573:(r,n,s)=>{const{webidl:a}=s(45893);const l=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(r,n={}){r=a.converters.DOMString(r,"ProgressEvent constructor","type");n=a.converters.ProgressEventInit(n??{});super(r,n);this[l]={lengthComputable:n.lengthComputable,loaded:n.loaded,total:n.total}}get lengthComputable(){a.brandCheck(this,ProgressEvent);return this[l].lengthComputable}get loaded(){a.brandCheck(this,ProgressEvent);return this[l].loaded}get total(){a.brandCheck(this,ProgressEvent);return this[l].total}}a.converters.ProgressEventInit=a.dictionaryConverter([{key:"lengthComputable",converter:a.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:a.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}]);r.exports={ProgressEvent:ProgressEvent}},20961:r=>{r.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},53610:(r,n,s)=>{const{kState:a,kError:l,kResult:u,kAborted:d,kLastProgressEventFired:A}=s(20961);const{ProgressEvent:p}=s(88573);const{getEncoding:f}=s(22607);const{serializeAMimeType:g,parseMIMEType:y}=s(51900);const{types:b}=s(57975);const{StringDecoder:C}=s(13193);const{btoa:w}=s(4573);const B={enumerable:true,writable:false,configurable:false};function readOperation(r,n,s,p){if(r[a]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}r[a]="loading";r[u]=null;r[l]=null;const f=n.stream();const g=f.getReader();const y=[];let C=g.read();let w=true;(async()=>{while(!r[d]){try{const{done:f,value:B}=await C;if(w&&!r[d]){queueMicrotask((()=>{fireAProgressEvent("loadstart",r)}))}w=false;if(!f&&b.isUint8Array(B)){y.push(B);if((r[A]===undefined||Date.now()-r[A]>=50)&&!r[d]){r[A]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",r)}))}C=g.read()}else if(f){queueMicrotask((()=>{r[a]="done";try{const a=packageData(y,s,n.type,p);if(r[d]){return}r[u]=a;fireAProgressEvent("load",r)}catch(n){r[l]=n;fireAProgressEvent("error",r)}if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}catch(n){if(r[d]){return}queueMicrotask((()=>{r[a]="done";r[l]=n;fireAProgressEvent("error",r);if(r[a]!=="loading"){fireAProgressEvent("loadend",r)}}));break}}})()}function fireAProgressEvent(r,n){const s=new p(r,{bubbles:false,cancelable:false});n.dispatchEvent(s)}function packageData(r,n,s,a){switch(n){case"DataURL":{let n="data:";const a=y(s||"application/octet-stream");if(a!=="failure"){n+=g(a)}n+=";base64,";const l=new C("latin1");for(const s of r){n+=w(l.write(s))}n+=w(l.end());return n}case"Text":{let n="failure";if(a){n=f(a)}if(n==="failure"&&s){const r=y(s);if(r!=="failure"){n=f(r.parameters.get("charset"))}}if(n==="failure"){n="UTF-8"}return decode(r,n)}case"ArrayBuffer":{const n=combineByteSequences(r);return n.buffer}case"BinaryString":{let n="";const s=new C("latin1");for(const a of r){n+=s.write(a)}n+=s.end();return n}}}function decode(r,n){const s=combineByteSequences(r);const a=BOMSniffing(s);let l=0;if(a!==null){n=a;l=a==="UTF-8"?3:2}const u=s.slice(l);return new TextDecoder(n).decode(u)}function BOMSniffing(r){const[n,s,a]=r;if(n===239&&s===187&&a===191){return"UTF-8"}else if(n===254&&s===255){return"UTF-16BE"}else if(n===255&&s===254){return"UTF-16LE"}return null}function combineByteSequences(r){const n=r.reduce(((r,n)=>r+n.byteLength),0);let s=0;return r.reduce(((r,n)=>{r.set(n,s);s+=n.byteLength;return r}),new Uint8Array(n))}r.exports={staticPropertyDescriptors:B,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},86897:(r,n,s)=>{const{uid:a,states:l,sentCloseFrameState:u,emptyBuffer:d,opcodes:A}=s(20736);const{kReadyState:p,kSentClose:f,kByteParser:g,kReceivedClose:y,kResponse:b}=s(61216);const{fireEvent:C,failWebsocketConnection:w,isClosing:B,isClosed:I,isEstablished:S,parseExtensions:Q}=s(98625);const{channels:v}=s(42414);const{CloseEvent:R}=s(15188);const{makeRequest:N}=s(9967);const{fetching:x}=s(54398);const{Headers:D,getHeadersList:T}=s(60660);const{getDecodeSplit:k}=s(73168);const{WebsocketFrameSend:_}=s(3264);let P;try{P=s(77598)}catch{}function establishWebSocketConnection(r,n,s,l,u,d){const A=r;A.protocol=r.protocol==="ws:"?"http:":"https:";const p=N({urlList:[A],client:s,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const r=T(new D(d.headers));p.headersList=r}const f=P.randomBytes(16).toString("base64");p.headersList.append("sec-websocket-key",f);p.headersList.append("sec-websocket-version","13");for(const r of n){p.headersList.append("sec-websocket-protocol",r)}const g="permessage-deflate; client_max_window_bits";p.headersList.append("sec-websocket-extensions",g);const y=x({request:p,useParallelQueue:true,dispatcher:d.dispatcher,processResponse(r){if(r.type==="error"||r.status!==101){w(l,"Received network error or non-101 status code.");return}if(n.length!==0&&!r.headersList.get("Sec-WebSocket-Protocol")){w(l,"Server did not respond with sent protocols.");return}if(r.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){w(l,'Server did not set Upgrade header to "websocket".');return}if(r.headersList.get("Connection")?.toLowerCase()!=="upgrade"){w(l,'Server did not set Connection header to "upgrade".');return}const s=r.headersList.get("Sec-WebSocket-Accept");const d=P.createHash("sha1").update(f+a).digest("base64");if(s!==d){w(l,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const A=r.headersList.get("Sec-WebSocket-Extensions");let g;if(A!==null){g=Q(A);if(!g.has("permessage-deflate")){w(l,"Sec-WebSocket-Extensions header does not match.");return}}const y=r.headersList.get("Sec-WebSocket-Protocol");if(y!==null){const r=k("sec-websocket-protocol",p.headersList);if(!r.includes(y)){w(l,"Protocol was not set in the opening handshake.");return}}r.socket.on("data",onSocketData);r.socket.on("close",onSocketClose);r.socket.on("error",onSocketError);if(v.open.hasSubscribers){v.open.publish({address:r.socket.address(),protocol:y,extensions:A})}u(r,g)}});return y}function closeWebSocketConnection(r,n,s,a){if(B(r)||I(r)){}else if(!S(r)){w(r,"Connection was closed before it was established.");r[p]=l.CLOSING}else if(r[f]===u.NOT_SENT){r[f]=u.PROCESSING;const g=new _;if(n!==undefined&&s===undefined){g.frameData=Buffer.allocUnsafe(2);g.frameData.writeUInt16BE(n,0)}else if(n!==undefined&&s!==undefined){g.frameData=Buffer.allocUnsafe(2+a);g.frameData.writeUInt16BE(n,0);g.frameData.write(s,2,"utf-8")}else{g.frameData=d}const y=r[b].socket;y.write(g.createFrame(A.CLOSE));r[f]=u.SENT;r[p]=l.CLOSING}else{r[p]=l.CLOSING}}function onSocketData(r){if(!this.ws[g].write(r)){this.pause()}}function onSocketClose(){const{ws:r}=this;const{[b]:n}=r;n.socket.off("data",onSocketData);n.socket.off("close",onSocketClose);n.socket.off("error",onSocketError);const s=r[f]===u.SENT&&r[y];let a=1005;let d="";const A=r[g].closingInfo;if(A&&!A.error){a=A.code??1005;d=A.reason}else if(!r[y]){a=1006}r[p]=l.CLOSED;C("close",r,((r,n)=>new R(r,n)),{wasClean:s,code:a,reason:d});if(v.close.hasSubscribers){v.close.publish({websocket:r,code:a,reason:d})}}function onSocketError(r){const{ws:n}=this;n[p]=l.CLOSING;if(v.socketError.hasSubscribers){v.socketError.publish(r)}this.destroy()}r.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},20736:r=>{const n="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const s={enumerable:true,writable:false,configurable:false};const a={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const l={NOT_SENT:0,PROCESSING:1,SENT:2};const u={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const A={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const p=Buffer.allocUnsafe(0);const f={string:1,typedArray:2,arrayBuffer:3,blob:4};r.exports={uid:n,sentCloseFrameState:l,staticPropertyDescriptors:s,states:a,opcodes:u,maxUnsigned16Bit:d,parserStates:A,emptyBuffer:p,sendHints:f}},15188:(r,n,s)=>{const{webidl:a}=s(45893);const{kEnumerableProperty:l}=s(3440);const{kConstruct:u}=s(36443);const{MessagePort:d}=s(75919);class MessageEvent extends Event{#J;constructor(r,n={}){if(r===u){super(arguments[1],arguments[2]);a.util.markAsUncloneable(this);return}const s="MessageEvent constructor";a.argumentLengthCheck(arguments,1,s);r=a.converters.DOMString(r,s,"type");n=a.converters.MessageEventInit(n,s,"eventInitDict");super(r,n);this.#J=n;a.util.markAsUncloneable(this)}get data(){a.brandCheck(this,MessageEvent);return this.#J.data}get origin(){a.brandCheck(this,MessageEvent);return this.#J.origin}get lastEventId(){a.brandCheck(this,MessageEvent);return this.#J.lastEventId}get source(){a.brandCheck(this,MessageEvent);return this.#J.source}get ports(){a.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#J.ports)){Object.freeze(this.#J.ports)}return this.#J.ports}initMessageEvent(r,n=false,s=false,l=null,u="",d="",A=null,p=[]){a.brandCheck(this,MessageEvent);a.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(r,{bubbles:n,cancelable:s,data:l,origin:u,lastEventId:d,source:A,ports:p})}static createFastMessageEvent(r,n){const s=new MessageEvent(u,r,n);s.#J=n;s.#J.data??=null;s.#J.origin??="";s.#J.lastEventId??="";s.#J.source??=null;s.#J.ports??=[];return s}}const{createFastMessageEvent:A}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#J;constructor(r,n={}){const s="CloseEvent constructor";a.argumentLengthCheck(arguments,1,s);r=a.converters.DOMString(r,s,"type");n=a.converters.CloseEventInit(n);super(r,n);this.#J=n;a.util.markAsUncloneable(this)}get wasClean(){a.brandCheck(this,CloseEvent);return this.#J.wasClean}get code(){a.brandCheck(this,CloseEvent);return this.#J.code}get reason(){a.brandCheck(this,CloseEvent);return this.#J.reason}}class ErrorEvent extends Event{#J;constructor(r,n){const s="ErrorEvent constructor";a.argumentLengthCheck(arguments,1,s);super(r,n);a.util.markAsUncloneable(this);r=a.converters.DOMString(r,s,"type");n=a.converters.ErrorEventInit(n??{});this.#J=n}get message(){a.brandCheck(this,ErrorEvent);return this.#J.message}get filename(){a.brandCheck(this,ErrorEvent);return this.#J.filename}get lineno(){a.brandCheck(this,ErrorEvent);return this.#J.lineno}get colno(){a.brandCheck(this,ErrorEvent);return this.#J.colno}get error(){a.brandCheck(this,ErrorEvent);return this.#J.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:l,origin:l,lastEventId:l,source:l,ports:l,initMessageEvent:l});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:l,code:l,wasClean:l});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:l,filename:l,lineno:l,colno:l,error:l});a.converters.MessagePort=a.interfaceConverter(d);a.converters["sequence"]=a.sequenceConverter(a.converters.MessagePort);const p=[{key:"bubbles",converter:a.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:a.converters.boolean,defaultValue:()=>false},{key:"composed",converter:a.converters.boolean,defaultValue:()=>false}];a.converters.MessageEventInit=a.dictionaryConverter([...p,{key:"data",converter:a.converters.any,defaultValue:()=>null},{key:"origin",converter:a.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:a.converters.DOMString,defaultValue:()=>""},{key:"source",converter:a.nullableConverter(a.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:a.converters["sequence"],defaultValue:()=>new Array(0)}]);a.converters.CloseEventInit=a.dictionaryConverter([...p,{key:"wasClean",converter:a.converters.boolean,defaultValue:()=>false},{key:"code",converter:a.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:a.converters.USVString,defaultValue:()=>""}]);a.converters.ErrorEventInit=a.dictionaryConverter([...p,{key:"message",converter:a.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:a.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:a.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:a.converters.any}]);r.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:A}},3264:(r,n,s)=>{const{maxUnsigned16Bit:a}=s(20736);const l=16386;let u;let d=null;let A=l;try{u=s(77598)}catch{u={randomFillSync:function randomFillSync(r,n,s){for(let n=0;na){d+=8;u=127}else if(l>125){d+=2;u=126}const A=Buffer.allocUnsafe(l+d);A[0]=A[1]=0;A[0]|=128;A[0]=(A[0]&240)+r; +/*! ws. MIT License. Einar Otto Stangvik */A[d-4]=s[0];A[d-3]=s[1];A[d-2]=s[2];A[d-1]=s[3];A[1]=u;if(u===126){A.writeUInt16BE(l,2)}else if(u===127){A[2]=A[3]=0;A.writeUIntBE(l,4,6)}A[1]|=128;for(let r=0;r{const{createInflateRaw:a,Z_DEFAULT_WINDOWBITS:l}=s(38522);const{isValidClientWindowBits:u}=s(98625);const{MessageSizeExceededError:d}=s(68707);const A=Buffer.from([0,0,255,255]);const p=Symbol("kBuffer");const f=Symbol("kLength");const g=4*1024*1024;class PerMessageDeflate{#$;#p={};#S=false;#K=null;constructor(r){this.#p.serverNoContextTakeover=r.has("server_no_context_takeover");this.#p.serverMaxWindowBits=r.get("server_max_window_bits")}decompress(r,n,s){if(this.#S){s(new d);return}if(!this.#$){let r=l;if(this.#p.serverMaxWindowBits){if(!u(this.#p.serverMaxWindowBits)){s(new Error("Invalid server_max_window_bits"));return}r=Number.parseInt(this.#p.serverMaxWindowBits)}try{this.#$=a({windowBits:r})}catch(r){s(r);return}this.#$[p]=[];this.#$[f]=0;this.#$.on("data",(r=>{if(this.#S){return}this.#$[f]+=r.length;if(this.#$[f]>g){this.#S=true;this.#$.removeAllListeners();this.#$.destroy();this.#$=null;if(this.#K){const r=this.#K;this.#K=null;r(new d)}return}this.#$[p].push(r)}));this.#$.on("error",(r=>{this.#$=null;s(r)}))}this.#K=s;this.#$.write(r);if(n){this.#$.write(A)}this.#$.flush((()=>{if(this.#S||!this.#$){return}const r=Buffer.concat(this.#$[p],this.#$[f]);this.#$[p].length=0;this.#$[f]=0;this.#K=null;s(null,r)}))}}r.exports={PerMessageDeflate:PerMessageDeflate}},81652:(r,n,s)=>{const{Writable:a}=s(57075);const l=s(34589);const{parserStates:u,opcodes:d,states:A,emptyBuffer:p,sentCloseFrameState:f}=s(20736);const{kReadyState:g,kSentClose:y,kResponse:b,kReceivedClose:C}=s(61216);const{channels:w}=s(42414);const{isValidStatusCode:B,isValidOpcode:I,failWebsocketConnection:S,websocketMessageReceived:Q,utf8Decode:v,isControlFrame:R,isTextBinaryFrame:N,isContinuationFrame:x}=s(98625);const{WebsocketFrameSend:D}=s(3264);const{closeWebSocketConnection:T}=s(86897);const{PerMessageDeflate:k}=s(19469);class ByteParser extends a{#X=[];#Z=0;#ee=false;#b=u.INFO;#te={};#re=[];#ne;constructor(r,n){super();this.ws=r;this.#ne=n==null?new Map:n;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new k(n))}}_write(r,n,s){this.#X.push(r);this.#Z+=r.length;this.#ee=true;this.run(s)}run(r){while(this.#ee){if(this.#b===u.INFO){if(this.#Z<2){return r()}const n=this.consume(2);const s=(n[0]&128)!==0;const a=n[0]&15;const l=(n[1]&128)===128;const A=!s&&a!==d.CONTINUATION;const p=n[1]&127;const f=n[0]&64;const g=n[0]&32;const y=n[0]&16;if(!I(a)){S(this.ws,"Invalid opcode received");return r()}if(l){S(this.ws,"Frame cannot be masked");return r()}if(f!==0&&!this.#ne.has("permessage-deflate")){S(this.ws,"Expected RSV1 to be clear.");return}if(g!==0||y!==0){S(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(A&&!N(a)){S(this.ws,"Invalid frame type was fragmented.");return}if(N(a)&&this.#re.length>0){S(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&A){S(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((p>125||A)&&R(a)){S(this.ws,"Control frame either too large or fragmented");return}if(x(a)&&this.#re.length===0&&!this.#te.compressed){S(this.ws,"Unexpected continuation frame");return}if(p<=125){this.#te.payloadLength=p;this.#b=u.READ_DATA}else if(p===126){this.#b=u.PAYLOADLENGTH_16}else if(p===127){this.#b=u.PAYLOADLENGTH_64}if(N(a)){this.#te.binaryType=a;this.#te.compressed=f!==0}this.#te.opcode=a;this.#te.masked=l;this.#te.fin=s;this.#te.fragmented=A}else if(this.#b===u.PAYLOADLENGTH_16){if(this.#Z<2){return r()}const n=this.consume(2);this.#te.payloadLength=n.readUInt16BE(0);this.#b=u.READ_DATA}else if(this.#b===u.PAYLOADLENGTH_64){if(this.#Z<8){return r()}const n=this.consume(8);const s=n.readUInt32BE(0);const a=n.readUInt32BE(4);if(s!==0||a>2**31-1){S(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=a;this.#b=u.READ_DATA}else if(this.#b===u.READ_DATA){if(this.#Z{if(n){S(this.ws,n.message);return}this.#re.push(s);if(!this.#te.fin){this.#b=u.INFO;this.#ee=true;this.run(r);return}Q(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#b=u.INFO;this.#re.length=0;this.run(r)}));this.#ee=false;break}}}}}consume(r){if(r>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(r===0){return p}if(this.#X[0].length===r){this.#Z-=this.#X[0].length;return this.#X.shift()}const n=Buffer.allocUnsafe(r);let s=0;while(s!==r){const a=this.#X[0];const{length:l}=a;if(l+s===r){n.set(this.#X.shift(),s);break}else if(l+s>r){n.set(a.subarray(0,r-s),s);this.#X[0]=a.subarray(r-s);break}else{n.set(this.#X.shift(),s);s+=a.length}}this.#Z-=r;return n}parseCloseBody(r){l(r.length!==1);let n;if(r.length>=2){n=r.readUInt16BE(0)}if(n!==undefined&&!B(n)){return{code:1002,reason:"Invalid status code",error:true}}let s=r.subarray(2);if(s[0]===239&&s[1]===187&&s[2]===191){s=s.subarray(3)}try{s=v(s)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:n,reason:s,error:false}}parseControlFrame(r){const{opcode:n,payloadLength:s}=this.#te;if(n===d.CLOSE){if(s===1){S(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(r);if(this.#te.closeInfo.error){const{code:r,reason:n}=this.#te.closeInfo;T(this.ws,r,n,n.length);S(this.ws,n);return false}if(this.ws[y]!==f.SENT){let r=p;if(this.#te.closeInfo.code){r=Buffer.allocUnsafe(2);r.writeUInt16BE(this.#te.closeInfo.code,0)}const n=new D(r);this.ws[b].socket.write(n.createFrame(d.CLOSE),(r=>{if(!r){this.ws[y]=f.SENT}}))}this.ws[g]=A.CLOSING;this.ws[C]=true;return false}else if(n===d.PING){if(!this.ws[C]){const n=new D(r);this.ws[b].socket.write(n.createFrame(d.PONG));if(w.ping.hasSubscribers){w.ping.publish({payload:r})}}}else if(n===d.PONG){if(w.pong.hasSubscribers){w.pong.publish({payload:r})}}return true}get closingInfo(){return this.#te.closeInfo}}r.exports={ByteParser:ByteParser}},13900:(r,n,s)=>{const{WebsocketFrameSend:a}=s(3264);const{opcodes:l,sendHints:u}=s(20736);const d=s(64660);const A=Buffer[Symbol.species];class SendQueue{#se=new d;#ie=false;#oe;constructor(r){this.#oe=r}add(r,n,s){if(s!==u.blob){const a=createFrame(r,s);if(!this.#ie){this.#oe.write(a,n)}else{const r={promise:null,callback:n,frame:a};this.#se.push(r)}return}const a={promise:r.arrayBuffer().then((r=>{a.promise=null;a.frame=createFrame(r,s)})),callback:n,frame:null};this.#se.push(a);if(!this.#ie){this.#ae()}}async#ae(){this.#ie=true;const r=this.#se;while(!r.isEmpty()){const n=r.shift();if(n.promise!==null){await n.promise}this.#oe.write(n.frame,n.callback);n.callback=n.frame=null}this.#ie=false}}function createFrame(r,n){return new a(toBuffer(r,n)).createFrame(n===u.string?l.TEXT:l.BINARY)}function toBuffer(r,n){switch(n){case u.string:return Buffer.from(r);case u.arrayBuffer:case u.blob:return new A(r);case u.typedArray:return new A(r.buffer,r.byteOffset,r.byteLength)}}r.exports={SendQueue:SendQueue}},61216:r=>{r.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},98625:(r,n,s)=>{const{kReadyState:a,kController:l,kResponse:u,kBinaryType:d,kWebSocketURL:A}=s(61216);const{states:p,opcodes:f}=s(20736);const{ErrorEvent:g,createFastMessageEvent:y}=s(15188);const{isUtf8:b}=s(4573);const{collectASequenceOfCodePointsFast:C,removeHTTPWhitespace:w}=s(51900);function isConnecting(r){return r[a]===p.CONNECTING}function isEstablished(r){return r[a]===p.OPEN}function isClosing(r){return r[a]===p.CLOSING}function isClosed(r){return r[a]===p.CLOSED}function fireEvent(r,n,s=(r,n)=>new Event(r,n),a={}){const l=s(r,a);n.dispatchEvent(l)}function websocketMessageReceived(r,n,s){if(r[a]!==p.OPEN){return}let l;if(n===f.TEXT){try{l=S(s)}catch{failWebsocketConnection(r,"Received invalid UTF-8 in text frame.");return}}else if(n===f.BINARY){if(r[d]==="blob"){l=new Blob([s])}else{l=toArrayBuffer(s)}}fireEvent("message",r,y,{origin:r[A].origin,data:l})}function toArrayBuffer(r){if(r.byteLength===r.buffer.byteLength){return r.buffer}return r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}function isValidSubprotocol(r){if(r.length===0){return false}for(let n=0;n126||s===34||s===40||s===41||s===44||s===47||s===58||s===59||s===60||s===61||s===62||s===63||s===64||s===91||s===92||s===93||s===123||s===125){return false}}return true}function isValidStatusCode(r){if(r>=1e3&&r<1015){return r!==1004&&r!==1005&&r!==1006}return r>=3e3&&r<=4999}function failWebsocketConnection(r,n){const{[l]:s,[u]:a}=r;s.abort();if(a?.socket&&!a.socket.destroyed){a.socket.destroy()}if(n){fireEvent("error",r,((r,n)=>new g(r,n)),{error:new Error(n),message:n})}}function isControlFrame(r){return r===f.CLOSE||r===f.PING||r===f.PONG}function isContinuationFrame(r){return r===f.CONTINUATION}function isTextBinaryFrame(r){return r===f.TEXT||r===f.BINARY}function isValidOpcode(r){return isTextBinaryFrame(r)||isContinuationFrame(r)||isControlFrame(r)}function parseExtensions(r){const n={position:0};const s=new Map;while(n.position57){return false}}const n=Number.parseInt(r,10);return n>=8&&n<=15}const B=typeof process.versions.icu==="string";const I=B?new TextDecoder("utf-8",{fatal:true}):undefined;const S=B?I.decode.bind(I):function(r){if(b(r)){return r.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};r.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:S,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},13726:(r,n,s)=>{const{webidl:a}=s(45893);const{URLSerializer:l}=s(51900);const{environmentSettingsObject:u}=s(73168);const{staticPropertyDescriptors:d,states:A,sentCloseFrameState:p,sendHints:f}=s(20736);const{kWebSocketURL:g,kReadyState:y,kController:b,kBinaryType:C,kResponse:w,kSentClose:B,kByteParser:I}=s(61216);const{isConnecting:S,isEstablished:Q,isClosing:v,isValidSubprotocol:R,fireEvent:N}=s(98625);const{establishWebSocketConnection:x,closeWebSocketConnection:D}=s(86897);const{ByteParser:T}=s(81652);const{kEnumerableProperty:k,isBlobLike:_}=s(3440);const{getGlobalDispatcher:P}=s(32581);const{types:F}=s(57975);const{ErrorEvent:L,CloseEvent:O}=s(15188);const{SendQueue:M}=s(13900);class WebSocket extends EventTarget{#P={open:null,error:null,close:null,message:null};#le=0;#ce="";#ne="";#ue;constructor(r,n=[]){super();a.util.markAsUncloneable(this);const s="WebSocket constructor";a.argumentLengthCheck(arguments,1,s);const l=a.converters["DOMString or sequence or WebSocketInit"](n,s,"options");r=a.converters.USVString(r,s,"url");n=l.protocols;const d=u.settingsObject.baseUrl;let A;try{A=new URL(r,d)}catch(r){throw new DOMException(r,"SyntaxError")}if(A.protocol==="http:"){A.protocol="ws:"}else if(A.protocol==="https:"){A.protocol="wss:"}if(A.protocol!=="ws:"&&A.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${A.protocol}`,"SyntaxError")}if(A.hash||A.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof n==="string"){n=[n]}if(n.length!==new Set(n.map((r=>r.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(n.length>0&&!n.every((r=>R(r)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[g]=new URL(A.href);const f=u.settingsObject;this[b]=x(A,n,f,this,((r,n)=>this.#de(r,n)),l);this[y]=WebSocket.CONNECTING;this[B]=p.NOT_SENT;this[C]="blob"}close(r=undefined,n=undefined){a.brandCheck(this,WebSocket);const s="WebSocket.close";if(r!==undefined){r=a.converters["unsigned short"](r,s,"code",{clamp:true})}if(n!==undefined){n=a.converters.USVString(n,s,"reason")}if(r!==undefined){if(r!==1e3&&(r<3e3||r>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let l=0;if(n!==undefined){l=Buffer.byteLength(n);if(l>123){throw new DOMException(`Reason must be less than 123 bytes; received ${l}`,"SyntaxError")}}D(this,r,n,l)}send(r){a.brandCheck(this,WebSocket);const n="WebSocket.send";a.argumentLengthCheck(arguments,1,n);r=a.converters.WebSocketSendData(r,n,"data");if(S(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!Q(this)||v(this)){return}if(typeof r==="string"){const n=Buffer.byteLength(r);this.#le+=n;this.#ue.add(r,(()=>{this.#le-=n}),f.string)}else if(F.isArrayBuffer(r)){this.#le+=r.byteLength;this.#ue.add(r,(()=>{this.#le-=r.byteLength}),f.arrayBuffer)}else if(ArrayBuffer.isView(r)){this.#le+=r.byteLength;this.#ue.add(r,(()=>{this.#le-=r.byteLength}),f.typedArray)}else if(_(r)){this.#le+=r.size;this.#ue.add(r,(()=>{this.#le-=r.size}),f.blob)}}get readyState(){a.brandCheck(this,WebSocket);return this[y]}get bufferedAmount(){a.brandCheck(this,WebSocket);return this.#le}get url(){a.brandCheck(this,WebSocket);return l(this[g])}get extensions(){a.brandCheck(this,WebSocket);return this.#ne}get protocol(){a.brandCheck(this,WebSocket);return this.#ce}get onopen(){a.brandCheck(this,WebSocket);return this.#P.open}set onopen(r){a.brandCheck(this,WebSocket);if(this.#P.open){this.removeEventListener("open",this.#P.open)}if(typeof r==="function"){this.#P.open=r;this.addEventListener("open",r)}else{this.#P.open=null}}get onerror(){a.brandCheck(this,WebSocket);return this.#P.error}set onerror(r){a.brandCheck(this,WebSocket);if(this.#P.error){this.removeEventListener("error",this.#P.error)}if(typeof r==="function"){this.#P.error=r;this.addEventListener("error",r)}else{this.#P.error=null}}get onclose(){a.brandCheck(this,WebSocket);return this.#P.close}set onclose(r){a.brandCheck(this,WebSocket);if(this.#P.close){this.removeEventListener("close",this.#P.close)}if(typeof r==="function"){this.#P.close=r;this.addEventListener("close",r)}else{this.#P.close=null}}get onmessage(){a.brandCheck(this,WebSocket);return this.#P.message}set onmessage(r){a.brandCheck(this,WebSocket);if(this.#P.message){this.removeEventListener("message",this.#P.message)}if(typeof r==="function"){this.#P.message=r;this.addEventListener("message",r)}else{this.#P.message=null}}get binaryType(){a.brandCheck(this,WebSocket);return this[C]}set binaryType(r){a.brandCheck(this,WebSocket);if(r!=="blob"&&r!=="arraybuffer"){this[C]="blob"}else{this[C]=r}}#de(r,n){this[w]=r;const s=new T(this,n);s.on("drain",onParserDrain);s.on("error",onParserError.bind(this));r.socket.ws=this;this[I]=s;this.#ue=new M(r.socket);this[y]=A.OPEN;const a=r.headersList.get("sec-websocket-extensions");if(a!==null){this.#ne=a}const l=r.headersList.get("sec-websocket-protocol");if(l!==null){this.#ce=l}N("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=A.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=A.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=A.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=A.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:k,readyState:k,bufferedAmount:k,onopen:k,onerror:k,onclose:k,close:k,onmessage:k,binaryType:k,send:k,extensions:k,protocol:k,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});a.converters["sequence"]=a.sequenceConverter(a.converters.DOMString);a.converters["DOMString or sequence"]=function(r,n,s){if(a.util.Type(r)==="Object"&&Symbol.iterator in r){return a.converters["sequence"](r)}return a.converters.DOMString(r,n,s)};a.converters.WebSocketInit=a.dictionaryConverter([{key:"protocols",converter:a.converters["DOMString or sequence"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:a.converters.any,defaultValue:()=>P()},{key:"headers",converter:a.nullableConverter(a.converters.HeadersInit)}]);a.converters["DOMString or sequence or WebSocketInit"]=function(r){if(a.util.Type(r)==="Object"&&!(Symbol.iterator in r)){return a.converters.WebSocketInit(r)}return{protocols:a.converters["DOMString or sequence"](r)}};a.converters.WebSocketSendData=function(r){if(a.util.Type(r)==="Object"){if(_(r)){return a.converters.Blob(r,{strict:false})}if(ArrayBuffer.isView(r)||F.isArrayBuffer(r)){return a.converters.BufferSource(r)}}return a.converters.USVString(r)};function onParserDrain(){this.ws[w].socket.resume()}function onParserError(r){let n;let s;if(r instanceof O){n=r.reason;s=r.code}else{n=r.message}N("error",this,(()=>new L("error",{error:r,message:n})));D(this,s)}r.exports={WebSocket:WebSocket}},45389:(r,n,s)=>{var a=s(2203);var l=s(39023).inherits;function Entry(){if(!(this instanceof Entry)){return new Entry}a.PassThrough.call(this);this.path=null;this.type=null;this.isDirectory=false}l(Entry,a.PassThrough);Entry.prototype.autodrain=function(){return this.pipe(new a.Transform({transform:function(r,n,s){s()}}))};r.exports=Entry},5700:(r,n,s)=>{var a=s(79896);var l=s(16928);var u=s(39023);var d=s(4469);var A=s(2203).Transform;var p=s(85580);function Extract(r){if(!(this instanceof Extract))return new Extract(r);A.call(this);this.opts=r||{};this.unzipStream=new p(this.opts);this.unfinishedEntries=0;this.afterFlushWait=false;this.createdDirectories={};var n=this;this.unzipStream.on("entry",this._processEntry.bind(this));this.unzipStream.on("error",(function(r){n.emit("error",r)}))}u.inherits(Extract,A);Extract.prototype._transform=function(r,n,s){this.unzipStream.write(r,n,s)};Extract.prototype._flush=function(r){var n=this;var allDone=function(){process.nextTick((function(){n.emit("close")}));r()};this.unzipStream.end((function(){if(n.unfinishedEntries>0){n.afterFlushWait=true;return n.on("await-finished",allDone)}allDone()}))};Extract.prototype._processEntry=function(r){var n=this;var s=l.join(this.opts.path,r.path);var u=r.isDirectory?s:l.dirname(s);this.unfinishedEntries++;var writeFileFn=function(){var l=a.createWriteStream(s);l.on("close",(function(){n.unfinishedEntries--;n._notifyAwaiter()}));l.on("error",(function(r){n.emit("error",r)}));r.pipe(l)};if(this.createdDirectories[u]||u==="."){return writeFileFn()}d(u,(function(s){if(s)return n.emit("error",s);n.createdDirectories[u]=true;if(r.isDirectory){n.unfinishedEntries--;n._notifyAwaiter();return}writeFileFn()}))};Extract.prototype._notifyAwaiter=function(){if(this.afterFlushWait&&this.unfinishedEntries===0){this.emit("await-finished");this.afterFlushWait=false}};r.exports=Extract},42092:(r,n,s)=>{var a=s(2203).Transform;var l=s(39023);function MatcherStream(r,n){if(!(this instanceof MatcherStream)){return new MatcherStream}a.call(this);var s=typeof r==="object"?r.pattern:r;this.pattern=Buffer.isBuffer(s)?s:Buffer.from(s);this.requiredLength=this.pattern.length;if(r.requiredExtraSize)this.requiredLength+=r.requiredExtraSize;this.data=new Buffer("");this.bytesSoFar=0;this.matchFn=n}l.inherits(MatcherStream,a);MatcherStream.prototype.checkDataChunk=function(r){var n=this.data.length>=this.requiredLength;if(!n){return}var s=this.data.indexOf(this.pattern,r?1:0);if(s>=0&&s+this.requiredLength>this.data.length){if(s>0){var a=this.data.slice(0,s);this.push(a);this.bytesSoFar+=s;this.data=this.data.slice(s)}return}if(s===-1){var l=this.data.length-this.requiredLength+1;var a=this.data.slice(0,l);this.push(a);this.bytesSoFar+=l;this.data=this.data.slice(l);return}if(s>0){var a=this.data.slice(0,s);this.data=this.data.slice(s);this.push(a);this.bytesSoFar+=s}var u=this.matchFn?this.matchFn(this.data,this.bytesSoFar):true;if(u){this.data=new Buffer("");return}return true};MatcherStream.prototype._transform=function(r,n,s){this.data=Buffer.concat([this.data,r]);var a=true;while(this.checkDataChunk(!a)){a=false}s()};MatcherStream.prototype._flush=function(r){if(this.data.length>0){var n=true;while(this.checkDataChunk(!n)){n=false}}if(this.data.length>0){this.push(this.data);this.data=null}r()};r.exports=MatcherStream},41879:(r,n,s)=>{var a=s(2203).Transform;var l=s(39023);var u=s(85580);function ParserStream(r){if(!(this instanceof ParserStream)){return new ParserStream(r)}var n=r||{};a.call(this,{readableObjectMode:true});this.opts=r||{};this.unzipStream=new u(this.opts);var s=this;this.unzipStream.on("entry",(function(r){s.push(r)}));this.unzipStream.on("error",(function(r){s.emit("error",r)}))}l.inherits(ParserStream,a);ParserStream.prototype._transform=function(r,n,s){this.unzipStream.write(r,n,s)};ParserStream.prototype._flush=function(r){var n=this;this.unzipStream.end((function(){process.nextTick((function(){n.emit("close")}));r()}))};ParserStream.prototype.on=function(r,n){if(r==="entry"){return a.prototype.on.call(this,"data",n)}return a.prototype.on.call(this,r,n)};ParserStream.prototype.drainAll=function(){this.unzipStream.drainAll();return this.pipe(new a({objectMode:true,transform:function(r,n,s){s()}}))};r.exports=ParserStream},85580:(r,n,s)=>{var a=s(58769);var l=s(2203);var u=s(39023);var d=s(43106);var A=s(42092);var p=s(45389);const f={STREAM_START:0,START:1,LOCAL_FILE_HEADER:2,LOCAL_FILE_HEADER_SUFFIX:3,FILE_DATA:4,FILE_DATA_END:5,DATA_DESCRIPTOR:6,CENTRAL_DIRECTORY_FILE_HEADER:7,CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:8,CDIR64_END:9,CDIR64_END_DATA_SECTOR:10,CDIR64_LOCATOR:11,CENTRAL_DIRECTORY_END:12,CENTRAL_DIRECTORY_END_COMMENT:13,TRAILING_JUNK:14,ERROR:99};const g=4294967296;const y=67324752;const b=134695760;const C=33639248;const w=101075792;const B=117853008;const I=101010256;function UnzipStream(r){if(!(this instanceof UnzipStream)){return new UnzipStream(r)}l.Transform.call(this);this.options=r||{};this.data=new Buffer("");this.state=f.STREAM_START;this.skippedBytes=0;this.parsedEntity=null;this.outStreamInfo={}}u.inherits(UnzipStream,l.Transform);UnzipStream.prototype.processDataChunk=function(r){var n;switch(this.state){case f.STREAM_START:case f.START:n=4;break;case f.LOCAL_FILE_HEADER:n=26;break;case f.LOCAL_FILE_HEADER_SUFFIX:n=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength;break;case f.DATA_DESCRIPTOR:n=12;break;case f.CENTRAL_DIRECTORY_FILE_HEADER:n=42;break;case f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:n=this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength+this.parsedEntity.fileCommentLength;break;case f.CDIR64_END:n=52;break;case f.CDIR64_END_DATA_SECTOR:n=this.parsedEntity.centralDirectoryRecordSize-44;break;case f.CDIR64_LOCATOR:n=16;break;case f.CENTRAL_DIRECTORY_END:n=18;break;case f.CENTRAL_DIRECTORY_END_COMMENT:n=this.parsedEntity.commentLength;break;case f.FILE_DATA:return 0;case f.FILE_DATA_END:return 0;case f.TRAILING_JUNK:if(this.options.debug)console.log("found",r.length,"bytes of TRAILING_JUNK");return r.length;default:return r.length}var s=r.length;if(s>>8;if((u&255)===80){d=A;break}}this.skippedBytes+=d;if(this.options.debug)console.log("Skipped",this.skippedBytes,"bytes");return d}this.state=f.ERROR;var b=l?"Not a valid zip file":"Invalid signature in zip file";if(this.options.debug){var S=r.readUInt32LE(0);var Q;try{Q=r.slice(0,4).toString()}catch(r){}console.log("Unexpected signature in zip file: 0x"+S.toString(16),'"'+Q+'", skipped',this.skippedBytes,"bytes")}this.emit("error",new Error(b));return r.length}this.skippedBytes=0;return n;case f.LOCAL_FILE_HEADER:this.parsedEntity=this._readFile(r);this.state=f.LOCAL_FILE_HEADER_SUFFIX;return n;case f.LOCAL_FILE_HEADER_SUFFIX:var v=new p;var R=(this.parsedEntity.flags&2048)!==0;v.path=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),R);var N=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var x=this._readExtraFields(N);if(x&&x.parsed){if(x.parsed.path&&!R){v.path=x.parsed.path}if(Number.isFinite(x.parsed.uncompressedSize)&&this.parsedEntity.uncompressedSize===g-1){this.parsedEntity.uncompressedSize=x.parsed.uncompressedSize}if(Number.isFinite(x.parsed.compressedSize)&&this.parsedEntity.compressedSize===g-1){this.parsedEntity.compressedSize=x.parsed.compressedSize}}this.parsedEntity.extra=x.parsed||{};if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:v.path,flags:"0x"+this.parsedEntity.flags.toString(16),extraFields:x&&x.debug});console.log("decoded LOCAL_FILE_HEADER:",JSON.stringify(r,null,2))}this._prepareOutStream(this.parsedEntity,v);this.emit("entry",v);this.state=f.FILE_DATA;return n;case f.CENTRAL_DIRECTORY_FILE_HEADER:this.parsedEntity=this._readCentralDirectoryEntry(r);this.state=f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX;return n;case f.CENTRAL_DIRECTORY_FILE_HEADER_SUFFIX:var R=(this.parsedEntity.flags&2048)!==0;var D=this._decodeString(r.slice(0,this.parsedEntity.fileNameLength),R);var N=r.slice(this.parsedEntity.fileNameLength,this.parsedEntity.fileNameLength+this.parsedEntity.extraFieldLength);var x=this._readExtraFields(N);if(x&&x.parsed&&x.parsed.path&&!R){D=x.parsed.path}this.parsedEntity.extra=x.parsed;var T=(this.parsedEntity.versionMadeBy&65280)>>8===3;var k,_;if(T){k=this.parsedEntity.externalFileAttributes>>>16;var P=k>>>12;_=(P&10)===10}if(this.options.debug){const r=Object.assign({},this.parsedEntity,{path:D,flags:"0x"+this.parsedEntity.flags.toString(16),unixAttrs:k&&"0"+k.toString(8),isSymlink:_,extraFields:x.debug});console.log("decoded CENTRAL_DIRECTORY_FILE_HEADER:",JSON.stringify(r,null,2))}this.state=f.START;return n;case f.CDIR64_END:this.parsedEntity=this._readEndOfCentralDirectory64(r);if(this.options.debug){console.log("decoded CDIR64_END_RECORD:",this.parsedEntity)}this.state=f.CDIR64_END_DATA_SECTOR;return n;case f.CDIR64_END_DATA_SECTOR:this.state=f.START;return n;case f.CDIR64_LOCATOR:this.state=f.START;return n;case f.CENTRAL_DIRECTORY_END:this.parsedEntity=this._readEndOfCentralDirectory(r);if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END:",this.parsedEntity)}this.state=f.CENTRAL_DIRECTORY_END_COMMENT;return n;case f.CENTRAL_DIRECTORY_END_COMMENT:if(this.options.debug){console.log("decoded CENTRAL_DIRECTORY_END_COMMENT:",r.slice(0,n).toString())}this.state=f.TRAILING_JUNK;return n;case f.ERROR:return r.length;default:console.log("didn't handle state #",this.state,"discarding");return r.length}};UnzipStream.prototype._prepareOutStream=function(r,n){var s=this;var a=r.uncompressedSize===0&&/[\/\\]$/.test(n.path);n.path=n.path.replace(/(?<=^|[/\\]+)[.][.]+(?=[/\\]+|$)/g,".");n.type=a?"Directory":"File";n.isDirectory=a;var u=!(r.flags&8);if(u){n.size=r.uncompressedSize}var y=r.versionsNeededToExtract<=45;this.outStreamInfo={stream:null,limit:u?r.compressedSize:-1,written:0};if(!u){var C=new Buffer(4);C.writeUInt32LE(b,0);var w=r.extra.zip64Mode;var B=w?20:12;var I={pattern:C,requiredExtraSize:B};var S=new A(I,(function(r,n){var a=s._readDataDescriptor(r,w);var l=a.compressedSize===n;if(!w&&!l&&n>=g){var u=n-g;while(u>=0){l=a.compressedSize===u;if(l)break;u-=g}}if(!l){return}s.state=f.FILE_DATA_END;var d=w?24:16;if(s.data.length>0){s.data=Buffer.concat([r.slice(d),s.data])}else{s.data=r.slice(d)}return true}));this.outStreamInfo.stream=S}else{this.outStreamInfo.stream=new l.PassThrough}var Q=r.flags&1||r.flags&64;if(Q||!y){var v=Q?"Encrypted files are not supported!":"Zip version "+Math.floor(r.versionsNeededToExtract/10)+"."+r.versionsNeededToExtract%10+" is not supported";n.skip=true;setImmediate((()=>{s.emit("error",new Error(v))}));this.outStreamInfo.stream.pipe((new p).autodrain());return}var R=r.compressionMethod>0;if(R){var N=d.createInflateRaw();N.on("error",(function(r){s.state=f.ERROR;s.emit("error",r)}));this.outStreamInfo.stream.pipe(N).pipe(n)}else{this.outStreamInfo.stream.pipe(n)}if(this._drainAllEntries){n.autodrain()}};UnzipStream.prototype._readFile=function(r){var n=a.parse(r).word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").vars;return n};UnzipStream.prototype._readExtraFields=function(r){var n={};var s={parsed:n};if(this.options.debug){s.debug=[]}var l=0;while(l=f+4&&p&1){n.mtime=new Date(r.readUInt32LE(l+f)*1e3);f+=4}if(u.extraSize>=f+4&&p&2){n.atime=new Date(r.readUInt32LE(l+f)*1e3);f+=4}if(u.extraSize>=f+4&&p&4){n.ctime=new Date(r.readUInt32LE(l+f)*1e3)}break;case 28789:d="Info-ZIP Unicode Path Extra Field";var g=r.readUInt8(l);if(g===1){var f=1;var y=r.readUInt32LE(l+f);f+=4;var b=r.slice(l+f);n.path=b.toString()}break;case 13:case 22613:d=u.extraId===13?"PKWARE Unix":"Info-ZIP UNIX (type 1)";var f=0;if(u.extraSize>=8){var C=new Date(r.readUInt32LE(l+f)*1e3);f+=4;var w=new Date(r.readUInt32LE(l+f)*1e3);f+=4;n.atime=C;n.mtime=w;if(u.extraSize>=12){var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.uid=B;n.gid=I}}break;case 30805:d="Info-ZIP UNIX (type 2)";var f=0;if(u.extraSize>=4){var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.uid=B;n.gid=I}break;case 30837:d="Info-ZIP New Unix";var f=0;var S=r.readUInt8(l);f+=1;if(S===1){var Q=r.readUInt8(l+f);f+=1;if(Q<=6){n.uid=r.readUIntLE(l+f,Q)}f+=Q;var v=r.readUInt8(l+f);f+=1;if(v<=6){n.gid=r.readUIntLE(l+f,v)}}break;case 30062:d="ASi Unix";var f=0;if(u.extraSize>=14){var R=r.readUInt32LE(l+f);f+=4;var N=r.readUInt16LE(l+f);f+=2;var x=r.readUInt32LE(l+f);f+=4;var B=r.readUInt16LE(l+f);f+=2;var I=r.readUInt16LE(l+f);f+=2;n.mode=N;n.uid=B;n.gid=I;if(u.extraSize>14){var D=l+f;var T=l+u.extraSize-14;var k=this._decodeString(r.slice(D,T));n.symlink=k}}break}if(this.options.debug){s.debug.push({extraId:"0x"+u.extraId.toString(16),description:d,data:r.slice(l,l+u.extraSize).inspect()})}l+=u.extraSize}return s};UnzipStream.prototype._readDataDescriptor=function(r,n){if(n){var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word64lu("compressedSize").word64lu("uncompressedSize").vars;return s}var s=a.parse(r).word32lu("dataDescriptorSignature").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").vars;return s};UnzipStream.prototype._readCentralDirectoryEntry=function(r){var n=a.parse(r).word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word16lu("flags").word16lu("compressionMethod").word16lu("lastModifiedTime").word16lu("lastModifiedDate").word32lu("crc32").word32lu("compressedSize").word32lu("uncompressedSize").word16lu("fileNameLength").word16lu("extraFieldLength").word16lu("fileCommentLength").word16lu("diskNumber").word16lu("internalFileAttributes").word32lu("externalFileAttributes").word32lu("offsetToLocalFileHeader").vars;return n};UnzipStream.prototype._readEndOfCentralDirectory64=function(r){var n=a.parse(r).word64lu("centralDirectoryRecordSize").word16lu("versionMadeBy").word16lu("versionsNeededToExtract").word32lu("diskNumber").word32lu("diskNumberWithCentralDirectoryStart").word64lu("centralDirectoryEntries").word64lu("totalCentralDirectoryEntries").word64lu("sizeOfCentralDirectory").word64lu("offsetToStartOfCentralDirectory").vars;return n};UnzipStream.prototype._readEndOfCentralDirectory=function(r){var n=a.parse(r).word16lu("diskNumber").word16lu("diskStart").word16lu("centralDirectoryEntries").word16lu("totalCentralDirectoryEntries").word32lu("sizeOfCentralDirectory").word32lu("offsetToStartOfCentralDirectory").word16lu("commentLength").vars;return n};const S="\0☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕‼¶§▬↨↑↓→←∟↔▲▼ !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~⌂ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ ";UnzipStream.prototype._decodeString=function(r,n){if(n){return r.toString("utf8")}if(this.options.decodeString){return this.options.decodeString(r)}let s="";for(var a=0;a0){this.data=this.data.slice(s);if(this.data.length===0)break}if(this.state===f.FILE_DATA){if(this.outStreamInfo.limit>=0){var a=this.outStreamInfo.limit-this.outStreamInfo.written;var l;if(a{if(this.state===f.FILE_DATA_END){this.state=f.START;return u.end(n)}n()}))}return}n()};UnzipStream.prototype.drainAll=function(){this._drainAllEntries=true};UnzipStream.prototype._transform=function(r,n,s){var a=this;if(a.data.length>0){a.data=Buffer.concat([a.data,r])}else{a.data=r}var l=a.data.length;var done=function(){if(a.data.length>0&&a.data.length0){n._parseOrOutput("buffer",(function(){if(n.data.length>0)return setImmediate((function(){n._flush(r)}));r()}));return}if(n.state===f.FILE_DATA){return r(new Error("Stream finished in an invalid state, uncompression failed"))}setImmediate(r)};r.exports=UnzipStream},33991:(r,n,s)=>{n.Parse=s(41879);n.Extract=s(5700)},24488:(r,n,s)=>{r.exports=s(39023).deprecate},26848:(r,n,s)=>{const a=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys";const l=s(16928);const u=a?";":":";const d=s(72940);const getNotFoundError=r=>Object.assign(new Error(`not found: ${r}`),{code:"ENOENT"});const getPathInfo=(r,n)=>{const s=n.colon||u;const l=r.match(/\//)||a&&r.match(/\\/)?[""]:[...a?[process.cwd()]:[],...(n.path||process.env.PATH||"").split(s)];const d=a?n.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"";const A=a?d.split(s):[""];if(a){if(r.indexOf(".")!==-1&&A[0]!=="")A.unshift("")}return{pathEnv:l,pathExt:A,pathExtExe:d}};const which=(r,n,s)=>{if(typeof n==="function"){s=n;n={}}if(!n)n={};const{pathEnv:a,pathExt:u,pathExtExe:A}=getPathInfo(r,n);const p=[];const step=s=>new Promise(((u,d)=>{if(s===a.length)return n.all&&p.length?u(p):d(getNotFoundError(r));const A=a[s];const f=/^".*"$/.test(A)?A.slice(1,-1):A;const g=l.join(f,r);const y=!f&&/^\.[\\\/]/.test(r)?r.slice(0,2)+g:g;u(subStep(y,s,0))}));const subStep=(r,s,a)=>new Promise(((l,f)=>{if(a===u.length)return l(step(s+1));const g=u[a];d(r+g,{pathExt:A},((u,d)=>{if(!u&&d){if(n.all)p.push(r+g);else return l(r+g)}return l(subStep(r,s,a+1))}))}));return s?step(0).then((r=>s(null,r)),s):step(0)};const whichSync=(r,n)=>{n=n||{};const{pathEnv:s,pathExt:a,pathExtExe:u}=getPathInfo(r,n);const A=[];for(let p=0;p{ /** * ZipStream * @@ -112,7 +112,7 @@ const a=s(29068);const toRegexRange=(r,n,s)=>{if(a(r)===false){throw new TypeErr * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} * @copyright (c) 2014 Chris Talkington, contributors. */ -var a=s(39023).inherits;var l=s(93920).ZipArchiveOutputStream;var u=s(93920).ZipArchiveEntry;var d=s(16090);var A=r.exports=function(r){if(!(this instanceof A)){return new A(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(A,l);A.prototype._normalizeFileData=function(r){r=d.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var n=r.type==="directory";var s=r.type==="symlink";if(r.name){r.name=d.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){n=true;r.type="directory"}else if(n){r.name+="/"}}if(n||s){r.store=true}r.date=d.dateify(r.date);return r};A.prototype.entry=function(r,n,s){if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}n=this._normalizeFileData(n);if(n.type!=="file"&&n.type!=="directory"&&n.type!=="symlink"){s(new Error(n.type+" entries not currently supported"));return}if(typeof n.name!=="string"||n.name.length===0){s(new Error("entry name must be a non-empty string value"));return}if(n.type==="symlink"&&typeof n.linkname!=="string"){s(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new u(n.name);a.setTime(n.date,this.options.forceLocalTime);if(n.namePrependSlash){a.setName(n.name,true)}if(n.store){a.setMethod(0)}if(n.comment.length>0){a.setComment(n.comment)}if(n.type==="symlink"&&typeof n.mode!=="number"){n.mode=40960}if(typeof n.mode==="number"){if(n.type==="symlink"){n.mode|=40960}a.setUnixMode(n.mode)}if(n.type==="symlink"&&typeof n.linkname==="string"){r=Buffer.from(n.linkname)}return l.prototype.entry.call(this,a,r,s)};A.prototype.finalize=function(){this.finish()}},90532:(r,n,s)=>{s.d(n,{a:()=>buildProject});var a=s(73024);var l=s(76760);var u=s(53900);var d=s(82236);class Runner{bin;tauriScript;constructor(r,n){this.bin=r;this.tauriScript=n||[]}async execTauriCommand(r,n,s,a,l=0){const u=[...this.tauriScript,...r];if(this.bin==="npm"&&n.length){u.push("--")}u.push(...n);return(0,d.L5)((()=>(0,d.NK)(this.bin,u,{cwd:s},a)),l)}}async function getRunner(){if(u.PK){console.log("`tauriScript` set. Skipping cli verification.");const[r,...n]=u.PK.split(" ");return new Runner(r,n)}if((0,d.ws)("@tauri-apps/cli",u.DZ)){if((0,d.z8)(u.DZ))return new Runner("yarn",["tauri"]);if((0,d.me)(u.DZ))return new Runner("pnpm",["tauri"]);if((0,d.Ui)(u.DZ))return new Runner("bun",["tauri"]);if((0,d._$)(u.DZ))return new Runner("npm",[(0,d.dk)(u.DZ)?"run":"exec","tauri"])}console.warn("Could not detect valid `@tauri-apps/cli` installation. Proceeding to install global npm package...");await(0,d.NK)("npm",["install","-g",`@tauri-apps/cli@v2`],{cwd:undefined});return new Runner("tauri")}async function buildProject(){const r=await getRunner();const n=u.HD.target;const s=u.HD.config;const A=u.Nl.profile;const p=(0,d.sg)(n);const f=(0,d.Vp)(p,s);if(!f.tauriPath){throw Error("Couldn't detect path of tauri app")}const g={tauriPath:f.tauriPath,runner:r,name:f.name,mainBinaryName:f.mainBinaryName,version:f.version,wixLanguage:f.wixLanguage,rpmRelease:f.rpmRelease};let y=["build"];if(u.m0)y=["android","build"];if(u.un)y=["ios","build"];await r.execTauriCommand(y,u.ay,u.DZ,p.platform==="macos"?{TAURI_BUNDLER_DMG_IGNORE_CI:process.env.TAURI_BUNDLER_DMG_IGNORE_CI??"true"}:undefined,u.z);const b=(0,d.Lw)(g.tauriPath)??g.tauriPath;let C=(0,l.join)((0,d.d)(b,f.tauriPath,!!n),n??"",A?A:u._o?"debug":"release");if(u.m0){C=(0,l.join)(f.tauriPath,"gen/android/app/build/outputs/")}if(u.un){C=(0,l.join)(f.tauriPath,"gen/apple/build/")}let w=[];let B=p.arch;if(p.platform==="macos"){if(B==="x86_64"){B="x64"}else if(B==="arm64"){B="aarch64"}w=[(0,d.Dg)({path:(0,l.join)(C,`bundle/dmg/${g.name}_${g.version}_${B}.dmg`),name:g.name,platform:p.platform,arch:B,bundle:"dmg",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app.tar.gz`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app.tar.gz.sig`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version})]}else if(p.platform==="windows"){if(B.startsWith("i")){B="x86"}else if(B==="aarch64"||B==="arm64"){B="arm64"}else{B="x64"}let r;if(typeof g.wixLanguage==="string"){r=[g.wixLanguage]}else if(Array.isArray(g.wixLanguage)){r=g.wixLanguage}else{r=Object.keys(g.wixLanguage)}const n=[];r.forEach((r=>{n.push((0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.sig`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.zip`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.zip.sig`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}))}));n.push((0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.exe`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.exe.sig`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.nsis.zip`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.nsis.zip.sig`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}));w=n}else if(p.platform==="linux"){const r=B==="x64"||B==="x86_64"?"amd64":B==="x32"||B==="i686"?"i386":B==="arm"?"armhf":B==="aarch64"?"arm64":B;const n=B==="x64"||B==="x86_64"?"x86_64":B==="x32"||B==="x86"||B==="i686"?"i386":B==="arm"?"armhfp":B==="arm64"?"aarch64":B;const s=B==="x64"||B==="x86_64"?"amd64":B==="x32"||B==="i686"?"i386":B==="arm"?"arm":B==="arm64"?"aarch64":B;w=[(0,d.Dg)({path:(0,l.join)(C,`bundle/deb/${g.name}_${g.version}_${r}.deb`),name:g.name,platform:p.platform,arch:r,bundle:"deb",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/deb/${g.name}_${g.version}_${r}.deb.sig`),name:g.name,platform:p.platform,arch:r,bundle:"deb",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/rpm/${g.name}-${g.version}-${g.rpmRelease}.${n}.rpm`),name:g.name,platform:p.platform,arch:n,bundle:"rpm",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/rpm/${g.name}-${g.version}-${g.rpmRelease}.${n}.rpm.sig`),name:g.name,platform:p.platform,arch:n,bundle:"rpm",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.sig`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.tar.gz`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.tar.gz.sig`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version})]}else if(p.platform==="android"){const r=u._o?"debug":"release";const n=u._o?"Debug":"Release";if(!u._o){w.push((0,d.Dg)({path:(0,l.join)(C,`apk/universal/release/app-universal-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"universal",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm64/release/app-arm64-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"arm64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm/release/app-arm-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"arm",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86_64/release/app-x86_64-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86/release/app-x86-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"x86",bundle:"apk",version:g.version}))}w.push((0,d.Dg)({path:(0,l.join)(C,`apk/universal/${r}/app-universal-${r}.apk`),name:g.name,platform:p.platform,arch:"universal",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm64/${r}/app-arm64-${r}.apk`),name:g.name,platform:p.platform,arch:"arm64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm/${r}/app-arm-${r}.apk`),name:g.name,platform:p.platform,arch:"arm",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86_64/${r}/app-x86_64-${r}.apk`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86/${r}/app-x86-${r}.apk`),name:g.name,platform:p.platform,arch:"x86",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/universal${n}/app-universal-${r}.aab`),name:g.name,platform:p.platform,arch:"universal",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/arm64${n}/app-arm64-${r}.aab`),name:g.name,platform:p.platform,arch:"arm64",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/arm${n}/app-arm-${r}.aab`),name:g.name,platform:p.platform,arch:"arm",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/x86_64${n}/app-x86_64-${r}.aab`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/x86${n}/app-x86-${r}.aab`),name:g.name,platform:p.platform,arch:"x86",bundle:"aab",version:g.version}))}else if(p.platform==="ios"){w=[(0,d.Dg)({path:(0,l.join)(C,`x86_64/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"ipa",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`arm64/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"arm64",bundle:"ipa",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`arm64-sim/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"arm64-sim",bundle:"ipa",version:g.version})]}else{console.error(`Unhandled target platform: "${p.platform}"`)}if(u.pm){const r=p.platform==="windows"?".exe":"";w.push((0,d.Dg)({path:(0,l.join)(C,`${g.mainBinaryName}${r}`),name:"binary",bundle:"bin",platform:p.platform,arch:B,version:g.version}))}console.log(`Looking for artifacts in:\n${w.map((r=>r.path)).join("\n")}`);return w.filter((r=>(0,a.existsSync)(r.path)))}},60644:(r,n,s)=>{s.d(n,{l:()=>getOrCreateRelease});var a=s(73024);var l=s.n(a);var u=s(38903);var d=s(17216);var A=s(53900);function allReleases(r){const n={per_page:100,owner:A.eC,repo:A.LB};return r.paginate.iterator(r.rest.repos.listReleases,n)}async function getOrCreateRelease(r,n,s){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const a=(0,d.Q)(process.env.GITHUB_TOKEN,{baseUrl:A.qu});const p=u.V4("body_path",{required:false});let f=null;if(p!==""&&!!p){try{f=l().readFileSync(p,{encoding:"utf8"})}catch(r){u.C1(r.message)}}let g=null;let y=false;try{if(A.K4){console.log(`Looking for a draft release with tag ${r}...`);for await(const n of allReleases(a)){const s=n.data.find((n=>n.tag_name===r));if(s){if(!s.draft){console.warn(`Found release with tag ${r} but it's NOT a draft!`);break}g=s;console.log(`Found draft release with tag ${r} on the release list.`);break}}if(!g){throw new Error("release not found")}}else{const n=await a.rest.repos.getReleaseByTag({owner:A.eC,repo:A.LB,tag:r});g=n.data;console.log(`Found release with tag ${r}.`)}}catch(l){if(l.status===404||l.message==="release not found"){console.log(`Couldn't find release with tag ${r}. Creating one.`);if(!n){console.error('"releaseName" not set but required to create release.')}else{const l=await a.rest.repos.createRelease({owner:A.eC,repo:A.LB,tag_name:r,name:n,body:f||s,draft:A.K4,prerelease:A.Rt,target_commitish:A.Un,generate_release_notes:A.yK});y=true;g=l.data}}else{console.log(`⚠️ Unexpected error fetching GitHub release for tag ${r}: ${l}`);throw l}}if(!g){throw new Error("Release not found or created.")}else if(!y&&!g.draft){console.log("Updating name and body of existing release...");await a.rest.repos.updateRelease({owner:A.eC,repo:A.LB,release_id:g.id,name:n,body:f||s,generate_release_notes:A.yK})}return{id:g.id,uploadUrl:g.upload_url,htmlUrl:g.html_url}}},46866:(r,n,s)=>{s.a(r,(async(r,n)=>{try{var a=s(73024);var l=s.n(a);var u=s(76760);var d=s.n(u);var A=s(38903);var p=s(90532);var f=s(60644);var g=s(53900);var y=s(21103);var b=s(46715);var C=s(34762);var w=s(82236);async function run(){try{if(g.un&&process.platform!=="darwin"){throw new Error("Building for iOS is only supported on macOS runners.")}let r=A.V4("tagName").replace("refs/tags/","");let n=Number(A.V4("releaseId"));let s=A.V4("releaseName").replace("refs/tags/","");let l=A.V4("releaseBody");const d=g.HD.target;const B=g.HD.config;const I=[];I.push(...await(0,p.a)());if(I.length===0){if(n||r||g.Jc){throw new Error("No artifacts were found.")}else{console.log("No artifacts were found. The action was not configured to upload artifacts, therefore this is not handled as an error.");return}}console.log(`Found artifacts:\n${I.map((r=>r.path)).join("\n")}`);A.uH("artifactPaths",JSON.stringify(I.map((r=>r.path))));const S=(0,w.sg)(d);const Q=(0,w.Vp)(S,B);A.uH("appVersion",Q.version);if(g.Jc){console.log("uploadWorkflowArtifacts enabled");await(0,C.I)(I)}if(S.platform==="macos"){let r=0;for(const n of I){if(n.path.endsWith(".app")&&!(0,a.existsSync)(`${n.path}.tar.gz`)){console.log(`Packaging ${n.path} directory into ${n.path}.tar.gz`);await(0,w.NK)("tar",["czf",`${n.path}.tar.gz`,"-C",(0,u.dirname)(n.path),(0,u.basename)(n.path)]);n.path+=".tar.gz";n.ext+=".tar.gz"}else if(n.path.endsWith(".app")){I.splice(r,1)}r++}}if(r&&!n){const a=[{key:"__VERSION__",value:Q.version}];a.forEach((n=>{const a=new RegExp(n.key,"g");r=r.replace(a,n.value);s=s.replace(a,n.value);l=l.replace(a,n.value)}));const u=await(0,f.l)(r,s||undefined,l);n=u.id;A.uH("releaseUploadUrl",u.uploadUrl);A.uH("releaseId",u.id.toString());A.uH("releaseHtmlUrl",u.htmlUrl)}if(n){await(0,y.r)(n,I,g.z);if(g.Qe){await(0,w.L5)((()=>(0,b.Y)(Q.version,l,r,n,I,S,Q.unzippedSigs)),g.z===0?1:g.z)}}else{console.log("No releaseId or tagName provided, skipping all uploads...")}}catch(r){A.C1(r.message)}}await run();n()}catch(B){n(B)}}),1)},53900:(r,n,s)=>{s.d(n,{Un:()=>N,K4:()=>R,yK:()=>k,qu:()=>T,m0:()=>O,_o:()=>U,Hd:()=>x,un:()=>M,eC:()=>Q,HD:()=>B,Nl:()=>I,Rt:()=>D,DZ:()=>A,ay:()=>b,dw:()=>y,LB:()=>v,z:()=>f,Qe:()=>p,Jc:()=>_,PK:()=>g,ZQ:()=>L,pm:()=>S,wy:()=>F,rP:()=>P});var a=s(76760);var l=s(57975);var u=s(38903);var d=s(17216);function parseArgsStringToArgv(r,n,s){var a=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var l=r;var u=[];if(n){u.push(n)}if(s){u.push(s)}var d;do{d=a.exec(l);if(d!==null){u.push(firstString(d[1],d[6],d[0]))}}while(d!==null);return u}function firstString(){var r=[];for(var n=0;n{s.d(n,{r:()=>uploadAssets});var a=s(73024);var l=s.n(a);var u=s(17216);var d=s(53900);var A=s(82236);async function uploadAssets(r,n,s){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const a=(0,u.Q)(process.env.GITHUB_TOKEN,{baseUrl:d.qu});const p=(await a.rest.repos.listReleaseAssets({owner:d.eC,repo:d.LB,release_id:r,per_page:100})).data;const contentLength=r=>l().statSync(r).size;for(const u of n){if(!d.wy&&u.ext.endsWith(".sig")){continue}const n={"content-type":"application/zip","content-length":contentLength(u.path)};const f=(0,A.wm)(u,d.dw);const g=(0,A.br)(u,d.dw);const y=p.find((r=>r.label===f||r.name===g));if(y){console.log(`Deleting existing ${f}...`);if(d.Hd){await(0,A.Rx)(a,r,y.id)}else{await a.rest.repos.deleteReleaseAsset({owner:d.eC,repo:d.LB,asset_id:y.id})}}console.log(`Uploading ${f}...`);await(0,A.L5)((()=>a.rest.repos.uploadReleaseAsset({headers:n,name:f,label:f,data:l().createReadStream(u.path),owner:d.eC,repo:d.LB,release_id:r})),s);console.log(`${f} successfully uploaded.`)}}},46715:(r,n,s)=>{s.d(n,{Y:()=>uploadVersionJSON});var a=s(73024);var l=s.n(a);var u=s(76760);var d=s.n(u);var A=s(17216);var p=s(53900);var f=s(21103);var g=s(82236);async function uploadVersionJSON(r,n,s,l,d,y,b){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const C=(0,A.Q)(process.env.GITHUB_TOKEN,{baseUrl:p.qu});const w="latest.json";const B=(0,u.resolve)(process.cwd(),w);const I={version:r,notes:n,pub_date:(new Date).toISOString(),platforms:{}};const S=await C.rest.repos.listReleaseAssets({owner:p.eC,repo:p.LB,release_id:l,per_page:50});const Q=S.data.find((r=>r.name===w));if(Q){if(p.Hd){const r=(await C.request("GET /repos/{owner}/{repo}/releases/{release_id}/assets/{asset_id}",{owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id})).data;const n=(await C.request(`GET ${r.browser_download_url}`)).data;I.platforms=JSON.parse(n).platforms}else{const r=(await C.request(`GET /repos/{owner}/{repo}/releases/assets/{asset_id}`,{owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id,headers:{accept:"application/octet-stream"}})).data;I.platforms=JSON.parse(Buffer.from(r).toString()).platforms}}const v=[];for(const r of S.data){v.push({name:r.name,label:r.label,url:r.browser_download_url})}const R=[];const D=[];let N=false;let T=false;for(const r of d){if(r.ext===".app.tar.gz"&&r.arch==="universal"){const n={...r,arch:"aarch64"};const s={...r,arch:"x86_64"};const a=(0,g.br)(n,p.dw);const l=(0,g.wm)(n,p.dw);const u=(0,g.br)(s,p.dw);const d=(0,g.wm)(s,p.dw);N=!!v.find((r=>r.label===l||r.name===a));T=!!v.find((r=>r.label===d||r.name===u))}const n=(0,g.wm)(r,p.dw);const s=(0,g.br)(r,p.dw);const a=v.find((r=>r.label===n||r.name===s))?.url;if(r.ext.endsWith(".sig")){D.push({assetLabel:n,assetName:s,path:r.path,arch:r.arch,bundle:r.bundle})}else if(a){R.push({downloadUrl:a,assetLabel:n,assetName:s,path:r.path,arch:r.arch,bundle:r.bundle})}}function signaturePriority(r){if(b&&r.endsWith(".AppImage.sig")||!b&&r.endsWith(".AppImage.tar.gz.sig")){return 100}const n=p.ZQ?b?[".exe.sig",".msi.sig"]:[".nsis.zip.sig",".msi.zip.sig"]:b?[".msi.sig",".exe.sig"]:[".msi.zip.sig",".nsis.zip.sig"];for(const[s,a]of n.entries()){if(r.endsWith(a)){return 100-s}}return 0}D.sort(((r,n)=>signaturePriority(n.path)-signaturePriority(r.path)));if(!D[0]){console.warn("Signature not found for the updater JSON. Skipping upload...");return}for(const[r,n]of D.entries()){const l=(0,u.basename)(n.assetLabel,(0,u.extname)(n.assetLabel));const d=(0,u.basename)(n.assetName,(0,u.extname)(n.assetName));let A=R.find((r=>r.assetLabel===l||r.assetName===d))?.downloadUrl;if(!A){console.warn(`Updater asset belonging to signature file "${n.assetName}" not found.`);continue}A=A.replace(/\/download\/(untagged-[^/]+)\//,s?`/download/${encodeURIComponent(s)}/`:"/latest/download/");let p=y.platform;if(p==="macos"){p="darwin"}let f=n.arch;f=f==="amd64"||f==="x86_64"||f==="x64"?"x86_64":f==="x86"||f==="i386"?"i686":f==="arm"?"armv7":f==="arm64"?"aarch64":f;if(r===0){if(p==="darwin"&&f==="universal"){if(!I.platforms["darwin-aarch64"]||!N){I.platforms["darwin-aarch64"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(!I.platforms["darwin-x86_64"]||!T){I.platforms["darwin-x86_64"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}}I.platforms[`${p}-${f}`]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(p==="darwin"&&f==="universal"){if(!I.platforms["darwin-aarch64-app"]||!N){I.platforms["darwin-aarch64-app"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(!I.platforms["darwin-x86_64-app"]||!T){I.platforms["darwin-x86_64-app"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}}I.platforms[`${p}-${f}-${n.bundle}`]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}(0,a.writeFileSync)(B,JSON.stringify(I,null,2));if(Q){if(p.Hd){await(0,g.Rx)(C,l,Q.id)}else{await C.rest.repos.deleteReleaseAsset({owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id})}}const x=(0,g.Dg)({path:B,name:w,platform:y.platform,arch:"",bundle:"",version:r});await(0,f.r)(l,[x],1)}},34762:(r,n,s)=>{s.d(n,{I:()=>uploadWorkflowArtifacts});var a={};s.r(a);s.d(a,{AccessPolicy:()=>Cs,AppendBlobAppendBlockExceptionHeaders:()=>na,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>ia,AppendBlobAppendBlockFromUrlHeaders:()=>sa,AppendBlobAppendBlockHeaders:()=>ra,AppendBlobCreateExceptionHeaders:()=>ta,AppendBlobCreateHeaders:()=>ea,AppendBlobSealExceptionHeaders:()=>aa,AppendBlobSealHeaders:()=>oa,ArrowConfiguration:()=>Hs,ArrowField:()=>Gs,BlobAbortCopyFromURLExceptionHeaders:()=>So,BlobAbortCopyFromURLHeaders:()=>Io,BlobAcquireLeaseExceptionHeaders:()=>lo,BlobAcquireLeaseHeaders:()=>ao,BlobBreakLeaseExceptionHeaders:()=>go,BlobBreakLeaseHeaders:()=>mo,BlobChangeLeaseExceptionHeaders:()=>ho,BlobChangeLeaseHeaders:()=>fo,BlobCopyFromURLExceptionHeaders:()=>Bo,BlobCopyFromURLHeaders:()=>wo,BlobCreateSnapshotExceptionHeaders:()=>Eo,BlobCreateSnapshotHeaders:()=>yo,BlobDeleteExceptionHeaders:()=>Wi,BlobDeleteHeaders:()=>Vi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>ro,BlobDeleteImmutabilityPolicyHeaders:()=>to,BlobDownloadExceptionHeaders:()=>Gi,BlobDownloadHeaders:()=>Hi,BlobFlatListSegment:()=>Bs,BlobGetAccountInfoExceptionHeaders:()=>Do,BlobGetAccountInfoHeaders:()=>Ro,BlobGetPropertiesExceptionHeaders:()=>qi,BlobGetPropertiesHeaders:()=>zi,BlobGetTagsExceptionHeaders:()=>ko,BlobGetTagsHeaders:()=>xo,BlobHierarchyListSegment:()=>Rs,BlobItemInternal:()=>Is,BlobName:()=>Ss,BlobPrefix:()=>Ds,BlobPropertiesInternal:()=>Qs,BlobQueryExceptionHeaders:()=>To,BlobQueryHeaders:()=>No,BlobReleaseLeaseExceptionHeaders:()=>uo,BlobReleaseLeaseHeaders:()=>co,BlobRenewLeaseExceptionHeaders:()=>po,BlobRenewLeaseHeaders:()=>Ao,BlobServiceProperties:()=>es,BlobServiceStatistics:()=>cs,BlobSetExpiryExceptionHeaders:()=>$i,BlobSetExpiryHeaders:()=>Ji,BlobSetHttpHeadersExceptionHeaders:()=>Xi,BlobSetHttpHeadersHeaders:()=>Ki,BlobSetImmutabilityPolicyExceptionHeaders:()=>eo,BlobSetImmutabilityPolicyHeaders:()=>Zi,BlobSetLegalHoldExceptionHeaders:()=>so,BlobSetLegalHoldHeaders:()=>no,BlobSetMetadataExceptionHeaders:()=>oo,BlobSetMetadataHeaders:()=>io,BlobSetTagsExceptionHeaders:()=>Po,BlobSetTagsHeaders:()=>_o,BlobSetTierExceptionHeaders:()=>vo,BlobSetTierHeaders:()=>Qo,BlobStartCopyFromURLExceptionHeaders:()=>Co,BlobStartCopyFromURLHeaders:()=>bo,BlobTag:()=>Es,BlobTags:()=>ys,BlobUndeleteExceptionHeaders:()=>Yi,BlobUndeleteHeaders:()=>ji,Block:()=>xs,BlockBlobCommitBlockListExceptionHeaders:()=>ga,BlockBlobCommitBlockListHeaders:()=>ma,BlockBlobGetBlockListExceptionHeaders:()=>Ea,BlockBlobGetBlockListHeaders:()=>ya,BlockBlobPutBlobFromUrlExceptionHeaders:()=>da,BlockBlobPutBlobFromUrlHeaders:()=>ua,BlockBlobStageBlockExceptionHeaders:()=>pa,BlockBlobStageBlockFromURLExceptionHeaders:()=>ha,BlockBlobStageBlockFromURLHeaders:()=>fa,BlockBlobStageBlockHeaders:()=>Aa,BlockBlobUploadExceptionHeaders:()=>ca,BlockBlobUploadHeaders:()=>la,BlockList:()=>Ts,BlockLookupList:()=>Ns,ClearRange:()=>Ps,ContainerAcquireLeaseExceptionHeaders:()=>Qi,ContainerAcquireLeaseHeaders:()=>Si,ContainerBreakLeaseExceptionHeaders:()=>xi,ContainerBreakLeaseHeaders:()=>Ti,ContainerChangeLeaseExceptionHeaders:()=>_i,ContainerChangeLeaseHeaders:()=>ki,ContainerCreateExceptionHeaders:()=>oi,ContainerCreateHeaders:()=>ii,ContainerDeleteExceptionHeaders:()=>ui,ContainerDeleteHeaders:()=>ci,ContainerFilterBlobsExceptionHeaders:()=>Ii,ContainerFilterBlobsHeaders:()=>Bi,ContainerGetAccessPolicyExceptionHeaders:()=>fi,ContainerGetAccessPolicyHeaders:()=>pi,ContainerGetAccountInfoExceptionHeaders:()=>Ui,ContainerGetAccountInfoHeaders:()=>Mi,ContainerGetPropertiesExceptionHeaders:()=>li,ContainerGetPropertiesHeaders:()=>ai,ContainerItem:()=>As,ContainerListBlobFlatSegmentExceptionHeaders:()=>Fi,ContainerListBlobFlatSegmentHeaders:()=>Pi,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Oi,ContainerListBlobHierarchySegmentHeaders:()=>Li,ContainerProperties:()=>ps,ContainerReleaseLeaseExceptionHeaders:()=>Ri,ContainerReleaseLeaseHeaders:()=>vi,ContainerRenameExceptionHeaders:()=>bi,ContainerRenameHeaders:()=>Ei,ContainerRenewLeaseExceptionHeaders:()=>Ni,ContainerRenewLeaseHeaders:()=>Di,ContainerRestoreExceptionHeaders:()=>yi,ContainerRestoreHeaders:()=>gi,ContainerSetAccessPolicyExceptionHeaders:()=>mi,ContainerSetAccessPolicyHeaders:()=>hi,ContainerSetMetadataExceptionHeaders:()=>Ai,ContainerSetMetadataHeaders:()=>di,ContainerSubmitBatchExceptionHeaders:()=>wi,ContainerSubmitBatchHeaders:()=>Ci,CorsRule:()=>ss,DelimitedTextConfiguration:()=>Ms,FilterBlobItem:()=>gs,FilterBlobSegment:()=>ms,GeoReplication:()=>us,JsonTextConfiguration:()=>Us,KeyInfo:()=>fs,ListBlobsFlatSegmentResponse:()=>ws,ListBlobsHierarchySegmentResponse:()=>vs,ListContainersSegmentResponse:()=>ds,Logging:()=>ts,Metrics:()=>ns,PageBlobClearPagesExceptionHeaders:()=>Ho,PageBlobClearPagesHeaders:()=>Uo,PageBlobCopyIncrementalExceptionHeaders:()=>Zo,PageBlobCopyIncrementalHeaders:()=>Xo,PageBlobCreateExceptionHeaders:()=>Lo,PageBlobCreateHeaders:()=>Fo,PageBlobGetPageRangesDiffExceptionHeaders:()=>jo,PageBlobGetPageRangesDiffHeaders:()=>Wo,PageBlobGetPageRangesExceptionHeaders:()=>Vo,PageBlobGetPageRangesHeaders:()=>qo,PageBlobResizeExceptionHeaders:()=>Jo,PageBlobResizeHeaders:()=>Yo,PageBlobUpdateSequenceNumberExceptionHeaders:()=>Ko,PageBlobUpdateSequenceNumberHeaders:()=>$o,PageBlobUploadPagesExceptionHeaders:()=>Mo,PageBlobUploadPagesFromURLExceptionHeaders:()=>zo,PageBlobUploadPagesFromURLHeaders:()=>Go,PageBlobUploadPagesHeaders:()=>Oo,PageList:()=>ks,PageRange:()=>_s,QueryFormat:()=>Os,QueryRequest:()=>Fs,QuerySerialization:()=>Ls,RetentionPolicy:()=>rs,ServiceFilterBlobsExceptionHeaders:()=>si,ServiceFilterBlobsHeaders:()=>ni,ServiceGetAccountInfoExceptionHeaders:()=>ei,ServiceGetAccountInfoHeaders:()=>Zs,ServiceGetPropertiesExceptionHeaders:()=>Ws,ServiceGetPropertiesHeaders:()=>Vs,ServiceGetStatisticsExceptionHeaders:()=>Ys,ServiceGetStatisticsHeaders:()=>js,ServiceGetUserDelegationKeyExceptionHeaders:()=>Xs,ServiceGetUserDelegationKeyHeaders:()=>Ks,ServiceListContainersSegmentExceptionHeaders:()=>$s,ServiceListContainersSegmentHeaders:()=>Js,ServiceSetPropertiesExceptionHeaders:()=>qs,ServiceSetPropertiesHeaders:()=>zs,ServiceSubmitBatchExceptionHeaders:()=>ri,ServiceSubmitBatchHeaders:()=>ti,SignedIdentifier:()=>bs,StaticWebsite:()=>as,StorageError:()=>ls,UserDelegationKey:()=>hs});var l=s(76760);var u=s(38903);var d=s(70857);function getUploadChunkSize(){return 8*1024*1024}function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const n=r.hostname.trimEnd().toUpperCase();const s=n==="GITHUB.COM";const a=n.endsWith(".GHE.COM");const l=n.endsWith(".LOCALHOST");return!s&&!a&&!l}function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}function getConcurrency(){const r=d.cpus().length;let n=32;if(r>4){const s=16*r;n=s>300?300:s}const s=process.env["ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY"];if(s){const r=parseInt(s);if(isNaN(r)||r<1){throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable")}if(rDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let n=(r.nanos+1e9).toString().substring(1);if(n.substring(3)==="000000")a="."+n.substring(0,3)+"Z";else if(n.substring(6)==="000")a="."+n.substring(0,6)+"Z";else a="."+n+"Z"}return new Date(s).toISOString().replace(".000Z",a)}internalJsonRead(r,n,s){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,f.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(lDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=f.PbLong.from(l/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return s}create(r){const n={seconds:"0",nanos:0};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posg},{no:5,name:"version",kind:"scalar",T:5},{no:6,name:"mime_type",kind:"message",T:()=>Q}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posQ}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posQ},{no:4,name:"id_filter",kind:"message",T:()=>C}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posP}])}create(r){const n={artifacts:[]};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posg},{no:7,name:"digest",kind:"message",T:()=>Q}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posN.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const n=T.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",n);return s.then((r=>x.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const n=k.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",n);return s.then((r=>_.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const n=F.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",n);return s.then((r=>L.fromJson(r,{ignoreUnknownFields:true})))}DeleteArtifact(r){const n=O.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",n);return s.then((r=>M.fromJson(r,{ignoreUnknownFields:true})))}}class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this);this.DeleteArtifact.bind(this)}CreateArtifact(r){const n=CreateArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",n);return s.then((r=>CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const n=FinalizeArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",n);return s.then((r=>FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const n=ListArtifactsRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",n);return s.then((r=>ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const n=GetSignedArtifactURLRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",n);return s.then((r=>GetSignedArtifactURLResponse.fromBinary(r)))}DeleteArtifact(r){const n=DeleteArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",n);return s.then((r=>DeleteArtifactResponse.fromBinary(r)))}}function getExpiration(r){if(!r){return undefined}const n=getRetentionDays();if(n&&n"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const G=new Map([...H,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[n,s]of G){if(r.includes(n)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(G.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,u.pq)(`Artifact name is valid!`)}function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[n,s]of H){if(r.includes(n)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(H.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}var z=s(16877);var q=s(83428);var V=s(65329);function getUserAgentString(){return`@actions/artifact-${V.version}`}class FilesNotFoundError extends Error{constructor(r=[]){let n="No files were found to upload";if(r.length>0){n+=`: ${r.join(", ")}`}super(n);this.files=r;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(r){const n=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(n);this.code=r;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")};class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(r){return decodeURIComponent(atob(r).replace(/(.)/g,((r,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();if(s.length<2){s="0"+s}return"%"+s})))}function base64UrlDecode(r){let n=r.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(n)}catch(r){return atob(n)}}function jwtDecode(r,n){if(typeof r!=="string"){throw new InvalidTokenError("Invalid token specified: must be a string")}n||(n={});const s=n.header===true?0:1;const a=r.split(".")[s];if(typeof a!=="string"){throw new InvalidTokenError(`Invalid token specified: missing part #${s+1}`)}let l;try{l=base64UrlDecode(a)}catch(r){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${s+1} (${r.message})`)}try{return JSON.parse(l)}catch(r){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${s+1} (${r.message})`)}}const W=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=getRuntimeToken();const n=jwtDecode(r);if(!n.scp){throw W}const s=n.scp.split(" ");if(s.length===0){throw W}for(const r of s){const n=r.split(":");if((n===null||n===void 0?void 0:n[0])!=="Actions.Results"){continue}if(n.length!==3){throw W}const s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};u.Yz(`Workflow Run Backend ID: ${s.workflowRunBackendId}`);u.Yz(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`);return s}throw W}function maskSigUrl(r){if(!r)return;try{const n=new URL(r);const s=n.searchParams.get("sig");if(s){(0,u.Pq)(s);(0,u.Pq)(encodeURIComponent(s))}}catch(n){(0,u.Yz)(`Failed to parse URL: ${r} ${n instanceof Error?n.message:String(n)}`)}}function maskSecretUrls(r){if(typeof r!=="object"||r===null){(0,u.Yz)("body is not an object or is null");return}if("signed_upload_url"in r&&typeof r.signed_upload_url==="string"){maskSigUrl(r.signed_upload_url)}if("signed_url"in r&&typeof r.signed_url==="string"){maskSigUrl(r.signed_url)}}var j=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class ArtifactHttpClient{constructor(r,n,s,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const l=getRuntimeToken();this.baseUrl=getResultsServiceUrl();if(n){this.maxAttempts=n}if(s){this.baseRetryIntervalMilliseconds=s}if(a){this.retryMultiplier=a}this.httpClient=new z.Qq(r,[new q.tZ(l)])}request(r,n,s,a){return j(this,void 0,void 0,(function*(){const l=new URL(`/twirp/${r}/${n}`,this.baseUrl).href;(0,u.Yz)(`[Request] ${n} ${l}`);const d={"Content-Type":s};try{const{body:r}=yield this.retryableRequest((()=>j(this,void 0,void 0,(function*(){return this.httpClient.post(l,JSON.stringify(a),d)}))));return r}catch(r){throw new Error(`Failed to ${n}: ${r.message}`)}}))}retryableRequest(r){return j(this,void 0,void 0,(function*(){let n=0;let s="";let a="";while(n=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const n=[z.Hv.BadGateway,z.Hv.GatewayTimeout,z.Hv.InternalServerError,z.Hv.ServiceUnavailable,z.Hv.TooManyRequests];return n.includes(r)}sleep(r){return j(this,void 0,void 0,(function*(){return new Promise((n=>setTimeout(n,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const n=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const s=n*this.retryMultiplier;return Math.trunc(Math.random()*(s-n)+n)}}function internalArtifactTwirpClient(r){const n=new ArtifactHttpClient(getUserAgentString(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new ArtifactServiceClientJSON(n)}function validateRootDirectory(r){if(!A.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!A.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,u.pq)(`Root directory input is valid!`)}function getUploadZipSpecification(r,n){const s=[];n=(0,p.normalize)(n);n=(0,p.resolve)(n);for(let a of r){const r=A.lstatSync(a,{throwIfNoEntry:false});if(!r){throw new Error(`File ${a} does not exist`)}if(!r.isDirectory()){a=(0,p.normalize)(a);a=(0,p.resolve)(a);if(!a.startsWith(n)){throw new Error(`The rootDirectory: ${n} is not a parent directory of the file: ${a}`)}const l=a.replace(n,"");validateFilePath(l);s.push({sourcePath:a,destinationPath:l,stats:r})}else{const l=a.replace(n,"");validateFilePath(l);s.push({sourcePath:null,destinationPath:l,stats:r})}}return s}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}var Y=s(48161);var J=s(57975);var $=s(1708);function log(r,...n){$.stderr.write(`${J.format(r,...n)}${Y.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){X=r;Z=[];ee=[];const n=r.split(",").map((r=>r.trim()));for(const r of n){if(r.startsWith("-")){ee.push(r.substring(1))}else{Z.push(r)}}for(const r of te){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const n of ee){if(namespaceMatches(r,n)){return false}}for(const n of Z){if(namespaceMatches(r,n)){return true}}return false}function namespaceMatches(r,n){if(n.indexOf("*")===-1){return r===n}let s=n;if(n.indexOf("**")!==-1){const r=[];let a="";for(const s of n){if(s==="*"&&a==="*"){continue}else{a=s;r.push(s)}}s=r.join("")}let a=0;let l=0;const u=s.length;const d=r.length;let A=-1;let p=-1;while(a=0){l=A+1;a=p+1;if(a===d){return false}while(r[a]!==s[l]){a++;if(a===d){return false}}p=a;a++;l++;continue}else{return false}}const f=a===r.length;const g=l===s.length;const y=l===s.length-1&&s[l]==="*";return f&&(g||y)}function disable(){const r=X||"";enable("");return r}function createDebugger(r){const n=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:re.log,namespace:r,extend:extend});function debug(...s){if(!n.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}n.log(...s)}te.push(n);return n}function destroy(){const r=te.indexOf(this);if(r>=0){te.splice(r,1);return true}return false}function extend(r){const n=createDebugger(`${this.namespace}:${r}`);n.log=this.log;return n}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(r,n){n.log=(...n)=>{r.log(...n)}}function isTypeSpecRuntimeLogLevel(r){return se.includes(r)}function createLoggerContext(r){const n=new Set;const s=typeof process!=="undefined"&&process.env&&process.env[r.logLevelEnvVarName]||undefined;let a;const l=ne(r.namespace);l.log=(...r)=>{ne.log(...r)};function contextSetLogLevel(r){if(r&&!isTypeSpecRuntimeLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${se.join(",")}`)}a=r;const s=[];for(const r of n){if(shouldEnable(r)){s.push(r.namespace)}}ne.enable(s.join(","))}if(s){if(isTypeSpecRuntimeLogLevel(s)){contextSetLogLevel(s)}else{console.error(`${r.logLevelEnvVarName} set to unknown log level '${s}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(r){return Boolean(a&&ie[r.level]<=ie[a])}function createLogger(r,s){const a=Object.assign(r.extend(s),{level:s});patchLogMethod(r,a);if(shouldEnable(a)){const r=ne.disable();ne.enable(r+","+a.namespace)}n.add(a);return a}function contextGetLogLevel(){return a}function contextCreateClientLogger(r){const n=l.extend(r);patchLogMethod(l,n);return{error:createLogger(n,"error"),warning:createLogger(n,"warning"),info:createLogger(n,"info"),verbose:createLogger(n,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:l}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(r){oe.setLogLevel(r)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(r){return oe.createClientLogger(r)}function normalizeName(r){return r.toLowerCase()}function*headerIterator(r){for(const n of r.values()){yield[n.name,n.value]}}class HttpHeadersImpl{_headersMap;constructor(r){this._headersMap=new Map;if(r){for(const n of Object.keys(r)){this.set(n,r[n])}}}set(r,n){this._headersMap.set(normalizeName(r),{name:r,value:String(n).trim()})}get(r){return this._headersMap.get(normalizeName(r))?.value}has(r){return this._headersMap.has(normalizeName(r))}delete(r){this._headersMap.delete(normalizeName(r))}toJSON(r={}){const n={};if(r.preserveCase){for(const r of this._headersMap.values()){n[r.name]=r.value}}else{for(const[r,s]of this._headersMap){n[r]=s.value}}return n}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(r){return new HttpHeadersImpl(r)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(r){this.url=r.url;this.body=r.body;this.headers=r.headers??httpHeaders_createHttpHeaders();this.method=r.method??"GET";this.timeout=r.timeout??0;this.multipartBody=r.multipartBody;this.formData=r.formData;this.disableKeepAlive=r.disableKeepAlive??false;this.proxySettings=r.proxySettings;this.streamResponseStatusCodes=r.streamResponseStatusCodes;this.withCredentials=r.withCredentials??false;this.abortSignal=r.abortSignal;this.onUploadProgress=r.onUploadProgress;this.onDownloadProgress=r.onDownloadProgress;this.requestId=r.requestId||randomUUID();this.allowInsecureConnection=r.allowInsecureConnection??false;this.enableBrowserStreams=r.enableBrowserStreams??false;this.requestOverrides=r.requestOverrides;this.authSchemes=r.authSchemes}}function pipelineRequest_createPipelineRequest(r){return new PipelineRequestImpl(r)}const le=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(r){this._policies=r?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(r,n={}){if(n.phase&&n.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(n.phase&&!le.has(n.phase)){throw new Error(`Invalid phase name: ${n.phase}`)}if(n.afterPhase&&!le.has(n.afterPhase)){throw new Error(`Invalid afterPhase name: ${n.afterPhase}`)}this._policies.push({policy:r,options:n});this._orderedPolicies=undefined}removePolicy(r){const n=[];this._policies=this._policies.filter((s=>{if(r.name&&s.policy.name===r.name||r.phase&&s.options.phase===r.phase){n.push(s.policy);return false}else{return true}}));this._orderedPolicies=undefined;return n}sendRequest(r,n){const s=this.getOrderedPolicies();const a=s.reduceRight(((r,n)=>s=>n.sendRequest(s,r)),(n=>r.sendRequest(n)));return a(n)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const r=[];const n=new Map;function createPhase(r){return{name:r,policies:new Set,hasRun:false,hasAfterPolicies:false}}const s=createPhase("Serialize");const a=createPhase("None");const l=createPhase("Deserialize");const u=createPhase("Retry");const d=createPhase("Sign");const A=[s,a,l,u,d];function getPhase(r){if(r==="Retry"){return u}else if(r==="Serialize"){return s}else if(r==="Deserialize"){return l}else if(r==="Sign"){return d}else{return a}}for(const r of this._policies){const s=r.policy;const a=r.options;const l=s.name;if(n.has(l)){throw new Error("Duplicate policy names not allowed in pipeline")}const u={policy:s,dependsOn:new Set,dependants:new Set};if(a.afterPhase){u.afterPhase=getPhase(a.afterPhase);u.afterPhase.hasAfterPolicies=true}n.set(l,u);const d=getPhase(a.phase);d.policies.add(u)}for(const r of this._policies){const{policy:s,options:a}=r;const l=s.name;const u=n.get(l);if(!u){throw new Error(`Missing node for policy ${l}`)}if(a.afterPolicies){for(const r of a.afterPolicies){const s=n.get(r);if(s){u.dependsOn.add(s);s.dependants.add(u)}}}if(a.beforePolicies){for(const r of a.beforePolicies){const s=n.get(r);if(s){s.dependsOn.add(u);u.dependants.add(s)}}}}function walkPhase(s){s.hasRun=true;for(const a of s.policies){if(a.afterPhase&&(!a.afterPhase.hasRun||a.afterPhase.policies.size)){continue}if(a.dependsOn.size===0){r.push(a.policy);for(const r of a.dependants){r.dependsOn.delete(a)}n.delete(a.policy.name);s.policies.delete(a)}}}function walkPhases(){for(const r of A){walkPhase(r);if(r.policies.size>0&&r!==a){if(!a.hasRun){walkPhase(a)}return}if(r.hasAfterPolicies){walkPhase(a)}}}let p=0;while(n.size>0){p++;const n=r.length;walkPhases();if(r.length<=n&&p>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return r}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const n=typeof r.name==="string";const s=typeof r.message==="string";return n&&s}return false}const ce=J.inspect.custom;const ue="REDACTED";const de=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Ae=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:r=[],additionalAllowedQueryParameters:n=[]}={}){r=de.concat(r);n=Ae.concat(n);this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(n.map((r=>r.toLowerCase())))}sanitize(r){const n=new Set;return JSON.stringify(r,((r,s)=>{if(s instanceof Error){return{...s,name:s.name,message:s.message}}if(r==="headers"){return this.sanitizeHeaders(s)}else if(r==="url"){return this.sanitizeUrl(s)}else if(r==="query"){return this.sanitizeQuery(s)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(s)||isObject(s)){if(n.has(s)){return"[Circular]"}n.add(s)}return s}),2)}sanitizeUrl(r){if(typeof r!=="string"||r===null||r===""){return r}const n=new URL(r);if(!n.search){return r}for(const[r]of n.searchParams){if(!this.allowedQueryParameters.has(r.toLowerCase())){n.searchParams.set(r,ue)}}return n.toString()}sanitizeHeaders(r){const n={};for(const s of Object.keys(r)){if(this.allowedHeaderNames.has(s.toLowerCase())){n[s]=r[s]}else{n[s]=ue}}return n}sanitizeQuery(r){if(typeof r!=="object"||r===null){return r}const n={};for(const s of Object.keys(r)){if(this.allowedQueryParameters.has(s.toLowerCase())){n[s]=r[s]}else{n[s]=ue}}return n}}const pe=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(r,n={}){super(r);this.name="RestError";this.code=n.code;this.statusCode=n.statusCode;Object.defineProperty(this,"request",{value:n.request,enumerable:false});Object.defineProperty(this,"response",{value:n.response,enumerable:false});const s=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,ce,{value:()=>`RestError: ${this.message} \n ${pe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(r){if(r instanceof restError_RestError){return true}return isError(r)&&r.name==="RestError"}var fe=s(37067);const he=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:https");var me=s(38522);var ge=s(57075);const ye=createClientLogger("ts-http-runtime");const Ee={};function nodeHttpClient_isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r){if(r.readable===false){return Promise.resolve()}return new Promise((n=>{const handler=()=>{n();r.removeListener("close",handler);r.removeListener("end",handler);r.removeListener("error",handler)};r.on("close",handler);r.on("end",handler);r.on("error",handler)}))}function isArrayBuffer(r){return r&&typeof r.byteLength==="number"}class ReportTransform extends ge.Transform{loadedBytes=0;progressCallback;_transform(r,n,s){this.push(r);this.loadedBytes+=r.length;try{this.progressCallback({loadedBytes:this.loadedBytes});s()}catch(r){s(r)}}constructor(r){super();this.progressCallback=r}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(r){const n=new AbortController;let s;if(r.abortSignal){if(r.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}s=r=>{if(r.type==="abort"){n.abort()}};r.abortSignal.addEventListener("abort",s)}let a;if(r.timeout>0){a=setTimeout((()=>{const s=new Sanitizer;ye.info(`request to '${s.sanitizeUrl(r.url)}' timed out. canceling...`);n.abort()}),r.timeout)}const l=r.headers.get("Accept-Encoding");const u=l?.includes("gzip")||l?.includes("deflate");let d=typeof r.body==="function"?r.body():r.body;if(d&&!r.headers.has("Content-Length")){const n=getBodyLength(d);if(n!==null){r.headers.set("Content-Length",n)}}let A;try{if(d&&r.onUploadProgress){const n=r.onUploadProgress;const s=new ReportTransform(n);s.on("error",(r=>{ye.error("Error in upload progress",r)}));if(nodeHttpClient_isReadableStream(d)){d.pipe(s)}else{s.end(d)}d=s}const s=await this.makeRequest(r,n,d);if(a!==undefined){clearTimeout(a)}const l=getResponseHeaders(s);const p=s.statusCode??0;const f={status:p,headers:l,request:r};if(r.method==="HEAD"){s.resume();return f}A=u?getDecodedResponseStream(s,l):s;const g=r.onDownloadProgress;if(g){const r=new ReportTransform(g);r.on("error",(r=>{ye.error("Error in download progress",r)}));A.pipe(r);A=r}if(r.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||r.streamResponseStatusCodes?.has(f.status)){f.readableStreamBody=A}else{f.bodyAsText=await streamToText(A)}return f}finally{if(r.abortSignal&&s){let n=Promise.resolve();if(nodeHttpClient_isReadableStream(d)){n=isStreamComplete(d)}let a=Promise.resolve();if(nodeHttpClient_isReadableStream(A)){a=isStreamComplete(A)}Promise.all([n,a]).then((()=>{if(s){r.abortSignal?.removeEventListener("abort",s)}})).catch((r=>{ye.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}makeRequest(r,n,s){const a=new URL(r.url);const l=a.protocol!=="https:";if(l&&!r.allowInsecureConnection){throw new Error(`Cannot connect to ${r.url} while allowInsecureConnection is false.`)}const u=r.agent??this.getOrCreateAgent(r,l);const d={agent:u,hostname:a.hostname,path:`${a.pathname}${a.search}`,port:a.port,method:r.method,headers:r.headers.toJSON({preserveCase:true}),...r.requestOverrides};return new Promise(((a,u)=>{const A=l?fe.request(d,a):he.request(d,a);A.once("error",(n=>{u(new restError_RestError(n.message,{code:n.code??restError_RestError.REQUEST_SEND_ERROR,request:r}))}));n.signal.addEventListener("abort",(()=>{const r=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(r);u(r)}));if(s&&nodeHttpClient_isReadableStream(s)){s.pipe(A)}else if(s){if(typeof s==="string"||Buffer.isBuffer(s)){A.end(s)}else if(isArrayBuffer(s)){A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s))}else{ye.error("Unrecognized body type",s);u(new restError_RestError("Unrecognized body type"))}}else{A.end()}}))}getOrCreateAgent(r,n){const s=r.disableKeepAlive;if(n){if(s){return fe.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new fe.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(s&&!r.tlsSettings){return he.globalAgent}const n=r.tlsSettings??Ee;let a=this.cachedHttpsAgents.get(n);if(a&&a.options.keepAlive===!s){return a}ye.info("No cached TLS Agent exist, creating a new Agent");a=new he.Agent({keepAlive:!s,...n});this.cachedHttpsAgents.set(n,a);return a}}}function getResponseHeaders(r){const n=httpHeaders_createHttpHeaders();for(const s of Object.keys(r.headers)){const a=r.headers[s];if(Array.isArray(a)){if(a.length>0){n.set(s,a[0])}}else if(a){n.set(s,a)}}return n}function getDecodedResponseStream(r,n){const s=n.get("Content-Encoding");if(s==="gzip"){const n=me.createGunzip();r.pipe(n);return n}else if(s==="deflate"){const n=me.createInflate();r.pipe(n);return n}return r}function streamToText(r){return new Promise(((n,s)=>{const a=[];r.on("data",(r=>{if(Buffer.isBuffer(r)){a.push(r)}else{a.push(Buffer.from(r))}}));r.on("end",(()=>{n(Buffer.concat(a).toString("utf8"))}));r.on("error",(r=>{if(r&&r?.name==="AbortError"){s(r)}else{s(new restError_RestError(`Error reading response as text: ${r.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(r){if(!r){return 0}else if(Buffer.isBuffer(r)){return r.length}else if(nodeHttpClient_isReadableStream(r)){return null}else if(isArrayBuffer(r)){return r.byteLength}else if(typeof r==="string"){return Buffer.from(r).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const be="logPolicy";function logPolicy_logPolicy(r={}){const n=r.logger??ye.info;const s=new Sanitizer({additionalAllowedHeaderNames:r.additionalAllowedHeaderNames,additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});return{name:be,async sendRequest(r,a){if(!n.enabled){return a(r)}n(`Request: ${s.sanitize(r)}`);const l=await a(r);n(`Response status code: ${l.status}`);n(`Headers: ${s.sanitize(l.headers)}`);return l}}}function getHeaderName(){return"User-Agent"}async function userAgentPlatform_setPlatformSpecificData(r){if(process&&process.versions){const n=`${os.type()} ${os.release()}; ${os.arch()}`;const s=process.versions;if(s.bun){r.set("Bun",`${s.bun} (${n})`)}else if(s.deno){r.set("Deno",`${s.deno} (${n})`)}else if(s.node){r.set("Node",`${s.node} (${n})`)}}}function userAgent_getUserAgentString(r){const n=[];for(const[s,a]of r){const r=a?`${s}/${a}`:s;n.push(r)}return n.join(" ")}function getUserAgentHeaderName(){return getHeaderName()}async function userAgent_getUserAgentValue(r){const n=new Map;n.set("ts-http-runtime",SDK_VERSION);await setPlatformSpecificData(n);const s=userAgent_getUserAgentString(n);const a=r?`${r} ${s}`:s;return a}const Ce=getUserAgentHeaderName();const we="userAgentPolicy";function userAgentPolicy_userAgentPolicy(r={}){const n=getUserAgentValue(r.userAgentPrefix);return{name:we,async sendRequest(r,s){if(!r.headers.has(Ce)){r.headers.set(Ce,await n)}return s(r)}}}function random_getRandomIntegerInclusive(r,n){r=Math.ceil(r);n=Math.floor(n);const s=Math.floor(Math.random()*(n-r+1));return s+r}function calculateRetryDelay(r,n){const s=n.retryDelayInMs*Math.pow(2,r);const a=Math.min(n.maxRetryDelayInMs,s);const l=a/2+random_getRandomIntegerInclusive(0,a/2);return{retryAfterInMs:l}}const Be="The operation was aborted.";function helpers_delay(r,n,s){return new Promise(((a,l)=>{let u=undefined;let d=undefined;const rejectOnAbort=()=>l(new AbortError(s?.abortErrorMsg?s?.abortErrorMsg:Be));const removeListeners=()=>{if(s?.abortSignal&&d){s.abortSignal.removeEventListener("abort",d)}};d=()=>{if(u){clearTimeout(u)}removeListeners();return rejectOnAbort()};if(s?.abortSignal&&s.abortSignal.aborted){return rejectOnAbort()}u=setTimeout((()=>{removeListeners();a(n)}),r);if(s?.abortSignal){s.abortSignal.addEventListener("abort",d)}}))}function parseHeaderValueAsNumber(r,n){const s=r.headers.get(n);if(!s)return;const a=Number(s);if(Number.isNaN(a))return;return a}const Ie="Retry-After";const Se=["retry-after-ms","x-ms-retry-after-ms",Ie];function getRetryAfterInMs(r){if(!(r&&[429,503].includes(r.status)))return undefined;try{for(const n of Se){const s=parseHeaderValueAsNumber(r,n);if(s===0||s){const r=n===Ie?1e3:1;return s*r}}const n=r.headers.get(Ie);if(!n)return;const s=Date.parse(n);const a=s-Date.now();return Number.isFinite(a)?Math.max(0,a):undefined}catch{return undefined}}function isThrottlingRetryResponse(r){return Number.isFinite(getRetryAfterInMs(r))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:r}){const n=getRetryAfterInMs(r);if(!Number.isFinite(n)){return{skipStrategy:true}}return{retryAfterInMs:n}}}}const Qe=1e3;const ve=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(r={}){const n=r.retryDelayInMs??Qe;const s=r.maxRetryDelayInMs??ve;return{name:"exponentialRetryStrategy",retry({retryCount:a,response:l,responseError:u}){const d=isSystemError(u);const A=d&&r.ignoreSystemErrors;const p=isExponentialRetryResponse(l);const f=p&&r.ignoreHttpStatusCodes;const g=l&&(isThrottlingRetryResponse(l)||!p);if(g||f||A){return{skipStrategy:true}}if(u&&!d&&!p){return{errorToThrow:u}}return calculateRetryDelay(a,{retryDelayInMs:n,maxRetryDelayInMs:s})}}}function isExponentialRetryResponse(r){return Boolean(r&&r.status!==undefined&&(r.status>=500||r.status===408)&&r.status!==501&&r.status!==505)}function isSystemError(r){if(!r){return false}return r.code==="ETIMEDOUT"||r.code==="ESOCKETTIMEDOUT"||r.code==="ECONNREFUSED"||r.code==="ECONNRESET"||r.code==="ENOENT"||r.code==="ENOTFOUND"}const Re="0.3.3";const De=3;const Ne=createClientLogger("ts-http-runtime retryPolicy");const Te="retryPolicy";function retryPolicy_retryPolicy(r,n={maxRetries:De}){const s=n.logger||Ne;return{name:Te,async sendRequest(a,l){let u;let d;let A=-1;e:while(true){A+=1;u=undefined;d=undefined;try{s.info(`Retry ${A}: Attempting to send request`,a.requestId);u=await l(a);s.info(`Retry ${A}: Received a response from request`,a.requestId)}catch(r){s.error(`Retry ${A}: Received an error from request`,a.requestId);d=r;if(!r||d.name!=="RestError"){throw r}u=d.response}if(a.abortSignal?.aborted){s.error(`Retry ${A}: Request aborted.`);const r=new AbortError;throw r}if(A>=(n.maxRetries??De)){s.info(`Retry ${A}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(u){return u}else{throw new Error("Maximum retries reached with no response or error to throw")}}s.info(`Retry ${A}: Processing ${r.length} retry strategies.`);t:for(const n of r){const r=n.logger||s;r.info(`Retry ${A}: Processing retry strategy ${n.name}.`);const l=n.retry({retryCount:A,response:u,responseError:d});if(l.skipStrategy){r.info(`Retry ${A}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:g}=l;if(p){r.error(`Retry ${A}: Retry strategy ${n.name} throws error:`,p);throw p}if(f||f===0){r.info(`Retry ${A}: Retry strategy ${n.name} retries after ${f}`);await helpers_delay(f,undefined,{abortSignal:a.abortSignal});continue e}if(g){r.info(`Retry ${A}: Retry strategy ${n.name} redirects to ${g}`);a.url=g;continue e}}if(d){s.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(u){s.info(`None of the retry strategies could work with the received response. Returning it.`);return u}}}}}const xe="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(r={}){return{name:xe,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(r)],{maxRetries:r.maxRetries??De}).sendRequest}}function bytesEncoding_uint8ArrayToString(r,n){return Buffer.from(r).toString(n)}function bytesEncoding_stringToUint8Array(r,n){return Buffer.from(r,n)}const ke=typeof window!=="undefined"&&typeof window.document!=="undefined";const _e=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Pe=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Fe=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Le=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const Oe=Le&&!Fe&&!Pe;const Me=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const Ue="formDataPolicy";function formDataToFormDataMap(r){const n={};for(const[s,a]of r.entries()){n[s]??=[];n[s].push(a)}return n}function formDataPolicy_formDataPolicy(){return{name:Ue,async sendRequest(r,n){if(Le&&typeof FormData!=="undefined"&&r.body instanceof FormData){r.formData=formDataToFormDataMap(r.body);r.body=undefined}if(r.formData){const n=r.headers.get("Content-Type");if(n&&n.indexOf("application/x-www-form-urlencoded")!==-1){r.body=wwwFormUrlEncode(r.formData)}else{await prepareFormData(r.formData,r)}r.formData=undefined}return n(r)}}}function wwwFormUrlEncode(r){const n=new URLSearchParams;for(const[s,a]of Object.entries(r)){if(Array.isArray(a)){for(const r of a){n.append(s,r.toString())}}else{n.append(s,a.toString())}}return n.toString()}async function prepareFormData(r,n){const s=n.headers.get("Content-Type");if(s&&!s.startsWith("multipart/form-data")){return}n.headers.set("Content-Type",s??"multipart/form-data");const a=[];for(const[n,s]of Object.entries(r)){for(const r of Array.isArray(s)?s:[s]){if(typeof r==="string"){a.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${n}"`}),body:bytesEncoding_stringToUint8Array(r,"utf-8")})}else if(r===undefined||r===null||typeof r!=="object"){throw new Error(`Unexpected value for key ${n}: ${r}. Value should be serialized to string first.`)}else{const s=r.name||"blob";const l=httpHeaders_createHttpHeaders();l.set("Content-Disposition",`form-data; name="${n}"; filename="${s}"`);l.set("Content-Type",r.type||"application/octet-stream");a.push({headers:l,body:r})}}}n.multipartBody={parts:a}}var He=s(31475);var Ge=s(74249);const ze="HTTPS_PROXY";const qe="HTTP_PROXY";const Ve="ALL_PROXY";const We="NO_PROXY";const je="proxyPolicy";const Ye=[];let Je=false;const $e=new Map;function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(ze);const n=getEnvironmentValue(Ve);const s=getEnvironmentValue(qe);return r||n||s}function isBypassed(r,n,s){if(n.length===0){return false}const a=new URL(r).hostname;if(s?.has(a)){return s.get(a)}let l=false;for(const r of n){if(r[0]==="."){if(a.endsWith(r)){l=true}else{if(a.length===r.length-1&&a===r.slice(1)){l=true}}}else{if(a===r){l=true}}}s?.set(a,l);return l}function loadNoProxy(){const r=getEnvironmentValue(We);Je=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const n=new URL(r);const s=n.protocol?n.protocol+"//":"";return{host:s+n.hostname,port:Number.parseInt(n.port||"80"),username:n.username,password:n.password}}function getDefaultProxySettingsInternal(){const r=loadEnvironmentProxyValue();return r?new URL(r):undefined}function getUrlFromProxySettings(r){let n;try{n=new URL(r.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${r.host}".`)}n.port=String(r.port);if(r.username){n.username=r.username}if(r.password){n.password=r.password}return n}function setProxyAgentOnRequest(r,n,s){if(r.agent){return}const a=new URL(r.url);const l=a.protocol!=="https:";if(r.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const u=r.headers.toJSON();if(l){if(!n.httpProxyAgent){n.httpProxyAgent=new Ge.HttpProxyAgent(s,{headers:u})}r.agent=n.httpProxyAgent}else{if(!n.httpsProxyAgent){n.httpsProxyAgent=new He.HttpsProxyAgent(s,{headers:u})}r.agent=n.httpsProxyAgent}}function proxyPolicy_proxyPolicy(r,n){if(!Je){Ye.push(...loadNoProxy())}const s=r?getUrlFromProxySettings(r):getDefaultProxySettingsInternal();const a={};return{name:je,async sendRequest(r,l){if(!r.proxySettings&&s&&!isBypassed(r.url,n?.customNoProxyList??Ye,n?.customNoProxyList?undefined:$e)){setProxyAgentOnRequest(r,a,s)}else if(r.proxySettings){setProxyAgentOnRequest(r,a,getUrlFromProxySettings(r.proxySettings))}return l(r)}}}function isNodeReadableStream(r){return Boolean(r&&typeof r["pipe"]==="function")}function isWebReadableStream(r){return Boolean(r&&typeof r.getReader==="function"&&typeof r.tee==="function")}function typeGuards_isBinaryBody(r){return r!==undefined&&(r instanceof Uint8Array||typeGuards_isReadableStream(r)||typeof r==="function"||r instanceof Blob)}function typeGuards_isReadableStream(r){return isNodeReadableStream(r)||isWebReadableStream(r)}function isBlob(r){return typeof r.stream==="function"}var Ke=s(2203);async function*streamAsyncIterator(){const r=this.getReader();try{while(true){const{done:n,value:s}=await r.read();if(n){return}yield s}}finally{r.releaseLock()}}function makeAsyncIterable(r){if(!r[Symbol.asyncIterator]){r[Symbol.asyncIterator]=streamAsyncIterator.bind(r)}if(!r.values){r.values=streamAsyncIterator.bind(r)}}function ensureNodeStream(r){if(r instanceof ReadableStream){makeAsyncIterable(r);return Ke.Readable.fromWeb(r)}else{return r}}function toStream(r){if(r instanceof Uint8Array){return Ke.Readable.from(Buffer.from(r))}else if(isBlob(r)){return ensureNodeStream(r.stream())}else{return ensureNodeStream(r)}}async function concat(r){return function(){const n=r.map((r=>typeof r==="function"?r():r)).map(toStream);return Ke.Readable.from(async function*(){for(const r of n){for await(const n of r){yield n}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(r){let n="";for(const[s,a]of r){n+=`${s}: ${a}\r\n`}return n}function getLength(r){if(r instanceof Uint8Array){return r.byteLength}else if(isBlob(r)){return r.size===-1?undefined:r.size}else{return undefined}}function getTotalLength(r){let n=0;for(const s of r){const r=getLength(s);if(r===undefined){return undefined}else{n+=r}}return n}async function buildRequestBody(r,n,s){const a=[bytesEncoding_stringToUint8Array(`--${s}`,"utf-8"),...n.flatMap((r=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(r.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),r.body,bytesEncoding_stringToUint8Array(`\r\n--${s}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const l=getTotalLength(a);if(l){r.headers.set("Content-Length",l)}r.body=await concat(a)}const Xe="multipartPolicy";const Ze=70;const et=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(r){if(r.length>Ze){throw new Error(`Multipart boundary "${r}" exceeds maximum length of 70 characters`)}if(Array.from(r).some((r=>!et.has(r)))){throw new Error(`Multipart boundary "${r}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:Xe,async sendRequest(r,n){if(!r.multipartBody){return n(r)}if(r.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let s=r.multipartBody.boundary;const a=r.headers.get("Content-Type")??"multipart/mixed";const l=a.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!l){throw new Error(`Got multipart request body, but content-type header was not multipart: ${a}`)}const[,u,d]=l;if(d&&s&&d!==s){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${s} in the request body`)}s??=d;if(s){assertValidBoundary(s)}else{s=generateBoundary()}r.headers.set("Content-Type",`${u}; boundary=${s}`);await buildRequestBody(r,r.multipartBody.parts,s);r.multipartBody=undefined;return n(r)}}}function createPipelineFromOptions_createPipelineFromOptions(r){const n=createEmptyPipeline();if(isNodeLike){if(r.agent){n.addPolicy(agentPolicy(r.agent))}if(r.tlsOptions){n.addPolicy(tlsPolicy(r.tlsOptions))}n.addPolicy(proxyPolicy(r.proxyOptions));n.addPolicy(decompressResponsePolicy())}n.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});n.addPolicy(userAgentPolicy(r.userAgentOptions));n.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});n.addPolicy(defaultRetryPolicy(r.retryOptions),{phase:"Retry"});if(isNodeLike){n.addPolicy(redirectPolicy(r.redirectOptions),{afterPhase:"Retry"})}n.addPolicy(logPolicy(r.loggingOptions),{afterPhase:"Sign"});return n}let tt=false;function allowInsecureConnection(r,n){if(n.allowInsecureConnection&&r.allowInsecureConnection){const n=new URL(r.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const r="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(r);if(typeof process?.emitWarning==="function"&&!tt){tt=true;process.emitWarning(r)}}function checkInsecureConnection_ensureSecureConnection(r,n){if(!r.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(r,n)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const rt="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(r){return{name:rt,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="apiKey"));if(!a){return s(n)}if(a.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${a.apiKeyLocation}`)}n.headers.set(a.name,r.credential.key);return s(n)}}}const nt="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(r){return{name:nt,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="http"&&r.scheme==="basic"));if(!a){return s(n)}const{username:l,password:u}=r.credential;const d=uint8ArrayToString(stringToUint8Array(`${l}:${u}`,"utf-8"),"base64");n.headers.set("Authorization",`Basic ${d}`);return s(n)}}}const st="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(r){return{name:st,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="http"&&r.scheme==="bearer"));if(!a){return s(n)}const l=await r.credential.getBearerToken({abortSignal:n.abortSignal});n.headers.set("Authorization",`Bearer ${l}`);return s(n)}}}const it="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(r){return{name:it,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="oauth2"));if(!a){return s(n)}const l=await r.credential.getOAuth2Token(a.flows,{abortSignal:n.abortSignal});n.headers.set("Authorization",`Bearer ${l}`);return s(n)}}}let ot;function clientHelpers_createDefaultPipeline(r={}){const n=createPipelineFromOptions(r);n.addPolicy(apiVersionPolicy(r));const{credential:s,authSchemes:a,allowInsecureConnection:l}=r;if(s){if(isApiKeyCredential(s)){n.addPolicy(apiKeyAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isBasicCredential(s)){n.addPolicy(basicAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isBearerTokenCredential(s)){n.addPolicy(bearerAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isOAuth2TokenCredential(s)){n.addPolicy(oauth2AuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}}return n}function clientHelpers_getCachedDefaultHttpsClient(){if(!ot){ot=createDefaultHttpClient()}return ot}function getHeaderValue(r,n){if(r.headers){const s=Object.keys(r.headers).find((r=>r.toLowerCase()===n.toLowerCase()));if(s){return r.headers[s]}}return undefined}function getPartContentType(r){const n=getHeaderValue(r,"content-type");if(n){return n}if(r.contentType===null){return undefined}if(r.contentType){return r.contentType}const{body:s}=r;if(s===null||s===undefined){return undefined}if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){return"text/plain; charset=UTF-8"}if(s instanceof Blob){return s.type||"application/octet-stream"}if(isBinaryBody(s)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(r){return JSON.stringify(r)}function getContentDisposition(r){const n=getHeaderValue(r,"content-disposition");if(n){return n}if(r.dispositionType===undefined&&r.name===undefined&&r.filename===undefined){return undefined}const s=r.dispositionType??"form-data";let a=s;if(r.name){a+=`; name=${escapeDispositionField(r.name)}`}let l=undefined;if(r.filename){l=r.filename}else if(typeof File!=="undefined"&&r.body instanceof File){const n=r.body.name;if(n!==""){l=n}}if(l){a+=`; filename=${escapeDispositionField(l)}`}return a}function normalizeBody(r,n){if(r===undefined){return new Uint8Array([])}if(isBinaryBody(r)){return r}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return stringToUint8Array(String(r),"utf-8")}if(n&&/application\/(.+\+)?json(;.+)?/i.test(String(n))){return stringToUint8Array(JSON.stringify(r),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${r}, ${n}`)}function buildBodyPart(r){const n=getPartContentType(r);const s=getContentDisposition(r);const a=createHttpHeaders(r.headers??{});if(n){a.set("content-type",n)}if(s){a.set("content-disposition",s)}const l=normalizeBody(r.body,n);return{headers:a,body:l}}function multipart_buildMultipartBody(r){return{parts:r.map(buildBodyPart)}}async function sendRequest_sendRequest(r,n,s,a={},l){const u=l??getCachedDefaultHttpsClient();const d=buildPipelineRequest(r,n,a);try{const r=await s.sendRequest(u,d);const n=r.headers.toJSON();const l=r.readableStreamBody??r.browserStreamBody;const A=a.responseAsStream||l!==undefined?undefined:getResponseBody(r);const p=l??A;if(a?.onResponse){a.onResponse({...r,request:d,rawHeaders:n,parsedBody:A})}return{request:d,headers:n,status:`${r.status}`,body:p}}catch(r){if(isRestError(r)&&r.response&&a.onResponse){const{response:n}=r;const s=n.headers.toJSON();a?.onResponse({...n,request:d,rawHeaders:s},r)}throw r}}function getRequestContentType(r={}){return r.contentType??r.headers?.["content-type"]??getContentType(r.body)}function getContentType(r){if(r===undefined){return undefined}if(ArrayBuffer.isView(r)){return"application/octet-stream"}if(typeof r==="string"){try{JSON.parse(r);return"application/json"}catch(r){return undefined}}return"application/json"}function buildPipelineRequest(r,n,s={}){const a=getRequestContentType(s);const{body:l,multipartBody:u}=getRequestBody(s.body,a);const d=createHttpHeaders({...s.headers?s.headers:{},accept:s.accept??s.headers?.accept??"application/json",...a&&{"content-type":a}});return createPipelineRequest({url:n,method:r,body:l,multipartBody:u,headers:d,allowInsecureConnection:s.allowInsecureConnection,abortSignal:s.abortSignal,onUploadProgress:s.onUploadProgress,onDownloadProgress:s.onDownloadProgress,timeout:s.timeout,enableBrowserStreams:true,streamResponseStatusCodes:s.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(r,n=""){if(r===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&r instanceof FormData){return{body:r}}if(isReadableStream(r)){return{body:r}}if(ArrayBuffer.isView(r)){return{body:r instanceof Uint8Array?r:JSON.stringify(r)}}const s=n.split(";")[0];switch(s){case"application/json":return{body:JSON.stringify(r)};case"multipart/form-data":if(Array.isArray(r)){return{multipartBody:buildMultipartBody(r)}}return{body:JSON.stringify(r)};case"text/plain":return{body:String(r)};default:if(typeof r==="string"){return{body:r}}return{body:JSON.stringify(r)}}}function getResponseBody(r){const n=r.headers.get("content-type")??"";const s=n.split(";")[0];const a=r.bodyAsText??"";if(s==="text/plain"){return String(a)}try{return a?JSON.parse(a):undefined}catch(n){if(s==="application/json"){throw createParseError(r,n)}return String(a)}}function createParseError(r,n){const s=`Error "${n}" occurred while parsing the response body - ${r.bodyAsText}.`;const a=n.code??RestError.PARSE_ERROR;return new RestError(s,{code:a,statusCode:r.status,request:r.request,response:r})}function getClient(r,n={}){const s=n.pipeline??createDefaultPipeline(n);if(n.additionalPolicies?.length){for(const{policy:r,position:a}of n.additionalPolicies){const n=a==="perRetry"?"Sign":undefined;s.addPolicy(r,{afterPhase:n})}}const{allowInsecureConnection:a,httpClient:l}=n;const u=n.endpoint??r;const client=(r,...n)=>{const getUrl=s=>buildRequestUrl(u,r,n,{allowInsecureConnection:a,...s});return{get:(r={})=>buildOperation("GET",getUrl(r),s,r,a,l),post:(r={})=>buildOperation("POST",getUrl(r),s,r,a,l),put:(r={})=>buildOperation("PUT",getUrl(r),s,r,a,l),patch:(r={})=>buildOperation("PATCH",getUrl(r),s,r,a,l),delete:(r={})=>buildOperation("DELETE",getUrl(r),s,r,a,l),head:(r={})=>buildOperation("HEAD",getUrl(r),s,r,a,l),options:(r={})=>buildOperation("OPTIONS",getUrl(r),s,r,a,l),trace:(r={})=>buildOperation("TRACE",getUrl(r),s,r,a,l)}};return{path:client,pathUnchecked:client,pipeline:s}}function buildOperation(r,n,s,a,l,u){l=a.allowInsecureConnection??l;return{then:function(d,A){return sendRequest(r,n,s,{...a,allowInsecureConnection:l},u).then(d,A)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(r,n,s,{...a,allowInsecureConnection:l,responseAsStream:true},u)}},async asNodeStream(){if(isNodeLike){return sendRequest(r,n,s,{...a,allowInsecureConnection:l,responseAsStream:true},u)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(r,n){const s=typeof r==="string"?n:r;const a=s.body?.error??s.body;const l=typeof r==="string"?r:a?.message??`Unexpected status code: ${s.status}`;return new RestError(l,{statusCode:statusCodeToNumber(s.status),code:a?.code,request:s.request,response:toPipelineResponse(s)})}function toPipelineResponse(r){return{headers:createHttpHeaders(r.headers),request:r.request,status:statusCodeToNumber(r.status)??-1}}function statusCodeToNumber(r){const n=Number.parseInt(r);return Number.isNaN(n)?undefined:n}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const at=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const lt=at.logger;function esm_setLogLevel(r){at.setLogLevel(r)}function esm_getLogLevel(){return at.getLogLevel()}function esm_createClientLogger(r){return at.createClientLogger(r)}const ct=esm_createClientLogger("core-rest-pipeline");const ut="agentPolicy";function agentPolicy_agentPolicy(r){return{name:ut,sendRequest:async(n,s)=>{if(!n.agent){n.agent=r}return s(n)}}}const dt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:dt,async sendRequest(r,n){if(r.method!=="HEAD"){r.headers.set("Accept-Encoding","gzip,deflate")}return n(r)}}}const At="exponentialRetryPolicy";function exponentialRetryPolicy(r={}){return retryPolicy([exponentialRetryStrategy({...r,ignoreSystemErrors:true})],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const pt="systemErrorRetryPolicy";function systemErrorRetryPolicy(r={}){return{name:pt,sendRequest:retryPolicy([exponentialRetryStrategy({...r,ignoreHttpStatusCodes:true})],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ft="throttlingRetryPolicy";function throttlingRetryPolicy(r={}){return{name:ft,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const ht="redirectPolicy";const mt=["GET","HEAD"];function redirectPolicy_redirectPolicy(r={}){const{maxRetries:n=20}=r;return{name:ht,async sendRequest(r,s){const a=await s(r);return handleRedirect(s,a,n)}}}async function handleRedirect(r,n,s,a=0){const{request:l,status:u,headers:d}=n;const A=d.get("location");if(A&&(u===300||u===301&&mt.includes(l.method)||u===302&&mt.includes(l.method)||u===303&&l.method==="POST"||u===307)&&a{if(!n.tlsSettings){n.tlsSettings=r}return s(n)}}}const yt=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(r={}){return logPolicy_logPolicy({logger:ct.info,...r})}const Et=ht;function policies_redirectPolicy_redirectPolicy(r={}){return redirectPolicy_redirectPolicy(r)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(r){if($&&$.versions){const n=`${Y.type()} ${Y.release()}; ${Y.arch()}`;const s=$.versions;if(s.bun){r.set("Bun",`${s.bun} (${n})`)}else if(s.deno){r.set("Deno",`${s.deno} (${n})`)}else if(s.node){r.set("Node",`${s.node} (${n})`)}}}const bt="1.22.2";const Ct=3;function util_userAgent_getUserAgentString(r){const n=[];for(const[s,a]of r){const r=a?`${s}/${a}`:s;n.push(r)}return n.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(r){const n=new Map;n.set("core-rest-pipeline",bt);await util_userAgentPlatform_setPlatformSpecificData(n);const s=util_userAgent_getUserAgentString(n);const a=r?`${r} ${s}`:s;return a}const wt=userAgent_getUserAgentHeaderName();const Bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(r={}){const n=util_userAgent_getUserAgentValue(r.userAgentPrefix);return{name:Bt,async sendRequest(r,s){if(!r.headers.has(wt)){r.headers.set(wt,await n)}return s(r)}}}var It=s(77598);async function computeSha256Hmac(r,n,s){const a=Buffer.from(r,"base64");return createHmac("sha256",a).update(n).digest(s)}async function computeSha256Hash(r,n){return createHash("sha256").update(r).digest(n)}class AbortError_AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}function createAbortablePromise(r,n){const{cleanupBeforeAbort:s,abortSignal:a,abortErrorMsg:l}=n??{};return new Promise(((n,u)=>{function rejectOnAbort(){u(new AbortError_AbortError(l??"The operation was aborted."))}function removeListeners(){a?.removeEventListener("abort",onAbort)}function onAbort(){s?.();removeListeners();rejectOnAbort()}if(a?.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();n(r)}),(r=>{removeListeners();u(r)}))}catch(r){u(r)}a?.addEventListener("abort",onAbort)}))}const St="The delay was aborted.";function delay_delay(r,n){let s;const{abortSignal:a,abortErrorMsg:l}=n??{};return createAbortablePromise((n=>{s=setTimeout(n,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:a,abortErrorMsg:l??St})}function delay_calculateRetryDelay(r,n){const s=n.retryDelayInMs*Math.pow(2,r);const a=Math.min(n.maxRetryDelayInMs,s);const l=a/2+getRandomIntegerInclusive(0,a/2);return{retryAfterInMs:l}}function getErrorMessage(r){if(isError(r)){return r.message}else{let n;try{if(typeof r==="object"&&r){n=JSON.stringify(r)}else{n=String(r)}}catch(r){n="[unable to stringify input]"}return`Unknown error ${n}`}}function esm_calculateRetryDelay(r,n){return tspRuntime.calculateRetryDelay(r,n)}function esm_computeSha256Hash(r,n){return tspRuntime.computeSha256Hash(r,n)}function esm_computeSha256Hmac(r,n,s){return tspRuntime.computeSha256Hmac(r,n,s)}function esm_getRandomIntegerInclusive(r,n){return tspRuntime.getRandomIntegerInclusive(r,n)}function esm_isError(r){return isError(r)}function esm_isObject(r){return tspRuntime.isObject(r)}function esm_randomUUID(){return randomUUID()}const Qt=ke;const vt=Fe;const Rt=Pe;const Dt=Le;const Nt=Le;const Tt=Oe;const xt=Me;const kt=_e;function esm_uint8ArrayToString(r,n){return tspRuntime.uint8ArrayToString(r,n)}function esm_stringToUint8Array(r,n){return tspRuntime.stringToUint8Array(r,n)}function file_isNodeReadableStream(r){return Boolean(r&&typeof r["pipe"]==="function")}const _t={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Pt=Symbol("rawContent");function hasRawContent(r){return typeof r[Pt]==="function"}function getRawContent(r){if(hasRawContent(r)){return r[Pt]()}else{return r}}function createFileFromStream(r,n,s={}){return{..._t,type:s.type??"",lastModified:s.lastModified??(new Date).getTime(),webkitRelativePath:s.webkitRelativePath??"",size:s.size??-1,name:n,stream:()=>{const n=r();if(file_isNodeReadableStream(n)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return n},[Pt]:r}}function createFile(r,n,s={}){if(isNodeLike){return{..._t,type:s.type??"",lastModified:s.lastModified??(new Date).getTime(),webkitRelativePath:s.webkitRelativePath??"",size:r.byteLength,name:n,arrayBuffer:async()=>r.buffer,stream:()=>new Blob([toArrayBuffer(r)]).stream(),[Pt]:()=>r}}else{return new File([toArrayBuffer(r)],n,s)}}function toArrayBuffer(r){if("resize"in r.buffer){return r}return r.map((r=>r))}const Ft=Xe;function policies_multipartPolicy_multipartPolicy(){const r=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(n,s)=>{if(n.multipartBody){for(const r of n.multipartBody.parts){if(hasRawContent(r.body)){r.body=getRawContent(r.body)}}}return r.sendRequest(n,s)}}}const Lt=dt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(r={}){return defaultRetryPolicy_defaultRetryPolicy(r)}const Mt=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const Ut=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(r){return getDefaultProxySettings(r)}function policies_proxyPolicy_proxyPolicy(r,n){return proxyPolicy_proxyPolicy(r,n)}const Ht="setClientRequestIdPolicy";function setClientRequestIdPolicy(r="x-ms-client-request-id"){return{name:Ht,async sendRequest(n,s){if(!n.headers.has(r)){n.headers.set(r,n.requestId)}return s(n)}}}const Gt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(r){return agentPolicy_agentPolicy(r)}const zt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(r){return tlsPolicy_tlsPolicy(r)}const qt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(r={}){let n=new TracingContextImpl(r.parentContext);if(r.span){n=n.setValue(qt.span,r.span)}if(r.namespace){n=n.setValue(qt.namespace,r.namespace)}return n}class TracingContextImpl{_contextMap;constructor(r){this._contextMap=r instanceof TracingContextImpl?new Map(r._contextMap):new Map}setValue(r,n){const s=new TracingContextImpl(this);s._contextMap.set(r,n);return s}getValue(r){return this._contextMap.get(r)}deleteValue(r){const n=new TracingContextImpl(this);n._contextMap.delete(r);return n}}var Vt=s(74480);const Wt=Vt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(r,n)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:n.tracingContext})}),withContext(r,n,...s){return n(...s)}}}function useInstrumenter(r){state.instrumenterImplementation=r}function getInstrumenter(){if(!Wt.instrumenterImplementation){Wt.instrumenterImplementation=createDefaultInstrumenter()}return Wt.instrumenterImplementation}function createTracingClient(r){const{namespace:n,packageName:s,packageVersion:a}=r;function startSpan(r,l,u){const d=getInstrumenter().startSpan(r,{...u,packageName:s,packageVersion:a,tracingContext:l?.tracingOptions?.tracingContext});let A=d.tracingContext;const p=d.span;if(!A.getValue(qt.namespace)){A=A.setValue(qt.namespace,n)}p.setAttribute("az.namespace",A.getValue(qt.namespace));const f=Object.assign({},l,{tracingOptions:{...l?.tracingOptions,tracingContext:A}});return{span:p,updatedOptions:f}}async function withSpan(r,n,s,a){const{span:l,updatedOptions:u}=startSpan(r,n,a);try{const r=await withContext(u.tracingOptions.tracingContext,(()=>Promise.resolve(s(u,l))));l.setStatus({status:"success"});return r}catch(r){l.setStatus({status:"error",error:r});throw r}finally{l.end()}}function withContext(r,n,...s){return getInstrumenter().withContext(r,n,...s)}function parseTraceparentHeader(r){return getInstrumenter().parseTraceparentHeader(r)}function createRequestHeaders(r){return getInstrumenter().createRequestHeaders(r)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const jt=restError_RestError;function esm_restError_isRestError(r){return restError_isRestError(r)}const Yt="tracingPolicy";function tracingPolicy(r={}){const n=util_userAgent_getUserAgentValue(r.userAgentPrefix);const s=new Sanitizer({additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});const a=tryCreateTracingClient();return{name:Yt,async sendRequest(r,l){if(!a){return l(r)}const u=await n;const d={"http.url":s.sanitizeUrl(r.url),"http.method":r.method,"http.user_agent":u,requestId:r.requestId};if(u){d["http.user_agent"]=u}const{span:A,tracingContext:p}=tryCreateSpan(a,r,d)??{};if(!A||!p){return l(r)}try{const n=await a.withContext(p,l,r);tryProcessResponse(A,n);return n}catch(r){tryProcessError(A,r);throw r}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:bt})}catch(r){ct.warning(`Error when creating the TracingClient: ${getErrorMessage(r)}`);return undefined}}function tryCreateSpan(r,n,s){try{const{span:a,updatedOptions:l}=r.startSpan(`HTTP ${n.method}`,{tracingOptions:n.tracingOptions},{spanKind:"client",spanAttributes:s});if(!a.isRecording()){a.end();return undefined}const u=r.createRequestHeaders(l.tracingOptions.tracingContext);for(const[r,s]of Object.entries(u)){n.headers.set(r,s)}return{span:a,tracingContext:l.tracingOptions.tracingContext}}catch(r){ct.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(r)}`);return undefined}}function tryProcessError(r,n){try{r.setStatus({status:"error",error:esm_isError(n)?n:undefined});if(esm_restError_isRestError(n)&&n.statusCode){r.setAttribute("http.status_code",n.statusCode)}r.end()}catch(r){ct.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(r)}`)}}function tryProcessResponse(r,n){try{r.setAttribute("http.status_code",n.status);const s=n.headers.get("x-ms-request-id");if(s){r.setAttribute("serviceRequestId",s)}if(n.status>=400){r.setStatus({status:"error"})}r.end()}catch(r){ct.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(r)}`)}}function wrapAbortSignalLike(r){if(r instanceof AbortSignal){return{abortSignal:r}}if(r.aborted){return{abortSignal:AbortSignal.abort(r.reason)}}const n=new AbortController;let s=true;function cleanup(){if(s){r.removeEventListener("abort",listener);s=false}}function listener(){n.abort(r.reason);cleanup()}r.addEventListener("abort",listener);return{abortSignal:n.signal,cleanup:cleanup}}const Jt="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:Jt,sendRequest:async(r,n)=>{if(!r.abortSignal){return n(r)}const{abortSignal:s,cleanup:a}=wrapAbortSignalLike(r.abortSignal);r.abortSignal=s;try{return await n(r)}finally{a?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(r){const n=esm_pipeline_createEmptyPipeline();if(Nt){if(r.agent){n.addPolicy(policies_agentPolicy_agentPolicy(r.agent))}if(r.tlsOptions){n.addPolicy(policies_tlsPolicy_tlsPolicy(r.tlsOptions))}n.addPolicy(policies_proxyPolicy_proxyPolicy(r.proxyOptions));n.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}n.addPolicy(wrapAbortSignalLikePolicy());n.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});n.addPolicy(policies_userAgentPolicy_userAgentPolicy(r.userAgentOptions));n.addPolicy(setClientRequestIdPolicy(r.telemetryOptions?.clientRequestIdHeaderName));n.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});n.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(r.retryOptions),{phase:"Retry"});n.addPolicy(tracingPolicy({...r.userAgentOptions,...r.loggingOptions}),{afterPhase:"Retry"});if(Nt){n.addPolicy(policies_redirectPolicy_redirectPolicy(r.redirectOptions),{afterPhase:"Retry"})}n.addPolicy(policies_logPolicy_logPolicy(r.loggingOptions),{afterPhase:"Sign"});return n}function esm_defaultHttpClient_createDefaultHttpClient(){const r=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(n){const{abortSignal:s,cleanup:a}=n.abortSignal?wrapAbortSignalLike(n.abortSignal):{};try{n.abortSignal=s;return await r.sendRequest(n)}finally{a?.()}}}}function esm_httpHeaders_createHttpHeaders(r){return httpHeaders_createHttpHeaders(r)}function esm_pipelineRequest_createPipelineRequest(r){return pipelineRequest_createPipelineRequest(r)}const $t=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(r={}){return tspExponentialRetryPolicy(r)}const Kt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(r={}){return tspSystemErrorRetryPolicy(r)}const Xt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(r={}){return tspThrottlingRetryPolicy(r)}const Zt=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(r,n={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(r,{logger:Zt,...n})}const er={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,n,s){async function tryGetAccessToken(){if(Date.now()r.getToken(n,A);s=beginRefresh(tryGetAccessToken,u.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then((r=>{s=null;a=r;l=A.tenantId;return a})).catch((r=>{s=null;a=null;l=undefined;throw r}))}return s}return async(r,n)=>{const s=Boolean(n.claims);const u=l!==n.tenantId;if(s){a=null}const A=u||s||d.mustRefresh;if(A){return refresh(r,n)}if(d.shouldRefresh){refresh(r,n)}return a}}const tr="bearerTokenAuthenticationPolicy";async function trySendRequest(r,n){try{return[await n(r),undefined]}catch(r){if(esm_restError_isRestError(r)&&r.response){return[r.response,r]}else{throw r}}}async function defaultAuthorizeRequest(r){const{scopes:n,getAccessToken:s,request:a}=r;const l={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions,enableCae:true};const u=await s(n,l);if(u){r.request.headers.set("Authorization",`Bearer ${u.token}`)}}function isChallengeResponse(r){return r.status===401&&r.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(r,n){const{scopes:s}=r;const a=await r.getAccessToken(s,{enableCae:true,claims:n});if(!a){return false}r.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}function bearerTokenAuthenticationPolicy(r){const{credential:n,scopes:s,challengeCallbacks:a}=r;const l=r.logger||ct;const u={authorizeRequest:a?.authorizeRequest?.bind(a)??defaultAuthorizeRequest,authorizeRequestOnChallenge:a?.authorizeRequestOnChallenge?.bind(a)};const d=n?tokenCycler_createTokenCycler(n):()=>Promise.resolve(null);return{name:tr,async sendRequest(r,n){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await u.authorizeRequest({scopes:Array.isArray(s)?s:[s],request:r,getAccessToken:d,logger:l});let a;let A;let p;[a,A]=await trySendRequest(r,n);if(isChallengeResponse(a)){let f=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(f){let u;try{u=atob(f)}catch(r){l.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return a}p=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(s)?s:[s],response:a,request:r,getAccessToken:d,logger:l},u);if(p){[a,A]=await trySendRequest(r,n)}}else if(u.authorizeRequestOnChallenge){p=await u.authorizeRequestOnChallenge({scopes:Array.isArray(s)?s:[s],request:r,response:a,getAccessToken:d,logger:l});if(p){[a,A]=await trySendRequest(r,n)}if(isChallengeResponse(a)){f=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(f){let u;try{u=atob(f)}catch(r){l.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return a}p=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(s)?s:[s],response:a,request:r,getAccessToken:d,logger:l},u);if(p){[a,A]=await trySendRequest(r,n)}}}}}if(A){throw A}else{return a}}}}function parseChallenges(r){const n=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const s=/(\w+)="([^"]*)"/g;const a=[];let l;while((l=n.exec(r))!==null){const r=l[1];const n=l[2];const u={};let d;while((d=s.exec(n))!==null){u[d[1]]=d[2]}a.push({scheme:r,params:u})}return a}function getCaeChallengeClaims(r){if(!r){return}const n=parseChallenges(r);return n.find((r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims"))?.params.claims}const rr="auxiliaryAuthenticationHeaderPolicy";const nr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(r){const{scopes:n,getAccessToken:s,request:a}=r;const l={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions};return(await s(n,l))?.token??""}function auxiliaryAuthenticationHeaderPolicy(r){const{credentials:n,scopes:s}=r;const a=r.logger||coreLogger;const l=new WeakMap;return{name:rr,async sendRequest(r,u){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){a.info(`${rr} header will not be set due to empty credentials.`);return u(r)}const d=[];for(const u of n){let n=l.get(u);if(!n){n=createTokenCycler(u);l.set(u,n)}d.push(sendAuthorizeRequest({scopes:Array.isArray(s)?s:[s],request:r,getAccessToken:n,logger:a}))}const A=(await Promise.all(d)).filter((r=>Boolean(r)));if(A.length===0){a.warning(`None of the auxiliary tokens are valid. ${nr} header will not be set.`);return u(r)}r.headers.set(nr,A.map((r=>`Bearer ${r}`)).join(", "));return u(r)}}}function isKeyCredential(r){return isObjectWithProperties(r,["key"])&&typeof r.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(r,n){if(!r||!n){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=n}update(r,n){if(!r||!n){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=n}}function isNamedKeyCredential(r){return isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isBearerToken(r){return!r.tokenType||r.tokenType==="Bearer"}function isPopToken(r){return r.tokenType==="pop"}function isTokenCredential(r){const n=r;return n&&typeof n.getToken==="function"&&(n.signRequest===undefined||n.getToken.length>0)}const sr="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:sr,async sendRequest(r,n){r.disableKeepAlive=true;return n(r)}}}function pipelineContainsDisableKeepAlivePolicy(r){return r.getOrderedPolicies().some((r=>r.name===sr))}function encodeString(r){return Buffer.from(r).toString("base64")}function encodeByteArray(r){const n=r instanceof Buffer?r:Buffer.from(r.buffer);return n.toString("base64")}function decodeString(r){return Buffer.from(r,"base64")}function base64_decodeStringToString(r){return Buffer.from(r,"base64").toString()}const ir="$";const or="_";function isPrimitiveBody(r,n){return n!=="Composite"&&n!=="Dictionary"&&(typeof r==="string"||typeof r==="number"||typeof r==="boolean"||n?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||r===undefined||r===null)}const ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return ar.test(r)}const lr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(r){return lr.test(r)}function handleNullableResponseAndWrappableBody(r){const n={...r.headers,...r.body};if(r.hasNullableType&&Object.getOwnPropertyNames(n).length===0){return r.shouldWrapBody?{body:null}:null}else{return r.shouldWrapBody?{...r.headers,body:r.body}:n}}function flattenResponse(r,n){const s=r.parsedHeaders;if(r.request.method==="HEAD"){return{...s,body:r.parsedBody}}const a=n&&n.bodyMapper;const l=Boolean(a?.nullable);const u=a?.type.name;if(u==="Stream"){return{...s,blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}}const d=u==="Composite"&&a.type.modelProperties||{};const A=Object.keys(d).some((r=>d[r].serializedName===""));if(u==="Sequence"||A){const n=r.parsedBody??[];for(const s of Object.keys(d)){if(d[s].serializedName){n[s]=r.parsedBody?.[s]}}if(s){for(const r of Object.keys(s)){n[r]=s[r]}}return l&&!r.parsedBody&&!s&&Object.getOwnPropertyNames(d).length===0?null:n}return handleNullableResponseAndWrappableBody({body:r.parsedBody,headers:s,hasNullableType:l,shouldWrapBody:isPrimitiveBody(r.parsedBody,u)})}class SerializerImpl{modelMappers;isXML;constructor(r={},n=false){this.modelMappers=r;this.isXML=n}validateConstraints(r,n,s){const failValidation=(r,a)=>{throw new Error(`"${s}" with value "${n}" should satisfy the constraint "${r}": ${a}.`)};if(r.constraints&&n!==undefined&&n!==null){const{ExclusiveMaximum:s,ExclusiveMinimum:a,InclusiveMaximum:l,InclusiveMinimum:u,MaxItems:d,MaxLength:A,MinItems:p,MinLength:f,MultipleOf:g,Pattern:y,UniqueItems:b}=r.constraints;if(s!==undefined&&n>=s){failValidation("ExclusiveMaximum",s)}if(a!==undefined&&n<=a){failValidation("ExclusiveMinimum",a)}if(l!==undefined&&n>l){failValidation("InclusiveMaximum",l)}if(u!==undefined&&nd){failValidation("MaxItems",d)}if(A!==undefined&&n.length>A){failValidation("MaxLength",A)}if(p!==undefined&&n.lengths.indexOf(r)!==n))){failValidation("UniqueItems",b)}}}serialize(r,n,s,a={xml:{}}){const l={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??or}};let u={};const d=r.type.name;if(!s){s=r.serializedName}if(d.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){n=r.defaultValue}const{required:A,nullable:p}=r;if(A&&p&&n===undefined){throw new Error(`${s} cannot be undefined.`)}if(A&&!p&&(n===undefined||n===null)){throw new Error(`${s} cannot be null or undefined.`)}if(!A&&p===false&&n===null){throw new Error(`${s} cannot be null.`)}if(n===undefined||n===null){u=n}else{if(d.match(/^any$/i)!==null){u=n}else if(d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(d,s,n)}else if(d.match(/^Enum$/i)!==null){const a=r;u=serializeEnumType(s,a.type.allowedValues,n)}else if(d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(d,n,s)}else if(d.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(s,n)}else if(d.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(s,n)}else if(d.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,n,s,Boolean(this.isXML),l)}else if(d.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,n,s,Boolean(this.isXML),l)}else if(d.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,n,s,Boolean(this.isXML),l)}}return u}deserialize(r,n,s,a={xml:{}}){const l={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??or},ignoreUnknownProperties:a.ignoreUnknownProperties??false};if(n===undefined||n===null){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){n=[]}if(r.defaultValue!==undefined){n=r.defaultValue}return n}let u;const d=r.type.name;if(!s){s=r.serializedName}if(d.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,n,s,l)}else{if(this.isXML){const r=l.xml.xmlCharKey;if(n[ir]!==undefined&&n[r]!==undefined){n=n[r]}}if(d.match(/^Number$/i)!==null){u=parseFloat(n);if(isNaN(u)){u=n}}else if(d.match(/^Boolean$/i)!==null){if(n==="true"){u=true}else if(n==="false"){u=false}else{u=n}}else if(d.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=n}else if(d.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(n)}else if(d.match(/^UnixTime$/i)!==null){u=unixTimeToDate(n)}else if(d.match(/^ByteArray$/i)!==null){u=decodeString(n)}else if(d.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(n)}else if(d.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,n,s,l)}else if(d.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,n,s,l)}}if(r.isConstant){u=r.defaultValue}return u}}function createSerializer(r={},n=false){return new SerializerImpl(r,n)}function trimEnd(r,n){let s=r.length;while(s-1>=0&&r[s-1]===n){--s}return r.substr(0,s)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const n=encodeByteArray(r);return trimEnd(n,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const n=[];let s="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){s+=r.substr(0,r.length-1)+"."}else{s+=r;n.push(s);s=""}}}return n}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,n,s){if(s!==null&&s!==undefined){if(r.match(/^Number$/i)!==null){if(typeof s!=="number"){throw new Error(`${n} with value ${s} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof s.valueOf()!=="string"){throw new Error(`${n} with value "${s}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof s.valueOf()==="string"&&isValidUuid(s))){throw new Error(`${n} with value "${s}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof s!=="boolean"){throw new Error(`${n} with value ${s} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof s;if(r!=="string"&&typeof s.pipe!=="function"&&typeof s.tee!=="function"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s)&&!((typeof Blob==="function"||typeof Blob==="object")&&s instanceof Blob)&&r!=="function"){throw new Error(`${n} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return s}function serializeEnumType(r,n,s){if(!n){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=n.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===s.toLowerCase()}return r===s}));if(!a){throw new Error(`${s} is not a valid value for ${r}. The valid values are: ${JSON.stringify(n)}.`)}return s}function serializeByteArrayType(r,n){if(n!==undefined&&n!==null){if(!(n instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}n=encodeByteArray(n)}return n}function serializeBase64UrlType(r,n){if(n!==undefined&&n!==null){if(!(n instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}n=bufferToBase64Url(n)}return n}function serializeDateTypes(r,n,s){if(n!==undefined&&n!==null){if(r.match(/^Date$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}n=n instanceof Date?n.toISOString().substring(0,10):new Date(n).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}n=n instanceof Date?n.toISOString():new Date(n).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123 format.`)}n=n instanceof Date?n.toUTCString():new Date(n).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}n=dateToUnixTime(n)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(n)){throw new Error(`${s} must be a string in ISO 8601 format. Instead was "${n}".`)}}}return n}function serializeSequenceType(r,n,s,a,l,u){if(!Array.isArray(s)){throw new Error(`${a} must be of type Array.`)}let d=n.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}if(d.type.name==="Composite"&&d.type.className){d=r.modelMappers[d.type.className]??d}const A=[];for(let n=0;nr!==l));if(A){d[l]=r.serialize(p,s[l],a+'["'+l+'"]',u)}}}return d}return s}function getXmlObjectValue(r,n,s,a){if(!s||!r.xmlNamespace){return n}const l=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const u={[l]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(n[ir]){return n}else{const r={...n};r[ir]=u;return r}}const d={};d[a.xml.xmlCharKey]=n;d[ir]=u;return d}function isSpecialXmlProperty(r,n){return[ir,n.xml.xmlCharKey].includes(r)}function deserializeCompositeType(r,n,s,a,l){const u=l.xml.xmlCharKey??or;if(getPolymorphicDiscriminatorRecursively(r,n)){n=getPolymorphicMapper(r,n,s,"serializedName")}const d=resolveModelProperties(r,n,a);let A={};const p=[];for(const f of Object.keys(d)){const g=d[f];const y=splitSerializeName(d[f].serializedName);p.push(y[0]);const{serializedName:b,xmlName:C,xmlElementName:w}=g;let B=a;if(b!==""&&b!==undefined){B=a+"."+b}const I=g.headerCollectionPrefix;if(I){const n={};for(const a of Object.keys(s)){if(a.startsWith(I)){n[a.substring(I.length)]=r.deserialize(g.type.value,s[a],B,l)}p.push(a)}A[f]=n}else if(r.isXML){if(g.xmlIsAttribute&&s[ir]){A[f]=r.deserialize(g,s[ir][C],B,l)}else if(g.xmlIsMsText){if(s[u]!==undefined){A[f]=s[u]}else if(typeof s==="string"){A[f]=s}}else{const n=w||C||b;if(g.xmlIsWrapped){const n=s[C];const a=n?.[w]??[];A[f]=r.deserialize(g,a,B,l);p.push(C)}else{const a=s[n];A[f]=r.deserialize(g,a,B,l);p.push(n)}}}else{let a;let u=s;let p=0;for(const r of y){if(!u)break;p++;u=u[r]}if(u===null&&p{for(const n in d){const s=splitSerializeName(d[n].serializedName);if(s[0]===r){return false}}return true};for(const n in s){if(isAdditionalProperty(n)){A[n]=r.deserialize(f,s[n],a+'["'+n+'"]',l)}}}else if(s&&!l.ignoreUnknownProperties){for(const r of Object.keys(s)){if(A[r]===undefined&&!p.includes(r)&&!isSpecialXmlProperty(r,l)){A[r]=s[r]}}}return A}function deserializeDictionaryType(r,n,s,a,l){const u=n.type.value;if(!u||typeof u!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){const n={};for(const d of Object.keys(s)){n[d]=r.deserialize(u,s[d],a,l)}return n}return s}function deserializeSequenceType(r,n,s,a,l){let u=n.type.element;if(!u||typeof u!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){if(!Array.isArray(s)){s=[s]}if(u.type.name==="Composite"&&u.type.className){u=r.modelMappers[u.type.className]??u}const n=[];for(let d=0;d0){if(l.isConstant){u=l.defaultValue}else{let n=getPropertyFromParameterPath(r,a);if(!n.propertyFound&&s){n=getPropertyFromParameterPath(s,a)}let d=false;if(!n.propertyFound){d=l.required||a[0]==="options"&&a.length===2}u=d?l.defaultValue:n.propertyValue}}}else{if(l.required){u={}}for(const n in a){const d=l.type.modelProperties[n];const A=a[n];const p=getOperationArgumentValueFromParameter(r,{parameterPath:A,mapper:d},s);if(p!==undefined){if(!u){u={}}u[n]=p}}}return u}function getPropertyFromParameterPath(r,n){const s={propertyFound:false};let a=0;for(;a=200&&s.status<300}if(p.headersMapper){u.parsedHeaders=A.serializer.deserialize(p.headersMapper,u.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return u}function isOperationSpecEmpty(r){const n=Object.keys(r.responses);return n.length===0||n.length===1&&n[0]==="default"}function handleErrorResponse(r,n,s,a){const l=200<=r.status&&r.status<300;const u=isOperationSpecEmpty(n)?l:!!s;if(u){if(s){if(!s.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=s??n.responses.default;const A=r.request.streamResponseStatusCodes?.has(r.status)?`Unexpected status code: ${r.status}`:r.bodyAsText;const p=new jt(A,{statusCode:r.status,request:r.request,response:r});if(!d&&!(r.parsedBody?.error?.code&&r.parsedBody?.error?.message)){throw p}const f=d?.bodyMapper;const g=d?.headersMapper;try{if(r.parsedBody){const s=r.parsedBody;let l;if(f){let r=s;if(n.isXML&&f.type.name===cr.Sequence){r=[];const n=f.xmlElementName;if(typeof s==="object"&&n){r=s[n]}}l=n.serializer.deserialize(f,r,"error.response.parsedBody",a)}const u=s.error||l||s;p.code=u.code;if(u.message){p.message=u.message}if(f){p.response.parsedBody=l}}if(r.headers&&g){p.response.parsedHeaders=n.serializer.deserialize(g,r.headers.toJSON(),"operationRes.parsedHeaders")}}catch(n){p.message=`Error "${n.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:p,shouldReturnResponse:false}}async function parse(r,n,s,a,l){if(!s.request.streamResponseStatusCodes?.has(s.status)&&s.bodyAsText){const u=s.bodyAsText;const d=s.headers.get("Content-Type")||"";const A=!d?[]:d.split(";").map((r=>r.toLowerCase()));try{if(A.length===0||A.some((n=>r.indexOf(n)!==-1))){s.parsedBody=JSON.parse(u);return s}else if(A.some((r=>n.indexOf(r)!==-1))){if(!l){throw new Error("Parsing XML not supported.")}const r=await l(u,a.xml);s.parsedBody=r;return s}}catch(r){const n=`Error "${r}" occurred while parsing the response body - ${s.bodyAsText}.`;const a=r.code||jt.PARSE_ERROR;const l=new jt(n,{code:a,statusCode:s.status,request:s.request,response:s});throw l}}return s}function getStreamingResponseStatusCodes(r){const n=new Set;for(const s in r.responses){const a=r.responses[s];if(a.bodyMapper&&a.bodyMapper.type.name===cr.Stream){n.add(Number(s))}}return n}function getPathStringFromParameter(r){const{parameterPath:n,mapper:s}=r;let a;if(typeof n==="string"){a=n}else if(Array.isArray(n)){a=n.join(".")}else{a=s.serializedName}return a}const mr="serializationPolicy";function serializationPolicy(r={}){const n=r.stringifyXML;return{name:mr,async sendRequest(r,s){const a=getOperationRequestInfo(r);const l=a?.operationSpec;const u=a?.operationArguments;if(l&&u){serializeHeaders(r,u,l);serializeRequestBody(r,u,l,n)}return s(r)}}}function serializeHeaders(r,n,s){if(s.headerParameters){for(const a of s.headerParameters){let l=getOperationArgumentValueFromParameter(n,a);if(l!==null&&l!==undefined||a.mapper.required){l=s.serializer.serialize(a.mapper,l,getPathStringFromParameter(a));const n=a.mapper.headerCollectionPrefix;if(n){for(const s of Object.keys(l)){r.headers.set(n+s,l[s])}}else{r.headers.set(a.mapper.serializedName||getPathStringFromParameter(a),l)}}}}const a=n.options?.requestOptions?.customHeaders;if(a){for(const n of Object.keys(a)){r.headers.set(n,a[n])}}}function serializeRequestBody(r,n,s,a=function(){throw new Error("XML serialization unsupported!")}){const l=n.options?.serializerOptions;const u={xml:{rootName:l?.xml.rootName??"",includeRoot:l?.xml.includeRoot??false,xmlCharKey:l?.xml.xmlCharKey??or}};const d=u.xml.xmlCharKey;if(s.requestBody&&s.requestBody.mapper){r.body=getOperationArgumentValueFromParameter(n,s.requestBody);const l=s.requestBody.mapper;const{required:A,serializedName:p,xmlName:f,xmlElementName:g,xmlNamespace:y,xmlNamespacePrefix:b,nullable:C}=l;const w=l.type.name;try{if(r.body!==undefined&&r.body!==null||C&&r.body===null||A){const n=getPathStringFromParameter(s.requestBody);r.body=s.serializer.serialize(l,r.body,n,u);const A=w===cr.Stream;if(s.isXML){const n=b?`xmlns:${b}`:"xmlns";const s=getXmlValueWithNamespace(y,n,w,r.body,u);if(w===cr.Sequence){r.body=a(prepareXMLRootList(s,g||f||p,n,y),{rootName:f||p,xmlCharKey:d})}else if(!A){r.body=a(s,{rootName:f||p,xmlCharKey:d})}}else if(w===cr.String&&(s.contentType?.match("text/plain")||s.mediaType==="text")){return}else if(!A){r.body=JSON.stringify(r.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(p,undefined," ")}.`)}}else if(s.formDataParameters&&s.formDataParameters.length>0){r.formData={};for(const a of s.formDataParameters){const l=getOperationArgumentValueFromParameter(n,a);if(l!==undefined&&l!==null){const n=a.mapper.serializedName||getPathStringFromParameter(a);r.formData[n]=s.serializer.serialize(a.mapper,l,getPathStringFromParameter(a),u)}}}}function getXmlValueWithNamespace(r,n,s,a,l){if(r&&!["Composite","Sequence","Dictionary"].includes(s)){const s={};s[l.xml.xmlCharKey]=a;s[ir]={[n]:r};return s}return a}function prepareXMLRootList(r,n,s,a){if(!Array.isArray(r)){r=[r]}if(!s||!a){return{[n]:r}}const l={[n]:r};l[ir]={[s]:a};return l}function createClientPipeline(r={}){const n=esm_createPipelineFromOptions_createPipelineFromOptions(r??{});if(r.credentialOptions){n.addPolicy(bearerTokenAuthenticationPolicy({credential:r.credentialOptions.credential,scopes:r.credentialOptions.credentialScopes}))}n.addPolicy(serializationPolicy(r.serializationOptions),{phase:"Serialize"});n.addPolicy(deserializationPolicy(r.deserializationOptions),{phase:"Deserialize"});return n}let gr;function getCachedDefaultHttpClient(){if(!gr){gr=esm_defaultHttpClient_createDefaultHttpClient()}return gr}const yr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(r,n,s,a){const l=calculateUrlReplacements(n,s,a);let u=false;let d=replaceAll(r,l);if(n.path){let r=replaceAll(n.path,l);if(n.path==="/{nextLink}"&&r.startsWith("/")){r=r.substring(1)}if(isAbsoluteUrl(r)){d=r;u=true}else{d=appendPath(d,r)}}const{queryParams:A,sequenceParams:p}=calculateQueryParameters(n,s,a);d=appendQueryParams(d,A,p,u);return d}function replaceAll(r,n){let s=r;for(const[r,a]of n){s=s.split(r).join(a)}return s}function calculateUrlReplacements(r,n,s){const a=new Map;if(r.urlParameters?.length){for(const l of r.urlParameters){let u=getOperationArgumentValueFromParameter(n,l,s);const d=getPathStringFromParameter(l);u=r.serializer.serialize(l.mapper,u,d);if(!l.skipEncoding){u=encodeURIComponent(u)}a.set(`{${l.mapper.serializedName||d}}`,u)}}return a}function isAbsoluteUrl(r){return r.includes("://")}function appendPath(r,n){if(!n){return r}const s=new URL(r);let a=s.pathname;if(!a.endsWith("/")){a=`${a}/`}if(n.startsWith("/")){n=n.substring(1)}const l=n.indexOf("?");if(l!==-1){const r=n.substring(0,l);const u=n.substring(l+1);a=a+r;if(u){s.search=s.search?`${s.search}&${u}`:u}}else{a=a+n}s.pathname=a;return s.toString()}function calculateQueryParameters(r,n,s){const a=new Map;const l=new Set;if(r.queryParameters?.length){for(const u of r.queryParameters){if(u.mapper.type.name==="Sequence"&&u.mapper.serializedName){l.add(u.mapper.serializedName)}let d=getOperationArgumentValueFromParameter(n,u,s);if(d!==undefined&&d!==null||u.mapper.required){d=r.serializer.serialize(u.mapper,d,getPathStringFromParameter(u));const n=u.collectionFormat?yr[u.collectionFormat]:"";if(Array.isArray(d)){d=d.map((r=>{if(r===null||r===undefined){return""}return r}))}if(u.collectionFormat==="Multi"&&d.length===0){continue}else if(Array.isArray(d)&&(u.collectionFormat==="SSV"||u.collectionFormat==="TSV")){d=d.join(n)}if(!u.skipEncoding){if(Array.isArray(d)){d=d.map((r=>encodeURIComponent(r)))}else{d=encodeURIComponent(d)}}if(Array.isArray(d)&&(u.collectionFormat==="CSV"||u.collectionFormat==="Pipes")){d=d.join(n)}a.set(u.mapper.serializedName||getPathStringFromParameter(u),d)}}}return{queryParams:a,sequenceParams:l}}function simpleParseQueryParams(r){const n=new Map;if(!r||r[0]!=="?"){return n}r=r.slice(1);const s=r.split("&");for(const r of s){const[s,a]=r.split("=",2);const l=n.get(s);if(l){if(Array.isArray(l)){l.push(a)}else{n.set(s,[l,a])}}else{n.set(s,a)}}return n}function appendQueryParams(r,n,s,a=false){if(n.size===0){return r}const l=new URL(r);const u=simpleParseQueryParams(l.search);for(const[r,l]of n){const n=u.get(r);if(Array.isArray(n)){if(Array.isArray(l)){n.push(...l);const s=new Set(n);u.set(r,Array.from(s))}else{n.push(l)}}else if(n){if(Array.isArray(l)){l.unshift(n)}else if(s.has(r)){u.set(r,[n,l])}if(!a){u.set(r,l)}}else{u.set(r,l)}}const d=[];for(const[r,n]of u){if(typeof n==="string"){d.push(`${r}=${n}`)}else if(Array.isArray(n)){for(const s of n){d.push(`${r}=${s}`)}}else{d.push(`${r}=${n}`)}}l.search=d.length?`?${d.join("&")}`:"";return l.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(r={}){this._requestContentType=r.requestContentType;this._endpoint=r.endpoint??r.baseUri;if(r.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=r.allowInsecureConnection;this._httpClient=r.httpClient||getCachedDefaultHttpClient();this.pipeline=r.pipeline||serviceClient_createDefaultPipeline(r);if(r.additionalPolicies?.length){for(const{policy:n,position:s}of r.additionalPolicies){const r=s==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(n,{afterPhase:r})}}}async sendRequest(r){return this.pipeline.sendRequest(this._httpClient,r)}async sendOperationRequest(r,n){const s=n.baseUrl||this._endpoint;if(!s){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const a=getRequestUrl(s,n,r,this);const l=esm_pipelineRequest_createPipelineRequest({url:a});l.method=n.httpMethod;const u=getOperationRequestInfo(l);u.operationSpec=n;u.operationArguments=r;const d=n.contentType||this._requestContentType;if(d&&n.requestBody){l.headers.set("Content-Type",d)}const A=r.options;if(A){const r=A.requestOptions;if(r){if(r.timeout){l.timeout=r.timeout}if(r.onUploadProgress){l.onUploadProgress=r.onUploadProgress}if(r.onDownloadProgress){l.onDownloadProgress=r.onDownloadProgress}if(r.shouldDeserialize!==undefined){u.shouldDeserialize=r.shouldDeserialize}if(r.allowInsecureConnection){l.allowInsecureConnection=true}}if(A.abortSignal){l.abortSignal=A.abortSignal}if(A.tracingOptions){l.tracingOptions=A.tracingOptions}}if(this._allowInsecureConnection){l.allowInsecureConnection=true}if(l.streamResponseStatusCodes===undefined){l.streamResponseStatusCodes=getStreamingResponseStatusCodes(n)}try{const r=await this.sendRequest(l);const s=flattenResponse(r,n.responses[r.status]);if(A?.onResponse){A.onResponse(r,s)}return s}catch(r){if(typeof r==="object"&&r?.response){const s=r.response;const a=flattenResponse(s,n.responses[r.statusCode]||n.responses["default"]);r.details=a;if(A?.onResponse){A.onResponse(s,a,r)}}throw r}}}function serviceClient_createDefaultPipeline(r){const n=getCredentialScopes(r);const s=r.credential&&n?{credentialScopes:n,credential:r.credential}:undefined;return createClientPipeline({...r,credentialOptions:s})}function getCredentialScopes(r){if(r.credentialScopes){return r.credentialScopes}if(r.endpoint){return`${r.endpoint}/.default`}if(r.baseUri){return`${r.baseUri}/.default`}if(r.credential&&!r.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(r){const n=`, ${r.trim()}`.split(", Bearer ").filter((r=>r));return n.map((r=>{const n=`${r.trim()}, `.split('", ').filter((r=>r));const s=n.map((r=>(([r,n])=>({[r]:n}))(r.trim().split('="'))));return s.reduce(((r,n)=>({...r,...n})),{})}))}async function authorizeRequestOnClaimChallenge(r){const{scopes:n,response:s}=r;const a=r.logger||coreClientLogger;const l=s.headers.get("WWW-Authenticate");if(!l){a.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const u=parseCAEChallenge(l)||[];const d=u.find((r=>r.claims));if(!d){a.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const A=await r.getAccessToken(d.scope?[d.scope]:n,{claims:decodeStringToString(d.claims)});if(!A){return false}r.request.headers.set("Authorization",`${A.tokenType??"Bearer"} ${A.token}`);return true}const br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(r){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(r)}const authorizeRequestOnTenantChallenge=async r=>{const n=requestToOptions(r.request);const s=getChallenge(r.response);if(s){const a=parseChallenge(s);const l=buildScopes(r,a);const u=extractTenantId(a);if(!u){return false}const d=await r.getAccessToken(l,{...n,tenantId:u});if(!d){return false}r.request.headers.set(br.HeaderConstants.AUTHORIZATION,`${d.tokenType??"Bearer"} ${d.token}`);return true}return false};function extractTenantId(r){const n=new URL(r.authorization_uri);const s=n.pathname.split("/");const a=s[1];if(a&&isUuid(a)){return a}return undefined}function buildScopes(r,n){if(!n.resource_id){return r.scopes}const s=new URL(n.resource_id);s.pathname=br.DefaultScope;let a=s.toString();if(a==="https://disk.azure.com/.default"){a="https://disk.azure.com//.default"}return[a]}function getChallenge(r){const n=r.headers.get("WWW-Authenticate");if(r.status===401&&n){return n}return}function parseChallenge(r){const n=r.slice("Bearer ".length);const s=`${n.trim()} `.split(" ").filter((r=>r));const a=s.map((r=>(([r,n])=>({[r]:n}))(r.trim().split("="))));return a.reduce(((r,n)=>({...r,...n})),{})}function requestToOptions(r){return{abortSignal:r.abortSignal,requestOptions:{timeout:r.timeout},tracingOptions:r.tracingOptions}}const Cr=Symbol("Original PipelineRequest");const wr=Symbol.for("@azure/core-client original request");function toPipelineRequest(r,n={}){const s=r;const a=s[Cr];const l=esm_httpHeaders_createHttpHeaders(r.headers.toJson({preserveCase:true}));if(a){a.headers=l;return a}else{const s=esm_pipelineRequest_createPipelineRequest({url:r.url,method:r.method,headers:l,withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,disableKeepAlive:!!r.keepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides});if(n.originalRequest){s[wr]=n.originalRequest}return s}}function toWebResourceLike(r,n){const s=n?.originalRequest??r;const a={url:r.url,method:r.method,headers:toHttpHeadersLike(r.headers),withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.headers.get("x-ms-client-request-id")||r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,keepAlive:!!r.disableKeepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(n?.createProxy){return new Proxy(a,{get(n,l,u){if(l===Cr){return r}else if(l==="clone"){return()=>toWebResourceLike(toPipelineRequest(a,{originalRequest:s}),{createProxy:true,originalRequest:s})}return Reflect.get(n,l,u)},set(n,s,a,l){if(s==="keepAlive"){r.disableKeepAlive=!a}const u=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof s==="string"&&u.includes(s)){r[s]=a}return Reflect.set(n,s,a,l)}})}else{return a}}function toHttpHeadersLike(r){return new HttpHeaders(r.toJSON({preserveCase:true}))}function getHeaderKey(r){return r.toLowerCase()}class HttpHeaders{_headersMap;constructor(r){this._headersMap={};if(r){for(const n in r){this.set(n,r[n])}}}set(r,n){this._headersMap[getHeaderKey(r)]={name:r,value:n.toString()}}get(r){const n=this._headersMap[getHeaderKey(r)];return!n?undefined:n.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const n=this.contains(r);delete this._headersMap[getHeaderKey(r)];return n}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const n in this._headersMap){r.push(this._headersMap[n])}return r}headerNames(){const r=[];const n=this.headersArray();for(let s=0;s{const s=await r.sendRequest(toWebResourceLike(n,{createProxy:true}));return response_toPipelineResponse(s)}}}const vr="\n";function toXml(r,n){let s="";if(n.format&&n.indentBy.length>0){s=vr}return arrToStr(r,n,"",s)}function arrToStr(r,n,s,a){let l="";let u=false;if(!Array.isArray(r)){if(r!==undefined&&r!==null){let s=r.toString();s=replaceEntitiesValue(s,n);return s}return""}for(let d=0;d`;u=false;continue}else if(p===n.commentPropName){l+=a+`\x3c!--${A[p][0][n.textNodeName]}--\x3e`;u=true;continue}else if(p[0]==="?"){const r=attr_to_str(A[":@"],n);const s=p==="?xml"?"":a;let d=A[p][0][n.textNodeName];d=d.length!==0?" "+d:"";l+=s+`<${p}${d}${r}?>`;u=true;continue}let g=a;if(g!==""){g+=n.indentBy}const y=attr_to_str(A[":@"],n);const b=a+`<${p}${y}`;const C=arrToStr(A[p],n,f,g);if(n.unpairedTags.indexOf(p)!==-1){if(n.suppressUnpairedNode)l+=b+">";else l+=b+"/>"}else if((!C||C.length===0)&&n.suppressEmptyNode){l+=b+"/>"}else if(C&&C.endsWith(">")){l+=b+`>${C}${a}`}else{l+=b+">";if(C&&a!==""&&(C.includes("/>")||C.includes("`}u=true}return l}function propName(r){const n=Object.keys(r);for(let s=0;s0&&n.processEntities){for(let s=0;s{for(const s of r){if(typeof s==="string"&&n===s){return true}if(s instanceof RegExp&&s.test(n)){return true}}}}return()=>false}const Rr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false};function Builder(r){this.options=Object.assign({},Rr,r);if(this.options.ignoreAttributes===true||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes);this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(r){if(this.options.preserveOrder){return toXml(r,this.options)}else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){r={[this.options.arrayNodeName]:r}}return this.j2x(r,0,[]).val}};Builder.prototype.j2x=function(r,n,s){let a="";let l="";const u=s.join(".");for(let d in r){if(!Object.prototype.hasOwnProperty.call(r,d))continue;if(typeof r[d]==="undefined"){if(this.isAttribute(d)){l+=""}}else if(r[d]===null){if(this.isAttribute(d)){l+=""}else if(d===this.options.cdataPropName){l+=""}else if(d[0]==="?"){l+=this.indentate(n)+"<"+d+"?"+this.tagEndChar}else{l+=this.indentate(n)+"<"+d+"/"+this.tagEndChar}}else if(r[d]instanceof Date){l+=this.buildTextValNode(r[d],d,"",n)}else if(typeof r[d]!=="object"){const s=this.isAttribute(d);if(s&&!this.ignoreAttributesFn(s,u)){a+=this.buildAttrPairStr(s,""+r[d])}else if(!s){if(d===this.options.textNodeName){let n=this.options.tagValueProcessor(d,""+r[d]);l+=this.replaceEntitiesValue(n)}else{l+=this.buildTextValNode(r[d],d,"",n)}}}else if(Array.isArray(r[d])){const a=r[d].length;let u="";let A="";for(let p=0;p"+r+l}else if(this.options.commentPropName!==false&&n===this.options.commentPropName&&u.length===0){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else{return this.indentate(a)+"<"+n+s+u+this.tagEndChar+r+this.indentate(a)+l}}};Builder.prototype.closeTag=function(r){let n="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)n="/"}else if(this.options.suppressEmptyNode){n="/"}else{n=`>`+this.newLine}else if(this.options.commentPropName!==false&&n===this.options.commentPropName){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else if(n[0]==="?"){return this.indentate(a)+"<"+n+s+"?"+this.tagEndChar}else{let l=this.options.tagValueProcessor(n,r);l=this.replaceEntitiesValue(l);if(l===""){return this.indentate(a)+"<"+n+s+this.closeTag(n)+this.tagEndChar}else{return this.indentate(a)+"<"+n+s+">"+l+"0&&this.options.processEntities){for(let n=0;n"&&r[u]!==" "&&r[u]!=="\t"&&r[u]!=="\n"&&r[u]!=="\r";u++){p+=r[u]}p=p.trim();if(p[p.length-1]==="/"){p=p.substring(0,p.length-1);u--}if(!validateTagName(p)){let n;if(p.trim().length===0){n="Invalid space after '<'."}else{n="Tag '"+p+"' is an invalid name."}return getErrorObject("InvalidTag",n,getLineNumberForPosition(r,u))}const f=readAttributeStr(r,u);if(f===false){return getErrorObject("InvalidAttr","Attributes for '"+p+"' have open quote.",getLineNumberForPosition(r,u))}let g=f.value;u=f.index;if(g[g.length-1]==="/"){const s=u-g.length;g=g.substring(0,g.length-1);const l=validateAttributeString(g,n);if(l===true){a=true}else{return getErrorObject(l.err.code,l.err.msg,getLineNumberForPosition(r,s+l.err.line))}}else if(A){if(!f.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+p+"' doesn't have proper closing.",getLineNumberForPosition(r,u))}else if(g.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+p+"' can't have attributes or invalid starting.",getLineNumberForPosition(r,d))}else if(s.length===0){return getErrorObject("InvalidTag","Closing tag '"+p+"' has not been opened.",getLineNumberForPosition(r,d))}else{const n=s.pop();if(p!==n.tagName){let s=getLineNumberForPosition(r,n.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+n.tagName+"' (opened in line "+s.line+", col "+s.col+") instead of closing tag '"+p+"'.",getLineNumberForPosition(r,d))}if(s.length==0){l=true}}}else{const A=validateAttributeString(g,n);if(A!==true){return getErrorObject(A.err.code,A.err.msg,getLineNumberForPosition(r,u-g.length+A.err.line))}if(l===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(r,u))}else if(n.unpairedTags.indexOf(p)!==-1){}else{s.push({tagName:p,tagStartPos:d})}a=true}for(u++;u0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(s.map((r=>r.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function readPI(r,n){const s=n;for(;n5&&a==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(r,n))}else if(r[n]=="?"&&r[n+1]==">"){n++;break}else{continue}}}return n}function readCommentAndCDATA(r,n){if(r.length>n+5&&r[n+1]==="-"&&r[n+2]==="-"){for(n+=3;n"){n+=2;break}}}else if(r.length>n+8&&r[n+1]==="D"&&r[n+2]==="O"&&r[n+3]==="C"&&r[n+4]==="T"&&r[n+5]==="Y"&&r[n+6]==="P"&&r[n+7]==="E"){let s=1;for(n+=8;n"){s--;if(s===0){break}}}}else if(r.length>n+9&&r[n+1]==="["&&r[n+2]==="C"&&r[n+3]==="D"&&r[n+4]==="A"&&r[n+5]==="T"&&r[n+6]==="A"&&r[n+7]==="["){for(n+=8;n"){n+=2;break}}}return n}const Pr='"';const Fr="'";function readAttributeStr(r,n){let s="";let a="";let l=false;for(;n"){if(a===""){l=true;break}}s+=r[n]}if(a!==""){return false}return{value:s,index:n,tagClosed:l}}const Lr=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(r,n){const s=getAllMatches(r,Lr);const a={};for(let r=0;rfalse,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(r,n,s){return r},captureMetaData:false,maxNestedTags:100,strictReservedNames:true};function normalizeProcessEntities(r){if(typeof r==="boolean"){return{enabled:r,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}}if(typeof r==="object"&&r!==null){return{enabled:r.enabled!==false,maxEntitySize:r.maxEntitySize??1e4,maxExpansionDepth:r.maxExpansionDepth??10,maxTotalExpansions:r.maxTotalExpansions??1e3,maxExpandedLength:r.maxExpandedLength??1e5,allowedTags:r.allowedTags??null,tagFilter:r.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(r){const n=Object.assign({},Mr,r);n.processEntities=normalizeProcessEntities(n.processEntities);return n};let Ur;if(typeof Symbol!=="function"){Ur="@@xmlMetadata"}else{Ur=Symbol("XML Node Metadata")}class XmlNode{constructor(r){this.tagname=r;this.child=[];this[":@"]=Object.create(null)}add(r,n){if(r==="__proto__")r="#__proto__";this.child.push({[r]:n})}addChild(r,n){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0){this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]})}else{this.child.push({[r.tagname]:r.child})}if(n!==undefined){this.child[this.child.length-1][Ur]={startIndex:n}}}static getMetaDataSymbol(){return Ur}}class DocTypeReader{constructor(r){this.suppressValidationErr=!r;this.options=r}readDocType(r,n){const s=Object.create(null);if(r[n+3]==="O"&&r[n+4]==="C"&&r[n+5]==="T"&&r[n+6]==="Y"&&r[n+7]==="P"&&r[n+8]==="E"){n=n+9;let a=1;let l=false,u=false;let d="";for(;n"){if(u){if(r[n-1]==="-"&&r[n-2]==="-"){u=false;a--}}else{a--}if(a===0){break}}else if(r[n]==="["){l=true}else{d+=r[n]}}if(a!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:s,i:n}}readEntityExp(r,n){n=skipWhitespace(r,n);let s="";while(nthis.options.maxEntitySize){throw new Error(`Entity "${s}" size (${a.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}n--;return[s,a,n]}readNotationExp(r,n){n=skipWhitespace(r,n);let s="";while(n{while(n1||u.length===1&&!A)){return r}else{const a=Number(s);const A=String(a);if(a===0)return a;if(A.search(/[eE]/)!==-1){if(n.eNotation)return a;else return r}else if(s.indexOf(".")!==-1){if(A==="0")return a;else if(A===d)return a;else if(A===`${l}${d}`)return a;else return r}let p=u?d:s;if(u){return p===A||l+p===A?a:r}else{return p===A||p===l+A?a:r}}}else{return r}}}const qr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(r,n,s){if(!s.eNotation)return r;const a=n.match(qr);if(a){let l=a[1]||"";const u=a[3].indexOf("e")===-1?"E":"e";const d=a[2];const A=l?r[d.length+1]===u:r[d.length]===u;if(d.length>1&&A)return r;else if(d.length===1&&(a[3].startsWith(`.${u}`)||a[3][0]===u)){return Number(n)}else if(s.leadingZeros&&!A){n=(a[1]||"")+a[3];return Number(n)}else return r}else{return r}}function trimZeros(r){if(r&&r.indexOf(".")!==-1){r=r.replace(/0+$/,"");if(r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substring(0,r.length-1);return r}return r}function parse_int(r,n){if(parseInt)return parseInt(r,n);else if(Number.parseInt)return Number.parseInt(r,n);else if(window&&window.parseInt)return window.parseInt(r,n);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(r,n,s){const a=n===Infinity;switch(s.infinity.toLowerCase()){case"null":return null;case"infinity":return n;case"string":return a?"Infinity":"-Infinity";case"original":default:return r}}function ignoreAttributes_getIgnoreAttributesFn(r){if(typeof r==="function"){return r}if(Array.isArray(r)){return n=>{for(const s of r){if(typeof s==="string"&&n===s){return true}if(s instanceof RegExp&&s.test(n)){return true}}}}return()=>false}class OrderedObjParser{constructor(r){this.options=r;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,n)=>fromCodePoint(n,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,n)=>fromCodePoint(n,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set;this.stopNodesWildcard=new Set;for(let r=0;r0){if(!d)r=this.replaceEntitiesValue(r,n,s);const a=this.options.tagValueProcessor(n,r,s,l,u);if(a===null||a===undefined){return r}else if(typeof a!==typeof r||a!==r){return a}else if(this.options.trimValues){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{const n=r.trim();if(n===r){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{return r}}}}}function resolveNameSpace(r){if(this.options.removeNSPrefix){const n=r.split(":");const s=r.charAt(0)==="/"?"/":"";if(n[0]==="xmlns"){return""}if(n.length===2){r=s+n[1]}}return r}const Vr=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(r,n,s){if(this.options.ignoreAttributes!==true&&typeof r==="string"){const a=getAllMatches(r,Vr);const l=a.length;const u={};for(let r=0;r",d,"Closing Tag is not closed.");let u=r.substring(d+2,n).trim();if(this.options.removeNSPrefix){const r=u.indexOf(":");if(r!==-1){u=u.substr(r+1)}}if(this.options.transformTagName){u=this.options.transformTagName(u)}if(s){a=this.saveTextToParentTag(a,s,l)}const A=l.substring(l.lastIndexOf(".")+1);if(u&&this.options.unpairedTags.indexOf(u)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}let p=0;if(A&&this.options.unpairedTags.indexOf(A)!==-1){p=l.lastIndexOf(".",l.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{p=l.lastIndexOf(".")}l=l.substring(0,p);s=this.tagsNodeStack.pop();a="";d=n}else if(r[d+1]==="?"){let n=readTagExp(r,d,false,"?>");if(!n)throw new Error("Pi Tag is not closed.");a=this.saveTextToParentTag(a,s,l);if(this.options.ignoreDeclaration&&n.tagName==="?xml"||this.options.ignorePiTags){}else{const r=new XmlNode(n.tagName);r.add(this.options.textNodeName,"");if(n.tagName!==n.tagExp&&n.attrExpPresent){r[":@"]=this.buildAttributesMap(n.tagExp,l,n.tagName)}this.addChild(s,r,l,d)}d=n.closeIndex+1}else if(r.substr(d+1,3)==="!--"){const n=findClosingIndex(r,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const u=r.substring(d+4,n-2);a=this.saveTextToParentTag(a,s,l);s.add(this.options.commentPropName,[{[this.options.textNodeName]:u}])}d=n}else if(r.substr(d+1,2)==="!D"){const n=u.readDocType(r,d);this.docTypeEntities=n.entities;d=n.i}else if(r.substr(d+1,2)==="!["){const n=findClosingIndex(r,"]]>",d,"CDATA is not closed.")-2;const u=r.substring(d+9,n);a=this.saveTextToParentTag(a,s,l);let A=this.parseTextData(u,s.tagname,l,true,false,true,true);if(A==undefined)A="";if(this.options.cdataPropName){s.add(this.options.cdataPropName,[{[this.options.textNodeName]:u}])}else{s.add(this.options.textNodeName,A)}d=n+2}else{let u=readTagExp(r,d,this.options.removeNSPrefix);let A=u.tagName;const p=u.rawTagName;let f=u.tagExp;let g=u.attrExpPresent;let y=u.closeIndex;if(this.options.transformTagName){const r=this.options.transformTagName(A);if(f===A){f=r}A=r}if(this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName)){throw new Error(`Invalid tag name: ${A}`)}if(s&&a){if(s.tagname!=="!xml"){a=this.saveTextToParentTag(a,s,l,false)}}const b=s;if(b&&this.options.unpairedTags.indexOf(b.tagname)!==-1){s=this.tagsNodeStack.pop();l=l.substring(0,l.lastIndexOf("."))}if(A!==n.tagname){l+=l?"."+A:A}const C=d;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,l,A)){let n="";if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(A[A.length-1]==="/"){A=A.substr(0,A.length-1);l=l.substr(0,l.length-1);f=A}else{f=f.substr(0,f.length-1)}d=u.closeIndex}else if(this.options.unpairedTags.indexOf(A)!==-1){d=u.closeIndex}else{const s=this.readStopNodeData(r,p,y+1);if(!s)throw new Error(`Unexpected end of ${p}`);d=s.i;n=s.tagContent}const a=new XmlNode(A);if(A!==f&&g){a[":@"]=this.buildAttributesMap(f,l,A)}if(n){n=this.parseTextData(n,A,l,true,g,true,true)}l=l.substr(0,l.lastIndexOf("."));a.add(this.options.textNodeName,n);this.addChild(s,a,l,C)}else{if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(A[A.length-1]==="/"){A=A.substr(0,A.length-1);l=l.substr(0,l.length-1);f=A}else{f=f.substr(0,f.length-1)}if(this.options.transformTagName){const r=this.options.transformTagName(A);if(f===A){f=r}A=r}const r=new XmlNode(A);if(A!==f&&g){r[":@"]=this.buildAttributesMap(f,l,A)}this.addChild(s,r,l,C);l=l.substr(0,l.lastIndexOf("."))}else if(this.options.unpairedTags.indexOf(A)!==-1){const r=new XmlNode(A);if(A!==f&&g){r[":@"]=this.buildAttributesMap(f,l)}this.addChild(s,r,l,C);l=l.substr(0,l.lastIndexOf("."));d=u.closeIndex;continue}else{const r=new XmlNode(A);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(s);if(A!==f&&g){r[":@"]=this.buildAttributesMap(f,l,A)}this.addChild(s,r,l,C);s=r}a="";d=y}}}else{a+=r[d]}}return n.child};function addChild(r,n,s,a){if(!this.options.captureMetaData)a=undefined;const l=this.options.updateTag(n.tagname,s,n[":@"]);if(l===false){}else if(typeof l==="string"){n.tagname=l;r.addChild(n,a)}else{r.addChild(n,a)}}const OrderedObjParser_replaceEntitiesValue=function(r,n,s){if(r.indexOf("&")===-1){return r}const a=this.options.processEntities;if(!a.enabled){return r}if(a.allowedTags){if(!a.allowedTags.includes(n)){return r}}if(a.tagFilter){if(!a.tagFilter(n,s)){return r}}for(let n in this.docTypeEntities){const s=this.docTypeEntities[n];const l=r.match(s.regx);if(l){this.entityExpansionCount+=l.length;if(a.maxTotalExpansions&&this.entityExpansionCount>a.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${a.maxTotalExpansions}`)}const n=r.length;r=r.replace(s.regx,s.val);if(a.maxExpandedLength){this.currentExpandedLength+=r.length-n;if(this.currentExpandedLength>a.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${a.maxExpandedLength}`)}}}}if(r.indexOf("&")===-1)return r;for(let n in this.lastEntities){const s=this.lastEntities[n];r=r.replace(s.regex,s.val)}if(r.indexOf("&")===-1)return r;if(this.options.htmlEntities){for(let n in this.htmlEntities){const s=this.htmlEntities[n];r=r.replace(s.regex,s.val)}}r=r.replace(this.ampEntity.regex,this.ampEntity.val);return r};function saveTextToParentTag(r,n,s,a){if(r){if(a===undefined)a=n.child.length===0;r=this.parseTextData(r,n.tagname,s,false,n[":@"]?Object.keys(n[":@"]).length!==0:false,a);if(r!==undefined&&r!=="")n.add(this.options.textNodeName,r);r=""}return r}function isItStopNode(r,n,s,a){if(n&&n.has(a))return true;if(r&&r.has(s))return true;return false}function tagExpWithClosingIndex(r,n,s=">"){let a;let l="";for(let u=n;u",s,`${n} is not closed`);let d=r.substring(s+2,u).trim();if(d===n){l--;if(l===0){return{tagContent:r.substring(a,s),i:u}}}s=u}else if(r[s+1]==="?"){const n=findClosingIndex(r,"?>",s+1,"StopNode is not closed.");s=n}else if(r.substr(s+1,3)==="!--"){const n=findClosingIndex(r,"--\x3e",s+3,"StopNode is not closed.");s=n}else if(r.substr(s+1,2)==="!["){const n=findClosingIndex(r,"]]>",s,"StopNode is not closed.")-2;s=n}else{const a=readTagExp(r,s,">");if(a){const r=a&&a.tagName;if(r===n&&a.tagExp[a.tagExp.length-1]!=="/"){l++}s=a.closeIndex}}}}}function parseValue(r,n,s){if(n&&typeof r==="string"){const n=r.trim();if(n==="true")return true;else if(n==="false")return false;else return toNumber(r,s)}else{if(isExist(r)){return r}else{return""}}}function fromCodePoint(r,n,s){const a=Number.parseInt(r,n);if(a>=0&&a<=1114111){return String.fromCodePoint(a)}else{return s+r+";"}}const Wr=XmlNode.getMetaDataSymbol();function prettify(r,n){return compress(r,n)}function compress(r,n,s){let a;const l={};for(let u=0;u0)l[n.textNodeName]=a}else if(a!==undefined)l[n.textNodeName]=a;return l}function node2json_propName(r){const n=Object.keys(r);for(let r=0;r${u}`.replace(/\n/g,"")}async function parseXML(r,n={}){if(!r){throw new Error("Document is empty")}const s=Or.validate(r);if(s!==true){throw s}const a=new XMLParser(getParserOptions(n));const l=a.parse(r);if(l["?xml"]){delete l["?xml"]}if(!n.includeRoot){for(const r of Object.keys(l)){const n=l[r];return typeof n==="object"?Object.assign({},n):n}}return l}const Jr=esm_createClientLogger("storage-blob");var $r=s(24434);class BuffersStream extends ge.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(r,n,s){super(s);this.buffers=r;this.byteLength=n;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let a=0;for(const r of this.buffers){a+=r.byteLength}if(a=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const n=[];let s=0;while(sr-s){const a=this.byteOffsetInCurrentBuffer+r-s;n.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-s;this.byteOffsetInCurrentBuffer=a;s=r;break}else{const r=this.byteOffsetInCurrentBuffer+u;n.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(u===l){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=u;s+=u}}if(n.length>1){this.push(Buffer.concat(n))}else if(n.length===1){this.push(n[0])}}}var Kr=s(4573);const Xr=Kr.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(r,n,s){this.capacity=r;this._size=0;const a=Math.ceil(r/Xr);for(let n=0;n0){r[0]=r[0].slice(u)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new $r.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(r,n,s,a,l,u){if(n<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${n}`)}if(s<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${s}`)}if(l<=0){throw new RangeError(`concurrency must be larger than 0, current is ${l}`)}this.bufferSize=n;this.maxBuffers=s;this.readable=r;this.outgoingHandler=a;this.concurrency=l;this.encoding=u}async do(){return new Promise(((r,n)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();n(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengths.getReadableStream()),s.size,this.offset).then(r).catch(n)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const n=r.size;this.executingOutgoingHandlers++;this.offset+=n;try{await this.outgoingHandler((()=>r.getReadableStream()),n,this.offset-n)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let Zr;function cache_getCachedDefaultHttpClient(){if(!Zr){Zr=esm_defaultHttpClient_createDefaultHttpClient()}return Zr}class BaseRequestPolicy{_nextPolicy;_options;constructor(r,n){this._nextPolicy=r;this._options=n}shouldLog(r){return this._options.shouldLog(r)}log(r,n){this._options.log(r,n)}}const en="1.0.0";const tn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const rn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const nn=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const sn=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const n=new URL(r);let s=n.pathname;s=s||"/";s=utils_common_escape(s);n.pathname=s;return n.toString()}function getProxyUriFromDevConnString(r){let n="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){n=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return n}function getValueInConnString(r,n){const s=r.split(";");for(const r of s){if(r.trim().startsWith(n)){return r.trim().match(n+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let n="";if(r.startsWith("UseDevelopmentStorage=true")){n=getProxyUriFromDevConnString(r);r=DevelopmentConnectionString}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let u=Buffer.from("accountKey","base64");let d="";l=getValueInConnString(r,"AccountName");u=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const n=a.toLowerCase();if(n!=="https"&&n!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${d}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(u.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:u,proxyUri:n}}else{let n=getValueInConnString(r,"SharedAccessSignature");let a=getValueInConnString(r,"AccountName");if(!a){a=getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!n){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(n.startsWith("?")){n=n.substring(1)}return{kind:"SASConnString",url:s,accountName:a,accountSas:n}}}function utils_common_escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,n){const s=new URL(r);let a=s.pathname;a=a?a.endsWith("/")?`${a}${n}`:`${a}/${n}`:n;s.pathname=a;return s.toString()}function setURLParameter(r,n,s){const a=new URL(r);const l=encodeURIComponent(n);const u=s?encodeURIComponent(s):undefined;const d=a.search===""?"?":a.search;const A=[];for(const r of d.slice(1).split("&")){if(r){const[n]=r.split("=",2);if(n!==l){A.push(r)}}}if(u){A.push(`${l}=${u}`)}a.search=A.length?`?${A.join("&")}`:"";return a.toString()}function getURLParameter(r,n){const s=new URL(r);return s.searchParams.get(n)??undefined}function setURLHost(r,n){const s=new URL(r);s.hostname=n;return s.toString()}function getURLPath(r){try{const n=new URL(r);return n.pathname}catch(r){return undefined}}function getURLScheme(r){try{const n=new URL(r);return n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol}catch(r){return undefined}}function getURLPathAndQuery(r){const n=new URL(r);const s=n.pathname;if(!s){throw new RangeError("Invalid url without valid path.")}let a=n.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${s}${a}`}function getURLQueries(r){let n=new URL(r).search;if(!n){return{}}n=n.trim();n=n.startsWith("?")?n.substring(1):n;let s=n.split("&");s=s.filter((r=>{const n=r.indexOf("=");const s=r.lastIndexOf("=");return n>0&&n===s&&sl){r=r.slice(0,l)}const u=r+padStart(n.toString(),s-r.length,"0");return base64encode(u)}async function utils_common_delay(r,n,s){return new Promise(((a,l)=>{let u;const abortHandler=()=>{if(u!==undefined){clearTimeout(u)}l(s)};const resolveHandler=()=>{if(n!==undefined){n.removeEventListener("abort",abortHandler)}a()};u=setTimeout(resolveHandler,r);if(n!==undefined){n.addEventListener("abort",abortHandler)}}))}function padStart(r,n,s=" "){if(String.prototype.padStart){return r.padStart(n,s)}s=s||" ";if(r.length>n){return r}else{n=n-r.length;if(n>s.length){s+=s.repeat(n/s.length)}return s.slice(0,n)+r}}function sanitizeURL(r){let n=r;if(getURLParameter(n,URLConstants.Parameters.SIGNATURE)){n=setURLParameter(n,URLConstants.Parameters.SIGNATURE,"*****")}return n}function sanitizeHeaders(r){const n=createHttpHeaders();for(const[s,a]of r){if(s.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){n.set(s,"*****")}else if(s.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){n.set(s,sanitizeURL(a))}else{n.set(s,a)}}return n}function iEqual(r,n){return r.toLocaleLowerCase()===n.toLocaleLowerCase()}function getAccountNameFromUrl(r){const n=new URL(r);let s;try{if(n.hostname.split(".")[1]==="blob"){s=n.hostname.split(".")[0]}else if(isIpEndpointStyle(n)){s=n.pathname.split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){const n=r.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(n)||Boolean(r.port)&&PathStylePorts.includes(r.port)}function attachCredential(r,n){r.credential=n;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function EscapePath(r){const n=r.split("/");for(let r=0;ru}const d=l0){r.headers.set(rn.CONTENT_LENGTH,Buffer.byteLength(r.body))}const n=[r.method.toUpperCase(),this.getHeaderValueToSign(r,rn.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,rn.CONTENT_ENCODING),this.getHeaderValueToSign(r,rn.CONTENT_LENGTH),this.getHeaderValueToSign(r,rn.CONTENT_MD5),this.getHeaderValueToSign(r,rn.CONTENT_TYPE),this.getHeaderValueToSign(r,rn.DATE),this.getHeaderValueToSign(r,rn.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,rn.IF_MATCH),this.getHeaderValueToSign(r,rn.IF_NONE_MATCH),this.getHeaderValueToSign(r,rn.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,rn.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(n);r.headers.set(rn.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,n){const s=r.headers.get(n);if(!s){return""}if(n===rn.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let n=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(rn.PREFIX_FOR_STORAGE)));n.sort(((r,n)=>compareHeader(r.name.toLowerCase(),n.name.toLowerCase())));n=n.filter(((r,n,s)=>{if(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()){return false}return true}));let s="";n.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}getCanonicalizedResourceString(r){const n=getURLPath(r.url)||"/";let s="";s+=`/${this.factory.accountName}${n}`;const a=getURLQueries(r.url);const l={};if(a){const r=[];for(const n in a){if(Object.prototype.hasOwnProperty.call(a,n)){const s=n.toLowerCase();l[s]=a[n];r.push(s)}}r.sort();for(const n of r){s+=`\n${n}:${decodeURIComponent(l[n])}`}}return s}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(r,n){super();this.accountName=r;this.accountKey=Buffer.from(n,"base64")}create(r,n){return new StorageSharedKeyCredentialPolicy(r,n,this)}computeHMACSHA256(r){return(0,It.createHmac)("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const un=esm_createClientLogger("storage-common");var dn;(function(r){r[r["EXPONENTIAL"]=0]="EXPONENTIAL";r[r["FIXED"]=1]="FIXED"})(dn||(dn={}));function NewRetryPolicyFactory(r){return{create:(n,s)=>new StorageRetryPolicy(n,s,r)}}const An={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:dn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const pn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(r,n,s=An){super(r,n);this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:An.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):An.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:An.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:An.maxRetryDelayInMs):An.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:An.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:An.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,n,s){const a=r.clone();const l=n||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||s%2===1;if(!l){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,tn.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let u;try{un.info(`RetryPolicy: =====> Try=${s} ${l?"Primary":"Secondary"}`);u=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(l,s,u)){return u}n=n||!l&&u.status===404}catch(r){un.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(l,s,u,r)){throw r}}await this.delay(l,s,r.abortSignal);return this.attemptSendRequest(r,n,++s)}shouldRetry(r,n,s,a){if(n>=this.retryOptions.maxTries){un.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const l=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of l){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){un.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(s||a){const n=s?s.status:a?a.statusCode:0;if(!r&&n===404){un.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(n===503||n===500){un.info(`RetryPolicy: Will retry for status code ${n}.`);return true}}if(s){if(s?.status>=400){const r=s.headers.get(rn.X_MS_CopySourceErrorCode);if(r!==undefined){switch(r){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(a?.code==="PARSE_ERROR"&&a?.message.startsWith(`Error "Error: Unclosed root tag`)){un.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,n,s){let a=0;if(r){switch(this.retryOptions.retryPolicyType){case dn.EXPONENTIAL:a=Math.min((Math.pow(2,n-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case dn.FIXED:a=this.retryOptions.retryDelayInMs;break}}else{a=Math.random()*1e3}un.info(`RetryPolicy: Delay for ${a}ms`);return utils_common_delay(a,s,pn)}}class StorageRetryPolicyFactory{retryOptions;constructor(r){this.retryOptions=r}create(r,n){return new StorageRetryPolicy(r,n,this.retryOptions)}}const hn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:hn,async sendRequest(r,n){if(Nt){return n(r)}if(r.method==="GET"||r.method==="HEAD"){r.url=setURLParameter(r.url,tn.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}r.headers.delete(rn.COOKIE);r.headers.delete(rn.CONTENT_LENGTH);return n(r)}}}const mn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(r){if(r.body&&(typeof r.body==="string"||Buffer.isBuffer(r.body))&&r.body.length>0){r.headers.set(rn.CONTENT_LENGTH,Buffer.byteLength(r.body))}}return{name:mn,async sendRequest(r,n){correctContentLength(r);return n(r)}}}const gn="storageRetryPolicy";const yn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:dn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const En=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const bn=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(r={}){const n=r.retryPolicyType??yn.retryPolicyType;const s=r.maxTries??yn.maxTries;const a=r.retryDelayInMs??yn.retryDelayInMs;const l=r.maxRetryDelayInMs??yn.maxRetryDelayInMs;const u=r.secondaryHost??yn.secondaryHost;const d=r.tryTimeoutInMs??yn.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:r,attempt:n,response:a,error:l}){if(n>=s){un.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${s}, no further try.`);return false}if(l){for(const r of En){if(l.name.toUpperCase().includes(r)||l.message.toUpperCase().includes(r)||l.code&&l.code.toString().toUpperCase()===r){un.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}if(l?.code==="PARSE_ERROR"&&l?.message.startsWith(`Error "Error: Unclosed root tag`)){un.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(a||l){const n=a?.status??l?.statusCode??0;if(!r&&n===404){un.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(n===503||n===500){un.info(`RetryPolicy: Will retry for status code ${n}.`);return true}}if(a){if(a?.status>=400){const r=a.headers.get(rn.X_MS_CopySourceErrorCode);if(r!==undefined){switch(r){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(r,s){let u=0;if(r){switch(n){case dn.EXPONENTIAL:u=Math.min((Math.pow(2,s-1)-1)*a,l);break;case dn.FIXED:u=a;break}}else{u=Math.random()*1e3}un.info(`RetryPolicy: Delay for ${u}ms`);return u}return{name:gn,async sendRequest(r,n){if(d){r.url=setURLParameter(r.url,tn.Parameters.TIMEOUT,String(Math.floor(d/1e3)))}const s=r.url;const a=u?setURLHost(r.url,u):undefined;let l=false;let A=1;let p=true;let f;let g;while(p){const u=l||!a||!["GET","HEAD","OPTIONS"].includes(r.method)||A%2===1;r.url=u?s:a;f=undefined;g=undefined;try{un.info(`RetryPolicy: =====> Try=${A} ${u?"Primary":"Secondary"}`);f=await n(r);l=l||!u&&f.status===404}catch(r){if(esm_restError_isRestError(r)){un.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);g=r}else{un.error(`RetryPolicy: Caught error, message: ${getErrorMessage(r)}`);throw r}}p=shouldRetry({isPrimaryRetry:u,attempt:A,response:f,error:g});if(p){await utils_common_delay(calculateDelay(u,A),r.abortSignal,bn)}A++}if(f){return f}throw g??new jt("RetryPolicy failed without known error.")}}}const Cn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(r){function signRequest(n){n.headers.set(rn.X_MS_DATE,(new Date).toUTCString());if(n.body&&(typeof n.body==="string"||Buffer.isBuffer(n.body))&&n.body.length>0){n.headers.set(rn.CONTENT_LENGTH,Buffer.byteLength(n.body))}const s=[n.method.toUpperCase(),getHeaderValueToSign(n,rn.CONTENT_LANGUAGE),getHeaderValueToSign(n,rn.CONTENT_ENCODING),getHeaderValueToSign(n,rn.CONTENT_LENGTH),getHeaderValueToSign(n,rn.CONTENT_MD5),getHeaderValueToSign(n,rn.CONTENT_TYPE),getHeaderValueToSign(n,rn.DATE),getHeaderValueToSign(n,rn.IF_MODIFIED_SINCE),getHeaderValueToSign(n,rn.IF_MATCH),getHeaderValueToSign(n,rn.IF_NONE_MATCH),getHeaderValueToSign(n,rn.IF_UNMODIFIED_SINCE),getHeaderValueToSign(n,rn.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(n)+getCanonicalizedResourceString(n);const a=(0,It.createHmac)("sha256",r.accountKey).update(s,"utf8").digest("base64");n.headers.set(rn.AUTHORIZATION,`SharedKey ${r.accountName}:${a}`)}function getHeaderValueToSign(r,n){const s=r.headers.get(n);if(!s){return""}if(n===rn.CONTENT_LENGTH&&s==="0"){return""}return s}function getCanonicalizedHeadersString(r){let n=[];for(const[s,a]of r.headers){if(s.toLowerCase().startsWith(rn.PREFIX_FOR_STORAGE)){n.push({name:s,value:a})}}n.sort(((r,n)=>compareHeader(r.name.toLowerCase(),n.name.toLowerCase())));n=n.filter(((r,n,s)=>{if(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()){return false}return true}));let s="";n.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}function getCanonicalizedResourceString(n){const s=getURLPath(n.url)||"/";let a="";a+=`/${r.accountName}${s}`;const l=getURLQueries(n.url);const u={};if(l){const r=[];for(const n in l){if(Object.prototype.hasOwnProperty.call(l,n)){const s=n.toLowerCase();u[s]=l[n];r.push(s)}}r.sort();for(const n of r){a+=`\n${n}:${decodeURIComponent(u[n])}`}}return a}return{name:Cn,async sendRequest(r,n){signRequest(r);return n(r)}}}const wn="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:wn,async sendRequest(r,n){try{const s=await n(r);return s}catch(r){if(typeof r==="object"&&r!==null&&r.response&&r.response.parsedBody){if(r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"){r.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"}}throw r}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(r,n){this.accountName=r;this.userDelegationKey=n;this.key=Buffer.from(n.value,"base64")}computeHMACSHA256(r){return(0,It.createHmac)("sha256",this.key).update(r,"utf8").digest("base64")}}const Bn="12.31.0";const In="2026-02-06";const Sn=256*1024*1024;const Qn=4e3*1024*1024;const vn=5e4;const Rn=8*1024*1024;const Dn=4*1024*1024;const Nn=5;const Tn=100*1e3;const xn="https://storage.azure.com/.default";const kn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const _n={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Pn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const Fn="";const Ln="*";const On=1*1024*1024;const Mn=256;const Un=4*On;const Hn="\r\n";const Gn="HTTP/1.1";const zn="AES256";const qn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Vn=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];const Wn=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const jn="BlobUsesCustomerSpecifiedEncryption";const Yn="BlobDoesNotUseCustomerSpecifiedEncryption";const Jn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const n=r;return Array.isArray(n.factories)&&typeof n.options==="object"&&typeof n.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(r,n={}){this.factories=r;this.options=n}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,n={}){if(!r){r=new AnonymousCredential}const s=new Pipeline([],n);s._credential=r;return s}function processDownlevelPipeline(r){const n=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(r.factories.length){const s=r.factories.filter((r=>!n.some((n=>n(r)))));if(s.length){const r=s.some((r=>isInjectorPolicyFactory(r)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(s),afterRetry:r}}}return undefined}function getCoreClientOptions(r){const{httpClient:n,...s}=r.options;let a=r._coreHttpClient;if(!a){a=n?convertHttpClient(n):cache_getCachedDefaultHttpClient();r._coreHttpClient=a}let l=r._corePipeline;if(!l){const n=`azsdk-js-azure-storage-blob/${Bn}`;const a=s.userAgentOptions&&s.userAgentOptions.userAgentPrefix?`${s.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;l=createClientPipeline({...s,loggingOptions:{additionalAllowedHeaderNames:Vn,additionalAllowedQueryParameters:Wn,logger:Jr.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});l.removePolicy({phase:"Retry"});l.removePolicy({name:Lt});l.addPolicy(storageCorrectContentLengthPolicy());l.addPolicy(storageRetryPolicy(s.retryOptions),{phase:"Retry"});l.addPolicy(storageRequestFailureDetailsParserPolicy());l.addPolicy(storageBrowserPolicy());const u=processDownlevelPipeline(r);if(u){l.addPolicy(u.wrappedPolicies,u.afterRetry?{afterPhase:"Retry"}:undefined)}const d=getCredentialFromPipeline(r);if(isTokenCredential(d)){l.addPolicy(bearerTokenAuthenticationPolicy({credential:d,scopes:s.audience??xn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(d instanceof StorageSharedKeyCredential){l.addPolicy(storageSharedKeyCredentialPolicy({accountName:d.accountName,accountKey:d.accountKey}),{phase:"Sign"})}r._corePipeline=l}return{...s,allowInsecureConnection:true,httpClient:a,pipeline:l}}function getCredentialFromPipeline(r){if(r._credential){return r._credential}let n=new AnonymousCredential;for(const s of r.factories){if(isTokenCredential(s.credential)){n=s.credential}else if(isStorageSharedKeyCredential(s)){return s}}return n}function isStorageSharedKeyCredential(r){if(r instanceof StorageSharedKeyCredential){return true}return r.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(r){if(r instanceof AnonymousCredential){return true}return r.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(r){return isTokenCredential(r.credential)}function isStorageBrowserPolicyFactory(r){if(r instanceof StorageBrowserPolicyFactory){return true}return r.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(r){if(r instanceof StorageRetryPolicyFactory){return true}return r.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(r){return r.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(r){return r.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(r){const n=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const s={sendRequest:async r=>({request:r,headers:r.headers.clone(),status:500})};const a={log(r,n){},shouldLog(r){return false}};const l=r.create(s,a);const u=l.constructor.name;return n.some((r=>u.startsWith(r)))}var $n;(function(r){r["AES256"]="AES256"})($n||($n={}));var Kn;(function(r){r["Backup"]="backup"})(Kn||(Kn={}));var Xn;(function(r){r["NeverExpire"]="NeverExpire";r["RelativeToCreation"]="RelativeToCreation";r["RelativeToNow"]="RelativeToNow";r["Absolute"]="Absolute"})(Xn||(Xn={}));var Zn;(function(r){r["AccountAlreadyExists"]="AccountAlreadyExists";r["AccountBeingCreated"]="AccountBeingCreated";r["AccountIsDisabled"]="AccountIsDisabled";r["AuthenticationFailed"]="AuthenticationFailed";r["AuthorizationFailure"]="AuthorizationFailure";r["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";r["ConditionNotMet"]="ConditionNotMet";r["EmptyMetadataKey"]="EmptyMetadataKey";r["InsufficientAccountPermissions"]="InsufficientAccountPermissions";r["InternalError"]="InternalError";r["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";r["InvalidHeaderValue"]="InvalidHeaderValue";r["InvalidHttpVerb"]="InvalidHttpVerb";r["InvalidInput"]="InvalidInput";r["InvalidMd5"]="InvalidMd5";r["InvalidMetadata"]="InvalidMetadata";r["InvalidQueryParameterValue"]="InvalidQueryParameterValue";r["InvalidRange"]="InvalidRange";r["InvalidResourceName"]="InvalidResourceName";r["InvalidUri"]="InvalidUri";r["InvalidXmlDocument"]="InvalidXmlDocument";r["InvalidXmlNodeValue"]="InvalidXmlNodeValue";r["Md5Mismatch"]="Md5Mismatch";r["MetadataTooLarge"]="MetadataTooLarge";r["MissingContentLengthHeader"]="MissingContentLengthHeader";r["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";r["MissingRequiredHeader"]="MissingRequiredHeader";r["MissingRequiredXmlNode"]="MissingRequiredXmlNode";r["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";r["OperationTimedOut"]="OperationTimedOut";r["OutOfRangeInput"]="OutOfRangeInput";r["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";r["RequestBodyTooLarge"]="RequestBodyTooLarge";r["ResourceTypeMismatch"]="ResourceTypeMismatch";r["RequestUrlFailedToParse"]="RequestUrlFailedToParse";r["ResourceAlreadyExists"]="ResourceAlreadyExists";r["ResourceNotFound"]="ResourceNotFound";r["ServerBusy"]="ServerBusy";r["UnsupportedHeader"]="UnsupportedHeader";r["UnsupportedXmlNode"]="UnsupportedXmlNode";r["UnsupportedQueryParameter"]="UnsupportedQueryParameter";r["UnsupportedHttpVerb"]="UnsupportedHttpVerb";r["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";r["BlobAlreadyExists"]="BlobAlreadyExists";r["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";r["BlobNotFound"]="BlobNotFound";r["BlobOverwritten"]="BlobOverwritten";r["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";r["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";r["BlockCountExceedsLimit"]="BlockCountExceedsLimit";r["BlockListTooLong"]="BlockListTooLong";r["CannotChangeToLowerTier"]="CannotChangeToLowerTier";r["CannotVerifyCopySource"]="CannotVerifyCopySource";r["ContainerAlreadyExists"]="ContainerAlreadyExists";r["ContainerBeingDeleted"]="ContainerBeingDeleted";r["ContainerDisabled"]="ContainerDisabled";r["ContainerNotFound"]="ContainerNotFound";r["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";r["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";r["CopyIdMismatch"]="CopyIdMismatch";r["FeatureVersionMismatch"]="FeatureVersionMismatch";r["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";r["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";r["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";r["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";r["InvalidBlobOrBlock"]="InvalidBlobOrBlock";r["InvalidBlobTier"]="InvalidBlobTier";r["InvalidBlobType"]="InvalidBlobType";r["InvalidBlockId"]="InvalidBlockId";r["InvalidBlockList"]="InvalidBlockList";r["InvalidOperation"]="InvalidOperation";r["InvalidPageRange"]="InvalidPageRange";r["InvalidSourceBlobType"]="InvalidSourceBlobType";r["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";r["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";r["LeaseAlreadyPresent"]="LeaseAlreadyPresent";r["LeaseAlreadyBroken"]="LeaseAlreadyBroken";r["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";r["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";r["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";r["LeaseIdMissing"]="LeaseIdMissing";r["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";r["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";r["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";r["LeaseLost"]="LeaseLost";r["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";r["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";r["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";r["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";r["NoAuthenticationInformation"]="NoAuthenticationInformation";r["NoPendingCopyOperation"]="NoPendingCopyOperation";r["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";r["PendingCopyOperation"]="PendingCopyOperation";r["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";r["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";r["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";r["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";r["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";r["SnapshotCountExceeded"]="SnapshotCountExceeded";r["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";r["SnapshotsPresent"]="SnapshotsPresent";r["SourceConditionNotMet"]="SourceConditionNotMet";r["SystemInUse"]="SystemInUse";r["TargetConditionNotMet"]="TargetConditionNotMet";r["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";r["BlobBeingRehydrated"]="BlobBeingRehydrated";r["BlobArchived"]="BlobArchived";r["BlobNotArchived"]="BlobNotArchived";r["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";r["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";r["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";r["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";r["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";r["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(Zn||(Zn={}));const es={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ts={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const rs={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const ns={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const as={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const ls={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const cs={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const us={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ds={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const As={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const ps={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const fs={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const hs={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const ms={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const gs={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const ys={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Es={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const bs={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const Cs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const ws={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Bs={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Is={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const Ss={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const Qs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const vs={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Rs={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Ds={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ns={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Ts={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const xs={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const ks={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const _s={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Ps={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Fs={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Ls={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const Os={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const Ms={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const Us={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const Hs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const Gs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const zs={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qs={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vs={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ys={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const wi={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ii={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Si={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Qi={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ri={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Di={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ni={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ti={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ki={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const _i={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const Ui={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const Gi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qi={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const $i={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xi={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zi={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const eo={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ro={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const no={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const so={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const io={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ao={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const lo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const uo={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ao={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const po={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ho={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mo={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yo={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Eo={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Co={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const wo={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bo={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Io={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const So={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qo={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ro={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const Do={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const No={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const To={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ko={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Po={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mo={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const qo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wo={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jo={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jo={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const oa={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const aa={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const la={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ua={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Aa={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ha={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ma={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ba={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ca={parameterPath:"blobServiceProperties",mapper:es};const wa={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ba={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Ia={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Sa={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qa={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const va={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const Ra={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Da={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Na={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ta={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xa={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const ka={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const _a={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Pa={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Fa={parameterPath:"keyInfo",mapper:fs};const La={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Oa={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ma={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ua={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ha={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const Ga={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const za={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const qa={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Va={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Wa={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const ja={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const Ya={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Ja={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const $a={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Ka={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const Xa={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Za={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const el={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const rl={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nl={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const sl={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const il={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ol={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const al={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const ll={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const cl={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ul={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const dl={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Al={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const pl={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const fl={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const hl={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ml={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const gl={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const yl={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const El={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const bl={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const Cl={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const wl={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Bl={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Il={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Sl={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Ql={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const vl={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const Rl={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const Dl={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Nl={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Tl={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const xl={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const kl={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const _l={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Pl={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Fl={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Ll={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const Ol={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const Ml={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const Ul={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Hl={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const Gl={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const zl={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const ql={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vl={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Wl={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const jl={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Yl={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Jl={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const $l={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kl={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const Xl={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const Zl={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const ec={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const tc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const rc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const nc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const sc={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ic={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const oc={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const ac={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const lc={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const cc={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const uc={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const dc={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const Ac={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const pc={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fc={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const hc={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const mc={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gc={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const yc={parameterPath:["options","queryRequest"],mapper:Fs};const Ec={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bc={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Cc={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const wc={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Bc={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Ic={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const Sc={parameterPath:["options","tags"],mapper:ys};const Qc={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const vc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const Rc={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Dc={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Nc={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const Tc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const xc={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const kc={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const _c={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Pc={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Fc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const Lc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const Oc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const Mc={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Uc={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Hc={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Gc={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const zc={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const qc={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Vc={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Wc={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const jc={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const Yc={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Jc={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const $c={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kc={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const Xc={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Zc={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const eu={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const tu={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const ru={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const nu={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const su={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const iu={parameterPath:"blocks",mapper:Ns};const ou={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const au={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(r){this.client=r}setProperties(r,n){return this.client.sendOperationRequest({blobServiceProperties:r,options:n},cu)}getProperties(r){return this.client.sendOperationRequest({options:r},uu)}getStatistics(r){return this.client.sendOperationRequest({options:r},du)}listContainersSegment(r){return this.client.sendOperationRequest({options:r},Au)}getUserDelegationKey(r,n){return this.client.sendOperationRequest({keyInfo:r,options:n},pu)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},fu)}submitBatch(r,n,s,a){return this.client.sendOperationRequest({contentLength:r,multipartContentType:n,body:s,options:a},hu)}filterBlobs(r){return this.client.sendOperationRequest({options:r},mu)}}const lu=createSerializer(a,true);const cu={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:zs},default:{bodyMapper:ls,headersMapper:qs}},requestBody:Ca,queryParameters:[Ia,Sa,Qa],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:lu};const uu={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:es,headersMapper:Vs},default:{bodyMapper:ls,headersMapper:Ws}},queryParameters:[Ia,Sa,Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:lu};const du={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:cs,headersMapper:js},default:{bodyMapper:ls,headersMapper:Ys}},queryParameters:[Ia,Qa,Na],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:lu};const Au={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ds,headersMapper:Js},default:{bodyMapper:ls,headersMapper:$s}},queryParameters:[Qa,Ta,xa,ka,_a,Pa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:lu};const pu={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:hs,headersMapper:Ks},default:{bodyMapper:ls,headersMapper:Xs}},requestBody:Fa,queryParameters:[Ia,Qa,La],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:lu};const fu={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Zs},default:{bodyMapper:ls,headersMapper:ei}},queryParameters:[Sa,Qa,Oa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:lu};const hu={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ti},default:{bodyMapper:ls,headersMapper:ri}},requestBody:Ma,queryParameters:[Qa,Ua],urlParameters:[Ba],headerParameters:[wa,va,Ra,Ha,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:lu};const mu={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ms,headersMapper:ni},default:{bodyMapper:ls,headersMapper:si}},queryParameters:[Qa,ka,_a,za,qa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:lu};class ContainerImpl{client;constructor(r){this.client=r}create(r){return this.client.sendOperationRequest({options:r},yu)}getProperties(r){return this.client.sendOperationRequest({options:r},Eu)}delete(r){return this.client.sendOperationRequest({options:r},bu)}setMetadata(r){return this.client.sendOperationRequest({options:r},Cu)}getAccessPolicy(r){return this.client.sendOperationRequest({options:r},wu)}setAccessPolicy(r){return this.client.sendOperationRequest({options:r},Bu)}restore(r){return this.client.sendOperationRequest({options:r},Iu)}rename(r,n){return this.client.sendOperationRequest({sourceContainerName:r,options:n},Su)}submitBatch(r,n,s,a){return this.client.sendOperationRequest({contentLength:r,multipartContentType:n,body:s,options:a},Qu)}filterBlobs(r){return this.client.sendOperationRequest({options:r},vu)}acquireLease(r){return this.client.sendOperationRequest({options:r},Ru)}releaseLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Du)}renewLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Nu)}breakLease(r){return this.client.sendOperationRequest({options:r},Tu)}changeLease(r,n,s){return this.client.sendOperationRequest({leaseId:r,proposedLeaseId:n,options:s},xu)}listBlobFlatSegment(r){return this.client.sendOperationRequest({options:r},ku)}listBlobHierarchySegment(r,n){return this.client.sendOperationRequest({delimiter:r,options:n},_u)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},Pu)}}const gu=createSerializer(a,true);const yu={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ii},default:{bodyMapper:ls,headersMapper:oi}},queryParameters:[Qa,Va],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,ja,Ya,Ja],isXML:true,serializer:gu};const Eu={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ai},default:{bodyMapper:ls,headersMapper:li}},queryParameters:[Qa,Va],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a],isXML:true,serializer:gu};const bu={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ci},default:{bodyMapper:ls,headersMapper:ui}},queryParameters:[Qa,Va],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa],isXML:true,serializer:gu};const Cu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:di},default:{bodyMapper:ls,headersMapper:Ai}},queryParameters:[Qa,Va,Za],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,$a,Ka],isXML:true,serializer:gu};const wu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:pi},default:{bodyMapper:ls,headersMapper:fi}},queryParameters:[Qa,Va,el],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a],isXML:true,serializer:gu};const Bu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:hi},default:{bodyMapper:ls,headersMapper:mi}},requestBody:tl,queryParameters:[Qa,Va,el],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra,ja,$a,Ka,Xa],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gu};const Iu={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:gi},default:{bodyMapper:ls,headersMapper:yi}},queryParameters:[Qa,Va,rl],urlParameters:[Ba],headerParameters:[va,Ra,Da,nl,sl],isXML:true,serializer:gu};const Su={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ei},default:{bodyMapper:ls,headersMapper:bi}},queryParameters:[Qa,Va,il],urlParameters:[Ba],headerParameters:[va,Ra,Da,ol,al],isXML:true,serializer:gu};const Qu={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Ci},default:{bodyMapper:ls,headersMapper:wi}},requestBody:Ma,queryParameters:[Qa,Ua,Va],urlParameters:[Ba],headerParameters:[wa,va,Ra,Ha,Ga],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:gu};const vu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:ms,headersMapper:Bi},default:{bodyMapper:ls,headersMapper:Ii}},queryParameters:[Qa,ka,_a,za,qa,Va],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:gu};const Ru={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Si},default:{bodyMapper:ls,headersMapper:Qi}},queryParameters:[Qa,Va,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,cl,ul,dl],isXML:true,serializer:gu};const Du={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:vi},default:{bodyMapper:ls,headersMapper:Ri}},queryParameters:[Qa,Va,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,Al,pl],isXML:true,serializer:gu};const Nu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Di},default:{bodyMapper:ls,headersMapper:Ni}},queryParameters:[Qa,Va,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,pl,fl],isXML:true,serializer:gu};const Tu={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Ti},default:{bodyMapper:ls,headersMapper:xi}},queryParameters:[Qa,Va,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,hl,ml],isXML:true,serializer:gu};const xu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ki},default:{bodyMapper:ls,headersMapper:_i}},queryParameters:[Qa,Va,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,pl,gl,yl],isXML:true,serializer:gu};const ku={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:ws,headersMapper:Pi},default:{bodyMapper:ls,headersMapper:Fi}},queryParameters:[Qa,Ta,xa,ka,_a,Va,El,bl],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:gu};const _u={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:vs,headersMapper:Li},default:{bodyMapper:ls,headersMapper:Oi}},queryParameters:[Qa,Ta,xa,ka,_a,Va,El,bl,Cl],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:gu};const Pu={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Mi},default:{bodyMapper:ls,headersMapper:Ui}},queryParameters:[Sa,Qa,Oa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:gu};class BlobImpl{client;constructor(r){this.client=r}download(r){return this.client.sendOperationRequest({options:r},Lu)}getProperties(r){return this.client.sendOperationRequest({options:r},Ou)}delete(r){return this.client.sendOperationRequest({options:r},Mu)}undelete(r){return this.client.sendOperationRequest({options:r},Uu)}setExpiry(r,n){return this.client.sendOperationRequest({expiryOptions:r,options:n},Hu)}setHttpHeaders(r){return this.client.sendOperationRequest({options:r},Gu)}setImmutabilityPolicy(r){return this.client.sendOperationRequest({options:r},zu)}deleteImmutabilityPolicy(r){return this.client.sendOperationRequest({options:r},qu)}setLegalHold(r,n){return this.client.sendOperationRequest({legalHold:r,options:n},Vu)}setMetadata(r){return this.client.sendOperationRequest({options:r},Wu)}acquireLease(r){return this.client.sendOperationRequest({options:r},ju)}releaseLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Yu)}renewLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Ju)}changeLease(r,n,s){return this.client.sendOperationRequest({leaseId:r,proposedLeaseId:n,options:s},$u)}breakLease(r){return this.client.sendOperationRequest({options:r},Ku)}createSnapshot(r){return this.client.sendOperationRequest({options:r},Xu)}startCopyFromURL(r,n){return this.client.sendOperationRequest({copySource:r,options:n},Zu)}copyFromURL(r,n){return this.client.sendOperationRequest({copySource:r,options:n},ed)}abortCopyFromURL(r,n){return this.client.sendOperationRequest({copyId:r,options:n},td)}setTier(r,n){return this.client.sendOperationRequest({tier:r,options:n},rd)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},nd)}query(r){return this.client.sendOperationRequest({options:r},sd)}getTags(r){return this.client.sendOperationRequest({options:r},id)}setTags(r){return this.client.sendOperationRequest({options:r},od)}}const Fu=createSerializer(a,true);const Lu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Hi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Hi},default:{bodyMapper:ls,headersMapper:Gi}},queryParameters:[Qa,wl,Bl],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Il,Sl,Ql,vl,Rl,Dl,Nl,Tl,xl],isXML:true,serializer:Fu};const Ou={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:zi},default:{bodyMapper:ls,headersMapper:qi}},queryParameters:[Qa,wl,Bl],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl],isXML:true,serializer:Fu};const Mu={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Vi},default:{bodyMapper:ls,headersMapper:Wi}},queryParameters:[Qa,wl,Bl,_l],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Nl,Tl,xl,kl],isXML:true,serializer:Fu};const Uu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ji},default:{bodyMapper:ls,headersMapper:Yi}},queryParameters:[Qa,rl],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:Fu};const Hu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ji},default:{bodyMapper:ls,headersMapper:$i}},queryParameters:[Qa,Pl],urlParameters:[Ba],headerParameters:[va,Ra,Da,Fl,Ll],isXML:true,serializer:Fu};const Gu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ki},default:{bodyMapper:ls,headersMapper:Xi}},queryParameters:[Sa,Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl],isXML:true,serializer:Fu};const zu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zi},default:{bodyMapper:ls,headersMapper:eo}},queryParameters:[Qa,wl,Bl,ql],urlParameters:[Ba],headerParameters:[va,Ra,Da,Xa,Vl,Wl],isXML:true,serializer:Fu};const qu={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:to},default:{bodyMapper:ls,headersMapper:ro}},queryParameters:[Qa,wl,Bl,ql],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:Fu};const Vu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:no},default:{bodyMapper:ls,headersMapper:so}},queryParameters:[Qa,wl,Bl,jl],urlParameters:[Ba],headerParameters:[va,Ra,Da,Yl],isXML:true,serializer:Fu};const Wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:io},default:{bodyMapper:ls,headersMapper:oo}},queryParameters:[Qa,Za],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl],isXML:true,serializer:Fu};const ju={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ao},default:{bodyMapper:ls,headersMapper:lo}},queryParameters:[Qa,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,cl,ul,dl,Nl,Tl,xl],isXML:true,serializer:Fu};const Yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:co},default:{bodyMapper:ls,headersMapper:uo}},queryParameters:[Qa,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,Al,pl,Nl,Tl,xl],isXML:true,serializer:Fu};const Ju={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ao},default:{bodyMapper:ls,headersMapper:po}},queryParameters:[Qa,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,pl,fl,Nl,Tl,xl],isXML:true,serializer:Fu};const $u={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fo},default:{bodyMapper:ls,headersMapper:ho}},queryParameters:[Qa,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,pl,gl,yl,Nl,Tl,xl],isXML:true,serializer:Fu};const Ku={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:mo},default:{bodyMapper:ls,headersMapper:go}},queryParameters:[Qa,ll],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,hl,ml,Nl,Tl,xl],isXML:true,serializer:Fu};const Xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:yo},default:{bodyMapper:ls,headersMapper:Eo}},queryParameters:[Qa,$l],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl],isXML:true,serializer:Fu};const Zu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:bo},default:{bodyMapper:ls,headersMapper:Co}},queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,$a,Ka,Xa,Nl,Tl,xl,Vl,Wl,Kl,Xl,Zl,ec,tc,rc,nc,sc,ic,oc,ac],isXML:true,serializer:Fu};const ed={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wo},default:{bodyMapper:ls,headersMapper:Bo}},queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,Wa,$a,Ka,Xa,Nl,Tl,xl,Vl,Wl,Jl,Kl,Zl,ec,tc,rc,sc,ic,ac,lc,cc,uc,dc,Ac],isXML:true,serializer:Fu};const td={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Io},default:{bodyMapper:ls,headersMapper:So}},queryParameters:[Qa,pc,hc],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,fc],isXML:true,serializer:Fu};const rd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Qo},202:{headersMapper:Qo},default:{bodyMapper:ls,headersMapper:vo}},queryParameters:[Qa,wl,Bl,mc],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,xl,Xl,gc],isXML:true,serializer:Fu};const nd={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:Ro},default:{bodyMapper:ls,headersMapper:Do}},queryParameters:[Sa,Qa,Oa],urlParameters:[Ba],headerParameters:[va,Ra,Da],isXML:true,serializer:Fu};const sd={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:No},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:No},default:{bodyMapper:ls,headersMapper:To}},requestBody:yc,queryParameters:[Qa,wl,Ec],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fu};const id={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ys,headersMapper:xo},default:{bodyMapper:ls,headersMapper:ko}},queryParameters:[Qa,wl,Bl,bc],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,xl,Cc,wc,Bc,Ic],isXML:true,serializer:Fu};const od={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:_o},default:{bodyMapper:ls,headersMapper:Po}},requestBody:Sc,queryParameters:[Qa,Bl,bc],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra,$a,xl,Cc,wc,Bc,Ic,Qc,vc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Fu};class PageBlobImpl{client;constructor(r){this.client=r}create(r,n,s){return this.client.sendOperationRequest({contentLength:r,blobContentLength:n,options:s},ld)}uploadPages(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},cd)}clearPages(r,n){return this.client.sendOperationRequest({contentLength:r,options:n},ud)}uploadPagesFromURL(r,n,s,a,l){return this.client.sendOperationRequest({sourceUrl:r,sourceRange:n,contentLength:s,range:a,options:l},dd)}getPageRanges(r){return this.client.sendOperationRequest({options:r},Ad)}getPageRangesDiff(r){return this.client.sendOperationRequest({options:r},fd)}resize(r,n){return this.client.sendOperationRequest({blobContentLength:r,options:n},hd)}updateSequenceNumber(r,n){return this.client.sendOperationRequest({sequenceNumberAction:r,options:n},md)}copyIncremental(r,n){return this.client.sendOperationRequest({copySource:r,options:n},gd)}}const ad=createSerializer(a,true);const ld={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Fo},default:{bodyMapper:ls,headersMapper:Lo}},queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl,Vl,Wl,Jl,Kl,ic,ac,Rc,Dc,Nc],isXML:true,serializer:ad};const cd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Oo},default:{bodyMapper:ls,headersMapper:Mo}},requestBody:xc,queryParameters:[Qa,_c],urlParameters:[Ba],headerParameters:[va,Ra,Ha,$a,Ka,Xa,Il,vl,Rl,Dl,Nl,Tl,xl,Jl,Qc,vc,Tc,kc,Pc,Fc,Lc,Oc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:ad};const ud={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Uo},default:{bodyMapper:ls,headersMapper:Ho}},queryParameters:[Qa,_c],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,$a,Ka,Xa,Il,vl,Rl,Dl,Nl,Tl,xl,Jl,Fc,Lc,Oc,Mc],isXML:true,serializer:ad};const dd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:ls,headersMapper:zo}},queryParameters:[Qa,_c],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl,Zl,ec,tc,rc,cc,uc,Ac,Pc,Fc,Lc,Oc,Uc,Hc,Gc,zc],isXML:true,serializer:ad};const Ad={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ks,headersMapper:qo},default:{bodyMapper:ls,headersMapper:Vo}},queryParameters:[Qa,ka,_a,wl,qc],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Il,Nl,Tl,xl],isXML:true,serializer:ad};const fd={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ks,headersMapper:Wo},default:{bodyMapper:ls,headersMapper:jo}},queryParameters:[Qa,ka,_a,wl,qc,Vc],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Il,Nl,Tl,xl,Wc],isXML:true,serializer:ad};const hd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Yo},default:{bodyMapper:ls,headersMapper:Jo}},queryParameters:[Sa,Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl,Dc],isXML:true,serializer:ad};const md={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$o},default:{bodyMapper:ls,headersMapper:Ko}},queryParameters:[Sa,Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Nl,Tl,xl,Nc,jc],isXML:true,serializer:ad};const gd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Xo},default:{bodyMapper:ls,headersMapper:Zo}},queryParameters:[Qa,Yc],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ka,Xa,Nl,Tl,xl,sc],isXML:true,serializer:ad};class AppendBlobImpl{client;constructor(r){this.client=r}create(r,n){return this.client.sendOperationRequest({contentLength:r,options:n},Ed)}appendBlock(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},bd)}appendBlockFromUrl(r,n,s){return this.client.sendOperationRequest({sourceUrl:r,contentLength:n,options:s},Cd)}seal(r){return this.client.sendOperationRequest({options:r},wd)}}const yd=createSerializer(a,true);const Ed={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ea},default:{bodyMapper:ls,headersMapper:ta}},queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl,Vl,Wl,Jl,ic,ac,Jc],isXML:true,serializer:yd};const bd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ra},default:{bodyMapper:ls,headersMapper:na}},requestBody:xc,queryParameters:[Qa,$c],urlParameters:[Ba],headerParameters:[va,Ra,Ha,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl,Qc,vc,Tc,kc,Kc,Xc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:yd};const Cd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sa},default:{bodyMapper:ls,headersMapper:ia}},queryParameters:[Qa,$c],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Jl,Zl,ec,tc,rc,cc,uc,Ac,Qc,Uc,Gc,Kc,Xc,Zc],isXML:true,serializer:yd};const wd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:oa},default:{bodyMapper:ls,headersMapper:aa}},queryParameters:[Qa,eu],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,Ka,Xa,Nl,Tl,Xc],isXML:true,serializer:yd};class BlockBlobImpl{client;constructor(r){this.client=r}upload(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},Id)}putBlobFromUrl(r,n,s){return this.client.sendOperationRequest({contentLength:r,copySource:n,options:s},Sd)}stageBlock(r,n,s,a){return this.client.sendOperationRequest({blockId:r,contentLength:n,body:s,options:a},Qd)}stageBlockFromURL(r,n,s,a){return this.client.sendOperationRequest({blockId:r,contentLength:n,sourceUrl:s,options:a},vd)}commitBlockList(r,n){return this.client.sendOperationRequest({blocks:r,options:n},Rd)}getBlockList(r,n){return this.client.sendOperationRequest({listType:r,options:n},Dd)}}const Bd=createSerializer(a,true);const Id={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:la},default:{bodyMapper:ls,headersMapper:ca}},requestBody:xc,queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Ha,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl,Vl,Wl,Jl,Kl,ic,ac,Qc,vc,Tc,kc,tu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Bd};const Sd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ua},default:{bodyMapper:ls,headersMapper:da}},queryParameters:[Qa],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl,Jl,Kl,Zl,ec,tc,rc,nc,sc,ic,cc,uc,dc,Ac,Qc,tu,ru],isXML:true,serializer:Bd};const Qd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Aa},default:{bodyMapper:ls,headersMapper:pa}},requestBody:xc,queryParameters:[Qa,nu,su],urlParameters:[Ba],headerParameters:[va,Ra,Ha,$a,vl,Rl,Dl,Jl,Qc,vc,Tc,kc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Bd};const vd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fa},default:{bodyMapper:ls,headersMapper:ha}},queryParameters:[Qa,nu,su],urlParameters:[Ba],headerParameters:[va,Ra,Da,Ha,$a,vl,Rl,Dl,Jl,Zl,ec,tc,rc,cc,uc,Ac,Uc,Gc,Zc],isXML:true,serializer:Bd};const Rd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ma},default:{bodyMapper:ls,headersMapper:ga}},requestBody:iu,queryParameters:[Qa,ou],urlParameters:[Ba],headerParameters:[ba,wa,va,Ra,Wa,$a,Ka,Xa,vl,Rl,Dl,Nl,Tl,xl,Ol,Ml,Ul,Hl,Gl,zl,Vl,Wl,Jl,Kl,ic,ac,Qc,vc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Bd};const Dd={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ts,headersMapper:ya},default:{bodyMapper:ls,headersMapper:Ea}},queryParameters:[Qa,wl,ou,au],urlParameters:[Ba],headerParameters:[va,Ra,Da,$a,xl],isXML:true,serializer:Bd};class StorageClient extends ExtendedServiceClient{url;version;constructor(r,n){if(r===undefined){throw new Error("'url' cannot be null")}if(!n){n={}}const s={requestContentType:"application/json; charset=utf-8"};const a=`azsdk-js-azure-storage-blob/12.30.0`;const l=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${a}`:`${a}`;const u={...s,...n,userAgentOptions:{userAgentPrefix:l},endpoint:n.endpoint??n.baseUri??"{url}"};super(u);this.url=r;this.version=n.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(r,n){const s={...n};if(s.path==="/{containerName}"||s.path==="/{containerName}/{blob}"){s.path=""}return super.sendOperationRequest(r,s)}}function utils_common_escapeURLPath(r){const n=new URL(r);let s=n.pathname;s=s||"/";s=utils_utils_common_escape(s);n.pathname=s;return n.toString()}function utils_common_getProxyUriFromDevConnString(r){let n="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){n=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return n}function utils_common_getValueInConnString(r,n){const s=r.split(";");for(const r of s){if(r.trim().startsWith(n)){return r.trim().match(n+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(r){let n="";if(r.startsWith("UseDevelopmentStorage=true")){n=utils_common_getProxyUriFromDevConnString(r);r=qn}let s=utils_common_getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let u=Buffer.from("accountKey","base64");let d="";l=utils_common_getValueInConnString(r,"AccountName");u=Buffer.from(utils_common_getValueInConnString(r,"AccountKey"),"base64");if(!s){a=utils_common_getValueInConnString(r,"DefaultEndpointsProtocol");const n=a.toLowerCase();if(n!=="https"&&n!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=utils_common_getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${d}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(u.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:u,proxyUri:n}}else{let n=utils_common_getValueInConnString(r,"SharedAccessSignature");let a=utils_common_getValueInConnString(r,"AccountName");if(!a){a=utils_common_getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!n){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(n.startsWith("?")){n=n.substring(1)}return{kind:"SASConnString",url:s,accountName:a,accountSas:n}}}function utils_utils_common_escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(r,n){const s=new URL(r);let a=s.pathname;a=a?a.endsWith("/")?`${a}${n}`:`${a}/${n}`:n;s.pathname=a;return s.toString()}function utils_common_setURLParameter(r,n,s){const a=new URL(r);const l=encodeURIComponent(n);const u=s?encodeURIComponent(s):undefined;const d=a.search===""?"?":a.search;const A=[];for(const r of d.slice(1).split("&")){if(r){const[n]=r.split("=",2);if(n!==l){A.push(r)}}}if(u){A.push(`${l}=${u}`)}a.search=A.length?`?${A.join("&")}`:"";return a.toString()}function utils_common_getURLParameter(r,n){const s=new URL(r);return s.searchParams.get(n)??undefined}function utils_common_setURLHost(r,n){const s=new URL(r);s.hostname=n;return s.toString()}function utils_common_getURLPath(r){try{const n=new URL(r);return n.pathname}catch(r){return undefined}}function utils_common_getURLScheme(r){try{const n=new URL(r);return n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol}catch(r){return undefined}}function utils_common_getURLPathAndQuery(r){const n=new URL(r);const s=n.pathname;if(!s){throw new RangeError("Invalid url without valid path.")}let a=n.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${s}${a}`}function utils_common_getURLQueries(r){let n=new URL(r).search;if(!n){return{}}n=n.trim();n=n.startsWith("?")?n.substring(1):n;let s=n.split("&");s=s.filter((r=>{const n=r.indexOf("=");const s=r.lastIndexOf("=");return n>0&&n===s&&sl){r=r.slice(0,l)}const u=r+utils_common_padStart(n.toString(),s-r.length,"0");return utils_common_base64encode(u)}async function utils_utils_common_delay(r,n,s){return new Promise(((a,l)=>{let u;const abortHandler=()=>{if(u!==undefined){clearTimeout(u)}l(s)};const resolveHandler=()=>{if(n!==undefined){n.removeEventListener("abort",abortHandler)}a()};u=setTimeout(resolveHandler,r);if(n!==undefined){n.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(r,n,s=" "){if(String.prototype.padStart){return r.padStart(n,s)}s=s||" ";if(r.length>n){return r}else{n=n-r.length;if(n>s.length){s+=s.repeat(n/s.length)}return s.slice(0,n)+r}}function utils_common_sanitizeURL(r){let n=r;if(utils_common_getURLParameter(n,URLConstants.Parameters.SIGNATURE)){n=utils_common_setURLParameter(n,URLConstants.Parameters.SIGNATURE,"*****")}return n}function utils_common_sanitizeHeaders(r){const n=createHttpHeaders();for(const[s,a]of r){if(s.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){n.set(s,"*****")}else if(s.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){n.set(s,utils_common_sanitizeURL(a))}else{n.set(s,a)}}return n}function utils_common_iEqual(r,n){return r.toLocaleLowerCase()===n.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(r){const n=new URL(r);let s;try{if(n.hostname.split(".")[1]==="blob"){s=n.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(n)){s=n.pathname.split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(r){const n=r.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(n)||Boolean(r.port)&&Jn.includes(r.port)}function toBlobTagsString(r){if(r===undefined){return undefined}const n=[];for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];n.push(`${encodeURIComponent(s)}=${encodeURIComponent(a)}`)}}return n.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const n={blobTagSet:[]};for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];n.blobTagSet.push({key:s,value:a})}}return n}function toTags(r){if(r===undefined){return undefined}const n={};for(const s of r.blobTagSet){n[s.key]=s.value}return n}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const n=[];for(const s in r){const a=s.split("_");const l="or-";if(a[0].startsWith(l)){a[0]=a[0].substring(l.length)}const u={ruleId:a[1],replicationStatus:r[s]};const d=n.findIndex((r=>r.policyId===a[0]));if(d>-1){n[d].rules.push(u)}else{n.push({policyId:a[0],rules:[u]})}}return n}function utils_common_attachCredential(r,n){r.credential=n;return r}function utils_common_httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return{...r,segment:{blobItems:r.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}}}function ConvertInternalResponseOfListBlobHierarchy(r){return{...r,segment:{blobPrefixes:r.segment.blobPrefixes?.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n})),blobItems:r.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}}}function*ExtractPageRangeInfoItems(r){let n=[];let s=[];if(r.pageRange)n=r.pageRange;if(r.clearRange)s=r.clearRange;let a=0;let l=0;while(a0&&s.length>0){r.push(`${n}=${s}`)}}}function generateBlobSASQueryParameters(r,n,s){return generateBlobSASQueryParametersInternal(r,n,s).sasQueryParameters}function generateBlobSASQueryParametersInternal(r,n,s){const a=r.version?r.version:In;const l=n instanceof StorageSharedKeyCredential?n:undefined;let u;if(l===undefined&&s!==undefined){u=new UserDelegationKeyCredential(s,n)}if(l===undefined&&u===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{if(a>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(r,u)}else{return generateBlobSASQueryParametersUDK20201206(r,u)}}}if(a>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,u)}else{return generateBlobSASQueryParametersUDK20181109(r,u)}}}if(a>="2015-04-05"){if(l!==undefined){return generateBlobSASQueryParameters20150405(r,l)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";if(r.blobName){s="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[a?a:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const u=n.computeHMACSHA256(l);return{sasQueryParameters:new SASQueryParameters(r.version,u,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:l}}function generateBlobSASQueryParameters20181109(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:u}}function generateBlobSASQueryParameters20201206(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope),stringToSign:u}}function generateBlobSASQueryParametersUDK20181109(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey),stringToSign:u}}function generateBlobSASQueryParametersUDK20200210(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId),stringToSign:u}}function generateBlobSASQueryParametersUDK20201206(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope),stringToSign:u}}function generateBlobSASQueryParametersUDK20250705(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,undefined,r.delegatedUserObjectId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope,r.delegatedUserObjectId),stringToSign:u}}function getCanonicalName(r,n,s){const a=[`/blob/${r}/${n}`];if(s){a.push(`/${s}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const n=r.version?r.version:In;if(r.snapshotTime&&n<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(n<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(n<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(n<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=n;return r}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(r,n){const s=r.storageClientContext;this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=s.container}else{this._isContainer=false;this._containerOrBlobOperation=s.blob}if(!n){n=esm_randomUUID()}this._leaseId=n}async acquireLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==Fn||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==Fn||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Nd.withSpan("BlobLeaseClient-acquireLease",n,(async s=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:n.abortSignal,duration:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions}))))}async changeLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==Fn||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==Fn||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Nd.withSpan("BlobLeaseClient-changeLease",n,(async s=>{const a=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,r,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}));this._leaseId=r;return a}))}async releaseLease(r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fn||r.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Nd.withSpan("BlobLeaseClient-releaseLease",r,(async n=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async renewLease(r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Fn||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Fn||r.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Nd.withSpan("BlobLeaseClient-renewLease",r,(async n=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async breakLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==Fn||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==Fn||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Nd.withSpan("BlobLeaseClient-breakLease",n,(async s=>{const a={abortSignal:n.abortSignal,breakPeriod:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(a))}))}}class RetriableReadableStream extends ge.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(r,n,s,a,l={}){super({highWaterMark:l.highWaterMark});this.getter=n;this.source=r;this.start=s;this.offset=s;this.end=s+a-1;this.maxRetryRequests=l.maxRetryRequests&&l.maxRetryRequests>=0?l.maxRetryRequests:0;this.onProgress=l.onProgress;this.options=l;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};sourceAbortedHandler=()=>{const r=new AbortError_AbortError("The operation was aborted.");this.destroy(r)};sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(r,n){this.removeSourceEventHandlers();this.source.destroy();n(r===null?undefined:r)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Nt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(r,n,s,a,l={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,n,s,a,l)}}const xd=16;const kd=new Uint8Array([79,98,106,1]);const _d="avro.codec";const Pd="avro.schema";class AvroParser{static async readFixedBytes(r,n,s={}){const a=await r.read(n,{abortSignal:s.abortSignal});if(a.length!==n){throw new Error("Hit stream end.")}return a}static async readByte(r,n={}){const s=await AvroParser.readFixedBytes(r,1,n);return s[0]}static async readZigZagLong(r,n={}){let s=0;let a=0;let l,u,d;do{l=await AvroParser.readByte(r,n);u=l&128;s|=(l&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return s>>1^-(s&1)}static async readLong(r,n={}){return AvroParser.readZigZagLong(r,n)}static async readInt(r,n={}){return AvroParser.readZigZagLong(r,n)}static async readNull(){return null}static async readBoolean(r,n={}){const s=await AvroParser.readByte(r,n);if(s===1){return true}else if(s===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,n={}){const s=await AvroParser.readFixedBytes(r,4,n);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat32(0,true)}static async readDouble(r,n={}){const s=await AvroParser.readFixedBytes(r,8,n);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat64(0,true)}static async readBytes(r,n={}){const s=await AvroParser.readLong(r,n);if(s<0){throw new Error("Bytes size was negative.")}return r.read(s,{abortSignal:n.abortSignal})}static async readString(r,n={}){const s=await AvroParser.readBytes(r,n);const a=new TextDecoder;return a.decode(s)}static async readMapPair(r,n,s={}){const a=await AvroParser.readString(r,s);const l=await n(r,s);return{key:a,value:l}}static async readMap(r,n,s={}){const readPairMethod=(r,s={})=>AvroParser.readMapPair(r,n,s);const a=await AvroParser.readArray(r,readPairMethod,s);const l={};for(const r of a){l[r.key]=r.value}return l}static async readArray(r,n,s={}){const a=[];for(let l=await AvroParser.readLong(r,s);l!==0;l=await AvroParser.readLong(r,s)){if(l<0){await AvroParser.readLong(r,s);l=-l}while(l--){const l=await n(r,s);a.push(l)}}return a}}var Fd;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Fd||(Fd={}));var Ld;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Ld||(Ld={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Ld.NULL:case Ld.BOOLEAN:case Ld.INT:case Ld.LONG:case Ld.FLOAT:case Ld.DOUBLE:case Ld.BYTES:case Ld.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const n=r.type;try{return AvroType.fromStringSchema(n)}catch{}switch(n){case Fd.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const s={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const n of r.fields){s[n.name]=AvroType.fromSchema(n.type)}return new AvroRecordType(s,r.name);case Fd.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Fd.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Fd.ARRAY:case Fd.FIXED:default:throw new Error(`Unexpected Avro type ${n} in ${r}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(r){super();this._primitive=r}read(r,n={}){switch(this._primitive){case Ld.NULL:return AvroParser.readNull();case Ld.BOOLEAN:return AvroParser.readBoolean(r,n);case Ld.INT:return AvroParser.readInt(r,n);case Ld.LONG:return AvroParser.readLong(r,n);case Ld.FLOAT:return AvroParser.readFloat(r,n);case Ld.DOUBLE:return AvroParser.readDouble(r,n);case Ld.BYTES:return AvroParser.readBytes(r,n);case Ld.STRING:return AvroParser.readString(r,n);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(r){super();this._symbols=r}async read(r,n={}){const s=await AvroParser.readInt(r,n);return this._symbols[s]}}class AvroUnionType extends AvroType{_types;constructor(r){super();this._types=r}async read(r,n={}){const s=await AvroParser.readInt(r,n);return this._types[s].read(r,n)}}class AvroMapType extends AvroType{_itemType;constructor(r){super();this._itemType=r}read(r,n={}){const readItemMethod=(r,n)=>this._itemType.read(r,n);return AvroParser.readMap(r,readItemMethod,n)}}class AvroRecordType extends AvroType{_name;_fields;constructor(r,n){super();this._fields=r;this._name=n}async read(r,n={}){const s={};s["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){s[a]=await this._fields[a].read(r,n)}}return s}}function arraysEqual(r,n){if(r===n)return true;if(r==null||n==null)return false;if(r.length!==n.length)return false;for(let s=0;s0){for(let n=0;n0}async*parseObjects(r={}){if(!this._initialized){await this.initialize(r)}while(this.hasNext()){const n=await this._itemType.read(this._dataStream,{abortSignal:r.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const n=await AvroParser.readFixedBytes(this._dataStream,xd,{abortSignal:r.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,n)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal})}}yield n}}}class AvroReadable{}var Od=s(20181);const Md=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(r){if(typeof r==="string"){return Od.Buffer.from(r)}return r}constructor(r){super();this._readable=r;this._position=0}get position(){return this._position}async read(r,n={}){if(n.abortSignal?.aborted){throw Md}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const s=this._readable.read(r);if(s){this._position+=s.length;return this.toUint8Array(s)}else{return new Promise(((s,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(n.abortSignal){n.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const n=this._readable.read(r);if(n){this._position+=n.length;cleanUp();s(this.toUint8Array(n))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(Md)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(n.abortSignal){n.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends ge.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(r,n={}){super();this.source=r;this.onProgress=n.onProgress;this.onError=n.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:n.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const n=r.value;const s=n.$schema;if(typeof s!=="string"){throw Error("Missing schema in avro record.")}switch(s){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=n.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=n.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=n.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=n.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const s=n.name;if(typeof s!=="string"){throw Error("Invalid name in avro error record.")}const a=n.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const l=n.position;if(typeof l!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:l,name:s,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${s} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return Nt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(r,n={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,n)}}var Ud;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(Ud||(Ud={}));var Hd;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(Hd||(Hd={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,n){if(r&&!n){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=zn}}var Gd;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(Gd||(Gd={}));function getBlobServiceAccountAudience(r){return`https://${r}.blob.core.windows.net/.default`}function rangeResponseFromModel(r){const n=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const s=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return{...r,pageRange:n,clearRange:s,_response:{...r._response,parsedBody:{pageRange:n,clearRange:s}}}}const zd=esm_createClientLogger("core-lro");const qd=2e3;const Vd=["succeeded","canceled","failed"];function operation_deserializeState(r){try{return JSON.parse(r).state}catch(n){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:n,stateProxy:s,isOperationError:a}=r;return r=>{if(a(r)){s.setError(n,r);s.setFailed(n)}throw r}}function appendReadableErrorMessage(r,n){let s=r;if(s.slice(-1)!=="."){s=s+"."}return s+" "+n}function simplifyError(r){let n=r.message;let s=r.code;let a=r;while(a.innererror){a=a.innererror;s=a.code;n=appendReadableErrorMessage(n,a.message)}return{code:s,message:n}}function processOperationStatus(r){const{state:n,stateProxy:s,status:a,isDone:l,processResult:u,getError:d,response:A,setErrorAsResult:p}=r;switch(a){case"succeeded":{s.setSucceeded(n);break}case"failed":{const r=d===null||d===void 0?void 0:d(A);let a="";if(r){const{code:n,message:s}=simplifyError(r);a=`. ${n}. ${s}`}const l=`The long-running operation has failed${a}`;s.setError(n,new Error(l));s.setFailed(n);zd.warning(l);break}case"canceled":{s.setCanceled(n);break}}if((l===null||l===void 0?void 0:l(A,n))||l===undefined&&["succeeded","canceled"].concat(p?[]:["failed"]).includes(a)){s.setResult(n,buildResult({response:A,state:n,processResult:u}))}}function buildResult(r){const{processResult:n,response:s,state:a}=r;return n?n(s,a):s}async function operation_initOperation(r){const{init:n,stateProxy:s,processResult:a,getOperationStatus:l,withOperationLocation:u,setErrorAsResult:d}=r;const{operationLocation:A,resourceLocation:p,metadata:f,response:g}=await n();if(A)u===null||u===void 0?void 0:u(A,false);const y={metadata:f,operationLocation:A,resourceLocation:p};zd.verbose(`LRO: Operation description:`,y);const b=s.initState(y);const C=l({response:g,state:b,operationLocation:A});processOperationStatus({state:b,status:C,stateProxy:s,response:g,setErrorAsResult:d,processResult:a});return b}async function pollOperationHelper(r){const{poll:n,state:s,stateProxy:a,operationLocation:l,getOperationStatus:u,getResourceLocation:d,isOperationError:A,options:p}=r;const f=await n(l,p).catch(setStateError({state:s,stateProxy:a,isOperationError:A}));const g=u(f,s);zd.verbose(`LRO: Status:\n\tPolling from: ${s.config.operationLocation}\n\tOperation status: ${g}\n\tPolling status: ${Vd.includes(g)?"Stopped":"Running"}`);if(g==="succeeded"){const r=d(f,s);if(r!==undefined){return{response:await n(r).catch(setStateError({state:s,stateProxy:a,isOperationError:A})),status:g}}}return{response:f,status:g}}async function operation_pollOperation(r){const{poll:n,state:s,stateProxy:a,options:l,getOperationStatus:u,getResourceLocation:d,getOperationLocation:A,isOperationError:p,withOperationLocation:f,getPollingInterval:g,processResult:y,getError:b,updateState:C,setDelay:w,isDone:B,setErrorAsResult:I}=r;const{operationLocation:S}=s.config;if(S!==undefined){const{response:r,status:Q}=await pollOperationHelper({poll:n,getOperationStatus:u,state:s,stateProxy:a,operationLocation:S,getResourceLocation:d,isOperationError:p,options:l});processOperationStatus({status:Q,response:r,state:s,stateProxy:a,isDone:B,processResult:y,getError:b,setErrorAsResult:I});if(!Vd.includes(Q)){const n=g===null||g===void 0?void 0:g(r);if(n)w(n);const a=A===null||A===void 0?void 0:A(r,s);if(a!==undefined){const r=S!==a;s.config.operationLocation=a;f===null||f===void 0?void 0:f(a,r)}else f===null||f===void 0?void 0:f(S,false)}C===null||C===void 0?void 0:C(s,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:n,operationLocation:s}=r;return s!==null&&s!==void 0?s:n}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){var n;const{location:s,requestMethod:a,requestPath:l,resourceLocationConfig:u}=r;switch(a){case"PUT":{return l}case"DELETE":{return undefined}case"PATCH":{return(n=getDefault())!==null&&n!==void 0?n:l}default:{return getDefault()}}function getDefault(){switch(u){case"azure-async-operation":{return undefined}case"original-uri":{return l}case"location":default:{return s}}}}function operation_inferLroMode(r){const{rawResponse:n,requestMethod:s,requestPath:a,resourceLocationConfig:l}=r;const u=getOperationLocationHeader(n);const d=getAzureAsyncOperationHeader(n);const A=getOperationLocationPollingUrl({operationLocation:u,azureAsyncOperation:d});const p=getLocationHeader(n);const f=s===null||s===void 0?void 0:s.toLocaleUpperCase();if(A!==undefined){return{mode:"OperationLocation",operationLocation:A,resourceLocation:findResourceLocation({requestMethod:f,location:p,requestPath:a,resourceLocationConfig:l})}}else if(p!==undefined){return{mode:"ResourceLocation",operationLocation:p}}else if(f==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}function transformStatus(r){const{status:n,statusCode:s}=r;if(typeof n!=="string"&&n!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${n}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(n===null||n===void 0?void 0:n.toLocaleLowerCase()){case undefined:return toOperationStatus(s);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{zd.verbose(`LRO: unrecognized operation status: ${n}`);return n}}}function getStatus(r){var n;const{status:s}=(n=r.body)!==null&&n!==void 0?n:{};return transformStatus({status:s,statusCode:r.statusCode})}function getProvisioningState(r){var n,s;const{properties:a,provisioningState:l}=(n=r.body)!==null&&n!==void 0?n:{};const u=(s=a===null||a===void 0?void 0:a.provisioningState)!==null&&s!==void 0?s:l;return transformStatus({status:u,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:r}){const n=r.headers["retry-after"];if(n!==undefined){const r=parseInt(n);return isNaN(r)?calculatePollingIntervalFromDate(new Date(n)):r*1e3}return undefined}function operation_getErrorFromResponse(r){const n=accessBodyProperty(r,"error");if(!n){zd.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!n.code||!n.message){zd.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return n}function calculatePollingIntervalFromDate(r){const n=Math.floor((new Date).getTime());const s=r.getTime();if(n{const r=await l.sendInitialRequest();const n=operation_inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:s});return Object.assign({response:r,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},stateProxy:n,processResult:a?({flatResponse:r},n)=>a(r,n):({flatResponse:r})=>r,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:u})}function operation_getOperationLocation({rawResponse:r},n){var s;const a=(s=n.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:r},n){var s;const a=(s=n.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function accessBodyProperty({flatResponse:r,rawResponse:n},s){var a,l;return(a=r===null||r===void 0?void 0:r[s])!==null&&a!==void 0?a:(l=n.body)===null||l===void 0?void 0:l[s]}function operation_getResourceLocation(r,n){const s=accessBodyProperty(r,"resourceLocation");if(s&&typeof s==="string"){n.config.resourceLocation=s}return n.config.resourceLocation}function operation_isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:n,stateProxy:s,options:a,processResult:l,updateState:u,setDelay:d,state:A,setErrorAsResult:p}=r;return operation_pollOperation({state:A,stateProxy:s,setDelay:d,processResult:l?({flatResponse:r},n)=>l(r,n):({flatResponse:r})=>r,getError:operation_getErrorFromResponse,updateState:u,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:a,poll:async(r,s)=>n.sendPollRequest(r,s),setErrorAsResult:p})}const createStateProxy=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,n)=>r.error=n,setResult:(r,n)=>r.result=n,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function poller_buildCreatePoller(r){const{getOperationLocation:n,getStatusFromInitialResponse:s,getStatusFromPollResponse:a,isOperationError:l,getResourceLocation:u,getPollingInterval:d,getError:A,resolveOnUnsuccessful:p}=r;return async({init:r,poll:f},g)=>{const{processResult:y,updateState:b,withOperationLocation:C,intervalInMs:w=POLL_INTERVAL_IN_MS,restoreFrom:B}=g||{};const I=createStateProxy();const S=C?(()=>{let r=false;return(n,s)=>{if(s)C(n);else if(!r)C(n);r=true}})():undefined;const Q=B?deserializeState(B):await initOperation({init:r,stateProxy:I,processResult:y,getOperationStatus:s,withOperationLocation:S,setErrorAsResult:!p});let v;const R=new AbortController;const D=new Map;const handleProgressEvents=async()=>D.forEach((r=>r(Q)));const N="Operation was canceled";let T=w;const x={getOperationState:()=>Q,getResult:()=>Q.result,isDone:()=>["succeeded","failed","canceled"].includes(Q.status),isStopped:()=>v===undefined,stopPolling:()=>{R.abort()},toString:()=>JSON.stringify({state:Q}),onProgress:r=>{const n=Symbol();D.set(n,r);return()=>D.delete(n)},pollUntilDone:r=>v!==null&&v!==void 0?v:v=(async()=>{const{abortSignal:n}=r||{};function abortListener(){R.abort()}const s=R.signal;if(n===null||n===void 0?void 0:n.aborted){R.abort()}else if(!s.aborted){n===null||n===void 0?void 0:n.addEventListener("abort",abortListener,{once:true})}try{if(!x.isDone()){await x.poll({abortSignal:s});while(!x.isDone()){await delay(T,{abortSignal:s});await x.poll({abortSignal:s})}}}finally{n===null||n===void 0?void 0:n.removeEventListener("abort",abortListener)}if(p){return x.getResult()}else{switch(Q.status){case"succeeded":return x.getResult();case"canceled":throw new Error(N);case"failed":throw Q.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{v=undefined})),async poll(r){if(p){if(x.isDone())return}else{switch(Q.status){case"succeeded":return;case"canceled":throw new Error(N);case"failed":throw Q.error}}await pollOperation({poll:f,state:Q,stateProxy:I,getOperationLocation:n,isOperationError:l,withOperationLocation:S,getPollingInterval:d,getOperationStatus:a,getResourceLocation:u,processResult:y,getError:A,updateState:b,options:r,setDelay:r=>{T=r},setErrorAsResult:!p});await handleProgressEvents();if(!p){switch(Q.status){case"canceled":throw new Error(N);case"failed":throw Q.error}}}};return x}}async function createHttpPoller(r,n){const{resourceLocationConfig:s,intervalInMs:a,processResult:l,restoreFrom:u,updateState:d,withOperationLocation:A,resolveOnUnsuccessful:p=false}=n||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:p})({init:async()=>{const n=await r.sendInitialRequest();const a=inferLroMode({rawResponse:n.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:n,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:A,restoreFrom:u,updateState:d,processResult:l?({flatResponse:r},n)=>l(r,n):({flatResponse:r})=>r})}const operation_createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,n)=>r.error=n,setResult:(r,n)=>r.result=n,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,n,s,a,l,u,d){this.state=r;this.lro=n;this.setErrorAsResult=s;this.lroResourceLocationConfig=a;this.processResult=l;this.updateState=u;this.isDone=d}setPollerConfig(r){this.pollerConfig=r}async update(r){var n;const s=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:a?(r,{rawResponse:n})=>a(r,n):undefined,isDone:l?({flatResponse:r},n)=>l(r,n):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(n=r===null||r===void 0?void 0:r.fireProgress)===null||n===void 0?void 0:n.call(r,this.state);return this}async cancel(){zd.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,n)=>{this.resolve=r;this.reject=n}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const n of this.pollProgressCallbacks){n(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((n=>n!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,n){const{intervalInMs:s=qd,resumeFrom:a,resolveOnUnsuccessful:l=false,isDone:u,lroResourceLocationConfig:d,processResult:A,updateState:p}=n||{};const f=a?operation_deserializeState(a):{};const g=new GenericPollOperation(f,r,!l,d,A,p,u);super(g);this.resolveOnUnsuccessful=l;this.config={intervalInMs:s};g.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(r){const{blobClient:n,copySource:s,intervalInMs:a=15e3,onProgress:l,resumeFrom:u,startCopyFromURLOptions:d}=r;let A;if(u){A=JSON.parse(u).state}const p=makeBlobBeginCopyFromURLPollOperation({...A,blobClient:n,copySource:s,startCopyFromURLOptions:d});super(p);if(typeof l==="function"){this.onProgress(l)}this.intervalInMs=a}delay(){return delay_delay(this.intervalInMs)}}const Wd=async function cancel(r={}){const n=this.state;const{copyId:s}=n;if(n.isCompleted){return makeBlobBeginCopyFromURLPollOperation(n)}if(!s){n.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(n)}await n.blobClient.abortCopyFromURL(s,{abortSignal:r.abortSignal});n.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(n)};const jd=async function update(r={}){const n=this.state;const{blobClient:s,copySource:a,startCopyFromURLOptions:l}=n;if(!n.isStarted){n.isStarted=true;const r=await s.startCopyFromURL(a,l);n.copyId=r.copyId;if(r.copyStatus==="success"){n.result=r;n.isCompleted=true}}else if(!n.isCompleted){try{const s=await n.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:l}=s;const u=n.copyProgress;if(l){n.copyProgress=l}if(a==="pending"&&l!==u&&typeof r.fireProgress==="function"){r.fireProgress(n)}else if(a==="success"){n.result=s;n.isCompleted=true}else if(a==="failed"){n.error=new Error(`Blob copy failed with reason: "${s.copyStatusDescription||"unknown"}"`);n.isCompleted=true}}catch(r){n.error=r;n.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(n)};const Yd=function toString(){return JSON.stringify({state:this.state},((r,n)=>{if(r==="blobClient"){return undefined}return n}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:{...r},cancel:Wd,toString:Yd,update:jd}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var Jd;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Jd||(Jd={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Jd.Good;emitter;constructor(r=5){if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new $r.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,n)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=Jd.Error;n(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const p=setTimeout((()=>A(new Error(`The operation cannot be completed in timeout.`))),Tn);r.on("readable",(()=>{if(u>=d){clearTimeout(p);a();return}let A=r.read();if(!A){return}if(typeof A==="string"){A=Buffer.from(A,l)}const f=u+A.length>d?d-u:A.length;n.fill(A.slice(0,f),s+u,s+u+f);u+=f}));r.on("end",(()=>{clearTimeout(p);if(u{clearTimeout(p);A(r)}))}))}async function streamToBuffer2(r,n,s){let a=0;const l=n.length;return new Promise(((u,d)=>{r.on("readable",(()=>{let u=r.read();if(!u){return}if(typeof u==="string"){u=Buffer.from(u,s)}if(a+u.length>l){d(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}n.fill(u,a,a+u.length);a+=u.length}));r.on("end",(()=>{u(a)}));r.on("error",d)}))}async function streamToBuffer3(r,n){return new Promise(((s,a)=>{const l=[];r.on("data",(r=>{l.push(typeof r==="string"?Buffer.from(r,n):r)}));r.on("end",(()=>{s(Buffer.concat(l))}));r.on("error",a)}))}async function readStreamToLocalFile(r,n){return new Promise(((s,a)=>{const l=$d.createWriteStream(n);r.on("error",(r=>{a(r)}));l.on("error",(r=>{a(r)}));l.on("close",s);r.pipe(l)}))}const Kd=J.promisify($d.stat);const Xd=$d.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(r,n,s,a){a=a||{};let l;let u;if(isPipelineLike(n)){u=r;l=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;if(s&&typeof s!=="string"){a=s}l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,kn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,kn.Parameters.VERSIONID)}withSnapshot(r){return new BlobClient(utils_common_setURLParameter(this.url,kn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(utils_common_setURLParameter(this.url,kn.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,n,s={}){s.conditions=s.conditions||{};s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Nd.withSpan("BlobClient-download",s,(async a=>{const l=utils_common_assertResponse(await this.blobContext.download({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onDownloadProgress:Nt?undefined:s.onProgress},range:r===0&&!n?undefined:rangeToString({offset:r,count:n}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,objectReplicationDestinationPolicyId:l.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(l.objectReplicationRules)};if(!Nt){return u}if(s.maxRetryRequests===undefined||s.maxRetryRequests<0){s.maxRetryRequests=Nn}if(l.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!l.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(u,(async n=>{const a={leaseAccessConditions:s.conditions,modifiedAccessConditions:{ifMatch:s.conditions.ifMatch||l.etag,ifModifiedSince:s.conditions.ifModifiedSince,ifNoneMatch:s.conditions.ifNoneMatch,ifUnmodifiedSince:s.conditions.ifUnmodifiedSince,ifTags:s.conditions?.tagConditions},range:rangeToString({count:r+l.contentLength-n,offset:n}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey};return(await this.blobContext.download({abortSignal:s.abortSignal,...a})).readableStreamBody}),r,l.contentLength,{maxRetryRequests:s.maxRetryRequests,onProgress:s.onProgress})}))}async exists(r={}){return Nd.withSpan("BlobClient-exists",r,(async n=>{try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:n.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===jn||r.details.errorCode===Yn)){return true}throw r}}))}async getProperties(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Nd.withSpan("BlobClient-getProperties",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return{...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)}}))}async delete(r={}){r.conditions=r.conditions||{};return Nd.withSpan("BlobClient-delete",r,(async n=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async deleteIfExists(r={}){return Nd.withSpan("BlobClient-deleteIfExists",r,(async r=>{try{const n=utils_common_assertResponse(await this.delete(r));return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="BlobNotFound"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async undelete(r={}){return Nd.withSpan("BlobClient-undelete",r,(async n=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async setHTTPHeaders(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Nd.withSpan("BlobClient-setHTTPHeaders",n,(async s=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:n.abortSignal,blobHttpHeaders:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}))))}async setMetadata(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Nd.withSpan("BlobClient-setMetadata",n,(async s=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async setTags(r,n={}){return Nd.withSpan("BlobClient-setTags",n,(async s=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},blobModifiedAccessConditions:n.conditions,tracingOptions:s.tracingOptions,tags:toBlobTags(r)}))))}async getTags(r={}){return Nd.withSpan("BlobClient-getTags",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}));const a={...s,_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}};return a}))}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Nd.withSpan("BlobClient-createSnapshot",r,(async n=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async beginCopyFromURL(r,n={}){const s={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:s,copySource:r,intervalInMs:n.intervalInMs,onProgress:n.onProgress,resumeFrom:n.resumeFrom,startCopyFromURLOptions:n});await a.poll();return a}async abortCopyFromURL(r,n={}){return Nd.withSpan("BlobClient-abortCopyFromURL",n,(async s=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,tracingOptions:s.tracingOptions}))))}async syncCopyFromURL(r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};return Nd.withSpan("BlobClient-syncCopyFromURL",n,(async s=>utils_common_assertResponse(await this.blobContext.copyFromURL(r,{abortSignal:n.abortSignal,metadata:n.metadata,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:n.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,encryptionScope:n.encryptionScope,copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}async setAccessTier(r,n={}){return Nd.withSpan("BlobClient-setAccessTier",n,(async s=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(r),{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},rehydratePriority:n.rehydratePriority,tracingOptions:s.tracingOptions}))))}async downloadToBuffer(r,n,s,a={}){let l;let u=0;let d=0;let A=a;if(r instanceof Buffer){l=r;u=n||0;d=typeof s==="number"?s:0}else{u=typeof r==="number"?r:0;d=typeof n==="number"?n:0;A=s||{}}let p=A.blockSize??0;if(p<0){throw new RangeError("blockSize option must be >= 0")}if(p===0){p=Dn}if(u<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!A.conditions){A.conditions={}}return Nd.withSpan("BlobClient-downloadToBuffer",A,(async r=>{if(!d){const n=await this.getProperties({...A,tracingOptions:r.tracingOptions});d=n.contentLength-u;if(d<0){throw new RangeError(`offset ${u} shouldn't be larger than blob size ${n.contentLength}`)}}if(!l){try{l=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(l.length{let s=u+d;if(a+p{const u=await this.download(n,s,{...a,tracingOptions:l.tracingOptions});if(u.readableStreamBody){await readStreamToLocalFile(u.readableStreamBody,r)}u.blobDownloadStream=undefined;return u}))}getBlobAndContainerNamesFromUrl(){let r;let n;try{const s=new URL(this.url);if(s.host.split(".")[1]==="blob"){const a=s.pathname.match("/([^/]*)(/(.*))?");r=a[1];n=a[3]}else if(utils_common_isIpEndpointStyle(s)){const a=s.pathname.match("/([^/]*)/([^/]*)(/(.*))?");r=a[2];n=a[4]}else{const a=s.pathname.match("/([^/]*)(/(.*))?");r=a[1];n=a[3]}r=decodeURIComponent(r);n=decodeURIComponent(n);n=n.replace(/\\/g,"/");if(!r){throw new Error("Provided containerName is invalid.")}return{blobName:n,containerName:r}}catch(r){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(r,n={}){return Nd.withSpan("BlobClient-startCopyFromURL",n,(async s=>{n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions.ifMatch,sourceIfModifiedSince:n.sourceConditions.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions.ifUnmodifiedSince,sourceIfTags:n.sourceConditions.tagConditions},immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,rehydratePriority:n.rehydratePriority,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),sealBlob:n.sealBlob,tracingOptions:s.tracingOptions}))}))}generateSasUrl(r){return new Promise((n=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},this.credential).toString();n(utils_common_appendToURLQuery(this.url,s))}))}generateSasStringToSign(r){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},this.credential).stringToSign}generateUserDelegationSasUrl(r,n){return new Promise((s=>{const a=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},n,this.accountName).toString();s(utils_common_appendToURLQuery(this.url,a))}))}generateUserDelegationSasStringToSign(r,n){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},n,this.accountName).stringToSign}async deleteImmutabilityPolicy(r={}){return Nd.withSpan("BlobClient-deleteImmutabilityPolicy",r,(async r=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions}))))}async setImmutabilityPolicy(r,n={}){return Nd.withSpan("BlobClient-setImmutabilityPolicy",n,(async n=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,tracingOptions:n.tracingOptions}))))}async setLegalHold(r,n={}){return Nd.withSpan("BlobClient-setLegalHold",n,(async n=>utils_common_assertResponse(await this.blobContext.setLegalHold(r,{tracingOptions:n.tracingOptions}))))}async getAccountInfo(r={}){return Nd.withSpan("BlobClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(r){return new AppendBlobClient(utils_common_setURLParameter(this.url,kn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Nd.withSpan("AppendBlobClient-create",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(r={}){const n={ifNoneMatch:Ln};return Nd.withSpan("AppendBlobClient-createIfNotExists",r,(async r=>{try{const s=utils_common_assertResponse(await this.create({...r,conditions:n}));return{succeeded:true,...s,_response:s._response}}catch(r){if(r.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async seal(r={}){r.conditions=r.conditions||{};return Nd.withSpan("AppendBlobClient-seal",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async appendBlock(r,n,s={}){s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Nd.withSpan("AppendBlobClient-appendBlock",s,(async a=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(n,r,{abortSignal:s.abortSignal,appendPositionAccessConditions:s.conditions,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:a.tracingOptions}))))}async appendBlockFromURL(r,n,s,a={}){a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Nd.withSpan("AppendBlobClient-appendBlockFromURL",a,(async l=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(r,0,{abortSignal:a.abortSignal,sourceRange:rangeToString({offset:n,count:s}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions?.ifMatch,sourceIfModifiedSince:a.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:l.tracingOptions}))))}}class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;if(s&&typeof s!=="string"){a=s}l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(r){return new BlockBlobClient(utils_common_setURLParameter(this.url,kn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);if(!Nt){throw new Error("This operation currently is only supported in Node.js.")}return Nd.withSpan("BlockBlobClient-query",n,(async s=>{const a=utils_common_assertResponse(await this._blobContext.query({abortSignal:n.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(n.inputTextConfiguration),outputSerialization:toQuerySerialization(n.outputTextConfiguration)},leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions}));return new BlobQueryResponse(a,{abortSignal:n.abortSignal,onProgress:n.onProgress,onError:n.onError})}))}async upload(r,n,s={}){s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Nd.withSpan("BlockBlobClient-upload",s,(async a=>utils_common_assertResponse(await this.blockBlobContext.upload(n,r,{abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:s.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:s.immutabilityPolicy?.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),tracingOptions:a.tracingOptions}))))}async syncUploadFromURL(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Nd.withSpan("BlockBlobClient-syncUploadFromURL",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,r,{...n,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince,sourceIfTags:n.sourceConditions?.tagConditions},cpkInfo:n.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}async stageBlock(r,n,s,a={}){ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Nd.withSpan("BlockBlobClient-stageBlock",a,(async l=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(r,s,n,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions}))))}async stageBlockFromURL(r,n,s=0,a,l={}){ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return Nd.withSpan("BlockBlobClient-stageBlockFromURL",l,(async u=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(r,0,n,{abortSignal:l.abortSignal,leaseAccessConditions:l.conditions,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,sourceRange:s===0&&!a?undefined:rangeToString({offset:s,count:a}),cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(l.sourceAuthorization),fileRequestIntent:l.sourceShareTokenIntent,tracingOptions:u.tracingOptions}))))}async commitBlockList(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Nd.withSpan("BlockBlobClient-commitBlockList",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:r},{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:s.tracingOptions}))))}async getBlockList(r,n={}){return Nd.withSpan("BlockBlobClient-getBlockList",n,(async s=>{const a=utils_common_assertResponse(await this.blockBlobContext.getBlockList(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}))}async uploadData(r,n={}){return Nd.withSpan("BlockBlobClient-uploadData",n,(async n=>{if(Nt){let s;if(r instanceof Buffer){s=r}else if(r instanceof ArrayBuffer){s=Buffer.from(r)}else{r=r;s=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.byteLength,n)}else{const s=new Blob([r]);return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.size,n)}}))}async uploadBrowserData(r,n={}){return Nd.withSpan("BlockBlobClient-uploadBrowserData",n,(async n=>{const s=new Blob([r]);return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.size,n)}))}async uploadSeekableInternal(r,n,s={}){let a=s.blockSize??0;if(a<0||a>Qn){throw new RangeError(`blockSize option must be >= 0 and <= ${Qn}`)}const l=s.maxSingleShotSize??Sn;if(l<0||l>Sn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${Sn}`)}if(a===0){if(n>Qn*vn){throw new RangeError(`${n} is too larger to upload to a block blob.`)}if(n>l){a=Math.ceil(n/vn);if(a{if(n<=l){return utils_common_assertResponse(await this.upload(r(0,n),n,u))}const d=Math.floor((n-1)/a)+1;if(d>vn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${vn}`)}const A=[];const p=esm_randomUUID();let f=0;const g=new Batch(s.concurrency);for(let l=0;l{const g=utils_common_generateBlockID(p,l);const y=a*l;const b=l===d-1?n:y+a;const C=b-y;A.push(g);await this.stageBlock(g,r(y,C),C,{abortSignal:s.abortSignal,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:u.tracingOptions});f+=C;if(s.onProgress){s.onProgress({loadedBytes:f})}}))}await g.do();return this.commitBlockList(A,u)}))}async uploadFile(r,n={}){return Nd.withSpan("BlockBlobClient-uploadFile",n,(async s=>{const a=(await Kd(r)).size;return this.uploadSeekableInternal(((n,s)=>()=>Xd(r,{autoClose:true,end:s?n+s-1:Infinity,start:n})),a,{...n,tracingOptions:s.tracingOptions})}))}async uploadStream(r,n=Rn,s=5,a={}){if(!a.blobHTTPHeaders){a.blobHTTPHeaders={}}if(!a.conditions){a.conditions={}}return Nd.withSpan("BlockBlobClient-uploadStream",a,(async l=>{let u=0;const d=esm_randomUUID();let A=0;const p=[];const f=new BufferScheduler(r,n,s,(async(r,n)=>{const s=utils_common_generateBlockID(d,u);p.push(s);u++;await this.stageBlock(s,r,n,{customerProvidedKey:a.customerProvidedKey,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions});A+=n;if(a.onProgress){a.onProgress({loadedBytes:A})}}),Math.ceil(s/4*3));await f.do();return utils_common_assertResponse(await this.commitBlockList(p,{...a,tracingOptions:l.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(r){return new PageBlobClient(utils_common_setURLParameter(this.url,kn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Nd.withSpan("PageBlobClient-create",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.create(0,r,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,blobSequenceNumber:n.blobSequenceNumber,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:s.tracingOptions}))))}async createIfNotExists(r,n={}){return Nd.withSpan("PageBlobClient-createIfNotExists",n,(async s=>{try{const a={ifNoneMatch:Ln};const l=utils_common_assertResponse(await this.create(r,{...n,conditions:a,tracingOptions:s.tracingOptions}));return{succeeded:true,...l,_response:l._response}}catch(r){if(r.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async uploadPages(r,n,s,a={}){a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Nd.withSpan("PageBlobClient-uploadPages",a,(async l=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(s,r,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:n,count:s}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions}))))}async uploadPagesFromURL(r,n,s,a,l={}){l.conditions=l.conditions||{};l.sourceConditions=l.sourceConditions||{};ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return Nd.withSpan("PageBlobClient-uploadPagesFromURL",l,(async u=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:n,count:a}),0,rangeToString({offset:s,count:a}),{abortSignal:l.abortSignal,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,leaseAccessConditions:l.conditions,sequenceNumberAccessConditions:l.conditions,modifiedAccessConditions:{...l.conditions,ifTags:l.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:l.sourceConditions?.ifMatch,sourceIfModifiedSince:l.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:l.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:l.sourceConditions?.ifUnmodifiedSince},cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(l.sourceAuthorization),fileRequestIntent:l.sourceShareTokenIntent,tracingOptions:u.tracingOptions}))))}async clearPages(r=0,n,s={}){s.conditions=s.conditions||{};return Nd.withSpan("PageBlobClient-clearPages",s,(async a=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:a.tracingOptions}))))}async getPageRanges(r=0,n,s={}){s.conditions=s.conditions||{};return Nd.withSpan("PageBlobClient-getPageRanges",s,(async a=>{const l=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),tracingOptions:a.tracingOptions}));return rangeResponseFromModel(l)}))}async listPageRangesSegment(r=0,n,s,a={}){return Nd.withSpan("PageBlobClient-getPageRangesSegment",a,(async l=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),marker:s,maxPageSize:a.maxPageSize,tracingOptions:l.tracingOptions}))))}async*listPageRangeItemSegments(r=0,n,s,a={}){let l;if(!!s||s===undefined){do{l=await this.listPageRangesSegment(r,n,s,a);s=l.continuationToken;yield await l}while(s)}}async*listPageRangeItems(r=0,n,s={}){let a;for await(const l of this.listPageRangeItemSegments(r,n,a,s)){yield*ExtractPageRangeInfoItems(l)}}listPageRanges(r=0,n,s={}){s.conditions=s.conditions||{};const a=this.listPageRangeItems(r,n,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s})}}async getPageRangesDiff(r,n,s,a={}){a.conditions=a.conditions||{};return Nd.withSpan("PageBlobClient-getPageRangesDiff",a,(async l=>{const u=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevsnapshot:s,range:rangeToString({offset:r,count:n}),tracingOptions:l.tracingOptions}));return rangeResponseFromModel(u)}))}async listPageRangesDiffSegment(r,n,s,a,l={}){return Nd.withSpan("PageBlobClient-getPageRangesDiffSegment",l,(async u=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:l?.abortSignal,leaseAccessConditions:l?.conditions,modifiedAccessConditions:{...l?.conditions,ifTags:l?.conditions?.tagConditions},prevsnapshot:s,range:rangeToString({offset:r,count:n}),marker:a,maxPageSize:l?.maxPageSize,tracingOptions:u.tracingOptions}))))}async*listPageRangeDiffItemSegments(r,n,s,a,l){let u;if(!!a||a===undefined){do{u=await this.listPageRangesDiffSegment(r,n,s,a,l);a=u.continuationToken;yield await u}while(a)}}async*listPageRangeDiffItems(r,n,s,a){let l;for await(const u of this.listPageRangeDiffItemSegments(r,n,s,l,a)){yield*ExtractPageRangeInfoItems(u)}}listPageRangesDiff(r,n,s,a={}){a.conditions=a.conditions||{};const l=this.listPageRangeDiffItems(r,n,s,{...a});return{next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(l={})=>this.listPageRangeDiffItemSegments(r,n,s,l.continuationToken,{maxPageSize:l.maxPageSize,...a})}}async getPageRangesDiffForManagedDisks(r,n,s,a={}){a.conditions=a.conditions||{};return Nd.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",a,(async l=>{const u=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevSnapshotUrl:s,range:rangeToString({offset:r,count:n}),tracingOptions:l.tracingOptions}));return rangeResponseFromModel(u)}))}async resize(r,n={}){n.conditions=n.conditions||{};return Nd.withSpan("PageBlobClient-resize",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.resize(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async updateSequenceNumber(r,n,s={}){s.conditions=s.conditions||{};return Nd.withSpan("PageBlobClient-updateSequenceNumber",s,(async a=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(r,{abortSignal:s.abortSignal,blobSequenceNumber:n,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},tracingOptions:a.tracingOptions}))))}async startCopyIncremental(r,n={}){return Nd.withSpan("PageBlobClient-startCopyIncremental",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(r,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}))))}}async function getBodyAsText(r){let n=Buffer.alloc(Un);const s=await streamToBuffer2(r.readableStreamBody,n);n=n.slice(0,s);return n.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const Zd=": ";const eA=" ";const tA=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(r,n){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!n||n.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=n;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${Hn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==_n.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const n=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const s=n.length;if(s!==this.subRequests.size&&s!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const a=new Array(s);let l=0;let u=0;for(let r=0;r=0&&y{if(this.keys[r]===undefined||this.keys[r]===rA.UNLOCKED){this.keys[r]=rA.LOCKED;n()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=rA.LOCKED;n()}))}}))}static async unlock(r){return new Promise((n=>{if(this.keys[r]===rA.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];n()}))}static keys={};static listeners={};static onUnlockEvent(r,n){if(this.listeners[r]===undefined){this.listeners[r]=[n]}else{this.listeners[r].push(n)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const n=this.listeners[r].shift();setImmediate((()=>{n.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,n){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await n();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,n,s){let a;let l;if(typeof r==="string"&&(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))){a=r;l=n}else if(r instanceof BlobClient){a=r.url;l=r.credential;s=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}return Nd.withSpan("BatchDeleteRequest-addSubRequest",s,(async r=>{this.setBatchType("delete");await this.addSubRequestInternal({url:a,credential:l},(async()=>{await new BlobClient(a,this.batchRequest.createPipeline(l)).delete(r)}))}))}async setBlobAccessTier(r,n,s,a){let l;let u;let d;if(typeof r==="string"&&(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))){l=r;u=n;d=s}else if(r instanceof BlobClient){l=r.url;u=r.credential;d=n;a=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}return Nd.withSpan("BatchSetTierRequest-addSubRequest",a,(async r=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:l,credential:u},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(u)).setAccessTier(d,r)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const r=esm_randomUUID();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${Hn}${Pn.CONTENT_TYPE}: application/http${Hn}${Pn.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const n=esm_pipeline_createEmptyPipeline();n.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});n.addPolicy(batchHeaderFilterPolicy());n.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(r)){n.addPolicy(bearerTokenAuthenticationPolicy({credential:r,scopes:xn,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(r instanceof StorageSharedKeyCredential){n.addPolicy(storageSharedKeyCredentialPolicy({accountName:r.accountName,accountKey:r.accountKey}),{phase:"Sign"})}const s=new Pipeline([]);s._credential=r;s._corePipeline=n;return s}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${Pn.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${utils_common_getURLPathAndQuery(r.url)} ${Gn}${Hn}`].join(Hn);for(const[n,s]of r.headers){this.body+=`${n}: ${s}${Hn}`}this.body+=Hn}preAddSubRequest(r){if(this.operationCount>=Mn){throw new RangeError(`Cannot exceed ${Mn} sub requests in a single batch`)}const n=utils_common_getURLPath(r.url);if(!n||n===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${Hn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(r){return{name:"batchRequestAssemblePolicy",async sendRequest(n){r.appendSubRequestToBody(n);return{request:n,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(r,n){let s="";for(const[n]of r.headers){if(utils_common_iEqual(n,Pn.X_MS_VERSION)){s=n}}if(s!==""){r.headers.delete(s)}return n(r)}}}class BlobBatchClient{serviceOrContainerContext;constructor(r,n,s){let a;if(isPipelineLike(n)){a=n}else if(!n){a=newPipeline(new AnonymousCredential,s)}else{a=newPipeline(n,s)}const l=new StorageContextClient(r,getCoreClientOptions(a));const u=utils_common_getURLPath(r);if(u&&u!=="/"){this.serviceOrContainerContext=l.container}else{this.serviceOrContainerContext=l.service}}createBatch(){return new BlobBatch}async deleteBlobs(r,n,s){const a=new BlobBatch;for(const l of r){if(typeof l==="string"){await a.deleteBlob(l,n,s)}else{await a.deleteBlob(l,n)}}return this.submitBatch(a)}async setBlobsAccessTier(r,n,s,a){const l=new BlobBatch;for(const u of r){if(typeof u==="string"){await l.setBlobAccessTier(u,n,s,a)}else{await l.setBlobAccessTier(u,n,s)}}return this.submitBatch(l)}async submitBatch(r,n={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return Nd.withSpan("BlobBatchClient-submitBatch",n,(async n=>{const s=r.getHttpRequestBody();const a=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(s),r.getMultiPartContentType(),s,{...n}));const l=new BatchResponseParser(a,r.getSubRequests());const u=await l.parseBatchResponse();const d={_response:a._response,contentType:a.contentType,errorCode:a.errorCode,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,subResponses:u.subResponses,subResponsesSucceededCount:u.subResponsesSucceededCount,subResponsesFailedCount:u.subResponsesFailedCount};return d}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(r,n,s){let a;let l;s=s||{};if(isPipelineLike(n)){l=r;a=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){l=r;a=newPipeline(n,s)}else if(!n&&typeof n!=="string"){l=r;a=newPipeline(new AnonymousCredential,s)}else if(n&&typeof n==="string"){const u=n;const d=utils_common_extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);l=utils_common_appendToURLPath(d.url,encodeURIComponent(u));if(!s.proxyOptions){s.proxyOptions=proxyPolicy_getDefaultProxySettings(d.proxyUri)}a=newPipeline(r,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){l=utils_common_appendToURLPath(d.url,encodeURIComponent(u))+"?"+d.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(l,a);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(r={}){return Nd.withSpan("ContainerClient-create",r,(async r=>utils_common_assertResponse(await this.containerContext.create(r))))}async createIfNotExists(r={}){return Nd.withSpan("ContainerClient-createIfNotExists",r,(async r=>{try{const n=await this.create(r);return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}else{throw r}}}))}async exists(r={}){return Nd.withSpan("ContainerClient-exists",r,(async n=>{try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}throw r}}))}getBlobClient(r){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}return Nd.withSpan("ContainerClient-getProperties",r,(async n=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:r.abortSignal,...r.conditions,tracingOptions:n.tracingOptions}))))}async delete(r={}){if(!r.conditions){r.conditions={}}return Nd.withSpan("ContainerClient-delete",r,(async n=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))))}async deleteIfExists(r={}){return Nd.withSpan("ContainerClient-deleteIfExists",r,(async r=>{try{const n=await this.delete(r);return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async setMetadata(r,n={}){if(!n.conditions){n.conditions={}}if(n.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return Nd.withSpan("ContainerClient-setMetadata",n,(async s=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:r,modifiedAccessConditions:n.conditions,tracingOptions:s.tracingOptions}))))}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}return Nd.withSpan("ContainerClient-getAccessPolicy",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions}));const a={_response:s._response,blobPublicAccess:s.blobPublicAccess,date:s.date,etag:s.etag,errorCode:s.errorCode,lastModified:s.lastModified,requestId:s.requestId,clientRequestId:s.clientRequestId,signedIdentifiers:[],version:s.version};for(const r of s){let n=undefined;if(r.accessPolicy){n={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){n.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){n.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:n,id:r.id})}return a}))}async setAccessPolicy(r,n,s={}){s.conditions=s.conditions||{};return Nd.withSpan("ContainerClient-setAccessPolicy",s,(async a=>{const l=[];for(const r of n||[]){l.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?utils_common_truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:s.abortSignal,access:r,containerAcl:l,leaseAccessConditions:s.conditions,modifiedAccessConditions:s.conditions,tracingOptions:a.tracingOptions}))}))}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,n,s,a={}){return Nd.withSpan("ContainerClient-uploadBlockBlob",a,(async a=>{const l=this.getBlockBlobClient(r);const u=await l.upload(n,s,a);return{blockBlobClient:l,response:u}}))}async deleteBlob(r,n={}){return Nd.withSpan("ContainerClient-deleteBlob",n,(async s=>{let a=this.getBlobClient(r);if(n.versionId){a=a.withVersion(n.versionId)}return a.delete(s)}))}async listBlobFlatSegment(r,n={}){return Nd.withSpan("ContainerClient-listBlobFlatSegment",n,(async s=>{const a=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:r,...n,tracingOptions:s.tracingOptions}));const l={...a,_response:{...a._response,parsedBody:ConvertInternalResponseOfListBlobFlat(a._response.parsedBody)},segment:{...a.segment,blobItems:a.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)};return n}))}};return l}))}async listBlobHierarchySegment(r,n,s={}){return Nd.withSpan("ContainerClient-listBlobHierarchySegment",s,(async a=>{const l=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(r,{marker:n,...s,tracingOptions:a.tracingOptions}));const u={...l,_response:{...l._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(l._response.parsedBody)},segment:{...l.segment,blobItems:l.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)};return n})),blobPrefixes:l.segment.blobPrefixes?.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}};return u}))}async*listSegments(r,n={}){let s;if(!!r||r===undefined){do{s=await this.listBlobFlatSegment(r,n);r=s.continuationToken;yield await s}while(r)}}async*listItems(r={}){let n;for await(const s of this.listSegments(n,r)){yield*s.segment.blobItems}}listBlobsFlat(r={}){const n=[];if(r.includeCopy){n.push("copy")}if(r.includeDeleted){n.push("deleted")}if(r.includeMetadata){n.push("metadata")}if(r.includeSnapshots){n.push("snapshots")}if(r.includeVersions){n.push("versions")}if(r.includeUncommitedBlobs){n.push("uncommittedblobs")}if(r.includeTags){n.push("tags")}if(r.includeDeletedWithVersions){n.push("deletedwithversions")}if(r.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(r.includeLegalHold){n.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const s={...r,...n.length>0?{include:n}:{}};const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,{maxPageSize:r.maxPageSize,...s})}}async*listHierarchySegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.listBlobHierarchySegment(r,n,s);n=a.continuationToken;yield await a}while(n)}}async*listItemsByHierarchy(r,n={}){let s;for await(const a of this.listHierarchySegments(r,s,n)){const r=a.segment;if(r.blobPrefixes){for(const n of r.blobPrefixes){yield{kind:"prefix",...n}}}for(const n of r.blobItems){yield{kind:"blob",...n}}}}listBlobsByHierarchy(r,n={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const s=[];if(n.includeCopy){s.push("copy")}if(n.includeDeleted){s.push("deleted")}if(n.includeMetadata){s.push("metadata")}if(n.includeSnapshots){s.push("snapshots")}if(n.includeVersions){s.push("versions")}if(n.includeUncommitedBlobs){s.push("uncommittedblobs")}if(n.includeTags){s.push("tags")}if(n.includeDeletedWithVersions){s.push("deletedwithversions")}if(n.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(n.includeLegalHold){s.push("legalhold")}if(n.prefix===""){n.prefix=undefined}const a={...n,...s.length>0?{include:s}:{}};const l=this.listItemsByHierarchy(r,a);return{async next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listHierarchySegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...a})}}async findBlobsByTagsSegment(r,n,s={}){return Nd.withSpan("ContainerClient-findBlobsByTagsSegment",s,(async a=>{const l=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:s.abortSignal,where:r,marker:n,maxPageSize:s.maxPageSize,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,blobs:l.blobs.map((r=>{let n="";if(r.tags?.blobTagSet.length===1){n=r.tags.blobTagSet[0].value}return{...r,tags:toTags(r.tags),tagValue:n}}))};return u}))}async*findBlobsByTagsSegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.findBlobsByTagsSegment(r,n,s);a.blobs=a.blobs||[];n=a.continuationToken;yield a}while(n)}}async*findBlobsByTagsItems(r,n={}){let s;for await(const a of this.findBlobsByTagsSegments(r,s,n)){yield*a.blobs}}findBlobsByTags(r,n={}){const s={...n};const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...s})}}async getAccountInfo(r={}){return Nd.withSpan("ContainerClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}getContainerNameFromUrl(){let r;try{const n=new URL(this.url);if(n.hostname.split(".")[1]==="blob"){r=n.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(n)){r=n.pathname.split("/")[2]}else{r=n.pathname.split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((n=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters({containerName:this._containerName,...r},this.credential).toString();n(utils_common_appendToURLQuery(this.url,s))}))}generateSasStringToSign(r){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...r},this.credential).stringToSign}generateUserDelegationSasUrl(r,n){return new Promise((s=>{const a=generateBlobSASQueryParameters({containerName:this._containerName,...r},n,this.accountName).toString();s(utils_common_appendToURLQuery(this.url,a))}))}generateUserDelegationSasStringToSign(r,n){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...r},n,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(r){const n=new AccountSASPermissions;for(const s of r){switch(s){case"r":n.read=true;break;case"w":n.write=true;break;case"d":n.delete=true;break;case"x":n.deleteVersion=true;break;case"l":n.list=true;break;case"a":n.add=true;break;case"c":n.create=true;break;case"u":n.update=true;break;case"p":n.process=true;break;case"t":n.tag=true;break;case"f":n.filter=true;break;case"i":n.setImmutabilityPolicy=true;break;case"y":n.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${s}`)}}return n}static from(r){const n=new AccountSASPermissions;if(r.read){n.read=true}if(r.write){n.write=true}if(r.delete){n.delete=true}if(r.deleteVersion){n.deleteVersion=true}if(r.filter){n.filter=true}if(r.tag){n.tag=true}if(r.list){n.list=true}if(r.add){n.add=true}if(r.create){n.create=true}if(r.update){n.update=true}if(r.process){n.process=true}if(r.setImmutabilityPolicy){n.setImmutabilityPolicy=true}if(r.permanentDelete){n.permanentDelete=true}return n}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{static parse(r){const n=new AccountSASResourceTypes;for(const s of r){switch(s){case"s":n.service=true;break;case"c":n.container=true;break;case"o":n.object=true;break;default:throw new RangeError(`Invalid resource type: ${s}`)}}return n}service=false;container=false;object=false;toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{static parse(r){const n=new AccountSASServices;for(const s of r){switch(s){case"b":n.blob=true;break;case"f":n.file=true;break;case"q":n.queue=true;break;case"t":n.table=true;break;default:throw new RangeError(`Invalid service character: ${s}`)}}return n}blob=false;file=false;queue=false;table=false;toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,n){return generateAccountSASQueryParametersInternal(r,n).sasQueryParameters}function generateAccountSASQueryParametersInternal(r,n){const s=r.version?r.version:In;if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const l=AccountSASServices.parse(r.services).toString();const u=AccountSASResourceTypes.parse(r.resourceTypes).toString();let d;if(s>="2020-12-06"){d=[n.accountName,a,l,u,r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",utils_common_truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{d=[n.accountName,a,l,u,r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",utils_common_truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,""].join("\n")}const A=n.computeHMACSHA256(d);return{sasQueryParameters:new SASQueryParameters(s,A,a.toString(),l,u,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope),stringToSign:d}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(r,n){n=n||{};const s=utils_common_extractConnectionStringParts(r);if(s.kind==="AccountConnString"){if(Nt){const r=new StorageSharedKeyCredential(s.accountName,s.accountKey);if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(s.proxyUri)}const a=newPipeline(r,n);return new BlobServiceClient(s.url,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(s.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,n);return new BlobServiceClient(s.url+"?"+s.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(r,n,s){let a;if(isPipelineLike(n)){a=n}else if(Nt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){a=newPipeline(n,s)}else{a=newPipeline(new AnonymousCredential,s)}super(r,a);this.serviceContext=this.storageClientContext.service}getContainerClient(r){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,n={}){return Nd.withSpan("BlobServiceClient-createContainer",n,(async n=>{const s=this.getContainerClient(r);const a=await s.create(n);return{containerClient:s,containerCreateResponse:a}}))}async deleteContainer(r,n={}){return Nd.withSpan("BlobServiceClient-deleteContainer",n,(async n=>{const s=this.getContainerClient(r);return s.delete(n)}))}async undeleteContainer(r,n,s={}){return Nd.withSpan("BlobServiceClient-undeleteContainer",s,(async a=>{const l=this.getContainerClient(s.destinationContainerName||r);const u=l["storageClientContext"].container;const d=utils_common_assertResponse(await u.restore({deletedContainerName:r,deletedContainerVersion:n,tracingOptions:a.tracingOptions}));return{containerClient:l,containerUndeleteResponse:d}}))}async getProperties(r={}){return Nd.withSpan("BlobServiceClient-getProperties",r,(async n=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async setProperties(r,n={}){return Nd.withSpan("BlobServiceClient-setProperties",n,(async s=>utils_common_assertResponse(await this.serviceContext.setProperties(r,{abortSignal:n.abortSignal,tracingOptions:s.tracingOptions}))))}async getStatistics(r={}){return Nd.withSpan("BlobServiceClient-getStatistics",r,(async n=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async getAccountInfo(r={}){return Nd.withSpan("BlobServiceClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async listContainersSegment(r,n={}){return Nd.withSpan("BlobServiceClient-listContainersSegment",n,(async s=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:n.abortSignal,marker:r,...n,include:typeof n.include==="string"?[n.include]:n.include,tracingOptions:s.tracingOptions}))))}async findBlobsByTagsSegment(r,n,s={}){return Nd.withSpan("BlobServiceClient-findBlobsByTagsSegment",s,(async a=>{const l=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:s.abortSignal,where:r,marker:n,maxPageSize:s.maxPageSize,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,blobs:l.blobs.map((r=>{let n="";if(r.tags?.blobTagSet.length===1){n=r.tags.blobTagSet[0].value}return{...r,tags:toTags(r.tags),tagValue:n}}))};return u}))}async*findBlobsByTagsSegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.findBlobsByTagsSegment(r,n,s);a.blobs=a.blobs||[];n=a.continuationToken;yield a}while(n)}}async*findBlobsByTagsItems(r,n={}){let s;for await(const a of this.findBlobsByTagsSegments(r,s,n)){yield*a.blobs}}findBlobsByTags(r,n={}){const s={...n};const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...s})}}async*listSegments(r,n={}){let s;if(!!r||r===undefined){do{s=await this.listContainersSegment(r,n);s.containerItems=s.containerItems||[];r=s.continuationToken;yield await s}while(r)}}async*listItems(r={}){let n;for await(const s of this.listSegments(n,r)){yield*s.containerItems}}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const n=[];if(r.includeDeleted){n.push("deleted")}if(r.includeMetadata){n.push("metadata")}if(r.includeSystem){n.push("system")}const s={...r,...n.length>0?{include:n}:{}};const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,{maxPageSize:r.maxPageSize,...s})}}async getUserDelegationKey(r,n,s={}){return Nd.withSpan("BlobServiceClient-getUserDelegationKey",s,(async a=>{const l=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(r,false),expiresOn:utils_common_truncatedISO8061Date(n,false)},{abortSignal:s.abortSignal,tracingOptions:a.tracingOptions}));const u={signedObjectId:l.signedObjectId,signedTenantId:l.signedTenantId,signedStartsOn:new Date(l.signedStartsOn),signedExpiresOn:new Date(l.signedExpiresOn),signedService:l.signedService,signedVersion:l.signedVersion,value:l.value};const d={_response:l._response,requestId:l.requestId,clientRequestId:l.clientRequestId,version:l.version,date:l.date,errorCode:l.errorCode,...u};return d}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,n=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const n=new Date;r=new Date(n.getTime()+3600*1e3)}const l=generateAccountSASQueryParameters({permissions:n,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString(),...a},this.credential).toString();return utils_common_appendToURLQuery(this.url,l)}generateSasStringToSign(r,n=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const n=new Date;r=new Date(n.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:n,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString(),...a},this.credential).stringToSign}}var nA;(function(r){r["AES256"]="AES256"})(nA||(nA={}));var sA=s(76982);var iA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function uploadToBlobStorage(r,n,s){return iA(this,void 0,void 0,(function*(){let a=0;let l=Date.now();const d=new AbortController;const chunkTimer=r=>iA(this,void 0,void 0,(function*(){return new Promise(((n,s)=>{const a=setInterval((()=>{if(Date.now()-l>r){s(new Error("Upload progress stalled."))}}),r);d.signal.addEventListener("abort",(()=>{clearInterval(a);n()}))}))}));const A=getConcurrency();const p=getUploadChunkSize();const f=new BlobClient(r);const g=f.getBlockBlobClient();u.Yz(`Uploading artifact to blob storage with maxConcurrency: ${A}, bufferSize: ${p}, contentType: ${s}`);const uploadCallback=r=>{u.pq(`Uploaded bytes ${r.loadedBytes}`);a=r.loadedBytes;l=Date.now()};const y={blobHTTPHeaders:{blobContentType:s},onProgress:uploadCallback,abortSignal:d.signal};let b=undefined;const C=new Ke.PassThrough;const w=sA.createHash("sha256");n.pipe(C);n.pipe(w).setEncoding("hex");u.pq("Beginning upload of artifact content to blob storage");try{yield Promise.race([g.uploadStream(C,p,A,y),chunkTimer(getUploadChunkTimeout())])}catch(r){if(NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{d.abort()}u.pq("Finished uploading artifact content to blob storage!");w.end();b=w.read();u.pq(`SHA256 digest of uploaded artifact is ${b}`);if(a===0){u.$e(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:a,sha256Hash:b}}))}const oA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises");var aA=s(72709);var lA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class WaterMarkedUploadStream extends Ke.Transform{constructor(r){super({highWaterMark:r})}_transform(r,n,s){s(null,r)}}function createRawFileUploadStream(r){return lA(this,void 0,void 0,(function*(){u.Yz(`Creating raw file upload stream for: ${r}`);const n=getUploadChunkSize();const s=new WaterMarkedUploadStream(n);let a=r;const l=yield A.promises.lstat(r);if(l.isSymbolicLink()){a=yield(0,oA.realpath)(r)}const d=A.createReadStream(a,{highWaterMark:n});d.on("error",(r=>{u.z3("An error has occurred while reading the file for upload");u.z3(String(r));s.destroy(new Error("An error has occurred during file read for the artifact"))}));d.pipe(s);return s}))}var cA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const uA=6;function createZipUploadStream(r){return cA(this,arguments,void 0,(function*(r,n=uA){u.Yz(`Creating Artifact archive with compressionLevel: ${n}`);const s=aA.create("zip",{highWaterMark:getUploadChunkSize(),zlib:{level:n}});s.on("error",zipErrorCallback);s.on("warning",zipWarningCallback);s.on("finish",zipFinishCallback);s.on("end",zipEndCallback);for(const n of r){if(n.sourcePath!==null){let r=n.sourcePath;if(n.stats.isSymbolicLink()){r=yield(0,oA.realpath)(n.sourcePath)}s.file(r,{name:n.destinationPath})}else{s.append("",{name:n.destinationPath})}}const a=getUploadChunkSize();const l=new WaterMarkedUploadStream(a);u.Yz(`Zip write high watermark value ${l.writableHighWaterMark}`);u.Yz(`Zip read high watermark value ${l.readableHighWaterMark}`);s.pipe(l);s.finalize();return l}))}const zipErrorCallback=r=>{u.z3("An error has occurred while creating the zip file for upload");u.pq(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){u.$e("ENOENT warning during artifact zip creation. No such file or directory");u.pq(r)}else{u.$e(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);u.pq(r)}};const zipFinishCallback=()=>{u.Yz("Zip stream for upload has finished.")};const zipEndCallback=()=>{u.Yz("Zip stream for upload has ended.")};const dA={".txt":"text/plain",".html":"text/html",".htm":"text/html",".css":"text/css",".csv":"text/csv",".xml":"text/xml",".md":"text/markdown",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".tiff":"image/tiff",".tif":"image/tiff",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".rar":"application/vnd.rar",".7z":"application/x-7z-compressed",".wasm":"application/wasm",".yaml":"application/x-yaml",".yml":"application/x-yaml",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};function getMimeType(r){const n=p.extname(r).toLowerCase();return dA[n]||"application/octet-stream"}var AA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function uploadArtifact(r,n,s,a){return AA(this,void 0,void 0,(function*(){let l=`${r}.zip`;if(a===null||a===void 0?void 0:a.skipArchive){if(n.length===0){throw new FilesNotFoundError([])}if(n.length>1){throw new Error("skipArchive option is only supported when uploading a single file")}if(!A.existsSync(n[0])){throw new FilesNotFoundError(n)}l=p.basename(n[0]);r=l}validateArtifactName(r);validateRootDirectory(s);let d=[];if(!(a===null||a===void 0?void 0:a.skipArchive)){d=getUploadZipSpecification(n,s);if(d.length===0){throw new FilesNotFoundError(d.flatMap((r=>r.sourcePath?[r.sourcePath]:[])))}}const f=getMimeType(l);const g=getBackendIdsFromToken();const y=internalArtifactTwirpClient();const b={workflowRunBackendId:g.workflowRunBackendId,workflowJobRunBackendId:g.workflowJobRunBackendId,name:r,mimeType:Q.create({value:f}),version:7};const C=getExpiration(a===null||a===void 0?void 0:a.retentionDays);if(C){b.expiresAt=C}const w=yield y.CreateArtifact(b);if(!w.ok){throw new InvalidResponseError("CreateArtifact: response from backend was not ok")}let B;if(a===null||a===void 0?void 0:a.skipArchive){B=yield createRawFileUploadStream(n[0])}else{B=yield createZipUploadStream(d,a===null||a===void 0?void 0:a.compressionLevel)}u.pq(`Uploading artifact: ${l}`);const I=yield uploadToBlobStorage(w.signedUploadUrl,B,f);const S={workflowRunBackendId:g.workflowRunBackendId,workflowJobRunBackendId:g.workflowJobRunBackendId,name:r,size:I.uploadSize?I.uploadSize.toString():"0"};if(I.sha256Hash){S.hash=Q.create({value:`sha256:${I.sha256Hash}`})}u.pq(`Finalizing artifact upload`);const v=yield y.FinalizeArtifact(S);if(!v.ok){throw new InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const R=BigInt(v.artifactId);u.pq(`Artifact ${r} successfully finalized. Artifact ID ${R}`);return{size:I.uploadSize,digest:I.sha256Hash,id:Number(R)}}))}var pA=s(17216);var fA=s(34340);var hA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const scrubQueryParameters=r=>{const n=new URL(r);n.search="";return n.toString()};function exists(r){return hA(this,void 0,void 0,(function*(){try{yield oA.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,n,s){return hA(this,void 0,void 0,(function*(){let a=0;while(a<5){try{return yield streamExtractExternal(r,n,{skipDecompress:s})}catch(r){a++;u.Yz(`Failed to download artifact after ${a} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${a} retries.`)}))}function streamExtractExternal(r,n){return hA(this,arguments,void 0,(function*(r,n,s={}){const{timeout:a=30*1e3,skipDecompress:l=false}=s;const d=new z.Qq(getUserAgentString());const f=yield d.get(r);if(f.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${f.message.statusCode} ${f.message.statusMessage}`)}const g=f.message.headers["content-type"]||"";const y=g.split(";",1)[0].trim().toLowerCase();const b=new URL(r).pathname.toLowerCase();const C=b.endsWith(".zip");const w=y==="application/zip"||y==="application/x-zip-compressed"||y==="application/zip-compressed"||C;const B=f.message.headers["content-disposition"]||"";let I="artifact";const S=B.match(/filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?/i);if(S&&S[1]){I=p.basename(decodeURIComponent(S[1].trim()))}u.Yz(`Content-Type: ${g}, mimeType: ${y}, urlEndsWithZip: ${C}, isZip: ${w}, skipDecompress: ${l}`);u.Yz(`Content-Disposition: ${B}, fileName: ${I}`);let Q=undefined;return new Promise(((r,s)=>{const timerFn=()=>{const r=new Error(`Blob storage chunk did not respond in ${a}ms`);f.message.destroy(r);s(r)};const d=setTimeout(timerFn,a);const onError=r=>{u.Yz(`response.message: Artifact download failed: ${r.message}`);clearTimeout(d);s(r)};const g=sA.createHash("sha256").setEncoding("hex");const y=(new Ke.PassThrough).on("data",(()=>{d.refresh()})).on("error",onError);f.message.pipe(y);y.pipe(g);const onClose=()=>{clearTimeout(d);if(g){g.end();Q=g.read();u.pq(`SHA256 digest of downloaded artifact is ${Q}`)}r({sha256Digest:`sha256:${Q}`})};if(w&&!l){y.pipe(fA.Extract({path:n})).on("close",onClose).on("error",onError)}else{const r=p.join(n,I);const s=A.createWriteStream(r);u.pq(`Downloading raw file (non-zip) to: ${r}`);y.pipe(s).on("close",onClose).on("error",onError)}}))}))}function downloadArtifactPublic(r,n,s,a,l){return hA(this,void 0,void 0,(function*(){const d=yield resolveOrCreateDirectory(l===null||l===void 0?void 0:l.path);const A=pA.Q(a);let p=false;u.pq(`Downloading artifact '${r}' from '${n}/${s}'`);const{headers:f,status:g}=yield A.rest.actions.downloadArtifact({owner:n,repo:s,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(g!==302){throw new Error(`Unable to download artifact. Unexpected status: ${g}`)}const{location:y}=f;if(!y){throw new Error(`Unable to redirect to artifact download url`)}u.pq(`Redirecting to blob download url: ${scrubQueryParameters(y)}`);try{u.pq(`Starting download of artifact to: ${d}`);const r=yield streamExtract(y,d,l===null||l===void 0?void 0:l.skipDecompress);u.pq(`Artifact download completed successfully.`);if(l===null||l===void 0?void 0:l.expectedHash){if((l===null||l===void 0?void 0:l.expectedHash)!==r.sha256Digest){p=true;u.Yz(`Computed digest: ${r.sha256Digest}`);u.Yz(`Expected digest: ${l.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:d,digestMismatch:p}}))}function downloadArtifactInternal(r,n){return hA(this,void 0,void 0,(function*(){const s=yield resolveOrCreateDirectory(n===null||n===void 0?void 0:n.path);const a=internalArtifactTwirpClient();let l=false;const{workflowRunBackendId:d,workflowJobRunBackendId:A}=getBackendIdsFromToken();const p={workflowRunBackendId:d,workflowJobRunBackendId:A,idFilter:C.create({value:r.toString()})};const{artifacts:f}=yield a.ListArtifacts(p);if(f.length===0){throw new ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(f.length>1){u.$e("Multiple artifacts found, defaulting to first.")}const g={workflowRunBackendId:f[0].workflowRunBackendId,workflowJobRunBackendId:f[0].workflowJobRunBackendId,name:f[0].name};const{signedUrl:y}=yield a.GetSignedArtifactURL(g);u.pq(`Redirecting to blob download url: ${scrubQueryParameters(y)}`);try{u.pq(`Starting download of artifact to: ${s}`);const r=yield streamExtract(y,s,n===null||n===void 0?void 0:n.skipDecompress);u.pq(`Artifact download completed successfully.`);if(n===null||n===void 0?void 0:n.expectedHash){if((n===null||n===void 0?void 0:n.expectedHash)!==r.sha256Digest){l=true;u.Yz(`Computed digest: ${r.sha256Digest}`);u.Yz(`Expected digest: ${n.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:s,digestMismatch:l}}))}function resolveOrCreateDirectory(){return hA(this,arguments,void 0,(function*(r=getGitHubWorkspaceDir()){if(!(yield exists(r))){u.Yz(`Artifact destination folder does not exist, creating: ${r}`);yield oA.mkdir(r,{recursive:true})}else{u.Yz(`Artifact destination folder already exists: ${r}`)}return r}))}const mA=5;const gA=[400,401,403,404,422];function getRetryOptions(r,n=mA,s=gA){var a;if(n<=0){return[{enabled:false},r.request]}const l={enabled:true};if(s.length>0){l.doNotRetry=s}const d=Object.assign(Object.assign({},r.request),{retries:n});u.Yz(`GitHub client configured with: (retries: ${d.retries}, retry-exempt-status-code: ${(a=l.doNotRetry)!==null&&a!==void 0?a:"octokit default: [400, 401, 403, 404, 422]"})`);return[l,d]}var yA=s(79431);const EA="6.0.0";function requestLog(r){r.hook.wrap("request",((n,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const u=l.url.replace(s.baseUrl,"");return n(s).then((n=>{const s=n.headers["x-github-request-id"];r.log.info(`${l.method} ${u} - ${n.status} with id ${s} in ${Date.now()-a}ms`);return n})).catch((n=>{const s=n.response?.headers["x-github-request-id"]||"UNKNOWN";r.log.error(`${l.method} ${u} - ${n.status} with id ${s} in ${Date.now()-a}ms`);throw n}))}))}requestLog.VERSION=EA;var bA=s(9900);var CA=s(54128);var wA="0.0.0-development";function isRequestError(r){return r.request!==void 0}async function errorRequest(r,n,s,a){if(!isRequestError(s)||!s?.request.request){throw s}if(s.status>=400&&!r.doNotRetry.includes(s.status)){const l=a.request.retries!=null?a.request.retries:r.retries;const u=Math.pow((a.request.retryCount||0)+1,2);throw n.retry.retryRequest(s,l,u)}throw s}async function wrapRequest(r,n,s,a){const l=new bA;l.on("failed",(function(n,s){const l=~~n.request.request?.retries;const u=~~n.request.request?.retryAfter;a.request.retryCount=s.retryCount+1;if(l>s.retryCount){return u*r.retryAfterBaseValue}}));return l.schedule(requestWithGraphqlErrorHandling.bind(null,r,n,s),a)}async function requestWithGraphqlErrorHandling(r,n,s,a){const l=await s(a);if(l.data&&l.data.errors&&l.data.errors.length>0&&/Something went wrong while executing your query/.test(l.data.errors[0].message)){const s=new CA.G(l.data.errors[0].message,500,{request:a,response:l});return errorRequest(r,n,s,a)}return l}function retry(r,n){const s=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},n.retry);const a={retry:{retryRequest:(r,n,s)=>{r.request.request=Object.assign({},r.request.request,{retries:n,retryAfter:s});return r}}};if(s.enabled){r.hook.error("request",errorRequest.bind(null,s,a));r.hook.wrap("request",wrapRequest.bind(null,s,a))}return a}retry.VERSION=wA;var BA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function getArtifactPublic(r,n,s,a,l){return BA(this,void 0,void 0,(function*(){var d;const[A,p]=getRetryOptions(yA.NT);const f={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:A,request:p};const g=(0,pA.Q)(l,f,retry,requestLog);const y=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:s,repo:a,run_id:n,name:r});if(y.status!==200){throw new InvalidResponseError(`Invalid response from GitHub API: ${y.status} (${(d=y===null||y===void 0?void 0:y.headers)===null||d===void 0?void 0:d["x-github-request-id"]})`)}if(y.data.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let b=y.data.artifacts[0];if(y.data.artifacts.length>1){b=y.data.artifacts.sort(((r,n)=>n.id-r.id))[0];u.Yz(`More than one artifact found for a single name, returning newest (id: ${b.id})`)}return{artifact:{name:b.name,id:b.id,size:b.size_in_bytes,createdAt:b.created_at?new Date(b.created_at):undefined,digest:b.digest}}}))}function getArtifactInternal(r){return BA(this,void 0,void 0,(function*(){var n;const s=internalArtifactTwirpClient();const{workflowRunBackendId:a,workflowJobRunBackendId:l}=getBackendIdsFromToken();const d={workflowRunBackendId:a,workflowJobRunBackendId:l,nameFilter:Q.create({value:r})};const A=yield s.ListArtifacts(d);if(A.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let p=A.artifacts[0];if(A.artifacts.length>1){p=A.artifacts.sort(((r,n)=>Number(n.databaseId)-Number(r.databaseId)))[0];u.Yz(`More than one artifact found for a single name, returning newest (id: ${p.databaseId})`)}return{artifact:{name:p.name,id:Number(p.databaseId),size:Number(p.size),createdAt:p.createdAt?g.toDate(p.createdAt):undefined,digest:(n=p.digest)===null||n===void 0?void 0:n.value}}}))}var IA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function deleteArtifactPublic(r,n,s,a,l){return IA(this,void 0,void 0,(function*(){var u;const[d,A]=getRetryOptions(yA.NT);const p={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:d,request:A};const f=(0,pA.Q)(l,p,retry,requestLog);const g=yield getArtifactPublic(r,n,s,a,l);const y=yield f.rest.actions.deleteArtifact({owner:s,repo:a,artifact_id:g.artifact.id});if(y.status!==204){throw new InvalidResponseError(`Invalid response from GitHub API: ${y.status} (${(u=y===null||y===void 0?void 0:y.headers)===null||u===void 0?void 0:u["x-github-request-id"]})`)}return{id:g.artifact.id}}))}function deleteArtifactInternal(r){return IA(this,void 0,void 0,(function*(){const n=internalArtifactTwirpClient();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=getBackendIdsFromToken();const l={workflowRunBackendId:s,workflowJobRunBackendId:a,nameFilter:Q.create({value:r})};const d=yield n.ListArtifacts(l);if(d.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let A=d.artifacts[0];if(d.artifacts.length>1){A=d.artifacts.sort(((r,n)=>Number(n.databaseId)-Number(r.databaseId)))[0];(0,u.Yz)(`More than one artifact found for a single name, returning newest (id: ${A.databaseId})`)}const p={workflowRunBackendId:A.workflowRunBackendId,workflowJobRunBackendId:A.workflowJobRunBackendId,name:A.name};const f=yield n.DeleteArtifact(p);(0,u.pq)(`Artifact '${r}' (ID: ${f.artifactId}) deleted`);return{id:Number(f.artifactId)}}))}var SA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const QA=getMaxArtifactListCount();const vA=100;const RA=Math.ceil(QA/vA);function listArtifactsPublic(r,n,s,a){return SA(this,arguments,void 0,(function*(r,n,s,a,l=false){(0,u.pq)(`Fetching artifact list for workflow run ${r} in repository ${n}/${s}`);let d=[];const[A,p]=getRetryOptions(yA.NT);const f={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:A,request:p};const g=(0,pA.Q)(a,f,retry,requestLog);let y=1;const{data:b}=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:s,run_id:r,per_page:vA,page:y});let C=Math.ceil(b.total_count/vA);const w=b.total_count;if(w>QA){(0,u.$e)(`Workflow run ${r} has ${w} artifacts, exceeding the limit of ${QA}. Results will be incomplete as only the first ${QA} artifacts will be returned`);C=RA}for(const r of b.artifacts){d.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined,digest:r.digest})}y++;for(y;y<=C;y++){(0,u.Yz)(`Fetching page ${y} of artifact list`);const{data:a}=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:s,run_id:r,per_page:vA,page:y});for(const r of a.artifacts){d.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined,digest:r.digest})}}if(l){d=filterLatest(d)}(0,u.pq)(`Found ${d.length} artifact(s)`);return{artifacts:d}}))}function listArtifactsInternal(){return SA(this,arguments,void 0,(function*(r=false){const n=internalArtifactTwirpClient();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=getBackendIdsFromToken();const l={workflowRunBackendId:s,workflowJobRunBackendId:a};const d=yield n.ListArtifacts(l);let A=d.artifacts.map((r=>{var n;return{name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?g.toDate(r.createdAt):undefined,digest:(n=r.digest)===null||n===void 0?void 0:n.value}}));if(r){A=filterLatest(A)}(0,u.pq)(`Found ${A.length} artifact(s)`);return{artifacts:A}}))}function filterLatest(r){r.sort(((r,n)=>n.id-r.id));const n=[];const s=new Set;for(const a of r){if(!s.has(a.name)){n.push(a);s.add(a.name)}}return n}var DA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var NA=undefined&&undefined.__rest||function(r,n){var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.indexOf(a)<0)s[a]=r[a];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,a=Object.getOwnPropertySymbols(r);lxA.uploadArtifact(r,s,(0,l.dirname)(n.path),{compressionLevel:n.ext===".app"?6:0})),_A.z);console.log("Workflow artifacts uploads DONE!")}}}},82236:(r,n,s)=>{s.d(n,{Dg:()=>createArtifact,Rx:()=>deleteGiteaReleaseAsset,NK:()=>execCommand,wm:()=>getAssetName,Vp:()=>getInfo,d:()=>getTargetDir,sg:()=>getTargetInfo,Lw:()=>getWorkspaceDir,br:()=>ghAssetName,ws:()=>hasDependency,dk:()=>hasTauriScript,L5:()=>retry,Ui:()=>usesBun,_$:()=>usesNpm,me:()=>usesPnpm,z8:()=>usesYarn});var a=s(73024);var l=s(76760);var u=s.n(l);function isPlainObject(r){if(typeof r!=="object"||r===null){return false}const n=Object.getPrototypeOf(r);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}var d=s(73136);const safeNormalizeFileUrl=(r,n)=>{const s=normalizeFileUrl(normalizeDenoExecPath(r));if(typeof s!=="string"){throw new TypeError(`${n} must be a string or a file URL: ${s}.`)}return s};const normalizeDenoExecPath=r=>isDenoExecPath(r)?r.toString():r;const isDenoExecPath=r=>typeof r!=="string"&&r&&Object.getPrototypeOf(r)===String.prototype;const normalizeFileUrl=r=>r instanceof URL?(0,d.fileURLToPath)(r):r;const normalizeParameters=(r,n=[],s={})=>{const a=safeNormalizeFileUrl(r,"First argument");const[l,u]=isPlainObject(n)?[[],n]:[n,s];if(!Array.isArray(l)){throw new TypeError(`Second argument must be either an array of arguments or an options object: ${l}`)}if(l.some((r=>typeof r==="object"&&r!==null))){throw new TypeError(`Second argument must be an array of strings: ${l}`)}const d=l.map(String);const A=d.find((r=>r.includes("\0")));if(A!==undefined){throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${A}`)}if(!isPlainObject(u)){throw new TypeError(`Last argument must be an options object: ${u}`)}return[a,d,u]};var A=s(31421);var p=s(46193);const{toString:f}=Object.prototype;const isArrayBuffer=r=>f.call(r)==="[object ArrayBuffer]";const isUint8Array=r=>f.call(r)==="[object Uint8Array]";const bufferToUint8Array=r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength);const g=new TextEncoder;const stringToUint8Array=r=>g.encode(r);const y=new TextDecoder;const uint8ArrayToString=r=>y.decode(r);const joinToString=(r,n)=>{const s=uint8ArraysToStrings(r,n);return s.join("")};const uint8ArraysToStrings=(r,n)=>{if(n==="utf8"&&r.every((r=>typeof r==="string"))){return r}const s=new p.StringDecoder(n);const a=r.map((r=>typeof r==="string"?stringToUint8Array(r):r)).map((r=>s.write(r)));const l=s.end();return l===""?a:[...a,l]};const joinToUint8Array=r=>{if(r.length===1&&isUint8Array(r[0])){return r[0]}return concatUint8Arrays(stringsToUint8Arrays(r))};const stringsToUint8Arrays=r=>r.map((r=>typeof r==="string"?stringToUint8Array(r):r));const concatUint8Arrays=r=>{const n=new Uint8Array(getJoinLength(r));let s=0;for(const a of r){n.set(a,s);s+=a.length}return n};const getJoinLength=r=>{let n=0;for(const s of r){n+=s.length}return n};const isTemplateString=r=>Array.isArray(r)&&Array.isArray(r.raw);const parseTemplates=(r,n)=>{let s=[];for(const[a,l]of r.entries()){s=parseTemplate({templates:r,expressions:n,tokens:s,index:a,template:l})}if(s.length===0){throw new TypeError("Template script must not be empty")}const[a,...l]=s;return[a,l,{}]};const parseTemplate=({templates:r,expressions:n,tokens:s,index:a,template:l})=>{if(l===undefined){throw new TypeError(`Invalid backslash sequence: ${r.raw[a]}`)}const{nextTokens:u,leadingWhitespaces:d,trailingWhitespaces:A}=splitByWhitespaces(l,r.raw[a]);const p=concatTokens(s,u,d);if(a===n.length){return p}const f=n[a];const g=Array.isArray(f)?f.map((r=>parseExpression(r))):[parseExpression(f)];return concatTokens(p,g,A)};const splitByWhitespaces=(r,n)=>{if(n.length===0){return{nextTokens:[],leadingWhitespaces:false,trailingWhitespaces:false}}const s=[];let a=0;const l=b.has(n[0]);for(let l=0,u=0;ls||r.length===0||n.length===0?[...r,...n]:[...r.slice(0,-1),`${r.at(-1)}${n[0]}`,...n.slice(1)];const parseExpression=r=>{const n=typeof r;if(n==="string"){return r}if(n==="number"){return String(r)}if(isPlainObject(r)&&("stdout"in r||"isMaxBuffer"in r)){return getSubprocessResult(r)}if(r instanceof A.ChildProcess||Object.prototype.toString.call(r)==="[object Promise]"){throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.")}throw new TypeError(`Unexpected "${n}" in template expression`)};const getSubprocessResult=({stdout:r})=>{if(typeof r==="string"){return r}if(isUint8Array(r)){return uint8ArrayToString(r)}if(r===undefined){throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.')}throw new TypeError(`Unexpected "${typeof r}" stdout in template expression`)};var w=s(57975);var B=s(1708);const isStandardStream=r=>I.includes(r);const I=[B.stdin,B.stdout,B.stderr];const S=["stdin","stdout","stderr"];const getStreamName=r=>S[r]??`stdio[${r}]`;const normalizeFdSpecificOptions=r=>{const n={...r};for(const s of D){n[s]=normalizeFdSpecificOption(r,s)}return n};const normalizeFdSpecificOption=(r,n)=>{const s=Array.from({length:getStdioLength(r)+1});const a=normalizeFdSpecificValue(r[n],s,n);return addDefaultValue(a,n)};const getStdioLength=({stdio:r})=>Array.isArray(r)?Math.max(r.length,S.length):S.length;const normalizeFdSpecificValue=(r,n,s)=>isPlainObject(r)?normalizeOptionObject(r,n,s):n.fill(r);const normalizeOptionObject=(r,n,s)=>{for(const a of Object.keys(r).sort(compareFdName)){for(const l of parseFdName(a,s,n)){n[l]=r[a]}}return n};const compareFdName=(r,n)=>getFdNameOrder(r){if(r==="stdout"||r==="stderr"){return 0}return r==="all"?2:1};const parseFdName=(r,n,s)=>{if(r==="ipc"){return[s.length-1]}const a=parseFd(r);if(a===undefined||a===0){throw new TypeError(`"${n}.${r}" is invalid.\nIt must be "${n}.stdout", "${n}.stderr", "${n}.all", "${n}.ipc", or "${n}.fd3", "${n}.fd4" (and so on).`)}if(a>=s.length){throw new TypeError(`"${n}.${r}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}return a==="all"?[1,2]:[a]};const parseFd=r=>{if(r==="all"){return r}if(S.includes(r)){return S.indexOf(r)}const n=Q.exec(r);if(n!==null){return Number(n[1])}};const Q=/^fd(\d+)$/;const addDefaultValue=(r,n)=>r.map((r=>r===undefined?R[n]:r));const v=(0,w.debuglog)("execa").enabled?"full":"none";const R={lines:false,buffer:true,maxBuffer:1e3*1e3*100,verbose:v,stripFinalNewline:true};const D=["lines","buffer","maxBuffer","verbose","stripFinalNewline"];const getFdSpecificValue=(r,n)=>n==="ipc"?r.at(-1):r[n];const isVerbose=({verbose:r},n)=>getFdVerbose(r,n)!=="none";const isFullVerbose=({verbose:r},n)=>!["none","short"].includes(getFdVerbose(r,n));const getVerboseFunction=({verbose:r},n)=>{const s=getFdVerbose(r,n);return isVerboseFunction(s)?s:undefined};const getFdVerbose=(r,n)=>n===undefined?getFdGenericVerbose(r):getFdSpecificValue(r,n);const getFdGenericVerbose=r=>r.find((r=>isVerboseFunction(r)))??N.findLast((n=>r.includes(n)));const isVerboseFunction=r=>typeof r==="function";const N=["none","short","full"];const joinCommand=(r,n)=>{const s=[r,...n];const a=s.join(" ");const l=s.map((r=>quoteString(escapeControlCharacters(r)))).join(" ");return{command:a,escapedCommand:l}};const escapeLines=r=>(0,w.stripVTControlCharacters)(r).split("\n").map((r=>escapeControlCharacters(r))).join("\n");const escapeControlCharacters=r=>r.replaceAll(T,(r=>escapeControlCharacter(r)));const escapeControlCharacter=r=>{const n=x[r];if(n!==undefined){return n}const s=r.codePointAt(0);const a=s.toString(16);return s<=k?`\\u${a.padStart(4,"0")}`:`\\U${a}`};const getSpecialCharRegExp=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}};const T=getSpecialCharRegExp();const x={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const k=65535;const quoteString=r=>{if(_.test(r)){return r}return B.platform==="win32"?`"${r.replaceAll('"','""')}"`:`'${r.replaceAll("'","'\\''")}'`};const _=/^[\w./-]+$/;function isUnicodeSupported(){const{env:r}=B;const{TERM:n,TERM_PROGRAM:s}=r;if(B.platform!=="win32"){return n!=="linux"}return Boolean(r.WT_SESSION)||Boolean(r.TERMINUS_SUBLIME)||r.ConEmuTask==="{cmd::Cmder}"||s==="Terminus-Sublime"||s==="vscode"||n==="xterm-256color"||n==="alacritty"||n==="rxvt-unicode"||n==="rxvt-unicode-256color"||r.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const P={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"};const F={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"};const L={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};const O={...P,...F};const M={...P,...L};const U=isUnicodeSupported();const H=U?O:M;const G=H;const z=Object.entries(F);const replaceSymbols=(r,{useFallback:n=!U}={})=>{if(n){for(const[n,s]of z){r=r.replaceAll(s,M[n])}}return r};const q=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty");const V=q?.WriteStream?.prototype?.hasColors?.()??false;const format=(r,n)=>{if(!V){return r=>r}const s=`[${r}m`;const a=`[${n}m`;return r=>{const l=r+"";let u=l.indexOf(a);if(u===-1){return s+l+a}let d=s;let A=0;const p=n===22;const f=(p?a:"")+s;while(u!==-1){d+=l.slice(A,u)+f;A=u+a.length;u=l.indexOf(a,A)}d+=l.slice(A)+a;return d}};const W=format(0,0);const j=format(1,22);const Y=format(2,22);const J=format(3,23);const $=format(4,24);const K=format(53,55);const X=format(7,27);const Z=format(8,28);const ee=format(9,29);const te=format(30,39);const re=format(31,39);const ne=format(32,39);const se=format(33,39);const ie=format(34,39);const oe=format(35,39);const ae=format(36,39);const le=format(37,39);const ce=format(90,39);const ue=format(40,49);const de=format(41,49);const Ae=format(42,49);const pe=format(43,49);const fe=format(44,49);const he=format(45,49);const me=format(46,49);const ge=format(47,49);const ye=format(100,49);const Ee=format(91,39);const be=format(92,39);const Ce=format(93,39);const we=format(94,39);const Be=format(95,39);const Ie=format(96,39);const Se=format(97,39);const Qe=format(101,49);const ve=format(102,49);const Re=format(103,49);const De=format(104,49);const Ne=format(105,49);const Te=format(106,49);const xe=format(107,49);const defaultVerboseFunction=({type:r,message:n,timestamp:s,piped:a,commandId:l,result:{failed:u=false}={},options:{reject:d=true}})=>{const A=serializeTimestamp(s);const p=ke[r]({failed:u,reject:d,piped:a});const f=_e[r]({reject:d});return`${ce(`[${A}]`)} ${ce(`[${l}]`)} ${f(p)} ${f(n)}`};const serializeTimestamp=r=>`${padField(r.getHours(),2)}:${padField(r.getMinutes(),2)}:${padField(r.getSeconds(),2)}.${padField(r.getMilliseconds(),3)}`;const padField=(r,n)=>String(r).padStart(n,"0");const getFinalIcon=({failed:r,reject:n})=>{if(!r){return G.tick}return n?G.cross:G.warning};const ke={command:({piped:r})=>r?"|":"$",output:()=>" ",ipc:()=>"*",error:getFinalIcon,duration:getFinalIcon};const identity=r=>r;const _e={command:()=>j,output:()=>identity,ipc:()=>identity,error:({reject:r})=>r?Ee:Ce,duration:()=>ce};const applyVerboseOnLines=(r,n,s)=>{const a=getVerboseFunction(n,s);return r.map((({verboseLine:r,verboseObject:n})=>applyVerboseFunction(r,n,a))).filter((r=>r!==undefined)).map((r=>appendNewline(r))).join("")};const applyVerboseFunction=(r,n,s)=>{if(s===undefined){return r}const a=s(r,n);if(typeof a==="string"){return a}};const appendNewline=r=>r.endsWith("\n")?r:`${r}\n`;const verboseLog=({type:r,verboseMessage:n,fdNumber:s,verboseInfo:a,result:l})=>{const u=getVerboseObject({type:r,result:l,verboseInfo:a});const d=getPrintedLines(n,u);const A=applyVerboseOnLines(d,a,s);if(A!==""){console.warn(A.slice(0,-1))}};const getVerboseObject=({type:r,result:n,verboseInfo:{escapedCommand:s,commandId:a,rawOptions:{piped:l=false,...u}}})=>({type:r,escapedCommand:s,commandId:`${a}`,timestamp:new Date,piped:l,result:n,options:u});const getPrintedLines=(r,n)=>r.split("\n").map((r=>getPrintedLine({...n,message:r})));const getPrintedLine=r=>{const n=defaultVerboseFunction(r);return{verboseLine:n,verboseObject:r}};const serializeVerboseMessage=r=>{const n=typeof r==="string"?r:(0,w.inspect)(r);const s=escapeLines(n);return s.replaceAll("\t"," ".repeat(Pe))};const Pe=2;const logCommand=(r,n)=>{if(!isVerbose(n)){return}verboseLog({type:"command",verboseMessage:r,verboseInfo:n})};const getVerboseInfo=(r,n,s)=>{validateVerbose(r);const a=getCommandId(r);return{verbose:r,escapedCommand:n,commandId:a,rawOptions:s}};const getCommandId=r=>isVerbose({verbose:r})?Fe++:undefined;let Fe=0n;const validateVerbose=r=>{for(const n of r){if(n===false){throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".')}if(n===true){throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".')}if(!N.includes(n)&&!isVerboseFunction(n)){const r=N.map((r=>`'${r}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${n}. Allowed values are: ${r} or a function.`)}}};const getStartTime=()=>B.hrtime.bigint();const getDurationMs=r=>Number(B.hrtime.bigint()-r)/1e6;const handleCommand=(r,n,s)=>{const a=getStartTime();const{command:l,escapedCommand:u}=joinCommand(r,n);const d=normalizeFdSpecificOption(s,"verbose");const A=getVerboseInfo(d,u,{...s});logCommand(u,A);return{command:l,escapedCommand:u,startTime:a,verboseInfo:A}};var Le=s(76186);function pathKey(r={}){const{env:n=process.env,platform:s=process.platform}=r;if(s!=="win32"){return"PATH"}return Object.keys(n).reverse().find((r=>r.toUpperCase()==="PATH"))||"Path"}const Oe=(0,w.promisify)(A.execFile);function toPath(r){return r instanceof URL?(0,d.fileURLToPath)(r):r}function rootDirectory(r){return path.parse(toPath(r)).root}function traversePathUp(r){return{*[Symbol.iterator](){let n=l.resolve(toPath(r));let s;while(s!==n){yield n;s=n;n=l.resolve(n,"..")}}}}const Me=null&&10*1024*1024;async function execFile(r,n,s={}){return Oe(r,n,{maxBuffer:Me,...s})}function execFileSync(r,n=[],s={}){return execFileSyncOriginal(r,n,{maxBuffer:Me,encoding:"utf8",stdio:"pipe",...s})}const npmRunPath=({cwd:r=B.cwd(),path:n=B.env[pathKey()],preferLocal:s=true,execPath:a=B.execPath,addExecPath:u=true}={})=>{const d=l.resolve(toPath(r));const A=[];const p=n.split(l.delimiter);if(s){applyPreferLocal(A,p,d)}if(u){applyExecPath(A,p,a,d)}return n===""||n===l.delimiter?`${A.join(l.delimiter)}${n}`:[...A,n].join(l.delimiter)};const applyPreferLocal=(r,n,s)=>{for(const a of traversePathUp(s)){const s=l.join(a,"node_modules/.bin");if(!n.includes(s)){r.push(s)}}};const applyExecPath=(r,n,s,a)=>{const u=l.resolve(a,toPath(s),"..");if(!n.includes(u)){r.push(u)}};const npmRunPathEnv=({env:r=B.env,...n}={})=>{r={...r};const s=pathKey({env:r});n.path=r[s];r[s]=npmRunPath(n);return r};const Ue=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises");const getFinalError=(r,n,s)=>{const a=s?ExecaSyncError:ExecaError;const l=r instanceof DiscardedError?{}:{cause:r};return new a(n,l)};class DiscardedError extends Error{}const setErrorName=(r,n)=>{Object.defineProperty(r.prototype,"name",{value:n,writable:true,enumerable:false,configurable:true});Object.defineProperty(r.prototype,He,{value:true,writable:false,enumerable:false,configurable:false})};const isExecaError=r=>isErrorInstance(r)&&He in r;const He=Symbol("isExecaError");const isErrorInstance=r=>Object.prototype.toString.call(r)==="[object Error]";class ExecaError extends Error{}setErrorName(ExecaError,ExecaError.name);class ExecaSyncError extends Error{}setErrorName(ExecaSyncError,ExecaSyncError.name);var Ge=s(48161);const getRealtimeSignals=()=>{const r=qe-ze+1;return Array.from({length:r},getRealtimeSignal)};const getRealtimeSignal=(r,n)=>({name:`SIGRT${n+1}`,number:ze+n,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"});const ze=34;const qe=64;const Ve=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];const getSignals=()=>{const r=getRealtimeSignals();const n=[...Ve,...r].map(normalizeSignal);return n};const normalizeSignal=({name:r,number:n,description:s,action:a,forced:l=false,standard:u})=>{const{signals:{[r]:d}}=Ge.constants;const A=d!==undefined;const p=A?d:n;return{name:r,number:p,description:s,supported:A,action:a,forced:l,standard:u}};const getSignalsByName=()=>{const r=getSignals();return Object.fromEntries(r.map(getSignalByName))};const getSignalByName=({name:r,number:n,description:s,supported:a,action:l,forced:u,standard:d})=>[r,{name:r,number:n,description:s,supported:a,action:l,forced:u,standard:d}];const We=getSignalsByName();const getSignalsByNumber=()=>{const r=getSignals();const n=qe+1;const s=Array.from({length:n},((n,s)=>getSignalByNumber(s,r)));return Object.assign({},...s)};const getSignalByNumber=(r,n)=>{const s=findSignalByNumber(r,n);if(s===undefined){return{}}const{name:a,description:l,supported:u,action:d,forced:A,standard:p}=s;return{[r]:{name:a,number:r,description:l,supported:u,action:d,forced:A,standard:p}}};const findSignalByNumber=(r,n)=>{const s=n.find((({name:n})=>Ge.constants.signals[n]===r));if(s!==undefined){return s}return n.find((n=>n.number===r))};const je=getSignalsByNumber();const normalizeKillSignal=r=>{const n="option `killSignal`";if(r===0){throw new TypeError(`Invalid ${n}: 0 cannot be used.`)}return signal_normalizeSignal(r,n)};const normalizeSignalArgument=r=>r===0?r:signal_normalizeSignal(r,"`subprocess.kill()`'s argument");const signal_normalizeSignal=(r,n)=>{if(Number.isInteger(r)){return normalizeSignalInteger(r,n)}if(typeof r==="string"){return normalizeSignalName(r,n)}throw new TypeError(`Invalid ${n} ${String(r)}: it must be a string or an integer.\n${getAvailableSignals()}`)};const normalizeSignalInteger=(r,n)=>{if(Ye.has(r)){return Ye.get(r)}throw new TypeError(`Invalid ${n} ${r}: this signal integer does not exist.\n${getAvailableSignals()}`)};const getSignalsIntegerToName=()=>new Map(Object.entries(Ge.constants.signals).reverse().map((([r,n])=>[n,r])));const Ye=getSignalsIntegerToName();const normalizeSignalName=(r,n)=>{if(r in Ge.constants.signals){return r}if(r.toUpperCase()in Ge.constants.signals){throw new TypeError(`Invalid ${n} '${r}': please rename it to '${r.toUpperCase()}'.`)}throw new TypeError(`Invalid ${n} '${r}': this signal name does not exist.\n${getAvailableSignals()}`)};const getAvailableSignals=()=>`Available signal names: ${getAvailableSignalNames()}.\nAvailable signal numbers: ${getAvailableSignalIntegers()}.`;const getAvailableSignalNames=()=>Object.keys(Ge.constants.signals).sort().map((r=>`'${r}'`)).join(", ");const getAvailableSignalIntegers=()=>[...new Set(Object.values(Ge.constants.signals).sort(((r,n)=>r-n)))].join(", ");const getSignalDescription=r=>We[r].description;const normalizeForceKillAfterDelay=r=>{if(r===false){return r}if(r===true){return Je}if(!Number.isFinite(r)||r<0){throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)}return r};const Je=1e3*5;const subprocessKill=({kill:r,options:{forceKillAfterDelay:n,killSignal:s},onInternalError:a,context:l,controller:u},d,A)=>{const{signal:p,error:f}=parseKillArguments(d,A,s);emitKillError(f,a);const g=r(p);setKillTimeout({kill:r,signal:p,forceKillAfterDelay:n,killSignal:s,killResult:g,context:l,controller:u});return g};const parseKillArguments=(r,n,s)=>{const[a=s,l]=isErrorInstance(r)?[undefined,r]:[r,n];if(typeof a!=="string"&&!Number.isInteger(a)){throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(a)}`)}if(l!==undefined&&!isErrorInstance(l)){throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${l}`)}return{signal:normalizeSignalArgument(a),error:l}};const emitKillError=(r,n)=>{if(r!==undefined){n.reject(r)}};const setKillTimeout=async({kill:r,signal:n,forceKillAfterDelay:s,killSignal:a,killResult:l,context:u,controller:d})=>{if(n===a&&l){killOnTimeout({kill:r,forceKillAfterDelay:s,context:u,controllerSignal:d.signal})}};const killOnTimeout=async({kill:r,forceKillAfterDelay:n,context:s,controllerSignal:a})=>{if(n===false){return}try{await(0,Ue.setTimeout)(n,undefined,{signal:a});if(r("SIGKILL")){s.isForcefullyTerminated??=true}}catch{}};var $e=s(78474);const onAbortedSignal=async(r,n)=>{if(!r.aborted){await(0,$e.once)(r,"abort",{signal:n})}};const validateCancelSignal=({cancelSignal:r})=>{if(r!==undefined&&Object.prototype.toString.call(r)!=="[object AbortSignal]"){throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(r)}`)}};const throwOnCancel=({subprocess:r,cancelSignal:n,gracefulCancel:s,context:a,controller:l})=>n===undefined||s?[]:[terminateOnCancel(r,n,a,l)];const terminateOnCancel=async(r,n,s,{signal:a})=>{await onAbortedSignal(n,a);s.terminationReason??="cancel";r.kill();throw n.reason};const validateIpcMethod=({methodName:r,isSubprocess:n,ipc:s,isConnected:a})=>{validateIpcOption(r,n,s);validateConnection(r,n,a)};const validateIpcOption=(r,n,s)=>{if(!s){throw new Error(`${getMethodName(r,n)} can only be used if the \`ipc\` option is \`true\`.`)}};const validateConnection=(r,n,s)=>{if(!s){throw new Error(`${getMethodName(r,n)} cannot be used: the ${getOtherProcessName(n)} has already exited or disconnected.`)}};const throwOnEarlyDisconnect=r=>{throw new Error(`${getMethodName("getOneMessage",r)} could not complete: the ${getOtherProcessName(r)} exited or disconnected.`)};const throwOnStrictDeadlockError=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${getMethodName("getOneMessage",r)},\n\t${getMethodName("sendMessage",r,"message, {strict: true}")},\n]);`)};const getStrictResponseError=(r,n)=>new Error(`${getMethodName("sendMessage",n)} failed when sending an acknowledgment response to the ${getOtherProcessName(n)}.`,{cause:r});const throwOnMissingStrict=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} is not listening to incoming messages.`)};const throwOnStrictDisconnect=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} exited without listening to incoming messages.`)};const getAbortDisconnectError=()=>new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);const throwOnMissingParent=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")};const handleEpipeError=({error:r,methodName:n,isSubprocess:s})=>{if(r.code==="EPIPE"){throw new Error(`${getMethodName(n,s)} cannot be used: the ${getOtherProcessName(s)} is disconnecting.`,{cause:r})}};const handleSerializationError=({error:r,methodName:n,isSubprocess:s,message:a})=>{if(isSerializationError(r)){throw new Error(`${getMethodName(n,s)}'s argument type is invalid: the message cannot be serialized: ${String(a)}.`,{cause:r})}};const isSerializationError=({code:r,message:n})=>Ke.has(r)||Xe.some((r=>n.includes(r)));const Ke=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]);const Xe=["could not be cloned","circular structure","call stack size exceeded"];const getMethodName=(r,n,s="")=>r==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${getNamespaceName(n)}${r}(${s})`;const getNamespaceName=r=>r?"":"subprocess.";const getOtherProcessName=r=>r?"parent process":"subprocess";const disconnect=r=>{if(r.connected){r.disconnect()}};const createDeferred=()=>{const r={};const n=new Promise(((n,s)=>{Object.assign(r,{resolve:n,reject:s})}));return Object.assign(n,r)};const getToStream=(r,n="stdin")=>{const s=true;const{options:a,fileDescriptors:l}=Ze.get(r);const u=getFdNumber(l,n,s);const d=r.stdio[u];if(d===null){throw new TypeError(getInvalidStdioOptionMessage(u,n,a,s))}return d};const getFromStream=(r,n="stdout")=>{const s=false;const{options:a,fileDescriptors:l}=Ze.get(r);const u=getFdNumber(l,n,s);const d=u==="all"?r.all:r.stdio[u];if(d===null||d===undefined){throw new TypeError(getInvalidStdioOptionMessage(u,n,a,s))}return d};const Ze=new WeakMap;const getFdNumber=(r,n,s)=>{const a=parseFdNumber(n,s);validateFdNumber(a,n,s,r);return a};const parseFdNumber=(r,n)=>{const s=parseFd(r);if(s!==undefined){return s}const{validOptions:a,defaultValue:l}=n?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${getOptionName(n)}" must not be "${r}".\nIt must be ${a} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${l}".`)};const validateFdNumber=(r,n,s,a)=>{const l=a[getUsedDescriptor(r)];if(l===undefined){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}if(l.direction==="input"&&!s){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. It must be a readable stream, not writable.`)}if(l.direction!=="input"&&s){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. It must be a writable stream, not readable.`)}};const getInvalidStdioOptionMessage=(r,n,s,a)=>{if(r==="all"&&!s.all){return'The "all" option must be true to use "from: \'all\'".'}const{optionName:l,optionValue:u}=getInvalidStdioOption(r,s);return`The "${l}: ${serializeOptionValue(u)}" option is incompatible with using "${getOptionName(a)}: ${serializeOptionValue(n)}".\nPlease set this option with "pipe" instead.`};const getInvalidStdioOption=(r,{stdin:n,stdout:s,stderr:a,stdio:l})=>{const u=getUsedDescriptor(r);if(u===0&&n!==undefined){return{optionName:"stdin",optionValue:n}}if(u===1&&s!==undefined){return{optionName:"stdout",optionValue:s}}if(u===2&&a!==undefined){return{optionName:"stderr",optionValue:a}}return{optionName:`stdio[${u}]`,optionValue:l[u]}};const getUsedDescriptor=r=>r==="all"?1:r;const getOptionName=r=>r?"to":"from";const serializeOptionValue=r=>{if(typeof r==="string"){return`'${r}'`}return typeof r==="number"?`${r}`:"Stream"};const incrementMaxListeners=(r,n,s)=>{const a=r.getMaxListeners();if(a===0||a===Number.POSITIVE_INFINITY){return}r.setMaxListeners(a+n);(0,$e.addAbortListener)(s,(()=>{r.setMaxListeners(r.getMaxListeners()-n)}))};const addReference=(r,n)=>{if(n){addReferenceCount(r)}};const addReferenceCount=r=>{r.refCounted()};const removeReference=(r,n)=>{if(n){removeReferenceCount(r)}};const removeReferenceCount=r=>{r.unrefCounted()};const undoAddedReferences=(r,n)=>{if(n){removeReferenceCount(r);removeReferenceCount(r)}};const redoAddedReferences=(r,n)=>{if(n){addReferenceCount(r);addReferenceCount(r)}};const onMessage=async({anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a},l)=>{if(handleStrictResponse(l)||handleAbort(l)){return}if(!et.has(r)){et.set(r,[])}const u=et.get(r);u.push(l);if(u.length>1){return}while(u.length>0){await waitForOutgoingMessages(r,a,l);await Ue.scheduler.yield();const d=await handleStrictRequest({wrappedMessage:u[0],anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a});u.shift();a.emit("message",d);a.emit("message:done")}};const onDisconnect=async({anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a,boundOnMessage:l})=>{abortOnDisconnect();const u=et.get(r);while(u?.length>0){await(0,$e.once)(a,"message:done")}r.removeListener("message",l);redoAddedReferences(n,s);a.connected=false;a.emit("disconnect")};const et=new WeakMap;const getIpcEmitter=(r,n,s)=>{if(tt.has(r)){return tt.get(r)}const a=new $e.EventEmitter;a.connected=true;tt.set(r,a);forwardEvents({ipcEmitter:a,anyProcess:r,channel:n,isSubprocess:s});return a};const tt=new WeakMap;const forwardEvents=({ipcEmitter:r,anyProcess:n,channel:s,isSubprocess:a})=>{const l=onMessage.bind(undefined,{anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:r});n.on("message",l);n.once("disconnect",onDisconnect.bind(undefined,{anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:r,boundOnMessage:l}));undoAddedReferences(s,a)};const isConnected=r=>{const n=tt.get(r);return n===undefined?r.channel!==null:n.connected};const handleSendStrict=({anyProcess:r,channel:n,isSubprocess:s,message:a,strict:l})=>{if(!l){return a}const u=getIpcEmitter(r,n,s);const d=hasMessageListeners(r,u);return{id:rt++,type:st,message:a,hasListeners:d}};let rt=0n;const validateStrictDeadlock=(r,n)=>{if(n?.type!==st||n.hasListeners){return}for(const{id:n}of r){if(n!==undefined){nt[n].resolve({isDeadlock:true,hasListeners:false})}}};const handleStrictRequest=async({wrappedMessage:r,anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:l})=>{if(r?.type!==st||!n.connected){return r}const{id:u,message:d}=r;const A={id:u,type:it,message:hasMessageListeners(n,l)};try{await sendMessage({anyProcess:n,channel:s,isSubprocess:a,ipc:true},A)}catch(r){l.emit("strict:error",r)}return d};const handleStrictResponse=r=>{if(r?.type!==it){return false}const{id:n,message:s}=r;nt[n]?.resolve({isDeadlock:false,hasListeners:s});return true};const waitForStrictResponse=async(r,n,s)=>{if(r?.type!==st){return}const a=createDeferred();nt[r.id]=a;const l=new AbortController;try{const{isDeadlock:r,hasListeners:u}=await Promise.race([a,throwOnDisconnect(n,s,l)]);if(r){throwOnStrictDeadlockError(s)}if(!u){throwOnMissingStrict(s)}}finally{l.abort();delete nt[r.id]}};const nt={};const throwOnDisconnect=async(r,n,{signal:s})=>{incrementMaxListeners(r,1,s);await(0,$e.once)(r,"disconnect",{signal:s});throwOnStrictDisconnect(n)};const st="execa:ipc:request";const it="execa:ipc:response";const startSendMessage=(r,n,s)=>{if(!ot.has(r)){ot.set(r,new Set)}const a=ot.get(r);const l=createDeferred();const u=s?n.id:undefined;const d={onMessageSent:l,id:u};a.add(d);return{outgoingMessages:a,outgoingMessage:d}};const endSendMessage=({outgoingMessages:r,outgoingMessage:n})=>{r.delete(n);n.onMessageSent.resolve()};const waitForOutgoingMessages=async(r,n,s)=>{while(!hasMessageListeners(r,n)&&ot.get(r)?.size>0){const n=[...ot.get(r)];validateStrictDeadlock(n,s);await Promise.all(n.map((({onMessageSent:r})=>r)))}};const ot=new WeakMap;const hasMessageListeners=(r,n)=>n.listenerCount("message")>getMinListenerCount(r);const getMinListenerCount=r=>Ze.has(r)&&!getFdSpecificValue(Ze.get(r).options.buffer,"ipc")?1:0;const sendMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},l,{strict:u=false}={})=>{const d="sendMessage";validateIpcMethod({methodName:d,isSubprocess:s,ipc:a,isConnected:r.connected});return sendMessageAsync({anyProcess:r,channel:n,methodName:d,isSubprocess:s,message:l,strict:u})};const sendMessageAsync=async({anyProcess:r,channel:n,methodName:s,isSubprocess:a,message:l,strict:u})=>{const d=handleSendStrict({anyProcess:r,channel:n,isSubprocess:a,message:l,strict:u});const A=startSendMessage(r,d,u);try{await sendOneMessage({anyProcess:r,methodName:s,isSubprocess:a,wrappedMessage:d,message:l})}catch(n){disconnect(r);throw n}finally{endSendMessage(A)}};const sendOneMessage=async({anyProcess:r,methodName:n,isSubprocess:s,wrappedMessage:a,message:l})=>{const u=getSendMethod(r);try{await Promise.all([waitForStrictResponse(a,r,s),u(a)])}catch(r){handleEpipeError({error:r,methodName:n,isSubprocess:s});handleSerializationError({error:r,methodName:n,isSubprocess:s,message:l});throw r}};const getSendMethod=r=>{if(at.has(r)){return at.get(r)}const n=(0,w.promisify)(r.send.bind(r));at.set(r,n);return n};const at=new WeakMap;const sendAbort=(r,n)=>{const s="cancelSignal";validateConnection(s,false,r.connected);return sendOneMessage({anyProcess:r,methodName:s,isSubprocess:false,wrappedMessage:{type:ct,message:n},message:n})};const getCancelSignal=async({anyProcess:r,channel:n,isSubprocess:s,ipc:a})=>{await startIpc({anyProcess:r,channel:n,isSubprocess:s,ipc:a});return ut.signal};const startIpc=async({anyProcess:r,channel:n,isSubprocess:s,ipc:a})=>{if(lt){return}lt=true;if(!a){throwOnMissingParent();return}if(n===null){abortOnDisconnect();return}getIpcEmitter(r,n,s);await Ue.scheduler.yield()};let lt=false;const handleAbort=r=>{if(r?.type!==ct){return false}ut.abort(r.message);return true};const ct="execa:ipc:cancel";const abortOnDisconnect=()=>{ut.abort(getAbortDisconnectError())};const ut=new AbortController;const validateGracefulCancel=({gracefulCancel:r,cancelSignal:n,ipc:s,serialization:a})=>{if(!r){return}if(n===undefined){throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.")}if(!s){throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.")}if(a==="json"){throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}};const throwOnGracefulCancel=({subprocess:r,cancelSignal:n,gracefulCancel:s,forceKillAfterDelay:a,context:l,controller:u})=>s?[sendOnAbort({subprocess:r,cancelSignal:n,forceKillAfterDelay:a,context:l,controller:u})]:[];const sendOnAbort=async({subprocess:r,cancelSignal:n,forceKillAfterDelay:s,context:a,controller:{signal:l}})=>{await onAbortedSignal(n,l);const u=getReason(n);await sendAbort(r,u);killOnTimeout({kill:r.kill,forceKillAfterDelay:s,context:a,controllerSignal:l});a.terminationReason??="gracefulCancel";throw n.reason};const getReason=({reason:r})=>{if(!(r instanceof DOMException)){return r}const n=new Error(r.message);Object.defineProperty(n,"stack",{value:r.stack,enumerable:false,configurable:true,writable:true});return n};const validateTimeout=({timeout:r})=>{if(r!==undefined&&(!Number.isFinite(r)||r<0)){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)}};const throwOnTimeout=(r,n,s,a)=>n===0||n===undefined?[]:[killAfterTimeout(r,n,s,a)];const killAfterTimeout=async(r,n,s,{signal:a})=>{await(0,Ue.setTimeout)(n,undefined,{signal:a});s.terminationReason??="timeout";r.kill();throw new DiscardedError};const mapNode=({options:r})=>{if(r.node===false){throw new TypeError('The "node" option cannot be false with `execaNode()`.')}return{options:{...r,node:true}}};const handleNodeOption=(r,n,{node:s=false,nodePath:a=B.execPath,nodeOptions:u=B.execArgv.filter((r=>!r.startsWith("--inspect"))),cwd:d,execPath:A,...p})=>{if(A!==undefined){throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.')}const f=safeNormalizeFileUrl(a,'The "nodePath" option');const g=l.resolve(d,f);const y={...p,nodePath:g,node:s,cwd:d};if(!s){return[r,n,y]}if(l.basename(r,".exe")==="node"){throw new TypeError('When the "node" option is true, the first argument does not need to be "node".')}return[g,[...u,r,...n],{ipc:true,...y,shell:false}]};const dt=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:v8");const validateIpcInputOption=({ipcInput:r,ipc:n,serialization:s})=>{if(r===undefined){return}if(!n){throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.")}At[s](r)};const validateAdvancedInput=r=>{try{(0,dt.serialize)(r)}catch(r){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:r})}};const validateJsonInput=r=>{try{JSON.stringify(r)}catch(r){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:r})}};const At={advanced:validateAdvancedInput,json:validateJsonInput};const sendIpcInput=async(r,n)=>{if(n===undefined){return}await r.sendMessage(n)};const validateEncoding=({encoding:r})=>{if(ht.has(r)){return}const n=getCorrectEncoding(r);if(n!==undefined){throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(r)}\`.\nPlease rename it to ${serializeEncoding(n)}.`)}const s=[...ht].map((r=>serializeEncoding(r))).join(", ");throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(r)}\`.\nPlease rename it to one of: ${s}.`)};const pt=new Set(["utf8","utf16le"]);const ft=new Set(["buffer","hex","base64","base64url","latin1","ascii"]);const ht=new Set([...pt,...ft]);const getCorrectEncoding=r=>{if(r===null){return"buffer"}if(typeof r!=="string"){return}const n=r.toLowerCase();if(n in mt){return mt[n]}if(ht.has(n)){return n}};const mt={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"};const serializeEncoding=r=>typeof r==="string"?`"${r}"`:String(r);const normalizeCwd=(r=getDefaultCwd())=>{const n=safeNormalizeFileUrl(r,'The "cwd" option');return l.resolve(n)};const getDefaultCwd=()=>{try{return B.cwd()}catch(r){r.message=`The current directory does not exist.\n${r.message}`;throw r}};const fixCwdError=(r,n)=>{if(n===getDefaultCwd()){return r}let s;try{s=(0,a.statSync)(n)}catch(s){return`The "cwd" option is invalid: ${n}.\n${s.message}\n${r}`}if(!s.isDirectory()){return`The "cwd" option is not a directory: ${n}.\n${r}`}return r};const normalizeOptions=(r,n,s)=>{s.cwd=normalizeCwd(s.cwd);const[a,u,d]=handleNodeOption(r,n,s);const{command:A,args:p,options:f}=Le._parse(a,u,d);const g=normalizeFdSpecificOptions(f);const y=addDefaultOptions(g);validateTimeout(y);validateEncoding(y);validateIpcInputOption(y);validateCancelSignal(y);validateGracefulCancel(y);y.shell=normalizeFileUrl(y.shell);y.env=getEnv(y);y.killSignal=normalizeKillSignal(y.killSignal);y.forceKillAfterDelay=normalizeForceKillAfterDelay(y.forceKillAfterDelay);y.lines=y.lines.map(((r,n)=>r&&!ft.has(y.encoding)&&y.buffer[n]));if(B.platform==="win32"&&l.basename(A,".exe")==="cmd"){p.unshift("/q")}return{file:A,commandArguments:p,options:y}};const addDefaultOptions=({extendEnv:r=true,preferLocal:n=false,cwd:s,localDir:a=s,encoding:l="utf8",reject:u=true,cleanup:d=true,all:A=false,windowsHide:p=true,killSignal:f="SIGTERM",forceKillAfterDelay:g=true,gracefulCancel:y=false,ipcInput:b,ipc:C=b!==undefined||y,serialization:w="advanced",...B})=>({...B,extendEnv:r,preferLocal:n,cwd:s,localDirectory:a,encoding:l,reject:u,cleanup:d,all:A,windowsHide:p,killSignal:f,forceKillAfterDelay:g,gracefulCancel:y,ipcInput:b,ipc:C,serialization:w});const getEnv=({env:r,extendEnv:n,preferLocal:s,node:a,localDirectory:l,nodePath:u})=>{const d=n?{...B.env,...r}:r;if(s||a){return npmRunPathEnv({env:d,cwd:l,execPath:u,preferLocal:s,addExecPath:a})}return d};const concatenateShell=(r,n,s)=>s.shell&&n.length>0?[[r,...n].join(" "),[],s]:[r,n,s];function strip_final_newline_stripFinalNewline(r){if(typeof r==="string"){return stripFinalNewlineString(r)}if(!(ArrayBuffer.isView(r)&&r.BYTES_PER_ELEMENT===1)){throw new Error("Input must be a string or a Uint8Array")}return stripFinalNewlineBinary(r)}const stripFinalNewlineString=r=>r.at(-1)===gt?r.slice(0,r.at(-2)===Et?-2:-1):r;const stripFinalNewlineBinary=r=>r.at(-1)===yt?r.subarray(0,r.at(-2)===bt?-2:-1):r;const gt="\n";const yt=gt.codePointAt(0);const Et="\r";const bt=Et.codePointAt(0);function isStream(r,{checkOpen:n=true}={}){return r!==null&&typeof r==="object"&&(r.writable||r.readable||!n||r.writable===undefined&&r.readable===undefined)&&typeof r.pipe==="function"}function isWritableStream(r,{checkOpen:n=true}={}){return isStream(r,{checkOpen:n})&&(r.writable||!n)&&typeof r.write==="function"&&typeof r.end==="function"&&typeof r.writable==="boolean"&&typeof r.writableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isReadableStream(r,{checkOpen:n=true}={}){return isStream(r,{checkOpen:n})&&(r.readable||!n)&&typeof r.read==="function"&&typeof r.readable==="boolean"&&typeof r.readableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isDuplexStream(r,n){return isWritableStream(r,n)&&isReadableStream(r,n)}function isTransformStream(r,n){return isDuplexStream(r,n)&&typeof r._transform==="function"}const Ct=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class c{#de;#Ae;#pe=!1;#fe=void 0;constructor(r,n){this.#de=r,this.#Ae=n}next(){const e=()=>this.#he();return this.#fe=this.#fe?this.#fe.then(e,e):e(),this.#fe}return(r){const t=()=>this.#me(r);return this.#fe?this.#fe.then(t,t):t()}async#he(){if(this.#pe)return{done:!0,value:void 0};let r;try{r=await this.#de.read()}catch(r){throw this.#fe=void 0,this.#pe=!0,this.#de.releaseLock(),r}return r.done&&(this.#fe=void 0,this.#pe=!0,this.#de.releaseLock()),r}async#me(r){if(this.#pe)return{done:!0,value:r};if(this.#pe=!0,!this.#Ae){const n=this.#de.cancel(r);return this.#de.releaseLock(),await n,{done:!0,value:r}}return this.#de.releaseLock(),{done:!0,value:r}}}const wt=Symbol();function i(){return this[wt].next()}Object.defineProperty(i,"name",{value:"next"});function o(r){return this[wt].return(r)}Object.defineProperty(o,"name",{value:"return"});const Bt=Object.create(Ct,{next:{enumerable:!0,configurable:!0,writable:!0,value:i},return:{enumerable:!0,configurable:!0,writable:!0,value:o}});function h({preventCancel:r=!1}={}){const n=this.getReader(),s=new c(n,r),a=Object.create(Bt);return a[wt]=s,a}const getAsyncIterable=r=>{if(isReadableStream(r,{checkOpen:false})&&St.on!==undefined){return getStreamIterable(r)}if(typeof r?.[Symbol.asyncIterator]==="function"){return r}if(It.call(r)==="[object ReadableStream]"){return h.call(r)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:It}=Object.prototype;const getStreamIterable=async function*(r){const n=new AbortController;const s={};handleStreamEnd(r,n,s);try{for await(const[s]of St.on(r,"data",{signal:n.signal})){yield s}}catch(r){if(s.error!==undefined){throw s.error}else if(!n.signal.aborted){throw r}}finally{r.destroy()}};const handleStreamEnd=async(r,n,s)=>{try{await St.finished(r,{cleanup:true,readable:true,writable:false,error:false})}catch(r){s.error=r}finally{n.abort()}};const St={};const getStreamContents=async(r,{init:n,convertChunk:s,getSize:a,truncateChunk:l,addChunk:u,getFinalChunk:d,finalize:A},{maxBuffer:p=Number.POSITIVE_INFINITY}={})=>{const f=getAsyncIterable(r);const g=n();g.length=0;try{for await(const r of f){const n=getChunkType(r);const d=s[n](r,g);appendChunk({convertedChunk:d,state:g,getSize:a,truncateChunk:l,addChunk:u,maxBuffer:p})}appendFinalChunk({state:g,convertChunk:s,getSize:a,truncateChunk:l,addChunk:u,getFinalChunk:d,maxBuffer:p});return A(g)}catch(r){const n=typeof r==="object"&&r!==null?r:new Error(r);n.bufferedData=A(g);throw n}};const appendFinalChunk=({state:r,getSize:n,truncateChunk:s,addChunk:a,getFinalChunk:l,maxBuffer:u})=>{const d=l(r);if(d!==undefined){appendChunk({convertedChunk:d,state:r,getSize:n,truncateChunk:s,addChunk:a,maxBuffer:u})}};const appendChunk=({convertedChunk:r,state:n,getSize:s,truncateChunk:a,addChunk:l,maxBuffer:u})=>{const d=s(r);const A=n.length+d;if(A<=u){addNewChunk(r,n,l,A);return}const p=a(r,u-n.length);if(p!==undefined){addNewChunk(p,n,l,u)}throw new MaxBufferError};const addNewChunk=(r,n,s,a)=>{n.contents=s(r,n,a);n.length=a};const getChunkType=r=>{const n=typeof r;if(n==="string"){return"string"}if(n!=="object"||r===null){return"others"}if(globalThis.Buffer?.isBuffer(r)){return"buffer"}const s=Qt.call(r);if(s==="[object ArrayBuffer]"){return"arrayBuffer"}if(s==="[object DataView]"){return"dataView"}if(Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&Qt.call(r.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:Qt}=Object.prototype;class MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const handleMaxBuffer=({error:r,stream:n,readableObjectMode:s,lines:a,encoding:l,fdNumber:u})=>{if(!(r instanceof MaxBufferError)){throw r}if(u==="all"){return r}const d=getMaxBufferUnit(s,a,l);r.maxBufferInfo={fdNumber:u,unit:d};n.destroy();throw r};const getMaxBufferUnit=(r,n,s)=>{if(r){return"objects"}if(n){return"lines"}if(s==="buffer"){return"bytes"}return"characters"};const checkIpcMaxBuffer=(r,n,s)=>{if(n.length!==s){return}const a=new MaxBufferError;a.maxBufferInfo={fdNumber:"ipc"};throw a};const getMaxBufferMessage=(r,n)=>{const{streamName:s,threshold:a,unit:l}=getMaxBufferInfo(r,n);return`Command's ${s} was larger than ${a} ${l}`};const getMaxBufferInfo=(r,n)=>{if(r?.maxBufferInfo===undefined){return{streamName:"output",threshold:n[1],unit:"bytes"}}const{maxBufferInfo:{fdNumber:s,unit:a}}=r;delete r.maxBufferInfo;const l=getFdSpecificValue(n,s);if(s==="ipc"){return{streamName:"IPC output",threshold:l,unit:"messages"}}return{streamName:getStreamName(s),threshold:l,unit:a}};const isMaxBufferSync=(r,n,s)=>r?.code==="ENOBUFS"&&n!==null&&n.some((r=>r!==null&&r.length>getMaxBufferSync(s)));const truncateMaxBufferSync=(r,n,s)=>{if(!n){return r}const a=getMaxBufferSync(s);return r.length>a?r.slice(0,a):r};const getMaxBufferSync=([,r])=>r;const createMessages=({stdio:r,all:n,ipcOutput:s,originalError:a,signal:l,signalDescription:u,exitCode:d,escapedCommand:A,timedOut:p,isCanceled:f,isGracefullyCanceled:g,isMaxBuffer:y,isForcefullyTerminated:b,forceKillAfterDelay:C,killSignal:w,maxBuffer:B,timeout:I,cwd:S})=>{const Q=a?.code;const v=getErrorPrefix({originalError:a,timedOut:p,timeout:I,isMaxBuffer:y,maxBuffer:B,errorCode:Q,signal:l,signalDescription:u,exitCode:d,isCanceled:f,isGracefullyCanceled:g,isForcefullyTerminated:b,forceKillAfterDelay:C,killSignal:w});const R=getOriginalMessage(a,S);const D=R===undefined?"":`\n${R}`;const N=`${v}: ${A}${D}`;const T=n===undefined?[r[2],r[1]]:[n];const x=[N,...T,...r.slice(3),s.map((r=>serializeIpcMessage(r))).join("\n")].map((r=>escapeLines(strip_final_newline_stripFinalNewline(serializeMessagePart(r))))).filter(Boolean).join("\n\n");return{originalMessage:R,shortMessage:N,message:x}};const getErrorPrefix=({originalError:r,timedOut:n,timeout:s,isMaxBuffer:a,maxBuffer:l,errorCode:u,signal:d,signalDescription:A,exitCode:p,isCanceled:f,isGracefullyCanceled:g,isForcefullyTerminated:y,forceKillAfterDelay:b,killSignal:C})=>{const w=getForcefulSuffix(y,b);if(n){return`Command timed out after ${s} milliseconds${w}`}if(g){if(d===undefined){return`Command was gracefully canceled with exit code ${p}`}return y?`Command was gracefully canceled${w}`:`Command was gracefully canceled with ${d} (${A})`}if(f){return`Command was canceled${w}`}if(a){return`${getMaxBufferMessage(r,l)}${w}`}if(u!==undefined){return`Command failed with ${u}${w}`}if(y){return`Command was killed with ${C} (${getSignalDescription(C)})${w}`}if(d!==undefined){return`Command was killed with ${d} (${A})`}if(p!==undefined){return`Command failed with exit code ${p}`}return"Command failed"};const getForcefulSuffix=(r,n)=>r?` and was forcefully terminated after ${n} milliseconds`:"";const getOriginalMessage=(r,n)=>{if(r instanceof DiscardedError){return}const s=isExecaError(r)?r.originalMessage:String(r?.message??r);const a=escapeLines(fixCwdError(s,n));return a===""?undefined:a};const serializeIpcMessage=r=>typeof r==="string"?r:(0,w.inspect)(r);const serializeMessagePart=r=>Array.isArray(r)?r.map((r=>strip_final_newline_stripFinalNewline(serializeMessageItem(r)))).filter(Boolean).join("\n"):serializeMessageItem(r);const serializeMessageItem=r=>{if(typeof r==="string"){return r}if(isUint8Array(r)){return uint8ArrayToString(r)}return""};const makeSuccessResult=({command:r,escapedCommand:n,stdio:s,all:a,ipcOutput:l,options:{cwd:u},startTime:d})=>omitUndefinedProperties({command:r,escapedCommand:n,cwd:u,durationMs:getDurationMs(d),failed:false,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isTerminated:false,isMaxBuffer:false,isForcefullyTerminated:false,exitCode:0,stdout:s[1],stderr:s[2],all:a,stdio:s,ipcOutput:l,pipedFrom:[]});const makeEarlyError=({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,isSync:d})=>makeError({error:r,command:n,escapedCommand:s,startTime:u,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:false,isForcefullyTerminated:false,stdio:Array.from({length:a.length}),ipcOutput:[],options:l,isSync:d});const makeError=({error:r,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,stdio:y,all:b,ipcOutput:C,options:{timeoutDuration:w,timeout:B=w,forceKillAfterDelay:I,killSignal:S,cwd:Q,maxBuffer:v},isSync:R})=>{const{exitCode:D,signal:N,signalDescription:T}=normalizeExitPayload(f,g);const{originalMessage:x,shortMessage:k,message:_}=createMessages({stdio:y,all:b,ipcOutput:C,originalError:r,signal:N,signalDescription:T,exitCode:D,escapedCommand:s,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,forceKillAfterDelay:I,killSignal:S,maxBuffer:v,timeout:B,cwd:Q});const P=getFinalError(r,_,R);Object.assign(P,getErrorProperties({error:P,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:D,signal:N,signalDescription:T,stdio:y,all:b,ipcOutput:C,cwd:Q,originalMessage:x,shortMessage:k}));return P};const getErrorProperties=({error:r,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,signalDescription:y,stdio:b,all:C,ipcOutput:w,cwd:B,originalMessage:I,shortMessage:S})=>omitUndefinedProperties({shortMessage:S,originalMessage:I,command:n,escapedCommand:s,cwd:B,durationMs:getDurationMs(a),failed:true,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isTerminated:g!==undefined,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,signalDescription:y,code:r.cause?.code,stdout:b[1],stderr:b[2],all:C,stdio:b,ipcOutput:w,pipedFrom:[]});const omitUndefinedProperties=r=>Object.fromEntries(Object.entries(r).filter((([,r])=>r!==undefined)));const normalizeExitPayload=(r,n)=>{const s=r===null?undefined:r;const a=n===null?undefined:n;const l=a===undefined?undefined:getSignalDescription(n);return{exitCode:s,signal:a,signalDescription:l}};const toZeroIfInfinity=r=>Number.isFinite(r)?r:0;function parseNumber(r){return{days:Math.trunc(r/864e5),hours:Math.trunc(r/36e5%24),minutes:Math.trunc(r/6e4%60),seconds:Math.trunc(r/1e3%60),milliseconds:Math.trunc(r%1e3),microseconds:Math.trunc(toZeroIfInfinity(r*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(r*1e6)%1e3)}}function parseBigint(r){return{days:r/86400000n,hours:r/3600000n%24n,minutes:r/60000n%60n,seconds:r/1000n%60n,milliseconds:r%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(r){switch(typeof r){case"number":{if(Number.isFinite(r)){return parseNumber(r)}break}case"bigint":{return parseBigint(r)}}throw new TypeError("Expected a finite number or bigint")}const isZero=r=>r===0||r===0n;const pluralize=(r,n)=>n===1||n===1n?r:`${r}s`;const vt=1e-7;const Rt=24n*60n*60n*1000n;function prettyMilliseconds(r,n){const s=typeof r==="bigint";if(!s&&!Number.isFinite(r)){throw new TypeError("Expected a finite number or bigint")}n={...n};const a=r<0?"-":"";r=r<0?-r:r;if(n.colonNotation){n.compact=false;n.formatSubMilliseconds=false;n.separateMilliseconds=false;n.verbose=false}if(n.compact){n.unitCount=1;n.secondsDecimalDigits=0;n.millisecondsDecimalDigits=0}let l=[];const floorDecimals=(r,n)=>{const s=Math.floor(r*10**n+vt);const a=Math.round(s)/10**n;return a.toFixed(n)};const add=(r,s,a,u)=>{if((l.length===0||!n.colonNotation)&&isZero(r)&&!(n.colonNotation&&a==="m")){return}u??=String(r);if(n.colonNotation){const r=u.includes(".")?u.split(".")[0].length:u.length;const n=l.length>0?2:1;u="0".repeat(Math.max(0,n-r))+u}else{u+=n.verbose?" "+pluralize(s,r):a}l.push(u)};const u=parseMilliseconds(r);const d=BigInt(u.days);if(n.hideYearAndDays){add(BigInt(d)*24n+BigInt(u.hours),"hour","h")}else{if(n.hideYear){add(d,"day","d")}else{add(d/365n,"year","y");add(d%365n,"day","d")}add(Number(u.hours),"hour","h")}add(Number(u.minutes),"minute","m");if(!n.hideSeconds){if(n.separateMilliseconds||n.formatSubMilliseconds||!n.colonNotation&&r<1e3&&!n.subSecondsAsDecimals){const r=Number(u.seconds);const s=Number(u.milliseconds);const a=Number(u.microseconds);const l=Number(u.nanoseconds);add(r,"second","s");if(n.formatSubMilliseconds){add(s,"millisecond","ms");add(a,"microsecond","µs");add(l,"nanosecond","ns")}else{const r=s+a/1e3+l/1e6;const u=typeof n.millisecondsDecimalDigits==="number"?n.millisecondsDecimalDigits:0;const d=r>=1?Math.round(r):Math.ceil(r);const A=u?r.toFixed(u):d;add(Number.parseFloat(A),"millisecond","ms",A)}}else{const a=(s?Number(r%Rt):r)/1e3%60;const l=typeof n.secondsDecimalDigits==="number"?n.secondsDecimalDigits:1;const u=floorDecimals(a,l);const d=n.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");add(Number.parseFloat(d),"second","s",d)}}if(l.length===0){return a+"0"+(n.verbose?" milliseconds":"ms")}const A=n.colonNotation?":":" ";if(typeof n.unitCount==="number"){l=l.slice(0,Math.max(n.unitCount,1))}return a+l.join(A)}const logError=(r,n)=>{if(r.failed){verboseLog({type:"error",verboseMessage:r.shortMessage,verboseInfo:n,result:r})}};const logResult=(r,n)=>{if(!isVerbose(n)){return}logError(r,n);logDuration(r,n)};const logDuration=(r,n)=>{const s=`(done in ${prettyMilliseconds(r.durationMs)})`;verboseLog({type:"duration",verboseMessage:s,verboseInfo:n,result:r})};const handleResult=(r,n,{reject:s})=>{logResult(r,n);if(r.failed&&s){throw r}return r};const getStdioItemType=(r,n)=>{if(isAsyncGenerator(r)){return"asyncGenerator"}if(isSyncGenerator(r)){return"generator"}if(isUrl(r)){return"fileUrl"}if(isFilePathObject(r)){return"filePath"}if(isWebStream(r)){return"webStream"}if(isStream(r,{checkOpen:false})){return"native"}if(isUint8Array(r)){return"uint8Array"}if(isAsyncIterableObject(r)){return"asyncIterable"}if(isIterableObject(r)){return"iterable"}if(type_isTransformStream(r)){return getTransformStreamType({transform:r},n)}if(isTransformOptions(r)){return getTransformObjectType(r,n)}return"native"};const getTransformObjectType=(r,n)=>{if(isDuplexStream(r.transform,{checkOpen:false})){return getDuplexType(r,n)}if(type_isTransformStream(r.transform)){return getTransformStreamType(r,n)}return getGeneratorObjectType(r,n)};const getDuplexType=(r,n)=>{validateNonGeneratorType(r,n,"Duplex stream");return"duplex"};const getTransformStreamType=(r,n)=>{validateNonGeneratorType(r,n,"web TransformStream");return"webTransform"};const validateNonGeneratorType=({final:r,binary:n,objectMode:s},a,l)=>{checkUndefinedOption(r,`${a}.final`,l);checkUndefinedOption(n,`${a}.binary`,l);checkBooleanOption(s,`${a}.objectMode`)};const checkUndefinedOption=(r,n,s)=>{if(r!==undefined){throw new TypeError(`The \`${n}\` option can only be defined when using a generator, not a ${s}.`)}};const getGeneratorObjectType=({transform:r,final:n,binary:s,objectMode:a},l)=>{if(r!==undefined&&!isGenerator(r)){throw new TypeError(`The \`${l}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`)}if(isDuplexStream(n,{checkOpen:false})){throw new TypeError(`The \`${l}.final\` option must not be a Duplex stream.`)}if(type_isTransformStream(n)){throw new TypeError(`The \`${l}.final\` option must not be a web TransformStream.`)}if(n!==undefined&&!isGenerator(n)){throw new TypeError(`The \`${l}.final\` option must be a generator.`)}checkBooleanOption(s,`${l}.binary`);checkBooleanOption(a,`${l}.objectMode`);return isAsyncGenerator(r)||isAsyncGenerator(n)?"asyncGenerator":"generator"};const checkBooleanOption=(r,n)=>{if(r!==undefined&&typeof r!=="boolean"){throw new TypeError(`The \`${n}\` option must use a boolean.`)}};const isGenerator=r=>isAsyncGenerator(r)||isSyncGenerator(r);const isAsyncGenerator=r=>Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]";const isSyncGenerator=r=>Object.prototype.toString.call(r)==="[object GeneratorFunction]";const isTransformOptions=r=>isPlainObject(r)&&(r.transform!==undefined||r.final!==undefined);const isUrl=r=>Object.prototype.toString.call(r)==="[object URL]";const isRegularUrl=r=>isUrl(r)&&r.protocol!=="file:";const isFilePathObject=r=>isPlainObject(r)&&Object.keys(r).length>0&&Object.keys(r).every((r=>Dt.has(r)))&&isFilePathString(r.file);const Dt=new Set(["file","append"]);const isFilePathString=r=>typeof r==="string";const isUnknownStdioString=(r,n)=>r==="native"&&typeof n==="string"&&!Nt.has(n);const Nt=new Set(["ipc","ignore","inherit","overlapped","pipe"]);const type_isReadableStream=r=>Object.prototype.toString.call(r)==="[object ReadableStream]";const type_isWritableStream=r=>Object.prototype.toString.call(r)==="[object WritableStream]";const isWebStream=r=>type_isReadableStream(r)||type_isWritableStream(r);const type_isTransformStream=r=>type_isReadableStream(r?.readable)&&type_isWritableStream(r?.writable);const isAsyncIterableObject=r=>isObject(r)&&typeof r[Symbol.asyncIterator]==="function";const isIterableObject=r=>isObject(r)&&typeof r[Symbol.iterator]==="function";const isObject=r=>typeof r==="object"&&r!==null;const Tt=new Set(["generator","asyncGenerator","duplex","webTransform"]);const xt=new Set(["fileUrl","filePath","fileNumber"]);const kt=new Set(["fileUrl","filePath"]);const _t=new Set([...kt,"webStream","nodeStream"]);const Pt=new Set(["webTransform","duplex"]);const Ft={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"};const getTransformObjectModes=(r,n,s,a)=>a==="output"?getOutputObjectModes(r,n,s):getInputObjectModes(r,n,s);const getOutputObjectModes=(r,n,s)=>{const a=n!==0&&s[n-1].value.readableObjectMode;const l=r??a;return{writableObjectMode:a,readableObjectMode:l}};const getInputObjectModes=(r,n,s)=>{const a=n===0?r===true:s[n-1].value.readableObjectMode;const l=n!==s.length-1&&(r??a);return{writableObjectMode:a,readableObjectMode:l}};const getFdObjectMode=(r,n)=>{const s=r.findLast((({type:r})=>Tt.has(r)));if(s===undefined){return false}return n==="input"?s.value.writableObjectMode:s.value.readableObjectMode};const normalizeTransforms=(r,n,s,a)=>[...r.filter((({type:r})=>!Tt.has(r))),...getTransforms(r,n,s,a)];const getTransforms=(r,n,s,{encoding:a})=>{const l=r.filter((({type:r})=>Tt.has(r)));const u=Array.from({length:l.length});for(const[r,d]of Object.entries(l)){u[r]=normalizeTransform({stdioItem:d,index:Number(r),newTransforms:u,optionName:n,direction:s,encoding:a})}return sortTransforms(u,s)};const normalizeTransform=({stdioItem:r,stdioItem:{type:n},index:s,newTransforms:a,optionName:l,direction:u,encoding:d})=>{if(n==="duplex"){return normalizeDuplex({stdioItem:r,optionName:l})}if(n==="webTransform"){return normalizeTransformStream({stdioItem:r,index:s,newTransforms:a,direction:u})}return normalizeGenerator({stdioItem:r,index:s,newTransforms:a,direction:u,encoding:d})};const normalizeDuplex=({stdioItem:r,stdioItem:{value:{transform:n,transform:{writableObjectMode:s,readableObjectMode:a},objectMode:l=a}},optionName:u})=>{if(l&&!a){throw new TypeError(`The \`${u}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`)}if(!l&&a){throw new TypeError(`The \`${u}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`)}return{...r,value:{transform:n,writableObjectMode:s,readableObjectMode:a}}};const normalizeTransformStream=({stdioItem:r,stdioItem:{value:n},index:s,newTransforms:a,direction:l})=>{const{transform:u,objectMode:d}=isPlainObject(n)?n:{transform:n};const{writableObjectMode:A,readableObjectMode:p}=getTransformObjectModes(d,s,a,l);return{...r,value:{transform:u,writableObjectMode:A,readableObjectMode:p}}};const normalizeGenerator=({stdioItem:r,stdioItem:{value:n},index:s,newTransforms:a,direction:l,encoding:u})=>{const{transform:d,final:A,binary:p=false,preserveNewlines:f=false,objectMode:g}=isPlainObject(n)?n:{transform:n};const y=p||ft.has(u);const{writableObjectMode:b,readableObjectMode:C}=getTransformObjectModes(g,s,a,l);return{...r,value:{transform:d,final:A,binary:y,preserveNewlines:f,writableObjectMode:b,readableObjectMode:C}}};const sortTransforms=(r,n)=>n==="input"?r.reverse():r;const getStreamDirection=(r,n,s)=>{const a=r.map((r=>getStdioItemDirection(r,n)));if(a.includes("input")&&a.includes("output")){throw new TypeError(`The \`${s}\` option must not be an array of both readable and writable values.`)}return a.find(Boolean)??Mt};const getStdioItemDirection=({type:r,value:n},s)=>Lt[s]??Ot[r](n);const Lt=["input","output","output"];const anyDirection=()=>undefined;const alwaysInput=()=>"input";const Ot={generator:anyDirection,asyncGenerator:anyDirection,fileUrl:anyDirection,filePath:anyDirection,iterable:alwaysInput,asyncIterable:alwaysInput,uint8Array:alwaysInput,webStream:r=>type_isWritableStream(r)?"output":"input",nodeStream(r){if(!isReadableStream(r,{checkOpen:false})){return"output"}return isWritableStream(r,{checkOpen:false})?undefined:"input"},webTransform:anyDirection,duplex:anyDirection,native(r){const n=getStandardStreamDirection(r);if(n!==undefined){return n}if(isStream(r,{checkOpen:false})){return Ot.nodeStream(r)}}};const getStandardStreamDirection=r=>{if([0,B.stdin].includes(r)){return"input"}if([1,2,B.stdout,B.stderr].includes(r)){return"output"}};const Mt="output";const normalizeIpcStdioArray=(r,n)=>n&&!r.includes("ipc")?[...r,"ipc"]:r;const normalizeStdioOption=({stdio:r,ipc:n,buffer:s,...a},l,u)=>{const d=getStdioArray(r,a).map(((r,n)=>stdio_option_addDefaultValue(r,n)));return u?normalizeStdioSync(d,s,l):normalizeIpcStdioArray(d,n)};const getStdioArray=(r,n)=>{if(r===undefined){return S.map((r=>n[r]))}if(hasAlias(n)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${S.map((r=>`\`${r}\``)).join(", ")}`)}if(typeof r==="string"){return[r,r,r]}if(!Array.isArray(r)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``)}const s=Math.max(r.length,S.length);return Array.from({length:s},((n,s)=>r[s]))};const hasAlias=r=>S.some((n=>r[n]!==undefined));const stdio_option_addDefaultValue=(r,n)=>{if(Array.isArray(r)){return r.map((r=>stdio_option_addDefaultValue(r,n)))}if(r===null||r===undefined){return n>=S.length?"ignore":"pipe"}return r};const normalizeStdioSync=(r,n,s)=>r.map(((r,a)=>!n[a]&&a!==0&&!isFullVerbose(s,a)&&isOutputPipeOnly(r)?"ignore":r));const isOutputPipeOnly=r=>r==="pipe"||Array.isArray(r)&&r.every((r=>r==="pipe"));const handleNativeStream=({stdioItem:r,stdioItem:{type:n},isStdioArray:s,fdNumber:a,direction:l,isSync:u})=>{if(!s||n!=="native"){return r}return u?handleNativeStreamSync({stdioItem:r,fdNumber:a,direction:l}):handleNativeStreamAsync({stdioItem:r,fdNumber:a})};const handleNativeStreamSync=({stdioItem:r,stdioItem:{value:n,optionName:s},fdNumber:a,direction:l})=>{const u=getTargetFd({value:n,optionName:s,fdNumber:a,direction:l});if(u!==undefined){return u}if(isStream(n,{checkOpen:false})){throw new TypeError(`The \`${s}: Stream\` option cannot both be an array and include a stream with synchronous methods.`)}return r};const getTargetFd=({value:r,optionName:n,fdNumber:s,direction:l})=>{const u=getTargetFdNumber(r,s);if(u===undefined){return}if(l==="output"){return{type:"fileNumber",value:u,optionName:n}}if(q.isatty(u)){throw new TypeError(`The \`${n}: ${serializeOptionValue(r)}\` option is invalid: it cannot be a TTY with synchronous methods.`)}return{type:"uint8Array",value:bufferToUint8Array((0,a.readFileSync)(u)),optionName:n}};const getTargetFdNumber=(r,n)=>{if(r==="inherit"){return n}if(typeof r==="number"){return r}const s=I.indexOf(r);if(s!==-1){return s}};const handleNativeStreamAsync=({stdioItem:r,stdioItem:{value:n,optionName:s},fdNumber:a})=>{if(n==="inherit"){return{type:"nodeStream",value:getStandardStream(a,n,s),optionName:s}}if(typeof n==="number"){return{type:"nodeStream",value:getStandardStream(n,n,s),optionName:s}}if(isStream(n,{checkOpen:false})){return{type:"nodeStream",value:n,optionName:s}}return r};const getStandardStream=(r,n,s)=>{const a=I[r];if(a===undefined){throw new TypeError(`The \`${s}: ${n}\` option is invalid: no such standard stream.`)}return a};const handleInputOptions=({input:r,inputFile:n},s)=>s===0?[...handleInputOption(r),...handleInputFileOption(n)]:[];const handleInputOption=r=>r===undefined?[]:[{type:getInputType(r),value:r,optionName:"input"}];const getInputType=r=>{if(isReadableStream(r,{checkOpen:false})){return"nodeStream"}if(typeof r==="string"){return"string"}if(isUint8Array(r)){return"uint8Array"}throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")};const handleInputFileOption=r=>r===undefined?[]:[{...getInputFileType(r),optionName:"inputFile"}];const getInputFileType=r=>{if(isUrl(r)){return{type:"fileUrl",value:r}}if(isFilePathString(r)){return{type:"filePath",value:{file:r}}}throw new Error("The `inputFile` option must be a file path string or a file URL.")};const filterDuplicates=r=>r.filter(((n,s)=>r.every(((r,a)=>n.value!==r.value||s>=a||n.type==="generator"||n.type==="asyncGenerator"))));const getDuplicateStream=({stdioItem:{type:r,value:n,optionName:s},direction:a,fileDescriptors:l,isSync:u})=>{const d=getOtherStdioItems(l,r);if(d.length===0){return}if(u){validateDuplicateStreamSync({otherStdioItems:d,type:r,value:n,optionName:s,direction:a});return}if(_t.has(r)){return getDuplicateStreamInstance({otherStdioItems:d,type:r,value:n,optionName:s,direction:a})}if(Pt.has(r)){validateDuplicateTransform({otherStdioItems:d,type:r,value:n,optionName:s})}};const getOtherStdioItems=(r,n)=>r.flatMap((({direction:r,stdioItems:s})=>s.filter((r=>r.type===n)).map((n=>({...n,direction:r})))));const validateDuplicateStreamSync=({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})=>{if(kt.has(n)){getDuplicateStreamInstance({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})}};const getDuplicateStreamInstance=({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})=>{const u=r.filter((r=>hasSameValue(r,s)));if(u.length===0){return}const d=u.find((r=>r.direction!==l));throwOnDuplicateStream(d,a,n);return l==="output"?u[0].stream:undefined};const hasSameValue=({type:r,value:n},s)=>{if(r==="filePath"){return n.file===s.file}if(r==="fileUrl"){return n.href===s.href}return n===s};const validateDuplicateTransform=({otherStdioItems:r,type:n,value:s,optionName:a})=>{const l=r.find((({value:{transform:r}})=>r===s.transform));throwOnDuplicateStream(l,a,n)};const throwOnDuplicateStream=(r,n,s)=>{if(r!==undefined){throw new TypeError(`The \`${r.optionName}\` and \`${n}\` options must not target ${Ft[s]} that is the same.`)}};const handleStdio=(r,n,s,a)=>{const l=normalizeStdioOption(n,s,a);const u=l.map(((r,s)=>getFileDescriptor({stdioOption:r,fdNumber:s,options:n,isSync:a})));const d=getFinalFileDescriptors({initialFileDescriptors:u,addProperties:r,options:n,isSync:a});n.stdio=d.map((({stdioItems:r})=>forwardStdio(r)));return d};const getFileDescriptor=({stdioOption:r,fdNumber:n,options:s,isSync:a})=>{const l=getStreamName(n);const{stdioItems:u,isStdioArray:d}=initializeStdioItems({stdioOption:r,fdNumber:n,options:s,optionName:l});const A=getStreamDirection(u,n,l);const p=u.map((r=>handleNativeStream({stdioItem:r,isStdioArray:d,fdNumber:n,direction:A,isSync:a})));const f=normalizeTransforms(p,l,A,s);const g=getFdObjectMode(f,A);validateFileObjectMode(f,g);return{direction:A,objectMode:g,stdioItems:f}};const initializeStdioItems=({stdioOption:r,fdNumber:n,options:s,optionName:a})=>{const l=Array.isArray(r)?r:[r];const u=[...l.map((r=>initializeStdioItem(r,a))),...handleInputOptions(s,n)];const d=filterDuplicates(u);const A=d.length>1;validateStdioArray(d,A,a);validateStreams(d);return{stdioItems:d,isStdioArray:A}};const initializeStdioItem=(r,n)=>({type:getStdioItemType(r,n),value:r,optionName:n});const validateStdioArray=(r,n,s)=>{if(r.length===0){throw new TypeError(`The \`${s}\` option must not be an empty array.`)}if(!n){return}for(const{value:n,optionName:s}of r){if(Ut.has(n)){throw new Error(`The \`${s}\` option must not include \`${n}\`.`)}}};const Ut=new Set(["ignore","ipc"]);const validateStreams=r=>{for(const n of r){validateFileStdio(n)}};const validateFileStdio=({type:r,value:n,optionName:s})=>{if(isRegularUrl(n)){throw new TypeError(`The \`${s}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`)}if(isUnknownStdioString(r,n)){throw new TypeError(`The \`${s}: { file: '...' }\` option must be used instead of \`${s}: '...'\`.`)}};const validateFileObjectMode=(r,n)=>{if(!n){return}const s=r.find((({type:r})=>xt.has(r)));if(s!==undefined){throw new TypeError(`The \`${s.optionName}\` option cannot use both files and transforms in objectMode.`)}};const getFinalFileDescriptors=({initialFileDescriptors:r,addProperties:n,options:s,isSync:a})=>{const l=[];try{for(const u of r){l.push(getFinalFileDescriptor({fileDescriptor:u,fileDescriptors:l,addProperties:n,options:s,isSync:a}))}return l}catch(r){cleanupCustomStreams(l);throw r}};const getFinalFileDescriptor=({fileDescriptor:{direction:r,objectMode:n,stdioItems:s},fileDescriptors:a,addProperties:l,options:u,isSync:d})=>{const A=s.map((n=>addStreamProperties({stdioItem:n,addProperties:l,direction:r,options:u,fileDescriptors:a,isSync:d})));return{direction:r,objectMode:n,stdioItems:A}};const addStreamProperties=({stdioItem:r,addProperties:n,direction:s,options:a,fileDescriptors:l,isSync:u})=>{const d=getDuplicateStream({stdioItem:r,direction:s,fileDescriptors:l,isSync:u});if(d!==undefined){return{...r,stream:d}}return{...r,...n[s][r.type](r,a)}};const cleanupCustomStreams=r=>{for(const{stdioItems:n}of r){for(const{stream:r}of n){if(r!==undefined&&!isStandardStream(r)){r.destroy()}}}};const forwardStdio=r=>{if(r.length>1){return r.some((({value:r})=>r==="overlapped"))?"overlapped":"pipe"}const[{type:n,value:s}]=r;return n==="native"?s:"pipe"};const handleStdioSync=(r,n)=>handleStdio(Gt,r,n,true);const forbiddenIfSync=({type:r,optionName:n})=>{throwInvalidSyncValue(n,Ft[r])};const forbiddenNativeIfSync=({optionName:r,value:n})=>{if(n==="ipc"||n==="overlapped"){throwInvalidSyncValue(r,`"${n}"`)}return{}};const throwInvalidSyncValue=(r,n)=>{throw new TypeError(`The \`${r}\` option cannot be ${n} with synchronous methods.`)};const Ht={generator(){},asyncGenerator:forbiddenIfSync,webStream:forbiddenIfSync,nodeStream:forbiddenIfSync,webTransform:forbiddenIfSync,duplex:forbiddenIfSync,asyncIterable:forbiddenIfSync,native:forbiddenNativeIfSync};const Gt={input:{...Ht,fileUrl:({value:r})=>({contents:[bufferToUint8Array((0,a.readFileSync)(r))]}),filePath:({value:{file:r}})=>({contents:[bufferToUint8Array((0,a.readFileSync)(r))]}),fileNumber:forbiddenIfSync,iterable:({value:r})=>({contents:[...r]}),string:({value:r})=>({contents:[r]}),uint8Array:({value:r})=>({contents:[r]})},output:{...Ht,fileUrl:({value:r})=>({path:r}),filePath:({value:{file:r,append:n}})=>({path:r,append:n}),fileNumber:({value:r})=>({path:r}),iterable:forbiddenIfSync,string:forbiddenIfSync,uint8Array:forbiddenIfSync}};const stripNewline=(r,{stripFinalNewline:n},s)=>getStripFinalNewline(n,s)&&r!==undefined&&!Array.isArray(r)?strip_final_newline_stripFinalNewline(r):r;const getStripFinalNewline=(r,n)=>n==="all"?r[1]||r[2]:r[n];var zt=s(57075);const getSplitLinesGenerator=(r,n,s,a)=>r||s?undefined:initializeSplitLines(n,a);const splitLinesSync=(r,n,s)=>s?r.flatMap((r=>splitLinesItemSync(r,n))):splitLinesItemSync(r,n);const splitLinesItemSync=(r,n)=>{const{transform:s,final:a}=initializeSplitLines(n,{});return[...s(r),...a()]};const initializeSplitLines=(r,n)=>{n.previousChunks="";return{transform:splitGenerator.bind(undefined,n,r),final:linesFinal.bind(undefined,n)}};const splitGenerator=function*(r,n,s){if(typeof s!=="string"){yield s;return}let{previousChunks:a}=r;let l=-1;for(let u=0;u0){A=concatString(a,A);a=""}yield A;l=u}}if(l!==s.length-1){a=concatString(a,s.slice(l+1))}r.previousChunks=a};const getNewlineLength=(r,n,s,a)=>{if(s){return 0}a.isWindowsNewline=n!==0&&r[n-1]==="\r";return a.isWindowsNewline?2:1};const linesFinal=function*({previousChunks:r}){if(r.length>0){yield r}};const getAppendNewlineGenerator=({binary:r,preserveNewlines:n,readableObjectMode:s,state:a})=>r||n||s?undefined:{transform:appendNewlineGenerator.bind(undefined,a)};const appendNewlineGenerator=function*({isWindowsNewline:r=false},n){const{unixNewline:s,windowsNewline:a,LF:l,concatBytes:u}=typeof n==="string"?qt:Vt;if(n.at(-1)===l){yield n;return}const d=r?a:s;yield u(n,d)};const concatString=(r,n)=>`${r}${n}`;const qt={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:concatString};const concatUint8Array=(r,n)=>{const s=new Uint8Array(r.length+n.length);s.set(r,0);s.set(n,r.length);return s};const Vt={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:concatUint8Array};var Wt=s(4573);const getValidateTransformInput=(r,n)=>r?undefined:validateStringTransformInput.bind(undefined,n);const validateStringTransformInput=function*(r,n){if(typeof n!=="string"&&!isUint8Array(n)&&!Wt.Buffer.isBuffer(n)){throw new TypeError(`The \`${r}\` option's transform must use "objectMode: true" to receive as input: ${typeof n}.`)}yield n};const getValidateTransformReturn=(r,n)=>r?validateObjectTransformReturn.bind(undefined,n):validateStringTransformReturn.bind(undefined,n);const validateObjectTransformReturn=function*(r,n){validateEmptyReturn(r,n);yield n};const validateStringTransformReturn=function*(r,n){validateEmptyReturn(r,n);if(typeof n!=="string"&&!isUint8Array(n)){throw new TypeError(`The \`${r}\` option's function must yield a string or an Uint8Array, not ${typeof n}.`)}yield n};const validateEmptyReturn=(r,n)=>{if(n===null||n===undefined){throw new TypeError(`The \`${r}\` option's function must not call \`yield ${n}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)}};const getEncodingTransformGenerator=(r,n,s)=>{if(s){return}if(r){return{transform:encodingUint8ArrayGenerator.bind(undefined,new TextEncoder)}}const a=new p.StringDecoder(n);return{transform:encodingStringGenerator.bind(undefined,a),final:encodingStringFinal.bind(undefined,a)}};const encodingUint8ArrayGenerator=function*(r,n){if(Wt.Buffer.isBuffer(n)){yield bufferToUint8Array(n)}else if(typeof n==="string"){yield r.encode(n)}else{yield n}};const encodingStringGenerator=function*(r,n){yield isUint8Array(n)?r.write(n):n};const encodingStringFinal=function*(r){const n=r.end();if(n!==""){yield n}};const jt=(0,w.callbackify)((async(r,n,s,a)=>{n.currentIterable=r(...s);try{for await(const r of n.currentIterable){a.push(r)}}finally{delete n.currentIterable}}));const transformChunk=async function*(r,n,s){if(s===n.length){yield r;return}const{transform:a=identityGenerator}=n[s];for await(const l of a(r)){yield*transformChunk(l,n,s+1)}};const finalChunks=async function*(r){for(const[n,{final:s}]of Object.entries(r)){yield*generatorFinalChunks(s,Number(n),r)}};const generatorFinalChunks=async function*(r,n,s){if(r===undefined){return}for await(const a of r()){yield*transformChunk(a,s,n+1)}};const Yt=(0,w.callbackify)((async({currentIterable:r},n)=>{if(r!==undefined){await(n?r.throw(n):r.return());return}if(n){throw n}}));const identityGenerator=function*(r){yield r};const pushChunksSync=(r,n,s,a)=>{try{for(const a of r(...n)){s.push(a)}a()}catch(r){a(r)}};const runTransformSync=(r,n)=>[...n.flatMap((n=>[...transformChunkSync(n,r,0)])),...finalChunksSync(r)];const transformChunkSync=function*(r,n,s){if(s===n.length){yield r;return}const{transform:a=run_sync_identityGenerator}=n[s];for(const l of a(r)){yield*transformChunkSync(l,n,s+1)}};const finalChunksSync=function*(r){for(const[n,{final:s}]of Object.entries(r)){yield*generatorFinalChunksSync(s,Number(n),r)}};const generatorFinalChunksSync=function*(r,n,s){if(r===undefined){return}for(const a of r()){yield*transformChunkSync(a,s,n+1)}};const run_sync_identityGenerator=function*(r){yield r};const generatorToStream=({value:r,value:{transform:n,final:s,writableObjectMode:a,readableObjectMode:l},optionName:u},{encoding:d})=>{const A={};const p=addInternalGenerators(r,d,u);const f=isAsyncGenerator(n);const g=isAsyncGenerator(s);const y=f?jt.bind(undefined,transformChunk,A):pushChunksSync.bind(undefined,transformChunkSync);const b=f||g?jt.bind(undefined,finalChunks,A):pushChunksSync.bind(undefined,finalChunksSync);const C=f||g?Yt.bind(undefined,A):undefined;const w=new zt.Transform({writableObjectMode:a,writableHighWaterMark:(0,zt.getDefaultHighWaterMark)(a),readableObjectMode:l,readableHighWaterMark:(0,zt.getDefaultHighWaterMark)(l),transform(r,n,s){y([r,p,0],this,s)},flush(r){b([p],this,r)},destroy:C});return{stream:w}};const runGeneratorsSync=(r,n,s,a)=>{const l=n.filter((({type:r})=>r==="generator"));const u=a?l.reverse():l;for(const{value:n,optionName:a}of u){const l=addInternalGenerators(n,s,a);r=runTransformSync(l,r)}return r};const addInternalGenerators=({transform:r,final:n,binary:s,writableObjectMode:a,readableObjectMode:l,preserveNewlines:u},d,A)=>{const p={};return[{transform:getValidateTransformInput(a,A)},getEncodingTransformGenerator(s,d,a),getSplitLinesGenerator(s,u,a,p),{transform:r,final:n},{transform:getValidateTransformReturn(l,A)},getAppendNewlineGenerator({binary:s,preserveNewlines:u,readableObjectMode:l,state:p})].filter(Boolean)};const addInputOptionsSync=(r,n)=>{for(const s of getInputFdNumbers(r)){addInputOptionSync(r,s,n)}};const getInputFdNumbers=r=>new Set(Object.entries(r).filter((([,{direction:r}])=>r==="input")).map((([r])=>Number(r))));const addInputOptionSync=(r,n,s)=>{const{stdioItems:a}=r[n];const l=a.filter((({contents:r})=>r!==undefined));if(l.length===0){return}if(n!==0){const[{type:r,optionName:n}]=l;throw new TypeError(`Only the \`stdin\` option, not \`${n}\`, can be ${Ft[r]} with synchronous methods.`)}const u=l.map((({contents:r})=>r));const d=u.map((r=>applySingleInputGeneratorsSync(r,a)));s.input=joinToUint8Array(d)};const applySingleInputGeneratorsSync=(r,n)=>{const s=runGeneratorsSync(r,n,"utf8",true);validateSerializable(s);return joinToUint8Array(s)};const validateSerializable=r=>{const n=r.find((r=>typeof r!=="string"&&!isUint8Array(r)));if(n!==undefined){throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${n}.`)}};const shouldLogOutput=({stdioItems:r,encoding:n,verboseInfo:s,fdNumber:a})=>a!=="all"&&isFullVerbose(s,a)&&!ft.has(n)&&fdUsesVerbose(a)&&(r.some((({type:r,value:n})=>r==="native"&&Jt.has(n)))||r.every((({type:r})=>Tt.has(r))));const fdUsesVerbose=r=>r===1||r===2;const Jt=new Set(["pipe","overlapped"]);const logLines=async(r,n,s,a)=>{for await(const l of r){if(!isPipingStream(n)){logLine(l,s,a)}}};const logLinesSync=(r,n,s)=>{for(const a of r){logLine(a,n,s)}};const isPipingStream=r=>r._readableState.pipes.length>0;const logLine=(r,n,s)=>{const a=serializeVerboseMessage(r);verboseLog({type:"output",verboseMessage:a,fdNumber:n,verboseInfo:s})};const transformOutputSync=({fileDescriptors:r,syncResult:{output:n},options:s,isMaxBuffer:a,verboseInfo:l})=>{if(n===null){return{output:Array.from({length:3})}}const u={};const d=new Set([]);const A=n.map(((n,A)=>transformOutputResultSync({result:n,fileDescriptors:r,fdNumber:A,state:u,outputFiles:d,isMaxBuffer:a,verboseInfo:l},s)));return{output:A,...u}};const transformOutputResultSync=({result:r,fileDescriptors:n,fdNumber:s,state:a,outputFiles:l,isMaxBuffer:u,verboseInfo:d},{buffer:A,encoding:p,lines:f,stripFinalNewline:g,maxBuffer:y})=>{if(r===null){return}const b=truncateMaxBufferSync(r,u,y);const C=bufferToUint8Array(b);const{stdioItems:w,objectMode:B}=n[s];const I=runOutputGeneratorsSync([C],w,p,a);const{serializedResult:S,finalResult:Q=S}=serializeChunks({chunks:I,objectMode:B,encoding:p,lines:f,stripFinalNewline:g,fdNumber:s});logOutputSync({serializedResult:S,fdNumber:s,state:a,verboseInfo:d,encoding:p,stdioItems:w,objectMode:B});const v=A[s]?Q:undefined;try{if(a.error===undefined){writeToFiles(S,w,l)}return v}catch(r){a.error=r;return v}};const runOutputGeneratorsSync=(r,n,s,a)=>{try{return runGeneratorsSync(r,n,s,false)}catch(n){a.error=n;return r}};const serializeChunks=({chunks:r,objectMode:n,encoding:s,lines:a,stripFinalNewline:l,fdNumber:u})=>{if(n){return{serializedResult:r}}if(s==="buffer"){return{serializedResult:joinToUint8Array(r)}}const d=joinToString(r,s);if(a[u]){return{serializedResult:d,finalResult:splitLinesSync(d,!l[u],n)}}return{serializedResult:d}};const logOutputSync=({serializedResult:r,fdNumber:n,state:s,verboseInfo:a,encoding:l,stdioItems:u,objectMode:d})=>{if(!shouldLogOutput({stdioItems:u,encoding:l,verboseInfo:a,fdNumber:n})){return}const A=splitLinesSync(r,false,d);try{logLinesSync(A,n,a)}catch(r){s.error??=r}};const writeToFiles=(r,n,s)=>{for(const{path:l,append:u}of n.filter((({type:r})=>xt.has(r)))){const n=typeof l==="string"?l:l.toString();if(u||s.has(n)){(0,a.appendFileSync)(l,r)}else{s.add(n);(0,a.writeFileSync)(l,r)}}};const getAllSync=([,r,n],s)=>{if(!s.all){return}if(r===undefined){return n}if(n===undefined){return r}if(Array.isArray(r)){return Array.isArray(n)?[...r,...n]:[...r,stripNewline(n,s,"all")]}if(Array.isArray(n)){return[stripNewline(r,s,"all"),...n]}if(isUint8Array(r)&&isUint8Array(n)){return concatUint8Arrays([r,n])}return`${r}${n}`};const waitForExit=async(r,n)=>{const[s,a]=await waitForExitOrError(r);n.isForcefullyTerminated??=false;return[s,a]};const waitForExitOrError=async r=>{const[n,s]=await Promise.allSettled([(0,$e.once)(r,"spawn"),(0,$e.once)(r,"exit")]);if(n.status==="rejected"){return[]}return s.status==="rejected"?waitForSubprocessExit(r):s.value};const waitForSubprocessExit=async r=>{try{return await(0,$e.once)(r,"exit")}catch{return waitForSubprocessExit(r)}};const waitForSuccessfulExit=async r=>{const[n,s]=await r;if(!isSubprocessErrorExit(n,s)&&isFailedExit(n,s)){throw new DiscardedError}return[n,s]};const isSubprocessErrorExit=(r,n)=>r===undefined&&n===undefined;const isFailedExit=(r,n)=>r!==0||n!==null;const getExitResultSync=({error:r,status:n,signal:s,output:a},{maxBuffer:l})=>{const u=getResultError(r,n,s);const d=u?.code==="ETIMEDOUT";const A=isMaxBufferSync(u,a,l);return{resultError:u,exitCode:n,signal:s,timedOut:d,isMaxBuffer:A}};const getResultError=(r,n,s)=>{if(r!==undefined){return r}return isFailedExit(n,s)?new DiscardedError:undefined};const execaCoreSync=(r,n,s)=>{const{file:a,commandArguments:l,command:u,escapedCommand:d,startTime:A,verboseInfo:p,options:f,fileDescriptors:g}=handleSyncArguments(r,n,s);const y=spawnSubprocessSync({file:a,commandArguments:l,options:f,command:u,escapedCommand:d,verboseInfo:p,fileDescriptors:g,startTime:A});return handleResult(y,p,f)};const handleSyncArguments=(r,n,s)=>{const{command:a,escapedCommand:l,startTime:u,verboseInfo:d}=handleCommand(r,n,s);const A=normalizeSyncOptions(s);const{file:p,commandArguments:f,options:g}=normalizeOptions(r,n,A);validateSyncOptions(g);const y=handleStdioSync(g,d);return{file:p,commandArguments:f,command:a,escapedCommand:l,startTime:u,verboseInfo:d,options:g,fileDescriptors:y}};const normalizeSyncOptions=r=>r.node&&!r.ipc?{...r,ipc:false}:r;const validateSyncOptions=({ipc:r,ipcInput:n,detached:s,cancelSignal:a})=>{if(n){throwInvalidSyncOption("ipcInput")}if(r){throwInvalidSyncOption("ipc: true")}if(s){throwInvalidSyncOption("detached: true")}if(a){throwInvalidSyncOption("cancelSignal")}};const throwInvalidSyncOption=r=>{throw new TypeError(`The "${r}" option cannot be used with synchronous methods.`)};const spawnSubprocessSync=({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,verboseInfo:u,fileDescriptors:d,startTime:A})=>{const p=runSubprocessSync({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,fileDescriptors:d,startTime:A});if(p.failed){return p}const{resultError:f,exitCode:g,signal:y,timedOut:b,isMaxBuffer:C}=getExitResultSync(p,s);const{output:w,error:B=f}=transformOutputSync({fileDescriptors:d,syncResult:p,options:s,isMaxBuffer:C,verboseInfo:u});const I=w.map(((r,n)=>stripNewline(r,s,n)));const S=stripNewline(getAllSync(w,s),s,"all");return getSyncResult({error:B,exitCode:g,signal:y,timedOut:b,isMaxBuffer:C,stdio:I,all:S,options:s,command:a,escapedCommand:l,startTime:A})};const runSubprocessSync=({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,fileDescriptors:u,startTime:d})=>{try{addInputOptionsSync(u,s);const a=normalizeSpawnSyncOptions(s);return(0,A.spawnSync)(...concatenateShell(r,n,a))}catch(r){return makeEarlyError({error:r,command:a,escapedCommand:l,fileDescriptors:u,options:s,startTime:d,isSync:true})}};const normalizeSpawnSyncOptions=({encoding:r,maxBuffer:n,...s})=>({...s,encoding:"buffer",maxBuffer:getMaxBufferSync(n)});const getSyncResult=({error:r,exitCode:n,signal:s,timedOut:a,isMaxBuffer:l,stdio:u,all:d,options:A,command:p,escapedCommand:f,startTime:g})=>r===undefined?makeSuccessResult({command:p,escapedCommand:f,stdio:u,all:d,ipcOutput:[],options:A,startTime:g}):makeError({error:r,command:p,escapedCommand:f,timedOut:a,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:l,isForcefullyTerminated:false,exitCode:n,signal:s,stdio:u,all:d,ipcOutput:[],options:A,startTime:g,isSync:true});const getOneMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},{reference:l=true,filter:u}={})=>{validateIpcMethod({methodName:"getOneMessage",isSubprocess:s,ipc:a,isConnected:isConnected(r)});return getOneMessageAsync({anyProcess:r,channel:n,isSubprocess:s,filter:u,reference:l})};const getOneMessageAsync=async({anyProcess:r,channel:n,isSubprocess:s,filter:a,reference:l})=>{addReference(n,l);const u=getIpcEmitter(r,n,s);const d=new AbortController;try{return await Promise.race([getMessage(u,a,d),get_one_throwOnDisconnect(u,s,d),throwOnStrictError(u,s,d)])}catch(n){disconnect(r);throw n}finally{d.abort();removeReference(n,l)}};const getMessage=async(r,n,{signal:s})=>{if(n===undefined){const[n]=await(0,$e.once)(r,"message",{signal:s});return n}for await(const[a]of(0,$e.on)(r,"message",{signal:s})){if(n(a)){return a}}};const get_one_throwOnDisconnect=async(r,n,{signal:s})=>{await(0,$e.once)(r,"disconnect",{signal:s});throwOnEarlyDisconnect(n)};const throwOnStrictError=async(r,n,{signal:s})=>{const[a]=await(0,$e.once)(r,"strict:error",{signal:s});throw getStrictResponseError(a,n)};const getEachMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},{reference:l=true}={})=>loopOnMessages({anyProcess:r,channel:n,isSubprocess:s,ipc:a,shouldAwait:!s,reference:l});const loopOnMessages=({anyProcess:r,channel:n,isSubprocess:s,ipc:a,shouldAwait:l,reference:u})=>{validateIpcMethod({methodName:"getEachMessage",isSubprocess:s,ipc:a,isConnected:isConnected(r)});addReference(n,u);const d=getIpcEmitter(r,n,s);const A=new AbortController;const p={};stopOnDisconnect(r,d,A);abortOnStrictError({ipcEmitter:d,isSubprocess:s,controller:A,state:p});return iterateOnMessages({anyProcess:r,channel:n,ipcEmitter:d,isSubprocess:s,shouldAwait:l,controller:A,state:p,reference:u})};const stopOnDisconnect=async(r,n,s)=>{try{await(0,$e.once)(n,"disconnect",{signal:s.signal});s.abort()}catch{}};const abortOnStrictError=async({ipcEmitter:r,isSubprocess:n,controller:s,state:a})=>{try{const[l]=await(0,$e.once)(r,"strict:error",{signal:s.signal});a.error=getStrictResponseError(l,n);s.abort()}catch{}};const iterateOnMessages=async function*({anyProcess:r,channel:n,ipcEmitter:s,isSubprocess:a,shouldAwait:l,controller:u,state:d,reference:A}){try{for await(const[r]of(0,$e.on)(s,"message",{signal:u.signal})){throwIfStrictError(d);yield r}}catch{throwIfStrictError(d)}finally{u.abort();removeReference(n,A);if(!a){disconnect(r)}if(l){await r}}};const throwIfStrictError=({error:r})=>{if(r){throw r}};const addIpcMethods=(r,{ipc:n})=>{Object.assign(r,getIpcMethods(r,false,n))};const getIpcExport=()=>{const r=B;const n=true;const s=B.channel!==undefined;return{...getIpcMethods(r,n,s),getCancelSignal:getCancelSignal.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s})}};const getIpcMethods=(r,n,s)=>({sendMessage:sendMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s}),getOneMessage:getOneMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s}),getEachMessage:getEachMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s})});const handleEarlyError=({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,verboseInfo:d})=>{cleanupCustomStreams(a);const p=new A.ChildProcess;createDummyStreams(p,a);Object.assign(p,{readable:readable,writable:writable,duplex:duplex});const f=makeEarlyError({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,isSync:false});const g=handleDummyPromise(f,d,l);return{subprocess:p,promise:g}};const createDummyStreams=(r,n)=>{const s=createDummyStream();const a=createDummyStream();const l=createDummyStream();const u=Array.from({length:n.length-3},createDummyStream);const d=createDummyStream();const A=[s,a,l,...u];Object.assign(r,{stdin:s,stdout:a,stderr:l,all:d,stdio:A})};const createDummyStream=()=>{const r=new zt.PassThrough;r.end();return r};const readable=()=>new zt.Readable({read(){}});const writable=()=>new zt.Writable({write(){}});const duplex=()=>new zt.Duplex({read(){},write(){}});const handleDummyPromise=async(r,n,s)=>handleResult(r,n,s);const handleStdioAsync=(r,n)=>handleStdio(Kt,r,n,false);const forbiddenIfAsync=({type:r,optionName:n})=>{throw new TypeError(`The \`${n}\` option cannot be ${Ft[r]}.`)};const $t={fileNumber:forbiddenIfAsync,generator:generatorToStream,asyncGenerator:generatorToStream,nodeStream:({value:r})=>({stream:r}),webTransform({value:{transform:r,writableObjectMode:n,readableObjectMode:s}}){const a=n||s;const l=zt.Duplex.fromWeb(r,{objectMode:a});return{stream:l}},duplex:({value:{transform:r}})=>({stream:r}),native(){}};const Kt={input:{...$t,fileUrl:({value:r})=>({stream:(0,a.createReadStream)(r)}),filePath:({value:{file:r}})=>({stream:(0,a.createReadStream)(r)}),webStream:({value:r})=>({stream:zt.Readable.fromWeb(r)}),iterable:({value:r})=>({stream:zt.Readable.from(r)}),asyncIterable:({value:r})=>({stream:zt.Readable.from(r)}),string:({value:r})=>({stream:zt.Readable.from(r)}),uint8Array:({value:r})=>({stream:zt.Readable.from(Wt.Buffer.from(r))})},output:{...$t,fileUrl:({value:r})=>({stream:(0,a.createWriteStream)(r)}),filePath:({value:{file:r,append:n}})=>({stream:(0,a.createWriteStream)(r,n?{flags:"a"}:{})}),webStream:({value:r})=>({stream:zt.Writable.fromWeb(r)}),iterable:forbiddenIfAsync,asyncIterable:forbiddenIfAsync,string:forbiddenIfAsync,uint8Array:forbiddenIfAsync}};var Xt=s(85956);var Zt=s(46466);const pipeStreams=(r,n)=>{r.pipe(n);onSourceFinish(r,n);onDestinationFinish(r,n)};const onSourceFinish=async(r,n)=>{if(isStandardStream(r)||isStandardStream(n)){return}try{await(0,Zt.finished)(r,{cleanup:true,readable:true,writable:false})}catch{}endDestinationStream(n)};const endDestinationStream=r=>{if(r.writable){r.end()}};const onDestinationFinish=async(r,n)=>{if(isStandardStream(r)||isStandardStream(n)){return}try{await(0,Zt.finished)(n,{cleanup:true,readable:false,writable:true})}catch{}abortSourceStream(r)};const abortSourceStream=r=>{if(r.readable){r.destroy()}};const pipeOutputAsync=(r,n,s)=>{const a=new Map;for(const[l,{stdioItems:u,direction:d}]of Object.entries(n)){for(const{stream:n}of u.filter((({type:r})=>Tt.has(r)))){pipeTransform(r,n,d,l)}for(const{stream:n}of u.filter((({type:r})=>!Tt.has(r)))){pipeStdioItem({subprocess:r,stream:n,direction:d,fdNumber:l,pipeGroups:a,controller:s})}}for(const[r,n]of a.entries()){const s=n.length===1?n[0]:(0,Xt.A)(n);pipeStreams(s,r)}};const pipeTransform=(r,n,s,a)=>{if(s==="output"){pipeStreams(r.stdio[a],n)}else{pipeStreams(n,r.stdio[a])}const l=er[a];if(l!==undefined){r[l]=n}r.stdio[a]=n};const er=["stdin","stdout","stderr"];const pipeStdioItem=({subprocess:r,stream:n,direction:s,fdNumber:a,pipeGroups:l,controller:u})=>{if(n===undefined){return}setStandardStreamMaxListeners(n,u);const[d,A]=s==="output"?[n,r.stdio[a]]:[r.stdio[a],n];const p=l.get(d)??[];l.set(d,[...p,A])};const setStandardStreamMaxListeners=(r,{signal:n})=>{if(isStandardStream(r)){incrementMaxListeners(r,tr,n)}};const tr=2;const rr=[];rr.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32"){rr.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){rr.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")}const processOk=r=>!!r&&typeof r==="object"&&typeof r.removeListener==="function"&&typeof r.emit==="function"&&typeof r.reallyExit==="function"&&typeof r.listeners==="function"&&typeof r.kill==="function"&&typeof r.pid==="number"&&typeof r.on==="function";const nr=Symbol.for("signal-exit emitter");const sr=globalThis;const ir=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:false,exit:false};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(sr[nr]){return sr[nr]}ir(sr,nr,{value:this,writable:false,enumerable:false,configurable:false})}on(r,n){this.listeners[r].push(n)}removeListener(r,n){const s=this.listeners[r];const a=s.indexOf(n);if(a===-1){return}if(a===0&&s.length===1){s.length=0}else{s.splice(a,1)}}emit(r,n,s){if(this.emitted[r]){return false}this.emitted[r]=true;let a=false;for(const l of this.listeners[r]){a=l(n,s)===true||a}if(r==="exit"){a=this.emit("afterExit",n,s)||a}return a}}class SignalExitBase{}const signalExitWrap=r=>({onExit(n,s){return r.onExit(n,s)},load(){return r.load()},unload(){return r.unload()}});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#ge=or.platform==="win32"?"SIGINT":"SIGHUP";#ye=new Emitter;#Ee;#be;#Ce;#we={};#Be=false;constructor(r){super();this.#Ee=r;this.#we={};for(const n of rr){this.#we[n]=()=>{const s=this.#Ee.listeners(n);let{count:a}=this.#ye;const l=r;if(typeof l.__signal_exit_emitter__==="object"&&typeof l.__signal_exit_emitter__.count==="number"){a+=l.__signal_exit_emitter__.count}if(s.length===a){this.unload();const s=this.#ye.emit("exit",null,n);const a=n==="SIGHUP"?this.#ge:n;if(!s)r.kill(r.pid,a)}}}this.#Ce=r.reallyExit;this.#be=r.emit}onExit(r,n){if(!processOk(this.#Ee)){return()=>{}}if(this.#Be===false){this.load()}const s=n?.alwaysLast?"afterExit":"exit";this.#ye.on(s,r);return()=>{this.#ye.removeListener(s,r);if(this.#ye.listeners["exit"].length===0&&this.#ye.listeners["afterExit"].length===0){this.unload()}}}load(){if(this.#Be){return}this.#Be=true;this.#ye.count+=1;for(const r of rr){try{const n=this.#we[r];if(n)this.#Ee.on(r,n)}catch(r){}}this.#Ee.emit=(r,...n)=>this.#Ie(r,...n);this.#Ee.reallyExit=r=>this.#Se(r)}unload(){if(!this.#Be){return}this.#Be=false;rr.forEach((r=>{const n=this.#we[r];if(!n){throw new Error("Listener not defined for signal: "+r)}try{this.#Ee.removeListener(r,n)}catch(r){}}));this.#Ee.emit=this.#be;this.#Ee.reallyExit=this.#Ce;this.#ye.count-=1}#Se(r){if(!processOk(this.#Ee)){return 0}this.#Ee.exitCode=r||0;this.#ye.emit("exit",this.#Ee.exitCode,null);return this.#Ce.call(this.#Ee,this.#Ee.exitCode)}#Ie(r,...n){const s=this.#be;if(r==="exit"&&processOk(this.#Ee)){if(typeof n[0]==="number"){this.#Ee.exitCode=n[0]}const a=s.call(this.#Ee,r,...n);this.#ye.emit("exit",this.#Ee.exitCode,null);return a}else{return s.call(this.#Ee,r,...n)}}}const or=globalThis.process;const{onExit:ar,load:lr,unload:cr}=signalExitWrap(processOk(or)?new SignalExit(or):new SignalExitFallback);const cleanupOnExit=(r,{cleanup:n,detached:s},{signal:a})=>{if(!n||s){return}const l=ar((()=>{r.kill()}));(0,$e.addAbortListener)(a,(()=>{l()}))};const normalizePipeArguments=({source:r,sourcePromise:n,boundOptions:s,createNested:a},...l)=>{const u=getStartTime();const{destination:d,destinationStream:A,destinationError:p,from:f,unpipeSignal:g}=getDestinationStream(s,a,l);const{sourceStream:y,sourceError:b}=getSourceStream(r,f);const{options:C,fileDescriptors:w}=Ze.get(r);return{sourcePromise:n,sourceStream:y,sourceOptions:C,sourceError:b,destination:d,destinationStream:A,destinationError:p,unpipeSignal:g,fileDescriptors:w,startTime:u}};const getDestinationStream=(r,n,s)=>{try{const{destination:a,pipeOptions:{from:l,to:u,unpipeSignal:d}={}}=getDestination(r,n,...s);const A=getToStream(a,u);return{destination:a,destinationStream:A,from:l,unpipeSignal:d}}catch(r){return{destinationError:r}}};const getDestination=(r,n,s,...a)=>{if(Array.isArray(s)){const l=n(mapDestinationArguments,r)(s,...a);return{destination:l,pipeOptions:r}}if(typeof s==="string"||s instanceof URL||isDenoExecPath(s)){if(Object.keys(r).length>0){throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).')}const[l,u,d]=normalizeParameters(s,...a);const A=n(mapDestinationArguments)(l,u,d);return{destination:A,pipeOptions:d}}if(Ze.has(s)){if(Object.keys(r).length>0){throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).")}return{destination:s,pipeOptions:a[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${s}`)};const mapDestinationArguments=({options:r})=>({options:{...r,stdin:"pipe",piped:true}});const getSourceStream=(r,n)=>{try{const s=getFromStream(r,n);return{sourceStream:s}}catch(r){return{sourceError:r}}};const handlePipeArgumentsError=({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a,fileDescriptors:l,sourceOptions:u,startTime:d})=>{const A=getPipeArgumentsError({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a});if(A!==undefined){throw createNonCommandError({error:A,fileDescriptors:l,sourceOptions:u,startTime:d})}};const getPipeArgumentsError=({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a})=>{if(n!==undefined&&a!==undefined){return a}if(a!==undefined){abortSourceStream(r);return a}if(n!==undefined){endDestinationStream(s);return n}};const createNonCommandError=({error:r,fileDescriptors:n,sourceOptions:s,startTime:a})=>makeEarlyError({error:r,command:ur,escapedCommand:ur,fileDescriptors:n,options:s,startTime:a,isSync:false});const ur="source.pipe(destination)";const waitForBothSubprocesses=async r=>{const[{status:n,reason:s,value:a=s},{status:l,reason:u,value:d=u}]=await r;if(!d.pipedFrom.includes(a)){d.pipedFrom.push(a)}if(l==="rejected"){throw d}if(n==="rejected"){throw a}return d};const pipeSubprocessStream=(r,n,s)=>{const a=dr.has(n)?pipeMoreSubprocessStream(r,n):pipeFirstSubprocessStream(r,n);incrementMaxListeners(r,Ar,s.signal);incrementMaxListeners(n,pr,s.signal);cleanupMergedStreamsMap(n);return a};const pipeFirstSubprocessStream=(r,n)=>{const s=(0,Xt.A)([r]);pipeStreams(s,n);dr.set(n,s);return s};const pipeMoreSubprocessStream=(r,n)=>{const s=dr.get(n);s.add(r);return s};const cleanupMergedStreamsMap=async r=>{try{await(0,Zt.finished)(r,{cleanup:true,readable:false,writable:true})}catch{}dr.delete(r)};const dr=new WeakMap;const Ar=2;const pr=1;const unpipeOnAbort=(r,n)=>r===undefined?[]:[unpipeOnSignalAbort(r,n)];const unpipeOnSignalAbort=async(r,{sourceStream:n,mergedStream:s,fileDescriptors:a,sourceOptions:l,startTime:u})=>{await(0,w.aborted)(r,n);await s.remove(n);const d=new Error("Pipe canceled by `unpipeSignal` option.");throw createNonCommandError({error:d,fileDescriptors:a,sourceOptions:l,startTime:u})};const pipeToSubprocess=(r,...n)=>{if(isPlainObject(n[0])){return pipeToSubprocess.bind(undefined,{...r,boundOptions:{...r.boundOptions,...n[0]}})}const{destination:s,...a}=normalizePipeArguments(r,...n);const l=handlePipePromise({...a,destination:s});l.pipe=pipeToSubprocess.bind(undefined,{...r,source:s,sourcePromise:l,boundOptions:{}});return l};const handlePipePromise=async({sourcePromise:r,sourceStream:n,sourceOptions:s,sourceError:a,destination:l,destinationStream:u,destinationError:d,unpipeSignal:A,fileDescriptors:p,startTime:f})=>{const g=getSubprocessPromises(r,l);handlePipeArgumentsError({sourceStream:n,sourceError:a,destinationStream:u,destinationError:d,fileDescriptors:p,sourceOptions:s,startTime:f});const y=new AbortController;try{const r=pipeSubprocessStream(n,u,y);return await Promise.race([waitForBothSubprocesses(g),...unpipeOnAbort(A,{sourceStream:n,mergedStream:r,sourceOptions:s,fileDescriptors:p,startTime:f})])}finally{y.abort()}};const getSubprocessPromises=(r,n)=>Promise.allSettled([r,n]);const utils_identity=r=>r;const noop=()=>undefined;const getContentsProperty=({contents:r})=>r;const throwObjectStream=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)};const getLengthProperty=r=>r.length;async function getStreamAsArray(r,n){return getStreamContents(r,fr,n)}const initArray=()=>({contents:[]});const increment=()=>1;const addArrayChunk=(r,{contents:n})=>{n.push(r);return n};const fr={init:initArray,convertChunk:{string:utils_identity,buffer:utils_identity,arrayBuffer:utils_identity,dataView:utils_identity,typedArray:utils_identity,others:utils_identity},getSize:increment,truncateChunk:noop,addChunk:addArrayChunk,getFinalChunk:noop,finalize:getContentsProperty};async function getStreamAsArrayBuffer(r,n){return getStreamContents(r,gr,n)}const initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const useTextEncoder=r=>hr.encode(r);const hr=new TextEncoder;const useUint8Array=r=>new Uint8Array(r);const useUint8ArrayWithOffset=r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength);const truncateArrayBufferChunk=(r,n)=>r.slice(0,n);const addArrayBufferChunk=(r,{contents:n,length:s},a)=>{const l=hasArrayBufferResize()?resizeArrayBuffer(n,a):resizeArrayBufferSlow(n,a);new Uint8Array(l).set(r,s);return l};const resizeArrayBufferSlow=(r,n)=>{if(n<=r.byteLength){return r}const s=new ArrayBuffer(getNewContentsLength(n));new Uint8Array(s).set(new Uint8Array(r),0);return s};const resizeArrayBuffer=(r,n)=>{if(n<=r.maxByteLength){r.resize(n);return r}const s=new ArrayBuffer(n,{maxByteLength:getNewContentsLength(n)});new Uint8Array(s).set(new Uint8Array(r),0);return s};const getNewContentsLength=r=>mr**Math.ceil(Math.log(r)/Math.log(mr));const mr=2;const finalizeArrayBuffer=({contents:r,length:n})=>hasArrayBufferResize()?r:r.slice(0,n);const hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const gr={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:noop,finalize:finalizeArrayBuffer};async function getStreamAsString(r,n){return getStreamContents(r,yr,n)}const initString=()=>({contents:"",textDecoder:new TextDecoder});const useTextDecoder=(r,{textDecoder:n})=>n.decode(r,{stream:true});const addStringChunk=(r,{contents:n})=>n+r;const truncateStringChunk=(r,n)=>r.slice(0,n);const getFinalStringChunk=({textDecoder:r})=>{const n=r.decode();return n===""?undefined:n};const yr={init:initString,convertChunk:{string:utils_identity,buffer:useTextDecoder,arrayBuffer:useTextDecoder,dataView:useTextDecoder,typedArray:useTextDecoder,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateStringChunk,addChunk:addStringChunk,getFinalChunk:getFinalStringChunk,finalize:getContentsProperty};const iterateOnSubprocessStream=({subprocessStdout:r,subprocess:n,binary:s,shouldEncode:a,encoding:l,preserveNewlines:u})=>{const d=new AbortController;stopReadingOnExit(n,d);return iterateOnStream({stream:r,controller:d,binary:s,shouldEncode:!r.readableObjectMode&&a,encoding:l,shouldSplit:!r.readableObjectMode,preserveNewlines:u})};const stopReadingOnExit=async(r,n)=>{try{await r}catch{}finally{n.abort()}};const iterateForResult=({stream:r,onStreamEnd:n,lines:s,encoding:a,stripFinalNewline:l,allMixed:u})=>{const d=new AbortController;stopReadingOnStreamEnd(n,d,r);const A=r.readableObjectMode&&!u;return iterateOnStream({stream:r,controller:d,binary:a==="buffer",shouldEncode:!A,encoding:a,shouldSplit:!A&&s,preserveNewlines:!l})};const stopReadingOnStreamEnd=async(r,n,s)=>{try{await r}catch{s.destroy()}finally{n.abort()}};const iterateOnStream=({stream:r,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d})=>{const A=(0,$e.on)(r,"data",{signal:n.signal,highWaterMark:br,highWatermark:br});return iterateOnData({onStdoutChunk:A,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d})};const Er=(0,zt.getDefaultHighWaterMark)(true);const br=Er;const iterateOnData=async function*({onStdoutChunk:r,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d}){const A=getGenerators({binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d});try{for await(const[n]of r){yield*transformChunkSync(n,A,0)}}catch(r){if(!n.signal.aborted){throw r}}finally{yield*finalChunksSync(A)}};const getGenerators=({binary:r,shouldEncode:n,encoding:s,shouldSplit:a,preserveNewlines:l})=>[getEncodingTransformGenerator(r,s,!n),getSplitLinesGenerator(r,l,!a,{})].filter(Boolean);const getStreamOutput=async({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,buffer:l,maxBuffer:u,lines:d,allMixed:A,stripFinalNewline:p,verboseInfo:f,streamInfo:g})=>{const y=logOutputAsync({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,allMixed:A,verboseInfo:f,streamInfo:g});if(!l){await Promise.all([resumeStream(r),y]);return}const b=getStripFinalNewline(p,s);const C=iterateForResult({stream:r,onStreamEnd:n,lines:d,encoding:a,stripFinalNewline:b,allMixed:A});const[w]=await Promise.all([contents_getStreamContents({stream:r,iterable:C,fdNumber:s,encoding:a,maxBuffer:u,lines:d}),y]);return w};const logOutputAsync=async({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,allMixed:l,verboseInfo:u,streamInfo:{fileDescriptors:d}})=>{if(!shouldLogOutput({stdioItems:d[s]?.stdioItems,encoding:a,verboseInfo:u,fdNumber:s})){return}const A=iterateForResult({stream:r,onStreamEnd:n,lines:true,encoding:a,stripFinalNewline:true,allMixed:l});await logLines(A,r,s,u)};const resumeStream=async r=>{await(0,Ue.setImmediate)();if(r.readableFlowing===null){r.resume()}};const contents_getStreamContents=async({stream:r,stream:{readableObjectMode:n},iterable:s,fdNumber:a,encoding:l,maxBuffer:u,lines:d})=>{try{if(n||d){return await getStreamAsArray(s,{maxBuffer:u})}if(l==="buffer"){return new Uint8Array(await getStreamAsArrayBuffer(s,{maxBuffer:u}))}return await getStreamAsString(s,{maxBuffer:u})}catch(s){return handleBufferedData(handleMaxBuffer({error:s,stream:r,readableObjectMode:n,lines:d,encoding:l,fdNumber:a}))}};const getBufferedData=async r=>{try{return await r}catch(r){return handleBufferedData(r)}};const handleBufferedData=({bufferedData:r})=>isArrayBuffer(r)?new Uint8Array(r):r;const waitForStream=async(r,n,s,{isSameDirection:a,stopOnExit:l=false}={})=>{const u=handleStdinDestroy(r,s);const d=new AbortController;try{await Promise.race([...l?[s.exitPromise]:[],(0,Zt.finished)(r,{cleanup:true,signal:d.signal})])}catch(r){if(!u.stdinCleanedUp){handleStreamError(r,n,s,a)}}finally{d.abort()}};const handleStdinDestroy=(r,{originalStreams:[n],subprocess:s})=>{const a={stdinCleanedUp:false};if(r===n){spyOnStdinDestroy(r,s,a)}return a};const spyOnStdinDestroy=(r,n,s)=>{const{_destroy:a}=r;r._destroy=(...l)=>{setStdinCleanedUp(n,s);a.call(r,...l)}};const setStdinCleanedUp=({exitCode:r,signalCode:n},s)=>{if(r!==null||n!==null){s.stdinCleanedUp=true}};const handleStreamError=(r,n,s,a)=>{if(!shouldIgnoreStreamError(r,n,s,a)){throw r}};const shouldIgnoreStreamError=(r,n,s,a=true)=>{if(s.propagating){return isStreamEpipe(r)||isStreamAbort(r)}s.propagating=true;return isInputFileDescriptor(s,n)===a?isStreamEpipe(r):isStreamAbort(r)};const isInputFileDescriptor=({fileDescriptors:r},n)=>n!=="all"&&r[n].direction==="input";const isStreamAbort=r=>r?.code==="ERR_STREAM_PREMATURE_CLOSE";const isStreamEpipe=r=>r?.code==="EPIPE";const waitForStdioStreams=({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:u,verboseInfo:d,streamInfo:A})=>r.stdio.map(((r,p)=>waitForSubprocessStream({stream:r,fdNumber:p,encoding:n,buffer:s[p],maxBuffer:a[p],lines:l[p],allMixed:false,stripFinalNewline:u,verboseInfo:d,streamInfo:A})));const waitForSubprocessStream=async({stream:r,fdNumber:n,encoding:s,buffer:a,maxBuffer:l,lines:u,allMixed:d,stripFinalNewline:A,verboseInfo:p,streamInfo:f})=>{if(!r){return}const g=waitForStream(r,n,f);if(isInputFileDescriptor(f,n)){await g;return}const[y]=await Promise.all([getStreamOutput({stream:r,onStreamEnd:g,fdNumber:n,encoding:s,buffer:a,maxBuffer:l,lines:u,allMixed:d,stripFinalNewline:A,verboseInfo:p,streamInfo:f}),g]);return y};const makeAllStream=({stdout:r,stderr:n},{all:s})=>s&&(r||n)?(0,Xt.A)([r,n].filter(Boolean)):undefined;const waitForAllStream=({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:u,verboseInfo:d,streamInfo:A})=>waitForSubprocessStream({...getAllStream(r,s),fdNumber:"all",encoding:n,maxBuffer:a[1]+a[2],lines:l[1]||l[2],allMixed:getAllMixed(r),stripFinalNewline:u,verboseInfo:d,streamInfo:A});const getAllStream=({stdout:r,stderr:n,all:s},[,a,l])=>{const u=a||l;if(!u){return{stream:s,buffer:u}}if(!a){return{stream:n,buffer:u}}if(!l){return{stream:r,buffer:u}}return{stream:s,buffer:u}};const getAllMixed=({all:r,stdout:n,stderr:s})=>r&&n&&s&&n.readableObjectMode!==s.readableObjectMode;const shouldLogIpc=r=>isFullVerbose(r,"ipc");const logIpcOutput=(r,n)=>{const s=serializeVerboseMessage(r);verboseLog({type:"ipc",verboseMessage:s,fdNumber:"ipc",verboseInfo:n})};const waitForIpcOutput=async({subprocess:r,buffer:n,maxBuffer:s,ipc:a,ipcOutput:l,verboseInfo:u})=>{if(!a){return l}const d=shouldLogIpc(u);const A=getFdSpecificValue(n,"ipc");const p=getFdSpecificValue(s,"ipc");for await(const n of loopOnMessages({anyProcess:r,channel:r.channel,isSubprocess:false,ipc:a,shouldAwait:false,reference:true})){if(A){checkIpcMaxBuffer(r,l,p);l.push(n)}if(d){logIpcOutput(n,u)}}return l};const getBufferedIpcOutput=async(r,n)=>{await Promise.allSettled([r]);return n};const waitForSubprocessResult=async({subprocess:r,options:{encoding:n,buffer:s,maxBuffer:a,lines:l,timeoutDuration:u,cancelSignal:d,gracefulCancel:A,forceKillAfterDelay:p,stripFinalNewline:f,ipc:g,ipcInput:y},context:b,verboseInfo:C,fileDescriptors:w,originalStreams:B,onInternalError:I,controller:S})=>{const Q=waitForExit(r,b);const v={originalStreams:B,fileDescriptors:w,subprocess:r,exitPromise:Q,propagating:false};const R=waitForStdioStreams({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:f,verboseInfo:C,streamInfo:v});const D=waitForAllStream({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:f,verboseInfo:C,streamInfo:v});const N=[];const T=waitForIpcOutput({subprocess:r,buffer:s,maxBuffer:a,ipc:g,ipcOutput:N,verboseInfo:C});const x=waitForOriginalStreams(B,r,v);const k=waitForCustomStreamsEnd(w,v);try{return await Promise.race([Promise.all([{},waitForSuccessfulExit(Q),Promise.all(R),D,T,sendIpcInput(r,y),...x,...k]),I,throwOnSubprocessError(r,S),...throwOnTimeout(r,u,b,S),...throwOnCancel({subprocess:r,cancelSignal:d,gracefulCancel:A,context:b,controller:S}),...throwOnGracefulCancel({subprocess:r,cancelSignal:d,gracefulCancel:A,forceKillAfterDelay:p,context:b,controller:S})])}catch(r){b.terminationReason??="other";return Promise.all([{error:r},Q,Promise.all(R.map((r=>getBufferedData(r)))),getBufferedData(D),getBufferedIpcOutput(T,N),Promise.allSettled(x),Promise.allSettled(k)])}};const waitForOriginalStreams=(r,n,s)=>r.map(((r,a)=>r===n.stdio[a]?undefined:waitForStream(r,a,s)));const waitForCustomStreamsEnd=(r,n)=>r.flatMap((({stdioItems:r},s)=>r.filter((({value:r,stream:n=r})=>isStream(n,{checkOpen:false})&&!isStandardStream(n))).map((({type:r,value:a,stream:l=a})=>waitForStream(l,s,n,{isSameDirection:Tt.has(r),stopOnExit:r==="native"})))));const throwOnSubprocessError=async(r,{signal:n})=>{const[s]=await(0,$e.once)(r,"error",{signal:n});throw s};const initializeConcurrentStreams=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap});const addConcurrentStream=(r,n,s)=>{const a=r[s];if(!a.has(n)){a.set(n,[])}const l=a.get(n);const u=createDeferred();l.push(u);const d=u.resolve.bind(u);return{resolve:d,promises:l}};const waitForConcurrentStreams=async({resolve:r,promises:n},s)=>{r();const[a]=await Promise.race([Promise.allSettled([true,s]),Promise.all([false,...n])]);return!a};const safeWaitForSubprocessStdin=async r=>{if(r===undefined){return}try{await waitForSubprocessStdin(r)}catch{}};const safeWaitForSubprocessStdout=async r=>{if(r===undefined){return}try{await waitForSubprocessStdout(r)}catch{}};const waitForSubprocessStdin=async r=>{await(0,Zt.finished)(r,{cleanup:true,readable:false,writable:true})};const waitForSubprocessStdout=async r=>{await(0,Zt.finished)(r,{cleanup:true,readable:true,writable:false})};const waitForSubprocess=async(r,n)=>{await r;if(n){throw n}};const destroyOtherStream=(r,n,s)=>{if(s&&!isStreamAbort(s)){r.destroy(s)}else if(n){r.destroy()}};const createReadable=({subprocess:r,concurrentStreams:n,encoding:s},{from:a,binary:l=true,preserveNewlines:u=true}={})=>{const d=l||ft.has(s);const{subprocessStdout:A,waitReadableDestroy:p}=getSubprocessStdout(r,a,n);const{readableEncoding:f,readableObjectMode:g,readableHighWaterMark:y}=getReadableOptions(A,d);const{read:b,onStdoutDataDone:C}=getReadableMethods({subprocessStdout:A,subprocess:r,binary:d,encoding:s,preserveNewlines:u});const B=new zt.Readable({read:b,destroy:(0,w.callbackify)(onReadableDestroy.bind(undefined,{subprocessStdout:A,subprocess:r,waitReadableDestroy:p})),highWaterMark:y,objectMode:g,encoding:f});onStdoutFinished({subprocessStdout:A,onStdoutDataDone:C,readable:B,subprocess:r});return B};const getSubprocessStdout=(r,n,s)=>{const a=getFromStream(r,n);const l=addConcurrentStream(s,a,"readableDestroy");return{subprocessStdout:a,waitReadableDestroy:l}};const getReadableOptions=({readableEncoding:r,readableObjectMode:n,readableHighWaterMark:s},a)=>a?{readableEncoding:r,readableObjectMode:n,readableHighWaterMark:s}:{readableEncoding:r,readableObjectMode:true,readableHighWaterMark:Er};const getReadableMethods=({subprocessStdout:r,subprocess:n,binary:s,encoding:a,preserveNewlines:l})=>{const u=createDeferred();const d=iterateOnSubprocessStream({subprocessStdout:r,subprocess:n,binary:s,shouldEncode:!s,encoding:a,preserveNewlines:l});return{read(){onRead(this,d,u)},onStdoutDataDone:u}};const onRead=async(r,n,s)=>{try{const{value:a,done:l}=await n.next();if(l){s.resolve()}else{r.push(a)}}catch{}};const onStdoutFinished=async({subprocessStdout:r,onStdoutDataDone:n,readable:s,subprocess:a,subprocessStdin:l})=>{try{await waitForSubprocessStdout(r);await a;await safeWaitForSubprocessStdin(l);await n;if(s.readable){s.push(null)}}catch(r){await safeWaitForSubprocessStdin(l);destroyOtherReadable(s,r)}};const onReadableDestroy=async({subprocessStdout:r,subprocess:n,waitReadableDestroy:s},a)=>{if(await waitForConcurrentStreams(s,n)){destroyOtherReadable(r,a);await waitForSubprocess(n,a)}};const destroyOtherReadable=(r,n)=>{destroyOtherStream(r,r.readable,n)};const createWritable=({subprocess:r,concurrentStreams:n},{to:s}={})=>{const{subprocessStdin:a,waitWritableFinal:l,waitWritableDestroy:u}=getSubprocessStdin(r,s,n);const d=new zt.Writable({...getWritableMethods(a,r,l),destroy:(0,w.callbackify)(onWritableDestroy.bind(undefined,{subprocessStdin:a,subprocess:r,waitWritableFinal:l,waitWritableDestroy:u})),highWaterMark:a.writableHighWaterMark,objectMode:a.writableObjectMode});onStdinFinished(a,d);return d};const getSubprocessStdin=(r,n,s)=>{const a=getToStream(r,n);const l=addConcurrentStream(s,a,"writableFinal");const u=addConcurrentStream(s,a,"writableDestroy");return{subprocessStdin:a,waitWritableFinal:l,waitWritableDestroy:u}};const getWritableMethods=(r,n,s)=>({write:onWrite.bind(undefined,r),final:(0,w.callbackify)(onWritableFinal.bind(undefined,r,n,s))});const onWrite=(r,n,s,a)=>{if(r.write(n,s)){a()}else{r.once("drain",a)}};const onWritableFinal=async(r,n,s)=>{if(await waitForConcurrentStreams(s,n)){if(r.writable){r.end()}await n}};const onStdinFinished=async(r,n,s)=>{try{await waitForSubprocessStdin(r);if(n.writable){n.end()}}catch(r){await safeWaitForSubprocessStdout(s);destroyOtherWritable(n,r)}};const onWritableDestroy=async({subprocessStdin:r,subprocess:n,waitWritableFinal:s,waitWritableDestroy:a},l)=>{await waitForConcurrentStreams(s,n);if(await waitForConcurrentStreams(a,n)){destroyOtherWritable(r,l);await waitForSubprocess(n,l)}};const destroyOtherWritable=(r,n)=>{destroyOtherStream(r,r.writable,n)};const createDuplex=({subprocess:r,concurrentStreams:n,encoding:s},{from:a,to:l,binary:u=true,preserveNewlines:d=true}={})=>{const A=u||ft.has(s);const{subprocessStdout:p,waitReadableDestroy:f}=getSubprocessStdout(r,a,n);const{subprocessStdin:g,waitWritableFinal:y,waitWritableDestroy:b}=getSubprocessStdin(r,l,n);const{readableEncoding:C,readableObjectMode:B,readableHighWaterMark:I}=getReadableOptions(p,A);const{read:S,onStdoutDataDone:Q}=getReadableMethods({subprocessStdout:p,subprocess:r,binary:A,encoding:s,preserveNewlines:d});const v=new zt.Duplex({read:S,...getWritableMethods(g,r,y),destroy:(0,w.callbackify)(onDuplexDestroy.bind(undefined,{subprocessStdout:p,subprocessStdin:g,subprocess:r,waitReadableDestroy:f,waitWritableFinal:y,waitWritableDestroy:b})),readableHighWaterMark:I,writableHighWaterMark:g.writableHighWaterMark,readableObjectMode:B,writableObjectMode:g.writableObjectMode,encoding:C});onStdoutFinished({subprocessStdout:p,onStdoutDataDone:Q,readable:v,subprocess:r,subprocessStdin:g});onStdinFinished(g,v,p);return v};const onDuplexDestroy=async({subprocessStdout:r,subprocessStdin:n,subprocess:s,waitReadableDestroy:a,waitWritableFinal:l,waitWritableDestroy:u},d)=>{await Promise.all([onReadableDestroy({subprocessStdout:r,subprocess:s,waitReadableDestroy:a},d),onWritableDestroy({subprocessStdin:n,subprocess:s,waitWritableFinal:l,waitWritableDestroy:u},d)])};const createIterable=(r,n,{from:s,binary:a=false,preserveNewlines:l=false}={})=>{const u=a||ft.has(n);const d=getFromStream(r,s);const A=iterateOnSubprocessStream({subprocessStdout:d,subprocess:r,binary:u,shouldEncode:true,encoding:n,preserveNewlines:l});return iterateOnStdoutData(A,d,r)};const iterateOnStdoutData=async function*(r,n,s){try{yield*r}finally{if(n.readable){n.destroy()}await s}};const addConvertedStreams=(r,{encoding:n})=>{const s=initializeConcurrentStreams();r.readable=createReadable.bind(undefined,{subprocess:r,concurrentStreams:s,encoding:n});r.writable=createWritable.bind(undefined,{subprocess:r,concurrentStreams:s});r.duplex=createDuplex.bind(undefined,{subprocess:r,concurrentStreams:s,encoding:n});r.iterable=createIterable.bind(undefined,r,n);r[Symbol.asyncIterator]=createIterable.bind(undefined,r,n,{})};const mergePromise=(r,n)=>{for(const[s,a]of wr){const l=a.value.bind(n);Reflect.defineProperty(r,s,{...a,value:l})}};const Cr=(async()=>{})().constructor.prototype;const wr=["then","catch","finally"].map((r=>[r,Reflect.getOwnPropertyDescriptor(Cr,r)]));const execaCoreAsync=(r,n,s,a)=>{const{file:l,commandArguments:u,command:d,escapedCommand:A,startTime:p,verboseInfo:f,options:g,fileDescriptors:y}=handleAsyncArguments(r,n,s);const{subprocess:b,promise:C}=spawnSubprocessAsync({file:l,commandArguments:u,options:g,startTime:p,verboseInfo:f,command:d,escapedCommand:A,fileDescriptors:y});b.pipe=pipeToSubprocess.bind(undefined,{source:b,sourcePromise:C,boundOptions:{},createNested:a});mergePromise(b,C);Ze.set(b,{options:g,fileDescriptors:y});return b};const handleAsyncArguments=(r,n,s)=>{const{command:a,escapedCommand:l,startTime:u,verboseInfo:d}=handleCommand(r,n,s);const{file:A,commandArguments:p,options:f}=normalizeOptions(r,n,s);const g=handleAsyncOptions(f);const y=handleStdioAsync(g,d);return{file:A,commandArguments:p,command:a,escapedCommand:l,startTime:u,verboseInfo:d,options:g,fileDescriptors:y}};const handleAsyncOptions=({timeout:r,signal:n,...s})=>{if(n!==undefined){throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.')}return{...s,timeoutDuration:r}};const spawnSubprocessAsync=({file:r,commandArguments:n,options:s,startTime:a,verboseInfo:l,command:u,escapedCommand:d,fileDescriptors:p})=>{let f;try{f=(0,A.spawn)(...concatenateShell(r,n,s))}catch(r){return handleEarlyError({error:r,command:u,escapedCommand:d,fileDescriptors:p,options:s,startTime:a,verboseInfo:l})}const g=new AbortController;(0,$e.setMaxListeners)(Number.POSITIVE_INFINITY,g.signal);const y=[...f.stdio];pipeOutputAsync(f,p,g);cleanupOnExit(f,s,g);const b={};const C=createDeferred();f.kill=subprocessKill.bind(undefined,{kill:f.kill.bind(f),options:s,onInternalError:C,context:b,controller:g});f.all=makeAllStream(f,s);addConvertedStreams(f,s);addIpcMethods(f,s);const w=handlePromise({subprocess:f,options:s,startTime:a,verboseInfo:l,fileDescriptors:p,originalStreams:y,command:u,escapedCommand:d,context:b,onInternalError:C,controller:g});return{subprocess:f,promise:w}};const handlePromise=async({subprocess:r,options:n,startTime:s,verboseInfo:a,fileDescriptors:l,originalStreams:u,command:d,escapedCommand:A,context:p,onInternalError:f,controller:g})=>{const[y,[b,C],w,B,I]=await waitForSubprocessResult({subprocess:r,options:n,context:p,verboseInfo:a,fileDescriptors:l,originalStreams:u,onInternalError:f,controller:g});g.abort();f.resolve();const S=w.map(((r,s)=>stripNewline(r,n,s)));const Q=stripNewline(B,n,"all");const v=getAsyncResult({errorInfo:y,exitCode:b,signal:C,stdio:S,all:Q,ipcOutput:I,context:p,options:n,command:d,escapedCommand:A,startTime:s});return handleResult(v,a,n)};const getAsyncResult=({errorInfo:r,exitCode:n,signal:s,stdio:a,all:l,ipcOutput:u,context:d,options:A,command:p,escapedCommand:f,startTime:g})=>"error"in r?makeError({error:r.error,command:p,escapedCommand:f,timedOut:d.terminationReason==="timeout",isCanceled:d.terminationReason==="cancel"||d.terminationReason==="gracefulCancel",isGracefullyCanceled:d.terminationReason==="gracefulCancel",isMaxBuffer:r.error instanceof MaxBufferError,isForcefullyTerminated:d.isForcefullyTerminated,exitCode:n,signal:s,stdio:a,all:l,ipcOutput:u,options:A,startTime:g,isSync:false}):makeSuccessResult({command:p,escapedCommand:f,stdio:a,all:l,ipcOutput:u,options:A,startTime:g});const mergeOptions=(r,n)=>{const s=Object.fromEntries(Object.entries(n).map((([n,s])=>[n,mergeOption(n,r[n],s)])));return{...r,...s}};const mergeOption=(r,n,s)=>{if(Br.has(r)&&isPlainObject(n)&&isPlainObject(s)){return{...n,...s}}return s};const Br=new Set(["env",...D]);const createExeca=(r,n,s,a)=>{const createNested=(r,n,a)=>createExeca(r,n,s,a);const boundExeca=(...l)=>callBoundExeca({mapArguments:r,deepOptions:s,boundOptions:n,setBoundExeca:a,createNested:createNested},...l);if(a!==undefined){a(boundExeca,createNested,n)}return boundExeca};const callBoundExeca=({mapArguments:r,deepOptions:n={},boundOptions:s={},setBoundExeca:a,createNested:l},u,...d)=>{if(isPlainObject(u)){return l(r,mergeOptions(s,u),a)}const{file:A,commandArguments:p,options:f,isSync:g}=parseArguments({mapArguments:r,firstArgument:u,nextArguments:d,deepOptions:n,boundOptions:s});return g?execaCoreSync(A,p,f):execaCoreAsync(A,p,f,l)};const parseArguments=({mapArguments:r,firstArgument:n,nextArguments:s,deepOptions:a,boundOptions:l})=>{const u=isTemplateString(n)?parseTemplates(n,s):[n,...s];const[d,A,p]=normalizeParameters(...u);const f=mergeOptions(mergeOptions(a,l),p);const{file:g=d,commandArguments:y=A,options:b=f,isSync:C=false}=r({file:d,commandArguments:A,options:f});return{file:g,commandArguments:y,options:b,isSync:C}};const mapCommandAsync=({file:r,commandArguments:n})=>parseCommand(r,n);const mapCommandSync=({file:r,commandArguments:n})=>({...parseCommand(r,n),isSync:true});const parseCommand=(r,n)=>{if(n.length>0){throw new TypeError(`The command and its arguments must be passed as a single string: ${r} ${n}.`)}const[s,...a]=parseCommandString(r);return{file:s,commandArguments:a}};const parseCommandString=r=>{if(typeof r!=="string"){throw new TypeError(`The command must be a string: ${String(r)}.`)}const n=r.trim();if(n===""){return[]}const s=[];for(const r of n.split(Ir)){const n=s.at(-1);if(n&&n.endsWith("\\")){s[s.length-1]=`${n.slice(0,-1)} ${r}`}else{s.push(r)}}return s};const Ir=/ +/g;const setScriptSync=(r,n,s)=>{r.sync=n(mapScriptSync,s);r.s=r.sync};const mapScriptAsync=({options:r})=>getScriptOptions(r);const mapScriptSync=({options:r})=>({...getScriptOptions(r),isSync:true});const getScriptOptions=r=>({options:{...getScriptStdinOption(r),...r}});const getScriptStdinOption=({input:r,inputFile:n,stdio:s})=>r===undefined&&n===undefined&&s===undefined?{stdin:"inherit"}:{};const Sr={preferLocal:true};const Qr=createExeca((()=>({})));const vr=createExeca((()=>({isSync:true})));const Rr=createExeca(mapCommandAsync);const Dr=createExeca(mapCommandSync);const Nr=createExeca(mapNode);const Tr=createExeca(mapScriptAsync,{},Sr,setScriptSync);const{sendMessage:xr,getOneMessage:kr,getEachMessage:_r,getCancelSignal:Pr}=getIpcExport();var Fr=s(51455);const find_up_simple_toPath=r=>r instanceof URL?(0,d.fileURLToPath)(r):r;async function findUp(r,{cwd:n=process.cwd(),type:s="file",stopAt:a}={}){let l=path.resolve(find_up_simple_toPath(n)??"");const{root:u}=path.parse(l);a=path.resolve(l,find_up_simple_toPath(a??u));const d=path.isAbsolute(r);while(l){const n=d?r:path.join(l,r);try{const r=await fsPromises.stat(n);if(s==="file"&&r.isFile()||s==="directory"&&r.isDirectory()){return n}}catch{}if(l===a||l===u){break}l=path.dirname(l)}}function findUpSync(r,{cwd:n=B.cwd(),type:s="file",stopAt:u}={}){let d=l.resolve(find_up_simple_toPath(n)??"");const{root:A}=l.parse(d);u=l.resolve(d,find_up_simple_toPath(u)??A);const p=l.isAbsolute(r);while(d){const n=p?r:l.join(d,r);try{const r=a.statSync(n,{throwIfNoEntry:false});if(s==="file"&&r?.isFile()||s==="directory"&&r?.isDirectory()){return n}}catch{}if(d===u||d===A){break}d=l.dirname(d)}}var Lr=s(56992); +var a=s(39023).inherits;var l=s(47544).ZipArchiveOutputStream;var u=s(47544).ZipArchiveEntry;var d=s(53296);var A=r.exports=function(r){if(!(this instanceof A)){return new A(r)}r=this.options=r||{};r.zlib=r.zlib||{};l.call(this,r);if(typeof r.level==="number"&&r.level>=0){r.zlib.level=r.level;delete r.level}if(!r.forceZip64&&typeof r.zlib.level==="number"&&r.zlib.level===0){r.store=true}r.namePrependSlash=r.namePrependSlash||false;if(r.comment&&r.comment.length>0){this.setComment(r.comment)}};a(A,l);A.prototype._normalizeFileData=function(r){r=d.defaults(r,{type:"file",name:null,namePrependSlash:this.options.namePrependSlash,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var n=r.type==="directory";var s=r.type==="symlink";if(r.name){r.name=d.sanitizePath(r.name);if(!s&&r.name.slice(-1)==="/"){n=true;r.type="directory"}else if(n){r.name+="/"}}if(n||s){r.store=true}r.date=d.dateify(r.date);return r};A.prototype.entry=function(r,n,s){if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}n=this._normalizeFileData(n);if(n.type!=="file"&&n.type!=="directory"&&n.type!=="symlink"){s(new Error(n.type+" entries not currently supported"));return}if(typeof n.name!=="string"||n.name.length===0){s(new Error("entry name must be a non-empty string value"));return}if(n.type==="symlink"&&typeof n.linkname!=="string"){s(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var a=new u(n.name);a.setTime(n.date,this.options.forceLocalTime);if(n.namePrependSlash){a.setName(n.name,true)}if(n.store){a.setMethod(0)}if(n.comment.length>0){a.setComment(n.comment)}if(n.type==="symlink"&&typeof n.mode!=="number"){n.mode=40960}if(typeof n.mode==="number"){if(n.type==="symlink"){n.mode|=40960}a.setUnixMode(n.mode)}if(n.type==="symlink"&&typeof n.linkname==="string"){r=Buffer.from(n.linkname)}return l.prototype.entry.call(this,a,r,s)};A.prototype.finalize=function(){this.finish()}},32986:(r,n,s)=>{s.d(n,{a:()=>buildProject});var a=s(73024);var l=s(76760);var u=s(41872);var d=s(37156);class Runner{bin;tauriScript;constructor(r,n){this.bin=r;this.tauriScript=n||[]}async execTauriCommand(r,n,s,a,l=0){const u=[...this.tauriScript,...r];if(this.bin==="npm"&&n.length){u.push("--")}u.push(...n);return(0,d.L5)((()=>(0,d.NK)(this.bin,u,{cwd:s},a)),l)}}async function getRunner(){if(u.PK){console.log("`tauriScript` set. Skipping cli verification.");const[r,...n]=u.PK.split(" ");return new Runner(r,n)}if((0,d.ws)("@tauri-apps/cli",u.DZ)){if((0,d.z8)(u.DZ))return new Runner("yarn",["tauri"]);if((0,d.me)(u.DZ))return new Runner("pnpm",["tauri"]);if((0,d.Ui)(u.DZ))return new Runner("bun",["tauri"]);if((0,d._$)(u.DZ))return new Runner("npm",[(0,d.dk)(u.DZ)?"run":"exec","tauri"])}console.warn("Could not detect valid `@tauri-apps/cli` installation. Proceeding to install global npm package...");await(0,d.NK)("npm",["install","-g",`@tauri-apps/cli@v2`],{cwd:undefined});return new Runner("tauri")}async function buildProject(){const r=await getRunner();const n=u.HD.target;const s=u.HD.config;const A=u.Nl.profile;const p=(0,d.sg)(n);const f=(0,d.Vp)(p,s);if(!f.tauriPath){throw Error("Couldn't detect path of tauri app")}const g={tauriPath:f.tauriPath,runner:r,name:f.name,mainBinaryName:f.mainBinaryName,version:f.version,wixLanguage:f.wixLanguage,rpmRelease:f.rpmRelease};let y=["build"];if(u.m0)y=["android","build"];if(u.un)y=["ios","build"];await r.execTauriCommand(y,u.ay,u.DZ,p.platform==="macos"?{TAURI_BUNDLER_DMG_IGNORE_CI:process.env.TAURI_BUNDLER_DMG_IGNORE_CI??"true"}:undefined,u.z);const b=(0,d.Lw)(g.tauriPath)??g.tauriPath;let C=(0,l.join)((0,d.d)(b,f.tauriPath,!!n),n??"",A?A:u._o?"debug":"release");if(u.m0){C=(0,l.join)(f.tauriPath,"gen/android/app/build/outputs/")}if(u.un){C=(0,l.join)(f.tauriPath,"gen/apple/build/")}let w=[];let B=p.arch;if(p.platform==="macos"){if(B==="x86_64"){B="x64"}else if(B==="arm64"){B="aarch64"}w=[(0,d.Dg)({path:(0,l.join)(C,`bundle/dmg/${g.name}_${g.version}_${B}.dmg`),name:g.name,platform:p.platform,arch:B,bundle:"dmg",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app.tar.gz`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/macos/${g.name}.app.tar.gz.sig`),name:g.name,platform:p.platform,arch:B,bundle:"app",version:g.version})]}else if(p.platform==="windows"){if(B.startsWith("i")){B="x86"}else if(B==="aarch64"||B==="arm64"){B="arm64"}else{B="x64"}let r;if(typeof g.wixLanguage==="string"){r=[g.wixLanguage]}else if(Array.isArray(g.wixLanguage)){r=g.wixLanguage}else{r=Object.keys(g.wixLanguage)}const n=[];r.forEach((r=>{n.push((0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.sig`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.zip`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/msi/${g.name}_${g.version}_${B}_${r}.msi.zip.sig`),name:g.name,platform:p.platform,arch:B,bundle:"msi",version:g.version}))}));n.push((0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.exe`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.exe.sig`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.nsis.zip`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/nsis/${g.name}_${g.version}_${B}-setup.nsis.zip.sig`),name:g.name,platform:p.platform,arch:B,bundle:"nsis",version:g.version}));w=n}else if(p.platform==="linux"){const r=B==="x64"||B==="x86_64"?"amd64":B==="x32"||B==="i686"?"i386":B==="arm"?"armhf":B==="aarch64"?"arm64":B;const n=B==="x64"||B==="x86_64"?"x86_64":B==="x32"||B==="x86"||B==="i686"?"i386":B==="arm"?"armhfp":B==="arm64"?"aarch64":B;const s=B==="x64"||B==="x86_64"?"amd64":B==="x32"||B==="i686"?"i386":B==="arm"?"arm":B==="arm64"?"aarch64":B;w=[(0,d.Dg)({path:(0,l.join)(C,`bundle/deb/${g.name}_${g.version}_${r}.deb`),name:g.name,platform:p.platform,arch:r,bundle:"deb",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/deb/${g.name}_${g.version}_${r}.deb.sig`),name:g.name,platform:p.platform,arch:r,bundle:"deb",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/rpm/${g.name}-${g.version}-${g.rpmRelease}.${n}.rpm`),name:g.name,platform:p.platform,arch:n,bundle:"rpm",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/rpm/${g.name}-${g.version}-${g.rpmRelease}.${n}.rpm.sig`),name:g.name,platform:p.platform,arch:n,bundle:"rpm",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.sig`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.tar.gz`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`bundle/appimage/${g.name}_${g.version}_${s}.AppImage.tar.gz.sig`),name:g.name,platform:p.platform,arch:s,bundle:"appimage",version:g.version})]}else if(p.platform==="android"){const r=u._o?"debug":"release";const n=u._o?"Debug":"Release";if(!u._o){w.push((0,d.Dg)({path:(0,l.join)(C,`apk/universal/release/app-universal-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"universal",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm64/release/app-arm64-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"arm64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm/release/app-arm-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"arm",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86_64/release/app-x86_64-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86/release/app-x86-release-unsigned.apk`),name:g.name,platform:p.platform,arch:"x86",bundle:"apk",version:g.version}))}w.push((0,d.Dg)({path:(0,l.join)(C,`apk/universal/${r}/app-universal-${r}.apk`),name:g.name,platform:p.platform,arch:"universal",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm64/${r}/app-arm64-${r}.apk`),name:g.name,platform:p.platform,arch:"arm64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/arm/${r}/app-arm-${r}.apk`),name:g.name,platform:p.platform,arch:"arm",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86_64/${r}/app-x86_64-${r}.apk`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`apk/x86/${r}/app-x86-${r}.apk`),name:g.name,platform:p.platform,arch:"x86",bundle:"apk",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/universal${n}/app-universal-${r}.aab`),name:g.name,platform:p.platform,arch:"universal",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/arm64${n}/app-arm64-${r}.aab`),name:g.name,platform:p.platform,arch:"arm64",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/arm${n}/app-arm-${r}.aab`),name:g.name,platform:p.platform,arch:"arm",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/x86_64${n}/app-x86_64-${r}.aab`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"aab",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`/bundle/x86${n}/app-x86-${r}.aab`),name:g.name,platform:p.platform,arch:"x86",bundle:"aab",version:g.version}))}else if(p.platform==="ios"){w=[(0,d.Dg)({path:(0,l.join)(C,`x86_64/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"x86_64",bundle:"ipa",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`arm64/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"arm64",bundle:"ipa",version:g.version}),(0,d.Dg)({path:(0,l.join)(C,`arm64-sim/${g.name}.ipa`),name:g.name,platform:p.platform,arch:"arm64-sim",bundle:"ipa",version:g.version})]}else{console.error(`Unhandled target platform: "${p.platform}"`)}if(u.pm){const r=p.platform==="windows"?".exe":"";w.push((0,d.Dg)({path:(0,l.join)(C,`${g.mainBinaryName}${r}`),name:"binary",bundle:"bin",platform:p.platform,arch:B,version:g.version}))}console.log(`Looking for artifacts in:\n${w.map((r=>r.path)).join("\n")}`);return w.filter((r=>(0,a.existsSync)(r.path)))}},24331:(r,n,s)=>{s.d(n,{l:()=>getOrCreateRelease});var a=s(73024);var l=s.n(a);var u=s(3894);var d=s(61351);var A=s(41872);function allReleases(r){const n={per_page:100,owner:A.eC,repo:A.LB};return r.paginate.iterator(r.rest.repos.listReleases,n)}async function getOrCreateRelease(r,n,s){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const a=(0,d.Q)(process.env.GITHUB_TOKEN,{baseUrl:A.qu});const p=u.V4("body_path",{required:false});let f=null;if(p!==""&&!!p){try{f=l().readFileSync(p,{encoding:"utf8"})}catch(r){u.C1(r.message)}}let g=null;let y=false;try{if(A.K4){console.log(`Looking for a draft release with tag ${r}...`);for await(const n of allReleases(a)){const s=n.data.find((n=>n.tag_name===r));if(s){if(!s.draft){console.warn(`Found release with tag ${r} but it's NOT a draft!`);break}g=s;console.log(`Found draft release with tag ${r} on the release list.`);break}}if(!g){throw new Error("release not found")}}else{const n=await a.rest.repos.getReleaseByTag({owner:A.eC,repo:A.LB,tag:r});g=n.data;console.log(`Found release with tag ${r}.`)}}catch(l){if(l.status===404||l.message==="release not found"){console.log(`Couldn't find release with tag ${r}. Creating one.`);if(!n){console.error('"releaseName" not set but required to create release.')}else{const l=await a.rest.repos.createRelease({owner:A.eC,repo:A.LB,tag_name:r,name:n,body:f||s,draft:A.K4,prerelease:A.Rt,target_commitish:A.Un,generate_release_notes:A.yK});y=true;g=l.data}}else{console.log(`⚠️ Unexpected error fetching GitHub release for tag ${r}: ${l}`);throw l}}if(!g){throw new Error("Release not found or created.")}else if(!y&&!g.draft){console.log("Updating name and body of existing release...");await a.rest.repos.updateRelease({owner:A.eC,repo:A.LB,release_id:g.id,name:n,body:f||s,generate_release_notes:A.yK})}return{id:g.id,uploadUrl:g.upload_url,htmlUrl:g.html_url}}},79407:(r,n,s)=>{s.a(r,(async(r,n)=>{try{var a=s(73024);var l=s.n(a);var u=s(76760);var d=s.n(u);var A=s(3894);var p=s(32986);var f=s(24331);var g=s(41872);var y=s(5970);var b=s(39890);var C=s(23811);var w=s(37156);async function run(){try{if(g.un&&process.platform!=="darwin"){throw new Error("Building for iOS is only supported on macOS runners.")}let r=A.V4("tagName").replace("refs/tags/","");let n=Number(A.V4("releaseId"));let s=A.V4("releaseName").replace("refs/tags/","");let l=A.V4("releaseBody");const d=g.HD.target;const B=g.HD.config;const I=[];I.push(...await(0,p.a)());if(I.length===0){if(n||r||g.Jc){throw new Error("No artifacts were found.")}else{console.log("No artifacts were found. The action was not configured to upload artifacts, therefore this is not handled as an error.");return}}console.log(`Found artifacts:\n${I.map((r=>r.path)).join("\n")}`);A.uH("artifactPaths",JSON.stringify(I.map((r=>r.path))));const S=(0,w.sg)(d);const Q=(0,w.Vp)(S,B);A.uH("appVersion",Q.version);if(g.Jc){console.log("uploadWorkflowArtifacts enabled");await(0,C.I)(I)}if(S.platform==="macos"){let r=0;for(const n of I){if(n.path.endsWith(".app")&&!(0,a.existsSync)(`${n.path}.tar.gz`)){console.log(`Packaging ${n.path} directory into ${n.path}.tar.gz`);await(0,w.NK)("tar",["czf",`${n.path}.tar.gz`,"-C",(0,u.dirname)(n.path),(0,u.basename)(n.path)]);n.path+=".tar.gz";n.ext+=".tar.gz"}else if(n.path.endsWith(".app")){I.splice(r,1)}r++}}if(r&&!n){const a=[{key:"__VERSION__",value:Q.version}];a.forEach((n=>{const a=new RegExp(n.key,"g");r=r.replace(a,n.value);s=s.replace(a,n.value);l=l.replace(a,n.value)}));const u=await(0,f.l)(r,s||undefined,l);n=u.id;A.uH("releaseUploadUrl",u.uploadUrl);A.uH("releaseId",u.id.toString());A.uH("releaseHtmlUrl",u.htmlUrl)}if(n){await(0,y.r)(n,I,g.z);if(g.Qe){await(0,w.L5)((()=>(0,b.Y)(Q.version,l,r,n,I,S,Q.unzippedSigs)),g.z===0?1:g.z)}}else{console.log("No releaseId or tagName provided, skipping all uploads...")}}catch(r){A.C1(r.message)}}await run();n()}catch(B){n(B)}}),1)},41872:(r,n,s)=>{s.d(n,{Un:()=>x,K4:()=>R,yK:()=>k,qu:()=>D,m0:()=>O,_o:()=>U,Hd:()=>T,un:()=>M,eC:()=>Q,HD:()=>B,Nl:()=>I,Rt:()=>N,DZ:()=>A,ay:()=>b,dw:()=>y,LB:()=>v,z:()=>f,Qe:()=>p,Jc:()=>_,PK:()=>g,ZQ:()=>L,pm:()=>S,wy:()=>F,rP:()=>P});var a=s(76760);var l=s(57975);var u=s(3894);var d=s(61351);function parseArgsStringToArgv(r,n,s){var a=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi;var l=r;var u=[];if(n){u.push(n)}if(s){u.push(s)}var d;do{d=a.exec(l);if(d!==null){u.push(firstString(d[1],d[6],d[0]))}}while(d!==null);return u}function firstString(){var r=[];for(var n=0;n{s.d(n,{r:()=>uploadAssets});var a=s(73024);var l=s.n(a);var u=s(61351);var d=s(41872);var A=s(37156);async function uploadAssets(r,n,s){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const a=(0,u.Q)(process.env.GITHUB_TOKEN,{baseUrl:d.qu});const p=(await a.rest.repos.listReleaseAssets({owner:d.eC,repo:d.LB,release_id:r,per_page:100})).data;const contentLength=r=>l().statSync(r).size;for(const u of n){if(!d.wy&&u.ext.endsWith(".sig")){continue}const n={"content-type":"application/zip","content-length":contentLength(u.path)};const f=(0,A.wm)(u,d.dw);const g=(0,A.br)(u,d.dw);const y=p.find((r=>r.label===f||r.name===g));if(y){console.log(`Deleting existing ${f}...`);if(d.Hd){await(0,A.Rx)(a,r,y.id)}else{await a.rest.repos.deleteReleaseAsset({owner:d.eC,repo:d.LB,asset_id:y.id})}}console.log(`Uploading Assets`);if(d.Hd){console.log(`Trying to upload ${f} to Gitea...`);try{const n=new FormData;const s=l().readFileSync(u.path);const a=new Blob([s]);n.append("attachment",a,f);n.append("name",f);const A=await fetch(`${d.qu}/repos/${d.eC}/${d.LB}/releases/${r}/assets`,{method:"POST",headers:{Authorization:`token ${process.env.GITHUB_TOKEN}`},body:n});if(!A.ok){throw new Error(`Failed to upload asset: ${A.statusText}`)}return A.json()}catch(r){console.log(r)}}else{console.log(`Trying to upload ${f} to Github...`);await(0,A.L5)((()=>a.rest.repos.uploadReleaseAsset({headers:n,name:f,label:f,data:l().createReadStream(u.path),owner:d.eC,repo:d.LB,release_id:r})),s)}console.log(`${f} successfully uploaded.`)}}},39890:(r,n,s)=>{s.d(n,{Y:()=>uploadVersionJSON});var a=s(73024);var l=s.n(a);var u=s(76760);var d=s.n(u);var A=s(61351);var p=s(41872);var f=s(5970);var g=s(37156);async function uploadVersionJSON(r,n,s,l,d,y,b){if(process.env.GITHUB_TOKEN===undefined){throw new Error("GITHUB_TOKEN is required")}const C=(0,A.Q)(process.env.GITHUB_TOKEN,{baseUrl:p.qu});const w="latest.json";const B=(0,u.resolve)(process.cwd(),w);const I={version:r,notes:n,pub_date:(new Date).toISOString(),platforms:{}};const S=await C.rest.repos.listReleaseAssets({owner:p.eC,repo:p.LB,release_id:l,per_page:50});const Q=S.data.find((r=>r.name===w));if(Q){if(p.Hd){const r=(await C.request("GET /repos/{owner}/{repo}/releases/{release_id}/assets/{asset_id}",{owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id})).data;const n=(await C.request(`GET ${r.browser_download_url}`)).data;I.platforms=JSON.parse(n).platforms}else{const r=(await C.request(`GET /repos/{owner}/{repo}/releases/assets/{asset_id}`,{owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id,headers:{accept:"application/octet-stream"}})).data;I.platforms=JSON.parse(Buffer.from(r).toString()).platforms}}const v=[];for(const r of S.data){v.push({name:r.name,label:r.label,url:r.browser_download_url})}const R=[];const N=[];let x=false;let D=false;for(const r of d){if(r.ext===".app.tar.gz"&&r.arch==="universal"){const n={...r,arch:"aarch64"};const s={...r,arch:"x86_64"};const a=(0,g.br)(n,p.dw);const l=(0,g.wm)(n,p.dw);const u=(0,g.br)(s,p.dw);const d=(0,g.wm)(s,p.dw);x=!!v.find((r=>r.label===l||r.name===a));D=!!v.find((r=>r.label===d||r.name===u))}const n=(0,g.wm)(r,p.dw);const s=(0,g.br)(r,p.dw);const a=v.find((r=>r.label===n||r.name===s))?.url;if(r.ext.endsWith(".sig")){N.push({assetLabel:n,assetName:s,path:r.path,arch:r.arch,bundle:r.bundle})}else if(a){R.push({downloadUrl:a,assetLabel:n,assetName:s,path:r.path,arch:r.arch,bundle:r.bundle})}}function signaturePriority(r){if(b&&r.endsWith(".AppImage.sig")||!b&&r.endsWith(".AppImage.tar.gz.sig")){return 100}const n=p.ZQ?b?[".exe.sig",".msi.sig"]:[".nsis.zip.sig",".msi.zip.sig"]:b?[".msi.sig",".exe.sig"]:[".msi.zip.sig",".nsis.zip.sig"];for(const[s,a]of n.entries()){if(r.endsWith(a)){return 100-s}}return 0}N.sort(((r,n)=>signaturePriority(n.path)-signaturePriority(r.path)));if(!N[0]){console.warn("Signature not found for the updater JSON. Skipping upload...");return}for(const[r,n]of N.entries()){const l=(0,u.basename)(n.assetLabel,(0,u.extname)(n.assetLabel));const d=(0,u.basename)(n.assetName,(0,u.extname)(n.assetName));let A=R.find((r=>r.assetLabel===l||r.assetName===d))?.downloadUrl;if(!A){console.warn(`Updater asset belonging to signature file "${n.assetName}" not found.`);continue}A=A.replace(/\/download\/(untagged-[^/]+)\//,s?`/download/${encodeURIComponent(s)}/`:"/latest/download/");let p=y.platform;if(p==="macos"){p="darwin"}let f=n.arch;f=f==="amd64"||f==="x86_64"||f==="x64"?"x86_64":f==="x86"||f==="i386"?"i686":f==="arm"?"armv7":f==="arm64"?"aarch64":f;if(r===0){if(p==="darwin"&&f==="universal"){if(!I.platforms["darwin-aarch64"]||!x){I.platforms["darwin-aarch64"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(!I.platforms["darwin-x86_64"]||!D){I.platforms["darwin-x86_64"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}}I.platforms[`${p}-${f}`]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(p==="darwin"&&f==="universal"){if(!I.platforms["darwin-aarch64-app"]||!x){I.platforms["darwin-aarch64-app"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}if(!I.platforms["darwin-x86_64-app"]||!D){I.platforms["darwin-x86_64-app"]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}}I.platforms[`${p}-${f}-${n.bundle}`]={signature:(0,a.readFileSync)(n.path).toString(),url:A}}(0,a.writeFileSync)(B,JSON.stringify(I,null,2));if(Q){if(p.Hd){await(0,g.Rx)(C,l,Q.id)}else{await C.rest.repos.deleteReleaseAsset({owner:p.eC,repo:p.LB,release_id:l,asset_id:Q.id})}}const T=(0,g.Dg)({path:B,name:w,platform:y.platform,arch:"",bundle:"",version:r});await(0,f.r)(l,[T],1)}},23811:(r,n,s)=>{s.d(n,{I:()=>uploadWorkflowArtifacts});var a={};s.r(a);s.d(a,{AccessPolicy:()=>Bs,AppendBlobAppendBlockExceptionHeaders:()=>ia,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>aa,AppendBlobAppendBlockFromUrlHeaders:()=>oa,AppendBlobAppendBlockHeaders:()=>sa,AppendBlobCreateExceptionHeaders:()=>na,AppendBlobCreateHeaders:()=>ra,AppendBlobSealExceptionHeaders:()=>ca,AppendBlobSealHeaders:()=>la,ArrowConfiguration:()=>zs,ArrowField:()=>qs,BlobAbortCopyFromURLExceptionHeaders:()=>vo,BlobAbortCopyFromURLHeaders:()=>Qo,BlobAcquireLeaseExceptionHeaders:()=>uo,BlobAcquireLeaseHeaders:()=>co,BlobBreakLeaseExceptionHeaders:()=>Eo,BlobBreakLeaseHeaders:()=>yo,BlobChangeLeaseExceptionHeaders:()=>go,BlobChangeLeaseHeaders:()=>mo,BlobCopyFromURLExceptionHeaders:()=>So,BlobCopyFromURLHeaders:()=>Io,BlobCreateSnapshotExceptionHeaders:()=>Co,BlobCreateSnapshotHeaders:()=>bo,BlobDeleteExceptionHeaders:()=>Yi,BlobDeleteHeaders:()=>Wi,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>so,BlobDeleteImmutabilityPolicyHeaders:()=>no,BlobDownloadExceptionHeaders:()=>qi,BlobDownloadHeaders:()=>zi,BlobFlatListSegment:()=>Ss,BlobGetAccountInfoExceptionHeaders:()=>Do,BlobGetAccountInfoHeaders:()=>xo,BlobGetPropertiesExceptionHeaders:()=>ji,BlobGetPropertiesHeaders:()=>Vi,BlobGetTagsExceptionHeaders:()=>Po,BlobGetTagsHeaders:()=>_o,BlobHierarchyListSegment:()=>xs,BlobItemInternal:()=>Qs,BlobName:()=>vs,BlobPrefix:()=>Ds,BlobPropertiesInternal:()=>Rs,BlobQueryExceptionHeaders:()=>ko,BlobQueryHeaders:()=>To,BlobReleaseLeaseExceptionHeaders:()=>po,BlobReleaseLeaseHeaders:()=>Ao,BlobRenewLeaseExceptionHeaders:()=>ho,BlobRenewLeaseHeaders:()=>fo,BlobServiceProperties:()=>rs,BlobServiceStatistics:()=>ds,BlobSetExpiryExceptionHeaders:()=>Xi,BlobSetExpiryHeaders:()=>Ki,BlobSetHttpHeadersExceptionHeaders:()=>eo,BlobSetHttpHeadersHeaders:()=>Zi,BlobSetImmutabilityPolicyExceptionHeaders:()=>ro,BlobSetImmutabilityPolicyHeaders:()=>to,BlobSetLegalHoldExceptionHeaders:()=>oo,BlobSetLegalHoldHeaders:()=>io,BlobSetMetadataExceptionHeaders:()=>lo,BlobSetMetadataHeaders:()=>ao,BlobSetTagsExceptionHeaders:()=>Lo,BlobSetTagsHeaders:()=>Fo,BlobSetTierExceptionHeaders:()=>No,BlobSetTierHeaders:()=>Ro,BlobStartCopyFromURLExceptionHeaders:()=>Bo,BlobStartCopyFromURLHeaders:()=>wo,BlobTag:()=>Cs,BlobTags:()=>bs,BlobUndeleteExceptionHeaders:()=>$i,BlobUndeleteHeaders:()=>Ji,Block:()=>_s,BlockBlobCommitBlockListExceptionHeaders:()=>Ea,BlockBlobCommitBlockListHeaders:()=>ya,BlockBlobGetBlockListExceptionHeaders:()=>Ca,BlockBlobGetBlockListHeaders:()=>ba,BlockBlobPutBlobFromUrlExceptionHeaders:()=>pa,BlockBlobPutBlobFromUrlHeaders:()=>Aa,BlockBlobStageBlockExceptionHeaders:()=>ha,BlockBlobStageBlockFromURLExceptionHeaders:()=>ga,BlockBlobStageBlockFromURLHeaders:()=>ma,BlockBlobStageBlockHeaders:()=>fa,BlockBlobUploadExceptionHeaders:()=>da,BlockBlobUploadHeaders:()=>ua,BlockList:()=>ks,BlockLookupList:()=>Ts,ClearRange:()=>Ls,ContainerAcquireLeaseExceptionHeaders:()=>Ri,ContainerAcquireLeaseHeaders:()=>vi,ContainerBreakLeaseExceptionHeaders:()=>_i,ContainerBreakLeaseHeaders:()=>ki,ContainerChangeLeaseExceptionHeaders:()=>Fi,ContainerChangeLeaseHeaders:()=>Pi,ContainerCreateExceptionHeaders:()=>li,ContainerCreateHeaders:()=>ai,ContainerDeleteExceptionHeaders:()=>Ai,ContainerDeleteHeaders:()=>di,ContainerFilterBlobsExceptionHeaders:()=>Qi,ContainerFilterBlobsHeaders:()=>Si,ContainerGetAccessPolicyExceptionHeaders:()=>mi,ContainerGetAccessPolicyHeaders:()=>hi,ContainerGetAccountInfoExceptionHeaders:()=>Gi,ContainerGetAccountInfoHeaders:()=>Hi,ContainerGetPropertiesExceptionHeaders:()=>ui,ContainerGetPropertiesHeaders:()=>ci,ContainerItem:()=>fs,ContainerListBlobFlatSegmentExceptionHeaders:()=>Oi,ContainerListBlobFlatSegmentHeaders:()=>Li,ContainerListBlobHierarchySegmentExceptionHeaders:()=>Ui,ContainerListBlobHierarchySegmentHeaders:()=>Mi,ContainerProperties:()=>hs,ContainerReleaseLeaseExceptionHeaders:()=>xi,ContainerReleaseLeaseHeaders:()=>Ni,ContainerRenameExceptionHeaders:()=>wi,ContainerRenameHeaders:()=>Ci,ContainerRenewLeaseExceptionHeaders:()=>Ti,ContainerRenewLeaseHeaders:()=>Di,ContainerRestoreExceptionHeaders:()=>bi,ContainerRestoreHeaders:()=>Ei,ContainerSetAccessPolicyExceptionHeaders:()=>yi,ContainerSetAccessPolicyHeaders:()=>gi,ContainerSetMetadataExceptionHeaders:()=>fi,ContainerSetMetadataHeaders:()=>pi,ContainerSubmitBatchExceptionHeaders:()=>Ii,ContainerSubmitBatchHeaders:()=>Bi,CorsRule:()=>ls,DelimitedTextConfiguration:()=>Hs,FilterBlobItem:()=>Es,FilterBlobSegment:()=>ys,GeoReplication:()=>As,JsonTextConfiguration:()=>Gs,KeyInfo:()=>ms,ListBlobsFlatSegmentResponse:()=>Is,ListBlobsHierarchySegmentResponse:()=>Ns,ListContainersSegmentResponse:()=>ps,Logging:()=>ns,Metrics:()=>as,PageBlobClearPagesExceptionHeaders:()=>zo,PageBlobClearPagesHeaders:()=>Go,PageBlobCopyIncrementalExceptionHeaders:()=>ta,PageBlobCopyIncrementalHeaders:()=>ea,PageBlobCreateExceptionHeaders:()=>Mo,PageBlobCreateHeaders:()=>Oo,PageBlobGetPageRangesDiffExceptionHeaders:()=>Jo,PageBlobGetPageRangesDiffHeaders:()=>Yo,PageBlobGetPageRangesExceptionHeaders:()=>Wo,PageBlobGetPageRangesHeaders:()=>jo,PageBlobResizeExceptionHeaders:()=>Ko,PageBlobResizeHeaders:()=>$o,PageBlobUpdateSequenceNumberExceptionHeaders:()=>Zo,PageBlobUpdateSequenceNumberHeaders:()=>Xo,PageBlobUploadPagesExceptionHeaders:()=>Ho,PageBlobUploadPagesFromURLExceptionHeaders:()=>Vo,PageBlobUploadPagesFromURLHeaders:()=>qo,PageBlobUploadPagesHeaders:()=>Uo,PageList:()=>Ps,PageRange:()=>Fs,QueryFormat:()=>Us,QueryRequest:()=>Os,QuerySerialization:()=>Ms,RetentionPolicy:()=>ss,ServiceFilterBlobsExceptionHeaders:()=>oi,ServiceFilterBlobsHeaders:()=>ii,ServiceGetAccountInfoExceptionHeaders:()=>ri,ServiceGetAccountInfoHeaders:()=>ti,ServiceGetPropertiesExceptionHeaders:()=>Ys,ServiceGetPropertiesHeaders:()=>Ws,ServiceGetStatisticsExceptionHeaders:()=>$s,ServiceGetStatisticsHeaders:()=>Js,ServiceGetUserDelegationKeyExceptionHeaders:()=>ei,ServiceGetUserDelegationKeyHeaders:()=>Zs,ServiceListContainersSegmentExceptionHeaders:()=>Xs,ServiceListContainersSegmentHeaders:()=>Ks,ServiceSetPropertiesExceptionHeaders:()=>js,ServiceSetPropertiesHeaders:()=>Vs,ServiceSubmitBatchExceptionHeaders:()=>si,ServiceSubmitBatchHeaders:()=>ni,SignedIdentifier:()=>ws,StaticWebsite:()=>cs,StorageError:()=>us,UserDelegationKey:()=>gs});var l=s(76760);var u=s(3894);var d=s(70857);function getUploadChunkSize(){return 8*1024*1024}function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const n=r.hostname.trimEnd().toUpperCase();const s=n==="GITHUB.COM";const a=n.endsWith(".GHE.COM");const l=n.endsWith(".LOCALHOST");return!s&&!a&&!l}function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}function getConcurrency(){const r=d.cpus().length;let n=32;if(r>4){const s=16*r;n=s>300?300:s}const s=process.env["ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY"];if(s){const r=parseInt(s);if(isNaN(r)||r<1){throw new Error("Invalid value set for ACTIONS_ARTIFACT_UPLOAD_CONCURRENCY env variable")}if(rDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let a="Z";if(r.nanos>0){let n=(r.nanos+1e9).toString().substring(1);if(n.substring(3)==="000000")a="."+n.substring(0,3)+"Z";else if(n.substring(6)==="000")a="."+n.substring(0,6)+"Z";else a="."+n+"Z"}return new Date(s).toISOString().replace(".000Z",a)}internalJsonRead(r,n,s){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,f.typeofJsonValue)(r)+".");let a=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!a)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let l=Date.parse(a[1]+"-"+a[2]+"-"+a[3]+"T"+a[4]+":"+a[5]+":"+a[6]+(a[8]?a[8]:"Z"));if(Number.isNaN(l))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(lDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!s)s=this.create();s.seconds=f.PbLong.from(l/1e3).toString();s.nanos=0;if(a[7])s.nanos=parseInt("1"+a[7]+"0".repeat(9-a[7].length))-1e9;return s}create(r){const n={seconds:"0",nanos:0};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posg},{no:5,name:"version",kind:"scalar",T:5},{no:6,name:"mime_type",kind:"message",T:()=>Q}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posQ}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posQ},{no:4,name:"id_filter",kind:"message",T:()=>C}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posP}])}create(r){const n={artifacts:[]};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posg},{no:7,name:"digest",kind:"message",T:()=>Q}])}create(r){const n={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(n,f.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,f.reflectionMergePartial)(this,n,r);return n}internalBinaryRead(r,n,s,a){let l=a!==null&&a!==void 0?a:this.create(),u=r.pos+n;while(r.posx.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const n=D.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",n);return s.then((r=>T.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const n=k.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",n);return s.then((r=>_.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const n=F.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",n);return s.then((r=>L.fromJson(r,{ignoreUnknownFields:true})))}DeleteArtifact(r){const n=O.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",n);return s.then((r=>M.fromJson(r,{ignoreUnknownFields:true})))}}class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this);this.DeleteArtifact.bind(this)}CreateArtifact(r){const n=CreateArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",n);return s.then((r=>CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const n=FinalizeArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",n);return s.then((r=>FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const n=ListArtifactsRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",n);return s.then((r=>ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const n=GetSignedArtifactURLRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",n);return s.then((r=>GetSignedArtifactURLResponse.fromBinary(r)))}DeleteArtifact(r){const n=DeleteArtifactRequest.toBinary(r);const s=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",n);return s.then((r=>DeleteArtifactResponse.fromBinary(r)))}}function getExpiration(r){if(!r){return undefined}const n=getRetentionDays();if(n&&n"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const G=new Map([...H,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[n,s]of G){if(r.includes(n)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(G.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,u.pq)(`Artifact name is valid!`)}function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[n,s]of H){if(r.includes(n)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${s}\n \nInvalid characters include: ${Array.from(H.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}var z=s(44942);var q=s(92145);var V=s(9002);function getUserAgentString(){return`@actions/artifact-${V.version}`}class FilesNotFoundError extends Error{constructor(r=[]){let n="No files were found to upload";if(r.length>0){n+=`: ${r.join(", ")}`}super(n);this.files=r;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(r){const n=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(n);this.code=r;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")};class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(r){return decodeURIComponent(atob(r).replace(/(.)/g,((r,n)=>{let s=n.charCodeAt(0).toString(16).toUpperCase();if(s.length<2){s="0"+s}return"%"+s})))}function base64UrlDecode(r){let n=r.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(n)}catch(r){return atob(n)}}function jwtDecode(r,n){if(typeof r!=="string"){throw new InvalidTokenError("Invalid token specified: must be a string")}n||(n={});const s=n.header===true?0:1;const a=r.split(".")[s];if(typeof a!=="string"){throw new InvalidTokenError(`Invalid token specified: missing part #${s+1}`)}let l;try{l=base64UrlDecode(a)}catch(r){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${s+1} (${r.message})`)}try{return JSON.parse(l)}catch(r){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${s+1} (${r.message})`)}}const j=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=getRuntimeToken();const n=jwtDecode(r);if(!n.scp){throw j}const s=n.scp.split(" ");if(s.length===0){throw j}for(const r of s){const n=r.split(":");if((n===null||n===void 0?void 0:n[0])!=="Actions.Results"){continue}if(n.length!==3){throw j}const s={workflowRunBackendId:n[1],workflowJobRunBackendId:n[2]};u.Yz(`Workflow Run Backend ID: ${s.workflowRunBackendId}`);u.Yz(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`);return s}throw j}function maskSigUrl(r){if(!r)return;try{const n=new URL(r);const s=n.searchParams.get("sig");if(s){(0,u.Pq)(s);(0,u.Pq)(encodeURIComponent(s))}}catch(n){(0,u.Yz)(`Failed to parse URL: ${r} ${n instanceof Error?n.message:String(n)}`)}}function maskSecretUrls(r){if(typeof r!=="object"||r===null){(0,u.Yz)("body is not an object or is null");return}if("signed_upload_url"in r&&typeof r.signed_upload_url==="string"){maskSigUrl(r.signed_upload_url)}if("signed_url"in r&&typeof r.signed_url==="string"){maskSigUrl(r.signed_url)}}var W=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class ArtifactHttpClient{constructor(r,n,s,a){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const l=getRuntimeToken();this.baseUrl=getResultsServiceUrl();if(n){this.maxAttempts=n}if(s){this.baseRetryIntervalMilliseconds=s}if(a){this.retryMultiplier=a}this.httpClient=new z.Qq(r,[new q.tZ(l)])}request(r,n,s,a){return W(this,void 0,void 0,(function*(){const l=new URL(`/twirp/${r}/${n}`,this.baseUrl).href;(0,u.Yz)(`[Request] ${n} ${l}`);const d={"Content-Type":s};try{const{body:r}=yield this.retryableRequest((()=>W(this,void 0,void 0,(function*(){return this.httpClient.post(l,JSON.stringify(a),d)}))));return r}catch(r){throw new Error(`Failed to ${n}: ${r.message}`)}}))}retryableRequest(r){return W(this,void 0,void 0,(function*(){let n=0;let s="";let a="";while(n=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const n=[z.Hv.BadGateway,z.Hv.GatewayTimeout,z.Hv.InternalServerError,z.Hv.ServiceUnavailable,z.Hv.TooManyRequests];return n.includes(r)}sleep(r){return W(this,void 0,void 0,(function*(){return new Promise((n=>setTimeout(n,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const n=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const s=n*this.retryMultiplier;return Math.trunc(Math.random()*(s-n)+n)}}function internalArtifactTwirpClient(r){const n=new ArtifactHttpClient(getUserAgentString(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new ArtifactServiceClientJSON(n)}function validateRootDirectory(r){if(!A.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!A.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,u.pq)(`Root directory input is valid!`)}function getUploadZipSpecification(r,n){const s=[];n=(0,p.normalize)(n);n=(0,p.resolve)(n);for(let a of r){const r=A.lstatSync(a,{throwIfNoEntry:false});if(!r){throw new Error(`File ${a} does not exist`)}if(!r.isDirectory()){a=(0,p.normalize)(a);a=(0,p.resolve)(a);if(!a.startsWith(n)){throw new Error(`The rootDirectory: ${n} is not a parent directory of the file: ${a}`)}const l=a.replace(n,"");validateFilePath(l);s.push({sourcePath:a,destinationPath:l,stats:r})}else{const l=a.replace(n,"");validateFilePath(l);s.push({sourcePath:null,destinationPath:l,stats:r})}}return s}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}var Y=s(48161);var J=s(57975);var $=s(1708);function log(r,...n){$.stderr.write(`${J.format(r,...n)}${Y.EOL}`)}const K=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let X;let Z=[];let ee=[];const te=[];if(K){enable(K)}const re=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){X=r;Z=[];ee=[];const n=r.split(",").map((r=>r.trim()));for(const r of n){if(r.startsWith("-")){ee.push(r.substring(1))}else{Z.push(r)}}for(const r of te){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const n of ee){if(namespaceMatches(r,n)){return false}}for(const n of Z){if(namespaceMatches(r,n)){return true}}return false}function namespaceMatches(r,n){if(n.indexOf("*")===-1){return r===n}let s=n;if(n.indexOf("**")!==-1){const r=[];let a="";for(const s of n){if(s==="*"&&a==="*"){continue}else{a=s;r.push(s)}}s=r.join("")}let a=0;let l=0;const u=s.length;const d=r.length;let A=-1;let p=-1;while(a=0){l=A+1;a=p+1;if(a===d){return false}while(r[a]!==s[l]){a++;if(a===d){return false}}p=a;a++;l++;continue}else{return false}}const f=a===r.length;const g=l===s.length;const y=l===s.length-1&&s[l]==="*";return f&&(g||y)}function disable(){const r=X||"";enable("");return r}function createDebugger(r){const n=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:re.log,namespace:r,extend:extend});function debug(...s){if(!n.enabled){return}if(s.length>0){s[0]=`${r} ${s[0]}`}n.log(...s)}te.push(n);return n}function destroy(){const r=te.indexOf(this);if(r>=0){te.splice(r,1);return true}return false}function extend(r){const n=createDebugger(`${this.namespace}:${r}`);n.log=this.log;return n}const ne=re;const se=["verbose","info","warning","error"];const ie={verbose:400,info:300,warning:200,error:100};function patchLogMethod(r,n){n.log=(...n)=>{r.log(...n)}}function isTypeSpecRuntimeLogLevel(r){return se.includes(r)}function createLoggerContext(r){const n=new Set;const s=typeof process!=="undefined"&&process.env&&process.env[r.logLevelEnvVarName]||undefined;let a;const l=ne(r.namespace);l.log=(...r)=>{ne.log(...r)};function contextSetLogLevel(r){if(r&&!isTypeSpecRuntimeLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${se.join(",")}`)}a=r;const s=[];for(const r of n){if(shouldEnable(r)){s.push(r.namespace)}}ne.enable(s.join(","))}if(s){if(isTypeSpecRuntimeLogLevel(s)){contextSetLogLevel(s)}else{console.error(`${r.logLevelEnvVarName} set to unknown log level '${s}'; logging is not enabled. Acceptable values: ${se.join(", ")}.`)}}function shouldEnable(r){return Boolean(a&&ie[r.level]<=ie[a])}function createLogger(r,s){const a=Object.assign(r.extend(s),{level:s});patchLogMethod(r,a);if(shouldEnable(a)){const r=ne.disable();ne.enable(r+","+a.namespace)}n.add(a);return a}function contextGetLogLevel(){return a}function contextCreateClientLogger(r){const n=l.extend(r);patchLogMethod(l,n);return{error:createLogger(n,"error"),warning:createLogger(n,"warning"),info:createLogger(n,"info"),verbose:createLogger(n,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:l}}const oe=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const ae=oe.logger;function setLogLevel(r){oe.setLogLevel(r)}function getLogLevel(){return oe.getLogLevel()}function createClientLogger(r){return oe.createClientLogger(r)}function normalizeName(r){return r.toLowerCase()}function*headerIterator(r){for(const n of r.values()){yield[n.name,n.value]}}class HttpHeadersImpl{_headersMap;constructor(r){this._headersMap=new Map;if(r){for(const n of Object.keys(r)){this.set(n,r[n])}}}set(r,n){this._headersMap.set(normalizeName(r),{name:r,value:String(n).trim()})}get(r){return this._headersMap.get(normalizeName(r))?.value}has(r){return this._headersMap.has(normalizeName(r))}delete(r){this._headersMap.delete(normalizeName(r))}toJSON(r={}){const n={};if(r.preserveCase){for(const r of this._headersMap.values()){n[r.name]=r.value}}else{for(const[r,s]of this._headersMap){n[r]=s.value}}return n}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(r){return new HttpHeadersImpl(r)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(r){this.url=r.url;this.body=r.body;this.headers=r.headers??httpHeaders_createHttpHeaders();this.method=r.method??"GET";this.timeout=r.timeout??0;this.multipartBody=r.multipartBody;this.formData=r.formData;this.disableKeepAlive=r.disableKeepAlive??false;this.proxySettings=r.proxySettings;this.streamResponseStatusCodes=r.streamResponseStatusCodes;this.withCredentials=r.withCredentials??false;this.abortSignal=r.abortSignal;this.onUploadProgress=r.onUploadProgress;this.onDownloadProgress=r.onDownloadProgress;this.requestId=r.requestId||randomUUID();this.allowInsecureConnection=r.allowInsecureConnection??false;this.enableBrowserStreams=r.enableBrowserStreams??false;this.requestOverrides=r.requestOverrides;this.authSchemes=r.authSchemes}}function pipelineRequest_createPipelineRequest(r){return new PipelineRequestImpl(r)}const le=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(r){this._policies=r?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(r,n={}){if(n.phase&&n.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(n.phase&&!le.has(n.phase)){throw new Error(`Invalid phase name: ${n.phase}`)}if(n.afterPhase&&!le.has(n.afterPhase)){throw new Error(`Invalid afterPhase name: ${n.afterPhase}`)}this._policies.push({policy:r,options:n});this._orderedPolicies=undefined}removePolicy(r){const n=[];this._policies=this._policies.filter((s=>{if(r.name&&s.policy.name===r.name||r.phase&&s.options.phase===r.phase){n.push(s.policy);return false}else{return true}}));this._orderedPolicies=undefined;return n}sendRequest(r,n){const s=this.getOrderedPolicies();const a=s.reduceRight(((r,n)=>s=>n.sendRequest(s,r)),(n=>r.sendRequest(n)));return a(n)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const r=[];const n=new Map;function createPhase(r){return{name:r,policies:new Set,hasRun:false,hasAfterPolicies:false}}const s=createPhase("Serialize");const a=createPhase("None");const l=createPhase("Deserialize");const u=createPhase("Retry");const d=createPhase("Sign");const A=[s,a,l,u,d];function getPhase(r){if(r==="Retry"){return u}else if(r==="Serialize"){return s}else if(r==="Deserialize"){return l}else if(r==="Sign"){return d}else{return a}}for(const r of this._policies){const s=r.policy;const a=r.options;const l=s.name;if(n.has(l)){throw new Error("Duplicate policy names not allowed in pipeline")}const u={policy:s,dependsOn:new Set,dependants:new Set};if(a.afterPhase){u.afterPhase=getPhase(a.afterPhase);u.afterPhase.hasAfterPolicies=true}n.set(l,u);const d=getPhase(a.phase);d.policies.add(u)}for(const r of this._policies){const{policy:s,options:a}=r;const l=s.name;const u=n.get(l);if(!u){throw new Error(`Missing node for policy ${l}`)}if(a.afterPolicies){for(const r of a.afterPolicies){const s=n.get(r);if(s){u.dependsOn.add(s);s.dependants.add(u)}}}if(a.beforePolicies){for(const r of a.beforePolicies){const s=n.get(r);if(s){s.dependsOn.add(u);u.dependants.add(s)}}}}function walkPhase(s){s.hasRun=true;for(const a of s.policies){if(a.afterPhase&&(!a.afterPhase.hasRun||a.afterPhase.policies.size)){continue}if(a.dependsOn.size===0){r.push(a.policy);for(const r of a.dependants){r.dependsOn.delete(a)}n.delete(a.policy.name);s.policies.delete(a)}}}function walkPhases(){for(const r of A){walkPhase(r);if(r.policies.size>0&&r!==a){if(!a.hasRun){walkPhase(a)}return}if(r.hasAfterPolicies){walkPhase(a)}}}let p=0;while(n.size>0){p++;const n=r.length;walkPhases();if(r.length<=n&&p>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return r}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const n=typeof r.name==="string";const s=typeof r.message==="string";return n&&s}return false}const ce=J.inspect.custom;const ue="REDACTED";const de=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Ae=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:r=[],additionalAllowedQueryParameters:n=[]}={}){r=de.concat(r);n=Ae.concat(n);this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(n.map((r=>r.toLowerCase())))}sanitize(r){const n=new Set;return JSON.stringify(r,((r,s)=>{if(s instanceof Error){return{...s,name:s.name,message:s.message}}if(r==="headers"){return this.sanitizeHeaders(s)}else if(r==="url"){return this.sanitizeUrl(s)}else if(r==="query"){return this.sanitizeQuery(s)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(s)||isObject(s)){if(n.has(s)){return"[Circular]"}n.add(s)}return s}),2)}sanitizeUrl(r){if(typeof r!=="string"||r===null||r===""){return r}const n=new URL(r);if(!n.search){return r}for(const[r]of n.searchParams){if(!this.allowedQueryParameters.has(r.toLowerCase())){n.searchParams.set(r,ue)}}return n.toString()}sanitizeHeaders(r){const n={};for(const s of Object.keys(r)){if(this.allowedHeaderNames.has(s.toLowerCase())){n[s]=r[s]}else{n[s]=ue}}return n}sanitizeQuery(r){if(typeof r!=="object"||r===null){return r}const n={};for(const s of Object.keys(r)){if(this.allowedQueryParameters.has(s.toLowerCase())){n[s]=r[s]}else{n[s]=ue}}return n}}const pe=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(r,n={}){super(r);this.name="RestError";this.code=n.code;this.statusCode=n.statusCode;Object.defineProperty(this,"request",{value:n.request,enumerable:false});Object.defineProperty(this,"response",{value:n.response,enumerable:false});const s=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,ce,{value:()=>`RestError: ${this.message} \n ${pe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(r){if(r instanceof restError_RestError){return true}return isError(r)&&r.name==="RestError"}var fe=s(37067);const he=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:https");var me=s(38522);var ge=s(57075);const ye=createClientLogger("ts-http-runtime");const Ee={};function nodeHttpClient_isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r){if(r.readable===false){return Promise.resolve()}return new Promise((n=>{const handler=()=>{n();r.removeListener("close",handler);r.removeListener("end",handler);r.removeListener("error",handler)};r.on("close",handler);r.on("end",handler);r.on("error",handler)}))}function isArrayBuffer(r){return r&&typeof r.byteLength==="number"}class ReportTransform extends ge.Transform{loadedBytes=0;progressCallback;_transform(r,n,s){this.push(r);this.loadedBytes+=r.length;try{this.progressCallback({loadedBytes:this.loadedBytes});s()}catch(r){s(r)}}constructor(r){super();this.progressCallback=r}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(r){const n=new AbortController;let s;if(r.abortSignal){if(r.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}s=r=>{if(r.type==="abort"){n.abort()}};r.abortSignal.addEventListener("abort",s)}let a;if(r.timeout>0){a=setTimeout((()=>{const s=new Sanitizer;ye.info(`request to '${s.sanitizeUrl(r.url)}' timed out. canceling...`);n.abort()}),r.timeout)}const l=r.headers.get("Accept-Encoding");const u=l?.includes("gzip")||l?.includes("deflate");let d=typeof r.body==="function"?r.body():r.body;if(d&&!r.headers.has("Content-Length")){const n=getBodyLength(d);if(n!==null){r.headers.set("Content-Length",n)}}let A;try{if(d&&r.onUploadProgress){const n=r.onUploadProgress;const s=new ReportTransform(n);s.on("error",(r=>{ye.error("Error in upload progress",r)}));if(nodeHttpClient_isReadableStream(d)){d.pipe(s)}else{s.end(d)}d=s}const s=await this.makeRequest(r,n,d);if(a!==undefined){clearTimeout(a)}const l=getResponseHeaders(s);const p=s.statusCode??0;const f={status:p,headers:l,request:r};if(r.method==="HEAD"){s.resume();return f}A=u?getDecodedResponseStream(s,l):s;const g=r.onDownloadProgress;if(g){const r=new ReportTransform(g);r.on("error",(r=>{ye.error("Error in download progress",r)}));A.pipe(r);A=r}if(r.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||r.streamResponseStatusCodes?.has(f.status)){f.readableStreamBody=A}else{f.bodyAsText=await streamToText(A)}return f}finally{if(r.abortSignal&&s){let n=Promise.resolve();if(nodeHttpClient_isReadableStream(d)){n=isStreamComplete(d)}let a=Promise.resolve();if(nodeHttpClient_isReadableStream(A)){a=isStreamComplete(A)}Promise.all([n,a]).then((()=>{if(s){r.abortSignal?.removeEventListener("abort",s)}})).catch((r=>{ye.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}makeRequest(r,n,s){const a=new URL(r.url);const l=a.protocol!=="https:";if(l&&!r.allowInsecureConnection){throw new Error(`Cannot connect to ${r.url} while allowInsecureConnection is false.`)}const u=r.agent??this.getOrCreateAgent(r,l);const d={agent:u,hostname:a.hostname,path:`${a.pathname}${a.search}`,port:a.port,method:r.method,headers:r.headers.toJSON({preserveCase:true}),...r.requestOverrides};return new Promise(((a,u)=>{const A=l?fe.request(d,a):he.request(d,a);A.once("error",(n=>{u(new restError_RestError(n.message,{code:n.code??restError_RestError.REQUEST_SEND_ERROR,request:r}))}));n.signal.addEventListener("abort",(()=>{const r=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(r);u(r)}));if(s&&nodeHttpClient_isReadableStream(s)){s.pipe(A)}else if(s){if(typeof s==="string"||Buffer.isBuffer(s)){A.end(s)}else if(isArrayBuffer(s)){A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s))}else{ye.error("Unrecognized body type",s);u(new restError_RestError("Unrecognized body type"))}}else{A.end()}}))}getOrCreateAgent(r,n){const s=r.disableKeepAlive;if(n){if(s){return fe.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new fe.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(s&&!r.tlsSettings){return he.globalAgent}const n=r.tlsSettings??Ee;let a=this.cachedHttpsAgents.get(n);if(a&&a.options.keepAlive===!s){return a}ye.info("No cached TLS Agent exist, creating a new Agent");a=new he.Agent({keepAlive:!s,...n});this.cachedHttpsAgents.set(n,a);return a}}}function getResponseHeaders(r){const n=httpHeaders_createHttpHeaders();for(const s of Object.keys(r.headers)){const a=r.headers[s];if(Array.isArray(a)){if(a.length>0){n.set(s,a[0])}}else if(a){n.set(s,a)}}return n}function getDecodedResponseStream(r,n){const s=n.get("Content-Encoding");if(s==="gzip"){const n=me.createGunzip();r.pipe(n);return n}else if(s==="deflate"){const n=me.createInflate();r.pipe(n);return n}return r}function streamToText(r){return new Promise(((n,s)=>{const a=[];r.on("data",(r=>{if(Buffer.isBuffer(r)){a.push(r)}else{a.push(Buffer.from(r))}}));r.on("end",(()=>{n(Buffer.concat(a).toString("utf8"))}));r.on("error",(r=>{if(r&&r?.name==="AbortError"){s(r)}else{s(new restError_RestError(`Error reading response as text: ${r.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(r){if(!r){return 0}else if(Buffer.isBuffer(r)){return r.length}else if(nodeHttpClient_isReadableStream(r)){return null}else if(isArrayBuffer(r)){return r.byteLength}else if(typeof r==="string"){return Buffer.from(r).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const be="logPolicy";function logPolicy_logPolicy(r={}){const n=r.logger??ye.info;const s=new Sanitizer({additionalAllowedHeaderNames:r.additionalAllowedHeaderNames,additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});return{name:be,async sendRequest(r,a){if(!n.enabled){return a(r)}n(`Request: ${s.sanitize(r)}`);const l=await a(r);n(`Response status code: ${l.status}`);n(`Headers: ${s.sanitize(l.headers)}`);return l}}}const Ce="redirectPolicy";const we=["GET","HEAD"];function redirectPolicy_redirectPolicy(r={}){const{maxRetries:n=20,allowCrossOriginRedirects:s=false}=r;return{name:Ce,async sendRequest(r,a){const l=await a(r);return handleRedirect(a,l,n,s)}}}async function handleRedirect(r,n,s,a,l=0){const{request:u,status:d,headers:A}=n;const p=A.get("location");if(p&&(d===300||d===301&&we.includes(u.method)||d===302&&we.includes(u.method)||d===303&&u.method==="POST"||d===307)&&l{let u=undefined;let d=undefined;const rejectOnAbort=()=>l(new AbortError(s?.abortErrorMsg?s?.abortErrorMsg:Se));const removeListeners=()=>{if(s?.abortSignal&&d){s.abortSignal.removeEventListener("abort",d)}};d=()=>{if(u){clearTimeout(u)}removeListeners();return rejectOnAbort()};if(s?.abortSignal&&s.abortSignal.aborted){return rejectOnAbort()}u=setTimeout((()=>{removeListeners();a(n)}),r);if(s?.abortSignal){s.abortSignal.addEventListener("abort",d)}}))}function parseHeaderValueAsNumber(r,n){const s=r.headers.get(n);if(!s)return;const a=Number(s);if(Number.isNaN(a))return;return a}const Qe="Retry-After";const ve=["retry-after-ms","x-ms-retry-after-ms",Qe];function getRetryAfterInMs(r){if(!(r&&[429,503].includes(r.status)))return undefined;try{for(const n of ve){const s=parseHeaderValueAsNumber(r,n);if(s===0||s){const r=n===Qe?1e3:1;return s*r}}const n=r.headers.get(Qe);if(!n)return;const s=Date.parse(n);const a=s-Date.now();return Number.isFinite(a)?Math.max(0,a):undefined}catch{return undefined}}function isThrottlingRetryResponse(r){return Number.isFinite(getRetryAfterInMs(r))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:r}){const n=getRetryAfterInMs(r);if(!Number.isFinite(n)){return{skipStrategy:true}}return{retryAfterInMs:n}}}}const Re=1e3;const Ne=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(r={}){const n=r.retryDelayInMs??Re;const s=r.maxRetryDelayInMs??Ne;return{name:"exponentialRetryStrategy",retry({retryCount:a,response:l,responseError:u}){const d=isSystemError(u);const A=d&&r.ignoreSystemErrors;const p=isExponentialRetryResponse(l);const f=p&&r.ignoreHttpStatusCodes;const g=l&&(isThrottlingRetryResponse(l)||!p);if(g||f||A){return{skipStrategy:true}}if(u&&!d&&!p){return{errorToThrow:u}}return calculateRetryDelay(a,{retryDelayInMs:n,maxRetryDelayInMs:s})}}}function isExponentialRetryResponse(r){return Boolean(r&&r.status!==undefined&&(r.status>=500||r.status===408)&&r.status!==501&&r.status!==505)}function isSystemError(r){if(!r){return false}return r.code==="ETIMEDOUT"||r.code==="ESOCKETTIMEDOUT"||r.code==="ECONNREFUSED"||r.code==="ECONNRESET"||r.code==="ENOENT"||r.code==="ENOTFOUND"}const xe="0.3.4";const De=3;const Te=createClientLogger("ts-http-runtime retryPolicy");const ke="retryPolicy";function retryPolicy_retryPolicy(r,n={maxRetries:De}){const s=n.logger||Te;return{name:ke,async sendRequest(a,l){let u;let d;let A=-1;e:while(true){A+=1;u=undefined;d=undefined;try{s.info(`Retry ${A}: Attempting to send request`,a.requestId);u=await l(a);s.info(`Retry ${A}: Received a response from request`,a.requestId)}catch(r){s.error(`Retry ${A}: Received an error from request`,a.requestId);d=r;if(!r||d.name!=="RestError"){throw r}u=d.response}if(a.abortSignal?.aborted){s.error(`Retry ${A}: Request aborted.`);const r=new AbortError;throw r}if(A>=(n.maxRetries??De)){s.info(`Retry ${A}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(u){return u}else{throw new Error("Maximum retries reached with no response or error to throw")}}s.info(`Retry ${A}: Processing ${r.length} retry strategies.`);t:for(const n of r){const r=n.logger||s;r.info(`Retry ${A}: Processing retry strategy ${n.name}.`);const l=n.retry({retryCount:A,response:u,responseError:d});if(l.skipStrategy){r.info(`Retry ${A}: Skipped.`);continue t}const{errorToThrow:p,retryAfterInMs:f,redirectTo:g}=l;if(p){r.error(`Retry ${A}: Retry strategy ${n.name} throws error:`,p);throw p}if(f||f===0){r.info(`Retry ${A}: Retry strategy ${n.name} retries after ${f}`);await helpers_delay(f,undefined,{abortSignal:a.abortSignal});continue e}if(g){r.info(`Retry ${A}: Retry strategy ${n.name} redirects to ${g}`);a.url=g;continue e}}if(d){s.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(u){s.info(`None of the retry strategies could work with the received response. Returning it.`);return u}}}}}const _e="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(r={}){return{name:_e,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(r)],{maxRetries:r.maxRetries??De}).sendRequest}}function bytesEncoding_uint8ArrayToString(r,n){return Buffer.from(r).toString(n)}function bytesEncoding_stringToUint8Array(r,n){return Buffer.from(r,n)}const Pe=typeof window!=="undefined"&&typeof window.document!=="undefined";const Fe=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Le=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const Oe=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const Me=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const Ue=Me&&!Oe&&!Le;const He=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const Ge="formDataPolicy";function formDataToFormDataMap(r){const n={};for(const[s,a]of r.entries()){n[s]??=[];n[s].push(a)}return n}function formDataPolicy_formDataPolicy(){return{name:Ge,async sendRequest(r,n){if(Me&&typeof FormData!=="undefined"&&r.body instanceof FormData){r.formData=formDataToFormDataMap(r.body);r.body=undefined}if(r.formData){const n=r.headers.get("Content-Type");if(n&&n.indexOf("application/x-www-form-urlencoded")!==-1){r.body=wwwFormUrlEncode(r.formData)}else{await prepareFormData(r.formData,r)}r.formData=undefined}return n(r)}}}function wwwFormUrlEncode(r){const n=new URLSearchParams;for(const[s,a]of Object.entries(r)){if(Array.isArray(a)){for(const r of a){n.append(s,r.toString())}}else{n.append(s,a.toString())}}return n.toString()}async function prepareFormData(r,n){const s=n.headers.get("Content-Type");if(s&&!s.startsWith("multipart/form-data")){return}n.headers.set("Content-Type",s??"multipart/form-data");const a=[];for(const[n,s]of Object.entries(r)){for(const r of Array.isArray(s)?s:[s]){if(typeof r==="string"){a.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${n}"`}),body:bytesEncoding_stringToUint8Array(r,"utf-8")})}else if(r===undefined||r===null||typeof r!=="object"){throw new Error(`Unexpected value for key ${n}: ${r}. Value should be serialized to string first.`)}else{const s=r.name||"blob";const l=httpHeaders_createHttpHeaders();l.set("Content-Disposition",`form-data; name="${n}"; filename="${s}"`);l.set("Content-Type",r.type||"application/octet-stream");a.push({headers:l,body:r})}}}n.multipartBody={parts:a}}var ze=s(3669);var qe=s(81970);const Ve="HTTPS_PROXY";const je="HTTP_PROXY";const We="ALL_PROXY";const Ye="NO_PROXY";const Je="proxyPolicy";const $e=[];let Ke=false;const Xe=new Map;function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(Ve);const n=getEnvironmentValue(We);const s=getEnvironmentValue(je);return r||n||s}function isBypassed(r,n,s){if(n.length===0){return false}const a=new URL(r).hostname;if(s?.has(a)){return s.get(a)}let l=false;for(const r of n){if(r[0]==="."){if(a.endsWith(r)){l=true}else{if(a.length===r.length-1&&a===r.slice(1)){l=true}}}else{if(a===r){l=true}}}s?.set(a,l);return l}function loadNoProxy(){const r=getEnvironmentValue(Ye);Ke=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const n=new URL(r);const s=n.protocol?n.protocol+"//":"";return{host:s+n.hostname,port:Number.parseInt(n.port||"80"),username:n.username,password:n.password}}function getDefaultProxySettingsInternal(){const r=loadEnvironmentProxyValue();return r?new URL(r):undefined}function getUrlFromProxySettings(r){let n;try{n=new URL(r.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${r.host}".`)}n.port=String(r.port);if(r.username){n.username=r.username}if(r.password){n.password=r.password}return n}function setProxyAgentOnRequest(r,n,s){if(r.agent){return}const a=new URL(r.url);const l=a.protocol!=="https:";if(r.tlsSettings){ye.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const u=r.headers.toJSON();if(l){if(!n.httpProxyAgent){n.httpProxyAgent=new qe.HttpProxyAgent(s,{headers:u})}r.agent=n.httpProxyAgent}else{if(!n.httpsProxyAgent){n.httpsProxyAgent=new ze.HttpsProxyAgent(s,{headers:u})}r.agent=n.httpsProxyAgent}}function proxyPolicy_proxyPolicy(r,n){if(!Ke){$e.push(...loadNoProxy())}const s=r?getUrlFromProxySettings(r):getDefaultProxySettingsInternal();const a={};return{name:Je,async sendRequest(r,l){if(!r.proxySettings&&s&&!isBypassed(r.url,n?.customNoProxyList??$e,n?.customNoProxyList?undefined:Xe)){setProxyAgentOnRequest(r,a,s)}else if(r.proxySettings){setProxyAgentOnRequest(r,a,getUrlFromProxySettings(r.proxySettings))}return l(r)}}}function isNodeReadableStream(r){return Boolean(r&&typeof r["pipe"]==="function")}function isWebReadableStream(r){return Boolean(r&&typeof r.getReader==="function"&&typeof r.tee==="function")}function typeGuards_isBinaryBody(r){return r!==undefined&&(r instanceof Uint8Array||typeGuards_isReadableStream(r)||typeof r==="function"||r instanceof Blob)}function typeGuards_isReadableStream(r){return isNodeReadableStream(r)||isWebReadableStream(r)}function typeGuards_isBlob(r){return typeof r.stream==="function"}var Ze=s(2203);async function*streamAsyncIterator(){const r=this.getReader();try{while(true){const{done:n,value:s}=await r.read();if(n){return}yield s}}finally{r.releaseLock()}}function makeAsyncIterable(r){if(!r[Symbol.asyncIterator]){r[Symbol.asyncIterator]=streamAsyncIterator.bind(r)}if(!r.values){r.values=streamAsyncIterator.bind(r)}}function ensureNodeStream(r){if(r instanceof ReadableStream){makeAsyncIterable(r);return Ze.Readable.fromWeb(r)}else{return r}}function toStream(r){if(r instanceof Uint8Array){return Ze.Readable.from(Buffer.from(r))}else if(typeGuards_isBlob(r)){return ensureNodeStream(r.stream())}else{return ensureNodeStream(r)}}async function concat(r){return function(){const n=r.map((r=>typeof r==="function"?r():r)).map(toStream);return Ze.Readable.from(async function*(){for(const r of n){for await(const n of r){yield n}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(r){let n="";for(const[s,a]of r){n+=`${s}: ${a}\r\n`}return n}function getLength(r){if(r instanceof Uint8Array){return r.byteLength}else if(typeGuards_isBlob(r)){return r.size===-1?undefined:r.size}else{return undefined}}function getTotalLength(r){let n=0;for(const s of r){const r=getLength(s);if(r===undefined){return undefined}else{n+=r}}return n}async function buildRequestBody(r,n,s){const a=[bytesEncoding_stringToUint8Array(`--${s}`,"utf-8"),...n.flatMap((r=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(r.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),r.body,bytesEncoding_stringToUint8Array(`\r\n--${s}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const l=getTotalLength(a);if(l){r.headers.set("Content-Length",l)}r.body=await concat(a)}const et="multipartPolicy";const tt=70;const rt=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(r){if(r.length>tt){throw new Error(`Multipart boundary "${r}" exceeds maximum length of 70 characters`)}if(Array.from(r).some((r=>!rt.has(r)))){throw new Error(`Multipart boundary "${r}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:et,async sendRequest(r,n){if(!r.multipartBody){return n(r)}if(r.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let s=r.multipartBody.boundary;const a=r.headers.get("Content-Type")??"multipart/mixed";const l=a.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!l){throw new Error(`Got multipart request body, but content-type header was not multipart: ${a}`)}const[,u,d]=l;if(d&&s&&d!==s){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${s} in the request body`)}s??=d;if(s){assertValidBoundary(s)}else{s=generateBoundary()}r.headers.set("Content-Type",`${u}; boundary=${s}`);await buildRequestBody(r,r.multipartBody.parts,s);r.multipartBody=undefined;return n(r)}}}function createPipelineFromOptions_createPipelineFromOptions(r){const n=createEmptyPipeline();if(isNodeLike){if(r.agent){n.addPolicy(agentPolicy(r.agent))}if(r.tlsOptions){n.addPolicy(tlsPolicy(r.tlsOptions))}n.addPolicy(proxyPolicy(r.proxyOptions));n.addPolicy(decompressResponsePolicy())}n.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});n.addPolicy(userAgentPolicy(r.userAgentOptions));n.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});n.addPolicy(defaultRetryPolicy(r.retryOptions),{phase:"Retry"});if(isNodeLike){n.addPolicy(redirectPolicy(r.redirectOptions),{afterPhase:"Retry"})}n.addPolicy(logPolicy(r.loggingOptions),{afterPhase:"Sign"});return n}let nt=false;function allowInsecureConnection(r,n){if(n.allowInsecureConnection&&r.allowInsecureConnection){const n=new URL(r.url);if(n.hostname==="localhost"||n.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const r="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(r);if(typeof process?.emitWarning==="function"&&!nt){nt=true;process.emitWarning(r)}}function checkInsecureConnection_ensureSecureConnection(r,n){if(!r.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(r,n)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const st="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(r){return{name:st,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="apiKey"));if(!a){return s(n)}if(a.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${a.apiKeyLocation}`)}n.headers.set(a.name,r.credential.key);return s(n)}}}const it="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(r){return{name:it,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="http"&&r.scheme==="basic"));if(!a){return s(n)}const{username:l,password:u}=r.credential;const d=uint8ArrayToString(stringToUint8Array(`${l}:${u}`,"utf-8"),"base64");n.headers.set("Authorization",`Basic ${d}`);return s(n)}}}const ot="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(r){return{name:ot,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="http"&&r.scheme==="bearer"));if(!a){return s(n)}const l=await r.credential.getBearerToken({abortSignal:n.abortSignal});n.headers.set("Authorization",`Bearer ${l}`);return s(n)}}}const at="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(r){return{name:at,async sendRequest(n,s){ensureSecureConnection(n,r);const a=(n.authSchemes??r.authSchemes)?.find((r=>r.kind==="oauth2"));if(!a){return s(n)}const l=await r.credential.getOAuth2Token(a.flows,{abortSignal:n.abortSignal});n.headers.set("Authorization",`Bearer ${l}`);return s(n)}}}let lt;function clientHelpers_createDefaultPipeline(r={}){const n=createPipelineFromOptions(r);n.addPolicy(apiVersionPolicy(r));const{credential:s,authSchemes:a,allowInsecureConnection:l}=r;if(s){if(isApiKeyCredential(s)){n.addPolicy(apiKeyAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isBasicCredential(s)){n.addPolicy(basicAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isBearerTokenCredential(s)){n.addPolicy(bearerAuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}else if(isOAuth2TokenCredential(s)){n.addPolicy(oauth2AuthenticationPolicy({authSchemes:a,credential:s,allowInsecureConnection:l}))}}return n}function clientHelpers_getCachedDefaultHttpsClient(){if(!lt){lt=createDefaultHttpClient()}return lt}function getHeaderValue(r,n){if(r.headers){const s=Object.keys(r.headers).find((r=>r.toLowerCase()===n.toLowerCase()));if(s){return r.headers[s]}}return undefined}function getPartContentType(r){const n=getHeaderValue(r,"content-type");if(n){return n}if(r.contentType===null){return undefined}if(r.contentType){return r.contentType}const{body:s}=r;if(s===null||s===undefined){return undefined}if(typeof s==="string"||typeof s==="number"||typeof s==="boolean"){return"text/plain; charset=UTF-8"}if(s instanceof Blob){return s.type||"application/octet-stream"}if(isBinaryBody(s)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(r){return JSON.stringify(r)}function getContentDisposition(r){const n=getHeaderValue(r,"content-disposition");if(n){return n}if(r.dispositionType===undefined&&r.name===undefined&&r.filename===undefined){return undefined}const s=r.dispositionType??"form-data";let a=s;if(r.name){a+=`; name=${escapeDispositionField(r.name)}`}let l=undefined;if(r.filename){l=r.filename}else if(typeof File!=="undefined"&&r.body instanceof File){const n=r.body.name;if(n!==""){l=n}}if(l){a+=`; filename=${escapeDispositionField(l)}`}return a}function normalizeBody(r,n){if(r===undefined){return new Uint8Array([])}if(isBinaryBody(r)){return r}if(typeof r==="string"||typeof r==="number"||typeof r==="boolean"){return stringToUint8Array(String(r),"utf-8")}if(n&&/application\/(.+\+)?json(;.+)?/i.test(String(n))){return stringToUint8Array(JSON.stringify(r),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${r}, ${n}`)}function buildBodyPart(r){const n=getPartContentType(r);const s=getContentDisposition(r);const a=createHttpHeaders(r.headers??{});if(n){a.set("content-type",n)}if(s){a.set("content-disposition",s)}const l=normalizeBody(r.body,n);return{headers:a,body:l}}function multipart_buildMultipartBody(r){return{parts:r.map(buildBodyPart)}}async function sendRequest_sendRequest(r,n,s,a={},l){const u=l??getCachedDefaultHttpsClient();const d=buildPipelineRequest(r,n,a);try{const r=await s.sendRequest(u,d);const n=r.headers.toJSON();const l=r.readableStreamBody??r.browserStreamBody;const A=a.responseAsStream||l!==undefined?undefined:getResponseBody(r);const p=l??A;if(a?.onResponse){a.onResponse({...r,request:d,rawHeaders:n,parsedBody:A})}return{request:d,headers:n,status:`${r.status}`,body:p}}catch(r){if(isRestError(r)&&r.response&&a.onResponse){const{response:n}=r;const s=n.headers.toJSON();a?.onResponse({...n,request:d,rawHeaders:s},r)}throw r}}function getRequestContentType(r={}){return r.contentType??r.headers?.["content-type"]??getContentType(r.body)}function getContentType(r){if(r===undefined){return undefined}if(ArrayBuffer.isView(r)){return"application/octet-stream"}if(isBlob(r)&&r.type){return r.type}if(typeof r==="string"){try{JSON.parse(r);return"application/json"}catch(r){return undefined}}return"application/json"}function buildPipelineRequest(r,n,s={}){const a=getRequestContentType(s);const{body:l,multipartBody:u}=getRequestBody(s.body,a);const d=createHttpHeaders({...s.headers?s.headers:{},accept:s.accept??s.headers?.accept??"application/json",...a&&{"content-type":a}});return createPipelineRequest({url:n,method:r,body:l,multipartBody:u,headers:d,allowInsecureConnection:s.allowInsecureConnection,abortSignal:s.abortSignal,onUploadProgress:s.onUploadProgress,onDownloadProgress:s.onDownloadProgress,timeout:s.timeout,enableBrowserStreams:true,streamResponseStatusCodes:s.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(r,n=""){if(r===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&r instanceof FormData){return{body:r}}if(isBlob(r)){return{body:r}}if(isReadableStream(r)||typeof r==="function"){return{body:r}}if(ArrayBuffer.isView(r)){return{body:r instanceof Uint8Array?r:JSON.stringify(r)}}const s=n.split(";")[0];switch(s){case"application/json":return{body:JSON.stringify(r)};case"multipart/form-data":if(Array.isArray(r)){return{multipartBody:buildMultipartBody(r)}}return{body:JSON.stringify(r)};case"text/plain":return{body:String(r)};default:if(typeof r==="string"){return{body:r}}return{body:JSON.stringify(r)}}}function getResponseBody(r){const n=r.headers.get("content-type")??"";const s=n.split(";")[0];const a=r.bodyAsText??"";if(s==="text/plain"){return String(a)}try{return a?JSON.parse(a):undefined}catch(n){if(s==="application/json"){throw createParseError(r,n)}return String(a)}}function createParseError(r,n){const s=`Error "${n}" occurred while parsing the response body - ${r.bodyAsText}.`;const a=n.code??RestError.PARSE_ERROR;return new RestError(s,{code:a,statusCode:r.status,request:r.request,response:r})}function getClient(r,n={}){const s=n.pipeline??createDefaultPipeline(n);if(n.additionalPolicies?.length){for(const{policy:r,position:a}of n.additionalPolicies){const n=a==="perRetry"?"Sign":undefined;s.addPolicy(r,{afterPhase:n})}}const{allowInsecureConnection:a,httpClient:l}=n;const u=n.endpoint??r;const client=(r,...n)=>{const getUrl=s=>buildRequestUrl(u,r,n,{allowInsecureConnection:a,...s});return{get:(r={})=>buildOperation("GET",getUrl(r),s,r,a,l),post:(r={})=>buildOperation("POST",getUrl(r),s,r,a,l),put:(r={})=>buildOperation("PUT",getUrl(r),s,r,a,l),patch:(r={})=>buildOperation("PATCH",getUrl(r),s,r,a,l),delete:(r={})=>buildOperation("DELETE",getUrl(r),s,r,a,l),head:(r={})=>buildOperation("HEAD",getUrl(r),s,r,a,l),options:(r={})=>buildOperation("OPTIONS",getUrl(r),s,r,a,l),trace:(r={})=>buildOperation("TRACE",getUrl(r),s,r,a,l)}};return{path:client,pathUnchecked:client,pipeline:s}}function buildOperation(r,n,s,a,l,u){l=a.allowInsecureConnection??l;return{then:function(d,A){return sendRequest(r,n,s,{...a,allowInsecureConnection:l},u).then(d,A)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(r,n,s,{...a,allowInsecureConnection:l,responseAsStream:true},u)}},async asNodeStream(){if(isNodeLike){return sendRequest(r,n,s,{...a,allowInsecureConnection:l,responseAsStream:true},u)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(r,n){const s=typeof r==="string"?n:r;const a=s.body?.error??s.body;const l=typeof r==="string"?r:a?.message??`Unexpected status code: ${s.status}`;return new RestError(l,{statusCode:statusCodeToNumber(s.status),code:a?.code,request:s.request,response:toPipelineResponse(s)})}function toPipelineResponse(r){return{headers:createHttpHeaders(r.headers),request:r.request,status:statusCodeToNumber(r.status)??-1}}function statusCodeToNumber(r){const n=Number.parseInt(r);return Number.isNaN(n)?undefined:n}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const ct=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const ut=ct.logger;function esm_setLogLevel(r){ct.setLogLevel(r)}function esm_getLogLevel(){return ct.getLogLevel()}function esm_createClientLogger(r){return ct.createClientLogger(r)}const dt=esm_createClientLogger("core-rest-pipeline");const At="agentPolicy";function agentPolicy_agentPolicy(r){return{name:At,sendRequest:async(n,s)=>{if(!n.agent){n.agent=r}return s(n)}}}const pt="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:pt,async sendRequest(r,n){if(r.method!=="HEAD"){r.headers.set("Accept-Encoding","gzip,deflate")}return n(r)}}}const ft="exponentialRetryPolicy";function exponentialRetryPolicy(r={}){return retryPolicy([exponentialRetryStrategy({...r,ignoreSystemErrors:true})],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const ht="systemErrorRetryPolicy";function systemErrorRetryPolicy(r={}){return{name:ht,sendRequest:retryPolicy([exponentialRetryStrategy({...r,ignoreHttpStatusCodes:true})],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const mt="throttlingRetryPolicy";function throttlingRetryPolicy(r={}){return{name:mt,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:r.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const gt="tlsPolicy";function tlsPolicy_tlsPolicy(r){return{name:gt,sendRequest:async(n,s)=>{if(!n.tlsSettings){n.tlsSettings=r}return s(n)}}}const yt=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(r={}){return logPolicy_logPolicy({logger:dt.info,...r})}const Et=Ce;function policies_redirectPolicy_redirectPolicy(r={}){return redirectPolicy_redirectPolicy(r)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(r){if($&&$.versions){const n=`${Y.type()} ${Y.release()}; ${Y.arch()}`;const s=$.versions;if(s.bun){r.set("Bun",`${s.bun} (${n})`)}else if(s.deno){r.set("Deno",`${s.deno} (${n})`)}else if(s.node){r.set("Node",`${s.node} (${n})`)}}}const bt="1.22.3";const Ct=3;function util_userAgent_getUserAgentString(r){const n=[];for(const[s,a]of r){const r=a?`${s}/${a}`:s;n.push(r)}return n.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(r){const n=new Map;n.set("core-rest-pipeline",bt);await util_userAgentPlatform_setPlatformSpecificData(n);const s=util_userAgent_getUserAgentString(n);const a=r?`${r} ${s}`:s;return a}const wt=userAgent_getUserAgentHeaderName();const Bt="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(r={}){const n=util_userAgent_getUserAgentValue(r.userAgentPrefix);return{name:Bt,async sendRequest(r,s){if(!r.headers.has(wt)){r.headers.set(wt,await n)}return s(r)}}}var It=s(77598);async function computeSha256Hmac(r,n,s){const a=Buffer.from(r,"base64");return createHmac("sha256",a).update(n).digest(s)}async function computeSha256Hash(r,n){return createHash("sha256").update(r).digest(n)}class AbortError_AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}function createAbortablePromise(r,n){const{cleanupBeforeAbort:s,abortSignal:a,abortErrorMsg:l}=n??{};return new Promise(((n,u)=>{function rejectOnAbort(){u(new AbortError_AbortError(l??"The operation was aborted."))}function removeListeners(){a?.removeEventListener("abort",onAbort)}function onAbort(){s?.();removeListeners();rejectOnAbort()}if(a?.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();n(r)}),(r=>{removeListeners();u(r)}))}catch(r){u(r)}a?.addEventListener("abort",onAbort)}))}const St="The delay was aborted.";function delay_delay(r,n){let s;const{abortSignal:a,abortErrorMsg:l}=n??{};return createAbortablePromise((n=>{s=setTimeout(n,r)}),{cleanupBeforeAbort:()=>clearTimeout(s),abortSignal:a,abortErrorMsg:l??St})}function delay_calculateRetryDelay(r,n){const s=n.retryDelayInMs*Math.pow(2,r);const a=Math.min(n.maxRetryDelayInMs,s);const l=a/2+getRandomIntegerInclusive(0,a/2);return{retryAfterInMs:l}}function getErrorMessage(r){if(isError(r)){return r.message}else{let n;try{if(typeof r==="object"&&r){n=JSON.stringify(r)}else{n=String(r)}}catch(r){n="[unable to stringify input]"}return`Unknown error ${n}`}}function esm_calculateRetryDelay(r,n){return tspRuntime.calculateRetryDelay(r,n)}function esm_computeSha256Hash(r,n){return tspRuntime.computeSha256Hash(r,n)}function esm_computeSha256Hmac(r,n,s){return tspRuntime.computeSha256Hmac(r,n,s)}function esm_getRandomIntegerInclusive(r,n){return tspRuntime.getRandomIntegerInclusive(r,n)}function esm_isError(r){return isError(r)}function esm_isObject(r){return tspRuntime.isObject(r)}function esm_randomUUID(){return randomUUID()}const Qt=Pe;const vt=Oe;const Rt=Le;const Nt=Me;const xt=Me;const Dt=Ue;const Tt=He;const kt=Fe;function esm_uint8ArrayToString(r,n){return tspRuntime.uint8ArrayToString(r,n)}function esm_stringToUint8Array(r,n){return tspRuntime.stringToUint8Array(r,n)}function file_isNodeReadableStream(r){return Boolean(r&&typeof r["pipe"]==="function")}const _t={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const Pt=Symbol("rawContent");function hasRawContent(r){return typeof r[Pt]==="function"}function getRawContent(r){if(hasRawContent(r)){return r[Pt]()}else{return r}}function createFileFromStream(r,n,s={}){return{..._t,type:s.type??"",lastModified:s.lastModified??(new Date).getTime(),webkitRelativePath:s.webkitRelativePath??"",size:s.size??-1,name:n,stream:()=>{const n=r();if(file_isNodeReadableStream(n)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return n},[Pt]:r}}function createFile(r,n,s={}){if(isNodeLike){return{..._t,type:s.type??"",lastModified:s.lastModified??(new Date).getTime(),webkitRelativePath:s.webkitRelativePath??"",size:r.byteLength,name:n,arrayBuffer:async()=>r.buffer,stream:()=>new Blob([toArrayBuffer(r)]).stream(),[Pt]:()=>r}}else{return new File([toArrayBuffer(r)],n,s)}}function toArrayBuffer(r){if("resize"in r.buffer){return r}return r.map((r=>r))}const Ft=et;function policies_multipartPolicy_multipartPolicy(){const r=multipartPolicy_multipartPolicy();return{name:Ft,sendRequest:async(n,s)=>{if(n.multipartBody){for(const r of n.multipartBody.parts){if(hasRawContent(r.body)){r.body=getRawContent(r.body)}}}return r.sendRequest(n,s)}}}const Lt=pt;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const Ot=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(r={}){return defaultRetryPolicy_defaultRetryPolicy(r)}const Mt=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const Ut=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(r){return getDefaultProxySettings(r)}function policies_proxyPolicy_proxyPolicy(r,n){return proxyPolicy_proxyPolicy(r,n)}const Ht="setClientRequestIdPolicy";function setClientRequestIdPolicy(r="x-ms-client-request-id"){return{name:Ht,async sendRequest(n,s){if(!n.headers.has(r)){n.headers.set(r,n.requestId)}return s(n)}}}const Gt=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(r){return agentPolicy_agentPolicy(r)}const zt=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(r){return tlsPolicy_tlsPolicy(r)}const qt={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(r={}){let n=new TracingContextImpl(r.parentContext);if(r.span){n=n.setValue(qt.span,r.span)}if(r.namespace){n=n.setValue(qt.namespace,r.namespace)}return n}class TracingContextImpl{_contextMap;constructor(r){this._contextMap=r instanceof TracingContextImpl?new Map(r._contextMap):new Map}setValue(r,n){const s=new TracingContextImpl(this);s._contextMap.set(r,n);return s}getValue(r){return this._contextMap.get(r)}deleteValue(r){const n=new TracingContextImpl(this);n._contextMap.delete(r);return n}}var Vt=s(38914);const jt=Vt.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(r,n)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:n.tracingContext})}),withContext(r,n,...s){return n(...s)}}}function useInstrumenter(r){state.instrumenterImplementation=r}function getInstrumenter(){if(!jt.instrumenterImplementation){jt.instrumenterImplementation=createDefaultInstrumenter()}return jt.instrumenterImplementation}function createTracingClient(r){const{namespace:n,packageName:s,packageVersion:a}=r;function startSpan(r,l,u){const d=getInstrumenter().startSpan(r,{...u,packageName:s,packageVersion:a,tracingContext:l?.tracingOptions?.tracingContext});let A=d.tracingContext;const p=d.span;if(!A.getValue(qt.namespace)){A=A.setValue(qt.namespace,n)}p.setAttribute("az.namespace",A.getValue(qt.namespace));const f=Object.assign({},l,{tracingOptions:{...l?.tracingOptions,tracingContext:A}});return{span:p,updatedOptions:f}}async function withSpan(r,n,s,a){const{span:l,updatedOptions:u}=startSpan(r,n,a);try{const r=await withContext(u.tracingOptions.tracingContext,(()=>Promise.resolve(s(u,l))));l.setStatus({status:"success"});return r}catch(r){l.setStatus({status:"error",error:r});throw r}finally{l.end()}}function withContext(r,n,...s){return getInstrumenter().withContext(r,n,...s)}function parseTraceparentHeader(r){return getInstrumenter().parseTraceparentHeader(r)}function createRequestHeaders(r){return getInstrumenter().createRequestHeaders(r)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const Wt=restError_RestError;function esm_restError_isRestError(r){return restError_isRestError(r)}const Yt="tracingPolicy";function tracingPolicy(r={}){const n=util_userAgent_getUserAgentValue(r.userAgentPrefix);const s=new Sanitizer({additionalAllowedQueryParameters:r.additionalAllowedQueryParameters});const a=tryCreateTracingClient();return{name:Yt,async sendRequest(r,l){if(!a){return l(r)}const u=await n;const d={"http.url":s.sanitizeUrl(r.url),"http.method":r.method,"http.user_agent":u,requestId:r.requestId};if(u){d["http.user_agent"]=u}const{span:A,tracingContext:p}=tryCreateSpan(a,r,d)??{};if(!A||!p){return l(r)}try{const n=await a.withContext(p,l,r);tryProcessResponse(A,n);return n}catch(r){tryProcessError(A,r);throw r}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:bt})}catch(r){dt.warning(`Error when creating the TracingClient: ${getErrorMessage(r)}`);return undefined}}function tryCreateSpan(r,n,s){try{const{span:a,updatedOptions:l}=r.startSpan(`HTTP ${n.method}`,{tracingOptions:n.tracingOptions},{spanKind:"client",spanAttributes:s});if(!a.isRecording()){a.end();return undefined}const u=r.createRequestHeaders(l.tracingOptions.tracingContext);for(const[r,s]of Object.entries(u)){n.headers.set(r,s)}return{span:a,tracingContext:l.tracingOptions.tracingContext}}catch(r){dt.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(r)}`);return undefined}}function tryProcessError(r,n){try{r.setStatus({status:"error",error:esm_isError(n)?n:undefined});if(esm_restError_isRestError(n)&&n.statusCode){r.setAttribute("http.status_code",n.statusCode)}r.end()}catch(r){dt.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(r)}`)}}function tryProcessResponse(r,n){try{r.setAttribute("http.status_code",n.status);const s=n.headers.get("x-ms-request-id");if(s){r.setAttribute("serviceRequestId",s)}if(n.status>=400){r.setStatus({status:"error"})}r.end()}catch(r){dt.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(r)}`)}}function wrapAbortSignalLike(r){if(r instanceof AbortSignal){return{abortSignal:r}}if(r.aborted){return{abortSignal:AbortSignal.abort(r.reason)}}const n=new AbortController;let s=true;function cleanup(){if(s){r.removeEventListener("abort",listener);s=false}}function listener(){n.abort(r.reason);cleanup()}r.addEventListener("abort",listener);return{abortSignal:n.signal,cleanup:cleanup}}const Jt="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:Jt,sendRequest:async(r,n)=>{if(!r.abortSignal){return n(r)}const{abortSignal:s,cleanup:a}=wrapAbortSignalLike(r.abortSignal);r.abortSignal=s;try{return await n(r)}finally{a?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(r){const n=esm_pipeline_createEmptyPipeline();if(xt){if(r.agent){n.addPolicy(policies_agentPolicy_agentPolicy(r.agent))}if(r.tlsOptions){n.addPolicy(policies_tlsPolicy_tlsPolicy(r.tlsOptions))}n.addPolicy(policies_proxyPolicy_proxyPolicy(r.proxyOptions));n.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}n.addPolicy(wrapAbortSignalLikePolicy());n.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[Ft]});n.addPolicy(policies_userAgentPolicy_userAgentPolicy(r.userAgentOptions));n.addPolicy(setClientRequestIdPolicy(r.telemetryOptions?.clientRequestIdHeaderName));n.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});n.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(r.retryOptions),{phase:"Retry"});n.addPolicy(tracingPolicy({...r.userAgentOptions,...r.loggingOptions}),{afterPhase:"Retry"});if(xt){n.addPolicy(policies_redirectPolicy_redirectPolicy(r.redirectOptions),{afterPhase:"Retry"})}n.addPolicy(policies_logPolicy_logPolicy(r.loggingOptions),{afterPhase:"Sign"});return n}function esm_defaultHttpClient_createDefaultHttpClient(){const r=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(n){const{abortSignal:s,cleanup:a}=n.abortSignal?wrapAbortSignalLike(n.abortSignal):{};try{n.abortSignal=s;return await r.sendRequest(n)}finally{a?.()}}}}function esm_httpHeaders_createHttpHeaders(r){return httpHeaders_createHttpHeaders(r)}function esm_pipelineRequest_createPipelineRequest(r){return pipelineRequest_createPipelineRequest(r)}const $t=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(r={}){return tspExponentialRetryPolicy(r)}const Kt=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(r={}){return tspSystemErrorRetryPolicy(r)}const Xt=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(r={}){return tspThrottlingRetryPolicy(r)}const Zt=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(r,n={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(r,{logger:Zt,...n})}const er={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,n,s){async function tryGetAccessToken(){if(Date.now()r.getToken(n,A);s=beginRefresh(tryGetAccessToken,u.retryIntervalInMs,a?.expiresOnTimestamp??Date.now()).then((r=>{s=null;a=r;l=A.tenantId;return a})).catch((r=>{s=null;a=null;l=undefined;throw r}))}return s}return async(r,n)=>{const s=Boolean(n.claims);const u=l!==n.tenantId;if(s){a=null}const A=u||s||d.mustRefresh;if(A){return refresh(r,n)}if(d.shouldRefresh){refresh(r,n)}return a}}const tr="bearerTokenAuthenticationPolicy";async function trySendRequest(r,n){try{return[await n(r),undefined]}catch(r){if(esm_restError_isRestError(r)&&r.response){return[r.response,r]}else{throw r}}}async function defaultAuthorizeRequest(r){const{scopes:n,getAccessToken:s,request:a}=r;const l={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions,enableCae:true};const u=await s(n,l);if(u){r.request.headers.set("Authorization",`Bearer ${u.token}`)}}function isChallengeResponse(r){return r.status===401&&r.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(r,n){const{scopes:s}=r;const a=await r.getAccessToken(s,{enableCae:true,claims:n});if(!a){return false}r.request.headers.set("Authorization",`${a.tokenType??"Bearer"} ${a.token}`);return true}function bearerTokenAuthenticationPolicy(r){const{credential:n,scopes:s,challengeCallbacks:a}=r;const l=r.logger||dt;const u={authorizeRequest:a?.authorizeRequest?.bind(a)??defaultAuthorizeRequest,authorizeRequestOnChallenge:a?.authorizeRequestOnChallenge?.bind(a)};const d=n?tokenCycler_createTokenCycler(n):()=>Promise.resolve(null);return{name:tr,async sendRequest(r,n){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await u.authorizeRequest({scopes:Array.isArray(s)?s:[s],request:r,getAccessToken:d,logger:l});let a;let A;let p;[a,A]=await trySendRequest(r,n);if(isChallengeResponse(a)){let f=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(f){let u;try{u=atob(f)}catch(r){l.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return a}p=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(s)?s:[s],response:a,request:r,getAccessToken:d,logger:l},u);if(p){[a,A]=await trySendRequest(r,n)}}else if(u.authorizeRequestOnChallenge){p=await u.authorizeRequestOnChallenge({scopes:Array.isArray(s)?s:[s],request:r,response:a,getAccessToken:d,logger:l});if(p){[a,A]=await trySendRequest(r,n)}if(isChallengeResponse(a)){f=getCaeChallengeClaims(a.headers.get("WWW-Authenticate"));if(f){let u;try{u=atob(f)}catch(r){l.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return a}p=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(s)?s:[s],response:a,request:r,getAccessToken:d,logger:l},u);if(p){[a,A]=await trySendRequest(r,n)}}}}}if(A){throw A}else{return a}}}}function parseChallenges(r){const n=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const s=/(\w+)="([^"]*)"/g;const a=[];let l;while((l=n.exec(r))!==null){const r=l[1];const n=l[2];const u={};let d;while((d=s.exec(n))!==null){u[d[1]]=d[2]}a.push({scheme:r,params:u})}return a}function getCaeChallengeClaims(r){if(!r){return}const n=parseChallenges(r);return n.find((r=>r.scheme==="Bearer"&&r.params.claims&&r.params.error==="insufficient_claims"))?.params.claims}const rr="auxiliaryAuthenticationHeaderPolicy";const nr="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(r){const{scopes:n,getAccessToken:s,request:a}=r;const l={abortSignal:a.abortSignal,tracingOptions:a.tracingOptions};return(await s(n,l))?.token??""}function auxiliaryAuthenticationHeaderPolicy(r){const{credentials:n,scopes:s}=r;const a=r.logger||coreLogger;const l=new WeakMap;return{name:rr,async sendRequest(r,u){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!n||n.length===0){a.info(`${rr} header will not be set due to empty credentials.`);return u(r)}const d=[];for(const u of n){let n=l.get(u);if(!n){n=createTokenCycler(u);l.set(u,n)}d.push(sendAuthorizeRequest({scopes:Array.isArray(s)?s:[s],request:r,getAccessToken:n,logger:a}))}const A=(await Promise.all(d)).filter((r=>Boolean(r)));if(A.length===0){a.warning(`None of the auxiliary tokens are valid. ${nr} header will not be set.`);return u(r)}r.headers.set(nr,A.map((r=>`Bearer ${r}`)).join(", "));return u(r)}}}function isKeyCredential(r){return isObjectWithProperties(r,["key"])&&typeof r.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(r,n){if(!r||!n){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=n}update(r,n){if(!r||!n){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=n}}function isNamedKeyCredential(r){return isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isBearerToken(r){return!r.tokenType||r.tokenType==="Bearer"}function isPopToken(r){return r.tokenType==="pop"}function isTokenCredential(r){const n=r;return n&&typeof n.getToken==="function"&&(n.signRequest===undefined||n.getToken.length>0)}const sr="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:sr,async sendRequest(r,n){r.disableKeepAlive=true;return n(r)}}}function pipelineContainsDisableKeepAlivePolicy(r){return r.getOrderedPolicies().some((r=>r.name===sr))}function encodeString(r){return Buffer.from(r).toString("base64")}function encodeByteArray(r){const n=r instanceof Buffer?r:Buffer.from(r.buffer);return n.toString("base64")}function decodeString(r){return Buffer.from(r,"base64")}function base64_decodeStringToString(r){return Buffer.from(r,"base64").toString()}const ir="$";const or="_";function isPrimitiveBody(r,n){return n!=="Composite"&&n!=="Dictionary"&&(typeof r==="string"||typeof r==="number"||typeof r==="boolean"||n?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||r===undefined||r===null)}const ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return ar.test(r)}const lr=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(r){return lr.test(r)}function handleNullableResponseAndWrappableBody(r){const n={...r.headers,...r.body};if(r.hasNullableType&&Object.getOwnPropertyNames(n).length===0){return r.shouldWrapBody?{body:null}:null}else{return r.shouldWrapBody?{...r.headers,body:r.body}:n}}function flattenResponse(r,n){const s=r.parsedHeaders;if(r.request.method==="HEAD"){return{...s,body:r.parsedBody}}const a=n&&n.bodyMapper;const l=Boolean(a?.nullable);const u=a?.type.name;if(u==="Stream"){return{...s,blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}}const d=u==="Composite"&&a.type.modelProperties||{};const A=Object.keys(d).some((r=>d[r].serializedName===""));if(u==="Sequence"||A){const n=r.parsedBody??[];for(const s of Object.keys(d)){if(d[s].serializedName){n[s]=r.parsedBody?.[s]}}if(s){for(const r of Object.keys(s)){n[r]=s[r]}}return l&&!r.parsedBody&&!s&&Object.getOwnPropertyNames(d).length===0?null:n}return handleNullableResponseAndWrappableBody({body:r.parsedBody,headers:s,hasNullableType:l,shouldWrapBody:isPrimitiveBody(r.parsedBody,u)})}class SerializerImpl{modelMappers;isXML;constructor(r={},n=false){this.modelMappers=r;this.isXML=n}validateConstraints(r,n,s){const failValidation=(r,a)=>{throw new Error(`"${s}" with value "${n}" should satisfy the constraint "${r}": ${a}.`)};if(r.constraints&&n!==undefined&&n!==null){const{ExclusiveMaximum:s,ExclusiveMinimum:a,InclusiveMaximum:l,InclusiveMinimum:u,MaxItems:d,MaxLength:A,MinItems:p,MinLength:f,MultipleOf:g,Pattern:y,UniqueItems:b}=r.constraints;if(s!==undefined&&n>=s){failValidation("ExclusiveMaximum",s)}if(a!==undefined&&n<=a){failValidation("ExclusiveMinimum",a)}if(l!==undefined&&n>l){failValidation("InclusiveMaximum",l)}if(u!==undefined&&nd){failValidation("MaxItems",d)}if(A!==undefined&&n.length>A){failValidation("MaxLength",A)}if(p!==undefined&&n.lengths.indexOf(r)!==n))){failValidation("UniqueItems",b)}}}serialize(r,n,s,a={xml:{}}){const l={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??or}};let u={};const d=r.type.name;if(!s){s=r.serializedName}if(d.match(/^Sequence$/i)!==null){u=[]}if(r.isConstant){n=r.defaultValue}const{required:A,nullable:p}=r;if(A&&p&&n===undefined){throw new Error(`${s} cannot be undefined.`)}if(A&&!p&&(n===undefined||n===null)){throw new Error(`${s} cannot be null or undefined.`)}if(!A&&p===false&&n===null){throw new Error(`${s} cannot be null.`)}if(n===undefined||n===null){u=n}else{if(d.match(/^any$/i)!==null){u=n}else if(d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){u=serializeBasicTypes(d,s,n)}else if(d.match(/^Enum$/i)!==null){const a=r;u=serializeEnumType(s,a.type.allowedValues,n)}else if(d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){u=serializeDateTypes(d,n,s)}else if(d.match(/^ByteArray$/i)!==null){u=serializeByteArrayType(s,n)}else if(d.match(/^Base64Url$/i)!==null){u=serializeBase64UrlType(s,n)}else if(d.match(/^Sequence$/i)!==null){u=serializeSequenceType(this,r,n,s,Boolean(this.isXML),l)}else if(d.match(/^Dictionary$/i)!==null){u=serializeDictionaryType(this,r,n,s,Boolean(this.isXML),l)}else if(d.match(/^Composite$/i)!==null){u=serializeCompositeType(this,r,n,s,Boolean(this.isXML),l)}}return u}deserialize(r,n,s,a={xml:{}}){const l={xml:{rootName:a.xml.rootName??"",includeRoot:a.xml.includeRoot??false,xmlCharKey:a.xml.xmlCharKey??or},ignoreUnknownProperties:a.ignoreUnknownProperties??false};if(n===undefined||n===null){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){n=[]}if(r.defaultValue!==undefined){n=r.defaultValue}return n}let u;const d=r.type.name;if(!s){s=r.serializedName}if(d.match(/^Composite$/i)!==null){u=deserializeCompositeType(this,r,n,s,l)}else{if(this.isXML){const r=l.xml.xmlCharKey;if(n[ir]!==undefined&&n[r]!==undefined){n=n[r]}}if(d.match(/^Number$/i)!==null){u=parseFloat(n);if(isNaN(u)){u=n}}else if(d.match(/^Boolean$/i)!==null){if(n==="true"){u=true}else if(n==="false"){u=false}else{u=n}}else if(d.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){u=n}else if(d.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){u=new Date(n)}else if(d.match(/^UnixTime$/i)!==null){u=unixTimeToDate(n)}else if(d.match(/^ByteArray$/i)!==null){u=decodeString(n)}else if(d.match(/^Base64Url$/i)!==null){u=base64UrlToByteArray(n)}else if(d.match(/^Sequence$/i)!==null){u=deserializeSequenceType(this,r,n,s,l)}else if(d.match(/^Dictionary$/i)!==null){u=deserializeDictionaryType(this,r,n,s,l)}}if(r.isConstant){u=r.defaultValue}return u}}function createSerializer(r={},n=false){return new SerializerImpl(r,n)}function trimEnd(r,n){let s=r.length;while(s-1>=0&&r[s-1]===n){--s}return r.substr(0,s)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const n=encodeByteArray(r);return trimEnd(n,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const n=[];let s="";if(r){const a=r.split(".");for(const r of a){if(r.charAt(r.length-1)==="\\"){s+=r.substr(0,r.length-1)+"."}else{s+=r;n.push(s);s=""}}}return n}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,n,s){if(s!==null&&s!==undefined){if(r.match(/^Number$/i)!==null){if(typeof s!=="number"){throw new Error(`${n} with value ${s} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof s.valueOf()!=="string"){throw new Error(`${n} with value "${s}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof s.valueOf()==="string"&&isValidUuid(s))){throw new Error(`${n} with value "${s}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof s!=="boolean"){throw new Error(`${n} with value ${s} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof s;if(r!=="string"&&typeof s.pipe!=="function"&&typeof s.tee!=="function"&&!(s instanceof ArrayBuffer)&&!ArrayBuffer.isView(s)&&!((typeof Blob==="function"||typeof Blob==="object")&&s instanceof Blob)&&r!=="function"){throw new Error(`${n} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return s}function serializeEnumType(r,n,s){if(!n){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const a=n.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===s.toLowerCase()}return r===s}));if(!a){throw new Error(`${s} is not a valid value for ${r}. The valid values are: ${JSON.stringify(n)}.`)}return s}function serializeByteArrayType(r,n){if(n!==undefined&&n!==null){if(!(n instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}n=encodeByteArray(n)}return n}function serializeBase64UrlType(r,n){if(n!==undefined&&n!==null){if(!(n instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}n=bufferToBase64Url(n)}return n}function serializeDateTypes(r,n,s){if(n!==undefined&&n!==null){if(r.match(/^Date$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}n=n instanceof Date?n.toISOString().substring(0,10):new Date(n).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in ISO8601 format.`)}n=n instanceof Date?n.toISOString():new Date(n).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123 format.`)}n=n instanceof Date?n.toUTCString():new Date(n).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(n instanceof Date||typeof n.valueOf()==="string"&&!isNaN(Date.parse(n)))){throw new Error(`${s} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}n=dateToUnixTime(n)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(n)){throw new Error(`${s} must be a string in ISO 8601 format. Instead was "${n}".`)}}}return n}function serializeSequenceType(r,n,s,a,l,u){if(!Array.isArray(s)){throw new Error(`${a} must be of type Array.`)}let d=n.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}.`)}if(d.type.name==="Composite"&&d.type.className){d=r.modelMappers[d.type.className]??d}const A=[];for(let n=0;nr!==l));if(A){d[l]=r.serialize(p,s[l],a+'["'+l+'"]',u)}}}return d}return s}function getXmlObjectValue(r,n,s,a){if(!s||!r.xmlNamespace){return n}const l=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const u={[l]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(n[ir]){return n}else{const r={...n};r[ir]=u;return r}}const d={};d[a.xml.xmlCharKey]=n;d[ir]=u;return d}function isSpecialXmlProperty(r,n){return[ir,n.xml.xmlCharKey].includes(r)}function deserializeCompositeType(r,n,s,a,l){const u=l.xml.xmlCharKey??or;if(getPolymorphicDiscriminatorRecursively(r,n)){n=getPolymorphicMapper(r,n,s,"serializedName")}const d=resolveModelProperties(r,n,a);let A={};const p=[];for(const f of Object.keys(d)){const g=d[f];const y=splitSerializeName(d[f].serializedName);p.push(y[0]);const{serializedName:b,xmlName:C,xmlElementName:w}=g;let B=a;if(b!==""&&b!==undefined){B=a+"."+b}const I=g.headerCollectionPrefix;if(I){const n={};for(const a of Object.keys(s)){if(a.startsWith(I)){n[a.substring(I.length)]=r.deserialize(g.type.value,s[a],B,l)}p.push(a)}A[f]=n}else if(r.isXML){if(g.xmlIsAttribute&&s[ir]){A[f]=r.deserialize(g,s[ir][C],B,l)}else if(g.xmlIsMsText){if(s[u]!==undefined){A[f]=s[u]}else if(typeof s==="string"){A[f]=s}}else{const n=w||C||b;if(g.xmlIsWrapped){const n=s[C];const a=n?.[w]??[];A[f]=r.deserialize(g,a,B,l);p.push(C)}else{const a=s[n];A[f]=r.deserialize(g,a,B,l);p.push(n)}}}else{let a;let u=s;let p=0;for(const r of y){if(!u)break;p++;u=u[r]}if(u===null&&p{for(const n in d){const s=splitSerializeName(d[n].serializedName);if(s[0]===r){return false}}return true};for(const n in s){if(isAdditionalProperty(n)){A[n]=r.deserialize(f,s[n],a+'["'+n+'"]',l)}}}else if(s&&!l.ignoreUnknownProperties){for(const r of Object.keys(s)){if(A[r]===undefined&&!p.includes(r)&&!isSpecialXmlProperty(r,l)){A[r]=s[r]}}}return A}function deserializeDictionaryType(r,n,s,a,l){const u=n.type.value;if(!u||typeof u!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){const n={};for(const d of Object.keys(s)){n[d]=r.deserialize(u,s[d],a,l)}return n}return s}function deserializeSequenceType(r,n,s,a,l){let u=n.type.element;if(!u||typeof u!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${a}`)}if(s){if(!Array.isArray(s)){s=[s]}if(u.type.name==="Composite"&&u.type.className){u=r.modelMappers[u.type.className]??u}const n=[];for(let d=0;d0){if(l.isConstant){u=l.defaultValue}else{let n=getPropertyFromParameterPath(r,a);if(!n.propertyFound&&s){n=getPropertyFromParameterPath(s,a)}let d=false;if(!n.propertyFound){d=l.required||a[0]==="options"&&a.length===2}u=d?l.defaultValue:n.propertyValue}}}else{if(l.required){u={}}for(const n in a){const d=l.type.modelProperties[n];const A=a[n];const p=getOperationArgumentValueFromParameter(r,{parameterPath:A,mapper:d},s);if(p!==undefined){if(!u){u={}}u[n]=p}}}return u}function getPropertyFromParameterPath(r,n){const s={propertyFound:false};let a=0;for(;a=200&&s.status<300}if(p.headersMapper){u.parsedHeaders=A.serializer.deserialize(p.headersMapper,u.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return u}function isOperationSpecEmpty(r){const n=Object.keys(r.responses);return n.length===0||n.length===1&&n[0]==="default"}function handleErrorResponse(r,n,s,a){const l=200<=r.status&&r.status<300;const u=isOperationSpecEmpty(n)?l:!!s;if(u){if(s){if(!s.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=s??n.responses.default;const A=r.request.streamResponseStatusCodes?.has(r.status)?`Unexpected status code: ${r.status}`:r.bodyAsText;const p=new Wt(A,{statusCode:r.status,request:r.request,response:r});if(!d&&!(r.parsedBody?.error?.code&&r.parsedBody?.error?.message)){throw p}const f=d?.bodyMapper;const g=d?.headersMapper;try{if(r.parsedBody){const s=r.parsedBody;let l;if(f){let r=s;if(n.isXML&&f.type.name===cr.Sequence){r=[];const n=f.xmlElementName;if(typeof s==="object"&&n){r=s[n]}}l=n.serializer.deserialize(f,r,"error.response.parsedBody",a)}const u=s.error||l||s;p.code=u.code;if(u.message){p.message=u.message}if(f){p.response.parsedBody=l}}if(r.headers&&g){p.response.parsedHeaders=n.serializer.deserialize(g,r.headers.toJSON(),"operationRes.parsedHeaders")}}catch(n){p.message=`Error "${n.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:p,shouldReturnResponse:false}}async function parse(r,n,s,a,l){if(!s.request.streamResponseStatusCodes?.has(s.status)&&s.bodyAsText){const u=s.bodyAsText;const d=s.headers.get("Content-Type")||"";const A=!d?[]:d.split(";").map((r=>r.toLowerCase()));try{if(A.length===0||A.some((n=>r.indexOf(n)!==-1))){s.parsedBody=JSON.parse(u);return s}else if(A.some((r=>n.indexOf(r)!==-1))){if(!l){throw new Error("Parsing XML not supported.")}const r=await l(u,a.xml);s.parsedBody=r;return s}}catch(r){const n=`Error "${r}" occurred while parsing the response body - ${s.bodyAsText}.`;const a=r.code||Wt.PARSE_ERROR;const l=new Wt(n,{code:a,statusCode:s.status,request:s.request,response:s});throw l}}return s}function getStreamingResponseStatusCodes(r){const n=new Set;for(const s in r.responses){const a=r.responses[s];if(a.bodyMapper&&a.bodyMapper.type.name===cr.Stream){n.add(Number(s))}}return n}function getPathStringFromParameter(r){const{parameterPath:n,mapper:s}=r;let a;if(typeof n==="string"){a=n}else if(Array.isArray(n)){a=n.join(".")}else{a=s.serializedName}return a}const mr="serializationPolicy";function serializationPolicy(r={}){const n=r.stringifyXML;return{name:mr,async sendRequest(r,s){const a=getOperationRequestInfo(r);const l=a?.operationSpec;const u=a?.operationArguments;if(l&&u){serializeHeaders(r,u,l);serializeRequestBody(r,u,l,n)}return s(r)}}}function serializeHeaders(r,n,s){if(s.headerParameters){for(const a of s.headerParameters){let l=getOperationArgumentValueFromParameter(n,a);if(l!==null&&l!==undefined||a.mapper.required){l=s.serializer.serialize(a.mapper,l,getPathStringFromParameter(a));const n=a.mapper.headerCollectionPrefix;if(n){for(const s of Object.keys(l)){r.headers.set(n+s,l[s])}}else{r.headers.set(a.mapper.serializedName||getPathStringFromParameter(a),l)}}}}const a=n.options?.requestOptions?.customHeaders;if(a){for(const n of Object.keys(a)){r.headers.set(n,a[n])}}}function serializeRequestBody(r,n,s,a=function(){throw new Error("XML serialization unsupported!")}){const l=n.options?.serializerOptions;const u={xml:{rootName:l?.xml.rootName??"",includeRoot:l?.xml.includeRoot??false,xmlCharKey:l?.xml.xmlCharKey??or}};const d=u.xml.xmlCharKey;if(s.requestBody&&s.requestBody.mapper){r.body=getOperationArgumentValueFromParameter(n,s.requestBody);const l=s.requestBody.mapper;const{required:A,serializedName:p,xmlName:f,xmlElementName:g,xmlNamespace:y,xmlNamespacePrefix:b,nullable:C}=l;const w=l.type.name;try{if(r.body!==undefined&&r.body!==null||C&&r.body===null||A){const n=getPathStringFromParameter(s.requestBody);r.body=s.serializer.serialize(l,r.body,n,u);const A=w===cr.Stream;if(s.isXML){const n=b?`xmlns:${b}`:"xmlns";const s=getXmlValueWithNamespace(y,n,w,r.body,u);if(w===cr.Sequence){r.body=a(prepareXMLRootList(s,g||f||p,n,y),{rootName:f||p,xmlCharKey:d})}else if(!A){r.body=a(s,{rootName:f||p,xmlCharKey:d})}}else if(w===cr.String&&(s.contentType?.match("text/plain")||s.mediaType==="text")){return}else if(!A){r.body=JSON.stringify(r.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(p,undefined," ")}.`)}}else if(s.formDataParameters&&s.formDataParameters.length>0){r.formData={};for(const a of s.formDataParameters){const l=getOperationArgumentValueFromParameter(n,a);if(l!==undefined&&l!==null){const n=a.mapper.serializedName||getPathStringFromParameter(a);r.formData[n]=s.serializer.serialize(a.mapper,l,getPathStringFromParameter(a),u)}}}}function getXmlValueWithNamespace(r,n,s,a,l){if(r&&!["Composite","Sequence","Dictionary"].includes(s)){const s={};s[l.xml.xmlCharKey]=a;s[ir]={[n]:r};return s}return a}function prepareXMLRootList(r,n,s,a){if(!Array.isArray(r)){r=[r]}if(!s||!a){return{[n]:r}}const l={[n]:r};l[ir]={[s]:a};return l}function createClientPipeline(r={}){const n=esm_createPipelineFromOptions_createPipelineFromOptions(r??{});if(r.credentialOptions){n.addPolicy(bearerTokenAuthenticationPolicy({credential:r.credentialOptions.credential,scopes:r.credentialOptions.credentialScopes}))}n.addPolicy(serializationPolicy(r.serializationOptions),{phase:"Serialize"});n.addPolicy(deserializationPolicy(r.deserializationOptions),{phase:"Deserialize"});return n}let gr;function getCachedDefaultHttpClient(){if(!gr){gr=esm_defaultHttpClient_createDefaultHttpClient()}return gr}const yr={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(r,n,s,a){const l=calculateUrlReplacements(n,s,a);let u=false;let d=replaceAll(r,l);if(n.path){let r=replaceAll(n.path,l);if(n.path==="/{nextLink}"&&r.startsWith("/")){r=r.substring(1)}if(isAbsoluteUrl(r)){d=r;u=true}else{d=appendPath(d,r)}}const{queryParams:A,sequenceParams:p}=calculateQueryParameters(n,s,a);d=appendQueryParams(d,A,p,u);return d}function replaceAll(r,n){let s=r;for(const[r,a]of n){s=s.split(r).join(a)}return s}function calculateUrlReplacements(r,n,s){const a=new Map;if(r.urlParameters?.length){for(const l of r.urlParameters){let u=getOperationArgumentValueFromParameter(n,l,s);const d=getPathStringFromParameter(l);u=r.serializer.serialize(l.mapper,u,d);if(!l.skipEncoding){u=encodeURIComponent(u)}a.set(`{${l.mapper.serializedName||d}}`,u)}}return a}function isAbsoluteUrl(r){return r.includes("://")}function appendPath(r,n){if(!n){return r}const s=new URL(r);let a=s.pathname;if(!a.endsWith("/")){a=`${a}/`}if(n.startsWith("/")){n=n.substring(1)}const l=n.indexOf("?");if(l!==-1){const r=n.substring(0,l);const u=n.substring(l+1);a=a+r;if(u){s.search=s.search?`${s.search}&${u}`:u}}else{a=a+n}s.pathname=a;return s.toString()}function calculateQueryParameters(r,n,s){const a=new Map;const l=new Set;if(r.queryParameters?.length){for(const u of r.queryParameters){if(u.mapper.type.name==="Sequence"&&u.mapper.serializedName){l.add(u.mapper.serializedName)}let d=getOperationArgumentValueFromParameter(n,u,s);if(d!==undefined&&d!==null||u.mapper.required){d=r.serializer.serialize(u.mapper,d,getPathStringFromParameter(u));const n=u.collectionFormat?yr[u.collectionFormat]:"";if(Array.isArray(d)){d=d.map((r=>{if(r===null||r===undefined){return""}return r}))}if(u.collectionFormat==="Multi"&&d.length===0){continue}else if(Array.isArray(d)&&(u.collectionFormat==="SSV"||u.collectionFormat==="TSV")){d=d.join(n)}if(!u.skipEncoding){if(Array.isArray(d)){d=d.map((r=>encodeURIComponent(r)))}else{d=encodeURIComponent(d)}}if(Array.isArray(d)&&(u.collectionFormat==="CSV"||u.collectionFormat==="Pipes")){d=d.join(n)}a.set(u.mapper.serializedName||getPathStringFromParameter(u),d)}}}return{queryParams:a,sequenceParams:l}}function simpleParseQueryParams(r){const n=new Map;if(!r||r[0]!=="?"){return n}r=r.slice(1);const s=r.split("&");for(const r of s){const[s,a]=r.split("=",2);const l=n.get(s);if(l){if(Array.isArray(l)){l.push(a)}else{n.set(s,[l,a])}}else{n.set(s,a)}}return n}function appendQueryParams(r,n,s,a=false){if(n.size===0){return r}const l=new URL(r);const u=simpleParseQueryParams(l.search);for(const[r,l]of n){const n=u.get(r);if(Array.isArray(n)){if(Array.isArray(l)){n.push(...l);const s=new Set(n);u.set(r,Array.from(s))}else{n.push(l)}}else if(n){if(Array.isArray(l)){l.unshift(n)}else if(s.has(r)){u.set(r,[n,l])}if(!a){u.set(r,l)}}else{u.set(r,l)}}const d=[];for(const[r,n]of u){if(typeof n==="string"){d.push(`${r}=${n}`)}else if(Array.isArray(n)){for(const s of n){d.push(`${r}=${s}`)}}else{d.push(`${r}=${n}`)}}l.search=d.length?`?${d.join("&")}`:"";return l.toString()}const Er=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(r={}){this._requestContentType=r.requestContentType;this._endpoint=r.endpoint??r.baseUri;if(r.baseUri){Er.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=r.allowInsecureConnection;this._httpClient=r.httpClient||getCachedDefaultHttpClient();this.pipeline=r.pipeline||serviceClient_createDefaultPipeline(r);if(r.additionalPolicies?.length){for(const{policy:n,position:s}of r.additionalPolicies){const r=s==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(n,{afterPhase:r})}}}async sendRequest(r){return this.pipeline.sendRequest(this._httpClient,r)}async sendOperationRequest(r,n){const s=n.baseUrl||this._endpoint;if(!s){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const a=getRequestUrl(s,n,r,this);const l=esm_pipelineRequest_createPipelineRequest({url:a});l.method=n.httpMethod;const u=getOperationRequestInfo(l);u.operationSpec=n;u.operationArguments=r;const d=n.contentType||this._requestContentType;if(d&&n.requestBody){l.headers.set("Content-Type",d)}const A=r.options;if(A){const r=A.requestOptions;if(r){if(r.timeout){l.timeout=r.timeout}if(r.onUploadProgress){l.onUploadProgress=r.onUploadProgress}if(r.onDownloadProgress){l.onDownloadProgress=r.onDownloadProgress}if(r.shouldDeserialize!==undefined){u.shouldDeserialize=r.shouldDeserialize}if(r.allowInsecureConnection){l.allowInsecureConnection=true}}if(A.abortSignal){l.abortSignal=A.abortSignal}if(A.tracingOptions){l.tracingOptions=A.tracingOptions}}if(this._allowInsecureConnection){l.allowInsecureConnection=true}if(l.streamResponseStatusCodes===undefined){l.streamResponseStatusCodes=getStreamingResponseStatusCodes(n)}try{const r=await this.sendRequest(l);const s=flattenResponse(r,n.responses[r.status]);if(A?.onResponse){A.onResponse(r,s)}return s}catch(r){if(typeof r==="object"&&r?.response){const s=r.response;const a=flattenResponse(s,n.responses[r.statusCode]||n.responses["default"]);r.details=a;if(A?.onResponse){A.onResponse(s,a,r)}}throw r}}}function serviceClient_createDefaultPipeline(r){const n=getCredentialScopes(r);const s=r.credential&&n?{credentialScopes:n,credential:r.credential}:undefined;return createClientPipeline({...r,credentialOptions:s})}function getCredentialScopes(r){if(r.credentialScopes){return r.credentialScopes}if(r.endpoint){return`${r.endpoint}/.default`}if(r.baseUri){return`${r.baseUri}/.default`}if(r.credential&&!r.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(r){const n=`, ${r.trim()}`.split(", Bearer ").filter((r=>r));return n.map((r=>{const n=`${r.trim()}, `.split('", ').filter((r=>r));const s=n.map((r=>(([r,n])=>({[r]:n}))(r.trim().split('="'))));return s.reduce(((r,n)=>({...r,...n})),{})}))}async function authorizeRequestOnClaimChallenge(r){const{scopes:n,response:s}=r;const a=r.logger||coreClientLogger;const l=s.headers.get("WWW-Authenticate");if(!l){a.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const u=parseCAEChallenge(l)||[];const d=u.find((r=>r.claims));if(!d){a.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const A=await r.getAccessToken(d.scope?[d.scope]:n,{claims:decodeStringToString(d.claims)});if(!A){return false}r.request.headers.set("Authorization",`${A.tokenType??"Bearer"} ${A.token}`);return true}const br={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(r){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(r)}const authorizeRequestOnTenantChallenge=async r=>{const n=requestToOptions(r.request);const s=getChallenge(r.response);if(s){const a=parseChallenge(s);const l=buildScopes(r,a);const u=extractTenantId(a);if(!u){return false}const d=await r.getAccessToken(l,{...n,tenantId:u});if(!d){return false}r.request.headers.set(br.HeaderConstants.AUTHORIZATION,`${d.tokenType??"Bearer"} ${d.token}`);return true}return false};function extractTenantId(r){const n=new URL(r.authorization_uri);const s=n.pathname.split("/");const a=s[1];if(a&&isUuid(a)){return a}return undefined}function buildScopes(r,n){if(!n.resource_id){return r.scopes}const s=new URL(n.resource_id);s.pathname=br.DefaultScope;let a=s.toString();if(a==="https://disk.azure.com/.default"){a="https://disk.azure.com//.default"}return[a]}function getChallenge(r){const n=r.headers.get("WWW-Authenticate");if(r.status===401&&n){return n}return}function parseChallenge(r){const n=r.slice("Bearer ".length);const s=`${n.trim()} `.split(" ").filter((r=>r));const a=s.map((r=>(([r,n])=>({[r]:n}))(r.trim().split("="))));return a.reduce(((r,n)=>({...r,...n})),{})}function requestToOptions(r){return{abortSignal:r.abortSignal,requestOptions:{timeout:r.timeout},tracingOptions:r.tracingOptions}}const Cr=Symbol("Original PipelineRequest");const wr=Symbol.for("@azure/core-client original request");function toPipelineRequest(r,n={}){const s=r;const a=s[Cr];const l=esm_httpHeaders_createHttpHeaders(r.headers.toJson({preserveCase:true}));if(a){a.headers=l;return a}else{const s=esm_pipelineRequest_createPipelineRequest({url:r.url,method:r.method,headers:l,withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,disableKeepAlive:!!r.keepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides});if(n.originalRequest){s[wr]=n.originalRequest}return s}}function toWebResourceLike(r,n){const s=n?.originalRequest??r;const a={url:r.url,method:r.method,headers:toHttpHeadersLike(r.headers),withCredentials:r.withCredentials,timeout:r.timeout,requestId:r.headers.get("x-ms-client-request-id")||r.requestId,abortSignal:r.abortSignal,body:r.body,formData:r.formData,keepAlive:!!r.disableKeepAlive,onDownloadProgress:r.onDownloadProgress,onUploadProgress:r.onUploadProgress,proxySettings:r.proxySettings,streamResponseStatusCodes:r.streamResponseStatusCodes,agent:r.agent,requestOverrides:r.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(n?.createProxy){return new Proxy(a,{get(n,l,u){if(l===Cr){return r}else if(l==="clone"){return()=>toWebResourceLike(toPipelineRequest(a,{originalRequest:s}),{createProxy:true,originalRequest:s})}return Reflect.get(n,l,u)},set(n,s,a,l){if(s==="keepAlive"){r.disableKeepAlive=!a}const u=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof s==="string"&&u.includes(s)){r[s]=a}return Reflect.set(n,s,a,l)}})}else{return a}}function toHttpHeadersLike(r){return new HttpHeaders(r.toJSON({preserveCase:true}))}function getHeaderKey(r){return r.toLowerCase()}class HttpHeaders{_headersMap;constructor(r){this._headersMap={};if(r){for(const n in r){this.set(n,r[n])}}}set(r,n){this._headersMap[getHeaderKey(r)]={name:r,value:n.toString()}}get(r){const n=this._headersMap[getHeaderKey(r)];return!n?undefined:n.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const n=this.contains(r);delete this._headersMap[getHeaderKey(r)];return n}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const n in this._headersMap){r.push(this._headersMap[n])}return r}headerNames(){const r=[];const n=this.headersArray();for(let s=0;s{const s=await r.sendRequest(toWebResourceLike(n,{createProxy:true}));return response_toPipelineResponse(s)}}}class Expression{constructor(r,n={}){this.pattern=r;this.separator=n.separator||".";this.segments=this._parse(r);this._hasDeepWildcard=this.segments.some((r=>r.type==="deep-wildcard"));this._hasAttributeCondition=this.segments.some((r=>r.attrName!==undefined));this._hasPositionSelector=this.segments.some((r=>r.position!==undefined))}_parse(r){const n=[];let s=0;let a="";while(s0){const r=this.path[this.path.length-1];r.values=undefined}const a=this.path.length;if(!this.siblingStacks[a]){this.siblingStacks[a]=new Map}const l=this.siblingStacks[a];const u=s?`${s}:${r}`:r;const d=l.get(u)||0;let A=0;for(const r of l.values()){A+=r}l.set(u,d+1);const p={tag:r,position:A,counter:d};if(s!==null&&s!==undefined){p.namespace=s}if(n!==null&&n!==undefined){p.values=n}this.path.push(p)}pop(){if(this.path.length===0){return undefined}const r=this.path.pop();if(this.siblingStacks.length>this.path.length+1){this.siblingStacks.length=this.path.length+1}return r}updateCurrent(r){if(this.path.length>0){const n=this.path[this.path.length-1];if(r!==null&&r!==undefined){n.values=r}}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:undefined}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:undefined}getAttrValue(r){if(this.path.length===0)return undefined;const n=this.path[this.path.length-1];return n.values?.[r]}hasAttr(r){if(this.path.length===0)return false;const n=this.path[this.path.length-1];return n.values!==undefined&&r in n.values}getPosition(){if(this.path.length===0)return-1;return this.path[this.path.length-1].position??0}getCounter(){if(this.path.length===0)return-1;return this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(r,n=true){const s=r||this.separator;return this.path.map((r=>{if(n&&r.namespace){return`${r.namespace}:${r.tag}`}return r.tag})).join(s)}toArray(){return this.path.map((r=>r.tag))}reset(){this.path=[];this.siblingStacks=[]}matches(r){const n=r.segments;if(n.length===0){return false}if(r.hasDeepWildcard()){return this._matchWithDeepWildcard(n)}return this._matchSimple(n)}_matchSimple(r){if(this.path.length!==r.length){return false}for(let n=0;n=0&&n>=0){const a=r[s];if(a.type==="deep-wildcard"){s--;if(s<0){return true}const a=r[s];let l=false;for(let r=n;r>=0;r--){const u=r===this.path.length-1;if(this._matchSegment(a,this.path[r],u)){n=r-1;s--;l=true;break}}if(!l){return false}}else{const r=n===this.path.length-1;if(!this._matchSegment(a,this.path[n],r)){return false}n--;s--}}return s<0}_matchSegment(r,n,s){if(r.tag!=="*"&&r.tag!==n.tag){return false}if(r.namespace!==undefined){if(r.namespace!=="*"&&r.namespace!==n.namespace){return false}}if(r.attrName!==undefined){if(!s){return false}if(!n.values||!(r.attrName in n.values)){return false}if(r.attrValue!==undefined){const s=n.values[r.attrName];if(String(s)!==String(r.attrValue)){return false}}}if(r.position!==undefined){if(!s){return false}const a=n.counter??0;if(r.position==="first"&&a!==0){return false}else if(r.position==="odd"&&a%2!==1){return false}else if(r.position==="even"&&a%2!==0){return false}else if(r.position==="nth"){if(a!==r.positionValue){return false}}}return true}snapshot(){return{path:this.path.map((r=>({...r}))),siblingStacks:this.siblingStacks.map((r=>new Map(r)))}}restore(r){this.path=r.path.map((r=>({...r})));this.siblingStacks=r.siblingStacks.map((r=>new Map(r)))}}const vr="\n";function toXml(r,n){let s="";if(n.format&&n.indentBy.length>0){s=vr}const a=[];if(n.stopNodes&&Array.isArray(n.stopNodes)){for(let r=0;r`;d=false;a.pop();continue}else if(f===n.commentPropName){u+=s+`\x3c!--${p[f][0][n.textNodeName]}--\x3e`;d=true;a.pop();continue}else if(f[0]==="?"){const r=attr_to_str(p[":@"],n,y);const l=f==="?xml"?"":s;let A=p[f][0][n.textNodeName];A=A.length!==0?" "+A:"";u+=l+`<${f}${A}${r}?>`;d=true;a.pop();continue}let b=s;if(b!==""){b+=n.indentBy}const C=attr_to_str(p[":@"],n,y);const w=s+`<${f}${C}`;let B;if(y){B=orderedJs2Xml_getRawContent(p[f],n)}else{B=arrToStr(p[f],n,b,a,l)}if(n.unpairedTags.indexOf(f)!==-1){if(n.suppressUnpairedNode)u+=w+">";else u+=w+"/>"}else if((!B||B.length===0)&&n.suppressEmptyNode){u+=w+"/>"}else if(B&&B.endsWith(">")){u+=w+`>${B}${s}`}else{u+=w+">";if(B&&s!==""&&(B.includes("/>")||B.includes("`}d=true;a.pop()}return u}function extractAttributeValues(r,n){if(!r||n.ignoreAttributes)return null;const s={};let a=false;for(let l in r){if(!Object.prototype.hasOwnProperty.call(r,l))continue;const u=l.startsWith(n.attributeNamePrefix)?l.substr(n.attributeNamePrefix.length):l;s[u]=r[l];a=true}return a?s:null}function orderedJs2Xml_getRawContent(r,n){if(!Array.isArray(r)){if(r!==undefined&&r!==null){return r.toString()}return""}let s="";for(let a=0;a`}else{s+=`<${u}${r}>${a}`}}}return s}function attr_to_str_raw(r,n){let s="";if(r&&!n.ignoreAttributes){for(let a in r){if(!Object.prototype.hasOwnProperty.call(r,a))continue;let l=r[a];if(l===true&&n.suppressBooleanAttributes){s+=` ${a.substr(n.attributeNamePrefix.length)}`}else{s+=` ${a.substr(n.attributeNamePrefix.length)}="${l}"`}}}return s}function propName(r){const n=Object.keys(r);for(let s=0;s0&&n.processEntities){for(let s=0;s{for(const s of r){if(typeof s==="string"&&n===s){return true}if(s instanceof RegExp&&s.test(n)){return true}}}}return()=>false}const Rr={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false,jPath:true};function Builder(r){this.options=Object.assign({},Rr,r);if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){this.options.stopNodes=this.options.stopNodes.map((r=>{if(typeof r==="string"&&r.startsWith("*.")){return".."+r.substring(2)}return r}))}this.stopNodeExpressions=[];if(this.options.stopNodes&&Array.isArray(this.options.stopNodes)){for(let r=0;r\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(r){if(this.options.preserveOrder){return toXml(r,this.options)}else{if(Array.isArray(r)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){r={[this.options.arrayNodeName]:r}}const n=new Matcher;return this.j2x(r,0,n).val}};Builder.prototype.j2x=function(r,n,s){let a="";let l="";const u=this.options.jPath?s.toString():s;const d=this.checkStopNode(s);for(let A in r){if(!Object.prototype.hasOwnProperty.call(r,A))continue;if(typeof r[A]==="undefined"){if(this.isAttribute(A)){l+=""}}else if(r[A]===null){if(this.isAttribute(A)){l+=""}else if(A===this.options.cdataPropName){l+=""}else if(A[0]==="?"){l+=this.indentate(n)+"<"+A+"?"+this.tagEndChar}else{l+=this.indentate(n)+"<"+A+"/"+this.tagEndChar}}else if(r[A]instanceof Date){l+=this.buildTextValNode(r[A],A,"",n,s)}else if(typeof r[A]!=="object"){const p=this.isAttribute(A);if(p&&!this.ignoreAttributesFn(p,u)){a+=this.buildAttrPairStr(p,""+r[A],d)}else if(!p){if(A===this.options.textNodeName){let n=this.options.tagValueProcessor(A,""+r[A]);l+=this.replaceEntitiesValue(n)}else{s.push(A);const a=this.checkStopNode(s);s.pop();if(a){const s=""+r[A];if(s===""){l+=this.indentate(n)+"<"+A+this.closeTag(A)+this.tagEndChar}else{l+=this.indentate(n)+"<"+A+">"+s+""+r+"${r}`}else if(typeof r==="object"&&r!==null){const a=this.buildRawContent(r);const l=this.buildAttributesForStopNode(r);if(a===""){n+=`<${s}${l}/>`}else{n+=`<${s}${l}>${a}`}}}}else if(typeof a==="object"&&a!==null){const r=this.buildRawContent(a);const l=this.buildAttributesForStopNode(a);if(r===""){n+=`<${s}${l}/>`}else{n+=`<${s}${l}>${r}`}}else{n+=`<${s}>${a}`}}return n};Builder.prototype.buildAttributesForStopNode=function(r){if(!r||typeof r!=="object")return"";let n="";if(this.options.attributesGroupName&&r[this.options.attributesGroupName]){const s=r[this.options.attributesGroupName];for(let r in s){if(!Object.prototype.hasOwnProperty.call(s,r))continue;const a=r.startsWith(this.options.attributeNamePrefix)?r.substring(this.options.attributeNamePrefix.length):r;const l=s[r];if(l===true&&this.options.suppressBooleanAttributes){n+=" "+a}else{n+=" "+a+'="'+l+'"'}}}else{for(let s in r){if(!Object.prototype.hasOwnProperty.call(r,s))continue;const a=this.isAttribute(s);if(a){const l=r[s];if(l===true&&this.options.suppressBooleanAttributes){n+=" "+a}else{n+=" "+a+'="'+l+'"'}}}}return n};Builder.prototype.buildObjectNode=function(r,n,s,a){if(r===""){if(n[0]==="?")return this.indentate(a)+"<"+n+s+"?"+this.tagEndChar;else{return this.indentate(a)+"<"+n+s+this.closeTag(n)+this.tagEndChar}}else{let l=""+r+l}else if(this.options.commentPropName!==false&&n===this.options.commentPropName&&u.length===0){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else{return this.indentate(a)+"<"+n+s+u+this.tagEndChar+r+this.indentate(a)+l}}};Builder.prototype.closeTag=function(r){let n="";if(this.options.unpairedTags.indexOf(r)!==-1){if(!this.options.suppressUnpairedNode)n="/"}else if(this.options.suppressEmptyNode){n="/"}else{n=`>`+this.newLine}else if(this.options.commentPropName!==false&&n===this.options.commentPropName){return this.indentate(a)+`\x3c!--${r}--\x3e`+this.newLine}else if(n[0]==="?"){return this.indentate(a)+"<"+n+s+"?"+this.tagEndChar}else{let l=this.options.tagValueProcessor(n,r);l=this.replaceEntitiesValue(l);if(l===""){return this.indentate(a)+"<"+n+s+this.closeTag(n)+this.tagEndChar}else{return this.indentate(a)+"<"+n+s+">"+l+"0&&this.options.processEntities){for(let n=0;n"&&r[u]!==" "&&r[u]!=="\t"&&r[u]!=="\n"&&r[u]!=="\r";u++){p+=r[u]}p=p.trim();if(p[p.length-1]==="/"){p=p.substring(0,p.length-1);u--}if(!validateTagName(p)){let n;if(p.trim().length===0){n="Invalid space after '<'."}else{n="Tag '"+p+"' is an invalid name."}return getErrorObject("InvalidTag",n,getLineNumberForPosition(r,u))}const f=readAttributeStr(r,u);if(f===false){return getErrorObject("InvalidAttr","Attributes for '"+p+"' have open quote.",getLineNumberForPosition(r,u))}let g=f.value;u=f.index;if(g[g.length-1]==="/"){const s=u-g.length;g=g.substring(0,g.length-1);const l=validateAttributeString(g,n);if(l===true){a=true}else{return getErrorObject(l.err.code,l.err.msg,getLineNumberForPosition(r,s+l.err.line))}}else if(A){if(!f.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+p+"' doesn't have proper closing.",getLineNumberForPosition(r,u))}else if(g.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+p+"' can't have attributes or invalid starting.",getLineNumberForPosition(r,d))}else if(s.length===0){return getErrorObject("InvalidTag","Closing tag '"+p+"' has not been opened.",getLineNumberForPosition(r,d))}else{const n=s.pop();if(p!==n.tagName){let s=getLineNumberForPosition(r,n.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+n.tagName+"' (opened in line "+s.line+", col "+s.col+") instead of closing tag '"+p+"'.",getLineNumberForPosition(r,d))}if(s.length==0){l=true}}}else{const A=validateAttributeString(g,n);if(A!==true){return getErrorObject(A.err.code,A.err.msg,getLineNumberForPosition(r,u-g.length+A.err.line))}if(l===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(r,u))}else if(n.unpairedTags.indexOf(p)!==-1){}else{s.push({tagName:p,tagStartPos:d})}a=true}for(u++;u0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(s.map((r=>r.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(r){return r===" "||r==="\t"||r==="\n"||r==="\r"}function readPI(r,n){const s=n;for(;n5&&a==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(r,n))}else if(r[n]=="?"&&r[n+1]==">"){n++;break}else{continue}}}return n}function readCommentAndCDATA(r,n){if(r.length>n+5&&r[n+1]==="-"&&r[n+2]==="-"){for(n+=3;n"){n+=2;break}}}else if(r.length>n+8&&r[n+1]==="D"&&r[n+2]==="O"&&r[n+3]==="C"&&r[n+4]==="T"&&r[n+5]==="Y"&&r[n+6]==="P"&&r[n+7]==="E"){let s=1;for(n+=8;n"){s--;if(s===0){break}}}}else if(r.length>n+9&&r[n+1]==="["&&r[n+2]==="C"&&r[n+3]==="D"&&r[n+4]==="A"&&r[n+5]==="T"&&r[n+6]==="A"&&r[n+7]==="["){for(n+=8;n"){n+=2;break}}}return n}const Lr='"';const Or="'";function readAttributeStr(r,n){let s="";let a="";let l=false;for(;n"){if(a===""){l=true;break}}s+=r[n]}if(a!==""){return false}return{value:s,index:n,tagClosed:l}}const Mr=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(r,n){const s=getAllMatches(r,Mr);const a={};for(let r=0;r{if(_r.includes(r)){return"__"+r}return r};const Hr={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(r,n){return n},attributeValueProcessor:function(r,n){return n},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(r,n,s){return r},captureMetaData:false,maxNestedTags:100,strictReservedNames:true,jPath:true,onDangerousProperty:defaultOnDangerousProperty};function validatePropertyName(r,n){if(typeof r!=="string"){return}const s=r.toLowerCase();if(_r.some((r=>s===r.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${n}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`)}if(Pr.some((r=>s===r.toLowerCase()))){throw new Error(`[SECURITY] Invalid ${n}: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`)}}function normalizeProcessEntities(r){if(typeof r==="boolean"){return{enabled:r,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}}if(typeof r==="object"&&r!==null){return{enabled:r.enabled!==false,maxEntitySize:r.maxEntitySize??1e4,maxExpansionDepth:r.maxExpansionDepth??10,maxTotalExpansions:r.maxTotalExpansions??1e3,maxExpandedLength:r.maxExpandedLength??1e5,maxEntityCount:r.maxEntityCount??100,allowedTags:r.allowedTags??null,tagFilter:r.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(r){const n=Object.assign({},Hr,r);const s=[{value:n.attributeNamePrefix,name:"attributeNamePrefix"},{value:n.attributesGroupName,name:"attributesGroupName"},{value:n.textNodeName,name:"textNodeName"},{value:n.cdataPropName,name:"cdataPropName"},{value:n.commentPropName,name:"commentPropName"}];for(const{value:r,name:n}of s){if(r){validatePropertyName(r,n)}}if(n.onDangerousProperty===null){n.onDangerousProperty=defaultOnDangerousProperty}n.processEntities=normalizeProcessEntities(n.processEntities);if(n.stopNodes&&Array.isArray(n.stopNodes)){n.stopNodes=n.stopNodes.map((r=>{if(typeof r==="string"&&r.startsWith("*.")){return".."+r.substring(2)}return r}))}return n};let Gr;if(typeof Symbol!=="function"){Gr="@@xmlMetadata"}else{Gr=Symbol("XML Node Metadata")}class XmlNode{constructor(r){this.tagname=r;this.child=[];this[":@"]=Object.create(null)}add(r,n){if(r==="__proto__")r="#__proto__";this.child.push({[r]:n})}addChild(r,n){if(r.tagname==="__proto__")r.tagname="#__proto__";if(r[":@"]&&Object.keys(r[":@"]).length>0){this.child.push({[r.tagname]:r.child,[":@"]:r[":@"]})}else{this.child.push({[r.tagname]:r.child})}if(n!==undefined){this.child[this.child.length-1][Gr]={startIndex:n}}}static getMetaDataSymbol(){return Gr}}class DocTypeReader{constructor(r){this.suppressValidationErr=!r;this.options=r}readDocType(r,n){const s=Object.create(null);let a=0;if(r[n+3]==="O"&&r[n+4]==="C"&&r[n+5]==="T"&&r[n+6]==="Y"&&r[n+7]==="P"&&r[n+8]==="E"){n=n+9;let l=1;let u=false,d=false;let A="";for(;n=this.options.maxEntityCount){throw new Error(`Entity count (${a+1}) exceeds maximum allowed (${this.options.maxEntityCount})`)}const r=l.replace(/[.\-+*:]/g,"\\.");s[l]={regx:RegExp(`&${r};`,"g"),val:u};a++}}else if(u&&hasSeq(r,"!ELEMENT",n)){n+=8;const{index:s}=this.readElementExp(r,n+1);n=s}else if(u&&hasSeq(r,"!ATTLIST",n)){n+=8}else if(u&&hasSeq(r,"!NOTATION",n)){n+=9;const{index:s}=this.readNotationExp(r,n+1,this.suppressValidationErr);n=s}else if(hasSeq(r,"!--",n))d=true;else throw new Error(`Invalid DOCTYPE`);l++;A=""}else if(r[n]===">"){if(d){if(r[n-1]==="-"&&r[n-2]==="-"){d=false;l--}}else{l--}if(l===0){break}}else if(r[n]==="["){u=true}else{A+=r[n]}}if(l!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:s,i:n}}readEntityExp(r,n){n=skipWhitespace(r,n);let s="";while(nthis.options.maxEntitySize){throw new Error(`Entity "${s}" size (${a.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}n--;return[s,a,n]}readNotationExp(r,n){n=skipWhitespace(r,n);let s="";while(n{while(n1||u.length===1&&!A)){return r}else{const a=Number(s);const A=String(a);if(a===0)return a;if(A.search(/[eE]/)!==-1){if(n.eNotation)return a;else return r}else if(s.indexOf(".")!==-1){if(A==="0")return a;else if(A===d)return a;else if(A===`${l}${d}`)return a;else return r}let p=u?d:s;if(u){return p===A||l+p===A?a:r}else{return p===A||p===l+A?a:r}}}else{return r}}}const jr=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(r,n,s){if(!s.eNotation)return r;const a=n.match(jr);if(a){let l=a[1]||"";const u=a[3].indexOf("e")===-1?"E":"e";const d=a[2];const A=l?r[d.length+1]===u:r[d.length]===u;if(d.length>1&&A)return r;else if(d.length===1&&(a[3].startsWith(`.${u}`)||a[3][0]===u)){return Number(n)}else if(s.leadingZeros&&!A){n=(a[1]||"")+a[3];return Number(n)}else return r}else{return r}}function trimZeros(r){if(r&&r.indexOf(".")!==-1){r=r.replace(/0+$/,"");if(r===".")r="0";else if(r[0]===".")r="0"+r;else if(r[r.length-1]===".")r=r.substring(0,r.length-1);return r}return r}function parse_int(r,n){if(parseInt)return parseInt(r,n);else if(Number.parseInt)return Number.parseInt(r,n);else if(window&&window.parseInt)return window.parseInt(r,n);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(r,n,s){const a=n===Infinity;switch(s.infinity.toLowerCase()){case"null":return null;case"infinity":return n;case"string":return a?"Infinity":"-Infinity";case"original":default:return r}}function ignoreAttributes_getIgnoreAttributesFn(r){if(typeof r==="function"){return r}if(Array.isArray(r)){return n=>{for(const s of r){if(typeof s==="string"&&n===s){return true}if(s instanceof RegExp&&s.test(n)){return true}}}}return()=>false}function extractRawAttributes(r,n){if(!r)return{};const s=n.attributesGroupName?r[n.attributesGroupName]:r;if(!s)return{};const a={};for(const r in s){if(r.startsWith(n.attributeNamePrefix)){const l=r.substring(n.attributeNamePrefix.length);a[l]=s[r]}else{a[r]=s[r]}}return a}function extractNamespace(r){if(!r||typeof r!=="string")return undefined;const n=r.indexOf(":");if(n!==-1&&n>0){const s=r.substring(0,n);if(s!=="xmlns"){return s}}return undefined}class OrderedObjParser{constructor(r){this.options=r;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(r,n)=>fromCodePoint(n,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(r,n)=>fromCodePoint(n,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=ignoreAttributes_getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;this.matcher=new Matcher;this.isCurrentNodeStopNode=false;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let r=0;r0){if(!d)r=this.replaceEntitiesValue(r,n,s);const a=this.options.jPath?s.toString():s;const A=this.options.tagValueProcessor(n,r,a,l,u);if(A===null||A===undefined){return r}else if(typeof A!==typeof r||A!==r){return A}else if(this.options.trimValues){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{const n=r.trim();if(n===r){return parseValue(r,this.options.parseTagValue,this.options.numberParseOptions)}else{return r}}}}}function resolveNameSpace(r){if(this.options.removeNSPrefix){const n=r.split(":");const s=r.charAt(0)==="/"?"/":"";if(n[0]==="xmlns"){return""}if(n.length===2){r=s+n[1]}}return r}const Wr=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(r,n,s){if(this.options.ignoreAttributes!==true&&typeof r==="string"){const a=getAllMatches(r,Wr);const l=a.length;const u={};const d={};for(let r=0;r0&&typeof n==="object"&&n.updateCurrent){n.updateCurrent(d)}for(let r=0;r",u,"Closing Tag is not closed.");let l=r.substring(u+2,n).trim();if(this.options.removeNSPrefix){const r=l.indexOf(":");if(r!==-1){l=l.substr(r+1)}}l=transformTagName(this.options.transformTagName,l,"",this.options).tagName;if(s){a=this.saveTextToParentTag(a,s,this.matcher)}const d=this.matcher.getCurrentTag();if(l&&this.options.unpairedTags.indexOf(l)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: `)}if(d&&this.options.unpairedTags.indexOf(d)!==-1){this.matcher.pop();this.tagsNodeStack.pop()}this.matcher.pop();this.isCurrentNodeStopNode=false;s=this.tagsNodeStack.pop();a="";u=n}else if(r[u+1]==="?"){let n=readTagExp(r,u,false,"?>");if(!n)throw new Error("Pi Tag is not closed.");a=this.saveTextToParentTag(a,s,this.matcher);if(this.options.ignoreDeclaration&&n.tagName==="?xml"||this.options.ignorePiTags){}else{const r=new XmlNode(n.tagName);r.add(this.options.textNodeName,"");if(n.tagName!==n.tagExp&&n.attrExpPresent){r[":@"]=this.buildAttributesMap(n.tagExp,this.matcher,n.tagName)}this.addChild(s,r,this.matcher,u)}u=n.closeIndex+1}else if(r.substr(u+1,3)==="!--"){const n=findClosingIndex(r,"--\x3e",u+4,"Comment is not closed.");if(this.options.commentPropName){const l=r.substring(u+4,n-2);a=this.saveTextToParentTag(a,s,this.matcher);s.add(this.options.commentPropName,[{[this.options.textNodeName]:l}])}u=n}else if(r.substr(u+1,2)==="!D"){const n=l.readDocType(r,u);this.docTypeEntities=n.entities;u=n.i}else if(r.substr(u+1,2)==="!["){const n=findClosingIndex(r,"]]>",u,"CDATA is not closed.")-2;const l=r.substring(u+9,n);a=this.saveTextToParentTag(a,s,this.matcher);let d=this.parseTextData(l,s.tagname,this.matcher,true,false,true,true);if(d==undefined)d="";if(this.options.cdataPropName){s.add(this.options.cdataPropName,[{[this.options.textNodeName]:l}])}else{s.add(this.options.textNodeName,d)}u=n+2}else{let l=readTagExp(r,u,this.options.removeNSPrefix);if(!l){const n=r.substring(Math.max(0,u-50),Math.min(r.length,u+50));throw new Error(`readTagExp returned undefined at position ${u}. Context: "${n}"`)}let d=l.tagName;const A=l.rawTagName;let p=l.tagExp;let f=l.attrExpPresent;let g=l.closeIndex;({tagName:d,tagExp:p}=transformTagName(this.options.transformTagName,d,p,this.options));if(this.options.strictReservedNames&&(d===this.options.commentPropName||d===this.options.cdataPropName)){throw new Error(`Invalid tag name: ${d}`)}if(s&&a){if(s.tagname!=="!xml"){a=this.saveTextToParentTag(a,s,this.matcher,false)}}const y=s;if(y&&this.options.unpairedTags.indexOf(y.tagname)!==-1){s=this.tagsNodeStack.pop();this.matcher.pop()}let b=false;if(p.length>0&&p.lastIndexOf("/")===p.length-1){b=true;if(d[d.length-1]==="/"){d=d.substr(0,d.length-1);p=d}else{p=p.substr(0,p.length-1)}f=d!==p}let C=null;let w={};let B=undefined;B=extractNamespace(A);if(d!==n.tagname){this.matcher.push(d,{},B)}if(d!==p&&f){C=this.buildAttributesMap(p,this.matcher,d);if(C){w=extractRawAttributes(C,this.options)}}if(d!==n.tagname){this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher)}const I=u;if(this.isCurrentNodeStopNode){let n="";if(b){u=l.closeIndex}else if(this.options.unpairedTags.indexOf(d)!==-1){u=l.closeIndex}else{const s=this.readStopNodeData(r,A,g+1);if(!s)throw new Error(`Unexpected end of ${A}`);u=s.i;n=s.tagContent}const a=new XmlNode(d);if(C){a[":@"]=C}a.add(this.options.textNodeName,n);this.matcher.pop();this.isCurrentNodeStopNode=false;this.addChild(s,a,this.matcher,I)}else{if(b){({tagName:d,tagExp:p}=transformTagName(this.options.transformTagName,d,p,this.options));const r=new XmlNode(d);if(C){r[":@"]=C}this.addChild(s,r,this.matcher,I);this.matcher.pop();this.isCurrentNodeStopNode=false}else if(this.options.unpairedTags.indexOf(d)!==-1){const r=new XmlNode(d);if(C){r[":@"]=C}this.addChild(s,r,this.matcher,I);this.matcher.pop();this.isCurrentNodeStopNode=false;u=l.closeIndex;continue}else{const r=new XmlNode(d);if(this.tagsNodeStack.length>this.options.maxNestedTags){throw new Error("Maximum nested tags exceeded")}this.tagsNodeStack.push(s);if(C){r[":@"]=C}this.addChild(s,r,this.matcher,I);s=r}a="";u=g}}}else{a+=r[u]}}return n.child};function addChild(r,n,s,a){if(!this.options.captureMetaData)a=undefined;const l=this.options.jPath?s.toString():s;const u=this.options.updateTag(n.tagname,l,n[":@"]);if(u===false){}else if(typeof u==="string"){n.tagname=u;r.addChild(n,a)}else{r.addChild(n,a)}}function OrderedObjParser_replaceEntitiesValue(r,n,s){const a=this.options.processEntities;if(!a||!a.enabled){return r}if(a.allowedTags){const l=this.options.jPath?s.toString():s;const u=Array.isArray(a.allowedTags)?a.allowedTags.includes(n):a.allowedTags(n,l);if(!u){return r}}if(a.tagFilter){const l=this.options.jPath?s.toString():s;if(!a.tagFilter(n,l)){return r}}for(let n in this.docTypeEntities){const s=this.docTypeEntities[n];const l=r.match(s.regx);if(l){this.entityExpansionCount+=l.length;if(a.maxTotalExpansions&&this.entityExpansionCount>a.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${a.maxTotalExpansions}`)}const n=r.length;r=r.replace(s.regx,s.val);if(a.maxExpandedLength){this.currentExpandedLength+=r.length-n;if(this.currentExpandedLength>a.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${a.maxExpandedLength}`)}}}}if(r.indexOf("&")===-1)return r;for(let n in this.lastEntities){const s=this.lastEntities[n];r=r.replace(s.regex,s.val)}if(r.indexOf("&")===-1)return r;if(this.options.htmlEntities){for(let n in this.htmlEntities){const s=this.htmlEntities[n];r=r.replace(s.regex,s.val)}}r=r.replace(this.ampEntity.regex,this.ampEntity.val);return r}function saveTextToParentTag(r,n,s,a){if(r){if(a===undefined)a=n.child.length===0;r=this.parseTextData(r,n.tagname,s,false,n[":@"]?Object.keys(n[":@"]).length!==0:false,a);if(r!==undefined&&r!=="")n.add(this.options.textNodeName,r);r=""}return r}function isItStopNode(r,n){if(!r||r.length===0)return false;for(let s=0;s",s,`${n} is not closed`);let d=r.substring(s+2,u).trim();if(d===n){l--;if(l===0){return{tagContent:r.substring(a,s),i:u}}}s=u}else if(r[s+1]==="?"){const n=findClosingIndex(r,"?>",s+1,"StopNode is not closed.");s=n}else if(r.substr(s+1,3)==="!--"){const n=findClosingIndex(r,"--\x3e",s+3,"StopNode is not closed.");s=n}else if(r.substr(s+1,2)==="!["){const n=findClosingIndex(r,"]]>",s,"StopNode is not closed.")-2;s=n}else{const a=readTagExp(r,s,">");if(a){const r=a&&a.tagName;if(r===n&&a.tagExp[a.tagExp.length-1]!=="/"){l++}s=a.closeIndex}}}}}function parseValue(r,n,s){if(n&&typeof r==="string"){const n=r.trim();if(n==="true")return true;else if(n==="false")return false;else return toNumber(r,s)}else{if(isExist(r)){return r}else{return""}}}function fromCodePoint(r,n,s){const a=Number.parseInt(r,n);if(a>=0&&a<=1114111){return String.fromCodePoint(a)}else{return s+r+";"}}function transformTagName(r,n,s,a){if(r){const a=r(n);if(s===n){s=a}n=a}n=sanitizeName(n,a);return{tagName:n,tagExp:s}}function sanitizeName(r,n){if(Pr.includes(r)){throw new Error(`[SECURITY] Invalid name: "${r}" is a reserved JavaScript keyword that could cause prototype pollution`)}else if(_r.includes(r)){return n.onDangerousProperty(r)}return r}const Yr=XmlNode.getMetaDataSymbol();function stripAttributePrefix(r,n){if(!r||typeof r!=="object")return{};if(!n)return r;const s={};for(const a in r){if(a.startsWith(n)){const l=a.substring(n.length);s[l]=r[a]}else{s[a]=r[a]}}return s}function prettify(r,n,s){return compress(r,n,s)}function compress(r,n,s){let a;const l={};for(let u=0;u0)l[n.textNodeName]=a}else if(a!==undefined)l[n.textNodeName]=a;return l}function node2json_propName(r){const n=Object.keys(r);for(let r=0;r${u}`.replace(/\n/g,"")}async function parseXML(r,n={}){if(!r){throw new Error("Document is empty")}const s=Ur.validate(r);if(s!==true){throw s}const a=new XMLParser(getParserOptions(n));const l=a.parse(r);if(l["?xml"]){delete l["?xml"]}if(!n.includeRoot){for(const r of Object.keys(l)){const n=l[r];return typeof n==="object"?Object.assign({},n):n}}return l}const Kr=esm_createClientLogger("storage-blob");var Xr=s(24434);class BuffersStream extends ge.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(r,n,s){super(s);this.buffers=r;this.byteLength=n;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let a=0;for(const r of this.buffers){a+=r.byteLength}if(a=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const n=[];let s=0;while(sr-s){const a=this.byteOffsetInCurrentBuffer+r-s;n.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,a));this.pushedBytesLength+=r-s;this.byteOffsetInCurrentBuffer=a;s=r;break}else{const r=this.byteOffsetInCurrentBuffer+u;n.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(u===l){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=u;s+=u}}if(n.length>1){this.push(Buffer.concat(n))}else if(n.length===1){this.push(n[0])}}}var Zr=s(4573);const en=Zr.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(r,n,s){this.capacity=r;this._size=0;const a=Math.ceil(r/en);for(let n=0;n0){r[0]=r[0].slice(u)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Xr.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(r,n,s,a,l,u){if(n<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${n}`)}if(s<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${s}`)}if(l<=0){throw new RangeError(`concurrency must be larger than 0, current is ${l}`)}this.bufferSize=n;this.maxBuffers=s;this.readable=r;this.outgoingHandler=a;this.concurrency=l;this.encoding=u}async do(){return new Promise(((r,n)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();n(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengths.getReadableStream()),s.size,this.offset).then(r).catch(n)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const n=r.size;this.executingOutgoingHandlers++;this.offset+=n;try{await this.outgoingHandler((()=>r.getReadableStream()),n,this.offset-n)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let tn;function cache_getCachedDefaultHttpClient(){if(!tn){tn=esm_defaultHttpClient_createDefaultHttpClient()}return tn}class BaseRequestPolicy{_nextPolicy;_options;constructor(r,n){this._nextPolicy=r;this._options=n}shouldLog(r){return this._options.shouldLog(r)}log(r,n){this._options.log(r,n)}}const rn="1.0.0";const nn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const sn={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const an=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const ln=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const n=new URL(r);let s=n.pathname;s=s||"/";s=utils_common_escape(s);n.pathname=s;return n.toString()}function getProxyUriFromDevConnString(r){let n="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){n=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return n}function getValueInConnString(r,n){const s=r.split(";");for(const r of s){if(r.trim().startsWith(n)){return r.trim().match(n+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let n="";if(r.startsWith("UseDevelopmentStorage=true")){n=getProxyUriFromDevConnString(r);r=DevelopmentConnectionString}let s=getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let u=Buffer.from("accountKey","base64");let d="";l=getValueInConnString(r,"AccountName");u=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!s){a=getValueInConnString(r,"DefaultEndpointsProtocol");const n=a.toLowerCase();if(n!=="https"&&n!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${d}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(u.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:u,proxyUri:n}}else{let n=getValueInConnString(r,"SharedAccessSignature");let a=getValueInConnString(r,"AccountName");if(!a){a=getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!n){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(n.startsWith("?")){n=n.substring(1)}return{kind:"SASConnString",url:s,accountName:a,accountSas:n}}}function utils_common_escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,n){const s=new URL(r);let a=s.pathname;a=a?a.endsWith("/")?`${a}${n}`:`${a}/${n}`:n;s.pathname=a;return s.toString()}function setURLParameter(r,n,s){const a=new URL(r);const l=encodeURIComponent(n);const u=s?encodeURIComponent(s):undefined;const d=a.search===""?"?":a.search;const A=[];for(const r of d.slice(1).split("&")){if(r){const[n]=r.split("=",2);if(n!==l){A.push(r)}}}if(u){A.push(`${l}=${u}`)}a.search=A.length?`?${A.join("&")}`:"";return a.toString()}function getURLParameter(r,n){const s=new URL(r);return s.searchParams.get(n)??undefined}function setURLHost(r,n){const s=new URL(r);s.hostname=n;return s.toString()}function getURLPath(r){try{const n=new URL(r);return n.pathname}catch(r){return undefined}}function getURLScheme(r){try{const n=new URL(r);return n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol}catch(r){return undefined}}function getURLPathAndQuery(r){const n=new URL(r);const s=n.pathname;if(!s){throw new RangeError("Invalid url without valid path.")}let a=n.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${s}${a}`}function getURLQueries(r){let n=new URL(r).search;if(!n){return{}}n=n.trim();n=n.startsWith("?")?n.substring(1):n;let s=n.split("&");s=s.filter((r=>{const n=r.indexOf("=");const s=r.lastIndexOf("=");return n>0&&n===s&&sl){r=r.slice(0,l)}const u=r+padStart(n.toString(),s-r.length,"0");return base64encode(u)}async function utils_common_delay(r,n,s){return new Promise(((a,l)=>{let u;const abortHandler=()=>{if(u!==undefined){clearTimeout(u)}l(s)};const resolveHandler=()=>{if(n!==undefined){n.removeEventListener("abort",abortHandler)}a()};u=setTimeout(resolveHandler,r);if(n!==undefined){n.addEventListener("abort",abortHandler)}}))}function padStart(r,n,s=" "){if(String.prototype.padStart){return r.padStart(n,s)}s=s||" ";if(r.length>n){return r}else{n=n-r.length;if(n>s.length){s+=s.repeat(n/s.length)}return s.slice(0,n)+r}}function sanitizeURL(r){let n=r;if(getURLParameter(n,URLConstants.Parameters.SIGNATURE)){n=setURLParameter(n,URLConstants.Parameters.SIGNATURE,"*****")}return n}function sanitizeHeaders(r){const n=createHttpHeaders();for(const[s,a]of r){if(s.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){n.set(s,"*****")}else if(s.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){n.set(s,sanitizeURL(a))}else{n.set(s,a)}}return n}function iEqual(r,n){return r.toLocaleLowerCase()===n.toLocaleLowerCase()}function getAccountNameFromUrl(r){const n=new URL(r);let s;try{if(n.hostname.split(".")[1]==="blob"){s=n.hostname.split(".")[0]}else if(isIpEndpointStyle(n)){s=n.pathname.split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){const n=r.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(n)||Boolean(r.port)&&PathStylePorts.includes(r.port)}function attachCredential(r,n){r.credential=n;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function EscapePath(r){const n=r.split("/");for(let r=0;ru}const d=l0){r.headers.set(sn.CONTENT_LENGTH,Buffer.byteLength(r.body))}const n=[r.method.toUpperCase(),this.getHeaderValueToSign(r,sn.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,sn.CONTENT_ENCODING),this.getHeaderValueToSign(r,sn.CONTENT_LENGTH),this.getHeaderValueToSign(r,sn.CONTENT_MD5),this.getHeaderValueToSign(r,sn.CONTENT_TYPE),this.getHeaderValueToSign(r,sn.DATE),this.getHeaderValueToSign(r,sn.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,sn.IF_MATCH),this.getHeaderValueToSign(r,sn.IF_NONE_MATCH),this.getHeaderValueToSign(r,sn.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,sn.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const s=this.factory.computeHMACSHA256(n);r.headers.set(sn.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`);return r}getHeaderValueToSign(r,n){const s=r.headers.get(n);if(!s){return""}if(n===sn.CONTENT_LENGTH&&s==="0"){return""}return s}getCanonicalizedHeadersString(r){let n=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(sn.PREFIX_FOR_STORAGE)));n.sort(((r,n)=>compareHeader(r.name.toLowerCase(),n.name.toLowerCase())));n=n.filter(((r,n,s)=>{if(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()){return false}return true}));let s="";n.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}getCanonicalizedResourceString(r){const n=getURLPath(r.url)||"/";let s="";s+=`/${this.factory.accountName}${n}`;const a=getURLQueries(r.url);const l={};if(a){const r=[];for(const n in a){if(Object.prototype.hasOwnProperty.call(a,n)){const s=n.toLowerCase();l[s]=a[n];r.push(s)}}r.sort();for(const n of r){s+=`\n${n}:${decodeURIComponent(l[n])}`}}return s}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(r,n){super();this.accountName=r;this.accountKey=Buffer.from(n,"base64")}create(r,n){return new StorageSharedKeyCredentialPolicy(r,n,this)}computeHMACSHA256(r){return(0,It.createHmac)("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const An=esm_createClientLogger("storage-common");var pn;(function(r){r[r["EXPONENTIAL"]=0]="EXPONENTIAL";r[r["FIXED"]=1]="FIXED"})(pn||(pn={}));function NewRetryPolicyFactory(r){return{create:(n,s)=>new StorageRetryPolicy(n,s,r)}}const hn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const mn=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(r,n,s=hn){super(r,n);this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:hn.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):hn.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:hn.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:hn.maxRetryDelayInMs):hn.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:hn.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:hn.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,n,s){const a=r.clone();const l=n||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||s%2===1;if(!l){a.url=setURLHost(a.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){a.url=setURLParameter(a.url,nn.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let u;try{An.info(`RetryPolicy: =====> Try=${s} ${l?"Primary":"Secondary"}`);u=await this._nextPolicy.sendRequest(a);if(!this.shouldRetry(l,s,u)){return u}n=n||!l&&u.status===404}catch(r){An.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(l,s,u,r)){throw r}}await this.delay(l,s,r.abortSignal);return this.attemptSendRequest(r,n,++s)}shouldRetry(r,n,s,a){if(n>=this.retryOptions.maxTries){An.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const l=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(a){for(const r of l){if(a.name.toUpperCase().includes(r)||a.message.toUpperCase().includes(r)||a.code&&a.code.toString().toUpperCase()===r){An.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(s||a){const n=s?s.status:a?a.statusCode:0;if(!r&&n===404){An.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(n===503||n===500){An.info(`RetryPolicy: Will retry for status code ${n}.`);return true}}if(s){if(s?.status>=400){const r=s.headers.get(sn.X_MS_CopySourceErrorCode);if(r!==undefined){switch(r){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(a?.code==="PARSE_ERROR"&&a?.message.startsWith(`Error "Error: Unclosed root tag`)){An.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,n,s){let a=0;if(r){switch(this.retryOptions.retryPolicyType){case pn.EXPONENTIAL:a=Math.min((Math.pow(2,n-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case pn.FIXED:a=this.retryOptions.retryDelayInMs;break}}else{a=Math.random()*1e3}An.info(`RetryPolicy: Delay for ${a}ms`);return utils_common_delay(a,s,mn)}}class StorageRetryPolicyFactory{retryOptions;constructor(r){this.retryOptions=r}create(r,n){return new StorageRetryPolicy(r,n,this.retryOptions)}}const gn="storageBrowserPolicy";function storageBrowserPolicy(){return{name:gn,async sendRequest(r,n){if(xt){return n(r)}if(r.method==="GET"||r.method==="HEAD"){r.url=setURLParameter(r.url,nn.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}r.headers.delete(sn.COOKIE);r.headers.delete(sn.CONTENT_LENGTH);return n(r)}}}const yn="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(r){if(r.body&&(typeof r.body==="string"||Buffer.isBuffer(r.body))&&r.body.length>0){r.headers.set(sn.CONTENT_LENGTH,Buffer.byteLength(r.body))}}return{name:yn,async sendRequest(r,n){correctContentLength(r);return n(r)}}}const En="storageRetryPolicy";const bn={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:pn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Cn=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const wn=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(r={}){const n=r.retryPolicyType??bn.retryPolicyType;const s=r.maxTries??bn.maxTries;const a=r.retryDelayInMs??bn.retryDelayInMs;const l=r.maxRetryDelayInMs??bn.maxRetryDelayInMs;const u=r.secondaryHost??bn.secondaryHost;const d=r.tryTimeoutInMs??bn.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:r,attempt:n,response:a,error:l}){if(n>=s){An.info(`RetryPolicy: Attempt(s) ${n} >= maxTries ${s}, no further try.`);return false}if(l){for(const r of Cn){if(l.name.toUpperCase().includes(r)||l.message.toUpperCase().includes(r)||l.code&&l.code.toString().toUpperCase()===r){An.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}if(l?.code==="PARSE_ERROR"&&l?.message.startsWith(`Error "Error: Unclosed root tag`)){An.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(a||l){const n=a?.status??l?.statusCode??0;if(!r&&n===404){An.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(n===503||n===500){An.info(`RetryPolicy: Will retry for status code ${n}.`);return true}}if(a){if(a?.status>=400){const r=a.headers.get(sn.X_MS_CopySourceErrorCode);if(r!==undefined){switch(r){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(r,s){let u=0;if(r){switch(n){case pn.EXPONENTIAL:u=Math.min((Math.pow(2,s-1)-1)*a,l);break;case pn.FIXED:u=a;break}}else{u=Math.random()*1e3}An.info(`RetryPolicy: Delay for ${u}ms`);return u}return{name:En,async sendRequest(r,n){if(d){r.url=setURLParameter(r.url,nn.Parameters.TIMEOUT,String(Math.floor(d/1e3)))}const s=r.url;const a=u?setURLHost(r.url,u):undefined;let l=false;let A=1;let p=true;let f;let g;while(p){const u=l||!a||!["GET","HEAD","OPTIONS"].includes(r.method)||A%2===1;r.url=u?s:a;f=undefined;g=undefined;try{An.info(`RetryPolicy: =====> Try=${A} ${u?"Primary":"Secondary"}`);f=await n(r);l=l||!u&&f.status===404}catch(r){if(esm_restError_isRestError(r)){An.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);g=r}else{An.error(`RetryPolicy: Caught error, message: ${getErrorMessage(r)}`);throw r}}p=shouldRetry({isPrimaryRetry:u,attempt:A,response:f,error:g});if(p){await utils_common_delay(calculateDelay(u,A),r.abortSignal,wn)}A++}if(f){return f}throw g??new Wt("RetryPolicy failed without known error.")}}}const Bn="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(r){function signRequest(n){n.headers.set(sn.X_MS_DATE,(new Date).toUTCString());if(n.body&&(typeof n.body==="string"||Buffer.isBuffer(n.body))&&n.body.length>0){n.headers.set(sn.CONTENT_LENGTH,Buffer.byteLength(n.body))}const s=[n.method.toUpperCase(),getHeaderValueToSign(n,sn.CONTENT_LANGUAGE),getHeaderValueToSign(n,sn.CONTENT_ENCODING),getHeaderValueToSign(n,sn.CONTENT_LENGTH),getHeaderValueToSign(n,sn.CONTENT_MD5),getHeaderValueToSign(n,sn.CONTENT_TYPE),getHeaderValueToSign(n,sn.DATE),getHeaderValueToSign(n,sn.IF_MODIFIED_SINCE),getHeaderValueToSign(n,sn.IF_MATCH),getHeaderValueToSign(n,sn.IF_NONE_MATCH),getHeaderValueToSign(n,sn.IF_UNMODIFIED_SINCE),getHeaderValueToSign(n,sn.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(n)+getCanonicalizedResourceString(n);const a=(0,It.createHmac)("sha256",r.accountKey).update(s,"utf8").digest("base64");n.headers.set(sn.AUTHORIZATION,`SharedKey ${r.accountName}:${a}`)}function getHeaderValueToSign(r,n){const s=r.headers.get(n);if(!s){return""}if(n===sn.CONTENT_LENGTH&&s==="0"){return""}return s}function getCanonicalizedHeadersString(r){let n=[];for(const[s,a]of r.headers){if(s.toLowerCase().startsWith(sn.PREFIX_FOR_STORAGE)){n.push({name:s,value:a})}}n.sort(((r,n)=>compareHeader(r.name.toLowerCase(),n.name.toLowerCase())));n=n.filter(((r,n,s)=>{if(n>0&&r.name.toLowerCase()===s[n-1].name.toLowerCase()){return false}return true}));let s="";n.forEach((r=>{s+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return s}function getCanonicalizedResourceString(n){const s=getURLPath(n.url)||"/";let a="";a+=`/${r.accountName}${s}`;const l=getURLQueries(n.url);const u={};if(l){const r=[];for(const n in l){if(Object.prototype.hasOwnProperty.call(l,n)){const s=n.toLowerCase();u[s]=l[n];r.push(s)}}r.sort();for(const n of r){a+=`\n${n}:${decodeURIComponent(u[n])}`}}return a}return{name:Bn,async sendRequest(r,n){signRequest(r);return n(r)}}}const In="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:In,async sendRequest(r,n){try{const s=await n(r);return s}catch(r){if(typeof r==="object"&&r!==null&&r.response&&r.response.parsedBody){if(r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"){r.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"}}throw r}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(r,n){this.accountName=r;this.userDelegationKey=n;this.key=Buffer.from(n.value,"base64")}computeHMACSHA256(r){return(0,It.createHmac)("sha256",this.key).update(r,"utf8").digest("base64")}}const Sn="12.31.0";const Qn="2026-02-06";const vn=256*1024*1024;const Rn=4e3*1024*1024;const Nn=5e4;const xn=8*1024*1024;const Dn=4*1024*1024;const Tn=5;const kn=100*1e3;const _n="https://storage.azure.com/.default";const Pn={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Fn={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const Ln={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const On="";const Mn="*";const Un=1*1024*1024;const Hn=256;const Gn=4*Un;const zn="\r\n";const qn="HTTP/1.1";const Vn="AES256";const jn=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Wn=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];const Yn=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const Jn="BlobUsesCustomerSpecifiedEncryption";const $n="BlobDoesNotUseCustomerSpecifiedEncryption";const Kn=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const n=r;return Array.isArray(n.factories)&&typeof n.options==="object"&&typeof n.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(r,n={}){this.factories=r;this.options=n}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,n={}){if(!r){r=new AnonymousCredential}const s=new Pipeline([],n);s._credential=r;return s}function processDownlevelPipeline(r){const n=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(r.factories.length){const s=r.factories.filter((r=>!n.some((n=>n(r)))));if(s.length){const r=s.some((r=>isInjectorPolicyFactory(r)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(s),afterRetry:r}}}return undefined}function getCoreClientOptions(r){const{httpClient:n,...s}=r.options;let a=r._coreHttpClient;if(!a){a=n?convertHttpClient(n):cache_getCachedDefaultHttpClient();r._coreHttpClient=a}let l=r._corePipeline;if(!l){const n=`azsdk-js-azure-storage-blob/${Sn}`;const a=s.userAgentOptions&&s.userAgentOptions.userAgentPrefix?`${s.userAgentOptions.userAgentPrefix} ${n}`:`${n}`;l=createClientPipeline({...s,loggingOptions:{additionalAllowedHeaderNames:Wn,additionalAllowedQueryParameters:Yn,logger:Kr.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});l.removePolicy({phase:"Retry"});l.removePolicy({name:Lt});l.addPolicy(storageCorrectContentLengthPolicy());l.addPolicy(storageRetryPolicy(s.retryOptions),{phase:"Retry"});l.addPolicy(storageRequestFailureDetailsParserPolicy());l.addPolicy(storageBrowserPolicy());const u=processDownlevelPipeline(r);if(u){l.addPolicy(u.wrappedPolicies,u.afterRetry?{afterPhase:"Retry"}:undefined)}const d=getCredentialFromPipeline(r);if(isTokenCredential(d)){l.addPolicy(bearerTokenAuthenticationPolicy({credential:d,scopes:s.audience??_n,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(d instanceof StorageSharedKeyCredential){l.addPolicy(storageSharedKeyCredentialPolicy({accountName:d.accountName,accountKey:d.accountKey}),{phase:"Sign"})}r._corePipeline=l}return{...s,allowInsecureConnection:true,httpClient:a,pipeline:l}}function getCredentialFromPipeline(r){if(r._credential){return r._credential}let n=new AnonymousCredential;for(const s of r.factories){if(isTokenCredential(s.credential)){n=s.credential}else if(isStorageSharedKeyCredential(s)){return s}}return n}function isStorageSharedKeyCredential(r){if(r instanceof StorageSharedKeyCredential){return true}return r.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(r){if(r instanceof AnonymousCredential){return true}return r.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(r){return isTokenCredential(r.credential)}function isStorageBrowserPolicyFactory(r){if(r instanceof StorageBrowserPolicyFactory){return true}return r.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(r){if(r instanceof StorageRetryPolicyFactory){return true}return r.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(r){return r.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(r){return r.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(r){const n=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const s={sendRequest:async r=>({request:r,headers:r.headers.clone(),status:500})};const a={log(r,n){},shouldLog(r){return false}};const l=r.create(s,a);const u=l.constructor.name;return n.some((r=>u.startsWith(r)))}var Xn;(function(r){r["AES256"]="AES256"})(Xn||(Xn={}));var Zn;(function(r){r["Backup"]="backup"})(Zn||(Zn={}));var es;(function(r){r["NeverExpire"]="NeverExpire";r["RelativeToCreation"]="RelativeToCreation";r["RelativeToNow"]="RelativeToNow";r["Absolute"]="Absolute"})(es||(es={}));var ts;(function(r){r["AccountAlreadyExists"]="AccountAlreadyExists";r["AccountBeingCreated"]="AccountBeingCreated";r["AccountIsDisabled"]="AccountIsDisabled";r["AuthenticationFailed"]="AuthenticationFailed";r["AuthorizationFailure"]="AuthorizationFailure";r["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";r["ConditionNotMet"]="ConditionNotMet";r["EmptyMetadataKey"]="EmptyMetadataKey";r["InsufficientAccountPermissions"]="InsufficientAccountPermissions";r["InternalError"]="InternalError";r["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";r["InvalidHeaderValue"]="InvalidHeaderValue";r["InvalidHttpVerb"]="InvalidHttpVerb";r["InvalidInput"]="InvalidInput";r["InvalidMd5"]="InvalidMd5";r["InvalidMetadata"]="InvalidMetadata";r["InvalidQueryParameterValue"]="InvalidQueryParameterValue";r["InvalidRange"]="InvalidRange";r["InvalidResourceName"]="InvalidResourceName";r["InvalidUri"]="InvalidUri";r["InvalidXmlDocument"]="InvalidXmlDocument";r["InvalidXmlNodeValue"]="InvalidXmlNodeValue";r["Md5Mismatch"]="Md5Mismatch";r["MetadataTooLarge"]="MetadataTooLarge";r["MissingContentLengthHeader"]="MissingContentLengthHeader";r["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";r["MissingRequiredHeader"]="MissingRequiredHeader";r["MissingRequiredXmlNode"]="MissingRequiredXmlNode";r["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";r["OperationTimedOut"]="OperationTimedOut";r["OutOfRangeInput"]="OutOfRangeInput";r["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";r["RequestBodyTooLarge"]="RequestBodyTooLarge";r["ResourceTypeMismatch"]="ResourceTypeMismatch";r["RequestUrlFailedToParse"]="RequestUrlFailedToParse";r["ResourceAlreadyExists"]="ResourceAlreadyExists";r["ResourceNotFound"]="ResourceNotFound";r["ServerBusy"]="ServerBusy";r["UnsupportedHeader"]="UnsupportedHeader";r["UnsupportedXmlNode"]="UnsupportedXmlNode";r["UnsupportedQueryParameter"]="UnsupportedQueryParameter";r["UnsupportedHttpVerb"]="UnsupportedHttpVerb";r["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";r["BlobAlreadyExists"]="BlobAlreadyExists";r["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";r["BlobNotFound"]="BlobNotFound";r["BlobOverwritten"]="BlobOverwritten";r["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";r["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";r["BlockCountExceedsLimit"]="BlockCountExceedsLimit";r["BlockListTooLong"]="BlockListTooLong";r["CannotChangeToLowerTier"]="CannotChangeToLowerTier";r["CannotVerifyCopySource"]="CannotVerifyCopySource";r["ContainerAlreadyExists"]="ContainerAlreadyExists";r["ContainerBeingDeleted"]="ContainerBeingDeleted";r["ContainerDisabled"]="ContainerDisabled";r["ContainerNotFound"]="ContainerNotFound";r["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";r["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";r["CopyIdMismatch"]="CopyIdMismatch";r["FeatureVersionMismatch"]="FeatureVersionMismatch";r["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";r["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";r["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";r["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";r["InvalidBlobOrBlock"]="InvalidBlobOrBlock";r["InvalidBlobTier"]="InvalidBlobTier";r["InvalidBlobType"]="InvalidBlobType";r["InvalidBlockId"]="InvalidBlockId";r["InvalidBlockList"]="InvalidBlockList";r["InvalidOperation"]="InvalidOperation";r["InvalidPageRange"]="InvalidPageRange";r["InvalidSourceBlobType"]="InvalidSourceBlobType";r["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";r["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";r["LeaseAlreadyPresent"]="LeaseAlreadyPresent";r["LeaseAlreadyBroken"]="LeaseAlreadyBroken";r["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";r["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";r["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";r["LeaseIdMissing"]="LeaseIdMissing";r["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";r["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";r["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";r["LeaseLost"]="LeaseLost";r["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";r["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";r["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";r["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";r["NoAuthenticationInformation"]="NoAuthenticationInformation";r["NoPendingCopyOperation"]="NoPendingCopyOperation";r["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";r["PendingCopyOperation"]="PendingCopyOperation";r["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";r["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";r["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";r["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";r["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";r["SnapshotCountExceeded"]="SnapshotCountExceeded";r["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";r["SnapshotsPresent"]="SnapshotsPresent";r["SourceConditionNotMet"]="SourceConditionNotMet";r["SystemInUse"]="SystemInUse";r["TargetConditionNotMet"]="TargetConditionNotMet";r["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";r["BlobBeingRehydrated"]="BlobBeingRehydrated";r["BlobArchived"]="BlobArchived";r["BlobNotArchived"]="BlobNotArchived";r["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";r["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";r["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";r["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";r["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";r["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(ts||(ts={}));const rs={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const ns={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ss={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const as={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const ls={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const cs={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const us={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const ds={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const As={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const ps={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const fs={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const hs={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const ms={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const gs={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const ys={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Es={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const bs={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Cs={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const ws={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const Bs={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Is={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ss={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Qs={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const vs={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const Rs={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const Ns={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const xs={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Ds={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const Ts={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const ks={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const _s={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Ps={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Fs={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Ls={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Os={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const Ms={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const Us={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const Hs={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const Gs={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const zs={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const qs={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const Vs={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const js={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ws={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ys={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Js={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $s={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ks={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xs={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zs={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ei={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ti={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ri={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ni={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const si={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ii={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oi={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ai={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const li={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ci={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ui={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const di={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ai={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pi={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fi={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hi={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mi={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gi={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yi={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ei={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bi={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ci={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wi={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bi={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Ii={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Si={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Qi={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vi={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ri={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ni={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Di={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ti={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ki={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const _i={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pi={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Fi={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Li={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oi={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mi={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ui={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hi={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const Gi={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zi={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const qi={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vi={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ji={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wi={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yi={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ji={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $i={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ki={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Xi={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zi={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const eo={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const to={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const ro={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const no={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const so={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const io={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const oo={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ao={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lo={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const co={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const uo={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ao={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const po={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fo={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ho={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mo={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const go={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yo={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Eo={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bo={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Co={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wo={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bo={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Io={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const So={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Qo={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vo={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ro={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const No={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xo={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const Do={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const To={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const ko={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _o={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Po={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fo={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lo={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oo={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mo={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uo={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ho={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Go={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const zo={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qo={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vo={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const jo={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wo={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yo={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jo={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $o={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ko={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xo={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zo={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ea={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ta={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ra={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const na={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sa={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ia={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const oa={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const la={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const ca={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ua={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Aa={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const fa={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ha={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const ya={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ba={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ca={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wa={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ba={parameterPath:"blobServiceProperties",mapper:rs};const Ia={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Sa={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Qa={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const va={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ra={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Na={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const xa={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const Da={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ta={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ka={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _a={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const Pa={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Fa={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const La={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Oa={parameterPath:"keyInfo",mapper:ms};const Ma={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ua={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ha={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Ga={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const za={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const qa={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const Va={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ja={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const Wa={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Ya={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const Ja={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const $a={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Ka={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Xa={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Za={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const el={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const tl={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const rl={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nl={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const sl={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const il={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const ol={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const al={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ll={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const cl={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const ul={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dl={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Al={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const pl={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const fl={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const hl={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const ml={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const gl={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const yl={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const El={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const bl={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Cl={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const wl={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const Bl={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Il={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Sl={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Ql={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const vl={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const Rl={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Nl={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const xl={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const Dl={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Tl={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const kl={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const _l={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const Pl={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const Fl={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Ll={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ol={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Ml={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const Ul={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const Hl={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const Gl={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const zl={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const ql={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Vl={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const jl={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wl={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Yl={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const Jl={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $l={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Kl={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Xl={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zl={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const ec={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const tc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const rc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const nc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const sc={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const ic={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const oc={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const ac={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const lc={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const cc={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const uc={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const dc={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Ac={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const pc={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const fc={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const hc={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const mc={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const gc={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const yc={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ec={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const bc={parameterPath:["options","queryRequest"],mapper:Os};const Cc={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wc={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bc={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Ic={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Sc={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Qc={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const vc={parameterPath:["options","tags"],mapper:bs};const Rc={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Nc={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const xc={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Dc={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Tc={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const kc={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const _c={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Pc={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Fc={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Lc={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Oc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const Mc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const Uc={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const Hc={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Gc={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const zc={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const qc={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const Vc={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const jc={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wc={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Yc={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const Jc={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const $c={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kc={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Xc={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Zc={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const eu={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const tu={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const ru={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nu={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const su={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const iu={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ou={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const au={parameterPath:"blocks",mapper:Ts};const lu={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const cu={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(r){this.client=r}setProperties(r,n){return this.client.sendOperationRequest({blobServiceProperties:r,options:n},du)}getProperties(r){return this.client.sendOperationRequest({options:r},Au)}getStatistics(r){return this.client.sendOperationRequest({options:r},pu)}listContainersSegment(r){return this.client.sendOperationRequest({options:r},fu)}getUserDelegationKey(r,n){return this.client.sendOperationRequest({keyInfo:r,options:n},hu)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},mu)}submitBatch(r,n,s,a){return this.client.sendOperationRequest({contentLength:r,multipartContentType:n,body:s,options:a},gu)}filterBlobs(r){return this.client.sendOperationRequest({options:r},yu)}}const uu=createSerializer(a,true);const du={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:Vs},default:{bodyMapper:us,headersMapper:js}},requestBody:Ba,queryParameters:[Qa,va,Ra],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uu};const Au={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:rs,headersMapper:Ws},default:{bodyMapper:us,headersMapper:Ys}},queryParameters:[Qa,va,Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:uu};const pu={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ds,headersMapper:Js},default:{bodyMapper:us,headersMapper:$s}},queryParameters:[Qa,Ra,Ta],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:uu};const fu={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ps,headersMapper:Ks},default:{bodyMapper:us,headersMapper:Xs}},queryParameters:[Ra,ka,_a,Pa,Fa,La],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:uu};const hu={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:gs,headersMapper:Zs},default:{bodyMapper:us,headersMapper:ei}},requestBody:Oa,queryParameters:[Qa,Ra,Ma],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uu};const mu={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ti},default:{bodyMapper:us,headersMapper:ri}},queryParameters:[va,Ra,Ua],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:uu};const gu={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ni},default:{bodyMapper:us,headersMapper:si}},requestBody:Ha,queryParameters:[Ra,Ga],urlParameters:[Sa],headerParameters:[Ia,Na,xa,za,qa],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:uu};const yu={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:ys,headersMapper:ii},default:{bodyMapper:us,headersMapper:oi}},queryParameters:[Ra,Pa,Fa,Va,ja],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:uu};class ContainerImpl{client;constructor(r){this.client=r}create(r){return this.client.sendOperationRequest({options:r},bu)}getProperties(r){return this.client.sendOperationRequest({options:r},Cu)}delete(r){return this.client.sendOperationRequest({options:r},wu)}setMetadata(r){return this.client.sendOperationRequest({options:r},Bu)}getAccessPolicy(r){return this.client.sendOperationRequest({options:r},Iu)}setAccessPolicy(r){return this.client.sendOperationRequest({options:r},Su)}restore(r){return this.client.sendOperationRequest({options:r},Qu)}rename(r,n){return this.client.sendOperationRequest({sourceContainerName:r,options:n},vu)}submitBatch(r,n,s,a){return this.client.sendOperationRequest({contentLength:r,multipartContentType:n,body:s,options:a},Ru)}filterBlobs(r){return this.client.sendOperationRequest({options:r},Nu)}acquireLease(r){return this.client.sendOperationRequest({options:r},xu)}releaseLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Du)}renewLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Tu)}breakLease(r){return this.client.sendOperationRequest({options:r},ku)}changeLease(r,n,s){return this.client.sendOperationRequest({leaseId:r,proposedLeaseId:n,options:s},_u)}listBlobFlatSegment(r){return this.client.sendOperationRequest({options:r},Pu)}listBlobHierarchySegment(r,n){return this.client.sendOperationRequest({delimiter:r,options:n},Fu)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},Lu)}}const Eu=createSerializer(a,true);const bu={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ai},default:{bodyMapper:us,headersMapper:li}},queryParameters:[Ra,Wa],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Ja,$a,Ka],isXML:true,serializer:Eu};const Cu={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ci},default:{bodyMapper:us,headersMapper:ui}},queryParameters:[Ra,Wa],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa],isXML:true,serializer:Eu};const wu={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:di},default:{bodyMapper:us,headersMapper:Ai}},queryParameters:[Ra,Wa],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el],isXML:true,serializer:Eu};const Bu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:pi},default:{bodyMapper:us,headersMapper:fi}},queryParameters:[Ra,Wa,tl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Xa,Za],isXML:true,serializer:Eu};const Iu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:hi},default:{bodyMapper:us,headersMapper:mi}},queryParameters:[Ra,Wa,rl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa],isXML:true,serializer:Eu};const Su={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:gi},default:{bodyMapper:us,headersMapper:yi}},requestBody:nl,queryParameters:[Ra,Wa,rl],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa,Ja,Xa,Za,el],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Eu};const Qu={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Ei},default:{bodyMapper:us,headersMapper:bi}},queryParameters:[Ra,Wa,sl],urlParameters:[Sa],headerParameters:[Na,xa,Da,il,ol],isXML:true,serializer:Eu};const vu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ci},default:{bodyMapper:us,headersMapper:wi}},queryParameters:[Ra,Wa,al],urlParameters:[Sa],headerParameters:[Na,xa,Da,ll,cl],isXML:true,serializer:Eu};const Ru={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Bi},default:{bodyMapper:us,headersMapper:Ii}},requestBody:Ha,queryParameters:[Ra,Ga,Wa],urlParameters:[Sa],headerParameters:[Ia,Na,xa,za,qa],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Eu};const Nu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:ys,headersMapper:Si},default:{bodyMapper:us,headersMapper:Qi}},queryParameters:[Ra,Pa,Fa,Va,ja,Wa],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Eu};const xu={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:vi},default:{bodyMapper:us,headersMapper:Ri}},queryParameters:[Ra,Wa,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,dl,Al,pl],isXML:true,serializer:Eu};const Du={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ni},default:{bodyMapper:us,headersMapper:xi}},queryParameters:[Ra,Wa,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,fl,hl],isXML:true,serializer:Eu};const Tu={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Di},default:{bodyMapper:us,headersMapper:Ti}},queryParameters:[Ra,Wa,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,hl,ml],isXML:true,serializer:Eu};const ku={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:ki},default:{bodyMapper:us,headersMapper:_i}},queryParameters:[Ra,Wa,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,gl,yl],isXML:true,serializer:Eu};const _u={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Pi},default:{bodyMapper:us,headersMapper:Fi}},queryParameters:[Ra,Wa,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,hl,El,bl],isXML:true,serializer:Eu};const Pu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Is,headersMapper:Li},default:{bodyMapper:us,headersMapper:Oi}},queryParameters:[Ra,ka,_a,Pa,Fa,Wa,Cl,wl],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Eu};const Fu={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ns,headersMapper:Mi},default:{bodyMapper:us,headersMapper:Ui}},queryParameters:[Ra,ka,_a,Pa,Fa,Wa,Cl,wl,Bl],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Eu};const Lu={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Hi},default:{bodyMapper:us,headersMapper:Gi}},queryParameters:[va,Ra,Ua],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Eu};class BlobImpl{client;constructor(r){this.client=r}download(r){return this.client.sendOperationRequest({options:r},Mu)}getProperties(r){return this.client.sendOperationRequest({options:r},Uu)}delete(r){return this.client.sendOperationRequest({options:r},Hu)}undelete(r){return this.client.sendOperationRequest({options:r},Gu)}setExpiry(r,n){return this.client.sendOperationRequest({expiryOptions:r,options:n},zu)}setHttpHeaders(r){return this.client.sendOperationRequest({options:r},qu)}setImmutabilityPolicy(r){return this.client.sendOperationRequest({options:r},Vu)}deleteImmutabilityPolicy(r){return this.client.sendOperationRequest({options:r},ju)}setLegalHold(r,n){return this.client.sendOperationRequest({legalHold:r,options:n},Wu)}setMetadata(r){return this.client.sendOperationRequest({options:r},Yu)}acquireLease(r){return this.client.sendOperationRequest({options:r},Ju)}releaseLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},$u)}renewLease(r,n){return this.client.sendOperationRequest({leaseId:r,options:n},Ku)}changeLease(r,n,s){return this.client.sendOperationRequest({leaseId:r,proposedLeaseId:n,options:s},Xu)}breakLease(r){return this.client.sendOperationRequest({options:r},Zu)}createSnapshot(r){return this.client.sendOperationRequest({options:r},ed)}startCopyFromURL(r,n){return this.client.sendOperationRequest({copySource:r,options:n},td)}copyFromURL(r,n){return this.client.sendOperationRequest({copySource:r,options:n},rd)}abortCopyFromURL(r,n){return this.client.sendOperationRequest({copyId:r,options:n},nd)}setTier(r,n){return this.client.sendOperationRequest({tier:r,options:n},sd)}getAccountInfo(r){return this.client.sendOperationRequest({options:r},id)}query(r){return this.client.sendOperationRequest({options:r},od)}getTags(r){return this.client.sendOperationRequest({options:r},ad)}setTags(r){return this.client.sendOperationRequest({options:r},ld)}}const Ou=createSerializer(a,true);const Mu={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:zi},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:zi},default:{bodyMapper:us,headersMapper:qi}},queryParameters:[Ra,Il,Sl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Ql,vl,Rl,Nl,xl,Dl,Tl,kl,_l],isXML:true,serializer:Ou};const Uu={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Vi},default:{bodyMapper:us,headersMapper:ji}},queryParameters:[Ra,Il,Sl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l],isXML:true,serializer:Ou};const Hu={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Wi},default:{bodyMapper:us,headersMapper:Yi}},queryParameters:[Ra,Il,Sl,Fl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Tl,kl,_l,Pl],isXML:true,serializer:Ou};const Gu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ji},default:{bodyMapper:us,headersMapper:$i}},queryParameters:[Ra,sl],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Ou};const zu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ki},default:{bodyMapper:us,headersMapper:Xi}},queryParameters:[Ra,Ll],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ol,Ml],isXML:true,serializer:Ou};const qu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Zi},default:{bodyMapper:us,headersMapper:eo}},queryParameters:[va,Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl],isXML:true,serializer:Ou};const Vu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:to},default:{bodyMapper:us,headersMapper:ro}},queryParameters:[Ra,Il,Sl,jl],urlParameters:[Sa],headerParameters:[Na,xa,Da,el,Wl,Yl],isXML:true,serializer:Ou};const ju={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:no},default:{bodyMapper:us,headersMapper:so}},queryParameters:[Ra,Il,Sl,jl],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Ou};const Wu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:io},default:{bodyMapper:us,headersMapper:oo}},queryParameters:[Ra,Il,Sl,Jl],urlParameters:[Sa],headerParameters:[Na,xa,Da,$l],isXML:true,serializer:Ou};const Yu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ao},default:{bodyMapper:us,headersMapper:lo}},queryParameters:[Ra,tl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl],isXML:true,serializer:Ou};const Ju={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:co},default:{bodyMapper:us,headersMapper:uo}},queryParameters:[Ra,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,dl,Al,pl,Tl,kl,_l],isXML:true,serializer:Ou};const $u={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ao},default:{bodyMapper:us,headersMapper:po}},queryParameters:[Ra,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,fl,hl,Tl,kl,_l],isXML:true,serializer:Ou};const Ku={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:fo},default:{bodyMapper:us,headersMapper:ho}},queryParameters:[Ra,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,hl,ml,Tl,kl,_l],isXML:true,serializer:Ou};const Xu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:mo},default:{bodyMapper:us,headersMapper:go}},queryParameters:[Ra,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,hl,El,bl,Tl,kl,_l],isXML:true,serializer:Ou};const Zu={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:yo},default:{bodyMapper:us,headersMapper:Eo}},queryParameters:[Ra,ul],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,gl,yl,Tl,kl,_l],isXML:true,serializer:Ou};const ed={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:bo},default:{bodyMapper:us,headersMapper:Co}},queryParameters:[Ra,Xl],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl],isXML:true,serializer:Ou};const td={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wo},default:{bodyMapper:us,headersMapper:Bo}},queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Xa,Za,el,Tl,kl,_l,Wl,Yl,Zl,ec,tc,rc,nc,sc,ic,oc,ac,lc,cc],isXML:true,serializer:Ou};const rd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Io},default:{bodyMapper:us,headersMapper:So}},queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,Ya,Xa,Za,el,Tl,kl,_l,Wl,Yl,Kl,Zl,tc,rc,nc,sc,oc,ac,cc,uc,dc,Ac,pc,fc],isXML:true,serializer:Ou};const nd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Qo},default:{bodyMapper:us,headersMapper:vo}},queryParameters:[Ra,hc,gc],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,mc],isXML:true,serializer:Ou};const sd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ro},202:{headersMapper:Ro},default:{bodyMapper:us,headersMapper:No}},queryParameters:[Ra,Il,Sl,yc],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,_l,ec,Ec],isXML:true,serializer:Ou};const id={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:xo},default:{bodyMapper:us,headersMapper:Do}},queryParameters:[va,Ra,Ua],urlParameters:[Sa],headerParameters:[Na,xa,Da],isXML:true,serializer:Ou};const od={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:To},default:{bodyMapper:us,headersMapper:ko}},requestBody:bc,queryParameters:[Ra,Il,Cc],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ou};const ad={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:bs,headersMapper:_o},default:{bodyMapper:us,headersMapper:Po}},queryParameters:[Ra,Il,Sl,wc],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,_l,Bc,Ic,Sc,Qc],isXML:true,serializer:Ou};const ld={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Fo},default:{bodyMapper:us,headersMapper:Lo}},requestBody:vc,queryParameters:[Ra,Sl,wc],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa,Xa,_l,Bc,Ic,Sc,Qc,Rc,Nc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Ou};class PageBlobImpl{client;constructor(r){this.client=r}create(r,n,s){return this.client.sendOperationRequest({contentLength:r,blobContentLength:n,options:s},ud)}uploadPages(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},dd)}clearPages(r,n){return this.client.sendOperationRequest({contentLength:r,options:n},Ad)}uploadPagesFromURL(r,n,s,a,l){return this.client.sendOperationRequest({sourceUrl:r,sourceRange:n,contentLength:s,range:a,options:l},fd)}getPageRanges(r){return this.client.sendOperationRequest({options:r},hd)}getPageRangesDiff(r){return this.client.sendOperationRequest({options:r},md)}resize(r,n){return this.client.sendOperationRequest({blobContentLength:r,options:n},gd)}updateSequenceNumber(r,n){return this.client.sendOperationRequest({sequenceNumberAction:r,options:n},yd)}copyIncremental(r,n){return this.client.sendOperationRequest({copySource:r,options:n},Ed)}}const cd=createSerializer(a,true);const ud={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Oo},default:{bodyMapper:us,headersMapper:Mo}},queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl,Wl,Yl,Kl,Zl,ac,cc,xc,Dc,Tc],isXML:true,serializer:cd};const dd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Uo},default:{bodyMapper:us,headersMapper:Ho}},requestBody:_c,queryParameters:[Ra,Fc],urlParameters:[Sa],headerParameters:[Na,xa,za,Xa,Za,el,Ql,Nl,xl,Dl,Tl,kl,_l,Kl,Rc,Nc,kc,Pc,Lc,Oc,Mc,Uc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:cd};const Ad={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Go},default:{bodyMapper:us,headersMapper:zo}},queryParameters:[Ra,Fc],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Xa,Za,el,Ql,Nl,xl,Dl,Tl,kl,_l,Kl,Oc,Mc,Uc,Hc],isXML:true,serializer:cd};const fd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:qo},default:{bodyMapper:us,headersMapper:Vo}},queryParameters:[Ra,Fc],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl,tc,rc,nc,sc,dc,Ac,fc,Lc,Oc,Mc,Uc,Gc,zc,qc,Vc],isXML:true,serializer:cd};const hd={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:jo},default:{bodyMapper:us,headersMapper:Wo}},queryParameters:[Ra,Pa,Fa,Il,jc],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Ql,Tl,kl,_l],isXML:true,serializer:cd};const md={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Ps,headersMapper:Yo},default:{bodyMapper:us,headersMapper:Jo}},queryParameters:[Ra,Pa,Fa,Il,jc,Wc],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Ql,Tl,kl,_l,Yc],isXML:true,serializer:cd};const gd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$o},default:{bodyMapper:us,headersMapper:Ko}},queryParameters:[va,Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl,Dc],isXML:true,serializer:cd};const yd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Xo},default:{bodyMapper:us,headersMapper:Zo}},queryParameters:[va,Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Tl,kl,_l,Tc,Jc],isXML:true,serializer:cd};const Ed={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ea},default:{bodyMapper:us,headersMapper:ta}},queryParameters:[Ra,$c],urlParameters:[Sa],headerParameters:[Na,xa,Da,Za,el,Tl,kl,_l,oc],isXML:true,serializer:cd};class AppendBlobImpl{client;constructor(r){this.client=r}create(r,n){return this.client.sendOperationRequest({contentLength:r,options:n},Cd)}appendBlock(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},wd)}appendBlockFromUrl(r,n,s){return this.client.sendOperationRequest({sourceUrl:r,contentLength:n,options:s},Bd)}seal(r){return this.client.sendOperationRequest({options:r},Id)}}const bd=createSerializer(a,true);const Cd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ra},default:{bodyMapper:us,headersMapper:na}},queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl,Wl,Yl,Kl,ac,cc,Kc],isXML:true,serializer:bd};const wd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sa},default:{bodyMapper:us,headersMapper:ia}},requestBody:_c,queryParameters:[Ra,Xc],urlParameters:[Sa],headerParameters:[Na,xa,za,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl,Rc,Nc,kc,Pc,Zc,eu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:bd};const Bd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:oa},default:{bodyMapper:us,headersMapper:aa}},queryParameters:[Ra,Xc],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Kl,tc,rc,nc,sc,dc,Ac,fc,Rc,Gc,qc,Zc,eu,tu],isXML:true,serializer:bd};const Id={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:la},default:{bodyMapper:us,headersMapper:ca}},queryParameters:[Ra,ru],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,Za,el,Tl,kl,eu],isXML:true,serializer:bd};class BlockBlobImpl{client;constructor(r){this.client=r}upload(r,n,s){return this.client.sendOperationRequest({contentLength:r,body:n,options:s},Qd)}putBlobFromUrl(r,n,s){return this.client.sendOperationRequest({contentLength:r,copySource:n,options:s},vd)}stageBlock(r,n,s,a){return this.client.sendOperationRequest({blockId:r,contentLength:n,body:s,options:a},Rd)}stageBlockFromURL(r,n,s,a){return this.client.sendOperationRequest({blockId:r,contentLength:n,sourceUrl:s,options:a},Nd)}commitBlockList(r,n){return this.client.sendOperationRequest({blocks:r,options:n},xd)}getBlockList(r,n){return this.client.sendOperationRequest({listType:r,options:n},Dd)}}const Sd=createSerializer(a,true);const Qd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ua},default:{bodyMapper:us,headersMapper:da}},requestBody:_c,queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,za,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl,Wl,Yl,Kl,Zl,ac,cc,Rc,Nc,kc,Pc,nu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Sd};const vd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Aa},default:{bodyMapper:us,headersMapper:pa}},queryParameters:[Ra],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl,Kl,Zl,tc,rc,nc,sc,ic,oc,ac,dc,Ac,pc,fc,Rc,nu,su],isXML:true,serializer:Sd};const Rd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:fa},default:{bodyMapper:us,headersMapper:ha}},requestBody:_c,queryParameters:[Ra,iu,ou],urlParameters:[Sa],headerParameters:[Na,xa,za,Xa,Nl,xl,Dl,Kl,Rc,Nc,kc,Pc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:Sd};const Nd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ma},default:{bodyMapper:us,headersMapper:ga}},queryParameters:[Ra,iu,ou],urlParameters:[Sa],headerParameters:[Na,xa,Da,za,Xa,Nl,xl,Dl,Kl,tc,rc,nc,sc,dc,Ac,fc,Gc,qc,tu],isXML:true,serializer:Sd};const xd={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:ya},default:{bodyMapper:us,headersMapper:Ea}},requestBody:au,queryParameters:[Ra,lu],urlParameters:[Sa],headerParameters:[wa,Ia,Na,xa,Ya,Xa,Za,el,Nl,xl,Dl,Tl,kl,_l,Ul,Hl,Gl,zl,ql,Vl,Wl,Yl,Kl,Zl,ac,cc,Rc,Nc],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Sd};const Dd={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:ks,headersMapper:ba},default:{bodyMapper:us,headersMapper:Ca}},queryParameters:[Ra,Il,lu,cu],urlParameters:[Sa],headerParameters:[Na,xa,Da,Xa,_l],isXML:true,serializer:Sd};class StorageClient extends ExtendedServiceClient{url;version;constructor(r,n){if(r===undefined){throw new Error("'url' cannot be null")}if(!n){n={}}const s={requestContentType:"application/json; charset=utf-8"};const a=`azsdk-js-azure-storage-blob/12.30.0`;const l=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${a}`:`${a}`;const u={...s,...n,userAgentOptions:{userAgentPrefix:l},endpoint:n.endpoint??n.baseUri??"{url}"};super(u);this.url=r;this.version=n.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(r,n){const s={...n};if(s.path==="/{containerName}"||s.path==="/{containerName}/{blob}"){s.path=""}return super.sendOperationRequest(r,s)}}function utils_common_escapeURLPath(r){const n=new URL(r);let s=n.pathname;s=s||"/";s=utils_utils_common_escape(s);n.pathname=s;return n.toString()}function utils_common_getProxyUriFromDevConnString(r){let n="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const s=r.split(";");for(const r of s){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){n=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return n}function utils_common_getValueInConnString(r,n){const s=r.split(";");for(const r of s){if(r.trim().startsWith(n)){return r.trim().match(n+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(r){let n="";if(r.startsWith("UseDevelopmentStorage=true")){n=utils_common_getProxyUriFromDevConnString(r);r=jn}let s=utils_common_getValueInConnString(r,"BlobEndpoint");s=s.endsWith("/")?s.slice(0,-1):s;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let a="";let l="";let u=Buffer.from("accountKey","base64");let d="";l=utils_common_getValueInConnString(r,"AccountName");u=Buffer.from(utils_common_getValueInConnString(r,"AccountKey"),"base64");if(!s){a=utils_common_getValueInConnString(r,"DefaultEndpointsProtocol");const n=a.toLowerCase();if(n!=="https"&&n!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=utils_common_getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}s=`${a}://${l}.blob.${d}`}if(!l){throw new Error("Invalid AccountName in the provided Connection String")}else if(u.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:s,accountName:l,accountKey:u,proxyUri:n}}else{let n=utils_common_getValueInConnString(r,"SharedAccessSignature");let a=utils_common_getValueInConnString(r,"AccountName");if(!a){a=utils_common_getAccountNameFromUrl(s)}if(!s){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!n){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(n.startsWith("?")){n=n.substring(1)}return{kind:"SASConnString",url:s,accountName:a,accountSas:n}}}function utils_utils_common_escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(r,n){const s=new URL(r);let a=s.pathname;a=a?a.endsWith("/")?`${a}${n}`:`${a}/${n}`:n;s.pathname=a;return s.toString()}function utils_common_setURLParameter(r,n,s){const a=new URL(r);const l=encodeURIComponent(n);const u=s?encodeURIComponent(s):undefined;const d=a.search===""?"?":a.search;const A=[];for(const r of d.slice(1).split("&")){if(r){const[n]=r.split("=",2);if(n!==l){A.push(r)}}}if(u){A.push(`${l}=${u}`)}a.search=A.length?`?${A.join("&")}`:"";return a.toString()}function utils_common_getURLParameter(r,n){const s=new URL(r);return s.searchParams.get(n)??undefined}function utils_common_setURLHost(r,n){const s=new URL(r);s.hostname=n;return s.toString()}function utils_common_getURLPath(r){try{const n=new URL(r);return n.pathname}catch(r){return undefined}}function utils_common_getURLScheme(r){try{const n=new URL(r);return n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol}catch(r){return undefined}}function utils_common_getURLPathAndQuery(r){const n=new URL(r);const s=n.pathname;if(!s){throw new RangeError("Invalid url without valid path.")}let a=n.search||"";a=a.trim();if(a!==""){a=a.startsWith("?")?a:`?${a}`}return`${s}${a}`}function utils_common_getURLQueries(r){let n=new URL(r).search;if(!n){return{}}n=n.trim();n=n.startsWith("?")?n.substring(1):n;let s=n.split("&");s=s.filter((r=>{const n=r.indexOf("=");const s=r.lastIndexOf("=");return n>0&&n===s&&sl){r=r.slice(0,l)}const u=r+utils_common_padStart(n.toString(),s-r.length,"0");return utils_common_base64encode(u)}async function utils_utils_common_delay(r,n,s){return new Promise(((a,l)=>{let u;const abortHandler=()=>{if(u!==undefined){clearTimeout(u)}l(s)};const resolveHandler=()=>{if(n!==undefined){n.removeEventListener("abort",abortHandler)}a()};u=setTimeout(resolveHandler,r);if(n!==undefined){n.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(r,n,s=" "){if(String.prototype.padStart){return r.padStart(n,s)}s=s||" ";if(r.length>n){return r}else{n=n-r.length;if(n>s.length){s+=s.repeat(n/s.length)}return s.slice(0,n)+r}}function utils_common_sanitizeURL(r){let n=r;if(utils_common_getURLParameter(n,URLConstants.Parameters.SIGNATURE)){n=utils_common_setURLParameter(n,URLConstants.Parameters.SIGNATURE,"*****")}return n}function utils_common_sanitizeHeaders(r){const n=createHttpHeaders();for(const[s,a]of r){if(s.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){n.set(s,"*****")}else if(s.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){n.set(s,utils_common_sanitizeURL(a))}else{n.set(s,a)}}return n}function utils_common_iEqual(r,n){return r.toLocaleLowerCase()===n.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(r){const n=new URL(r);let s;try{if(n.hostname.split(".")[1]==="blob"){s=n.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(n)){s=n.pathname.split("/")[1]}else{s=""}return s}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(r){const n=r.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(n)||Boolean(r.port)&&Kn.includes(r.port)}function toBlobTagsString(r){if(r===undefined){return undefined}const n=[];for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];n.push(`${encodeURIComponent(s)}=${encodeURIComponent(a)}`)}}return n.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const n={blobTagSet:[]};for(const s in r){if(Object.prototype.hasOwnProperty.call(r,s)){const a=r[s];n.blobTagSet.push({key:s,value:a})}}return n}function toTags(r){if(r===undefined){return undefined}const n={};for(const s of r.blobTagSet){n[s.key]=s.value}return n}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const n=[];for(const s in r){const a=s.split("_");const l="or-";if(a[0].startsWith(l)){a[0]=a[0].substring(l.length)}const u={ruleId:a[1],replicationStatus:r[s]};const d=n.findIndex((r=>r.policyId===a[0]));if(d>-1){n[d].rules.push(u)}else{n.push({policyId:a[0],rules:[u]})}}return n}function utils_common_attachCredential(r,n){r.credential=n;return r}function utils_common_httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return{...r,segment:{blobItems:r.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}}}function ConvertInternalResponseOfListBlobHierarchy(r){return{...r,segment:{blobPrefixes:r.segment.blobPrefixes?.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n})),blobItems:r.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}}}function*ExtractPageRangeInfoItems(r){let n=[];let s=[];if(r.pageRange)n=r.pageRange;if(r.clearRange)s=r.clearRange;let a=0;let l=0;while(a0&&s.length>0){r.push(`${n}=${s}`)}}}function generateBlobSASQueryParameters(r,n,s){return generateBlobSASQueryParametersInternal(r,n,s).sasQueryParameters}function generateBlobSASQueryParametersInternal(r,n,s){const a=r.version?r.version:Qn;const l=n instanceof StorageSharedKeyCredential?n:undefined;let u;if(l===undefined&&s!==undefined){u=new UserDelegationKeyCredential(s,n)}if(l===undefined&&u===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(a>="2020-12-06"){if(l!==undefined){return generateBlobSASQueryParameters20201206(r,l)}else{if(a>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(r,u)}else{return generateBlobSASQueryParametersUDK20201206(r,u)}}}if(a>="2018-11-09"){if(l!==undefined){return generateBlobSASQueryParameters20181109(r,l)}else{if(a>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,u)}else{return generateBlobSASQueryParametersUDK20181109(r,u)}}}if(a>="2015-04-05"){if(l!==undefined){return generateBlobSASQueryParameters20150405(r,l)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";if(r.blobName){s="b"}let a;if(r.permissions){if(r.blobName){a=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{a=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[a?a:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const u=n.computeHMACSHA256(l);return{sasQueryParameters:new SASQueryParameters(r.version,u,a,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:l}}function generateBlobSASQueryParameters20181109(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType),stringToSign:u}}function generateBlobSASQueryParameters20201206(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope),stringToSign:u}}function generateBlobSASQueryParametersUDK20181109(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey),stringToSign:u}}function generateBlobSASQueryParametersUDK20200210(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId),stringToSign:u}}function generateBlobSASQueryParametersUDK20201206(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope),stringToSign:u}}function generateBlobSASQueryParametersUDK20250705(r,n){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let s="c";let a=r.snapshotTime;if(r.blobName){s="b";if(r.snapshotTime){s="bs"}else if(r.versionId){s="bv";a=r.versionId}}let l;if(r.permissions){if(r.blobName){l=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{l=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const u=[l?l:"",r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?utils_common_truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(n.accountName,r.containerName,r.blobName),n.userDelegationKey.signedObjectId,n.userDelegationKey.signedTenantId,n.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedStartsOn,false):"",n.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(n.userDelegationKey.signedExpiresOn,false):"",n.userDelegationKey.signedService,n.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,undefined,r.delegatedUserObjectId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,s,a,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=n.computeHMACSHA256(u);return{sasQueryParameters:new SASQueryParameters(r.version,d,l,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,s,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,n.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope,r.delegatedUserObjectId),stringToSign:u}}function getCanonicalName(r,n,s){const a=[`/blob/${r}/${n}`];if(s){a.push(`/${s}`)}return a.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const n=r.version?r.version:Qn;if(r.snapshotTime&&n<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(n<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(n<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(n<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=n;return r}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(r,n){const s=r.storageClientContext;this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=s.container}else{this._isContainer=false;this._containerOrBlobOperation=s.blob}if(!n){n=esm_randomUUID()}this._leaseId=n}async acquireLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==On||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==On||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Td.withSpan("BlobLeaseClient-acquireLease",n,(async s=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:n.abortSignal,duration:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions}))))}async changeLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==On||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==On||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Td.withSpan("BlobLeaseClient-changeLease",n,(async s=>{const a=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,r,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}));this._leaseId=r;return a}))}async releaseLease(r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==On||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==On||r.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Td.withSpan("BlobLeaseClient-releaseLease",r,(async n=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async renewLease(r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==On||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==On||r.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Td.withSpan("BlobLeaseClient-renewLease",r,(async n=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async breakLease(r,n={}){if(this._isContainer&&(n.conditions?.ifMatch&&n.conditions?.ifMatch!==On||n.conditions?.ifNoneMatch&&n.conditions?.ifNoneMatch!==On||n.conditions?.tagConditions)){throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.")}return Td.withSpan("BlobLeaseClient-breakLease",n,(async s=>{const a={abortSignal:n.abortSignal,breakPeriod:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(a))}))}}class RetriableReadableStream extends ge.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(r,n,s,a,l={}){super({highWaterMark:l.highWaterMark});this.getter=n;this.source=r;this.start=s;this.offset=s;this.end=s+a-1;this.maxRetryRequests=l.maxRetryRequests&&l.maxRetryRequests>=0?l.maxRetryRequests:0;this.onProgress=l.onProgress;this.options=l;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};sourceAbortedHandler=()=>{const r=new AbortError_AbortError("The operation was aborted.");this.destroy(r)};sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(r,n){this.removeSourceEventHandlers();this.source.destroy();n(r===null?undefined:r)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return xt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(r,n,s,a,l={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,n,s,a,l)}}const _d=16;const Pd=new Uint8Array([79,98,106,1]);const Fd="avro.codec";const Ld="avro.schema";class AvroParser{static async readFixedBytes(r,n,s={}){const a=await r.read(n,{abortSignal:s.abortSignal});if(a.length!==n){throw new Error("Hit stream end.")}return a}static async readByte(r,n={}){const s=await AvroParser.readFixedBytes(r,1,n);return s[0]}static async readZigZagLong(r,n={}){let s=0;let a=0;let l,u,d;do{l=await AvroParser.readByte(r,n);u=l&128;s|=(l&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return a}return s>>1^-(s&1)}static async readLong(r,n={}){return AvroParser.readZigZagLong(r,n)}static async readInt(r,n={}){return AvroParser.readZigZagLong(r,n)}static async readNull(){return null}static async readBoolean(r,n={}){const s=await AvroParser.readByte(r,n);if(s===1){return true}else if(s===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,n={}){const s=await AvroParser.readFixedBytes(r,4,n);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat32(0,true)}static async readDouble(r,n={}){const s=await AvroParser.readFixedBytes(r,8,n);const a=new DataView(s.buffer,s.byteOffset,s.byteLength);return a.getFloat64(0,true)}static async readBytes(r,n={}){const s=await AvroParser.readLong(r,n);if(s<0){throw new Error("Bytes size was negative.")}return r.read(s,{abortSignal:n.abortSignal})}static async readString(r,n={}){const s=await AvroParser.readBytes(r,n);const a=new TextDecoder;return a.decode(s)}static async readMapPair(r,n,s={}){const a=await AvroParser.readString(r,s);const l=await n(r,s);return{key:a,value:l}}static async readMap(r,n,s={}){const readPairMethod=(r,s={})=>AvroParser.readMapPair(r,n,s);const a=await AvroParser.readArray(r,readPairMethod,s);const l={};for(const r of a){l[r.key]=r.value}return l}static async readArray(r,n,s={}){const a=[];for(let l=await AvroParser.readLong(r,s);l!==0;l=await AvroParser.readLong(r,s)){if(l<0){await AvroParser.readLong(r,s);l=-l}while(l--){const l=await n(r,s);a.push(l)}}return a}}var Od;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Od||(Od={}));var Md;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Md||(Md={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Md.NULL:case Md.BOOLEAN:case Md.INT:case Md.LONG:case Md.FLOAT:case Md.DOUBLE:case Md.BYTES:case Md.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const n=r.type;try{return AvroType.fromStringSchema(n)}catch{}switch(n){case Od.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const s={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const n of r.fields){s[n.name]=AvroType.fromSchema(n.type)}return new AvroRecordType(s,r.name);case Od.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Od.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Od.ARRAY:case Od.FIXED:default:throw new Error(`Unexpected Avro type ${n} in ${r}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(r){super();this._primitive=r}read(r,n={}){switch(this._primitive){case Md.NULL:return AvroParser.readNull();case Md.BOOLEAN:return AvroParser.readBoolean(r,n);case Md.INT:return AvroParser.readInt(r,n);case Md.LONG:return AvroParser.readLong(r,n);case Md.FLOAT:return AvroParser.readFloat(r,n);case Md.DOUBLE:return AvroParser.readDouble(r,n);case Md.BYTES:return AvroParser.readBytes(r,n);case Md.STRING:return AvroParser.readString(r,n);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(r){super();this._symbols=r}async read(r,n={}){const s=await AvroParser.readInt(r,n);return this._symbols[s]}}class AvroUnionType extends AvroType{_types;constructor(r){super();this._types=r}async read(r,n={}){const s=await AvroParser.readInt(r,n);return this._types[s].read(r,n)}}class AvroMapType extends AvroType{_itemType;constructor(r){super();this._itemType=r}read(r,n={}){const readItemMethod=(r,n)=>this._itemType.read(r,n);return AvroParser.readMap(r,readItemMethod,n)}}class AvroRecordType extends AvroType{_name;_fields;constructor(r,n){super();this._fields=r;this._name=n}async read(r,n={}){const s={};s["$schema"]=this._name;for(const a in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,a)){s[a]=await this._fields[a].read(r,n)}}return s}}function arraysEqual(r,n){if(r===n)return true;if(r==null||n==null)return false;if(r.length!==n.length)return false;for(let s=0;s0){for(let n=0;n0}async*parseObjects(r={}){if(!this._initialized){await this.initialize(r)}while(this.hasNext()){const n=await this._itemType.read(this._dataStream,{abortSignal:r.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const n=await AvroParser.readFixedBytes(this._dataStream,_d,{abortSignal:r.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,n)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal})}}yield n}}}class AvroReadable{}var Ud=s(20181);const Hd=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(r){if(typeof r==="string"){return Ud.Buffer.from(r)}return r}constructor(r){super();this._readable=r;this._position=0}get position(){return this._position}async read(r,n={}){if(n.abortSignal?.aborted){throw Hd}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const s=this._readable.read(r);if(s){this._position+=s.length;return this.toUint8Array(s)}else{return new Promise(((s,a)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(n.abortSignal){n.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const n=this._readable.read(r);if(n){this._position+=n.length;cleanUp();s(this.toUint8Array(n))}};const rejectCallback=()=>{cleanUp();a()};const abortHandler=()=>{cleanUp();a(Hd)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(n.abortSignal){n.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends ge.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(r,n={}){super();this.source=r;this.onProgress=n.onProgress;this.onError=n.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:n.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const n=r.value;const s=n.$schema;if(typeof s!=="string"){throw Error("Missing schema in avro record.")}switch(s){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=n.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=n.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=n.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=n.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const s=n.name;if(typeof s!=="string"){throw Error("Invalid name in avro error record.")}const a=n.description;if(typeof a!=="string"){throw Error("Invalid description in avro error record.")}const l=n.position;if(typeof l!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:l,name:s,isFatal:r,description:a})}break;default:throw Error(`Unknown schema ${s} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return xt?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(r,n={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,n)}}var Gd;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(Gd||(Gd={}));var zd;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(zd||(zd={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,n){if(r&&!n){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=Vn}}var qd;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(qd||(qd={}));function getBlobServiceAccountAudience(r){return`https://${r}.blob.core.windows.net/.default`}function rangeResponseFromModel(r){const n=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const s=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return{...r,pageRange:n,clearRange:s,_response:{...r._response,parsedBody:{pageRange:n,clearRange:s}}}}const Vd=esm_createClientLogger("core-lro");const jd=2e3;const Wd=["succeeded","canceled","failed"];function operation_deserializeState(r){try{return JSON.parse(r).state}catch(n){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:n,stateProxy:s,isOperationError:a}=r;return r=>{if(a(r)){s.setError(n,r);s.setFailed(n)}throw r}}function appendReadableErrorMessage(r,n){let s=r;if(s.slice(-1)!=="."){s=s+"."}return s+" "+n}function simplifyError(r){let n=r.message;let s=r.code;let a=r;while(a.innererror){a=a.innererror;s=a.code;n=appendReadableErrorMessage(n,a.message)}return{code:s,message:n}}function processOperationStatus(r){const{state:n,stateProxy:s,status:a,isDone:l,processResult:u,getError:d,response:A,setErrorAsResult:p}=r;switch(a){case"succeeded":{s.setSucceeded(n);break}case"failed":{const r=d===null||d===void 0?void 0:d(A);let a="";if(r){const{code:n,message:s}=simplifyError(r);a=`. ${n}. ${s}`}const l=`The long-running operation has failed${a}`;s.setError(n,new Error(l));s.setFailed(n);Vd.warning(l);break}case"canceled":{s.setCanceled(n);break}}if((l===null||l===void 0?void 0:l(A,n))||l===undefined&&["succeeded","canceled"].concat(p?[]:["failed"]).includes(a)){s.setResult(n,buildResult({response:A,state:n,processResult:u}))}}function buildResult(r){const{processResult:n,response:s,state:a}=r;return n?n(s,a):s}async function operation_initOperation(r){const{init:n,stateProxy:s,processResult:a,getOperationStatus:l,withOperationLocation:u,setErrorAsResult:d}=r;const{operationLocation:A,resourceLocation:p,metadata:f,response:g}=await n();if(A)u===null||u===void 0?void 0:u(A,false);const y={metadata:f,operationLocation:A,resourceLocation:p};Vd.verbose(`LRO: Operation description:`,y);const b=s.initState(y);const C=l({response:g,state:b,operationLocation:A});processOperationStatus({state:b,status:C,stateProxy:s,response:g,setErrorAsResult:d,processResult:a});return b}async function pollOperationHelper(r){const{poll:n,state:s,stateProxy:a,operationLocation:l,getOperationStatus:u,getResourceLocation:d,isOperationError:A,options:p}=r;const f=await n(l,p).catch(setStateError({state:s,stateProxy:a,isOperationError:A}));const g=u(f,s);Vd.verbose(`LRO: Status:\n\tPolling from: ${s.config.operationLocation}\n\tOperation status: ${g}\n\tPolling status: ${Wd.includes(g)?"Stopped":"Running"}`);if(g==="succeeded"){const r=d(f,s);if(r!==undefined){return{response:await n(r).catch(setStateError({state:s,stateProxy:a,isOperationError:A})),status:g}}}return{response:f,status:g}}async function operation_pollOperation(r){const{poll:n,state:s,stateProxy:a,options:l,getOperationStatus:u,getResourceLocation:d,getOperationLocation:A,isOperationError:p,withOperationLocation:f,getPollingInterval:g,processResult:y,getError:b,updateState:C,setDelay:w,isDone:B,setErrorAsResult:I}=r;const{operationLocation:S}=s.config;if(S!==undefined){const{response:r,status:Q}=await pollOperationHelper({poll:n,getOperationStatus:u,state:s,stateProxy:a,operationLocation:S,getResourceLocation:d,isOperationError:p,options:l});processOperationStatus({status:Q,response:r,state:s,stateProxy:a,isDone:B,processResult:y,getError:b,setErrorAsResult:I});if(!Wd.includes(Q)){const n=g===null||g===void 0?void 0:g(r);if(n)w(n);const a=A===null||A===void 0?void 0:A(r,s);if(a!==undefined){const r=S!==a;s.config.operationLocation=a;f===null||f===void 0?void 0:f(a,r)}else f===null||f===void 0?void 0:f(S,false)}C===null||C===void 0?void 0:C(s,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:n,operationLocation:s}=r;return s!==null&&s!==void 0?s:n}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){var n;const{location:s,requestMethod:a,requestPath:l,resourceLocationConfig:u}=r;switch(a){case"PUT":{return l}case"DELETE":{return undefined}case"PATCH":{return(n=getDefault())!==null&&n!==void 0?n:l}default:{return getDefault()}}function getDefault(){switch(u){case"azure-async-operation":{return undefined}case"original-uri":{return l}case"location":default:{return s}}}}function operation_inferLroMode(r){const{rawResponse:n,requestMethod:s,requestPath:a,resourceLocationConfig:l}=r;const u=getOperationLocationHeader(n);const d=getAzureAsyncOperationHeader(n);const A=getOperationLocationPollingUrl({operationLocation:u,azureAsyncOperation:d});const p=getLocationHeader(n);const f=s===null||s===void 0?void 0:s.toLocaleUpperCase();if(A!==undefined){return{mode:"OperationLocation",operationLocation:A,resourceLocation:findResourceLocation({requestMethod:f,location:p,requestPath:a,resourceLocationConfig:l})}}else if(p!==undefined){return{mode:"ResourceLocation",operationLocation:p}}else if(f==="PUT"&&a){return{mode:"Body",operationLocation:a}}else{return undefined}}function transformStatus(r){const{status:n,statusCode:s}=r;if(typeof n!=="string"&&n!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${n}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(n===null||n===void 0?void 0:n.toLocaleLowerCase()){case undefined:return toOperationStatus(s);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{Vd.verbose(`LRO: unrecognized operation status: ${n}`);return n}}}function getStatus(r){var n;const{status:s}=(n=r.body)!==null&&n!==void 0?n:{};return transformStatus({status:s,statusCode:r.statusCode})}function getProvisioningState(r){var n,s;const{properties:a,provisioningState:l}=(n=r.body)!==null&&n!==void 0?n:{};const u=(s=a===null||a===void 0?void 0:a.provisioningState)!==null&&s!==void 0?s:l;return transformStatus({status:u,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function operation_parseRetryAfter({rawResponse:r}){const n=r.headers["retry-after"];if(n!==undefined){const r=parseInt(n);return isNaN(r)?calculatePollingIntervalFromDate(new Date(n)):r*1e3}return undefined}function operation_getErrorFromResponse(r){const n=accessBodyProperty(r,"error");if(!n){Vd.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!n.code||!n.message){Vd.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return n}function calculatePollingIntervalFromDate(r){const n=Math.floor((new Date).getTime());const s=r.getTime();if(n{const r=await l.sendInitialRequest();const n=operation_inferLroMode({rawResponse:r.rawResponse,requestPath:l.requestPath,requestMethod:l.requestMethod,resourceLocationConfig:s});return Object.assign({response:r,operationLocation:n===null||n===void 0?void 0:n.operationLocation,resourceLocation:n===null||n===void 0?void 0:n.resourceLocation},(n===null||n===void 0?void 0:n.mode)?{metadata:{mode:n.mode}}:{})},stateProxy:n,processResult:a?({flatResponse:r},n)=>a(r,n):({flatResponse:r})=>r,getOperationStatus:operation_getStatusFromInitialResponse,setErrorAsResult:u})}function operation_getOperationLocation({rawResponse:r},n){var s;const a=(s=n.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function operation_getOperationStatus({rawResponse:r},n){var s;const a=(s=n.config.metadata)===null||s===void 0?void 0:s["mode"];switch(a){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${a}`)}}function accessBodyProperty({flatResponse:r,rawResponse:n},s){var a,l;return(a=r===null||r===void 0?void 0:r[s])!==null&&a!==void 0?a:(l=n.body)===null||l===void 0?void 0:l[s]}function operation_getResourceLocation(r,n){const s=accessBodyProperty(r,"resourceLocation");if(s&&typeof s==="string"){n.config.resourceLocation=s}return n.config.resourceLocation}function operation_isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:n,stateProxy:s,options:a,processResult:l,updateState:u,setDelay:d,state:A,setErrorAsResult:p}=r;return operation_pollOperation({state:A,stateProxy:s,setDelay:d,processResult:l?({flatResponse:r},n)=>l(r,n):({flatResponse:r})=>r,getError:operation_getErrorFromResponse,updateState:u,getPollingInterval:operation_parseRetryAfter,getOperationLocation:operation_getOperationLocation,getOperationStatus:operation_getOperationStatus,isOperationError:operation_isOperationError,getResourceLocation:operation_getResourceLocation,options:a,poll:async(r,s)=>n.sendPollRequest(r,s),setErrorAsResult:p})}const createStateProxy=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,n)=>r.error=n,setResult:(r,n)=>r.result=n,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function poller_buildCreatePoller(r){const{getOperationLocation:n,getStatusFromInitialResponse:s,getStatusFromPollResponse:a,isOperationError:l,getResourceLocation:u,getPollingInterval:d,getError:A,resolveOnUnsuccessful:p}=r;return async({init:r,poll:f},g)=>{const{processResult:y,updateState:b,withOperationLocation:C,intervalInMs:w=POLL_INTERVAL_IN_MS,restoreFrom:B}=g||{};const I=createStateProxy();const S=C?(()=>{let r=false;return(n,s)=>{if(s)C(n);else if(!r)C(n);r=true}})():undefined;const Q=B?deserializeState(B):await initOperation({init:r,stateProxy:I,processResult:y,getOperationStatus:s,withOperationLocation:S,setErrorAsResult:!p});let v;const R=new AbortController;const N=new Map;const handleProgressEvents=async()=>N.forEach((r=>r(Q)));const x="Operation was canceled";let D=w;const T={getOperationState:()=>Q,getResult:()=>Q.result,isDone:()=>["succeeded","failed","canceled"].includes(Q.status),isStopped:()=>v===undefined,stopPolling:()=>{R.abort()},toString:()=>JSON.stringify({state:Q}),onProgress:r=>{const n=Symbol();N.set(n,r);return()=>N.delete(n)},pollUntilDone:r=>v!==null&&v!==void 0?v:v=(async()=>{const{abortSignal:n}=r||{};function abortListener(){R.abort()}const s=R.signal;if(n===null||n===void 0?void 0:n.aborted){R.abort()}else if(!s.aborted){n===null||n===void 0?void 0:n.addEventListener("abort",abortListener,{once:true})}try{if(!T.isDone()){await T.poll({abortSignal:s});while(!T.isDone()){await delay(D,{abortSignal:s});await T.poll({abortSignal:s})}}}finally{n===null||n===void 0?void 0:n.removeEventListener("abort",abortListener)}if(p){return T.getResult()}else{switch(Q.status){case"succeeded":return T.getResult();case"canceled":throw new Error(x);case"failed":throw Q.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{v=undefined})),async poll(r){if(p){if(T.isDone())return}else{switch(Q.status){case"succeeded":return;case"canceled":throw new Error(x);case"failed":throw Q.error}}await pollOperation({poll:f,state:Q,stateProxy:I,getOperationLocation:n,isOperationError:l,withOperationLocation:S,getPollingInterval:d,getOperationStatus:a,getResourceLocation:u,processResult:y,getError:A,updateState:b,options:r,setDelay:r=>{D=r},setErrorAsResult:!p});await handleProgressEvents();if(!p){switch(Q.status){case"canceled":throw new Error(x);case"failed":throw Q.error}}}};return T}}async function createHttpPoller(r,n){const{resourceLocationConfig:s,intervalInMs:a,processResult:l,restoreFrom:u,updateState:d,withOperationLocation:A,resolveOnUnsuccessful:p=false}=n||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:p})({init:async()=>{const n=await r.sendInitialRequest();const a=inferLroMode({rawResponse:n.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:s});return Object.assign({response:n,operationLocation:a===null||a===void 0?void 0:a.operationLocation,resourceLocation:a===null||a===void 0?void 0:a.resourceLocation},(a===null||a===void 0?void 0:a.mode)?{metadata:{mode:a.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:a,withOperationLocation:A,restoreFrom:u,updateState:d,processResult:l?({flatResponse:r},n)=>l(r,n):({flatResponse:r})=>r})}const operation_createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,n)=>r.error=n,setResult:(r,n)=>r.result=n,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,n,s,a,l,u,d){this.state=r;this.lro=n;this.setErrorAsResult=s;this.lroResourceLocationConfig=a;this.processResult=l;this.updateState=u;this.isDone=d}setPollerConfig(r){this.pollerConfig=r}async update(r){var n;const s=operation_createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:s,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const a=this.updateState;const l=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:s,processResult:this.processResult,updateState:a?(r,{rawResponse:n})=>a(r,n):undefined,isDone:l?({flatResponse:r},n)=>l(r,n):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(n=r===null||r===void 0?void 0:r.fireProgress)===null||n===void 0?void 0:n.call(r,this.state);return this}async cancel(){Vd.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,n)=>{this.resolve=r;this.reject=n}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const n of this.pollProgressCallbacks){n(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((n=>n!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,n){const{intervalInMs:s=jd,resumeFrom:a,resolveOnUnsuccessful:l=false,isDone:u,lroResourceLocationConfig:d,processResult:A,updateState:p}=n||{};const f=a?operation_deserializeState(a):{};const g=new GenericPollOperation(f,r,!l,d,A,p,u);super(g);this.resolveOnUnsuccessful=l;this.config={intervalInMs:s};g.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}class BlobBeginCopyFromUrlPoller extends Poller{intervalInMs;constructor(r){const{blobClient:n,copySource:s,intervalInMs:a=15e3,onProgress:l,resumeFrom:u,startCopyFromURLOptions:d}=r;let A;if(u){A=JSON.parse(u).state}const p=makeBlobBeginCopyFromURLPollOperation({...A,blobClient:n,copySource:s,startCopyFromURLOptions:d});super(p);if(typeof l==="function"){this.onProgress(l)}this.intervalInMs=a}delay(){return delay_delay(this.intervalInMs)}}const Yd=async function cancel(r={}){const n=this.state;const{copyId:s}=n;if(n.isCompleted){return makeBlobBeginCopyFromURLPollOperation(n)}if(!s){n.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(n)}await n.blobClient.abortCopyFromURL(s,{abortSignal:r.abortSignal});n.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(n)};const Jd=async function update(r={}){const n=this.state;const{blobClient:s,copySource:a,startCopyFromURLOptions:l}=n;if(!n.isStarted){n.isStarted=true;const r=await s.startCopyFromURL(a,l);n.copyId=r.copyId;if(r.copyStatus==="success"){n.result=r;n.isCompleted=true}}else if(!n.isCompleted){try{const s=await n.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:a,copyProgress:l}=s;const u=n.copyProgress;if(l){n.copyProgress=l}if(a==="pending"&&l!==u&&typeof r.fireProgress==="function"){r.fireProgress(n)}else if(a==="success"){n.result=s;n.isCompleted=true}else if(a==="failed"){n.error=new Error(`Blob copy failed with reason: "${s.copyStatusDescription||"unknown"}"`);n.isCompleted=true}}catch(r){n.error=r;n.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(n)};const $d=function toString(){return JSON.stringify({state:this.state},((r,n)=>{if(r==="blobClient"){return undefined}return n}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:{...r},cancel:Yd,toString:$d,update:Jd}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var Kd;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(Kd||(Kd={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=Kd.Good;emitter;constructor(r=5){if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new Xr.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,n)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=Kd.Error;n(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives{const p=setTimeout((()=>A(new Error(`The operation cannot be completed in timeout.`))),kn);r.on("readable",(()=>{if(u>=d){clearTimeout(p);a();return}let A=r.read();if(!A){return}if(typeof A==="string"){A=Buffer.from(A,l)}const f=u+A.length>d?d-u:A.length;n.fill(A.slice(0,f),s+u,s+u+f);u+=f}));r.on("end",(()=>{clearTimeout(p);if(u{clearTimeout(p);A(r)}))}))}async function streamToBuffer2(r,n,s){let a=0;const l=n.length;return new Promise(((u,d)=>{r.on("readable",(()=>{let u=r.read();if(!u){return}if(typeof u==="string"){u=Buffer.from(u,s)}if(a+u.length>l){d(new Error(`Stream exceeds buffer size. Buffer size: ${l}`));return}n.fill(u,a,a+u.length);a+=u.length}));r.on("end",(()=>{u(a)}));r.on("error",d)}))}async function streamToBuffer3(r,n){return new Promise(((s,a)=>{const l=[];r.on("data",(r=>{l.push(typeof r==="string"?Buffer.from(r,n):r)}));r.on("end",(()=>{s(Buffer.concat(l))}));r.on("error",a)}))}async function readStreamToLocalFile(r,n){return new Promise(((s,a)=>{const l=Xd.createWriteStream(n);r.on("error",(r=>{a(r)}));l.on("error",(r=>{a(r)}));l.on("close",s);r.pipe(l)}))}const Zd=J.promisify(Xd.stat);const eA=Xd.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(r,n,s,a){a=a||{};let l;let u;if(isPipelineLike(n)){u=r;l=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;if(s&&typeof s!=="string"){a=s}l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Pn.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Pn.Parameters.VERSIONID)}withSnapshot(r){return new BlobClient(utils_common_setURLParameter(this.url,Pn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(utils_common_setURLParameter(this.url,Pn.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,n,s={}){s.conditions=s.conditions||{};s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Td.withSpan("BlobClient-download",s,(async a=>{const l=utils_common_assertResponse(await this.blobContext.download({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onDownloadProgress:xt?undefined:s.onProgress},range:r===0&&!n?undefined:rangeToString({offset:r,count:n}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,objectReplicationDestinationPolicyId:l.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(l.objectReplicationRules)};if(!xt){return u}if(s.maxRetryRequests===undefined||s.maxRetryRequests<0){s.maxRetryRequests=Tn}if(l.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!l.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(u,(async n=>{const a={leaseAccessConditions:s.conditions,modifiedAccessConditions:{ifMatch:s.conditions.ifMatch||l.etag,ifModifiedSince:s.conditions.ifModifiedSince,ifNoneMatch:s.conditions.ifNoneMatch,ifUnmodifiedSince:s.conditions.ifUnmodifiedSince,ifTags:s.conditions?.tagConditions},range:rangeToString({count:r+l.contentLength-n,offset:n}),rangeGetContentMD5:s.rangeGetContentMD5,rangeGetContentCRC64:s.rangeGetContentCrc64,snapshot:s.snapshot,cpkInfo:s.customerProvidedKey};return(await this.blobContext.download({abortSignal:s.abortSignal,...a})).readableStreamBody}),r,l.contentLength,{maxRetryRequests:s.maxRetryRequests,onProgress:s.onProgress})}))}async exists(r={}){return Td.withSpan("BlobClient-exists",r,(async n=>{try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:n.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Jn||r.details.errorCode===$n)){return true}throw r}}))}async getProperties(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Td.withSpan("BlobClient-getProperties",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,tracingOptions:n.tracingOptions}));return{...s,_response:s._response,objectReplicationDestinationPolicyId:s.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(s.objectReplicationRules)}}))}async delete(r={}){r.conditions=r.conditions||{};return Td.withSpan("BlobClient-delete",r,(async n=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async deleteIfExists(r={}){return Td.withSpan("BlobClient-deleteIfExists",r,(async r=>{try{const n=utils_common_assertResponse(await this.delete(r));return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="BlobNotFound"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async undelete(r={}){return Td.withSpan("BlobClient-undelete",r,(async n=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async setHTTPHeaders(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Td.withSpan("BlobClient-setHTTPHeaders",n,(async s=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:n.abortSignal,blobHttpHeaders:r,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}))))}async setMetadata(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Td.withSpan("BlobClient-setMetadata",n,(async s=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:r,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async setTags(r,n={}){return Td.withSpan("BlobClient-setTags",n,(async s=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},blobModifiedAccessConditions:n.conditions,tracingOptions:s.tracingOptions,tags:toBlobTags(r)}))))}async getTags(r={}){return Td.withSpan("BlobClient-getTags",r,(async n=>{const s=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},blobModifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}));const a={...s,_response:s._response,tags:toTags({blobTagSet:s.blobTagSet})||{}};return a}))}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Td.withSpan("BlobClient-createSnapshot",r,(async n=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:n.tracingOptions}))))}async beginCopyFromURL(r,n={}){const s={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const a=new BlobBeginCopyFromUrlPoller({blobClient:s,copySource:r,intervalInMs:n.intervalInMs,onProgress:n.onProgress,resumeFrom:n.resumeFrom,startCopyFromURLOptions:n});await a.poll();return a}async abortCopyFromURL(r,n={}){return Td.withSpan("BlobClient-abortCopyFromURL",n,(async s=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,tracingOptions:s.tracingOptions}))))}async syncCopyFromURL(r,n={}){n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};return Td.withSpan("BlobClient-syncCopyFromURL",n,(async s=>utils_common_assertResponse(await this.blobContext.copyFromURL(r,{abortSignal:n.abortSignal,metadata:n.metadata,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:n.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,encryptionScope:n.encryptionScope,copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}async setAccessTier(r,n={}){return Td.withSpan("BlobClient-setAccessTier",n,(async s=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(r),{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},rehydratePriority:n.rehydratePriority,tracingOptions:s.tracingOptions}))))}async downloadToBuffer(r,n,s,a={}){let l;let u=0;let d=0;let A=a;if(r instanceof Buffer){l=r;u=n||0;d=typeof s==="number"?s:0}else{u=typeof r==="number"?r:0;d=typeof n==="number"?n:0;A=s||{}}let p=A.blockSize??0;if(p<0){throw new RangeError("blockSize option must be >= 0")}if(p===0){p=Dn}if(u<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!A.conditions){A.conditions={}}return Td.withSpan("BlobClient-downloadToBuffer",A,(async r=>{if(!d){const n=await this.getProperties({...A,tracingOptions:r.tracingOptions});d=n.contentLength-u;if(d<0){throw new RangeError(`offset ${u} shouldn't be larger than blob size ${n.contentLength}`)}}if(!l){try{l=Buffer.alloc(d)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(l.length{let s=u+d;if(a+p{const u=await this.download(n,s,{...a,tracingOptions:l.tracingOptions});if(u.readableStreamBody){await readStreamToLocalFile(u.readableStreamBody,r)}u.blobDownloadStream=undefined;return u}))}getBlobAndContainerNamesFromUrl(){let r;let n;try{const s=new URL(this.url);if(s.host.split(".")[1]==="blob"){const a=s.pathname.match("/([^/]*)(/(.*))?");r=a[1];n=a[3]}else if(utils_common_isIpEndpointStyle(s)){const a=s.pathname.match("/([^/]*)/([^/]*)(/(.*))?");r=a[2];n=a[4]}else{const a=s.pathname.match("/([^/]*)(/(.*))?");r=a[1];n=a[3]}r=decodeURIComponent(r);n=decodeURIComponent(n);n=n.replace(/\\/g,"/");if(!r){throw new Error("Provided containerName is invalid.")}return{blobName:n,containerName:r}}catch(r){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(r,n={}){return Td.withSpan("BlobClient-startCopyFromURL",n,(async s=>{n.conditions=n.conditions||{};n.sourceConditions=n.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions.ifMatch,sourceIfModifiedSince:n.sourceConditions.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions.ifUnmodifiedSince,sourceIfTags:n.sourceConditions.tagConditions},immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,rehydratePriority:n.rehydratePriority,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),sealBlob:n.sealBlob,tracingOptions:s.tracingOptions}))}))}generateSasUrl(r){return new Promise((n=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},this.credential).toString();n(utils_common_appendToURLQuery(this.url,s))}))}generateSasStringToSign(r){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},this.credential).stringToSign}generateUserDelegationSasUrl(r,n){return new Promise((s=>{const a=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},n,this.accountName).toString();s(utils_common_appendToURLQuery(this.url,a))}))}generateUserDelegationSasStringToSign(r,n){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...r},n,this.accountName).stringToSign}async deleteImmutabilityPolicy(r={}){return Td.withSpan("BlobClient-deleteImmutabilityPolicy",r,(async r=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:r.tracingOptions}))))}async setImmutabilityPolicy(r,n={}){return Td.withSpan("BlobClient-setImmutabilityPolicy",n,(async n=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,tracingOptions:n.tracingOptions}))))}async setLegalHold(r,n={}){return Td.withSpan("BlobClient-setLegalHold",n,(async n=>utils_common_assertResponse(await this.blobContext.setLegalHold(r,{tracingOptions:n.tracingOptions}))))}async getAccountInfo(r={}){return Td.withSpan("BlobClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(r){return new AppendBlobClient(utils_common_setURLParameter(this.url,Pn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return Td.withSpan("AppendBlobClient-create",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:r.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:r.immutabilityPolicy?.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(r={}){const n={ifNoneMatch:Mn};return Td.withSpan("AppendBlobClient-createIfNotExists",r,(async r=>{try{const s=utils_common_assertResponse(await this.create({...r,conditions:n}));return{succeeded:true,...s,_response:s._response}}catch(r){if(r.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async seal(r={}){r.conditions=r.conditions||{};return Td.withSpan("AppendBlobClient-seal",r,(async n=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async appendBlock(r,n,s={}){s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Td.withSpan("AppendBlobClient-appendBlock",s,(async a=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(n,r,{abortSignal:s.abortSignal,appendPositionAccessConditions:s.conditions,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},transactionalContentMD5:s.transactionalContentMD5,transactionalContentCrc64:s.transactionalContentCrc64,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:a.tracingOptions}))))}async appendBlockFromURL(r,n,s,a={}){a.conditions=a.conditions||{};a.sourceConditions=a.sourceConditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Td.withSpan("AppendBlobClient-appendBlockFromURL",a,(async l=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(r,0,{abortSignal:a.abortSignal,sourceRange:rangeToString({offset:n,count:s}),sourceContentMD5:a.sourceContentMD5,sourceContentCrc64:a.sourceContentCrc64,leaseAccessConditions:a.conditions,appendPositionAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:a.sourceConditions?.ifMatch,sourceIfModifiedSince:a.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:a.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:a.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(a.sourceAuthorization),cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,fileRequestIntent:a.sourceShareTokenIntent,tracingOptions:l.tracingOptions}))))}}class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;if(s&&typeof s!=="string"){a=s}l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(r){return new BlockBlobClient(utils_common_setURLParameter(this.url,Pn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,n={}){ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);if(!xt){throw new Error("This operation currently is only supported in Node.js.")}return Td.withSpan("BlockBlobClient-query",n,(async s=>{const a=utils_common_assertResponse(await this._blobContext.query({abortSignal:n.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(n.inputTextConfiguration),outputSerialization:toQuerySerialization(n.outputTextConfiguration)},leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,tracingOptions:s.tracingOptions}));return new BlobQueryResponse(a,{abortSignal:n.abortSignal,onProgress:n.onProgress,onError:n.onError})}))}async upload(r,n,s={}){s.conditions=s.conditions||{};ensureCpkIfSpecified(s.customerProvidedKey,this.isHttps);return Td.withSpan("BlockBlobClient-upload",s,(async a=>utils_common_assertResponse(await this.blockBlobContext.upload(n,r,{abortSignal:s.abortSignal,blobHttpHeaders:s.blobHTTPHeaders,leaseAccessConditions:s.conditions,metadata:s.metadata,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},requestOptions:{onUploadProgress:s.onProgress},cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,immutabilityPolicyExpiry:s.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:s.immutabilityPolicy?.policyMode,legalHold:s.legalHold,tier:toAccessTier(s.tier),blobTagsString:toBlobTagsString(s.tags),tracingOptions:a.tracingOptions}))))}async syncUploadFromURL(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Td.withSpan("BlockBlobClient-syncUploadFromURL",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,r,{...n,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:n.sourceConditions?.ifMatch,sourceIfModifiedSince:n.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:n.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:n.sourceConditions?.ifUnmodifiedSince,sourceIfTags:n.sourceConditions?.tagConditions},cpkInfo:n.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(n.sourceAuthorization),tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),copySourceTags:n.copySourceTags,fileRequestIntent:n.sourceShareTokenIntent,tracingOptions:s.tracingOptions}))))}async stageBlock(r,n,s,a={}){ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Td.withSpan("BlockBlobClient-stageBlock",a,(async l=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(r,s,n,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions}))))}async stageBlockFromURL(r,n,s=0,a,l={}){ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return Td.withSpan("BlockBlobClient-stageBlockFromURL",l,(async u=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(r,0,n,{abortSignal:l.abortSignal,leaseAccessConditions:l.conditions,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,sourceRange:s===0&&!a?undefined:rangeToString({offset:s,count:a}),cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(l.sourceAuthorization),fileRequestIntent:l.sourceShareTokenIntent,tracingOptions:u.tracingOptions}))))}async commitBlockList(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Td.withSpan("BlockBlobClient-commitBlockList",n,(async s=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:r},{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:s.tracingOptions}))))}async getBlockList(r,n={}){return Td.withSpan("BlockBlobClient-getBlockList",n,(async s=>{const a=utils_common_assertResponse(await this.blockBlobContext.getBlockList(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}));if(!a.committedBlocks){a.committedBlocks=[]}if(!a.uncommittedBlocks){a.uncommittedBlocks=[]}return a}))}async uploadData(r,n={}){return Td.withSpan("BlockBlobClient-uploadData",n,(async n=>{if(xt){let s;if(r instanceof Buffer){s=r}else if(r instanceof ArrayBuffer){s=Buffer.from(r)}else{r=r;s=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.byteLength,n)}else{const s=new Blob([r]);return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.size,n)}}))}async uploadBrowserData(r,n={}){return Td.withSpan("BlockBlobClient-uploadBrowserData",n,(async n=>{const s=new Blob([r]);return this.uploadSeekableInternal(((r,n)=>s.slice(r,r+n)),s.size,n)}))}async uploadSeekableInternal(r,n,s={}){let a=s.blockSize??0;if(a<0||a>Rn){throw new RangeError(`blockSize option must be >= 0 and <= ${Rn}`)}const l=s.maxSingleShotSize??vn;if(l<0||l>vn){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${vn}`)}if(a===0){if(n>Rn*Nn){throw new RangeError(`${n} is too larger to upload to a block blob.`)}if(n>l){a=Math.ceil(n/Nn);if(a{if(n<=l){return utils_common_assertResponse(await this.upload(r(0,n),n,u))}const d=Math.floor((n-1)/a)+1;if(d>Nn){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${Nn}`)}const A=[];const p=esm_randomUUID();let f=0;const g=new Batch(s.concurrency);for(let l=0;l{const g=utils_common_generateBlockID(p,l);const y=a*l;const b=l===d-1?n:y+a;const C=b-y;A.push(g);await this.stageBlock(g,r(y,C),C,{abortSignal:s.abortSignal,conditions:s.conditions,encryptionScope:s.encryptionScope,tracingOptions:u.tracingOptions});f+=C;if(s.onProgress){s.onProgress({loadedBytes:f})}}))}await g.do();return this.commitBlockList(A,u)}))}async uploadFile(r,n={}){return Td.withSpan("BlockBlobClient-uploadFile",n,(async s=>{const a=(await Zd(r)).size;return this.uploadSeekableInternal(((n,s)=>()=>eA(r,{autoClose:true,end:s?n+s-1:Infinity,start:n})),a,{...n,tracingOptions:s.tracingOptions})}))}async uploadStream(r,n=xn,s=5,a={}){if(!a.blobHTTPHeaders){a.blobHTTPHeaders={}}if(!a.conditions){a.conditions={}}return Td.withSpan("BlockBlobClient-uploadStream",a,(async l=>{let u=0;const d=esm_randomUUID();let A=0;const p=[];const f=new BufferScheduler(r,n,s,(async(r,n)=>{const s=utils_common_generateBlockID(d,u);p.push(s);u++;await this.stageBlock(s,r,n,{customerProvidedKey:a.customerProvidedKey,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions});A+=n;if(a.onProgress){a.onProgress({loadedBytes:A})}}),Math.ceil(s/4*3));await f.do();return utils_common_assertResponse(await this.commitBlockList(p,{...a,tracingOptions:l.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(r,n,s,a){let l;let u;a=a||{};if(isPipelineLike(n)){u=r;l=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){u=r;a=s;l=newPipeline(n,a)}else if(!n&&typeof n!=="string"){u=r;l=newPipeline(new AnonymousCredential,a)}else if(n&&typeof n==="string"&&s&&typeof s==="string"){const d=n;const A=s;const p=utils_common_extractConnectionStringParts(r);if(p.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(p.accountName,p.accountKey);u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A));if(!a.proxyOptions){a.proxyOptions=proxyPolicy_getDefaultProxySettings(p.proxyUri)}l=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(p.kind==="SASConnString"){u=utils_common_appendToURLPath(utils_common_appendToURLPath(p.url,encodeURIComponent(d)),encodeURIComponent(A))+"?"+p.accountSas;l=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(u,l);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(r){return new PageBlobClient(utils_common_setURLParameter(this.url,Pn.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return Td.withSpan("PageBlobClient-create",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.create(0,r,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,blobSequenceNumber:n.blobSequenceNumber,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:s.tracingOptions}))))}async createIfNotExists(r,n={}){return Td.withSpan("PageBlobClient-createIfNotExists",n,(async s=>{try{const a={ifNoneMatch:Mn};const l=utils_common_assertResponse(await this.create(r,{...n,conditions:a,tracingOptions:s.tracingOptions}));return{succeeded:true,...l,_response:l._response}}catch(r){if(r.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async uploadPages(r,n,s,a={}){a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return Td.withSpan("PageBlobClient-uploadPages",a,(async l=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(s,r,{abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},requestOptions:{onUploadProgress:a.onProgress},range:rangeToString({offset:n,count:s}),sequenceNumberAccessConditions:a.conditions,transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,tracingOptions:l.tracingOptions}))))}async uploadPagesFromURL(r,n,s,a,l={}){l.conditions=l.conditions||{};l.sourceConditions=l.sourceConditions||{};ensureCpkIfSpecified(l.customerProvidedKey,this.isHttps);return Td.withSpan("PageBlobClient-uploadPagesFromURL",l,(async u=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:n,count:a}),0,rangeToString({offset:s,count:a}),{abortSignal:l.abortSignal,sourceContentMD5:l.sourceContentMD5,sourceContentCrc64:l.sourceContentCrc64,leaseAccessConditions:l.conditions,sequenceNumberAccessConditions:l.conditions,modifiedAccessConditions:{...l.conditions,ifTags:l.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:l.sourceConditions?.ifMatch,sourceIfModifiedSince:l.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:l.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:l.sourceConditions?.ifUnmodifiedSince},cpkInfo:l.customerProvidedKey,encryptionScope:l.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(l.sourceAuthorization),fileRequestIntent:l.sourceShareTokenIntent,tracingOptions:u.tracingOptions}))))}async clearPages(r=0,n,s={}){s.conditions=s.conditions||{};return Td.withSpan("PageBlobClient-clearPages",s,(async a=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),sequenceNumberAccessConditions:s.conditions,cpkInfo:s.customerProvidedKey,encryptionScope:s.encryptionScope,tracingOptions:a.tracingOptions}))))}async getPageRanges(r=0,n,s={}){s.conditions=s.conditions||{};return Td.withSpan("PageBlobClient-getPageRanges",s,(async a=>{const l=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:s.abortSignal,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),tracingOptions:a.tracingOptions}));return rangeResponseFromModel(l)}))}async listPageRangesSegment(r=0,n,s,a={}){return Td.withSpan("PageBlobClient-getPageRangesSegment",a,(async l=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},range:rangeToString({offset:r,count:n}),marker:s,maxPageSize:a.maxPageSize,tracingOptions:l.tracingOptions}))))}async*listPageRangeItemSegments(r=0,n,s,a={}){let l;if(!!s||s===undefined){do{l=await this.listPageRangesSegment(r,n,s,a);s=l.continuationToken;yield await l}while(s)}}async*listPageRangeItems(r=0,n,s={}){let a;for await(const l of this.listPageRangeItemSegments(r,n,a,s)){yield*ExtractPageRangeInfoItems(l)}}listPageRanges(r=0,n,s={}){s.conditions=s.conditions||{};const a=this.listPageRangeItems(r,n,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(a={})=>this.listPageRangeItemSegments(r,n,a.continuationToken,{maxPageSize:a.maxPageSize,...s})}}async getPageRangesDiff(r,n,s,a={}){a.conditions=a.conditions||{};return Td.withSpan("PageBlobClient-getPageRangesDiff",a,(async l=>{const u=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevsnapshot:s,range:rangeToString({offset:r,count:n}),tracingOptions:l.tracingOptions}));return rangeResponseFromModel(u)}))}async listPageRangesDiffSegment(r,n,s,a,l={}){return Td.withSpan("PageBlobClient-getPageRangesDiffSegment",l,(async u=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:l?.abortSignal,leaseAccessConditions:l?.conditions,modifiedAccessConditions:{...l?.conditions,ifTags:l?.conditions?.tagConditions},prevsnapshot:s,range:rangeToString({offset:r,count:n}),marker:a,maxPageSize:l?.maxPageSize,tracingOptions:u.tracingOptions}))))}async*listPageRangeDiffItemSegments(r,n,s,a,l){let u;if(!!a||a===undefined){do{u=await this.listPageRangesDiffSegment(r,n,s,a,l);a=u.continuationToken;yield await u}while(a)}}async*listPageRangeDiffItems(r,n,s,a){let l;for await(const u of this.listPageRangeDiffItemSegments(r,n,s,l,a)){yield*ExtractPageRangeInfoItems(u)}}listPageRangesDiff(r,n,s,a={}){a.conditions=a.conditions||{};const l=this.listPageRangeDiffItems(r,n,s,{...a});return{next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(l={})=>this.listPageRangeDiffItemSegments(r,n,s,l.continuationToken,{maxPageSize:l.maxPageSize,...a})}}async getPageRangesDiffForManagedDisks(r,n,s,a={}){a.conditions=a.conditions||{};return Td.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",a,(async l=>{const u=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:{...a.conditions,ifTags:a.conditions?.tagConditions},prevSnapshotUrl:s,range:rangeToString({offset:r,count:n}),tracingOptions:l.tracingOptions}));return rangeResponseFromModel(u)}))}async resize(r,n={}){n.conditions=n.conditions||{};return Td.withSpan("PageBlobClient-resize",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.resize(r,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},encryptionScope:n.encryptionScope,tracingOptions:s.tracingOptions}))))}async updateSequenceNumber(r,n,s={}){s.conditions=s.conditions||{};return Td.withSpan("PageBlobClient-updateSequenceNumber",s,(async a=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(r,{abortSignal:s.abortSignal,blobSequenceNumber:n,leaseAccessConditions:s.conditions,modifiedAccessConditions:{...s.conditions,ifTags:s.conditions?.tagConditions},tracingOptions:a.tracingOptions}))))}async startCopyIncremental(r,n={}){return Td.withSpan("PageBlobClient-startCopyIncremental",n,(async s=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(r,{abortSignal:n.abortSignal,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:s.tracingOptions}))))}}async function getBodyAsText(r){let n=Buffer.alloc(Gn);const s=await streamToBuffer2(r.readableStreamBody,n);n=n.slice(0,s);return n.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const tA=": ";const rA=" ";const nA=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(r,n){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!n||n.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=n;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${zn}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Fn.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const n=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const s=n.length;if(s!==this.subRequests.size&&s!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const a=new Array(s);let l=0;let u=0;for(let r=0;r=0&&y{if(this.keys[r]===undefined||this.keys[r]===sA.UNLOCKED){this.keys[r]=sA.LOCKED;n()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=sA.LOCKED;n()}))}}))}static async unlock(r){return new Promise((n=>{if(this.keys[r]===sA.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];n()}))}static keys={};static listeners={};static onUnlockEvent(r,n){if(this.listeners[r]===undefined){this.listeners[r]=[n]}else{this.listeners[r].push(n)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const n=this.listeners[r].shift();setImmediate((()=>{n.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,n){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await n();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,n,s){let a;let l;if(typeof r==="string"&&(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))){a=r;l=n}else if(r instanceof BlobClient){a=r.url;l=r.credential;s=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!s){s={}}return Td.withSpan("BatchDeleteRequest-addSubRequest",s,(async r=>{this.setBatchType("delete");await this.addSubRequestInternal({url:a,credential:l},(async()=>{await new BlobClient(a,this.batchRequest.createPipeline(l)).delete(r)}))}))}async setBlobAccessTier(r,n,s,a){let l;let u;let d;if(typeof r==="string"&&(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n))){l=r;u=n;d=s}else if(r instanceof BlobClient){l=r.url;u=r.credential;d=n;a=s}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}return Td.withSpan("BatchSetTierRequest-addSubRequest",a,(async r=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:l,credential:u},(async()=>{await new BlobClient(l,this.batchRequest.createPipeline(u)).setAccessTier(d,r)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const r=esm_randomUUID();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${zn}${Ln.CONTENT_TYPE}: application/http${zn}${Ln.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const n=esm_pipeline_createEmptyPipeline();n.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});n.addPolicy(batchHeaderFilterPolicy());n.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(r)){n.addPolicy(bearerTokenAuthenticationPolicy({credential:r,scopes:_n,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(r instanceof StorageSharedKeyCredential){n.addPolicy(storageSharedKeyCredentialPolicy({accountName:r.accountName,accountKey:r.accountKey}),{phase:"Sign"})}const s=new Pipeline([]);s._credential=r;s._corePipeline=n;return s}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${Ln.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${utils_common_getURLPathAndQuery(r.url)} ${qn}${zn}`].join(zn);for(const[n,s]of r.headers){this.body+=`${n}: ${s}${zn}`}this.body+=zn}preAddSubRequest(r){if(this.operationCount>=Hn){throw new RangeError(`Cannot exceed ${Hn} sub requests in a single batch`)}const n=utils_common_getURLPath(r.url);if(!n||n===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${zn}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(r){return{name:"batchRequestAssemblePolicy",async sendRequest(n){r.appendSubRequestToBody(n);return{request:n,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(r,n){let s="";for(const[n]of r.headers){if(utils_common_iEqual(n,Ln.X_MS_VERSION)){s=n}}if(s!==""){r.headers.delete(s)}return n(r)}}}class BlobBatchClient{serviceOrContainerContext;constructor(r,n,s){let a;if(isPipelineLike(n)){a=n}else if(!n){a=newPipeline(new AnonymousCredential,s)}else{a=newPipeline(n,s)}const l=new StorageContextClient(r,getCoreClientOptions(a));const u=utils_common_getURLPath(r);if(u&&u!=="/"){this.serviceOrContainerContext=l.container}else{this.serviceOrContainerContext=l.service}}createBatch(){return new BlobBatch}async deleteBlobs(r,n,s){const a=new BlobBatch;for(const l of r){if(typeof l==="string"){await a.deleteBlob(l,n,s)}else{await a.deleteBlob(l,n)}}return this.submitBatch(a)}async setBlobsAccessTier(r,n,s,a){const l=new BlobBatch;for(const u of r){if(typeof u==="string"){await l.setBlobAccessTier(u,n,s,a)}else{await l.setBlobAccessTier(u,n,s)}}return this.submitBatch(l)}async submitBatch(r,n={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return Td.withSpan("BlobBatchClient-submitBatch",n,(async n=>{const s=r.getHttpRequestBody();const a=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(s),r.getMultiPartContentType(),s,{...n}));const l=new BatchResponseParser(a,r.getSubRequests());const u=await l.parseBatchResponse();const d={_response:a._response,contentType:a.contentType,errorCode:a.errorCode,requestId:a.requestId,clientRequestId:a.clientRequestId,version:a.version,subResponses:u.subResponses,subResponsesSucceededCount:u.subResponsesSucceededCount,subResponsesFailedCount:u.subResponsesFailedCount};return d}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(r,n,s){let a;let l;s=s||{};if(isPipelineLike(n)){l=r;a=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){l=r;a=newPipeline(n,s)}else if(!n&&typeof n!=="string"){l=r;a=newPipeline(new AnonymousCredential,s)}else if(n&&typeof n==="string"){const u=n;const d=utils_common_extractConnectionStringParts(r);if(d.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(d.accountName,d.accountKey);l=utils_common_appendToURLPath(d.url,encodeURIComponent(u));if(!s.proxyOptions){s.proxyOptions=proxyPolicy_getDefaultProxySettings(d.proxyUri)}a=newPipeline(r,s)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){l=utils_common_appendToURLPath(d.url,encodeURIComponent(u))+"?"+d.accountSas;a=newPipeline(new AnonymousCredential,s)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(l,a);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(r={}){return Td.withSpan("ContainerClient-create",r,(async r=>utils_common_assertResponse(await this.containerContext.create(r))))}async createIfNotExists(r={}){return Td.withSpan("ContainerClient-createIfNotExists",r,(async r=>{try{const n=await this.create(r);return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}else{throw r}}}))}async exists(r={}){return Td.withSpan("ContainerClient-exists",r,(async n=>{try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}throw r}}))}getBlobClient(r){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}return Td.withSpan("ContainerClient-getProperties",r,(async n=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:r.abortSignal,...r.conditions,tracingOptions:n.tracingOptions}))))}async delete(r={}){if(!r.conditions){r.conditions={}}return Td.withSpan("ContainerClient-delete",r,(async n=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions,tracingOptions:n.tracingOptions}))))}async deleteIfExists(r={}){return Td.withSpan("ContainerClient-deleteIfExists",r,(async r=>{try{const n=await this.delete(r);return{succeeded:true,...n,_response:n._response}}catch(r){if(r.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...r.response?.parsedHeaders,_response:r.response}}throw r}}))}async setMetadata(r,n={}){if(!n.conditions){n.conditions={}}if(n.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return Td.withSpan("ContainerClient-setMetadata",n,(async s=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,metadata:r,modifiedAccessConditions:n.conditions,tracingOptions:s.tracingOptions}))))}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}return Td.withSpan("ContainerClient-getAccessPolicy",r,(async n=>{const s=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,tracingOptions:n.tracingOptions}));const a={_response:s._response,blobPublicAccess:s.blobPublicAccess,date:s.date,etag:s.etag,errorCode:s.errorCode,lastModified:s.lastModified,requestId:s.requestId,clientRequestId:s.clientRequestId,signedIdentifiers:[],version:s.version};for(const r of s){let n=undefined;if(r.accessPolicy){n={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){n.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){n.startsOn=new Date(r.accessPolicy.startsOn)}}a.signedIdentifiers.push({accessPolicy:n,id:r.id})}return a}))}async setAccessPolicy(r,n,s={}){s.conditions=s.conditions||{};return Td.withSpan("ContainerClient-setAccessPolicy",s,(async a=>{const l=[];for(const r of n||[]){l.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?utils_common_truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:s.abortSignal,access:r,containerAcl:l,leaseAccessConditions:s.conditions,modifiedAccessConditions:s.conditions,tracingOptions:a.tracingOptions}))}))}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,n,s,a={}){return Td.withSpan("ContainerClient-uploadBlockBlob",a,(async a=>{const l=this.getBlockBlobClient(r);const u=await l.upload(n,s,a);return{blockBlobClient:l,response:u}}))}async deleteBlob(r,n={}){return Td.withSpan("ContainerClient-deleteBlob",n,(async s=>{let a=this.getBlobClient(r);if(n.versionId){a=a.withVersion(n.versionId)}return a.delete(s)}))}async listBlobFlatSegment(r,n={}){return Td.withSpan("ContainerClient-listBlobFlatSegment",n,(async s=>{const a=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:r,...n,tracingOptions:s.tracingOptions}));const l={...a,_response:{...a._response,parsedBody:ConvertInternalResponseOfListBlobFlat(a._response.parsedBody)},segment:{...a.segment,blobItems:a.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)};return n}))}};return l}))}async listBlobHierarchySegment(r,n,s={}){return Td.withSpan("ContainerClient-listBlobHierarchySegment",s,(async a=>{const l=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(r,{marker:n,...s,tracingOptions:a.tracingOptions}));const u={...l,_response:{...l._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(l._response.parsedBody)},segment:{...l.segment,blobItems:l.segment.blobItems.map((r=>{const n={...r,name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)};return n})),blobPrefixes:l.segment.blobPrefixes?.map((r=>{const n={...r,name:BlobNameToString(r.name)};return n}))}};return u}))}async*listSegments(r,n={}){let s;if(!!r||r===undefined){do{s=await this.listBlobFlatSegment(r,n);r=s.continuationToken;yield await s}while(r)}}async*listItems(r={}){let n;for await(const s of this.listSegments(n,r)){yield*s.segment.blobItems}}listBlobsFlat(r={}){const n=[];if(r.includeCopy){n.push("copy")}if(r.includeDeleted){n.push("deleted")}if(r.includeMetadata){n.push("metadata")}if(r.includeSnapshots){n.push("snapshots")}if(r.includeVersions){n.push("versions")}if(r.includeUncommitedBlobs){n.push("uncommittedblobs")}if(r.includeTags){n.push("tags")}if(r.includeDeletedWithVersions){n.push("deletedwithversions")}if(r.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(r.includeLegalHold){n.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const s={...r,...n.length>0?{include:n}:{}};const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,{maxPageSize:r.maxPageSize,...s})}}async*listHierarchySegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.listBlobHierarchySegment(r,n,s);n=a.continuationToken;yield await a}while(n)}}async*listItemsByHierarchy(r,n={}){let s;for await(const a of this.listHierarchySegments(r,s,n)){const r=a.segment;if(r.blobPrefixes){for(const n of r.blobPrefixes){yield{kind:"prefix",...n}}}for(const n of r.blobItems){yield{kind:"blob",...n}}}}listBlobsByHierarchy(r,n={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const s=[];if(n.includeCopy){s.push("copy")}if(n.includeDeleted){s.push("deleted")}if(n.includeMetadata){s.push("metadata")}if(n.includeSnapshots){s.push("snapshots")}if(n.includeVersions){s.push("versions")}if(n.includeUncommitedBlobs){s.push("uncommittedblobs")}if(n.includeTags){s.push("tags")}if(n.includeDeletedWithVersions){s.push("deletedwithversions")}if(n.includeImmutabilityPolicy){s.push("immutabilitypolicy")}if(n.includeLegalHold){s.push("legalhold")}if(n.prefix===""){n.prefix=undefined}const a={...n,...s.length>0?{include:s}:{}};const l=this.listItemsByHierarchy(r,a);return{async next(){return l.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.listHierarchySegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...a})}}async findBlobsByTagsSegment(r,n,s={}){return Td.withSpan("ContainerClient-findBlobsByTagsSegment",s,(async a=>{const l=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:s.abortSignal,where:r,marker:n,maxPageSize:s.maxPageSize,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,blobs:l.blobs.map((r=>{let n="";if(r.tags?.blobTagSet.length===1){n=r.tags.blobTagSet[0].value}return{...r,tags:toTags(r.tags),tagValue:n}}))};return u}))}async*findBlobsByTagsSegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.findBlobsByTagsSegment(r,n,s);a.blobs=a.blobs||[];n=a.continuationToken;yield a}while(n)}}async*findBlobsByTagsItems(r,n={}){let s;for await(const a of this.findBlobsByTagsSegments(r,s,n)){yield*a.blobs}}findBlobsByTags(r,n={}){const s={...n};const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...s})}}async getAccountInfo(r={}){return Td.withSpan("ContainerClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}getContainerNameFromUrl(){let r;try{const n=new URL(this.url);if(n.hostname.split(".")[1]==="blob"){r=n.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(n)){r=n.pathname.split("/")[2]}else{r=n.pathname.split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((n=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const s=generateBlobSASQueryParameters({containerName:this._containerName,...r},this.credential).toString();n(utils_common_appendToURLQuery(this.url,s))}))}generateSasStringToSign(r){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...r},this.credential).stringToSign}generateUserDelegationSasUrl(r,n){return new Promise((s=>{const a=generateBlobSASQueryParameters({containerName:this._containerName,...r},n,this.accountName).toString();s(utils_common_appendToURLQuery(this.url,a))}))}generateUserDelegationSasStringToSign(r,n){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...r},n,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(r){const n=new AccountSASPermissions;for(const s of r){switch(s){case"r":n.read=true;break;case"w":n.write=true;break;case"d":n.delete=true;break;case"x":n.deleteVersion=true;break;case"l":n.list=true;break;case"a":n.add=true;break;case"c":n.create=true;break;case"u":n.update=true;break;case"p":n.process=true;break;case"t":n.tag=true;break;case"f":n.filter=true;break;case"i":n.setImmutabilityPolicy=true;break;case"y":n.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${s}`)}}return n}static from(r){const n=new AccountSASPermissions;if(r.read){n.read=true}if(r.write){n.write=true}if(r.delete){n.delete=true}if(r.deleteVersion){n.deleteVersion=true}if(r.filter){n.filter=true}if(r.tag){n.tag=true}if(r.list){n.list=true}if(r.add){n.add=true}if(r.create){n.create=true}if(r.update){n.update=true}if(r.process){n.process=true}if(r.setImmutabilityPolicy){n.setImmutabilityPolicy=true}if(r.permanentDelete){n.permanentDelete=true}return n}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{static parse(r){const n=new AccountSASResourceTypes;for(const s of r){switch(s){case"s":n.service=true;break;case"c":n.container=true;break;case"o":n.object=true;break;default:throw new RangeError(`Invalid resource type: ${s}`)}}return n}service=false;container=false;object=false;toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{static parse(r){const n=new AccountSASServices;for(const s of r){switch(s){case"b":n.blob=true;break;case"f":n.file=true;break;case"q":n.queue=true;break;case"t":n.table=true;break;default:throw new RangeError(`Invalid service character: ${s}`)}}return n}blob=false;file=false;queue=false;table=false;toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,n){return generateAccountSASQueryParametersInternal(r,n).sasQueryParameters}function generateAccountSASQueryParametersInternal(r,n){const s=r.version?r.version:Qn;if(r.permissions&&r.permissions.setImmutabilityPolicy&&s<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&s<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&s<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&s<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const a=AccountSASPermissions.parse(r.permissions.toString());const l=AccountSASServices.parse(r.services).toString();const u=AccountSASResourceTypes.parse(r.resourceTypes).toString();let d;if(s>="2020-12-06"){d=[n.accountName,a,l,u,r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",utils_common_truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{d=[n.accountName,a,l,u,r.startsOn?utils_common_truncatedISO8061Date(r.startsOn,false):"",utils_common_truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",s,""].join("\n")}const A=n.computeHMACSHA256(d);return{sasQueryParameters:new SASQueryParameters(s,A,a.toString(),l,u,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope),stringToSign:d}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(r,n){n=n||{};const s=utils_common_extractConnectionStringParts(r);if(s.kind==="AccountConnString"){if(xt){const r=new StorageSharedKeyCredential(s.accountName,s.accountKey);if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(s.proxyUri)}const a=newPipeline(r,n);return new BlobServiceClient(s.url,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(s.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,n);return new BlobServiceClient(s.url+"?"+s.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(r,n,s){let a;if(isPipelineLike(n)){a=n}else if(xt&&n instanceof StorageSharedKeyCredential||n instanceof AnonymousCredential||isTokenCredential(n)){a=newPipeline(n,s)}else{a=newPipeline(new AnonymousCredential,s)}super(r,a);this.serviceContext=this.storageClientContext.service}getContainerClient(r){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,n={}){return Td.withSpan("BlobServiceClient-createContainer",n,(async n=>{const s=this.getContainerClient(r);const a=await s.create(n);return{containerClient:s,containerCreateResponse:a}}))}async deleteContainer(r,n={}){return Td.withSpan("BlobServiceClient-deleteContainer",n,(async n=>{const s=this.getContainerClient(r);return s.delete(n)}))}async undeleteContainer(r,n,s={}){return Td.withSpan("BlobServiceClient-undeleteContainer",s,(async a=>{const l=this.getContainerClient(s.destinationContainerName||r);const u=l["storageClientContext"].container;const d=utils_common_assertResponse(await u.restore({deletedContainerName:r,deletedContainerVersion:n,tracingOptions:a.tracingOptions}));return{containerClient:l,containerUndeleteResponse:d}}))}async getProperties(r={}){return Td.withSpan("BlobServiceClient-getProperties",r,(async n=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async setProperties(r,n={}){return Td.withSpan("BlobServiceClient-setProperties",n,(async s=>utils_common_assertResponse(await this.serviceContext.setProperties(r,{abortSignal:n.abortSignal,tracingOptions:s.tracingOptions}))))}async getStatistics(r={}){return Td.withSpan("BlobServiceClient-getStatistics",r,(async n=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async getAccountInfo(r={}){return Td.withSpan("BlobServiceClient-getAccountInfo",r,(async n=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:r.abortSignal,tracingOptions:n.tracingOptions}))))}async listContainersSegment(r,n={}){return Td.withSpan("BlobServiceClient-listContainersSegment",n,(async s=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:n.abortSignal,marker:r,...n,include:typeof n.include==="string"?[n.include]:n.include,tracingOptions:s.tracingOptions}))))}async findBlobsByTagsSegment(r,n,s={}){return Td.withSpan("BlobServiceClient-findBlobsByTagsSegment",s,(async a=>{const l=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:s.abortSignal,where:r,marker:n,maxPageSize:s.maxPageSize,tracingOptions:a.tracingOptions}));const u={...l,_response:l._response,blobs:l.blobs.map((r=>{let n="";if(r.tags?.blobTagSet.length===1){n=r.tags.blobTagSet[0].value}return{...r,tags:toTags(r.tags),tagValue:n}}))};return u}))}async*findBlobsByTagsSegments(r,n,s={}){let a;if(!!n||n===undefined){do{a=await this.findBlobsByTagsSegment(r,n,s);a.blobs=a.blobs||[];n=a.continuationToken;yield a}while(n)}}async*findBlobsByTagsItems(r,n={}){let s;for await(const a of this.findBlobsByTagsSegments(r,s,n)){yield*a.blobs}}findBlobsByTags(r,n={}){const s={...n};const a=this.findBlobsByTagsItems(r,s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(n={})=>this.findBlobsByTagsSegments(r,n.continuationToken,{maxPageSize:n.maxPageSize,...s})}}async*listSegments(r,n={}){let s;if(!!r||r===undefined){do{s=await this.listContainersSegment(r,n);s.containerItems=s.containerItems||[];r=s.continuationToken;yield await s}while(r)}}async*listItems(r={}){let n;for await(const s of this.listSegments(n,r)){yield*s.containerItems}}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const n=[];if(r.includeDeleted){n.push("deleted")}if(r.includeMetadata){n.push("metadata")}if(r.includeSystem){n.push("system")}const s={...r,...n.length>0?{include:n}:{}};const a=this.listItems(s);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,{maxPageSize:r.maxPageSize,...s})}}async getUserDelegationKey(r,n,s={}){return Td.withSpan("BlobServiceClient-getUserDelegationKey",s,(async a=>{const l=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(r,false),expiresOn:utils_common_truncatedISO8061Date(n,false)},{abortSignal:s.abortSignal,tracingOptions:a.tracingOptions}));const u={signedObjectId:l.signedObjectId,signedTenantId:l.signedTenantId,signedStartsOn:new Date(l.signedStartsOn),signedExpiresOn:new Date(l.signedExpiresOn),signedService:l.signedService,signedVersion:l.signedVersion,value:l.value};const d={_response:l._response,requestId:l.requestId,clientRequestId:l.clientRequestId,version:l.version,date:l.date,errorCode:l.errorCode,...u};return d}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,n=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const n=new Date;r=new Date(n.getTime()+3600*1e3)}const l=generateAccountSASQueryParameters({permissions:n,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString(),...a},this.credential).toString();return utils_common_appendToURLQuery(this.url,l)}generateSasStringToSign(r,n=AccountSASPermissions.parse("r"),s="sco",a={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const n=new Date;r=new Date(n.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:n,expiresOn:r,resourceTypes:s,services:AccountSASServices.parse("b").toString(),...a},this.credential).stringToSign}}var iA;(function(r){r["AES256"]="AES256"})(iA||(iA={}));var oA=s(76982);var aA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function uploadToBlobStorage(r,n,s){return aA(this,void 0,void 0,(function*(){let a=0;let l=Date.now();const d=new AbortController;const chunkTimer=r=>aA(this,void 0,void 0,(function*(){return new Promise(((n,s)=>{const a=setInterval((()=>{if(Date.now()-l>r){s(new Error("Upload progress stalled."))}}),r);d.signal.addEventListener("abort",(()=>{clearInterval(a);n()}))}))}));const A=getConcurrency();const p=getUploadChunkSize();const f=new BlobClient(r);const g=f.getBlockBlobClient();u.Yz(`Uploading artifact to blob storage with maxConcurrency: ${A}, bufferSize: ${p}, contentType: ${s}`);const uploadCallback=r=>{u.pq(`Uploaded bytes ${r.loadedBytes}`);a=r.loadedBytes;l=Date.now()};const y={blobHTTPHeaders:{blobContentType:s},onProgress:uploadCallback,abortSignal:d.signal};let b=undefined;const C=new Ze.PassThrough;const w=oA.createHash("sha256");n.pipe(C);n.pipe(w).setEncoding("hex");u.pq("Beginning upload of artifact content to blob storage");try{yield Promise.race([g.uploadStream(C,p,A,y),chunkTimer(getUploadChunkTimeout())])}catch(r){if(NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{d.abort()}u.pq("Finished uploading artifact content to blob storage!");w.end();b=w.read();u.pq(`SHA256 digest of uploaded artifact is ${b}`);if(a===0){u.$e(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:a,sha256Hash:b}}))}const lA=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs/promises");var cA=s(99392);var uA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class WaterMarkedUploadStream extends Ze.Transform{constructor(r){super({highWaterMark:r})}_transform(r,n,s){s(null,r)}}function createRawFileUploadStream(r){return uA(this,void 0,void 0,(function*(){u.Yz(`Creating raw file upload stream for: ${r}`);const n=getUploadChunkSize();const s=new WaterMarkedUploadStream(n);let a=r;const l=yield A.promises.lstat(r);if(l.isSymbolicLink()){a=yield(0,lA.realpath)(r)}const d=A.createReadStream(a,{highWaterMark:n});d.on("error",(r=>{u.z3("An error has occurred while reading the file for upload");u.z3(String(r));s.destroy(new Error("An error has occurred during file read for the artifact"))}));d.pipe(s);return s}))}var dA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const AA=6;function createZipUploadStream(r){return dA(this,arguments,void 0,(function*(r,n=AA){u.Yz(`Creating Artifact archive with compressionLevel: ${n}`);const s=cA.create("zip",{highWaterMark:getUploadChunkSize(),zlib:{level:n}});s.on("error",zipErrorCallback);s.on("warning",zipWarningCallback);s.on("finish",zipFinishCallback);s.on("end",zipEndCallback);for(const n of r){if(n.sourcePath!==null){let r=n.sourcePath;if(n.stats.isSymbolicLink()){r=yield(0,lA.realpath)(n.sourcePath)}s.file(r,{name:n.destinationPath})}else{s.append("",{name:n.destinationPath})}}const a=getUploadChunkSize();const l=new WaterMarkedUploadStream(a);u.Yz(`Zip write high watermark value ${l.writableHighWaterMark}`);u.Yz(`Zip read high watermark value ${l.readableHighWaterMark}`);s.pipe(l);s.finalize();return l}))}const zipErrorCallback=r=>{u.z3("An error has occurred while creating the zip file for upload");u.pq(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){u.$e("ENOENT warning during artifact zip creation. No such file or directory");u.pq(r)}else{u.$e(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);u.pq(r)}};const zipFinishCallback=()=>{u.Yz("Zip stream for upload has finished.")};const zipEndCallback=()=>{u.Yz("Zip stream for upload has ended.")};const pA={".txt":"text/plain",".html":"text/html",".htm":"text/html",".css":"text/css",".csv":"text/csv",".xml":"text/xml",".md":"text/markdown",".js":"application/javascript",".mjs":"application/javascript",".json":"application/json",".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".gif":"image/gif",".svg":"image/svg+xml",".webp":"image/webp",".ico":"image/x-icon",".bmp":"image/bmp",".tiff":"image/tiff",".tif":"image/tiff",".mp3":"audio/mpeg",".wav":"audio/wav",".ogg":"audio/ogg",".flac":"audio/flac",".mp4":"video/mp4",".webm":"video/webm",".avi":"video/x-msvideo",".mov":"video/quicktime",".pdf":"application/pdf",".doc":"application/msword",".docx":"application/vnd.openxmlformats-officedocument.wordprocessingml.document",".xls":"application/vnd.ms-excel",".xlsx":"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",".ppt":"application/vnd.ms-powerpoint",".pptx":"application/vnd.openxmlformats-officedocument.presentationml.presentation",".zip":"application/zip",".tar":"application/x-tar",".gz":"application/gzip",".rar":"application/vnd.rar",".7z":"application/x-7z-compressed",".wasm":"application/wasm",".yaml":"application/x-yaml",".yml":"application/x-yaml",".woff":"font/woff",".woff2":"font/woff2",".ttf":"font/ttf",".otf":"font/otf",".eot":"application/vnd.ms-fontobject"};function getMimeType(r){const n=p.extname(r).toLowerCase();return pA[n]||"application/octet-stream"}var fA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function uploadArtifact(r,n,s,a){return fA(this,void 0,void 0,(function*(){let l=`${r}.zip`;if(a===null||a===void 0?void 0:a.skipArchive){if(n.length===0){throw new FilesNotFoundError([])}if(n.length>1){throw new Error("skipArchive option is only supported when uploading a single file")}if(!A.existsSync(n[0])){throw new FilesNotFoundError(n)}l=p.basename(n[0]);r=l}validateArtifactName(r);validateRootDirectory(s);let d=[];if(!(a===null||a===void 0?void 0:a.skipArchive)){d=getUploadZipSpecification(n,s);if(d.length===0){throw new FilesNotFoundError(d.flatMap((r=>r.sourcePath?[r.sourcePath]:[])))}}const f=getMimeType(l);const g=getBackendIdsFromToken();const y=internalArtifactTwirpClient();const b={workflowRunBackendId:g.workflowRunBackendId,workflowJobRunBackendId:g.workflowJobRunBackendId,name:r,mimeType:Q.create({value:f}),version:7};const C=getExpiration(a===null||a===void 0?void 0:a.retentionDays);if(C){b.expiresAt=C}const w=yield y.CreateArtifact(b);if(!w.ok){throw new InvalidResponseError("CreateArtifact: response from backend was not ok")}let B;if(a===null||a===void 0?void 0:a.skipArchive){B=yield createRawFileUploadStream(n[0])}else{B=yield createZipUploadStream(d,a===null||a===void 0?void 0:a.compressionLevel)}u.pq(`Uploading artifact: ${l}`);const I=yield uploadToBlobStorage(w.signedUploadUrl,B,f);const S={workflowRunBackendId:g.workflowRunBackendId,workflowJobRunBackendId:g.workflowJobRunBackendId,name:r,size:I.uploadSize?I.uploadSize.toString():"0"};if(I.sha256Hash){S.hash=Q.create({value:`sha256:${I.sha256Hash}`})}u.pq(`Finalizing artifact upload`);const v=yield y.FinalizeArtifact(S);if(!v.ok){throw new InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const R=BigInt(v.artifactId);u.pq(`Artifact ${r} successfully finalized. Artifact ID ${R}`);return{size:I.uploadSize,digest:I.sha256Hash,id:Number(R)}}))}var hA=s(61351);var mA=s(33991);var gA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const scrubQueryParameters=r=>{const n=new URL(r);n.search="";return n.toString()};function exists(r){return gA(this,void 0,void 0,(function*(){try{yield lA.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,n,s){return gA(this,void 0,void 0,(function*(){let a=0;while(a<5){try{return yield streamExtractExternal(r,n,{skipDecompress:s})}catch(r){a++;u.Yz(`Failed to download artifact after ${a} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${a} retries.`)}))}function streamExtractExternal(r,n){return gA(this,arguments,void 0,(function*(r,n,s={}){const{timeout:a=30*1e3,skipDecompress:l=false}=s;const d=new z.Qq(getUserAgentString());const f=yield d.get(r);if(f.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${f.message.statusCode} ${f.message.statusMessage}`)}const g=f.message.headers["content-type"]||"";const y=g.split(";",1)[0].trim().toLowerCase();const b=new URL(r).pathname.toLowerCase();const C=b.endsWith(".zip");const w=y==="application/zip"||y==="application/x-zip-compressed"||y==="application/zip-compressed"||C;const B=f.message.headers["content-disposition"]||"";let I="artifact";const S=B.match(/filename\*?=['"]?(?:UTF-\d['"]*)?([^;\r\n"']*)['"]?/i);if(S&&S[1]){I=p.basename(decodeURIComponent(S[1].trim()))}u.Yz(`Content-Type: ${g}, mimeType: ${y}, urlEndsWithZip: ${C}, isZip: ${w}, skipDecompress: ${l}`);u.Yz(`Content-Disposition: ${B}, fileName: ${I}`);let Q=undefined;return new Promise(((r,s)=>{const timerFn=()=>{const r=new Error(`Blob storage chunk did not respond in ${a}ms`);f.message.destroy(r);s(r)};const d=setTimeout(timerFn,a);const onError=r=>{u.Yz(`response.message: Artifact download failed: ${r.message}`);clearTimeout(d);s(r)};const g=oA.createHash("sha256").setEncoding("hex");const y=(new Ze.PassThrough).on("data",(()=>{d.refresh()})).on("error",onError);f.message.pipe(y);y.pipe(g);const onClose=()=>{clearTimeout(d);if(g){g.end();Q=g.read();u.pq(`SHA256 digest of downloaded artifact is ${Q}`)}r({sha256Digest:`sha256:${Q}`})};if(w&&!l){y.pipe(mA.Extract({path:n})).on("close",onClose).on("error",onError)}else{const r=p.join(n,I);const s=A.createWriteStream(r);u.pq(`Downloading raw file (non-zip) to: ${r}`);y.pipe(s).on("close",onClose).on("error",onError)}}))}))}function downloadArtifactPublic(r,n,s,a,l){return gA(this,void 0,void 0,(function*(){const d=yield resolveOrCreateDirectory(l===null||l===void 0?void 0:l.path);const A=hA.Q(a);let p=false;u.pq(`Downloading artifact '${r}' from '${n}/${s}'`);const{headers:f,status:g}=yield A.rest.actions.downloadArtifact({owner:n,repo:s,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(g!==302){throw new Error(`Unable to download artifact. Unexpected status: ${g}`)}const{location:y}=f;if(!y){throw new Error(`Unable to redirect to artifact download url`)}u.pq(`Redirecting to blob download url: ${scrubQueryParameters(y)}`);try{u.pq(`Starting download of artifact to: ${d}`);const r=yield streamExtract(y,d,l===null||l===void 0?void 0:l.skipDecompress);u.pq(`Artifact download completed successfully.`);if(l===null||l===void 0?void 0:l.expectedHash){if((l===null||l===void 0?void 0:l.expectedHash)!==r.sha256Digest){p=true;u.Yz(`Computed digest: ${r.sha256Digest}`);u.Yz(`Expected digest: ${l.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:d,digestMismatch:p}}))}function downloadArtifactInternal(r,n){return gA(this,void 0,void 0,(function*(){const s=yield resolveOrCreateDirectory(n===null||n===void 0?void 0:n.path);const a=internalArtifactTwirpClient();let l=false;const{workflowRunBackendId:d,workflowJobRunBackendId:A}=getBackendIdsFromToken();const p={workflowRunBackendId:d,workflowJobRunBackendId:A,idFilter:C.create({value:r.toString()})};const{artifacts:f}=yield a.ListArtifacts(p);if(f.length===0){throw new ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(f.length>1){u.$e("Multiple artifacts found, defaulting to first.")}const g={workflowRunBackendId:f[0].workflowRunBackendId,workflowJobRunBackendId:f[0].workflowJobRunBackendId,name:f[0].name};const{signedUrl:y}=yield a.GetSignedArtifactURL(g);u.pq(`Redirecting to blob download url: ${scrubQueryParameters(y)}`);try{u.pq(`Starting download of artifact to: ${s}`);const r=yield streamExtract(y,s,n===null||n===void 0?void 0:n.skipDecompress);u.pq(`Artifact download completed successfully.`);if(n===null||n===void 0?void 0:n.expectedHash){if((n===null||n===void 0?void 0:n.expectedHash)!==r.sha256Digest){l=true;u.Yz(`Computed digest: ${r.sha256Digest}`);u.Yz(`Expected digest: ${n.expectedHash}`)}}}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:s,digestMismatch:l}}))}function resolveOrCreateDirectory(){return gA(this,arguments,void 0,(function*(r=getGitHubWorkspaceDir()){if(!(yield exists(r))){u.Yz(`Artifact destination folder does not exist, creating: ${r}`);yield lA.mkdir(r,{recursive:true})}else{u.Yz(`Artifact destination folder already exists: ${r}`)}return r}))}const yA=5;const EA=[400,401,403,404,422];function getRetryOptions(r,n=yA,s=EA){var a;if(n<=0){return[{enabled:false},r.request]}const l={enabled:true};if(s.length>0){l.doNotRetry=s}const d=Object.assign(Object.assign({},r.request),{retries:n});u.Yz(`GitHub client configured with: (retries: ${d.retries}, retry-exempt-status-code: ${(a=l.doNotRetry)!==null&&a!==void 0?a:"octokit default: [400, 401, 403, 404, 422]"})`);return[l,d]}var bA=s(79083);const CA="6.0.0";function requestLog(r){r.hook.wrap("request",((n,s)=>{r.log.debug("request",s);const a=Date.now();const l=r.request.endpoint.parse(s);const u=l.url.replace(s.baseUrl,"");return n(s).then((n=>{const s=n.headers["x-github-request-id"];r.log.info(`${l.method} ${u} - ${n.status} with id ${s} in ${Date.now()-a}ms`);return n})).catch((n=>{const s=n.response?.headers["x-github-request-id"]||"UNKNOWN";r.log.error(`${l.method} ${u} - ${n.status} with id ${s} in ${Date.now()-a}ms`);throw n}))}))}requestLog.VERSION=CA;var wA=s(63251);var BA=s(31015);var IA="0.0.0-development";function isRequestError(r){return r.request!==void 0}async function errorRequest(r,n,s,a){if(!isRequestError(s)||!s?.request.request){throw s}if(s.status>=400&&!r.doNotRetry.includes(s.status)){const l=a.request.retries!=null?a.request.retries:r.retries;const u=Math.pow((a.request.retryCount||0)+1,2);throw n.retry.retryRequest(s,l,u)}throw s}async function wrapRequest(r,n,s,a){const l=new wA;l.on("failed",(function(n,s){const l=~~n.request.request?.retries;const u=~~n.request.request?.retryAfter;a.request.retryCount=s.retryCount+1;if(l>s.retryCount){return u*r.retryAfterBaseValue}}));return l.schedule(requestWithGraphqlErrorHandling.bind(null,r,n,s),a)}async function requestWithGraphqlErrorHandling(r,n,s,a){const l=await s(a);if(l.data&&l.data.errors&&l.data.errors.length>0&&/Something went wrong while executing your query/.test(l.data.errors[0].message)){const s=new BA.G(l.data.errors[0].message,500,{request:a,response:l});return errorRequest(r,n,s,a)}return l}function retry(r,n){const s=Object.assign({enabled:true,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},n.retry);const a={retry:{retryRequest:(r,n,s)=>{r.request.request=Object.assign({},r.request.request,{retries:n,retryAfter:s});return r}}};if(s.enabled){r.hook.error("request",errorRequest.bind(null,s,a));r.hook.wrap("request",wrapRequest.bind(null,s,a))}return a}retry.VERSION=IA;var SA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function getArtifactPublic(r,n,s,a,l){return SA(this,void 0,void 0,(function*(){var d;const[A,p]=getRetryOptions(bA.NT);const f={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:A,request:p};const g=(0,hA.Q)(l,f,retry,requestLog);const y=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:s,repo:a,run_id:n,name:r});if(y.status!==200){throw new InvalidResponseError(`Invalid response from GitHub API: ${y.status} (${(d=y===null||y===void 0?void 0:y.headers)===null||d===void 0?void 0:d["x-github-request-id"]})`)}if(y.data.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let b=y.data.artifacts[0];if(y.data.artifacts.length>1){b=y.data.artifacts.sort(((r,n)=>n.id-r.id))[0];u.Yz(`More than one artifact found for a single name, returning newest (id: ${b.id})`)}return{artifact:{name:b.name,id:b.id,size:b.size_in_bytes,createdAt:b.created_at?new Date(b.created_at):undefined,digest:b.digest}}}))}function getArtifactInternal(r){return SA(this,void 0,void 0,(function*(){var n;const s=internalArtifactTwirpClient();const{workflowRunBackendId:a,workflowJobRunBackendId:l}=getBackendIdsFromToken();const d={workflowRunBackendId:a,workflowJobRunBackendId:l,nameFilter:Q.create({value:r})};const A=yield s.ListArtifacts(d);if(A.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let p=A.artifacts[0];if(A.artifacts.length>1){p=A.artifacts.sort(((r,n)=>Number(n.databaseId)-Number(r.databaseId)))[0];u.Yz(`More than one artifact found for a single name, returning newest (id: ${p.databaseId})`)}return{artifact:{name:p.name,id:Number(p.databaseId),size:Number(p.size),createdAt:p.createdAt?g.toDate(p.createdAt):undefined,digest:(n=p.digest)===null||n===void 0?void 0:n.value}}}))}var QA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function deleteArtifactPublic(r,n,s,a,l){return QA(this,void 0,void 0,(function*(){var u;const[d,A]=getRetryOptions(bA.NT);const p={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:d,request:A};const f=(0,hA.Q)(l,p,retry,requestLog);const g=yield getArtifactPublic(r,n,s,a,l);const y=yield f.rest.actions.deleteArtifact({owner:s,repo:a,artifact_id:g.artifact.id});if(y.status!==204){throw new InvalidResponseError(`Invalid response from GitHub API: ${y.status} (${(u=y===null||y===void 0?void 0:y.headers)===null||u===void 0?void 0:u["x-github-request-id"]})`)}return{id:g.artifact.id}}))}function deleteArtifactInternal(r){return QA(this,void 0,void 0,(function*(){const n=internalArtifactTwirpClient();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=getBackendIdsFromToken();const l={workflowRunBackendId:s,workflowJobRunBackendId:a,nameFilter:Q.create({value:r})};const d=yield n.ListArtifacts(l);if(d.artifacts.length===0){throw new ArtifactNotFoundError(`Artifact not found for name: ${r}`)}let A=d.artifacts[0];if(d.artifacts.length>1){A=d.artifacts.sort(((r,n)=>Number(n.databaseId)-Number(r.databaseId)))[0];(0,u.Yz)(`More than one artifact found for a single name, returning newest (id: ${A.databaseId})`)}const p={workflowRunBackendId:A.workflowRunBackendId,workflowJobRunBackendId:A.workflowJobRunBackendId,name:A.name};const f=yield n.DeleteArtifact(p);(0,u.pq)(`Artifact '${r}' (ID: ${f.artifactId}) deleted`);return{id:Number(f.artifactId)}}))}var vA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const RA=getMaxArtifactListCount();const NA=100;const xA=Math.ceil(RA/NA);function listArtifactsPublic(r,n,s,a){return vA(this,arguments,void 0,(function*(r,n,s,a,l=false){(0,u.pq)(`Fetching artifact list for workflow run ${r} in repository ${n}/${s}`);let d=[];const[A,p]=getRetryOptions(bA.NT);const f={log:undefined,userAgent:getUserAgentString(),previews:undefined,retry:A,request:p};const g=(0,hA.Q)(a,f,retry,requestLog);let y=1;const{data:b}=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:s,run_id:r,per_page:NA,page:y});let C=Math.ceil(b.total_count/NA);const w=b.total_count;if(w>RA){(0,u.$e)(`Workflow run ${r} has ${w} artifacts, exceeding the limit of ${RA}. Results will be incomplete as only the first ${RA} artifacts will be returned`);C=xA}for(const r of b.artifacts){d.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined,digest:r.digest})}y++;for(y;y<=C;y++){(0,u.Yz)(`Fetching page ${y} of artifact list`);const{data:a}=yield g.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:n,repo:s,run_id:r,per_page:NA,page:y});for(const r of a.artifacts){d.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined,digest:r.digest})}}if(l){d=filterLatest(d)}(0,u.pq)(`Found ${d.length} artifact(s)`);return{artifacts:d}}))}function listArtifactsInternal(){return vA(this,arguments,void 0,(function*(r=false){const n=internalArtifactTwirpClient();const{workflowRunBackendId:s,workflowJobRunBackendId:a}=getBackendIdsFromToken();const l={workflowRunBackendId:s,workflowJobRunBackendId:a};const d=yield n.ListArtifacts(l);let A=d.artifacts.map((r=>{var n;return{name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?g.toDate(r.createdAt):undefined,digest:(n=r.digest)===null||n===void 0?void 0:n.value}}));if(r){A=filterLatest(A)}(0,u.pq)(`Found ${A.length} artifact(s)`);return{artifacts:A}}))}function filterLatest(r){r.sort(((r,n)=>n.id-r.id));const n=[];const s=new Set;for(const a of r){if(!s.has(a.name)){n.push(a);s.add(a.name)}}return n}var DA=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var TA=undefined&&undefined.__rest||function(r,n){var s={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)&&n.indexOf(a)<0)s[a]=r[a];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l_A.uploadArtifact(r,s,(0,l.dirname)(n.path),{compressionLevel:n.ext===".app"?6:0})),FA.z);console.log("Workflow artifacts uploads DONE!")}}}},37156:(r,n,s)=>{s.d(n,{Dg:()=>createArtifact,Rx:()=>deleteGiteaReleaseAsset,NK:()=>execCommand,wm:()=>getAssetName,Vp:()=>getInfo,d:()=>getTargetDir,sg:()=>getTargetInfo,Lw:()=>getWorkspaceDir,br:()=>ghAssetName,ws:()=>hasDependency,dk:()=>hasTauriScript,L5:()=>retry,Ui:()=>usesBun,_$:()=>usesNpm,me:()=>usesPnpm,z8:()=>usesYarn});var a=s(73024);var l=s(76760);var u=s.n(l);function isPlainObject(r){if(typeof r!=="object"||r===null){return false}const n=Object.getPrototypeOf(r);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)}var d=s(73136);const safeNormalizeFileUrl=(r,n)=>{const s=normalizeFileUrl(normalizeDenoExecPath(r));if(typeof s!=="string"){throw new TypeError(`${n} must be a string or a file URL: ${s}.`)}return s};const normalizeDenoExecPath=r=>isDenoExecPath(r)?r.toString():r;const isDenoExecPath=r=>typeof r!=="string"&&r&&Object.getPrototypeOf(r)===String.prototype;const normalizeFileUrl=r=>r instanceof URL?(0,d.fileURLToPath)(r):r;const normalizeParameters=(r,n=[],s={})=>{const a=safeNormalizeFileUrl(r,"First argument");const[l,u]=isPlainObject(n)?[[],n]:[n,s];if(!Array.isArray(l)){throw new TypeError(`Second argument must be either an array of arguments or an options object: ${l}`)}if(l.some((r=>typeof r==="object"&&r!==null))){throw new TypeError(`Second argument must be an array of strings: ${l}`)}const d=l.map(String);const A=d.find((r=>r.includes("\0")));if(A!==undefined){throw new TypeError(`Arguments cannot contain null bytes ("\\0"): ${A}`)}if(!isPlainObject(u)){throw new TypeError(`Last argument must be an options object: ${u}`)}return[a,d,u]};var A=s(31421);var p=s(46193);const{toString:f}=Object.prototype;const isArrayBuffer=r=>f.call(r)==="[object ArrayBuffer]";const isUint8Array=r=>f.call(r)==="[object Uint8Array]";const bufferToUint8Array=r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength);const g=new TextEncoder;const stringToUint8Array=r=>g.encode(r);const y=new TextDecoder;const uint8ArrayToString=r=>y.decode(r);const joinToString=(r,n)=>{const s=uint8ArraysToStrings(r,n);return s.join("")};const uint8ArraysToStrings=(r,n)=>{if(n==="utf8"&&r.every((r=>typeof r==="string"))){return r}const s=new p.StringDecoder(n);const a=r.map((r=>typeof r==="string"?stringToUint8Array(r):r)).map((r=>s.write(r)));const l=s.end();return l===""?a:[...a,l]};const joinToUint8Array=r=>{if(r.length===1&&isUint8Array(r[0])){return r[0]}return concatUint8Arrays(stringsToUint8Arrays(r))};const stringsToUint8Arrays=r=>r.map((r=>typeof r==="string"?stringToUint8Array(r):r));const concatUint8Arrays=r=>{const n=new Uint8Array(getJoinLength(r));let s=0;for(const a of r){n.set(a,s);s+=a.length}return n};const getJoinLength=r=>{let n=0;for(const s of r){n+=s.length}return n};const isTemplateString=r=>Array.isArray(r)&&Array.isArray(r.raw);const parseTemplates=(r,n)=>{let s=[];for(const[a,l]of r.entries()){s=parseTemplate({templates:r,expressions:n,tokens:s,index:a,template:l})}if(s.length===0){throw new TypeError("Template script must not be empty")}const[a,...l]=s;return[a,l,{}]};const parseTemplate=({templates:r,expressions:n,tokens:s,index:a,template:l})=>{if(l===undefined){throw new TypeError(`Invalid backslash sequence: ${r.raw[a]}`)}const{nextTokens:u,leadingWhitespaces:d,trailingWhitespaces:A}=splitByWhitespaces(l,r.raw[a]);const p=concatTokens(s,u,d);if(a===n.length){return p}const f=n[a];const g=Array.isArray(f)?f.map((r=>parseExpression(r))):[parseExpression(f)];return concatTokens(p,g,A)};const splitByWhitespaces=(r,n)=>{if(n.length===0){return{nextTokens:[],leadingWhitespaces:false,trailingWhitespaces:false}}const s=[];let a=0;const l=b.has(n[0]);for(let l=0,u=0;ls||r.length===0||n.length===0?[...r,...n]:[...r.slice(0,-1),`${r.at(-1)}${n[0]}`,...n.slice(1)];const parseExpression=r=>{const n=typeof r;if(n==="string"){return r}if(n==="number"){return String(r)}if(isPlainObject(r)&&("stdout"in r||"isMaxBuffer"in r)){return getSubprocessResult(r)}if(r instanceof A.ChildProcess||Object.prototype.toString.call(r)==="[object Promise]"){throw new TypeError("Unexpected subprocess in template expression. Please use ${await subprocess} instead of ${subprocess}.")}throw new TypeError(`Unexpected "${n}" in template expression`)};const getSubprocessResult=({stdout:r})=>{if(typeof r==="string"){return r}if(isUint8Array(r)){return uint8ArrayToString(r)}if(r===undefined){throw new TypeError('Missing result.stdout in template expression. This is probably due to the previous subprocess\' "stdout" option.')}throw new TypeError(`Unexpected "${typeof r}" stdout in template expression`)};var w=s(57975);var B=s(1708);const isStandardStream=r=>I.includes(r);const I=[B.stdin,B.stdout,B.stderr];const S=["stdin","stdout","stderr"];const getStreamName=r=>S[r]??`stdio[${r}]`;const normalizeFdSpecificOptions=r=>{const n={...r};for(const s of N){n[s]=normalizeFdSpecificOption(r,s)}return n};const normalizeFdSpecificOption=(r,n)=>{const s=Array.from({length:getStdioLength(r)+1});const a=normalizeFdSpecificValue(r[n],s,n);return addDefaultValue(a,n)};const getStdioLength=({stdio:r})=>Array.isArray(r)?Math.max(r.length,S.length):S.length;const normalizeFdSpecificValue=(r,n,s)=>isPlainObject(r)?normalizeOptionObject(r,n,s):n.fill(r);const normalizeOptionObject=(r,n,s)=>{for(const a of Object.keys(r).sort(compareFdName)){for(const l of parseFdName(a,s,n)){n[l]=r[a]}}return n};const compareFdName=(r,n)=>getFdNameOrder(r){if(r==="stdout"||r==="stderr"){return 0}return r==="all"?2:1};const parseFdName=(r,n,s)=>{if(r==="ipc"){return[s.length-1]}const a=parseFd(r);if(a===undefined||a===0){throw new TypeError(`"${n}.${r}" is invalid.\nIt must be "${n}.stdout", "${n}.stderr", "${n}.all", "${n}.ipc", or "${n}.fd3", "${n}.fd4" (and so on).`)}if(a>=s.length){throw new TypeError(`"${n}.${r}" is invalid: that file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}return a==="all"?[1,2]:[a]};const parseFd=r=>{if(r==="all"){return r}if(S.includes(r)){return S.indexOf(r)}const n=Q.exec(r);if(n!==null){return Number(n[1])}};const Q=/^fd(\d+)$/;const addDefaultValue=(r,n)=>r.map((r=>r===undefined?R[n]:r));const v=(0,w.debuglog)("execa").enabled?"full":"none";const R={lines:false,buffer:true,maxBuffer:1e3*1e3*100,verbose:v,stripFinalNewline:true};const N=["lines","buffer","maxBuffer","verbose","stripFinalNewline"];const getFdSpecificValue=(r,n)=>n==="ipc"?r.at(-1):r[n];const isVerbose=({verbose:r},n)=>getFdVerbose(r,n)!=="none";const isFullVerbose=({verbose:r},n)=>!["none","short"].includes(getFdVerbose(r,n));const getVerboseFunction=({verbose:r},n)=>{const s=getFdVerbose(r,n);return isVerboseFunction(s)?s:undefined};const getFdVerbose=(r,n)=>n===undefined?getFdGenericVerbose(r):getFdSpecificValue(r,n);const getFdGenericVerbose=r=>r.find((r=>isVerboseFunction(r)))??x.findLast((n=>r.includes(n)));const isVerboseFunction=r=>typeof r==="function";const x=["none","short","full"];const joinCommand=(r,n)=>{const s=[r,...n];const a=s.join(" ");const l=s.map((r=>quoteString(escapeControlCharacters(r)))).join(" ");return{command:a,escapedCommand:l}};const escapeLines=r=>(0,w.stripVTControlCharacters)(r).split("\n").map((r=>escapeControlCharacters(r))).join("\n");const escapeControlCharacters=r=>r.replaceAll(D,(r=>escapeControlCharacter(r)));const escapeControlCharacter=r=>{const n=T[r];if(n!==undefined){return n}const s=r.codePointAt(0);const a=s.toString(16);return s<=k?`\\u${a.padStart(4,"0")}`:`\\U${a}`};const getSpecialCharRegExp=()=>{try{return new RegExp("\\p{Separator}|\\p{Other}","gu")}catch{return/[\s\u0000-\u001F\u007F-\u009F\u00AD]/g}};const D=getSpecialCharRegExp();const T={" ":" ","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"};const k=65535;const quoteString=r=>{if(_.test(r)){return r}return B.platform==="win32"?`"${r.replaceAll('"','""')}"`:`'${r.replaceAll("'","'\\''")}'`};const _=/^[\w./-]+$/;function isUnicodeSupported(){const{env:r}=B;const{TERM:n,TERM_PROGRAM:s}=r;if(B.platform!=="win32"){return n!=="linux"}return Boolean(r.WT_SESSION)||Boolean(r.TERMINUS_SUBLIME)||r.ConEmuTask==="{cmd::Cmder}"||s==="Terminus-Sublime"||s==="vscode"||n==="xterm-256color"||n==="alacritty"||n==="rxvt-unicode"||n==="rxvt-unicode-256color"||r.TERMINAL_EMULATOR==="JetBrains-JediTerm"}const P={circleQuestionMark:"(?)",questionMarkPrefix:"(?)",square:"█",squareDarkShade:"▓",squareMediumShade:"▒",squareLightShade:"░",squareTop:"▀",squareBottom:"▄",squareLeft:"▌",squareRight:"▐",squareCenter:"■",bullet:"●",dot:"․",ellipsis:"…",pointerSmall:"›",triangleUp:"▲",triangleUpSmall:"▴",triangleDown:"▼",triangleDownSmall:"▾",triangleLeftSmall:"◂",triangleRightSmall:"▸",home:"⌂",heart:"♥",musicNote:"♪",musicNoteBeamed:"♫",arrowUp:"↑",arrowDown:"↓",arrowLeft:"←",arrowRight:"→",arrowLeftRight:"↔",arrowUpDown:"↕",almostEqual:"≈",notEqual:"≠",lessOrEqual:"≤",greaterOrEqual:"≥",identical:"≡",infinity:"∞",subscriptZero:"₀",subscriptOne:"₁",subscriptTwo:"₂",subscriptThree:"₃",subscriptFour:"₄",subscriptFive:"₅",subscriptSix:"₆",subscriptSeven:"₇",subscriptEight:"₈",subscriptNine:"₉",oneHalf:"½",oneThird:"⅓",oneQuarter:"¼",oneFifth:"⅕",oneSixth:"⅙",oneEighth:"⅛",twoThirds:"⅔",twoFifths:"⅖",threeQuarters:"¾",threeFifths:"⅗",threeEighths:"⅜",fourFifths:"⅘",fiveSixths:"⅚",fiveEighths:"⅝",sevenEighths:"⅞",line:"─",lineBold:"━",lineDouble:"═",lineDashed0:"┄",lineDashed1:"┅",lineDashed2:"┈",lineDashed3:"┉",lineDashed4:"╌",lineDashed5:"╍",lineDashed6:"╴",lineDashed7:"╶",lineDashed8:"╸",lineDashed9:"╺",lineDashed10:"╼",lineDashed11:"╾",lineDashed12:"−",lineDashed13:"–",lineDashed14:"‐",lineDashed15:"⁃",lineVertical:"│",lineVerticalBold:"┃",lineVerticalDouble:"║",lineVerticalDashed0:"┆",lineVerticalDashed1:"┇",lineVerticalDashed2:"┊",lineVerticalDashed3:"┋",lineVerticalDashed4:"╎",lineVerticalDashed5:"╏",lineVerticalDashed6:"╵",lineVerticalDashed7:"╷",lineVerticalDashed8:"╹",lineVerticalDashed9:"╻",lineVerticalDashed10:"╽",lineVerticalDashed11:"╿",lineDownLeft:"┐",lineDownLeftArc:"╮",lineDownBoldLeftBold:"┓",lineDownBoldLeft:"┒",lineDownLeftBold:"┑",lineDownDoubleLeftDouble:"╗",lineDownDoubleLeft:"╖",lineDownLeftDouble:"╕",lineDownRight:"┌",lineDownRightArc:"╭",lineDownBoldRightBold:"┏",lineDownBoldRight:"┎",lineDownRightBold:"┍",lineDownDoubleRightDouble:"╔",lineDownDoubleRight:"╓",lineDownRightDouble:"╒",lineUpLeft:"┘",lineUpLeftArc:"╯",lineUpBoldLeftBold:"┛",lineUpBoldLeft:"┚",lineUpLeftBold:"┙",lineUpDoubleLeftDouble:"╝",lineUpDoubleLeft:"╜",lineUpLeftDouble:"╛",lineUpRight:"└",lineUpRightArc:"╰",lineUpBoldRightBold:"┗",lineUpBoldRight:"┖",lineUpRightBold:"┕",lineUpDoubleRightDouble:"╚",lineUpDoubleRight:"╙",lineUpRightDouble:"╘",lineUpDownLeft:"┤",lineUpBoldDownBoldLeftBold:"┫",lineUpBoldDownBoldLeft:"┨",lineUpDownLeftBold:"┥",lineUpBoldDownLeftBold:"┩",lineUpDownBoldLeftBold:"┪",lineUpDownBoldLeft:"┧",lineUpBoldDownLeft:"┦",lineUpDoubleDownDoubleLeftDouble:"╣",lineUpDoubleDownDoubleLeft:"╢",lineUpDownLeftDouble:"╡",lineUpDownRight:"├",lineUpBoldDownBoldRightBold:"┣",lineUpBoldDownBoldRight:"┠",lineUpDownRightBold:"┝",lineUpBoldDownRightBold:"┡",lineUpDownBoldRightBold:"┢",lineUpDownBoldRight:"┟",lineUpBoldDownRight:"┞",lineUpDoubleDownDoubleRightDouble:"╠",lineUpDoubleDownDoubleRight:"╟",lineUpDownRightDouble:"╞",lineDownLeftRight:"┬",lineDownBoldLeftBoldRightBold:"┳",lineDownLeftBoldRightBold:"┯",lineDownBoldLeftRight:"┰",lineDownBoldLeftBoldRight:"┱",lineDownBoldLeftRightBold:"┲",lineDownLeftRightBold:"┮",lineDownLeftBoldRight:"┭",lineDownDoubleLeftDoubleRightDouble:"╦",lineDownDoubleLeftRight:"╥",lineDownLeftDoubleRightDouble:"╤",lineUpLeftRight:"┴",lineUpBoldLeftBoldRightBold:"┻",lineUpLeftBoldRightBold:"┷",lineUpBoldLeftRight:"┸",lineUpBoldLeftBoldRight:"┹",lineUpBoldLeftRightBold:"┺",lineUpLeftRightBold:"┶",lineUpLeftBoldRight:"┵",lineUpDoubleLeftDoubleRightDouble:"╩",lineUpDoubleLeftRight:"╨",lineUpLeftDoubleRightDouble:"╧",lineUpDownLeftRight:"┼",lineUpBoldDownBoldLeftBoldRightBold:"╋",lineUpDownBoldLeftBoldRightBold:"╈",lineUpBoldDownLeftBoldRightBold:"╇",lineUpBoldDownBoldLeftRightBold:"╊",lineUpBoldDownBoldLeftBoldRight:"╉",lineUpBoldDownLeftRight:"╀",lineUpDownBoldLeftRight:"╁",lineUpDownLeftBoldRight:"┽",lineUpDownLeftRightBold:"┾",lineUpBoldDownBoldLeftRight:"╂",lineUpDownLeftBoldRightBold:"┿",lineUpBoldDownLeftBoldRight:"╃",lineUpBoldDownLeftRightBold:"╄",lineUpDownBoldLeftBoldRight:"╅",lineUpDownBoldLeftRightBold:"╆",lineUpDoubleDownDoubleLeftDoubleRightDouble:"╬",lineUpDoubleDownDoubleLeftRight:"╫",lineUpDownLeftDoubleRightDouble:"╪",lineCross:"╳",lineBackslash:"╲",lineSlash:"╱"};const F={tick:"✔",info:"ℹ",warning:"⚠",cross:"✘",squareSmall:"◻",squareSmallFilled:"◼",circle:"◯",circleFilled:"◉",circleDotted:"◌",circleDouble:"◎",circleCircle:"ⓞ",circleCross:"ⓧ",circlePipe:"Ⓘ",radioOn:"◉",radioOff:"◯",checkboxOn:"☒",checkboxOff:"☐",checkboxCircleOn:"ⓧ",checkboxCircleOff:"Ⓘ",pointer:"❯",triangleUpOutline:"△",triangleLeft:"◀",triangleRight:"▶",lozenge:"◆",lozengeOutline:"◇",hamburger:"☰",smiley:"㋡",mustache:"෴",star:"★",play:"▶",nodejs:"⬢",oneSeventh:"⅐",oneNinth:"⅑",oneTenth:"⅒"};const L={tick:"√",info:"i",warning:"‼",cross:"×",squareSmall:"□",squareSmallFilled:"■",circle:"( )",circleFilled:"(*)",circleDotted:"( )",circleDouble:"( )",circleCircle:"(○)",circleCross:"(×)",circlePipe:"(│)",radioOn:"(*)",radioOff:"( )",checkboxOn:"[×]",checkboxOff:"[ ]",checkboxCircleOn:"(×)",checkboxCircleOff:"( )",pointer:">",triangleUpOutline:"∆",triangleLeft:"◄",triangleRight:"►",lozenge:"♦",lozengeOutline:"◊",hamburger:"≡",smiley:"☺",mustache:"┌─┐",star:"✶",play:"►",nodejs:"♦",oneSeventh:"1/7",oneNinth:"1/9",oneTenth:"1/10"};const O={...P,...F};const M={...P,...L};const U=isUnicodeSupported();const H=U?O:M;const G=H;const z=Object.entries(F);const replaceSymbols=(r,{useFallback:n=!U}={})=>{if(n){for(const[n,s]of z){r=r.replaceAll(s,M[n])}}return r};const q=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tty");const V=q?.WriteStream?.prototype?.hasColors?.()??false;const format=(r,n)=>{if(!V){return r=>r}const s=`[${r}m`;const a=`[${n}m`;return r=>{const l=r+"";let u=l.indexOf(a);if(u===-1){return s+l+a}let d=s;let A=0;const p=n===22;const f=(p?a:"")+s;while(u!==-1){d+=l.slice(A,u)+f;A=u+a.length;u=l.indexOf(a,A)}d+=l.slice(A)+a;return d}};const j=format(0,0);const W=format(1,22);const Y=format(2,22);const J=format(3,23);const $=format(4,24);const K=format(53,55);const X=format(7,27);const Z=format(8,28);const ee=format(9,29);const te=format(30,39);const re=format(31,39);const ne=format(32,39);const se=format(33,39);const ie=format(34,39);const oe=format(35,39);const ae=format(36,39);const le=format(37,39);const ce=format(90,39);const ue=format(40,49);const de=format(41,49);const Ae=format(42,49);const pe=format(43,49);const fe=format(44,49);const he=format(45,49);const me=format(46,49);const ge=format(47,49);const ye=format(100,49);const Ee=format(91,39);const be=format(92,39);const Ce=format(93,39);const we=format(94,39);const Be=format(95,39);const Ie=format(96,39);const Se=format(97,39);const Qe=format(101,49);const ve=format(102,49);const Re=format(103,49);const Ne=format(104,49);const xe=format(105,49);const De=format(106,49);const Te=format(107,49);const defaultVerboseFunction=({type:r,message:n,timestamp:s,piped:a,commandId:l,result:{failed:u=false}={},options:{reject:d=true}})=>{const A=serializeTimestamp(s);const p=ke[r]({failed:u,reject:d,piped:a});const f=_e[r]({reject:d});return`${ce(`[${A}]`)} ${ce(`[${l}]`)} ${f(p)} ${f(n)}`};const serializeTimestamp=r=>`${padField(r.getHours(),2)}:${padField(r.getMinutes(),2)}:${padField(r.getSeconds(),2)}.${padField(r.getMilliseconds(),3)}`;const padField=(r,n)=>String(r).padStart(n,"0");const getFinalIcon=({failed:r,reject:n})=>{if(!r){return G.tick}return n?G.cross:G.warning};const ke={command:({piped:r})=>r?"|":"$",output:()=>" ",ipc:()=>"*",error:getFinalIcon,duration:getFinalIcon};const identity=r=>r;const _e={command:()=>W,output:()=>identity,ipc:()=>identity,error:({reject:r})=>r?Ee:Ce,duration:()=>ce};const applyVerboseOnLines=(r,n,s)=>{const a=getVerboseFunction(n,s);return r.map((({verboseLine:r,verboseObject:n})=>applyVerboseFunction(r,n,a))).filter((r=>r!==undefined)).map((r=>appendNewline(r))).join("")};const applyVerboseFunction=(r,n,s)=>{if(s===undefined){return r}const a=s(r,n);if(typeof a==="string"){return a}};const appendNewline=r=>r.endsWith("\n")?r:`${r}\n`;const verboseLog=({type:r,verboseMessage:n,fdNumber:s,verboseInfo:a,result:l})=>{const u=getVerboseObject({type:r,result:l,verboseInfo:a});const d=getPrintedLines(n,u);const A=applyVerboseOnLines(d,a,s);if(A!==""){console.warn(A.slice(0,-1))}};const getVerboseObject=({type:r,result:n,verboseInfo:{escapedCommand:s,commandId:a,rawOptions:{piped:l=false,...u}}})=>({type:r,escapedCommand:s,commandId:`${a}`,timestamp:new Date,piped:l,result:n,options:u});const getPrintedLines=(r,n)=>r.split("\n").map((r=>getPrintedLine({...n,message:r})));const getPrintedLine=r=>{const n=defaultVerboseFunction(r);return{verboseLine:n,verboseObject:r}};const serializeVerboseMessage=r=>{const n=typeof r==="string"?r:(0,w.inspect)(r);const s=escapeLines(n);return s.replaceAll("\t"," ".repeat(Pe))};const Pe=2;const logCommand=(r,n)=>{if(!isVerbose(n)){return}verboseLog({type:"command",verboseMessage:r,verboseInfo:n})};const getVerboseInfo=(r,n,s)=>{validateVerbose(r);const a=getCommandId(r);return{verbose:r,escapedCommand:n,commandId:a,rawOptions:s}};const getCommandId=r=>isVerbose({verbose:r})?Fe++:undefined;let Fe=0n;const validateVerbose=r=>{for(const n of r){if(n===false){throw new TypeError('The "verbose: false" option was renamed to "verbose: \'none\'".')}if(n===true){throw new TypeError('The "verbose: true" option was renamed to "verbose: \'short\'".')}if(!x.includes(n)&&!isVerboseFunction(n)){const r=x.map((r=>`'${r}'`)).join(", ");throw new TypeError(`The "verbose" option must not be ${n}. Allowed values are: ${r} or a function.`)}}};const getStartTime=()=>B.hrtime.bigint();const getDurationMs=r=>Number(B.hrtime.bigint()-r)/1e6;const handleCommand=(r,n,s)=>{const a=getStartTime();const{command:l,escapedCommand:u}=joinCommand(r,n);const d=normalizeFdSpecificOption(s,"verbose");const A=getVerboseInfo(d,u,{...s});logCommand(u,A);return{command:l,escapedCommand:u,startTime:a,verboseInfo:A}};var Le=s(80546);function pathKey(r={}){const{env:n=process.env,platform:s=process.platform}=r;if(s!=="win32"){return"PATH"}return Object.keys(n).reverse().find((r=>r.toUpperCase()==="PATH"))||"Path"}const Oe=(0,w.promisify)(A.execFile);function toPath(r){return r instanceof URL?(0,d.fileURLToPath)(r):r}function rootDirectory(r){return path.parse(toPath(r)).root}function traversePathUp(r){return{*[Symbol.iterator](){let n=l.resolve(toPath(r));let s;while(s!==n){yield n;s=n;n=l.resolve(n,"..")}}}}const Me=null&&10*1024*1024;async function execFile(r,n,s={}){return Oe(r,n,{maxBuffer:Me,...s})}function execFileSync(r,n=[],s={}){return execFileSyncOriginal(r,n,{maxBuffer:Me,encoding:"utf8",stdio:"pipe",...s})}const npmRunPath=({cwd:r=B.cwd(),path:n=B.env[pathKey()],preferLocal:s=true,execPath:a=B.execPath,addExecPath:u=true}={})=>{const d=l.resolve(toPath(r));const A=[];const p=n.split(l.delimiter);if(s){applyPreferLocal(A,p,d)}if(u){applyExecPath(A,p,a,d)}return n===""||n===l.delimiter?`${A.join(l.delimiter)}${n}`:[...A,n].join(l.delimiter)};const applyPreferLocal=(r,n,s)=>{for(const a of traversePathUp(s)){const s=l.join(a,"node_modules/.bin");if(!n.includes(s)){r.push(s)}}};const applyExecPath=(r,n,s,a)=>{const u=l.resolve(a,toPath(s),"..");if(!n.includes(u)){r.push(u)}};const npmRunPathEnv=({env:r=B.env,...n}={})=>{r={...r};const s=pathKey({env:r});n.path=r[s];r[s]=npmRunPath(n);return r};const Ue=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:timers/promises");const getFinalError=(r,n,s)=>{const a=s?ExecaSyncError:ExecaError;const l=r instanceof DiscardedError?{}:{cause:r};return new a(n,l)};class DiscardedError extends Error{}const setErrorName=(r,n)=>{Object.defineProperty(r.prototype,"name",{value:n,writable:true,enumerable:false,configurable:true});Object.defineProperty(r.prototype,He,{value:true,writable:false,enumerable:false,configurable:false})};const isExecaError=r=>isErrorInstance(r)&&He in r;const He=Symbol("isExecaError");const isErrorInstance=r=>Object.prototype.toString.call(r)==="[object Error]";class ExecaError extends Error{}setErrorName(ExecaError,ExecaError.name);class ExecaSyncError extends Error{}setErrorName(ExecaSyncError,ExecaSyncError.name);var Ge=s(48161);const getRealtimeSignals=()=>{const r=qe-ze+1;return Array.from({length:r},getRealtimeSignal)};const getRealtimeSignal=(r,n)=>({name:`SIGRT${n+1}`,number:ze+n,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"});const ze=34;const qe=64;const Ve=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:true},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:true},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:true},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];const getSignals=()=>{const r=getRealtimeSignals();const n=[...Ve,...r].map(normalizeSignal);return n};const normalizeSignal=({name:r,number:n,description:s,action:a,forced:l=false,standard:u})=>{const{signals:{[r]:d}}=Ge.constants;const A=d!==undefined;const p=A?d:n;return{name:r,number:p,description:s,supported:A,action:a,forced:l,standard:u}};const getSignalsByName=()=>{const r=getSignals();return Object.fromEntries(r.map(getSignalByName))};const getSignalByName=({name:r,number:n,description:s,supported:a,action:l,forced:u,standard:d})=>[r,{name:r,number:n,description:s,supported:a,action:l,forced:u,standard:d}];const je=getSignalsByName();const getSignalsByNumber=()=>{const r=getSignals();const n=qe+1;const s=Array.from({length:n},((n,s)=>getSignalByNumber(s,r)));return Object.assign({},...s)};const getSignalByNumber=(r,n)=>{const s=findSignalByNumber(r,n);if(s===undefined){return{}}const{name:a,description:l,supported:u,action:d,forced:A,standard:p}=s;return{[r]:{name:a,number:r,description:l,supported:u,action:d,forced:A,standard:p}}};const findSignalByNumber=(r,n)=>{const s=n.find((({name:n})=>Ge.constants.signals[n]===r));if(s!==undefined){return s}return n.find((n=>n.number===r))};const We=getSignalsByNumber();const normalizeKillSignal=r=>{const n="option `killSignal`";if(r===0){throw new TypeError(`Invalid ${n}: 0 cannot be used.`)}return signal_normalizeSignal(r,n)};const normalizeSignalArgument=r=>r===0?r:signal_normalizeSignal(r,"`subprocess.kill()`'s argument");const signal_normalizeSignal=(r,n)=>{if(Number.isInteger(r)){return normalizeSignalInteger(r,n)}if(typeof r==="string"){return normalizeSignalName(r,n)}throw new TypeError(`Invalid ${n} ${String(r)}: it must be a string or an integer.\n${getAvailableSignals()}`)};const normalizeSignalInteger=(r,n)=>{if(Ye.has(r)){return Ye.get(r)}throw new TypeError(`Invalid ${n} ${r}: this signal integer does not exist.\n${getAvailableSignals()}`)};const getSignalsIntegerToName=()=>new Map(Object.entries(Ge.constants.signals).reverse().map((([r,n])=>[n,r])));const Ye=getSignalsIntegerToName();const normalizeSignalName=(r,n)=>{if(r in Ge.constants.signals){return r}if(r.toUpperCase()in Ge.constants.signals){throw new TypeError(`Invalid ${n} '${r}': please rename it to '${r.toUpperCase()}'.`)}throw new TypeError(`Invalid ${n} '${r}': this signal name does not exist.\n${getAvailableSignals()}`)};const getAvailableSignals=()=>`Available signal names: ${getAvailableSignalNames()}.\nAvailable signal numbers: ${getAvailableSignalIntegers()}.`;const getAvailableSignalNames=()=>Object.keys(Ge.constants.signals).sort().map((r=>`'${r}'`)).join(", ");const getAvailableSignalIntegers=()=>[...new Set(Object.values(Ge.constants.signals).sort(((r,n)=>r-n)))].join(", ");const getSignalDescription=r=>je[r].description;const normalizeForceKillAfterDelay=r=>{if(r===false){return r}if(r===true){return Je}if(!Number.isFinite(r)||r<0){throw new TypeError(`Expected the \`forceKillAfterDelay\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)}return r};const Je=1e3*5;const subprocessKill=({kill:r,options:{forceKillAfterDelay:n,killSignal:s},onInternalError:a,context:l,controller:u},d,A)=>{const{signal:p,error:f}=parseKillArguments(d,A,s);emitKillError(f,a);const g=r(p);setKillTimeout({kill:r,signal:p,forceKillAfterDelay:n,killSignal:s,killResult:g,context:l,controller:u});return g};const parseKillArguments=(r,n,s)=>{const[a=s,l]=isErrorInstance(r)?[undefined,r]:[r,n];if(typeof a!=="string"&&!Number.isInteger(a)){throw new TypeError(`The first argument must be an error instance or a signal name string/integer: ${String(a)}`)}if(l!==undefined&&!isErrorInstance(l)){throw new TypeError(`The second argument is optional. If specified, it must be an error instance: ${l}`)}return{signal:normalizeSignalArgument(a),error:l}};const emitKillError=(r,n)=>{if(r!==undefined){n.reject(r)}};const setKillTimeout=async({kill:r,signal:n,forceKillAfterDelay:s,killSignal:a,killResult:l,context:u,controller:d})=>{if(n===a&&l){killOnTimeout({kill:r,forceKillAfterDelay:s,context:u,controllerSignal:d.signal})}};const killOnTimeout=async({kill:r,forceKillAfterDelay:n,context:s,controllerSignal:a})=>{if(n===false){return}try{await(0,Ue.setTimeout)(n,undefined,{signal:a});if(r("SIGKILL")){s.isForcefullyTerminated??=true}}catch{}};var $e=s(78474);const onAbortedSignal=async(r,n)=>{if(!r.aborted){await(0,$e.once)(r,"abort",{signal:n})}};const validateCancelSignal=({cancelSignal:r})=>{if(r!==undefined&&Object.prototype.toString.call(r)!=="[object AbortSignal]"){throw new Error(`The \`cancelSignal\` option must be an AbortSignal: ${String(r)}`)}};const throwOnCancel=({subprocess:r,cancelSignal:n,gracefulCancel:s,context:a,controller:l})=>n===undefined||s?[]:[terminateOnCancel(r,n,a,l)];const terminateOnCancel=async(r,n,s,{signal:a})=>{await onAbortedSignal(n,a);s.terminationReason??="cancel";r.kill();throw n.reason};const validateIpcMethod=({methodName:r,isSubprocess:n,ipc:s,isConnected:a})=>{validateIpcOption(r,n,s);validateConnection(r,n,a)};const validateIpcOption=(r,n,s)=>{if(!s){throw new Error(`${getMethodName(r,n)} can only be used if the \`ipc\` option is \`true\`.`)}};const validateConnection=(r,n,s)=>{if(!s){throw new Error(`${getMethodName(r,n)} cannot be used: the ${getOtherProcessName(n)} has already exited or disconnected.`)}};const throwOnEarlyDisconnect=r=>{throw new Error(`${getMethodName("getOneMessage",r)} could not complete: the ${getOtherProcessName(r)} exited or disconnected.`)};const throwOnStrictDeadlockError=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} is sending a message too, instead of listening to incoming messages.\nThis can be fixed by both sending a message and listening to incoming messages at the same time:\n\nconst [receivedMessage] = await Promise.all([\n\t${getMethodName("getOneMessage",r)},\n\t${getMethodName("sendMessage",r,"message, {strict: true}")},\n]);`)};const getStrictResponseError=(r,n)=>new Error(`${getMethodName("sendMessage",n)} failed when sending an acknowledgment response to the ${getOtherProcessName(n)}.`,{cause:r});const throwOnMissingStrict=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} is not listening to incoming messages.`)};const throwOnStrictDisconnect=r=>{throw new Error(`${getMethodName("sendMessage",r)} failed: the ${getOtherProcessName(r)} exited without listening to incoming messages.`)};const getAbortDisconnectError=()=>new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);const throwOnMissingParent=()=>{throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.")};const handleEpipeError=({error:r,methodName:n,isSubprocess:s})=>{if(r.code==="EPIPE"){throw new Error(`${getMethodName(n,s)} cannot be used: the ${getOtherProcessName(s)} is disconnecting.`,{cause:r})}};const handleSerializationError=({error:r,methodName:n,isSubprocess:s,message:a})=>{if(isSerializationError(r)){throw new Error(`${getMethodName(n,s)}'s argument type is invalid: the message cannot be serialized: ${String(a)}.`,{cause:r})}};const isSerializationError=({code:r,message:n})=>Ke.has(r)||Xe.some((r=>n.includes(r)));const Ke=new Set(["ERR_MISSING_ARGS","ERR_INVALID_ARG_TYPE"]);const Xe=["could not be cloned","circular structure","call stack size exceeded"];const getMethodName=(r,n,s="")=>r==="cancelSignal"?"`cancelSignal`'s `controller.abort()`":`${getNamespaceName(n)}${r}(${s})`;const getNamespaceName=r=>r?"":"subprocess.";const getOtherProcessName=r=>r?"parent process":"subprocess";const disconnect=r=>{if(r.connected){r.disconnect()}};const createDeferred=()=>{const r={};const n=new Promise(((n,s)=>{Object.assign(r,{resolve:n,reject:s})}));return Object.assign(n,r)};const getToStream=(r,n="stdin")=>{const s=true;const{options:a,fileDescriptors:l}=Ze.get(r);const u=getFdNumber(l,n,s);const d=r.stdio[u];if(d===null){throw new TypeError(getInvalidStdioOptionMessage(u,n,a,s))}return d};const getFromStream=(r,n="stdout")=>{const s=false;const{options:a,fileDescriptors:l}=Ze.get(r);const u=getFdNumber(l,n,s);const d=u==="all"?r.all:r.stdio[u];if(d===null||d===undefined){throw new TypeError(getInvalidStdioOptionMessage(u,n,a,s))}return d};const Ze=new WeakMap;const getFdNumber=(r,n,s)=>{const a=parseFdNumber(n,s);validateFdNumber(a,n,s,r);return a};const parseFdNumber=(r,n)=>{const s=parseFd(r);if(s!==undefined){return s}const{validOptions:a,defaultValue:l}=n?{validOptions:'"stdin"',defaultValue:"stdin"}:{validOptions:'"stdout", "stderr", "all"',defaultValue:"stdout"};throw new TypeError(`"${getOptionName(n)}" must not be "${r}".\nIt must be ${a} or "fd3", "fd4" (and so on).\nIt is optional and defaults to "${l}".`)};const validateFdNumber=(r,n,s,a)=>{const l=a[getUsedDescriptor(r)];if(l===undefined){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. That file descriptor does not exist.\nPlease set the "stdio" option to ensure that file descriptor exists.`)}if(l.direction==="input"&&!s){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. It must be a readable stream, not writable.`)}if(l.direction!=="input"&&s){throw new TypeError(`"${getOptionName(s)}" must not be ${n}. It must be a writable stream, not readable.`)}};const getInvalidStdioOptionMessage=(r,n,s,a)=>{if(r==="all"&&!s.all){return'The "all" option must be true to use "from: \'all\'".'}const{optionName:l,optionValue:u}=getInvalidStdioOption(r,s);return`The "${l}: ${serializeOptionValue(u)}" option is incompatible with using "${getOptionName(a)}: ${serializeOptionValue(n)}".\nPlease set this option with "pipe" instead.`};const getInvalidStdioOption=(r,{stdin:n,stdout:s,stderr:a,stdio:l})=>{const u=getUsedDescriptor(r);if(u===0&&n!==undefined){return{optionName:"stdin",optionValue:n}}if(u===1&&s!==undefined){return{optionName:"stdout",optionValue:s}}if(u===2&&a!==undefined){return{optionName:"stderr",optionValue:a}}return{optionName:`stdio[${u}]`,optionValue:l[u]}};const getUsedDescriptor=r=>r==="all"?1:r;const getOptionName=r=>r?"to":"from";const serializeOptionValue=r=>{if(typeof r==="string"){return`'${r}'`}return typeof r==="number"?`${r}`:"Stream"};const incrementMaxListeners=(r,n,s)=>{const a=r.getMaxListeners();if(a===0||a===Number.POSITIVE_INFINITY){return}r.setMaxListeners(a+n);(0,$e.addAbortListener)(s,(()=>{r.setMaxListeners(r.getMaxListeners()-n)}))};const addReference=(r,n)=>{if(n){addReferenceCount(r)}};const addReferenceCount=r=>{r.refCounted()};const removeReference=(r,n)=>{if(n){removeReferenceCount(r)}};const removeReferenceCount=r=>{r.unrefCounted()};const undoAddedReferences=(r,n)=>{if(n){removeReferenceCount(r);removeReferenceCount(r)}};const redoAddedReferences=(r,n)=>{if(n){addReferenceCount(r);addReferenceCount(r)}};const onMessage=async({anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a},l)=>{if(handleStrictResponse(l)||handleAbort(l)){return}if(!et.has(r)){et.set(r,[])}const u=et.get(r);u.push(l);if(u.length>1){return}while(u.length>0){await waitForOutgoingMessages(r,a,l);await Ue.scheduler.yield();const d=await handleStrictRequest({wrappedMessage:u[0],anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a});u.shift();a.emit("message",d);a.emit("message:done")}};const onDisconnect=async({anyProcess:r,channel:n,isSubprocess:s,ipcEmitter:a,boundOnMessage:l})=>{abortOnDisconnect();const u=et.get(r);while(u?.length>0){await(0,$e.once)(a,"message:done")}r.removeListener("message",l);redoAddedReferences(n,s);a.connected=false;a.emit("disconnect")};const et=new WeakMap;const getIpcEmitter=(r,n,s)=>{if(tt.has(r)){return tt.get(r)}const a=new $e.EventEmitter;a.connected=true;tt.set(r,a);forwardEvents({ipcEmitter:a,anyProcess:r,channel:n,isSubprocess:s});return a};const tt=new WeakMap;const forwardEvents=({ipcEmitter:r,anyProcess:n,channel:s,isSubprocess:a})=>{const l=onMessage.bind(undefined,{anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:r});n.on("message",l);n.once("disconnect",onDisconnect.bind(undefined,{anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:r,boundOnMessage:l}));undoAddedReferences(s,a)};const isConnected=r=>{const n=tt.get(r);return n===undefined?r.channel!==null:n.connected};const handleSendStrict=({anyProcess:r,channel:n,isSubprocess:s,message:a,strict:l})=>{if(!l){return a}const u=getIpcEmitter(r,n,s);const d=hasMessageListeners(r,u);return{id:rt++,type:st,message:a,hasListeners:d}};let rt=0n;const validateStrictDeadlock=(r,n)=>{if(n?.type!==st||n.hasListeners){return}for(const{id:n}of r){if(n!==undefined){nt[n].resolve({isDeadlock:true,hasListeners:false})}}};const handleStrictRequest=async({wrappedMessage:r,anyProcess:n,channel:s,isSubprocess:a,ipcEmitter:l})=>{if(r?.type!==st||!n.connected){return r}const{id:u,message:d}=r;const A={id:u,type:it,message:hasMessageListeners(n,l)};try{await sendMessage({anyProcess:n,channel:s,isSubprocess:a,ipc:true},A)}catch(r){l.emit("strict:error",r)}return d};const handleStrictResponse=r=>{if(r?.type!==it){return false}const{id:n,message:s}=r;nt[n]?.resolve({isDeadlock:false,hasListeners:s});return true};const waitForStrictResponse=async(r,n,s)=>{if(r?.type!==st){return}const a=createDeferred();nt[r.id]=a;const l=new AbortController;try{const{isDeadlock:r,hasListeners:u}=await Promise.race([a,throwOnDisconnect(n,s,l)]);if(r){throwOnStrictDeadlockError(s)}if(!u){throwOnMissingStrict(s)}}finally{l.abort();delete nt[r.id]}};const nt={};const throwOnDisconnect=async(r,n,{signal:s})=>{incrementMaxListeners(r,1,s);await(0,$e.once)(r,"disconnect",{signal:s});throwOnStrictDisconnect(n)};const st="execa:ipc:request";const it="execa:ipc:response";const startSendMessage=(r,n,s)=>{if(!ot.has(r)){ot.set(r,new Set)}const a=ot.get(r);const l=createDeferred();const u=s?n.id:undefined;const d={onMessageSent:l,id:u};a.add(d);return{outgoingMessages:a,outgoingMessage:d}};const endSendMessage=({outgoingMessages:r,outgoingMessage:n})=>{r.delete(n);n.onMessageSent.resolve()};const waitForOutgoingMessages=async(r,n,s)=>{while(!hasMessageListeners(r,n)&&ot.get(r)?.size>0){const n=[...ot.get(r)];validateStrictDeadlock(n,s);await Promise.all(n.map((({onMessageSent:r})=>r)))}};const ot=new WeakMap;const hasMessageListeners=(r,n)=>n.listenerCount("message")>getMinListenerCount(r);const getMinListenerCount=r=>Ze.has(r)&&!getFdSpecificValue(Ze.get(r).options.buffer,"ipc")?1:0;const sendMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},l,{strict:u=false}={})=>{const d="sendMessage";validateIpcMethod({methodName:d,isSubprocess:s,ipc:a,isConnected:r.connected});return sendMessageAsync({anyProcess:r,channel:n,methodName:d,isSubprocess:s,message:l,strict:u})};const sendMessageAsync=async({anyProcess:r,channel:n,methodName:s,isSubprocess:a,message:l,strict:u})=>{const d=handleSendStrict({anyProcess:r,channel:n,isSubprocess:a,message:l,strict:u});const A=startSendMessage(r,d,u);try{await sendOneMessage({anyProcess:r,methodName:s,isSubprocess:a,wrappedMessage:d,message:l})}catch(n){disconnect(r);throw n}finally{endSendMessage(A)}};const sendOneMessage=async({anyProcess:r,methodName:n,isSubprocess:s,wrappedMessage:a,message:l})=>{const u=getSendMethod(r);try{await Promise.all([waitForStrictResponse(a,r,s),u(a)])}catch(r){handleEpipeError({error:r,methodName:n,isSubprocess:s});handleSerializationError({error:r,methodName:n,isSubprocess:s,message:l});throw r}};const getSendMethod=r=>{if(at.has(r)){return at.get(r)}const n=(0,w.promisify)(r.send.bind(r));at.set(r,n);return n};const at=new WeakMap;const sendAbort=(r,n)=>{const s="cancelSignal";validateConnection(s,false,r.connected);return sendOneMessage({anyProcess:r,methodName:s,isSubprocess:false,wrappedMessage:{type:ct,message:n},message:n})};const getCancelSignal=async({anyProcess:r,channel:n,isSubprocess:s,ipc:a})=>{await startIpc({anyProcess:r,channel:n,isSubprocess:s,ipc:a});return ut.signal};const startIpc=async({anyProcess:r,channel:n,isSubprocess:s,ipc:a})=>{if(lt){return}lt=true;if(!a){throwOnMissingParent();return}if(n===null){abortOnDisconnect();return}getIpcEmitter(r,n,s);await Ue.scheduler.yield()};let lt=false;const handleAbort=r=>{if(r?.type!==ct){return false}ut.abort(r.message);return true};const ct="execa:ipc:cancel";const abortOnDisconnect=()=>{ut.abort(getAbortDisconnectError())};const ut=new AbortController;const validateGracefulCancel=({gracefulCancel:r,cancelSignal:n,ipc:s,serialization:a})=>{if(!r){return}if(n===undefined){throw new Error("The `cancelSignal` option must be defined when setting the `gracefulCancel` option.")}if(!s){throw new Error("The `ipc` option cannot be false when setting the `gracefulCancel` option.")}if(a==="json"){throw new Error("The `serialization` option cannot be 'json' when setting the `gracefulCancel` option.")}};const throwOnGracefulCancel=({subprocess:r,cancelSignal:n,gracefulCancel:s,forceKillAfterDelay:a,context:l,controller:u})=>s?[sendOnAbort({subprocess:r,cancelSignal:n,forceKillAfterDelay:a,context:l,controller:u})]:[];const sendOnAbort=async({subprocess:r,cancelSignal:n,forceKillAfterDelay:s,context:a,controller:{signal:l}})=>{await onAbortedSignal(n,l);const u=getReason(n);await sendAbort(r,u);killOnTimeout({kill:r.kill,forceKillAfterDelay:s,context:a,controllerSignal:l});a.terminationReason??="gracefulCancel";throw n.reason};const getReason=({reason:r})=>{if(!(r instanceof DOMException)){return r}const n=new Error(r.message);Object.defineProperty(n,"stack",{value:r.stack,enumerable:false,configurable:true,writable:true});return n};const validateTimeout=({timeout:r})=>{if(r!==undefined&&(!Number.isFinite(r)||r<0)){throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${r}\` (${typeof r})`)}};const throwOnTimeout=(r,n,s,a)=>n===0||n===undefined?[]:[killAfterTimeout(r,n,s,a)];const killAfterTimeout=async(r,n,s,{signal:a})=>{await(0,Ue.setTimeout)(n,undefined,{signal:a});s.terminationReason??="timeout";r.kill();throw new DiscardedError};const mapNode=({options:r})=>{if(r.node===false){throw new TypeError('The "node" option cannot be false with `execaNode()`.')}return{options:{...r,node:true}}};const handleNodeOption=(r,n,{node:s=false,nodePath:a=B.execPath,nodeOptions:u=B.execArgv.filter((r=>!r.startsWith("--inspect"))),cwd:d,execPath:A,...p})=>{if(A!==undefined){throw new TypeError('The "execPath" option has been removed. Please use the "nodePath" option instead.')}const f=safeNormalizeFileUrl(a,'The "nodePath" option');const g=l.resolve(d,f);const y={...p,nodePath:g,node:s,cwd:d};if(!s){return[r,n,y]}if(l.basename(r,".exe")==="node"){throw new TypeError('When the "node" option is true, the first argument does not need to be "node".')}return[g,[...u,r,...n],{ipc:true,...y,shell:false}]};const dt=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:v8");const validateIpcInputOption=({ipcInput:r,ipc:n,serialization:s})=>{if(r===undefined){return}if(!n){throw new Error("The `ipcInput` option cannot be set unless the `ipc` option is `true`.")}At[s](r)};const validateAdvancedInput=r=>{try{(0,dt.serialize)(r)}catch(r){throw new Error("The `ipcInput` option is not serializable with a structured clone.",{cause:r})}};const validateJsonInput=r=>{try{JSON.stringify(r)}catch(r){throw new Error("The `ipcInput` option is not serializable with JSON.",{cause:r})}};const At={advanced:validateAdvancedInput,json:validateJsonInput};const sendIpcInput=async(r,n)=>{if(n===undefined){return}await r.sendMessage(n)};const validateEncoding=({encoding:r})=>{if(ht.has(r)){return}const n=getCorrectEncoding(r);if(n!==undefined){throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(r)}\`.\nPlease rename it to ${serializeEncoding(n)}.`)}const s=[...ht].map((r=>serializeEncoding(r))).join(", ");throw new TypeError(`Invalid option \`encoding: ${serializeEncoding(r)}\`.\nPlease rename it to one of: ${s}.`)};const pt=new Set(["utf8","utf16le"]);const ft=new Set(["buffer","hex","base64","base64url","latin1","ascii"]);const ht=new Set([...pt,...ft]);const getCorrectEncoding=r=>{if(r===null){return"buffer"}if(typeof r!=="string"){return}const n=r.toLowerCase();if(n in mt){return mt[n]}if(ht.has(n)){return n}};const mt={"utf-8":"utf8","utf-16le":"utf16le","ucs-2":"utf16le",ucs2:"utf16le",binary:"latin1"};const serializeEncoding=r=>typeof r==="string"?`"${r}"`:String(r);const normalizeCwd=(r=getDefaultCwd())=>{const n=safeNormalizeFileUrl(r,'The "cwd" option');return l.resolve(n)};const getDefaultCwd=()=>{try{return B.cwd()}catch(r){r.message=`The current directory does not exist.\n${r.message}`;throw r}};const fixCwdError=(r,n)=>{if(n===getDefaultCwd()){return r}let s;try{s=(0,a.statSync)(n)}catch(s){return`The "cwd" option is invalid: ${n}.\n${s.message}\n${r}`}if(!s.isDirectory()){return`The "cwd" option is not a directory: ${n}.\n${r}`}return r};const normalizeOptions=(r,n,s)=>{s.cwd=normalizeCwd(s.cwd);const[a,u,d]=handleNodeOption(r,n,s);const{command:A,args:p,options:f}=Le._parse(a,u,d);const g=normalizeFdSpecificOptions(f);const y=addDefaultOptions(g);validateTimeout(y);validateEncoding(y);validateIpcInputOption(y);validateCancelSignal(y);validateGracefulCancel(y);y.shell=normalizeFileUrl(y.shell);y.env=getEnv(y);y.killSignal=normalizeKillSignal(y.killSignal);y.forceKillAfterDelay=normalizeForceKillAfterDelay(y.forceKillAfterDelay);y.lines=y.lines.map(((r,n)=>r&&!ft.has(y.encoding)&&y.buffer[n]));if(B.platform==="win32"&&l.basename(A,".exe")==="cmd"){p.unshift("/q")}return{file:A,commandArguments:p,options:y}};const addDefaultOptions=({extendEnv:r=true,preferLocal:n=false,cwd:s,localDir:a=s,encoding:l="utf8",reject:u=true,cleanup:d=true,all:A=false,windowsHide:p=true,killSignal:f="SIGTERM",forceKillAfterDelay:g=true,gracefulCancel:y=false,ipcInput:b,ipc:C=b!==undefined||y,serialization:w="advanced",...B})=>({...B,extendEnv:r,preferLocal:n,cwd:s,localDirectory:a,encoding:l,reject:u,cleanup:d,all:A,windowsHide:p,killSignal:f,forceKillAfterDelay:g,gracefulCancel:y,ipcInput:b,ipc:C,serialization:w});const getEnv=({env:r,extendEnv:n,preferLocal:s,node:a,localDirectory:l,nodePath:u})=>{const d=n?{...B.env,...r}:r;if(s||a){return npmRunPathEnv({env:d,cwd:l,execPath:u,preferLocal:s,addExecPath:a})}return d};const concatenateShell=(r,n,s)=>s.shell&&n.length>0?[[r,...n].join(" "),[],s]:[r,n,s];function strip_final_newline_stripFinalNewline(r){if(typeof r==="string"){return stripFinalNewlineString(r)}if(!(ArrayBuffer.isView(r)&&r.BYTES_PER_ELEMENT===1)){throw new Error("Input must be a string or a Uint8Array")}return stripFinalNewlineBinary(r)}const stripFinalNewlineString=r=>r.at(-1)===gt?r.slice(0,r.at(-2)===Et?-2:-1):r;const stripFinalNewlineBinary=r=>r.at(-1)===yt?r.subarray(0,r.at(-2)===bt?-2:-1):r;const gt="\n";const yt=gt.codePointAt(0);const Et="\r";const bt=Et.codePointAt(0);function isStream(r,{checkOpen:n=true}={}){return r!==null&&typeof r==="object"&&(r.writable||r.readable||!n||r.writable===undefined&&r.readable===undefined)&&typeof r.pipe==="function"}function isWritableStream(r,{checkOpen:n=true}={}){return isStream(r,{checkOpen:n})&&(r.writable||!n)&&typeof r.write==="function"&&typeof r.end==="function"&&typeof r.writable==="boolean"&&typeof r.writableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isReadableStream(r,{checkOpen:n=true}={}){return isStream(r,{checkOpen:n})&&(r.readable||!n)&&typeof r.read==="function"&&typeof r.readable==="boolean"&&typeof r.readableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function isDuplexStream(r,n){return isWritableStream(r,n)&&isReadableStream(r,n)}function isTransformStream(r,n){return isDuplexStream(r,n)&&typeof r._transform==="function"}const Ct=Object.getPrototypeOf(Object.getPrototypeOf((async function*(){})).prototype);class c{#Ae;#pe;#fe=!1;#he=void 0;constructor(r,n){this.#Ae=r,this.#pe=n}next(){const e=()=>this.#me();return this.#he=this.#he?this.#he.then(e,e):e(),this.#he}return(r){const t=()=>this.#ge(r);return this.#he?this.#he.then(t,t):t()}async#me(){if(this.#fe)return{done:!0,value:void 0};let r;try{r=await this.#Ae.read()}catch(r){throw this.#he=void 0,this.#fe=!0,this.#Ae.releaseLock(),r}return r.done&&(this.#he=void 0,this.#fe=!0,this.#Ae.releaseLock()),r}async#ge(r){if(this.#fe)return{done:!0,value:r};if(this.#fe=!0,!this.#pe){const n=this.#Ae.cancel(r);return this.#Ae.releaseLock(),await n,{done:!0,value:r}}return this.#Ae.releaseLock(),{done:!0,value:r}}}const wt=Symbol();function i(){return this[wt].next()}Object.defineProperty(i,"name",{value:"next"});function o(r){return this[wt].return(r)}Object.defineProperty(o,"name",{value:"return"});const Bt=Object.create(Ct,{next:{enumerable:!0,configurable:!0,writable:!0,value:i},return:{enumerable:!0,configurable:!0,writable:!0,value:o}});function h({preventCancel:r=!1}={}){const n=this.getReader(),s=new c(n,r),a=Object.create(Bt);return a[wt]=s,a}const getAsyncIterable=r=>{if(isReadableStream(r,{checkOpen:false})&&St.on!==undefined){return getStreamIterable(r)}if(typeof r?.[Symbol.asyncIterator]==="function"){return r}if(It.call(r)==="[object ReadableStream]"){return h.call(r)}throw new TypeError("The first argument must be a Readable, a ReadableStream, or an async iterable.")};const{toString:It}=Object.prototype;const getStreamIterable=async function*(r){const n=new AbortController;const s={};handleStreamEnd(r,n,s);try{for await(const[s]of St.on(r,"data",{signal:n.signal})){yield s}}catch(r){if(s.error!==undefined){throw s.error}else if(!n.signal.aborted){throw r}}finally{r.destroy()}};const handleStreamEnd=async(r,n,s)=>{try{await St.finished(r,{cleanup:true,readable:true,writable:false,error:false})}catch(r){s.error=r}finally{n.abort()}};const St={};const getStreamContents=async(r,{init:n,convertChunk:s,getSize:a,truncateChunk:l,addChunk:u,getFinalChunk:d,finalize:A},{maxBuffer:p=Number.POSITIVE_INFINITY}={})=>{const f=getAsyncIterable(r);const g=n();g.length=0;try{for await(const r of f){const n=getChunkType(r);const d=s[n](r,g);appendChunk({convertedChunk:d,state:g,getSize:a,truncateChunk:l,addChunk:u,maxBuffer:p})}appendFinalChunk({state:g,convertChunk:s,getSize:a,truncateChunk:l,addChunk:u,getFinalChunk:d,maxBuffer:p});return A(g)}catch(r){const n=typeof r==="object"&&r!==null?r:new Error(r);n.bufferedData=A(g);throw n}};const appendFinalChunk=({state:r,getSize:n,truncateChunk:s,addChunk:a,getFinalChunk:l,maxBuffer:u})=>{const d=l(r);if(d!==undefined){appendChunk({convertedChunk:d,state:r,getSize:n,truncateChunk:s,addChunk:a,maxBuffer:u})}};const appendChunk=({convertedChunk:r,state:n,getSize:s,truncateChunk:a,addChunk:l,maxBuffer:u})=>{const d=s(r);const A=n.length+d;if(A<=u){addNewChunk(r,n,l,A);return}const p=a(r,u-n.length);if(p!==undefined){addNewChunk(p,n,l,u)}throw new MaxBufferError};const addNewChunk=(r,n,s,a)=>{n.contents=s(r,n,a);n.length=a};const getChunkType=r=>{const n=typeof r;if(n==="string"){return"string"}if(n!=="object"||r===null){return"others"}if(globalThis.Buffer?.isBuffer(r)){return"buffer"}const s=Qt.call(r);if(s==="[object ArrayBuffer]"){return"arrayBuffer"}if(s==="[object DataView]"){return"dataView"}if(Number.isInteger(r.byteLength)&&Number.isInteger(r.byteOffset)&&Qt.call(r.buffer)==="[object ArrayBuffer]"){return"typedArray"}return"others"};const{toString:Qt}=Object.prototype;class MaxBufferError extends Error{name="MaxBufferError";constructor(){super("maxBuffer exceeded")}}const handleMaxBuffer=({error:r,stream:n,readableObjectMode:s,lines:a,encoding:l,fdNumber:u})=>{if(!(r instanceof MaxBufferError)){throw r}if(u==="all"){return r}const d=getMaxBufferUnit(s,a,l);r.maxBufferInfo={fdNumber:u,unit:d};n.destroy();throw r};const getMaxBufferUnit=(r,n,s)=>{if(r){return"objects"}if(n){return"lines"}if(s==="buffer"){return"bytes"}return"characters"};const checkIpcMaxBuffer=(r,n,s)=>{if(n.length!==s){return}const a=new MaxBufferError;a.maxBufferInfo={fdNumber:"ipc"};throw a};const getMaxBufferMessage=(r,n)=>{const{streamName:s,threshold:a,unit:l}=getMaxBufferInfo(r,n);return`Command's ${s} was larger than ${a} ${l}`};const getMaxBufferInfo=(r,n)=>{if(r?.maxBufferInfo===undefined){return{streamName:"output",threshold:n[1],unit:"bytes"}}const{maxBufferInfo:{fdNumber:s,unit:a}}=r;delete r.maxBufferInfo;const l=getFdSpecificValue(n,s);if(s==="ipc"){return{streamName:"IPC output",threshold:l,unit:"messages"}}return{streamName:getStreamName(s),threshold:l,unit:a}};const isMaxBufferSync=(r,n,s)=>r?.code==="ENOBUFS"&&n!==null&&n.some((r=>r!==null&&r.length>getMaxBufferSync(s)));const truncateMaxBufferSync=(r,n,s)=>{if(!n){return r}const a=getMaxBufferSync(s);return r.length>a?r.slice(0,a):r};const getMaxBufferSync=([,r])=>r;const createMessages=({stdio:r,all:n,ipcOutput:s,originalError:a,signal:l,signalDescription:u,exitCode:d,escapedCommand:A,timedOut:p,isCanceled:f,isGracefullyCanceled:g,isMaxBuffer:y,isForcefullyTerminated:b,forceKillAfterDelay:C,killSignal:w,maxBuffer:B,timeout:I,cwd:S})=>{const Q=a?.code;const v=getErrorPrefix({originalError:a,timedOut:p,timeout:I,isMaxBuffer:y,maxBuffer:B,errorCode:Q,signal:l,signalDescription:u,exitCode:d,isCanceled:f,isGracefullyCanceled:g,isForcefullyTerminated:b,forceKillAfterDelay:C,killSignal:w});const R=getOriginalMessage(a,S);const N=R===undefined?"":`\n${R}`;const x=`${v}: ${A}${N}`;const D=n===undefined?[r[2],r[1]]:[n];const T=[x,...D,...r.slice(3),s.map((r=>serializeIpcMessage(r))).join("\n")].map((r=>escapeLines(strip_final_newline_stripFinalNewline(serializeMessagePart(r))))).filter(Boolean).join("\n\n");return{originalMessage:R,shortMessage:x,message:T}};const getErrorPrefix=({originalError:r,timedOut:n,timeout:s,isMaxBuffer:a,maxBuffer:l,errorCode:u,signal:d,signalDescription:A,exitCode:p,isCanceled:f,isGracefullyCanceled:g,isForcefullyTerminated:y,forceKillAfterDelay:b,killSignal:C})=>{const w=getForcefulSuffix(y,b);if(n){return`Command timed out after ${s} milliseconds${w}`}if(g){if(d===undefined){return`Command was gracefully canceled with exit code ${p}`}return y?`Command was gracefully canceled${w}`:`Command was gracefully canceled with ${d} (${A})`}if(f){return`Command was canceled${w}`}if(a){return`${getMaxBufferMessage(r,l)}${w}`}if(u!==undefined){return`Command failed with ${u}${w}`}if(y){return`Command was killed with ${C} (${getSignalDescription(C)})${w}`}if(d!==undefined){return`Command was killed with ${d} (${A})`}if(p!==undefined){return`Command failed with exit code ${p}`}return"Command failed"};const getForcefulSuffix=(r,n)=>r?` and was forcefully terminated after ${n} milliseconds`:"";const getOriginalMessage=(r,n)=>{if(r instanceof DiscardedError){return}const s=isExecaError(r)?r.originalMessage:String(r?.message??r);const a=escapeLines(fixCwdError(s,n));return a===""?undefined:a};const serializeIpcMessage=r=>typeof r==="string"?r:(0,w.inspect)(r);const serializeMessagePart=r=>Array.isArray(r)?r.map((r=>strip_final_newline_stripFinalNewline(serializeMessageItem(r)))).filter(Boolean).join("\n"):serializeMessageItem(r);const serializeMessageItem=r=>{if(typeof r==="string"){return r}if(isUint8Array(r)){return uint8ArrayToString(r)}return""};const makeSuccessResult=({command:r,escapedCommand:n,stdio:s,all:a,ipcOutput:l,options:{cwd:u},startTime:d})=>omitUndefinedProperties({command:r,escapedCommand:n,cwd:u,durationMs:getDurationMs(d),failed:false,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isTerminated:false,isMaxBuffer:false,isForcefullyTerminated:false,exitCode:0,stdout:s[1],stderr:s[2],all:a,stdio:s,ipcOutput:l,pipedFrom:[]});const makeEarlyError=({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,isSync:d})=>makeError({error:r,command:n,escapedCommand:s,startTime:u,timedOut:false,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:false,isForcefullyTerminated:false,stdio:Array.from({length:a.length}),ipcOutput:[],options:l,isSync:d});const makeError=({error:r,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,stdio:y,all:b,ipcOutput:C,options:{timeoutDuration:w,timeout:B=w,forceKillAfterDelay:I,killSignal:S,cwd:Q,maxBuffer:v},isSync:R})=>{const{exitCode:N,signal:x,signalDescription:D}=normalizeExitPayload(f,g);const{originalMessage:T,shortMessage:k,message:_}=createMessages({stdio:y,all:b,ipcOutput:C,originalError:r,signal:x,signalDescription:D,exitCode:N,escapedCommand:s,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,forceKillAfterDelay:I,killSignal:S,maxBuffer:v,timeout:B,cwd:Q});const P=getFinalError(r,_,R);Object.assign(P,getErrorProperties({error:P,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:N,signal:x,signalDescription:D,stdio:y,all:b,ipcOutput:C,cwd:Q,originalMessage:T,shortMessage:k}));return P};const getErrorProperties=({error:r,command:n,escapedCommand:s,startTime:a,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,signalDescription:y,stdio:b,all:C,ipcOutput:w,cwd:B,originalMessage:I,shortMessage:S})=>omitUndefinedProperties({shortMessage:S,originalMessage:I,command:n,escapedCommand:s,cwd:B,durationMs:getDurationMs(a),failed:true,timedOut:l,isCanceled:u,isGracefullyCanceled:d,isTerminated:g!==undefined,isMaxBuffer:A,isForcefullyTerminated:p,exitCode:f,signal:g,signalDescription:y,code:r.cause?.code,stdout:b[1],stderr:b[2],all:C,stdio:b,ipcOutput:w,pipedFrom:[]});const omitUndefinedProperties=r=>Object.fromEntries(Object.entries(r).filter((([,r])=>r!==undefined)));const normalizeExitPayload=(r,n)=>{const s=r===null?undefined:r;const a=n===null?undefined:n;const l=a===undefined?undefined:getSignalDescription(n);return{exitCode:s,signal:a,signalDescription:l}};const toZeroIfInfinity=r=>Number.isFinite(r)?r:0;function parseNumber(r){return{days:Math.trunc(r/864e5),hours:Math.trunc(r/36e5%24),minutes:Math.trunc(r/6e4%60),seconds:Math.trunc(r/1e3%60),milliseconds:Math.trunc(r%1e3),microseconds:Math.trunc(toZeroIfInfinity(r*1e3)%1e3),nanoseconds:Math.trunc(toZeroIfInfinity(r*1e6)%1e3)}}function parseBigint(r){return{days:r/86400000n,hours:r/3600000n%24n,minutes:r/60000n%60n,seconds:r/1000n%60n,milliseconds:r%1000n,microseconds:0n,nanoseconds:0n}}function parseMilliseconds(r){switch(typeof r){case"number":{if(Number.isFinite(r)){return parseNumber(r)}break}case"bigint":{return parseBigint(r)}}throw new TypeError("Expected a finite number or bigint")}const isZero=r=>r===0||r===0n;const pluralize=(r,n)=>n===1||n===1n?r:`${r}s`;const vt=1e-7;const Rt=24n*60n*60n*1000n;function prettyMilliseconds(r,n){const s=typeof r==="bigint";if(!s&&!Number.isFinite(r)){throw new TypeError("Expected a finite number or bigint")}n={...n};const a=r<0?"-":"";r=r<0?-r:r;if(n.colonNotation){n.compact=false;n.formatSubMilliseconds=false;n.separateMilliseconds=false;n.verbose=false}if(n.compact){n.unitCount=1;n.secondsDecimalDigits=0;n.millisecondsDecimalDigits=0}let l=[];const floorDecimals=(r,n)=>{const s=Math.floor(r*10**n+vt);const a=Math.round(s)/10**n;return a.toFixed(n)};const add=(r,s,a,u)=>{if((l.length===0||!n.colonNotation)&&isZero(r)&&!(n.colonNotation&&a==="m")){return}u??=String(r);if(n.colonNotation){const r=u.includes(".")?u.split(".")[0].length:u.length;const n=l.length>0?2:1;u="0".repeat(Math.max(0,n-r))+u}else{u+=n.verbose?" "+pluralize(s,r):a}l.push(u)};const u=parseMilliseconds(r);const d=BigInt(u.days);if(n.hideYearAndDays){add(BigInt(d)*24n+BigInt(u.hours),"hour","h")}else{if(n.hideYear){add(d,"day","d")}else{add(d/365n,"year","y");add(d%365n,"day","d")}add(Number(u.hours),"hour","h")}add(Number(u.minutes),"minute","m");if(!n.hideSeconds){if(n.separateMilliseconds||n.formatSubMilliseconds||!n.colonNotation&&r<1e3&&!n.subSecondsAsDecimals){const r=Number(u.seconds);const s=Number(u.milliseconds);const a=Number(u.microseconds);const l=Number(u.nanoseconds);add(r,"second","s");if(n.formatSubMilliseconds){add(s,"millisecond","ms");add(a,"microsecond","µs");add(l,"nanosecond","ns")}else{const r=s+a/1e3+l/1e6;const u=typeof n.millisecondsDecimalDigits==="number"?n.millisecondsDecimalDigits:0;const d=r>=1?Math.round(r):Math.ceil(r);const A=u?r.toFixed(u):d;add(Number.parseFloat(A),"millisecond","ms",A)}}else{const a=(s?Number(r%Rt):r)/1e3%60;const l=typeof n.secondsDecimalDigits==="number"?n.secondsDecimalDigits:1;const u=floorDecimals(a,l);const d=n.keepDecimalsOnWholeSeconds?u:u.replace(/\.0+$/,"");add(Number.parseFloat(d),"second","s",d)}}if(l.length===0){return a+"0"+(n.verbose?" milliseconds":"ms")}const A=n.colonNotation?":":" ";if(typeof n.unitCount==="number"){l=l.slice(0,Math.max(n.unitCount,1))}return a+l.join(A)}const logError=(r,n)=>{if(r.failed){verboseLog({type:"error",verboseMessage:r.shortMessage,verboseInfo:n,result:r})}};const logResult=(r,n)=>{if(!isVerbose(n)){return}logError(r,n);logDuration(r,n)};const logDuration=(r,n)=>{const s=`(done in ${prettyMilliseconds(r.durationMs)})`;verboseLog({type:"duration",verboseMessage:s,verboseInfo:n,result:r})};const handleResult=(r,n,{reject:s})=>{logResult(r,n);if(r.failed&&s){throw r}return r};function is_stream_isStream(r,{checkOpen:n=true}={}){return r!==null&&typeof r==="object"&&(r.writable||r.readable||!n||r.writable===undefined&&r.readable===undefined)&&typeof r.pipe==="function"}function is_stream_isWritableStream(r,{checkOpen:n=true}={}){return is_stream_isStream(r,{checkOpen:n})&&(r.writable||!n)&&typeof r.write==="function"&&typeof r.end==="function"&&typeof r.writable==="boolean"&&typeof r.writableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function is_stream_isReadableStream(r,{checkOpen:n=true}={}){return is_stream_isStream(r,{checkOpen:n})&&(r.readable||!n)&&typeof r.read==="function"&&typeof r.readable==="boolean"&&typeof r.readableObjectMode==="boolean"&&typeof r.destroy==="function"&&typeof r.destroyed==="boolean"}function is_stream_isDuplexStream(r,n){return is_stream_isWritableStream(r,n)&&is_stream_isReadableStream(r,n)}function is_stream_isTransformStream(r,n){return is_stream_isDuplexStream(r,n)&&typeof r._transform==="function"}const getStdioItemType=(r,n)=>{if(isAsyncGenerator(r)){return"asyncGenerator"}if(isSyncGenerator(r)){return"generator"}if(isUrl(r)){return"fileUrl"}if(isFilePathObject(r)){return"filePath"}if(isWebStream(r)){return"webStream"}if(is_stream_isStream(r,{checkOpen:false})){return"native"}if(isUint8Array(r)){return"uint8Array"}if(isAsyncIterableObject(r)){return"asyncIterable"}if(isIterableObject(r)){return"iterable"}if(type_isTransformStream(r)){return getTransformStreamType({transform:r},n)}if(isTransformOptions(r)){return getTransformObjectType(r,n)}return"native"};const getTransformObjectType=(r,n)=>{if(is_stream_isDuplexStream(r.transform,{checkOpen:false})){return getDuplexType(r,n)}if(type_isTransformStream(r.transform)){return getTransformStreamType(r,n)}return getGeneratorObjectType(r,n)};const getDuplexType=(r,n)=>{validateNonGeneratorType(r,n,"Duplex stream");return"duplex"};const getTransformStreamType=(r,n)=>{validateNonGeneratorType(r,n,"web TransformStream");return"webTransform"};const validateNonGeneratorType=({final:r,binary:n,objectMode:s},a,l)=>{checkUndefinedOption(r,`${a}.final`,l);checkUndefinedOption(n,`${a}.binary`,l);checkBooleanOption(s,`${a}.objectMode`)};const checkUndefinedOption=(r,n,s)=>{if(r!==undefined){throw new TypeError(`The \`${n}\` option can only be defined when using a generator, not a ${s}.`)}};const getGeneratorObjectType=({transform:r,final:n,binary:s,objectMode:a},l)=>{if(r!==undefined&&!isGenerator(r)){throw new TypeError(`The \`${l}.transform\` option must be a generator, a Duplex stream or a web TransformStream.`)}if(is_stream_isDuplexStream(n,{checkOpen:false})){throw new TypeError(`The \`${l}.final\` option must not be a Duplex stream.`)}if(type_isTransformStream(n)){throw new TypeError(`The \`${l}.final\` option must not be a web TransformStream.`)}if(n!==undefined&&!isGenerator(n)){throw new TypeError(`The \`${l}.final\` option must be a generator.`)}checkBooleanOption(s,`${l}.binary`);checkBooleanOption(a,`${l}.objectMode`);return isAsyncGenerator(r)||isAsyncGenerator(n)?"asyncGenerator":"generator"};const checkBooleanOption=(r,n)=>{if(r!==undefined&&typeof r!=="boolean"){throw new TypeError(`The \`${n}\` option must use a boolean.`)}};const isGenerator=r=>isAsyncGenerator(r)||isSyncGenerator(r);const isAsyncGenerator=r=>Object.prototype.toString.call(r)==="[object AsyncGeneratorFunction]";const isSyncGenerator=r=>Object.prototype.toString.call(r)==="[object GeneratorFunction]";const isTransformOptions=r=>isPlainObject(r)&&(r.transform!==undefined||r.final!==undefined);const isUrl=r=>Object.prototype.toString.call(r)==="[object URL]";const isRegularUrl=r=>isUrl(r)&&r.protocol!=="file:";const isFilePathObject=r=>isPlainObject(r)&&Object.keys(r).length>0&&Object.keys(r).every((r=>Nt.has(r)))&&isFilePathString(r.file);const Nt=new Set(["file","append"]);const isFilePathString=r=>typeof r==="string";const isUnknownStdioString=(r,n)=>r==="native"&&typeof n==="string"&&!xt.has(n);const xt=new Set(["ipc","ignore","inherit","overlapped","pipe"]);const type_isReadableStream=r=>Object.prototype.toString.call(r)==="[object ReadableStream]";const type_isWritableStream=r=>Object.prototype.toString.call(r)==="[object WritableStream]";const isWebStream=r=>type_isReadableStream(r)||type_isWritableStream(r);const type_isTransformStream=r=>type_isReadableStream(r?.readable)&&type_isWritableStream(r?.writable);const isAsyncIterableObject=r=>isObject(r)&&typeof r[Symbol.asyncIterator]==="function";const isIterableObject=r=>isObject(r)&&typeof r[Symbol.iterator]==="function";const isObject=r=>typeof r==="object"&&r!==null;const Dt=new Set(["generator","asyncGenerator","duplex","webTransform"]);const Tt=new Set(["fileUrl","filePath","fileNumber"]);const kt=new Set(["fileUrl","filePath"]);const _t=new Set([...kt,"webStream","nodeStream"]);const Pt=new Set(["webTransform","duplex"]);const Ft={generator:"a generator",asyncGenerator:"an async generator",fileUrl:"a file URL",filePath:"a file path string",fileNumber:"a file descriptor number",webStream:"a web stream",nodeStream:"a Node.js stream",webTransform:"a web TransformStream",duplex:"a Duplex stream",native:"any value",iterable:"an iterable",asyncIterable:"an async iterable",string:"a string",uint8Array:"a Uint8Array"};const getTransformObjectModes=(r,n,s,a)=>a==="output"?getOutputObjectModes(r,n,s):getInputObjectModes(r,n,s);const getOutputObjectModes=(r,n,s)=>{const a=n!==0&&s[n-1].value.readableObjectMode;const l=r??a;return{writableObjectMode:a,readableObjectMode:l}};const getInputObjectModes=(r,n,s)=>{const a=n===0?r===true:s[n-1].value.readableObjectMode;const l=n!==s.length-1&&(r??a);return{writableObjectMode:a,readableObjectMode:l}};const getFdObjectMode=(r,n)=>{const s=r.findLast((({type:r})=>Dt.has(r)));if(s===undefined){return false}return n==="input"?s.value.writableObjectMode:s.value.readableObjectMode};const normalizeTransforms=(r,n,s,a)=>[...r.filter((({type:r})=>!Dt.has(r))),...getTransforms(r,n,s,a)];const getTransforms=(r,n,s,{encoding:a})=>{const l=r.filter((({type:r})=>Dt.has(r)));const u=Array.from({length:l.length});for(const[r,d]of Object.entries(l)){u[r]=normalizeTransform({stdioItem:d,index:Number(r),newTransforms:u,optionName:n,direction:s,encoding:a})}return sortTransforms(u,s)};const normalizeTransform=({stdioItem:r,stdioItem:{type:n},index:s,newTransforms:a,optionName:l,direction:u,encoding:d})=>{if(n==="duplex"){return normalizeDuplex({stdioItem:r,optionName:l})}if(n==="webTransform"){return normalizeTransformStream({stdioItem:r,index:s,newTransforms:a,direction:u})}return normalizeGenerator({stdioItem:r,index:s,newTransforms:a,direction:u,encoding:d})};const normalizeDuplex=({stdioItem:r,stdioItem:{value:{transform:n,transform:{writableObjectMode:s,readableObjectMode:a},objectMode:l=a}},optionName:u})=>{if(l&&!a){throw new TypeError(`The \`${u}.objectMode\` option can only be \`true\` if \`new Duplex({objectMode: true})\` is used.`)}if(!l&&a){throw new TypeError(`The \`${u}.objectMode\` option cannot be \`false\` if \`new Duplex({objectMode: true})\` is used.`)}return{...r,value:{transform:n,writableObjectMode:s,readableObjectMode:a}}};const normalizeTransformStream=({stdioItem:r,stdioItem:{value:n},index:s,newTransforms:a,direction:l})=>{const{transform:u,objectMode:d}=isPlainObject(n)?n:{transform:n};const{writableObjectMode:A,readableObjectMode:p}=getTransformObjectModes(d,s,a,l);return{...r,value:{transform:u,writableObjectMode:A,readableObjectMode:p}}};const normalizeGenerator=({stdioItem:r,stdioItem:{value:n},index:s,newTransforms:a,direction:l,encoding:u})=>{const{transform:d,final:A,binary:p=false,preserveNewlines:f=false,objectMode:g}=isPlainObject(n)?n:{transform:n};const y=p||ft.has(u);const{writableObjectMode:b,readableObjectMode:C}=getTransformObjectModes(g,s,a,l);return{...r,value:{transform:d,final:A,binary:y,preserveNewlines:f,writableObjectMode:b,readableObjectMode:C}}};const sortTransforms=(r,n)=>n==="input"?r.reverse():r;const getStreamDirection=(r,n,s)=>{const a=r.map((r=>getStdioItemDirection(r,n)));if(a.includes("input")&&a.includes("output")){throw new TypeError(`The \`${s}\` option must not be an array of both readable and writable values.`)}return a.find(Boolean)??Mt};const getStdioItemDirection=({type:r,value:n},s)=>Lt[s]??Ot[r](n);const Lt=["input","output","output"];const anyDirection=()=>undefined;const alwaysInput=()=>"input";const Ot={generator:anyDirection,asyncGenerator:anyDirection,fileUrl:anyDirection,filePath:anyDirection,iterable:alwaysInput,asyncIterable:alwaysInput,uint8Array:alwaysInput,webStream:r=>type_isWritableStream(r)?"output":"input",nodeStream(r){if(!is_stream_isReadableStream(r,{checkOpen:false})){return"output"}return is_stream_isWritableStream(r,{checkOpen:false})?undefined:"input"},webTransform:anyDirection,duplex:anyDirection,native(r){const n=getStandardStreamDirection(r);if(n!==undefined){return n}if(is_stream_isStream(r,{checkOpen:false})){return Ot.nodeStream(r)}}};const getStandardStreamDirection=r=>{if([0,B.stdin].includes(r)){return"input"}if([1,2,B.stdout,B.stderr].includes(r)){return"output"}};const Mt="output";const normalizeIpcStdioArray=(r,n)=>n&&!r.includes("ipc")?[...r,"ipc"]:r;const normalizeStdioOption=({stdio:r,ipc:n,buffer:s,...a},l,u)=>{const d=getStdioArray(r,a).map(((r,n)=>stdio_option_addDefaultValue(r,n)));return u?normalizeStdioSync(d,s,l):normalizeIpcStdioArray(d,n)};const getStdioArray=(r,n)=>{if(r===undefined){return S.map((r=>n[r]))}if(hasAlias(n)){throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${S.map((r=>`\`${r}\``)).join(", ")}`)}if(typeof r==="string"){return[r,r,r]}if(!Array.isArray(r)){throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof r}\``)}const s=Math.max(r.length,S.length);return Array.from({length:s},((n,s)=>r[s]))};const hasAlias=r=>S.some((n=>r[n]!==undefined));const stdio_option_addDefaultValue=(r,n)=>{if(Array.isArray(r)){return r.map((r=>stdio_option_addDefaultValue(r,n)))}if(r===null||r===undefined){return n>=S.length?"ignore":"pipe"}return r};const normalizeStdioSync=(r,n,s)=>r.map(((r,a)=>!n[a]&&a!==0&&!isFullVerbose(s,a)&&isOutputPipeOnly(r)?"ignore":r));const isOutputPipeOnly=r=>r==="pipe"||Array.isArray(r)&&r.every((r=>r==="pipe"));const handleNativeStream=({stdioItem:r,stdioItem:{type:n},isStdioArray:s,fdNumber:a,direction:l,isSync:u})=>{if(!s||n!=="native"){return r}return u?handleNativeStreamSync({stdioItem:r,fdNumber:a,direction:l}):handleNativeStreamAsync({stdioItem:r,fdNumber:a})};const handleNativeStreamSync=({stdioItem:r,stdioItem:{value:n,optionName:s},fdNumber:a,direction:l})=>{const u=getTargetFd({value:n,optionName:s,fdNumber:a,direction:l});if(u!==undefined){return u}if(is_stream_isStream(n,{checkOpen:false})){throw new TypeError(`The \`${s}: Stream\` option cannot both be an array and include a stream with synchronous methods.`)}return r};const getTargetFd=({value:r,optionName:n,fdNumber:s,direction:l})=>{const u=getTargetFdNumber(r,s);if(u===undefined){return}if(l==="output"){return{type:"fileNumber",value:u,optionName:n}}if(q.isatty(u)){throw new TypeError(`The \`${n}: ${serializeOptionValue(r)}\` option is invalid: it cannot be a TTY with synchronous methods.`)}return{type:"uint8Array",value:bufferToUint8Array((0,a.readFileSync)(u)),optionName:n}};const getTargetFdNumber=(r,n)=>{if(r==="inherit"){return n}if(typeof r==="number"){return r}const s=I.indexOf(r);if(s!==-1){return s}};const handleNativeStreamAsync=({stdioItem:r,stdioItem:{value:n,optionName:s},fdNumber:a})=>{if(n==="inherit"){return{type:"nodeStream",value:getStandardStream(a,n,s),optionName:s}}if(typeof n==="number"){return{type:"nodeStream",value:getStandardStream(n,n,s),optionName:s}}if(is_stream_isStream(n,{checkOpen:false})){return{type:"nodeStream",value:n,optionName:s}}return r};const getStandardStream=(r,n,s)=>{const a=I[r];if(a===undefined){throw new TypeError(`The \`${s}: ${n}\` option is invalid: no such standard stream.`)}return a};const handleInputOptions=({input:r,inputFile:n},s)=>s===0?[...handleInputOption(r),...handleInputFileOption(n)]:[];const handleInputOption=r=>r===undefined?[]:[{type:getInputType(r),value:r,optionName:"input"}];const getInputType=r=>{if(is_stream_isReadableStream(r,{checkOpen:false})){return"nodeStream"}if(typeof r==="string"){return"string"}if(isUint8Array(r)){return"uint8Array"}throw new Error("The `input` option must be a string, a Uint8Array or a Node.js Readable stream.")};const handleInputFileOption=r=>r===undefined?[]:[{...getInputFileType(r),optionName:"inputFile"}];const getInputFileType=r=>{if(isUrl(r)){return{type:"fileUrl",value:r}}if(isFilePathString(r)){return{type:"filePath",value:{file:r}}}throw new Error("The `inputFile` option must be a file path string or a file URL.")};const filterDuplicates=r=>r.filter(((n,s)=>r.every(((r,a)=>n.value!==r.value||s>=a||n.type==="generator"||n.type==="asyncGenerator"))));const getDuplicateStream=({stdioItem:{type:r,value:n,optionName:s},direction:a,fileDescriptors:l,isSync:u})=>{const d=getOtherStdioItems(l,r);if(d.length===0){return}if(u){validateDuplicateStreamSync({otherStdioItems:d,type:r,value:n,optionName:s,direction:a});return}if(_t.has(r)){return getDuplicateStreamInstance({otherStdioItems:d,type:r,value:n,optionName:s,direction:a})}if(Pt.has(r)){validateDuplicateTransform({otherStdioItems:d,type:r,value:n,optionName:s})}};const getOtherStdioItems=(r,n)=>r.flatMap((({direction:r,stdioItems:s})=>s.filter((r=>r.type===n)).map((n=>({...n,direction:r})))));const validateDuplicateStreamSync=({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})=>{if(kt.has(n)){getDuplicateStreamInstance({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})}};const getDuplicateStreamInstance=({otherStdioItems:r,type:n,value:s,optionName:a,direction:l})=>{const u=r.filter((r=>hasSameValue(r,s)));if(u.length===0){return}const d=u.find((r=>r.direction!==l));throwOnDuplicateStream(d,a,n);return l==="output"?u[0].stream:undefined};const hasSameValue=({type:r,value:n},s)=>{if(r==="filePath"){return n.file===s.file}if(r==="fileUrl"){return n.href===s.href}return n===s};const validateDuplicateTransform=({otherStdioItems:r,type:n,value:s,optionName:a})=>{const l=r.find((({value:{transform:r}})=>r===s.transform));throwOnDuplicateStream(l,a,n)};const throwOnDuplicateStream=(r,n,s)=>{if(r!==undefined){throw new TypeError(`The \`${r.optionName}\` and \`${n}\` options must not target ${Ft[s]} that is the same.`)}};const handleStdio=(r,n,s,a)=>{const l=normalizeStdioOption(n,s,a);const u=l.map(((r,s)=>getFileDescriptor({stdioOption:r,fdNumber:s,options:n,isSync:a})));const d=getFinalFileDescriptors({initialFileDescriptors:u,addProperties:r,options:n,isSync:a});n.stdio=d.map((({stdioItems:r})=>forwardStdio(r)));return d};const getFileDescriptor=({stdioOption:r,fdNumber:n,options:s,isSync:a})=>{const l=getStreamName(n);const{stdioItems:u,isStdioArray:d}=initializeStdioItems({stdioOption:r,fdNumber:n,options:s,optionName:l});const A=getStreamDirection(u,n,l);const p=u.map((r=>handleNativeStream({stdioItem:r,isStdioArray:d,fdNumber:n,direction:A,isSync:a})));const f=normalizeTransforms(p,l,A,s);const g=getFdObjectMode(f,A);validateFileObjectMode(f,g);return{direction:A,objectMode:g,stdioItems:f}};const initializeStdioItems=({stdioOption:r,fdNumber:n,options:s,optionName:a})=>{const l=Array.isArray(r)?r:[r];const u=[...l.map((r=>initializeStdioItem(r,a))),...handleInputOptions(s,n)];const d=filterDuplicates(u);const A=d.length>1;validateStdioArray(d,A,a);validateStreams(d);return{stdioItems:d,isStdioArray:A}};const initializeStdioItem=(r,n)=>({type:getStdioItemType(r,n),value:r,optionName:n});const validateStdioArray=(r,n,s)=>{if(r.length===0){throw new TypeError(`The \`${s}\` option must not be an empty array.`)}if(!n){return}for(const{value:n,optionName:s}of r){if(Ut.has(n)){throw new Error(`The \`${s}\` option must not include \`${n}\`.`)}}};const Ut=new Set(["ignore","ipc"]);const validateStreams=r=>{for(const n of r){validateFileStdio(n)}};const validateFileStdio=({type:r,value:n,optionName:s})=>{if(isRegularUrl(n)){throw new TypeError(`The \`${s}: URL\` option must use the \`file:\` scheme.\nFor example, you can use the \`pathToFileURL()\` method of the \`url\` core module.`)}if(isUnknownStdioString(r,n)){throw new TypeError(`The \`${s}: { file: '...' }\` option must be used instead of \`${s}: '...'\`.`)}};const validateFileObjectMode=(r,n)=>{if(!n){return}const s=r.find((({type:r})=>Tt.has(r)));if(s!==undefined){throw new TypeError(`The \`${s.optionName}\` option cannot use both files and transforms in objectMode.`)}};const getFinalFileDescriptors=({initialFileDescriptors:r,addProperties:n,options:s,isSync:a})=>{const l=[];try{for(const u of r){l.push(getFinalFileDescriptor({fileDescriptor:u,fileDescriptors:l,addProperties:n,options:s,isSync:a}))}return l}catch(r){cleanupCustomStreams(l);throw r}};const getFinalFileDescriptor=({fileDescriptor:{direction:r,objectMode:n,stdioItems:s},fileDescriptors:a,addProperties:l,options:u,isSync:d})=>{const A=s.map((n=>addStreamProperties({stdioItem:n,addProperties:l,direction:r,options:u,fileDescriptors:a,isSync:d})));return{direction:r,objectMode:n,stdioItems:A}};const addStreamProperties=({stdioItem:r,addProperties:n,direction:s,options:a,fileDescriptors:l,isSync:u})=>{const d=getDuplicateStream({stdioItem:r,direction:s,fileDescriptors:l,isSync:u});if(d!==undefined){return{...r,stream:d}}return{...r,...n[s][r.type](r,a)}};const cleanupCustomStreams=r=>{for(const{stdioItems:n}of r){for(const{stream:r}of n){if(r!==undefined&&!isStandardStream(r)){r.destroy()}}}};const forwardStdio=r=>{if(r.length>1){return r.some((({value:r})=>r==="overlapped"))?"overlapped":"pipe"}const[{type:n,value:s}]=r;return n==="native"?s:"pipe"};const handleStdioSync=(r,n)=>handleStdio(Gt,r,n,true);const forbiddenIfSync=({type:r,optionName:n})=>{throwInvalidSyncValue(n,Ft[r])};const forbiddenNativeIfSync=({optionName:r,value:n})=>{if(n==="ipc"||n==="overlapped"){throwInvalidSyncValue(r,`"${n}"`)}return{}};const throwInvalidSyncValue=(r,n)=>{throw new TypeError(`The \`${r}\` option cannot be ${n} with synchronous methods.`)};const Ht={generator(){},asyncGenerator:forbiddenIfSync,webStream:forbiddenIfSync,nodeStream:forbiddenIfSync,webTransform:forbiddenIfSync,duplex:forbiddenIfSync,asyncIterable:forbiddenIfSync,native:forbiddenNativeIfSync};const Gt={input:{...Ht,fileUrl:({value:r})=>({contents:[bufferToUint8Array((0,a.readFileSync)(r))]}),filePath:({value:{file:r}})=>({contents:[bufferToUint8Array((0,a.readFileSync)(r))]}),fileNumber:forbiddenIfSync,iterable:({value:r})=>({contents:[...r]}),string:({value:r})=>({contents:[r]}),uint8Array:({value:r})=>({contents:[r]})},output:{...Ht,fileUrl:({value:r})=>({path:r}),filePath:({value:{file:r,append:n}})=>({path:r,append:n}),fileNumber:({value:r})=>({path:r}),iterable:forbiddenIfSync,string:forbiddenIfSync,uint8Array:forbiddenIfSync}};const stripNewline=(r,{stripFinalNewline:n},s)=>getStripFinalNewline(n,s)&&r!==undefined&&!Array.isArray(r)?strip_final_newline_stripFinalNewline(r):r;const getStripFinalNewline=(r,n)=>n==="all"?r[1]||r[2]:r[n];var zt=s(57075);const getSplitLinesGenerator=(r,n,s,a)=>r||s?undefined:initializeSplitLines(n,a);const splitLinesSync=(r,n,s)=>s?r.flatMap((r=>splitLinesItemSync(r,n))):splitLinesItemSync(r,n);const splitLinesItemSync=(r,n)=>{const{transform:s,final:a}=initializeSplitLines(n,{});return[...s(r),...a()]};const initializeSplitLines=(r,n)=>{n.previousChunks="";return{transform:splitGenerator.bind(undefined,n,r),final:linesFinal.bind(undefined,n)}};const splitGenerator=function*(r,n,s){if(typeof s!=="string"){yield s;return}let{previousChunks:a}=r;let l=-1;for(let u=0;u0){A=concatString(a,A);a=""}yield A;l=u}}if(l!==s.length-1){a=concatString(a,s.slice(l+1))}r.previousChunks=a};const getNewlineLength=(r,n,s,a)=>{if(s){return 0}a.isWindowsNewline=n!==0&&r[n-1]==="\r";return a.isWindowsNewline?2:1};const linesFinal=function*({previousChunks:r}){if(r.length>0){yield r}};const getAppendNewlineGenerator=({binary:r,preserveNewlines:n,readableObjectMode:s,state:a})=>r||n||s?undefined:{transform:appendNewlineGenerator.bind(undefined,a)};const appendNewlineGenerator=function*({isWindowsNewline:r=false},n){const{unixNewline:s,windowsNewline:a,LF:l,concatBytes:u}=typeof n==="string"?qt:Vt;if(n.at(-1)===l){yield n;return}const d=r?a:s;yield u(n,d)};const concatString=(r,n)=>`${r}${n}`;const qt={windowsNewline:"\r\n",unixNewline:"\n",LF:"\n",concatBytes:concatString};const concatUint8Array=(r,n)=>{const s=new Uint8Array(r.length+n.length);s.set(r,0);s.set(n,r.length);return s};const Vt={windowsNewline:new Uint8Array([13,10]),unixNewline:new Uint8Array([10]),LF:10,concatBytes:concatUint8Array};var jt=s(4573);const getValidateTransformInput=(r,n)=>r?undefined:validateStringTransformInput.bind(undefined,n);const validateStringTransformInput=function*(r,n){if(typeof n!=="string"&&!isUint8Array(n)&&!jt.Buffer.isBuffer(n)){throw new TypeError(`The \`${r}\` option's transform must use "objectMode: true" to receive as input: ${typeof n}.`)}yield n};const getValidateTransformReturn=(r,n)=>r?validateObjectTransformReturn.bind(undefined,n):validateStringTransformReturn.bind(undefined,n);const validateObjectTransformReturn=function*(r,n){validateEmptyReturn(r,n);yield n};const validateStringTransformReturn=function*(r,n){validateEmptyReturn(r,n);if(typeof n!=="string"&&!isUint8Array(n)){throw new TypeError(`The \`${r}\` option's function must yield a string or an Uint8Array, not ${typeof n}.`)}yield n};const validateEmptyReturn=(r,n)=>{if(n===null||n===undefined){throw new TypeError(`The \`${r}\` option's function must not call \`yield ${n}\`.\nInstead, \`yield\` should either be called with a value, or not be called at all. For example:\n if (condition) { yield value; }`)}};const getEncodingTransformGenerator=(r,n,s)=>{if(s){return}if(r){return{transform:encodingUint8ArrayGenerator.bind(undefined,new TextEncoder)}}const a=new p.StringDecoder(n);return{transform:encodingStringGenerator.bind(undefined,a),final:encodingStringFinal.bind(undefined,a)}};const encodingUint8ArrayGenerator=function*(r,n){if(jt.Buffer.isBuffer(n)){yield bufferToUint8Array(n)}else if(typeof n==="string"){yield r.encode(n)}else{yield n}};const encodingStringGenerator=function*(r,n){yield isUint8Array(n)?r.write(n):n};const encodingStringFinal=function*(r){const n=r.end();if(n!==""){yield n}};const Wt=(0,w.callbackify)((async(r,n,s,a)=>{n.currentIterable=r(...s);try{for await(const r of n.currentIterable){a.push(r)}}finally{delete n.currentIterable}}));const transformChunk=async function*(r,n,s){if(s===n.length){yield r;return}const{transform:a=identityGenerator}=n[s];for await(const l of a(r)){yield*transformChunk(l,n,s+1)}};const finalChunks=async function*(r){for(const[n,{final:s}]of Object.entries(r)){yield*generatorFinalChunks(s,Number(n),r)}};const generatorFinalChunks=async function*(r,n,s){if(r===undefined){return}for await(const a of r()){yield*transformChunk(a,s,n+1)}};const Yt=(0,w.callbackify)((async({currentIterable:r},n)=>{if(r!==undefined){await(n?r.throw(n):r.return());return}if(n){throw n}}));const identityGenerator=function*(r){yield r};const pushChunksSync=(r,n,s,a)=>{try{for(const a of r(...n)){s.push(a)}a()}catch(r){a(r)}};const runTransformSync=(r,n)=>[...n.flatMap((n=>[...transformChunkSync(n,r,0)])),...finalChunksSync(r)];const transformChunkSync=function*(r,n,s){if(s===n.length){yield r;return}const{transform:a=run_sync_identityGenerator}=n[s];for(const l of a(r)){yield*transformChunkSync(l,n,s+1)}};const finalChunksSync=function*(r){for(const[n,{final:s}]of Object.entries(r)){yield*generatorFinalChunksSync(s,Number(n),r)}};const generatorFinalChunksSync=function*(r,n,s){if(r===undefined){return}for(const a of r()){yield*transformChunkSync(a,s,n+1)}};const run_sync_identityGenerator=function*(r){yield r};const generatorToStream=({value:r,value:{transform:n,final:s,writableObjectMode:a,readableObjectMode:l},optionName:u},{encoding:d})=>{const A={};const p=addInternalGenerators(r,d,u);const f=isAsyncGenerator(n);const g=isAsyncGenerator(s);const y=f?Wt.bind(undefined,transformChunk,A):pushChunksSync.bind(undefined,transformChunkSync);const b=f||g?Wt.bind(undefined,finalChunks,A):pushChunksSync.bind(undefined,finalChunksSync);const C=f||g?Yt.bind(undefined,A):undefined;const w=new zt.Transform({writableObjectMode:a,writableHighWaterMark:(0,zt.getDefaultHighWaterMark)(a),readableObjectMode:l,readableHighWaterMark:(0,zt.getDefaultHighWaterMark)(l),transform(r,n,s){y([r,p,0],this,s)},flush(r){b([p],this,r)},destroy:C});return{stream:w}};const runGeneratorsSync=(r,n,s,a)=>{const l=n.filter((({type:r})=>r==="generator"));const u=a?l.reverse():l;for(const{value:n,optionName:a}of u){const l=addInternalGenerators(n,s,a);r=runTransformSync(l,r)}return r};const addInternalGenerators=({transform:r,final:n,binary:s,writableObjectMode:a,readableObjectMode:l,preserveNewlines:u},d,A)=>{const p={};return[{transform:getValidateTransformInput(a,A)},getEncodingTransformGenerator(s,d,a),getSplitLinesGenerator(s,u,a,p),{transform:r,final:n},{transform:getValidateTransformReturn(l,A)},getAppendNewlineGenerator({binary:s,preserveNewlines:u,readableObjectMode:l,state:p})].filter(Boolean)};const addInputOptionsSync=(r,n)=>{for(const s of getInputFdNumbers(r)){addInputOptionSync(r,s,n)}};const getInputFdNumbers=r=>new Set(Object.entries(r).filter((([,{direction:r}])=>r==="input")).map((([r])=>Number(r))));const addInputOptionSync=(r,n,s)=>{const{stdioItems:a}=r[n];const l=a.filter((({contents:r})=>r!==undefined));if(l.length===0){return}if(n!==0){const[{type:r,optionName:n}]=l;throw new TypeError(`Only the \`stdin\` option, not \`${n}\`, can be ${Ft[r]} with synchronous methods.`)}const u=l.map((({contents:r})=>r));const d=u.map((r=>applySingleInputGeneratorsSync(r,a)));s.input=joinToUint8Array(d)};const applySingleInputGeneratorsSync=(r,n)=>{const s=runGeneratorsSync(r,n,"utf8",true);validateSerializable(s);return joinToUint8Array(s)};const validateSerializable=r=>{const n=r.find((r=>typeof r!=="string"&&!isUint8Array(r)));if(n!==undefined){throw new TypeError(`The \`stdin\` option is invalid: when passing objects as input, a transform must be used to serialize them to strings or Uint8Arrays: ${n}.`)}};const shouldLogOutput=({stdioItems:r,encoding:n,verboseInfo:s,fdNumber:a})=>a!=="all"&&isFullVerbose(s,a)&&!ft.has(n)&&fdUsesVerbose(a)&&(r.some((({type:r,value:n})=>r==="native"&&Jt.has(n)))||r.every((({type:r})=>Dt.has(r))));const fdUsesVerbose=r=>r===1||r===2;const Jt=new Set(["pipe","overlapped"]);const logLines=async(r,n,s,a)=>{for await(const l of r){if(!isPipingStream(n)){logLine(l,s,a)}}};const logLinesSync=(r,n,s)=>{for(const a of r){logLine(a,n,s)}};const isPipingStream=r=>r._readableState.pipes.length>0;const logLine=(r,n,s)=>{const a=serializeVerboseMessage(r);verboseLog({type:"output",verboseMessage:a,fdNumber:n,verboseInfo:s})};const transformOutputSync=({fileDescriptors:r,syncResult:{output:n},options:s,isMaxBuffer:a,verboseInfo:l})=>{if(n===null){return{output:Array.from({length:3})}}const u={};const d=new Set([]);const A=n.map(((n,A)=>transformOutputResultSync({result:n,fileDescriptors:r,fdNumber:A,state:u,outputFiles:d,isMaxBuffer:a,verboseInfo:l},s)));return{output:A,...u}};const transformOutputResultSync=({result:r,fileDescriptors:n,fdNumber:s,state:a,outputFiles:l,isMaxBuffer:u,verboseInfo:d},{buffer:A,encoding:p,lines:f,stripFinalNewline:g,maxBuffer:y})=>{if(r===null){return}const b=truncateMaxBufferSync(r,u,y);const C=bufferToUint8Array(b);const{stdioItems:w,objectMode:B}=n[s];const I=runOutputGeneratorsSync([C],w,p,a);const{serializedResult:S,finalResult:Q=S}=serializeChunks({chunks:I,objectMode:B,encoding:p,lines:f,stripFinalNewline:g,fdNumber:s});logOutputSync({serializedResult:S,fdNumber:s,state:a,verboseInfo:d,encoding:p,stdioItems:w,objectMode:B});const v=A[s]?Q:undefined;try{if(a.error===undefined){writeToFiles(S,w,l)}return v}catch(r){a.error=r;return v}};const runOutputGeneratorsSync=(r,n,s,a)=>{try{return runGeneratorsSync(r,n,s,false)}catch(n){a.error=n;return r}};const serializeChunks=({chunks:r,objectMode:n,encoding:s,lines:a,stripFinalNewline:l,fdNumber:u})=>{if(n){return{serializedResult:r}}if(s==="buffer"){return{serializedResult:joinToUint8Array(r)}}const d=joinToString(r,s);if(a[u]){return{serializedResult:d,finalResult:splitLinesSync(d,!l[u],n)}}return{serializedResult:d}};const logOutputSync=({serializedResult:r,fdNumber:n,state:s,verboseInfo:a,encoding:l,stdioItems:u,objectMode:d})=>{if(!shouldLogOutput({stdioItems:u,encoding:l,verboseInfo:a,fdNumber:n})){return}const A=splitLinesSync(r,false,d);try{logLinesSync(A,n,a)}catch(r){s.error??=r}};const writeToFiles=(r,n,s)=>{for(const{path:l,append:u}of n.filter((({type:r})=>Tt.has(r)))){const n=typeof l==="string"?l:l.toString();if(u||s.has(n)){(0,a.appendFileSync)(l,r)}else{s.add(n);(0,a.writeFileSync)(l,r)}}};const getAllSync=([,r,n],s)=>{if(!s.all){return}if(r===undefined){return n}if(n===undefined){return r}if(Array.isArray(r)){return Array.isArray(n)?[...r,...n]:[...r,stripNewline(n,s,"all")]}if(Array.isArray(n)){return[stripNewline(r,s,"all"),...n]}if(isUint8Array(r)&&isUint8Array(n)){return concatUint8Arrays([r,n])}return`${r}${n}`};const waitForExit=async(r,n)=>{const[s,a]=await waitForExitOrError(r);n.isForcefullyTerminated??=false;return[s,a]};const waitForExitOrError=async r=>{const[n,s]=await Promise.allSettled([(0,$e.once)(r,"spawn"),(0,$e.once)(r,"exit")]);if(n.status==="rejected"){return[]}return s.status==="rejected"?waitForSubprocessExit(r):s.value};const waitForSubprocessExit=async r=>{try{return await(0,$e.once)(r,"exit")}catch{return waitForSubprocessExit(r)}};const waitForSuccessfulExit=async r=>{const[n,s]=await r;if(!isSubprocessErrorExit(n,s)&&isFailedExit(n,s)){throw new DiscardedError}return[n,s]};const isSubprocessErrorExit=(r,n)=>r===undefined&&n===undefined;const isFailedExit=(r,n)=>r!==0||n!==null;const getExitResultSync=({error:r,status:n,signal:s,output:a},{maxBuffer:l})=>{const u=getResultError(r,n,s);const d=u?.code==="ETIMEDOUT";const A=isMaxBufferSync(u,a,l);return{resultError:u,exitCode:n,signal:s,timedOut:d,isMaxBuffer:A}};const getResultError=(r,n,s)=>{if(r!==undefined){return r}return isFailedExit(n,s)?new DiscardedError:undefined};const execaCoreSync=(r,n,s)=>{const{file:a,commandArguments:l,command:u,escapedCommand:d,startTime:A,verboseInfo:p,options:f,fileDescriptors:g}=handleSyncArguments(r,n,s);const y=spawnSubprocessSync({file:a,commandArguments:l,options:f,command:u,escapedCommand:d,verboseInfo:p,fileDescriptors:g,startTime:A});return handleResult(y,p,f)};const handleSyncArguments=(r,n,s)=>{const{command:a,escapedCommand:l,startTime:u,verboseInfo:d}=handleCommand(r,n,s);const A=normalizeSyncOptions(s);const{file:p,commandArguments:f,options:g}=normalizeOptions(r,n,A);validateSyncOptions(g);const y=handleStdioSync(g,d);return{file:p,commandArguments:f,command:a,escapedCommand:l,startTime:u,verboseInfo:d,options:g,fileDescriptors:y}};const normalizeSyncOptions=r=>r.node&&!r.ipc?{...r,ipc:false}:r;const validateSyncOptions=({ipc:r,ipcInput:n,detached:s,cancelSignal:a})=>{if(n){throwInvalidSyncOption("ipcInput")}if(r){throwInvalidSyncOption("ipc: true")}if(s){throwInvalidSyncOption("detached: true")}if(a){throwInvalidSyncOption("cancelSignal")}};const throwInvalidSyncOption=r=>{throw new TypeError(`The "${r}" option cannot be used with synchronous methods.`)};const spawnSubprocessSync=({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,verboseInfo:u,fileDescriptors:d,startTime:A})=>{const p=runSubprocessSync({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,fileDescriptors:d,startTime:A});if(p.failed){return p}const{resultError:f,exitCode:g,signal:y,timedOut:b,isMaxBuffer:C}=getExitResultSync(p,s);const{output:w,error:B=f}=transformOutputSync({fileDescriptors:d,syncResult:p,options:s,isMaxBuffer:C,verboseInfo:u});const I=w.map(((r,n)=>stripNewline(r,s,n)));const S=stripNewline(getAllSync(w,s),s,"all");return getSyncResult({error:B,exitCode:g,signal:y,timedOut:b,isMaxBuffer:C,stdio:I,all:S,options:s,command:a,escapedCommand:l,startTime:A})};const runSubprocessSync=({file:r,commandArguments:n,options:s,command:a,escapedCommand:l,fileDescriptors:u,startTime:d})=>{try{addInputOptionsSync(u,s);const a=normalizeSpawnSyncOptions(s);return(0,A.spawnSync)(...concatenateShell(r,n,a))}catch(r){return makeEarlyError({error:r,command:a,escapedCommand:l,fileDescriptors:u,options:s,startTime:d,isSync:true})}};const normalizeSpawnSyncOptions=({encoding:r,maxBuffer:n,...s})=>({...s,encoding:"buffer",maxBuffer:getMaxBufferSync(n)});const getSyncResult=({error:r,exitCode:n,signal:s,timedOut:a,isMaxBuffer:l,stdio:u,all:d,options:A,command:p,escapedCommand:f,startTime:g})=>r===undefined?makeSuccessResult({command:p,escapedCommand:f,stdio:u,all:d,ipcOutput:[],options:A,startTime:g}):makeError({error:r,command:p,escapedCommand:f,timedOut:a,isCanceled:false,isGracefullyCanceled:false,isMaxBuffer:l,isForcefullyTerminated:false,exitCode:n,signal:s,stdio:u,all:d,ipcOutput:[],options:A,startTime:g,isSync:true});const getOneMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},{reference:l=true,filter:u}={})=>{validateIpcMethod({methodName:"getOneMessage",isSubprocess:s,ipc:a,isConnected:isConnected(r)});return getOneMessageAsync({anyProcess:r,channel:n,isSubprocess:s,filter:u,reference:l})};const getOneMessageAsync=async({anyProcess:r,channel:n,isSubprocess:s,filter:a,reference:l})=>{addReference(n,l);const u=getIpcEmitter(r,n,s);const d=new AbortController;try{return await Promise.race([getMessage(u,a,d),get_one_throwOnDisconnect(u,s,d),throwOnStrictError(u,s,d)])}catch(n){disconnect(r);throw n}finally{d.abort();removeReference(n,l)}};const getMessage=async(r,n,{signal:s})=>{if(n===undefined){const[n]=await(0,$e.once)(r,"message",{signal:s});return n}for await(const[a]of(0,$e.on)(r,"message",{signal:s})){if(n(a)){return a}}};const get_one_throwOnDisconnect=async(r,n,{signal:s})=>{await(0,$e.once)(r,"disconnect",{signal:s});throwOnEarlyDisconnect(n)};const throwOnStrictError=async(r,n,{signal:s})=>{const[a]=await(0,$e.once)(r,"strict:error",{signal:s});throw getStrictResponseError(a,n)};const getEachMessage=({anyProcess:r,channel:n,isSubprocess:s,ipc:a},{reference:l=true}={})=>loopOnMessages({anyProcess:r,channel:n,isSubprocess:s,ipc:a,shouldAwait:!s,reference:l});const loopOnMessages=({anyProcess:r,channel:n,isSubprocess:s,ipc:a,shouldAwait:l,reference:u})=>{validateIpcMethod({methodName:"getEachMessage",isSubprocess:s,ipc:a,isConnected:isConnected(r)});addReference(n,u);const d=getIpcEmitter(r,n,s);const A=new AbortController;const p={};stopOnDisconnect(r,d,A);abortOnStrictError({ipcEmitter:d,isSubprocess:s,controller:A,state:p});return iterateOnMessages({anyProcess:r,channel:n,ipcEmitter:d,isSubprocess:s,shouldAwait:l,controller:A,state:p,reference:u})};const stopOnDisconnect=async(r,n,s)=>{try{await(0,$e.once)(n,"disconnect",{signal:s.signal});s.abort()}catch{}};const abortOnStrictError=async({ipcEmitter:r,isSubprocess:n,controller:s,state:a})=>{try{const[l]=await(0,$e.once)(r,"strict:error",{signal:s.signal});a.error=getStrictResponseError(l,n);s.abort()}catch{}};const iterateOnMessages=async function*({anyProcess:r,channel:n,ipcEmitter:s,isSubprocess:a,shouldAwait:l,controller:u,state:d,reference:A}){try{for await(const[r]of(0,$e.on)(s,"message",{signal:u.signal})){throwIfStrictError(d);yield r}}catch{throwIfStrictError(d)}finally{u.abort();removeReference(n,A);if(!a){disconnect(r)}if(l){await r}}};const throwIfStrictError=({error:r})=>{if(r){throw r}};const addIpcMethods=(r,{ipc:n})=>{Object.assign(r,getIpcMethods(r,false,n))};const getIpcExport=()=>{const r=B;const n=true;const s=B.channel!==undefined;return{...getIpcMethods(r,n,s),getCancelSignal:getCancelSignal.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s})}};const getIpcMethods=(r,n,s)=>({sendMessage:sendMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s}),getOneMessage:getOneMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s}),getEachMessage:getEachMessage.bind(undefined,{anyProcess:r,channel:r.channel,isSubprocess:n,ipc:s})});const handleEarlyError=({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,verboseInfo:d})=>{cleanupCustomStreams(a);const p=new A.ChildProcess;createDummyStreams(p,a);Object.assign(p,{readable:readable,writable:writable,duplex:duplex});const f=makeEarlyError({error:r,command:n,escapedCommand:s,fileDescriptors:a,options:l,startTime:u,isSync:false});const g=handleDummyPromise(f,d,l);return{subprocess:p,promise:g}};const createDummyStreams=(r,n)=>{const s=createDummyStream();const a=createDummyStream();const l=createDummyStream();const u=Array.from({length:n.length-3},createDummyStream);const d=createDummyStream();const A=[s,a,l,...u];Object.assign(r,{stdin:s,stdout:a,stderr:l,all:d,stdio:A})};const createDummyStream=()=>{const r=new zt.PassThrough;r.end();return r};const readable=()=>new zt.Readable({read(){}});const writable=()=>new zt.Writable({write(){}});const duplex=()=>new zt.Duplex({read(){},write(){}});const handleDummyPromise=async(r,n,s)=>handleResult(r,n,s);const handleStdioAsync=(r,n)=>handleStdio(Kt,r,n,false);const forbiddenIfAsync=({type:r,optionName:n})=>{throw new TypeError(`The \`${n}\` option cannot be ${Ft[r]}.`)};const $t={fileNumber:forbiddenIfAsync,generator:generatorToStream,asyncGenerator:generatorToStream,nodeStream:({value:r})=>({stream:r}),webTransform({value:{transform:r,writableObjectMode:n,readableObjectMode:s}}){const a=n||s;const l=zt.Duplex.fromWeb(r,{objectMode:a});return{stream:l}},duplex:({value:{transform:r}})=>({stream:r}),native(){}};const Kt={input:{...$t,fileUrl:({value:r})=>({stream:(0,a.createReadStream)(r)}),filePath:({value:{file:r}})=>({stream:(0,a.createReadStream)(r)}),webStream:({value:r})=>({stream:zt.Readable.fromWeb(r)}),iterable:({value:r})=>({stream:zt.Readable.from(r)}),asyncIterable:({value:r})=>({stream:zt.Readable.from(r)}),string:({value:r})=>({stream:zt.Readable.from(r)}),uint8Array:({value:r})=>({stream:zt.Readable.from(jt.Buffer.from(r))})},output:{...$t,fileUrl:({value:r})=>({stream:(0,a.createWriteStream)(r)}),filePath:({value:{file:r,append:n}})=>({stream:(0,a.createWriteStream)(r,n?{flags:"a"}:{})}),webStream:({value:r})=>({stream:zt.Writable.fromWeb(r)}),iterable:forbiddenIfAsync,asyncIterable:forbiddenIfAsync,string:forbiddenIfAsync,uint8Array:forbiddenIfAsync}};var Xt=s(25145);var Zt=s(46466);const pipeStreams=(r,n)=>{r.pipe(n);onSourceFinish(r,n);onDestinationFinish(r,n)};const onSourceFinish=async(r,n)=>{if(isStandardStream(r)||isStandardStream(n)){return}try{await(0,Zt.finished)(r,{cleanup:true,readable:true,writable:false})}catch{}endDestinationStream(n)};const endDestinationStream=r=>{if(r.writable){r.end()}};const onDestinationFinish=async(r,n)=>{if(isStandardStream(r)||isStandardStream(n)){return}try{await(0,Zt.finished)(n,{cleanup:true,readable:false,writable:true})}catch{}abortSourceStream(r)};const abortSourceStream=r=>{if(r.readable){r.destroy()}};const pipeOutputAsync=(r,n,s)=>{const a=new Map;for(const[l,{stdioItems:u,direction:d}]of Object.entries(n)){for(const{stream:n}of u.filter((({type:r})=>Dt.has(r)))){pipeTransform(r,n,d,l)}for(const{stream:n}of u.filter((({type:r})=>!Dt.has(r)))){pipeStdioItem({subprocess:r,stream:n,direction:d,fdNumber:l,pipeGroups:a,controller:s})}}for(const[r,n]of a.entries()){const s=n.length===1?n[0]:(0,Xt.A)(n);pipeStreams(s,r)}};const pipeTransform=(r,n,s,a)=>{if(s==="output"){pipeStreams(r.stdio[a],n)}else{pipeStreams(n,r.stdio[a])}const l=er[a];if(l!==undefined){r[l]=n}r.stdio[a]=n};const er=["stdin","stdout","stderr"];const pipeStdioItem=({subprocess:r,stream:n,direction:s,fdNumber:a,pipeGroups:l,controller:u})=>{if(n===undefined){return}setStandardStreamMaxListeners(n,u);const[d,A]=s==="output"?[n,r.stdio[a]]:[r.stdio[a],n];const p=l.get(d)??[];l.set(d,[...p,A])};const setStandardStreamMaxListeners=(r,{signal:n})=>{if(isStandardStream(r)){incrementMaxListeners(r,tr,n)}};const tr=2;const rr=[];rr.push("SIGHUP","SIGINT","SIGTERM");if(process.platform!=="win32"){rr.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT")}if(process.platform==="linux"){rr.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")}const processOk=r=>!!r&&typeof r==="object"&&typeof r.removeListener==="function"&&typeof r.emit==="function"&&typeof r.reallyExit==="function"&&typeof r.listeners==="function"&&typeof r.kill==="function"&&typeof r.pid==="number"&&typeof r.on==="function";const nr=Symbol.for("signal-exit emitter");const sr=globalThis;const ir=Object.defineProperty.bind(Object);class Emitter{emitted={afterExit:false,exit:false};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(sr[nr]){return sr[nr]}ir(sr,nr,{value:this,writable:false,enumerable:false,configurable:false})}on(r,n){this.listeners[r].push(n)}removeListener(r,n){const s=this.listeners[r];const a=s.indexOf(n);if(a===-1){return}if(a===0&&s.length===1){s.length=0}else{s.splice(a,1)}}emit(r,n,s){if(this.emitted[r]){return false}this.emitted[r]=true;let a=false;for(const l of this.listeners[r]){a=l(n,s)===true||a}if(r==="exit"){a=this.emit("afterExit",n,s)||a}return a}}class SignalExitBase{}const signalExitWrap=r=>({onExit(n,s){return r.onExit(n,s)},load(){return r.load()},unload(){return r.unload()}});class SignalExitFallback extends SignalExitBase{onExit(){return()=>{}}load(){}unload(){}}class SignalExit extends SignalExitBase{#ye=or.platform==="win32"?"SIGINT":"SIGHUP";#Ee=new Emitter;#be;#Ce;#we;#Be={};#Ie=false;constructor(r){super();this.#be=r;this.#Be={};for(const n of rr){this.#Be[n]=()=>{const s=this.#be.listeners(n);let{count:a}=this.#Ee;const l=r;if(typeof l.__signal_exit_emitter__==="object"&&typeof l.__signal_exit_emitter__.count==="number"){a+=l.__signal_exit_emitter__.count}if(s.length===a){this.unload();const s=this.#Ee.emit("exit",null,n);const a=n==="SIGHUP"?this.#ye:n;if(!s)r.kill(r.pid,a)}}}this.#we=r.reallyExit;this.#Ce=r.emit}onExit(r,n){if(!processOk(this.#be)){return()=>{}}if(this.#Ie===false){this.load()}const s=n?.alwaysLast?"afterExit":"exit";this.#Ee.on(s,r);return()=>{this.#Ee.removeListener(s,r);if(this.#Ee.listeners["exit"].length===0&&this.#Ee.listeners["afterExit"].length===0){this.unload()}}}load(){if(this.#Ie){return}this.#Ie=true;this.#Ee.count+=1;for(const r of rr){try{const n=this.#Be[r];if(n)this.#be.on(r,n)}catch(r){}}this.#be.emit=(r,...n)=>this.#Se(r,...n);this.#be.reallyExit=r=>this.#Qe(r)}unload(){if(!this.#Ie){return}this.#Ie=false;rr.forEach((r=>{const n=this.#Be[r];if(!n){throw new Error("Listener not defined for signal: "+r)}try{this.#be.removeListener(r,n)}catch(r){}}));this.#be.emit=this.#Ce;this.#be.reallyExit=this.#we;this.#Ee.count-=1}#Qe(r){if(!processOk(this.#be)){return 0}this.#be.exitCode=r||0;this.#Ee.emit("exit",this.#be.exitCode,null);return this.#we.call(this.#be,this.#be.exitCode)}#Se(r,...n){const s=this.#Ce;if(r==="exit"&&processOk(this.#be)){if(typeof n[0]==="number"){this.#be.exitCode=n[0]}const a=s.call(this.#be,r,...n);this.#Ee.emit("exit",this.#be.exitCode,null);return a}else{return s.call(this.#be,r,...n)}}}const or=globalThis.process;const{onExit:ar,load:lr,unload:cr}=signalExitWrap(processOk(or)?new SignalExit(or):new SignalExitFallback);const cleanupOnExit=(r,{cleanup:n,detached:s},{signal:a})=>{if(!n||s){return}const l=ar((()=>{r.kill()}));(0,$e.addAbortListener)(a,(()=>{l()}))};const normalizePipeArguments=({source:r,sourcePromise:n,boundOptions:s,createNested:a},...l)=>{const u=getStartTime();const{destination:d,destinationStream:A,destinationError:p,from:f,unpipeSignal:g}=getDestinationStream(s,a,l);const{sourceStream:y,sourceError:b}=getSourceStream(r,f);const{options:C,fileDescriptors:w}=Ze.get(r);return{sourcePromise:n,sourceStream:y,sourceOptions:C,sourceError:b,destination:d,destinationStream:A,destinationError:p,unpipeSignal:g,fileDescriptors:w,startTime:u}};const getDestinationStream=(r,n,s)=>{try{const{destination:a,pipeOptions:{from:l,to:u,unpipeSignal:d}={}}=getDestination(r,n,...s);const A=getToStream(a,u);return{destination:a,destinationStream:A,from:l,unpipeSignal:d}}catch(r){return{destinationError:r}}};const getDestination=(r,n,s,...a)=>{if(Array.isArray(s)){const l=n(mapDestinationArguments,r)(s,...a);return{destination:l,pipeOptions:r}}if(typeof s==="string"||s instanceof URL||isDenoExecPath(s)){if(Object.keys(r).length>0){throw new TypeError('Please use .pipe("file", ..., options) or .pipe(execa("file", ..., options)) instead of .pipe(options)("file", ...).')}const[l,u,d]=normalizeParameters(s,...a);const A=n(mapDestinationArguments)(l,u,d);return{destination:A,pipeOptions:d}}if(Ze.has(s)){if(Object.keys(r).length>0){throw new TypeError("Please use .pipe(options)`command` or .pipe($(options)`command`) instead of .pipe(options)($`command`).")}return{destination:s,pipeOptions:a[0]}}throw new TypeError(`The first argument must be a template string, an options object, or an Execa subprocess: ${s}`)};const mapDestinationArguments=({options:r})=>({options:{...r,stdin:"pipe",piped:true}});const getSourceStream=(r,n)=>{try{const s=getFromStream(r,n);return{sourceStream:s}}catch(r){return{sourceError:r}}};const handlePipeArgumentsError=({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a,fileDescriptors:l,sourceOptions:u,startTime:d})=>{const A=getPipeArgumentsError({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a});if(A!==undefined){throw createNonCommandError({error:A,fileDescriptors:l,sourceOptions:u,startTime:d})}};const getPipeArgumentsError=({sourceStream:r,sourceError:n,destinationStream:s,destinationError:a})=>{if(n!==undefined&&a!==undefined){return a}if(a!==undefined){abortSourceStream(r);return a}if(n!==undefined){endDestinationStream(s);return n}};const createNonCommandError=({error:r,fileDescriptors:n,sourceOptions:s,startTime:a})=>makeEarlyError({error:r,command:ur,escapedCommand:ur,fileDescriptors:n,options:s,startTime:a,isSync:false});const ur="source.pipe(destination)";const waitForBothSubprocesses=async r=>{const[{status:n,reason:s,value:a=s},{status:l,reason:u,value:d=u}]=await r;if(!d.pipedFrom.includes(a)){d.pipedFrom.push(a)}if(l==="rejected"){throw d}if(n==="rejected"){throw a}return d};const pipeSubprocessStream=(r,n,s)=>{const a=dr.has(n)?pipeMoreSubprocessStream(r,n):pipeFirstSubprocessStream(r,n);incrementMaxListeners(r,Ar,s.signal);incrementMaxListeners(n,pr,s.signal);cleanupMergedStreamsMap(n);return a};const pipeFirstSubprocessStream=(r,n)=>{const s=(0,Xt.A)([r]);pipeStreams(s,n);dr.set(n,s);return s};const pipeMoreSubprocessStream=(r,n)=>{const s=dr.get(n);s.add(r);return s};const cleanupMergedStreamsMap=async r=>{try{await(0,Zt.finished)(r,{cleanup:true,readable:false,writable:true})}catch{}dr.delete(r)};const dr=new WeakMap;const Ar=2;const pr=1;const unpipeOnAbort=(r,n)=>r===undefined?[]:[unpipeOnSignalAbort(r,n)];const unpipeOnSignalAbort=async(r,{sourceStream:n,mergedStream:s,fileDescriptors:a,sourceOptions:l,startTime:u})=>{await(0,w.aborted)(r,n);await s.remove(n);const d=new Error("Pipe canceled by `unpipeSignal` option.");throw createNonCommandError({error:d,fileDescriptors:a,sourceOptions:l,startTime:u})};const pipeToSubprocess=(r,...n)=>{if(isPlainObject(n[0])){return pipeToSubprocess.bind(undefined,{...r,boundOptions:{...r.boundOptions,...n[0]}})}const{destination:s,...a}=normalizePipeArguments(r,...n);const l=handlePipePromise({...a,destination:s});l.pipe=pipeToSubprocess.bind(undefined,{...r,source:s,sourcePromise:l,boundOptions:{}});return l};const handlePipePromise=async({sourcePromise:r,sourceStream:n,sourceOptions:s,sourceError:a,destination:l,destinationStream:u,destinationError:d,unpipeSignal:A,fileDescriptors:p,startTime:f})=>{const g=getSubprocessPromises(r,l);handlePipeArgumentsError({sourceStream:n,sourceError:a,destinationStream:u,destinationError:d,fileDescriptors:p,sourceOptions:s,startTime:f});const y=new AbortController;try{const r=pipeSubprocessStream(n,u,y);return await Promise.race([waitForBothSubprocesses(g),...unpipeOnAbort(A,{sourceStream:n,mergedStream:r,sourceOptions:s,fileDescriptors:p,startTime:f})])}finally{y.abort()}};const getSubprocessPromises=(r,n)=>Promise.allSettled([r,n]);const utils_identity=r=>r;const noop=()=>undefined;const getContentsProperty=({contents:r})=>r;const throwObjectStream=r=>{throw new Error(`Streams in object mode are not supported: ${String(r)}`)};const getLengthProperty=r=>r.length;async function getStreamAsArray(r,n){return getStreamContents(r,fr,n)}const initArray=()=>({contents:[]});const increment=()=>1;const addArrayChunk=(r,{contents:n})=>{n.push(r);return n};const fr={init:initArray,convertChunk:{string:utils_identity,buffer:utils_identity,arrayBuffer:utils_identity,dataView:utils_identity,typedArray:utils_identity,others:utils_identity},getSize:increment,truncateChunk:noop,addChunk:addArrayChunk,getFinalChunk:noop,finalize:getContentsProperty};async function getStreamAsArrayBuffer(r,n){return getStreamContents(r,gr,n)}const initArrayBuffer=()=>({contents:new ArrayBuffer(0)});const useTextEncoder=r=>hr.encode(r);const hr=new TextEncoder;const useUint8Array=r=>new Uint8Array(r);const useUint8ArrayWithOffset=r=>new Uint8Array(r.buffer,r.byteOffset,r.byteLength);const truncateArrayBufferChunk=(r,n)=>r.slice(0,n);const addArrayBufferChunk=(r,{contents:n,length:s},a)=>{const l=hasArrayBufferResize()?resizeArrayBuffer(n,a):resizeArrayBufferSlow(n,a);new Uint8Array(l).set(r,s);return l};const resizeArrayBufferSlow=(r,n)=>{if(n<=r.byteLength){return r}const s=new ArrayBuffer(getNewContentsLength(n));new Uint8Array(s).set(new Uint8Array(r),0);return s};const resizeArrayBuffer=(r,n)=>{if(n<=r.maxByteLength){r.resize(n);return r}const s=new ArrayBuffer(n,{maxByteLength:getNewContentsLength(n)});new Uint8Array(s).set(new Uint8Array(r),0);return s};const getNewContentsLength=r=>mr**Math.ceil(Math.log(r)/Math.log(mr));const mr=2;const finalizeArrayBuffer=({contents:r,length:n})=>hasArrayBufferResize()?r:r.slice(0,n);const hasArrayBufferResize=()=>"resize"in ArrayBuffer.prototype;const gr={init:initArrayBuffer,convertChunk:{string:useTextEncoder,buffer:useUint8Array,arrayBuffer:useUint8Array,dataView:useUint8ArrayWithOffset,typedArray:useUint8ArrayWithOffset,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateArrayBufferChunk,addChunk:addArrayBufferChunk,getFinalChunk:noop,finalize:finalizeArrayBuffer};async function getStreamAsString(r,n){return getStreamContents(r,yr,n)}const initString=()=>({contents:"",textDecoder:new TextDecoder});const useTextDecoder=(r,{textDecoder:n})=>n.decode(r,{stream:true});const addStringChunk=(r,{contents:n})=>n+r;const truncateStringChunk=(r,n)=>r.slice(0,n);const getFinalStringChunk=({textDecoder:r})=>{const n=r.decode();return n===""?undefined:n};const yr={init:initString,convertChunk:{string:utils_identity,buffer:useTextDecoder,arrayBuffer:useTextDecoder,dataView:useTextDecoder,typedArray:useTextDecoder,others:throwObjectStream},getSize:getLengthProperty,truncateChunk:truncateStringChunk,addChunk:addStringChunk,getFinalChunk:getFinalStringChunk,finalize:getContentsProperty};const iterateOnSubprocessStream=({subprocessStdout:r,subprocess:n,binary:s,shouldEncode:a,encoding:l,preserveNewlines:u})=>{const d=new AbortController;stopReadingOnExit(n,d);return iterateOnStream({stream:r,controller:d,binary:s,shouldEncode:!r.readableObjectMode&&a,encoding:l,shouldSplit:!r.readableObjectMode,preserveNewlines:u})};const stopReadingOnExit=async(r,n)=>{try{await r}catch{}finally{n.abort()}};const iterateForResult=({stream:r,onStreamEnd:n,lines:s,encoding:a,stripFinalNewline:l,allMixed:u})=>{const d=new AbortController;stopReadingOnStreamEnd(n,d,r);const A=r.readableObjectMode&&!u;return iterateOnStream({stream:r,controller:d,binary:a==="buffer",shouldEncode:!A,encoding:a,shouldSplit:!A&&s,preserveNewlines:!l})};const stopReadingOnStreamEnd=async(r,n,s)=>{try{await r}catch{s.destroy()}finally{n.abort()}};const iterateOnStream=({stream:r,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d})=>{const A=(0,$e.on)(r,"data",{signal:n.signal,highWaterMark:br,highWatermark:br});return iterateOnData({onStdoutChunk:A,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d})};const Er=(0,zt.getDefaultHighWaterMark)(true);const br=Er;const iterateOnData=async function*({onStdoutChunk:r,controller:n,binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d}){const A=getGenerators({binary:s,shouldEncode:a,encoding:l,shouldSplit:u,preserveNewlines:d});try{for await(const[n]of r){yield*transformChunkSync(n,A,0)}}catch(r){if(!n.signal.aborted){throw r}}finally{yield*finalChunksSync(A)}};const getGenerators=({binary:r,shouldEncode:n,encoding:s,shouldSplit:a,preserveNewlines:l})=>[getEncodingTransformGenerator(r,s,!n),getSplitLinesGenerator(r,l,!a,{})].filter(Boolean);const getStreamOutput=async({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,buffer:l,maxBuffer:u,lines:d,allMixed:A,stripFinalNewline:p,verboseInfo:f,streamInfo:g})=>{const y=logOutputAsync({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,allMixed:A,verboseInfo:f,streamInfo:g});if(!l){await Promise.all([resumeStream(r),y]);return}const b=getStripFinalNewline(p,s);const C=iterateForResult({stream:r,onStreamEnd:n,lines:d,encoding:a,stripFinalNewline:b,allMixed:A});const[w]=await Promise.all([contents_getStreamContents({stream:r,iterable:C,fdNumber:s,encoding:a,maxBuffer:u,lines:d}),y]);return w};const logOutputAsync=async({stream:r,onStreamEnd:n,fdNumber:s,encoding:a,allMixed:l,verboseInfo:u,streamInfo:{fileDescriptors:d}})=>{if(!shouldLogOutput({stdioItems:d[s]?.stdioItems,encoding:a,verboseInfo:u,fdNumber:s})){return}const A=iterateForResult({stream:r,onStreamEnd:n,lines:true,encoding:a,stripFinalNewline:true,allMixed:l});await logLines(A,r,s,u)};const resumeStream=async r=>{await(0,Ue.setImmediate)();if(r.readableFlowing===null){r.resume()}};const contents_getStreamContents=async({stream:r,stream:{readableObjectMode:n},iterable:s,fdNumber:a,encoding:l,maxBuffer:u,lines:d})=>{try{if(n||d){return await getStreamAsArray(s,{maxBuffer:u})}if(l==="buffer"){return new Uint8Array(await getStreamAsArrayBuffer(s,{maxBuffer:u}))}return await getStreamAsString(s,{maxBuffer:u})}catch(s){return handleBufferedData(handleMaxBuffer({error:s,stream:r,readableObjectMode:n,lines:d,encoding:l,fdNumber:a}))}};const getBufferedData=async r=>{try{return await r}catch(r){return handleBufferedData(r)}};const handleBufferedData=({bufferedData:r})=>isArrayBuffer(r)?new Uint8Array(r):r;const waitForStream=async(r,n,s,{isSameDirection:a,stopOnExit:l=false}={})=>{const u=handleStdinDestroy(r,s);const d=new AbortController;try{await Promise.race([...l?[s.exitPromise]:[],(0,Zt.finished)(r,{cleanup:true,signal:d.signal})])}catch(r){if(!u.stdinCleanedUp){handleStreamError(r,n,s,a)}}finally{d.abort()}};const handleStdinDestroy=(r,{originalStreams:[n],subprocess:s})=>{const a={stdinCleanedUp:false};if(r===n){spyOnStdinDestroy(r,s,a)}return a};const spyOnStdinDestroy=(r,n,s)=>{const{_destroy:a}=r;r._destroy=(...l)=>{setStdinCleanedUp(n,s);a.call(r,...l)}};const setStdinCleanedUp=({exitCode:r,signalCode:n},s)=>{if(r!==null||n!==null){s.stdinCleanedUp=true}};const handleStreamError=(r,n,s,a)=>{if(!shouldIgnoreStreamError(r,n,s,a)){throw r}};const shouldIgnoreStreamError=(r,n,s,a=true)=>{if(s.propagating){return isStreamEpipe(r)||isStreamAbort(r)}s.propagating=true;return isInputFileDescriptor(s,n)===a?isStreamEpipe(r):isStreamAbort(r)};const isInputFileDescriptor=({fileDescriptors:r},n)=>n!=="all"&&r[n].direction==="input";const isStreamAbort=r=>r?.code==="ERR_STREAM_PREMATURE_CLOSE";const isStreamEpipe=r=>r?.code==="EPIPE";const waitForStdioStreams=({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:u,verboseInfo:d,streamInfo:A})=>r.stdio.map(((r,p)=>waitForSubprocessStream({stream:r,fdNumber:p,encoding:n,buffer:s[p],maxBuffer:a[p],lines:l[p],allMixed:false,stripFinalNewline:u,verboseInfo:d,streamInfo:A})));const waitForSubprocessStream=async({stream:r,fdNumber:n,encoding:s,buffer:a,maxBuffer:l,lines:u,allMixed:d,stripFinalNewline:A,verboseInfo:p,streamInfo:f})=>{if(!r){return}const g=waitForStream(r,n,f);if(isInputFileDescriptor(f,n)){await g;return}const[y]=await Promise.all([getStreamOutput({stream:r,onStreamEnd:g,fdNumber:n,encoding:s,buffer:a,maxBuffer:l,lines:u,allMixed:d,stripFinalNewline:A,verboseInfo:p,streamInfo:f}),g]);return y};const makeAllStream=({stdout:r,stderr:n},{all:s})=>s&&(r||n)?(0,Xt.A)([r,n].filter(Boolean)):undefined;const waitForAllStream=({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:u,verboseInfo:d,streamInfo:A})=>waitForSubprocessStream({...getAllStream(r,s),fdNumber:"all",encoding:n,maxBuffer:a[1]+a[2],lines:l[1]||l[2],allMixed:getAllMixed(r),stripFinalNewline:u,verboseInfo:d,streamInfo:A});const getAllStream=({stdout:r,stderr:n,all:s},[,a,l])=>{const u=a||l;if(!u){return{stream:s,buffer:u}}if(!a){return{stream:n,buffer:u}}if(!l){return{stream:r,buffer:u}}return{stream:s,buffer:u}};const getAllMixed=({all:r,stdout:n,stderr:s})=>r&&n&&s&&n.readableObjectMode!==s.readableObjectMode;const shouldLogIpc=r=>isFullVerbose(r,"ipc");const logIpcOutput=(r,n)=>{const s=serializeVerboseMessage(r);verboseLog({type:"ipc",verboseMessage:s,fdNumber:"ipc",verboseInfo:n})};const waitForIpcOutput=async({subprocess:r,buffer:n,maxBuffer:s,ipc:a,ipcOutput:l,verboseInfo:u})=>{if(!a){return l}const d=shouldLogIpc(u);const A=getFdSpecificValue(n,"ipc");const p=getFdSpecificValue(s,"ipc");for await(const n of loopOnMessages({anyProcess:r,channel:r.channel,isSubprocess:false,ipc:a,shouldAwait:false,reference:true})){if(A){checkIpcMaxBuffer(r,l,p);l.push(n)}if(d){logIpcOutput(n,u)}}return l};const getBufferedIpcOutput=async(r,n)=>{await Promise.allSettled([r]);return n};const waitForSubprocessResult=async({subprocess:r,options:{encoding:n,buffer:s,maxBuffer:a,lines:l,timeoutDuration:u,cancelSignal:d,gracefulCancel:A,forceKillAfterDelay:p,stripFinalNewline:f,ipc:g,ipcInput:y},context:b,verboseInfo:C,fileDescriptors:w,originalStreams:B,onInternalError:I,controller:S})=>{const Q=waitForExit(r,b);const v={originalStreams:B,fileDescriptors:w,subprocess:r,exitPromise:Q,propagating:false};const R=waitForStdioStreams({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:f,verboseInfo:C,streamInfo:v});const N=waitForAllStream({subprocess:r,encoding:n,buffer:s,maxBuffer:a,lines:l,stripFinalNewline:f,verboseInfo:C,streamInfo:v});const x=[];const D=waitForIpcOutput({subprocess:r,buffer:s,maxBuffer:a,ipc:g,ipcOutput:x,verboseInfo:C});const T=waitForOriginalStreams(B,r,v);const k=waitForCustomStreamsEnd(w,v);try{return await Promise.race([Promise.all([{},waitForSuccessfulExit(Q),Promise.all(R),N,D,sendIpcInput(r,y),...T,...k]),I,throwOnSubprocessError(r,S),...throwOnTimeout(r,u,b,S),...throwOnCancel({subprocess:r,cancelSignal:d,gracefulCancel:A,context:b,controller:S}),...throwOnGracefulCancel({subprocess:r,cancelSignal:d,gracefulCancel:A,forceKillAfterDelay:p,context:b,controller:S})])}catch(r){b.terminationReason??="other";return Promise.all([{error:r},Q,Promise.all(R.map((r=>getBufferedData(r)))),getBufferedData(N),getBufferedIpcOutput(D,x),Promise.allSettled(T),Promise.allSettled(k)])}};const waitForOriginalStreams=(r,n,s)=>r.map(((r,a)=>r===n.stdio[a]?undefined:waitForStream(r,a,s)));const waitForCustomStreamsEnd=(r,n)=>r.flatMap((({stdioItems:r},s)=>r.filter((({value:r,stream:n=r})=>is_stream_isStream(n,{checkOpen:false})&&!isStandardStream(n))).map((({type:r,value:a,stream:l=a})=>waitForStream(l,s,n,{isSameDirection:Dt.has(r),stopOnExit:r==="native"})))));const throwOnSubprocessError=async(r,{signal:n})=>{const[s]=await(0,$e.once)(r,"error",{signal:n});throw s};const initializeConcurrentStreams=()=>({readableDestroy:new WeakMap,writableFinal:new WeakMap,writableDestroy:new WeakMap});const addConcurrentStream=(r,n,s)=>{const a=r[s];if(!a.has(n)){a.set(n,[])}const l=a.get(n);const u=createDeferred();l.push(u);const d=u.resolve.bind(u);return{resolve:d,promises:l}};const waitForConcurrentStreams=async({resolve:r,promises:n},s)=>{r();const[a]=await Promise.race([Promise.allSettled([true,s]),Promise.all([false,...n])]);return!a};const safeWaitForSubprocessStdin=async r=>{if(r===undefined){return}try{await waitForSubprocessStdin(r)}catch{}};const safeWaitForSubprocessStdout=async r=>{if(r===undefined){return}try{await waitForSubprocessStdout(r)}catch{}};const waitForSubprocessStdin=async r=>{await(0,Zt.finished)(r,{cleanup:true,readable:false,writable:true})};const waitForSubprocessStdout=async r=>{await(0,Zt.finished)(r,{cleanup:true,readable:true,writable:false})};const waitForSubprocess=async(r,n)=>{await r;if(n){throw n}};const destroyOtherStream=(r,n,s)=>{if(s&&!isStreamAbort(s)){r.destroy(s)}else if(n){r.destroy()}};const createReadable=({subprocess:r,concurrentStreams:n,encoding:s},{from:a,binary:l=true,preserveNewlines:u=true}={})=>{const d=l||ft.has(s);const{subprocessStdout:A,waitReadableDestroy:p}=getSubprocessStdout(r,a,n);const{readableEncoding:f,readableObjectMode:g,readableHighWaterMark:y}=getReadableOptions(A,d);const{read:b,onStdoutDataDone:C}=getReadableMethods({subprocessStdout:A,subprocess:r,binary:d,encoding:s,preserveNewlines:u});const B=new zt.Readable({read:b,destroy:(0,w.callbackify)(onReadableDestroy.bind(undefined,{subprocessStdout:A,subprocess:r,waitReadableDestroy:p})),highWaterMark:y,objectMode:g,encoding:f});onStdoutFinished({subprocessStdout:A,onStdoutDataDone:C,readable:B,subprocess:r});return B};const getSubprocessStdout=(r,n,s)=>{const a=getFromStream(r,n);const l=addConcurrentStream(s,a,"readableDestroy");return{subprocessStdout:a,waitReadableDestroy:l}};const getReadableOptions=({readableEncoding:r,readableObjectMode:n,readableHighWaterMark:s},a)=>a?{readableEncoding:r,readableObjectMode:n,readableHighWaterMark:s}:{readableEncoding:r,readableObjectMode:true,readableHighWaterMark:Er};const getReadableMethods=({subprocessStdout:r,subprocess:n,binary:s,encoding:a,preserveNewlines:l})=>{const u=createDeferred();const d=iterateOnSubprocessStream({subprocessStdout:r,subprocess:n,binary:s,shouldEncode:!s,encoding:a,preserveNewlines:l});return{read(){onRead(this,d,u)},onStdoutDataDone:u}};const onRead=async(r,n,s)=>{try{const{value:a,done:l}=await n.next();if(l){s.resolve()}else{r.push(a)}}catch{}};const onStdoutFinished=async({subprocessStdout:r,onStdoutDataDone:n,readable:s,subprocess:a,subprocessStdin:l})=>{try{await waitForSubprocessStdout(r);await a;await safeWaitForSubprocessStdin(l);await n;if(s.readable){s.push(null)}}catch(r){await safeWaitForSubprocessStdin(l);destroyOtherReadable(s,r)}};const onReadableDestroy=async({subprocessStdout:r,subprocess:n,waitReadableDestroy:s},a)=>{if(await waitForConcurrentStreams(s,n)){destroyOtherReadable(r,a);await waitForSubprocess(n,a)}};const destroyOtherReadable=(r,n)=>{destroyOtherStream(r,r.readable,n)};const createWritable=({subprocess:r,concurrentStreams:n},{to:s}={})=>{const{subprocessStdin:a,waitWritableFinal:l,waitWritableDestroy:u}=getSubprocessStdin(r,s,n);const d=new zt.Writable({...getWritableMethods(a,r,l),destroy:(0,w.callbackify)(onWritableDestroy.bind(undefined,{subprocessStdin:a,subprocess:r,waitWritableFinal:l,waitWritableDestroy:u})),highWaterMark:a.writableHighWaterMark,objectMode:a.writableObjectMode});onStdinFinished(a,d);return d};const getSubprocessStdin=(r,n,s)=>{const a=getToStream(r,n);const l=addConcurrentStream(s,a,"writableFinal");const u=addConcurrentStream(s,a,"writableDestroy");return{subprocessStdin:a,waitWritableFinal:l,waitWritableDestroy:u}};const getWritableMethods=(r,n,s)=>({write:onWrite.bind(undefined,r),final:(0,w.callbackify)(onWritableFinal.bind(undefined,r,n,s))});const onWrite=(r,n,s,a)=>{if(r.write(n,s)){a()}else{r.once("drain",a)}};const onWritableFinal=async(r,n,s)=>{if(await waitForConcurrentStreams(s,n)){if(r.writable){r.end()}await n}};const onStdinFinished=async(r,n,s)=>{try{await waitForSubprocessStdin(r);if(n.writable){n.end()}}catch(r){await safeWaitForSubprocessStdout(s);destroyOtherWritable(n,r)}};const onWritableDestroy=async({subprocessStdin:r,subprocess:n,waitWritableFinal:s,waitWritableDestroy:a},l)=>{await waitForConcurrentStreams(s,n);if(await waitForConcurrentStreams(a,n)){destroyOtherWritable(r,l);await waitForSubprocess(n,l)}};const destroyOtherWritable=(r,n)=>{destroyOtherStream(r,r.writable,n)};const createDuplex=({subprocess:r,concurrentStreams:n,encoding:s},{from:a,to:l,binary:u=true,preserveNewlines:d=true}={})=>{const A=u||ft.has(s);const{subprocessStdout:p,waitReadableDestroy:f}=getSubprocessStdout(r,a,n);const{subprocessStdin:g,waitWritableFinal:y,waitWritableDestroy:b}=getSubprocessStdin(r,l,n);const{readableEncoding:C,readableObjectMode:B,readableHighWaterMark:I}=getReadableOptions(p,A);const{read:S,onStdoutDataDone:Q}=getReadableMethods({subprocessStdout:p,subprocess:r,binary:A,encoding:s,preserveNewlines:d});const v=new zt.Duplex({read:S,...getWritableMethods(g,r,y),destroy:(0,w.callbackify)(onDuplexDestroy.bind(undefined,{subprocessStdout:p,subprocessStdin:g,subprocess:r,waitReadableDestroy:f,waitWritableFinal:y,waitWritableDestroy:b})),readableHighWaterMark:I,writableHighWaterMark:g.writableHighWaterMark,readableObjectMode:B,writableObjectMode:g.writableObjectMode,encoding:C});onStdoutFinished({subprocessStdout:p,onStdoutDataDone:Q,readable:v,subprocess:r,subprocessStdin:g});onStdinFinished(g,v,p);return v};const onDuplexDestroy=async({subprocessStdout:r,subprocessStdin:n,subprocess:s,waitReadableDestroy:a,waitWritableFinal:l,waitWritableDestroy:u},d)=>{await Promise.all([onReadableDestroy({subprocessStdout:r,subprocess:s,waitReadableDestroy:a},d),onWritableDestroy({subprocessStdin:n,subprocess:s,waitWritableFinal:l,waitWritableDestroy:u},d)])};const createIterable=(r,n,{from:s,binary:a=false,preserveNewlines:l=false}={})=>{const u=a||ft.has(n);const d=getFromStream(r,s);const A=iterateOnSubprocessStream({subprocessStdout:d,subprocess:r,binary:u,shouldEncode:true,encoding:n,preserveNewlines:l});return iterateOnStdoutData(A,d,r)};const iterateOnStdoutData=async function*(r,n,s){try{yield*r}finally{if(n.readable){n.destroy()}await s}};const addConvertedStreams=(r,{encoding:n})=>{const s=initializeConcurrentStreams();r.readable=createReadable.bind(undefined,{subprocess:r,concurrentStreams:s,encoding:n});r.writable=createWritable.bind(undefined,{subprocess:r,concurrentStreams:s});r.duplex=createDuplex.bind(undefined,{subprocess:r,concurrentStreams:s,encoding:n});r.iterable=createIterable.bind(undefined,r,n);r[Symbol.asyncIterator]=createIterable.bind(undefined,r,n,{})};const mergePromise=(r,n)=>{for(const[s,a]of wr){const l=a.value.bind(n);Reflect.defineProperty(r,s,{...a,value:l})}};const Cr=(async()=>{})().constructor.prototype;const wr=["then","catch","finally"].map((r=>[r,Reflect.getOwnPropertyDescriptor(Cr,r)]));const execaCoreAsync=(r,n,s,a)=>{const{file:l,commandArguments:u,command:d,escapedCommand:A,startTime:p,verboseInfo:f,options:g,fileDescriptors:y}=handleAsyncArguments(r,n,s);const{subprocess:b,promise:C}=spawnSubprocessAsync({file:l,commandArguments:u,options:g,startTime:p,verboseInfo:f,command:d,escapedCommand:A,fileDescriptors:y});b.pipe=pipeToSubprocess.bind(undefined,{source:b,sourcePromise:C,boundOptions:{},createNested:a});mergePromise(b,C);Ze.set(b,{options:g,fileDescriptors:y});return b};const handleAsyncArguments=(r,n,s)=>{const{command:a,escapedCommand:l,startTime:u,verboseInfo:d}=handleCommand(r,n,s);const{file:A,commandArguments:p,options:f}=normalizeOptions(r,n,s);const g=handleAsyncOptions(f);const y=handleStdioAsync(g,d);return{file:A,commandArguments:p,command:a,escapedCommand:l,startTime:u,verboseInfo:d,options:g,fileDescriptors:y}};const handleAsyncOptions=({timeout:r,signal:n,...s})=>{if(n!==undefined){throw new TypeError('The "signal" option has been renamed to "cancelSignal" instead.')}return{...s,timeoutDuration:r}};const spawnSubprocessAsync=({file:r,commandArguments:n,options:s,startTime:a,verboseInfo:l,command:u,escapedCommand:d,fileDescriptors:p})=>{let f;try{f=(0,A.spawn)(...concatenateShell(r,n,s))}catch(r){return handleEarlyError({error:r,command:u,escapedCommand:d,fileDescriptors:p,options:s,startTime:a,verboseInfo:l})}const g=new AbortController;(0,$e.setMaxListeners)(Number.POSITIVE_INFINITY,g.signal);const y=[...f.stdio];pipeOutputAsync(f,p,g);cleanupOnExit(f,s,g);const b={};const C=createDeferred();f.kill=subprocessKill.bind(undefined,{kill:f.kill.bind(f),options:s,onInternalError:C,context:b,controller:g});f.all=makeAllStream(f,s);addConvertedStreams(f,s);addIpcMethods(f,s);const w=handlePromise({subprocess:f,options:s,startTime:a,verboseInfo:l,fileDescriptors:p,originalStreams:y,command:u,escapedCommand:d,context:b,onInternalError:C,controller:g});return{subprocess:f,promise:w}};const handlePromise=async({subprocess:r,options:n,startTime:s,verboseInfo:a,fileDescriptors:l,originalStreams:u,command:d,escapedCommand:A,context:p,onInternalError:f,controller:g})=>{const[y,[b,C],w,B,I]=await waitForSubprocessResult({subprocess:r,options:n,context:p,verboseInfo:a,fileDescriptors:l,originalStreams:u,onInternalError:f,controller:g});g.abort();f.resolve();const S=w.map(((r,s)=>stripNewline(r,n,s)));const Q=stripNewline(B,n,"all");const v=getAsyncResult({errorInfo:y,exitCode:b,signal:C,stdio:S,all:Q,ipcOutput:I,context:p,options:n,command:d,escapedCommand:A,startTime:s});return handleResult(v,a,n)};const getAsyncResult=({errorInfo:r,exitCode:n,signal:s,stdio:a,all:l,ipcOutput:u,context:d,options:A,command:p,escapedCommand:f,startTime:g})=>"error"in r?makeError({error:r.error,command:p,escapedCommand:f,timedOut:d.terminationReason==="timeout",isCanceled:d.terminationReason==="cancel"||d.terminationReason==="gracefulCancel",isGracefullyCanceled:d.terminationReason==="gracefulCancel",isMaxBuffer:r.error instanceof MaxBufferError,isForcefullyTerminated:d.isForcefullyTerminated,exitCode:n,signal:s,stdio:a,all:l,ipcOutput:u,options:A,startTime:g,isSync:false}):makeSuccessResult({command:p,escapedCommand:f,stdio:a,all:l,ipcOutput:u,options:A,startTime:g});const mergeOptions=(r,n)=>{const s=Object.fromEntries(Object.entries(n).map((([n,s])=>[n,mergeOption(n,r[n],s)])));return{...r,...s}};const mergeOption=(r,n,s)=>{if(Br.has(r)&&isPlainObject(n)&&isPlainObject(s)){return{...n,...s}}return s};const Br=new Set(["env",...N]);const createExeca=(r,n,s,a)=>{const createNested=(r,n,a)=>createExeca(r,n,s,a);const boundExeca=(...l)=>callBoundExeca({mapArguments:r,deepOptions:s,boundOptions:n,setBoundExeca:a,createNested:createNested},...l);if(a!==undefined){a(boundExeca,createNested,n)}return boundExeca};const callBoundExeca=({mapArguments:r,deepOptions:n={},boundOptions:s={},setBoundExeca:a,createNested:l},u,...d)=>{if(isPlainObject(u)){return l(r,mergeOptions(s,u),a)}const{file:A,commandArguments:p,options:f,isSync:g}=parseArguments({mapArguments:r,firstArgument:u,nextArguments:d,deepOptions:n,boundOptions:s});return g?execaCoreSync(A,p,f):execaCoreAsync(A,p,f,l)};const parseArguments=({mapArguments:r,firstArgument:n,nextArguments:s,deepOptions:a,boundOptions:l})=>{const u=isTemplateString(n)?parseTemplates(n,s):[n,...s];const[d,A,p]=normalizeParameters(...u);const f=mergeOptions(mergeOptions(a,l),p);const{file:g=d,commandArguments:y=A,options:b=f,isSync:C=false}=r({file:d,commandArguments:A,options:f});return{file:g,commandArguments:y,options:b,isSync:C}};const mapCommandAsync=({file:r,commandArguments:n})=>parseCommand(r,n);const mapCommandSync=({file:r,commandArguments:n})=>({...parseCommand(r,n),isSync:true});const parseCommand=(r,n)=>{if(n.length>0){throw new TypeError(`The command and its arguments must be passed as a single string: ${r} ${n}.`)}const[s,...a]=parseCommandString(r);return{file:s,commandArguments:a}};const parseCommandString=r=>{if(typeof r!=="string"){throw new TypeError(`The command must be a string: ${String(r)}.`)}const n=r.trim();if(n===""){return[]}const s=[];for(const r of n.split(Ir)){const n=s.at(-1);if(n&&n.endsWith("\\")){s[s.length-1]=`${n.slice(0,-1)} ${r}`}else{s.push(r)}}return s};const Ir=/ +/g;const setScriptSync=(r,n,s)=>{r.sync=n(mapScriptSync,s);r.s=r.sync};const mapScriptAsync=({options:r})=>getScriptOptions(r);const mapScriptSync=({options:r})=>({...getScriptOptions(r),isSync:true});const getScriptOptions=r=>({options:{...getScriptStdinOption(r),...r}});const getScriptStdinOption=({input:r,inputFile:n,stdio:s})=>r===undefined&&n===undefined&&s===undefined?{stdin:"inherit"}:{};const Sr={preferLocal:true};const Qr=createExeca((()=>({})));const vr=createExeca((()=>({isSync:true})));const Rr=createExeca(mapCommandAsync);const Nr=createExeca(mapCommandSync);const xr=createExeca(mapNode);const Dr=createExeca(mapScriptAsync,{},Sr,setScriptSync);const{sendMessage:Tr,getOneMessage:kr,getEachMessage:_r,getCancelSignal:Pr}=getIpcExport();var Fr=s(51455);const find_up_simple_toPath=r=>r instanceof URL?(0,d.fileURLToPath)(r):r;async function findUp(r,{cwd:n=process.cwd(),type:s="file",stopAt:a}={}){let l=path.resolve(find_up_simple_toPath(n)??"");const{root:u}=path.parse(l);a=path.resolve(l,find_up_simple_toPath(a??u));const d=path.isAbsolute(r);while(l){const n=d?r:path.join(l,r);try{const r=await fsPromises.stat(n);if(s==="file"&&r.isFile()||s==="directory"&&r.isDirectory()){return n}}catch{}if(l===a||l===u){break}l=path.dirname(l)}}function findUpSync(r,{cwd:n=B.cwd(),type:s="file",stopAt:u}={}){let d=l.resolve(find_up_simple_toPath(n)??"");const{root:A}=l.parse(d);u=l.resolve(d,find_up_simple_toPath(u)??A);const p=l.isAbsolute(r);while(d){const n=p?r:l.join(d,r);try{const r=a.statSync(n,{throwIfNoEntry:false});if(s==="file"&&r?.isFile()||s==="directory"&&r?.isDirectory()){return n}}catch{}if(d===u||d===A){break}d=l.dirname(d)}}var Lr=s(73971); /*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause @@ -196,7 +196,7 @@ function isEscaped(r,n){let s=0;while(r[n-++s]==="\\");return--s&&s%2}function i * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -let Or=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;class TomlDate extends Date{#Qe=false;#ve=false;#Re=null;constructor(r){let n=true;let s=true;let a="Z";if(typeof r==="string"){let l=r.match(Or);if(l){if(!l[1]){n=false;r=`0000-01-01T${r}`}s=!!l[2];s&&r[10]===" "&&(r=r.replace(" ","T"));if(l[2]&&+l[2]>23){r=""}else{a=l[3]||null;r=r.toUpperCase();if(!a&&s)r+="Z"}}else{r=""}}super(r);if(!isNaN(this.getTime())){this.#Qe=n;this.#ve=s;this.#Re=a}}isDateTime(){return this.#Qe&&this.#ve}isLocal(){return!this.#Qe||!this.#ve||!this.#Re}isDate(){return this.#Qe&&!this.#ve}isTime(){return this.#ve&&!this.#Qe}isValid(){return this.#Qe||this.#ve}toISOString(){let r=super.toISOString();if(this.isDate())return r.slice(0,10);if(this.isTime())return r.slice(11,23);if(this.#Re===null)return r.slice(0,-1);if(this.#Re==="Z")return r;let n=+this.#Re.slice(1,3)*60+ +this.#Re.slice(4,6);n=this.#Re[0]==="-"?n:-n;let s=new Date(this.getTime()-n*6e4);return s.toISOString().slice(0,-1)+this.#Re}static wrapAsOffsetDateTime(r,n="Z"){let s=new TomlDate(r);s.#Re=n;return s}static wrapAsLocalDateTime(r){let n=new TomlDate(r);n.#Re=null;return n}static wrapAsLocalDate(r){let n=new TomlDate(r);n.#ve=false;n.#Re=null;return n}static wrapAsLocalTime(r){let n=new TomlDate(r);n.#Qe=false;n.#Re=null;return n}} +let Or=/^(\d{4}-\d{2}-\d{2})?[T ]?(?:(\d{2}):\d{2}(?::\d{2}(?:\.\d+)?)?)?(Z|[-+]\d{2}:\d{2})?$/i;class TomlDate extends Date{#ve=false;#Re=false;#Ne=null;constructor(r){let n=true;let s=true;let a="Z";if(typeof r==="string"){let l=r.match(Or);if(l){if(!l[1]){n=false;r=`0000-01-01T${r}`}s=!!l[2];s&&r[10]===" "&&(r=r.replace(" ","T"));if(l[2]&&+l[2]>23){r=""}else{a=l[3]||null;r=r.toUpperCase();if(!a&&s)r+="Z"}}else{r=""}}super(r);if(!isNaN(this.getTime())){this.#ve=n;this.#Re=s;this.#Ne=a}}isDateTime(){return this.#ve&&this.#Re}isLocal(){return!this.#ve||!this.#Re||!this.#Ne}isDate(){return this.#ve&&!this.#Re}isTime(){return this.#Re&&!this.#ve}isValid(){return this.#ve||this.#Re}toISOString(){let r=super.toISOString();if(this.isDate())return r.slice(0,10);if(this.isTime())return r.slice(11,23);if(this.#Ne===null)return r.slice(0,-1);if(this.#Ne==="Z")return r;let n=+this.#Ne.slice(1,3)*60+ +this.#Ne.slice(4,6);n=this.#Ne[0]==="-"?n:-n;let s=new Date(this.getTime()-n*6e4);return s.toISOString().slice(0,-1)+this.#Ne}static wrapAsOffsetDateTime(r,n="Z"){let s=new TomlDate(r);s.#Ne=n;return s}static wrapAsLocalDateTime(r){let n=new TomlDate(r);n.#Ne=null;return n}static wrapAsLocalDate(r){let n=new TomlDate(r);n.#Re=false;n.#Ne=null;return n}static wrapAsLocalTime(r){let n=new TomlDate(r);n.#ve=false;n.#Ne=null;return n}} /*! * Copyright (c) Squirrel Chat et al., All rights reserved. * SPDX-License-Identifier: BSD-3-Clause @@ -363,9 +363,9 @@ let Vr=/^[a-z0-9-_]+$/i;function extendedTypeOf(r){let n=typeof r;if(n==="object * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */const Wr={parse:parse,stringify:stringify,TomlDate:TomlDate,TomlError:TomlError};var jr=s(17898);var Yr=s.n(jr);function _tryParseJsonConfig(r){try{const n=JSON.parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function _tryParseJson5Config(r){try{const n=Yr().parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function _tryParseTomlConfig(r){try{const n=Wr.parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function readPlatformConfig(r,n){let s=(0,l.join)(r,`tauri.${n}.conf.json`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseJsonConfig(r);if(n)return n}s=(0,l.join)(r,`tauri.${n}.conf.json5`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseJson5Config(r);if(n)return n}s=(0,l.join)(r,`Tauri.${n}.toml`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseTomlConfig(r);if(n)return n}return null}function readCustomConfig(r){if(!(0,a.existsSync)(r)){throw new Error(`Provided config path \`${r}\` does not exist.`)}const n=(0,a.readFileSync)(r).toString();const s=u().extname(r);if(s===".json"){const r=_tryParseJsonConfig(n);if(r)return r}if(s===".json5"){const r=_tryParseJson5Config(n);if(r)return r}if(s===".toml"){const r=_tryParseTomlConfig(n);if(r)return r}throw new Error(`Couldn't parse \`${r}\` as ${s.substring(1)}.`)}class TauriConfig{identifier;productName;mainBinaryName;version;frontendDist;beforeBuildCommand;rpmRelease;wixLanguage;unzippedSigs;constructor(r){this.identifier=r}static fromBaseConfig(r){if((0,a.existsSync)((0,l.join)(r,"tauri.conf.json"))){const n=(0,a.readFileSync)((0,l.join)(r,"tauri.conf.json")).toString();const s=_tryParseJsonConfig(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found tauri.conf.json file but couldn't parse it as JSON.")}if((0,a.existsSync)((0,l.join)(r,"tauri.conf.json5"))){const n=(0,a.readFileSync)((0,l.join)(r,"tauri.conf.json5")).toString();const s=_tryParseJson5Config(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found tauri.conf.json5 file but couldn't parse it as JSON5.")}if((0,a.existsSync)((0,l.join)(r,"Tauri.toml"))){const n=(0,a.readFileSync)((0,l.join)(r,"Tauri.toml")).toString();const s=_tryParseTomlConfig(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found Tauri.toml file but couldn't parse it as TOML.")}throw new Error("Couldn't locate or parse tauri config.")}static fromV2Base(r){if(!r.identifier){throw Error("base config has no bundle identifier.")}const n=new TauriConfig(r.identifier);n.productName=r.productName;n.mainBinaryName=r.mainBinaryName;n.version=r.version;n.frontendDist=r.build?.frontendDist;n.beforeBuildCommand=r.build?.beforeBuildCommand;n.rpmRelease=r.bundle?.linux?.rpm?.release;n.wixLanguage=r.bundle?.windows?.wix?.language;n.unzippedSigs=r.bundle?.createUpdaterArtifacts===true;return n}mergeConfig(r){this.identifier=r.identifier??this.identifier;this.productName=r.productName??this.productName;this.mainBinaryName=r.mainBinaryName??this.mainBinaryName;this.version=r.version??this.version;this.frontendDist=r.build?.frontendDist??this.frontendDist;this.beforeBuildCommand=r.build?.beforeBuildCommand??this.beforeBuildCommand;this.rpmRelease=r.bundle?.linux?.rpm?.release??this.rpmRelease;this.wixLanguage=r.bundle?.windows?.wix?.language??this.wixLanguage;this.unzippedSigs=r.bundle?.createUpdaterArtifacts!=null?r.bundle?.createUpdaterArtifacts===true:this.unzippedSigs}mergePlatformConfig(r,n){const s=readPlatformConfig(r,n);if(s){this.mergeConfig(s)}}mergeUserConfig(r,n){let s=_tryParseJsonConfig(n);if(!s){const a=u().isAbsolute(n)?n:u().join(r,n);s=readCustomConfig(a)}if(s){this.mergeConfig(s)}else{console.error(`Couldn't read --config: ${n}`)}}}var Jr=s(53900);const $r=[".app.tar.gz.sig",".app.tar.gz",".dmg",".AppImage.tar.gz.sig",".AppImage.tar.gz",".AppImage.sig",".AppImage",".deb.sig",".deb",".rpm.sig",".rpm",".msi.zip.sig",".msi.zip",".msi.sig",".msi",".nsis.zip.sig",".nsis.zip",".exe.sig",".exe"];function parseAsset(r){const n=path.basename(r);const s=$r.filter((r=>n.includes(r)));const a=s[0]||path.extname(r);const l=n.replace(a,"");let u="";if(a===".app.tar.gz.sig"||a===".app.tar.gz"){if(r.includes("universal-apple-darwin")){u="universal"}else if(r.includes("aarch64-apple-darwin")){u="aarch64"}else if(r.includes("x86_64-apple-darwin")){u="x64"}else{u=process.arch==="arm64"?"aarch64":"x64"}}return{basename:n,ext:a,filename:l,arch:u}}function renderNamePattern(r,n){return r.replace(/\[(\w+)]/g,((r,s)=>{if(!Object.hasOwn(n,s)){return r}const a=n[s];return a}))}function getAssetName(r,n){if(r.name==="latest.json"){return"latest.json"}if(n){return renderNamePattern(n,r)}else{if(r.ext!==".app.tar.gz"&&r.ext!==".app.tar.gz.sig"&&r.name!=="binary"){return(0,l.basename)(r.path)}const n=(0,l.basename)(r.path,r.ext);const s=`_${r.arch}`;let a="";let u="";if(r.name==="binary"){a=`_${r.platform}`}if(r.ext.includes(".app.tar.gz")){u=`_${r.version}`}return n+a+u+s+r.ext}}function ghAssetName(r,n){return getAssetName(r,n).trim().replace(/[^a-zA-Z0-9_-]/g,".").replace(/\.\./g,".")}function createArtifact({path:r,name:n,platform:s,arch:a,bundle:u,version:d}){const A=(0,l.basename)(r);const p=$r.filter((r=>A.includes(r)));const f=p[0]||(0,l.extname)(r);let g;if(n==="binary"||[".app",".dmg",".exe",".msi",".deb",".rpm",".AppImage",".apk",".aab",".ipa"].includes(f)){g=`${s}-${a}-${u}`}return{path:r,name:n,mode:Jr._o?"debug":"release",platform:s==="macos"?"darwin":s,arch:a,bundle:u,ext:f,version:d,setup:u==="nsis"?"-setup":"",_setup:u==="nsis"?"_setup":"",workflowArtifactName:g}}function getPackageJson(r){const n=(0,l.join)(r,"package.json");if((0,a.existsSync)(n)){const r=(0,a.readFileSync)(n).toString();return JSON.parse(r)}return null}function getTauriDir(){const r=(0,Lr.Hz)(["**/tauri.conf.json","**/tauri.conf.json5","**/Tauri.toml"],{gitignore:true,cwd:Jr.DZ,ignore:["**/target","**/node_modules"]});if(r.length===0){return null}return(0,l.resolve)(Jr.DZ,r[0],"..")}function getWorkspaceDir(r){const n=r;while(r.length&&r[r.length-1]!==l.sep){const s=(0,l.join)(r,"Cargo.toml");if((0,a.existsSync)(s)){const u=Wr.parse((0,a.readFileSync)(s).toString());if(u.workspace&&r===n){return r}if(u.workspace?.members){const s=["**/target","**/node_modules"];if(u.workspace.exclude)s.push(...u.workspace.exclude);const a=(0,Lr.Hz)(u.workspace.members,{cwd:r,ignore:s,expandDirectories:false,onlyFiles:false});if(a.some((s=>(0,l.resolve)(r,s)===n))){return r}}}r=(0,l.normalize)((0,l.join)(r,".."))}return null}function getTargetDir(r,n,s){const d=(0,l.join)(r,"target");let A=n;let p;let f;if(process.env.CARGO_TARGET_DIR){p=process.env.CARGO_TARGET_DIR??d}while(A.length&&A[A.length-1]!==l.sep){let r=(0,l.join)(A,".cargo/config");if(!(0,a.existsSync)(r)){r=(0,l.join)(A,".cargo/config.toml")}if((0,a.existsSync)(r)){const n=Wr.parse((0,a.readFileSync)(r).toString());if(!p&&n.build?.["target-dir"]){const r=n.build["target-dir"];if(u().isAbsolute(r)){p=r}else{p=(0,l.normalize)((0,l.join)(A,r))}}if(!s&&!f&&typeof n.build?.target==="string"){f=n.build.target}}if(p&&f)break;A=(0,l.normalize)((0,l.join)(A,".."))}if(p){return(0,l.normalize)((0,l.join)(p,f??""))}return(0,l.normalize)((0,l.join)(d,f??""))}function getCargoManifest(r){const n=(0,l.join)(r,"Cargo.toml");const s=Wr.parse((0,a.readFileSync)(n).toString());let u=s.package.name;let d=s.package.version;if(typeof s.package.version==="object"||typeof s.package.name==="object"){const n=getWorkspaceDir(r);if(!n){throw new Error("Could not find workspace directory, but version and/or name specifies to use workspace package")}const s=(0,l.join)(n,"Cargo.toml");const A=Wr.parse((0,a.readFileSync)(s).toString());if(typeof u==="object"&&A?.workspace?.package?.name!==undefined){u=A.workspace.package.name}if(typeof d==="object"&&A?.workspace?.package?.version!==undefined){d=A.workspace.package.version}}return{...s,package:{...s.package,name:u,version:d}}}function hasDependency(r,n){const s=getPackageJson(n);return s&&(s.dependencies?.[r]||s.devDependencies?.[r])}function hasTauriScript(r){const n=getPackageJson(r);return!!n&&!!n.scripts?.tauri}function usesNpm(r){if(findUpSync("package-lock.json",{cwd:r})){if(isRunnerInstalled("npm")){return true}else{console.warn("package-lock.json detected but couldn't find `npm` executable.")}}return false}function usesYarn(r){if(findUpSync("yarn.lock",{cwd:r})){if(isRunnerInstalled("yarn")){return true}else{console.warn("yarn.lock detected but couldn't find `yarn` executable.")}}return false}function usesPnpm(r){if(findUpSync("pnpm-lock.yaml",{cwd:r})){if(isRunnerInstalled("pnpm")){return true}else{console.warn("pnpm-lock.yaml detected but couldn't find `pnpm` executable.")}}return false}function usesBun(r){if(findUpSync("bun.lockb",{cwd:r})||findUpSync("bun.lock",{cwd:r})){if(isRunnerInstalled("bun")){return true}else{console.warn("bun.lock(b) detected but couldn't find `bun` executable.")}}return false}function isRunnerInstalled(r){const n=process.platform==="win32"?"where.exe":"which";try{return vr(n,[r]).exitCode===0}catch(r){return false}}async function execCommand(r,n,{cwd:s}={},a={}){console.log(`running ${r}`,n);const l=Qr(r,n,{cwd:s,env:{FORCE_COLOR:"0",...a},lines:true,stdio:"pipe",reject:false});l.stdout?.on("data",(r=>{process.stdout.write(r)}));l.stderr?.on("data",(r=>{process.stderr.write(r)}));return new Promise(((s,a)=>{l.on("exit",(l=>{if(l&&l>0){a(new Error(`Command "${r} ${JSON.stringify(n)}" failed with exit code ${l}`))}else{s()}}))}))}function getInfo(r,n){const s=getTauriDir();if(s!==null){let u;let d;let A="en-US";let p="1";const f=TauriConfig.fromBaseConfig(s);if(r){f.mergePlatformConfig(s,r.platform)}if(n){for(const r of n){f.mergeUserConfig(Jr.DZ,r)}}u=f?.productName;if(f.version?.endsWith(".json")){const r=(0,l.join)(s,f?.version);const n=(0,a.readFileSync)(r).toString();d=JSON.parse(n).version}else{d=f?.version}const g=getCargoManifest(s);if(!(u&&d)){u=u??g.package.name;d=d??g.package.version}if(!(u&&d)){console.error("Could not determine package name and version.");process.exit(1)}if(f.wixLanguage){A=f.wixLanguage}if(f.rpmRelease){p=f.rpmRelease}return{tauriPath:s,name:u,mainBinaryName:f.mainBinaryName||g.package.name,version:d,wixLanguage:A,rpmRelease:p,unzippedSigs:f.unzippedSigs===true}}else{throw Error("Couldn't detect Tauri dir")}}function getTargetInfo(r){let n=process.arch;let s;if(Jr.m0){s="android"}else if(Jr.un){s="ios"}else if(process.platform==="win32"){s="windows"}else if(process.platform==="darwin"){s="macos"}else{s="linux"}if(r){if(r.includes("windows")){s="windows"}else if(r.includes("darwin")||r.includes("macos")){s="macos"}else if(r.includes("linux")){s="linux"}else if(r.includes("android")){s="android"}else if(r.includes("ios")){s="ios"}if(r.includes("-")){n=r.split("-")[0]}}return{arch:n,platform:s}}async function retry(r,n){const s=n+1;for(let n=1;n<=s;n++){try{return await r()}catch(r){if(n>=s)throw r;console.log(`Attempt ${n} failed. ${s-n} tries left.`)}}}function deleteGiteaReleaseAsset(r,n,s){return r.request("DELETE /repos/{owner}/{repo}/releases/{release_id}/assets/{asset_id}",{owner:Jr.eC,repo:Jr.LB,release_id:n,asset_id:s})}},84e3:module=>{module.exports=eval("require")("supports-color")},42613:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},20181:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},35317:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},49140:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},76982:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},24434:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},79896:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},58611:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},65692:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},69278:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},34589:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:assert")},16698:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:async_hooks")},4573:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer")},31421:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process")},37540:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:console")},77598:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto")},53053:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:diagnostics_channel")},40610:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:dns")},78474:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},73024:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs")},51455:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises")},37067:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http")},32467:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http2")},77030:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:net")},48161:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os")},76760:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path")},643:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:perf_hooks")},1708:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process")},41792:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:querystring")},57075:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},46466:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises")},46193:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder")},41692:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tls")},73136:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url")},57975:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},73429:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util/types")},75919:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:worker_threads")},38522:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib")},70857:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},16928:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2203:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},13193:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},64756:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},52018:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},87016:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},39023:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},43106:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},29582:(r,n)=>{var s;s={value:true};n.w=void 0;n.w={operationRequestMap:new WeakMap}},74480:(r,n)=>{var s;s={value:true};n.w=void 0;n.w={instrumenterImplementation:undefined}},90975:r=>{var n;const s=function NullObject(){};s.prototype=Object.create(null);const a=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;const l=/\\([\v\u0020-\u00ff])/gu;const u=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;const d={type:"",parameters:new s};Object.freeze(d.parameters);Object.freeze(d);function parse(r){if(typeof r!=="string"){throw new TypeError("argument header is required and must be a string")}let n=r.indexOf(";");const d=n!==-1?r.slice(0,n).trim():r.trim();if(u.test(d)===false){throw new TypeError("invalid media type")}const A={type:d.toLowerCase(),parameters:new s};if(n===-1){return A}let p;let f;let g;a.lastIndex=n;while(f=a.exec(r)){if(f.index!==n){throw new TypeError("invalid parameter format")}n+=f[0].length;p=f[1].toLowerCase();g=f[2];if(g[0]==='"'){g=g.slice(1,g.length-1);l.test(g)&&(g=g.replace(l,"$1"))}A.parameters[p]=g}if(n!==r.length){throw new TypeError("invalid parameter format")}return A}function safeParse(r){if(typeof r!=="string"){return d}let n=r.indexOf(";");const A=n!==-1?r.slice(0,n).trim():r.trim();if(u.test(A)===false){return d}const p={type:A.toLowerCase(),parameters:new s};if(n===-1){return p}let f;let g;let y;a.lastIndex=n;while(g=a.exec(r)){if(g.index!==n){return d}n+=g[0].length;f=g[1].toLowerCase();y=g[2];if(y[0]==='"'){y=y.slice(1,y.length-1);l.test(y)&&(y=y.replace(l,"$1"))}p.parameters[f]=y}if(n!==r.length){return d}return p}n={parse:parse,safeParse:safeParse};n=parse;r.exports.xL=safeParse;n=d},65033:(r,n,s)=>{var a=s(12188);function fastqueue(r,n,s){if(typeof r==="function"){s=n;n=r;r=null}if(!(s>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}var l=a(Task);var u=null;var d=null;var A=0;var p=null;var f={push:push,drain:noop,saturated:noop,pause:pause,paused:false,get concurrency(){return s},set concurrency(r){if(!(r>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}s=r;if(f.paused)return;for(;u&&A=s||f.paused){if(d){d.next=y;d=y}else{u=y;d=y;f.saturated()}}else{A++;n.call(r,y.value,y.worked)}}function unshift(a,g){var y=l.get();y.context=r;y.release=release;y.value=a;y.callback=g||noop;y.errorHandler=p;if(A>=s||f.paused){if(u){y.next=u;u=y}else{u=y;d=y;f.saturated()}}else{A++;n.call(r,y.value,y.worked)}}function release(a){if(a){l.release(a)}var p=u;if(p&&A<=s){if(!f.paused){if(d===u){d=null}u=p.next;p.next=null;n.call(r,p.value,p.worked);if(d===null){f.empty()}}else{A--}}else if(--A===0){f.drain()}}function kill(){u=null;d=null;f.drain=noop}function killAndDrain(){u=null;d=null;f.drain();f.drain=noop}function abort(){var r=u;u=null;d=null;while(r){var n=r.next;var s=r.callback;var a=r.errorHandler;var l=r.value;var A=r.context;r.value=null;r.callback=noop;r.errorHandler=null;if(a){a(new Error("abort"),l)}s.call(A,new Error("abort"));r.release(r);r=n}f.drain=noop}function error(r){p=r}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var r=this;this.worked=function worked(n,s){var a=r.callback;var l=r.errorHandler;var u=r.value;r.value=null;r.callback=noop;if(r.errorHandler){l(n,u)}a.call(r.context,n,s);r.release(r)}}function queueAsPromised(r,n,s){if(typeof r==="function"){s=n;n=r;r=null}function asyncWrapper(r,s){n.call(this,r).then((function(r){s(null,r)}),s)}var a=fastqueue(r,asyncWrapper,s);var l=a.push;var u=a.unshift;a.push=push;a.unshift=unshift;a.drained=drained;return a;function push(r){var n=new Promise((function(n,s){l(r,(function(r,a){if(r){s(r);return}n(a)}))}));n.catch(noop);return n}function unshift(r){var n=new Promise((function(n,s){u(r,(function(r,a){if(r){s(r);return}n(a)}))}));n.catch(noop);return n}function drained(){var r=new Promise((function(r){process.nextTick((function(){if(a.idle()){r()}else{var n=a.drain;a.drain=function(){if(typeof n==="function")n();r();a.drain=n}}}))}));return r}}r.exports=fastqueue;r.exports.promise=queueAsPromised},12640:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Glob=void 0;const a=s(87414);const l=s(73136);const u=s(82918);const d=s(83674);const A=s(46236);const p=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(r,n){if(!n)throw new TypeError("glob options required");this.withFileTypes=!!n.withFileTypes;this.signal=n.signal;this.follow=!!n.follow;this.dot=!!n.dot;this.dotRelative=!!n.dotRelative;this.nodir=!!n.nodir;this.mark=!!n.mark;if(!n.cwd){this.cwd=""}else if(n.cwd instanceof URL||n.cwd.startsWith("file://")){n.cwd=(0,l.fileURLToPath)(n.cwd)}this.cwd=n.cwd||"";this.root=n.root;this.magicalBraces=!!n.magicalBraces;this.nobrace=!!n.nobrace;this.noext=!!n.noext;this.realpath=!!n.realpath;this.absolute=n.absolute;this.includeChildMatches=n.includeChildMatches!==false;this.noglobstar=!!n.noglobstar;this.matchBase=!!n.matchBase;this.maxDepth=typeof n.maxDepth==="number"?n.maxDepth:Infinity;this.stat=!!n.stat;this.ignore=n.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof r==="string"){r=[r]}this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){r=r.map((r=>r.replace(/\\/g,"/")))}if(this.matchBase){if(n.noglobstar){throw new TypeError("base matching requires globstar")}r=r.map((r=>r.includes("/")?r:`./**/${r}`))}this.pattern=r;this.platform=n.platform||p;this.opts={...n,platform:this.platform};if(n.scurry){this.scurry=n.scurry;if(n.nocase!==undefined&&n.nocase!==n.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const r=n.platform==="win32"?u.PathScurryWin32:n.platform==="darwin"?u.PathScurryDarwin:n.platform?u.PathScurryPosix:u.PathScurry;this.scurry=new r(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;const s=this.platform==="darwin"||this.platform==="win32";const A={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const f=this.pattern.map((r=>new a.Minimatch(r,A)));const[g,y]=f.reduce(((r,n)=>{r[0].push(...n.set);r[1].push(...n.globParts);return r}),[[],[]]);this.patterns=g.map(((r,n)=>{const s=y[n];if(!s)throw new Error("invalid pattern object");return new d.Pattern(r,s,0,this.platform)}))}async walk(){return[...await new A.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new A.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new A.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new A.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}n.Glob=Glob},38458:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.hasMagic=void 0;const a=s(87414);const hasMagic=(r,n={})=>{if(!Array.isArray(r)){r=[r]}for(const s of r){if(new a.Minimatch(s,n).hasMagic())return true}return false};n.hasMagic=hasMagic},20600:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Ignore=void 0;const a=s(87414);const l=s(83674);const u=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(r,{nobrace:n,nocase:s,noext:a,noglobstar:l,platform:d=u}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=d;this.mmopts={dot:true,nobrace:n,nocase:s,noext:a,noglobstar:l,optimizationLevel:2,platform:d,nocomment:true,nonegate:true};for(const n of r)this.add(n)}add(r){const n=new a.Minimatch(r,this.mmopts);for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.glob=n.sync=n.iterate=n.iterateSync=n.stream=n.streamSync=n.Ignore=n.hasMagic=n.Glob=n.unescape=n.escape=void 0;n.globStreamSync=globStreamSync;n.globStream=globStream;n.globSync=globSync;n.globIterateSync=globIterateSync;n.globIterate=globIterate;const a=s(87414);const l=s(12640);const u=s(38458);var d=s(87414);Object.defineProperty(n,"escape",{enumerable:true,get:function(){return d.escape}});Object.defineProperty(n,"unescape",{enumerable:true,get:function(){return d.unescape}});var A=s(12640);Object.defineProperty(n,"Glob",{enumerable:true,get:function(){return A.Glob}});var p=s(38458);Object.defineProperty(n,"hasMagic",{enumerable:true,get:function(){return p.hasMagic}});var f=s(20600);Object.defineProperty(n,"Ignore",{enumerable:true,get:function(){return f.Ignore}});function globStreamSync(r,n={}){return new l.Glob(r,n).streamSync()}function globStream(r,n={}){return new l.Glob(r,n).stream()}function globSync(r,n={}){return new l.Glob(r,n).walkSync()}async function glob_(r,n={}){return new l.Glob(r,n).walk()}function globIterateSync(r,n={}){return new l.Glob(r,n).iterateSync()}function globIterate(r,n={}){return new l.Glob(r,n).iterate()}n.streamSync=globStreamSync;n.stream=Object.assign(globStream,{sync:globStreamSync});n.iterateSync=globIterateSync;n.iterate=Object.assign(globIterate,{sync:globIterateSync});n.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});n.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:n.sync,globStream:globStream,stream:n.stream,globStreamSync:globStreamSync,streamSync:n.streamSync,globIterate:globIterate,iterate:n.iterate,globIterateSync:globIterateSync,iterateSync:n.iterateSync,Glob:l.Glob,hasMagic:u.hasMagic,escape:a.escape,unescape:a.unescape});n.glob.glob=n.glob},83674:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Pattern=void 0;const a=s(87414);const isPatternList=r=>r.length>=1;const isGlobList=r=>r.length>=1;class Pattern{#De;#Ne;#j;length;#Te;#xe;#ke;#_e;#Pe;#Fe;#Le=true;constructor(r,n,s,a){if(!isPatternList(r)){throw new TypeError("empty pattern list")}if(!isGlobList(n)){throw new TypeError("empty glob list")}if(n.length!==r.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=r.length;if(s<0||s>=this.length){throw new TypeError("index out of range")}this.#De=r;this.#Ne=n;this.#j=s;this.#Te=a;if(this.#j===0){if(this.isUNC()){const[r,n,s,a,...l]=this.#De;const[u,d,A,p,...f]=this.#Ne;if(l[0]===""){l.shift();f.shift()}const g=[r,n,s,a,""].join("/");const y=[u,d,A,p,""].join("/");this.#De=[g,...l];this.#Ne=[y,...f];this.length=this.#De.length}else if(this.isDrive()||this.isAbsolute()){const[r,...n]=this.#De;const[s,...a]=this.#Ne;if(n[0]===""){n.shift();a.shift()}const l=r+"/";const u=s+"/";this.#De=[l,...n];this.#Ne=[u,...a];this.length=this.#De.length}}}pattern(){return this.#De[this.#j]}isString(){return typeof this.#De[this.#j]==="string"}isGlobstar(){return this.#De[this.#j]===a.GLOBSTAR}isRegExp(){return this.#De[this.#j]instanceof RegExp}globString(){return this.#ke=this.#ke||(this.#j===0?this.isAbsolute()?this.#Ne[0]+this.#Ne.slice(1).join("/"):this.#Ne.join("/"):this.#Ne.slice(this.#j).join("/"))}hasMore(){return this.length>this.#j+1}rest(){if(this.#xe!==undefined)return this.#xe;if(!this.hasMore())return this.#xe=null;this.#xe=new Pattern(this.#De,this.#Ne,this.#j+1,this.#Te);this.#xe.#Fe=this.#Fe;this.#xe.#Pe=this.#Pe;this.#xe.#_e=this.#_e;return this.#xe}isUNC(){const r=this.#De;return this.#Pe!==undefined?this.#Pe:this.#Pe=this.#Te==="win32"&&this.#j===0&&r[0]===""&&r[1]===""&&typeof r[2]==="string"&&!!r[2]&&typeof r[3]==="string"&&!!r[3]}isDrive(){const r=this.#De;return this.#_e!==undefined?this.#_e:this.#_e=this.#Te==="win32"&&this.#j===0&&this.length>1&&typeof r[0]==="string"&&/^[a-z]:$/i.test(r[0])}isAbsolute(){const r=this.#De;return this.#Fe!==undefined?this.#Fe:this.#Fe=r[0]===""&&r.length>1||this.isDrive()||this.isUNC()}root(){const r=this.#De[0];return typeof r==="string"&&this.isAbsolute()&&this.#j===0?r:""}checkFollowGlobstar(){return!(this.#j===0||!this.isGlobstar()||!this.#Le)}markFollowGlobstar(){if(this.#j===0||!this.isGlobstar()||!this.#Le)return false;this.#Le=false;return true}}n.Pattern=Pattern},41684:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Processor=n.SubWalks=n.MatchRecord=n.HasWalkedCache=void 0;const a=s(87414);class HasWalkedCache{store;constructor(r=new Map){this.store=r}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(r,n){return this.store.get(r.fullpath())?.has(n.globString())}storeWalked(r,n){const s=r.fullpath();const a=this.store.get(s);if(a)a.add(n.globString());else this.store.set(s,new Set([n.globString()]))}}n.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(r,n,s){const a=(n?2:0)|(s?1:0);const l=this.store.get(r);this.store.set(r,l===undefined?a:a&l)}entries(){return[...this.store.entries()].map((([r,n])=>[r,!!(n&2),!!(n&1)]))}}n.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(r,n){if(!r.canReaddir()){return}const s=this.store.get(r);if(s){if(!s.find((r=>r.globString()===n.globString()))){s.push(n)}}else this.store.set(r,[n])}get(r){const n=this.store.get(r);if(!n){throw new Error("attempting to walk unknown path")}return n}entries(){return this.keys().map((r=>[r,this.store.get(r)]))}keys(){return[...this.store.keys()].filter((r=>r.canReaddir()))}}n.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(r,n){this.opts=r;this.follow=!!r.follow;this.dot=!!r.dot;this.hasWalkedCache=n?n.copy():new HasWalkedCache}processPatterns(r,n){this.patterns=n;const s=n.map((n=>[r,n]));for(let[r,n]of s){this.hasWalkedCache.storeWalked(r,n);const s=n.root();const l=n.isAbsolute()&&this.opts.absolute!==false;if(s){r=r.resolve(s==="/"&&this.opts.root!==undefined?this.opts.root:s);const a=n.rest();if(!a){this.matches.add(r,true,false);continue}else{n=a}}if(r.isENOENT())continue;let u;let d;let A=false;while(typeof(u=n.pattern())==="string"&&(d=n.rest())){const s=r.resolve(u);r=s;n=d;A=true}u=n.pattern();d=n.rest();if(A){if(this.hasWalkedCache.hasWalked(r,n))continue;this.hasWalkedCache.storeWalked(r,n)}if(typeof u==="string"){const n=u===".."||u===""||u===".";this.matches.add(r.resolve(u),l,n);continue}else if(u===a.GLOBSTAR){if(!r.isSymbolicLink()||this.follow||n.checkFollowGlobstar()){this.subwalks.add(r,n)}const s=d?.pattern();const a=d?.rest();if(!d||(s===""||s===".")&&!a){this.matches.add(r,l,s===""||s===".")}else{if(s===".."){const n=r.parent||r;if(!a)this.matches.add(n,l,true);else if(!this.hasWalkedCache.hasWalked(n,a)){this.subwalks.add(n,a)}}}}else if(u instanceof RegExp){this.subwalks.add(r,n)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(r,n){const s=this.subwalks.get(r);const l=this.child();for(const r of n){for(const n of s){const s=n.isAbsolute();const u=n.pattern();const d=n.rest();if(u===a.GLOBSTAR){l.testGlobstar(r,n,d,s)}else if(u instanceof RegExp){l.testRegExp(r,u,d,s)}else{l.testString(r,u,d,s)}}}return l}testGlobstar(r,n,s,a){if(this.dot||!r.name.startsWith(".")){if(!n.hasMore()){this.matches.add(r,a,false)}if(r.canReaddir()){if(this.follow||!r.isSymbolicLink()){this.subwalks.add(r,n)}else if(r.isSymbolicLink()){if(s&&n.checkFollowGlobstar()){this.subwalks.add(r,s)}else if(n.markFollowGlobstar()){this.subwalks.add(r,n)}}}}if(s){const n=s.pattern();if(typeof n==="string"&&n!==".."&&n!==""&&n!=="."){this.testString(r,n,s.rest(),a)}else if(n===".."){const n=r.parent||r;this.subwalks.add(n,s)}else if(n instanceof RegExp){this.testRegExp(r,n,s.rest(),a)}}}testRegExp(r,n,s,a){if(!n.test(r.name))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}testString(r,n,s,a){if(!r.isNamed(n))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}}n.Processor=Processor},46236:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.GlobStream=n.GlobWalker=n.GlobUtil=void 0;const a=s(59733);const l=s(20600);const u=s(41684);const makeIgnore=(r,n)=>typeof r==="string"?new l.Ignore([r],n):Array.isArray(r)?new l.Ignore(r,n):r;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#Oe=[];#Me;#Ue;signal;maxDepth;includeChildMatches;constructor(r,n,s){this.patterns=r;this.path=n;this.opts=s;this.#Ue=!s.posix&&s.platform==="win32"?"\\":"/";this.includeChildMatches=s.includeChildMatches!==false;if(s.ignore||!this.includeChildMatches){this.#Me=makeIgnore(s.ignore??[],s);if(!this.includeChildMatches&&typeof this.#Me.add!=="function"){const r="cannot ignore child matches, ignore lacks add() method.";throw new Error(r)}}this.maxDepth=s.maxDepth||Infinity;if(s.signal){this.signal=s.signal;this.signal.addEventListener("abort",(()=>{this.#Oe.length=0}))}}#He(r){return this.seen.has(r)||!!this.#Me?.ignored?.(r)}#Ge(r){return!!this.#Me?.childrenIgnored?.(r)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let r=undefined;while(!this.paused&&(r=this.#Oe.shift())){r()}}onResume(r){if(this.signal?.aborted)return;if(!this.paused){r()}else{this.#Oe.push(r)}}async matchCheck(r,n){if(n&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||await r.realpath();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?await r.lstat():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=await l.realpath();if(r&&(r.isUnknown()||this.opts.stat)){await r.lstat()}}return this.matchCheckTest(l,n)}matchCheckTest(r,n){return r&&(this.maxDepth===Infinity||r.depth()<=this.maxDepth)&&(!n||r.canReaddir())&&(!this.opts.nodir||!r.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!r.isSymbolicLink()||!r.realpathCached()?.isDirectory())&&!this.#He(r)?r:undefined}matchCheckSync(r,n){if(n&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||r.realpathSync();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?r.lstatSync():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=l.realpathSync();if(r&&(r?.isUnknown()||this.opts.stat)){r.lstatSync()}}return this.matchCheckTest(l,n)}matchFinish(r,n){if(this.#He(r))return;if(!this.includeChildMatches&&this.#Me?.add){const n=`${r.relativePosix()}/**`;this.#Me.add(n)}const s=this.opts.absolute===undefined?n:this.opts.absolute;this.seen.add(r);const a=this.opts.mark&&r.isDirectory()?this.#Ue:"";if(this.opts.withFileTypes){this.matchEmit(r)}else if(s){const n=this.opts.posix?r.fullpathPosix():r.fullpath();this.matchEmit(n+a)}else{const n=this.opts.posix?r.relativePosix():r.relative();const s=this.opts.dotRelative&&!n.startsWith(".."+this.#Ue)?"."+this.#Ue:"";this.matchEmit(!n?"."+a:s+n+a)}}async match(r,n,s){const a=await this.matchCheck(r,s);if(a)this.matchFinish(a,n)}matchSync(r,n,s){const a=this.matchCheckSync(r,s);if(a)this.matchFinish(a,n)}walkCB(r,n,s){if(this.signal?.aborted)s();this.walkCB2(r,n,new u.Processor(this.opts),s)}walkCB2(r,n,s,a){if(this.#Ge(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2(r,n,s,a)));return}s.processPatterns(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#He(r))continue;l++;this.match(r,n,a).then((()=>next()))}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const n=r.readdirCached();if(r.calledReaddir())this.walkCB3(r,n,s,next);else{r.readdirCB(((n,a)=>this.walkCB3(r,a,s,next)),true)}}next()}walkCB3(r,n,s,a){s=s.filterEntries(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#He(r))continue;l++;this.match(r,n,a).then((()=>next()))}for(const[r,n]of s.subwalks.entries()){l++;this.walkCB2(r,n,s.child(),next)}next()}walkCBSync(r,n,s){if(this.signal?.aborted)s();this.walkCB2Sync(r,n,new u.Processor(this.opts),s)}walkCB2Sync(r,n,s,a){if(this.#Ge(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2Sync(r,n,s,a)));return}s.processPatterns(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#He(r))continue;this.matchSync(r,n,a)}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const n=r.readdirSync();this.walkCB3Sync(r,n,s,next)}next()}walkCB3Sync(r,n,s,a){s=s.filterEntries(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#He(r))continue;this.matchSync(r,n,a)}for(const[r,n]of s.subwalks.entries()){l++;this.walkCB2Sync(r,n,s.child(),next)}next()}}n.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches=new Set;constructor(r,n,s){super(r,n,s)}matchEmit(r){this.matches.add(r)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((r,n)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){n(this.signal.reason)}else{r(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}n.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(r,n,s){super(r,n,s);this.results=new a.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(r){this.results.write(r);if(!this.results.flowing)this.pause()}stream(){const r=this.path;if(r.isUnknown()){r.lstat().then((()=>{this.walkCB(r,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(r,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}n.GlobStream=GlobStream},23514:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.LRUCache=void 0;const s=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const a=new Set;const l=typeof process==="object"&&!!process?process:{};const emitWarning=(r,n,s,a)=>{typeof l.emitWarning==="function"?l.emitWarning(r,n,s,a):console.error(`[${s}] ${n}: ${r}`)};let u=globalThis.AbortController;let d=globalThis.AbortSignal;if(typeof u==="undefined"){d=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(r,n){this._onabort.push(n)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new d;abort(r){if(this.signal.aborted)return;this.signal.reason=r;this.signal.aborted=true;for(const n of this.signal._onabort){n(r)}this.signal.onabort?.(r)}};let r=l.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!r)return;r=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=r=>!a.has(r);const A=Symbol("type");const isPosInt=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r);const getUintArray=r=>!isPosInt(r)?null:r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(r){super(r);this.fill(0)}}class Stack{heap;length;static#ze=false;static create(r){const n=getUintArray(r);if(!n)return[];Stack.#ze=true;const s=new Stack(r,n);Stack.#ze=false;return s}constructor(r,n){if(!Stack.#ze){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new n(r);this.length=0}push(r){this.heap[this.length++]=r}pop(){return this.heap[--this.length]}}class LRUCache{#qe;#w;#Ve;#We;#je;#Ye;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Q;#Je;#$e;#Ke;#Xe;#Ze;#et;#tt;#rt;#nt;#st;#it;#ot;#at;#lt;#ct;#ut;static unsafeExposeInternals(r){return{starts:r.#ot,ttls:r.#at,sizes:r.#it,keyMap:r.#$e,keyList:r.#Ke,valList:r.#Xe,next:r.#Ze,prev:r.#et,get head(){return r.#tt},get tail(){return r.#rt},free:r.#nt,isBackgroundFetch:n=>r.#dt(n),backgroundFetch:(n,s,a,l)=>r.#At(n,s,a,l),moveToTail:n=>r.#pt(n),indexes:n=>r.#ft(n),rindexes:n=>r.#ht(n),isStale:n=>r.#mt(n)}}get max(){return this.#qe}get maxSize(){return this.#w}get calculatedSize(){return this.#Je}get size(){return this.#Q}get fetchMethod(){return this.#je}get memoMethod(){return this.#Ye}get dispose(){return this.#Ve}get disposeAfter(){return this.#We}constructor(r){const{max:n=0,ttl:s,ttlResolution:l=1,ttlAutopurge:u,updateAgeOnGet:d,updateAgeOnHas:A,allowStale:p,dispose:f,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:b,maxSize:C=0,maxEntrySize:w=0,sizeCalculation:B,fetchMethod:I,memoMethod:S,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:D,ignoreFetchAbort:N}=r;if(n!==0&&!isPosInt(n)){throw new TypeError("max option must be a nonnegative integer")}const T=n?getUintArray(n):Array;if(!T){throw new Error("invalid max value: "+n)}this.#qe=n;this.#w=C;this.maxEntrySize=w||this.#w;this.sizeCalculation=B;if(this.sizeCalculation){if(!this.#w&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(S!==undefined&&typeof S!=="function"){throw new TypeError("memoMethod must be a function if defined")}this.#Ye=S;if(I!==undefined&&typeof I!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#je=I;this.#ct=!!I;this.#$e=new Map;this.#Ke=new Array(n).fill(undefined);this.#Xe=new Array(n).fill(undefined);this.#Ze=new T(n);this.#et=new T(n);this.#tt=0;this.#rt=0;this.#nt=Stack.create(n);this.#Q=0;this.#Je=0;if(typeof f==="function"){this.#Ve=f}if(typeof g==="function"){this.#We=g;this.#st=[]}else{this.#We=undefined;this.#st=undefined}this.#lt=!!this.#Ve;this.#ut=!!this.#We;this.noDisposeOnSet=!!y;this.noUpdateTTL=!!b;this.noDeleteOnFetchRejection=!!Q;this.allowStaleOnFetchRejection=!!R;this.allowStaleOnFetchAbort=!!D;this.ignoreFetchAbort=!!N;if(this.maxEntrySize!==0){if(this.#w!==0){if(!isPosInt(this.#w)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#gt()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!v;this.updateAgeOnGet=!!d;this.updateAgeOnHas=!!A;this.ttlResolution=isPosInt(l)||l===0?l:1;this.ttlAutopurge=!!u;this.ttl=s||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#yt()}if(this.#qe===0&&this.ttl===0&&this.#w===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#qe&&!this.#w){const r="LRU_CACHE_UNBOUNDED";if(shouldWarn(r)){a.add(r);const n="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(n,"UnboundedCacheWarning",r,LRUCache)}}}getRemainingTTL(r){return this.#$e.has(r)?Infinity:0}#yt(){const r=new ZeroArray(this.#qe);const n=new ZeroArray(this.#qe);this.#at=r;this.#ot=n;this.#Et=(a,l,u=s.now())=>{n[a]=l!==0?u:0;r[a]=l;if(l!==0&&this.ttlAutopurge){const r=setTimeout((()=>{if(this.#mt(a)){this.#bt(this.#Ke[a],"expire")}}),l+1);if(r.unref){r.unref()}}};this.#Ct=a=>{n[a]=r[a]!==0?s.now():0};this.#wt=(s,l)=>{if(r[l]){const u=r[l];const d=n[l];if(!u||!d)return;s.ttl=u;s.start=d;s.now=a||getNow();const A=s.now-d;s.remainingTTL=u-A}};let a=0;const getNow=()=>{const r=s.now();if(this.ttlResolution>0){a=r;const n=setTimeout((()=>a=0),this.ttlResolution);if(n.unref){n.unref()}}return r};this.getRemainingTTL=s=>{const l=this.#$e.get(s);if(l===undefined){return 0}const u=r[l];const d=n[l];if(!u||!d){return Infinity}const A=(a||getNow())-d;return u-A};this.#mt=s=>{const l=n[s];const u=r[s];return!!u&&!!l&&(a||getNow())-l>u}}#Ct=()=>{};#wt=()=>{};#Et=()=>{};#mt=()=>false;#gt(){const r=new ZeroArray(this.#qe);this.#Je=0;this.#it=r;this.#Bt=n=>{this.#Je-=r[n];r[n]=0};this.#It=(r,n,s,a)=>{if(this.#dt(n)){return 0}if(!isPosInt(s)){if(a){if(typeof a!=="function"){throw new TypeError("sizeCalculation must be a function")}s=a(n,r);if(!isPosInt(s)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return s};this.#St=(n,s,a)=>{r[n]=s;if(this.#w){const s=this.#w-r[n];while(this.#Je>s){this.#Qt(true)}}this.#Je+=r[n];if(a){a.entrySize=s;a.totalCalculatedSize=this.#Je}}}#Bt=r=>{};#St=(r,n,s)=>{};#It=(r,n,s,a)=>{if(s||a){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#ft({allowStale:r=this.allowStale}={}){if(this.#Q){for(let n=this.#rt;true;){if(!this.#vt(n)){break}if(r||!this.#mt(n)){yield n}if(n===this.#tt){break}else{n=this.#et[n]}}}}*#ht({allowStale:r=this.allowStale}={}){if(this.#Q){for(let n=this.#tt;true;){if(!this.#vt(n)){break}if(r||!this.#mt(n)){yield n}if(n===this.#rt){break}else{n=this.#Ze[n]}}}}#vt(r){return r!==undefined&&this.#$e.get(this.#Ke[r])===r}*entries(){for(const r of this.#ft()){if(this.#Xe[r]!==undefined&&this.#Ke[r]!==undefined&&!this.#dt(this.#Xe[r])){yield[this.#Ke[r],this.#Xe[r]]}}}*rentries(){for(const r of this.#ht()){if(this.#Xe[r]!==undefined&&this.#Ke[r]!==undefined&&!this.#dt(this.#Xe[r])){yield[this.#Ke[r],this.#Xe[r]]}}}*keys(){for(const r of this.#ft()){const n=this.#Ke[r];if(n!==undefined&&!this.#dt(this.#Xe[r])){yield n}}}*rkeys(){for(const r of this.#ht()){const n=this.#Ke[r];if(n!==undefined&&!this.#dt(this.#Xe[r])){yield n}}}*values(){for(const r of this.#ft()){const n=this.#Xe[r];if(n!==undefined&&!this.#dt(this.#Xe[r])){yield this.#Xe[r]}}}*rvalues(){for(const r of this.#ht()){const n=this.#Xe[r];if(n!==undefined&&!this.#dt(this.#Xe[r])){yield this.#Xe[r]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(r,n={}){for(const s of this.#ft()){const a=this.#Xe[s];const l=this.#dt(a)?a.__staleWhileFetching:a;if(l===undefined)continue;if(r(l,this.#Ke[s],this)){return this.get(this.#Ke[s],n)}}}forEach(r,n=this){for(const s of this.#ft()){const a=this.#Xe[s];const l=this.#dt(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(n,l,this.#Ke[s],this)}}rforEach(r,n=this){for(const s of this.#ht()){const a=this.#Xe[s];const l=this.#dt(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(n,l,this.#Ke[s],this)}}purgeStale(){let r=false;for(const n of this.#ht({allowStale:true})){if(this.#mt(n)){this.#bt(this.#Ke[n],"expire");r=true}}return r}info(r){const n=this.#$e.get(r);if(n===undefined)return undefined;const a=this.#Xe[n];const l=this.#dt(a)?a.__staleWhileFetching:a;if(l===undefined)return undefined;const u={value:l};if(this.#at&&this.#ot){const r=this.#at[n];const a=this.#ot[n];if(r&&a){const n=r-(s.now()-a);u.ttl=n;u.start=Date.now()}}if(this.#it){u.size=this.#it[n]}return u}dump(){const r=[];for(const n of this.#ft({allowStale:true})){const a=this.#Ke[n];const l=this.#Xe[n];const u=this.#dt(l)?l.__staleWhileFetching:l;if(u===undefined||a===undefined)continue;const d={value:u};if(this.#at&&this.#ot){d.ttl=this.#at[n];const r=s.now()-this.#ot[n];d.start=Math.floor(Date.now()-r)}if(this.#it){d.size=this.#it[n]}r.unshift([a,d])}return r}load(r){this.clear();for(const[n,a]of r){if(a.start){const r=Date.now()-a.start;a.start=s.now()-r}this.set(n,a.value,a)}}set(r,n,s={}){if(n===undefined){this.delete(r);return this}const{ttl:a=this.ttl,start:l,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:d=this.sizeCalculation,status:A}=s;let{noUpdateTTL:p=this.noUpdateTTL}=s;const f=this.#It(r,n,s.size||0,d);if(this.maxEntrySize&&f>this.maxEntrySize){if(A){A.set="miss";A.maxEntrySizeExceeded=true}this.#bt(r,"set");return this}let g=this.#Q===0?undefined:this.#$e.get(r);if(g===undefined){g=this.#Q===0?this.#rt:this.#nt.length!==0?this.#nt.pop():this.#Q===this.#qe?this.#Qt(false):this.#Q;this.#Ke[g]=r;this.#Xe[g]=n;this.#$e.set(r,g);this.#Ze[this.#rt]=g;this.#et[g]=this.#rt;this.#rt=g;this.#Q++;this.#St(g,f,A);if(A)A.set="add";p=false}else{this.#pt(g);const s=this.#Xe[g];if(n!==s){if(this.#ct&&this.#dt(s)){s.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:n}=s;if(n!==undefined&&!u){if(this.#lt){this.#Ve?.(n,r,"set")}if(this.#ut){this.#st?.push([n,r,"set"])}}}else if(!u){if(this.#lt){this.#Ve?.(s,r,"set")}if(this.#ut){this.#st?.push([s,r,"set"])}}this.#Bt(g);this.#St(g,f,A);this.#Xe[g]=n;if(A){A.set="replace";const r=s&&this.#dt(s)?s.__staleWhileFetching:s;if(r!==undefined)A.oldValue=r}}else if(A){A.set="update"}}if(a!==0&&!this.#at){this.#yt()}if(this.#at){if(!p){this.#Et(g,a,l)}if(A)this.#wt(A,g)}if(!u&&this.#ut&&this.#st){const r=this.#st;let n;while(n=r?.shift()){this.#We?.(...n)}}return this}pop(){try{while(this.#Q){const r=this.#Xe[this.#tt];this.#Qt(true);if(this.#dt(r)){if(r.__staleWhileFetching){return r.__staleWhileFetching}}else if(r!==undefined){return r}}}finally{if(this.#ut&&this.#st){const r=this.#st;let n;while(n=r?.shift()){this.#We?.(...n)}}}}#Qt(r){const n=this.#tt;const s=this.#Ke[n];const a=this.#Xe[n];if(this.#ct&&this.#dt(a)){a.__abortController.abort(new Error("evicted"))}else if(this.#lt||this.#ut){if(this.#lt){this.#Ve?.(a,s,"evict")}if(this.#ut){this.#st?.push([a,s,"evict"])}}this.#Bt(n);if(r){this.#Ke[n]=undefined;this.#Xe[n]=undefined;this.#nt.push(n)}if(this.#Q===1){this.#tt=this.#rt=0;this.#nt.length=0}else{this.#tt=this.#Ze[n]}this.#$e.delete(s);this.#Q--;return n}has(r,n={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:a}=n;const l=this.#$e.get(r);if(l!==undefined){const r=this.#Xe[l];if(this.#dt(r)&&r.__staleWhileFetching===undefined){return false}if(!this.#mt(l)){if(s){this.#Ct(l)}if(a){a.has="hit";this.#wt(a,l)}return true}else if(a){a.has="stale";this.#wt(a,l)}}else if(a){a.has="miss"}return false}peek(r,n={}){const{allowStale:s=this.allowStale}=n;const a=this.#$e.get(r);if(a===undefined||!s&&this.#mt(a)){return}const l=this.#Xe[a];return this.#dt(l)?l.__staleWhileFetching:l}#At(r,n,s,a){const l=n===undefined?undefined:this.#Xe[n];if(this.#dt(l)){return l}const d=new u;const{signal:A}=s;A?.addEventListener("abort",(()=>d.abort(A.reason)),{signal:d.signal});const p={signal:d.signal,options:s,context:a};const cb=(a,l=false)=>{const{aborted:u}=d.signal;const A=s.ignoreFetchAbort&&a!==undefined;if(s.status){if(u&&!l){s.status.fetchAborted=true;s.status.fetchError=d.signal.reason;if(A)s.status.fetchAbortIgnored=true}else{s.status.fetchResolved=true}}if(u&&!A&&!l){return fetchFail(d.signal.reason)}const g=f;if(this.#Xe[n]===f){if(a===undefined){if(g.__staleWhileFetching){this.#Xe[n]=g.__staleWhileFetching}else{this.#bt(r,"fetch")}}else{if(s.status)s.status.fetchUpdated=true;this.set(r,a,p.options)}}return a};const eb=r=>{if(s.status){s.status.fetchRejected=true;s.status.fetchError=r}return fetchFail(r)};const fetchFail=a=>{const{aborted:l}=d.signal;const u=l&&s.allowStaleOnFetchAbort;const A=u||s.allowStaleOnFetchRejection;const p=A||s.noDeleteOnFetchRejection;const g=f;if(this.#Xe[n]===f){const s=!p||g.__staleWhileFetching===undefined;if(s){this.#bt(r,"fetch")}else if(!u){this.#Xe[n]=g.__staleWhileFetching}}if(A){if(s.status&&g.__staleWhileFetching!==undefined){s.status.returnedStale=true}return g.__staleWhileFetching}else if(g.__returned===g){throw a}};const pcall=(n,a)=>{const u=this.#je?.(r,l,p);if(u&&u instanceof Promise){u.then((r=>n(r===undefined?undefined:r)),a)}d.signal.addEventListener("abort",(()=>{if(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort){n(undefined);if(s.allowStaleOnFetchAbort){n=r=>cb(r,true)}}}))};if(s.status)s.status.fetchDispatched=true;const f=new Promise(pcall).then(cb,eb);const g=Object.assign(f,{__abortController:d,__staleWhileFetching:l,__returned:undefined});if(n===undefined){this.set(r,g,{...p.options,status:undefined});n=this.#$e.get(r)}else{this.#Xe[n]=g}return g}#dt(r){if(!this.#ct)return false;const n=r;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof u}async fetch(r,n={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:d=this.noDisposeOnSet,size:A=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:w,forceRefresh:B=false,status:I,signal:S}=n;if(!this.#ct){if(I)I.fetch="get";return this.get(r,{allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,status:I})}const Q={allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,ttl:u,noDisposeOnSet:d,size:A,sizeCalculation:p,noUpdateTTL:f,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:C,ignoreFetchAbort:b,status:I,signal:S};let v=this.#$e.get(r);if(v===undefined){if(I)I.fetch="miss";const n=this.#At(r,v,Q,w);return n.__returned=n}else{const n=this.#Xe[v];if(this.#dt(n)){const r=s&&n.__staleWhileFetching!==undefined;if(I){I.fetch="inflight";if(r)I.returnedStale=true}return r?n.__staleWhileFetching:n.__returned=n}const l=this.#mt(v);if(!B&&!l){if(I)I.fetch="hit";this.#pt(v);if(a){this.#Ct(v)}if(I)this.#wt(I,v);return n}const u=this.#At(r,v,Q,w);const d=u.__staleWhileFetching!==undefined;const A=d&&s;if(I){I.fetch=l?"stale":"refresh";if(A&&l)I.returnedStale=true}return A?u.__staleWhileFetching:u.__returned=u}}async forceFetch(r,n={}){const s=await this.fetch(r,n);if(s===undefined)throw new Error("fetch() returned undefined");return s}memo(r,n={}){const s=this.#Ye;if(!s){throw new Error("no memoMethod provided to constructor")}const{context:a,forceRefresh:l,...u}=n;const d=this.get(r,u);if(!l&&d!==undefined)return d;const A=s(r,d,{options:u,context:a});this.set(r,A,u);return A}get(r,n={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:u}=n;const d=this.#$e.get(r);if(d!==undefined){const n=this.#Xe[d];const A=this.#dt(n);if(u)this.#wt(u,d);if(this.#mt(d)){if(u)u.get="stale";if(!A){if(!l){this.#bt(r,"expire")}if(u&&s)u.returnedStale=true;return s?n:undefined}else{if(u&&s&&n.__staleWhileFetching!==undefined){u.returnedStale=true}return s?n.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(A){return n.__staleWhileFetching}this.#pt(d);if(a){this.#Ct(d)}return n}}else if(u){u.get="miss"}}#H(r,n){this.#et[n]=r;this.#Ze[r]=n}#pt(r){if(r!==this.#rt){if(r===this.#tt){this.#tt=this.#Ze[r]}else{this.#H(this.#et[r],this.#Ze[r])}this.#H(this.#rt,r);this.#rt=r}}delete(r){return this.#bt(r,"delete")}#bt(r,n){let s=false;if(this.#Q!==0){const a=this.#$e.get(r);if(a!==undefined){s=true;if(this.#Q===1){this.#Rt(n)}else{this.#Bt(a);const s=this.#Xe[a];if(this.#dt(s)){s.__abortController.abort(new Error("deleted"))}else if(this.#lt||this.#ut){if(this.#lt){this.#Ve?.(s,r,n)}if(this.#ut){this.#st?.push([s,r,n])}}this.#$e.delete(r);this.#Ke[a]=undefined;this.#Xe[a]=undefined;if(a===this.#rt){this.#rt=this.#et[a]}else if(a===this.#tt){this.#tt=this.#Ze[a]}else{const r=this.#et[a];this.#Ze[r]=this.#Ze[a];const n=this.#Ze[a];this.#et[n]=this.#et[a]}this.#Q--;this.#nt.push(a)}}}if(this.#ut&&this.#st?.length){const r=this.#st;let n;while(n=r?.shift()){this.#We?.(...n)}}return s}clear(){return this.#Rt("delete")}#Rt(r){for(const n of this.#ht({allowStale:true})){const s=this.#Xe[n];if(this.#dt(s)){s.__abortController.abort(new Error("deleted"))}else{const a=this.#Ke[n];if(this.#lt){this.#Ve?.(s,a,r)}if(this.#ut){this.#st?.push([s,a,r])}}}this.#$e.clear();this.#Xe.fill(undefined);this.#Ke.fill(undefined);if(this.#at&&this.#ot){this.#at.fill(0);this.#ot.fill(0)}if(this.#it){this.#it.fill(0)}this.#tt=0;this.#rt=0;this.#nt.length=0;this.#Je=0;this.#Q=0;if(this.#ut&&this.#st){const r=this.#st;let n;while(n=r?.shift()){this.#We?.(...n)}}}}n.LRUCache=LRUCache},37382:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.assertValidPattern=void 0;const s=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>s){throw new TypeError("pattern is too long")}};n.assertValidPattern=assertValidPattern},20174:(r,n,s)=>{var a;Object.defineProperty(n,"__esModule",{value:true});n.AST=void 0;const l=s(61039);const u=s(13896);const d=new Set(["!","?","+","*","@"]);const isExtglobType=r=>d.has(r);const isExtglobAST=r=>isExtglobType(r.type);const A=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]);const p=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]);const f=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]);const g=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]);const y="(?!(?:^|/)\\.\\.?(?:$|/))";const b="(?!\\.)";const C=new Set(["[","."]);const w=new Set(["..","."]);const B=new Set("().*{}+?[]^$\\!");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const I="[^/]";const S=I+"*?";const Q=I+"+?";class AST{type;#Dt;#Nt;#Tt=false;#xt=[];#kt;#_t;#Pt;#Ft=false;#p;#Lt;#Ot=false;constructor(r,n,s={}){this.type=r;if(r)this.#Nt=true;this.#kt=n;this.#Dt=this.#kt?this.#kt.#Dt:this;this.#p=this.#Dt===this?s:this.#Dt.#p;this.#Pt=this.#Dt===this?[]:this.#Dt.#Pt;if(r==="!"&&!this.#Dt.#Ft)this.#Pt.push(this);this.#_t=this.#kt?this.#kt.#xt.length:0}get hasMagic(){if(this.#Nt!==undefined)return this.#Nt;for(const r of this.#xt){if(typeof r==="string")continue;if(r.type||r.hasMagic)return this.#Nt=true}return this.#Nt}toString(){if(this.#Lt!==undefined)return this.#Lt;if(!this.type){return this.#Lt=this.#xt.map((r=>String(r))).join("")}else{return this.#Lt=this.type+"("+this.#xt.map((r=>String(r))).join("|")+")"}}#Mt(){if(this!==this.#Dt)throw new Error("should only call on root");if(this.#Ft)return this;this.toString();this.#Ft=true;let r;while(r=this.#Pt.pop()){if(r.type!=="!")continue;let n=r;let s=n.#kt;while(s){for(let a=n.#_t+1;!s.type&&atypeof r==="string"?r:r.toJSON())):[this.type,...this.#xt.map((r=>r.toJSON()))];if(this.isStart()&&!this.type)r.unshift([]);if(this.isEnd()&&(this===this.#Dt||this.#Dt.#Ft&&this.#kt?.type==="!")){r.push({})}return r}isStart(){if(this.#Dt===this)return true;if(!this.#kt?.isStart())return false;if(this.#_t===0)return true;const r=this.#kt;for(let n=0;n{const[l,u,d,A]=typeof n==="string"?a.#$t(n,this.#Nt,s):n.toRegExpSource(r);this.#Nt=this.#Nt||d;this.#Tt=this.#Tt||A;return l})).join("");let d="";if(this.isStart()){if(typeof this.#xt[0]==="string"){const s=this.#xt.length===1&&w.has(this.#xt[0]);if(!s){const s=C;const a=n&&s.has(l.charAt(0))||l.startsWith("\\.")&&s.has(l.charAt(2))||l.startsWith("\\.\\.")&&s.has(l.charAt(4));const u=!n&&!r&&s.has(l.charAt(0));d=a?y:u?b:""}}}let A="";if(this.isEnd()&&this.#Dt.#Ft&&this.#kt?.type==="!"){A="(?:$|\\/)"}const p=d+l+A;return[p,(0,u.unescape)(l),this.#Nt=!!this.#Nt,this.#Tt]}const s=this.type==="*"||this.type==="+";const l=this.type==="!"?"(?:(?!(?:":"(?:";let d=this.#Kt(n);if(this.isStart()&&this.isEnd()&&!d&&this.type!=="!"){const r=this.toString();const n=this;n.#xt=[r];n.type=null;n.#Nt=undefined;return[r,(0,u.unescape)(this.toString()),false,false]}let A=!s||r||n||!b?"":this.#Kt(true);if(A===d){A=""}if(A){d=`(?:${d})(?:${A})*?`}let p="";if(this.type==="!"&&this.#Ot){p=(this.isStart()&&!n?b:"")+Q}else{const s=this.type==="!"?"))"+(this.isStart()&&!n&&!r?b:"")+S+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&A?")":this.type==="*"&&A?`)?`:`)${this.type}`;p=l+d+s}return[p,(0,u.unescape)(d),this.#Nt=!!this.#Nt,this.#Tt]}#Kt(r){return this.#xt.map((n=>{if(typeof n==="string"){throw new Error("string type in extglob ast??")}const[s,a,l,u]=n.toRegExpSource(r);this.#Tt=this.#Tt||u;return s})).filter((r=>!(this.isStart()&&this.isEnd())||!!r)).join("|")}static#$t(r,n,s=false){let a=false;let d="";let A=false;let p=false;for(let u=0;u{Object.defineProperty(n,"__esModule",{value:true});n.parseClass=void 0;const s={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=r=>r.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=r=>r.join("");const parseClass=(r,n)=>{const a=n;if(r.charAt(a)!=="["){throw new Error("not in a brace expression")}const l=[];const u=[];let d=a+1;let A=false;let p=false;let f=false;let g=false;let y=a;let b="";e:while(db){l.push(braceEscape(b)+"-"+braceEscape(n))}else if(n===b){l.push(braceEscape(n))}b="";d++;continue}if(r.startsWith("-]",d+1)){l.push(braceEscape(n+"-"));d+=2;continue}if(r.startsWith("-",d+1)){b=n;d+=2;continue}l.push(braceEscape(n));d++}if(y{Object.defineProperty(n,"__esModule",{value:true});n.escape=void 0;const escape=(r,{windowsPathsNoEscape:n=false}={})=>n?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");n.escape=escape},87414:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.unescape=n.escape=n.AST=n.Minimatch=n.match=n.makeRe=n.braceExpand=n.defaults=n.filter=n.GLOBSTAR=n.sep=n.minimatch=void 0;const l=a(s(23033));const u=s(37382);const d=s(20174);const A=s(73839);const p=s(13896);const minimatch=(r,n,s={})=>{(0,u.assertValidPattern)(n);if(!s.nocomment&&n.charAt(0)==="#"){return false}return new Minimatch(n,s).match(r)};n.minimatch=minimatch;const f=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=r=>n=>!n.startsWith(".")&&n.endsWith(r);const starDotExtTestDot=r=>n=>n.endsWith(r);const starDotExtTestNocase=r=>{r=r.toLowerCase();return n=>!n.startsWith(".")&&n.toLowerCase().endsWith(r)};const starDotExtTestNocaseDot=r=>{r=r.toLowerCase();return n=>n.toLowerCase().endsWith(r)};const g=/^\*+\.\*+$/;const starDotStarTest=r=>!r.startsWith(".")&&r.includes(".");const starDotStarTestDot=r=>r!=="."&&r!==".."&&r.includes(".");const y=/^\.\*+$/;const dotStarTest=r=>r!=="."&&r!==".."&&r.startsWith(".");const b=/^\*+$/;const starTest=r=>r.length!==0&&!r.startsWith(".");const starTestDot=r=>r.length!==0&&r!=="."&&r!=="..";const C=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([r,n=""])=>{const s=qmarksTestNoExt([r]);if(!n)return s;n=n.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(n)};const qmarksTestNocaseDot=([r,n=""])=>{const s=qmarksTestNoExtDot([r]);if(!n)return s;n=n.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(n)};const qmarksTestDot=([r,n=""])=>{const s=qmarksTestNoExtDot([r]);return!n?s:r=>s(r)&&r.endsWith(n)};const qmarksTest=([r,n=""])=>{const s=qmarksTestNoExt([r]);return!n?s:r=>s(r)&&r.endsWith(n)};const qmarksTestNoExt=([r])=>{const n=r.length;return r=>r.length===n&&!r.startsWith(".")};const qmarksTestNoExtDot=([r])=>{const n=r.length;return r=>r.length===n&&r!=="."&&r!==".."};const w=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const B={win32:{sep:"\\"},posix:{sep:"/"}};n.sep=w==="win32"?B.win32.sep:B.posix.sep;n.minimatch.sep=n.sep;n.GLOBSTAR=Symbol("globstar **");n.minimatch.GLOBSTAR=n.GLOBSTAR;const I="[^/]";const S=I+"*?";const Q="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const v="(?:(?!(?:\\/|^)\\.).)*?";const filter=(r,s={})=>a=>(0,n.minimatch)(a,r,s);n.filter=filter;n.minimatch.filter=n.filter;const ext=(r,n={})=>Object.assign({},r,n);const defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return n.minimatch}const s=n.minimatch;const m=(n,a,l={})=>s(n,a,ext(r,l));return Object.assign(m,{Minimatch:class Minimatch extends s.Minimatch{constructor(n,s={}){super(n,ext(r,s))}static defaults(n){return s.defaults(ext(r,n)).Minimatch}},AST:class AST extends s.AST{constructor(n,s,a={}){super(n,s,ext(r,a))}static fromGlob(n,a={}){return s.AST.fromGlob(n,ext(r,a))}},unescape:(n,a={})=>s.unescape(n,ext(r,a)),escape:(n,a={})=>s.escape(n,ext(r,a)),filter:(n,a={})=>s.filter(n,ext(r,a)),defaults:n=>s.defaults(ext(r,n)),makeRe:(n,a={})=>s.makeRe(n,ext(r,a)),braceExpand:(n,a={})=>s.braceExpand(n,ext(r,a)),match:(n,a,l={})=>s.match(n,a,ext(r,l)),sep:s.sep,GLOBSTAR:n.GLOBSTAR})};n.defaults=defaults;n.minimatch.defaults=n.defaults;const braceExpand=(r,n={})=>{(0,u.assertValidPattern)(r);if(n.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return(0,l.default)(r)};n.braceExpand=braceExpand;n.minimatch.braceExpand=n.braceExpand;const makeRe=(r,n={})=>new Minimatch(r,n).makeRe();n.makeRe=makeRe;n.minimatch.makeRe=n.makeRe;const match=(r,n,s={})=>{const a=new Minimatch(n,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(n)}return r};n.match=match;n.minimatch.match=n.match;const R=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(r,n={}){(0,u.assertValidPattern)(r);n=n||{};this.options=n;this.maxGlobstarRecursion=n.maxGlobstarRecursion??200;this.pattern=r;this.platform=n.platform||w;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!n.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!n.nonegate;this.comment=false;this.empty=false;this.partial=!!n.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=n.windowsNoMagicRoot!==undefined?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const r of this.set){for(const n of r){if(typeof n!=="string")return true}}return false}debug(...r){}make(){const r=this.pattern;const n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(n.debug){this.debug=(...r)=>console.error(...r)}this.debug(this.pattern,this.globSet);const s=this.globSet.map((r=>this.slashSplit(r)));this.globParts=this.preprocess(s);this.debug(this.pattern,this.globParts);let a=this.globParts.map(((r,n,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){const n=r[0]===""&&r[1]===""&&(r[2]==="?"||!R.test(r[2]))&&!R.test(r[3]);const s=/^[a-z]:/i.test(r[0]);if(n){return[...r.slice(0,4),...r.slice(4).map((r=>this.parse(r)))]}else if(s){return[r[0],...r.slice(1).map((r=>this.parse(r)))]}}return r.map((r=>this.parse(r)))}));this.debug(this.pattern,a);this.set=a.filter((r=>r.indexOf(false)===-1));if(this.isWindows){for(let r=0;r=2){r=this.firstPhasePreProcess(r);r=this.secondPhasePreProcess(r)}else if(n>=1){r=this.levelOneOptimize(r)}else{r=this.adjascentGlobstarOptimize(r)}return r}adjascentGlobstarOptimize(r){return r.map((r=>{let n=-1;while(-1!==(n=r.indexOf("**",n+1))){let s=n;while(r[s+1]==="**"){s++}if(s!==n){r.splice(n,s-n)}}return r}))}levelOneOptimize(r){return r.map((r=>{r=r.reduce(((r,n)=>{const s=r[r.length-1];if(n==="**"&&s==="**"){return r}if(n===".."){if(s&&s!==".."&&s!=="."&&s!=="**"){r.pop();return r}}r.push(n);return r}),[]);return r.length===0?[""]:r}))}levelTwoFileOptimize(r){if(!Array.isArray(r)){r=this.slashSplit(r)}let n=false;do{n=false;if(!this.preserveMultipleSlashes){for(let s=1;sa){s.splice(a+1,l-a)}let u=s[a+1];const d=s[a+2];const A=s[a+3];if(u!=="..")continue;if(!d||d==="."||d===".."||!A||A==="."||A===".."){continue}n=true;s.splice(a,1);const p=s.slice(0);p[a]="**";r.push(p);a--}if(!this.preserveMultipleSlashes){for(let r=1;rr.length))}partsMatch(r,n,s=false){let a=0;let l=0;let u=[];let d="";while(a=2){r=this.levelTwoFileOptimize(r)}if(s.includes(n.GLOBSTAR)){return this.#Xt(r,s,a,l,u)}return this.#Zt(r,s,a,l,u)}#Xt(r,s,a,l,u){const d=s.indexOf(n.GLOBSTAR,u);const A=s.lastIndexOf(n.GLOBSTAR);const[p,f,g]=a?[s.slice(u,d),s.slice(d+1),[]]:[s.slice(u,d),s.slice(d+1,A),s.slice(A+1)];if(p.length){const n=r.slice(l,l+p.length);if(!this.#Zt(n,p,a,0,0))return false;l+=p.length}let y=0;if(g.length){if(g.length+l>r.length)return false;let n=r.length-g.length;if(this.#Zt(r,g,a,n,0)){y=g.length}else{if(r[r.length-1]!==""||l+g.length===r.length){return false}n--;if(!this.#Zt(r,g,a,n,0))return false;y=g.length+1}}if(!f.length){let n=!!y;for(let s=l;s{const s=r.map((r=>{if(r instanceof RegExp){for(const n of r.flags.split(""))l.add(n)}return typeof r==="string"?regExpEscape(r):r===n.GLOBSTAR?n.GLOBSTAR:r._src}));s.forEach(((r,l)=>{const u=s[l+1];const d=s[l-1];if(r!==n.GLOBSTAR||d===n.GLOBSTAR){return}if(d===undefined){if(u!==undefined&&u!==n.GLOBSTAR){s[l+1]="(?:\\/|"+a+"\\/)?"+u}else{s[l]=a}}else if(u===undefined){s[l-1]=d+"(?:\\/|"+a+")?"}else if(u!==n.GLOBSTAR){s[l-1]=d+"(?:\\/|\\/"+a+"\\/)"+u;s[l+1]=n.GLOBSTAR}}));return s.filter((r=>r!==n.GLOBSTAR)).join("/")})).join("|");const[d,A]=r.length>1?["(?:",")"]:["",""];u="^"+d+u+A+"$";if(this.negate)u="^(?!"+u+").+$";try{this.regexp=new RegExp(u,[...l].join(""))}catch(r){this.regexp=false}return this.regexp}slashSplit(r){if(this.preserveMultipleSlashes){return r.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(r)){return["",...r.split(/\/+/)]}else{return r.split(/\/+/)}}match(r,n=this.partial){this.debug("match",r,this.pattern);if(this.comment){return false}if(this.empty){return r===""}if(r==="/"&&n){return true}const s=this.options;if(this.isWindows){r=r.split("\\").join("/")}const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const l=this.set;this.debug(this.pattern,"set",l);let u=a[a.length-1];if(!u){for(let r=a.length-2;!u&&r>=0;r--){u=a[r]}}for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.unescape=void 0;const unescape=(r,{windowsPathsNoEscape:n=false}={})=>n?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");n.unescape=unescape},59733:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.Minipass=n.isWritable=n.isReadable=n.isStream=void 0;const l=typeof process==="object"&&process?process:{stdout:null,stderr:null};const u=s(78474);const d=a(s(57075));const A=s(46193);const isStream=r=>!!r&&typeof r==="object"&&(r instanceof Minipass||r instanceof d.default||(0,n.isReadable)(r)||(0,n.isWritable)(r));n.isStream=isStream;const isReadable=r=>!!r&&typeof r==="object"&&r instanceof u.EventEmitter&&typeof r.pipe==="function"&&r.pipe!==d.default.Writable.prototype.pipe;n.isReadable=isReadable;const isWritable=r=>!!r&&typeof r==="object"&&r instanceof u.EventEmitter&&typeof r.write==="function"&&typeof r.end==="function";n.isWritable=isWritable;const p=Symbol("EOF");const f=Symbol("maybeEmitEnd");const g=Symbol("emittedEnd");const y=Symbol("emittingEnd");const b=Symbol("emittedError");const C=Symbol("closed");const w=Symbol("read");const B=Symbol("flush");const I=Symbol("flushChunk");const S=Symbol("encoding");const Q=Symbol("decoder");const v=Symbol("flowing");const R=Symbol("paused");const D=Symbol("resume");const N=Symbol("buffer");const T=Symbol("pipes");const x=Symbol("bufferLength");const k=Symbol("bufferPush");const _=Symbol("bufferShift");const P=Symbol("objectMode");const F=Symbol("destroyed");const L=Symbol("error");const O=Symbol("emitData");const M=Symbol("emitEnd");const U=Symbol("emitEnd2");const H=Symbol("async");const G=Symbol("abort");const z=Symbol("aborted");const q=Symbol("signal");const V=Symbol("dataListeners");const W=Symbol("discarded");const defer=r=>Promise.resolve().then(r);const nodefer=r=>r();const isEndish=r=>r==="end"||r==="finish"||r==="prefinish";const isArrayBufferLike=r=>r instanceof ArrayBuffer||!!r&&typeof r==="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0;const isArrayBufferView=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);class Pipe{src;dest;opts;ondrain;constructor(r,n,s){this.src=r;this.dest=n;this.opts=s;this.ondrain=()=>r[D]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(r){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(r,n,s){super(r,n,s);this.proxyErrors=r=>this.dest.emit("error",r);r.on("error",this.proxyErrors)}}const isObjectModeOptions=r=>!!r.objectMode;const isEncodingOptions=r=>!r.objectMode&&!!r.encoding&&r.encoding!=="buffer";class Minipass extends u.EventEmitter{[v]=false;[R]=false;[T]=[];[N]=[];[P];[S];[H];[Q];[p]=false;[g]=false;[y]=false;[C]=false;[b]=null;[x]=0;[F]=false;[q];[z]=false;[V]=0;[W]=false;writable=true;readable=true;constructor(...r){const n=r[0]||{};super();if(n.objectMode&&typeof n.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(n)){this[P]=true;this[S]=null}else if(isEncodingOptions(n)){this[S]=n.encoding;this[P]=false}else{this[P]=false;this[S]=null}this[H]=!!n.async;this[Q]=this[S]?new A.StringDecoder(this[S]):null;if(n&&n.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[N]})}if(n&&n.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[T]})}const{signal:s}=n;if(s){this[q]=s;if(s.aborted){this[G]()}else{s.addEventListener("abort",(()=>this[G]()))}}}get bufferLength(){return this[x]}get encoding(){return this[S]}set encoding(r){throw new Error("Encoding must be set at instantiation time")}setEncoding(r){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[P]}set objectMode(r){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[H]}set["async"](r){this[H]=this[H]||!!r}[G](){this[z]=true;this.emit("abort",this[q]?.reason);this.destroy(this[q]?.reason)}get aborted(){return this[z]}set aborted(r){}write(r,n,s){if(this[z])return false;if(this[p])throw new Error("write after end");if(this[F]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof n==="function"){s=n;n="utf8"}if(!n)n="utf8";const a=this[H]?defer:nodefer;if(!this[P]&&!Buffer.isBuffer(r)){if(isArrayBufferView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(isArrayBufferLike(r)){r=Buffer.from(r)}else if(typeof r!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[P]){if(this[v]&&this[x]!==0)this[B](true);if(this[v])this.emit("data",r);else this[k](r);if(this[x]!==0)this.emit("readable");if(s)a(s);return this[v]}if(!r.length){if(this[x]!==0)this.emit("readable");if(s)a(s);return this[v]}if(typeof r==="string"&&!(n===this[S]&&!this[Q]?.lastNeed)){r=Buffer.from(r,n)}if(Buffer.isBuffer(r)&&this[S]){r=this[Q].write(r)}if(this[v]&&this[x]!==0)this[B](true);if(this[v])this.emit("data",r);else this[k](r);if(this[x]!==0)this.emit("readable");if(s)a(s);return this[v]}read(r){if(this[F])return null;this[W]=false;if(this[x]===0||r===0||r&&r>this[x]){this[f]();return null}if(this[P])r=null;if(this[N].length>1&&!this[P]){this[N]=[this[S]?this[N].join(""):Buffer.concat(this[N],this[x])]}const n=this[w](r||null,this[N][0]);this[f]();return n}[w](r,n){if(this[P])this[_]();else{const s=n;if(r===s.length||r===null)this[_]();else if(typeof s==="string"){this[N][0]=s.slice(r);n=s.slice(0,r);this[x]-=r}else{this[N][0]=s.subarray(r);n=s.subarray(0,r);this[x]-=r}}this.emit("data",n);if(!this[N].length&&!this[p])this.emit("drain");return n}end(r,n,s){if(typeof r==="function"){s=r;r=undefined}if(typeof n==="function"){s=n;n="utf8"}if(r!==undefined)this.write(r,n);if(s)this.once("end",s);this[p]=true;this.writable=false;if(this[v]||!this[R])this[f]();return this}[D](){if(this[F])return;if(!this[V]&&!this[T].length){this[W]=true}this[R]=false;this[v]=true;this.emit("resume");if(this[N].length)this[B]();else if(this[p])this[f]();else this.emit("drain")}resume(){return this[D]()}pause(){this[v]=false;this[R]=true;this[W]=false}get destroyed(){return this[F]}get flowing(){return this[v]}get paused(){return this[R]}[k](r){if(this[P])this[x]+=1;else this[x]+=r.length;this[N].push(r)}[_](){if(this[P])this[x]-=1;else this[x]-=this[N][0].length;return this[N].shift()}[B](r=false){do{}while(this[I](this[_]())&&this[N].length);if(!r&&!this[N].length&&!this[p])this.emit("drain")}[I](r){this.emit("data",r);return this[v]}pipe(r,n){if(this[F])return r;this[W]=false;const s=this[g];n=n||{};if(r===l.stdout||r===l.stderr)n.end=false;else n.end=n.end!==false;n.proxyErrors=!!n.proxyErrors;if(s){if(n.end)r.end()}else{this[T].push(!n.proxyErrors?new Pipe(this,r,n):new PipeProxyErrors(this,r,n));if(this[H])defer((()=>this[D]()));else this[D]()}return r}unpipe(r){const n=this[T].find((n=>n.dest===r));if(n){if(this[T].length===1){if(this[v]&&this[V]===0){this[v]=false}this[T]=[]}else this[T].splice(this[T].indexOf(n),1);n.unpipe()}}addListener(r,n){return this.on(r,n)}on(r,n){const s=super.on(r,n);if(r==="data"){this[W]=false;this[V]++;if(!this[T].length&&!this[v]){this[D]()}}else if(r==="readable"&&this[x]!==0){super.emit("readable")}else if(isEndish(r)&&this[g]){super.emit(r);this.removeAllListeners(r)}else if(r==="error"&&this[b]){const r=n;if(this[H])defer((()=>r.call(this,this[b])));else r.call(this,this[b])}return s}removeListener(r,n){return this.off(r,n)}off(r,n){const s=super.off(r,n);if(r==="data"){this[V]=this.listeners("data").length;if(this[V]===0&&!this[W]&&!this[T].length){this[v]=false}}return s}removeAllListeners(r){const n=super.removeAllListeners(r);if(r==="data"||r===undefined){this[V]=0;if(!this[W]&&!this[T].length){this[v]=false}}return n}get emittedEnd(){return this[g]}[f](){if(!this[y]&&!this[g]&&!this[F]&&this[N].length===0&&this[p]){this[y]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[C])this.emit("close");this[y]=false}}emit(r,...n){const s=n[0];if(r!=="error"&&r!=="close"&&r!==F&&this[F]){return false}else if(r==="data"){return!this[P]&&!s?false:this[H]?(defer((()=>this[O](s))),true):this[O](s)}else if(r==="end"){return this[M]()}else if(r==="close"){this[C]=true;if(!this[g]&&!this[F])return false;const r=super.emit("close");this.removeAllListeners("close");return r}else if(r==="error"){this[b]=s;super.emit(L,s);const r=!this[q]||this.listeners("error").length?super.emit("error",s):false;this[f]();return r}else if(r==="resume"){const r=super.emit("resume");this[f]();return r}else if(r==="finish"||r==="prefinish"){const n=super.emit(r);this.removeAllListeners(r);return n}const a=super.emit(r,...n);this[f]();return a}[O](r){for(const n of this[T]){if(n.dest.write(r)===false)this.pause()}const n=this[W]?false:super.emit("data",r);this[f]();return n}[M](){if(this[g])return false;this[g]=true;this.readable=false;return this[H]?(defer((()=>this[U]())),true):this[U]()}[U](){if(this[Q]){const r=this[Q].end();if(r){for(const n of this[T]){n.dest.write(r)}if(!this[W])super.emit("data",r)}}for(const r of this[T]){r.end()}const r=super.emit("end");this.removeAllListeners("end");return r}async collect(){const r=Object.assign([],{dataLength:0});if(!this[P])r.dataLength=0;const n=this.promise();this.on("data",(n=>{r.push(n);if(!this[P])r.dataLength+=n.length}));await n;return r}async concat(){if(this[P]){throw new Error("cannot concat in objectMode")}const r=await this.collect();return this[S]?r.join(""):Buffer.concat(r,r.dataLength)}async promise(){return new Promise(((r,n)=>{this.on(F,(()=>n(new Error("stream destroyed"))));this.on("error",(r=>n(r)));this.on("end",(()=>r()))}))}[Symbol.asyncIterator](){this[W]=false;let r=false;const stop=async()=>{this.pause();r=true;return{value:undefined,done:true}};const next=()=>{if(r)return stop();const n=this.read();if(n!==null)return Promise.resolve({done:false,value:n});if(this[p])return stop();let s;let a;const onerr=r=>{this.off("data",ondata);this.off("end",onend);this.off(F,ondestroy);stop();a(r)};const ondata=r=>{this.off("error",onerr);this.off("end",onend);this.off(F,ondestroy);this.pause();s({value:r,done:!!this[p]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(F,ondestroy);stop();s({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((r,n)=>{a=n;s=r;this.once(F,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[W]=false;let r=false;const stop=()=>{this.pause();this.off(L,stop);this.off(F,stop);this.off("end",stop);r=true;return{done:true,value:undefined}};const next=()=>{if(r)return stop();const n=this.read();return n===null?stop():{done:false,value:n}};this.once("end",stop);this.once(L,stop);this.once(F,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(r){if(this[F]){if(r)this.emit("error",r);else this.emit(F);return this}this[F]=true;this[W]=true;this[N].length=0;this[x]=0;const n=this;if(typeof n.close==="function"&&!this[C])n.close();if(r)this.emit("error",r);else this.emit(F);return this}static get isStream(){return n.isStream}}n.Minipass=Minipass},82918:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};Object.defineProperty(n,"__esModule",{value:true});n.PathScurry=n.Path=n.PathScurryDarwin=n.PathScurryPosix=n.PathScurryWin32=n.PathScurryBase=n.PathPosix=n.PathWin32=n.PathBase=n.ChildrenCache=n.ResolveCache=void 0;const d=s(23514);const A=s(76760);const p=s(73136);const f=s(79896);const g=u(s(73024));const y=f.realpathSync.native;const b=s(51455);const C=s(59733);const w={lstatSync:f.lstatSync,readdir:f.readdir,readdirSync:f.readdirSync,readlinkSync:f.readlinkSync,realpathSync:y,promises:{lstat:b.lstat,readdir:b.readdir,readlink:b.readlink,realpath:b.realpath}};const fsFromOption=r=>!r||r===w||r===g?w:{...w,...r,promises:{...w.promises,...r.promises||{}}};const B=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=r=>r.replace(/\//g,"\\").replace(B,"$1\\");const I=/[\\\/]/;const S=0;const Q=1;const v=2;const R=4;const D=6;const N=8;const T=10;const x=12;const k=15;const _=~k;const P=16;const F=32;const L=64;const O=128;const M=256;const U=512;const H=L|O|U;const G=1023;const entToType=r=>r.isFile()?N:r.isDirectory()?R:r.isSymbolicLink()?T:r.isCharacterDevice()?v:r.isBlockDevice()?D:r.isSocket()?x:r.isFIFO()?Q:S;const z=new Map;const normalize=r=>{const n=z.get(r);if(n)return n;const s=r.normalize("NFKD");z.set(r,s);return s};const q=new Map;const normalizeNocase=r=>{const n=q.get(r);if(n)return n;const s=normalize(r.toLowerCase());q.set(r,s);return s};class ResolveCache extends d.LRUCache{constructor(){super({max:256})}}n.ResolveCache=ResolveCache;class ChildrenCache extends d.LRUCache{constructor(r=16*1024){super({maxSize:r,sizeCalculation:r=>r.length+1})}}n.ChildrenCache=ChildrenCache;const V=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#tr;#rr;get dev(){return this.#rr}#nr;get mode(){return this.#nr}#sr;get nlink(){return this.#sr}#ir;get uid(){return this.#ir}#or;get gid(){return this.#or}#ar;get rdev(){return this.#ar}#lr;get blksize(){return this.#lr}#cr;get ino(){return this.#cr}#Q;get size(){return this.#Q}#ur;get blocks(){return this.#ur}#dr;get atimeMs(){return this.#dr}#Ar;get mtimeMs(){return this.#Ar}#pr;get ctimeMs(){return this.#pr}#fr;get birthtimeMs(){return this.#fr}#hr;get atime(){return this.#hr}#mr;get mtime(){return this.#mr}#gr;get ctime(){return this.#gr}#yr;get birthtime(){return this.#yr}#Er;#br;#Cr;#wr;#Br;#Ir;#Sr;#Qr;#vr;#Rr;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(r,n=S,s,a,l,u,d){this.name=r;this.#Er=l?normalizeNocase(r):normalize(r);this.#Sr=n&G;this.nocase=l;this.roots=a;this.root=s||this;this.#Qr=u;this.#Cr=d.fullpath;this.#Br=d.relative;this.#Ir=d.relativePosix;this.parent=d.parent;if(this.parent){this.#tr=this.parent.#tr}else{this.#tr=fsFromOption(d.fs)}}depth(){if(this.#br!==undefined)return this.#br;if(!this.parent)return this.#br=0;return this.#br=this.parent.depth()+1}childrenCache(){return this.#Qr}resolve(r){if(!r){return this}const n=this.getRootString(r);const s=r.substring(n.length);const a=s.split(this.splitSep);const l=n?this.getRoot(n).#Dr(a):this.#Dr(a);return l}#Dr(r){let n=this;for(const s of r){n=n.child(s)}return n}children(){const r=this.#Qr.get(this);if(r){return r}const n=Object.assign([],{provisional:0});this.#Qr.set(this,n);this.#Sr&=~P;return n}child(r,n){if(r===""||r==="."){return this}if(r===".."){return this.parent||this}const s=this.children();const a=this.nocase?normalizeNocase(r):normalize(r);for(const r of s){if(r.#Er===a){return r}}const l=this.parent?this.sep:"";const u=this.#Cr?this.#Cr+l+r:undefined;const d=this.newChild(r,S,{...n,parent:this,fullpath:u});if(!this.canReaddir()){d.#Sr|=O}s.push(d);return d}relative(){if(this.isCWD)return"";if(this.#Br!==undefined){return this.#Br}const r=this.name;const n=this.parent;if(!n){return this.#Br=this.name}const s=n.relative();return s+(!s||!n.parent?"":this.sep)+r}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#Ir!==undefined)return this.#Ir;const r=this.name;const n=this.parent;if(!n){return this.#Ir=this.fullpathPosix()}const s=n.relativePosix();return s+(!s||!n.parent?"":"/")+r}fullpath(){if(this.#Cr!==undefined){return this.#Cr}const r=this.name;const n=this.parent;if(!n){return this.#Cr=this.name}const s=n.fullpath();const a=s+(!n.parent?"":this.sep)+r;return this.#Cr=a}fullpathPosix(){if(this.#wr!==undefined)return this.#wr;if(this.sep==="/")return this.#wr=this.fullpath();if(!this.parent){const r=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(r)){return this.#wr=`//?/${r}`}else{return this.#wr=r}}const r=this.parent;const n=r.fullpathPosix();const s=n+(!n||!r.parent?"":"/")+this.name;return this.#wr=s}isUnknown(){return(this.#Sr&k)===S}isType(r){return this[`is${r}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Sr&k)===N}isDirectory(){return(this.#Sr&k)===R}isCharacterDevice(){return(this.#Sr&k)===v}isBlockDevice(){return(this.#Sr&k)===D}isFIFO(){return(this.#Sr&k)===Q}isSocket(){return(this.#Sr&k)===x}isSymbolicLink(){return(this.#Sr&T)===T}lstatCached(){return this.#Sr&F?this:undefined}readlinkCached(){return this.#vr}realpathCached(){return this.#Rr}readdirCached(){const r=this.children();return r.slice(0,r.provisional)}canReadlink(){if(this.#vr)return true;if(!this.parent)return false;const r=this.#Sr&k;return!(r!==S&&r!==T||this.#Sr&M||this.#Sr&O)}calledReaddir(){return!!(this.#Sr&P)}isENOENT(){return!!(this.#Sr&O)}isNamed(r){return!this.nocase?this.#Er===normalize(r):this.#Er===normalizeNocase(r)}async readlink(){const r=this.#vr;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=await this.#tr.promises.readlink(this.fullpath());const n=(await this.parent.realpath())?.resolve(r);if(n){return this.#vr=n}}catch(r){this.#Nr(r.code);return undefined}}readlinkSync(){const r=this.#vr;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=this.#tr.readlinkSync(this.fullpath());const n=this.parent.realpathSync()?.resolve(r);if(n){return this.#vr=n}}catch(r){this.#Nr(r.code);return undefined}}#Tr(r){this.#Sr|=P;for(let n=r.provisional;nn(null,r)))}readdirCB(r,n=false){if(!this.canReaddir()){if(n)r(null,[]);else queueMicrotask((()=>r(null,[])));return}const s=this.children();if(this.calledReaddir()){const a=s.slice(0,s.provisional);if(n)r(null,a);else queueMicrotask((()=>r(null,a)));return}this.#zr.push(r);if(this.#qr){return}this.#qr=true;const a=this.fullpath();this.#tr.readdir(a,{withFileTypes:true},((r,n)=>{if(r){this.#Fr(r.code);s.provisional=0}else{for(const r of n){this.#Or(r,s)}this.#Tr(s)}this.#Vr(s.slice(0,s.provisional));return}))}#Wr;async readdir(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const n=this.fullpath();if(this.#Wr){await this.#Wr}else{let resolve=()=>{};this.#Wr=new Promise((r=>resolve=r));try{for(const s of await this.#tr.promises.readdir(n,{withFileTypes:true})){this.#Or(s,r)}this.#Tr(r)}catch(n){this.#Fr(n.code);r.provisional=0}this.#Wr=undefined;resolve()}return r.slice(0,r.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const n=this.fullpath();try{for(const s of this.#tr.readdirSync(n,{withFileTypes:true})){this.#Or(s,r)}this.#Tr(r)}catch(n){this.#Fr(n.code);r.provisional=0}return r.slice(0,r.provisional)}canReaddir(){if(this.#Sr&H)return false;const r=k&this.#Sr;if(!(r===S||r===R||r===T)){return false}return true}shouldWalk(r,n){return(this.#Sr&R)===R&&!(this.#Sr&H)&&!r.has(this)&&(!n||n(this))}async realpath(){if(this.#Rr)return this.#Rr;if((U|M|O)&this.#Sr)return undefined;try{const r=await this.#tr.promises.realpath(this.fullpath());return this.#Rr=this.resolve(r)}catch(r){this.#_r()}}realpathSync(){if(this.#Rr)return this.#Rr;if((U|M|O)&this.#Sr)return undefined;try{const r=this.#tr.realpathSync(this.fullpath());return this.#Rr=this.resolve(r)}catch(r){this.#_r()}}[V](r){if(r===this)return;r.isCWD=false;this.isCWD=true;const n=new Set([]);let s=[];let a=this;while(a&&a.parent){n.add(a);a.#Br=s.join(this.sep);a.#Ir=s.join("/");a=a.parent;s.push("..")}a=r;while(a&&a.parent&&!n.has(a)){a.#Br=undefined;a.#Ir=undefined;a=a.parent}}}n.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=I;constructor(r,n=S,s,a,l,u,d){super(r,n,s,a,l,u,d)}newChild(r,n=S,s={}){return new PathWin32(r,n,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(r){return A.win32.parse(r).root}getRoot(r){r=uncToDrive(r.toUpperCase());if(r===this.root.name){return this.root}for(const[n,s]of Object.entries(this.roots)){if(this.sameRoot(r,n)){return this.roots[r]=s}}return this.roots[r]=new PathScurryWin32(r,this).root}sameRoot(r,n=this.root.name){r=r.toUpperCase().replace(/\//g,"\\").replace(B,"$1\\");return r===n}}n.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(r,n=S,s,a,l,u,d){super(r,n,s,a,l,u,d)}getRootString(r){return r.startsWith("/")?"/":""}getRoot(r){return this.root}newChild(r,n=S,s={}){return new PathPosix(r,n,this.root,this.roots,this.nocase,this.childrenCache(),s)}}n.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#jr;#Yr;#Qr;nocase;#tr;constructor(r=process.cwd(),n,s,{nocase:a,childrenCacheSize:l=16*1024,fs:u=w}={}){this.#tr=fsFromOption(u);if(r instanceof URL||r.startsWith("file://")){r=(0,p.fileURLToPath)(r)}const d=n.resolve(r);this.roots=Object.create(null);this.rootPath=this.parseRootPath(d);this.#jr=new ResolveCache;this.#Yr=new ResolveCache;this.#Qr=new ChildrenCache(l);const A=d.substring(this.rootPath.length).split(s);if(A.length===1&&!A[0]){A.pop()}if(a===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=a;this.root=this.newRoot(this.#tr);this.roots[this.rootPath]=this.root;let f=this.root;let g=A.length-1;const y=n.sep;let b=this.rootPath;let C=false;for(const r of A){const n=g--;f=f.child(r,{relative:new Array(n).fill("..").join(y),relativePosix:new Array(n).fill("..").join("/"),fullpath:b+=(C?"":y)+r});C=true}this.cwd=f}depth(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.depth()}childrenCache(){return this.#Qr}resolve(...r){let n="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;n=n?`${a}/${n}`:a;if(this.isAbsolute(a)){break}}const s=this.#jr.get(n);if(s!==undefined){return s}const a=this.cwd.resolve(n).fullpath();this.#jr.set(n,a);return a}resolvePosix(...r){let n="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;n=n?`${a}/${n}`:a;if(this.isAbsolute(a)){break}}const s=this.#Yr.get(n);if(s!==undefined){return s}const a=this.cwd.resolve(n).fullpathPosix();this.#Yr.set(n,a);return a}relative(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relative()}relativePosix(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relativePosix()}basename(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.name}dirname(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return(r.parent||r).fullpath()}async readdir(r=this.cwd,n={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s}=n;if(!r.canReaddir()){return[]}else{const n=await r.readdir();return s?n:n.map((r=>r.name))}}readdirSync(r=this.cwd,n={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true}=n;if(!r.canReaddir()){return[]}else if(s){return r.readdirSync()}else{return r.readdirSync().map((r=>r.name))}}async lstat(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstat()}lstatSync(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstatSync()}async readlink(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=await r.readlink();return n?s:s?.fullpath()}readlinkSync(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=r.readlinkSync();return n?s:s?.fullpath()}async realpath(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=await r.realpath();return n?s:s?.fullpath()}realpathSync(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=r.realpathSync();return n?s:s?.fullpath()}async walk(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=[];if(!l||l(r)){d.push(s?r:r.fullpath())}const A=new Set;const walk=(r,n)=>{A.add(r);r.readdirCB(((r,p)=>{if(r){return n(r)}let f=p.length;if(!f)return n();const next=()=>{if(--f===0){n()}};for(const r of p){if(!l||l(r)){d.push(s?r:r.fullpath())}if(a&&r.isSymbolicLink()){r.realpath().then((r=>r?.isUnknown()?r.lstat():r)).then((r=>r?.shouldWalk(A,u)?walk(r,next):next()))}else{if(r.shouldWalk(A,u)){walk(r,next)}else{next()}}}}),true)};const p=r;return new Promise(((r,n)=>{walk(p,(s=>{if(s)return n(s);r(d)}))}))}walkSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=[];if(!l||l(r)){d.push(s?r:r.fullpath())}const A=new Set([r]);for(const r of A){const n=r.readdirSync();for(const r of n){if(!l||l(r)){d.push(s?r:r.fullpath())}let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(A,u)){A.add(n)}}}return d}[Symbol.asyncIterator](){return this.iterate()}iterate(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}return this.stream(r,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;if(!l||l(r)){yield s?r:r.fullpath()}const d=new Set([r]);for(const r of d){const n=r.readdirSync();for(const r of n){if(!l||l(r)){yield s?r:r.fullpath()}let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(d,u)){d.add(n)}}}}stream(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=new C.Minipass({objectMode:true});if(!l||l(r)){d.write(s?r:r.fullpath())}const A=new Set;const p=[r];let f=0;const process=()=>{let r=false;while(!r){const n=p.shift();if(!n){if(f===0)d.end();return}f++;A.add(n);const onReaddir=(n,y,b=false)=>{if(n)return d.emit("error",n);if(a&&!b){const r=[];for(const n of y){if(n.isSymbolicLink()){r.push(n.realpath().then((r=>r?.isUnknown()?r.lstat():r)))}}if(r.length){Promise.all(r).then((()=>onReaddir(null,y,true)));return}}for(const n of y){if(n&&(!l||l(n))){if(!d.write(s?n:n.fullpath())){r=true}}}f--;for(const r of y){const n=r.realpathCached()||r;if(n.shouldWalk(A,u)){p.push(n)}}if(r&&!d.flowing){d.once("drain",process)}else if(!g){process()}};let g=true;n.readdirCB(onReaddir,true);g=false}};process();return d}streamSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=new C.Minipass({objectMode:true});const A=new Set;if(!l||l(r)){d.write(s?r:r.fullpath())}const p=[r];let f=0;const process=()=>{let r=false;while(!r){const n=p.shift();if(!n){if(f===0)d.end();return}f++;A.add(n);const g=n.readdirSync();for(const n of g){if(!l||l(n)){if(!d.write(s?n:n.fullpath())){r=true}}}f--;for(const r of g){let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(A,u)){p.push(n)}}}if(r&&!d.flowing)d.once("drain",process)};process();return d}chdir(r=this.cwd){const n=this.cwd;this.cwd=typeof r==="string"?this.cwd.resolve(r):r;this.cwd[V](n)}}n.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(r=process.cwd(),n={}){const{nocase:s=true}=n;super(r,A.win32,"\\",{...n,nocase:s});this.nocase=s;for(let r=this.cwd;r;r=r.parent){r.nocase=this.nocase}}parseRootPath(r){return A.win32.parse(r).root.toUpperCase()}newRoot(r){return new PathWin32(this.rootPath,R,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")||r.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(r)}}n.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(r=process.cwd(),n={}){const{nocase:s=false}=n;super(r,A.posix,"/",{...n,nocase:s});this.nocase=s}parseRootPath(r){return"/"}newRoot(r){return new PathPosix(this.rootPath,R,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")}}n.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(r=process.cwd(),n={}){const{nocase:s=true}=n;super(r,{...n,nocase:s})}}n.PathScurryDarwin=PathScurryDarwin;n.Path=process.platform==="win32"?PathWin32:PathPosix;n.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},65329:(r,n,s)=>{const a=s(99602);r.exports={version:a.version}},57212:r=>{function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r}const n=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ensureBuffer(r){if(Buffer.isBuffer(r)){return r}if(typeof r==="number"){return Buffer.alloc(r)}else if(typeof r==="string"){return Buffer.from(r)}else{throw new Error("input must be buffer, number, or string, received "+typeof r)}}function bufferizeInt(r){const n=ensureBuffer(4);n.writeInt32BE(r,0);return n}function _crc32(r,s){r=ensureBuffer(r);if(Buffer.isBuffer(s)){s=s.readUInt32BE(0)}let a=~~s^-1;for(var l=0;l>>8}return a^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var s=crc32;const a=getDefaultExportFromCjs(s);r.exports=a},38903:(r,n,s)=>{s.d(n,{Yz:()=>core_debug,z3:()=>error,Vt:()=>getBooleanInput,V4:()=>getInput,pq:()=>info,C1:()=>setFailed,uH:()=>setOutput,Pq:()=>core_setSecret,$e:()=>warning});var a=s(70857);function utils_toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}function utils_toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}function command_issueCommand(r,n,s){const l=new Command(r,n,s);process.stdout.write(l.toString()+a.EOL)}function command_issue(r,n=""){command_issueCommand(r,{},n)}const l="::";class Command{constructor(r,n,s){if(!r){r="missing.command"}this.command=r;this.properties=n;this.message=s}toString(){let r=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let n=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const a=this.properties[s];if(a){if(n){n=false}else{r+=","}r+=`${s}=${escapeProperty(a)}`}}}}r+=`${l}${escapeData(this.message)}`;return r}}function escapeData(r){return utils_toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return utils_toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var u=s(76982);var d=s(79896);function file_command_issueFileCommand(r,n){const s=process.env[`GITHUB_${r}`];if(!s){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!d.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}d.appendFileSync(s,`${utils_toCommandValue(n)}${a.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(r,n){const s=`ghadelimiter_${u.randomUUID()}`;const l=utils_toCommandValue(n);if(r.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(l.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${r}<<${s}${a.EOL}${l}${a.EOL}${s}`}var A=s(16928);var p=s(16877);var f=s(83428);var g=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(r=true,n=10){const s={allowRetries:r,maxRetries:n};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],s)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){return g(this,void 0,void 0,(function*(){var n;const s=oidc_utils_OidcClient.createHttpClient();const a=yield s.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const l=(n=a.result)===null||n===void 0?void 0:n.value;if(!l){throw new Error("Response json body do not have ID Token field")}return l}))}static getIDToken(r){return g(this,void 0,void 0,(function*(){try{let n=oidc_utils_OidcClient.getIDTokenUrl();if(r){const s=encodeURIComponent(r);n=`${n}&audience=${s}`}debug(`ID token url is ${n}`);const s=yield oidc_utils_OidcClient.getCall(n);setSecret(s);return s}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}var y=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const{access:b,appendFile:C,writeFile:w}=d.promises;const B="GITHUB_STEP_SUMMARY";const I="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return y(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[B];if(!r){throw new Error(`Unable to find environment variable for $${B}. Check if your runtime environment supports job summaries.`)}try{yield b(r,d.constants.R_OK|d.constants.W_OK)}catch(n){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,n,s={}){const a=Object.entries(s).map((([r,n])=>` ${r}="${n}"`)).join("");if(!n){return`<${r}${a}>`}return`<${r}${a}>${n}`}write(r){return y(this,void 0,void 0,(function*(){const n=!!(r===null||r===void 0?void 0:r.overwrite);const s=yield this.filePath();const a=n?w:C;yield a(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return y(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,n=false){this._buffer+=r;return n?this.addEOL():this}addEOL(){return this.addRaw(a.EOL)}addCodeBlock(r,n){const s=Object.assign({},n&&{lang:n});const a=this.wrap("pre",this.wrap("code",r),s);return this.addRaw(a).addEOL()}addList(r,n=false){const s=n?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const l=this.wrap(s,a);return this.addRaw(l).addEOL()}addTable(r){const n=r.map((r=>{const n=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:n,data:s,colspan:a,rowspan:l}=r;const u=n?"th":"td";const d=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(u,s,d)})).join("");return this.wrap("tr",n)})).join("");const s=this.wrap("table",n);return this.addRaw(s).addEOL()}addDetails(r,n){const s=this.wrap("details",this.wrap("summary",r)+n);return this.addRaw(s).addEOL()}addImage(r,n,s){const{width:a,height:l}=s||{};const u=Object.assign(Object.assign({},a&&{width:a}),l&&{height:l});const d=this.wrap("img",null,Object.assign({src:r,alt:n},u));return this.addRaw(d).addEOL()}addHeading(r,n){const s=`h${n}`;const a=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const l=this.wrap(a,r);return this.addRaw(l).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,n){const s=Object.assign({},n&&{cite:n});const a=this.wrap("blockquote",r,s);return this.addRaw(a).addEOL()}addLink(r,n){const s=this.wrap("a",r,{href:n});return this.addRaw(s).addEOL()}}const S=new Summary;const Q=null&&S;const v=null&&S;function toPosixPath(r){return r.replace(/[\\]/g,"/")}function toWin32Path(r){return r.replace(/[/]/g,"\\")}function toPlatformPath(r){return r.replace(/[/\\]/g,path.sep)}var R=s(13193);var D=s(24434);var N=s(35317);var T=s(42613);var x=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const{chmod:k,copyFile:_,lstat:P,mkdir:F,open:L,readdir:O,rename:M,rm:U,rmdir:H,stat:G,symlink:z,unlink:q}=d.promises;const V=process.platform==="win32";function readlink(r){return x(this,void 0,void 0,(function*(){const n=yield fs.promises.readlink(r);if(V&&!n.endsWith("\\")){return`${n}\\`}return n}))}const W=268435456;const j=d.constants.O_RDONLY;function exists(r){return x(this,void 0,void 0,(function*(){try{yield G(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}function isDirectory(r){return x(this,arguments,void 0,(function*(r,n=false){const s=n?yield G(r):yield P(r);return s.isDirectory()}))}function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(V){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}function tryGetExecutablePath(r,n){return x(this,void 0,void 0,(function*(){let s=undefined;try{s=yield G(r)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${n}`)}}if(s&&s.isFile()){if(V){const s=A.extname(r).toUpperCase();if(n.some((r=>r.toUpperCase()===s))){return r}}else{if(isUnixExecutable(s)){return r}}}const a=r;for(const l of n){r=a+l;s=undefined;try{s=yield G(r)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${n}`)}}if(s&&s.isFile()){if(V){try{const n=A.dirname(r);const s=A.basename(r).toUpperCase();for(const a of yield O(n)){if(s===a.toUpperCase()){r=A.join(n,a);break}}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${n}`)}return r}else{if(isUnixExecutable(s)){return r}}}}return""}))}function normalizeSeparators(r){r=r||"";if(V){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&process.getgid!==undefined&&r.gid===process.getgid()||(r.mode&64)>0&&process.getuid!==undefined&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}var Y=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function cp(r,n){return Y(this,arguments,void 0,(function*(r,n,s={}){const{force:a,recursive:l,copySourceDirectory:u}=readCopyOptions(s);const d=(yield ioUtil.exists(n))?yield ioUtil.stat(n):null;if(d&&d.isFile()&&!a){return}const A=d&&d.isDirectory()&&u?path.join(n,path.basename(r)):n;if(!(yield ioUtil.exists(r))){throw new Error(`no such file or directory: ${r}`)}const p=yield ioUtil.stat(r);if(p.isDirectory()){if(!l){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,A,0,a)}}else{if(path.relative(r,A)===""){throw new Error(`'${A}' and '${r}' are the same file`)}yield io_copyFile(r,A,a)}}))}function mv(r,n){return Y(this,arguments,void 0,(function*(r,n,s={}){if(yield ioUtil.exists(n)){let a=true;if(yield ioUtil.isDirectory(n)){n=path.join(n,path.basename(r));a=yield ioUtil.exists(n)}if(a){if(s.force==null||s.force){yield rmRF(n)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(n));yield ioUtil.rename(r,n)}))}function rmRF(r){return Y(this,void 0,void 0,(function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}function mkdirP(r){return Y(this,void 0,void 0,(function*(){ok(r,"a path argument must be provided");yield ioUtil.mkdir(r,{recursive:true})}))}function which(r,n){return Y(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(n){const n=yield which(r,false);if(!n){if(V){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return n}const s=yield findInPath(r);if(s&&s.length>0){return s[0]}return""}))}function findInPath(r){return Y(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const n=[];if(V&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(A.delimiter)){if(r){n.push(r)}}}if(isRooted(r)){const s=yield tryGetExecutablePath(r,n);if(s){return[s]}return[]}if(r.includes(A.sep)){return[]}const s=[];if(process.env.PATH){for(const r of process.env.PATH.split(A.delimiter)){if(r){s.push(r)}}}const a=[];for(const l of s){const s=yield tryGetExecutablePath(A.join(l,r),n);if(s){a.push(s)}}return a}))}function readCopyOptions(r){const n=r.force==null?true:r.force;const s=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:n,recursive:s,copySourceDirectory:a}}function cpDirRecursive(r,n,s,a){return Y(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(n);const l=yield ioUtil.readdir(r);for(const u of l){const l=`${r}/${u}`;const d=`${n}/${u}`;const A=yield ioUtil.lstat(l);if(A.isDirectory()){yield cpDirRecursive(l,d,s,a)}else{yield io_copyFile(l,d,a)}}yield ioUtil.chmod(n,(yield ioUtil.stat(r)).mode)}))}function io_copyFile(r,n,s){return Y(this,void 0,void 0,(function*(){if((yield ioUtil.lstat(r)).isSymbolicLink()){try{yield ioUtil.lstat(n);yield ioUtil.unlink(n)}catch(r){if(r.code==="EPERM"){yield ioUtil.chmod(n,"0666");yield ioUtil.unlink(n)}}const s=yield ioUtil.readlink(r);yield ioUtil.symlink(s,n,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(n))||s){yield ioUtil.copyFile(r,n)}}))}const J=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("timers");var $=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const K=process.platform==="win32";class ToolRunner extends D.EventEmitter{constructor(r,n,s){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=n||[];this.options=s||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,n){const s=this._getSpawnFileName();const a=this._getSpawnArgs(r);let l=n?"":"[command]";if(K){if(this._isCmdFile()){l+=s;for(const r of a){l+=` ${r}`}}else if(r.windowsVerbatimArguments){l+=`"${s}"`;for(const r of a){l+=` ${r}`}}else{l+=this._windowsQuoteCmdArg(s);for(const r of a){l+=` ${this._windowsQuoteCmdArg(r)}`}}}else{l+=s;for(const r of a){l+=` ${r}`}}return l}_processLineBuffer(r,n,s){try{let l=n+r.toString();let u=l.indexOf(a.EOL);while(u>-1){const r=l.substring(0,u);s(r);l=l.substring(u+a.EOL.length);u=l.indexOf(a.EOL)}return l}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(K){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(K){if(this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){n+=" ";n+=r.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}n+='"';return[n]}}return this.args}_endsWith(r,n){return r.endsWith(n)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const n=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const a of r){if(n.some((r=>r===a))){s=true;break}}if(!s){return r}let a='"';let l=true;for(let n=r.length;n>0;n--){a+=r[n-1];if(l&&r[n-1]==="\\"){a+="\\"}else if(r[n-1]==='"'){l=true;a+='"'}else{l=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let n='"';let s=true;for(let a=r.length;a>0;a--){n+=r[a-1];if(s&&r[a-1]==="\\"){n+="\\"}else if(r[a-1]==='"'){s=true;n+="\\"}else{s=false}}n+='"';return n.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const n={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};n.outStream=r.outStream||process.stdout;n.errStream=r.errStream||process.stderr;return n}_getSpawnOptions(r,n){r=r||{};const s={};s.cwd=r.cwd;s.env=r.env;s["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){s.argv0=`"${n}"`}return s}exec(){return $(this,void 0,void 0,(function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||K&&this.toolPath.includes("\\"))){this.toolPath=A.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise(((r,n)=>$(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+a.EOL)}const l=new ExecState(s,this.toolPath);l.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield exists(this.options.cwd))){return n(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const u=this._getSpawnFileName();const d=N.spawn(u,this._getSpawnArgs(s),this._getSpawnOptions(this.options,u));let A="";if(d.stdout){d.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!s.silent&&s.outStream){s.outStream.write(r)}A=this._processLineBuffer(r,A,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let p="";if(d.stderr){d.stderr.on("data",(r=>{l.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!s.silent&&s.errStream&&s.outStream){const n=s.failOnStdErr?s.errStream:s.outStream;n.write(r)}p=this._processLineBuffer(r,p,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}d.on("error",(r=>{l.processError=r.message;l.processExited=true;l.processClosed=true;l.CheckComplete()}));d.on("exit",(r=>{l.processExitCode=r;l.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);l.CheckComplete()}));d.on("close",(r=>{l.processExitCode=r;l.processExited=true;l.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);l.CheckComplete()}));l.on("done",((s,a)=>{if(A.length>0){this.emit("stdline",A)}if(p.length>0){this.emit("errline",p)}d.removeAllListeners();if(s){n(s)}else{r(a)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}function argStringToArray(r){const n=[];let s=false;let a=false;let l="";function append(r){if(a&&r!=='"'){l+="\\"}l+=r;a=false}for(let u=0;u0){n.push(l);l=""}continue}append(d)}if(l.length>0){n.push(l.trim())}return n}class ExecState extends D.EventEmitter{constructor(r,n){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!n){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=n;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,J.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const n=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(n)}r._setResult()}}var X=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function exec_exec(r,n,s){return X(this,void 0,void 0,(function*(){const a=tr.argStringToArray(r);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const l=a[0];n=a.slice(1).concat(n||[]);const u=new tr.ToolRunner(l,n,s);return u.exec()}))}function getExecOutput(r,n,s){return X(this,void 0,void 0,(function*(){var a,l;let u="";let d="";const A=new StringDecoder("utf8");const p=new StringDecoder("utf8");const f=(a=s===null||s===void 0?void 0:s.listeners)===null||a===void 0?void 0:a.stdout;const g=(l=s===null||s===void 0?void 0:s.listeners)===null||l===void 0?void 0:l.stderr;const stdErrListener=r=>{d+=p.write(r);if(g){g(r)}};const stdOutListener=r=>{u+=A.write(r);if(f){f(r)}};const y=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const b=yield exec_exec(r,n,Object.assign(Object.assign({},s),{listeners:y}));u+=A.end();d+=p.end();return{exitCode:b,stdout:u,stderr:d}}))}var Z=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const getWindowsInfo=()=>Z(void 0,void 0,void 0,(function*(){const{stdout:r}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:n}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:n.trim(),version:r.trim()}}));const getMacOsInfo=()=>Z(void 0,void 0,void 0,(function*(){var r,n,s,a;const{stdout:l}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const u=(n=(r=l.match(/ProductVersion:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";const d=(a=(s=l.match(/ProductName:\s*(.+)/))===null||s===void 0?void 0:s[1])!==null&&a!==void 0?a:"";return{name:d,version:u}}));const getLinuxInfo=()=>Z(void 0,void 0,void 0,(function*(){const{stdout:r}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[n,s]=r.trim().split("\n");return{name:n,version:s}}));const ee=a.platform();const te=a.arch();const re=ee==="win32";const ne=ee==="darwin";const se=ee==="linux";function getDetails(){return Z(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield re?getWindowsInfo():ne?getMacOsInfo():getLinuxInfo()),{platform:ee,arch:te,isWindows:re,isMacOS:ne,isLinux:se})}))}var ie=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var oe;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(oe||(oe={}));function exportVariable(r,n){const s=toCommandValue(n);process.env[r]=s;const a=process.env["GITHUB_ENV"]||"";if(a){return issueFileCommand("ENV",prepareKeyValueMessage(r,n))}issueCommand("set-env",{name:r},s)}function core_setSecret(r){command_issueCommand("add-mask",{},r)}function addPath(r){const n=process.env["GITHUB_PATH"]||"";if(n){issueFileCommand("PATH",r)}else{issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${path.delimiter}${process.env["PATH"]}`}function getInput(r,n){const s=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!s){throw new Error(`Input required and not supplied: ${r}`)}if(n&&n.trimWhitespace===false){return s}return s.trim()}function getMultilineInput(r,n){const s=getInput(r,n).split("\n").filter((r=>r!==""));if(n&&n.trimWhitespace===false){return s}return s.map((r=>r.trim()))}function getBooleanInput(r,n){const s=["true","True","TRUE"];const a=["false","False","FALSE"];const l=getInput(r,n);if(s.includes(l))return true;if(a.includes(l))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(r,n){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return file_command_issueFileCommand("OUTPUT",file_command_prepareKeyValueMessage(r,n))}process.stdout.write(a.EOL);command_issueCommand("set-output",{name:r},utils_toCommandValue(n))}function setCommandEcho(r){issue("echo",r?"on":"off")}function setFailed(r){process.exitCode=oe.Failure;error(r)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(r){command_issueCommand("debug",{},r)}function error(r,n={}){command_issueCommand("error",utils_toCommandProperties(n),r instanceof Error?r.toString():r)}function warning(r,n={}){command_issueCommand("warning",utils_toCommandProperties(n),r instanceof Error?r.toString():r)}function notice(r,n={}){issueCommand("notice",toCommandProperties(n),r instanceof Error?r.toString():r)}function info(r){process.stdout.write(r+a.EOL)}function startGroup(r){issue("group",r)}function endGroup(){issue("endgroup")}function group(r,n){return ie(this,void 0,void 0,(function*(){startGroup(r);let s;try{s=yield n()}finally{endGroup()}return s}))}function saveState(r,n){const s=process.env["GITHUB_STATE"]||"";if(s){return issueFileCommand("STATE",prepareKeyValueMessage(r,n))}issueCommand("save-state",{name:r},toCommandValue(n))}function getState(r){return process.env[`STATE_${r}`]||""}function getIDToken(r){return ie(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(r)}))}},95660:(r,n,s)=>{s.d(n,{o:()=>Context});var a=s(79896);var l=s(70857);class Context{constructor(){var r,n,s;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,a.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,a.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${l.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10);this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(n=process.env.GITHUB_SERVER_URL)!==null&&n!==void 0?n:`https://github.com`;this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,n]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:n}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}},17216:(r,n,s)=>{s.d(n,{Q:()=>getOctokit,_:()=>u});var a=s(95660);var l=s(79431);const u=new a.o;function getOctokit(r,n,...s){const a=l.gq.plugin(...s);return new a((0,l.EG)(r,n))}},79431:(r,n,s)=>{s.d(n,{gq:()=>de,NT:()=>ue,EG:()=>getOctokitOptions});var a=s(95660);var l=s(77708);var u=s(32624);var d=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function getAuthString(r,n){if(!r&&!n.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&n.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof n.auth==="string"?n.auth:`token ${r}`}function getProxyAgent(r){const n=new l.HttpClient;return n.getAgent(r)}function getProxyAgentDispatcher(r){const n=new l.HttpClient;return n.getAgentDispatcher(r)}function getProxyFetch(r){const n=getProxyAgentDispatcher(r);const proxyFetch=(r,s)=>d(this,void 0,void 0,(function*(){return(0,u.fetch)(r,Object.assign(Object.assign({},s),{dispatcher:n}))}));return proxyFetch}function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(r,n,s,a){if(typeof s!=="function"){throw new Error("method for before hook must be a function")}if(!a){a={}}if(Array.isArray(n)){return n.reverse().reduce(((n,s)=>register.bind(null,r,s,n,a)),s)()}return Promise.resolve().then((()=>{if(!r.registry[n]){return s(a)}return r.registry[n].reduce(((r,n)=>n.hook.bind(null,r,a)),s)()}))}function addHook(r,n,s,a){const l=a;if(!r.registry[s]){r.registry[s]=[]}if(n==="before"){a=(r,n)=>Promise.resolve().then(l.bind(null,n)).then(r.bind(null,n))}if(n==="after"){a=(r,n)=>{let s;return Promise.resolve().then(r.bind(null,n)).then((r=>{s=r;return l(s,n)})).then((()=>s))}}if(n==="error"){a=(r,n)=>Promise.resolve().then(r.bind(null,n)).catch((r=>l(r,n)))}r.registry[s].push({hook:a,orig:l})}function removeHook(r,n,s){if(!r.registry[n]){return}const a=r.registry[n].map((r=>r.orig)).indexOf(s);if(a===-1){return}r.registry[n].splice(a,1)}const A=Function.bind;const p=A.bind(A);function bindApi(r,n,s){const a=p(removeHook,null).apply(null,s?[n,s]:[n]);r.api={remove:a};r.remove=a;["before","error","after","wrap"].forEach((a=>{const l=s?[n,a,s]:[n,a];r[a]=r.api[a]=p(addHook,null).apply(null,l)}))}function Singular(){const r=Symbol("Singular");const n={registry:{}};const s=register.bind(null,n,r);bindApi(s,n,r);return s}function Collection(){const r={registry:{}};const n=register.bind(null,r);bindApi(n,r);return n}const f={Singular:Singular,Collection:Collection};var g="0.0.0-development";var y=`octokit-endpoint.js/${g} ${getUserAgent()}`;var b={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":y},mediaType:{format:""}};function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((n,s)=>{n[s.toLowerCase()]=r[s];return n}),{})}function isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const n=Object.getPrototypeOf(r);if(n===null)return true;const s=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return typeof s==="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function mergeDeep(r,n){const s=Object.assign({},r);Object.keys(n).forEach((a=>{if(isPlainObject(n[a])){if(!(a in r))Object.assign(s,{[a]:n[a]});else s[a]=mergeDeep(r[a],n[a])}else{Object.assign(s,{[a]:n[a]})}}));return s}function removeUndefinedProperties(r){for(const n in r){if(r[n]===void 0){delete r[n]}}return r}function merge(r,n,s){if(typeof n==="string"){let[r,a]=n.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},n)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(s.url==="/graphql"){if(r&&r.mediaType.previews?.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=(a.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return a}function addQueryParameters(r,n){const s=/\?/.test(r)?"&":"?";const a=Object.keys(n);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+n.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(n[r])}`})).join("&")}var C=/\{[^{}}]+\}/g;function removeNonChars(r){return r.replace(/(?:^\W+)|(?:(?r.concat(n)),[])}function omit(r,n){const s={__proto__:null};for(const a of Object.keys(r)){if(n.indexOf(a)===-1){s[a]=r[a]}}return s}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,n,s){n=r==="+"||r==="#"?encodeReserved(n):encodeUnreserved(n);if(s){return encodeUnreserved(s)+"="+n}else{return n}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,n,s,a){var l=r[s],u=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="bigint"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}u.push(encodeValue(n,l,isKeyOperator(n)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){u.push(encodeValue(n,r,isKeyOperator(n)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){u.push(encodeValue(n,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(n,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(n,l[s].toString()))}}))}if(isKeyOperator(n)){u.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){u.push(r.join(","))}}}}else{if(n===";"){if(isDefined(l)){u.push(encodeUnreserved(s))}}else if(l===""&&(n==="&"||n==="?")){u.push(encodeUnreserved(s)+"=")}else if(l===""){u.push("")}}return u}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,n){var s=["+","#",".","/",";","?","&"];r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(n,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var u=",";if(r==="?"){u="&"}else if(r!=="#"){u=r}return(l.length!==0?r:"")+l.join(u)}else{return l.join(",")}}else{return encodeReserved(l)}}));if(r==="/"){return r}else{return r.replace(/\/$/,"")}}function parse(r){let n=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let u=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const d=extractUrlVariableNames(s);s=parseUrl(s).expand(u);if(!/^http/.test(s)){s=r.baseUrl+s}const A=Object.keys(r).filter((r=>d.includes(r))).concat("baseUrl");const p=omit(u,A);const f=/application\/octet-stream/i.test(a.accept);if(!f){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((n=>n.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(s.endsWith("/graphql")){if(r.mediaType.previews?.length){const n=a.accept.match(/(?{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${n}-preview${s}`})).join(",")}}}if(["GET","HEAD"].includes(n)){s=addQueryParameters(s,p)}else{if("data"in p){l=p.data}else{if(Object.keys(p).length){l=p}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(n)&&typeof l==="undefined"){l=""}return Object.assign({method:n,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,n,s){return parse(merge(r,n,s))}function withDefaults(r,n){const s=merge(r,n);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}var w=withDefaults(null,b);var B=s(90975);const I=/^-?\d+$/;const S=/^-?\d+n+$/;const Q=JSON.stringify;const v=JSON.parse;const R=/^-?\d+n$/;const D=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const N=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const JSONStringify=(r,n,s)=>{if("rawJSON"in JSON){return Q(r,((r,s)=>{if(typeof s==="bigint")return JSON.rawJSON(s.toString());if(typeof n==="function")return n(r,s);if(Array.isArray(n)&&n.includes(r))return s;return s}),s)}if(!r)return Q(r,n,s);const a=Q(r,((r,s)=>{const a=typeof s==="string"&&Boolean(s.match(S));if(a)return s.toString()+"n";if(typeof s==="bigint")return s.toString()+"n";if(typeof n==="function")return n(r,s);if(Array.isArray(n)&&n.includes(r))return s;return s}),s);const l=a.replace(D,"$1$2$3");const u=l.replace(N,"$1$2$3");return u};const isContextSourceSupported=()=>JSON.parse("1",((r,n,s)=>!!s&&s.source==="1"));const convertMarkedBigIntsReviver=(r,n,s,a)=>{const l=typeof n==="string"&&n.match(R);if(l)return BigInt(n.slice(0,-1));const u=typeof n==="string"&&n.match(S);if(u)return n.slice(0,-1);if(typeof a!=="function")return n;return a(r,n,s)};const JSONParseV2=(r,n)=>JSON.parse(r,((r,s,a)=>{const l=typeof s==="number"&&(s>Number.MAX_SAFE_INTEGER||s{if(!r)return v(r,n);if(isContextSourceSupported())return JSONParseV2(r,n);const s=r.replace(k,((r,n,s,a)=>{const l=r[0]==='"';const u=l&&Boolean(r.match(_));if(u)return r.substring(0,r.length-1)+'n"';const d=s||a;const A=n&&(n.lengthconvertMarkedBigIntsReviver(r,s,a,n)))};var P=s(54128);var F="10.0.8";var L={headers:{"user-agent":`octokit-request.js/${F} ${getUserAgent()}`}};function dist_bundle_isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const n=Object.getPrototypeOf(r);if(n===null)return true;const s=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return typeof s==="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}var noop=()=>"";async function fetchWrapper(r){const n=r.request?.fetch||globalThis.fetch;if(!n){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const s=r.request?.log||console;const a=r.request?.parseSuccessResponseBody!==false;const l=dist_bundle_isPlainObject(r.body)||Array.isArray(r.body)?JSONStringify(r.body):r.body;const u=Object.fromEntries(Object.entries(r.headers).map((([r,n])=>[r,String(n)])));let d;try{d=await n(r.url,{method:r.method,body:l,redirect:r.request?.redirect,headers:u,signal:r.request?.signal,...r.body&&{duplex:"half"}})}catch(n){let s="Unknown Error";if(n instanceof Error){if(n.name==="AbortError"){n.status=500;throw n}s=n.message;if(n.name==="TypeError"&&"cause"in n){if(n.cause instanceof Error){s=n.cause.message}else if(typeof n.cause==="string"){s=n.cause}}}const a=new P.G(s,500,{request:r});a.cause=n;throw a}const A=d.status;const p=d.url;const f={};for(const[r,n]of d.headers){f[r]=n}const g={url:p,status:A,headers:f,data:""};if("deprecation"in f){const n=f.link&&f.link.match(/<([^<>]+)>; rel="deprecation"/);const a=n&&n.pop();s.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${f.sunset}${a?`. See ${a}`:""}`)}if(A===204||A===205){return g}if(r.method==="HEAD"){if(A<400){return g}throw new P.G(d.statusText,A,{response:g,request:r})}if(A===304){g.data=await getResponseData(d);throw new P.G("Not modified",A,{response:g,request:r})}if(A>=400){g.data=await getResponseData(d);throw new P.G(toErrorMessage(g.data),A,{response:g,request:r})}g.data=a?await getResponseData(d):d.body;return g}async function getResponseData(r){const n=r.headers.get("content-type");if(!n){return r.text().catch(noop)}const s=(0,B.xL)(n);if(isJSONResponse(s)){let n="";try{n=await r.text();return JSONParse(n)}catch(r){return n}}else if(s.type.startsWith("text/")||s.parameters.charset?.toLowerCase()==="utf-8"){return r.text().catch(noop)}else{return r.arrayBuffer().catch(( + */const jr={parse:parse,stringify:stringify,TomlDate:TomlDate,TomlError:TomlError};var Wr=s(84841);var Yr=s.n(Wr);function _tryParseJsonConfig(r){try{const n=JSON.parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function _tryParseJson5Config(r){try{const n=Yr().parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function _tryParseTomlConfig(r){try{const n=jr.parse(r);return n}catch(r){const n=r.message;console.error(`Couldn't parse --config flag as inline JSON. This error can be ignored if it's a file path. Source: "${n}"`);return null}}function readPlatformConfig(r,n){let s=(0,l.join)(r,`tauri.${n}.conf.json`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseJsonConfig(r);if(n)return n}s=(0,l.join)(r,`tauri.${n}.conf.json5`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseJson5Config(r);if(n)return n}s=(0,l.join)(r,`Tauri.${n}.toml`);if((0,a.existsSync)(s)){const r=(0,a.readFileSync)(s).toString();const n=_tryParseTomlConfig(r);if(n)return n}return null}function readCustomConfig(r){if(!(0,a.existsSync)(r)){throw new Error(`Provided config path \`${r}\` does not exist.`)}const n=(0,a.readFileSync)(r).toString();const s=u().extname(r);if(s===".json"){const r=_tryParseJsonConfig(n);if(r)return r}if(s===".json5"){const r=_tryParseJson5Config(n);if(r)return r}if(s===".toml"){const r=_tryParseTomlConfig(n);if(r)return r}throw new Error(`Couldn't parse \`${r}\` as ${s.substring(1)}.`)}class TauriConfig{identifier;productName;mainBinaryName;version;frontendDist;beforeBuildCommand;rpmRelease;wixLanguage;unzippedSigs;constructor(r){this.identifier=r}static fromBaseConfig(r){if((0,a.existsSync)((0,l.join)(r,"tauri.conf.json"))){const n=(0,a.readFileSync)((0,l.join)(r,"tauri.conf.json")).toString();const s=_tryParseJsonConfig(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found tauri.conf.json file but couldn't parse it as JSON.")}if((0,a.existsSync)((0,l.join)(r,"tauri.conf.json5"))){const n=(0,a.readFileSync)((0,l.join)(r,"tauri.conf.json5")).toString();const s=_tryParseJson5Config(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found tauri.conf.json5 file but couldn't parse it as JSON5.")}if((0,a.existsSync)((0,l.join)(r,"Tauri.toml"))){const n=(0,a.readFileSync)((0,l.join)(r,"Tauri.toml")).toString();const s=_tryParseTomlConfig(n);if(s){return TauriConfig.fromV2Base(s)}console.error("Found Tauri.toml file but couldn't parse it as TOML.")}throw new Error("Couldn't locate or parse tauri config.")}static fromV2Base(r){if(!r.identifier){throw Error("base config has no bundle identifier.")}const n=new TauriConfig(r.identifier);n.productName=r.productName;n.mainBinaryName=r.mainBinaryName;n.version=r.version;n.frontendDist=r.build?.frontendDist;n.beforeBuildCommand=r.build?.beforeBuildCommand;n.rpmRelease=r.bundle?.linux?.rpm?.release;n.wixLanguage=r.bundle?.windows?.wix?.language;n.unzippedSigs=r.bundle?.createUpdaterArtifacts===true;return n}mergeConfig(r){this.identifier=r.identifier??this.identifier;this.productName=r.productName??this.productName;this.mainBinaryName=r.mainBinaryName??this.mainBinaryName;this.version=r.version??this.version;this.frontendDist=r.build?.frontendDist??this.frontendDist;this.beforeBuildCommand=r.build?.beforeBuildCommand??this.beforeBuildCommand;this.rpmRelease=r.bundle?.linux?.rpm?.release??this.rpmRelease;this.wixLanguage=r.bundle?.windows?.wix?.language??this.wixLanguage;this.unzippedSigs=r.bundle?.createUpdaterArtifacts!=null?r.bundle?.createUpdaterArtifacts===true:this.unzippedSigs}mergePlatformConfig(r,n){const s=readPlatformConfig(r,n);if(s){this.mergeConfig(s)}}mergeUserConfig(r,n){let s=_tryParseJsonConfig(n);if(!s){const a=u().isAbsolute(n)?n:u().join(r,n);s=readCustomConfig(a)}if(s){this.mergeConfig(s)}else{console.error(`Couldn't read --config: ${n}`)}}}var Jr=s(41872);const $r=[".app.tar.gz.sig",".app.tar.gz",".dmg",".AppImage.tar.gz.sig",".AppImage.tar.gz",".AppImage.sig",".AppImage",".deb.sig",".deb",".rpm.sig",".rpm",".msi.zip.sig",".msi.zip",".msi.sig",".msi",".nsis.zip.sig",".nsis.zip",".exe.sig",".exe"];function parseAsset(r){const n=path.basename(r);const s=$r.filter((r=>n.includes(r)));const a=s[0]||path.extname(r);const l=n.replace(a,"");let u="";if(a===".app.tar.gz.sig"||a===".app.tar.gz"){if(r.includes("universal-apple-darwin")){u="universal"}else if(r.includes("aarch64-apple-darwin")){u="aarch64"}else if(r.includes("x86_64-apple-darwin")){u="x64"}else{u=process.arch==="arm64"?"aarch64":"x64"}}return{basename:n,ext:a,filename:l,arch:u}}function renderNamePattern(r,n){return r.replace(/\[(\w+)]/g,((r,s)=>{if(!Object.hasOwn(n,s)){return r}const a=n[s];return a}))}function getAssetName(r,n){if(r.name==="latest.json"){return"latest.json"}if(n){return renderNamePattern(n,r)}else{if(r.ext!==".app.tar.gz"&&r.ext!==".app.tar.gz.sig"&&r.name!=="binary"){return(0,l.basename)(r.path)}const n=(0,l.basename)(r.path,r.ext);const s=`_${r.arch}`;let a="";let u="";if(r.name==="binary"){a=`_${r.platform}`}if(r.ext.includes(".app.tar.gz")){u=`_${r.version}`}return n+a+u+s+r.ext}}function ghAssetName(r,n){return getAssetName(r,n).trim().replace(/[^a-zA-Z0-9_-]/g,".").replace(/\.\./g,".")}function createArtifact({path:r,name:n,platform:s,arch:a,bundle:u,version:d}){const A=(0,l.basename)(r);const p=$r.filter((r=>A.includes(r)));const f=p[0]||(0,l.extname)(r);let g;if(n==="binary"||[".app",".dmg",".exe",".msi",".deb",".rpm",".AppImage",".apk",".aab",".ipa"].includes(f)){g=`${s}-${a}-${u}`}return{path:r,name:n,mode:Jr._o?"debug":"release",platform:s==="macos"?"darwin":s,arch:a,bundle:u,ext:f,version:d,setup:u==="nsis"?"-setup":"",_setup:u==="nsis"?"_setup":"",workflowArtifactName:g}}function getPackageJson(r){const n=(0,l.join)(r,"package.json");if((0,a.existsSync)(n)){const r=(0,a.readFileSync)(n).toString();return JSON.parse(r)}return null}function getTauriDir(){const r=(0,Lr.Hz)(["**/tauri.conf.json","**/tauri.conf.json5","**/Tauri.toml"],{gitignore:true,cwd:Jr.DZ,ignore:["**/target","**/node_modules"]});if(r.length===0){return null}return(0,l.resolve)(Jr.DZ,r[0],"..")}function getWorkspaceDir(r){const n=r;while(r.length&&r[r.length-1]!==l.sep){const s=(0,l.join)(r,"Cargo.toml");if((0,a.existsSync)(s)){const u=jr.parse((0,a.readFileSync)(s).toString());if(u.workspace&&r===n){return r}if(u.workspace?.members){const s=["**/target","**/node_modules"];if(u.workspace.exclude)s.push(...u.workspace.exclude);const a=(0,Lr.Hz)(u.workspace.members,{cwd:r,ignore:s,expandDirectories:false,onlyFiles:false});if(a.some((s=>(0,l.resolve)(r,s)===n))){return r}}}r=(0,l.normalize)((0,l.join)(r,".."))}return null}function getTargetDir(r,n,s){const d=(0,l.join)(r,"target");let A=n;let p;let f;if(process.env.CARGO_TARGET_DIR){p=process.env.CARGO_TARGET_DIR??d}while(A.length&&A[A.length-1]!==l.sep){let r=(0,l.join)(A,".cargo/config");if(!(0,a.existsSync)(r)){r=(0,l.join)(A,".cargo/config.toml")}if((0,a.existsSync)(r)){const n=jr.parse((0,a.readFileSync)(r).toString());if(!p&&n.build?.["target-dir"]){const r=n.build["target-dir"];if(u().isAbsolute(r)){p=r}else{p=(0,l.normalize)((0,l.join)(A,r))}}if(!s&&!f&&typeof n.build?.target==="string"){f=n.build.target}}if(p&&f)break;A=(0,l.normalize)((0,l.join)(A,".."))}if(p){return(0,l.normalize)((0,l.join)(p,f??""))}return(0,l.normalize)((0,l.join)(d,f??""))}function getCargoManifest(r){const n=(0,l.join)(r,"Cargo.toml");const s=jr.parse((0,a.readFileSync)(n).toString());let u=s.package.name;let d=s.package.version;if(typeof s.package.version==="object"||typeof s.package.name==="object"){const n=getWorkspaceDir(r);if(!n){throw new Error("Could not find workspace directory, but version and/or name specifies to use workspace package")}const s=(0,l.join)(n,"Cargo.toml");const A=jr.parse((0,a.readFileSync)(s).toString());if(typeof u==="object"&&A?.workspace?.package?.name!==undefined){u=A.workspace.package.name}if(typeof d==="object"&&A?.workspace?.package?.version!==undefined){d=A.workspace.package.version}}return{...s,package:{...s.package,name:u,version:d}}}function hasDependency(r,n){const s=getPackageJson(n);return s&&(s.dependencies?.[r]||s.devDependencies?.[r])}function hasTauriScript(r){const n=getPackageJson(r);return!!n&&!!n.scripts?.tauri}function usesNpm(r){if(findUpSync("package-lock.json",{cwd:r})){if(isRunnerInstalled("npm")){return true}else{console.warn("package-lock.json detected but couldn't find `npm` executable.")}}return false}function usesYarn(r){if(findUpSync("yarn.lock",{cwd:r})){if(isRunnerInstalled("yarn")){return true}else{console.warn("yarn.lock detected but couldn't find `yarn` executable.")}}return false}function usesPnpm(r){if(findUpSync("pnpm-lock.yaml",{cwd:r})){if(isRunnerInstalled("pnpm")){return true}else{console.warn("pnpm-lock.yaml detected but couldn't find `pnpm` executable.")}}return false}function usesBun(r){if(findUpSync("bun.lockb",{cwd:r})||findUpSync("bun.lock",{cwd:r})){if(isRunnerInstalled("bun")){return true}else{console.warn("bun.lock(b) detected but couldn't find `bun` executable.")}}return false}function isRunnerInstalled(r){const n=process.platform==="win32"?"where.exe":"which";try{return vr(n,[r]).exitCode===0}catch(r){return false}}async function execCommand(r,n,{cwd:s}={},a={}){console.log(`running ${r}`,n);const l=Qr(r,n,{cwd:s,env:{FORCE_COLOR:"0",...a},lines:true,stdio:"pipe",reject:false});l.stdout?.on("data",(r=>{process.stdout.write(r)}));l.stderr?.on("data",(r=>{process.stderr.write(r)}));return new Promise(((s,a)=>{l.on("exit",(l=>{if(l&&l>0){a(new Error(`Command "${r} ${JSON.stringify(n)}" failed with exit code ${l}`))}else{s()}}))}))}function getInfo(r,n){const s=getTauriDir();if(s!==null){let u;let d;let A="en-US";let p="1";const f=TauriConfig.fromBaseConfig(s);if(r){f.mergePlatformConfig(s,r.platform)}if(n){for(const r of n){f.mergeUserConfig(Jr.DZ,r)}}u=f?.productName;if(f.version?.endsWith(".json")){const r=(0,l.join)(s,f?.version);const n=(0,a.readFileSync)(r).toString();d=JSON.parse(n).version}else{d=f?.version}const g=getCargoManifest(s);if(!(u&&d)){u=u??g.package.name;d=d??g.package.version}if(!(u&&d)){console.error("Could not determine package name and version.");process.exit(1)}if(f.wixLanguage){A=f.wixLanguage}if(f.rpmRelease){p=f.rpmRelease}return{tauriPath:s,name:u,mainBinaryName:f.mainBinaryName||g.package.name,version:d,wixLanguage:A,rpmRelease:p,unzippedSigs:f.unzippedSigs===true}}else{throw Error("Couldn't detect Tauri dir")}}function getTargetInfo(r){let n=process.arch;let s;if(Jr.m0){s="android"}else if(Jr.un){s="ios"}else if(process.platform==="win32"){s="windows"}else if(process.platform==="darwin"){s="macos"}else{s="linux"}if(r){if(r.includes("windows")){s="windows"}else if(r.includes("darwin")||r.includes("macos")){s="macos"}else if(r.includes("linux")){s="linux"}else if(r.includes("android")){s="android"}else if(r.includes("ios")){s="ios"}if(r.includes("-")){n=r.split("-")[0]}}return{arch:n,platform:s}}async function retry(r,n){const s=n+1;for(let n=1;n<=s;n++){try{return await r()}catch(r){if(n>=s)throw r;console.log(`Attempt ${n} failed. ${s-n} tries left.`)}}}function deleteGiteaReleaseAsset(r,n,s){return r.request("DELETE /repos/{owner}/{repo}/releases/{release_id}/assets/{asset_id}",{owner:Jr.eC,repo:Jr.LB,release_id:n,asset_id:s})}},60075:module=>{module.exports=eval("require")("supports-color")},42613:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("assert")},20181:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("buffer")},35317:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("child_process")},49140:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("constants")},76982:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("crypto")},24434:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("events")},79896:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("fs")},58611:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("http")},65692:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("https")},69278:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("net")},34589:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:assert")},16698:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:async_hooks")},4573:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:buffer")},31421:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:child_process")},37540:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:console")},77598:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:crypto")},53053:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:diagnostics_channel")},40610:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:dns")},78474:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:events")},73024:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs")},51455:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:fs/promises")},37067:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http")},32467:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:http2")},77030:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:net")},48161:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:os")},76760:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:path")},643:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:perf_hooks")},1708:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:process")},41792:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:querystring")},57075:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream")},46466:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:stream/promises")},46193:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:string_decoder")},41692:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:tls")},73136:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:url")},57975:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util")},73429:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:util/types")},75919:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:worker_threads")},38522:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("node:zlib")},70857:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("os")},16928:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("path")},2203:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("stream")},13193:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("string_decoder")},64756:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tls")},52018:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("tty")},87016:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("url")},39023:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("util")},43106:r=>{r.exports=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("zlib")},33345:(r,n)=>{var s;s={value:true};n.w=void 0;n.w={operationRequestMap:new WeakMap}},38914:(r,n)=>{var s;s={value:true};n.w=void 0;n.w={instrumenterImplementation:undefined}},41120:r=>{var n;const s=function NullObject(){};s.prototype=Object.create(null);const a=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;const l=/\\([\v\u0020-\u00ff])/gu;const u=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;const d={type:"",parameters:new s};Object.freeze(d.parameters);Object.freeze(d);function parse(r){if(typeof r!=="string"){throw new TypeError("argument header is required and must be a string")}let n=r.indexOf(";");const d=n!==-1?r.slice(0,n).trim():r.trim();if(u.test(d)===false){throw new TypeError("invalid media type")}const A={type:d.toLowerCase(),parameters:new s};if(n===-1){return A}let p;let f;let g;a.lastIndex=n;while(f=a.exec(r)){if(f.index!==n){throw new TypeError("invalid parameter format")}n+=f[0].length;p=f[1].toLowerCase();g=f[2];if(g[0]==='"'){g=g.slice(1,g.length-1);l.test(g)&&(g=g.replace(l,"$1"))}A.parameters[p]=g}if(n!==r.length){throw new TypeError("invalid parameter format")}return A}function safeParse(r){if(typeof r!=="string"){return d}let n=r.indexOf(";");const A=n!==-1?r.slice(0,n).trim():r.trim();if(u.test(A)===false){return d}const p={type:A.toLowerCase(),parameters:new s};if(n===-1){return p}let f;let g;let y;a.lastIndex=n;while(g=a.exec(r)){if(g.index!==n){return d}n+=g[0].length;f=g[1].toLowerCase();y=g[2];if(y[0]==='"'){y=y.slice(1,y.length-1);l.test(y)&&(y=y.replace(l,"$1"))}p.parameters[f]=y}if(n!==r.length){return d}return p}n={parse:parse,safeParse:safeParse};n=parse;r.exports.xL=safeParse;n=d},53281:(r,n,s)=>{var a=s(60844);function fastqueue(r,n,s){if(typeof r==="function"){s=n;n=r;r=null}if(!(s>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}var l=a(Task);var u=null;var d=null;var A=0;var p=null;var f={push:push,drain:noop,saturated:noop,pause:pause,paused:false,get concurrency(){return s},set concurrency(r){if(!(r>=1)){throw new Error("fastqueue concurrency must be equal to or greater than 1")}s=r;if(f.paused)return;for(;u&&A=s||f.paused){if(d){d.next=y;d=y}else{u=y;d=y;f.saturated()}}else{A++;n.call(r,y.value,y.worked)}}function unshift(a,g){var y=l.get();y.context=r;y.release=release;y.value=a;y.callback=g||noop;y.errorHandler=p;if(A>=s||f.paused){if(u){y.next=u;u=y}else{u=y;d=y;f.saturated()}}else{A++;n.call(r,y.value,y.worked)}}function release(a){if(a){l.release(a)}var p=u;if(p&&A<=s){if(!f.paused){if(d===u){d=null}u=p.next;p.next=null;n.call(r,p.value,p.worked);if(d===null){f.empty()}}else{A--}}else if(--A===0){f.drain()}}function kill(){u=null;d=null;f.drain=noop}function killAndDrain(){u=null;d=null;f.drain();f.drain=noop}function abort(){var r=u;u=null;d=null;while(r){var n=r.next;var s=r.callback;var a=r.errorHandler;var l=r.value;var A=r.context;r.value=null;r.callback=noop;r.errorHandler=null;if(a){a(new Error("abort"),l)}s.call(A,new Error("abort"));r.release(r);r=n}f.drain=noop}function error(r){p=r}}function noop(){}function Task(){this.value=null;this.callback=noop;this.next=null;this.release=noop;this.context=null;this.errorHandler=null;var r=this;this.worked=function worked(n,s){var a=r.callback;var l=r.errorHandler;var u=r.value;r.value=null;r.callback=noop;if(r.errorHandler){l(n,u)}a.call(r.context,n,s);r.release(r)}}function queueAsPromised(r,n,s){if(typeof r==="function"){s=n;n=r;r=null}function asyncWrapper(r,s){n.call(this,r).then((function(r){s(null,r)}),s)}var a=fastqueue(r,asyncWrapper,s);var l=a.push;var u=a.unshift;a.push=push;a.unshift=unshift;a.drained=drained;return a;function push(r){var n=new Promise((function(n,s){l(r,(function(r,a){if(r){s(r);return}n(a)}))}));n.catch(noop);return n}function unshift(r){var n=new Promise((function(n,s){u(r,(function(r,a){if(r){s(r);return}n(a)}))}));n.catch(noop);return n}function drained(){var r=new Promise((function(r){process.nextTick((function(){if(a.idle()){r()}else{var n=a.drain;a.drain=function(){if(typeof n==="function")n();r();a.drain=n}}}))}));return r}}r.exports=fastqueue;r.exports.promise=queueAsPromised},72981:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Glob=void 0;const a=s(46507);const l=s(73136);const u=s(38958);const d=s(47813);const A=s(11157);const p=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Glob{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(r,n){if(!n)throw new TypeError("glob options required");this.withFileTypes=!!n.withFileTypes;this.signal=n.signal;this.follow=!!n.follow;this.dot=!!n.dot;this.dotRelative=!!n.dotRelative;this.nodir=!!n.nodir;this.mark=!!n.mark;if(!n.cwd){this.cwd=""}else if(n.cwd instanceof URL||n.cwd.startsWith("file://")){n.cwd=(0,l.fileURLToPath)(n.cwd)}this.cwd=n.cwd||"";this.root=n.root;this.magicalBraces=!!n.magicalBraces;this.nobrace=!!n.nobrace;this.noext=!!n.noext;this.realpath=!!n.realpath;this.absolute=n.absolute;this.includeChildMatches=n.includeChildMatches!==false;this.noglobstar=!!n.noglobstar;this.matchBase=!!n.matchBase;this.maxDepth=typeof n.maxDepth==="number"?n.maxDepth:Infinity;this.stat=!!n.stat;this.ignore=n.ignore;if(this.withFileTypes&&this.absolute!==undefined){throw new Error("cannot set absolute and withFileTypes:true")}if(typeof r==="string"){r=[r]}this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){r=r.map((r=>r.replace(/\\/g,"/")))}if(this.matchBase){if(n.noglobstar){throw new TypeError("base matching requires globstar")}r=r.map((r=>r.includes("/")?r:`./**/${r}`))}this.pattern=r;this.platform=n.platform||p;this.opts={...n,platform:this.platform};if(n.scurry){this.scurry=n.scurry;if(n.nocase!==undefined&&n.nocase!==n.scurry.nocase){throw new Error("nocase option contradicts provided scurry option")}}else{const r=n.platform==="win32"?u.PathScurryWin32:n.platform==="darwin"?u.PathScurryDarwin:n.platform?u.PathScurryPosix:u.PathScurry;this.scurry=new r(this.cwd,{nocase:n.nocase,fs:n.fs})}this.nocase=this.scurry.nocase;const s=this.platform==="darwin"||this.platform==="win32";const A={...n,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:s,nocomment:true,noext:this.noext,nonegate:true,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug};const f=this.pattern.map((r=>new a.Minimatch(r,A)));const[g,y]=f.reduce(((r,n)=>{r[0].push(...n.set);r[1].push(...n.globParts);return r}),[[],[]]);this.patterns=g.map(((r,n)=>{const s=y[n];if(!s)throw new Error("invalid pattern object");return new d.Pattern(r,s,0,this.platform)}))}async walk(){return[...await new A.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return[...new A.GlobWalker(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new A.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new A.GlobStream(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==Infinity?this.maxDepth+this.scurry.cwd.depth():Infinity,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}}n.Glob=Glob},45197:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.hasMagic=void 0;const a=s(46507);const hasMagic=(r,n={})=>{if(!Array.isArray(r)){r=[r]}for(const s of r){if(new a.Minimatch(s,n).hasMagic())return true}return false};n.hasMagic=hasMagic},5637:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Ignore=void 0;const a=s(46507);const l=s(47813);const u=typeof process==="object"&&process&&typeof process.platform==="string"?process.platform:"linux";class Ignore{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(r,{nobrace:n,nocase:s,noext:a,noglobstar:l,platform:d=u}){this.relative=[];this.absolute=[];this.relativeChildren=[];this.absoluteChildren=[];this.platform=d;this.mmopts={dot:true,nobrace:n,nocase:s,noext:a,noglobstar:l,optimizationLevel:2,platform:d,nocomment:true,nonegate:true};for(const n of r)this.add(n)}add(r){const n=new a.Minimatch(r,this.mmopts);for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.glob=n.sync=n.iterate=n.iterateSync=n.stream=n.streamSync=n.Ignore=n.hasMagic=n.Glob=n.unescape=n.escape=void 0;n.globStreamSync=globStreamSync;n.globStream=globStream;n.globSync=globSync;n.globIterateSync=globIterateSync;n.globIterate=globIterate;const a=s(46507);const l=s(72981);const u=s(45197);var d=s(46507);Object.defineProperty(n,"escape",{enumerable:true,get:function(){return d.escape}});Object.defineProperty(n,"unescape",{enumerable:true,get:function(){return d.unescape}});var A=s(72981);Object.defineProperty(n,"Glob",{enumerable:true,get:function(){return A.Glob}});var p=s(45197);Object.defineProperty(n,"hasMagic",{enumerable:true,get:function(){return p.hasMagic}});var f=s(5637);Object.defineProperty(n,"Ignore",{enumerable:true,get:function(){return f.Ignore}});function globStreamSync(r,n={}){return new l.Glob(r,n).streamSync()}function globStream(r,n={}){return new l.Glob(r,n).stream()}function globSync(r,n={}){return new l.Glob(r,n).walkSync()}async function glob_(r,n={}){return new l.Glob(r,n).walk()}function globIterateSync(r,n={}){return new l.Glob(r,n).iterateSync()}function globIterate(r,n={}){return new l.Glob(r,n).iterate()}n.streamSync=globStreamSync;n.stream=Object.assign(globStream,{sync:globStreamSync});n.iterateSync=globIterateSync;n.iterate=Object.assign(globIterate,{sync:globIterateSync});n.sync=Object.assign(globSync,{stream:globStreamSync,iterate:globIterateSync});n.glob=Object.assign(glob_,{glob:glob_,globSync:globSync,sync:n.sync,globStream:globStream,stream:n.stream,globStreamSync:globStreamSync,streamSync:n.streamSync,globIterate:globIterate,iterate:n.iterate,globIterateSync:globIterateSync,iterateSync:n.iterateSync,Glob:l.Glob,hasMagic:u.hasMagic,escape:a.escape,unescape:a.unescape});n.glob.glob=n.glob},47813:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Pattern=void 0;const a=s(46507);const isPatternList=r=>r.length>=1;const isGlobList=r=>r.length>=1;class Pattern{#xe;#De;#W;length;#Te;#ke;#_e;#Pe;#Fe;#Le;#Oe=true;constructor(r,n,s,a){if(!isPatternList(r)){throw new TypeError("empty pattern list")}if(!isGlobList(n)){throw new TypeError("empty glob list")}if(n.length!==r.length){throw new TypeError("mismatched pattern list and glob list lengths")}this.length=r.length;if(s<0||s>=this.length){throw new TypeError("index out of range")}this.#xe=r;this.#De=n;this.#W=s;this.#Te=a;if(this.#W===0){if(this.isUNC()){const[r,n,s,a,...l]=this.#xe;const[u,d,A,p,...f]=this.#De;if(l[0]===""){l.shift();f.shift()}const g=[r,n,s,a,""].join("/");const y=[u,d,A,p,""].join("/");this.#xe=[g,...l];this.#De=[y,...f];this.length=this.#xe.length}else if(this.isDrive()||this.isAbsolute()){const[r,...n]=this.#xe;const[s,...a]=this.#De;if(n[0]===""){n.shift();a.shift()}const l=r+"/";const u=s+"/";this.#xe=[l,...n];this.#De=[u,...a];this.length=this.#xe.length}}}pattern(){return this.#xe[this.#W]}isString(){return typeof this.#xe[this.#W]==="string"}isGlobstar(){return this.#xe[this.#W]===a.GLOBSTAR}isRegExp(){return this.#xe[this.#W]instanceof RegExp}globString(){return this.#_e=this.#_e||(this.#W===0?this.isAbsolute()?this.#De[0]+this.#De.slice(1).join("/"):this.#De.join("/"):this.#De.slice(this.#W).join("/"))}hasMore(){return this.length>this.#W+1}rest(){if(this.#ke!==undefined)return this.#ke;if(!this.hasMore())return this.#ke=null;this.#ke=new Pattern(this.#xe,this.#De,this.#W+1,this.#Te);this.#ke.#Le=this.#Le;this.#ke.#Fe=this.#Fe;this.#ke.#Pe=this.#Pe;return this.#ke}isUNC(){const r=this.#xe;return this.#Fe!==undefined?this.#Fe:this.#Fe=this.#Te==="win32"&&this.#W===0&&r[0]===""&&r[1]===""&&typeof r[2]==="string"&&!!r[2]&&typeof r[3]==="string"&&!!r[3]}isDrive(){const r=this.#xe;return this.#Pe!==undefined?this.#Pe:this.#Pe=this.#Te==="win32"&&this.#W===0&&this.length>1&&typeof r[0]==="string"&&/^[a-z]:$/i.test(r[0])}isAbsolute(){const r=this.#xe;return this.#Le!==undefined?this.#Le:this.#Le=r[0]===""&&r.length>1||this.isDrive()||this.isUNC()}root(){const r=this.#xe[0];return typeof r==="string"&&this.isAbsolute()&&this.#W===0?r:""}checkFollowGlobstar(){return!(this.#W===0||!this.isGlobstar()||!this.#Oe)}markFollowGlobstar(){if(this.#W===0||!this.isGlobstar()||!this.#Oe)return false;this.#Oe=false;return true}}n.Pattern=Pattern},37843:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.Processor=n.SubWalks=n.MatchRecord=n.HasWalkedCache=void 0;const a=s(46507);class HasWalkedCache{store;constructor(r=new Map){this.store=r}copy(){return new HasWalkedCache(new Map(this.store))}hasWalked(r,n){return this.store.get(r.fullpath())?.has(n.globString())}storeWalked(r,n){const s=r.fullpath();const a=this.store.get(s);if(a)a.add(n.globString());else this.store.set(s,new Set([n.globString()]))}}n.HasWalkedCache=HasWalkedCache;class MatchRecord{store=new Map;add(r,n,s){const a=(n?2:0)|(s?1:0);const l=this.store.get(r);this.store.set(r,l===undefined?a:a&l)}entries(){return[...this.store.entries()].map((([r,n])=>[r,!!(n&2),!!(n&1)]))}}n.MatchRecord=MatchRecord;class SubWalks{store=new Map;add(r,n){if(!r.canReaddir()){return}const s=this.store.get(r);if(s){if(!s.find((r=>r.globString()===n.globString()))){s.push(n)}}else this.store.set(r,[n])}get(r){const n=this.store.get(r);if(!n){throw new Error("attempting to walk unknown path")}return n}entries(){return this.keys().map((r=>[r,this.store.get(r)]))}keys(){return[...this.store.keys()].filter((r=>r.canReaddir()))}}n.SubWalks=SubWalks;class Processor{hasWalkedCache;matches=new MatchRecord;subwalks=new SubWalks;patterns;follow;dot;opts;constructor(r,n){this.opts=r;this.follow=!!r.follow;this.dot=!!r.dot;this.hasWalkedCache=n?n.copy():new HasWalkedCache}processPatterns(r,n){this.patterns=n;const s=n.map((n=>[r,n]));for(let[r,n]of s){this.hasWalkedCache.storeWalked(r,n);const s=n.root();const l=n.isAbsolute()&&this.opts.absolute!==false;if(s){r=r.resolve(s==="/"&&this.opts.root!==undefined?this.opts.root:s);const a=n.rest();if(!a){this.matches.add(r,true,false);continue}else{n=a}}if(r.isENOENT())continue;let u;let d;let A=false;while(typeof(u=n.pattern())==="string"&&(d=n.rest())){const s=r.resolve(u);r=s;n=d;A=true}u=n.pattern();d=n.rest();if(A){if(this.hasWalkedCache.hasWalked(r,n))continue;this.hasWalkedCache.storeWalked(r,n)}if(typeof u==="string"){const n=u===".."||u===""||u===".";this.matches.add(r.resolve(u),l,n);continue}else if(u===a.GLOBSTAR){if(!r.isSymbolicLink()||this.follow||n.checkFollowGlobstar()){this.subwalks.add(r,n)}const s=d?.pattern();const a=d?.rest();if(!d||(s===""||s===".")&&!a){this.matches.add(r,l,s===""||s===".")}else{if(s===".."){const n=r.parent||r;if(!a)this.matches.add(n,l,true);else if(!this.hasWalkedCache.hasWalked(n,a)){this.subwalks.add(n,a)}}}}else if(u instanceof RegExp){this.subwalks.add(r,n)}}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new Processor(this.opts,this.hasWalkedCache)}filterEntries(r,n){const s=this.subwalks.get(r);const l=this.child();for(const r of n){for(const n of s){const s=n.isAbsolute();const u=n.pattern();const d=n.rest();if(u===a.GLOBSTAR){l.testGlobstar(r,n,d,s)}else if(u instanceof RegExp){l.testRegExp(r,u,d,s)}else{l.testString(r,u,d,s)}}}return l}testGlobstar(r,n,s,a){if(this.dot||!r.name.startsWith(".")){if(!n.hasMore()){this.matches.add(r,a,false)}if(r.canReaddir()){if(this.follow||!r.isSymbolicLink()){this.subwalks.add(r,n)}else if(r.isSymbolicLink()){if(s&&n.checkFollowGlobstar()){this.subwalks.add(r,s)}else if(n.markFollowGlobstar()){this.subwalks.add(r,n)}}}}if(s){const n=s.pattern();if(typeof n==="string"&&n!==".."&&n!==""&&n!=="."){this.testString(r,n,s.rest(),a)}else if(n===".."){const n=r.parent||r;this.subwalks.add(n,s)}else if(n instanceof RegExp){this.testRegExp(r,n,s.rest(),a)}}}testRegExp(r,n,s,a){if(!n.test(r.name))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}testString(r,n,s,a){if(!r.isNamed(n))return;if(!s){this.matches.add(r,a,false)}else{this.subwalks.add(r,s)}}}n.Processor=Processor},11157:(r,n,s)=>{Object.defineProperty(n,"__esModule",{value:true});n.GlobStream=n.GlobWalker=n.GlobUtil=void 0;const a=s(78275);const l=s(5637);const u=s(37843);const makeIgnore=(r,n)=>typeof r==="string"?new l.Ignore([r],n):Array.isArray(r)?new l.Ignore(r,n):r;class GlobUtil{path;patterns;opts;seen=new Set;paused=false;aborted=false;#Me=[];#Ue;#He;signal;maxDepth;includeChildMatches;constructor(r,n,s){this.patterns=r;this.path=n;this.opts=s;this.#He=!s.posix&&s.platform==="win32"?"\\":"/";this.includeChildMatches=s.includeChildMatches!==false;if(s.ignore||!this.includeChildMatches){this.#Ue=makeIgnore(s.ignore??[],s);if(!this.includeChildMatches&&typeof this.#Ue.add!=="function"){const r="cannot ignore child matches, ignore lacks add() method.";throw new Error(r)}}this.maxDepth=s.maxDepth||Infinity;if(s.signal){this.signal=s.signal;this.signal.addEventListener("abort",(()=>{this.#Me.length=0}))}}#Ge(r){return this.seen.has(r)||!!this.#Ue?.ignored?.(r)}#ze(r){return!!this.#Ue?.childrenIgnored?.(r)}pause(){this.paused=true}resume(){if(this.signal?.aborted)return;this.paused=false;let r=undefined;while(!this.paused&&(r=this.#Me.shift())){r()}}onResume(r){if(this.signal?.aborted)return;if(!this.paused){r()}else{this.#Me.push(r)}}async matchCheck(r,n){if(n&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||await r.realpath();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?await r.lstat():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=await l.realpath();if(r&&(r.isUnknown()||this.opts.stat)){await r.lstat()}}return this.matchCheckTest(l,n)}matchCheckTest(r,n){return r&&(this.maxDepth===Infinity||r.depth()<=this.maxDepth)&&(!n||r.canReaddir())&&(!this.opts.nodir||!r.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!r.isSymbolicLink()||!r.realpathCached()?.isDirectory())&&!this.#Ge(r)?r:undefined}matchCheckSync(r,n){if(n&&this.opts.nodir)return undefined;let s;if(this.opts.realpath){s=r.realpathCached()||r.realpathSync();if(!s)return undefined;r=s}const a=r.isUnknown()||this.opts.stat;const l=a?r.lstatSync():r;if(this.opts.follow&&this.opts.nodir&&l?.isSymbolicLink()){const r=l.realpathSync();if(r&&(r?.isUnknown()||this.opts.stat)){r.lstatSync()}}return this.matchCheckTest(l,n)}matchFinish(r,n){if(this.#Ge(r))return;if(!this.includeChildMatches&&this.#Ue?.add){const n=`${r.relativePosix()}/**`;this.#Ue.add(n)}const s=this.opts.absolute===undefined?n:this.opts.absolute;this.seen.add(r);const a=this.opts.mark&&r.isDirectory()?this.#He:"";if(this.opts.withFileTypes){this.matchEmit(r)}else if(s){const n=this.opts.posix?r.fullpathPosix():r.fullpath();this.matchEmit(n+a)}else{const n=this.opts.posix?r.relativePosix():r.relative();const s=this.opts.dotRelative&&!n.startsWith(".."+this.#He)?"."+this.#He:"";this.matchEmit(!n?"."+a:s+n+a)}}async match(r,n,s){const a=await this.matchCheck(r,s);if(a)this.matchFinish(a,n)}matchSync(r,n,s){const a=this.matchCheckSync(r,s);if(a)this.matchFinish(a,n)}walkCB(r,n,s){if(this.signal?.aborted)s();this.walkCB2(r,n,new u.Processor(this.opts),s)}walkCB2(r,n,s,a){if(this.#ze(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2(r,n,s,a)));return}s.processPatterns(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#Ge(r))continue;l++;this.match(r,n,a).then((()=>next()))}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const n=r.readdirCached();if(r.calledReaddir())this.walkCB3(r,n,s,next);else{r.readdirCB(((n,a)=>this.walkCB3(r,a,s,next)),true)}}next()}walkCB3(r,n,s,a){s=s.filterEntries(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#Ge(r))continue;l++;this.match(r,n,a).then((()=>next()))}for(const[r,n]of s.subwalks.entries()){l++;this.walkCB2(r,n,s.child(),next)}next()}walkCBSync(r,n,s){if(this.signal?.aborted)s();this.walkCB2Sync(r,n,new u.Processor(this.opts),s)}walkCB2Sync(r,n,s,a){if(this.#ze(r))return a();if(this.signal?.aborted)a();if(this.paused){this.onResume((()=>this.walkCB2Sync(r,n,s,a)));return}s.processPatterns(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#Ge(r))continue;this.matchSync(r,n,a)}for(const r of s.subwalkTargets()){if(this.maxDepth!==Infinity&&r.depth()>=this.maxDepth){continue}l++;const n=r.readdirSync();this.walkCB3Sync(r,n,s,next)}next()}walkCB3Sync(r,n,s,a){s=s.filterEntries(r,n);let l=1;const next=()=>{if(--l===0)a()};for(const[r,n,a]of s.matches.entries()){if(this.#Ge(r))continue;this.matchSync(r,n,a)}for(const[r,n]of s.subwalks.entries()){l++;this.walkCB2Sync(r,n,s.child(),next)}next()}}n.GlobUtil=GlobUtil;class GlobWalker extends GlobUtil{matches=new Set;constructor(r,n,s){super(r,n,s)}matchEmit(r){this.matches.add(r)}async walk(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){await this.path.lstat()}await new Promise(((r,n)=>{this.walkCB(this.path,this.patterns,(()=>{if(this.signal?.aborted){n(this.signal.reason)}else{r(this.matches)}}))}));return this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>{if(this.signal?.aborted)throw this.signal.reason}));return this.matches}}n.GlobWalker=GlobWalker;class GlobStream extends GlobUtil{results;constructor(r,n,s){super(r,n,s);this.results=new a.Minipass({signal:this.signal,objectMode:true});this.results.on("drain",(()=>this.resume()));this.results.on("resume",(()=>this.resume()))}matchEmit(r){this.results.write(r);if(!this.results.flowing)this.pause()}stream(){const r=this.path;if(r.isUnknown()){r.lstat().then((()=>{this.walkCB(r,this.patterns,(()=>this.results.end()))}))}else{this.walkCB(r,this.patterns,(()=>this.results.end()))}return this.results}streamSync(){if(this.path.isUnknown()){this.path.lstatSync()}this.walkCBSync(this.path,this.patterns,(()=>this.results.end()));return this.results}}n.GlobStream=GlobStream},32477:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.LRUCache=void 0;const s=typeof performance==="object"&&performance&&typeof performance.now==="function"?performance:Date;const a=new Set;const l=typeof process==="object"&&!!process?process:{};const emitWarning=(r,n,s,a)=>{typeof l.emitWarning==="function"?l.emitWarning(r,n,s,a):console.error(`[${s}] ${n}: ${r}`)};let u=globalThis.AbortController;let d=globalThis.AbortSignal;if(typeof u==="undefined"){d=class AbortSignal{onabort;_onabort=[];reason;aborted=false;addEventListener(r,n){this._onabort.push(n)}};u=class AbortController{constructor(){warnACPolyfill()}signal=new d;abort(r){if(this.signal.aborted)return;this.signal.reason=r;this.signal.aborted=true;for(const n of this.signal._onabort){n(r)}this.signal.onabort?.(r)}};let r=l.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1";const warnACPolyfill=()=>{if(!r)return;r=false;emitWarning("AbortController is not defined. If using lru-cache in "+"node 14, load an AbortController polyfill from the "+"`node-abort-controller` package. A minimal polyfill is "+"provided for use by LRUCache.fetch(), but it should not be "+"relied upon in other contexts (eg, passing it to other APIs that "+"use AbortController/AbortSignal might have undesirable effects). "+"You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",warnACPolyfill)}}const shouldWarn=r=>!a.has(r);const A=Symbol("type");const isPosInt=r=>r&&r===Math.floor(r)&&r>0&&isFinite(r);const getUintArray=r=>!isPosInt(r)?null:r<=Math.pow(2,8)?Uint8Array:r<=Math.pow(2,16)?Uint16Array:r<=Math.pow(2,32)?Uint32Array:r<=Number.MAX_SAFE_INTEGER?ZeroArray:null;class ZeroArray extends Array{constructor(r){super(r);this.fill(0)}}class Stack{heap;length;static#qe=false;static create(r){const n=getUintArray(r);if(!n)return[];Stack.#qe=true;const s=new Stack(r,n);Stack.#qe=false;return s}constructor(r,n){if(!Stack.#qe){throw new TypeError("instantiate Stack using Stack.create(n)")}this.heap=new n(r);this.length=0}push(r){this.heap[this.length++]=r}pop(){return this.heap[--this.length]}}class LRUCache{#Ve;#w;#je;#We;#Ye;#Je;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#Q;#$e;#Ke;#Xe;#Ze;#et;#tt;#rt;#nt;#st;#it;#ot;#at;#lt;#ct;#ut;#dt;static unsafeExposeInternals(r){return{starts:r.#at,ttls:r.#lt,sizes:r.#ot,keyMap:r.#Ke,keyList:r.#Xe,valList:r.#Ze,next:r.#et,prev:r.#tt,get head(){return r.#rt},get tail(){return r.#nt},free:r.#st,isBackgroundFetch:n=>r.#At(n),backgroundFetch:(n,s,a,l)=>r.#pt(n,s,a,l),moveToTail:n=>r.#ft(n),indexes:n=>r.#ht(n),rindexes:n=>r.#mt(n),isStale:n=>r.#gt(n)}}get max(){return this.#Ve}get maxSize(){return this.#w}get calculatedSize(){return this.#$e}get size(){return this.#Q}get fetchMethod(){return this.#Ye}get memoMethod(){return this.#Je}get dispose(){return this.#je}get disposeAfter(){return this.#We}constructor(r){const{max:n=0,ttl:s,ttlResolution:l=1,ttlAutopurge:u,updateAgeOnGet:d,updateAgeOnHas:A,allowStale:p,dispose:f,disposeAfter:g,noDisposeOnSet:y,noUpdateTTL:b,maxSize:C=0,maxEntrySize:w=0,sizeCalculation:B,fetchMethod:I,memoMethod:S,noDeleteOnFetchRejection:Q,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:R,allowStaleOnFetchAbort:N,ignoreFetchAbort:x}=r;if(n!==0&&!isPosInt(n)){throw new TypeError("max option must be a nonnegative integer")}const D=n?getUintArray(n):Array;if(!D){throw new Error("invalid max value: "+n)}this.#Ve=n;this.#w=C;this.maxEntrySize=w||this.#w;this.sizeCalculation=B;if(this.sizeCalculation){if(!this.#w&&!this.maxEntrySize){throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize")}if(typeof this.sizeCalculation!=="function"){throw new TypeError("sizeCalculation set to non-function")}}if(S!==undefined&&typeof S!=="function"){throw new TypeError("memoMethod must be a function if defined")}this.#Je=S;if(I!==undefined&&typeof I!=="function"){throw new TypeError("fetchMethod must be a function if specified")}this.#Ye=I;this.#ut=!!I;this.#Ke=new Map;this.#Xe=new Array(n).fill(undefined);this.#Ze=new Array(n).fill(undefined);this.#et=new D(n);this.#tt=new D(n);this.#rt=0;this.#nt=0;this.#st=Stack.create(n);this.#Q=0;this.#$e=0;if(typeof f==="function"){this.#je=f}if(typeof g==="function"){this.#We=g;this.#it=[]}else{this.#We=undefined;this.#it=undefined}this.#ct=!!this.#je;this.#dt=!!this.#We;this.noDisposeOnSet=!!y;this.noUpdateTTL=!!b;this.noDeleteOnFetchRejection=!!Q;this.allowStaleOnFetchRejection=!!R;this.allowStaleOnFetchAbort=!!N;this.ignoreFetchAbort=!!x;if(this.maxEntrySize!==0){if(this.#w!==0){if(!isPosInt(this.#w)){throw new TypeError("maxSize must be a positive integer if specified")}}if(!isPosInt(this.maxEntrySize)){throw new TypeError("maxEntrySize must be a positive integer if specified")}this.#yt()}this.allowStale=!!p;this.noDeleteOnStaleGet=!!v;this.updateAgeOnGet=!!d;this.updateAgeOnHas=!!A;this.ttlResolution=isPosInt(l)||l===0?l:1;this.ttlAutopurge=!!u;this.ttl=s||0;if(this.ttl){if(!isPosInt(this.ttl)){throw new TypeError("ttl must be a positive integer if specified")}this.#Et()}if(this.#Ve===0&&this.ttl===0&&this.#w===0){throw new TypeError("At least one of max, maxSize, or ttl is required")}if(!this.ttlAutopurge&&!this.#Ve&&!this.#w){const r="LRU_CACHE_UNBOUNDED";if(shouldWarn(r)){a.add(r);const n="TTL caching without ttlAutopurge, max, or maxSize can "+"result in unbounded memory consumption.";emitWarning(n,"UnboundedCacheWarning",r,LRUCache)}}}getRemainingTTL(r){return this.#Ke.has(r)?Infinity:0}#Et(){const r=new ZeroArray(this.#Ve);const n=new ZeroArray(this.#Ve);this.#lt=r;this.#at=n;this.#bt=(a,l,u=s.now())=>{n[a]=l!==0?u:0;r[a]=l;if(l!==0&&this.ttlAutopurge){const r=setTimeout((()=>{if(this.#gt(a)){this.#Ct(this.#Xe[a],"expire")}}),l+1);if(r.unref){r.unref()}}};this.#wt=a=>{n[a]=r[a]!==0?s.now():0};this.#Bt=(s,l)=>{if(r[l]){const u=r[l];const d=n[l];if(!u||!d)return;s.ttl=u;s.start=d;s.now=a||getNow();const A=s.now-d;s.remainingTTL=u-A}};let a=0;const getNow=()=>{const r=s.now();if(this.ttlResolution>0){a=r;const n=setTimeout((()=>a=0),this.ttlResolution);if(n.unref){n.unref()}}return r};this.getRemainingTTL=s=>{const l=this.#Ke.get(s);if(l===undefined){return 0}const u=r[l];const d=n[l];if(!u||!d){return Infinity}const A=(a||getNow())-d;return u-A};this.#gt=s=>{const l=n[s];const u=r[s];return!!u&&!!l&&(a||getNow())-l>u}}#wt=()=>{};#Bt=()=>{};#bt=()=>{};#gt=()=>false;#yt(){const r=new ZeroArray(this.#Ve);this.#$e=0;this.#ot=r;this.#It=n=>{this.#$e-=r[n];r[n]=0};this.#St=(r,n,s,a)=>{if(this.#At(n)){return 0}if(!isPosInt(s)){if(a){if(typeof a!=="function"){throw new TypeError("sizeCalculation must be a function")}s=a(n,r);if(!isPosInt(s)){throw new TypeError("sizeCalculation return invalid (expect positive integer)")}}else{throw new TypeError("invalid size value (must be positive integer). "+"When maxSize or maxEntrySize is used, sizeCalculation "+"or size must be set.")}}return s};this.#Qt=(n,s,a)=>{r[n]=s;if(this.#w){const s=this.#w-r[n];while(this.#$e>s){this.#vt(true)}}this.#$e+=r[n];if(a){a.entrySize=s;a.totalCalculatedSize=this.#$e}}}#It=r=>{};#Qt=(r,n,s)=>{};#St=(r,n,s,a)=>{if(s||a){throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache")}return 0};*#ht({allowStale:r=this.allowStale}={}){if(this.#Q){for(let n=this.#nt;true;){if(!this.#Rt(n)){break}if(r||!this.#gt(n)){yield n}if(n===this.#rt){break}else{n=this.#tt[n]}}}}*#mt({allowStale:r=this.allowStale}={}){if(this.#Q){for(let n=this.#rt;true;){if(!this.#Rt(n)){break}if(r||!this.#gt(n)){yield n}if(n===this.#nt){break}else{n=this.#et[n]}}}}#Rt(r){return r!==undefined&&this.#Ke.get(this.#Xe[r])===r}*entries(){for(const r of this.#ht()){if(this.#Ze[r]!==undefined&&this.#Xe[r]!==undefined&&!this.#At(this.#Ze[r])){yield[this.#Xe[r],this.#Ze[r]]}}}*rentries(){for(const r of this.#mt()){if(this.#Ze[r]!==undefined&&this.#Xe[r]!==undefined&&!this.#At(this.#Ze[r])){yield[this.#Xe[r],this.#Ze[r]]}}}*keys(){for(const r of this.#ht()){const n=this.#Xe[r];if(n!==undefined&&!this.#At(this.#Ze[r])){yield n}}}*rkeys(){for(const r of this.#mt()){const n=this.#Xe[r];if(n!==undefined&&!this.#At(this.#Ze[r])){yield n}}}*values(){for(const r of this.#ht()){const n=this.#Ze[r];if(n!==undefined&&!this.#At(this.#Ze[r])){yield this.#Ze[r]}}}*rvalues(){for(const r of this.#mt()){const n=this.#Ze[r];if(n!==undefined&&!this.#At(this.#Ze[r])){yield this.#Ze[r]}}}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(r,n={}){for(const s of this.#ht()){const a=this.#Ze[s];const l=this.#At(a)?a.__staleWhileFetching:a;if(l===undefined)continue;if(r(l,this.#Xe[s],this)){return this.get(this.#Xe[s],n)}}}forEach(r,n=this){for(const s of this.#ht()){const a=this.#Ze[s];const l=this.#At(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(n,l,this.#Xe[s],this)}}rforEach(r,n=this){for(const s of this.#mt()){const a=this.#Ze[s];const l=this.#At(a)?a.__staleWhileFetching:a;if(l===undefined)continue;r.call(n,l,this.#Xe[s],this)}}purgeStale(){let r=false;for(const n of this.#mt({allowStale:true})){if(this.#gt(n)){this.#Ct(this.#Xe[n],"expire");r=true}}return r}info(r){const n=this.#Ke.get(r);if(n===undefined)return undefined;const a=this.#Ze[n];const l=this.#At(a)?a.__staleWhileFetching:a;if(l===undefined)return undefined;const u={value:l};if(this.#lt&&this.#at){const r=this.#lt[n];const a=this.#at[n];if(r&&a){const n=r-(s.now()-a);u.ttl=n;u.start=Date.now()}}if(this.#ot){u.size=this.#ot[n]}return u}dump(){const r=[];for(const n of this.#ht({allowStale:true})){const a=this.#Xe[n];const l=this.#Ze[n];const u=this.#At(l)?l.__staleWhileFetching:l;if(u===undefined||a===undefined)continue;const d={value:u};if(this.#lt&&this.#at){d.ttl=this.#lt[n];const r=s.now()-this.#at[n];d.start=Math.floor(Date.now()-r)}if(this.#ot){d.size=this.#ot[n]}r.unshift([a,d])}return r}load(r){this.clear();for(const[n,a]of r){if(a.start){const r=Date.now()-a.start;a.start=s.now()-r}this.set(n,a.value,a)}}set(r,n,s={}){if(n===undefined){this.delete(r);return this}const{ttl:a=this.ttl,start:l,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:d=this.sizeCalculation,status:A}=s;let{noUpdateTTL:p=this.noUpdateTTL}=s;const f=this.#St(r,n,s.size||0,d);if(this.maxEntrySize&&f>this.maxEntrySize){if(A){A.set="miss";A.maxEntrySizeExceeded=true}this.#Ct(r,"set");return this}let g=this.#Q===0?undefined:this.#Ke.get(r);if(g===undefined){g=this.#Q===0?this.#nt:this.#st.length!==0?this.#st.pop():this.#Q===this.#Ve?this.#vt(false):this.#Q;this.#Xe[g]=r;this.#Ze[g]=n;this.#Ke.set(r,g);this.#et[this.#nt]=g;this.#tt[g]=this.#nt;this.#nt=g;this.#Q++;this.#Qt(g,f,A);if(A)A.set="add";p=false}else{this.#ft(g);const s=this.#Ze[g];if(n!==s){if(this.#ut&&this.#At(s)){s.__abortController.abort(new Error("replaced"));const{__staleWhileFetching:n}=s;if(n!==undefined&&!u){if(this.#ct){this.#je?.(n,r,"set")}if(this.#dt){this.#it?.push([n,r,"set"])}}}else if(!u){if(this.#ct){this.#je?.(s,r,"set")}if(this.#dt){this.#it?.push([s,r,"set"])}}this.#It(g);this.#Qt(g,f,A);this.#Ze[g]=n;if(A){A.set="replace";const r=s&&this.#At(s)?s.__staleWhileFetching:s;if(r!==undefined)A.oldValue=r}}else if(A){A.set="update"}}if(a!==0&&!this.#lt){this.#Et()}if(this.#lt){if(!p){this.#bt(g,a,l)}if(A)this.#Bt(A,g)}if(!u&&this.#dt&&this.#it){const r=this.#it;let n;while(n=r?.shift()){this.#We?.(...n)}}return this}pop(){try{while(this.#Q){const r=this.#Ze[this.#rt];this.#vt(true);if(this.#At(r)){if(r.__staleWhileFetching){return r.__staleWhileFetching}}else if(r!==undefined){return r}}}finally{if(this.#dt&&this.#it){const r=this.#it;let n;while(n=r?.shift()){this.#We?.(...n)}}}}#vt(r){const n=this.#rt;const s=this.#Xe[n];const a=this.#Ze[n];if(this.#ut&&this.#At(a)){a.__abortController.abort(new Error("evicted"))}else if(this.#ct||this.#dt){if(this.#ct){this.#je?.(a,s,"evict")}if(this.#dt){this.#it?.push([a,s,"evict"])}}this.#It(n);if(r){this.#Xe[n]=undefined;this.#Ze[n]=undefined;this.#st.push(n)}if(this.#Q===1){this.#rt=this.#nt=0;this.#st.length=0}else{this.#rt=this.#et[n]}this.#Ke.delete(s);this.#Q--;return n}has(r,n={}){const{updateAgeOnHas:s=this.updateAgeOnHas,status:a}=n;const l=this.#Ke.get(r);if(l!==undefined){const r=this.#Ze[l];if(this.#At(r)&&r.__staleWhileFetching===undefined){return false}if(!this.#gt(l)){if(s){this.#wt(l)}if(a){a.has="hit";this.#Bt(a,l)}return true}else if(a){a.has="stale";this.#Bt(a,l)}}else if(a){a.has="miss"}return false}peek(r,n={}){const{allowStale:s=this.allowStale}=n;const a=this.#Ke.get(r);if(a===undefined||!s&&this.#gt(a)){return}const l=this.#Ze[a];return this.#At(l)?l.__staleWhileFetching:l}#pt(r,n,s,a){const l=n===undefined?undefined:this.#Ze[n];if(this.#At(l)){return l}const d=new u;const{signal:A}=s;A?.addEventListener("abort",(()=>d.abort(A.reason)),{signal:d.signal});const p={signal:d.signal,options:s,context:a};const cb=(a,l=false)=>{const{aborted:u}=d.signal;const A=s.ignoreFetchAbort&&a!==undefined;if(s.status){if(u&&!l){s.status.fetchAborted=true;s.status.fetchError=d.signal.reason;if(A)s.status.fetchAbortIgnored=true}else{s.status.fetchResolved=true}}if(u&&!A&&!l){return fetchFail(d.signal.reason)}const g=f;if(this.#Ze[n]===f){if(a===undefined){if(g.__staleWhileFetching){this.#Ze[n]=g.__staleWhileFetching}else{this.#Ct(r,"fetch")}}else{if(s.status)s.status.fetchUpdated=true;this.set(r,a,p.options)}}return a};const eb=r=>{if(s.status){s.status.fetchRejected=true;s.status.fetchError=r}return fetchFail(r)};const fetchFail=a=>{const{aborted:l}=d.signal;const u=l&&s.allowStaleOnFetchAbort;const A=u||s.allowStaleOnFetchRejection;const p=A||s.noDeleteOnFetchRejection;const g=f;if(this.#Ze[n]===f){const s=!p||g.__staleWhileFetching===undefined;if(s){this.#Ct(r,"fetch")}else if(!u){this.#Ze[n]=g.__staleWhileFetching}}if(A){if(s.status&&g.__staleWhileFetching!==undefined){s.status.returnedStale=true}return g.__staleWhileFetching}else if(g.__returned===g){throw a}};const pcall=(n,a)=>{const u=this.#Ye?.(r,l,p);if(u&&u instanceof Promise){u.then((r=>n(r===undefined?undefined:r)),a)}d.signal.addEventListener("abort",(()=>{if(!s.ignoreFetchAbort||s.allowStaleOnFetchAbort){n(undefined);if(s.allowStaleOnFetchAbort){n=r=>cb(r,true)}}}))};if(s.status)s.status.fetchDispatched=true;const f=new Promise(pcall).then(cb,eb);const g=Object.assign(f,{__abortController:d,__staleWhileFetching:l,__returned:undefined});if(n===undefined){this.set(r,g,{...p.options,status:undefined});n=this.#Ke.get(r)}else{this.#Ze[n]=g}return g}#At(r){if(!this.#ut)return false;const n=r;return!!n&&n instanceof Promise&&n.hasOwnProperty("__staleWhileFetching")&&n.__abortController instanceof u}async fetch(r,n={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,ttl:u=this.ttl,noDisposeOnSet:d=this.noDisposeOnSet,size:A=0,sizeCalculation:p=this.sizeCalculation,noUpdateTTL:f=this.noUpdateTTL,noDeleteOnFetchRejection:g=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:y=this.allowStaleOnFetchRejection,ignoreFetchAbort:b=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:w,forceRefresh:B=false,status:I,signal:S}=n;if(!this.#ut){if(I)I.fetch="get";return this.get(r,{allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,status:I})}const Q={allowStale:s,updateAgeOnGet:a,noDeleteOnStaleGet:l,ttl:u,noDisposeOnSet:d,size:A,sizeCalculation:p,noUpdateTTL:f,noDeleteOnFetchRejection:g,allowStaleOnFetchRejection:y,allowStaleOnFetchAbort:C,ignoreFetchAbort:b,status:I,signal:S};let v=this.#Ke.get(r);if(v===undefined){if(I)I.fetch="miss";const n=this.#pt(r,v,Q,w);return n.__returned=n}else{const n=this.#Ze[v];if(this.#At(n)){const r=s&&n.__staleWhileFetching!==undefined;if(I){I.fetch="inflight";if(r)I.returnedStale=true}return r?n.__staleWhileFetching:n.__returned=n}const l=this.#gt(v);if(!B&&!l){if(I)I.fetch="hit";this.#ft(v);if(a){this.#wt(v)}if(I)this.#Bt(I,v);return n}const u=this.#pt(r,v,Q,w);const d=u.__staleWhileFetching!==undefined;const A=d&&s;if(I){I.fetch=l?"stale":"refresh";if(A&&l)I.returnedStale=true}return A?u.__staleWhileFetching:u.__returned=u}}async forceFetch(r,n={}){const s=await this.fetch(r,n);if(s===undefined)throw new Error("fetch() returned undefined");return s}memo(r,n={}){const s=this.#Je;if(!s){throw new Error("no memoMethod provided to constructor")}const{context:a,forceRefresh:l,...u}=n;const d=this.get(r,u);if(!l&&d!==undefined)return d;const A=s(r,d,{options:u,context:a});this.set(r,A,u);return A}get(r,n={}){const{allowStale:s=this.allowStale,updateAgeOnGet:a=this.updateAgeOnGet,noDeleteOnStaleGet:l=this.noDeleteOnStaleGet,status:u}=n;const d=this.#Ke.get(r);if(d!==undefined){const n=this.#Ze[d];const A=this.#At(n);if(u)this.#Bt(u,d);if(this.#gt(d)){if(u)u.get="stale";if(!A){if(!l){this.#Ct(r,"expire")}if(u&&s)u.returnedStale=true;return s?n:undefined}else{if(u&&s&&n.__staleWhileFetching!==undefined){u.returnedStale=true}return s?n.__staleWhileFetching:undefined}}else{if(u)u.get="hit";if(A){return n.__staleWhileFetching}this.#ft(d);if(a){this.#wt(d)}return n}}else if(u){u.get="miss"}}#H(r,n){this.#tt[n]=r;this.#et[r]=n}#ft(r){if(r!==this.#nt){if(r===this.#rt){this.#rt=this.#et[r]}else{this.#H(this.#tt[r],this.#et[r])}this.#H(this.#nt,r);this.#nt=r}}delete(r){return this.#Ct(r,"delete")}#Ct(r,n){let s=false;if(this.#Q!==0){const a=this.#Ke.get(r);if(a!==undefined){s=true;if(this.#Q===1){this.#Nt(n)}else{this.#It(a);const s=this.#Ze[a];if(this.#At(s)){s.__abortController.abort(new Error("deleted"))}else if(this.#ct||this.#dt){if(this.#ct){this.#je?.(s,r,n)}if(this.#dt){this.#it?.push([s,r,n])}}this.#Ke.delete(r);this.#Xe[a]=undefined;this.#Ze[a]=undefined;if(a===this.#nt){this.#nt=this.#tt[a]}else if(a===this.#rt){this.#rt=this.#et[a]}else{const r=this.#tt[a];this.#et[r]=this.#et[a];const n=this.#et[a];this.#tt[n]=this.#tt[a]}this.#Q--;this.#st.push(a)}}}if(this.#dt&&this.#it?.length){const r=this.#it;let n;while(n=r?.shift()){this.#We?.(...n)}}return s}clear(){return this.#Nt("delete")}#Nt(r){for(const n of this.#mt({allowStale:true})){const s=this.#Ze[n];if(this.#At(s)){s.__abortController.abort(new Error("deleted"))}else{const a=this.#Xe[n];if(this.#ct){this.#je?.(s,a,r)}if(this.#dt){this.#it?.push([s,a,r])}}}this.#Ke.clear();this.#Ze.fill(undefined);this.#Xe.fill(undefined);if(this.#lt&&this.#at){this.#lt.fill(0);this.#at.fill(0)}if(this.#ot){this.#ot.fill(0)}this.#rt=0;this.#nt=0;this.#st.length=0;this.#$e=0;this.#Q=0;if(this.#dt&&this.#it){const r=this.#it;let n;while(n=r?.shift()){this.#We?.(...n)}}}}n.LRUCache=LRUCache},57305:(r,n)=>{Object.defineProperty(n,"__esModule",{value:true});n.assertValidPattern=void 0;const s=1024*64;const assertValidPattern=r=>{if(typeof r!=="string"){throw new TypeError("invalid pattern")}if(r.length>s){throw new TypeError("pattern is too long")}};n.assertValidPattern=assertValidPattern},31803:(r,n,s)=>{var a;Object.defineProperty(n,"__esModule",{value:true});n.AST=void 0;const l=s(11090);const u=s(70851);const d=new Set(["!","?","+","*","@"]);const isExtglobType=r=>d.has(r);const isExtglobAST=r=>isExtglobType(r.type);const A=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]);const p=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]);const f=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]);const g=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]);const y="(?!(?:^|/)\\.\\.?(?:$|/))";const b="(?!\\.)";const C=new Set(["[","."]);const w=new Set(["..","."]);const B=new Set("().*{}+?[]^$\\!");const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const I="[^/]";const S=I+"*?";const Q=I+"+?";class AST{type;#xt;#Dt;#Tt=false;#kt=[];#_t;#Pt;#Ft;#Lt=false;#p;#Ot;#Mt=false;constructor(r,n,s={}){this.type=r;if(r)this.#Dt=true;this.#_t=n;this.#xt=this.#_t?this.#_t.#xt:this;this.#p=this.#xt===this?s:this.#xt.#p;this.#Ft=this.#xt===this?[]:this.#xt.#Ft;if(r==="!"&&!this.#xt.#Lt)this.#Ft.push(this);this.#Pt=this.#_t?this.#_t.#kt.length:0}get hasMagic(){if(this.#Dt!==undefined)return this.#Dt;for(const r of this.#kt){if(typeof r==="string")continue;if(r.type||r.hasMagic)return this.#Dt=true}return this.#Dt}toString(){if(this.#Ot!==undefined)return this.#Ot;if(!this.type){return this.#Ot=this.#kt.map((r=>String(r))).join("")}else{return this.#Ot=this.type+"("+this.#kt.map((r=>String(r))).join("|")+")"}}#Ut(){if(this!==this.#xt)throw new Error("should only call on root");if(this.#Lt)return this;this.toString();this.#Lt=true;let r;while(r=this.#Ft.pop()){if(r.type!=="!")continue;let n=r;let s=n.#_t;while(s){for(let a=n.#Pt+1;!s.type&&atypeof r==="string"?r:r.toJSON())):[this.type,...this.#kt.map((r=>r.toJSON()))];if(this.isStart()&&!this.type)r.unshift([]);if(this.isEnd()&&(this===this.#xt||this.#xt.#Lt&&this.#_t?.type==="!")){r.push({})}return r}isStart(){if(this.#xt===this)return true;if(!this.#_t?.isStart())return false;if(this.#Pt===0)return true;const r=this.#_t;for(let n=0;n{const[l,u,d,A]=typeof n==="string"?a.#Kt(n,this.#Dt,s):n.toRegExpSource(r);this.#Dt=this.#Dt||d;this.#Tt=this.#Tt||A;return l})).join("");let d="";if(this.isStart()){if(typeof this.#kt[0]==="string"){const s=this.#kt.length===1&&w.has(this.#kt[0]);if(!s){const s=C;const a=n&&s.has(l.charAt(0))||l.startsWith("\\.")&&s.has(l.charAt(2))||l.startsWith("\\.\\.")&&s.has(l.charAt(4));const u=!n&&!r&&s.has(l.charAt(0));d=a?y:u?b:""}}}let A="";if(this.isEnd()&&this.#xt.#Lt&&this.#_t?.type==="!"){A="(?:$|\\/)"}const p=d+l+A;return[p,(0,u.unescape)(l),this.#Dt=!!this.#Dt,this.#Tt]}const s=this.type==="*"||this.type==="+";const l=this.type==="!"?"(?:(?!(?:":"(?:";let d=this.#Xt(n);if(this.isStart()&&this.isEnd()&&!d&&this.type!=="!"){const r=this.toString();const n=this;n.#kt=[r];n.type=null;n.#Dt=undefined;return[r,(0,u.unescape)(this.toString()),false,false]}let A=!s||r||n||!b?"":this.#Xt(true);if(A===d){A=""}if(A){d=`(?:${d})(?:${A})*?`}let p="";if(this.type==="!"&&this.#Mt){p=(this.isStart()&&!n?b:"")+Q}else{const s=this.type==="!"?"))"+(this.isStart()&&!n&&!r?b:"")+S+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&A?")":this.type==="*"&&A?`)?`:`)${this.type}`;p=l+d+s}return[p,(0,u.unescape)(d),this.#Dt=!!this.#Dt,this.#Tt]}#Xt(r){return this.#kt.map((n=>{if(typeof n==="string"){throw new Error("string type in extglob ast??")}const[s,a,l,u]=n.toRegExpSource(r);this.#Tt=this.#Tt||u;return s})).filter((r=>!(this.isStart()&&this.isEnd())||!!r)).join("|")}static#Kt(r,n,s=false){let a=false;let d="";let A=false;let p=false;for(let u=0;u{Object.defineProperty(n,"__esModule",{value:true});n.parseClass=void 0;const s={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",true],"[:alpha:]":["\\p{L}\\p{Nl}",true],"[:ascii:]":["\\x"+"00-\\x"+"7f",false],"[:blank:]":["\\p{Zs}\\t",true],"[:cntrl:]":["\\p{Cc}",true],"[:digit:]":["\\p{Nd}",true],"[:graph:]":["\\p{Z}\\p{C}",true,true],"[:lower:]":["\\p{Ll}",true],"[:print:]":["\\p{C}",true],"[:punct:]":["\\p{P}",true],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",true],"[:upper:]":["\\p{Lu}",true],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",true],"[:xdigit:]":["A-Fa-f0-9",false]};const braceEscape=r=>r.replace(/[[\]\\-]/g,"\\$&");const regexpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const rangesToString=r=>r.join("");const parseClass=(r,n)=>{const a=n;if(r.charAt(a)!=="["){throw new Error("not in a brace expression")}const l=[];const u=[];let d=a+1;let A=false;let p=false;let f=false;let g=false;let y=a;let b="";e:while(db){l.push(braceEscape(b)+"-"+braceEscape(n))}else if(n===b){l.push(braceEscape(n))}b="";d++;continue}if(r.startsWith("-]",d+1)){l.push(braceEscape(n+"-"));d+=2;continue}if(r.startsWith("-",d+1)){b=n;d+=2;continue}l.push(braceEscape(n));d++}if(y{Object.defineProperty(n,"__esModule",{value:true});n.escape=void 0;const escape=(r,{windowsPathsNoEscape:n=false}={})=>n?r.replace(/[?*()[\]]/g,"[$&]"):r.replace(/[?*()[\]\\]/g,"\\$&");n.escape=escape},46507:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.unescape=n.escape=n.AST=n.Minimatch=n.match=n.makeRe=n.braceExpand=n.defaults=n.filter=n.GLOBSTAR=n.sep=n.minimatch=void 0;const l=a(s(94691));const u=s(57305);const d=s(31803);const A=s(10800);const p=s(70851);const minimatch=(r,n,s={})=>{(0,u.assertValidPattern)(n);if(!s.nocomment&&n.charAt(0)==="#"){return false}return new Minimatch(n,s).match(r)};n.minimatch=minimatch;const f=/^\*+([^+@!?\*\[\(]*)$/;const starDotExtTest=r=>n=>!n.startsWith(".")&&n.endsWith(r);const starDotExtTestDot=r=>n=>n.endsWith(r);const starDotExtTestNocase=r=>{r=r.toLowerCase();return n=>!n.startsWith(".")&&n.toLowerCase().endsWith(r)};const starDotExtTestNocaseDot=r=>{r=r.toLowerCase();return n=>n.toLowerCase().endsWith(r)};const g=/^\*+\.\*+$/;const starDotStarTest=r=>!r.startsWith(".")&&r.includes(".");const starDotStarTestDot=r=>r!=="."&&r!==".."&&r.includes(".");const y=/^\.\*+$/;const dotStarTest=r=>r!=="."&&r!==".."&&r.startsWith(".");const b=/^\*+$/;const starTest=r=>r.length!==0&&!r.startsWith(".");const starTestDot=r=>r.length!==0&&r!=="."&&r!=="..";const C=/^\?+([^+@!?\*\[\(]*)?$/;const qmarksTestNocase=([r,n=""])=>{const s=qmarksTestNoExt([r]);if(!n)return s;n=n.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(n)};const qmarksTestNocaseDot=([r,n=""])=>{const s=qmarksTestNoExtDot([r]);if(!n)return s;n=n.toLowerCase();return r=>s(r)&&r.toLowerCase().endsWith(n)};const qmarksTestDot=([r,n=""])=>{const s=qmarksTestNoExtDot([r]);return!n?s:r=>s(r)&&r.endsWith(n)};const qmarksTest=([r,n=""])=>{const s=qmarksTestNoExt([r]);return!n?s:r=>s(r)&&r.endsWith(n)};const qmarksTestNoExt=([r])=>{const n=r.length;return r=>r.length===n&&!r.startsWith(".")};const qmarksTestNoExtDot=([r])=>{const n=r.length;return r=>r.length===n&&r!=="."&&r!==".."};const w=typeof process==="object"&&process?typeof process.env==="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix";const B={win32:{sep:"\\"},posix:{sep:"/"}};n.sep=w==="win32"?B.win32.sep:B.posix.sep;n.minimatch.sep=n.sep;n.GLOBSTAR=Symbol("globstar **");n.minimatch.GLOBSTAR=n.GLOBSTAR;const I="[^/]";const S=I+"*?";const Q="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";const v="(?:(?!(?:\\/|^)\\.).)*?";const filter=(r,s={})=>a=>(0,n.minimatch)(a,r,s);n.filter=filter;n.minimatch.filter=n.filter;const ext=(r,n={})=>Object.assign({},r,n);const defaults=r=>{if(!r||typeof r!=="object"||!Object.keys(r).length){return n.minimatch}const s=n.minimatch;const m=(n,a,l={})=>s(n,a,ext(r,l));return Object.assign(m,{Minimatch:class Minimatch extends s.Minimatch{constructor(n,s={}){super(n,ext(r,s))}static defaults(n){return s.defaults(ext(r,n)).Minimatch}},AST:class AST extends s.AST{constructor(n,s,a={}){super(n,s,ext(r,a))}static fromGlob(n,a={}){return s.AST.fromGlob(n,ext(r,a))}},unescape:(n,a={})=>s.unescape(n,ext(r,a)),escape:(n,a={})=>s.escape(n,ext(r,a)),filter:(n,a={})=>s.filter(n,ext(r,a)),defaults:n=>s.defaults(ext(r,n)),makeRe:(n,a={})=>s.makeRe(n,ext(r,a)),braceExpand:(n,a={})=>s.braceExpand(n,ext(r,a)),match:(n,a,l={})=>s.match(n,a,ext(r,l)),sep:s.sep,GLOBSTAR:n.GLOBSTAR})};n.defaults=defaults;n.minimatch.defaults=n.defaults;const braceExpand=(r,n={})=>{(0,u.assertValidPattern)(r);if(n.nobrace||!/\{(?:(?!\{).)*\}/.test(r)){return[r]}return(0,l.default)(r)};n.braceExpand=braceExpand;n.minimatch.braceExpand=n.braceExpand;const makeRe=(r,n={})=>new Minimatch(r,n).makeRe();n.makeRe=makeRe;n.minimatch.makeRe=n.makeRe;const match=(r,n,s={})=>{const a=new Minimatch(n,s);r=r.filter((r=>a.match(r)));if(a.options.nonull&&!r.length){r.push(n)}return r};n.match=match;n.minimatch.match=n.match;const R=/[?*]|[+@!]\(.*?\)|\[|\]/;const regExpEscape=r=>r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Minimatch{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(r,n={}){(0,u.assertValidPattern)(r);n=n||{};this.options=n;this.maxGlobstarRecursion=n.maxGlobstarRecursion??200;this.pattern=r;this.platform=n.platform||w;this.isWindows=this.platform==="win32";this.windowsPathsNoEscape=!!n.windowsPathsNoEscape||n.allowWindowsEscape===false;if(this.windowsPathsNoEscape){this.pattern=this.pattern.replace(/\\/g,"/")}this.preserveMultipleSlashes=!!n.preserveMultipleSlashes;this.regexp=null;this.negate=false;this.nonegate=!!n.nonegate;this.comment=false;this.empty=false;this.partial=!!n.partial;this.nocase=!!this.options.nocase;this.windowsNoMagicRoot=n.windowsNoMagicRoot!==undefined?n.windowsNoMagicRoot:!!(this.isWindows&&this.nocase);this.globSet=[];this.globParts=[];this.set=[];this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1){return true}for(const r of this.set){for(const n of r){if(typeof n!=="string")return true}}return false}debug(...r){}make(){const r=this.pattern;const n=this.options;if(!n.nocomment&&r.charAt(0)==="#"){this.comment=true;return}if(!r){this.empty=true;return}this.parseNegate();this.globSet=[...new Set(this.braceExpand())];if(n.debug){this.debug=(...r)=>console.error(...r)}this.debug(this.pattern,this.globSet);const s=this.globSet.map((r=>this.slashSplit(r)));this.globParts=this.preprocess(s);this.debug(this.pattern,this.globParts);let a=this.globParts.map(((r,n,s)=>{if(this.isWindows&&this.windowsNoMagicRoot){const n=r[0]===""&&r[1]===""&&(r[2]==="?"||!R.test(r[2]))&&!R.test(r[3]);const s=/^[a-z]:/i.test(r[0]);if(n){return[...r.slice(0,4),...r.slice(4).map((r=>this.parse(r)))]}else if(s){return[r[0],...r.slice(1).map((r=>this.parse(r)))]}}return r.map((r=>this.parse(r)))}));this.debug(this.pattern,a);this.set=a.filter((r=>r.indexOf(false)===-1));if(this.isWindows){for(let r=0;r=2){r=this.firstPhasePreProcess(r);r=this.secondPhasePreProcess(r)}else if(n>=1){r=this.levelOneOptimize(r)}else{r=this.adjascentGlobstarOptimize(r)}return r}adjascentGlobstarOptimize(r){return r.map((r=>{let n=-1;while(-1!==(n=r.indexOf("**",n+1))){let s=n;while(r[s+1]==="**"){s++}if(s!==n){r.splice(n,s-n)}}return r}))}levelOneOptimize(r){return r.map((r=>{r=r.reduce(((r,n)=>{const s=r[r.length-1];if(n==="**"&&s==="**"){return r}if(n===".."){if(s&&s!==".."&&s!=="."&&s!=="**"){r.pop();return r}}r.push(n);return r}),[]);return r.length===0?[""]:r}))}levelTwoFileOptimize(r){if(!Array.isArray(r)){r=this.slashSplit(r)}let n=false;do{n=false;if(!this.preserveMultipleSlashes){for(let s=1;sa){s.splice(a+1,l-a)}let u=s[a+1];const d=s[a+2];const A=s[a+3];if(u!=="..")continue;if(!d||d==="."||d===".."||!A||A==="."||A===".."){continue}n=true;s.splice(a,1);const p=s.slice(0);p[a]="**";r.push(p);a--}if(!this.preserveMultipleSlashes){for(let r=1;rr.length))}partsMatch(r,n,s=false){let a=0;let l=0;let u=[];let d="";while(a=2){r=this.levelTwoFileOptimize(r)}if(s.includes(n.GLOBSTAR)){return this.#Zt(r,s,a,l,u)}return this.#er(r,s,a,l,u)}#Zt(r,s,a,l,u){const d=s.indexOf(n.GLOBSTAR,u);const A=s.lastIndexOf(n.GLOBSTAR);const[p,f,g]=a?[s.slice(u,d),s.slice(d+1),[]]:[s.slice(u,d),s.slice(d+1,A),s.slice(A+1)];if(p.length){const n=r.slice(l,l+p.length);if(!this.#er(n,p,a,0,0))return false;l+=p.length}let y=0;if(g.length){if(g.length+l>r.length)return false;let n=r.length-g.length;if(this.#er(r,g,a,n,0)){y=g.length}else{if(r[r.length-1]!==""||l+g.length===r.length){return false}n--;if(!this.#er(r,g,a,n,0))return false;y=g.length+1}}if(!f.length){let n=!!y;for(let s=l;s{const s=r.map((r=>{if(r instanceof RegExp){for(const n of r.flags.split(""))l.add(n)}return typeof r==="string"?regExpEscape(r):r===n.GLOBSTAR?n.GLOBSTAR:r._src}));s.forEach(((r,l)=>{const u=s[l+1];const d=s[l-1];if(r!==n.GLOBSTAR||d===n.GLOBSTAR){return}if(d===undefined){if(u!==undefined&&u!==n.GLOBSTAR){s[l+1]="(?:\\/|"+a+"\\/)?"+u}else{s[l]=a}}else if(u===undefined){s[l-1]=d+"(?:\\/|"+a+")?"}else if(u!==n.GLOBSTAR){s[l-1]=d+"(?:\\/|\\/"+a+"\\/)"+u;s[l+1]=n.GLOBSTAR}}));return s.filter((r=>r!==n.GLOBSTAR)).join("/")})).join("|");const[d,A]=r.length>1?["(?:",")"]:["",""];u="^"+d+u+A+"$";if(this.negate)u="^(?!"+u+").+$";try{this.regexp=new RegExp(u,[...l].join(""))}catch(r){this.regexp=false}return this.regexp}slashSplit(r){if(this.preserveMultipleSlashes){return r.split("/")}else if(this.isWindows&&/^\/\/[^\/]+/.test(r)){return["",...r.split(/\/+/)]}else{return r.split(/\/+/)}}match(r,n=this.partial){this.debug("match",r,this.pattern);if(this.comment){return false}if(this.empty){return r===""}if(r==="/"&&n){return true}const s=this.options;if(this.isWindows){r=r.split("\\").join("/")}const a=this.slashSplit(r);this.debug(this.pattern,"split",a);const l=this.set;this.debug(this.pattern,"set",l);let u=a[a.length-1];if(!u){for(let r=a.length-2;!u&&r>=0;r--){u=a[r]}}for(let r=0;r{Object.defineProperty(n,"__esModule",{value:true});n.unescape=void 0;const unescape=(r,{windowsPathsNoEscape:n=false}={})=>n?r.replace(/\[([^\/\\])\]/g,"$1"):r.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");n.unescape=unescape},78275:function(r,n,s){var a=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(n,"__esModule",{value:true});n.Minipass=n.isWritable=n.isReadable=n.isStream=void 0;const l=typeof process==="object"&&process?process:{stdout:null,stderr:null};const u=s(78474);const d=a(s(57075));const A=s(46193);const isStream=r=>!!r&&typeof r==="object"&&(r instanceof Minipass||r instanceof d.default||(0,n.isReadable)(r)||(0,n.isWritable)(r));n.isStream=isStream;const isReadable=r=>!!r&&typeof r==="object"&&r instanceof u.EventEmitter&&typeof r.pipe==="function"&&r.pipe!==d.default.Writable.prototype.pipe;n.isReadable=isReadable;const isWritable=r=>!!r&&typeof r==="object"&&r instanceof u.EventEmitter&&typeof r.write==="function"&&typeof r.end==="function";n.isWritable=isWritable;const p=Symbol("EOF");const f=Symbol("maybeEmitEnd");const g=Symbol("emittedEnd");const y=Symbol("emittingEnd");const b=Symbol("emittedError");const C=Symbol("closed");const w=Symbol("read");const B=Symbol("flush");const I=Symbol("flushChunk");const S=Symbol("encoding");const Q=Symbol("decoder");const v=Symbol("flowing");const R=Symbol("paused");const N=Symbol("resume");const x=Symbol("buffer");const D=Symbol("pipes");const T=Symbol("bufferLength");const k=Symbol("bufferPush");const _=Symbol("bufferShift");const P=Symbol("objectMode");const F=Symbol("destroyed");const L=Symbol("error");const O=Symbol("emitData");const M=Symbol("emitEnd");const U=Symbol("emitEnd2");const H=Symbol("async");const G=Symbol("abort");const z=Symbol("aborted");const q=Symbol("signal");const V=Symbol("dataListeners");const j=Symbol("discarded");const defer=r=>Promise.resolve().then(r);const nodefer=r=>r();const isEndish=r=>r==="end"||r==="finish"||r==="prefinish";const isArrayBufferLike=r=>r instanceof ArrayBuffer||!!r&&typeof r==="object"&&r.constructor&&r.constructor.name==="ArrayBuffer"&&r.byteLength>=0;const isArrayBufferView=r=>!Buffer.isBuffer(r)&&ArrayBuffer.isView(r);class Pipe{src;dest;opts;ondrain;constructor(r,n,s){this.src=r;this.dest=n;this.opts=s;this.ondrain=()=>r[N]();this.dest.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(r){}end(){this.unpipe();if(this.opts.end)this.dest.end()}}class PipeProxyErrors extends Pipe{unpipe(){this.src.removeListener("error",this.proxyErrors);super.unpipe()}constructor(r,n,s){super(r,n,s);this.proxyErrors=r=>this.dest.emit("error",r);r.on("error",this.proxyErrors)}}const isObjectModeOptions=r=>!!r.objectMode;const isEncodingOptions=r=>!r.objectMode&&!!r.encoding&&r.encoding!=="buffer";class Minipass extends u.EventEmitter{[v]=false;[R]=false;[D]=[];[x]=[];[P];[S];[H];[Q];[p]=false;[g]=false;[y]=false;[C]=false;[b]=null;[T]=0;[F]=false;[q];[z]=false;[V]=0;[j]=false;writable=true;readable=true;constructor(...r){const n=r[0]||{};super();if(n.objectMode&&typeof n.encoding==="string"){throw new TypeError("Encoding and objectMode may not be used together")}if(isObjectModeOptions(n)){this[P]=true;this[S]=null}else if(isEncodingOptions(n)){this[S]=n.encoding;this[P]=false}else{this[P]=false;this[S]=null}this[H]=!!n.async;this[Q]=this[S]?new A.StringDecoder(this[S]):null;if(n&&n.debugExposeBuffer===true){Object.defineProperty(this,"buffer",{get:()=>this[x]})}if(n&&n.debugExposePipes===true){Object.defineProperty(this,"pipes",{get:()=>this[D]})}const{signal:s}=n;if(s){this[q]=s;if(s.aborted){this[G]()}else{s.addEventListener("abort",(()=>this[G]()))}}}get bufferLength(){return this[T]}get encoding(){return this[S]}set encoding(r){throw new Error("Encoding must be set at instantiation time")}setEncoding(r){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[P]}set objectMode(r){throw new Error("objectMode must be set at instantiation time")}get["async"](){return this[H]}set["async"](r){this[H]=this[H]||!!r}[G](){this[z]=true;this.emit("abort",this[q]?.reason);this.destroy(this[q]?.reason)}get aborted(){return this[z]}set aborted(r){}write(r,n,s){if(this[z])return false;if(this[p])throw new Error("write after end");if(this[F]){this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"}));return true}if(typeof n==="function"){s=n;n="utf8"}if(!n)n="utf8";const a=this[H]?defer:nodefer;if(!this[P]&&!Buffer.isBuffer(r)){if(isArrayBufferView(r)){r=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}else if(isArrayBufferLike(r)){r=Buffer.from(r)}else if(typeof r!=="string"){throw new Error("Non-contiguous data written to non-objectMode stream")}}if(this[P]){if(this[v]&&this[T]!==0)this[B](true);if(this[v])this.emit("data",r);else this[k](r);if(this[T]!==0)this.emit("readable");if(s)a(s);return this[v]}if(!r.length){if(this[T]!==0)this.emit("readable");if(s)a(s);return this[v]}if(typeof r==="string"&&!(n===this[S]&&!this[Q]?.lastNeed)){r=Buffer.from(r,n)}if(Buffer.isBuffer(r)&&this[S]){r=this[Q].write(r)}if(this[v]&&this[T]!==0)this[B](true);if(this[v])this.emit("data",r);else this[k](r);if(this[T]!==0)this.emit("readable");if(s)a(s);return this[v]}read(r){if(this[F])return null;this[j]=false;if(this[T]===0||r===0||r&&r>this[T]){this[f]();return null}if(this[P])r=null;if(this[x].length>1&&!this[P]){this[x]=[this[S]?this[x].join(""):Buffer.concat(this[x],this[T])]}const n=this[w](r||null,this[x][0]);this[f]();return n}[w](r,n){if(this[P])this[_]();else{const s=n;if(r===s.length||r===null)this[_]();else if(typeof s==="string"){this[x][0]=s.slice(r);n=s.slice(0,r);this[T]-=r}else{this[x][0]=s.subarray(r);n=s.subarray(0,r);this[T]-=r}}this.emit("data",n);if(!this[x].length&&!this[p])this.emit("drain");return n}end(r,n,s){if(typeof r==="function"){s=r;r=undefined}if(typeof n==="function"){s=n;n="utf8"}if(r!==undefined)this.write(r,n);if(s)this.once("end",s);this[p]=true;this.writable=false;if(this[v]||!this[R])this[f]();return this}[N](){if(this[F])return;if(!this[V]&&!this[D].length){this[j]=true}this[R]=false;this[v]=true;this.emit("resume");if(this[x].length)this[B]();else if(this[p])this[f]();else this.emit("drain")}resume(){return this[N]()}pause(){this[v]=false;this[R]=true;this[j]=false}get destroyed(){return this[F]}get flowing(){return this[v]}get paused(){return this[R]}[k](r){if(this[P])this[T]+=1;else this[T]+=r.length;this[x].push(r)}[_](){if(this[P])this[T]-=1;else this[T]-=this[x][0].length;return this[x].shift()}[B](r=false){do{}while(this[I](this[_]())&&this[x].length);if(!r&&!this[x].length&&!this[p])this.emit("drain")}[I](r){this.emit("data",r);return this[v]}pipe(r,n){if(this[F])return r;this[j]=false;const s=this[g];n=n||{};if(r===l.stdout||r===l.stderr)n.end=false;else n.end=n.end!==false;n.proxyErrors=!!n.proxyErrors;if(s){if(n.end)r.end()}else{this[D].push(!n.proxyErrors?new Pipe(this,r,n):new PipeProxyErrors(this,r,n));if(this[H])defer((()=>this[N]()));else this[N]()}return r}unpipe(r){const n=this[D].find((n=>n.dest===r));if(n){if(this[D].length===1){if(this[v]&&this[V]===0){this[v]=false}this[D]=[]}else this[D].splice(this[D].indexOf(n),1);n.unpipe()}}addListener(r,n){return this.on(r,n)}on(r,n){const s=super.on(r,n);if(r==="data"){this[j]=false;this[V]++;if(!this[D].length&&!this[v]){this[N]()}}else if(r==="readable"&&this[T]!==0){super.emit("readable")}else if(isEndish(r)&&this[g]){super.emit(r);this.removeAllListeners(r)}else if(r==="error"&&this[b]){const r=n;if(this[H])defer((()=>r.call(this,this[b])));else r.call(this,this[b])}return s}removeListener(r,n){return this.off(r,n)}off(r,n){const s=super.off(r,n);if(r==="data"){this[V]=this.listeners("data").length;if(this[V]===0&&!this[j]&&!this[D].length){this[v]=false}}return s}removeAllListeners(r){const n=super.removeAllListeners(r);if(r==="data"||r===undefined){this[V]=0;if(!this[j]&&!this[D].length){this[v]=false}}return n}get emittedEnd(){return this[g]}[f](){if(!this[y]&&!this[g]&&!this[F]&&this[x].length===0&&this[p]){this[y]=true;this.emit("end");this.emit("prefinish");this.emit("finish");if(this[C])this.emit("close");this[y]=false}}emit(r,...n){const s=n[0];if(r!=="error"&&r!=="close"&&r!==F&&this[F]){return false}else if(r==="data"){return!this[P]&&!s?false:this[H]?(defer((()=>this[O](s))),true):this[O](s)}else if(r==="end"){return this[M]()}else if(r==="close"){this[C]=true;if(!this[g]&&!this[F])return false;const r=super.emit("close");this.removeAllListeners("close");return r}else if(r==="error"){this[b]=s;super.emit(L,s);const r=!this[q]||this.listeners("error").length?super.emit("error",s):false;this[f]();return r}else if(r==="resume"){const r=super.emit("resume");this[f]();return r}else if(r==="finish"||r==="prefinish"){const n=super.emit(r);this.removeAllListeners(r);return n}const a=super.emit(r,...n);this[f]();return a}[O](r){for(const n of this[D]){if(n.dest.write(r)===false)this.pause()}const n=this[j]?false:super.emit("data",r);this[f]();return n}[M](){if(this[g])return false;this[g]=true;this.readable=false;return this[H]?(defer((()=>this[U]())),true):this[U]()}[U](){if(this[Q]){const r=this[Q].end();if(r){for(const n of this[D]){n.dest.write(r)}if(!this[j])super.emit("data",r)}}for(const r of this[D]){r.end()}const r=super.emit("end");this.removeAllListeners("end");return r}async collect(){const r=Object.assign([],{dataLength:0});if(!this[P])r.dataLength=0;const n=this.promise();this.on("data",(n=>{r.push(n);if(!this[P])r.dataLength+=n.length}));await n;return r}async concat(){if(this[P]){throw new Error("cannot concat in objectMode")}const r=await this.collect();return this[S]?r.join(""):Buffer.concat(r,r.dataLength)}async promise(){return new Promise(((r,n)=>{this.on(F,(()=>n(new Error("stream destroyed"))));this.on("error",(r=>n(r)));this.on("end",(()=>r()))}))}[Symbol.asyncIterator](){this[j]=false;let r=false;const stop=async()=>{this.pause();r=true;return{value:undefined,done:true}};const next=()=>{if(r)return stop();const n=this.read();if(n!==null)return Promise.resolve({done:false,value:n});if(this[p])return stop();let s;let a;const onerr=r=>{this.off("data",ondata);this.off("end",onend);this.off(F,ondestroy);stop();a(r)};const ondata=r=>{this.off("error",onerr);this.off("end",onend);this.off(F,ondestroy);this.pause();s({value:r,done:!!this[p]})};const onend=()=>{this.off("error",onerr);this.off("data",ondata);this.off(F,ondestroy);stop();s({done:true,value:undefined})};const ondestroy=()=>onerr(new Error("stream destroyed"));return new Promise(((r,n)=>{a=n;s=r;this.once(F,ondestroy);this.once("error",onerr);this.once("end",onend);this.once("data",ondata)}))};return{next:next,throw:stop,return:stop,[Symbol.asyncIterator](){return this},[Symbol.asyncDispose]:async()=>{}}}[Symbol.iterator](){this[j]=false;let r=false;const stop=()=>{this.pause();this.off(L,stop);this.off(F,stop);this.off("end",stop);r=true;return{done:true,value:undefined}};const next=()=>{if(r)return stop();const n=this.read();return n===null?stop():{done:false,value:n}};this.once("end",stop);this.once(L,stop);this.once(F,stop);return{next:next,throw:stop,return:stop,[Symbol.iterator](){return this},[Symbol.dispose]:()=>{}}}destroy(r){if(this[F]){if(r)this.emit("error",r);else this.emit(F);return this}this[F]=true;this[j]=true;this[x].length=0;this[T]=0;const n=this;if(typeof n.close==="function"&&!this[C])n.close();if(r)this.emit("error",r);else this.emit(F);return this}static get isStream(){return n.isStream}}n.Minipass=Minipass},38958:function(r,n,s){var a=this&&this.__createBinding||(Object.create?function(r,n,s,a){if(a===undefined)a=s;var l=Object.getOwnPropertyDescriptor(n,s);if(!l||("get"in l?!n.__esModule:l.writable||l.configurable)){l={enumerable:true,get:function(){return n[s]}}}Object.defineProperty(r,a,l)}:function(r,n,s,a){if(a===undefined)a=s;r[a]=n[s]});var l=this&&this.__setModuleDefault||(Object.create?function(r,n){Object.defineProperty(r,"default",{enumerable:true,value:n})}:function(r,n){r["default"]=n});var u=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var s in r)if(s!=="default"&&Object.prototype.hasOwnProperty.call(r,s))a(n,r,s);l(n,r);return n};Object.defineProperty(n,"__esModule",{value:true});n.PathScurry=n.Path=n.PathScurryDarwin=n.PathScurryPosix=n.PathScurryWin32=n.PathScurryBase=n.PathPosix=n.PathWin32=n.PathBase=n.ChildrenCache=n.ResolveCache=void 0;const d=s(32477);const A=s(76760);const p=s(73136);const f=s(79896);const g=u(s(73024));const y=f.realpathSync.native;const b=s(51455);const C=s(78275);const w={lstatSync:f.lstatSync,readdir:f.readdir,readdirSync:f.readdirSync,readlinkSync:f.readlinkSync,realpathSync:y,promises:{lstat:b.lstat,readdir:b.readdir,readlink:b.readlink,realpath:b.realpath}};const fsFromOption=r=>!r||r===w||r===g?w:{...w,...r,promises:{...w.promises,...r.promises||{}}};const B=/^\\\\\?\\([a-z]:)\\?$/i;const uncToDrive=r=>r.replace(/\//g,"\\").replace(B,"$1\\");const I=/[\\\/]/;const S=0;const Q=1;const v=2;const R=4;const N=6;const x=8;const D=10;const T=12;const k=15;const _=~k;const P=16;const F=32;const L=64;const O=128;const M=256;const U=512;const H=L|O|U;const G=1023;const entToType=r=>r.isFile()?x:r.isDirectory()?R:r.isSymbolicLink()?D:r.isCharacterDevice()?v:r.isBlockDevice()?N:r.isSocket()?T:r.isFIFO()?Q:S;const z=new Map;const normalize=r=>{const n=z.get(r);if(n)return n;const s=r.normalize("NFKD");z.set(r,s);return s};const q=new Map;const normalizeNocase=r=>{const n=q.get(r);if(n)return n;const s=normalize(r.toLowerCase());q.set(r,s);return s};class ResolveCache extends d.LRUCache{constructor(){super({max:256})}}n.ResolveCache=ResolveCache;class ChildrenCache extends d.LRUCache{constructor(r=16*1024){super({maxSize:r,sizeCalculation:r=>r.length+1})}}n.ChildrenCache=ChildrenCache;const V=Symbol("PathScurry setAsCwd");class PathBase{name;root;roots;parent;nocase;isCWD=false;#rr;#nr;get dev(){return this.#nr}#sr;get mode(){return this.#sr}#ir;get nlink(){return this.#ir}#or;get uid(){return this.#or}#ar;get gid(){return this.#ar}#lr;get rdev(){return this.#lr}#cr;get blksize(){return this.#cr}#ur;get ino(){return this.#ur}#Q;get size(){return this.#Q}#dr;get blocks(){return this.#dr}#Ar;get atimeMs(){return this.#Ar}#pr;get mtimeMs(){return this.#pr}#fr;get ctimeMs(){return this.#fr}#hr;get birthtimeMs(){return this.#hr}#mr;get atime(){return this.#mr}#gr;get mtime(){return this.#gr}#yr;get ctime(){return this.#yr}#Er;get birthtime(){return this.#Er}#br;#Cr;#wr;#Br;#Ir;#Sr;#Qr;#vr;#Rr;#Nr;get parentPath(){return(this.parent||this).fullpath()}get path(){return this.parentPath}constructor(r,n=S,s,a,l,u,d){this.name=r;this.#br=l?normalizeNocase(r):normalize(r);this.#Qr=n&G;this.nocase=l;this.roots=a;this.root=s||this;this.#vr=u;this.#wr=d.fullpath;this.#Ir=d.relative;this.#Sr=d.relativePosix;this.parent=d.parent;if(this.parent){this.#rr=this.parent.#rr}else{this.#rr=fsFromOption(d.fs)}}depth(){if(this.#Cr!==undefined)return this.#Cr;if(!this.parent)return this.#Cr=0;return this.#Cr=this.parent.depth()+1}childrenCache(){return this.#vr}resolve(r){if(!r){return this}const n=this.getRootString(r);const s=r.substring(n.length);const a=s.split(this.splitSep);const l=n?this.getRoot(n).#xr(a):this.#xr(a);return l}#xr(r){let n=this;for(const s of r){n=n.child(s)}return n}children(){const r=this.#vr.get(this);if(r){return r}const n=Object.assign([],{provisional:0});this.#vr.set(this,n);this.#Qr&=~P;return n}child(r,n){if(r===""||r==="."){return this}if(r===".."){return this.parent||this}const s=this.children();const a=this.nocase?normalizeNocase(r):normalize(r);for(const r of s){if(r.#br===a){return r}}const l=this.parent?this.sep:"";const u=this.#wr?this.#wr+l+r:undefined;const d=this.newChild(r,S,{...n,parent:this,fullpath:u});if(!this.canReaddir()){d.#Qr|=O}s.push(d);return d}relative(){if(this.isCWD)return"";if(this.#Ir!==undefined){return this.#Ir}const r=this.name;const n=this.parent;if(!n){return this.#Ir=this.name}const s=n.relative();return s+(!s||!n.parent?"":this.sep)+r}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return"";if(this.#Sr!==undefined)return this.#Sr;const r=this.name;const n=this.parent;if(!n){return this.#Sr=this.fullpathPosix()}const s=n.relativePosix();return s+(!s||!n.parent?"":"/")+r}fullpath(){if(this.#wr!==undefined){return this.#wr}const r=this.name;const n=this.parent;if(!n){return this.#wr=this.name}const s=n.fullpath();const a=s+(!n.parent?"":this.sep)+r;return this.#wr=a}fullpathPosix(){if(this.#Br!==undefined)return this.#Br;if(this.sep==="/")return this.#Br=this.fullpath();if(!this.parent){const r=this.fullpath().replace(/\\/g,"/");if(/^[a-z]:\//i.test(r)){return this.#Br=`//?/${r}`}else{return this.#Br=r}}const r=this.parent;const n=r.fullpathPosix();const s=n+(!n||!r.parent?"":"/")+this.name;return this.#Br=s}isUnknown(){return(this.#Qr&k)===S}isType(r){return this[`is${r}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return(this.#Qr&k)===x}isDirectory(){return(this.#Qr&k)===R}isCharacterDevice(){return(this.#Qr&k)===v}isBlockDevice(){return(this.#Qr&k)===N}isFIFO(){return(this.#Qr&k)===Q}isSocket(){return(this.#Qr&k)===T}isSymbolicLink(){return(this.#Qr&D)===D}lstatCached(){return this.#Qr&F?this:undefined}readlinkCached(){return this.#Rr}realpathCached(){return this.#Nr}readdirCached(){const r=this.children();return r.slice(0,r.provisional)}canReadlink(){if(this.#Rr)return true;if(!this.parent)return false;const r=this.#Qr&k;return!(r!==S&&r!==D||this.#Qr&M||this.#Qr&O)}calledReaddir(){return!!(this.#Qr&P)}isENOENT(){return!!(this.#Qr&O)}isNamed(r){return!this.nocase?this.#br===normalize(r):this.#br===normalizeNocase(r)}async readlink(){const r=this.#Rr;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=await this.#rr.promises.readlink(this.fullpath());const n=(await this.parent.realpath())?.resolve(r);if(n){return this.#Rr=n}}catch(r){this.#Dr(r.code);return undefined}}readlinkSync(){const r=this.#Rr;if(r){return r}if(!this.canReadlink()){return undefined}if(!this.parent){return undefined}try{const r=this.#rr.readlinkSync(this.fullpath());const n=this.parent.realpathSync()?.resolve(r);if(n){return this.#Rr=n}}catch(r){this.#Dr(r.code);return undefined}}#Tr(r){this.#Qr|=P;for(let n=r.provisional;nn(null,r)))}readdirCB(r,n=false){if(!this.canReaddir()){if(n)r(null,[]);else queueMicrotask((()=>r(null,[])));return}const s=this.children();if(this.calledReaddir()){const a=s.slice(0,s.provisional);if(n)r(null,a);else queueMicrotask((()=>r(null,a)));return}this.#qr.push(r);if(this.#Vr){return}this.#Vr=true;const a=this.fullpath();this.#rr.readdir(a,{withFileTypes:true},((r,n)=>{if(r){this.#Lr(r.code);s.provisional=0}else{for(const r of n){this.#Mr(r,s)}this.#Tr(s)}this.#jr(s.slice(0,s.provisional));return}))}#Wr;async readdir(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const n=this.fullpath();if(this.#Wr){await this.#Wr}else{let resolve=()=>{};this.#Wr=new Promise((r=>resolve=r));try{for(const s of await this.#rr.promises.readdir(n,{withFileTypes:true})){this.#Mr(s,r)}this.#Tr(r)}catch(n){this.#Lr(n.code);r.provisional=0}this.#Wr=undefined;resolve()}return r.slice(0,r.provisional)}readdirSync(){if(!this.canReaddir()){return[]}const r=this.children();if(this.calledReaddir()){return r.slice(0,r.provisional)}const n=this.fullpath();try{for(const s of this.#rr.readdirSync(n,{withFileTypes:true})){this.#Mr(s,r)}this.#Tr(r)}catch(n){this.#Lr(n.code);r.provisional=0}return r.slice(0,r.provisional)}canReaddir(){if(this.#Qr&H)return false;const r=k&this.#Qr;if(!(r===S||r===R||r===D)){return false}return true}shouldWalk(r,n){return(this.#Qr&R)===R&&!(this.#Qr&H)&&!r.has(this)&&(!n||n(this))}async realpath(){if(this.#Nr)return this.#Nr;if((U|M|O)&this.#Qr)return undefined;try{const r=await this.#rr.promises.realpath(this.fullpath());return this.#Nr=this.resolve(r)}catch(r){this.#Pr()}}realpathSync(){if(this.#Nr)return this.#Nr;if((U|M|O)&this.#Qr)return undefined;try{const r=this.#rr.realpathSync(this.fullpath());return this.#Nr=this.resolve(r)}catch(r){this.#Pr()}}[V](r){if(r===this)return;r.isCWD=false;this.isCWD=true;const n=new Set([]);let s=[];let a=this;while(a&&a.parent){n.add(a);a.#Ir=s.join(this.sep);a.#Sr=s.join("/");a=a.parent;s.push("..")}a=r;while(a&&a.parent&&!n.has(a)){a.#Ir=undefined;a.#Sr=undefined;a=a.parent}}}n.PathBase=PathBase;class PathWin32 extends PathBase{sep="\\";splitSep=I;constructor(r,n=S,s,a,l,u,d){super(r,n,s,a,l,u,d)}newChild(r,n=S,s={}){return new PathWin32(r,n,this.root,this.roots,this.nocase,this.childrenCache(),s)}getRootString(r){return A.win32.parse(r).root}getRoot(r){r=uncToDrive(r.toUpperCase());if(r===this.root.name){return this.root}for(const[n,s]of Object.entries(this.roots)){if(this.sameRoot(r,n)){return this.roots[r]=s}}return this.roots[r]=new PathScurryWin32(r,this).root}sameRoot(r,n=this.root.name){r=r.toUpperCase().replace(/\//g,"\\").replace(B,"$1\\");return r===n}}n.PathWin32=PathWin32;class PathPosix extends PathBase{splitSep="/";sep="/";constructor(r,n=S,s,a,l,u,d){super(r,n,s,a,l,u,d)}getRootString(r){return r.startsWith("/")?"/":""}getRoot(r){return this.root}newChild(r,n=S,s={}){return new PathPosix(r,n,this.root,this.roots,this.nocase,this.childrenCache(),s)}}n.PathPosix=PathPosix;class PathScurryBase{root;rootPath;roots;cwd;#Yr;#Jr;#vr;nocase;#rr;constructor(r=process.cwd(),n,s,{nocase:a,childrenCacheSize:l=16*1024,fs:u=w}={}){this.#rr=fsFromOption(u);if(r instanceof URL||r.startsWith("file://")){r=(0,p.fileURLToPath)(r)}const d=n.resolve(r);this.roots=Object.create(null);this.rootPath=this.parseRootPath(d);this.#Yr=new ResolveCache;this.#Jr=new ResolveCache;this.#vr=new ChildrenCache(l);const A=d.substring(this.rootPath.length).split(s);if(A.length===1&&!A[0]){A.pop()}if(a===undefined){throw new TypeError("must provide nocase setting to PathScurryBase ctor")}this.nocase=a;this.root=this.newRoot(this.#rr);this.roots[this.rootPath]=this.root;let f=this.root;let g=A.length-1;const y=n.sep;let b=this.rootPath;let C=false;for(const r of A){const n=g--;f=f.child(r,{relative:new Array(n).fill("..").join(y),relativePosix:new Array(n).fill("..").join("/"),fullpath:b+=(C?"":y)+r});C=true}this.cwd=f}depth(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.depth()}childrenCache(){return this.#vr}resolve(...r){let n="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;n=n?`${a}/${n}`:a;if(this.isAbsolute(a)){break}}const s=this.#Yr.get(n);if(s!==undefined){return s}const a=this.cwd.resolve(n).fullpath();this.#Yr.set(n,a);return a}resolvePosix(...r){let n="";for(let s=r.length-1;s>=0;s--){const a=r[s];if(!a||a===".")continue;n=n?`${a}/${n}`:a;if(this.isAbsolute(a)){break}}const s=this.#Jr.get(n);if(s!==undefined){return s}const a=this.cwd.resolve(n).fullpathPosix();this.#Jr.set(n,a);return a}relative(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relative()}relativePosix(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.relativePosix()}basename(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.name}dirname(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return(r.parent||r).fullpath()}async readdir(r=this.cwd,n={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s}=n;if(!r.canReaddir()){return[]}else{const n=await r.readdir();return s?n:n.map((r=>r.name))}}readdirSync(r=this.cwd,n={withFileTypes:true}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true}=n;if(!r.canReaddir()){return[]}else if(s){return r.readdirSync()}else{return r.readdirSync().map((r=>r.name))}}async lstat(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstat()}lstatSync(r=this.cwd){if(typeof r==="string"){r=this.cwd.resolve(r)}return r.lstatSync()}async readlink(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=await r.readlink();return n?s:s?.fullpath()}readlinkSync(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=r.readlinkSync();return n?s:s?.fullpath()}async realpath(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=await r.realpath();return n?s:s?.fullpath()}realpathSync(r=this.cwd,{withFileTypes:n}={withFileTypes:false}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r.withFileTypes;r=this.cwd}const s=r.realpathSync();return n?s:s?.fullpath()}async walk(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=[];if(!l||l(r)){d.push(s?r:r.fullpath())}const A=new Set;const walk=(r,n)=>{A.add(r);r.readdirCB(((r,p)=>{if(r){return n(r)}let f=p.length;if(!f)return n();const next=()=>{if(--f===0){n()}};for(const r of p){if(!l||l(r)){d.push(s?r:r.fullpath())}if(a&&r.isSymbolicLink()){r.realpath().then((r=>r?.isUnknown()?r.lstat():r)).then((r=>r?.shouldWalk(A,u)?walk(r,next):next()))}else{if(r.shouldWalk(A,u)){walk(r,next)}else{next()}}}}),true)};const p=r;return new Promise(((r,n)=>{walk(p,(s=>{if(s)return n(s);r(d)}))}))}walkSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=[];if(!l||l(r)){d.push(s?r:r.fullpath())}const A=new Set([r]);for(const r of A){const n=r.readdirSync();for(const r of n){if(!l||l(r)){d.push(s?r:r.fullpath())}let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(A,u)){A.add(n)}}}return d}[Symbol.asyncIterator](){return this.iterate()}iterate(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}return this.stream(r,n)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;if(!l||l(r)){yield s?r:r.fullpath()}const d=new Set([r]);for(const r of d){const n=r.readdirSync();for(const r of n){if(!l||l(r)){yield s?r:r.fullpath()}let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(d,u)){d.add(n)}}}}stream(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=new C.Minipass({objectMode:true});if(!l||l(r)){d.write(s?r:r.fullpath())}const A=new Set;const p=[r];let f=0;const process=()=>{let r=false;while(!r){const n=p.shift();if(!n){if(f===0)d.end();return}f++;A.add(n);const onReaddir=(n,y,b=false)=>{if(n)return d.emit("error",n);if(a&&!b){const r=[];for(const n of y){if(n.isSymbolicLink()){r.push(n.realpath().then((r=>r?.isUnknown()?r.lstat():r)))}}if(r.length){Promise.all(r).then((()=>onReaddir(null,y,true)));return}}for(const n of y){if(n&&(!l||l(n))){if(!d.write(s?n:n.fullpath())){r=true}}}f--;for(const r of y){const n=r.realpathCached()||r;if(n.shouldWalk(A,u)){p.push(n)}}if(r&&!d.flowing){d.once("drain",process)}else if(!g){process()}};let g=true;n.readdirCB(onReaddir,true);g=false}};process();return d}streamSync(r=this.cwd,n={}){if(typeof r==="string"){r=this.cwd.resolve(r)}else if(!(r instanceof PathBase)){n=r;r=this.cwd}const{withFileTypes:s=true,follow:a=false,filter:l,walkFilter:u}=n;const d=new C.Minipass({objectMode:true});const A=new Set;if(!l||l(r)){d.write(s?r:r.fullpath())}const p=[r];let f=0;const process=()=>{let r=false;while(!r){const n=p.shift();if(!n){if(f===0)d.end();return}f++;A.add(n);const g=n.readdirSync();for(const n of g){if(!l||l(n)){if(!d.write(s?n:n.fullpath())){r=true}}}f--;for(const r of g){let n=r;if(r.isSymbolicLink()){if(!(a&&(n=r.realpathSync())))continue;if(n.isUnknown())n.lstatSync()}if(n.shouldWalk(A,u)){p.push(n)}}}if(r&&!d.flowing)d.once("drain",process)};process();return d}chdir(r=this.cwd){const n=this.cwd;this.cwd=typeof r==="string"?this.cwd.resolve(r):r;this.cwd[V](n)}}n.PathScurryBase=PathScurryBase;class PathScurryWin32 extends PathScurryBase{sep="\\";constructor(r=process.cwd(),n={}){const{nocase:s=true}=n;super(r,A.win32,"\\",{...n,nocase:s});this.nocase=s;for(let r=this.cwd;r;r=r.parent){r.nocase=this.nocase}}parseRootPath(r){return A.win32.parse(r).root.toUpperCase()}newRoot(r){return new PathWin32(this.rootPath,R,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")||r.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(r)}}n.PathScurryWin32=PathScurryWin32;class PathScurryPosix extends PathScurryBase{sep="/";constructor(r=process.cwd(),n={}){const{nocase:s=false}=n;super(r,A.posix,"/",{...n,nocase:s});this.nocase=s}parseRootPath(r){return"/"}newRoot(r){return new PathPosix(this.rootPath,R,undefined,this.roots,this.nocase,this.childrenCache(),{fs:r})}isAbsolute(r){return r.startsWith("/")}}n.PathScurryPosix=PathScurryPosix;class PathScurryDarwin extends PathScurryPosix{constructor(r=process.cwd(),n={}){const{nocase:s=true}=n;super(r,{...n,nocase:s})}}n.PathScurryDarwin=PathScurryDarwin;n.Path=process.platform==="win32"?PathWin32:PathPosix;n.PathScurry=process.platform==="win32"?PathScurryWin32:process.platform==="darwin"?PathScurryDarwin:PathScurryPosix},9002:(r,n,s)=>{const a=s(2822);r.exports={version:a.version}},84928:r=>{function getDefaultExportFromCjs(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r["default"]:r}const n=new Int32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]);function ensureBuffer(r){if(Buffer.isBuffer(r)){return r}if(typeof r==="number"){return Buffer.alloc(r)}else if(typeof r==="string"){return Buffer.from(r)}else{throw new Error("input must be buffer, number, or string, received "+typeof r)}}function bufferizeInt(r){const n=ensureBuffer(4);n.writeInt32BE(r,0);return n}function _crc32(r,s){r=ensureBuffer(r);if(Buffer.isBuffer(s)){s=s.readUInt32BE(0)}let a=~~s^-1;for(var l=0;l>>8}return a^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};var s=crc32;const a=getDefaultExportFromCjs(s);r.exports=a},3894:(r,n,s)=>{s.d(n,{Yz:()=>core_debug,z3:()=>error,Vt:()=>getBooleanInput,V4:()=>getInput,pq:()=>info,C1:()=>setFailed,uH:()=>setOutput,Pq:()=>core_setSecret,$e:()=>warning});var a=s(70857);function utils_toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}function utils_toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}function command_issueCommand(r,n,s){const l=new Command(r,n,s);process.stdout.write(l.toString()+a.EOL)}function command_issue(r,n=""){command_issueCommand(r,{},n)}const l="::";class Command{constructor(r,n,s){if(!r){r="missing.command"}this.command=r;this.properties=n;this.message=s}toString(){let r=l+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let n=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const a=this.properties[s];if(a){if(n){n=false}else{r+=","}r+=`${s}=${escapeProperty(a)}`}}}}r+=`${l}${escapeData(this.message)}`;return r}}function escapeData(r){return utils_toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return utils_toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var u=s(76982);var d=s(79896);function file_command_issueFileCommand(r,n){const s=process.env[`GITHUB_${r}`];if(!s){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!d.existsSync(s)){throw new Error(`Missing file at path: ${s}`)}d.appendFileSync(s,`${utils_toCommandValue(n)}${a.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(r,n){const s=`ghadelimiter_${u.randomUUID()}`;const l=utils_toCommandValue(n);if(r.includes(s)){throw new Error(`Unexpected input: name should not contain the delimiter "${s}"`)}if(l.includes(s)){throw new Error(`Unexpected input: value should not contain the delimiter "${s}"`)}return`${r}<<${s}${a.EOL}${l}${a.EOL}${s}`}var A=s(16928);var p=s(44942);var f=s(92145);var g=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(r=true,n=10){const s={allowRetries:r,maxRetries:n};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],s)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){return g(this,void 0,void 0,(function*(){var n;const s=oidc_utils_OidcClient.createHttpClient();const a=yield s.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const l=(n=a.result)===null||n===void 0?void 0:n.value;if(!l){throw new Error("Response json body do not have ID Token field")}return l}))}static getIDToken(r){return g(this,void 0,void 0,(function*(){try{let n=oidc_utils_OidcClient.getIDTokenUrl();if(r){const s=encodeURIComponent(r);n=`${n}&audience=${s}`}debug(`ID token url is ${n}`);const s=yield oidc_utils_OidcClient.getCall(n);setSecret(s);return s}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}var y=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const{access:b,appendFile:C,writeFile:w}=d.promises;const B="GITHUB_STEP_SUMMARY";const I="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return y(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[B];if(!r){throw new Error(`Unable to find environment variable for $${B}. Check if your runtime environment supports job summaries.`)}try{yield b(r,d.constants.R_OK|d.constants.W_OK)}catch(n){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,n,s={}){const a=Object.entries(s).map((([r,n])=>` ${r}="${n}"`)).join("");if(!n){return`<${r}${a}>`}return`<${r}${a}>${n}`}write(r){return y(this,void 0,void 0,(function*(){const n=!!(r===null||r===void 0?void 0:r.overwrite);const s=yield this.filePath();const a=n?w:C;yield a(s,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return y(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,n=false){this._buffer+=r;return n?this.addEOL():this}addEOL(){return this.addRaw(a.EOL)}addCodeBlock(r,n){const s=Object.assign({},n&&{lang:n});const a=this.wrap("pre",this.wrap("code",r),s);return this.addRaw(a).addEOL()}addList(r,n=false){const s=n?"ol":"ul";const a=r.map((r=>this.wrap("li",r))).join("");const l=this.wrap(s,a);return this.addRaw(l).addEOL()}addTable(r){const n=r.map((r=>{const n=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:n,data:s,colspan:a,rowspan:l}=r;const u=n?"th":"td";const d=Object.assign(Object.assign({},a&&{colspan:a}),l&&{rowspan:l});return this.wrap(u,s,d)})).join("");return this.wrap("tr",n)})).join("");const s=this.wrap("table",n);return this.addRaw(s).addEOL()}addDetails(r,n){const s=this.wrap("details",this.wrap("summary",r)+n);return this.addRaw(s).addEOL()}addImage(r,n,s){const{width:a,height:l}=s||{};const u=Object.assign(Object.assign({},a&&{width:a}),l&&{height:l});const d=this.wrap("img",null,Object.assign({src:r,alt:n},u));return this.addRaw(d).addEOL()}addHeading(r,n){const s=`h${n}`;const a=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1";const l=this.wrap(a,r);return this.addRaw(l).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,n){const s=Object.assign({},n&&{cite:n});const a=this.wrap("blockquote",r,s);return this.addRaw(a).addEOL()}addLink(r,n){const s=this.wrap("a",r,{href:n});return this.addRaw(s).addEOL()}}const S=new Summary;const Q=null&&S;const v=null&&S;function toPosixPath(r){return r.replace(/[\\]/g,"/")}function toWin32Path(r){return r.replace(/[/]/g,"\\")}function toPlatformPath(r){return r.replace(/[/\\]/g,path.sep)}var R=s(13193);var N=s(24434);var x=s(35317);var D=s(42613);var T=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const{chmod:k,copyFile:_,lstat:P,mkdir:F,open:L,readdir:O,rename:M,rm:U,rmdir:H,stat:G,symlink:z,unlink:q}=d.promises;const V=process.platform==="win32";function readlink(r){return T(this,void 0,void 0,(function*(){const n=yield fs.promises.readlink(r);if(V&&!n.endsWith("\\")){return`${n}\\`}return n}))}const j=268435456;const W=d.constants.O_RDONLY;function exists(r){return T(this,void 0,void 0,(function*(){try{yield G(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}function isDirectory(r){return T(this,arguments,void 0,(function*(r,n=false){const s=n?yield G(r):yield P(r);return s.isDirectory()}))}function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(V){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}function tryGetExecutablePath(r,n){return T(this,void 0,void 0,(function*(){let s=undefined;try{s=yield G(r)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${n}`)}}if(s&&s.isFile()){if(V){const s=A.extname(r).toUpperCase();if(n.some((r=>r.toUpperCase()===s))){return r}}else{if(isUnixExecutable(s)){return r}}}const a=r;for(const l of n){r=a+l;s=undefined;try{s=yield G(r)}catch(n){if(n.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${n}`)}}if(s&&s.isFile()){if(V){try{const n=A.dirname(r);const s=A.basename(r).toUpperCase();for(const a of yield O(n)){if(s===a.toUpperCase()){r=A.join(n,a);break}}}catch(n){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${n}`)}return r}else{if(isUnixExecutable(s)){return r}}}}return""}))}function normalizeSeparators(r){r=r||"";if(V){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&process.getgid!==undefined&&r.gid===process.getgid()||(r.mode&64)>0&&process.getuid!==undefined&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}var Y=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function cp(r,n){return Y(this,arguments,void 0,(function*(r,n,s={}){const{force:a,recursive:l,copySourceDirectory:u}=readCopyOptions(s);const d=(yield ioUtil.exists(n))?yield ioUtil.stat(n):null;if(d&&d.isFile()&&!a){return}const A=d&&d.isDirectory()&&u?path.join(n,path.basename(r)):n;if(!(yield ioUtil.exists(r))){throw new Error(`no such file or directory: ${r}`)}const p=yield ioUtil.stat(r);if(p.isDirectory()){if(!l){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,A,0,a)}}else{if(path.relative(r,A)===""){throw new Error(`'${A}' and '${r}' are the same file`)}yield io_copyFile(r,A,a)}}))}function mv(r,n){return Y(this,arguments,void 0,(function*(r,n,s={}){if(yield ioUtil.exists(n)){let a=true;if(yield ioUtil.isDirectory(n)){n=path.join(n,path.basename(r));a=yield ioUtil.exists(n)}if(a){if(s.force==null||s.force){yield rmRF(n)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(n));yield ioUtil.rename(r,n)}))}function rmRF(r){return Y(this,void 0,void 0,(function*(){if(ioUtil.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ioUtil.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}function mkdirP(r){return Y(this,void 0,void 0,(function*(){ok(r,"a path argument must be provided");yield ioUtil.mkdir(r,{recursive:true})}))}function which(r,n){return Y(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(n){const n=yield which(r,false);if(!n){if(V){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return n}const s=yield findInPath(r);if(s&&s.length>0){return s[0]}return""}))}function findInPath(r){return Y(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const n=[];if(V&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(A.delimiter)){if(r){n.push(r)}}}if(isRooted(r)){const s=yield tryGetExecutablePath(r,n);if(s){return[s]}return[]}if(r.includes(A.sep)){return[]}const s=[];if(process.env.PATH){for(const r of process.env.PATH.split(A.delimiter)){if(r){s.push(r)}}}const a=[];for(const l of s){const s=yield tryGetExecutablePath(A.join(l,r),n);if(s){a.push(s)}}return a}))}function readCopyOptions(r){const n=r.force==null?true:r.force;const s=Boolean(r.recursive);const a=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:n,recursive:s,copySourceDirectory:a}}function cpDirRecursive(r,n,s,a){return Y(this,void 0,void 0,(function*(){if(s>=255)return;s++;yield mkdirP(n);const l=yield ioUtil.readdir(r);for(const u of l){const l=`${r}/${u}`;const d=`${n}/${u}`;const A=yield ioUtil.lstat(l);if(A.isDirectory()){yield cpDirRecursive(l,d,s,a)}else{yield io_copyFile(l,d,a)}}yield ioUtil.chmod(n,(yield ioUtil.stat(r)).mode)}))}function io_copyFile(r,n,s){return Y(this,void 0,void 0,(function*(){if((yield ioUtil.lstat(r)).isSymbolicLink()){try{yield ioUtil.lstat(n);yield ioUtil.unlink(n)}catch(r){if(r.code==="EPERM"){yield ioUtil.chmod(n,"0666");yield ioUtil.unlink(n)}}const s=yield ioUtil.readlink(r);yield ioUtil.symlink(s,n,ioUtil.IS_WINDOWS?"junction":null)}else if(!(yield ioUtil.exists(n))||s){yield ioUtil.copyFile(r,n)}}))}const J=__WEBPACK_EXTERNAL_createRequire(import.meta.url)("timers");var $=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const K=process.platform==="win32";class ToolRunner extends N.EventEmitter{constructor(r,n,s){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=n||[];this.options=s||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,n){const s=this._getSpawnFileName();const a=this._getSpawnArgs(r);let l=n?"":"[command]";if(K){if(this._isCmdFile()){l+=s;for(const r of a){l+=` ${r}`}}else if(r.windowsVerbatimArguments){l+=`"${s}"`;for(const r of a){l+=` ${r}`}}else{l+=this._windowsQuoteCmdArg(s);for(const r of a){l+=` ${this._windowsQuoteCmdArg(r)}`}}}else{l+=s;for(const r of a){l+=` ${r}`}}return l}_processLineBuffer(r,n,s){try{let l=n+r.toString();let u=l.indexOf(a.EOL);while(u>-1){const r=l.substring(0,u);s(r);l=l.substring(u+a.EOL.length);u=l.indexOf(a.EOL)}return l}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(K){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(K){if(this._isCmdFile()){let n=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const s of this.args){n+=" ";n+=r.windowsVerbatimArguments?s:this._windowsQuoteCmdArg(s)}n+='"';return[n]}}return this.args}_endsWith(r,n){return r.endsWith(n)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const n=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let s=false;for(const a of r){if(n.some((r=>r===a))){s=true;break}}if(!s){return r}let a='"';let l=true;for(let n=r.length;n>0;n--){a+=r[n-1];if(l&&r[n-1]==="\\"){a+="\\"}else if(r[n-1]==='"'){l=true;a+='"'}else{l=false}}a+='"';return a.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let n='"';let s=true;for(let a=r.length;a>0;a--){n+=r[a-1];if(s&&r[a-1]==="\\"){n+="\\"}else if(r[a-1]==='"'){s=true;n+="\\"}else{s=false}}n+='"';return n.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const n={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};n.outStream=r.outStream||process.stdout;n.errStream=r.errStream||process.stderr;return n}_getSpawnOptions(r,n){r=r||{};const s={};s.cwd=r.cwd;s.env=r.env;s["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){s.argv0=`"${n}"`}return s}exec(){return $(this,void 0,void 0,(function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||K&&this.toolPath.includes("\\"))){this.toolPath=A.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise(((r,n)=>$(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const s=this._cloneExecOptions(this.options);if(!s.silent&&s.outStream){s.outStream.write(this._getCommandString(s)+a.EOL)}const l=new ExecState(s,this.toolPath);l.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield exists(this.options.cwd))){return n(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const u=this._getSpawnFileName();const d=x.spawn(u,this._getSpawnArgs(s),this._getSpawnOptions(this.options,u));let A="";if(d.stdout){d.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!s.silent&&s.outStream){s.outStream.write(r)}A=this._processLineBuffer(r,A,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let p="";if(d.stderr){d.stderr.on("data",(r=>{l.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!s.silent&&s.errStream&&s.outStream){const n=s.failOnStdErr?s.errStream:s.outStream;n.write(r)}p=this._processLineBuffer(r,p,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}d.on("error",(r=>{l.processError=r.message;l.processExited=true;l.processClosed=true;l.CheckComplete()}));d.on("exit",(r=>{l.processExitCode=r;l.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);l.CheckComplete()}));d.on("close",(r=>{l.processExitCode=r;l.processExited=true;l.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);l.CheckComplete()}));l.on("done",((s,a)=>{if(A.length>0){this.emit("stdline",A)}if(p.length>0){this.emit("errline",p)}d.removeAllListeners();if(s){n(s)}else{r(a)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}function argStringToArray(r){const n=[];let s=false;let a=false;let l="";function append(r){if(a&&r!=='"'){l+="\\"}l+=r;a=false}for(let u=0;u0){n.push(l);l=""}continue}append(d)}if(l.length>0){n.push(l.trim())}return n}class ExecState extends N.EventEmitter{constructor(r,n){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!n){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=n;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,J.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const n=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(n)}r._setResult()}}var X=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function exec_exec(r,n,s){return X(this,void 0,void 0,(function*(){const a=tr.argStringToArray(r);if(a.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const l=a[0];n=a.slice(1).concat(n||[]);const u=new tr.ToolRunner(l,n,s);return u.exec()}))}function getExecOutput(r,n,s){return X(this,void 0,void 0,(function*(){var a,l;let u="";let d="";const A=new StringDecoder("utf8");const p=new StringDecoder("utf8");const f=(a=s===null||s===void 0?void 0:s.listeners)===null||a===void 0?void 0:a.stdout;const g=(l=s===null||s===void 0?void 0:s.listeners)===null||l===void 0?void 0:l.stderr;const stdErrListener=r=>{d+=p.write(r);if(g){g(r)}};const stdOutListener=r=>{u+=A.write(r);if(f){f(r)}};const y=Object.assign(Object.assign({},s===null||s===void 0?void 0:s.listeners),{stdout:stdOutListener,stderr:stdErrListener});const b=yield exec_exec(r,n,Object.assign(Object.assign({},s),{listeners:y}));u+=A.end();d+=p.end();return{exitCode:b,stdout:u,stderr:d}}))}var Z=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};const getWindowsInfo=()=>Z(void 0,void 0,void 0,(function*(){const{stdout:r}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:n}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:n.trim(),version:r.trim()}}));const getMacOsInfo=()=>Z(void 0,void 0,void 0,(function*(){var r,n,s,a;const{stdout:l}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const u=(n=(r=l.match(/ProductVersion:\s*(.+)/))===null||r===void 0?void 0:r[1])!==null&&n!==void 0?n:"";const d=(a=(s=l.match(/ProductName:\s*(.+)/))===null||s===void 0?void 0:s[1])!==null&&a!==void 0?a:"";return{name:d,version:u}}));const getLinuxInfo=()=>Z(void 0,void 0,void 0,(function*(){const{stdout:r}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[n,s]=r.trim().split("\n");return{name:n,version:s}}));const ee=a.platform();const te=a.arch();const re=ee==="win32";const ne=ee==="darwin";const se=ee==="linux";function getDetails(){return Z(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield re?getWindowsInfo():ne?getMacOsInfo():getLinuxInfo()),{platform:ee,arch:te,isWindows:re,isMacOS:ne,isLinux:se})}))}var ie=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var oe;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(oe||(oe={}));function exportVariable(r,n){const s=toCommandValue(n);process.env[r]=s;const a=process.env["GITHUB_ENV"]||"";if(a){return issueFileCommand("ENV",prepareKeyValueMessage(r,n))}issueCommand("set-env",{name:r},s)}function core_setSecret(r){command_issueCommand("add-mask",{},r)}function addPath(r){const n=process.env["GITHUB_PATH"]||"";if(n){issueFileCommand("PATH",r)}else{issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${path.delimiter}${process.env["PATH"]}`}function getInput(r,n){const s=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!s){throw new Error(`Input required and not supplied: ${r}`)}if(n&&n.trimWhitespace===false){return s}return s.trim()}function getMultilineInput(r,n){const s=getInput(r,n).split("\n").filter((r=>r!==""));if(n&&n.trimWhitespace===false){return s}return s.map((r=>r.trim()))}function getBooleanInput(r,n){const s=["true","True","TRUE"];const a=["false","False","FALSE"];const l=getInput(r,n);if(s.includes(l))return true;if(a.includes(l))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(r,n){const s=process.env["GITHUB_OUTPUT"]||"";if(s){return file_command_issueFileCommand("OUTPUT",file_command_prepareKeyValueMessage(r,n))}process.stdout.write(a.EOL);command_issueCommand("set-output",{name:r},utils_toCommandValue(n))}function setCommandEcho(r){issue("echo",r?"on":"off")}function setFailed(r){process.exitCode=oe.Failure;error(r)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(r){command_issueCommand("debug",{},r)}function error(r,n={}){command_issueCommand("error",utils_toCommandProperties(n),r instanceof Error?r.toString():r)}function warning(r,n={}){command_issueCommand("warning",utils_toCommandProperties(n),r instanceof Error?r.toString():r)}function notice(r,n={}){issueCommand("notice",toCommandProperties(n),r instanceof Error?r.toString():r)}function info(r){process.stdout.write(r+a.EOL)}function startGroup(r){issue("group",r)}function endGroup(){issue("endgroup")}function group(r,n){return ie(this,void 0,void 0,(function*(){startGroup(r);let s;try{s=yield n()}finally{endGroup()}return s}))}function saveState(r,n){const s=process.env["GITHUB_STATE"]||"";if(s){return issueFileCommand("STATE",prepareKeyValueMessage(r,n))}issueCommand("save-state",{name:r},toCommandValue(n))}function getState(r){return process.env[`STATE_${r}`]||""}function getIDToken(r){return ie(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(r)}))}},37157:(r,n,s)=>{s.d(n,{o:()=>Context});var a=s(79896);var l=s(70857);class Context{constructor(){var r,n,s;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,a.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,a.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${l.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10);this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(n=process.env.GITHUB_SERVER_URL)!==null&&n!==void 0?n:`https://github.com`;this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,n]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:n}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}},61351:(r,n,s)=>{s.d(n,{Q:()=>getOctokit,_:()=>u});var a=s(37157);var l=s(79083);const u=new a.o;function getOctokit(r,n,...s){const a=l.gq.plugin(...s);return new a((0,l.EG)(r,n))}},79083:(r,n,s)=>{s.d(n,{gq:()=>de,NT:()=>ue,EG:()=>getOctokitOptions});var a=s(37157);var l=s(89659);var u=s(46752);var d=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};function getAuthString(r,n){if(!r&&!n.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&n.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof n.auth==="string"?n.auth:`token ${r}`}function getProxyAgent(r){const n=new l.HttpClient;return n.getAgent(r)}function getProxyAgentDispatcher(r){const n=new l.HttpClient;return n.getAgentDispatcher(r)}function getProxyFetch(r){const n=getProxyAgentDispatcher(r);const proxyFetch=(r,s)=>d(this,void 0,void 0,(function*(){return(0,u.fetch)(r,Object.assign(Object.assign({},s),{dispatcher:n}))}));return proxyFetch}function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return""}function register(r,n,s,a){if(typeof s!=="function"){throw new Error("method for before hook must be a function")}if(!a){a={}}if(Array.isArray(n)){return n.reverse().reduce(((n,s)=>register.bind(null,r,s,n,a)),s)()}return Promise.resolve().then((()=>{if(!r.registry[n]){return s(a)}return r.registry[n].reduce(((r,n)=>n.hook.bind(null,r,a)),s)()}))}function addHook(r,n,s,a){const l=a;if(!r.registry[s]){r.registry[s]=[]}if(n==="before"){a=(r,n)=>Promise.resolve().then(l.bind(null,n)).then(r.bind(null,n))}if(n==="after"){a=(r,n)=>{let s;return Promise.resolve().then(r.bind(null,n)).then((r=>{s=r;return l(s,n)})).then((()=>s))}}if(n==="error"){a=(r,n)=>Promise.resolve().then(r.bind(null,n)).catch((r=>l(r,n)))}r.registry[s].push({hook:a,orig:l})}function removeHook(r,n,s){if(!r.registry[n]){return}const a=r.registry[n].map((r=>r.orig)).indexOf(s);if(a===-1){return}r.registry[n].splice(a,1)}const A=Function.bind;const p=A.bind(A);function bindApi(r,n,s){const a=p(removeHook,null).apply(null,s?[n,s]:[n]);r.api={remove:a};r.remove=a;["before","error","after","wrap"].forEach((a=>{const l=s?[n,a,s]:[n,a];r[a]=r.api[a]=p(addHook,null).apply(null,l)}))}function Singular(){const r=Symbol("Singular");const n={registry:{}};const s=register.bind(null,n,r);bindApi(s,n,r);return s}function Collection(){const r={registry:{}};const n=register.bind(null,r);bindApi(n,r);return n}const f={Singular:Singular,Collection:Collection};var g="0.0.0-development";var y=`octokit-endpoint.js/${g} ${getUserAgent()}`;var b={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":y},mediaType:{format:""}};function lowercaseKeys(r){if(!r){return{}}return Object.keys(r).reduce(((n,s)=>{n[s.toLowerCase()]=r[s];return n}),{})}function isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const n=Object.getPrototypeOf(r);if(n===null)return true;const s=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return typeof s==="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}function mergeDeep(r,n){const s=Object.assign({},r);Object.keys(n).forEach((a=>{if(isPlainObject(n[a])){if(!(a in r))Object.assign(s,{[a]:n[a]});else s[a]=mergeDeep(r[a],n[a])}else{Object.assign(s,{[a]:n[a]})}}));return s}function removeUndefinedProperties(r){for(const n in r){if(r[n]===void 0){delete r[n]}}return r}function merge(r,n,s){if(typeof n==="string"){let[r,a]=n.split(" ");s=Object.assign(a?{method:r,url:a}:{url:r},s)}else{s=Object.assign({},n)}s.headers=lowercaseKeys(s.headers);removeUndefinedProperties(s);removeUndefinedProperties(s.headers);const a=mergeDeep(r||{},s);if(s.url==="/graphql"){if(r&&r.mediaType.previews?.length){a.mediaType.previews=r.mediaType.previews.filter((r=>!a.mediaType.previews.includes(r))).concat(a.mediaType.previews)}a.mediaType.previews=(a.mediaType.previews||[]).map((r=>r.replace(/-preview/,"")))}return a}function addQueryParameters(r,n){const s=/\?/.test(r)?"&":"?";const a=Object.keys(n);if(a.length===0){return r}return r+s+a.map((r=>{if(r==="q"){return"q="+n.q.split("+").map(encodeURIComponent).join("+")}return`${r}=${encodeURIComponent(n[r])}`})).join("&")}var C=/\{[^{}}]+\}/g;function removeNonChars(r){return r.replace(/(?:^\W+)|(?:(?r.concat(n)),[])}function omit(r,n){const s={__proto__:null};for(const a of Object.keys(r)){if(n.indexOf(a)===-1){s[a]=r[a]}}return s}function encodeReserved(r){return r.split(/(%[0-9A-Fa-f]{2})/g).map((function(r){if(!/%[0-9A-Fa-f]/.test(r)){r=encodeURI(r).replace(/%5B/g,"[").replace(/%5D/g,"]")}return r})).join("")}function encodeUnreserved(r){return encodeURIComponent(r).replace(/[!'()*]/g,(function(r){return"%"+r.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(r,n,s){n=r==="+"||r==="#"?encodeReserved(n):encodeUnreserved(n);if(s){return encodeUnreserved(s)+"="+n}else{return n}}function isDefined(r){return r!==void 0&&r!==null}function isKeyOperator(r){return r===";"||r==="&"||r==="?"}function getValues(r,n,s,a){var l=r[s],u=[];if(isDefined(l)&&l!==""){if(typeof l==="string"||typeof l==="number"||typeof l==="bigint"||typeof l==="boolean"){l=l.toString();if(a&&a!=="*"){l=l.substring(0,parseInt(a,10))}u.push(encodeValue(n,l,isKeyOperator(n)?s:""))}else{if(a==="*"){if(Array.isArray(l)){l.filter(isDefined).forEach((function(r){u.push(encodeValue(n,r,isKeyOperator(n)?s:""))}))}else{Object.keys(l).forEach((function(r){if(isDefined(l[r])){u.push(encodeValue(n,l[r],r))}}))}}else{const r=[];if(Array.isArray(l)){l.filter(isDefined).forEach((function(s){r.push(encodeValue(n,s))}))}else{Object.keys(l).forEach((function(s){if(isDefined(l[s])){r.push(encodeUnreserved(s));r.push(encodeValue(n,l[s].toString()))}}))}if(isKeyOperator(n)){u.push(encodeUnreserved(s)+"="+r.join(","))}else if(r.length!==0){u.push(r.join(","))}}}}else{if(n===";"){if(isDefined(l)){u.push(encodeUnreserved(s))}}else if(l===""&&(n==="&"||n==="?")){u.push(encodeUnreserved(s)+"=")}else if(l===""){u.push("")}}return u}function parseUrl(r){return{expand:expand.bind(null,r)}}function expand(r,n){var s=["+","#",".","/",";","?","&"];r=r.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(r,a,l){if(a){let r="";const l=[];if(s.indexOf(a.charAt(0))!==-1){r=a.charAt(0);a=a.substr(1)}a.split(/,/g).forEach((function(s){var a=/([^:\*]*)(?::(\d+)|(\*))?/.exec(s);l.push(getValues(n,r,a[1],a[2]||a[3]))}));if(r&&r!=="+"){var u=",";if(r==="?"){u="&"}else if(r!=="#"){u=r}return(l.length!==0?r:"")+l.join(u)}else{return l.join(",")}}else{return encodeReserved(l)}}));if(r==="/"){return r}else{return r.replace(/\/$/,"")}}function parse(r){let n=r.method.toUpperCase();let s=(r.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let a=Object.assign({},r.headers);let l;let u=omit(r,["method","baseUrl","url","headers","request","mediaType"]);const d=extractUrlVariableNames(s);s=parseUrl(s).expand(u);if(!/^http/.test(s)){s=r.baseUrl+s}const A=Object.keys(r).filter((r=>d.includes(r))).concat("baseUrl");const p=omit(u,A);const f=/application\/octet-stream/i.test(a.accept);if(!f){if(r.mediaType.format){a.accept=a.accept.split(/,/).map((n=>n.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${r.mediaType.format}`))).join(",")}if(s.endsWith("/graphql")){if(r.mediaType.previews?.length){const n=a.accept.match(/(?{const s=r.mediaType.format?`.${r.mediaType.format}`:"+json";return`application/vnd.github.${n}-preview${s}`})).join(",")}}}if(["GET","HEAD"].includes(n)){s=addQueryParameters(s,p)}else{if("data"in p){l=p.data}else{if(Object.keys(p).length){l=p}}}if(!a["content-type"]&&typeof l!=="undefined"){a["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(n)&&typeof l==="undefined"){l=""}return Object.assign({method:n,url:s,headers:a},typeof l!=="undefined"?{body:l}:null,r.request?{request:r.request}:null)}function endpointWithDefaults(r,n,s){return parse(merge(r,n,s))}function withDefaults(r,n){const s=merge(r,n);const a=endpointWithDefaults.bind(null,s);return Object.assign(a,{DEFAULTS:s,defaults:withDefaults.bind(null,s),merge:merge.bind(null,s),parse:parse})}var w=withDefaults(null,b);var B=s(41120);const I=/^-?\d+$/;const S=/^-?\d+n+$/;const Q=JSON.stringify;const v=JSON.parse;const R=/^-?\d+n$/;const N=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const x=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const JSONStringify=(r,n,s)=>{if("rawJSON"in JSON){return Q(r,((r,s)=>{if(typeof s==="bigint")return JSON.rawJSON(s.toString());if(typeof n==="function")return n(r,s);if(Array.isArray(n)&&n.includes(r))return s;return s}),s)}if(!r)return Q(r,n,s);const a=Q(r,((r,s)=>{const a=typeof s==="string"&&Boolean(s.match(S));if(a)return s.toString()+"n";if(typeof s==="bigint")return s.toString()+"n";if(typeof n==="function")return n(r,s);if(Array.isArray(n)&&n.includes(r))return s;return s}),s);const l=a.replace(N,"$1$2$3");const u=l.replace(x,"$1$2$3");return u};const isContextSourceSupported=()=>JSON.parse("1",((r,n,s)=>!!s&&s.source==="1"));const convertMarkedBigIntsReviver=(r,n,s,a)=>{const l=typeof n==="string"&&n.match(R);if(l)return BigInt(n.slice(0,-1));const u=typeof n==="string"&&n.match(S);if(u)return n.slice(0,-1);if(typeof a!=="function")return n;return a(r,n,s)};const JSONParseV2=(r,n)=>JSON.parse(r,((r,s,a)=>{const l=typeof s==="number"&&(s>Number.MAX_SAFE_INTEGER||s{if(!r)return v(r,n);if(isContextSourceSupported())return JSONParseV2(r,n);const s=r.replace(k,((r,n,s,a)=>{const l=r[0]==='"';const u=l&&Boolean(r.match(_));if(u)return r.substring(0,r.length-1)+'n"';const d=s||a;const A=n&&(n.lengthconvertMarkedBigIntsReviver(r,s,a,n)))};var P=s(31015);var F="10.0.8";var L={headers:{"user-agent":`octokit-request.js/${F} ${getUserAgent()}`}};function dist_bundle_isPlainObject(r){if(typeof r!=="object"||r===null)return false;if(Object.prototype.toString.call(r)!=="[object Object]")return false;const n=Object.getPrototypeOf(r);if(n===null)return true;const s=Object.prototype.hasOwnProperty.call(n,"constructor")&&n.constructor;return typeof s==="function"&&s instanceof s&&Function.prototype.call(s)===Function.prototype.call(r)}var noop=()=>"";async function fetchWrapper(r){const n=r.request?.fetch||globalThis.fetch;if(!n){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const s=r.request?.log||console;const a=r.request?.parseSuccessResponseBody!==false;const l=dist_bundle_isPlainObject(r.body)||Array.isArray(r.body)?JSONStringify(r.body):r.body;const u=Object.fromEntries(Object.entries(r.headers).map((([r,n])=>[r,String(n)])));let d;try{d=await n(r.url,{method:r.method,body:l,redirect:r.request?.redirect,headers:u,signal:r.request?.signal,...r.body&&{duplex:"half"}})}catch(n){let s="Unknown Error";if(n instanceof Error){if(n.name==="AbortError"){n.status=500;throw n}s=n.message;if(n.name==="TypeError"&&"cause"in n){if(n.cause instanceof Error){s=n.cause.message}else if(typeof n.cause==="string"){s=n.cause}}}const a=new P.G(s,500,{request:r});a.cause=n;throw a}const A=d.status;const p=d.url;const f={};for(const[r,n]of d.headers){f[r]=n}const g={url:p,status:A,headers:f,data:""};if("deprecation"in f){const n=f.link&&f.link.match(/<([^<>]+)>; rel="deprecation"/);const a=n&&n.pop();s.warn(`[@octokit/request] "${r.method} ${r.url}" is deprecated. It is scheduled to be removed on ${f.sunset}${a?`. See ${a}`:""}`)}if(A===204||A===205){return g}if(r.method==="HEAD"){if(A<400){return g}throw new P.G(d.statusText,A,{response:g,request:r})}if(A===304){g.data=await getResponseData(d);throw new P.G("Not modified",A,{response:g,request:r})}if(A>=400){g.data=await getResponseData(d);throw new P.G(toErrorMessage(g.data),A,{response:g,request:r})}g.data=a?await getResponseData(d):d.body;return g}async function getResponseData(r){const n=r.headers.get("content-type");if(!n){return r.text().catch(noop)}const s=(0,B.xL)(n);if(isJSONResponse(s)){let n="";try{n=await r.text();return JSONParse(n)}catch(r){return n}}else if(s.type.startsWith("text/")||s.parameters.charset?.toLowerCase()==="utf-8"){return r.text().catch(noop)}else{return r.arrayBuffer().catch(( /* v8 ignore next -- @preserve */ ()=>new ArrayBuffer(0)))}}function isJSONResponse(r){return r.type==="application/json"||r.type==="application/scim+json"}function toErrorMessage(r){if(typeof r==="string"){return r}if(r instanceof ArrayBuffer){return"Unknown error"}if("message"in r){const n="documentation_url"in r?` - ${r.documentation_url}`:"";return Array.isArray(r.errors)?`${r.message}: ${r.errors.map((r=>JSON.stringify(r))).join(", ")}${n}`:`${r.message}${n}`}return`Unknown error: ${JSON.stringify(r)}`}function dist_bundle_withDefaults(r,n){const s=r.defaults(n);const newApi=function(r,n){const a=s.merge(r,n);if(!a.request||!a.request.hook){return fetchWrapper(s.parse(a))}const request2=(r,n)=>fetchWrapper(s.parse(s.merge(r,n)));Object.assign(request2,{endpoint:s,defaults:dist_bundle_withDefaults.bind(null,s)});return a.request.hook(request2,a)};return Object.assign(newApi,{endpoint:s,defaults:dist_bundle_withDefaults.bind(null,s)})}var O=dist_bundle_withDefaults(w,L); /* v8 ignore next -- @preserve */ -/* v8 ignore else -- @preserve */var M="0.0.0-development";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var U=class extends Error{constructor(r,n,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=n;this.response=s;this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var H=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var G=["query","method","url"];var z=/\/api\/v3\/?$/;function graphql(r,n,s){if(s){if(typeof n==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!G.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof n==="string"?Object.assign({query:n},s):n;const l=Object.keys(a).reduce(((r,n)=>{if(H.includes(n)){r[n]=a[n];return r}if(!r.variables){r.variables={}}r.variables[n]=a[n];return r}),{});const u=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(z.test(u)){l.url=u.replace(z,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const n={};for(const s of Object.keys(r.headers)){n[s]=r.headers[s]}throw new U(l,n,r.data)}return r.data.data}))}function graphql_dist_bundle_withDefaults(r,n){const s=r.defaults(n);const newApi=(r,n)=>graphql(s,r,n);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,s),endpoint:s.endpoint})}var q=graphql_dist_bundle_withDefaults(O,{headers:{"user-agent":`octokit-graphql.js/${M} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return graphql_dist_bundle_withDefaults(r,{method:"POST",url:"/graphql"})}var V="(?:[a-zA-Z0-9_-]+)";var W="\\.";var j=new RegExp(`^${V}${W}${V}${W}${V}$`);var Y=j.test.bind(j);async function auth(r){const n=Y(r);const s=r.startsWith("v1.")||r.startsWith("ghs_");const a=r.startsWith("ghu_");const l=n?"app":s?"installation":a?"user-to-server":"oauth";return{type:"token",token:r,tokenType:l}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,n,s,a){const l=n.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return n(l)}var J=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};const $="7.0.6";const dist_src_noop=()=>{};const K=console.warn.bind(console);const X=console.error.bind(console);function createLogger(r={}){if(typeof r.debug!=="function"){r.debug=dist_src_noop}if(typeof r.info!=="function"){r.info=dist_src_noop}if(typeof r.warn!=="function"){r.warn=K}if(typeof r.error!=="function"){r.error=X}return r}const Z=`octokit-core.js/${$} ${getUserAgent()}`;class Octokit{static VERSION=$;static defaults(r){const n=class extends(this){constructor(...n){const s=n[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return n}static plugins=[];static plugin(...r){const n=this.plugins;const s=class extends(this){static plugins=n.concat(r.filter((r=>!n.includes(r))))};return s}constructor(r={}){const n=new f.Collection;const s={baseUrl:O.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:n.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=r.userAgent?`${r.userAgent} ${Z}`:Z;if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=O.defaults(s);this.graphql=withCustomRequest(this.request).defaults(s);this.log=createLogger(r.log);this.hook=n;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=J(r.auth);n.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s,...a}=r;const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));n.wrap("request",l.hook);this.auth=l}const a=this.constructor;for(let n=0;n({async next(){if(!A)return{done:true};try{const r=await l({method:u,url:A,headers:d});const n=normalizePaginatedListResponse(r);A=((n.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];if(!A&&"total_commits"in n.data){const r=new URL(n.url);const s=r.searchParams;const a=parseInt(s.get("page")||"1",10);const l=parseInt(s.get("per_page")||"250",10);if(a*l{if(l.done){return n}let u=false;function done(){u=true}n=n.concat(a?a(l.value,done):l.value.data);if(u){return n}return gather(r,n,s,a)}))}var oe=Object.assign(paginate,{iterator:iterator});var ae=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/code-security/configurations","GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/teams","GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships","GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /organizations/{org}/dependabot/repository-access","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/hosted-runners","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/attestations/repositories","GET /orgs/{org}/attestations/{subject_digest}","GET /orgs/{org}/blocks","GET /orgs/{org}/campaigns","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/code-security/configurations","GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/metrics","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}","GET /orgs/{org}/insights/api/subject-stats","GET /orgs/{org}/insights/api/user-stats/{user_id}","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/private-registries","GET /orgs/{org}/projects","GET /orgs/{org}/projectsV2","GET /orgs/{org}/projectsV2/{project_number}/fields","GET /orgs/{org}/projectsV2/{project_number}/items","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/rulesets/{ruleset_id}/history","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/settings/immutable-releases/repositories","GET /orgs/{org}/settings/network-configurations","GET /orgs/{org}/team/{team_slug}/copilot/metrics","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/{project_id}/collaborators","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/attestations/{subject_digest}","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/compare/{basehead}","GET /repos/{owner}/{repo}/compare/{base}...{head}","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/attestations/{subject_digest}","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/projectsV2","GET /users/{username}/projectsV2/{project_number}/fields","GET /users/{username}/projectsV2/{project_number}/items","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return ae.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=ie;const le=new a.o;const ce=getApiBaseUrl();const ue={baseUrl:ce,request:{agent:getProxyAgent(ce),fetch:getProxyFetch(ce)}};const de=Octokit.plugin(restEndpointMethods,paginateRest).defaults(ue);function getOctokitOptions(r,n){const s=Object.assign({},n||{});const a=getAuthString(r,s);if(a){s.auth=a}return s}},83428:(r,n,s)=>{s.d(n,{tZ:()=>BearerCredentialHandler});var a=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class BasicCredentialHandler{constructor(r,n){this.username=r;this.password=n}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},16877:(r,n,s)=>{s.d(n,{Qq:()=>HttpClient,Hv:()=>g});var a=s(58611);var l=s.t(a,2);var u=s(65692);var d=s.t(u,2);function getProxyUrl(r){const n=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}function checkBypass(r){if(!r.hostname){return false}const n=r.hostname;if(isLoopbackAddress(n)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((n=>n===r||n.endsWith(`.${r}`)||r.startsWith(".")&&n.endsWith(`${r}`)))){return true}}return false}function isLoopbackAddress(r){const n=r.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(r,n){super(r,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var A=s(30329);var p=s(32624);var f=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var g;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(g||(g={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(y={}));var b;(function(r){r["ApplicationJson"]="application/json"})(b||(b={}));function lib_getProxyUrl(r){const n=pm.getProxyUrl(new URL(r));return n?n.href:""}const C=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const w=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const B=["OPTIONS","GET","DELETE","HEAD"];const I=10;const S=5;class HttpClientError extends Error{constructor(r,n){super(r);this.name="HttpClientError";this.statusCode=n;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(r){this.message=r}readBody(){return f(this,void 0,void 0,(function*(){return new Promise((r=>f(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);this.message.on("data",(r=>{n=Buffer.concat([n,r])}));this.message.on("end",(()=>{r(n.toString())}))}))))}))}readBodyBuffer(){return f(this,void 0,void 0,(function*(){return new Promise((r=>f(this,void 0,void 0,(function*(){const n=[];this.message.on("data",(r=>{n.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(n))}))}))))}))}}function isHttps(r){const n=new URL(r);return n.protocol==="https:"}class HttpClient{constructor(r,n,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(r);this.handlers=n||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,n){return f(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,n||{})}))}get(r,n){return f(this,void 0,void 0,(function*(){return this.request("GET",r,null,n||{})}))}del(r,n){return f(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,n||{})}))}post(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("POST",r,n,s||{})}))}patch(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("PATCH",r,n,s||{})}))}put(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("PUT",r,n,s||{})}))}head(r,n){return f(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,n||{})}))}sendStream(r,n,s,a){return f(this,void 0,void 0,(function*(){return this.request(r,n,s,a)}))}getJson(r){return f(this,arguments,void 0,(function*(r,n={}){n[y.Accept]=this._getExistingOrDefaultHeader(n,y.Accept,b.ApplicationJson);const s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)}))}postJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,n,s,a){return f(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(n);let u=this._prepareRequest(r,l,a);const d=this._allowRetries&&B.includes(r)?this._maxRetries+1:1;let A=0;let p;do{p=yield this.requestRaw(u,s);if(p&&p.message&&p.message.statusCode===g.Unauthorized){let r;for(const n of this.handlers){if(n.canHandleAuthentication(p)){r=n;break}}if(r){return r.handleAuthentication(this,u,s)}else{return p}}let n=this._maxRedirects;while(p.message.statusCode&&C.includes(p.message.statusCode)&&this._allowRedirects&&n>0){const d=p.message.headers["location"];if(!d){break}const A=new URL(d);if(l.protocol==="https:"&&l.protocol!==A.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(A.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}u=this._prepareRequest(r,A,a);p=yield this.requestRaw(u,s);n--}if(!p.message.statusCode||!w.includes(p.message.statusCode)){return p}A+=1;if(A{function callbackForResult(r,n){if(r){a(r)}else if(!n){a(new Error("Unknown error"))}else{s(n)}}this.requestRawWithCallback(r,n,callbackForResult)}))}))}requestRawWithCallback(r,n,s){if(typeof n==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(r,n){if(!a){a=true;s(r,n)}}const l=r.httpModule.request(r.options,(r=>{const n=new HttpClientResponse(r);handleResult(undefined,n)}));let u;l.on("socket",(r=>{u=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(n&&typeof n==="string"){l.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",(function(){l.end()}));n.pipe(l)}else{l.end()}}getAgent(r){const n=new URL(r);return this._getAgent(n)}getAgentDispatcher(r){const n=new URL(r);const s=getProxyUrl(n);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,s)}_prepareRequest(r,n,s){const a={};a.parsedUrl=n;const u=a.parsedUrl.protocol==="https:";a.httpModule=u?d:l;const A=u?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):A;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,n,s){let a;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[n];if(r){a=typeof r==="number"?r.toString():r}}const l=r[n];if(l!==undefined){return typeof l==="number"?l.toString():l}if(a!==undefined){return a}return s}_getExistingOrDefaultContentTypeHeader(r,n){let s;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[y.ContentType];if(r){if(typeof r==="number"){s=String(r)}else if(Array.isArray(r)){s=r.join(", ")}else{s=r}}}const a=r[y.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(s!==undefined){return s}return n}_getAgent(r){let n;const s=getProxyUrl(r);const l=s&&s.hostname;if(this._keepAlive&&l){n=this._proxyAgent}if(!l){n=this._agent}if(n){return n}const d=r.protocol==="https:";let p=100;if(this.requestOptions){p=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:p,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const l=s.protocol==="https:";if(d){a=l?A.httpsOverHttps:A.httpsOverHttp}else{a=l?A.httpOverHttps:A.httpOverHttp}n=a(r);this._proxyAgent=n}if(!n){const r={keepAlive:this._keepAlive,maxSockets:p};n=d?new u.Agent(r):new a.Agent(r);this._agent=n}if(d&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(r,n){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new p.ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_getUserAgentWithOrchestrationId(r){const n=r||"actions/http-client";const s=process.env["ACTIONS_ORCHESTRATION_ID"];if(s){const r=s.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${r}`}return n}_performExponentialBackoff(r){return f(this,void 0,void 0,(function*(){r=Math.min(I,r);const n=S*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),n)))}))}_processResponse(r,n){return f(this,void 0,void 0,(function*(){return new Promise(((s,a)=>f(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const u={statusCode:l,result:null,headers:{}};if(l===g.NotFound){s(u)}function dateTimeDeserializer(r,n){if(typeof n==="string"){const r=new Date(n);if(!isNaN(r.valueOf())){return r}}return n}let d;let A;try{A=yield r.readBody();if(A&&A.length>0){if(n&&n.deserializeDates){d=JSON.parse(A,dateTimeDeserializer)}else{d=JSON.parse(A)}u.result=d}u.headers=r.message.headers}catch(r){}if(l>299){let r;if(d&&d.message){r=d.message}else if(A&&A.length>0){r=A}else{r=`Failed request: (${l})`}const n=new HttpClientError(r,l);n.result=u.result;a(n)}else{s(u)}}))))}))}}const lowercaseKeys=r=>Object.keys(r).reduce(((n,s)=>(n[s.toLowerCase()]=r[s],n)),{})},54128:(r,n,s)=>{s.d(n,{G:()=>RequestError});class RequestError extends Error{name;status;request;response;constructor(r,n,s){super(r,{cause:s.cause});this.name="HttpError";this.status=Number.parseInt(n);if(Number.isNaN(this.status)){this.status=0} -/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in s){this.response=s.response}const a=Object.assign({},s.request);if(s.request.headers.authorization){a.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?{s.d(n,{A:()=>mergeStreams});var a=s(78474);var l=s(57075);var u=s(46466);function mergeStreams(r){if(!Array.isArray(r)){throw new TypeError(`Expected an array, got \`${typeof r}\`.`)}for(const n of r){validateStream(n)}const n=r.some((({readableObjectMode:r})=>r));const s=getHighWaterMark(r,n);const a=new MergedStream({objectMode:n,writableHighWaterMark:s,readableHighWaterMark:s});for(const n of r){a.add(n)}return a}const getHighWaterMark=(r,n)=>{if(r.length===0){return(0,l.getDefaultHighWaterMark)(n)}const s=r.filter((({readableObjectMode:r})=>r===n)).map((({readableHighWaterMark:r})=>r));return Math.max(...s)};class MergedStream extends l.PassThrough{#Jr=new Set([]);#$r=new Set([]);#S=new Set([]);#Kr;#Xr=Symbol("unpipe");#Zr=new WeakMap;add(r){validateStream(r);if(this.#Jr.has(r)){return}this.#Jr.add(r);this.#Kr??=onMergedStreamFinished(this,this.#Jr,this.#Xr);const n=endWhenStreamsDone({passThroughStream:this,stream:r,streams:this.#Jr,ended:this.#$r,aborted:this.#S,onFinished:this.#Kr,unpipeEvent:this.#Xr});this.#Zr.set(r,n);r.pipe(this,{end:false})}async remove(r){validateStream(r);if(!this.#Jr.has(r)){return false}const n=this.#Zr.get(r);if(n===undefined){return false}this.#Zr.delete(r);r.unpipe(this);await n;return true}}const onMergedStreamFinished=async(r,n,s)=>{updateMaxListeners(r,d);const a=new AbortController;try{await Promise.race([onMergedStreamEnd(r,a),onInputStreamsUnpipe(r,n,s,a)])}finally{a.abort();updateMaxListeners(r,-d)}};const onMergedStreamEnd=async(r,{signal:n})=>{try{await(0,u.finished)(r,{signal:n,cleanup:true})}catch(n){errorOrAbortStream(r,n);throw n}};const onInputStreamsUnpipe=async(r,n,s,{signal:l})=>{for await(const[u]of(0,a.on)(r,"unpipe",{signal:l})){if(n.has(u)){u.emit(s)}}};const validateStream=r=>{if(typeof r?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof r}\`.`)}};const endWhenStreamsDone=async({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,onFinished:u,unpipeEvent:d})=>{updateMaxListeners(r,A);const p=new AbortController;try{await Promise.race([afterMergedStreamFinished(u,n,p),onInputStreamEnd({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,controller:p}),onInputStreamUnpipe({stream:n,streams:s,ended:a,aborted:l,unpipeEvent:d,controller:p})])}finally{p.abort();updateMaxListeners(r,-A)}if(s.size>0&&s.size===a.size+l.size){if(a.size===0&&l.size>0){abortStream(r)}else{endStream(r)}}};const afterMergedStreamFinished=async(r,n,{signal:s})=>{try{await r;if(!s.aborted){abortStream(n)}}catch(r){if(!s.aborted){errorOrAbortStream(n,r)}}};const onInputStreamEnd=async({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,controller:{signal:d}})=>{try{await(0,u.finished)(n,{signal:d,cleanup:true,readable:true,writable:false});if(s.has(n)){a.add(n)}}catch(a){if(d.aborted||!s.has(n)){return}if(isAbortError(a)){l.add(n)}else{errorStream(r,a)}}};const onInputStreamUnpipe=async({stream:r,streams:n,ended:s,aborted:l,unpipeEvent:u,controller:{signal:d}})=>{await(0,a.once)(r,u,{signal:d});if(!r.readable){return(0,a.once)(d,"abort",{signal:d})}n.delete(r);s.delete(r);l.delete(r)};const endStream=r=>{if(r.writable){r.end()}};const errorOrAbortStream=(r,n)=>{if(isAbortError(n)){abortStream(r)}else{errorStream(r,n)}};const isAbortError=r=>r?.code==="ERR_STREAM_PREMATURE_CLOSE";const abortStream=r=>{if(r.readable||r.writable){r.destroy()}};const errorStream=(r,n)=>{if(!r.destroyed){r.once("error",noop);r.destroy(n)}};const noop=()=>{};const updateMaxListeners=(r,n)=>{const s=r.getMaxListeners();if(s!==0&&s!==Number.POSITIVE_INFINITY){r.setMaxListeners(s+n)}};const d=2;const A=1},56992:(r,n,s)=>{s.d(n,{Hz:()=>R});var a=s(1708);var l=s(73024);var u=s(76760);var d=s(57075);var A=s(85956);var p=s(80197);var f=s(57975);var g=s(31421);var y=s(73136);const b=(0,f.promisify)(g.execFile);function toPath(r){return r instanceof URL?(0,y.fileURLToPath)(r):r}function rootDirectory(r){return path.parse(toPath(r)).root}function traversePathUp(r){return{*[Symbol.iterator](){let n=path.resolve(toPath(r));let s;while(s!==n){yield n;s=n;n=path.resolve(n,"..")}}}}const C=null&&10*1024*1024;async function execFile(r,n,s={}){return b(r,n,{maxBuffer:C,...s})}function execFileSync(r,n=[],s={}){return execFileSyncOriginal(r,n,{maxBuffer:C,encoding:"utf8",stdio:"pipe",...s})}var w=s(51455);var B=s(94877);function isPathInside(r,n){const s=u.relative(n,r);return Boolean(s&&s!==".."&&!s.startsWith(`..${u.sep}`)&&s!==u.resolve(r))}function slash(r){const n=r.startsWith("\\\\?\\");if(n){return r}return r.replace(/\\/g,"/")}const isNegativePattern=r=>r[0]==="!";const normalizeAbsolutePatternToRelative=r=>{if(!r.startsWith("/")){return r}const n=r.slice(1);const s=n.indexOf("/");const a=s>0?n.slice(0,s):n;if(s>0&&!p.isDynamicPattern(a)){return r}return n};const absolutePrefixesMatch=(r,n)=>n===r;const getStaticAbsolutePathPrefix=r=>{if(!u.isAbsolute(r)){return undefined}const n=[];for(const s of r.split("/")){if(!s){continue}if(p.isDynamicPattern(s)){break}n.push(s)}return n.length===0?undefined:`/${n.join("/")}`};const normalizeNegativePattern=(r,n=[],s=false)=>{if(!r.startsWith("/")){return r}const a=normalizeAbsolutePatternToRelative(r);if(a!==r){return a}if(s){return r.slice(1)}const l=getStaticAbsolutePathPrefix(r);const u=l!==undefined&&n.some((r=>absolutePrefixesMatch(r,l)));return u?r:r.slice(1)};const bindFsMethod=(r,n)=>{const s=r?.[n];return typeof s==="function"?s.bind(r):undefined};const promisifyFsMethod=(r,n)=>{const s=r?.[n];if(typeof s!=="function"){return undefined}return(0,f.promisify)(s.bind(r))};const normalizeDirectoryPatternForFastGlob=r=>{if(!r.endsWith("/")){return r}const n=r.replace(/\/+$/u,"");if(!n){return"/**"}if(n==="**"){return"**/**"}const s=n.startsWith("/");const a=s?n.slice(1):n;const l=a.includes("/");const u=!s&&!l&&!n.startsWith("**/");const d=u?"**/":"";return`${d}${n}/**`};const getParentDirectoryPrefix=r=>{const n=isNegativePattern(r)?r.slice(1):r;const s=n.match(/^(\.\.\/)+/);return s?s[0]:""};const adjustIgnorePatternsForParentDirectories=(r,n)=>{if(r.length===0||n.length===0){return n}const s=r.map((r=>getParentDirectoryPrefix(r)));const a=s[0];if(!a){return n}const l=s.every((r=>r===a));if(!l){return n}return n.map((r=>{if(r.startsWith("**/")&&!r.startsWith("../")){return a+r}return r}))};const getAsyncStatMethod=r=>bindFsMethod(r?.promises,"stat")??bindFsMethod(l.promises,"stat");const getStatSyncMethod=r=>{if(r){return bindFsMethod(r,"statSync")}return bindFsMethod(l,"statSync")};const pathHasGitDirectory=r=>Boolean(r?.isDirectory?.()||r?.isFile?.());const buildPathChain=(r,n)=>{const s=[];let a=r;s.push(a);while(a!==n){const r=u.dirname(a);if(r===a){break}a=r;s.push(a)}return s};const findGitRootInChain=async(r,n)=>{for(const s of r){const r=u.join(s,".git");try{const a=await n(r);if(pathHasGitDirectory(a)){return s}}catch{}}return undefined};const findGitRootSyncUncached=(r,n)=>{const s=getStatSyncMethod(n);if(!s){return undefined}const a=u.resolve(r);const{root:l}=u.parse(a);const d=buildPathChain(a,l);for(const r of d){const n=u.join(r,".git");try{const a=s(n);if(pathHasGitDirectory(a)){return r}}catch{}}return undefined};const findGitRootSync=(r,n)=>{if(typeof r!=="string"){throw new TypeError("cwd must be a string")}return findGitRootSyncUncached(r,n)};const findGitRootAsyncUncached=async(r,n)=>{const s=getAsyncStatMethod(n);if(!s){return findGitRootSync(r,n)}const a=u.resolve(r);const{root:l}=u.parse(a);const d=buildPathChain(a,l);return findGitRootInChain(d,s)};const findGitRoot=async(r,n)=>{if(typeof r!=="string"){throw new TypeError("cwd must be a string")}return findGitRootAsyncUncached(r,n)};const isWithinGitRoot=(r,n)=>{const s=u.resolve(r);const a=u.resolve(n);return a===s||isPathInside(a,s)};const getParentGitignorePaths=(r,n)=>{if(r&&typeof r!=="string"){throw new TypeError("gitRoot must be a string or undefined")}if(typeof n!=="string"){throw new TypeError("cwd must be a string")}if(!r){return[]}if(!isWithinGitRoot(r,n)){return[]}const s=buildPathChain(u.resolve(n),u.resolve(r));return[...s].reverse().map((r=>u.join(r,".gitignore")))};const convertPatternsForFastGlob=(r,n,s)=>{if(n){return[]}const a=[];let l=false;for(const n of r){if(isNegativePattern(n)){l=true;break}a.push(s(n))}return l?[]:a};const I=["**/node_modules","**/flow-typed","**/coverage","**/.git"];const S={absolute:true,dot:true};const Q="**/.gitignore";const getReadFileMethod=r=>bindFsMethod(r?.promises,"readFile")??bindFsMethod(w,"readFile")??promisifyFsMethod(r,"readFile");const getReadFileSyncMethod=r=>bindFsMethod(r,"readFileSync")??bindFsMethod(l,"readFileSync");const shouldSkipIgnoreFileError=(r,n)=>{if(!r){return Boolean(n)}if(r.code==="ENOENT"||r.code==="ENOTDIR"){return true}return Boolean(n)};const createIgnoreFileReadError=(r,n)=>{if(n instanceof Error){n.message=`Failed to read ignore file at ${r}: ${n.message}`;return n}return new Error(`Failed to read ignore file at ${r}: ${String(n)}`)};const processIgnoreFileCore=(r,n,s)=>{try{const s=n(r,"utf8");return{filePath:r,content:s}}catch(n){if(shouldSkipIgnoreFileError(n,s)){return undefined}throw createIgnoreFileReadError(r,n)}};const readIgnoreFilesSafely=async(r,n,s)=>{const a=await Promise.all(r.map((async r=>{try{const s=await n(r,"utf8");return{filePath:r,content:s}}catch(n){if(shouldSkipIgnoreFileError(n,s)){return undefined}throw createIgnoreFileReadError(r,n)}})));return a.filter(Boolean)};const readIgnoreFilesSafelySync=(r,n,s)=>r.map((r=>processIgnoreFileCore(r,n,s))).filter(Boolean);const dedupePaths=r=>{const n=new Set;return r.filter((r=>{if(n.has(r)){return false}n.add(r);return true}))};const globIgnoreFiles=(r,n,s)=>r(n,{...s,...S});const getParentIgnorePaths=(r,n)=>r?getParentGitignorePaths(r,n.cwd):[];const combineIgnoreFilePaths=(r,n,s)=>dedupePaths([...getParentIgnorePaths(r,n),...s]);const buildIgnoreResult=(r,n,s)=>{const a=s||n.cwd;const l=getPatternsFromIgnoreFiles(r,a);return{patterns:l,predicate:createIgnorePredicate(l,n.cwd,a),usingGitRoot:Boolean(s&&s!==n.cwd)}};const applyBaseToPattern=(r,n)=>{if(!n){return r}const s=isNegativePattern(r);const a=s?r.slice(1):r;const l=a.indexOf("/");const d=l!==-1&&l!==a.length-1;let A;if(!d){A=u.posix.join(n,"**",a)}else if(a.startsWith("/")){A=u.posix.join(n,a.slice(1))}else{A=u.posix.join(n,a)}return s?"!"+A:A};const parseIgnoreFile=(r,n)=>{const s=slash(u.relative(n,u.dirname(r.filePath)));return r.content.split(/\r?\n/).filter((r=>r&&!r.startsWith("#"))).map((r=>applyBaseToPattern(r,s)))};const toRelativePath=(r,n)=>{if(u.isAbsolute(r)){const s=u.relative(n,r);if(s&&!isPathInside(r,n)){return undefined}return s}if(r.startsWith("./")){return r.slice(2)}if(r.startsWith("../")){return undefined}return r};const createIgnorePredicate=(r,n,s)=>{const a=B().add(r);const l=u.normalize(u.resolve(n));const d=u.normalize(u.resolve(s));return r=>{r=toPath(r);const n=u.normalize(u.resolve(r));if(n===l){return false}const s=toRelativePath(r,d);if(s===undefined){return false}return s?a.ignores(slash(s)):false}};const normalizeOptions=(r={})=>{const n=r.ignore?Array.isArray(r.ignore)?r.ignore:[r.ignore]:[];const s=toPath(r.cwd)??a.cwd();const l=typeof r.deep==="number"?Math.max(0,r.deep)+1:Number.POSITIVE_INFINITY;return{cwd:s,suppressErrors:r.suppressErrors??false,deep:l,ignore:[...n,...I],followSymbolicLinks:r.followSymbolicLinks??true,concurrency:r.concurrency,throwErrorOnBrokenSymbolicLink:r.throwErrorOnBrokenSymbolicLink??false,fs:r.fs}};const collectIgnoreFileArtifactsAsync=async(r,n,s)=>{const a=normalizeOptions(n);const l=await globIgnoreFiles(p,r,a);const u=s?await findGitRoot(a.cwd,a.fs):undefined;const d=combineIgnoreFilePaths(u,a,l);const A=getReadFileMethod(a.fs);const f=await readIgnoreFilesSafely(d,A,a.suppressErrors);return{files:f,normalizedOptions:a,gitRoot:u}};const collectIgnoreFileArtifactsSync=(r,n,s)=>{const a=normalizeOptions(n);const l=globIgnoreFiles(p.sync,r,a);const u=s?findGitRootSync(a.cwd,a.fs):undefined;const d=combineIgnoreFilePaths(u,a,l);const A=getReadFileSyncMethod(a.fs);const f=readIgnoreFilesSafelySync(d,A,a.suppressErrors);return{files:f,normalizedOptions:a,gitRoot:u}};const isIgnoredByIgnoreFiles=async(r,n)=>{const{files:s,normalizedOptions:a,gitRoot:l}=await collectIgnoreFileArtifactsAsync(r,n,false);return buildIgnoreResult(s,a,l).predicate};const isIgnoredByIgnoreFilesSync=(r,n)=>{const{files:s,normalizedOptions:a,gitRoot:l}=collectIgnoreFileArtifactsSync(r,n,false);return buildIgnoreResult(s,a,l).predicate};const getPatternsFromIgnoreFiles=(r,n)=>r.flatMap((r=>parseIgnoreFile(r,n)));const getIgnorePatternsAndPredicate=async(r,n,s=false)=>{const{files:a,normalizedOptions:l,gitRoot:u}=await collectIgnoreFileArtifactsAsync(r,n,s);return buildIgnoreResult(a,l,u)};const getIgnorePatternsAndPredicateSync=(r,n,s=false)=>{const{files:a,normalizedOptions:l,gitRoot:u}=collectIgnoreFileArtifactsSync(r,n,s);return buildIgnoreResult(a,l,u)};const isGitIgnored=r=>isIgnoredByIgnoreFiles(Q,r);const isGitIgnoredSync=r=>isIgnoredByIgnoreFilesSync(Q,r);const assertPatternsInput=r=>{if(r.some((r=>typeof r!=="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const getStatMethod=r=>bindFsMethod(r?.promises,"stat")??bindFsMethod(l.promises,"stat")??promisifyFsMethod(r,"stat");const globby_getStatSyncMethod=r=>bindFsMethod(r,"statSync")??bindFsMethod(l,"statSync");const isDirectory=async(r,n)=>{try{const s=await getStatMethod(n)(r);return s.isDirectory()}catch{return false}};const isDirectorySync=(r,n)=>{try{const s=globby_getStatSyncMethod(n)(r);return s.isDirectory()}catch{return false}};const normalizePathForDirectoryGlob=(r,n)=>{const s=isNegativePattern(r)?r.slice(1):r;return u.isAbsolute(s)?s:u.join(n,s)};const shouldExpandGlobstarDirectory=r=>{const n=r?.match(/\*\*\/([^/]+)$/);if(!n){return false}const s=n[1];const a=/[*?[\]{}]/.test(s);const l=u.extname(s)&&!s.startsWith(".");return!a&&!l};const getDirectoryGlob=({directoryPath:r,files:n,extensions:s})=>{const a=s?.length>0?`.${s.length>1?`{${s.join(",")}}`:s[0]}`:"";return n?n.map((n=>u.posix.join(r,`**/${u.extname(n)?n:`${n}${a}`}`))):[u.posix.join(r,`**${a?`/*${a}`:""}`)]};const directoryToGlob=async(r,{cwd:n=a.cwd(),files:s,extensions:l,fs:u}={})=>{const d=await Promise.all(r.map((async r=>{const a=isNegativePattern(r)?r.slice(1):r;if(shouldExpandGlobstarDirectory(a)){return getDirectoryGlob({directoryPath:r,files:s,extensions:l})}const d=normalizePathForDirectoryGlob(r,n);return await isDirectory(d,u)?getDirectoryGlob({directoryPath:r,files:s,extensions:l}):r})));return d.flat()};const directoryToGlobSync=(r,{cwd:n=a.cwd(),files:s,extensions:l,fs:u}={})=>r.flatMap((r=>{const a=isNegativePattern(r)?r.slice(1):r;if(shouldExpandGlobstarDirectory(a)){return getDirectoryGlob({directoryPath:r,files:s,extensions:l})}const d=normalizePathForDirectoryGlob(r,n);return isDirectorySync(d,u)?getDirectoryGlob({directoryPath:r,files:s,extensions:l}):r}));const toPatternsArray=r=>{r=[...new Set([r].flat())];assertPatternsInput(r);return r};const checkCwdOption=(r,n=l)=>{if(!r||!n.statSync){return}let s;try{s=n.statSync(r)}catch{return}if(!s.isDirectory()){throw new Error(`The \`cwd\` option must be a path to a directory, got: ${r}`)}};const globby_normalizeOptions=(r={})=>{const n=r.ignore?Array.isArray(r.ignore)?r.ignore:[r.ignore]:[];r={...r,ignore:n,expandDirectories:r.expandDirectories??true,cwd:toPath(r.cwd)};checkCwdOption(r.cwd,r.fs);return r};const normalizeArguments=r=>async(n,s)=>r(toPatternsArray(n),globby_normalizeOptions(s));const normalizeArgumentsSync=r=>(n,s)=>r(toPatternsArray(n),globby_normalizeOptions(s));const getIgnoreFilesPatterns=r=>{const{ignoreFiles:n,gitignore:s}=r;const a=n?toPatternsArray(n):[];if(s){a.push(Q)}return a};const applyIgnoreFilesAndGetFilter=async r=>{const n=getIgnoreFilesPatterns(r);if(n.length===0){return{options:r,filter:createFilterFunction(false,r.cwd)}}const s=r.gitignore===true;const{patterns:a,predicate:l,usingGitRoot:u}=await getIgnorePatternsAndPredicate(n,r,s);const d=convertPatternsForFastGlob(a,u,normalizeDirectoryPatternForFastGlob);const A={...r,ignore:[...r.ignore,...d]};return{options:A,filter:createFilterFunction(l,r.cwd)}};const applyIgnoreFilesAndGetFilterSync=r=>{const n=getIgnoreFilesPatterns(r);if(n.length===0){return{options:r,filter:createFilterFunction(false,r.cwd)}}const s=r.gitignore===true;const{patterns:a,predicate:l,usingGitRoot:u}=getIgnorePatternsAndPredicateSync(n,r,s);const d=convertPatternsForFastGlob(a,u,normalizeDirectoryPatternForFastGlob);const A={...r,ignore:[...r.ignore,...d]};return{options:A,filter:createFilterFunction(l,r.cwd)}};const createFilterFunction=(r,n)=>{const s=new Set;const l=n||a.cwd();const d=new Map;return n=>{const a=u.normalize(n.path??n);if(s.has(a)){return false}if(r){let n=d.get(a);if(n===undefined){n=u.isAbsolute(a)?a:u.resolve(l,a);d.set(a,n);if(d.size>1e4){d.clear()}}if(r(n)){return false}}s.add(a);return true}};const unionFastGlobResults=(r,n)=>r.flat().filter((r=>n(r)));const convertNegativePatterns=(r,n)=>{if(r.length>0&&r.every((r=>isNegativePattern(r)))){if(n.expandNegationOnlyPatterns===false){return[]}r=["**/*",...r]}const s=[];let a=false;const l=[];for(const n of r){if(isNegativePattern(n)){l.push(`!${normalizeNegativePattern(n.slice(1),s,a)}`);continue}l.push(n);const r=getStaticAbsolutePathPrefix(n);if(r===undefined){a=true;continue}s.push(r)}r=l;const u=[];while(r.length>0){const s=r.findIndex((r=>isNegativePattern(r)));if(s===-1){u.push({patterns:r,options:n});break}const a=r[s].slice(1);for(const r of u){r.options.ignore.push(a)}if(s!==0){u.push({patterns:r.slice(0,s),options:{...n,ignore:[...n.ignore,a]}})}r=r.slice(s+1)}return u};const applyParentDirectoryIgnoreAdjustments=r=>r.map((r=>({patterns:r.patterns,options:{...r.options,ignore:adjustIgnorePatternsForParentDirectories(r.patterns,r.options.ignore)}})));const normalizeExpandDirectoriesOption=(r,n)=>({...n?{cwd:n}:{},...Array.isArray(r)?{files:r}:r});const generateTasks=async(r,n)=>{const s=convertNegativePatterns(r,n);const{cwd:a,expandDirectories:l,fs:u}=n;if(!l){return applyParentDirectoryIgnoreAdjustments(s)}const d={...normalizeExpandDirectoriesOption(l,a),fs:u};return Promise.all(s.map((async r=>{let{patterns:n,options:s}=r;[n,s.ignore]=await Promise.all([directoryToGlob(n,d),directoryToGlob(s.ignore,{cwd:a,fs:u})]);s.ignore=adjustIgnorePatternsForParentDirectories(n,s.ignore);return{patterns:n,options:s}})))};const generateTasksSync=(r,n)=>{const s=convertNegativePatterns(r,n);const{cwd:a,expandDirectories:l,fs:u}=n;if(!l){return applyParentDirectoryIgnoreAdjustments(s)}const d={...normalizeExpandDirectoriesOption(l,a),fs:u};return s.map((r=>{let{patterns:n,options:s}=r;n=directoryToGlobSync(n,d);s.ignore=directoryToGlobSync(s.ignore,{cwd:a,fs:u});s.ignore=adjustIgnorePatternsForParentDirectories(n,s.ignore);return{patterns:n,options:s}}))};const v=normalizeArguments((async(r,n)=>{const{options:s,filter:a}=await applyIgnoreFilesAndGetFilter(n);const l=await generateTasks(r,s);const u=await Promise.all(l.map((r=>p(r.patterns,r.options))));return unionFastGlobResults(u,a)}));const R=normalizeArgumentsSync(((r,n)=>{const{options:s,filter:a}=applyIgnoreFilesAndGetFilterSync(n);const l=generateTasksSync(r,s);const u=l.map((r=>p.sync(r.patterns,r.options)));return unionFastGlobResults(u,a)}));const D=normalizeArgumentsSync(((r,n)=>{const{options:s,filter:a}=applyIgnoreFilesAndGetFilterSync(n);const l=generateTasksSync(r,s);const u=l.map((r=>p.stream(r.patterns,r.options)));if(u.length===0){return d.Readable.from([])}const f=(0,A.A)(u).filter((r=>a(r)));return f}));const N=normalizeArgumentsSync(((r,n)=>r.some((r=>p.isDynamicPattern(r,n)))));const T=normalizeArguments(generateTasks);const x=normalizeArgumentsSync(generateTasksSync);const{convertPathToPattern:k}=p},99602:r=>{r.exports=JSON.parse('{"name":"@actions/artifact","version":"6.2.0","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","type":"module","main":"lib/artifact.js","types":"lib/artifact.d.ts","exports":{".":{"types":"./lib/artifact.d.ts","import":"./lib/artifact.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/github":"^9.0.0","@actions/http-client":"^4.0.0","@azure/storage-blob":"^12.30.0","@octokit/core":"^7.0.6","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-retry":"^8.0.0","@octokit/request":"^10.0.7","@octokit/request-error":"^7.1.0","@protobuf-ts/plugin":"^2.2.3-alpha.1","@protobuf-ts/runtime":"^2.9.4","archiver":"^7.0.1","jwt-decode":"^4.0.0","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^7.0.0","@types/unzip-stream":"^0.3.4","typedoc":"^0.28.16","typedoc-plugin-markdown":"^4.9.0","typescript":"^5.9.3"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(r){var n=__webpack_module_cache__[r];if(n!==undefined){return n.exports}var s=__webpack_module_cache__[r]={id:r,loaded:false,exports:{}};var a=true;try{__webpack_modules__[r].call(s.exports,s,s.exports,__nccwpck_require__);a=false}finally{if(a)delete __webpack_module_cache__[r]}s.loaded=true;return s.exports}(()=>{var r=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var n=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var s=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=r=>{if(r&&r.d<1){r.d=1;r.forEach((r=>r.r--));r.forEach((r=>r.r--?r.r++:r()))}};var wrapDeps=a=>a.map((a=>{if(a!==null&&typeof a==="object"){if(a[r])return a;if(a.then){var l=[];l.d=0;a.then((r=>{u[n]=r;resolveQueue(l)}),(r=>{u[s]=r;resolveQueue(l)}));var u={};u[r]=r=>r(l);return u}}var d={};d[r]=r=>{};d[n]=a;return d}));__nccwpck_require__.a=(a,l,u)=>{var d;u&&((d=[]).d=-1);var A=new Set;var p=a.exports;var f;var g;var y;var b=new Promise(((r,n)=>{y=n;g=r}));b[n]=p;b[r]=r=>(d&&r(d),A.forEach(r),b["catch"]((r=>{})));a.exports=b;l((a=>{f=wrapDeps(a);var l;var getResult=()=>f.map((r=>{if(r[s])throw r[s];return r[n]}));var u=new Promise((n=>{l=()=>n(getResult);l.r=0;var fnQueue=r=>r!==d&&!A.has(r)&&(A.add(r),r&&!r.d&&(l.r++,r.push(l)));f.map((n=>n[r](fnQueue)))}));return l.r?u:getResult()}),(r=>(r?y(b[s]=r):g(p),resolveQueue(d))));d&&d.d<0&&(d.d=0)}})();(()=>{__nccwpck_require__.n=r=>{var n=r&&r.__esModule?()=>r["default"]:()=>r;__nccwpck_require__.d(n,{a:n});return n}})();(()=>{var r=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;var n;__nccwpck_require__.t=function(s,a){if(a&1)s=this(s);if(a&8)return s;if(typeof s==="object"&&s){if(a&4&&s.__esModule)return s;if(a&16&&typeof s.then==="function")return s}var l=Object.create(null);__nccwpck_require__.r(l);var u={};n=n||[null,r({}),r([]),r(r)];for(var d=a&2&&s;typeof d=="object"&&!~n.indexOf(d);d=r(d)){Object.getOwnPropertyNames(d).forEach((r=>u[r]=()=>s[r]))}u["default"]=()=>s;__nccwpck_require__.d(l,u);return l}})();(()=>{__nccwpck_require__.d=(r,n)=>{for(var s in n){if(__nccwpck_require__.o(n,s)&&!__nccwpck_require__.o(r,s)){Object.defineProperty(r,s,{enumerable:true,get:n[s]})}}}})();(()=>{__nccwpck_require__.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n)})();(()=>{__nccwpck_require__.r=r=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(r,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=r=>{r.paths=[];if(!r.children)r.children=[];return r}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var __webpack_exports__=__nccwpck_require__(46866);__webpack_exports__=await __webpack_exports__; \ No newline at end of file +/* v8 ignore else -- @preserve */var M="0.0.0-development";function _buildMessageForResponseErrors(r){return`Request failed due to following response errors:\n`+r.errors.map((r=>` - ${r.message}`)).join("\n")}var U=class extends Error{constructor(r,n,s){super(_buildMessageForResponseErrors(s));this.request=r;this.headers=n;this.response=s;this.errors=s.errors;this.data=s.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var H=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var G=["query","method","url"];var z=/\/api\/v3\/?$/;function graphql(r,n,s){if(s){if(typeof n==="string"&&"query"in s){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const r in s){if(!G.includes(r))continue;return Promise.reject(new Error(`[@octokit/graphql] "${r}" cannot be used as variable name`))}}const a=typeof n==="string"?Object.assign({query:n},s):n;const l=Object.keys(a).reduce(((r,n)=>{if(H.includes(n)){r[n]=a[n];return r}if(!r.variables){r.variables={}}r.variables[n]=a[n];return r}),{});const u=a.baseUrl||r.endpoint.DEFAULTS.baseUrl;if(z.test(u)){l.url=u.replace(z,"/api/graphql")}return r(l).then((r=>{if(r.data.errors){const n={};for(const s of Object.keys(r.headers)){n[s]=r.headers[s]}throw new U(l,n,r.data)}return r.data.data}))}function graphql_dist_bundle_withDefaults(r,n){const s=r.defaults(n);const newApi=(r,n)=>graphql(s,r,n);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,s),endpoint:s.endpoint})}var q=graphql_dist_bundle_withDefaults(O,{headers:{"user-agent":`octokit-graphql.js/${M} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(r){return graphql_dist_bundle_withDefaults(r,{method:"POST",url:"/graphql"})}var V="(?:[a-zA-Z0-9_-]+)";var j="\\.";var W=new RegExp(`^${V}${j}${V}${j}${V}$`);var Y=W.test.bind(W);async function auth(r){const n=Y(r);const s=r.startsWith("v1.")||r.startsWith("ghs_");const a=r.startsWith("ghu_");const l=n?"app":s?"installation":a?"user-to-server":"oauth";return{type:"token",token:r,tokenType:l}}function withAuthorizationPrefix(r){if(r.split(/\./).length===3){return`bearer ${r}`}return`token ${r}`}async function hook(r,n,s,a){const l=n.endpoint.merge(s,a);l.headers.authorization=withAuthorizationPrefix(r);return n(l)}var J=function createTokenAuth2(r){if(!r){throw new Error("[@octokit/auth-token] No token passed to createTokenAuth")}if(typeof r!=="string"){throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string")}r=r.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,r),{hook:hook.bind(null,r)})};const $="7.0.6";const dist_src_noop=()=>{};const K=console.warn.bind(console);const X=console.error.bind(console);function createLogger(r={}){if(typeof r.debug!=="function"){r.debug=dist_src_noop}if(typeof r.info!=="function"){r.info=dist_src_noop}if(typeof r.warn!=="function"){r.warn=K}if(typeof r.error!=="function"){r.error=X}return r}const Z=`octokit-core.js/${$} ${getUserAgent()}`;class Octokit{static VERSION=$;static defaults(r){const n=class extends(this){constructor(...n){const s=n[0]||{};if(typeof r==="function"){super(r(s));return}super(Object.assign({},r,s,s.userAgent&&r.userAgent?{userAgent:`${s.userAgent} ${r.userAgent}`}:null))}};return n}static plugins=[];static plugin(...r){const n=this.plugins;const s=class extends(this){static plugins=n.concat(r.filter((r=>!n.includes(r))))};return s}constructor(r={}){const n=new f.Collection;const s={baseUrl:O.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:n.bind(null,"request")}),mediaType:{previews:[],format:""}};s.headers["user-agent"]=r.userAgent?`${r.userAgent} ${Z}`:Z;if(r.baseUrl){s.baseUrl=r.baseUrl}if(r.previews){s.mediaType.previews=r.previews}if(r.timeZone){s.headers["time-zone"]=r.timeZone}this.request=O.defaults(s);this.graphql=withCustomRequest(this.request).defaults(s);this.log=createLogger(r.log);this.hook=n;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const s=J(r.auth);n.wrap("request",s.hook);this.auth=s}}else{const{authStrategy:s,...a}=r;const l=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},r.auth));n.wrap("request",l.hook);this.auth=l}const a=this.constructor;for(let n=0;n({async next(){if(!A)return{done:true};try{const r=await l({method:u,url:A,headers:d});const n=normalizePaginatedListResponse(r);A=((n.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];if(!A&&"total_commits"in n.data){const r=new URL(n.url);const s=r.searchParams;const a=parseInt(s.get("page")||"1",10);const l=parseInt(s.get("per_page")||"250",10);if(a*l{if(l.done){return n}let u=false;function done(){u=true}n=n.concat(a?a(l.value,done):l.value.data);if(u){return n}return gather(r,n,s,a)}))}var oe=Object.assign(paginate,{iterator:iterator});var ae=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/code-security/configurations","GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/teams","GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships","GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /organizations/{org}/dependabot/repository-access","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/hosted-runners","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/attestations/repositories","GET /orgs/{org}/attestations/{subject_digest}","GET /orgs/{org}/blocks","GET /orgs/{org}/campaigns","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/code-security/configurations","GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/metrics","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}","GET /orgs/{org}/insights/api/subject-stats","GET /orgs/{org}/insights/api/user-stats/{user_id}","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/private-registries","GET /orgs/{org}/projects","GET /orgs/{org}/projectsV2","GET /orgs/{org}/projectsV2/{project_number}/fields","GET /orgs/{org}/projectsV2/{project_number}/items","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/rulesets/{ruleset_id}/history","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/settings/immutable-releases/repositories","GET /orgs/{org}/settings/network-configurations","GET /orgs/{org}/team/{team_slug}/copilot/metrics","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/{project_id}/collaborators","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/attestations/{subject_digest}","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/compare/{basehead}","GET /repos/{owner}/{repo}/compare/{base}...{head}","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/attestations/{subject_digest}","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/projectsV2","GET /users/{username}/projectsV2/{project_number}/fields","GET /users/{username}/projectsV2/{project_number}/items","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return ae.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=ie;const le=new a.o;const ce=getApiBaseUrl();const ue={baseUrl:ce,request:{agent:getProxyAgent(ce),fetch:getProxyFetch(ce)}};const de=Octokit.plugin(restEndpointMethods,paginateRest).defaults(ue);function getOctokitOptions(r,n){const s=Object.assign({},n||{});const a=getAuthString(r,s);if(a){s.auth=a}return s}},92145:(r,n,s)=>{s.d(n,{tZ:()=>BearerCredentialHandler});var a=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};class BasicCredentialHandler{constructor(r,n){this.username=r;this.password=n}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}},44942:(r,n,s)=>{s.d(n,{Qq:()=>HttpClient,Hv:()=>g});var a=s(58611);var l=s.t(a,2);var u=s(65692);var d=s.t(u,2);function getProxyUrl(r){const n=r.protocol==="https:";if(checkBypass(r)){return undefined}const s=(()=>{if(n){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(s){try{return new DecodedURL(s)}catch(r){if(!s.startsWith("http://")&&!s.startsWith("https://"))return new DecodedURL(`http://${s}`)}}else{return undefined}}function checkBypass(r){if(!r.hostname){return false}const n=r.hostname;if(isLoopbackAddress(n)){return true}const s=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!s){return false}let a;if(r.port){a=Number(r.port)}else if(r.protocol==="http:"){a=80}else if(r.protocol==="https:"){a=443}const l=[r.hostname.toUpperCase()];if(typeof a==="number"){l.push(`${l[0]}:${a}`)}for(const r of s.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||l.some((n=>n===r||n.endsWith(`.${r}`)||r.startsWith(".")&&n.endsWith(`${r}`)))){return true}}return false}function isLoopbackAddress(r){const n=r.toLowerCase();return n==="localhost"||n.startsWith("127.")||n.startsWith("[::1]")||n.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(r,n){super(r,n);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var A=s(20770);var p=s(46752);var f=undefined&&undefined.__awaiter||function(r,n,s,a){function adopt(r){return r instanceof s?r:new s((function(n){n(r)}))}return new(s||(s=Promise))((function(s,l){function fulfilled(r){try{step(a.next(r))}catch(r){l(r)}}function rejected(r){try{step(a["throw"](r))}catch(r){l(r)}}function step(r){r.done?s(r.value):adopt(r.value).then(fulfilled,rejected)}step((a=a.apply(r,n||[])).next())}))};var g;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(g||(g={}));var y;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(y||(y={}));var b;(function(r){r["ApplicationJson"]="application/json"})(b||(b={}));function lib_getProxyUrl(r){const n=pm.getProxyUrl(new URL(r));return n?n.href:""}const C=[g.MovedPermanently,g.ResourceMoved,g.SeeOther,g.TemporaryRedirect,g.PermanentRedirect];const w=[g.BadGateway,g.ServiceUnavailable,g.GatewayTimeout];const B=["OPTIONS","GET","DELETE","HEAD"];const I=10;const S=5;class HttpClientError extends Error{constructor(r,n){super(r);this.name="HttpClientError";this.statusCode=n;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(r){this.message=r}readBody(){return f(this,void 0,void 0,(function*(){return new Promise((r=>f(this,void 0,void 0,(function*(){let n=Buffer.alloc(0);this.message.on("data",(r=>{n=Buffer.concat([n,r])}));this.message.on("end",(()=>{r(n.toString())}))}))))}))}readBodyBuffer(){return f(this,void 0,void 0,(function*(){return new Promise((r=>f(this,void 0,void 0,(function*(){const n=[];this.message.on("data",(r=>{n.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(n))}))}))))}))}}function isHttps(r){const n=new URL(r);return n.protocol==="https:"}class HttpClient{constructor(r,n,s){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(r);this.handlers=n||[];this.requestOptions=s;if(s){if(s.ignoreSslError!=null){this._ignoreSslError=s.ignoreSslError}this._socketTimeout=s.socketTimeout;if(s.allowRedirects!=null){this._allowRedirects=s.allowRedirects}if(s.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=s.allowRedirectDowngrade}if(s.maxRedirects!=null){this._maxRedirects=Math.max(s.maxRedirects,0)}if(s.keepAlive!=null){this._keepAlive=s.keepAlive}if(s.allowRetries!=null){this._allowRetries=s.allowRetries}if(s.maxRetries!=null){this._maxRetries=s.maxRetries}}}options(r,n){return f(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,n||{})}))}get(r,n){return f(this,void 0,void 0,(function*(){return this.request("GET",r,null,n||{})}))}del(r,n){return f(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,n||{})}))}post(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("POST",r,n,s||{})}))}patch(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("PATCH",r,n,s||{})}))}put(r,n,s){return f(this,void 0,void 0,(function*(){return this.request("PUT",r,n,s||{})}))}head(r,n){return f(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,n||{})}))}sendStream(r,n,s,a){return f(this,void 0,void 0,(function*(){return this.request(r,n,s,a)}))}getJson(r){return f(this,arguments,void 0,(function*(r,n={}){n[y.Accept]=this._getExistingOrDefaultHeader(n,y.Accept,b.ApplicationJson);const s=yield this.get(r,n);return this._processResponse(s,this.requestOptions)}))}postJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.post(r,a,s);return this._processResponse(l,this.requestOptions)}))}putJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.put(r,a,s);return this._processResponse(l,this.requestOptions)}))}patchJson(r,n){return f(this,arguments,void 0,(function*(r,n,s={}){const a=JSON.stringify(n,null,2);s[y.Accept]=this._getExistingOrDefaultHeader(s,y.Accept,b.ApplicationJson);s[y.ContentType]=this._getExistingOrDefaultContentTypeHeader(s,b.ApplicationJson);const l=yield this.patch(r,a,s);return this._processResponse(l,this.requestOptions)}))}request(r,n,s,a){return f(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const l=new URL(n);let u=this._prepareRequest(r,l,a);const d=this._allowRetries&&B.includes(r)?this._maxRetries+1:1;let A=0;let p;do{p=yield this.requestRaw(u,s);if(p&&p.message&&p.message.statusCode===g.Unauthorized){let r;for(const n of this.handlers){if(n.canHandleAuthentication(p)){r=n;break}}if(r){return r.handleAuthentication(this,u,s)}else{return p}}let n=this._maxRedirects;while(p.message.statusCode&&C.includes(p.message.statusCode)&&this._allowRedirects&&n>0){const d=p.message.headers["location"];if(!d){break}const A=new URL(d);if(l.protocol==="https:"&&l.protocol!==A.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield p.readBody();if(A.hostname!==l.hostname){for(const r in a){if(r.toLowerCase()==="authorization"){delete a[r]}}}u=this._prepareRequest(r,A,a);p=yield this.requestRaw(u,s);n--}if(!p.message.statusCode||!w.includes(p.message.statusCode)){return p}A+=1;if(A{function callbackForResult(r,n){if(r){a(r)}else if(!n){a(new Error("Unknown error"))}else{s(n)}}this.requestRawWithCallback(r,n,callbackForResult)}))}))}requestRawWithCallback(r,n,s){if(typeof n==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(n,"utf8")}let a=false;function handleResult(r,n){if(!a){a=true;s(r,n)}}const l=r.httpModule.request(r.options,(r=>{const n=new HttpClientResponse(r);handleResult(undefined,n)}));let u;l.on("socket",(r=>{u=r}));l.setTimeout(this._socketTimeout||3*6e4,(()=>{if(u){u.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));l.on("error",(function(r){handleResult(r)}));if(n&&typeof n==="string"){l.write(n,"utf8")}if(n&&typeof n!=="string"){n.on("close",(function(){l.end()}));n.pipe(l)}else{l.end()}}getAgent(r){const n=new URL(r);return this._getAgent(n)}getAgentDispatcher(r){const n=new URL(r);const s=getProxyUrl(n);const a=s&&s.hostname;if(!a){return}return this._getProxyAgentDispatcher(n,s)}_prepareRequest(r,n,s){const a={};a.parsedUrl=n;const u=a.parsedUrl.protocol==="https:";a.httpModule=u?d:l;const A=u?443:80;a.options={};a.options.host=a.parsedUrl.hostname;a.options.port=a.parsedUrl.port?parseInt(a.parsedUrl.port):A;a.options.path=(a.parsedUrl.pathname||"")+(a.parsedUrl.search||"");a.options.method=r;a.options.headers=this._mergeHeaders(s);if(this.userAgent!=null){a.options.headers["user-agent"]=this.userAgent}a.options.agent=this._getAgent(a.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(a.options)}}return a}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,n,s){let a;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[n];if(r){a=typeof r==="number"?r.toString():r}}const l=r[n];if(l!==undefined){return typeof l==="number"?l.toString():l}if(a!==undefined){return a}return s}_getExistingOrDefaultContentTypeHeader(r,n){let s;if(this.requestOptions&&this.requestOptions.headers){const r=lowercaseKeys(this.requestOptions.headers)[y.ContentType];if(r){if(typeof r==="number"){s=String(r)}else if(Array.isArray(r)){s=r.join(", ")}else{s=r}}}const a=r[y.ContentType];if(a!==undefined){if(typeof a==="number"){return String(a)}else if(Array.isArray(a)){return a.join(", ")}else{return a}}if(s!==undefined){return s}return n}_getAgent(r){let n;const s=getProxyUrl(r);const l=s&&s.hostname;if(this._keepAlive&&l){n=this._proxyAgent}if(!l){n=this._agent}if(n){return n}const d=r.protocol==="https:";let p=100;if(this.requestOptions){p=this.requestOptions.maxSockets||a.globalAgent.maxSockets}if(s&&s.hostname){const r={maxSockets:p,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(s.username||s.password)&&{proxyAuth:`${s.username}:${s.password}`}),{host:s.hostname,port:s.port})};let a;const l=s.protocol==="https:";if(d){a=l?A.httpsOverHttps:A.httpsOverHttp}else{a=l?A.httpOverHttps:A.httpOverHttp}n=a(r);this._proxyAgent=n}if(!n){const r={keepAlive:this._keepAlive,maxSockets:p};n=d?new u.Agent(r):new a.Agent(r);this._agent=n}if(d&&this._ignoreSslError){n.options=Object.assign(n.options||{},{rejectUnauthorized:false})}return n}_getProxyAgentDispatcher(r,n){let s;if(this._keepAlive){s=this._proxyAgentDispatcher}if(s){return s}const a=r.protocol==="https:";s=new p.ProxyAgent(Object.assign({uri:n.href,pipelining:!this._keepAlive?0:1},(n.username||n.password)&&{token:`Basic ${Buffer.from(`${n.username}:${n.password}`).toString("base64")}`}));this._proxyAgentDispatcher=s;if(a&&this._ignoreSslError){s.options=Object.assign(s.options.requestTls||{},{rejectUnauthorized:false})}return s}_getUserAgentWithOrchestrationId(r){const n=r||"actions/http-client";const s=process.env["ACTIONS_ORCHESTRATION_ID"];if(s){const r=s.replace(/[^a-z0-9_.-]/gi,"_");return`${n} actions_orchestration_id/${r}`}return n}_performExponentialBackoff(r){return f(this,void 0,void 0,(function*(){r=Math.min(I,r);const n=S*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),n)))}))}_processResponse(r,n){return f(this,void 0,void 0,(function*(){return new Promise(((s,a)=>f(this,void 0,void 0,(function*(){const l=r.message.statusCode||0;const u={statusCode:l,result:null,headers:{}};if(l===g.NotFound){s(u)}function dateTimeDeserializer(r,n){if(typeof n==="string"){const r=new Date(n);if(!isNaN(r.valueOf())){return r}}return n}let d;let A;try{A=yield r.readBody();if(A&&A.length>0){if(n&&n.deserializeDates){d=JSON.parse(A,dateTimeDeserializer)}else{d=JSON.parse(A)}u.result=d}u.headers=r.message.headers}catch(r){}if(l>299){let r;if(d&&d.message){r=d.message}else if(A&&A.length>0){r=A}else{r=`Failed request: (${l})`}const n=new HttpClientError(r,l);n.result=u.result;a(n)}else{s(u)}}))))}))}}const lowercaseKeys=r=>Object.keys(r).reduce(((n,s)=>(n[s.toLowerCase()]=r[s],n)),{})},31015:(r,n,s)=>{s.d(n,{G:()=>RequestError});class RequestError extends Error{name;status;request;response;constructor(r,n,s){super(r,{cause:s.cause});this.name="HttpError";this.status=Number.parseInt(n);if(Number.isNaN(this.status)){this.status=0} +/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in s){this.response=s.response}const a=Object.assign({},s.request);if(s.request.headers.authorization){a.headers=Object.assign({},s.request.headers,{authorization:s.request.headers.authorization.replace(/(?{s.d(n,{A:()=>mergeStreams});var a=s(78474);var l=s(57075);var u=s(46466);function mergeStreams(r){if(!Array.isArray(r)){throw new TypeError(`Expected an array, got \`${typeof r}\`.`)}for(const n of r){validateStream(n)}const n=r.some((({readableObjectMode:r})=>r));const s=getHighWaterMark(r,n);const a=new MergedStream({objectMode:n,writableHighWaterMark:s,readableHighWaterMark:s});for(const n of r){a.add(n)}return a}const getHighWaterMark=(r,n)=>{if(r.length===0){return(0,l.getDefaultHighWaterMark)(n)}const s=r.filter((({readableObjectMode:r})=>r===n)).map((({readableHighWaterMark:r})=>r));return Math.max(...s)};class MergedStream extends l.PassThrough{#$r=new Set([]);#Kr=new Set([]);#S=new Set([]);#Xr;#Zr=Symbol("unpipe");#en=new WeakMap;add(r){validateStream(r);if(this.#$r.has(r)){return}this.#$r.add(r);this.#Xr??=onMergedStreamFinished(this,this.#$r,this.#Zr);const n=endWhenStreamsDone({passThroughStream:this,stream:r,streams:this.#$r,ended:this.#Kr,aborted:this.#S,onFinished:this.#Xr,unpipeEvent:this.#Zr});this.#en.set(r,n);r.pipe(this,{end:false})}async remove(r){validateStream(r);if(!this.#$r.has(r)){return false}const n=this.#en.get(r);if(n===undefined){return false}this.#en.delete(r);r.unpipe(this);await n;return true}}const onMergedStreamFinished=async(r,n,s)=>{updateMaxListeners(r,d);const a=new AbortController;try{await Promise.race([onMergedStreamEnd(r,a),onInputStreamsUnpipe(r,n,s,a)])}finally{a.abort();updateMaxListeners(r,-d)}};const onMergedStreamEnd=async(r,{signal:n})=>{try{await(0,u.finished)(r,{signal:n,cleanup:true})}catch(n){errorOrAbortStream(r,n);throw n}};const onInputStreamsUnpipe=async(r,n,s,{signal:l})=>{for await(const[u]of(0,a.on)(r,"unpipe",{signal:l})){if(n.has(u)){u.emit(s)}}};const validateStream=r=>{if(typeof r?.pipe!=="function"){throw new TypeError(`Expected a readable stream, got: \`${typeof r}\`.`)}};const endWhenStreamsDone=async({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,onFinished:u,unpipeEvent:d})=>{updateMaxListeners(r,A);const p=new AbortController;try{await Promise.race([afterMergedStreamFinished(u,n,p),onInputStreamEnd({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,controller:p}),onInputStreamUnpipe({stream:n,streams:s,ended:a,aborted:l,unpipeEvent:d,controller:p})])}finally{p.abort();updateMaxListeners(r,-A)}if(s.size>0&&s.size===a.size+l.size){if(a.size===0&&l.size>0){abortStream(r)}else{endStream(r)}}};const afterMergedStreamFinished=async(r,n,{signal:s})=>{try{await r;if(!s.aborted){abortStream(n)}}catch(r){if(!s.aborted){errorOrAbortStream(n,r)}}};const onInputStreamEnd=async({passThroughStream:r,stream:n,streams:s,ended:a,aborted:l,controller:{signal:d}})=>{try{await(0,u.finished)(n,{signal:d,cleanup:true,readable:true,writable:false});if(s.has(n)){a.add(n)}}catch(a){if(d.aborted||!s.has(n)){return}if(isAbortError(a)){l.add(n)}else{errorStream(r,a)}}};const onInputStreamUnpipe=async({stream:r,streams:n,ended:s,aborted:l,unpipeEvent:u,controller:{signal:d}})=>{await(0,a.once)(r,u,{signal:d});if(!r.readable){return(0,a.once)(d,"abort",{signal:d})}n.delete(r);s.delete(r);l.delete(r)};const endStream=r=>{if(r.writable){r.end()}};const errorOrAbortStream=(r,n)=>{if(isAbortError(n)){abortStream(r)}else{errorStream(r,n)}};const isAbortError=r=>r?.code==="ERR_STREAM_PREMATURE_CLOSE";const abortStream=r=>{if(r.readable||r.writable){r.destroy()}};const errorStream=(r,n)=>{if(!r.destroyed){r.once("error",noop);r.destroy(n)}};const noop=()=>{};const updateMaxListeners=(r,n)=>{const s=r.getMaxListeners();if(s!==0&&s!==Number.POSITIVE_INFINITY){r.setMaxListeners(s+n)}};const d=2;const A=1},73971:(r,n,s)=>{s.d(n,{Hz:()=>R});var a=s(1708);var l=s(73024);var u=s(76760);var d=s(57075);var A=s(25145);var p=s(25648);var f=s(57975);var g=s(31421);var y=s(73136);const b=(0,f.promisify)(g.execFile);function toPath(r){return r instanceof URL?(0,y.fileURLToPath)(r):r}function rootDirectory(r){return path.parse(toPath(r)).root}function traversePathUp(r){return{*[Symbol.iterator](){let n=path.resolve(toPath(r));let s;while(s!==n){yield n;s=n;n=path.resolve(n,"..")}}}}const C=null&&10*1024*1024;async function execFile(r,n,s={}){return b(r,n,{maxBuffer:C,...s})}function execFileSync(r,n=[],s={}){return execFileSyncOriginal(r,n,{maxBuffer:C,encoding:"utf8",stdio:"pipe",...s})}var w=s(51455);var B=s(70298);function isPathInside(r,n){const s=u.relative(n,r);return Boolean(s&&s!==".."&&!s.startsWith(`..${u.sep}`)&&s!==u.resolve(r))}function slash(r){const n=r.startsWith("\\\\?\\");if(n){return r}return r.replace(/\\/g,"/")}const isNegativePattern=r=>r[0]==="!";const normalizeAbsolutePatternToRelative=r=>{if(!r.startsWith("/")){return r}const n=r.slice(1);const s=n.indexOf("/");const a=s>0?n.slice(0,s):n;if(s>0&&!p.isDynamicPattern(a)){return r}return n};const absolutePrefixesMatch=(r,n)=>n===r;const getStaticAbsolutePathPrefix=r=>{if(!u.isAbsolute(r)){return undefined}const n=[];for(const s of r.split("/")){if(!s){continue}if(p.isDynamicPattern(s)){break}n.push(s)}return n.length===0?undefined:`/${n.join("/")}`};const normalizeNegativePattern=(r,n=[],s=false)=>{if(!r.startsWith("/")){return r}const a=normalizeAbsolutePatternToRelative(r);if(a!==r){return a}if(s){return r.slice(1)}const l=getStaticAbsolutePathPrefix(r);const u=l!==undefined&&n.some((r=>absolutePrefixesMatch(r,l)));return u?r:r.slice(1)};const bindFsMethod=(r,n)=>{const s=r?.[n];return typeof s==="function"?s.bind(r):undefined};const promisifyFsMethod=(r,n)=>{const s=r?.[n];if(typeof s!=="function"){return undefined}return(0,f.promisify)(s.bind(r))};const normalizeDirectoryPatternForFastGlob=r=>{if(!r.endsWith("/")){return r}const n=r.replace(/\/+$/u,"");if(!n){return"/**"}if(n==="**"){return"**/**"}const s=n.startsWith("/");const a=s?n.slice(1):n;const l=a.includes("/");const u=!s&&!l&&!n.startsWith("**/");const d=u?"**/":"";return`${d}${n}/**`};const getParentDirectoryPrefix=r=>{const n=isNegativePattern(r)?r.slice(1):r;const s=n.match(/^(\.\.\/)+/);return s?s[0]:""};const adjustIgnorePatternsForParentDirectories=(r,n)=>{if(r.length===0||n.length===0){return n}const s=r.map((r=>getParentDirectoryPrefix(r)));const a=s[0];if(!a){return n}const l=s.every((r=>r===a));if(!l){return n}return n.map((r=>{if(r.startsWith("**/")&&!r.startsWith("../")){return a+r}return r}))};const getAsyncStatMethod=r=>bindFsMethod(r?.promises,"stat")??bindFsMethod(l.promises,"stat");const getStatSyncMethod=r=>{if(r){return bindFsMethod(r,"statSync")}return bindFsMethod(l,"statSync")};const pathHasGitDirectory=r=>Boolean(r?.isDirectory?.()||r?.isFile?.());const buildPathChain=(r,n)=>{const s=[];let a=r;s.push(a);while(a!==n){const r=u.dirname(a);if(r===a){break}a=r;s.push(a)}return s};const findGitRootInChain=async(r,n)=>{for(const s of r){const r=u.join(s,".git");try{const a=await n(r);if(pathHasGitDirectory(a)){return s}}catch{}}return undefined};const findGitRootSyncUncached=(r,n)=>{const s=getStatSyncMethod(n);if(!s){return undefined}const a=u.resolve(r);const{root:l}=u.parse(a);const d=buildPathChain(a,l);for(const r of d){const n=u.join(r,".git");try{const a=s(n);if(pathHasGitDirectory(a)){return r}}catch{}}return undefined};const findGitRootSync=(r,n)=>{if(typeof r!=="string"){throw new TypeError("cwd must be a string")}return findGitRootSyncUncached(r,n)};const findGitRootAsyncUncached=async(r,n)=>{const s=getAsyncStatMethod(n);if(!s){return findGitRootSync(r,n)}const a=u.resolve(r);const{root:l}=u.parse(a);const d=buildPathChain(a,l);return findGitRootInChain(d,s)};const findGitRoot=async(r,n)=>{if(typeof r!=="string"){throw new TypeError("cwd must be a string")}return findGitRootAsyncUncached(r,n)};const isWithinGitRoot=(r,n)=>{const s=u.resolve(r);const a=u.resolve(n);return a===s||isPathInside(a,s)};const getParentGitignorePaths=(r,n)=>{if(r&&typeof r!=="string"){throw new TypeError("gitRoot must be a string or undefined")}if(typeof n!=="string"){throw new TypeError("cwd must be a string")}if(!r){return[]}if(!isWithinGitRoot(r,n)){return[]}const s=buildPathChain(u.resolve(n),u.resolve(r));return[...s].reverse().map((r=>u.join(r,".gitignore")))};const convertPatternsForFastGlob=(r,n,s)=>{if(n){return[]}const a=[];let l=false;for(const n of r){if(isNegativePattern(n)){l=true;break}a.push(s(n))}return l?[]:a};const I=["**/node_modules","**/flow-typed","**/coverage","**/.git"];const S={absolute:true,dot:true};const Q="**/.gitignore";const getReadFileMethod=r=>bindFsMethod(r?.promises,"readFile")??bindFsMethod(w,"readFile")??promisifyFsMethod(r,"readFile");const getReadFileSyncMethod=r=>bindFsMethod(r,"readFileSync")??bindFsMethod(l,"readFileSync");const shouldSkipIgnoreFileError=(r,n)=>{if(!r){return Boolean(n)}if(r.code==="ENOENT"||r.code==="ENOTDIR"){return true}return Boolean(n)};const createIgnoreFileReadError=(r,n)=>{if(n instanceof Error){n.message=`Failed to read ignore file at ${r}: ${n.message}`;return n}return new Error(`Failed to read ignore file at ${r}: ${String(n)}`)};const processIgnoreFileCore=(r,n,s)=>{try{const s=n(r,"utf8");return{filePath:r,content:s}}catch(n){if(shouldSkipIgnoreFileError(n,s)){return undefined}throw createIgnoreFileReadError(r,n)}};const readIgnoreFilesSafely=async(r,n,s)=>{const a=await Promise.all(r.map((async r=>{try{const s=await n(r,"utf8");return{filePath:r,content:s}}catch(n){if(shouldSkipIgnoreFileError(n,s)){return undefined}throw createIgnoreFileReadError(r,n)}})));return a.filter(Boolean)};const readIgnoreFilesSafelySync=(r,n,s)=>r.map((r=>processIgnoreFileCore(r,n,s))).filter(Boolean);const dedupePaths=r=>{const n=new Set;return r.filter((r=>{if(n.has(r)){return false}n.add(r);return true}))};const globIgnoreFiles=(r,n,s)=>r(n,{...s,...S});const getParentIgnorePaths=(r,n)=>r?getParentGitignorePaths(r,n.cwd):[];const combineIgnoreFilePaths=(r,n,s)=>dedupePaths([...getParentIgnorePaths(r,n),...s]);const buildIgnoreResult=(r,n,s)=>{const a=s||n.cwd;const l=getPatternsFromIgnoreFiles(r,a);return{patterns:l,predicate:createIgnorePredicate(l,n.cwd,a),usingGitRoot:Boolean(s&&s!==n.cwd)}};const applyBaseToPattern=(r,n)=>{if(!n){return r}const s=isNegativePattern(r);const a=s?r.slice(1):r;const l=a.indexOf("/");const d=l!==-1&&l!==a.length-1;let A;if(!d){A=u.posix.join(n,"**",a)}else if(a.startsWith("/")){A=u.posix.join(n,a.slice(1))}else{A=u.posix.join(n,a)}return s?"!"+A:A};const parseIgnoreFile=(r,n)=>{const s=slash(u.relative(n,u.dirname(r.filePath)));return r.content.split(/\r?\n/).filter((r=>r&&!r.startsWith("#"))).map((r=>applyBaseToPattern(r,s)))};const toRelativePath=(r,n)=>{if(u.isAbsolute(r)){const s=u.relative(n,r);if(s&&!isPathInside(r,n)){return undefined}return s}if(r.startsWith("./")){return r.slice(2)}if(r.startsWith("../")){return undefined}return r};const createIgnorePredicate=(r,n,s)=>{const a=B().add(r);const l=u.normalize(u.resolve(n));const d=u.normalize(u.resolve(s));return r=>{r=toPath(r);const n=u.normalize(u.resolve(r));if(n===l){return false}const s=toRelativePath(r,d);if(s===undefined){return false}return s?a.ignores(slash(s)):false}};const normalizeOptions=(r={})=>{const n=r.ignore?Array.isArray(r.ignore)?r.ignore:[r.ignore]:[];const s=toPath(r.cwd)??a.cwd();const l=typeof r.deep==="number"?Math.max(0,r.deep)+1:Number.POSITIVE_INFINITY;return{cwd:s,suppressErrors:r.suppressErrors??false,deep:l,ignore:[...n,...I],followSymbolicLinks:r.followSymbolicLinks??true,concurrency:r.concurrency,throwErrorOnBrokenSymbolicLink:r.throwErrorOnBrokenSymbolicLink??false,fs:r.fs}};const collectIgnoreFileArtifactsAsync=async(r,n,s)=>{const a=normalizeOptions(n);const l=await globIgnoreFiles(p,r,a);const u=s?await findGitRoot(a.cwd,a.fs):undefined;const d=combineIgnoreFilePaths(u,a,l);const A=getReadFileMethod(a.fs);const f=await readIgnoreFilesSafely(d,A,a.suppressErrors);return{files:f,normalizedOptions:a,gitRoot:u}};const collectIgnoreFileArtifactsSync=(r,n,s)=>{const a=normalizeOptions(n);const l=globIgnoreFiles(p.sync,r,a);const u=s?findGitRootSync(a.cwd,a.fs):undefined;const d=combineIgnoreFilePaths(u,a,l);const A=getReadFileSyncMethod(a.fs);const f=readIgnoreFilesSafelySync(d,A,a.suppressErrors);return{files:f,normalizedOptions:a,gitRoot:u}};const isIgnoredByIgnoreFiles=async(r,n)=>{const{files:s,normalizedOptions:a,gitRoot:l}=await collectIgnoreFileArtifactsAsync(r,n,false);return buildIgnoreResult(s,a,l).predicate};const isIgnoredByIgnoreFilesSync=(r,n)=>{const{files:s,normalizedOptions:a,gitRoot:l}=collectIgnoreFileArtifactsSync(r,n,false);return buildIgnoreResult(s,a,l).predicate};const getPatternsFromIgnoreFiles=(r,n)=>r.flatMap((r=>parseIgnoreFile(r,n)));const getIgnorePatternsAndPredicate=async(r,n,s=false)=>{const{files:a,normalizedOptions:l,gitRoot:u}=await collectIgnoreFileArtifactsAsync(r,n,s);return buildIgnoreResult(a,l,u)};const getIgnorePatternsAndPredicateSync=(r,n,s=false)=>{const{files:a,normalizedOptions:l,gitRoot:u}=collectIgnoreFileArtifactsSync(r,n,s);return buildIgnoreResult(a,l,u)};const isGitIgnored=r=>isIgnoredByIgnoreFiles(Q,r);const isGitIgnoredSync=r=>isIgnoredByIgnoreFilesSync(Q,r);const assertPatternsInput=r=>{if(r.some((r=>typeof r!=="string"))){throw new TypeError("Patterns must be a string or an array of strings")}};const getStatMethod=r=>bindFsMethod(r?.promises,"stat")??bindFsMethod(l.promises,"stat")??promisifyFsMethod(r,"stat");const globby_getStatSyncMethod=r=>bindFsMethod(r,"statSync")??bindFsMethod(l,"statSync");const isDirectory=async(r,n)=>{try{const s=await getStatMethod(n)(r);return s.isDirectory()}catch{return false}};const isDirectorySync=(r,n)=>{try{const s=globby_getStatSyncMethod(n)(r);return s.isDirectory()}catch{return false}};const normalizePathForDirectoryGlob=(r,n)=>{const s=isNegativePattern(r)?r.slice(1):r;return u.isAbsolute(s)?s:u.join(n,s)};const shouldExpandGlobstarDirectory=r=>{const n=r?.match(/\*\*\/([^/]+)$/);if(!n){return false}const s=n[1];const a=/[*?[\]{}]/.test(s);const l=u.extname(s)&&!s.startsWith(".");return!a&&!l};const getDirectoryGlob=({directoryPath:r,files:n,extensions:s})=>{const a=s?.length>0?`.${s.length>1?`{${s.join(",")}}`:s[0]}`:"";return n?n.map((n=>u.posix.join(r,`**/${u.extname(n)?n:`${n}${a}`}`))):[u.posix.join(r,`**${a?`/*${a}`:""}`)]};const directoryToGlob=async(r,{cwd:n=a.cwd(),files:s,extensions:l,fs:u}={})=>{const d=await Promise.all(r.map((async r=>{const a=isNegativePattern(r)?r.slice(1):r;if(shouldExpandGlobstarDirectory(a)){return getDirectoryGlob({directoryPath:r,files:s,extensions:l})}const d=normalizePathForDirectoryGlob(r,n);return await isDirectory(d,u)?getDirectoryGlob({directoryPath:r,files:s,extensions:l}):r})));return d.flat()};const directoryToGlobSync=(r,{cwd:n=a.cwd(),files:s,extensions:l,fs:u}={})=>r.flatMap((r=>{const a=isNegativePattern(r)?r.slice(1):r;if(shouldExpandGlobstarDirectory(a)){return getDirectoryGlob({directoryPath:r,files:s,extensions:l})}const d=normalizePathForDirectoryGlob(r,n);return isDirectorySync(d,u)?getDirectoryGlob({directoryPath:r,files:s,extensions:l}):r}));const toPatternsArray=r=>{r=[...new Set([r].flat())];assertPatternsInput(r);return r};const checkCwdOption=(r,n=l)=>{if(!r||!n.statSync){return}let s;try{s=n.statSync(r)}catch{return}if(!s.isDirectory()){throw new Error(`The \`cwd\` option must be a path to a directory, got: ${r}`)}};const globby_normalizeOptions=(r={})=>{const n=r.ignore?Array.isArray(r.ignore)?r.ignore:[r.ignore]:[];r={...r,ignore:n,expandDirectories:r.expandDirectories??true,cwd:toPath(r.cwd)};checkCwdOption(r.cwd,r.fs);return r};const normalizeArguments=r=>async(n,s)=>r(toPatternsArray(n),globby_normalizeOptions(s));const normalizeArgumentsSync=r=>(n,s)=>r(toPatternsArray(n),globby_normalizeOptions(s));const getIgnoreFilesPatterns=r=>{const{ignoreFiles:n,gitignore:s}=r;const a=n?toPatternsArray(n):[];if(s){a.push(Q)}return a};const applyIgnoreFilesAndGetFilter=async r=>{const n=getIgnoreFilesPatterns(r);if(n.length===0){return{options:r,filter:createFilterFunction(false,r.cwd)}}const s=r.gitignore===true;const{patterns:a,predicate:l,usingGitRoot:u}=await getIgnorePatternsAndPredicate(n,r,s);const d=convertPatternsForFastGlob(a,u,normalizeDirectoryPatternForFastGlob);const A={...r,ignore:[...r.ignore,...d]};return{options:A,filter:createFilterFunction(l,r.cwd)}};const applyIgnoreFilesAndGetFilterSync=r=>{const n=getIgnoreFilesPatterns(r);if(n.length===0){return{options:r,filter:createFilterFunction(false,r.cwd)}}const s=r.gitignore===true;const{patterns:a,predicate:l,usingGitRoot:u}=getIgnorePatternsAndPredicateSync(n,r,s);const d=convertPatternsForFastGlob(a,u,normalizeDirectoryPatternForFastGlob);const A={...r,ignore:[...r.ignore,...d]};return{options:A,filter:createFilterFunction(l,r.cwd)}};const createFilterFunction=(r,n)=>{const s=new Set;const l=n||a.cwd();const d=new Map;return n=>{const a=u.normalize(n.path??n);if(s.has(a)){return false}if(r){let n=d.get(a);if(n===undefined){n=u.isAbsolute(a)?a:u.resolve(l,a);d.set(a,n);if(d.size>1e4){d.clear()}}if(r(n)){return false}}s.add(a);return true}};const unionFastGlobResults=(r,n)=>r.flat().filter((r=>n(r)));const convertNegativePatterns=(r,n)=>{if(r.length>0&&r.every((r=>isNegativePattern(r)))){if(n.expandNegationOnlyPatterns===false){return[]}r=["**/*",...r]}const s=[];let a=false;const l=[];for(const n of r){if(isNegativePattern(n)){l.push(`!${normalizeNegativePattern(n.slice(1),s,a)}`);continue}l.push(n);const r=getStaticAbsolutePathPrefix(n);if(r===undefined){a=true;continue}s.push(r)}r=l;const u=[];while(r.length>0){const s=r.findIndex((r=>isNegativePattern(r)));if(s===-1){u.push({patterns:r,options:n});break}const a=r[s].slice(1);for(const r of u){r.options.ignore.push(a)}if(s!==0){u.push({patterns:r.slice(0,s),options:{...n,ignore:[...n.ignore,a]}})}r=r.slice(s+1)}return u};const applyParentDirectoryIgnoreAdjustments=r=>r.map((r=>({patterns:r.patterns,options:{...r.options,ignore:adjustIgnorePatternsForParentDirectories(r.patterns,r.options.ignore)}})));const normalizeExpandDirectoriesOption=(r,n)=>({...n?{cwd:n}:{},...Array.isArray(r)?{files:r}:r});const generateTasks=async(r,n)=>{const s=convertNegativePatterns(r,n);const{cwd:a,expandDirectories:l,fs:u}=n;if(!l){return applyParentDirectoryIgnoreAdjustments(s)}const d={...normalizeExpandDirectoriesOption(l,a),fs:u};return Promise.all(s.map((async r=>{let{patterns:n,options:s}=r;[n,s.ignore]=await Promise.all([directoryToGlob(n,d),directoryToGlob(s.ignore,{cwd:a,fs:u})]);s.ignore=adjustIgnorePatternsForParentDirectories(n,s.ignore);return{patterns:n,options:s}})))};const generateTasksSync=(r,n)=>{const s=convertNegativePatterns(r,n);const{cwd:a,expandDirectories:l,fs:u}=n;if(!l){return applyParentDirectoryIgnoreAdjustments(s)}const d={...normalizeExpandDirectoriesOption(l,a),fs:u};return s.map((r=>{let{patterns:n,options:s}=r;n=directoryToGlobSync(n,d);s.ignore=directoryToGlobSync(s.ignore,{cwd:a,fs:u});s.ignore=adjustIgnorePatternsForParentDirectories(n,s.ignore);return{patterns:n,options:s}}))};const v=normalizeArguments((async(r,n)=>{const{options:s,filter:a}=await applyIgnoreFilesAndGetFilter(n);const l=await generateTasks(r,s);const u=await Promise.all(l.map((r=>p(r.patterns,r.options))));return unionFastGlobResults(u,a)}));const R=normalizeArgumentsSync(((r,n)=>{const{options:s,filter:a}=applyIgnoreFilesAndGetFilterSync(n);const l=generateTasksSync(r,s);const u=l.map((r=>p.sync(r.patterns,r.options)));return unionFastGlobResults(u,a)}));const N=normalizeArgumentsSync(((r,n)=>{const{options:s,filter:a}=applyIgnoreFilesAndGetFilterSync(n);const l=generateTasksSync(r,s);const u=l.map((r=>p.stream(r.patterns,r.options)));if(u.length===0){return d.Readable.from([])}const f=(0,A.A)(u).filter((r=>a(r)));return f}));const x=normalizeArgumentsSync(((r,n)=>r.some((r=>p.isDynamicPattern(r,n)))));const D=normalizeArguments(generateTasks);const T=normalizeArgumentsSync(generateTasksSync);const{convertPathToPattern:k}=p},2822:r=>{r.exports=JSON.parse('{"name":"@actions/artifact","version":"6.2.0","preview":true,"description":"Actions artifact lib","keywords":["github","actions","artifact"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/artifact","license":"MIT","type":"module","main":"lib/artifact.js","types":"lib/artifact.d.ts","exports":{".":{"types":"./lib/artifact.d.ts","import":"./lib/artifact.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/artifact"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"cd ../../ && npm run test ./packages/artifact","bootstrap":"cd ../../ && npm run bootstrap","tsc-run":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/","tsc":"npm run bootstrap && npm run tsc-run","gen:docs":"typedoc --plugin typedoc-plugin-markdown --out docs/generated src/artifact.ts --githubPages false --readme none"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/github":"^9.0.0","@actions/http-client":"^4.0.0","@azure/storage-blob":"^12.30.0","@octokit/core":"^7.0.6","@octokit/plugin-request-log":"^6.0.0","@octokit/plugin-retry":"^8.0.0","@octokit/request":"^10.0.7","@octokit/request-error":"^7.1.0","@protobuf-ts/plugin":"^2.2.3-alpha.1","@protobuf-ts/runtime":"^2.9.4","archiver":"^7.0.1","jwt-decode":"^4.0.0","unzip-stream":"^0.3.1"},"devDependencies":{"@types/archiver":"^7.0.0","@types/unzip-stream":"^0.3.4","typedoc":"^0.28.16","typedoc-plugin-markdown":"^4.9.0","typescript":"^5.9.3"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')}};var __webpack_module_cache__={};function __nccwpck_require__(r){var n=__webpack_module_cache__[r];if(n!==undefined){return n.exports}var s=__webpack_module_cache__[r]={id:r,loaded:false,exports:{}};var a=true;try{__webpack_modules__[r].call(s.exports,s,s.exports,__nccwpck_require__);a=false}finally{if(a)delete __webpack_module_cache__[r]}s.loaded=true;return s.exports}(()=>{var r=typeof Symbol==="function"?Symbol("webpack queues"):"__webpack_queues__";var n=typeof Symbol==="function"?Symbol("webpack exports"):"__webpack_exports__";var s=typeof Symbol==="function"?Symbol("webpack error"):"__webpack_error__";var resolveQueue=r=>{if(r&&r.d<1){r.d=1;r.forEach((r=>r.r--));r.forEach((r=>r.r--?r.r++:r()))}};var wrapDeps=a=>a.map((a=>{if(a!==null&&typeof a==="object"){if(a[r])return a;if(a.then){var l=[];l.d=0;a.then((r=>{u[n]=r;resolveQueue(l)}),(r=>{u[s]=r;resolveQueue(l)}));var u={};u[r]=r=>r(l);return u}}var d={};d[r]=r=>{};d[n]=a;return d}));__nccwpck_require__.a=(a,l,u)=>{var d;u&&((d=[]).d=-1);var A=new Set;var p=a.exports;var f;var g;var y;var b=new Promise(((r,n)=>{y=n;g=r}));b[n]=p;b[r]=r=>(d&&r(d),A.forEach(r),b["catch"]((r=>{})));a.exports=b;l((a=>{f=wrapDeps(a);var l;var getResult=()=>f.map((r=>{if(r[s])throw r[s];return r[n]}));var u=new Promise((n=>{l=()=>n(getResult);l.r=0;var fnQueue=r=>r!==d&&!A.has(r)&&(A.add(r),r&&!r.d&&(l.r++,r.push(l)));f.map((n=>n[r](fnQueue)))}));return l.r?u:getResult()}),(r=>(r?y(b[s]=r):g(p),resolveQueue(d))));d&&d.d<0&&(d.d=0)}})();(()=>{__nccwpck_require__.n=r=>{var n=r&&r.__esModule?()=>r["default"]:()=>r;__nccwpck_require__.d(n,{a:n});return n}})();(()=>{var r=Object.getPrototypeOf?r=>Object.getPrototypeOf(r):r=>r.__proto__;var n;__nccwpck_require__.t=function(s,a){if(a&1)s=this(s);if(a&8)return s;if(typeof s==="object"&&s){if(a&4&&s.__esModule)return s;if(a&16&&typeof s.then==="function")return s}var l=Object.create(null);__nccwpck_require__.r(l);var u={};n=n||[null,r({}),r([]),r(r)];for(var d=a&2&&s;typeof d=="object"&&!~n.indexOf(d);d=r(d)){Object.getOwnPropertyNames(d).forEach((r=>u[r]=()=>s[r]))}u["default"]=()=>s;__nccwpck_require__.d(l,u);return l}})();(()=>{__nccwpck_require__.d=(r,n)=>{for(var s in n){if(__nccwpck_require__.o(n,s)&&!__nccwpck_require__.o(r,s)){Object.defineProperty(r,s,{enumerable:true,get:n[s]})}}}})();(()=>{__nccwpck_require__.o=(r,n)=>Object.prototype.hasOwnProperty.call(r,n)})();(()=>{__nccwpck_require__.r=r=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(r,"__esModule",{value:true})}})();(()=>{__nccwpck_require__.nmd=r=>{r.paths=[];if(!r.children)r.children=[];return r}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";var __webpack_exports__=__nccwpck_require__(79407);__webpack_exports__=await __webpack_exports__; \ No newline at end of file diff --git a/src/upload-release-assets.ts b/src/upload-release-assets.ts index 97c1ec369..1f943a80a 100644 --- a/src/upload-release-assets.ts +++ b/src/upload-release-assets.ts @@ -74,24 +74,54 @@ export async function uploadAssets( } } - console.log(`Uploading ${assetName}...`); + console.log(`Uploading Assets`); - await retry( - () => - github.rest.repos.uploadReleaseAsset({ - headers, - name: assetName, - // GitHub renames the filename so we'll also set the label which it leaves as-is. - label: assetName, - // https://github.com/tauri-apps/tauri-action/pull/45 - // @ts-expect-error error TS2322: Type 'Buffer' is not assignable to type 'string'. - data: fs.createReadStream(asset.path), - owner, - repo, - release_id: releaseId, - }), - retryAttempts, - ); + if (isGitea) { + console.log(`Trying to upload ${assetName} to Gitea...`); + //Workaround for Gitea's api, proper endpoint + //todo: add retry with looser Promise type + try { + const formData = new FormData(); + const fileBuffer = fs.readFileSync(asset.path); + const fileBlob = new Blob([fileBuffer]); + formData.append("attachment", fileBlob, assetName); + formData.append("name", assetName); + const response = await fetch( + `${githubBaseUrl}/repos/${owner}/${repo}/releases/${releaseId}/assets`, + { + method: "POST", + headers: { + Authorization: `token ${process.env.GITHUB_TOKEN}`, + }, + body: formData, + }, + ); + if (!response.ok) { + throw new Error(`Failed to upload asset: ${response.statusText}`); + } + return response.json(); + } catch (error) { + console.log(error); + } + } else { + console.log(`Trying to upload ${assetName} to Github...`); + await retry( + () => + github.rest.repos.uploadReleaseAsset({ + headers, + name: assetName, + // GitHub renames the filename so we'll also set the label which it leaves as-is. + label: assetName, + // https://github.com/tauri-apps/tauri-action/pull/45 + // @ts-expect-error error TS2322: Type 'Buffer' is not assignable to type 'string'. + data: fs.createReadStream(asset.path), + owner, + repo, + release_id: releaseId, + }), + retryAttempts, + ); + } console.log(`${assetName} successfully uploaded.`); } From 4fd53555d57f7cf2537a6974a8b80c1bd901a2ad Mon Sep 17 00:00:00 2001 From: valerio Date: Sun, 15 Mar 2026 15:14:23 +0100 Subject: [PATCH 2/2] FIX: right formatter --- src/upload-release-assets.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/upload-release-assets.ts b/src/upload-release-assets.ts index 1f943a80a..650dee1bb 100644 --- a/src/upload-release-assets.ts +++ b/src/upload-release-assets.ts @@ -84,12 +84,12 @@ export async function uploadAssets( const formData = new FormData(); const fileBuffer = fs.readFileSync(asset.path); const fileBlob = new Blob([fileBuffer]); - formData.append("attachment", fileBlob, assetName); - formData.append("name", assetName); + formData.append('attachment', fileBlob, assetName); + formData.append('name', assetName); const response = await fetch( `${githubBaseUrl}/repos/${owner}/${repo}/releases/${releaseId}/assets`, { - method: "POST", + method: 'POST', headers: { Authorization: `token ${process.env.GITHUB_TOKEN}`, },