From c4bd54847aacede372719580d8527368f3dcde0c Mon Sep 17 00:00:00 2001 From: yosefAlsuhaibani Date: Tue, 16 Jun 2026 15:40:37 -0400 Subject: [PATCH 1/5] feat: `dune-cache` on windows via `vhdx` --- dist/cache.mjs | 185 +++++++++++++------------- packages/setup-ocaml/src/cache.ts | 19 +++ packages/setup-ocaml/src/constants.ts | 9 ++ packages/setup-ocaml/src/vhdx.ts | 76 +++++++++++ 4 files changed, 197 insertions(+), 92 deletions(-) create mode 100644 packages/setup-ocaml/src/vhdx.ts diff --git a/dist/cache.mjs b/dist/cache.mjs index 297ff20a..5819391f 100644 --- a/dist/cache.mjs +++ b/dist/cache.mjs @@ -1,64 +1,64 @@ -import{createRequire as e}from"node:module";import*as t from"node:process";import n from"node:process";import*as r from"os";import i,{EOL as a}from"os";import*as o from"crypto";import*as s from"fs";import{constants as c,existsSync as l,promises as u,readFileSync as d,writeFileSync as f}from"fs";import*as p from"path";import*as m from"http";import*as h from"https";import*as g from"events";import{EventEmitter as _}from"events";import v,{ok as y}from"assert";import*as b from"util";import x from"node:http";import{Readable as S,Transform as C}from"node:stream";import w from"node:buffer";import T,{inspect as E}from"node:util";import D from"node:zlib";import*as O from"node:crypto";import{createHmac as k}from"node:crypto";import{StringDecoder as A}from"string_decoder";import*as j from"child_process";import{setTimeout as M}from"timers";import*as N from"node:fs";import P,{promises as ee}from"node:fs";import*as te from"node:os";import ne,{EOL as F}from"node:os";import*as re from"stream";import{Readable as ie}from"stream";import*as I from"node:path";import{URL as ae}from"url";import oe from"node:https";import*as se from"buffer";import{Buffer as ce}from"buffer";import*as le from"node:fs/promises";var L=Object.create,ue=Object.defineProperty,de=Object.getOwnPropertyDescriptor,fe=Object.getOwnPropertyNames,pe=Object.getPrototypeOf,me=Object.prototype.hasOwnProperty,R=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),he=(e,t)=>{let n={};for(var r in e)ue(n,r,{get:e[r],enumerable:!0});return t||ue(n,Symbol.toStringTag,{value:`Module`}),n},ge=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=fe(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=de(t,s))||r.enumerable});return e},z=(e,t,n)=>(n=e==null?{}:L(pe(e)),ge(t||!e||!e.__esModule?ue(n,`default`,{value:e,enumerable:!0}):n,e)),B=e(import.meta.url);function _e(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}function ve(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function ye(e,t,n){let i=new xe(e,t,n);process.stdout.write(i.toString()+r.EOL)}function be(e,t=``){ye(e,{},t)}var xe=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=`::`+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${Ce(r)}`)}}return e+=`::${Se(this.message)}`,e}};function Se(e){return _e(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function Ce(e){return _e(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function we(e,t){let n=process.env[`GITHUB_${e}`];if(!n)throw Error(`Unable to find environment variable for file command ${e}`);if(!s.existsSync(n))throw Error(`Missing file at path: ${n}`);s.appendFileSync(n,`${_e(t)}${r.EOL}`,{encoding:`utf8`})}function Te(e,t){let n=`ghadelimiter_${o.randomUUID()}`,i=_e(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${r.EOL}${i}${r.EOL}${n}`}function Ee(e){let t=e.protocol===`https:`;if(De(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new ke(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new ke(`http://${n}`)}else return}function De(e){if(!e.hostname)return!1;let t=e.hostname;if(Oe(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function Oe(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var ke=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},Ae=R((e=>{B(`net`);var t=B(`tls`),n=B(`http`),r=B(`https`),i=B(`events`);B(`assert`);var a=B(`util`);e.httpOverHttp=o,e.httpsOverHttp=s,e.httpOverHttps=c,e.httpsOverHttps=l;function o(e){var t=new u(e);return t.request=n.request,t}function s(e){var t=new u(e);return t.request=n.request,t.createSocket=d,t.defaultPort=443,t}function c(e){var t=new u(e);return t.request=r.request,t}function l(e){var t=new u(e);return t.request=r.request,t.createSocket=d,t.defaultPort=443,t}function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=f(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},u.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=p({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),m(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){m(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){m(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return m(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),m(`tunneling socket could not be established, cause=%s -`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function d(e,n){var r=this;u.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=p({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=t.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,n(s)})}function f(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function p(e){for(var t=1,n=arguments.length;t{t.exports=Ae()})),Me=R(((e,t)=>{t.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`)}})),Ne=R(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var _=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let v=Symbol.for(`undici.error.UND_ERR_ABORT`);var y=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[v]===!0}[v]=!0};let b=Symbol.for(`undici.error.UND_ERR_ABORTED`);var x=class extends y{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[b]===!0}[b]=!0};let S=Symbol.for(`undici.error.UND_ERR_INFO`);var C=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[S]===!0}[S]=!0};let w=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var T=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[w]===!0}[w]=!0};let E=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var D=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[E]===!0}[E]=!0};let O=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var k=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[O]===!0}[O]=!0};let A=Symbol.for(`undici.error.UND_ERR_CLOSED`);var j=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[A]===!0}[A]=!0};let M=Symbol.for(`undici.error.UND_ERR_SOCKET`);var N=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[M]===!0}[M]=!0};let P=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var ee=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[P]===!0}[P]=!0};let te=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var ne=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[te]===!0}[te]=!0};let F=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var re=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[F]===!0}[F]=!0};let ie=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var I=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[ie]===!0}[ie]=!0};let ae=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var oe=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ae]===!0}[ae]=!0};let se=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var ce=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[se]===!0}[se]=!0};let le=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var L=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[le]===!0}[le]=!0};let ue=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:y,HTTPParserError:re,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:T,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:_,RequestAbortedError:x,ClientDestroyedError:k,ClientClosedError:j,InformationalError:C,SocketError:N,NotSupportedError:ee,ResponseContentLengthMismatchError:D,BalancedPoolMissingUpstreamError:ne,ResponseExceededMaxSizeError:I,RequestRetryError:oe,ResponseError:ce,SecureProxyConnectionError:L,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[ue]===!0}get[ue](){return!0}}}})),Pe=R(((e,t)=>{let n={},r=`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`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=Pe();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let n=B(`node:assert`),{kDestroyed:r,kBodyUsed:i,kListeners:a,kBody:o}=Me(),{IncomingMessage:s}=B(`node:http`),c=B(`node:stream`),l=B(`node:net`),{Blob:u}=B(`node:buffer`),d=B(`node:util`),{stringify:f}=B(`node:querystring`),{EventEmitter:p}=B(`node:events`),{InvalidArgumentError:m}=Ne(),{headerNameLowerCasedRecord:h}=Pe(),{tree:g}=Fe(),[_,v]=process.versions.node.split(`.`).map(e=>Number(e));var y=class{constructor(e){this[o]=e,this[i]=!1}async*[Symbol.asyncIterator](){n(!this[i],`disturbed`),this[i]=!0,yield*this[o]}};function b(e){return S(e)?(P(e)===0&&e.on(`data`,function(){n(!1)}),typeof e.readableDidRead!=`boolean`&&(e[i]=!1,p.prototype.on.call(e,`data`,function(){this[i]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&N(e)?new y(e):e}function x(){}function S(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function C(e){if(e===null)return!1;if(e instanceof u)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function w(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=f(t);return n&&(e+=`?`+n),e}function T(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function E(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function D(e){if(typeof e==`string`){if(e=new URL(e),!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new m(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&T(e.port)===!1)throw new m(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new m(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new m(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new m(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new m(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function O(e){if(e=D(e),e.pathname!==`/`||e.search||e.hash)throw new m(`invalid url`);return e}function k(e){if(e[0]===`[`){let t=e.indexOf(`]`);return n(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function A(e){if(!e)return null;n(typeof e==`string`);let t=k(e);return l.isIP(t)?``:t}function j(e){return JSON.parse(JSON.stringify(e))}function M(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function N(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function P(e){if(e==null)return 0;if(S(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(C(e))return e.size==null?null:e.size;else if(oe(e))return e.byteLength;return null}function ee(e){return e&&!!(e.destroyed||e[r]||c.isDestroyed?.(e))}function te(e,t){e==null||!S(e)||ee(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===s&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[r]=!0))}let ne=/timeout=(\d+)/;function F(e){let t=e.toString().match(ne);return t?parseInt(t[1],10)*1e3:null}function re(e){return typeof e==`string`?h[e]??e.toLowerCase():g.lookup(e)??e.toString(`latin1`).toLowerCase()}function ie(e){return g.lookup(e)??e.toString(`latin1`).toLowerCase()}function I(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function ae(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function fe(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function pe(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let me=typeof String.prototype.toWellFormed==`function`,R=typeof String.prototype.isWellFormed==`function`;function he(e){return me?`${e}`.toWellFormed():d.toUSVString(e)}function ge(e){return R?`${e}`.isWellFormed():he(e)===`${e}`}function z(e){switch(e){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!1;default:return e>=33&&e<=126}}function _e(e){if(e.length===0)return!1;for(let t=0;t{let n=B(`node:diagnostics_channel`),r=B(`node:util`),i=r.debuglog(`undici`),a=r.debuglog(`fetch`),o=r.debuglog(`websocket`),s=!1,c={beforeConnect:n.channel(`undici:client:beforeConnect`),connected:n.channel(`undici:client:connected`),connectError:n.channel(`undici:client:connectError`),sendHeaders:n.channel(`undici:client:sendHeaders`),create:n.channel(`undici:request:create`),bodySent:n.channel(`undici:request:bodySent`),headers:n.channel(`undici:request:headers`),trailers:n.channel(`undici:request:trailers`),error:n.channel(`undici:request:error`),open:n.channel(`undici:websocket:open`),close:n.channel(`undici:websocket:close`),socketError:n.channel(`undici:websocket:socket_error`),ping:n.channel(`undici:websocket:ping`),pong:n.channel(`undici:websocket:pong`)};if(i.enabled||a.enabled){let e=a.enabled?a:i;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),n.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),n.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),n.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),s=!0}if(o.enabled){if(!s){let e=i.enabled?i:o;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}n.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;o(`connection opened %s%s`,t,n?`:${n}`:``)}),n.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;o(`closed connection to %s - %s %s`,t.url,n,r)}),n.channel(`undici:websocket:socket_error`).subscribe(e=>{o(`connection errored - %s`,e.message)}),n.channel(`undici:websocket:ping`).subscribe(e=>{o(`ping received`)}),n.channel(`undici:websocket:pong`).subscribe(e=>{o(`pong received`)})}t.exports={channels:c}})),Le=R(((e,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=Ne(),i=B(`node:assert`),{isValidHTTPToken:a,isValidHeaderValue:o,isStream:s,destroy:c,isBuffer:l,isFormDataLike:u,isIterable:d,isBlobLike:f,buildURL:p,validateHandler:m,getServerName:h,normalizedMethodRecords:g}=V(),{channels:_}=Ie(),{headerNameLowerCasedRecord:v}=Pe(),y=/[^\u0021-\u00ff]/,b=Symbol(`handler`);var x=class{constructor(e,{path:t,method:r,body:i,headers:v,query:x,idempotent:C,blocking:w,upgrade:T,headersTimeout:E,bodyTimeout:D,reset:O,throwOnError:k,expectContinue:A,servername:j},M){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(y.test(t))throw new n(`invalid request path`);if(typeof r!=`string`)throw new n(`method must be a string`);if(g[r]===void 0&&!a(r))throw new n(`invalid request method`);if(T&&typeof T!=`string`)throw new n(`upgrade must be a string`);if(T&&!o(T))throw new n(`invalid upgrade header`);if(E!=null&&(!Number.isFinite(E)||E<0))throw new n(`invalid headersTimeout`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new n(`invalid bodyTimeout`);if(O!=null&&typeof O!=`boolean`)throw new n(`invalid reset`);if(A!=null&&typeof A!=`boolean`)throw new n(`invalid expectContinue`);if(this.headersTimeout=E,this.bodyTimeout=D,this.throwOnError=k===!0,this.method=r,this.abort=null,i==null)this.body=null;else if(s(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){c(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(l(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(u(i)||d(i)||f(i))this.body=i;else throw new n(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=T||null,this.path=x?p(t,x):t,this.origin=e,this.idempotent=C??(r===`HEAD`||r===`GET`),this.blocking=w??!1,this.reset=O??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(v)){if(v.length%2!=0)throw new n(`headers array must be even`);for(let e=0;e{let n=B(`node:events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new i(this,n)}},i=class extends r{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};t.exports=r})),ze=R(((e,t)=>{let n=Re(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=Ne(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=Me(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`),h=Symbol(`webSocketOptions`);t.exports=class extends n{constructor(e){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[],this[h]=e?.webSocket??{}}get webSocketOptions(){return{maxPayloadSize:this[h].maxPayloadSize??128*1024*1024}}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),Be=R(((e,t)=>{let n=0,r=1e3,i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),Ve=R(((e,t)=>{let n=B(`node:net`),r=B(`node:assert`),i=V(),{InvalidArgumentError:a,ConnectTimeoutError:o}=Ne(),s=Be();function c(){}let l,u;u=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function d({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:s,session:c,...d}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a positive integer or zero`);let p={path:o,...d},m=new u(t??100);return s??=1e4,e??=!1,function({hostname:t,host:a,protocol:o,port:u,servername:d,localAddress:h,httpSocket:g},_){let v;if(o===`https:`){l||=B(`node:tls`),d=d||p.servername||i.getServerName(a)||null;let n=d||t;r(n);let o=c||m.get(n)||null;u||=443,v=l.connect({highWaterMark:16384,...p,servername:d,session:o,localAddress:h,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:g,port:u,host:t}),v.on(`session`,function(e){m.set(n,e)})}else r(!g,`httpSocket can only be sent on TLS update`),u||=80,v=n.connect({highWaterMark:64*1024,...p,localAddress:h,port:u,host:t});if(p.keepAlive==null||p.keepAlive){let e=p.keepAliveInitialDelay===void 0?6e4:p.keepAliveInitialDelay;v.setKeepAlive(!0,e)}let y=f(new WeakRef(v),{timeout:s,hostname:t,port:u});return v.setNoDelay(!0).once(o===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(y),_){let e=_;_=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(y),_){let t=_;_=null,t(e)}}),v}}let f=process.platform===`win32`?(e,t)=>{if(!t.timeout)return c;let n=null,r=null,i=s.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>p(e.deref(),t))})},t.timeout);return()=>{s.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return c;let n=null,r=s.setFastTimeout(()=>{n=setImmediate(()=>{p(e.deref(),t)})},t.timeout);return()=>{s.clearFastTimeout(r),clearImmediate(n)}};function p(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,i.destroy(e,new o(n))}t.exports=d})),He=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),Ue=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=He();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.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},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),We=R(((e,t)=>{let{Buffer:n}=B(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZ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yNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAIAIoAhwiA0EBaw7dAdoBAdkBAgMEBQYHCAkKCwwNDtgB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kACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbXF1eX2BhYmNkZWZnaGpsb3Bxc3V2eHl6e3x/gAGBAYIBgwGEAYUBhgGHAYgBiQGKAYsBjAGNAY4BjwGQAZEBkgGT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ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgBCABa2ohBSABIABrQQhqIQYCQANAIAEtAAAgAEHQzwBqLQAARw1AIABBCEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAA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ANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhA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gAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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AJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQCADDsYBAAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHyAhIyUmKCorLC8wMTIzNDU2Nzk6Ozw9lANAQkRFRklLTk9QUVJTVFVWWFpbX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AFBAWohAUGKASEDDO8BCyABQQFqIQFBjwEhAwzuAQsgAUEBaiEBQZEBIQMM7QELQacBIQMgASAERg2FAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHtzwBqLQAARw1IIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyGAgsgAkEANgIAIAZBAWohAUERDEkLQagBIQMgASAERg2EAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHCzwBqLQAARw1HIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyFAgsgAkEANgIAIAZBAWohAUEsDEgLQakBIQMgASAERg2DAiACKAIAIgAgBCABa2ohBSABIABrQQRqIQYCQANAIAEtAAAgAEHFzwBqLQAARw1GIABBBEYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyEAgsgAkEANgIAIAZBAWohAUErDEcLQaoBIQMgASAERg2CAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHKzwBqLQAARw1FIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyDAgsgAkEANgIAIAZBAWohAUEUDEYLIAEgBEYEQEGrASEDDIICCwJAAkACQAJAIAEtAABBwgBrDg8AAQJHR0dHR0dHR0dHRwNHCyABQQFqIQFBkwEhAwzrAQsgAUEBaiEBQZQBIQMM6gELIAFBAWohAUGVASEDDOkBCyABQQFqIQFBlgEhAwzoAQsgASAERgRAQawBIQMMgQILIAEtAABBxQBHDUIgAUEBaiEBDD0LQa0BIQMgASAERg3/ASACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEHNzwBqLQAARw1CIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyAAgsgAkEANgIAIAZBAWohAUEODEMLIAEgBEYEQEGuASEDDP8BCyABLQAAQdAARw1AIAFBAWohAUElDEILQa8BIQMgASAERg39ASACKAIAIgAgB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CHCACIAE2AhQgAkGMHDYCECACQQc2AgxBACEDDLcBCyACQQA2AhwgAiABNgIUIAJBww82AhAgAkEHNgIMQQAhAwy2AQsgAkEANgIcIAIgATYCFCACQcMPNgIQIAJBBzYCDEEAIQMMtQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0RIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMtAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0gIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMswELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0iIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMsgELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0OIAJB5QA2AhwgAiABNgIUIAIgADYCDEEAIQMMsQELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0dIAJB0wA2AhwgAiABNgIUIAIgADYCDEEAIQMMsAELIAIoAgQhACACQQA2AgQgAiAAIAEQJSIARQ0fIAJB0gA2AhwgAiABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCAC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AoAgwiAyAARwRAQZzQACgCABogAyAAKAIIIgE2AgggASADNgIMDBALIABBFGoiAigCACIBRQRAIAAoAhAiAUUNAyAAQRBqIQILA0AgAiEHIAEiA0EUaiICKAIAIgENACADQRBqIQIgAygCECIBDQALIAdBADYCAAwPC0F/IQQgAEG/f0sNACAAQRNqIgFBcHEhBEGQ0AAoAgAiCEUNAEEAIARrIQUCQAJAAkACf0EAIARBgAJJDQAaQR8gBEH///8HSw0AGiAEQSYgAUEIdmciAGt2QQFxIABBAXRrQT5qCyIGQQJ0QbzSAGooAgAiAkUEQEEAIQFBACEDDAELQQAhASAEQRkgBkEBdmtBACAGQR9HG3QhAEEAIQMDQAJAIAIoAgRBeHEgBGsiByAFTw0AIAIhAyAHIgUNAEEAIQUgAiEBDAMLIAEgAkEUaigCACIHIAcgAiAAQR12QQRxakEQaigCACICRhsgASAHGyEBIABBAXQhACACDQALCyABIANyRQRAQQAhA0ECIAZ0IgBBACAAa3IgCHEiAEUNAyAAaEECdEG80gBqKAIAIQELIAFFDQELA0AgASgCBEF4cSAEayICIAVJIQAgAiAFIAAbIQUgASADIAAbIQMgASgCECIABH8gAAUgAUEUaigCAAsiAQ0ACwsgA0UNACAFQZTQACgCACAEa08NACADKAIYIQcgAyADKAIMIgBHBEBBnNAAKAIAGiAAIAMoAggiATYCCCABIAA2AgwMDgsgA0EUaiICKAIAIgFFBEAgAygCECIBRQ0DIANBEGohAgsDQCACIQYgASIAQRRqIgIoAgAiAQ0AIABBEGohAiAAKAIQIgENAAsgBkEANgIADA0LQZTQACgCACIDIARPBEBBoNAAKAIAIQECQCADIARrIgJBEE8EQCABIARqIgAgAkEBcjYCBCABIANqIAI2AgAgASAEQQNyNgIEDAELIAEgA0EDcjYCBCABIANqIgAgACgCBEEBcjYCBEEAIQBBACECC0GU0AAgAjYCAEGg0AAgADYCACABQQhqIQEMDwtBmNAAKAIAIgMgBEsEQCAEIAlqIgAgAyAEayIBQQFyNgIEQaTQACAANgIAQZjQACABNgIAI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5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),Ke=R(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],_=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],v=[`half`],y=[`CONNECT`,`TRACE`,`TRACK`],b=new Set(y),x=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:x,forbiddenMethods:y,requestBodyHeader:_,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:v,subresourceSet:new Set(x),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:b,referrerPolicySet:u}})),qe=R(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),Je=R(((e,t)=>{let n=B(`node:assert`),r=new TextEncoder,i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,a=/[\u000A\u000D\u0009\u0020]/,o=/[\u0009\u000A\u000C\u000D\u0020]/g,s=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function c(e){n(e.protocol===`data:`);let t=l(e,!0);t=t.slice(5);let r={position:0},i=d(`,`,t,r),a=i.length;if(i=C(i,!0,!0),r.position>=t.length)return`failure`;r.position++;let o=f(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=_(T(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=g(i);return s===`failure`&&(s=g(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function l(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function u(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function m(e){return e>=48&&e<=57?e-48:(e&223)-55}function h(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=d(`;`,e,t);if(r=x(r,!1,!0),r.length===0||!i.test(r))return`failure`;let o=n.toLowerCase(),c=r.toLowerCase(),l={type:o,subtype:c,parameters:new Map,essence:`${o}/${c}`};for(;t.positiona.test(e),e,t);let n=u(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=v(e,t,!0),d(`;`,e,t);else if(r=d(`;`,e,t),r=x(r,!1,!0),r.length===0)continue;n.length!==0&&i.test(n)&&(r.length===0||s.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function _(e){e=e.replace(o,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function v(e,t,r){let i=t.position,a=``;for(n(e[t.position]===`"`),t.position++;a+=u(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let r=e[t.position];if(t.position++,r===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{n(r===`"`);break}}return r?a:e.slice(i,t.position)}function y(e){n(e!==`failure`);let{parameters:t,essence:r}=e,a=r;for(let[e,n]of t.entries())a+=`;`,a+=e,a+=`=`,i.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),a+=n;return a}function b(e){return e===13||e===10||e===9||e===32}function x(e,t=!0,n=!0){return w(e,t,n,b)}function S(e){return e===13||e===10||e===9||e===12||e===32}function C(e,t=!0,n=!0){return w(e,t,n,S)}function w(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function T(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function E(e){switch(e.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`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}t.exports={dataURLProcessor:c,URLSerializer:l,collectASequenceOfCodePoints:u,collectASequenceOfCodePointsFast:d,stringPercentDecode:f,parseMIMEType:g,collectAnHTTPQuotedString:v,serializeAMimeType:y,removeChars:w,removeHTTPWhitespace:x,minimizeSupportedMimeType:E,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:T}})),Ye=R(((e,t)=>{let{types:n,inspect:r}=B(`node:util`),{markAsUncloneable:i}=B(`node:worker_threads`),{toUSVString:a}=V(),o={};o.converters={},o.util={},o.errors={},o.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},o.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return o.errors.exception({header:e.prefix,message:n})},o.errors.invalidArgument=function(e){return o.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},o.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},o.argumentLengthCheck=function({length:e},t,n){if(e{}),o.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let s=Number(e);if(s===0&&(s=0),r?.enforceRange===!0){if(Number.isNaN(s)||s===1/0||s===-1/0)throw o.errors.exception({header:`Integer conversion`,message:`Could not convert ${o.util.Stringify(e)} to an integer.`});if(s=o.util.IntegerPart(s),si)throw o.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${s}.`});return s}return!Number.isNaN(s)&&r?.clamp===!0?(s=Math.min(Math.max(s,a),i),s=Math.floor(s)%2==0?Math.floor(s):Math.ceil(s),s):Number.isNaN(s)||s===0&&Object.is(0,s)||s===1/0||s===-1/0?0:(s=o.util.IntegerPart(s),s%=2**t,n===`signed`&&s>=2**t-1?s-2**t:s)},o.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},o.util.Stringify=function(e){switch(o.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return r(e);case`String`:return`"${e}"`;default:return`${e}`}},o.sequenceConverter=function(e){return(t,n,r,i)=>{if(o.util.Type(t)!==`Object`)throw o.errors.exception({header:n,message:`${r} (${o.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),s=[],c=0;if(a===void 0||typeof a.next!=`function`)throw o.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;s.push(e(i,n,`${r}[${c++}]`))}return s}},o.recordConverter=function(e,t){return(r,i,a)=>{if(o.util.Type(r)!==`Object`)throw o.errors.exception({header:i,message:`${a} ("${o.util.Type(r)}") is not an Object.`});let s={};if(!n.isProxy(r)){let n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n){let n=e(o,i,a);s[n]=t(r[o],i,a)}return s}let c=Reflect.ownKeys(r);for(let n of c)if(Reflect.getOwnPropertyDescriptor(r,n)?.enumerable){let o=e(n,i,a);s[o]=t(r[n],i,a)}return s}},o.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw o.errors.exception({header:n,message:`Expected ${r} ("${o.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},o.dictionaryConverter=function(e){return(t,n,r)=>{let i=o.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw o.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:s,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw o.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=s()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw o.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},o.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},o.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw o.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},o.converters.ByteString=function(e,t,n){let r=o.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},o.converters.USVString=a,o.converters.boolean=function(e){return!!e},o.converters.any=function(e){return e},o.converters[`long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`signed`,void 0,t,n)},o.converters[`unsigned long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},o.converters[`unsigned long`]=function(e,t,n){return o.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},o.converters[`unsigned short`]=function(e,t,n,r){return o.util.ConvertToInt(e,16,`unsigned`,r,t,n)},o.converters.ArrayBuffer=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isAnyArrayBuffer(e))throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.TypedArray=function(e,t,r,i,a){if(o.util.Type(e)!==`Object`||!n.isTypedArray(e)||e.constructor.name!==t.name)throw o.errors.conversionFailed({prefix:r,argument:`${i} ("${o.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.DataView=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isDataView(e))throw o.errors.exception({header:t,message:`${r} is not a DataView.`});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.BufferSource=function(e,t,r,i){if(n.isAnyArrayBuffer(e))return o.converters.ArrayBuffer(e,t,r,{...i,allowShared:!1});if(n.isTypedArray(e))return o.converters.TypedArray(e,e.constructor,t,r,{...i,allowShared:!1});if(n.isDataView(e))return o.converters.DataView(e,t,r,{...i,allowShared:!1});throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`BufferSource`]})},o.converters[`sequence`]=o.sequenceConverter(o.converters.ByteString),o.converters[`sequence>`]=o.sequenceConverter(o.converters[`sequence`]),o.converters[`record`]=o.recordConverter(o.converters.ByteString,o.converters.ByteString),t.exports={webidl:o}})),Xe=R(((e,t)=>{let{Transform:n}=B(`node:stream`),r=B(`node:zlib`),{redirectStatusSet:i,referrerPolicySet:a,badPortsSet:o}=Ke(),{getGlobalOrigin:s}=qe(),{collectASequenceOfCodePoints:c,collectAnHTTPQuotedString:l,removeChars:u,parseMIMEType:d}=Je(),{performance:f}=B(`node:perf_hooks`),{isBlobLike:p,ReadableStreamFrom:m,isValidHTTPToken:h,normalizedMethodRecordsBase:g}=V(),_=B(`node:assert`),{isUint8Array:v}=B(`node:util/types`),{webidl:y}=Ye(),b=[],x;try{x=B(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];b=x.getHashes().filter(t=>e.includes(t))}catch{}function S(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function C(e,t){if(!i.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&j(n)&&(w(n)||(n=T(n)),n=new URL(n,S(e))),n&&!n.hash&&(n.hash=t),n}function w(e){for(let t=0;t126||n<32)return!1}return!0}function T(e){return Buffer.from(e,`binary`).toString(`utf8`)}function E(e){return e.urlList[e.urlList.length-1]}function D(e){let t=E(e);return je(t)&&o.has(t.port)?`blocked`:`allowed`}function O(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function k(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let A=h;function j(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` -`)||e.includes(`\r`)||e.includes(`\0`))===!1}function M(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(a.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function N(){return`allowed`}function P(){return`success`}function ee(){return`success`}function te(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function ne(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&Ae(e.origin)&&!Ae(E(e))&&(t=null);break;case`same-origin`:he(e,E(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function F(e,t){return e}function re(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=he(e,r),o=le(r)&&!le(e.url);switch(t){case`origin`:return i??ce(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=E(e);return he(r,t)?r:le(r)&&!le(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function ce(e,t){return _(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function le(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function L(e,t){if(x===void 0)return!0;let n=de(t);if(n===`no metadata`||n.length===0)return!0;let r=pe(n,fe(n));for(let t of r){let n=t.algo,r=t.hash,i=x.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),me(i,r))return!0}return!1}let ue=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function de(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=ue.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();b.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function fe(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function z(e){return e.controller.state===`aborted`}function _e(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function ve(e){return g[e.toLowerCase()]??e}function ye(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return _(typeof t==`string`),t}let be=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function xe(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,be),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function Se(e,t,n,r=0,i=1){let a=xe(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(y.brandCheck(this,t),y.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function Ce(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await Oe(a))}catch(e){i(e)}}function we(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function Te(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let Ee=/[^\x00-\xFF]/;function De(e){return _(!Ee.test(e)),e}async function Oe(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!v(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function ke(e){_(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function Ae(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function je(e){_(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function Me(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let i=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let o=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Ne(e,t,n){let r=`bytes `;return r+=De(`${e}`),r+=`-`,r+=De(`${t}`),r+=`/`,r+=De(`${n}`),r}var Pe=class extends n{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?r.createInflate(this.#e):r.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Fe(e){return new Pe(e)}function Ie(e){let t=null,n=null,r=null,i=Re(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=d(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function Le(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Re(e,t){let n=t.get(e,!0);return n===null?null:Le(n)}let ze=new TextDecoder;function Be(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),ze.decode(e))}var Ve=class{get baseUrl(){return s()}get origin(){return this.baseUrl?.origin}policyContainer=ae()};t.exports={isAborted:z,isCancelled:_e,isValidEncodedURL:w,createDeferredPromise:ge,ReadableStreamFrom:m,tryUpgradeRequestToAPotentiallyTrustworthyURL:R,clampAndCoarsenConnectionTimingInfo:re,coarsenedSharedCurrentTime:ie,determineRequestsReferrer:se,makePolicyContainer:ae,clonePolicyContainer:oe,appendFetchMetadata:te,appendRequestOriginHeader:ne,TAOCheck:ee,corsCheck:P,crossOriginResourcePolicyCheck:N,createOpaqueTimingInfo:I,setRequestReferrerPolicyOnRedirect:M,isValidHTTPToken:h,requestBadPort:D,requestCurrentURL:E,responseURL:S,responseLocationURL:C,isBlobLike:p,isURLPotentiallyTrustworthy:le,isValidReasonPhrase:k,sameOrigin:he,normalizeMethod:ve,serializeJavascriptValueToJSONString:ye,iteratorMixin:Se,createIterator:xe,isValidHeaderName:A,isValidHeaderValue:j,isErrorLike:O,fullyReadBody:Ce,bytesMatch:L,isReadableStreamLike:we,readableStreamClose:Te,isomorphicEncode:De,urlIsLocal:ke,urlHasHttpsScheme:Ae,urlIsHttpHttpsScheme:je,readAllBytes:Oe,simpleRangeHeaderValue:Me,buildContentRange:Ne,parseMetadata:de,createInflate:Fe,extractMimeType:Ie,getDecodeSplit:Re,utf8DecodeBytes:Be,environmentSettingsObject:new class{settingsObject=new Ve}}})),Ze=R(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),Qe=R(((e,t)=>{let{Blob:n,File:r}=B(`node:buffer`),{kState:i}=Ze(),{webidl:a}=Ye();var o=class e{constructor(e,t,n={}){let r=t,a=n.type,o=n.lastModified??Date.now();this[i]={blobLike:e,name:r,type:a,lastModified:o}}stream(...t){return a.brandCheck(this,e),this[i].blobLike.stream(...t)}arrayBuffer(...t){return a.brandCheck(this,e),this[i].blobLike.arrayBuffer(...t)}slice(...t){return a.brandCheck(this,e),this[i].blobLike.slice(...t)}text(...t){return a.brandCheck(this,e),this[i].blobLike.text(...t)}get size(){return a.brandCheck(this,e),this[i].blobLike.size}get type(){return a.brandCheck(this,e),this[i].blobLike.type}get name(){return a.brandCheck(this,e),this[i].name}get lastModified(){return a.brandCheck(this,e),this[i].lastModified}get[Symbol.toStringTag](){return`File`}};a.converters.Blob=a.interfaceConverter(n);function s(e){return e instanceof r||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}t.exports={FileLike:o,isFileLike:s}})),$e=R(((e,t)=>{let{isBlobLike:n,iteratorMixin:r}=Xe(),{kState:i}=Ze(),{kEnumerableProperty:a}=V(),{FileLike:o,isFileLike:s}=Qe(),{webidl:c}=Ye(),{File:l}=B(`node:buffer`),u=B(`node:util`),d=globalThis.File??l;var f=class e{constructor(e){if(c.util.markAsUncloneable(this),e!==void 0)throw c.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[i]=[]}append(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.append`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`value`,{strict:!1}):c.converters.USVString(r,o,`value`),a=arguments.length===3?c.converters.USVString(a,o,`filename`):void 0;let s=p(t,r,a);this[i].push(s)}delete(t){c.brandCheck(this,e);let n=`FormData.delete`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i]=this[i].filter(e=>e.name!==t)}get(t){c.brandCheck(this,e);let n=`FormData.get`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`);let r=this[i].findIndex(e=>e.name===t);return r===-1?null:this[i][r].value}getAll(t){c.brandCheck(this,e);let n=`FormData.getAll`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].filter(e=>e.name===t).map(e=>e.value)}has(t){c.brandCheck(this,e);let n=`FormData.has`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].findIndex(e=>e.name===t)!==-1}set(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.set`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`name`,{strict:!1}):c.converters.USVString(r,o,`name`),a=arguments.length===3?c.converters.USVString(a,o,`name`):void 0;let s=p(t,r,a),l=this[i].findIndex(e=>e.name===t);l===-1?this[i].push(s):this[i]=[...this[i].slice(0,l),s,...this[i].slice(l+1).filter(e=>e.name!==t)]}[u.inspect.custom](e,t){let n=this[i].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=u.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};r(`FormData`,f,i,`name`,`value`),Object.defineProperties(f.prototype,{append:a,delete:a,get:a,getAll:a,has:a,set:a,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function p(e,t,n){if(typeof t!=`string`&&(s(t)||(t=t instanceof Blob?new d([t],`blob`,{type:t.type}):new o(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof l?new d([t],n,e):new o(t,n,e)}return{name:e,value:t}}t.exports={FormData:f,makeEntry:p}})),et=R(((e,t)=>{let{isUSVString:n,bufferToLowerCasedHeaderName:r}=V(),{utf8DecodeBytes:i}=Xe(),{HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:o}=Je(),{isFileLike:s}=Qe(),{makeEntry:c}=$e(),l=B(`node:assert`),{File:u}=B(`node:buffer`),d=globalThis.File??u,f=Buffer.from(`form-data; name="`),p=Buffer.from(`; filename`),m=Buffer.from(`--`),h=Buffer.from(`--\r +import{createRequire as e}from"node:module";import*as t from"node:process";import n from"node:process";import*as r from"os";import i,{EOL as a}from"os";import*as o from"crypto";import*as s from"fs";import{constants as c,existsSync as l,promises as u,readFileSync as d,writeFileSync as f}from"fs";import*as p from"path";import*as m from"http";import*as h from"https";import*as g from"events";import{EventEmitter as _}from"events";import v,{ok as y}from"assert";import*as b from"util";import x from"node:http";import{Readable as S,Transform as C}from"node:stream";import w from"node:buffer";import T,{inspect as E}from"node:util";import D from"node:zlib";import*as O from"node:crypto";import{createHmac as k}from"node:crypto";import{StringDecoder as A}from"string_decoder";import*as j from"child_process";import{setTimeout as M}from"timers";import*as N from"node:fs";import P,{promises as F}from"node:fs";import*as ee from"node:os";import te,{EOL as I}from"node:os";import*as ne from"stream";import{Readable as re}from"stream";import*as L from"node:path";import{URL as ie}from"url";import ae from"node:https";import*as oe from"buffer";import{Buffer as se}from"buffer";import*as ce from"node:fs/promises";var R=Object.create,le=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,de=Object.getOwnPropertyNames,fe=Object.getPrototypeOf,pe=Object.prototype.hasOwnProperty,z=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),me=(e,t)=>{let n={};for(var r in e)le(n,r,{get:e[r],enumerable:!0});return t||le(n,Symbol.toStringTag,{value:`Module`}),n},he=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=de(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=ue(t,s))||r.enumerable});return e},B=(e,t,n)=>(n=e==null?{}:R(fe(e)),he(t||!e||!e.__esModule?le(n,`default`,{value:e,enumerable:!0}):n,e)),V=e(import.meta.url);function ge(e){return e==null?``:typeof e==`string`||e instanceof String?e:JSON.stringify(e)}function _e(e){return Object.keys(e).length?{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}:{}}function ve(e,t,n){let i=new be(e,t,n);process.stdout.write(i.toString()+r.EOL)}function ye(e,t=``){ve(e,{},t)}var be=class{constructor(e,t,n){e||=`missing.command`,this.command=e,this.properties=t,this.message=n}toString(){let e=`::`+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=` `;let t=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let r=this.properties[n];r&&(t?t=!1:e+=`,`,e+=`${n}=${Se(r)}`)}}return e+=`::${xe(this.message)}`,e}};function xe(e){return ge(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`)}function Se(e){return ge(e).replace(/%/g,`%25`).replace(/\r/g,`%0D`).replace(/\n/g,`%0A`).replace(/:/g,`%3A`).replace(/,/g,`%2C`)}function Ce(e,t){let n=process.env[`GITHUB_${e}`];if(!n)throw Error(`Unable to find environment variable for file command ${e}`);if(!s.existsSync(n))throw Error(`Missing file at path: ${n}`);s.appendFileSync(n,`${ge(t)}${r.EOL}`,{encoding:`utf8`})}function we(e,t){let n=`ghadelimiter_${o.randomUUID()}`,i=ge(t);if(e.includes(n))throw Error(`Unexpected input: name should not contain the delimiter "${n}"`);if(i.includes(n))throw Error(`Unexpected input: value should not contain the delimiter "${n}"`);return`${e}<<${n}${r.EOL}${i}${r.EOL}${n}`}function Te(e){let t=e.protocol===`https:`;if(Ee(e))return;let n=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(n)try{return new Oe(n)}catch{if(!n.startsWith(`http://`)&&!n.startsWith(`https://`))return new Oe(`http://${n}`)}else return}function Ee(e){if(!e.hostname)return!1;let t=e.hostname;if(De(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let r;e.port?r=Number(e.port):e.protocol===`http:`?r=80:e.protocol===`https:`&&(r=443);let i=[e.hostname.toUpperCase()];typeof r==`number`&&i.push(`${i[0]}:${r}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||i.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function De(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var Oe=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}},ke=z((e=>{V(`net`);var t=V(`tls`),n=V(`http`),r=V(`https`),i=V(`events`);V(`assert`);var a=V(`util`);e.httpOverHttp=o,e.httpsOverHttp=s,e.httpOverHttps=c,e.httpsOverHttps=l;function o(e){var t=new u(e);return t.request=n.request,t}function s(e){var t=new u(e);return t.request=n.request,t.createSocket=d,t.defaultPort=443,t}function c(e){var t=new u(e);return t.request=r.request,t}function l(e){var t=new u(e);return t.request=r.request,t.createSocket=d,t.defaultPort=443,t}function u(e){var t=this;t.options=e||{},t.proxyOptions=t.options.proxy||{},t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets,t.requests=[],t.sockets=[],t.on(`free`,function(e,n,r,i){for(var a=f(n,r,i),o=0,s=t.requests.length;o=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(t){t.on(`free`,n),t.on(`close`,r),t.on(`agentRemove`,r),e.onSocket(t);function n(){i.emit(`free`,t,a)}function r(e){i.removeSocket(t),t.removeListener(`free`,n),t.removeListener(`close`,r),t.removeListener(`agentRemove`,r)}})},u.prototype.createSocket=function(e,t){var n=this,r={};n.sockets.push(r);var i=p({},n.proxyOptions,{method:`CONNECT`,path:e.host+`:`+e.port,agent:!1,headers:{host:e.host+`:`+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers[`Proxy-Authorization`]=`Basic `+new Buffer(i.proxyAuth).toString(`base64`)),m(`making CONNECT request`);var a=n.request(i);a.useChunkedEncodingByDefault=!1,a.once(`response`,o),a.once(`upgrade`,s),a.once(`connect`,c),a.once(`error`,l),a.end();function o(e){e.upgrade=!0}function s(e,t,n){process.nextTick(function(){c(e,t,n)})}function c(i,o,s){if(a.removeAllListeners(),o.removeAllListeners(),i.statusCode!==200){m(`tunneling socket could not be established, statusCode=%d`,i.statusCode),o.destroy();var c=Error(`tunneling socket could not be established, statusCode=`+i.statusCode);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}if(s.length>0){m(`got illegal response body from proxy`),o.destroy();var c=Error(`got illegal response body from proxy`);c.code=`ECONNRESET`,e.request.emit(`error`,c),n.removeSocket(r);return}return m(`tunneling connection has established`),n.sockets[n.sockets.indexOf(r)]=o,t(o)}function l(t){a.removeAllListeners(),m(`tunneling socket could not be established, cause=%s +`,t.message,t.stack);var i=Error(`tunneling socket could not be established, cause=`+t.message);i.code=`ECONNRESET`,e.request.emit(`error`,i),n.removeSocket(r)}},u.prototype.removeSocket=function(e){var t=this.sockets.indexOf(e);if(t!==-1){this.sockets.splice(t,1);var n=this.requests.shift();n&&this.createSocket(n,function(e){n.request.onSocket(e)})}};function d(e,n){var r=this;u.prototype.createSocket.call(r,e,function(i){var a=e.request.getHeader(`host`),o=p({},r.options,{socket:i,servername:a?a.replace(/:.*$/,``):e.host}),s=t.connect(0,o);r.sockets[r.sockets.indexOf(i)]=s,n(s)})}function f(e,t,n){return typeof e==`string`?{host:e,port:t,localAddress:n}:e}function p(e){for(var t=1,n=arguments.length;t{t.exports=ke()})),je=z(((e,t)=>{t.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`)}})),Me=z(((e,t)=>{let n=Symbol.for(`undici.error.UND_ERR`);var r=class extends Error{constructor(e){super(e),this.name=`UndiciError`,this.code=`UND_ERR`}static[Symbol.hasInstance](e){return e&&e[n]===!0}[n]=!0};let i=Symbol.for(`undici.error.UND_ERR_CONNECT_TIMEOUT`);var a=class extends r{constructor(e){super(e),this.name=`ConnectTimeoutError`,this.message=e||`Connect Timeout Error`,this.code=`UND_ERR_CONNECT_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[i]===!0}[i]=!0};let o=Symbol.for(`undici.error.UND_ERR_HEADERS_TIMEOUT`);var s=class extends r{constructor(e){super(e),this.name=`HeadersTimeoutError`,this.message=e||`Headers Timeout Error`,this.code=`UND_ERR_HEADERS_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[o]===!0}[o]=!0};let c=Symbol.for(`undici.error.UND_ERR_HEADERS_OVERFLOW`);var l=class extends r{constructor(e){super(e),this.name=`HeadersOverflowError`,this.message=e||`Headers Overflow Error`,this.code=`UND_ERR_HEADERS_OVERFLOW`}static[Symbol.hasInstance](e){return e&&e[c]===!0}[c]=!0};let u=Symbol.for(`undici.error.UND_ERR_BODY_TIMEOUT`);var d=class extends r{constructor(e){super(e),this.name=`BodyTimeoutError`,this.message=e||`Body Timeout Error`,this.code=`UND_ERR_BODY_TIMEOUT`}static[Symbol.hasInstance](e){return e&&e[u]===!0}[u]=!0};let f=Symbol.for(`undici.error.UND_ERR_RESPONSE_STATUS_CODE`);var p=class extends r{constructor(e,t,n,r){super(e),this.name=`ResponseStatusCodeError`,this.message=e||`Response Status Code Error`,this.code=`UND_ERR_RESPONSE_STATUS_CODE`,this.body=r,this.status=t,this.statusCode=t,this.headers=n}static[Symbol.hasInstance](e){return e&&e[f]===!0}[f]=!0};let m=Symbol.for(`undici.error.UND_ERR_INVALID_ARG`);var h=class extends r{constructor(e){super(e),this.name=`InvalidArgumentError`,this.message=e||`Invalid Argument Error`,this.code=`UND_ERR_INVALID_ARG`}static[Symbol.hasInstance](e){return e&&e[m]===!0}[m]=!0};let g=Symbol.for(`undici.error.UND_ERR_INVALID_RETURN_VALUE`);var _=class extends r{constructor(e){super(e),this.name=`InvalidReturnValueError`,this.message=e||`Invalid Return Value Error`,this.code=`UND_ERR_INVALID_RETURN_VALUE`}static[Symbol.hasInstance](e){return e&&e[g]===!0}[g]=!0};let v=Symbol.for(`undici.error.UND_ERR_ABORT`);var y=class extends r{constructor(e){super(e),this.name=`AbortError`,this.message=e||`The operation was aborted`,this.code=`UND_ERR_ABORT`}static[Symbol.hasInstance](e){return e&&e[v]===!0}[v]=!0};let b=Symbol.for(`undici.error.UND_ERR_ABORTED`);var x=class extends y{constructor(e){super(e),this.name=`AbortError`,this.message=e||`Request aborted`,this.code=`UND_ERR_ABORTED`}static[Symbol.hasInstance](e){return e&&e[b]===!0}[b]=!0};let S=Symbol.for(`undici.error.UND_ERR_INFO`);var C=class extends r{constructor(e){super(e),this.name=`InformationalError`,this.message=e||`Request information`,this.code=`UND_ERR_INFO`}static[Symbol.hasInstance](e){return e&&e[S]===!0}[S]=!0};let w=Symbol.for(`undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`);var T=class extends r{constructor(e){super(e),this.name=`RequestContentLengthMismatchError`,this.message=e||`Request body length does not match content-length header`,this.code=`UND_ERR_REQ_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[w]===!0}[w]=!0};let E=Symbol.for(`undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH`);var D=class extends r{constructor(e){super(e),this.name=`ResponseContentLengthMismatchError`,this.message=e||`Response body length does not match content-length header`,this.code=`UND_ERR_RES_CONTENT_LENGTH_MISMATCH`}static[Symbol.hasInstance](e){return e&&e[E]===!0}[E]=!0};let O=Symbol.for(`undici.error.UND_ERR_DESTROYED`);var k=class extends r{constructor(e){super(e),this.name=`ClientDestroyedError`,this.message=e||`The client is destroyed`,this.code=`UND_ERR_DESTROYED`}static[Symbol.hasInstance](e){return e&&e[O]===!0}[O]=!0};let A=Symbol.for(`undici.error.UND_ERR_CLOSED`);var j=class extends r{constructor(e){super(e),this.name=`ClientClosedError`,this.message=e||`The client is closed`,this.code=`UND_ERR_CLOSED`}static[Symbol.hasInstance](e){return e&&e[A]===!0}[A]=!0};let M=Symbol.for(`undici.error.UND_ERR_SOCKET`);var N=class extends r{constructor(e,t){super(e),this.name=`SocketError`,this.message=e||`Socket error`,this.code=`UND_ERR_SOCKET`,this.socket=t}static[Symbol.hasInstance](e){return e&&e[M]===!0}[M]=!0};let P=Symbol.for(`undici.error.UND_ERR_NOT_SUPPORTED`);var F=class extends r{constructor(e){super(e),this.name=`NotSupportedError`,this.message=e||`Not supported error`,this.code=`UND_ERR_NOT_SUPPORTED`}static[Symbol.hasInstance](e){return e&&e[P]===!0}[P]=!0};let ee=Symbol.for(`undici.error.UND_ERR_BPL_MISSING_UPSTREAM`);var te=class extends r{constructor(e){super(e),this.name=`MissingUpstreamError`,this.message=e||`No upstream has been added to the BalancedPool`,this.code=`UND_ERR_BPL_MISSING_UPSTREAM`}static[Symbol.hasInstance](e){return e&&e[ee]===!0}[ee]=!0};let I=Symbol.for(`undici.error.UND_ERR_HTTP_PARSER`);var ne=class extends Error{constructor(e,t,n){super(e),this.name=`HTTPParserError`,this.code=t?`HPE_${t}`:void 0,this.data=n?n.toString():void 0}static[Symbol.hasInstance](e){return e&&e[I]===!0}[I]=!0};let re=Symbol.for(`undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE`);var L=class extends r{constructor(e){super(e),this.name=`ResponseExceededMaxSizeError`,this.message=e||`Response content exceeded max size`,this.code=`UND_ERR_RES_EXCEEDED_MAX_SIZE`}static[Symbol.hasInstance](e){return e&&e[re]===!0}[re]=!0};let ie=Symbol.for(`undici.error.UND_ERR_REQ_RETRY`);var ae=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`RequestRetryError`,this.message=e||`Request retry error`,this.code=`UND_ERR_REQ_RETRY`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[ie]===!0}[ie]=!0};let oe=Symbol.for(`undici.error.UND_ERR_RESPONSE`);var se=class extends r{constructor(e,t,{headers:n,data:r}){super(e),this.name=`ResponseError`,this.message=e||`Response error`,this.code=`UND_ERR_RESPONSE`,this.statusCode=t,this.data=r,this.headers=n}static[Symbol.hasInstance](e){return e&&e[oe]===!0}[oe]=!0};let ce=Symbol.for(`undici.error.UND_ERR_PRX_TLS`);var R=class extends r{constructor(e,t,n){super(t,{cause:e,...n??{}}),this.name=`SecureProxyConnectionError`,this.message=t||`Secure Proxy Connection failed`,this.code=`UND_ERR_PRX_TLS`,this.cause=e}static[Symbol.hasInstance](e){return e&&e[ce]===!0}[ce]=!0};let le=Symbol.for(`undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`);t.exports={AbortError:y,HTTPParserError:ne,UndiciError:r,HeadersTimeoutError:s,HeadersOverflowError:l,BodyTimeoutError:d,RequestContentLengthMismatchError:T,ConnectTimeoutError:a,ResponseStatusCodeError:p,InvalidArgumentError:h,InvalidReturnValueError:_,RequestAbortedError:x,ClientDestroyedError:k,ClientClosedError:j,InformationalError:C,SocketError:N,NotSupportedError:F,ResponseContentLengthMismatchError:D,BalancedPoolMissingUpstreamError:te,ResponseExceededMaxSizeError:L,RequestRetryError:ae,ResponseError:se,SecureProxyConnectionError:R,MessageSizeExceededError:class extends r{constructor(e){super(e),this.name=`MessageSizeExceededError`,this.message=e||`Max decompressed message size exceeded`,this.code=`UND_ERR_WS_MESSAGE_SIZE_EXCEEDED`}static[Symbol.hasInstance](e){return e&&e[le]===!0}get[le](){return!0}}}})),Ne=z(((e,t)=>{let n={},r=`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`.split(`.`);for(let e=0;e{let{wellknownHeaderNames:n,headerNameLowerCasedRecord:r}=Ne();var i=class e{value=null;left=null;middle=null;right=null;code;constructor(t,n,r){if(r===void 0||r>=t.length)throw TypeError(`Unreachable`);if((this.code=t.charCodeAt(r))>127)throw TypeError(`key must be ascii string`);t.length===++r?this.value=n:this.middle=new e(t,n,r)}add(t,n){let r=t.length;if(r===0)throw TypeError(`Unreachable`);let i=0,a=this;for(;;){let o=t.charCodeAt(i);if(o>127)throw TypeError(`key must be ascii string`);if(a.code===o)if(r===++i){a.value=n;break}else if(a.middle!==null)a=a.middle;else{a.middle=new e(t,n,i);break}else if(a.code=65&&(i|=32);r!==null;){if(i===r.code){if(t===++n)return r;r=r.middle;break}r=r.code{let n=V(`node:assert`),{kDestroyed:r,kBodyUsed:i,kListeners:a,kBody:o}=je(),{IncomingMessage:s}=V(`node:http`),c=V(`node:stream`),l=V(`node:net`),{Blob:u}=V(`node:buffer`),d=V(`node:util`),{stringify:f}=V(`node:querystring`),{EventEmitter:p}=V(`node:events`),{InvalidArgumentError:m}=Me(),{headerNameLowerCasedRecord:h}=Ne(),{tree:g}=Pe(),[_,v]=process.versions.node.split(`.`).map(e=>Number(e));var y=class{constructor(e){this[o]=e,this[i]=!1}async*[Symbol.asyncIterator](){n(!this[i],`disturbed`),this[i]=!0,yield*this[o]}};function b(e){return S(e)?(P(e)===0&&e.on(`data`,function(){n(!1)}),typeof e.readableDidRead!=`boolean`&&(e[i]=!1,p.prototype.on.call(e,`data`,function(){this[i]=!0})),e):e&&typeof e.pipeTo==`function`||e&&typeof e!=`string`&&!ArrayBuffer.isView(e)&&N(e)?new y(e):e}function x(){}function S(e){return e&&typeof e==`object`&&typeof e.pipe==`function`&&typeof e.on==`function`}function C(e){if(e===null)return!1;if(e instanceof u)return!0;if(typeof e!=`object`)return!1;{let t=e[Symbol.toStringTag];return(t===`Blob`||t===`File`)&&(`stream`in e&&typeof e.stream==`function`||`arrayBuffer`in e&&typeof e.arrayBuffer==`function`)}}function w(e,t){if(e.includes(`?`)||e.includes(`#`))throw Error(`Query params cannot be passed when url already contains "?" or "#".`);let n=f(t);return n&&(e+=`?`+n),e}function T(e){let t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function E(e){return e!=null&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&(e[4]===`:`||e[4]===`s`&&e[5]===`:`)}function D(e){if(typeof e==`string`){if(e=new URL(e),!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}if(!e||typeof e!=`object`)throw new m(`Invalid URL: The URL argument must be a non-null object.`);if(!(e instanceof URL)){if(e.port!=null&&e.port!==``&&T(e.port)===!1)throw new m(`Invalid URL: port must be a valid integer or a string representation of an integer.`);if(e.path!=null&&typeof e.path!=`string`)throw new m(`Invalid URL path: the path must be a string or null/undefined.`);if(e.pathname!=null&&typeof e.pathname!=`string`)throw new m(`Invalid URL pathname: the pathname must be a string or null/undefined.`);if(e.hostname!=null&&typeof e.hostname!=`string`)throw new m(`Invalid URL hostname: the hostname must be a string or null/undefined.`);if(e.origin!=null&&typeof e.origin!=`string`)throw new m(`Invalid URL origin: the origin must be a string or null/undefined.`);if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");let t=e.port==null?e.protocol===`https:`?443:80:e.port,n=e.origin==null?`${e.protocol||``}//${e.hostname||``}:${t}`:e.origin,r=e.path==null?`${e.pathname||``}${e.search||``}`:e.path;return n[n.length-1]===`/`&&(n=n.slice(0,n.length-1)),r&&r[0]!==`/`&&(r=`/${r}`),new URL(`${n}${r}`)}if(!E(e.origin||e.protocol))throw new m("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e}function O(e){if(e=D(e),e.pathname!==`/`||e.search||e.hash)throw new m(`invalid url`);return e}function k(e){if(e[0]===`[`){let t=e.indexOf(`]`);return n(t!==-1),e.substring(1,t)}let t=e.indexOf(`:`);return t===-1?e:e.substring(0,t)}function A(e){if(!e)return null;n(typeof e==`string`);let t=k(e);return l.isIP(t)?``:t}function j(e){return JSON.parse(JSON.stringify(e))}function M(e){return e!=null&&typeof e[Symbol.asyncIterator]==`function`}function N(e){return e!=null&&(typeof e[Symbol.iterator]==`function`||typeof e[Symbol.asyncIterator]==`function`)}function P(e){if(e==null)return 0;if(S(e)){let t=e._readableState;return t&&t.objectMode===!1&&t.ended===!0&&Number.isFinite(t.length)?t.length:null}else if(C(e))return e.size==null?null:e.size;else if(ae(e))return e.byteLength;return null}function F(e){return e&&!!(e.destroyed||e[r]||c.isDestroyed?.(e))}function ee(e,t){e==null||!S(e)||F(e)||(typeof e.destroy==`function`?(Object.getPrototypeOf(e).constructor===s&&(e.socket=null),e.destroy(t)):t&&queueMicrotask(()=>{e.emit(`error`,t)}),e.destroyed!==!0&&(e[r]=!0))}let te=/timeout=(\d+)/;function I(e){let t=e.toString().match(te);return t?parseInt(t[1],10)*1e3:null}function ne(e){return typeof e==`string`?h[e]??e.toLowerCase():g.lookup(e)??e.toString(`latin1`).toLowerCase()}function re(e){return g.lookup(e)??e.toString(`latin1`).toLowerCase()}function L(e,t){t===void 0&&(t={});for(let n=0;ne.toString(`utf8`)):i.toString(`utf8`)}}return`content-length`in t&&`content-disposition`in t&&(t[`content-disposition`]=Buffer.from(t[`content-disposition`]).toString(`latin1`)),t}function ie(e){let t=e.length,n=Array(t),r=!1,i=-1,a,o,s=0;for(let t=0;t{e.close(),e.byobRequest?.respond(0)});else{let t=Buffer.isBuffer(r)?r:Buffer.from(r);t.byteLength&&e.enqueue(new Uint8Array(t))}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}function de(e){return e&&typeof e==`object`&&typeof e.append==`function`&&typeof e.delete==`function`&&typeof e.get==`function`&&typeof e.getAll==`function`&&typeof e.has==`function`&&typeof e.set==`function`&&e[Symbol.toStringTag]===`FormData`}function fe(e,t){return`addEventListener`in e?(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)):(e.addListener(`abort`,t),()=>e.removeListener(`abort`,t))}let pe=typeof String.prototype.toWellFormed==`function`,z=typeof String.prototype.isWellFormed==`function`;function me(e){return pe?`${e}`.toWellFormed():d.toUSVString(e)}function he(e){return z?`${e}`.isWellFormed():me(e)===`${e}`}function B(e){switch(e){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!1;default:return e>=33&&e<=126}}function ge(e){if(e.length===0)return!1;for(let t=0;t{let n=V(`node:diagnostics_channel`),r=V(`node:util`),i=r.debuglog(`undici`),a=r.debuglog(`fetch`),o=r.debuglog(`websocket`),s=!1,c={beforeConnect:n.channel(`undici:client:beforeConnect`),connected:n.channel(`undici:client:connected`),connectError:n.channel(`undici:client:connectError`),sendHeaders:n.channel(`undici:client:sendHeaders`),create:n.channel(`undici:request:create`),bodySent:n.channel(`undici:request:bodySent`),headers:n.channel(`undici:request:headers`),trailers:n.channel(`undici:request:trailers`),error:n.channel(`undici:request:error`),open:n.channel(`undici:websocket:open`),close:n.channel(`undici:websocket:close`),socketError:n.channel(`undici:websocket:socket_error`),ping:n.channel(`undici:websocket:ping`),pong:n.channel(`undici:websocket:pong`)};if(i.enabled||a.enabled){let e=a.enabled?a:i;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s using %s%s`,`${a}${i?`:${i}`:``}`,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s using %s%s errored - %s`,`${a}${i?`:${i}`:``}`,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)}),n.channel(`undici:request:headers`).subscribe(t=>{let{request:{method:n,path:r,origin:i},response:{statusCode:a}}=t;e(`received response to %s %s/%s - HTTP %d`,n,i,r,a)}),n.channel(`undici:request:trailers`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`trailers received from %s %s/%s`,n,i,r)}),n.channel(`undici:request:error`).subscribe(t=>{let{request:{method:n,path:r,origin:i},error:a}=t;e(`request to %s %s/%s errored - %s`,n,i,r,a.message)}),s=!0}if(o.enabled){if(!s){let e=i.enabled?i:o;n.channel(`undici:client:beforeConnect`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connecting to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connected`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a}}=t;e(`connected to %s%s using %s%s`,a,i?`:${i}`:``,r,n)}),n.channel(`undici:client:connectError`).subscribe(t=>{let{connectParams:{version:n,protocol:r,port:i,host:a},error:o}=t;e(`connection to %s%s using %s%s errored - %s`,a,i?`:${i}`:``,r,n,o.message)}),n.channel(`undici:client:sendHeaders`).subscribe(t=>{let{request:{method:n,path:r,origin:i}}=t;e(`sending request to %s %s/%s`,n,i,r)})}n.channel(`undici:websocket:open`).subscribe(e=>{let{address:{address:t,port:n}}=e;o(`connection opened %s%s`,t,n?`:${n}`:``)}),n.channel(`undici:websocket:close`).subscribe(e=>{let{websocket:t,code:n,reason:r}=e;o(`closed connection to %s - %s %s`,t.url,n,r)}),n.channel(`undici:websocket:socket_error`).subscribe(e=>{o(`connection errored - %s`,e.message)}),n.channel(`undici:websocket:ping`).subscribe(e=>{o(`ping received`)}),n.channel(`undici:websocket:pong`).subscribe(e=>{o(`pong received`)})}t.exports={channels:c}})),Ie=z(((e,t)=>{let{InvalidArgumentError:n,NotSupportedError:r}=Me(),i=V(`node:assert`),{isValidHTTPToken:a,isValidHeaderValue:o,isStream:s,destroy:c,isBuffer:l,isFormDataLike:u,isIterable:d,isBlobLike:f,buildURL:p,validateHandler:m,getServerName:h,normalizedMethodRecords:g}=H(),{channels:_}=Fe(),{headerNameLowerCasedRecord:v}=Ne(),y=/[^\u0021-\u00ff]/,b=Symbol(`handler`);var x=class{constructor(e,{path:t,method:r,body:i,headers:v,query:x,idempotent:C,blocking:w,upgrade:T,headersTimeout:E,bodyTimeout:D,reset:O,throwOnError:k,expectContinue:A,servername:j},M){if(typeof t!=`string`)throw new n(`path must be a string`);if(t[0]!==`/`&&!(t.startsWith(`http://`)||t.startsWith(`https://`))&&r!==`CONNECT`)throw new n(`path must be an absolute URL or start with a slash`);if(y.test(t))throw new n(`invalid request path`);if(typeof r!=`string`)throw new n(`method must be a string`);if(g[r]===void 0&&!a(r))throw new n(`invalid request method`);if(T&&typeof T!=`string`)throw new n(`upgrade must be a string`);if(T&&!o(T))throw new n(`invalid upgrade header`);if(E!=null&&(!Number.isFinite(E)||E<0))throw new n(`invalid headersTimeout`);if(D!=null&&(!Number.isFinite(D)||D<0))throw new n(`invalid bodyTimeout`);if(O!=null&&typeof O!=`boolean`)throw new n(`invalid reset`);if(A!=null&&typeof A!=`boolean`)throw new n(`invalid expectContinue`);if(this.headersTimeout=E,this.bodyTimeout=D,this.throwOnError=k===!0,this.method=r,this.abort=null,i==null)this.body=null;else if(s(i)){this.body=i;let e=this.body._readableState;(!e||!e.autoDestroy)&&(this.endHandler=function(){c(this)},this.body.on(`end`,this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e},this.body.on(`error`,this.errorHandler)}else if(l(i))this.body=i.byteLength?i:null;else if(ArrayBuffer.isView(i))this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null;else if(i instanceof ArrayBuffer)this.body=i.byteLength?Buffer.from(i):null;else if(typeof i==`string`)this.body=i.length?Buffer.from(i):null;else if(u(i)||d(i)||f(i))this.body=i;else throw new n(`body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable`);if(this.completed=!1,this.aborted=!1,this.upgrade=T||null,this.path=x?p(t,x):t,this.origin=e,this.idempotent=C??(r===`HEAD`||r===`GET`),this.blocking=w??!1,this.reset=O??null,this.host=null,this.contentLength=null,this.contentType=null,this.headers=[],this.expectContinue=A??!1,Array.isArray(v)){if(v.length%2!=0)throw new n(`headers array must be even`);for(let e=0;e{let n=V(`node:events`);var r=class extends n{dispatch(){throw Error(`not implemented`)}close(){throw Error(`not implemented`)}destroy(){throw Error(`not implemented`)}compose(...e){let t=Array.isArray(e[0])?e[0]:e,n=this.dispatch.bind(this);for(let e of t)if(e!=null){if(typeof e!=`function`)throw TypeError(`invalid interceptor, expected function received ${typeof e}`);if(n=e(n),n==null||typeof n!=`function`||n.length!==2)throw TypeError(`invalid interceptor`)}return new i(this,n)}},i=class extends r{#e=null;#t=null;constructor(e,t){super(),this.#e=e,this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}};t.exports=r})),Re=z(((e,t)=>{let n=Le(),{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:a}=Me(),{kDestroy:o,kClose:s,kClosed:c,kDestroyed:l,kDispatch:u,kInterceptors:d}=je(),f=Symbol(`onDestroyed`),p=Symbol(`onClosed`),m=Symbol(`Intercepted Dispatch`),h=Symbol(`webSocketOptions`);t.exports=class extends n{constructor(e){super(),this[l]=!1,this[f]=null,this[c]=!1,this[p]=[],this[h]=e?.webSocket??{}}get webSocketOptions(){return{maxPayloadSize:this[h].maxPayloadSize??128*1024*1024}}get destroyed(){return this[l]}get closed(){return this[c]}get interceptors(){return this[d]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--)if(typeof this[d][t]!=`function`)throw new a(`interceptor must be an function`)}this[d]=e}close(e){if(e===void 0)return new Promise((e,t)=>{this.close((n,r)=>n?t(n):e(r))});if(typeof e!=`function`)throw new a(`invalid callback`);if(this[l]){queueMicrotask(()=>e(new r,null));return}if(this[c]){this[p]?this[p].push(e):queueMicrotask(()=>e(null,null));return}this[c]=!0,this[p].push(e);let t=()=>{let e=this[p];this[p]=null;for(let t=0;tthis.destroy()).then(()=>{queueMicrotask(t)})}destroy(e,t){if(typeof e==`function`&&(t=e,e=null),t===void 0)return new Promise((t,n)=>{this.destroy(e,(e,r)=>e?n(e):t(r))});if(typeof t!=`function`)throw new a(`invalid callback`);if(this[l]){this[f]?this[f].push(t):queueMicrotask(()=>t(null,null));return}e||=new r,this[l]=!0,this[f]=this[f]||[],this[f].push(t);let n=()=>{let e=this[f];this[f]=null;for(let t=0;t{queueMicrotask(n)})}[m](e,t){if(!this[d]||this[d].length===0)return this[m]=this[u],this[u](e,t);let n=this[u].bind(this);for(let e=this[d].length-1;e>=0;e--)n=this[d][e](n);return this[m]=n,n(e,t)}dispatch(e,t){if(!t||typeof t!=`object`)throw new a(`handler must be an object`);try{if(!e||typeof e!=`object`)throw new a(`opts must be an object.`);if(this[l]||this[f])throw new r;if(this[c])throw new i;return this[m](e,t)}catch(e){if(typeof t.onError!=`function`)throw new a(`invalid onError method`);return t.onError(e),!1}}}})),ze=z(((e,t)=>{let n=0,r=1e3,i,a=Symbol(`kFastTimer`),o=[];function s(){n+=499;let e=0,t=o.length;for(;e=r._idleStart+r._idleTimeout&&(r._state=-1,r._idleStart=-1,r._onTimeout(r._timerArg)),r._state===-1?(r._state=-2,--t!==0&&(o[e]=o[t])):++e}o.length=t,o.length!==0&&c()}function c(){i?i.refresh():(clearTimeout(i),i=setTimeout(s,499),i.unref&&i.unref())}var l=class{[a]=!0;_state=-2;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e,this._idleTimeout=t,this._timerArg=n,this.refresh()}refresh(){this._state===-2&&o.push(this),(!i||o.length===1)&&c(),this._state=0}clear(){this._state=-1,this._idleStart=-1}};t.exports={setTimeout(e,t,n){return t<=r?setTimeout(e,t,n):new l(e,t,n)},clearTimeout(e){e[a]?e.clear():clearTimeout(e)},setFastTimeout(e,t,n){return new l(e,t,n)},clearFastTimeout(e){e.clear()},now(){return n},tick(e=0){n+=e-r+1,s(),s()},reset(){n=0,o.length=0,clearTimeout(i),i=null},kFastTimer:a}})),Be=z(((e,t)=>{let n=V(`node:net`),r=V(`node:assert`),i=H(),{InvalidArgumentError:a,ConnectTimeoutError:o}=Me(),s=ze();function c(){}let l,u;u=global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)?class{constructor(e){this._maxCachedSessions=e,this._sessionCache=new Map,this._sessionRegistry=new global.FinalizationRegistry(e=>{if(this._sessionCache.size=this._maxCachedSessions){let{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}};function d({allowH2:e,maxCachedSessions:t,socketPath:o,timeout:s,session:c,...d}){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxCachedSessions must be a positive integer or zero`);let p={path:o,...d},m=new u(t??100);return s??=1e4,e??=!1,function({hostname:t,host:a,protocol:o,port:u,servername:d,localAddress:h,httpSocket:g},_){let v;if(o===`https:`){l||=V(`node:tls`),d=d||p.servername||i.getServerName(a)||null;let n=d||t;r(n);let o=c||m.get(n)||null;u||=443,v=l.connect({highWaterMark:16384,...p,servername:d,session:o,localAddress:h,ALPNProtocols:e?[`http/1.1`,`h2`]:[`http/1.1`],socket:g,port:u,host:t}),v.on(`session`,function(e){m.set(n,e)})}else r(!g,`httpSocket can only be sent on TLS update`),u||=80,v=n.connect({highWaterMark:64*1024,...p,localAddress:h,port:u,host:t});if(p.keepAlive==null||p.keepAlive){let e=p.keepAliveInitialDelay===void 0?6e4:p.keepAliveInitialDelay;v.setKeepAlive(!0,e)}let y=f(new WeakRef(v),{timeout:s,hostname:t,port:u});return v.setNoDelay(!0).once(o===`https:`?`secureConnect`:`connect`,function(){if(queueMicrotask(y),_){let e=_;_=null,e(null,this)}}).on(`error`,function(e){if(queueMicrotask(y),_){let t=_;_=null,t(e)}}),v}}let f=process.platform===`win32`?(e,t)=>{if(!t.timeout)return c;let n=null,r=null,i=s.setFastTimeout(()=>{n=setImmediate(()=>{r=setImmediate(()=>p(e.deref(),t))})},t.timeout);return()=>{s.clearFastTimeout(i),clearImmediate(n),clearImmediate(r)}}:(e,t)=>{if(!t.timeout)return c;let n=null,r=s.setFastTimeout(()=>{n=setImmediate(()=>{p(e.deref(),t)})},t.timeout);return()=>{s.clearFastTimeout(r),clearImmediate(n)}};function p(e,t){if(e==null)return;let n=`Connect Timeout Error`;Array.isArray(e.autoSelectFamilyAttemptedAddresses)?n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(`, `)},`:n+=` (attempted address: ${t.hostname}:${t.port},`,n+=` timeout: ${t.timeout}ms)`,i.destroy(e,new o(n))}t.exports=d})),Ve=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.enumToMap=void 0;function t(e){let t={};return Object.keys(e).forEach(n=>{let r=e[n];typeof r==`number`&&(t[n]=r)}),t}e.enumToMap=t})),He=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SPECIAL_HEADERS=e.HEADER_STATE=e.MINOR=e.MAJOR=e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS=e.TOKEN=e.STRICT_TOKEN=e.HEX=e.URL_CHAR=e.STRICT_URL_CHAR=e.USERINFO_CHARS=e.MARK=e.ALPHANUM=e.NUM=e.HEX_MAP=e.NUM_MAP=e.ALPHA=e.FINISH=e.H_METHOD_MAP=e.METHOD_MAP=e.METHODS_RTSP=e.METHODS_ICE=e.METHODS_HTTP=e.METHODS=e.LENIENT_FLAGS=e.FLAGS=e.TYPE=e.ERROR=void 0;let t=Ve();(function(e){e[e.OK=0]=`OK`,e[e.INTERNAL=1]=`INTERNAL`,e[e.STRICT=2]=`STRICT`,e[e.LF_EXPECTED=3]=`LF_EXPECTED`,e[e.UNEXPECTED_CONTENT_LENGTH=4]=`UNEXPECTED_CONTENT_LENGTH`,e[e.CLOSED_CONNECTION=5]=`CLOSED_CONNECTION`,e[e.INVALID_METHOD=6]=`INVALID_METHOD`,e[e.INVALID_URL=7]=`INVALID_URL`,e[e.INVALID_CONSTANT=8]=`INVALID_CONSTANT`,e[e.INVALID_VERSION=9]=`INVALID_VERSION`,e[e.INVALID_HEADER_TOKEN=10]=`INVALID_HEADER_TOKEN`,e[e.INVALID_CONTENT_LENGTH=11]=`INVALID_CONTENT_LENGTH`,e[e.INVALID_CHUNK_SIZE=12]=`INVALID_CHUNK_SIZE`,e[e.INVALID_STATUS=13]=`INVALID_STATUS`,e[e.INVALID_EOF_STATE=14]=`INVALID_EOF_STATE`,e[e.INVALID_TRANSFER_ENCODING=15]=`INVALID_TRANSFER_ENCODING`,e[e.CB_MESSAGE_BEGIN=16]=`CB_MESSAGE_BEGIN`,e[e.CB_HEADERS_COMPLETE=17]=`CB_HEADERS_COMPLETE`,e[e.CB_MESSAGE_COMPLETE=18]=`CB_MESSAGE_COMPLETE`,e[e.CB_CHUNK_HEADER=19]=`CB_CHUNK_HEADER`,e[e.CB_CHUNK_COMPLETE=20]=`CB_CHUNK_COMPLETE`,e[e.PAUSED=21]=`PAUSED`,e[e.PAUSED_UPGRADE=22]=`PAUSED_UPGRADE`,e[e.PAUSED_H2_UPGRADE=23]=`PAUSED_H2_UPGRADE`,e[e.USER=24]=`USER`})(e.ERROR||={}),(function(e){e[e.BOTH=0]=`BOTH`,e[e.REQUEST=1]=`REQUEST`,e[e.RESPONSE=2]=`RESPONSE`})(e.TYPE||={}),(function(e){e[e.CONNECTION_KEEP_ALIVE=1]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=2]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=4]=`CONNECTION_UPGRADE`,e[e.CHUNKED=8]=`CHUNKED`,e[e.UPGRADE=16]=`UPGRADE`,e[e.CONTENT_LENGTH=32]=`CONTENT_LENGTH`,e[e.SKIPBODY=64]=`SKIPBODY`,e[e.TRAILING=128]=`TRAILING`,e[e.TRANSFER_ENCODING=512]=`TRANSFER_ENCODING`})(e.FLAGS||={}),(function(e){e[e.HEADERS=1]=`HEADERS`,e[e.CHUNKED_LENGTH=2]=`CHUNKED_LENGTH`,e[e.KEEP_ALIVE=4]=`KEEP_ALIVE`})(e.LENIENT_FLAGS||={});var n;(function(e){e[e.DELETE=0]=`DELETE`,e[e.GET=1]=`GET`,e[e.HEAD=2]=`HEAD`,e[e.POST=3]=`POST`,e[e.PUT=4]=`PUT`,e[e.CONNECT=5]=`CONNECT`,e[e.OPTIONS=6]=`OPTIONS`,e[e.TRACE=7]=`TRACE`,e[e.COPY=8]=`COPY`,e[e.LOCK=9]=`LOCK`,e[e.MKCOL=10]=`MKCOL`,e[e.MOVE=11]=`MOVE`,e[e.PROPFIND=12]=`PROPFIND`,e[e.PROPPATCH=13]=`PROPPATCH`,e[e.SEARCH=14]=`SEARCH`,e[e.UNLOCK=15]=`UNLOCK`,e[e.BIND=16]=`BIND`,e[e.REBIND=17]=`REBIND`,e[e.UNBIND=18]=`UNBIND`,e[e.ACL=19]=`ACL`,e[e.REPORT=20]=`REPORT`,e[e.MKACTIVITY=21]=`MKACTIVITY`,e[e.CHECKOUT=22]=`CHECKOUT`,e[e.MERGE=23]=`MERGE`,e[e[`M-SEARCH`]=24]=`M-SEARCH`,e[e.NOTIFY=25]=`NOTIFY`,e[e.SUBSCRIBE=26]=`SUBSCRIBE`,e[e.UNSUBSCRIBE=27]=`UNSUBSCRIBE`,e[e.PATCH=28]=`PATCH`,e[e.PURGE=29]=`PURGE`,e[e.MKCALENDAR=30]=`MKCALENDAR`,e[e.LINK=31]=`LINK`,e[e.UNLINK=32]=`UNLINK`,e[e.SOURCE=33]=`SOURCE`,e[e.PRI=34]=`PRI`,e[e.DESCRIBE=35]=`DESCRIBE`,e[e.ANNOUNCE=36]=`ANNOUNCE`,e[e.SETUP=37]=`SETUP`,e[e.PLAY=38]=`PLAY`,e[e.PAUSE=39]=`PAUSE`,e[e.TEARDOWN=40]=`TEARDOWN`,e[e.GET_PARAMETER=41]=`GET_PARAMETER`,e[e.SET_PARAMETER=42]=`SET_PARAMETER`,e[e.REDIRECT=43]=`REDIRECT`,e[e.RECORD=44]=`RECORD`,e[e.FLUSH=45]=`FLUSH`})(n=e.METHODS||={}),e.METHODS_HTTP=[n.DELETE,n.GET,n.HEAD,n.POST,n.PUT,n.CONNECT,n.OPTIONS,n.TRACE,n.COPY,n.LOCK,n.MKCOL,n.MOVE,n.PROPFIND,n.PROPPATCH,n.SEARCH,n.UNLOCK,n.BIND,n.REBIND,n.UNBIND,n.ACL,n.REPORT,n.MKACTIVITY,n.CHECKOUT,n.MERGE,n[`M-SEARCH`],n.NOTIFY,n.SUBSCRIBE,n.UNSUBSCRIBE,n.PATCH,n.PURGE,n.MKCALENDAR,n.LINK,n.UNLINK,n.PRI,n.SOURCE],e.METHODS_ICE=[n.SOURCE],e.METHODS_RTSP=[n.OPTIONS,n.DESCRIBE,n.ANNOUNCE,n.SETUP,n.PLAY,n.PAUSE,n.TEARDOWN,n.GET_PARAMETER,n.SET_PARAMETER,n.REDIRECT,n.RECORD,n.FLUSH,n.GET,n.POST],e.METHOD_MAP=t.enumToMap(n),e.H_METHOD_MAP={},Object.keys(e.METHOD_MAP).forEach(t=>{/^H/.test(t)&&(e.H_METHOD_MAP[t]=e.METHOD_MAP[t])}),(function(e){e[e.SAFE=0]=`SAFE`,e[e.SAFE_WITH_CB=1]=`SAFE_WITH_CB`,e[e.UNSAFE=2]=`UNSAFE`})(e.FINISH||={}),e.ALPHA=[];for(let t=65;t<=90;t++)e.ALPHA.push(String.fromCharCode(t)),e.ALPHA.push(String.fromCharCode(t+32));e.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9},e.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},e.NUM=[`0`,`1`,`2`,`3`,`4`,`5`,`6`,`7`,`8`,`9`],e.ALPHANUM=e.ALPHA.concat(e.NUM),e.MARK=[`-`,`_`,`.`,`!`,`~`,`*`,`'`,`(`,`)`],e.USERINFO_CHARS=e.ALPHANUM.concat(e.MARK).concat([`%`,`;`,`:`,`&`,`=`,`+`,`$`,`,`]),e.STRICT_URL_CHAR=`!"$%&'()*+,-./:;<=>@[\\]^_\`{|}~`.split(``).concat(e.ALPHANUM),e.URL_CHAR=e.STRICT_URL_CHAR.concat([` `,`\f`]);for(let t=128;t<=255;t++)e.URL_CHAR.push(t);e.HEX=e.NUM.concat([`a`,`b`,`c`,`d`,`e`,`f`,`A`,`B`,`C`,`D`,`E`,`F`]),e.STRICT_TOKEN=[`!`,`#`,`$`,`%`,`&`,`'`,`*`,`+`,`-`,`.`,`^`,`_`,"`",`|`,`~`].concat(e.ALPHANUM),e.TOKEN=e.STRICT_TOKEN.concat([` `]),e.HEADER_CHARS=[` `];for(let t=32;t<=255;t++)t!==127&&e.HEADER_CHARS.push(t);e.CONNECTION_TOKEN_CHARS=e.HEADER_CHARS.filter(e=>e!==44),e.MAJOR=e.NUM_MAP,e.MINOR=e.MAJOR;var r;(function(e){e[e.GENERAL=0]=`GENERAL`,e[e.CONNECTION=1]=`CONNECTION`,e[e.CONTENT_LENGTH=2]=`CONTENT_LENGTH`,e[e.TRANSFER_ENCODING=3]=`TRANSFER_ENCODING`,e[e.UPGRADE=4]=`UPGRADE`,e[e.CONNECTION_KEEP_ALIVE=5]=`CONNECTION_KEEP_ALIVE`,e[e.CONNECTION_CLOSE=6]=`CONNECTION_CLOSE`,e[e.CONNECTION_UPGRADE=7]=`CONNECTION_UPGRADE`,e[e.TRANSFER_ENCODING_CHUNKED=8]=`TRANSFER_ENCODING_CHUNKED`})(r=e.HEADER_STATE||={}),e.SPECIAL_HEADERS={connection:r.CONNECTION,"content-length":r.CONTENT_LENGTH,"proxy-connection":r.CONNECTION,"transfer-encoding":r.TRANSFER_ENCODING,upgrade:r.UPGRADE}})),Ue=z(((e,t)=>{let{Buffer:n}=V(`node:buffer`);t.exports=n.from(`AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdXRlABQUbGxodHRwX3NldHRpbmdzX2luaXQAFQ1sbGh0dHBfZmluaXNoABYMbGxodHRwX3BhdXNlABcNbGxodHRwX3Jlc3VtZQAYG2xsaHR0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IgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJA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QwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQ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AENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQA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UC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAk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wMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==`,`base64`)})),Ge=z(((e,t)=>{let n=[`GET`,`HEAD`,`POST`],r=new Set(n),i=[101,204,205,304],a=[301,302,303,307,308],o=new Set(a),s=`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`.split(`.`),c=new Set(s),l=[``,`no-referrer`,`no-referrer-when-downgrade`,`same-origin`,`origin`,`strict-origin`,`origin-when-cross-origin`,`strict-origin-when-cross-origin`,`unsafe-url`],u=new Set(l),d=[`follow`,`manual`,`error`],f=[`GET`,`HEAD`,`OPTIONS`,`TRACE`],p=new Set(f),m=[`navigate`,`same-origin`,`no-cors`,`cors`],h=[`omit`,`same-origin`,`include`],g=[`default`,`no-store`,`reload`,`no-cache`,`force-cache`,`only-if-cached`],_=[`content-encoding`,`content-language`,`content-location`,`content-type`,`content-length`],v=[`half`],y=[`CONNECT`,`TRACE`,`TRACK`],b=new Set(y),x=[`audio`,`audioworklet`,`font`,`image`,`manifest`,`paintworklet`,`script`,`style`,`track`,`video`,`xslt`,``];t.exports={subresource:x,forbiddenMethods:y,requestBodyHeader:_,referrerPolicy:l,requestRedirect:d,requestMode:m,requestCredentials:h,requestCache:g,redirectStatus:a,corsSafeListedMethods:n,nullBodyStatus:i,safeMethods:f,badPorts:s,requestDuplex:v,subresourceSet:new Set(x),badPortsSet:c,redirectStatusSet:o,corsSafeListedMethodsSet:r,safeMethodsSet:p,forbiddenMethodsSet:b,referrerPolicySet:u}})),Ke=z(((e,t)=>{let n=Symbol.for(`undici.globalOrigin.1`);function r(){return globalThis[n]}function i(e){if(e===void 0){Object.defineProperty(globalThis,n,{value:void 0,writable:!0,enumerable:!1,configurable:!1});return}let t=new URL(e);if(t.protocol!==`http:`&&t.protocol!==`https:`)throw TypeError(`Only http & https urls are allowed, received ${t.protocol}`);Object.defineProperty(globalThis,n,{value:t,writable:!0,enumerable:!1,configurable:!1})}t.exports={getGlobalOrigin:r,setGlobalOrigin:i}})),qe=z(((e,t)=>{let n=V(`node:assert`),r=new TextEncoder,i=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/,a=/[\u000A\u000D\u0009\u0020]/,o=/[\u0009\u000A\u000C\u000D\u0020]/g,s=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function c(e){n(e.protocol===`data:`);let t=l(e,!0);t=t.slice(5);let r={position:0},i=d(`,`,t,r),a=i.length;if(i=C(i,!0,!0),r.position>=t.length)return`failure`;r.position++;let o=f(t.slice(a+1));if(/;(\u0020){0,}base64$/i.test(i)){if(o=_(T(o)),o===`failure`)return`failure`;i=i.slice(0,-6),i=i.replace(/(\u0020)+$/,``),i=i.slice(0,-1)}i.startsWith(`;`)&&(i=`text/plain`+i);let s=g(i);return s===`failure`&&(s=g(`text/plain;charset=US-ASCII`)),{mimeType:s,body:o}}function l(e,t=!1){if(!t)return e.href;let n=e.href,r=e.hash.length,i=r===0?n:n.substring(0,n.length-r);return!r&&n.endsWith(`#`)?i.slice(0,-1):i}function u(e,t,n){let r=``;for(;n.position=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function m(e){return e>=48&&e<=57?e-48:(e&223)-55}function h(e){let t=e.length,n=new Uint8Array(t),r=0;for(let i=0;ie.length)return`failure`;t.position++;let r=d(`;`,e,t);if(r=x(r,!1,!0),r.length===0||!i.test(r))return`failure`;let o=n.toLowerCase(),c=r.toLowerCase(),l={type:o,subtype:c,parameters:new Map,essence:`${o}/${c}`};for(;t.positiona.test(e),e,t);let n=u(e=>e!==`;`&&e!==`=`,e,t);if(n=n.toLowerCase(),t.positione.length)break;let r=null;if(e[t.position]===`"`)r=v(e,t,!0),d(`;`,e,t);else if(r=d(`;`,e,t),r=x(r,!1,!0),r.length===0)continue;n.length!==0&&i.test(n)&&(r.length===0||s.test(r))&&!l.parameters.has(n)&&l.parameters.set(n,r)}return l}function _(e){e=e.replace(o,``);let t=e.length;if(t%4==0&&e.charCodeAt(t-1)===61&&(--t,e.charCodeAt(t-1)===61&&--t),t%4==1||/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t)))return`failure`;let n=Buffer.from(e,`base64`);return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function v(e,t,r){let i=t.position,a=``;for(n(e[t.position]===`"`),t.position++;a+=u(e=>e!==`"`&&e!==`\\`,e,t),!(t.position>=e.length);){let r=e[t.position];if(t.position++,r===`\\`){if(t.position>=e.length){a+=`\\`;break}a+=e[t.position],t.position++}else{n(r===`"`);break}}return r?a:e.slice(i,t.position)}function y(e){n(e!==`failure`);let{parameters:t,essence:r}=e,a=r;for(let[e,n]of t.entries())a+=`;`,a+=e,a+=`=`,i.test(n)||(n=n.replace(/(\\|")/g,`\\$1`),n=`"`+n,n+=`"`),a+=n;return a}function b(e){return e===13||e===10||e===9||e===32}function x(e,t=!0,n=!0){return w(e,t,n,b)}function S(e){return e===13||e===10||e===9||e===12||e===32}function C(e,t=!0,n=!0){return w(e,t,n,S)}function w(e,t,n,r){let i=0,a=e.length-1;if(t)for(;i0&&r(e.charCodeAt(a));)a--;return i===0&&a===e.length-1?e:e.slice(i,a+1)}function T(e){let t=e.length;if(65535>t)return String.fromCharCode.apply(null,e);let n=``,r=0,i=65535;for(;rt&&(i=t-r),n+=String.fromCharCode.apply(null,e.subarray(r,r+=i));return n}function E(e){switch(e.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`}return e.subtype.endsWith(`+json`)?`application/json`:e.subtype.endsWith(`+xml`)?`application/xml`:``}t.exports={dataURLProcessor:c,URLSerializer:l,collectASequenceOfCodePoints:u,collectASequenceOfCodePointsFast:d,stringPercentDecode:f,parseMIMEType:g,collectAnHTTPQuotedString:v,serializeAMimeType:y,removeChars:w,removeHTTPWhitespace:x,minimizeSupportedMimeType:E,HTTP_TOKEN_CODEPOINTS:i,isomorphicDecode:T}})),Je=z(((e,t)=>{let{types:n,inspect:r}=V(`node:util`),{markAsUncloneable:i}=V(`node:worker_threads`),{toUSVString:a}=H(),o={};o.converters={},o.util={},o.errors={},o.errors.exception=function(e){return TypeError(`${e.header}: ${e.message}`)},o.errors.conversionFailed=function(e){let t=e.types.length===1?``:` one of`,n=`${e.argument} could not be converted to${t}: ${e.types.join(`, `)}.`;return o.errors.exception({header:e.prefix,message:n})},o.errors.invalidArgument=function(e){return o.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})},o.brandCheck=function(e,t,n){if(n?.strict!==!1){if(!(e instanceof t)){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}}else if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){let e=TypeError(`Illegal invocation`);throw e.code=`ERR_INVALID_THIS`,e}},o.argumentLengthCheck=function({length:e},t,n){if(e{}),o.util.ConvertToInt=function(e,t,n,r){let i,a;t===64?(i=2**53-1,a=n===`unsigned`?0:-9007199254740991):n===`unsigned`?(a=0,i=2**t-1):(a=(-2)**t-1,i=2**(t-1)-1);let s=Number(e);if(s===0&&(s=0),r?.enforceRange===!0){if(Number.isNaN(s)||s===1/0||s===-1/0)throw o.errors.exception({header:`Integer conversion`,message:`Could not convert ${o.util.Stringify(e)} to an integer.`});if(s=o.util.IntegerPart(s),si)throw o.errors.exception({header:`Integer conversion`,message:`Value must be between ${a}-${i}, got ${s}.`});return s}return!Number.isNaN(s)&&r?.clamp===!0?(s=Math.min(Math.max(s,a),i),s=Math.floor(s)%2==0?Math.floor(s):Math.ceil(s),s):Number.isNaN(s)||s===0&&Object.is(0,s)||s===1/0||s===-1/0?0:(s=o.util.IntegerPart(s),s%=2**t,n===`signed`&&s>=2**t-1?s-2**t:s)},o.util.IntegerPart=function(e){let t=Math.floor(Math.abs(e));return e<0?-1*t:t},o.util.Stringify=function(e){switch(o.util.Type(e)){case`Symbol`:return`Symbol(${e.description})`;case`Object`:return r(e);case`String`:return`"${e}"`;default:return`${e}`}},o.sequenceConverter=function(e){return(t,n,r,i)=>{if(o.util.Type(t)!==`Object`)throw o.errors.exception({header:n,message:`${r} (${o.util.Stringify(t)}) is not iterable.`});let a=typeof i==`function`?i():t?.[Symbol.iterator]?.(),s=[],c=0;if(a===void 0||typeof a.next!=`function`)throw o.errors.exception({header:n,message:`${r} is not iterable.`});for(;;){let{done:t,value:i}=a.next();if(t)break;s.push(e(i,n,`${r}[${c++}]`))}return s}},o.recordConverter=function(e,t){return(r,i,a)=>{if(o.util.Type(r)!==`Object`)throw o.errors.exception({header:i,message:`${a} ("${o.util.Type(r)}") is not an Object.`});let s={};if(!n.isProxy(r)){let n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let o of n){let n=e(o,i,a);s[n]=t(r[o],i,a)}return s}let c=Reflect.ownKeys(r);for(let n of c)if(Reflect.getOwnPropertyDescriptor(r,n)?.enumerable){let o=e(n,i,a);s[o]=t(r[n],i,a)}return s}},o.interfaceConverter=function(e){return(t,n,r,i)=>{if(i?.strict!==!1&&!(t instanceof e))throw o.errors.exception({header:n,message:`Expected ${r} ("${o.util.Stringify(t)}") to be an instance of ${e.name}.`});return t}},o.dictionaryConverter=function(e){return(t,n,r)=>{let i=o.util.Type(t),a={};if(i===`Null`||i===`Undefined`)return a;if(i!==`Object`)throw o.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`});for(let i of e){let{key:e,defaultValue:s,required:c,converter:l}=i;if(c===!0&&!Object.hasOwn(t,e))throw o.errors.exception({header:n,message:`Missing required key "${e}".`});let u=t[e],d=Object.hasOwn(i,`defaultValue`);if(d&&u!==null&&(u??=s()),c||d||u!==void 0){if(u=l(u,n,`${r}.${e}`),i.allowedValues&&!i.allowedValues.includes(u))throw o.errors.exception({header:n,message:`${u} is not an accepted type. Expected one of ${i.allowedValues.join(`, `)}.`});a[e]=u}}return a}},o.nullableConverter=function(e){return(t,n,r)=>t===null?t:e(t,n,r)},o.converters.DOMString=function(e,t,n,r){if(e===null&&r?.legacyNullToEmptyString)return``;if(typeof e==`symbol`)throw o.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`});return String(e)},o.converters.ByteString=function(e,t,n){let r=o.converters.DOMString(e,t,n);for(let e=0;e255)throw TypeError(`Cannot convert argument to a ByteString because the character at index ${e} has a value of ${r.charCodeAt(e)} which is greater than 255.`);return r},o.converters.USVString=a,o.converters.boolean=function(e){return!!e},o.converters.any=function(e){return e},o.converters[`long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`signed`,void 0,t,n)},o.converters[`unsigned long long`]=function(e,t,n){return o.util.ConvertToInt(e,64,`unsigned`,void 0,t,n)},o.converters[`unsigned long`]=function(e,t,n){return o.util.ConvertToInt(e,32,`unsigned`,void 0,t,n)},o.converters[`unsigned short`]=function(e,t,n,r){return o.util.ConvertToInt(e,16,`unsigned`,r,t,n)},o.converters.ArrayBuffer=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isAnyArrayBuffer(e))throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`ArrayBuffer`]});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.resizable||e.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.TypedArray=function(e,t,r,i,a){if(o.util.Type(e)!==`Object`||!n.isTypedArray(e)||e.constructor.name!==t.name)throw o.errors.conversionFailed({prefix:r,argument:`${i} ("${o.util.Stringify(e)}")`,types:[t.name]});if(a?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.DataView=function(e,t,r,i){if(o.util.Type(e)!==`Object`||!n.isDataView(e))throw o.errors.exception({header:t,message:`${r} is not a DataView.`});if(i?.allowShared===!1&&n.isSharedArrayBuffer(e.buffer))throw o.errors.exception({header:`ArrayBuffer`,message:`SharedArrayBuffer is not allowed.`});if(e.buffer.resizable||e.buffer.growable)throw o.errors.exception({header:`ArrayBuffer`,message:`Received a resizable ArrayBuffer.`});return e},o.converters.BufferSource=function(e,t,r,i){if(n.isAnyArrayBuffer(e))return o.converters.ArrayBuffer(e,t,r,{...i,allowShared:!1});if(n.isTypedArray(e))return o.converters.TypedArray(e,e.constructor,t,r,{...i,allowShared:!1});if(n.isDataView(e))return o.converters.DataView(e,t,r,{...i,allowShared:!1});throw o.errors.conversionFailed({prefix:t,argument:`${r} ("${o.util.Stringify(e)}")`,types:[`BufferSource`]})},o.converters[`sequence`]=o.sequenceConverter(o.converters.ByteString),o.converters[`sequence>`]=o.sequenceConverter(o.converters[`sequence`]),o.converters[`record`]=o.recordConverter(o.converters.ByteString,o.converters.ByteString),t.exports={webidl:o}})),Ye=z(((e,t)=>{let{Transform:n}=V(`node:stream`),r=V(`node:zlib`),{redirectStatusSet:i,referrerPolicySet:a,badPortsSet:o}=Ge(),{getGlobalOrigin:s}=Ke(),{collectASequenceOfCodePoints:c,collectAnHTTPQuotedString:l,removeChars:u,parseMIMEType:d}=qe(),{performance:f}=V(`node:perf_hooks`),{isBlobLike:p,ReadableStreamFrom:m,isValidHTTPToken:h,normalizedMethodRecordsBase:g}=H(),_=V(`node:assert`),{isUint8Array:v}=V(`node:util/types`),{webidl:y}=Je(),b=[],x;try{x=V(`node:crypto`);let e=[`sha256`,`sha384`,`sha512`];b=x.getHashes().filter(t=>e.includes(t))}catch{}function S(e){let t=e.urlList,n=t.length;return n===0?null:t[n-1].toString()}function C(e,t){if(!i.has(e.status))return null;let n=e.headersList.get(`location`,!0);return n!==null&&j(n)&&(w(n)||(n=T(n)),n=new URL(n,S(e))),n&&!n.hash&&(n.hash=t),n}function w(e){for(let t=0;t126||n<32)return!1}return!0}function T(e){return Buffer.from(e,`binary`).toString(`utf8`)}function E(e){return e.urlList[e.urlList.length-1]}function D(e){let t=E(e);return Ae(t)&&o.has(t.port)?`blocked`:`allowed`}function O(e){return e instanceof Error||e?.constructor?.name===`Error`||e?.constructor?.name===`DOMException`}function k(e){for(let t=0;t=32&&n<=126||n>=128&&n<=255))return!1}return!0}let A=h;function j(e){return(e[0]===` `||e[0]===` `||e[e.length-1]===` `||e[e.length-1]===` `||e.includes(` +`)||e.includes(`\r`)||e.includes(`\0`))===!1}function M(e,t){let{headersList:n}=t,r=(n.get(`referrer-policy`,!0)??``).split(`,`),i=``;if(r.length>0)for(let e=r.length;e!==0;e--){let t=r[e-1].trim();if(a.has(t)){i=t;break}}i!==``&&(e.referrerPolicy=i)}function N(){return`allowed`}function P(){return`success`}function F(){return`success`}function ee(e){let t=null;t=e.mode,e.headersList.set(`sec-fetch-mode`,t,!0)}function te(e){let t=e.origin;if(!(t===`client`||t===void 0)){if(e.responseTainting===`cors`||e.mode===`websocket`)e.headersList.append(`origin`,t,!0);else if(e.method!==`GET`&&e.method!==`HEAD`){switch(e.referrerPolicy){case`no-referrer`:t=null;break;case`no-referrer-when-downgrade`:case`strict-origin`:case`strict-origin-when-cross-origin`:e.origin&&ke(e.origin)&&!ke(E(e))&&(t=null);break;case`same-origin`:me(e,E(e))||(t=null);break;default:}e.headersList.append(`origin`,t,!0)}}}function I(e,t){return e}function ne(e,t,n){return!e?.startTime||e.startTime4096&&(r=i);let a=me(e,r),o=ce(r)&&!ce(e.url);switch(t){case`origin`:return i??se(n,!0);case`unsafe-url`:return r;case`same-origin`:return a?i:`no-referrer`;case`origin-when-cross-origin`:return a?r:i;case`strict-origin-when-cross-origin`:{let t=E(e);return me(r,t)?r:ce(r)&&!ce(t)?`no-referrer`:i}default:return o?`no-referrer`:i}}function se(e,t){return _(e instanceof URL),e=new URL(e),e.protocol===`file:`||e.protocol===`about:`||e.protocol===`blank:`?`no-referrer`:(e.username=``,e.password=``,e.hash=``,t&&(e.pathname=``,e.search=``),e)}function ce(e){if(!(e instanceof URL))return!1;if(e.href===`about:blank`||e.href===`about:srcdoc`||e.protocol===`data:`||e.protocol===`file:`)return!0;return t(e.origin);function t(e){if(e==null||e===`null`)return!1;let t=new URL(e);return!!(t.protocol===`https:`||t.protocol===`wss:`||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||t.hostname===`localhost`||t.hostname.includes(`localhost.`)||t.hostname.endsWith(`.localhost`))}}function R(e,t){if(x===void 0)return!0;let n=ue(t);if(n===`no metadata`||n.length===0)return!0;let r=fe(n,de(n));for(let t of r){let n=t.algo,r=t.hash,i=x.createHash(n).update(e).digest(`base64`);if(i[i.length-1]===`=`&&(i=i[i.length-2]===`=`?i.slice(0,-2):i.slice(0,-1)),pe(i,r))return!0}return!1}let le=/(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ue(e){let t=[],n=!0;for(let r of e.split(` `)){n=!1;let e=le.exec(r);if(e===null||e.groups===void 0||e.groups.algo===void 0)continue;let i=e.groups.algo.toLowerCase();b.includes(i)&&t.push(e.groups)}return n===!0?`no metadata`:t}function de(e){let t=e[0].algo;if(t[3]===`5`)return t;for(let n=1;n{e=n,t=r}),resolve:e,reject:t}}function B(e){return e.controller.state===`aborted`}function ge(e){return e.controller.state===`aborted`||e.controller.state===`terminated`}function _e(e){return g[e.toLowerCase()]??e}function ve(e){let t=JSON.stringify(e);if(t===void 0)throw TypeError(`Value is not JSON serializable`);return _(typeof t==`string`),t}let ye=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function be(e,t,n=0,r=1){class i{#e;#t;#n;constructor(e,t){this.#e=e,this.#t=t,this.#n=0}next(){if(typeof this!=`object`||this===null||!(#e in this))throw TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`);let i=this.#n,a=this.#e[t];if(i>=a.length)return{value:void 0,done:!0};let{[n]:o,[r]:s}=a[i];this.#n=i+1;let c;switch(this.#t){case`key`:c=o;break;case`value`:c=s;break;case`key+value`:c=[o,s];break}return{value:c,done:!1}}}return delete i.prototype.constructor,Object.setPrototypeOf(i.prototype,ye),Object.defineProperties(i.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${e} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(e,t){return new i(e,t)}}function xe(e,t,n,r=0,i=1){let a=be(e,n,r,i),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key`)}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`value`)}},entries:{writable:!0,enumerable:!0,configurable:!0,value:function(){return y.brandCheck(this,t),a(this,`key+value`)}},forEach:{writable:!0,enumerable:!0,configurable:!0,value:function(n,r=globalThis){if(y.brandCheck(this,t),y.argumentLengthCheck(arguments,1,`${e}.forEach`),typeof n!=`function`)throw TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`);for(let{0:e,1:t}of a(this,`key+value`))n.call(r,t,e,this)}}};return Object.defineProperties(t.prototype,{...o,[Symbol.iterator]:{writable:!0,enumerable:!1,configurable:!0,value:o.entries.value}})}async function Se(e,t,n){let r=t,i=n,a;try{a=e.stream.getReader()}catch(e){i(e);return}try{r(await De(a))}catch(e){i(e)}}function Ce(e){return e instanceof ReadableStream||e[Symbol.toStringTag]===`ReadableStream`&&typeof e.tee==`function`}function we(e){try{e.close(),e.byobRequest?.respond(0)}catch(e){if(!e.message.includes(`Controller is already closed`)&&!e.message.includes(`ReadableStream is already closed`))throw e}}let Te=/[^\x00-\xFF]/;function Ee(e){return _(!Te.test(e)),e}async function De(e){let t=[],n=0;for(;;){let{done:r,value:i}=await e.read();if(r)return Buffer.concat(t,n);if(!v(i))throw TypeError(`Received non-Uint8Array chunk`);t.push(i),n+=i.length}}function Oe(e){_(`protocol`in e);let t=e.protocol;return t===`about:`||t===`blob:`||t===`data:`}function ke(e){return typeof e==`string`&&e[5]===`:`&&e[0]===`h`&&e[1]===`t`&&e[2]===`t`&&e[3]===`p`&&e[4]===`s`||e.protocol===`https:`}function Ae(e){_(`protocol`in e);let t=e.protocol;return t===`http:`||t===`https:`}function je(e,t){let n=e;if(!n.startsWith(`bytes`))return`failure`;let r={position:5};if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==61)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let i=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),a=i.length?Number(i):null;if(t&&c(e=>e===` `||e===` `,n,r),n.charCodeAt(r.position)!==45)return`failure`;r.position++,t&&c(e=>e===` `||e===` `,n,r);let o=c(e=>{let t=e.charCodeAt(0);return t>=48&&t<=57},n,r),s=o.length?Number(o):null;return r.positions?`failure`:{rangeStartValue:a,rangeEndValue:s}}function Me(e,t,n){let r=`bytes `;return r+=Ee(`${e}`),r+=`-`,r+=Ee(`${t}`),r+=`/`,r+=Ee(`${n}`),r}var Ne=class extends n{#e;constructor(e){super(),this.#e=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)==8?r.createInflate(this.#e):r.createInflateRaw(this.#e),this._inflateStream.on(`data`,this.push.bind(this)),this._inflateStream.on(`end`,()=>this.push(null)),this._inflateStream.on(`error`,e=>this.destroy(e))}this._inflateStream.write(e,t,n)}_final(e){this._inflateStream&&=(this._inflateStream.end(),null),e()}};function Pe(e){return new Ne(e)}function Fe(e){let t=null,n=null,r=null,i=Le(`content-type`,e);if(i===null)return`failure`;for(let e of i){let i=d(e);i===`failure`||i.essence===`*/*`||(r=i,r.essence===n?!r.parameters.has(`charset`)&&t!==null&&r.parameters.set(`charset`,t):(t=null,r.parameters.has(`charset`)&&(t=r.parameters.get(`charset`)),n=r.essence))}return r??`failure`}function Ie(e){let t=e,n={position:0},r=[],i=``;for(;n.positione!==`"`&&e!==`,`,t,n),n.positione===9||e===32),r.push(i),i=``}return r}function Le(e,t){let n=t.get(e,!0);return n===null?null:Ie(n)}let Re=new TextDecoder;function ze(e){return e.length===0?``:(e[0]===239&&e[1]===187&&e[2]===191&&(e=e.subarray(3)),Re.decode(e))}var Be=class{get baseUrl(){return s()}get origin(){return this.baseUrl?.origin}policyContainer=ie()};t.exports={isAborted:B,isCancelled:ge,isValidEncodedURL:w,createDeferredPromise:he,ReadableStreamFrom:m,tryUpgradeRequestToAPotentiallyTrustworthyURL:z,clampAndCoarsenConnectionTimingInfo:ne,coarsenedSharedCurrentTime:re,determineRequestsReferrer:oe,makePolicyContainer:ie,clonePolicyContainer:ae,appendFetchMetadata:ee,appendRequestOriginHeader:te,TAOCheck:F,corsCheck:P,crossOriginResourcePolicyCheck:N,createOpaqueTimingInfo:L,setRequestReferrerPolicyOnRedirect:M,isValidHTTPToken:h,requestBadPort:D,requestCurrentURL:E,responseURL:S,responseLocationURL:C,isBlobLike:p,isURLPotentiallyTrustworthy:ce,isValidReasonPhrase:k,sameOrigin:me,normalizeMethod:_e,serializeJavascriptValueToJSONString:ve,iteratorMixin:xe,createIterator:be,isValidHeaderName:A,isValidHeaderValue:j,isErrorLike:O,fullyReadBody:Se,bytesMatch:R,isReadableStreamLike:Ce,readableStreamClose:we,isomorphicEncode:Ee,urlIsLocal:Oe,urlHasHttpsScheme:ke,urlIsHttpHttpsScheme:Ae,readAllBytes:De,simpleRangeHeaderValue:je,buildContentRange:Me,parseMetadata:ue,createInflate:Pe,extractMimeType:Fe,getDecodeSplit:Le,utf8DecodeBytes:ze,environmentSettingsObject:new class{settingsObject=new Be}}})),Xe=z(((e,t)=>{t.exports={kUrl:Symbol(`url`),kHeaders:Symbol(`headers`),kSignal:Symbol(`signal`),kState:Symbol(`state`),kDispatcher:Symbol(`dispatcher`)}})),Ze=z(((e,t)=>{let{Blob:n,File:r}=V(`node:buffer`),{kState:i}=Xe(),{webidl:a}=Je();var o=class e{constructor(e,t,n={}){let r=t,a=n.type,o=n.lastModified??Date.now();this[i]={blobLike:e,name:r,type:a,lastModified:o}}stream(...t){return a.brandCheck(this,e),this[i].blobLike.stream(...t)}arrayBuffer(...t){return a.brandCheck(this,e),this[i].blobLike.arrayBuffer(...t)}slice(...t){return a.brandCheck(this,e),this[i].blobLike.slice(...t)}text(...t){return a.brandCheck(this,e),this[i].blobLike.text(...t)}get size(){return a.brandCheck(this,e),this[i].blobLike.size}get type(){return a.brandCheck(this,e),this[i].blobLike.type}get name(){return a.brandCheck(this,e),this[i].name}get lastModified(){return a.brandCheck(this,e),this[i].lastModified}get[Symbol.toStringTag](){return`File`}};a.converters.Blob=a.interfaceConverter(n);function s(e){return e instanceof r||e&&(typeof e.stream==`function`||typeof e.arrayBuffer==`function`)&&e[Symbol.toStringTag]===`File`}t.exports={FileLike:o,isFileLike:s}})),Qe=z(((e,t)=>{let{isBlobLike:n,iteratorMixin:r}=Ye(),{kState:i}=Xe(),{kEnumerableProperty:a}=H(),{FileLike:o,isFileLike:s}=Ze(),{webidl:c}=Je(),{File:l}=V(`node:buffer`),u=V(`node:util`),d=globalThis.File??l;var f=class e{constructor(e){if(c.util.markAsUncloneable(this),e!==void 0)throw c.errors.conversionFailed({prefix:`FormData constructor`,argument:`Argument 1`,types:[`undefined`]});this[i]=[]}append(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.append`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`value`,{strict:!1}):c.converters.USVString(r,o,`value`),a=arguments.length===3?c.converters.USVString(a,o,`filename`):void 0;let s=p(t,r,a);this[i].push(s)}delete(t){c.brandCheck(this,e);let n=`FormData.delete`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i]=this[i].filter(e=>e.name!==t)}get(t){c.brandCheck(this,e);let n=`FormData.get`;c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`);let r=this[i].findIndex(e=>e.name===t);return r===-1?null:this[i][r].value}getAll(t){c.brandCheck(this,e);let n=`FormData.getAll`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].filter(e=>e.name===t).map(e=>e.value)}has(t){c.brandCheck(this,e);let n=`FormData.has`;return c.argumentLengthCheck(arguments,1,n),t=c.converters.USVString(t,n,`name`),this[i].findIndex(e=>e.name===t)!==-1}set(t,r,a=void 0){c.brandCheck(this,e);let o=`FormData.set`;if(c.argumentLengthCheck(arguments,2,o),arguments.length===3&&!n(r))throw TypeError(`Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'`);t=c.converters.USVString(t,o,`name`),r=n(r)?c.converters.Blob(r,o,`name`,{strict:!1}):c.converters.USVString(r,o,`name`),a=arguments.length===3?c.converters.USVString(a,o,`name`):void 0;let s=p(t,r,a),l=this[i].findIndex(e=>e.name===t);l===-1?this[i].push(s):this[i]=[...this[i].slice(0,l),s,...this[i].slice(l+1).filter(e=>e.name!==t)]}[u.inspect.custom](e,t){let n=this[i].reduce((e,t)=>(e[t.name]?Array.isArray(e[t.name])?e[t.name].push(t.value):e[t.name]=[e[t.name],t.value]:e[t.name]=t.value,e),{__proto__:null});t.depth??=e,t.colors??=!0;let r=u.formatWithOptions(t,n);return`FormData ${r.slice(r.indexOf(`]`)+2)}`}};r(`FormData`,f,i,`name`,`value`),Object.defineProperties(f.prototype,{append:a,delete:a,get:a,getAll:a,has:a,set:a,[Symbol.toStringTag]:{value:`FormData`,configurable:!0}});function p(e,t,n){if(typeof t!=`string`&&(s(t)||(t=t instanceof Blob?new d([t],`blob`,{type:t.type}):new o(t,`blob`,{type:t.type})),n!==void 0)){let e={type:t.type,lastModified:t.lastModified};t=t instanceof l?new d([t],n,e):new o(t,n,e)}return{name:e,value:t}}t.exports={FormData:f,makeEntry:p}})),$e=z(((e,t)=>{let{isUSVString:n,bufferToLowerCasedHeaderName:r}=H(),{utf8DecodeBytes:i}=Ye(),{HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:o}=qe(),{isFileLike:s}=Ze(),{makeEntry:c}=Qe(),l=V(`node:assert`),{File:u}=V(`node:buffer`),d=globalThis.File??u,f=Buffer.from(`form-data; name="`),p=Buffer.from(`; filename`),m=Buffer.from(`--`),h=Buffer.from(`--\r `);function g(e){for(let t=0;t70)return!1;for(let n=0;n=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95))return!1}return!0}function v(e,t){l(t!==`failure`&&t.essence===`multipart/form-data`);let r=t.parameters.get(`boundary`);if(r===void 0)return`failure`;let a=Buffer.from(`--${r}`,`utf8`),o=[],u={position:0};for(;e[u.position]===13&&e[u.position+1]===10;)u.position+=2;let f=e.length;for(;e[f-1]===10&&e[f-2]===13;)f-=2;for(f!==e.length&&(e=e.subarray(0,f));;){if(e.subarray(u.position,u.position+a.length).equals(a))u.position+=a.length;else return`failure`;if(u.position===e.length-2&&C(e,m,u)||u.position===e.length-4&&C(e,h,u))return o;if(e[u.position]!==13||e[u.position+1]!==10)return`failure`;u.position+=2;let t=y(e,u);if(t===`failure`)return`failure`;let{name:r,filename:f,contentType:p,encoding:_}=t;u.position+=2;let v;{let t=e.indexOf(a.subarray(2),u.position);if(t===-1)return`failure`;v=e.subarray(u.position,t-4),u.position+=v.length,_===`base64`&&(v=Buffer.from(v.toString(),`base64`))}if(e[u.position]!==13||e[u.position+1]!==10)return`failure`;u.position+=2;let b;f===null?b=i(Buffer.from(v)):(p??=`text/plain`,g(p)||(p=``),b=new d([v],f,{type:p})),l(n(r)),l(typeof b==`string`&&n(b)||s(b)),o.push(c(r,b,f))}}function y(e,t){let n=null,i=null,s=null,c=null;for(;;){if(e[t.position]===13&&e[t.position+1]===10)return n===null?`failure`:{name:n,filename:i,contentType:s,encoding:c};let l=x(e=>e!==10&&e!==13&&e!==58,e,t);if(l=S(l,!0,!0,e=>e===9||e===32),!a.test(l.toString())||e[t.position]!==58)return`failure`;switch(t.position++,x(e=>e===32||e===9,e,t),r(l)){case`content-disposition`:if(n=i=null,!C(e,f,t)||(t.position+=17,n=b(e,t),n===null))return`failure`;if(C(e,p,t)){let n=t.position+p.length;if(e[n]===42&&(t.position+=1,n+=1),e[n]!==61||e[n+1]!==34||(t.position+=12,i=b(e,t),i===null))return`failure`}break;case`content-type`:{let n=x(e=>e!==10&&e!==13,e,t);n=S(n,!1,!0,e=>e===9||e===32),s=o(n);break}case`content-transfer-encoding`:{let n=x(e=>e!==10&&e!==13,e,t);n=S(n,!1,!0,e=>e===9||e===32),c=o(n);break}default:x(e=>e!==10&&e!==13,e,t)}if(e[t.position]!==13&&e[t.position+1]!==10)return`failure`;t.position+=2}}function b(e,t){l(e[t.position-1]===34);let n=x(e=>e!==10&&e!==13&&e!==34,e,t);return e[t.position]===34?(t.position++,n=new TextDecoder().decode(n).replace(/%0A/gi,` -`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function x(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function C(e,t,n){if(e.length{let n=V(),{ReadableStreamFrom:r,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:o,createDeferredPromise:s,fullyReadBody:c,extractMimeType:l,utf8DecodeBytes:u}=Xe(),{FormData:d}=$e(),{kState:f}=Ze(),{webidl:p}=Ye(),{Blob:m}=B(`node:buffer`),h=B(`node:assert`),{isErrored:g,isDisturbed:_}=B(`node:stream`),{isArrayBuffer:v}=B(`node:util/types`),{serializeAMimeType:y}=Je(),{multipartFormDataParser:b}=et(),x;try{let e=B(`node:crypto`);x=t=>e.randomInt(0,t)}catch{x=e=>Math.floor(Math.random(e))}let S=new TextEncoder;function C(){}let w=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,T;w&&(T=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!_(t)&&!g(t)&&t.cancel(`Response object has been garbage collected`).catch(C)}));function E(e,t=!1){let s=null;s=e instanceof ReadableStream?e:i(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?S.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>o(e))},start(){},type:`bytes`}),h(a(s));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(v(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(n.isFormDataLike(e)){let t=`----formdata-undici-0${`${x(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r +`).replace(/%0D/gi,`\r`).replace(/%22/g,`"`),n):null}function x(e,t,n){let r=n.position;for(;r0&&r(e[a]);)a--;return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function C(e,t,n){if(e.length{let n=H(),{ReadableStreamFrom:r,isBlobLike:i,isReadableStreamLike:a,readableStreamClose:o,createDeferredPromise:s,fullyReadBody:c,extractMimeType:l,utf8DecodeBytes:u}=Ye(),{FormData:d}=Qe(),{kState:f}=Xe(),{webidl:p}=Je(),{Blob:m}=V(`node:buffer`),h=V(`node:assert`),{isErrored:g,isDisturbed:_}=V(`node:stream`),{isArrayBuffer:v}=V(`node:util/types`),{serializeAMimeType:y}=qe(),{multipartFormDataParser:b}=$e(),x;try{let e=V(`node:crypto`);x=t=>e.randomInt(0,t)}catch{x=e=>Math.floor(Math.random(e))}let S=new TextEncoder;function C(){}let w=globalThis.FinalizationRegistry&&process.version.indexOf(`v18`)!==0,T;w&&(T=new FinalizationRegistry(e=>{let t=e.deref();t&&!t.locked&&!_(t)&&!g(t)&&t.cancel(`Response object has been garbage collected`).catch(C)}));function E(e,t=!1){let s=null;s=e instanceof ReadableStream?e:i(e)?e.stream():new ReadableStream({async pull(e){let t=typeof l==`string`?S.encode(l):l;t.byteLength&&e.enqueue(t),queueMicrotask(()=>o(e))},start(){},type:`bytes`}),h(a(s));let c=null,l=null,u=null,d=null;if(typeof e==`string`)l=e,d=`text/plain;charset=UTF-8`;else if(e instanceof URLSearchParams)l=e.toString(),d=`application/x-www-form-urlencoded;charset=UTF-8`;else if(v(e))l=new Uint8Array(e.slice());else if(ArrayBuffer.isView(e))l=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));else if(n.isFormDataLike(e)){let t=`----formdata-undici-0${`${x(1e11)}`.padStart(11,`0`)}`,n=`--${t}\r\nContent-Disposition: form-data`,r=e=>e.replace(/\n/g,`%0A`).replace(/\r/g,`%0D`).replace(/"/g,`%22`),i=e=>e.replace(/\r?\n|\r/g,`\r `),a=[],o=new Uint8Array([13,10]) /*! formdata-polyfill. MIT License. Jimmy Wärting */ ;u=0;let s=!1;for(let[t,c]of e)if(typeof c==`string`){let e=S.encode(n+`; name="${r(i(t))}"\r\n\r\n${i(c)}\r\n`);a.push(e),u+=e.byteLength}else{let e=S.encode(`${n}; name="${r(i(t))}"`+(c.name?`; filename="${r(c.name)}"`:``)+`\r -Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=S.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(i(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(n.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);s=e instanceof ReadableStream?e:r(e)}if((typeof l==`string`||n.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;s=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:n,done:r}=await t.next();if(r)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!g(s)){let t=new Uint8Array(n);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:s,source:l,length:u},d]}function D(e,t=!1){return e instanceof ReadableStream&&(h(!n.isDisturbed(e),`The body has already been consumed.`),h(!e.locked,`The stream is locked.`)),E(e,t)}function O(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function k(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function A(e){return{blob(){return M(this,e=>{let t=ee(this);return t===null?t=``:t&&=y(t),new m([e],{type:t})},e)},arrayBuffer(){return M(this,e=>new Uint8Array(e).buffer,e)},text(){return M(this,u,e)},json(){return M(this,P,e)},formData(){return M(this,e=>{let t=ee(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=b(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new d;return r[f]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new d;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return M(this,e=>new Uint8Array(e),e)}}}function j(e){Object.assign(e.prototype,A(e))}async function M(e,t,n){if(p.brandCheck(e,n),N(e))throw TypeError(`Body is unusable: Body has already been read`);k(e[f]);let r=s(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await c(e[f].body,a,i),r.promise)}function N(e){let t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function P(e){return JSON.parse(u(e))}function ee(e){let t=e[f].headersList,n=l(t);return n===`failure`?null:n}t.exports={extractBody:E,safelyExtractBody:D,cloneBody:O,mixinBody:j,streamRegistry:T,hasFinalizationRegistry:w,bodyUnusable:N}})),nt=R(((e,t)=>{let n=B(`node:assert`),r=V(),{channels:i}=Ie(),a=Be(),{RequestContentLengthMismatchError:o,ResponseContentLengthMismatchError:s,RequestAbortedError:c,HeadersTimeoutError:l,HeadersOverflowError:u,SocketError:d,InformationalError:f,BodyTimeoutError:p,HTTPParserError:m,ResponseExceededMaxSizeError:h}=Ne(),{kUrl:g,kReset:_,kClient:v,kParser:y,kBlocking:b,kRunning:x,kPending:S,kSize:C,kWriting:w,kQueue:T,kNoRef:E,kKeepAliveDefaultTimeout:D,kHostHeader:O,kPendingIdx:k,kRunningIdx:A,kError:j,kPipelining:M,kSocket:N,kKeepAliveTimeoutValue:P,kMaxHeadersSize:ee,kKeepAliveMaxTimeout:te,kKeepAliveTimeoutThreshold:ne,kHeadersTimeout:F,kBodyTimeout:re,kStrictContentLength:ie,kMaxRequests:I,kCounter:ae,kMaxResponseSize:oe,kOnError:se,kResume:ce,kHTTPContext:le}=Me(),L=Ue(),ue=Buffer.alloc(0),de=Buffer[Symbol.species],fe=r.addListener,pe=r.removeAllListeners,me;async function R(){let e=process.env.JEST_WORKER_ID?We():void 0,t;try{t=await WebAssembly.compile(Ge())}catch{t=await WebAssembly.compile(e||We())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,r)=>{n(z.ptr===e);let i=t-ye+_e.byteOffset;return z.onStatus(new de(_e.buffer,i,r))||0},wasm_on_message_begin:e=>(n(z.ptr===e),z.onMessageBegin()||0),wasm_on_header_field:(e,t,r)=>{n(z.ptr===e);let i=t-ye+_e.byteOffset;return z.onHeaderField(new de(_e.buffer,i,r))||0},wasm_on_header_value:(e,t,r)=>{n(z.ptr===e);let i=t-ye+_e.byteOffset;return z.onHeaderValue(new de(_e.buffer,i,r))||0},wasm_on_headers_complete:(e,t,r,i)=>(n(z.ptr===e),z.onHeadersComplete(t,!!r,!!i)||0),wasm_on_body:(e,t,r)=>{n(z.ptr===e);let i=t-ye+_e.byteOffset;return z.onBody(new de(_e.buffer,i,r))||0},wasm_on_message_complete:e=>(n(z.ptr===e),z.onMessageComplete()||0)}})}let he=null,ge=R();ge.catch();let z=null,_e=null,ve=0,ye=null;var be=class{constructor(e,t,{exports:r}){n(Number.isFinite(e[ee])&&e[ee]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(L.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[ee],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[oe]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(a.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=a.setFastTimeout(xe,e,new WeakRef(this)):(this.timeout=setTimeout(xe,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(n(this.ptr!=null),n(z==null),this.llhttp.llhttp_resume(this.ptr),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||ue),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){n(this.ptr!=null),n(z==null),n(!this.paused);let{socket:t,llhttp:i}=this;e.length>ve&&(ye&&i.free(ye),ve=Math.ceil(e.length/4096)*4096,ye=i.malloc(ve)),new Uint8Array(i.memory.buffer,ye,ve).set(e);try{let n;try{_e=e,z=this,n=i.llhttp_execute(this.ptr,ye,e.length)}catch(e){throw e}finally{z=null,_e=null}let r=i.llhttp_get_error_pos(this.ptr)-ye;if(n!==L.ERROR.OK){let i=e.subarray(r);if(n===L.ERROR.PAUSED_UPGRADE)this.onUpgrade(i);else if(n===L.ERROR.PAUSED)this.paused=!0,t.unshift(i);else throw this.createError(n,i)}}catch(e){r.destroy(t,e)}}finish(){n(z===null),n(this.ptr!=null),n(!this.paused);let{llhttp:e}=this,t;try{z=this,t=e.llhttp_finish(this.ptr)}finally{z=null}return t===L.ERROR.OK?null:t===L.ERROR.PAUSED||t===L.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(t,ue)}createError(e,t){let{llhttp:n,contentLength:r,bytesRead:i}=this;if(r&&i!==parseInt(r,10))return new s;let a=n.llhttp_get_error_reason(this.ptr),o=``;if(a){let e=new Uint8Array(n.memory.buffer,a).indexOf(0);o=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(n.memory.buffer,a,e).toString()+`)`}return new m(o,L.ERROR[e],t)}destroy(){n(this.ptr!=null),n(z==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&a.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[T][t[A]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=r.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&r.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u)}onUpgrade(e){let{upgrade:t,client:i,socket:a,headers:o,statusCode:s}=this;n(t),n(i[N]===a),n(!a.destroyed),n(!this.paused),n((o.length&1)==0);let c=i[T][i[A]];n(c),n(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[y].destroy(),a[y]=null,a[v]=null,a[j]=null,pe(a),i[N]=null,i[le]=null,i[T][i[A]++]=null,i.emit(`disconnect`,i[g],[i],new f(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){r.destroy(a,e)}i[ce]()}onHeadersComplete(e,t,i){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[T][a[A]];if(!l)return-1;if(n(!this.upgrade),n(this.statusCode<200),e===100)return r.destroy(o,new d(`bad response`,r.getSocketInfo(o))),-1;if(t&&!l.upgrade)return r.destroy(o,new d(`bad upgrade`,r.getSocketInfo(o))),-1;if(n(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=i||l.method===`HEAD`&&!o[_]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[re]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return n(a[x]===1),this.upgrade=!0,2;if(n((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[M]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[ne],a[te]);t<=0?o[_]=!0:a[P]=t}else a[P]=a[D]}else o[_]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[b]&&(o[b]=!1,a[ce]()),u?L.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:i,statusCode:a,maxResponseSize:o}=this;if(i.destroyed)return-1;let s=t[T][t[A]];if(n(s),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),n(a>=200),o>-1&&this.bytesRead+e.length>o)return r.destroy(i,new h),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return L.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:i,upgrade:a,headers:o,contentLength:c,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!i||u))return-1;if(a)return;n(i>=100),n((this.headers.length&1)==0);let d=e[T][e[A]];if(n(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(i<200)){if(d.method!==`HEAD`&&c&&l!==parseInt(c,10))return r.destroy(t,new s),-1;if(d.onComplete(o),e[T][e[A]++]=null,t[w])return n(e[x]===0),r.destroy(t,new f(`reset`)),L.ERROR.PAUSED;if(!u||t[_]&&e[x]===0)return r.destroy(t,new f(`reset`)),L.ERROR.PAUSED;e[M]==null||e[M]===1?setImmediate(()=>e[ce]()):e[ce]()}}};function xe(e){let{socket:t,timeoutType:i,client:a,paused:o}=e.deref();i===3?(!t[w]||t.writableNeedDrain||a[x]>1)&&(n(!o,`cannot be paused while waiting for headers`),r.destroy(t,new l)):i===5?o||r.destroy(t,new p):i===8&&(n(a[x]===0&&a[P]),r.destroy(t,new f(`socket idle timeout`)))}async function Se(e,t){e[N]=t,he||(he=await ge,ge=null),t[E]=!1,t[w]=!1,t[_]=!1,t[b]=!1,t[y]=new be(e,t,he),fe(t,`error`,function(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[y];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){let e=t.finish();e&&(this[j]=e,this[v][se](e));return}this[j]=e,this[v][se](e)}),fe(t,`readable`,function(){let e=this[y];e&&e.readMore()}),fe(t,`end`,function(){let e=this[y];if(e.statusCode&&!e.shouldKeepAlive){let t=e.finish();t&&r.destroy(this,t);return}r.destroy(this,new d(`other side closed`,r.getSocketInfo(this)))}),fe(t,`close`,function(){let e=this[v],t=this[y];t&&(!this[j]&&t.statusCode&&!t.shouldKeepAlive&&(this[j]=t.finish()||this[j]),this[y].destroy(),this[y]=null);let i=this[j]||new d(`closed`,r.getSocketInfo(this));if(e[N]=null,e[le]=null,e.destroyed){n(e[S]===0);let t=e[T].splice(e[A]);for(let n=0;n0&&i.code!==`UND_ERR_INFO`){let t=e[T][e[A]];e[T][e[A]++]=null,r.errorRequest(e,t,i)}e[k]=e[A],n(e[x]===0),e.emit(`disconnect`,e[g],[e],i),e[ce]()});let i=!1;return t.on(`close`,()=>{i=!0}),{version:`h1`,defaultPipelining:1,write(...t){return Te(e,...t)},resume(){Ce(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(n){return!!(t[w]||t[_]||t[b]||n&&(e[x]>0&&!n.idempotent||e[x]>0&&(n.upgrade||n.method===`CONNECT`)||e[x]>0&&r.bodyLength(n.body)!==0&&(r.isStream(n.body)||r.isAsyncIterable(n.body)||r.isFormDataLike(n.body))))}}}function Ce(e){let t=e[N];if(t&&!t.destroyed){if(e[C]===0?!t[E]&&t.unref&&(t.unref(),t[E]=!0):t[E]&&t.ref&&(t.ref(),t[E]=!1),e[C]===0)t[y].timeoutType!==8&&t[y].setTimeout(e[P],8);else if(e[x]>0&&t[y].statusCode<200&&t[y].timeoutType!==3){let n=e[T][e[A]],r=n.headersTimeout==null?e[F]:n.headersTimeout;t[y].setTimeout(r,3)}}}function we(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function Te(e,t){let{method:a,path:s,host:l,upgrade:u,blocking:d,reset:p}=t,{body:m,headers:h,contentLength:g}=t,v=a===`PUT`||a===`POST`||a===`PATCH`||a===`QUERY`||a===`PROPFIND`||a===`PROPPATCH`;if(r.isFormDataLike(m)){me||=tt().extractBody;let[e,n]=me(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else r.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let y=r.bodyLength(m);if(g=y??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),we(a)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[ie])return r.errorRequest(e,t,new o),!1;process.emitWarning(new o)}let x=e[N],S=n=>{t.aborted||t.completed||(r.errorRequest(e,t,n||new c),r.destroy(m),r.destroy(x,new f(`aborted`)))};try{t.onConnect(S)}catch(n){r.errorRequest(e,t,n)}if(t.aborted)return!1;a===`HEAD`&&(x[_]=!0),(u||a===`CONNECT`)&&(x[_]=!0),p!=null&&(x[_]=p),e[I]&&x[ae]++>=e[I]&&(x[_]=!0),d&&(x[b]=!0);let C=`${a} ${s} HTTP/1.1\r\n`;if(typeof l==`string`?C+=`host: ${l}\r\n`:C+=e[O],u?C+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[M]&&!x[_]?C+=`connection: keep-alive\r +Content-Type: ${c.type||`application/octet-stream`}\r\n\r\n`);a.push(e,c,o),typeof c.size==`number`?u+=e.byteLength+c.size+o.byteLength:s=!0}let f=S.encode(`--${t}--\r\n`);a.push(f),u+=f.byteLength,s&&(u=null),l=e,c=async function*(){for(let e of a)e.stream?yield*e.stream():yield e},d=`multipart/form-data; boundary=${t}`}else if(i(e))l=e,u=e.size,e.type&&(d=e.type);else if(typeof e[Symbol.asyncIterator]==`function`){if(t)throw TypeError(`keepalive`);if(n.isDisturbed(e)||e.locked)throw TypeError(`Response body object should not be disturbed or locked`);s=e instanceof ReadableStream?e:r(e)}if((typeof l==`string`||n.isBuffer(l))&&(u=Buffer.byteLength(l)),c!=null){let t;s=new ReadableStream({async start(){t=c(e)[Symbol.asyncIterator]()},async pull(e){let{value:n,done:r}=await t.next();if(r)queueMicrotask(()=>{e.close(),e.byobRequest?.respond(0)});else if(!g(s)){let t=new Uint8Array(n);t.byteLength&&e.enqueue(t)}return e.desiredSize>0},async cancel(e){await t.return()},type:`bytes`})}return[{stream:s,source:l,length:u},d]}function D(e,t=!1){return e instanceof ReadableStream&&(h(!n.isDisturbed(e),`The body has already been consumed.`),h(!e.locked,`The stream is locked.`)),E(e,t)}function O(e,t){let[n,r]=t.stream.tee();return t.stream=n,{stream:r,length:t.length,source:t.source}}function k(e){if(e.aborted)throw new DOMException(`The operation was aborted.`,`AbortError`)}function A(e){return{blob(){return M(this,e=>{let t=F(this);return t===null?t=``:t&&=y(t),new m([e],{type:t})},e)},arrayBuffer(){return M(this,e=>new Uint8Array(e).buffer,e)},text(){return M(this,u,e)},json(){return M(this,P,e)},formData(){return M(this,e=>{let t=F(this);if(t!==null)switch(t.essence){case`multipart/form-data`:{let n=b(e,t);if(n===`failure`)throw TypeError(`Failed to parse body as FormData.`);let r=new d;return r[f]=n,r}case`application/x-www-form-urlencoded`:{let t=new URLSearchParams(e.toString()),n=new d;for(let[e,r]of t)n.append(e,r);return n}}throw TypeError(`Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".`)},e)},bytes(){return M(this,e=>new Uint8Array(e),e)}}}function j(e){Object.assign(e.prototype,A(e))}async function M(e,t,n){if(p.brandCheck(e,n),N(e))throw TypeError(`Body is unusable: Body has already been read`);k(e[f]);let r=s(),i=e=>r.reject(e),a=e=>{try{r.resolve(t(e))}catch(e){i(e)}};return e[f].body==null?(a(Buffer.allocUnsafe(0)),r.promise):(await c(e[f].body,a,i),r.promise)}function N(e){let t=e[f].body;return t!=null&&(t.stream.locked||n.isDisturbed(t.stream))}function P(e){return JSON.parse(u(e))}function F(e){let t=e[f].headersList,n=l(t);return n===`failure`?null:n}t.exports={extractBody:E,safelyExtractBody:D,cloneBody:O,mixinBody:j,streamRegistry:T,hasFinalizationRegistry:w,bodyUnusable:N}})),tt=z(((e,t)=>{let n=V(`node:assert`),r=H(),{channels:i}=Fe(),a=ze(),{RequestContentLengthMismatchError:o,ResponseContentLengthMismatchError:s,RequestAbortedError:c,HeadersTimeoutError:l,HeadersOverflowError:u,SocketError:d,InformationalError:f,BodyTimeoutError:p,HTTPParserError:m,ResponseExceededMaxSizeError:h}=Me(),{kUrl:g,kReset:_,kClient:v,kParser:y,kBlocking:b,kRunning:x,kPending:S,kSize:C,kWriting:w,kQueue:T,kNoRef:E,kKeepAliveDefaultTimeout:D,kHostHeader:O,kPendingIdx:k,kRunningIdx:A,kError:j,kPipelining:M,kSocket:N,kKeepAliveTimeoutValue:P,kMaxHeadersSize:F,kKeepAliveMaxTimeout:ee,kKeepAliveTimeoutThreshold:te,kHeadersTimeout:I,kBodyTimeout:ne,kStrictContentLength:re,kMaxRequests:L,kCounter:ie,kMaxResponseSize:ae,kOnError:oe,kResume:se,kHTTPContext:ce}=je(),R=He(),le=Buffer.alloc(0),ue=Buffer[Symbol.species],de=r.addListener,fe=r.removeAllListeners,pe;async function z(){let e=process.env.JEST_WORKER_ID?Ue():void 0,t;try{t=await WebAssembly.compile(We())}catch{t=await WebAssembly.compile(e||Ue())}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,r)=>{n(B.ptr===e);let i=t-ve+ge.byteOffset;return B.onStatus(new ue(ge.buffer,i,r))||0},wasm_on_message_begin:e=>(n(B.ptr===e),B.onMessageBegin()||0),wasm_on_header_field:(e,t,r)=>{n(B.ptr===e);let i=t-ve+ge.byteOffset;return B.onHeaderField(new ue(ge.buffer,i,r))||0},wasm_on_header_value:(e,t,r)=>{n(B.ptr===e);let i=t-ve+ge.byteOffset;return B.onHeaderValue(new ue(ge.buffer,i,r))||0},wasm_on_headers_complete:(e,t,r,i)=>(n(B.ptr===e),B.onHeadersComplete(t,!!r,!!i)||0),wasm_on_body:(e,t,r)=>{n(B.ptr===e);let i=t-ve+ge.byteOffset;return B.onBody(new ue(ge.buffer,i,r))||0},wasm_on_message_complete:e=>(n(B.ptr===e),B.onMessageComplete()||0)}})}let me=null,he=z();he.catch();let B=null,ge=null,_e=0,ve=null;var ye=class{constructor(e,t,{exports:r}){n(Number.isFinite(e[F])&&e[F]>0),this.llhttp=r,this.ptr=this.llhttp.llhttp_alloc(R.TYPE.RESPONSE),this.client=e,this.socket=t,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText=``,this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[F],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive=``,this.contentLength=``,this.connection=``,this.maxResponseSize=e[ae]}setTimeout(e,t){e!==this.timeoutValue||t&1^this.timeoutType&1?(this.timeout&&=(a.clearTimeout(this.timeout),null),e&&(t&1?this.timeout=a.setFastTimeout(be,e,new WeakRef(this)):(this.timeout=setTimeout(be,e,new WeakRef(this)),this.timeout.unref())),this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.timeoutType=t}resume(){this.socket.destroyed||!this.paused||(n(this.ptr!=null),n(B==null),this.llhttp.llhttp_resume(this.ptr),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()||le),this.readMore())}readMore(){for(;!this.paused&&this.ptr;){let e=this.socket.read();if(e===null)break;this.execute(e)}}execute(e){n(this.ptr!=null),n(B==null),n(!this.paused);let{socket:t,llhttp:i}=this;e.length>_e&&(ve&&i.free(ve),_e=Math.ceil(e.length/4096)*4096,ve=i.malloc(_e)),new Uint8Array(i.memory.buffer,ve,_e).set(e);try{let n;try{ge=e,B=this,n=i.llhttp_execute(this.ptr,ve,e.length)}catch(e){throw e}finally{B=null,ge=null}let r=i.llhttp_get_error_pos(this.ptr)-ve;if(n!==R.ERROR.OK){let i=e.subarray(r);if(n===R.ERROR.PAUSED_UPGRADE)this.onUpgrade(i);else if(n===R.ERROR.PAUSED)this.paused=!0,t.unshift(i);else throw this.createError(n,i)}}catch(e){r.destroy(t,e)}}finish(){n(B===null),n(this.ptr!=null),n(!this.paused);let{llhttp:e}=this,t;try{B=this,t=e.llhttp_finish(this.ptr)}finally{B=null}return t===R.ERROR.OK?null:t===R.ERROR.PAUSED||t===R.ERROR.PAUSED_UPGRADE?(this.paused=!0,null):this.createError(t,le)}createError(e,t){let{llhttp:n,contentLength:r,bytesRead:i}=this;if(r&&i!==parseInt(r,10))return new s;let a=n.llhttp_get_error_reason(this.ptr),o=``;if(a){let e=new Uint8Array(n.memory.buffer,a).indexOf(0);o=`Response does not match the HTTP/1.1 protocol (`+Buffer.from(n.memory.buffer,a,e).toString()+`)`}return new m(o,R.ERROR[e],t)}destroy(){n(this.ptr!=null),n(B==null),this.llhttp.llhttp_free(this.ptr),this.ptr=null,this.timeout&&a.clearTimeout(this.timeout),this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.paused=!1}onStatus(e){this.statusText=e.toString()}onMessageBegin(){let{socket:e,client:t}=this;if(e.destroyed)return-1;let n=t[T][t[A]];if(!n)return-1;n.onResponseStarted()}onHeaderField(e){let t=this.headers.length;t&1?this.headers[t-1]=Buffer.concat([this.headers[t-1],e]):this.headers.push(e),this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;(t&1)==1?(this.headers.push(e),t+=1):this.headers[t-1]=Buffer.concat([this.headers[t-1],e]);let n=this.headers[t-2];if(n.length===10){let t=r.bufferToLowerCasedHeaderName(n);t===`keep-alive`?this.keepAlive+=e.toString():t===`connection`&&(this.connection+=e.toString())}else n.length===14&&r.bufferToLowerCasedHeaderName(n)===`content-length`&&(this.contentLength+=e.toString());this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e,this.headersSize>=this.headersMaxSize&&r.destroy(this.socket,new u)}onUpgrade(e){let{upgrade:t,client:i,socket:a,headers:o,statusCode:s}=this;n(t),n(i[N]===a),n(!a.destroyed),n(!this.paused),n((o.length&1)==0);let c=i[T][i[A]];n(c),n(c.upgrade||c.method===`CONNECT`),this.statusCode=null,this.statusText=``,this.shouldKeepAlive=null,this.headers=[],this.headersSize=0,a.unshift(e),a[y].destroy(),a[y]=null,a[v]=null,a[j]=null,fe(a),i[N]=null,i[ce]=null,i[T][i[A]++]=null,i.emit(`disconnect`,i[g],[i],new f(`upgrade`));try{c.onUpgrade(s,o,a)}catch(e){r.destroy(a,e)}i[se]()}onHeadersComplete(e,t,i){let{client:a,socket:o,headers:s,statusText:c}=this;if(o.destroyed)return-1;let l=a[T][a[A]];if(!l)return-1;if(n(!this.upgrade),n(this.statusCode<200),e===100)return r.destroy(o,new d(`bad response`,r.getSocketInfo(o))),-1;if(t&&!l.upgrade)return r.destroy(o,new d(`bad upgrade`,r.getSocketInfo(o))),-1;if(n(this.timeoutType===3),this.statusCode=e,this.shouldKeepAlive=i||l.method===`HEAD`&&!o[_]&&this.connection.toLowerCase()===`keep-alive`,this.statusCode>=200){let e=l.bodyTimeout==null?a[ne]:l.bodyTimeout;this.setTimeout(e,5)}else this.timeout&&this.timeout.refresh&&this.timeout.refresh();if(l.method===`CONNECT`||t)return n(a[x]===1),this.upgrade=!0,2;if(n((this.headers.length&1)==0),this.headers=[],this.headersSize=0,this.shouldKeepAlive&&a[M]){let e=this.keepAlive?r.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){let t=Math.min(e-a[te],a[ee]);t<=0?o[_]=!0:a[P]=t}else a[P]=a[D]}else o[_]=!0;let u=l.onHeaders(e,s,this.resume,c)===!1;return l.aborted?-1:l.method===`HEAD`||e<200?1:(o[b]&&(o[b]=!1,a[se]()),u?R.ERROR.PAUSED:0)}onBody(e){let{client:t,socket:i,statusCode:a,maxResponseSize:o}=this;if(i.destroyed)return-1;let s=t[T][t[A]];if(n(s),n(this.timeoutType===5),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),n(a>=200),o>-1&&this.bytesRead+e.length>o)return r.destroy(i,new h),-1;if(this.bytesRead+=e.length,s.onData(e)===!1)return R.ERROR.PAUSED}onMessageComplete(){let{client:e,socket:t,statusCode:i,upgrade:a,headers:o,contentLength:c,bytesRead:l,shouldKeepAlive:u}=this;if(t.destroyed&&(!i||u))return-1;if(a)return;n(i>=100),n((this.headers.length&1)==0);let d=e[T][e[A]];if(n(d),this.statusCode=null,this.statusText=``,this.bytesRead=0,this.contentLength=``,this.keepAlive=``,this.connection=``,this.headers=[],this.headersSize=0,!(i<200)){if(d.method!==`HEAD`&&c&&l!==parseInt(c,10))return r.destroy(t,new s),-1;if(d.onComplete(o),e[T][e[A]++]=null,t[w])return n(e[x]===0),r.destroy(t,new f(`reset`)),R.ERROR.PAUSED;if(!u||t[_]&&e[x]===0)return r.destroy(t,new f(`reset`)),R.ERROR.PAUSED;e[M]==null||e[M]===1?setImmediate(()=>e[se]()):e[se]()}}};function be(e){let{socket:t,timeoutType:i,client:a,paused:o}=e.deref();i===3?(!t[w]||t.writableNeedDrain||a[x]>1)&&(n(!o,`cannot be paused while waiting for headers`),r.destroy(t,new l)):i===5?o||r.destroy(t,new p):i===8&&(n(a[x]===0&&a[P]),r.destroy(t,new f(`socket idle timeout`)))}async function xe(e,t){e[N]=t,me||(me=await he,he=null),t[E]=!1,t[w]=!1,t[_]=!1,t[b]=!1,t[y]=new ye(e,t,me),de(t,`error`,function(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`);let t=this[y];if(e.code===`ECONNRESET`&&t.statusCode&&!t.shouldKeepAlive){let e=t.finish();e&&(this[j]=e,this[v][oe](e));return}this[j]=e,this[v][oe](e)}),de(t,`readable`,function(){let e=this[y];e&&e.readMore()}),de(t,`end`,function(){let e=this[y];if(e.statusCode&&!e.shouldKeepAlive){let t=e.finish();t&&r.destroy(this,t);return}r.destroy(this,new d(`other side closed`,r.getSocketInfo(this)))}),de(t,`close`,function(){let e=this[v],t=this[y];t&&(!this[j]&&t.statusCode&&!t.shouldKeepAlive&&(this[j]=t.finish()||this[j]),this[y].destroy(),this[y]=null);let i=this[j]||new d(`closed`,r.getSocketInfo(this));if(e[N]=null,e[ce]=null,e.destroyed){n(e[S]===0);let t=e[T].splice(e[A]);for(let n=0;n0&&i.code!==`UND_ERR_INFO`){let t=e[T][e[A]];e[T][e[A]++]=null,r.errorRequest(e,t,i)}e[k]=e[A],n(e[x]===0),e.emit(`disconnect`,e[g],[e],i),e[se]()});let i=!1;return t.on(`close`,()=>{i=!0}),{version:`h1`,defaultPipelining:1,write(...t){return we(e,...t)},resume(){Se(e)},destroy(e,n){i?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(n){return!!(t[w]||t[_]||t[b]||n&&(e[x]>0&&!n.idempotent||e[x]>0&&(n.upgrade||n.method===`CONNECT`)||e[x]>0&&r.bodyLength(n.body)!==0&&(r.isStream(n.body)||r.isAsyncIterable(n.body)||r.isFormDataLike(n.body))))}}}function Se(e){let t=e[N];if(t&&!t.destroyed){if(e[C]===0?!t[E]&&t.unref&&(t.unref(),t[E]=!0):t[E]&&t.ref&&(t.ref(),t[E]=!1),e[C]===0)t[y].timeoutType!==8&&t[y].setTimeout(e[P],8);else if(e[x]>0&&t[y].statusCode<200&&t[y].timeoutType!==3){let n=e[T][e[A]],r=n.headersTimeout==null?e[I]:n.headersTimeout;t[y].setTimeout(r,3)}}}function Ce(e){return e!==`GET`&&e!==`HEAD`&&e!==`OPTIONS`&&e!==`TRACE`&&e!==`CONNECT`}function we(e,t){let{method:a,path:s,host:l,upgrade:u,blocking:d,reset:p}=t,{body:m,headers:h,contentLength:g}=t,v=a===`PUT`||a===`POST`||a===`PATCH`||a===`QUERY`||a===`PROPFIND`||a===`PROPPATCH`;if(r.isFormDataLike(m)){pe||=et().extractBody;let[e,n]=pe(m);t.contentType??h.push(`content-type`,n),m=e.stream,g=e.length}else r.isBlobLike(m)&&t.contentType==null&&m.type&&h.push(`content-type`,m.type);m&&typeof m.read==`function`&&m.read(0);let y=r.bodyLength(m);if(g=y??g,g===null&&(g=t.contentLength),g===0&&!v&&(g=null),Ce(a)&&g>0&&t.contentLength!==null&&t.contentLength!==g){if(e[re])return r.errorRequest(e,t,new o),!1;process.emitWarning(new o)}let x=e[N],S=n=>{t.aborted||t.completed||(r.errorRequest(e,t,n||new c),r.destroy(m),r.destroy(x,new f(`aborted`)))};try{t.onConnect(S)}catch(n){r.errorRequest(e,t,n)}if(t.aborted)return!1;a===`HEAD`&&(x[_]=!0),(u||a===`CONNECT`)&&(x[_]=!0),p!=null&&(x[_]=p),e[L]&&x[ie]++>=e[L]&&(x[_]=!0),d&&(x[b]=!0);let C=`${a} ${s} HTTP/1.1\r\n`;if(typeof l==`string`?C+=`host: ${l}\r\n`:C+=e[O],u?C+=`connection: upgrade\r\nupgrade: ${u}\r\n`:e[M]&&!x[_]?C+=`connection: keep-alive\r `:C+=`connection: close\r -`,Array.isArray(h))for(let e=0;e{t.removeListener(`error`,g)}),!d){let e=new c;queueMicrotask(()=>g(e))}},g=function(e){if(!d){if(d=!0,n(o.destroyed||o[w]&&i[x]<=1),o.off(`drain`,m).off(`error`,g),t.removeListener(`data`,p).removeListener(`end`,g).removeListener(`close`,h),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?r.destroy(t,e):r.destroy(t)}};t.on(`data`,p).on(`end`,g).on(`error`,g).on(`close`,h),t.resume&&t.resume(),o.on(`drain`,m).on(`error`,g),t.errorEmitted??t.errored?setImmediate(()=>g(t.errored)):(t.endEmitted??t.readableEnded)&&setImmediate(()=>g(null)),(t.closeEmitted??t.closed)&&setImmediate(h)}function De(e,t,i,a,o,s,c,l){try{t?r.isBuffer(t)&&(n(s===t.byteLength,`buffer body must have content length`),o.cork(),o.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),o.write(t),o.uncork(),a.onBodySent(t),!l&&a.reset!==!1&&(o[_]=!0)):s===0?o.write(`${c}content-length: 0\r\n\r\n`,`latin1`):(n(s===null,`no body must not have content length`),o.write(`${c}\r\n`,`latin1`)),a.onRequestSent(),i[ce]()}catch(t){e(t)}}async function Oe(e,t,r,i,a,s,c,l){n(s===t.size,`blob body must have content length`);try{if(s!=null&&s!==t.size)throw new o;let e=Buffer.from(await t.arrayBuffer());a.cork(),a.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),a.write(e),a.uncork(),i.onBodySent(e),i.onRequestSent(),!l&&i.reset!==!1&&(a[_]=!0),r[ce]()}catch(t){e(t)}}async function ke(e,t,r,i,a,o,s,c){n(o!==0||r[x]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let d=()=>new Promise((e,t)=>{n(l===null),a[j]?t(a[j]):l=e});a.on(`close`,u).on(`drain`,u);let f=new Ae({abort:e,socket:a,request:i,contentLength:o,client:r,expectsPayload:c,header:s});try{for await(let e of t){if(a[j])throw a[j];f.write(e)||await d()}f.end()}catch(e){f.destroy(e)}finally{a.off(`close`,u).off(`drain`,u)}}var Ae=class{constructor({abort:e,socket:t,request:n,contentLength:r,client:i,expectsPayload:a,header:o}){this.socket=t,this.request=n,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=o,this.abort=e,t[w]=!0}write(e){let{socket:t,request:n,contentLength:r,client:i,bytesWritten:a,expectsPayload:s,header:c}=this;if(t[j])throw t[j];if(t.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(r!==null&&a+l>r){if(i[ie])throw new o;process.emitWarning(new o)}t.cork(),a===0&&(!s&&n.reset!==!1&&(t[_]=!0),r===null?t.write(`${c}transfer-encoding: chunked\r\n`,`latin1`):t.write(`${c}content-length: ${r}\r\n\r\n`,`latin1`)),r===null&&t.write(`\r\n${l.toString(16)}\r\n`,`latin1`),this.bytesWritten+=l;let u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[y].timeout&&t[y].timeoutType===3&&t[y].timeout.refresh&&t[y].timeout.refresh(),u}end(){let{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:a,request:s}=this;if(s.onRequestSent(),e[w]=!1,e[j])throw e[j];if(!e.destroyed){if(r===0?i?e.write(`${a}content-length: 0\r\n\r\n`,`latin1`):e.write(`${a}\r\n`,`latin1`):t===null&&e.write(`\r +`,Array.isArray(h))for(let e=0;e{t.removeListener(`error`,g)}),!d){let e=new c;queueMicrotask(()=>g(e))}},g=function(e){if(!d){if(d=!0,n(o.destroyed||o[w]&&i[x]<=1),o.off(`drain`,m).off(`error`,g),t.removeListener(`data`,p).removeListener(`end`,g).removeListener(`close`,h),!e)try{f.end()}catch(t){e=t}f.destroy(e),e&&(e.code!==`UND_ERR_INFO`||e.message!==`reset`)?r.destroy(t,e):r.destroy(t)}};t.on(`data`,p).on(`end`,g).on(`error`,g).on(`close`,h),t.resume&&t.resume(),o.on(`drain`,m).on(`error`,g),t.errorEmitted??t.errored?setImmediate(()=>g(t.errored)):(t.endEmitted??t.readableEnded)&&setImmediate(()=>g(null)),(t.closeEmitted??t.closed)&&setImmediate(h)}function Ee(e,t,i,a,o,s,c,l){try{t?r.isBuffer(t)&&(n(s===t.byteLength,`buffer body must have content length`),o.cork(),o.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),o.write(t),o.uncork(),a.onBodySent(t),!l&&a.reset!==!1&&(o[_]=!0)):s===0?o.write(`${c}content-length: 0\r\n\r\n`,`latin1`):(n(s===null,`no body must not have content length`),o.write(`${c}\r\n`,`latin1`)),a.onRequestSent(),i[se]()}catch(t){e(t)}}async function De(e,t,r,i,a,s,c,l){n(s===t.size,`blob body must have content length`);try{if(s!=null&&s!==t.size)throw new o;let e=Buffer.from(await t.arrayBuffer());a.cork(),a.write(`${c}content-length: ${s}\r\n\r\n`,`latin1`),a.write(e),a.uncork(),i.onBodySent(e),i.onRequestSent(),!l&&i.reset!==!1&&(a[_]=!0),r[se]()}catch(t){e(t)}}async function Oe(e,t,r,i,a,o,s,c){n(o!==0||r[x]===0,`iterator body cannot be pipelined`);let l=null;function u(){if(l){let e=l;l=null,e()}}let d=()=>new Promise((e,t)=>{n(l===null),a[j]?t(a[j]):l=e});a.on(`close`,u).on(`drain`,u);let f=new ke({abort:e,socket:a,request:i,contentLength:o,client:r,expectsPayload:c,header:s});try{for await(let e of t){if(a[j])throw a[j];f.write(e)||await d()}f.end()}catch(e){f.destroy(e)}finally{a.off(`close`,u).off(`drain`,u)}}var ke=class{constructor({abort:e,socket:t,request:n,contentLength:r,client:i,expectsPayload:a,header:o}){this.socket=t,this.request=n,this.contentLength=r,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=o,this.abort=e,t[w]=!0}write(e){let{socket:t,request:n,contentLength:r,client:i,bytesWritten:a,expectsPayload:s,header:c}=this;if(t[j])throw t[j];if(t.destroyed)return!1;let l=Buffer.byteLength(e);if(!l)return!0;if(r!==null&&a+l>r){if(i[re])throw new o;process.emitWarning(new o)}t.cork(),a===0&&(!s&&n.reset!==!1&&(t[_]=!0),r===null?t.write(`${c}transfer-encoding: chunked\r\n`,`latin1`):t.write(`${c}content-length: ${r}\r\n\r\n`,`latin1`)),r===null&&t.write(`\r\n${l.toString(16)}\r\n`,`latin1`),this.bytesWritten+=l;let u=t.write(e);return t.uncork(),n.onBodySent(e),u||t[y].timeout&&t[y].timeoutType===3&&t[y].timeout.refresh&&t[y].timeout.refresh(),u}end(){let{socket:e,contentLength:t,client:n,bytesWritten:r,expectsPayload:i,header:a,request:s}=this;if(s.onRequestSent(),e[w]=!1,e[j])throw e[j];if(!e.destroyed){if(r===0?i?e.write(`${a}content-length: 0\r\n\r\n`,`latin1`):e.write(`${a}\r\n`,`latin1`):t===null&&e.write(`\r 0\r \r -`,`latin1`),t!==null&&r!==t){if(n[ie])throw new o;process.emitWarning(new o)}e[y].timeout&&e[y].timeoutType===3&&e[y].timeout.refresh&&e[y].timeout.refresh(),n[ce]()}}destroy(e){let{socket:t,client:r,abort:i}=this;t[w]=!1,e&&(n(r[x]<=1,`pipeline should only contain this request`),i(e))}};t.exports=Se})),rt=R(((e,t)=>{let n=B(`node:assert`),{pipeline:r}=B(`node:stream`),i=V(),{RequestContentLengthMismatchError:a,RequestAbortedError:o,SocketError:s,InformationalError:c}=Ne(),{kUrl:l,kReset:u,kClient:d,kRunning:f,kPending:p,kQueue:m,kPendingIdx:h,kRunningIdx:g,kError:_,kSocket:v,kStrictContentLength:y,kOnError:b,kMaxConcurrentStreams:x,kHTTP2Session:S,kResume:C,kSize:w,kHTTPContext:T}=Me(),E=Symbol(`open streams`),D,O=!1,k;try{k=B(`node:http2`)}catch{k={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:A,HTTP2_HEADER_METHOD:j,HTTP2_HEADER_PATH:M,HTTP2_HEADER_SCHEME:N,HTTP2_HEADER_CONTENT_LENGTH:P,HTTP2_HEADER_EXPECT:ee,HTTP2_HEADER_STATUS:te}}=k;function ne(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function F(e,t){e[v]=t,O||(O=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let r=k.connect(e[l],{createConnection:()=>t,peerMaxConcurrentStreams:e[x]});r[E]=0,r[d]=e,r[v]=t,i.addListener(r,`error`,ie),i.addListener(r,`frameError`,I),i.addListener(r,`end`,ae),i.addListener(r,`goaway`,oe),i.addListener(r,`close`,function(){let{[d]:e}=this,{[v]:t}=e,r=this[v][_]||this[_]||new s(`closed`,i.getSocketInfo(t));if(e[S]=null,e.destroyed){n(e[p]===0);let t=e[m].splice(e[g]);for(let n=0;n{a=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return ce(e,...t)},resume(){re(e)},destroy(e,n){a?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function re(e){let t=e[v];t?.destroyed===!1&&(e[w]===0&&e[x]===0?(t.unref(),e[S].unref()):(t.ref(),e[S].ref()))}function ie(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[v][_]=e,this[d][b](e)}function I(e,t,n){if(n===0){let n=new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[v][_]=n,this[d][b](n)}}function ae(){let e=new s(`other side closed`,i.getSocketInfo(this[v]));this.destroy(e),i.destroy(this[v],e)}function oe(e){let t=this[_]||new s(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this)),r=this[d];if(r[v]=null,r[T]=null,this[S]!=null&&(this[S].destroy(t),this[S]=null),i.destroy(this[v],t),r[g]{t.aborted||t.completed||(n||=new o,i.errorRequest(e,t,n),T!=null&&i.destroy(T,n),i.destroy(x,n),e[m][e[g]++]=null,e[C]())};try{t.onConnect(F)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;if(s===`CONNECT`)return r.ref(),T=r.request(w,{endStream:!1,signal:_}),T.id&&!T.pending?(t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null):T.once(`ready`,()=>{t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),!0;w[M]=u,w[N]=`https`;let re=s===`PUT`||s===`POST`||s===`PATCH`;x&&typeof x.read==`function`&&x.read(0);let ie=i.bodyLength(x);if(i.isFormDataLike(x)){D??=tt().extractBody;let[e,t]=D(x);w[`content-type`]=t,x=e.stream,ie=e.length}if(ie??=t.contentLength,(ie===0||!re)&&(ie=null),se(s)&&ie>0&&t.contentLength!=null&&t.contentLength!==ie){if(e[y])return i.errorRequest(e,t,new a),!1;process.emitWarning(new a)}ie!=null&&(n(x,`no body must not have content length`),w[P]=`${ie}`),r.ref();let I=s===`GET`||s===`HEAD`||x===null;return p?(w[ee]=`100-continue`,T=r.request(w,{endStream:I,signal:_}),T.once(`continue`,ae)):(T=r.request(w,{endStream:I,signal:_}),ae()),++r[E],T.once(`response`,n=>{let{[te]:r,...a}=n;if(t.onResponseStarted(),t.aborted){let n=new o;i.errorRequest(e,t,n),i.destroy(T,n);return}t.onHeaders(Number(r),ne(a),T.resume.bind(T),``)===!1&&T.pause(),T.on(`data`,e=>{t.onData(e)===!1&&T.pause()})}),T.once(`end`,()=>{(T.state?.state==null||T.state.state<6)&&t.onComplete([]),r[E]===0&&r.unref(),F(new c(`HTTP/2: stream half-closed (remote)`)),e[m][e[g]++]=null,e[h]=e[g],e[C]()}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),T.once(`error`,function(e){F(e)}),T.once(`frameError`,(e,t)=>{F(new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function ae(){!x||ie===0?le(F,T,null,e,t,e[v],ie,re):i.isBuffer(x)?le(F,T,x,e,t,e[v],ie,re):i.isBlobLike(x)?typeof x.stream==`function`?de(F,T,x.stream(),e,t,e[v],ie,re):ue(F,T,x,e,t,e[v],ie,re):i.isStream(x)?L(F,e[v],re,T,x,e,t,ie):i.isIterable(x)?de(F,T,x,e,t,e[v],ie,re):n(!1)}}function le(e,t,r,a,o,s,c,l){try{r!=null&&i.isBuffer(r)&&(n(c===r.byteLength,`buffer body must have content length`),t.cork(),t.write(r),t.uncork(),t.end(),o.onBodySent(r)),l||(s[u]=!0),o.onRequestSent(),a[C]()}catch(t){e(t)}}function L(e,t,a,o,s,c,l,d){n(d!==0||c[f]===0,`stream body cannot be pipelined`);let p=r(s,o,n=>{n?(i.destroy(p,n),e(n)):(i.removeAllListeners(p),l.onRequestSent(),a||(t[u]=!0),c[C]())});i.addListener(p,`data`,m);function m(e){l.onBodySent(e)}}async function ue(e,t,r,i,o,s,c,l){n(c===r.size,`blob body must have content length`);try{if(c!=null&&c!==r.size)throw new a;let e=Buffer.from(await r.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),o.onBodySent(e),o.onRequestSent(),l||(s[u]=!0),i[C]()}catch(t){e(t)}}async function de(e,t,r,i,a,o,s,c){n(s!==0||i[f]===0,`iterator body cannot be pipelined`);let l=null;function d(){if(l){let e=l;l=null,e()}}let p=()=>new Promise((e,t)=>{n(l===null),o[_]?t(o[_]):l=e});t.on(`close`,d).on(`drain`,d);try{for await(let e of r){if(o[_])throw o[_];let n=t.write(e);a.onBodySent(e),n||await p()}t.end(),a.onRequestSent(),c||(o[u]=!0),i[C]()}catch(t){e(t)}finally{t.off(`close`,d).off(`drain`,d)}}t.exports=F})),it=R(((e,t)=>{let n=V(),{kBodyUsed:r}=Me(),i=B(`node:assert`),{InvalidArgumentError:a}=Ne(),o=B(`node:events`),s=[300,301,302,303,307,308],c=Symbol(`body`);var l=class{constructor(e){this[c]=e,this[r]=!1}async*[Symbol.asyncIterator](){i(!this[r],`disturbed`),this[r]=!0,yield*this[c]}},u=class{constructor(e,t,s,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxRedirections must be a positive number`);n.validateHandler(c,s.method,s.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...s,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,n.isStream(this.opts.body)?(n.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){i(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[r]=!1,o.prototype.on.call(this.opts.body,`data`,function(){this[r]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body))&&(this.opts.body=new l(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,i){if(this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:d(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,r,i);let{origin:a,pathname:o,search:s}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=p(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function d(e,t){if(s.indexOf(e)===-1)return null;for(let e=0;e{let n=it();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),ot=R(((e,t)=>{let n=B(`node:assert`),r=B(`node:net`),i=B(`node:http`),a=V(),{channels:o}=Ie(),s=Le(),c=ze(),{InvalidArgumentError:l,InformationalError:u,ClientDestroyedError:d}=Ne(),f=Ve(),{kUrl:p,kServerName:m,kClient:h,kBusy:g,kConnect:_,kResuming:v,kRunning:y,kPending:b,kSize:x,kQueue:S,kConnected:C,kConnecting:w,kNeedDrain:T,kKeepAliveDefaultTimeout:E,kHostHeader:D,kPendingIdx:O,kRunningIdx:k,kError:A,kPipelining:j,kKeepAliveTimeoutValue:M,kMaxHeadersSize:N,kKeepAliveMaxTimeout:P,kKeepAliveTimeoutThreshold:ee,kHeadersTimeout:te,kBodyTimeout:ne,kStrictContentLength:F,kConnector:re,kMaxRedirections:ie,kMaxRequests:I,kCounter:ae,kClose:oe,kDestroy:se,kDispatch:ce,kInterceptors:le,kLocalAddress:L,kMaxResponseSize:ue,kOnError:de,kHTTPContext:fe,kMaxConcurrentStreams:pe,kResume:me}=Me(),R=nt(),he=rt(),ge=!1,z=Symbol(`kClosedResolve`),_e=()=>{};function ve(e){return e[j]??e[fe]?.defaultPipelining??1}var ye=class extends c{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:s,requestTimeout:c,connectTimeout:u,bodyTimeout:d,idleTimeout:h,keepAlive:g,keepAliveTimeout:_,maxKeepAliveTimeout:y,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:x,socketPath:C,pipelining:w,tls:A,strictContentLength:ae,maxCachedSessions:oe,maxRedirections:se,connect:ce,maxRequestsPerClient:R,localAddress:he,maxResponseSize:B,autoSelectFamily:_e,autoSelectFamilyAttemptTimeout:ve,maxConcurrentStreams:ye,allowH2:Se,webSocket:Ce}={}){if(super({webSocket:Ce}),g!==void 0)throw new l(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new l(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new l(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(h!==void 0)throw new l(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new l(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new l(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new l(`invalid socketPath`);if(u!=null&&(!Number.isFinite(u)||u<0))throw new l(`invalid connectTimeout`);if(_!=null&&(!Number.isFinite(_)||_<=0))throw new l(`invalid keepAliveTimeout`);if(b!=null&&(!Number.isFinite(b)||b<=0))throw new l(`invalid keepAliveMaxTimeout`);if(x!=null&&!Number.isFinite(x))throw new l(`invalid keepAliveTimeoutThreshold`);if(o!=null&&(!Number.isInteger(o)||o<0))throw new l(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new l(`bodyTimeout must be a positive integer or zero`);if(ce!=null&&typeof ce!=`function`&&typeof ce!=`object`)throw new l(`connect must be a function or an object`);if(se!=null&&(!Number.isInteger(se)||se<0))throw new l(`maxRedirections must be a positive number`);if(R!=null&&(!Number.isInteger(R)||R<0))throw new l(`maxRequestsPerClient must be a positive number`);if(he!=null&&(typeof he!=`string`||r.isIP(he)===0))throw new l(`localAddress must be valid string IP address`);if(B!=null&&(!Number.isInteger(B)||B<-1))throw new l(`maxResponseSize must be a positive number`);if(ve!=null&&(!Number.isInteger(ve)||ve<-1))throw new l(`autoSelectFamilyAttemptTimeout must be a positive number`);if(Se!=null&&typeof Se!=`boolean`)throw new l(`allowH2 must be a valid boolean value`);if(ye!=null&&(typeof ye!=`number`||ye<1))throw new l(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof ce!=`function`&&(ce=f({...A,maxCachedSessions:oe,allowH2:Se,socketPath:C,timeout:u,..._e?{autoSelectFamily:_e,autoSelectFamilyAttemptTimeout:ve}:void 0,...ce})),t?.Client&&Array.isArray(t.Client)?(this[le]=t.Client,ge||(ge=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[le]=[be({maxRedirections:se})],this[p]=a.parseOrigin(e),this[re]=ce,this[j]=w??1,this[N]=n||i.maxHeaderSize,this[E]=_??4e3,this[P]=b??6e5,this[ee]=x??2e3,this[M]=this[E],this[m]=null,this[L]=he??null,this[v]=0,this[T]=0,this[D]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:``}\r\n`,this[ne]=d??3e5,this[te]=o??3e5,this[F]=ae??!0,this[ie]=se,this[I]=R,this[z]=null,this[ue]=B>-1?B:-1,this[pe]=ye??100,this[fe]=null,this[S]=[],this[k]=0,this[O]=0,this[me]=e=>we(this,e),this[de]=e=>xe(this,e)}get pipelining(){return this[j]}set pipelining(e){this[j]=e,this[me](!0)}get[b](){return this[S].length-this[O]}get[y](){return this[O]-this[k]}get[x](){return this[S].length-this[k]}get[C](){return!!this[fe]&&!this[w]&&!this[fe].destroyed}get[g](){return!!(this[fe]?.busy(null)||this[x]>=(ve(this)||1)||this[b]>0)}[_](e){Se(this),this.once(`connect`,e)}[ce](e,t){let n=new s(e.origin||this[p].origin,e,t);return this[S].push(n),this[v]||(a.bodyLength(n.body)==null&&a.isIterable(n.body)?(this[v]=1,queueMicrotask(()=>we(this))):this[me](!0)),this[v]&&this[T]!==2&&this[g]&&(this[T]=2),this[T]<2}async[oe](){return new Promise(e=>{this[x]?this[z]=e:e(null)})}async[se](e){return new Promise(t=>{let n=this[S].splice(this[O]);for(let t=0;t{this[z]&&(this[z](),this[z]=null),t(null)};this[fe]?(this[fe].destroy(e,r),this[fe]=null):queueMicrotask(r),this[me]()})}};let be=at();function xe(e,t){if(e[y]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){n(e[O]===e[k]);let r=e[S].splice(e[k]);for(let n=0;n{e[re]({host:t,hostname:i,protocol:s,port:c,servername:e[m],localAddress:e[L]},(e,t)=>{e?r(e):n(t)})});if(e.destroyed){a.destroy(r.on(`error`,_e),new d);return}n(r);try{e[fe]=r.alpnProtocol===`h2`?await he(e,r):await R(e,r)}catch(e){throw r.destroy().on(`error`,_e),e}e[w]=!1,r[ae]=0,r[I]=e[I],r[h]=e,r[A]=null,o.connected.hasSubscribers&&o.connected.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[fe]?.version,servername:e[m],localAddress:e[L]},connector:e[re],socket:r}),e.emit(`connect`,e[p],[e])}catch(r){if(e.destroyed)return;if(e[w]=!1,o.connectError.hasSubscribers&&o.connectError.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[fe]?.version,servername:e[m],localAddress:e[L]},connector:e[re],error:r}),r.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(n(e[y]===0);e[b]>0&&e[S][e[O]].servername===e[m];){let t=e[S][e[O]++];a.errorRequest(e,t,r)}else xe(e,r);e.emit(`connectionError`,e[p],[e],r)}e[me]()}function Ce(e){e[T]=0,e.emit(`drain`,e[p],[e])}function we(e,t){e[v]!==2&&(e[v]=2,Te(e,t),e[v]=0,e[k]>256&&(e[S].splice(0,e[k]),e[O]-=e[k],e[k]=0))}function Te(e,t){for(;;){if(e.destroyed){n(e[b]===0);return}if(e[z]&&!e[x]){e[z](),e[z]=null;return}if(e[fe]&&e[fe].resume(),e[g])e[T]=2;else if(e[T]===2){t?(e[T]=1,queueMicrotask(()=>Ce(e))):Ce(e);continue}if(e[b]===0||e[y]>=(ve(e)||1))return;let r=e[S][e[O]];if(e[p].protocol===`https:`&&e[m]!==r.servername){if(e[y]>0)return;e[m]=r.servername,e[fe]?.destroy(new u(`servername changed`),()=>{e[fe]=null,we(e)})}if(e[w])return;if(!e[fe]){Se(e);return}if(e[fe].destroyed||e[fe].busy(r))return;!r.aborted&&e[fe].write(r)?e[O]++:e[S].splice(e[O],1)}}t.exports=ye})),st=R(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),ct=R(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=Me(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),lt=R(((e,t)=>{let n=ze(),r=st(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=Me(),h=ct(),g=Symbol(`clients`),_=Symbol(`needDrain`),v=Symbol(`queue`),y=Symbol(`closed resolve`),b=Symbol(`onDrain`),x=Symbol(`onConnect`),S=Symbol(`onDisconnect`),C=Symbol(`onConnectionError`),w=Symbol(`get dispatcher`),T=Symbol(`add client`),E=Symbol(`remove client`),D=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(e){super(e),this[v]=new r,this[g]=[],this[c]=0;let t=this;this[b]=function(e,n){let r=t[v],i=!1;for(;!i;){let e=r.shift();if(!e)break;t[c]--,i=!this.dispatch(e.opts,e.handler)}this[_]=i,!this[_]&&t[_]&&(t[_]=!1,t.emit(`drain`,e,[t,...n])),t[y]&&r.isEmpty()&&Promise.all(t[g].map(e=>e.close())).then(t[y])},this[x]=(e,n)=>{t.emit(`connect`,e,[t,...n])},this[S]=(e,n,r)=>{t.emit(`disconnect`,e,[t,...n],r)},this[C]=(e,n,r)=>{t.emit(`connectionError`,e,[t,...n],r)},this[D]=new h(this)}get[l](){return this[_]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[_]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[D]}async[f](){this[v].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[y]=e})}async[p](e){for(;;){let t=this[v].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[w]();return n?n.dispatch(e,t)||(n[_]=!0,this[_]=!this[w]()):(this[_]=!0,this[v].push({opts:e,handler:t}),this[c]++),!this[_]}[T](e){return e.on(`drain`,this[b]).on(`connect`,this[x]).on(`disconnect`,this[S]).on(`connectionError`,this[C]),this[g].push(e),this[_]&&queueMicrotask(()=>{this[_]&&this[b](e[d],[this,e])}),this}[E](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[_]=this[g].some(e=>!e[_]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:_,kAddClient:T,kRemoveClient:E,kGetDispatcher:w}})),ut=R(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=lt(),s=ot(),{InvalidArgumentError:c}=Ne(),l=V(),{kUrl:u,kInterceptors:d}=Me(),f=Ve(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),super(x),this[d]=x.interceptors?.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=Ne(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=lt(),u=ut(),{kUrl:d,kInterceptors:f}=Me(),{parseOrigin:p}=V(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),_=Symbol(`kCurrentWeight`),v=Symbol(`kIndex`),y=Symbol(`kWeight`),b=Symbol(`kMaxWeightPerServer`),x=Symbol(`kErrorPenalty`);function S(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function C(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=C,...n}={}){if(super(),this[h]=n,this[v]=-1,this[_]=0,this[b]=this[h].maxWeightPerServer||100,this[x]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[y]=Math.min(this[b],n[y]+this[x])}),n.on(`connectionError`,()=>{n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats())});for(let e of this[a])e[y]=this[b];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][y]&&!e[o]&&(t=this[v]),this[v]===0&&(this[_]=this[_]-this[g],this[_]<=0&&(this[_]=this[b])),e[y]>=this[_]&&!e[o])return e}return this[_]=this[a][t][y],this[v]=t,this[a][t]}}})),ft=R(((e,t)=>{let{InvalidArgumentError:n}=Ne(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=Me(),l=ze(),u=ut(),d=ot(),f=V(),p=at(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),_=Symbol(`maxRedirections`),v=Symbol(`onDrain`),y=Symbol(`factory`),b=Symbol(`options`);function x(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=x,maxRedirections:t=0,connect:i,...a}={}){if(typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);super(a),i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[b]={...f.deepClone(a),connect:i},this[b].interceptors=a.interceptors?{...a.interceptors}:void 0,this[_]=t,this[y]=e,this[r]=new Map,this[v]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[y](e.origin,this[b]).on(`drain`,this[v]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),pt=R(((e,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kDispatch:a,kInterceptors:o}=Me(),{URL:s}=B(`node:url`),c=ft(),l=ut(),u=ze(),{InvalidArgumentError:d,RequestAbortedError:f,SecureProxyConnectionError:p}=Ne(),m=Ve(),h=ot(),g=Symbol(`proxy agent`),_=Symbol(`proxy client`),v=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`),S=Symbol(`tunnel proxy`);function C(e){return e===`https:`?443:80}function w(e,t){return new l(e,t)}let T=()=>{};function E(e,t){return t.connections===1?new h(e,t):new l(e,t)}var D=class extends u{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new d(`Proxy URL is mandatory`);this[v]=t,r?this.#e=r(e,{connect:n}):this.#e=new h(e,{connect:n})}[a](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new d(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:o={}}=e;if(e.path=r+i,!(`host`in o)&&!(`Host`in o)){let{host:e}=new s(r);o.host=e}return e.headers={...this[v],...o},this.#e[a](e,t)}async[r](){return this.#e.close()}async[i](e){return this.#e.destroy(e)}},O=class extends u{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof s)&&!e.uri)throw new d(`Proxy uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:r=!0}=e,i=this.#e(e),{href:a,origin:l,port:u,protocol:h,username:O,password:k,hostname:A}=i;if(this[n]={uri:a,protocol:h},this[o]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[y]=e.requestTls,this[b]=e.proxyTls,this[v]=e.headers||{},this[S]=r,e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[v][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[v][`proxy-authorization`]=e.token:O&&k&&(this[v][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(O)}:${decodeURIComponent(k)}`).toString(`base64`)}`);let j=m({...e.proxyTls});this[x]=m({...e.requestTls});let M=e.factory||E,N=(e,t)=>{let{protocol:r}=new s(e);return!this[S]&&r===`http:`&&this[n].protocol===`http:`?new D(this[n].uri,{headers:this[v],connect:j,factory:M}):M(e,t)};this[_]=t(i,{connect:j}),this[g]=new c({...e,factory:N,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${C(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[_].connect({origin:l,port:u,path:n,signal:e.signal,headers:{...this[v],host:e.host},servername:this[b]?.servername||A});if(i!==200&&(r.on(`error`,T).destroy(),t(new f(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[y]?this[y].servername:e.servername,this[x]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new p(e)):t(e)}}})}dispatch(e,t){let n=k(e.headers);if(A(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new s(e.origin);n.host=t}return this[g].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new s(e):e instanceof s?e:new s(e.uri)}async[r](){await this[g].close(),await this[_].close()}async[i](){await this[g].destroy(),await this[_].destroy()}};function k(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=O})),mt=R(((e,t)=>{let n=ze(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=Me(),d=pt(),f=ft(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let n=B(`node:assert`),{kRetryHandlerDefaultRetry:r}=Me(),{RequestRetryError:i}=Ne(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s,wrapRequestBody:c}=V();function l(e){let t=Date.now();return new Date(e).getTime()-t}t.exports=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:l,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:c(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:m??!0,maxTimeout:l??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`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(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:u,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:_}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let v=o?.[`retry-after`];v&&=(v=Number(v),Number.isNaN(v)?l(v):v*1e3);let y=Math.min(v>0?v:d*p**(_-1),f);setTimeout(()=>r(null),y)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,r,a):(this.abort(new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new i(`server does not support the range header and the payload was partially consumed`,e,{headers:c,data:{count:this.retryCount}})),!1;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;let{start:a,size:o,end:l=o-1}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e===206){let i=s(c[`content-range`]);if(i==null)return this.handler.onHeaders(e,t,r,a);let{start:o,size:l,end:u=l-1}=i;n(o!=null&&Number.isFinite(o),`content-range mismatch`),n(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=o,this.end=u}if(this.end==null){let e=c[`content-length`];this.end=e==null?null:Number(e)-1}return n(Number.isFinite(this.start)),n(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=r,this.etag=c.etag==null?null:c.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,r,a)}let l=new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||a(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||a(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),gt=R(((e,t)=>{let n=Re(),r=ht();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),_t=R(((e,t)=>{let n=B(`node:assert`),{Readable:r}=B(`node:stream`),{RequestAbortedError:i,NotSupportedError:a,InvalidArgumentError:o,AbortError:s}=Ne(),c=V(),{ReadableStreamFrom:l}=V(),u=Symbol(`kConsume`),d=Symbol(`kReading`),f=Symbol(`kBody`),p=Symbol(`kAbort`),m=Symbol(`kContentType`),h=Symbol(`kContentLength`),g=()=>{};var _=class extends r{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[p]=t,this[u]=null,this[f]=null,this[m]=n,this[h]=r,this[d]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new i),e&&this[p](),super.destroy(e)}_destroy(e,t){this[d]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[d]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[d]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[u]&&e!==null?(T(this[u],e),this[d]?super.push(e):!0):super.push(e)}async text(){return b(this,`text`)}async json(){return b(this,`json`)}async blob(){return b(this,`blob`)}async bytes(){return b(this,`bytes`)}async arrayBuffer(){return b(this,`arrayBuffer`)}async formData(){throw new a}get bodyUsed(){return c.isDisturbed(this)}get body(){return this[f]||(this[f]=l(this),this[u]&&(this[f].getReader(),n(this[f].locked))),this[f]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new o(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[h]>t&&this.destroy(new s);let i=()=>{this.destroy(n.reason??new s)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new s):e(null)}).on(`error`,g).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function v(e){return e[f]&&e[f].locked===!0||e[u]}function y(e){return c.isDisturbed(e)||v(e)}async function b(e,t){return n(!e[u]),new Promise((n,r)=>{if(y(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[u]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){E(this[u],e)}).on(`close`,function(){this[u].body!==null&&E(this[u],new i)}),x(e[u])})})}function x(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function C(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let n=B(`node:assert`),{ResponseStatusCodeError:r}=Ne(),{chunksDecode:i}=_t();async function a({callback:e,body:t,contentType:a,statusCode:c,statusMessage:l,headers:u}){n(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${c}${l?`: ${l}`:``}`;if(c===204||!a||!f){queueMicrotask(()=>e(new r(p,c,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{o(a)?h=JSON.parse(i(d,f)):s(a)&&(h=i(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new r(p,c,u,h)))}let o=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,s=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;t.exports={getResolveErrorBodyCallback:a,isContentTypeApplicationJson:o,isContentTypeText:s}})),yt=R(((e,t)=>{let n=B(`node:assert`),{Readable:r}=_t(),{InvalidArgumentError:i,RequestAbortedError:a}=Ne(),o=V(),{getResolveErrorBodyCallback:s}=vt(),{AsyncResource:c}=B(`node:async_hooks`);var l=class extends c{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);let{signal:n,method:r,opaque:s,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new i(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new i(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new i(`invalid method`);if(l&&typeof l!=`function`)throw new i(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw o.isStream(c)&&o.destroy(c.on(`error`,o.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=s||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,o.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new a:this.removeAbortListener=o.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new a,this.res?o.destroy(this.res.on(`error`,o.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,i){let{callback:a,opaque:c,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?o.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],_=new r({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&_.on(`close`,this.removeAbortListener),this.callback=null,this.res=_,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:a,body:_,contentType:h,statusCode:e,statusMessage:i,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:_,context:u}))}onData(e){return this.res.push(e)}onComplete(e){o.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{o.destroy(t,e)})),r&&(this.body=null,o.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new l(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u,t.exports.RequestHandler=l})),bt=R(((e,t)=>{let{addAbortListener:n}=V(),{RequestAbortedError:r}=Ne(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),xt=R(((e,t)=>{let n=B(`node:assert`),{finished:r,PassThrough:i}=B(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o}=Ne(),s=V(),{getResolveErrorBodyCallback:c}=vt(),{AsyncResource:l}=B(`node:async_hooks`),{addSignal:u,removeSignal:d}=bt();var f=class extends l{constructor(e,t,n){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:r,method:i,opaque:o,body:c,onInfo:l,responseHeaders:d,throwOnError:f}=e;try{if(typeof n!=`function`)throw new a(`invalid callback`);if(typeof t!=`function`)throw new a(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.responseHeaders=d||null,this.opaque=o||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=f||!1,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),u(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,a){let{factory:l,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?s.parseHeaders(t):m)[`content-type`];h=new i,this.callback=null,this.runInAsyncScope(c,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:a,headers:m})}else{if(l===null)return;if(h=this.runInAsyncScope(l,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new o(`expected Writable`);r(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&s.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;d(this),t&&(this.trailers=s.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;d(this),this.factory=null,t?(this.res=null,s.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,s.destroy(i,e))}};function p(e,t,n){if(n===void 0)return new Promise((n,r)=>{p.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new f(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}t.exports=p})),St=R(((e,t)=>{let{Readable:n,Duplex:r,PassThrough:i}=B(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o,RequestAbortedError:s}=Ne(),c=V(),{AsyncResource:l}=B(`node:async_hooks`),{addSignal:u,removeSignal:d}=bt(),f=B(`node:assert`),p=Symbol(`resume`);var m=class extends n{constructor(){super({autoDestroy:!0}),this[p]=null}_read(){let{[p]:e}=this;e&&(this[p]=null,e())}_destroy(e,t){this._read(),t(e)}},h=class extends n{constructor(e){super({autoDestroy:!0}),this[p]=e}_read(){this[p]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new s),t(e)}},g=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid handler`);let{signal:n,method:i,opaque:o,onInfo:l,responseHeaders:f}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=o||null,this.responseHeaders=f||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=l||null,this.req=new m().on(`error`,c.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[p]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new s),o&&e&&o(),c.destroy(n,e),c.destroy(r,e),c.destroy(i,e),d(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,u(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}f(!r,`pipeline cannot be retried`),f(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new h(n);let l;try{this.handler=null;let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);l=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,c.nop),e}if(!l||typeof l.on!=`function`)throw new o(`expected Readable`);l.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;c.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||c.destroy(e,new s)}),this.body=l}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,c.destroy(t,e)}};function _(e,t){try{let n=new g(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new i().destroy(e)}}t.exports=_})),Ct=R(((e,t)=>{let{InvalidArgumentError:n,SocketError:r}=Ne(),{AsyncResource:i}=B(`node:async_hooks`),a=V(),{addSignal:o,removeSignal:s}=bt(),c=B(`node:assert`);var l=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new n(`invalid opts`);if(typeof t!=`function`)throw new n(`invalid callback`);let{signal:r,opaque:i,responseHeaders:a}=e;if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new n(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,o(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}c(this.callback),this.abort=e,this.context=null}onHeaders(){throw new r(`bad upgrade`,null)}onUpgrade(e,t,n){c(e===101);let{callback:r,opaque:i,context:o}=this;s(this),this.callback=null;let l=this.responseHeaders===`raw`?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:l,socket:n,opaque:i,context:o})}onError(e){let{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),wt=R(((e,t)=>{let n=B(`node:assert`),{AsyncResource:r}=B(`node:async_hooks`),{InvalidArgumentError:i,SocketError:a}=Ne(),o=V(),{addSignal:s,removeSignal:c}=bt();var l=class extends r{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);if(typeof t!=`function`)throw new i(`invalid callback`);let{signal:n,opaque:r,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=a||null,this.callback=t,this.abort=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(){throw new a(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=t;s!=null&&(s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),Tt=R(((e,t)=>{t.exports.request=yt(),t.exports.stream=xt(),t.exports.pipeline=St(),t.exports.upgrade=Ct(),t.exports.connect=wt()})),Et=R(((e,t)=>{let{UndiciError:n}=Ne(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`MockNotMatchedError`,this.message=t||`The request does not match any registered mock dispatches`,this.code=`UND_MOCK_ERR_MOCK_NOT_MATCHED`}static[Symbol.hasInstance](e){return e&&e[r]===!0}[r]=!0}}})),Dt=R(((e,t)=>{t.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`)}})),Ot=R(((e,t)=>{let{MockNotMatchedError:n}=Et(),{kDispatches:r,kMockAgent:i,kOriginalDispatch:a,kOrigin:o,kGetNetConnect:s}=Dt(),{buildURL:c}=V(),{STATUS_CODES:l}=B(`node:http`),{types:{isPromise:u}}=B(`node:util`);function d(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function f(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function p(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>d(g(e),i));if(a.length===0)throw new n(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>d(e,t.method)),a.length===0)throw new n(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:d(e,t.body)),a.length===0)throw new n(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>h(e,t.headers)),a.length===0)throw new n(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function b(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function x(e,t){let n=e.findIndex(e=>e.consumed?_(e,t):!1);n!==-1&&e.splice(n,1)}function S(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function C(e){let t=Object.keys(e),n=[];for(let r=0;r=h,i.pending=p0?setTimeout(()=>{g(this[r])},d):g(this[r]);function g(r,i=o){let l=Array.isArray(e.headers)?m(e.headers):e.headers,d=typeof i==`function`?i({...e,headers:l}):i;if(u(d)){d.then(e=>g(r,e));return}let f=v(d),p=C(s),h=C(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,_,w(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(h),x(r,n)}function _(){}return!0}function D(){let e=this[i],t=this[o],r=this[a];return function(i,a){if(e.isMockActive)try{E.call(this,i,a)}catch(o){if(o instanceof n){let c=e[s]();if(c===!1)throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(O(c,t))r.call(this,i,a);else throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else r.call(this,i,a)}}function O(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>d(e,n.host)))}function k(e){if(e){let{agent:t,...n}=e;return n}}t.exports={getResponseData:v,getMockDispatch:y,addMockDispatch:b,deleteMockDispatch:x,buildKey:S,generateKeyValues:C,matchValue:d,getResponse:T,getStatusText:w,mockDispatch:E,buildMockDispatch:D,checkNetConnect:O,buildMockOptions:k,getHeaderByName:p,buildHeadersFromArray:m}})),kt=R(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=Ot(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=Dt(),{InvalidArgumentError:d}=Ne(),{buildURL:f}=V();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),At=R(((e,t)=>{let{promisify:n}=B(`node:util`),r=ot(),{buildMockDispatch:i}=Ot(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Dt(),{MockInterceptor:f}=kt(),p=Me(),{InvalidArgumentError:m}=Ne();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),jt=R(((e,t)=>{let{promisify:n}=B(`node:util`),r=ut(),{buildMockDispatch:i}=Ot(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Dt(),{MockInterceptor:f}=kt(),p=Me(),{InvalidArgumentError:m}=Ne();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),Mt=R(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),Nt=R(((e,t)=>{let{Transform:n}=B(`node:stream`),{Console:r}=B(`node:console`),i=process.versions.icu?`✅`:`Y `,a=process.versions.icu?`❌`:`N `;t.exports=class{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,n){n(null,e)}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:o,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?i:a,Invocations:s,Remaining:r?1/0:o-s}));return this.logger.table(t),this.transform.read().toString()}}})),Pt=R(((e,t)=>{let{kClients:n}=Me(),r=ft(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=Dt(),p=At(),m=jt(),{matchValue:h,buildMockOptions:g}=Ot(),{InvalidArgumentError:_,UndiciError:v}=Ne(),y=Re(),b=Mt(),x=Nt();t.exports=class extends y{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new _(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new _(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new x}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new b(`interceptor`,`interceptors`).pluralize(t.length);throw new v(` +`,`latin1`),t!==null&&r!==t){if(n[re])throw new o;process.emitWarning(new o)}e[y].timeout&&e[y].timeoutType===3&&e[y].timeout.refresh&&e[y].timeout.refresh(),n[se]()}}destroy(e){let{socket:t,client:r,abort:i}=this;t[w]=!1,e&&(n(r[x]<=1,`pipeline should only contain this request`),i(e))}};t.exports=xe})),nt=z(((e,t)=>{let n=V(`node:assert`),{pipeline:r}=V(`node:stream`),i=H(),{RequestContentLengthMismatchError:a,RequestAbortedError:o,SocketError:s,InformationalError:c}=Me(),{kUrl:l,kReset:u,kClient:d,kRunning:f,kPending:p,kQueue:m,kPendingIdx:h,kRunningIdx:g,kError:_,kSocket:v,kStrictContentLength:y,kOnError:b,kMaxConcurrentStreams:x,kHTTP2Session:S,kResume:C,kSize:w,kHTTPContext:T}=je(),E=Symbol(`open streams`),D,O=!1,k;try{k=V(`node:http2`)}catch{k={constants:{}}}let{constants:{HTTP2_HEADER_AUTHORITY:A,HTTP2_HEADER_METHOD:j,HTTP2_HEADER_PATH:M,HTTP2_HEADER_SCHEME:N,HTTP2_HEADER_CONTENT_LENGTH:P,HTTP2_HEADER_EXPECT:F,HTTP2_HEADER_STATUS:ee}}=k;function te(e){let t=[];for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.push(Buffer.from(n),Buffer.from(e));else t.push(Buffer.from(n),Buffer.from(r));return t}async function I(e,t){e[v]=t,O||(O=!0,process.emitWarning(`H2 support is experimental, expect them to change at any time.`,{code:`UNDICI-H2`}));let r=k.connect(e[l],{createConnection:()=>t,peerMaxConcurrentStreams:e[x]});r[E]=0,r[d]=e,r[v]=t,i.addListener(r,`error`,re),i.addListener(r,`frameError`,L),i.addListener(r,`end`,ie),i.addListener(r,`goaway`,ae),i.addListener(r,`close`,function(){let{[d]:e}=this,{[v]:t}=e,r=this[v][_]||this[_]||new s(`closed`,i.getSocketInfo(t));if(e[S]=null,e.destroyed){n(e[p]===0);let t=e[m].splice(e[g]);for(let n=0;n{a=!0}),{version:`h2`,defaultPipelining:1/0,write(...t){return se(e,...t)},resume(){ne(e)},destroy(e,n){a?queueMicrotask(n):t.destroy(e).on(`close`,n)},get destroyed(){return t.destroyed},busy(){return!1}}}function ne(e){let t=e[v];t?.destroyed===!1&&(e[w]===0&&e[x]===0?(t.unref(),e[S].unref()):(t.ref(),e[S].ref()))}function re(e){n(e.code!==`ERR_TLS_CERT_ALTNAME_INVALID`),this[v][_]=e,this[d][b](e)}function L(e,t,n){if(n===0){let n=new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[v][_]=n,this[d][b](n)}}function ie(){let e=new s(`other side closed`,i.getSocketInfo(this[v]));this.destroy(e),i.destroy(this[v],e)}function ae(e){let t=this[_]||new s(`HTTP/2: "GOAWAY" frame received with code ${e}`,i.getSocketInfo(this)),r=this[d];if(r[v]=null,r[T]=null,this[S]!=null&&(this[S].destroy(t),this[S]=null),i.destroy(this[v],t),r[g]{t.aborted||t.completed||(n||=new o,i.errorRequest(e,t,n),T!=null&&i.destroy(T,n),i.destroy(x,n),e[m][e[g]++]=null,e[C]())};try{t.onConnect(I)}catch(n){i.errorRequest(e,t,n)}if(t.aborted)return!1;if(s===`CONNECT`)return r.ref(),T=r.request(w,{endStream:!1,signal:_}),T.id&&!T.pending?(t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null):T.once(`ready`,()=>{t.onUpgrade(null,null,T),++r[E],e[m][e[g]++]=null}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),!0;w[M]=u,w[N]=`https`;let ne=s===`PUT`||s===`POST`||s===`PATCH`;x&&typeof x.read==`function`&&x.read(0);let re=i.bodyLength(x);if(i.isFormDataLike(x)){D??=et().extractBody;let[e,t]=D(x);w[`content-type`]=t,x=e.stream,re=e.length}if(re??=t.contentLength,(re===0||!ne)&&(re=null),oe(s)&&re>0&&t.contentLength!=null&&t.contentLength!==re){if(e[y])return i.errorRequest(e,t,new a),!1;process.emitWarning(new a)}re!=null&&(n(x,`no body must not have content length`),w[P]=`${re}`),r.ref();let L=s===`GET`||s===`HEAD`||x===null;return p?(w[F]=`100-continue`,T=r.request(w,{endStream:L,signal:_}),T.once(`continue`,ie)):(T=r.request(w,{endStream:L,signal:_}),ie()),++r[E],T.once(`response`,n=>{let{[ee]:r,...a}=n;if(t.onResponseStarted(),t.aborted){let n=new o;i.errorRequest(e,t,n),i.destroy(T,n);return}t.onHeaders(Number(r),te(a),T.resume.bind(T),``)===!1&&T.pause(),T.on(`data`,e=>{t.onData(e)===!1&&T.pause()})}),T.once(`end`,()=>{(T.state?.state==null||T.state.state<6)&&t.onComplete([]),r[E]===0&&r.unref(),I(new c(`HTTP/2: stream half-closed (remote)`)),e[m][e[g]++]=null,e[h]=e[g],e[C]()}),T.once(`close`,()=>{--r[E],r[E]===0&&r.unref()}),T.once(`error`,function(e){I(e)}),T.once(`frameError`,(e,t)=>{I(new c(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}),!0;function ie(){!x||re===0?ce(I,T,null,e,t,e[v],re,ne):i.isBuffer(x)?ce(I,T,x,e,t,e[v],re,ne):i.isBlobLike(x)?typeof x.stream==`function`?ue(I,T,x.stream(),e,t,e[v],re,ne):le(I,T,x,e,t,e[v],re,ne):i.isStream(x)?R(I,e[v],ne,T,x,e,t,re):i.isIterable(x)?ue(I,T,x,e,t,e[v],re,ne):n(!1)}}function ce(e,t,r,a,o,s,c,l){try{r!=null&&i.isBuffer(r)&&(n(c===r.byteLength,`buffer body must have content length`),t.cork(),t.write(r),t.uncork(),t.end(),o.onBodySent(r)),l||(s[u]=!0),o.onRequestSent(),a[C]()}catch(t){e(t)}}function R(e,t,a,o,s,c,l,d){n(d!==0||c[f]===0,`stream body cannot be pipelined`);let p=r(s,o,n=>{n?(i.destroy(p,n),e(n)):(i.removeAllListeners(p),l.onRequestSent(),a||(t[u]=!0),c[C]())});i.addListener(p,`data`,m);function m(e){l.onBodySent(e)}}async function le(e,t,r,i,o,s,c,l){n(c===r.size,`blob body must have content length`);try{if(c!=null&&c!==r.size)throw new a;let e=Buffer.from(await r.arrayBuffer());t.cork(),t.write(e),t.uncork(),t.end(),o.onBodySent(e),o.onRequestSent(),l||(s[u]=!0),i[C]()}catch(t){e(t)}}async function ue(e,t,r,i,a,o,s,c){n(s!==0||i[f]===0,`iterator body cannot be pipelined`);let l=null;function d(){if(l){let e=l;l=null,e()}}let p=()=>new Promise((e,t)=>{n(l===null),o[_]?t(o[_]):l=e});t.on(`close`,d).on(`drain`,d);try{for await(let e of r){if(o[_])throw o[_];let n=t.write(e);a.onBodySent(e),n||await p()}t.end(),a.onRequestSent(),c||(o[u]=!0),i[C]()}catch(t){e(t)}finally{t.off(`close`,d).off(`drain`,d)}}t.exports=I})),rt=z(((e,t)=>{let n=H(),{kBodyUsed:r}=je(),i=V(`node:assert`),{InvalidArgumentError:a}=Me(),o=V(`node:events`),s=[300,301,302,303,307,308],c=Symbol(`body`);var l=class{constructor(e){this[c]=e,this[r]=!1}async*[Symbol.asyncIterator](){i(!this[r],`disturbed`),this[r]=!0,yield*this[c]}},u=class{constructor(e,t,s,c){if(t!=null&&(!Number.isInteger(t)||t<0))throw new a(`maxRedirections must be a positive number`);n.validateHandler(c,s.method,s.upgrade),this.dispatch=e,this.location=null,this.abort=null,this.opts={...s,maxRedirections:0},this.maxRedirections=t,this.handler=c,this.history=[],this.redirectionLimitReached=!1,n.isStream(this.opts.body)?(n.bodyLength(this.opts.body)===0&&this.opts.body.on(`data`,function(){i(!1)}),typeof this.opts.body.readableDidRead!=`boolean`&&(this.opts.body[r]=!1,o.prototype.on.call(this.opts.body,`data`,function(){this[r]=!0}))):(this.opts.body&&typeof this.opts.body.pipeTo==`function`||this.opts.body&&typeof this.opts.body!=`string`&&!ArrayBuffer.isView(this.opts.body)&&n.isIterable(this.opts.body))&&(this.opts.body=new l(this.opts.body))}onConnect(e){this.abort=e,this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,r,i){if(this.location=this.history.length>=this.maxRedirections||n.isDisturbed(this.opts.body)?null:d(e,t),this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){this.request&&this.request.abort(Error(`max redirects`)),this.redirectionLimitReached=!0,this.abort(Error(`max redirects`));return}if(this.opts.origin&&this.history.push(new URL(this.opts.path,this.opts.origin)),!this.location)return this.handler.onHeaders(e,t,r,i);let{origin:a,pathname:o,search:s}=n.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin))),c=s?`${o}${s}`:o;this.opts.headers=p(this.opts.headers,e===303,this.opts.origin!==a),this.opts.path=c,this.opts.origin=a,this.opts.maxRedirections=0,this.opts.query=null,e===303&&this.opts.method!==`HEAD`&&(this.opts.method=`GET`,this.opts.body=null)}onData(e){if(!this.location)return this.handler.onData(e)}onComplete(e){this.location?(this.location=null,this.abort=null,this.dispatch(this.opts,this)):this.handler.onComplete(e)}onBodySent(e){this.handler.onBodySent&&this.handler.onBodySent(e)}};function d(e,t){if(s.indexOf(e)===-1)return null;for(let e=0;e{let n=rt();function r({maxRedirections:e}){return t=>function(r,i){let{maxRedirections:a=e}=r;if(!a)return t(r,i);let o=new n(t,a,r,i);return r={...r,maxRedirections:0},t(r,o)}}t.exports=r})),at=z(((e,t)=>{let n=V(`node:assert`),r=V(`node:net`),i=V(`node:http`),a=H(),{channels:o}=Fe(),s=Ie(),c=Re(),{InvalidArgumentError:l,InformationalError:u,ClientDestroyedError:d}=Me(),f=Be(),{kUrl:p,kServerName:m,kClient:h,kBusy:g,kConnect:_,kResuming:v,kRunning:y,kPending:b,kSize:x,kQueue:S,kConnected:C,kConnecting:w,kNeedDrain:T,kKeepAliveDefaultTimeout:E,kHostHeader:D,kPendingIdx:O,kRunningIdx:k,kError:A,kPipelining:j,kKeepAliveTimeoutValue:M,kMaxHeadersSize:N,kKeepAliveMaxTimeout:P,kKeepAliveTimeoutThreshold:F,kHeadersTimeout:ee,kBodyTimeout:te,kStrictContentLength:I,kConnector:ne,kMaxRedirections:re,kMaxRequests:L,kCounter:ie,kClose:ae,kDestroy:oe,kDispatch:se,kInterceptors:ce,kLocalAddress:R,kMaxResponseSize:le,kOnError:ue,kHTTPContext:de,kMaxConcurrentStreams:fe,kResume:pe}=je(),z=tt(),me=nt(),he=!1,B=Symbol(`kClosedResolve`),ge=()=>{};function _e(e){return e[j]??e[de]?.defaultPipelining??1}var ve=class extends c{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:s,requestTimeout:c,connectTimeout:u,bodyTimeout:d,idleTimeout:h,keepAlive:g,keepAliveTimeout:_,maxKeepAliveTimeout:y,keepAliveMaxTimeout:b,keepAliveTimeoutThreshold:x,socketPath:C,pipelining:w,tls:A,strictContentLength:ie,maxCachedSessions:ae,maxRedirections:oe,connect:se,maxRequestsPerClient:z,localAddress:me,maxResponseSize:V,autoSelectFamily:ge,autoSelectFamilyAttemptTimeout:_e,maxConcurrentStreams:ve,allowH2:xe,webSocket:Se}={}){if(super({webSocket:Se}),g!==void 0)throw new l(`unsupported keepAlive, use pipelining=0 instead`);if(s!==void 0)throw new l(`unsupported socketTimeout, use headersTimeout & bodyTimeout instead`);if(c!==void 0)throw new l(`unsupported requestTimeout, use headersTimeout & bodyTimeout instead`);if(h!==void 0)throw new l(`unsupported idleTimeout, use keepAliveTimeout instead`);if(y!==void 0)throw new l(`unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead`);if(n!=null&&!Number.isFinite(n))throw new l(`invalid maxHeaderSize`);if(C!=null&&typeof C!=`string`)throw new l(`invalid socketPath`);if(u!=null&&(!Number.isFinite(u)||u<0))throw new l(`invalid connectTimeout`);if(_!=null&&(!Number.isFinite(_)||_<=0))throw new l(`invalid keepAliveTimeout`);if(b!=null&&(!Number.isFinite(b)||b<=0))throw new l(`invalid keepAliveMaxTimeout`);if(x!=null&&!Number.isFinite(x))throw new l(`invalid keepAliveTimeoutThreshold`);if(o!=null&&(!Number.isInteger(o)||o<0))throw new l(`headersTimeout must be a positive integer or zero`);if(d!=null&&(!Number.isInteger(d)||d<0))throw new l(`bodyTimeout must be a positive integer or zero`);if(se!=null&&typeof se!=`function`&&typeof se!=`object`)throw new l(`connect must be a function or an object`);if(oe!=null&&(!Number.isInteger(oe)||oe<0))throw new l(`maxRedirections must be a positive number`);if(z!=null&&(!Number.isInteger(z)||z<0))throw new l(`maxRequestsPerClient must be a positive number`);if(me!=null&&(typeof me!=`string`||r.isIP(me)===0))throw new l(`localAddress must be valid string IP address`);if(V!=null&&(!Number.isInteger(V)||V<-1))throw new l(`maxResponseSize must be a positive number`);if(_e!=null&&(!Number.isInteger(_e)||_e<-1))throw new l(`autoSelectFamilyAttemptTimeout must be a positive number`);if(xe!=null&&typeof xe!=`boolean`)throw new l(`allowH2 must be a valid boolean value`);if(ve!=null&&(typeof ve!=`number`||ve<1))throw new l(`maxConcurrentStreams must be a positive integer, greater than 0`);typeof se!=`function`&&(se=f({...A,maxCachedSessions:ae,allowH2:xe,socketPath:C,timeout:u,...ge?{autoSelectFamily:ge,autoSelectFamilyAttemptTimeout:_e}:void 0,...se})),t?.Client&&Array.isArray(t.Client)?(this[ce]=t.Client,he||(he=!0,process.emitWarning(`Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.`,{code:`UNDICI-CLIENT-INTERCEPTOR-DEPRECATED`}))):this[ce]=[ye({maxRedirections:oe})],this[p]=a.parseOrigin(e),this[ne]=se,this[j]=w??1,this[N]=n||i.maxHeaderSize,this[E]=_??4e3,this[P]=b??6e5,this[F]=x??2e3,this[M]=this[E],this[m]=null,this[R]=me??null,this[v]=0,this[T]=0,this[D]=`host: ${this[p].hostname}${this[p].port?`:${this[p].port}`:``}\r\n`,this[te]=d??3e5,this[ee]=o??3e5,this[I]=ie??!0,this[re]=oe,this[L]=z,this[B]=null,this[le]=V>-1?V:-1,this[fe]=ve??100,this[de]=null,this[S]=[],this[k]=0,this[O]=0,this[pe]=e=>Ce(this,e),this[ue]=e=>be(this,e)}get pipelining(){return this[j]}set pipelining(e){this[j]=e,this[pe](!0)}get[b](){return this[S].length-this[O]}get[y](){return this[O]-this[k]}get[x](){return this[S].length-this[k]}get[C](){return!!this[de]&&!this[w]&&!this[de].destroyed}get[g](){return!!(this[de]?.busy(null)||this[x]>=(_e(this)||1)||this[b]>0)}[_](e){xe(this),this.once(`connect`,e)}[se](e,t){let n=new s(e.origin||this[p].origin,e,t);return this[S].push(n),this[v]||(a.bodyLength(n.body)==null&&a.isIterable(n.body)?(this[v]=1,queueMicrotask(()=>Ce(this))):this[pe](!0)),this[v]&&this[T]!==2&&this[g]&&(this[T]=2),this[T]<2}async[ae](){return new Promise(e=>{this[x]?this[B]=e:e(null)})}async[oe](e){return new Promise(t=>{let n=this[S].splice(this[O]);for(let t=0;t{this[B]&&(this[B](),this[B]=null),t(null)};this[de]?(this[de].destroy(e,r),this[de]=null):queueMicrotask(r),this[pe]()})}};let ye=it();function be(e,t){if(e[y]===0&&t.code!==`UND_ERR_INFO`&&t.code!==`UND_ERR_SOCKET`){n(e[O]===e[k]);let r=e[S].splice(e[k]);for(let n=0;n{e[ne]({host:t,hostname:i,protocol:s,port:c,servername:e[m],localAddress:e[R]},(e,t)=>{e?r(e):n(t)})});if(e.destroyed){a.destroy(r.on(`error`,ge),new d);return}n(r);try{e[de]=r.alpnProtocol===`h2`?await me(e,r):await z(e,r)}catch(e){throw r.destroy().on(`error`,ge),e}e[w]=!1,r[ie]=0,r[L]=e[L],r[h]=e,r[A]=null,o.connected.hasSubscribers&&o.connected.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[de]?.version,servername:e[m],localAddress:e[R]},connector:e[ne],socket:r}),e.emit(`connect`,e[p],[e])}catch(r){if(e.destroyed)return;if(e[w]=!1,o.connectError.hasSubscribers&&o.connectError.publish({connectParams:{host:t,hostname:i,protocol:s,port:c,version:e[de]?.version,servername:e[m],localAddress:e[R]},connector:e[ne],error:r}),r.code===`ERR_TLS_CERT_ALTNAME_INVALID`)for(n(e[y]===0);e[b]>0&&e[S][e[O]].servername===e[m];){let t=e[S][e[O]++];a.errorRequest(e,t,r)}else be(e,r);e.emit(`connectionError`,e[p],[e],r)}e[pe]()}function Se(e){e[T]=0,e.emit(`drain`,e[p],[e])}function Ce(e,t){e[v]!==2&&(e[v]=2,we(e,t),e[v]=0,e[k]>256&&(e[S].splice(0,e[k]),e[O]-=e[k],e[k]=0))}function we(e,t){for(;;){if(e.destroyed){n(e[b]===0);return}if(e[B]&&!e[x]){e[B](),e[B]=null;return}if(e[de]&&e[de].resume(),e[g])e[T]=2;else if(e[T]===2){t?(e[T]=1,queueMicrotask(()=>Se(e))):Se(e);continue}if(e[b]===0||e[y]>=(_e(e)||1))return;let r=e[S][e[O]];if(e[p].protocol===`https:`&&e[m]!==r.servername){if(e[y]>0)return;e[m]=r.servername,e[de]?.destroy(new u(`servername changed`),()=>{e[de]=null,Ce(e)})}if(e[w])return;if(!e[de]){xe(e);return}if(e[de].destroyed||e[de].busy(r))return;!r.aborted&&e[de].write(r)?e[O]++:e[S].splice(e[O],1)}}t.exports=ve})),ot=z(((e,t)=>{let n=2048,r=n-1;var i=class{constructor(){this.bottom=0,this.top=0,this.list=Array(n),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&r)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&r}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&r,e)}};t.exports=class{constructor(){this.head=this.tail=new i}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new i),this.head.push(e)}shift(){let e=this.tail,t=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),t}}})),st=z(((e,t)=>{let{kFree:n,kConnected:r,kPending:i,kQueued:a,kRunning:o,kSize:s}=je(),c=Symbol(`pool`);t.exports=class{constructor(e){this[c]=e}get connected(){return this[c][r]}get free(){return this[c][n]}get pending(){return this[c][i]}get queued(){return this[c][a]}get running(){return this[c][o]}get size(){return this[c][s]}}})),ct=z(((e,t)=>{let n=Re(),r=ot(),{kConnected:i,kSize:a,kRunning:o,kPending:s,kQueued:c,kBusy:l,kFree:u,kUrl:d,kClose:f,kDestroy:p,kDispatch:m}=je(),h=st(),g=Symbol(`clients`),_=Symbol(`needDrain`),v=Symbol(`queue`),y=Symbol(`closed resolve`),b=Symbol(`onDrain`),x=Symbol(`onConnect`),S=Symbol(`onDisconnect`),C=Symbol(`onConnectionError`),w=Symbol(`get dispatcher`),T=Symbol(`add client`),E=Symbol(`remove client`),D=Symbol(`stats`);t.exports={PoolBase:class extends n{constructor(e){super(e),this[v]=new r,this[g]=[],this[c]=0;let t=this;this[b]=function(e,n){let r=t[v],i=!1;for(;!i;){let e=r.shift();if(!e)break;t[c]--,i=!this.dispatch(e.opts,e.handler)}this[_]=i,!this[_]&&t[_]&&(t[_]=!1,t.emit(`drain`,e,[t,...n])),t[y]&&r.isEmpty()&&Promise.all(t[g].map(e=>e.close())).then(t[y])},this[x]=(e,n)=>{t.emit(`connect`,e,[t,...n])},this[S]=(e,n,r)=>{t.emit(`disconnect`,e,[t,...n],r)},this[C]=(e,n,r)=>{t.emit(`connectionError`,e,[t,...n],r)},this[D]=new h(this)}get[l](){return this[_]}get[i](){return this[g].filter(e=>e[i]).length}get[u](){return this[g].filter(e=>e[i]&&!e[_]).length}get[s](){let e=this[c];for(let{[s]:t}of this[g])e+=t;return e}get[o](){let e=0;for(let{[o]:t}of this[g])e+=t;return e}get[a](){let e=this[c];for(let{[a]:t}of this[g])e+=t;return e}get stats(){return this[D]}async[f](){this[v].isEmpty()?await Promise.all(this[g].map(e=>e.close())):await new Promise(e=>{this[y]=e})}async[p](e){for(;;){let t=this[v].shift();if(!t)break;t.handler.onError(e)}await Promise.all(this[g].map(t=>t.destroy(e)))}[m](e,t){let n=this[w]();return n?n.dispatch(e,t)||(n[_]=!0,this[_]=!this[w]()):(this[_]=!0,this[v].push({opts:e,handler:t}),this[c]++),!this[_]}[T](e){return e.on(`drain`,this[b]).on(`connect`,this[x]).on(`disconnect`,this[S]).on(`connectionError`,this[C]),this[g].push(e),this[_]&&queueMicrotask(()=>{this[_]&&this[b](e[d],[this,e])}),this}[E](e){e.close(()=>{let t=this[g].indexOf(e);t!==-1&&this[g].splice(t,1)}),this[_]=this[g].some(e=>!e[_]&&e.closed!==!0&&e.destroyed!==!0)}},kClients:g,kNeedDrain:_,kAddClient:T,kRemoveClient:E,kGetDispatcher:w}})),lt=z(((e,t)=>{let{PoolBase:n,kClients:r,kNeedDrain:i,kAddClient:a,kGetDispatcher:o}=ct(),s=at(),{InvalidArgumentError:c}=Me(),l=H(),{kUrl:u,kInterceptors:d}=je(),f=Be(),p=Symbol(`options`),m=Symbol(`connections`),h=Symbol(`factory`);function g(e,t){return new s(e,t)}t.exports=class extends n{constructor(e,{connections:t,factory:n=g,connect:i,connectTimeout:a,tls:o,maxCachedSessions:s,socketPath:_,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y,allowH2:b,...x}={}){if(t!=null&&(!Number.isFinite(t)||t<0))throw new c(`invalid connections`);if(typeof n!=`function`)throw new c(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new c(`connect must be a function or an object`);typeof i!=`function`&&(i=f({...o,maxCachedSessions:s,allowH2:b,socketPath:_,timeout:a,...v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:y}:void 0,...i})),super(x),this[d]=x.interceptors?.Pool&&Array.isArray(x.interceptors.Pool)?x.interceptors.Pool:[],this[m]=t||null,this[u]=l.parseOrigin(e),this[p]={...l.deepClone(x),connect:i,allowH2:b},this[p].interceptors=x.interceptors?{...x.interceptors}:void 0,this[h]=n,this.on(`connectionError`,(e,t,n)=>{for(let e of t){let t=this[r].indexOf(e);t!==-1&&this[r].splice(t,1)}})}[o](){for(let e of this[r])if(!e[i])return e;if(!this[m]||this[r].length{let{BalancedPoolMissingUpstreamError:n,InvalidArgumentError:r}=Me(),{PoolBase:i,kClients:a,kNeedDrain:o,kAddClient:s,kRemoveClient:c,kGetDispatcher:l}=ct(),u=lt(),{kUrl:d,kInterceptors:f}=je(),{parseOrigin:p}=H(),m=Symbol(`factory`),h=Symbol(`options`),g=Symbol(`kGreatestCommonDivisor`),_=Symbol(`kCurrentWeight`),v=Symbol(`kIndex`),y=Symbol(`kWeight`),b=Symbol(`kMaxWeightPerServer`),x=Symbol(`kErrorPenalty`);function S(e,t){if(e===0)return t;for(;t!==0;){let n=t;t=e%t,e=n}return e}function C(e,t){return new u(e,t)}t.exports=class extends i{constructor(e=[],{factory:t=C,...n}={}){if(super(),this[h]=n,this[v]=-1,this[_]=0,this[b]=this[h].maxWeightPerServer||100,this[x]=this[h].errorPenalty||15,Array.isArray(e)||(e=[e]),typeof t!=`function`)throw new r(`factory must be a function.`);this[f]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[],this[m]=t;for(let t of e)this.addUpstream(t);this._updateBalancedPoolStats()}addUpstream(e){let t=p(e).origin;if(this[a].find(e=>e[d].origin===t&&e.closed!==!0&&e.destroyed!==!0))return this;let n=this[m](t,Object.assign({},this[h]));this[s](n),n.on(`connect`,()=>{n[y]=Math.min(this[b],n[y]+this[x])}),n.on(`connectionError`,()=>{n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats()}),n.on(`disconnect`,(...e)=>{let t=e[2];t&&t.code===`UND_ERR_SOCKET`&&(n[y]=Math.max(1,n[y]-this[x]),this._updateBalancedPoolStats())});for(let e of this[a])e[y]=this[b];return this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let t=0;te[d].origin===t&&e.closed!==!0&&e.destroyed!==!0);return n&&this[c](n),this}get upstreams(){return this[a].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[d].origin)}[l](){if(this[a].length===0)throw new n;if(!this[a].find(e=>!e[o]&&e.closed!==!0&&e.destroyed!==!0)||this[a].map(e=>e[o]).reduce((e,t)=>e&&t,!0))return;let e=0,t=this[a].findIndex(e=>!e[o]);for(;e++this[a][t][y]&&!e[o]&&(t=this[v]),this[v]===0&&(this[_]=this[_]-this[g],this[_]<=0&&(this[_]=this[b])),e[y]>=this[_]&&!e[o])return e}return this[_]=this[a][t][y],this[v]=t,this[a][t]}}})),dt=z(((e,t)=>{let{InvalidArgumentError:n}=Me(),{kClients:r,kRunning:i,kClose:a,kDestroy:o,kDispatch:s,kInterceptors:c}=je(),l=Re(),u=lt(),d=at(),f=H(),p=it(),m=Symbol(`onConnect`),h=Symbol(`onDisconnect`),g=Symbol(`onConnectionError`),_=Symbol(`maxRedirections`),v=Symbol(`onDrain`),y=Symbol(`factory`),b=Symbol(`options`);function x(e,t){return t&&t.connections===1?new d(e,t):new u(e,t)}t.exports=class extends l{constructor({factory:e=x,maxRedirections:t=0,connect:i,...a}={}){if(typeof e!=`function`)throw new n(`factory must be a function.`);if(i!=null&&typeof i!=`function`&&typeof i!=`object`)throw new n(`connect must be a function or an object`);if(!Number.isInteger(t)||t<0)throw new n(`maxRedirections must be a positive number`);super(a),i&&typeof i!=`function`&&(i={...i}),this[c]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[p({maxRedirections:t})],this[b]={...f.deepClone(a),connect:i},this[b].interceptors=a.interceptors?{...a.interceptors}:void 0,this[_]=t,this[y]=e,this[r]=new Map,this[v]=(e,t)=>{this.emit(`drain`,e,[this,...t])},this[m]=(e,t)=>{this.emit(`connect`,e,[this,...t])},this[h]=(e,t,n)=>{this.emit(`disconnect`,e,[this,...t],n)},this[g]=(e,t,n)=>{this.emit(`connectionError`,e,[this,...t],n)}}get[i](){let e=0;for(let t of this[r].values())e+=t[i];return e}[s](e,t){let i;if(e.origin&&(typeof e.origin==`string`||e.origin instanceof URL))i=String(e.origin);else throw new n(`opts.origin must be a non-empty string or URL.`);let a=this[r].get(i);return a||(a=this[y](e.origin,this[b]).on(`drain`,this[v]).on(`connect`,this[m]).on(`disconnect`,this[h]).on(`connectionError`,this[g]),this[r].set(i,a)),a.dispatch(e,t)}async[a](){let e=[];for(let t of this[r].values())e.push(t.close());this[r].clear(),await Promise.all(e)}async[o](e){let t=[];for(let n of this[r].values())t.push(n.destroy(e));this[r].clear(),await Promise.all(t)}}})),ft=z(((e,t)=>{let{kProxy:n,kClose:r,kDestroy:i,kDispatch:a,kInterceptors:o}=je(),{URL:s}=V(`node:url`),c=dt(),l=lt(),u=Re(),{InvalidArgumentError:d,RequestAbortedError:f,SecureProxyConnectionError:p}=Me(),m=Be(),h=at(),g=Symbol(`proxy agent`),_=Symbol(`proxy client`),v=Symbol(`proxy headers`),y=Symbol(`request tls settings`),b=Symbol(`proxy tls settings`),x=Symbol(`connect endpoint function`),S=Symbol(`tunnel proxy`);function C(e){return e===`https:`?443:80}function w(e,t){return new l(e,t)}let T=()=>{};function E(e,t){return t.connections===1?new h(e,t):new l(e,t)}var D=class extends u{#e;constructor(e,{headers:t={},connect:n,factory:r}){if(super(),!e)throw new d(`Proxy URL is mandatory`);this[v]=t,r?this.#e=r(e,{connect:n}):this.#e=new h(e,{connect:n})}[a](e,t){let n=t.onHeaders;t.onHeaders=function(e,r,i){if(e===407){typeof t.onError==`function`&&t.onError(new d(`Proxy Authentication Required (407)`));return}n&&n.call(this,e,r,i)};let{origin:r,path:i=`/`,headers:o={}}=e;if(e.path=r+i,!(`host`in o)&&!(`Host`in o)){let{host:e}=new s(r);o.host=e}return e.headers={...this[v],...o},this.#e[a](e,t)}async[r](){return this.#e.close()}async[i](e){return this.#e.destroy(e)}},O=class extends u{constructor(e){if(super(),!e||typeof e==`object`&&!(e instanceof s)&&!e.uri)throw new d(`Proxy uri is mandatory`);let{clientFactory:t=w}=e;if(typeof t!=`function`)throw new d(`Proxy opts.clientFactory must be a function.`);let{proxyTunnel:r=!0}=e,i=this.#e(e),{href:a,origin:l,port:u,protocol:h,username:O,password:k,hostname:A}=i;if(this[n]={uri:a,protocol:h},this[o]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],this[y]=e.requestTls,this[b]=e.proxyTls,this[v]=e.headers||{},this[S]=r,e.auth&&e.token)throw new d(`opts.auth cannot be used in combination with opts.token`);e.auth?this[v][`proxy-authorization`]=`Basic ${e.auth}`:e.token?this[v][`proxy-authorization`]=e.token:O&&k&&(this[v][`proxy-authorization`]=`Basic ${Buffer.from(`${decodeURIComponent(O)}:${decodeURIComponent(k)}`).toString(`base64`)}`);let j=m({...e.proxyTls});this[x]=m({...e.requestTls});let M=e.factory||E,N=(e,t)=>{let{protocol:r}=new s(e);return!this[S]&&r===`http:`&&this[n].protocol===`http:`?new D(this[n].uri,{headers:this[v],connect:j,factory:M}):M(e,t)};this[_]=t(i,{connect:j}),this[g]=new c({...e,factory:N,connect:async(e,t)=>{let n=e.host;e.port||(n+=`:${C(e.protocol)}`);try{let{socket:r,statusCode:i}=await this[_].connect({origin:l,port:u,path:n,signal:e.signal,headers:{...this[v],host:e.host},servername:this[b]?.servername||A});if(i!==200&&(r.on(`error`,T).destroy(),t(new f(`Proxy response (${i}) !== 200 when HTTP Tunneling`))),e.protocol!==`https:`){t(null,r);return}let a;a=this[y]?this[y].servername:e.servername,this[x]({...e,servername:a,httpSocket:r},t)}catch(e){e.code===`ERR_TLS_CERT_ALTNAME_INVALID`?t(new p(e)):t(e)}}})}dispatch(e,t){let n=k(e.headers);if(A(n),n&&!(`host`in n)&&!(`Host`in n)){let{host:t}=new s(e.origin);n.host=t}return this[g].dispatch({...e,headers:n},t)}#e(e){return typeof e==`string`?new s(e):e instanceof s?e:new s(e.uri)}async[r](){await this[g].close(),await this[_].close()}async[i](){await this[g].destroy(),await this[_].destroy()}};function k(e){if(Array.isArray(e)){let t={};for(let n=0;ne.toLowerCase()===`proxy-authorization`))throw new d(`Proxy-Authorization should be sent in ProxyAgent constructor`)}t.exports=O})),pt=z(((e,t)=>{let n=Re(),{kClose:r,kDestroy:i,kClosed:a,kDestroyed:o,kDispatch:s,kNoProxyAgent:c,kHttpProxyAgent:l,kHttpsProxyAgent:u}=je(),d=ft(),f=dt(),p={"http:":80,"https:":443},m=!1;t.exports=class extends n{#e=null;#t=null;#n=null;constructor(e={}){super(),this.#n=e,m||(m=!0,process.emitWarning(`EnvHttpProxyAgent is experimental, expect them to change at any time.`,{code:`UNDICI-EHPA`}));let{httpProxy:t,httpsProxy:n,noProxy:r,...i}=e;this[c]=new f(i);let a=t??process.env.http_proxy??process.env.HTTP_PROXY;a?this[l]=new d({...i,uri:a}):this[l]=this[c];let o=n??process.env.https_proxy??process.env.HTTPS_PROXY;o?this[u]=new d({...i,uri:o}):this[u]=this[l],this.#a()}[s](e,t){let n=new URL(e.origin);return this.#r(n).dispatch(e,t)}async[r](){await this[c].close(),this[l][a]||await this[l].close(),this[u][a]||await this[u].close()}async[i](e){await this[c].destroy(e),this[l][o]||await this[l].destroy(e),this[u][o]||await this[u].destroy(e)}#r(e){let{protocol:t,host:n,port:r}=e;return n=n.replace(/:\d*$/,``).toLowerCase(),r=Number.parseInt(r,10)||p[t]||0,this.#i(n,r)?t===`https:`?this[u]:this[l]:this[c]}#i(e,t){if(this.#o&&this.#a(),this.#t.length===0)return!0;if(this.#e===`*`)return!1;for(let n=0;n{let n=V(`node:assert`),{kRetryHandlerDefaultRetry:r}=je(),{RequestRetryError:i}=Me(),{isDisturbed:a,parseHeaders:o,parseRangeHeader:s,wrapRequestBody:c}=H();function l(e){let t=Date.now();return new Date(e).getTime()-t}t.exports=class e{constructor(t,n){let{retryOptions:i,...a}=t,{retry:o,maxRetries:s,maxTimeout:l,minTimeout:u,timeoutFactor:d,methods:f,errorCodes:p,retryAfter:m,statusCodes:h}=i??{};this.dispatch=n.dispatch,this.handler=n.handler,this.opts={...a,body:c(t.body)},this.abort=null,this.aborted=!1,this.retryOpts={retry:o??e[r],retryAfter:m??!0,maxTimeout:l??30*1e3,minTimeout:u??500,timeoutFactor:d??2,maxRetries:s??5,methods:f??[`GET`,`HEAD`,`OPTIONS`,`PUT`,`DELETE`,`TRACE`],statusCodes:h??[500,502,503,504,429],errorCodes:p??[`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(e=>{this.aborted=!0,this.abort?this.abort(e):this.reason=e})}onRequestSent(){this.handler.onRequestSent&&this.handler.onRequestSent()}onUpgrade(e,t,n){this.handler.onUpgrade&&this.handler.onUpgrade(e,t,n)}onConnect(e){this.aborted?e(this.reason):this.abort=e}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[r](e,{state:t,opts:n},r){let{statusCode:i,code:a,headers:o}=e,{method:s,retryOptions:c}=n,{maxRetries:u,minTimeout:d,maxTimeout:f,timeoutFactor:p,statusCodes:m,errorCodes:h,methods:g}=c,{counter:_}=t;if(a&&a!==`UND_ERR_REQ_RETRY`&&!h.includes(a)){r(e);return}if(Array.isArray(g)&&!g.includes(s)){r(e);return}if(i!=null&&Array.isArray(m)&&!m.includes(i)){r(e);return}if(_>u){r(e);return}let v=o?.[`retry-after`];v&&=(v=Number(v),Number.isNaN(v)?l(v):v*1e3);let y=Math.min(v>0?v:d*p**(_-1),f);setTimeout(()=>r(null),y)}onHeaders(e,t,r,a){let c=o(t);if(this.retryCount+=1,e>=300)return this.retryOpts.statusCodes.includes(e)===!1?this.handler.onHeaders(e,t,r,a):(this.abort(new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}})),!1);if(this.resume!=null){if(this.resume=null,e!==206&&(this.start>0||e!==200))return this.abort(new i(`server does not support the range header and the payload was partially consumed`,e,{headers:c,data:{count:this.retryCount}})),!1;let t=s(c[`content-range`]);if(!t)return this.abort(new i(`Content-Range mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;if(this.etag!=null&&this.etag!==c.etag)return this.abort(new i(`ETag mismatch`,e,{headers:c,data:{count:this.retryCount}})),!1;let{start:a,size:o,end:l=o-1}=t;return n(this.start===a,`content-range mismatch`),n(this.end==null||this.end===l,`content-range mismatch`),this.resume=r,!0}if(this.end==null){if(e===206){let i=s(c[`content-range`]);if(i==null)return this.handler.onHeaders(e,t,r,a);let{start:o,size:l,end:u=l-1}=i;n(o!=null&&Number.isFinite(o),`content-range mismatch`),n(u!=null&&Number.isFinite(u),`invalid content-length`),this.start=o,this.end=u}if(this.end==null){let e=c[`content-length`];this.end=e==null?null:Number(e)-1}return n(Number.isFinite(this.start)),n(this.end==null||Number.isFinite(this.end),`invalid content-length`),this.resume=r,this.etag=c.etag==null?null:c.etag,this.etag!=null&&this.etag.startsWith(`W/`)&&(this.etag=null),this.handler.onHeaders(e,t,r,a)}let l=new i(`Request failed`,e,{headers:c,data:{count:this.retryCount}});return this.abort(l),!1}onData(e){return this.start+=e.length,this.handler.onData(e)}onComplete(e){return this.retryCount=0,this.handler.onComplete(e)}onError(e){if(this.aborted||a(this.opts.body))return this.handler.onError(e);this.retryCount-this.retryCountCheckpoint>0?this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint):this.retryCount+=1,this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},t.bind(this));function t(e){if(e!=null||this.aborted||a(this.opts.body))return this.handler.onError(e);if(this.start!==0){let e={range:`bytes=${this.start}-${this.end??``}`};this.etag!=null&&(e[`if-match`]=this.etag),this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount,this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}})),ht=z(((e,t)=>{let n=Le(),r=mt();t.exports=class extends n{#e=null;#t=null;constructor(e,t={}){super(t),this.#e=e,this.#t=t}dispatch(e,t){let n=new r({...e,retryOptions:this.#t},{dispatch:this.#e.dispatch.bind(this.#e),handler:t});return this.#e.dispatch(e,n)}close(){return this.#e.close()}destroy(){return this.#e.destroy()}}})),gt=z(((e,t)=>{let n=V(`node:assert`),{Readable:r}=V(`node:stream`),{RequestAbortedError:i,NotSupportedError:a,InvalidArgumentError:o,AbortError:s}=Me(),c=H(),{ReadableStreamFrom:l}=H(),u=Symbol(`kConsume`),d=Symbol(`kReading`),f=Symbol(`kBody`),p=Symbol(`kAbort`),m=Symbol(`kContentType`),h=Symbol(`kContentLength`),g=()=>{};var _=class extends r{constructor({resume:e,abort:t,contentType:n=``,contentLength:r,highWaterMark:i=64*1024}){super({autoDestroy:!0,read:e,highWaterMark:i}),this._readableState.dataEmitted=!1,this[p]=t,this[u]=null,this[f]=null,this[m]=n,this[h]=r,this[d]=!1}destroy(e){return!e&&!this._readableState.endEmitted&&(e=new i),e&&this[p](),super.destroy(e)}_destroy(e,t){this[d]?t(e):setImmediate(()=>{t(e)})}on(e,...t){return(e===`data`||e===`readable`)&&(this[d]=!0),super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){let n=super.off(e,...t);return(e===`data`||e===`readable`)&&(this[d]=this.listenerCount(`data`)>0||this.listenerCount(`readable`)>0),n}removeListener(e,...t){return this.off(e,...t)}push(e){return this[u]&&e!==null?(T(this[u],e),this[d]?super.push(e):!0):super.push(e)}async text(){return b(this,`text`)}async json(){return b(this,`json`)}async blob(){return b(this,`blob`)}async bytes(){return b(this,`bytes`)}async arrayBuffer(){return b(this,`arrayBuffer`)}async formData(){throw new a}get bodyUsed(){return c.isDisturbed(this)}get body(){return this[f]||(this[f]=l(this),this[u]&&(this[f].getReader(),n(this[f].locked))),this[f]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024,n=e?.signal;if(n!=null&&(typeof n!=`object`||!(`aborted`in n)))throw new o(`signal must be an AbortSignal`);return n?.throwIfAborted(),this._readableState.closeEmitted?null:await new Promise((e,r)=>{this[h]>t&&this.destroy(new s);let i=()=>{this.destroy(n.reason??new s)};n?.addEventListener(`abort`,i),this.on(`close`,function(){n?.removeEventListener(`abort`,i),n?.aborted?r(n.reason??new s):e(null)}).on(`error`,g).on(`data`,function(e){t-=e.length,t<=0&&this.destroy()}).resume()})}};function v(e){return e[f]&&e[f].locked===!0||e[u]}function y(e){return c.isDisturbed(e)||v(e)}async function b(e,t){return n(!e[u]),new Promise((n,r)=>{if(y(e)){let t=e._readableState;t.destroyed&&t.closeEmitted===!1?e.on(`error`,e=>{r(e)}).on(`close`,()=>{r(TypeError(`unusable`))}):r(t.errored??TypeError(`unusable`))}else queueMicrotask(()=>{e[u]={type:t,stream:e,resolve:n,reject:r,length:0,body:[]},e.on(`error`,function(e){E(this[u],e)}).on(`close`,function(){this[u].body!==null&&E(this[u],new i)}),x(e[u])})})}function x(e){if(e.body===null)return;let{_readableState:t}=e.stream;if(t.bufferIndex){let n=t.bufferIndex,r=t.buffer.length;for(let i=n;i2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,r)}function C(e,t){if(e.length===0||t===0)return new Uint8Array;if(e.length===1)return new Uint8Array(e[0]);let n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer),r=0;for(let t=0;t{let n=V(`node:assert`),{ResponseStatusCodeError:r}=Me(),{chunksDecode:i}=gt();async function a({callback:e,body:t,contentType:a,statusCode:c,statusMessage:l,headers:u}){n(t);let d=[],f=0;try{for await(let e of t)if(d.push(e),f+=e.length,f>131072){d=[],f=0;break}}catch{d=[],f=0}let p=`Response status code ${c}${l?`: ${l}`:``}`;if(c===204||!a||!f){queueMicrotask(()=>e(new r(p,c,u)));return}let m=Error.stackTraceLimit;Error.stackTraceLimit=0;let h;try{o(a)?h=JSON.parse(i(d,f)):s(a)&&(h=i(d,f))}catch{}finally{Error.stackTraceLimit=m}queueMicrotask(()=>e(new r(p,c,u,h)))}let o=e=>e.length>15&&e[11]===`/`&&e[0]===`a`&&e[1]===`p`&&e[2]===`p`&&e[3]===`l`&&e[4]===`i`&&e[5]===`c`&&e[6]===`a`&&e[7]===`t`&&e[8]===`i`&&e[9]===`o`&&e[10]===`n`&&e[12]===`j`&&e[13]===`s`&&e[14]===`o`&&e[15]===`n`,s=e=>e.length>4&&e[4]===`/`&&e[0]===`t`&&e[1]===`e`&&e[2]===`x`&&e[3]===`t`;t.exports={getResolveErrorBodyCallback:a,isContentTypeApplicationJson:o,isContentTypeText:s}})),vt=z(((e,t)=>{let n=V(`node:assert`),{Readable:r}=gt(),{InvalidArgumentError:i,RequestAbortedError:a}=Me(),o=H(),{getResolveErrorBodyCallback:s}=_t(),{AsyncResource:c}=V(`node:async_hooks`);var l=class extends c{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);let{signal:n,method:r,opaque:s,body:c,onInfo:l,responseHeaders:u,throwOnError:d,highWaterMark:f}=e;try{if(typeof t!=`function`)throw new i(`invalid callback`);if(f&&(typeof f!=`number`||f<0))throw new i(`invalid highWaterMark`);if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);if(r===`CONNECT`)throw new i(`invalid method`);if(l&&typeof l!=`function`)throw new i(`invalid onInfo callback`);super(`UNDICI_REQUEST`)}catch(e){throw o.isStream(c)&&o.destroy(c.on(`error`,o.nop),e),e}this.method=r,this.responseHeaders=u||null,this.opaque=s||null,this.callback=t,this.res=null,this.abort=null,this.body=c,this.trailers={},this.context=null,this.onInfo=l||null,this.throwOnError=d,this.highWaterMark=f,this.signal=n,this.reason=null,this.removeAbortListener=null,o.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),this.signal&&(this.signal.aborted?this.reason=this.signal.reason??new a:this.removeAbortListener=o.addAbortListener(this.signal,()=>{this.reason=this.signal.reason??new a,this.res?o.destroy(this.res.on(`error`,o.nop),this.reason):this.abort&&this.abort(this.reason),this.removeAbortListener&&=(this.res?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}))}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,i){let{callback:a,opaque:c,abort:l,context:u,responseHeaders:d,highWaterMark:f}=this,p=d===`raw`?o.parseRawHeaders(t):o.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:p});return}let m=d===`raw`?o.parseHeaders(t):p,h=m[`content-type`],g=m[`content-length`],_=new r({resume:n,abort:l,contentType:h,contentLength:this.method!==`HEAD`&&g?Number(g):null,highWaterMark:f});this.removeAbortListener&&_.on(`close`,this.removeAbortListener),this.callback=null,this.res=_,a!==null&&(this.throwOnError&&e>=400?this.runInAsyncScope(s,null,{callback:a,body:_,contentType:h,statusCode:e,statusMessage:i,headers:p}):this.runInAsyncScope(a,null,null,{statusCode:e,headers:p,trailers:this.trailers,opaque:c,body:_,context:u}))}onData(e){return this.res.push(e)}onComplete(e){o.parseHeaders(e,this.trailers),this.res.push(null)}onError(e){let{res:t,callback:n,body:r,opaque:i}=this;n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:i})})),t&&(this.res=null,queueMicrotask(()=>{o.destroy(t,e)})),r&&(this.body=null,o.destroy(r,e)),this.removeAbortListener&&=(t?.off(`close`,this.removeAbortListener),this.removeAbortListener(),null)}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{this.dispatch(e,new l(e,t))}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u,t.exports.RequestHandler=l})),yt=z(((e,t)=>{let{addAbortListener:n}=H(),{RequestAbortedError:r}=Me(),i=Symbol(`kListener`),a=Symbol(`kSignal`);function o(e){e.abort?e.abort(e[a]?.reason):e.reason=e[a]?.reason??new r,c(e)}function s(e,t){if(e.reason=null,e[a]=null,e[i]=null,t){if(t.aborted){o(e);return}e[a]=t,e[i]=()=>{o(e)},n(e[a],e[i])}}function c(e){e[a]&&(`removeEventListener`in e[a]?e[a].removeEventListener(`abort`,e[i]):e[a].removeListener(`abort`,e[i]),e[a]=null,e[i]=null)}t.exports={addSignal:s,removeSignal:c}})),bt=z(((e,t)=>{let n=V(`node:assert`),{finished:r,PassThrough:i}=V(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o}=Me(),s=H(),{getResolveErrorBodyCallback:c}=_t(),{AsyncResource:l}=V(`node:async_hooks`),{addSignal:u,removeSignal:d}=yt();var f=class extends l{constructor(e,t,n){if(!e||typeof e!=`object`)throw new a(`invalid opts`);let{signal:r,method:i,opaque:o,body:c,onInfo:l,responseHeaders:d,throwOnError:f}=e;try{if(typeof n!=`function`)throw new a(`invalid callback`);if(typeof t!=`function`)throw new a(`invalid factory`);if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_STREAM`)}catch(e){throw s.isStream(c)&&s.destroy(c.on(`error`,s.nop),e),e}this.responseHeaders=d||null,this.opaque=o||null,this.factory=t,this.callback=n,this.res=null,this.abort=null,this.context=null,this.trailers=null,this.body=c,this.onInfo=l||null,this.throwOnError=f||!1,s.isStream(c)&&c.on(`error`,e=>{this.onError(e)}),u(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(e,t,n,a){let{factory:l,opaque:u,context:d,callback:f,responseHeaders:p}=this,m=p===`raw`?s.parseRawHeaders(t):s.parseHeaders(t);if(e<200){this.onInfo&&this.onInfo({statusCode:e,headers:m});return}this.factory=null;let h;if(this.throwOnError&&e>=400){let n=(p===`raw`?s.parseHeaders(t):m)[`content-type`];h=new i,this.callback=null,this.runInAsyncScope(c,null,{callback:f,body:h,contentType:n,statusCode:e,statusMessage:a,headers:m})}else{if(l===null)return;if(h=this.runInAsyncScope(l,null,{statusCode:e,headers:m,opaque:u,context:d}),!h||typeof h.write!=`function`||typeof h.end!=`function`||typeof h.on!=`function`)throw new o(`expected Writable`);r(h,{readable:!1},e=>{let{callback:t,res:n,opaque:r,trailers:i,abort:a}=this;this.res=null,(e||!n.readable)&&s.destroy(n,e),this.callback=null,this.runInAsyncScope(t,null,e||null,{opaque:r,trailers:i}),e&&a()})}return h.on(`drain`,n),this.res=h,(h.writableNeedDrain===void 0?h._writableState?.needDrain:h.writableNeedDrain)!==!0}onData(e){let{res:t}=this;return t?t.write(e):!0}onComplete(e){let{res:t}=this;d(this),t&&(this.trailers=s.parseHeaders(e),t.end())}onError(e){let{res:t,callback:n,opaque:r,body:i}=this;d(this),this.factory=null,t?(this.res=null,s.destroy(t,e)):n&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(n,null,e,{opaque:r})})),i&&(this.body=null,s.destroy(i,e))}};function p(e,t,n){if(n===void 0)return new Promise((n,r)=>{p.call(this,e,t,(e,t)=>e?r(e):n(t))});try{this.dispatch(e,new f(e,t,n))}catch(t){if(typeof n!=`function`)throw t;let r=e?.opaque;queueMicrotask(()=>n(t,{opaque:r}))}}t.exports=p})),xt=z(((e,t)=>{let{Readable:n,Duplex:r,PassThrough:i}=V(`node:stream`),{InvalidArgumentError:a,InvalidReturnValueError:o,RequestAbortedError:s}=Me(),c=H(),{AsyncResource:l}=V(`node:async_hooks`),{addSignal:u,removeSignal:d}=yt(),f=V(`node:assert`),p=Symbol(`resume`);var m=class extends n{constructor(){super({autoDestroy:!0}),this[p]=null}_read(){let{[p]:e}=this;e&&(this[p]=null,e())}_destroy(e,t){this._read(),t(e)}},h=class extends n{constructor(e){super({autoDestroy:!0}),this[p]=e}_read(){this[p]()}_destroy(e,t){!e&&!this._readableState.endEmitted&&(e=new s),t(e)}},g=class extends l{constructor(e,t){if(!e||typeof e!=`object`)throw new a(`invalid opts`);if(typeof t!=`function`)throw new a(`invalid handler`);let{signal:n,method:i,opaque:o,onInfo:l,responseHeaders:f}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new a(`signal must be an EventEmitter or EventTarget`);if(i===`CONNECT`)throw new a(`invalid method`);if(l&&typeof l!=`function`)throw new a(`invalid onInfo callback`);super(`UNDICI_PIPELINE`),this.opaque=o||null,this.responseHeaders=f||null,this.handler=t,this.abort=null,this.context=null,this.onInfo=l||null,this.req=new m().on(`error`,c.nop),this.ret=new r({readableObjectMode:e.objectMode,autoDestroy:!0,read:()=>{let{body:e}=this;e?.resume&&e.resume()},write:(e,t,n)=>{let{req:r}=this;r.push(e,t)||r._readableState.destroyed?n():r[p]=n},destroy:(e,t)=>{let{body:n,req:r,res:i,ret:a,abort:o}=this;!e&&!a._readableState.endEmitted&&(e=new s),o&&e&&o(),c.destroy(n,e),c.destroy(r,e),c.destroy(i,e),d(this),t(e)}}).on(`prefinish`,()=>{let{req:e}=this;e.push(null)}),this.res=null,u(this,n)}onConnect(e,t){let{ret:n,res:r}=this;if(this.reason){e(this.reason);return}f(!r,`pipeline cannot be retried`),f(!n.destroyed),this.abort=e,this.context=t}onHeaders(e,t,n){let{opaque:r,handler:i,context:a}=this;if(e<200){if(this.onInfo){let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new h(n);let l;try{this.handler=null;let n=this.responseHeaders===`raw`?c.parseRawHeaders(t):c.parseHeaders(t);l=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:r,body:this.res,context:a})}catch(e){throw this.res.on(`error`,c.nop),e}if(!l||typeof l.on!=`function`)throw new o(`expected Readable`);l.on(`data`,e=>{let{ret:t,body:n}=this;!t.push(e)&&n.pause&&n.pause()}).on(`error`,e=>{let{ret:t}=this;c.destroy(t,e)}).on(`end`,()=>{let{ret:e}=this;e.push(null)}).on(`close`,()=>{let{ret:e}=this;e._readableState.ended||c.destroy(e,new s)}),this.body=l}onData(e){let{res:t}=this;return t.push(e)}onComplete(e){let{res:t}=this;t.push(null)}onError(e){let{ret:t}=this;this.handler=null,c.destroy(t,e)}};function _(e,t){try{let n=new g(e,t);return this.dispatch({...e,body:n.req},n),n.ret}catch(e){return new i().destroy(e)}}t.exports=_})),St=z(((e,t)=>{let{InvalidArgumentError:n,SocketError:r}=Me(),{AsyncResource:i}=V(`node:async_hooks`),a=H(),{addSignal:o,removeSignal:s}=yt(),c=V(`node:assert`);var l=class extends i{constructor(e,t){if(!e||typeof e!=`object`)throw new n(`invalid opts`);if(typeof t!=`function`)throw new n(`invalid callback`);let{signal:r,opaque:i,responseHeaders:a}=e;if(r&&typeof r.on!=`function`&&typeof r.addEventListener!=`function`)throw new n(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_UPGRADE`),this.responseHeaders=a||null,this.opaque=i||null,this.callback=t,this.abort=null,this.context=null,o(this,r)}onConnect(e,t){if(this.reason){e(this.reason);return}c(this.callback),this.abort=e,this.context=null}onHeaders(){throw new r(`bad upgrade`,null)}onUpgrade(e,t,n){c(e===101);let{callback:r,opaque:i,context:o}=this;s(this),this.callback=null;let l=this.responseHeaders===`raw`?a.parseRawHeaders(t):a.parseHeaders(t);this.runInAsyncScope(r,null,null,{headers:l,socket:n,opaque:i,context:o})}onError(e){let{callback:t,opaque:n}=this;s(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:e.method||`GET`,upgrade:e.protocol||`Websocket`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),Ct=z(((e,t)=>{let n=V(`node:assert`),{AsyncResource:r}=V(`node:async_hooks`),{InvalidArgumentError:i,SocketError:a}=Me(),o=H(),{addSignal:s,removeSignal:c}=yt();var l=class extends r{constructor(e,t){if(!e||typeof e!=`object`)throw new i(`invalid opts`);if(typeof t!=`function`)throw new i(`invalid callback`);let{signal:n,opaque:r,responseHeaders:a}=e;if(n&&typeof n.on!=`function`&&typeof n.addEventListener!=`function`)throw new i(`signal must be an EventEmitter or EventTarget`);super(`UNDICI_CONNECT`),this.opaque=r||null,this.responseHeaders=a||null,this.callback=t,this.abort=null,s(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}n(this.callback),this.abort=e,this.context=t}onHeaders(){throw new a(`bad connect`,null)}onUpgrade(e,t,n){let{callback:r,opaque:i,context:a}=this;c(this),this.callback=null;let s=t;s!=null&&(s=this.responseHeaders===`raw`?o.parseRawHeaders(t):o.parseHeaders(t)),this.runInAsyncScope(r,null,null,{statusCode:e,headers:s,socket:n,opaque:i,context:a})}onError(e){let{callback:t,opaque:n}=this;c(this),t&&(this.callback=null,queueMicrotask(()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}};function u(e,t){if(t===void 0)return new Promise((t,n)=>{u.call(this,e,(e,r)=>e?n(e):t(r))});try{let n=new l(e,t);this.dispatch({...e,method:`CONNECT`},n)}catch(n){if(typeof t!=`function`)throw n;let r=e?.opaque;queueMicrotask(()=>t(n,{opaque:r}))}}t.exports=u})),wt=z(((e,t)=>{t.exports.request=vt(),t.exports.stream=bt(),t.exports.pipeline=xt(),t.exports.upgrade=St(),t.exports.connect=Ct()})),Tt=z(((e,t)=>{let{UndiciError:n}=Me(),r=Symbol.for(`undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED`);t.exports={MockNotMatchedError:class e extends n{constructor(t){super(t),Error.captureStackTrace(this,e),this.name=`MockNotMatchedError`,this.message=t||`The request does not match any registered mock dispatches`,this.code=`UND_MOCK_ERR_MOCK_NOT_MATCHED`}static[Symbol.hasInstance](e){return e&&e[r]===!0}[r]=!0}}})),Et=z(((e,t)=>{t.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`)}})),Dt=z(((e,t)=>{let{MockNotMatchedError:n}=Tt(),{kDispatches:r,kMockAgent:i,kOriginalDispatch:a,kOrigin:o,kGetNetConnect:s}=Et(),{buildURL:c}=H(),{STATUS_CODES:l}=V(`node:http`),{types:{isPromise:u}}=V(`node:util`);function d(e,t){return typeof e==`string`?e===t:e instanceof RegExp?e.test(t):typeof e==`function`?e(t)===!0:!1}function f(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e.toLocaleLowerCase(),t]))}function p(e,t){if(Array.isArray(e)){for(let n=0;n!e).filter(({path:e})=>d(g(e),i));if(a.length===0)throw new n(`Mock dispatch not matched for path '${i}'`);if(a=a.filter(({method:e})=>d(e,t.method)),a.length===0)throw new n(`Mock dispatch not matched for method '${t.method}' on path '${i}'`);if(a=a.filter(({body:e})=>e===void 0?!0:d(e,t.body)),a.length===0)throw new n(`Mock dispatch not matched for body '${t.body}' on path '${i}'`);if(a=a.filter(e=>h(e,t.headers)),a.length===0)throw new n(`Mock dispatch not matched for headers '${typeof t.headers==`object`?JSON.stringify(t.headers):t.headers}' on path '${i}'`);return a[0]}function b(e,t,n){let r={timesInvoked:0,times:1,persist:!1,consumed:!1},i=typeof n==`function`?{callback:n}:{...n},a={...r,...t,pending:!0,data:{error:null,...i}};return e.push(a),a}function x(e,t){let n=e.findIndex(e=>e.consumed?_(e,t):!1);n!==-1&&e.splice(n,1)}function S(e){let{path:t,method:n,body:r,headers:i,query:a}=e;return{path:t,method:n,body:r,headers:i,query:a}}function C(e){let t=Object.keys(e),n=[];for(let r=0;r=h,i.pending=p0?setTimeout(()=>{g(this[r])},d):g(this[r]);function g(r,i=o){let l=Array.isArray(e.headers)?m(e.headers):e.headers,d=typeof i==`function`?i({...e,headers:l}):i;if(u(d)){d.then(e=>g(r,e));return}let f=v(d),p=C(s),h=C(c);t.onConnect?.(e=>t.onError(e),null),t.onHeaders?.(a,p,_,w(a)),t.onData?.(Buffer.from(f)),t.onComplete?.(h),x(r,n)}function _(){}return!0}function D(){let e=this[i],t=this[o],r=this[a];return function(i,a){if(e.isMockActive)try{E.call(this,i,a)}catch(o){if(o instanceof n){let c=e[s]();if(c===!1)throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`);if(O(c,t))r.call(this,i,a);else throw new n(`${o.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}else throw o}else r.call(this,i,a)}}function O(e,t){let n=new URL(t);return e===!0?!0:!!(Array.isArray(e)&&e.some(e=>d(e,n.host)))}function k(e){if(e){let{agent:t,...n}=e;return n}}t.exports={getResponseData:v,getMockDispatch:y,addMockDispatch:b,deleteMockDispatch:x,buildKey:S,generateKeyValues:C,matchValue:d,getResponse:T,getStatusText:w,mockDispatch:E,buildMockDispatch:D,checkNetConnect:O,buildMockOptions:k,getHeaderByName:p,buildHeadersFromArray:m}})),Ot=z(((e,t)=>{let{getResponseData:n,buildKey:r,addMockDispatch:i}=Dt(),{kDispatches:a,kDispatchKey:o,kDefaultHeaders:s,kDefaultTrailers:c,kContentLength:l,kMockDispatch:u}=Et(),{InvalidArgumentError:d}=Me(),{buildURL:f}=H();var p=class{constructor(e){this[u]=e}delay(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`waitInMs must be a valid integer > 0`);return this[u].delay=e,this}persist(){return this[u].persist=!0,this}times(e){if(typeof e!=`number`||!Number.isInteger(e)||e<=0)throw new d(`repeatTimes must be a valid integer > 0`);return this[u].times=e,this}},m=class{constructor(e,t){if(typeof e!=`object`)throw new d(`opts must be an object`);if(e.path===void 0)throw new d(`opts.path must be defined`);if(e.method===void 0&&(e.method=`GET`),typeof e.path==`string`)if(e.query)e.path=f(e.path,e.query);else{let t=new URL(e.path,`data://`);e.path=t.pathname+t.search}typeof e.method==`string`&&(e.method=e.method.toUpperCase()),this[o]=r(e),this[a]=t,this[s]={},this[c]={},this[l]=!1}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:r}){let i=n(t),a=this[l]?{"content-length":i.length}:{};return{statusCode:e,data:t,headers:{...this[s],...a,...r.headers},trailers:{...this[c],...r.trailers}}}validateReplyParameters(e){if(e.statusCode===void 0)throw new d(`statusCode must be defined`);if(typeof e.responseOptions!=`object`||e.responseOptions===null)throw new d(`responseOptions must be an object`)}reply(e){if(typeof e==`function`)return new p(i(this[a],this[o],t=>{let n=e(t);if(typeof n!=`object`||!n)throw new d(`reply options callback must return an object`);let r={data:``,responseOptions:{},...n};return this.validateReplyParameters(r),{...this.createMockScopeDispatchData(r)}}));let t={statusCode:e,data:arguments[1]===void 0?``:arguments[1],responseOptions:arguments[2]===void 0?{}:arguments[2]};this.validateReplyParameters(t);let n=this.createMockScopeDispatchData(t);return new p(i(this[a],this[o],n))}replyWithError(e){if(e===void 0)throw new d(`error must be defined`);return new p(i(this[a],this[o],{error:e}))}defaultReplyHeaders(e){if(e===void 0)throw new d(`headers must be defined`);return this[s]=e,this}defaultReplyTrailers(e){if(e===void 0)throw new d(`trailers must be defined`);return this[c]=e,this}replyContentLength(){return this[l]=!0,this}};t.exports.MockInterceptor=m,t.exports.MockScope=p})),kt=z(((e,t)=>{let{promisify:n}=V(`node:util`),r=at(),{buildMockDispatch:i}=Dt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Et(),{MockInterceptor:f}=Ot(),p=je(),{InvalidArgumentError:m}=Me();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),At=z(((e,t)=>{let{promisify:n}=V(`node:util`),r=lt(),{buildMockDispatch:i}=Dt(),{kDispatches:a,kMockAgent:o,kClose:s,kOriginalClose:c,kOrigin:l,kOriginalDispatch:u,kConnected:d}=Et(),{MockInterceptor:f}=Ot(),p=je(),{InvalidArgumentError:m}=Me();t.exports=class extends r{constructor(e,t){if(super(e,t),!t||!t.agent||typeof t.agent.dispatch!=`function`)throw new m(`Argument opts.agent must implement Agent`);this[o]=t.agent,this[l]=e,this[a]=[],this[d]=1,this[u]=this.dispatch,this[c]=this.close.bind(this),this.dispatch=i.call(this),this.close=this[s]}get[p.kConnected](){return this[d]}intercept(e){return new f(e,this[a])}async[s](){await n(this[c])(),this[d]=0,this[o][p.kClients].delete(this[l])}}})),jt=z(((e,t)=>{let n={pronoun:`it`,is:`is`,was:`was`,this:`this`},r={pronoun:`they`,is:`are`,was:`were`,this:`these`};t.exports=class{constructor(e,t){this.singular=e,this.plural=t}pluralize(e){let t=e===1,i=t?n:r,a=t?this.singular:this.plural;return{...i,count:e,noun:a}}}})),Mt=z(((e,t)=>{let{Transform:n}=V(`node:stream`),{Console:r}=V(`node:console`),i=process.versions.icu?`✅`:`Y `,a=process.versions.icu?`❌`:`N `;t.exports=class{constructor({disableColors:e}={}){this.transform=new n({transform(e,t,n){n(null,e)}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){let t=e.map(({method:e,path:t,data:{statusCode:n},persist:r,times:o,timesInvoked:s,origin:c})=>({Method:e,Origin:c,Path:t,"Status code":n,Persistent:r?i:a,Invocations:s,Remaining:r?1/0:o-s}));return this.logger.table(t),this.transform.read().toString()}}})),Nt=z(((e,t)=>{let{kClients:n}=je(),r=dt(),{kAgent:i,kMockAgentSet:a,kMockAgentGet:o,kDispatches:s,kIsMockActive:c,kNetConnect:l,kGetNetConnect:u,kOptions:d,kFactory:f}=Et(),p=kt(),m=At(),{matchValue:h,buildMockOptions:g}=Dt(),{InvalidArgumentError:_,UndiciError:v}=Me(),y=Le(),b=jt(),x=Mt();t.exports=class extends y{constructor(e){if(super(e),this[l]=!0,this[c]=!0,e?.agent&&typeof e.agent.dispatch!=`function`)throw new _(`Argument opts.agent must implement Agent`);let t=e?.agent?e.agent:new r(e);this[i]=t,this[n]=t[n],this[d]=g(e)}get(e){let t=this[o](e);return t||(t=this[f](e),this[a](e,t)),t}dispatch(e,t){return this.get(e.origin),this[i].dispatch(e,t)}async close(){await this[i].close(),this[n].clear()}deactivate(){this[c]=!1}activate(){this[c]=!0}enableNetConnect(e){if(typeof e==`string`||typeof e==`function`||e instanceof RegExp)Array.isArray(this[l])?this[l].push(e):this[l]=[e];else if(e===void 0)this[l]=!0;else throw new _(`Unsupported matcher. Must be one of String|Function|RegExp.`)}disableNetConnect(){this[l]=!1}get isMockActive(){return this[c]}[a](e,t){this[n].set(e,t)}[f](e){let t=Object.assign({agent:this},this[d]);return this[d]&&this[d].connections===1?new p(e,t):new m(e,t)}[o](e){let t=this[n].get(e);if(t)return t;if(typeof e!=`string`){let t=this[f](`http://localhost:9999`);return this[a](e,t),t}for(let[t,r]of Array.from(this[n]))if(r&&typeof t!=`string`&&h(t,e)){let t=this[f](e);return this[a](e,t),t[s]=r[s],t}}[u](){return this[l]}pendingInterceptors(){let e=this[n];return Array.from(e.entries()).flatMap(([e,t])=>t[s].map(t=>({...t,origin:e}))).filter(({pending:e})=>e)}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new x}={}){let t=this.pendingInterceptors();if(t.length===0)return;let n=new b(`interceptor`,`interceptors`).pluralize(t.length);throw new v(` ${n.count} ${n.noun} ${n.is} pending: ${e.format(t)} -`.trim())}}})),Ft=R(((e,t)=>{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=Ne(),i=ft();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),It=R(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),Lt=R(((e,t)=>{let n=it();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Rt=R(((e,t)=>{let n=ht();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),zt=R(((e,t)=>{let n=V(),{InvalidArgumentError:r,RequestAbortedError:i}=Ne(),a=It();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),Bt=R(((e,t)=>{let{isIP:n}=B(`node:net`),{lookup:r}=B(`node:dns`),i=It(),{InvalidArgumentError:a,InformationalError:o}=Ne(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),Vt=R(((e,t)=>{let{kConstruct:n}=Me(),{kEnumerableProperty:r}=V(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=Xe(),{webidl:s}=Ye(),c=B(`node:assert`),l=B(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),Ht=R(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=Vt(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=tt(),m=V(),h=B(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=Xe(),{redirectStatusSet:T,nullBodyStatus:E}=Ke(),{kState:D,kHeaders:O}=Ze(),{webidl:k}=Ye(),{FormData:A}=$e(),{URLSerializer:j}=Je(),{kConstruct:M}=Me(),N=B(`node:assert`),{types:P}=B(`node:util`),ee=new TextEncoder(`utf-8`);var te=class e{static error(){return ce(re(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(ee.encode(x(e))),r=ce(F({}),`response`);return se(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=ce(F({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=F({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}se(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=ne(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),ce(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(te),Object.defineProperties(te.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(te,{json:g,redirect:g,error:g});function ne(e){if(e.internalResponse)return ae(ne(e.internalResponse),e.type);let t=F({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function F(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function re(e){return F({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function ie(e){return e.type===`error`&&e.status===0}function I(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return N(!(n in t)),e[n]=r,!0}})}function ae(e,t){if(t===`basic`)return I(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return I(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return I(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return I(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});N(!1)}function oe(e,t=null){return N(v(e)),y(e)?re(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):re(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function se(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function ce(e,t){let r=new te(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||P.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:ie,makeNetworkError:re,makeResponse:F,makeAppropriateNetworkError:oe,filterResponse:ae,Response:te,cloneResponse:ne,fromInnerResponse:ce}})),Ut=R(((e,t)=>{let{kConnected:n,kSize:r}=Me();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),Wt=R(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=tt(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=Vt(),{FinalizationRegistry:p}=Ut()(),m=V(),h=B(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=Xe(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=Ke(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:N}=Ze(),{webidl:P}=Ye(),{URLSerializer:ee}=Je(),{kConstruct:te}=Me(),ne=B(`node:assert`),{getMaxListeners:F,setMaxListeners:re,getEventListeners:ie,defaultMaxListeners:I}=B(`node:events`),ae=Symbol(`abortController`),oe=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),se=new WeakMap;function ce(e){return t;function t(){let n=e.deref();if(n!==void 0){oe.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=se.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}se.delete(n.signal)}}}}let le=!1;var L=class e{constructor(t,r={}){if(P.util.markAsUncloneable(this),t===te)return;let i=`Request constructor`;P.argumentLengthCheck(arguments,1,i),t=P.converters.RequestInfo(t,i,`input`),r=P.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[N]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=ue({urlList:[e]}),p=`cors`}else this[N]=r.dispatcher||t[N],ne(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=ue({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw P.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!le&&u.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`}),le=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ae]=E;let e=ce(new WeakRef(E));try{(typeof F==`function`&&F(x)===I||ie(x,`abort`).length>=I)&&re(1500,x)}catch{}m.addAbortListener(x,e),oe.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(te),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let ee=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);ee=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let se=ee??D;if(se!=null&&se.source==null){if(ee!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let L=se;if(ee==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),L={source:D.source,length:D.length,stream:e.readable}}this[M].body=L}get method(){return P.brandCheck(this,e),this[M].method}get url(){return P.brandCheck(this,e),ee(this[M].url)}get headers(){return P.brandCheck(this,e),this[A]}get destination(){return P.brandCheck(this,e),this[M].destination}get referrer(){return P.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return P.brandCheck(this,e),this[M].referrerPolicy}get mode(){return P.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return P.brandCheck(this,e),this[M].cache}get redirect(){return P.brandCheck(this,e),this[M].redirect}get integrity(){return P.brandCheck(this,e),this[M].integrity}get keepalive(){return P.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return P.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return P.brandCheck(this,e),this[M].historyNavigation}get signal(){return P.brandCheck(this,e),this[j]}get body(){return P.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return P.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return P.brandCheck(this,e),`half`}clone(){if(P.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=de(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=se.get(this.signal);e===void 0&&(e=new Set,se.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,ce(t))}return fe(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(L);function ue(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function de(e){let t=ue({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function fe(e,t,n){let r=new L(te);return r[M]=e,r[j]=t,r[A]=new o(te),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(L.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),P.converters.Request=P.interfaceConverter(L),P.converters.RequestInfo=function(e,t,n){return typeof e==`string`?P.converters.USVString(e,t,n):e instanceof L?P.converters.Request(e,t,n):P.converters.USVString(e,t,n)},P.converters.AbortSignal=P.interfaceConverter(AbortSignal),P.converters.RequestInit=P.dictionaryConverter([{key:`method`,converter:P.converters.ByteString},{key:`headers`,converter:P.converters.HeadersInit},{key:`body`,converter:P.nullableConverter(P.converters.BodyInit)},{key:`referrer`,converter:P.converters.USVString},{key:`referrerPolicy`,converter:P.converters.DOMString,allowedValues:x},{key:`mode`,converter:P.converters.DOMString,allowedValues:C},{key:`credentials`,converter:P.converters.DOMString,allowedValues:w},{key:`cache`,converter:P.converters.DOMString,allowedValues:T},{key:`redirect`,converter:P.converters.DOMString,allowedValues:S},{key:`integrity`,converter:P.converters.DOMString},{key:`keepalive`,converter:P.converters.boolean},{key:`signal`,converter:P.nullableConverter(e=>P.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:P.converters.any},{key:`duplex`,converter:P.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:P.converters.any}]),t.exports={Request:L,makeRequest:ue,fromInnerRequest:fe,cloneRequest:de}})),Gt=R(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=Ht(),{HeadersList:s}=Vt(),{Request:c,cloneRequest:l}=Wt(),u=B(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:ee,urlIsLocal:te,urlIsHttpHttpsScheme:ne,urlHasHttpsScheme:F,clampAndCoarsenConnectionTimingInfo:re,simpleRangeHeaderValue:ie,buildContentRange:I,createInflate:ae,extractMimeType:oe}=Xe(),{kState:se,kDispatcher:ce}=Ze(),le=B(`node:assert`),{safelyExtractBody:L,extractBody:ue}=tt(),{redirectStatusSet:de,nullBodyStatus:fe,safeMethodsSet:pe,requestBodyHeader:me,subresourceSet:R}=Ke(),he=B(`node:events`),{Readable:ge,pipeline:z,finished:_e}=B(`node:stream`),{addAbortListener:ve,isErrored:ye,isReadable:be,bufferToLowerCasedHeaderName:xe}=V(),{dataURLProcessor:Se,serializeAMimeType:Ce,minimizeSupportedMimeType:we}=Je(),{getGlobalDispatcher:Te}=Ft(),{webidl:Ee}=Ye(),{STATUS_CODES:De}=B(`node:http`),Oe=[`GET`,`HEAD`],ke=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,Ae;var je=class extends he{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function Me(e){Pe(e,`fetch`)}function Ne(e,t=void 0){Ee.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[se];if(r.signal.aborted)return Ie(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return ve(r.signal,()=>{s=!0,le(l!=null),l.abort(r.signal.reason);let e=a?.deref();Ie(n,i,e,r.signal.reason)}),l=Le({request:i,processResponseEndOfBody:Me,processResponse:e=>{if(!s){if(e.aborted){Ie(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[ce]}),n.promise}function Pe(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;ne(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Fe(r,n.href,t,globalThis,i))}let Fe=performance.markResourceTiming;function Ie(e,t,n,r){if(e&&e.reject(r),t.body!=null&&be(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[se];i.body!=null&&be(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function Le({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=Te()}){le(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new je(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return le(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,R.has(e.destination),Re(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Re(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!te(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await ze(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await ze(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):ne(v(r))?(r.responseTainting=`cors`,await He(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):le(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||fe.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>Ve(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await N(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=L(n)[0],Ve(e,a)},t)}else Ve(e,a)}function ze(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{Ae||=B(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=Ae(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=ee(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=ie(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=ue(l)[0];let u=ee(`${l.size}`),d=I(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=ue(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=Se(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Ce(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:L(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return He(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function Be(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function Ve(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=oe(t.headersList);e!==`failure`&&(a.contentType=we(e))}e.request.initiatorType!=null&&Fe(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():_e(i.body.stream,()=>{r()})}async function He(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await We(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(de.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await Ue(e,r):le(!1)),r.timingInfo=a,r)}function Ue(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!ne(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!Oe.includes(r.method)){r.method=`GET`,r.body=null;for(let e of me)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(le(r.body.source!=null),r.body=L(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Re(e,!0)}async function We(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=ee(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,ee(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,ke),s.cache==="default"&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(F(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await Ge(o,u,i);!pe.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await We(e,t,!0)}return c}async function Ge(e,t=!1,i=!1){le(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){P(e.controller.controller),Be(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),ye(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,be(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):be(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=re(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ae({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?z(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{t.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`)}})),qt=R(((e,t)=>{let{webidl:n}=Ye(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),Jt=R(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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`}}t.exports={getEncoding:n}})),Yt=R(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=Kt(),{ProgressEvent:s}=qt(),{getEncoding:c}=Jt(),{serializeAMimeType:l,parseMIMEType:u}=Je(),{types:d}=B(`node:util`),{StringDecoder:f}=B(`string_decoder`),{btoa:p}=B(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),Xt=R(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=Yt(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=Kt(),{webidl:u}=Ye(),{kEnumerableProperty:d}=V();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),Zt=R(((e,t)=>{t.exports={kConstruct:Me().kConstruct}})),Qt=R(((e,t)=>{let n=B(`node:assert`),{URLSerializer:r}=Je(),{isValidHeaderName:i}=Xe();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),$t=R(((e,t)=>{let{kConstruct:n}=Zt(),{urlEquals:r,getFieldValues:i}=Qt(),{kEnumerableProperty:a,isDisturbed:o}=V(),{webidl:s}=Ye(),{Response:c,cloneResponse:l,fromInnerResponse:u}=Ht(),{Request:d,fromInnerRequest:f}=Wt(),{kState:p}=Ze(),{fetching:m}=Gt(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=Xe(),v=B(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),en=R(((e,t)=>{let{kConstruct:n}=Zt(),{Cache:r}=$t(),{webidl:i}=Ye(),{kEnumerableProperty:a}=V();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),tn=R(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),nn=R(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),rn=R(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=tn(),{isCTLExcludingHtab:i}=nn(),{collectASequenceOfCodePointsFast:a}=Je(),o=B(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),an=R(((e,t)=>{let{parseSetCookie:n}=rn(),{stringify:r}=nn(),{webidl:i}=Ye(),{Headers:a}=Vt();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),on=R(((e,t)=>{let{webidl:n}=Ye(),{kEnumerableProperty:r}=V(),{kConstruct:i}=Me(),{MessagePort:a}=B(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),sn=R(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),cn=R(((e,t)=>{t.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`)}})),ln=R(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=cn(),{states:s,opcodes:c}=sn(),{ErrorEvent:l,createFastMessageEvent:u}=on(),{isUtf8:d}=B(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=Je();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),un=R(((e,t)=>{let{maxUnsigned16Bit:n}=sn(),r=16386,i,a=null,o=r;try{i=B(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;t{let n=Symbol.for(`undici.globalDispatcher.1`),{InvalidArgumentError:r}=Me(),i=dt();o()===void 0&&a(new i);function a(e){if(!e||typeof e.dispatch!=`function`)throw new r(`Argument agent must implement Agent`);Object.defineProperty(globalThis,n,{value:e,writable:!0,enumerable:!1,configurable:!1})}function o(){return globalThis[n]}t.exports={setGlobalDispatcher:a,getGlobalDispatcher:o}})),Ft=z(((e,t)=>{t.exports=class{#e;constructor(e){if(typeof e!=`object`||!e)throw TypeError(`handler must be an object`);this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}})),It=z(((e,t)=>{let n=rt();t.exports=e=>{let t=e?.maxRedirections;return e=>function(r,i){let{maxRedirections:a=t,...o}=r;return a?e(o,new n(e,a,r,i)):e(r,i)}}})),Lt=z(((e,t)=>{let n=mt();t.exports=e=>t=>function(r,i){return t(r,new n({...r,retryOptions:{...e,...r.retryOptions}},{handler:i,dispatch:t}))}})),Rt=z(((e,t)=>{let n=H(),{InvalidArgumentError:r,RequestAbortedError:i}=Me(),a=Ft();var o=class extends a{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#a=null;#o=null;constructor({maxSize:e},t){if(super(t),e!=null&&(!Number.isFinite(e)||e<1))throw new r(`maxSize must be a number greater than 0`);this.#e=e??this.#e,this.#o=t}onConnect(e){this.#t=e,this.#o.onConnect(this.#s.bind(this))}#s(e){this.#r=!0,this.#a=e}onHeaders(e,t,r,a){let o=n.parseHeaders(t)[`content-length`];if(o!=null&&o>this.#e)throw new i(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#o.onHeaders(e,t,r,a)}onError(e){this.#n||(e=this.#a??e,this.#o.onError(e))}onData(e){return this.#i+=e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#o.onError(this.#a):this.#o.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function s({maxSize:e}={maxSize:1024*1024}){return t=>function(n,r){let{dumpMaxSize:i=e}=n;return t(n,new o({maxSize:i},r))}}t.exports=s})),zt=z(((e,t)=>{let{isIP:n}=V(`node:net`),{lookup:r}=V(`node:dns`),i=Ft(),{InvalidArgumentError:a,InformationalError:o}=Me(),s=2**31-1;var c=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,t,n){let r=this.#n.get(e.hostname);if(r==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#e,maxItems:this.#t};if(r==null)this.lookup(e,i,(t,r)=>{if(t||r==null||r.length===0){n(t??new o(`No DNS entries found`));return}this.setRecords(e,r);let a=this.#n.get(e.hostname),s=this.pick(e,a,i.affinity),c;c=typeof s.port==`number`?`:${s.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${s.family===6?`[${s.address}]`:s.address}${c}`)});else{let a=this.pick(e,r,i.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,t,n);return}let o;o=typeof a.port==`number`?`:${a.port}`:e.port===``?``:`:${e.port}`,n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${o}`)}}#r(e,t,n){r(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:`ipv4first`},(e,t)=>{if(e)return n(e);let r=new Map;for(let e of t)r.set(`${e.address}:${e.family}`,e);n(null,r.values())})}#i(e,t,n){let r=null,{records:i,offset:a}=t,o;if(this.dualStack?(n??(a==null||a===s?(t.offset=0,n=4):(t.offset++,n=(t.offset&1)==1?6:4)),o=i[n]!=null&&i[n].ips.length>0?i[n]:i[n===4?6:4]):o=i[n],o==null||o.ips.length===0)return r;o.offset==null||o.offset===s?o.offset=0:o.offset++;let c=o.offset%o.ips.length;return r=o.ips[c]??null,r==null?r:Date.now()-r.timestamp>r.ttl?(o.ips.splice(c,1),this.pick(e,t,n)):r}setRecords(e,t){let n=Date.now(),r={records:{4:null,6:null}};for(let e of t){e.timestamp=n,typeof e.ttl==`number`?e.ttl=Math.min(e.ttl,this.#e):e.ttl=this.#e;let t=r.records[e.family]??{ips:[]};t.ips.push(e),r.records[e.family]=t}this.#n.set(e.hostname,r)}getHandler(e,t){return new l(this,e,t)}},l=class extends i{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:t,handler:n,dispatch:r},i){super(n),this.#i=t,this.#r=n,this.#t={...i},this.#e=e,this.#n=r}onError(e){switch(e.code){case`ETIMEDOUT`:case`ECONNREFUSED`:if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(e,t)=>{if(e)return this.#r.onError(e);let n={...this.#t,origin:t};this.#n(n,this)});return}this.#r.onError(e);return;case`ENOTFOUND`:this.#e.deleteRecord(this.#i);default:this.#r.onError(e);break}}};t.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=`number`||e?.maxTTL<0))throw new a(`Invalid maxTTL. Must be a positive number`);if(e?.maxItems!=null&&(typeof e?.maxItems!=`number`||e?.maxItems<1))throw new a(`Invalid maxItems. Must be a positive number and greater than zero`);if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6)throw new a(`Invalid affinity. Must be either 4 or 6`);if(e?.dualStack!=null&&typeof e?.dualStack!=`boolean`)throw new a(`Invalid dualStack. Must be a boolean`);if(e?.lookup!=null&&typeof e?.lookup!=`function`)throw new a(`Invalid lookup. Must be a function`);if(e?.pick!=null&&typeof e?.pick!=`function`)throw new a(`Invalid pick. Must be a function`);let t=e?.dualStack??!0,r;r=t?e?.affinity??null:e?.affinity??4;let i=new c({maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:r,maxItems:e?.maxItems??1/0});return e=>function(t,r){let a=t.origin.constructor===URL?t.origin:new URL(t.origin);return n(a.hostname)===0?(i.runLookup(a,t,(n,o)=>{if(n)return r.onError(n);let s=null;s={...t,servername:a.hostname,origin:o,headers:{host:a.hostname,...t.headers}},e(s,i.getHandler({origin:a,dispatch:e,handler:r},t))}),!0):e(t,r)}}})),Bt=z(((e,t)=>{let{kConstruct:n}=je(),{kEnumerableProperty:r}=H(),{iteratorMixin:i,isValidHeaderName:a,isValidHeaderValue:o}=Ye(),{webidl:s}=Je(),c=V(`node:assert`),l=V(`node:util`),u=Symbol(`headers map`),d=Symbol(`headers map sorted`);function f(e){return e===10||e===13||e===9||e===32}function p(e){let t=0,n=e.length;for(;n>t&&f(e.charCodeAt(n-1));)--n;for(;n>t&&f(e.charCodeAt(t));)++t;return t===0&&n===e.length?e:e.substring(t,n)}function m(e,t){if(Array.isArray(t))for(let n=0;n>`,`record`]})}function h(e,t,n){if(n=p(n),!a(t))throw s.errors.invalidArgument({prefix:`Headers.append`,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:`Headers.append`,value:n,type:`header value`});if(y(e)===`immutable`)throw TypeError(`immutable`);return x(e).append(t,n,!1)}function g(e,t){return e[0]>1),t[s][0]<=l[0]?o=s+1:a=s;if(r!==s){for(i=r;i>o;)t[i]=t[--i];t[o]=l}}if(!n.next().done)throw TypeError(`Unreachable`);return t}else{let e=0;for(let{0:n,1:{value:r}}of this[u])t[e++]=[n,r],c(r!==null);return t.sort(g)}}},v=class e{#e;#t;constructor(e=void 0){s.util.markAsUncloneable(this),e!==n&&(this.#t=new _,this.#e=`none`,e!==void 0&&(e=s.converters.HeadersInit(e,`Headers contructor`,`init`),m(this,e)))}append(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.append`);let r=`Headers.append`;return t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),h(this,t,n)}delete(t){if(s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.delete`),t=s.converters.ByteString(t,`Headers.delete`,`name`),!a(t))throw s.errors.invalidArgument({prefix:`Headers.delete`,value:t,type:`header name`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.contains(t,!1)&&this.#t.delete(t,!1)}get(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.get`);let n=`Headers.get`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.get(t,!1)}has(t){s.brandCheck(this,e),s.argumentLengthCheck(arguments,1,`Headers.has`);let n=`Headers.has`;if(t=s.converters.ByteString(t,n,`name`),!a(t))throw s.errors.invalidArgument({prefix:n,value:t,type:`header name`});return this.#t.contains(t,!1)}set(t,n){s.brandCheck(this,e),s.argumentLengthCheck(arguments,2,`Headers.set`);let r=`Headers.set`;if(t=s.converters.ByteString(t,r,`name`),n=s.converters.ByteString(n,r,`value`),n=p(n),!a(t))throw s.errors.invalidArgument({prefix:r,value:t,type:`header name`});if(!o(n))throw s.errors.invalidArgument({prefix:r,value:n,type:`header value`});if(this.#e===`immutable`)throw TypeError(`immutable`);this.#t.set(t,n,!1)}getSetCookie(){s.brandCheck(this,e);let t=this.#t.cookies;return t?[...t]:[]}get[d](){if(this.#t[d])return this.#t[d];let e=[],t=this.#t.toSortedArray(),n=this.#t.cookies;if(n===null||n.length===1)return this.#t[d]=t;for(let r=0;r>`](e,t,n,r.bind(e)):s.converters[`record`](e,t,n)}throw s.errors.conversionFailed({prefix:`Headers constructor`,argument:`Argument 1`,types:[`sequence>`,`record`]})},t.exports={fill:m,compareHeaderName:g,Headers:v,HeadersList:_,getHeadersGuard:y,setHeadersGuard:b,setHeadersList:S,getHeadersList:x}})),Vt=z(((e,t)=>{let{Headers:n,HeadersList:r,fill:i,getHeadersGuard:a,setHeadersGuard:o,setHeadersList:s}=Bt(),{extractBody:c,cloneBody:l,mixinBody:u,hasFinalizationRegistry:d,streamRegistry:f,bodyUnusable:p}=et(),m=H(),h=V(`node:util`),{kEnumerableProperty:g}=m,{isValidReasonPhrase:_,isCancelled:v,isAborted:y,isBlobLike:b,serializeJavascriptValueToJSONString:x,isErrorLike:S,isomorphicEncode:C,environmentSettingsObject:w}=Ye(),{redirectStatusSet:T,nullBodyStatus:E}=Ge(),{kState:D,kHeaders:O}=Xe(),{webidl:k}=Je(),{FormData:A}=Qe(),{URLSerializer:j}=qe(),{kConstruct:M}=je(),N=V(`node:assert`),{types:P}=V(`node:util`),F=new TextEncoder(`utf-8`);var ee=class e{static error(){return se(ne(),`immutable`)}static json(e,t={}){k.argumentLengthCheck(arguments,1,`Response.json`),t!==null&&(t=k.converters.ResponseInit(t));let n=c(F.encode(x(e))),r=se(I({}),`response`);return oe(r,t,{body:n[0],type:`application/json`}),r}static redirect(e,t=302){k.argumentLengthCheck(arguments,1,`Response.redirect`),e=k.converters.USVString(e),t=k.converters[`unsigned short`](t);let n;try{n=new URL(e,w.settingsObject.baseUrl)}catch(t){throw TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!T.has(t))throw RangeError(`Invalid status code ${t}`);let r=se(I({}),`immutable`);r[D].status=t;let i=C(j(n));return r[D].headersList.append(`location`,i,!0),r}constructor(e=null,t={}){if(k.util.markAsUncloneable(this),e===M)return;e!==null&&(e=k.converters.BodyInit(e)),t=k.converters.ResponseInit(t),this[D]=I({}),this[O]=new n(M),o(this[O],`response`),s(this[O],this[D].headersList);let r=null;if(e!=null){let[t,n]=c(e);r={body:t,type:n}}oe(this,t,r)}get type(){return k.brandCheck(this,e),this[D].type}get url(){k.brandCheck(this,e);let t=this[D].urlList,n=t[t.length-1]??null;return n===null?``:j(n,!0)}get redirected(){return k.brandCheck(this,e),this[D].urlList.length>1}get status(){return k.brandCheck(this,e),this[D].status}get ok(){return k.brandCheck(this,e),this[D].status>=200&&this[D].status<=299}get statusText(){return k.brandCheck(this,e),this[D].statusText}get headers(){return k.brandCheck(this,e),this[O]}get body(){return k.brandCheck(this,e),this[D].body?this[D].body.stream:null}get bodyUsed(){return k.brandCheck(this,e),!!this[D].body&&m.isDisturbed(this[D].body.stream)}clone(){if(k.brandCheck(this,e),p(this))throw k.errors.exception({header:`Response.clone`,message:`Body has already been consumed.`});let t=te(this[D]);return d&&this[D].body?.stream&&f.register(this,new WeakRef(this[D].body.stream)),se(t,a(this[O]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};u(ee),Object.defineProperties(ee.prototype,{type:g,url:g,status:g,ok:g,redirected:g,statusText:g,headers:g,clone:g,body:g,bodyUsed:g,[Symbol.toStringTag]:{value:`Response`,configurable:!0}}),Object.defineProperties(ee,{json:g,redirect:g,error:g});function te(e){if(e.internalResponse)return ie(te(e.internalResponse),e.type);let t=I({...e,body:null});return e.body!=null&&(t.body=l(t,e.body)),t}function I(e){return{aborted:!1,rangeRequested:!1,timingAllowPassed:!1,requestIncludesCredentials:!1,type:`default`,status:200,timingInfo:null,cacheState:``,statusText:``,...e,headersList:e?.headersList?new r(e?.headersList):new r,urlList:e?.urlList?[...e.urlList]:[]}}function ne(e){return I({type:`error`,status:0,error:S(e)?e:Error(e&&String(e)),aborted:e&&e.name===`AbortError`})}function re(e){return e.type===`error`&&e.status===0}function L(e,t){return t={internalResponse:e,...t},new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,r){return N(!(n in t)),e[n]=r,!0}})}function ie(e,t){if(t===`basic`)return L(e,{type:`basic`,headersList:e.headersList});if(t===`cors`)return L(e,{type:`cors`,headersList:e.headersList});if(t===`opaque`)return L(e,{type:`opaque`,urlList:Object.freeze([]),status:0,statusText:``,body:null});if(t===`opaqueredirect`)return L(e,{type:`opaqueredirect`,status:0,statusText:``,headersList:[],body:null});N(!1)}function ae(e,t=null){return N(v(e)),y(e)?ne(Object.assign(new DOMException(`The operation was aborted.`,`AbortError`),{cause:t})):ne(Object.assign(new DOMException(`Request was cancelled.`),{cause:t}))}function oe(e,t,n){if(t.status!==null&&(t.status<200||t.status>599))throw RangeError(`init["status"] must be in the range of 200 to 599, inclusive.`);if(`statusText`in t&&t.statusText!=null&&!_(String(t.statusText)))throw TypeError(`Invalid statusText`);if(`status`in t&&t.status!=null&&(e[D].status=t.status),`statusText`in t&&t.statusText!=null&&(e[D].statusText=t.statusText),`headers`in t&&t.headers!=null&&i(e[O],t.headers),n){if(E.includes(e.status))throw k.errors.exception({header:`Response constructor`,message:`Invalid response status code ${e.status}`});e[D].body=n.body,n.type!=null&&!e[D].headersList.contains(`content-type`,!0)&&e[D].headersList.append(`content-type`,n.type,!0)}}function se(e,t){let r=new ee(M);return r[D]=e,r[O]=new n(M),s(r[O],e.headersList),o(r[O],t),d&&e.body?.stream&&f.register(r,new WeakRef(e.body.stream)),r}k.converters.ReadableStream=k.interfaceConverter(ReadableStream),k.converters.FormData=k.interfaceConverter(A),k.converters.URLSearchParams=k.interfaceConverter(URLSearchParams),k.converters.XMLHttpRequestBodyInit=function(e,t,n){return typeof e==`string`?k.converters.USVString(e,t,n):b(e)?k.converters.Blob(e,t,n,{strict:!1}):ArrayBuffer.isView(e)||P.isArrayBuffer(e)?k.converters.BufferSource(e,t,n):m.isFormDataLike(e)?k.converters.FormData(e,t,n,{strict:!1}):e instanceof URLSearchParams?k.converters.URLSearchParams(e,t,n):k.converters.DOMString(e,t,n)},k.converters.BodyInit=function(e,t,n){return e instanceof ReadableStream?k.converters.ReadableStream(e,t,n):e?.[Symbol.asyncIterator]?e:k.converters.XMLHttpRequestBodyInit(e,t,n)},k.converters.ResponseInit=k.dictionaryConverter([{key:`status`,converter:k.converters[`unsigned short`],defaultValue:()=>200},{key:`statusText`,converter:k.converters.ByteString,defaultValue:()=>``},{key:`headers`,converter:k.converters.HeadersInit}]),t.exports={isNetworkError:re,makeNetworkError:ne,makeResponse:I,makeAppropriateNetworkError:ae,filterResponse:ie,Response:ee,cloneResponse:te,fromInnerResponse:se}})),Ht=z(((e,t)=>{let{kConnected:n,kSize:r}=je();var i=class{constructor(e){this.value=e}deref(){return this.value[n]===0&&this.value[r]===0?void 0:this.value}},a=class{constructor(e){this.finalizer=e}register(e,t){e.on&&e.on(`disconnect`,()=>{e[n]===0&&e[r]===0&&this.finalizer(t)})}unregister(e){}};t.exports=function(){return process.env.NODE_V8_COVERAGE&&process.version.startsWith(`v18`)?(process._rawDebug(`Using compatibility WeakRef and FinalizationRegistry`),{WeakRef:i,FinalizationRegistry:a}):{WeakRef,FinalizationRegistry}}})),Ut=z(((e,t)=>{let{extractBody:n,mixinBody:r,cloneBody:i,bodyUnusable:a}=et(),{Headers:o,fill:s,HeadersList:c,setHeadersGuard:l,getHeadersGuard:u,setHeadersList:d,getHeadersList:f}=Bt(),{FinalizationRegistry:p}=Ht()(),m=H(),h=V(`node:util`),{isValidHTTPToken:g,sameOrigin:_,environmentSettingsObject:v}=Ye(),{forbiddenMethodsSet:y,corsSafeListedMethodsSet:b,referrerPolicy:x,requestRedirect:S,requestMode:C,requestCredentials:w,requestCache:T,requestDuplex:E}=Ge(),{kEnumerableProperty:D,normalizedMethodRecordsBase:O,normalizedMethodRecords:k}=m,{kHeaders:A,kSignal:j,kState:M,kDispatcher:N}=Xe(),{webidl:P}=Je(),{URLSerializer:F}=qe(),{kConstruct:ee}=je(),te=V(`node:assert`),{getMaxListeners:I,setMaxListeners:ne,getEventListeners:re,defaultMaxListeners:L}=V(`node:events`),ie=Symbol(`abortController`),ae=new p(({signal:e,abort:t})=>{e.removeEventListener(`abort`,t)}),oe=new WeakMap;function se(e){return t;function t(){let n=e.deref();if(n!==void 0){ae.unregister(t),this.removeEventListener(`abort`,t),n.abort(this.reason);let e=oe.get(n.signal);if(e!==void 0){if(e.size!==0){for(let t of e){let e=t.deref();e!==void 0&&e.abort(this.reason)}e.clear()}oe.delete(n.signal)}}}}let ce=!1;var R=class e{constructor(t,r={}){if(P.util.markAsUncloneable(this),t===ee)return;let i=`Request constructor`;P.argumentLengthCheck(arguments,1,i),t=P.converters.RequestInfo(t,i,`input`),r=P.converters.RequestInit(r,i,`init`);let u=null,p=null,h=v.settingsObject.baseUrl,x=null;if(typeof t==`string`){this[N]=r.dispatcher;let e;try{e=new URL(t,h)}catch(e){throw TypeError(`Failed to parse URL from `+t,{cause:e})}if(e.username||e.password)throw TypeError(`Request cannot be constructed from a URL that includes credentials: `+t);u=le({urlList:[e]}),p=`cors`}else this[N]=r.dispatcher||t[N],te(t instanceof e),u=t[M],x=t[j];let S=v.settingsObject.origin,C=`client`;if(u.window?.constructor?.name===`EnvironmentSettingsObject`&&_(u.window,S)&&(C=u.window),r.window!=null)throw TypeError(`'window' option '${C}' must be null`);`window`in r&&(C=`no-window`),u=le({method:u.method,headersList:u.headersList,unsafeRequest:u.unsafeRequest,client:v.settingsObject,window:C,priority:u.priority,origin:u.origin,referrer:u.referrer,referrerPolicy:u.referrerPolicy,mode:u.mode,credentials:u.credentials,cache:u.cache,redirect:u.redirect,integrity:u.integrity,keepalive:u.keepalive,reloadNavigation:u.reloadNavigation,historyNavigation:u.historyNavigation,urlList:[...u.urlList]});let w=Object.keys(r).length!==0;if(w&&(u.mode===`navigate`&&(u.mode=`same-origin`),u.reloadNavigation=!1,u.historyNavigation=!1,u.origin=`client`,u.referrer=`client`,u.referrerPolicy=``,u.url=u.urlList[u.urlList.length-1],u.urlList=[u.url]),r.referrer!==void 0){let e=r.referrer;if(e===``)u.referrer=`no-referrer`;else{let t;try{t=new URL(e,h)}catch(t){throw TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}t.protocol===`about:`&&t.hostname===`client`||S&&!_(t,v.settingsObject.baseUrl)?u.referrer=`client`:u.referrer=t}}r.referrerPolicy!==void 0&&(u.referrerPolicy=r.referrerPolicy);let T;if(T=r.mode===void 0?p:r.mode,T===`navigate`)throw P.errors.exception({header:`Request constructor`,message:`invalid request mode navigate.`});if(T!=null&&(u.mode=T),r.credentials!==void 0&&(u.credentials=r.credentials),r.cache!==void 0&&(u.cache=r.cache),u.cache===`only-if-cached`&&u.mode!==`same-origin`)throw TypeError(`'only-if-cached' can be set only with 'same-origin' mode`);if(r.redirect!==void 0&&(u.redirect=r.redirect),r.integrity!=null&&(u.integrity=String(r.integrity)),r.keepalive!==void 0&&(u.keepalive=!!r.keepalive),r.method!==void 0){let e=r.method,t=k[e];if(t!==void 0)u.method=t;else{if(!g(e))throw TypeError(`'${e}' is not a valid HTTP method.`);let t=e.toUpperCase();if(y.has(t))throw TypeError(`'${e}' HTTP method is unsupported.`);e=O[t]??e,u.method=e}!ce&&u.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`}),ce=!0)}r.signal!==void 0&&(x=r.signal),this[M]=u;let E=new AbortController;if(this[j]=E.signal,x!=null){if(!x||typeof x.aborted!=`boolean`||typeof x.addEventListener!=`function`)throw TypeError(`Failed to construct 'Request': member signal is not of type AbortSignal.`);if(x.aborted)E.abort(x.reason);else{this[ie]=E;let e=se(new WeakRef(E));try{(typeof I==`function`&&I(x)===L||re(x,`abort`).length>=L)&&ne(1500,x)}catch{}m.addAbortListener(x,e),ae.register(E,{signal:x,abort:e},e)}}if(this[A]=new o(ee),d(this[A],u.headersList),l(this[A],`request`),T===`no-cors`){if(!b.has(u.method))throw TypeError(`'${u.method} is unsupported in no-cors mode.`);l(this[A],`request-no-cors`)}if(w){let e=f(this[A]),t=r.headers===void 0?new c(e):r.headers;if(e.clear(),t instanceof c){for(let{name:n,value:r}of t.rawValues())e.append(n,r,!1);e.cookies=t.cookies}else s(this[A],t)}let D=t instanceof e?t[M].body:null;if((r.body!=null||D!=null)&&(u.method===`GET`||u.method===`HEAD`))throw TypeError(`Request with GET/HEAD method cannot have body.`);let F=null;if(r.body!=null){let[e,t]=n(r.body,u.keepalive);F=e,t&&!f(this[A]).contains(`content-type`,!0)&&this[A].append(`content-type`,t)}let oe=F??D;if(oe!=null&&oe.source==null){if(F!=null&&r.duplex==null)throw TypeError(`RequestInit: duplex option is required when sending a body.`);if(u.mode!==`same-origin`&&u.mode!==`cors`)throw TypeError(`If request is made from ReadableStream, mode should be "same-origin" or "cors"`);u.useCORSPreflightFlag=!0}let R=oe;if(F==null&&D!=null){if(a(t))throw TypeError(`Cannot construct a Request with a Request object that has already been used.`);let e=new TransformStream;D.stream.pipeThrough(e),R={source:D.source,length:D.length,stream:e.readable}}this[M].body=R}get method(){return P.brandCheck(this,e),this[M].method}get url(){return P.brandCheck(this,e),F(this[M].url)}get headers(){return P.brandCheck(this,e),this[A]}get destination(){return P.brandCheck(this,e),this[M].destination}get referrer(){return P.brandCheck(this,e),this[M].referrer===`no-referrer`?``:this[M].referrer===`client`?`about:client`:this[M].referrer.toString()}get referrerPolicy(){return P.brandCheck(this,e),this[M].referrerPolicy}get mode(){return P.brandCheck(this,e),this[M].mode}get credentials(){return this[M].credentials}get cache(){return P.brandCheck(this,e),this[M].cache}get redirect(){return P.brandCheck(this,e),this[M].redirect}get integrity(){return P.brandCheck(this,e),this[M].integrity}get keepalive(){return P.brandCheck(this,e),this[M].keepalive}get isReloadNavigation(){return P.brandCheck(this,e),this[M].reloadNavigation}get isHistoryNavigation(){return P.brandCheck(this,e),this[M].historyNavigation}get signal(){return P.brandCheck(this,e),this[j]}get body(){return P.brandCheck(this,e),this[M].body?this[M].body.stream:null}get bodyUsed(){return P.brandCheck(this,e),!!this[M].body&&m.isDisturbed(this[M].body.stream)}get duplex(){return P.brandCheck(this,e),`half`}clone(){if(P.brandCheck(this,e),a(this))throw TypeError(`unusable`);let t=ue(this[M]),n=new AbortController;if(this.signal.aborted)n.abort(this.signal.reason);else{let e=oe.get(this.signal);e===void 0&&(e=new Set,oe.set(this.signal,e));let t=new WeakRef(n);e.add(t),m.addAbortListener(n.signal,se(t))}return de(t,n.signal,u(this[A]))}[h.inspect.custom](e,t){t.depth===null&&(t.depth=2),t.colors??=!0;let n={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 ${h.formatWithOptions(t,n)}`}};r(R);function le(e){return{method:e.method??`GET`,localURLsOnly:e.localURLsOnly??!1,unsafeRequest:e.unsafeRequest??!1,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??``,window:e.window??`client`,keepalive:e.keepalive??!1,serviceWorkers:e.serviceWorkers??`all`,initiator:e.initiator??``,destination:e.destination??``,priority:e.priority??null,origin:e.origin??`client`,policyContainer:e.policyContainer??`client`,referrer:e.referrer??`client`,referrerPolicy:e.referrerPolicy??``,mode:e.mode??`no-cors`,useCORSPreflightFlag:e.useCORSPreflightFlag??!1,credentials:e.credentials??`same-origin`,useCredentials:e.useCredentials??!1,cache:e.cache??`default`,redirect:e.redirect??`follow`,integrity:e.integrity??``,cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??``,parserMetadata:e.parserMetadata??``,reloadNavigation:e.reloadNavigation??!1,historyNavigation:e.historyNavigation??!1,userActivation:e.userActivation??!1,taintedOrigin:e.taintedOrigin??!1,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??`basic`,preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??!1,done:e.done??!1,timingAllowFailed:e.timingAllowFailed??!1,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new c(e.headersList):new c}}function ue(e){let t=le({...e,body:null});return e.body!=null&&(t.body=i(t,e.body)),t}function de(e,t,n){let r=new R(ee);return r[M]=e,r[j]=t,r[A]=new o(ee),d(r[A],e.headersList),l(r[A],n),r}Object.defineProperties(R.prototype,{method:D,url:D,headers:D,redirect:D,clone:D,signal:D,duplex:D,destination:D,body:D,bodyUsed:D,isHistoryNavigation:D,isReloadNavigation:D,keepalive:D,integrity:D,cache:D,credentials:D,attribute:D,referrerPolicy:D,referrer:D,mode:D,[Symbol.toStringTag]:{value:`Request`,configurable:!0}}),P.converters.Request=P.interfaceConverter(R),P.converters.RequestInfo=function(e,t,n){return typeof e==`string`?P.converters.USVString(e,t,n):e instanceof R?P.converters.Request(e,t,n):P.converters.USVString(e,t,n)},P.converters.AbortSignal=P.interfaceConverter(AbortSignal),P.converters.RequestInit=P.dictionaryConverter([{key:`method`,converter:P.converters.ByteString},{key:`headers`,converter:P.converters.HeadersInit},{key:`body`,converter:P.nullableConverter(P.converters.BodyInit)},{key:`referrer`,converter:P.converters.USVString},{key:`referrerPolicy`,converter:P.converters.DOMString,allowedValues:x},{key:`mode`,converter:P.converters.DOMString,allowedValues:C},{key:`credentials`,converter:P.converters.DOMString,allowedValues:w},{key:`cache`,converter:P.converters.DOMString,allowedValues:T},{key:`redirect`,converter:P.converters.DOMString,allowedValues:S},{key:`integrity`,converter:P.converters.DOMString},{key:`keepalive`,converter:P.converters.boolean},{key:`signal`,converter:P.nullableConverter(e=>P.converters.AbortSignal(e,`RequestInit`,`signal`,{strict:!1}))},{key:`window`,converter:P.converters.any},{key:`duplex`,converter:P.converters.DOMString,allowedValues:E},{key:`dispatcher`,converter:P.converters.any}]),t.exports={Request:R,makeRequest:le,fromInnerRequest:de,cloneRequest:ue}})),Wt=z(((e,t)=>{let{makeNetworkError:n,makeAppropriateNetworkError:r,filterResponse:i,makeResponse:a,fromInnerResponse:o}=Vt(),{HeadersList:s}=Bt(),{Request:c,cloneRequest:l}=Ut(),u=V(`node:zlib`),{bytesMatch:d,makePolicyContainer:f,clonePolicyContainer:p,requestBadPort:m,TAOCheck:h,appendRequestOriginHeader:g,responseLocationURL:_,requestCurrentURL:v,setRequestReferrerPolicyOnRedirect:y,tryUpgradeRequestToAPotentiallyTrustworthyURL:b,createOpaqueTimingInfo:x,appendFetchMetadata:S,corsCheck:C,crossOriginResourcePolicyCheck:w,determineRequestsReferrer:T,coarsenedSharedCurrentTime:E,createDeferredPromise:D,isBlobLike:O,sameOrigin:k,isCancelled:A,isAborted:j,isErrorLike:M,fullyReadBody:N,readableStreamClose:P,isomorphicEncode:F,urlIsLocal:ee,urlIsHttpHttpsScheme:te,urlHasHttpsScheme:I,clampAndCoarsenConnectionTimingInfo:ne,simpleRangeHeaderValue:re,buildContentRange:L,createInflate:ie,extractMimeType:ae}=Ye(),{kState:oe,kDispatcher:se}=Xe(),ce=V(`node:assert`),{safelyExtractBody:R,extractBody:le}=et(),{redirectStatusSet:ue,nullBodyStatus:de,safeMethodsSet:fe,requestBodyHeader:pe,subresourceSet:z}=Ge(),me=V(`node:events`),{Readable:he,pipeline:B,finished:ge}=V(`node:stream`),{addAbortListener:_e,isErrored:ve,isReadable:ye,bufferToLowerCasedHeaderName:be}=H(),{dataURLProcessor:xe,serializeAMimeType:Se,minimizeSupportedMimeType:Ce}=qe(),{getGlobalDispatcher:we}=Pt(),{webidl:Te}=Je(),{STATUS_CODES:Ee}=V(`node:http`),De=[`GET`,`HEAD`],Oe=typeof __UNDICI_IS_NODE__<`u`||typeof esbuildDetection<`u`?`node`:`undici`,ke;var Ae=class extends me{constructor(e){super(),this.dispatcher=e,this.connection=null,this.dump=!1,this.state=`ongoing`}terminate(e){this.state===`ongoing`&&(this.state=`terminated`,this.connection?.destroy(e),this.emit(`terminated`,e))}abort(e){this.state===`ongoing`&&(this.state=`aborted`,e||=new DOMException(`The operation was aborted.`,`AbortError`),this.serializedAbortReason=e,this.connection?.destroy(e),this.emit(`terminated`,e))}};function je(e){Ne(e,`fetch`)}function Me(e,t=void 0){Te.argumentLengthCheck(arguments,1,`globalThis.fetch`);let n=D(),r;try{r=new c(e,t)}catch(e){return n.reject(e),n.promise}let i=r[oe];if(r.signal.aborted)return Fe(n,i,null,r.signal.reason),n.promise;i.client.globalObject?.constructor?.name===`ServiceWorkerGlobalScope`&&(i.serviceWorkers=`none`);let a=null,s=!1,l=null;return _e(r.signal,()=>{s=!0,ce(l!=null),l.abort(r.signal.reason);let e=a?.deref();Fe(n,i,e,r.signal.reason)}),l=Ie({request:i,processResponseEndOfBody:je,processResponse:e=>{if(!s){if(e.aborted){Fe(n,i,a,l.serializedAbortReason);return}if(e.type===`error`){n.reject(TypeError(`fetch failed`,{cause:e.error}));return}a=new WeakRef(o(e,`immutable`)),n.resolve(a.deref()),n=null}},dispatcher:r[se]}),n.promise}function Ne(e,t=`other`){if(e.type===`error`&&e.aborted||!e.urlList?.length)return;let n=e.urlList[0],r=e.timingInfo,i=e.cacheState;te(n)&&r!==null&&(e.timingAllowPassed||(r=x({startTime:r.startTime}),i=``),r.endTime=E(),e.timingInfo=r,Pe(r,n.href,t,globalThis,i))}let Pe=performance.markResourceTiming;function Fe(e,t,n,r){if(e&&e.reject(r),t.body!=null&&ye(t.body?.stream)&&t.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e}),n==null)return;let i=n[oe];i.body!=null&&ye(i.body?.stream)&&i.body.stream.cancel(r).catch(e=>{if(e.code!==`ERR_INVALID_STATE`)throw e})}function Ie({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:o=!1,dispatcher:s=we()}){ce(s);let c=null,l=!1;e.client!=null&&(c=e.client.globalObject,l=e.client.crossOriginIsolatedCapability);let u=x({startTime:E(l)}),d={controller:new Ae(s),request:e,timingInfo:u,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:r,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:c,crossOriginIsolatedCapability:l};return ce(!e.body||e.body.stream),e.window===`client`&&(e.window=e.client?.globalObject?.constructor?.name===`Window`?e.client:`no-window`),e.origin===`client`&&(e.origin=e.client.origin),e.policyContainer===`client`&&(e.client==null?e.policyContainer=f():e.policyContainer=p(e.client.policyContainer)),e.headersList.contains(`accept`,!0)||e.headersList.append(`accept`,`*/*`,!0),e.headersList.contains(`accept-language`,!0)||e.headersList.append(`accept-language`,`*`,!0),e.priority,z.has(e.destination),Le(d).catch(e=>{d.controller.terminate(e)}),d.controller}async function Le(e,t=!1){let r=e.request,a=null;if(r.localURLsOnly&&!ee(v(r))&&(a=n(`local URLs only`)),b(r),m(r)===`blocked`&&(a=n(`bad port`)),r.referrerPolicy===``&&(r.referrerPolicy=r.policyContainer.referrerPolicy),r.referrer!==`no-referrer`&&(r.referrer=T(r)),a===null&&(a=await(async()=>{let t=v(r);return k(t,r.url)&&r.responseTainting===`basic`||t.protocol===`data:`||r.mode===`navigate`||r.mode===`websocket`?(r.responseTainting=`basic`,await Re(e)):r.mode===`same-origin`?n(`request mode cannot be "same-origin"`):r.mode===`no-cors`?r.redirect===`follow`?(r.responseTainting=`opaque`,await Re(e)):n(`redirect mode cannot be "follow" for "no-cors" request`):te(v(r))?(r.responseTainting=`cors`,await Ve(e)):n(`URL scheme must be a HTTP(S) scheme`)})()),t)return a;a.status!==0&&!a.internalResponse&&(r.responseTainting,r.responseTainting===`basic`?a=i(a,`basic`):r.responseTainting===`cors`?a=i(a,`cors`):r.responseTainting===`opaque`?a=i(a,`opaque`):ce(!1));let o=a.status===0?a:a.internalResponse;if(o.urlList.length===0&&o.urlList.push(...r.urlList),r.timingAllowFailed||(a.timingAllowPassed=!0),a.type===`opaque`&&o.status===206&&o.rangeRequested&&!r.headers.contains(`range`,!0)&&(a=o=n()),a.status!==0&&(r.method===`HEAD`||r.method===`CONNECT`||de.includes(o.status))&&(o.body=null,e.controller.dump=!0),r.integrity){let t=t=>Be(e,n(t));if(r.responseTainting===`opaque`||a.body==null){t(a.error);return}await N(a.body,n=>{if(!d(n,r.integrity)){t(`integrity mismatch`);return}a.body=R(n)[0],Be(e,a)},t)}else Be(e,a)}function Re(e){if(A(e)&&e.request.redirectCount===0)return Promise.resolve(r(e));let{request:t}=e,{protocol:i}=v(t);switch(i){case`about:`:return Promise.resolve(n(`about scheme is not supported`));case`blob:`:{ke||=V(`node:buffer`).resolveObjectURL;let e=v(t);if(e.search.length!==0)return Promise.resolve(n(`NetworkError when attempting to fetch resource.`));let r=ke(e.toString());if(t.method!==`GET`||!O(r))return Promise.resolve(n(`invalid method`));let i=a(),o=r.size,s=F(`${o}`),c=r.type;if(t.headersList.contains(`range`,!0)){i.rangeRequested=!0;let e=re(t.headersList.get(`range`,!0),!0);if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let{rangeStartValue:a,rangeEndValue:s}=e;if(a===null)a=o-s,s=a+s-1;else{if(a>=o)return Promise.resolve(n(`Range start is greater than the blob's size.`));(s===null||s>=o)&&(s=o-1)}let l=r.slice(a,s,c);i.body=le(l)[0];let u=F(`${l.size}`),d=L(a,s,o);i.status=206,i.statusText=`Partial Content`,i.headersList.set(`content-length`,u,!0),i.headersList.set(`content-type`,c,!0),i.headersList.set(`content-range`,d,!0)}else{let e=le(r);i.statusText=`OK`,i.body=e[0],i.headersList.set(`content-length`,s,!0),i.headersList.set(`content-type`,c,!0)}return Promise.resolve(i)}case`data:`:{let e=xe(v(t));if(e===`failure`)return Promise.resolve(n(`failed to fetch the data URL`));let r=Se(e.mimeType);return Promise.resolve(a({statusText:`OK`,headersList:[[`content-type`,{name:`Content-Type`,value:r}]],body:R(e.body)[0]}))}case`file:`:return Promise.resolve(n(`not implemented... yet...`));case`http:`:case`https:`:return Ve(e).catch(e=>n(e));default:return Promise.resolve(n(`unknown scheme`))}}function ze(e,t){e.request.done=!0,e.processResponseDone!=null&&queueMicrotask(()=>e.processResponseDone(t))}function Be(e,t){let n=e.timingInfo,r=()=>{let r=Date.now();e.request.destination===`document`&&(e.controller.fullTimingInfo=n),e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!==`https:`)return;n.endTime=r;let i=t.cacheState,a=t.bodyInfo;t.timingAllowPassed||(n=x(n),i=``);let o=0;if(e.request.mode!==`navigator`||!t.hasCrossOriginRedirects){o=t.status;let e=ae(t.headersList);e!==`failure`&&(a.contentType=Ce(e))}e.request.initiatorType!=null&&Pe(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,o)};let i=()=>{e.request.done=!0,e.processResponseEndOfBody!=null&&queueMicrotask(()=>e.processResponseEndOfBody(t)),e.request.initiatorType!=null&&e.controller.reportTimingSteps()};queueMicrotask(()=>i())};e.processResponse!=null&&queueMicrotask(()=>{e.processResponse(t),e.processResponse=null});let i=t.type===`error`?t:t.internalResponse??t;i.body==null?r():ge(i.body.stream,()=>{r()})}async function Ve(e){let t=e.request,r=null,i=null,a=e.timingInfo;if(t.serviceWorkers,r===null){if(t.redirect===`follow`&&(t.serviceWorkers=`none`),i=r=await Ue(e),t.responseTainting===`cors`&&C(t,r)===`failure`)return n(`cors failure`);h(t,r)===`failure`&&(t.timingAllowFailed=!0)}return(t.responseTainting===`opaque`||r.type===`opaque`)&&w(t.origin,t.client,t.destination,i)===`blocked`?n(`blocked`):(ue.has(i.status)&&(t.redirect!==`manual`&&e.controller.connection.destroy(void 0,!1),t.redirect===`error`?r=n(`unexpected redirect`):t.redirect===`manual`?r=i:t.redirect===`follow`?r=await He(e,r):ce(!1)),r.timingInfo=a,r)}function He(e,t){let r=e.request,i=t.internalResponse?t.internalResponse:t,a;try{if(a=_(i,v(r).hash),a==null)return t}catch(e){return Promise.resolve(n(e))}if(!te(a))return Promise.resolve(n(`URL scheme must be a HTTP(S) scheme`));if(r.redirectCount===20)return Promise.resolve(n(`redirect count exceeded`));if(r.redirectCount+=1,r.mode===`cors`&&(a.username||a.password)&&!k(r,a))return Promise.resolve(n(`cross origin not allowed for request mode "cors"`));if(r.responseTainting===`cors`&&(a.username||a.password))return Promise.resolve(n(`URL cannot contain credentials for request mode "cors"`));if(i.status!==303&&r.body!=null&&r.body.source==null)return Promise.resolve(n());if([301,302].includes(i.status)&&r.method===`POST`||i.status===303&&!De.includes(r.method)){r.method=`GET`,r.body=null;for(let e of pe)r.headersList.delete(e)}k(v(r),a)||(r.headersList.delete(`authorization`,!0),r.headersList.delete(`proxy-authorization`,!0),r.headersList.delete(`cookie`,!0),r.headersList.delete(`host`,!0)),r.body!=null&&(ce(r.body.source!=null),r.body=R(r.body.source)[0]);let o=e.timingInfo;return o.redirectEndTime=o.postRedirectStartTime=E(e.crossOriginIsolatedCapability),o.redirectStartTime===0&&(o.redirectStartTime=o.startTime),r.urlList.push(a),y(r,i),Le(e,!0)}async function Ue(e,t=!1,i=!1){let a=e.request,o=null,s=null,c=null;a.window===`no-window`&&a.redirect===`error`?(o=e,s=a):(s=l(a),o={...e},o.request=s);let u=a.credentials===`include`||a.credentials===`same-origin`&&a.responseTainting===`basic`,d=s.body?s.body.length:null,f=null;if(s.body==null&&[`POST`,`PUT`].includes(s.method)&&(f=`0`),d!=null&&(f=F(`${d}`)),f!=null&&s.headersList.append(`content-length`,f,!0),d!=null&&s.keepalive,s.referrer instanceof URL&&s.headersList.append(`referer`,F(s.referrer.href),!0),g(s),S(s),s.headersList.contains(`user-agent`,!0)||s.headersList.append(`user-agent`,Oe),s.cache==="default"&&(s.headersList.contains(`if-modified-since`,!0)||s.headersList.contains(`if-none-match`,!0)||s.headersList.contains(`if-unmodified-since`,!0)||s.headersList.contains(`if-match`,!0)||s.headersList.contains(`if-range`,!0))&&(s.cache=`no-store`),s.cache===`no-cache`&&!s.preventNoCacheCacheControlHeaderModification&&!s.headersList.contains(`cache-control`,!0)&&s.headersList.append(`cache-control`,`max-age=0`,!0),(s.cache===`no-store`||s.cache===`reload`)&&(s.headersList.contains(`pragma`,!0)||s.headersList.append(`pragma`,`no-cache`,!0),s.headersList.contains(`cache-control`,!0)||s.headersList.append(`cache-control`,`no-cache`,!0)),s.headersList.contains(`range`,!0)&&s.headersList.append(`accept-encoding`,`identity`,!0),s.headersList.contains(`accept-encoding`,!0)||(I(v(s))?s.headersList.append(`accept-encoding`,`br, gzip, deflate`,!0):s.headersList.append(`accept-encoding`,`gzip, deflate`,!0)),s.headersList.delete(`host`,!0),s.cache=`no-store`,s.cache!==`no-store`&&s.cache,c==null){if(s.cache===`only-if-cached`)return n(`only if cached`);let e=await We(o,u,i);!fe.has(s.method)&&e.status>=200&&e.status,c??=e}if(c.urlList=[...s.urlList],s.headersList.contains(`range`,!0)&&(c.rangeRequested=!0),c.requestIncludesCredentials=u,c.status===407)return a.window===`no-window`?n():A(e)?r(e):n(`proxy authentication required`);if(c.status===421&&!i&&(a.body==null||a.body.source!=null)){if(A(e))return r(e);e.controller.connection.destroy(),c=await Ue(e,t,!0)}return c}async function We(e,t=!1,i=!1){ce(!e.controller.connection||e.controller.connection.destroyed),e.controller.connection={abort:null,destroyed:!1,destroy(e,t=!0){this.destroyed||(this.destroyed=!0,t&&this.abort?.(e??new DOMException(`The operation was aborted.`,`AbortError`)))}};let o=e.request,c=null,l=e.timingInfo;o.cache=`no-store`,o.mode;let d=null;if(o.body==null&&e.processRequestEndOfBody)queueMicrotask(()=>e.processRequestEndOfBody());else if(o.body!=null){let t=async function*(t){A(e)||(yield t,e.processRequestBodyChunkLength?.(t.byteLength))},n=()=>{A(e)||e.processRequestEndOfBody&&e.processRequestEndOfBody()},r=t=>{A(e)||(t.name===`AbortError`?e.controller.abort():e.controller.terminate(t))};d=(async function*(){try{for await(let e of o.body.stream)yield*t(e);n()}catch(e){r(e)}})()}try{let{body:t,status:n,statusText:r,headersList:i,socket:o}=await g({body:d});if(o)c=a({status:n,statusText:r,headersList:i,socket:o});else{let o=t[Symbol.asyncIterator]();e.controller.next=()=>o.next(),c=a({status:n,statusText:r,headersList:i})}}catch(t){return t.name===`AbortError`?(e.controller.connection.destroy(),r(e,t)):n(t)}let f=async()=>{await e.controller.resume()},p=t=>{A(e)||e.controller.abort(t)},m=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await f(e)},async cancel(e){await p(e)},type:`bytes`});c.body={stream:m,source:null,length:null},e.controller.onAborted=h,e.controller.on(`terminated`,h),e.controller.resume=async()=>{for(;;){let t,n;try{let{done:n,value:r}=await e.controller.next();if(j(e))break;t=n?void 0:r}catch(r){e.controller.ended&&!l.encodedBodySize?t=void 0:(t=r,n=!0)}if(t===void 0){P(e.controller.controller),ze(e,c);return}if(l.decodedBodySize+=t?.byteLength??0,n){e.controller.terminate(t);return}let r=new Uint8Array(t);if(r.byteLength&&e.controller.controller.enqueue(r),ve(m)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0)return}};function h(t){j(e)?(c.aborted=!0,ye(m)&&e.controller.controller.error(e.controller.serializedAbortReason)):ye(m)&&e.controller.controller.error(TypeError(`terminated`,{cause:M(t)?t:void 0})),e.controller.connection.destroy()}return c;function g({body:t}){let n=v(o),r=e.controller.dispatcher;return new Promise((i,a)=>r.dispatch({path:n.pathname+n.search,origin:n.origin,method:o.method,body:r.isMockActive?o.body&&(o.body.source||o.body.stream):t,headers:o.headersList.entries,maxRedirections:0,upgrade:o.mode===`websocket`?`websocket`:void 0},{body:null,abort:null,onConnect(t){let{connection:n}=e.controller;l.finalConnectionTimingInfo=ne(void 0,l.postRedirectStartTime,e.crossOriginIsolatedCapability),n.destroyed?t(new DOMException(`The operation was aborted.`,`AbortError`)):(e.controller.on(`terminated`,t),this.abort=n.abort=t),l.finalNetworkRequestStartTime=E(e.crossOriginIsolatedCapability)},onResponseStarted(){l.finalNetworkResponseStartTime=E(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,r){if(e<200)return;let c=``,l=new s;for(let e=0;e5)return a(Error(`too many content-encodings in response: ${t.length}, maximum allowed is 5`)),!0;for(let e=t.length-1;e>=0;--e){let n=t[e].trim();if(n===`x-gzip`||n===`gzip`)d.push(u.createGunzip({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`deflate`)d.push(ie({flush:u.constants.Z_SYNC_FLUSH,finishFlush:u.constants.Z_SYNC_FLUSH}));else if(n===`br`)d.push(u.createBrotliDecompress({flush:u.constants.BROTLI_OPERATION_FLUSH,finishFlush:u.constants.BROTLI_OPERATION_FLUSH}));else{d.length=0;break}}}let p=this.onError.bind(this);return i({status:e,statusText:r,headersList:l,body:d.length?B(this.body,...d,e=>{e&&this.onError(e)}).on(`error`,p):this.body.on(`error`,p)}),!0},onData(t){if(e.controller.dump)return;let n=t;return l.encodedBodySize+=n.byteLength,this.body.push(n)},onComplete(){this.abort&&e.controller.off(`terminated`,this.abort),e.controller.onAborted&&e.controller.off(`terminated`,e.controller.onAborted),e.controller.ended=!0,this.body.push(null)},onError(t){this.abort&&e.controller.off(`terminated`,this.abort),this.body?.destroy(t),e.controller.terminate(t),a(t)},onUpgrade(e,t,n){if(e!==101)return;let r=new s;for(let e=0;e{t.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`)}})),Kt=z(((e,t)=>{let{webidl:n}=Je(),r=Symbol(`ProgressEvent state`);var i=class e extends Event{constructor(e,t={}){e=n.converters.DOMString(e,`ProgressEvent constructor`,`type`),t=n.converters.ProgressEventInit(t??{}),super(e,t),this[r]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){return n.brandCheck(this,e),this[r].lengthComputable}get loaded(){return n.brandCheck(this,e),this[r].loaded}get total(){return n.brandCheck(this,e),this[r].total}};n.converters.ProgressEventInit=n.dictionaryConverter([{key:`lengthComputable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`loaded`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`total`,converter:n.converters[`unsigned long long`],defaultValue:()=>0},{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}]),t.exports={ProgressEvent:i}})),qt=z(((e,t)=>{function n(e){if(!e)return`failure`;switch(e.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`}}t.exports={getEncoding:n}})),Jt=z(((e,t)=>{let{kState:n,kError:r,kResult:i,kAborted:a,kLastProgressEventFired:o}=Gt(),{ProgressEvent:s}=Kt(),{getEncoding:c}=qt(),{serializeAMimeType:l,parseMIMEType:u}=qe(),{types:d}=V(`node:util`),{StringDecoder:f}=V(`string_decoder`),{btoa:p}=V(`node:buffer`),m={enumerable:!0,writable:!1,configurable:!1};function h(e,t,s,c){if(e[n]===`loading`)throw new DOMException(`Invalid state`,`InvalidStateError`);e[n]=`loading`,e[i]=null,e[r]=null;let l=t.stream().getReader(),u=[],f=l.read(),p=!0;(async()=>{for(;!e[a];)try{let{done:m,value:h}=await f;if(p&&!e[a]&&queueMicrotask(()=>{g(`loadstart`,e)}),p=!1,!m&&d.isUint8Array(h))u.push(h),(e[o]===void 0||Date.now()-e[o]>=50)&&!e[a]&&(e[o]=Date.now(),queueMicrotask(()=>{g(`progress`,e)})),f=l.read();else if(m){queueMicrotask(()=>{e[n]=`done`;try{let n=_(u,s,t.type,c);if(e[a])return;e[i]=n,g(`load`,e)}catch(t){e[r]=t,g(`error`,e)}e[n]!==`loading`&&g(`loadend`,e)});break}}catch(t){if(e[a])return;queueMicrotask(()=>{e[n]=`done`,e[r]=t,g(`error`,e),e[n]!==`loading`&&g(`loadend`,e)});break}})()}function g(e,t){let n=new s(e,{bubbles:!1,cancelable:!1});t.dispatchEvent(n)}function _(e,t,n,r){switch(t){case`DataURL`:{let t=`data:`,r=u(n||`application/octet-stream`);r!==`failure`&&(t+=l(r)),t+=`;base64,`;let i=new f(`latin1`);for(let n of e)t+=p(i.write(n));return t+=p(i.end()),t}case`Text`:{let t=`failure`;if(r&&(t=c(r)),t===`failure`&&n){let e=u(n);e!==`failure`&&(t=c(e.parameters.get(`charset`)))}return t===`failure`&&(t=`UTF-8`),v(e,t)}case`ArrayBuffer`:return b(e).buffer;case`BinaryString`:{let t=``,n=new f(`latin1`);for(let r of e)t+=n.write(r);return t+=n.end(),t}}}function v(e,t){let n=b(e),r=y(n),i=0;r!==null&&(t=r,i=r===`UTF-8`?3:2);let a=n.slice(i);return new TextDecoder(t).decode(a)}function y(e){let[t,n,r]=e;return t===239&&n===187&&r===191?`UTF-8`:t===254&&n===255?`UTF-16BE`:t===255&&n===254?`UTF-16LE`:null}function b(e){let t=e.reduce((e,t)=>e+t.byteLength,0),n=0;return e.reduce((e,t)=>(e.set(t,n),n+=t.byteLength,e),new Uint8Array(t))}t.exports={staticPropertyDescriptors:m,readOperation:h,fireAProgressEvent:g}})),Yt=z(((e,t)=>{let{staticPropertyDescriptors:n,readOperation:r,fireAProgressEvent:i}=Jt(),{kState:a,kError:o,kResult:s,kEvents:c,kAborted:l}=Gt(),{webidl:u}=Je(),{kEnumerableProperty:d}=H();var f=class e extends EventTarget{constructor(){super(),this[a]=`empty`,this[s]=null,this[o]=null,this[c]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsArrayBuffer`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`ArrayBuffer`)}readAsBinaryString(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsBinaryString`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`BinaryString`)}readAsText(t,n=void 0){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsText`),t=u.converters.Blob(t,{strict:!1}),n!==void 0&&(n=u.converters.DOMString(n,`FileReader.readAsText`,`encoding`)),r(this,t,`Text`,n)}readAsDataURL(t){u.brandCheck(this,e),u.argumentLengthCheck(arguments,1,`FileReader.readAsDataURL`),t=u.converters.Blob(t,{strict:!1}),r(this,t,`DataURL`)}abort(){if(this[a]===`empty`||this[a]===`done`){this[s]=null;return}this[a]===`loading`&&(this[a]=`done`,this[s]=null),this[l]=!0,i(`abort`,this),this[a]!==`loading`&&i(`loadend`,this)}get readyState(){switch(u.brandCheck(this,e),this[a]){case`empty`:return this.EMPTY;case`loading`:return this.LOADING;case`done`:return this.DONE}}get result(){return u.brandCheck(this,e),this[s]}get error(){return u.brandCheck(this,e),this[o]}get onloadend(){return u.brandCheck(this,e),this[c].loadend}set onloadend(t){u.brandCheck(this,e),this[c].loadend&&this.removeEventListener(`loadend`,this[c].loadend),typeof t==`function`?(this[c].loadend=t,this.addEventListener(`loadend`,t)):this[c].loadend=null}get onerror(){return u.brandCheck(this,e),this[c].error}set onerror(t){u.brandCheck(this,e),this[c].error&&this.removeEventListener(`error`,this[c].error),typeof t==`function`?(this[c].error=t,this.addEventListener(`error`,t)):this[c].error=null}get onloadstart(){return u.brandCheck(this,e),this[c].loadstart}set onloadstart(t){u.brandCheck(this,e),this[c].loadstart&&this.removeEventListener(`loadstart`,this[c].loadstart),typeof t==`function`?(this[c].loadstart=t,this.addEventListener(`loadstart`,t)):this[c].loadstart=null}get onprogress(){return u.brandCheck(this,e),this[c].progress}set onprogress(t){u.brandCheck(this,e),this[c].progress&&this.removeEventListener(`progress`,this[c].progress),typeof t==`function`?(this[c].progress=t,this.addEventListener(`progress`,t)):this[c].progress=null}get onload(){return u.brandCheck(this,e),this[c].load}set onload(t){u.brandCheck(this,e),this[c].load&&this.removeEventListener(`load`,this[c].load),typeof t==`function`?(this[c].load=t,this.addEventListener(`load`,t)):this[c].load=null}get onabort(){return u.brandCheck(this,e),this[c].abort}set onabort(t){u.brandCheck(this,e),this[c].abort&&this.removeEventListener(`abort`,this[c].abort),typeof t==`function`?(this[c].abort=t,this.addEventListener(`abort`,t)):this[c].abort=null}};f.EMPTY=f.prototype.EMPTY=0,f.LOADING=f.prototype.LOADING=1,f.DONE=f.prototype.DONE=2,Object.defineProperties(f.prototype,{EMPTY:n,LOADING:n,DONE:n,readAsArrayBuffer:d,readAsBinaryString:d,readAsText:d,readAsDataURL:d,abort:d,readyState:d,result:d,error:d,onloadstart:d,onprogress:d,onload:d,onabort:d,onerror:d,onloadend:d,[Symbol.toStringTag]:{value:`FileReader`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(f,{EMPTY:n,LOADING:n,DONE:n}),t.exports={FileReader:f}})),Xt=z(((e,t)=>{t.exports={kConstruct:je().kConstruct}})),Zt=z(((e,t)=>{let n=V(`node:assert`),{URLSerializer:r}=qe(),{isValidHeaderName:i}=Ye();function a(e,t,n=!1){return r(e,n)===r(t,n)}function o(e){n(e!==null);let t=[];for(let n of e.split(`,`))n=n.trim(),i(n)&&t.push(n);return t}t.exports={urlEquals:a,getFieldValues:o}})),Qt=z(((e,t)=>{let{kConstruct:n}=Xt(),{urlEquals:r,getFieldValues:i}=Zt(),{kEnumerableProperty:a,isDisturbed:o}=H(),{webidl:s}=Je(),{Response:c,cloneResponse:l,fromInnerResponse:u}=Vt(),{Request:d,fromInnerRequest:f}=Ut(),{kState:p}=Xe(),{fetching:m}=Wt(),{urlIsHttpHttpsScheme:h,createDeferredPromise:g,readAllBytes:_}=Ye(),v=V(`node:assert`);var y=class e{#e;constructor(){arguments[0]!==n&&s.illegalConstructor(),s.util.markAsUncloneable(this),this.#e=arguments[1]}async match(t,n={}){s.brandCheck(this,e);let r=`Cache.match`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=this.#i(t,n,1);if(i.length!==0)return i[0]}async matchAll(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.matchAll`;return t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`),this.#i(t,n)}async add(t){s.brandCheck(this,e);let n=`Cache.add`;s.argumentLengthCheck(arguments,1,n),t=s.converters.RequestInfo(t,n,`request`);let r=[t];return await this.addAll(r)}async addAll(t){s.brandCheck(this,e);let n=`Cache.addAll`;s.argumentLengthCheck(arguments,1,n);let r=[],a=[];for(let e of t){if(e===void 0)throw s.errors.conversionFailed({prefix:n,argument:`Argument 1`,types:[`undefined is not allowed`]});if(e=s.converters.RequestInfo(e),typeof e==`string`)continue;let t=e[p];if(!h(t.url)||t.method!==`GET`)throw s.errors.exception({header:n,message:`Expected http/s scheme when method is not GET.`})}let o=[];for(let e of t){let t=new d(e)[p];if(!h(t.url))throw s.errors.exception({header:n,message:`Expected http/s scheme.`});t.initiator=`fetch`,t.destination=`subresource`,a.push(t);let c=g();o.push(m({request:t,processResponse(e){if(e.type===`error`||e.status===206||e.status<200||e.status>299)c.reject(s.errors.exception({header:`Cache.addAll`,message:`Received an invalid status code or the request failed.`}));else if(e.headersList.contains(`vary`)){let t=i(e.headersList.get(`vary`));for(let e of t)if(e===`*`){c.reject(s.errors.exception({header:`Cache.addAll`,message:`invalid vary field value`}));for(let e of o)e.abort();return}}},processResponseEndOfBody(e){if(e.aborted){c.reject(new DOMException(`aborted`,`AbortError`));return}c.resolve(e)}})),r.push(c.promise)}let c=await Promise.all(r),l=[],u=0;for(let e of c){let t={type:`put`,request:a[u],response:e};l.push(t),u++}let f=g(),_=null;try{this.#t(l)}catch(e){_=e}return queueMicrotask(()=>{_===null?f.resolve(void 0):f.reject(_)}),f.promise}async put(t,n){s.brandCheck(this,e);let r=`Cache.put`;s.argumentLengthCheck(arguments,2,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.Response(n,r,`response`);let a=null;if(a=t instanceof d?t[p]:new d(t)[p],!h(a.url)||a.method!==`GET`)throw s.errors.exception({header:r,message:`Expected an http/s scheme when method is not GET`});let c=n[p];if(c.status===206)throw s.errors.exception({header:r,message:`Got 206 status`});if(c.headersList.contains(`vary`)){let e=i(c.headersList.get(`vary`));for(let t of e)if(t===`*`)throw s.errors.exception({header:r,message:`Got * vary field value`})}if(c.body&&(o(c.body.stream)||c.body.stream.locked))throw s.errors.exception({header:r,message:`Response body is locked or disturbed`});let u=l(c),f=g();c.body==null?f.resolve(void 0):_(c.body.stream.getReader()).then(f.resolve,f.reject);let m=[],v={type:`put`,request:a,response:u};m.push(v);let y=await f.promise;u.body!=null&&(u.body.source=y);let b=g(),x=null;try{this.#t(m)}catch(e){x=e}return queueMicrotask(()=>{x===null?b.resolve():b.reject(x)}),b.promise}async delete(t,n={}){s.brandCheck(this,e);let r=`Cache.delete`;s.argumentLengthCheck(arguments,1,r),t=s.converters.RequestInfo(t,r,`request`),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return!1}else v(typeof t==`string`),i=new d(t)[p];let a=[],o={type:`delete`,request:i,options:n};a.push(o);let c=g(),l=null,u;try{u=this.#t(a)}catch(e){l=e}return queueMicrotask(()=>{l===null?c.resolve(!!u?.length):c.reject(l)}),c.promise}async keys(t=void 0,n={}){s.brandCheck(this,e);let r=`Cache.keys`;t!==void 0&&(t=s.converters.RequestInfo(t,r,`request`)),n=s.converters.CacheQueryOptions(n,r,`options`);let i=null;if(t!==void 0)if(t instanceof d){if(i=t[p],i.method!==`GET`&&!n.ignoreMethod)return[]}else typeof t==`string`&&(i=new d(t)[p]);let a=g(),o=[];if(t===void 0)for(let e of this.#e)o.push(e[0]);else{let e=this.#n(i,n);for(let t of e)o.push(t[0])}return queueMicrotask(()=>{let e=[];for(let t of o){let n=f(t,new AbortController().signal,`immutable`);e.push(n)}a.resolve(Object.freeze(e))}),a.promise}#t(e){let t=this.#e,n=[...t],r=[],i=[];try{for(let n of e){if(n.type!==`delete`&&n.type!==`put`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`operation type does not match "delete" or "put"`});if(n.type===`delete`&&n.response!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`delete operation should not have an associated response`});if(this.#n(n.request,n.options,r).length)throw new DOMException(`???`,`InvalidStateError`);let e;if(n.type===`delete`){if(e=this.#n(n.request,n.options),e.length===0)return[];for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}}else if(n.type===`put`){if(n.response==null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`put operation should have an associated response`});let i=n.request;if(!h(i.url))throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`expected http or https scheme`});if(i.method!==`GET`)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`not get method`});if(n.options!=null)throw s.errors.exception({header:`Cache.#batchCacheOperations`,message:`options must not be defined`});e=this.#n(n.request);for(let n of e){let e=t.indexOf(n);v(e!==-1),t.splice(e,1)}t.push([n.request,n.response]),r.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){throw this.#e.length=0,this.#e=n,e}}#n(e,t,n){let r=[],i=n??this.#e;for(let n of i){let[i,a]=n;this.#r(e,i,a,t)&&r.push(n)}return r}#r(e,t,n=null,a){let o=new URL(e.url),s=new URL(t.url);if(a?.ignoreSearch&&(s.search=``,o.search=``),!r(o,s,!0))return!1;if(n==null||a?.ignoreVary||!n.headersList.contains(`vary`))return!0;let c=i(n.headersList.get(`vary`));for(let n of c)if(n===`*`||t.headersList.get(n)!==e.headersList.get(n))return!1;return!0}#i(e,t,n=1/0){let r=null;if(e!==void 0)if(e instanceof d){if(r=e[p],r.method!==`GET`&&!t.ignoreMethod)return[]}else typeof e==`string`&&(r=new d(e)[p]);let i=[];if(e===void 0)for(let e of this.#e)i.push(e[1]);else{let e=this.#n(r,t);for(let t of e)i.push(t[1])}let a=[];for(let e of i){let t=u(e,`immutable`);if(a.push(t.clone()),a.length>=n)break}return Object.freeze(a)}};Object.defineProperties(y.prototype,{[Symbol.toStringTag]:{value:`Cache`,configurable:!0},match:a,matchAll:a,add:a,addAll:a,put:a,delete:a,keys:a});let b=[{key:`ignoreSearch`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreMethod`,converter:s.converters.boolean,defaultValue:()=>!1},{key:`ignoreVary`,converter:s.converters.boolean,defaultValue:()=>!1}];s.converters.CacheQueryOptions=s.dictionaryConverter(b),s.converters.MultiCacheQueryOptions=s.dictionaryConverter([...b,{key:`cacheName`,converter:s.converters.DOMString}]),s.converters.Response=s.interfaceConverter(c),s.converters[`sequence`]=s.sequenceConverter(s.converters.RequestInfo),t.exports={Cache:y}})),$t=z(((e,t)=>{let{kConstruct:n}=Xt(),{Cache:r}=Qt(),{webidl:i}=Je(),{kEnumerableProperty:a}=H();var o=class e{#e=new Map;constructor(){arguments[0]!==n&&i.illegalConstructor(),i.util.markAsUncloneable(this)}async match(t,a={}){if(i.brandCheck(this,e),i.argumentLengthCheck(arguments,1,`CacheStorage.match`),t=i.converters.RequestInfo(t),a=i.converters.MultiCacheQueryOptions(a),a.cacheName!=null){if(this.#e.has(a.cacheName))return await new r(n,this.#e.get(a.cacheName)).match(t,a)}else for(let e of this.#e.values()){let i=await new r(n,e).match(t,a);if(i!==void 0)return i}}async has(t){i.brandCheck(this,e);let n=`CacheStorage.has`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.has(t)}async open(t){i.brandCheck(this,e);let a=`CacheStorage.open`;if(i.argumentLengthCheck(arguments,1,a),t=i.converters.DOMString(t,a,`cacheName`),this.#e.has(t))return new r(n,this.#e.get(t));let o=[];return this.#e.set(t,o),new r(n,o)}async delete(t){i.brandCheck(this,e);let n=`CacheStorage.delete`;return i.argumentLengthCheck(arguments,1,n),t=i.converters.DOMString(t,n,`cacheName`),this.#e.delete(t)}async keys(){return i.brandCheck(this,e),[...this.#e.keys()]}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`CacheStorage`,configurable:!0},match:a,has:a,open:a,delete:a,keys:a}),t.exports={CacheStorage:o}})),en=z(((e,t)=>{t.exports={maxAttributeValueSize:1024,maxNameValuePairSize:4096}})),tn=z(((e,t)=>{function n(e){for(let t=0;t=0&&n<=8||n>=10&&n<=31||n===127)return!0}return!1}function r(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125)throw Error(`Invalid cookie name`)}}function i(e){let t=e.length,n=0;if(e[0]===`"`){if(t===1||e[t-1]!==`"`)throw Error(`Invalid cookie value`);--t,++n}for(;n126||t===34||t===44||t===59||t===92)throw Error(`Invalid cookie value`)}}function a(e){for(let t=0;tt.toString().padStart(2,`0`));function u(e){return typeof e==`number`&&(e=new Date(e)),`${s[e.getUTCDay()]}, ${l[e.getUTCDate()]} ${c[e.getUTCMonth()]} ${e.getUTCFullYear()} ${l[e.getUTCHours()]}:${l[e.getUTCMinutes()]}:${l[e.getUTCSeconds()]} GMT`}function d(e){if(e<0)throw Error(`Invalid cookie max-age`)}function f(e){if(e.name.length===0)return null;r(e.name),i(e.value);let t=[`${e.name}=${e.value}`];e.name.startsWith(`__Secure-`)&&(e.secure=!0),e.name.startsWith(`__Host-`)&&(e.secure=!0,e.domain=null,e.path=`/`),e.secure&&t.push(`Secure`),e.httpOnly&&t.push(`HttpOnly`),typeof e.maxAge==`number`&&(d(e.maxAge),t.push(`Max-Age=${e.maxAge}`)),e.domain&&(o(e.domain),t.push(`Domain=${e.domain}`)),e.path&&(a(e.path),t.push(`Path=${e.path}`)),e.expires&&e.expires.toString()!==`Invalid Date`&&t.push(`Expires=${u(e.expires)}`),e.sameSite&&t.push(`SameSite=${e.sameSite}`);for(let n of e.unparsed){if(!n.includes(`=`))throw Error(`Invalid unparsed`);let[e,...r]=n.split(`=`);t.push(`${e.trim()}=${r.join(`=`)}`)}return t.join(`; `)}t.exports={isCTLExcludingHtab:n,validateCookieName:r,validateCookiePath:a,validateCookieValue:i,toIMFDate:u,stringify:f}})),nn=z(((e,t)=>{let{maxNameValuePairSize:n,maxAttributeValueSize:r}=en(),{isCTLExcludingHtab:i}=tn(),{collectASequenceOfCodePointsFast:a}=qe(),o=V(`node:assert`);function s(e){if(i(e))return null;let t=``,r=``,o=``,s=``;if(e.includes(`;`)){let n={position:0};t=a(`;`,e,n),r=e.slice(n.position)}else t=e;if(!t.includes(`=`))s=t;else{let e={position:0};o=a(`=`,t,e),s=t.slice(e.position+1)}return o=o.trim(),s=s.trim(),o.length+s.length>n?null:{name:o,value:s,...c(r)}}function c(e,t={}){if(e.length===0)return t;o(e[0]===`;`),e=e.slice(1);let n=``;e.includes(`;`)?(n=a(`;`,e,{position:0}),e=e.slice(n.length)):(n=e,e=``);let i=``,s=``;if(n.includes(`=`)){let e={position:0};i=a(`=`,n,e),s=n.slice(e.position+1)}else i=n;if(i=i.trim(),s=s.trim(),s.length>r)return c(e,t);let l=i.toLowerCase();if(l===`expires`)t.expires=new Date(s);else if(l===`max-age`){let n=s.charCodeAt(0);if((n<48||n>57)&&s[0]!==`-`||!/^\d+$/.test(s))return c(e,t);t.maxAge=Number(s)}else if(l===`domain`){let e=s;e[0]===`.`&&(e=e.slice(1)),e=e.toLowerCase(),t.domain=e}else if(l===`path`){let e=``;e=s.length===0||s[0]!==`/`?`/`:s,t.path=e}else if(l===`secure`)t.secure=!0;else if(l===`httponly`)t.httpOnly=!0;else if(l===`samesite`){let e=`Default`,n=s.toLowerCase();n.includes(`none`)&&(e=`None`),n.includes(`strict`)&&(e=`Strict`),n.includes(`lax`)&&(e=`Lax`),t.sameSite=e}else t.unparsed??=[],t.unparsed.push(`${i}=${s}`);return c(e,t)}t.exports={parseSetCookie:s,parseUnparsedAttributes:c}})),rn=z(((e,t)=>{let{parseSetCookie:n}=nn(),{stringify:r}=tn(),{webidl:i}=Je(),{Headers:a}=Bt();function o(e){i.argumentLengthCheck(arguments,1,`getCookies`),i.brandCheck(e,a,{strict:!1});let t=e.get(`cookie`),n={};if(!t)return n;for(let e of t.split(`;`)){let[t,...r]=e.split(`=`);n[t.trim()]=r.join(`=`)}return n}function s(e,t,n){i.brandCheck(e,a,{strict:!1});let r=`deleteCookie`;i.argumentLengthCheck(arguments,2,r),t=i.converters.DOMString(t,r,`name`),n=i.converters.DeleteCookieAttributes(n),l(e,{name:t,value:``,expires:new Date(0),...n})}function c(e){i.argumentLengthCheck(arguments,1,`getSetCookies`),i.brandCheck(e,a,{strict:!1});let t=e.getSetCookie();return t?t.map(e=>n(e)):[]}function l(e,t){i.argumentLengthCheck(arguments,2,`setCookie`),i.brandCheck(e,a,{strict:!1}),t=i.converters.Cookie(t);let n=r(t);n&&e.append(`Set-Cookie`,n)}i.converters.DeleteCookieAttributes=i.dictionaryConverter([{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null}]),i.converters.Cookie=i.dictionaryConverter([{converter:i.converters.DOMString,key:`name`},{converter:i.converters.DOMString,key:`value`},{converter:i.nullableConverter(e=>typeof e==`number`?i.converters[`unsigned long long`](e):new Date(e)),key:`expires`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters[`long long`]),key:`maxAge`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`domain`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.DOMString),key:`path`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`secure`,defaultValue:()=>null},{converter:i.nullableConverter(i.converters.boolean),key:`httpOnly`,defaultValue:()=>null},{converter:i.converters.USVString,key:`sameSite`,allowedValues:[`Strict`,`Lax`,`None`]},{converter:i.sequenceConverter(i.converters.DOMString),key:`unparsed`,defaultValue:()=>[]}]),t.exports={getCookies:o,deleteCookie:s,getSetCookies:c,setCookie:l}})),an=z(((e,t)=>{let{webidl:n}=Je(),{kEnumerableProperty:r}=H(),{kConstruct:i}=je(),{MessagePort:a}=V(`node:worker_threads`);var o=class e extends Event{#e;constructor(e,t={}){if(e===i){super(arguments[1],arguments[2]),n.util.markAsUncloneable(this);return}let r=`MessageEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.MessageEventInit(t,r,`eventInitDict`),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get data(){return n.brandCheck(this,e),this.#e.data}get origin(){return n.brandCheck(this,e),this.#e.origin}get lastEventId(){return n.brandCheck(this,e),this.#e.lastEventId}get source(){return n.brandCheck(this,e),this.#e.source}get ports(){return n.brandCheck(this,e),Object.isFrozen(this.#e.ports)||Object.freeze(this.#e.ports),this.#e.ports}initMessageEvent(t,r=!1,i=!1,a=null,o=``,s=``,c=null,l=[]){return n.brandCheck(this,e),n.argumentLengthCheck(arguments,1,`MessageEvent.initMessageEvent`),new e(t,{bubbles:r,cancelable:i,data:a,origin:o,lastEventId:s,source:c,ports:l})}static createFastMessageEvent(t,n){let r=new e(i,t,n);return r.#e=n,r.#e.data??=null,r.#e.origin??=``,r.#e.lastEventId??=``,r.#e.source??=null,r.#e.ports??=[],r}};let{createFastMessageEvent:s}=o;delete o.createFastMessageEvent;var c=class e extends Event{#e;constructor(e,t={}){let r=`CloseEvent constructor`;n.argumentLengthCheck(arguments,1,r),e=n.converters.DOMString(e,r,`type`),t=n.converters.CloseEventInit(t),super(e,t),this.#e=t,n.util.markAsUncloneable(this)}get wasClean(){return n.brandCheck(this,e),this.#e.wasClean}get code(){return n.brandCheck(this,e),this.#e.code}get reason(){return n.brandCheck(this,e),this.#e.reason}},l=class e extends Event{#e;constructor(e,t){let r=`ErrorEvent constructor`;n.argumentLengthCheck(arguments,1,r),super(e,t),n.util.markAsUncloneable(this),e=n.converters.DOMString(e,r,`type`),t=n.converters.ErrorEventInit(t??{}),this.#e=t}get message(){return n.brandCheck(this,e),this.#e.message}get filename(){return n.brandCheck(this,e),this.#e.filename}get lineno(){return n.brandCheck(this,e),this.#e.lineno}get colno(){return n.brandCheck(this,e),this.#e.colno}get error(){return n.brandCheck(this,e),this.#e.error}};Object.defineProperties(o.prototype,{[Symbol.toStringTag]:{value:`MessageEvent`,configurable:!0},data:r,origin:r,lastEventId:r,source:r,ports:r,initMessageEvent:r}),Object.defineProperties(c.prototype,{[Symbol.toStringTag]:{value:`CloseEvent`,configurable:!0},reason:r,code:r,wasClean:r}),Object.defineProperties(l.prototype,{[Symbol.toStringTag]:{value:`ErrorEvent`,configurable:!0},message:r,filename:r,lineno:r,colno:r,error:r}),n.converters.MessagePort=n.interfaceConverter(a),n.converters[`sequence`]=n.sequenceConverter(n.converters.MessagePort);let u=[{key:`bubbles`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`cancelable`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`composed`,converter:n.converters.boolean,defaultValue:()=>!1}];n.converters.MessageEventInit=n.dictionaryConverter([...u,{key:`data`,converter:n.converters.any,defaultValue:()=>null},{key:`origin`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lastEventId`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`source`,converter:n.nullableConverter(n.converters.MessagePort),defaultValue:()=>null},{key:`ports`,converter:n.converters[`sequence`],defaultValue:()=>[]}]),n.converters.CloseEventInit=n.dictionaryConverter([...u,{key:`wasClean`,converter:n.converters.boolean,defaultValue:()=>!1},{key:`code`,converter:n.converters[`unsigned short`],defaultValue:()=>0},{key:`reason`,converter:n.converters.USVString,defaultValue:()=>``}]),n.converters.ErrorEventInit=n.dictionaryConverter([...u,{key:`message`,converter:n.converters.DOMString,defaultValue:()=>``},{key:`filename`,converter:n.converters.USVString,defaultValue:()=>``},{key:`lineno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`colno`,converter:n.converters[`unsigned long`],defaultValue:()=>0},{key:`error`,converter:n.converters.any}]),t.exports={MessageEvent:o,CloseEvent:c,ErrorEvent:l,createFastMessageEvent:s}})),on=z(((e,t)=>{t.exports={uid:`258EAFA5-E914-47DA-95CA-C5AB0DC85B11`,sentCloseFrameState:{NOT_SENT:0,PROCESSING:1,SENT:2},staticPropertyDescriptors:{enumerable:!0,writable:!1,configurable:!1},states:{CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3},opcodes:{CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10},maxUnsigned16Bit:2**16-1,parserStates:{INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4},emptyBuffer:Buffer.allocUnsafe(0),sendHints:{string:1,typedArray:2,arrayBuffer:3,blob:4}}})),sn=z(((e,t)=>{t.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`)}})),cn=z(((e,t)=>{let{kReadyState:n,kController:r,kResponse:i,kBinaryType:a,kWebSocketURL:o}=sn(),{states:s,opcodes:c}=on(),{ErrorEvent:l,createFastMessageEvent:u}=an(),{isUtf8:d}=V(`node:buffer`),{collectASequenceOfCodePointsFast:f,removeHTTPWhitespace:p}=qe();function m(e){return e[n]===s.CONNECTING}function h(e){return e[n]===s.OPEN}function g(e){return e[n]===s.CLOSING}function _(e){return e[n]===s.CLOSED}function v(e,t,n=(e,t)=>new Event(e,t),r={}){let i=n(e,r);t.dispatchEvent(i)}function y(e,t,r){if(e[n]!==s.OPEN)return;let i;if(t===c.TEXT)try{i=M(r)}catch{C(e,`Received invalid UTF-8 in text frame.`);return}else t===c.BINARY&&(i=e[a]===`blob`?new Blob([r]):b(r));v(`message`,e,u,{origin:e[o].origin,data:i})}function b(e){return e.byteLength===e.buffer.byteLength?e.buffer:e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function x(e){if(e.length===0)return!1;for(let t=0;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125)return!1}return!0}function S(e){return e>=1e3&&e<1015?e!==1004&&e!==1005&&e!==1006:e>=3e3&&e<=4999}function C(e,t){let{[r]:n,[i]:a}=e;n.abort(),a?.socket&&!a.socket.destroyed&&a.socket.destroy(),t&&v(`error`,e,(e,t)=>new l(e,t),{error:Error(t),message:t})}function w(e){return e===c.CLOSE||e===c.PING||e===c.PONG}function T(e){return e===c.CONTINUATION}function E(e){return e===c.TEXT||e===c.BINARY}function D(e){return E(e)||T(e)||w(e)}function O(e){let t={position:0},n=new Map;for(;t.position57)return!1}let t=Number.parseInt(e,10);return t>=8&&t<=15}let A=typeof process.versions.icu==`string`,j=A?new TextDecoder(`utf-8`,{fatal:!0}):void 0,M=A?j.decode.bind(j):function(e){if(d(e))return e.toString(`utf-8`);throw TypeError(`Invalid utf-8 received.`)};t.exports={isConnecting:m,isEstablished:h,isClosing:g,isClosed:_,fireEvent:v,isValidSubprotocol:x,isValidStatusCode:S,failWebsocketConnection:C,websocketMessageReceived:y,utf8Decode:M,isControlFrame:w,isContinuationFrame:T,isTextBinaryFrame:E,isValidOpcode:D,parseExtensions:O,isValidClientWindowBits:k}})),ln=z(((e,t)=>{let{maxUnsigned16Bit:n}=on(),r=16386,i,a=null,o=r;try{i=V(`node:crypto`)}catch{i={randomFillSync:function(e,t,n){for(let t=0;t */ -t.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,r=s(),i=t?.byteLength??0,a=i,o=6;i>n?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=sn(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=cn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=ln(),{channels:v}=Ie(),{CloseEvent:y}=on(),{makeRequest:b}=Wt(),{fetching:x}=Gt(),{Headers:S,getHeadersList:C}=Vt(),{getDecodeSplit:w}=Xe(),{WebsocketFrameSend:T}=un(),E;try{E=B(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),fn=R(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=B(`node:zlib`),{isValidClientWindowBits:i}=ln(),{MessageSizeExceededError:a}=Ne(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),pn=R(((e,t)=>{let{Writable:n}=B(`node:stream`),r=B(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=sn(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=cn(),{channels:p}=Ie(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=ln(),{WebsocketFrameSend:S}=un(),{closeWebSocketConnection:C}=dn(),{PerMessageDeflate:w}=fn(),{MessageSizeExceededError:T}=Ne();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),mn=R(((e,t)=>{let{WebsocketFrameSend:n}=un(),{opcodes:r,sendHints:i}=sn(),a=st(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),hn=R(((e,t)=>{let{webidl:n}=Ye(),{URLSerializer:r}=Je(),{environmentSettingsObject:i}=Xe(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=sn(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=cn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=ln(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=dn(),{ByteParser:C}=pn(),{kEnumerableProperty:w,isBlobLike:T}=V(),{getGlobalDispatcher:E}=Ft(),{types:D}=B(`node:util`),{ErrorEvent:O,CloseEvent:k}=on(),{SendQueue:A}=mn();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,N.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function N(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),gn=R(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),_n=R(((e,t)=>{let{Transform:n}=B(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=gn(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),vn=R(((e,t)=>{let{pipeline:n}=B(`node:stream`),{fetching:r}=Gt(),{makeRequest:i}=Wt(),{webidl:a}=Ye(),{EventSourceStream:o}=_n(),{parseMIMEType:s}=Je(),{createFastMessageEvent:c}=on(),{isNetworkError:l}=Ht(),{delay:u}=gn(),{kEnumerableProperty:d}=V(),{environmentSettingsObject:f}=Xe(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),yn=R(((e,t)=>{let n=ot(),r=Re(),i=ut(),a=dt(),o=ft(),s=pt(),c=mt(),l=gt(),u=Ne(),d=V(),{InvalidArgumentError:f}=u,p=Tt(),m=Ve(),h=At(),g=Pt(),_=jt(),v=Et(),y=ht(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=Ft(),S=It(),C=it(),w=at();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:Lt(),retry:Rt(),dump:zt(),dns:Bt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=Gt().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=Vt().Headers,t.exports.Response=Ht().Response,t.exports.Request=Wt().Request,t.exports.FormData=$e().FormData,t.exports.File=globalThis.File??B(`node:buffer`).File,t.exports.FileReader=Xt().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=qe();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=en(),{kConstruct:A}=Zt();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:N,setCookie:P}=an();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=N,t.exports.setCookie=P;let{parseMIMEType:ee,serializeAMimeType:te}=Je();t.exports.parseMIMEType=ee,t.exports.serializeAMimeType=te;let{CloseEvent:ne,ErrorEvent:F,MessageEvent:re}=on();t.exports.WebSocket=hn().WebSocket,t.exports.CloseEvent=ne,t.exports.ErrorEvent=F,t.exports.MessageEvent=re,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:ie}=vn();t.exports.EventSource=ie})),bn=z(je(),1),xn=yn(),Sn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Cn||={});var wn;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(wn||={});var Tn;(function(e){e.ApplicationJson=`application/json`})(Tn||={});const En=[Cn.MovedPermanently,Cn.ResourceMoved,Cn.SeeOther,Cn.TemporaryRedirect,Cn.PermanentRedirect],Dn=[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout],On=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var kn=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},An=class{constructor(e){this.message=e}readBody(){return Sn(this,void 0,void 0,function*(){return new Promise(e=>Sn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return Sn(this,void 0,void 0,function*(){return new Promise(e=>Sn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},jn=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return Sn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return Sn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return Sn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return Sn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return Sn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return Sn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return Sn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return Sn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return Sn(this,arguments,void 0,function*(e,t={}){t[wn.Accept]=this._getExistingOrDefaultHeader(t,wn.Accept,Tn.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return Sn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[wn.Accept]=this._getExistingOrDefaultHeader(n,wn.Accept,Tn.ApplicationJson),n[wn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Tn.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return Sn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[wn.Accept]=this._getExistingOrDefaultHeader(n,wn.Accept,Tn.ApplicationJson),n[wn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Tn.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return Sn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[wn.Accept]=this._getExistingOrDefaultHeader(n,wn.Accept,Tn.ApplicationJson),n[wn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,Tn.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return Sn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&On.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Cn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&En.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!Dn.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new An(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=Ee(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?h:m;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},Mn(this.requestOptions.headers),Mn(e||{})):Mn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=Mn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=Mn(this.requestOptions.headers)[wn.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[wn.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=Ee(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||m.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?bn.httpsOverHttps:bn.httpsOverHttp:o?bn.httpOverHttps:bn.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new h.Agent(e):new m.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new xn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return Sn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return Sn(this,void 0,void 0,function*(){return new Promise((n,r)=>Sn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Cn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new kn(e,i);t.result=a.result,r(t)}else n(a)}))})}};const Mn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Nn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Pn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Nn(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},Fn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:In,appendFile:Ln,writeFile:Rn}=u,zn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return Fn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[zn];if(!e)throw Error(`Unable to find environment variable for $${zn}. Check if your runtime environment supports job summaries.`);try{yield In(e,c.R_OK|c.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return Fn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Rn:Ln)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return Fn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(a)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var Bn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:Vn,copyFile:Hn,lstat:Un,mkdir:Wn,open:Gn,readdir:Kn,rename:qn,rm:Jn,rmdir:Yn,stat:Xn,symlink:Zn,unlink:Qn}=s.promises,$n=process.platform===`win32`;function er(e){return Bn(this,void 0,void 0,function*(){let t=yield s.promises.readlink(e);return $n&&!t.endsWith(`\\`)?`${t}\\`:t})}s.constants.O_RDONLY;function tr(e){return Bn(this,void 0,void 0,function*(){try{yield Xn(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function nr(e){if(e=ir(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return $n?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function rr(e,t){return Bn(this,void 0,void 0,function*(){let n;try{n=yield Xn(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if($n){let n=p.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(ar(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield Xn(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if($n){try{let t=p.dirname(e),n=p.basename(e).toUpperCase();for(let r of yield Kn(t))if(n===r.toUpperCase()){e=p.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(ar(n))return e}}return``})}function ir(e){return e||=``,$n?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function ar(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var or=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function sr(e,t){return or(this,arguments,void 0,function*(e,t,n={}){let{force:r,recursive:i,copySourceDirectory:a}=fr(n),o=(yield tr(t))?yield Xn(t):null;if(o&&o.isFile()&&!r)return;let s=o&&o.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield tr(e)))throw Error(`no such file or directory: ${e}`);if((yield Xn(e)).isDirectory())if(i)yield pr(e,s,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);else{if(p.relative(e,s)===``)throw Error(`'${s}' and '${e}' are the same file`);yield mr(e,s,r)}})}function cr(e){return or(this,void 0,void 0,function*(){if($n&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield Jn(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw Error(`File was unable to be removed ${e}`)}})}function lr(e){return or(this,void 0,void 0,function*(){y(e,`a path argument must be provided`),yield Wn(e,{recursive:!0})})}function ur(e,t){return or(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield ur(e,!1);if(!t)throw Error($n?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield dr(e);return n&&n.length>0?n[0]:``})}function dr(e){return or(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if($n&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(nr(e)){let n=yield rr(e,t);return n?[n]:[]}if(e.includes(p.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(p.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield rr(p.join(i,e),t);n&&r.push(n)}return r})}function fr(e){return{force:e.force==null?!0:e.force,recursive:!!e.recursive,copySourceDirectory:e.copySourceDirectory==null?!0:!!e.copySourceDirectory}}function pr(e,t,n,r){return or(this,void 0,void 0,function*(){if(n>=255)return;n++,yield lr(t);let i=yield Kn(e);for(let a of i){let i=`${e}/${a}`,o=`${t}/${a}`;(yield Un(i)).isDirectory()?yield pr(i,o,n,r):yield mr(i,o,r)}yield Vn(t,(yield Xn(e)).mode)})}function mr(e,t,n){return or(this,void 0,void 0,function*(){if((yield Un(e)).isSymbolicLink()){try{yield Un(t),yield Qn(t)}catch(e){e.code===`EPERM`&&(yield Vn(t,`0666`),yield Qn(t))}yield Zn(yield er(e),t,$n?`junction`:null)}else (!(yield tr(t))||n)&&(yield Hn(e,t))})}var hr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const gr=process.platform===`win32`;var _r=class extends g.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(gr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let i=t+e.toString(),a=i.indexOf(r.EOL);for(;a>-1;)n(i.substring(0,a)),i=i.substring(a+r.EOL.length),a=i.indexOf(r.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return gr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(gr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return hr(this,void 0,void 0,function*(){return!nr(this.toolPath)&&(this.toolPath.includes(`/`)||gr&&this.toolPath.includes(`\\`))&&(this.toolPath=p.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield ur(this.toolPath,!0),new Promise((e,t)=>hr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+r.EOL);let i=new yr(n,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield tr(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=j.spawn(a,this._getSpawnArgs(n),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(n,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),n?t(n):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function vr(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var yr=class e extends g.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=M(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},br=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function xr(e,t,n){return br(this,void 0,void 0,function*(){let r=vr(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new _r(i,t,n).exec()})}function Sr(e,t,n){return br(this,void 0,void 0,function*(){let r=``,i=``,a=new A(`utf8`),o=new A(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield xr(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}i.platform(),i.arch();var Cr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},wr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(wr||={});function Tr(e,t){let n=_e(t);if(process.env[e]=n,process.env.GITHUB_ENV)return we(`ENV`,Te(e,t));ye(`set-env`,{name:e},n)}function Er(e){ye(`add-mask`,{},e)}function Dr(e){process.env.GITHUB_PATH?we(`PATH`,e):ye(`add-path`,{},e),process.env.PATH=`${e}${p.delimiter}${process.env.PATH}`}function Or(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function kr(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=Or(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function Ar(){return process.env.RUNNER_DEBUG===`1`}function H(e){ye(`debug`,{},e)}function jr(e,t={}){ye(`error`,ve(t),e instanceof Error?e.toString():e)}function Mr(e,t={}){ye(`warning`,ve(t),e instanceof Error?e.toString():e)}function Nr(e,t={}){ye(`notice`,ve(t),e instanceof Error?e.toString():e)}function Pr(e){process.stdout.write(e+r.EOL)}function Fr(e){be(`group`,e)}function Ir(){be(`endgroup`)}function Lr(e,t){return Cr(this,void 0,void 0,function*(){Fr(e);let n;try{n=yield t()}finally{Ir()}return n})}function Rr(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,H(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,H(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,H(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,H(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,H(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const zr=process.platform===`win32`;function Br(e){if(e=Gr(e),zr&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=p.dirname(e);return zr&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=Gr(t)),t}function Vr(e,t){if(v(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),v(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),Hr(t))return t;if(zr){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return v(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(Wr(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return v(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return v(Hr(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||zr&&e.endsWith(`\\`)||(e+=p.sep),e+t}function Hr(e){return v(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=Wr(e),zr?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function Ur(e){return v(e,`isRooted parameter 'itemPath' must not be empty`),e=Wr(e),zr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function Wr(e){return e||=``,zr?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function Gr(e){return e?(e=Wr(e),!e.endsWith(p.sep)||e===p.sep||zr&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var Kr;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(Kr||={});const qr=process.platform===`win32`;function Jr(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=qr?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=qr?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=Br(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=Br(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function Yr(e,t){let n=Kr.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function Xr(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var Zr=R(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),$r=R(((e,t)=>{var n=Zr(),r=Qr();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var N=0;N{t.exports=h,h.Minimatch=g;var n=function(){try{return B(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=$r(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var N=f[M],P=i.slice(0,N.reStart),ee=i.slice(N.reStart,N.reEnd-8),te=i.slice(N.reEnd-8,N.reEnd),ne=i.slice(N.reEnd);te+=ne;var F=P.split(`(`).length-1,re=ne;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new ni(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),ii?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:ii,nocomment:!0,noext:!0,nonegate:!0};a=ii?a.replace(/\\/g,`/`):a,this.minimatch=new ri(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=Wr(e),!e.endsWith(p.sep)&&this.isImplicitPattern===!1&&(e=`${e}${p.sep}`)):e=Gr(e),this.minimatch.match(e)?this.trailingSeparator?Kr.Directory:Kr.All:Kr.None}partialMatch(e){return e=Gr(e),Br(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(ii?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(ii?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(t,n){v(t,`pattern cannot be empty`);let i=new ni(t).segments.map(t=>e.getLiteral(t));if(v(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${t}'. Relative pathing '.' and '..' is not allowed.`),v(!Ur(t)||i[0],`Invalid pattern '${t}'. Root segment must not contain globs.`),t=Wr(t),t===`.`||t.startsWith(`.${p.sep}`))t=e.globEscape(process.cwd())+t.substr(1);else if(t===`~`||t.startsWith(`~${p.sep}`))n||=r.homedir(),v(n,`Unable to determine HOME directory`),v(Hr(n),`Expected HOME directory to be a rooted path. Actual '${n}'`),t=e.globEscape(n)+t.substr(1);else if(ii&&(t.match(/^[A-Z]:$/i)||t.match(/^[A-Z]:[^\\]/i))){let n=Vr(`C:\\dummy-root`,t.substr(0,2));t.length>2&&!n.endsWith(`\\`)&&(n+=`\\`),t=e.globEscape(n)+t.substr(2)}else if(ii&&(t===`\\`||t.match(/^\\[^\\]/))){let n=Vr(`C:\\dummy-root`,`\\`);n.endsWith(`\\`)||(n+=`\\`),t=e.globEscape(n)+t.substr(1)}else t=Vr(e.globEscape(process.cwd()),t);return Wr(t)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},oi=class{constructor(e,t){this.path=e,this.level=t}},si=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},ci=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},li=function(e){return this instanceof li?(this.v=e,this):new li(e)},ui=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof li?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const di=process.platform===`win32`;var fi=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Rr(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return si(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=ci(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return ui(this,arguments,function*(){let t=Rr(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new ai(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of Jr(n)){H(`Search path '${e}'`);try{yield li(s.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new oi(e,1))}let i=[];for(;r.length;){let a=r.pop(),o=Yr(n,a.path),c=!!o||Xr(n,a.path);if(!o&&!c)continue;let l=yield li(e.stat(a,t,i));if(l&&!(t.excludeHiddenFiles&&p.basename(a.path).match(/^\./)))if(l.isDirectory()){if(o&Kr.Directory&&t.matchDirectories)yield yield li(a.path);else if(!c)continue;let e=a.level+1,n=(yield li(s.promises.readdir(a.path))).map(t=>new oi(p.join(a.path,t),e));r.push(...n.reverse())}else o&Kr.File&&(yield yield li(a.path))}})}static create(t,n){return si(this,void 0,void 0,function*(){let r=new e(n);di&&(t=t.replace(/\r\n/g,` +t.exports={WebsocketFrameSend:class{constructor(e){this.frameData=e}createFrame(e){let t=this.frameData,r=s(),i=t?.byteLength??0,a=i,o=6;i>n?(o+=8,a=127):i>125&&(o+=2,a=126);let c=Buffer.allocUnsafe(i+o);c[0]=c[1]=0,c[0]|=128,c[0]=(c[0]&240)+e,c[o-4]=r[0],c[o-3]=r[1],c[o-2]=r[2],c[o-1]=r[3],c[1]=a,a===126?c.writeUInt16BE(i,2):a===127&&(c[2]=c[3]=0,c.writeUIntBE(i,4,6)),c[1]|=128;for(let e=0;e{let{uid:n,states:r,sentCloseFrameState:i,emptyBuffer:a,opcodes:o}=on(),{kReadyState:s,kSentClose:c,kByteParser:l,kReceivedClose:u,kResponse:d}=sn(),{fireEvent:f,failWebsocketConnection:p,isClosing:m,isClosed:h,isEstablished:g,parseExtensions:_}=cn(),{channels:v}=Fe(),{CloseEvent:y}=an(),{makeRequest:b}=Ut(),{fetching:x}=Wt(),{Headers:S,getHeadersList:C}=Bt(),{getDecodeSplit:w}=Ye(),{WebsocketFrameSend:T}=ln(),E;try{E=V(`node:crypto`)}catch{}function D(e,t,r,i,a,o){let s=e;s.protocol=e.protocol===`ws:`?`http:`:`https:`;let c=b({urlList:[s],client:r,serviceWorkers:`none`,referrer:`no-referrer`,mode:`websocket`,credentials:`include`,cache:`no-store`,redirect:`error`});o.headers&&(c.headersList=C(new S(o.headers)));let l=E.randomBytes(16).toString(`base64`);c.headersList.append(`sec-websocket-key`,l),c.headersList.append(`sec-websocket-version`,`13`);for(let e of t)c.headersList.append(`sec-websocket-protocol`,e);return c.headersList.append(`sec-websocket-extensions`,`permessage-deflate; client_max_window_bits`),x({request:c,useParallelQueue:!0,dispatcher:o.dispatcher,processResponse(e){if(e.type===`error`||e.status!==101){p(i,`Received network error or non-101 status code.`);return}if(t.length!==0&&!e.headersList.get(`Sec-WebSocket-Protocol`)){p(i,`Server did not respond with sent protocols.`);return}if(e.headersList.get(`Upgrade`)?.toLowerCase()!==`websocket`){p(i,`Server did not set Upgrade header to "websocket".`);return}if(e.headersList.get(`Connection`)?.toLowerCase()!==`upgrade`){p(i,`Server did not set Connection header to "upgrade".`);return}if(e.headersList.get(`Sec-WebSocket-Accept`)!==E.createHash(`sha1`).update(l+n).digest(`base64`)){p(i,`Incorrect hash received in Sec-WebSocket-Accept header.`);return}let r=e.headersList.get(`Sec-WebSocket-Extensions`),o;if(r!==null&&(o=_(r),!o.has(`permessage-deflate`))){p(i,`Sec-WebSocket-Extensions header does not match.`);return}let s=e.headersList.get(`Sec-WebSocket-Protocol`);if(s!==null&&!w(`sec-websocket-protocol`,c.headersList).includes(s)){p(i,`Protocol was not set in the opening handshake.`);return}e.socket.on(`data`,k),e.socket.on(`close`,A),e.socket.on(`error`,j),v.open.hasSubscribers&&v.open.publish({address:e.socket.address(),protocol:s,extensions:r}),a(e,o)}})}function O(e,t,n,l){if(!(m(e)||h(e)))if(!g(e))p(e,`Connection was closed before it was established.`),e[s]=r.CLOSING;else if(e[c]===i.NOT_SENT){e[c]=i.PROCESSING;let u=new T;t!==void 0&&n===void 0?(u.frameData=Buffer.allocUnsafe(2),u.frameData.writeUInt16BE(t,0)):t!==void 0&&n!==void 0?(u.frameData=Buffer.allocUnsafe(2+l),u.frameData.writeUInt16BE(t,0),u.frameData.write(n,2,`utf-8`)):u.frameData=a,e[d].socket.write(u.createFrame(o.CLOSE)),e[c]=i.SENT,e[s]=r.CLOSING}else e[s]=r.CLOSING}function k(e){this.ws[l].write(e)||this.pause()}function A(){let{ws:e}=this,{[d]:t}=e;t.socket.off(`data`,k),t.socket.off(`close`,A),t.socket.off(`error`,j);let n=e[c]===i.SENT&&e[u],a=1005,o=``,p=e[l].closingInfo;p&&!p.error?(a=p.code??1005,o=p.reason):e[u]||(a=1006),e[s]=r.CLOSED,f(`close`,e,(e,t)=>new y(e,t),{wasClean:n,code:a,reason:o}),v.close.hasSubscribers&&v.close.publish({websocket:e,code:a,reason:o})}function j(e){let{ws:t}=this;t[s]=r.CLOSING,v.socketError.hasSubscribers&&v.socketError.publish(e),this.destroy()}t.exports={establishWebSocketConnection:D,closeWebSocketConnection:O}})),dn=z(((e,t)=>{let{createInflateRaw:n,Z_DEFAULT_WINDOWBITS:r}=V(`node:zlib`),{isValidClientWindowBits:i}=cn(),{MessageSizeExceededError:a}=Me(),o=Buffer.from([0,0,255,255]),s=Symbol(`kBuffer`),c=Symbol(`kLength`);t.exports={PerMessageDeflate:class{#e;#t={};#n=0;constructor(e,t){this.#t.serverNoContextTakeover=e.has(`server_no_context_takeover`),this.#t.serverMaxWindowBits=e.get(`server_max_window_bits`),this.#n=t.maxPayloadSize}decompress(e,t,l){if(!this.#e){let e=r;if(this.#t.serverMaxWindowBits){if(!i(this.#t.serverMaxWindowBits)){l(Error(`Invalid server_max_window_bits`));return}e=Number.parseInt(this.#t.serverMaxWindowBits)}try{this.#e=n({windowBits:e})}catch(e){l(e);return}this.#e[s]=[],this.#e[c]=0,this.#e.on(`data`,e=>{if(this.#e[c]+=e.length,this.#n>0&&this.#e[c]>this.#n){l(new a),this.#e.removeAllListeners(),this.#e=null;return}this.#e[s].push(e)}),this.#e.on(`error`,e=>{this.#e=null,l(e)})}this.#e.write(e),t&&this.#e.write(o),this.#e.flush(()=>{if(!this.#e)return;let e=Buffer.concat(this.#e[s],this.#e[c]);this.#e[s].length=0,this.#e[c]=0,l(null,e)})}}}})),fn=z(((e,t)=>{let{Writable:n}=V(`node:stream`),r=V(`node:assert`),{parserStates:i,opcodes:a,states:o,emptyBuffer:s,sentCloseFrameState:c}=on(),{kReadyState:l,kSentClose:u,kResponse:d,kReceivedClose:f}=sn(),{channels:p}=Fe(),{isValidStatusCode:m,isValidOpcode:h,failWebsocketConnection:g,websocketMessageReceived:_,utf8Decode:v,isControlFrame:y,isTextBinaryFrame:b,isContinuationFrame:x}=cn(),{WebsocketFrameSend:S}=ln(),{closeWebSocketConnection:C}=un(),{PerMessageDeflate:w}=dn(),{MessageSizeExceededError:T}=Me();t.exports={ByteParser:class extends n{#e=[];#t=0;#n=0;#r=!1;#i=i.INFO;#a={};#o=[];#s;#c;constructor(e,t,n={}){super(),this.ws=e,this.#s=t??new Map,this.#c=n.maxPayloadSize??0,this.#s.has(`permessage-deflate`)&&this.#s.set(`permessage-deflate`,new w(t,n))}_write(e,t,n){this.#e.push(e),this.#n+=e.length,this.#r=!0,this.run(n)}#l(){return this.#c>0&&!y(this.#a.opcode)&&this.#a.payloadLength>this.#c?(g(this.ws,`Payload size exceeds maximum allowed size`),!1):!0}run(e){for(;this.#r;)if(this.#i===i.INFO){if(this.#n<2)return e();let t=this.consume(2),n=(t[0]&128)!=0,r=t[0]&15,o=(t[1]&128)==128,s=!n&&r!==a.CONTINUATION,c=t[1]&127,l=t[0]&64,u=t[0]&32,d=t[0]&16;if(!h(r))return g(this.ws,`Invalid opcode received`),e();if(o)return g(this.ws,`Frame cannot be masked`),e();if(l!==0&&!this.#s.has(`permessage-deflate`)){g(this.ws,`Expected RSV1 to be clear.`);return}if(u!==0||d!==0){g(this.ws,`RSV1, RSV2, RSV3 must be clear`);return}if(s&&!b(r)){g(this.ws,`Invalid frame type was fragmented.`);return}if(b(r)&&this.#o.length>0){g(this.ws,`Expected continuation frame`);return}if(this.#a.fragmented&&s){g(this.ws,`Fragmented frame exceeded 125 bytes.`);return}if((c>125||s)&&y(r)){g(this.ws,`Control frame either too large or fragmented`);return}if(x(r)&&this.#o.length===0&&!this.#a.compressed){g(this.ws,`Unexpected continuation frame`);return}if(c<=125){if(this.#a.payloadLength=c,this.#i=i.READ_DATA,!this.#l())return}else c===126?this.#i=i.PAYLOADLENGTH_16:c===127&&(this.#i=i.PAYLOADLENGTH_64);b(r)&&(this.#a.binaryType=r,this.#a.compressed=l!==0),this.#a.opcode=r,this.#a.masked=o,this.#a.fin=n,this.#a.fragmented=s}else if(this.#i===i.PAYLOADLENGTH_16){if(this.#n<2)return e();let t=this.consume(2);if(this.#a.payloadLength=t.readUInt16BE(0),this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.PAYLOADLENGTH_64){if(this.#n<8)return e();let t=this.consume(8),n=t.readUInt32BE(0),r=t.readUInt32BE(4);if(n!==0||r>2**31-1){g(this.ws,`Received payload length > 2^31 bytes.`);return}if(this.#a.payloadLength=r,this.#i=i.READ_DATA,!this.#l())return}else if(this.#i===i.READ_DATA){if(this.#n{if(t){g(this.ws,t.message);return}if(this.writeFragments(n),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}if(!this.#a.fin){this.#i=i.INFO,this.#r=!0,this.run(e);return}_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#r=!0,this.#i=i.INFO,this.run(e)}),this.#r=!1;break}else{if(this.writeFragments(t),this.#c>0&&this.#t>this.#c){g(this.ws,new T().message);return}!this.#a.fragmented&&this.#a.fin&&_(this.ws,this.#a.binaryType,this.consumeFragments()),this.#i=i.INFO}}}consume(e){if(e>this.#n)throw Error(`Called consume() before buffers satiated.`);if(e===0)return s;if(this.#e[0].length===e)return this.#n-=this.#e[0].length,this.#e.shift();let t=Buffer.allocUnsafe(e),n=0;for(;n!==e;){let r=this.#e[0],{length:i}=r;if(i+n===e){t.set(this.#e.shift(),n);break}else if(i+n>e){t.set(r.subarray(0,e-n),n),this.#e[0]=r.subarray(e-n);break}else t.set(this.#e.shift(),n),n+=r.length}return this.#n-=e,t}writeFragments(e){this.#t+=e.length,this.#o.push(e)}consumeFragments(){let e=this.#o;if(e.length===1)return this.#t=0,e.shift();let t=Buffer.concat(e,this.#t);return this.#o=[],this.#t=0,t}parseCloseBody(e){r(e.length!==1);let t;if(e.length>=2&&(t=e.readUInt16BE(0)),t!==void 0&&!m(t))return{code:1002,reason:`Invalid status code`,error:!0};let n=e.subarray(2);n[0]===239&&n[1]===187&&n[2]===191&&(n=n.subarray(3));try{n=v(n)}catch{return{code:1007,reason:`Invalid UTF-8`,error:!0}}return{code:t,reason:n,error:!1}}parseControlFrame(e){let{opcode:t,payloadLength:n}=this.#a;if(t===a.CLOSE){if(n===1)return g(this.ws,`Received close frame with a 1-byte body.`),!1;if(this.#a.closeInfo=this.parseCloseBody(e),this.#a.closeInfo.error){let{code:e,reason:t}=this.#a.closeInfo;return C(this.ws,e,t,t.length),g(this.ws,t),!1}if(this.ws[u]!==c.SENT){let e=s;this.#a.closeInfo.code&&(e=Buffer.allocUnsafe(2),e.writeUInt16BE(this.#a.closeInfo.code,0));let t=new S(e);this.ws[d].socket.write(t.createFrame(a.CLOSE),e=>{e||(this.ws[u]=c.SENT)})}return this.ws[l]=o.CLOSING,this.ws[f]=!0,!1}else if(t===a.PING){if(!this.ws[f]){let t=new S(e);this.ws[d].socket.write(t.createFrame(a.PONG)),p.ping.hasSubscribers&&p.ping.publish({payload:e})}}else t===a.PONG&&p.pong.hasSubscribers&&p.pong.publish({payload:e});return!0}get closingInfo(){return this.#a.closeInfo}}}})),pn=z(((e,t)=>{let{WebsocketFrameSend:n}=ln(),{opcodes:r,sendHints:i}=on(),a=ot(),o=Buffer[Symbol.species];var s=class{#e=new a;#t=!1;#n;constructor(e){this.#n=e}add(e,t,n){if(n!==i.blob){let r=c(e,n);if(!this.#t)this.#n.write(r,t);else{let e={promise:null,callback:t,frame:r};this.#e.push(e)}return}let r={promise:e.arrayBuffer().then(e=>{r.promise=null,r.frame=c(e,n)}),callback:t,frame:null};this.#e.push(r),this.#t||this.#r()}async#r(){this.#t=!0;let e=this.#e;for(;!e.isEmpty();){let t=e.shift();t.promise!==null&&await t.promise,this.#n.write(t.frame,t.callback),t.callback=t.frame=null}this.#t=!1}};function c(e,t){return new n(l(e,t)).createFrame(t===i.string?r.TEXT:r.BINARY)}function l(e,t){switch(t){case i.string:return Buffer.from(e);case i.arrayBuffer:case i.blob:return new o(e);case i.typedArray:return new o(e.buffer,e.byteOffset,e.byteLength)}}t.exports={SendQueue:s}})),mn=z(((e,t)=>{let{webidl:n}=Je(),{URLSerializer:r}=qe(),{environmentSettingsObject:i}=Ye(),{staticPropertyDescriptors:a,states:o,sentCloseFrameState:s,sendHints:c}=on(),{kWebSocketURL:l,kReadyState:u,kController:d,kBinaryType:f,kResponse:p,kSentClose:m,kByteParser:h}=sn(),{isConnecting:g,isEstablished:_,isClosing:v,isValidSubprotocol:y,fireEvent:b}=cn(),{establishWebSocketConnection:x,closeWebSocketConnection:S}=un(),{ByteParser:C}=fn(),{kEnumerableProperty:w,isBlobLike:T}=H(),{getGlobalDispatcher:E}=Pt(),{types:D}=V(`node:util`),{ErrorEvent:O,CloseEvent:k}=an(),{SendQueue:A}=pn();var j=class e extends EventTarget{#e={open:null,error:null,close:null,message:null};#t=0;#n=``;#r=``;#i;constructor(t,r=[]){super(),n.util.markAsUncloneable(this);let a=`WebSocket constructor`;n.argumentLengthCheck(arguments,1,a);let o=n.converters[`DOMString or sequence or WebSocketInit`](r,a,`options`);t=n.converters.USVString(t,a,`url`),r=o.protocols;let c=i.settingsObject.baseUrl,p;try{p=new URL(t,c)}catch(e){throw new DOMException(e,`SyntaxError`)}if(p.protocol===`http:`?p.protocol=`ws:`:p.protocol===`https:`&&(p.protocol=`wss:`),p.protocol!==`ws:`&&p.protocol!==`wss:`)throw new DOMException(`Expected a ws: or wss: protocol, got ${p.protocol}`,`SyntaxError`);if(p.hash||p.href.endsWith(`#`))throw new DOMException(`Got fragment`,`SyntaxError`);if(typeof r==`string`&&(r=[r]),r.length!==new Set(r.map(e=>e.toLowerCase())).size||r.length>0&&!r.every(e=>y(e)))throw new DOMException(`Invalid Sec-WebSocket-Protocol value`,`SyntaxError`);this[l]=new URL(p.href);let h=i.settingsObject;this[d]=x(p,r,h,this,(e,t)=>this.#a(e,t),o),this[u]=e.CONNECTING,this[m]=s.NOT_SENT,this[f]=`blob`}close(t=void 0,r=void 0){n.brandCheck(this,e);let i=`WebSocket.close`;if(t!==void 0&&(t=n.converters[`unsigned short`](t,i,`code`,{clamp:!0})),r!==void 0&&(r=n.converters.USVString(r,i,`reason`)),t!==void 0&&t!==1e3&&(t<3e3||t>4999))throw new DOMException(`invalid code`,`InvalidAccessError`);let a=0;if(r!==void 0&&(a=Buffer.byteLength(r),a>123))throw new DOMException(`Reason must be less than 123 bytes; received ${a}`,`SyntaxError`);S(this,t,r,a)}send(t){n.brandCheck(this,e);let r=`WebSocket.send`;if(n.argumentLengthCheck(arguments,1,r),t=n.converters.WebSocketSendData(t,r,`data`),g(this))throw new DOMException(`Sent before connected.`,`InvalidStateError`);if(!(!_(this)||v(this)))if(typeof t==`string`){let e=Buffer.byteLength(t);this.#t+=e,this.#i.add(t,()=>{this.#t-=e},c.string)}else D.isArrayBuffer(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.arrayBuffer)):ArrayBuffer.isView(t)?(this.#t+=t.byteLength,this.#i.add(t,()=>{this.#t-=t.byteLength},c.typedArray)):T(t)&&(this.#t+=t.size,this.#i.add(t,()=>{this.#t-=t.size},c.blob))}get readyState(){return n.brandCheck(this,e),this[u]}get bufferedAmount(){return n.brandCheck(this,e),this.#t}get url(){return n.brandCheck(this,e),r(this[l])}get extensions(){return n.brandCheck(this,e),this.#r}get protocol(){return n.brandCheck(this,e),this.#n}get onopen(){return n.brandCheck(this,e),this.#e.open}set onopen(t){n.brandCheck(this,e),this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof t==`function`?(this.#e.open=t,this.addEventListener(`open`,t)):this.#e.open=null}get onerror(){return n.brandCheck(this,e),this.#e.error}set onerror(t){n.brandCheck(this,e),this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof t==`function`?(this.#e.error=t,this.addEventListener(`error`,t)):this.#e.error=null}get onclose(){return n.brandCheck(this,e),this.#e.close}set onclose(t){n.brandCheck(this,e),this.#e.close&&this.removeEventListener(`close`,this.#e.close),typeof t==`function`?(this.#e.close=t,this.addEventListener(`close`,t)):this.#e.close=null}get onmessage(){return n.brandCheck(this,e),this.#e.message}set onmessage(t){n.brandCheck(this,e),this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof t==`function`?(this.#e.message=t,this.addEventListener(`message`,t)):this.#e.message=null}get binaryType(){return n.brandCheck(this,e),this[f]}set binaryType(t){n.brandCheck(this,e),t!==`blob`&&t!==`arraybuffer`?this[f]=`blob`:this[f]=t}#a(e,t){this[p]=e;let n=this[d]?.dispatcher?.webSocketOptions?.maxPayloadSize,r=new C(this,t,{maxPayloadSize:n});r.on(`drain`,M),r.on(`error`,N.bind(this)),e.socket.ws=this,this[h]=r,this.#i=new A(e.socket),this[u]=o.OPEN;let i=e.headersList.get(`sec-websocket-extensions`);i!==null&&(this.#r=i);let a=e.headersList.get(`sec-websocket-protocol`);a!==null&&(this.#n=a),b(`open`,this)}};j.CONNECTING=j.prototype.CONNECTING=o.CONNECTING,j.OPEN=j.prototype.OPEN=o.OPEN,j.CLOSING=j.prototype.CLOSING=o.CLOSING,j.CLOSED=j.prototype.CLOSED=o.CLOSED,Object.defineProperties(j.prototype,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a,url:w,readyState:w,bufferedAmount:w,onopen:w,onerror:w,onclose:w,close:w,onmessage:w,binaryType:w,send:w,extensions:w,protocol:w,[Symbol.toStringTag]:{value:`WebSocket`,writable:!1,enumerable:!1,configurable:!0}}),Object.defineProperties(j,{CONNECTING:a,OPEN:a,CLOSING:a,CLOSED:a}),n.converters[`sequence`]=n.sequenceConverter(n.converters.DOMString),n.converters[`DOMString or sequence`]=function(e,t,r){return n.util.Type(e)===`Object`&&Symbol.iterator in e?n.converters[`sequence`](e):n.converters.DOMString(e,t,r)},n.converters.WebSocketInit=n.dictionaryConverter([{key:`protocols`,converter:n.converters[`DOMString or sequence`],defaultValue:()=>[]},{key:`dispatcher`,converter:n.converters.any,defaultValue:()=>E()},{key:`headers`,converter:n.nullableConverter(n.converters.HeadersInit)}]),n.converters[`DOMString or sequence or WebSocketInit`]=function(e){return n.util.Type(e)===`Object`&&!(Symbol.iterator in e)?n.converters.WebSocketInit(e):{protocols:n.converters[`DOMString or sequence`](e)}},n.converters.WebSocketSendData=function(e){if(n.util.Type(e)===`Object`){if(T(e))return n.converters.Blob(e,{strict:!1});if(ArrayBuffer.isView(e)||D.isArrayBuffer(e))return n.converters.BufferSource(e)}return n.converters.USVString(e)};function M(){this.ws[p].socket.resume()}function N(e){let t,n;e instanceof k?(t=e.reason,n=e.code):t=e.message,b(`error`,this,()=>new O(`error`,{error:e,message:t})),S(this,n)}t.exports={WebSocket:j}})),hn=z(((e,t)=>{function n(e){return e.indexOf(`\0`)===-1}function r(e){if(e.length===0)return!1;for(let t=0;t57)return!1;return!0}function i(e){return new Promise(t=>{setTimeout(t,e).unref()})}t.exports={isValidLastEventId:n,isASCIINumber:r,delay:i}})),gn=z(((e,t)=>{let{Transform:n}=V(`node:stream`),{isASCIINumber:r,isValidLastEventId:i}=hn(),a=[239,187,191];t.exports={EventSourceStream:class extends n{state=null;checkBOM=!0;crlfCheck=!1;eventEndCheck=!1;buffer=null;pos=0;event={data:void 0,event:void 0,id:void 0,retry:void 0};constructor(e={}){e.readableObjectMode=!0,super(e),this.state=e.eventSourceSettings||{},e.push&&(this.push=e.push)}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer?this.buffer=Buffer.concat([this.buffer,e]):this.buffer=e,this.checkBOM)switch(this.buffer.length){case 1:if(this.buffer[0]===a[0]){n();return}this.checkBOM=!1,n();return;case 2:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]){n();return}this.checkBOM=!1;break;case 3:if(this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]){this.buffer=Buffer.alloc(0),this.checkBOM=!1,n();return}this.checkBOM=!1;break;default:this.buffer[0]===a[0]&&this.buffer[1]===a[1]&&this.buffer[2]===a[2]&&(this.buffer=this.buffer.subarray(3)),this.checkBOM=!1;break}for(;this.pos0&&(t[a]=o);break}}processEvent(e){e.retry&&r(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&i(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||`message`,options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}}}})),_n=z(((e,t)=>{let{pipeline:n}=V(`node:stream`),{fetching:r}=Wt(),{makeRequest:i}=Ut(),{webidl:a}=Je(),{EventSourceStream:o}=gn(),{parseMIMEType:s}=qe(),{createFastMessageEvent:c}=an(),{isNetworkError:l}=Vt(),{delay:u}=hn(),{kEnumerableProperty:d}=H(),{environmentSettingsObject:f}=Ye(),p=!1,m=3e3;var h=class e extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=0;#i=null;#a=null;#o;#s;constructor(e,t={}){super(),a.util.markAsUncloneable(this);let n=`EventSource constructor`;a.argumentLengthCheck(arguments,1,n),p||(p=!0,process.emitWarning(`EventSource is experimental, expect them to change at any time.`,{code:`UNDICI-ES`})),e=a.converters.USVString(e,n,`url`),t=a.converters.EventSourceInitDict(t,n,`eventSourceInitDict`),this.#o=t.dispatcher,this.#s={lastEventId:``,reconnectionTime:m};let r=f,o;try{o=new URL(e,r.settingsObject.baseUrl),this.#s.origin=o.origin}catch(e){throw new DOMException(e,`SyntaxError`)}this.#t=o.href;let s=`anonymous`;t.withCredentials&&(s=`use-credentials`,this.#n=!0);let c={redirect:`follow`,keepalive:!0,mode:`cors`,credentials:s===`anonymous`?`same-origin`:`omit`,referrer:`no-referrer`};c.client=f.settingsObject,c.headersList=[[`accept`,{name:`accept`,value:`text/event-stream`}]],c.cache=`no-store`,c.initiator=`other`,c.urlList=[new URL(this.#t)],this.#i=i(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===2)return;this.#r=0;let e={request:this.#i,dispatcher:this.#o};e.processResponseEndOfBody=e=>{l(e)&&(this.dispatchEvent(new Event(`error`)),this.close()),this.#l()},e.processResponse=e=>{if(l(e))if(e.aborted){this.close(),this.dispatchEvent(new Event(`error`));return}else{this.#l();return}let t=e.headersList.get(`content-type`,!0),r=t===null?`failure`:s(t),i=r!==`failure`&&r.essence===`text/event-stream`;if(e.status!==200||i===!1){this.close(),this.dispatchEvent(new Event(`error`));return}this.#r=1,this.dispatchEvent(new Event(`open`)),this.#s.origin=e.urlList[e.urlList.length-1].origin;let a=new o({eventSourceSettings:this.#s,push:e=>{this.dispatchEvent(c(e.type,e.options))}});n(e.body.stream,a,e=>{e?.aborted===!1&&(this.close(),this.dispatchEvent(new Event(`error`)))})},this.#a=r(e)}async#l(){this.#r!==2&&(this.#r=0,this.dispatchEvent(new Event(`error`)),await u(this.#s.reconnectionTime),this.#r===0&&(this.#s.lastEventId.length&&this.#i.headersList.set(`last-event-id`,this.#s.lastEventId,!0),this.#c()))}close(){a.brandCheck(this,e),this.#r!==2&&(this.#r=2,this.#a.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener(`open`,this.#e.open),typeof e==`function`?(this.#e.open=e,this.addEventListener(`open`,e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener(`message`,this.#e.message),typeof e==`function`?(this.#e.message=e,this.addEventListener(`message`,e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener(`error`,this.#e.error),typeof e==`function`?(this.#e.error=e,this.addEventListener(`error`,e)):this.#e.error=null}};let g={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:0,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:1,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:2,writable:!1}};Object.defineProperties(h,g),Object.defineProperties(h.prototype,g),Object.defineProperties(h.prototype,{close:d,onerror:d,onmessage:d,onopen:d,readyState:d,url:d,withCredentials:d}),a.converters.EventSourceInitDict=a.dictionaryConverter([{key:`withCredentials`,converter:a.converters.boolean,defaultValue:()=>!1},{key:`dispatcher`,converter:a.converters.any}]),t.exports={EventSource:h,defaultReconnectionTime:m}})),vn=z(((e,t)=>{let n=at(),r=Le(),i=lt(),a=ut(),o=dt(),s=ft(),c=pt(),l=ht(),u=Me(),d=H(),{InvalidArgumentError:f}=u,p=wt(),m=Be(),h=kt(),g=Nt(),_=At(),v=Tt(),y=mt(),{getGlobalDispatcher:b,setGlobalDispatcher:x}=Pt(),S=Ft(),C=rt(),w=it();Object.assign(r.prototype,p),t.exports.Dispatcher=r,t.exports.Client=n,t.exports.Pool=i,t.exports.BalancedPool=a,t.exports.Agent=o,t.exports.ProxyAgent=s,t.exports.EnvHttpProxyAgent=c,t.exports.RetryAgent=l,t.exports.RetryHandler=y,t.exports.DecoratorHandler=S,t.exports.RedirectHandler=C,t.exports.createRedirectInterceptor=w,t.exports.interceptors={redirect:It(),retry:Lt(),dump:Rt(),dns:zt()},t.exports.buildConnector=m,t.exports.errors=u,t.exports.util={parseHeaders:d.parseHeaders,headerNameToString:d.headerNameToString};function T(e){return(t,n,r)=>{if(typeof n==`function`&&(r=n,n=null),!t||typeof t!=`string`&&typeof t!=`object`&&!(t instanceof URL))throw new f(`invalid url`);if(n!=null&&typeof n!=`object`)throw new f(`invalid opts`);if(n&&n.path!=null){if(typeof n.path!=`string`)throw new f(`invalid opts.path`);let e=n.path;n.path.startsWith(`/`)||(e=`/${e}`),t=new URL(d.parseOrigin(t).origin+e)}else n||=typeof t==`object`?t:{},t=d.parseURL(t);let{agent:i,dispatcher:a=b()}=n;if(i)throw new f(`unsupported opts.agent. Did you mean opts.client?`);return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?`PUT`:`GET`)},r)}}t.exports.setGlobalDispatcher=x,t.exports.getGlobalDispatcher=b;let E=Wt().fetch;t.exports.fetch=async function(e,t=void 0){try{return await E(e,t)}catch(e){throw e&&typeof e==`object`&&Error.captureStackTrace(e),e}},t.exports.Headers=Bt().Headers,t.exports.Response=Vt().Response,t.exports.Request=Ut().Request,t.exports.FormData=Qe().FormData,t.exports.File=globalThis.File??V(`node:buffer`).File,t.exports.FileReader=Yt().FileReader;let{setGlobalOrigin:D,getGlobalOrigin:O}=Ke();t.exports.setGlobalOrigin=D,t.exports.getGlobalOrigin=O;let{CacheStorage:k}=$t(),{kConstruct:A}=Xt();t.exports.caches=new k(A);let{deleteCookie:j,getCookies:M,getSetCookies:N,setCookie:P}=rn();t.exports.deleteCookie=j,t.exports.getCookies=M,t.exports.getSetCookies=N,t.exports.setCookie=P;let{parseMIMEType:F,serializeAMimeType:ee}=qe();t.exports.parseMIMEType=F,t.exports.serializeAMimeType=ee;let{CloseEvent:te,ErrorEvent:I,MessageEvent:ne}=an();t.exports.WebSocket=mn().WebSocket,t.exports.CloseEvent=te,t.exports.ErrorEvent=I,t.exports.MessageEvent=ne,t.exports.request=T(p.request),t.exports.stream=T(p.stream),t.exports.pipeline=T(p.pipeline),t.exports.connect=T(p.connect),t.exports.upgrade=T(p.upgrade),t.exports.MockClient=h,t.exports.MockPool=_,t.exports.MockAgent=g,t.exports.mockErrors=v;let{EventSource:re}=_n();t.exports.EventSource=re})),yn=B(Ae(),1),bn=vn(),xn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Sn;(function(e){e[e.OK=200]=`OK`,e[e.MultipleChoices=300]=`MultipleChoices`,e[e.MovedPermanently=301]=`MovedPermanently`,e[e.ResourceMoved=302]=`ResourceMoved`,e[e.SeeOther=303]=`SeeOther`,e[e.NotModified=304]=`NotModified`,e[e.UseProxy=305]=`UseProxy`,e[e.SwitchProxy=306]=`SwitchProxy`,e[e.TemporaryRedirect=307]=`TemporaryRedirect`,e[e.PermanentRedirect=308]=`PermanentRedirect`,e[e.BadRequest=400]=`BadRequest`,e[e.Unauthorized=401]=`Unauthorized`,e[e.PaymentRequired=402]=`PaymentRequired`,e[e.Forbidden=403]=`Forbidden`,e[e.NotFound=404]=`NotFound`,e[e.MethodNotAllowed=405]=`MethodNotAllowed`,e[e.NotAcceptable=406]=`NotAcceptable`,e[e.ProxyAuthenticationRequired=407]=`ProxyAuthenticationRequired`,e[e.RequestTimeout=408]=`RequestTimeout`,e[e.Conflict=409]=`Conflict`,e[e.Gone=410]=`Gone`,e[e.TooManyRequests=429]=`TooManyRequests`,e[e.InternalServerError=500]=`InternalServerError`,e[e.NotImplemented=501]=`NotImplemented`,e[e.BadGateway=502]=`BadGateway`,e[e.ServiceUnavailable=503]=`ServiceUnavailable`,e[e.GatewayTimeout=504]=`GatewayTimeout`})(Sn||={});var Cn;(function(e){e.Accept=`accept`,e.ContentType=`content-type`})(Cn||={});var wn;(function(e){e.ApplicationJson=`application/json`})(wn||={});const Tn=[Sn.MovedPermanently,Sn.ResourceMoved,Sn.SeeOther,Sn.TemporaryRedirect,Sn.PermanentRedirect],En=[Sn.BadGateway,Sn.ServiceUnavailable,Sn.GatewayTimeout],Dn=[`OPTIONS`,`GET`,`DELETE`,`HEAD`];var On=class e extends Error{constructor(t,n){super(t),this.name=`HttpClientError`,this.statusCode=n,Object.setPrototypeOf(this,e.prototype)}},kn=class{constructor(e){this.message=e}readBody(){return xn(this,void 0,void 0,function*(){return new Promise(e=>xn(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return xn(this,void 0,void 0,function*(){return new Promise(e=>xn(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}},An=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return xn(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return xn(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return xn(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return xn(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return xn(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return xn(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return xn(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return xn(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return xn(this,arguments,void 0,function*(e,t={}){t[Cn.Accept]=this._getExistingOrDefaultHeader(t,Cn.Accept,wn.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return xn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Cn.Accept]=this._getExistingOrDefaultHeader(n,Cn.Accept,wn.ApplicationJson),n[Cn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,wn.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return xn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Cn.Accept]=this._getExistingOrDefaultHeader(n,Cn.Accept,wn.ApplicationJson),n[Cn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,wn.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return xn(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[Cn.Accept]=this._getExistingOrDefaultHeader(n,Cn.Accept,wn.ApplicationJson),n[Cn.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,wn.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return xn(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&Dn.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===Sn.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&Tn.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!En.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new kn(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=Te(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?h:m;let a=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):a,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},jn(this.requestOptions.headers),jn(e||{})):jn(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=jn(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=jn(this.requestOptions.headers)[Cn.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[Cn.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=Te(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,a=100;if(this.requestOptions&&(a=this.requestOptions.maxSockets||m.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,o=n.protocol===`https:`;r=i?o?yn.httpsOverHttps:yn.httpsOverHttp:o?yn.httpOverHttps:yn.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:a};t=i?new h.Agent(e):new m.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new bn.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return xn(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return xn(this,void 0,void 0,function*(){return new Promise((n,r)=>xn(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===Sn.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new On(e,i);t.result=a.result,r(t)}else n(a)}))})}};const jn=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{});var Mn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Nn=class{constructor(e){this.token=e}prepareRequest(e){if(!e.headers)throw Error(`The request has no headers`);e.headers.Authorization=`Bearer ${this.token}`}canHandleAuthentication(){return!1}handleAuthentication(){return Mn(this,void 0,void 0,function*(){throw Error(`not implemented`)})}},Pn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{access:Fn,appendFile:In,writeFile:Ln}=u,Rn=`GITHUB_STEP_SUMMARY`;new class{constructor(){this._buffer=``}filePath(){return Pn(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Rn];if(!e)throw Error(`Unable to find environment variable for $${Rn}. Check if your runtime environment supports job summaries.`);try{yield Fn(e,c.R_OK|c.W_OK)}catch{throw Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,t,n={}){let r=Object.entries(n).map(([e,t])=>` ${e}="${t}"`).join(``);return t?`<${e}${r}>${t}`:`<${e}${r}>`}write(e){return Pn(this,void 0,void 0,function*(){let t=!!e?.overwrite,n=yield this.filePath();return yield(t?Ln:In)(n,this._buffer,{encoding:`utf8`}),this.emptyBuffer()})}clear(){return Pn(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer=``,this}addRaw(e,t=!1){return this._buffer+=e,t?this.addEOL():this}addEOL(){return this.addRaw(a)}addCodeBlock(e,t){let n=Object.assign({},t&&{lang:t}),r=this.wrap(`pre`,this.wrap(`code`,e),n);return this.addRaw(r).addEOL()}addList(e,t=!1){let n=t?`ol`:`ul`,r=e.map(e=>this.wrap(`li`,e)).join(``),i=this.wrap(n,r);return this.addRaw(i).addEOL()}addTable(e){let t=e.map(e=>{let t=e.map(e=>{if(typeof e==`string`)return this.wrap(`td`,e);let{header:t,data:n,colspan:r,rowspan:i}=e,a=t?`th`:`td`,o=Object.assign(Object.assign({},r&&{colspan:r}),i&&{rowspan:i});return this.wrap(a,n,o)}).join(``);return this.wrap(`tr`,t)}).join(``),n=this.wrap(`table`,t);return this.addRaw(n).addEOL()}addDetails(e,t){let n=this.wrap(`details`,this.wrap(`summary`,e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){let{width:r,height:i}=n||{},a=Object.assign(Object.assign({},r&&{width:r}),i&&{height:i}),o=this.wrap(`img`,null,Object.assign({src:e,alt:t},a));return this.addRaw(o).addEOL()}addHeading(e,t){let n=`h${t}`,r=[`h1`,`h2`,`h3`,`h4`,`h5`,`h6`].includes(n)?n:`h1`,i=this.wrap(r,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap(`hr`,null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap(`br`,null);return this.addRaw(e).addEOL()}addQuote(e,t){let n=Object.assign({},t&&{cite:t}),r=this.wrap(`blockquote`,e,n);return this.addRaw(r).addEOL()}addLink(e,t){let n=this.wrap(`a`,e,{href:t});return this.addRaw(n).addEOL()}};var zn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const{chmod:Bn,copyFile:Vn,lstat:Hn,mkdir:Un,open:Wn,readdir:Gn,rename:Kn,rm:qn,rmdir:Jn,stat:Yn,symlink:Xn,unlink:Zn}=s.promises,Qn=process.platform===`win32`;function $n(e){return zn(this,void 0,void 0,function*(){let t=yield s.promises.readlink(e);return Qn&&!t.endsWith(`\\`)?`${t}\\`:t})}s.constants.O_RDONLY;function er(e){return zn(this,void 0,void 0,function*(){try{yield Yn(e)}catch(e){if(e.code===`ENOENT`)return!1;throw e}return!0})}function tr(e){if(e=rr(e),!e)throw Error(`isRooted() parameter "p" cannot be empty`);return Qn?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function nr(e,t){return zn(this,void 0,void 0,function*(){let n;try{n=yield Yn(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Qn){let n=p.extname(e).toUpperCase();if(t.some(e=>e.toUpperCase()===n))return e}else if(ir(n))return e}let r=e;for(let i of t){e=r+i,n=void 0;try{n=yield Yn(e)}catch(t){t.code!==`ENOENT`&&console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}if(n&&n.isFile()){if(Qn){try{let t=p.dirname(e),n=p.basename(e).toUpperCase();for(let r of yield Gn(t))if(n===r.toUpperCase()){e=p.join(t,r);break}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else if(ir(n))return e}}return``})}function rr(e){return e||=``,Qn?(e=e.replace(/\//g,`\\`),e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function ir(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==void 0&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==void 0&&e.uid===process.getuid()}var ar=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function or(e,t){return ar(this,arguments,void 0,function*(e,t,n={}){let{force:r,recursive:i,copySourceDirectory:a}=dr(n),o=(yield er(t))?yield Yn(t):null;if(o&&o.isFile()&&!r)return;let s=o&&o.isDirectory()&&a?p.join(t,p.basename(e)):t;if(!(yield er(e)))throw Error(`no such file or directory: ${e}`);if((yield Yn(e)).isDirectory())if(i)yield fr(e,s,0,r);else throw Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`);else{if(p.relative(e,s)===``)throw Error(`'${s}' and '${e}' are the same file`);yield pr(e,s,r)}})}function sr(e){return ar(this,void 0,void 0,function*(){if(Qn&&/[*"<>|]/.test(e))throw Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows');try{yield qn(e,{force:!0,maxRetries:3,recursive:!0,retryDelay:300})}catch(e){throw Error(`File was unable to be removed ${e}`)}})}function cr(e){return ar(this,void 0,void 0,function*(){y(e,`a path argument must be provided`),yield Un(e,{recursive:!0})})}function lr(e,t){return ar(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);if(t){let t=yield lr(e,!1);if(!t)throw Error(Qn?`Unable to locate executable file: ${e}. 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.`:`Unable to locate executable file: ${e}. 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 t}let n=yield ur(e);return n&&n.length>0?n[0]:``})}function ur(e){return ar(this,void 0,void 0,function*(){if(!e)throw Error(`parameter 'tool' is required`);let t=[];if(Qn&&process.env.PATHEXT)for(let e of process.env.PATHEXT.split(p.delimiter))e&&t.push(e);if(tr(e)){let n=yield nr(e,t);return n?[n]:[]}if(e.includes(p.sep))return[];let n=[];if(process.env.PATH)for(let e of process.env.PATH.split(p.delimiter))e&&n.push(e);let r=[];for(let i of n){let n=yield nr(p.join(i,e),t);n&&r.push(n)}return r})}function dr(e){return{force:e.force==null?!0:e.force,recursive:!!e.recursive,copySourceDirectory:e.copySourceDirectory==null?!0:!!e.copySourceDirectory}}function fr(e,t,n,r){return ar(this,void 0,void 0,function*(){if(n>=255)return;n++,yield cr(t);let i=yield Gn(e);for(let a of i){let i=`${e}/${a}`,o=`${t}/${a}`;(yield Hn(i)).isDirectory()?yield fr(i,o,n,r):yield pr(i,o,r)}yield Bn(t,(yield Yn(e)).mode)})}function pr(e,t,n){return ar(this,void 0,void 0,function*(){if((yield Hn(e)).isSymbolicLink()){try{yield Hn(t),yield Zn(t)}catch(e){e.code===`EPERM`&&(yield Bn(t,`0666`),yield Zn(t))}yield Xn(yield $n(e),t,Qn?`junction`:null)}else (!(yield er(t))||n)&&(yield Vn(e,t))})}var mr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const hr=process.platform===`win32`;var gr=class extends g.EventEmitter{constructor(e,t,n){if(super(),!e)throw Error(`Parameter 'toolPath' cannot be null or empty.`);this.toolPath=e,this.args=t||[],this.options=n||{}}_debug(e){this.options.listeners&&this.options.listeners.debug&&this.options.listeners.debug(e)}_getCommandString(e,t){let n=this._getSpawnFileName(),r=this._getSpawnArgs(e),i=t?``:`[command]`;if(hr)if(this._isCmdFile()){i+=n;for(let e of r)i+=` ${e}`}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(let e of r)i+=` ${e}`}else{i+=this._windowsQuoteCmdArg(n);for(let e of r)i+=` ${this._windowsQuoteCmdArg(e)}`}else{i+=n;for(let e of r)i+=` ${e}`}return i}_processLineBuffer(e,t,n){try{let i=t+e.toString(),a=i.indexOf(r.EOL);for(;a>-1;)n(i.substring(0,a)),i=i.substring(a+r.EOL.length),a=i.indexOf(r.EOL);return i}catch(e){return this._debug(`error processing line. Failed with error ${e}`),``}}_getSpawnFileName(){return hr&&this._isCmdFile()?process.env.COMSPEC||`cmd.exe`:this.toolPath}_getSpawnArgs(e){if(hr&&this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(let n of this.args)t+=` `,t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n);return t+=`"`,[t]}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){let e=this.toolPath.toUpperCase();return this._endsWith(e,`.CMD`)||this._endsWith(e,`.BAT`)}_windowsQuoteCmdArg(e){if(!this._isCmdFile())return this._uvQuoteCmdArg(e);if(!e)return`""`;let t=[` `,` `,`&`,`(`,`)`,`[`,`]`,`{`,`}`,`^`,`=`,`;`,`!`,`'`,`+`,`,`,"`",`~`,`|`,`<`,`>`,`"`],n=!1;for(let r of e)if(t.some(e=>e===r)){n=!0;break}if(!n)return e;let r=`"`,i=!0;for(let t=e.length;t>0;t--)r+=e[t-1],i&&e[t-1]===`\\`?r+=`\\`:e[t-1]===`"`?(i=!0,r+=`"`):i=!1;return r+=`"`,r.split(``).reverse().join(``)}_uvQuoteCmdArg(e){if(!e)return`""`;if(!e.includes(` `)&&!e.includes(` `)&&!e.includes(`"`))return e;if(!e.includes(`"`)&&!e.includes(`\\`))return`"${e}"`;let t=`"`,n=!0;for(let r=e.length;r>0;r--)t+=e[r-1],n&&e[r-1]===`\\`?t+=`\\`:e[r-1]===`"`?(n=!0,t+=`\\`):n=!1;return t+=`"`,t.split(``).reverse().join(``)}_cloneExecOptions(e){e||={};let t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||!1,windowsVerbatimArguments:e.windowsVerbatimArguments||!1,failOnStdErr:e.failOnStdErr||!1,ignoreReturnCode:e.ignoreReturnCode||!1,delay:e.delay||1e4};return t.outStream=e.outStream||process.stdout,t.errStream=e.errStream||process.stderr,t}_getSpawnOptions(e,t){e||={};let n={};return n.cwd=e.cwd,n.env=e.env,n.windowsVerbatimArguments=e.windowsVerbatimArguments||this._isCmdFile(),e.windowsVerbatimArguments&&(n.argv0=`"${t}"`),n}exec(){return mr(this,void 0,void 0,function*(){return!tr(this.toolPath)&&(this.toolPath.includes(`/`)||hr&&this.toolPath.includes(`\\`))&&(this.toolPath=p.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)),this.toolPath=yield lr(this.toolPath,!0),new Promise((e,t)=>mr(this,void 0,void 0,function*(){this._debug(`exec tool: ${this.toolPath}`),this._debug(`arguments:`);for(let e of this.args)this._debug(` ${e}`);let n=this._cloneExecOptions(this.options);!n.silent&&n.outStream&&n.outStream.write(this._getCommandString(n)+r.EOL);let i=new vr(n,this.toolPath);if(i.on(`debug`,e=>{this._debug(e)}),this.options.cwd&&!(yield er(this.options.cwd)))return t(Error(`The cwd: ${this.options.cwd} does not exist!`));let a=this._getSpawnFileName(),o=j.spawn(a,this._getSpawnArgs(n),this._getSpawnOptions(this.options,a)),s=``;o.stdout&&o.stdout.on(`data`,e=>{this.options.listeners&&this.options.listeners.stdout&&this.options.listeners.stdout(e),!n.silent&&n.outStream&&n.outStream.write(e),s=this._processLineBuffer(e,s,e=>{this.options.listeners&&this.options.listeners.stdline&&this.options.listeners.stdline(e)})});let c=``;if(o.stderr&&o.stderr.on(`data`,e=>{i.processStderr=!0,this.options.listeners&&this.options.listeners.stderr&&this.options.listeners.stderr(e),!n.silent&&n.errStream&&n.outStream&&(n.failOnStdErr?n.errStream:n.outStream).write(e),c=this._processLineBuffer(e,c,e=>{this.options.listeners&&this.options.listeners.errline&&this.options.listeners.errline(e)})}),o.on(`error`,e=>{i.processError=e.message,i.processExited=!0,i.processClosed=!0,i.CheckComplete()}),o.on(`exit`,e=>{i.processExitCode=e,i.processExited=!0,this._debug(`Exit code ${e} received from tool '${this.toolPath}'`),i.CheckComplete()}),o.on(`close`,e=>{i.processExitCode=e,i.processExited=!0,i.processClosed=!0,this._debug(`STDIO streams have closed for tool '${this.toolPath}'`),i.CheckComplete()}),i.on(`done`,(n,r)=>{s.length>0&&this.emit(`stdline`,s),c.length>0&&this.emit(`errline`,c),o.removeAllListeners(),n?t(n):e(r)}),this.options.input){if(!o.stdin)throw Error(`child process missing stdin`);o.stdin.end(this.options.input)}}))})}};function _r(e){let t=[],n=!1,r=!1,i=``;function a(e){r&&e!==`"`&&(i+=`\\`),i+=e,r=!1}for(let o=0;o0&&(t.push(i),i=``);continue}a(s)}return i.length>0&&t.push(i.trim()),t}var vr=class e extends g.EventEmitter{constructor(e,t){if(super(),this.processClosed=!1,this.processError=``,this.processExitCode=0,this.processExited=!1,this.processStderr=!1,this.delay=1e4,this.done=!1,this.timeout=null,!t)throw Error(`toolPath must not be empty`);this.options=e,this.toolPath=t,e.delay&&(this.delay=e.delay)}CheckComplete(){this.done||(this.processClosed?this._setResult():this.processExited&&(this.timeout=M(e.HandleTimeout,this.delay,this)))}_debug(e){this.emit(`debug`,e)}_setResult(){let e;this.processExited&&(this.processError?e=Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`):this.processExitCode!==0&&!this.options.ignoreReturnCode?e=Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`):this.processStderr&&this.options.failOnStdErr&&(e=Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`))),this.timeout&&=(clearTimeout(this.timeout),null),this.done=!0,this.emit(`done`,e,this.processExitCode)}static HandleTimeout(e){if(!e.done){if(!e.processClosed&&e.processExited){let t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}},yr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function br(e,t,n){return yr(this,void 0,void 0,function*(){let r=_r(e);if(r.length===0)throw Error(`Parameter 'commandLine' cannot be null or empty.`);let i=r[0];return t=r.slice(1).concat(t||[]),new gr(i,t,n).exec()})}function xr(e,t,n){return yr(this,void 0,void 0,function*(){let r=``,i=``,a=new A(`utf8`),o=new A(`utf8`),s=n?.listeners?.stdout,c=n?.listeners?.stderr,l=Object.assign(Object.assign({},n?.listeners),{stdout:e=>{r+=a.write(e),s&&s(e)},stderr:e=>{i+=o.write(e),c&&c(e)}}),u=yield br(e,t,Object.assign(Object.assign({},n),{listeners:l}));return r+=a.end(),i+=o.end(),{exitCode:u,stdout:r,stderr:i}})}i.platform(),i.arch();var Sr=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Cr;(function(e){e[e.Success=0]=`Success`,e[e.Failure=1]=`Failure`})(Cr||={});function wr(e,t){let n=ge(t);if(process.env[e]=n,process.env.GITHUB_ENV)return Ce(`ENV`,we(e,t));ve(`set-env`,{name:e},n)}function Tr(e){ve(`add-mask`,{},e)}function Er(e){process.env.GITHUB_PATH?Ce(`PATH`,e):ve(`add-path`,{},e),process.env.PATH=`${e}${p.delimiter}${process.env.PATH}`}function Dr(e,t){let n=process.env[`INPUT_${e.replace(/ /g,`_`).toUpperCase()}`]||``;if(t&&t.required&&!n)throw Error(`Input required and not supplied: ${e}`);return t&&t.trimWhitespace===!1?n:n.trim()}function Or(e,t){let n=[`true`,`True`,`TRUE`],r=[`false`,`False`,`FALSE`],i=Dr(e,t);if(n.includes(i))return!0;if(r.includes(i))return!1;throw TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\nSupport boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function kr(){return process.env.RUNNER_DEBUG===`1`}function U(e){ve(`debug`,{},e)}function Ar(e,t={}){ve(`error`,_e(t),e instanceof Error?e.toString():e)}function jr(e,t={}){ve(`warning`,_e(t),e instanceof Error?e.toString():e)}function Mr(e,t={}){ve(`notice`,_e(t),e instanceof Error?e.toString():e)}function Nr(e){process.stdout.write(e+r.EOL)}function Pr(e){ye(`group`,e)}function Fr(){ye(`endgroup`)}function Ir(e,t){return Sr(this,void 0,void 0,function*(){Pr(e);let n;try{n=yield t()}finally{Fr()}return n})}function Lr(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,U(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,U(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,U(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,U(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,U(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const Rr=process.platform===`win32`;function zr(e){if(e=Wr(e),Rr&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=p.dirname(e);return Rr&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=Wr(t)),t}function Br(e,t){if(v(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),v(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),Vr(t))return t;if(Rr){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return v(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(Ur(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return v(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return v(Vr(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||Rr&&e.endsWith(`\\`)||(e+=p.sep),e+t}function Vr(e){return v(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=Ur(e),Rr?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function Hr(e){return v(e,`isRooted parameter 'itemPath' must not be empty`),e=Ur(e),Rr?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function Ur(e){return e||=``,Rr?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function Wr(e){return e?(e=Ur(e),!e.endsWith(p.sep)||e===p.sep||Rr&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var Gr;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(Gr||={});const Kr=process.platform===`win32`;function qr(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=Kr?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=Kr?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=zr(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=zr(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function Jr(e,t){let n=Gr.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function Yr(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}var Xr=z(((e,t)=>{t.exports=function(e,t){for(var r=[],i=0;i{t.exports=n;function n(e,t,n){e instanceof RegExp&&(e=r(e,n)),t instanceof RegExp&&(t=r(t,n));var a=i(e,t,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+e.length,a[1]),post:n.slice(a[1]+t.length)}}function r(e,t){var n=t.match(e);return n?n[0]:null}n.range=i;function i(e,t,n){var r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;)u==c?(r.push(u),c=n.indexOf(e,u+1)):r.length==1?s=[r.pop(),l]:(i=r.pop(),i=0?c:l;r.length&&(s=[a,o])}return s}})),Qr=z(((e,t)=>{var n=Xr(),r=Zr();t.exports=p;var i=`\0SLASH`+Math.random()+`\0`,a=`\0OPEN`+Math.random()+`\0`,o=`\0CLOSE`+Math.random()+`\0`,s=`\0COMMA`+Math.random()+`\0`,c=`\0PERIOD`+Math.random()+`\0`;function l(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function u(e){return e.split(`\\\\`).join(i).split(`\\{`).join(a).split(`\\}`).join(o).split(`\\,`).join(s).split(`\\.`).join(c)}function d(e){return e.split(i).join(`\\`).split(a).join(`{`).split(o).join(`}`).split(s).join(`,`).split(c).join(`.`)}function f(e){if(!e)return[``];var t=[],n=r(`{`,`}`,e);if(!n)return e.split(`,`);var i=n.pre,a=n.body,o=n.post,s=i.split(`,`);s[s.length-1]+=`{`+a+`}`;var c=f(o);return o.length&&(s[s.length-1]+=c.shift(),s.push.apply(s,c)),t.push.apply(t,s),t}function p(e,t){if(!e)return[];t||={};var n=t.max==null?1/0:t.max;return e.substr(0,2)===`{}`&&(e=`\\{\\}`+e.substr(2)),v(u(e),n,!0).map(d)}function m(e){return`{`+e+`}`}function h(e){return/^-?0\d/.test(e)}function g(e,t){return e<=t}function _(e,t){return e>=t}function v(e,t,i){var a=[],s=r(`{`,`}`,e);if(!s||/\$$/.test(s.pre))return[e];var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),d=c||u,p=s.body.indexOf(`,`)>=0;if(!d&&!p)return s.post.match(/,(?!,).*\}/)?(e=s.pre+`{`+s.body+o+s.post,v(e,t,!0)):[e];var y;if(d)y=s.body.split(/\.\./);else if(y=f(s.body),y.length===1&&(y=v(y[0],t,!1).map(m),y.length===1)){var b=s.post.length?v(s.post,t,!1):[``];return b.map(function(e){return s.pre+y[0]+e})}var x=s.pre,b=s.post.length?v(s.post,t,!1):[``],S;if(d){var C=l(y[0]),w=l(y[1]),T=Math.max(y[0].length,y[1].length),E=y.length==3?Math.max(Math.abs(l(y[2])),1):1,D=g;w0){var M=Array(j+1).join(`0`);A=k<0?`-`+M+A.slice(1):M+A}}S.push(A)}}else S=n(y,function(e){return v(e,t,!1)});for(var N=0;N{t.exports=h,h.Minimatch=g;var n=function(){try{return V(`path`)}catch{}}()||{sep:`/`};h.sep=n.sep;var r=h.GLOBSTAR=g.GLOBSTAR={},i=Qr(),a={"!":{open:`(?:(?!(?:`,close:`))[^/]*?)`},"?":{open:`(?:`,close:`)?`},"+":{open:`(?:`,close:`)+`},"*":{open:`(?:`,close:`)*`},"@":{open:`(?:`,close:`)`}},o=`[^/]`,s=o+`*?`,c=`(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?`,l=`(?:(?!(?:\\/|^)\\.).)*?`,u=d(`().*{}+?[]^$\\!`);function d(e){return e.split(``).reduce(function(e,t){return e[t]=!0,e},{})}var f=/\/+/;h.filter=p;function p(e,t){return t||={},function(n,r,i){return h(n,e,t)}}function m(e,t){t||={};var n={};return Object.keys(e).forEach(function(t){n[t]=e[t]}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}h.defaults=function(e){if(!e||typeof e!=`object`||!Object.keys(e).length)return h;var t=h,n=function(n,r,i){return t(n,r,m(e,i))};return n.Minimatch=function(n,r){return new t.Minimatch(n,m(e,r))},n.Minimatch.defaults=function(n){return t.defaults(m(e,n)).Minimatch},n.filter=function(n,r){return t.filter(n,m(e,r))},n.defaults=function(n){return t.defaults(m(e,n))},n.makeRe=function(n,r){return t.makeRe(n,m(e,r))},n.braceExpand=function(n,r){return t.braceExpand(n,m(e,r))},n.match=function(n,r,i){return t.match(n,r,m(e,i))},n},g.defaults=function(e){return h.defaults(e).Minimatch};function h(e,t,n){return x(t),n||={},!n.nocomment&&t.charAt(0)===`#`?!1:new g(t,n).match(e)}function g(e,t){if(!(this instanceof g))return new g(e,t);x(e),t||={},e=e.trim(),!t.allowWindowsEscape&&n.sep!==`/`&&(e=e.split(n.sep).join(`/`)),this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion===void 0?200:t.maxGlobstarRecursion,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.make()}g.prototype.debug=function(){},g.prototype.make=_;function _(){var e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate();var n=this.globSet=this.braceExpand();t.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,n),n=this.globParts=n.map(function(e){return e.split(f)}),this.debug(this.pattern,n),n=n.map(function(e,t,n){return e.map(this.parse,this)},this),this.debug(this.pattern,n),n=n.filter(function(e){return e.indexOf(!1)===-1}),this.debug(this.pattern,n),this.set=n}g.prototype.parseNegate=v;function v(){var e=this.pattern,t=!1,n=this.options,r=0;if(!n.nonegate){for(var i=0,a=e.length;ib)throw TypeError(`pattern is too long`)};g.prototype.parse=C;var S={};function C(e,t){x(e);var n=this.options;if(e===`**`)if(n.noglobstar)e=`*`;else return r;if(e===``)return``;var i=``,c=!!n.nocase,l=!1,d=[],f=[],p,m=!1,h=-1,g=-1,_=e.charAt(0)===`.`?``:n.dot?`(?!(?:^|\\/)\\.{1,2}(?:$|\\/))`:`(?!\\.)`,v=this;function y(){if(p){switch(p){case`*`:i+=s,c=!0;break;case`?`:i+=o,c=!0;break;default:i+=`\\`+p;break}v.debug(`clearStateChar %j %j`,p,i),p=!1}}for(var b=0,C=e.length,w;b-1;M--){var N=f[M],P=i.slice(0,N.reStart),F=i.slice(N.reStart,N.reEnd-8),ee=i.slice(N.reEnd-8,N.reEnd),te=i.slice(N.reEnd);ee+=te;var I=P.split(`(`).length-1,ne=te;for(b=0;b=0&&(a=e[o],!a);o--);for(o=0;o=0;o--)if(t[o]===r){c=o;break}var l=t.slice(a,s),u=n?t.slice(s+1):t.slice(s+1,c),d=n?[]:t.slice(c+1);if(l.length){var f=e.slice(i,i+l.length);if(!this._matchOne(f,l,n,0,0))return!1;i+=l.length}var p=0;if(d.length){if(d.length+i>e.length)return!1;var m=e.length-d.length;if(this._matchOne(e,d,n,m,0))p=d.length;else{if(e[e.length-1]!==``||i+d.length===e.length||(m--,!this._matchOne(e,d,n,m,0)))return!1;p=d.length+1}}if(!u.length){var h=!!p;for(o=i;o0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new ti(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),ri?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:ri,nocomment:!0,noext:!0,nonegate:!0};a=ri?a.replace(/\\/g,`/`):a,this.minimatch=new ni(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=Ur(e),!e.endsWith(p.sep)&&this.isImplicitPattern===!1&&(e=`${e}${p.sep}`)):e=Wr(e),this.minimatch.match(e)?this.trailingSeparator?Gr.Directory:Gr.All:Gr.None}partialMatch(e){return e=Wr(e),zr(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(ri?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(ri?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(t,n){v(t,`pattern cannot be empty`);let i=new ti(t).segments.map(t=>e.getLiteral(t));if(v(i.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${t}'. Relative pathing '.' and '..' is not allowed.`),v(!Hr(t)||i[0],`Invalid pattern '${t}'. Root segment must not contain globs.`),t=Ur(t),t===`.`||t.startsWith(`.${p.sep}`))t=e.globEscape(process.cwd())+t.substr(1);else if(t===`~`||t.startsWith(`~${p.sep}`))n||=r.homedir(),v(n,`Unable to determine HOME directory`),v(Vr(n),`Expected HOME directory to be a rooted path. Actual '${n}'`),t=e.globEscape(n)+t.substr(1);else if(ri&&(t.match(/^[A-Z]:$/i)||t.match(/^[A-Z]:[^\\]/i))){let n=Br(`C:\\dummy-root`,t.substr(0,2));t.length>2&&!n.endsWith(`\\`)&&(n+=`\\`),t=e.globEscape(n)+t.substr(2)}else if(ri&&(t===`\\`||t.match(/^\\[^\\]/))){let n=Br(`C:\\dummy-root`,`\\`);n.endsWith(`\\`)||(n+=`\\`),t=e.globEscape(n)+t.substr(1)}else t=Br(e.globEscape(process.cwd()),t);return Ur(t)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},ai=class{constructor(e,t){this.path=e,this.level=t}},oi=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},si=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},ci=function(e){return this instanceof ci?(this.v=e,this):new ci(e)},li=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof ci?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const ui=process.platform===`win32`;var di=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=Lr(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return oi(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=si(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return li(this,arguments,function*(){let t=Lr(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new ii(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of qr(n)){U(`Search path '${e}'`);try{yield ci(s.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new ai(e,1))}let i=[];for(;r.length;){let a=r.pop(),o=Jr(n,a.path),c=!!o||Yr(n,a.path);if(!o&&!c)continue;let l=yield ci(e.stat(a,t,i));if(l&&!(t.excludeHiddenFiles&&p.basename(a.path).match(/^\./)))if(l.isDirectory()){if(o&Gr.Directory&&t.matchDirectories)yield yield ci(a.path);else if(!c)continue;let e=a.level+1,n=(yield ci(s.promises.readdir(a.path))).map(t=>new ai(p.join(a.path,t),e));r.push(...n.reverse())}else o&Gr.File&&(yield yield ci(a.path))}})}static create(t,n){return oi(this,void 0,void 0,function*(){let r=new e(n);ui&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new ai(e));return r.searchPaths.push(...Jr(r.patterns)),r})}static stat(e,t,n){return si(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield s.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){H(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield s.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield s.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){H(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},pi=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function mi(e,t){return pi(this,void 0,void 0,function*(){return yield fi.create(e,t)})}var hi=R(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),gi=R(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),_i=R(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=hi(),a=gi();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),vi=R(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),yi=R(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),bi=R(((e,t)=>{let n=gi(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=hi(),{safeRe:a,t:o}=_i(),s=vi(),{compareIdentifiers:c}=yi();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),xi=R(((e,t)=>{let n=bi();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),Si=R(((e,t)=>{let n=xi();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Ci=R(((e,t)=>{let n=xi();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),wi=R(((e,t)=>{let n=bi();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),Ti=R(((e,t)=>{let n=xi();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Ei=R(((e,t)=>{let n=bi();t.exports=(e,t)=>new n(e,t).major})),Di=R(((e,t)=>{let n=bi();t.exports=(e,t)=>new n(e,t).minor})),Oi=R(((e,t)=>{let n=bi();t.exports=(e,t)=>new n(e,t).patch})),ki=R(((e,t)=>{let n=xi();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Ai=R(((e,t)=>{let n=bi();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),ji=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(t,e,r)})),Mi=R(((e,t)=>{let n=Ai();t.exports=(e,t)=>n(e,t,!0)})),Ni=R(((e,t)=>{let n=bi();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Pi=R(((e,t)=>{let n=Ni();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Fi=R(((e,t)=>{let n=Ni();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Ii=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)>0})),Li=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)<0})),Ri=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)===0})),zi=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)!==0})),Bi=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)>=0})),Vi=R(((e,t)=>{let n=Ai();t.exports=(e,t,r)=>n(e,t,r)<=0})),Hi=R(((e,t)=>{let n=Ri(),r=zi(),i=Ii(),a=Bi(),o=Li(),s=Vi();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Ui=R(((e,t)=>{let n=bi(),r=xi(),{safeRe:i,t:a}=_i();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),Wi=R(((e,t)=>{let n=xi(),r=hi(),i=bi(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),Gi=R(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),Ki=R(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),qi=R(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=vi(),{safeRe:i,t:a}=_i(),o=Hi(),s=gi(),c=bi(),l=Ki()})),Ji=R(((e,t)=>{let n=Ki();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Yi=R(((e,t)=>{let n=Ki();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Xi=R(((e,t)=>{let n=bi(),r=Ki();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),Zi=R(((e,t)=>{let n=bi(),r=Ki();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),Qi=R(((e,t)=>{let n=bi(),r=Ki(),i=Ii();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),$i=R(((e,t)=>{let n=Ki();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),ea=R(((e,t)=>{let n=bi(),r=qi(),{ANY:i}=r,a=Ki(),o=Ji(),s=Ii(),c=Li(),l=Vi(),u=Bi();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ta=R(((e,t)=>{let n=ea();t.exports=(e,t,r)=>n(e,t,`>`,r)})),na=R(((e,t)=>{let n=ea();t.exports=(e,t,r)=>n(e,t,`<`,r)})),ra=R(((e,t)=>{let n=Ki();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),ia=R(((e,t)=>{let n=Ji(),r=Ai();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=Ki(),r=qi(),{ANY:i}=r,a=Ji(),o=Ai(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),oa=z(R(((e,t)=>{let n=_i(),r=hi(),i=bi(),a=yi();t.exports={parse:xi(),valid:Si(),clean:Ci(),inc:wi(),diff:Ti(),major:Ei(),minor:Di(),patch:Oi(),prerelease:ki(),compare:Ai(),rcompare:ji(),compareLoose:Mi(),compareBuild:Ni(),sort:Pi(),rsort:Fi(),gt:Ii(),lt:Li(),eq:Ri(),neq:zi(),gte:Bi(),lte:Vi(),cmp:Hi(),coerce:Ui(),truncate:Wi(),Comparator:qi(),Range:Ki(),satisfies:Ji(),toComparators:Yi(),maxSatisfying:Xi(),minSatisfying:Zi(),minVersion:Qi(),validRange:$i(),outside:ea(),gtr:ta(),ltr:na(),intersects:ra(),simplifyRange:ia(),subset:aa(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),sa;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(sa||={});var ca;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(ca||={});var la;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(la||={});const ua=5e3,da=5e3,fa=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,pa=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,ma=`cache.tar`,ha=`manifest.txt`;var ga=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},_a=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function va(){return ga(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=p.join(n,`actions`,`temp`)}let n=p.join(t,o.randomUUID());return yield lr(n),n})}function ya(e){return s.statSync(e).size}function ba(e){return ga(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield mi(e.join(` -`),{implicitDescendants:!1});try{for(var c=!0,l=_a(s.globGenerator()),u;u=yield l.next(),t=u.done,!t;c=!0){i=u.value,c=!1;let e=i,t=p.relative(o,e).replace(RegExp(`\\${p.sep}`,`g`),`/`);H(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function xa(e){return ga(this,void 0,void 0,function*(){return b.promisify(s.unlink)(e)})}function Sa(e){return ga(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),H(`Checking ${e} ${t.join(` `)}`);try{yield xr(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){H(e.message)}return n=n.trim(),H(n),n})}function Ca(){return ga(this,void 0,void 0,function*(){let e=yield Sa(`zstd`,[`--quiet`]);return H(`zstd version: ${oa.clean(e)}`),e===``?ca.Gzip:ca.ZstdWithoutLong})}function wa(e){return e===ca.Gzip?sa.Gzip:sa.Zstd}function Ta(){return ga(this,void 0,void 0,function*(){return s.existsSync(fa)?fa:(yield Sa(`tar`)).toLowerCase().includes(`gnu tar`)?ur(`tar`):``})}function Ea(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Da(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),o.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Oa(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var ka=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function Aa(e,...t){n.stderr.write(`${T.format(e,...t)}${F}`)}const ja=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let Ma,Na=[],Pa=[];const Fa=[];ja&&La(ja);const Ia=Object.assign(e=>Va(e),{enable:La,enabled:Ra,disable:Ba,log:Aa});function La(e){Ma=e,Na=[],Pa=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Pa.push(e.substring(1)):Na.push(e);for(let e of Fa)e.enabled=Ra(e.namespace)}function Ra(e){if(e.endsWith(`*`))return!0;for(let t of Pa)if(za(e,t))return!1;for(let t of Na)if(za(e,t))return!0;return!1}function za(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function Ba(){let e=Ma||``;return La(``),e}function Va(e){let t=Object.assign(n,{enabled:Ra(e),destroy:Ha,log:Ia.log,namespace:e,extend:Ua});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Fa.push(t),t}function Ha(){let e=Fa.indexOf(this);return e>=0?(Fa.splice(e,1),!0):!1}function Ua(e){let t=Va(`${this.namespace}:${e}`);return t.log=this.log,t}const Wa=[`verbose`,`info`,`warning`,`error`],Ga={verbose:400,info:300,warning:200,error:100};function Ka(e,t){t.log=(...t)=>{e.log(...t)}}function qa(e){return Wa.includes(e)}function Ja(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Ia(e.namespace);i.log=(...e)=>{Ia.log(...e)};function a(e){if(e&&!qa(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${Wa.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Ia.enable(n.join(`,`))}n&&(qa(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${Wa.join(`, `)}.`));function o(e){return!!(r&&Ga[e.level]<=Ga[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(Ka(e,r),o(r)){let e=Ia.disable();Ia.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return Ka(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const Ya=Ja({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});Ya.logger;function Xa(e){return Ya.createClientLogger(e)}function Za(e){return e.toLowerCase()}function*Qa(e){for(let t of e.values())yield[t.name,t.value]}var $a=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(Za(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(Za(e))?.value}has(e){return this._headersMap.has(Za(e))}delete(e){this._headersMap.delete(Za(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return Qa(this._headersMap)}};function eo(e){return new $a(e)}function to(){return crypto.randomUUID()}var no=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??eo(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||to(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function ro(e){return new no(e)}const io=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var ao=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!io.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!io.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function oo(){return ao.create()}function so(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function co(e){if(so(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const lo=E.custom,uo=`REDACTED`,fo=`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`.split(`.`),po=[`api-version`];var mo=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=fo.concat(e),t=po.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&so(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&so(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||so(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,uo);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=uo;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=uo;return t}};const ho=new mo;var go=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,lo,{value:()=>`RestError: ${this.message} \n ${ho.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function _o(e){return e instanceof go?!0:co(e)&&e.name===`RestError`}function vo(e,t){return Buffer.from(e,t)}const yo=Xa(`ts-http-runtime`),bo={};function xo(e){return e&&typeof e.pipe==`function`}function So(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function Co(e){return e&&typeof e.byteLength==`number`}var wo=class extends C{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},To=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ka(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new mo;yo.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=ko(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new wo(t);n.on(`error`,e=>{yo.error(`Error in upload progress`,e)}),xo(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=Eo(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Do(n,i):n;let l=e.onDownloadProgress;if(l){let e=new wo(l);e.on(`error`,e=>{yo.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Oo(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();xo(o)&&(t=So(o));let r=Promise.resolve();xo(s)&&(r=So(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{yo.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?x.request(a,r):oe.request(a,r);s.once(`error`,t=>{o(new go(t.message,{code:t.code??go.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new ka(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&xo(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):Co(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(yo.error(`Unrecognized body type`,n),o(new go(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?x.globalAgent:(this.cachedHttpAgent||=new x.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return oe.globalAgent;let t=e.tlsSettings??bo,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(yo.info(`No cached TLS Agent exist, creating a new Agent`),r=new oe.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function Eo(e){let t=eo();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Do(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=D.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=D.createInflate();return e.pipe(t),t}return e}function Oo(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new go(`Error reading response as text: ${e.message}`,{code:go.PARSE_ERROR}))})})}function ko(e){return e?Buffer.isBuffer(e)?e.length:xo(e)?null:Co(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function Ao(){return new To}function jo(){return Ao()}function Mo(e={}){let t=e.logger??yo.info,n=new mo({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const No=[`GET`,`HEAD`];function Po(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Fo(r,await r(e),t,n)}}}async function Fo(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&No.includes(a.method)||o===302&&No.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new ka(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function Bo(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const Vo=`Retry-After`,Ho=[`retry-after-ms`,`x-ms-retry-after-ms`,Vo];function Uo(e){if(e&&[429,503].includes(e.status))try{for(let t of Ho){let n=Bo(e,t);if(n===0||n)return n*(t===Vo?1e3:1)}let t=e.headers.get(Vo);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function Wo(e){return Number.isFinite(Uo(e))}function Go(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=Uo(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function Ko(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=Jo(a),s=o&&e.ignoreSystemErrors,c=qo(i),l=c&&e.ignoreHttpStatusCodes;return i&&(Wo(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Ro(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function qo(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function Jo(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const Yo=Xa(`ts-http-runtime retryPolicy`);function Xo(e,t={maxRetries:3}){let n=t.logger||Yo;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!_o(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new ka;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await zo(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function Zo(e={}){return{name:`defaultRetryPolicy`,sendRequest:Xo([Go(),Ko(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const Qo=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function $o(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function es(){return{name:`formDataPolicy`,async sendRequest(e,t){if(Qo&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=$o(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=ts(e.formData):await ns(e.formData,e),e.formData=void 0}return t(e)}}}function ts(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function ns(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:eo({"Content-Disposition":`form-data; name="${t}"`}),body:vo(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=eo();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var rs=R(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),is=R(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=rs(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),as=R(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.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`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=is()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),os=R(((e,t)=>{let n=B(`tty`),r=B(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=B(`supports-color`);t&&(t.stderr||t).level>=2&&(e.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{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new ii(e));return r.searchPaths.push(...qr(r.patterns)),r})}static stat(e,t,n){return oi(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield s.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){U(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield s.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield s.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){U(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},fi=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function pi(e,t){return fi(this,void 0,void 0,function*(){return yield di.create(e,t)})}var mi=z(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),hi=z(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),gi=z(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=mi(),a=hi();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.safeSrc=[],u=e.t={},d=0,f=`[a-zA-Z0-9-]`,p=[[`\\s`,1],[`\\d`,i],[f,r]],m=e=>{for(let[t,n]of p)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},h=(e,t,n)=>{let r=m(t),i=d++;a(e,i,t),u[e]=i,c[i]=t,l[i]=r,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};h(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),h(`NUMERICIDENTIFIERLOOSE`,`\\d+`),h(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${f}*`),h(`MAINVERSION`,`(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`),h(`MAINVERSIONLOOSE`,`(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASEIDENTIFIER`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`),h(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`),h(`PRERELEASE`,`(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`),h(`PRERELEASELOOSE`,`(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h(`BUILDIDENTIFIER`,`${f}+`),h(`BUILD`,`(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`),h(`FULLPLAIN`,`v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`),h(`FULL`,`^${c[u.FULLPLAIN]}$`),h(`LOOSEPLAIN`,`[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`),h(`LOOSE`,`^${c[u.LOOSEPLAIN]}$`),h(`GTLT`,`((?:<|>)?=?)`),h(`XRANGEIDENTIFIERLOOSE`,`${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h(`XRANGEIDENTIFIER`,`${c[u.NUMERICIDENTIFIER]}|x|X|\\*`),h(`XRANGEPLAIN`,`[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`),h(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`),h(`XRANGE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`),h(`XRANGELOOSE`,`^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`),h(`COERCEPLAIN`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h(`COERCE`,`${c[u.COERCEPLAIN]}(?:$|[^\\d])`),h(`COERCEFULL`,c[u.COERCEPLAIN]+`(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`),h(`COERCERTL`,c[u.COERCE],!0),h(`COERCERTLFULL`,c[u.COERCEFULL],!0),h(`LONETILDE`,`(?:~>?)`),h(`TILDETRIM`,`(\\s*)${c[u.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,h(`TILDE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`),h(`TILDELOOSE`,`^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`),h(`LONECARET`,`(?:\\^)`),h(`CARETTRIM`,`(\\s*)${c[u.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,h(`CARET`,`^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`),h(`CARETLOOSE`,`^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`),h(`COMPARATORLOOSE`,`^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`),h(`COMPARATOR`,`^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`),h(`COMPARATORTRIM`,`(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,h(`HYPHENRANGE`,`^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`),h(`HYPHENRANGELOOSE`,`^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`),h(`STAR`,`(<|>)?=?\\s*\\*`),h(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),h(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),_i=z(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),vi=z(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{if(typeof e==`number`&&typeof t==`number`)return e===t?0:er(t,e)}})),yi=z(((e,t)=>{let n=hi(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=mi(),{safeRe:a,t:o}=gi(),s=_i(),{compareIdentifiers:c}=vi();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&tt.major?1:this.minort.minor?1:this.patcht.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`build compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){if(e.startsWith(`pre`)){if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(t){let e=`-${t}`.match(this.options.loose?a[o.PRERELEASELOOSE]:a[o.PRERELEASE]);if(!e||e[1]!==t)throw Error(`invalid identifier: ${t}`)}}switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`release`:if(this.prerelease.length===0)throw Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=+!!Number(n);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),bi=z(((e,t)=>{let n=yi();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),xi=z(((e,t)=>{let n=bi();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),Si=z(((e,t)=>{let n=bi();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),Ci=z(((e,t)=>{let n=yi();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),wi=z(((e,t)=>{let n=bi();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l){if(!c.patch&&!c.minor)return`major`;if(c.compareMain(s)===0)return c.minor&&!c.patch?`minor`:`patch`}let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),Ti=z(((e,t)=>{let n=yi();t.exports=(e,t)=>new n(e,t).major})),Ei=z(((e,t)=>{let n=yi();t.exports=(e,t)=>new n(e,t).minor})),Di=z(((e,t)=>{let n=yi();t.exports=(e,t)=>new n(e,t).patch})),Oi=z(((e,t)=>{let n=bi();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),ki=z(((e,t)=>{let n=yi();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Ai=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(t,e,r)})),ji=z(((e,t)=>{let n=ki();t.exports=(e,t)=>n(e,t,!0)})),Mi=z(((e,t)=>{let n=yi();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Ni=z(((e,t)=>{let n=Mi();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Pi=z(((e,t)=>{let n=Mi();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Fi=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)>0})),Ii=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)<0})),Li=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)===0})),Ri=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)!==0})),zi=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)>=0})),Bi=z(((e,t)=>{let n=ki();t.exports=(e,t,r)=>n(e,t,r)<=0})),Vi=z(((e,t)=>{let n=Li(),r=Ri(),i=Fi(),a=zi(),o=Ii(),s=Bi();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Hi=z(((e,t)=>{let n=yi(),r=bi(),{safeRe:i,t:a}=gi();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(t.includePrerelease?i[a.COERCEFULL]:i[a.COERCE]);else{let n=t.includePrerelease?i[a.COERCERTLFULL]:i[a.COERCERTL],r;for(;(r=n.exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||r.index+r[0].length!==o.index+o[0].length)&&(o=r),n.lastIndex=r.index+r[1].length+r[2].length;n.lastIndex=-1}if(o===null)return null;let s=o[2];return r(`${s}.${o[3]||`0`}.${o[4]||`0`}${t.includePrerelease&&o[5]?`-${o[5]}`:``}${t.includePrerelease&&o[6]?`+${o[6]}`:``}`,t)}})),Ui=z(((e,t)=>{let n=bi(),r=mi(),i=yi(),a=(e,t,n)=>{if(!r.RELEASE_TYPES.includes(t))return null;let i=o(e,n);return i&&s(i,t)},o=(e,t)=>n(e instanceof i?e.version:e,t),s=(e,t)=>{if(c(t))return e.version;switch(e.prerelease=[],t){case`major`:e.minor=0,e.patch=0;break;case`minor`:e.patch=0;break}return e.format()},c=e=>e.startsWith(`pre`);t.exports=a})),Wi=z(((e,t)=>{t.exports=class{constructor(){this.max=1e3,this.map=new Map}get(e){let t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){let e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}})),Gi=z(((e,t)=>{let n=/\s+/g;t.exports=class e{constructor(t,r){if(r=i(r),t instanceof e)return t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease?t:new e(t.raw,r);if(t instanceof a)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease,this.raw=t.trim().replace(n,` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!_(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&v(e[0])){this.set=[e];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted=``;for(let e=0;e0&&(this.formatted+=`||`);let t=this.set[e];for(let e=0;e0&&(this.formatted+=` `),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(g,``);let t=((this.options.includePrerelease&&m)|(this.options.loose&&h))+`:`+e,n=r.get(t);if(n)return n;let i=this.options.loose,s=i?c[u.HYPHENRANGELOOSE]:c[u.HYPHENRANGE];e=e.replace(s,A(this.options.includePrerelease)),o(`hyphen replace`,e),e=e.replace(c[u.COMPARATORTRIM],d),o(`comparator trim`,e),e=e.replace(c[u.TILDETRIM],f),o(`tilde trim`,e),e=e.replace(c[u.CARETTRIM],p),o(`caret trim`,e);let l=e.split(` `).map(e=>b(e,this.options)).join(` `).split(/\s+/).map(e=>k(e,this.options));i&&(l=l.filter(e=>(o(`loose invalid filter`,e,this.options),!!e.match(c[u.COMPARATORLOOSE])))),o(`range list`,l);let v=new Map,y=l.map(e=>new a(e,this.options));for(let e of y){if(_(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let x=[...v.values()];return r.set(t,x),x}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>y(e,n)&&t.set.some(t=>y(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new s(e,this.options)}catch{return!1}for(let t=0;te.value===`<0.0.0-0`,v=e=>e.value===``,y=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},b=(e,t)=>(e=e.replace(c[u.BUILD],``),o(`comp`,e,t),e=w(e,t),o(`caret`,e),e=S(e,t),o(`tildes`,e),e=E(e,t),o(`xrange`,e),e=O(e,t),o(`stars`,e),e),x=e=>!e||e.toLowerCase()===`x`||e===`*`,S=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(` `),C=(e,t)=>{let n=t.loose?c[u.TILDELOOSE]:c[u.TILDE];return e.replace(n,(t,n,r,i,a)=>{o(`tilde`,e,t,n,r,i,a);let s;return x(n)?s=``:x(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:x(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:a?(o(`replaceTilde pr`,a),s=`>=${n}.${r}.${i}-${a} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,o(`tilde return`,s),s})},w=(e,t)=>e.trim().split(/\s+/).map(e=>T(e,t)).join(` `),T=(e,t)=>{o(`caret`,e,t);let n=t.loose?c[u.CARETLOOSE]:c[u.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,a,s)=>{o(`caret`,e,t,n,i,a,s);let c;return x(n)?c=``:x(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:x(a)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(o(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${a}-${s} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a}-${s} <${+n+1}.0.0-0`):(o(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${a}${r} <${n}.${i}.${+a+1}-0`:`>=${n}.${i}.${a}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${a} <${+n+1}.0.0-0`),o(`caret return`,c),c})},E=(e,t)=>(o(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>D(e,t)).join(` `)),D=(e,t)=>{e=e.trim();let n=t.loose?c[u.XRANGELOOSE]:c[u.XRANGE];return e.replace(n,(n,r,i,a,s,c)=>{o(`xRange`,e,n,r,i,a,s,c);let l=x(i),u=l||x(a),d=u||x(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(a=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,a=0,s=0):(a=+a+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:a=+a+1),r===`<`&&(c=`-0`),n=`${r+i}.${a}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${a}.0${c} <${i}.${+a+1}.0-0`),o(`xRange return`,n),n})},O=(e,t)=>(o(`replaceStars`,e,t),e.trim().replace(c[u.STAR],``)),k=(e,t)=>(o(`replaceGTE0`,e,t),e.trim().replace(c[t.includePrerelease?u.GTE0PRE:u.GTE0],``)),A=e=>(t,n,r,i,a,o,s,c,l,u,d,f)=>(n=x(r)?``:x(i)?`>=${r}.0.0${e?`-0`:``}`:x(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=x(l)?``:x(u)?`<${+l+1}.0.0-0`:x(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),j=(e,t,n)=>{for(let n=0;n0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),Ki=z(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=_i(),{safeRe:i,t:a}=gi(),o=Vi(),s=hi(),c=yi(),l=Gi()})),qi=z(((e,t)=>{let n=Gi();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),Ji=z(((e,t)=>{let n=Gi();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Yi=z(((e,t)=>{let n=yi(),r=Gi();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),Xi=z(((e,t)=>{let n=yi(),r=Gi();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),Zi=z(((e,t)=>{let n=yi(),r=Gi(),i=Fi();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),Qi=z(((e,t)=>{let n=Gi();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),$i=z(((e,t)=>{let n=yi(),r=Ki(),{ANY:i}=r,a=Gi(),o=qi(),s=Fi(),c=Ii(),l=Bi(),u=zi();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),ea=z(((e,t)=>{let n=$i();t.exports=(e,t,r)=>n(e,t,`>`,r)})),ta=z(((e,t)=>{let n=$i();t.exports=(e,t,r)=>n(e,t,`<`,r)})),na=z(((e,t)=>{let n=Gi();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),ra=z(((e,t)=>{let n=qi(),r=ki();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length{let n=Gi(),r=Ki(),{ANY:i}=r,a=qi(),o=ki(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!e.test(s.semver))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!e.test(u.semver))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),aa=B(z(((e,t)=>{let n=gi(),r=mi(),i=yi(),a=vi();t.exports={parse:bi(),valid:xi(),clean:Si(),inc:Ci(),diff:wi(),major:Ti(),minor:Ei(),patch:Di(),prerelease:Oi(),compare:ki(),rcompare:Ai(),compareLoose:ji(),compareBuild:Mi(),sort:Ni(),rsort:Pi(),gt:Fi(),lt:Ii(),eq:Li(),neq:Ri(),gte:zi(),lte:Bi(),cmp:Vi(),coerce:Hi(),truncate:Ui(),Comparator:Ki(),Range:Gi(),satisfies:qi(),toComparators:Ji(),maxSatisfying:Yi(),minSatisfying:Xi(),minVersion:Zi(),validRange:Qi(),outside:$i(),gtr:ea(),ltr:ta(),intersects:na(),simplifyRange:ra(),subset:ia(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}}))(),1),oa;(function(e){e.Gzip=`cache.tgz`,e.Zstd=`cache.tzst`})(oa||={});var sa;(function(e){e.Gzip=`gzip`,e.ZstdWithoutLong=`zstd-without-long`,e.Zstd=`zstd`})(sa||={});var ca;(function(e){e.GNU=`gnu`,e.BSD=`bsd`})(ca||={});const la=5e3,ua=5e3,da=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,fa=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,pa=`cache.tar`,ma=`manifest.txt`;var ha=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},ga=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}};function _a(){return ha(this,void 0,void 0,function*(){let e=process.platform===`win32`,t=process.env.RUNNER_TEMP||``;if(!t){let n;n=e?process.env.USERPROFILE||`C:\\`:process.platform===`darwin`?`/Users`:`/home`,t=p.join(n,`actions`,`temp`)}let n=p.join(t,o.randomUUID());return yield cr(n),n})}function va(e){return s.statSync(e).size}function ya(e){return ha(this,void 0,void 0,function*(){var t,n,r,i;let a=[],o=process.env.GITHUB_WORKSPACE??process.cwd(),s=yield pi(e.join(` +`),{implicitDescendants:!1});try{for(var c=!0,l=ga(s.globGenerator()),u;u=yield l.next(),t=u.done,!t;c=!0){i=u.value,c=!1;let e=i,t=p.relative(o,e).replace(RegExp(`\\${p.sep}`,`g`),`/`);U(`Matched: ${t}`),t===``?a.push(`.`):a.push(`${t}`)}}catch(e){n={error:e}}finally{try{!c&&!t&&(r=l.return)&&(yield r.call(l))}finally{if(n)throw n.error}}return a})}function ba(e){return ha(this,void 0,void 0,function*(){return b.promisify(s.unlink)(e)})}function xa(e){return ha(this,arguments,void 0,function*(e,t=[]){let n=``;t.push(`--version`),U(`Checking ${e} ${t.join(` `)}`);try{yield br(`${e}`,t,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){U(e.message)}return n=n.trim(),U(n),n})}function Sa(){return ha(this,void 0,void 0,function*(){let e=yield xa(`zstd`,[`--quiet`]);return U(`zstd version: ${aa.clean(e)}`),e===``?sa.Gzip:sa.ZstdWithoutLong})}function Ca(e){return e===sa.Gzip?oa.Gzip:oa.Zstd}function wa(){return ha(this,void 0,void 0,function*(){return s.existsSync(da)?da:(yield xa(`tar`)).toLowerCase().includes(`gnu tar`)?lr(`tar`):``})}function Ta(e,t){if(t===void 0)throw Error(`Expected ${e} but value was undefiend`);return t}function Ea(e,t,n=!1){let r=e.slice();return t&&r.push(t),process.platform===`win32`&&!n&&r.push(`windows-only`),r.push(`1.0`),o.createHash(`sha256`).update(r.join(`|`)).digest(`hex`)}function Da(){let e=process.env.ACTIONS_RUNTIME_TOKEN;if(!e)throw Error(`Unable to get the ACTIONS_RUNTIME_TOKEN env variable`);return e}var Oa=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function ka(e,...t){n.stderr.write(`${T.format(e,...t)}${I}`)}const Aa=typeof process<`u`&&process.env&&process.env.DEBUG||void 0;let ja,Ma=[],Na=[];const Pa=[];Aa&&Ia(Aa);const Fa=Object.assign(e=>Ba(e),{enable:Ia,enabled:La,disable:za,log:ka});function Ia(e){ja=e,Ma=[],Na=[];let t=e.split(`,`).map(e=>e.trim());for(let e of t)e.startsWith(`-`)?Na.push(e.substring(1)):Ma.push(e);for(let e of Pa)e.enabled=La(e.namespace)}function La(e){if(e.endsWith(`*`))return!0;for(let t of Na)if(Ra(e,t))return!1;for(let t of Ma)if(Ra(e,t))return!0;return!1}function Ra(e,t){if(t.indexOf(`*`)===-1)return e===t;let n=t;if(t.indexOf(`**`)!==-1){let e=[],r=``;for(let n of t)if(n===`*`&&r===`*`)continue;else r=n,e.push(n);n=e.join(``)}let r=0,i=0,a=n.length,o=e.length,s=-1,c=-1;for(;r=0){if(i=s+1,r=c+1,r===o)return!1;for(;e[r]!==n[i];)if(r++,r===o)return!1;c=r,r++,i++;continue}else return!1;let l=r===e.length,u=i===n.length,d=i===n.length-1&&n[i]===`*`;return l&&(u||d)}function za(){let e=ja||``;return Ia(``),e}function Ba(e){let t=Object.assign(n,{enabled:La(e),destroy:Va,log:Fa.log,namespace:e,extend:Ha});function n(...n){t.enabled&&(n.length>0&&(n[0]=`${e} ${n[0]}`),t.log(...n))}return Pa.push(t),t}function Va(){let e=Pa.indexOf(this);return e>=0?(Pa.splice(e,1),!0):!1}function Ha(e){let t=Ba(`${this.namespace}:${e}`);return t.log=this.log,t}const Ua=[`verbose`,`info`,`warning`,`error`],Wa={verbose:400,info:300,warning:200,error:100};function Ga(e,t){t.log=(...t)=>{e.log(...t)}}function Ka(e){return Ua.includes(e)}function qa(e){let t=new Set,n=typeof process<`u`&&process.env&&process.env[e.logLevelEnvVarName]||void 0,r,i=Fa(e.namespace);i.log=(...e)=>{Fa.log(...e)};function a(e){if(e&&!Ka(e))throw Error(`Unknown log level '${e}'. Acceptable values: ${Ua.join(`,`)}`);r=e;let n=[];for(let e of t)o(e)&&n.push(e.namespace);Fa.enable(n.join(`,`))}n&&(Ka(n)?a(n):console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${Ua.join(`, `)}.`));function o(e){return!!(r&&Wa[e.level]<=Wa[r])}function s(e,n){let r=Object.assign(e.extend(n),{level:n});if(Ga(e,r),o(r)){let e=Fa.disable();Fa.enable(e+`,`+r.namespace)}return t.add(r),r}function c(){return r}function l(e){let t=i.extend(e);return Ga(i,t),{error:s(t,`error`),warning:s(t,`warning`),info:s(t,`info`),verbose:s(t,`verbose`)}}return{setLogLevel:a,getLogLevel:c,createClientLogger:l,logger:i}}const Ja=qa({logLevelEnvVarName:`TYPESPEC_RUNTIME_LOG_LEVEL`,namespace:`typeSpecRuntime`});Ja.logger;function Ya(e){return Ja.createClientLogger(e)}function Xa(e){return e.toLowerCase()}function*Za(e){for(let t of e.values())yield[t.name,t.value]}var Qa=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let t of Object.keys(e))this.set(t,e[t])}set(e,t){this._headersMap.set(Xa(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(Xa(e))?.value}has(e){return this._headersMap.has(Xa(e))}delete(e){this._headersMap.delete(Xa(e))}toJSON(e={}){let t={};if(e.preserveCase)for(let e of this._headersMap.values())t[e.name]=e.value;else for(let[e,n]of this._headersMap)t[e]=n.value;return t}toString(){return JSON.stringify(this.toJSON({preserveCase:!0}))}[Symbol.iterator](){return Za(this._headersMap)}};function $a(e){return new Qa(e)}function eo(){return crypto.randomUUID()}var to=class{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url,this.body=e.body,this.headers=e.headers??$a(),this.method=e.method??`GET`,this.timeout=e.timeout??0,this.multipartBody=e.multipartBody,this.formData=e.formData,this.disableKeepAlive=e.disableKeepAlive??!1,this.proxySettings=e.proxySettings,this.streamResponseStatusCodes=e.streamResponseStatusCodes,this.withCredentials=e.withCredentials??!1,this.abortSignal=e.abortSignal,this.onUploadProgress=e.onUploadProgress,this.onDownloadProgress=e.onDownloadProgress,this.requestId=e.requestId||eo(),this.allowInsecureConnection=e.allowInsecureConnection??!1,this.enableBrowserStreams=e.enableBrowserStreams??!1,this.requestOverrides=e.requestOverrides,this.authSchemes=e.authSchemes}};function no(e){return new to(e)}const ro=new Set([`Deserialize`,`Serialize`,`Retry`,`Sign`]);var io=class e{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[],this._orderedPolicies=void 0}addPolicy(e,t={}){if(t.phase&&t.afterPhase)throw Error(`Policies inside a phase cannot specify afterPhase.`);if(t.phase&&!ro.has(t.phase))throw Error(`Invalid phase name: ${t.phase}`);if(t.afterPhase&&!ro.has(t.afterPhase))throw Error(`Invalid afterPhase name: ${t.afterPhase}`);this._policies.push({policy:e,options:t}),this._orderedPolicies=void 0}removePolicy(e){let t=[];return this._policies=this._policies.filter(n=>e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase?(t.push(n.policy),!1):!0),this._orderedPolicies=void 0,t}sendRequest(e,t){return this.getOrderedPolicies().reduceRight((e,t)=>n=>t.sendRequest(n,e),t=>e.sendRequest(t))(t)}getOrderedPolicies(){return this._orderedPolicies||=this.orderPolicies(),this._orderedPolicies}clone(){return new e(this._policies)}static create(){return new e}orderPolicies(){let e=[],t=new Map;function n(e){return{name:e,policies:new Set,hasRun:!1,hasAfterPolicies:!1}}let r=n(`Serialize`),i=n(`None`),a=n(`Deserialize`),o=n(`Retry`),s=n(`Sign`),c=[r,i,a,o,s];function l(e){return e===`Retry`?o:e===`Serialize`?r:e===`Deserialize`?a:e===`Sign`?s:i}for(let e of this._policies){let n=e.policy,r=e.options,i=n.name;if(t.has(i))throw Error(`Duplicate policy names not allowed in pipeline`);let a={policy:n,dependsOn:new Set,dependants:new Set};r.afterPhase&&(a.afterPhase=l(r.afterPhase),a.afterPhase.hasAfterPolicies=!0),t.set(i,a),l(r.phase).policies.add(a)}for(let e of this._policies){let{policy:n,options:r}=e,i=n.name,a=t.get(i);if(!a)throw Error(`Missing node for policy ${i}`);if(r.afterPolicies)for(let e of r.afterPolicies){let n=t.get(e);n&&(a.dependsOn.add(n),n.dependants.add(a))}if(r.beforePolicies)for(let e of r.beforePolicies){let n=t.get(e);n&&(n.dependsOn.add(a),a.dependants.add(n))}}function u(n){n.hasRun=!0;for(let r of n.policies)if(!(r.afterPhase&&(!r.afterPhase.hasRun||r.afterPhase.policies.size))&&r.dependsOn.size===0){e.push(r.policy);for(let e of r.dependants)e.dependsOn.delete(r);t.delete(r.policy.name),n.policies.delete(r)}}function d(){for(let e of c){if(u(e),e.policies.size>0&&e!==i){i.hasRun||u(i);return}e.hasAfterPolicies&&u(i)}}let f=0;for(;t.size>0;){f++;let t=e.length;if(d(),e.length<=t&&f>1)throw Error(`Cannot satisfy policy dependencies due to requirements cycle.`)}return e}};function ao(){return io.create()}function oo(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function so(e){if(oo(e)){let t=typeof e.name==`string`,n=typeof e.message==`string`;return t&&n}return!1}const co=E.custom,lo=`REDACTED`,uo=`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`.split(`.`),fo=[`api-version`];var po=class{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=uo.concat(e),t=fo.concat(t),this.allowedHeaderNames=new Set(e.map(e=>e.toLowerCase())),this.allowedQueryParameters=new Set(t.map(e=>e.toLowerCase()))}sanitize(e){let t=new Set;return JSON.stringify(e,(e,n)=>{if(n instanceof Error)return{...n,name:n.name,message:n.message};if(e===`headers`&&oo(n))return this.sanitizeHeaders(n);if(e===`url`&&typeof n==`string`)return this.sanitizeUrl(n);if(e===`query`&&oo(n))return this.sanitizeQuery(n);if(e!==`body`&&e!==`response`&&e!==`operationSpec`){if(Array.isArray(n)||oo(n)){if(t.has(n))return`[Circular]`;t.add(n)}return n}},2)}sanitizeUrl(e){if(typeof e!=`string`||e===null||e===``)return e;let t=new URL(e);if(!t.search)return e;for(let[e]of t.searchParams)this.allowedQueryParameters.has(e.toLowerCase())||t.searchParams.set(e,lo);return t.toString()}sanitizeHeaders(e){let t={};for(let n of Object.keys(e))this.allowedHeaderNames.has(n.toLowerCase())?t[n]=e[n]:t[n]=lo;return t}sanitizeQuery(e){if(typeof e!=`object`||!e)return e;let t={};for(let n of Object.keys(e))this.allowedQueryParameters.has(n.toLowerCase())?t[n]=e[n]:t[n]=lo;return t}};const mo=new po;var ho=class e extends Error{static REQUEST_SEND_ERROR=`REQUEST_SEND_ERROR`;static PARSE_ERROR=`PARSE_ERROR`;code;statusCode;request;response;details;constructor(t,n={}){super(t),this.name=`RestError`,this.code=n.code,this.statusCode=n.statusCode,Object.defineProperty(this,"request",{value:n.request,enumerable:!1}),Object.defineProperty(this,"response",{value:n.response,enumerable:!1});let r=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:void 0;Object.defineProperty(this,co,{value:()=>`RestError: ${this.message} \n ${mo.sanitize({...this,request:{...this.request,agent:r},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,e.prototype)}};function go(e){return e instanceof ho?!0:so(e)&&e.name===`RestError`}function _o(e,t){return Buffer.from(e,t)}const vo=Ya(`ts-http-runtime`),yo={};function bo(e){return e&&typeof e.pipe==`function`}function xo(e){return e.readable===!1?Promise.resolve():new Promise(t=>{let n=()=>{t(),e.removeListener(`close`,n),e.removeListener(`end`,n),e.removeListener(`error`,n)};e.on(`close`,n),e.on(`end`,n),e.on(`error`,n)})}function So(e){return e&&typeof e.byteLength==`number`}var Co=class extends C{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(e){n(e)}}constructor(e){super(),this.progressCallback=e}},wo=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let t=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Oa(`The operation was aborted. Request has already been canceled.`);n=e=>{e.type===`abort`&&t.abort()},e.abortSignal.addEventListener(`abort`,n)}let r;e.timeout>0&&(r=setTimeout(()=>{let n=new po;vo.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`),t.abort()},e.timeout));let i=e.headers.get(`Accept-Encoding`),a=i?.includes(`gzip`)||i?.includes(`deflate`),o=typeof e.body==`function`?e.body():e.body;if(o&&!e.headers.has(`Content-Length`)){let t=Oo(o);t!==null&&e.headers.set(`Content-Length`,t)}let s;try{if(o&&e.onUploadProgress){let t=e.onUploadProgress,n=new Co(t);n.on(`error`,e=>{vo.error(`Error in upload progress`,e)}),bo(o)?o.pipe(n):n.end(o),o=n}let n=await this.makeRequest(e,t,o);r!==void 0&&clearTimeout(r);let i=To(n),c={status:n.statusCode??0,headers:i,request:e};if(e.method===`HEAD`)return n.resume(),c;s=a?Eo(n,i):n;let l=e.onDownloadProgress;if(l){let e=new Co(l);e.on(`error`,e=>{vo.error(`Error in download progress`,e)}),s.pipe(e),s=e}return e.streamResponseStatusCodes?.has(1/0)||e.streamResponseStatusCodes?.has(c.status)?c.readableStreamBody=s:c.bodyAsText=await Do(s),c}finally{if(e.abortSignal&&n){let t=Promise.resolve();bo(o)&&(t=xo(o));let r=Promise.resolve();bo(s)&&(r=xo(s)),Promise.all([t,r]).then(()=>{n&&e.abortSignal?.removeEventListener(`abort`,n)}).catch(e=>{vo.warning(`Error when cleaning up abortListener on httpRequest`,e)})}}}makeRequest(e,t,n){let r=new URL(e.url),i=r.protocol!==`https:`;if(i&&!e.allowInsecureConnection)throw Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:r.hostname,path:`${r.pathname}${r.search}`,port:r.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((r,o)=>{let s=i?x.request(a,r):ae.request(a,r);s.once(`error`,t=>{o(new ho(t.message,{code:t.code??ho.REQUEST_SEND_ERROR,request:e}))}),t.signal.addEventListener(`abort`,()=>{let e=new Oa(`The operation was aborted. Rejecting from abort signal callback while making request.`);s.destroy(e),o(e)}),n&&bo(n)?n.pipe(s):n?typeof n==`string`||Buffer.isBuffer(n)?s.end(n):So(n)?s.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(vo.error(`Unrecognized body type`,n),o(new ho(`Unrecognized body type`))):s.end()})}getOrCreateAgent(e,t){let n=e.disableKeepAlive;if(t)return n?x.globalAgent:(this.cachedHttpAgent||=new x.Agent({keepAlive:!0}),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return ae.globalAgent;let t=e.tlsSettings??yo,r=this.cachedHttpsAgents.get(t);return r&&r.options.keepAlive===!n?r:(vo.info(`No cached TLS Agent exist, creating a new Agent`),r=new ae.Agent({keepAlive:!n,...t}),this.cachedHttpsAgents.set(t,r),r)}}};function To(e){let t=$a();for(let n of Object.keys(e.headers)){let r=e.headers[n];Array.isArray(r)?r.length>0&&t.set(n,r[0]):r&&t.set(n,r)}return t}function Eo(e,t){let n=t.get(`Content-Encoding`);if(n===`gzip`){let t=D.createGunzip();return e.pipe(t),t}else if(n===`deflate`){let t=D.createInflate();return e.pipe(t),t}return e}function Do(e){return new Promise((t,n)=>{let r=[];e.on(`data`,e=>{Buffer.isBuffer(e)?r.push(e):r.push(Buffer.from(e))}),e.on(`end`,()=>{t(Buffer.concat(r).toString(`utf8`))}),e.on(`error`,e=>{e&&e?.name===`AbortError`?n(e):n(new ho(`Error reading response as text: ${e.message}`,{code:ho.PARSE_ERROR}))})})}function Oo(e){return e?Buffer.isBuffer(e)?e.length:bo(e)?null:So(e)?e.byteLength:typeof e==`string`?Buffer.from(e).length:null:0}function ko(){return new wo}function Ao(){return ko()}function jo(e={}){let t=e.logger??vo.info,n=new po({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:`logPolicy`,async sendRequest(e,r){if(!t.enabled)return r(e);t(`Request: ${n.sanitize(e)}`);let i=await r(e);return t(`Response status code: ${i.status}`),t(`Headers: ${n.sanitize(i.headers)}`),i}}}const Mo=[`GET`,`HEAD`];function No(e={}){let{maxRetries:t=20,allowCrossOriginRedirects:n=!1}=e;return{name:`redirectPolicy`,async sendRequest(e,r){return Po(r,await r(e),t,n)}}}async function Po(e,t,n,r,i=0){let{request:a,status:o,headers:s}=t,c=s.get(`location`);if(c&&(o===300||o===301&&Mo.includes(a.method)||o===302&&Mo.includes(a.method)||o===303&&a.method===`POST`||o===307)&&i{let a,o,s=()=>i(new Oa(n?.abortErrorMsg?n?.abortErrorMsg:`The operation was aborted.`)),c=()=>{n?.abortSignal&&o&&n.abortSignal.removeEventListener(`abort`,o)};if(o=()=>(a&&clearTimeout(a),c(),s()),n?.abortSignal&&n.abortSignal.aborted)return s();a=setTimeout(()=>{c(),r(t)},e),n?.abortSignal&&n.abortSignal.addEventListener(`abort`,o)})}function zo(e,t){let n=e.headers.get(t);if(!n)return;let r=Number(n);if(!Number.isNaN(r))return r}const Bo=`Retry-After`,Vo=[`retry-after-ms`,`x-ms-retry-after-ms`,Bo];function Ho(e){if(e&&[429,503].includes(e.status))try{for(let t of Vo){let n=zo(e,t);if(n===0||n)return n*(t===Bo?1e3:1)}let t=e.headers.get(Bo);if(!t)return;let n=Date.parse(t)-Date.now();return Number.isFinite(n)?Math.max(0,n):void 0}catch{return}}function Uo(e){return Number.isFinite(Ho(e))}function Wo(){return{name:`throttlingRetryStrategy`,retry({response:e}){let t=Ho(e);return Number.isFinite(t)?{retryAfterInMs:t}:{skipStrategy:!0}}}}function Go(e={}){let t=e.retryDelayInMs??1e3,n=e.maxRetryDelayInMs??64e3;return{name:`exponentialRetryStrategy`,retry({retryCount:r,response:i,responseError:a}){let o=qo(a),s=o&&e.ignoreSystemErrors,c=Ko(i),l=c&&e.ignoreHttpStatusCodes;return i&&(Uo(i)||!c)||l||s?{skipStrategy:!0}:a&&!o&&!c?{errorToThrow:a}:Lo(r,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function Ko(e){return!!(e&&e.status!==void 0&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function qo(e){return e?e.code===`ETIMEDOUT`||e.code===`ESOCKETTIMEDOUT`||e.code===`ECONNREFUSED`||e.code===`ECONNRESET`||e.code===`ENOENT`||e.code===`ENOTFOUND`:!1}const Jo=Ya(`ts-http-runtime retryPolicy`);function Yo(e,t={maxRetries:3}){let n=t.logger||Jo;return{name:`retryPolicy`,async sendRequest(r,i){let a,o,s=-1;retryRequest:for(;;){s+=1,a=void 0,o=void 0;try{n.info(`Retry ${s}: Attempting to send request`,r.requestId),a=await i(r),n.info(`Retry ${s}: Received a response from request`,r.requestId)}catch(e){if(n.error(`Retry ${s}: Received an error from request`,r.requestId),!go(e))throw e;o=e,a=e.response}if(r.abortSignal?.aborted)throw n.error(`Retry ${s}: Request aborted.`),new Oa;if(s>=(t.maxRetries??3)){if(n.info(`Retry ${s}: Maximum retries reached. Returning the last received response, or throwing the last received error.`),o)throw o;if(a)return a;throw Error(`Maximum retries reached with no response or error to throw`)}n.info(`Retry ${s}: Processing ${e.length} retry strategies.`);strategiesLoop:for(let t of e){let e=t.logger||n;e.info(`Retry ${s}: Processing retry strategy ${t.name}.`);let i=t.retry({retryCount:s,response:a,responseError:o});if(i.skipStrategy){e.info(`Retry ${s}: Skipped.`);continue strategiesLoop}let{errorToThrow:c,retryAfterInMs:l,redirectTo:u}=i;if(c)throw e.error(`Retry ${s}: Retry strategy ${t.name} throws error:`,c),c;if(l||l===0){e.info(`Retry ${s}: Retry strategy ${t.name} retries after ${l}`),await Ro(l,void 0,{abortSignal:r.abortSignal});continue retryRequest}if(u){e.info(`Retry ${s}: Retry strategy ${t.name} redirects to ${u}`),r.url=u;continue retryRequest}}if(o)throw n.info(`None of the retry strategies could work with the received error. Throwing it.`),o;if(a)return n.info(`None of the retry strategies could work with the received response. Returning it.`),a}}}}function Xo(e={}){return{name:`defaultRetryPolicy`,sendRequest:Yo([Wo(),Go(e)],{maxRetries:e.maxRetries??3}).sendRequest}}typeof window<`u`&&window.document,typeof self==`object`&&typeof self?.importScripts==`function`&&(self.constructor?.name===`DedicatedWorkerGlobalScope`||self.constructor?.name===`ServiceWorkerGlobalScope`||self.constructor?.name),typeof Deno<`u`&&Deno.version!==void 0&&Deno.version.deno,typeof Bun<`u`&&Bun.version;const Zo=globalThis.process!==void 0&&!!globalThis.process.version&&!!globalThis.process.versions?.node;typeof navigator<`u`&&navigator?.product;function Qo(e){let t={};for(let[n,r]of e.entries())t[n]??=[],t[n].push(r);return t}function $o(){return{name:`formDataPolicy`,async sendRequest(e,t){if(Zo&&typeof FormData<`u`&&e.body instanceof FormData&&(e.formData=Qo(e.body),e.body=void 0),e.formData){let t=e.headers.get(`Content-Type`);t&&t.indexOf(`application/x-www-form-urlencoded`)!==-1?e.body=es(e.formData):await ts(e.formData,e),e.formData=void 0}return t(e)}}}function es(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(Array.isArray(r))for(let e of r)t.append(n,e.toString());else t.append(n,r.toString());return t.toString()}async function ts(e,t){let n=t.headers.get(`Content-Type`);if(n&&!n.startsWith(`multipart/form-data`))return;t.headers.set(`Content-Type`,n??`multipart/form-data`);let r=[];for(let[t,n]of Object.entries(e))for(let e of Array.isArray(n)?n:[n])if(typeof e==`string`)r.push({headers:$a({"Content-Disposition":`form-data; name="${t}"`}),body:_o(e,`utf-8`)});else if(typeof e!=`object`||!e)throw Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`);else{let n=e.name||`blob`,i=$a();i.set(`Content-Disposition`,`form-data; name="${t}"; filename="${n}"`),i.set(`Content-Type`,e.type||`application/octet-stream`),r.push({headers:i,body:e})}t.multipartBody={parts:r}}var ns=z(((e,t)=>{var n=1e3,r=n*60,i=r*60,a=i*24,o=a*7,s=a*365.25;t.exports=function(e,t){t||={};var n=typeof e;if(n===`string`&&e.length>0)return c(e);if(n===`number`&&isFinite(e))return t.long?u(e):l(e);throw Error(`val is not a non-empty string or a valid number. val=`+JSON.stringify(e))};function c(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var c=parseFloat(t[1]);switch((t[2]||`ms`).toLowerCase()){case`years`:case`year`:case`yrs`:case`yr`:case`y`:return c*s;case`weeks`:case`week`:case`w`:return c*o;case`days`:case`day`:case`d`:return c*a;case`hours`:case`hour`:case`hrs`:case`hr`:case`h`:return c*i;case`minutes`:case`minute`:case`mins`:case`min`:case`m`:return c*r;case`seconds`:case`second`:case`secs`:case`sec`:case`s`:return c*n;case`milliseconds`:case`millisecond`:case`msecs`:case`msec`:case`ms`:return c;default:return}}}}function l(e){var t=Math.abs(e);return t>=a?Math.round(e/a)+`d`:t>=i?Math.round(e/i)+`h`:t>=r?Math.round(e/r)+`m`:t>=n?Math.round(e/n)+`s`:e+`ms`}function u(e){var t=Math.abs(e);return t>=a?d(e,t,a,`day`):t>=i?d(e,t,i,`hour`):t>=r?d(e,t,r,`minute`):t>=n?d(e,t,n,`second`):e+` ms`}function d(e,t,n,r){var i=t>=n*1.5;return Math.round(e/n)+` `+r+(i?`s`:``)}})),rs=z(((e,t)=>{function n(e){n.debug=n,n.default=n,n.coerce=c,n.disable=o,n.enable=i,n.enabled=s,n.humanize=ns(),n.destroy=l,Object.keys(e).forEach(t=>{n[t]=e[t]}),n.names=[],n.skips=[],n.formatters={};function t(e){let t=0;for(let n=0;n{if(t===`%%`)return`%`;a++;let o=n.formatters[i];if(typeof o==`function`){let n=e[a];t=o.call(r,n),e.splice(a,1),a--}return t}),n.formatArgs.call(r,e),(r.log||n.log).apply(r,e)}return s.namespace=e,s.useColors=n.useColors(),s.color=n.selectColor(e),s.extend=r,s.destroy=n.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>i===null?(a!==n.namespaces&&(a=n.namespaces,o=n.enabled(e)),o):i,set:e=>{i=e}}),typeof n.init==`function`&&n.init(s),s}function r(e,t){let r=n(this.namespace+(t===void 0?`:`:t)+e);return r.log=this.log,r}function i(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];let t=(typeof e==`string`?e:``).trim().replace(/\s+/g,`,`).split(`,`).filter(Boolean);for(let e of t)e[0]===`-`?n.skips.push(e.slice(1)):n.names.push(e)}function a(e,t){let n=0,r=0,i=-1,a=0;for(;n`-`+e)].join(`,`);return n.enable(``),e}function s(e){for(let t of n.skips)if(a(e,t))return!1;for(let t of n.names)if(a(e,t))return!0;return!1}function c(e){return e instanceof Error?e.stack||e.message:e}function l(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return n.enable(n.load()),n}t.exports=n})),is=z(((e,t)=>{e.formatArgs=r,e.save=i,e.load=a,e.useColors=n,e.storage=o(),e.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),e.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`.split(`.`);function n(){if(typeof window<`u`&&window.process&&(window.process.type===`renderer`||window.process.__nwjs))return!0;if(typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<`u`&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<`u`&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<`u`&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(e){if(e[0]=(this.useColors?`%c`:``)+this.namespace+(this.useColors?` %c`:` `)+e[0]+(this.useColors?`%c `:` `)+`+`+t.exports.humanize(this.diff),!this.useColors)return;let n=`color: `+this.color;e.splice(1,0,n,`color: inherit`);let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,e=>{e!==`%%`&&(r++,e===`%c`&&(i=r))}),e.splice(i,0,n)}e.log=console.debug||console.log||(()=>{});function i(t){try{t?e.storage.setItem(`debug`,t):e.storage.removeItem(`debug`)}catch{}}function a(){let t;try{t=e.storage.getItem(`debug`)||e.storage.getItem(`DEBUG`)}catch{}return!t&&typeof process<`u`&&`env`in process&&(t=process.env.DEBUG),t}function o(){try{return localStorage}catch{}}t.exports=rs()(e);let{formatters:s}=t.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return`[UnexpectedJSONParseError]: `+e.message}}})),as=z(((e,t)=>{let n=V(`tty`),r=V(`util`);e.init=u,e.log=s,e.formatArgs=a,e.save=c,e.load=l,e.useColors=i,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let t=V(`supports-color`);t&&(t.stderr||t).level>=2&&(e.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{}e.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let n=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>t.toUpperCase()),r=process.env[t];return r=/^(yes|on|true|enabled)$/i.test(r)?!0:/^(no|off|false|disabled)$/i.test(r)?!1:r===`null`?null:Number(r),e[n]=r,e},{});function i(){return`colors`in e.inspectOpts?!!e.inspectOpts.colors:n.isatty(process.stderr.fd)}function a(e){let{namespace:n,useColors:r}=this;if(r){let r=this.color,i=`\x1B[3`+(r<8?r:`8;5;`+r),a=` ${i};1m${n} \u001B[0m`;e[0]=a+e[0].split(` `).join(` `+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+` -`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),ss=R(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=as():t.exports=os()})),cs=R((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(B(`http`)),a=r(B(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),ls=R((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;let a=r(B(`net`)),o=r(B(`http`)),s=B(`https`);i(cs(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` -`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),us=R((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(ss()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r +`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;re.trim()).join(` `)},d.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),os=z(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=is():t.exports=as()})),ss=z((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r};Object.defineProperty(e,"__esModule",{value:!0}),e.req=e.json=e.toBuffer=void 0;let i=r(V(`http`)),a=r(V(`https`));async function o(e){let t=0,n=[];for await(let r of e)t+=r.length,n.push(r);return Buffer.concat(n,t)}e.toBuffer=o;async function s(e){let t=(await o(e)).toString(`utf8`);try{return JSON.parse(t)}catch(e){let n=e;throw n.message+=` (input: ${t})`,n}}e.json=s;function c(e,t={}){let n=((typeof e==`string`?e:e.href).startsWith(`https:`)?a:i).request(e,t),r=new Promise((e,t)=>{n.once(`response`,e).once(`error`,t).end()});return n.then=r.then.bind(r),n}e.req=c})),cs=z((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__exportStar||function(e,n){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.Agent=void 0;let a=r(V(`net`)),o=r(V(`http`)),s=V(`https`);i(ss(),e);let c=Symbol(`AgentBaseInternalState`);e.Agent=class extends o.Agent{constructor(e){super(e),this[c]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==`boolean`)return e.secureEndpoint;if(typeof e.protocol==`string`)return e.protocol===`https:`}let{stack:t}=Error();return typeof t==`string`?t.split(` +`).some(e=>e.indexOf(`(https.js:`)!==-1||e.indexOf(`node:https:`)!==-1):!1}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let t=new a.Socket({writable:!1});return this.sockets[e].push(t),this.totalSocketCount++,t}decrementSockets(e,t){if(!this.sockets[e]||t===null)return;let n=this.sockets[e],r=n.indexOf(t);r!==-1&&(n.splice(r,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?s.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,t,n){let r={...t,secureEndpoint:this.isSecureEndpoint(t)},i=this.getName(r),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,r)).then(s=>{if(this.decrementSockets(i,a),s instanceof o.Agent)try{return s.addRequest(e,r)}catch(e){return n(e)}this[c].currentSocket=s,super.createSocket(e,t,n)},e=>{this.decrementSockets(i,a),n(e)})}createConnection(){let e=this[c].currentSocket;if(this[c].currentSocket=void 0,!e)throw Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[c].defaultPort??(this.protocol===`https:`?443:80)}set defaultPort(e){this[c]&&(this[c].defaultPort=e)}get protocol(){return this[c].protocol??(this.isSecureEndpoint()?`https:`:`http:`)}set protocol(e){this[c]&&(this[c].protocol=e)}}})),ls=z((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.parseProxyResponse=void 0;let n=(0,t(os()).default)(`https-proxy-agent:parse-proxy-response`);function r(e){return new Promise((t,r)=>{let i=0,a=[];function o(){let t=e.read();t?u(t):e.once(`readable`,o)}function s(){e.removeListener(`end`,c),e.removeListener(`error`,l),e.removeListener(`readable`,o)}function c(){s(),n(`onend`),r(Error(`Proxy connection ended before receiving CONNECT response`))}function l(e){s(),n(`onerror %o`,e),r(e)}function u(c){a.push(c),i+=c.length;let l=Buffer.concat(a,i),u=l.indexOf(`\r \r `);if(u===-1){n(`have not received end of HTTP headers yet...`),o();return}let d=l.slice(0,u).toString(`ascii`).split(`\r -`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),ds=R((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;let a=r(B(`net`)),o=r(B(`tls`)),s=i(B(`assert`)),c=i(ss()),l=ls(),u=B(`url`),d=us(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),fs=R((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpProxyAgent=void 0;let a=r(B(`net`)),o=r(B(`tls`)),s=i(ss()),c=B(`events`),l=ls(),u=B(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r +`),f=d.shift();if(!f)return e.destroy(),r(Error(`No header received from proxy CONNECT response`));let p=f.split(` `),m=+p[1],h=p.slice(2).join(` `),g={};for(let t of d){if(!t)continue;let n=t.indexOf(`:`);if(n===-1)return e.destroy(),r(Error(`Invalid header from proxy CONNECT response: "${t}"`));let i=t.slice(0,n).toLowerCase(),a=t.slice(n+1).trimStart(),o=g[i];typeof o==`string`?g[i]=[o,a]:Array.isArray(o)?o.push(a):g[i]=a}n(`got proxy server response: %o %o`,f,g),s(),t({connect:{statusCode:m,statusText:h,headers:g},buffered:l})}e.on(`error`,l),e.on(`end`,c),o()})}e.parseProxyResponse=r})),us=z((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpsProxyAgent=void 0;let a=r(V(`net`)),o=r(V(`tls`)),s=i(V(`assert`)),c=i(os()),l=cs(),u=V(`url`),d=ls(),f=(0,c.default)(`https-proxy-agent`),p=e=>e.servername===void 0&&e.host&&!a.isIP(e.host)?{...e,servername:e.host}:e;var m=class extends l.Agent{constructor(e,t){super(t),this.options={path:void 0},this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},f(`Creating new HttpsProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={ALPNProtocols:[`http/1.1`],...t?g(t,`headers`):null,host:n,port:r}}async connect(e,t){let{proxy:n}=this;if(!t.host)throw TypeError(`No "host" provided`);let r;n.protocol===`https:`?(f("Creating `tls.Socket`: %o",this.connectOpts),r=o.connect(p(this.connectOpts))):(f("Creating `net.Socket`: %o",this.connectOpts),r=a.connect(this.connectOpts));let i=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders},c=a.isIPv6(t.host)?`[${t.host}]`:t.host,l=`CONNECT ${c}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}i.Host=`${c}:${t.port}`,i[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let e of Object.keys(i))l+=`${e}: ${i[e]}\r\n`;let u=(0,d.parseProxyResponse)(r);r.write(`${l}\r\n`);let{connect:m,buffered:_}=await u;if(e.emit(`proxyConnect`,m),this.emit(`proxyConnect`,m,e),m.statusCode===200)return e.once(`socket`,h),t.secureEndpoint?(f(`Upgrading socket connection to TLS`),o.connect({...g(p(t),`host`,`path`,`port`),socket:r})):r;r.destroy();let v=new a.Socket({writable:!1});return v.readable=!0,e.once(`socket`,e=>{f(`Replaying proxy buffer for failed request`),(0,s.default)(e.listenerCount(`data`)>0),e.push(_),e.push(null)}),v}};m.protocols=[`http`,`https`],e.HttpsProxyAgent=m;function h(e){e.resume()}function g(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),ds=z((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.HttpProxyAgent=void 0;let a=r(V(`net`)),o=r(V(`tls`)),s=i(os()),c=V(`events`),l=cs(),u=V(`url`),d=(0,s.default)(`http-proxy-agent`);var f=class extends l.Agent{constructor(e,t){super(t),this.proxy=typeof e==`string`?new u.URL(e):e,this.proxyHeaders=t?.headers??{},d(`Creating new HttpProxyAgent instance: %o`,this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,``),r=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol===`https:`?443:80;this.connectOpts={...t?p(t,`headers`):null,host:n,port:r}}addRequest(e,t){e._header=null,this.setRequestProps(e,t),super.addRequest(e,t)}setRequestProps(e,t){let{proxy:n}=this,r=`${t.secureEndpoint?`https:`:`http:`}//${e.getHeader(`host`)||`localhost`}`,i=new u.URL(e.path,r);t.port!==80&&(i.port=String(t.port)),e.path=String(i);let a=typeof this.proxyHeaders==`function`?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;a[`Proxy-Authorization`]=`Basic ${Buffer.from(e).toString(`base64`)}`}a[`Proxy-Connection`]||=this.keepAlive?`Keep-Alive`:`close`;for(let t of Object.keys(a)){let n=a[t];n&&e.setHeader(t,n)}}async connect(e,t){e._header=null,e.path.includes(`://`)||this.setRequestProps(e,t);let n,r;d(`Regenerating stored HTTP header string for request`),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(d(`Patching connection write() output buffer with updated header`),n=e.outputData[0].data,r=n.indexOf(`\r \r -`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),ps=ds(),ms=fs();const hs=[];let gs=!1;const _s=new Map;function vs(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function ys(){if(!process)return;let e=vs(`HTTPS_PROXY`),t=vs(`ALL_PROXY`),n=vs(`HTTP_PROXY`);return e||t||n}function bs(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function xs(){let e=vs(`NO_PROXY`);return gs=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function Ss(e){if(!e&&(e=ys(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Cs(){let e=ys();return e?new URL(e):void 0}function ws(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function Ts(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&yo.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new ms.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new ps.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Es(e,t){gs||hs.push(...xs());let n=e?ws(e):Cs(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!bs(e.url,t?.customNoProxyList??hs,t?.customNoProxyList?void 0:_s)?Ts(e,r,n):e.proxySettings&&Ts(e,r,ws(e.proxySettings)),i(e)}}}function Ds(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Os(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function ks(e){return typeof Blob<`u`&&e instanceof Blob}async function*As(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function js(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=As.bind(e)),e.values||=As.bind(e)}function Ms(e){return e instanceof ReadableStream?(js(e),ie.fromWeb(e)):e}function Ns(e){return e instanceof Uint8Array?ie.from(Buffer.from(e)):ks(e)?Ms(e.stream()):Ms(e)}async function Ps(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(Ns);return ie.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Fs(){return`----AzSDKFormBoundary${to()}`}function Is(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Ls(e){if(e instanceof Uint8Array)return e.byteLength;if(ks(e))return e.size===-1?void 0:e.size}function Rs(e){let t=0;for(let n of e){let e=Ls(n);if(e===void 0)return;t+=e}return t}async function zs(e,t,n){let r=[vo(`--${n}`,`utf-8`),...t.flatMap(e=>[vo(`\r -`,`utf-8`),vo(Is(e.headers),`utf-8`),vo(`\r -`,`utf-8`),e.body,vo(`\r\n--${n}`,`utf-8`)]),vo(`--\r +`)+4,e.outputData[0].data=e._header+n.substring(r),d(`Output buffer: %o`,e.outputData[0].data));let i;return this.proxy.protocol===`https:`?(d("Creating `tls.Socket`: %o",this.connectOpts),i=o.connect(this.connectOpts)):(d("Creating `net.Socket`: %o",this.connectOpts),i=a.connect(this.connectOpts)),await(0,c.once)(i,`connect`),i}};f.protocols=[`http`,`https`],e.HttpProxyAgent=f;function p(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),fs=us(),ps=ds();const ms=[];let hs=!1;const gs=new Map;function _s(e){if(process.env[e])return process.env[e];if(process.env[e.toLowerCase()])return process.env[e.toLowerCase()]}function vs(){if(!process)return;let e=_s(`HTTPS_PROXY`),t=_s(`ALL_PROXY`),n=_s(`HTTP_PROXY`);return e||t||n}function ys(e,t,n){if(t.length===0)return!1;let r=new URL(e).hostname;if(n?.has(r))return n.get(r);let i=!1;for(let e of t)e[0]===`.`?(r.endsWith(e)||r.length===e.length-1&&r===e.slice(1))&&(i=!0):r===e&&(i=!0);return n?.set(r,i),i}function bs(){let e=_s(`NO_PROXY`);return hs=!0,e?e.split(`,`).map(e=>e.trim()).filter(e=>e.length):[]}function xs(e){if(!e&&(e=vs(),!e))return;let t=new URL(e);return{host:(t.protocol?t.protocol+`//`:``)+t.hostname,port:Number.parseInt(t.port||`80`),username:t.username,password:t.password}}function Ss(){let e=vs();return e?new URL(e):void 0}function Cs(e){let t;try{t=new URL(e.host)}catch{throw Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}return t.port=String(e.port),e.username&&(t.username=e.username),e.password&&(t.password=e.password),t}function ws(e,t,n){if(e.agent)return;let r=new URL(e.url).protocol!==`https:`;e.tlsSettings&&vo.warning(`TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.`),r?(t.httpProxyAgent||=new ps.HttpProxyAgent(n),e.agent=t.httpProxyAgent):(t.httpsProxyAgent||=new fs.HttpsProxyAgent(n),e.agent=t.httpsProxyAgent)}function Ts(e,t){hs||ms.push(...bs());let n=e?Cs(e):Ss(),r={};return{name:`proxyPolicy`,async sendRequest(e,i){return!e.proxySettings&&n&&!ys(e.url,t?.customNoProxyList??ms,t?.customNoProxyList?void 0:gs)?ws(e,r,n):e.proxySettings&&ws(e,r,Cs(e.proxySettings)),i(e)}}}function Es(e){return{name:`agentPolicy`,sendRequest:async(t,n)=>(t.agent||=e,n(t))}}function Ds(e){return{name:`tlsPolicy`,sendRequest:async(t,n)=>(t.tlsSettings||=e,n(t))}}function Os(e){return typeof Blob<`u`&&e instanceof Blob}async function*ks(){let e=this.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)return;yield n}}finally{e.releaseLock()}}function As(e){e[Symbol.asyncIterator]||(e[Symbol.asyncIterator]=ks.bind(e)),e.values||=ks.bind(e)}function js(e){return e instanceof ReadableStream?(As(e),re.fromWeb(e)):e}function Ms(e){return e instanceof Uint8Array?re.from(Buffer.from(e)):Os(e)?js(e.stream()):js(e)}async function Ns(e){return function(){let t=e.map(e=>typeof e==`function`?e():e).map(Ms);return re.from((async function*(){for(let e of t)for await(let t of e)yield t})())}}function Ps(){return`----AzSDKFormBoundary${eo()}`}function Fs(e){let t=``;for(let[n,r]of e)t+=`${n}: ${r}\r\n`;return t}function Is(e){if(e instanceof Uint8Array)return e.byteLength;if(Os(e))return e.size===-1?void 0:e.size}function Ls(e){let t=0;for(let n of e){let e=Is(n);if(e===void 0)return;t+=e}return t}async function Rs(e,t,n){let r=[_o(`--${n}`,`utf-8`),...t.flatMap(e=>[_o(`\r +`,`utf-8`),_o(Fs(e.headers),`utf-8`),_o(`\r +`,`utf-8`),e.body,_o(`\r\n--${n}`,`utf-8`)]),_o(`--\r \r -`,`utf-8`)],i=Rs(r);i&&e.headers.set(`Content-Length`,i),e.body=await Ps(r)}const Bs=`multipartPolicy`,Vs=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function Hs(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!Vs.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function Us(){return{name:Bs,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?Hs(n):n=Fs(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await zs(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function Ws(){return oo()}const Gs=Ja({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});Gs.logger;function Ks(e){return Gs.createClientLogger(e)}const qs=Ks(`core-rest-pipeline`);function Js(e={}){return Mo({logger:qs.info,...e})}function Ys(e={}){return Po(e)}function Xs(){return`User-Agent`}async function Zs(e){if(n&&n.versions){let t=`${ne.type()} ${ne.release()}; ${ne.arch()}`,r=n.versions;r.bun?e.set(`Bun`,`${r.bun} (${t})`):r.deno?e.set(`Deno`,`${r.deno} (${t})`):r.node&&e.set(`Node`,`${r.node} (${t})`)}}const Qs=`1.22.3`;function $s(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function ec(){return Xs()}async function tc(e){let t=new Map;t.set(`core-rest-pipeline`,Qs),await Zs(t);let n=$s(t);return e?`${e} ${n}`:n}const nc=ec();function rc(e={}){let t=tc(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(nc)||e.headers.set(nc,await t),n(e)}}}var ic=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function ac(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new ic(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function oc(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return ac(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function sc(e){if(co(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function cc(e){return co(e)}function lc(){return to()}const uc=Qo,dc=Symbol(`rawContent`);function fc(e){return typeof e[dc]==`function`}function pc(e){return fc(e)?e[dc]():e}const mc=Bs;function hc(){let e=Us();return{name:mc,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)fc(e.body)&&(e.body=pc(e.body));return e.sendRequest(t,n)}}}function gc(){return Io()}function _c(e={}){return Zo(e)}function vc(){return es()}function yc(e){return Ss(e)}function bc(e,t){return Es(e,t)}function xc(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function Sc(e){return Ds(e)}function Cc(e){return Os(e)}const wc={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function Tc(e={}){let t=new Ec(e.parentContext);return e.span&&(t=t.setValue(wc.span,e.span)),e.namespace&&(t=t.setValue(wc.namespace,e.namespace)),t}var Ec=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Dc=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Oc(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function kc(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Oc(),tracingContext:Tc({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function Ac(){return Dc.instrumenterImplementation||=kc(),Dc.instrumenterImplementation}function jc(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=Ac().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(wc.namespace)||(s=s.setValue(wc.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(wc.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return Ac().withContext(e,t,...n)}function s(e){return Ac().parseTraceparentHeader(e)}function c(e){return Ac().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const Mc=go;function Nc(e){return _o(e)}function Pc(e={}){let t=tc(e.userAgentPrefix),n=new mo({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Fc();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Ic(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Rc(s,t),t}catch(e){throw Lc(s,e),e}}}}function Fc(){try{return jc({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:Qs})}catch(e){qs.warning(`Error when creating the TracingClient: ${sc(e)}`);return}}function Ic(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){qs.warning(`Skipping creating a tracing span due to an error: ${sc(e)}`);return}}function Lc(e,t){try{e.setStatus({status:`error`,error:cc(t)?t:void 0}),Nc(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){qs.warning(`Skipping tracing span processing due to an error: ${sc(e)}`)}}function Rc(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){qs.warning(`Skipping tracing span processing due to an error: ${sc(e)}`)}}function zc(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function Bc(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=zc(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function Vc(e){let t=Ws();return uc&&(e.agent&&t.addPolicy(Sc(e.agent)),e.tlsOptions&&t.addPolicy(Cc(e.tlsOptions)),t.addPolicy(bc(e.proxyOptions)),t.addPolicy(gc())),t.addPolicy(Bc()),t.addPolicy(vc(),{beforePolicies:[mc]}),t.addPolicy(rc(e.userAgentOptions)),t.addPolicy(xc(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(hc(),{afterPhase:`Deserialize`}),t.addPolicy(_c(e.retryOptions),{phase:`Retry`}),t.addPolicy(Pc({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),uc&&t.addPolicy(Ys(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(Js(e.loggingOptions),{afterPhase:`Sign`}),t}function Hc(){let e=jo();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?zc(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function Uc(e){return eo(e)}function Wc(e){return ro(e)}const Gc={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Kc(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function Jc(e,t){try{return[await t(e),void 0]}catch(e){if(Nc(e)&&e.response)return[e.response,e];throw e}}async function Yc(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function Xc(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function Zc(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function Qc(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||qs,a={authorizeRequest:r?.authorizeRequest?.bind(r)??Yc,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?qc(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await Jc(e,t),Xc(r)){let l=el(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Zc({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await Jc(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await Jc(e,t)),Xc(r)&&(l=el(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Zc({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await Jc(e,t))}}if(s)throw s;return r}}}function $c(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function el(e){if(e)return $c(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function tl(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const nl=`DisableKeepAlivePolicy`;function rl(){return{name:nl,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function il(e){return e.getOrderedPolicies().some(e=>e.name===nl)}function al(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function ol(e){return Buffer.from(e,`base64`)}function sl(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const cl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ll(e){return cl.test(e)}const ul=/^[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 dl(e){return ul.test(e)}function fl(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function pl(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return fl({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:sl(e.parsedBody,a)})}var ml=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=Ml(this,e,t,n,!!this.isXML,i)):a=Ol(this,e,t,n,!!this.isXML,i):a=Dl(this,e,t,n,!!this.isXML,i):a=Tl(n,t):a=wl(n,t):a=El(o,t,n):a=Cl(n,e.type.allowedValues,t):a=Sl(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=Fl(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=Il(this,e,t,n,i)):a=Ll(this,e,t,n,i):a=vl(t):a=ol(t):a=xl(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function hl(e={},t=!1){return new ml(e,t)}function gl(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function _l(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return gl(al(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function vl(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),ol(e)}}function yl(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function bl(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function xl(e){if(e)return new Date(e*1e3)}function Sl(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&dl(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function Cl(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function wl(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=al(t)}return t}function Tl(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=_l(t)}return t}function El(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=bl(t)}else if(e.match(/^TimeSpan$/i)!==null&&!ll(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function Dl(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function Nl(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function Pl(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function Fl(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;Bl(e,t)&&(t=zl(e,t,n,`serializedName`));let o=jl(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=yl(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(yl(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!Pl(e,i)&&(s[e]=n[e]);return s}function Il(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Ll(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function Wl(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=Gl(e,r);!t.propertyFound&&n&&(t=Gl(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=Wl(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function Gl(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function tu(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function nu(e,t,n,r){let i=200<=e.status&&e.status<300;if(tu(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new Mc(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===Hl.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function ru(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new Mc(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||Mc.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function iu(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===Hl.Stream&&t.add(Number(n))}return t}function au(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function ou(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=Jl(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(su(e,a,i),cu(e,a,i,t)),n(e)}}}function su(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=Wl(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,au(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||au(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function cu(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=Wl(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=au(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===Hl.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=lu(d,t,m,e.body,a);m===Hl.Sequence?e.body=r(uu(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===Hl.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=Wl(t,r);if(i!=null){let t=r.mapper.serializedName||au(r);e.formData[t]=n.serializer.serialize(r.mapper,i,au(r),a)}}}}function lu(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function uu(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function du(e={}){let t=Vc(e??{});return e.credentialOptions&&t.addPolicy(Qc({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(ou(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(Zl(e.deserializationOptions),{phase:`Deserialize`}),t}let fu;function pu(){return fu||=Hc(),fu}const mu={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function hu(e,t,n,r){let i=_u(t,n,r),a=!1,o=gu(e,i);if(t.path){let e=gu(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),vu(e)?(o=e,a=!0):o=yu(o,e)}let{queryParams:s,sequenceParams:c}=bu(t,n,r);return o=Su(o,s,c,a),o}function gu(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function _u(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=Wl(t,i,n),o=au(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function vu(e){return e.includes(`://`)}function yu(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function bu(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=Wl(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,au(a));let t=a.collectionFormat?mu[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||au(a),o)}}return{queryParams:r,sequenceParams:i}}function xu(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function Su(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=xu(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Cu=Ks(`core-client`);var wu=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Cu.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||pu(),this.pipeline=e.pipeline||Tu(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=Wc({url:hu(n,t,e,this)});r.method=t.httpMethod;let i=Jl(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=iu(t));try{let e=await this.sendRequest(r),n=pl(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=pl(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function Tu(e){let t=Eu(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return du({...e,credentialOptions:n})}function Eu(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Du={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Ou(e){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(e)}const ku=async e=>{let t=Pu(e.request),n=Mu(e.response);if(n){let r=Nu(n),i=ju(e,r),a=Au(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Du.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function Au(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Ou(t))return t}function ju(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Du.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function Mu(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function Nu(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Pu(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Fu=Symbol(`Original PipelineRequest`),Iu=Symbol.for(`@azure/core-client original request`);function Lu(e,t={}){let n=e[Fu],r=Uc(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=Wc({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Iu]=t.originalRequest),n}}function Ru(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:zu(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Fu?e:i===`clone`?()=>Ru(Lu(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function zu(e){return new Vu(e.toJSON({preserveCase:!0}))}function Bu(e){return e.toLowerCase()}var Vu=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[Bu(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[Bu(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[Bu(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[Bu(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nWu(await e.sendRequest(Ru(t,{createProxy:!0})))}}const Xu=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function Zu(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` -`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!md(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,fd(`InvalidTag`,t,hd(e,a))}let l=sd(e,a);if(l===!1)return fd(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,hd(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=ld(u,t);if(i===!0)r=!0;else return fd(i.err.code,i.err.msg,hd(e,n+i.err.line))}else if(s){if(!l.tagClosed)return fd(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,hd(e,a));if(u.trim().length>0)return fd(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,hd(e,o));if(n.length===0)return fd(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,hd(e,o));{let t=n.pop();if(c!==t.tagName){let n=hd(e,t.tagStartPos);return fd(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,hd(e,o))}n.length==0&&(i=!0)}}else{let s=ld(u,t);if(s!==!0)return fd(s.err.code,s.err.msg,hd(e,a-u.length+s.err.line));if(i===!0)return fd(`InvalidXml`,`Multiple possible root nodes found.`,hd(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?fd(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:fd(`InvalidXml`,`Start tag expected.`,1)}function id(e){return e===` `||e===` `||e===` -`||e===`\r`}function ad(e,t){let n=t;for(;t5&&r===`xml`)return fd(`InvalidXml`,`XML declaration allowed only at the start of the document.`,hd(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function od(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function sd(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const cd=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function ld(e,t){let n=Zu(e,cd),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},vd={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ`,Ograve:`Ò`,ograve:`ò`,Oacute:`Ó`,oacute:`ó`,Ocirc:`Ô`,ocirc:`ô`,Otilde:`Õ`,otilde:`õ`,Ouml:`Ö`,ouml:`ö`,Oslash:`Ø`,oslash:`ø`,Ugrave:`Ù`,ugrave:`ù`,Uacute:`Ú`,uacute:`ú`,Ucirc:`Û`,ucirc:`û`,Uuml:`Ü`,uuml:`ü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:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Cd={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},wd={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},Td={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Ed={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`"},Dd={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Od={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},kd={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({..._d,...vd,...yd,...bd,...xd,...Sd,...Cd,...wd,...Td,...Ed,...Dd,...Od,...kd});const Ad={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},jd={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},Md=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Nd(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(Md.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Pd(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Fd=`external`,Id=`base`;function Ld(e){return!e||e===Fd?new Set([Fd]):e===`all`?new Set([`all`]):e===Id?new Set([Id]):Array.isArray(e)?new Set(e):new Set([Fd])}const Rd=Object.freeze({allow:0,leave:1,remove:2,throw:3}),zd=new Set([9,10,13]);function Bd(e){if(!e)return{xmlVersion:1,onLevel:Rd.allow,nullLevel:Rd.remove};let t=e.xmlVersion===1.1?1.1:1,n=Rd[e.onNCR]??Rd.allow,r=Rd[e.nullNCR]??Rd.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,Rd.remove)}}var Vd=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Ld(this._limit.applyLimitsTo??Fd),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Pd(Ad,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=Bd(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Nd(t);this._externalMap=Pd(e)}addExternalEntity(e,t){Nd(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Pd(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0||e.indexOf(`&`)===-1)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Fd);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Id}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!zd.has(e)?Rd.remove:-1}_applyNCRAction(e,t,n){switch(e){case Rd.allow:return String.fromCodePoint(n);case Rd.remove:return``;case Rd.leave:return;case Rd.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&red.includes(e)?`__`+e:e,Ud={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Hd};function Wd(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if(ed.some(e=>n===e.toLowerCase())||td.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Gd(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Gd(!0)}const Kd=function(e){let t=Object.assign({},Ud,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Wd(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=Hd),t.processEntities=Gd(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let qd;qd=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var Jd=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][qd]={startIndex:t})}static getMetaDataSymbol(){return qd}};const Yd=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Xd=Yd(`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),Zd=Yd(`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),Qd=(e=`1.0`)=>e===`1.1`?Zd:Xd,$d=(e,{xmlVersion:t=`1.0`}={})=>Qd(t).qName.test(e);var ef=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&nf(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&nf(e,`!ATTLIST`,t))t+=8;else if(a&&nf(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(nf(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=tf(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=tf(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const df=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function ff(e,t,n){if(!n.eNotation)return e;let r=t.match(df);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function pf(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function mf(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function hf(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function gf(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var _f=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},bf=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new yf(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function xf(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function Sf(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Cf=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Of,this.parseTextData=wf,this.resolveNameSpace=Tf,this.buildAttributesMap=Df,this.isItStopNode=Mf,this.replaceEntitiesValue=Af,this.readStopNodeData=Lf,this.saveTextToParentTag=jf,this.addChild=kf,this.ignoreAttributesFn=gf(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...Ad};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...jd,...Dd}),this.entityDecoder=new Vd({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new bf,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new vf;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?Rf(e,s.parseTagValue,s.numberParseOptions):e}}function Tf(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Ef=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Df(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=Zu(e,Ef),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=zf(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=If(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new Jd(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Pf(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Pf(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=If(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=zf(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=Sf(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&xf(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new Jd(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=zf(i.transformTagName,c,u,i));let e=new Jd(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new Jd(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new Jd(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function kf(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function Af(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function jf(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function Mf(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Nf(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Nf(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function Lf(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Pf(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Pf(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Pf(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=If(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function Rf(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:uf(e,n)}else if($u(e))return e;else return``}function zf(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=Bf(t,r),{tagName:t,tagExp:n}}function Bf(e,t){if(td.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return ed.includes(e)?t.onDangerousProperty(e):e}const Vf=Jd.getMetaDataSymbol();function Hf(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function Uf(e,t,n,r){return Wf(e,t,n,r)}function Wf(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function Gf(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function Zf(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function Qf(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(ap(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function $f(e,t,n,r,i){return!n.sanitizeName||$d(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function ep(e,t){let n=``;t.format&&(n=` -`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=cp(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=Yf(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=op(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${op(l[`:@`],t,p,r,a)}`,g;g=p?rp(l[u],t):tp(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function np(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=Zf(e[i]),r=!0}return r?n:null}function rp(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function ip(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${Zf(i)}"`}return n}function ap(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const up={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function dp(e){if(this.options=Object.assign({},up,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e +`,`utf-8`)],i=Ls(r);i&&e.headers.set(`Content-Length`,i),e.body=await Ns(r)}const zs=`multipartPolicy`,Bs=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function Vs(e){if(e.length>70)throw Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`);if(Array.from(e).some(e=>!Bs.has(e)))throw Error(`Multipart boundary "${e}" contains invalid characters`)}function Hs(){return{name:zs,async sendRequest(e,t){if(!e.multipartBody)return t(e);if(e.body)throw Error(`multipartBody and regular body cannot be set at the same time`);let n=e.multipartBody.boundary,r=e.headers.get(`Content-Type`)??`multipart/mixed`,i=r.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw Error(`Got multipart request body, but content-type header was not multipart: ${r}`);let[,a,o]=i;if(o&&n&&o!==n)throw Error(`Multipart boundary was specified as ${o} in the header, but got ${n} in the request body`);return n??=o,n?Vs(n):n=Ps(),e.headers.set(`Content-Type`,`${a}; boundary=${n}`),await Rs(e,e.multipartBody.parts,n),e.multipartBody=void 0,t(e)}}}function Us(){return ao()}const Ws=qa({logLevelEnvVarName:`AZURE_LOG_LEVEL`,namespace:`azure`});Ws.logger;function Gs(e){return Ws.createClientLogger(e)}const Ks=Gs(`core-rest-pipeline`);function qs(e={}){return jo({logger:Ks.info,...e})}function Js(e={}){return No(e)}function Ys(){return`User-Agent`}async function Xs(e){if(n&&n.versions){let t=`${te.type()} ${te.release()}; ${te.arch()}`,r=n.versions;r.bun?e.set(`Bun`,`${r.bun} (${t})`):r.deno?e.set(`Deno`,`${r.deno} (${t})`):r.node&&e.set(`Node`,`${r.node} (${t})`)}}const Zs=`1.22.3`;function Qs(e){let t=[];for(let[n,r]of e){let e=r?`${n}/${r}`:n;t.push(e)}return t.join(` `)}function $s(){return Ys()}async function ec(e){let t=new Map;t.set(`core-rest-pipeline`,Zs),await Xs(t);let n=Qs(t);return e?`${e} ${n}`:n}const tc=$s();function nc(e={}){let t=ec(e.userAgentPrefix);return{name:`userAgentPolicy`,async sendRequest(e,n){return e.headers.has(tc)||e.headers.set(tc,await t),n(e)}}}var rc=class extends Error{constructor(e){super(e),this.name=`AbortError`}};function ic(e,t){let{cleanupBeforeAbort:n,abortSignal:r,abortErrorMsg:i}=t??{};return new Promise((t,a)=>{function o(){a(new rc(i??`The operation was aborted.`))}function s(){r?.removeEventListener(`abort`,c)}function c(){n?.(),s(),o()}if(r?.aborted)return o();try{e(e=>{s(),t(e)},e=>{s(),a(e)})}catch(e){a(e)}r?.addEventListener(`abort`,c)})}function ac(e,t){let n,{abortSignal:r,abortErrorMsg:i}=t??{};return ic(t=>{n=setTimeout(t,e)},{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:r,abortErrorMsg:i??`The delay was aborted.`})}function oc(e){if(so(e))return e.message;{let t;try{t=typeof e==`object`&&e?JSON.stringify(e):String(e)}catch{t=`[unable to stringify input]`}return`Unknown error ${t}`}}function sc(e){return so(e)}function cc(){return eo()}const lc=Zo,uc=Symbol(`rawContent`);function dc(e){return typeof e[uc]==`function`}function fc(e){return dc(e)?e[uc]():e}const pc=zs;function mc(){let e=Hs();return{name:pc,sendRequest:async(t,n)=>{if(t.multipartBody)for(let e of t.multipartBody.parts)dc(e.body)&&(e.body=fc(e.body));return e.sendRequest(t,n)}}}function hc(){return Fo()}function gc(e={}){return Xo(e)}function _c(){return $o()}function vc(e){return xs(e)}function yc(e,t){return Ts(e,t)}function bc(e=`x-ms-client-request-id`){return{name:`setClientRequestIdPolicy`,async sendRequest(t,n){return t.headers.has(e)||t.headers.set(e,t.requestId),n(t)}}}function xc(e){return Es(e)}function Sc(e){return Ds(e)}const Cc={span:Symbol.for(`@azure/core-tracing span`),namespace:Symbol.for(`@azure/core-tracing namespace`)};function wc(e={}){let t=new Tc(e.parentContext);return e.span&&(t=t.setValue(Cc.span,e.span)),e.namespace&&(t=t.setValue(Cc.namespace,e.namespace)),t}var Tc=class e{_contextMap;constructor(t){this._contextMap=t instanceof e?new Map(t._contextMap):new Map}setValue(t,n){let r=new e(this);return r._contextMap.set(t,n),r}getValue(e){return this._contextMap.get(e)}deleteValue(t){let n=new e(this);return n._contextMap.delete(t),n}};const Ec=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={instrumenterImplementation:void 0}}))().state;function Dc(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Oc(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(e,t)=>({span:Dc(),tracingContext:wc({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function kc(){return Ec.instrumenterImplementation||=Oc(),Ec.instrumenterImplementation}function Ac(e){let{namespace:t,packageName:n,packageVersion:r}=e;function i(e,i,a){let o=kc().startSpan(e,{...a,packageName:n,packageVersion:r,tracingContext:i?.tracingOptions?.tracingContext}),s=o.tracingContext,c=o.span;return s.getValue(Cc.namespace)||(s=s.setValue(Cc.namespace,t)),c.setAttribute(`az.namespace`,s.getValue(Cc.namespace)),{span:c,updatedOptions:Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:s}})}}async function a(e,t,n,r){let{span:a,updatedOptions:s}=i(e,t,r);try{let e=await o(s.tracingOptions.tracingContext,()=>Promise.resolve(n(s,a)));return a.setStatus({status:`success`}),e}catch(e){throw a.setStatus({status:`error`,error:e}),e}finally{a.end()}}function o(e,t,...n){return kc().withContext(e,t,...n)}function s(e){return kc().parseTraceparentHeader(e)}function c(e){return kc().createRequestHeaders(e)}return{startSpan:i,withSpan:a,withContext:o,parseTraceparentHeader:s,createRequestHeaders:c}}const jc=ho;function Mc(e){return go(e)}function Nc(e={}){let t=ec(e.userAgentPrefix),n=new po({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters}),r=Pc();return{name:`tracingPolicy`,async sendRequest(e,i){if(!r)return i(e);let a=await t,o={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};a&&(o[`http.user_agent`]=a);let{span:s,tracingContext:c}=Fc(r,e,o)??{};if(!s||!c)return i(e);try{let t=await r.withContext(c,i,e);return Lc(s,t),t}catch(e){throw Ic(s,e),e}}}}function Pc(){try{return Ac({namespace:``,packageName:`@azure/core-rest-pipeline`,packageVersion:Zs})}catch(e){Ks.warning(`Error when creating the TracingClient: ${oc(e)}`);return}}function Fc(e,t,n){try{let{span:r,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:`client`,spanAttributes:n});if(!r.isRecording()){r.end();return}let a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(let[e,n]of Object.entries(a))t.headers.set(e,n);return{span:r,tracingContext:i.tracingOptions.tracingContext}}catch(e){Ks.warning(`Skipping creating a tracing span due to an error: ${oc(e)}`);return}}function Ic(e,t){try{e.setStatus({status:`error`,error:sc(t)?t:void 0}),Mc(t)&&t.statusCode&&e.setAttribute(`http.status_code`,t.statusCode),e.end()}catch(e){Ks.warning(`Skipping tracing span processing due to an error: ${oc(e)}`)}}function Lc(e,t){try{e.setAttribute(`http.status_code`,t.status);let n=t.headers.get(`x-ms-request-id`);n&&e.setAttribute(`serviceRequestId`,n),t.status>=400&&e.setStatus({status:`error`}),e.end()}catch(e){Ks.warning(`Skipping tracing span processing due to an error: ${oc(e)}`)}}function Rc(e){if(e instanceof AbortSignal)return{abortSignal:e};if(e.aborted)return{abortSignal:AbortSignal.abort(e.reason)};let t=new AbortController,n=!0;function r(){n&&=(e.removeEventListener(`abort`,i),!1)}function i(){t.abort(e.reason),r()}return e.addEventListener(`abort`,i),{abortSignal:t.signal,cleanup:r}}function zc(){return{name:`wrapAbortSignalLikePolicy`,sendRequest:async(e,t)=>{if(!e.abortSignal)return t(e);let{abortSignal:n,cleanup:r}=Rc(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{r?.()}}}}function Bc(e){let t=Us();return lc&&(e.agent&&t.addPolicy(xc(e.agent)),e.tlsOptions&&t.addPolicy(Sc(e.tlsOptions)),t.addPolicy(yc(e.proxyOptions)),t.addPolicy(hc())),t.addPolicy(zc()),t.addPolicy(_c(),{beforePolicies:[pc]}),t.addPolicy(nc(e.userAgentOptions)),t.addPolicy(bc(e.telemetryOptions?.clientRequestIdHeaderName)),t.addPolicy(mc(),{afterPhase:`Deserialize`}),t.addPolicy(gc(e.retryOptions),{phase:`Retry`}),t.addPolicy(Nc({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:`Retry`}),lc&&t.addPolicy(Js(e.redirectOptions),{afterPhase:`Retry`}),t.addPolicy(qs(e.loggingOptions),{afterPhase:`Sign`}),t}function Vc(){let e=Ao();return{async sendRequest(t){let{abortSignal:n,cleanup:r}=t.abortSignal?Rc(t.abortSignal):{};try{return t.abortSignal=n,await e.sendRequest(t)}finally{r?.()}}}}function Hc(e){return $a(e)}function Uc(e){return no(e)}const Wc={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Gc(e,t,n){async function r(){if(Date.now()e.getToken(t,s),a.retryIntervalInMs,r?.expiresOnTimestamp??Date.now()).then(e=>(n=null,r=e,i=s.tenantId,r)).catch(e=>{throw n=null,r=null,i=void 0,e})),n}return async(e,t)=>{let n=!!t.claims,a=i!==t.tenantId;return n&&(r=null),a||n||o.mustRefresh?s(e,t):(o.shouldRefresh&&s(e,t),r)}}async function qc(e,t){try{return[await t(e),void 0]}catch(e){if(Mc(e)&&e.response)return[e.response,e];throw e}}async function Jc(e){let{scopes:t,getAccessToken:n,request:r}=e,i=await n(t,{abortSignal:r.abortSignal,tracingOptions:r.tracingOptions,enableCae:!0});i&&e.request.headers.set(`Authorization`,`Bearer ${i.token}`)}function Yc(e){return e.status===401&&e.headers.has(`WWW-Authenticate`)}async function Xc(e,t){let{scopes:n}=e,r=await e.getAccessToken(n,{enableCae:!0,claims:t});return r?(e.request.headers.set(`Authorization`,`${r.tokenType??`Bearer`} ${r.token}`),!0):!1}function Zc(e){let{credential:t,scopes:n,challengeCallbacks:r}=e,i=e.logger||Ks,a={authorizeRequest:r?.authorizeRequest?.bind(r)??Jc,authorizeRequestOnChallenge:r?.authorizeRequestOnChallenge?.bind(r)},o=t?Kc(t):()=>Promise.resolve(null);return{name:`bearerTokenAuthenticationPolicy`,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith(`https://`))throw Error(`Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.`);await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:o,logger:i});let r,s,c;if([r,s]=await qc(e,t),Yc(r)){let l=$c(r.headers.get(`WWW-Authenticate`));if(l){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Xc({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await qc(e,t))}else if(a.authorizeRequestOnChallenge&&(c=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:r,getAccessToken:o,logger:i}),c&&([r,s]=await qc(e,t)),Yc(r)&&(l=$c(r.headers.get(`WWW-Authenticate`)),l))){let a;try{a=atob(l)}catch{return i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${l}`),r}c=await Xc({scopes:Array.isArray(n)?n:[n],response:r,request:e,getAccessToken:o,logger:i},a),c&&([r,s]=await qc(e,t))}}if(s)throw s;return r}}}function Qc(e){let t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g,n=/(\w+)="([^"]*)"/g,r=[],i;for(;(i=t.exec(e))!==null;){let e=i[1],t=i[2],a={},o;for(;(o=n.exec(t))!==null;)a[o[1]]=o[2];r.push({scheme:e,params:a})}return r}function $c(e){if(e)return Qc(e).find(e=>e.scheme===`Bearer`&&e.params.claims&&e.params.error===`insufficient_claims`)?.params.claims}function el(e){let t=e;return t&&typeof t.getToken==`function`&&(t.signRequest===void 0||t.getToken.length>0)}const tl=`DisableKeepAlivePolicy`;function nl(){return{name:tl,async sendRequest(e,t){return e.disableKeepAlive=!0,t(e)}}}function rl(e){return e.getOrderedPolicies().some(e=>e.name===tl)}function il(e){return(e instanceof Buffer?e:Buffer.from(e.buffer)).toString(`base64`)}function al(e){return Buffer.from(e,`base64`)}function ol(e,t){return t!==`Composite`&&t!==`Dictionary`&&(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e==null)}const sl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function cl(e){return sl.test(e)}const ll=/^[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 ul(e){return ll.test(e)}function dl(e){let t={...e.headers,...e.body};return e.hasNullableType&&Object.getOwnPropertyNames(t).length===0?e.shouldWrapBody?{body:null}:null:e.shouldWrapBody?{...e.headers,body:e.body}:t}function fl(e,t){let n=e.parsedHeaders;if(e.request.method===`HEAD`)return{...n,body:e.parsedBody};let r=t&&t.bodyMapper,i=!!r?.nullable,a=r?.type.name;if(a===`Stream`)return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody};let o=a===`Composite`&&r.type.modelProperties||{},s=Object.keys(o).some(e=>o[e].serializedName===``);if(a===`Sequence`||s){let t=e.parsedBody??[];for(let n of Object.keys(o))o[n].serializedName&&(t[n]=e.parsedBody?.[n]);if(n)for(let e of Object.keys(n))t[e]=n[e];return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(o).length===0?null:t}return dl({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:ol(e.parsedBody,a)})}var pl=class{modelMappers;isXML;constructor(e={},t=!1){this.modelMappers=e,this.isXML=t}validateConstraints(e,t,n){let r=(e,r)=>{throw Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${r}.`)};if(e.constraints&&t!=null){let{ExclusiveMaximum:n,ExclusiveMinimum:i,InclusiveMaximum:a,InclusiveMinimum:o,MaxItems:s,MaxLength:c,MinItems:l,MinLength:u,MultipleOf:d,Pattern:f,UniqueItems:p}=e.constraints;if(n!==void 0&&t>=n&&r(`ExclusiveMaximum`,n),i!==void 0&&t<=i&&r(`ExclusiveMinimum`,i),a!==void 0&&t>a&&r(`InclusiveMaximum`,a),o!==void 0&&ts&&r(`MaxItems`,s),c!==void 0&&t.length>c&&r(`MaxLength`,c),l!==void 0&&t.lengthn.indexOf(e)!==t)&&r(`UniqueItems`,p)}}serialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`}},a={},o=e.type.name;n||=e.serializedName,o.match(/^Sequence$/i)!==null&&(a=[]),e.isConstant&&(t=e.defaultValue);let{required:s,nullable:c}=e;if(s&&c&&t===void 0)throw Error(`${n} cannot be undefined.`);if(s&&!c&&t==null)throw Error(`${n} cannot be null or undefined.`);if(!s&&c===!1&&t===null)throw Error(`${n} cannot be null.`);return t==null?a=t:o.match(/^any$/i)===null?o.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)===null?o.match(/^Enum$/i)===null?o.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)===null?o.match(/^Composite$/i)!==null&&(a=jl(this,e,t,n,!!this.isXML,i)):a=Dl(this,e,t,n,!!this.isXML,i):a=El(this,e,t,n,!!this.isXML,i):a=wl(n,t):a=Cl(n,t):a=Tl(o,t,n):a=Sl(n,e.type.allowedValues,t):a=xl(o,n,t):a=t,a}deserialize(e,t,n,r={xml:{}}){let i={xml:{rootName:r.xml.rootName??``,includeRoot:r.xml.includeRoot??!1,xmlCharKey:r.xml.xmlCharKey??`_`},ignoreUnknownProperties:r.ignoreUnknownProperties??!1};if(t==null)return this.isXML&&e.type.name===`Sequence`&&!e.xmlIsWrapped&&(t=[]),e.defaultValue!==void 0&&(t=e.defaultValue),t;let a,o=e.type.name;if(n||=e.serializedName,o.match(/^Composite$/i)!==null)a=Pl(this,e,t,n,i);else{if(this.isXML){let e=i.xml.xmlCharKey;t.$!==void 0&&t[e]!==void 0&&(t=t[e])}o.match(/^Number$/i)===null?o.match(/^Boolean$/i)===null?o.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)===null?o.match(/^(Date|DateTime|DateTimeRfc1123)$/i)===null?o.match(/^UnixTime$/i)===null?o.match(/^ByteArray$/i)===null?o.match(/^Base64Url$/i)===null?o.match(/^Sequence$/i)===null?o.match(/^Dictionary$/i)!==null&&(a=Fl(this,e,t,n,i)):a=Il(this,e,t,n,i):a=_l(t):a=al(t):a=bl(t):a=new Date(t):a=t:a=t===`true`?!0:t===`false`?!1:t:(a=parseFloat(t),isNaN(a)&&(a=t))}return e.isConstant&&(a=e.defaultValue),a}};function ml(e={},t=!1){return new pl(e,t)}function hl(e,t){let n=e.length;for(;n-1>=0&&e[n-1]===t;)--n;return e.substr(0,n)}function gl(e){if(e){if(!(e instanceof Uint8Array))throw Error(`Please provide an input of type Uint8Array for converting to Base64Url.`);return hl(il(e),`=`).replace(/\+/g,`-`).replace(/\//g,`_`)}}function _l(e){if(e){if(e&&typeof e.valueOf()!=`string`)throw Error(`Please provide an input of type string for converting to Uint8Array`);return e=e.replace(/-/g,`+`).replace(/_/g,`/`),al(e)}}function vl(e){let t=[],n=``;if(e){let r=e.split(`.`);for(let e of r)e.charAt(e.length-1)===`\\`?n+=e.substr(0,e.length-1)+`.`:(n+=e,t.push(n),n=``)}return t}function yl(e){if(e)return typeof e.valueOf()==`string`&&(e=new Date(e)),Math.floor(e.getTime()/1e3)}function bl(e){if(e)return new Date(e*1e3)}function xl(e,t,n){if(n!=null){if(e.match(/^Number$/i)!==null){if(typeof n!=`number`)throw Error(`${t} with value ${n} must be of type number.`)}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=`string`)throw Error(`${t} with value "${n}" must be of type string.`)}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==`string`&&ul(n)))throw Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=`boolean`)throw Error(`${t} with value ${n} must be of type boolean.`)}else if(e.match(/^Stream$/i)!==null){let e=typeof n;if(e!==`string`&&typeof n.pipe!=`function`&&typeof n.tee!=`function`&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==`function`||typeof Blob==`object`)&&n instanceof Blob)&&e!==`function`)throw Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}return n}function Sl(e,t,n){if(!t)throw Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`);if(!t.some(e=>typeof e.valueOf()==`string`?e.toLowerCase()===n.toLowerCase():e===n))throw Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`);return n}function Cl(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=il(t)}return t}function wl(e,t){if(t!=null){if(!(t instanceof Uint8Array))throw Error(`${e} must be of type Uint8Array.`);t=gl(t)}return t}function Tl(e,t,n){if(t!=null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in ISO8601 format.`);t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`);t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==`string`&&!isNaN(Date.parse(t))))throw Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format for it to be serialized in UnixTime/Epoch format.`);t=yl(t)}else if(e.match(/^TimeSpan$/i)!==null&&!cl(t))throw Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}return t}function El(e,t,n,r,i,a){if(!Array.isArray(n))throw Error(`${r} must be of type Array.`);let o=t.type.element;if(!o||typeof o!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}.`);o.type.name===`Composite`&&o.type.className&&(o=e.modelMappers[o.type.className]??o);let s=[];for(let t=0;te!==i)&&(o[i]=e.serialize(c,n[i],r+`["`+i+`"]`,a))}return o}return n}function Ml(e,t,n,r){if(!n||!e.xmlNamespace)return t;let i={[e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:`xmlns`]:e.xmlNamespace};if([`Composite`].includes(e.type.name)){if(t.$)return t;{let e={...t};return e.$=i,e}}let a={};return a[r.xml.xmlCharKey]=t,a.$=i,a}function Nl(e,t){return[`$`,t.xml.xmlCharKey].includes(e)}function Pl(e,t,n,r,i){let a=i.xml.xmlCharKey??`_`;zl(e,t)&&(t=Rl(e,t,n,`serializedName`));let o=Al(e,t,r),s={},c=[];for(let l of Object.keys(o)){let u=o[l],d=vl(o[l].serializedName);c.push(d[0]);let{serializedName:f,xmlName:p,xmlElementName:m}=u,h=r;f!==``&&f!==void 0&&(h=r+`.`+f);let g=u.headerCollectionPrefix;if(g){let t={};for(let r of Object.keys(n))r.startsWith(g)&&(t[r.substring(g.length)]=e.deserialize(u.type.value,n[r],h,i)),c.push(r);s[l]=t}else if(e.isXML)if(u.xmlIsAttribute&&n.$)s[l]=e.deserialize(u,n.$[p],h,i);else if(u.xmlIsMsText)n[a]===void 0?typeof n==`string`&&(s[l]=n):s[l]=n[a];else{let t=m||p||f;if(u.xmlIsWrapped){let t=n[p]?.[m]??[];s[l]=e.deserialize(u,t,h,i),c.push(p)}else{let r=n[t];s[l]=e.deserialize(u,r,h,i),c.push(t)}}else{let r,a=n,c=0;for(let e of d){if(!a)break;c++,a=a[e]}a===null&&c{for(let t in o)if(vl(o[t].serializedName)[0]===e)return!1;return!0};for(let a in n)t(a)&&(s[a]=e.deserialize(l,n[a],r+`["`+a+`"]`,i))}else if(n&&!i.ignoreUnknownProperties)for(let e of Object.keys(n))s[e]===void 0&&!c.includes(e)&&!Nl(e,i)&&(s[e]=n[e]);return s}function Fl(e,t,n,r,i){let a=t.type.value;if(!a||typeof a!=`object`)throw Error(`"value" metadata for a Dictionary must be defined in the mapper and it must of type "object" in ${r}`);if(n){let t={};for(let o of Object.keys(n))t[o]=e.deserialize(a,n[o],r,i);return t}return n}function Il(e,t,n,r,i){let a=t.type.element;if(!a||typeof a!=`object`)throw Error(`element" metadata for an Array must be defined in the mapper and it must of type "object" in ${r}`);if(n){Array.isArray(n)||(n=[n]),a.type.name===`Composite`&&a.type.className&&(a=e.modelMappers[a.type.className]??a);let t=[];for(let o=0;o{Object.defineProperty(e,"__esModule",{value:!0}),e.state=void 0,e.state={operationRequestMap:new WeakMap}}))().state;function Ul(e,t,n){let r=t.parameterPath,i=t.mapper,a;if(typeof r==`string`&&(r=[r]),Array.isArray(r)){if(r.length>0)if(i.isConstant)a=i.defaultValue;else{let t=Wl(e,r);!t.propertyFound&&n&&(t=Wl(n,r));let o=!1;t.propertyFound||(o=i.required||r[0]===`options`&&r.length===2),a=o?i.defaultValue:t.propertyValue}}else{i.required&&(a={});for(let t in r){let o=i.type.modelProperties[t],s=r[t],c=Ul(e,{parameterPath:s,mapper:o},n);c!==void 0&&(a||={},a[t]=c)}}return a}function Wl(e,t){let n={propertyFound:!1},r=0;for(;r=200&&n.status<300);s.headersMapper&&(a.parsedHeaders=o.serializer.deserialize(s.headersMapper,a.headers.toJSON(),`operationRes.parsedHeaders`,{xml:{},ignoreUnknownProperties:!0}))}return a}function eu(e){let t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function tu(e,t,n,r){let i=200<=e.status&&e.status<300;if(eu(t)?i:n)if(n){if(!n.isError)return{error:null,shouldReturnResponse:!1}}else return{error:null,shouldReturnResponse:!1};let a=n??t.responses.default,o=new jc(e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText,{statusCode:e.status,request:e.request,response:e});if(!a&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message))throw o;let s=a?.bodyMapper,c=a?.headersMapper;try{if(e.parsedBody){let n=e.parsedBody,i;if(s){let e=n;if(t.isXML&&s.type.name===Vl.Sequence){e=[];let t=s.xmlElementName;typeof n==`object`&&t&&(e=n[t])}i=t.serializer.deserialize(s,e,`error.response.parsedBody`,r)}let a=n.error||i||n;o.code=a.code,a.message&&(o.message=a.message),s&&(o.response.parsedBody=i)}e.headers&&c&&(o.response.parsedHeaders=t.serializer.deserialize(c,e.headers.toJSON(),`operationRes.parsedHeaders`))}catch(t){o.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:o,shouldReturnResponse:!1}}async function nu(e,t,n,r,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){let a=n.bodyAsText,o=n.headers.get(`Content-Type`)||``,s=o?o.split(`;`).map(e=>e.toLowerCase()):[];try{if(s.length===0||s.some(t=>e.indexOf(t)!==-1))return n.parsedBody=JSON.parse(a),n;if(s.some(e=>t.indexOf(e)!==-1)){if(!i)throw Error(`Parsing XML not supported.`);return n.parsedBody=await i(a,r.xml),n}}catch(e){throw new jc(`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`,{code:e.code||jc.PARSE_ERROR,statusCode:n.status,request:n.request,response:n})}}return n}function ru(e){let t=new Set;for(let n in e.responses){let r=e.responses[n];r.bodyMapper&&r.bodyMapper.type.name===Vl.Stream&&t.add(Number(n))}return t}function iu(e){let{parameterPath:t,mapper:n}=e,r;return r=typeof t==`string`?t:Array.isArray(t)?t.join(`.`):n.serializedName,r}function au(e={}){let t=e.stringifyXML;return{name:`serializationPolicy`,async sendRequest(e,n){let r=ql(e),i=r?.operationSpec,a=r?.operationArguments;return i&&a&&(ou(e,a,i),su(e,a,i,t)),n(e)}}}function ou(e,t,n){if(n.headerParameters)for(let r of n.headerParameters){let i=Ul(t,r);if(i!=null||r.mapper.required){i=n.serializer.serialize(r.mapper,i,iu(r));let t=r.mapper.headerCollectionPrefix;if(t)for(let n of Object.keys(i))e.headers.set(t+n,i[n]);else e.headers.set(r.mapper.serializedName||iu(r),i)}}let r=t.options?.requestOptions?.customHeaders;if(r)for(let t of Object.keys(r))e.headers.set(t,r[t])}function su(e,t,n,r=function(){throw Error(`XML serialization unsupported!`)}){let i=t.options?.serializerOptions,a={xml:{rootName:i?.xml.rootName??``,includeRoot:i?.xml.includeRoot??!1,xmlCharKey:i?.xml.xmlCharKey??`_`}},o=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=Ul(t,n.requestBody);let i=n.requestBody.mapper,{required:s,serializedName:c,xmlName:l,xmlElementName:u,xmlNamespace:d,xmlNamespacePrefix:f,nullable:p}=i,m=i.type.name;try{if(e.body!==void 0&&e.body!==null||p&&e.body===null||s){let t=iu(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);let s=m===Vl.Stream;if(n.isXML){let t=f?`xmlns:${f}`:`xmlns`,n=cu(d,t,m,e.body,a);m===Vl.Sequence?e.body=r(lu(n,u||l||c,t,d),{rootName:l||c,xmlCharKey:o}):s||(e.body=r(n,{rootName:l||c,xmlCharKey:o}))}else if(m===Vl.String&&(n.contentType?.match(`text/plain`)||n.mediaType===`text`))return;else s||(e.body=JSON.stringify(e.body))}}catch(e){throw Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(c,void 0,` `)}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(let r of n.formDataParameters){let i=Ul(t,r);if(i!=null){let t=r.mapper.serializedName||iu(r);e.formData[t]=n.serializer.serialize(r.mapper,i,iu(r),a)}}}}function cu(e,t,n,r,i){if(e&&![`Composite`,`Sequence`,`Dictionary`].includes(n)){let n={};return n[i.xml.xmlCharKey]=r,n.$={[t]:e},n}return r}function lu(e,t,n,r){if(Array.isArray(e)||(e=[e]),!n||!r)return{[t]:e};let i={[t]:e};return i.$={[n]:r},i}function uu(e={}){let t=Bc(e??{});return e.credentialOptions&&t.addPolicy(Zc({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes})),t.addPolicy(au(e.serializationOptions),{phase:`Serialize`}),t.addPolicy(Xl(e.deserializationOptions),{phase:`Deserialize`}),t}let du;function fu(){return du||=Vc(),du}const pu={CSV:`,`,SSV:` `,Multi:`Multi`,TSV:` `,Pipes:`|`};function mu(e,t,n,r){let i=gu(t,n,r),a=!1,o=hu(e,i);if(t.path){let e=hu(t.path,i);t.path===`/{nextLink}`&&e.startsWith(`/`)&&(e=e.substring(1)),_u(e)?(o=e,a=!0):o=vu(o,e)}let{queryParams:s,sequenceParams:c}=yu(t,n,r);return o=xu(o,s,c,a),o}function hu(e,t){let n=e;for(let[e,r]of t)n=n.split(e).join(r);return n}function gu(e,t,n){let r=new Map;if(e.urlParameters?.length)for(let i of e.urlParameters){let a=Ul(t,i,n),o=iu(i);a=e.serializer.serialize(i.mapper,a,o),i.skipEncoding||(a=encodeURIComponent(a)),r.set(`{${i.mapper.serializedName||o}}`,a)}return r}function _u(e){return e.includes(`://`)}function vu(e,t){if(!t)return e;let n=new URL(e),r=n.pathname;r.endsWith(`/`)||(r=`${r}/`),t.startsWith(`/`)&&(t=t.substring(1));let i=t.indexOf(`?`);if(i!==-1){let e=t.substring(0,i),a=t.substring(i+1);r+=e,a&&(n.search=n.search?`${n.search}&${a}`:a)}else r+=t;return n.pathname=r,n.toString()}function yu(e,t,n){let r=new Map,i=new Set;if(e.queryParameters?.length)for(let a of e.queryParameters){a.mapper.type.name===`Sequence`&&a.mapper.serializedName&&i.add(a.mapper.serializedName);let o=Ul(t,a,n);if(o!=null||a.mapper.required){o=e.serializer.serialize(a.mapper,o,iu(a));let t=a.collectionFormat?pu[a.collectionFormat]:``;if(Array.isArray(o)&&(o=o.map(e=>e??``)),a.collectionFormat===`Multi`&&o.length===0)continue;Array.isArray(o)&&(a.collectionFormat===`SSV`||a.collectionFormat===`TSV`)&&(o=o.join(t)),a.skipEncoding||(o=Array.isArray(o)?o.map(e=>encodeURIComponent(e)):encodeURIComponent(o)),Array.isArray(o)&&(a.collectionFormat===`CSV`||a.collectionFormat===`Pipes`)&&(o=o.join(t)),r.set(a.mapper.serializedName||iu(a),o)}}return{queryParams:r,sequenceParams:i}}function bu(e){let t=new Map;if(!e||e[0]!==`?`)return t;e=e.slice(1);let n=e.split(`&`);for(let e of n){let[n,r]=e.split(`=`,2),i=t.get(n);i?Array.isArray(i)?i.push(r):t.set(n,[i,r]):t.set(n,r)}return t}function xu(e,t,n,r=!1){if(t.size===0)return e;let i=new URL(e),a=bu(i.search);for(let[e,i]of t){let t=a.get(e);if(Array.isArray(t))if(Array.isArray(i)){t.push(...i);let n=new Set(t);a.set(e,Array.from(n))}else t.push(i);else t?(Array.isArray(i)?i.unshift(t):n.has(e)&&a.set(e,[t,i]),r||a.set(e,i)):a.set(e,i)}let o=[];for(let[e,t]of a)if(typeof t==`string`)o.push(`${e}=${t}`);else if(Array.isArray(t))for(let n of t)o.push(`${e}=${n}`);else o.push(`${e}=${t}`);return i.search=o.length?`?${o.join(`&`)}`:``,i.toString()}const Su=Gs(`core-client`);var Cu=class{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){if(this._requestContentType=e.requestContentType,this._endpoint=e.endpoint??e.baseUri,e.baseUri&&Su.warning(`The baseUri option for SDK Clients has been deprecated, please use endpoint instead.`),this._allowInsecureConnection=e.allowInsecureConnection,this._httpClient=e.httpClient||fu(),this.pipeline=e.pipeline||wu(e),e.additionalPolicies?.length)for(let{policy:t,position:n}of e.additionalPolicies){let e=n===`perRetry`?`Sign`:void 0;this.pipeline.addPolicy(t,{afterPhase:e})}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){let n=t.baseUrl||this._endpoint;if(!n)throw Error(`If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.`);let r=Uc({url:mu(n,t,e,this)});r.method=t.httpMethod;let i=ql(r);i.operationSpec=t,i.operationArguments=e;let a=t.contentType||this._requestContentType;a&&t.requestBody&&r.headers.set(`Content-Type`,a);let o=e.options;if(o){let e=o.requestOptions;e&&(e.timeout&&(r.timeout=e.timeout),e.onUploadProgress&&(r.onUploadProgress=e.onUploadProgress),e.onDownloadProgress&&(r.onDownloadProgress=e.onDownloadProgress),e.shouldDeserialize!==void 0&&(i.shouldDeserialize=e.shouldDeserialize),e.allowInsecureConnection&&(r.allowInsecureConnection=!0)),o.abortSignal&&(r.abortSignal=o.abortSignal),o.tracingOptions&&(r.tracingOptions=o.tracingOptions)}this._allowInsecureConnection&&(r.allowInsecureConnection=!0),r.streamResponseStatusCodes===void 0&&(r.streamResponseStatusCodes=ru(t));try{let e=await this.sendRequest(r),n=fl(e,t.responses[e.status]);return o?.onResponse&&o.onResponse(e,n),n}catch(e){if(typeof e==`object`&&e?.response){let n=e.response,r=fl(n,t.responses[e.statusCode]||t.responses.default);e.details=r,o?.onResponse&&o.onResponse(n,r,e)}throw e}}};function wu(e){let t=Tu(e),n=e.credential&&t?{credentialScopes:t,credential:e.credential}:void 0;return uu({...e,credentialOptions:n})}function Tu(e){if(e.credentialScopes)return e.credentialScopes;if(e.endpoint)return`${e.endpoint}/.default`;if(e.baseUri)return`${e.baseUri}/.default`;if(e.credential&&!e.credentialScopes)throw Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}const Eu={DefaultScope:`/.default`,HeaderConstants:{AUTHORIZATION:`authorization`}};function Du(e){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(e)}const Ou=async e=>{let t=Nu(e.request),n=ju(e.response);if(n){let r=Mu(n),i=Au(e,r),a=ku(r);if(!a)return!1;let o=await e.getAccessToken(i,{...t,tenantId:a});return o?(e.request.headers.set(Eu.HeaderConstants.AUTHORIZATION,`${o.tokenType??`Bearer`} ${o.token}`),!0):!1}return!1};function ku(e){let t=new URL(e.authorization_uri).pathname.split(`/`)[1];if(t&&Du(t))return t}function Au(e,t){if(!t.resource_id)return e.scopes;let n=new URL(t.resource_id);n.pathname=Eu.DefaultScope;let r=n.toString();return r===`https://disk.azure.com/.default`&&(r=`https://disk.azure.com//.default`),[r]}function ju(e){let t=e.headers.get(`WWW-Authenticate`);if(e.status===401&&t)return t}function Mu(e){return`${e.slice(7).trim()} `.split(` `).filter(e=>e).map(e=>(([e,t])=>({[e]:t}))(e.trim().split(`=`))).reduce((e,t)=>({...e,...t}),{})}function Nu(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Pu=Symbol(`Original PipelineRequest`),Fu=Symbol.for(`@azure/core-client original request`);function Iu(e,t={}){let n=e[Pu],r=Hc(e.headers.toJson({preserveCase:!0}));if(n)return n.headers=r,n;{let n=Uc({url:e.url,method:e.method,headers:r,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});return t.originalRequest&&(n[Fu]=t.originalRequest),n}}function Lu(e,t){let n=t?.originalRequest??e,r={url:e.url,method:e.method,headers:Ru(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get(`x-ms-client-request-id`)||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw Error(`Cannot clone a non-proxied WebResourceLike`)},prepare(){throw Error(`WebResourceLike.prepare() is not supported by @azure/core-http-compat`)},validateRequestProperties(){}};return t?.createProxy?new Proxy(r,{get(t,i,a){return i===Pu?e:i===`clone`?()=>Lu(Iu(r,{originalRequest:n}),{createProxy:!0,originalRequest:n}):Reflect.get(t,i,a)},set(t,n,r,i){return n===`keepAlive`&&(e.disableKeepAlive=!r),typeof n==`string`&&[`url`,`method`,`withCredentials`,`timeout`,`requestId`,`abortSignal`,`body`,`formData`,`onDownloadProgress`,`onUploadProgress`,`proxySettings`,`streamResponseStatusCodes`,`agent`,`requestOverrides`].includes(n)&&(e[n]=r),Reflect.set(t,n,r,i)}}):r}function Ru(e){return new Bu(e.toJSON({preserveCase:!0}))}function zu(e){return e.toLowerCase()}var Bu=class e{_headersMap;constructor(e){if(this._headersMap={},e)for(let t in e)this.set(t,e[t])}set(e,t){this._headersMap[zu(e)]={name:e,value:t.toString()}}get(e){let t=this._headersMap[zu(e)];return t?t.value:void 0}contains(e){return!!this._headersMap[zu(e)]}remove(e){let t=this.contains(e);return delete this._headersMap[zu(e)],t}rawHeaders(){return this.toJson({preserveCase:!0})}headersArray(){let e=[];for(let t in this._headersMap)e.push(this._headersMap[t]);return e}headerNames(){let e=[],t=this.headersArray();for(let n=0;nUu(await e.sendRequest(Lu(t,{createProxy:!0})))}}const Yu=RegExp(`^[:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`);function Xu(e,t){let n=[],r=t.exec(e);for(;r;){let i=[];i.startIndex=t.lastIndex-r[0].length;let a=r.length;for(let e=0;e`&&e[a]!==` `&&e[a]!==` `&&e[a]!==` +`&&e[a]!==`\r`;a++)c+=e[a];if(c=c.trim(),c[c.length-1]===`/`&&(c=c.substring(0,c.length-1),a--),!pd(c)){let t;return t=c.trim().length===0?`Invalid space after '<'.`:`Tag '`+c+`' is an invalid name.`,dd(`InvalidTag`,t,md(e,a))}let l=od(e,a);if(l===!1)return dd(`InvalidAttr`,`Attributes for '`+c+`' have open quote.`,md(e,a));let u=l.value;if(a=l.index,u[u.length-1]===`/`){let n=a-u.length;u=u.substring(0,u.length-1);let i=cd(u,t);if(i===!0)r=!0;else return dd(i.err.code,i.err.msg,md(e,n+i.err.line))}else if(s){if(!l.tagClosed)return dd(`InvalidTag`,`Closing tag '`+c+`' doesn't have proper closing.`,md(e,a));if(u.trim().length>0)return dd(`InvalidTag`,`Closing tag '`+c+`' can't have attributes or invalid starting.`,md(e,o));if(n.length===0)return dd(`InvalidTag`,`Closing tag '`+c+`' has not been opened.`,md(e,o));{let t=n.pop();if(c!==t.tagName){let n=md(e,t.tagStartPos);return dd(`InvalidTag`,`Expected closing tag '`+t.tagName+`' (opened in line `+n.line+`, col `+n.col+`) instead of closing tag '`+c+`'.`,md(e,o))}n.length==0&&(i=!0)}}else{let s=cd(u,t);if(s!==!0)return dd(s.err.code,s.err.msg,md(e,a-u.length+s.err.line));if(i===!0)return dd(`InvalidXml`,`Multiple possible root nodes found.`,md(e,a));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:o}),r=!0}for(a++;a0?dd(`InvalidXml`,`Invalid '`+JSON.stringify(n.map(e=>e.tagName),null,4).replace(/\r?\n/g,``)+`' found.`,{line:1,col:1}):!0:dd(`InvalidXml`,`Start tag expected.`,1)}function rd(e){return e===` `||e===` `||e===` +`||e===`\r`}function id(e,t){let n=t;for(;t5&&r===`xml`)return dd(`InvalidXml`,`XML declaration allowed only at the start of the document.`,md(e,t));if(e[t]==`?`&&e[t+1]==`>`){t++;break}else continue}return t}function ad(e,t){if(e.length>t+5&&e[t+1]===`-`&&e[t+2]===`-`){for(t+=3;t`){t+=2;break}}else if(e.length>t+8&&e[t+1]===`D`&&e[t+2]===`O`&&e[t+3]===`C`&&e[t+4]===`T`&&e[t+5]===`Y`&&e[t+6]===`P`&&e[t+7]===`E`){let n=1;for(t+=8;t`&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]===`[`&&e[t+2]===`C`&&e[t+3]===`D`&&e[t+4]===`A`&&e[t+5]===`T`&&e[t+6]===`A`&&e[t+7]===`[`){for(t+=8;t`){t+=2;break}}return t}function od(e,t){let n=``,r=``,i=!1;for(;t`&&r===``){i=!0;break}n+=e[t]}return r===``?{value:n,index:t,tagClosed:i}:!1}const sd=RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,`g`);function cd(e,t){let n=Xu(e,sd),r={};for(let e=0;e`,GT:`>`,quot:`"`,QUOT:`"`,apos:`'`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,lsquor:`‚`,rsquor:`’`,ldquor:`„`,bdquo:`„`,comma:`,`,period:`.`,colon:`:`,semi:`;`,excl:`!`,quest:`?`,num:`#`,dollar:`$`,percent:`%`,ast:`*`,commat:`@`,lowbar:`_`,verbar:`|`,vert:`|`,sol:`/`,bsol:`\\`,lbrace:`{`,rbrace:`}`,lbrack:`[`,rbrack:`]`,lpar:`(`,rpar:`)`,nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,COPY:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,REG:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,half:`½`,frac34:`¾`,iquest:`¿`,times:`×`,div:`÷`,divide:`÷`},_d={Agrave:`À`,agrave:`à`,Aacute:`Á`,aacute:`á`,Acirc:`Â`,acirc:`â`,Atilde:`Ã`,atilde:`ã`,Auml:`Ä`,auml:`ä`,Aring:`Å`,aring:`å`,AElig:`Æ`,aelig:`æ`,Ccedil:`Ç`,ccedil:`ç`,Egrave:`È`,egrave:`è`,Eacute:`É`,eacute:`é`,Ecirc:`Ê`,ecirc:`ê`,Euml:`Ë`,euml:`ë`,Igrave:`Ì`,igrave:`ì`,Iacute:`Í`,iacute:`í`,Icirc:`Î`,icirc:`î`,Iuml:`Ï`,iuml:`ï`,ETH:`Ð`,eth:`ð`,Ntilde:`Ñ`,ntilde:`ñ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ljcy:`љ`,NJcy:`Њ`,njcy:`њ`,TSHcy:`Ћ`,tshcy:`ћ`,KJcy:`Ќ`,kjcy:`ќ`,Ubrcy:`Ў`,ubrcy:`ў`,DZcy:`Џ`,dzcy:`џ`},xd={plus:`+`,pm:`±`,times:`×`,div:`÷`,divide:`÷`,sdot:`⋅`,star:`☆`,starf:`★`,bigstar:`★`,lowast:`∗`,ast:`*`,midast:`*`,compfn:`∘`,smallcircle:`∘`,bullet:`•`,bull:`•`,nbsp:`\xA0`,hellip:`…`,mldr:`…`,prime:`′`,Prime:`″`,tprime:`‴`,bprime:`‵`,backprime:`‵`,minus:`−`,minusd:`∸`,dotminus:`∸`,plusdo:`∔`,dotplus:`∔`,plusmn:`±`,minusplus:`∓`,mnplus:`∓`,mp:`∓`,setminus:`∖`,smallsetminus:`∖`,Backslash:`∖`,setmn:`∖`,ssetmn:`∖`,lowbar:`_`,verbar:`|`,vert:`|`,VerticalLine:`|`,colon:`:`,Colon:`∷`,Proportion:`∷`,ratio:`∶`,equals:`=`,ne:`≠`,nequiv:`≢`,equiv:`≡`,Congruent:`≡`,sim:`∼`,thicksim:`∼`,thksim:`∼`,sime:`≃`,simeq:`≃`,TildeEqual:`≃`,asymp:`≈`,approx:`≈`,thickapprox:`≈`,thkap:`≈`,TildeTilde:`≈`,ncong:`≇`,cong:`≅`,TildeFullEqual:`≅`,asympeq:`≍`,CupCap:`≍`,bump:`≎`,Bumpeq:`≎`,HumpDownHump:`≎`,bumpe:`≏`,bumpeq:`≏`,HumpEqual:`≏`,le:`≤`,LessEqual:`≤`,ge:`≥`,GreaterEqual:`≥`,lesseqgtr:`⋚`,lesseqqgtr:`⪋`,greater:`>`,less:`<`},Sd={alefsym:`ℵ`,aleph:`ℵ`,beth:`ℶ`,gimel:`ℷ`,daleth:`ℸ`,forall:`∀`,ForAll:`∀`,part:`∂`,PartialD:`∂`,exist:`∃`,Exists:`∃`,nexist:`∄`,nexists:`∄`,empty:`∅`,emptyset:`∅`,emptyv:`∅`,varnothing:`∅`,nabla:`∇`,Del:`∇`,isin:`∈`,isinv:`∈`,in:`∈`,Element:`∈`,notin:`∉`,notinva:`∉`,ni:`∋`,niv:`∋`,SuchThat:`∋`,ReverseElement:`∋`,notni:`∌`,notniva:`∌`,prod:`∏`,Product:`∏`,coprod:`∐`,Coproduct:`∐`,sum:`∑`,Sum:`∑`,minus:`−`,mp:`∓`,plusdo:`∔`,dotplus:`∔`,setminus:`∖`,lowast:`∗`,radic:`√`,Sqrt:`√`,prop:`∝`,propto:`∝`,Proportional:`∝`,varpropto:`∝`,infin:`∞`,infintie:`⧝`,ang:`∠`,angle:`∠`,angmsd:`∡`,measuredangle:`∡`,angsph:`∢`,mid:`∣`,VerticalBar:`∣`,nmid:`∤`,nsmid:`∤`,npar:`∦`,parallel:`∥`,spar:`∥`,nparallel:`∦`,nspar:`∦`,and:`∧`,wedge:`∧`,or:`∨`,vee:`∨`,cap:`∩`,cup:`∪`,int:`∫`,Integral:`∫`,conint:`∮`,ContourIntegral:`∮`,Conint:`∯`,DoubleContourIntegral:`∯`,Cconint:`∰`,there4:`∴`,therefore:`∴`,Therefore:`∴`,becaus:`∵`,because:`∵`,Because:`∵`,ratio:`∶`,Proportion:`∷`,minusd:`∸`,dotminus:`∸`,mDDot:`∺`,homtht:`∻`,sim:`∼`,bsimg:`∽`,backsim:`∽`,ac:`∾`,mstpos:`∾`,acd:`∿`,VerticalTilde:`≀`,wr:`≀`,wreath:`≀`,nsime:`≄`,nsimeq:`≄`,ncong:`≇`,simne:`≆`,ncongdot:`⩭̸`,ngsim:`≵`,nsim:`≁`,napprox:`≉`,nap:`≉`,ngeq:`≱`,nge:`≱`,nleq:`≰`,nle:`≰`,ngtr:`≯`,ngt:`≯`,nless:`≮`,nlt:`≮`,nprec:`⊀`,npr:`⊀`,nsucc:`⊁`,nsc:`⊁`},Cd={larr:`←`,leftarrow:`←`,LeftArrow:`←`,uarr:`↑`,uparrow:`↑`,UpArrow:`↑`,rarr:`→`,rightarrow:`→`,RightArrow:`→`,darr:`↓`,downarrow:`↓`,DownArrow:`↓`,harr:`↔`,leftrightarrow:`↔`,LeftRightArrow:`↔`,varr:`↕`,updownarrow:`↕`,UpDownArrow:`↕`,nwarr:`↖`,nwarrow:`↖`,UpperLeftArrow:`↖`,nearr:`↗`,nearrow:`↗`,UpperRightArrow:`↗`,searr:`↘`,searrow:`↘`,LowerRightArrow:`↘`,swarr:`↙`,swarrow:`↙`,LowerLeftArrow:`↙`,lArr:`⇐`,Leftarrow:`⇐`,uArr:`⇑`,Uparrow:`⇑`,rArr:`⇒`,Rightarrow:`⇒`,dArr:`⇓`,Downarrow:`⇓`,hArr:`⇔`,Leftrightarrow:`⇔`,iff:`⇔`,vArr:`⇕`,Updownarrow:`⇕`,lAarr:`⇚`,Lleftarrow:`⇚`,rAarr:`⇛`,Rrightarrow:`⇛`,lrarr:`⇆`,leftrightarrows:`⇆`,rlarr:`⇄`,rightleftarrows:`⇄`,lrhar:`⇋`,leftrightharpoons:`⇋`,ReverseEquilibrium:`⇋`,rlhar:`⇌`,rightleftharpoons:`⇌`,Equilibrium:`⇌`,udarr:`⇅`,UpArrowDownArrow:`⇅`,duarr:`⇵`,DownArrowUpArrow:`⇵`,llarr:`⇇`,leftleftarrows:`⇇`,rrarr:`⇉`,rightrightarrows:`⇉`,ddarr:`⇊`,downdownarrows:`⇊`,har:`↽`,lhard:`↽`,leftharpoondown:`↽`,lharu:`↼`,leftharpoonup:`↼`,rhard:`⇁`,rightharpoondown:`⇁`,rharu:`⇀`,rightharpoonup:`⇀`,lsh:`↰`,Lsh:`↰`,rsh:`↱`,Rsh:`↱`,ldsh:`↲`,rdsh:`↳`,hookleftarrow:`↩`,hookrightarrow:`↪`,mapstoleft:`↤`,mapstoup:`↥`,map:`↦`,mapsto:`↦`,mapstodown:`↧`,crarr:`↵`,nleftarrow:`↚`,nleftrightarrow:`↮`,nrightarrow:`↛`,nrarr:`↛`,larrtl:`↢`,rarrtl:`↣`,leftarrowtail:`↢`,rightarrowtail:`↣`,twoheadleftarrow:`↞`,twoheadrightarrow:`↠`,Larr:`↞`,Rarr:`↠`,larrhk:`↩`,rarrhk:`↪`,larrlp:`↫`,looparrowleft:`↫`,rarrlp:`↬`,looparrowright:`↬`,harrw:`↭`,leftrightsquigarrow:`↭`,nrarrw:`↝̸`,rarrw:`↝`,rightsquigarrow:`↝`,larrbfs:`⤟`,rarrbfs:`⤠`,nvHarr:`⤄`,nvlArr:`⤂`,nvrArr:`⤃`,larrfs:`⤝`,rarrfs:`⤞`,Map:`⤅`,larrsim:`⥳`,rarrsim:`⥴`,harrcir:`⥈`,Uarrocir:`⥉`,lurdshar:`⥊`,ldrdhar:`⥧`,ldrushar:`⥋`,rdldhar:`⥩`,lrhard:`⥭`,uharr:`↾`,uharl:`↿`,dharr:`⇂`,dharl:`⇃`,Uarr:`↟`,Darr:`↡`,zigrarr:`⇝`,nwArr:`⇖`,neArr:`⇗`,seArr:`⇘`,swArr:`⇙`,nharr:`↮`,nhArr:`⇎`,nlarr:`↚`,nlArr:`⇍`,nrArr:`⇏`,larrb:`⇤`,LeftArrowBar:`⇤`,rarrb:`⇥`,RightArrowBar:`⇥`},wd={square:`□`,Square:`□`,squ:`□`,squf:`▪`,squarf:`▪`,blacksquar:`▪`,blacksquare:`▪`,FilledVerySmallSquare:`▪`,blk34:`▓`,blk12:`▒`,blk14:`░`,block:`█`,srect:`▭`,rect:`▭`,sdot:`⋅`,sdotb:`⊡`,dotsquare:`⊡`,triangle:`▵`,tri:`▵`,trine:`▵`,utri:`▵`,triangledown:`▿`,dtri:`▿`,tridown:`▿`,triangleleft:`◃`,ltri:`◃`,triangleright:`▹`,rtri:`▹`,blacktriangle:`▴`,utrif:`▴`,blacktriangledown:`▾`,dtrif:`▾`,blacktriangleleft:`◂`,ltrif:`◂`,blacktriangleright:`▸`,rtrif:`▸`,loz:`◊`,lozenge:`◊`,blacklozenge:`⧫`,lozf:`⧫`,bigcirc:`◯`,xcirc:`◯`,circ:`ˆ`,Circle:`○`,cir:`○`,o:`○`,bullet:`•`,bull:`•`,hellip:`…`,mldr:`…`,nldr:`‥`,boxh:`─`,HorizontalLine:`─`,boxv:`│`,boxdr:`┌`,boxdl:`┐`,boxur:`└`,boxul:`┘`,boxvr:`├`,boxvl:`┤`,boxhd:`┬`,boxhu:`┴`,boxvh:`┼`,boxH:`═`,boxV:`║`,boxdR:`╒`,boxDr:`╓`,boxDR:`╔`,boxDl:`╕`,boxdL:`╖`,boxDL:`╗`,boxuR:`╘`,boxUr:`╙`,boxUR:`╚`,boxUl:`╜`,boxuL:`╛`,boxUL:`╝`,boxvR:`╞`,boxVr:`╟`,boxVR:`╠`,boxVl:`╢`,boxvL:`╡`,boxVL:`╣`,boxHd:`╤`,boxhD:`╥`,boxHD:`╦`,boxHu:`╧`,boxhU:`╨`,boxHU:`╩`,boxvH:`╪`,boxVh:`╫`,boxVH:`╬`},Td={excl:`!`,iexcl:`¡`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,nbsp:`\xA0`,comma:`,`,period:`.`,colon:`:`,semi:`;`,vert:`|`,Verbar:`‖`,verbar:`|`,dblac:`˝`,circ:`ˆ`,caron:`ˇ`,breve:`˘`,dot:`˙`,ring:`˚`,ogon:`˛`,tilde:`˜`,DiacriticalGrave:"`",DiacriticalAcute:`´`,DiacriticalTilde:`˜`,DiacriticalDot:`˙`,DiacriticalDoubleAcute:`˝`,grave:"`"},Ed={cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,euro:`€`,dollar:`$`,fnof:`ƒ`,inr:`₹`,af:`؋`,birr:`ብር`,peso:`₱`,rub:`₽`,won:`₩`,yuan:`¥`,cedil:`¸`},Dd={frac12:`½`,half:`½`,frac13:`⅓`,frac14:`¼`,frac15:`⅕`,frac16:`⅙`,frac18:`⅛`,frac23:`⅔`,frac25:`⅖`,frac34:`¾`,frac35:`⅗`,frac38:`⅜`,frac45:`⅘`,frac56:`⅚`,frac58:`⅝`,frac78:`⅞`,frasl:`⁄`},Od={trade:`™`,TRADE:`™`,telrec:`⌕`,target:`⌖`,ulcorn:`⌜`,ulcorner:`⌜`,urcorn:`⌝`,urcorner:`⌝`,dlcorn:`⌞`,llcorner:`⌞`,drcorn:`⌟`,lrcorner:`⌟`,intercal:`⊺`,intcal:`⊺`,oplus:`⊕`,CirclePlus:`⊕`,ominus:`⊖`,CircleMinus:`⊖`,otimes:`⊗`,CircleTimes:`⊗`,osol:`⊘`,odot:`⊙`,CircleDot:`⊙`,oast:`⊛`,circledast:`⊛`,odash:`⊝`,circleddash:`⊝`,ocirc:`⊚`,circledcirc:`⊚`,boxplus:`⊞`,plusb:`⊞`,boxminus:`⊟`,minusb:`⊟`,boxtimes:`⊠`,timesb:`⊠`,boxdot:`⊡`,sdotb:`⊡`,veebar:`⊻`,vee:`∨`,barvee:`⊽`,and:`∧`,wedge:`∧`,Cap:`⋒`,Cup:`⋓`,Fork:`⋔`,pitchfork:`⋔`,epar:`⋕`,ltlarr:`⥶`,nvap:`≍⃒`,nvsim:`∼⃒`,nvge:`≥⃒`,nvle:`≤⃒`,nvlt:`<⃒`,nvgt:`>⃒`,nvltrie:`⊴⃒`,nvrtrie:`⊵⃒`,Vdash:`⊩`,dashv:`⊣`,vDash:`⊨`,Vvdash:`⊪`,nvdash:`⊬`,nvDash:`⊭`,nVdash:`⊮`,nVDash:`⊯`};({...gd,..._d,...vd,...yd,...bd,...xd,...Sd,...Cd,...wd,...Td,...Ed,...Dd,...Od});const kd={amp:`&`,apos:`'`,gt:`>`,lt:`<`,quot:`"`},Ad={nbsp:`\xA0`,copy:`©`,reg:`®`,trade:`™`,mdash:`—`,ndash:`–`,hellip:`…`,laquo:`«`,raquo:`»`,lsquo:`‘`,rsquo:`’`,ldquo:`“`,rdquo:`”`,bull:`•`,para:`¶`,sect:`§`,deg:`°`,frac12:`½`,frac14:`¼`,frac34:`¾`},jd=new Set(`!?\\\\/[]$%{}^&*()<>|+`);function Md(e){if(e[0]===`#`)throw Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(jd.has(t))throw Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}function Nd(...e){let t=Object.create(null);for(let n of e)if(n)for(let e of Object.keys(n)){let r=n[e];if(typeof r==`string`)t[e]=r;else if(r&&typeof r==`object`&&r.val!==void 0){let n=r.val;typeof n==`string`&&(t[e]=n)}}return t}const Pd=`external`,Fd=`base`;function Id(e){return!e||e===Pd?new Set([Pd]):e===`all`?new Set([`all`]):e===Fd?new Set([Fd]):Array.isArray(e)?new Set(e):new Set([Pd])}const Ld=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Rd=new Set([9,10,13]);function zd(e){if(!e)return{xmlVersion:1,onLevel:Ld.allow,nullLevel:Ld.remove};let t=e.xmlVersion===1.1?1.1:1,n=Ld[e.onNCR]??Ld.allow,r=Ld[e.nullNCR]??Ld.remove;return{xmlVersion:t,onLevel:n,nullLevel:Math.max(r,Ld.remove)}}var Bd=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck==`function`?e.postCheck:e=>e,this._limitTiers=Id(this._limit.applyLimitsTo??Pd),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Nd(kd,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.leave&&Array.isArray(e.leave)?e.leave:[]);let t=zd(e.ncr);this._ncrXmlVersion=t.xmlVersion,this._ncrOnLevel=t.onLevel,this._ncrNullLevel=t.nullLevel}setExternalEntities(e){if(e)for(let t of Object.keys(e))Md(t);this._externalMap=Nd(e)}addExternalEntity(e,t){Md(e),typeof t==`string`&&t.indexOf(`&`)===-1&&(this._externalMap[e]=t)}addInputEntities(e){this._totalExpansions=0,this._expandedLength=0,this._inputMap=Nd(e)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(e){this._ncrXmlVersion=e===1.1?1.1:1}decode(e){if(typeof e!=`string`||e.length===0||e.indexOf(`&`)===-1)return e;let t=e,n=[],r=e.length,i=0,a=0,o=this._maxTotalExpansions>0,s=this._maxExpandedLength>0,c=o||s;for(;a=r||e.charCodeAt(t)!==59){a++;continue}let l=e.slice(a+1,t);if(l.length===0){a++;continue}let u,d;if(this._removeSet.has(l))u=``,d===void 0&&(d=Pd);else if(this._leaveSet.has(l)){a++;continue}else if(l.charCodeAt(0)===35){let e=this._resolveNCR(l);if(e===void 0){a++;continue}u=e,d=Fd}else{let e=this._resolveName(l);u=e?.value,d=e?.tier}if(u===void 0){a++;continue}if(a>i&&n.push(e.slice(i,a)),n.push(u),i=t+1,a=i,c&&this._tierCounts(d)){if(o&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(s){let e=u.length-(l.length+2);if(e>0&&(this._expandedLength+=e,this._expandedLength>this._maxExpandedLength))throw Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}i=55296&&e<=57343||this._ncrXmlVersion===1&&e>=1&&e<=31&&!Rd.has(e)?Ld.remove:-1}_applyNCRAction(e,t,n){switch(e){case Ld.allow:return String.fromCodePoint(n);case Ld.remove:return``;case Ld.leave:return;case Ld.throw:throw Error(`[EntityDecoder] Prohibited numeric character reference &${t}; (U+${n.toString(16).toUpperCase().padStart(4,`0`)})`);default:return String.fromCodePoint(n)}}_resolveNCR(e){let t=e.charCodeAt(1),n;if(n=t===120||t===88?parseInt(e.slice(2),16):parseInt(e.slice(1),10),Number.isNaN(n)||n<0||n>1114111)return;let r=this._classifyNCR(n);if(!this._numericAllowed&&r$u.includes(e)?`__`+e:e,Hd={preserveOrder:!1,attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Vd};function Ud(e,t){if(typeof e!=`string`)return;let n=e.toLowerCase();if($u.some(e=>n===e.toLowerCase())||ed.some(e=>n===e.toLowerCase()))throw Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Wd(e,t){return typeof e==`boolean`?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:`all`}:typeof e==`object`&&e?{enabled:e.enabled!==!1,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??1e3),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null,appliesTo:e.appliesTo??`all`}:Wd(!0)}const Gd=function(e){let t=Object.assign({},Hd,e),n=[{value:t.attributeNamePrefix,name:`attributeNamePrefix`},{value:t.attributesGroupName,name:`attributesGroupName`},{value:t.textNodeName,name:`textNodeName`},{value:t.cdataPropName,name:`cdataPropName`},{value:t.commentPropName,name:`commentPropName`}];for(let{value:e,name:t}of n)e&&Ud(e,t);return t.onDangerousProperty===null&&(t.onDangerousProperty=Vd),t.processEntities=Wd(t.processEntities,t.htmlEntities),t.unpairedTagsSet=new Set(t.unpairedTags),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),t};let Kd;Kd=typeof Symbol==`function`?Symbol(`XML Node Metadata`):`@@xmlMetadata`;var qd=class{constructor(e){this.tagname=e,this.child=[],this[`:@`]=Object.create(null)}add(e,t){e===`__proto__`&&(e=`#__proto__`),this.child.push({[e]:t})}addChild(e,t){e.tagname===`__proto__`&&(e.tagname=`#__proto__`),e[`:@`]&&Object.keys(e[`:@`]).length>0?this.child.push({[e.tagname]:e.child,":@":e[`:@`]}):this.child.push({[e.tagname]:e.child}),t!==void 0&&(this.child[this.child.length-1][Kd]={startIndex:t})}static getMetaDataSymbol(){return Kd}};const Jd=(e,t,n=``)=>{let r=`[${e.replace(`:`,``)}][${t.replace(`:`,``)}]*`;return{name:RegExp(`^[${e}][${t}]*$`,n),ncName:RegExp(`^${r}$`,n),qName:RegExp(`^${r}(?::${r})?$`,n),nmToken:RegExp(`^[${t}]+$`,n),nmTokens:RegExp(`^[${t}]+(?:\\s+[${t}]+)*$`,n)}},Yd=Jd(`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�`,`:A-Za-z_À-ÖØ-öø-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�\\-\\.\\d·̀-ͯ‿-⁀`),Xd=Jd(`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,`:A-Za-z_À-˿Ͱ-ͽͿ-҆҈-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿\\-\\.\\d·̀-ͯ҇‿-⁀`,`u`),Zd=(e=`1.0`)=>e===`1.1`?Xd:Yd,Qd=(e,{xmlVersion:t=`1.0`}={})=>Zd(t).qName.test(e);var $d=class{constructor(e,t){this.suppressValidationErr=!e,this.options=e,this.xmlVersion=t||1}setXmlVersion(e=1){this.xmlVersion=e}readDocType(e,t){let n=Object.create(null),r=0;if(e[t+3]===`O`&&e[t+4]===`C`&&e[t+5]===`T`&&e[t+6]===`Y`&&e[t+7]===`P`&&e[t+8]===`E`){t+=9;let i=1,a=!1,o=!1,s=``;for(;t=this.options.maxEntityCount)throw Error(`Entity count (${r+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);n[i]=a,r++}}else if(a&&tf(e,`!ELEMENT`,t)){t+=8;let{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&tf(e,`!ATTLIST`,t))t+=8;else if(a&&tf(e,`!NOTATION`,t)){t+=9;let{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(tf(e,`!--`,t))o=!0;else throw Error(`Invalid DOCTYPE`);i++,s=``}else if(e[t]===`>`){if(o?e[t-1]===`-`&&e[t-2]===`-`&&(o=!1,i--):i--,i===0)break}else e[t]===`[`?a=!0:s+=e[t];if(i!==0)throw Error(`Unclosed DOCTYPE`)}else throw Error(`Invalid Tag instead of DOCTYPE`);return{entities:n,i:t}}readEntityExp(e,t){t=ef(e,t);let n=t;for(;tthis.options.maxEntitySize)throw Error(`Entity "${r}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return t--,[r,i,t]}readNotationExp(e,t){t=ef(e,t);let n=t;for(;t{for(;t1||a.length===1&&!s))return e;{let r=Number(n),s=String(r);if(r===0)return r;if(s.search(/[eE]/)!==-1)return t.eNotation?r:e;if(n.indexOf(`.`)!==-1)return s===`0`||s===o||s===`${i}${o}`?r:e;let c=a?o:n;return a?c===s||i+c===s?r:e:c===s||c===i+s?r:e}}else return e}}const uf=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function df(e,t,n){if(!n.eNotation)return e;let r=t.match(uf);if(r){let i=r[1]||``,a=r[3].indexOf(`e`)===-1?`E`:`e`,o=r[2],s=i?e[o.length+1]===a:e[o.length]===a;return o.length>1&&s?e:o.length===1&&(r[3].startsWith(`.${a}`)||r[3][0]===a)?Number(t):o.length>0?n.leadingZeros&&!s?(t=(r[1]||``)+r[3],Number(t)):e:Number(t)}else return e}function ff(e){return e&&e.indexOf(`.`)!==-1?(e=e.replace(/0+$/,``),e===`.`?e=`0`:e[0]===`.`?e=`0`+e:e[e.length-1]===`.`&&(e=e.substring(0,e.length-1)),e):e}function pf(e,t){let n=e.trim();if((t===2||t===8)&&(e=n.substring(2)),parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw Error(`parseInt, Number.parseInt, window.parseInt are not supported`)}function mf(e,t,n){let r=t===1/0;switch(n.infinity.toLowerCase()){case`null`:return null;case`infinity`:return t;case`string`:return r?`Infinity`:`-Infinity`;default:return e}}function hf(e){return typeof e==`function`?e:Array.isArray(e)?t=>{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}var gf=class{constructor(e,t={},n){this.pattern=e,this.separator=t.separator||`.`,this.segments=this._parse(e),this.data=n,this._hasDeepWildcard=this.segments.some(e=>e.type===`deep-wildcard`),this._hasAttributeCondition=this.segments.some(e=>e.attrName!==void 0),this._hasPositionSelector=this.segments.some(e=>e.position!==void 0)}_parse(e){let t=[],n=0,r=``;for(;n0?e[e.length-1].tag:void 0}getCurrentNamespace(){let e=this._matcher.path;return e.length>0?e[e.length-1].namespace:void 0}getAttrValue(e){let t=this._matcher.path;if(t.length!==0)return t[t.length-1].values?.[e]}hasAttr(e){let t=this._matcher.path;if(t.length===0)return!1;let n=t[t.length-1];return n.values!==void 0&&e in n.values}getPosition(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].position??0}getCounter(){let e=this._matcher.path;return e.length===0?-1:e[e.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(e,t=!0){return this._matcher.toString(e,t)}toArray(){return this._matcher.path.map(e=>e.tag)}matches(e){return this._matcher.matches(e)}matchesAny(e){return e.matchesAny(this._matcher)}},yf=class{constructor(e={}){this.separator=e.separator||`.`,this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new vf(this)}push(e,t=null,n=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let r=this.path.length;this.siblingStacks[r]||(this.siblingStacks[r]=new Map);let i=this.siblingStacks[r],a=n?`${n}:${e}`:e,o=i.get(a)||0,s=0;for(let e of i.values())s+=e;i.set(a,o+1);let c={tag:e,position:s,counter:o};n!=null&&(c.namespace=n),t!=null&&(c.values=t),this.path.push(c)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){let t=this.path[this.path.length-1];e!=null&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(this.path.length!==0)return this.path[this.path.length-1].values?.[e]}hasAttr(e){if(this.path.length===0)return!1;let t=this.path[this.path.length-1];return t.values!==void 0&&e in t.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){let n=e||this.separator;if(n===this.separator&&t===!0){if(this._pathStringCache!==null)return this._pathStringCache;let e=this.path.map(e=>e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n);return this._pathStringCache=e,e}return this.path.map(e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag).join(n)}toArray(){return this.path.map(e=>e.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(e){let t=e.segments;return t.length===0?!1:e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t)}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t=0&&t>=0;){let r=e[n];if(r.type===`deep-wildcard`){if(n--,n<0)return!0;let r=e[n],i=!1;for(let e=t;e>=0;e--)if(this._matchSegment(r,this.path[e],e===this.path.length-1)){t=e-1,n--,i=!0;break}if(!i)return!1}else{if(!this._matchSegment(r,this.path[t],t===this.path.length-1))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if(e.tag!==`*`&&e.tag!==t.tag||e.namespace!==void 0&&e.namespace!==`*`&&e.namespace!==t.namespace||e.attrName!==void 0&&(!n||!t.values||!(e.attrName in t.values)||e.attrValue!==void 0&&String(t.values[e.attrName])!==String(e.attrValue)))return!1;if(e.position!==void 0){if(!n)return!1;let r=t.counter??0;if(e.position===`first`&&r!==0||e.position===`odd`&&r%2!=1||e.position===`even`&&r%2!=0||e.position===`nth`&&r!==e.positionValue)return!1}return!0}matchesAny(e){return e.matchesAny(this)}snapshot(){return{path:this.path.map(e=>({...e})),siblingStacks:this.siblingStacks.map(e=>new Map(e))}}restore(e){this._pathStringCache=null,this.path=e.path.map(e=>({...e})),this.siblingStacks=e.siblingStacks.map(e=>new Map(e))}readOnly(){return this._view}};function bf(e,t){if(!e)return{};let n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};let r={};for(let e in n)if(e.startsWith(t.attributeNamePrefix)){let i=e.substring(t.attributeNamePrefix.length);r[i]=n[e]}else r[e]=n[e];return r}function xf(e){if(!e||typeof e!=`string`)return;let t=e.indexOf(`:`);if(t!==-1&&t>0){let n=e.substring(0,t);if(n!==`xmlns`)return n}}var Sf=class{constructor(e,t){this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=Df,this.parseTextData=Cf,this.resolveNameSpace=wf,this.buildAttributesMap=Ef,this.isItStopNode=jf,this.replaceEntitiesValue=kf,this.readStopNodeData=If,this.saveTextToParentTag=Af,this.addChild=Of,this.ignoreAttributesFn=hf(this.options.ignoreAttributes),this.entityExpansionCount=0,this.currentExpandedLength=0;let n={...kd};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities==`object`?n=this.options.htmlEntities:this.options.htmlEntities===!0&&(n={...Ad,...Ed}),this.entityDecoder=new Bd({namedEntities:{...n,...t},numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new yf,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new _f;let r=this.options.stopNodes;if(r&&r.length>0){for(let e=0;e0)){o||(e=this.replaceEntitiesValue(e,t,n));let r=s.jPath?n.toString():n,c=s.tagValueProcessor(t,e,r,i,a);return c==null?e:typeof c!=typeof e||c!==e?c:s.trimValues||e.trim()===e?Lf(e,s.parseTagValue,s.numberParseOptions):e}}function wf(e){if(this.options.removeNSPrefix){let t=e.split(`:`),n=e.charAt(0)===`/`?`/`:``;if(t[0]===`xmlns`)return``;t.length===2&&(e=n+t[1])}return e}const Tf=RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,`gm`);function Ef(e,t,n,r=!1){let i=this.options;if(r===!0||i.ignoreAttributes!==!0&&typeof e==`string`){let r=Xu(e,Tf),a=r.length,o={},s=Array(a),c=!1,l={};for(let e=0;e`,s,`Closing Tag is not closed.`),a=e.substring(s+2,t).trim();if(i.removeNSPrefix){let e=a.indexOf(`:`);e!==-1&&(a=a.substr(e+1))}a=Rf(i.transformTagName,a,``,i).tagName,n&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher));let o=this.matcher.getCurrentTag();if(a&&i.unpairedTagsSet.has(a))throw Error(`Unpaired tag can not be used as closing tag: `);o&&i.unpairedTagsSet.has(o)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),r=``,s=t}else if(c===63){let t=Ff(e,s,!1,`?>`);if(!t)throw Error(`Pi Tag is not closed.`);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName,!0);if(o){let e=o[this.options.attributeNamePrefix+`version`];this.entityDecoder.setXmlVersion(Number(e)||1),a.setXmlVersion(Number(e)||1)}if(!(i.ignoreDeclaration&&t.tagName===`?xml`||i.ignorePiTags)){let e=new qd(t.tagName);e.add(i.textNodeName,``),t.tagName!==t.tagExp&&t.attrExpPresent&&i.ignoreAttributes!==!0&&(e[`:@`]=o),this.addChild(n,e,this.readonlyMatcher,s)}s=t.closeIndex+1}else if(c===33&&e.charCodeAt(s+2)===45&&e.charCodeAt(s+3)===45){let t=Nf(e,`-->`,s+4,`Comment is not closed.`);if(i.commentPropName){let a=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,n,this.readonlyMatcher),n.add(i.commentPropName,[{[i.textNodeName]:a}])}s=t}else if(c===33&&e.charCodeAt(s+2)===68){let t=a.readDocType(e,s);this.entityDecoder.addInputEntities(t.entities),s=t.i}else if(c===33&&e.charCodeAt(s+2)===91){let t=Nf(e,`]]>`,s,`CDATA is not closed.`)-2,a=e.substring(s+9,t);r=this.saveTextToParentTag(r,n,this.readonlyMatcher);let o=this.parseTextData(a,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);o??=``,i.cdataPropName?n.add(i.cdataPropName,[{[i.textNodeName]:a}]):n.add(i.textNodeName,o),s=t+2}else{let a=Ff(e,s,i.removeNSPrefix);if(!a){let t=e.substring(Math.max(0,s-50),Math.min(o,s+50));throw Error(`readTagExp returned undefined at position ${s}. Context: "${t}"`)}let c=a.tagName,l=a.rawTagName,u=a.tagExp,d=a.attrExpPresent,f=a.closeIndex;if({tagName:c,tagExp:u}=Rf(i.transformTagName,c,u,i),i.strictReservedNames&&(c===i.commentPropName||c===i.cdataPropName||c===i.textNodeName||c===i.attributesGroupName))throw Error(`Invalid tag name: ${c}`);n&&r&&n.tagname!==`!xml`&&(r=this.saveTextToParentTag(r,n,this.readonlyMatcher,!1));let p=n;p&&i.unpairedTagsSet.has(p.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;u.length>0&&u.lastIndexOf(`/`)===u.length-1&&(m=!0,c[c.length-1]===`/`?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),d=c!==u);let h=null,g;g=xf(l),c!==t.tagname&&this.matcher.push(c,{},g),c!==u&&d&&(h=this.buildAttributesMap(u,this.matcher,c),h&&bf(h,i)),c!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let _=s;if(this.isCurrentNodeStopNode){let t=``;if(m)s=a.closeIndex;else if(i.unpairedTagsSet.has(c))s=a.closeIndex;else{let n=this.readStopNodeData(e,l,f+1);if(!n)throw Error(`Unexpected end of ${l}`);s=n.i,t=n.tagContent}let r=new qd(c);h&&(r[`:@`]=h),r.add(i.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,r,this.readonlyMatcher,_)}else{if(m){({tagName:c,tagExp:u}=Rf(i.transformTagName,c,u,i));let e=new qd(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(c)){let e=new qd(c);h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),this.matcher.pop(),this.isCurrentNodeStopNode=!1,s=a.closeIndex;continue}else{let e=new qd(c);if(this.tagsNodeStack.length>i.maxNestedTags)throw Error(`Maximum nested tags exceeded`);this.tagsNodeStack.push(n),h&&(e[`:@`]=h),this.addChild(n,e,this.readonlyMatcher,_),n=e}r=``,s=f}}}else r+=e[s];return t.child};function Of(e,t,n,r){this.options.captureMetaData||(r=void 0);let i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[`:@`]);a===!1||(typeof a==`string`&&(t.tagname=a),e.addChild(t,r))}function kf(e,t,n){let r=this.options.processEntities;if(!r||!r.enabled)return e;if(r.allowedTags){let i=this.options.jPath?n.toString():n;if(!(Array.isArray(r.allowedTags)?r.allowedTags.includes(t):r.allowedTags(t,i)))return e}if(r.tagFilter){let i=this.options.jPath?n.toString():n;if(!r.tagFilter(t,i))return e}return this.entityDecoder.decode(e)}function Af(e,t,n,r){return e&&=(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[`:@`]?Object.keys(t[`:@`]).length!==0:!1,r),e!==void 0&&e!==``&&t.add(this.options.textNodeName,e),``),e}function jf(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Mf(e,t,n=`>`){let r=0,i=e.length,a=n.charCodeAt(0),o=n.length>1?n.charCodeAt(1):-1,s=``,c=t;for(let n=t;n`){let i=Mf(e,t+1,r);if(!i)return;let a=i.data,o=i.index,s=a.search(/\s/),c=a,l=!0;s!==-1&&(c=a.substring(0,s),a=a.substring(s+1).trimStart());let u=c;if(n){let e=c.indexOf(`:`);e!==-1&&(c=c.substr(e+1),l=c!==i.data.substr(e+1))}return{tagName:c,tagExp:a,closeIndex:o,attrExpPresent:l,rawTagName:u}}function If(e,t,n){let r=n,i=1,a=e.length;for(;n`,n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,i===0))return{tagContent:e.substring(r,n),i:a};n=a}else if(a===63)n=Nf(e,`?>`,n+1,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===45&&e.charCodeAt(n+3)===45)n=Nf(e,`-->`,n+3,`StopNode is not closed.`);else if(a===33&&e.charCodeAt(n+2)===91)n=Nf(e,`]]>`,n,`StopNode is not closed.`)-2;else{let r=Ff(e,n,!1);r&&((r&&r.tagName)===t&&r.tagExp[r.tagExp.length-1]!==`/`&&i++,n=r.closeIndex)}}}function Lf(e,t,n){if(t&&typeof e==`string`){let t=e.trim();return t===`true`?!0:t===`false`?!1:lf(e,n)}else if(Qu(e))return e;else return``}function Rf(e,t,n,r){if(e){let r=e(t);n===t&&(n=r),t=r}return t=zf(t,r),{tagName:t,tagExp:n}}function zf(e,t){if(ed.includes(e))throw Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return $u.includes(e)?t.onDangerousProperty(e):e}const Bf=qd.getMetaDataSymbol();function Vf(e,t){if(!e||typeof e!=`object`)return{};if(!t)return e;let n={};for(let r in e)if(r.startsWith(t)){let i=r.substring(t.length);n[i]=e[r]}else n[r]=e[r];return n}function Hf(e,t,n,r){return Uf(e,t,n,r)}function Uf(e,t,n,r){let i,a={};for(let o=0;o0&&(a[t.textNodeName]=i):i!==void 0&&(a[t.textNodeName]=i),a}function Wf(e){let t=Object.keys(e);for(let e=0;e/g,`]]]]>`)}function Xf(e){return String(e).replace(/"/g,`"`).replace(/'/g,`'`)}function Zf(e,t){if(!Array.isArray(e)||e.length===0)return`1.0`;let n=e[0];if(ip(n)===`?xml`){let e=n[`:@`];if(e){let n=t.attributeNamePrefix+`version`;if(e[n])return e[n]}}return`1.0`}function Qf(e,t,n,r,i){return!n.sanitizeName||Qd(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}function $f(e,t){let n=``;t.format&&(n=` +`);let r=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.maxNestedTags)throw Error(`Maximum nested tags exceeded`);if(!Array.isArray(e)){if(e!=null){let n=e.toString();return n=sp(n,t),n}return``}for(let c=0;c`,s=!1,r.pop();continue}else if(d===t.commentPropName){let e=l[u][0][t.textNodeName],i=Jf(e);o+=n+``,s=!0,r.pop();continue}else if(d[0]===`?`){let e=ap(l[`:@`],t,p,r,a);o+=(d===`?xml`?``:n)+`<${d}${e}?>`,s=!0,r.pop();continue}let m=n;m!==``&&(m+=t.indentBy);let h=n+`<${d}${ap(l[`:@`],t,p,r,a)}`,g;g=p?np(l[u],t):ep(l[u],t,m,r,i,a),t.unpairedTags.indexOf(d)===-1?(!g||g.length===0)&&t.suppressEmptyNode?o+=h+`/>`:g&&g.endsWith(`>`)?o+=h+`>${g}${n}`:(o+=h+`>`,g&&n!==``&&(g.includes(`/>`)||g.includes(``):t.suppressUnpairedNode?o+=h+`>`:o+=h+`/>`,s=!0,r.pop()}return o}function tp(e,t){if(!e||t.ignoreAttributes)return null;let n={},r=!1;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a=i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i;n[a]=Xf(e[i]),r=!0}return r?n:null}function np(e,t){if(!Array.isArray(e))return e==null?``:e.toString();let n=``;for(let r=0;r`:n+=`<${a}${e}>${r}`}}return n}function rp(e,t){let n=``;if(e&&!t.ignoreAttributes)for(let r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;let i=e[r];i===!0&&t.suppressBooleanAttributes?n+=` ${r.substr(t.attributeNamePrefix.length)}`:n+=` ${r.substr(t.attributeNamePrefix.length)}="${Xf(i)}"`}return n}function ip(e){let t=Object.keys(e);for(let n=0;n0&&t.processEntities)for(let n=0;n{for(let n of e)if(typeof n==`string`&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}const lp={attributeNamePrefix:`@_`,attributesGroupName:!1,textNodeName:`#text`,ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:` `,suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:RegExp(`&`,`g`),val:`&`},{regex:RegExp(`>`,`g`),val:`>`},{regex:RegExp(`<`,`g`),val:`<`},{regex:RegExp(`'`,`g`),val:`'`},{regex:RegExp(`"`,`g`),val:`"`}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function up(e){if(this.options=Object.assign({},lp,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e==`string`&&e.startsWith(`*.`)?`..`+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e `,this.newLine=` -`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function fp(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function pp(e,t,n,r,i){return!n.sanitizeName||$d(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}dp.prototype.build=function(e){if(this.options.preserveOrder)return ep(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new bf,n=fp(e,this.options);return this.j2x(e,0,t,n).val}},dp.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:pp(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=pp(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},dp.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},dp.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},dp.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=Yf(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function Cp(e,t={}){if(!e)throw Error(`Document is empty`);let n=vp.validate(e);if(n!==!0)throw n;let r=new Jf(xp(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const wp=Ks(`storage-blob`);var Tp=class extends S{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Ep=w.constants.MAX_LENGTH;var Dp=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Ep);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new Tp(this.buffers,this.size)}},Op=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new _;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Dp(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let kp;function Ap(){return kp||=Hc(),kp}var jp=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const Mp={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},U={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`};function Np(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Pp(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Fp(e){try{return new URL(e).pathname}catch{return}}function Ip(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var Rp=class extends jp{constructor(e,t){super(e,t)}async sendRequest(e){return uc?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Np(e.url,Mp.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(U.COOKIE),e.headers.remove(U.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},zp=class{create(e,t){return new Rp(e,t)}},Bp=class extends jp{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},Vp=class extends Bp{constructor(e,t){super(e,t)}},Hp=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},Up=class extends Hp{create(e,t){return new Vp(e,t)}};const Wp=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),Gp=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Kp=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function qp(e,t){return Jp(e,t)?-1:1}function Jp(e,t){let n=[Wp,Gp,Kp],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(U.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,U.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,U.CONTENT_ENCODING),this.getHeaderValueToSign(e,U.CONTENT_LENGTH),this.getHeaderValueToSign(e,U.CONTENT_MD5),this.getHeaderValueToSign(e,U.CONTENT_TYPE),this.getHeaderValueToSign(e,U.DATE),this.getHeaderValueToSign(e,U.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,U.IF_MATCH),this.getHeaderValueToSign(e,U.IF_NONE_MATCH),this.getHeaderValueToSign(e,U.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,U.RANGE)].join(` +`):(this.indentate=function(){return``},this.tagEndChar=`>`,this.newLine=``)}function dp(e,t){let n=e[`?xml`];if(n&&typeof n==`object`){if(t.attributesGroupName&&n[t.attributesGroupName]){let e=n[t.attributesGroupName][t.attributeNamePrefix+`version`];if(e)return e}let e=n[t.attributeNamePrefix+`version`];if(e)return e}return`1.0`}function fp(e,t,n,r,i){return!n.sanitizeName||Qd(e,{xmlVersion:i})?e:n.sanitizeName(e,{isAttribute:t,matcher:r.readOnly()})}up.prototype.build=function(e){if(this.options.preserveOrder)return $f(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});let t=new yf,n=dp(e,this.options);return this.j2x(e,0,t,n).val}},up.prototype.j2x=function(e,t,n,r){let i=``,a=``;if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw Error(`Maximum nested tags exceeded`);let o=this.options.jPath?n.toString():n,s=this.checkStopNode(n);for(let c in e){if(!Object.prototype.hasOwnProperty.call(e,c))continue;let l=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]===`?`?c:fp(c,!1,this.options,n,r);if(e[c]===void 0)this.isAttribute(c)&&(a+=``);else if(e[c]===null)this.isAttribute(c)||l===this.options.cdataPropName||l===this.options.commentPropName?a+=``:l[0]===`?`?a+=this.indentate(t)+`<`+l+`?`+this.tagEndChar:a+=this.indentate(t)+`<`+l+`/`+this.tagEndChar;else if(e[c]instanceof Date)a+=this.buildTextValNode(e[c],l,``,t,n);else if(typeof e[c]!=`object`){let u=this.isAttribute(c);if(u&&!this.ignoreAttributesFn(u,o)){let t=fp(u,!0,this.options,n,r);i+=this.buildAttrPairStr(t,``+e[c],s)}else if(!u)if(c===this.options.textNodeName){let t=this.options.tagValueProcessor(c,``+e[c]);a+=this.replaceEntitiesValue(t)}else{n.push(l);let r=this.checkStopNode(n);if(n.pop(),r){let n=``+e[c];n===``?a+=this.indentate(t)+`<`+l+this.closeTag(l)+this.tagEndChar:a+=this.indentate(t)+`<`+l+`>`+n+``+e+`${e}`;else if(typeof e==`object`&&e){let r=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);r===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${r}`}}else if(typeof r==`object`&&r){let e=this.buildRawContent(r),i=this.buildAttributesForStopNode(r);e===``?t+=`<${n}${i}/>`:t+=`<${n}${i}>${e}`}else t+=`<${n}>${r}`}return t},up.prototype.buildAttributesForStopNode=function(e){if(!e||typeof e!=`object`)return``;let t=``;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){let n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;let r=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;let r=this.isAttribute(n);if(r){let i=e[n];i===!0&&this.options.suppressBooleanAttributes?t+=` `+r:t+=` `+r+`="`+i+`"`}}return t},up.prototype.buildObjectNode=function(e,t,n,r){if(e===``)return t[0]===`?`?this.indentate(r)+`<`+t+n+`?`+this.tagEndChar:this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar;if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;{let i=``+e+i:this.options.commentPropName!==!1&&t===this.options.commentPropName&&a.length===0?this.indentate(r)+``+this.newLine:this.indentate(r)+`<`+t+n+a+this.tagEndChar+e+this.indentate(r)+i}},up.prototype.closeTag=function(e){let t=``;return this.options.unpairedTags.indexOf(e)===-1?t=this.options.suppressEmptyNode?`/`:`>`+this.newLine}else if(this.options.commentPropName!==!1&&t===this.options.commentPropName){let t=Jf(e);return this.indentate(r)+``+this.newLine}else if(t[0]===`?`)return this.indentate(r)+`<`+t+n+`?`+this.tagEndChar;else{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),i===``?this.indentate(r)+`<`+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(r)+`<`+t+n+`>`+i+`0&&this.options.processEntities)for(let t=0;t${r.build(i)}`.replace(/\n/g,``)}async function Sp(e,t={}){if(!e)throw Error(`Document is empty`);let n=_p.validate(e);if(n!==!0)throw n;let r=new qf(bp(t)).parse(e);if(r[`?xml`]&&delete r[`?xml`],!t.includeRoot)for(let e of Object.keys(r)){let t=r[e];return typeof t==`object`?{...t}:t}return r}const Cp=Gs(`storage-blob`);var wp=class extends S{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n),this.buffers=e,this.byteLength=t,this.byteOffsetInCurrentBuffer=0,this.bufferIndex=0,this.pushedBytesLength=0;let r=0;for(let e of this.buffers)r+=e.byteLength;if(r=this.byteLength&&this.push(null),e||=this.readableHighWaterMark;let t=[],n=0;for(;ne-n){let r=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r)),this.pushedBytesLength+=e-n,this.byteOffsetInCurrentBuffer=r,n=e;break}else{let e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e)),a===i?(this.byteOffsetInCurrentBuffer=0,this.bufferIndex++):this.byteOffsetInCurrentBuffer=e,this.pushedBytesLength+=a,n+=a}}t.length>1?this.push(Buffer.concat(t)):t.length===1&&this.push(t[0])}};const Tp=w.constants.MAX_LENGTH;var Ep=class{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e,this._size=0;let r=Math.ceil(e/Tp);for(let t=0;t0&&(e[0]=e[0].slice(a))}getReadableStream(){return new wp(this.buffers,this.size)}},Dp=class{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new _;concurrency;offset=0;isStreamEnd=!1;isError=!1;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,r,i,a){if(t<=0)throw RangeError(`bufferSize must be larger than 0, current is ${t}`);if(n<=0)throw RangeError(`maxBuffers must be larger than 0, current is ${n}`);if(i<=0)throw RangeError(`concurrency must be larger than 0, current is ${i}`);this.bufferSize=t,this.maxBuffers=n,this.readable=e,this.outgoingHandler=r,this.concurrency=i,this.encoding=a}async do(){return new Promise((e,t)=>{this.readable.on(`data`,e=>{e=typeof e==`string`?Buffer.from(e,this.encoding):e,this.appendUnresolvedData(e),this.resolveData()||this.readable.pause()}),this.readable.on(`error`,e=>{this.emitter.emit(`error`,e)}),this.readable.on(`end`,()=>{this.isStreamEnd=!0,this.emitter.emit(`checkEnd`)}),this.emitter.on(`error`,e=>{this.isError=!0,this.readable.pause(),t(e)}),this.emitter.on(`checkEnd`,()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0)if(this.unresolvedLength>0&&this.unresolvedLengthn.getReadableStream(),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize)return;else e()})})}appendUnresolvedData(e){this.unresolvedDataArray.push(e),this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){return e?e.fill(this.unresolvedDataArray,this.unresolvedLength):e=new Ep(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength),this.unresolvedLength-=e.size,e}resolveData(){for(;this.unresolvedLength>=this.bufferSize;){let e;if(this.incoming.length>0)e=this.incoming.shift(),this.shiftBufferFromUnresolvedDataArray(e);else if(this.numBuffers=this.concurrency)return;e=this.outgoing.shift(),e&&this.triggerOutgoingHandler(e)}while(e)}async triggerOutgoingHandler(e){let t=e.size;this.executingOutgoingHandlers++,this.offset+=t;try{await this.outgoingHandler(()=>e.getReadableStream(),t,this.offset-t)}catch(e){this.emitter.emit(`error`,e);return}this.executingOutgoingHandlers--,this.reuseBuffer(e),this.emitter.emit(`checkEnd`)}reuseBuffer(e){this.incoming.push(e),!this.isError&&this.resolveData()&&!this.isStreamEnd&&this.readable.resume()}};let Op;function kp(){return Op||=Vc(),Op}var Ap=class{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e,this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}};const jp={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},W={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`};function Mp(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function Np(e,t){let n=new URL(e);return n.hostname=t,n.toString()}function Pp(e){try{return new URL(e).pathname}catch{return}}function Fp(e){let t=new URL(e).search;if(!t)return{};t=t.trim(),t=t.startsWith(`?`)?t.substring(1):t;let n=t.split(`&`);n=n.filter(e=>{let t=e.indexOf(`=`),n=e.lastIndexOf(`=`);return t>0&&t===n&&n{let a,o=()=>{a!==void 0&&clearTimeout(a),i(n)};a=setTimeout(()=>{t!==void 0&&t.removeEventListener(`abort`,o),r()},e),t!==void 0&&t.addEventListener(`abort`,o)})}var Lp=class extends Ap{constructor(e,t){super(e,t)}async sendRequest(e){return lc?this._nextPolicy.sendRequest(e):((e.method.toUpperCase()===`GET`||e.method.toUpperCase()===`HEAD`)&&(e.url=Mp(e.url,jp.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.remove(W.COOKIE),e.headers.remove(W.CONTENT_LENGTH),this._nextPolicy.sendRequest(e))}},Rp=class{create(e,t){return new Lp(e,t)}},zp=class extends Ap{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}},Bp=class extends zp{constructor(e,t){super(e,t)}},Vp=class{create(e,t){throw Error(`Method should be implemented in children classes.`)}},Hp=class extends Vp{create(e,t){return new Bp(e,t)}};const Up=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]),Wp=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),Gp=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function Kp(e,t){return qp(e,t)?-1:1}function qp(e,t){let n=[Up,Wp,Gp],r=0,i=0,a=0;for(;ra;let o=i0&&e.headers.set(W.CONTENT_LENGTH,Buffer.byteLength(e.body));let t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,W.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,W.CONTENT_ENCODING),this.getHeaderValueToSign(e,W.CONTENT_LENGTH),this.getHeaderValueToSign(e,W.CONTENT_MD5),this.getHeaderValueToSign(e,W.CONTENT_TYPE),this.getHeaderValueToSign(e,W.DATE),this.getHeaderValueToSign(e,W.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,W.IF_MATCH),this.getHeaderValueToSign(e,W.IF_NONE_MATCH),this.getHeaderValueToSign(e,W.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,W.RANGE)].join(` `)+` -`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(U.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===U.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(U.PREFIX_FOR_STORAGE));t.sort((e,t)=>qp(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Fp(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Ip(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},Xp=class extends Hp{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new Yp(e,t,this)}computeHMACSHA256(e){return k(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const Zp=Ks(`storage-common`);var Qp;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(Qp||={});const $p={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Qp.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},em=new ic(`The operation was aborted.`);var tm=class extends jp{retryOptions;constructor(e,t,n=$p){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:$p.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):$p.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:$p.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:$p.maxRetryDelayInMs):$p.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:$p.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:$p.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Pp(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Np(r.url,Mp.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Zp.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(Zp.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return Zp.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return Zp.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return Zp.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return Zp.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(U.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(Zp.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case Qp.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Qp.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return Zp.info(`RetryPolicy: Delay for ${r}ms`),Lp(r,n,em)}},nm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new tm(e,t,this.retryOptions)}};function rm(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return uc?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Np(e.url,Mp.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(U.COOKIE),e.headers.delete(U.CONTENT_LENGTH),t(e))}}}function im(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(U.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const am={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Qp.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},om=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],sm=new ic(`The operation was aborted.`);function cm(e={}){let t=e.retryPolicyType??am.retryPolicyType,n=e.maxTries??am.maxTries,r=e.retryDelayInMs??am.retryDelayInMs,i=e.maxRetryDelayInMs??am.maxRetryDelayInMs,a=e.secondaryHost??am.secondaryHost,o=e.tryTimeoutInMs??am.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return Zp.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of om)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return Zp.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return Zp.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return Zp.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return Zp.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(U.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case Qp.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case Qp.FIXED:a=r;break}else a=Math.random()*1e3;return Zp.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Np(e.url,Mp.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Pp(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{Zp.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(Nc(e))Zp.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw Zp.error(`RetryPolicy: Caught error, message: ${sc(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await Lp(c(a,l),e.abortSignal,sm),l++}if(d)return d;throw f??new Mc(`RetryPolicy failed without known error.`)}}}function lm(e){function t(t){t.headers.set(U.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(U.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,U.CONTENT_LANGUAGE),n(t,U.CONTENT_ENCODING),n(t,U.CONTENT_LENGTH),n(t,U.CONTENT_MD5),n(t,U.CONTENT_TYPE),n(t,U.DATE),n(t,U.IF_MODIFIED_SINCE),n(t,U.IF_MATCH),n(t,U.IF_NONE_MATCH),n(t,U.IF_UNMODIFIED_SINCE),n(t,U.RANGE)].join(` +`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(t);return e.headers.set(W.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,t){let n=e.headers.get(t);return!n||t===W.CONTENT_LENGTH&&n===`0`?``:n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter(e=>e.name.toLowerCase().startsWith(W.PREFIX_FOR_STORAGE));t.sort((e,t)=>Kp(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}getCanonicalizedResourceString(e){let t=Pp(e.url)||`/`,n=``;n+=`/${this.factory.accountName}${t}`;let r=Fp(e.url),i={};if(r){let e=[];for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)){let n=t.toLowerCase();i[n]=r[t],e.push(n)}e.sort();for(let t of e)n+=`\n${t}:${decodeURIComponent(i[t])}`}return n}},Yp=class extends Vp{accountName;accountKey;constructor(e,t){super(),this.accountName=e,this.accountKey=Buffer.from(t,`base64`)}create(e,t){return new Jp(e,t,this)}computeHMACSHA256(e){return k(`sha256`,this.accountKey).update(e,`utf8`).digest(`base64`)}};const Xp=Gs(`storage-common`);var Zp;(function(e){e[e.EXPONENTIAL=0]=`EXPONENTIAL`,e[e.FIXED=1]=`FIXED`})(Zp||={});const Qp={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Zp.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},$p=new rc(`The operation was aborted.`);var em=class extends Ap{retryOptions;constructor(e,t,n=Qp){super(e,t),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Qp.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Qp.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Qp.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Qp.maxRetryDelayInMs):Qp.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Qp.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Qp.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,t,n){let r=e.clone(),i=t||!this.retryOptions.secondaryHost||!(e.method===`GET`||e.method===`HEAD`||e.method===`OPTIONS`)||n%2==1;i||(r.url=Np(r.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(r.url=Mp(r.url,jp.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Xp.info(`RetryPolicy: =====> Try=${n} ${i?`Primary`:`Secondary`}`),a=await this._nextPolicy.sendRequest(r),!this.shouldRetry(i,n,a))return a;t||=!i&&a.status===404}catch(e){if(Xp.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),!this.shouldRetry(i,n,a,e))throw e}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,r){if(t>=this.retryOptions.maxTries)return Xp.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`];if(r){for(let e of i)if(r.name.toUpperCase().includes(e)||r.message.toUpperCase().includes(e)||r.code&&r.code.toString().toUpperCase()===e)return Xp.info(`RetryPolicy: Network error ${e} found, will retry.`),!0}if(n||r){let t=n?n.status:r?r.statusCode:0;if(!e&&t===404)return Xp.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return Xp.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(n&&n?.status>=400){let e=n.headers.get(W.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return r?.code===`PARSE_ERROR`&&r?.message.startsWith(`Error "Error: Unclosed root tag`)?(Xp.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0):!1}async delay(e,t,n){let r=0;if(e)switch(this.retryOptions.retryPolicyType){case Zp.EXPONENTIAL:r=Math.min((2**(t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Zp.FIXED:r=this.retryOptions.retryDelayInMs;break}else r=Math.random()*1e3;return Xp.info(`RetryPolicy: Delay for ${r}ms`),Ip(r,n,$p)}},tm=class{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new em(e,t,this.retryOptions)}};function nm(){return{name:`storageBrowserPolicy`,async sendRequest(e,t){return lc?t(e):((e.method===`GET`||e.method===`HEAD`)&&(e.url=Mp(e.url,jp.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),e.headers.delete(W.COOKIE),e.headers.delete(W.CONTENT_LENGTH),t(e))}}}function rm(){function e(e){e.body&&(typeof e.body==`string`||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(W.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:`StorageCorrectContentLengthPolicy`,async sendRequest(t,n){return e(t),n(t)}}}const im={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Zp.EXPONENTIAL,secondaryHost:``,tryTimeoutInMs:void 0},am=[`ETIMEDOUT`,`ESOCKETTIMEDOUT`,`ECONNREFUSED`,`ECONNRESET`,`ENOENT`,`ENOTFOUND`,`TIMEOUT`,`EPIPE`,`REQUEST_SEND_ERROR`],om=new rc(`The operation was aborted.`);function sm(e={}){let t=e.retryPolicyType??im.retryPolicyType,n=e.maxTries??im.maxTries,r=e.retryDelayInMs??im.retryDelayInMs,i=e.maxRetryDelayInMs??im.maxRetryDelayInMs,a=e.secondaryHost??im.secondaryHost,o=e.tryTimeoutInMs??im.tryTimeoutInMs;function s({isPrimaryRetry:e,attempt:t,response:r,error:i}){if(t>=n)return Xp.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`),!1;if(i){for(let e of am)if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e)return Xp.info(`RetryPolicy: Network error ${e} found, will retry.`),!0;if(i?.code===`PARSE_ERROR`&&i?.message.startsWith(`Error "Error: Unclosed root tag`))return Xp.info(`RetryPolicy: Incomplete XML response likely due to service timeout, will retry.`),!0}if(r||i){let t=r?.status??i?.statusCode??0;if(!e&&t===404)return Xp.info(`RetryPolicy: Secondary access with 404, will retry.`),!0;if(t===503||t===500)return Xp.info(`RetryPolicy: Will retry for status code ${t}.`),!0}if(r&&r?.status>=400){let e=r.headers.get(W.X_MS_CopySourceErrorCode);if(e!==void 0)switch(e){case`InternalError`:case`OperationTimedOut`:case`ServerBusy`:return!0}}return!1}function c(e,n){let a=0;if(e)switch(t){case Zp.EXPONENTIAL:a=Math.min((2**(n-1)-1)*r,i);break;case Zp.FIXED:a=r;break}else a=Math.random()*1e3;return Xp.info(`RetryPolicy: Delay for ${a}ms`),a}return{name:`storageRetryPolicy`,async sendRequest(e,t){o&&(e.url=Mp(e.url,jp.Parameters.TIMEOUT,String(Math.floor(o/1e3))));let n=e.url,r=a?Np(e.url,a):void 0,i=!1,l=1,u=!0,d,f;for(;u;){let a=i||!r||![`GET`,`HEAD`,`OPTIONS`].includes(e.method)||l%2==1;e.url=a?n:r,d=void 0,f=void 0;try{Xp.info(`RetryPolicy: =====> Try=${l} ${a?`Primary`:`Secondary`}`),d=await t(e),i||=!a&&d.status===404}catch(e){if(Mc(e))Xp.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`),f=e;else throw Xp.error(`RetryPolicy: Caught error, message: ${oc(e)}`),e}u=s({isPrimaryRetry:a,attempt:l,response:d,error:f}),u&&await Ip(c(a,l),e.abortSignal,om),l++}if(d)return d;throw f??new jc(`RetryPolicy failed without known error.`)}}}function cm(e){function t(t){t.headers.set(W.X_MS_DATE,new Date().toUTCString()),t.body&&(typeof t.body==`string`||Buffer.isBuffer(t.body))&&t.body.length>0&&t.headers.set(W.CONTENT_LENGTH,Buffer.byteLength(t.body));let a=[t.method.toUpperCase(),n(t,W.CONTENT_LANGUAGE),n(t,W.CONTENT_ENCODING),n(t,W.CONTENT_LENGTH),n(t,W.CONTENT_MD5),n(t,W.CONTENT_TYPE),n(t,W.DATE),n(t,W.IF_MODIFIED_SINCE),n(t,W.IF_MATCH),n(t,W.IF_NONE_MATCH),n(t,W.IF_UNMODIFIED_SINCE),n(t,W.RANGE)].join(` `)+` -`+r(t)+i(t),o=k(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(U.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===U.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(U.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>qp(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Fp(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Ip(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function um(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.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. -`),e}}}}var dm=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return k(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const fm=`12.31.0`,pm=`2026-02-06`,mm=5e4,hm=4*1024*1024,gm={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},_m=`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`.split(`.`),vm=`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`.split(`.`),ym=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function bm(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var xm=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function Sm(e,t={}){e||=new Up;let n=new xm([],t);return n._credential=e,n}function Cm(e){let t=[Dm,Em,Om,km,Am,jm,Nm];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>Mm(e));return{wrappedPolicies:Ju(n),afterRetry:e}}}}function wm(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?Yu(t):Ap(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${fm}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=du({...n,loggingOptions:{additionalAllowedHeaderNames:_m,additionalAllowedQueryParameters:vm,logger:wp.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:Sp,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:Cp,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(im()),i.addPolicy(cm(n.retryOptions),{phase:`Retry`}),i.addPolicy(um()),i.addPolicy(rm());let a=Cm(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=Tm(e);tl(o)?i.addPolicy(Qc({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:ku}}),{phase:`Sign`}):o instanceof Xp&&i.addPolicy(lm({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function Tm(e){if(e._credential)return e._credential;let t=new Up;for(let n of e.factories)if(tl(n.credential))t=n.credential;else if(Em(n))return n;return t}function Em(e){return e instanceof Xp?!0:e.constructor.name===`StorageSharedKeyCredential`}function Dm(e){return e instanceof Up?!0:e.constructor.name===`AnonymousCredential`}function Om(e){return tl(e.credential)}function km(e){return e instanceof zp?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function Am(e){return e instanceof nm?!0:e.constructor.name===`StorageRetryPolicyFactory`}function jm(e){return e.constructor.name===`TelemetryPolicyFactory`}function Mm(e){return e.constructor.name===`InjectorPolicyFactory`}function Nm(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var Pm=he({AccessPolicy:()=>$m,AppendBlobAppendBlockExceptionHeaders:()=>P_,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>I_,AppendBlobAppendBlockFromUrlHeaders:()=>F_,AppendBlobAppendBlockHeaders:()=>N_,AppendBlobCreateExceptionHeaders:()=>M_,AppendBlobCreateHeaders:()=>j_,AppendBlobSealExceptionHeaders:()=>R_,AppendBlobSealHeaders:()=>L_,ArrowConfiguration:()=>yh,ArrowField:()=>bh,BlobAbortCopyFromURLExceptionHeaders:()=>n_,BlobAbortCopyFromURLHeaders:()=>t_,BlobAcquireLeaseExceptionHeaders:()=>Bg,BlobAcquireLeaseHeaders:()=>zg,BlobBreakLeaseExceptionHeaders:()=>Jg,BlobBreakLeaseHeaders:()=>qg,BlobChangeLeaseExceptionHeaders:()=>Kg,BlobChangeLeaseHeaders:()=>Gg,BlobCopyFromURLExceptionHeaders:()=>e_,BlobCopyFromURLHeaders:()=>$g,BlobCreateSnapshotExceptionHeaders:()=>Xg,BlobCreateSnapshotHeaders:()=>Yg,BlobDeleteExceptionHeaders:()=>wg,BlobDeleteHeaders:()=>Cg,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Pg,BlobDeleteImmutabilityPolicyHeaders:()=>Ng,BlobDownloadExceptionHeaders:()=>bg,BlobDownloadHeaders:()=>yg,BlobFlatListSegment:()=>th,BlobGetAccountInfoExceptionHeaders:()=>o_,BlobGetAccountInfoHeaders:()=>a_,BlobGetPropertiesExceptionHeaders:()=>Sg,BlobGetPropertiesHeaders:()=>xg,BlobGetTagsExceptionHeaders:()=>u_,BlobGetTagsHeaders:()=>l_,BlobHierarchyListSegment:()=>oh,BlobItemInternal:()=>nh,BlobName:()=>rh,BlobPrefix:()=>sh,BlobPropertiesInternal:()=>ih,BlobQueryExceptionHeaders:()=>c_,BlobQueryHeaders:()=>s_,BlobReleaseLeaseExceptionHeaders:()=>Hg,BlobReleaseLeaseHeaders:()=>Vg,BlobRenewLeaseExceptionHeaders:()=>Wg,BlobRenewLeaseHeaders:()=>Ug,BlobServiceProperties:()=>Fm,BlobServiceStatistics:()=>Vm,BlobSetExpiryExceptionHeaders:()=>Og,BlobSetExpiryHeaders:()=>Dg,BlobSetHttpHeadersExceptionHeaders:()=>Ag,BlobSetHttpHeadersHeaders:()=>kg,BlobSetImmutabilityPolicyExceptionHeaders:()=>Mg,BlobSetImmutabilityPolicyHeaders:()=>jg,BlobSetLegalHoldExceptionHeaders:()=>Ig,BlobSetLegalHoldHeaders:()=>Fg,BlobSetMetadataExceptionHeaders:()=>Rg,BlobSetMetadataHeaders:()=>Lg,BlobSetTagsExceptionHeaders:()=>f_,BlobSetTagsHeaders:()=>d_,BlobSetTierExceptionHeaders:()=>i_,BlobSetTierHeaders:()=>r_,BlobStartCopyFromURLExceptionHeaders:()=>Qg,BlobStartCopyFromURLHeaders:()=>Zg,BlobTag:()=>Zm,BlobTags:()=>Xm,BlobUndeleteExceptionHeaders:()=>Eg,BlobUndeleteHeaders:()=>Tg,Block:()=>uh,BlockBlobCommitBlockListExceptionHeaders:()=>J_,BlockBlobCommitBlockListHeaders:()=>q_,BlockBlobGetBlockListExceptionHeaders:()=>X_,BlockBlobGetBlockListHeaders:()=>Y_,BlockBlobPutBlobFromUrlExceptionHeaders:()=>H_,BlockBlobPutBlobFromUrlHeaders:()=>V_,BlockBlobStageBlockExceptionHeaders:()=>W_,BlockBlobStageBlockFromURLExceptionHeaders:()=>K_,BlockBlobStageBlockFromURLHeaders:()=>G_,BlockBlobStageBlockHeaders:()=>U_,BlockBlobUploadExceptionHeaders:()=>B_,BlockBlobUploadHeaders:()=>z_,BlockList:()=>lh,BlockLookupList:()=>ch,ClearRange:()=>ph,ContainerAcquireLeaseExceptionHeaders:()=>ig,ContainerAcquireLeaseHeaders:()=>rg,ContainerBreakLeaseExceptionHeaders:()=>ug,ContainerBreakLeaseHeaders:()=>lg,ContainerChangeLeaseExceptionHeaders:()=>fg,ContainerChangeLeaseHeaders:()=>dg,ContainerCreateExceptionHeaders:()=>Rh,ContainerCreateHeaders:()=>Lh,ContainerDeleteExceptionHeaders:()=>Hh,ContainerDeleteHeaders:()=>Vh,ContainerFilterBlobsExceptionHeaders:()=>ng,ContainerFilterBlobsHeaders:()=>tg,ContainerGetAccessPolicyExceptionHeaders:()=>Kh,ContainerGetAccessPolicyHeaders:()=>Gh,ContainerGetAccountInfoExceptionHeaders:()=>vg,ContainerGetAccountInfoHeaders:()=>_g,ContainerGetPropertiesExceptionHeaders:()=>Bh,ContainerGetPropertiesHeaders:()=>zh,ContainerItem:()=>Wm,ContainerListBlobFlatSegmentExceptionHeaders:()=>mg,ContainerListBlobFlatSegmentHeaders:()=>pg,ContainerListBlobHierarchySegmentExceptionHeaders:()=>gg,ContainerListBlobHierarchySegmentHeaders:()=>hg,ContainerProperties:()=>Gm,ContainerReleaseLeaseExceptionHeaders:()=>og,ContainerReleaseLeaseHeaders:()=>ag,ContainerRenameExceptionHeaders:()=>Qh,ContainerRenameHeaders:()=>Zh,ContainerRenewLeaseExceptionHeaders:()=>cg,ContainerRenewLeaseHeaders:()=>sg,ContainerRestoreExceptionHeaders:()=>Xh,ContainerRestoreHeaders:()=>Yh,ContainerSetAccessPolicyExceptionHeaders:()=>Jh,ContainerSetAccessPolicyHeaders:()=>qh,ContainerSetMetadataExceptionHeaders:()=>Wh,ContainerSetMetadataHeaders:()=>Uh,ContainerSubmitBatchExceptionHeaders:()=>eg,ContainerSubmitBatchHeaders:()=>$h,CorsRule:()=>zm,DelimitedTextConfiguration:()=>_h,FilterBlobItem:()=>Ym,FilterBlobSegment:()=>Jm,GeoReplication:()=>Hm,JsonTextConfiguration:()=>vh,KeyInfo:()=>Km,ListBlobsFlatSegmentResponse:()=>eh,ListBlobsHierarchySegmentResponse:()=>ah,ListContainersSegmentResponse:()=>Um,Logging:()=>Im,Metrics:()=>Rm,PageBlobClearPagesExceptionHeaders:()=>v_,PageBlobClearPagesHeaders:()=>__,PageBlobCopyIncrementalExceptionHeaders:()=>A_,PageBlobCopyIncrementalHeaders:()=>k_,PageBlobCreateExceptionHeaders:()=>m_,PageBlobCreateHeaders:()=>p_,PageBlobGetPageRangesDiffExceptionHeaders:()=>w_,PageBlobGetPageRangesDiffHeaders:()=>C_,PageBlobGetPageRangesExceptionHeaders:()=>S_,PageBlobGetPageRangesHeaders:()=>x_,PageBlobResizeExceptionHeaders:()=>E_,PageBlobResizeHeaders:()=>T_,PageBlobUpdateSequenceNumberExceptionHeaders:()=>O_,PageBlobUpdateSequenceNumberHeaders:()=>D_,PageBlobUploadPagesExceptionHeaders:()=>g_,PageBlobUploadPagesFromURLExceptionHeaders:()=>b_,PageBlobUploadPagesFromURLHeaders:()=>y_,PageBlobUploadPagesHeaders:()=>h_,PageList:()=>dh,PageRange:()=>fh,QueryFormat:()=>gh,QueryRequest:()=>mh,QuerySerialization:()=>hh,RetentionPolicy:()=>Lm,ServiceFilterBlobsExceptionHeaders:()=>Ih,ServiceFilterBlobsHeaders:()=>Fh,ServiceGetAccountInfoExceptionHeaders:()=>Mh,ServiceGetAccountInfoHeaders:()=>jh,ServiceGetPropertiesExceptionHeaders:()=>wh,ServiceGetPropertiesHeaders:()=>Ch,ServiceGetStatisticsExceptionHeaders:()=>Eh,ServiceGetStatisticsHeaders:()=>Th,ServiceGetUserDelegationKeyExceptionHeaders:()=>Ah,ServiceGetUserDelegationKeyHeaders:()=>kh,ServiceListContainersSegmentExceptionHeaders:()=>Oh,ServiceListContainersSegmentHeaders:()=>Dh,ServiceSetPropertiesExceptionHeaders:()=>Sh,ServiceSetPropertiesHeaders:()=>xh,ServiceSubmitBatchExceptionHeaders:()=>Ph,ServiceSubmitBatchHeaders:()=>Nh,SignedIdentifier:()=>Qm,StaticWebsite:()=>Bm,StorageError:()=>W,UserDelegationKey:()=>qm});const Fm={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:!0,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`}}}}},Im={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},Lm={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},Rm={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},zm={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},Bm={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,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`}}}}},W={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`}}}}},Vm={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},Hm={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},Um={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,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:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Wm={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,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`}}}}}}},Gm={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,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`}}}}},Km={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},qm={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},Jm={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Ym={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},Xm={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},Zm={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},Qm={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},$m={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`}}}}},eh={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,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`}}}}},th={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},nh={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,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`}}}}},rh={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},ih={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:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,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`}}}}},ah={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,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`}}}}},oh={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:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},sh={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},ch={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`}}}}}}},lh={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},uh={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},dh={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`}}}}},fh={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},ph={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},mh={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,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`}}}}},hh={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},gh={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,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`}}}}}}},_h={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`}}}}},vh={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},yh={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},bh={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,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`}}}}},xh={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`}}}}},Sh={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ch={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`}}}}},wh={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Th={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`}}}}},Eh={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dh={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`}}}}},Oh={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kh={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`}}}}},Ah={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jh={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`}}}}},Mh={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Nh={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`}}}}},Ph={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fh={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`}}}}},Ih={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lh={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`}}}}},Rh={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zh={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`}}}}},Bh={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vh={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`}}}}},Hh={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Uh={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`}}}}},Wh={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gh={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`}}}}},Kh={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qh={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`}}}}},Jh={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yh={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`}}}}},Xh={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zh={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`}}}}},Qh={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},$h={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`}}}}},eg={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},tg={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`}}}}},ng={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},rg={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`}}}}},ig={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ag={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`}}}}},og={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},sg={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`}}}}},cg={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},lg={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`}}}}},ug={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},dg={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`}}}}},fg={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},pg={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`}}}}},mg={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},hg={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`}}}}},gg={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},_g={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`}}}}},vg={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},yg={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`}}}}},bg={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},xg={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`}}}}},Sg={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Cg={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`}}}}},wg={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Tg={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`}}}}},Eg={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Dg={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`}}}}},Og={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},kg={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`}}}}},Ag={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},jg={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`]}}}}},Mg={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ng={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`}}}}},Pg={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Fg={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`}}}}},Ig={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Lg={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`}}}}},Rg={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},zg={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`}}}}},Bg={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Vg={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`}}}}},Hg={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ug={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`}}}}},Wg={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Gg={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`}}}}},Kg={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},qg={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`}}}}},Jg={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Yg={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`}}}}},Xg={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Zg={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`}}}}},Qg={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`}}}}},$g={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:!0,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`}}}}},e_={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`}}}}},t_={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`}}}}},n_={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},r_={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`}}}}},i_={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},a_={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`}}}}},o_={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},s_={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`}}}}},c_={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},l_={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`}}}}},u_={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},d_={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`}}}}},f_={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},p_={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`}}}}},m_={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},h_={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`}}}}},g_={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},__={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`}}}}},v_={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},y_={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`}}}}},b_={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`}}}}},x_={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`}}}}},S_={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},C_={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`}}}}},w_={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},T_={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`}}}}},E_={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},D_={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`}}}}},O_={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},k_={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`}}}}},A_={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},j_={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`}}}}},M_={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},N_={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`}}}}},P_={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},F_={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`}}}}},I_={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`}}}}},L_={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`}}}}},R_={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},z_={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`}}}}},B_={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},V_={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`}}}}},H_={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`}}}}},U_={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`}}}}},W_={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},G_={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`}}}}},K_={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`}}}}},q_={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`}}}}},J_={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Y_={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`}}}}},X_={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Z_={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},Q_={parameterPath:`blobServiceProperties`,mapper:Fm},$_={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},G={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},ev={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},tv={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},K={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},q={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},J={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},Y={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},nv={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rv={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},iv={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},av={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},ov={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},sv={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},cv={parameterPath:`keyInfo`,mapper:Km},lv={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},uv={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},dv={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},fv={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},pv={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},mv={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},hv={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gv={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},_v={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},vv={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},yv={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},bv={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},xv={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},Sv={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},X={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},Cv={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},wv={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Tv={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ev={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},Dv={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ov={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},kv={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},Av={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jv={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},Mv={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},Nv={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Pv={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Fv={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},Iv={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},Lv={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Rv={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},zv={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Bv={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Vv={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},Hv={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Uv={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},Wv={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`},Gv={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},Kv={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},qv={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},Jv={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},Yv={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},Xv={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},Zv={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},Qv={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},$v={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},ey={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},ty={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},ny={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},ry={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},iy={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},ay={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},oy={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sy={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},cy={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},ly={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},uy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},dy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},fy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},py={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},my={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},hy={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gy={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},_y={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},vy={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yy={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},by={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},xy={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Sy={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`]}}},Cy={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},wy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},Ty={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},Ey={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},Dy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},Oy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},ky={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},Ay={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},jy={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},My={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},Ny={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},Py={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},Fy={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},Iy={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},Ly={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},Ry={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},zy={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},By={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},Vy={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Hy={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},Uy={parameterPath:[`options`,`queryRequest`],mapper:mh},Wy={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Gy={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ky={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},qy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},Jy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},Yy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},Xy={parameterPath:[`options`,`tags`],mapper:Xm},Zy={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},Qy={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},$y={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},eb={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},tb={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},nb={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},rb={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},ib={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},ab={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ob={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},sb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},cb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},lb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},ub={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},db={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},fb={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},pb={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},mb={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},hb={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gb={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},_b={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},vb={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},yb={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bb={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},xb={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Sb={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},Cb={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},wb={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},Tb={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Eb={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},Db={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},Ob={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kb={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},Ab={parameterPath:`blocks`,mapper:ch},jb={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Mb={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var Nb=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},Fb)}getProperties(e){return this.client.sendOperationRequest({options:e},Ib)}getStatistics(e){return this.client.sendOperationRequest({options:e},Lb)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Rb)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},zb)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Bb)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},Vb)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Hb)}};const Pb=hl(Pm,!0),Fb={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:xh},default:{bodyMapper:W,headersMapper:Sh}},requestBody:Q_,queryParameters:[ev,tv,K],urlParameters:[G],headerParameters:[Z_,$_,q,J],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Ib={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Fm,headersMapper:Ch},default:{bodyMapper:W,headersMapper:wh}},queryParameters:[ev,tv,K],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Pb},Lb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Vm,headersMapper:Th},default:{bodyMapper:W,headersMapper:Eh}},queryParameters:[ev,K,nv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Pb},Rb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Um,headersMapper:Dh},default:{bodyMapper:W,headersMapper:Oh}},queryParameters:[K,rv,iv,av,ov,sv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Pb},zb={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:qm,headersMapper:kh},default:{bodyMapper:W,headersMapper:Ah}},requestBody:cv,queryParameters:[ev,K,lv],urlParameters:[G],headerParameters:[Z_,$_,q,J],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Bb={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:jh},default:{bodyMapper:W,headersMapper:Mh}},queryParameters:[tv,K,uv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Pb},Vb={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Nh},default:{bodyMapper:W,headersMapper:Ph}},requestBody:dv,queryParameters:[K,fv],urlParameters:[G],headerParameters:[$_,q,J,pv,mv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Hb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Jm,headersMapper:Fh},default:{bodyMapper:W,headersMapper:Ih}},queryParameters:[K,av,ov,hv,gv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Pb};var Ub=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Gb)}getProperties(e){return this.client.sendOperationRequest({options:e},Kb)}delete(e){return this.client.sendOperationRequest({options:e},qb)}setMetadata(e){return this.client.sendOperationRequest({options:e},Jb)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Yb)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Xb)}restore(e){return this.client.sendOperationRequest({options:e},Zb)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},Qb)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},$b)}filterBlobs(e){return this.client.sendOperationRequest({options:e},ex)}acquireLease(e){return this.client.sendOperationRequest({options:e},tx)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},nx)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},rx)}breakLease(e){return this.client.sendOperationRequest({options:e},ix)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},ax)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ox)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},sx)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},cx)}};const Wb=hl(Pm,!0),Gb={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:Lh},default:{bodyMapper:W,headersMapper:Rh}},queryParameters:[K,_v],urlParameters:[G],headerParameters:[q,J,Y,vv,yv,bv,xv],isXML:!0,serializer:Wb},Kb={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:zh},default:{bodyMapper:W,headersMapper:Bh}},queryParameters:[K,_v],urlParameters:[G],headerParameters:[q,J,Y,Sv],isXML:!0,serializer:Wb},qb={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Vh},default:{bodyMapper:W,headersMapper:Hh}},queryParameters:[K,_v],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv],isXML:!0,serializer:Wb},Jb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Uh},default:{bodyMapper:W,headersMapper:Wh}},queryParameters:[K,_v,wv],urlParameters:[G],headerParameters:[q,J,Y,vv,Sv,X],isXML:!0,serializer:Wb},Yb={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:Gh},default:{bodyMapper:W,headersMapper:Kh}},queryParameters:[K,_v,Tv],urlParameters:[G],headerParameters:[q,J,Y,Sv],isXML:!0,serializer:Wb},Xb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:qh},default:{bodyMapper:W,headersMapper:Jh}},requestBody:Ev,queryParameters:[K,_v,Tv],urlParameters:[G],headerParameters:[Z_,$_,q,J,yv,Sv,X,Cv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Wb},Zb={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:Yh},default:{bodyMapper:W,headersMapper:Xh}},queryParameters:[K,_v,Dv],urlParameters:[G],headerParameters:[q,J,Y,Ov,kv],isXML:!0,serializer:Wb},Qb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Zh},default:{bodyMapper:W,headersMapper:Qh}},queryParameters:[K,_v,Av],urlParameters:[G],headerParameters:[q,J,Y,jv,Mv],isXML:!0,serializer:Wb},$b={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:$h},default:{bodyMapper:W,headersMapper:eg}},requestBody:dv,queryParameters:[K,fv,_v],urlParameters:[G],headerParameters:[$_,q,J,pv,mv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Wb},ex={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:Jm,headersMapper:tg},default:{bodyMapper:W,headersMapper:ng}},queryParameters:[K,av,ov,hv,gv,_v],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Wb},tx={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:rg},default:{bodyMapper:W,headersMapper:ig}},queryParameters:[K,_v,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Pv,Fv,Iv],isXML:!0,serializer:Wb},nx={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ag},default:{bodyMapper:W,headersMapper:og}},queryParameters:[K,_v,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Lv,Rv],isXML:!0,serializer:Wb},rx={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:sg},default:{bodyMapper:W,headersMapper:cg}},queryParameters:[K,_v,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Rv,zv],isXML:!0,serializer:Wb},ix={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:lg},default:{bodyMapper:W,headersMapper:ug}},queryParameters:[K,_v,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Bv,Vv],isXML:!0,serializer:Wb},ax={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:dg},default:{bodyMapper:W,headersMapper:fg}},queryParameters:[K,_v,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Rv,Hv,Uv],isXML:!0,serializer:Wb},ox={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:eh,headersMapper:pg},default:{bodyMapper:W,headersMapper:mg}},queryParameters:[K,rv,iv,av,ov,_v,Wv,Gv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Wb},sx={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:ah,headersMapper:hg},default:{bodyMapper:W,headersMapper:gg}},queryParameters:[K,rv,iv,av,ov,_v,Wv,Gv,Kv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Wb},cx={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:_g},default:{bodyMapper:W,headersMapper:vg}},queryParameters:[tv,K,uv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:Wb};var lx=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},dx)}getProperties(e){return this.client.sendOperationRequest({options:e},fx)}delete(e){return this.client.sendOperationRequest({options:e},px)}undelete(e){return this.client.sendOperationRequest({options:e},mx)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},hx)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},gx)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},_x)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},vx)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},yx)}setMetadata(e){return this.client.sendOperationRequest({options:e},bx)}acquireLease(e){return this.client.sendOperationRequest({options:e},xx)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Sx)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Cx)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},wx)}breakLease(e){return this.client.sendOperationRequest({options:e},Tx)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Ex)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Dx)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ox)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},kx)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Ax)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},jx)}query(e){return this.client.sendOperationRequest({options:e},Mx)}getTags(e){return this.client.sendOperationRequest({options:e},Nx)}setTags(e){return this.client.sendOperationRequest({options:e},Px)}};const ux=hl(Pm,!0),dx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:yg},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:yg},default:{bodyMapper:W,headersMapper:bg}},queryParameters:[K,qv,Jv],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry],isXML:!0,serializer:ux},fx={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:xg},default:{bodyMapper:W,headersMapper:Sg}},queryParameters:[K,qv,Jv],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,Qv,$v,ey,ty,ny,ry],isXML:!0,serializer:ux},px={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Cg},default:{bodyMapper:W,headersMapper:wg}},queryParameters:[K,qv,Jv,ay],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,ty,ny,ry,iy],isXML:!0,serializer:ux},mx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Tg},default:{bodyMapper:W,headersMapper:Eg}},queryParameters:[K,Dv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:ux},hx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Dg},default:{bodyMapper:W,headersMapper:Og}},queryParameters:[K,oy],urlParameters:[G],headerParameters:[q,J,Y,sy,cy],isXML:!0,serializer:ux},gx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:kg},default:{bodyMapper:W,headersMapper:Ag}},queryParameters:[tv,K],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,ty,ny,ry,ly,uy,dy,fy,py,my],isXML:!0,serializer:ux},_x={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:jg},default:{bodyMapper:W,headersMapper:Mg}},queryParameters:[K,qv,Jv,hy],urlParameters:[G],headerParameters:[q,J,Y,Cv,gy,_y],isXML:!0,serializer:ux},vx={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Ng},default:{bodyMapper:W,headersMapper:Pg}},queryParameters:[K,qv,Jv,hy],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:ux},yx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Fg},default:{bodyMapper:W,headersMapper:Ig}},queryParameters:[K,qv,Jv,vy],urlParameters:[G],headerParameters:[q,J,Y,yy],isXML:!0,serializer:ux},bx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Lg},default:{bodyMapper:W,headersMapper:Rg}},queryParameters:[K,wv],urlParameters:[G],headerParameters:[q,J,Y,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by],isXML:!0,serializer:ux},xx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:zg},default:{bodyMapper:W,headersMapper:Bg}},queryParameters:[K,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Pv,Fv,Iv,ty,ny,ry],isXML:!0,serializer:ux},Sx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Vg},default:{bodyMapper:W,headersMapper:Hg}},queryParameters:[K,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Lv,Rv,ty,ny,ry],isXML:!0,serializer:ux},Cx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ug},default:{bodyMapper:W,headersMapper:Wg}},queryParameters:[K,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Rv,zv,ty,ny,ry],isXML:!0,serializer:ux},wx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Gg},default:{bodyMapper:W,headersMapper:Kg}},queryParameters:[K,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Rv,Hv,Uv,ty,ny,ry],isXML:!0,serializer:ux},Tx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:qg},default:{bodyMapper:W,headersMapper:Jg}},queryParameters:[K,Nv],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,Bv,Vv,ty,ny,ry],isXML:!0,serializer:ux},Ex={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Yg},default:{bodyMapper:W,headersMapper:Xg}},queryParameters:[K,xy],urlParameters:[G],headerParameters:[q,J,Y,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by],isXML:!0,serializer:ux},Dx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:Zg},default:{bodyMapper:W,headersMapper:Qg}},queryParameters:[K],urlParameters:[G],headerParameters:[q,J,Y,vv,Sv,X,Cv,ty,ny,ry,gy,_y,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My],isXML:!0,serializer:ux},Ox={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:$g},default:{bodyMapper:W,headersMapper:e_}},queryParameters:[K],urlParameters:[G],headerParameters:[q,J,Y,vv,Sv,X,Cv,ty,ny,ry,gy,_y,by,Sy,wy,Ty,Ey,Dy,ky,Ay,My,Ny,Py,Fy,Iy,Ly],isXML:!0,serializer:ux},kx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:t_},default:{bodyMapper:W,headersMapper:n_}},queryParameters:[K,Ry,By],urlParameters:[G],headerParameters:[q,J,Y,Sv,zy],isXML:!0,serializer:ux},Ax={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:r_},202:{headersMapper:r_},default:{bodyMapper:W,headersMapper:i_}},queryParameters:[K,qv,Jv,Vy],urlParameters:[G],headerParameters:[q,J,Y,Sv,ry,Cy,Hy],isXML:!0,serializer:ux},jx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:a_},default:{bodyMapper:W,headersMapper:o_}},queryParameters:[tv,K,uv],urlParameters:[G],headerParameters:[q,J,Y],isXML:!0,serializer:ux},Mx={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:s_},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:s_},default:{bodyMapper:W,headersMapper:c_}},requestBody:Uy,queryParameters:[K,qv,Wy],urlParameters:[G],headerParameters:[Z_,$_,q,J,Sv,X,Cv,Qv,$v,ey,ty,ny,ry],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ux},Nx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Xm,headersMapper:l_},default:{bodyMapper:W,headersMapper:u_}},queryParameters:[K,qv,Jv,Gy],urlParameters:[G],headerParameters:[q,J,Y,Sv,ry,Ky,qy,Jy,Yy],isXML:!0,serializer:ux},Px={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:d_},default:{bodyMapper:W,headersMapper:f_}},requestBody:Xy,queryParameters:[K,Jv,Gy],urlParameters:[G],headerParameters:[Z_,$_,q,J,Sv,ry,Ky,qy,Jy,Yy,Zy,Qy],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ux};var Fx=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Lx)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Rx)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},zx)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},Bx)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Vx)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Hx)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},Ux)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},Wx)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Gx)}};const Ix=hl(Pm,!0),Lx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:p_},default:{bodyMapper:W,headersMapper:m_}},queryParameters:[K],urlParameters:[G],headerParameters:[q,J,Y,pv,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,$y,eb,tb],isXML:!0,serializer:Ix},Rx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:h_},default:{bodyMapper:W,headersMapper:g_}},requestBody:rb,queryParameters:[K,ab],urlParameters:[G],headerParameters:[q,J,pv,Sv,X,Cv,Yv,Qv,$v,ey,ty,ny,ry,by,Zy,Qy,nb,ib,ob,sb,cb,lb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Ix},zx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:__},default:{bodyMapper:W,headersMapper:v_}},queryParameters:[K,ab],urlParameters:[G],headerParameters:[q,J,Y,pv,Sv,X,Cv,Yv,Qv,$v,ey,ty,ny,ry,by,sb,cb,lb,ub],isXML:!0,serializer:Ix},Bx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:y_},default:{bodyMapper:W,headersMapper:b_}},queryParameters:[K,ab],urlParameters:[G],headerParameters:[q,J,Y,pv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by,wy,Ty,Ey,Dy,Py,Fy,Ly,ob,sb,cb,lb,db,fb,pb,mb],isXML:!0,serializer:Ix},Vx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:dh,headersMapper:x_},default:{bodyMapper:W,headersMapper:S_}},queryParameters:[K,av,ov,qv,hb],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,Yv,ty,ny,ry],isXML:!0,serializer:Ix},Hx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:dh,headersMapper:C_},default:{bodyMapper:W,headersMapper:w_}},queryParameters:[K,av,ov,qv,hb,gb],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,Yv,ty,ny,ry,_b],isXML:!0,serializer:Ix},Ux={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:T_},default:{bodyMapper:W,headersMapper:E_}},queryParameters:[tv,K],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by,eb],isXML:!0,serializer:Ix},Wx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:D_},default:{bodyMapper:W,headersMapper:O_}},queryParameters:[tv,K],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,ty,ny,ry,tb,vb],isXML:!0,serializer:Ix},Gx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:k_},default:{bodyMapper:W,headersMapper:A_}},queryParameters:[K,yb],urlParameters:[G],headerParameters:[q,J,Y,X,Cv,ty,ny,ry,ky],isXML:!0,serializer:Ix};var Kx=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Jx)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Yx)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},Xx)}seal(e){return this.client.sendOperationRequest({options:e},Zx)}};const qx=hl(Pm,!0),Jx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:j_},default:{bodyMapper:W,headersMapper:M_}},queryParameters:[K],urlParameters:[G],headerParameters:[q,J,Y,pv,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Ay,My,bb],isXML:!0,serializer:qx},Yx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:N_},default:{bodyMapper:W,headersMapper:P_}},requestBody:rb,queryParameters:[K,xb],urlParameters:[G],headerParameters:[q,J,pv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by,Zy,Qy,nb,ib,Sb,Cb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:qx},Xx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:F_},default:{bodyMapper:W,headersMapper:I_}},queryParameters:[K,xb],urlParameters:[G],headerParameters:[q,J,Y,pv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,by,wy,Ty,Ey,Dy,Py,Fy,Ly,Zy,db,pb,Sb,Cb,wb],isXML:!0,serializer:qx},Zx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:L_},default:{bodyMapper:W,headersMapper:R_}},queryParameters:[K,Tb],urlParameters:[G],headerParameters:[q,J,Y,Sv,X,Cv,ty,ny,Cb],isXML:!0,serializer:qx};var Qx=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},eS)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},tS)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},nS)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},rS)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},iS)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},aS)}};const $x=hl(Pm,!0),eS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:z_},default:{bodyMapper:W,headersMapper:B_}},requestBody:rb,queryParameters:[K],urlParameters:[G],headerParameters:[q,J,pv,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,Zy,Qy,nb,ib,Eb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:$x},tS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:V_},default:{bodyMapper:W,headersMapper:H_}},queryParameters:[K],urlParameters:[G],headerParameters:[q,J,Y,pv,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,by,Sy,wy,Ty,Ey,Dy,Oy,ky,Ay,Py,Fy,Iy,Ly,Zy,Eb,Db],isXML:!0,serializer:$x},nS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:U_},default:{bodyMapper:W,headersMapper:W_}},requestBody:rb,queryParameters:[K,Ob,kb],urlParameters:[G],headerParameters:[q,J,pv,Sv,Qv,$v,ey,by,Zy,Qy,nb,ib],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:$x},rS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:G_},default:{bodyMapper:W,headersMapper:K_}},queryParameters:[K,Ob,kb],urlParameters:[G],headerParameters:[q,J,Y,pv,Sv,Qv,$v,ey,by,wy,Ty,Ey,Dy,Py,Fy,Ly,db,pb,wb],isXML:!0,serializer:$x},iS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:q_},default:{bodyMapper:W,headersMapper:J_}},requestBody:Ab,queryParameters:[K,jb],urlParameters:[G],headerParameters:[Z_,$_,q,J,vv,Sv,X,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,Zy,Qy],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:$x},aS={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:lh,headersMapper:Y_},default:{bodyMapper:W,headersMapper:X_}},queryParameters:[K,qv,jb,Mb],urlParameters:[G],headerParameters:[q,J,Y,Sv,ry],isXML:!0,serializer:$x};var oS=class extends Gu{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new Nb(this),this.container=new Ub(this),this.blob=new lx(this),this.pageBlob=new Fx(this),this.appendBlob=new Kx(this),this.blockBlob=new Qx(this)}service;container;blob;pageBlob;appendBlob;blockBlob},sS=class extends oS{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function cS(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=fS(n),t.pathname=n,t.toString()}function lS(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function uS(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function dS(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=lS(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=uS(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=uS(e,`AccountName`),a=Buffer.from(uS(e,`AccountKey`),`base64`),!n){r=uS(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=uS(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=uS(e,`SharedAccessSignature`),r=uS(e,`AccountName`);if(r||=CS(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function fS(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function pS(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function mS(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function hS(e,t){return new URL(e).searchParams.get(t)??void 0}function gS(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function _S(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function vS(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function yS(e){return uc?Buffer.from(e).toString(`base64`):btoa(e)}function bS(e,t){return e.length>42&&(e=e.slice(0,42)),yS(e+xS(t.toString(),48-e.length,`0`))}function xS(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function SS(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function CS(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:wS(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function wS(e){let t=e.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(t)||!!e.port&&ym.includes(e.port)}function TS(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function ES(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function DS(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function OS(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function kS(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function AS(e){return e?e.scheme+` `+e.value:void 0}function*jS(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function RS(e,t,n){return zS(e,t,n).sasQueryParameters}function zS(e,t,n){let r=e.version?e.version:pm,i=t instanceof Xp?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new dm(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?KS(e,a):GS(e,a):HS(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?WS(e,a):US(e,a):VS(e,i);if(r>=`2015-04-05`){if(i!==void 0)return BS(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function BS(e,t){if(e=JS(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` +`+r(t)+i(t),o=k(`sha256`,e.accountKey).update(a,`utf8`).digest(`base64`);t.headers.set(W.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function n(e,t){let n=e.headers.get(t);return!n||t===W.CONTENT_LENGTH&&n===`0`?``:n}function r(e){let t=[];for(let[n,r]of e.headers)n.toLowerCase().startsWith(W.PREFIX_FOR_STORAGE)&&t.push({name:n,value:r});t.sort((e,t)=>Kp(e.name.toLowerCase(),t.name.toLowerCase())),t=t.filter((e,t,n)=>!(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()));let n=``;return t.forEach(e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}),n}function i(t){let n=Pp(t.url)||`/`,r=``;r+=`/${e.accountName}${n}`;let i=Fp(t.url),a={};if(i){let e=[];for(let t in i)if(Object.prototype.hasOwnProperty.call(i,t)){let n=t.toLowerCase();a[n]=i[t],e.push(n)}e.sort();for(let t of e)r+=`\n${t}:${decodeURIComponent(a[t])}`}return r}return{name:`storageSharedKeyCredentialPolicy`,async sendRequest(e,n){return t(e),n(e)}}}function lm(){return{name:`storageRequestFailureDetailsParserPolicy`,async sendRequest(e,t){try{return await t(e)}catch(e){throw typeof e==`object`&&e&&e.response&&e.response.parsedBody&&e.response.parsedBody.code===`InvalidHeaderValue`&&e.response.parsedBody.HeaderName===`x-ms-version`&&(e.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. +`),e}}}}var um=class{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e,this.userDelegationKey=t,this.key=Buffer.from(t.value,`base64`)}computeHMACSHA256(e){return k(`sha256`,this.key).update(e,`utf8`).digest(`base64`)}};const dm=`12.31.0`,fm=`2026-02-06`,pm=5e4,mm=4*1024*1024,hm={Parameters:{FORCE_BROWSER_NO_CACHE:`_`,SIGNATURE:`sig`,SNAPSHOT:`snapshot`,VERSIONID:`versionid`,TIMEOUT:`timeout`}},gm=`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`.split(`.`),_m=`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`.split(`.`),vm=[`10000`,`10001`,`10002`,`10003`,`10004`,`10100`,`10101`,`10102`,`10103`,`10104`,`11000`,`11001`,`11002`,`11003`,`11004`,`11100`,`11101`,`11102`,`11103`,`11104`];function ym(e){if(!e||typeof e!=`object`)return!1;let t=e;return Array.isArray(t.factories)&&typeof t.options==`object`&&typeof t.toServiceClientOptions==`function`}var bm=class{factories;options;constructor(e,t={}){this.factories=e,this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function xm(e,t={}){e||=new Hp;let n=new bm([],t);return n._credential=e,n}function Sm(e){let t=[Em,Tm,Dm,Om,km,Am,Mm];if(e.factories.length){let n=e.factories.filter(e=>!t.some(t=>t(e)));if(n.length){let e=n.some(e=>jm(e));return{wrappedPolicies:qu(n),afterRetry:e}}}}function Cm(e){let{httpClient:t,...n}=e.options,r=e._coreHttpClient;r||(r=t?Ju(t):kp(),e._coreHttpClient=r);let i=e._corePipeline;if(!i){let t=`azsdk-js-azure-storage-blob/${dm}`,r=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=uu({...n,loggingOptions:{additionalAllowedHeaderNames:gm,additionalAllowedQueryParameters:_m,logger:Cp.info},userAgentOptions:{userAgentPrefix:r},serializationOptions:{stringifyXML:xp,serializerOptions:{xml:{xmlCharKey:`#`}}},deserializationOptions:{parseXML:Sp,serializerOptions:{xml:{xmlCharKey:`#`}}}}),i.removePolicy({phase:`Retry`}),i.removePolicy({name:`decompressResponsePolicy`}),i.addPolicy(rm()),i.addPolicy(sm(n.retryOptions),{phase:`Retry`}),i.addPolicy(lm()),i.addPolicy(nm());let a=Sm(e);a&&i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:`Retry`}:void 0);let o=wm(e);el(o)?i.addPolicy(Zc({credential:o,scopes:n.audience??`https://storage.azure.com/.default`,challengeCallbacks:{authorizeRequestOnChallenge:Ou}}),{phase:`Sign`}):o instanceof Yp&&i.addPolicy(cm({accountName:o.accountName,accountKey:o.accountKey}),{phase:`Sign`}),e._corePipeline=i}return{...n,allowInsecureConnection:!0,httpClient:r,pipeline:i}}function wm(e){if(e._credential)return e._credential;let t=new Hp;for(let n of e.factories)if(el(n.credential))t=n.credential;else if(Tm(n))return n;return t}function Tm(e){return e instanceof Yp?!0:e.constructor.name===`StorageSharedKeyCredential`}function Em(e){return e instanceof Hp?!0:e.constructor.name===`AnonymousCredential`}function Dm(e){return el(e.credential)}function Om(e){return e instanceof Rp?!0:e.constructor.name===`StorageBrowserPolicyFactory`}function km(e){return e instanceof tm?!0:e.constructor.name===`StorageRetryPolicyFactory`}function Am(e){return e.constructor.name===`TelemetryPolicyFactory`}function jm(e){return e.constructor.name===`InjectorPolicyFactory`}function Mm(e){let t=[`GenerateClientRequestIdPolicy`,`TracingPolicy`,`LogPolicy`,`ProxyPolicy`,`DisableResponseDecompressionPolicy`,`KeepAlivePolicy`,`DeserializationPolicy`],n=e.create({sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})},{log(e,t){},shouldLog(e){return!1}}).constructor.name;return t.some(e=>n.startsWith(e))}var Nm=me({AccessPolicy:()=>Qm,AppendBlobAppendBlockExceptionHeaders:()=>N_,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>F_,AppendBlobAppendBlockFromUrlHeaders:()=>P_,AppendBlobAppendBlockHeaders:()=>M_,AppendBlobCreateExceptionHeaders:()=>j_,AppendBlobCreateHeaders:()=>A_,AppendBlobSealExceptionHeaders:()=>L_,AppendBlobSealHeaders:()=>I_,ArrowConfiguration:()=>vh,ArrowField:()=>yh,BlobAbortCopyFromURLExceptionHeaders:()=>t_,BlobAbortCopyFromURLHeaders:()=>e_,BlobAcquireLeaseExceptionHeaders:()=>zg,BlobAcquireLeaseHeaders:()=>Rg,BlobBreakLeaseExceptionHeaders:()=>qg,BlobBreakLeaseHeaders:()=>Kg,BlobChangeLeaseExceptionHeaders:()=>Gg,BlobChangeLeaseHeaders:()=>Wg,BlobCopyFromURLExceptionHeaders:()=>$g,BlobCopyFromURLHeaders:()=>Qg,BlobCreateSnapshotExceptionHeaders:()=>Yg,BlobCreateSnapshotHeaders:()=>Jg,BlobDeleteExceptionHeaders:()=>Cg,BlobDeleteHeaders:()=>Sg,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Ng,BlobDeleteImmutabilityPolicyHeaders:()=>Mg,BlobDownloadExceptionHeaders:()=>yg,BlobDownloadHeaders:()=>vg,BlobFlatListSegment:()=>eh,BlobGetAccountInfoExceptionHeaders:()=>a_,BlobGetAccountInfoHeaders:()=>i_,BlobGetPropertiesExceptionHeaders:()=>xg,BlobGetPropertiesHeaders:()=>bg,BlobGetTagsExceptionHeaders:()=>l_,BlobGetTagsHeaders:()=>c_,BlobHierarchyListSegment:()=>ah,BlobItemInternal:()=>th,BlobName:()=>nh,BlobPrefix:()=>oh,BlobPropertiesInternal:()=>rh,BlobQueryExceptionHeaders:()=>s_,BlobQueryHeaders:()=>o_,BlobReleaseLeaseExceptionHeaders:()=>Vg,BlobReleaseLeaseHeaders:()=>Bg,BlobRenewLeaseExceptionHeaders:()=>Ug,BlobRenewLeaseHeaders:()=>Hg,BlobServiceProperties:()=>Pm,BlobServiceStatistics:()=>Bm,BlobSetExpiryExceptionHeaders:()=>Dg,BlobSetExpiryHeaders:()=>Eg,BlobSetHttpHeadersExceptionHeaders:()=>kg,BlobSetHttpHeadersHeaders:()=>Og,BlobSetImmutabilityPolicyExceptionHeaders:()=>jg,BlobSetImmutabilityPolicyHeaders:()=>Ag,BlobSetLegalHoldExceptionHeaders:()=>Fg,BlobSetLegalHoldHeaders:()=>Pg,BlobSetMetadataExceptionHeaders:()=>Lg,BlobSetMetadataHeaders:()=>Ig,BlobSetTagsExceptionHeaders:()=>d_,BlobSetTagsHeaders:()=>u_,BlobSetTierExceptionHeaders:()=>r_,BlobSetTierHeaders:()=>n_,BlobStartCopyFromURLExceptionHeaders:()=>Zg,BlobStartCopyFromURLHeaders:()=>Xg,BlobTag:()=>Xm,BlobTags:()=>Ym,BlobUndeleteExceptionHeaders:()=>Tg,BlobUndeleteHeaders:()=>wg,Block:()=>lh,BlockBlobCommitBlockListExceptionHeaders:()=>q_,BlockBlobCommitBlockListHeaders:()=>K_,BlockBlobGetBlockListExceptionHeaders:()=>Y_,BlockBlobGetBlockListHeaders:()=>J_,BlockBlobPutBlobFromUrlExceptionHeaders:()=>V_,BlockBlobPutBlobFromUrlHeaders:()=>B_,BlockBlobStageBlockExceptionHeaders:()=>U_,BlockBlobStageBlockFromURLExceptionHeaders:()=>G_,BlockBlobStageBlockFromURLHeaders:()=>W_,BlockBlobStageBlockHeaders:()=>H_,BlockBlobUploadExceptionHeaders:()=>z_,BlockBlobUploadHeaders:()=>R_,BlockList:()=>ch,BlockLookupList:()=>sh,ClearRange:()=>fh,ContainerAcquireLeaseExceptionHeaders:()=>rg,ContainerAcquireLeaseHeaders:()=>ng,ContainerBreakLeaseExceptionHeaders:()=>lg,ContainerBreakLeaseHeaders:()=>cg,ContainerChangeLeaseExceptionHeaders:()=>dg,ContainerChangeLeaseHeaders:()=>ug,ContainerCreateExceptionHeaders:()=>Lh,ContainerCreateHeaders:()=>Ih,ContainerDeleteExceptionHeaders:()=>Vh,ContainerDeleteHeaders:()=>Bh,ContainerFilterBlobsExceptionHeaders:()=>tg,ContainerFilterBlobsHeaders:()=>eg,ContainerGetAccessPolicyExceptionHeaders:()=>Gh,ContainerGetAccessPolicyHeaders:()=>Wh,ContainerGetAccountInfoExceptionHeaders:()=>_g,ContainerGetAccountInfoHeaders:()=>gg,ContainerGetPropertiesExceptionHeaders:()=>zh,ContainerGetPropertiesHeaders:()=>Rh,ContainerItem:()=>Um,ContainerListBlobFlatSegmentExceptionHeaders:()=>pg,ContainerListBlobFlatSegmentHeaders:()=>fg,ContainerListBlobHierarchySegmentExceptionHeaders:()=>hg,ContainerListBlobHierarchySegmentHeaders:()=>mg,ContainerProperties:()=>Wm,ContainerReleaseLeaseExceptionHeaders:()=>ag,ContainerReleaseLeaseHeaders:()=>ig,ContainerRenameExceptionHeaders:()=>Zh,ContainerRenameHeaders:()=>Xh,ContainerRenewLeaseExceptionHeaders:()=>sg,ContainerRenewLeaseHeaders:()=>og,ContainerRestoreExceptionHeaders:()=>Yh,ContainerRestoreHeaders:()=>Jh,ContainerSetAccessPolicyExceptionHeaders:()=>qh,ContainerSetAccessPolicyHeaders:()=>Kh,ContainerSetMetadataExceptionHeaders:()=>Uh,ContainerSetMetadataHeaders:()=>Hh,ContainerSubmitBatchExceptionHeaders:()=>$h,ContainerSubmitBatchHeaders:()=>Qh,CorsRule:()=>Rm,DelimitedTextConfiguration:()=>gh,FilterBlobItem:()=>Jm,FilterBlobSegment:()=>qm,GeoReplication:()=>Vm,JsonTextConfiguration:()=>_h,KeyInfo:()=>Gm,ListBlobsFlatSegmentResponse:()=>$m,ListBlobsHierarchySegmentResponse:()=>ih,ListContainersSegmentResponse:()=>Hm,Logging:()=>Fm,Metrics:()=>Lm,PageBlobClearPagesExceptionHeaders:()=>__,PageBlobClearPagesHeaders:()=>g_,PageBlobCopyIncrementalExceptionHeaders:()=>k_,PageBlobCopyIncrementalHeaders:()=>O_,PageBlobCreateExceptionHeaders:()=>p_,PageBlobCreateHeaders:()=>f_,PageBlobGetPageRangesDiffExceptionHeaders:()=>C_,PageBlobGetPageRangesDiffHeaders:()=>S_,PageBlobGetPageRangesExceptionHeaders:()=>x_,PageBlobGetPageRangesHeaders:()=>b_,PageBlobResizeExceptionHeaders:()=>T_,PageBlobResizeHeaders:()=>w_,PageBlobUpdateSequenceNumberExceptionHeaders:()=>D_,PageBlobUpdateSequenceNumberHeaders:()=>E_,PageBlobUploadPagesExceptionHeaders:()=>h_,PageBlobUploadPagesFromURLExceptionHeaders:()=>y_,PageBlobUploadPagesFromURLHeaders:()=>v_,PageBlobUploadPagesHeaders:()=>m_,PageList:()=>uh,PageRange:()=>dh,QueryFormat:()=>hh,QueryRequest:()=>ph,QuerySerialization:()=>mh,RetentionPolicy:()=>Im,ServiceFilterBlobsExceptionHeaders:()=>Fh,ServiceFilterBlobsHeaders:()=>Ph,ServiceGetAccountInfoExceptionHeaders:()=>jh,ServiceGetAccountInfoHeaders:()=>Ah,ServiceGetPropertiesExceptionHeaders:()=>Ch,ServiceGetPropertiesHeaders:()=>Sh,ServiceGetStatisticsExceptionHeaders:()=>Th,ServiceGetStatisticsHeaders:()=>wh,ServiceGetUserDelegationKeyExceptionHeaders:()=>kh,ServiceGetUserDelegationKeyHeaders:()=>Oh,ServiceListContainersSegmentExceptionHeaders:()=>Dh,ServiceListContainersSegmentHeaders:()=>Eh,ServiceSetPropertiesExceptionHeaders:()=>xh,ServiceSetPropertiesHeaders:()=>bh,ServiceSubmitBatchExceptionHeaders:()=>Nh,ServiceSubmitBatchHeaders:()=>Mh,SignedIdentifier:()=>Zm,StaticWebsite:()=>zm,StorageError:()=>G,UserDelegationKey:()=>Km});const Pm={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:!0,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`}}}}},Fm={serializedName:`Logging`,type:{name:`Composite`,className:`Logging`,modelProperties:{version:{serializedName:`Version`,required:!0,xmlName:`Version`,type:{name:`String`}},deleteProperty:{serializedName:`Delete`,required:!0,xmlName:`Delete`,type:{name:`Boolean`}},read:{serializedName:`Read`,required:!0,xmlName:`Read`,type:{name:`Boolean`}},write:{serializedName:`Write`,required:!0,xmlName:`Write`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},Im={serializedName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},days:{constraints:{InclusiveMinimum:1},serializedName:`Days`,xmlName:`Days`,type:{name:`Number`}}}}},Lm={serializedName:`Metrics`,type:{name:`Composite`,className:`Metrics`,modelProperties:{version:{serializedName:`Version`,xmlName:`Version`,type:{name:`String`}},enabled:{serializedName:`Enabled`,required:!0,xmlName:`Enabled`,type:{name:`Boolean`}},includeAPIs:{serializedName:`IncludeAPIs`,xmlName:`IncludeAPIs`,type:{name:`Boolean`}},retentionPolicy:{serializedName:`RetentionPolicy`,xmlName:`RetentionPolicy`,type:{name:`Composite`,className:`RetentionPolicy`}}}}},Rm={serializedName:`CorsRule`,type:{name:`Composite`,className:`CorsRule`,modelProperties:{allowedOrigins:{serializedName:`AllowedOrigins`,required:!0,xmlName:`AllowedOrigins`,type:{name:`String`}},allowedMethods:{serializedName:`AllowedMethods`,required:!0,xmlName:`AllowedMethods`,type:{name:`String`}},allowedHeaders:{serializedName:`AllowedHeaders`,required:!0,xmlName:`AllowedHeaders`,type:{name:`String`}},exposedHeaders:{serializedName:`ExposedHeaders`,required:!0,xmlName:`ExposedHeaders`,type:{name:`String`}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:`MaxAgeInSeconds`,required:!0,xmlName:`MaxAgeInSeconds`,type:{name:`Number`}}}}},zm={serializedName:`StaticWebsite`,type:{name:`Composite`,className:`StaticWebsite`,modelProperties:{enabled:{serializedName:`Enabled`,required:!0,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`}}}}},G={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`}}}}},Bm={serializedName:`BlobServiceStatistics`,xmlName:`StorageServiceStats`,type:{name:`Composite`,className:`BlobServiceStatistics`,modelProperties:{geoReplication:{serializedName:`GeoReplication`,xmlName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`}}}}},Vm={serializedName:`GeoReplication`,type:{name:`Composite`,className:`GeoReplication`,modelProperties:{status:{serializedName:`Status`,required:!0,xmlName:`Status`,type:{name:`Enum`,allowedValues:[`live`,`bootstrap`,`unavailable`]}},lastSyncOn:{serializedName:`LastSyncTime`,required:!0,xmlName:`LastSyncTime`,type:{name:`DateTimeRfc1123`}}}}},Hm={serializedName:`ListContainersSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListContainersSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,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:!0,xmlName:`Containers`,xmlIsWrapped:!0,xmlElementName:`Container`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ContainerItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Um={serializedName:`ContainerItem`,xmlName:`Container`,type:{name:`Composite`,className:`ContainerItem`,modelProperties:{name:{serializedName:`Name`,required:!0,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`}}}}}}},Wm={serializedName:`ContainerProperties`,type:{name:`Composite`,className:`ContainerProperties`,modelProperties:{lastModified:{serializedName:`Last-Modified`,required:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,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`}}}}},Gm={serializedName:`KeyInfo`,type:{name:`Composite`,className:`KeyInfo`,modelProperties:{startsOn:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`String`}},expiresOn:{serializedName:`Expiry`,required:!0,xmlName:`Expiry`,type:{name:`String`}}}}},Km={serializedName:`UserDelegationKey`,type:{name:`Composite`,className:`UserDelegationKey`,modelProperties:{signedObjectId:{serializedName:`SignedOid`,required:!0,xmlName:`SignedOid`,type:{name:`String`}},signedTenantId:{serializedName:`SignedTid`,required:!0,xmlName:`SignedTid`,type:{name:`String`}},signedStartsOn:{serializedName:`SignedStart`,required:!0,xmlName:`SignedStart`,type:{name:`String`}},signedExpiresOn:{serializedName:`SignedExpiry`,required:!0,xmlName:`SignedExpiry`,type:{name:`String`}},signedService:{serializedName:`SignedService`,required:!0,xmlName:`SignedService`,type:{name:`String`}},signedVersion:{serializedName:`SignedVersion`,required:!0,xmlName:`SignedVersion`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},qm={serializedName:`FilterBlobSegment`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`FilterBlobSegment`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},where:{serializedName:`Where`,required:!0,xmlName:`Where`,type:{name:`String`}},blobs:{serializedName:`Blobs`,required:!0,xmlName:`Blobs`,xmlIsWrapped:!0,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`FilterBlobItem`}}}},continuationToken:{serializedName:`NextMarker`,xmlName:`NextMarker`,type:{name:`String`}}}}},Jm={serializedName:`FilterBlobItem`,xmlName:`Blob`,type:{name:`Composite`,className:`FilterBlobItem`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,type:{name:`String`}},tags:{serializedName:`Tags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`}}}}},Ym={serializedName:`BlobTags`,xmlName:`Tags`,type:{name:`Composite`,className:`BlobTags`,modelProperties:{blobTagSet:{serializedName:`BlobTagSet`,required:!0,xmlName:`TagSet`,xmlIsWrapped:!0,xmlElementName:`Tag`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobTag`}}}}}}},Xm={serializedName:`BlobTag`,xmlName:`Tag`,type:{name:`Composite`,className:`BlobTag`,modelProperties:{key:{serializedName:`Key`,required:!0,xmlName:`Key`,type:{name:`String`}},value:{serializedName:`Value`,required:!0,xmlName:`Value`,type:{name:`String`}}}}},Zm={serializedName:`SignedIdentifier`,xmlName:`SignedIdentifier`,type:{name:`Composite`,className:`SignedIdentifier`,modelProperties:{id:{serializedName:`Id`,required:!0,xmlName:`Id`,type:{name:`String`}},accessPolicy:{serializedName:`AccessPolicy`,xmlName:`AccessPolicy`,type:{name:`Composite`,className:`AccessPolicy`}}}}},Qm={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`}}}}},$m={serializedName:`ListBlobsFlatSegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsFlatSegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,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`}}}}},eh={serializedName:`BlobFlatListSegment`,xmlName:`Blobs`,type:{name:`Composite`,className:`BlobFlatListSegment`,modelProperties:{blobItems:{serializedName:`BlobItems`,required:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},th={serializedName:`BlobItemInternal`,xmlName:`Blob`,type:{name:`Composite`,className:`BlobItemInternal`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}},deleted:{serializedName:`Deleted`,required:!0,xmlName:`Deleted`,type:{name:`Boolean`}},snapshot:{serializedName:`Snapshot`,required:!0,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`}}}}},nh={serializedName:`BlobName`,type:{name:`Composite`,className:`BlobName`,modelProperties:{encoded:{serializedName:`Encoded`,xmlName:`Encoded`,xmlIsAttribute:!0,type:{name:`Boolean`}},content:{serializedName:`content`,xmlName:`content`,xmlIsMsText:!0,type:{name:`String`}}}}},rh={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:!0,xmlName:`Last-Modified`,type:{name:`DateTimeRfc1123`}},etag:{serializedName:`Etag`,required:!0,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`}}}}},ih={serializedName:`ListBlobsHierarchySegmentResponse`,xmlName:`EnumerationResults`,type:{name:`Composite`,className:`ListBlobsHierarchySegmentResponse`,modelProperties:{serviceEndpoint:{serializedName:`ServiceEndpoint`,required:!0,xmlName:`ServiceEndpoint`,xmlIsAttribute:!0,type:{name:`String`}},containerName:{serializedName:`ContainerName`,required:!0,xmlName:`ContainerName`,xmlIsAttribute:!0,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`}}}}},ah={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:!0,xmlName:`BlobItems`,xmlElementName:`Blob`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`BlobItemInternal`}}}}}}},oh={serializedName:`BlobPrefix`,type:{name:`Composite`,className:`BlobPrefix`,modelProperties:{name:{serializedName:`Name`,xmlName:`Name`,type:{name:`Composite`,className:`BlobName`}}}}},sh={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`}}}}}}},ch={serializedName:`BlockList`,type:{name:`Composite`,className:`BlockList`,modelProperties:{committedBlocks:{serializedName:`CommittedBlocks`,xmlName:`CommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}},uncommittedBlocks:{serializedName:`UncommittedBlocks`,xmlName:`UncommittedBlocks`,xmlIsWrapped:!0,xmlElementName:`Block`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`Block`}}}}}}},lh={serializedName:`Block`,type:{name:`Composite`,className:`Block`,modelProperties:{name:{serializedName:`Name`,required:!0,xmlName:`Name`,type:{name:`String`}},size:{serializedName:`Size`,required:!0,xmlName:`Size`,type:{name:`Number`}}}}},uh={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`}}}}},dh={serializedName:`PageRange`,xmlName:`PageRange`,type:{name:`Composite`,className:`PageRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},fh={serializedName:`ClearRange`,xmlName:`ClearRange`,type:{name:`Composite`,className:`ClearRange`,modelProperties:{start:{serializedName:`Start`,required:!0,xmlName:`Start`,type:{name:`Number`}},end:{serializedName:`End`,required:!0,xmlName:`End`,type:{name:`Number`}}}}},ph={serializedName:`QueryRequest`,xmlName:`QueryRequest`,type:{name:`Composite`,className:`QueryRequest`,modelProperties:{queryType:{serializedName:`QueryType`,required:!0,xmlName:`QueryType`,type:{name:`String`}},expression:{serializedName:`Expression`,required:!0,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`}}}}},mh={serializedName:`QuerySerialization`,type:{name:`Composite`,className:`QuerySerialization`,modelProperties:{format:{serializedName:`Format`,xmlName:`Format`,type:{name:`Composite`,className:`QueryFormat`}}}}},hh={serializedName:`QueryFormat`,type:{name:`Composite`,className:`QueryFormat`,modelProperties:{type:{serializedName:`Type`,required:!0,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`}}}}}}},gh={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`}}}}},_h={serializedName:`JsonTextConfiguration`,xmlName:`JsonTextConfiguration`,type:{name:`Composite`,className:`JsonTextConfiguration`,modelProperties:{recordSeparator:{serializedName:`RecordSeparator`,xmlName:`RecordSeparator`,type:{name:`String`}}}}},vh={serializedName:`ArrowConfiguration`,xmlName:`ArrowConfiguration`,type:{name:`Composite`,className:`ArrowConfiguration`,modelProperties:{schema:{serializedName:`Schema`,required:!0,xmlName:`Schema`,xmlIsWrapped:!0,xmlElementName:`Field`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`ArrowField`}}}}}}},yh={serializedName:`ArrowField`,xmlName:`Field`,type:{name:`Composite`,className:`ArrowField`,modelProperties:{type:{serializedName:`Type`,required:!0,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`}}}}},bh={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`}}}}},xh={serializedName:`Service_setPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceSetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sh={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`}}}}},Ch={serializedName:`Service_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wh={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`}}}}},Th={serializedName:`Service_getStatisticsExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetStatisticsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Eh={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`}}}}},Dh={serializedName:`Service_listContainersSegmentExceptionHeaders`,type:{name:`Composite`,className:`ServiceListContainersSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Oh={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`}}}}},kh={serializedName:`Service_getUserDelegationKeyExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetUserDelegationKeyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ah={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`}}}}},jh={serializedName:`Service_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ServiceGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mh={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`}}}}},Nh={serializedName:`Service_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ServiceSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ph={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`}}}}},Fh={serializedName:`Service_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ServiceFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ih={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`}}}}},Lh={serializedName:`Container_createExceptionHeaders`,type:{name:`Composite`,className:`ContainerCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rh={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`}}}}},zh={serializedName:`Container_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bh={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`}}}}},Vh={serializedName:`Container_deleteExceptionHeaders`,type:{name:`Composite`,className:`ContainerDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hh={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`}}}}},Uh={serializedName:`Container_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Wh={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`}}}}},Gh={serializedName:`Container_getAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kh={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`}}}}},qh={serializedName:`Container_setAccessPolicyExceptionHeaders`,type:{name:`Composite`,className:`ContainerSetAccessPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Jh={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`}}}}},Yh={serializedName:`Container_restoreExceptionHeaders`,type:{name:`Composite`,className:`ContainerRestoreExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Xh={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`}}}}},Zh={serializedName:`Container_renameExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenameExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Qh={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`}}}}},$h={serializedName:`Container_submitBatchExceptionHeaders`,type:{name:`Composite`,className:`ContainerSubmitBatchExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},eg={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`}}}}},tg={serializedName:`Container_filterBlobsExceptionHeaders`,type:{name:`Composite`,className:`ContainerFilterBlobsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ng={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`}}}}},rg={serializedName:`Container_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ig={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`}}}}},ag={serializedName:`Container_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},og={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`}}}}},sg={serializedName:`Container_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},cg={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`}}}}},lg={serializedName:`Container_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},ug={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`}}}}},dg={serializedName:`Container_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`ContainerChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},fg={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`}}}}},pg={serializedName:`Container_listBlobFlatSegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobFlatSegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},mg={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`}}}}},hg={serializedName:`Container_listBlobHierarchySegmentExceptionHeaders`,type:{name:`Composite`,className:`ContainerListBlobHierarchySegmentExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},gg={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`}}}}},_g={serializedName:`Container_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`ContainerGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},vg={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`}}}}},yg={serializedName:`Blob_downloadExceptionHeaders`,type:{name:`Composite`,className:`BlobDownloadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},bg={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`}}}}},xg={serializedName:`Blob_getPropertiesExceptionHeaders`,type:{name:`Composite`,className:`BlobGetPropertiesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Sg={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`}}}}},Cg={serializedName:`Blob_deleteExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},wg={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`}}}}},Tg={serializedName:`Blob_undeleteExceptionHeaders`,type:{name:`Composite`,className:`BlobUndeleteExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Eg={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`}}}}},Dg={serializedName:`Blob_setExpiryExceptionHeaders`,type:{name:`Composite`,className:`BlobSetExpiryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Og={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`}}}}},kg={serializedName:`Blob_setHttpHeadersExceptionHeaders`,type:{name:`Composite`,className:`BlobSetHttpHeadersExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ag={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`]}}}}},jg={serializedName:`Blob_setImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobSetImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Mg={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`}}}}},Ng={serializedName:`Blob_deleteImmutabilityPolicyExceptionHeaders`,type:{name:`Composite`,className:`BlobDeleteImmutabilityPolicyExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Pg={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`}}}}},Fg={serializedName:`Blob_setLegalHoldExceptionHeaders`,type:{name:`Composite`,className:`BlobSetLegalHoldExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Ig={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`}}}}},Lg={serializedName:`Blob_setMetadataExceptionHeaders`,type:{name:`Composite`,className:`BlobSetMetadataExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Rg={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`}}}}},zg={serializedName:`Blob_acquireLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobAcquireLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Bg={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`}}}}},Vg={serializedName:`Blob_releaseLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobReleaseLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Hg={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`}}}}},Ug={serializedName:`Blob_renewLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobRenewLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Wg={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`}}}}},Gg={serializedName:`Blob_changeLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobChangeLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Kg={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`}}}}},qg={serializedName:`Blob_breakLeaseExceptionHeaders`,type:{name:`Composite`,className:`BlobBreakLeaseExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Jg={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`}}}}},Yg={serializedName:`Blob_createSnapshotExceptionHeaders`,type:{name:`Composite`,className:`BlobCreateSnapshotExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},Xg={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`}}}}},Zg={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`}}}}},Qg={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:!0,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`}}}}},$g={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`}}}}},e_={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`}}}}},t_={serializedName:`Blob_abortCopyFromURLExceptionHeaders`,type:{name:`Composite`,className:`BlobAbortCopyFromURLExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},n_={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`}}}}},r_={serializedName:`Blob_setTierExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTierExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},i_={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`}}}}},a_={serializedName:`Blob_getAccountInfoExceptionHeaders`,type:{name:`Composite`,className:`BlobGetAccountInfoExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},o_={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`}}}}},s_={serializedName:`Blob_queryExceptionHeaders`,type:{name:`Composite`,className:`BlobQueryExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},c_={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`}}}}},l_={serializedName:`Blob_getTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobGetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},u_={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`}}}}},d_={serializedName:`Blob_setTagsExceptionHeaders`,type:{name:`Composite`,className:`BlobSetTagsExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},f_={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`}}}}},p_={serializedName:`PageBlob_createExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},m_={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`}}}}},h_={serializedName:`PageBlob_uploadPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUploadPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},g_={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`}}}}},__={serializedName:`PageBlob_clearPagesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobClearPagesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},v_={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`}}}}},y_={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`}}}}},b_={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`}}}}},x_={serializedName:`PageBlob_getPageRangesExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},S_={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`}}}}},C_={serializedName:`PageBlob_getPageRangesDiffExceptionHeaders`,type:{name:`Composite`,className:`PageBlobGetPageRangesDiffExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},w_={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`}}}}},T_={serializedName:`PageBlob_resizeExceptionHeaders`,type:{name:`Composite`,className:`PageBlobResizeExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},E_={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`}}}}},D_={serializedName:`PageBlob_updateSequenceNumberExceptionHeaders`,type:{name:`Composite`,className:`PageBlobUpdateSequenceNumberExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},O_={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`}}}}},k_={serializedName:`PageBlob_copyIncrementalExceptionHeaders`,type:{name:`Composite`,className:`PageBlobCopyIncrementalExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},A_={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`}}}}},j_={serializedName:`AppendBlob_createExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobCreateExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},M_={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`}}}}},N_={serializedName:`AppendBlob_appendBlockExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobAppendBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},P_={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`}}}}},F_={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`}}}}},I_={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`}}}}},L_={serializedName:`AppendBlob_sealExceptionHeaders`,type:{name:`Composite`,className:`AppendBlobSealExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},R_={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`}}}}},z_={serializedName:`BlockBlob_uploadExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobUploadExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},B_={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`}}}}},V_={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`}}}}},H_={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`}}}}},U_={serializedName:`BlockBlob_stageBlockExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobStageBlockExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},W_={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`}}}}},G_={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`}}}}},K_={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`}}}}},q_={serializedName:`BlockBlob_commitBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobCommitBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},J_={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`}}}}},Y_={serializedName:`BlockBlob_getBlockListExceptionHeaders`,type:{name:`Composite`,className:`BlockBlobGetBlockListExceptionHeaders`,modelProperties:{errorCode:{serializedName:`x-ms-error-code`,xmlName:`x-ms-error-code`,type:{name:`String`}}}}},X_={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},Z_={parameterPath:`blobServiceProperties`,mapper:Pm},Q_={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},K={parameterPath:`url`,mapper:{serializedName:`url`,required:!0,xmlName:`url`,type:{name:`String`}},skipEncoding:!0},$_={parameterPath:`restype`,mapper:{defaultValue:`service`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},ev={parameterPath:`comp`,mapper:{defaultValue:`properties`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},q={parameterPath:[`options`,`timeoutInSeconds`],mapper:{constraints:{InclusiveMinimum:0},serializedName:`timeout`,xmlName:`timeout`,type:{name:`Number`}}},J={parameterPath:`version`,mapper:{defaultValue:`2026-02-06`,isConstant:!0,serializedName:`x-ms-version`,type:{name:`String`}}},Y={parameterPath:[`options`,`requestId`],mapper:{serializedName:`x-ms-client-request-id`,xmlName:`x-ms-client-request-id`,type:{name:`String`}}},X={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},tv={parameterPath:`comp`,mapper:{defaultValue:`stats`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},nv={parameterPath:`comp`,mapper:{defaultValue:`list`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},rv={parameterPath:[`options`,`prefix`],mapper:{serializedName:`prefix`,xmlName:`prefix`,type:{name:`String`}}},iv={parameterPath:[`options`,`marker`],mapper:{serializedName:`marker`,xmlName:`marker`,type:{name:`String`}}},av={parameterPath:[`options`,`maxPageSize`],mapper:{constraints:{InclusiveMinimum:1},serializedName:`maxresults`,xmlName:`maxresults`,type:{name:`Number`}}},ov={parameterPath:[`options`,`include`],mapper:{serializedName:`include`,xmlName:`include`,xmlElementName:`ListContainersIncludeType`,type:{name:`Sequence`,element:{type:{name:`Enum`,allowedValues:[`metadata`,`deleted`,`system`]}}}},collectionFormat:`CSV`},sv={parameterPath:`keyInfo`,mapper:Gm},cv={parameterPath:`comp`,mapper:{defaultValue:`userdelegationkey`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},lv={parameterPath:`restype`,mapper:{defaultValue:`account`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},uv={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},dv={parameterPath:`comp`,mapper:{defaultValue:`batch`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},fv={parameterPath:`contentLength`,mapper:{serializedName:`Content-Length`,required:!0,xmlName:`Content-Length`,type:{name:`Number`}}},pv={parameterPath:`multipartContentType`,mapper:{serializedName:`Content-Type`,required:!0,xmlName:`Content-Type`,type:{name:`String`}}},mv={parameterPath:`comp`,mapper:{defaultValue:`blobs`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},hv={parameterPath:[`options`,`where`],mapper:{serializedName:`where`,xmlName:`where`,type:{name:`String`}}},gv={parameterPath:`restype`,mapper:{defaultValue:`container`,isConstant:!0,serializedName:`restype`,type:{name:`String`}}},_v={parameterPath:[`options`,`metadata`],mapper:{serializedName:`x-ms-meta`,xmlName:`x-ms-meta`,headerCollectionPrefix:`x-ms-meta-`,type:{name:`Dictionary`,value:{type:{name:`String`}}}}},vv={parameterPath:[`options`,`access`],mapper:{serializedName:`x-ms-blob-public-access`,xmlName:`x-ms-blob-public-access`,type:{name:`Enum`,allowedValues:[`container`,`blob`]}}},yv={parameterPath:[`options`,`containerEncryptionScope`,`defaultEncryptionScope`],mapper:{serializedName:`x-ms-default-encryption-scope`,xmlName:`x-ms-default-encryption-scope`,type:{name:`String`}}},bv={parameterPath:[`options`,`containerEncryptionScope`,`preventEncryptionScopeOverride`],mapper:{serializedName:`x-ms-deny-encryption-scope-override`,xmlName:`x-ms-deny-encryption-scope-override`,type:{name:`Boolean`}}},xv={parameterPath:[`options`,`leaseAccessConditions`,`leaseId`],mapper:{serializedName:`x-ms-lease-id`,xmlName:`x-ms-lease-id`,type:{name:`String`}}},Sv={parameterPath:[`options`,`modifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`If-Modified-Since`,xmlName:`If-Modified-Since`,type:{name:`DateTimeRfc1123`}}},Cv={parameterPath:[`options`,`modifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`If-Unmodified-Since`,xmlName:`If-Unmodified-Since`,type:{name:`DateTimeRfc1123`}}},wv={parameterPath:`comp`,mapper:{defaultValue:`metadata`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Tv={parameterPath:`comp`,mapper:{defaultValue:`acl`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ev={parameterPath:[`options`,`containerAcl`],mapper:{serializedName:`containerAcl`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`,type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}}}},Dv={parameterPath:`comp`,mapper:{defaultValue:`undelete`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ov={parameterPath:[`options`,`deletedContainerName`],mapper:{serializedName:`x-ms-deleted-container-name`,xmlName:`x-ms-deleted-container-name`,type:{name:`String`}}},kv={parameterPath:[`options`,`deletedContainerVersion`],mapper:{serializedName:`x-ms-deleted-container-version`,xmlName:`x-ms-deleted-container-version`,type:{name:`String`}}},Av={parameterPath:`comp`,mapper:{defaultValue:`rename`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},jv={parameterPath:`sourceContainerName`,mapper:{serializedName:`x-ms-source-container-name`,required:!0,xmlName:`x-ms-source-container-name`,type:{name:`String`}}},Mv={parameterPath:[`options`,`sourceLeaseId`],mapper:{serializedName:`x-ms-source-lease-id`,xmlName:`x-ms-source-lease-id`,type:{name:`String`}}},Nv={parameterPath:`comp`,mapper:{defaultValue:`lease`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Pv={parameterPath:`action`,mapper:{defaultValue:`acquire`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Fv={parameterPath:[`options`,`duration`],mapper:{serializedName:`x-ms-lease-duration`,xmlName:`x-ms-lease-duration`,type:{name:`Number`}}},Iv={parameterPath:[`options`,`proposedLeaseId`],mapper:{serializedName:`x-ms-proposed-lease-id`,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},Lv={parameterPath:`action`,mapper:{defaultValue:`release`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Rv={parameterPath:`leaseId`,mapper:{serializedName:`x-ms-lease-id`,required:!0,xmlName:`x-ms-lease-id`,type:{name:`String`}}},zv={parameterPath:`action`,mapper:{defaultValue:`renew`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Bv={parameterPath:`action`,mapper:{defaultValue:`break`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Vv={parameterPath:[`options`,`breakPeriod`],mapper:{serializedName:`x-ms-lease-break-period`,xmlName:`x-ms-lease-break-period`,type:{name:`Number`}}},Hv={parameterPath:`action`,mapper:{defaultValue:`change`,isConstant:!0,serializedName:`x-ms-lease-action`,type:{name:`String`}}},Uv={parameterPath:`proposedLeaseId`,mapper:{serializedName:`x-ms-proposed-lease-id`,required:!0,xmlName:`x-ms-proposed-lease-id`,type:{name:`String`}}},Wv={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`},Gv={parameterPath:[`options`,`startFrom`],mapper:{serializedName:`startFrom`,xmlName:`startFrom`,type:{name:`String`}}},Kv={parameterPath:`delimiter`,mapper:{serializedName:`delimiter`,required:!0,xmlName:`delimiter`,type:{name:`String`}}},qv={parameterPath:[`options`,`snapshot`],mapper:{serializedName:`snapshot`,xmlName:`snapshot`,type:{name:`String`}}},Jv={parameterPath:[`options`,`versionId`],mapper:{serializedName:`versionid`,xmlName:`versionid`,type:{name:`String`}}},Yv={parameterPath:[`options`,`range`],mapper:{serializedName:`x-ms-range`,xmlName:`x-ms-range`,type:{name:`String`}}},Xv={parameterPath:[`options`,`rangeGetContentMD5`],mapper:{serializedName:`x-ms-range-get-content-md5`,xmlName:`x-ms-range-get-content-md5`,type:{name:`Boolean`}}},Zv={parameterPath:[`options`,`rangeGetContentCRC64`],mapper:{serializedName:`x-ms-range-get-content-crc64`,xmlName:`x-ms-range-get-content-crc64`,type:{name:`Boolean`}}},Qv={parameterPath:[`options`,`cpkInfo`,`encryptionKey`],mapper:{serializedName:`x-ms-encryption-key`,xmlName:`x-ms-encryption-key`,type:{name:`String`}}},$v={parameterPath:[`options`,`cpkInfo`,`encryptionKeySha256`],mapper:{serializedName:`x-ms-encryption-key-sha256`,xmlName:`x-ms-encryption-key-sha256`,type:{name:`String`}}},ey={parameterPath:[`options`,`cpkInfo`,`encryptionAlgorithm`],mapper:{serializedName:`x-ms-encryption-algorithm`,xmlName:`x-ms-encryption-algorithm`,type:{name:`String`}}},ty={parameterPath:[`options`,`modifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`If-Match`,xmlName:`If-Match`,type:{name:`String`}}},ny={parameterPath:[`options`,`modifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`If-None-Match`,xmlName:`If-None-Match`,type:{name:`String`}}},ry={parameterPath:[`options`,`modifiedAccessConditions`,`ifTags`],mapper:{serializedName:`x-ms-if-tags`,xmlName:`x-ms-if-tags`,type:{name:`String`}}},iy={parameterPath:[`options`,`deleteSnapshots`],mapper:{serializedName:`x-ms-delete-snapshots`,xmlName:`x-ms-delete-snapshots`,type:{name:`Enum`,allowedValues:[`include`,`only`]}}},ay={parameterPath:[`options`,`blobDeleteType`],mapper:{serializedName:`deletetype`,xmlName:`deletetype`,type:{name:`String`}}},oy={parameterPath:`comp`,mapper:{defaultValue:`expiry`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},sy={parameterPath:`expiryOptions`,mapper:{serializedName:`x-ms-expiry-option`,required:!0,xmlName:`x-ms-expiry-option`,type:{name:`String`}}},cy={parameterPath:[`options`,`expiresOn`],mapper:{serializedName:`x-ms-expiry-time`,xmlName:`x-ms-expiry-time`,type:{name:`String`}}},ly={parameterPath:[`options`,`blobHttpHeaders`,`blobCacheControl`],mapper:{serializedName:`x-ms-blob-cache-control`,xmlName:`x-ms-blob-cache-control`,type:{name:`String`}}},uy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentType`],mapper:{serializedName:`x-ms-blob-content-type`,xmlName:`x-ms-blob-content-type`,type:{name:`String`}}},dy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentMD5`],mapper:{serializedName:`x-ms-blob-content-md5`,xmlName:`x-ms-blob-content-md5`,type:{name:`ByteArray`}}},fy={parameterPath:[`options`,`blobHttpHeaders`,`blobContentEncoding`],mapper:{serializedName:`x-ms-blob-content-encoding`,xmlName:`x-ms-blob-content-encoding`,type:{name:`String`}}},py={parameterPath:[`options`,`blobHttpHeaders`,`blobContentLanguage`],mapper:{serializedName:`x-ms-blob-content-language`,xmlName:`x-ms-blob-content-language`,type:{name:`String`}}},my={parameterPath:[`options`,`blobHttpHeaders`,`blobContentDisposition`],mapper:{serializedName:`x-ms-blob-content-disposition`,xmlName:`x-ms-blob-content-disposition`,type:{name:`String`}}},hy={parameterPath:`comp`,mapper:{defaultValue:`immutabilityPolicies`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gy={parameterPath:[`options`,`immutabilityPolicyExpiry`],mapper:{serializedName:`x-ms-immutability-policy-until-date`,xmlName:`x-ms-immutability-policy-until-date`,type:{name:`DateTimeRfc1123`}}},_y={parameterPath:[`options`,`immutabilityPolicyMode`],mapper:{serializedName:`x-ms-immutability-policy-mode`,xmlName:`x-ms-immutability-policy-mode`,type:{name:`Enum`,allowedValues:[`Mutable`,`Unlocked`,`Locked`]}}},vy={parameterPath:`comp`,mapper:{defaultValue:`legalhold`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},yy={parameterPath:`legalHold`,mapper:{serializedName:`x-ms-legal-hold`,required:!0,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},by={parameterPath:[`options`,`encryptionScope`],mapper:{serializedName:`x-ms-encryption-scope`,xmlName:`x-ms-encryption-scope`,type:{name:`String`}}},xy={parameterPath:`comp`,mapper:{defaultValue:`snapshot`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Sy={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`]}}},Cy={parameterPath:[`options`,`rehydratePriority`],mapper:{serializedName:`x-ms-rehydrate-priority`,xmlName:`x-ms-rehydrate-priority`,type:{name:`Enum`,allowedValues:[`High`,`Standard`]}}},wy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfModifiedSince`],mapper:{serializedName:`x-ms-source-if-modified-since`,xmlName:`x-ms-source-if-modified-since`,type:{name:`DateTimeRfc1123`}}},Ty={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfUnmodifiedSince`],mapper:{serializedName:`x-ms-source-if-unmodified-since`,xmlName:`x-ms-source-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},Ey={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfMatch`],mapper:{serializedName:`x-ms-source-if-match`,xmlName:`x-ms-source-if-match`,type:{name:`String`}}},Dy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfNoneMatch`],mapper:{serializedName:`x-ms-source-if-none-match`,xmlName:`x-ms-source-if-none-match`,type:{name:`String`}}},Oy={parameterPath:[`options`,`sourceModifiedAccessConditions`,`sourceIfTags`],mapper:{serializedName:`x-ms-source-if-tags`,xmlName:`x-ms-source-if-tags`,type:{name:`String`}}},ky={parameterPath:`copySource`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},Ay={parameterPath:[`options`,`blobTagsString`],mapper:{serializedName:`x-ms-tags`,xmlName:`x-ms-tags`,type:{name:`String`}}},jy={parameterPath:[`options`,`sealBlob`],mapper:{serializedName:`x-ms-seal-blob`,xmlName:`x-ms-seal-blob`,type:{name:`Boolean`}}},My={parameterPath:[`options`,`legalHold`],mapper:{serializedName:`x-ms-legal-hold`,xmlName:`x-ms-legal-hold`,type:{name:`Boolean`}}},Ny={parameterPath:`xMsRequiresSync`,mapper:{defaultValue:`true`,isConstant:!0,serializedName:`x-ms-requires-sync`,type:{name:`String`}}},Py={parameterPath:[`options`,`sourceContentMD5`],mapper:{serializedName:`x-ms-source-content-md5`,xmlName:`x-ms-source-content-md5`,type:{name:`ByteArray`}}},Fy={parameterPath:[`options`,`copySourceAuthorization`],mapper:{serializedName:`x-ms-copy-source-authorization`,xmlName:`x-ms-copy-source-authorization`,type:{name:`String`}}},Iy={parameterPath:[`options`,`copySourceTags`],mapper:{serializedName:`x-ms-copy-source-tag-option`,xmlName:`x-ms-copy-source-tag-option`,type:{name:`Enum`,allowedValues:[`REPLACE`,`COPY`]}}},Ly={parameterPath:[`options`,`fileRequestIntent`],mapper:{serializedName:`x-ms-file-request-intent`,xmlName:`x-ms-file-request-intent`,type:{name:`String`}}},Ry={parameterPath:`comp`,mapper:{defaultValue:`copy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},zy={parameterPath:`copyActionAbortConstant`,mapper:{defaultValue:`abort`,isConstant:!0,serializedName:`x-ms-copy-action`,type:{name:`String`}}},By={parameterPath:`copyId`,mapper:{serializedName:`copyid`,required:!0,xmlName:`copyid`,type:{name:`String`}}},Vy={parameterPath:`comp`,mapper:{defaultValue:`tier`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Hy={parameterPath:`tier`,mapper:{serializedName:`x-ms-access-tier`,required:!0,xmlName:`x-ms-access-tier`,type:{name:`Enum`,allowedValues:[`P4`,`P6`,`P10`,`P15`,`P20`,`P30`,`P40`,`P50`,`P60`,`P70`,`P80`,`Hot`,`Cool`,`Archive`,`Cold`]}}},Uy={parameterPath:[`options`,`queryRequest`],mapper:ph},Wy={parameterPath:`comp`,mapper:{defaultValue:`query`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Gy={parameterPath:`comp`,mapper:{defaultValue:`tags`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Ky={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifModifiedSince`],mapper:{serializedName:`x-ms-blob-if-modified-since`,xmlName:`x-ms-blob-if-modified-since`,type:{name:`DateTimeRfc1123`}}},qy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifUnmodifiedSince`],mapper:{serializedName:`x-ms-blob-if-unmodified-since`,xmlName:`x-ms-blob-if-unmodified-since`,type:{name:`DateTimeRfc1123`}}},Jy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifMatch`],mapper:{serializedName:`x-ms-blob-if-match`,xmlName:`x-ms-blob-if-match`,type:{name:`String`}}},Yy={parameterPath:[`options`,`blobModifiedAccessConditions`,`ifNoneMatch`],mapper:{serializedName:`x-ms-blob-if-none-match`,xmlName:`x-ms-blob-if-none-match`,type:{name:`String`}}},Xy={parameterPath:[`options`,`tags`],mapper:Ym},Zy={parameterPath:[`options`,`transactionalContentMD5`],mapper:{serializedName:`Content-MD5`,xmlName:`Content-MD5`,type:{name:`ByteArray`}}},Qy={parameterPath:[`options`,`transactionalContentCrc64`],mapper:{serializedName:`x-ms-content-crc64`,xmlName:`x-ms-content-crc64`,type:{name:`ByteArray`}}},$y={parameterPath:`blobType`,mapper:{defaultValue:`PageBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},eb={parameterPath:`blobContentLength`,mapper:{serializedName:`x-ms-blob-content-length`,required:!0,xmlName:`x-ms-blob-content-length`,type:{name:`Number`}}},tb={parameterPath:[`options`,`blobSequenceNumber`],mapper:{defaultValue:0,serializedName:`x-ms-blob-sequence-number`,xmlName:`x-ms-blob-sequence-number`,type:{name:`Number`}}},nb={parameterPath:[`options`,`contentType`],mapper:{defaultValue:`application/octet-stream`,isConstant:!0,serializedName:`Content-Type`,type:{name:`String`}}},rb={parameterPath:`body`,mapper:{serializedName:`body`,required:!0,xmlName:`body`,type:{name:`Stream`}}},ib={parameterPath:`accept`,mapper:{defaultValue:`application/xml`,isConstant:!0,serializedName:`Accept`,type:{name:`String`}}},ab={parameterPath:`comp`,mapper:{defaultValue:`page`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},ob={parameterPath:`pageWrite`,mapper:{defaultValue:`update`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},sb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThanOrEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-le`,xmlName:`x-ms-if-sequence-number-le`,type:{name:`Number`}}},cb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberLessThan`],mapper:{serializedName:`x-ms-if-sequence-number-lt`,xmlName:`x-ms-if-sequence-number-lt`,type:{name:`Number`}}},lb={parameterPath:[`options`,`sequenceNumberAccessConditions`,`ifSequenceNumberEqualTo`],mapper:{serializedName:`x-ms-if-sequence-number-eq`,xmlName:`x-ms-if-sequence-number-eq`,type:{name:`Number`}}},ub={parameterPath:`pageWrite`,mapper:{defaultValue:`clear`,isConstant:!0,serializedName:`x-ms-page-write`,type:{name:`String`}}},db={parameterPath:`sourceUrl`,mapper:{serializedName:`x-ms-copy-source`,required:!0,xmlName:`x-ms-copy-source`,type:{name:`String`}}},fb={parameterPath:`sourceRange`,mapper:{serializedName:`x-ms-source-range`,required:!0,xmlName:`x-ms-source-range`,type:{name:`String`}}},pb={parameterPath:[`options`,`sourceContentCrc64`],mapper:{serializedName:`x-ms-source-content-crc64`,xmlName:`x-ms-source-content-crc64`,type:{name:`ByteArray`}}},mb={parameterPath:`range`,mapper:{serializedName:`x-ms-range`,required:!0,xmlName:`x-ms-range`,type:{name:`String`}}},hb={parameterPath:`comp`,mapper:{defaultValue:`pagelist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},gb={parameterPath:[`options`,`prevsnapshot`],mapper:{serializedName:`prevsnapshot`,xmlName:`prevsnapshot`,type:{name:`String`}}},_b={parameterPath:[`options`,`prevSnapshotUrl`],mapper:{serializedName:`x-ms-previous-snapshot-url`,xmlName:`x-ms-previous-snapshot-url`,type:{name:`String`}}},vb={parameterPath:`sequenceNumberAction`,mapper:{serializedName:`x-ms-sequence-number-action`,required:!0,xmlName:`x-ms-sequence-number-action`,type:{name:`Enum`,allowedValues:[`max`,`update`,`increment`]}}},yb={parameterPath:`comp`,mapper:{defaultValue:`incrementalcopy`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},bb={parameterPath:`blobType`,mapper:{defaultValue:`AppendBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},xb={parameterPath:`comp`,mapper:{defaultValue:`appendblock`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Sb={parameterPath:[`options`,`appendPositionAccessConditions`,`maxSize`],mapper:{serializedName:`x-ms-blob-condition-maxsize`,xmlName:`x-ms-blob-condition-maxsize`,type:{name:`Number`}}},Cb={parameterPath:[`options`,`appendPositionAccessConditions`,`appendPosition`],mapper:{serializedName:`x-ms-blob-condition-appendpos`,xmlName:`x-ms-blob-condition-appendpos`,type:{name:`Number`}}},wb={parameterPath:[`options`,`sourceRange`],mapper:{serializedName:`x-ms-source-range`,xmlName:`x-ms-source-range`,type:{name:`String`}}},Tb={parameterPath:`comp`,mapper:{defaultValue:`seal`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Eb={parameterPath:`blobType`,mapper:{defaultValue:`BlockBlob`,isConstant:!0,serializedName:`x-ms-blob-type`,type:{name:`String`}}},Db={parameterPath:[`options`,`copySourceBlobProperties`],mapper:{serializedName:`x-ms-copy-source-blob-properties`,xmlName:`x-ms-copy-source-blob-properties`,type:{name:`Boolean`}}},Ob={parameterPath:`comp`,mapper:{defaultValue:`block`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},kb={parameterPath:`blockId`,mapper:{serializedName:`blockid`,required:!0,xmlName:`blockid`,type:{name:`String`}}},Ab={parameterPath:`blocks`,mapper:sh},jb={parameterPath:`comp`,mapper:{defaultValue:`blocklist`,isConstant:!0,serializedName:`comp`,type:{name:`String`}}},Mb={parameterPath:`listType`,mapper:{defaultValue:`committed`,serializedName:`blocklisttype`,required:!0,xmlName:`blocklisttype`,type:{name:`Enum`,allowedValues:[`committed`,`uncommitted`,`all`]}}};var Nb=class{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},Fb)}getProperties(e){return this.client.sendOperationRequest({options:e},Ib)}getStatistics(e){return this.client.sendOperationRequest({options:e},Lb)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Rb)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},zb)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Bb)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},Vb)}filterBlobs(e){return this.client.sendOperationRequest({options:e},Hb)}};const Pb=ml(Nm,!0),Fb={path:`/`,httpMethod:`PUT`,responses:{202:{headersMapper:bh},default:{bodyMapper:G,headersMapper:xh}},requestBody:Z_,queryParameters:[$_,ev,q],urlParameters:[K],headerParameters:[X_,Q_,J,Y],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Ib={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Pm,headersMapper:Sh},default:{bodyMapper:G,headersMapper:Ch}},queryParameters:[$_,ev,q],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Pb},Lb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Bm,headersMapper:wh},default:{bodyMapper:G,headersMapper:Th}},queryParameters:[$_,q,tv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Pb},Rb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:Hm,headersMapper:Eh},default:{bodyMapper:G,headersMapper:Dh}},queryParameters:[q,nv,rv,iv,av,ov],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Pb},zb={path:`/`,httpMethod:`POST`,responses:{200:{bodyMapper:Km,headersMapper:Oh},default:{bodyMapper:G,headersMapper:kh}},requestBody:sv,queryParameters:[$_,q,cv],urlParameters:[K],headerParameters:[X_,Q_,J,Y],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Bb={path:`/`,httpMethod:`GET`,responses:{200:{headersMapper:Ah},default:{bodyMapper:G,headersMapper:jh}},queryParameters:[ev,q,lv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Pb},Vb={path:`/`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Mh},default:{bodyMapper:G,headersMapper:Nh}},requestBody:uv,queryParameters:[q,dv],urlParameters:[K],headerParameters:[Q_,J,Y,fv,pv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Pb},Hb={path:`/`,httpMethod:`GET`,responses:{200:{bodyMapper:qm,headersMapper:Ph},default:{bodyMapper:G,headersMapper:Fh}},queryParameters:[q,iv,av,mv,hv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Pb};var Ub=class{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Gb)}getProperties(e){return this.client.sendOperationRequest({options:e},Kb)}delete(e){return this.client.sendOperationRequest({options:e},qb)}setMetadata(e){return this.client.sendOperationRequest({options:e},Jb)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Yb)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Xb)}restore(e){return this.client.sendOperationRequest({options:e},Zb)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},Qb)}submitBatch(e,t,n,r){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:r},$b)}filterBlobs(e){return this.client.sendOperationRequest({options:e},ex)}acquireLease(e){return this.client.sendOperationRequest({options:e},tx)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},nx)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},rx)}breakLease(e){return this.client.sendOperationRequest({options:e},ix)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},ax)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},ox)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},sx)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},cx)}};const Wb=ml(Nm,!0),Gb={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:Ih},default:{bodyMapper:G,headersMapper:Lh}},queryParameters:[q,gv],urlParameters:[K],headerParameters:[J,Y,X,_v,vv,yv,bv],isXML:!0,serializer:Wb},Kb={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:Rh},default:{bodyMapper:G,headersMapper:zh}},queryParameters:[q,gv],urlParameters:[K],headerParameters:[J,Y,X,xv],isXML:!0,serializer:Wb},qb={path:`/{containerName}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Bh},default:{bodyMapper:G,headersMapper:Vh}},queryParameters:[q,gv],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv],isXML:!0,serializer:Wb},Jb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Hh},default:{bodyMapper:G,headersMapper:Uh}},queryParameters:[q,gv,wv],urlParameters:[K],headerParameters:[J,Y,X,_v,xv,Sv],isXML:!0,serializer:Wb},Yb={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Sequence`,element:{type:{name:`Composite`,className:`SignedIdentifier`}}},serializedName:`SignedIdentifiers`,xmlName:`SignedIdentifiers`,xmlIsWrapped:!0,xmlElementName:`SignedIdentifier`},headersMapper:Wh},default:{bodyMapper:G,headersMapper:Gh}},queryParameters:[q,gv,Tv],urlParameters:[K],headerParameters:[J,Y,X,xv],isXML:!0,serializer:Wb},Xb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Kh},default:{bodyMapper:G,headersMapper:qh}},requestBody:Ev,queryParameters:[q,gv,Tv],urlParameters:[K],headerParameters:[X_,Q_,J,Y,vv,xv,Sv,Cv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Wb},Zb={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:Jh},default:{bodyMapper:G,headersMapper:Yh}},queryParameters:[q,gv,Dv],urlParameters:[K],headerParameters:[J,Y,X,Ov,kv],isXML:!0,serializer:Wb},Qb={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:Xh},default:{bodyMapper:G,headersMapper:Zh}},queryParameters:[q,gv,Av],urlParameters:[K],headerParameters:[J,Y,X,jv,Mv],isXML:!0,serializer:Wb},$b={path:`/{containerName}`,httpMethod:`POST`,responses:{202:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:Qh},default:{bodyMapper:G,headersMapper:$h}},requestBody:uv,queryParameters:[q,dv,gv],urlParameters:[K],headerParameters:[Q_,J,Y,fv,pv],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:Wb},ex={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:qm,headersMapper:eg},default:{bodyMapper:G,headersMapper:tg}},queryParameters:[q,iv,av,mv,hv,gv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Wb},tx={path:`/{containerName}`,httpMethod:`PUT`,responses:{201:{headersMapper:ng},default:{bodyMapper:G,headersMapper:rg}},queryParameters:[q,gv,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Pv,Fv,Iv],isXML:!0,serializer:Wb},nx={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ig},default:{bodyMapper:G,headersMapper:ag}},queryParameters:[q,gv,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Lv,Rv],isXML:!0,serializer:Wb},rx={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:og},default:{bodyMapper:G,headersMapper:sg}},queryParameters:[q,gv,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Rv,zv],isXML:!0,serializer:Wb},ix={path:`/{containerName}`,httpMethod:`PUT`,responses:{202:{headersMapper:cg},default:{bodyMapper:G,headersMapper:lg}},queryParameters:[q,gv,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Bv,Vv],isXML:!0,serializer:Wb},ax={path:`/{containerName}`,httpMethod:`PUT`,responses:{200:{headersMapper:ug},default:{bodyMapper:G,headersMapper:dg}},queryParameters:[q,gv,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Rv,Hv,Uv],isXML:!0,serializer:Wb},ox={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:$m,headersMapper:fg},default:{bodyMapper:G,headersMapper:pg}},queryParameters:[q,nv,rv,iv,av,gv,Wv,Gv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Wb},sx={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{bodyMapper:ih,headersMapper:mg},default:{bodyMapper:G,headersMapper:hg}},queryParameters:[q,nv,rv,iv,av,gv,Wv,Gv,Kv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Wb},cx={path:`/{containerName}`,httpMethod:`GET`,responses:{200:{headersMapper:gg},default:{bodyMapper:G,headersMapper:_g}},queryParameters:[ev,q,lv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:Wb};var lx=class{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},dx)}getProperties(e){return this.client.sendOperationRequest({options:e},fx)}delete(e){return this.client.sendOperationRequest({options:e},px)}undelete(e){return this.client.sendOperationRequest({options:e},mx)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},hx)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},gx)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},_x)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},vx)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},yx)}setMetadata(e){return this.client.sendOperationRequest({options:e},bx)}acquireLease(e){return this.client.sendOperationRequest({options:e},xx)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Sx)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Cx)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},wx)}breakLease(e){return this.client.sendOperationRequest({options:e},Tx)}createSnapshot(e){return this.client.sendOperationRequest({options:e},Ex)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Dx)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Ox)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},kx)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},Ax)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},jx)}query(e){return this.client.sendOperationRequest({options:e},Mx)}getTags(e){return this.client.sendOperationRequest({options:e},Nx)}setTags(e){return this.client.sendOperationRequest({options:e},Px)}};const ux=ml(Nm,!0),dx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:vg},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:vg},default:{bodyMapper:G,headersMapper:yg}},queryParameters:[q,qv,Jv],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,Yv,Xv,Zv,Qv,$v,ey,ty,ny,ry],isXML:!0,serializer:ux},fx={path:`/{containerName}/{blob}`,httpMethod:`HEAD`,responses:{200:{headersMapper:bg},default:{bodyMapper:G,headersMapper:xg}},queryParameters:[q,qv,Jv],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry],isXML:!0,serializer:ux},px={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{202:{headersMapper:Sg},default:{bodyMapper:G,headersMapper:Cg}},queryParameters:[q,qv,Jv,ay],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,ty,ny,ry,iy],isXML:!0,serializer:ux},mx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:wg},default:{bodyMapper:G,headersMapper:Tg}},queryParameters:[q,Dv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:ux},hx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Eg},default:{bodyMapper:G,headersMapper:Dg}},queryParameters:[q,oy],urlParameters:[K],headerParameters:[J,Y,X,sy,cy],isXML:!0,serializer:ux},gx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Og},default:{bodyMapper:G,headersMapper:kg}},queryParameters:[ev,q],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,ty,ny,ry,ly,uy,dy,fy,py,my],isXML:!0,serializer:ux},_x={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ag},default:{bodyMapper:G,headersMapper:jg}},queryParameters:[q,qv,Jv,hy],urlParameters:[K],headerParameters:[J,Y,X,Cv,gy,_y],isXML:!0,serializer:ux},vx={path:`/{containerName}/{blob}`,httpMethod:`DELETE`,responses:{200:{headersMapper:Mg},default:{bodyMapper:G,headersMapper:Ng}},queryParameters:[q,qv,Jv,hy],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:ux},yx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Pg},default:{bodyMapper:G,headersMapper:Fg}},queryParameters:[q,qv,Jv,vy],urlParameters:[K],headerParameters:[J,Y,X,yy],isXML:!0,serializer:ux},bx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Ig},default:{bodyMapper:G,headersMapper:Lg}},queryParameters:[q,wv],urlParameters:[K],headerParameters:[J,Y,X,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by],isXML:!0,serializer:ux},xx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Rg},default:{bodyMapper:G,headersMapper:zg}},queryParameters:[q,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Pv,Fv,Iv,ty,ny,ry],isXML:!0,serializer:ux},Sx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Bg},default:{bodyMapper:G,headersMapper:Vg}},queryParameters:[q,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Lv,Rv,ty,ny,ry],isXML:!0,serializer:ux},Cx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Hg},default:{bodyMapper:G,headersMapper:Ug}},queryParameters:[q,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Rv,zv,ty,ny,ry],isXML:!0,serializer:ux},wx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:Wg},default:{bodyMapper:G,headersMapper:Gg}},queryParameters:[q,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Rv,Hv,Uv,ty,ny,ry],isXML:!0,serializer:ux},Tx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:Kg},default:{bodyMapper:G,headersMapper:qg}},queryParameters:[q,Nv],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,Bv,Vv,ty,ny,ry],isXML:!0,serializer:ux},Ex={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:Jg},default:{bodyMapper:G,headersMapper:Yg}},queryParameters:[q,xy],urlParameters:[K],headerParameters:[J,Y,X,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by],isXML:!0,serializer:ux},Dx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:Xg},default:{bodyMapper:G,headersMapper:Zg}},queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,X,_v,xv,Sv,Cv,ty,ny,ry,gy,_y,Sy,Cy,wy,Ty,Ey,Dy,Oy,ky,Ay,jy,My],isXML:!0,serializer:ux},Ox={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:Qg},default:{bodyMapper:G,headersMapper:$g}},queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,X,_v,xv,Sv,Cv,ty,ny,ry,gy,_y,by,Sy,wy,Ty,Ey,Dy,ky,Ay,My,Ny,Py,Fy,Iy,Ly],isXML:!0,serializer:ux},kx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:e_},default:{bodyMapper:G,headersMapper:t_}},queryParameters:[q,Ry,By],urlParameters:[K],headerParameters:[J,Y,X,xv,zy],isXML:!0,serializer:ux},Ax={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:n_},202:{headersMapper:n_},default:{bodyMapper:G,headersMapper:r_}},queryParameters:[q,qv,Jv,Vy],urlParameters:[K],headerParameters:[J,Y,X,xv,ry,Cy,Hy],isXML:!0,serializer:ux},jx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{headersMapper:i_},default:{bodyMapper:G,headersMapper:a_}},queryParameters:[ev,q,lv],urlParameters:[K],headerParameters:[J,Y,X],isXML:!0,serializer:ux},Mx={path:`/{containerName}/{blob}`,httpMethod:`POST`,responses:{200:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:o_},206:{bodyMapper:{type:{name:`Stream`},serializedName:`parsedResponse`},headersMapper:o_},default:{bodyMapper:G,headersMapper:s_}},requestBody:Uy,queryParameters:[q,qv,Wy],urlParameters:[K],headerParameters:[X_,Q_,J,Y,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ux},Nx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:Ym,headersMapper:c_},default:{bodyMapper:G,headersMapper:l_}},queryParameters:[q,qv,Jv,Gy],urlParameters:[K],headerParameters:[J,Y,X,xv,ry,Ky,qy,Jy,Yy],isXML:!0,serializer:ux},Px={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{204:{headersMapper:u_},default:{bodyMapper:G,headersMapper:d_}},requestBody:Xy,queryParameters:[q,Jv,Gy],urlParameters:[K],headerParameters:[X_,Q_,J,Y,xv,ry,Ky,qy,Jy,Yy,Zy,Qy],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:ux};var Fx=class{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},Lx)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Rx)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},zx)}uploadPagesFromURL(e,t,n,r,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:r,options:i},Bx)}getPageRanges(e){return this.client.sendOperationRequest({options:e},Vx)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},Hx)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},Ux)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},Wx)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},Gx)}};const Ix=ml(Nm,!0),Lx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:f_},default:{bodyMapper:G,headersMapper:p_}},queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,X,fv,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,$y,eb,tb],isXML:!0,serializer:Ix},Rx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:m_},default:{bodyMapper:G,headersMapper:h_}},requestBody:rb,queryParameters:[q,ab],urlParameters:[K],headerParameters:[J,Y,fv,xv,Sv,Cv,Yv,Qv,$v,ey,ty,ny,ry,by,Zy,Qy,nb,ib,ob,sb,cb,lb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:Ix},zx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:g_},default:{bodyMapper:G,headersMapper:__}},queryParameters:[q,ab],urlParameters:[K],headerParameters:[J,Y,X,fv,xv,Sv,Cv,Yv,Qv,$v,ey,ty,ny,ry,by,sb,cb,lb,ub],isXML:!0,serializer:Ix},Bx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:v_},default:{bodyMapper:G,headersMapper:y_}},queryParameters:[q,ab],urlParameters:[K],headerParameters:[J,Y,X,fv,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by,wy,Ty,Ey,Dy,Py,Fy,Ly,ob,sb,cb,lb,db,fb,pb,mb],isXML:!0,serializer:Ix},Vx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:uh,headersMapper:b_},default:{bodyMapper:G,headersMapper:x_}},queryParameters:[q,iv,av,qv,hb],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,Yv,ty,ny,ry],isXML:!0,serializer:Ix},Hx={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:uh,headersMapper:S_},default:{bodyMapper:G,headersMapper:C_}},queryParameters:[q,iv,av,qv,hb,gb],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,Yv,ty,ny,ry,_b],isXML:!0,serializer:Ix},Ux={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:w_},default:{bodyMapper:G,headersMapper:T_}},queryParameters:[ev,q],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by,eb],isXML:!0,serializer:Ix},Wx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:E_},default:{bodyMapper:G,headersMapper:D_}},queryParameters:[ev,q],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,ty,ny,ry,tb,vb],isXML:!0,serializer:Ix},Gx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{202:{headersMapper:O_},default:{bodyMapper:G,headersMapper:k_}},queryParameters:[q,yb],urlParameters:[K],headerParameters:[J,Y,X,Sv,Cv,ty,ny,ry,ky],isXML:!0,serializer:Ix};var Kx=class{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},Jx)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},Yx)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},Xx)}seal(e){return this.client.sendOperationRequest({options:e},Zx)}};const qx=ml(Nm,!0),Jx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:A_},default:{bodyMapper:G,headersMapper:j_}},queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,X,fv,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Ay,My,bb],isXML:!0,serializer:qx},Yx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:M_},default:{bodyMapper:G,headersMapper:N_}},requestBody:rb,queryParameters:[q,xb],urlParameters:[K],headerParameters:[J,Y,fv,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by,Zy,Qy,nb,ib,Sb,Cb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:qx},Xx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:P_},default:{bodyMapper:G,headersMapper:F_}},queryParameters:[q,xb],urlParameters:[K],headerParameters:[J,Y,X,fv,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,by,wy,Ty,Ey,Dy,Py,Fy,Ly,Zy,db,pb,Sb,Cb,wb],isXML:!0,serializer:qx},Zx={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{200:{headersMapper:I_},default:{bodyMapper:G,headersMapper:L_}},queryParameters:[q,Tb],urlParameters:[K],headerParameters:[J,Y,X,xv,Sv,Cv,ty,ny,Cb],isXML:!0,serializer:qx};var Qx=class{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},eS)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},tS)}stageBlock(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:r},nS)}stageBlockFromURL(e,t,n,r){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:r},rS)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},iS)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},aS)}};const $x=ml(Nm,!0),eS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:R_},default:{bodyMapper:G,headersMapper:z_}},requestBody:rb,queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,fv,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,Zy,Qy,nb,ib,Eb],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:$x},tS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:B_},default:{bodyMapper:G,headersMapper:V_}},queryParameters:[q],urlParameters:[K],headerParameters:[J,Y,X,fv,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,by,Sy,wy,Ty,Ey,Dy,Oy,ky,Ay,Py,Fy,Iy,Ly,Zy,Eb,Db],isXML:!0,serializer:$x},nS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:H_},default:{bodyMapper:G,headersMapper:U_}},requestBody:rb,queryParameters:[q,Ob,kb],urlParameters:[K],headerParameters:[J,Y,fv,xv,Qv,$v,ey,by,Zy,Qy,nb,ib],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`binary`,serializer:$x},rS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:W_},default:{bodyMapper:G,headersMapper:G_}},queryParameters:[q,Ob,kb],urlParameters:[K],headerParameters:[J,Y,X,fv,xv,Qv,$v,ey,by,wy,Ty,Ey,Dy,Py,Fy,Ly,db,pb,wb],isXML:!0,serializer:$x},iS={path:`/{containerName}/{blob}`,httpMethod:`PUT`,responses:{201:{headersMapper:K_},default:{bodyMapper:G,headersMapper:q_}},requestBody:Ab,queryParameters:[q,jb],urlParameters:[K],headerParameters:[X_,Q_,J,Y,_v,xv,Sv,Cv,Qv,$v,ey,ty,ny,ry,ly,uy,dy,fy,py,my,gy,_y,by,Sy,Ay,My,Zy,Qy],isXML:!0,contentType:`application/xml; charset=utf-8`,mediaType:`xml`,serializer:$x},aS={path:`/{containerName}/{blob}`,httpMethod:`GET`,responses:{200:{bodyMapper:ch,headersMapper:J_},default:{bodyMapper:G,headersMapper:Y_}},queryParameters:[q,qv,jb,Mb],urlParameters:[K],headerParameters:[J,Y,X,xv,ry],isXML:!0,serializer:$x};var oS=class extends Wu{url;version;constructor(e,t){if(e===void 0)throw Error(`'url' cannot be null`);t||={};let n={requestContentType:`application/json; charset=utf-8`},r=`azsdk-js-azure-storage-blob/12.30.0`,i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${r}`:`${r}`,a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??`{url}`};super(a),this.url=e,this.version=t.version||`2026-02-06`,this.service=new Nb(this),this.container=new Ub(this),this.blob=new lx(this),this.pageBlob=new Fx(this),this.appendBlob=new Kx(this),this.blockBlob=new Qx(this)}service;container;blob;pageBlob;appendBlob;blockBlob},sS=class extends oS{async sendOperationRequest(e,t){let n={...t};return(n.path===`/{containerName}`||n.path===`/{containerName}/{blob}`)&&(n.path=``),super.sendOperationRequest(e,n)}};function cS(e){let t=new URL(e),n=t.pathname;return n||=`/`,n=fS(n),t.pathname=n,t.toString()}function lS(e){let t=``;if(e.search(`DevelopmentStorageProxyUri=`)!==-1){let n=e.split(`;`);for(let e of n)e.trim().startsWith(`DevelopmentStorageProxyUri=`)&&(t=e.trim().match(`DevelopmentStorageProxyUri=(.*)`)[1])}return t}function uS(e,t){let n=e.split(`;`);for(let e of n)if(e.trim().startsWith(t))return e.trim().match(t+`=(.*)`)[1];return``}function dS(e){let t=``;e.startsWith(`UseDevelopmentStorage=true`)&&(t=lS(e),e=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`);let n=uS(e,`BlobEndpoint`);if(n=n.endsWith(`/`)?n.slice(0,-1):n,e.search(`DefaultEndpointsProtocol=`)!==-1&&e.search(`AccountKey=`)!==-1){let r=``,i=``,a=Buffer.from(`accountKey`,`base64`),o=``;if(i=uS(e,`AccountName`),a=Buffer.from(uS(e,`AccountKey`),`base64`),!n){r=uS(e,`DefaultEndpointsProtocol`);let t=r.toLowerCase();if(t!==`https`&&t!==`http`)throw Error(`Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'`);if(o=uS(e,`EndpointSuffix`),!o)throw Error(`Invalid EndpointSuffix in the provided Connection String`);n=`${r}://${i}.blob.${o}`}if(!i)throw Error(`Invalid AccountName in the provided Connection String`);if(a.length===0)throw Error(`Invalid AccountKey in the provided Connection String`);return{kind:`AccountConnString`,url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=uS(e,`SharedAccessSignature`),r=uS(e,`AccountName`);if(r||=CS(n),!n)throw Error(`Invalid BlobEndpoint in the provided SAS Connection String`);if(!t)throw Error(`Invalid SharedAccessSignature in the provided SAS Connection String`);return t.startsWith(`?`)&&(t=t.substring(1)),{kind:`SASConnString`,url:n,accountName:r,accountSas:t}}}function fS(e){return encodeURIComponent(e).replace(/%2F/g,`/`).replace(/'/g,`%27`).replace(/\+/g,`%20`).replace(/%25/g,`%`)}function pS(e,t){let n=new URL(e),r=n.pathname;return r=r?r.endsWith(`/`)?`${r}${t}`:`${r}/${t}`:t,n.pathname=r,n.toString()}function mS(e,t,n){let r=new URL(e),i=encodeURIComponent(t),a=n?encodeURIComponent(n):void 0,o=r.search===``?`?`:r.search,s=[];for(let e of o.slice(1).split(`&`))if(e){let[t]=e.split(`=`,2);t!==i&&s.push(e)}return a&&s.push(`${i}=${a}`),r.search=s.length?`?${s.join(`&`)}`:``,r.toString()}function hS(e,t){return new URL(e).searchParams.get(t)??void 0}function gS(e){try{let t=new URL(e);return t.protocol.endsWith(`:`)?t.protocol.slice(0,-1):t.protocol}catch{return}}function _S(e,t){let n=new URL(e),r=n.search;return r?r+=`&`+t:r=t,n.search=r,n.toString()}function vS(e,t=!0){let n=e.toISOString();return t?n.substring(0,n.length-1)+`0000Z`:n.substring(0,n.length-5)+`Z`}function yS(e){return lc?Buffer.from(e).toString(`base64`):btoa(e)}function bS(e,t){return e.length>42&&(e=e.slice(0,42)),yS(e+xS(t.toString(),48-e.length,`0`))}function xS(e,t,n=` `){return String.prototype.padStart?e.padStart(t,n):(n||=` `,e.length>t?e:(t-=e.length,t>n.length&&(n+=n.repeat(t/n.length)),n.slice(0,t)+e))}function SS(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function CS(e){let t=new URL(e),n;try{return n=t.hostname.split(`.`)[1]===`blob`?t.hostname.split(`.`)[0]:wS(t)?t.pathname.split(`/`)[1]:``,n}catch{throw Error(`Unable to extract accountName with provided information.`)}}function wS(e){let t=e.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(t)||!!e.port&&vm.includes(e.port)}function TS(e){if(e===void 0)return;let t=[];for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(r)}`)}return t.join(`&`)}function ES(e){if(e===void 0)return;let t={blobTagSet:[]};for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)){let r=e[n];t.blobTagSet.push({key:n,value:r})}return t}function DS(e){if(e===void 0)return;let t={};for(let n of e.blobTagSet)t[n.key]=n.value;return t}function OS(e){if(e!==void 0)switch(e.kind){case`csv`:return{format:{type:`delimited`,delimitedTextConfiguration:{columnSeparator:e.columnSeparator||`,`,fieldQuote:e.fieldQuote||``,recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||``,headersPresent:e.hasHeaders||!1}}};case`json`:return{format:{type:`json`,jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case`arrow`:return{format:{type:`arrow`,arrowConfiguration:{schema:e.schema}}};case`parquet`:return{format:{type:`parquet`}};default:throw Error(`Invalid BlobQueryTextConfiguration.`)}}function kS(e){if(!e||`policy-id`in e)return;let t=[];for(let n in e){let r=n.split(`_`);r[0].startsWith(`or-`)&&(r[0]=r[0].substring(3));let i={ruleId:r[1],replicationStatus:e[n]},a=t.findIndex(e=>e.policyId===r[0]);a>-1?t[a].rules.push(i):t.push({policyId:r[0],rules:[i]})}return t}function AS(e){return e?e.scheme+` `+e.value:void 0}function*jS(e){let t=[],n=[];e.pageRange&&(t=e.pageRange),e.clearRange&&(n=e.clearRange);let r=0,i=0;for(;r0&&n.length>0&&e.push(`${t}=${n}`))}};function RS(e,t,n){return zS(e,t,n).sasQueryParameters}function zS(e,t,n){let r=e.version?e.version:fm,i=t instanceof Yp?t:void 0,a;if(i===void 0&&n!==void 0&&(a=new um(n,t)),i===void 0&&a===void 0)throw TypeError(`Invalid sharedKeyCredential, userDelegationKey or accountName.`);if(r>=`2020-12-06`)return i===void 0?r>=`2025-07-05`?KS(e,a):GS(e,a):HS(e,i);if(r>=`2018-11-09`)return i===void 0?r>=`2020-02-10`?WS(e,a):US(e,a):VS(e,i);if(r>=`2015-04-05`){if(i!==void 0)return BS(e,i);throw RangeError(`'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.`)}throw RangeError(`'version' must be >= '2015-04-05'.`)}function BS(e,t){if(e=JS(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`;e.blobName&&(n=`b`);let r;e.permissions&&(r=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let i=[r||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),a=t.computeHMACSHA256(i);return{sasQueryParameters:new LS(e.version,a,r,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function VS(e,t){if(e=JS(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function HS(e,t){if(e=JS(e),!e.identifier&&!(e.permissions&&e.expiresOn))throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl?e.cacheControl:``,e.contentDisposition?e.contentDisposition:``,e.contentEncoding?e.contentEncoding:``,e.contentLanguage?e.contentLanguage:``,e.contentType?e.contentType:``].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,void 0,void 0,void 0,e.encryptionScope),stringToSign:a}}function US(e,t){if(e=JS(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?vS(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?vS(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function WS(e,t){if(e=JS(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?vS(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?vS(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function GS(e,t){if(e=JS(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?vS(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?vS(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` `),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function KS(e,t){if(e=JS(e),!e.permissions||!e.expiresOn)throw RangeError(`Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.`);let n=`c`,r=e.snapshotTime;e.blobName&&(n=`b`,e.snapshotTime?n=`bs`:e.versionId&&(n=`bv`,r=e.versionId));let i;e.permissions&&(i=e.blobName?NS.parse(e.permissions.toString()).toString():PS.parse(e.permissions.toString()).toString());let a=[i||``,e.startsOn?vS(e.startsOn,!1):``,e.expiresOn?vS(e.expiresOn,!1):``,qS(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?vS(t.userDelegationKey.signedStartsOn,!1):``,t.userDelegationKey.signedExpiresOn?vS(t.userDelegationKey.signedExpiresOn,!1):``,t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,void 0,e.correlationId,void 0,e.delegatedUserObjectId,e.ipRange?FS(e.ipRange):``,e.protocol?e.protocol:``,e.version,n,r,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join(` -`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function qS(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function JS(e){let t=e.version?e.version:pm;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var YS=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=lc(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},XS=class extends S{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,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=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new ic(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(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}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},ZS=class{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 uc?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new XS(this.originalResponse.readableStreamBody,t,n,r,i)}};const QS=new Uint8Array([79,98,106,1]);var $S=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},eC;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(eC||={});var tC;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(tC||={});var nC=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case tC.NULL:case tC.BOOLEAN:case tC.INT:case tC.LONG:case tC.FLOAT:case tC.DOUBLE:case tC.BYTES:case tC.STRING:return new rC(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new aC(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case eC.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new sC(r,t.name);case eC.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new iC(t.symbols);case eC.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new oC(e.fromSchema(t.values));case eC.ARRAY:case eC.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},rC=class extends nC{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case tC.NULL:return $S.readNull();case tC.BOOLEAN:return $S.readBoolean(e,t);case tC.INT:return $S.readInt(e,t);case tC.LONG:return $S.readLong(e,t);case tC.FLOAT:return $S.readFloat(e,t);case tC.DOUBLE:return $S.readDouble(e,t);case tC.BYTES:return $S.readBytes(e,t);case tC.STRING:return $S.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},iC=class extends nC{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await $S.readInt(e,t);return this._symbols[n]}},aC=class extends nC{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await $S.readInt(e,t);return this._types[n].read(e,t)}},oC=class extends nC{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return $S.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},sC=class extends nC{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function cC(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await $S.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!cC(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await $S.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await $S.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},uC=class{};const dC=new ic(`Reading from the avro stream was aborted.`);var fC=class extends uC{_position;_readable;toUint8Array(e){return typeof e==`string`?ce.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw dC;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(dC)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},pC=class extends S{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new lC(new fC(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},mC=class{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(){}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(){}get readableStreamBody(){return uc?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new pC(this.originalResponse.readableStreamBody,t)}},hC;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(hC||={});var gC;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(gC||={});function _C(e){if(e!==void 0)return e}function vC(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var yC;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(yC||={});function bC(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var xC=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},SC=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},CC=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new SC(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new xC(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},wC=class extends CC{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=OC({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return oc(this.intervalInMs)}};const TC=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?OC(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,OC(t)):(t.isCancelled=!0,OC(t))},EC=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return OC(t)},DC=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function OC(e){return{state:{...e},cancel:TC,toString:DC,update:EC}}function kC(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var AC;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(AC||={});var jC=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=AC.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new _}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=AC.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function NC(e,t){return new Promise((n,r)=>{let i=P.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const PC=T.promisify(P.stat),FC=P.createReadStream;var IC=class e extends MS{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(bm(t))a=e,i=t;else if(uc&&t instanceof Xp||t instanceof Up||tl(t))a=e,r=n,i=Sm(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=Sm(new Up,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(uc){let e=new Xp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=yc(c.proxyUri),i=Sm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Sm(new Up,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=hS(this.url,gm.Parameters.SNAPSHOT),this._versionId=hS(this.url,gm.Parameters.VERSIONID)}withSnapshot(t){return new e(mS(this.url,gm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(mS(this.url,gm.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new LC(this.url,this.pipeline)}getBlockBlobClient(){return new RC(this.url,this.pipeline)}getPageBlobClient(){return new zC(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:uc?void 0:n.onProgress},range:e===0&&!t?void 0:kC({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:kS(i.objectReplicationRules)};if(!uc)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new ZS(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:kC({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return vC(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:kS(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:ES(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:DS({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new YS(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new wC({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:AS(t.sourceAuthorization),tier:_C(t.tier),blobTagsString:TS(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(_C(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=hm),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await NC(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(wS(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:_C(t.tier),blobTagsString:TS(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof Xp))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=RS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(_S(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof Xp))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return zS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=RS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(_S(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return zS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},LC=class e extends IC{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},bm(t))a=e,i=t;else if(uc&&t instanceof Xp||t instanceof Up||tl(t))a=e,r=n,i=Sm(t,r);else if(!t&&typeof t!=`string`)a=e,i=Sm(new Up,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(uc){let e=new Xp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=yc(c.proxyUri),i=Sm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Sm(new Up,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(mS(this.url,gm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:TS(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:kC({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:AS(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},RC=class e extends IC{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},bm(t))a=e,i=t;else if(uc&&t instanceof Xp||t instanceof Up||tl(t))a=e,r=n,i=Sm(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=Sm(new Up,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(uc){let e=new Xp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=yc(c.proxyUri),i=Sm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Sm(new Up,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(mS(this.url,gm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(vC(t.customerProvidedKey,this.isHttps),!uc)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new mC(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:OS(t.inputTextConfiguration),outputSerialization:OS(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:_C(n.tier),blobTagsString:TS(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:AS(t.sourceAuthorization),tier:_C(t.tier),blobTagsString:TS(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return vC(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:kC({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:AS(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:_C(t.tier),blobTagsString:TS(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(uc){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/mm),r<4194304&&(r=hm))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${mm}`);let s=[],c=lc(),l=0,u=new jC(n.concurrency);for(let i=0;i{let u=bS(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await PC(e)).size;return this.uploadSeekableInternal((t,n)=>()=>FC(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=lc(),s=0,c=[];return await new Op(e,t,n,async(e,t)=>{let n=bS(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},zC=class e extends IC{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},bm(t))a=e,i=t;else if(uc&&t instanceof Xp||t instanceof Up||tl(t))a=e,r=n,i=Sm(t,r);else if(!t&&typeof t!=`string`)a=e,i=Sm(new Up,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(uc){let e=new Xp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=yc(c.proxyUri),i=Sm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=Sm(new Up,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(mS(this.url,gm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:_C(t.tier),blobTagsString:TS(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:kC({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},vC(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,kC({offset:t,count:r}),0,kC({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:AS(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:kC({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>bC(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:kC({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:kC({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*jS(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>bC(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:kC({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:kC({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*jS(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>bC(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:kC({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},BC=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},VC=class extends Error{constructor(e){let t=`Unable to make request: ${e}\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(t),this.code=e,this.name=`NetworkError`}};VC.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var HC=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. -More 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`),this.name=`UsageError`}};HC.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var UC=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},WC=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},GC=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Pr(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function KC(e,t,n){return WC(this,void 0,void 0,function*(){let r=new IC(e),i=r.getBlockBlobClient(),a=new GC(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),H(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new BC(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw Mr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var qC=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function JC(e){return e?e>=200&&e<300:!1}function YC(e){return e?e>=500:!0}function XC(e){return e?[Cn.BadGateway,Cn.ServiceUnavailable,Cn.GatewayTimeout].includes(e):!1}function ZC(e){return qC(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function QC(e,t,n){return qC(this,arguments,void 0,function*(e,t,n,r=2,i=ua,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!YC(l)))return c;if(l&&(u=XC(l),o=`Cache service responded with ${l}`),H(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){H(`${e} - Error is not retryable`);break}yield ZC(i),s++}throw Error(`${e} failed: ${o}`)})}function $C(e,t){return qC(this,arguments,void 0,function*(e,t,n=2,r=ua){return yield QC(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof kn)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function ew(e,t){return qC(this,arguments,void 0,function*(e,t,n=2,r=ua){return yield QC(e,t,e=>e.message.statusCode,n,r)})}var tw=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function nw(e,t){return tw(this,void 0,void 0,function*(){yield b.promisify(re.pipeline)(e.message,t)})}var rw=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,H(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Pr(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function iw(e,t){return tw(this,void 0,void 0,function*(){let n=s.createWriteStream(t),r=new jn(`actions/cache`),i=yield ew(`downloadCache`,()=>tw(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(da,()=>{i.message.destroy(),H(`Aborting download, socket timed out after ${da} ms`)}),yield nw(i,n);let a=i.message.headers[`content-length`];if(a){let e=parseInt(a),n=ya(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else H(`Unable to validate download, no Content-Length header`)})}function aw(e,t,n){return tw(this,void 0,void 0,function*(){let r=yield s.promises.open(t,`w`),i=new jn(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield ew(`downloadCacheMetadata`,()=>tw(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;ttw(this,void 0,void 0,function*(){return yield ow(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new rw(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>tw(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function ow(e,t,n,r){return tw(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield lw(3e4,sw(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function sw(e,t,n,r){return tw(this,void 0,void 0,function*(){let i=yield ew(`downloadCachePart`,()=>tw(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function cw(e,t,n){return tw(this,void 0,void 0,function*(){let r=new RC(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)H(`Unable to determine content length, downloading file with http-client...`),yield iw(e,t);else{let e=Math.min(134217728,se.constants.MAX_LENGTH),a=new rw(i),o=s.openSync(t,`w`);try{a.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!a.isDone();){let l=a.segmentOffset+a.segmentSize,u=Math.min(e,i-l);a.nextSegment(u);let d=yield lw(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:a.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&s.writeFileSync(o,d)}}finally{a.stopDisplayTimer(),s.closeSync(o)}}})}const lw=(e,t)=>tw(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function uw(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),H(`Use Azure SDK: ${t.useAzureSdk}`),H(`Upload concurrency: ${t.uploadConcurrency}`),H(`Upload chunk size: ${t.uploadChunkSize}`),t}function dw(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),H(`Use Azure SDK: ${t.useAzureSdk}`),H(`Download concurrency: ${t.downloadConcurrency}`),H(`Request timeout (ms): ${t.timeoutInMs}`),H(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),H(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),H(`Lookup only: ${t.lookupOnly}`),t}function fw(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function pw(){return fw()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function mw(){let e=pw();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var hw=R(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.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/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),gw=R(((e,t)=>{t.exports={version:hw().version}}))();function _w(){return`@actions/cache-${gw.version}`}var vw=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function yw(e){let t=mw();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return H(`Resource Url: ${n}`),n}function bw(e,t){return`${e};api-version=${t}`}function xw(){return{headers:{Accept:bw(`application/json`,`6.0-preview.1`)}}}function Sw(){let e=new Pn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new jn(_w(),[e],xw())}function Cw(e,t,n){return vw(this,void 0,void 0,function*(){let r=Sw(),i=Da(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield $C(`getCacheEntry`,()=>vw(this,void 0,void 0,function*(){return r.getJson(yw(a))}));if(o.statusCode===204)return Ar()&&(yield ww(e[0],r,i)),null;if(!JC(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return Er(c),H(`Cache Result:`),H(JSON.stringify(s)),s})}function ww(e,t,n){return vw(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield $C(`listCache`,()=>vw(this,void 0,void 0,function*(){return t.getJson(yw(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){H(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])H(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function Tw(e,t,n){return vw(this,void 0,void 0,function*(){let r=new ae(e),i=dw(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield cw(e,t,i):i.concurrentBlobDownloads?yield aw(e,t,i):yield iw(e,t):yield iw(e,t)})}function Ew(e,t,n){return vw(this,void 0,void 0,function*(){let r=Sw(),i={key:e,version:Da(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield $C(`reserveCache`,()=>vw(this,void 0,void 0,function*(){return r.postJson(yw(`caches`),i)}))})}function Dw(e,t){return`bytes ${e}-${t}/*`}function Ow(e,t,n,r,i){return vw(this,void 0,void 0,function*(){H(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${Dw(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":Dw(r,i)},o=yield ew(`uploadChunk (start: ${r}, end: ${i})`,()=>vw(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!JC(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function kw(e,t,n,r){return vw(this,void 0,void 0,function*(){let i=ya(n),a=yw(`caches/${t.toString()}`),o=s.openSync(n,`r`),c=uw(r),l=Ea(`uploadConcurrency`,c.uploadConcurrency),u=Ea(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];H(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>vw(this,void 0,void 0,function*(){for(;fs.createReadStream(n,{fd:o,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{s.closeSync(o)}})}function Aw(e,t,n){return vw(this,void 0,void 0,function*(){let r={size:n};return yield $C(`commitCache`,()=>vw(this,void 0,void 0,function*(){return e.postJson(yw(`caches/${t.toString()}`),r)}))})}function jw(e,t,n,r){return vw(this,void 0,void 0,function*(){if(uw(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield KC(n,t,r)}else{let n=Sw();H(`Upload cache`),yield kw(n,e,t,r),H(`Commiting cache`);let i=ya(t);Pr(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield Aw(n,e,i);if(!JC(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Pr(`Cache saved successfully`)}})}var Mw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),Nw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),Pw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),Fw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),Iw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),Lw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=Iw(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!=0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),Rw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=Fw(),n=Lw(),r=Iw(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),zw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),Bw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=Lw(),n=Iw(),r=zw(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),Vw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),Hw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),Uw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=Uw();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),Gw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),Kw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionTypeCheck=void 0;let t=Ww(),n=Gw();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),qw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionLongConvert=void 0;let t=Ww();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),Jw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonReader=void 0;let t=Mw(),n=Nw(),r=Ww(),i=Lw(),a=zw(),o=qw();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),Yw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonWriter=void 0;let t=Nw(),n=Lw(),r=Ww(),i=zw();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),Xw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionScalarDefault=void 0;let t=Ww(),n=qw(),r=Lw();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),Zw=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryReader=void 0;let t=Fw(),n=Ww(),r=qw(),i=Xw();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryWriter=void 0;let t=Fw(),n=Ww(),r=zw(),i=Lw();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionCreate=void 0;let t=Xw(),n=Hw();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),eT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionEquals=void 0;let t=Ww();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MessageType=void 0;let t=Hw(),n=Ww(),r=Kw(),i=Jw(),a=Yw(),o=Zw(),s=Qw(),c=$w(),l=eT(),u=Mw(),d=Vw(),f=tT(),p=Bw(),m=Rw(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),rT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.containsMessageType=void 0;let t=Hw();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),iT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),aT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Mw();Object.defineProperty(e,"typeofJsonValue",{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return t.isJsonObject}});var n=Nw();Object.defineProperty(e,"base64decode",{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,"base64encode",{enumerable:!0,get:function(){return n.base64encode}});var r=Pw();Object.defineProperty(e,"utf8read",{enumerable:!0,get:function(){return r.utf8read}});var i=Fw();Object.defineProperty(e,"WireType",{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,"mergeBinaryOptions",{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,"UnknownFieldHandler",{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=Rw();Object.defineProperty(e,"BinaryReader",{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,"binaryReadOptions",{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=Bw();Object.defineProperty(e,"BinaryWriter",{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,"binaryWriteOptions",{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=Lw();Object.defineProperty(e,"PbLong",{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,"PbULong",{enumerable:!0,get:function(){return s.PbULong}});var c=Vw();Object.defineProperty(e,"jsonReadOptions",{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,"jsonWriteOptions",{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,"mergeJsonOptions",{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=Hw();Object.defineProperty(e,"MESSAGE_TYPE",{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=nT();Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return u.MessageType}});var d=Ww();Object.defineProperty(e,"ScalarType",{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,"LongType",{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,"RepeatType",{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,"normalizeFieldInfo",{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,"readFieldOptions",{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,"readFieldOption",{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,"readMessageOption",{enumerable:!0,get:function(){return d.readMessageOption}});var f=Kw();Object.defineProperty(e,"ReflectionTypeCheck",{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=$w();Object.defineProperty(e,"reflectionCreate",{enumerable:!0,get:function(){return p.reflectionCreate}});var m=Xw();Object.defineProperty(e,"reflectionScalarDefault",{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=eT();Object.defineProperty(e,"reflectionMergePartial",{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=tT();Object.defineProperty(e,"reflectionEquals",{enumerable:!0,get:function(){return g.reflectionEquals}});var _=Zw();Object.defineProperty(e,"ReflectionBinaryReader",{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=Qw();Object.defineProperty(e,"ReflectionBinaryWriter",{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=Jw();Object.defineProperty(e,"ReflectionJsonReader",{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=Yw();Object.defineProperty(e,"ReflectionJsonWriter",{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=rT();Object.defineProperty(e,"containsMessageType",{enumerable:!0,get:function(){return x.containsMessageType}});var S=Gw();Object.defineProperty(e,"isOneofGroup",{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,"setOneofValue",{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,"getOneofValue",{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,"clearOneofValue",{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,"getSelectedOneofValue",{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=iT();Object.defineProperty(e,"listEnumValues",{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,"listEnumNames",{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,"listEnumNumbers",{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,"isEnumObject",{enumerable:!0,get:function(){return C.isEnumObject}});var w=Uw();Object.defineProperty(e,"lowerCamelCase",{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=zw();Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,"assertInt32",{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,"assertUInt32",{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,"assertFloat32",{enumerable:!0,get:function(){return T.assertFloat32}})})),oT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=aT();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),sT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;let t=oT();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),cT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` -`)}}})),lT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeRpcOptions=void 0;let t=aT();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),uT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),dT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcOutputStreamController=void 0;let t=uT(),n=aT();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),fT=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),pT=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),mT=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),hT=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),gT=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.TestTransport=void 0;let n=cT(),r=aT(),i=dT(),a=lT(),o=fT(),s=pT(),c=mT(),l=hT();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),_T=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=aT();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),vT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),yT=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=sT();Object.defineProperty(e,"ServiceType",{enumerable:!0,get:function(){return t.ServiceType}});var n=oT();Object.defineProperty(e,"readMethodOptions",{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,"readMethodOption",{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,"readServiceOption",{enumerable:!0,get:function(){return n.readServiceOption}});var r=cT();Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return r.RpcError}});var i=lT();Object.defineProperty(e,"mergeRpcOptions",{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=dT();Object.defineProperty(e,"RpcOutputStreamController",{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=gT();Object.defineProperty(e,"TestTransport",{enumerable:!0,get:function(){return o.TestTransport}});var s=uT();Object.defineProperty(e,"Deferred",{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,"DeferredState",{enumerable:!0,get:function(){return s.DeferredState}});var c=hT();Object.defineProperty(e,"DuplexStreamingCall",{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=mT();Object.defineProperty(e,"ClientStreamingCall",{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=pT();Object.defineProperty(e,"ServerStreamingCall",{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=fT();Object.defineProperty(e,"UnaryCall",{enumerable:!0,get:function(){return d.UnaryCall}});var f=_T();Object.defineProperty(e,"stackIntercept",{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,"stackDuplexStreamingInterceptors",{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,"stackClientStreamingInterceptors",{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,"stackServerStreamingInterceptors",{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,"stackUnaryInterceptors",{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=vT();Object.defineProperty(e,"ServerCallContextController",{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=aT();const bT=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posbT}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posCT.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=wT.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>TT.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=ET.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>DT.fromJson(e,{ignoreUnknownFields:!0}))}};function kT(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(Er(t),Er(encodeURIComponent(t)))}catch(t){H(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function AT(e){if(typeof e!=`object`||!e){H(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&kT(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&kT(e.signed_download_url)}var jT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},MT=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Oa();this.baseUrl=mw(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new jn(e,[new Pn(i)])}request(e,t,n,r){return jT(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;H(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>jT(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return jT(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&Mr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new UC(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&H(`Raw Body: ${r}`),e instanceof HC||e instanceof UC)throw e;if(VC.isNetworkErrorCode(e?.code))throw new VC(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Pr(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Cn.BadGateway,Cn.GatewayTimeout,Cn.InternalServerError,Cn.ServiceUnavailable].includes(e):!1}sleep(e){return jT(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function NT(e){return new OT(new MT(_w(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var PT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const FT=process.platform===`win32`;function IT(){return PT(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield Ta(),t=pa;if(e)return{path:e,type:la.GNU};if(l(t))return{path:t,type:la.BSD};break}case`darwin`:{let e=yield ur(`gtar`,!1);return e?{path:e,type:la.GNU}:{path:yield ur(`tar`,!0),type:la.BSD}}default:break}return{path:yield ur(`tar`,!0),type:la.GNU}})}function LT(e,t,n){return PT(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=wa(t),o=`cache.tar`,s=zT(),c=e.type===la.BSD&&t!==ca.Gzip&&FT;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${p.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${p.sep}`,`g`),`/`),`--files-from`,ha);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${p.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`);break}if(e.type===la.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function RT(e,t){return PT(this,arguments,void 0,function*(e,t,n=``){let r,i=yield IT(),a=yield LT(i,e,t,n),o=t===`create`?yield VT(i,e):yield BT(i,e,n),s=i.type===la.BSD&&e!==ca.Gzip&&FT;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function zT(){return process.env.GITHUB_WORKSPACE??process.cwd()}function BT(e,t,n){return PT(this,void 0,void 0,function*(){let r=e.type===la.BSD&&t!==ca.Gzip&&FT;switch(t){case ca.Zstd:return r?[`zstd -d --long=30 --force -o`,ma,n.replace(RegExp(`\\${p.sep}`,`g`),`/`)]:[`--use-compress-program`,FT?`"zstd -d --long=30"`:`unzstd --long=30`];case ca.ZstdWithoutLong:return r?[`zstd -d --force -o`,ma,n.replace(RegExp(`\\${p.sep}`,`g`),`/`)]:[`--use-compress-program`,FT?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function VT(e,t){return PT(this,void 0,void 0,function*(){let n=wa(t),r=e.type===la.BSD&&t!==ca.Gzip&&FT;switch(t){case ca.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${p.sep}`,`g`),`/`),ma]:[`--use-compress-program`,FT?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case ca.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${p.sep}`,`g`),`/`),ma]:[`--use-compress-program`,FT?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function HT(e,t){return PT(this,void 0,void 0,function*(){for(let n of e)try{yield xr(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function UT(e,t){return PT(this,void 0,void 0,function*(){yield HT(yield RT(t,`list`,e))})}function WT(e,t){return PT(this,void 0,void 0,function*(){yield lr(zT()),yield HT(yield RT(t,`extract`,e))})}function GT(e,t,n){return PT(this,void 0,void 0,function*(){f(p.join(e,ha),t.join(` -`)),yield HT(yield RT(n,`create`),e)})}var KT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qT=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},JT=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},YT=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function XT(e){if(!e||e.length===0)throw new qT(`Path Validation Error: At least one directory or file path is required`)}function ZT(e){if(e.length>512)throw new qT(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new qT(`Key Validation Error: ${e} cannot contain commas.`)}function QT(){switch(pw()){case`v2`:return!!process.env.ACTIONS_RESULTS_URL;default:return!!process.env.ACTIONS_CACHE_URL}}function $T(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=pw();switch(H(`Cache service version: ${a}`),XT(e),a){case`v2`:return yield tE(e,t,n,r,i);default:return yield eE(e,t,n,r,i)}})}function eE(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(H(`Resolved Keys:`),H(JSON.stringify(a)),a.length>10)throw new qT(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)ZT(e);let o=yield Ca(),s=``;try{let t=yield Cw(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Pr(`Lookup only - skipping download`),t.cacheKey;s=p.join(yield va(),wa(o)),H(`Archive Path: ${s}`),yield Tw(t.archiveLocation,s,r),Ar()&&(yield UT(s,o));let n=ya(s);return Pr(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield WT(s,o),Pr(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===qT.name)throw e;t instanceof kn&&typeof t.statusCode==`number`&&t.statusCode>=500?jr(`Failed to restore: ${e.message}`):Mr(`Failed to restore: ${e.message}`)}finally{try{yield xa(s)}catch(e){H(`Failed to delete archive: ${e}`)}}})}function tE(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(H(`Resolved Keys:`),H(JSON.stringify(a)),a.length>10)throw new qT(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)ZT(e);let o=``;try{let s=NT(),c=yield Ca(),l={key:t,restoreKeys:n,version:Da(e,c,i)},u=yield s.GetCacheEntryDownloadURL(l);if(!u.ok){H(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===u.matchedKey?Pr(`Cache hit for: ${u.matchedKey}`):Pr(`Cache hit for restore-key: ${u.matchedKey}`),r?.lookupOnly)return Pr(`Lookup only - skipping download`),u.matchedKey;o=p.join(yield va(),wa(c)),H(`Archive path: ${o}`),H(`Starting download of archive to: ${o}`),yield Tw(u.signedDownloadUrl,o,r);let d=ya(o);return Pr(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),Ar()&&(yield UT(o,c)),yield WT(o,c),Pr(`Cache restored successfully`),u.matchedKey}catch(e){let t=e;if(t.name===qT.name)throw e;t instanceof kn&&typeof t.statusCode==`number`&&t.statusCode>=500?jr(`Failed to restore: ${e.message}`):Mr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield xa(o))}catch(e){H(`Failed to delete archive: ${e}`)}}})}function nE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){let i=pw();switch(H(`Cache service version: ${i}`),XT(e),ZT(t),i){case`v2`:return yield iE(e,t,n,r);default:return yield rE(e,t,n,r)}})}function rE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Ca(),a=-1,o=yield ba(e);if(H(`Cache Paths:`),H(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield va(),c=p.join(s,wa(i));H(`Archive Path: ${c}`);try{yield GT(s,o,i),Ar()&&(yield UT(c,i));let l=ya(c);if(H(`File Size: ${l}`),l>10737418240&&!fw())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);H(`Reserving Cache`);let u=yield Ew(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new JT(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);H(`Saving Cache (ID: ${a})`),yield jw(a,c,``,n)}catch(e){let t=e;if(t.name===qT.name)throw e;t.name===JT.name?Pr(`Failed to save: ${t.message}`):t instanceof kn&&typeof t.statusCode==`number`&&t.statusCode>=500?jr(`Failed to save: ${t.message}`):Mr(`Failed to save: ${t.message}`)}finally{try{yield xa(c)}catch(e){H(`Failed to delete archive: ${e}`)}}return a})}function iE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Ca(),a=NT(),o=-1,s=yield ba(e);if(H(`Cache Paths:`),H(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield va(),l=p.join(c,wa(i));H(`Archive Path: ${l}`);try{yield GT(c,s,i),Ar()&&(yield UT(l,i));let u=ya(l);H(`File Size: ${u}`),n.archiveSizeBytes=u,H(`Reserving Cache`);let d=Da(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&Mr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw H(`Failed to reserve cache: ${e}`),new JT(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}H(`Attempting to upload cache located at: ${l}`),yield jw(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(H(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new YT(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===qT.name)throw e;t.name===JT.name?Pr(`Failed to save: ${t.message}`):t.name===YT.name?Mr(t.message):t instanceof kn&&typeof t.statusCode==`number`&&t.statusCode>=500?jr(`Failed to save: ${t.message}`):Mr(`Failed to save: ${t.message}`)}finally{try{yield xa(l)}catch(e){H(`Failed to delete archive: ${e}`)}}return o})}var aE=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(d(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${a}`)}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=process.env.GITHUB_API_URL??`https://api.github.com`,this.serverUrl=process.env.GITHUB_SERVER_URL??`https://github.com`,this.graphqlUrl=process.env.GITHUB_GRAPHQL_URL??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}},oE=R((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getProxyUrl=t,e.checkBypass=n;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function r(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var i=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}})),sE=z(R((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;oi(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return i(this,void 0,void 0,function*(){return new Promise(e=>i(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}};e.HttpClientResponse=v;function y(e){return new URL(e).protocol===`https:`}e.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return i(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return i(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return i(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return i(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return i(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return i(this,arguments,void 0,function*(e,t={}){t[d.Accept]=this._getExistingOrDefaultHeader(t,d.Accept,f.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return i(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===u.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&m.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!h.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new v(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=s.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?o:a;let s=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},b(this.requestOptions.headers),b(e||{})):b(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=b(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=b(this.requestOptions.headers)[d.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[d.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=s.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||a.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:l,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,a=n.protocol===`https:`;r=i?a?c.httpsOverHttps:c.httpsOverHttp:a?c.httpOverHttps:c.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:l};t=i?new o.Agent(e):new a.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return i(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return i(this,void 0,void 0,function*(){return new Promise((n,r)=>i(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===u.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new _(e,i);t.result=a.result,r(t)}else n(a)}))})}};let b=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{})}))(),1),cE=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function lE(e,t){if(!e&&!t.auth)throw Error(`Parameter token or opts.auth is required`);if(e&&t.auth)throw Error(`Parameters token and opts.auth may not both be specified`);return typeof t.auth==`string`?t.auth:`token ${e}`}function uE(e){return new sE.HttpClient().getAgent(e)}function dE(e){return new sE.HttpClient().getAgentDispatcher(e)}function fE(e){let t=dE(e);return(e,n)=>cE(this,void 0,void 0,function*(){return(0,xn.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))})}function pE(){return process.env.GITHUB_API_URL||`https://api.github.com`}function mE(e){let t=process.env.ACTIONS_ORCHESTRATION_ID?.trim();if(t){let n=`actions_orchestration_id/${t.replace(/[^a-z0-9_.-]/gi,`_`)}`;return e?.includes(n)?e:`${e?`${e} `:``}${n}`}return e}function hE(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:``}function gE(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>gE.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function _E(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function vE(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const yE=Function.bind,bE=yE.bind(yE);function xE(e,t,n){let r=bE(vE,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=bE(_E,null).apply(null,i)})}function SE(){let e=Symbol(`Singular`),t={registry:{}},n=gE.bind(null,t,e);return xE(n,t,e),n}function CE(){let e={registry:{}},t=gE.bind(null,e);return xE(t,e),t}var wE={Singular:SE,Collection:CE},TE={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":`octokit-endpoint.js/0.0.0-development ${hE()}`},mediaType:{format:``}};function EE(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function DE(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function OE(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{DE(t[r])&&r in e?n[r]=OE(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function kE(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function AE(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=EE(n.headers),kE(n),kE(n.headers);let r=OE(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function jE(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var ME=/\{[^{}}]+\}/g;function NE(e){return e.replace(/(?:^\W+)|(?:(?e.concat(t),[]):[]}function FE(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function IE(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function LE(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function RE(e,t,n){return t=e===`+`||e===`#`?IE(t):LE(t),n?LE(n)+`=`+t:t}function zE(e){return e!=null}function BE(e){return e===`;`||e===`&`||e===`?`}function VE(e,t,n,r){var i=e[n],a=[];if(zE(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(RE(t,i,BE(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(zE).forEach(function(e){a.push(RE(t,e,BE(t)?n:``))}):Object.keys(i).forEach(function(e){zE(i[e])&&a.push(RE(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(zE).forEach(function(n){e.push(RE(t,n))}):Object.keys(i).forEach(function(n){zE(i[n])&&(e.push(LE(n)),e.push(RE(t,i[n].toString())))}),BE(t)?a.push(LE(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?zE(i)&&a.push(LE(n)):i===``&&(t===`&`||t===`?`)?a.push(LE(n)+`=`):i===``&&a.push(``);return a}function HE(e){return{expand:UE.bind(null,e)}}function UE(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(VE(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return IE(i)}),e===`/`?e:e.replace(/\/$/,``)}function WE(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=FE(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=PE(n);n=HE(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=FE(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=jE(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function GE(e,t,n){return WE(AE(e,t,n))}function KE(e,t){let n=AE(e,t),r=GE.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:KE.bind(null,n),merge:AE.bind(null,n),parse:WE})}var qE=KE(null,TE),JE=R((e=>{ +`),o=t.computeHMACSHA256(a);return{sasQueryParameters:new LS(e.version,o,i,void 0,void 0,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function qS(e,t,n){let r=[`/blob/${e}/${t}`];return n&&r.push(`/${n}`),r.join(``)}function JS(e){let t=e.version?e.version:fm;if(e.snapshotTime&&t<`2018-11-09`)throw RangeError(`'version' must be >= '2018-11-09' when providing 'snapshotTime'.`);if(e.blobName===void 0&&e.snapshotTime)throw RangeError(`Must provide 'blobName' when providing 'snapshotTime'.`);if(e.versionId&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'versionId'.`);if(e.blobName===void 0&&e.versionId)throw RangeError(`Must provide 'blobName' when providing 'versionId'.`);if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<`2020-08-04`)throw RangeError(`'version' must be >= '2020-08-04' when provided 'i' permission.`);if(e.permissions&&e.permissions.deleteVersion&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'x' permission.`);if(e.permissions&&e.permissions.permanentDelete&&t<`2019-10-10`)throw RangeError(`'version' must be >= '2019-10-10' when providing 'y' permission.`);if(e.permissions&&e.permissions.tag&&t<`2019-12-12`)throw RangeError(`'version' must be >= '2019-12-12' when providing 't' permission.`);if(t<`2020-02-10`&&e.permissions&&(e.permissions.move||e.permissions.execute))throw RangeError(`'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.`);if(t<`2021-04-10`&&e.permissions&&e.permissions.filterByTags)throw RangeError(`'version' must be >= '2021-04-10' when providing the 'f' permission.`);if(t<`2020-02-10`&&(e.preauthorizedAgentObjectId||e.correlationId))throw RangeError(`'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.`);if(e.encryptionScope&&t<`2020-12-06`)throw RangeError(`'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.`);return e.version=t,e}var YS=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),t||=cc(),this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-acquireLease`,t,async n=>Z(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-changeLease`,t,async n=>{let r=Z(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,r})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-releaseLease`,e,async t=>Z(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==``||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==``||e.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-renewLease`,e,async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==``||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==``||t.conditions?.tagConditions))throw 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 Q.withSpan(`BlobLeaseClient-breakLease`,t,async n=>{let r={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return Z(await this._containerOrBlobOperation.breakLease(r))})}},XS=class extends S{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,r,i={}){super({highWaterMark:i.highWaterMark}),this.getter=t,this.source=e,this.start=n,this.offset=n,this.end=n+r-1,this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0,this.onProgress=i.onProgress,this.options=i,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=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=void 0,this.source.pause(),this.sourceErrorOrEndHandler(),this.source.destroy();return}this.offset+=e.length,this.onProgress&&this.onProgress({loadedBytes:this.offset-this.start}),this.push(e)||this.source.pause()};sourceAbortedHandler=()=>{let e=new rc(`The operation was aborted.`);this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name===`AbortError`){this.destroy(e);return}this.removeSourceEventHandlers(),this.offset-1===this.end?this.push(null):this.offset<=this.end?this.retries{this.source=e,this.setSourceEventHandlers()}).catch(e=>{this.destroy(e)})):this.destroy(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}`)):this.destroy(Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))};_destroy(e,t){this.removeSourceEventHandlers(),this.source.destroy(),t(e===null?void 0:e)}},ZS=class{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 lc?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,r,i={}){this.originalResponse=e,this.blobDownloadStream=new XS(this.originalResponse.readableStreamBody,t,n,r,i)}};const QS=new Uint8Array([79,98,106,1]);var $S=class e{static async readFixedBytes(e,t,n={}){let r=await e.read(t,{abortSignal:n.abortSignal});if(r.length!==t)throw Error(`Hit stream end.`);return r}static async readByte(t,n={}){return(await e.readFixedBytes(t,1,n))[0]}static async readZigZagLong(t,n={}){let r=0,i=0,a,o,s;do a=await e.readByte(t,n),o=a&128,r|=(a&127)<2**53-1)throw Error(`Integer overflow.`);return i}return r>>1^-(r&1)}static async readLong(t,n={}){return e.readZigZagLong(t,n)}static async readInt(t,n={}){return e.readZigZagLong(t,n)}static async readNull(){return null}static async readBoolean(t,n={}){let r=await e.readByte(t,n);if(r===1)return!0;if(r===0)return!1;throw Error(`Byte was not a boolean.`)}static async readFloat(t,n={}){let r=await e.readFixedBytes(t,4,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat32(0,!0)}static async readDouble(t,n={}){let r=await e.readFixedBytes(t,8,n);return new DataView(r.buffer,r.byteOffset,r.byteLength).getFloat64(0,!0)}static async readBytes(t,n={}){let r=await e.readLong(t,n);if(r<0)throw Error(`Bytes size was negative.`);return t.read(r,{abortSignal:n.abortSignal})}static async readString(t,n={}){let r=await e.readBytes(t,n);return new TextDecoder().decode(r)}static async readMapPair(t,n,r={}){return{key:await e.readString(t,r),value:await n(t,r)}}static async readMap(t,n,r={}){let i=await e.readArray(t,(t,r={})=>e.readMapPair(t,n,r),r),a={};for(let e of i)a[e.key]=e.value;return a}static async readArray(t,n,r={}){let i=[];for(let a=await e.readLong(t,r);a!==0;a=await e.readLong(t,r))for(a<0&&(await e.readLong(t,r),a=-a);a--;){let e=await n(t,r);i.push(e)}return i}},eC;(function(e){e.RECORD=`record`,e.ENUM=`enum`,e.ARRAY=`array`,e.MAP=`map`,e.UNION=`union`,e.FIXED=`fixed`})(eC||={});var tC;(function(e){e.NULL=`null`,e.BOOLEAN=`boolean`,e.INT=`int`,e.LONG=`long`,e.FLOAT=`float`,e.DOUBLE=`double`,e.BYTES=`bytes`,e.STRING=`string`})(tC||={});var nC=class e{static fromSchema(t){return typeof t==`string`?e.fromStringSchema(t):Array.isArray(t)?e.fromArraySchema(t):e.fromObjectSchema(t)}static fromStringSchema(e){switch(e){case tC.NULL:case tC.BOOLEAN:case tC.INT:case tC.LONG:case tC.FLOAT:case tC.DOUBLE:case tC.BYTES:case tC.STRING:return new rC(e);default:throw Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(t){return new aC(t.map(e.fromSchema))}static fromObjectSchema(t){let n=t.type;try{return e.fromStringSchema(n)}catch{}switch(n){case eC.RECORD:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.name)throw Error(`Required attribute 'name' doesn't exist on schema: ${t}`);let r={};if(!t.fields)throw Error(`Required attribute 'fields' doesn't exist on schema: ${t}`);for(let n of t.fields)r[n.name]=e.fromSchema(n.type);return new sC(r,t.name);case eC.ENUM:if(t.aliases)throw Error(`aliases currently is not supported, schema: ${t}`);if(!t.symbols)throw Error(`Required attribute 'symbols' doesn't exist on schema: ${t}`);return new iC(t.symbols);case eC.MAP:if(!t.values)throw Error(`Required attribute 'values' doesn't exist on schema: ${t}`);return new oC(e.fromSchema(t.values));case eC.ARRAY:case eC.FIXED:default:throw Error(`Unexpected Avro type ${n} in ${t}`)}}},rC=class extends nC{_primitive;constructor(e){super(),this._primitive=e}read(e,t={}){switch(this._primitive){case tC.NULL:return $S.readNull();case tC.BOOLEAN:return $S.readBoolean(e,t);case tC.INT:return $S.readInt(e,t);case tC.LONG:return $S.readLong(e,t);case tC.FLOAT:return $S.readFloat(e,t);case tC.DOUBLE:return $S.readDouble(e,t);case tC.BYTES:return $S.readBytes(e,t);case tC.STRING:return $S.readString(e,t);default:throw Error(`Unknown Avro Primitive`)}}},iC=class extends nC{_symbols;constructor(e){super(),this._symbols=e}async read(e,t={}){let n=await $S.readInt(e,t);return this._symbols[n]}},aC=class extends nC{_types;constructor(e){super(),this._types=e}async read(e,t={}){let n=await $S.readInt(e,t);return this._types[n].read(e,t)}},oC=class extends nC{_itemType;constructor(e){super(),this._itemType=e}read(e,t={}){return $S.readMap(e,(e,t)=>this._itemType.read(e,t),t)}},sC=class extends nC{_name;_fields;constructor(e,t){super(),this._fields=e,this._name=t}async read(e,t={}){let n={};n.$schema=this._name;for(let r in this._fields)Object.prototype.hasOwnProperty.call(this._fields,r)&&(n[r]=await this._fields[r].read(e,t));return n}};function cC(e,t){if(e===t)return!0;if(e==null||t==null||e.length!==t.length)return!1;for(let n=0;n0)for(let t=0;t0}async*parseObjects(e={}){for(this._initialized||await this.initialize(e);this.hasNext();){let t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});if(this._itemsRemainingInBlock--,this._objectIndex++,this._itemsRemainingInBlock===0){let t=await $S.readFixedBytes(this._dataStream,16,{abortSignal:e.abortSignal});if(this._blockOffset=this._initialBlockOffset+this._dataStream.position,this._objectIndex=0,!cC(this._syncMarker,t))throw Error(`Stream is not a valid Avro file.`);try{this._itemsRemainingInBlock=await $S.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}this._itemsRemainingInBlock>0&&await $S.readLong(this._dataStream,{abortSignal:e.abortSignal})}yield t}}},uC=class{};const dC=new rc(`Reading from the avro stream was aborted.`);var fC=class extends uC{_position;_readable;toUint8Array(e){return typeof e==`string`?se.from(e):e}constructor(e){super(),this._readable=e,this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted)throw dC;if(e<0)throw Error(`size parameter should be positive: ${e}`);if(e===0)return new Uint8Array;if(!this._readable.readable)throw Error(`Stream no longer readable.`);let n=this._readable.read(e);return n?(this._position+=n.length,this.toUint8Array(n)):new Promise((n,r)=>{let i=()=>{this._readable.removeListener(`readable`,a),this._readable.removeListener(`error`,o),this._readable.removeListener(`end`,o),this._readable.removeListener(`close`,o),t.abortSignal&&t.abortSignal.removeEventListener(`abort`,s)},a=()=>{let t=this._readable.read(e);t&&(this._position+=t.length,i(),n(this.toUint8Array(t)))},o=()=>{i(),r()},s=()=>{i(),r(dC)};this._readable.on(`readable`,a),this._readable.once(`error`,o),this._readable.once(`end`,o),this._readable.once(`close`,o),t.abortSignal&&t.abortSignal.addEventListener(`abort`,s)})}},pC=class extends S{source;avroReader;avroIter;avroPaused=!0;onProgress;onError;constructor(e,t={}){super(),this.source=e,this.onProgress=t.onProgress,this.onError=t.onError,this.avroReader=new lC(new fC(this.source)),this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){this.avroPaused&&this.readInternal().catch(e=>{this.emit(`error`,e)})}async readInternal(){this.avroPaused=!1;let e;do{if(e=await this.avroIter.next(),e.done)break;let t=e.value,n=t.$schema;if(typeof n!=`string`)throw Error(`Missing schema in avro record.`);switch(n){case`com.microsoft.azure.storage.queryBlobContents.resultData`:{let e=t.data;if(!(e instanceof Uint8Array))throw Error(`Invalid data in avro result record.`);this.push(Buffer.from(e))||(this.avroPaused=!0)}break;case`com.microsoft.azure.storage.queryBlobContents.progress`:{let e=t.bytesScanned;if(typeof e!=`number`)throw Error(`Invalid bytesScanned in avro progress record.`);this.onProgress&&this.onProgress({loadedBytes:e})}break;case`com.microsoft.azure.storage.queryBlobContents.end`:if(this.onProgress){let e=t.totalBytes;if(typeof e!=`number`)throw Error(`Invalid totalBytes in avro end record.`);this.onProgress({loadedBytes:e})}this.push(null);break;case`com.microsoft.azure.storage.queryBlobContents.error`:if(this.onError){let e=t.fatal;if(typeof e!=`boolean`)throw Error(`Invalid fatal in avro error record.`);let n=t.name;if(typeof n!=`string`)throw Error(`Invalid name in avro error record.`);let r=t.description;if(typeof r!=`string`)throw Error(`Invalid description in avro error record.`);let i=t.position;if(typeof i!=`number`)throw Error(`Invalid position in avro error record.`);this.onError({position:i,name:n,isFatal:e,description:r})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}},mC=class{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(){}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(){}get readableStreamBody(){return lc?this.blobDownloadStream:void 0}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e,this.blobDownloadStream=new pC(this.originalResponse.readableStreamBody,t)}},hC;(function(e){e.Hot=`Hot`,e.Cool=`Cool`,e.Cold=`Cold`,e.Archive=`Archive`})(hC||={});var gC;(function(e){e.P4=`P4`,e.P6=`P6`,e.P10=`P10`,e.P15=`P15`,e.P20=`P20`,e.P30=`P30`,e.P40=`P40`,e.P50=`P50`,e.P60=`P60`,e.P70=`P70`,e.P80=`P80`})(gC||={});function _C(e){if(e!==void 0)return e}function vC(e,t){if(e&&!t)throw RangeError(`Customer-provided encryption key must be used over HTTPS.`);e&&!e.encryptionAlgorithm&&(e.encryptionAlgorithm=`AES256`)}var yC;(function(e){e.StorageOAuthScopes=`https://storage.azure.com/.default`,e.DiskComputeOAuthScopes=`https://disk.compute.azure.com/.default`})(yC||={});function bC(e){let t=(e._response.parsedBody.pageRange||[]).map(e=>({offset:e.start,count:e.end-e.start})),n=(e._response.parsedBody.clearRange||[]).map(e=>({offset:e.start,count:e.end-e.start}));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var xC=class e extends Error{constructor(t){super(t),this.name=`PollerStoppedError`,Object.setPrototypeOf(this,e.prototype)}},SC=class e extends Error{constructor(t){super(t),this.name=`PollerCancelledError`,Object.setPrototypeOf(this,e.prototype)}},CC=class{constructor(e){this.resolveOnUnsuccessful=!1,this.stopped=!0,this.pollProgressCallbacks=[],this.operation=e,this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t}),this.promise.catch(()=>{})}async startPolling(e={}){for(this.stopped&&=!1;!this.isStopped()&&!this.isDone();)await this.poll(e),await this.delay()}async pollOnce(e={}){this.isDone()||(this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})),this.processUpdatedState()}fireProgress(e){for(let t of this.pollProgressCallbacks)t(e)}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);let t=()=>{this.pollOncePromise=void 0};this.pollOncePromise.then(t,t).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error&&(this.stopped=!0,!this.resolveOnUnsuccessful))throw this.reject(this.operation.state.error),this.operation.state.error;if(this.operation.state.isCancelled&&(this.stopped=!0,!this.resolveOnUnsuccessful)){let e=new SC(`Operation was canceled`);throw this.reject(e),e}this.isDone()&&this.resolve&&this.resolve(this.getResult())}async pollUntilDone(e={}){return this.stopped&&this.startPolling(e).catch(this.reject),this.processUpdatedState(),this.promise}onProgress(e){return this.pollProgressCallbacks.push(e),()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter(t=>t!==e)}}isDone(){let e=this.operation.state;return!!(e.isCompleted||e.isCancelled||e.error)}stopPolling(){this.stopped||(this.stopped=!0,this.reject&&this.reject(new xC(`This poller is already stopped`)))}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise)this.cancelPromise=this.cancelOnce(e);else if(e.abortSignal)throw Error(`A cancel request is currently pending`);return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){return this.operation.state.result}toString(){return this.operation.toString()}},wC=class extends CC{intervalInMs;constructor(e){let{blobClient:t,copySource:n,intervalInMs:r=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:o}=e,s;a&&(s=JSON.parse(a).state);let c=OC({...s,blobClient:t,copySource:n,startCopyFromURLOptions:o});super(c),typeof i==`function`&&this.onProgress(i),this.intervalInMs=r}delay(){return ac(this.intervalInMs)}};const TC=async function(e={}){let t=this.state,{copyId:n}=t;return t.isCompleted?OC(t):n?(await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal}),t.isCancelled=!0,OC(t)):(t.isCancelled=!0,OC(t))},EC=async function(e={}){let t=this.state,{blobClient:n,copySource:r,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=!0;let e=await n.startCopyFromURL(r,i);t.copyId=e.copyId,e.copyStatus===`success`&&(t.result=e,t.isCompleted=!0)}else if(!t.isCompleted)try{let n=await t.blobClient.getProperties({abortSignal:e.abortSignal}),{copyStatus:r,copyProgress:i}=n,a=t.copyProgress;i&&(t.copyProgress=i),r===`pending`&&i!==a&&typeof e.fireProgress==`function`?e.fireProgress(t):r===`success`?(t.result=n,t.isCompleted=!0):r===`failed`&&(t.error=Error(`Blob copy failed with reason: "${n.copyStatusDescription||`unknown`}"`),t.isCompleted=!0)}catch(e){t.error=e,t.isCompleted=!0}return OC(t)},DC=function(){return JSON.stringify({state:this.state},(e,t)=>{if(e!==`blobClient`)return t})};function OC(e){return{state:{...e},cancel:TC,toString:DC,update:EC}}function kC(e){if(e.offset<0)throw RangeError(`Range.offset cannot be smaller than 0.`);if(e.count&&e.count<=0)throw RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`);return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var AC;(function(e){e[e.Good=0]=`Good`,e[e.Error=1]=`Error`})(AC||={});var jC=class{concurrency;actives=0;completed=0;offset=0;operations=[];state=AC.Good;emitter;constructor(e=5){if(e<1)throw RangeError(`concurrency must be larger than 0`);this.concurrency=e,this.emitter=new _}addOperation(e){this.operations.push(async()=>{try{this.actives++,await e(),this.actives--,this.completed++,this.parallelExecute()}catch(e){this.emitter.emit(`error`,e)}})}async do(){return this.operations.length===0?Promise.resolve():(this.parallelExecute(),new Promise((e,t)=>{this.emitter.on(`finish`,e),this.emitter.on(`error`,e=>{this.state=AC.Error,t(e)})}))}nextOperation(){return this.offset=this.operations.length){this.emitter.emit(`finish`);return}for(;this.actives{let c=setTimeout(()=>s(Error(`The operation cannot be completed in timeout.`)),1e5);e.on(`readable`,()=>{if(a>=o){clearTimeout(c),r();return}let s=e.read();if(!s)return;typeof s==`string`&&(s=Buffer.from(s,i));let l=a+s.length>o?o-a:s.length;t.fill(s.slice(0,l),n+a,n+a+l),a+=l}),e.on(`end`,()=>{clearTimeout(c),a{clearTimeout(c),s(e)})})}async function NC(e,t){return new Promise((n,r)=>{let i=P.createWriteStream(t);e.on(`error`,e=>{r(e)}),i.on(`error`,e=>{r(e)}),i.on(`close`,n),e.pipe(i)})}const PC=T.promisify(P.stat),FC=P.createReadStream;var IC=class e extends MS{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,r){r||={};let i,a;if(ym(t))a=e,i=t;else if(lc&&t instanceof Yp||t instanceof Hp||el(t))a=e,r=n,i=xm(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=xm(new Hp,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(lc){let e=new Yp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=vc(c.proxyUri),i=xm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=xm(new Hp,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),{blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl(),this.blobContext=this.storageClientContext.blob,this._snapshot=hS(this.url,hm.Parameters.SNAPSHOT),this._versionId=hS(this.url,hm.Parameters.VERSIONID)}withSnapshot(t){return new e(mS(this.url,hm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}withVersion(t){return new e(mS(this.url,hm.Parameters.VERSIONID,t.length===0?void 0:t),this.pipeline)}getAppendBlobClient(){return new LC(this.url,this.pipeline)}getBlockBlobClient(){return new RC(this.url,this.pipeline)}getPageBlobClient(){return new zC(this.url,this.pipeline)}async download(e=0,t,n={}){return n.conditions=n.conditions||{},n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-download`,n,async r=>{let i=Z(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:lc?void 0:n.onProgress},range:e===0&&!t?void 0:kC({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:r.tracingOptions})),a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:kS(i.objectReplicationRules)};if(!lc)return a;if((n.maxRetryRequests===void 0||n.maxRetryRequests<0)&&(n.maxRetryRequests=5),i.contentLength===void 0)throw RangeError(`File download response doesn't contain valid content length header`);if(!i.etag)throw RangeError(`File download response doesn't contain valid etag header`);return new ZS(a,async t=>{let r={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:kC({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...r})).readableStreamBody},e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})})}async exists(e={}){return Q.withSpan(`BlobClient-exists`,e,async t=>{try{return vC(e.customerProvidedKey,this.isHttps),await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions}),!0}catch(e){if(e.statusCode===404)return!1;if(e.statusCode===409&&(e.details.errorCode===`BlobUsesCustomerSpecifiedEncryption`||e.details.errorCode===`BlobDoesNotUseCustomerSpecifiedEncryption`))return!0;throw e}})}async getProperties(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-getProperties`,e,async t=>{let n=Z(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:kS(n.objectReplicationRules)}})}async delete(e={}){return e.conditions=e.conditions||{},Q.withSpan(`BlobClient-delete`,e,async t=>Z(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async deleteIfExists(e={}){return Q.withSpan(`BlobClient-deleteIfExists`,e,async e=>{try{let t=Z(await this.delete(e));return{succeeded:!0,...t,_response:t._response}}catch(e){if(e.details?.errorCode===`BlobNotFound`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async undelete(e={}){return Q.withSpan(`BlobClient-undelete`,e,async t=>Z(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}async setHTTPHeaders(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setHTTPHeaders`,t,async n=>Z(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}async setMetadata(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-setMetadata`,t,async n=>Z(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async setTags(e,t={}){return Q.withSpan(`BlobClient-setTags`,t,async n=>Z(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:ES(e)})))}async getTags(e={}){return Q.withSpan(`BlobClient-getTags`,e,async t=>{let n=Z(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,tags:DS({blobTagSet:n.blobTagSet})||{}}})}getBlobLeaseClient(e){return new YS(this,e)}async createSnapshot(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`BlobClient-createSnapshot`,e,async t=>Z(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions})))}async beginCopyFromURL(e,t={}){let n=new wC({blobClient:{abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)},copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});return await n.poll(),n}async abortCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-abortCopyFromURL`,t,async n=>Z(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions})))}async syncCopyFromURL(e,t={}){return t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Q.withSpan(`BlobClient-syncCopyFromURL`,t,async n=>Z(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:AS(t.sourceAuthorization),tier:_C(t.tier),blobTagsString:TS(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async setAccessTier(e,t={}){return Q.withSpan(`BlobClient-setAccessTier`,t,async n=>Z(await this.blobContext.setTier(_C(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions})))}async downloadToBuffer(e,t,n,r={}){let i,a=0,o=0,s=r;e instanceof Buffer?(i=e,a=t||0,o=typeof n==`number`?n:0):(a=typeof e==`number`?e:0,o=typeof t==`number`?t:0,s=n||{});let c=s.blockSize??0;if(c<0)throw RangeError(`blockSize option must be >= 0`);if(c===0&&(c=mm),a<0)throw RangeError(`offset option must be >= 0`);if(o&&o<=0)throw RangeError(`count option must be greater than 0`);return s.conditions||={},Q.withSpan(`BlobClient-downloadToBuffer`,s,async e=>{if(!o){let t=await this.getProperties({...s,tracingOptions:e.tracingOptions});if(o=t.contentLength-a,o<0)throw RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}if(!i)try{i=Buffer.alloc(o)}catch(e){throw Error(`Unable to allocate the buffer of size: ${o}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}if(i.length{let n=a+o;r+c{let a=await this.download(t,n,{...r,tracingOptions:i.tracingOptions});return a.readableStreamBody&&await NC(a.readableStreamBody,e),a.blobDownloadStream=void 0,a})}getBlobAndContainerNamesFromUrl(){let e,t;try{let n=new URL(this.url);if(n.host.split(`.`)[1]===`blob`){let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}else if(wS(n)){let r=n.pathname.match(`/([^/]*)/([^/]*)(/(.*))?`);e=r[2],t=r[4]}else{let r=n.pathname.match(`/([^/]*)(/(.*))?`);e=r[1],t=r[3]}if(e=decodeURIComponent(e),t=decodeURIComponent(t),t=t.replace(/\\/g,`/`),!e)throw Error(`Provided containerName is invalid.`);return{blobName:t,containerName:e}}catch{throw Error(`Unable to extract blobName and containerName with provided information.`)}}async startCopyFromURL(e,t={}){return Q.withSpan(`BlobClient-startCopyFromURL`,t,async n=>(t.conditions=t.conditions||{},t.sourceConditions=t.sourceConditions||{},Z(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:_C(t.tier),blobTagsString:TS(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))))}generateSasUrl(e){return new Promise(t=>{if(!(this.credential instanceof Yp))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);let n=RS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(_S(this.url,n))})}generateSasStringToSign(e){if(!(this.credential instanceof Yp))throw RangeError(`Can only generate the SAS when the client is initialized with a shared key credential`);return zS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise(n=>{let r=RS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(_S(this.url,r))})}generateUserDelegationSasStringToSign(e,t){return zS({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return Q.withSpan(`BlobClient-deleteImmutabilityPolicy`,e,async e=>Z(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions})))}async setImmutabilityPolicy(e,t={}){return Q.withSpan(`BlobClient-setImmutabilityPolicy`,t,async t=>Z(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions})))}async setLegalHold(e,t={}){return Q.withSpan(`BlobClient-setLegalHold`,t,async t=>Z(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions})))}async getAccountInfo(e={}){return Q.withSpan(`BlobClient-getAccountInfo`,e,async t=>Z(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions})))}},LC=class e extends IC{appendBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ym(t))a=e,i=t;else if(lc&&t instanceof Yp||t instanceof Hp||el(t))a=e,r=n,i=xm(t,r);else if(!t&&typeof t!=`string`)a=e,i=xm(new Hp,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(lc){let e=new Yp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=vc(c.proxyUri),i=xm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=xm(new Hp,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(t){return new e(mS(this.url,hm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e={}){return e.conditions=e.conditions||{},vC(e.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-create`,e,async t=>Z(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:TS(e.tags),tracingOptions:t.tracingOptions})))}async createIfNotExists(e={}){let t={ifNoneMatch:`*`};return Q.withSpan(`AppendBlobClient-createIfNotExists`,e,async e=>{try{let n=Z(await this.create({...e,conditions:t}));return{succeeded:!0,...n,_response:n._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async seal(e={}){return e.conditions=e.conditions||{},Q.withSpan(`AppendBlobClient-seal`,e,async t=>Z(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async appendBlock(e,t,n={}){return n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlock`,n,async r=>Z(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async appendBlockFromURL(e,t,n,r={}){return r.conditions=r.conditions||{},r.sourceConditions=r.sourceConditions||{},vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`AppendBlobClient-appendBlockFromURL`,r,async i=>Z(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:r.abortSignal,sourceRange:kC({offset:t,count:n}),sourceContentMD5:r.sourceContentMD5,sourceContentCrc64:r.sourceContentCrc64,leaseAccessConditions:r.conditions,appendPositionAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:r.sourceConditions?.ifMatch,sourceIfModifiedSince:r.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:r.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:r.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:AS(r.sourceAuthorization),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,fileRequestIntent:r.sourceShareTokenIntent,tracingOptions:i.tracingOptions})))}},RC=class e extends IC{_blobContext;blockBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ym(t))a=e,i=t;else if(lc&&t instanceof Yp||t instanceof Hp||el(t))a=e,r=n,i=xm(t,r);else if(!t&&typeof t!=`string`)a=e,n&&typeof n!=`string`&&(r=n),i=xm(new Hp,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(lc){let e=new Yp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=vc(c.proxyUri),i=xm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=xm(new Hp,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.blockBlobContext=this.storageClientContext.blockBlob,this._blobContext=this.storageClientContext.blob}withSnapshot(t){return new e(mS(this.url,hm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async query(e,t={}){if(vC(t.customerProvidedKey,this.isHttps),!lc)throw Error(`This operation currently is only supported in Node.js.`);return Q.withSpan(`BlockBlobClient-query`,t,async n=>new mC(Z(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:`SQL`,expression:e,inputSerialization:OS(t.inputTextConfiguration),outputSerialization:OS(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions})),{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError}))}async upload(e,t,n={}){return n.conditions=n.conditions||{},vC(n.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-upload`,n,async r=>Z(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:_C(n.tier),blobTagsString:TS(n.tags),tracingOptions:r.tracingOptions})))}async syncUploadFromURL(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-syncUploadFromURL`,t,async n=>Z(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:AS(t.sourceAuthorization),tier:_C(t.tier),blobTagsString:TS(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions})))}async stageBlock(e,t,n,r={}){return vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlock`,r,async i=>Z(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,requestOptions:{onUploadProgress:r.onProgress},transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async stageBlockFromURL(e,t,n=0,r,i={}){return vC(i.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-stageBlockFromURL`,i,async a=>Z(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!r?void 0:kC({offset:n,count:r}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:AS(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async commitBlockList(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`BlockBlobClient-commitBlockList`,t,async n=>Z(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:_C(t.tier),blobTagsString:TS(t.tags),tracingOptions:n.tracingOptions})))}async getBlockList(e,t={}){return Q.withSpan(`BlockBlobClient-getBlockList`,t,async n=>{let r=Z(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return r.committedBlocks||=[],r.uncommittedBlocks||=[],r})}async uploadData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadData`,t,async t=>{if(lc){let n;return e instanceof Buffer?n=e:e instanceof ArrayBuffer?n=Buffer.from(e):(e=e,n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.byteLength,t)}else{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)}})}async uploadBrowserData(e,t={}){return Q.withSpan(`BlockBlobClient-uploadBrowserData`,t,async t=>{let n=new Blob([e]);return this.uploadSeekableInternal((e,t)=>n.slice(e,e+t),n.size,t)})}async uploadSeekableInternal(e,t,n={}){let r=n.blockSize??0;if(r<0||r>4194304e3)throw RangeError(`blockSize option must be >= 0 and <= 4194304000`);let i=n.maxSingleShotSize??268435456;if(i<0||i>268435456)throw RangeError(`maxSingleShotSize option must be >= 0 and <= 268435456`);if(r===0){if(t>4194304e3*5e4)throw RangeError(`${t} is too larger to upload to a block blob.`);t>i&&(r=Math.ceil(t/pm),r<4194304&&(r=mm))}return n.blobHTTPHeaders||={},n.conditions||={},Q.withSpan(`BlockBlobClient-uploadSeekableInternal`,n,async a=>{if(t<=i)return Z(await this.upload(e(0,t),t,a));let o=Math.floor((t-1)/r)+1;if(o>5e4)throw RangeError(`The buffer's size is too big or the BlockSize is too small;the number of blocks must be <= ${pm}`);let s=[],c=cc(),l=0,u=new jC(n.concurrency);for(let i=0;i{let u=bS(c,i),d=r*i,f=(i===o-1?t:d+r)-d;s.push(u),await this.stageBlock(u,e(d,f),f,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions}),l+=f,n.onProgress&&n.onProgress({loadedBytes:l})});return await u.do(),this.commitBlockList(s,a)})}async uploadFile(e,t={}){return Q.withSpan(`BlockBlobClient-uploadFile`,t,async n=>{let r=(await PC(e)).size;return this.uploadSeekableInternal((t,n)=>()=>FC(e,{autoClose:!0,end:n?t+n-1:1/0,start:t}),r,{...t,tracingOptions:n.tracingOptions})})}async uploadStream(e,t=8388608,n=5,r={}){return r.blobHTTPHeaders||={},r.conditions||={},Q.withSpan(`BlockBlobClient-uploadStream`,r,async i=>{let a=0,o=cc(),s=0,c=[];return await new Dp(e,t,n,async(e,t)=>{let n=bS(o,a);c.push(n),a++,await this.stageBlock(n,e,t,{customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions}),s+=t,r.onProgress&&r.onProgress({loadedBytes:s})},Math.ceil(n/4*3)).do(),Z(await this.commitBlockList(c,{...r,tracingOptions:i.tracingOptions}))})}},zC=class e extends IC{pageBlobContext;constructor(e,t,n,r){let i,a;if(r||={},ym(t))a=e,i=t;else if(lc&&t instanceof Yp||t instanceof Hp||el(t))a=e,r=n,i=xm(t,r);else if(!t&&typeof t!=`string`)a=e,i=xm(new Hp,r);else if(t&&typeof t==`string`&&n&&typeof n==`string`){let o=t,s=n,c=dS(e);if(c.kind===`AccountConnString`)if(lc){let e=new Yp(c.accountName,c.accountKey);a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s)),r.proxyOptions||=vc(c.proxyUri),i=xm(e,r)}else throw Error(`Account connection string is only supported in Node.js environment`);else if(c.kind===`SASConnString`)a=pS(pS(c.url,encodeURIComponent(o)),encodeURIComponent(s))+`?`+c.accountSas,i=xm(new Hp,r);else throw Error(`Connection string must be either an Account connection string or a SAS connection string`)}else throw Error(`Expecting non-empty strings for containerName and blobName parameters`);super(a,i),this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(t){return new e(mS(this.url,hm.Parameters.SNAPSHOT,t.length===0?void 0:t),this.pipeline)}async create(e,t={}){return t.conditions=t.conditions||{},vC(t.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-create`,t,async n=>Z(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:_C(t.tier),blobTagsString:TS(t.tags),tracingOptions:n.tracingOptions})))}async createIfNotExists(e,t={}){return Q.withSpan(`PageBlobClient-createIfNotExists`,t,async n=>{try{let r={ifNoneMatch:`*`},i=Z(await this.create(e,{...t,conditions:r,tracingOptions:n.tracingOptions}));return{succeeded:!0,...i,_response:i._response}}catch(e){if(e.details?.errorCode===`BlobAlreadyExists`)return{succeeded:!1,...e.response?.parsedHeaders,_response:e.response};throw e}})}async uploadPages(e,t,n,r={}){return r.conditions=r.conditions||{},vC(r.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPages`,r,async i=>Z(await this.pageBlobContext.uploadPages(n,e,{abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},requestOptions:{onUploadProgress:r.onProgress},range:kC({offset:t,count:n}),sequenceNumberAccessConditions:r.conditions,transactionalContentMD5:r.transactionalContentMD5,transactionalContentCrc64:r.transactionalContentCrc64,cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,tracingOptions:i.tracingOptions})))}async uploadPagesFromURL(e,t,n,r,i={}){return i.conditions=i.conditions||{},i.sourceConditions=i.sourceConditions||{},vC(i.customerProvidedKey,this.isHttps),Q.withSpan(`PageBlobClient-uploadPagesFromURL`,i,async a=>Z(await this.pageBlobContext.uploadPagesFromURL(e,kC({offset:t,count:r}),0,kC({offset:n,count:r}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:AS(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions})))}async clearPages(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-clearPages`,n,async r=>Z(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:kC({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:r.tracingOptions})))}async getPageRanges(e=0,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-getPageRanges`,n,async r=>bC(Z(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:kC({offset:e,count:t}),tracingOptions:r.tracingOptions}))))}async listPageRangesSegment(e=0,t,n,r={}){return Q.withSpan(`PageBlobClient-getPageRangesSegment`,r,async i=>Z(await this.pageBlobContext.getPageRanges({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},range:kC({offset:e,count:t}),marker:n,maxPageSize:r.maxPageSize,tracingOptions:i.tracingOptions})))}async*listPageRangeItemSegments(e=0,t,n,r={}){let i;if(n||n===void 0)do i=await this.listPageRangesSegment(e,t,n,r),n=i.continuationToken,yield await i;while(n)}async*listPageRangeItems(e=0,t,n={}){for await(let r of this.listPageRangeItemSegments(e,t,void 0,n))yield*jS(r)}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};let r=this.listPageRangeItems(e,t,n);return{next(){return r.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listPageRangeItemSegments(e,t,r.continuationToken,{maxPageSize:r.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-getPageRangesDiff`,r,async i=>bC(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevsnapshot:n,range:kC({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async listPageRangesDiffSegment(e,t,n,r,i={}){return Q.withSpan(`PageBlobClient-getPageRangesDiffSegment`,i,async a=>Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:kC({offset:e,count:t}),marker:r,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions})))}async*listPageRangeDiffItemSegments(e,t,n,r,i){let a;if(r||r===void 0)do a=await this.listPageRangesDiffSegment(e,t,n,r,i),r=a.continuationToken,yield await a;while(r)}async*listPageRangeDiffItems(e,t,n,r){for await(let i of this.listPageRangeDiffItemSegments(e,t,n,void 0,r))yield*jS(i)}listPageRangesDiff(e,t,n,r={}){r.conditions=r.conditions||{};let i=this.listPageRangeDiffItems(e,t,n,{...r});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...r})}}async getPageRangesDiffForManagedDisks(e,t,n,r={}){return r.conditions=r.conditions||{},Q.withSpan(`PageBlobClient-GetPageRangesDiffForManagedDisks`,r,async i=>bC(Z(await this.pageBlobContext.getPageRangesDiff({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},prevSnapshotUrl:n,range:kC({offset:e,count:t}),tracingOptions:i.tracingOptions}))))}async resize(e,t={}){return t.conditions=t.conditions||{},Q.withSpan(`PageBlobClient-resize`,t,async n=>Z(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions})))}async updateSequenceNumber(e,t,n={}){return n.conditions=n.conditions||{},Q.withSpan(`PageBlobClient-updateSequenceNumber`,n,async r=>Z(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async startCopyIncremental(e,t={}){return Q.withSpan(`PageBlobClient-startCopyIncremental`,t,async n=>Z(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions})))}},BC=class extends Error{constructor(e){super(e),this.name=`InvalidResponseError`}},VC=class extends Error{constructor(e){let t=`Unable to make request: ${e}\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(t),this.code=e,this.name=`NetworkError`}};VC.isNetworkErrorCode=e=>e?[`ECONNRESET`,`ENOTFOUND`,`ETIMEDOUT`,`ECONNREFUSED`,`EHOSTUNREACH`].includes(e):!1;var HC=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. +More 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`),this.name=`UsageError`}};HC.isUsageErrorMessage=e=>e?e.includes(`insufficient usage`):!1;var UC=class extends Error{constructor(e){super(e),this.name=`RateLimitError`}},WC=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},GC=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Nr(`Sent ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function KC(e,t,n){return WC(this,void 0,void 0,function*(){let r=new IC(e),i=r.getBlockBlobClient(),a=new GC(n?.archiveSizeBytes??0),o={blockSize:n?.uploadChunkSize,concurrency:n?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),U(`BlobClient: ${r.name}:${r.accountName}:${r.containerName}`);let e=yield i.uploadFile(t,o);if(e._response.status>=400)throw new BC(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`);return e}catch(e){throw jr(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`),e}finally{a.stopDisplayTimer()}})}var qC=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function JC(e){return e?e>=200&&e<300:!1}function YC(e){return e?e>=500:!0}function XC(e){return e?[Sn.BadGateway,Sn.ServiceUnavailable,Sn.GatewayTimeout].includes(e):!1}function ZC(e){return qC(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}function QC(e,t,n){return qC(this,arguments,void 0,function*(e,t,n,r=2,i=la,a=void 0){let o=``,s=1;for(;s<=r;){let c,l,u=!1;try{c=yield t()}catch(e){a&&(c=a(e)),u=!0,o=e.message}if(c&&(l=n(c),!YC(l)))return c;if(l&&(u=XC(l),o=`Cache service responded with ${l}`),U(`${e} - Attempt ${s} of ${r} failed with error: ${o}`),!u){U(`${e} - Error is not retryable`);break}yield ZC(i),s++}throw Error(`${e} failed: ${o}`)})}function $C(e,t){return qC(this,arguments,void 0,function*(e,t,n=2,r=la){return yield QC(e,t,e=>e.statusCode,n,r,e=>{if(e instanceof On)return{statusCode:e.statusCode,result:null,headers:{},error:e}})})}function ew(e,t){return qC(this,arguments,void 0,function*(e,t,n=2,r=la){return yield QC(e,t,e=>e.message.statusCode,n,r)})}var tw=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function nw(e,t){return tw(this,void 0,void 0,function*(){yield b.promisify(ne.pipeline)(e.message,t)})}var rw=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset+=this.segmentSize,this.segmentIndex+=1,this.segmentSize=e,this.receivedBytes=0,U(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,t=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,r=(e/(1024*1024)/(n/1e3)).toFixed(1);Nr(`Received ${e} of ${this.contentLength} (${t}%), ${r} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let t=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(t,e))};this.timeoutHandle=setTimeout(t,e)}stopDisplayTimer(){this.timeoutHandle&&=(clearTimeout(this.timeoutHandle),void 0),this.display()}};function iw(e,t){return tw(this,void 0,void 0,function*(){let n=s.createWriteStream(t),r=new An(`actions/cache`),i=yield ew(`downloadCache`,()=>tw(this,void 0,void 0,function*(){return r.get(e)}));i.message.socket.setTimeout(ua,()=>{i.message.destroy(),U(`Aborting download, socket timed out after ${ua} ms`)}),yield nw(i,n);let a=i.message.headers[`content-length`];if(a){let e=parseInt(a),n=va(t);if(n!==e)throw Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}else U(`Unable to validate download, no Content-Length header`)})}function aw(e,t,n){return tw(this,void 0,void 0,function*(){let r=yield s.promises.open(t,`w`),i=new An(`actions/cache`,void 0,{socketTimeout:n.timeoutInMs,keepAlive:!0});try{let t=(yield ew(`downloadCacheMetadata`,()=>tw(this,void 0,void 0,function*(){return yield i.request(`HEAD`,e,null,{})}))).message.headers[`content-length`];if(t==null)throw Error(`Content-Length not found on blob response`);let a=parseInt(t);if(Number.isNaN(a))throw Error(`Could not interpret Content-Length: ${a}`);let o=[],s=4*1024*1024;for(let t=0;ttw(this,void 0,void 0,function*(){return yield ow(i,e,t,n)})})}o.reverse();let c=0,l=0,u=new rw(a);u.startDisplayTimer();let d=u.onProgress(),f=[],p,m=()=>tw(this,void 0,void 0,function*(){let e=yield Promise.race(Object.values(f));yield r.write(e.buffer,0,e.count,e.offset),c--,delete f[e.offset],l+=e.count,d({loadedBytes:l})});for(;p=o.pop();)f[p.offset]=p.promiseGetter(),c++,c>=(n.downloadConcurrency??10)&&(yield m());for(;c>0;)yield m()}finally{i.dispose(),yield r.close()}})}function ow(e,t,n,r){return tw(this,void 0,void 0,function*(){let i=0;for(;;)try{let i=yield lw(3e4,sw(e,t,n,r));if(typeof i==`string`)throw Error(`downloadSegmentRetry failed due to timeout`);return i}catch(e){if(i>=5)throw e;i++}})}function sw(e,t,n,r){return tw(this,void 0,void 0,function*(){let i=yield ew(`downloadCachePart`,()=>tw(this,void 0,void 0,function*(){return yield e.get(t,{Range:`bytes=${n}-${n+r-1}`})}));if(!i.readBodyBuffer)throw Error(`Expected HttpClientResponse to implement readBodyBuffer`);return{offset:n,count:r,buffer:yield i.readBodyBuffer()}})}function cw(e,t,n){return tw(this,void 0,void 0,function*(){let r=new RC(e,void 0,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}}),i=(yield r.getProperties()).contentLength??-1;if(i<0)U(`Unable to determine content length, downloading file with http-client...`),yield iw(e,t);else{let e=Math.min(134217728,oe.constants.MAX_LENGTH),a=new rw(i),o=s.openSync(t,`w`);try{a.startDisplayTimer();let t=new AbortController,c=t.signal;for(;!a.isDone();){let l=a.segmentOffset+a.segmentSize,u=Math.min(e,i-l);a.nextSegment(u);let d=yield lw(n.segmentTimeoutInMs||36e5,r.downloadToBuffer(l,u,{abortSignal:c,concurrency:n.downloadConcurrency,onProgress:a.onProgress()}));if(d===`timeout`)throw t.abort(),Error(`Aborting cache download as the download time exceeded the timeout.`);Buffer.isBuffer(d)&&s.writeFileSync(o,d)}}finally{a.stopDisplayTimer(),s.closeSync(o)}}})}const lw=(e,t)=>tw(void 0,void 0,void 0,function*(){let n,r=new Promise(t=>{n=setTimeout(()=>t(`timeout`),e)});return Promise.race([t,r]).then(e=>(clearTimeout(n),e))});function uw(e){let t={useAzureSdk:!1,uploadConcurrency:4,uploadChunkSize:32*1024*1024};return e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.uploadConcurrency==`number`&&(t.uploadConcurrency=e.uploadConcurrency),typeof e.uploadChunkSize==`number`&&(t.uploadChunkSize=e.uploadChunkSize)),t.uploadConcurrency=isNaN(Number(process.env.CACHE_UPLOAD_CONCURRENCY))?t.uploadConcurrency:Math.min(32,Number(process.env.CACHE_UPLOAD_CONCURRENCY)),t.uploadChunkSize=isNaN(Number(process.env.CACHE_UPLOAD_CHUNK_SIZE))?t.uploadChunkSize:Math.min(128*1024*1024,Number(process.env.CACHE_UPLOAD_CHUNK_SIZE)*1024*1024),U(`Use Azure SDK: ${t.useAzureSdk}`),U(`Upload concurrency: ${t.uploadConcurrency}`),U(`Upload chunk size: ${t.uploadChunkSize}`),t}function dw(e){let t={useAzureSdk:!1,concurrentBlobDownloads:!0,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:!1};e&&(typeof e.useAzureSdk==`boolean`&&(t.useAzureSdk=e.useAzureSdk),typeof e.concurrentBlobDownloads==`boolean`&&(t.concurrentBlobDownloads=e.concurrentBlobDownloads),typeof e.downloadConcurrency==`number`&&(t.downloadConcurrency=e.downloadConcurrency),typeof e.timeoutInMs==`number`&&(t.timeoutInMs=e.timeoutInMs),typeof e.segmentTimeoutInMs==`number`&&(t.segmentTimeoutInMs=e.segmentTimeoutInMs),typeof e.lookupOnly==`boolean`&&(t.lookupOnly=e.lookupOnly));let n=process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS;return n&&!isNaN(Number(n))&&isFinite(Number(n))&&(t.segmentTimeoutInMs=Number(n)*60*1e3),U(`Use Azure SDK: ${t.useAzureSdk}`),U(`Download concurrency: ${t.downloadConcurrency}`),U(`Request timeout (ms): ${t.timeoutInMs}`),U(`Cache segment download timeout mins env var: ${process.env.SEGMENT_DOWNLOAD_TIMEOUT_MINS}`),U(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`),U(`Lookup only: ${t.lookupOnly}`),t}function fw(){let e=new URL(process.env.GITHUB_SERVER_URL||`https://github.com`).hostname.trimEnd().toUpperCase(),t=e===`GITHUB.COM`,n=e.endsWith(`.GHE.COM`),r=e.endsWith(`.LOCALHOST`);return!t&&!n&&!r}function pw(){return fw()?`v1`:process.env.ACTIONS_CACHE_SERVICE_V2?`v2`:`v1`}function mw(){let e=pw();switch(e){case`v1`:return process.env.ACTIONS_CACHE_URL||process.env.ACTIONS_RESULTS_URL||``;case`v2`:return process.env.ACTIONS_RESULTS_URL||``;default:throw Error(`Unsupported cache service version: ${e}`)}}var hw=z(((e,t)=>{t.exports={name:`@actions/cache`,version:`6.0.1`,description:`Actions cache lib`,keywords:[`github`,`actions`,`cache`],homepage:`https://github.com/actions/toolkit/tree/main/packages/cache`,license:`MIT`,type:`module`,main:`lib/cache.js`,types:`lib/cache.d.ts`,exports:{".":{types:`./lib/cache.d.ts`,import:`./lib/cache.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/cache`},scripts:{"audit-moderate":`npm install && npm audit --json --audit-level=moderate > audit.json`,test:`echo "Error: run tests from root" && exit 1`,tsc:`tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/`},bugs:{url:`https://github.com/actions/toolkit/issues`},dependencies:{"@actions/core":`^3.0.1`,"@actions/exec":`^3.0.0`,"@actions/glob":`^0.6.1`,"@actions/http-client":`^4.0.1`,"@actions/io":`^3.0.2`,"@azure/core-rest-pipeline":`^1.23.0`,"@azure/storage-blob":`^12.31.0`,"@protobuf-ts/runtime-rpc":`^2.11.1`,semver:`^7.7.4`},devDependencies:{"@protobuf-ts/plugin":`^2.11.1`,"@types/node":`^25.6.0`,"@types/semver":`^7.7.1`,typescript:`^5.9.3`},overrides:{"uri-js":`npm:uri-js-replace@^1.0.1`,"node-fetch":`^3.3.2`}}})),gw=z(((e,t)=>{t.exports={version:hw().version}}))();function _w(){return`@actions/cache-${gw.version}`}var vw=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function yw(e){let t=mw();if(!t)throw Error(`Cache Service Url not found, unable to restore cache.`);let n=`${t}_apis/artifactcache/${e}`;return U(`Resource Url: ${n}`),n}function bw(e,t){return`${e};api-version=${t}`}function xw(){return{headers:{Accept:bw(`application/json`,`6.0-preview.1`)}}}function Sw(){let e=new Nn(process.env.ACTIONS_RUNTIME_TOKEN||``);return new An(_w(),[e],xw())}function Cw(e,t,n){return vw(this,void 0,void 0,function*(){let r=Sw(),i=Ea(t,n?.compressionMethod,n?.enableCrossOsArchive),a=`cache?keys=${encodeURIComponent(e.join(`,`))}&version=${i}`,o=yield $C(`getCacheEntry`,()=>vw(this,void 0,void 0,function*(){return r.getJson(yw(a))}));if(o.statusCode===204)return kr()&&(yield ww(e[0],r,i)),null;if(!JC(o.statusCode))throw Error(`Cache service responded with ${o.statusCode}`);let s=o.result,c=s?.archiveLocation;if(!c)throw Error(`Cache not found.`);return Tr(c),U(`Cache Result:`),U(JSON.stringify(s)),s})}function ww(e,t,n){return vw(this,void 0,void 0,function*(){let r=`caches?key=${encodeURIComponent(e)}`,i=yield $C(`listCache`,()=>vw(this,void 0,void 0,function*(){return t.getJson(yw(r))}));if(i.statusCode===200){let t=i.result,r=t?.totalCount;if(r&&r>0){U(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env.GITHUB_REF}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(let e of t?.artifactCaches||[])U(`Cache Key: ${e?.cacheKey}, Cache Version: ${e?.cacheVersion}, Cache Scope: ${e?.scope}, Cache Created: ${e?.creationTime}`)}}})}function Tw(e,t,n){return vw(this,void 0,void 0,function*(){let r=new ie(e),i=dw(n);r.hostname.endsWith(`.blob.core.windows.net`)?i.useAzureSdk?yield cw(e,t,i):i.concurrentBlobDownloads?yield aw(e,t,i):yield iw(e,t):yield iw(e,t)})}function Ew(e,t,n){return vw(this,void 0,void 0,function*(){let r=Sw(),i={key:e,version:Ea(t,n?.compressionMethod,n?.enableCrossOsArchive),cacheSize:n?.cacheSize};return yield $C(`reserveCache`,()=>vw(this,void 0,void 0,function*(){return r.postJson(yw(`caches`),i)}))})}function Dw(e,t){return`bytes ${e}-${t}/*`}function Ow(e,t,n,r,i){return vw(this,void 0,void 0,function*(){U(`Uploading chunk of size ${i-r+1} bytes at offset ${r} with content range: ${Dw(r,i)}`);let a={"Content-Type":`application/octet-stream`,"Content-Range":Dw(r,i)},o=yield ew(`uploadChunk (start: ${r}, end: ${i})`,()=>vw(this,void 0,void 0,function*(){return e.sendStream(`PATCH`,t,n(),a)}));if(!JC(o.message.statusCode))throw Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function kw(e,t,n,r){return vw(this,void 0,void 0,function*(){let i=va(n),a=yw(`caches/${t.toString()}`),o=s.openSync(n,`r`),c=uw(r),l=Ta(`uploadConcurrency`,c.uploadConcurrency),u=Ta(`uploadChunkSize`,c.uploadChunkSize),d=[...Array(l).keys()];U(`Awaiting all uploads`);let f=0;try{yield Promise.all(d.map(()=>vw(this,void 0,void 0,function*(){for(;fs.createReadStream(n,{fd:o,start:r,end:c,autoClose:!1}).on(`error`,e=>{throw Error(`Cache upload failed because file read failed with ${e.message}`)}),r,c)}})))}finally{s.closeSync(o)}})}function Aw(e,t,n){return vw(this,void 0,void 0,function*(){let r={size:n};return yield $C(`commitCache`,()=>vw(this,void 0,void 0,function*(){return e.postJson(yw(`caches/${t.toString()}`),r)}))})}function jw(e,t,n,r){return vw(this,void 0,void 0,function*(){if(uw(r).useAzureSdk){if(!n)throw Error(`Azure Storage SDK can only be used when a signed URL is provided.`);yield KC(n,t,r)}else{let n=Sw();U(`Upload cache`),yield kw(n,e,t,r),U(`Commiting cache`);let i=va(t);Nr(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);let a=yield Aw(n,e,i);if(!JC(a.statusCode))throw Error(`Cache service responded with ${a.statusCode} during commit cache.`);Nr(`Cache saved successfully`)}})}var Mw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonObject=e.typeofJsonValue=void 0;function t(e){let t=typeof e;if(t==`object`){if(Array.isArray(e))return`array`;if(e===null)return`null`}return t}e.typeofJsonValue=t;function n(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}e.isJsonObject=n})),Nw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.base64encode=e.base64decode=void 0;let t=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`.split(``),n=[];for(let e=0;e>4,s=o,a=2;break;case 2:r[i++]=(s&15)<<4|(o&60)>>2,s=o,a=3;break;case 3:r[i++]=(s&3)<<6|o,a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return r.subarray(0,i)}e.base64decode=r;function i(e){let n=``,r=0,i,a=0;for(let o=0;o>2],a=(i&3)<<4,r=1;break;case 1:n+=t[a|i>>4],a=(i&15)<<2,r=2;break;case 2:n+=t[a|i>>6],n+=t[i&63],r=0;break}return r&&(n+=t[a],n+=`=`,r==1&&(n+=`=`)),n}e.base64encode=i})),Pw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.utf8read=void 0;let t=e=>String.fromCharCode.apply(String,e);function n(e){if(e.length<1)return``;let n=0,r=[],i=[],a=0,o,s=e.length;for(;n191&&o<224?i[a++]=(o&31)<<6|e[n++]&63:o>239&&o<365?(o=((o&7)<<18|(e[n++]&63)<<12|(e[n++]&63)<<6|e[n++]&63)-65536,i[a++]=55296+(o>>10),i[a++]=56320+(o&1023)):i[a++]=(o&15)<<12|(e[n++]&63)<<6|e[n++]&63,a>8191&&(r.push(t(i)),a=0);return r.length?(a&&r.push(t(i.slice(0,a))),r.join(``)):t(i.slice(0,a))}e.utf8read=n})),Fw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.WireType=e.mergeBinaryOptions=e.UnknownFieldHandler=void 0,(function(e){e.symbol=Symbol.for(`protobuf-ts/unknown`),e.onRead=(n,r,i,a,o)=>{(t(r)?r[e.symbol]:r[e.symbol]=[]).push({no:i,wireType:a,data:o})},e.onWrite=(t,n,r)=>{for(let{no:t,wireType:i,data:a}of e.list(n))r.tag(t,i).raw(a)},e.list=(n,r)=>{if(t(n)){let t=n[e.symbol];return r?t.filter(e=>e.no==r):t}return[]},e.last=(t,n)=>e.list(t,n).slice(-1)[0];let t=t=>t&&Array.isArray(t[e.symbol])})(e.UnknownFieldHandler||={});function t(e,t){return Object.assign(Object.assign({},e),t)}e.mergeBinaryOptions=t,(function(e){e[e.Varint=0]=`Varint`,e[e.Bit64=1]=`Bit64`,e[e.LengthDelimited=2]=`LengthDelimited`,e[e.StartGroup=3]=`StartGroup`,e[e.EndGroup=4]=`EndGroup`,e[e.Bit32=5]=`Bit32`})(e.WireType||={})})),Iw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.varint32read=e.varint32write=e.int64toString=e.int64fromString=e.varint64write=e.varint64read=void 0;function t(){let e=0,t=0;for(let n=0;n<28;n+=7){let r=this.buf[this.pos++];if(e|=(r&127)<>4,!(n&128))return this.assertBounds(),[e,t];for(let n=3;n<=31;n+=7){let r=this.buf[this.pos++];if(t|=(r&127)<>>r,a=!(!(i>>>7)&&t==0),o=(a?i|128:i)&255;if(n.push(o),!a)return}let r=e>>>28&15|(t&7)<<4,i=!!(t>>3);if(n.push((i?r|128:r)&255),i){for(let e=3;e<31;e+=7){let r=t>>>e,i=!!(r>>>7),a=(i?r|128:r)&255;if(n.push(a),!i)return}n.push(t>>>31&1)}}e.varint64write=n;let r=65536*65536;function i(e){let t=e[0]==`-`;t&&(e=e.slice(1));let n=1e6,i=0,a=0;function o(t,o){let s=Number(e.slice(t,o));a*=n,i=i*n+s,i>=r&&(a+=i/r|0,i%=r)}return o(-24,-18),o(-18,-12),o(-12,-6),o(-6),[t,i,a]}e.int64fromString=i;function a(e,t){if(t>>>0<=2097151)return``+(r*t+(e>>>0));let n=e&16777215,i=(e>>>24|t<<8)>>>0&16777215,a=t>>16&65535,o=n+i*6777216+a*6710656,s=i+a*8147497,c=a*2,l=1e7;o>=l&&(s+=Math.floor(o/l),o%=l),s>=l&&(c+=Math.floor(s/l),s%=l);function u(e,t){let n=e?String(e):``;return t?`0000000`.slice(n.length)+n:n}return u(c,0)+u(s,c)+u(o,1)}e.int64toString=a;function o(e,t){if(e>=0){for(;e>127;)t.push(e&127|128),e>>>=7;t.push(e)}else{for(let n=0;n<9;n++)t.push(e&127|128),e>>=7;t.push(1)}}e.varint32write=o;function s(){let e=this.buf[this.pos++],t=e&127;if(!(e&128)||(e=this.buf[this.pos++],t|=(e&127)<<7,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<14,!(e&128))||(e=this.buf[this.pos++],t|=(e&127)<<21,!(e&128)))return this.assertBounds(),t;e=this.buf[this.pos++],t|=(e&15)<<28;for(let t=5;e&128&&t<10;t++)e=this.buf[this.pos++];if(e&128)throw Error(`invalid varint`);return this.assertBounds(),t>>>0}e.varint32read=s})),Lw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.PbLong=e.PbULong=e.detectBi=void 0;let t=Iw(),n;function r(){let e=new DataView(new ArrayBuffer(8));n=globalThis.BigInt!==void 0&&typeof e.getBigInt64==`function`&&typeof e.getBigUint64==`function`&&typeof e.setBigInt64==`function`&&typeof e.setBigUint64==`function`?{MIN:BigInt(`-9223372036854775808`),MAX:BigInt(`9223372036854775807`),UMIN:BigInt(`0`),UMAX:BigInt(`18446744073709551615`),C:BigInt,V:e}:void 0}e.detectBi=r,r();function i(e){if(!e)throw Error(`BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support`)}let a=/^-?[0-9]+$/,o=4294967296,s=2147483648;var c=class{constructor(e,t){this.lo=e|0,this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*o+(this.lo>>>0);if(!Number.isSafeInteger(e))throw Error(`cannot convert to safe number`);return e}},l=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.UMAX)throw Error(`ulong too large`);return n.V.setBigUint64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,s]=t.int64fromString(r);if(n)throw Error(`signed value for ulong`);return new e(i,s);case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);if(r<0)throw Error(`signed value for ulong`);return new e(r,r/o)}throw Error(`unknown value `+typeof r)}toString(){return n?this.toBigInt().toString():t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigUint64(0,!0)}};e.PbULong=l,l.ZERO=new l(0,0);var u=class e extends c{static from(r){if(n)switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r==``)throw Error(`string is no integer`);r=n.C(r);case`number`:if(r===0)return this.ZERO;r=n.C(r);case`bigint`:if(!r)return this.ZERO;if(rn.MAX)throw Error(`signed long too large`);return n.V.setBigInt64(0,r,!0),new e(n.V.getInt32(0,!0),n.V.getInt32(4,!0))}else switch(typeof r){case`string`:if(r==`0`)return this.ZERO;if(r=r.trim(),!a.test(r))throw Error(`string is no integer`);let[n,i,c]=t.int64fromString(r);if(n){if(c>s||c==s&&i!=0)throw Error(`signed long too small`)}else if(c>=s)throw Error(`signed long too large`);let l=new e(i,c);return n?l.negate():l;case`number`:if(r==0)return this.ZERO;if(!Number.isSafeInteger(r))throw Error(`number is no integer`);return r>0?new e(r,r/o):new e(-r,-r/o).negate()}throw Error(`unknown value `+typeof r)}isNegative(){return(this.hi&s)!=0}negate(){let t=~this.hi,n=this.lo;return n?n=~n+1:t+=1,new e(n,t)}toString(){if(n)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return`-`+t.int64toString(e.lo,e.hi)}return t.int64toString(this.lo,this.hi)}toBigInt(){return i(n),n.V.setInt32(0,this.lo,!0),n.V.setInt32(4,this.hi,!0),n.V.getBigInt64(0,!0)}};e.PbLong=u,u.ZERO=new u(0,0)})),Rw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryReader=e.binaryReadOptions=void 0;let t=Fw(),n=Lw(),r=Iw(),i={readUnknownField:!0,readerFactory:e=>new o(e)};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryReadOptions=a;var o=class{constructor(e,t){this.varint64=r.varint64read,this.uint32=r.varint32read,this.buf=e,this.len=e.length,this.pos=0,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.textDecoder=t??new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw Error(`illegal tag: field no `+t+` wire type `+n);return[t,n]}skip(e){let n=this.pos;switch(e){case t.WireType.Varint:for(;this.buf[this.pos++]&128;);break;case t.WireType.Bit64:this.pos+=4;case t.WireType.Bit32:this.pos+=4;break;case t.WireType.LengthDelimited:let n=this.uint32();this.pos+=n;break;case t.WireType.StartGroup:let r;for(;(r=this.tag()[1])!==t.WireType.EndGroup;)this.skip(r);break;default:throw Error(`cant skip wire type `+e)}return this.assertBounds(),this.buf.subarray(n,this.pos)}assertBounds(){if(this.pos>this.len)throw RangeError(`premature EOF`)}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new n.PbLong(...this.varint64())}uint64(){return new n.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64(),r=-(e&1);return e=(e>>>1|(t&1)<<31)^r,t=t>>>1^r,new n.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return new n.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new n.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let e=this.uint32(),t=this.pos;return this.pos+=e,this.assertBounds(),this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}};e.BinaryReader=o})),zw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.assertFloat32=e.assertUInt32=e.assertInt32=e.assertNever=e.assert=void 0;function t(e,t){if(!e)throw Error(t)}e.assert=t;function n(e,t){throw Error(t??`Unexpected object: `+e)}e.assertNever=n;function r(e){if(typeof e!=`number`)throw Error(`invalid int 32: `+typeof e);if(!Number.isInteger(e)||e>2147483647||e<-2147483648)throw Error(`invalid int 32: `+e)}e.assertInt32=r;function i(e){if(typeof e!=`number`)throw Error(`invalid uint 32: `+typeof e);if(!Number.isInteger(e)||e>4294967295||e<0)throw Error(`invalid uint 32: `+e)}e.assertUInt32=i;function a(e){if(typeof e!=`number`)throw Error(`invalid float 32: `+typeof e);if(Number.isFinite(e)&&(e>34028234663852886e22||e<-34028234663852886e22))throw Error(`invalid float 32: `+e)}e.assertFloat32=a})),Bw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BinaryWriter=e.binaryWriteOptions=void 0;let t=Lw(),n=Iw(),r=zw(),i={writeUnknownFields:!0,writerFactory:()=>new o};function a(e){return e?Object.assign(Object.assign({},i),e):i}e.binaryWriteOptions=a;var o=class{constructor(e){this.stack=[],this.textEncoder=e??new TextEncoder,this.chunks=[],this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t>>0)}raw(e){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(e),this}uint32(e){for(r.assertUInt32(e);e>127;)this.buf.push(e&127|128),e>>>=7;return this.buf.push(e),this}int32(e){return r.assertInt32(e),n.varint32write(e,this.buf),this}bool(e){return this.buf.push(+!!e),this}bytes(e){return this.uint32(e.byteLength),this.raw(e)}string(e){let t=this.textEncoder.encode(e);return this.uint32(t.byteLength),this.raw(t)}float(e){r.assertFloat32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setFloat32(0,e,!0),this.raw(t)}double(e){let t=new Uint8Array(8);return new DataView(t.buffer).setFloat64(0,e,!0),this.raw(t)}fixed32(e){r.assertUInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setUint32(0,e,!0),this.raw(t)}sfixed32(e){r.assertInt32(e);let t=new Uint8Array(4);return new DataView(t.buffer).setInt32(0,e,!0),this.raw(t)}sint32(e){return r.assertInt32(e),e=(e<<1^e>>31)>>>0,n.varint32write(e,this.buf),this}sfixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbLong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}fixed64(e){let n=new Uint8Array(8),r=new DataView(n.buffer),i=t.PbULong.from(e);return r.setInt32(0,i.lo,!0),r.setInt32(4,i.hi,!0),this.raw(n)}int64(e){let r=t.PbLong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}sint64(e){let r=t.PbLong.from(e),i=r.hi>>31,a=r.lo<<1^i,o=(r.hi<<1|r.lo>>>31)^i;return n.varint64write(a,o,this.buf),this}uint64(e){let r=t.PbULong.from(e);return n.varint64write(r.lo,r.hi,this.buf),this}};e.BinaryWriter=o})),Vw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeJsonOptions=e.jsonWriteOptions=e.jsonReadOptions=void 0;let t={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0},n={ignoreUnknownFields:!1};function r(e){return e?Object.assign(Object.assign({},n),e):n}e.jsonReadOptions=r;function i(e){return e?Object.assign(Object.assign({},t),e):t}e.jsonWriteOptions=i;function a(e,t){let n=Object.assign(Object.assign({},e),t);return n.typeRegistry=[...e?.typeRegistry??[],...t?.typeRegistry??[]],n}e.mergeJsonOptions=a})),Hw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MESSAGE_TYPE=void 0,e.MESSAGE_TYPE=Symbol.for(`protobuf-ts/message-type`)})),Uw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.lowerCamelCase=void 0;function t(e){let t=!1,n=[];for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.readMessageOption=e.readFieldOption=e.readFieldOptions=e.normalizeFieldInfo=e.RepeatType=e.LongType=e.ScalarType=void 0;let t=Uw();(function(e){e[e.DOUBLE=1]=`DOUBLE`,e[e.FLOAT=2]=`FLOAT`,e[e.INT64=3]=`INT64`,e[e.UINT64=4]=`UINT64`,e[e.INT32=5]=`INT32`,e[e.FIXED64=6]=`FIXED64`,e[e.FIXED32=7]=`FIXED32`,e[e.BOOL=8]=`BOOL`,e[e.STRING=9]=`STRING`,e[e.BYTES=12]=`BYTES`,e[e.UINT32=13]=`UINT32`,e[e.SFIXED32=15]=`SFIXED32`,e[e.SFIXED64=16]=`SFIXED64`,e[e.SINT32=17]=`SINT32`,e[e.SINT64=18]=`SINT64`})(e.ScalarType||={}),(function(e){e[e.BIGINT=0]=`BIGINT`,e[e.STRING=1]=`STRING`,e[e.NUMBER=2]=`NUMBER`})(e.LongType||={});var n;(function(e){e[e.NO=0]=`NO`,e[e.PACKED=1]=`PACKED`,e[e.UNPACKED=2]=`UNPACKED`})(n=e.RepeatType||={});function r(e){return e.localName=e.localName??t.lowerCamelCase(e.name),e.jsonName=e.jsonName??t.lowerCamelCase(e.name),e.repeat=e.repeat??n.NO,e.opt=e.opt??(e.repeat||e.oneof?!1:e.kind==`message`),e}e.normalizeFieldInfo=r;function i(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readFieldOptions=i;function a(e,t,n,r){let i=e.fields.find((e,n)=>e.localName==t||n==t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readFieldOption=a;function o(e,t,n){let r=e.options[t];return r===void 0?r:n?n.fromJson(r):r}e.readMessageOption=o})),Gw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getSelectedOneofValue=e.clearOneofValue=e.setUnknownOneofValue=e.setOneofValue=e.getOneofValue=e.isOneofGroup=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(`oneofKind`))return!1;switch(typeof e.oneofKind){case`string`:return e[e.oneofKind]===void 0?!1:Object.keys(e).length==2;case`undefined`:return Object.keys(e).length==1;default:return!1}}e.isOneofGroup=t;function n(e,t){return e[t]}e.getOneofValue=n;function r(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&(e[t]=n)}e.setOneofValue=r;function i(e,t,n){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=t,n!==void 0&&t!==void 0&&(e[t]=n)}e.setUnknownOneofValue=i;function a(e){e.oneofKind!==void 0&&delete e[e.oneofKind],e.oneofKind=void 0}e.clearOneofValue=a;function o(e){if(e.oneofKind!==void 0)return e[e.oneofKind]}e.getSelectedOneofValue=o})),Kw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionTypeCheck=void 0;let t=Ww(),n=Gw();e.ReflectionTypeCheck=class{constructor(e){this.fields=e.fields??[]}prepare(){if(this.data)return;let e=[],t=[],n=[];for(let r of this.fields)if(r.oneof)n.includes(r.oneof)||(n.push(r.oneof),e.push(r.oneof),t.push(r.oneof));else switch(t.push(r.localName),r.kind){case`scalar`:case`enum`:(!r.opt||r.repeat)&&e.push(r.localName);break;case`message`:r.repeat&&e.push(r.localName);break;case`map`:e.push(r.localName);break}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,r=!1){if(t<0)return!0;if(typeof e!=`object`||!e)return!1;this.prepare();let i=Object.keys(e),a=this.data;if(i.length!i.includes(e))||!r&&i.some(e=>!a.known.includes(e)))return!1;if(t<1)return!0;for(let i of a.oneofs){let a=e[i];if(!n.isOneofGroup(a))return!1;if(a.oneofKind===void 0)continue;let o=this.fields.find(e=>e.localName===a.oneofKind);if(!o||!this.field(a[a.oneofKind],o,r,t))return!1}for(let n of this.fields)if(n.oneof===void 0&&!this.field(e[n.localName],n,r,t))return!1;return!0}field(e,n,r,i){let a=n.repeat;switch(n.kind){case`scalar`:return e===void 0?n.opt:a?this.scalars(e,n.T,i,n.L):this.scalar(e,n.T,n.L);case`enum`:return e===void 0?n.opt:a?this.scalars(e,t.ScalarType.INT32,i):this.scalar(e,t.ScalarType.INT32);case`message`:return e===void 0?!0:a?this.messages(e,n.T(),r,i):this.message(e,n.T(),r,i);case`map`:if(typeof e!=`object`||!e)return!1;if(i<2)return!0;if(!this.mapKeys(e,n.K,i))return!1;switch(n.V.kind){case`scalar`:return this.scalars(Object.values(e),n.V.T,i,n.V.L);case`enum`:return this.scalars(Object.values(e),t.ScalarType.INT32,i);case`message`:return this.messages(Object.values(e),n.V.T(),r,i)}break}return!0}message(e,t,n,r){return n?t.isAssignable(e,r):t.is(e,r)}messages(e,t,n,r){if(!Array.isArray(e))return!1;if(r<2)return!0;if(n){for(let n=0;nparseInt(e)),n,r);case t.ScalarType.BOOL:return this.scalars(i.slice(0,r).map(e=>e==`true`?!0:e==`false`?!1:e),n,r);default:return this.scalars(i,n,r,t.LongType.STRING)}}}})),qw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionLongConvert=void 0;let t=Ww();function n(e,n){switch(n){case t.LongType.BIGINT:return e.toBigInt();case t.LongType.NUMBER:return e.toNumber();default:return e.toString()}}e.reflectionLongConvert=n})),Jw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonReader=void 0;let t=Mw(),n=Nw(),r=Ww(),i=Lw(),a=zw(),o=qw();e.ReflectionJsonReader=class{constructor(e){this.info=e}prepare(){if(this.fMap===void 0){this.fMap={};let e=this.info.fields??[];for(let t of e)this.fMap[t.name]=t,this.fMap[t.jsonName]=t,this.fMap[t.localName]=t}}assert(e,n,r){if(!e){let e=t.typeofJsonValue(r);throw(e==`number`||e==`boolean`)&&(e=r.toString()),Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${n}`)}}read(e,n,i){this.prepare();let a=[];for(let[o,s]of Object.entries(e)){let e=this.fMap[o];if(!e){if(!i.ignoreUnknownFields)throw Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${o}`);continue}let c=e.localName,l;if(e.oneof){if(s===null&&(e.kind!==`enum`||e.T()[0]!==`google.protobuf.NullValue`))continue;if(a.includes(e.oneof))throw Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);a.push(e.oneof),l=n[e.oneof]={oneofKind:c}}else l=n;if(e.kind==`map`){if(s===null)continue;this.assert(t.isJsonObject(s),e.name,s);let n=l[c];for(let[t,a]of Object.entries(s)){this.assert(a!==null,e.name+` map value`,null);let o;switch(e.V.kind){case`message`:o=e.V.T().internalJsonRead(a,i);break;case`enum`:if(o=this.enum(e.V.T(),a,e.name,i.ignoreUnknownFields),o===!1)continue;break;case`scalar`:o=this.scalar(a,e.V.T,e.V.L,e.name);break}this.assert(o!==void 0,e.name+` map value`,a);let s=t;e.K==r.ScalarType.BOOL&&(s=s==`true`?!0:s==`false`?!1:s),s=this.scalar(s,e.K,r.LongType.STRING,e.name).toString(),n[s]=o}}else if(e.repeat){if(s===null)continue;this.assert(Array.isArray(s),e.name,s);let t=l[c];for(let n of s){this.assert(n!==null,e.name,null);let r;switch(e.kind){case`message`:r=e.T().internalJsonRead(n,i);break;case`enum`:if(r=this.enum(e.T(),n,e.name,i.ignoreUnknownFields),r===!1)continue;break;case`scalar`:r=this.scalar(n,e.T,e.L,e.name);break}this.assert(r!==void 0,e.name,s),t.push(r)}}else switch(e.kind){case`message`:if(s===null&&e.T().typeName!=`google.protobuf.Value`){this.assert(e.oneof===void 0,e.name+` (oneof member)`,null);continue}l[c]=e.T().internalJsonRead(s,i,l[c]);break;case`enum`:if(s===null)continue;let t=this.enum(e.T(),s,e.name,i.ignoreUnknownFields);if(t===!1)continue;l[c]=t;break;case`scalar`:if(s===null)continue;l[c]=this.scalar(s,e.T,e.L,e.name);break}}}enum(e,t,n,r){if(e[0]==`google.protobuf.NullValue`&&a.assert(t===null||t===`NULL_VALUE`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`),t===null)return 0;switch(typeof t){case`number`:return a.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`),t;case`string`:let i=t;e[2]&&t.substring(0,e[2].length)===e[2]&&(i=t.substring(e[2].length));let o=e[1][i];return o===void 0&&r?!1:(a.assert(typeof o==`number`,`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`),o)}a.assert(!1,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,s,c){let l;try{switch(t){case r.ScalarType.DOUBLE:case r.ScalarType.FLOAT:if(e===null)return 0;if(e===`NaN`)return NaN;if(e===`Infinity`)return 1/0;if(e===`-Infinity`)return-1/0;if(e===``){l=`empty string`;break}if(typeof e==`string`&&e.trim().length!==e.length){l=`extra whitespace`;break}if(typeof e!=`string`&&typeof e!=`number`)break;let c=Number(e);if(Number.isNaN(c)){l=`not a number`;break}if(!Number.isFinite(c)){l=`too large or small`;break}return t==r.ScalarType.FLOAT&&a.assertFloat32(c),c;case r.ScalarType.INT32:case r.ScalarType.FIXED32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:case r.ScalarType.UINT32:if(e===null)return 0;let u;if(typeof e==`number`?u=e:e===``?l=`empty string`:typeof e==`string`&&(e.trim().length===e.length?u=Number(e):l=`extra whitespace`),u===void 0)break;return t==r.ScalarType.UINT32?a.assertUInt32(u):a.assertInt32(u),u;case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:if(e===null)return o.reflectionLongConvert(i.PbLong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbLong.from(e),s);case r.ScalarType.FIXED64:case r.ScalarType.UINT64:if(e===null)return o.reflectionLongConvert(i.PbULong.ZERO,s);if(typeof e!=`number`&&typeof e!=`string`)break;return o.reflectionLongConvert(i.PbULong.from(e),s);case r.ScalarType.BOOL:if(e===null)return!1;if(typeof e!=`boolean`)break;return e;case r.ScalarType.STRING:if(e===null)return``;if(typeof e!=`string`){l=`extra whitespace`;break}return e;case r.ScalarType.BYTES:if(e===null||e===``)return new Uint8Array;if(typeof e!=`string`)break;return n.base64decode(e)}}catch(e){l=e.message}this.assert(!1,c+(l?` - `+l:``),e)}}})),Yw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionJsonWriter=void 0;let t=Nw(),n=Lw(),r=Ww(),i=zw();e.ReflectionJsonWriter=class{constructor(e){this.fields=e.fields??[]}write(e,t){let n={},r=e;for(let e of this.fields){if(!e.oneof){let i=this.field(e,r[e.localName],t);i!==void 0&&(n[t.useProtoFieldName?e.name:e.jsonName]=i);continue}let a=r[e.oneof];if(a.oneofKind!==e.localName)continue;let o=e.kind==`scalar`||e.kind==`enum`?Object.assign(Object.assign({},t),{emitDefaultValues:!0}):t,s=this.field(e,a[e.localName],o);i.assert(s!==void 0),n[t.useProtoFieldName?e.name:e.jsonName]=s}return n}field(e,t,n){let r;if(e.kind==`map`){i.assert(typeof t==`object`&&!!t);let a={};switch(e.V.kind){case`scalar`:for(let[n,r]of Object.entries(t)){let t=this.scalar(e.V.T,r,e.name,!1,!0);i.assert(t!==void 0),a[n.toString()]=t}break;case`message`:let r=e.V.T();for(let[o,s]of Object.entries(t)){let t=this.message(r,s,e.name,n);i.assert(t!==void 0),a[o.toString()]=t}break;case`enum`:let o=e.V.T();for(let[r,s]of Object.entries(t)){i.assert(s===void 0||typeof s==`number`);let t=this.enum(o,s,e.name,!1,!0,n.enumAsInteger);i.assert(t!==void 0),a[r.toString()]=t}break}(n.emitDefaultValues||Object.keys(a).length>0)&&(r=a)}else if(e.repeat){i.assert(Array.isArray(t));let a=[];switch(e.kind){case`scalar`:for(let n=0;n0||n.emitDefaultValues)&&(r=a)}else switch(e.kind){case`scalar`:r=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case`enum`:r=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case`message`:r=this.message(e.T(),t,e.name,n);break}return r}enum(e,t,n,r,a,o){if(e[0]==`google.protobuf.NullValue`)return!a&&!r?void 0:null;if(t===void 0){i.assert(r);return}if(!(t===0&&!a&&!r))return i.assert(typeof t==`number`),i.assert(Number.isInteger(t)),o||!e[1].hasOwnProperty(t)?t:e[2]?e[2]+e[1][t]:e[1][t]}message(e,t,n,r){return t===void 0?r.emitDefaultValues?null:void 0:e.internalJsonWrite(t,r)}scalar(e,a,o,s,c){if(a===void 0){i.assert(s);return}let l=c||s;switch(e){case r.ScalarType.INT32:case r.ScalarType.SFIXED32:case r.ScalarType.SINT32:return a===0?l?0:void 0:(i.assertInt32(a),a);case r.ScalarType.FIXED32:case r.ScalarType.UINT32:return a===0?l?0:void 0:(i.assertUInt32(a),a);case r.ScalarType.FLOAT:i.assertFloat32(a);case r.ScalarType.DOUBLE:return a===0?l?0:void 0:(i.assert(typeof a==`number`),Number.isNaN(a)?`NaN`:a===1/0?`Infinity`:a===-1/0?`-Infinity`:a);case r.ScalarType.STRING:return a===``?l?``:void 0:(i.assert(typeof a==`string`),a);case r.ScalarType.BOOL:return a===!1?l?!1:void 0:(i.assert(typeof a==`boolean`),a);case r.ScalarType.UINT64:case r.ScalarType.FIXED64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let e=n.PbULong.from(a);return e.isZero()&&!l?void 0:e.toString();case r.ScalarType.INT64:case r.ScalarType.SFIXED64:case r.ScalarType.SINT64:i.assert(typeof a==`number`||typeof a==`string`||typeof a==`bigint`);let o=n.PbLong.from(a);return o.isZero()&&!l?void 0:o.toString();case r.ScalarType.BYTES:return i.assert(a instanceof Uint8Array),a.byteLength?t.base64encode(a):l?``:void 0}}}})),Xw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionScalarDefault=void 0;let t=Ww(),n=qw(),r=Lw();function i(e,i=t.LongType.STRING){switch(e){case t.ScalarType.BOOL:return!1;case t.ScalarType.UINT64:case t.ScalarType.FIXED64:return n.reflectionLongConvert(r.PbULong.ZERO,i);case t.ScalarType.INT64:case t.ScalarType.SFIXED64:case t.ScalarType.SINT64:return n.reflectionLongConvert(r.PbLong.ZERO,i);case t.ScalarType.DOUBLE:case t.ScalarType.FLOAT:return 0;case t.ScalarType.BYTES:return new Uint8Array;case t.ScalarType.STRING:return``;default:return 0}}e.reflectionScalarDefault=i})),Zw=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryReader=void 0;let t=Fw(),n=Ww(),r=qw(),i=Xw();e.ReflectionBinaryReader=class{constructor(e){this.info=e}prepare(){if(!this.fieldNoToField){let e=this.info.fields??[];this.fieldNoToField=new Map(e.map(e=>[e.no,e]))}}read(e,r,i,a){this.prepare();let o=a===void 0?e.len:e.pos+a;for(;e.pos{Object.defineProperty(e,"__esModule",{value:!0}),e.ReflectionBinaryWriter=void 0;let t=Fw(),n=Ww(),r=zw(),i=Lw();e.ReflectionBinaryWriter=class{constructor(e){this.info=e}prepare(){if(!this.fields){let e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort((e,t)=>e.no-t.no)}}write(e,i,a){this.prepare();for(let t of this.fields){let o,s,c=t.repeat,l=t.localName;if(t.oneof){let n=e[t.oneof];if(n.oneofKind!==l)continue;o=n[l],s=!0}else o=e[l],s=!1;switch(t.kind){case`scalar`:case`enum`:let e=t.kind==`enum`?n.ScalarType.INT32:t.T;if(c)if(r.assert(Array.isArray(o)),c==n.RepeatType.PACKED)this.packed(i,e,t.no,o);else for(let n of o)this.scalar(i,e,t.no,n,!0);else o===void 0?r.assert(t.opt):this.scalar(i,e,t.no,o,s||t.opt);break;case`message`:if(c){r.assert(Array.isArray(o));for(let e of o)this.message(i,a,t.T(),t.no,e)}else this.message(i,a,t.T(),t.no,o);break;case`map`:r.assert(typeof o==`object`&&!!o);for(let[e,n]of Object.entries(o))this.mapEntry(i,a,t,e,n);break}}let o=a.writeUnknownFields;o!==!1&&(o===!0?t.UnknownFieldHandler.onWrite:o)(this.info.typeName,e,i)}mapEntry(e,i,a,o,s){e.tag(a.no,t.WireType.LengthDelimited),e.fork();let c=o;switch(a.K){case n.ScalarType.INT32:case n.ScalarType.FIXED32:case n.ScalarType.UINT32:case n.ScalarType.SFIXED32:case n.ScalarType.SINT32:c=Number.parseInt(o);break;case n.ScalarType.BOOL:r.assert(o==`true`||o==`false`),c=o==`true`;break}switch(this.scalar(e,a.K,1,c,!0),a.V.kind){case`scalar`:this.scalar(e,a.V.T,2,s,!0);break;case`enum`:this.scalar(e,n.ScalarType.INT32,2,s,!0);break;case`message`:this.message(e,i,a.V.T(),2,s);break}e.join()}message(e,n,r,i,a){a!==void 0&&(r.internalBinaryWrite(a,e.tag(i,t.WireType.LengthDelimited).fork(),n),e.join())}scalar(e,t,n,r,i){let[a,o,s]=this.scalarInfo(t,r);(!s||i)&&(e.tag(n,a),e[o](r))}packed(e,i,a,o){if(!o.length)return;r.assert(i!==n.ScalarType.BYTES&&i!==n.ScalarType.STRING),e.tag(a,t.WireType.LengthDelimited),e.fork();let[,s]=this.scalarInfo(i);for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionCreate=void 0;let t=Xw(),n=Hw();function r(e){let r=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},n.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(!n.opt)if(n.oneof)r[n.oneof]={oneofKind:void 0};else if(n.repeat)r[e]=[];else switch(n.kind){case`scalar`:r[e]=t.reflectionScalarDefault(n.T,n.L);break;case`enum`:r[e]=0;break;case`map`:r[e]={};break}}return r}e.reflectionCreate=r})),eT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionMergePartial=void 0;function t(e,t,n){let r,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){let o=i[n.oneof];if(o?.oneofKind==null)continue;if(r=o[e],a=t[n.oneof],a.oneofKind=o.oneofKind,r==null){delete a[e];continue}}else if(r=i[e],a=t,r==null)continue;switch(n.repeat&&(a[e].length=r.length),n.kind){case`scalar`:case`enum`:if(n.repeat)for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.reflectionEquals=void 0;let t=Ww();function n(e,n,s){if(n===s)return!0;if(!n||!s)return!1;for(let c of e.fields){let e=c.localName,l=c.oneof?n[c.oneof][e]:n[e],u=c.oneof?s[c.oneof][e]:s[e];switch(c.kind){case`enum`:case`scalar`:let e=c.kind==`enum`?t.ScalarType.INT32:c.T;if(!(c.repeat?a(e,l,u):i(e,l,u)))return!1;break;case`map`:if(!(c.V.kind==`message`?o(c.V.T(),r(l),r(u)):a(c.V.kind==`enum`?t.ScalarType.INT32:c.V.T,r(l),r(u))))return!1;break;case`message`:let n=c.T();if(!(c.repeat?o(n,l,u):n.equals(l,u)))return!1;break}}return!0}e.reflectionEquals=n;let r=Object.values;function i(e,n,r){if(n===r)return!0;if(e!==t.ScalarType.BYTES)return!1;let i=n,a=r;if(i.length!==a.length)return!1;for(let e=0;e{Object.defineProperty(e,"__esModule",{value:!0}),e.MessageType=void 0;let t=Hw(),n=Ww(),r=Kw(),i=Jw(),a=Yw(),o=Zw(),s=Qw(),c=$w(),l=eT(),u=Mw(),d=Vw(),f=tT(),p=Bw(),m=Rw(),h=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({})),g=h[t.MESSAGE_TYPE]={};e.MessageType=class{constructor(e,t,c){this.defaultCheckDepth=16,this.typeName=e,this.fields=t.map(n.normalizeFieldInfo),this.options=c??{},g.value=this,this.messagePrototype=Object.create(null,h),this.refTypeCheck=new r.ReflectionTypeCheck(this),this.refJsonReader=new i.ReflectionJsonReader(this),this.refJsonWriter=new a.ReflectionJsonWriter(this),this.refBinReader=new o.ReflectionBinaryReader(this),this.refBinWriter=new s.ReflectionBinaryWriter(this)}create(e){let t=c.reflectionCreate(this);return e!==void 0&&l.reflectionMergePartial(this,t,e),t}clone(e){let t=this.create();return l.reflectionMergePartial(this,t,e),t}equals(e,t){return f.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!1)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,!0)}mergePartial(e,t){l.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=m.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,d.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,d.jsonWriteOptions(t))}toJsonString(e,t){let n=this.toJson(e,t);return JSON.stringify(n,null,t?.prettySpaces??0)}toBinary(e,t){let n=p.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(typeof e==`object`&&e&&!Array.isArray(e)){let r=n??this.create();return this.refJsonReader.read(e,r,t),r}throw Error(`Unable to parse message ${this.typeName} from JSON ${u.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){return this.refBinWriter.write(e,t,n),t}internalBinaryRead(e,t,n,r){let i=r??this.create();return this.refBinReader.read(e,i,n,t),i}}})),rT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.containsMessageType=void 0;let t=Hw();function n(e){return e[t.MESSAGE_TYPE]!=null}e.containsMessageType=n})),iT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.listEnumNumbers=e.listEnumNames=e.listEnumValues=e.isEnumObject=void 0;function t(e){if(typeof e!=`object`||!e||!e.hasOwnProperty(0))return!1;for(let t of Object.keys(e)){let n=parseInt(t);if(Number.isNaN(n)){let n=e[t];if(n===void 0||typeof n!=`number`||e[n]===void 0)return!1}else{let t=e[n];if(t===void 0||e[t]!==n)return!1}}return!0}e.isEnumObject=t;function n(e){if(!t(e))throw Error(`not a typescript enum object`);let n=[];for(let[t,r]of Object.entries(e))typeof r==`number`&&n.push({name:t,number:r});return n}e.listEnumValues=n;function r(e){return n(e).map(e=>e.name)}e.listEnumNames=r;function i(e){return n(e).map(e=>e.number).filter((e,t,n)=>n.indexOf(e)==t)}e.listEnumNumbers=i})),aT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Mw();Object.defineProperty(e,"typeofJsonValue",{enumerable:!0,get:function(){return t.typeofJsonValue}}),Object.defineProperty(e,"isJsonObject",{enumerable:!0,get:function(){return t.isJsonObject}});var n=Nw();Object.defineProperty(e,"base64decode",{enumerable:!0,get:function(){return n.base64decode}}),Object.defineProperty(e,"base64encode",{enumerable:!0,get:function(){return n.base64encode}});var r=Pw();Object.defineProperty(e,"utf8read",{enumerable:!0,get:function(){return r.utf8read}});var i=Fw();Object.defineProperty(e,"WireType",{enumerable:!0,get:function(){return i.WireType}}),Object.defineProperty(e,"mergeBinaryOptions",{enumerable:!0,get:function(){return i.mergeBinaryOptions}}),Object.defineProperty(e,"UnknownFieldHandler",{enumerable:!0,get:function(){return i.UnknownFieldHandler}});var a=Rw();Object.defineProperty(e,"BinaryReader",{enumerable:!0,get:function(){return a.BinaryReader}}),Object.defineProperty(e,"binaryReadOptions",{enumerable:!0,get:function(){return a.binaryReadOptions}});var o=Bw();Object.defineProperty(e,"BinaryWriter",{enumerable:!0,get:function(){return o.BinaryWriter}}),Object.defineProperty(e,"binaryWriteOptions",{enumerable:!0,get:function(){return o.binaryWriteOptions}});var s=Lw();Object.defineProperty(e,"PbLong",{enumerable:!0,get:function(){return s.PbLong}}),Object.defineProperty(e,"PbULong",{enumerable:!0,get:function(){return s.PbULong}});var c=Vw();Object.defineProperty(e,"jsonReadOptions",{enumerable:!0,get:function(){return c.jsonReadOptions}}),Object.defineProperty(e,"jsonWriteOptions",{enumerable:!0,get:function(){return c.jsonWriteOptions}}),Object.defineProperty(e,"mergeJsonOptions",{enumerable:!0,get:function(){return c.mergeJsonOptions}});var l=Hw();Object.defineProperty(e,"MESSAGE_TYPE",{enumerable:!0,get:function(){return l.MESSAGE_TYPE}});var u=nT();Object.defineProperty(e,"MessageType",{enumerable:!0,get:function(){return u.MessageType}});var d=Ww();Object.defineProperty(e,"ScalarType",{enumerable:!0,get:function(){return d.ScalarType}}),Object.defineProperty(e,"LongType",{enumerable:!0,get:function(){return d.LongType}}),Object.defineProperty(e,"RepeatType",{enumerable:!0,get:function(){return d.RepeatType}}),Object.defineProperty(e,"normalizeFieldInfo",{enumerable:!0,get:function(){return d.normalizeFieldInfo}}),Object.defineProperty(e,"readFieldOptions",{enumerable:!0,get:function(){return d.readFieldOptions}}),Object.defineProperty(e,"readFieldOption",{enumerable:!0,get:function(){return d.readFieldOption}}),Object.defineProperty(e,"readMessageOption",{enumerable:!0,get:function(){return d.readMessageOption}});var f=Kw();Object.defineProperty(e,"ReflectionTypeCheck",{enumerable:!0,get:function(){return f.ReflectionTypeCheck}});var p=$w();Object.defineProperty(e,"reflectionCreate",{enumerable:!0,get:function(){return p.reflectionCreate}});var m=Xw();Object.defineProperty(e,"reflectionScalarDefault",{enumerable:!0,get:function(){return m.reflectionScalarDefault}});var h=eT();Object.defineProperty(e,"reflectionMergePartial",{enumerable:!0,get:function(){return h.reflectionMergePartial}});var g=tT();Object.defineProperty(e,"reflectionEquals",{enumerable:!0,get:function(){return g.reflectionEquals}});var _=Zw();Object.defineProperty(e,"ReflectionBinaryReader",{enumerable:!0,get:function(){return _.ReflectionBinaryReader}});var v=Qw();Object.defineProperty(e,"ReflectionBinaryWriter",{enumerable:!0,get:function(){return v.ReflectionBinaryWriter}});var y=Jw();Object.defineProperty(e,"ReflectionJsonReader",{enumerable:!0,get:function(){return y.ReflectionJsonReader}});var b=Yw();Object.defineProperty(e,"ReflectionJsonWriter",{enumerable:!0,get:function(){return b.ReflectionJsonWriter}});var x=rT();Object.defineProperty(e,"containsMessageType",{enumerable:!0,get:function(){return x.containsMessageType}});var S=Gw();Object.defineProperty(e,"isOneofGroup",{enumerable:!0,get:function(){return S.isOneofGroup}}),Object.defineProperty(e,"setOneofValue",{enumerable:!0,get:function(){return S.setOneofValue}}),Object.defineProperty(e,"getOneofValue",{enumerable:!0,get:function(){return S.getOneofValue}}),Object.defineProperty(e,"clearOneofValue",{enumerable:!0,get:function(){return S.clearOneofValue}}),Object.defineProperty(e,"getSelectedOneofValue",{enumerable:!0,get:function(){return S.getSelectedOneofValue}});var C=iT();Object.defineProperty(e,"listEnumValues",{enumerable:!0,get:function(){return C.listEnumValues}}),Object.defineProperty(e,"listEnumNames",{enumerable:!0,get:function(){return C.listEnumNames}}),Object.defineProperty(e,"listEnumNumbers",{enumerable:!0,get:function(){return C.listEnumNumbers}}),Object.defineProperty(e,"isEnumObject",{enumerable:!0,get:function(){return C.isEnumObject}});var w=Uw();Object.defineProperty(e,"lowerCamelCase",{enumerable:!0,get:function(){return w.lowerCamelCase}});var T=zw();Object.defineProperty(e,"assert",{enumerable:!0,get:function(){return T.assert}}),Object.defineProperty(e,"assertNever",{enumerable:!0,get:function(){return T.assertNever}}),Object.defineProperty(e,"assertInt32",{enumerable:!0,get:function(){return T.assertInt32}}),Object.defineProperty(e,"assertUInt32",{enumerable:!0,get:function(){return T.assertUInt32}}),Object.defineProperty(e,"assertFloat32",{enumerable:!0,get:function(){return T.assertFloat32}})})),oT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.readServiceOption=e.readMethodOption=e.readMethodOptions=e.normalizeMethodInfo=void 0;let t=aT();function n(e,n){let r=e;return r.service=n,r.localName=r.localName??t.lowerCamelCase(r.name),r.serverStreaming=!!r.serverStreaming,r.clientStreaming=!!r.clientStreaming,r.options=r.options??{},r.idempotency=r.idempotency??void 0,r}e.normalizeMethodInfo=n;function r(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;return i&&i[n]?r.fromJson(i[n]):void 0}e.readMethodOptions=r;function i(e,t,n,r){let i=e.methods.find((e,n)=>e.localName===t||n===t)?.options;if(!i)return;let a=i[n];return a===void 0?a:r?r.fromJson(a):a}e.readMethodOption=i;function a(e,t,n){let r=e.options;if(!r)return;let i=r[t];return i===void 0?i:n?n.fromJson(i):i}e.readServiceOption=a})),sT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServiceType=void 0;let t=oT();e.ServiceType=class{constructor(e,n,r){this.typeName=e,this.methods=n.map(e=>t.normalizeMethodInfo(e,this)),this.options=r??{}}}})),cT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcError=void 0,e.RpcError=class extends Error{constructor(e,t=`UNKNOWN`,n){super(e),this.name=`RpcError`,Object.setPrototypeOf(this,new.target.prototype),this.code=t,this.meta=n??{}}toString(){let e=[this.name+`: `+this.message];this.code&&(e.push(``),e.push(`Code: `+this.code)),this.serviceName&&this.methodName&&e.push(`Method: `+this.serviceName+`/`+this.methodName);let t=Object.entries(this.meta);if(t.length){e.push(``),e.push(`Meta:`);for(let[n,r]of t)e.push(` ${n}: ${r}`)}return e.join(` +`)}}})),lT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mergeRpcOptions=void 0;let t=aT();function n(e,n){if(!n)return e;let i={};r(e,i),r(n,i);for(let a of Object.keys(n)){let o=n[a];switch(a){case`jsonOptions`:i.jsonOptions=t.mergeJsonOptions(e.jsonOptions,i.jsonOptions);break;case`binaryOptions`:i.binaryOptions=t.mergeBinaryOptions(e.binaryOptions,i.binaryOptions);break;case`meta`:i.meta={},r(e.meta,i.meta),r(n.meta,i.meta);break;case`interceptors`:i.interceptors=e.interceptors?e.interceptors.concat(o):o.concat();break}}return i}e.mergeRpcOptions=n;function r(e,t){if(!e)return;let n=t;for(let[t,r]of Object.entries(e))r instanceof Date?n[t]=new Date(r.getTime()):Array.isArray(r)?n[t]=r.concat():n[t]=r}})),uT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.Deferred=e.DeferredState=void 0;var t;(function(e){e[e.PENDING=0]=`PENDING`,e[e.REJECTED=1]=`REJECTED`,e[e.RESOLVED=2]=`RESOLVED`})(t=e.DeferredState||={}),e.Deferred=class{constructor(e=!0){this._state=t.PENDING,this._promise=new Promise((e,t)=>{this._resolve=e,this._reject=t}),e&&this._promise.catch(e=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==t.PENDING)throw Error(`cannot resolve ${t[this.state].toLowerCase()}`);this._resolve(e),this._state=t.RESOLVED}reject(e){if(this.state!==t.PENDING)throw Error(`cannot reject ${t[this.state].toLowerCase()}`);this._reject(e),this._state=t.REJECTED}resolvePending(e){this._state===t.PENDING&&this.resolve(e)}rejectPending(e){this._state===t.PENDING&&this.reject(e)}}})),dT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.RpcOutputStreamController=void 0;let t=uT(),n=aT();e.RpcOutputStreamController=class{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,t,r){n.assert(+!!e+ +!!t+ +!!r<=1,`only one emission at a time`),e&&this.notifyMessage(e),t&&this.notifyError(t),r&&this.notifyComplete()}notifyMessage(e){n.assert(!this.closed,`stream is closed`),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(e,void 0,!1))}notifyError(e){n.assert(!this.closed,`stream is closed`),this._closed=e,this.pushIt(e),this._lis.err.forEach(t=>t(e)),this._lis.nxt.forEach(t=>t(void 0,e,!1)),this.clearLis()}notifyComplete(){n.assert(!this.closed,`stream is closed`),this._closed=!0,this.pushIt({value:null,done:!0}),this._lis.cmp.forEach(e=>e()),this._lis.nxt.forEach(e=>e(void 0,void 0,!0)),this.clearLis()}[Symbol.asyncIterator](){return this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:()=>{let e=this._itState;n.assert(e,`bad state`),n.assert(!e.p,`iterator contract broken`);let r=e.q.shift();return r?`value`in r?Promise.resolve(r):Promise.reject(r):(e.p=new t.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let i=r.p;n.assert(i.state==t.DeferredState.PENDING,`iterator contract broken`),`value`in e?i.resolve(e):i.reject(e),delete r.p}else r.q.push(e)}}})),fT=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.UnaryCall=void 0,e.UnaryCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:r}})}}})),pT=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ServerStreamingCall=void 0,e.ServerStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.request=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}})}}})),mT=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.ClientStreamingCall=void 0,e.ClientStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.response=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n,r]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:r}})}}})),hT=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.DuplexStreamingCall=void 0,e.DuplexStreamingCall=class{constructor(e,t,n,r,i,a,o){this.method=e,this.requestHeaders=t,this.requests=n,this.headers=r,this.responses=i,this.status=a,this.trailers=o}then(e,t){return this.promiseFinished().then(t=>e?Promise.resolve(e(t)):t,e=>t?Promise.resolve(t(e)):Promise.reject(e))}promiseFinished(){return t(this,void 0,void 0,function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}})}}})),gT=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.TestTransport=void 0;let n=cT(),r=aT(),i=dT(),a=lT(),o=fT(),s=pT(),c=mT(),l=hT();var u=class e{constructor(e){this.suppressUncaughtRejections=!0,this.headerDelay=10,this.responseDelay=50,this.betweenResponseDelay=10,this.afterResponseDelay=10,this.data=e??{}}get sentMessages(){return this.lastInput instanceof f?this.lastInput.sent:typeof this.lastInput==`object`?[this.lastInput.single]:[]}get sendComplete(){return this.lastInput instanceof f?this.lastInput.completed:typeof this.lastInput==`object`}promiseHeaders(){let t=this.data.headers??e.defaultHeaders;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof n.RpcError)return Promise.reject(this.data.response);let t;return Array.isArray(this.data.response)?(r.assert(this.data.response.length>0),t=this.data.response[0]):t=this.data.response===void 0?e.O.create():this.data.response,r.assert(e.O.is(t)),Promise.resolve(t)}streamResponses(e,i,a){return t(this,void 0,void 0,function*(){let t=[];if(this.data.response===void 0)t.push(e.O.create());else if(Array.isArray(this.data.response))for(let n of this.data.response)r.assert(e.O.is(n)),t.push(n);else this.data.response instanceof n.RpcError||(r.assert(e.O.is(this.data.response)),t.push(this.data.response));try{yield d(this.responseDelay,a)(void 0)}catch(e){i.notifyError(e);return}if(this.data.response instanceof n.RpcError){i.notifyError(this.data.response);return}for(let e of t){i.notifyMessage(e);try{yield d(this.betweenResponseDelay,a)(void 0)}catch(e){i.notifyError(e);return}}if(this.data.status instanceof n.RpcError){i.notifyError(this.data.status);return}if(this.data.trailers instanceof n.RpcError){i.notifyError(this.data.trailers);return}i.notifyComplete()})}promiseStatus(){let t=this.data.status??e.defaultStatus;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){let t=this.data.trailers??e.defaultTrailers;return t instanceof n.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections)for(let t of e)t.catch(()=>{})}mergeOptions(e){return a.mergeRpcOptions({},e)}unary(e,t,n){let r=n.meta??{},i=this.promiseHeaders().then(d(this.headerDelay,n.abort)),a=i.catch(e=>{}).then(d(this.responseDelay,n.abort)).then(t=>this.promiseSingleResponse(e)),s=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseStatus()),c=a.catch(e=>{}).then(d(this.afterResponseDelay,n.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput={single:t},new o.UnaryCall(e,r,t,i,a,s,c)}serverStreaming(e,t,n){let r=n.meta??{},a=this.promiseHeaders().then(d(this.headerDelay,n.abort)),o=new i.RpcOutputStreamController,c=a.then(d(this.responseDelay,n.abort)).catch(()=>{}).then(()=>this.streamResponses(e,o,n.abort)).then(d(this.afterResponseDelay,n.abort)),l=c.then(()=>this.promiseStatus()),u=c.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(l,u),this.lastInput={single:t},new s.ServerStreamingCall(e,r,t,a,o,l,u)}clientStreaming(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),i=r.catch(e=>{}).then(d(this.responseDelay,t.abort)).then(t=>this.promiseSingleResponse(e)),a=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseStatus()),o=i.catch(e=>{}).then(d(this.afterResponseDelay,t.abort)).then(e=>this.promiseTrailers());return this.maybeSuppressUncaught(a,o),this.lastInput=new f(this.data,t.abort),new c.ClientStreamingCall(e,n,this.lastInput,r,i,a,o)}duplex(e,t){let n=t.meta??{},r=this.promiseHeaders().then(d(this.headerDelay,t.abort)),a=new i.RpcOutputStreamController,o=r.then(d(this.responseDelay,t.abort)).catch(()=>{}).then(()=>this.streamResponses(e,a,t.abort)).then(d(this.afterResponseDelay,t.abort)),s=o.then(()=>this.promiseStatus()),c=o.then(()=>this.promiseTrailers());return this.maybeSuppressUncaught(s,c),this.lastInput=new f(this.data,t.abort),new l.DuplexStreamingCall(e,n,this.lastInput,r,a,s,c)}};e.TestTransport=u,u.defaultHeaders={responseHeader:`test`},u.defaultStatus={code:`OK`,detail:`all good`},u.defaultTrailers={responseTrailer:`test`};function d(e,t){return r=>new Promise((i,a)=>{if(t?.aborted)a(new n.RpcError(`user cancel`,`CANCELLED`));else{let o=setTimeout(()=>i(r),e);t&&t.addEventListener(`abort`,e=>{clearTimeout(o),a(new n.RpcError(`user cancel`,`CANCELLED`))})}})}var f=class{constructor(e,t){this._completed=!1,this._sent=[],this.data=e,this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof n.RpcError)return Promise.reject(this.data.inputMessage);let t=this.data.inputMessage===void 0?10:this.data.inputMessage;return Promise.resolve(void 0).then(()=>{this._sent.push(e)}).then(d(t,this.abort))}complete(){if(this.data.inputComplete instanceof n.RpcError)return Promise.reject(this.data.inputComplete);let e=this.data.inputComplete===void 0?10:this.data.inputComplete;return Promise.resolve(void 0).then(()=>{this._completed=!0}).then(d(e,this.abort))}}})),_T=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.stackDuplexStreamingInterceptors=e.stackClientStreamingInterceptors=e.stackServerStreamingInterceptors=e.stackUnaryInterceptors=e.stackIntercept=void 0;let t=aT();function n(e,n,r,i,a){if(e==`unary`){let e=(e,t,r)=>n.unary(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptUnary).reverse()){let n=e;e=(e,r,i)=>t.interceptUnary(n,e,r,i)}return e(r,a,i)}if(e==`serverStreaming`){let e=(e,t,r)=>n.serverStreaming(e,t,r);for(let t of(i.interceptors??[]).filter(e=>e.interceptServerStreaming).reverse()){let n=e;e=(e,r,i)=>t.interceptServerStreaming(n,e,r,i)}return e(r,a,i)}if(e==`clientStreaming`){let e=(e,t)=>n.clientStreaming(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptClientStreaming).reverse()){let n=e;e=(e,r)=>t.interceptClientStreaming(n,e,r)}return e(r,i)}if(e==`duplex`){let e=(e,t)=>n.duplex(e,t);for(let t of(i.interceptors??[]).filter(e=>e.interceptDuplex).reverse()){let n=e;e=(e,r)=>t.interceptDuplex(n,e,r)}return e(r,i)}t.assertNever(e)}e.stackIntercept=n;function r(e,t,r,i){return n(`unary`,e,t,i,r)}e.stackUnaryInterceptors=r;function i(e,t,r,i){return n(`serverStreaming`,e,t,i,r)}e.stackServerStreamingInterceptors=i;function a(e,t,r){return n(`clientStreaming`,e,t,r)}e.stackClientStreamingInterceptors=a;function o(e,t,r){return n(`duplex`,e,t,r)}e.stackDuplexStreamingInterceptors=o})),vT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ServerCallContextController=void 0,e.ServerCallContextController=class{constructor(e,t,n,r,i={code:`OK`,detail:``}){this._cancelled=!1,this._listeners=[],this.method=e,this.headers=t,this.deadline=n,this.trailers={},this._sendRH=r,this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=!0;for(let e of this._listeners)e()}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){let t=this._listeners;return t.push(e),()=>{let n=t.indexOf(e);n>=0&&t.splice(n,1)}}}})),yT=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=sT();Object.defineProperty(e,"ServiceType",{enumerable:!0,get:function(){return t.ServiceType}});var n=oT();Object.defineProperty(e,"readMethodOptions",{enumerable:!0,get:function(){return n.readMethodOptions}}),Object.defineProperty(e,"readMethodOption",{enumerable:!0,get:function(){return n.readMethodOption}}),Object.defineProperty(e,"readServiceOption",{enumerable:!0,get:function(){return n.readServiceOption}});var r=cT();Object.defineProperty(e,"RpcError",{enumerable:!0,get:function(){return r.RpcError}});var i=lT();Object.defineProperty(e,"mergeRpcOptions",{enumerable:!0,get:function(){return i.mergeRpcOptions}});var a=dT();Object.defineProperty(e,"RpcOutputStreamController",{enumerable:!0,get:function(){return a.RpcOutputStreamController}});var o=gT();Object.defineProperty(e,"TestTransport",{enumerable:!0,get:function(){return o.TestTransport}});var s=uT();Object.defineProperty(e,"Deferred",{enumerable:!0,get:function(){return s.Deferred}}),Object.defineProperty(e,"DeferredState",{enumerable:!0,get:function(){return s.DeferredState}});var c=hT();Object.defineProperty(e,"DuplexStreamingCall",{enumerable:!0,get:function(){return c.DuplexStreamingCall}});var l=mT();Object.defineProperty(e,"ClientStreamingCall",{enumerable:!0,get:function(){return l.ClientStreamingCall}});var u=pT();Object.defineProperty(e,"ServerStreamingCall",{enumerable:!0,get:function(){return u.ServerStreamingCall}});var d=fT();Object.defineProperty(e,"UnaryCall",{enumerable:!0,get:function(){return d.UnaryCall}});var f=_T();Object.defineProperty(e,"stackIntercept",{enumerable:!0,get:function(){return f.stackIntercept}}),Object.defineProperty(e,"stackDuplexStreamingInterceptors",{enumerable:!0,get:function(){return f.stackDuplexStreamingInterceptors}}),Object.defineProperty(e,"stackClientStreamingInterceptors",{enumerable:!0,get:function(){return f.stackClientStreamingInterceptors}}),Object.defineProperty(e,"stackServerStreamingInterceptors",{enumerable:!0,get:function(){return f.stackServerStreamingInterceptors}}),Object.defineProperty(e,"stackUnaryInterceptors",{enumerable:!0,get:function(){return f.stackUnaryInterceptors}});var p=vT();Object.defineProperty(e,"ServerCallContextController",{enumerable:!0,get:function(){return p.ServerCallContextController}})}))(),$=aT();const bT=new class extends $.MessageType{constructor(){super(`github.actions.results.entities.v1.CacheScope`,[{no:1,name:`scope`,kind:`scalar`,T:9},{no:2,name:`permission`,kind:`scalar`,T:3}])}create(e){let t={scope:``,permission:`0`};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posbT}])}create(e){let t={repositoryId:`0`,scope:[]};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`size_bytes`,kind:`scalar`,T:3},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,sizeBytes:`0`,version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posxT},{no:2,name:`key`,kind:`scalar`,T:9},{no:3,name:`restore_keys`,kind:`scalar`,repeat:2,T:9},{no:4,name:`version`,kind:`scalar`,T:9}])}create(e){let t={key:``,restoreKeys:[],version:``};return globalThis.Object.defineProperty(t,$.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,$.reflectionMergePartial)(this,t,e),t}internalBinaryRead(e,t,n,r){let i=r??this.create(),a=e.pos+t;for(;e.posCT.fromJson(e,{ignoreUnknownFields:!0}))}FinalizeCacheEntryUpload(e){let t=wT.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`FinalizeCacheEntryUpload`,`application/json`,t).then(e=>TT.fromJson(e,{ignoreUnknownFields:!0}))}GetCacheEntryDownloadURL(e){let t=ET.toJson(e,{useProtoFieldName:!0,emitDefaultValues:!1});return this.rpc.request(`github.actions.results.api.v1.CacheService`,`GetCacheEntryDownloadURL`,`application/json`,t).then(e=>DT.fromJson(e,{ignoreUnknownFields:!0}))}};function kT(e){if(e)try{let t=new URL(e).searchParams.get(`sig`);t&&(Tr(t),Tr(encodeURIComponent(t)))}catch(t){U(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function AT(e){if(typeof e!=`object`||!e){U(`body is not an object or is null`);return}`signed_upload_url`in e&&typeof e.signed_upload_url==`string`&&kT(e.signed_upload_url),`signed_download_url`in e&&typeof e.signed_download_url==`string`&&kT(e.signed_download_url)}var jT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},MT=class{constructor(e,t,n,r){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Da();this.baseUrl=mw(),t&&(this.maxAttempts=t),n&&(this.baseRetryIntervalMilliseconds=n),r&&(this.retryMultiplier=r),this.httpClient=new An(e,[new Nn(i)])}request(e,t,n,r){return jT(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;U(`[Request] ${t} ${i}`);let a={"Content-Type":n};try{let{body:e}=yield this.retryableRequest(()=>jT(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(r),a)}));return e}catch(e){throw Error(`Failed to ${t}: ${e.message}`)}})}retryableRequest(e){return jT(this,void 0,void 0,function*(){let t=0,n=``,r=``;for(;t0&&jr(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}throw new UC(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError&&U(`Raw Body: ${r}`),e instanceof HC||e instanceof UC)throw e;if(VC.isNetworkErrorCode(e?.code))throw new VC(e?.code);i=!0,n=e.message}if(!i)throw Error(`Received non-retryable error: ${n}`);if(t+1===this.maxAttempts)throw Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(t);Nr(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),t++}throw Error(`Request failed`)})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[Sn.BadGateway,Sn.GatewayTimeout,Sn.InternalServerError,Sn.ServiceUnavailable].includes(e):!1}sleep(e){return jT(this,void 0,void 0,function*(){return new Promise(t=>setTimeout(t,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw Error(`attempt should be a positive integer`);if(e===0)return this.baseRetryIntervalMilliseconds;let t=this.baseRetryIntervalMilliseconds*this.retryMultiplier**+e,n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}};function NT(e){return new OT(new MT(_w(),e?.maxAttempts,e?.retryIntervalMs,e?.retryMultiplier))}var PT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};const FT=process.platform===`win32`;function IT(){return PT(this,void 0,void 0,function*(){switch(process.platform){case`win32`:{let e=yield wa(),t=fa;if(e)return{path:e,type:ca.GNU};if(l(t))return{path:t,type:ca.BSD};break}case`darwin`:{let e=yield lr(`gtar`,!1);return e?{path:e,type:ca.GNU}:{path:yield lr(`tar`,!0),type:ca.BSD}}default:break}return{path:yield lr(`tar`,!0),type:ca.GNU}})}function LT(e,t,n){return PT(this,arguments,void 0,function*(e,t,n,r=``){let i=[`"${e.path}"`],a=Ca(t),o=`cache.tar`,s=zT(),c=e.type===ca.BSD&&t!==sa.Gzip&&FT;switch(n){case`create`:i.push(`--posix`,`-cf`,c?o:a.replace(RegExp(`\\${p.sep}`,`g`),`/`),`--exclude`,c?o:a.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${p.sep}`,`g`),`/`),`--files-from`,ma);break;case`extract`:i.push(`-xf`,c?o:r.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`,`-C`,s.replace(RegExp(`\\${p.sep}`,`g`),`/`));break;case`list`:i.push(`-tf`,c?o:r.replace(RegExp(`\\${p.sep}`,`g`),`/`),`-P`);break}if(e.type===ca.GNU)switch(process.platform){case`win32`:i.push(`--force-local`);break;case`darwin`:i.push(`--delay-directory-restore`);break}return i})}function RT(e,t){return PT(this,arguments,void 0,function*(e,t,n=``){let r,i=yield IT(),a=yield LT(i,e,t,n),o=t===`create`?yield VT(i,e):yield BT(i,e,n),s=i.type===ca.BSD&&e!==sa.Gzip&&FT;return r=s&&t!==`create`?[[...o].join(` `),[...a].join(` `)]:[[...a].join(` `),[...o].join(` `)],s?r:[r.join(` `)]})}function zT(){return process.env.GITHUB_WORKSPACE??process.cwd()}function BT(e,t,n){return PT(this,void 0,void 0,function*(){let r=e.type===ca.BSD&&t!==sa.Gzip&&FT;switch(t){case sa.Zstd:return r?[`zstd -d --long=30 --force -o`,pa,n.replace(RegExp(`\\${p.sep}`,`g`),`/`)]:[`--use-compress-program`,FT?`"zstd -d --long=30"`:`unzstd --long=30`];case sa.ZstdWithoutLong:return r?[`zstd -d --force -o`,pa,n.replace(RegExp(`\\${p.sep}`,`g`),`/`)]:[`--use-compress-program`,FT?`"zstd -d"`:`unzstd`];default:return[`-z`]}})}function VT(e,t){return PT(this,void 0,void 0,function*(){let n=Ca(t),r=e.type===ca.BSD&&t!==sa.Gzip&&FT;switch(t){case sa.Zstd:return r?[`zstd -T0 --long=30 --force -o`,n.replace(RegExp(`\\${p.sep}`,`g`),`/`),pa]:[`--use-compress-program`,FT?`"zstd -T0 --long=30"`:`zstdmt --long=30`];case sa.ZstdWithoutLong:return r?[`zstd -T0 --force -o`,n.replace(RegExp(`\\${p.sep}`,`g`),`/`),pa]:[`--use-compress-program`,FT?`"zstd -T0"`:`zstdmt`];default:return[`-z`]}})}function HT(e,t){return PT(this,void 0,void 0,function*(){for(let n of e)try{yield br(n,void 0,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:`winsymlinks:nativestrict`})})}catch(e){throw Error(`${n.split(` `)[0]} failed with error: ${e?.message}`)}})}function UT(e,t){return PT(this,void 0,void 0,function*(){yield HT(yield RT(t,`list`,e))})}function WT(e,t){return PT(this,void 0,void 0,function*(){yield cr(zT()),yield HT(yield RT(t,`extract`,e))})}function GT(e,t,n){return PT(this,void 0,void 0,function*(){f(p.join(e,ma),t.join(` +`)),yield HT(yield RT(n,`create`),e)})}var KT=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},qT=class e extends Error{constructor(t){super(t),this.name=`ValidationError`,Object.setPrototypeOf(this,e.prototype)}},JT=class e extends Error{constructor(t){super(t),this.name=`ReserveCacheError`,Object.setPrototypeOf(this,e.prototype)}},YT=class e extends Error{constructor(t){super(t),this.name=`FinalizeCacheError`,Object.setPrototypeOf(this,e.prototype)}};function XT(e){if(!e||e.length===0)throw new qT(`Path Validation Error: At least one directory or file path is required`)}function ZT(e){if(e.length>512)throw new qT(`Key Validation Error: ${e} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(e))throw new qT(`Key Validation Error: ${e} cannot contain commas.`)}function QT(){switch(pw()){case`v2`:return!!process.env.ACTIONS_RESULTS_URL;default:return!!process.env.ACTIONS_CACHE_URL}}function $T(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){let a=pw();switch(U(`Cache service version: ${a}`),XT(e),a){case`v2`:return yield tE(e,t,n,r,i);default:return yield eE(e,t,n,r,i)}})}function eE(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){n||=[];let a=[t,...n];if(U(`Resolved Keys:`),U(JSON.stringify(a)),a.length>10)throw new qT(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)ZT(e);let o=yield Sa(),s=``;try{let t=yield Cw(a,e,{compressionMethod:o,enableCrossOsArchive:i});if(!t?.archiveLocation)return;if(r?.lookupOnly)return Nr(`Lookup only - skipping download`),t.cacheKey;s=p.join(yield _a(),Ca(o)),U(`Archive Path: ${s}`),yield Tw(t.archiveLocation,s,r),kr()&&(yield UT(s,o));let n=va(s);return Nr(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`),yield WT(s,o),Nr(`Cache restored successfully`),t.cacheKey}catch(e){let t=e;if(t.name===qT.name)throw e;t instanceof On&&typeof t.statusCode==`number`&&t.statusCode>=500?Ar(`Failed to restore: ${e.message}`):jr(`Failed to restore: ${e.message}`)}finally{try{yield ba(s)}catch(e){U(`Failed to delete archive: ${e}`)}}})}function tE(e,t,n,r){return KT(this,arguments,void 0,function*(e,t,n,r,i=!1){r=Object.assign(Object.assign({},r),{useAzureSdk:!0}),n||=[];let a=[t,...n];if(U(`Resolved Keys:`),U(JSON.stringify(a)),a.length>10)throw new qT(`Key Validation Error: Keys are limited to a maximum of 10.`);for(let e of a)ZT(e);let o=``;try{let s=NT(),c=yield Sa(),l={key:t,restoreKeys:n,version:Ea(e,c,i)},u=yield s.GetCacheEntryDownloadURL(l);if(!u.ok){U(`Cache not found for version ${l.version} of keys: ${a.join(`, `)}`);return}if(l.key===u.matchedKey?Nr(`Cache hit for: ${u.matchedKey}`):Nr(`Cache hit for restore-key: ${u.matchedKey}`),r?.lookupOnly)return Nr(`Lookup only - skipping download`),u.matchedKey;o=p.join(yield _a(),Ca(c)),U(`Archive path: ${o}`),U(`Starting download of archive to: ${o}`),yield Tw(u.signedDownloadUrl,o,r);let d=va(o);return Nr(`Cache Size: ~${Math.round(d/(1024*1024))} MB (${d} B)`),kr()&&(yield UT(o,c)),yield WT(o,c),Nr(`Cache restored successfully`),u.matchedKey}catch(e){let t=e;if(t.name===qT.name)throw e;t instanceof On&&typeof t.statusCode==`number`&&t.statusCode>=500?Ar(`Failed to restore: ${e.message}`):jr(`Failed to restore: ${e.message}`)}finally{try{o&&(yield ba(o))}catch(e){U(`Failed to delete archive: ${e}`)}}})}function nE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){let i=pw();switch(U(`Cache service version: ${i}`),XT(e),ZT(t),i){case`v2`:return yield iE(e,t,n,r);default:return yield rE(e,t,n,r)}})}function rE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){let i=yield Sa(),a=-1,o=yield ya(e);if(U(`Cache Paths:`),U(`${JSON.stringify(o)}`),o.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let s=yield _a(),c=p.join(s,Ca(i));U(`Archive Path: ${c}`);try{yield GT(s,o,i),kr()&&(yield UT(c,i));let l=va(c);if(U(`File Size: ${l}`),l>10737418240&&!fw())throw Error(`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the 10GB limit, not saving cache.`);U(`Reserving Cache`);let u=yield Ew(t,e,{compressionMethod:i,enableCrossOsArchive:r,cacheSize:l});if(u?.result?.cacheId)a=u?.result?.cacheId;else if(u?.statusCode===400)throw Error(u?.error?.message??`Cache size of ~${Math.round(l/(1024*1024))} MB (${l} B) is over the data cap limit, not saving cache.`);else throw new JT(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${u?.error?.message}`);U(`Saving Cache (ID: ${a})`),yield jw(a,c,``,n)}catch(e){let t=e;if(t.name===qT.name)throw e;t.name===JT.name?Nr(`Failed to save: ${t.message}`):t instanceof On&&typeof t.statusCode==`number`&&t.statusCode>=500?Ar(`Failed to save: ${t.message}`):jr(`Failed to save: ${t.message}`)}finally{try{yield ba(c)}catch(e){U(`Failed to delete archive: ${e}`)}}return a})}function iE(e,t,n){return KT(this,arguments,void 0,function*(e,t,n,r=!1){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:!0});let i=yield Sa(),a=NT(),o=-1,s=yield ya(e);if(U(`Cache Paths:`),U(`${JSON.stringify(s)}`),s.length===0)throw Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`);let c=yield _a(),l=p.join(c,Ca(i));U(`Archive Path: ${l}`);try{yield GT(c,s,i),kr()&&(yield UT(l,i));let u=va(l);U(`File Size: ${u}`),n.archiveSizeBytes=u,U(`Reserving Cache`);let d=Ea(e,i,r),f={key:t,version:d},p;try{let e=yield a.CreateCacheEntry(f);if(!e.ok)throw e.message&&jr(`Cache reservation failed: ${e.message}`),Error(e.message||`Response was not ok`);p=e.signedUploadUrl}catch(e){throw U(`Failed to reserve cache: ${e}`),new JT(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}U(`Attempting to upload cache located at: ${l}`),yield jw(o,l,p,n);let m={key:t,version:d,sizeBytes:`${u}`},h=yield a.FinalizeCacheEntryUpload(m);if(U(`FinalizeCacheEntryUploadResponse: ${h.ok}`),!h.ok)throw h.message?new YT(h.message):Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`);o=parseInt(h.entryId)}catch(e){let t=e;if(t.name===qT.name)throw e;t.name===JT.name?Nr(`Failed to save: ${t.message}`):t.name===YT.name?jr(t.message):t instanceof On&&typeof t.statusCode==`number`&&t.statusCode>=500?Ar(`Failed to save: ${t.message}`):jr(`Failed to save: ${t.message}`)}finally{try{yield ba(l)}catch(e){U(`Failed to delete archive: ${e}`)}}return o})}var aE=class{constructor(){if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(d(process.env.GITHUB_EVENT_PATH,{encoding:`utf8`}));else{let e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${a}`)}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=process.env.GITHUB_API_URL??`https://api.github.com`,this.serverUrl=process.env.GITHUB_SERVER_URL??`https://github.com`,this.graphqlUrl=process.env.GITHUB_GRAPHQL_URL??`https://api.github.com/graphql`}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,t]=process.env.GITHUB_REPOSITORY.split(`/`);return{owner:e,repo:t}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw Error(`context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'`)}},oE=z((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getProxyUrl=t,e.checkBypass=n;function t(e){let t=e.protocol===`https:`;if(n(e))return;let r=t?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new i(r)}catch{if(!r.startsWith(`http://`)&&!r.startsWith(`https://`))return new i(`http://${r}`)}else return}function n(e){if(!e.hostname)return!1;let t=e.hostname;if(r(t))return!0;let n=process.env.no_proxy||process.env.NO_PROXY||``;if(!n)return!1;let i;e.port?i=Number(e.port):e.protocol===`http:`?i=80:e.protocol===`https:`&&(i=443);let a=[e.hostname.toUpperCase()];typeof i==`number`&&a.push(`${a[0]}:${i}`);for(let e of n.split(`,`).map(e=>e.trim().toUpperCase()).filter(e=>e))if(e===`*`||a.some(t=>t===e||t.endsWith(`.${e}`)||e.startsWith(`.`)&&t.endsWith(`${e}`)))return!0;return!1}function r(e){let t=e.toLowerCase();return t===`localhost`||t.startsWith(`127.`)||t.startsWith(`[::1]`)||t.startsWith(`[0:0:0:0:0:0:0:1]`)}var i=class extends URL{constructor(e,t){super(e,t),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}})),sE=B(z((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||(function(){var e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)};return function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a=e(r),o=0;oi(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on(`data`,e=>{t=Buffer.concat([t,e])}),this.message.on(`end`,()=>{e(t.toString())})}))})}readBodyBuffer(){return i(this,void 0,void 0,function*(){return new Promise(e=>i(this,void 0,void 0,function*(){let t=[];this.message.on(`data`,e=>{t.push(e)}),this.message.on(`end`,()=>{e(Buffer.concat(t))})}))})}};e.HttpClientResponse=v;function y(e){return new URL(e).protocol===`https:`}e.HttpClient=class{constructor(e,t,n){this._ignoreSslError=!1,this._allowRedirects=!0,this._allowRedirectDowngrade=!1,this._maxRedirects=50,this._allowRetries=!1,this._maxRetries=1,this._keepAlive=!1,this._disposed=!1,this.userAgent=this._getUserAgentWithOrchestrationId(e),this.handlers=t||[],this.requestOptions=n,n&&(n.ignoreSslError!=null&&(this._ignoreSslError=n.ignoreSslError),this._socketTimeout=n.socketTimeout,n.allowRedirects!=null&&(this._allowRedirects=n.allowRedirects),n.allowRedirectDowngrade!=null&&(this._allowRedirectDowngrade=n.allowRedirectDowngrade),n.maxRedirects!=null&&(this._maxRedirects=Math.max(n.maxRedirects,0)),n.keepAlive!=null&&(this._keepAlive=n.keepAlive),n.allowRetries!=null&&(this._allowRetries=n.allowRetries),n.maxRetries!=null&&(this._maxRetries=n.maxRetries))}options(e,t){return i(this,void 0,void 0,function*(){return this.request(`OPTIONS`,e,null,t||{})})}get(e,t){return i(this,void 0,void 0,function*(){return this.request(`GET`,e,null,t||{})})}del(e,t){return i(this,void 0,void 0,function*(){return this.request(`DELETE`,e,null,t||{})})}post(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`POST`,e,t,n||{})})}patch(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`PATCH`,e,t,n||{})})}put(e,t,n){return i(this,void 0,void 0,function*(){return this.request(`PUT`,e,t,n||{})})}head(e,t){return i(this,void 0,void 0,function*(){return this.request(`HEAD`,e,null,t||{})})}sendStream(e,t,n,r){return i(this,void 0,void 0,function*(){return this.request(e,t,n,r)})}getJson(e){return i(this,arguments,void 0,function*(e,t={}){t[d.Accept]=this._getExistingOrDefaultHeader(t,d.Accept,f.ApplicationJson);let n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)})}postJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.post(e,r,n);return this._processResponse(i,this.requestOptions)})}putJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.put(e,r,n);return this._processResponse(i,this.requestOptions)})}patchJson(e,t){return i(this,arguments,void 0,function*(e,t,n={}){let r=JSON.stringify(t,null,2);n[d.Accept]=this._getExistingOrDefaultHeader(n,d.Accept,f.ApplicationJson),n[d.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,f.ApplicationJson);let i=yield this.patch(e,r,n);return this._processResponse(i,this.requestOptions)})}request(e,t,n,r){return i(this,void 0,void 0,function*(){if(this._disposed)throw Error(`Client has already been disposed.`);let i=new URL(t),a=this._prepareRequest(e,i,r),o=this._allowRetries&&g.includes(e)?this._maxRetries+1:1,s=0,c;do{if(c=yield this.requestRaw(a,n),c&&c.message&&c.message.statusCode===u.Unauthorized){let e;for(let t of this.handlers)if(t.canHandleAuthentication(c)){e=t;break}return e?e.handleAuthentication(this,a,n):c}let t=this._maxRedirects;for(;c.message.statusCode&&m.includes(c.message.statusCode)&&this._allowRedirects&&t>0;){let o=c.message.headers.location;if(!o)break;let s=new URL(o);if(i.protocol===`https:`&&i.protocol!==s.protocol&&!this._allowRedirectDowngrade)throw 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.`);if(yield c.readBody(),s.hostname!==i.hostname)for(let e in r)e.toLowerCase()===`authorization`&&delete r[e];a=this._prepareRequest(e,s,r),c=yield this.requestRaw(a,n),t--}if(!c.message.statusCode||!h.includes(c.message.statusCode))return c;s+=1,s{function i(e,t){e?r(e):t?n(t):r(Error(`Unknown error`))}this.requestRawWithCallback(e,t,i)})})}requestRawWithCallback(e,t,n){typeof t==`string`&&(e.options.headers||(e.options.headers={}),e.options.headers[`Content-Length`]=Buffer.byteLength(t,`utf8`));let r=!1;function i(e,t){r||(r=!0,n(e,t))}let a=e.httpModule.request(e.options,e=>{i(void 0,new v(e))}),o;a.on(`socket`,e=>{o=e}),a.setTimeout(this._socketTimeout||3*6e4,()=>{o&&o.end(),i(Error(`Request timeout: ${e.options.path}`))}),a.on(`error`,function(e){i(e)}),t&&typeof t==`string`&&a.write(t,`utf8`),t&&typeof t!=`string`?(t.on(`close`,function(){a.end()}),t.pipe(a)):a.end()}getAgent(e){let t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){let t=new URL(e),n=s.getProxyUrl(t);if(n&&n.hostname)return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){let r={};r.parsedUrl=t;let i=r.parsedUrl.protocol===`https:`;r.httpModule=i?o:a;let s=i?443:80;if(r.options={},r.options.host=r.parsedUrl.hostname,r.options.port=r.parsedUrl.port?parseInt(r.parsedUrl.port):s,r.options.path=(r.parsedUrl.pathname||``)+(r.parsedUrl.search||``),r.options.method=e,r.options.headers=this._mergeHeaders(n),this.userAgent!=null&&(r.options.headers[`user-agent`]=this.userAgent),r.options.agent=this._getAgent(r.parsedUrl),this.handlers)for(let e of this.handlers)e.prepareRequest(r.options);return r}_mergeHeaders(e){return this.requestOptions&&this.requestOptions.headers?Object.assign({},b(this.requestOptions.headers),b(e||{})):b(e||{})}_getExistingOrDefaultHeader(e,t,n){let r;if(this.requestOptions&&this.requestOptions.headers){let e=b(this.requestOptions.headers)[t];e&&(r=typeof e==`number`?e.toString():e)}let i=e[t];return i===void 0?r===void 0?n:r:typeof i==`number`?i.toString():i}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){let e=b(this.requestOptions.headers)[d.ContentType];e&&(n=typeof e==`number`?String(e):Array.isArray(e)?e.join(`, `):e)}let r=e[d.ContentType];return r===void 0?n===void 0?t:n:typeof r==`number`?String(r):Array.isArray(r)?r.join(`, `):r}_getAgent(e){let t,n=s.getProxyUrl(e),r=n&&n.hostname;if(this._keepAlive&&r&&(t=this._proxyAgent),r||(t=this._agent),t)return t;let i=e.protocol===`https:`,l=100;if(this.requestOptions&&(l=this.requestOptions.maxSockets||a.globalAgent.maxSockets),n&&n.hostname){let e={maxSockets:l,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})},r,a=n.protocol===`https:`;r=i?a?c.httpsOverHttps:c.httpsOverHttp:a?c.httpOverHttps:c.httpOverHttp,t=r(e),this._proxyAgent=t}if(!t){let e={keepAlive:this._keepAlive,maxSockets:l};t=i?new o.Agent(e):new a.Agent(e),this._agent=t}return i&&this._ignoreSslError&&(t.options=Object.assign(t.options||{},{rejectUnauthorized:!1})),t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive&&(n=this._proxyAgentDispatcher),n)return n;let r=e.protocol===`https:`;return n=new l.ProxyAgent(Object.assign({uri:t.href,pipelining:+!!this._keepAlive},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString(`base64`)}`})),this._proxyAgentDispatcher=n,r&&this._ignoreSslError&&(n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:!1})),n}_getUserAgentWithOrchestrationId(e){let t=e||`actions/http-client`,n=process.env.ACTIONS_ORCHESTRATION_ID;return n?`${t} actions_orchestration_id/${n.replace(/[^a-z0-9_.-]/gi,`_`)}`:t}_performExponentialBackoff(e){return i(this,void 0,void 0,function*(){e=Math.min(10,e);let t=5*2**e;return new Promise(e=>setTimeout(()=>e(),t))})}_processResponse(e,t){return i(this,void 0,void 0,function*(){return new Promise((n,r)=>i(this,void 0,void 0,function*(){let i=e.message.statusCode||0,a={statusCode:i,result:null,headers:{}};i===u.NotFound&&n(a);function o(e,t){if(typeof t==`string`){let e=new Date(t);if(!isNaN(e.valueOf()))return e}return t}let s,c;try{c=yield e.readBody(),c&&c.length>0&&(s=t&&t.deserializeDates?JSON.parse(c,o):JSON.parse(c),a.result=s),a.headers=e.message.headers}catch{}if(i>299){let e;e=s&&s.message?s.message:c&&c.length>0?c:`Failed request: (${i})`;let t=new _(e,i);t.result=a.result,r(t)}else n(a)}))})}};let b=e=>Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{})}))(),1),cE=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function lE(e,t){if(!e&&!t.auth)throw Error(`Parameter token or opts.auth is required`);if(e&&t.auth)throw Error(`Parameters token and opts.auth may not both be specified`);return typeof t.auth==`string`?t.auth:`token ${e}`}function uE(e){return new sE.HttpClient().getAgent(e)}function dE(e){return new sE.HttpClient().getAgentDispatcher(e)}function fE(e){let t=dE(e);return(e,n)=>cE(this,void 0,void 0,function*(){return(0,bn.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))})}function pE(){return process.env.GITHUB_API_URL||`https://api.github.com`}function mE(e){let t=process.env.ACTIONS_ORCHESTRATION_ID?.trim();if(t){let n=`actions_orchestration_id/${t.replace(/[^a-z0-9_.-]/gi,`_`)}`;return e?.includes(n)?e:`${e?`${e} `:``}${n}`}return e}function hE(){return typeof navigator==`object`&&`userAgent`in navigator?navigator.userAgent:typeof process==`object`&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:``}function gE(e,t,n,r){if(typeof n!=`function`)throw Error(`method for before hook must be a function`);return r||={},Array.isArray(t)?t.reverse().reduce((t,n)=>gE.bind(null,e,n,t,r),n)():Promise.resolve().then(()=>e.registry[t]?e.registry[t].reduce((e,t)=>t.hook.bind(null,e,r),n)():n(r))}function _E(e,t,n,r){let i=r;e.registry[n]||(e.registry[n]=[]),t===`before`&&(r=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))),t===`after`&&(r=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then(e=>(n=e,i(n,t))).then(()=>n)}),t===`error`&&(r=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch(e=>i(e,t))),e.registry[n].push({hook:r,orig:i})}function vE(e,t,n){if(!e.registry[t])return;let r=e.registry[t].map(e=>e.orig).indexOf(n);r!==-1&&e.registry[t].splice(r,1)}const yE=Function.bind,bE=yE.bind(yE);function xE(e,t,n){let r=bE(vE,null).apply(null,n?[t,n]:[t]);e.api={remove:r},e.remove=r,[`before`,`error`,`after`,`wrap`].forEach(r=>{let i=n?[t,r,n]:[t,r];e[r]=e.api[r]=bE(_E,null).apply(null,i)})}function SE(){let e=Symbol(`Singular`),t={registry:{}},n=gE.bind(null,t,e);return xE(n,t,e),n}function CE(){let e={registry:{}},t=gE.bind(null,e);return xE(t,e),t}var wE={Singular:SE,Collection:CE},TE={method:`GET`,baseUrl:`https://api.github.com`,headers:{accept:`application/vnd.github.v3+json`,"user-agent":`octokit-endpoint.js/0.0.0-development ${hE()}`},mediaType:{format:``}};function EE(e){return e?Object.keys(e).reduce((t,n)=>(t[n.toLowerCase()]=e[n],t),{}):{}}function DE(e){if(typeof e!=`object`||!e||Object.prototype.toString.call(e)!==`[object Object]`)return!1;let t=Object.getPrototypeOf(e);if(t===null)return!0;let n=Object.prototype.hasOwnProperty.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function OE(e,t){let n=Object.assign({},e);return Object.keys(t).forEach(r=>{DE(t[r])&&r in e?n[r]=OE(e[r],t[r]):Object.assign(n,{[r]:t[r]})}),n}function kE(e){for(let t in e)e[t]===void 0&&delete e[t];return e}function AE(e,t,n){if(typeof t==`string`){let[e,r]=t.split(` `);n=Object.assign(r?{method:e,url:r}:{url:e},n)}else n=Object.assign({},t);n.headers=EE(n.headers),kE(n),kE(n.headers);let r=OE(e||{},n);return n.url===`/graphql`&&(e&&e.mediaType.previews?.length&&(r.mediaType.previews=e.mediaType.previews.filter(e=>!r.mediaType.previews.includes(e)).concat(r.mediaType.previews)),r.mediaType.previews=(r.mediaType.previews||[]).map(e=>e.replace(/-preview/,``))),r}function jE(e,t){let n=/\?/.test(e)?`&`:`?`,r=Object.keys(t);return r.length===0?e:e+n+r.map(e=>e===`q`?`q=`+t.q.split(`+`).map(encodeURIComponent).join(`+`):`${e}=${encodeURIComponent(t[e])}`).join(`&`)}var ME=/\{[^{}}]+\}/g;function NE(e){return e.replace(/(?:^\W+)|(?:(?e.concat(t),[]):[]}function FE(e,t){let n={__proto__:null};for(let r of Object.keys(e))t.indexOf(r)===-1&&(n[r]=e[r]);return n}function IE(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){return/%[0-9A-Fa-f]/.test(e)||(e=encodeURI(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`)),e}).join(``)}function LE(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return`%`+e.charCodeAt(0).toString(16).toUpperCase()})}function RE(e,t,n){return t=e===`+`||e===`#`?IE(t):LE(t),n?LE(n)+`=`+t:t}function zE(e){return e!=null}function BE(e){return e===`;`||e===`&`||e===`?`}function VE(e,t,n,r){var i=e[n],a=[];if(zE(i)&&i!==``)if(typeof i==`string`||typeof i==`number`||typeof i==`bigint`||typeof i==`boolean`)i=i.toString(),r&&r!==`*`&&(i=i.substring(0,parseInt(r,10))),a.push(RE(t,i,BE(t)?n:``));else if(r===`*`)Array.isArray(i)?i.filter(zE).forEach(function(e){a.push(RE(t,e,BE(t)?n:``))}):Object.keys(i).forEach(function(e){zE(i[e])&&a.push(RE(t,i[e],e))});else{let e=[];Array.isArray(i)?i.filter(zE).forEach(function(n){e.push(RE(t,n))}):Object.keys(i).forEach(function(n){zE(i[n])&&(e.push(LE(n)),e.push(RE(t,i[n].toString())))}),BE(t)?a.push(LE(n)+`=`+e.join(`,`)):e.length!==0&&a.push(e.join(`,`))}else t===`;`?zE(i)&&a.push(LE(n)):i===``&&(t===`&`||t===`?`)?a.push(LE(n)+`=`):i===``&&a.push(``);return a}function HE(e){return{expand:UE.bind(null,e)}}function UE(e,t){var n=[`+`,`#`,`.`,`/`,`;`,`?`,`&`];return e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,r,i){if(r){let e=``,i=[];if(n.indexOf(r.charAt(0))!==-1&&(e=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(n){var r=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(VE(t,e,r[1],r[2]||r[3]))}),e&&e!==`+`){var a=`,`;return e===`?`?a=`&`:e!==`#`&&(a=e),(i.length===0?``:e)+i.join(a)}else return i.join(`,`)}else return IE(i)}),e===`/`?e:e.replace(/\/$/,``)}function WE(e){let t=e.method.toUpperCase(),n=(e.url||`/`).replace(/:([a-z]\w+)/g,`{$1}`),r=Object.assign({},e.headers),i,a=FE(e,[`method`,`baseUrl`,`url`,`headers`,`request`,`mediaType`]),o=PE(n);n=HE(n).expand(a),/^http/.test(n)||(n=e.baseUrl+n);let s=FE(a,Object.keys(e).filter(e=>o.includes(e)).concat(`baseUrl`));return/application\/octet-stream/i.test(r.accept)||(e.mediaType.format&&(r.accept=r.accept.split(/,/).map(t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`)).join(`,`)),n.endsWith(`/graphql`)&&e.mediaType.previews?.length&&(r.accept=(r.accept.match(/(?`application/vnd.github.${t}-preview${e.mediaType.format?`.${e.mediaType.format}`:`+json`}`).join(`,`))),[`GET`,`HEAD`].includes(t)?n=jE(n,s):`data`in s?i=s.data:Object.keys(s).length&&(i=s),!r[`content-type`]&&i!==void 0&&(r[`content-type`]=`application/json; charset=utf-8`),[`PATCH`,`PUT`].includes(t)&&i===void 0&&(i=``),Object.assign({method:t,url:n,headers:r},i===void 0?null:{body:i},e.request?{request:e.request}:null)}function GE(e,t,n){return WE(AE(e,t,n))}function KE(e,t){let n=AE(e,t),r=GE.bind(null,n);return Object.assign(r,{DEFAULTS:n,defaults:KE.bind(null,n),merge:AE.bind(null,n),parse:WE})}var qE=KE(null,TE),JE=z((e=>{ /*! * content-type * Copyright(c) 2015 Douglas Christopher Wilson @@ -66,18 +66,18 @@ More info on storage limits: https://docs.github.com/en/billing/managing-billing */ Object.defineProperty(e,"__esModule",{value:!0}),e.parse=n;let t=(()=>{let e=function(){};return e.prototype=Object.create(null),e})();function n(e,n){let s=e.length,c=a(e,0,s),l=c;c=i(e,c,s);let u=o(e,l,c);return{type:e.slice(l,u).toLowerCase(),parameters:n?.parameters===!1?new t:r(e,c,s)}}function r(e,n,r){let s=new t;parameter:for(;nt;){let t=e.charCodeAt(n-1);if(t!==32&&t!==9)break;n--}return n}}))();const YE=/^-?\d+$/,XE=/^-?\d+n+$/,ZE=JSON.stringify,QE=JSON.parse,$E=/^-?\d+n$/,eD=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,tD=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g,nD=(e,t,n)=>`rawJSON`in JSON?ZE(e,(e,n)=>typeof n==`bigint`?JSON.rawJSON(n.toString()):typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n):e?ZE(e,(e,n)=>typeof n==`string`&&XE.test(n)||typeof n==`bigint`?n.toString()+`n`:typeof t==`function`?t(e,n):(Array.isArray(t)&&t.includes(e),n),n).replace(eD,`$1$2$3`).replace(tD,`$1$2$3`):ZE(e,t,n),rD=new Map,iD=()=>{let e=JSON.parse.toString();if(rD.has(e))return rD.get(e);try{let t=JSON.parse(`1`,(e,t,n)=>!!n?.source&&n.source===`1`);return rD.set(e,t),t}catch{return rD.set(e,!1),!1}},aD=(e,t,n,r)=>typeof t==`string`&&$E.test(t)?BigInt(t.slice(0,-1)):typeof t==`string`&&XE.test(t)?t.slice(0,-1):typeof r==`function`?r(e,t,n):t,oD=(e,t)=>JSON.parse(e,(e,n,r)=>{let i=typeof n==`number`&&(n>2**53-1||n<-(2**53-1)),a=r&&YE.test(r.source);return i&&a?BigInt(r.source):typeof t==`function`?t(e,n,r):n}),sD=(2**53-1).toString(),cD=sD.length,lD=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,uD=/^"-?\d+n+"$/,dD=(e,t)=>e?iD()?oD(e,t):QE(e.replace(lD,(e,t,n,r)=>{let i=e[0]===`"`;if(i&&uD.test(e))return e.substring(0,e.length-1)+`n"`;let a=n||r,o=t&&(t.lengthaD(e,n,r,t)):QE(e,t);var fD=class extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause}),this.name=`HttpError`,this.status=Number.parseInt(t),Number.isNaN(this.status)&&(this.status=0),`response`in n&&(this.response=n.response);let r=Object.assign({},n.request);n.request.headers.authorization&&(r.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?``;async function gD(e){let t=e.request?.fetch||globalThis.fetch;if(!t)throw 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`);let n=e.request?.log||console,r=e.request?.parseSuccessResponseBody!==!1,i=mD(e.body)||Array.isArray(e.body)?nD(e.body):e.body,a=Object.fromEntries(Object.entries(e.headers).map(([e,t])=>[e,String(t)])),o;try{o=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:`half`}})}catch(t){let n=`Unknown Error`;if(t instanceof Error){if(t.name===`AbortError`)throw t.status=500,t;n=t.message,t.name===`TypeError`&&`cause`in t&&(t.cause instanceof Error?n=t.cause.message:typeof t.cause==`string`&&(n=t.cause))}let r=new fD(n,500,{request:e});throw r.cause=t,r}let s=o.status,c=o.url,l={};for(let[e,t]of o.headers)l[e]=t;let u={url:c,status:s,headers:l,data:``};if(`deprecation`in l){let t=l.link&&l.link.match(/<([^<>]+)>; rel="deprecation"/),r=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${l.sunset}${r?`. See ${r}`:``}`)}if(s===204||s===205)return u;if(e.method===`HEAD`){if(s<400)return u;throw new fD(o.statusText,s,{response:u,request:e})}if(s===304)throw u.data=await _D(o),new fD(`Not modified`,s,{response:u,request:e});if(s>=400)throw u.data=await _D(o),new fD(yD(u.data),s,{response:u,request:e});return u.data=r?await _D(o):o.body,u}async function _D(e){let t=e.headers.get(`content-type`);if(!t)return e.text().catch(hD);let n=(0,JE.parse)(t);if(vD(n)){let t=``;try{return t=await e.text(),dD(t)}catch{return t}}else if(n.type.startsWith(`text/`)||n.parameters.charset?.toLowerCase()===`utf-8`)return e.text().catch(hD);else return e.arrayBuffer().catch(()=>new ArrayBuffer(0))}function vD(e){return e.type===`application/json`||e.type===`application/scim+json`}function yD(e){if(typeof e==`string`)return e;if(e instanceof ArrayBuffer)return`Unknown error`;if(`message`in e){let t=`documentation_url`in e?` - ${e.documentation_url}`:``;return Array.isArray(e.errors)?`${e.message}: ${e.errors.map(e=>JSON.stringify(e)).join(`, `)}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function bD(e,t){let n=e.defaults(t);return Object.assign(function(e,t){let r=n.merge(e,t);if(!r.request||!r.request.hook)return gD(n.parse(r));let i=(e,t)=>gD(n.parse(n.merge(e,t)));return Object.assign(i,{endpoint:n,defaults:bD.bind(null,n)}),r.request.hook(i,r)},{endpoint:n,defaults:bD.bind(null,n)})}var xD=bD(qE,pD),SD=`0.0.0-development`;function CD(e){return`Request failed due to following response errors: `+e.errors.map(e=>` - ${e.message}`).join(` -`)}var wD=class extends Error{constructor(e,t,n){super(CD(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},TD=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],ED=[`query`,`method`,`url`],DD=/\/api\/v3\/?$/;function OD(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(ED.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>TD.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return DD.test(a)&&(i.url=a.replace(DD,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new wD(i,t,e.data)}return e.data.data})}function kD(e,t){let n=e.defaults(t);return Object.assign((e,t)=>OD(n,e,t),{defaults:kD.bind(null,n),endpoint:n.endpoint})}kD(xD,{headers:{"user-agent":`octokit-graphql.js/${SD} ${hE()}`},method:`POST`,url:`/graphql`});function AD(e){return kD(e,{method:`POST`,url:`/graphql`})}var jD=`(?:[a-zA-Z0-9_-]+)`,MD=`\\.`,ND=RegExp(`^${jD}${MD}${jD}${MD}${jD}$`),PD=ND.test.bind(ND);async function FD(e){let t=PD(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function ID(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function LD(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=ID(e),t(i)}var RD=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(FD.bind(null,e),{hook:LD.bind(null,e)})};const zD=`7.0.6`,BD=()=>{},VD=console.warn.bind(console),HD=console.error.bind(console);function UD(e={}){return typeof e.debug!=`function`&&(e.debug=BD),typeof e.info!=`function`&&(e.info=BD),typeof e.warn!=`function`&&(e.warn=VD),typeof e.error!=`function`&&(e.error=HD),e}const WD=`octokit-core.js/${zD} ${hE()}`;var GD=class{static VERSION=zD;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new wE.Collection,n={baseUrl:xD.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${WD}`:WD,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=xD.defaults(n),this.graphql=AD(this.request).defaults(n),this.log=UD(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=RD(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t({async next(){if(!s)return{done:!0};try{let e=tO(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10){if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:iO(e,t,n,r)})}Object.assign(rO,{iterator:nO});function aO(e){return{paginate:Object.assign(rO.bind(null,e),{iterator:nO.bind(null,e)})}}aO.VERSION=eO,new aE;const oO=pE(),sO={baseUrl:oO,request:{agent:uE(oO),fetch:fE(oO)}},cO=GD.plugin(QD,aO).defaults(sO);function lO(e,t){let n=Object.assign({},t||{}),r=lE(e,n);r&&(n.auth=r);let i=mE(n.userAgent);return i&&(n.userAgent=i),n}const uO=new aE;function dO(e,t,...n){return new(cO.plugin(...n))(lO(e,t))}var fO=R((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,"__esModule",{value:!0});function t(e){var t=Math.random()*e;return Math.round(t)}e.fullJitter=t})),mO=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return e}e.noJitter=t})),hO=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=pO(),n=mO();function r(e){switch(e.jitter){case`full`:return t.fullJitter;default:return n.noJitter}}e.JitterFactory=r})),gO=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=hO();e.Delay=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise(function(t){return setTimeout(t,e.jitteredDelay)})},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return t.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay*this.options.timeMultiple**+this.numOfDelayedAttempts;return Math.min(e,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}()})),_O=R((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},r=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysDelay=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(gO().Delay)})),yO=R((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_O(),n=vO();function r(e,t){var n=i(e);return n.setAttemptNumber(t),n}e.DelayFactory=r;function i(e){return e.delayFirstAttempt?new n.AlwaysDelay(e):new t.SkipFirstDelay(e)}})),bO=R((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return e=i.DelayFactory(this.options,this.attemptNumber),[4,e.apply()];case 1:return t.sent(),[2]}})})},e}()})),xO=R(((e,t)=>{t.exports={name:`systeminformation`,version:`5.31.7`,description:`Advanced, lightweight system and OS information library`,license:`MIT`,author:`Sebastian Hildebrandt (https://plus-innovations.com)`,homepage:`https://systeminformation.io`,main:`./lib/index.js`,type:`commonjs`,bin:{systeminformation:`lib/cli.js`},types:`./lib/index.d.ts`,scripts:{test:`node ./test/test.js`,testDeno:`deno run -A ./test/test.js`},files:[`lib/`],keywords:`system information.sysinfo.monitor.monitoring.os.linux.osx.windows.freebsd.openbsd.netbsd.cpu.cpuload.physical cores.logical cores.processor.cores.threads.socket type.memory.file system.fsstats.diskio.block devices.netstats.network.network interfaces.network connections.network stats.iface.printer.processes.users.internet.battery.docker.docker stats.docker processes.graphics.graphic card.graphic controller.gpu.display.smart.disk layout.usb.audio.bluetooth.wifi.wifinetworks.virtual box.virtualbox.vm.backend.hardware.BIOS.chassis`.split(`.`),repository:{type:`git`,url:`git+https://github.com/sebhildebrandt/systeminformation.git`},funding:{type:`Buy me a coffee`,url:`https://www.buymeacoffee.com/systeminfo`},os:[`darwin`,`linux`,`win32`,`freebsd`,`openbsd`,`netbsd`,`sunos`,`android`],engines:{node:`>=8.0.0`}}})),SO=R((e=>{let t=B(`os`),n=B(`fs`),r=B(`path`),i=B(`child_process`).spawn,a=B(`child_process`).exec,o=B(`child_process`).execSync,s=B(`util`),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=0,g=``,_=null,v=null,y=process.env.WINDIR||`C:\\Windows`,b,x=``,S=[],C=!1,w=``,T=`$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; `,E=`--###START###--`,D=`--ERROR--`,O=`--###ENDCMD###--`,k=`--##ID##--`,A={windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})},j={maxBuffer:1024*102400,encoding:`UTF-8`,stdio:[`pipe`,`pipe`,`ignore`]};function M(e){let t=parseInt(e,10);return isNaN(t)&&(t=0),t}function N(e){let t=!1,n=``,r=``;for(let i of e)i>=`0`&&i<=`9`||t?(t=!0,n+=i):r+=i;return[r,n]}let P=new String,ee=new String().replace,te=new String().toLowerCase,ne=new String().toString,F=new String().substr,re=new String().substring,ie=new String().trim,I=new String().startsWith,ae=Math.min;function oe(e){return e&&{}.toString.call(e)===`[object Function]`}function se(e){let t=[],n={};for(let r=0;re-t);let a=``;for(let t=0;t{let r=``,i=``;return t.forEach(t=>{r+=e[t],i+=n[t]}),ri)})}function le(){return h===0&&(h=t.cpus().length),h}function L(e,t,n,r,i){n||=`:`,t=t.toLowerCase(),r||=!1,i||=!1;let a=``;return e.some(e=>{let o=e.toLowerCase().replace(/\t/g,``);if(r&&(o=o.trim()),o.startsWith(t)&&(!i||o.match(t+n)||o.match(t+` `+n))){let t=r?e.trim().split(n):e.split(n);if(t.length>=2)return t.shift(),a=t.join(n).trim(),!0}return!1}),a}function ue(e,t){return t||=16,e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],t))})}function de(e){let t=``,n=0;return e.split(``).forEach(e=>{e>=`0`&&e<=`9`?n===1&&n++:(n===0&&n++,n===1&&(t+=e))}),t}function fe(e,t){t||=``,e=e.toUpperCase();let n=0,r=0,i=de(e),a=e.split(i);if(a.length>=2){a[2]&&(a[1]+=a[2]);let e=a[1]&&a[1].toLowerCase().indexOf(`pm`)>-1||a[1].toLowerCase().indexOf(`p.m.`)>-1||a[1].toLowerCase().indexOf(`p. m.`)>-1||a[1].toLowerCase().indexOf(`n`)>-1||a[1].toLowerCase().indexOf(`ch`)>-1||a[1].toLowerCase().indexOf(`ös`)>-1||t&&a[1].toLowerCase().indexOf(t)>-1;return n=parseInt(a[0],10),r=parseInt(a[1],10),n=e&&n<12?n+12:n,(`0`+n).substr(-2)+`:`+(`0`+r).substr(-2)}}function pe(e,t){let n={date:``,time:``};t||={};let r=(t.dateFormat||``).toLowerCase(),i=t.pmDesignator||``,a=e.split(` `);if(a[0]){if(a[0].indexOf(`/`)>=0){let t=a[0].split(`/`);t.length===3&&(t[0].length===4?n.date=t[0]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[2]).substr(-2):t[2].length===2?(r.indexOf(`/d/`)>-1||r.indexOf(`/dd/`),n.date=`20`+t[2]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[0]).substr(-2)):(e.toLowerCase().indexOf(`pm`)>-1||e.toLowerCase().indexOf(`p.m.`)>-1||e.toLowerCase().indexOf(`p. m.`)>-1||e.toLowerCase().indexOf(`am`)>-1||e.toLowerCase().indexOf(`a.m.`)>-1||e.toLowerCase().indexOf(`a. m.`)>-1||r.indexOf(`/d/`)>-1||r.indexOf(`/dd/`)>-1)&&r.indexOf(`dd/`)!==0?n.date=t[2]+`-`+(`0`+t[0]).substr(-2)+`-`+(`0`+t[1]).substr(-2):n.date=t[2]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[0]).substr(-2))}if(a[0].indexOf(`.`)>=0){let e=a[0].split(`.`);e.length===3&&(r.indexOf(`.d.`)>-1||r.indexOf(`.dd.`)>-1?n.date=e[2]+`-`+(`0`+e[0]).substr(-2)+`-`+(`0`+e[1]).substr(-2):n.date=e[2]+`-`+(`0`+e[1]).substr(-2)+`-`+(`0`+e[0]).substr(-2))}if(a[0].indexOf(`-`)>=0){let e=a[0].split(`-`);e.length===3&&(n.date=e[0]+`-`+(`0`+e[1]).substr(-2)+`-`+(`0`+e[2]).substr(-2))}}return a[1]&&(a.shift(),n.time=fe(a.join(` `),i)),n}function me(e,t){let n=t>0,r=1,i=0,a=0,o=[];for(let s=0;s=0){n=e.split(E);let r=n[1].split(k);t=r[0],r.length>1&&(e=r.slice(1).join(k))}e.indexOf(O)>=0&&(n=e.split(O),r=n[0]);let i=-1;for(let e=0;e=0&&S.splice(i,1)}function _e(){b||(b=i(w,[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-NoExit`,`-Command`,`-`],{stdio:`pipe`,windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})}),b&&b.pid&&(C=!0,b.stdout.on(`data`,e=>{x+=e.toString(`utf8`),e.indexOf(O)>=0&&(z(x),x=``)}),b.stderr.on(`data`,()=>{z(x+D)}),b.on(`error`,()=>{z(x+D)}),b.on(`close`,()=>{b&&b.kill()})))}function ve(){try{b&&(b.stdin.write(`exit`+t.EOL),b.stdin.end())}catch{b&&b.kill()}C=!1,b=null}function ye(e){if(C){let n=Math.random().toString(36).substring(2,12);return new Promise(r=>{process.nextTick(()=>{function i(e){r(e)}S.push({id:n,cmd:e,callback:i,start:new Date});try{b&&b.pid&&b.stdin.write(`$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; echo --###START###--`+n+`--##ID##--; `+t.EOL+e+t.EOL+`echo --###ENDCMD###--`+t.EOL)}catch{r(``)}})})}else{let n=``;return new Promise(r=>{process.nextTick(()=>{try{let a=t.release().split(`.`).map(Number),o=a[0]<10?[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-NoExit`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,`-`]:[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,T+e],s=i(w,o,{stdio:`pipe`,windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})});if(s&&!s.pid&&s.on(`error`,()=>{r(n)}),s&&s.pid){if(s.stdout.on(`data`,e=>{n+=e.toString(`utf8`)}),s.stderr.on(`data`,()=>{s.kill(),r(n)}),s.on(`close`,()=>{s.kill(),r(n)}),s.on(`error`,()=>{s.kill(),r(n)}),a[0]<10)try{s.stdin.write(T+e+t.EOL),s.stdin.write(`exit`+t.EOL),s.stdin.end()}catch{s.kill(),r(n)}}else r(n)}catch{r(n)}})})}}function be(e,t,n){let r=``;return n||={},new Promise(a=>{process.nextTick(()=>{try{let o=i(e,t,n);o&&!o.pid&&o.on(`error`,()=>{a(r)}),o&&o.pid?(o.stdout.on(`data`,e=>{r+=e.toString()}),o.on(`close`,()=>{o.kill(),a(r)}),o.on(`error`,()=>{o.kill(),a(r)})):a(r)}catch{a(r)}})})}function xe(){if(d){if(!g)try{let e=o(`chcp`,A).toString().split(`\r +`)}var wD=class extends Error{constructor(e,t,n){super(CD(n)),this.request=e,this.headers=t,this.response=n,this.errors=n.errors,this.data=n.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name=`GraphqlResponseError`;errors;data},TD=[`method`,`baseUrl`,`url`,`headers`,`request`,`query`,`mediaType`,`operationName`],ED=[`query`,`method`,`url`],DD=/\/api\/v3\/?$/;function OD(e,t,n){if(n){if(typeof t==`string`&&`query`in n)return Promise.reject(Error(`[@octokit/graphql] "query" cannot be used as variable name`));for(let e in n)if(ED.includes(e))return Promise.reject(Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}let r=typeof t==`string`?Object.assign({query:t},n):t,i=Object.keys(r).reduce((e,t)=>TD.includes(t)?(e[t]=r[t],e):(e.variables||={},e.variables[t]=r[t],e),{}),a=r.baseUrl||e.endpoint.DEFAULTS.baseUrl;return DD.test(a)&&(i.url=a.replace(DD,`/api/graphql`)),e(i).then(e=>{if(e.data.errors){let t={};for(let n of Object.keys(e.headers))t[n]=e.headers[n];throw new wD(i,t,e.data)}return e.data.data})}function kD(e,t){let n=e.defaults(t);return Object.assign((e,t)=>OD(n,e,t),{defaults:kD.bind(null,n),endpoint:n.endpoint})}kD(xD,{headers:{"user-agent":`octokit-graphql.js/${SD} ${hE()}`},method:`POST`,url:`/graphql`});function AD(e){return kD(e,{method:`POST`,url:`/graphql`})}var jD=`(?:[a-zA-Z0-9_-]+)`,MD=`\\.`,ND=RegExp(`^${jD}${MD}${jD}${MD}${jD}$`),PD=ND.test.bind(ND);async function FD(e){let t=PD(e),n=e.startsWith(`v1.`)||e.startsWith(`ghs_`),r=e.startsWith(`ghu_`);return{type:`token`,token:e,tokenType:t?`app`:n?`installation`:r?`user-to-server`:`oauth`}}function ID(e){return e.split(/\./).length===3?`bearer ${e}`:`token ${e}`}async function LD(e,t,n,r){let i=t.endpoint.merge(n,r);return i.headers.authorization=ID(e),t(i)}var RD=function(e){if(!e)throw Error(`[@octokit/auth-token] No token passed to createTokenAuth`);if(typeof e!=`string`)throw Error(`[@octokit/auth-token] Token passed to createTokenAuth is not a string`);return e=e.replace(/^(token|bearer) +/i,``),Object.assign(FD.bind(null,e),{hook:LD.bind(null,e)})};const zD=`7.0.6`,BD=()=>{},VD=console.warn.bind(console),HD=console.error.bind(console);function UD(e={}){return typeof e.debug!=`function`&&(e.debug=BD),typeof e.info!=`function`&&(e.info=BD),typeof e.warn!=`function`&&(e.warn=VD),typeof e.error!=`function`&&(e.error=HD),e}const WD=`octokit-core.js/${zD} ${hE()}`;var GD=class{static VERSION=zD;static defaults(e){return class extends this{constructor(...t){let n=t[0]||{};if(typeof e==`function`){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let t=this.plugins;return class extends this{static plugins=t.concat(e.filter(e=>!t.includes(e)))}}constructor(e={}){let t=new wE.Collection,n={baseUrl:xD.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,`request`)}),mediaType:{previews:[],format:``}};if(n.headers[`user-agent`]=e.userAgent?`${e.userAgent} ${WD}`:WD,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers[`time-zone`]=e.timeZone),this.request=xD.defaults(n),this.graphql=AD(this.request).defaults(n),this.log=UD(e.log),this.hook=t,e.authStrategy){let{authStrategy:n,...r}=e,i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:r},e.auth));t.wrap(`request`,i.hook),this.auth=i}else if(!e.auth)this.auth=async()=>({type:`unauthenticated`});else{let n=RD(e.auth);t.wrap(`request`,n.hook),this.auth=n}let r=this.constructor;for(let t=0;t({async next(){if(!s)return{done:!0};try{let e=tO(await i({method:a,url:s,headers:o}));if(s=((e.headers.link||``).match(/<([^<>]+)>;\s*rel="next"/)||[])[1],!s&&`total_commits`in e.data){let t=new URL(e.url),n=t.searchParams,r=parseInt(n.get(`page`)||`1`,10);r*parseInt(n.get(`per_page`)||`250`,10){if(i.done)return t;let a=!1;function o(){a=!0}return t=t.concat(r?r(i.value,o):i.value.data),a?t:iO(e,t,n,r)})}Object.assign(rO,{iterator:nO});function aO(e){return{paginate:Object.assign(rO.bind(null,e),{iterator:nO.bind(null,e)})}}aO.VERSION=eO,new aE;const oO=pE(),sO={baseUrl:oO,request:{agent:uE(oO),fetch:fE(oO)}},cO=GD.plugin(QD,aO).defaults(sO);function lO(e,t){let n=Object.assign({},t||{}),r=lE(e,n);r&&(n.auth=r);let i=mE(n.userAgent);return i&&(n.userAgent=i),n}const uO=new aE;function dO(e,t,...n){return new(cO.plugin(...n))(lO(e,t))}var fO=z((e=>{var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{Object.defineProperty(e,"__esModule",{value:!0});function t(e){var t=Math.random()*e;return Math.round(t)}e.fullJitter=t})),mO=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e){return e}e.noJitter=t})),hO=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=pO(),n=mO();function r(e){switch(e.jitter){case`full`:return t.fullJitter;default:return n.noJitter}}e.JitterFactory=r})),gO=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=hO();e.Delay=function(){function e(e){this.options=e,this.attempt=0}return e.prototype.apply=function(){var e=this;return new Promise(function(t){return setTimeout(t,e.jitteredDelay)})},e.prototype.setAttemptNumber=function(e){this.attempt=e},Object.defineProperty(e.prototype,"jitteredDelay",{get:function(){return t.JitterFactory(this.options)(this.delay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delay",{get:function(){var e=this.options.startingDelay*this.options.timeMultiple**+this.numOfDelayedAttempts;return Math.min(e,this.options.maxDelay)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numOfDelayedAttempts",{get:function(){return this.attempt},enumerable:!0,configurable:!0}),e}()})),_O=z((e=>{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),n=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},r=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]{var t=e&&e.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysDelay=function(e){t(n,e);function n(){return e!==null&&e.apply(this,arguments)||this}return n}(gO().Delay)})),yO=z((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=_O(),n=vO();function r(e,t){var n=i(e);return n.setAttemptNumber(t),n}e.DelayFactory=r;function i(e){return e.delayFirstAttempt?new n.AlwaysDelay(e):new t.SkipFirstDelay(e)}})),bO=z((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(o){if(r)throw TypeError(`Generator is already executing.`);for(;n;)try{if(r=1,i&&(a=o[0]&2?i.return:o[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,o[1])).done)return a;switch(i=0,a&&(o=[o[0]&2,a.value]),o[0]){case 0:case 1:a=o;break;case 4:return n.label++,{value:o[1],done:!1};case 5:n.label++,i=o[1],o=[0];continue;case 7:o=n.ops.pop(),n.trys.pop();continue;default:if((a=n.trys,!(a=a.length>0&&a[a.length-1]))&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]=this.options.numOfAttempts},enumerable:!0,configurable:!0}),e.prototype.applyDelay=function(){return t(this,void 0,void 0,function(){var e;return n(this,function(t){switch(t.label){case 0:return e=i.DelayFactory(this.options,this.attemptNumber),[4,e.apply()];case 1:return t.sent(),[2]}})})},e}()})),xO=z(((e,t)=>{t.exports={name:`systeminformation`,version:`5.31.7`,description:`Advanced, lightweight system and OS information library`,license:`MIT`,author:`Sebastian Hildebrandt (https://plus-innovations.com)`,homepage:`https://systeminformation.io`,main:`./lib/index.js`,type:`commonjs`,bin:{systeminformation:`lib/cli.js`},types:`./lib/index.d.ts`,scripts:{test:`node ./test/test.js`,testDeno:`deno run -A ./test/test.js`},files:[`lib/`],keywords:`system information.sysinfo.monitor.monitoring.os.linux.osx.windows.freebsd.openbsd.netbsd.cpu.cpuload.physical cores.logical cores.processor.cores.threads.socket type.memory.file system.fsstats.diskio.block devices.netstats.network.network interfaces.network connections.network stats.iface.printer.processes.users.internet.battery.docker.docker stats.docker processes.graphics.graphic card.graphic controller.gpu.display.smart.disk layout.usb.audio.bluetooth.wifi.wifinetworks.virtual box.virtualbox.vm.backend.hardware.BIOS.chassis`.split(`.`),repository:{type:`git`,url:`git+https://github.com/sebhildebrandt/systeminformation.git`},funding:{type:`Buy me a coffee`,url:`https://www.buymeacoffee.com/systeminfo`},os:[`darwin`,`linux`,`win32`,`freebsd`,`openbsd`,`netbsd`,`sunos`,`android`],engines:{node:`>=8.0.0`}}})),SO=z((e=>{let t=V(`os`),n=V(`fs`),r=V(`path`),i=V(`child_process`).spawn,a=V(`child_process`).exec,o=V(`child_process`).execSync,s=V(`util`),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=0,g=``,_=null,v=null,y=process.env.WINDIR||`C:\\Windows`,b,x=``,S=[],C=!1,w=``,T=`$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; `,E=`--###START###--`,D=`--ERROR--`,O=`--###ENDCMD###--`,k=`--##ID##--`,A={windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})},j={maxBuffer:1024*102400,encoding:`UTF-8`,stdio:[`pipe`,`pipe`,`ignore`]};function M(e){let t=parseInt(e,10);return isNaN(t)&&(t=0),t}function N(e){let t=!1,n=``,r=``;for(let i of e)i>=`0`&&i<=`9`||t?(t=!0,n+=i):r+=i;return[r,n]}let P=new String,F=new String().replace,ee=new String().toLowerCase,te=new String().toString,I=new String().substr,ne=new String().substring,re=new String().trim,L=new String().startsWith,ie=Math.min;function ae(e){return e&&{}.toString.call(e)===`[object Function]`}function oe(e){let t=[],n={};for(let r=0;re-t);let a=``;for(let t=0;t{let r=``,i=``;return t.forEach(t=>{r+=e[t],i+=n[t]}),ri)})}function ce(){return h===0&&(h=t.cpus().length),h}function R(e,t,n,r,i){n||=`:`,t=t.toLowerCase(),r||=!1,i||=!1;let a=``;return e.some(e=>{let o=e.toLowerCase().replace(/\t/g,``);if(r&&(o=o.trim()),o.startsWith(t)&&(!i||o.match(t+n)||o.match(t+` `+n))){let t=r?e.trim().split(n):e.split(n);if(t.length>=2)return t.shift(),a=t.join(n).trim(),!0}return!1}),a}function le(e,t){return t||=16,e.replace(/\\x([0-9A-Fa-f]{2})/g,function(){return String.fromCharCode(parseInt(arguments[1],t))})}function ue(e){let t=``,n=0;return e.split(``).forEach(e=>{e>=`0`&&e<=`9`?n===1&&n++:(n===0&&n++,n===1&&(t+=e))}),t}function de(e,t){t||=``,e=e.toUpperCase();let n=0,r=0,i=ue(e),a=e.split(i);if(a.length>=2){a[2]&&(a[1]+=a[2]);let e=a[1]&&a[1].toLowerCase().indexOf(`pm`)>-1||a[1].toLowerCase().indexOf(`p.m.`)>-1||a[1].toLowerCase().indexOf(`p. m.`)>-1||a[1].toLowerCase().indexOf(`n`)>-1||a[1].toLowerCase().indexOf(`ch`)>-1||a[1].toLowerCase().indexOf(`ös`)>-1||t&&a[1].toLowerCase().indexOf(t)>-1;return n=parseInt(a[0],10),r=parseInt(a[1],10),n=e&&n<12?n+12:n,(`0`+n).substr(-2)+`:`+(`0`+r).substr(-2)}}function fe(e,t){let n={date:``,time:``};t||={};let r=(t.dateFormat||``).toLowerCase(),i=t.pmDesignator||``,a=e.split(` `);if(a[0]){if(a[0].indexOf(`/`)>=0){let t=a[0].split(`/`);t.length===3&&(t[0].length===4?n.date=t[0]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[2]).substr(-2):t[2].length===2?(r.indexOf(`/d/`)>-1||r.indexOf(`/dd/`),n.date=`20`+t[2]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[0]).substr(-2)):(e.toLowerCase().indexOf(`pm`)>-1||e.toLowerCase().indexOf(`p.m.`)>-1||e.toLowerCase().indexOf(`p. m.`)>-1||e.toLowerCase().indexOf(`am`)>-1||e.toLowerCase().indexOf(`a.m.`)>-1||e.toLowerCase().indexOf(`a. m.`)>-1||r.indexOf(`/d/`)>-1||r.indexOf(`/dd/`)>-1)&&r.indexOf(`dd/`)!==0?n.date=t[2]+`-`+(`0`+t[0]).substr(-2)+`-`+(`0`+t[1]).substr(-2):n.date=t[2]+`-`+(`0`+t[1]).substr(-2)+`-`+(`0`+t[0]).substr(-2))}if(a[0].indexOf(`.`)>=0){let e=a[0].split(`.`);e.length===3&&(r.indexOf(`.d.`)>-1||r.indexOf(`.dd.`)>-1?n.date=e[2]+`-`+(`0`+e[0]).substr(-2)+`-`+(`0`+e[1]).substr(-2):n.date=e[2]+`-`+(`0`+e[1]).substr(-2)+`-`+(`0`+e[0]).substr(-2))}if(a[0].indexOf(`-`)>=0){let e=a[0].split(`-`);e.length===3&&(n.date=e[0]+`-`+(`0`+e[1]).substr(-2)+`-`+(`0`+e[2]).substr(-2))}}return a[1]&&(a.shift(),n.time=de(a.join(` `),i)),n}function pe(e,t){let n=t>0,r=1,i=0,a=0,o=[];for(let s=0;s=0){n=e.split(E);let r=n[1].split(k);t=r[0],r.length>1&&(e=r.slice(1).join(k))}e.indexOf(O)>=0&&(n=e.split(O),r=n[0]);let i=-1;for(let e=0;e=0&&S.splice(i,1)}function ge(){b||(b=i(w,[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-NoExit`,`-Command`,`-`],{stdio:`pipe`,windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})}),b&&b.pid&&(C=!0,b.stdout.on(`data`,e=>{x+=e.toString(`utf8`),e.indexOf(O)>=0&&(B(x),x=``)}),b.stderr.on(`data`,()=>{B(x+D)}),b.on(`error`,()=>{B(x+D)}),b.on(`close`,()=>{b&&b.kill()})))}function _e(){try{b&&(b.stdin.write(`exit`+t.EOL),b.stdin.end())}catch{b&&b.kill()}C=!1,b=null}function ve(e){if(C){let n=Math.random().toString(36).substring(2,12);return new Promise(r=>{process.nextTick(()=>{function i(e){r(e)}S.push({id:n,cmd:e,callback:i,start:new Date});try{b&&b.pid&&b.stdin.write(`$OutputEncoding = [System.Console]::OutputEncoding = [System.Console]::InputEncoding = [System.Text.Encoding]::UTF8 ; echo --###START###--`+n+`--##ID##--; `+t.EOL+e+t.EOL+`echo --###ENDCMD###--`+t.EOL)}catch{r(``)}})})}else{let n=``;return new Promise(r=>{process.nextTick(()=>{try{let a=t.release().split(`.`).map(Number),o=a[0]<10?[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-NoExit`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,`-`]:[`-NoProfile`,`-NoLogo`,`-InputFormat`,`Text`,`-ExecutionPolicy`,`Unrestricted`,`-Command`,T+e],s=i(w,o,{stdio:`pipe`,windowsHide:!0,maxBuffer:1024*102400,encoding:`UTF-8`,env:Object.assign({},process.env,{LANG:`en_US.UTF-8`})});if(s&&!s.pid&&s.on(`error`,()=>{r(n)}),s&&s.pid){if(s.stdout.on(`data`,e=>{n+=e.toString(`utf8`)}),s.stderr.on(`data`,()=>{s.kill(),r(n)}),s.on(`close`,()=>{s.kill(),r(n)}),s.on(`error`,()=>{s.kill(),r(n)}),a[0]<10)try{s.stdin.write(T+e+t.EOL),s.stdin.write(`exit`+t.EOL),s.stdin.end()}catch{s.kill(),r(n)}}else r(n)}catch{r(n)}})})}}function ye(e,t,n){let r=``;return n||={},new Promise(a=>{process.nextTick(()=>{try{let o=i(e,t,n);o&&!o.pid&&o.on(`error`,()=>{a(r)}),o&&o.pid?(o.stdout.on(`data`,e=>{r+=e.toString()}),o.on(`close`,()=>{o.kill(),a(r)}),o.on(`error`,()=>{o.kill(),a(r)})):a(r)}catch{a(r)}})})}function be(){if(d){if(!g)try{let e=o(`chcp`,A).toString().split(`\r `)[0].split(`:`);g=e.length>1?e[1].replace(`.`,``).trim():``}catch{g=`437`}return g}if(l||u||f||p||m){if(!g)try{let e=o(`echo $LANG`,j).toString().split(`\r -`)[0].split(`.`);g=e.length>1?e[1].trim():``,g||=`UTF-8`}catch{g=`UTF-8`}return g}}function Se(){if(_!==null)return _;if(_=!1,d)try{let e=o(`WHERE smartctl 2>nul`,A).toString().split(`\r +`)[0].split(`.`);g=e.length>1?e[1].trim():``,g||=`UTF-8`}catch{g=`UTF-8`}return g}}function xe(){if(_!==null)return _;if(_=!1,d)try{let e=o(`WHERE smartctl 2>nul`,A).toString().split(`\r `);_=e&&e.length?e[0].indexOf(`:\\`)>=0:!1}catch{_=!1}if(l||u||f||p||m)try{_=o(`which smartctl 2>/dev/null`,j).toString().split(`\r -`).length>0}catch{s.noop()}return _}function Ce(e){let t=[`BCM2708`,`BCM2709`,`BCM2710`,`BCM2711`,`BCM2712`,`BCM2835`,`BCM2836`,`BCM2837`,`BCM2837B0`];if(v!==null)e=v;else if(e===void 0)try{e=n.readFileSync(`/proc/cpuinfo`,{encoding:`utf8`}).toString().split(` -`),v=e}catch{return!1}let r=L(e,`hardware`),i=L(e,`model`);return r&&t.indexOf(r)>-1||i&&i.indexOf(`Raspberry Pi`)>-1}function we(){let e=[];try{e=n.readFileSync(`/etc/os-release`,{encoding:`utf8`}).toString().split(` -`)}catch{return!1}let t=L(e,`id`,`=`);return t&&t.indexOf(`raspbian`)>-1}function Te(e,t,n){n||(n=t,t=A),a(`chcp 65001 > nul && cmd /C `+e+` && chcp `+g+` > nul`,t,(e,t)=>{n(e,t)})}function Ee(){let e=n.existsSync(`/Library/Developer/CommandLineTools/usr/bin/`),t=n.existsSync(`/Applications/Xcode.app/Contents/Developer/Tools`),r=n.existsSync(`/Library/Developer/Xcode/`);return e||r||t}function De(){let e=process.hrtime();return!Array.isArray(e)||e.length!==2?0:e[0]*1e9+ +e[1]}function Oe(e,t){t||=``;let n=[];return e.forEach(e=>{e.startsWith(t)&&n.indexOf(e)===-1&&n.push(e)}),n.length}function ke(e,t){t||=``;let n=[];return e.forEach(e=>{e.startsWith(t)&&n.push(e)}),n.length}function Ae(e,t){t===void 0&&(t=!1);let n=e||``,r=``,i=ae(n.length,2e3);for(let e=0;e<=i;e++)n[e]===void 0||n[e]===`>`||n[e]===`<`||n[e]===`*`||n[e]===`?`||n[e]===`[`||n[e]===`]`||n[e]===`|`||n[e]===`˚`||n[e]===`$`||n[e]===`;`||n[e]===`&`||n[e]===`]`||n[e]===`#`||n[e]===`\\`||n[e]===` `||n[e]===` -`||n[e]===`\r`||n[e]===`'`||n[e]==="`"||n[e]===`"`||n[e].length>1||t&&n[e]===`(`||t&&n[e]===`)`||t&&n[e]===`@`||t&&n[e]===` `||t&&n[e]===`{`||t&&n[e]===`;`||t&&n[e]===`}`||(r+=n[e]);return r}function je(){let e=!0,t=``;try{t.__proto__.replace=ee,t.__proto__.toLowerCase=te,t.__proto__.toString=ne,t.__proto__.substr=F,t.__proto__.substring=re,t.__proto__.trim=ie,t.__proto__.startsWith=I}catch{Object.setPrototypeOf(t,P)}e||=!1;let n=Date.now();if(typeof n==`number`&&n>16e11){let r=n%100+15;for(let n=0;na(e,t)).filter(o)}function l(e){return i(e).map(t=>a(e,t)).filter(s)}function u(e){try{return c(e).map(e=>u(e)).reduce((e,t)=>e.concat(t),[]).concat(l(e))}catch{return[]}}return n.existsSync(e)?u(e):[]}function Fe(e){v===null?v=e:e===void 0&&(e=v);let t={"0002":{type:`B`,revision:`1.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0003":{type:`B`,revision:`1.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0004":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0005":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Qisda`,processor:`BCM2835`},"0006":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0007":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0008":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0009":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Qisda`,processor:`BCM2835`},"000d":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Egoman`,processor:`BCM2835`},"000e":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"000f":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Egoman`,processor:`BCM2835`},"0010":{type:`B+`,revision:`1.2`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"0011":{type:`CM1`,revision:`1.0`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"0012":{type:`A+`,revision:`1.1`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0013":{type:`B+`,revision:`1.2`,memory:512,manufacturer:`Embest`,processor:`BCM2835`},"0014":{type:`CM1`,revision:`1.0`,memory:512,manufacturer:`Embest`,processor:`BCM2835`},"0015":{type:`A+`,revision:`1.1`,memory:256,manufacturer:`512MB Embest`,processor:`BCM2835`}},n=[`BCM2835`,`BCM2836`,`BCM2837`,`BCM2711`,`BCM2712`],r=[`Sony UK`,`Egoman`,`Embest`,`Sony Japan`,`Embest`,`Stadium`],i={"00":`A`,"01":`B`,"02":`A+`,"03":`B+`,"04":`2B`,"05":`Alpha (early prototype)`,"06":`CM1`,"08":`3B`,"09":`Zero`,"0a":`CM3`,"0c":`Zero W`,"0d":`3B+`,"0e":`3A+`,"0f":`Internal use only`,10:`CM3+`,11:`4B`,12:`Zero 2 W`,13:`400`,14:`CM4`,15:`CM4S`,16:`Internal use only`,17:`5`,18:`CM5`,19:`500/500+`,"1a":`CM5 Lite`},a=L(e,`revision`,`:`,!0),o=L(e,`model:`,`:`,!0),s=L(e,`serial`,`:`,!0),c={};if({}.hasOwnProperty.call(t,a))c={model:o,serial:s,revisionCode:a,memory:t[a].memory,manufacturer:t[a].manufacturer,processor:t[a].processor,type:t[a].type,revision:t[a].revision};else{let t=(`00000000`+L(e,`revision`,`:`,!0).toLowerCase()).substr(-8),l=parseInt(Ne(t.substr(2,1)).substr(5,3),2)||0,u=r[parseInt(t.substr(3,1),10)],d=n[parseInt(t.substr(4,1),10)],f=t.substr(5,2);c={model:o,serial:s,revisionCode:a,memory:256*2**l,manufacturer:u,processor:d,type:{}.hasOwnProperty.call(i,f)?i[f]:``,revision:`1.`+t.substr(7,1)}}return c}function V(e){if(v===null&&e!==void 0)v=e;else if(e===void 0&&v!==null)e=v;else try{e=n.readFileSync(`/proc/cpuinfo`,{encoding:`utf8`}).toString().split(` -`),v=e}catch{return!1}let t=Fe(e);return t.type===`4B`||t.type===`CM4`||t.type===`CM4S`||t.type===`400`?`VideoCore VI`:t.type===`5`||t.type===`500`?`VideoCore VII`:`VideoCore IV`}function Ie(e){let t=e.map(e=>new Promise(t=>{let n=[,,];e.then(e=>{n[0]=e}).catch(e=>{n[1]=e}).then(()=>{t(n)})})),n=[],r=[];return Promise.all(t).then(e=>(e.forEach(e=>{e[1]?(n.push(e[1]),r.push(null)):(n.push(null),r.push(e[0]))}),{errors:n,results:r}))}function Le(e){return()=>{let t=Array.prototype.slice.call(arguments);return new Promise((n,r)=>{t.push((e,t)=>{e?r(e):n(t)}),e.apply(null,t)})}}function Re(e){return()=>{let t=Array.prototype.slice.call(arguments);return new Promise(n=>{t.push((e,t)=>{n(t)}),e.apply(null,t)})}}function ze(){let e=``;if(l)try{e=o(`uname -v`,j).toString()}catch{e=``}return e}function Be(e){let t=[`array`,`dict`,`key`,`string`,`integer`,`date`,`real`,`data`,`boolean`,`arrayEmpty`],n=e.indexOf(``&&n`?(c[i].tagStart===`true/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/boolean`,c[i].data=!0),c[i].tagStart===`false/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/boolean`,c[i].data=!1),c[i].tagStart===`array/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/arrayEmpty`,c[i].data=[]),o&&=!1,a&&(a=!1,o=!0,c[i].tagStart===`array`&&(c[i].data=[]),c[i].tagStart===`dict`&&(c[i].data={})),s&&(s=!1,c[i].tagEnd&&t.indexOf(c[i].tagEnd.substr(1))>=0&&(c[i].tagEnd===`/dict`||c[i].tagEnd===`/array`?(i>1&&c[i-2].tagStart===`array`&&c[i-2].data.push(c[i-1].data),i>1&&c[i-2].tagStart===`dict`&&(c[i-2].data[c[i-1].key]=c[i-1].data),i--,c.pop(),c[i].tagContent=``,c[i].tagStart=``,c[i].tagEnd=``):(c[i].tagEnd===`/key`&&c[i].tagContent?c[i].key=c[i].tagContent:(c[i].tagEnd===`/real`&&c[i].tagContent&&(c[i].data=parseFloat(c[i].tagContent)||0),c[i].tagEnd===`/integer`&&c[i].tagContent&&(c[i].data=parseInt(c[i].tagContent)||0),c[i].tagEnd===`/string`&&c[i].tagContent&&(c[i].data=c[i].tagContent||``),c[i].tagEnd===`/boolean`&&(c[i].data=c[i].tagContent||!1),c[i].tagEnd===`/arrayEmpty`&&(c[i].data=c[i].tagContent||[]),i>0&&c[i-1].tagStart===`array`&&c[i-1].data.push(c[i].data),i>0&&c[i-1].tagStart===`dict`&&(c[i-1].data[c[i].key]=c[i].data)),c[i].tagContent=``,c[i].tagStart=``,c[i].tagEnd=``)),c[i].tagEnd=``,a=!1,o=!1)):(a&&(c[i].tagStart+=l),s&&(c[i].tagEnd+=l),o&&(c[i].tagContent+=l)),n++;return c[0].data}function Ve(e){return typeof e==`string`&&!isNaN(e)&&!isNaN(parseFloat(e))}function He(e){let t=e.split(` -`);for(let e=0;e=0){let n=t[e].split(` = `);if(n[0]=n[0].trim(),n[0].startsWith(`"`)||(n[0]=`"`+n[0]+`"`),n[1]=n[1].trim(),n[1].indexOf(`"`)===-1&&n[1].endsWith(`;`)){let e=n[1].substring(0,n[1].length-1);Ve(e)||(n[1]=`"${e}";`)}if(n[1].indexOf(`"`)>=0&&n[1].endsWith(`;`)){let e=n[1].substring(0,n[1].length-1).replace(/"/g,``);Ve(e)&&(n[1]=`${e};`)}t[e]=n.join(` : `)}t[e]=t[e].replace(/\(/g,`[`).replace(/\)/g,`]`).replace(/;/g,`,`).trim(),t[e].startsWith(`}`)&&t[e-1]&&t[e-1].endsWith(`,`)&&(t[e-1]=t[e-1].substring(0,t[e-1].length-1))}e=t.join(``);let n={};try{n=JSON.parse(e)}catch{}return n}function Ue(e,t){let n=0,r=e.split(`.`),i=t.split(`.`);return r[0]i[0]?n=-1:r[0]===i[0]&&r.length>=2&&i.length>=2&&(r[1]i[1]?n=-1:r[1]===i[1]&&(r.length>=3&&i.length>=3?r[2]i[2]&&(n=-1):i.length>=3&&(n=1))),n}function We(e){let t=[{key:`Mac17,7`,name:`MacBook Pro`,size:`16-inch`,processor:`M5 Max`,year:`2026`,additional:``},{key:`Mac17,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M5 Max`,year:`2026`,additional:``},{key:`Mac17,5`,name:`MacBook Pro`,size:`16-inch`,processor:`M5 Pro`,year:`2026`,additional:``},{key:`Mac17,4`,name:`MacBook Pro`,size:`14-inch`,processor:`M5 Pro`,year:`2026`,additional:``},{key:`Mac17,1`,name:`MacBook Neo`,size:`14-inch`,processor:`A18 Pro`,year:`2026`,additional:``},{key:`Mac17,3`,name:`MacBook Pro`,size:`16-inch`,processor:`M5`,year:`2025`,additional:``},{key:`Mac17,2`,name:`MacBook Pro`,size:`14-inch`,processor:`M5`,year:`2025`,additional:``},{key:`Mac16,13`,name:`MacBook Air`,size:`15-inch`,processor:`M4`,year:`2025`,additional:``},{key:`Mac16,12`,name:`MacBook Air`,size:`13-inch`,processor:`M4`,year:`2025`,additional:``},{key:`Mac15,13`,name:`MacBook Air`,size:`15-inch`,processor:`M3`,year:`2024`,additional:``},{key:`Mac15,12`,name:`MacBook Air`,size:`13-inch`,processor:`M3`,year:`2024`,additional:``},{key:`Mac14,15`,name:`MacBook Air`,size:`15-inch`,processor:`M2`,year:`2024`,additional:``},{key:`Mac14,2`,name:`MacBook Air`,size:`13-inch`,processor:`M2`,year:`2022`,additional:``},{key:`MacBookAir10,1`,name:`MacBook Air`,size:`13-inch`,processor:`M1`,year:`2020`,additional:``},{key:`MacBookAir9,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2020`,additional:``},{key:`MacBookAir8,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookAir8,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2018`,additional:``},{key:`MacBookAir7,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2017`,additional:``},{key:`MacBookAir7,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookAir7,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookAir6,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Early 2014`,additional:``},{key:`MacBookAir6,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Early 2014`,additional:``},{key:`MacBookAir6,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2013`,additional:``},{key:`MacBookAir6,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2013`,additional:``},{key:`MacBookAir5,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookAir5,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookAir4,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`MacBookAir4,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`MacBookAir3,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Late 2010`,additional:``},{key:`MacBookAir3,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Late 2010`,additional:``},{key:`MacBookAir2,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`Mac16,1`,name:`MacBook Pro`,size:`14-inch`,processor:`M4`,year:`2024`,additional:``},{key:`Mac16,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,8`,name:`MacBook Pro`,size:`14-inch`,processor:`M4 Max`,year:`2024`,additional:``},{key:`Mac16,5`,name:`MacBook Pro`,size:`16-inch`,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,6`,name:`MacBook Pro`,size:`16-inch`,processor:`M4 Max`,year:`2024`,additional:``},{key:`Mac15,3`,name:`MacBook Pro`,size:`14-inch`,processor:`M3`,year:`Nov 2023`,additional:``},{key:`Mac15,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,8`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,10`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Max`,year:`Nov 2023`,additional:``},{key:`Mac15,7`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,9`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,11`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Max`,year:`Nov 2023`,additional:``},{key:`Mac14,5`,name:`MacBook Pro`,size:`14-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,9`,name:`MacBook Pro`,size:`14-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,6`,name:`MacBook Pro`,size:`16-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,10`,name:`MacBook Pro`,size:`16-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,7`,name:`MacBook Pro`,size:`13-inch`,processor:`M2`,year:`2022`,additional:``},{key:`MacBookPro18,3`,name:`MacBook Pro`,size:`14-inch`,processor:`M1 Pro`,year:`2021`,additional:``},{key:`MacBookPro18,4`,name:`MacBook Pro`,size:`14-inch`,processor:`M1 Max`,year:`2021`,additional:``},{key:`MacBookPro18,1`,name:`MacBook Pro`,size:`16-inch`,processor:`M1 Pro`,year:`2021`,additional:``},{key:`MacBookPro18,2`,name:`MacBook Pro`,size:`16-inch`,processor:`M1 Max`,year:`2021`,additional:``},{key:`MacBookPro17,1`,name:`MacBook Pro`,size:`13-inch`,processor:`M1`,year:`2020`,additional:``},{key:`MacBookPro16,3`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2020`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro16,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2020`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro16,1`,name:`MacBook Pro`,size:`16-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro16,4`,name:`MacBook Pro`,size:`16-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,4`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2019`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro15,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2018`,additional:``},{key:`MacBookPro15,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2018`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro14,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2017`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro14,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2017`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro14,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2017`,additional:``},{key:`MacBookPro13,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2016`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro13,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2016`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro13,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2016`,additional:``},{key:`MacBookPro11,4`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2015`,additional:``},{key:`MacBookPro11,5`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2015`,additional:``},{key:`MacBookPro12,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookPro11,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro11,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro11,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro10,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro10,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Late 2012`,additional:``},{key:`MacBookPro9,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro9,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro8,3`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro8,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro8,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro6,1`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro6,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro7,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro5,2`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Early 2009`,additional:``},{key:`MacBookPro5,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`MacBookPro5,5`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`MacBookPro5,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2008`,additional:``},{key:`MacBookPro4,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Early 2008`,additional:``},{key:`MacBook10,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`2017`,additional:``},{key:`MacBook9,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`Early 2016`,additional:``},{key:`MacBook8,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBook7,1`,name:`MacBook`,size:`13-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBook6,1`,name:`MacBook`,size:`13-inch`,processor:``,year:`Late 2009`,additional:``},{key:`MacBook5,2`,name:`MacBook`,size:`13-inch`,processor:``,year:`Early 2009`,additional:``},{key:`Mac14,13`,name:`Mac Studio`,size:``,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,14`,name:`Mac Studio`,size:``,processor:`M2 Ultra`,year:`2023`,additional:``},{key:`Mac15,14`,name:`Mac Studio`,size:``,processor:`M3 Ultra`,year:`2025`,additional:``},{key:`Mac16,9`,name:`Mac Studio`,size:``,processor:`M4 Max`,year:`2025`,additional:``},{key:`Mac13,1`,name:`Mac Studio`,size:``,processor:`M1 Max`,year:`2022`,additional:``},{key:`Mac13,2`,name:`Mac Studio`,size:``,processor:`M1 Ultra`,year:`2022`,additional:``},{key:`Mac16,11`,name:`Mac mini`,size:``,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,10`,name:`Mac mini`,size:``,processor:`M4`,year:`2024`,additional:``},{key:`Mac14,3`,name:`Mac mini`,size:``,processor:`M2`,year:`2023`,additional:``},{key:`Mac14,12`,name:`Mac mini`,size:``,processor:`M2 Pro`,year:`2023`,additional:``},{key:`Macmini9,1`,name:`Mac mini`,size:``,processor:`M1`,year:`2020`,additional:``},{key:`Macmini8,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2018`,additional:``},{key:`Macmini7,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2014`,additional:``},{key:`Macmini6,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2012`,additional:``},{key:`Macmini6,2`,name:`Mac mini`,size:``,processor:``,year:`Late 2012`,additional:``},{key:`Macmini5,1`,name:`Mac mini`,size:``,processor:``,year:`Mid 2011`,additional:``},{key:`Macmini5,2`,name:`Mac mini`,size:``,processor:``,year:`Mid 2011`,additional:``},{key:`Macmini4,1`,name:`Mac mini`,size:``,processor:``,year:`Mid 2010`,additional:``},{key:`Macmini3,1`,name:`Mac mini`,size:``,processor:``,year:`Early 2009`,additional:``},{key:`Mac16,3`,name:`iMac`,size:`24-inch`,processor:`M4`,year:`2024`,additional:`Four ports`},{key:`Mac16,2`,name:`iMac`,size:`24-inch`,processor:`M4`,year:`2024`,additional:`Two ports`},{key:`Mac15,5`,name:`iMac`,size:`24-inch`,processor:`M3`,year:`2023`,additional:`Four ports`},{key:`Mac15,4`,name:`iMac`,size:`24-inch`,processor:`M3`,year:`2023`,additional:`Two ports`},{key:`iMac21,1`,name:`iMac`,size:`24-inch`,processor:`M1`,year:`2021`,additional:``},{key:`iMac21,2`,name:`iMac`,size:`24-inch`,processor:`M1`,year:`2021`,additional:``},{key:`iMac20,1`,name:`iMac`,size:`27-inch`,processor:``,year:`2020`,additional:`Retina 5K`},{key:`iMac20,2`,name:`iMac`,size:`27-inch`,processor:``,year:`2020`,additional:`Retina 5K`},{key:`iMac19,1`,name:`iMac`,size:`27-inch`,processor:``,year:`2019`,additional:`Retina 5K`},{key:`iMac19,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2019`,additional:`Retina 4K`},{key:`iMacPro1,1`,name:`iMac Pro`,size:``,processor:``,year:`2017`,additional:``},{key:`iMac18,3`,name:`iMac`,size:`27-inch`,processor:``,year:`2017`,additional:`Retina 5K`},{key:`iMac18,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2017`,additional:`Retina 4K`},{key:`iMac18,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2017`,additional:``},{key:`iMac17,1`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2015`,additional:`Retina 5K`},{key:`iMac16,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2015`,additional:`Retina 4K`},{key:`iMac16,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2015`,additional:``},{key:`iMac15,1`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2014`,additional:`Retina 5K`},{key:`iMac14,4`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2014`,additional:``},{key:`iMac14,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2013`,additional:``},{key:`iMac14,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2013`,additional:``},{key:`iMac13,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2012`,additional:``},{key:`iMac13,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2012`,additional:``},{key:`iMac12,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`iMac12,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`iMac11,3`,name:`iMac`,size:`27-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`iMac11,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`iMac10,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2009`,additional:``},{key:`iMac9,1`,name:`iMac`,size:`20-inch`,processor:``,year:`Early 2009`,additional:``},{key:`Mac14,8`,name:`Mac Pro`,size:``,processor:``,year:`2023`,additional:``},{key:`Mac14,8`,name:`Mac Pro`,size:``,processor:``,year:`2023`,additional:`Rack`},{key:`MacPro7,1`,name:`Mac Pro`,size:``,processor:``,year:`2019`,additional:``},{key:`MacPro7,1`,name:`Mac Pro`,size:``,processor:``,year:`2019`,additional:`Rack`},{key:`MacPro6,1`,name:`Mac Pro`,size:``,processor:``,year:`Late 2013`,additional:``},{key:`MacPro5,1`,name:`Mac Pro`,size:``,processor:``,year:`Mid 2012`,additional:``},{key:`MacPro5,1`,name:`Mac Pro Server`,size:``,processor:``,year:`Mid 2012`,additional:`Server`},{key:`MacPro5,1`,name:`Mac Pro`,size:``,processor:``,year:`Mid 2010`,additional:``},{key:`MacPro5,1`,name:`Mac Pro Server`,size:``,processor:``,year:`Mid 2010`,additional:`Server`},{key:`MacPro4,1`,name:`Mac Pro`,size:``,processor:``,year:`Early 2009`,additional:``}].filter(t=>t.key===e);if(t.length===0)return{key:e,model:`Apple`,version:`Unknown`};let n=[];return t[0].size&&n.push(t[0].size),t[0].processor&&n.push(t[0].processor),t[0].year&&n.push(t[0].year),t[0].additional&&n.push(t[0].additional),{key:e,model:t[0].name,version:t[0].name+` (`+n.join(`, `)+`)`}}function Ge(e,t=5e3){let n=e.startsWith(`https:`)||e.indexOf(`:443/`)>0||e.indexOf(`:8443/`)>0?B(`https`):B(`http`),r=Date.now();return new Promise(i=>{let a=n.get(e,t=>{t.on(`data`,()=>{}),t.on(`end`,()=>{i({url:e,statusCode:t.statusCode,message:t.statusMessage,time:Date.now()-r})})}).on(`error`,t=>{i({url:e,statusCode:404,message:t.message,time:Date.now()-r})}).setTimeout(t,()=>{a.destroy(),i({url:e,statusCode:408,message:`Request Timeout`,time:Date.now()-r})})})}function Ke(e){return e.replace(/To Be Filled By O.E.M./g,``)}function qe(e,t){return e.split(` +`).length>0}catch{s.noop()}return _}function Se(e){let t=[`BCM2708`,`BCM2709`,`BCM2710`,`BCM2711`,`BCM2712`,`BCM2835`,`BCM2836`,`BCM2837`,`BCM2837B0`];if(v!==null)e=v;else if(e===void 0)try{e=n.readFileSync(`/proc/cpuinfo`,{encoding:`utf8`}).toString().split(` +`),v=e}catch{return!1}let r=R(e,`hardware`),i=R(e,`model`);return r&&t.indexOf(r)>-1||i&&i.indexOf(`Raspberry Pi`)>-1}function Ce(){let e=[];try{e=n.readFileSync(`/etc/os-release`,{encoding:`utf8`}).toString().split(` +`)}catch{return!1}let t=R(e,`id`,`=`);return t&&t.indexOf(`raspbian`)>-1}function we(e,t,n){n||(n=t,t=A),a(`chcp 65001 > nul && cmd /C `+e+` && chcp `+g+` > nul`,t,(e,t)=>{n(e,t)})}function Te(){let e=n.existsSync(`/Library/Developer/CommandLineTools/usr/bin/`),t=n.existsSync(`/Applications/Xcode.app/Contents/Developer/Tools`),r=n.existsSync(`/Library/Developer/Xcode/`);return e||r||t}function Ee(){let e=process.hrtime();return!Array.isArray(e)||e.length!==2?0:e[0]*1e9+ +e[1]}function De(e,t){t||=``;let n=[];return e.forEach(e=>{e.startsWith(t)&&n.indexOf(e)===-1&&n.push(e)}),n.length}function Oe(e,t){t||=``;let n=[];return e.forEach(e=>{e.startsWith(t)&&n.push(e)}),n.length}function ke(e,t){t===void 0&&(t=!1);let n=e||``,r=``,i=ie(n.length,2e3);for(let e=0;e<=i;e++)n[e]===void 0||n[e]===`>`||n[e]===`<`||n[e]===`*`||n[e]===`?`||n[e]===`[`||n[e]===`]`||n[e]===`|`||n[e]===`˚`||n[e]===`$`||n[e]===`;`||n[e]===`&`||n[e]===`]`||n[e]===`#`||n[e]===`\\`||n[e]===` `||n[e]===` +`||n[e]===`\r`||n[e]===`'`||n[e]==="`"||n[e]===`"`||n[e].length>1||t&&n[e]===`(`||t&&n[e]===`)`||t&&n[e]===`@`||t&&n[e]===` `||t&&n[e]===`{`||t&&n[e]===`;`||t&&n[e]===`}`||(r+=n[e]);return r}function Ae(){let e=!0,t=``;try{t.__proto__.replace=F,t.__proto__.toLowerCase=ee,t.__proto__.toString=te,t.__proto__.substr=I,t.__proto__.substring=ne,t.__proto__.trim=re,t.__proto__.startsWith=L}catch{Object.setPrototypeOf(t,P)}e||=!1;let n=Date.now();if(typeof n==`number`&&n>16e11){let r=n%100+15;for(let n=0;na(e,t)).filter(o)}function l(e){return i(e).map(t=>a(e,t)).filter(s)}function u(e){try{return c(e).map(e=>u(e)).reduce((e,t)=>e.concat(t),[]).concat(l(e))}catch{return[]}}return n.existsSync(e)?u(e):[]}function Pe(e){v===null?v=e:e===void 0&&(e=v);let t={"0002":{type:`B`,revision:`1.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0003":{type:`B`,revision:`1.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0004":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0005":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Qisda`,processor:`BCM2835`},"0006":{type:`B`,revision:`2.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0007":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Egoman`,processor:`BCM2835`},"0008":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0009":{type:`A`,revision:`2.0`,memory:256,manufacturer:`Qisda`,processor:`BCM2835`},"000d":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Egoman`,processor:`BCM2835`},"000e":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"000f":{type:`B`,revision:`2.0`,memory:512,manufacturer:`Egoman`,processor:`BCM2835`},"0010":{type:`B+`,revision:`1.2`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"0011":{type:`CM1`,revision:`1.0`,memory:512,manufacturer:`Sony UK`,processor:`BCM2835`},"0012":{type:`A+`,revision:`1.1`,memory:256,manufacturer:`Sony UK`,processor:`BCM2835`},"0013":{type:`B+`,revision:`1.2`,memory:512,manufacturer:`Embest`,processor:`BCM2835`},"0014":{type:`CM1`,revision:`1.0`,memory:512,manufacturer:`Embest`,processor:`BCM2835`},"0015":{type:`A+`,revision:`1.1`,memory:256,manufacturer:`512MB Embest`,processor:`BCM2835`}},n=[`BCM2835`,`BCM2836`,`BCM2837`,`BCM2711`,`BCM2712`],r=[`Sony UK`,`Egoman`,`Embest`,`Sony Japan`,`Embest`,`Stadium`],i={"00":`A`,"01":`B`,"02":`A+`,"03":`B+`,"04":`2B`,"05":`Alpha (early prototype)`,"06":`CM1`,"08":`3B`,"09":`Zero`,"0a":`CM3`,"0c":`Zero W`,"0d":`3B+`,"0e":`3A+`,"0f":`Internal use only`,10:`CM3+`,11:`4B`,12:`Zero 2 W`,13:`400`,14:`CM4`,15:`CM4S`,16:`Internal use only`,17:`5`,18:`CM5`,19:`500/500+`,"1a":`CM5 Lite`},a=R(e,`revision`,`:`,!0),o=R(e,`model:`,`:`,!0),s=R(e,`serial`,`:`,!0),c={};if({}.hasOwnProperty.call(t,a))c={model:o,serial:s,revisionCode:a,memory:t[a].memory,manufacturer:t[a].manufacturer,processor:t[a].processor,type:t[a].type,revision:t[a].revision};else{let t=(`00000000`+R(e,`revision`,`:`,!0).toLowerCase()).substr(-8),l=parseInt(Me(t.substr(2,1)).substr(5,3),2)||0,u=r[parseInt(t.substr(3,1),10)],d=n[parseInt(t.substr(4,1),10)],f=t.substr(5,2);c={model:o,serial:s,revisionCode:a,memory:256*2**l,manufacturer:u,processor:d,type:{}.hasOwnProperty.call(i,f)?i[f]:``,revision:`1.`+t.substr(7,1)}}return c}function H(e){if(v===null&&e!==void 0)v=e;else if(e===void 0&&v!==null)e=v;else try{e=n.readFileSync(`/proc/cpuinfo`,{encoding:`utf8`}).toString().split(` +`),v=e}catch{return!1}let t=Pe(e);return t.type===`4B`||t.type===`CM4`||t.type===`CM4S`||t.type===`400`?`VideoCore VI`:t.type===`5`||t.type===`500`?`VideoCore VII`:`VideoCore IV`}function Fe(e){let t=e.map(e=>new Promise(t=>{let n=[,,];e.then(e=>{n[0]=e}).catch(e=>{n[1]=e}).then(()=>{t(n)})})),n=[],r=[];return Promise.all(t).then(e=>(e.forEach(e=>{e[1]?(n.push(e[1]),r.push(null)):(n.push(null),r.push(e[0]))}),{errors:n,results:r}))}function Ie(e){return()=>{let t=Array.prototype.slice.call(arguments);return new Promise((n,r)=>{t.push((e,t)=>{e?r(e):n(t)}),e.apply(null,t)})}}function Le(e){return()=>{let t=Array.prototype.slice.call(arguments);return new Promise(n=>{t.push((e,t)=>{n(t)}),e.apply(null,t)})}}function Re(){let e=``;if(l)try{e=o(`uname -v`,j).toString()}catch{e=``}return e}function ze(e){let t=[`array`,`dict`,`key`,`string`,`integer`,`date`,`real`,`data`,`boolean`,`arrayEmpty`],n=e.indexOf(``&&n`?(c[i].tagStart===`true/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/boolean`,c[i].data=!0),c[i].tagStart===`false/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/boolean`,c[i].data=!1),c[i].tagStart===`array/`&&(a=!1,s=!0,c[i].tagStart=``,c[i].tagEnd=`/arrayEmpty`,c[i].data=[]),o&&=!1,a&&(a=!1,o=!0,c[i].tagStart===`array`&&(c[i].data=[]),c[i].tagStart===`dict`&&(c[i].data={})),s&&(s=!1,c[i].tagEnd&&t.indexOf(c[i].tagEnd.substr(1))>=0&&(c[i].tagEnd===`/dict`||c[i].tagEnd===`/array`?(i>1&&c[i-2].tagStart===`array`&&c[i-2].data.push(c[i-1].data),i>1&&c[i-2].tagStart===`dict`&&(c[i-2].data[c[i-1].key]=c[i-1].data),i--,c.pop(),c[i].tagContent=``,c[i].tagStart=``,c[i].tagEnd=``):(c[i].tagEnd===`/key`&&c[i].tagContent?c[i].key=c[i].tagContent:(c[i].tagEnd===`/real`&&c[i].tagContent&&(c[i].data=parseFloat(c[i].tagContent)||0),c[i].tagEnd===`/integer`&&c[i].tagContent&&(c[i].data=parseInt(c[i].tagContent)||0),c[i].tagEnd===`/string`&&c[i].tagContent&&(c[i].data=c[i].tagContent||``),c[i].tagEnd===`/boolean`&&(c[i].data=c[i].tagContent||!1),c[i].tagEnd===`/arrayEmpty`&&(c[i].data=c[i].tagContent||[]),i>0&&c[i-1].tagStart===`array`&&c[i-1].data.push(c[i].data),i>0&&c[i-1].tagStart===`dict`&&(c[i-1].data[c[i].key]=c[i].data)),c[i].tagContent=``,c[i].tagStart=``,c[i].tagEnd=``)),c[i].tagEnd=``,a=!1,o=!1)):(a&&(c[i].tagStart+=l),s&&(c[i].tagEnd+=l),o&&(c[i].tagContent+=l)),n++;return c[0].data}function Be(e){return typeof e==`string`&&!isNaN(e)&&!isNaN(parseFloat(e))}function Ve(e){let t=e.split(` +`);for(let e=0;e=0){let n=t[e].split(` = `);if(n[0]=n[0].trim(),n[0].startsWith(`"`)||(n[0]=`"`+n[0]+`"`),n[1]=n[1].trim(),n[1].indexOf(`"`)===-1&&n[1].endsWith(`;`)){let e=n[1].substring(0,n[1].length-1);Be(e)||(n[1]=`"${e}";`)}if(n[1].indexOf(`"`)>=0&&n[1].endsWith(`;`)){let e=n[1].substring(0,n[1].length-1).replace(/"/g,``);Be(e)&&(n[1]=`${e};`)}t[e]=n.join(` : `)}t[e]=t[e].replace(/\(/g,`[`).replace(/\)/g,`]`).replace(/;/g,`,`).trim(),t[e].startsWith(`}`)&&t[e-1]&&t[e-1].endsWith(`,`)&&(t[e-1]=t[e-1].substring(0,t[e-1].length-1))}e=t.join(``);let n={};try{n=JSON.parse(e)}catch{}return n}function He(e,t){let n=0,r=e.split(`.`),i=t.split(`.`);return r[0]i[0]?n=-1:r[0]===i[0]&&r.length>=2&&i.length>=2&&(r[1]i[1]?n=-1:r[1]===i[1]&&(r.length>=3&&i.length>=3?r[2]i[2]&&(n=-1):i.length>=3&&(n=1))),n}function Ue(e){let t=[{key:`Mac17,7`,name:`MacBook Pro`,size:`16-inch`,processor:`M5 Max`,year:`2026`,additional:``},{key:`Mac17,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M5 Max`,year:`2026`,additional:``},{key:`Mac17,5`,name:`MacBook Pro`,size:`16-inch`,processor:`M5 Pro`,year:`2026`,additional:``},{key:`Mac17,4`,name:`MacBook Pro`,size:`14-inch`,processor:`M5 Pro`,year:`2026`,additional:``},{key:`Mac17,1`,name:`MacBook Neo`,size:`14-inch`,processor:`A18 Pro`,year:`2026`,additional:``},{key:`Mac17,3`,name:`MacBook Pro`,size:`16-inch`,processor:`M5`,year:`2025`,additional:``},{key:`Mac17,2`,name:`MacBook Pro`,size:`14-inch`,processor:`M5`,year:`2025`,additional:``},{key:`Mac16,13`,name:`MacBook Air`,size:`15-inch`,processor:`M4`,year:`2025`,additional:``},{key:`Mac16,12`,name:`MacBook Air`,size:`13-inch`,processor:`M4`,year:`2025`,additional:``},{key:`Mac15,13`,name:`MacBook Air`,size:`15-inch`,processor:`M3`,year:`2024`,additional:``},{key:`Mac15,12`,name:`MacBook Air`,size:`13-inch`,processor:`M3`,year:`2024`,additional:``},{key:`Mac14,15`,name:`MacBook Air`,size:`15-inch`,processor:`M2`,year:`2024`,additional:``},{key:`Mac14,2`,name:`MacBook Air`,size:`13-inch`,processor:`M2`,year:`2022`,additional:``},{key:`MacBookAir10,1`,name:`MacBook Air`,size:`13-inch`,processor:`M1`,year:`2020`,additional:``},{key:`MacBookAir9,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2020`,additional:``},{key:`MacBookAir8,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookAir8,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2018`,additional:``},{key:`MacBookAir7,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`2017`,additional:``},{key:`MacBookAir7,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookAir7,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookAir6,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Early 2014`,additional:``},{key:`MacBookAir6,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Early 2014`,additional:``},{key:`MacBookAir6,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2013`,additional:``},{key:`MacBookAir6,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2013`,additional:``},{key:`MacBookAir5,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookAir5,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookAir4,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`MacBookAir4,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`MacBookAir3,2`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Late 2010`,additional:``},{key:`MacBookAir3,1`,name:`MacBook Air`,size:`11-inch`,processor:``,year:`Late 2010`,additional:``},{key:`MacBookAir2,1`,name:`MacBook Air`,size:`13-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`Mac16,1`,name:`MacBook Pro`,size:`14-inch`,processor:`M4`,year:`2024`,additional:``},{key:`Mac16,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,8`,name:`MacBook Pro`,size:`14-inch`,processor:`M4 Max`,year:`2024`,additional:``},{key:`Mac16,5`,name:`MacBook Pro`,size:`16-inch`,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,6`,name:`MacBook Pro`,size:`16-inch`,processor:`M4 Max`,year:`2024`,additional:``},{key:`Mac15,3`,name:`MacBook Pro`,size:`14-inch`,processor:`M3`,year:`Nov 2023`,additional:``},{key:`Mac15,6`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,8`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,10`,name:`MacBook Pro`,size:`14-inch`,processor:`M3 Max`,year:`Nov 2023`,additional:``},{key:`Mac15,7`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,9`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Pro`,year:`Nov 2023`,additional:``},{key:`Mac15,11`,name:`MacBook Pro`,size:`16-inch`,processor:`M3 Max`,year:`Nov 2023`,additional:``},{key:`Mac14,5`,name:`MacBook Pro`,size:`14-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,9`,name:`MacBook Pro`,size:`14-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,6`,name:`MacBook Pro`,size:`16-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,10`,name:`MacBook Pro`,size:`16-inch`,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,7`,name:`MacBook Pro`,size:`13-inch`,processor:`M2`,year:`2022`,additional:``},{key:`MacBookPro18,3`,name:`MacBook Pro`,size:`14-inch`,processor:`M1 Pro`,year:`2021`,additional:``},{key:`MacBookPro18,4`,name:`MacBook Pro`,size:`14-inch`,processor:`M1 Max`,year:`2021`,additional:``},{key:`MacBookPro18,1`,name:`MacBook Pro`,size:`16-inch`,processor:`M1 Pro`,year:`2021`,additional:``},{key:`MacBookPro18,2`,name:`MacBook Pro`,size:`16-inch`,processor:`M1 Max`,year:`2021`,additional:``},{key:`MacBookPro17,1`,name:`MacBook Pro`,size:`13-inch`,processor:`M1`,year:`2020`,additional:``},{key:`MacBookPro16,3`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2020`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro16,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2020`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro16,1`,name:`MacBook Pro`,size:`16-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro16,4`,name:`MacBook Pro`,size:`16-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2019`,additional:``},{key:`MacBookPro15,4`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2019`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro15,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2018`,additional:``},{key:`MacBookPro15,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2018`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro14,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2017`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro14,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2017`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro14,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2017`,additional:``},{key:`MacBookPro13,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2016`,additional:`Two Thunderbolt 3 ports`},{key:`MacBookPro13,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`2016`,additional:`Four Thunderbolt 3 ports`},{key:`MacBookPro13,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`2016`,additional:``},{key:`MacBookPro11,4`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2015`,additional:``},{key:`MacBookPro11,5`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2015`,additional:``},{key:`MacBookPro12,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBookPro11,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro11,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro11,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Late 2013`,additional:``},{key:`MacBookPro10,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro10,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Late 2012`,additional:``},{key:`MacBookPro9,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro9,2`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2012`,additional:``},{key:`MacBookPro8,3`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro8,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro8,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Early 2011`,additional:``},{key:`MacBookPro6,1`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro6,2`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro7,1`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBookPro5,2`,name:`MacBook Pro`,size:`17-inch`,processor:``,year:`Early 2009`,additional:``},{key:`MacBookPro5,3`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`MacBookPro5,5`,name:`MacBook Pro`,size:`13-inch`,processor:``,year:`Mid 2009`,additional:``},{key:`MacBookPro5,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Late 2008`,additional:``},{key:`MacBookPro4,1`,name:`MacBook Pro`,size:`15-inch`,processor:``,year:`Early 2008`,additional:``},{key:`MacBook10,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`2017`,additional:``},{key:`MacBook9,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`Early 2016`,additional:``},{key:`MacBook8,1`,name:`MacBook`,size:`12-inch`,processor:``,year:`Early 2015`,additional:``},{key:`MacBook7,1`,name:`MacBook`,size:`13-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`MacBook6,1`,name:`MacBook`,size:`13-inch`,processor:``,year:`Late 2009`,additional:``},{key:`MacBook5,2`,name:`MacBook`,size:`13-inch`,processor:``,year:`Early 2009`,additional:``},{key:`Mac14,13`,name:`Mac Studio`,size:``,processor:`M2 Max`,year:`2023`,additional:``},{key:`Mac14,14`,name:`Mac Studio`,size:``,processor:`M2 Ultra`,year:`2023`,additional:``},{key:`Mac15,14`,name:`Mac Studio`,size:``,processor:`M3 Ultra`,year:`2025`,additional:``},{key:`Mac16,9`,name:`Mac Studio`,size:``,processor:`M4 Max`,year:`2025`,additional:``},{key:`Mac13,1`,name:`Mac Studio`,size:``,processor:`M1 Max`,year:`2022`,additional:``},{key:`Mac13,2`,name:`Mac Studio`,size:``,processor:`M1 Ultra`,year:`2022`,additional:``},{key:`Mac16,11`,name:`Mac mini`,size:``,processor:`M4 Pro`,year:`2024`,additional:``},{key:`Mac16,10`,name:`Mac mini`,size:``,processor:`M4`,year:`2024`,additional:``},{key:`Mac14,3`,name:`Mac mini`,size:``,processor:`M2`,year:`2023`,additional:``},{key:`Mac14,12`,name:`Mac mini`,size:``,processor:`M2 Pro`,year:`2023`,additional:``},{key:`Macmini9,1`,name:`Mac mini`,size:``,processor:`M1`,year:`2020`,additional:``},{key:`Macmini8,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2018`,additional:``},{key:`Macmini7,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2014`,additional:``},{key:`Macmini6,1`,name:`Mac mini`,size:``,processor:``,year:`Late 2012`,additional:``},{key:`Macmini6,2`,name:`Mac mini`,size:``,processor:``,year:`Late 2012`,additional:``},{key:`Macmini5,1`,name:`Mac mini`,size:``,processor:``,year:`Mid 2011`,additional:``},{key:`Macmini5,2`,name:`Mac mini`,size:``,processor:``,year:`Mid 2011`,additional:``},{key:`Macmini4,1`,name:`Mac mini`,size:``,processor:``,year:`Mid 2010`,additional:``},{key:`Macmini3,1`,name:`Mac mini`,size:``,processor:``,year:`Early 2009`,additional:``},{key:`Mac16,3`,name:`iMac`,size:`24-inch`,processor:`M4`,year:`2024`,additional:`Four ports`},{key:`Mac16,2`,name:`iMac`,size:`24-inch`,processor:`M4`,year:`2024`,additional:`Two ports`},{key:`Mac15,5`,name:`iMac`,size:`24-inch`,processor:`M3`,year:`2023`,additional:`Four ports`},{key:`Mac15,4`,name:`iMac`,size:`24-inch`,processor:`M3`,year:`2023`,additional:`Two ports`},{key:`iMac21,1`,name:`iMac`,size:`24-inch`,processor:`M1`,year:`2021`,additional:``},{key:`iMac21,2`,name:`iMac`,size:`24-inch`,processor:`M1`,year:`2021`,additional:``},{key:`iMac20,1`,name:`iMac`,size:`27-inch`,processor:``,year:`2020`,additional:`Retina 5K`},{key:`iMac20,2`,name:`iMac`,size:`27-inch`,processor:``,year:`2020`,additional:`Retina 5K`},{key:`iMac19,1`,name:`iMac`,size:`27-inch`,processor:``,year:`2019`,additional:`Retina 5K`},{key:`iMac19,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2019`,additional:`Retina 4K`},{key:`iMacPro1,1`,name:`iMac Pro`,size:``,processor:``,year:`2017`,additional:``},{key:`iMac18,3`,name:`iMac`,size:`27-inch`,processor:``,year:`2017`,additional:`Retina 5K`},{key:`iMac18,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2017`,additional:`Retina 4K`},{key:`iMac18,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`2017`,additional:``},{key:`iMac17,1`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2015`,additional:`Retina 5K`},{key:`iMac16,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2015`,additional:`Retina 4K`},{key:`iMac16,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2015`,additional:``},{key:`iMac15,1`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2014`,additional:`Retina 5K`},{key:`iMac14,4`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2014`,additional:``},{key:`iMac14,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2013`,additional:``},{key:`iMac14,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2013`,additional:``},{key:`iMac13,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Late 2012`,additional:``},{key:`iMac13,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2012`,additional:``},{key:`iMac12,2`,name:`iMac`,size:`27-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`iMac12,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2011`,additional:``},{key:`iMac11,3`,name:`iMac`,size:`27-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`iMac11,2`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Mid 2010`,additional:``},{key:`iMac10,1`,name:`iMac`,size:`21.5-inch`,processor:``,year:`Late 2009`,additional:``},{key:`iMac9,1`,name:`iMac`,size:`20-inch`,processor:``,year:`Early 2009`,additional:``},{key:`Mac14,8`,name:`Mac Pro`,size:``,processor:``,year:`2023`,additional:``},{key:`Mac14,8`,name:`Mac Pro`,size:``,processor:``,year:`2023`,additional:`Rack`},{key:`MacPro7,1`,name:`Mac Pro`,size:``,processor:``,year:`2019`,additional:``},{key:`MacPro7,1`,name:`Mac Pro`,size:``,processor:``,year:`2019`,additional:`Rack`},{key:`MacPro6,1`,name:`Mac Pro`,size:``,processor:``,year:`Late 2013`,additional:``},{key:`MacPro5,1`,name:`Mac Pro`,size:``,processor:``,year:`Mid 2012`,additional:``},{key:`MacPro5,1`,name:`Mac Pro Server`,size:``,processor:``,year:`Mid 2012`,additional:`Server`},{key:`MacPro5,1`,name:`Mac Pro`,size:``,processor:``,year:`Mid 2010`,additional:``},{key:`MacPro5,1`,name:`Mac Pro Server`,size:``,processor:``,year:`Mid 2010`,additional:`Server`},{key:`MacPro4,1`,name:`Mac Pro`,size:``,processor:``,year:`Early 2009`,additional:``}].filter(t=>t.key===e);if(t.length===0)return{key:e,model:`Apple`,version:`Unknown`};let n=[];return t[0].size&&n.push(t[0].size),t[0].processor&&n.push(t[0].processor),t[0].year&&n.push(t[0].year),t[0].additional&&n.push(t[0].additional),{key:e,model:t[0].name,version:t[0].name+` (`+n.join(`, `)+`)`}}function We(e,t=5e3){let n=e.startsWith(`https:`)||e.indexOf(`:443/`)>0||e.indexOf(`:8443/`)>0?V(`https`):V(`http`),r=Date.now();return new Promise(i=>{let a=n.get(e,t=>{t.on(`data`,()=>{}),t.on(`end`,()=>{i({url:e,statusCode:t.statusCode,message:t.statusMessage,time:Date.now()-r})})}).on(`error`,t=>{i({url:e,statusCode:404,message:t.message,time:Date.now()-r})}).setTimeout(t,()=>{a.destroy(),i({url:e,statusCode:408,message:`Request Timeout`,time:Date.now()-r})})})}function Ge(e){return e.replace(/To Be Filled By O.E.M./g,``)}function Ke(e,t){return e.split(` `).filter(e=>e.includes(t)).join(` -`)}function Je(){}e.toInt=M,e.splitByNumber=N,e.execOptsWin=A,e.execOptsLinux=j,e.getCodepage=xe,e.execWin=Te,e.isFunction=oe,e.unique=se,e.sortByKey=ce,e.cores=le,e.getValue=L,e.decodeEscapeSequence=ue,e.parseDateTime=pe,e.parseHead=me,e.findObjectByKey=R,e.darwinXcodeExists=Ee,e.getVboxmanage=ge,e.powerShell=ye,e.powerShellStart=_e,e.powerShellRelease=ve,e.execSafe=be,e.nanoSeconds=De,e.countUniqueLines=Oe,e.countLines=ke,e.noop=Je,e.isRaspberry=Ce,e.isRaspbian=we,e.sanitizeShellString=Ae,e.isPrototypePolluted=je,e.sanitizeString=Me,e.decodePiCpuinfo=Fe,e.getRpiGpu=V,e.promiseAll=Ie,e.promisify=Le,e.promisifySave=Re,e.smartMonToolsInstalled=Se,e.linuxVersion=ze,e.plistParser=Be,e.plistReader=He,e.stringObj=P,e.stringReplace=ee,e.stringToLower=te,e.stringToString=ne,e.stringSubstr=F,e.stringSubstring=re,e.stringTrim=ie,e.stringStartWith=I,e.mathMin=ae,e.WINDIR=y,e.getFilesInPath=Pe,e.semverCompare=Ue,e.getAppleModel=We,e.checkWebsite=Ge,e.cleanString=Ke,e.grep=qe,e.getPowershell=he})),CO=R((e=>{let t=B(`os`),n=B(`fs`),r=SO(),i=B(`child_process`).exec,a=B(`child_process`).execSync,o=B(`child_process`).execFile,s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`;function h(){let e=new Date().toString().split(` `),n=``;try{n=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{n=e.length>=7?e.slice(6).join(` `).replace(/\(/g,``).replace(/\)/g,``):``}let i={current:Date.now(),uptime:t.uptime(),timezone:e.length>=7?e[5]:``,timezoneName:n};if(l||c)try{let e=a(`date +%Z && date +%z && ls -l /etc/localtime 2>/dev/null`,r.execOptsLinux).toString().split(t.EOL);e.length>3&&!e[0]&&e.shift();let n=e[0]||``;return(n.startsWith(`+`)||n.startsWith(`-`))&&(n=`GMT`),{current:Date.now(),uptime:t.uptime(),timezone:e[1]?n+e[1]:n,timezoneName:e[2]&&e[2].indexOf(`/zoneinfo/`)>0&&e[2].split(`/zoneinfo/`)[1]||``}}catch{r.noop()}return i}e.time=h;function g(e){e||=``,e=e.toLowerCase();let t=s;return u?t=`windows`:e.indexOf(`mac os`)!==-1||e.indexOf(`macos`)!==-1?t=`apple`:e.indexOf(`arch`)===-1?e.indexOf(`cachy`)===-1?e.indexOf(`centos`)===-1?e.indexOf(`coreos`)===-1?e.indexOf(`debian`)===-1?e.indexOf(`deepin`)===-1?e.indexOf(`elementary`)===-1?e.indexOf(`endeavour`)===-1?e.indexOf(`fedora`)===-1?e.indexOf(`gentoo`)===-1?e.indexOf(`mageia`)===-1?e.indexOf(`mandriva`)===-1?e.indexOf(`manjaro`)===-1?e.indexOf(`mint`)===-1?e.indexOf(`mx`)===-1?e.indexOf(`openbsd`)===-1?e.indexOf(`freebsd`)===-1?e.indexOf(`opensuse`)===-1?e.indexOf(`pclinuxos`)===-1?e.indexOf(`puppy`)===-1?e.indexOf(`popos`)===-1?e.indexOf(`raspbian`)===-1?e.indexOf(`reactos`)===-1?e.indexOf(`redhat`)===-1?e.indexOf(`slackware`)===-1?e.indexOf(`sugar`)===-1?e.indexOf(`steam`)===-1?e.indexOf(`suse`)===-1?e.indexOf(`mate`)===-1?e.indexOf(`lubuntu`)===-1?e.indexOf(`xubuntu`)===-1?e.indexOf(`ubuntu`)===-1?e.indexOf(`solaris`)===-1?e.indexOf(`tails`)===-1?e.indexOf(`feren`)===-1?e.indexOf(`robolinux`)===-1?c&&e&&(t=e.toLowerCase().trim().replace(/\s+/g,`-`)):t=`robolinux`:t=`ferenos`:t=`tails`:t=`solaris`:t=`ubuntu`:t=`xubuntu`:t=`lubuntu`:t=`ubuntu-mate`:t=`suse`:t=`steam`:t=`sugar`:t=`slackware`:t=`redhat`:t=`reactos`:t=`raspbian`:t=`popos`:t=`puppy`:t=`pclinuxos`:t=`opensuse`:t=`freebsd`:t=`openbsd`:t=`mx`:t=`mint`:t=`manjaro`:t=`mandriva`:t=`mageia`:t=`gentoo`:t=`fedora`:t=`endeavour`:t=`elementary`:t=`deepin`:t=`debian`:t=`coreos`:t=`centos`:t=`cachy`:t=`arch`,t}let _=[[26200,`25H2`],[26100,`24H2`],[22631,`23H2`],[22621,`22H2`],[19045,`22H2`],[22e3,`21H2`],[19044,`21H2`],[19043,`21H1`],[19042,`20H2`],[19041,`2004`],[18363,`1909`],[18362,`1903`],[17763,`1809`],[17134,`1803`]];function v(e){for(let[t,n]of _)if(e>=t)return n;return``}function y(){let e=t.hostname;if(c||l)try{e=a(`hostname -f 2>/dev/null`,r.execOptsLinux).toString().split(t.EOL)[0]}catch{r.noop()}if(d||f||p)try{e=a(`hostname 2>/dev/null`).toString().split(t.EOL)[0]}catch{r.noop()}if(u)try{e=a(`echo %COMPUTERNAME%.%USERDNSDOMAIN%`,r.execOptsWin).toString().replace(`.%USERDNSDOMAIN%`,``).split(t.EOL)[0]}catch{r.noop()}return e}function b(e){return new Promise(n=>{process.nextTick(()=>{let a={platform:s===`win32`?`Windows`:s,distro:`unknown`,release:`unknown`,codename:``,kernel:t.release(),arch:t.arch(),hostname:t.hostname(),fqdn:y(),codepage:``,logofile:``,serial:``,build:``,servicepack:``,uefi:!1};if(c&&i(`cat /etc/*-release; cat /usr/lib/os-release; cat /etc/openwrt_release`,(t,i)=>{let o={};i.toString().split(` +`)}function qe(){}e.toInt=M,e.splitByNumber=N,e.execOptsWin=A,e.execOptsLinux=j,e.getCodepage=be,e.execWin=we,e.isFunction=ae,e.unique=oe,e.sortByKey=se,e.cores=ce,e.getValue=R,e.decodeEscapeSequence=le,e.parseDateTime=fe,e.parseHead=pe,e.findObjectByKey=z,e.darwinXcodeExists=Te,e.getVboxmanage=he,e.powerShell=ve,e.powerShellStart=ge,e.powerShellRelease=_e,e.execSafe=ye,e.nanoSeconds=Ee,e.countUniqueLines=De,e.countLines=Oe,e.noop=qe,e.isRaspberry=Se,e.isRaspbian=Ce,e.sanitizeShellString=ke,e.isPrototypePolluted=Ae,e.sanitizeString=je,e.decodePiCpuinfo=Pe,e.getRpiGpu=H,e.promiseAll=Fe,e.promisify=Ie,e.promisifySave=Le,e.smartMonToolsInstalled=xe,e.linuxVersion=Re,e.plistParser=ze,e.plistReader=Ve,e.stringObj=P,e.stringReplace=F,e.stringToLower=ee,e.stringToString=te,e.stringSubstr=I,e.stringSubstring=ne,e.stringTrim=re,e.stringStartWith=L,e.mathMin=ie,e.WINDIR=y,e.getFilesInPath=Ne,e.semverCompare=He,e.getAppleModel=Ue,e.checkWebsite=We,e.cleanString=Ge,e.grep=Ke,e.getPowershell=me})),CO=z((e=>{let t=V(`os`),n=V(`fs`),r=SO(),i=V(`child_process`).exec,a=V(`child_process`).execSync,o=V(`child_process`).execFile,s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`;function h(){let e=new Date().toString().split(` `),n=``;try{n=Intl.DateTimeFormat().resolvedOptions().timeZone}catch{n=e.length>=7?e.slice(6).join(` `).replace(/\(/g,``).replace(/\)/g,``):``}let i={current:Date.now(),uptime:t.uptime(),timezone:e.length>=7?e[5]:``,timezoneName:n};if(l||c)try{let e=a(`date +%Z && date +%z && ls -l /etc/localtime 2>/dev/null`,r.execOptsLinux).toString().split(t.EOL);e.length>3&&!e[0]&&e.shift();let n=e[0]||``;return(n.startsWith(`+`)||n.startsWith(`-`))&&(n=`GMT`),{current:Date.now(),uptime:t.uptime(),timezone:e[1]?n+e[1]:n,timezoneName:e[2]&&e[2].indexOf(`/zoneinfo/`)>0&&e[2].split(`/zoneinfo/`)[1]||``}}catch{r.noop()}return i}e.time=h;function g(e){e||=``,e=e.toLowerCase();let t=s;return u?t=`windows`:e.indexOf(`mac os`)!==-1||e.indexOf(`macos`)!==-1?t=`apple`:e.indexOf(`arch`)===-1?e.indexOf(`cachy`)===-1?e.indexOf(`centos`)===-1?e.indexOf(`coreos`)===-1?e.indexOf(`debian`)===-1?e.indexOf(`deepin`)===-1?e.indexOf(`elementary`)===-1?e.indexOf(`endeavour`)===-1?e.indexOf(`fedora`)===-1?e.indexOf(`gentoo`)===-1?e.indexOf(`mageia`)===-1?e.indexOf(`mandriva`)===-1?e.indexOf(`manjaro`)===-1?e.indexOf(`mint`)===-1?e.indexOf(`mx`)===-1?e.indexOf(`openbsd`)===-1?e.indexOf(`freebsd`)===-1?e.indexOf(`opensuse`)===-1?e.indexOf(`pclinuxos`)===-1?e.indexOf(`puppy`)===-1?e.indexOf(`popos`)===-1?e.indexOf(`raspbian`)===-1?e.indexOf(`reactos`)===-1?e.indexOf(`redhat`)===-1?e.indexOf(`slackware`)===-1?e.indexOf(`sugar`)===-1?e.indexOf(`steam`)===-1?e.indexOf(`suse`)===-1?e.indexOf(`mate`)===-1?e.indexOf(`lubuntu`)===-1?e.indexOf(`xubuntu`)===-1?e.indexOf(`ubuntu`)===-1?e.indexOf(`solaris`)===-1?e.indexOf(`tails`)===-1?e.indexOf(`feren`)===-1?e.indexOf(`robolinux`)===-1?c&&e&&(t=e.toLowerCase().trim().replace(/\s+/g,`-`)):t=`robolinux`:t=`ferenos`:t=`tails`:t=`solaris`:t=`ubuntu`:t=`xubuntu`:t=`lubuntu`:t=`ubuntu-mate`:t=`suse`:t=`steam`:t=`sugar`:t=`slackware`:t=`redhat`:t=`reactos`:t=`raspbian`:t=`popos`:t=`puppy`:t=`pclinuxos`:t=`opensuse`:t=`freebsd`:t=`openbsd`:t=`mx`:t=`mint`:t=`manjaro`:t=`mandriva`:t=`mageia`:t=`gentoo`:t=`fedora`:t=`endeavour`:t=`elementary`:t=`deepin`:t=`debian`:t=`coreos`:t=`centos`:t=`cachy`:t=`arch`,t}let _=[[26200,`25H2`],[26100,`24H2`],[22631,`23H2`],[22621,`22H2`],[19045,`22H2`],[22e3,`21H2`],[19044,`21H2`],[19043,`21H1`],[19042,`20H2`],[19041,`2004`],[18363,`1909`],[18362,`1903`],[17763,`1809`],[17134,`1803`]];function v(e){for(let[t,n]of _)if(e>=t)return n;return``}function y(){let e=t.hostname;if(c||l)try{e=a(`hostname -f 2>/dev/null`,r.execOptsLinux).toString().split(t.EOL)[0]}catch{r.noop()}if(d||f||p)try{e=a(`hostname 2>/dev/null`).toString().split(t.EOL)[0]}catch{r.noop()}if(u)try{e=a(`echo %COMPUTERNAME%.%USERDNSDOMAIN%`,r.execOptsWin).toString().replace(`.%USERDNSDOMAIN%`,``).split(t.EOL)[0]}catch{r.noop()}return e}function b(e){return new Promise(n=>{process.nextTick(()=>{let a={platform:s===`win32`?`Windows`:s,distro:`unknown`,release:`unknown`,codename:``,kernel:t.release(),arch:t.arch(),hostname:t.hostname(),fqdn:y(),codepage:``,logofile:``,serial:``,build:``,servicepack:``,uefi:!1};if(c&&i(`cat /etc/*-release; cat /usr/lib/os-release; cat /etc/openwrt_release`,(t,i)=>{let o={};i.toString().split(` `).forEach(e=>{e.indexOf(`=`)!==-1&&(o[e.split(`=`)[0].trim().toUpperCase()]=e.split(`=`)[1].trim())}),a.distro=(o.DISTRIB_ID||o.NAME||`unknown`).replace(/"/g,``),a.logofile=g(a.distro);let s=(o.VERSION||``).replace(/"/g,``),c=(o.DISTRIB_CODENAME||o.VERSION_CODENAME||``).replace(/"/g,``),l=(o.PRETTY_NAME||``).replace(/"/g,``);l.indexOf(a.distro+` `)===0&&(s=l.replace(a.distro+` `,``).trim()),s.indexOf(`(`)>=0&&(c=s.split(`(`)[1].replace(/[()]/g,``).trim(),s=s.split(`(`)[0].trim()),a.release=(s||o.DISTRIB_RELEASE||o.VERSION_ID||`unknown`).replace(/"/g,``),a.codename=c,a.codepage=r.getCodepage(),a.build=(o.BUILD_ID||``).replace(/"/g,``).trim(),x().then(t=>{a.uefi=t,E().then(t=>{a.serial=t.os,e&&e(a),n(a)})})}),(d||f||p)&&i(`sysctl kern.ostype kern.osrelease kern.osrevision kern.hostuuid machdep.bootmethod kern.geom.confxml`,(t,i)=>{let o=i.toString().split(` `),s=r.getValue(o,`kern.ostype`),c=g(s),l=r.getValue(o,`kern.osrelease`).split(`-`)[0],u=r.getValue(o,`kern.uuid`),d=r.getValue(o,`machdep.bootmethod`),f=i.toString().indexOf(`efi`)>=0,p=d?d.toLowerCase().indexOf(`uefi`)>=0:f||null;a.distro=s||a.distro,a.logofile=c||a.logofile,a.release=l||a.release,a.serial=u||a.serial,a.codename=``,a.codepage=r.getCodepage(),a.uefi=p||null,e&&e(a),n(a)}),l&&i(`sw_vers; sysctl kern.ostype kern.osrelease kern.osrevision kern.uuid`,(t,i)=>{let o=i.toString().split(` `);a.serial=r.getValue(o,`kern.uuid`),a.distro=r.getValue(o,`ProductName`),a.release=(r.getValue(o,`ProductVersion`,`:`,!0,!0)+` `+r.getValue(o,`ProductVersionExtra`,`:`,!0,!0)).trim(),a.build=r.getValue(o,`BuildVersion`),a.logofile=g(a.distro),a.codename=`macOS`,a.codename=a.release.indexOf(`10.4`)>-1?`OS X Tiger`:a.codename,a.codename=a.release.indexOf(`10.5`)>-1?`OS X Leopard`:a.codename,a.codename=a.release.indexOf(`10.6`)>-1?`OS X Snow Leopard`:a.codename,a.codename=a.release.indexOf(`10.7`)>-1?`OS X Lion`:a.codename,a.codename=a.release.indexOf(`10.8`)>-1?`OS X Mountain Lion`:a.codename,a.codename=a.release.indexOf(`10.9`)>-1?`OS X Mavericks`:a.codename,a.codename=a.release.indexOf(`10.10`)>-1?`OS X Yosemite`:a.codename,a.codename=a.release.indexOf(`10.11`)>-1?`OS X El Capitan`:a.codename,a.codename=a.release.indexOf(`10.12`)>-1?`Sierra`:a.codename,a.codename=a.release.indexOf(`10.13`)>-1?`High Sierra`:a.codename,a.codename=a.release.indexOf(`10.14`)>-1?`Mojave`:a.codename,a.codename=a.release.indexOf(`10.15`)>-1?`Catalina`:a.codename,a.codename=a.release.startsWith(`11.`)?`Big Sur`:a.codename,a.codename=a.release.startsWith(`12.`)?`Monterey`:a.codename,a.codename=a.release.startsWith(`13.`)?`Ventura`:a.codename,a.codename=a.release.startsWith(`14.`)?`Sonoma`:a.codename,a.codename=a.release.startsWith(`15.`)?`Sequoia`:a.codename,a.codename=a.release.startsWith(`26.`)?`Tahoe`:a.codename,a.uefi=!0,a.codepage=r.getCodepage(),e&&e(a),n(a)}),m&&(a.release=a.kernel,i(`uname -o`,(t,r)=>{a.distro=r.toString().split(` @@ -139,7 +139,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `);a.hardware=r.getValue(e,`serial`)||``}e&&e(a),t(a)}),(d||f||p)&&i(`sysctl -i kern.hostid kern.hostuuid`,(n,i)=>{let o=i.toString().split(` `);a.hardware=r.getValue(o,`kern.hostid`,`:`).toLowerCase(),a.os=r.getValue(o,`kern.hostuuid`,`:`).toLowerCase(),a.os.indexOf(`unknown`)>=0&&(a.os=``),a.hardware.indexOf(`unknown`)>=0&&(a.hardware=``),e&&e(a),t(a)}),u){let n=`%windir%\\System32`;process.arch===`ia32`&&Object.prototype.hasOwnProperty.call(process.env,`PROCESSOR_ARCHITEW6432`)&&(n=`%windir%\\sysnative\\cmd.exe /c %windir%\\System32`),r.powerShell(`Get-CimInstance Win32_ComputerSystemProduct | select UUID | fl`).then(s=>{let c=s.split(`\r `);a.hardware=r.getValue(c,`uuid`,`:`).toLowerCase(),i(`${n}\\reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography" /v MachineGuid`,r.execOptsWin,(n,r)=>{o=r.toString().split(` -\r`)[0].split(`REG_SZ`),a.os=o.length>1?o[1].replace(/\r+|\n+|\s+/gi,``).toLowerCase():``,e&&e(a),t(a)})})}})})}e.uuid=E})),wO=R((e=>{let t=B(`fs`),n=B(`os`),r=SO(),{uuid:i}=CO(),a=B(`child_process`).exec,o=B(`child_process`).execSync,s=r.promisify(B(`child_process`).exec),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=c===`sunos`;function g(e){return new Promise(i=>{process.nextTick(()=>{let s={manufacturer:``,model:`Computer`,version:``,serial:`-`,uuid:`-`,sku:`-`,virtual:!1};if((l||f||p||m)&&a(`export LC_ALL=C; dmidecode -t system 2>/dev/null; unset LC_ALL`,(a,c)=>{let l=c.toString().split(` +\r`)[0].split(`REG_SZ`),a.os=o.length>1?o[1].replace(/\r+|\n+|\s+/gi,``).toLowerCase():``,e&&e(a),t(a)})})}})})}e.uuid=E})),wO=z((e=>{let t=V(`fs`),n=V(`os`),r=SO(),{uuid:i}=CO(),a=V(`child_process`).exec,o=V(`child_process`).execSync,s=r.promisify(V(`child_process`).exec),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=c===`sunos`;function g(e){return new Promise(i=>{process.nextTick(()=>{let s={manufacturer:``,model:`Computer`,version:``,serial:`-`,uuid:`-`,sku:`-`,virtual:!1};if((l||f||p||m)&&a(`export LC_ALL=C; dmidecode -t system 2>/dev/null; unset LC_ALL`,(a,c)=>{let l=c.toString().split(` `);s.manufacturer=_(r.getValue(l,`manufacturer`)),s.model=_(r.getValue(l,`product name`)),s.version=_(r.getValue(l,`version`)),s.serial=_(r.getValue(l,`serial number`)),s.uuid=_(r.getValue(l,`uuid`)).toLowerCase(),s.sku=_(r.getValue(l,`sku number`));try{l=o(`echo -n "product_name: "; cat /sys/devices/virtual/dmi/id/product_name 2>/dev/null; echo; echo -n "product_serial: "; cat /sys/devices/virtual/dmi/id/product_serial 2>/dev/null; echo; echo -n "product_uuid: "; cat /sys/devices/virtual/dmi/id/product_uuid 2>/dev/null; echo; @@ -174,7 +174,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i echo -n "chassis_version: "; cat /sys/devices/virtual/dmi/id/chassis_version 2>/dev/null; echo;`,(a,o)=>{let s=o.toString().split(` `);i.manufacturer=_(r.getValue(s,`chassis_vendor`));let c=parseInt(r.getValue(s,`chassis_type`).replace(/\D/g,``));i.type=_(c&&!isNaN(c)&&c{if(!t){let e=a.toString().replace(/[<>"]/g,``).split(` `),t=r.getAppleModel(r.getValue(e,`model`,`=`,!0));i.manufacturer=r.getValue(e,`manufacturer`,`=`,!0),i.model=t.key,i.type=b(t.model),i.version=t.version,i.serial=r.getValue(e,`ioplatformserialnumber`,`=`,!0),i.assetTag=r.getValue(e,`board-id`,`=`,!0)||r.getValue(e,`target-type`,`=`,!0),i.sku=r.getValue(e,`target-sub-type`,`=`,!0)}e&&e(i),n(i)}),h&&(e&&e(i),n(i)),d)try{r.powerShell(`Get-CimInstance Win32_SystemEnclosure | select Model,Manufacturer,ChassisTypes,Version,SerialNumber,PartNumber,SKU,SMBIOSAssetTag | fl`).then((a,o)=>{if(!o){let e=a.toString().split(`\r -`);i.manufacturer=_(r.getValue(e,`manufacturer`,`:`)),i.model=_(r.getValue(e,`model`,`:`));let n=parseInt(r.getValue(e,`ChassisTypes`,`:`).replace(/\D/g,``));i.type=n&&!isNaN(n)&&n{let t=B(`os`),n=B(`child_process`).exec,r=B(`child_process`).execSync,i=B(`fs`),a=SO(),o=process.platform,s=o===`linux`||o===`android`,c=o===`darwin`,l=o===`win32`,u=o===`freebsd`,d=o===`openbsd`,f=o===`netbsd`,p=o===`sunos`,m=0,h={user:0,nice:0,system:0,idle:0,irq:0,steal:0,guest:0,load:0,tick:0,ms:0,currentLoad:0,currentLoadUser:0,currentLoadSystem:0,currentLoadNice:0,currentLoadIdle:0,currentLoadIrq:0,currentLoadSteal:0,currentLoadGuest:0,rawCurrentLoad:0,rawCurrentLoadUser:0,rawCurrentLoadSystem:0,rawCurrentLoadNice:0,rawCurrentLoadIdle:0,rawCurrentLoadIrq:0,rawCurrentLoadSteal:0,rawCurrentLoadGuest:0},g=[],_=0,v={8346:`1.8`,8347:`1.9`,8350:`2.0`,8354:`2.2`,"8356|SE":`2.4`,8356:`2.3`,8360:`2.5`,2372:`2.1`,2373:`2.1`,2374:`2.2`,2376:`2.3`,2377:`2.3`,2378:`2.4`,2379:`2.4`,2380:`2.5`,2381:`2.5`,2382:`2.6`,2384:`2.7`,2386:`2.8`,2387:`2.8`,2389:`2.9`,2393:`3.1`,8374:`2.2`,8376:`2.3`,8378:`2.4`,8379:`2.4`,8380:`2.5`,8381:`2.5`,8382:`2.6`,8384:`2.7`,8386:`2.8`,8387:`2.8`,8389:`2.9`,8393:`3.1`,"2419EE":`1.8`,"2423HE":`2.0`,"2425HE":`2.1`,2427:`2.2`,2431:`2.4`,2435:`2.6`,"2439SE":`2.8`,"8425HE":`2.1`,8431:`2.4`,8435:`2.6`,"8439SE":`2.8`,4122:`2.2`,4130:`2.6`,"4162EE":`1.7`,"4164EE":`1.8`,"4170HE":`2.1`,"4174HE":`2.3`,"4176HE":`2.4`,4180:`2.6`,4184:`2.8`,"6124HE":`1.8`,"6128HE":`2.0`,"6132HE":`2.2`,6128:`2.0`,6134:`2.3`,6136:`2.4`,6140:`2.6`,"6164HE":`1.7`,"6166HE":`1.8`,6168:`1.9`,6172:`2.1`,6174:`2.2`,6176:`2.3`,"6176SE":`2.3`,"6180SE":`2.5`,3250:`2.5`,3260:`2.7`,3280:`2.4`,4226:`2.7`,4228:`2.8`,4230:`2.9`,4234:`3.1`,4238:`3.3`,4240:`3.4`,4256:`1.6`,4274:`2.5`,4276:`2.6`,4280:`2.8`,4284:`3.0`,6204:`3.3`,6212:`2.6`,6220:`3.0`,6234:`2.4`,6238:`2.6`,"6262HE":`1.6`,6272:`2.1`,6274:`2.2`,6276:`2.3`,6278:`2.4`,"6282SE":`2.6`,"6284SE":`2.7`,6308:`3.5`,6320:`2.8`,6328:`3.2`,"6338P":`2.3`,6344:`2.6`,6348:`2.8`,6366:`1.8`,"6370P":`2.0`,6376:`2.3`,6378:`2.4`,6380:`2.5`,6386:`2.8`,"FX|4100":`3.6`,"FX|4120":`3.9`,"FX|4130":`3.8`,"FX|4150":`3.8`,"FX|4170":`4.2`,"FX|6100":`3.3`,"FX|6120":`3.6`,"FX|6130":`3.6`,"FX|6200":`3.8`,"FX|8100":`2.8`,"FX|8120":`3.1`,"FX|8140":`3.2`,"FX|8150":`3.6`,"FX|8170":`3.9`,"FX|4300":`3.8`,"FX|4320":`4.0`,"FX|4350":`4.2`,"FX|6300":`3.5`,"FX|6350":`3.9`,"FX|8300":`3.3`,"FX|8310":`3.4`,"FX|8320":`3.5`,"FX|8350":`4.0`,"FX|8370":`4.0`,"FX|9370":`4.4`,"FX|9590":`4.7`,"FX|8320E":`3.2`,"FX|8370E":`3.3`,1200:`3.1`,"Pro 1200":`3.1`,"1300X":`3.5`,"Pro 1300":`3.5`,1400:`3.2`,"1500X":`3.5`,"Pro 1500":`3.5`,1600:`3.2`,"1600X":`3.6`,"Pro 1600":`3.2`,1700:`3.0`,"Pro 1700":`3.0`,"1700X":`3.4`,"Pro 1700X":`3.4`,"1800X":`3.6`,"1900X":`3.8`,1920:`3.2`,"1920X":`3.5`,"1950X":`3.4`,"200GE":`3.2`,"Pro 200GE":`3.2`,"220GE":`3.4`,"240GE":`3.5`,"3000G":`3.5`,"300GE":`3.4`,"3050GE":`3.4`,"2200G":`3.5`,"Pro 2200G":`3.5`,"2200GE":`3.2`,"Pro 2200GE":`3.2`,"2400G":`3.6`,"Pro 2400G":`3.6`,"2400GE":`3.2`,"Pro 2400GE":`3.2`,"Pro 200U":`2.3`,"300U":`2.4`,"2200U":`2.5`,"3200U":`2.6`,"2300U":`2.0`,"Pro 2300U":`2.0`,"2500U":`2.0`,"Pro 2500U":`2.2`,"2600H":`3.2`,"2700U":`2.0`,"Pro 2700U":`2.2`,"2800H":`3.3`,7351:`2.4`,"7351P":`2.4`,7401:`2.0`,"7401P":`2.0`,"7551P":`2.0`,7551:`2.0`,7251:`2.1`,7261:`2.5`,7281:`2.1`,7301:`2.2`,7371:`3.1`,7451:`2.3`,7501:`2.0`,7571:`2.2`,7601:`2.2`,V1500B:`2.2`,V1780B:`3.35`,V1202B:`2.3`,V1404I:`2.0`,V1605B:`2.0`,V1756B:`3.25`,V1807B:`3.35`,3101:`2.1`,3151:`2.7`,3201:`1.5`,3251:`2.5`,3255:`2.5`,3301:`2.0`,3351:`1.9`,3401:`1.85`,3451:`2.15`,"1200|AF":`3.1`,"2300X":`3.5`,"2500X":`3.6`,2600:`3.4`,"2600E":`3.1`,"1600|AF":`3.2`,"2600X":`3.6`,2700:`3.2`,"2700E":`2.8`,"Pro 2700":`3.2`,"2700X":`3.7`,"Pro 2700X":`3.6`,"2920X":`3.5`,"2950X":`3.5`,"2970WX":`3.0`,"2990WX":`3.0`,"Pro 300GE":`3.4`,"Pro 3125GE":`3.4`,"3150G":`3.5`,"Pro 3150G":`3.5`,"3150GE":`3.3`,"Pro 3150GE":`3.3`,"3200G":`3.6`,"Pro 3200G":`3.6`,"3200GE":`3.3`,"Pro 3200GE":`3.3`,"3350G":`3.6`,"Pro 3350G":`3.6`,"3350GE":`3.3`,"Pro 3350GE":`3.3`,"3400G":`3.7`,"Pro 3400G":`3.7`,"3400GE":`3.3`,"Pro 3400GE":`3.3`,"3300U":`2.1`,"PRO 3300U":`2.1`,"3450U":`2.1`,"3500U":`2.1`,"PRO 3500U":`2.1`,"3500C":`2.1`,"3550H":`2.1`,"3580U":`2.1`,"3700U":`2.3`,"PRO 3700U":`2.3`,"3700C":`2.3`,"3750H":`2.3`,"3780U":`2.3`,3100:`3.6`,"3300X":`3.8`,3500:`3.6`,"3500X":`3.6`,3600:`3.6`,"Pro 3600":`3.6`,"3600X":`3.8`,"3600XT":`3.8`,"Pro 3700":`3.6`,"3700X":`3.6`,"3800X":`3.9`,"3800XT":`3.9`,3900:`3.1`,"Pro 3900":`3.1`,"3900X":`3.8`,"3900XT":`3.8`,"3950X":`3.5`,"3960X":`3.8`,"3970X":`3.7`,"3990X":`2.9`,"3945WX":`4.0`,"3955WX":`3.9`,"3975WX":`3.5`,"3995WX":`2.7`,"4300GE":`3.5`,"Pro 4300GE":`3.5`,"4300G":`3.8`,"Pro 4300G":`3.8`,"4600GE":`3.3`,"Pro 4650GE":`3.3`,"4600G":`3.7`,"Pro 4650G":`3.7`,"4700GE":`3.1`,"Pro 4750GE":`3.1`,"4700G":`3.6`,"Pro 4750G":`3.6`,"4300U":`2.7`,"4450U":`2.5`,"Pro 4450U":`2.5`,"4500U":`2.3`,"4600U":`2.1`,"PRO 4650U":`2.1`,"4680U":`2.1`,"4600HS":`3.0`,"4600H":`3.0`,"4700U":`2.0`,"PRO 4750U":`1.7`,"4800U":`1.8`,"4800HS":`2.9`,"4800H":`2.9`,"4900HS":`3.0`,"4900H":`3.3`,"5300U":`2.6`,"5500U":`2.1`,"5700U":`1.8`,"7232P":`3.1`,"7302P":`3.0`,"7402P":`2.8`,"7502P":`2.5`,"7702P":`2.0`,7252:`3.1`,7262:`3.2`,7272:`2.9`,7282:`2.8`,7302:`3.0`,7352:`2.3`,7402:`2.8`,7452:`2.35`,7502:`2.5`,7532:`2.4`,7542:`2.9`,7552:`2.2`,7642:`2.3`,7662:`2.0`,7702:`2.0`,7742:`2.25`,"7H12":`2.6`,"7F32":`3.7`,"7F52":`3.5`,"7F72":`3.2`,"7773X":`2.2`,7763:`2.45`,7713:`2.0`,"7713P":`2.0`,7663:`2.0`,7643:`2.3`,"7573X":`2.8`,"75F3":`2.95`,7543:`2.8`,"7543P":`2.8`,7513:`2.6`,"7473X":`2.8`,7453:`2.75`,"74F3":`3.2`,7443:`2.85`,"7443P":`2.85`,7413:`2.65`,"7373X":`3.05`,"73F3":`3.5`,7343:`3.2`,7313:`3.0`,"7313P":`3.0`,"72F3":`3.7`,"5600X":`3.7`,"5800X":`3.8`,"5900X":`3.7`,"5950X":`3.4`,"5945WX":`4.1`,"5955WX":`4.0`,"5965WX":`3.8`,"5975WX":`3.6`,"5995WX":`2.7`,"7960X":`4.2`,"7970X":`4.0`,"7980X":`3.2`,"7965WX":`4.2`,"7975WX":`4.0`,"7985WX":`3.2`,"7995WX":`2.5`,9754:`2.25`,"9754S":`2.25`,9734:`2.2`,"9684X":`2.55`,"9384X":`3.1`,"9184X":`3.55`,"9654P":`2.4`,9654:`2.4`,9634:`2.25`,"9554P":`3.1`,9554:`3.1`,9534:`2.45`,"9474F":`3.6`,"9454P":`2.75`,9454:`2.75`,"9374F":`3.85`,"9354P":`3.25`,9354:`3.25`,9334:`2.7`,"9274F":`4.05`,9254:`2.9`,9224:`2.5`,"9174F":`4.1`,9124:`3.0`,"4124P":`3.8`,"4244P":`3.8`,"4344P":`3.8`,"4364P":`4.5`,"4464P":`3.7`,"4484PX":`4.4`,"4564P":`4.5`,"4584PX":`4.2`,"8024P":`2.4`,"8024PN":`2.05`,"8124P":`2.45`,"8124PN":`2.0`,"8224P":`2.55`,"8224PN":`2.0`,"8324P":`2.65`,"8324PN":`2.05`,"8434P":`2.5`,"8434PN":`2.0`,"8534P":`2.3`,"8534PN":`2.0`,9115:`2.6`,9135:`3.65`,"9175F":`4.2`,9255:`3.25`,"9275F":`4.1`,9335:`3.0`,"9355P":`3.55`,9355:`3.55`,"9375F":`3.8`,9365:`3.4`,"9455P":`3.15`,9455:`3.15`,"9475F":`3.65`,9535:`2.4`,"9555P":`3.2`,9555:`3.2`,"9575F":`3.3`,9565:`3.15`,"9655P":`2.5`,9655:`2.5`,9755:`2.7`,"4245P":`3.9`,"4345P":`3.8`,"4465P":`3.4`,"4545P":`3.0`,"4565P":`4.3`,"4585PX":`4.3`,"5900XT":`3.3`,5900:`3.0`,5945:`3.0`,"5800X3D":`3.4`,"5800XT":`3.8`,5800:`3.4`,"5700X3D":`3.0`,"5700X":`3.4`,5845:`3.4`,"5600X3D":`3.3`,"5600XT":`3.7`,"5600T":`3.5`,5600:`3.5`,"5600F":`3.0`,5645:`3.7`,"5500X3D":`3.0`,"5980HX":`3.3`,"5980HS":`3.0`,"5900HX":`3.3`,"5900HS":`3.0`,"5800H":`3.2`,"5800HS":`2.8`,"5800U":`1.9`,"5600H":`3.3`,"5600HS":`3.0`,"5600U":`2.3`,"5560U":`2.3`,"5400U":`2.7`,"5825U":`2.0`,"5625U":`2.3`,"5425U":`2.7`,"5125C":`3.0`,"7730U":`2.0`,"7530U":`2.0`,"7430U":`2.3`,"7330U":`2.3`,7203:`2.8`,7303:`2.4`,"7663P":`2.0`,"6980HX":`3.3`,"6980HS":`3.3`,"6900HX":`3.3`,"6900HS":`3.3`,"6800H":`3.2`,"6800HS":`3.2`,"6800U":`2.7`,"6600H":`3.3`,"6600HS":`3.3`,"6600U":`2.9`,"7735HS":`3.2`,"7735H":`3.2`,"7736U":`2.7`,"7735U":`2.7`,"7435HS":`3.1`,"7435H":`3.1`,"7535HS":`3.3`,"7535H":`3.3`,"7535U":`2.9`,"7235HS":`3.2`,"7235H":`3.2`,"7335U":`3.0`,270:`4.0`,260:`3.8`,250:`3.3`,240:`4.3`,230:`3.5`,220:`3.0`,210:`2.8`,"8945HS":`4.0`,"8845HS":`3.8`,"8840HS":`3.3`,"8840U":`3.3`,"8645HS":`4.3`,"8640HS":`3.5`,"8640U":`3.5`,"8540U":`3.0`,"8440U":`2.8`,"9950X3D":`4.3`,"9950X":`4.3`,"9900X3D":`4.4`,"9900X":`4.4`,"9800X3D":`4.7`,"9700X":`3.8`,"9700F":`3.8`,"9600X":`3.9`,9600:`3.8`,"9500F":`3.8`,"9995WX":`2.5`,"9985WX":`3.2`,"9975WX":`4.0`,"9965WX":`4.2`,"9955WX":`4.5`,"9945WX":`4.7`,"9980X":`3.2`,"9970X":`4.0`,"9960X":`4.2`,"PRO HX375":`2.0`,HX375:`2.0`,"PRO HX370":`2.0`,HX370:`2.0`,365:`2.0`,"PRO 360":`2.0`,350:`2.0`,"PRO 350":`2.0`,340:`2.0`,"PRO 340":`2.0`,330:`2.0`,395:`3.0`,"PRO 395":`3.0`,390:`3.2`,"PRO 390":`3.2`,385:`3.6`,"PRO 385":`3.6`,"PRO 380":`3.6`,"9955HX3D":`2.3`,"9955HX":`2.5`,"9850HX":`3.0`,9015:`3.6`,9965:`2.25`,9845:`2.1`,9825:`2.2`,9745:`2.4`,9645:`2.3`},y={1:`Other`,2:`Unknown`,3:`Daughter Board`,4:`ZIF Socket`,5:`Replacement/Piggy Back`,6:`None`,7:`LIF Socket`,8:`Slot 1`,9:`Slot 2`,10:`370 Pin Socket`,11:`Slot A`,12:`Slot M`,13:`423`,14:`A (Socket 462)`,15:`478`,16:`754`,17:`940`,18:`939`,19:`mPGA604`,20:`LGA771`,21:`LGA775`,22:`S1`,23:`AM2`,24:`F (1207)`,25:`LGA1366`,26:`G34`,27:`AM3`,28:`C32`,29:`LGA1156`,30:`LGA1567`,31:`PGA988A`,32:`BGA1288`,33:`rPGA988B`,34:`BGA1023`,35:`BGA1224`,36:`LGA1155`,37:`LGA1356`,38:`LGA2011`,39:`FS1`,40:`FS2`,41:`FM1`,42:`FM2`,43:`LGA2011-3`,44:`LGA1356-3`,45:`LGA1150`,46:`BGA1168`,47:`BGA1234`,48:`BGA1364`,49:`AM4`,50:`LGA1151`,51:`BGA1356`,52:`BGA1440`,53:`BGA1515`,54:`LGA3647-1`,55:`SP3`,56:`SP3r2`,57:`LGA2066`,58:`BGA1392`,59:`BGA1510`,60:`BGA1528`,61:`LGA4189`,62:`LGA1200`,63:`LGA4677`,64:`LGA1700`,65:`BGA1744`,66:`BGA1781`,67:`BGA1211`,68:`BGA2422`,69:`LGA1211`,70:`LGA2422`,71:`LGA5773`,72:`BGA5773`,73:`AM5`,74:`SP5`,75:`SP6`,76:`BGA883`,77:`BGA1190`,78:`BGA4129`,79:`LGA4710`,80:`LGA7529`,81:`BGA1964`,82:`BGA1792`,83:`BGA2049`,84:`BGA2551`,85:`LGA1851`,86:`BGA2114`,87:`BGA2833`},b={LGA1150:`i7-5775C i3-4340 i3-4170 G3250 i3-4160T i3-4160 E3-1231 G3258 G3240 i7-4790S i7-4790K i7-4790 i5-4690K i5-4690 i5-4590T i5-4590S i5-4590 i5-4460 i3-4360 i3-4150 G1820 G3420 G3220 i7-4771 i5-4440 i3-4330 i3-4130T i3-4130 E3-1230 i7-4770S i7-4770K i7-4770 i5-4670K i5-4670 i5-4570T i5-4570S i5-4570 i5-4430`,LGA1151:`i9-9900KS E-2288G E-2224 G5420 i9-9900T i9-9900 i7-9700T i7-9700F i7-9700E i7-9700 i5-9600 i5-9500T i5-9500F i5-9500 i5-9400T i3-9350K i3-9300 i3-9100T i3-9100F i3-9100 G4930 i9-9900KF i7-9700KF i5-9600KF i5-9400F i5-9400 i3-9350KF i9-9900K i7-9700K i5-9600K G5500 G5400 i7-8700T i7-8086K i5-8600 i5-8500T i5-8500 i5-8400T i3-8300 i3-8100T G4900 i7-8700K i7-8700 i5-8600K i5-8400 i3-8350K i3-8100 E3-1270 G4600 G4560 i7-7700T i7-7700K i7-7700 i5-7600K i5-7600 i5-7500T i5-7500 i5-7400 i3-7350K i3-7300 i3-7100T i3-7100 G3930 G3900 G4400 i7-6700T i7-6700K i7-6700 i5-6600K i5-6600 i5-6500T i5-6500 i5-6400T i5-6400 i3-6300 i3-6100T i3-6100 E3-1270 E3-1270 T4500 T4400`,1155:`G440 G460 G465 G470 G530T G540T G550T G1610T G1620T G530 G540 G1610 G550 G1620 G555 G1630 i3-2100T i3-2120T i3-3220T i3-3240T i3-3250T i3-2100 i3-2105 i3-2102 i3-3210 i3-3220 i3-2125 i3-2120 i3-3225 i3-2130 i3-3245 i3-3240 i3-3250 i5-3570T i5-2500T i5-2400S i5-2405S i5-2390T i5-3330S i5-2500S i5-3335S i5-2300 i5-3450S i5-3340S i5-3470S i5-3475S i5-3470T i5-2310 i5-3550S i5-2320 i5-3330 i5-3350P i5-3450 i5-2400 i5-3340 i5-3570S i5-2380P i5-2450P i5-3470 i5-2500K i5-3550 i5-2500 i5-3570 i5-3570K i5-2550K i7-3770T i7-2600S i7-3770S i7-2600K i7-2600 i7-3770 i7-3770K i7-2700K G620T G630T G640T G2020T G645T G2100T G2030T G622 G860T G620 G632 G2120T G630 G640 G2010 G840 G2020 G850 G645 G2030 G860 G2120 G870 G2130 G2140 E3-1220L E3-1220L E3-1260L E3-1265L E3-1220 E3-1225 E3-1220 E3-1235 E3-1225 E3-1230 E3-1230 E3-1240 E3-1245 E3-1270 E3-1275 E3-1240 E3-1245 E3-1270 E3-1280 E3-1275 E3-1290 E3-1280 E3-1290`};function x(e){let t=``;for(let n in b)b[n].split(` `).forEach(r=>{e.indexOf(r)>=0&&(t=n)});return t}function S(e){let t=e;return e=e.toLowerCase(),e.indexOf(`intel`)>=0&&(t=`Intel`),e.indexOf(`amd`)>=0&&(t=`AMD`),e.indexOf(`qemu`)>=0&&(t=`QEMU`),e.indexOf(`hygon`)>=0&&(t=`Hygon`),e.indexOf(`centaur`)>=0&&(t=`WinChip/Via`),e.indexOf(`vmware`)>=0&&(t=`VMware`),e.indexOf(`Xen`)>=0&&(t=`Xen Hypervisor`),e.indexOf(`tcg`)>=0&&(t=`QEMU`),e.indexOf(`apple`)>=0&&(t=`Apple`),e.indexOf(`sifive`)>=0&&(t=`SiFive`),e.indexOf(`thead`)>=0&&(t=`T-Head`),e.indexOf(`andestech`)>=0&&(t=`Andes Technology`),t}function C(e){e.brand=e.brand.replace(/\(R\)+/g,`®`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/\(TM\)+/g,`™`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/\(C\)+/g,`©`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/CPU+/g,``).replace(/\s+/g,` `).trim(),e.manufacturer=S(e.brand);let t=e.brand.split(` `);return t.shift(),e.brand=t.join(` `),e}function w(e){let t=`0`;for(let n in v)if({}.hasOwnProperty.call(v,n)){let r=n.split(`|`),i=0;r.forEach(t=>{e.indexOf(t)>-1&&i++}),i===r.length&&(t=v[n])}return parseFloat(t)}function T(){return new Promise(e=>{process.nextTick(()=>{let o=`unknown`,h={manufacturer:o,brand:o,vendor:``,family:``,model:``,stepping:``,revision:``,voltage:``,speed:0,speedMin:0,speedMax:0,governor:``,cores:a.cores(),physicalCores:a.cores(),performanceCores:a.cores(),efficiencyCores:0,processors:1,socket:``,flags:``,virtualization:!1,cache:{}};A().then(o=>{if(h.flags=o,h.virtualization=o.indexOf(`vmx`)>-1||o.indexOf(`svm`)>-1,c&&n(`sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu hw.tbfrequency hw.cpufamily hw.cpusubfamily`,(n,i)=>{let o=i.toString().split(` +`);i.manufacturer=_(r.getValue(e,`manufacturer`,`:`)),i.model=_(r.getValue(e,`model`,`:`));let n=parseInt(r.getValue(e,`ChassisTypes`,`:`).replace(/\D/g,``));i.type=n&&!isNaN(n)&&n{let t=V(`os`),n=V(`child_process`).exec,r=V(`child_process`).execSync,i=V(`fs`),a=SO(),o=process.platform,s=o===`linux`||o===`android`,c=o===`darwin`,l=o===`win32`,u=o===`freebsd`,d=o===`openbsd`,f=o===`netbsd`,p=o===`sunos`,m=0,h={user:0,nice:0,system:0,idle:0,irq:0,steal:0,guest:0,load:0,tick:0,ms:0,currentLoad:0,currentLoadUser:0,currentLoadSystem:0,currentLoadNice:0,currentLoadIdle:0,currentLoadIrq:0,currentLoadSteal:0,currentLoadGuest:0,rawCurrentLoad:0,rawCurrentLoadUser:0,rawCurrentLoadSystem:0,rawCurrentLoadNice:0,rawCurrentLoadIdle:0,rawCurrentLoadIrq:0,rawCurrentLoadSteal:0,rawCurrentLoadGuest:0},g=[],_=0,v={8346:`1.8`,8347:`1.9`,8350:`2.0`,8354:`2.2`,"8356|SE":`2.4`,8356:`2.3`,8360:`2.5`,2372:`2.1`,2373:`2.1`,2374:`2.2`,2376:`2.3`,2377:`2.3`,2378:`2.4`,2379:`2.4`,2380:`2.5`,2381:`2.5`,2382:`2.6`,2384:`2.7`,2386:`2.8`,2387:`2.8`,2389:`2.9`,2393:`3.1`,8374:`2.2`,8376:`2.3`,8378:`2.4`,8379:`2.4`,8380:`2.5`,8381:`2.5`,8382:`2.6`,8384:`2.7`,8386:`2.8`,8387:`2.8`,8389:`2.9`,8393:`3.1`,"2419EE":`1.8`,"2423HE":`2.0`,"2425HE":`2.1`,2427:`2.2`,2431:`2.4`,2435:`2.6`,"2439SE":`2.8`,"8425HE":`2.1`,8431:`2.4`,8435:`2.6`,"8439SE":`2.8`,4122:`2.2`,4130:`2.6`,"4162EE":`1.7`,"4164EE":`1.8`,"4170HE":`2.1`,"4174HE":`2.3`,"4176HE":`2.4`,4180:`2.6`,4184:`2.8`,"6124HE":`1.8`,"6128HE":`2.0`,"6132HE":`2.2`,6128:`2.0`,6134:`2.3`,6136:`2.4`,6140:`2.6`,"6164HE":`1.7`,"6166HE":`1.8`,6168:`1.9`,6172:`2.1`,6174:`2.2`,6176:`2.3`,"6176SE":`2.3`,"6180SE":`2.5`,3250:`2.5`,3260:`2.7`,3280:`2.4`,4226:`2.7`,4228:`2.8`,4230:`2.9`,4234:`3.1`,4238:`3.3`,4240:`3.4`,4256:`1.6`,4274:`2.5`,4276:`2.6`,4280:`2.8`,4284:`3.0`,6204:`3.3`,6212:`2.6`,6220:`3.0`,6234:`2.4`,6238:`2.6`,"6262HE":`1.6`,6272:`2.1`,6274:`2.2`,6276:`2.3`,6278:`2.4`,"6282SE":`2.6`,"6284SE":`2.7`,6308:`3.5`,6320:`2.8`,6328:`3.2`,"6338P":`2.3`,6344:`2.6`,6348:`2.8`,6366:`1.8`,"6370P":`2.0`,6376:`2.3`,6378:`2.4`,6380:`2.5`,6386:`2.8`,"FX|4100":`3.6`,"FX|4120":`3.9`,"FX|4130":`3.8`,"FX|4150":`3.8`,"FX|4170":`4.2`,"FX|6100":`3.3`,"FX|6120":`3.6`,"FX|6130":`3.6`,"FX|6200":`3.8`,"FX|8100":`2.8`,"FX|8120":`3.1`,"FX|8140":`3.2`,"FX|8150":`3.6`,"FX|8170":`3.9`,"FX|4300":`3.8`,"FX|4320":`4.0`,"FX|4350":`4.2`,"FX|6300":`3.5`,"FX|6350":`3.9`,"FX|8300":`3.3`,"FX|8310":`3.4`,"FX|8320":`3.5`,"FX|8350":`4.0`,"FX|8370":`4.0`,"FX|9370":`4.4`,"FX|9590":`4.7`,"FX|8320E":`3.2`,"FX|8370E":`3.3`,1200:`3.1`,"Pro 1200":`3.1`,"1300X":`3.5`,"Pro 1300":`3.5`,1400:`3.2`,"1500X":`3.5`,"Pro 1500":`3.5`,1600:`3.2`,"1600X":`3.6`,"Pro 1600":`3.2`,1700:`3.0`,"Pro 1700":`3.0`,"1700X":`3.4`,"Pro 1700X":`3.4`,"1800X":`3.6`,"1900X":`3.8`,1920:`3.2`,"1920X":`3.5`,"1950X":`3.4`,"200GE":`3.2`,"Pro 200GE":`3.2`,"220GE":`3.4`,"240GE":`3.5`,"3000G":`3.5`,"300GE":`3.4`,"3050GE":`3.4`,"2200G":`3.5`,"Pro 2200G":`3.5`,"2200GE":`3.2`,"Pro 2200GE":`3.2`,"2400G":`3.6`,"Pro 2400G":`3.6`,"2400GE":`3.2`,"Pro 2400GE":`3.2`,"Pro 200U":`2.3`,"300U":`2.4`,"2200U":`2.5`,"3200U":`2.6`,"2300U":`2.0`,"Pro 2300U":`2.0`,"2500U":`2.0`,"Pro 2500U":`2.2`,"2600H":`3.2`,"2700U":`2.0`,"Pro 2700U":`2.2`,"2800H":`3.3`,7351:`2.4`,"7351P":`2.4`,7401:`2.0`,"7401P":`2.0`,"7551P":`2.0`,7551:`2.0`,7251:`2.1`,7261:`2.5`,7281:`2.1`,7301:`2.2`,7371:`3.1`,7451:`2.3`,7501:`2.0`,7571:`2.2`,7601:`2.2`,V1500B:`2.2`,V1780B:`3.35`,V1202B:`2.3`,V1404I:`2.0`,V1605B:`2.0`,V1756B:`3.25`,V1807B:`3.35`,3101:`2.1`,3151:`2.7`,3201:`1.5`,3251:`2.5`,3255:`2.5`,3301:`2.0`,3351:`1.9`,3401:`1.85`,3451:`2.15`,"1200|AF":`3.1`,"2300X":`3.5`,"2500X":`3.6`,2600:`3.4`,"2600E":`3.1`,"1600|AF":`3.2`,"2600X":`3.6`,2700:`3.2`,"2700E":`2.8`,"Pro 2700":`3.2`,"2700X":`3.7`,"Pro 2700X":`3.6`,"2920X":`3.5`,"2950X":`3.5`,"2970WX":`3.0`,"2990WX":`3.0`,"Pro 300GE":`3.4`,"Pro 3125GE":`3.4`,"3150G":`3.5`,"Pro 3150G":`3.5`,"3150GE":`3.3`,"Pro 3150GE":`3.3`,"3200G":`3.6`,"Pro 3200G":`3.6`,"3200GE":`3.3`,"Pro 3200GE":`3.3`,"3350G":`3.6`,"Pro 3350G":`3.6`,"3350GE":`3.3`,"Pro 3350GE":`3.3`,"3400G":`3.7`,"Pro 3400G":`3.7`,"3400GE":`3.3`,"Pro 3400GE":`3.3`,"3300U":`2.1`,"PRO 3300U":`2.1`,"3450U":`2.1`,"3500U":`2.1`,"PRO 3500U":`2.1`,"3500C":`2.1`,"3550H":`2.1`,"3580U":`2.1`,"3700U":`2.3`,"PRO 3700U":`2.3`,"3700C":`2.3`,"3750H":`2.3`,"3780U":`2.3`,3100:`3.6`,"3300X":`3.8`,3500:`3.6`,"3500X":`3.6`,3600:`3.6`,"Pro 3600":`3.6`,"3600X":`3.8`,"3600XT":`3.8`,"Pro 3700":`3.6`,"3700X":`3.6`,"3800X":`3.9`,"3800XT":`3.9`,3900:`3.1`,"Pro 3900":`3.1`,"3900X":`3.8`,"3900XT":`3.8`,"3950X":`3.5`,"3960X":`3.8`,"3970X":`3.7`,"3990X":`2.9`,"3945WX":`4.0`,"3955WX":`3.9`,"3975WX":`3.5`,"3995WX":`2.7`,"4300GE":`3.5`,"Pro 4300GE":`3.5`,"4300G":`3.8`,"Pro 4300G":`3.8`,"4600GE":`3.3`,"Pro 4650GE":`3.3`,"4600G":`3.7`,"Pro 4650G":`3.7`,"4700GE":`3.1`,"Pro 4750GE":`3.1`,"4700G":`3.6`,"Pro 4750G":`3.6`,"4300U":`2.7`,"4450U":`2.5`,"Pro 4450U":`2.5`,"4500U":`2.3`,"4600U":`2.1`,"PRO 4650U":`2.1`,"4680U":`2.1`,"4600HS":`3.0`,"4600H":`3.0`,"4700U":`2.0`,"PRO 4750U":`1.7`,"4800U":`1.8`,"4800HS":`2.9`,"4800H":`2.9`,"4900HS":`3.0`,"4900H":`3.3`,"5300U":`2.6`,"5500U":`2.1`,"5700U":`1.8`,"7232P":`3.1`,"7302P":`3.0`,"7402P":`2.8`,"7502P":`2.5`,"7702P":`2.0`,7252:`3.1`,7262:`3.2`,7272:`2.9`,7282:`2.8`,7302:`3.0`,7352:`2.3`,7402:`2.8`,7452:`2.35`,7502:`2.5`,7532:`2.4`,7542:`2.9`,7552:`2.2`,7642:`2.3`,7662:`2.0`,7702:`2.0`,7742:`2.25`,"7H12":`2.6`,"7F32":`3.7`,"7F52":`3.5`,"7F72":`3.2`,"7773X":`2.2`,7763:`2.45`,7713:`2.0`,"7713P":`2.0`,7663:`2.0`,7643:`2.3`,"7573X":`2.8`,"75F3":`2.95`,7543:`2.8`,"7543P":`2.8`,7513:`2.6`,"7473X":`2.8`,7453:`2.75`,"74F3":`3.2`,7443:`2.85`,"7443P":`2.85`,7413:`2.65`,"7373X":`3.05`,"73F3":`3.5`,7343:`3.2`,7313:`3.0`,"7313P":`3.0`,"72F3":`3.7`,"5600X":`3.7`,"5800X":`3.8`,"5900X":`3.7`,"5950X":`3.4`,"5945WX":`4.1`,"5955WX":`4.0`,"5965WX":`3.8`,"5975WX":`3.6`,"5995WX":`2.7`,"7960X":`4.2`,"7970X":`4.0`,"7980X":`3.2`,"7965WX":`4.2`,"7975WX":`4.0`,"7985WX":`3.2`,"7995WX":`2.5`,9754:`2.25`,"9754S":`2.25`,9734:`2.2`,"9684X":`2.55`,"9384X":`3.1`,"9184X":`3.55`,"9654P":`2.4`,9654:`2.4`,9634:`2.25`,"9554P":`3.1`,9554:`3.1`,9534:`2.45`,"9474F":`3.6`,"9454P":`2.75`,9454:`2.75`,"9374F":`3.85`,"9354P":`3.25`,9354:`3.25`,9334:`2.7`,"9274F":`4.05`,9254:`2.9`,9224:`2.5`,"9174F":`4.1`,9124:`3.0`,"4124P":`3.8`,"4244P":`3.8`,"4344P":`3.8`,"4364P":`4.5`,"4464P":`3.7`,"4484PX":`4.4`,"4564P":`4.5`,"4584PX":`4.2`,"8024P":`2.4`,"8024PN":`2.05`,"8124P":`2.45`,"8124PN":`2.0`,"8224P":`2.55`,"8224PN":`2.0`,"8324P":`2.65`,"8324PN":`2.05`,"8434P":`2.5`,"8434PN":`2.0`,"8534P":`2.3`,"8534PN":`2.0`,9115:`2.6`,9135:`3.65`,"9175F":`4.2`,9255:`3.25`,"9275F":`4.1`,9335:`3.0`,"9355P":`3.55`,9355:`3.55`,"9375F":`3.8`,9365:`3.4`,"9455P":`3.15`,9455:`3.15`,"9475F":`3.65`,9535:`2.4`,"9555P":`3.2`,9555:`3.2`,"9575F":`3.3`,9565:`3.15`,"9655P":`2.5`,9655:`2.5`,9755:`2.7`,"4245P":`3.9`,"4345P":`3.8`,"4465P":`3.4`,"4545P":`3.0`,"4565P":`4.3`,"4585PX":`4.3`,"5900XT":`3.3`,5900:`3.0`,5945:`3.0`,"5800X3D":`3.4`,"5800XT":`3.8`,5800:`3.4`,"5700X3D":`3.0`,"5700X":`3.4`,5845:`3.4`,"5600X3D":`3.3`,"5600XT":`3.7`,"5600T":`3.5`,5600:`3.5`,"5600F":`3.0`,5645:`3.7`,"5500X3D":`3.0`,"5980HX":`3.3`,"5980HS":`3.0`,"5900HX":`3.3`,"5900HS":`3.0`,"5800H":`3.2`,"5800HS":`2.8`,"5800U":`1.9`,"5600H":`3.3`,"5600HS":`3.0`,"5600U":`2.3`,"5560U":`2.3`,"5400U":`2.7`,"5825U":`2.0`,"5625U":`2.3`,"5425U":`2.7`,"5125C":`3.0`,"7730U":`2.0`,"7530U":`2.0`,"7430U":`2.3`,"7330U":`2.3`,7203:`2.8`,7303:`2.4`,"7663P":`2.0`,"6980HX":`3.3`,"6980HS":`3.3`,"6900HX":`3.3`,"6900HS":`3.3`,"6800H":`3.2`,"6800HS":`3.2`,"6800U":`2.7`,"6600H":`3.3`,"6600HS":`3.3`,"6600U":`2.9`,"7735HS":`3.2`,"7735H":`3.2`,"7736U":`2.7`,"7735U":`2.7`,"7435HS":`3.1`,"7435H":`3.1`,"7535HS":`3.3`,"7535H":`3.3`,"7535U":`2.9`,"7235HS":`3.2`,"7235H":`3.2`,"7335U":`3.0`,270:`4.0`,260:`3.8`,250:`3.3`,240:`4.3`,230:`3.5`,220:`3.0`,210:`2.8`,"8945HS":`4.0`,"8845HS":`3.8`,"8840HS":`3.3`,"8840U":`3.3`,"8645HS":`4.3`,"8640HS":`3.5`,"8640U":`3.5`,"8540U":`3.0`,"8440U":`2.8`,"9950X3D":`4.3`,"9950X":`4.3`,"9900X3D":`4.4`,"9900X":`4.4`,"9800X3D":`4.7`,"9700X":`3.8`,"9700F":`3.8`,"9600X":`3.9`,9600:`3.8`,"9500F":`3.8`,"9995WX":`2.5`,"9985WX":`3.2`,"9975WX":`4.0`,"9965WX":`4.2`,"9955WX":`4.5`,"9945WX":`4.7`,"9980X":`3.2`,"9970X":`4.0`,"9960X":`4.2`,"PRO HX375":`2.0`,HX375:`2.0`,"PRO HX370":`2.0`,HX370:`2.0`,365:`2.0`,"PRO 360":`2.0`,350:`2.0`,"PRO 350":`2.0`,340:`2.0`,"PRO 340":`2.0`,330:`2.0`,395:`3.0`,"PRO 395":`3.0`,390:`3.2`,"PRO 390":`3.2`,385:`3.6`,"PRO 385":`3.6`,"PRO 380":`3.6`,"9955HX3D":`2.3`,"9955HX":`2.5`,"9850HX":`3.0`,9015:`3.6`,9965:`2.25`,9845:`2.1`,9825:`2.2`,9745:`2.4`,9645:`2.3`},y={1:`Other`,2:`Unknown`,3:`Daughter Board`,4:`ZIF Socket`,5:`Replacement/Piggy Back`,6:`None`,7:`LIF Socket`,8:`Slot 1`,9:`Slot 2`,10:`370 Pin Socket`,11:`Slot A`,12:`Slot M`,13:`423`,14:`A (Socket 462)`,15:`478`,16:`754`,17:`940`,18:`939`,19:`mPGA604`,20:`LGA771`,21:`LGA775`,22:`S1`,23:`AM2`,24:`F (1207)`,25:`LGA1366`,26:`G34`,27:`AM3`,28:`C32`,29:`LGA1156`,30:`LGA1567`,31:`PGA988A`,32:`BGA1288`,33:`rPGA988B`,34:`BGA1023`,35:`BGA1224`,36:`LGA1155`,37:`LGA1356`,38:`LGA2011`,39:`FS1`,40:`FS2`,41:`FM1`,42:`FM2`,43:`LGA2011-3`,44:`LGA1356-3`,45:`LGA1150`,46:`BGA1168`,47:`BGA1234`,48:`BGA1364`,49:`AM4`,50:`LGA1151`,51:`BGA1356`,52:`BGA1440`,53:`BGA1515`,54:`LGA3647-1`,55:`SP3`,56:`SP3r2`,57:`LGA2066`,58:`BGA1392`,59:`BGA1510`,60:`BGA1528`,61:`LGA4189`,62:`LGA1200`,63:`LGA4677`,64:`LGA1700`,65:`BGA1744`,66:`BGA1781`,67:`BGA1211`,68:`BGA2422`,69:`LGA1211`,70:`LGA2422`,71:`LGA5773`,72:`BGA5773`,73:`AM5`,74:`SP5`,75:`SP6`,76:`BGA883`,77:`BGA1190`,78:`BGA4129`,79:`LGA4710`,80:`LGA7529`,81:`BGA1964`,82:`BGA1792`,83:`BGA2049`,84:`BGA2551`,85:`LGA1851`,86:`BGA2114`,87:`BGA2833`},b={LGA1150:`i7-5775C i3-4340 i3-4170 G3250 i3-4160T i3-4160 E3-1231 G3258 G3240 i7-4790S i7-4790K i7-4790 i5-4690K i5-4690 i5-4590T i5-4590S i5-4590 i5-4460 i3-4360 i3-4150 G1820 G3420 G3220 i7-4771 i5-4440 i3-4330 i3-4130T i3-4130 E3-1230 i7-4770S i7-4770K i7-4770 i5-4670K i5-4670 i5-4570T i5-4570S i5-4570 i5-4430`,LGA1151:`i9-9900KS E-2288G E-2224 G5420 i9-9900T i9-9900 i7-9700T i7-9700F i7-9700E i7-9700 i5-9600 i5-9500T i5-9500F i5-9500 i5-9400T i3-9350K i3-9300 i3-9100T i3-9100F i3-9100 G4930 i9-9900KF i7-9700KF i5-9600KF i5-9400F i5-9400 i3-9350KF i9-9900K i7-9700K i5-9600K G5500 G5400 i7-8700T i7-8086K i5-8600 i5-8500T i5-8500 i5-8400T i3-8300 i3-8100T G4900 i7-8700K i7-8700 i5-8600K i5-8400 i3-8350K i3-8100 E3-1270 G4600 G4560 i7-7700T i7-7700K i7-7700 i5-7600K i5-7600 i5-7500T i5-7500 i5-7400 i3-7350K i3-7300 i3-7100T i3-7100 G3930 G3900 G4400 i7-6700T i7-6700K i7-6700 i5-6600K i5-6600 i5-6500T i5-6500 i5-6400T i5-6400 i3-6300 i3-6100T i3-6100 E3-1270 E3-1270 T4500 T4400`,1155:`G440 G460 G465 G470 G530T G540T G550T G1610T G1620T G530 G540 G1610 G550 G1620 G555 G1630 i3-2100T i3-2120T i3-3220T i3-3240T i3-3250T i3-2100 i3-2105 i3-2102 i3-3210 i3-3220 i3-2125 i3-2120 i3-3225 i3-2130 i3-3245 i3-3240 i3-3250 i5-3570T i5-2500T i5-2400S i5-2405S i5-2390T i5-3330S i5-2500S i5-3335S i5-2300 i5-3450S i5-3340S i5-3470S i5-3475S i5-3470T i5-2310 i5-3550S i5-2320 i5-3330 i5-3350P i5-3450 i5-2400 i5-3340 i5-3570S i5-2380P i5-2450P i5-3470 i5-2500K i5-3550 i5-2500 i5-3570 i5-3570K i5-2550K i7-3770T i7-2600S i7-3770S i7-2600K i7-2600 i7-3770 i7-3770K i7-2700K G620T G630T G640T G2020T G645T G2100T G2030T G622 G860T G620 G632 G2120T G630 G640 G2010 G840 G2020 G850 G645 G2030 G860 G2120 G870 G2130 G2140 E3-1220L E3-1220L E3-1260L E3-1265L E3-1220 E3-1225 E3-1220 E3-1235 E3-1225 E3-1230 E3-1230 E3-1240 E3-1245 E3-1270 E3-1275 E3-1240 E3-1245 E3-1270 E3-1280 E3-1275 E3-1290 E3-1280 E3-1290`};function x(e){let t=``;for(let n in b)b[n].split(` `).forEach(r=>{e.indexOf(r)>=0&&(t=n)});return t}function S(e){let t=e;return e=e.toLowerCase(),e.indexOf(`intel`)>=0&&(t=`Intel`),e.indexOf(`amd`)>=0&&(t=`AMD`),e.indexOf(`qemu`)>=0&&(t=`QEMU`),e.indexOf(`hygon`)>=0&&(t=`Hygon`),e.indexOf(`centaur`)>=0&&(t=`WinChip/Via`),e.indexOf(`vmware`)>=0&&(t=`VMware`),e.indexOf(`Xen`)>=0&&(t=`Xen Hypervisor`),e.indexOf(`tcg`)>=0&&(t=`QEMU`),e.indexOf(`apple`)>=0&&(t=`Apple`),e.indexOf(`sifive`)>=0&&(t=`SiFive`),e.indexOf(`thead`)>=0&&(t=`T-Head`),e.indexOf(`andestech`)>=0&&(t=`Andes Technology`),t}function C(e){e.brand=e.brand.replace(/\(R\)+/g,`®`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/\(TM\)+/g,`™`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/\(C\)+/g,`©`).replace(/\s+/g,` `).trim(),e.brand=e.brand.replace(/CPU+/g,``).replace(/\s+/g,` `).trim(),e.manufacturer=S(e.brand);let t=e.brand.split(` `);return t.shift(),e.brand=t.join(` `),e}function w(e){let t=`0`;for(let n in v)if({}.hasOwnProperty.call(v,n)){let r=n.split(`|`),i=0;r.forEach(t=>{e.indexOf(t)>-1&&i++}),i===r.length&&(t=v[n])}return parseFloat(t)}function T(){return new Promise(e=>{process.nextTick(()=>{let o=`unknown`,h={manufacturer:o,brand:o,vendor:``,family:``,model:``,stepping:``,revision:``,voltage:``,speed:0,speedMin:0,speedMax:0,governor:``,cores:a.cores(),physicalCores:a.cores(),performanceCores:a.cores(),efficiencyCores:0,processors:1,socket:``,flags:``,virtualization:!1,cache:{}};A().then(o=>{if(h.flags=o,h.virtualization=o.indexOf(`vmx`)>-1||o.indexOf(`svm`)>-1,c&&n(`sysctl machdep.cpu hw.cpufrequency_max hw.cpufrequency_min hw.packages hw.physicalcpu_max hw.ncpu hw.tbfrequency hw.cpufamily hw.cpusubfamily`,(n,i)=>{let o=i.toString().split(` `),s=a.getValue(o,`machdep.cpu.brand_string`).split(`@`);h.brand=s[0].trim();let c=s[1]?s[1].trim():`0`;h.speed=parseFloat(c.replace(/GHz+/g,``));let l=a.getValue(o,`hw.tbfrequency`)/1e9;l=l<.1?l*100:l,h.speed=h.speed===0?l:h.speed,m=h.speed,h=C(h),h.speedMin=a.getValue(o,`hw.cpufrequency_min`)?a.getValue(o,`hw.cpufrequency_min`)/1e9:h.speed,h.speedMax=a.getValue(o,`hw.cpufrequency_max`)?a.getValue(o,`hw.cpufrequency_max`)/1e9:h.speed,h.vendor=a.getValue(o,`machdep.cpu.vendor`)||`Apple`,h.family=a.getValue(o,`machdep.cpu.family`)||a.getValue(o,`hw.cpufamily`),h.model=a.getValue(o,`machdep.cpu.model`),h.stepping=a.getValue(o,`machdep.cpu.stepping`)||a.getValue(o,`hw.cpusubfamily`),h.virtualization=!0;let u=a.getValue(o,`hw.packages`),d=a.getValue(o,`hw.physicalcpu_max`),f=a.getValue(o,`hw.ncpu`);if(t.arch()===`arm64`){h.socket=`SOC`;try{let e=r(`ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type`).toString().split(` `),t=e.filter(e=>e.indexOf(`"E"`)>=0).length,n=e.filter(e=>e.indexOf(`"P"`)>=0).length;h.efficiencyCores=t,h.performanceCores=n}catch{a.noop()}}u&&(h.processors=parseInt(u,10)||1),d&&f&&(h.cores=parseInt(f)||a.cores(),h.physicalCores=parseInt(d)||a.cores()),j().then(t=>{h.cache=t,e(h)})}),s){let r=``,o=[];t.cpus()[0]&&t.cpus()[0].model&&(r=t.cpus()[0].model),n(`export LC_ALL=C; lscpu; echo -n "Governor: "; cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor 2>/dev/null; echo; unset LC_ALL`,(t,s)=>{t||(o=s.toString().split(` `)),r=a.getValue(o,`model name`)||r,r=a.getValue(o,`bios model name`)||r,r=a.cleanString(r);let c=r.split(`@`);if(h.brand=c[0].trim(),h.brand.indexOf(`Unknown`)>=0&&(h.brand=h.brand.split(`Unknown`)[0].trim()),h.speed=c[1]?parseFloat(c[1].trim()):0,h.speed===0&&(h.brand.indexOf(`AMD`)>-1||h.brand.toLowerCase().indexOf(`ryzen`)>-1)&&(h.speed=w(h.brand)),h.speed===0){let e=D();e.avg!==0&&(h.speed=e.avg)}m=h.speed,h.speedMin=Math.round(parseFloat(a.getValue(o,`cpu min mhz`).replace(/,/g,`.`))/10)/100,h.speedMax=Math.round(parseFloat(a.getValue(o,`cpu max mhz`).replace(/,/g,`.`))/10)/100,h=C(h),h.vendor=S(a.getValue(o,`vendor id`)),h.family=a.getValue(o,`cpu family`),h.model=a.getValue(o,`model:`),h.stepping=a.getValue(o,`stepping`),h.revision=a.getValue(o,`cpu revision`),h.cache.l1d=a.getValue(o,`l1d cache`),h.cache.l1d&&(h.cache.l1d=parseInt(h.cache.l1d)*(h.cache.l1d.indexOf(`M`)===-1?h.cache.l1d.indexOf(`K`)===-1?1:1024:1024*1024)),h.cache.l1i=a.getValue(o,`l1i cache`),h.cache.l1i&&(h.cache.l1i=parseInt(h.cache.l1i)*(h.cache.l1i.indexOf(`M`)===-1?h.cache.l1i.indexOf(`K`)===-1?1:1024:1024*1024)),h.cache.l2=a.getValue(o,`l2 cache`),h.cache.l2&&(h.cache.l2=parseInt(h.cache.l2)*(h.cache.l2.indexOf(`M`)===-1?h.cache.l2.indexOf(`K`)===-1?1:1024:1024*1024)),h.cache.l3=a.getValue(o,`l3 cache`),h.cache.l3&&(h.cache.l3=parseInt(h.cache.l3)*(h.cache.l3.indexOf(`M`)===-1?h.cache.l3.indexOf(`K`)===-1?1:1024:1024*1024));let l=a.getValue(o,`thread(s) per core`)||`1`,u=a.getValue(o,`socket(s)`)||`1`,d=parseInt(l,10),f=parseInt(u,10)||1,p=parseInt(a.getValue(o,`core(s) per socket`),10);if(h.physicalCores=p?p*f:h.cores/d,h.performanceCores=d>1?h.cores-h.physicalCores:h.cores,h.efficiencyCores=d>1?h.cores-d*h.performanceCores:0,h.processors=f,h.governor=a.getValue(o,`governor`)||``,h.vendor===`ARM`&&a.isRaspberry()){let e=a.decodePiCpuinfo();h.family=h.manufacturer,h.manufacturer=e.manufacturer,h.brand=e.processor,h.revision=e.revisionCode,h.socket=`SOC`}if(a.getValue(o,`architecture`)===`riscv64`){let e=i.readFileSync(`/proc/cpuinfo`).toString().split(` @@ -191,7 +191,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `),r=null,i=!0,s=``;if(n.forEach(e=>{e.trim()===``?i=!0:i&&=(e.trim().toLowerCase().startsWith(`acpi`)&&(s=`acpi`),e.trim().toLowerCase().startsWith(`pch`)&&(s=`pch`),e.trim().toLowerCase().startsWith(`core`)&&(s=`core`),e.trim().toLowerCase().startsWith(`k10temp`)&&(s=`coreAMD`),!1);let t=e.match(/[+-]([^°]*)/g),n=e.split(`:`)[0].toUpperCase();s===`acpi`?n.indexOf(`TEMP`)!==-1&&o.socket.push(parseFloat(t)):s===`pch`&&n.indexOf(`TEMP`)!==-1&&!o.chipset&&(o.chipset=parseFloat(t)),(n.indexOf(`PHYSICAL`)!==-1||n.indexOf(`PACKAGE`)!==-1||s===`coreAMD`&&n.indexOf(`TDIE`)!==-1||n.indexOf(`TEMP`)!==-1)&&(o.main=parseFloat(t)),n.indexOf(`CORE `)!==-1&&o.cores.push(parseFloat(t)),n.indexOf(`TDIE`)!==-1&&r===null&&(r=parseFloat(t))}),o.cores.length>0){o.main=Math.round(o.cores.reduce((e,t)=>e+t,0)/o.cores.length);let e=Math.max.apply(Math,o.cores);o.max=e>o.main?e:o.main}else o.main===null&&r!==null&&(o.main=r,o.max=r);if(o.main!==null&&o.max===null&&(o.max=o.main),o.main!==null||o.max!==null){e&&e(o),t(o);return}}i.stat(`/sys/class/thermal/thermal_zone0/temp`,r=>{r===null?i.readFile(`/sys/class/thermal/thermal_zone0/temp`,(n,r)=>{if(!n){let e=r.toString().split(` `);e.length>0&&(o.main=parseFloat(e[0])/1e3,o.max=o.main)}e&&e(o),t(o)}):n(`/opt/vc/bin/vcgencmd measure_temp`,(n,r)=>{if(!n){let e=r.toString().split(` `);e.length>0&&e[0].indexOf(`=`)&&(o.main=parseFloat(e[0].split(`=`)[1]),o.max=o.main)}e&&e(o),t(o)})})})})}catch{e&&e(o),t(o)}}if((u||d||f)&&n(`sysctl dev.cpu | grep temp`,(n,r)=>{if(!n){let e=r.toString().split(` -`),t=0;e.forEach(e=>{let n=e.split(`:`);if(n.length>1){let e=parseFloat(n[1].replace(`,`,`.`));e>o.max&&(o.max=e),t+=e,o.cores.push(e)}}),o.cores.length&&(o.main=Math.round(t/o.cores.length*100)/100)}e&&e(o),t(o)}),c){try{if(o=B(`osx-temperature-sensor`).cpuTemperature(),o.main&&=Math.round(o.main*100)/100,o.max&&=Math.round(o.max*100)/100,o&&o.cores&&o.cores.length)for(let e=0;e{if(!r){let e=0;n.split(`\r +`),t=0;e.forEach(e=>{let n=e.split(`:`);if(n.length>1){let e=parseFloat(n[1].replace(`,`,`.`));e>o.max&&(o.max=e),t+=e,o.cores.push(e)}}),o.cores.length&&(o.main=Math.round(t/o.cores.length*100)/100)}e&&e(o),t(o)}),c){try{if(o=V(`osx-temperature-sensor`).cpuTemperature(),o.main&&=Math.round(o.main*100)/100,o.max&&=Math.round(o.max*100)/100,o&&o.cores&&o.cores.length)for(let e=0;e{if(!r){let e=0;n.split(`\r `).filter(e=>e.trim()!==``).filter((e,t)=>t>0).forEach(t=>{let n=(parseInt(t,10)-2732)/10;isNaN(n)||(e+=n,n>o.max&&(o.max=n),o.cores.push(n))}),o.cores.length&&(o.main=e/o.cores.length)}e&&e(o),t(o)})}catch{e&&e(o),t(o)}})})}e.cpuTemperature=k;function A(e){return new Promise(t=>{process.nextTick(()=>{let r=``;if(l)try{n(`reg query "HKEY_LOCAL_MACHINE\\HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0" /v FeatureSet`,a.execOptsWin,(n,i)=>{if(!n){let e=i.split(`0x`).pop().trim(),t=parseInt(e,16).toString(2),n=`0`.repeat(32-t.length)+t,a=`fpu.vme.de.pse.tsc.msr.pae.mce.cx8.apic..sep.mtrr.pge.mca.cmov.pat.pse-36.psn.clfsh..ds.acpi.mmx.fxsr.sse.sse2.ss.htt.tm.ia64.pbe`.split(`.`);for(let e=0;e{n||o.toString().split(` `).forEach(e=>{e.split(`:`)[0].toUpperCase().indexOf(`FLAGS`)!==-1&&(r=e.split(`:`)[1].trim().toLowerCase())}),r?(e&&e(r),t(r)):i.readFile(`/proc/cpuinfo`,(n,i)=>{if(!n){let e=i.toString().split(` `);r=a.getValue(e,`features`,`:`,!0).toLowerCase()}e&&e(r),t(r)})})}catch{e&&e(r),t(r)}(u||d||f)&&n(`export LC_ALL=C; dmidecode -t 4 2>/dev/null; unset LC_ALL`,(n,i)=>{let a=[];if(!n){let e=i.toString().split(` Flags:`);(e.length>1?e[1].split(` Version:`)[0].split(` @@ -202,7 +202,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `).forEach(e=>{let t=e.split(`:`);t[0].toLowerCase().indexOf(`hw.l1icachesize`)!==-1&&(r.l1d=parseInt(t[1].trim())*(t[1].indexOf(`K`)===-1?1:1024)),t[0].toLowerCase().indexOf(`hw.l1dcachesize`)!==-1&&(r.l1i=parseInt(t[1].trim())*(t[1].indexOf(`K`)===-1?1:1024)),t[0].toLowerCase().indexOf(`hw.l2cachesize`)!==-1&&(r.l2=parseInt(t[1].trim())*(t[1].indexOf(`K`)===-1?1:1024)),t[0].toLowerCase().indexOf(`hw.l3cachesize`)!==-1&&(r.l3=parseInt(t[1].trim())*(t[1].indexOf(`K`)===-1?1:1024))}),e&&e(r),t(r)}),p&&(e&&e(r),t(r)),l)try{let n=[];n.push(a.powerShell(`Get-CimInstance Win32_processor | select L2CacheSize, L3CacheSize | fl`)),n.push(a.powerShell(`Get-CimInstance Win32_CacheMemory | select CacheType,InstalledSize,Level | fl`)),Promise.all(n).then(n=>{r=M(n[0],n[1]),e&&e(r),t(r)})}catch{e&&e(r),t(r)}})})}function M(e,t){let n={l1d:null,l1i:null,l2:null,l3:null},r=e.split(`\r `);n.l1d=0,n.l1i=0,n.l2=a.getValue(r,`l2cachesize`,`:`),n.l3=a.getValue(r,`l3cachesize`,`:`),n.l2?n.l2=parseInt(n.l2,10)*1024:n.l2=0,n.l3?n.l3=parseInt(n.l3,10)*1024:n.l3=0;let i=t.split(/\n\s*\n/),o=0,s=0,c=0;return i.forEach(e=>{let t=e.split(`\r `),r=a.getValue(t,`CacheType`),i=a.getValue(t,`Level`),l=a.getValue(t,`InstalledSize`);i===`3`&&r===`3`&&(n.l1i+=parseInt(l,10)*1024),i===`3`&&r===`4`&&(n.l1d+=parseInt(l,10)*1024),i===`3`&&r===`5`&&(o=parseInt(l,10)/2,s=parseInt(l,10)/2),i===`4`&&r===`5`&&(c+=parseInt(l,10)*1024)}),!n.l1i&&!n.l1d&&(n.l1i=o,n.l1d=s),c&&(n.l2=c),n}e.cpuCache=j;function N(){return new Promise(e=>{process.nextTick(()=>{let n=t.loadavg().map(e=>e/a.cores()),i=parseFloat(Math.max.apply(Math,n).toFixed(2)),o={};if(Date.now()-h.ms>=200){h.ms=Date.now();let e=t.cpus().map(e=>(e.times.steal=0,e.times.guest=0,e)),n=0,c=0,l=0,u=0,d=0,f=0,p=0,m=[];if(_=e&&e.length?e.length:0,s)try{let t=r(`cat /proc/stat 2>/dev/null | grep cpu`,a.execOptsLinux).toString().split(` -`);if(t.length>1&&(t.shift(),t.length===e.length))for(let n=0;n=10){let t=parseFloat(r[8])||0,i=parseFloat(r[9])||0;e[n].times.steal=t,e[n].times.guest=i}}}catch{a.noop()}for(let t=0;t<_;t++){let r=e[t].times;n+=r.user,c+=r.sys,l+=r.nice,d+=r.idle,u+=r.irq,f+=r.steal||0,p+=r.guest||0;let i=g&&g[t]&&g[t].totalTick?g[t].totalTick:0,a=g&&g[t]&&g[t].totalLoad?g[t].totalLoad:0,o=g&&g[t]&&g[t].user?g[t].user:0,s=g&&g[t]&&g[t].sys?g[t].sys:0,h=g&&g[t]&&g[t].nice?g[t].nice:0,_=g&&g[t]&&g[t].idle?g[t].idle:0,v=g&&g[t]&&g[t].irq?g[t].irq:0,y=g&&g[t]&&g[t].steal?g[t].steal:0,b=g&&g[t]&&g[t].guest?g[t].guest:0;g[t]=r,g[t].totalTick=g[t].user+g[t].sys+g[t].nice+g[t].irq+g[t].steal+g[t].guest+g[t].idle,g[t].totalLoad=g[t].user+g[t].sys+g[t].nice+g[t].irq+g[t].steal+g[t].guest,g[t].currentTick=g[t].totalTick-i,g[t].load=g[t].totalLoad-a,g[t].loadUser=g[t].user-o,g[t].loadSystem=g[t].sys-s,g[t].loadNice=g[t].nice-h,g[t].loadIdle=g[t].idle-_,g[t].loadIrq=g[t].irq-v,g[t].loadSteal=g[t].steal-y,g[t].loadGuest=g[t].guest-b,m[t]={},m[t].load=g[t].load/g[t].currentTick*100,m[t].loadUser=g[t].loadUser/g[t].currentTick*100,m[t].loadSystem=g[t].loadSystem/g[t].currentTick*100,m[t].loadNice=g[t].loadNice/g[t].currentTick*100,m[t].loadIdle=g[t].loadIdle/g[t].currentTick*100,m[t].loadIrq=g[t].loadIrq/g[t].currentTick*100,m[t].loadSteal=g[t].loadSteal/g[t].currentTick*100,m[t].loadGuest=g[t].loadGuest/g[t].currentTick*100,m[t].rawLoad=g[t].load,m[t].rawLoadUser=g[t].loadUser,m[t].rawLoadSystem=g[t].loadSystem,m[t].rawLoadNice=g[t].loadNice,m[t].rawLoadIdle=g[t].loadIdle,m[t].rawLoadIrq=g[t].loadIrq,m[t].rawLoadSteal=g[t].loadSteal,m[t].rawLoadGuest=g[t].loadGuest}let v=n+c+l+u+f+p+d,y=n+c+l+u+f+p,b=v-h.tick;o={avgLoad:i,currentLoad:(y-h.load)/b*100,currentLoadUser:(n-h.user)/b*100,currentLoadSystem:(c-h.system)/b*100,currentLoadNice:(l-h.nice)/b*100,currentLoadIdle:(d-h.idle)/b*100,currentLoadIrq:(u-h.irq)/b*100,currentLoadSteal:(f-h.steal)/b*100,currentLoadGuest:(p-h.guest)/b*100,rawCurrentLoad:y-h.load,rawCurrentLoadUser:n-h.user,rawCurrentLoadSystem:c-h.system,rawCurrentLoadNice:l-h.nice,rawCurrentLoadIdle:d-h.idle,rawCurrentLoadIrq:u-h.irq,rawCurrentLoadSteal:f-h.steal,rawCurrentLoadGuest:p-h.guest,cpus:m},h={user:n,nice:l,system:c,idle:d,irq:u,steal:f,guest:p,tick:v,load:y,ms:h.ms,currentLoad:o.currentLoad,currentLoadUser:o.currentLoadUser,currentLoadSystem:o.currentLoadSystem,currentLoadNice:o.currentLoadNice,currentLoadIdle:o.currentLoadIdle,currentLoadIrq:o.currentLoadIrq,currentLoadSteal:o.currentLoadSteal,currentLoadGuest:o.currentLoadGuest,rawCurrentLoad:o.rawCurrentLoad,rawCurrentLoadUser:o.rawCurrentLoadUser,rawCurrentLoadSystem:o.rawCurrentLoadSystem,rawCurrentLoadNice:o.rawCurrentLoadNice,rawCurrentLoadIdle:o.rawCurrentLoadIdle,rawCurrentLoadIrq:o.rawCurrentLoadIrq,rawCurrentLoadSteal:o.rawCurrentLoadSteal,rawCurrentLoadGuest:o.rawCurrentLoadGuest}}else{let e=[];for(let t=0;t<_;t++)e[t]={},e[t].load=g[t].load/g[t].currentTick*100,e[t].loadUser=g[t].loadUser/g[t].currentTick*100,e[t].loadSystem=g[t].loadSystem/g[t].currentTick*100,e[t].loadNice=g[t].loadNice/g[t].currentTick*100,e[t].loadIdle=g[t].loadIdle/g[t].currentTick*100,e[t].loadIrq=g[t].loadIrq/g[t].currentTick*100,e[t].rawLoad=g[t].load,e[t].rawLoadUser=g[t].loadUser,e[t].rawLoadSystem=g[t].loadSystem,e[t].rawLoadNice=g[t].loadNice,e[t].rawLoadIdle=g[t].loadIdle,e[t].rawLoadIrq=g[t].loadIrq,e[t].rawLoadSteal=g[t].loadSteal,e[t].rawLoadGuest=g[t].loadGuest;o={avgLoad:i,currentLoad:h.currentLoad,currentLoadUser:h.currentLoadUser,currentLoadSystem:h.currentLoadSystem,currentLoadNice:h.currentLoadNice,currentLoadIdle:h.currentLoadIdle,currentLoadIrq:h.currentLoadIrq,currentLoadSteal:h.currentLoadSteal,currentLoadGuest:h.currentLoadGuest,rawCurrentLoad:h.rawCurrentLoad,rawCurrentLoadUser:h.rawCurrentLoadUser,rawCurrentLoadSystem:h.rawCurrentLoadSystem,rawCurrentLoadNice:h.rawCurrentLoadNice,rawCurrentLoadIdle:h.rawCurrentLoadIdle,rawCurrentLoadIrq:h.rawCurrentLoadIrq,rawCurrentLoadSteal:h.rawCurrentLoadSteal,rawCurrentLoadGuest:h.rawCurrentLoadGuest,cpus:e}}e(o)})})}function P(e){return new Promise(t=>{process.nextTick(()=>{N().then(n=>{e&&e(n),t(n)})})})}e.currentLoad=P;function ee(){return new Promise(e=>{process.nextTick(()=>{let n=t.cpus(),r=0,i=0,a=0,o=0,s=0,c=0;if(n&&n.length){for(let e=0,t=n.length;e{process.nextTick(()=>{ee().then(n=>{e&&e(n),t(n)})})})}e.fullLoad=te})),EO=R((e=>{let t=B(`os`),n=B(`child_process`).exec,r=B(`child_process`).execSync,i=SO(),a=B(`fs`),o=process.platform,s=o===`linux`||o===`android`,c=o===`darwin`,l=o===`win32`,u=o===`freebsd`,d=o===`openbsd`,f=o===`netbsd`,p=o===`sunos`,m={"00CE":`Samsung Electronics Inc`,"014F":`Transcend Information Inc.`,"017A":`Apacer Technology Inc.`,"0198":`HyperX`,"029E":`Corsair`,"02FE":`Elpida`,"04CB":`A-DATA`,"04CD":`G.Skill International Enterprise`,"059B":`Crucial`,1315:`Crucial`,"2C00":`Micron Technology Inc.`,5105:`Qimonda AG i. In.`,"802C":`Micron Technology Inc.`,"80AD":`Hynix Semiconductor Inc.`,"80CE":`Samsung Electronics Inc.`,8551:`Qimonda AG i. In.`,"859B":`Crucial`,AD00:`Hynix Semiconductor Inc.`,CE00:`Samsung Electronics Inc.`,SAMSUNG:`Samsung Electronics Inc.`,HYNIX:`Hynix Semiconductor Inc.`,"G-SKILL":`G-Skill International Enterprise`,"G.SKILL":`G-Skill International Enterprise`,TRANSCEND:`Transcend Information`,APACER:`Apacer Technology Inc`,MICRON:`Micron Technology Inc.`,QIMONDA:`Qimonda AG i. In.`};function h(e){return new Promise(o=>{process.nextTick(()=>{let m={total:t.totalmem(),free:t.freemem(),used:t.totalmem()-t.freemem(),active:t.totalmem()-t.freemem(),available:t.freemem(),buffers:0,cached:0,slab:0,buffcache:0,reclaimable:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(s)try{a.readFile(`/proc/meminfo`,(n,r)=>{if(!n){let e=r.toString().split(` +`);if(t.length>1&&(t.shift(),t.length===e.length))for(let n=0;n=10){let t=parseFloat(r[8])||0,i=parseFloat(r[9])||0;e[n].times.steal=t,e[n].times.guest=i}}}catch{a.noop()}for(let t=0;t<_;t++){let r=e[t].times;n+=r.user,c+=r.sys,l+=r.nice,d+=r.idle,u+=r.irq,f+=r.steal||0,p+=r.guest||0;let i=g&&g[t]&&g[t].totalTick?g[t].totalTick:0,a=g&&g[t]&&g[t].totalLoad?g[t].totalLoad:0,o=g&&g[t]&&g[t].user?g[t].user:0,s=g&&g[t]&&g[t].sys?g[t].sys:0,h=g&&g[t]&&g[t].nice?g[t].nice:0,_=g&&g[t]&&g[t].idle?g[t].idle:0,v=g&&g[t]&&g[t].irq?g[t].irq:0,y=g&&g[t]&&g[t].steal?g[t].steal:0,b=g&&g[t]&&g[t].guest?g[t].guest:0;g[t]=r,g[t].totalTick=g[t].user+g[t].sys+g[t].nice+g[t].irq+g[t].steal+g[t].guest+g[t].idle,g[t].totalLoad=g[t].user+g[t].sys+g[t].nice+g[t].irq+g[t].steal+g[t].guest,g[t].currentTick=g[t].totalTick-i,g[t].load=g[t].totalLoad-a,g[t].loadUser=g[t].user-o,g[t].loadSystem=g[t].sys-s,g[t].loadNice=g[t].nice-h,g[t].loadIdle=g[t].idle-_,g[t].loadIrq=g[t].irq-v,g[t].loadSteal=g[t].steal-y,g[t].loadGuest=g[t].guest-b,m[t]={},m[t].load=g[t].load/g[t].currentTick*100,m[t].loadUser=g[t].loadUser/g[t].currentTick*100,m[t].loadSystem=g[t].loadSystem/g[t].currentTick*100,m[t].loadNice=g[t].loadNice/g[t].currentTick*100,m[t].loadIdle=g[t].loadIdle/g[t].currentTick*100,m[t].loadIrq=g[t].loadIrq/g[t].currentTick*100,m[t].loadSteal=g[t].loadSteal/g[t].currentTick*100,m[t].loadGuest=g[t].loadGuest/g[t].currentTick*100,m[t].rawLoad=g[t].load,m[t].rawLoadUser=g[t].loadUser,m[t].rawLoadSystem=g[t].loadSystem,m[t].rawLoadNice=g[t].loadNice,m[t].rawLoadIdle=g[t].loadIdle,m[t].rawLoadIrq=g[t].loadIrq,m[t].rawLoadSteal=g[t].loadSteal,m[t].rawLoadGuest=g[t].loadGuest}let v=n+c+l+u+f+p+d,y=n+c+l+u+f+p,b=v-h.tick;o={avgLoad:i,currentLoad:(y-h.load)/b*100,currentLoadUser:(n-h.user)/b*100,currentLoadSystem:(c-h.system)/b*100,currentLoadNice:(l-h.nice)/b*100,currentLoadIdle:(d-h.idle)/b*100,currentLoadIrq:(u-h.irq)/b*100,currentLoadSteal:(f-h.steal)/b*100,currentLoadGuest:(p-h.guest)/b*100,rawCurrentLoad:y-h.load,rawCurrentLoadUser:n-h.user,rawCurrentLoadSystem:c-h.system,rawCurrentLoadNice:l-h.nice,rawCurrentLoadIdle:d-h.idle,rawCurrentLoadIrq:u-h.irq,rawCurrentLoadSteal:f-h.steal,rawCurrentLoadGuest:p-h.guest,cpus:m},h={user:n,nice:l,system:c,idle:d,irq:u,steal:f,guest:p,tick:v,load:y,ms:h.ms,currentLoad:o.currentLoad,currentLoadUser:o.currentLoadUser,currentLoadSystem:o.currentLoadSystem,currentLoadNice:o.currentLoadNice,currentLoadIdle:o.currentLoadIdle,currentLoadIrq:o.currentLoadIrq,currentLoadSteal:o.currentLoadSteal,currentLoadGuest:o.currentLoadGuest,rawCurrentLoad:o.rawCurrentLoad,rawCurrentLoadUser:o.rawCurrentLoadUser,rawCurrentLoadSystem:o.rawCurrentLoadSystem,rawCurrentLoadNice:o.rawCurrentLoadNice,rawCurrentLoadIdle:o.rawCurrentLoadIdle,rawCurrentLoadIrq:o.rawCurrentLoadIrq,rawCurrentLoadSteal:o.rawCurrentLoadSteal,rawCurrentLoadGuest:o.rawCurrentLoadGuest}}else{let e=[];for(let t=0;t<_;t++)e[t]={},e[t].load=g[t].load/g[t].currentTick*100,e[t].loadUser=g[t].loadUser/g[t].currentTick*100,e[t].loadSystem=g[t].loadSystem/g[t].currentTick*100,e[t].loadNice=g[t].loadNice/g[t].currentTick*100,e[t].loadIdle=g[t].loadIdle/g[t].currentTick*100,e[t].loadIrq=g[t].loadIrq/g[t].currentTick*100,e[t].rawLoad=g[t].load,e[t].rawLoadUser=g[t].loadUser,e[t].rawLoadSystem=g[t].loadSystem,e[t].rawLoadNice=g[t].loadNice,e[t].rawLoadIdle=g[t].loadIdle,e[t].rawLoadIrq=g[t].loadIrq,e[t].rawLoadSteal=g[t].loadSteal,e[t].rawLoadGuest=g[t].loadGuest;o={avgLoad:i,currentLoad:h.currentLoad,currentLoadUser:h.currentLoadUser,currentLoadSystem:h.currentLoadSystem,currentLoadNice:h.currentLoadNice,currentLoadIdle:h.currentLoadIdle,currentLoadIrq:h.currentLoadIrq,currentLoadSteal:h.currentLoadSteal,currentLoadGuest:h.currentLoadGuest,rawCurrentLoad:h.rawCurrentLoad,rawCurrentLoadUser:h.rawCurrentLoadUser,rawCurrentLoadSystem:h.rawCurrentLoadSystem,rawCurrentLoadNice:h.rawCurrentLoadNice,rawCurrentLoadIdle:h.rawCurrentLoadIdle,rawCurrentLoadIrq:h.rawCurrentLoadIrq,rawCurrentLoadSteal:h.rawCurrentLoadSteal,rawCurrentLoadGuest:h.rawCurrentLoadGuest,cpus:e}}e(o)})})}function P(e){return new Promise(t=>{process.nextTick(()=>{N().then(n=>{e&&e(n),t(n)})})})}e.currentLoad=P;function F(){return new Promise(e=>{process.nextTick(()=>{let n=t.cpus(),r=0,i=0,a=0,o=0,s=0,c=0;if(n&&n.length){for(let e=0,t=n.length;e{process.nextTick(()=>{F().then(n=>{e&&e(n),t(n)})})})}e.fullLoad=ee})),EO=z((e=>{let t=V(`os`),n=V(`child_process`).exec,r=V(`child_process`).execSync,i=SO(),a=V(`fs`),o=process.platform,s=o===`linux`||o===`android`,c=o===`darwin`,l=o===`win32`,u=o===`freebsd`,d=o===`openbsd`,f=o===`netbsd`,p=o===`sunos`,m={"00CE":`Samsung Electronics Inc`,"014F":`Transcend Information Inc.`,"017A":`Apacer Technology Inc.`,"0198":`HyperX`,"029E":`Corsair`,"02FE":`Elpida`,"04CB":`A-DATA`,"04CD":`G.Skill International Enterprise`,"059B":`Crucial`,1315:`Crucial`,"2C00":`Micron Technology Inc.`,5105:`Qimonda AG i. In.`,"802C":`Micron Technology Inc.`,"80AD":`Hynix Semiconductor Inc.`,"80CE":`Samsung Electronics Inc.`,8551:`Qimonda AG i. In.`,"859B":`Crucial`,AD00:`Hynix Semiconductor Inc.`,CE00:`Samsung Electronics Inc.`,SAMSUNG:`Samsung Electronics Inc.`,HYNIX:`Hynix Semiconductor Inc.`,"G-SKILL":`G-Skill International Enterprise`,"G.SKILL":`G-Skill International Enterprise`,TRANSCEND:`Transcend Information`,APACER:`Apacer Technology Inc`,MICRON:`Micron Technology Inc.`,QIMONDA:`Qimonda AG i. In.`};function h(e){return new Promise(o=>{process.nextTick(()=>{let m={total:t.totalmem(),free:t.freemem(),used:t.totalmem()-t.freemem(),active:t.totalmem()-t.freemem(),available:t.freemem(),buffers:0,cached:0,slab:0,buffcache:0,reclaimable:0,swaptotal:0,swapused:0,swapfree:0,writeback:null,dirty:null};if(s)try{a.readFile(`/proc/meminfo`,(n,r)=>{if(!n){let e=r.toString().split(` `);m.total=parseInt(i.getValue(e,`memtotal`),10),m.total=m.total?m.total*1024:t.totalmem(),m.free=parseInt(i.getValue(e,`memfree`),10),m.free=m.free?m.free*1024:t.freemem(),m.used=m.total-m.free,m.buffers=parseInt(i.getValue(e,`buffers`),10),m.buffers=m.buffers?m.buffers*1024:0,m.cached=parseInt(i.getValue(e,`cached`),10),m.cached=m.cached?m.cached*1024:0,m.slab=parseInt(i.getValue(e,`slab`),10),m.slab=m.slab?m.slab*1024:0,m.buffcache=m.buffers+m.cached+m.slab;let n=parseInt(i.getValue(e,`memavailable`),10);m.available=n?n*1024:m.free+m.buffcache,m.active=m.total-m.available,m.swaptotal=parseInt(i.getValue(e,`swaptotal`),10),m.swaptotal=m.swaptotal?m.swaptotal*1024:0,m.swapfree=parseInt(i.getValue(e,`swapfree`),10),m.swapfree=m.swapfree?m.swapfree*1024:0,m.swapused=m.swaptotal-m.swapfree,m.writeback=parseInt(i.getValue(e,`writeback`),10),m.writeback=m.writeback?m.writeback*1024:0,m.dirty=parseInt(i.getValue(e,`dirty`),10),m.dirty=m.dirty?m.dirty*1024:0,m.reclaimable=parseInt(i.getValue(e,`sreclaimable`),10),m.reclaimable=m.reclaimable?m.reclaimable*1024:0}e&&e(m),o(m)})}catch{e&&e(m),o(m)}if(u||d||f)try{n(`/sbin/sysctl hw.realmem hw.physmem vm.stats.vm.v_page_count vm.stats.vm.v_wire_count vm.stats.vm.v_active_count vm.stats.vm.v_inactive_count vm.stats.vm.v_cache_count vm.stats.vm.v_free_count vm.stats.vm.v_page_size`,(t,n)=>{if(!t){let e=n.toString().split(` `),t=parseInt(i.getValue(e,`vm.stats.vm.v_page_size`),10),r=parseInt(i.getValue(e,`vm.stats.vm.v_inactive_count`),10)*t,a=parseInt(i.getValue(e,`vm.stats.vm.v_cache_count`),10)*t;m.total=parseInt(i.getValue(e,`hw.realmem`),10),isNaN(m.total)&&(m.total=parseInt(i.getValue(e,`hw.physmem`),10)),m.free=parseInt(i.getValue(e,`vm.stats.vm.v_free_count`),10)*t,m.buffcache=r+a,m.available=m.buffcache+m.free,m.active=m.total-m.free-m.buffcache,m.swaptotal=0,m.swapfree=0,m.swapused=0}e&&e(m),o(m)})}catch{e&&e(m),o(m)}if(p&&(e&&e(m),o(m)),c){let t=4096;try{t=i.toInt(r(`sysctl -n vm.pagesize`).toString())||t}catch{i.noop()}try{n(`vm_stat 2>/dev/null | egrep "Pages active|Pages inactive"`,(r,a)=>{if(!r){let e=a.toString().split(` `);m.active=(parseInt(i.getValue(e,`Pages active`),10)||0)*t,m.reclaimable=(parseInt(i.getValue(e,`Pages inactive`),10)||0)*t,m.buffcache=m.used-m.active,m.available=m.free+m.buffcache}n(`sysctl -n vm.swapusage 2>/dev/null`,(t,n)=>{if(!t){let e=n.toString().split(` @@ -215,13 +215,13 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `),t=i.getValue(e,`ecc`,`:`,!0).toLowerCase(),r=n.toString().split(` BANK `),o=!0;r.length===1&&(r=n.toString().split(` DIMM`),o=!1),r.shift(),r.forEach(e=>{let n=e.split(` `),r=(o?`BANK `:`DIMM`)+n[0].trim().split(`/`)[0],s=parseInt(i.getValue(n,` Size`));s?m.push({size:s*1024*1024*1024,bank:r,type:i.getValue(n,` Type:`),ecc:t?t===`enabled`:null,clockSpeed:parseInt(i.getValue(n,` Speed:`),10),formFactor:``,manufacturer:a(i.getValue(n,` Manufacturer:`)),partNum:i.getValue(n,` Part Number:`),serialNum:i.getValue(n,` Serial Number:`),voltageConfigured:null,voltageMin:null,voltageMax:null}):m.push({size:0,bank:r,type:`Empty`,ecc:null,clockSpeed:0,formFactor:``,manufacturer:``,partNum:``,serialNum:``,voltageConfigured:null,voltageMin:null,voltageMax:null})})}if(!m.length){let e=n.toString().split(` `),t=parseInt(i.getValue(e,` Memory:`)),r=i.getValue(e,` Type:`),o=i.getValue(e,` Manufacturer:`);t&&r&&m.push({size:t*1024*1024*1024,bank:`0`,type:r,ecc:!1,clockSpeed:null,formFactor:`SOC`,manufacturer:a(o),partNum:``,serialNum:``,voltageConfigured:null,voltageMin:null,voltageMax:null})}e&&e(m),o(m)}),p&&(e&&e(m),o(m)),l){let t=`Unknown|Other|DRAM|Synchronous DRAM|Cache DRAM|EDO|EDRAM|VRAM|SRAM|RAM|ROM|FLASH|EEPROM|FEPROM|EPROM|CDRAM|3DRAM|SDRAM|SGRAM|RDRAM|DDR|DDR2|DDR2 FB-DIMM|Reserved|DDR3|FBD2|DDR4|LPDDR|LPDDR2|LPDDR3|LPDDR4|Logical non-volatile device|HBM|HBM2|DDR5|LPDDR5`.split(`|`),n=`Unknown|Other|SIP|DIP|ZIP|SOJ|Proprietary|SIMM|DIMM|TSOP|PGA|RIMM|SODIMM|SRIMM|SMD|SSMP|QFP|TQFP|SOIC|LCC|PLCC|BGA|FPBGA|LGA`.split(`|`);try{i.powerShell(`Get-CimInstance Win32_PhysicalMemory | select DataWidth,TotalWidth,Capacity,BankLabel,MemoryType,SMBIOSMemoryType,ConfiguredClockSpeed,Speed,FormFactor,Manufacturer,PartNumber,SerialNumber,ConfiguredVoltage,MinVoltage,MaxVoltage,Tag | fl`).then((r,s)=>{if(!s){let e=r.toString().split(/\n\s*\n/);e.shift(),e.forEach(e=>{let r=e.split(`\r -`),o=i.toInt(i.getValue(r,`DataWidth`,`:`)),s=i.toInt(i.getValue(r,`TotalWidth`,`:`)),c=parseInt(i.getValue(r,`Capacity`,`:`),10)||0,l=i.getValue(r,`Tag`,`:`),u=i.splitByNumber(l);c&&m.push({size:c,bank:i.getValue(r,`BankLabel`,`:`)+(u[1]?`/`+u[1]:``),type:t[parseInt(i.getValue(r,`MemoryType`,`:`),10)||parseInt(i.getValue(r,`SMBIOSMemoryType`,`:`),10)],ecc:o&&s?s>o:!1,clockSpeed:parseInt(i.getValue(r,`ConfiguredClockSpeed`,`:`),10)||parseInt(i.getValue(r,`Speed`,`:`),10)||0,formFactor:n[parseInt(i.getValue(r,`FormFactor`,`:`),10)||0],manufacturer:a(i.getValue(r,`Manufacturer`,`:`)),partNum:i.getValue(r,`PartNumber`,`:`),serialNum:i.getValue(r,`SerialNumber`,`:`),voltageConfigured:(parseInt(i.getValue(r,`ConfiguredVoltage`,`:`),10)||0)/1e3,voltageMin:(parseInt(i.getValue(r,`MinVoltage`,`:`),10)||0)/1e3,voltageMax:(parseInt(i.getValue(r,`MaxVoltage`,`:`),10)||0)/1e3})})}e&&e(m),o(m)})}catch{e&&e(m),o(m)}}})})}e.memLayout=g})),DO=R(((e,t)=>{let n=B(`child_process`).exec,r=B(`fs`),i=SO(),a=process.platform,o=a===`linux`||a===`android`,s=a===`darwin`,c=a===`win32`,l=a===`freebsd`,u=a===`openbsd`,d=a===`netbsd`,f=a===`sunos`;function p(e,t,n){let r={},a=parseInt(i.getValue(e,`BatteryStatus`,`:`).trim(),10)||0;if(a>=0){let o=a;r.status=o,r.hasBattery=!0,r.maxCapacity=n||parseInt(i.getValue(e,`DesignCapacity`,`:`)||0),r.designedCapacity=parseInt(i.getValue(e,`DesignCapacity`,`:`)||t),r.voltage=(parseInt(i.getValue(e,`DesignVoltage`,`:`),10)||0)/1e3,r.capacityUnit=`mWh`,r.percent=parseInt(i.getValue(e,`EstimatedChargeRemaining`,`:`),10)||0,r.currentCapacity=parseInt(r.maxCapacity*r.percent/100),r.isCharging=o>=6&&o<=9||o===11||o!==3&&o!==1&&r.percent<100,r.acConnected=r.isCharging||o===2,r.model=i.getValue(e,`DeviceID`,`:`)}else r.status=-1;return r}t.exports=e=>new Promise(t=>{process.nextTick(()=>{let a={hasBattery:!1,cycleCount:0,isCharging:!1,designedCapacity:0,maxCapacity:0,currentCapacity:0,voltage:0,capacityUnit:``,percent:0,timeRemaining:null,acConnected:!0,type:``,model:``,manufacturer:``,serial:``};if(o){let n=``;r.existsSync(`/sys/class/power_supply/BAT1/uevent`)?n=`/sys/class/power_supply/BAT1/`:r.existsSync(`/sys/class/power_supply/BAT0/uevent`)&&(n=`/sys/class/power_supply/BAT0/`);let o=!1,s=``;r.existsSync(`/sys/class/power_supply/AC/online`)?s=`/sys/class/power_supply/AC/online`:r.existsSync(`/sys/class/power_supply/AC0/online`)&&(s=`/sys/class/power_supply/AC0/online`),s&&(o=r.readFileSync(s).toString().trim()===`1`),n?r.readFile(n+`uevent`,(n,r)=>{if(n)e&&e(a),t(a);else{let n=r.toString().split(` +`),o=i.toInt(i.getValue(r,`DataWidth`,`:`)),s=i.toInt(i.getValue(r,`TotalWidth`,`:`)),c=parseInt(i.getValue(r,`Capacity`,`:`),10)||0,l=i.getValue(r,`Tag`,`:`),u=i.splitByNumber(l);c&&m.push({size:c,bank:i.getValue(r,`BankLabel`,`:`)+(u[1]?`/`+u[1]:``),type:t[parseInt(i.getValue(r,`MemoryType`,`:`),10)||parseInt(i.getValue(r,`SMBIOSMemoryType`,`:`),10)],ecc:o&&s?s>o:!1,clockSpeed:parseInt(i.getValue(r,`ConfiguredClockSpeed`,`:`),10)||parseInt(i.getValue(r,`Speed`,`:`),10)||0,formFactor:n[parseInt(i.getValue(r,`FormFactor`,`:`),10)||0],manufacturer:a(i.getValue(r,`Manufacturer`,`:`)),partNum:i.getValue(r,`PartNumber`,`:`),serialNum:i.getValue(r,`SerialNumber`,`:`),voltageConfigured:(parseInt(i.getValue(r,`ConfiguredVoltage`,`:`),10)||0)/1e3,voltageMin:(parseInt(i.getValue(r,`MinVoltage`,`:`),10)||0)/1e3,voltageMax:(parseInt(i.getValue(r,`MaxVoltage`,`:`),10)||0)/1e3})})}e&&e(m),o(m)})}catch{e&&e(m),o(m)}}})})}e.memLayout=g})),DO=z(((e,t)=>{let n=V(`child_process`).exec,r=V(`fs`),i=SO(),a=process.platform,o=a===`linux`||a===`android`,s=a===`darwin`,c=a===`win32`,l=a===`freebsd`,u=a===`openbsd`,d=a===`netbsd`,f=a===`sunos`;function p(e,t,n){let r={},a=parseInt(i.getValue(e,`BatteryStatus`,`:`).trim(),10)||0;if(a>=0){let o=a;r.status=o,r.hasBattery=!0,r.maxCapacity=n||parseInt(i.getValue(e,`DesignCapacity`,`:`)||0),r.designedCapacity=parseInt(i.getValue(e,`DesignCapacity`,`:`)||t),r.voltage=(parseInt(i.getValue(e,`DesignVoltage`,`:`),10)||0)/1e3,r.capacityUnit=`mWh`,r.percent=parseInt(i.getValue(e,`EstimatedChargeRemaining`,`:`),10)||0,r.currentCapacity=parseInt(r.maxCapacity*r.percent/100),r.isCharging=o>=6&&o<=9||o===11||o!==3&&o!==1&&r.percent<100,r.acConnected=r.isCharging||o===2,r.model=i.getValue(e,`DeviceID`,`:`)}else r.status=-1;return r}t.exports=e=>new Promise(t=>{process.nextTick(()=>{let a={hasBattery:!1,cycleCount:0,isCharging:!1,designedCapacity:0,maxCapacity:0,currentCapacity:0,voltage:0,capacityUnit:``,percent:0,timeRemaining:null,acConnected:!0,type:``,model:``,manufacturer:``,serial:``};if(o){let n=``;r.existsSync(`/sys/class/power_supply/BAT1/uevent`)?n=`/sys/class/power_supply/BAT1/`:r.existsSync(`/sys/class/power_supply/BAT0/uevent`)&&(n=`/sys/class/power_supply/BAT0/`);let o=!1,s=``;r.existsSync(`/sys/class/power_supply/AC/online`)?s=`/sys/class/power_supply/AC/online`:r.existsSync(`/sys/class/power_supply/AC0/online`)&&(s=`/sys/class/power_supply/AC0/online`),s&&(o=r.readFileSync(s).toString().trim()===`1`),n?r.readFile(n+`uevent`,(n,r)=>{if(n)e&&e(a),t(a);else{let n=r.toString().split(` `);a.isCharging=i.getValue(n,`POWER_SUPPLY_STATUS`,`=`).toLowerCase()===`charging`,a.acConnected=o||a.isCharging,a.voltage=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_VOLTAGE_NOW`,`=`),10)/1e6,a.capacityUnit=a.voltage?`mWh`:`mAh`,a.cycleCount=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CYCLE_COUNT`,`=`),10),a.maxCapacity=Math.round(parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CHARGE_FULL`,`=`,!0,!0),10)/1e3*(a.voltage||1));let s=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_VOLTAGE_MIN_DESIGN`,`=`),10)/1e6;a.designedCapacity=Math.round(parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CHARGE_FULL_DESIGN`,`=`,!0,!0),10)/1e3*(s||a.voltage||1)),a.currentCapacity=Math.round(parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CHARGE_NOW`,`=`),10)/1e3*(a.voltage||1)),a.maxCapacity||(a.maxCapacity=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_ENERGY_FULL`,`=`,!0,!0),10)/1e3,a.designedCapacity=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_ENERGY_FULL_DESIGN`,`=`,!0,!0),10)/1e3|a.maxCapacity,a.currentCapacity=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_ENERGY_NOW`,`=`),10)/1e3);let c=i.getValue(n,`POWER_SUPPLY_CAPACITY`,`=`),l=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_ENERGY_NOW`,`=`),10),u=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_POWER_NOW`,`=`),10),d=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CURRENT_NOW`,`=`),10),f=parseInt(`0`+i.getValue(n,`POWER_SUPPLY_CHARGE_NOW`,`=`),10);a.percent=parseInt(`0`+c,10),a.maxCapacity&&a.currentCapacity&&(a.hasBattery=!0,c||(a.percent=100*a.currentCapacity/a.maxCapacity)),a.isCharging&&(a.hasBattery=!0),l&&u?a.timeRemaining=Math.floor(l/u*60):d&&f?a.timeRemaining=Math.floor(f/d*60):d&&a.currentCapacity&&(a.timeRemaining=Math.floor(a.currentCapacity/d*60)),a.type=i.getValue(n,`POWER_SUPPLY_TECHNOLOGY`,`=`),a.model=i.getValue(n,`POWER_SUPPLY_MODEL_NAME`,`=`),a.manufacturer=i.getValue(n,`POWER_SUPPLY_MANUFACTURER`,`=`),a.serial=i.getValue(n,`POWER_SUPPLY_SERIAL_NUMBER`,`=`),e&&e(a),t(a)}}):(e&&e(a),t(a))}if((l||u||d)&&n(`sysctl -i hw.acpi.battery hw.acpi.acline`,(n,r)=>{let o=r.toString().split(` `),s=parseInt(`0`+i.getValue(o,`hw.acpi.battery.units`),10),c=parseInt(`0`+i.getValue(o,`hw.acpi.battery.life`),10);a.hasBattery=s>0,a.cycleCount=null,a.isCharging=i.getValue(o,`hw.acpi.acline`)!==`1`,a.acConnected=a.isCharging,a.maxCapacity=null,a.currentCapacity=null,a.capacityUnit=`unknown`,a.percent=s?c:null,e&&e(a),t(a)}),s&&n(`ioreg -n AppleSmartBattery -r | egrep "CycleCount|IsCharging|DesignCapacity|MaxCapacity|CurrentCapacity|DeviceName|BatterySerialNumber|Serial|TimeRemaining|Voltage"; pmset -g batt | grep %`,(n,r)=>{if(r){let e=r.toString().replace(/ +/g,``).replace(/"+/g,``).replace(/-/g,``).split(` `);a.cycleCount=parseInt(`0`+i.getValue(e,`cyclecount`,`=`),10),a.voltage=parseInt(`0`+i.getValue(e,`voltage`,`=`),10)/1e3,a.capacityUnit=a.voltage?`mWh`:`mAh`,a.maxCapacity=Math.round(parseInt(`0`+i.getValue(e,`applerawmaxcapacity`,`=`),10)*(a.voltage||1)),a.currentCapacity=Math.round(parseInt(`0`+i.getValue(e,`applerawcurrentcapacity`,`=`),10)*(a.voltage||1)),a.designedCapacity=Math.round(parseInt(`0`+i.getValue(e,`DesignCapacity`,`=`),10)*(a.voltage||1)),a.manufacturer=`Apple`,a.serial=i.getValue(e,`BatterySerialNumber`,`=`)||i.getValue(e,`Serial`,`=`),a.model=i.getValue(e,`DeviceName`,`=`);let t=null,n=i.getValue(e,`internal`,`Battery`).split(`;`);if(n&&n[0]){let e=n[0].split(` `);e&&e[1]&&(t=parseFloat(e[1].trim().replace(/%/g,``)))}n&&n[1]?(a.isCharging=n[1].trim()===`charging`,a.acConnected=n[1].trim()!==`discharging`):(a.isCharging=i.getValue(e,`ischarging`,`=`).toLowerCase()===`yes`,a.acConnected=a.isCharging),a.maxCapacity&&a.currentCapacity&&(a.hasBattery=!0,a.type=`Li-ion`,a.percent=t===null?Math.round(100*a.currentCapacity/a.maxCapacity):t,a.isCharging||(a.timeRemaining=parseInt(`0`+i.getValue(e,`TimeRemaining`,`=`),10)))}e&&e(a),t(a)}),f&&(e&&e(a),t(a)),c)try{let n=[];n.push(i.powerShell(`Get-CimInstance Win32_Battery | select BatteryStatus, DesignCapacity, DesignVoltage, EstimatedChargeRemaining, DeviceID | fl`)),n.push(i.powerShell(`(Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity`)),n.push(i.powerShell(`(Get-CimInstance -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity`)),i.promiseAll(n).then(n=>{if(n){let e=n.results[0].split(/\n\s*\n/),t=[],r=e=>/\S/.test(e);for(let n=0;ne),s=n.results[2].split(`\r `).filter(e=>e);if(t.length){let e=!1,n=[];for(let r=0;r=r+1&&o[r]?i.toInt(o[r]):0,s&&s.length>=r+1&&s[r]?i.toInt(s[r]):0);!e&&c.status>0&&c.status!==10?(a.hasBattery=c.hasBattery,a.maxCapacity=c.maxCapacity,a.designedCapacity=c.designedCapacity,a.voltage=c.voltage,a.capacityUnit=c.capacityUnit,a.percent=c.percent,a.currentCapacity=c.currentCapacity,a.isCharging=c.isCharging,a.acConnected=c.acConnected,a.model=c.model,e=!0):c.status!==-1&&n.push({hasBattery:c.hasBattery,maxCapacity:c.maxCapacity,designedCapacity:c.designedCapacity,voltage:c.voltage,capacityUnit:c.capacityUnit,percent:c.percent,currentCapacity:c.currentCapacity,isCharging:c.isCharging,timeRemaining:null,acConnected:c.acConnected,model:c.model,type:``,manufacturer:``,serial:``})}!e&&n.length&&(a=n[0],n.shift()),n.length&&(a.additionalBatteries=n)}}e&&e(a),t(a)})}catch{e&&e(a),t(a)}})})})),OO=R((e=>{let t=B(`fs`),n=B(`path`),r=B(`child_process`).exec,i=B(`child_process`).execSync,a=SO(),o=process.platform,s=``,c=o===`linux`||o===`android`,l=o===`darwin`,u=o===`win32`,d=o===`freebsd`,f=o===`openbsd`,p=o===`netbsd`,m=o===`sunos`,h=0,g=0,_=0,v=0,y={"-2":`UNINITIALIZED`,"-1":`OTHER`,0:`HD15`,1:`SVIDEO`,2:`Composite video`,3:`Component video`,4:`DVI`,5:`HDMI`,6:`LVDS`,8:`D_JPN`,9:`SDI`,10:`DP`,11:`DP embedded`,12:`UDI`,13:`UDI embedded`,14:`SDTVDONGLE`,15:`MIRACAST`,2147483648:`INTERNAL`};function b(e){let t=[{pattern:`^LG.+`,manufacturer:`LG`},{pattern:`^BENQ.+`,manufacturer:`BenQ`},{pattern:`^ASUS.+`,manufacturer:`Asus`},{pattern:`^DELL.+`,manufacturer:`Dell`},{pattern:`^SAMSUNG.+`,manufacturer:`Samsung`},{pattern:`^VIEWSON.+`,manufacturer:`ViewSonic`},{pattern:`^SONY.+`,manufacturer:`Sony`},{pattern:`^ACER.+`,manufacturer:`Acer`},{pattern:`^AOC.+`,manufacturer:`AOC Monitors`},{pattern:`^HP.+`,manufacturer:`HP`},{pattern:`^EIZO.?`,manufacturer:`Eizo`},{pattern:`^PHILIPS.?`,manufacturer:`Philips`},{pattern:`^IIYAMA.?`,manufacturer:`Iiyama`},{pattern:`^SHARP.?`,manufacturer:`Sharp`},{pattern:`^NEC.?`,manufacturer:`NEC`},{pattern:`^LENOVO.?`,manufacturer:`Lenovo`},{pattern:`COMPAQ.?`,manufacturer:`Compaq`},{pattern:`APPLE.?`,manufacturer:`Apple`},{pattern:`INTEL.?`,manufacturer:`Intel`},{pattern:`AMD.?`,manufacturer:`AMD`},{pattern:`NVIDIA.?`,manufacturer:`NVDIA`}],n=``;return e&&(e=e.toUpperCase(),t.forEach(t=>{RegExp(t.pattern).test(e)&&(n=t.manufacturer)})),n}function x(e){return{610:`Apple`,"1e6d":`LG`,"10ac":`DELL`,"4dd9":`Sony`,"38a3":`NEC`}[e]||``}function S(e){let t=``;return e=(e||``).toLowerCase(),e.indexOf(`apple`)>=0?t=`0x05ac`:e.indexOf(`nvidia`)>=0?t=`0x10de`:e.indexOf(`intel`)>=0?t=`0x8086`:(e.indexOf(`ati`)>=0||e.indexOf(`amd`)>=0)&&(t=`0x1002`),t}function C(e){return{spdisplays_mtlgpufamilymac1:`mac1`,spdisplays_mtlgpufamilymac2:`mac2`,spdisplays_mtlgpufamilyapple1:`apple1`,spdisplays_mtlgpufamilyapple2:`apple2`,spdisplays_mtlgpufamilyapple3:`apple3`,spdisplays_mtlgpufamilyapple4:`apple4`,spdisplays_mtlgpufamilyapple5:`apple5`,spdisplays_mtlgpufamilyapple6:`apple6`,spdisplays_mtlgpufamilyapple7:`apple7`,spdisplays_metalfeaturesetfamily11:`family1_v1`,spdisplays_metalfeaturesetfamily12:`family1_v2`,spdisplays_metalfeaturesetfamily13:`family1_v3`,spdisplays_metalfeaturesetfamily14:`family1_v4`,spdisplays_metalfeaturesetfamily21:`family2_v1`}[e]||``}function w(e){function o(e){let t={controllers:[],displays:[]};try{return e.forEach(e=>{let n=(e.sppci_bus||``).indexOf(`builtin`)>-1?`Built-In`:(e.sppci_bus||``).indexOf(`pcie`)>-1?`PCIe`:``,r=(parseInt(e.spdisplays_vram||``,10)||0)*((e.spdisplays_vram||``).indexOf(`GB`)>-1?1024:1),i=(parseInt(e.spdisplays_vram_shared||``,10)||0)*((e.spdisplays_vram_shared||``).indexOf(`GB`)>-1?1024:1),a=C(e.spdisplays_metal||e.spdisplays_metalfamily||``);t.controllers.push({vendor:b(e.spdisplays_vendor||``)||e.spdisplays_vendor||``,model:e.sppci_model||``,bus:n,vramDynamic:n===`Built-In`,vram:r||i||null,deviceId:e[`spdisplays_device-id`]||``,vendorId:e[`spdisplays_vendor-id`]||S((e.spdisplays_vendor||``)+(e.sppci_model||``)),external:e.sppci_device_type===`spdisplays_egpu`,cores:e.sppci_cores||null,metalVersion:a}),e.spdisplays_ndrvs&&e.spdisplays_ndrvs.length&&e.spdisplays_ndrvs.forEach(e=>{let n=e.spdisplays_connection_type||``,r=(e._spdisplays_resolution||``).split(`@`),i=r[0].split(`x`),a=(e._spdisplays_pixels||``).split(`x`),o=e.spdisplays_depth||``,s=e[`_spdisplays_display-serial-number`]||e[`_spdisplays_display-serial-number2`]||null;t.displays.push({vendor:x(e[`_spdisplays_display-vendor-id`]||``)||b(e._name||``),vendorId:e[`_spdisplays_display-vendor-id`]||``,model:e._name||``,productionYear:e[`_spdisplays_display-year`]||null,serial:s===`0`?null:s,displayId:e._spdisplays_displayID||null,main:e.spdisplays_main?e.spdisplays_main===`spdisplays_yes`:!1,builtin:(e.spdisplays_display_type||``).indexOf(`built-in`)>-1,connection:n.indexOf(`_internal`)>-1?`Internal`:n.indexOf(`_displayport`)>-1?`Display Port`:n.indexOf(`_hdmi`)>-1?`HDMI`:null,sizeX:null,sizeY:null,pixelDepth:o===`CGSThirtyBitColor`?30:o===`CGSThirtytwoBitColor`?32:o===`CGSTwentyfourBitColor`?24:null,resolutionX:a.length>1?parseInt(a[0],10):null,resolutionY:a.length>1?parseInt(a[1],10):null,currentResX:i.length>1?parseInt(i[0],10):null,currentResY:i.length>1?parseInt(i[1],10):null,positionX:0,positionY:0,currentRefreshRate:r.length>1?parseInt(r[1],10):null})})}),t}catch{return t}}function w(e){let t=[],n={vendor:``,subVendor:``,model:``,bus:``,busAddress:``,vram:null,vramDynamic:!1,pciID:``},r=!1,o=[];try{o=i(`export LC_ALL=C; dmidecode -t 9 2>/dev/null; unset LC_ALL | grep "Bus Address: "`,a.execOptsLinux).toString().split(` +`),o&&o.length>=r+1&&o[r]?i.toInt(o[r]):0,s&&s.length>=r+1&&s[r]?i.toInt(s[r]):0);!e&&c.status>0&&c.status!==10?(a.hasBattery=c.hasBattery,a.maxCapacity=c.maxCapacity,a.designedCapacity=c.designedCapacity,a.voltage=c.voltage,a.capacityUnit=c.capacityUnit,a.percent=c.percent,a.currentCapacity=c.currentCapacity,a.isCharging=c.isCharging,a.acConnected=c.acConnected,a.model=c.model,e=!0):c.status!==-1&&n.push({hasBattery:c.hasBattery,maxCapacity:c.maxCapacity,designedCapacity:c.designedCapacity,voltage:c.voltage,capacityUnit:c.capacityUnit,percent:c.percent,currentCapacity:c.currentCapacity,isCharging:c.isCharging,timeRemaining:null,acConnected:c.acConnected,model:c.model,type:``,manufacturer:``,serial:``})}!e&&n.length&&(a=n[0],n.shift()),n.length&&(a.additionalBatteries=n)}}e&&e(a),t(a)})}catch{e&&e(a),t(a)}})})})),OO=z((e=>{let t=V(`fs`),n=V(`path`),r=V(`child_process`).exec,i=V(`child_process`).execSync,a=SO(),o=process.platform,s=``,c=o===`linux`||o===`android`,l=o===`darwin`,u=o===`win32`,d=o===`freebsd`,f=o===`openbsd`,p=o===`netbsd`,m=o===`sunos`,h=0,g=0,_=0,v=0,y={"-2":`UNINITIALIZED`,"-1":`OTHER`,0:`HD15`,1:`SVIDEO`,2:`Composite video`,3:`Component video`,4:`DVI`,5:`HDMI`,6:`LVDS`,8:`D_JPN`,9:`SDI`,10:`DP`,11:`DP embedded`,12:`UDI`,13:`UDI embedded`,14:`SDTVDONGLE`,15:`MIRACAST`,2147483648:`INTERNAL`};function b(e){let t=[{pattern:`^LG.+`,manufacturer:`LG`},{pattern:`^BENQ.+`,manufacturer:`BenQ`},{pattern:`^ASUS.+`,manufacturer:`Asus`},{pattern:`^DELL.+`,manufacturer:`Dell`},{pattern:`^SAMSUNG.+`,manufacturer:`Samsung`},{pattern:`^VIEWSON.+`,manufacturer:`ViewSonic`},{pattern:`^SONY.+`,manufacturer:`Sony`},{pattern:`^ACER.+`,manufacturer:`Acer`},{pattern:`^AOC.+`,manufacturer:`AOC Monitors`},{pattern:`^HP.+`,manufacturer:`HP`},{pattern:`^EIZO.?`,manufacturer:`Eizo`},{pattern:`^PHILIPS.?`,manufacturer:`Philips`},{pattern:`^IIYAMA.?`,manufacturer:`Iiyama`},{pattern:`^SHARP.?`,manufacturer:`Sharp`},{pattern:`^NEC.?`,manufacturer:`NEC`},{pattern:`^LENOVO.?`,manufacturer:`Lenovo`},{pattern:`COMPAQ.?`,manufacturer:`Compaq`},{pattern:`APPLE.?`,manufacturer:`Apple`},{pattern:`INTEL.?`,manufacturer:`Intel`},{pattern:`AMD.?`,manufacturer:`AMD`},{pattern:`NVIDIA.?`,manufacturer:`NVDIA`}],n=``;return e&&(e=e.toUpperCase(),t.forEach(t=>{RegExp(t.pattern).test(e)&&(n=t.manufacturer)})),n}function x(e){return{610:`Apple`,"1e6d":`LG`,"10ac":`DELL`,"4dd9":`Sony`,"38a3":`NEC`}[e]||``}function S(e){let t=``;return e=(e||``).toLowerCase(),e.indexOf(`apple`)>=0?t=`0x05ac`:e.indexOf(`nvidia`)>=0?t=`0x10de`:e.indexOf(`intel`)>=0?t=`0x8086`:(e.indexOf(`ati`)>=0||e.indexOf(`amd`)>=0)&&(t=`0x1002`),t}function C(e){return{spdisplays_mtlgpufamilymac1:`mac1`,spdisplays_mtlgpufamilymac2:`mac2`,spdisplays_mtlgpufamilyapple1:`apple1`,spdisplays_mtlgpufamilyapple2:`apple2`,spdisplays_mtlgpufamilyapple3:`apple3`,spdisplays_mtlgpufamilyapple4:`apple4`,spdisplays_mtlgpufamilyapple5:`apple5`,spdisplays_mtlgpufamilyapple6:`apple6`,spdisplays_mtlgpufamilyapple7:`apple7`,spdisplays_metalfeaturesetfamily11:`family1_v1`,spdisplays_metalfeaturesetfamily12:`family1_v2`,spdisplays_metalfeaturesetfamily13:`family1_v3`,spdisplays_metalfeaturesetfamily14:`family1_v4`,spdisplays_metalfeaturesetfamily21:`family2_v1`}[e]||``}function w(e){function o(e){let t={controllers:[],displays:[]};try{return e.forEach(e=>{let n=(e.sppci_bus||``).indexOf(`builtin`)>-1?`Built-In`:(e.sppci_bus||``).indexOf(`pcie`)>-1?`PCIe`:``,r=(parseInt(e.spdisplays_vram||``,10)||0)*((e.spdisplays_vram||``).indexOf(`GB`)>-1?1024:1),i=(parseInt(e.spdisplays_vram_shared||``,10)||0)*((e.spdisplays_vram_shared||``).indexOf(`GB`)>-1?1024:1),a=C(e.spdisplays_metal||e.spdisplays_metalfamily||``);t.controllers.push({vendor:b(e.spdisplays_vendor||``)||e.spdisplays_vendor||``,model:e.sppci_model||``,bus:n,vramDynamic:n===`Built-In`,vram:r||i||null,deviceId:e[`spdisplays_device-id`]||``,vendorId:e[`spdisplays_vendor-id`]||S((e.spdisplays_vendor||``)+(e.sppci_model||``)),external:e.sppci_device_type===`spdisplays_egpu`,cores:e.sppci_cores||null,metalVersion:a}),e.spdisplays_ndrvs&&e.spdisplays_ndrvs.length&&e.spdisplays_ndrvs.forEach(e=>{let n=e.spdisplays_connection_type||``,r=(e._spdisplays_resolution||``).split(`@`),i=r[0].split(`x`),a=(e._spdisplays_pixels||``).split(`x`),o=e.spdisplays_depth||``,s=e[`_spdisplays_display-serial-number`]||e[`_spdisplays_display-serial-number2`]||null;t.displays.push({vendor:x(e[`_spdisplays_display-vendor-id`]||``)||b(e._name||``),vendorId:e[`_spdisplays_display-vendor-id`]||``,model:e._name||``,productionYear:e[`_spdisplays_display-year`]||null,serial:s===`0`?null:s,displayId:e._spdisplays_displayID||null,main:e.spdisplays_main?e.spdisplays_main===`spdisplays_yes`:!1,builtin:(e.spdisplays_display_type||``).indexOf(`built-in`)>-1,connection:n.indexOf(`_internal`)>-1?`Internal`:n.indexOf(`_displayport`)>-1?`Display Port`:n.indexOf(`_hdmi`)>-1?`HDMI`:null,sizeX:null,sizeY:null,pixelDepth:o===`CGSThirtyBitColor`?30:o===`CGSThirtytwoBitColor`?32:o===`CGSTwentyfourBitColor`?24:null,resolutionX:a.length>1?parseInt(a[0],10):null,resolutionY:a.length>1?parseInt(a[1],10):null,currentResX:i.length>1?parseInt(i[0],10):null,currentResY:i.length>1?parseInt(i[1],10):null,positionX:0,positionY:0,currentRefreshRate:r.length>1?parseInt(r[1],10):null})})}),t}catch{return t}}function w(e){let t=[],n={vendor:``,subVendor:``,model:``,bus:``,busAddress:``,vram:null,vramDynamic:!1,pciID:``},r=!1,o=[];try{o=i(`export LC_ALL=C; dmidecode -t 9 2>/dev/null; unset LC_ALL | grep "Bus Address: "`,a.execOptsLinux).toString().split(` `);for(let e=0;ee!=null&&e)}catch{a.noop()}let s=1;return e.forEach(i=>{let a=``;if(s0&&(a=a.split(`:`)[1])),i.trim()!==``){if(i[0]!==` `&&i[0]!==` `){let e=o.indexOf(i.split(` `)[0])>=0,s=i.toLowerCase().indexOf(` vga `),c=i.toLowerCase().indexOf(`3d controller`);if(s!==-1||c!==-1){c!==-1&&s===-1&&(s=c),(n.vendor||n.model||n.bus||n.vram!==null||n.vramDynamic)&&(t.push(n),n={vendor:``,model:``,bus:``,busAddress:``,vram:null,vramDynamic:!1});let l=i.split(` `)[0];/[\da-fA-F]{2}:[\da-fA-F]{2}\.[\da-fA-F]/.test(l)&&(n.busAddress=l),r=!0;let u=i.search(/\[[0-9a-f]{4}:[0-9a-f]{4}]|$/),d=i.substr(s,u-s).split(`:`);if(n.busAddress=i.substr(0,s).trim(),d.length>1&&(d[1]=d[1].trim(),d[1].toLowerCase().indexOf(`corporation`)>=0?(n.vendor=d[1].substr(0,d[1].toLowerCase().indexOf(`corporation`)+11).trim(),n.model=d[1].substr(d[1].toLowerCase().indexOf(`corporation`)+11,200).split(`(`)[0].trim(),n.bus=o.length>0&&e?`PCIe`:`Onboard`,n.vram=null,n.vramDynamic=!1):d[1].toLowerCase().indexOf(` inc.`)>=0?((d[1].match(/]/g)||[]).length>1?(n.vendor=d[1].substr(0,d[1].toLowerCase().indexOf(`]`)+1).trim(),n.model=d[1].substr(d[1].toLowerCase().indexOf(`]`)+1,200).trim().split(`(`)[0].trim()):(n.vendor=d[1].substr(0,d[1].toLowerCase().indexOf(` inc.`)+5).trim(),n.model=d[1].substr(d[1].toLowerCase().indexOf(` inc.`)+5,200).trim().split(`(`)[0].trim()),n.bus=o.length>0&&e?`PCIe`:`Onboard`,n.vram=null,n.vramDynamic=!1):d[1].toLowerCase().indexOf(` ltd.`)>=0&&((d[1].match(/]/g)||[]).length>1?(n.vendor=d[1].substr(0,d[1].toLowerCase().indexOf(`]`)+1).trim(),n.model=d[1].substr(d[1].toLowerCase().indexOf(`]`)+1,200).trim().split(`(`)[0].trim()):(n.vendor=d[1].substr(0,d[1].toLowerCase().indexOf(` ltd.`)+5).trim(),n.model=d[1].substr(d[1].toLowerCase().indexOf(` ltd.`)+5,200).trim().split(`(`)[0].trim())),n.model&&a.indexOf(n.model)!==-1)){let e=a.split(n.model)[0].trim();e&&(n.subVendor=e)}}else r=!1}if(r){let e=i.split(`:`);if(e.length>1&&e[0].replace(/ +/g,``).toLowerCase().indexOf(`devicename`)!==-1&&e[1].toLowerCase().indexOf(`onboard`)!==-1&&(n.bus=`Onboard`),e.length>1&&e[0].replace(/ +/g,``).toLowerCase().indexOf(`region`)!==-1&&e[1].toLowerCase().indexOf(`memory`)!==-1){let t=e[1].split(`=`);t.length>1&&(n.vram=parseInt(t[1]))}}}s++}),(n.vendor||n.model||n.bus||n.busAddress||n.vram!==null||n.vramDynamic)&&t.push(n),t}function T(e,t){let n=/\[([^\]]+)\]\s+(\w+)\s+(.*)/,r=t.reduce((e,t)=>{let r=n.exec(t.trim());return r&&(e[r[1]]||(e[r[1]]={}),e[r[1]][r[2]]=r[3]),e},{});for(let t in r){let n=r[t];if(n.CL_DEVICE_TYPE===`CL_DEVICE_TYPE_GPU`){let t;if(n.CL_DEVICE_TOPOLOGY_AMD){let e=n.CL_DEVICE_TOPOLOGY_AMD.match(/[a-zA-Z0-9]+:\d+\.\d+/);e&&(t=e[0])}else if(n.CL_DEVICE_PCI_BUS_ID_NV&&n.CL_DEVICE_PCI_SLOT_ID_NV){let e=parseInt(n.CL_DEVICE_PCI_BUS_ID_NV),r=parseInt(n.CL_DEVICE_PCI_SLOT_ID_NV);if(!isNaN(e)&&!isNaN(r)){let n=e&255,i=r>>3&255,a=r&7;t=`${n.toString().padStart(2,`0`)}:${i.toString().padStart(2,`0`)}.${a}`}}if(t){let r=e.find(e=>e.busAddress===t);r||(r={vendor:``,model:``,bus:``,busAddress:t,vram:null,vramDynamic:!1},e.push(r)),r.vendor=n.CL_DEVICE_VENDOR,n.CL_DEVICE_BOARD_NAME_AMD?r.model=n.CL_DEVICE_BOARD_NAME_AMD:r.model=n.CL_DEVICE_NAME;let i=parseInt(n.CL_DEVICE_GLOBAL_MEM_SIZE);isNaN(i)||(r.vram=Math.round(i/1024/1024))}}}return e}function E(){if(s)return s;if(u)try{let e=n.join(a.WINDIR,`System32`,`DriverStore`,`FileRepository`),r=t.readdirSync(e,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(r=>{let i=n.join(e,r.name,`nvidia-smi.exe`);try{return{path:i,ctime:t.statSync(i).ctimeMs}}catch{return null}}).filter(Boolean);r.length>0&&(s=r.reduce((e,t)=>t.ctime>e.ctime?t:e).path)}catch{a.noop()}else c&&(s=`nvidia-smi`);return s}function D(e){let t=E();if(e||=a.execOptsWin,t){let n=`"${t}" --query-gpu=driver_version,pci.sub_device_id,name,pci.bus_id,fan.speed,memory.total,memory.used,memory.free,utilization.gpu,utilization.memory,temperature.gpu,temperature.memory,power.draw,power.limit,clocks.gr,clocks.mem --format=csv,noheader,nounits`;c&&(e.stdio=[`pipe`,`pipe`,`ignore`]);try{return i(n+(c?` 2>/dev/null`:``)+(u?` 2> nul`:``),e).toString()}catch{a.noop()}}return``}function O(){function e(e){return[null,void 0].includes(e)?e:parseFloat(e)}let t=D();if(!t)return[];let n=t.split(` `).filter(Boolean).map(t=>{let n=t.split(`, `).map(e=>e.includes(`N/A`)?void 0:e);return n.length===16?{driverVersion:n[0],subDeviceId:n[1],name:n[2],pciBus:n[3],fanSpeed:e(n[4]),memoryTotal:e(n[5]),memoryUsed:e(n[6]),memoryFree:e(n[7]),utilizationGpu:e(n[8]),utilizationMemory:e(n[9]),temperatureGpu:e(n[10]),temperatureMemory:e(n[11]),powerDraw:e(n[12]),powerLimit:e(n[13]),clockCore:e(n[14]),clockMemory:e(n[15])}:{}});return n=n.filter(e=>`pciBus`in e),n}function k(e,t){return t.driverVersion&&(e.driverVersion=t.driverVersion),t.subDeviceId&&(e.subDeviceId=t.subDeviceId),t.name&&(e.name=t.name),t.pciBus&&(e.pciBus=t.pciBus),t.fanSpeed&&(e.fanSpeed=t.fanSpeed),t.memoryTotal&&(e.memoryTotal=t.memoryTotal,e.vram=t.memoryTotal,e.vramDynamic=!1),t.memoryUsed&&(e.memoryUsed=t.memoryUsed),t.memoryFree&&(e.memoryFree=t.memoryFree),t.utilizationGpu&&(e.utilizationGpu=t.utilizationGpu),t.utilizationMemory&&(e.utilizationMemory=t.utilizationMemory),t.temperatureGpu&&(e.temperatureGpu=t.temperatureGpu),t.temperatureMemory&&(e.temperatureMemory=t.temperatureMemory),t.powerDraw&&(e.powerDraw=t.powerDraw),t.powerLimit&&(e.powerLimit=t.powerLimit),t.clockCore&&(e.clockCore=t.clockCore),t.clockMemory&&(e.clockMemory=t.clockMemory),e}function A(e){let t={vendor:``,model:``,deviceName:``,main:!1,builtin:!1,connection:``,sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},n=108;if(e.substr(n,6)===`000000`&&(n+=36),e.substr(n,6)===`000000`&&(n+=36),e.substr(n,6)===`000000`&&(n+=36),e.substr(n,6)===`000000`&&(n+=36),t.resolutionX=parseInt(`0x0`+e.substr(n+8,1)+e.substr(n+4,2)),t.resolutionY=parseInt(`0x0`+e.substr(n+14,1)+e.substr(n+10,2)),t.sizeX=parseInt(`0x0`+e.substr(n+28,1)+e.substr(n+24,2)),t.sizeY=parseInt(`0x0`+e.substr(n+29,1)+e.substr(n+26,2)),n=e.indexOf(`000000fc00`),n>=0){let r=e.substr(n+10,26);r.indexOf(`0a`)!==-1&&(r=r.substr(0,r.indexOf(`0a`)));try{r.length>2&&(t.model=r.match(/.{1,2}/g).map(e=>String.fromCharCode(parseInt(e,16))).join(``))}catch{a.noop()}}else t.model=``;return t}function j(e,t){let n=[],r={vendor:``,model:``,deviceName:``,main:!1,builtin:!1,connection:``,sizeX:null,sizeY:null,pixelDepth:null,resolutionX:null,resolutionY:null,currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null},i=!1,o=!1,s=``,c=0;for(let l=1;l=0,r.builtin=t[0].toLowerCase().indexOf(`edp`)>=0}if(i)if(e[l].search(/\S|$/)>c)s+=e[l].toLowerCase().trim();else{let e=A(s);r.vendor=e.vendor,r.model=e.model,r.resolutionX=e.resolutionX,r.resolutionY=e.resolutionY,r.sizeX=e.sizeX,r.sizeY=e.sizeY,r.pixelDepth=t,i=!1}if(e[l].toLowerCase().indexOf(`edid:`)>=0&&(i=!0,c=e[l].search(/\S|$/)),e[l].toLowerCase().indexOf(`*current`)>=0){let t=e[l].split(`(`);if(t&&t.length>1&&t[0].indexOf(`x`)>=0){let e=t[0].trim().split(`x`);r.currentResX=a.toInt(e[0]),r.currentResY=a.toInt(e[1])}o=!0}if(o&&e[l].toLowerCase().indexOf(`clock`)>=0&&e[l].toLowerCase().indexOf(`hz`)>=0&&e[l].toLowerCase().indexOf(`v: height`)>=0){let t=e[l].split(`clock`);t&&t.length>1&&t[1].toLowerCase().indexOf(`hz`)>=0&&(r.currentRefreshRate=a.toInt(t[1])),o=!1}}return(r.model||r.main||r.builtin||r.connection||r.sizeX!==null||r.pixelDepth!==null||r.resolutionX!==null)&&n.push(r),n}return new Promise(t=>{process.nextTick(()=>{let n={controllers:[],displays:[]};if(l&&r(`system_profiler -xml -detailLevel full SPDisplaysDataType`,(r,s)=>{if(!r){try{let e=s.toString();n=o(a.plistParser(e)[0]._items)}catch{a.noop()}try{s=i(`defaults read /Library/Preferences/com.apple.windowserver.plist 2>/dev/null;defaults read /Library/Preferences/com.apple.windowserver.displays.plist 2>/dev/null; echo ""`,{maxBuffer:1024*102400});let e=(s||``).toString(),t=a.plistReader(e);if(t.DisplayAnyUserSets&&t.DisplayAnyUserSets.Configs&&t.DisplayAnyUserSets.Configs[0]&&t.DisplayAnyUserSets.Configs[0].DisplayConfig){let e=t.DisplayAnyUserSets.Configs[0].DisplayConfig,r=0;e.forEach(e=>{e.CurrentInfo&&e.CurrentInfo.OriginX!==void 0&&n.displays&&n.displays[r]&&(n.displays[r].positionX=e.CurrentInfo.OriginX),e.CurrentInfo&&e.CurrentInfo.OriginY!==void 0&&n.displays&&n.displays[r]&&(n.displays[r].positionY=e.CurrentInfo.OriginY),r++})}if(t.DisplayAnyUserSets&&t.DisplayAnyUserSets.length>0&&t.DisplayAnyUserSets[0].length>0&&t.DisplayAnyUserSets[0][0].DisplayID){let e=t.DisplayAnyUserSets[0],r=0;e.forEach(e=>{`OriginX`in e&&n.displays&&n.displays[r]&&(n.displays[r].positionX=e.OriginX),`OriginY`in e&&n.displays&&n.displays[r]&&(n.displays[r].positionY=e.OriginY),e.Mode&&e.Mode.BitsPerPixel!==void 0&&n.displays&&n.displays[r]&&(n.displays[r].pixelDepth=e.Mode.BitsPerPixel),r++})}}catch{a.noop()}}e&&e(n),t(n)}),c&&(a.isRaspberry()&&r(`fbset -s 2> /dev/null | grep 'mode "' ; vcgencmd get_mem gpu 2> /dev/null; tvservice -s 2> /dev/null; tvservice -n 2> /dev/null;`,(e,t)=>{let r=t.toString().split(` `);if(r.length>3&&r[0].indexOf(`mode "`)>=-1&&r[2].indexOf(`0x12000a`)>-1){let e=r[0].replace(`mode`,``).replace(/"/g,``).trim().split(`x`);e.length===2&&n.displays.push({vendor:``,model:a.getValue(r,`device_name`,`=`),main:!0,builtin:!1,connection:`HDMI`,sizeX:null,sizeY:null,pixelDepth:null,resolutionX:parseInt(e[0],10),resolutionY:parseInt(e[1],10),currentResX:null,currentResY:null,positionX:0,positionY:0,currentRefreshRate:null})}r.length>=1&&t.toString().indexOf(`gpu=`)>=-1&&n.controllers.push({vendor:`Broadcom`,model:a.getRpiGpu(),bus:``,vram:a.getValue(r,`gpu`,`=`).replace(`M`,``),vramDynamic:!0})}),r(`lspci -vvv 2>/dev/null`,(i,a)=>{if(!i){let e=a.toString().split(` @@ -234,7 +234,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `);s=a.getValue(e,`MonitorManufacturer`,`:`),c=a.getValue(e,`Name`,`:`),l=a.getValue(e,`PNPDeviceID`,`:`).replace(/&/g,`&`).toLowerCase(),u=a.toInt(a.getValue(e,`ScreenWidth`,`:`)),d=a.toInt(a.getValue(e,`ScreenHeight`,`:`))}for(let n=0;n{e.instanceId.toLowerCase().startsWith(v)&&s.startsWith(`(`)&&c.startsWith(`PnP`)&&(S=e.vendor,C=e.model)}),o.push({vendor:v.startsWith(l)&&S===``?s:S,model:v.startsWith(l)&&C===``?c:C,deviceName:x,main:h.toLowerCase()===`true`,builtin:b===`2147483648`,connection:b&&y[b]?y[b]:``,resolutionX:a.toInt(a.getValue(m,`Width`,`:`)),resolutionY:a.toInt(a.getValue(m,`Height`,`:`)),sizeX:g?parseInt(g,10):null,sizeY:_?parseInt(_,10):null,pixelDepth:p,currentResX:a.toInt(a.getValue(m,`Width`,`:`)),currentResY:a.toInt(a.getValue(m,`Height`,`:`)),positionX:a.toInt(a.getValue(m,`X`,`:`)),positionY:a.toInt(a.getValue(m,`Y`,`:`))})}return e.length===0&&o.push({vendor:s,model:c,main:!0,sizeX:null,sizeY:null,resolutionX:u,resolutionY:d,pixelDepth:null,currentResX:u,currentResY:d,positionX:0,positionY:0}),o}}e.graphics=w})),kO=R((e=>{let t=SO(),n=B(`fs`),r=B(`os`),i=B(`child_process`).exec,a=B(`child_process`).execSync,o=t.promisifySave(B(`child_process`).exec),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`,h={},g={};function _(e,n){t.isFunction(e)&&(n=e,e=``);let r=[],o=[];function s(e){if(!e.startsWith(`/`))return`NFS`;let t=e.split(`/`),n=t[t.length-1],i=r.filter(e=>e.indexOf(n)>=0);return i.length===1&&i[0].indexOf(`APFS`)>=0?`APFS`:`HFS`}function h(e){let t=[`rootfs`,`unionfs`,`squashfs`,`cramfs`,`initrd`,`initramfs`,`devtmpfs`,`tmpfs`,`udev`,`devfs`,`specfs`,`type`,`appimaged`],n=!1;return t.forEach(t=>{e.toLowerCase().indexOf(t)>=0&&(n=!0)}),n}function g(e){let t=e.toString().split(` +`),p=a.getValue(u,`BitsPerPixel`),m=a.getValue(u,`Bounds`).replace(`{`,``).replace(`}`,``).replace(/=/g,`:`).split(`,`),h=a.getValue(u,`Primary`),g=a.getValue(d,`MaxHorizontalImageSize`),_=a.getValue(d,`MaxVerticalImageSize`),v=a.getValue(d,`InstanceName`).toLowerCase(),b=a.getValue(f,`VideoOutputTechnology`),x=a.getValue(u,`DeviceName`),S=``,C=``;i.forEach(e=>{e.instanceId.toLowerCase().startsWith(v)&&s.startsWith(`(`)&&c.startsWith(`PnP`)&&(S=e.vendor,C=e.model)}),o.push({vendor:v.startsWith(l)&&S===``?s:S,model:v.startsWith(l)&&C===``?c:C,deviceName:x,main:h.toLowerCase()===`true`,builtin:b===`2147483648`,connection:b&&y[b]?y[b]:``,resolutionX:a.toInt(a.getValue(m,`Width`,`:`)),resolutionY:a.toInt(a.getValue(m,`Height`,`:`)),sizeX:g?parseInt(g,10):null,sizeY:_?parseInt(_,10):null,pixelDepth:p,currentResX:a.toInt(a.getValue(m,`Width`,`:`)),currentResY:a.toInt(a.getValue(m,`Height`,`:`)),positionX:a.toInt(a.getValue(m,`X`,`:`)),positionY:a.toInt(a.getValue(m,`Y`,`:`))})}return e.length===0&&o.push({vendor:s,model:c,main:!0,sizeX:null,sizeY:null,resolutionX:u,resolutionY:d,pixelDepth:null,currentResX:u,currentResY:d,positionX:0,positionY:0}),o}}e.graphics=w})),kO=z((e=>{let t=SO(),n=V(`fs`),r=V(`os`),i=V(`child_process`).exec,a=V(`child_process`).execSync,o=t.promisifySave(V(`child_process`).exec),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`,h={},g={};function _(e,n){t.isFunction(e)&&(n=e,e=``);let r=[],o=[];function s(e){if(!e.startsWith(`/`))return`NFS`;let t=e.split(`/`),n=t[t.length-1],i=r.filter(e=>e.indexOf(n)>=0);return i.length===1&&i[0].indexOf(`APFS`)>=0?`APFS`:`HFS`}function h(e){let t=[`rootfs`,`unionfs`,`squashfs`,`cramfs`,`initrd`,`initramfs`,`devtmpfs`,`tmpfs`,`udev`,`devfs`,`specfs`,`type`,`appimaged`],n=!1;return t.forEach(t=>{e.toLowerCase().indexOf(t)>=0&&(n=!0)}),n}function g(e){let t=e.toString().split(` `);if(t.shift(),e.toString().toLowerCase().indexOf(`filesystem`)){let e=0;for(let n=0;n{if(e!==``&&(e=e.replace(/ +/g,` `).split(` `),e&&(e[0].startsWith(`/`)||e[6]&&e[6]===`/`||e[0].indexOf(`/`)>0||e[0].indexOf(`:`)===1||!l&&!h(e[1])))){let n=e[0],r=c||d||f||p?e[1]:s(e[0]),i=parseInt(c||d||f||p?e[2]:e[1],10)*1024,a=parseInt(c||d||f||p?e[3]:e[2],10)*1024,l=parseInt(c||d||f||p?e[4]:e[3],10)*1024,u=parseFloat((100*(a/(a+l))).toFixed(2)),m=o&&Object.keys(o).length>0?o[n]||!1:null;e.splice(0,c||d||f||p?6:5);let h=e.join(` `);t.find(e=>e.fs===n&&e.type===r&&e.mount===h)||t.push({fs:n,type:r,size:i,used:a,available:l,use:u,mount:h,rw:m})}}),t}return new Promise(s=>{process.nextTick(()=>{let h=[];if(c||d||f||p||l){let u=``;if(r=[],o={},l){u=`df -kP`;try{r=a(`diskutil list`).toString().split(` `).filter(e=>!e.startsWith(`/`)&&e.indexOf(`:`)>0),a(`mount`).toString().split(` `).filter(e=>e.startsWith(`/`)).forEach(e=>{o[e.split(` `)[0]]=e.toLowerCase().indexOf(`read-only`)===-1})}catch{t.noop()}}if(c)try{u=`export LC_ALL=C; df -kPTx squashfs; unset LC_ALL`,a(`cat /proc/mounts 2>/dev/null`,t.execOptsLinux).toString().split(` @@ -254,10 +254,10 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i `),c=[];o.forEach(e=>{e!==``&&(e=e.trim().split(` `),c.indexOf(e[0])===-1&&c.push(e[0]))}),i(`cat /proc/diskstats | egrep "`+c.join(`|`)+`"`,{maxBuffer:1024*1024},(i,o)=>{i||(o.toString().split(` `).forEach(e=>{e=e.trim(),e!==``&&(e=e.replace(/ +/g,` `).split(` `),r+=parseInt(e[5],10)*512,a+=parseInt(e[9],10)*512)}),n=M(r,a)),e&&e(n),t(n)}).on(`error`,()=>{e&&e(n),t(n)})}}).on(`error`,()=>{e&&e(n),t(n)}),l&&i(`ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890, "`,{maxBuffer:1024*1024},(i,o)=>{i||(o.toString().split(` -`).forEach(e=>{e=e.trim(),e!==``&&(e=e.split(`,`),r+=parseInt(e[2],10),a+=parseInt(e[9],10))}),n=M(r,a)),e&&e(n),t(n)}).on(`error`,()=>{e&&e(n),t(n)})):(n.ms=h.last_ms,n.rx=h.bytes_read,n.wx=h.bytes_write,n.tx=h.bytes_read+h.bytes_write,n.rx_sec=h.rx_sec,n.wx_sec=h.wx_sec,n.tx_sec=h.tx_sec,e&&e(n),t(n))})})}e.fsStats=N;function P(e,t,n,r,i){let a={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0};return g&&g.ms?(a.rIO=e,a.wIO=t,a.tIO=e+t,a.ms=Date.now()-g.ms,a.rIO_sec=(a.rIO-g.rIO)/(a.ms/1e3),a.wIO_sec=(a.wIO-g.wIO)/(a.ms/1e3),a.tIO_sec=a.rIO_sec+a.wIO_sec,a.rWaitTime=n,a.wWaitTime=r,a.tWaitTime=i,a.rWaitPercent=(a.rWaitTime-g.rWaitTime)*100/a.ms,a.wWaitPercent=(a.wWaitTime-g.wWaitTime)*100/a.ms,a.tWaitPercent=(a.tWaitTime-g.tWaitTime)*100/a.ms,g.rIO=e,g.wIO=t,g.rIO_sec=a.rIO_sec,g.wIO_sec=a.wIO_sec,g.tIO_sec=a.tIO_sec,g.rWaitTime=n,g.wWaitTime=r,g.tWaitTime=i,g.rWaitPercent=a.rWaitPercent,g.wWaitPercent=a.wWaitPercent,g.tWaitPercent=a.tWaitPercent,g.last_ms=a.ms,g.ms=Date.now()):(a.rIO=e,a.wIO=t,a.tIO=e+t,a.rWaitTime=n,a.wWaitTime=r,a.tWaitTime=i,g.rIO=e,g.wIO=t,g.rIO_sec=null,g.wIO_sec=null,g.tIO_sec=null,g.rWaitTime=n,g.wWaitTime=r,g.tWaitTime=i,g.rWaitPercent=null,g.wWaitPercent=null,g.tWaitPercent=null,g.last_ms=0,g.ms=Date.now()),a}function ee(e){return new Promise(t=>{process.nextTick(()=>{if(u||m)return t(null);let n={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0},r=0,a=0,o=0,s=0,h=0;g&&!g.ms||g&&g.ms&&Date.now()-g.ms>=500?((c||d||f||p)&&i(`for mount in \`lsblk 2>/dev/null | grep " disk " | sed "s/[│└─├]//g" | awk '{$1=$1};1' | cut -d " " -f 1 | sort -u\`; do cat /sys/block/$mount/stat | sed -r "s/ +/;/g" | sed -r "s/^;//"; done`,{maxBuffer:1024*1024},(i,c)=>{i?(e&&e(n),t(n)):(c.split(` +`).forEach(e=>{e=e.trim(),e!==``&&(e=e.split(`,`),r+=parseInt(e[2],10),a+=parseInt(e[9],10))}),n=M(r,a)),e&&e(n),t(n)}).on(`error`,()=>{e&&e(n),t(n)})):(n.ms=h.last_ms,n.rx=h.bytes_read,n.wx=h.bytes_write,n.tx=h.bytes_read+h.bytes_write,n.rx_sec=h.rx_sec,n.wx_sec=h.wx_sec,n.tx_sec=h.tx_sec,e&&e(n),t(n))})})}e.fsStats=N;function P(e,t,n,r,i){let a={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0};return g&&g.ms?(a.rIO=e,a.wIO=t,a.tIO=e+t,a.ms=Date.now()-g.ms,a.rIO_sec=(a.rIO-g.rIO)/(a.ms/1e3),a.wIO_sec=(a.wIO-g.wIO)/(a.ms/1e3),a.tIO_sec=a.rIO_sec+a.wIO_sec,a.rWaitTime=n,a.wWaitTime=r,a.tWaitTime=i,a.rWaitPercent=(a.rWaitTime-g.rWaitTime)*100/a.ms,a.wWaitPercent=(a.wWaitTime-g.wWaitTime)*100/a.ms,a.tWaitPercent=(a.tWaitTime-g.tWaitTime)*100/a.ms,g.rIO=e,g.wIO=t,g.rIO_sec=a.rIO_sec,g.wIO_sec=a.wIO_sec,g.tIO_sec=a.tIO_sec,g.rWaitTime=n,g.wWaitTime=r,g.tWaitTime=i,g.rWaitPercent=a.rWaitPercent,g.wWaitPercent=a.wWaitPercent,g.tWaitPercent=a.tWaitPercent,g.last_ms=a.ms,g.ms=Date.now()):(a.rIO=e,a.wIO=t,a.tIO=e+t,a.rWaitTime=n,a.wWaitTime=r,a.tWaitTime=i,g.rIO=e,g.wIO=t,g.rIO_sec=null,g.wIO_sec=null,g.tIO_sec=null,g.rWaitTime=n,g.wWaitTime=r,g.tWaitTime=i,g.rWaitPercent=null,g.wWaitPercent=null,g.tWaitPercent=null,g.last_ms=0,g.ms=Date.now()),a}function F(e){return new Promise(t=>{process.nextTick(()=>{if(u||m)return t(null);let n={rIO:0,wIO:0,tIO:0,rIO_sec:null,wIO_sec:null,tIO_sec:null,rWaitTime:0,wWaitTime:0,tWaitTime:0,rWaitPercent:null,wWaitPercent:null,tWaitPercent:null,ms:0},r=0,a=0,o=0,s=0,h=0;g&&!g.ms||g&&g.ms&&Date.now()-g.ms>=500?((c||d||f||p)&&i(`for mount in \`lsblk 2>/dev/null | grep " disk " | sed "s/[│└─├]//g" | awk '{$1=$1};1' | cut -d " " -f 1 | sort -u\`; do cat /sys/block/$mount/stat | sed -r "s/ +/;/g" | sed -r "s/^;//"; done`,{maxBuffer:1024*1024},(i,c)=>{i?(e&&e(n),t(n)):(c.split(` `).forEach(e=>{if(!e)return;let t=e.split(`;`);r+=parseInt(t[0],10),a+=parseInt(t[4],10),o+=parseInt(t[3],10),s+=parseInt(t[7],10),h+=parseInt(t[10],10)}),n=P(r,a,o,s,h),e&&e(n),t(n))}),l&&i(`ioreg -c IOBlockStorageDriver -k Statistics -r -w0 | sed -n "/IOBlockStorageDriver/,/Statistics/p" | grep "Statistics" | tr -cd "01234567890, "`,{maxBuffer:1024*1024},(i,c)=>{i||(c.toString().split(` -`).forEach(e=>{e=e.trim(),e!==``&&(e=e.split(`,`),r+=parseInt(e[10],10),a+=parseInt(e[0],10))}),n=P(r,a,o,s,h)),e&&e(n),t(n)})):(n.rIO=g.rIO,n.wIO=g.wIO,n.tIO=g.rIO+g.wIO,n.ms=g.last_ms,n.rIO_sec=g.rIO_sec,n.wIO_sec=g.wIO_sec,n.tIO_sec=g.tIO_sec,n.rWaitTime=g.rWaitTime,n.wWaitTime=g.wWaitTime,n.tWaitTime=g.tWaitTime,n.rWaitPercent=g.rWaitPercent,n.wWaitPercent=g.wWaitPercent,n.tWaitPercent=g.tWaitPercent,e&&e(n),t(n))})})}e.disksIO=ee;function te(e){function n(e){let t=[{pattern:`WESTERN.*`,manufacturer:`Western Digital`},{pattern:`^WDC.*`,manufacturer:`Western Digital`},{pattern:`WD.*`,manufacturer:`Western Digital`},{pattern:`TOSHIBA.*`,manufacturer:`Toshiba`},{pattern:`HITACHI.*`,manufacturer:`Hitachi`},{pattern:`^IC.*`,manufacturer:`Hitachi`},{pattern:`^HTS.*`,manufacturer:`Hitachi`},{pattern:`SANDISK.*`,manufacturer:`SanDisk`},{pattern:`KINGSTON.*`,manufacturer:`Kingston Technology`},{pattern:`^SONY.*`,manufacturer:`Sony`},{pattern:`TRANSCEND.*`,manufacturer:`Transcend`},{pattern:`SAMSUNG.*`,manufacturer:`Samsung`},{pattern:`^ST(?!I\\ ).*`,manufacturer:`Seagate`},{pattern:`^STI\\ .*`,manufacturer:`SimpleTech`},{pattern:`^D...-.*`,manufacturer:`IBM`},{pattern:`^IBM.*`,manufacturer:`IBM`},{pattern:`^FUJITSU.*`,manufacturer:`Fujitsu`},{pattern:`^MP.*`,manufacturer:`Fujitsu`},{pattern:`^MK.*`,manufacturer:`Toshiba`},{pattern:`MAXTO.*`,manufacturer:`Maxtor`},{pattern:`PIONEER.*`,manufacturer:`Pioneer`},{pattern:`PHILIPS.*`,manufacturer:`Philips`},{pattern:`QUANTUM.*`,manufacturer:`Quantum Technology`},{pattern:`FIREBALL.*`,manufacturer:`Quantum Technology`},{pattern:`^VBOX.*`,manufacturer:`VirtualBox`},{pattern:`CORSAIR.*`,manufacturer:`Corsair Components`},{pattern:`CRUCIAL.*`,manufacturer:`Crucial`},{pattern:`ECM.*`,manufacturer:`ECM`},{pattern:`INTEL.*`,manufacturer:`INTEL`},{pattern:`EVO.*`,manufacturer:`Samsung`},{pattern:`APPLE.*`,manufacturer:`Apple`}],n=``;return e&&(e=e.toUpperCase(),t.forEach(t=>{RegExp(t.pattern).test(e)&&(n=t.manufacturer)})),n}return new Promise(s=>{process.nextTick(()=>{let h=t=>{for(let e=0;e/dev/null; unset LC_ALL`,{maxBuffer:1024*1024},(r,o)=>{if(!r)try{let r=o.toString().trim(),i=[];try{let e=JSON.parse(r);e&&{}.hasOwnProperty.call(e,`blockdevices`)&&(i=e.blockdevices.filter(e=>e.type===`disk`&&e.size>0&&(e.model!==null||e.mountpoint===null&&e.label===null&&e.fstype===null&&e.parttype===null&&e.path&&e.path.indexOf(`/ram`)!==0&&e.path.indexOf(`/loop`)!==0&&e[`disc-max`]&&e[`disc-max`]!==0)))}catch{try{i=x(A(a(`export LC_ALL=C; lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER,GROUP 2>/dev/null; unset LC_ALL`,t.execOptsLinux).toString()).split(` +`).forEach(e=>{e=e.trim(),e!==``&&(e=e.split(`,`),r+=parseInt(e[10],10),a+=parseInt(e[0],10))}),n=P(r,a,o,s,h)),e&&e(n),t(n)})):(n.rIO=g.rIO,n.wIO=g.wIO,n.tIO=g.rIO+g.wIO,n.ms=g.last_ms,n.rIO_sec=g.rIO_sec,n.wIO_sec=g.wIO_sec,n.tIO_sec=g.tIO_sec,n.rWaitTime=g.rWaitTime,n.wWaitTime=g.wWaitTime,n.tWaitTime=g.tWaitTime,n.rWaitPercent=g.rWaitPercent,n.wWaitPercent=g.wWaitPercent,n.tWaitPercent=g.tWaitPercent,e&&e(n),t(n))})})}e.disksIO=F;function ee(e){function n(e){let t=[{pattern:`WESTERN.*`,manufacturer:`Western Digital`},{pattern:`^WDC.*`,manufacturer:`Western Digital`},{pattern:`WD.*`,manufacturer:`Western Digital`},{pattern:`TOSHIBA.*`,manufacturer:`Toshiba`},{pattern:`HITACHI.*`,manufacturer:`Hitachi`},{pattern:`^IC.*`,manufacturer:`Hitachi`},{pattern:`^HTS.*`,manufacturer:`Hitachi`},{pattern:`SANDISK.*`,manufacturer:`SanDisk`},{pattern:`KINGSTON.*`,manufacturer:`Kingston Technology`},{pattern:`^SONY.*`,manufacturer:`Sony`},{pattern:`TRANSCEND.*`,manufacturer:`Transcend`},{pattern:`SAMSUNG.*`,manufacturer:`Samsung`},{pattern:`^ST(?!I\\ ).*`,manufacturer:`Seagate`},{pattern:`^STI\\ .*`,manufacturer:`SimpleTech`},{pattern:`^D...-.*`,manufacturer:`IBM`},{pattern:`^IBM.*`,manufacturer:`IBM`},{pattern:`^FUJITSU.*`,manufacturer:`Fujitsu`},{pattern:`^MP.*`,manufacturer:`Fujitsu`},{pattern:`^MK.*`,manufacturer:`Toshiba`},{pattern:`MAXTO.*`,manufacturer:`Maxtor`},{pattern:`PIONEER.*`,manufacturer:`Pioneer`},{pattern:`PHILIPS.*`,manufacturer:`Philips`},{pattern:`QUANTUM.*`,manufacturer:`Quantum Technology`},{pattern:`FIREBALL.*`,manufacturer:`Quantum Technology`},{pattern:`^VBOX.*`,manufacturer:`VirtualBox`},{pattern:`CORSAIR.*`,manufacturer:`Corsair Components`},{pattern:`CRUCIAL.*`,manufacturer:`Crucial`},{pattern:`ECM.*`,manufacturer:`ECM`},{pattern:`INTEL.*`,manufacturer:`INTEL`},{pattern:`EVO.*`,manufacturer:`Samsung`},{pattern:`APPLE.*`,manufacturer:`Apple`}],n=``;return e&&(e=e.toUpperCase(),t.forEach(t=>{RegExp(t.pattern).test(e)&&(n=t.manufacturer)})),n}return new Promise(s=>{process.nextTick(()=>{let h=t=>{for(let e=0;e/dev/null; unset LC_ALL`,{maxBuffer:1024*1024},(r,o)=>{if(!r)try{let r=o.toString().trim(),i=[];try{let e=JSON.parse(r);e&&{}.hasOwnProperty.call(e,`blockdevices`)&&(i=e.blockdevices.filter(e=>e.type===`disk`&&e.size>0&&(e.model!==null||e.mountpoint===null&&e.label===null&&e.fstype===null&&e.parttype===null&&e.path&&e.path.indexOf(`/ram`)!==0&&e.path.indexOf(`/loop`)!==0&&e[`disc-max`]&&e[`disc-max`]!==0)))}catch{try{i=x(A(a(`export LC_ALL=C; lsblk -bPo NAME,TYPE,SIZE,FSTYPE,MOUNTPOINT,UUID,ROTA,RO,RM,LABEL,MODEL,OWNER,GROUP 2>/dev/null; unset LC_ALL`,t.execOptsLinux).toString()).split(` `)).filter(e=>e.type===`disk`&&e.size>0&&(e.model!==null&&e.model!==``||e.mount===``&&e.label===``&&e.fsType===``))}catch{t.noop()}}i.forEach(r=>{let i=``,o=`/dev/`+r.name,s=r.name;try{i=a(`cat /sys/block/`+s+`/queue/rotational 2>/dev/null`,t.execOptsLinux).toString().split(` `)[0]}catch{t.noop()}let c=r.tran?r.tran.toUpperCase().trim():``;c===`NVME`&&(i=`2`,c=`PCIe`),g.push({device:o,type:i===`0`?`SSD`:i===`1`?`HD`:i===`2`?`NVMe`:r.model&&r.model.indexOf(`SSD`)>-1?`SSD`:r.model&&r.model.indexOf(`NVM`)>-1?`NVMe`:`HD`,name:r.model||``,vendor:n(r.model)||(r.vendor?r.vendor.trim():``),size:r.size||0,bytesPerSector:null,totalCylinders:null,totalHeads:null,totalSectors:null,totalTracks:null,tracksPerCylinder:null,sectorsPerTrack:null,firmwareRevision:r.rev?r.rev.trim():``,serialNum:r.serial?r.serial.trim():``,interfaceType:c,smartStatus:`unknown`,temperature:null,BSDName:o}),_+=`printf "\n${o}|"; smartctl -H ${o} | grep overall;`,e+=`${e?`printf ",";`:``}smartctl -a -j ${o};`})}catch{t.noop()}e?i(e,{maxBuffer:1024*1024},(e,t)=>{try{JSON.parse(`[${t}]`).forEach(e=>{let t=e.smartctl.argv[e.smartctl.argv.length-1];for(let n=0;n{t.toString().split(` @@ -281,7 +281,7 @@ echo -n "hardware: "; cat /sys/class/dmi/id/product_uuid 2> /dev/null; echo;`,(i "`,i(_,{maxBuffer:1024*1024},(e,t)=>{t.toString().split(` `).forEach(e=>{if(e){let t=e.split(`|`);if(t.length===2){let e=t[0];t[1]=t[1].trim();let n=t[1].split(`:`);if(n.length===2){n[1]=n[1].trim();let t=n[1].toLowerCase();for(let n=0;n0&&e.devices.forEach(e=>{r.push(o(`smartctl -j -a ${e.name}`,t.execOptsWin))})}catch{t.noop()}t.promiseAll(r).then(r=>{let i=r.results[0].toString().split(/\n\s*\n/);i.forEach(e=>{let r=e.split(`\r `),i=t.getValue(r,`Size`,`:`).trim(),a=t.getValue(r,`Status`,`:`).trim().toLowerCase();i&&g.push({device:t.getValue(r,`DeviceId`,`:`),type:e.indexOf(`SSD`)>-1?`SSD`:`HD`,name:t.getValue(r,`Caption`,`:`),vendor:n(t.getValue(r,`Caption`,`:`,!0).trim()),size:parseInt(i,10),bytesPerSector:parseInt(t.getValue(r,`BytesPerSector`,`:`),10),totalCylinders:parseInt(t.getValue(r,`TotalCylinders`,`:`),10),totalHeads:parseInt(t.getValue(r,`TotalHeads`,`:`),10),totalSectors:parseInt(t.getValue(r,`TotalSectors`,`:`),10),totalTracks:parseInt(t.getValue(r,`TotalTracks`,`:`),10),tracksPerCylinder:parseInt(t.getValue(r,`TracksPerCylinder`,`:`),10),sectorsPerTrack:parseInt(t.getValue(r,`SectorsPerTrack`,`:`),10),firmwareRevision:t.getValue(r,`FirmwareRevision`,`:`).trim(),serialNum:t.getValue(r,`SerialNumber`,`:`).trim(),interfaceType:t.getValue(r,`InterfaceType`,`:`).trim(),smartStatus:a===`ok`?`Ok`:a===`degraded`?`Degraded`:a===`pred fail`?`Predicted Failure`:`Unknown`,temperature:null})}),i=r.results[1].split(/\n\s*\n/),i.forEach(e=>{let n=e.split(`\r -`),r=t.getValue(n,`SerialNumber`,`:`).trim(),i=t.getValue(n,`FriendlyName`,`:`).trim().replace(`Msft `,`Microsoft`),a=t.getValue(n,`Size`,`:`).trim(),o=t.getValue(n,`Model`,`:`).trim(),s=t.getValue(n,`BusType`,`:`).trim(),c=t.getValue(n,`MediaType`,`:`).trim();if((c===`3`||c===`HDD`)&&(c=`HD`),c===`4`&&(c=`SSD`),c===`5`&&(c=`SCM`),c===`Unspecified`&&(o.toLowerCase().indexOf(`virtual`)>-1||o.toLowerCase().indexOf(`vbox`)>-1)&&(c=`Virtual`),a){let e=t.findObjectByKey(g,`serialNum`,r);(e===-1||r===``)&&(e=t.findObjectByKey(g,`name`,i)),e!==-1&&(g[e].type=c,g[e].interfaceType=s)}}),r.results.shift(),r.results.shift(),r.results.length&&r.results.forEach(e=>{try{let n=JSON.parse(e);if(n.serial_number){let e=n.serial_number,r=t.findObjectByKey(g,`serialNum`,e);r!==-1&&(g[r].smartStatus=n.smart_status&&n.smart_status.passed?`Ok`:n.smart_status&&n.smart_status.passed===!1?`Predicted Failure`:`unknown`,n.temperature&&n.temperature.current&&(g[r].temperature=n.temperature.current),g[r].smartData=n)}}catch{t.noop()}}),e&&e(g),s(g)})}catch{e&&e(g),s(g)}})})}e.diskLayout=te})),AO=R((e=>{let t=B(`os`),n=B(`child_process`).exec,r=B(`child_process`).execSync,i=B(`child_process`).execFileSync,a=B(`fs`).readFileSync,o=B(`fs`),s=SO(),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=c===`sunos`,g={},_=``,v={},y=[],b=[],x={},S;function C(){let e=``,n=``;try{let i=t.networkInterfaces(),a=9999;for(let t in i)({}).hasOwnProperty.call(i,t)&&i[t].forEach(r=>{r&&r.internal===!1&&(n||=t,r.scopeid&&r.scopeid{if(e=e.replace(/\s+/g,` `).trim(),e.indexOf(`0.0.0.0 0.0.0.0`)>-1&&!/[a-zA-Z]/.test(e)){let t=e.split(` `);t.length>=5&&(n=t[t.length-2])}}),n)for(let t in i)({}).hasOwnProperty.call(i,t)&&i[t].forEach(r=>{r&&r.address&&r.address===n&&(e=t)})}if(l){let t=r(`ip route 2> /dev/null | grep default`,s.execOptsLinux).toString().split(` +`),r=t.getValue(n,`SerialNumber`,`:`).trim(),i=t.getValue(n,`FriendlyName`,`:`).trim().replace(`Msft `,`Microsoft`),a=t.getValue(n,`Size`,`:`).trim(),o=t.getValue(n,`Model`,`:`).trim(),s=t.getValue(n,`BusType`,`:`).trim(),c=t.getValue(n,`MediaType`,`:`).trim();if((c===`3`||c===`HDD`)&&(c=`HD`),c===`4`&&(c=`SSD`),c===`5`&&(c=`SCM`),c===`Unspecified`&&(o.toLowerCase().indexOf(`virtual`)>-1||o.toLowerCase().indexOf(`vbox`)>-1)&&(c=`Virtual`),a){let e=t.findObjectByKey(g,`serialNum`,r);(e===-1||r===``)&&(e=t.findObjectByKey(g,`name`,i)),e!==-1&&(g[e].type=c,g[e].interfaceType=s)}}),r.results.shift(),r.results.shift(),r.results.length&&r.results.forEach(e=>{try{let n=JSON.parse(e);if(n.serial_number){let e=n.serial_number,r=t.findObjectByKey(g,`serialNum`,e);r!==-1&&(g[r].smartStatus=n.smart_status&&n.smart_status.passed?`Ok`:n.smart_status&&n.smart_status.passed===!1?`Predicted Failure`:`unknown`,n.temperature&&n.temperature.current&&(g[r].temperature=n.temperature.current),g[r].smartData=n)}}catch{t.noop()}}),e&&e(g),s(g)})}catch{e&&e(g),s(g)}})})}e.diskLayout=ee})),AO=z((e=>{let t=V(`os`),n=V(`child_process`).exec,r=V(`child_process`).execSync,i=V(`child_process`).execFileSync,a=V(`fs`).readFileSync,o=V(`fs`),s=SO(),c=process.platform,l=c===`linux`||c===`android`,u=c===`darwin`,d=c===`win32`,f=c===`freebsd`,p=c===`openbsd`,m=c===`netbsd`,h=c===`sunos`,g={},_=``,v={},y=[],b=[],x={},S;function C(){let e=``,n=``;try{let i=t.networkInterfaces(),a=9999;for(let t in i)({}).hasOwnProperty.call(i,t)&&i[t].forEach(r=>{r&&r.internal===!1&&(n||=t,r.scopeid&&r.scopeid{if(e=e.replace(/\s+/g,` `).trim(),e.indexOf(`0.0.0.0 0.0.0.0`)>-1&&!/[a-zA-Z]/.test(e)){let t=e.split(` `);t.length>=5&&(n=t[t.length-2])}}),n)for(let t in i)({}).hasOwnProperty.call(i,t)&&i[t].forEach(r=>{r&&r.address&&r.address===n&&(e=t)})}if(l){let t=r(`ip route 2> /dev/null | grep default`,s.execOptsLinux).toString().split(` `)[0].split(/\s+/);t[0]===`none`&&t[5]?e=t[5]:t[4]&&(e=t[4]),e.indexOf(`:`)>-1&&(e=e.split(`:`)[1].trim())}if(u||f||p||m||h){let t=``;l&&(t=`ip route 2> /dev/null | grep default | awk '{print $5}'`),u&&(t=`route -n get default 2>/dev/null | grep interface: | awk '{print $2}'`),(f||p||m||h)&&(t=`route get 0.0.0.0 | grep interface:`),e=r(t).toString().split(` `)[0],e.indexOf(`:`)>-1&&(e=e.split(`:`)[1].trim())}}catch{s.noop()}return e&&(_=e),_}e.getDefaultNetworkInterface=C;function w(){let e=``,t=``,n={};if(l||f||p||m){if(S===void 0)try{let e=r(`which ip`,s.execOptsLinux).toString().split(` `);S=e.length&&e[0].indexOf(`:`)===-1&&e[0].indexOf(`/`)===0?e[0]:``}catch{S=``}try{let i=r(`export LC_ALL=C; `+(S?S+` link show up`:`/sbin/ifconfig`)+`; unset LC_ALL`,s.execOptsLinux).toString().split(` @@ -297,10 +297,10 @@ Profile on interface`)}catch(e){return e.status===1&&e.stdout.includes(`AutoConf `).shift().split(`:`).pop().trim()}catch{return`Unknown`}}function M(e,t,n){let i={state:`Unknown`,protocol:`Unknown`};if(n===`Disabled`)return i.state=`Disabled`,i.protocol=`Not defined`,i;if(e===`wired`&&n.length>0)try{let e=n.find(e=>e.includes(t+`\r `)).split(`\r `),r=e.find(e=>e.includes(`802.1x`));r.includes(`Disabled`)?(i.state=`Disabled`,i.protocol=`Not defined`):r.includes(`Enabled`)&&(i.protocol=e.find(e=>e.includes(`EAP`)).split(`:`).pop(),i.state=`Enabled`)}catch{return i}else if(e===`wireless`){let e=``,n=``;try{let a=j(t);if(a!==`Unknown`){let t=r(`netsh wlan show profiles "${s.sanitizeString(a)}"`,s.execOptsWin).split(`\r -`);e=(t.find(e=>e.indexOf(`802.1X`)>=0)||``).trim(),n=(t.find(e=>e.indexOf(`EAP`)>=0)||``).trim()}e.includes(`:`)&&n.includes(`:`)&&(i.state=e.split(`:`).pop(),i.protocol=n.split(`:`).pop())}catch(e){return e.status===1&&e.stdout.includes(`AutoConfig`)&&(i.state=`Disabled`,i.protocol=`Not defined`),i}}return i}function N(e){let t=[],n=[];return e.forEach(e=>{!e.startsWith(` `)&&!e.startsWith(` `)&&n.length&&(t.push(n),n=[]),n.push(e)}),n.length&&t.push(n),t}function P(e){let t=[];return e.forEach(e=>{let n={iface:``,mtu:null,mac:``,ip6:``,ip4:``,speed:null,type:``,operstate:``,duplex:``,internal:!1},r=e[0];n.iface=r.split(`:`)[0].trim();let i=r.split(`> mtu`);n.mtu=i.length>1?parseInt(i[1],10):null,isNaN(n.mtu)&&(n.mtu=null),n.internal=i[0].toLowerCase().indexOf(`loopback`)>-1,e.forEach(e=>{e.trim().startsWith(`ether `)&&(n.mac=e.split(`ether `)[1].toLowerCase().trim()),e.trim().startsWith(`inet6 `)&&!n.ip6&&(n.ip6=e.split(`inet6 `)[1].toLowerCase().split(`%`)[0].split(` `)[0]),e.trim().startsWith(`inet `)&&!n.ip4&&(n.ip4=e.split(`inet `)[1].toLowerCase().split(` `)[0])});let a=s.getValue(e,`link rate`);n.speed=a?parseFloat(a):null,n.speed===null?(a=s.getValue(e,`uplink rate`),n.speed=a?parseFloat(a):null,n.speed!==null&&a.toLowerCase().indexOf(`gbps`)>=0&&(n.speed*=1e3)):a.toLowerCase().indexOf(`gbps`)>=0&&(n.speed*=1e3),n.type=s.getValue(e,`type`).toLowerCase().indexOf(`wi-fi`)>-1?`wireless`:`wired`;let o=s.getValue(e,`status`).toLowerCase();n.operstate=o===`active`?`up`:o===`inactive`?`down`:`unknown`,n.duplex=s.getValue(e,`media`).toLowerCase().indexOf(`half-duplex`)>-1?`half`:`full`,(n.ip6||n.ip4||n.mac)&&t.push(n)}),t}function ee(){try{return P(N(r(`/sbin/ifconfig -v`,{maxBuffer:1024*102400}).toString().split(` -`)))}catch{return[]}}function te(e){try{let t=i(`nmcli`,[`device`,`status`],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,e).replace(/\s+/g,` `).trim().split(` `).slice(3).join(` `),r=s.sanitizeString(n,!1);return r===`--`?``:r}catch{return``}}function ne(e){let t=[];try{a(e,{encoding:`utf8`}).split(` -`).filter(e=>/iface|source/.test(e)).forEach(e=>{let n=e.replace(/\s+/g,` `).trim().split(` `);if(n.length>=4&&e.toLowerCase().indexOf(` inet `)>=0&&e.toLowerCase().indexOf(`dhcp`)>=0&&t.push(n[1]),e.toLowerCase().includes(`source`)){let n=e.split(` `)[1];t=t.concat(ne(n))}})}catch{s.noop()}return t}function F(){let e=[];try{e=re(N(r(`ip a 2> /dev/null`,s.execOptsLinux).toString().split(` -`)))}catch{s.noop()}try{e=ne(`/etc/network/interfaces`)}catch{s.noop()}return e}function re(e){let t=[];return e&&e.length&&e.forEach(e=>{if(e&&e.length&&e[0].split(`:`).length>2){for(let n of e)if(n.indexOf(` inet `)>=0&&n.indexOf(` dynamic `)>=0){let e=n.split(` `),r=e[e.length-1].trim();t.push(r);break}}}),t}function ie(e,t,n){let r=!1;if(t)try{let e=i(`nmcli`,[`connection`,`show`,t],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString();switch(s.grep(e,`ipv4.method`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString()){case`auto`:r=!0;break;default:r=!1;break}return r}catch{return n.indexOf(e)>=0}else return n.indexOf(e)>=0}function I(e){let t=!1;try{let n=i(`ipconfig`,[`getpacket`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),r=s.grep(n,`lease_time`);r.length&&r[0].startsWith(`lease_time`)&&(t=!0)}catch{s.noop()}return t}function ae(e){if(e)try{let t=i(`nmcli`,[`connection`,`show`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,`ipv4.dns-search`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString();return n===`--`?`Not defined`:n}catch{return`Unknown`}else return`Unknown`}function oe(e){if(e)try{let t=i(`nmcli`,[`connection`,`show`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,`802-1x.eap`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString();return n===`--`?``:n}catch{return`Not defined`}else return`Not defined`}function se(e){return e?e===`Not defined`?`Disabled`:`Enabled`:`Unknown`}function ce(e,t,n){return n?[`00:00:00:00:00:00`,`00:03:FF`,`00:05:69`,`00:0C:29`,`00:0F:4B`,`00:13:07`,`00:13:BE`,`00:15:5d`,`00:16:3E`,`00:1C:42`,`00:21:F6`,`00:24:0B`,`00:50:56`,`00:A0:B1`,`00:E0:C8`,`08:00:27`,`0A:00:27`,`18:92:2C`,`16:DF:49`,`3C:F3:92`,`54:52:00`,`FC:15:97`].filter(e=>n.toUpperCase().toUpperCase().startsWith(e.substring(0,n.length))).length>0||e.toLowerCase().indexOf(` virtual `)>-1||t.toLowerCase().indexOf(` virtual `)>-1||e.toLowerCase().indexOf(`vethernet `)>-1||t.toLowerCase().indexOf(`vethernet `)>-1||e.toLowerCase().startsWith(`veth`)||t.toLowerCase().startsWith(`veth`)||e.toLowerCase().startsWith(`vboxnet`)||t.toLowerCase().startsWith(`vboxnet`):!1}function le(e,n,i){return typeof e==`string`&&(i=e,n=!0,e=null),typeof e==`boolean`&&(n=e,e=null,i=``),n===void 0&&(n=!0),i||=``,i=``+i,new Promise(a=>{process.nextTick(()=>{let o=t.networkInterfaces(),c=[],h=[],g=[],_=[];if(u||f||p||m)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{let t=C();v=JSON.parse(JSON.stringify(o)),h=ee(),h.forEach(e=>{let n=``,r=``,i=``,a=``;e.ip4=``,e.ip6=``,{}.hasOwnProperty.call(o,e.iface)&&o[e.iface].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(!e.ip4&&!e.ip4.match(/^169.254/i)&&(e.ip4=t.address,e.ip4subnet=t.netmask),e.ip4.match(/^169.254/i)&&(n=t.address,r=t.netmask)),(t.family===`IPv6`||t.family===6)&&(!e.ip6&&!e.ip6.match(/^fe80::/i)&&(e.ip6=t.address,e.ip6subnet=t.netmask),e.ip6.match(/^fe80::/i)&&(i=t.address,a=t.netmask))}),!e.ip4&&n&&(e.ip4=n,e.ip4subnet=r),!e.ip6&&i&&(e.ip6=i,e.ip6subnet=a);let l=s.sanitizeString(e.iface);c.push({iface:e.iface,ifaceName:e.iface,default:e.iface===t,ip4:e.ip4,ip4subnet:e.ip4subnet||``,ip6:e.ip6,ip6subnet:e.ip6subnet||``,mac:e.mac,internal:e.internal,virtual:e.internal?!1:ce(e.iface,e.iface,e.mac),operstate:e.operstate,type:e.type,duplex:e.duplex,mtu:e.mtu,speed:e.speed,dhcp:I(l),dnsSuffix:``,ieee8021xAuth:``,ieee8021xState:``,carrierChanges:0})}),b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)}if(l)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{v=JSON.parse(JSON.stringify(o)),y=F();let t=C();for(let e in o){let n=``,i=``,a=``,d=``,f=``,p=``,m=``,h=null,g=0,_=!1,v=``,b=``,S=``,C=``,T=``,E=``,D=``,O=``;if({}.hasOwnProperty.call(o,e)){let k=e;o[e].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(!n&&!n.match(/^169.254/i)&&(n=t.address,i=t.netmask),n.match(/^169.254/i)&&(T=t.address,E=t.netmask)),(t.family===`IPv6`||t.family===6)&&(!a&&!a.match(/^fe80::/i)&&(a=t.address,d=t.netmask),a.match(/^fe80::/i)&&(D=t.address,O=t.netmask)),f=t.mac;let r=parseInt(process.versions.node.split(`.`),10);f.indexOf(`00:00:0`)>-1&&(l||u)&&!t.internal&&r>=8&&r<=11&&(Object.keys(x).length===0&&(x=w()),f=x[e]||``)}),!n&&T&&(n=T,i=E),!a&&D&&(a=D,d=O);let A=e.split(`:`)[0].trim(),j=s.sanitizeString(A),M=`echo -n "addr_assign_type: "; cat /sys/class/net/${j}/addr_assign_type 2>/dev/null; echo; +`);e=(t.find(e=>e.indexOf(`802.1X`)>=0)||``).trim(),n=(t.find(e=>e.indexOf(`EAP`)>=0)||``).trim()}e.includes(`:`)&&n.includes(`:`)&&(i.state=e.split(`:`).pop(),i.protocol=n.split(`:`).pop())}catch(e){return e.status===1&&e.stdout.includes(`AutoConfig`)&&(i.state=`Disabled`,i.protocol=`Not defined`),i}}return i}function N(e){let t=[],n=[];return e.forEach(e=>{!e.startsWith(` `)&&!e.startsWith(` `)&&n.length&&(t.push(n),n=[]),n.push(e)}),n.length&&t.push(n),t}function P(e){let t=[];return e.forEach(e=>{let n={iface:``,mtu:null,mac:``,ip6:``,ip4:``,speed:null,type:``,operstate:``,duplex:``,internal:!1},r=e[0];n.iface=r.split(`:`)[0].trim();let i=r.split(`> mtu`);n.mtu=i.length>1?parseInt(i[1],10):null,isNaN(n.mtu)&&(n.mtu=null),n.internal=i[0].toLowerCase().indexOf(`loopback`)>-1,e.forEach(e=>{e.trim().startsWith(`ether `)&&(n.mac=e.split(`ether `)[1].toLowerCase().trim()),e.trim().startsWith(`inet6 `)&&!n.ip6&&(n.ip6=e.split(`inet6 `)[1].toLowerCase().split(`%`)[0].split(` `)[0]),e.trim().startsWith(`inet `)&&!n.ip4&&(n.ip4=e.split(`inet `)[1].toLowerCase().split(` `)[0])});let a=s.getValue(e,`link rate`);n.speed=a?parseFloat(a):null,n.speed===null?(a=s.getValue(e,`uplink rate`),n.speed=a?parseFloat(a):null,n.speed!==null&&a.toLowerCase().indexOf(`gbps`)>=0&&(n.speed*=1e3)):a.toLowerCase().indexOf(`gbps`)>=0&&(n.speed*=1e3),n.type=s.getValue(e,`type`).toLowerCase().indexOf(`wi-fi`)>-1?`wireless`:`wired`;let o=s.getValue(e,`status`).toLowerCase();n.operstate=o===`active`?`up`:o===`inactive`?`down`:`unknown`,n.duplex=s.getValue(e,`media`).toLowerCase().indexOf(`half-duplex`)>-1?`half`:`full`,(n.ip6||n.ip4||n.mac)&&t.push(n)}),t}function F(){try{return P(N(r(`/sbin/ifconfig -v`,{maxBuffer:1024*102400}).toString().split(` +`)))}catch{return[]}}function ee(e){try{let t=i(`nmcli`,[`device`,`status`],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,e).replace(/\s+/g,` `).trim().split(` `).slice(3).join(` `),r=s.sanitizeString(n,!1);return r===`--`?``:r}catch{return``}}function te(e){let t=[];try{a(e,{encoding:`utf8`}).split(` +`).filter(e=>/iface|source/.test(e)).forEach(e=>{let n=e.replace(/\s+/g,` `).trim().split(` `);if(n.length>=4&&e.toLowerCase().indexOf(` inet `)>=0&&e.toLowerCase().indexOf(`dhcp`)>=0&&t.push(n[1]),e.toLowerCase().includes(`source`)){let n=e.split(` `)[1];t=t.concat(te(n))}})}catch{s.noop()}return t}function I(){let e=[];try{e=ne(N(r(`ip a 2> /dev/null`,s.execOptsLinux).toString().split(` +`)))}catch{s.noop()}try{e=te(`/etc/network/interfaces`)}catch{s.noop()}return e}function ne(e){let t=[];return e&&e.length&&e.forEach(e=>{if(e&&e.length&&e[0].split(`:`).length>2){for(let n of e)if(n.indexOf(` inet `)>=0&&n.indexOf(` dynamic `)>=0){let e=n.split(` `),r=e[e.length-1].trim();t.push(r);break}}}),t}function re(e,t,n){let r=!1;if(t)try{let e=i(`nmcli`,[`connection`,`show`,t],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString();switch(s.grep(e,`ipv4.method`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString()){case`auto`:r=!0;break;default:r=!1;break}return r}catch{return n.indexOf(e)>=0}else return n.indexOf(e)>=0}function L(e){let t=!1;try{let n=i(`ipconfig`,[`getpacket`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),r=s.grep(n,`lease_time`);r.length&&r[0].startsWith(`lease_time`)&&(t=!0)}catch{s.noop()}return t}function ie(e){if(e)try{let t=i(`nmcli`,[`connection`,`show`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,`ipv4.dns-search`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString();return n===`--`?`Not defined`:n}catch{return`Unknown`}else return`Unknown`}function ae(e){if(e)try{let t=i(`nmcli`,[`connection`,`show`,e],{...s.execOptsLinux,stdio:[`ignore`,`pipe`,`ignore`]}).toString(),n=s.grep(t,`802-1x.eap`).replace(/\s+/g,` `).trim().split(` `).slice(1).toString();return n===`--`?``:n}catch{return`Not defined`}else return`Not defined`}function oe(e){return e?e===`Not defined`?`Disabled`:`Enabled`:`Unknown`}function se(e,t,n){return n?[`00:00:00:00:00:00`,`00:03:FF`,`00:05:69`,`00:0C:29`,`00:0F:4B`,`00:13:07`,`00:13:BE`,`00:15:5d`,`00:16:3E`,`00:1C:42`,`00:21:F6`,`00:24:0B`,`00:50:56`,`00:A0:B1`,`00:E0:C8`,`08:00:27`,`0A:00:27`,`18:92:2C`,`16:DF:49`,`3C:F3:92`,`54:52:00`,`FC:15:97`].filter(e=>n.toUpperCase().toUpperCase().startsWith(e.substring(0,n.length))).length>0||e.toLowerCase().indexOf(` virtual `)>-1||t.toLowerCase().indexOf(` virtual `)>-1||e.toLowerCase().indexOf(`vethernet `)>-1||t.toLowerCase().indexOf(`vethernet `)>-1||e.toLowerCase().startsWith(`veth`)||t.toLowerCase().startsWith(`veth`)||e.toLowerCase().startsWith(`vboxnet`)||t.toLowerCase().startsWith(`vboxnet`):!1}function ce(e,n,i){return typeof e==`string`&&(i=e,n=!0,e=null),typeof e==`boolean`&&(n=e,e=null,i=``),n===void 0&&(n=!0),i||=``,i=``+i,new Promise(a=>{process.nextTick(()=>{let o=t.networkInterfaces(),c=[],h=[],g=[],_=[];if(u||f||p||m)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{let t=C();v=JSON.parse(JSON.stringify(o)),h=F(),h.forEach(e=>{let n=``,r=``,i=``,a=``;e.ip4=``,e.ip6=``,{}.hasOwnProperty.call(o,e.iface)&&o[e.iface].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(!e.ip4&&!e.ip4.match(/^169.254/i)&&(e.ip4=t.address,e.ip4subnet=t.netmask),e.ip4.match(/^169.254/i)&&(n=t.address,r=t.netmask)),(t.family===`IPv6`||t.family===6)&&(!e.ip6&&!e.ip6.match(/^fe80::/i)&&(e.ip6=t.address,e.ip6subnet=t.netmask),e.ip6.match(/^fe80::/i)&&(i=t.address,a=t.netmask))}),!e.ip4&&n&&(e.ip4=n,e.ip4subnet=r),!e.ip6&&i&&(e.ip6=i,e.ip6subnet=a);let l=s.sanitizeString(e.iface);c.push({iface:e.iface,ifaceName:e.iface,default:e.iface===t,ip4:e.ip4,ip4subnet:e.ip4subnet||``,ip6:e.ip6,ip6subnet:e.ip6subnet||``,mac:e.mac,internal:e.internal,virtual:e.internal?!1:se(e.iface,e.iface,e.mac),operstate:e.operstate,type:e.type,duplex:e.duplex,mtu:e.mtu,speed:e.speed,dhcp:L(l),dnsSuffix:``,ieee8021xAuth:``,ieee8021xState:``,carrierChanges:0})}),b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)}if(l)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{v=JSON.parse(JSON.stringify(o)),y=I();let t=C();for(let e in o){let n=``,i=``,a=``,d=``,f=``,p=``,m=``,h=null,g=0,_=!1,v=``,b=``,S=``,C=``,T=``,E=``,D=``,O=``;if({}.hasOwnProperty.call(o,e)){let k=e;o[e].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(!n&&!n.match(/^169.254/i)&&(n=t.address,i=t.netmask),n.match(/^169.254/i)&&(T=t.address,E=t.netmask)),(t.family===`IPv6`||t.family===6)&&(!a&&!a.match(/^fe80::/i)&&(a=t.address,d=t.netmask),a.match(/^fe80::/i)&&(D=t.address,O=t.netmask)),f=t.mac;let r=parseInt(process.versions.node.split(`.`),10);f.indexOf(`00:00:0`)>-1&&(l||u)&&!t.internal&&r>=8&&r<=11&&(Object.keys(x).length===0&&(x=w()),f=x[e]||``)}),!n&&T&&(n=T,i=E),!a&&D&&(a=D,d=O);let A=e.split(`:`)[0].trim(),j=s.sanitizeString(A),M=`echo -n "addr_assign_type: "; cat /sys/class/net/${j}/addr_assign_type 2>/dev/null; echo; echo -n "address: "; cat /sys/class/net/${j}/address 2>/dev/null; echo; echo -n "addr_len: "; cat /sys/class/net/${j}/addr_len 2>/dev/null; echo; echo -n "broadcast: "; cat /sys/class/net/${j}/broadcast 2>/dev/null; echo; @@ -325,20 +325,20 @@ Profile on interface`)}catch(e){return e.status===1&&e.stdout.includes(`AutoConf echo -n "type: "; cat /sys/class/net/${j}/type 2>/dev/null; echo; echo -n "wireless: "; cat /proc/net/wireless 2>/dev/null | grep ${j}; echo; echo -n "wirelessspeed: "; iw dev ${j} link 2>&1 | grep bitrate; echo;`,N=[];try{N=r(M,s.execOptsLinux).toString().split(` -`);let e=te(j);_=ie(j,e,y),v=ae(e),b=oe(e),S=se(b)}catch{s.noop()}p=s.getValue(N,`duplex`),p=p.startsWith(`cat`)?``:p,m=parseInt(s.getValue(N,`mtu`),10);let P=parseInt(s.getValue(N,`speed`),10);h=isNaN(P)?null:P;let ee=s.getValue(N,`tx bitrate`);h===null&&ee&&(P=parseFloat(ee),h=isNaN(P)?null:P),g=parseInt(s.getValue(N,`carrier_changes`),10);let ne=s.getValue(N,`operstate`);C=ne===`up`?s.getValue(N,`wireless`).trim()?`wireless`:`wired`:`unknown`,(j===`lo`||j.startsWith(`bond`))&&(C=`virtual`);let F=o[e]&&o[e][0]?o[e][0].internal:!1;(e.toLowerCase().indexOf(`loopback`)>-1||k.toLowerCase().indexOf(`loopback`)>-1)&&(F=!0);let re=F?!1:ce(e,k,f);c.push({iface:j,ifaceName:k,default:A===t,ip4:n,ip4subnet:i,ip6:a,ip6subnet:d,mac:f,internal:F,virtual:re,operstate:ne,type:C,duplex:p,mtu:m,speed:h,dhcp:_,dnsSuffix:v,ieee8021xAuth:b,ieee8021xState:S,carrierChanges:g})}}b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)}if(d)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{v=JSON.parse(JSON.stringify(o));let t=C();D().then(n=>{n.forEach(e=>{let t=!1;Object.keys(o).forEach(n=>{t||o[n].forEach(n=>{Object.keys(n).indexOf(`mac`)>=0&&(t=n.mac===e.mac)})}),t||(o[e.name]=[{mac:e.mac}])}),_=A(),g=O();for(let e in o){let r=s.sanitizeString(e),i=e,a=``,d=``,f=``,p=``,m=``,h=null,v=`down`,y=!1,b=``,S=``,C=``,T=``;if({}.hasOwnProperty.call(o,e)){let s=e;o[e].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(a=t.address,d=t.netmask),(t.family===`IPv6`||t.family===6)&&(!f||f.match(/^fe80::/i))&&(f=t.address,p=t.netmask),m=t.mac;let n=parseInt(process.versions.node.split(`.`),10);m.indexOf(`00:00:0`)>-1&&(l||u)&&!t.internal&&n>=8&&n<=11&&(Object.keys(x).length===0&&(x=w()),m=x[e]||``)}),b=k(g.ifaces,r);let E=!1;n.forEach(e=>{e.mac===m&&!E&&(i=e.iface||i,s=e.name,y=e.dhcp,v=e.operstate,h=v===`up`?e.speed:0,T=e.type,E=!0)}),(e.toLowerCase().indexOf(`wlan`)>=0||s.toLowerCase().indexOf(`wlan`)>=0||s.toLowerCase().indexOf(`802.11n`)>=0||s.toLowerCase().indexOf(`wireless`)>=0||s.toLowerCase().indexOf(`wi-fi`)>=0||s.toLowerCase().indexOf(`wifi`)>=0)&&(T=`wireless`);let D=M(T,r,_);S=D.protocol,C=D.state;let O=o[e]&&o[e][0]?o[e][0].internal:!1;(e.toLowerCase().indexOf(`loopback`)>-1||s.toLowerCase().indexOf(`loopback`)>-1)&&(O=!0);let A=O?!1:ce(e,s,m);c.push({iface:i,ifaceName:s,default:i===t,ip4:a,ip4subnet:d,ip6:f,ip6subnet:p,mac:m,internal:O,virtual:A,operstate:v,type:T,duplex:``,mtu:``,speed:h,dhcp:y,dnsSuffix:b,ieee8021xAuth:S,ieee8021xState:C,carrierChanges:0})}}b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)})}})})}e.networkInterfaces=le;function L(e,t,n,r,i,a,o,s){let c={iface:e,operstate:r,rx_bytes:t,rx_dropped:i,rx_errors:a,tx_bytes:n,tx_dropped:o,tx_errors:s,rx_sec:null,tx_sec:null,ms:0};return g[e]&&g[e].ms?(c.ms=Date.now()-g[e].ms,c.rx_sec=t-g[e].rx_bytes>=0?(t-g[e].rx_bytes)/(c.ms/1e3):0,c.tx_sec=n-g[e].tx_bytes>=0?(n-g[e].tx_bytes)/(c.ms/1e3):0,g[e].rx_bytes=t,g[e].tx_bytes=n,g[e].rx_sec=c.rx_sec,g[e].tx_sec=c.tx_sec,g[e].ms=Date.now(),g[e].last_ms=c.ms,g[e].operstate=r):(g[e]||(g[e]={}),g[e].rx_bytes=t,g[e].tx_bytes=n,g[e].rx_sec=null,g[e].tx_sec=null,g[e].ms=Date.now(),g[e].last_ms=0,g[e].operstate=r),c}function ue(e,t){let n=[];return new Promise(r=>{process.nextTick(()=>{if(s.isFunction(e)&&!t)t=e,n=[C()];else{if(typeof e!=`string`&&e!==void 0)return t&&t([]),r([]);e||=C();try{e.__proto__.toLowerCase=s.stringToLower,e.__proto__.replace=s.stringReplace,e.__proto__.toString=s.stringToString,e.__proto__.substr=s.stringSubstr,e.__proto__.substring=s.stringSubstring,e.__proto__.trim=s.stringTrim,e.__proto__.startsWith=s.stringStartWith}catch{Object.setPrototypeOf(e,s.stringObj)}e=e.trim().replace(/,+/g,`|`),n=e.split(`|`)}let i=[],a=[];if(n.length&&n[0].trim()===`*`)n=[],le(!1).then(e=>{for(let t of e)n.push(t.iface);ue(n.join(`,`)).then(e=>{t&&t(e),r(e)})});else{for(let e of n)a.push(de(e.trim()));a.length?Promise.all(a).then(e=>{t&&t(e),r(e)}):(t&&t(i),r(i))}})})}function de(e){function t(e){let t=[];for(let n in e)if({}.hasOwnProperty.call(e,n)&&e[n].trim()!==``){let r=e[n].trim().split(`\r +`);let e=ee(j);_=re(j,e,y),v=ie(e),b=ae(e),S=oe(b)}catch{s.noop()}p=s.getValue(N,`duplex`),p=p.startsWith(`cat`)?``:p,m=parseInt(s.getValue(N,`mtu`),10);let P=parseInt(s.getValue(N,`speed`),10);h=isNaN(P)?null:P;let F=s.getValue(N,`tx bitrate`);h===null&&F&&(P=parseFloat(F),h=isNaN(P)?null:P),g=parseInt(s.getValue(N,`carrier_changes`),10);let te=s.getValue(N,`operstate`);C=te===`up`?s.getValue(N,`wireless`).trim()?`wireless`:`wired`:`unknown`,(j===`lo`||j.startsWith(`bond`))&&(C=`virtual`);let I=o[e]&&o[e][0]?o[e][0].internal:!1;(e.toLowerCase().indexOf(`loopback`)>-1||k.toLowerCase().indexOf(`loopback`)>-1)&&(I=!0);let ne=I?!1:se(e,k,f);c.push({iface:j,ifaceName:k,default:A===t,ip4:n,ip4subnet:i,ip6:a,ip6subnet:d,mac:f,internal:I,virtual:ne,operstate:te,type:C,duplex:p,mtu:m,speed:h,dhcp:_,dnsSuffix:v,ieee8021xAuth:b,ieee8021xState:S,carrierChanges:g})}}b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)}if(d)if(JSON.stringify(o)===JSON.stringify(v)&&!n)c=b,e&&e(c),a(c);else{v=JSON.parse(JSON.stringify(o));let t=C();D().then(n=>{n.forEach(e=>{let t=!1;Object.keys(o).forEach(n=>{t||o[n].forEach(n=>{Object.keys(n).indexOf(`mac`)>=0&&(t=n.mac===e.mac)})}),t||(o[e.name]=[{mac:e.mac}])}),_=A(),g=O();for(let e in o){let r=s.sanitizeString(e),i=e,a=``,d=``,f=``,p=``,m=``,h=null,v=`down`,y=!1,b=``,S=``,C=``,T=``;if({}.hasOwnProperty.call(o,e)){let s=e;o[e].forEach(t=>{(t.family===`IPv4`||t.family===4)&&(a=t.address,d=t.netmask),(t.family===`IPv6`||t.family===6)&&(!f||f.match(/^fe80::/i))&&(f=t.address,p=t.netmask),m=t.mac;let n=parseInt(process.versions.node.split(`.`),10);m.indexOf(`00:00:0`)>-1&&(l||u)&&!t.internal&&n>=8&&n<=11&&(Object.keys(x).length===0&&(x=w()),m=x[e]||``)}),b=k(g.ifaces,r);let E=!1;n.forEach(e=>{e.mac===m&&!E&&(i=e.iface||i,s=e.name,y=e.dhcp,v=e.operstate,h=v===`up`?e.speed:0,T=e.type,E=!0)}),(e.toLowerCase().indexOf(`wlan`)>=0||s.toLowerCase().indexOf(`wlan`)>=0||s.toLowerCase().indexOf(`802.11n`)>=0||s.toLowerCase().indexOf(`wireless`)>=0||s.toLowerCase().indexOf(`wi-fi`)>=0||s.toLowerCase().indexOf(`wifi`)>=0)&&(T=`wireless`);let D=M(T,r,_);S=D.protocol,C=D.state;let O=o[e]&&o[e][0]?o[e][0].internal:!1;(e.toLowerCase().indexOf(`loopback`)>-1||s.toLowerCase().indexOf(`loopback`)>-1)&&(O=!0);let A=O?!1:se(e,s,m);c.push({iface:i,ifaceName:s,default:i===t,ip4:a,ip4subnet:d,ip6:f,ip6subnet:p,mac:m,internal:O,virtual:A,operstate:v,type:T,duplex:``,mtu:``,speed:h,dhcp:y,dnsSuffix:b,ieee8021xAuth:S,ieee8021xState:C,carrierChanges:0})}}b=c,i.toLowerCase().indexOf(`default`)>=0&&(c=c.filter(e=>e.default),c=c.length>0?c[0]:[]),e&&e(c),a(c)})}})})}e.networkInterfaces=ce;function R(e,t,n,r,i,a,o,s){let c={iface:e,operstate:r,rx_bytes:t,rx_dropped:i,rx_errors:a,tx_bytes:n,tx_dropped:o,tx_errors:s,rx_sec:null,tx_sec:null,ms:0};return g[e]&&g[e].ms?(c.ms=Date.now()-g[e].ms,c.rx_sec=t-g[e].rx_bytes>=0?(t-g[e].rx_bytes)/(c.ms/1e3):0,c.tx_sec=n-g[e].tx_bytes>=0?(n-g[e].tx_bytes)/(c.ms/1e3):0,g[e].rx_bytes=t,g[e].tx_bytes=n,g[e].rx_sec=c.rx_sec,g[e].tx_sec=c.tx_sec,g[e].ms=Date.now(),g[e].last_ms=c.ms,g[e].operstate=r):(g[e]||(g[e]={}),g[e].rx_bytes=t,g[e].tx_bytes=n,g[e].rx_sec=null,g[e].tx_sec=null,g[e].ms=Date.now(),g[e].last_ms=0,g[e].operstate=r),c}function le(e,t){let n=[];return new Promise(r=>{process.nextTick(()=>{if(s.isFunction(e)&&!t)t=e,n=[C()];else{if(typeof e!=`string`&&e!==void 0)return t&&t([]),r([]);e||=C();try{e.__proto__.toLowerCase=s.stringToLower,e.__proto__.replace=s.stringReplace,e.__proto__.toString=s.stringToString,e.__proto__.substr=s.stringSubstr,e.__proto__.substring=s.stringSubstring,e.__proto__.trim=s.stringTrim,e.__proto__.startsWith=s.stringStartWith}catch{Object.setPrototypeOf(e,s.stringObj)}e=e.trim().replace(/,+/g,`|`),n=e.split(`|`)}let i=[],a=[];if(n.length&&n[0].trim()===`*`)n=[],ce(!1).then(e=>{for(let t of e)n.push(t.iface);le(n.join(`,`)).then(e=>{t&&t(e),r(e)})});else{for(let e of n)a.push(ue(e.trim()));a.length?Promise.all(a).then(e=>{t&&t(e),r(e)}):(t&&t(i),r(i))}})})}function ue(e){function t(e){let t=[];for(let n in e)if({}.hasOwnProperty.call(e,n)&&e[n].trim()!==``){let r=e[n].trim().split(`\r `);t.push({name:s.getValue(r,`Name`,`:`).replace(/[()[\] ]+/g,``).replace(/#|\//g,`_`).toLowerCase(),rx_bytes:parseInt(s.getValue(r,`BytesReceivedPersec`,`:`),10),rx_errors:parseInt(s.getValue(r,`PacketsReceivedErrors`,`:`),10),rx_dropped:parseInt(s.getValue(r,`PacketsReceivedDiscarded`,`:`),10),tx_bytes:parseInt(s.getValue(r,`BytesSentPersec`,`:`),10),tx_errors:parseInt(s.getValue(r,`PacketsOutboundErrors`,`:`),10),tx_dropped:parseInt(s.getValue(r,`PacketsOutboundDiscarded`,`:`),10)})}return t}return new Promise(r=>{process.nextTick(()=>{let i=s.sanitizeString(e),a={iface:i,operstate:`unknown`,rx_bytes:0,rx_dropped:0,rx_errors:0,tx_bytes:0,tx_dropped:0,tx_errors:0,rx_sec:null,tx_sec:null,ms:0},c=`unknown`,h=0,_=0,v=0,y=0,b=0,x=0,S,C,w;if(!g[i]||g[i]&&!g[i].ms||g[i]&&g[i].ms&&Date.now()-g[i].ms>=500){if(l&&(o.existsSync(`/sys/class/net/`+i)?(S=`cat /sys/class/net/`+i+`/operstate; cat /sys/class/net/`+i+`/statistics/rx_bytes; cat /sys/class/net/`+i+`/statistics/tx_bytes; cat /sys/class/net/`+i+`/statistics/rx_dropped; cat /sys/class/net/`+i+`/statistics/rx_errors; cat /sys/class/net/`+i+`/statistics/tx_dropped; cat /sys/class/net/`+i+`/statistics/tx_errors; `,n(S,(e,t)=>{e||(C=t.toString().split(` -`),c=C[0].trim(),h=parseInt(C[1],10),_=parseInt(C[2],10),v=parseInt(C[3],10),y=parseInt(C[4],10),b=parseInt(C[5],10),x=parseInt(C[6],10),a=L(i,h,_,c,v,y,b,x)),r(a)})):r(a)),(f||p||m)&&(S=`netstat -ibndI `+i,n(S,(e,t)=>{if(!e){C=t.toString().split(` -`);for(let e=1;e{a.operstate=(t.toString().split(`:`)[1]||``).trim(),a.operstate=(a.operstate||``).toLowerCase(),a.operstate=a.operstate===`active`?`up`:a.operstate===`inactive`?`down`:`unknown`,S=`netstat -bdnI `+i,n(S,(e,t)=>{if(!e&&(C=t.toString().split(` -`),C.length>1&&C[1].trim()!==``)){w=C[1].replace(/ +/g,` `).split(` `);let e=+(w.length>11);h=parseInt(w[e+5]),v=parseInt(w[e+10]),y=parseInt(w[e+4]),_=parseInt(w[e+8]),b=parseInt(w[e+10]),x=parseInt(w[e+7]),a=L(i,h,_,a.operstate,v,y,b,x)}r(a)})})),d){let e=[],n=i;s.powerShell(`Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl`).then((o,s)=>{s||(e=t(o.toString().split(/\n\s*\n/))),le(!1).then(t=>{h=0,_=0,e.forEach(e=>{t.forEach(t=>{(t.iface.toLowerCase()===i.toLowerCase()||t.mac.toLowerCase()===i.toLowerCase()||t.ip4.toLowerCase()===i.toLowerCase()||t.ip6.toLowerCase()===i.toLowerCase()||t.ifaceName.replace(/[()[\] ]+/g,``).replace(/#|\//g,`_`).toLowerCase()===i.replace(/[()[\] ]+/g,``).replace(`#`,`_`).toLowerCase())&&t.ifaceName.replace(/[()[\] ]+/g,``).replace(/#|\//g,`_`).toLowerCase()===e.name&&(n=t.iface,h=e.rx_bytes,v=e.rx_dropped,y=e.rx_errors,_=e.tx_bytes,b=e.tx_dropped,x=e.tx_errors,c=t.operstate)})}),h&&_&&(a=L(n,parseInt(h),parseInt(_),c,v,y,b,x)),r(a)})})}}else a.rx_bytes=g[i].rx_bytes,a.tx_bytes=g[i].tx_bytes,a.rx_sec=g[i].rx_sec,a.tx_sec=g[i].tx_sec,a.ms=g[i].last_ms,a.operstate=g[i].operstate,r(a)})})}e.networkStats=ue;function fe(e,t){let n=``;return e.forEach(e=>{let r=e.split(` `);(parseInt(r[0],10)||-1)===t&&(r.shift(),n=r.join(` `).split(`:`)[0])}),n=n.split(` -`)[0],n=n.split(` /`)[0],n}function pe(e){return new Promise(t=>{process.nextTick(()=>{let r=[];if(l||f||p||m){let i=`export LC_ALL=C; netstat -tunap | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL`;(f||p||m)&&(i=`export LC_ALL=C; netstat -na | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL`),n(i,{maxBuffer:1024*102400},(a,o)=>{let s=o.toString().split(` +`),c=C[0].trim(),h=parseInt(C[1],10),_=parseInt(C[2],10),v=parseInt(C[3],10),y=parseInt(C[4],10),b=parseInt(C[5],10),x=parseInt(C[6],10),a=R(i,h,_,c,v,y,b,x)),r(a)})):r(a)),(f||p||m)&&(S=`netstat -ibndI `+i,n(S,(e,t)=>{if(!e){C=t.toString().split(` +`);for(let e=1;e{a.operstate=(t.toString().split(`:`)[1]||``).trim(),a.operstate=(a.operstate||``).toLowerCase(),a.operstate=a.operstate===`active`?`up`:a.operstate===`inactive`?`down`:`unknown`,S=`netstat -bdnI `+i,n(S,(e,t)=>{if(!e&&(C=t.toString().split(` +`),C.length>1&&C[1].trim()!==``)){w=C[1].replace(/ +/g,` `).split(` `);let e=+(w.length>11);h=parseInt(w[e+5]),v=parseInt(w[e+10]),y=parseInt(w[e+4]),_=parseInt(w[e+8]),b=parseInt(w[e+10]),x=parseInt(w[e+7]),a=R(i,h,_,a.operstate,v,y,b,x)}r(a)})})),d){let e=[],n=i;s.powerShell(`Get-CimInstance Win32_PerfRawData_Tcpip_NetworkInterface | select Name,BytesReceivedPersec,PacketsReceivedErrors,PacketsReceivedDiscarded,BytesSentPersec,PacketsOutboundErrors,PacketsOutboundDiscarded | fl`).then((o,s)=>{s||(e=t(o.toString().split(/\n\s*\n/))),ce(!1).then(t=>{h=0,_=0,e.forEach(e=>{t.forEach(t=>{(t.iface.toLowerCase()===i.toLowerCase()||t.mac.toLowerCase()===i.toLowerCase()||t.ip4.toLowerCase()===i.toLowerCase()||t.ip6.toLowerCase()===i.toLowerCase()||t.ifaceName.replace(/[()[\] ]+/g,``).replace(/#|\//g,`_`).toLowerCase()===i.replace(/[()[\] ]+/g,``).replace(`#`,`_`).toLowerCase())&&t.ifaceName.replace(/[()[\] ]+/g,``).replace(/#|\//g,`_`).toLowerCase()===e.name&&(n=t.iface,h=e.rx_bytes,v=e.rx_dropped,y=e.rx_errors,_=e.tx_bytes,b=e.tx_dropped,x=e.tx_errors,c=t.operstate)})}),h&&_&&(a=R(n,parseInt(h),parseInt(_),c,v,y,b,x)),r(a)})})}}else a.rx_bytes=g[i].rx_bytes,a.tx_bytes=g[i].tx_bytes,a.rx_sec=g[i].rx_sec,a.tx_sec=g[i].tx_sec,a.ms=g[i].last_ms,a.operstate=g[i].operstate,r(a)})})}e.networkStats=le;function de(e,t){let n=``;return e.forEach(e=>{let r=e.split(` `);(parseInt(r[0],10)||-1)===t&&(r.shift(),n=r.join(` `).split(`:`)[0])}),n=n.split(` -`)[0],n=n.split(` /`)[0],n}function fe(e){return new Promise(t=>{process.nextTick(()=>{let r=[];if(l||f||p||m){let i=`export LC_ALL=C; netstat -tunap | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL`;(f||p||m)&&(i=`export LC_ALL=C; netstat -na | grep "ESTABLISHED\\|SYN_SENT\\|SYN_RECV\\|FIN_WAIT1\\|FIN_WAIT2\\|TIME_WAIT\\|CLOSE\\|CLOSE_WAIT\\|LAST_ACK\\|LISTEN\\|CLOSING\\|UNKNOWN"; unset LC_ALL`),n(i,{maxBuffer:1024*102400},(a,o)=>{let s=o.toString().split(` `);!a&&(s.length>1||s[0]!==``)?(s.forEach(e=>{if(e=e.replace(/ +/g,` `).split(` `),e.length>=7){let t=e[3],n=``,i=e[3].split(`:`);i.length>1&&(n=i[i.length-1],i.pop(),t=i.join(`:`));let a=e[4],o=``,s=e[4].split(`:`);s.length>1&&(o=s[s.length-1],s.pop(),a=s.join(`:`));let c=e[5],l=e[6].split(`/`);c&&r.push({protocol:e[0],localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:c,pid:l[0]&&l[0]!==`-`?parseInt(l[0],10):null,process:l[1]?l[1].split(` `)[0].split(`:`)[0]:``})}}),e&&e(r),t(r)):(i=`ss -tunap | grep "ESTAB\\|SYN-SENT\\|SYN-RECV\\|FIN-WAIT1\\|FIN-WAIT2\\|TIME-WAIT\\|CLOSE\\|CLOSE-WAIT\\|LAST-ACK\\|LISTEN\\|CLOSING"`,n(i,{maxBuffer:1024*102400},(n,i)=>{n||i.toString().split(` `).forEach(e=>{if(e=e.replace(/ +/g,` `).split(` `),e.length>=6){let t=e[4],n=``,i=e[4].split(`:`);i.length>1&&(n=i[i.length-1],i.pop(),t=i.join(`:`));let a=e[5],o=``,s=e[5].split(`:`);s.length>1&&(o=s[s.length-1],s.pop(),a=s.join(`:`));let c=e[1];c===`ESTAB`&&(c=`ESTABLISHED`),c===`TIME-WAIT`&&(c=`TIME_WAIT`);let l=null,u=``;if(e.length>=7&&e[6].indexOf(`users:`)>-1){let t=e[6].replace(`users:(("`,``).replace(/"/g,``).replace(`pid=`,``).split(`,`);if(t.length>2){u=t[0];let e=parseInt(t[1],10);e>0&&(l=e)}}c&&r.push({protocol:e[0],localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:c,pid:l,process:u})}}),e&&e(r),t(r)}))})}if(u){let i=`ESTABLISHED|SYN_SENT|SYN_RECV|FIN_WAIT1|FIN_WAIT_1|FIN_WAIT2|FIN_WAIT_2|TIME_WAIT|CLOSE|CLOSE_WAIT|LAST_ACK|LISTEN|CLOSING|UNKNOWN`.split(`|`);n(`netstat -natvln | head -n2; netstat -natvln | grep "tcp4\\|tcp6\\|udp4\\|udp6"`,{maxBuffer:1024*102400},(a,o)=>{a||n(`ps -axo pid,command`,{maxBuffer:1024*102400},(n,a)=>{let s=a.toString().split(` `);s=s.map(e=>e.trim().replace(/ +/g,` `));let c=o.toString().split(` -`);c.shift();let l=8;c.length>1&&c[0].indexOf(`pid`)>0&&(l=(c.shift()||``).replace(/ Address/g,`_Address`).replace(/process:/g,``).replace(/ +/g,` `).split(` `).indexOf(`pid`)),c.forEach(e=>{if(e=e.replace(/ +/g,` `).split(` `),e.length>=8){let t=e[3],n=``,a=e[3].split(`.`);a.length>1&&(n=a[a.length-1],a.pop(),t=a.join(`.`));let o=e[4],c=``,u=e[4].split(`.`);u.length>1&&(c=u[u.length-1],u.pop(),o=u.join(`.`));let d=i.indexOf(e[5])>=0,f=d?e[5]:`UNKNOWN`,p=``;e[e.length-9].indexOf(`:`)>=0?p=e[e.length-9].split(`:`)[1]:(p=e[l+(d?0:-1)],p.indexOf(`:`)>=0&&(p=p.split(`:`)[1]));let m=parseInt(p,10);f&&r.push({protocol:e[0],localAddress:t,localPort:n,peerAddress:o,peerPort:c,state:f,pid:m,process:fe(s,m)})}}),e&&e(r),t(r)})})}if(d)try{n(`netstat -nao`,s.execOptsWin,(n,i)=>{n||(i.toString().split(`\r -`).forEach(e=>{if(e=e.trim().replace(/ +/g,` `).split(` `),e.length>=4){let t=e[1],n=``,i=e[1].split(`:`);i.length>1&&(n=i[i.length-1],i.pop(),t=i.join(`:`)),t=t.replace(/\[/g,``).replace(/\]/g,``);let a=e[2],o=``,c=e[2].split(`:`);c.length>1&&(o=c[c.length-1],c.pop(),a=c.join(`:`)),a=a.replace(/\[/g,``).replace(/\]/g,``);let l=s.toInt(e[4]),u=e[3];u===`HERGESTELLT`&&(u=`ESTABLISHED`),u.startsWith(`ABH`)&&(u=`LISTEN`),u===`SCHLIESSEN_WARTEN`&&(u=`CLOSE_WAIT`),u===`WARTEND`&&(u=`TIME_WAIT`),u===`SYN_GESENDET`&&(u=`SYN_SENT`),u===`LISTENING`&&(u=`LISTEN`),u===`SYN_RECEIVED`&&(u=`SYN_RECV`),u===`FIN_WAIT_1`&&(u=`FIN_WAIT1`),u===`FIN_WAIT_2`&&(u=`FIN_WAIT2`),e[0].toLowerCase()!==`udp`&&u?r.push({protocol:e[0].toLowerCase(),localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:u,pid:l,process:``}):e[0].toLowerCase()===`udp`&&r.push({protocol:e[0].toLowerCase(),localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:``,pid:parseInt(e[3],10),process:``})}}),e&&e(r),t(r))})}catch{e&&e(r),t(r)}})})}e.networkConnections=pe;function me(e){return new Promise(r=>{process.nextTick(()=>{let i=``;if(l||f||p||m)try{n(`ip route get 1`,{maxBuffer:1024*102400},(t,n)=>{if(t)e&&e(i),r(i);else{let t=n.toString().split(` +`);c.shift();let l=8;c.length>1&&c[0].indexOf(`pid`)>0&&(l=(c.shift()||``).replace(/ Address/g,`_Address`).replace(/process:/g,``).replace(/ +/g,` `).split(` `).indexOf(`pid`)),c.forEach(e=>{if(e=e.replace(/ +/g,` `).split(` `),e.length>=8){let t=e[3],n=``,a=e[3].split(`.`);a.length>1&&(n=a[a.length-1],a.pop(),t=a.join(`.`));let o=e[4],c=``,u=e[4].split(`.`);u.length>1&&(c=u[u.length-1],u.pop(),o=u.join(`.`));let d=i.indexOf(e[5])>=0,f=d?e[5]:`UNKNOWN`,p=``;e[e.length-9].indexOf(`:`)>=0?p=e[e.length-9].split(`:`)[1]:(p=e[l+(d?0:-1)],p.indexOf(`:`)>=0&&(p=p.split(`:`)[1]));let m=parseInt(p,10);f&&r.push({protocol:e[0],localAddress:t,localPort:n,peerAddress:o,peerPort:c,state:f,pid:m,process:de(s,m)})}}),e&&e(r),t(r)})})}if(d)try{n(`netstat -nao`,s.execOptsWin,(n,i)=>{n||(i.toString().split(`\r +`).forEach(e=>{if(e=e.trim().replace(/ +/g,` `).split(` `),e.length>=4){let t=e[1],n=``,i=e[1].split(`:`);i.length>1&&(n=i[i.length-1],i.pop(),t=i.join(`:`)),t=t.replace(/\[/g,``).replace(/\]/g,``);let a=e[2],o=``,c=e[2].split(`:`);c.length>1&&(o=c[c.length-1],c.pop(),a=c.join(`:`)),a=a.replace(/\[/g,``).replace(/\]/g,``);let l=s.toInt(e[4]),u=e[3];u===`HERGESTELLT`&&(u=`ESTABLISHED`),u.startsWith(`ABH`)&&(u=`LISTEN`),u===`SCHLIESSEN_WARTEN`&&(u=`CLOSE_WAIT`),u===`WARTEND`&&(u=`TIME_WAIT`),u===`SYN_GESENDET`&&(u=`SYN_SENT`),u===`LISTENING`&&(u=`LISTEN`),u===`SYN_RECEIVED`&&(u=`SYN_RECV`),u===`FIN_WAIT_1`&&(u=`FIN_WAIT1`),u===`FIN_WAIT_2`&&(u=`FIN_WAIT2`),e[0].toLowerCase()!==`udp`&&u?r.push({protocol:e[0].toLowerCase(),localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:u,pid:l,process:``}):e[0].toLowerCase()===`udp`&&r.push({protocol:e[0].toLowerCase(),localAddress:t,localPort:n,peerAddress:a,peerPort:o,state:``,pid:parseInt(e[3],10),process:``})}}),e&&e(r),t(r))})}catch{e&&e(r),t(r)}})})}e.networkConnections=fe;function pe(e){return new Promise(r=>{process.nextTick(()=>{let i=``;if(l||f||p||m)try{n(`ip route get 1`,{maxBuffer:1024*102400},(t,n)=>{if(t)e&&e(i),r(i);else{let t=n.toString().split(` `),a=(t&&t[0]?t[0]:``).split(` via `);a&&a[1]&&(a=a[1].split(` `),i=a[0]),e&&e(i),r(i)}})}catch{e&&e(i),r(i)}if(u){let t=`route -n get default`;try{n(t,{maxBuffer:1024*102400},(a,o)=>{if(!a){let e=o.toString().split(` `).map(e=>e.trim());i=s.getValue(e,`gateway`)}i?(e&&e(i),r(i)):(t=`netstat -rn | awk '/default/ {print $2}'`,n(t,{maxBuffer:1024*102400},(t,n)=>{i=n.toString().split(` `).map(e=>e.trim()).find(e=>/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(e)),e&&e(i),r(i)}))})}catch{e&&e(i),r(i)}}if(d)try{n(`netstat -r`,s.execOptsWin,(n,a)=>{a.toString().split(t.EOL).forEach(e=>{if(e=e.replace(/\s+/g,` `).trim(),e.indexOf(`0.0.0.0 0.0.0.0`)>-1&&!/[a-zA-Z]/.test(e)){let t=e.split(` `);t.length>=5&&t[t.length-3].indexOf(`.`)>-1&&(i=t[t.length-3])}}),i?(e&&e(i),r(i)):s.powerShell(`Get-CimInstance -ClassName Win32_IP4RouteTable | Where-Object { $_.Destination -eq '0.0.0.0' -and $_.Mask -eq '0.0.0.0' }`).then(t=>{let n=t.toString().split(`\r -`);n.length>1&&!i&&(i=s.getValue(n,`NextHop`),e&&e(i),r(i))})})}catch{e&&e(i),r(i)}})})}e.networkGatewayDefault=me})),jO=R((e=>{let t=B(`os`),n=B(`child_process`).exec,r=B(`child_process`).execSync,i=SO(),a=process.platform,o=a===`linux`||a===`android`,s=a===`darwin`,c=a===`win32`;function l(e){let t=parseFloat(e);return t<0?0:t>=100?-50:t/2-100}function u(e){let t=2*(parseFloat(e)+100);return t<=100?t:100}let d={1:2412,2:2417,3:2422,4:2427,5:2432,6:2437,7:2442,8:2447,9:2452,10:2457,11:2462,12:2467,13:2472,14:2484,32:5160,34:5170,36:5180,38:5190,40:5200,42:5210,44:5220,46:5230,48:5240,50:5250,52:5260,54:5270,56:5280,58:5290,60:5300,62:5310,64:5320,68:5340,96:5480,100:5500,102:5510,104:5520,106:5530,108:5540,110:5550,112:5560,114:5570,116:5580,118:5590,120:5600,122:5610,124:5620,126:5630,128:5640,132:5660,134:5670,136:5680,138:5690,140:5700,142:5710,144:5720,149:5745,151:5755,153:5765,155:5775,157:5785,159:5795,161:5805,165:5825,169:5845,173:5865,183:4915,184:4920,185:4925,187:4935,188:4940,189:4945,192:4960,196:4980};function f(e){return{}.hasOwnProperty.call(d,e)?d[e]:null}function p(e){let t=0;for(let n in d)({}).hasOwnProperty.call(d,n)&&d[n]===e&&(t=i.toInt(n));return t}function m(){let e=[];try{let t=r(`iw dev 2>/dev/null`,i.execOptsLinux).toString().split(` +`);n.length>1&&!i&&(i=s.getValue(n,`NextHop`),e&&e(i),r(i))})})}catch{e&&e(i),r(i)}})})}e.networkGatewayDefault=pe})),jO=z((e=>{let t=V(`os`),n=V(`child_process`).exec,r=V(`child_process`).execSync,i=SO(),a=process.platform,o=a===`linux`||a===`android`,s=a===`darwin`,c=a===`win32`;function l(e){let t=parseFloat(e);return t<0?0:t>=100?-50:t/2-100}function u(e){let t=2*(parseFloat(e)+100);return t<=100?t:100}let d={1:2412,2:2417,3:2422,4:2427,5:2432,6:2437,7:2442,8:2447,9:2452,10:2457,11:2462,12:2467,13:2472,14:2484,32:5160,34:5170,36:5180,38:5190,40:5200,42:5210,44:5220,46:5230,48:5240,50:5250,52:5260,54:5270,56:5280,58:5290,60:5300,62:5310,64:5320,68:5340,96:5480,100:5500,102:5510,104:5520,106:5530,108:5540,110:5550,112:5560,114:5570,116:5580,118:5590,120:5600,122:5610,124:5620,126:5630,128:5640,132:5660,134:5670,136:5680,138:5690,140:5700,142:5710,144:5720,149:5745,151:5755,153:5765,155:5775,157:5785,159:5795,161:5805,165:5825,169:5845,173:5865,183:4915,184:4920,185:4925,187:4935,188:4940,189:4945,192:4960,196:4980};function f(e){return{}.hasOwnProperty.call(d,e)?d[e]:null}function p(e){let t=0;for(let n in d)({}).hasOwnProperty.call(d,n)&&d[n]===e&&(t=i.toInt(n));return t}function m(){let e=[];try{let t=r(`iw dev 2>/dev/null`,i.execOptsLinux).toString().split(` `).map(e=>e.trim()).join(` `).split(` Interface `);return t.shift(),t.forEach(t=>{let n=t.split(` @@ -369,7 +369,7 @@ Interface `);return t.shift(),t.forEach(t=>{let n=t.split(` `).split(`:\r \r `);a.shift(),a.forEach(e=>{let t=e.split(`\r -`);if(t.length>=5){let e=t[0].indexOf(`:`)>=0?t[0].split(`:`)[1].trim():``,n=t[1].indexOf(`:`)>=0?t[1].split(`:`)[1].trim():``,i=t[2].indexOf(`:`)>=0?t[2].split(`:`)[1].trim():``,a=t[3].indexOf(`:`)>=0?t[3].split(`:`):[];a.shift();let o=a.join(`:`).trim(),s=S(n);e&&n&&i&&o&&r.push({id:i,iface:e,model:n,vendor:s,mac:o})}}),e&&e(r),t(r)}):(e&&e(r),t(r))})})}e.wifiInterfaces=w})),MO=R((e=>{let t=B(`os`),n=B(`fs`),r=B(`path`),i=B(`child_process`).exec,a=B(`child_process`).execSync,o=SO(),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`,h={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},g={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},_={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},v={0:`unknown`,1:`other`,2:`ready`,3:`running`,4:`blocked`,5:`suspended blocked`,6:`suspended ready`,7:`terminated`,8:`stopped`,9:`growing`};function y(e){let t=e,n=e.replace(/ +/g,` `).split(` `);return n.length===5&&(t=n[4]+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(n[1].toUpperCase())/3+1)).slice(-2)+`-`+(`0`+n[2]).slice(-2)+` `+n[3]),t}function b(e){let t=new Date;t=new Date(t.getTime()-t.getTimezoneOffset()*6e4);let n=e.split(`-`),r=n.length-1,i=r>0?parseInt(n[r-1]):0,a=n[r].split(`:`),s=a.length===3?parseInt(a[0]||0):0,c=parseInt(a[+(a.length===3)]||0),l=parseInt(a[a.length===3?2:1]||0),u=(((i*24+s)*60+c)*60+l)*1e3,d=new Date(t.getTime()),f=d.toISOString().substring(0,10)+` `+d.toISOString().substring(11,19);try{d=new Date(t.getTime()-u),f=d.toISOString().substring(0,10)+` `+d.toISOString().substring(11,19)}catch{o.noop()}return f}function x(e,t){return o.isFunction(e)&&!t&&(t=e,e=``),new Promise(n=>{process.nextTick(()=>{if(typeof e!=`string`)return t&&t([]),n([]);if(e){let r=``;try{r.__proto__.toLowerCase=o.stringToLower,r.__proto__.replace=o.stringReplace,r.__proto__.toString=o.stringToString,r.__proto__.substr=o.stringSubstr,r.__proto__.substring=o.stringSubstring,r.__proto__.trim=o.stringTrim,r.__proto__.startsWith=o.stringStartWith}catch{Object.setPrototypeOf(r,o.stringObj)}let s=o.sanitizeShellString(e),m=o.mathMin(s.length,2e3);for(let e=0;e<=m;e++)s[e]!==void 0&&(r+=s[e]);r=r.trim().toLowerCase().replace(/, /g,`|`).replace(/,+/g,`|`),r===``&&(r=`*`),o.isPrototypePolluted()&&r!==`*`&&(r=`------`);let h=r.split(`|`),_=[],v=[];if(c||d||f||p||l){if((c||d||f||p)&&r===`*`)try{let e=a(`systemctl --all --type=service --no-legend 2> /dev/null`,o.execOptsLinux).toString().split(` +`);if(t.length>=5){let e=t[0].indexOf(`:`)>=0?t[0].split(`:`)[1].trim():``,n=t[1].indexOf(`:`)>=0?t[1].split(`:`)[1].trim():``,i=t[2].indexOf(`:`)>=0?t[2].split(`:`)[1].trim():``,a=t[3].indexOf(`:`)>=0?t[3].split(`:`):[];a.shift();let o=a.join(`:`).trim(),s=S(n);e&&n&&i&&o&&r.push({id:i,iface:e,model:n,vendor:s,mac:o})}}),e&&e(r),t(r)}):(e&&e(r),t(r))})})}e.wifiInterfaces=w})),MO=z((e=>{let t=V(`os`),n=V(`fs`),r=V(`path`),i=V(`child_process`).exec,a=V(`child_process`).execSync,o=SO(),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`,h={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},g={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},_={all:0,all_utime:0,all_stime:0,list:{},ms:0,result:{}},v={0:`unknown`,1:`other`,2:`ready`,3:`running`,4:`blocked`,5:`suspended blocked`,6:`suspended ready`,7:`terminated`,8:`stopped`,9:`growing`};function y(e){let t=e,n=e.replace(/ +/g,` `).split(` `);return n.length===5&&(t=n[4]+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(n[1].toUpperCase())/3+1)).slice(-2)+`-`+(`0`+n[2]).slice(-2)+` `+n[3]),t}function b(e){let t=new Date;t=new Date(t.getTime()-t.getTimezoneOffset()*6e4);let n=e.split(`-`),r=n.length-1,i=r>0?parseInt(n[r-1]):0,a=n[r].split(`:`),s=a.length===3?parseInt(a[0]||0):0,c=parseInt(a[+(a.length===3)]||0),l=parseInt(a[a.length===3?2:1]||0),u=(((i*24+s)*60+c)*60+l)*1e3,d=new Date(t.getTime()),f=d.toISOString().substring(0,10)+` `+d.toISOString().substring(11,19);try{d=new Date(t.getTime()-u),f=d.toISOString().substring(0,10)+` `+d.toISOString().substring(11,19)}catch{o.noop()}return f}function x(e,t){return o.isFunction(e)&&!t&&(t=e,e=``),new Promise(n=>{process.nextTick(()=>{if(typeof e!=`string`)return t&&t([]),n([]);if(e){let r=``;try{r.__proto__.toLowerCase=o.stringToLower,r.__proto__.replace=o.stringReplace,r.__proto__.toString=o.stringToString,r.__proto__.substr=o.stringSubstr,r.__proto__.substring=o.stringSubstring,r.__proto__.trim=o.stringTrim,r.__proto__.startsWith=o.stringStartWith}catch{Object.setPrototypeOf(r,o.stringObj)}let s=o.sanitizeShellString(e),m=o.mathMin(s.length,2e3);for(let e=0;e<=m;e++)s[e]!==void 0&&(r+=s[e]);r=r.trim().toLowerCase().replace(/, /g,`|`).replace(/,+/g,`|`),r===``&&(r=`*`),o.isPrototypePolluted()&&r!==`*`&&(r=`------`);let h=r.split(`|`),_=[],v=[];if(c||d||f||p||l){if((c||d||f||p)&&r===`*`)try{let e=a(`systemctl --all --type=service --no-legend 2> /dev/null`,o.execOptsLinux).toString().split(` `);h=[];for(let t of e){let e=t.split(`.service`)[0];e&&t.indexOf(` not-found `)===-1&&h.push(e.trim())}r=h.join(`|`)}catch{try{r=``;let e=a(`service --status-all 2> /dev/null`,o.execOptsLinux).toString().split(` `);for(let t of e){let e=t.split(`]`);e.length===2&&(r+=(r===``?``:`|`)+e[1].trim())}h=r.split(`|`)}catch{try{let e=a(`ls /etc/init.d/ -m 2> /dev/null`,o.execOptsLinux).toString().split(` `).join(``);if(r=``,e){let t=e.split(`,`);for(let e of t){let t=e.trim();t&&(r+=(r===``?``:`|`)+t)}h=r.split(`|`)}}catch{r=``,h=[]}}}l&&r===`*`&&(t&&t(_),n(_));let e=l?[`-caxo`,`pcpu,pmem,pid,command`]:[`-axo`,`pcpu,pmem,pid,command`];r!==``&&h.length>0?o.execSafe(`ps`,e).then(r=>{if(r){let e=r.replace(/ +/g,` `).replace(/,+/g,`.`).split(` @@ -382,7 +382,7 @@ Interface `);return t.shift(),t.forEach(t=>{let n=t.split(` `);t.shift(),r.list=x(t).slice(),r.all=r.list.length,r.running=r.list.filter(e=>e.state===`running`).length,r.blocked=r.list.filter(e=>e.state===`blocked`).length,r.sleeping=r.list.filter(e=>e.state===`sleeping`).length,e&&e(r),n(r)}}))})}catch{e&&e(r),n(r)}}else if(u)try{o.powerShell(`Get-CimInstance Win32_Process | select-Object ProcessId,ParentProcessId,ExecutionState,Caption,CommandLine,ExecutablePath,UserModeTime,KernelModeTime,WorkingSetSize,Priority,PageFileUsage, @{n="CreationDate";e={$_.CreationDate.ToString("yyyy-MM-dd HH:mm:ss")}} | ConvertTo-Json -compress`).then((i,a)=>{if(!a){let e=[],n=[],a={},o=0,s=0,c=[];try{i=i.trim().replace(/^\uFEFF/,``),c=JSON.parse(i)}catch{}c.forEach(i=>{let a=i.ProcessId,c=i.ParentProcessId,l=i.ExecutionState||null,u=i.Caption,d=i.CommandLine,f=i.ExecutablePath,p=i.UserModeTime,m=i.KernelModeTime,h=i.WorkingSetSize;o+=p,s+=m,r.all++,l||r.unknown++,l===`3`&&r.running++,(l===`4`||l===`5`)&&r.blocked++,n.push({pid:a,utime:p,stime:m,cpu:0,cpuu:0,cpus:0}),e.push({pid:a,parentPid:c,name:u,cpu:0,cpuu:0,cpus:0,mem:h/t.totalmem()*100,priority:i.Priority|null,memVsz:i.PageFileUsage||null,memRss:Math.floor((i.WorkingSetSize||0)/1024),nice:0,started:i.CreationDate,state:l?v[l]:v[0],tty:``,user:``,command:d||u,path:f,params:``})}),r.sleeping=r.all-r.running-r.blocked-r.unknown,r.list=e,n.forEach(e=>{let t=w(e,o+s,h),n=r.list.map(e=>e.pid).indexOf(t.pid);n>=0&&(r.list[n].cpu=t.cpuu+t.cpus,r.list[n].cpuu=t.cpuu,r.list[n].cpus=t.cpus),a[t.pid]={cpuu:t.cpuu,cpus:t.cpus,utime:t.utime,stime:t.stime}}),h.all=o+s,h.all_utime=o,h.all_stime=s,h.list=Object.assign({},a),h.ms=Date.now()-h.ms,h.result=Object.assign({},r)}e&&e(r),n(r)})}catch{e&&e(r),n(r)}else e&&e(r),n(r);else e&&e(h.result),n(h.result)})})}e.processes=T;function E(e,n){return o.isFunction(e)&&!n&&(n=e,e=``),new Promise(r=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return n&&n([]),r([]);let a=``;try{a.__proto__.toLowerCase=o.stringToLower,a.__proto__.replace=o.stringReplace,a.__proto__.toString=o.stringToString,a.__proto__.substr=o.stringSubstr,a.__proto__.substring=o.stringSubstring,a.__proto__.trim=o.stringTrim,a.__proto__.startsWith=o.stringStartWith}catch{Object.setPrototypeOf(a,o.stringObj)}let s=o.sanitizeShellString(e),m=o.mathMin(s.length,2e3);for(let e=0;e<=m;e++)s[e]!==void 0&&(a+=s[e]);a=a.trim().toLowerCase().replace(/, /g,`|`).replace(/,+/g,`|`),a===``&&(a=`*`),o.isPrototypePolluted()&&a!==`*`&&(a=`------`);let h=a.split(`|`),g=[];if(!o.isPrototypePolluted()&&(o.sanitizeShellString(e)||`*`)&&h.length&&h[0]!==`------`){if(u)try{o.powerShell(`Get-CimInstance Win32_Process | select ProcessId,Caption,UserModeTime,KernelModeTime,WorkingSetSize | ConvertTo-Json -compress`).then((e,i)=>{if(!i){let i=[],o={},s=0,c=0,l=[];try{e=e.trim().replace(/^\uFEFF/,``),l=JSON.parse(e)}catch{}l.forEach(e=>{let n=e.ProcessId,r=e.Caption,o=e.UserModeTime,l=e.KernelModeTime,u=e.WorkingSetSize;s+=o,c+=l,i.push({pid:n,name:r,utime:o,stime:l,cpu:0,cpuu:0,cpus:0,mem:u});let d=``,f=!1;if(h.forEach(e=>{r.toLowerCase().indexOf(e.toLowerCase())>=0&&!f&&(f=!0,d=e)}),a===`*`||f){let e=!1;g.forEach(r=>{r.proc.toLowerCase()===d.toLowerCase()&&(r.pids.push(n),r.mem+=u/t.totalmem()*100,e=!0)}),e||g.push({proc:d,pid:n,pids:[n],cpu:0,mem:u/t.totalmem()*100})}}),a!==`*`&&h.filter(e=>i.filter(t=>t.name.toLowerCase().indexOf(e)>=0).length===0).forEach(e=>{g.push({proc:e,pid:null,pids:[],cpu:0,mem:0})}),i.forEach(e=>{let t=w(e,s+c,_),n=-1;for(let e=0;e=0)&&(n=e);n>=0&&(g[n].cpu+=t.cpuu+t.cpus),o[t.pid]={cpuu:t.cpuu,cpus:t.cpus,utime:t.utime,stime:t.stime}}),_.all=s+c,_.all_utime=s,_.all_stime=c,_.list=Object.assign({},o),_.ms=Date.now()-_.ms,_.result=JSON.parse(JSON.stringify(g)),n&&n(g),r(g)}})}catch{n&&n(g),r(g)}(l||c||d||f||p)&&o.execSafe(`ps`,[`-axo`,`pid,ppid,pcpu,pmem,comm`]).then(e=>{if(e){let t=[],o=e.toString().split(` `).filter(e=>{if(a===`*`)return!0;if(e.toLowerCase().indexOf(`grep`)!==-1)return!1;let t=!1;return h.forEach(n=>{t||=e.toLowerCase().indexOf(n.toLowerCase())>=0}),t});if(o.shift(),o.forEach(e=>{let n=e.trim().replace(/ +/g,` `).split(` `);if(n.length>4){let e=n[4].indexOf(`/`)>=0?n[4].substring(0,n[4].indexOf(`/`)):n[4],r=c?e:n[4].substring(n[4].lastIndexOf(`/`)+1);t.push({name:r,pid:parseInt(n[0])||0,ppid:parseInt(n[1])||0,cpu:parseFloat(n[2].replace(`,`,`.`)),mem:parseFloat(n[3].replace(`,`,`.`))})}}),t.forEach(e=>{let t=-1,n=!1,r=e.name;for(let n=0;n=0&&(t=n);h.forEach(t=>{e.name.toLowerCase().indexOf(t.toLowerCase())>=0&&!n&&(n=!0,r=t)}),(a===`*`||n)&&(t<0?r&&g.push({proc:r,pid:e.pid,pids:[e.pid],cpu:e.cpu,mem:e.mem}):(e.ppid<10&&(g[t].pid=e.pid),g[t].pids.push(e.pid),g[t].cpu+=e.cpu,g[t].mem+=e.mem))}),a!==`*`&&h.filter(e=>t.filter(t=>t.name.toLowerCase().indexOf(e)>=0).length===0).forEach(e=>{g.push({proc:e,pid:null,pids:[],cpu:0,mem:0})}),c){g.forEach(e=>{e.cpu=0});let e=`cat /proc/stat | grep "cpu "`;for(let t in g)for(let n in g[t].pids)e+=`;cat /proc/`+g[t].pids[n]+`/stat`;i(e,{maxBuffer:1024*102400},(e,t)=>{let i=t.toString().split(` -`),a=S(i.shift()),o={},s={};i.forEach(e=>{if(s=C(e,a,_),s.pid){let e=-1;for(let t in g)g[t].pids.indexOf(s.pid)>=0&&(e=t);e>=0&&(g[e].cpu+=s.cpuu+s.cpus),o[s.pid]={cpuu:s.cpuu,cpus:s.cpus,utime:s.utime,stime:s.stime,cutime:s.cutime,cstime:s.cstime}}}),g.forEach(e=>{e.cpu=Math.round(e.cpu*100)/100}),_.all=a,_.list=Object.assign({},o),_.ms=Date.now()-_.ms,_.result=Object.assign({},g),n&&n(g),r(g)})}else n&&n(g),r(g)}else n&&n(g),r(g)})}})})}e.processLoad=E})),NO=R((e=>{let t=B(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`;function d(e,t){let r=new Date().toISOString().slice(0,10);try{r=``+new Date().getFullYear()+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(e.toUpperCase())/3+1)).slice(-2)+`-`+(`0`+t).slice(-2),new Date(r)>new Date&&(r=``+(new Date().getFullYear()-1)+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(e.toUpperCase())/3+1)).slice(-2)+`-`+(`0`+t).slice(-2))}catch{n.noop()}return r}function f(e,t){let n=[],r=[],i={},a=!0,o=[],s=[],c={},l=!0,u=!1;return e.forEach(e=>{if(e===`---`)l=!1;else{let f=e.replace(/ +/g,` `).split(` `);if(l){if((e.toLowerCase().indexOf(`unexpected`)>=0||e.toLowerCase().indexOf(`unrecognized`)>=0)&&(u=!0,r=[]),!u){let e=f&&f.length>4&&f[4].indexOf(`:`)>0?4:3;r.push({user:f[0],tty:f[1],date:e===4?d(f[2],f[3]):f[2],time:f[e],ip:f&&f.length>e+1?f[e+1].replace(/\(/g,``).replace(/\)/g,``):``,command:``})}}else a?e[0]!==` `&&(o=f,o.forEach(t=>{s.push(e.indexOf(t))}),a=!1):(i.user=e.substring(s[0],s[1]-1).trim(),i.tty=e.substring(s[1],s[2]-1).trim(),i.ip=e.substring(s[2],s[3]-1).replace(/\(/g,``).replace(/\)/g,``).trim(),i.command=e.substring(s[7],1e3).trim(),c=r.length||t===1?r.filter(e=>e.user.substring(0,8).trim()===i.user&&e.tty===i.tty):[{user:i.user,tty:i.tty,date:``,time:``,ip:``}],c.length===1&&c[0].user!==``&&n.push({user:c[0].user,tty:c[0].tty,date:c[0].date,time:c[0].time,ip:c[0].ip,command:i.command}))}}),n.length===0&&t===2?r:n}function p(e){let t=[],n=[],r={},i={},a=!0;return e.forEach(e=>{if(e===`---`)a=!1;else{let o=e.replace(/ +/g,` `).split(` `);a?n.push({user:o[0],tty:o[1],date:d(o[2],o[3]),time:o[4]}):(r.user=o[0],r.tty=o[1],r.ip=o[2]===`-`?``:o[2],r.command=o.slice(5,1e3).join(` `),i=n.filter(e=>e.user.substring(0,10)===r.user.substring(0,10)&&(e.tty.substring(3,1e3)===r.tty||e.tty===r.tty)),i.length===1&&t.push({user:i[0].user,tty:i[0].tty,date:i[0].date,time:i[0].time,ip:r.ip,command:r.command}))}}),t}function m(e){return new Promise(r=>{process.nextTick(()=>{let d=[];if(i&&t(`export LC_ALL=C; who --ips; echo "---"; w; unset LC_ALL | tail -n +2`,(n,i)=>{if(n)e&&e(d),r(d);else{let n=i.toString().split(` +`),a=S(i.shift()),o={},s={};i.forEach(e=>{if(s=C(e,a,_),s.pid){let e=-1;for(let t in g)g[t].pids.indexOf(s.pid)>=0&&(e=t);e>=0&&(g[e].cpu+=s.cpuu+s.cpus),o[s.pid]={cpuu:s.cpuu,cpus:s.cpus,utime:s.utime,stime:s.stime,cutime:s.cutime,cstime:s.cstime}}}),g.forEach(e=>{e.cpu=Math.round(e.cpu*100)/100}),_.all=a,_.list=Object.assign({},o),_.ms=Date.now()-_.ms,_.result=Object.assign({},g),n&&n(g),r(g)})}else n&&n(g),r(g)}else n&&n(g),r(g)})}})})}e.processLoad=E})),NO=z((e=>{let t=V(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`;function d(e,t){let r=new Date().toISOString().slice(0,10);try{r=``+new Date().getFullYear()+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(e.toUpperCase())/3+1)).slice(-2)+`-`+(`0`+t).slice(-2),new Date(r)>new Date&&(r=``+(new Date().getFullYear()-1)+`-`+(`0`+(`JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC`.indexOf(e.toUpperCase())/3+1)).slice(-2)+`-`+(`0`+t).slice(-2))}catch{n.noop()}return r}function f(e,t){let n=[],r=[],i={},a=!0,o=[],s=[],c={},l=!0,u=!1;return e.forEach(e=>{if(e===`---`)l=!1;else{let f=e.replace(/ +/g,` `).split(` `);if(l){if((e.toLowerCase().indexOf(`unexpected`)>=0||e.toLowerCase().indexOf(`unrecognized`)>=0)&&(u=!0,r=[]),!u){let e=f&&f.length>4&&f[4].indexOf(`:`)>0?4:3;r.push({user:f[0],tty:f[1],date:e===4?d(f[2],f[3]):f[2],time:f[e],ip:f&&f.length>e+1?f[e+1].replace(/\(/g,``).replace(/\)/g,``):``,command:``})}}else a?e[0]!==` `&&(o=f,o.forEach(t=>{s.push(e.indexOf(t))}),a=!1):(i.user=e.substring(s[0],s[1]-1).trim(),i.tty=e.substring(s[1],s[2]-1).trim(),i.ip=e.substring(s[2],s[3]-1).replace(/\(/g,``).replace(/\)/g,``).trim(),i.command=e.substring(s[7],1e3).trim(),c=r.length||t===1?r.filter(e=>e.user.substring(0,8).trim()===i.user&&e.tty===i.tty):[{user:i.user,tty:i.tty,date:``,time:``,ip:``}],c.length===1&&c[0].user!==``&&n.push({user:c[0].user,tty:c[0].tty,date:c[0].date,time:c[0].time,ip:c[0].ip,command:i.command}))}}),n.length===0&&t===2?r:n}function p(e){let t=[],n=[],r={},i={},a=!0;return e.forEach(e=>{if(e===`---`)a=!1;else{let o=e.replace(/ +/g,` `).split(` `);a?n.push({user:o[0],tty:o[1],date:d(o[2],o[3]),time:o[4]}):(r.user=o[0],r.tty=o[1],r.ip=o[2]===`-`?``:o[2],r.command=o.slice(5,1e3).join(` `),i=n.filter(e=>e.user.substring(0,10)===r.user.substring(0,10)&&(e.tty.substring(3,1e3)===r.tty||e.tty===r.tty)),i.length===1&&t.push({user:i[0].user,tty:i[0].tty,date:i[0].date,time:i[0].time,ip:r.ip,command:r.command}))}}),t}function m(e){return new Promise(r=>{process.nextTick(()=>{let d=[];if(i&&t(`export LC_ALL=C; who --ips; echo "---"; w; unset LC_ALL | tail -n +2`,(n,i)=>{if(n)e&&e(d),r(d);else{let n=i.toString().split(` `);d=f(n,1),d.length===0?t(`who; echo "---"; w | tail -n +2`,(t,i)=>{t||(n=i.toString().split(` `),d=f(n,2)),e&&e(d),r(d)}):(e&&e(d),r(d))}}),(s||c||l)&&t(`who; echo "---"; w -ih`,(t,n)=>{t||(d=p(n.toString().split(` `))),e&&e(d),r(d)}),u&&t(`who; echo "---"; w -h`,(t,n)=>{t||(d=p(n.toString().split(` @@ -391,12 +391,12 @@ Interface `);return t.shift(),t.forEach(t=>{let n=t.split(` `)),i=_((t[2]||``).split(/\n\s*\n/),r);for(let t in n)({}).hasOwnProperty.call(n,t)&&(n[t].dateTime={}.hasOwnProperty.call(e,t)?e[t]:``);i.forEach(e=>{let t=``;for(let r in n)({}).hasOwnProperty.call(n,r)&&n[r].user===e.user&&(!t||t{let r=e.split(`\r `),i=n.getValue(r,`LogonId`),a=n.getValue(r,`starttime`);i&&(t[i]=a)}),t}function g(e,t){e=e.toLowerCase(),t=t.toLowerCase();let n=0,r=e.length;t.length>r&&(r=t.length);for(let i=0;i10?n/r>.9:r>0?n/r>.8:!1}function _(e,t){let r=[];return e.forEach(e=>{let i=e.split(`\r `),a=n.getValue(i,`domain`,`:`,!0),o=n.getValue(i,`user`,`:`,!0),s=n.getValue(i,`sessionid`,`:`,!0);if(o){let e=t.filter(e=>g(e.user,o));r.push({domain:a,user:o,tty:e&&e[0]&&e[0].tty?e[0].tty:s})}}),r}function v(e){let t={};return e.forEach(e=>{let r=e.split(`\r -`),i=n.getValue(r,`antecedent`,`:`,!0).split(`=`),a=i.length>2?i[1].split(`,`)[0].replace(/"/g,``).trim():``,o=i.length>2?i[2].replace(/"/g,``).replace(/\)/g,``).trim():``;i=n.getValue(r,`dependent`,`:`,!0).split(`=`);let s=i.length>1?i[1].replace(/"/g,``).replace(/\)/g,``).trim():``;s&&(t[s]={domain:o,user:a})}),t}function y(e){e=e.filter(e=>e);let t=[],n=e[0],r=[];if(n){let i=+(n[0]===` `);r.push(i-1);let a=0;for(let e=i+1;e{let t=SO(),n=process.platform,r=n===`linux`||n===`android`,i=n===`darwin`,a=n===`win32`,o=n===`freebsd`,s=n===`openbsd`,c=n===`netbsd`,l=n===`sunos`;function u(e,n){return new Promise(r=>{process.nextTick(()=>{let i={url:e,ok:!1,status:404,ms:null};if(typeof e!=`string`)return n&&n(i),r(i);let a=``,o=t.sanitizeShellString(e,!0),s=t.mathMin(o.length,2e3);for(let e=0;e<=s;e++)if(o[e]!==void 0){try{o[e].__proto__.toLowerCase=t.stringToLower}catch{Object.setPrototypeOf(o[e],t.stringObj)}let n=o[e].toLowerCase();n&&n[0]&&!n[1]&&n[0].length===1&&(a+=n[0])}i.url=a;try{if(a&&!t.isPrototypePolluted()){try{a.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(a,t.stringObj)}if(a.startsWith(`file:`)||a.startsWith(`gopher:`)||a.startsWith(`telnet:`)||a.startsWith(`mailto:`)||a.startsWith(`news:`)||a.startsWith(`nntp:`))return n&&n(i),r(i);t.checkWebsite(a).then(e=>{i.status=e.statusCode,i.ok=e.statusCode>=200&&e.statusCode<=399,i.ms=i.ok?e.time:null,n&&n(i),r(i)})}else n&&n(i),r(i)}catch{n&&n(i),r(i)}})})}e.inetChecksite=u;function d(e,n){return t.isFunction(e)&&!n&&(n=e,e=``),e||=`8.8.8.8`,new Promise(u=>{process.nextTick(()=>{if(typeof e!=`string`)return n&&n(null),u(null);let d=``,f=(t.isPrototypePolluted()?`8.8.8.8`:t.sanitizeShellString(e,!0)).trim(),p=t.mathMin(f.length,2e3);for(let e=0;e<=p;e++)if(f[e]!==void 0){try{f[e].__proto__.toLowerCase=t.stringToLower}catch{Object.setPrototypeOf(f[e],t.stringObj)}let n=f[e].toLowerCase();n&&n[0]&&!n[1]&&(d+=n[0])}try{d.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(d,t.stringObj)}if(d.startsWith(`file:`)||d.startsWith(`gopher:`)||d.startsWith(`telnet:`)||d.startsWith(`mailto:`)||d.startsWith(`news:`)||d.startsWith(`nntp:`))return n&&n(null),u(null);let m;if((r||o||s||c||i)&&(r&&(m=[`-c`,`2`,`-w`,`3`,d]),(o||s||c)&&(m=[`-c`,`2`,`-t`,`3`,d]),i&&(m=[`-c2`,`-t3`,d]),t.execSafe(`ping`,m).then(e=>{let t=null;if(e){let n=e.split(` +`),i=n.getValue(r,`antecedent`,`:`,!0).split(`=`),a=i.length>2?i[1].split(`,`)[0].replace(/"/g,``).trim():``,o=i.length>2?i[2].replace(/"/g,``).replace(/\)/g,``).trim():``;i=n.getValue(r,`dependent`,`:`,!0).split(`=`);let s=i.length>1?i[1].replace(/"/g,``).replace(/\)/g,``).trim():``;s&&(t[s]={domain:o,user:a})}),t}function y(e){e=e.filter(e=>e);let t=[],n=e[0],r=[];if(n){let i=+(n[0]===` `);r.push(i-1);let a=0;for(let e=i+1;e{let t=SO(),n=process.platform,r=n===`linux`||n===`android`,i=n===`darwin`,a=n===`win32`,o=n===`freebsd`,s=n===`openbsd`,c=n===`netbsd`,l=n===`sunos`;function u(e,n){return new Promise(r=>{process.nextTick(()=>{let i={url:e,ok:!1,status:404,ms:null};if(typeof e!=`string`)return n&&n(i),r(i);let a=``,o=t.sanitizeShellString(e,!0),s=t.mathMin(o.length,2e3);for(let e=0;e<=s;e++)if(o[e]!==void 0){try{o[e].__proto__.toLowerCase=t.stringToLower}catch{Object.setPrototypeOf(o[e],t.stringObj)}let n=o[e].toLowerCase();n&&n[0]&&!n[1]&&n[0].length===1&&(a+=n[0])}i.url=a;try{if(a&&!t.isPrototypePolluted()){try{a.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(a,t.stringObj)}if(a.startsWith(`file:`)||a.startsWith(`gopher:`)||a.startsWith(`telnet:`)||a.startsWith(`mailto:`)||a.startsWith(`news:`)||a.startsWith(`nntp:`))return n&&n(i),r(i);t.checkWebsite(a).then(e=>{i.status=e.statusCode,i.ok=e.statusCode>=200&&e.statusCode<=399,i.ms=i.ok?e.time:null,n&&n(i),r(i)})}else n&&n(i),r(i)}catch{n&&n(i),r(i)}})})}e.inetChecksite=u;function d(e,n){return t.isFunction(e)&&!n&&(n=e,e=``),e||=`8.8.8.8`,new Promise(u=>{process.nextTick(()=>{if(typeof e!=`string`)return n&&n(null),u(null);let d=``,f=(t.isPrototypePolluted()?`8.8.8.8`:t.sanitizeShellString(e,!0)).trim(),p=t.mathMin(f.length,2e3);for(let e=0;e<=p;e++)if(f[e]!==void 0){try{f[e].__proto__.toLowerCase=t.stringToLower}catch{Object.setPrototypeOf(f[e],t.stringObj)}let n=f[e].toLowerCase();n&&n[0]&&!n[1]&&(d+=n[0])}try{d.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(d,t.stringObj)}if(d.startsWith(`file:`)||d.startsWith(`gopher:`)||d.startsWith(`telnet:`)||d.startsWith(`mailto:`)||d.startsWith(`news:`)||d.startsWith(`nntp:`))return n&&n(null),u(null);let m;if((r||o||s||c||i)&&(r&&(m=[`-c`,`2`,`-w`,`3`,d]),(o||s||c)&&(m=[`-c`,`2`,`-t`,`3`,d]),i&&(m=[`-c2`,`-t3`,d]),t.execSafe(`ping`,m).then(e=>{let t=null;if(e){let n=e.split(` `).filter(e=>e.indexOf(`rtt`)>=0||e.indexOf(`round-trip`)>=0||e.indexOf(`avg`)>=0).join(` `).split(`=`);if(n.length>1){let e=n[1].split(`/`);e.length>1&&(t=parseFloat(e[1]))}}n&&n(t),u(t)})),l){let e=[`-s`,`-a`,d,`56`,`2`];t.execSafe(`ping`,e,{timeout:3e3}).then(e=>{let t=null;if(e){let n=e.split(` `).filter(e=>e.indexOf(`avg`)>=0).join(` `).split(`=`);if(n.length>1){let e=n[1].split(`/`);e.length>1&&(t=parseFloat(e[1].replace(`,`,`.`)))}}n&&n(t),u(t)})}if(a){let e=null;try{let r=[d,`-n`,`1`];t.execSafe(`ping`,r,t.execOptsWin).then(t=>{if(t){let n=t.split(`\r -`);n.shift(),n.forEach(t=>{if((t.toLowerCase().match(/ms/g)||[]).length===3){let n=t.replace(/ +/g,` `).split(` `);n.length>6&&(e=parseFloat(n[n.length-1]))}})}n&&n(e),u(e)})}catch{n&&n(e),u(e)}}})})}e.inetLatency=d})),FO=R(((e,t)=>{let n=B(`net`),r=B(`os`).type()===`Windows_NT`?`//./pipe/docker_engine`:`/var/run/docker.sock`;t.exports=class{getInfo(e){try{let t=n.createConnection({path:r}),i=``,a;t.on(`connect`,()=>{t.write(`GET http:/info HTTP/1.0\r +`);n.shift(),n.forEach(t=>{if((t.toLowerCase().match(/ms/g)||[]).length===3){let n=t.replace(/ +/g,` `).split(` `);n.length>6&&(e=parseFloat(n[n.length-1]))}})}n&&n(e),u(e)})}catch{n&&n(e),u(e)}}})})}e.inetLatency=d})),FO=z(((e,t)=>{let n=V(`net`),r=V(`os`).type()===`Windows_NT`?`//./pipe/docker_engine`:`/var/run/docker.sock`;t.exports=class{getInfo(e){try{let t=n.createConnection({path:r}),i=``,a;t.on(`connect`,()=>{t.write(`GET http:/info HTTP/1.0\r \r `)}),t.on(`data`,e=>{i+=e.toString()}),t.on(`error`,()=>{t=!1,e({})}),t.on(`end`,()=>{let n=i.indexOf(`\r \r @@ -428,12 +428,12 @@ Interface `);return t.shift(),t.forEach(t=>{let n=t.split(` \r `)}),t.on(`data`,e=>{i+=e.toString()}),t.on(`error`,()=>{t=!1,e({})}),t.on(`end`,()=>{let n=i.indexOf(`\r \r -`);i=i.substring(n+4),t=!1;try{a=JSON.parse(i),e(a)}catch{e({})}})}catch{e({})}}}})),IO=R((e=>{let t=SO(),n=FO(),r=process.platform===`win32`,i={},a,o=0;function s(e){return new Promise(t=>{process.nextTick(()=>{a||=new n;let r={};a.getInfo(n=>{r.id=n.ID,r.containers=n.Containers,r.containersRunning=n.ContainersRunning,r.containersPaused=n.ContainersPaused,r.containersStopped=n.ContainersStopped,r.images=n.Images,r.driver=n.Driver,r.memoryLimit=n.MemoryLimit,r.swapLimit=n.SwapLimit,r.kernelMemory=n.KernelMemory,r.cpuCfsPeriod=n.CpuCfsPeriod,r.cpuCfsQuota=n.CpuCfsQuota,r.cpuShares=n.CPUShares,r.cpuSet=n.CPUSet,r.ipv4Forwarding=n.IPv4Forwarding,r.bridgeNfIptables=n.BridgeNfIptables,r.bridgeNfIp6tables=n.BridgeNfIp6tables,r.debug=n.Debug,r.nfd=n.NFd,r.oomKillDisable=n.OomKillDisable,r.ngoroutines=n.NGoroutines,r.systemTime=n.SystemTime,r.loggingDriver=n.LoggingDriver,r.cgroupDriver=n.CgroupDriver,r.nEventsListener=n.NEventsListener,r.kernelVersion=n.KernelVersion,r.operatingSystem=n.OperatingSystem,r.osType=n.OSType,r.architecture=n.Architecture,r.ncpu=n.NCPU,r.memTotal=n.MemTotal,r.dockerRootDir=n.DockerRootDir,r.httpProxy=n.HttpProxy,r.httpsProxy=n.HttpsProxy,r.noProxy=n.NoProxy,r.name=n.Name,r.labels=n.Labels,r.experimentalBuild=n.ExperimentalBuild,r.serverVersion=n.ServerVersion,r.clusterStore=n.ClusterStore,r.clusterAdvertise=n.ClusterAdvertise,r.defaultRuntime=n.DefaultRuntime,r.liveRestoreEnabled=n.LiveRestoreEnabled,r.isolation=n.Isolation,r.initBinary=n.InitBinary,r.productLicense=n.ProductLicense,e&&e(r),t(r)})})})}e.dockerInfo=s;function c(e,r){t.isFunction(e)&&!r&&(r=e,e=!1),typeof e==`string`&&e===`true`&&(e=!0),typeof e!=`boolean`&&e!==void 0&&(e=!1),e||=!1;let i=[];return new Promise(t=>{process.nextTick(()=>{a||=new n;let o=[];a.listImages(e,e=>{let n={};try{n=e,n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0?(n.forEach(e=>{e.Names&&Object.prototype.toString.call(e.Names)===`[object Array]`&&e.Names.length>0&&(e.Name=e.Names[0].replace(/^\/|\/$/g,``)),o.push(l(e.Id.trim(),e))}),o.length?Promise.all(o).then(e=>{r&&r(e),t(e)}):(r&&r(i),t(i))):(r&&r(i),t(i))}catch{r&&r(i),t(i)}})})})}function l(e,r){return new Promise(i=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return i();let o=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();o?(a||=new n,a.inspectImage(o.trim(),e=>{try{i({id:r.Id,container:e.Container,comment:e.Comment,os:e.Os,architecture:e.Architecture,parent:e.Parent,dockerVersion:e.DockerVersion,size:e.Size,sharedSize:r.SharedSize,virtualSize:e.VirtualSize,author:e.Author,created:e.Created?Math.round(new Date(e.Created).getTime()/1e3):0,containerConfig:e.ContainerConfig?e.ContainerConfig:{},graphDriver:e.GraphDriver?e.GraphDriver:{},repoDigests:e.RepoDigests?e.RepoDigests:{},repoTags:e.RepoTags?e.RepoTags:{},config:e.Config?e.Config:{},rootFS:e.RootFS?e.RootFS:{}})}catch{i()}})):i()})})}e.dockerImages=c;function u(e,r){function o(e,t){return e.filter(e=>e.Id&&e.Id===t).length>0}t.isFunction(e)&&!r&&(r=e,e=!1),typeof e==`string`&&e===`true`&&(e=!0),typeof e!=`boolean`&&e!==void 0&&(e=!1),e||=!1;let s=[];return new Promise(t=>{process.nextTick(()=>{a||=new n;let c=[];a.listContainers(e,e=>{let n={};try{if(n=e,n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0){for(let e in i)({}).hasOwnProperty.call(i,e)&&(o(n,e)||delete i[e]);n.forEach(e=>{e.Names&&Object.prototype.toString.call(e.Names)===`[object Array]`&&e.Names.length>0&&(e.Name=e.Names[0].replace(/^\/|\/$/g,``)),c.push(d(e.Id.trim(),e))}),c.length?Promise.all(c).then(e=>{r&&r(e),t(e)}):(r&&r(s),t(s))}else r&&r(s),t(s)}catch{for(let e in i)({}).hasOwnProperty.call(i,e)&&(o(n,e)||delete i[e]);r&&r(s),t(s)}})})})}function d(e,r){return new Promise(i=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return i();let o=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();o?(a||=new n,a.getInspect(o.trim(),e=>{try{i({id:r.Id,name:r.Name,image:r.Image,imageID:r.ImageID,command:r.Command,created:r.Created,started:e.State&&e.State.StartedAt?Math.round(new Date(e.State.StartedAt).getTime()/1e3):0,finished:e.State&&e.State.FinishedAt&&!e.State.FinishedAt.startsWith(`0001-01-01`)?Math.round(new Date(e.State.FinishedAt).getTime()/1e3):0,createdAt:e.Created?e.Created:``,startedAt:e.State&&e.State.StartedAt?e.State.StartedAt:``,finishedAt:e.State&&e.State.FinishedAt&&!e.State.FinishedAt.startsWith(`0001-01-01`)?e.State.FinishedAt:``,state:r.State,restartCount:e.RestartCount||0,platform:e.Platform||``,driver:e.Driver||``,ports:r.Ports,mounts:r.Mounts})}catch{i()}})):i()})})}e.dockerContainers=u;function f(e,n){if(r){let r=t.nanoSeconds(),i=0;if(o>0){let t=r-o,a=e.cpu_usage.total_usage-n.cpu_usage.total_usage;t>0&&(i=100*a/t)}return o=r,i}else{let t=0,r=e.cpu_usage.total_usage-n.cpu_usage.total_usage,i=e.system_cpu_usage-n.system_cpu_usage;return i>0&&r>0&&(t=n.online_cpus?r/i*n.online_cpus*100:r/i*e.cpu_usage.percpu_usage.length*100),t}}function p(e){let t,n;for(let r in e){if(!{}.hasOwnProperty.call(e,r))continue;let i=e[r];t=+i.rx_bytes,n=+i.tx_bytes}return{rx:t,wx:n}}function m(e){let t={r:0,w:0};return e&&e.io_service_bytes_recursive&&Object.prototype.toString.call(e.io_service_bytes_recursive)===`[object Array]`&&e.io_service_bytes_recursive.length>0&&e.io_service_bytes_recursive.forEach(e=>{e.op&&e.op.toLowerCase()===`read`&&e.value&&(t.r+=e.value),e.op&&e.op.toLowerCase()===`write`&&e.value&&(t.w+=e.value)}),t}function h(e,n){let r=[];return new Promise(i=>{process.nextTick(()=>{if(t.isFunction(e)&&!n)n=e,r=[`*`];else{if(e||=`*`,typeof e!=`string`)return n&&n([]),i([]);let a=``;try{a.__proto__.toLowerCase=t.stringToLower,a.__proto__.replace=t.stringReplace,a.__proto__.toString=t.stringToString,a.__proto__.substr=t.stringSubstr,a.__proto__.substring=t.stringSubstring,a.__proto__.trim=t.stringTrim,a.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(a,t.stringObj)}if(a=e,a=a.trim(),a!==`*`){a=``;let n=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim(),r=t.mathMin(n.length,2e3);for(let e=0;e<=r;e++)if(n[e]!==void 0){n[e].__proto__.toLowerCase=t.stringToLower;let r=n[e].toLowerCase();r&&r[0]&&!r[1]&&(a+=r[0])}}a=a.trim().toLowerCase().replace(/,+/g,`|`),r=a.split(`|`)}let a=[],o=[];if(r.length&&r[0].trim()===`*`)r=[],u().then(e=>{for(let t of e)r.push(t.id.substring(0,12));r.length?h(r.join(`,`)).then(e=>{n&&n(e),i(e)}):(n&&n(a),i(a))});else{for(let e of r)o.push(g(e.trim()));o.length?Promise.all(o).then(e=>{n&&n(e),i(e)}):(n&&n(a),i(a))}})})}function g(e){e||=``;let r={id:e,memUsage:0,memLimit:0,memPercent:0,cpuPercent:0,pids:0,netIO:{rx:0,wx:0},blockIO:{r:0,w:0},restartCount:0,cpuStats:{},precpuStats:{},memoryStats:{},networks:{}};return new Promise(i=>{process.nextTick(()=>{e?(a||=new n,a.getInspect(e,n=>{try{a.getStats(e,e=>{try{let t=e;t.message||(e.id&&(r.id=e.id),r.memUsage=t.memory_stats&&t.memory_stats.usage?t.memory_stats.usage:0,r.memLimit=t.memory_stats&&t.memory_stats.limit?t.memory_stats.limit:0,r.memPercent=t.memory_stats&&t.memory_stats.usage&&t.memory_stats.limit?t.memory_stats.usage/t.memory_stats.limit*100:0,r.cpuPercent=t.cpu_stats&&t.precpu_stats?f(t.cpu_stats,t.precpu_stats):0,r.pids=t.pids_stats&&t.pids_stats.current?t.pids_stats.current:0,r.restartCount=n.RestartCount?n.RestartCount:0,t.networks&&(r.netIO=p(t.networks)),t.blkio_stats&&(r.blockIO=m(t.blkio_stats)),r.cpuStats=t.cpu_stats?t.cpu_stats:{},r.precpuStats=t.precpu_stats?t.precpu_stats:{},r.memoryStats=t.memory_stats?t.memory_stats:{},r.networks=t.networks?t.networks:{})}catch{t.noop()}i(r)})}catch{t.noop()}})):i(r)})})}e.dockerContainerStats=h;function _(e,r){let i=[];return new Promise(o=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return o(i);let s=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();s?(a||=new n,a.getProcesses(s,e=>{try{if(e&&e.Titles&&e.Processes){let t=e.Titles.map(function(e){return e.toUpperCase()}),n=t.indexOf(`PID`),r=t.indexOf(`PPID`),a=t.indexOf(`PGID`),o=t.indexOf(`VSZ`),s=t.indexOf(`TIME`),c=t.indexOf(`ELAPSED`),l=t.indexOf(`NI`),u=t.indexOf(`RUSER`),d=t.indexOf(`USER`),f=t.indexOf(`RGROUP`),p=t.indexOf(`GROUP`),m=t.indexOf(`STAT`),h=t.indexOf(`RSS`),g=t.indexOf(`COMMAND`);e.Processes.forEach(e=>{i.push({pidHost:n>=0?e[n]:``,ppid:r>=0?e[r]:``,pgid:a>=0?e[a]:``,user:d>=0?e[d]:``,ruser:u>=0?e[u]:``,group:p>=0?e[p]:``,rgroup:f>=0?e[f]:``,stat:m>=0?e[m]:``,time:s>=0?e[s]:``,elapsed:c>=0?e[c]:``,nice:l>=0?e[l]:``,rss:h>=0?e[h]:``,vsz:o>=0?e[o]:``,command:g>=0?e[g]:``})})}}catch{t.noop()}r&&r(i),o(i)})):(r&&r(i),o(i))})})}e.dockerContainerProcesses=_;function v(e){let t=[];return new Promise(r=>{process.nextTick(()=>{a||=new n,a.listVolumes(n=>{let i={};try{i=n,i&&i.Volumes&&Object.prototype.toString.call(i.Volumes)===`[object Array]`&&i.Volumes.length>0?(i.Volumes.forEach(e=>{t.push({name:e.Name,driver:e.Driver,labels:e.Labels,mountpoint:e.Mountpoint,options:e.Options,scope:e.Scope,created:e.CreatedAt?Math.round(new Date(e.CreatedAt).getTime()/1e3):0})}),e&&e(t),r(t)):(e&&e(t),r(t))}catch{e&&e(t),r(t)}})})})}e.dockerVolumes=v;function y(e){return new Promise(t=>{process.nextTick(()=>{u(!0).then(n=>{if(n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0){let r=n.length;n.forEach(i=>{h(i.id).then(a=>{i.memUsage=a[0].memUsage,i.memLimit=a[0].memLimit,i.memPercent=a[0].memPercent,i.cpuPercent=a[0].cpuPercent,i.pids=a[0].pids,i.netIO=a[0].netIO,i.blockIO=a[0].blockIO,i.cpuStats=a[0].cpuStats,i.precpuStats=a[0].precpuStats,i.memoryStats=a[0].memoryStats,i.networks=a[0].networks,_(i.id).then(a=>{i.processes=a,--r,r===0&&(e&&e(n),t(n))})})})}else e&&e(n),t(n)})})})}e.dockerAll=y})),LO=R((e=>{let t=B(`os`),n=B(`child_process`).exec,r=SO();function i(e){let i=[];return new Promise(a=>{process.nextTick(()=>{try{n(r.getVboxmanage()+` list vms --long`,(n,o)=>{let s=(t.EOL+o.toString()).split(t.EOL+`Name:`);s.shift(),s.forEach(e=>{let n=(`Name:`+e).split(t.EOL),a=r.getValue(n,`State`),o=a.startsWith(`running`),s=o?a.replace(`running (since `,``).replace(`)`,``).trim():``,c=0;try{if(o){let e=new Date(s),t=e.getTimezoneOffset();c=Math.round((Date.now()-Date.parse(e))/1e3)+t*60}}catch{r.noop()}let l=o?``:a.replace(`powered off (since`,``).replace(`)`,``).trim(),u=0;try{if(!o){let e=new Date(l),t=e.getTimezoneOffset();u=Math.round((Date.now()-Date.parse(e))/1e3)+t*60}}catch{r.noop()}i.push({id:r.getValue(n,`UUID`),name:r.getValue(n,`Name`),running:o,started:s,runningSince:c,stopped:l,stoppedSince:u,guestOS:r.getValue(n,`Guest OS`),hardwareUUID:r.getValue(n,`Hardware UUID`),memory:parseInt(r.getValue(n,`Memory size`,` `),10),vram:parseInt(r.getValue(n,`VRAM size`),10),cpus:parseInt(r.getValue(n,`Number of CPUs`),10),cpuExepCap:r.getValue(n,`CPU exec cap`),cpuProfile:r.getValue(n,`CPUProfile`),chipset:r.getValue(n,`Chipset`),firmware:r.getValue(n,`Firmware`),pageFusion:r.getValue(n,`Page Fusion`)===`enabled`,configFile:r.getValue(n,`Config file`),snapshotFolder:r.getValue(n,`Snapshot folder`),logFolder:r.getValue(n,`Log folder`),hpet:r.getValue(n,`HPET`)===`enabled`,pae:r.getValue(n,`PAE`)===`enabled`,longMode:r.getValue(n,`Long Mode`)===`enabled`,tripleFaultReset:r.getValue(n,`Triple Fault Reset`)===`enabled`,apic:r.getValue(n,`APIC`)===`enabled`,x2Apic:r.getValue(n,`X2APIC`)===`enabled`,acpi:r.getValue(n,`ACPI`)===`enabled`,ioApic:r.getValue(n,`IOAPIC`)===`enabled`,biosApicMode:r.getValue(n,`BIOS APIC mode`),bootMenuMode:r.getValue(n,`Boot menu mode`),bootDevice1:r.getValue(n,`Boot Device 1`),bootDevice2:r.getValue(n,`Boot Device 2`),bootDevice3:r.getValue(n,`Boot Device 3`),bootDevice4:r.getValue(n,`Boot Device 4`),timeOffset:r.getValue(n,`Time offset`),rtc:r.getValue(n,`RTC`)})}),e&&e(i),a(i)})}catch{e&&e(i),a(i)}})})}e.vboxInfo=i})),RO=R((e=>{let t=B(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`,d={1:`Other`,2:`Unknown`,3:`Idle`,4:`Printing`,5:`Warmup`,6:`Stopped Printing`,7:`Offline`};function f(e){let t={};return e&&e.length&&e[0].indexOf(` CUPS v`)>0&&(t.cupsVersion=e[0].split(` CUPS v`)[1]),t}function p(e){let t={},r=n.getValue(e,`PrinterId`,` `);return t.id=r?parseInt(r,10):null,t.name=n.getValue(e,`Info`,` `),t.model=e.length>0&&e[0]?e[0].split(` `)[0]:``,t.uri=n.getValue(e,`DeviceURI`,` `),t.uuid=n.getValue(e,`UUID`,` `),t.status=n.getValue(e,`State`,` `),t.local=n.getValue(e,`Location`,` `).toLowerCase().startsWith(`local`),t.default=null,t.shared=n.getValue(e,`Shared`,` `).toLowerCase().startsWith(`yes`),t}function m(e,t){let r={};return r.id=t,r.name=n.getValue(e,`Description`,`:`,!0),r.model=e.length>0&&e[0]?e[0].split(` `)[0]:``,r.uri=null,r.uuid=null,r.status=e.length>0&&e[0]?e[0].indexOf(` idle`)>0?`idle`:e[0].indexOf(` printing`)>0?`printing`:`unknown`:null,r.local=n.getValue(e,`Location`,`:`,!0).toLowerCase().startsWith(`local`),r.default=null,r.shared=n.getValue(e,`Shared`,` `).toLowerCase().startsWith(`yes`),r}function h(e,t){let n={},r=e.uri.split(`/`);return n.id=t,n.name=e._name,n.model=r.length?r[r.length-1]:``,n.uri=e.uri,n.uuid=null,n.status=e.status,n.local=e.printserver===`local`,n.default=e.default===`yes`,n.shared=e.shared===`yes`,n}function g(e,t){let r={},i=parseInt(n.getValue(e,`PrinterStatus`,`:`),10);return r.id=t,r.name=n.getValue(e,`name`,`:`),r.model=n.getValue(e,`DriverName`,`:`),r.uri=null,r.uuid=null,r.status=d[i]?d[i]:null,r.local=n.getValue(e,`Local`,`:`).toUpperCase()===`TRUE`,r.default=n.getValue(e,`Default`,`:`).toUpperCase()===`TRUE`,r.shared=n.getValue(e,`Shared`,`:`).toUpperCase()===`TRUE`,r}function _(e){return new Promise(r=>{process.nextTick(()=>{let d=[];if(i||s||c||l){let n=`cat /etc/cups/printers.conf 2>/dev/null`;t(n,(a,o)=>{if(!a){let e=o.toString().split(`{let t=SO(),n=FO(),r=process.platform===`win32`,i={},a,o=0;function s(e){return new Promise(t=>{process.nextTick(()=>{a||=new n;let r={};a.getInfo(n=>{r.id=n.ID,r.containers=n.Containers,r.containersRunning=n.ContainersRunning,r.containersPaused=n.ContainersPaused,r.containersStopped=n.ContainersStopped,r.images=n.Images,r.driver=n.Driver,r.memoryLimit=n.MemoryLimit,r.swapLimit=n.SwapLimit,r.kernelMemory=n.KernelMemory,r.cpuCfsPeriod=n.CpuCfsPeriod,r.cpuCfsQuota=n.CpuCfsQuota,r.cpuShares=n.CPUShares,r.cpuSet=n.CPUSet,r.ipv4Forwarding=n.IPv4Forwarding,r.bridgeNfIptables=n.BridgeNfIptables,r.bridgeNfIp6tables=n.BridgeNfIp6tables,r.debug=n.Debug,r.nfd=n.NFd,r.oomKillDisable=n.OomKillDisable,r.ngoroutines=n.NGoroutines,r.systemTime=n.SystemTime,r.loggingDriver=n.LoggingDriver,r.cgroupDriver=n.CgroupDriver,r.nEventsListener=n.NEventsListener,r.kernelVersion=n.KernelVersion,r.operatingSystem=n.OperatingSystem,r.osType=n.OSType,r.architecture=n.Architecture,r.ncpu=n.NCPU,r.memTotal=n.MemTotal,r.dockerRootDir=n.DockerRootDir,r.httpProxy=n.HttpProxy,r.httpsProxy=n.HttpsProxy,r.noProxy=n.NoProxy,r.name=n.Name,r.labels=n.Labels,r.experimentalBuild=n.ExperimentalBuild,r.serverVersion=n.ServerVersion,r.clusterStore=n.ClusterStore,r.clusterAdvertise=n.ClusterAdvertise,r.defaultRuntime=n.DefaultRuntime,r.liveRestoreEnabled=n.LiveRestoreEnabled,r.isolation=n.Isolation,r.initBinary=n.InitBinary,r.productLicense=n.ProductLicense,e&&e(r),t(r)})})})}e.dockerInfo=s;function c(e,r){t.isFunction(e)&&!r&&(r=e,e=!1),typeof e==`string`&&e===`true`&&(e=!0),typeof e!=`boolean`&&e!==void 0&&(e=!1),e||=!1;let i=[];return new Promise(t=>{process.nextTick(()=>{a||=new n;let o=[];a.listImages(e,e=>{let n={};try{n=e,n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0?(n.forEach(e=>{e.Names&&Object.prototype.toString.call(e.Names)===`[object Array]`&&e.Names.length>0&&(e.Name=e.Names[0].replace(/^\/|\/$/g,``)),o.push(l(e.Id.trim(),e))}),o.length?Promise.all(o).then(e=>{r&&r(e),t(e)}):(r&&r(i),t(i))):(r&&r(i),t(i))}catch{r&&r(i),t(i)}})})})}function l(e,r){return new Promise(i=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return i();let o=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();o?(a||=new n,a.inspectImage(o.trim(),e=>{try{i({id:r.Id,container:e.Container,comment:e.Comment,os:e.Os,architecture:e.Architecture,parent:e.Parent,dockerVersion:e.DockerVersion,size:e.Size,sharedSize:r.SharedSize,virtualSize:e.VirtualSize,author:e.Author,created:e.Created?Math.round(new Date(e.Created).getTime()/1e3):0,containerConfig:e.ContainerConfig?e.ContainerConfig:{},graphDriver:e.GraphDriver?e.GraphDriver:{},repoDigests:e.RepoDigests?e.RepoDigests:{},repoTags:e.RepoTags?e.RepoTags:{},config:e.Config?e.Config:{},rootFS:e.RootFS?e.RootFS:{}})}catch{i()}})):i()})})}e.dockerImages=c;function u(e,r){function o(e,t){return e.filter(e=>e.Id&&e.Id===t).length>0}t.isFunction(e)&&!r&&(r=e,e=!1),typeof e==`string`&&e===`true`&&(e=!0),typeof e!=`boolean`&&e!==void 0&&(e=!1),e||=!1;let s=[];return new Promise(t=>{process.nextTick(()=>{a||=new n;let c=[];a.listContainers(e,e=>{let n={};try{if(n=e,n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0){for(let e in i)({}).hasOwnProperty.call(i,e)&&(o(n,e)||delete i[e]);n.forEach(e=>{e.Names&&Object.prototype.toString.call(e.Names)===`[object Array]`&&e.Names.length>0&&(e.Name=e.Names[0].replace(/^\/|\/$/g,``)),c.push(d(e.Id.trim(),e))}),c.length?Promise.all(c).then(e=>{r&&r(e),t(e)}):(r&&r(s),t(s))}else r&&r(s),t(s)}catch{for(let e in i)({}).hasOwnProperty.call(i,e)&&(o(n,e)||delete i[e]);r&&r(s),t(s)}})})})}function d(e,r){return new Promise(i=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return i();let o=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();o?(a||=new n,a.getInspect(o.trim(),e=>{try{i({id:r.Id,name:r.Name,image:r.Image,imageID:r.ImageID,command:r.Command,created:r.Created,started:e.State&&e.State.StartedAt?Math.round(new Date(e.State.StartedAt).getTime()/1e3):0,finished:e.State&&e.State.FinishedAt&&!e.State.FinishedAt.startsWith(`0001-01-01`)?Math.round(new Date(e.State.FinishedAt).getTime()/1e3):0,createdAt:e.Created?e.Created:``,startedAt:e.State&&e.State.StartedAt?e.State.StartedAt:``,finishedAt:e.State&&e.State.FinishedAt&&!e.State.FinishedAt.startsWith(`0001-01-01`)?e.State.FinishedAt:``,state:r.State,restartCount:e.RestartCount||0,platform:e.Platform||``,driver:e.Driver||``,ports:r.Ports,mounts:r.Mounts})}catch{i()}})):i()})})}e.dockerContainers=u;function f(e,n){if(r){let r=t.nanoSeconds(),i=0;if(o>0){let t=r-o,a=e.cpu_usage.total_usage-n.cpu_usage.total_usage;t>0&&(i=100*a/t)}return o=r,i}else{let t=0,r=e.cpu_usage.total_usage-n.cpu_usage.total_usage,i=e.system_cpu_usage-n.system_cpu_usage;return i>0&&r>0&&(t=n.online_cpus?r/i*n.online_cpus*100:r/i*e.cpu_usage.percpu_usage.length*100),t}}function p(e){let t,n;for(let r in e){if(!{}.hasOwnProperty.call(e,r))continue;let i=e[r];t=+i.rx_bytes,n=+i.tx_bytes}return{rx:t,wx:n}}function m(e){let t={r:0,w:0};return e&&e.io_service_bytes_recursive&&Object.prototype.toString.call(e.io_service_bytes_recursive)===`[object Array]`&&e.io_service_bytes_recursive.length>0&&e.io_service_bytes_recursive.forEach(e=>{e.op&&e.op.toLowerCase()===`read`&&e.value&&(t.r+=e.value),e.op&&e.op.toLowerCase()===`write`&&e.value&&(t.w+=e.value)}),t}function h(e,n){let r=[];return new Promise(i=>{process.nextTick(()=>{if(t.isFunction(e)&&!n)n=e,r=[`*`];else{if(e||=`*`,typeof e!=`string`)return n&&n([]),i([]);let a=``;try{a.__proto__.toLowerCase=t.stringToLower,a.__proto__.replace=t.stringReplace,a.__proto__.toString=t.stringToString,a.__proto__.substr=t.stringSubstr,a.__proto__.substring=t.stringSubstring,a.__proto__.trim=t.stringTrim,a.__proto__.startsWith=t.stringStartWith}catch{Object.setPrototypeOf(a,t.stringObj)}if(a=e,a=a.trim(),a!==`*`){a=``;let n=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim(),r=t.mathMin(n.length,2e3);for(let e=0;e<=r;e++)if(n[e]!==void 0){n[e].__proto__.toLowerCase=t.stringToLower;let r=n[e].toLowerCase();r&&r[0]&&!r[1]&&(a+=r[0])}}a=a.trim().toLowerCase().replace(/,+/g,`|`),r=a.split(`|`)}let a=[],o=[];if(r.length&&r[0].trim()===`*`)r=[],u().then(e=>{for(let t of e)r.push(t.id.substring(0,12));r.length?h(r.join(`,`)).then(e=>{n&&n(e),i(e)}):(n&&n(a),i(a))});else{for(let e of r)o.push(g(e.trim()));o.length?Promise.all(o).then(e=>{n&&n(e),i(e)}):(n&&n(a),i(a))}})})}function g(e){e||=``;let r={id:e,memUsage:0,memLimit:0,memPercent:0,cpuPercent:0,pids:0,netIO:{rx:0,wx:0},blockIO:{r:0,w:0},restartCount:0,cpuStats:{},precpuStats:{},memoryStats:{},networks:{}};return new Promise(i=>{process.nextTick(()=>{e?(a||=new n,a.getInspect(e,n=>{try{a.getStats(e,e=>{try{let t=e;t.message||(e.id&&(r.id=e.id),r.memUsage=t.memory_stats&&t.memory_stats.usage?t.memory_stats.usage:0,r.memLimit=t.memory_stats&&t.memory_stats.limit?t.memory_stats.limit:0,r.memPercent=t.memory_stats&&t.memory_stats.usage&&t.memory_stats.limit?t.memory_stats.usage/t.memory_stats.limit*100:0,r.cpuPercent=t.cpu_stats&&t.precpu_stats?f(t.cpu_stats,t.precpu_stats):0,r.pids=t.pids_stats&&t.pids_stats.current?t.pids_stats.current:0,r.restartCount=n.RestartCount?n.RestartCount:0,t.networks&&(r.netIO=p(t.networks)),t.blkio_stats&&(r.blockIO=m(t.blkio_stats)),r.cpuStats=t.cpu_stats?t.cpu_stats:{},r.precpuStats=t.precpu_stats?t.precpu_stats:{},r.memoryStats=t.memory_stats?t.memory_stats:{},r.networks=t.networks?t.networks:{})}catch{t.noop()}i(r)})}catch{t.noop()}})):i(r)})})}e.dockerContainerStats=h;function _(e,r){let i=[];return new Promise(o=>{process.nextTick(()=>{if(e||=``,typeof e!=`string`)return o(i);let s=(t.isPrototypePolluted()?``:t.sanitizeShellString(e,!0)).trim();s?(a||=new n,a.getProcesses(s,e=>{try{if(e&&e.Titles&&e.Processes){let t=e.Titles.map(function(e){return e.toUpperCase()}),n=t.indexOf(`PID`),r=t.indexOf(`PPID`),a=t.indexOf(`PGID`),o=t.indexOf(`VSZ`),s=t.indexOf(`TIME`),c=t.indexOf(`ELAPSED`),l=t.indexOf(`NI`),u=t.indexOf(`RUSER`),d=t.indexOf(`USER`),f=t.indexOf(`RGROUP`),p=t.indexOf(`GROUP`),m=t.indexOf(`STAT`),h=t.indexOf(`RSS`),g=t.indexOf(`COMMAND`);e.Processes.forEach(e=>{i.push({pidHost:n>=0?e[n]:``,ppid:r>=0?e[r]:``,pgid:a>=0?e[a]:``,user:d>=0?e[d]:``,ruser:u>=0?e[u]:``,group:p>=0?e[p]:``,rgroup:f>=0?e[f]:``,stat:m>=0?e[m]:``,time:s>=0?e[s]:``,elapsed:c>=0?e[c]:``,nice:l>=0?e[l]:``,rss:h>=0?e[h]:``,vsz:o>=0?e[o]:``,command:g>=0?e[g]:``})})}}catch{t.noop()}r&&r(i),o(i)})):(r&&r(i),o(i))})})}e.dockerContainerProcesses=_;function v(e){let t=[];return new Promise(r=>{process.nextTick(()=>{a||=new n,a.listVolumes(n=>{let i={};try{i=n,i&&i.Volumes&&Object.prototype.toString.call(i.Volumes)===`[object Array]`&&i.Volumes.length>0?(i.Volumes.forEach(e=>{t.push({name:e.Name,driver:e.Driver,labels:e.Labels,mountpoint:e.Mountpoint,options:e.Options,scope:e.Scope,created:e.CreatedAt?Math.round(new Date(e.CreatedAt).getTime()/1e3):0})}),e&&e(t),r(t)):(e&&e(t),r(t))}catch{e&&e(t),r(t)}})})})}e.dockerVolumes=v;function y(e){return new Promise(t=>{process.nextTick(()=>{u(!0).then(n=>{if(n&&Object.prototype.toString.call(n)===`[object Array]`&&n.length>0){let r=n.length;n.forEach(i=>{h(i.id).then(a=>{i.memUsage=a[0].memUsage,i.memLimit=a[0].memLimit,i.memPercent=a[0].memPercent,i.cpuPercent=a[0].cpuPercent,i.pids=a[0].pids,i.netIO=a[0].netIO,i.blockIO=a[0].blockIO,i.cpuStats=a[0].cpuStats,i.precpuStats=a[0].precpuStats,i.memoryStats=a[0].memoryStats,i.networks=a[0].networks,_(i.id).then(a=>{i.processes=a,--r,r===0&&(e&&e(n),t(n))})})})}else e&&e(n),t(n)})})})}e.dockerAll=y})),LO=z((e=>{let t=V(`os`),n=V(`child_process`).exec,r=SO();function i(e){let i=[];return new Promise(a=>{process.nextTick(()=>{try{n(r.getVboxmanage()+` list vms --long`,(n,o)=>{let s=(t.EOL+o.toString()).split(t.EOL+`Name:`);s.shift(),s.forEach(e=>{let n=(`Name:`+e).split(t.EOL),a=r.getValue(n,`State`),o=a.startsWith(`running`),s=o?a.replace(`running (since `,``).replace(`)`,``).trim():``,c=0;try{if(o){let e=new Date(s),t=e.getTimezoneOffset();c=Math.round((Date.now()-Date.parse(e))/1e3)+t*60}}catch{r.noop()}let l=o?``:a.replace(`powered off (since`,``).replace(`)`,``).trim(),u=0;try{if(!o){let e=new Date(l),t=e.getTimezoneOffset();u=Math.round((Date.now()-Date.parse(e))/1e3)+t*60}}catch{r.noop()}i.push({id:r.getValue(n,`UUID`),name:r.getValue(n,`Name`),running:o,started:s,runningSince:c,stopped:l,stoppedSince:u,guestOS:r.getValue(n,`Guest OS`),hardwareUUID:r.getValue(n,`Hardware UUID`),memory:parseInt(r.getValue(n,`Memory size`,` `),10),vram:parseInt(r.getValue(n,`VRAM size`),10),cpus:parseInt(r.getValue(n,`Number of CPUs`),10),cpuExepCap:r.getValue(n,`CPU exec cap`),cpuProfile:r.getValue(n,`CPUProfile`),chipset:r.getValue(n,`Chipset`),firmware:r.getValue(n,`Firmware`),pageFusion:r.getValue(n,`Page Fusion`)===`enabled`,configFile:r.getValue(n,`Config file`),snapshotFolder:r.getValue(n,`Snapshot folder`),logFolder:r.getValue(n,`Log folder`),hpet:r.getValue(n,`HPET`)===`enabled`,pae:r.getValue(n,`PAE`)===`enabled`,longMode:r.getValue(n,`Long Mode`)===`enabled`,tripleFaultReset:r.getValue(n,`Triple Fault Reset`)===`enabled`,apic:r.getValue(n,`APIC`)===`enabled`,x2Apic:r.getValue(n,`X2APIC`)===`enabled`,acpi:r.getValue(n,`ACPI`)===`enabled`,ioApic:r.getValue(n,`IOAPIC`)===`enabled`,biosApicMode:r.getValue(n,`BIOS APIC mode`),bootMenuMode:r.getValue(n,`Boot menu mode`),bootDevice1:r.getValue(n,`Boot Device 1`),bootDevice2:r.getValue(n,`Boot Device 2`),bootDevice3:r.getValue(n,`Boot Device 3`),bootDevice4:r.getValue(n,`Boot Device 4`),timeOffset:r.getValue(n,`Time offset`),rtc:r.getValue(n,`RTC`)})}),e&&e(i),a(i)})}catch{e&&e(i),a(i)}})})}e.vboxInfo=i})),RO=z((e=>{let t=V(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`,d={1:`Other`,2:`Unknown`,3:`Idle`,4:`Printing`,5:`Warmup`,6:`Stopped Printing`,7:`Offline`};function f(e){let t={};return e&&e.length&&e[0].indexOf(` CUPS v`)>0&&(t.cupsVersion=e[0].split(` CUPS v`)[1]),t}function p(e){let t={},r=n.getValue(e,`PrinterId`,` `);return t.id=r?parseInt(r,10):null,t.name=n.getValue(e,`Info`,` `),t.model=e.length>0&&e[0]?e[0].split(` `)[0]:``,t.uri=n.getValue(e,`DeviceURI`,` `),t.uuid=n.getValue(e,`UUID`,` `),t.status=n.getValue(e,`State`,` `),t.local=n.getValue(e,`Location`,` `).toLowerCase().startsWith(`local`),t.default=null,t.shared=n.getValue(e,`Shared`,` `).toLowerCase().startsWith(`yes`),t}function m(e,t){let r={};return r.id=t,r.name=n.getValue(e,`Description`,`:`,!0),r.model=e.length>0&&e[0]?e[0].split(` `)[0]:``,r.uri=null,r.uuid=null,r.status=e.length>0&&e[0]?e[0].indexOf(` idle`)>0?`idle`:e[0].indexOf(` printing`)>0?`printing`:`unknown`:null,r.local=n.getValue(e,`Location`,`:`,!0).toLowerCase().startsWith(`local`),r.default=null,r.shared=n.getValue(e,`Shared`,` `).toLowerCase().startsWith(`yes`),r}function h(e,t){let n={},r=e.uri.split(`/`);return n.id=t,n.name=e._name,n.model=r.length?r[r.length-1]:``,n.uri=e.uri,n.uuid=null,n.status=e.status,n.local=e.printserver===`local`,n.default=e.default===`yes`,n.shared=e.shared===`yes`,n}function g(e,t){let r={},i=parseInt(n.getValue(e,`PrinterStatus`,`:`),10);return r.id=t,r.name=n.getValue(e,`name`,`:`),r.model=n.getValue(e,`DriverName`,`:`),r.uri=null,r.uuid=null,r.status=d[i]?d[i]:null,r.local=n.getValue(e,`Local`,`:`).toUpperCase()===`TRUE`,r.default=n.getValue(e,`Default`,`:`).toUpperCase()===`TRUE`,r.shared=n.getValue(e,`Shared`,`:`).toUpperCase()===`TRUE`,r}function _(e){return new Promise(r=>{process.nextTick(()=>{let d=[];if(i||s||c||l){let n=`cat /etc/cups/printers.conf 2>/dev/null`;t(n,(a,o)=>{if(!a){let e=o.toString().split(`/dev/null; unset LC_ALL`,t(n,(e,t)=>{let n=(` `+t.toString()).split(` printer `);for(let e=1;e{if(!t)try{let e=JSON.parse(i.toString());if(e.SPPrintersDataType&&e.SPPrintersDataType.length)for(let t=0;t{if(!n){let e=t.toString().split(/\n\s*\n/);for(let t=0;t{let t=B(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`;function d(e,t){let n=e,r=(t+` `+e).toLowerCase();return r.indexOf(`camera`)>=0?n=`Camera`:r.indexOf(`hub`)>=0?n=`Hub`:r.indexOf(`keybrd`)>=0||r.indexOf(`keyboard`)>=0?n=`Keyboard`:r.indexOf(`mouse`)>=0?n=`Mouse`:r.indexOf(`stora`)>=0?n=`Storage`:r.indexOf(`microp`)>=0?n=`Microphone`:(r.indexOf(`headset`)>=0||r.indexOf(`audio`)>=0)&&(n=`Audio`),n}function f(e){let t={},r=e.split(` +`),t);(n.name||n.model)&&d.push(n)}}e&&e(d),r(d)}),u&&r(null)})})}e.printer=_})),zO=z((e=>{let t=V(`child_process`).exec,n=SO(),r=process.platform,i=r===`linux`||r===`android`,a=r===`darwin`,o=r===`win32`,s=r===`freebsd`,c=r===`openbsd`,l=r===`netbsd`,u=r===`sunos`;function d(e,t){let n=e,r=(t+` `+e).toLowerCase();return r.indexOf(`camera`)>=0?n=`Camera`:r.indexOf(`hub`)>=0?n=`Hub`:r.indexOf(`keybrd`)>=0||r.indexOf(`keyboard`)>=0?n=`Keyboard`:r.indexOf(`mouse`)>=0?n=`Mouse`:r.indexOf(`stora`)>=0?n=`Storage`:r.indexOf(`microp`)>=0?n=`Microphone`:(r.indexOf(`headset`)>=0||r.indexOf(`audio`)>=0)&&(n=`Audio`),n}function f(e){let t={},r=e.split(` `);if(r&&r.length&&r[0].indexOf(`Device`)>=0){let e=r[0].split(` `);t.bus=parseInt(e[0],10),e[2]?t.deviceId=parseInt(e[2],10):t.deviceId=null}else t.bus=null,t.deviceId=null;let i=n.getValue(r,`idVendor`,` `,!0).trim(),a=i.split(` `);a.shift();let o=a.join(` `),s=n.getValue(r,`idProduct`,` `,!0).trim(),c=s.split(` `);c.shift();let l=c.join(` `),u=n.getValue(r,`bInterfaceClass`,` `,!0).trim().split(` `);u.shift();let f=u.join(` `),p=n.getValue(r,`iManufacturer`,` `,!0).trim().split(` `);p.shift();let m=p.join(` `),h=n.getValue(r,`iSerial`,` `,!0).trim().split(` `);h.shift();let g=h.join(` `);return t.id=(i.startsWith(`0x`)?i.split(` `)[0].substr(2,10):``)+`:`+(s.startsWith(`0x`)?s.split(` `)[0].substr(2,10):``),t.name=l,t.type=d(f,l),t.removable=null,t.vendor=o,t.manufacturer=m,t.maxPower=n.getValue(r,`MaxPower`,` `,!0),t.serialNumber=g,t}function p(e){let t=``;return e.indexOf(`camera`)>=0?t=`Camera`:e.indexOf(`touch bar`)>=0?t=`Touch Bar`:e.indexOf(`controller`)>=0?t=`Controller`:e.indexOf(`headset`)>=0?t=`Audio`:e.indexOf(`keyboard`)>=0?t=`Keyboard`:e.indexOf(`trackpad`)>=0?t=`Trackpad`:e.indexOf(`sensor`)>=0?t=`Sensor`:e.indexOf(`bthusb`)>=0||e.indexOf(`bth`)>=0||e.indexOf(`rfcomm`)>=0?t=`Bluetooth`:e.indexOf(`usbhub`)>=0||e.indexOf(` hub`)>=0?t=`Hub`:e.indexOf(`mouse`)>=0?t=`Mouse`:e.indexOf(`microp`)>=0?t=`Microphone`:e.indexOf(`removable`)>=0&&(t=`Storage`),t}function m(e,t){let n={};n.id=t,e=e.replace(/ \|/g,``),e=e.trim();let r=e.split(` `);r.shift();try{for(let e=0;e/.exec(r[e]);if(t){let n=t[0];r[e]=r[e].replace(n,`"${n}"`)}}let e=JSON.parse(r.join(` `)),t=(e[`Built-In`]?e[`Built-In`].toLowerCase()!==`yes`:!0)&&(e[`non-removable`]?e[`non-removable`].toLowerCase()===`no`:!0);return n.bus=null,n.deviceId=null,n.id=e[`USB Address`]||null,n.name=e.kUSBProductString||e[`USB Product Name`]||null,n.type=p((e.kUSBProductString||e[`USB Product Name`]||``).toLowerCase()+(t?` removable`:``)),n.removable=e[`non-removable`]?e[`non-removable`].toLowerCase()||!1:!0,n.vendor=e.kUSBVendorString||e[`USB Vendor Name`]||null,n.manufacturer=e.kUSBVendorString||e[`USB Vendor Name`]||null,n.maxPower=null,n.serialNumber=e.kUSBSerialNumberString||null,n.name?n:null}catch{return null}}function h(e,t){let n=``;return t.indexOf(`storage`)>=0||t.indexOf(`speicher`)>=0?n=`Storage`:e.indexOf(`usbhub`)>=0?n=`Hub`:e.indexOf(`storage`)>=0?n=`Storage`:e.indexOf(`usbcontroller`)>=0?n=`Controller`:e.indexOf(`keyboard`)>=0?n=`Keyboard`:e.indexOf(`pointing`)>=0?n=`Mouse`:e.indexOf(`microp`)>=0?n=`Microphone`:e.indexOf(`disk`)>=0&&(n=`Storage`),n}function g(e,t){let r=h(n.getValue(e,`CreationClassName`,`:`).toLowerCase(),n.getValue(e,`name`,`:`).toLowerCase());if(r){let i={};return i.bus=null,i.deviceId=n.getValue(e,`deviceid`,`:`),i.id=t,i.name=n.getValue(e,`name`,`:`),i.type=r,i.removable=null,i.vendor=null,i.manufacturer=n.getValue(e,`Manufacturer`,`:`),i.maxPower=null,i.serialNumber=null,i}else return null}function _(e){return new Promise(r=>{process.nextTick(()=>{let d=[];i&&t(`export LC_ALL=C; lsusb -v 2>/dev/null; unset LC_ALL`,{maxBuffer:1024*1024*128},function(t,n){if(!t){let e=(` @@ -441,24 +441,24 @@ printer `);for(let e=1;e{if(!n){let e=t.toString().split(/\n\s*\n/);for(let t=0;te.deviceId===n.deviceId).length===0&&d.push(n)}}e&&e(d),r(d)}),(u||s||c||l)&&r(null)})})}e.usb=_})),BO=R((e=>{let t=B(`child_process`).exec,n=B(`child_process`).execSync,r=SO(),i=process.platform,a=i===`linux`||i===`android`,o=i===`darwin`,s=i===`win32`,c=i===`freebsd`,l=i===`openbsd`,u=i===`netbsd`,d=i===`sunos`;function f(e,t,n){e=e.toLowerCase();let r=``;return e.indexOf(`input`)>=0&&(r=`Microphone`),e.indexOf(`display audio`)>=0&&(r=`Speaker`),e.indexOf(`speak`)>=0&&(r=`Speaker`),e.indexOf(`laut`)>=0&&(r=`Speaker`),e.indexOf(`loud`)>=0&&(r=`Speaker`),e.indexOf(`head`)>=0&&(r=`Headset`),e.indexOf(`mic`)>=0&&(r=`Microphone`),e.indexOf(`mikr`)>=0&&(r=`Microphone`),e.indexOf(`phone`)>=0&&(r=`Phone`),e.indexOf(`controll`)>=0&&(r=`Controller`),e.indexOf(`line o`)>=0&&(r=`Line Out`),e.indexOf(`digital o`)>=0&&(r=`Digital Out`),e.indexOf(`smart sound technology`)>=0&&(r=`Digital Signal Processor`),e.indexOf(`high definition audio`)>=0&&(r=`Sound Driver`),!r&&n?r=`Speaker`:!r&&t&&(r=`Microphone`),r}function p(){let e=[];try{return n(`lspci -v 2>/dev/null`,r.execOptsLinux).toString().split(` +`),t);n&&d.filter(e=>e.deviceId===n.deviceId).length===0&&d.push(n)}}e&&e(d),r(d)}),(u||s||c||l)&&r(null)})})}e.usb=_})),BO=z((e=>{let t=V(`child_process`).exec,n=V(`child_process`).execSync,r=SO(),i=process.platform,a=i===`linux`||i===`android`,o=i===`darwin`,s=i===`win32`,c=i===`freebsd`,l=i===`openbsd`,u=i===`netbsd`,d=i===`sunos`;function f(e,t,n){e=e.toLowerCase();let r=``;return e.indexOf(`input`)>=0&&(r=`Microphone`),e.indexOf(`display audio`)>=0&&(r=`Speaker`),e.indexOf(`speak`)>=0&&(r=`Speaker`),e.indexOf(`laut`)>=0&&(r=`Speaker`),e.indexOf(`loud`)>=0&&(r=`Speaker`),e.indexOf(`head`)>=0&&(r=`Headset`),e.indexOf(`mic`)>=0&&(r=`Microphone`),e.indexOf(`mikr`)>=0&&(r=`Microphone`),e.indexOf(`phone`)>=0&&(r=`Phone`),e.indexOf(`controll`)>=0&&(r=`Controller`),e.indexOf(`line o`)>=0&&(r=`Line Out`),e.indexOf(`digital o`)>=0&&(r=`Digital Out`),e.indexOf(`smart sound technology`)>=0&&(r=`Digital Signal Processor`),e.indexOf(`high definition audio`)>=0&&(r=`Sound Driver`),!r&&n?r=`Speaker`:!r&&t&&(r=`Microphone`),r}function p(){let e=[];try{return n(`lspci -v 2>/dev/null`,r.execOptsLinux).toString().split(` `).forEach(t=>{let n=t.split(` `);if(n&&n.length&&n[0].toLowerCase().indexOf(`audio`)>=0){let t={};t.slotId=n[0].split(` `)[0],t.driver=r.getValue(n,`Kernel driver in use`,`:`,!0)||r.getValue(n,`Kernel modules`,`:`,!0),e.push(t)}}),e}catch{return e}}function m(e){let t=e;return e===1?t=`other`:e===2?t=`unknown`:e===3?t=`enabled`:e===4?t=`disabled`:e===5&&(t=`not applicable`),t}function h(e,t){let n={},i=r.getValue(e,`Slot`),a=t.filter(e=>e.slotId===i);return n.id=i,n.name=r.getValue(e,`SDevice`),n.manufacturer=r.getValue(e,`SVendor`),n.revision=r.getValue(e,`Rev`),n.driver=a&&a.length===1&&a[0].driver?a[0].driver:``,n.default=null,n.channel=`PCIe`,n.type=f(n.name,null,null),n.in=null,n.out=null,n.status=`online`,n}function g(e){let t=``;return e.indexOf(`builtin`)>=0&&(t=`Built-In`),e.indexOf(`extern`)>=0&&(t=`Audio-Jack`),e.indexOf(`hdmi`)>=0&&(t=`HDMI`),e.indexOf(`displayport`)>=0&&(t=`Display-Port`),e.indexOf(`usb`)>=0&&(t=`USB`),e.indexOf(`pci`)>=0&&(t=`PCIe`),t}function _(e,t){let n={},r=((e.coreaudio_device_transport||``)+` `+(e._name||``)).toLowerCase();return n.id=t,n.name=e._name,n.manufacturer=e.coreaudio_device_manufacturer,n.revision=null,n.driver=null,n.default=!!e.coreaudio_default_audio_input_device||!!e.coreaudio_default_audio_output_device,n.channel=g(r),n.type=f(n.name,!!e.coreaudio_device_input,!!e.coreaudio_device_output),n.in=!!e.coreaudio_device_input,n.out=!!e.coreaudio_device_output,n.status=`online`,n}function v(e){let t={},n=m(r.getValue(e,`StatusInfo`,`:`));return t.id=r.getValue(e,`DeviceID`,`:`),t.name=r.getValue(e,`name`,`:`),t.manufacturer=r.getValue(e,`manufacturer`,`:`),t.revision=null,t.driver=null,t.default=null,t.channel=null,t.type=f(t.name,null,null),t.in=null,t.out=null,t.status=n,t}function y(e){return new Promise(n=>{process.nextTick(()=>{let i=[];(a||c||l||u)&&t(`lspci -vmm 2>/dev/null`,(t,a)=>{if(!t){let e=p();a.toString().split(` `).forEach(t=>{let n=t.split(` `);if(r.getValue(n,`class`,`:`,!0).toLowerCase().indexOf(`audio`)>=0){let t=h(n,e);i.push(t)}})}e&&e(i),n(i)}),o&&t(`system_profiler SPAudioDataType -json`,(t,a)=>{if(!t)try{let e=JSON.parse(a.toString());if(e.SPAudioDataType&&e.SPAudioDataType.length&&e.SPAudioDataType[0]&&e.SPAudioDataType[0]._items&&e.SPAudioDataType[0]._items.length)for(let t=0;t{a||t.toString().split(/\n\s*\n/).forEach(e=>{let t=e.split(` -`);r.getValue(t,`name`,`:`)&&i.push(v(t))}),e&&e(i),n(i)}),d&&n(null)})})}e.audio=y})),VO=R(((e,t)=>{t.exports={0:`Ericsson Technology Licensing`,1:`Nokia Mobile Phones`,2:`Intel Corp.`,3:`IBM Corp.`,4:`Toshiba Corp.`,5:`3Com`,6:`Microsoft`,7:`Lucent`,8:`Motorola`,9:`Infineon Technologies AG`,10:`Cambridge Silicon Radio`,11:`Silicon Wave`,12:`Digianswer A/S`,13:`Texas Instruments Inc.`,14:`Ceva, Inc. (formerly Parthus Technologies, Inc.)`,15:`Broadcom Corporation`,16:`Mitel Semiconductor`,17:`Widcomm, Inc`,18:`Zeevo, Inc.`,19:`Atmel Corporation`,20:`Mitsubishi Electric Corporation`,21:`RTX Telecom A/S`,22:`KC Technology Inc.`,23:`NewLogic`,24:`Transilica, Inc.`,25:`Rohde & Schwarz GmbH & Co. KG`,26:`TTPCom Limited`,27:`Signia Technologies, Inc.`,28:`Conexant Systems Inc.`,29:`Qualcomm`,30:`Inventel`,31:`AVM Berlin`,32:`BandSpeed, Inc.`,33:`Mansella Ltd`,34:`NEC Corporation`,35:`WavePlus Technology Co., Ltd.`,36:`Alcatel`,37:`NXP Semiconductors (formerly Philips Semiconductors)`,38:`C Technologies`,39:`Open Interface`,40:`R F Micro Devices`,41:`Hitachi Ltd`,42:`Symbol Technologies, Inc.`,43:`Tenovis`,44:`Macronix International Co. Ltd.`,45:`GCT Semiconductor`,46:`Norwood Systems`,47:`MewTel Technology Inc.`,48:`ST Microelectronics`,49:`Synopsis`,50:`Red-M (Communications) Ltd`,51:`Commil Ltd`,52:`Computer Access Technology Corporation (CATC)`,53:`Eclipse (HQ Espana) S.L.`,54:`Renesas Electronics Corporation`,55:`Mobilian Corporation`,56:`Terax`,57:`Integrated System Solution Corp.`,58:`Matsushita Electric Industrial Co., Ltd.`,59:`Gennum Corporation`,60:`BlackBerry Limited (formerly Research In Motion)`,61:`IPextreme, Inc.`,62:`Systems and Chips, Inc.`,63:`Bluetooth SIG, Inc.`,64:`Seiko Epson Corporation`,65:`Integrated Silicon Solution Taiwan, Inc.`,66:`CONWISE Technology Corporation Ltd`,67:`PARROT SA`,68:`Socket Mobile`,69:`Atheros Communications, Inc.`,70:`MediaTek, Inc.`,71:`Bluegiga`,72:`Marvell Technology Group Ltd.`,73:`3DSP Corporation`,74:`Accel Semiconductor Ltd.`,75:`Continental Automotive Systems`,76:`Apple, Inc.`,77:`Staccato Communications, Inc.`,78:`Avago Technologies`,79:`APT Licensing Ltd.`,80:`SiRF Technology`,81:`Tzero Technologies, Inc.`,82:`J&M Corporation`,83:`Free2move AB`,84:`3DiJoy Corporation`,85:`Plantronics, Inc.`,86:`Sony Ericsson Mobile Communications`,87:`Harman International Industries, Inc.`,88:`Vizio, Inc.`,89:`Nordic Semiconductor ASA`,90:`EM Microelectronic-Marin SA`,91:`Ralink Technology Corporation`,92:`Belkin International, Inc.`,93:`Realtek Semiconductor Corporation`,94:`Stonestreet One, LLC`,95:`Wicentric, Inc.`,96:`RivieraWaves S.A.S`,97:`RDA Microelectronics`,98:`Gibson Guitars`,99:`MiCommand Inc.`,100:`Band XI International, LLC`,101:`Hewlett-Packard Company`,102:`9Solutions Oy`,103:`GN Netcom A/S`,104:`General Motors`,105:`A&D Engineering, Inc.`,106:`MindTree Ltd.`,107:`Polar Electro OY`,108:`Beautiful Enterprise Co., Ltd.`,109:`BriarTek, Inc.`,110:`Summit Data Communications, Inc.`,111:`Sound ID`,112:`Monster, LLC`,113:`connectBlue AB`,114:`ShangHai Super Smart Electronics Co. Ltd.`,115:`Group Sense Ltd.`,116:`Zomm, LLC`,117:`Samsung Electronics Co. Ltd.`,118:`Creative Technology Ltd.`,119:`Laird Technologies`,120:`Nike, Inc.`,121:`lesswire AG`,122:`MStar Semiconductor, Inc.`,123:`Hanlynn Technologies`,124:`A & R Cambridge`,125:`Seers Technology Co. Ltd`,126:`Sports Tracking Technologies Ltd.`,127:`Autonet Mobile`,128:`DeLorme Publishing Company, Inc.`,129:`WuXi Vimicro`,130:`Sennheiser Communications A/S`,131:`TimeKeeping Systems, Inc.`,132:`Ludus Helsinki Ltd.`,133:`BlueRadios, Inc.`,134:`equinox AG`,135:`Garmin International, Inc.`,136:`Ecotest`,137:`GN ReSound A/S`,138:`Jawbone`,139:`Topcorn Positioning Systems, LLC`,140:`Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)`,141:`Zscan Software`,142:`Quintic Corp.`,143:`Stollman E+V GmbH`,144:`Funai Electric Co., Ltd.`,145:`Advanced PANMOBIL Systems GmbH & Co. KG`,146:`ThinkOptics, Inc.`,147:`Universal Electronics, Inc.`,148:`Airoha Technology Corp.`,149:`NEC Lighting, Ltd.`,150:`ODM Technology, Inc.`,151:`ConnecteDevice Ltd.`,152:`zer01.tv GmbH`,153:`i.Tech Dynamic Global Distribution Ltd.`,154:`Alpwise`,155:`Jiangsu Toppower Automotive Electronics Co., Ltd.`,156:`Colorfy, Inc.`,157:`Geoforce Inc.`,158:`Bose Corporation`,159:`Suunto Oy`,160:`Kensington Computer Products Group`,161:`SR-Medizinelektronik`,162:`Vertu Corporation Limited`,163:`Meta Watch Ltd.`,164:`LINAK A/S`,165:`OTL Dynamics LLC`,166:`Panda Ocean Inc.`,167:`Visteon Corporation`,168:`ARP Devices Limited`,169:`Magneti Marelli S.p.A`,170:`CAEN RFID srl`,171:`Ingenieur-Systemgruppe Zahn GmbH`,172:`Green Throttle Games`,173:`Peter Systemtechnik GmbH`,174:`Omegawave Oy`,175:`Cinetix`,176:`Passif Semiconductor Corp`,177:`Saris Cycling Group, Inc`,178:`Bekey A/S`,179:`Clarinox Technologies Pty. Ltd.`,180:`BDE Technology Co., Ltd.`,181:`Swirl Networks`,182:`Meso international`,183:`TreLab Ltd`,184:`Qualcomm Innovation Center, Inc. (QuIC)`,185:`Johnson Controls, Inc.`,186:`Starkey Laboratories Inc.`,187:`S-Power Electronics Limited`,188:`Ace Sensor Inc`,189:`Aplix Corporation`,190:`AAMP of America`,191:`Stalmart Technology Limited`,192:`AMICCOM Electronics Corporation`,193:`Shenzhen Excelsecu Data Technology Co.,Ltd`,194:`Geneq Inc.`,195:`adidas AG`,196:`LG Electronics`,197:`Onset Computer Corporation`,198:`Selfly BV`,199:`Quuppa Oy.`,200:`GeLo Inc`,201:`Evluma`,202:`MC10`,203:`Binauric SE`,204:`Beats Electronics`,205:`Microchip Technology Inc.`,206:`Elgato Systems GmbH`,207:`ARCHOS SA`,208:`Dexcom, Inc.`,209:`Polar Electro Europe B.V.`,210:`Dialog Semiconductor B.V.`,211:`Taixingbang\xA0Technology (HK) Co,. LTD.`,212:`Kawantech`,213:`Austco Communication Systems`,214:`Timex Group USA, Inc.`,215:`Qualcomm Technologies, Inc.`,216:`Qualcomm Connected Experiences, Inc.`,217:`Voyetra Turtle Beach`,218:`txtr GmbH`,219:`Biosentronics`,220:`Procter & Gamble`,221:`Hosiden Corporation`,222:`Muzik LLC`,223:`Misfit Wearables Corp`,224:`Google`,225:`Danlers Ltd`,226:`Semilink Inc`,227:`inMusic Brands, Inc`,228:`L.S. Research Inc.`,229:`Eden Software Consultants Ltd.`,230:`Freshtemp`,231:`KS Technologies`,232:`ACTS Technologies`,233:`Vtrack Systems`,234:`Nielsen-Kellerman Company`,235:`Server Technology, Inc.`,236:`BioResearch Associates`,237:`Jolly Logic, LLC`,238:`Above Average Outcomes, Inc.`,239:`Bitsplitters GmbH`,240:`PayPal, Inc.`,241:`Witron Technology Limited`,242:`Aether Things\xA0Inc. (formerly Morse Project Inc.)`,243:`Kent Displays Inc.`,244:`Nautilus Inc.`,245:`Smartifier Oy`,246:`Elcometer Limited`,247:`VSN Technologies Inc.`,248:`AceUni Corp., Ltd.`,249:`StickNFind`,250:`Crystal Code AB`,251:`KOUKAAM a.s.`,252:`Delphi Corporation`,253:`ValenceTech Limited`,254:`Reserved`,255:`Typo Products, LLC`,256:`TomTom International BV`,257:`Fugoo, Inc`,258:`Keiser Corporation`,259:`Bang & Olufsen A/S`,260:`PLUS Locations Systems Pty Ltd`,261:`Ubiquitous Computing Technology Corporation`,262:`Innovative Yachtter Solutions`,263:`William Demant Holding A/S`,264:`Chicony Electronics Co., Ltd.`,265:`Atus BV`,266:`Codegate Ltd.`,267:`ERi, Inc.`,268:`Transducers Direct, LLC`,269:`Fujitsu Ten Limited`,270:`Audi AG`,271:`HiSilicon Technologies Co., Ltd.`,272:`Nippon Seiki Co., Ltd.`,273:`Steelseries ApS`,274:`vyzybl Inc.`,275:`Openbrain Technologies, Co., Ltd.`,276:`Xensr`,277:`e.solutions`,278:`1OAK Technologies`,279:`Wimoto Technologies Inc`,280:`Radius Networks, Inc.`,281:`Wize Technology Co., Ltd.`,282:`Qualcomm Labs, Inc.`,283:`Aruba Networks`,284:`Baidu`,285:`Arendi AG`,286:`Skoda Auto a.s.`,287:`Volkswagon AG`,288:`Porsche AG`,289:`Sino Wealth Electronic Ltd.`,290:`AirTurn, Inc.`,291:`Kinsa, Inc.`,292:`HID Global`,293:`SEAT es`,294:`Promethean Ltd.`,295:`Salutica Allied Solutions`,296:`GPSI Group Pty Ltd`,297:`Nimble Devices Oy`,298:`Changzhou Yongse Infotech Co., Ltd`,299:`SportIQ`,300:`TEMEC Instruments B.V.`,301:`Sony Corporation`,302:`ASSA ABLOY`,303:`Clarion Co., Ltd.`,304:`Warehouse Innovations`,305:`Cypress Semiconductor Corporation`,306:`MADS Inc`,307:`Blue Maestro Limited`,308:`Resolution Products, Inc.`,309:`Airewear LLC`,310:`Seed Labs, Inc. (formerly ETC sp. z.o.o.)`,311:`Prestigio Plaza Ltd.`,312:`NTEO Inc.`,313:`Focus Systems Corporation`,314:`Tencent Holdings Limited`,315:`Allegion`,316:`Murata Manufacuring Co., Ltd.`,318:`Nod, Inc.`,319:`B&B Manufacturing Company`,320:`Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd`,321:`FedEx Services`,322:`Grape Systems Inc.`,323:`Bkon Connect`,324:`Lintech GmbH`,325:`Novatel Wireless`,326:`Ciright`,327:`Mighty Cast, Inc.`,328:`Ambimat Electronics`,329:`Perytons Ltd.`,330:`Tivoli Audio, LLC`,331:`Master Lock`,332:`Mesh-Net Ltd`,333:`Huizhou Desay SV Automotive CO., LTD.`,334:`Tangerine, Inc.`,335:`B&W Group Ltd.`,336:`Pioneer Corporation`,337:`OnBeep`,338:`Vernier Software & Technology`,339:`ROL Ergo`,340:`Pebble Technology`,341:`NETATMO`,342:`Accumulate AB`,343:`Anhui Huami Information Technology Co., Ltd.`,344:`Inmite s.r.o.`,345:`ChefSteps, Inc.`,346:`micas AG`,347:`Biomedical Research Ltd.`,348:`Pitius Tec S.L.`,349:`Estimote, Inc.`,350:`Unikey Technologies, Inc.`,351:`Timer Cap Co.`,352:`AwoX`,353:`yikes`,354:`MADSGlobal NZ Ltd.`,355:`PCH International`,356:`Qingdao Yeelink Information Technology Co., Ltd.`,357:`Milwaukee Tool (formerly Milwaukee Electric Tools)`,358:`MISHIK Pte Ltd`,359:`Bayer HealthCare`,360:`Spicebox LLC`,361:`emberlight`,362:`Cooper-Atkins Corporation`,363:`Qblinks`,364:`MYSPHERA`,365:`LifeScan Inc`,366:`Volantic AB`,367:`Podo Labs, Inc`,368:`Roche Diabetes Care AG`,369:`Amazon Fulfillment Service`,370:`Connovate Technology Private Limited`,371:`Kocomojo, LLC`,372:`Everykey LLC`,373:`Dynamic Controls`,374:`SentriLock`,375:`I-SYST inc.`,376:`CASIO COMPUTER CO., LTD.`,377:`LAPIS Semiconductor Co., Ltd.`,378:`Telemonitor, Inc.`,379:`taskit GmbH`,380:`Daimler AG`,381:`BatAndCat`,382:`BluDotz Ltd`,383:`XTel ApS`,384:`Gigaset Communications GmbH`,385:`Gecko Health Innovations, Inc.`,386:`HOP Ubiquitous`,387:`To Be Assigned`,388:`Nectar`,389:`bel’apps LLC`,390:`CORE Lighting Ltd`,391:`Seraphim Sense Ltd`,392:`Unico RBC`,393:`Physical Enterprises Inc.`,394:`Able Trend Technology Limited`,395:`Konica Minolta, Inc.`,396:`Wilo SE`,397:`Extron Design Services`,398:`Fitbit, Inc.`,399:`Fireflies Systems`,400:`Intelletto Technologies Inc.`,401:`FDK CORPORATION`,402:`Cloudleaf, Inc`,403:`Maveric Automation LLC`,404:`Acoustic Stream Corporation`,405:`Zuli`,406:`Paxton Access Ltd`,407:`WiSilica Inc`,408:`Vengit Limited`,409:`SALTO SYSTEMS S.L.`,410:`TRON Forum (formerly T-Engine Forum)`,411:`CUBETECH s.r.o.`,412:`Cokiya Incorporated`,413:`CVS Health`,414:`Ceruus`,415:`Strainstall Ltd`,416:`Channel Enterprises (HK) Ltd.`,417:`FIAMM`,418:`GIGALANE.CO.,LTD`,419:`EROAD`,420:`Mine Safety Appliances`,421:`Icon Health and Fitness`,422:`Asandoo GmbH`,423:`ENERGOUS CORPORATION`,424:`Taobao`,425:`Canon Inc.`,426:`Geophysical Technology Inc.`,427:`Facebook, Inc.`,428:`Nipro Diagnostics, Inc.`,429:`FlightSafety International`,430:`Earlens Corporation`,431:`Sunrise Micro Devices, Inc.`,432:`Star Micronics Co., Ltd.`,433:`Netizens Sp. z o.o.`,434:`Nymi Inc.`,435:`Nytec, Inc.`,436:`Trineo Sp. z o.o.`,437:`Nest Labs Inc.`,438:`LM Technologies Ltd`,439:`General Electric Company`,440:`i+D3 S.L.`,441:`HANA Micron`,442:`Stages Cycling LLC`,443:`Cochlear Bone Anchored Solutions AB`,444:`SenionLab AB`,445:`Syszone Co., Ltd`,446:`Pulsate Mobile Ltd.`,447:`Hong Kong HunterSun Electronic Limited`,448:`pironex GmbH`,449:`BRADATECH Corp.`,450:`Transenergooil AG`,451:`Bunch`,452:`DME Microelectronics`,453:`Bitcraze AB`,454:`HASWARE Inc.`,455:`Abiogenix Inc.`,456:`Poly-Control ApS`,457:`Avi-on`,458:`Laerdal Medical AS`,459:`Fetch My Pet`,460:`Sam Labs Ltd.`,461:`Chengdu Synwing Technology Ltd`,462:`HOUWA SYSTEM DESIGN, k.k.`,463:`BSH`,464:`Primus Inter Pares Ltd`,465:`August`,466:`Gill Electronics`,467:`Sky Wave Design`,468:`Newlab S.r.l.`,469:`ELAD srl`,470:`G-wearables inc.`,471:`Squadrone Systems Inc.`,472:`Code Corporation`,473:`Savant Systems LLC`,474:`Logitech International SA`,475:`Innblue Consulting`,476:`iParking Ltd.`,477:`Koninklijke Philips Electronics N.V.`,478:`Minelab Electronics Pty Limited`,479:`Bison Group Ltd.`,480:`Widex A/S`,481:`Jolla Ltd`,482:`Lectronix, Inc.`,483:`Caterpillar Inc`,484:`Freedom Innovations`,485:`Dynamic Devices Ltd`,486:`Technology Solutions (UK) Ltd`,487:`IPS Group Inc.`,488:`STIR`,489:`Sano, Inc`,490:`Advanced Application Design, Inc.`,491:`AutoMap LLC`,492:`Spreadtrum Communications Shanghai Ltd`,493:`CuteCircuit LTD`,494:`Valeo Service`,495:`Fullpower Technologies, Inc.`,496:`KloudNation`,497:`Zebra Technologies Corporation`,498:`Itron, Inc.`,499:`The University of Tokyo`,500:`UTC Fire and Security`,501:`Cool Webthings Limited`,502:`DJO Global`,503:`Gelliner Limited`,504:`Anyka (Guangzhou) Microelectronics Technology Co, LTD`,505:`Medtronic, Inc.`,506:`Gozio, Inc.`,507:`Form Lifting, LLC`,508:`Wahoo Fitness, LLC`,509:`Kontakt Micro-Location Sp. z o.o.`,510:`Radio System Corporation`,511:`Freescale Semiconductor, Inc.`,512:`Verifone Systems PTe Ltd. Taiwan Branch`,513:`AR Timing`,514:`Rigado LLC`,515:`Kemppi Oy`,516:`Tapcentive Inc.`,517:`Smartbotics Inc.`,518:`Otter Products, LLC`,519:`STEMP Inc.`,520:`LumiGeek LLC`,521:`InvisionHeart Inc.`,522:`Macnica Inc. `,523:`Jaguar Land Rover Limited`,524:`CoroWare Technologies, Inc`,525:`Simplo Technology Co., LTD`,526:`Omron Healthcare Co., LTD`,527:`Comodule GMBH`,528:`ikeGPS`,529:`Telink Semiconductor Co. Ltd`,530:`Interplan Co., Ltd`,531:`Wyler AG`,532:`IK Multimedia Production srl`,533:`Lukoton Experience Oy`,534:`MTI Ltd`,535:`Tech4home, Lda`,536:`Hiotech AB`,537:`DOTT Limited`,538:`Blue Speck Labs, LLC`,539:`Cisco Systems, Inc`,540:`Mobicomm Inc`,541:`Edamic`,542:`Goodnet, Ltd`,543:`Luster Leaf Products Inc`,544:`Manus Machina BV`,545:`Mobiquity Networks Inc`,546:`Praxis Dynamics`,547:`Philip Morris Products S.A.`,548:`Comarch SA`,549:`Nestl Nespresso S.A.`,550:`Merlinia A/S`,551:`LifeBEAM Technologies`,552:`Twocanoes Labs, LLC`,553:`Muoverti Limited`,554:`Stamer Musikanlagen GMBH`,555:`Tesla Motors`,556:`Pharynks Corporation`,557:`Lupine`,558:`Siemens AG`,559:`Huami (Shanghai) Culture Communication CO., LTD`,560:`Foster Electric Company, Ltd`,561:`ETA SA`,562:`x-Senso Solutions Kft`,563:`Shenzhen SuLong Communication Ltd`,564:`FengFan (BeiJing) Technology Co, Ltd`,565:`Qrio Inc`,566:`Pitpatpet Ltd`,567:`MSHeli s.r.l.`,568:`Trakm8 Ltd`,569:`JIN CO, Ltd`,570:`Alatech Tehnology`,571:`Beijing CarePulse Electronic Technology Co, Ltd`,572:`Awarepoint`,573:`ViCentra B.V.`,574:`Raven Industries`,575:`WaveWare Technologies Inc.`,576:`Argenox Technologies`,577:`Bragi GmbH`,578:`16Lab Inc`,579:`Masimo Corp`,580:`Iotera Inc`,581:`Endress+Hauser`,582:`ACKme Networks, Inc.`,583:`FiftyThree Inc.`,584:`Parker Hannifin Corp`,585:`Transcranial Ltd`,586:`Uwatec AG`,587:`Orlan LLC`,588:`Blue Clover Devices`,589:`M-Way Solutions GmbH`,590:`Microtronics Engineering GmbH`,591:`Schneider Schreibgerte GmbH`,592:`Sapphire Circuits LLC`,593:`Lumo Bodytech Inc.`,594:`UKC Technosolution`,595:`Xicato Inc.`,596:`Playbrush`,597:`Dai Nippon Printing Co., Ltd.`,598:`G24 Power Limited`,599:`AdBabble Local Commerce Inc.`,600:`Devialet SA`,601:`ALTYOR`,602:`University of Applied Sciences Valais/Haute Ecole Valaisanne`,603:`Five Interactive, LLC dba Zendo`,604:`NetEaseHangzhouNetwork co.Ltd.`,605:`Lexmark International Inc.`,606:`Fluke Corporation`,607:`Yardarm Technologies`,608:`SensaRx`,609:`SECVRE GmbH`,610:`Glacial Ridge Technologies`,611:`Identiv, Inc.`,612:`DDS, Inc.`,613:`SMK Corporation`,614:`Schawbel Technologies LLC`,615:`XMI Systems SA`,616:`Cerevo`,617:`Torrox GmbH & Co KG`,618:`Gemalto`,619:`DEKA Research & Development Corp.`,620:`Domster Tadeusz Szydlowski`,621:`Technogym SPA`,622:`FLEURBAEY BVBA`,623:`Aptcode Solutions`,624:`LSI ADL Technology`,625:`Animas Corp`,626:`Alps Electric Co., Ltd.`,627:`OCEASOFT`,628:`Motsai Research`,629:`Geotab`,630:`E.G.O. Elektro-Gertebau GmbH`,631:`bewhere inc`,632:`Johnson Outdoors Inc`,633:`steute Schaltgerate GmbH & Co. KG`,634:`Ekomini inc.`,635:`DEFA AS`,636:`Aseptika Ltd`,637:`HUAWEI Technologies Co., Ltd. ( )`,638:`HabitAware, LLC`,639:`ruwido austria gmbh`,640:`ITEC corporation`,641:`StoneL`,642:`Sonova AG`,643:`Maven Machines, Inc.`,644:`Synapse Electronics`,645:`Standard Innovation Inc.`,646:`RF Code, Inc.`,647:`Wally Ventures S.L.`,648:`Willowbank Electronics Ltd`,649:`SK Telecom`,650:`Jetro AS`,651:`Code Gears LTD`,652:`NANOLINK APS`,653:`IF, LLC`,654:`RF Digital Corp`,655:`Church & Dwight Co., Inc`,656:`Multibit Oy`,657:`CliniCloud Inc`,658:`SwiftSensors`,659:`Blue Bite`,660:`ELIAS GmbH`,661:`Sivantos GmbH`,662:`Petzl`,663:`storm power ltd`,664:`EISST Ltd`,665:`Inexess Technology Simma KG`,666:`Currant, Inc.`,667:`C2 Development, Inc.`,668:`Blue Sky Scientific, LLC`,669:`ALOTTAZS LABS, LLC`,670:`Kupson spol. s r.o.`,671:`Areus Engineering GmbH`,672:`Impossible Camera GmbH`,673:`InventureTrack Systems`,674:`LockedUp`,675:`Itude`,676:`Pacific Lock Company`,677:`Tendyron Corporation ( )`,678:`Robert Bosch GmbH`,679:`Illuxtron international B.V.`,680:`miSport Ltd.`,681:`Chargelib`,682:`Doppler Lab`,683:`BBPOS Limited`,684:`RTB Elektronik GmbH & Co. KG`,685:`Rx Networks, Inc.`,686:`WeatherFlow, Inc.`,687:`Technicolor USA Inc.`,688:`Bestechnic(Shanghai),Ltd`,689:`Raden Inc`,690:`JouZen Oy`,691:`CLABER S.P.A.`,692:`Hyginex, Inc.`,693:`HANSHIN ELECTRIC RAILWAY CO.,LTD.`,694:`Schneider Electric`,695:`Oort Technologies LLC`,696:`Chrono Therapeutics`,697:`Rinnai Corporation`,698:`Swissprime Technologies AG`,699:`Koha.,Co.Ltd`,700:`Genevac Ltd`,701:`Chemtronics`,702:`Seguro Technology Sp. z o.o.`,703:`Redbird Flight Simulations`,704:`Dash Robotics`,705:`LINE Corporation`,706:`Guillemot Corporation`,707:`Techtronic Power Tools Technology Limited`,708:`Wilson Sporting Goods`,709:`Lenovo (Singapore) Pte Ltd. ( )`,710:`Ayatan Sensors`,711:`Electronics Tomorrow Limited`,712:`VASCO Data Security International, Inc.`,713:`PayRange Inc.`,714:`ABOV Semiconductor`,715:`AINA-Wireless Inc.`,716:`Eijkelkamp Soil & Water`,717:`BMA ergonomics b.v.`,718:`Teva Branded Pharmaceutical Products R&D, Inc.`,719:`Anima`,720:`3M`,721:`Empatica Srl`,722:`Afero, Inc.`,723:`Powercast Corporation`,724:`Secuyou ApS`,725:`OMRON Corporation`,726:`Send Solutions`,727:`NIPPON SYSTEMWARE CO.,LTD.`,728:`Neosfar`,729:`Fliegl Agrartechnik GmbH`,730:`Gilvader`,731:`Digi International Inc (R)`,732:`DeWalch Technologies, Inc.`,733:`Flint Rehabilitation Devices, LLC`,734:`Samsung SDS Co., Ltd.`,735:`Blur Product Development`,736:`University of Michigan`,737:`Victron Energy BV`,738:`NTT docomo`,739:`Carmanah Technologies Corp.`,740:`Bytestorm Ltd.`,741:`Espressif Incorporated ( () )`,742:`Unwire`,743:`Connected Yard, Inc.`,744:`American Music Environments`,745:`Sensogram Technologies, Inc.`,746:`Fujitsu Limited`,747:`Ardic Technology`,748:`Delta Systems, Inc`,749:`HTC Corporation`,750:`Citizen Holdings Co., Ltd.`,751:`SMART-INNOVATION.inc`,752:`Blackrat Software`,753:`The Idea Cave, LLC`,754:`GoPro, Inc.`,755:`AuthAir, Inc`,756:`Vensi, Inc.`,757:`Indagem Tech LLC`,758:`Intemo Technologies`,759:`DreamVisions co., Ltd.`,760:`Runteq Oy Ltd`,761:`IMAGINATION TECHNOLOGIES LTD`,762:`CoSTAR TEchnologies`,763:`Clarius Mobile Health Corp.`,764:`Shanghai Frequen Microelectronics Co., Ltd.`,765:`Uwanna, Inc.`,766:`Lierda Science & Technology Group Co., Ltd.`,767:`Silicon Laboratories`,768:`World Moto Inc.`,769:`Giatec Scientific Inc.`,770:`Loop Devices, Inc`,771:`IACA electronique`,772:`Martians Inc`,773:`Swipp ApS`,774:`Life Laboratory Inc.`,775:`FUJI INDUSTRIAL CO.,LTD.`,776:`Surefire, LLC`,777:`Dolby Labs`,778:`Ellisys`,779:`Magnitude Lighting Converters`,780:`Hilti AG`,781:`Devdata S.r.l.`,782:`Deviceworx`,783:`Shortcut Labs`,784:`SGL Italia S.r.l.`,785:`PEEQ DATA`,786:`Ducere Technologies Pvt Ltd`,787:`DiveNav, Inc.`,788:`RIIG AI Sp. z o.o.`,789:`Thermo Fisher Scientific`,790:`AG Measurematics Pvt. Ltd.`,791:`CHUO Electronics CO., LTD.`,792:`Aspenta International`,793:`Eugster Frismag AG`,794:`Amber wireless GmbH`,795:`HQ Inc`,796:`Lab Sensor Solutions`,797:`Enterlab ApS`,798:`Eyefi, Inc.`,799:`MetaSystem S.p.A.`,800:`SONO ELECTRONICS. CO., LTD`,801:`Jewelbots`,802:`Compumedics Limited`,803:`Rotor Bike Components`,804:`Astro, Inc.`,805:`Amotus Solutions`,806:`Healthwear Technologies (Changzhou)Ltd`,807:`Essex Electronics`,808:`Grundfos A/S`,809:`Eargo, Inc.`,810:`Electronic Design Lab`,811:`ESYLUX`,812:`NIPPON SMT.CO.,Ltd`,813:`BM innovations GmbH`,814:`indoormap`,815:`OttoQ Inc`,816:`North Pole Engineering`,817:`3flares Technologies Inc.`,818:`Electrocompaniet A.S.`,819:`Mul-T-Lock`,820:`Corentium AS`,821:`Enlighted Inc`,822:`GISTIC`,823:`AJP2 Holdings, LLC`,824:`COBI GmbH`,825:`Blue Sky Scientific, LLC`,826:`Appception, Inc.`,827:`Courtney Thorne Limited`,828:`Virtuosys`,829:`TPV Technology Limited`,830:`Monitra SA`,831:`Automation Components, Inc.`,832:`Letsense s.r.l.`,833:`Etesian Technologies LLC`,834:`GERTEC BRASIL LTDA.`,835:`Drekker Development Pty. Ltd.`,836:`Whirl Inc`,837:`Locus Positioning`,838:`Acuity Brands Lighting, Inc`,839:`Prevent Biometrics`,840:`Arioneo`,841:`VersaMe`,842:`Vaddio`,843:`Libratone A/S`,844:`HM Electronics, Inc.`,845:`TASER International, Inc.`,846:`SafeTrust Inc.`,847:`Heartland Payment Systems`,848:`Bitstrata Systems Inc.`,849:`Pieps GmbH`,850:`iRiding(Xiamen)Technology Co.,Ltd.`,851:`Alpha Audiotronics, Inc.`,852:`TOPPAN FORMS CO.,LTD.`,853:`Sigma Designs, Inc.`,854:`Spectrum Brands, Inc.`,855:`Polymap Wireless`,856:`MagniWare Ltd.`,857:`Novotec Medical GmbH`,858:`Medicom Innovation Partner a/s`,859:`Matrix Inc.`,860:`Eaton Corporation`,861:`KYS`,862:`Naya Health, Inc.`,863:`Acromag`,864:`Insulet Corporation`,865:`Wellinks Inc.`,866:`ON Semiconductor`,867:`FREELAP SA`,868:`Favero Electronics Srl`,869:`BioMech Sensor LLC`,870:`BOLTT Sports technologies Private limited`,871:`Saphe International`,872:`Metormote AB`,873:`littleBits`,874:`SetPoint Medical`,875:`BRControls Products BV`,876:`Zipcar`,877:`AirBolt Pty Ltd`,878:`KeepTruckin Inc`,879:`Motiv, Inc.`,880:`Wazombi Labs O`,881:`ORBCOMM`,882:`Nixie Labs, Inc.`,883:`AppNearMe Ltd`,884:`Holman Industries`,885:`Expain AS`,886:`Electronic Temperature Instruments Ltd`,887:`Plejd AB`,888:`Propeller Health`,889:`Shenzhen iMCO Electronic Technology Co.,Ltd`,890:`Algoria`,891:`Apption Labs Inc.`,892:`Cronologics Corporation`,893:`MICRODIA Ltd.`,894:`lulabytes S.L.`,895:`Nestec S.A.`,896:`LLC MEGA - F service`,897:`Sharp Corporation`,898:`Precision Outcomes Ltd`,899:`Kronos Incorporated`,900:`OCOSMOS Co., Ltd.`,901:`Embedded Electronic Solutions Ltd. dba e2Solutions`,902:`Aterica Inc.`,903:`BluStor PMC, Inc.`,904:`Kapsch TrafficCom AB`,905:`ActiveBlu Corporation`,906:`Kohler Mira Limited`,907:`Noke`,908:`Appion Inc.`,909:`Resmed Ltd`,910:`Crownstone B.V.`,911:`Xiaomi Inc.`,912:`INFOTECH s.r.o.`,913:`Thingsquare AB`,914:`T&D`,915:`LAVAZZA S.p.A.`,916:`Netclearance Systems, Inc.`,917:`SDATAWAY`,918:`BLOKS GmbH`,919:`LEGO System A/S`,920:`Thetatronics Ltd`,921:`Nikon Corporation`,922:`NeST`,923:`South Silicon Valley Microelectronics`,924:`ALE International`,925:`CareView Communications, Inc.`,926:`SchoolBoard Limited`,927:`Molex Corporation`,928:`IVT Wireless Limited`,929:`Alpine Labs LLC`,930:`Candura Instruments`,931:`SmartMovt Technology Co., Ltd`,932:`Token Zero Ltd`,933:`ACE CAD Enterprise Co., Ltd. (ACECAD)`,934:`Medela, Inc`,935:`AeroScout`,936:`Esrille Inc.`,937:`THINKERLY SRL`,938:`Exon Sp. z o.o.`,939:`Meizu Technology Co., Ltd.`,940:`Smablo LTD`,941:`XiQ`,942:`Allswell Inc.`,943:`Comm-N-Sense Corp DBA Verigo`,944:`VIBRADORM GmbH`,945:`Otodata Wireless Network Inc.`,946:`Propagation Systems Limited`,947:`Midwest Instruments & Controls`,948:`Alpha Nodus, inc.`,949:`petPOMM, Inc`,950:`Mattel`,951:`Airbly Inc.`,952:`A-Safe Limited`,953:`FREDERIQUE CONSTANT SA`,954:`Maxscend Microelectronics Company Limited`,955:`Abbott Diabetes Care`,956:`ASB Bank Ltd`,957:`amadas`,958:`Applied Science, Inc.`,959:`iLumi Solutions Inc.`,960:`Arch Systems Inc.`,961:`Ember Technologies, Inc.`,962:`Snapchat Inc`,963:`Casambi Technologies Oy`,964:`Pico Technology Inc.`,965:`St. Jude Medical, Inc.`,966:`Intricon`,967:`Structural Health Systems, Inc.`,968:`Avvel International`,969:`Gallagher Group`,970:`In2things Automation Pvt. Ltd.`,971:`SYSDEV Srl`,972:`Vonkil Technologies Ltd`,973:`Wynd Technologies, Inc.`,974:`CONTRINEX S.A.`,975:`MIRA, Inc.`,976:`Watteam Ltd`,977:`Density Inc.`,978:`IOT Pot India Private Limited`,979:`Sigma Connectivity AB`,980:`PEG PEREGO SPA`,981:`Wyzelink Systems Inc.`,982:`Yota Devices LTD`,983:`FINSECUR`,984:`Zen-Me Labs Ltd`,985:`3IWare Co., Ltd.`,986:`EnOcean GmbH`,987:`Instabeat, Inc`,988:`Nima Labs`,989:`Andreas Stihl AG & Co. KG`,990:`Nathan Rhoades LLC`,991:`Grob Technologies, LLC`,992:`Actions (Zhuhai) Technology Co., Limited`,993:`SPD Development Company Ltd`,994:`Sensoan Oy`,995:`Qualcomm Life Inc`,996:`Chip-ing AG`,997:`ffly4u`,998:`IoT Instruments Oy`,999:`TRUE Fitness Technology`,1e3:`Reiner Kartengeraete GmbH & Co. KG.`,1001:`SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.`,1002:`Hello Inc.`,1003:`Evollve Inc.`,1004:`Jigowatts Inc.`,1005:`BASIC MICRO.COM,INC.`,1006:`CUBE TECHNOLOGIES`,1007:`foolography GmbH`,1008:`CLINK`,1009:`Hestan Smart Cooking Inc.`,1010:`WindowMaster A/S`,1011:`Flowscape AB`,1012:`PAL Technologies Ltd`,1013:`WHERE, Inc.`,1014:`Iton Technology Corp.`,1015:`Owl Labs Inc.`,1016:`Rockford Corp.`,1017:`Becon Technologies Co.,Ltd.`,1018:`Vyassoft Technologies Inc`,1019:`Nox Medical`,1020:`Kimberly-Clark`,1021:`Trimble Navigation Ltd.`,1022:`Littelfuse`,1023:`Withings`,1024:`i-developer IT Beratung UG`,1026:`Sears Holdings Corporation`,1027:`Gantner Electronic GmbH`,1028:`Authomate Inc`,1029:`Vertex International, Inc.`,1030:`Airtago`,1031:`Swiss Audio SA`,1032:`ToGetHome Inc.`,1033:`AXIS`,1034:`Openmatics`,1035:`Jana Care Inc.`,1036:`Senix Corporation`,1037:`NorthStar Battery Company, LLC`,1038:`SKF (U.K.) Limited`,1039:`CO-AX Technology, Inc.`,1040:`Fender Musical Instruments`,1041:`Luidia Inc`,1042:`SEFAM`,1043:`Wireless Cables Inc`,1044:`Lightning Protection International Pty Ltd`,1045:`Uber Technologies Inc`,1046:`SODA GmbH`,1047:`Fatigue Science`,1048:`Alpine Electronics Inc.`,1049:`Novalogy LTD`,1050:`Friday Labs Limited`,1051:`OrthoAccel Technologies`,1052:`WaterGuru, Inc.`,1053:`Benning Elektrotechnik und Elektronik GmbH & Co. KG`,1054:`Dell Computer Corporation`,1055:`Kopin Corporation`,1056:`TecBakery GmbH`,1057:`Backbone Labs, Inc.`,1058:`DELSEY SA`,1059:`Chargifi Limited`,1060:`Trainesense Ltd.`,1061:`Unify Software and Solutions GmbH & Co. KG`,1062:`Husqvarna AB`,1063:`Focus fleet and fuel management inc`,1064:`SmallLoop, LLC`,1065:`Prolon Inc.`,1066:`BD Medical`,1067:`iMicroMed Incorporated`,1068:`Ticto N.V.`,1069:`Meshtech AS`,1070:`MemCachier Inc.`,1071:`Danfoss A/S`,1072:`SnapStyk Inc.`,1073:`Amyway Corporation`,1074:`Silk Labs, Inc.`,1075:`Pillsy Inc.`,1076:`Hatch Baby, Inc.`,1077:`Blocks Wearables Ltd.`,1078:`Drayson Technologies (Europe) Limited`,1079:`eBest IOT Inc.`,1080:`Helvar Ltd`,1081:`Radiance Technologies`,1082:`Nuheara Limited`,1083:`Appside co., ltd.`,1084:`DeLaval`,1085:`Coiler Corporation`,1086:`Thermomedics, Inc.`,1087:`Tentacle Sync GmbH`,1088:`Valencell, Inc.`,1089:`iProtoXi Oy`,1090:`SECOM CO., LTD.`,1091:`Tucker International LLC`,1092:`Metanate Limited`,1093:`Kobian Canada Inc.`,1094:`NETGEAR, Inc.`,1095:`Fabtronics Australia Pty Ltd`,1096:`Grand Centrix GmbH`,1097:`1UP USA.com llc`,1098:`SHIMANO INC.`,1099:`Nain Inc.`,1100:`LifeStyle Lock, LLC`,1101:`VEGA Grieshaber KG`,1102:`Xtrava Inc.`,1103:`TTS Tooltechnic Systems AG & Co. KG`,1104:`Teenage Engineering AB`,1105:`Tunstall Nordic AB`,1106:`Svep Design Center AB`,1107:`GreenPeak Technologies BV`,1108:`Sphinx Electronics GmbH & Co KG`,1109:`Atomation`,1110:`Nemik Consulting Inc`,1111:`RF INNOVATION`,1112:`Mini Solution Co., Ltd.`,1113:`Lumenetix, Inc`,1114:`2048450 Ontario Inc`,1115:`SPACEEK LTD`,1116:`Delta T Corporation`,1117:`Boston Scientific Corporation`,1118:`Nuviz, Inc.`,1119:`Real Time Automation, Inc.`,1120:`Kolibree`,1121:`vhf elektronik GmbH`,1122:`Bonsai Systems GmbH`,1123:`Fathom Systems Inc.`,1124:`Bellman & Symfon`,1125:`International Forte Group LLC`,1126:`CycleLabs Solutions inc.`,1127:`Codenex Oy`,1128:`Kynesim Ltd`,1129:`Palago AB`,1130:`INSIGMA INC.`,1131:`PMD Solutions`,1132:`Qingdao Realtime Technology Co., Ltd.`,1133:`BEGA Gantenbrink-Leuchten KG`,1134:`Pambor Ltd.`,65535:`SPECIAL USE/DEFAULT`}})),HO=R((e=>{let t=B(`child_process`).exec,n=B(`child_process`).execSync,r=B(`path`),i=SO(),a=VO(),o=B(`fs`),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`;function h(e){let t=``;return e.indexOf(`keyboard`)>=0&&(t=`Keyboard`),e.indexOf(`mouse`)>=0&&(t=`Mouse`),e.indexOf(`trackpad`)>=0&&(t=`Trackpad`),e.indexOf(`audio`)>=0&&(t=`Audio`),e.indexOf(`sound`)>=0&&(t=`Audio`),e.indexOf(`microph`)>=0&&(t=`Microphone`),e.indexOf(`speaker`)>=0&&(t=`Speaker`),e.indexOf(`headset`)>=0&&(t=`Headset`),e.indexOf(`phone`)>=0&&(t=`Phone`),e.indexOf(`macbook`)>=0&&(t=`Computer`),e.indexOf(`imac`)>=0&&(t=`Computer`),e.indexOf(`ipad`)>=0&&(t=`Tablet`),e.indexOf(`watch`)>=0&&(t=`Watch`),e.indexOf(`headphone`)>=0&&(t=`Headset`),t}function g(e){let t=e.split(` `)[0];return e=e.toLowerCase(),e.indexOf(`apple`)>=0&&(t=`Apple`),e.indexOf(`ipad`)>=0&&(t=`Apple`),e.indexOf(`imac`)>=0&&(t=`Apple`),e.indexOf(`iphone`)>=0&&(t=`Apple`),e.indexOf(`magic mouse`)>=0&&(t=`Apple`),e.indexOf(`magic track`)>=0&&(t=`Apple`),e.indexOf(`macbook`)>=0&&(t=`Apple`),t}function _(e){let t=parseInt(e);if(!isNaN(t))return a[t]}function v(e,t,n){let r={};return r.device=null,r.name=i.getValue(e,`name`,`=`),r.manufacturer=null,r.macDevice=t,r.macHost=n,r.batteryPercent=null,r.type=h(r.name.toLowerCase()),r.connected=!1,r}function y(e,t){let n={},r=((e.device_minorClassOfDevice_string||e.device_majorClassOfDevice_string||e.device_minorType||``)+(e.device_name||``)).toLowerCase();return n.device=e.device_services||``,n.name=e.device_name||``,n.manufacturer=e.device_manufacturer||_(e.device_vendorID)||g(e.device_name||``)||``,n.macDevice=(e.device_addr||e.device_address||``).toLowerCase().replace(/-/g,`:`),n.macHost=t,n.batteryPercent=e.device_batteryPercent||null,n.type=h(r),n.connected=e.device_isconnected===`attrib_Yes`||!1,n}function b(e){let t={};return t.device=null,t.name=i.getValue(e,`name`,`:`),t.manufacturer=i.getValue(e,`manufacturer`,`:`),t.macDevice=null,t.macHost=null,t.batteryPercent=null,t.type=h(t.name.toLowerCase()),t.connected=null,t}function x(e){return new Promise(a=>{process.nextTick(()=>{let s=[];if(c){i.getFilesInPath(`/var/lib/bluetooth/`).forEach(e=>{let t=r.basename(e),n=e.split(`/`),i=n.length>=6?n[n.length-2]:null,a=n.length>=7?n[n.length-3]:null;if(t===`info`){let t=o.readFileSync(e,{encoding:`utf8`}).split(` +`);r.getValue(t,`name`,`:`)&&i.push(v(t))}),e&&e(i),n(i)}),d&&n(null)})})}e.audio=y})),VO=z(((e,t)=>{t.exports={0:`Ericsson Technology Licensing`,1:`Nokia Mobile Phones`,2:`Intel Corp.`,3:`IBM Corp.`,4:`Toshiba Corp.`,5:`3Com`,6:`Microsoft`,7:`Lucent`,8:`Motorola`,9:`Infineon Technologies AG`,10:`Cambridge Silicon Radio`,11:`Silicon Wave`,12:`Digianswer A/S`,13:`Texas Instruments Inc.`,14:`Ceva, Inc. (formerly Parthus Technologies, Inc.)`,15:`Broadcom Corporation`,16:`Mitel Semiconductor`,17:`Widcomm, Inc`,18:`Zeevo, Inc.`,19:`Atmel Corporation`,20:`Mitsubishi Electric Corporation`,21:`RTX Telecom A/S`,22:`KC Technology Inc.`,23:`NewLogic`,24:`Transilica, Inc.`,25:`Rohde & Schwarz GmbH & Co. KG`,26:`TTPCom Limited`,27:`Signia Technologies, Inc.`,28:`Conexant Systems Inc.`,29:`Qualcomm`,30:`Inventel`,31:`AVM Berlin`,32:`BandSpeed, Inc.`,33:`Mansella Ltd`,34:`NEC Corporation`,35:`WavePlus Technology Co., Ltd.`,36:`Alcatel`,37:`NXP Semiconductors (formerly Philips Semiconductors)`,38:`C Technologies`,39:`Open Interface`,40:`R F Micro Devices`,41:`Hitachi Ltd`,42:`Symbol Technologies, Inc.`,43:`Tenovis`,44:`Macronix International Co. Ltd.`,45:`GCT Semiconductor`,46:`Norwood Systems`,47:`MewTel Technology Inc.`,48:`ST Microelectronics`,49:`Synopsis`,50:`Red-M (Communications) Ltd`,51:`Commil Ltd`,52:`Computer Access Technology Corporation (CATC)`,53:`Eclipse (HQ Espana) S.L.`,54:`Renesas Electronics Corporation`,55:`Mobilian Corporation`,56:`Terax`,57:`Integrated System Solution Corp.`,58:`Matsushita Electric Industrial Co., Ltd.`,59:`Gennum Corporation`,60:`BlackBerry Limited (formerly Research In Motion)`,61:`IPextreme, Inc.`,62:`Systems and Chips, Inc.`,63:`Bluetooth SIG, Inc.`,64:`Seiko Epson Corporation`,65:`Integrated Silicon Solution Taiwan, Inc.`,66:`CONWISE Technology Corporation Ltd`,67:`PARROT SA`,68:`Socket Mobile`,69:`Atheros Communications, Inc.`,70:`MediaTek, Inc.`,71:`Bluegiga`,72:`Marvell Technology Group Ltd.`,73:`3DSP Corporation`,74:`Accel Semiconductor Ltd.`,75:`Continental Automotive Systems`,76:`Apple, Inc.`,77:`Staccato Communications, Inc.`,78:`Avago Technologies`,79:`APT Licensing Ltd.`,80:`SiRF Technology`,81:`Tzero Technologies, Inc.`,82:`J&M Corporation`,83:`Free2move AB`,84:`3DiJoy Corporation`,85:`Plantronics, Inc.`,86:`Sony Ericsson Mobile Communications`,87:`Harman International Industries, Inc.`,88:`Vizio, Inc.`,89:`Nordic Semiconductor ASA`,90:`EM Microelectronic-Marin SA`,91:`Ralink Technology Corporation`,92:`Belkin International, Inc.`,93:`Realtek Semiconductor Corporation`,94:`Stonestreet One, LLC`,95:`Wicentric, Inc.`,96:`RivieraWaves S.A.S`,97:`RDA Microelectronics`,98:`Gibson Guitars`,99:`MiCommand Inc.`,100:`Band XI International, LLC`,101:`Hewlett-Packard Company`,102:`9Solutions Oy`,103:`GN Netcom A/S`,104:`General Motors`,105:`A&D Engineering, Inc.`,106:`MindTree Ltd.`,107:`Polar Electro OY`,108:`Beautiful Enterprise Co., Ltd.`,109:`BriarTek, Inc.`,110:`Summit Data Communications, Inc.`,111:`Sound ID`,112:`Monster, LLC`,113:`connectBlue AB`,114:`ShangHai Super Smart Electronics Co. Ltd.`,115:`Group Sense Ltd.`,116:`Zomm, LLC`,117:`Samsung Electronics Co. Ltd.`,118:`Creative Technology Ltd.`,119:`Laird Technologies`,120:`Nike, Inc.`,121:`lesswire AG`,122:`MStar Semiconductor, Inc.`,123:`Hanlynn Technologies`,124:`A & R Cambridge`,125:`Seers Technology Co. Ltd`,126:`Sports Tracking Technologies Ltd.`,127:`Autonet Mobile`,128:`DeLorme Publishing Company, Inc.`,129:`WuXi Vimicro`,130:`Sennheiser Communications A/S`,131:`TimeKeeping Systems, Inc.`,132:`Ludus Helsinki Ltd.`,133:`BlueRadios, Inc.`,134:`equinox AG`,135:`Garmin International, Inc.`,136:`Ecotest`,137:`GN ReSound A/S`,138:`Jawbone`,139:`Topcorn Positioning Systems, LLC`,140:`Gimbal Inc. (formerly Qualcomm Labs, Inc. and Qualcomm Retail Solutions, Inc.)`,141:`Zscan Software`,142:`Quintic Corp.`,143:`Stollman E+V GmbH`,144:`Funai Electric Co., Ltd.`,145:`Advanced PANMOBIL Systems GmbH & Co. KG`,146:`ThinkOptics, Inc.`,147:`Universal Electronics, Inc.`,148:`Airoha Technology Corp.`,149:`NEC Lighting, Ltd.`,150:`ODM Technology, Inc.`,151:`ConnecteDevice Ltd.`,152:`zer01.tv GmbH`,153:`i.Tech Dynamic Global Distribution Ltd.`,154:`Alpwise`,155:`Jiangsu Toppower Automotive Electronics Co., Ltd.`,156:`Colorfy, Inc.`,157:`Geoforce Inc.`,158:`Bose Corporation`,159:`Suunto Oy`,160:`Kensington Computer Products Group`,161:`SR-Medizinelektronik`,162:`Vertu Corporation Limited`,163:`Meta Watch Ltd.`,164:`LINAK A/S`,165:`OTL Dynamics LLC`,166:`Panda Ocean Inc.`,167:`Visteon Corporation`,168:`ARP Devices Limited`,169:`Magneti Marelli S.p.A`,170:`CAEN RFID srl`,171:`Ingenieur-Systemgruppe Zahn GmbH`,172:`Green Throttle Games`,173:`Peter Systemtechnik GmbH`,174:`Omegawave Oy`,175:`Cinetix`,176:`Passif Semiconductor Corp`,177:`Saris Cycling Group, Inc`,178:`Bekey A/S`,179:`Clarinox Technologies Pty. Ltd.`,180:`BDE Technology Co., Ltd.`,181:`Swirl Networks`,182:`Meso international`,183:`TreLab Ltd`,184:`Qualcomm Innovation Center, Inc. (QuIC)`,185:`Johnson Controls, Inc.`,186:`Starkey Laboratories Inc.`,187:`S-Power Electronics Limited`,188:`Ace Sensor Inc`,189:`Aplix Corporation`,190:`AAMP of America`,191:`Stalmart Technology Limited`,192:`AMICCOM Electronics Corporation`,193:`Shenzhen Excelsecu Data Technology Co.,Ltd`,194:`Geneq Inc.`,195:`adidas AG`,196:`LG Electronics`,197:`Onset Computer Corporation`,198:`Selfly BV`,199:`Quuppa Oy.`,200:`GeLo Inc`,201:`Evluma`,202:`MC10`,203:`Binauric SE`,204:`Beats Electronics`,205:`Microchip Technology Inc.`,206:`Elgato Systems GmbH`,207:`ARCHOS SA`,208:`Dexcom, Inc.`,209:`Polar Electro Europe B.V.`,210:`Dialog Semiconductor B.V.`,211:`Taixingbang\xA0Technology (HK) Co,. LTD.`,212:`Kawantech`,213:`Austco Communication Systems`,214:`Timex Group USA, Inc.`,215:`Qualcomm Technologies, Inc.`,216:`Qualcomm Connected Experiences, Inc.`,217:`Voyetra Turtle Beach`,218:`txtr GmbH`,219:`Biosentronics`,220:`Procter & Gamble`,221:`Hosiden Corporation`,222:`Muzik LLC`,223:`Misfit Wearables Corp`,224:`Google`,225:`Danlers Ltd`,226:`Semilink Inc`,227:`inMusic Brands, Inc`,228:`L.S. Research Inc.`,229:`Eden Software Consultants Ltd.`,230:`Freshtemp`,231:`KS Technologies`,232:`ACTS Technologies`,233:`Vtrack Systems`,234:`Nielsen-Kellerman Company`,235:`Server Technology, Inc.`,236:`BioResearch Associates`,237:`Jolly Logic, LLC`,238:`Above Average Outcomes, Inc.`,239:`Bitsplitters GmbH`,240:`PayPal, Inc.`,241:`Witron Technology Limited`,242:`Aether Things\xA0Inc. (formerly Morse Project Inc.)`,243:`Kent Displays Inc.`,244:`Nautilus Inc.`,245:`Smartifier Oy`,246:`Elcometer Limited`,247:`VSN Technologies Inc.`,248:`AceUni Corp., Ltd.`,249:`StickNFind`,250:`Crystal Code AB`,251:`KOUKAAM a.s.`,252:`Delphi Corporation`,253:`ValenceTech Limited`,254:`Reserved`,255:`Typo Products, LLC`,256:`TomTom International BV`,257:`Fugoo, Inc`,258:`Keiser Corporation`,259:`Bang & Olufsen A/S`,260:`PLUS Locations Systems Pty Ltd`,261:`Ubiquitous Computing Technology Corporation`,262:`Innovative Yachtter Solutions`,263:`William Demant Holding A/S`,264:`Chicony Electronics Co., Ltd.`,265:`Atus BV`,266:`Codegate Ltd.`,267:`ERi, Inc.`,268:`Transducers Direct, LLC`,269:`Fujitsu Ten Limited`,270:`Audi AG`,271:`HiSilicon Technologies Co., Ltd.`,272:`Nippon Seiki Co., Ltd.`,273:`Steelseries ApS`,274:`vyzybl Inc.`,275:`Openbrain Technologies, Co., Ltd.`,276:`Xensr`,277:`e.solutions`,278:`1OAK Technologies`,279:`Wimoto Technologies Inc`,280:`Radius Networks, Inc.`,281:`Wize Technology Co., Ltd.`,282:`Qualcomm Labs, Inc.`,283:`Aruba Networks`,284:`Baidu`,285:`Arendi AG`,286:`Skoda Auto a.s.`,287:`Volkswagon AG`,288:`Porsche AG`,289:`Sino Wealth Electronic Ltd.`,290:`AirTurn, Inc.`,291:`Kinsa, Inc.`,292:`HID Global`,293:`SEAT es`,294:`Promethean Ltd.`,295:`Salutica Allied Solutions`,296:`GPSI Group Pty Ltd`,297:`Nimble Devices Oy`,298:`Changzhou Yongse Infotech Co., Ltd`,299:`SportIQ`,300:`TEMEC Instruments B.V.`,301:`Sony Corporation`,302:`ASSA ABLOY`,303:`Clarion Co., Ltd.`,304:`Warehouse Innovations`,305:`Cypress Semiconductor Corporation`,306:`MADS Inc`,307:`Blue Maestro Limited`,308:`Resolution Products, Inc.`,309:`Airewear LLC`,310:`Seed Labs, Inc. (formerly ETC sp. z.o.o.)`,311:`Prestigio Plaza Ltd.`,312:`NTEO Inc.`,313:`Focus Systems Corporation`,314:`Tencent Holdings Limited`,315:`Allegion`,316:`Murata Manufacuring Co., Ltd.`,318:`Nod, Inc.`,319:`B&B Manufacturing Company`,320:`Alpine\xA0Electronics\xA0(China)\xA0Co.,\xA0Ltd`,321:`FedEx Services`,322:`Grape Systems Inc.`,323:`Bkon Connect`,324:`Lintech GmbH`,325:`Novatel Wireless`,326:`Ciright`,327:`Mighty Cast, Inc.`,328:`Ambimat Electronics`,329:`Perytons Ltd.`,330:`Tivoli Audio, LLC`,331:`Master Lock`,332:`Mesh-Net Ltd`,333:`Huizhou Desay SV Automotive CO., LTD.`,334:`Tangerine, Inc.`,335:`B&W Group Ltd.`,336:`Pioneer Corporation`,337:`OnBeep`,338:`Vernier Software & Technology`,339:`ROL Ergo`,340:`Pebble Technology`,341:`NETATMO`,342:`Accumulate AB`,343:`Anhui Huami Information Technology Co., Ltd.`,344:`Inmite s.r.o.`,345:`ChefSteps, Inc.`,346:`micas AG`,347:`Biomedical Research Ltd.`,348:`Pitius Tec S.L.`,349:`Estimote, Inc.`,350:`Unikey Technologies, Inc.`,351:`Timer Cap Co.`,352:`AwoX`,353:`yikes`,354:`MADSGlobal NZ Ltd.`,355:`PCH International`,356:`Qingdao Yeelink Information Technology Co., Ltd.`,357:`Milwaukee Tool (formerly Milwaukee Electric Tools)`,358:`MISHIK Pte Ltd`,359:`Bayer HealthCare`,360:`Spicebox LLC`,361:`emberlight`,362:`Cooper-Atkins Corporation`,363:`Qblinks`,364:`MYSPHERA`,365:`LifeScan Inc`,366:`Volantic AB`,367:`Podo Labs, Inc`,368:`Roche Diabetes Care AG`,369:`Amazon Fulfillment Service`,370:`Connovate Technology Private Limited`,371:`Kocomojo, LLC`,372:`Everykey LLC`,373:`Dynamic Controls`,374:`SentriLock`,375:`I-SYST inc.`,376:`CASIO COMPUTER CO., LTD.`,377:`LAPIS Semiconductor Co., Ltd.`,378:`Telemonitor, Inc.`,379:`taskit GmbH`,380:`Daimler AG`,381:`BatAndCat`,382:`BluDotz Ltd`,383:`XTel ApS`,384:`Gigaset Communications GmbH`,385:`Gecko Health Innovations, Inc.`,386:`HOP Ubiquitous`,387:`To Be Assigned`,388:`Nectar`,389:`bel’apps LLC`,390:`CORE Lighting Ltd`,391:`Seraphim Sense Ltd`,392:`Unico RBC`,393:`Physical Enterprises Inc.`,394:`Able Trend Technology Limited`,395:`Konica Minolta, Inc.`,396:`Wilo SE`,397:`Extron Design Services`,398:`Fitbit, Inc.`,399:`Fireflies Systems`,400:`Intelletto Technologies Inc.`,401:`FDK CORPORATION`,402:`Cloudleaf, Inc`,403:`Maveric Automation LLC`,404:`Acoustic Stream Corporation`,405:`Zuli`,406:`Paxton Access Ltd`,407:`WiSilica Inc`,408:`Vengit Limited`,409:`SALTO SYSTEMS S.L.`,410:`TRON Forum (formerly T-Engine Forum)`,411:`CUBETECH s.r.o.`,412:`Cokiya Incorporated`,413:`CVS Health`,414:`Ceruus`,415:`Strainstall Ltd`,416:`Channel Enterprises (HK) Ltd.`,417:`FIAMM`,418:`GIGALANE.CO.,LTD`,419:`EROAD`,420:`Mine Safety Appliances`,421:`Icon Health and Fitness`,422:`Asandoo GmbH`,423:`ENERGOUS CORPORATION`,424:`Taobao`,425:`Canon Inc.`,426:`Geophysical Technology Inc.`,427:`Facebook, Inc.`,428:`Nipro Diagnostics, Inc.`,429:`FlightSafety International`,430:`Earlens Corporation`,431:`Sunrise Micro Devices, Inc.`,432:`Star Micronics Co., Ltd.`,433:`Netizens Sp. z o.o.`,434:`Nymi Inc.`,435:`Nytec, Inc.`,436:`Trineo Sp. z o.o.`,437:`Nest Labs Inc.`,438:`LM Technologies Ltd`,439:`General Electric Company`,440:`i+D3 S.L.`,441:`HANA Micron`,442:`Stages Cycling LLC`,443:`Cochlear Bone Anchored Solutions AB`,444:`SenionLab AB`,445:`Syszone Co., Ltd`,446:`Pulsate Mobile Ltd.`,447:`Hong Kong HunterSun Electronic Limited`,448:`pironex GmbH`,449:`BRADATECH Corp.`,450:`Transenergooil AG`,451:`Bunch`,452:`DME Microelectronics`,453:`Bitcraze AB`,454:`HASWARE Inc.`,455:`Abiogenix Inc.`,456:`Poly-Control ApS`,457:`Avi-on`,458:`Laerdal Medical AS`,459:`Fetch My Pet`,460:`Sam Labs Ltd.`,461:`Chengdu Synwing Technology Ltd`,462:`HOUWA SYSTEM DESIGN, k.k.`,463:`BSH`,464:`Primus Inter Pares Ltd`,465:`August`,466:`Gill Electronics`,467:`Sky Wave Design`,468:`Newlab S.r.l.`,469:`ELAD srl`,470:`G-wearables inc.`,471:`Squadrone Systems Inc.`,472:`Code Corporation`,473:`Savant Systems LLC`,474:`Logitech International SA`,475:`Innblue Consulting`,476:`iParking Ltd.`,477:`Koninklijke Philips Electronics N.V.`,478:`Minelab Electronics Pty Limited`,479:`Bison Group Ltd.`,480:`Widex A/S`,481:`Jolla Ltd`,482:`Lectronix, Inc.`,483:`Caterpillar Inc`,484:`Freedom Innovations`,485:`Dynamic Devices Ltd`,486:`Technology Solutions (UK) Ltd`,487:`IPS Group Inc.`,488:`STIR`,489:`Sano, Inc`,490:`Advanced Application Design, Inc.`,491:`AutoMap LLC`,492:`Spreadtrum Communications Shanghai Ltd`,493:`CuteCircuit LTD`,494:`Valeo Service`,495:`Fullpower Technologies, Inc.`,496:`KloudNation`,497:`Zebra Technologies Corporation`,498:`Itron, Inc.`,499:`The University of Tokyo`,500:`UTC Fire and Security`,501:`Cool Webthings Limited`,502:`DJO Global`,503:`Gelliner Limited`,504:`Anyka (Guangzhou) Microelectronics Technology Co, LTD`,505:`Medtronic, Inc.`,506:`Gozio, Inc.`,507:`Form Lifting, LLC`,508:`Wahoo Fitness, LLC`,509:`Kontakt Micro-Location Sp. z o.o.`,510:`Radio System Corporation`,511:`Freescale Semiconductor, Inc.`,512:`Verifone Systems PTe Ltd. Taiwan Branch`,513:`AR Timing`,514:`Rigado LLC`,515:`Kemppi Oy`,516:`Tapcentive Inc.`,517:`Smartbotics Inc.`,518:`Otter Products, LLC`,519:`STEMP Inc.`,520:`LumiGeek LLC`,521:`InvisionHeart Inc.`,522:`Macnica Inc. `,523:`Jaguar Land Rover Limited`,524:`CoroWare Technologies, Inc`,525:`Simplo Technology Co., LTD`,526:`Omron Healthcare Co., LTD`,527:`Comodule GMBH`,528:`ikeGPS`,529:`Telink Semiconductor Co. Ltd`,530:`Interplan Co., Ltd`,531:`Wyler AG`,532:`IK Multimedia Production srl`,533:`Lukoton Experience Oy`,534:`MTI Ltd`,535:`Tech4home, Lda`,536:`Hiotech AB`,537:`DOTT Limited`,538:`Blue Speck Labs, LLC`,539:`Cisco Systems, Inc`,540:`Mobicomm Inc`,541:`Edamic`,542:`Goodnet, Ltd`,543:`Luster Leaf Products Inc`,544:`Manus Machina BV`,545:`Mobiquity Networks Inc`,546:`Praxis Dynamics`,547:`Philip Morris Products S.A.`,548:`Comarch SA`,549:`Nestl Nespresso S.A.`,550:`Merlinia A/S`,551:`LifeBEAM Technologies`,552:`Twocanoes Labs, LLC`,553:`Muoverti Limited`,554:`Stamer Musikanlagen GMBH`,555:`Tesla Motors`,556:`Pharynks Corporation`,557:`Lupine`,558:`Siemens AG`,559:`Huami (Shanghai) Culture Communication CO., LTD`,560:`Foster Electric Company, Ltd`,561:`ETA SA`,562:`x-Senso Solutions Kft`,563:`Shenzhen SuLong Communication Ltd`,564:`FengFan (BeiJing) Technology Co, Ltd`,565:`Qrio Inc`,566:`Pitpatpet Ltd`,567:`MSHeli s.r.l.`,568:`Trakm8 Ltd`,569:`JIN CO, Ltd`,570:`Alatech Tehnology`,571:`Beijing CarePulse Electronic Technology Co, Ltd`,572:`Awarepoint`,573:`ViCentra B.V.`,574:`Raven Industries`,575:`WaveWare Technologies Inc.`,576:`Argenox Technologies`,577:`Bragi GmbH`,578:`16Lab Inc`,579:`Masimo Corp`,580:`Iotera Inc`,581:`Endress+Hauser`,582:`ACKme Networks, Inc.`,583:`FiftyThree Inc.`,584:`Parker Hannifin Corp`,585:`Transcranial Ltd`,586:`Uwatec AG`,587:`Orlan LLC`,588:`Blue Clover Devices`,589:`M-Way Solutions GmbH`,590:`Microtronics Engineering GmbH`,591:`Schneider Schreibgerte GmbH`,592:`Sapphire Circuits LLC`,593:`Lumo Bodytech Inc.`,594:`UKC Technosolution`,595:`Xicato Inc.`,596:`Playbrush`,597:`Dai Nippon Printing Co., Ltd.`,598:`G24 Power Limited`,599:`AdBabble Local Commerce Inc.`,600:`Devialet SA`,601:`ALTYOR`,602:`University of Applied Sciences Valais/Haute Ecole Valaisanne`,603:`Five Interactive, LLC dba Zendo`,604:`NetEaseHangzhouNetwork co.Ltd.`,605:`Lexmark International Inc.`,606:`Fluke Corporation`,607:`Yardarm Technologies`,608:`SensaRx`,609:`SECVRE GmbH`,610:`Glacial Ridge Technologies`,611:`Identiv, Inc.`,612:`DDS, Inc.`,613:`SMK Corporation`,614:`Schawbel Technologies LLC`,615:`XMI Systems SA`,616:`Cerevo`,617:`Torrox GmbH & Co KG`,618:`Gemalto`,619:`DEKA Research & Development Corp.`,620:`Domster Tadeusz Szydlowski`,621:`Technogym SPA`,622:`FLEURBAEY BVBA`,623:`Aptcode Solutions`,624:`LSI ADL Technology`,625:`Animas Corp`,626:`Alps Electric Co., Ltd.`,627:`OCEASOFT`,628:`Motsai Research`,629:`Geotab`,630:`E.G.O. Elektro-Gertebau GmbH`,631:`bewhere inc`,632:`Johnson Outdoors Inc`,633:`steute Schaltgerate GmbH & Co. KG`,634:`Ekomini inc.`,635:`DEFA AS`,636:`Aseptika Ltd`,637:`HUAWEI Technologies Co., Ltd. ( )`,638:`HabitAware, LLC`,639:`ruwido austria gmbh`,640:`ITEC corporation`,641:`StoneL`,642:`Sonova AG`,643:`Maven Machines, Inc.`,644:`Synapse Electronics`,645:`Standard Innovation Inc.`,646:`RF Code, Inc.`,647:`Wally Ventures S.L.`,648:`Willowbank Electronics Ltd`,649:`SK Telecom`,650:`Jetro AS`,651:`Code Gears LTD`,652:`NANOLINK APS`,653:`IF, LLC`,654:`RF Digital Corp`,655:`Church & Dwight Co., Inc`,656:`Multibit Oy`,657:`CliniCloud Inc`,658:`SwiftSensors`,659:`Blue Bite`,660:`ELIAS GmbH`,661:`Sivantos GmbH`,662:`Petzl`,663:`storm power ltd`,664:`EISST Ltd`,665:`Inexess Technology Simma KG`,666:`Currant, Inc.`,667:`C2 Development, Inc.`,668:`Blue Sky Scientific, LLC`,669:`ALOTTAZS LABS, LLC`,670:`Kupson spol. s r.o.`,671:`Areus Engineering GmbH`,672:`Impossible Camera GmbH`,673:`InventureTrack Systems`,674:`LockedUp`,675:`Itude`,676:`Pacific Lock Company`,677:`Tendyron Corporation ( )`,678:`Robert Bosch GmbH`,679:`Illuxtron international B.V.`,680:`miSport Ltd.`,681:`Chargelib`,682:`Doppler Lab`,683:`BBPOS Limited`,684:`RTB Elektronik GmbH & Co. KG`,685:`Rx Networks, Inc.`,686:`WeatherFlow, Inc.`,687:`Technicolor USA Inc.`,688:`Bestechnic(Shanghai),Ltd`,689:`Raden Inc`,690:`JouZen Oy`,691:`CLABER S.P.A.`,692:`Hyginex, Inc.`,693:`HANSHIN ELECTRIC RAILWAY CO.,LTD.`,694:`Schneider Electric`,695:`Oort Technologies LLC`,696:`Chrono Therapeutics`,697:`Rinnai Corporation`,698:`Swissprime Technologies AG`,699:`Koha.,Co.Ltd`,700:`Genevac Ltd`,701:`Chemtronics`,702:`Seguro Technology Sp. z o.o.`,703:`Redbird Flight Simulations`,704:`Dash Robotics`,705:`LINE Corporation`,706:`Guillemot Corporation`,707:`Techtronic Power Tools Technology Limited`,708:`Wilson Sporting Goods`,709:`Lenovo (Singapore) Pte Ltd. ( )`,710:`Ayatan Sensors`,711:`Electronics Tomorrow Limited`,712:`VASCO Data Security International, Inc.`,713:`PayRange Inc.`,714:`ABOV Semiconductor`,715:`AINA-Wireless Inc.`,716:`Eijkelkamp Soil & Water`,717:`BMA ergonomics b.v.`,718:`Teva Branded Pharmaceutical Products R&D, Inc.`,719:`Anima`,720:`3M`,721:`Empatica Srl`,722:`Afero, Inc.`,723:`Powercast Corporation`,724:`Secuyou ApS`,725:`OMRON Corporation`,726:`Send Solutions`,727:`NIPPON SYSTEMWARE CO.,LTD.`,728:`Neosfar`,729:`Fliegl Agrartechnik GmbH`,730:`Gilvader`,731:`Digi International Inc (R)`,732:`DeWalch Technologies, Inc.`,733:`Flint Rehabilitation Devices, LLC`,734:`Samsung SDS Co., Ltd.`,735:`Blur Product Development`,736:`University of Michigan`,737:`Victron Energy BV`,738:`NTT docomo`,739:`Carmanah Technologies Corp.`,740:`Bytestorm Ltd.`,741:`Espressif Incorporated ( () )`,742:`Unwire`,743:`Connected Yard, Inc.`,744:`American Music Environments`,745:`Sensogram Technologies, Inc.`,746:`Fujitsu Limited`,747:`Ardic Technology`,748:`Delta Systems, Inc`,749:`HTC Corporation`,750:`Citizen Holdings Co., Ltd.`,751:`SMART-INNOVATION.inc`,752:`Blackrat Software`,753:`The Idea Cave, LLC`,754:`GoPro, Inc.`,755:`AuthAir, Inc`,756:`Vensi, Inc.`,757:`Indagem Tech LLC`,758:`Intemo Technologies`,759:`DreamVisions co., Ltd.`,760:`Runteq Oy Ltd`,761:`IMAGINATION TECHNOLOGIES LTD`,762:`CoSTAR TEchnologies`,763:`Clarius Mobile Health Corp.`,764:`Shanghai Frequen Microelectronics Co., Ltd.`,765:`Uwanna, Inc.`,766:`Lierda Science & Technology Group Co., Ltd.`,767:`Silicon Laboratories`,768:`World Moto Inc.`,769:`Giatec Scientific Inc.`,770:`Loop Devices, Inc`,771:`IACA electronique`,772:`Martians Inc`,773:`Swipp ApS`,774:`Life Laboratory Inc.`,775:`FUJI INDUSTRIAL CO.,LTD.`,776:`Surefire, LLC`,777:`Dolby Labs`,778:`Ellisys`,779:`Magnitude Lighting Converters`,780:`Hilti AG`,781:`Devdata S.r.l.`,782:`Deviceworx`,783:`Shortcut Labs`,784:`SGL Italia S.r.l.`,785:`PEEQ DATA`,786:`Ducere Technologies Pvt Ltd`,787:`DiveNav, Inc.`,788:`RIIG AI Sp. z o.o.`,789:`Thermo Fisher Scientific`,790:`AG Measurematics Pvt. Ltd.`,791:`CHUO Electronics CO., LTD.`,792:`Aspenta International`,793:`Eugster Frismag AG`,794:`Amber wireless GmbH`,795:`HQ Inc`,796:`Lab Sensor Solutions`,797:`Enterlab ApS`,798:`Eyefi, Inc.`,799:`MetaSystem S.p.A.`,800:`SONO ELECTRONICS. CO., LTD`,801:`Jewelbots`,802:`Compumedics Limited`,803:`Rotor Bike Components`,804:`Astro, Inc.`,805:`Amotus Solutions`,806:`Healthwear Technologies (Changzhou)Ltd`,807:`Essex Electronics`,808:`Grundfos A/S`,809:`Eargo, Inc.`,810:`Electronic Design Lab`,811:`ESYLUX`,812:`NIPPON SMT.CO.,Ltd`,813:`BM innovations GmbH`,814:`indoormap`,815:`OttoQ Inc`,816:`North Pole Engineering`,817:`3flares Technologies Inc.`,818:`Electrocompaniet A.S.`,819:`Mul-T-Lock`,820:`Corentium AS`,821:`Enlighted Inc`,822:`GISTIC`,823:`AJP2 Holdings, LLC`,824:`COBI GmbH`,825:`Blue Sky Scientific, LLC`,826:`Appception, Inc.`,827:`Courtney Thorne Limited`,828:`Virtuosys`,829:`TPV Technology Limited`,830:`Monitra SA`,831:`Automation Components, Inc.`,832:`Letsense s.r.l.`,833:`Etesian Technologies LLC`,834:`GERTEC BRASIL LTDA.`,835:`Drekker Development Pty. Ltd.`,836:`Whirl Inc`,837:`Locus Positioning`,838:`Acuity Brands Lighting, Inc`,839:`Prevent Biometrics`,840:`Arioneo`,841:`VersaMe`,842:`Vaddio`,843:`Libratone A/S`,844:`HM Electronics, Inc.`,845:`TASER International, Inc.`,846:`SafeTrust Inc.`,847:`Heartland Payment Systems`,848:`Bitstrata Systems Inc.`,849:`Pieps GmbH`,850:`iRiding(Xiamen)Technology Co.,Ltd.`,851:`Alpha Audiotronics, Inc.`,852:`TOPPAN FORMS CO.,LTD.`,853:`Sigma Designs, Inc.`,854:`Spectrum Brands, Inc.`,855:`Polymap Wireless`,856:`MagniWare Ltd.`,857:`Novotec Medical GmbH`,858:`Medicom Innovation Partner a/s`,859:`Matrix Inc.`,860:`Eaton Corporation`,861:`KYS`,862:`Naya Health, Inc.`,863:`Acromag`,864:`Insulet Corporation`,865:`Wellinks Inc.`,866:`ON Semiconductor`,867:`FREELAP SA`,868:`Favero Electronics Srl`,869:`BioMech Sensor LLC`,870:`BOLTT Sports technologies Private limited`,871:`Saphe International`,872:`Metormote AB`,873:`littleBits`,874:`SetPoint Medical`,875:`BRControls Products BV`,876:`Zipcar`,877:`AirBolt Pty Ltd`,878:`KeepTruckin Inc`,879:`Motiv, Inc.`,880:`Wazombi Labs O`,881:`ORBCOMM`,882:`Nixie Labs, Inc.`,883:`AppNearMe Ltd`,884:`Holman Industries`,885:`Expain AS`,886:`Electronic Temperature Instruments Ltd`,887:`Plejd AB`,888:`Propeller Health`,889:`Shenzhen iMCO Electronic Technology Co.,Ltd`,890:`Algoria`,891:`Apption Labs Inc.`,892:`Cronologics Corporation`,893:`MICRODIA Ltd.`,894:`lulabytes S.L.`,895:`Nestec S.A.`,896:`LLC MEGA - F service`,897:`Sharp Corporation`,898:`Precision Outcomes Ltd`,899:`Kronos Incorporated`,900:`OCOSMOS Co., Ltd.`,901:`Embedded Electronic Solutions Ltd. dba e2Solutions`,902:`Aterica Inc.`,903:`BluStor PMC, Inc.`,904:`Kapsch TrafficCom AB`,905:`ActiveBlu Corporation`,906:`Kohler Mira Limited`,907:`Noke`,908:`Appion Inc.`,909:`Resmed Ltd`,910:`Crownstone B.V.`,911:`Xiaomi Inc.`,912:`INFOTECH s.r.o.`,913:`Thingsquare AB`,914:`T&D`,915:`LAVAZZA S.p.A.`,916:`Netclearance Systems, Inc.`,917:`SDATAWAY`,918:`BLOKS GmbH`,919:`LEGO System A/S`,920:`Thetatronics Ltd`,921:`Nikon Corporation`,922:`NeST`,923:`South Silicon Valley Microelectronics`,924:`ALE International`,925:`CareView Communications, Inc.`,926:`SchoolBoard Limited`,927:`Molex Corporation`,928:`IVT Wireless Limited`,929:`Alpine Labs LLC`,930:`Candura Instruments`,931:`SmartMovt Technology Co., Ltd`,932:`Token Zero Ltd`,933:`ACE CAD Enterprise Co., Ltd. (ACECAD)`,934:`Medela, Inc`,935:`AeroScout`,936:`Esrille Inc.`,937:`THINKERLY SRL`,938:`Exon Sp. z o.o.`,939:`Meizu Technology Co., Ltd.`,940:`Smablo LTD`,941:`XiQ`,942:`Allswell Inc.`,943:`Comm-N-Sense Corp DBA Verigo`,944:`VIBRADORM GmbH`,945:`Otodata Wireless Network Inc.`,946:`Propagation Systems Limited`,947:`Midwest Instruments & Controls`,948:`Alpha Nodus, inc.`,949:`petPOMM, Inc`,950:`Mattel`,951:`Airbly Inc.`,952:`A-Safe Limited`,953:`FREDERIQUE CONSTANT SA`,954:`Maxscend Microelectronics Company Limited`,955:`Abbott Diabetes Care`,956:`ASB Bank Ltd`,957:`amadas`,958:`Applied Science, Inc.`,959:`iLumi Solutions Inc.`,960:`Arch Systems Inc.`,961:`Ember Technologies, Inc.`,962:`Snapchat Inc`,963:`Casambi Technologies Oy`,964:`Pico Technology Inc.`,965:`St. Jude Medical, Inc.`,966:`Intricon`,967:`Structural Health Systems, Inc.`,968:`Avvel International`,969:`Gallagher Group`,970:`In2things Automation Pvt. Ltd.`,971:`SYSDEV Srl`,972:`Vonkil Technologies Ltd`,973:`Wynd Technologies, Inc.`,974:`CONTRINEX S.A.`,975:`MIRA, Inc.`,976:`Watteam Ltd`,977:`Density Inc.`,978:`IOT Pot India Private Limited`,979:`Sigma Connectivity AB`,980:`PEG PEREGO SPA`,981:`Wyzelink Systems Inc.`,982:`Yota Devices LTD`,983:`FINSECUR`,984:`Zen-Me Labs Ltd`,985:`3IWare Co., Ltd.`,986:`EnOcean GmbH`,987:`Instabeat, Inc`,988:`Nima Labs`,989:`Andreas Stihl AG & Co. KG`,990:`Nathan Rhoades LLC`,991:`Grob Technologies, LLC`,992:`Actions (Zhuhai) Technology Co., Limited`,993:`SPD Development Company Ltd`,994:`Sensoan Oy`,995:`Qualcomm Life Inc`,996:`Chip-ing AG`,997:`ffly4u`,998:`IoT Instruments Oy`,999:`TRUE Fitness Technology`,1e3:`Reiner Kartengeraete GmbH & Co. KG.`,1001:`SHENZHEN LEMONJOY TECHNOLOGY CO., LTD.`,1002:`Hello Inc.`,1003:`Evollve Inc.`,1004:`Jigowatts Inc.`,1005:`BASIC MICRO.COM,INC.`,1006:`CUBE TECHNOLOGIES`,1007:`foolography GmbH`,1008:`CLINK`,1009:`Hestan Smart Cooking Inc.`,1010:`WindowMaster A/S`,1011:`Flowscape AB`,1012:`PAL Technologies Ltd`,1013:`WHERE, Inc.`,1014:`Iton Technology Corp.`,1015:`Owl Labs Inc.`,1016:`Rockford Corp.`,1017:`Becon Technologies Co.,Ltd.`,1018:`Vyassoft Technologies Inc`,1019:`Nox Medical`,1020:`Kimberly-Clark`,1021:`Trimble Navigation Ltd.`,1022:`Littelfuse`,1023:`Withings`,1024:`i-developer IT Beratung UG`,1026:`Sears Holdings Corporation`,1027:`Gantner Electronic GmbH`,1028:`Authomate Inc`,1029:`Vertex International, Inc.`,1030:`Airtago`,1031:`Swiss Audio SA`,1032:`ToGetHome Inc.`,1033:`AXIS`,1034:`Openmatics`,1035:`Jana Care Inc.`,1036:`Senix Corporation`,1037:`NorthStar Battery Company, LLC`,1038:`SKF (U.K.) Limited`,1039:`CO-AX Technology, Inc.`,1040:`Fender Musical Instruments`,1041:`Luidia Inc`,1042:`SEFAM`,1043:`Wireless Cables Inc`,1044:`Lightning Protection International Pty Ltd`,1045:`Uber Technologies Inc`,1046:`SODA GmbH`,1047:`Fatigue Science`,1048:`Alpine Electronics Inc.`,1049:`Novalogy LTD`,1050:`Friday Labs Limited`,1051:`OrthoAccel Technologies`,1052:`WaterGuru, Inc.`,1053:`Benning Elektrotechnik und Elektronik GmbH & Co. KG`,1054:`Dell Computer Corporation`,1055:`Kopin Corporation`,1056:`TecBakery GmbH`,1057:`Backbone Labs, Inc.`,1058:`DELSEY SA`,1059:`Chargifi Limited`,1060:`Trainesense Ltd.`,1061:`Unify Software and Solutions GmbH & Co. KG`,1062:`Husqvarna AB`,1063:`Focus fleet and fuel management inc`,1064:`SmallLoop, LLC`,1065:`Prolon Inc.`,1066:`BD Medical`,1067:`iMicroMed Incorporated`,1068:`Ticto N.V.`,1069:`Meshtech AS`,1070:`MemCachier Inc.`,1071:`Danfoss A/S`,1072:`SnapStyk Inc.`,1073:`Amyway Corporation`,1074:`Silk Labs, Inc.`,1075:`Pillsy Inc.`,1076:`Hatch Baby, Inc.`,1077:`Blocks Wearables Ltd.`,1078:`Drayson Technologies (Europe) Limited`,1079:`eBest IOT Inc.`,1080:`Helvar Ltd`,1081:`Radiance Technologies`,1082:`Nuheara Limited`,1083:`Appside co., ltd.`,1084:`DeLaval`,1085:`Coiler Corporation`,1086:`Thermomedics, Inc.`,1087:`Tentacle Sync GmbH`,1088:`Valencell, Inc.`,1089:`iProtoXi Oy`,1090:`SECOM CO., LTD.`,1091:`Tucker International LLC`,1092:`Metanate Limited`,1093:`Kobian Canada Inc.`,1094:`NETGEAR, Inc.`,1095:`Fabtronics Australia Pty Ltd`,1096:`Grand Centrix GmbH`,1097:`1UP USA.com llc`,1098:`SHIMANO INC.`,1099:`Nain Inc.`,1100:`LifeStyle Lock, LLC`,1101:`VEGA Grieshaber KG`,1102:`Xtrava Inc.`,1103:`TTS Tooltechnic Systems AG & Co. KG`,1104:`Teenage Engineering AB`,1105:`Tunstall Nordic AB`,1106:`Svep Design Center AB`,1107:`GreenPeak Technologies BV`,1108:`Sphinx Electronics GmbH & Co KG`,1109:`Atomation`,1110:`Nemik Consulting Inc`,1111:`RF INNOVATION`,1112:`Mini Solution Co., Ltd.`,1113:`Lumenetix, Inc`,1114:`2048450 Ontario Inc`,1115:`SPACEEK LTD`,1116:`Delta T Corporation`,1117:`Boston Scientific Corporation`,1118:`Nuviz, Inc.`,1119:`Real Time Automation, Inc.`,1120:`Kolibree`,1121:`vhf elektronik GmbH`,1122:`Bonsai Systems GmbH`,1123:`Fathom Systems Inc.`,1124:`Bellman & Symfon`,1125:`International Forte Group LLC`,1126:`CycleLabs Solutions inc.`,1127:`Codenex Oy`,1128:`Kynesim Ltd`,1129:`Palago AB`,1130:`INSIGMA INC.`,1131:`PMD Solutions`,1132:`Qingdao Realtime Technology Co., Ltd.`,1133:`BEGA Gantenbrink-Leuchten KG`,1134:`Pambor Ltd.`,65535:`SPECIAL USE/DEFAULT`}})),HO=z((e=>{let t=V(`child_process`).exec,n=V(`child_process`).execSync,r=V(`path`),i=SO(),a=VO(),o=V(`fs`),s=process.platform,c=s===`linux`||s===`android`,l=s===`darwin`,u=s===`win32`,d=s===`freebsd`,f=s===`openbsd`,p=s===`netbsd`,m=s===`sunos`;function h(e){let t=``;return e.indexOf(`keyboard`)>=0&&(t=`Keyboard`),e.indexOf(`mouse`)>=0&&(t=`Mouse`),e.indexOf(`trackpad`)>=0&&(t=`Trackpad`),e.indexOf(`audio`)>=0&&(t=`Audio`),e.indexOf(`sound`)>=0&&(t=`Audio`),e.indexOf(`microph`)>=0&&(t=`Microphone`),e.indexOf(`speaker`)>=0&&(t=`Speaker`),e.indexOf(`headset`)>=0&&(t=`Headset`),e.indexOf(`phone`)>=0&&(t=`Phone`),e.indexOf(`macbook`)>=0&&(t=`Computer`),e.indexOf(`imac`)>=0&&(t=`Computer`),e.indexOf(`ipad`)>=0&&(t=`Tablet`),e.indexOf(`watch`)>=0&&(t=`Watch`),e.indexOf(`headphone`)>=0&&(t=`Headset`),t}function g(e){let t=e.split(` `)[0];return e=e.toLowerCase(),e.indexOf(`apple`)>=0&&(t=`Apple`),e.indexOf(`ipad`)>=0&&(t=`Apple`),e.indexOf(`imac`)>=0&&(t=`Apple`),e.indexOf(`iphone`)>=0&&(t=`Apple`),e.indexOf(`magic mouse`)>=0&&(t=`Apple`),e.indexOf(`magic track`)>=0&&(t=`Apple`),e.indexOf(`macbook`)>=0&&(t=`Apple`),t}function _(e){let t=parseInt(e);if(!isNaN(t))return a[t]}function v(e,t,n){let r={};return r.device=null,r.name=i.getValue(e,`name`,`=`),r.manufacturer=null,r.macDevice=t,r.macHost=n,r.batteryPercent=null,r.type=h(r.name.toLowerCase()),r.connected=!1,r}function y(e,t){let n={},r=((e.device_minorClassOfDevice_string||e.device_majorClassOfDevice_string||e.device_minorType||``)+(e.device_name||``)).toLowerCase();return n.device=e.device_services||``,n.name=e.device_name||``,n.manufacturer=e.device_manufacturer||_(e.device_vendorID)||g(e.device_name||``)||``,n.macDevice=(e.device_addr||e.device_address||``).toLowerCase().replace(/-/g,`:`),n.macHost=t,n.batteryPercent=e.device_batteryPercent||null,n.type=h(r),n.connected=e.device_isconnected===`attrib_Yes`||!1,n}function b(e){let t={};return t.device=null,t.name=i.getValue(e,`name`,`:`),t.manufacturer=i.getValue(e,`manufacturer`,`:`),t.macDevice=null,t.macHost=null,t.batteryPercent=null,t.type=h(t.name.toLowerCase()),t.connected=null,t}function x(e){return new Promise(a=>{process.nextTick(()=>{let s=[];if(c){i.getFilesInPath(`/var/lib/bluetooth/`).forEach(e=>{let t=r.basename(e),n=e.split(`/`),i=n.length>=6?n[n.length-2]:null,a=n.length>=7?n[n.length-3]:null;if(t===`info`){let t=o.readFileSync(e,{encoding:`utf8`}).split(` `);s.push(v(t,i,a))}});try{let e=n(`hcitool con`,i.execOptsLinux).toString().toLowerCase();for(let t=0;t10&&e.indexOf(s[t].macDevice.toLowerCase())>=0&&(s[t].connected=!0)}catch{i.noop()}e&&e(s),a(s)}l&&t(`system_profiler SPBluetoothDataType -json`,(t,n)=>{if(!t)try{let e=JSON.parse(n.toString());if(e.SPBluetoothDataType&&e.SPBluetoothDataType.length&&e.SPBluetoothDataType[0]&&e.SPBluetoothDataType[0].device_title&&e.SPBluetoothDataType[0].device_title.length){let t=null;e.SPBluetoothDataType[0].local_device_title&&e.SPBluetoothDataType[0].local_device_title.general_address&&(t=e.SPBluetoothDataType[0].local_device_title.general_address.toLowerCase().replace(/-/g,`:`)),e.SPBluetoothDataType[0].device_title.forEach(e=>{let n=e,r=Object.keys(n);if(r&&r.length===1){let e=n[r[0]];e.device_name=r[0];let i=y(e,t);s.push(i)}})}if(e.SPBluetoothDataType&&e.SPBluetoothDataType.length&&e.SPBluetoothDataType[0]&&e.SPBluetoothDataType[0].device_connected&&e.SPBluetoothDataType[0].device_connected.length){let t=e.SPBluetoothDataType[0].controller_properties&&e.SPBluetoothDataType[0].controller_properties.controller_address?e.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,`:`):null;e.SPBluetoothDataType[0].device_connected.forEach(e=>{let n=e,r=Object.keys(n);if(r&&r.length===1){let e=n[r[0]];e.device_name=r[0],e.device_isconnected=`attrib_Yes`;let i=y(e,t);s.push(i)}})}if(e.SPBluetoothDataType&&e.SPBluetoothDataType.length&&e.SPBluetoothDataType[0]&&e.SPBluetoothDataType[0].device_not_connected&&e.SPBluetoothDataType[0].device_not_connected.length){let t=e.SPBluetoothDataType[0].controller_properties&&e.SPBluetoothDataType[0].controller_properties.controller_address?e.SPBluetoothDataType[0].controller_properties.controller_address.toLowerCase().replace(/-/g,`:`):null;e.SPBluetoothDataType[0].device_not_connected.forEach(e=>{let n=e,r=Object.keys(n);if(r&&r.length===1){let e=n[r[0]];e.device_name=r[0],e.device_isconnected=`attrib_No`;let i=y(e,t);s.push(i)}})}}catch{i.noop()}e&&e(s),a(s)}),u&&i.powerShell(`Get-CimInstance Win32_PNPEntity | select PNPClass, Name, Manufacturer, Status, Service, ConfigManagerErrorCode, Present | fl`).then((t,n)=>{n||t.toString().split(/\n\s*\n/).forEach(e=>{let t=e.split(` -`),n=i.getValue(t,`Service`,`:`),r=i.getValue(t,`ConfigManagerErrorCode`,`:`);i.getValue(t,`PNPClass`,`:`).toLowerCase()===`bluetooth`&&r===`0`&&n===``&&s.push(b(t))}),e&&e(s),a(s)}),(d||p||f||m)&&a(null)})})}e.bluetoothDevices=x})),UO=R((e=>{let t=xO().version,n=SO(),r=wO(),i=CO(),a=TO(),o=EO(),s=DO(),c=OO(),l=kO(),u=AO(),d=jO(),f=MO(),p=NO(),m=PO(),h=IO(),g=LO(),_=RO(),v=zO(),y=BO(),b=HO(),x=process.platform,S=x===`win32`,C=x===`freebsd`,w=x===`openbsd`,T=x===`netbsd`,E=x===`sunos`;S&&(n.getCodepage(),n.getPowershell());function D(){return t}function O(e){return new Promise(t=>{process.nextTick(()=>{let n={};n.version=D(),Promise.all([r.system(),r.bios(),r.baseboard(),r.chassis(),i.osInfo(),i.uuid(),i.versions(),a.cpu(),a.cpuFlags(),c.graphics(),u.networkInterfaces(),o.memLayout(),l.diskLayout(),y.audio(),b.bluetoothDevices(),v.usb(),_.printer()]).then(r=>{n.system=r[0],n.bios=r[1],n.baseboard=r[2],n.chassis=r[3],n.os=r[4],n.uuid=r[5],n.versions=r[6],n.cpu=r[7],n.cpu.flags=r[8],n.graphics=r[9],n.net=r[10],n.memLayout=r[11],n.diskLayout=r[12],n.audio=r[13],n.bluetooth=r[14],n.usb=r[15],n.printer=r[16],e&&e(n),t(n)})})})}function k(e,t,r){return n.isFunction(t)&&(r=t,t=``),n.isFunction(e)&&(r=e,e=``),new Promise(n=>{process.nextTick(()=>{t||=u.getDefaultNetworkInterface(),e||=``;let c=(()=>{let e=15;return S&&(e=13),(C||w||T)&&(e=11),E&&(e=6),function(){--e===0&&(r&&r(h),n(h))}})(),h={};h.time=i.time(),h.node=process.versions.node,h.v8=process.versions.v8,a.cpuCurrentSpeed().then(e=>{h.cpuCurrentSpeed=e,c()}),p.users().then(e=>{h.users=e,c()}),f.processes().then(e=>{h.processes=e,c()}),a.currentLoad().then(e=>{h.currentLoad=e,c()}),E||a.cpuTemperature().then(e=>{h.temp=e,c()}),!w&&!C&&!T&&!E&&u.networkStats(t).then(e=>{h.networkStats=e,c()}),E||u.networkConnections().then(e=>{h.networkConnections=e,c()}),o.mem().then(e=>{h.mem=e,c()}),E||s().then(e=>{h.battery=e,c()}),E||f.services(e).then(e=>{h.services=e,c()}),E||l.fsSize().then(e=>{h.fsSize=e,c()}),!S&&!w&&!C&&!T&&!E&&l.fsStats().then(e=>{h.fsStats=e,c()}),!S&&!w&&!C&&!T&&!E&&l.disksIO().then(e=>{h.disksIO=e,c()}),!w&&!C&&!T&&!E&&d.wifiNetworks().then(e=>{h.wifiNetworks=e,c()}),m.inetLatency().then(e=>{h.inetLatency=e,c()})})})}function A(e,t,r){return new Promise(i=>{process.nextTick(()=>{let a={};t&&n.isFunction(t)&&!r&&(r=t,t=``),e&&n.isFunction(e)&&!t&&!r&&(r=e,e=``,t=``),O().then(n=>{a=n,k(e,t).then(e=>{for(let t in e)({}).hasOwnProperty.call(e,t)&&(a[t]=e[t]);r&&r(a),i(a)})})})})}function j(t,n){return new Promise(r=>{process.nextTick(()=>{let i=Object.keys(t).filter(t=>({}).hasOwnProperty.call(e,t)).map(n=>{let r=t[n].substring(t[n].lastIndexOf(`(`)+1,t[n].lastIndexOf(`)`)),i=n.indexOf(`)`)>=0?n.split(`)`)[1].trim():n;return i=n.indexOf(`|`)>=0?n.split(`|`)[0].trim():i,r?e[i](r):e[i](``)});Promise.all(i).then(i=>{let a={},o=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(e,n)&&i.length>o){if(t[n]===`*`||t[n]===`all`)a[n]=i[o];else{let e=t[n],r=``,s=[];if(e.indexOf(`)`)>=0&&(e=e.split(`)`)[1].trim()),e.indexOf(`|`)>=0&&(r=e.split(`|`)[1].trim(),s=r.split(`:`),e=e.split(`|`)[0].trim()),e=e.replace(/,/g,` `).replace(/ +/g,` `).split(` `),i[o])if(Array.isArray(i[o])){let t=[];i[o].forEach(n=>{let i={};if(e.length===1&&(e[0]===`*`||e[0]===`all`)?i=n:e.forEach(e=>{({}).hasOwnProperty.call(n,e)&&(i[e]=n[e])}),r&&s.length===2){if({}.hasOwnProperty.call(i,s[0].trim())){let e=i[s[0].trim()];typeof e==`number`?e===parseFloat(s[1].trim())&&t.push(i):typeof e==`string`&&e.toLowerCase()===s[1].trim().toLowerCase()&&t.push(i)}}else t.push(i)}),a[n]=t}else{let t={};e.forEach(e=>{({}).hasOwnProperty.call(i[o],e)&&(t[e]=i[o][e])}),a[n]=t}else a[n]={}}o++}n&&n(a),r(a)})})})}function M(e,t,n){let r=null;return setInterval(()=>{j(e).then(e=>{JSON.stringify(r)!==JSON.stringify(e)&&(r=Object.assign({},e),n(e))})},t)}e.version=D,e.system=r.system,e.bios=r.bios,e.baseboard=r.baseboard,e.chassis=r.chassis,e.time=i.time,e.osInfo=i.osInfo,e.versions=i.versions,e.shell=i.shell,e.uuid=i.uuid,e.cpu=a.cpu,e.cpuFlags=a.cpuFlags,e.cpuCache=a.cpuCache,e.cpuCurrentSpeed=a.cpuCurrentSpeed,e.cpuTemperature=a.cpuTemperature,e.currentLoad=a.currentLoad,e.fullLoad=a.fullLoad,e.mem=o.mem,e.memLayout=o.memLayout,e.battery=s,e.graphics=c.graphics,e.fsSize=l.fsSize,e.fsOpenFiles=l.fsOpenFiles,e.blockDevices=l.blockDevices,e.fsStats=l.fsStats,e.disksIO=l.disksIO,e.diskLayout=l.diskLayout,e.networkInterfaceDefault=u.networkInterfaceDefault,e.networkGatewayDefault=u.networkGatewayDefault,e.networkInterfaces=u.networkInterfaces,e.networkStats=u.networkStats,e.networkConnections=u.networkConnections,e.wifiNetworks=d.wifiNetworks,e.wifiInterfaces=d.wifiInterfaces,e.wifiConnections=d.wifiConnections,e.services=f.services,e.processes=f.processes,e.processLoad=f.processLoad,e.users=p.users,e.inetChecksite=m.inetChecksite,e.inetLatency=m.inetLatency,e.dockerInfo=h.dockerInfo,e.dockerImages=h.dockerImages,e.dockerContainers=h.dockerContainers,e.dockerContainerStats=h.dockerContainerStats,e.dockerContainerProcesses=h.dockerContainerProcesses,e.dockerVolumes=h.dockerVolumes,e.dockerAll=h.dockerAll,e.vboxInfo=g.vboxInfo,e.printer=_.printer,e.usb=v.usb,e.audio=y.audio,e.bluetoothDevices=b.bluetoothDevices,e.getStaticData=O,e.getDynamicData=k,e.getAllData=A,e.get=j,e.observe=M,e.powerShellStart=n.powerShellStart,e.powerShellRelease=n.powerShellRelease})),WO=R((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),GO=R((e=>{var t=WO();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=WO(),n=GO();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` -`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),qO=R((e=>{var t=WO(),n=GO();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),JO=R((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=WO();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),XO=R((e=>{var t=JO(),n=WO(),r=YO();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),ZO=R((e=>{var t=qO(),n=GO(),r=WO(),i=XO(),a=YO(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),QO=R((e=>{var t=WO(),n=XO(),r=YO();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),$O=R((e=>{var t=ZO(),n=WO(),r=QO();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),ek=R((e=>{var t=$O(),n=WO(),r=XO();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),tk=R((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` +`),n=i.getValue(t,`Service`,`:`),r=i.getValue(t,`ConfigManagerErrorCode`,`:`);i.getValue(t,`PNPClass`,`:`).toLowerCase()===`bluetooth`&&r===`0`&&n===``&&s.push(b(t))}),e&&e(s),a(s)}),(d||p||f||m)&&a(null)})})}e.bluetoothDevices=x})),UO=z((e=>{let t=xO().version,n=SO(),r=wO(),i=CO(),a=TO(),o=EO(),s=DO(),c=OO(),l=kO(),u=AO(),d=jO(),f=MO(),p=NO(),m=PO(),h=IO(),g=LO(),_=RO(),v=zO(),y=BO(),b=HO(),x=process.platform,S=x===`win32`,C=x===`freebsd`,w=x===`openbsd`,T=x===`netbsd`,E=x===`sunos`;S&&(n.getCodepage(),n.getPowershell());function D(){return t}function O(e){return new Promise(t=>{process.nextTick(()=>{let n={};n.version=D(),Promise.all([r.system(),r.bios(),r.baseboard(),r.chassis(),i.osInfo(),i.uuid(),i.versions(),a.cpu(),a.cpuFlags(),c.graphics(),u.networkInterfaces(),o.memLayout(),l.diskLayout(),y.audio(),b.bluetoothDevices(),v.usb(),_.printer()]).then(r=>{n.system=r[0],n.bios=r[1],n.baseboard=r[2],n.chassis=r[3],n.os=r[4],n.uuid=r[5],n.versions=r[6],n.cpu=r[7],n.cpu.flags=r[8],n.graphics=r[9],n.net=r[10],n.memLayout=r[11],n.diskLayout=r[12],n.audio=r[13],n.bluetooth=r[14],n.usb=r[15],n.printer=r[16],e&&e(n),t(n)})})})}function k(e,t,r){return n.isFunction(t)&&(r=t,t=``),n.isFunction(e)&&(r=e,e=``),new Promise(n=>{process.nextTick(()=>{t||=u.getDefaultNetworkInterface(),e||=``;let c=(()=>{let e=15;return S&&(e=13),(C||w||T)&&(e=11),E&&(e=6),function(){--e===0&&(r&&r(h),n(h))}})(),h={};h.time=i.time(),h.node=process.versions.node,h.v8=process.versions.v8,a.cpuCurrentSpeed().then(e=>{h.cpuCurrentSpeed=e,c()}),p.users().then(e=>{h.users=e,c()}),f.processes().then(e=>{h.processes=e,c()}),a.currentLoad().then(e=>{h.currentLoad=e,c()}),E||a.cpuTemperature().then(e=>{h.temp=e,c()}),!w&&!C&&!T&&!E&&u.networkStats(t).then(e=>{h.networkStats=e,c()}),E||u.networkConnections().then(e=>{h.networkConnections=e,c()}),o.mem().then(e=>{h.mem=e,c()}),E||s().then(e=>{h.battery=e,c()}),E||f.services(e).then(e=>{h.services=e,c()}),E||l.fsSize().then(e=>{h.fsSize=e,c()}),!S&&!w&&!C&&!T&&!E&&l.fsStats().then(e=>{h.fsStats=e,c()}),!S&&!w&&!C&&!T&&!E&&l.disksIO().then(e=>{h.disksIO=e,c()}),!w&&!C&&!T&&!E&&d.wifiNetworks().then(e=>{h.wifiNetworks=e,c()}),m.inetLatency().then(e=>{h.inetLatency=e,c()})})})}function A(e,t,r){return new Promise(i=>{process.nextTick(()=>{let a={};t&&n.isFunction(t)&&!r&&(r=t,t=``),e&&n.isFunction(e)&&!t&&!r&&(r=e,e=``,t=``),O().then(n=>{a=n,k(e,t).then(e=>{for(let t in e)({}).hasOwnProperty.call(e,t)&&(a[t]=e[t]);r&&r(a),i(a)})})})})}function j(t,n){return new Promise(r=>{process.nextTick(()=>{let i=Object.keys(t).filter(t=>({}).hasOwnProperty.call(e,t)).map(n=>{let r=t[n].substring(t[n].lastIndexOf(`(`)+1,t[n].lastIndexOf(`)`)),i=n.indexOf(`)`)>=0?n.split(`)`)[1].trim():n;return i=n.indexOf(`|`)>=0?n.split(`|`)[0].trim():i,r?e[i](r):e[i](``)});Promise.all(i).then(i=>{let a={},o=0;for(let n in t)if({}.hasOwnProperty.call(t,n)&&{}.hasOwnProperty.call(e,n)&&i.length>o){if(t[n]===`*`||t[n]===`all`)a[n]=i[o];else{let e=t[n],r=``,s=[];if(e.indexOf(`)`)>=0&&(e=e.split(`)`)[1].trim()),e.indexOf(`|`)>=0&&(r=e.split(`|`)[1].trim(),s=r.split(`:`),e=e.split(`|`)[0].trim()),e=e.replace(/,/g,` `).replace(/ +/g,` `).split(` `),i[o])if(Array.isArray(i[o])){let t=[];i[o].forEach(n=>{let i={};if(e.length===1&&(e[0]===`*`||e[0]===`all`)?i=n:e.forEach(e=>{({}).hasOwnProperty.call(n,e)&&(i[e]=n[e])}),r&&s.length===2){if({}.hasOwnProperty.call(i,s[0].trim())){let e=i[s[0].trim()];typeof e==`number`?e===parseFloat(s[1].trim())&&t.push(i):typeof e==`string`&&e.toLowerCase()===s[1].trim().toLowerCase()&&t.push(i)}}else t.push(i)}),a[n]=t}else{let t={};e.forEach(e=>{({}).hasOwnProperty.call(i[o],e)&&(t[e]=i[o][e])}),a[n]=t}else a[n]={}}o++}n&&n(a),r(a)})})})}function M(e,t,n){let r=null;return setInterval(()=>{j(e).then(e=>{JSON.stringify(r)!==JSON.stringify(e)&&(r=Object.assign({},e),n(e))})},t)}e.version=D,e.system=r.system,e.bios=r.bios,e.baseboard=r.baseboard,e.chassis=r.chassis,e.time=i.time,e.osInfo=i.osInfo,e.versions=i.versions,e.shell=i.shell,e.uuid=i.uuid,e.cpu=a.cpu,e.cpuFlags=a.cpuFlags,e.cpuCache=a.cpuCache,e.cpuCurrentSpeed=a.cpuCurrentSpeed,e.cpuTemperature=a.cpuTemperature,e.currentLoad=a.currentLoad,e.fullLoad=a.fullLoad,e.mem=o.mem,e.memLayout=o.memLayout,e.battery=s,e.graphics=c.graphics,e.fsSize=l.fsSize,e.fsOpenFiles=l.fsOpenFiles,e.blockDevices=l.blockDevices,e.fsStats=l.fsStats,e.disksIO=l.disksIO,e.diskLayout=l.diskLayout,e.networkInterfaceDefault=u.networkInterfaceDefault,e.networkGatewayDefault=u.networkGatewayDefault,e.networkInterfaces=u.networkInterfaces,e.networkStats=u.networkStats,e.networkConnections=u.networkConnections,e.wifiNetworks=d.wifiNetworks,e.wifiInterfaces=d.wifiInterfaces,e.wifiConnections=d.wifiConnections,e.services=f.services,e.processes=f.processes,e.processLoad=f.processLoad,e.users=p.users,e.inetChecksite=m.inetChecksite,e.inetLatency=m.inetLatency,e.dockerInfo=h.dockerInfo,e.dockerImages=h.dockerImages,e.dockerContainers=h.dockerContainers,e.dockerContainerStats=h.dockerContainerStats,e.dockerContainerProcesses=h.dockerContainerProcesses,e.dockerVolumes=h.dockerVolumes,e.dockerAll=h.dockerAll,e.vboxInfo=g.vboxInfo,e.printer=_.printer,e.usb=v.usb,e.audio=y.audio,e.bluetoothDevices=b.bluetoothDevices,e.getStaticData=O,e.getDynamicData=k,e.getAllData=A,e.get=j,e.observe=M,e.powerShellStart=n.powerShellStart,e.powerShellRelease=n.powerShellRelease})),WO=z((e=>{let t=Symbol.for(`yaml.alias`),n=Symbol.for(`yaml.document`),r=Symbol.for(`yaml.map`),i=Symbol.for(`yaml.pair`),a=Symbol.for(`yaml.scalar`),o=Symbol.for(`yaml.seq`),s=Symbol.for(`yaml.node.type`),c=e=>!!e&&typeof e==`object`&&e[s]===t,l=e=>!!e&&typeof e==`object`&&e[s]===n,u=e=>!!e&&typeof e==`object`&&e[s]===r,d=e=>!!e&&typeof e==`object`&&e[s]===i,f=e=>!!e&&typeof e==`object`&&e[s]===a,p=e=>!!e&&typeof e==`object`&&e[s]===o;function m(e){if(e&&typeof e==`object`)switch(e[s]){case r:case o:return!0}return!1}function h(e){if(e&&typeof e==`object`)switch(e[s]){case t:case r:case a:case o:return!0}return!1}e.ALIAS=t,e.DOC=n,e.MAP=r,e.NODE_TYPE=s,e.PAIR=i,e.SCALAR=a,e.SEQ=o,e.hasAnchor=e=>(f(e)||m(e))&&!!e.anchor,e.isAlias=c,e.isCollection=m,e.isDocument=l,e.isMap=u,e.isNode=h,e.isPair=d,e.isScalar=f,e.isSeq=p})),GO=z((e=>{var t=WO();let n=Symbol(`break visit`),r=Symbol(`skip children`),i=Symbol(`remove node`);function a(e,n){let r=l(n);t.isDocument(e)?o(null,e.contents,r,Object.freeze([e]))===i&&(e.contents=null):o(null,e,r,Object.freeze([]))}a.BREAK=n,a.SKIP=r,a.REMOVE=i;function o(e,r,a,s){let c=u(e,r,a,s);if(t.isNode(c)||t.isPair(c))return d(e,s,c),o(e,c,a,s);if(typeof c!=`symbol`){if(t.isCollection(r)){s=Object.freeze(s.concat(r));for(let e=0;e{var t=WO(),n=GO();let r={"!":`%21`,",":`%2C`,"[":`%5B`,"]":`%5D`,"{":`%7B`,"}":`%7D`},i=e=>e.replace(/[!,[\]{}]/g,e=>r[e]);var a=class e{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},e.defaultYaml,t),this.tags=Object.assign({},e.defaultTags,n)}clone(){let t=new e(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){let t=new e(this.yaml,this.tags);switch(this.yaml.version){case`1.1`:this.atNextDocument=!0;break;case`1.2`:this.atNextDocument=!1,this.yaml={explicit:e.defaultYaml.explicit,version:`1.2`},this.tags=Object.assign({},e.defaultTags);break}return t}add(t,n){this.atNextDocument&&=(this.yaml={explicit:e.defaultYaml.explicit,version:`1.1`},this.tags=Object.assign({},e.defaultTags),!1);let r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case`%TAG`:{if(r.length!==2&&(n(0,`%TAG directive should contain exactly two parts`),r.length<2))return!1;let[e,t]=r;return this.tags[e]=t,!0}case`%YAML`:{if(this.yaml.explicit=!0,r.length!==1)return n(0,`%YAML directive should contain exactly one part`),!1;let[e]=r;if(e===`1.1`||e===`1.2`)return this.yaml.version=e,!0;{let t=/^\d+\.\d+$/.test(e);return n(6,`Unsupported YAML version ${e}`,t),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(e,t){if(e===`!`)return`!`;if(e[0]!==`!`)return t(`Not a valid tag: ${e}`),null;if(e[1]===`<`){let n=e.slice(2,-1);return n===`!`||n===`!!`?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==`>`&&t(`Verbatim tags must end with a >`),n)}let[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||t(`The ${e} tag has no suffix`);let i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(e){return t(String(e)),null}return n===`!`?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+i(e.substring(n.length));return e[0]===`!`?e:`!<${e}>`}toString(e){let r=this.yaml.explicit?[`%YAML ${this.yaml.version||`1.2`}`]:[],i=Object.entries(this.tags),a;if(e&&i.length>0&&t.isNode(e.contents)){let r={};n.visit(e.contents,(e,n)=>{t.isNode(n)&&n.tag&&(r[n.tag]=!0)}),a=Object.keys(r)}else a=[];for(let[t,n]of i)t===`!!`&&n===`tag:yaml.org,2002:`||(!e||a.some(e=>e.startsWith(n)))&&r.push(`%TAG ${t} ${n}`);return r.join(` +`)}};a.defaultYaml={explicit:!1,version:`1.2`},a.defaultTags={"!!":`tag:yaml.org,2002:`},e.Directives=a})),qO=z((e=>{var t=WO(),n=GO();function r(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw Error(t)}return!0}function i(e){let t=new Set;return n.visit(e,{Value(e,n){n.anchor&&t.add(n.anchor)}}),t}function a(e,t){for(let n=1;;++n){let r=`${e}${n}`;if(!t.has(r))return r}}function o(e,n){let r=[],o=new Map,s=null;return{onAnchor:t=>{r.push(t),s??=i(e);let o=a(n,s);return s.add(o),o},setAnchors:()=>{for(let e of r){let n=o.get(e);if(typeof n==`object`&&n.anchor&&(t.isScalar(n.node)||t.isCollection(n.node)))n.node.anchor=n.anchor;else{let t=Error(`Failed to resolve repeated object (this should not happen)`);throw t.source=e,t}}},sourceObjects:o}}e.anchorIsValid=r,e.anchorNames=i,e.createNodeAnchors=o,e.findNewAnchor=a})),JO=z((e=>{function t(e,n,r,i){if(i&&typeof i==`object`)if(Array.isArray(i))for(let n=0,r=i.length;n{var t=WO();function n(e,r,i){if(Array.isArray(e))return e.map((e,t)=>n(e,String(t),i));if(e&&typeof e.toJSON==`function`){if(!i||!t.hasAnchor(e))return e.toJSON(r,i);let n={aliasCount:0,count:1,res:void 0};i.anchors.set(e,n),i.onCreate=e=>{n.res=e,delete i.onCreate};let a=e.toJSON(r,i);return i.onCreate&&i.onCreate(a),a}return typeof e==`bigint`&&!i?.keep?Number(e):e}e.toJS=n})),XO=z((e=>{var t=JO(),n=WO(),r=YO();e.NodeBase=class{constructor(e){Object.defineProperty(this,n.NODE_TYPE,{value:e})}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:i,maxAliasCount:a,onAnchor:o,reviver:s}={}){if(!n.isDocument(e))throw TypeError(`A document argument is required`);let c={anchors:new Map,doc:e,keep:!0,mapAsMap:i===!0,mapKeyWarned:!1,maxAliasCount:typeof a==`number`?a:100},l=r.toJS(this,``,c);if(typeof o==`function`)for(let{count:e,res:t}of c.anchors.values())o(t,e);return typeof s==`function`?t.applyReviver(s,{"":l},``,l):l}}})),ZO=z((e=>{var t=qO(),n=GO(),r=WO(),i=XO(),a=YO(),o=class extends i.NodeBase{constructor(e){super(r.ALIAS),this.source=e,Object.defineProperty(this,"tag",{set(){throw Error(`Alias nodes cannot have tags`)}})}resolve(e,t){if(t?.maxAliasCount===0)throw ReferenceError(`Alias resolution is disabled`);let i;t?.aliasResolveCache?i=t.aliasResolveCache:(i=[],n.visit(e,{Node:(e,t)=>{(r.isAlias(t)||r.hasAnchor(t))&&i.push(t)}}),t&&(t.aliasResolveCache=i));let a;for(let e of i){if(e===this)break;e.anchor===this.source&&(a=e)}return a}toJSON(e,t){if(!t)return{source:this.source};let{anchors:n,doc:r,maxAliasCount:i}=t,o=this.resolve(r,t);if(!o){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw ReferenceError(e)}let c=n.get(o);if(c||=(a.toJS(o,null,t),n.get(o)),c?.res===void 0)throw ReferenceError(`This should not happen: Alias anchor was not resolved?`);if(i>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=s(r,o,n)),c.count*c.aliasCount>i))throw ReferenceError(`Excessive alias count indicates a resource exhaustion attack`);return c.res}toString(e,n,r){let i=`*${this.source}`;if(e){if(t.anchorIsValid(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let e=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw Error(e)}if(e.implicitKey)return`${i} `}return i}};function s(e,t,n){if(r.isAlias(t)){let r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(r.isCollection(t)){let r=0;for(let i of t.items){let t=s(e,i,n);t>r&&(r=t)}return r}else if(r.isPair(t)){let r=s(e,t.key,n),i=s(e,t.value,n);return Math.max(r,i)}return 1}e.Alias=o})),QO=z((e=>{var t=WO(),n=XO(),r=YO();let i=e=>!e||typeof e!=`function`&&typeof e!=`object`;var a=class extends n.NodeBase{constructor(e){super(t.SCALAR),this.value=e}toJSON(e,t){return t?.keep?this.value:r.toJS(this.value,e,t)}toString(){return String(this.value)}};a.BLOCK_FOLDED=`BLOCK_FOLDED`,a.BLOCK_LITERAL=`BLOCK_LITERAL`,a.PLAIN=`PLAIN`,a.QUOTE_DOUBLE=`QUOTE_DOUBLE`,a.QUOTE_SINGLE=`QUOTE_SINGLE`,e.Scalar=a,e.isScalarValue=i})),$O=z((e=>{var t=ZO(),n=WO(),r=QO();function i(e,t,n){if(t){let e=n.filter(e=>e.tag===t),r=e.find(e=>!e.format)??e[0];if(!r)throw Error(`Tag ${t} not found`);return r}return n.find(t=>t.identify?.(e)&&!t.format)}function a(e,a,o){if(n.isDocument(e)&&(e=e.contents),n.isNode(e))return e;if(n.isPair(e)){let t=o.schema[n.MAP].createNode?.(o.schema,null,o);return t.items.push(e),t}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<`u`&&e instanceof BigInt)&&(e=e.valueOf());let{aliasDuplicateObjects:s,onAnchor:c,onTagObj:l,schema:u,sourceObjects:d}=o,f;if(s&&e&&typeof e==`object`){if(f=d.get(e),f)return f.anchor??=c(e),new t.Alias(f.anchor);f={anchor:null,node:null},d.set(e,f)}a?.startsWith(`!!`)&&(a=`tag:yaml.org,2002:`+a.slice(2));let p=i(e,a,u.tags);if(!p){if(e&&typeof e.toJSON==`function`&&(e=e.toJSON()),!e||typeof e!=`object`){let t=new r.Scalar(e);return f&&(f.node=t),t}p=e instanceof Map?u[n.MAP]:Symbol.iterator in Object(e)?u[n.SEQ]:u[n.MAP]}l&&(l(p),delete o.onTagObj);let m=p?.createNode?p.createNode(o.schema,e,o):typeof p?.nodeClass?.from==`function`?p.nodeClass.from(o.schema,e,o):new r.Scalar(e);return a?m.tag=a:p.default||(m.tag=p.tag),f&&(f.node=m),m}e.createNode=a})),ek=z((e=>{var t=$O(),n=WO(),r=XO();function i(e,n,r){let i=r;for(let e=n.length-1;e>=0;--e){let t=n[e];if(typeof t==`number`&&Number.isInteger(t)&&t>=0){let e=[];e[t]=i,i=e}else i=new Map([[t,i]])}return t.createNode(i,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw Error(`This should not happen, please report a bug.`)},schema:e,sourceObjects:new Map})}let a=e=>e==null||typeof e==`object`&&!!e[Symbol.iterator]().next().done;e.Collection=class extends r.NodeBase{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(t=>n.isNode(t)||n.isPair(t)?t.clone(e):t),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(a(e))this.add(t);else{let[r,...a]=e,o=this.get(r,!0);if(n.isCollection(o))o.addIn(a,t);else if(o===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let i=this.get(t,!0);if(n.isCollection(i))return i.deleteIn(r);throw Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...i]=e,a=this.get(r,!0);return i.length===0?!t&&n.isScalar(a)?a.value:a:n.isCollection(a)?a.getIn(i,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!n.isPair(t))return!1;let r=t.value;return r==null||e&&n.isScalar(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let i=this.get(t,!0);return n.isCollection(i)?i.hasIn(r):!1}setIn(e,t){let[r,...a]=e;if(a.length===0)this.set(r,t);else{let e=this.get(r,!0);if(n.isCollection(e))e.setIn(a,t);else if(e===void 0&&this.schema)this.set(r,i(this.schema,a,t));else throw Error(`Expected YAML collection at ${r}. Remaining path: ${a}`)}}},e.collectionFromPath=i,e.isEmptyPath=a})),tk=z((e=>{let t=e=>e.replace(/^(?!$)(?: $)?/gm,`#`);function n(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}e.indentComment=n,e.lineComment=(e,t,r)=>e.endsWith(` `)?n(r,t):r.includes(` `)?` -`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),nk=R((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` +`+n(r,t):(e.endsWith(` `)?``:` `)+r,e.stringifyComment=t})),nk=z((e=>{let t=`block`,n=`quoted`;function r(e,r,a=`flow`,{indentAtStart:o,lineWidth:s=80,minContentWidth:c=20,onFold:l,onOverflow:u}={}){if(!s||s<0)return e;ss-Math.max(2,c)?f.push(0):m=s-o);let h,g,_=!1,v=-1,y=-1,b=-1;a===t&&(v=i(e,v,r.length),v!==-1&&(m=v+d));for(let o;o=e[v+=1];){if(a===n&&o===`\\`){switch(y=v,e[v+1]){case`x`:v+=3;break;case`u`:v+=5;break;case`U`:v+=9;break;default:v+=1}b=v}if(o===` `)a===t&&(v=i(e,v,r.length)),m=v+r.length+d,h=void 0;else{if(o===` `&&g&&g!==` `&&g!==` `&&g!==` `){let t=e[v+1];t&&t!==` `&&t!==` `&&t!==` `&&(h=v)}if(v>=m)if(h)f.push(h),m=h+d,h=void 0;else if(a===n){for(;g===` `||g===` `;)g=o,o=e[v+=1],_=!0;let t=v>b+1?v-2:y-1;if(p[t])return e;f.push(t),p[t]=!0,m=t+d,h=void 0}else _=!0}g=o}if(_&&u&&u(),f.length===0)return e;l&&l();let x=e.slice(0,f[0]);for(let t=0;t{var t=QO(),n=nk();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;t{var t=QO(),n=nk();let r=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),i=e=>/^(%|---|\.\.\.)/m.test(e);function a(e,t,n){if(!t||t<0)return!1;let r=t-n,i=e.length;if(i<=r)return!1;for(let t=0,n=0;tr)return!0;if(n=t+1,i-n<=r)return!1}return!0}function o(e,t){let a=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return a;let{implicitKey:o}=t,s=t.options.doubleQuotedMinMultiLineLength,c=t.indent||(i(e)?` `:``),l=``,u=0;for(let e=0,t=a[e];t;t=a[++e])if(t===` `&&a[e+1]===`\\`&&a[e+2]===`n`&&(l+=a.slice(u,e)+`\\ `,e+=1,u=e,t=`\\`),t===`\\`)switch(a[e+1]){case`u`:{l+=a.slice(u,e);let t=a.substr(e+2,4);switch(t){case`0000`:l+=`\\0`;break;case`0007`:l+=`\\a`;break;case`000b`:l+=`\\v`;break;case`001b`:l+=`\\e`;break;case`0085`:l+=`\\N`;break;case`00a0`:l+=`\\_`;break;case`2028`:l+=`\\L`;break;case`2029`:l+=`\\P`;break;default:t.substr(0,2)===`00`?l+=`\\x`+t.substr(2):l+=a.substr(e,6)}e+=5,u=e+1}break;case`n`:if(o||a[e+2]===`"`||a.length{i=!0});let c=n.foldFlowLines(`${T}${e}${b}`,g,n.FOLD_BLOCK,a);if(!i)return`>${E}\n${g}${c}`}return s=s.replace(/\n+/g,`$&${g}`),`|${E}\n${g}${T}${s}${b}`}function d(e,a,o,s){let{type:l,value:d}=e,{actualString:f,implicitKey:p,indent:m,indentStep:h,inFlow:g}=a;if(p&&d.includes(` `)||g&&/[[\]{},]/.test(d))return c(d,a);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(d))return p||g||!d.includes(` `)?c(d,a):u(e,a,o,s);if(!p&&!g&&l!==t.Scalar.PLAIN&&d.includes(` -`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ik=R((e=>{var t=qO(),n=WO(),r=tk(),i=rk();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),ak=R((e=>{var t=WO(),n=QO(),r=ik(),i=tk();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` +`))return u(e,a,o,s);if(i(d)){if(m===``)return a.forceBlockIndent=!0,u(e,a,o,s);if(p&&m===h)return c(d,a)}let _=d.replace(/\n+/g,`$&\n${m}`);if(f){let e=e=>e.default&&e.tag!==`tag:yaml.org,2002:str`&&e.test?.test(_),{compat:t,tags:n}=a.doc.schema;if(n.some(e)||t?.some(e))return c(d,a)}return p?_:n.foldFlowLines(_,m,n.FOLD_FLOW,r(a,!1))}function f(e,n,r,i){let{implicitKey:a,inFlow:l}=n,f=typeof e.value==`string`?e:Object.assign({},e,{value:String(e.value)}),{type:p}=e;p!==t.Scalar.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(f.value)&&(p=t.Scalar.QUOTE_DOUBLE);let m=e=>{switch(e){case t.Scalar.BLOCK_FOLDED:case t.Scalar.BLOCK_LITERAL:return a||l?c(f.value,n):u(f,n,r,i);case t.Scalar.QUOTE_DOUBLE:return o(f.value,n);case t.Scalar.QUOTE_SINGLE:return s(f.value,n);case t.Scalar.PLAIN:return d(f,n,r,i);default:return null}},h=m(p);if(h===null){let{defaultKeyType:e,defaultStringType:t}=n.options,r=a&&e||t;if(h=m(r),h===null)throw Error(`Unsupported default string type ${r}`)}return h}e.stringifyString=f})),ik=z((e=>{var t=qO(),n=WO(),r=tk(),i=rk();function a(e,t){let n=Object.assign({blockQuote:!0,commentString:r.stringifyComment,defaultKeyType:null,defaultStringType:`PLAIN`,directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:`false`,flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:`null`,simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:`true`,verifyAliasOrder:!0},e.schema.toStringOptions,t),i;switch(n.collectionStyle){case`block`:i=!1;break;case`flow`:i=!0;break;default:i=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?` `:``,indent:``,indentStep:typeof n.indent==`number`?` `.repeat(n.indent):` `,inFlow:i,options:n}}function o(e,t){if(t.tag){let n=e.filter(e=>e.tag===t.tag);if(n.length>0)return n.find(e=>e.format===t.format)??n[0]}let r,i;if(n.isScalar(t)){i=t.value;let n=e.filter(e=>e.identify?.(i));if(n.length>1){let e=n.filter(e=>e.test);e.length>0&&(n=e)}r=n.find(e=>e.format===t.format)??n.find(e=>!e.format)}else i=t,r=e.find(e=>e.nodeClass&&i instanceof e.nodeClass);if(!r){let e=i?.constructor?.name??(i===null?`null`:typeof i);throw Error(`Tag not resolved for ${e} value`)}return r}function s(e,r,{anchors:i,doc:a}){if(!a.directives)return``;let o=[],s=(n.isScalar(e)||n.isCollection(e))&&e.anchor;s&&t.anchorIsValid(s)&&(i.add(s),o.push(`&${s}`));let c=e.tag??(r.default?null:r.tag);return c&&o.push(a.directives.tagString(c)),o.join(` `)}function c(e,t,r,a){if(n.isPair(e))return e.toString(t,r,a);if(n.isAlias(e)){if(t.doc.directives)return e.toString(t);if(t.resolvedAliases?.has(e))throw TypeError(`Cannot stringify circular structure without alias nodes`);t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let c,l=n.isNode(e)?e:t.doc.createNode(e,{onTagObj:e=>c=e});c??=o(t.doc.schema.tags,l);let u=s(l,c,t);u.length>0&&(t.indentAtStart=(t.indentAtStart??0)+u.length+1);let d=typeof c.stringify==`function`?c.stringify(l,t,r,a):n.isScalar(l)?i.stringifyString(l,t,r,a):l.toString(t,r,a);return u?n.isScalar(l)||d[0]===`{`||d[0]===`[`?`${u} ${d}`:`${u}\n${t.indent}${d}`:d}e.createStringifyContext=a,e.stringify=c})),ak=z((e=>{var t=WO(),n=QO(),r=ik(),i=tk();function a({key:e,value:a},o,s,c){let{allNullValues:l,doc:u,indent:d,indentStep:f,options:{commentString:p,indentSeq:m,simpleKeys:h}}=o,g=t.isNode(e)&&e.comment||null;if(h){if(g)throw Error(`With simple keys, key nodes cannot have comments`);if(t.isCollection(e)||!t.isNode(e)&&typeof e==`object`)throw Error(`With simple keys, collection cannot be used as a key value`)}let _=!h&&(!e||g&&a==null&&!o.inFlow||t.isCollection(e)||(t.isScalar(e)?e.type===n.Scalar.BLOCK_FOLDED||e.type===n.Scalar.BLOCK_LITERAL:typeof e==`object`));o=Object.assign({},o,{allNullValues:!1,implicitKey:!_&&(h||!l),indent:d+f});let v=!1,y=!1,b=r.stringify(e,o,()=>v=!0,()=>y=!0);if(!_&&!o.inFlow&&b.length>1024){if(h)throw Error(`With simple keys, single line scalar must not span more than 1024 characters`);_=!0}if(o.inFlow){if(l||a==null)return v&&s&&s(),b===``?`?`:_?`? ${b}`:b}else if(l&&!h||a==null&&_)return b=`? ${b}`,g&&!v?b+=i.lineComment(b,o.indent,p(g)):y&&c&&c(),b;v&&(g=null),_?(g&&(b+=i.lineComment(b,o.indent,p(g))),b=`? ${b}\n${d}:`):(b=`${b}:`,g&&(b+=i.lineComment(b,o.indent,p(g))));let x,S,C;t.isNode(a)?(x=!!a.spaceBefore,S=a.commentBefore,C=a.comment):(x=!1,S=null,C=null,a&&typeof a==`object`&&(a=u.createNode(a))),o.implicitKey=!1,!_&&!g&&t.isScalar(a)&&(o.indentAtStart=b.length+1),y=!1,!m&&f.length>=2&&!o.inFlow&&!_&&t.isSeq(a)&&!a.flow&&!a.tag&&!a.anchor&&(o.indent=o.indent.substring(2));let w=!1,T=r.stringify(a,o,()=>w=!0,()=>y=!0),E=` `;if(g||x||S){if(E=x?` `:``,S){let e=p(S);E+=`\n${i.indentComment(e,o.indent)}`}T===``&&!o.inFlow?E===` `&&C&&(E=` `):E+=`\n${o.indent}`}else if(!_&&t.isCollection(a)){let e=T[0],t=T.indexOf(` `),n=t!==-1,r=o.inFlow??a.flow??a.items.length===0;if(n||!r){let r=!1;if(n&&(e===`&`||e===`!`)){let n=T.indexOf(` `);e===`&`&&n!==-1&&n{var t=B(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),sk=R((e=>{var t=WO(),n=QO();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),ck=R((e=>{var t=ok(),n=sk(),r=ik(),i=WO(),a=YO();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),lk=R((e=>{var t=$O(),n=ak(),r=ck(),i=WO();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),uk=R((e=>{var t=WO(),n=ik(),r=tk();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;e{var t=V(`process`);function n(e,...t){e===`debug`&&console.log(...t)}function r(e,n){(e===`debug`||e===`warn`)&&(typeof t.emitWarning==`function`?t.emitWarning(n):console.warn(n))}e.debug=n,e.warn=r})),sk=z((e=>{var t=WO(),n=QO();let r={identify:e=>e===`<<`||typeof e==`symbol`&&e.description===`<<`,default:`key`,tag:`tag:yaml.org,2002:merge`,test:/^<<$/,resolve:()=>Object.assign(new n.Scalar(Symbol(`<<`)),{addToJSMap:a}),stringify:()=>`<<`},i=(e,i)=>(r.identify(i)||t.isScalar(i)&&(!i.type||i.type===n.Scalar.PLAIN)&&r.identify(i.value))&&e?.doc.schema.tags.some(e=>e.tag===r.tag&&e.default);function a(e,n,r){let i=s(e,r);if(t.isSeq(i))for(let t of i.items)o(e,n,t);else if(Array.isArray(i))for(let t of i)o(e,n,t);else o(e,n,i)}function o(e,n,r){let i=s(e,r);if(!t.isMap(i))throw Error(`Merge sources must be maps or map aliases`);let a=i.toJSON(null,e,Map);for(let[e,t]of a)n instanceof Map?n.has(e)||n.set(e,t):n instanceof Set?n.add(e):Object.prototype.hasOwnProperty.call(n,e)||Object.defineProperty(n,e,{value:t,writable:!0,enumerable:!0,configurable:!0});return n}function s(e,n){return e&&t.isAlias(n)?n.resolve(e.doc,e):n}e.addMergeToJSMap=a,e.isMergeKey=i,e.merge=r})),ck=z((e=>{var t=ok(),n=sk(),r=ik(),i=WO(),a=YO();function o(e,t,{key:r,value:o}){if(i.isNode(r)&&r.addToJSMap)r.addToJSMap(e,t,o);else if(n.isMergeKey(e,r))n.addMergeToJSMap(e,t,o);else{let n=a.toJS(r,``,e);if(t instanceof Map)t.set(n,a.toJS(o,n,e));else if(t instanceof Set)t.add(n);else{let i=s(r,n,e),c=a.toJS(o,i,e);i in t?Object.defineProperty(t,i,{value:c,writable:!0,enumerable:!0,configurable:!0}):t[i]=c}}return t}function s(e,n,a){if(n===null)return``;if(typeof n!=`object`)return String(n);if(i.isNode(e)&&a?.doc){let n=r.createStringifyContext(a.doc,{});n.anchors=new Set;for(let e of a.anchors.keys())n.anchors.add(e.anchor);n.inFlow=!0,n.inStringifyKey=!0;let i=e.toString(n);if(!a.mapKeyWarned){let e=JSON.stringify(i);e.length>40&&(e=e.substring(0,36)+`..."`),t.warn(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${e}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return i}return JSON.stringify(n)}e.addPairToJSMap=o})),lk=z((e=>{var t=$O(),n=ak(),r=ck(),i=WO();function a(e,n,r){return new o(t.createNode(e,void 0,r),t.createNode(n,void 0,r))}var o=class e{constructor(e,t=null){Object.defineProperty(this,i.NODE_TYPE,{value:i.PAIR}),this.key=e,this.value=t}clone(t){let{key:n,value:r}=this;return i.isNode(n)&&(n=n.clone(t)),i.isNode(r)&&(r=r.clone(t)),new e(n,r)}toJSON(e,t){let n=t?.mapAsMap?new Map:{};return r.addPairToJSMap(t,n,this)}toString(e,t,r){return e?.doc?n.stringifyPair(this,e,t,r):JSON.stringify(this)}};e.Pair=o,e.createPair=a})),uk=z((e=>{var t=WO(),n=ik(),r=tk();function i(e,t,n){return(t.inFlow??e.flow?o:a)(e,t,n)}function a({comment:e,items:i},a,{blockItemPrefix:o,flowChars:c,itemIndent:l,onChompKeep:u,onComment:d}){let{indent:f,options:{commentString:p}}=a,m=Object.assign({},a,{indent:l,type:null}),h=!1,g=[];for(let e=0;eu=null,()=>h=!0);u&&(d+=r.lineComment(d,l,p(u))),h&&u&&(h=!1),g.push(o+d)}let _;if(g.length===0)_=c.start+c.end;else{_=g[0];for(let e=1;el=null);p||=h.length>m||u.includes(` `),a0&&(p||=h.reduce((e,t)=>e+t.length+2,2)+(u.length+2)>i.options.lineWidth),p&&(u+=`,`)),l&&(u+=r.lineComment(u,o,d(l))),h.push(u),m=h.length}let{start:g,end:_}=a;if(h.length===0)return g+_;if(!p){let e=h.reduce((e,t)=>e+t.length+2,2);p=i.options.lineWidth>0&&e>i.options.lineWidth}if(p){let e=g;for(let t of h)e+=t?`\n${l}${c}${t}`:` -`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),dk=R((e=>{var t=uk(),n=ck(),r=ek(),i=WO(),a=lk(),o=QO();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),fk=R((e=>{var t=WO(),n=dk();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),pk=R((e=>{var t=$O(),n=uk(),r=ek(),i=WO(),a=QO(),o=YO(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),mk=R((e=>{var t=WO(),n=pk();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),hk=R((e=>{var t=rk();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),gk=R((e=>{var t=QO();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),_k=R((e=>{var t=QO();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),vk=R((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),yk=R((e=>{var t=QO(),n=vk();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),bk=R((e=>{var t=vk();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),xk=R((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=_k(),o=yk(),s=bk();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Sk=R((e=>{var t=QO(),n=fk(),r=mk();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),Ck=R((e=>{var t=B(`buffer`),n=QO(),r=rk();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=WO(),n=lk(),r=QO(),i=pk();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Tk=R((e=>{var t=WO(),n=YO(),r=dk(),i=pk(),a=wk(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Ek=R((e=>{var t=QO();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Dk=R((e=>{var t=QO(),n=vk();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Ok=R((e=>{var t=vk();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),kk=R((e=>{var t=WO(),n=lk(),r=dk(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),Ak=R((e=>{var t=vk();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),jk=R((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=Ck(),o=Ek(),s=Dk(),c=Ok(),l=sk(),u=Tk(),d=wk(),f=kk(),p=Ak();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),Mk=R((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=_k(),o=yk(),s=bk(),c=xk(),l=Sk(),u=Ck(),d=sk(),f=Tk(),p=wk(),m=jk(),h=kk(),g=Ak();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Nk=R((e=>{var t=WO(),n=fk(),r=mk(),i=hk(),a=Mk();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Pk=R((e=>{var t=WO(),n=ik(),r=tk();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` +`;return`${e}\n${c}${_}`}else return`${g}${u}${h.join(` `)}${u}${_}`}function s({indent:e,options:{commentString:t}},n,i,a){if(i&&a&&(i=i.replace(/^\n+/,``)),i){let a=r.indentComment(t(i),e);n.push(a.trimStart())}}e.stringifyCollection=i})),dk=z((e=>{var t=uk(),n=ck(),r=ek(),i=WO(),a=lk(),o=QO();function s(e,t){let n=i.isScalar(t)?t.value:t;for(let r of e)if(i.isPair(r)&&(r.key===t||r.key===n||i.isScalar(r.key)&&r.key.value===n))return r}e.YAMLMap=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:map`}constructor(e){super(i.MAP,e),this.items=[]}static from(e,t,n){let{keepUndefined:r,replacer:i}=n,o=new this(e),s=(e,s)=>{if(typeof i==`function`)s=i.call(t,e,s);else if(Array.isArray(i)&&!i.includes(e))return;(s!==void 0||r)&&o.items.push(a.createPair(e,s,n))};if(t instanceof Map)for(let[e,n]of t)s(e,n);else if(t&&typeof t==`object`)for(let e of Object.keys(t))s(e,t[e]);return typeof e.sortMapEntries==`function`&&o.items.sort(e.sortMapEntries),o}add(e,t){let n;n=i.isPair(e)?e:!e||typeof e!=`object`||!(`key`in e)?new a.Pair(e,e?.value):new a.Pair(e.key,e.value);let r=s(this.items,n.key),c=this.schema?.sortMapEntries;if(r){if(!t)throw Error(`Key ${n.key} already set`);i.isScalar(r.value)&&o.isScalarValue(n.value)?r.value.value=n.value:r.value=n.value}else if(c){let e=this.items.findIndex(e=>c(n,e)<0);e===-1?this.items.push(n):this.items.splice(e,0,n)}else this.items.push(n)}delete(e){let t=s(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let n=s(this.items,e)?.value;return(!t&&i.isScalar(n)?n.value:n)??void 0}has(e){return!!s(this.items,e)}set(e,t){this.add(new a.Pair(e,t),!0)}toJSON(e,t,r){let i=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(i);for(let e of this.items)n.addPairToJSMap(t,i,e);return i}toString(e,n,r){if(!e)return JSON.stringify(this);for(let e of this.items)if(!i.isPair(e))throw Error(`Map items must all be pairs; found ${JSON.stringify(e)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),t.stringifyCollection(this,e,{blockItemPrefix:``,flowChars:{start:`{`,end:`}`},itemIndent:e.indent||``,onChompKeep:r,onComment:n})}},e.findPair=s})),fk=z((e=>{var t=WO(),n=dk();e.map={collection:`map`,default:!0,nodeClass:n.YAMLMap,tag:`tag:yaml.org,2002:map`,resolve(e,n){return t.isMap(e)||n(`Expected a mapping for this tag`),e},createNode:(e,t,r)=>n.YAMLMap.from(e,t,r)}})),pk=z((e=>{var t=$O(),n=uk(),r=ek(),i=WO(),a=QO(),o=YO(),s=class extends r.Collection{static get tagName(){return`tag:yaml.org,2002:seq`}constructor(e){super(i.SEQ,e),this.items=[]}add(e){this.items.push(e)}delete(e){let t=c(e);return typeof t==`number`?this.items.splice(t,1).length>0:!1}get(e,t){let n=c(e);if(typeof n!=`number`)return;let r=this.items[n];return!t&&i.isScalar(r)?r.value:r}has(e){let t=c(e);return typeof t==`number`&&t=0?t:null}e.YAMLSeq=s})),mk=z((e=>{var t=WO(),n=pk();e.seq={collection:`seq`,default:!0,nodeClass:n.YAMLSeq,tag:`tag:yaml.org,2002:seq`,resolve(e,n){return t.isSeq(e)||n(`Expected a sequence for this tag`),e},createNode:(e,t,r)=>n.YAMLSeq.from(e,t,r)}})),hk=z((e=>{var t=rk();e.string={identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify(e,n,r,i){return n=Object.assign({actualString:!0},n),t.stringifyString(e,n,r,i)}}})),gk=z((e=>{var t=QO();let n={identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new t.Scalar(null),stringify:({source:e},t)=>typeof e==`string`&&n.test.test(e)?e:t.options.nullStr};e.nullTag=n})),_k=z((e=>{var t=QO();let n={identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new t.Scalar(e[0]===`t`||e[0]===`T`),stringify({source:e,value:t},r){return e&&n.test.test(e)&&t===(e[0]===`t`||e[0]===`T`)?e:t?r.options.trueStr:r.options.falseStr}};e.boolTag=n})),vk=z((e=>{function t({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r==`bigint`)return String(r);let i=typeof r==`number`?r:Number(r);if(!isFinite(i))return isNaN(i)?`.nan`:i<0?`-.inf`:`.inf`;let a=Object.is(r,-0)?`-0`:JSON.stringify(r);if(!e&&t&&(!n||n===`tag:yaml.org,2002:float`)&&/^-?\d/.test(a)&&!a.includes(`e`)){let e=a.indexOf(`.`);e<0&&(e=a.length,a+=`.`);let n=t-(a.length-e-1);for(;n-- >0;)a+=`0`}return a}e.stringifyNumber=t})),yk=z((e=>{var t=QO(),n=vk();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){let n=new t.Scalar(parseFloat(e)),r=e.indexOf(`.`);return r!==-1&&e[e.length-1]===`0`&&(n.minFractionDigits=e.length-r-1),n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),bk=z((e=>{var t=vk();let n=e=>typeof e==`bigint`||Number.isInteger(e),r=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function i(e,r,i){let{value:a}=e;return n(a)&&a>=0?i+a.toString(r):t.stringifyNumber(e)}e.int={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},e.intHex={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)},e.intOct={identify:e=>n(e)&&e>=0,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^0o[0-7]+$/,resolve:(e,t,n)=>r(e,2,8,n),stringify:e=>i(e,8,`0o`)}})),xk=z((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=_k(),o=yk(),s=bk();e.schema=[t.map,r.seq,i.string,n.nullTag,a.boolTag,s.intOct,s.int,s.intHex,o.floatNaN,o.floatExp,o.float]})),Sk=z((e=>{var t=QO(),n=fk(),r=mk();function i(e){return typeof e==`bigint`||Number.isInteger(e)}let a=({value:e})=>JSON.stringify(e),o=[{identify:e=>typeof e==`string`,default:!0,tag:`tag:yaml.org,2002:str`,resolve:e=>e,stringify:a},{identify:e=>e==null,createNode:()=>new t.Scalar(null),default:!0,tag:`tag:yaml.org,2002:null`,test:/^null$/,resolve:()=>null,stringify:a},{identify:e=>typeof e==`boolean`,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^true$|^false$/,resolve:e=>e===`true`,stringify:a},{identify:i,default:!0,tag:`tag:yaml.org,2002:int`,test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>i(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:a}];e.schema=[n.map,r.seq].concat(o,{default:!0,tag:``,test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}})})),Ck=z((e=>{var t=V(`buffer`),n=QO(),r=rk();e.binary={identify:e=>e instanceof Uint8Array,default:!1,tag:`tag:yaml.org,2002:binary`,resolve(e,n){if(typeof t.Buffer==`function`)return t.Buffer.from(e,`base64`);if(typeof atob==`function`){let t=atob(e.replace(/[\n\r]/g,``)),n=new Uint8Array(t.length);for(let e=0;e{var t=WO(),n=lk(),r=QO(),i=pk();function a(e,i){if(t.isSeq(e))for(let a=0;a1&&i(`Each pair must have its own sequence indicator`);let e=o.items[0]||new n.Pair(new r.Scalar(null));if(o.commentBefore&&(e.key.commentBefore=e.key.commentBefore?`${o.commentBefore}\n${e.key.commentBefore}`:o.commentBefore),o.comment){let t=e.value??e.key;t.comment=t.comment?`${o.comment}\n${t.comment}`:o.comment}o=e}e.items[a]=t.isPair(o)?o:new n.Pair(o)}}else i(`Expected a sequence for this tag`);return e}function o(e,t,r){let{replacer:a}=r,o=new i.YAMLSeq(e);o.tag=`tag:yaml.org,2002:pairs`;let s=0;if(t&&Symbol.iterator in Object(t))for(let e of t){typeof a==`function`&&(e=a.call(t,String(s++),e));let i,c;if(Array.isArray(e))if(e.length===2)i=e[0],c=e[1];else throw TypeError(`Expected [key, value] tuple: ${e}`);else if(e&&e instanceof Object){let t=Object.keys(e);if(t.length===1)i=t[0],c=e[i];else throw TypeError(`Expected tuple with one key, not ${t.length} keys`)}else i=e;o.items.push(n.createPair(i,c,r))}return o}let s={collection:`seq`,default:!1,tag:`tag:yaml.org,2002:pairs`,resolve:a,createNode:o};e.createPairs=o,e.pairs=s,e.resolvePairs=a})),Tk=z((e=>{var t=WO(),n=YO(),r=dk(),i=pk(),a=wk(),o=class e extends i.YAMLSeq{constructor(){super(),this.add=r.YAMLMap.prototype.add.bind(this),this.delete=r.YAMLMap.prototype.delete.bind(this),this.get=r.YAMLMap.prototype.get.bind(this),this.has=r.YAMLMap.prototype.has.bind(this),this.set=r.YAMLMap.prototype.set.bind(this),this.tag=e.tag}toJSON(e,r){if(!r)return super.toJSON(e);let i=new Map;r?.onCreate&&r.onCreate(i);for(let e of this.items){let a,o;if(t.isPair(e)?(a=n.toJS(e.key,``,r),o=n.toJS(e.value,a,r)):a=n.toJS(e,``,r),i.has(a))throw Error(`Ordered maps must not include duplicate keys`);i.set(a,o)}return i}static from(e,t,n){let r=a.createPairs(e,t,n),i=new this;return i.items=r.items,i}};o.tag=`tag:yaml.org,2002:omap`;let s={collection:`seq`,identify:e=>e instanceof Map,nodeClass:o,default:!1,tag:`tag:yaml.org,2002:omap`,resolve(e,n){let r=a.resolvePairs(e,n),i=[];for(let{key:e}of r.items)t.isScalar(e)&&(i.includes(e.value)?n(`Ordered maps must not include duplicate keys: ${e.value}`):i.push(e.value));return Object.assign(new o,r)},createNode:(e,t,n)=>o.from(e,t,n)};e.YAMLOMap=o,e.omap=s})),Ek=z((e=>{var t=QO();function n({value:e,source:t},n){return t&&(e?r:i).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}let r={identify:e=>e===!0,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new t.Scalar(!0),stringify:n},i={identify:e=>e===!1,default:!0,tag:`tag:yaml.org,2002:bool`,test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new t.Scalar(!1),stringify:n};e.falseTag=i,e.trueTag=r})),Dk=z((e=>{var t=QO(),n=vk();let r={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:e=>e.slice(-3).toLowerCase()===`nan`?NaN:e[0]===`-`?-1/0:1/0,stringify:n.stringifyNumber};e.float={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){let n=new t.Scalar(parseFloat(e.replace(/_/g,``))),r=e.indexOf(`.`);if(r!==-1){let t=e.substring(r+1).replace(/_/g,``);t[t.length-1]===`0`&&(n.minFractionDigits=t.length)}return n},stringify:n.stringifyNumber},e.floatExp={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`EXP`,test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,``)),stringify(e){let t=Number(e.value);return isFinite(t)?t.toExponential():n.stringifyNumber(e)}},e.floatNaN=r})),Ok=z((e=>{var t=vk();let n=e=>typeof e==`bigint`||Number.isInteger(e);function r(e,t,n,{intAsBigInt:r}){let i=e[0];if((i===`-`||i===`+`)&&(t+=1),e=e.substring(t).replace(/_/g,``),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}let t=BigInt(e);return i===`-`?BigInt(-1)*t:t}let a=parseInt(e,n);return i===`-`?-1*a:a}function i(e,r,i){let{value:a}=e;if(n(a)){let e=a.toString(r);return a<0?`-`+i+e.substr(1):i+e}return t.stringifyNumber(e)}let a={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`BIN`,test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>r(e,2,2,n),stringify:e=>i(e,2,`0b`)},o={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`OCT`,test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>r(e,1,8,n),stringify:e=>i(e,8,`0`)},s={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>r(e,0,10,n),stringify:t.stringifyNumber},c={identify:n,default:!0,tag:`tag:yaml.org,2002:int`,format:`HEX`,test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>r(e,2,16,n),stringify:e=>i(e,16,`0x`)};e.int=s,e.intBin=a,e.intHex=c,e.intOct=o})),kk=z((e=>{var t=WO(),n=lk(),r=dk(),i=class e extends r.YAMLMap{constructor(t){super(t),this.tag=e.tag}add(e){let i;i=t.isPair(e)?e:e&&typeof e==`object`&&`key`in e&&`value`in e&&e.value===null?new n.Pair(e.key,null):new n.Pair(e,null),r.findPair(this.items,i.key)||this.items.push(i)}get(e,n){let i=r.findPair(this.items,e);return!n&&t.isPair(i)?t.isScalar(i.key)?i.key.value:i.key:i}set(e,t){if(typeof t!=`boolean`)throw Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let i=r.findPair(this.items,e);i&&!t?this.items.splice(this.items.indexOf(i),1):!i&&t&&this.items.push(new n.Pair(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw Error(`Set items must all have null values`)}static from(e,t,r){let{replacer:i}=r,a=new this(e);if(t&&Symbol.iterator in Object(t))for(let e of t)typeof i==`function`&&(e=i.call(t,e,e)),a.items.push(n.createPair(e,null,r));return a}};i.tag=`tag:yaml.org,2002:set`;let a={collection:`map`,identify:e=>e instanceof Set,nodeClass:i,default:!1,tag:`tag:yaml.org,2002:set`,createNode:(e,t,n)=>i.from(e,t,n),resolve(e,n){if(t.isMap(e)){if(e.hasAllNullValues(!0))return Object.assign(new i,e);n(`Set items must all have null values`)}else n(`Expected a mapping for this tag`);return e}};e.YAMLSet=i,e.set=a})),Ak=z((e=>{var t=vk();function n(e,t){let n=e[0],r=n===`-`||n===`+`?e.substring(1):e,i=e=>t?BigInt(e):Number(e),a=r.replace(/_/g,``).split(`:`).reduce((e,t)=>e*i(60)+i(t),i(0));return n===`-`?i(-1)*a:a}function r(e){let{value:n}=e,r=e=>e;if(typeof n==`bigint`)r=e=>BigInt(e);else if(isNaN(n)||!isFinite(n))return t.stringifyNumber(e);let i=``;n<0&&(i=`-`,n*=r(-1));let a=r(60),o=[n%a];return n<60?o.unshift(0):(n=(n-o[0])/a,o.unshift(n%a),n>=60&&(n=(n-o[0])/a,o.unshift(n))),i+o.map(e=>String(e).padStart(2,`0`)).join(`:`).replace(/000000\d*$/,``)}let i={identify:e=>typeof e==`bigint`||Number.isInteger(e),default:!0,tag:`tag:yaml.org,2002:int`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:r})=>n(e,r),stringify:r},a={identify:e=>typeof e==`number`,default:!0,tag:`tag:yaml.org,2002:float`,format:`TIME`,test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>n(e,!1),stringify:r},o={identify:e=>e instanceof Date,default:!0,tag:`tag:yaml.org,2002:timestamp`,test:RegExp(`^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$`),resolve(e){let t=e.match(o.test);if(!t)throw Error(`!!timestamp expects a date, starting with yyyy-mm-dd`);let[,r,i,a,s,c,l]=t.map(Number),u=t[7]?Number((t[7]+`00`).substr(1,3)):0,d=Date.UTC(r,i-1,a,s||0,c||0,l||0,u),f=t[8];if(f&&f!==`Z`){let e=n(f,!1);Math.abs(e)<30&&(e*=60),d-=6e4*e}return new Date(d)},stringify:({value:e})=>e?.toISOString().replace(/(T00:00:00)?\.000Z$/,``)??``};e.floatTime=a,e.intTime=i,e.timestamp=o})),jk=z((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=Ck(),o=Ek(),s=Dk(),c=Ok(),l=sk(),u=Tk(),d=wk(),f=kk(),p=Ak();e.schema=[t.map,r.seq,i.string,n.nullTag,o.trueTag,o.falseTag,c.intBin,c.intOct,c.int,c.intHex,s.floatNaN,s.floatExp,s.float,a.binary,l.merge,u.omap,d.pairs,f.set,p.intTime,p.floatTime,p.timestamp]})),Mk=z((e=>{var t=fk(),n=gk(),r=mk(),i=hk(),a=_k(),o=yk(),s=bk(),c=xk(),l=Sk(),u=Ck(),d=sk(),f=Tk(),p=wk(),m=jk(),h=kk(),g=Ak();let _=new Map([[`core`,c.schema],[`failsafe`,[t.map,r.seq,i.string]],[`json`,l.schema],[`yaml11`,m.schema],[`yaml-1.1`,m.schema]]),v={binary:u.binary,bool:a.boolTag,float:o.float,floatExp:o.floatExp,floatNaN:o.floatNaN,floatTime:g.floatTime,int:s.int,intHex:s.intHex,intOct:s.intOct,intTime:g.intTime,map:t.map,merge:d.merge,null:n.nullTag,omap:f.omap,pairs:p.pairs,seq:r.seq,set:h.set,timestamp:g.timestamp},y={"tag:yaml.org,2002:binary":u.binary,"tag:yaml.org,2002:merge":d.merge,"tag:yaml.org,2002:omap":f.omap,"tag:yaml.org,2002:pairs":p.pairs,"tag:yaml.org,2002:set":h.set,"tag:yaml.org,2002:timestamp":g.timestamp};function b(e,t,n){let r=_.get(t);if(r&&!e)return n&&!r.includes(d.merge)?r.concat(d.merge):r.slice();let i=r;if(!i)if(Array.isArray(e))i=[];else{let e=Array.from(_.keys()).filter(e=>e!==`yaml11`).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown schema "${t}"; use one of ${e} or define customTags array`)}if(Array.isArray(e))for(let t of e)i=i.concat(t);else typeof e==`function`&&(i=e(i.slice()));return n&&(i=i.concat(d.merge)),i.reduce((e,t)=>{let n=typeof t==`string`?v[t]:t;if(!n){let e=JSON.stringify(t),n=Object.keys(v).map(e=>JSON.stringify(e)).join(`, `);throw Error(`Unknown custom tag ${e}; use one of ${n}`)}return e.includes(n)||e.push(n),e},[])}e.coreKnownTags=y,e.getTags=b})),Nk=z((e=>{var t=WO(),n=fk(),r=mk(),i=hk(),a=Mk();let o=(e,t)=>e.keyt.key);e.Schema=class e{constructor({compat:e,customTags:s,merge:c,resolveKnownTags:l,schema:u,sortMapEntries:d,toStringDefaults:f}){this.compat=Array.isArray(e)?a.getTags(e,`compat`):e?a.getTags(null,e):null,this.name=typeof u==`string`&&u||`core`,this.knownTags=l?a.coreKnownTags:{},this.tags=a.getTags(s,this.name,c),this.toStringOptions=f??null,Object.defineProperty(this,t.MAP,{value:n.map}),Object.defineProperty(this,t.SCALAR,{value:i.string}),Object.defineProperty(this,t.SEQ,{value:r.seq}),this.sortMapEntries=typeof d==`function`?d:d===!0?o:null}clone(){let t=Object.create(e.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}})),Pk=z((e=>{var t=WO(),n=ik(),r=tk();function i(e,i){let a=[],o=i.directives===!0;if(i.directives!==!1&&e.directives){let t=e.directives.toString(e);t?(a.push(t),o=!0):e.directives.docStart&&(o=!0)}o&&a.push(`---`);let s=n.createStringifyContext(e,i),{commentString:c}=s.options;if(e.commentBefore){a.length!==1&&a.unshift(``);let t=c(e.commentBefore);a.unshift(r.indentComment(t,``))}let l=!1,u=null;if(e.contents){if(t.isNode(e.contents)){if(e.contents.spaceBefore&&o&&a.push(``),e.contents.commentBefore){let t=c(e.contents.commentBefore);a.push(r.indentComment(t,``))}s.forceBlockIndent=!!e.comment,u=e.contents.comment}let i=u?void 0:()=>l=!0,d=n.stringify(e.contents,s,()=>u=null,i);u&&(d+=r.lineComment(d,``,c(u))),(d[0]===`|`||d[0]===`>`)&&a[a.length-1]===`---`?a[a.length-1]=`--- ${d}`:a.push(d)}else a.push(n.stringify(e.contents,s));if(e.directives?.docEnd)if(e.comment){let t=c(e.comment);t.includes(` `)?(a.push(`...`),a.push(r.indentComment(t,``))):a.push(`... ${t}`)}else a.push(`...`);else{let t=e.comment;t&&l&&(t=t.replace(/^\n+/,``)),t&&((!l||u)&&a[a.length-1]!==``&&a.push(``),a.push(r.indentComment(c(t),``)))}return a.join(` `)+` -`}e.stringifyDocument=i})),Fk=R((e=>{var t=ZO(),n=ek(),r=WO(),i=lk(),a=YO(),o=Nk(),s=Pk(),c=qO(),l=JO(),u=$O(),d=KO(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Ik=R((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… -`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Lk=R((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),Rk=R((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` -`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),zk=R((e=>{var t=Rk();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),Bk=R((e=>{var t=WO();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Vk=R((e=>{var t=lk(),n=dk(),r=Lk(),i=Rk(),a=zk(),o=Bk();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` +`}e.stringifyDocument=i})),Fk=z((e=>{var t=ZO(),n=ek(),r=WO(),i=lk(),a=YO(),o=Nk(),s=Pk(),c=qO(),l=JO(),u=$O(),d=KO(),f=class e{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,r.NODE_TYPE,{value:r.DOC});let i=null;typeof t==`function`||Array.isArray(t)?i=t:n===void 0&&t&&(n=t,t=void 0);let a=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:`warn`,prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:`1.2`},n);this.options=a;let{version:o}=a;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new d.Directives({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,i,n)}clone(){let t=Object.create(e.prototype,{[r.NODE_TYPE]:{value:r.DOC}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=r.isNode(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(e){p(this.contents)&&this.contents.add(e)}addIn(e,t){p(this.contents)&&this.contents.addIn(e,t)}createAlias(e,n){if(!e.anchor){let t=c.anchorNames(this);e.anchor=!n||t.has(n)?c.findNewAnchor(n||`a`,t):n}return new t.Alias(e.anchor)}createNode(e,t,n){let i;if(typeof t==`function`)e=t.call({"":e},``,e),i=t;else if(Array.isArray(t)){let e=t.filter(e=>typeof e==`number`||e instanceof String||e instanceof Number).map(String);e.length>0&&(t=t.concat(e)),i=t}else n===void 0&&t&&(n=t,t=void 0);let{aliasDuplicateObjects:a,anchorPrefix:o,flow:s,keepUndefined:l,onTagObj:d,tag:f}=n??{},{onAnchor:p,setAnchors:m,sourceObjects:h}=c.createNodeAnchors(this,o||`a`),g={aliasDuplicateObjects:a??!0,keepUndefined:l??!1,onAnchor:p,onTagObj:d,replacer:i,schema:this.schema,sourceObjects:h},_=u.createNode(e,f,g);return s&&r.isCollection(_)&&(_.flow=!0),m(),_}createPair(e,t,n={}){let r=this.createNode(e,null,n),a=this.createNode(t,null,n);return new i.Pair(r,a)}delete(e){return p(this.contents)?this.contents.delete(e):!1}deleteIn(e){return n.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):p(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return r.isCollection(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return n.isEmptyPath(e)?!t&&r.isScalar(this.contents)?this.contents.value:this.contents:r.isCollection(this.contents)?this.contents.getIn(e,t):void 0}has(e){return r.isCollection(this.contents)?this.contents.has(e):!1}hasIn(e){return n.isEmptyPath(e)?this.contents!==void 0:r.isCollection(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=n.collectionFromPath(this.schema,[e],t):p(this.contents)&&this.contents.set(e,t)}setIn(e,t){n.isEmptyPath(e)?this.contents=t:this.contents==null?this.contents=n.collectionFromPath(this.schema,Array.from(e),t):p(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e==`number`&&(e=String(e));let n;switch(e){case`1.1`:this.directives?this.directives.yaml.version=`1.1`:this.directives=new d.Directives({version:`1.1`}),n={resolveKnownTags:!1,schema:`yaml-1.1`};break;case`1.2`:case`next`:this.directives?this.directives.yaml.version=e:this.directives=new d.Directives({version:e}),n={resolveKnownTags:!0,schema:`core`};break;case null:this.directives&&delete this.directives,n=null;break;default:{let t=JSON.stringify(e);throw Error(`Expected '1.1', '1.2' or null as first argument, but found: ${t}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new o.Schema(Object.assign(n,t));else throw Error(`With a null YAML version, the { schema: Schema } option is required`)}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){let s={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r==`number`?r:100},c=a.toJS(this.contents,t??``,s);if(typeof i==`function`)for(let{count:e,res:t}of s.anchors.values())i(t,e);return typeof o==`function`?l.applyReviver(o,{"":c},``,c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw Error(`Document with errors cannot be stringified`);if(`indent`in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw Error(`"indent" option must be a positive integer, not ${t}`)}return s.stringifyDocument(this,e)}};function p(e){if(r.isCollection(e))return!0;throw Error(`Expected a YAML collection as document contents`)}e.Document=f})),Ik=z((e=>{var t=class extends Error{constructor(e,t,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=t}},n=class extends t{constructor(e,t,n){super(`YAMLParseError`,e,t,n)}},r=class extends t{constructor(e,t,n){super(`YAMLWarning`,e,t,n)}};e.YAMLError=t,e.YAMLParseError=n,e.YAMLWarning=r,e.prettifyError=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(e=>t.linePos(e));let{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let a=i-1,o=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,``);if(a>=60&&o.length>80){let e=Math.min(a-39,o.length-79);o=`…`+o.substring(e),a-=e-1}if(o.length>80&&(o=o.substring(0,79)+`…`),r>1&&/^ *$/.test(o.substring(0,a))){let n=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);n.length>80&&(n=n.substring(0,79)+`… +`),o=n+o}if(/[^ ]/.test(o)){let e=1,t=n.linePos[1];t?.line===r&&t.col>i&&(e=Math.max(1,Math.min(t.col-i,80-a)));let s=` `.repeat(a)+`^`.repeat(e);n.message+=`:\n\n${o}\n${s}\n`}}})),Lk=z((e=>{function t(e,{flow:t,indicator:n,next:r,offset:i,onError:a,parentIndent:o,startOnNewline:s}){let c=!1,l=s,u=s,d=``,f=``,p=!1,m=!1,h=null,g=null,_=null,v=null,y=null,b=null,x=null;for(let i of e)switch(m&&=(i.type!==`space`&&i.type!==`newline`&&i.type!==`comma`&&a(i.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),!1),h&&=(l&&i.type!==`comment`&&i.type!==`newline`&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),null),i.type){case`space`:!t&&(n!==`doc-start`||r?.type!==`flow-collection`)&&i.source.includes(` `)&&(h=i),u=!0;break;case`comment`:{u||a(i,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let e=i.source.substring(1)||` `;d?d+=f+e:d=e,f=``,l=!1;break}case`newline`:l?d?d+=i.source:(!b||n!==`seq-item-ind`)&&(c=!0):f+=i.source,l=!0,p=!0,(g||_)&&(v=i),u=!0;break;case`anchor`:g&&a(i,`MULTIPLE_ANCHORS`,`A node can have at most one anchor`),i.source.endsWith(`:`)&&a(i.offset+i.source.length-1,`BAD_ALIAS`,`Anchor ending in : is ambiguous`,!0),g=i,x??=i.offset,l=!1,u=!1,m=!0;break;case`tag`:_&&a(i,`MULTIPLE_TAGS`,`A node can have at most one tag`),_=i,x??=i.offset,l=!1,u=!1,m=!0;break;case n:(g||_)&&a(i,`BAD_PROP_ORDER`,`Anchors and tags must be after the ${i.source} indicator`),b&&a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.source} in ${t??`collection`}`),b=i,l=n===`seq-item-ind`||n===`explicit-key-ind`,u=!1;break;case`comma`:if(t){y&&a(i,`UNEXPECTED_TOKEN`,`Unexpected , in ${t}`),y=i,l=!1,u=!1;break}default:a(i,`UNEXPECTED_TOKEN`,`Unexpected ${i.type} token`),l=!1,u=!1}let S=e[e.length-1],C=S?S.offset+S.source.length:i;return m&&r&&r.type!==`space`&&r.type!==`newline`&&r.type!==`comma`&&(r.type!==`scalar`||r.source!==``)&&a(r.offset,`MISSING_CHAR`,`Tags and anchors must be separated from the next token by white space`),h&&(l&&h.indent<=o||r?.type===`block-map`||r?.type===`block-seq`)&&a(h,`TAB_AS_INDENT`,`Tabs are not allowed as indentation`),{comma:y,found:b,spaceBefore:c,comment:d,hasNewline:p,anchor:g,tag:_,newlineAfterProp:v,end:C,start:x??C}}e.resolveProps=t})),Rk=z((e=>{function t(e){if(!e)return null;switch(e.type){case`alias`:case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:if(e.source.includes(` +`))return!0;if(e.end){for(let t of e.end)if(t.type===`newline`)return!0}return!1;case`flow-collection`:for(let n of e.items){for(let e of n.start)if(e.type===`newline`)return!0;if(n.sep){for(let e of n.sep)if(e.type===`newline`)return!0}if(t(n.key)||t(n.value))return!0}return!1;default:return!0}}e.containsNewline=t})),zk=z((e=>{var t=Rk();function n(e,n,r){if(n?.type===`flow-collection`){let i=n.end[0];i.indent===e&&(i.source===`]`||i.source===`}`)&&t.containsNewline(n)&&r(i,`BAD_INDENT`,`Flow end indicator should be more indented than parent`,!0)}}e.flowIndentCheck=n})),Bk=z((e=>{var t=WO();function n(e,n,r){let{uniqueKeys:i}=e.options;if(i===!1)return!1;let a=typeof i==`function`?i:(e,n)=>e===n||t.isScalar(e)&&t.isScalar(n)&&e.value===n.value;return n.some(e=>a(e.key,r))}e.mapIncludes=n})),Vk=z((e=>{var t=lk(),n=dk(),r=Lk(),i=Rk(),a=zk(),o=Bk();let s=`All mapping items must start at the same column`;function c({composeNode:e,composeEmptyNode:c},l,u,d,f){let p=new(f?.nodeClass??n.YAMLMap)(l.schema);l.atRoot&&=!1;let m=u.offset,h=null;for(let n of u.items){let{start:f,key:g,sep:_,value:v}=n,y=r.resolveProps(f,{indicator:`explicit-key-ind`,next:g??_?.[0],offset:m,onError:d,parentIndent:u.indent,startOnNewline:!0}),b=!y.found;if(b){if(g&&(g.type===`block-seq`?d(m,`BLOCK_AS_IMPLICIT_KEY`,`A block sequence may not be used as an implicit map key`):`indent`in g&&g.indent!==u.indent&&d(m,`BAD_INDENT`,s)),!y.anchor&&!y.tag&&!_){h=y.end,y.comment&&(p.comment?p.comment+=` `+y.comment:p.comment=y.comment);continue}(y.newlineAfterProp||i.containsNewline(g))&&d(g??f[f.length-1],`MULTILINE_IMPLICIT_KEY`,`Implicit keys need to be on a single line`)}else y.found?.indent!==u.indent&&d(m,`BAD_INDENT`,s);l.atKey=!0;let x=y.end,S=g?e(l,g,y,d):c(l,x,f,null,y,d);l.schema.compat&&a.flowIndentCheck(u.indent,g,d),l.atKey=!1,o.mapIncludes(l,p.items,S)&&d(x,`DUPLICATE_KEY`,`Map keys must be unique`);let C=r.resolveProps(_??[],{indicator:`map-value-ind`,next:v,offset:S.range[2],onError:d,parentIndent:u.indent,startOnNewline:!g||g.type===`block-scalar`});if(m=C.end,C.found){b&&(v?.type===`block-map`&&!C.hasNewline&&d(m,`BLOCK_AS_IMPLICIT_KEY`,`Nested mappings are not allowed in compact mappings`),l.options.strict&&y.start{var t=pk(),n=Lk(),r=zk();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Uk=R((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Wk=R((e=>{var t=WO(),n=lk(),r=dk(),i=pk(),a=Uk(),o=Lk(),s=Rk(),c=Bk();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i{var t=pk(),n=Lk(),r=zk();function i({composeNode:e,composeEmptyNode:i},a,o,s,c){let l=new(c?.nodeClass??t.YAMLSeq)(a.schema);a.atRoot&&=!1,a.atKey&&=!1;let u=o.offset,d=null;for(let{start:t,value:c}of o.items){let f=n.resolveProps(t,{indicator:`seq-item-ind`,next:c,offset:u,onError:s,parentIndent:o.indent,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||c)c?.type===`block-seq`?s(f.end,`BAD_INDENT`,`All sequence items must start at the same column`):s(u,`MISSING_CHAR`,`Sequence item without - indicator`);else{d=f.end,f.comment&&(l.comment=f.comment);continue}let p=c?e(a,c,f,s):i(a,f.end,t,null,f,s);a.schema.compat&&r.flowIndentCheck(o.indent,c,s),u=p.range[2],l.items.push(p)}return l.range=[o.offset,u,d??u],l}e.resolveBlockSeq=i})),Uk=z((e=>{function t(e,t,n,r){let i=``;if(e){let a=!1,o=``;for(let s of e){let{source:e,type:c}=s;switch(c){case`space`:a=!0;break;case`comment`:{n&&!a&&r(s,`MISSING_CHAR`,`Comments must be separated from other tokens by white space characters`);let t=e.substring(1)||` `;i?i+=o+t:i=t,o=``;break}case`newline`:i&&(o+=e),a=!0;break;default:r(s,`UNEXPECTED_TOKEN`,`Unexpected ${c} at node end`)}t+=e.length}}return{comment:i,offset:t}}e.resolveEnd=t})),Wk=z((e=>{var t=WO(),n=lk(),r=dk(),i=pk(),a=Uk(),o=Lk(),s=Rk(),c=Bk();let l=`Block collections are not allowed within flow collections`,u=e=>e&&(e.type===`block-map`||e.type===`block-seq`);function d({composeNode:e,composeEmptyNode:d},f,p,m,h){let g=p.start.source===`{`,_=g?`flow map`:`flow sequence`,v=new(h?.nodeClass??(g?r.YAMLMap:i.YAMLSeq))(f.schema);v.flow=!0;let y=f.atRoot;y&&(f.atRoot=!1),f.atKey&&=!1;let b=p.offset+p.start.source.length;for(let i=0;i0){let e=a.resolveEnd(C,w,f.options.strict,m);e.comment&&(v.comment?v.comment+=` -`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Gk=R((e=>{var t=WO(),n=QO(),r=dk(),i=pk(),a=Vk(),o=Hk(),s=Wk();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),Kk=R((e=>{var t=QO();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` +`+e.comment:v.comment=e.comment),v.range=[p.offset,w,e.offset]}else v.range=[p.offset,w,w];return v}e.resolveFlowCollection=d})),Gk=z((e=>{var t=WO(),n=QO(),r=dk(),i=pk(),a=Vk(),o=Hk(),s=Wk();function c(e,t,n,r,i,c){let l=n.type===`block-map`?a.resolveBlockMap(e,t,n,r,c):n.type===`block-seq`?o.resolveBlockSeq(e,t,n,r,c):s.resolveFlowCollection(e,t,n,r,c),u=l.constructor;return i===`!`||i===u.tagName?(l.tag=u.tagName,l):(i&&(l.tag=i),l)}function l(e,a,o,s,l){let u=s.tag,d=u?a.directives.tagName(u.source,e=>l(u,`TAG_RESOLVE_FAILED`,e)):null;if(o.type===`block-seq`){let{anchor:e,newlineAfterProp:t}=s,n=e&&u?e.offset>u.offset?e:u:e??u;n&&(!t||t.offsete.tag===d&&e.collection===f);if(!p){let t=a.schema.knownTags[d];if(t?.collection===f)a.schema.tags.push(Object.assign({},t,{default:!1})),p=t;else return t?l(u,`BAD_COLLECTION_TYPE`,`${t.tag} used for ${f} collection, but expects ${t.collection??`scalar`}`,!0):l(u,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${d}`,!0),c(e,a,o,l,d)}let m=c(e,a,o,l,d,p),h=p.resolve?.(m,e=>l(u,`TAG_RESOLVE_FAILED`,e),a.options)??m,g=t.isNode(h)?h:new n.Scalar(h);return g.range=m.range,g.tag=d,p?.format&&(g.format=p.format),g}e.composeCollection=l})),Kk=z((e=>{var t=QO();function n(e,n,a){let o=n.offset,s=r(n,e.options.strict,a);if(!s)return{value:``,type:null,comment:``,range:[o,o,o]};let c=s.mode===`>`?t.Scalar.BLOCK_FOLDED:t.Scalar.BLOCK_LITERAL,l=n.source?i(n.source):[],u=l.length;for(let e=l.length-1;e>=0;--e){let t=l[e][1];if(t===``||t===`\r`)u=e;else break}if(u===0){let e=s.chomp===`+`&&l.length>0?` `.repeat(Math.max(1,l.length-1)):``,t=o+s.length;return n.source&&(t+=n.source.length),{value:e,type:c,comment:s.comment,range:[o,t,t]}}let d=n.indent+s.indent,f=n.offset+s.length,p=0;for(let t=0;td&&(d=n.length);else{n.length=u;--e)l[e][0].length>d&&(u=e+1);let m=``,h=``,g=!1;for(let e=0;ed||r[0]===` `?(h===` `?h=` @@ -513,7 +513,7 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `+l[e][0].slice(d);m[m.length-1]!==` `&&(m+=` `);break;default:m+=` -`}let _=o+s.length+n.source.length;return{value:m,type:c,comment:s.comment,range:[o,_,_]}}function r({offset:e,props:t},n,r){if(t[0].type!==`block-scalar-header`)return r(t[0],`IMPOSSIBLE`,`Block scalar header not found`),null;let{source:i}=t[0],a=i[0],o=0,s=``,c=-1;for(let t=1;t{var t=QO(),n=Uk();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=QO(),n=Uk();function r(e,r,o){let{offset:c,type:l,source:u,end:d}=e,f,p,m=(e,t,n)=>o(c+e,t,n);switch(l){case`scalar`:f=t.Scalar.PLAIN,p=i(u,m);break;case`single-quoted-scalar`:f=t.Scalar.QUOTE_SINGLE,p=a(u,m);break;case`double-quoted-scalar`:f=t.Scalar.QUOTE_DOUBLE,p=s(u,m);break;default:return o(e,`UNEXPECTED_TOKEN`,`Expected a flow scalar value, but found: ${l}`),{value:``,type:null,comment:``,range:[c,c+u.length,c+u.length]}}let h=c+u.length,g=n.resolveEnd(d,h,r,o);return{value:p,type:f,comment:g.comment,range:[c,h,g.offset]}}function i(e,t){let n=``;switch(e[0]){case` `:n=`a tab character`;break;case`,`:n=`flow indicator character ,`;break;case`%`:n=`directive indicator character %`;break;case`|`:case`>`:n=`block scalar indicator ${e[0]}`;break;case`@`:case"`":n=`reserved character ${e[0]}`;break}return n&&t(0,`BAD_SCALAR_START`,`Plain value cannot start with ${n}`),o(e)}function a(e,t){return(e[e.length-1]!==`'`||e.length===1)&&t(e.length,`MISSING_CHAR`,`Missing closing 'quote`),o(e.slice(1,-1)).replace(/''/g,`'`)}function o(e){let t,n;try{t=RegExp(`(.*?)(?{var t=WO(),n=QO(),r=Kk(),i=qk();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Yk=R((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Xk=R((e=>{var t=ZO(),n=WO(),r=Gk(),i=Jk(),a=Uk(),o=Yk();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Zk=R((e=>{var t=Fk(),n=Xk(),r=Uk(),i=Lk();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),Qk=R((e=>{var t=B(`process`),n=KO(),r=Fk(),i=Ik(),a=WO(),o=Zk(),s=Uk();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{var t=WO(),n=QO(),r=Kk(),i=qk();function a(e,a,c,l){let{value:u,type:d,comment:f,range:p}=a.type===`block-scalar`?r.resolveBlockScalar(e,a,l):i.resolveFlowScalar(a,e.options.strict,l),m=c?e.directives.tagName(c.source,e=>l(c,`TAG_RESOLVE_FAILED`,e)):null,h;h=e.options.stringKeys&&e.atKey?e.schema[t.SCALAR]:m?o(e.schema,u,m,c,l):a.type===`scalar`?s(e,u,a,l):e.schema[t.SCALAR];let g;try{let r=h.resolve(u,e=>l(c??a,`TAG_RESOLVE_FAILED`,e),e.options);g=t.isScalar(r)?r:new n.Scalar(r)}catch(e){let t=e instanceof Error?e.message:String(e);l(c??a,`TAG_RESOLVE_FAILED`,t),g=new n.Scalar(u)}return g.range=p,g.source=u,d&&(g.type=d),m&&(g.tag=m),h.format&&(g.format=h.format),f&&(g.comment=f),g}function o(e,n,r,i,a){if(r===`!`)return e[t.SCALAR];let o=[];for(let t of e.tags)if(!t.collection&&t.tag===r)if(t.default&&t.test)o.push(t);else return t;for(let e of o)if(e.test?.test(n))return e;let s=e.knownTags[r];return s&&!s.collection?(e.tags.push(Object.assign({},s,{default:!1,test:void 0})),s):(a(i,`TAG_RESOLVE_FAILED`,`Unresolved tag: ${r}`,r!==`tag:yaml.org,2002:str`),e[t.SCALAR])}function s({atKey:e,directives:n,schema:r},i,a,o){let s=r.tags.find(t=>(t.default===!0||e&&t.default===`key`)&&t.test?.test(i))||r[t.SCALAR];if(r.compat){let e=r.compat.find(e=>e.default&&e.test?.test(i))??r[t.SCALAR];s.tag!==e.tag&&o(a,`TAG_RESOLVE_FAILED`,`Value may be parsed as either ${n.tagString(s.tag)} or ${n.tagString(e.tag)}`,!0)}return s}e.composeScalar=a})),Yk=z((e=>{function t(e,t,n){if(t){n??=t.length;for(let r=n-1;r>=0;--r){let n=t[r];switch(n.type){case`space`:case`comment`:case`newline`:e-=n.source.length;continue}for(n=t[++r];n?.type===`space`;)e+=n.source.length,n=t[++r];break}}return e}e.emptyScalarPosition=t})),Xk=z((e=>{var t=ZO(),n=WO(),r=Gk(),i=Jk(),a=Uk(),o=Yk();let s={composeNode:c,composeEmptyNode:l};function c(e,t,a,o){let c=e.atKey,{spaceBefore:d,comment:f,anchor:p,tag:m}=a,h,g=!0;switch(t.type){case`alias`:h=u(e,t,o),(p||m)&&o(t,`ALIAS_PROPS`,`An alias node must not specify any properties`);break;case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:case`block-scalar`:h=i.composeScalar(e,t,m,o),p&&(h.anchor=p.source.substring(1));break;case`block-map`:case`block-seq`:case`flow-collection`:try{h=r.composeCollection(s,e,t,a,o),p&&(h.anchor=p.source.substring(1))}catch(e){o(t,`RESOURCE_EXHAUSTION`,e instanceof Error?e.message:String(e))}break;default:o(t,`UNEXPECTED_TOKEN`,t.type===`error`?t.message:`Unsupported token (type: ${t.type})`),g=!1}return h??=l(e,t.offset,void 0,null,a,o),p&&h.anchor===``&&o(p,`BAD_ALIAS`,`Anchor cannot be an empty string`),c&&e.options.stringKeys&&(!n.isScalar(h)||typeof h.value!=`string`||h.tag&&h.tag!==`tag:yaml.org,2002:str`)&&o(m??t,`NON_STRING_KEY`,`With stringKeys, all keys must be strings`),d&&(h.spaceBefore=!0),f&&(t.type===`scalar`&&t.source===``?h.comment=f:h.commentBefore=f),e.options.keepSourceTokens&&g&&(h.srcToken=t),h}function l(e,t,n,r,{spaceBefore:a,comment:s,anchor:c,tag:l,end:u},d){let f={type:`scalar`,offset:o.emptyScalarPosition(t,n,r),indent:-1,source:``},p=i.composeScalar(e,f,l,d);return c&&(p.anchor=c.source.substring(1),p.anchor===``&&d(c,`BAD_ALIAS`,`Anchor cannot be an empty string`)),a&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function u({options:e},{offset:n,source:r,end:i},o){let s=new t.Alias(r.substring(1));s.source===``&&o(n,`BAD_ALIAS`,`Alias cannot be an empty string`),s.source.endsWith(`:`)&&o(n+r.length-1,`BAD_ALIAS`,`Alias ending in : is ambiguous`,!0);let c=n+r.length,l=a.resolveEnd(i,c,e.strict,o);return s.range=[n,c,l.offset],l.comment&&(s.comment=l.comment),s}e.composeEmptyNode=l,e.composeNode=c})),Zk=z((e=>{var t=Fk(),n=Xk(),r=Uk(),i=Lk();function a(e,a,{offset:o,start:s,value:c,end:l},u){let d=Object.assign({_directives:a},e),f=new t.Document(void 0,d),p={atKey:!1,atRoot:!0,directives:f.directives,options:f.options,schema:f.schema},m=i.resolveProps(s,{indicator:`doc-start`,next:c??l?.[0],offset:o,onError:u,parentIndent:0,startOnNewline:!0});m.found&&(f.directives.docStart=!0,c&&(c.type===`block-map`||c.type===`block-seq`)&&!m.hasNewline&&u(m.end,`MISSING_CHAR`,`Block collection cannot start on same line with directives-end marker`)),f.contents=c?n.composeNode(p,c,m,u):n.composeEmptyNode(p,m.end,s,null,m,u);let h=f.contents.range[2],g=r.resolveEnd(l,h,!1,u);return g.comment&&(f.comment=g.comment),f.range=[o,h,g.offset],f}e.composeDoc=a})),Qk=z((e=>{var t=V(`process`),n=KO(),r=Fk(),i=Ik(),a=WO(),o=Zk(),s=Uk();function c(e){if(typeof e==`number`)return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];let{offset:t,source:n}=e;return[t,t+(typeof n==`string`?n.length:1)]}function l(e){let t=``,n=!1,r=!1;for(let i=0;i{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),$k=R((e=>{var t=Kk(),n=qk(),r=Ik(),i=rk();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` +`)+(a.substring(1)||` `),n=!0,r=!1;break;case`%`:e[i+1]?.[0]!==`#`&&(i+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}e.Composer=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(e,t,n,r)=>{let a=c(e);r?this.warnings.push(new i.YAMLWarning(a,t,n)):this.errors.push(new i.YAMLParseError(a,t,n))},this.directives=new n.Directives({version:e.version||`1.2`}),this.options=e}decorate(e,t){let{comment:n,afterEmptyLine:r}=l(this.prelude);if(n){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}\n${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(a.isCollection(i)&&!i.flow&&i.items.length>0){let e=i.items[0];a.isPair(e)&&(e=e.key);let t=e.commentBefore;e.commentBefore=t?`${n}\n${t}`:n}else{let e=i.commentBefore;i.commentBefore=e?`${n}\n${e}`:n}}if(t){for(let t=0;t{let i=c(e);i[0]+=t,this.onError(i,`BAD_DIRECTIVE`,n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case`document`:{let t=o.composeDoc(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,`MISSING_CHAR`,`Missing directives-end/doc-start indicator line`),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case`byte-order-mark`:case`space`:break;case`comment`:case`newline`:this.prelude.push(e.source);break;case`error`:{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case`doc-end`:{if(!this.doc){this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unexpected doc-end without preceding document`));break}this.doc.directives.docEnd=!0;let t=s.resolveEnd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let e=this.doc.comment;this.doc.comment=e?`${e}\n${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new i.YAMLParseError(c(e),`UNEXPECTED_TOKEN`,`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let e=Object.assign({_directives:this.directives},this.options),n=new r.Document(void 0,e);this.atDirectives&&this.onError(t,`MISSING_CHAR`,`Missing directives-end indicator line`),n.range=[0,t,t],this.decorate(n,!1),yield n}}}})),$k=z((e=>{var t=Kk(),n=qk(),r=Ik(),i=rk();function a(e,i=!0,a){if(e){let o=(e,t,n)=>{let i=typeof e==`number`?e:Array.isArray(e)?e[0]:e.offset;if(a)a(i,t,n);else throw new r.YAMLParseError([i,i+1],t,n)};switch(e.type){case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return n.resolveFlowScalar(e,i,o);case`block-scalar`:return t.resolveBlockScalar({options:{strict:i}},e,o)}}return null}function o(e,t){let{implicitKey:n=!1,indent:r,inFlow:a=!1,offset:o=-1,type:s=`PLAIN`}=t,c=i.stringifyString({type:s,value:e},{implicitKey:n,indent:r>0?` `.repeat(r):``,inFlow:a,options:{blockQuote:!0,lineWidth:-1}}),u=t.end??[{type:`newline`,offset:-1,indent:r,source:` `}];switch(c[0]){case`|`:case`>`:{let e=c.indexOf(` `),t=c.substring(0,e),n=c.substring(e+1)+` `,i=[{type:`block-scalar-header`,offset:o,indent:r,source:t}];return l(i,u)||i.push({type:`newline`,offset:-1,indent:r,source:` @@ -539,9 +539,9 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `),r=t.substring(0,n),i=t.substring(n+1)+` `;if(e.type===`block-scalar`){let t=e.props[0];if(t.type!==`block-scalar-header`)throw Error(`Invalid block scalar header`);t.source=r,e.source=i}else{let{offset:t}=e,n=`indent`in e?e.indent:-1,a=[{type:`block-scalar-header`,offset:t,indent:n,source:r}];l(a,`end`in e?e.end:void 0)||a.push({type:`newline`,offset:-1,indent:n,source:` `});for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:`block-scalar`,indent:n,props:a,source:i})}}function l(e,t){if(t)for(let n of t)switch(n.type){case`space`:case`comment`:e.push(n);break;case`newline`:return e.push(n),!0}return!1}function u(e,t,n){switch(e.type){case`scalar`:case`double-quoted-scalar`:case`single-quoted-scalar`:e.type=n,e.source=t;break;case`block-scalar`:{let r=e.props.slice(1),i=t.length;e.props[0].type===`block-scalar-header`&&(i-=e.props[0].source.length);for(let e of r)e.offset+=i;delete e.props,Object.assign(e,{type:n,source:t,end:r});break}case`block-map`:case`block-seq`:{let r={type:`newline`,offset:e.offset+t.length,indent:e.indent,source:` -`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),eA=R((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),tA=R((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=$k(),n=eA(),r=tA();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` +`};delete e.items,Object.assign(e,{type:n,source:t,end:[r]});break}default:{let r=`indent`in e?e.indent:-1,i=`end`in e&&Array.isArray(e.end)?e.end.filter(e=>e.type===`space`||e.type===`comment`||e.type===`newline`):[];for(let t of Object.keys(e))t!==`type`&&t!==`offset`&&delete e[t];Object.assign(e,{type:n,indent:r,source:t,end:i})}}}e.createScalarToken=o,e.resolveAsScalar=a,e.setScalarValue=s})),eA=z((e=>{let t=e=>`type`in e?n(e):r(e);function n(e){switch(e.type){case`block-scalar`:{let t=``;for(let r of e.props)t+=n(r);return t+e.source}case`block-map`:case`block-seq`:{let t=``;for(let n of e.items)t+=r(n);return t}case`flow-collection`:{let t=e.start.source;for(let n of e.items)t+=r(n);for(let n of e.end)t+=n.source;return t}case`document`:{let t=r(e);if(e.end)for(let n of e.end)t+=n.source;return t}default:{let t=e.source;if(`end`in e&&e.end)for(let n of e.end)t+=n.source;return t}}}function r({start:e,key:t,sep:r,value:i}){let a=``;for(let t of e)a+=t.source;if(t&&(a+=n(t)),r)for(let e of r)a+=e.source;return i&&(a+=n(i)),a}e.stringify=t})),tA=z((e=>{let t=Symbol(`break visit`),n=Symbol(`skip children`),r=Symbol(`remove item`);function i(e,t){`type`in e&&e.type===`document`&&(e={start:e.start,value:e.value}),a(Object.freeze([]),e,t)}i.BREAK=t,i.SKIP=n,i.REMOVE=r,i.itemAtPath=(e,t)=>{let n=e;for(let[e,r]of t){let t=n?.[e];if(t&&`items`in t)n=t.items[r];else return}return n},i.parentCollection=(e,t)=>{let n=i.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],a=n?.[r];if(a&&`items`in a)return a;throw Error(`Parent collection not found`)};function a(e,n,i){let o=i(n,e);if(typeof o==`symbol`)return o;for(let s of[`key`,`value`]){let c=n[s];if(c&&`items`in c){for(let n=0;n{var t=$k(),n=eA(),r=tA();let i=e=>!!e&&`items`in e,a=e=>!!e&&(e.type===`scalar`||e.type===`single-quoted-scalar`||e.type===`double-quoted-scalar`||e.type===`block-scalar`);function o(e){switch(e){case``:return``;case``:return``;case``:return``;case``:return``;default:return JSON.stringify(e)}}function s(e){switch(e){case``:return`byte-order-mark`;case``:return`doc-mode`;case``:return`flow-error-end`;case``:return`scalar`;case`---`:return`doc-start`;case`...`:return`doc-end`;case``:case` `:case`\r -`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),rA=R((e=>{var t=nA();function n(e){switch(e){case void 0:case` `:case` +`:return`newline`;case`-`:return`seq-item-ind`;case`?`:return`explicit-key-ind`;case`:`:return`map-value-ind`;case`{`:return`flow-map-start`;case`}`:return`flow-map-end`;case`[`:return`flow-seq-start`;case`]`:return`flow-seq-end`;case`,`:return`comma`}switch(e[0]){case` `:case` `:return`space`;case`#`:return`comment`;case`%`:return`directive-line`;case`*`:return`alias`;case`&`:return`anchor`;case`!`:return`tag`;case`'`:return`single-quoted-scalar`;case`"`:return`double-quoted-scalar`;case`|`:case`>`:return`block-scalar-header`}return null}e.createScalarToken=t.createScalarToken,e.resolveAsScalar=t.resolveAsScalar,e.setScalarValue=t.setScalarValue,e.stringify=n.stringify,e.visit=r.visit,e.BOM=``,e.DOCUMENT=``,e.FLOW_END=``,e.SCALAR=``,e.isCollection=i,e.isScalar=a,e.prettyToken=o,e.tokenType=s})),rA=z((e=>{var t=nA();function n(e){switch(e){case void 0:case` `:case` `:case`\r`:case` `:return!0;default:return!1}}let r=new Set(`0123456789ABCDEFabcdef`),i=new Set(`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()`),a=new Set(`,[]{}`),o=new Set(` ,[]{} \r `),s=e=>!e||o.has(e);e.Lexer=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer=``,this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){if(e){if(typeof e!=`string`)throw TypeError(`source is not a string`);this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!t;let n=this.next??`stream`;for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===` `||t===` `;)t=this.buffer[++e];return!t||t===`#`||t===` `?!0:t===`\r`?this.buffer[e+1]===` @@ -560,9 +560,10 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `,t=this.buffer[i+1]):r=i),t===`#`||e&&a.has(t))break;if(o===` `){let e=this.continueScalar(i+1);if(e===-1)break;i=Math.max(i,e-2)}}else{if(e&&a.has(o))break;r=i}return!o&&!this.atEnd?this.setNext(`plain-scalar`):(yield t.SCALAR,yield*this.pushToIndex(r+1,!0),e?`flow`:`doc`)}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield``),0)}*pushIndicators(){let e=0;loop:for(;;){switch(this.charAt(0)){case`!`:e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue loop;case`&`:e+=yield*this.pushUntil(s),e+=yield*this.pushSpaces(!0);continue loop;case`-`:case`?`:case`:`:{let t=this.flowLevel>0,r=this.charAt(1);if(n(r)||t&&a.has(r)){t?this.flowKey&&=!1:this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue loop}}}break loop}return e}*pushTag(){if(this.charAt(1)===`<`){let e=this.pos+2,t=this.buffer[e];for(;!n(t)&&t!==`>`;)t=this.buffer[++e];return yield*this.pushToIndex(t===`>`?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(i.has(t))t=this.buffer[++e];else if(t===`%`&&r.has(this.buffer[e+1])&&r.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===` `?yield*this.pushCount(1):e===`\r`&&this.charAt(1)===` -`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===` `||e&&n===` `);let r=t-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),iA=R((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=B(`process`),n=nA(),r=rA();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent0&&(yield this.buffer.substr(this.pos,r),this.pos=t),r}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}})),iA=z((e=>{e.LineCounter=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t>1;this.lineStarts[r]{var t=V(`process`),n=nA(),r=rA();function i(e,t){for(let n=0;n=0;)switch(e[t].type){case`doc-start`:case`explicit-key-ind`:case`map-value-ind`:case`seq-item-ind`:case`newline`:break loop}for(;e[++t]?.type===`space`;);return e.splice(t,e.length)}function l(e,t){if(t.length<1e5)Array.prototype.push.apply(e,t);else for(let n=0;n0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type===`doc-end`&&e?.type!==`doc-end`){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:`doc-end`,offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case`document`:return yield*this.document(e);case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return yield*this.scalar(e);case`block-scalar`:return yield*this.blockScalar(e);case`block-map`:return yield*this.blockMap(e);case`block-seq`:return yield*this.blockSequence(e);case`flow-collection`:return yield*this.flowCollection(e);case`doc-end`:return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield{type:`error`,offset:this.offset,source:``,message:`Tried to pop an empty stack`};else if(this.stack.length===0)yield t;else{let e=this.peek(1);switch(t.type===`block-scalar`?t.indent=`indent`in e?e.indent:0:t.type===`flow-collection`&&e.type===`document`&&(t.indent=0),t.type===`flow-collection`&&u(t),e.type){case`document`:e.value=t;break;case`block-scalar`:e.props.push(t);break;case`block-map`:{let n=e.items[e.items.length-1];if(n.value){e.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(n.sep)n.value=t;else{Object.assign(n,{key:t,sep:[]}),this.onKeyLine=!n.explicitKey;return}break}case`block-seq`:{let n=e.items[e.items.length-1];n.value?e.items.push({start:[],value:t}):n.value=t;break}case`flow-collection`:{let n=e.items[e.items.length-1];!n||n.value?e.items.push({start:[],key:t,sep:[]}):n.sep?n.value=t:Object.assign(n,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((e.type===`document`||e.type===`block-map`||e.type===`block-seq`)&&(t.type===`block-map`||t.type===`block-seq`)){let n=t.items[t.items.length-1];n&&!n.sep&&!n.value&&n.start.length>0&&a(n.start)===-1&&(t.indent===0||n.start.every(e=>e.type!==`comment`||e.indent=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` -`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=R((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=R((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=z(UO(),1),uA=z(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=I.join(`C:`,`msys64`),vA=fA===`windows`?I.join(`C:`,`.opam`):I.join(te.homedir(),`.opam`),yA=I.join(vA,`.cygwin`,`root`),bA=I.join(yA,`bin`),xA=I.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?I.join(e,`dune`):fA===`windows`?I.join(`C:`,`dune`):I.join(te.homedir(),`.cache`,`dune`)})(),CA=Or(`ocaml-compiler`,{required:!0}),wA=kr(`save-opam-post-run`),TA=(()=>{let e=uA.parse(Or(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),EA=kr(`opam-pin`),DA=Or(`opam-local-packages`),OA=fA!==`windows`&&kr(`opam-disable-sandboxing`),kA=kr(`dune-cache`),AA=Or(`cache-prefix`),jA=(()=>{let e=Or(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),MA=(()=>{let e=Or(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),NA=kr(`allow-prerelease-opam`),PA=Or(`github-token`);var FA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},IA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return FA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},LA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},RA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function zA(e,t,n,r){return LA(this,void 0,void 0,function*(){return t||=p.join(YA(),o.randomUUID()),yield lr(p.dirname(t)),H(`Downloading ${e}`),H(`Destination ${t}`),yield new IA(3,XA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),XA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>LA(this,void 0,void 0,function*(){return yield BA(e,t||``,n,r)}),e=>!(e instanceof RA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function BA(e,t,n,r){return LA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new jn(`actions/tool-cache`,[],{allowRetries:!1});n&&(H(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new RA(a.message.statusCode);throw H(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(re.pipeline),c=XA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),H(`download complete`),l=!0,t}finally{if(!l){H(`download failed`);try{yield cr(t)}catch(e){H(`Failed to delete '${t}'. ${e.message}`)}}}})}function VA(e,t,n,i,a){return LA(this,void 0,void 0,function*(){if(i=oa.clean(i)||i,a||=r.arch(),H(`Caching tool ${n} ${i} ${a}`),H(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield WA(n,i,a),c=p.join(o,t);return H(`destination file ${c}`),yield sr(e,c),GA(n,i,a),o})}function HA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),KA(t)||(t=qA(UA(e,n),t));let i=``;if(t){t=oa.clean(t)||``;let r=p.join(JA(),e,t,n);H(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(H(`Found tool in cache ${e} ${t} ${n}`),i=r):H(`not found`)}return i}function UA(e,t){let n=[];t||=r.arch();let i=p.join(JA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(KA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function WA(e,t,n){return LA(this,void 0,void 0,function*(){let r=p.join(JA(),e,oa.clean(t)||t,n||``);H(`destination ${r}`);let i=`${r}.complete`;return yield cr(r),yield cr(i),yield lr(r),r})}function GA(e,t,n){let r=`${p.join(JA(),e,oa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),H(`finished caching tool`)}function KA(e){let t=oa.clean(e)||``;H(`isExplicit: ${t}`);let n=oa.valid(t)!=null;return H(`explicit? ${n}`),n}function qA(e,t){let n=``;H(`evaluating ${e.length} versions`),e=e.sort((e,t)=>oa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(oa.satisfies(i,t)){n=i;break}}return H(n?`matched: ${n}`:`match not found`),n}function JA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function YA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function XA(e,t){let n=global[e];return n===void 0?t:n}var ZA=z(R(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=R,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,ee,te,ne=n;te=i,ee=(function(){class e{constructor(e={}){this.options=e,ne.load(this.options,this.defaults,this),this.Events=new te(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var F=ee,re=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),ie=t(w),I,ae,oe,se,ce,le,L,ue,de,fe,pe,me=[].splice;le=10,ae=5,pe=n,L=s,se=m,ce=v,ue=re,oe=i,de=b,fe=S,I=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),pe.load(t,this.instanceDefaults,this),this._queues=new L(le),this._scheduled={},this._states=new de([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new oe(this),this._submitLock=new fe(`submit`,this.Promise),this._registerLock=new fe(`register`,this.Promise),i=pe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=pe.load(t,this.redisStoreDefaults,{}),new ue(this,i,r);if(this.datastore===`local`)return r=pe.load(t,this.localStoreDefaults,{}),new ce(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=pe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:le-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=me.call(e,-1),i=pe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=me.call(e,-1),i=pe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new se(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new se(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(pe.overwrite(e,this.storeDefaults)),pe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=oe,e.version=e.prototype.version=ie.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=F,e.prototype.jobDefaults={priority:ae,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var R=I;return R}))}))(),1),QA=`0.0.0-development`;function $A(e){return e.request!==void 0}async function ej(e,t,n,r){if(!$A(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function tj(e,t,n,r){let i=new ZA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(nj.bind(null,e,t,n),r)}async function nj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?ej(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function rj(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,ej.bind(null,n,r)),e.hook.wrap(`request`,tj.bind(null,n,r))),r}rj.VERSION=QA;const ij=dO(PA,void 0,rj);async function aj(e){let t=null;return t=pA===`alpine`?await Sr(`apk`,[`search`,`--exact`,e]):await Sr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function oj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await aj(n)&&t.push(n);return t}default:return[]}}async function sj(){let e=!1;try{await le.access(`/.dockerenv`,le.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function cj(){try{await xr(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Pr(e.message)}try{await xr(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Pr(e.message)}}async function lj(){if(!await sj())switch(fA){case`linux`:await cj(),await xr(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await oj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await xr(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function uj(){let e=[`make`,`tar`,`unzip`,`rsync`];MA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await xr(I.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function dj(){if(!await sj())switch(fA){case`linux`:await xr(`sudo`,[`apt-get`,`update`]);break;case`macos`:await xr(`brew`,[`update`])}}const fj=(async()=>{let e=NA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await ij.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>oa.satisfies(t.tag_name,e,{includePrerelease:NA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>oa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function pj(){await Lr(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await fj,n=HA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await zA(t);Pr(`Downloaded opam ${e} from ${t}`);let i=await VA(n,r,`opam`,e,dA);Pr(`Successfully cached opam to ${i}`),await ee.chmod(I.join(i,r),493),Dr(i),Pr(`Added opam to the path`)}else Dr(n),Pr(`Added cached opam to the path`)})}async function mj(){await Lr(`Initialising opam state`,async()=>{if(fA===`windows`&&jA===`msys2`&&await uj(),fA!==`windows`)try{await lj()}catch(e){e instanceof Error&&Nr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await dj(),await lj()}let e=[];fA===`windows`&&(jA===`msys2`&&e.push(`--cygwin-location=${_A}`),jA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),OA&&e.push(`--disable-sandboxing`),await xr(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function hj(){await pj(),await mj()}async function gj(e){await Lr(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&MA===`msvc`&&t.push(`system-msvc`),await xr(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function _j(e){e.length!==0&&await Lr(`Pinning local packages`,async()=>{for(let t of e){let e=I.basename(t,`.opam`),n=I.dirname(t);await xr(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function vj(e,t){await xr(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function yj(e){await Lr(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await vj(t,n)})}async function bj(e){await xr(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function xj(){let e=await Sr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` -`).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Sj(){await Lr(`Removing opam repositories`,async()=>{let e=await xj();for(let t of e)await bj(t)})}async function Cj(){try{await Lr(`Updating opam repositories`,async()=>{await xr(`opam`,[`update`])})}catch(e){e instanceof Error&&Nr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function wj(e){return oa.validRange(e,{loose:!0})!==null}function Tj(e){let t=I.basename(e).replace(`ocaml-base-compiler.`,``),n=oa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Ej(){let{data:e}=await ij.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Tj(e)).filter(e=>e!==void 0)):new Map}async function Dj(e){let t=await Ej(),n=t.keys().toArray(),r=oa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=oa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const Oj=(async()=>{let e=CA.replace(`~`,`-`);return wj(e)?`ocaml-base-compiler.${await Dj(e)}`:CA})();async function kj(){let{workflow:e,job:t,runId:n}=uO,r=[await Oj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${AA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${AA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${AA}-setup-ocaml-dune-${fA}-${dA}-`];return H(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Aj(){let{stdout:e}=await Sr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function jj(){let{version:e}=await fj,t=OA?`nosandbox`:`sandbox`,n=await Oj,r=TA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(jA),i.push(MA),MA===`msvc`)){let e=await Aj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${AA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return H(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Mj(){return[SA]}function Nj(){let e=[vA,I.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(jA===`msys2`){let n=I.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(jA===`cygwin`){let n=I.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function Pj(e,t,n,r){if(!QT()){Pr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Pr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Pr(e.message),Nr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Fj(e,t){if(!QT()){Pr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Pr(e.message),Nr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Ij(){return await Lr(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await kj();return await Pj(e,t,Mj())})}async function Lj(){return await Lr(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await jj();return await Pj(e,t,Nj())})}async function Rj(){await Lr(`Saving dune cache`,async()=>{let{key:e}=await kj();await Fj(e,Mj())})}async function zj(){await Lr(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await jj(),n=Nj();await Pj(e,t,n,{lookupOnly:!0})?Pr(`Cache entry with the same key, version, and scope already exists`):(await xr(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Fj(e,n))})}export{Dr as C,Lr as D,Tr as E,Ar as O,jA as S,jr as T,EA as _,Oj as a,fA as b,yj as c,Cj as d,xA as f,DA as g,SA as h,zj as i,xr as k,Sj as l,kA as m,Lj as n,gj as o,bA as p,Rj as r,_j as s,Ij as t,hj as u,TA as v,H as w,wA as x,vA as y}; \ No newline at end of file +`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`C:`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` +`).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Cj(){await Ir(`Removing opam repositories`,async()=>{let e=await Sj();for(let t of e)await xj(t)})}async function wj(){try{await Ir(`Updating opam repositories`,async()=>{await br(`opam`,[`update`])})}catch(e){e instanceof Error&&Mr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function Tj(e){return aa.validRange(e,{loose:!0})!==null}function Ej(e){let t=L.basename(e).replace(`ocaml-base-compiler.`,``),n=aa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Dj(){let{data:e}=await aj.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Ej(e)).filter(e=>e!==void 0)):new Map}async function Oj(e){let t=await Dj(),n=t.keys().toArray(),r=aa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=aa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const kj=(async()=>{let e=wA.replace(`~`,`-`);return Tj(e)?`ocaml-base-compiler.${await Oj(e)}`:wA})();async function Aj(e){let t=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.txt`);await F.writeFile(t,`${e.join(` +`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await F.mkdir(SA,{recursive:!0}),await Aj([`create vdisk file="${CA}" maximum=51200 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign mount="${SA}"`])}async function Mj(){await F.mkdir(SA,{recursive:!0}),await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign mount="${SA}"`])}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file diff --git a/packages/setup-ocaml/src/cache.ts b/packages/setup-ocaml/src/cache.ts index f220e0b0..09627a6a 100644 --- a/packages/setup-ocaml/src/cache.ts +++ b/packages/setup-ocaml/src/cache.ts @@ -11,6 +11,7 @@ import { ARCHITECTURE, CACHE_PREFIX, DUNE_CACHE_ROOT, + DUNE_CACHE_VHDX_PATH, GITHUB_WORKSPACE, OPAM_DISABLE_SANDBOXING, OPAM_REPOSITORIES, @@ -21,6 +22,7 @@ import { } from "./constants.js"; import { latestOpamRelease } from "./opam.js"; import { resolvedCompiler } from "./version.js"; +import { attachDuneCacheVhdx, createDuneCacheVhdx, detachDuneCacheVhdx } from "./vhdx.js"; async function composeDuneCacheKeys() { const { workflow, job, runId } = github.context; @@ -79,6 +81,10 @@ async function composeOpamCacheKeys() { } function composeDuneCachePaths() { + // On Windows we cache the single VHDX image, not the unpacked cache tree. + if (PLATFORM === "windows") { + return [DUNE_CACHE_VHDX_PATH]; + } return [DUNE_CACHE_ROOT]; } @@ -165,6 +171,15 @@ export async function restoreDuneCache() { const { key, restoreKeys } = await composeDuneCacheKeys(); const paths = composeDuneCachePaths(); const cacheKey = await restoreCache(key, restoreKeys, paths); + if (PLATFORM === "windows") { + // The cache holds a single VHDX image. Make its contents available by + // attaching the restored image, or by creating a fresh one on a miss. + if (cacheKey) { + await attachDuneCacheVhdx(); + } else { + await createDuneCacheVhdx(); + } + } return cacheKey; }); } @@ -181,6 +196,10 @@ export async function saveDuneCache() { await core.group("Saving dune cache", async () => { const { key } = await composeDuneCacheKeys(); const paths = composeDuneCachePaths(); + if (PLATFORM === "windows") { + // Detach so the image file is flushed and unlocked before it is cached. + await detachDuneCacheVhdx(); + } await saveCache(key, paths); }); } diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index 34ae8619..9bb452b6 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -119,6 +119,15 @@ export const DUNE_CACHE_ROOT = (() => { return path.join(os.homedir(), ".cache", "dune"); })(); +// On Windows the dune cache is stored inside a single VHDX image rather than +// cached as a tree of many small files (see vhdx.ts). DUNE_CACHE_ROOT is the +// folder the image is mounted at; this is the image file that is cached. +export const DUNE_CACHE_VHDX_PATH = path.join("C:", "dune-cache.vhdx"); + +// Maximum size, in MiB, of the (expandable) dune cache image. Expandable means +// the file only grows to the space actually used, so this is just a ceiling. +export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 51_200; // 50 GiB + // ── Action Inputs ── export const OCAML_COMPILER = core.getInput("ocaml-compiler", { diff --git a/packages/setup-ocaml/src/vhdx.ts b/packages/setup-ocaml/src/vhdx.ts new file mode 100644 index 00000000..0c0117d0 --- /dev/null +++ b/packages/setup-ocaml/src/vhdx.ts @@ -0,0 +1,76 @@ +// Windows dune cache backed by a virtual disk image (VHDX). +// +// On Windows the dune cache is a tree of hundreds of thousands of tiny +// content-addressed files. Saving/restoring it as a tar archive via +// `@actions/cache` is dominated by NTFS per-file metadata cost, so the restore +// can take tens of minutes. Instead we keep the whole cache inside a single +// dynamically-sized VHDX and cache that one file: "restore" becomes attaching +// the image and "save" becomes detaching it, both O(1) in the number of files +// the image contains. +// +// We drive everything through `diskpart`, which ships with every Windows +// install — unlike the `Hyper-V` PowerShell module (`New-VHD`/`Mount-VHD`), +// which is not guaranteed to be present on CI runners. + +import { promises as fs } from "node:fs"; +import * as os from "node:os"; +import * as path from "node:path"; +import * as core from "@actions/core"; +import { exec } from "@actions/exec"; +import { DUNE_CACHE_ROOT, DUNE_CACHE_VHDX_MAX_SIZE_MB, DUNE_CACHE_VHDX_PATH } from "./constants.js"; + +// Run a diskpart script. diskpart reads its commands from a file (`/s`), so we +// stage the script in a temp file and clean it up afterwards. +async function runDiskpart(commands: string[]) { + const scriptPath = path.join(os.tmpdir(), `setup-ocaml-dune-vhdx-${process.pid}.txt`); + await fs.writeFile(scriptPath, `${commands.join("\n")}\n`); + try { + await exec("diskpart", ["/s", scriptPath]); + } finally { + await fs.rm(scriptPath, { force: true }); + } +} + +// Create a fresh, empty dune cache image and mount it at DUNE_CACHE_ROOT. +// Used on a cache miss (no image was restored). The image is `expandable`, so +// the on-disk file only grows to the space actually used, up to the maximum. +export async function createDuneCacheVhdx() { + await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); + await runDiskpart([ + `create vdisk file="${DUNE_CACHE_VHDX_PATH}" maximum=${DUNE_CACHE_VHDX_MAX_SIZE_MB} type=expandable`, + `select vdisk file="${DUNE_CACHE_VHDX_PATH}"`, + "attach vdisk", + "create partition primary", + 'format fs=ntfs quick label="dune"', + // Mount the volume at an (empty) NTFS folder so DUNE_CACHE_ROOT is unchanged + // for the rest of the action. + `assign mount="${DUNE_CACHE_ROOT}"`, + ]); +} + +// Attach a previously-cached dune cache image and mount it at DUNE_CACHE_ROOT. +// Used on a cache hit (the .vhdx file was restored to disk). +export async function attachDuneCacheVhdx() { + await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); + await runDiskpart([ + `select vdisk file="${DUNE_CACHE_VHDX_PATH}"`, + "attach vdisk", + // The image already contains a formatted partition; just re-establish the + // mount path (access paths are not persisted across runners). + "select partition 1", + `assign mount="${DUNE_CACHE_ROOT}"`, + ]); +} + +// Detach the image so the .vhdx file is flushed, consistent, and unlocked +// before it is handed to `@actions/cache`. Best-effort: a failure here must not +// prevent the (still-valid) image file from being saved. +export async function detachDuneCacheVhdx() { + try { + await runDiskpart([`select vdisk file="${DUNE_CACHE_VHDX_PATH}"`, "detach vdisk"]); + } catch (error) { + if (error instanceof Error) { + core.warning(`Failed to detach dune cache VHDX before saving: ${error.message}`); + } + } +} From 7bb7189f4b2e97721050bd5260d7acd1a8d253d7 Mon Sep 17 00:00:00 2001 From: yosefAlsuhaibani Date: Tue, 16 Jun 2026 16:26:07 -0400 Subject: [PATCH 2/5] fix(dune-cache): cap Windows VHDX at 4 GiB to avoid slow restore The cache extraction (tar | zstd -d) is not sparse-aware, so restore writes the full logical size of the dynamic VHDX. A 50 GiB ceiling made every restore materialize ~50 GiB of zeros, stalling the job. Size the image to just above the real dune cache instead. Co-Authored-By: Claude Opus 4.8 (1M context) --- dist/cache.mjs | 2 +- packages/setup-ocaml/src/constants.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/cache.mjs b/dist/cache.mjs index 5819391f..7395065c 100644 --- a/dist/cache.mjs +++ b/dist/cache.mjs @@ -566,4 +566,4 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`C:`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` `).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Cj(){await Ir(`Removing opam repositories`,async()=>{let e=await Sj();for(let t of e)await xj(t)})}async function wj(){try{await Ir(`Updating opam repositories`,async()=>{await br(`opam`,[`update`])})}catch(e){e instanceof Error&&Mr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function Tj(e){return aa.validRange(e,{loose:!0})!==null}function Ej(e){let t=L.basename(e).replace(`ocaml-base-compiler.`,``),n=aa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Dj(){let{data:e}=await aj.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Ej(e)).filter(e=>e!==void 0)):new Map}async function Oj(e){let t=await Dj(),n=t.keys().toArray(),r=aa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=aa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const kj=(async()=>{let e=wA.replace(`~`,`-`);return Tj(e)?`ocaml-base-compiler.${await Oj(e)}`:wA})();async function Aj(e){let t=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.txt`);await F.writeFile(t,`${e.join(` -`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await F.mkdir(SA,{recursive:!0}),await Aj([`create vdisk file="${CA}" maximum=51200 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign mount="${SA}"`])}async function Mj(){await F.mkdir(SA,{recursive:!0}),await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign mount="${SA}"`])}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file +`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await F.mkdir(SA,{recursive:!0}),await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign mount="${SA}"`])}async function Mj(){await F.mkdir(SA,{recursive:!0}),await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign mount="${SA}"`])}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index 9bb452b6..f5bf1697 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -124,9 +124,7 @@ export const DUNE_CACHE_ROOT = (() => { // folder the image is mounted at; this is the image file that is cached. export const DUNE_CACHE_VHDX_PATH = path.join("C:", "dune-cache.vhdx"); -// Maximum size, in MiB, of the (expandable) dune cache image. Expandable means -// the file only grows to the space actually used, so this is just a ceiling. -export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 51_200; // 50 GiB +export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 4_096; // ── Action Inputs ── From 6acdb59343cecb2c0b0e834ba3d5de1f98ff6369 Mon Sep 17 00:00:00 2001 From: yosefAlsuhaibani Date: Tue, 16 Jun 2026 21:41:50 -0400 Subject: [PATCH 3/5] fix(dune-cache): mount Windows VHDX at a drive letter, not a folder Mounting the cache volume at an NTFS folder mount-point (a reparse point) gave dune's copy-mode cache cleanup "rmdir: Directory not empty" failures. Assign a drive letter instead so the cache temp dir is a plain volume path. Co-Authored-By: Claude Opus 4.8 (1M context) --- dist/cache.mjs | 4 ++-- packages/setup-ocaml/src/constants.ts | 7 +++---- packages/setup-ocaml/src/vhdx.ts | 23 +++++++++++++---------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/dist/cache.mjs b/dist/cache.mjs index 7395065c..cb8570fa 100644 --- a/dist/cache.mjs +++ b/dist/cache.mjs @@ -564,6 +564,6 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` `,e)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(this.onKeyLine=!1,t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let n=!this.onKeyLine&&this.indent===e.indent,r=n&&(t.sep||t.explicitKey)&&this.type!==`seq-item-ind`,a=[];if(r&&t.sep&&!t.value){let n=[];for(let r=0;re.indent&&(n.length=0);break;default:n.length=0}}n.length>=2&&(a=t.sep.splice(n[1]))}switch(this.type){case`anchor`:case`tag`:r||t.value?(a.push(this.sourceToken),e.items.push({start:a}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`explicit-key-ind`:!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):r||t.value?(a.push(this.sourceToken),e.items.push({start:a,explicitKey:!0})):this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case`map-value-ind`:if(t.explicitKey)if(!t.sep)if(i(t.start,`newline`))Object.assign(t,{key:null,sep:[this.sourceToken]});else{let e=c(t.start);this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:null,sep:[this.sourceToken]}]})}else if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(i(t.sep,`map-value-ind`))this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]});else if(o(t.key)&&!i(t.sep,`newline`)){let e=c(t.start),n=t.key,r=t.sep;r.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:e,key:n,sep:r}]})}else a.length>0?t.sep=t.sep.concat(a,this.sourceToken):t.sep.push(this.sourceToken);else t.sep?t.value||r?e.items.push({start:a,key:null,sep:[this.sourceToken]}):i(t.sep,`map-value-ind`)?this.stack.push({type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);r||t.value?(e.items.push({start:a,key:n,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(n):(Object.assign(t,{key:n,sep:[]}),this.onKeyLine=!0);return}default:{let r=this.startBlockValue(e);if(r){if(r.type===`block-seq`){if(!t.explicitKey&&t.sep&&!i(t.sep,`newline`)){yield*this.pop({type:`error`,offset:this.offset,message:`Unexpected block-seq-ind on same line with key`,source:this.source});return}}else n&&e.items.push({start:a});this.stack.push(r);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case`newline`:if(t.value){let n=`end`in t.value?t.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type===`comment`?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else t.start.push(this.sourceToken);return;case`space`:case`comment`:if(t.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(t.start,e.indent)){let n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){l(n,t.start),n.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken)}return;case`anchor`:case`tag`:if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case`seq-item-ind`:if(this.indent!==e.indent)break;t.value||i(t.start,`seq-item-ind`)?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let t=this.startBlockValue(e);if(t){this.stack.push(t);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type===`flow-error-end`){let e;do yield*this.pop(),e=this.peek(1);while(e?.type===`flow-collection`)}else if(e.end.length===0){switch(this.type){case`comma`:case`explicit-key-ind`:!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case`map-value-ind`:!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case`space`:case`comment`:case`newline`:case`anchor`:case`tag`:!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:{let n=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:n,sep:[]}):t.sep?this.stack.push(n):Object.assign(t,{key:n,sep:[]});return}case`flow-map-end`:case`flow-seq-end`:e.end.push(this.sourceToken);return}let n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{let t=this.peek(2);if(t.type===`block-map`&&(this.type===`map-value-ind`&&t.indent===e.indent||this.type===`newline`&&!t.items[t.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type===`map-value-ind`&&t.type!==`flow-collection`){let n=c(s(t));u(e);let r=e.end.splice(1,e.end.length);r.push(this.sourceToken);let i={type:`block-map`,offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let e=this.source.indexOf(` `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` -`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`C:`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` +`,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`X:\\`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` `).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Cj(){await Ir(`Removing opam repositories`,async()=>{let e=await Sj();for(let t of e)await xj(t)})}async function wj(){try{await Ir(`Updating opam repositories`,async()=>{await br(`opam`,[`update`])})}catch(e){e instanceof Error&&Mr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function Tj(e){return aa.validRange(e,{loose:!0})!==null}function Ej(e){let t=L.basename(e).replace(`ocaml-base-compiler.`,``),n=aa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Dj(){let{data:e}=await aj.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Ej(e)).filter(e=>e!==void 0)):new Map}async function Oj(e){let t=await Dj(),n=t.keys().toArray(),r=aa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=aa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const kj=(async()=>{let e=wA.replace(`~`,`-`);return Tj(e)?`ocaml-base-compiler.${await Oj(e)}`:wA})();async function Aj(e){let t=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.txt`);await F.writeFile(t,`${e.join(` -`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await F.mkdir(SA,{recursive:!0}),await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign mount="${SA}"`])}async function Mj(){await F.mkdir(SA,{recursive:!0}),await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign mount="${SA}"`])}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file +`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0})}async function Mj(){await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0})}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index f5bf1697..3f0d4e1b 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -108,20 +108,19 @@ export const CYGWIN_ROOT_BIN = path.join(CYGWIN_ROOT, "bin"); export const CYGWIN_BASH_ENV = path.join(CYGWIN_ROOT, "bash_env"); +export const DUNE_CACHE_VHDX_DRIVE_LETTER = "X"; + export const DUNE_CACHE_ROOT = (() => { const xdgCacheHome = process.env.XDG_CACHE_HOME; if (xdgCacheHome) { return path.join(xdgCacheHome, "dune"); } if (PLATFORM === "windows") { - return path.join("C:", "dune"); + return path.join(`${DUNE_CACHE_VHDX_DRIVE_LETTER}:\\`, "dune"); } return path.join(os.homedir(), ".cache", "dune"); })(); -// On Windows the dune cache is stored inside a single VHDX image rather than -// cached as a tree of many small files (see vhdx.ts). DUNE_CACHE_ROOT is the -// folder the image is mounted at; this is the image file that is cached. export const DUNE_CACHE_VHDX_PATH = path.join("C:", "dune-cache.vhdx"); export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 4_096; diff --git a/packages/setup-ocaml/src/vhdx.ts b/packages/setup-ocaml/src/vhdx.ts index 0c0117d0..f9fbe580 100644 --- a/packages/setup-ocaml/src/vhdx.ts +++ b/packages/setup-ocaml/src/vhdx.ts @@ -17,7 +17,12 @@ import * as os from "node:os"; import * as path from "node:path"; import * as core from "@actions/core"; import { exec } from "@actions/exec"; -import { DUNE_CACHE_ROOT, DUNE_CACHE_VHDX_MAX_SIZE_MB, DUNE_CACHE_VHDX_PATH } from "./constants.js"; +import { + DUNE_CACHE_ROOT, + DUNE_CACHE_VHDX_DRIVE_LETTER, + DUNE_CACHE_VHDX_MAX_SIZE_MB, + DUNE_CACHE_VHDX_PATH, +} from "./constants.js"; // Run a diskpart script. diskpart reads its commands from a file (`/s`), so we // stage the script in a temp file and clean it up afterwards. @@ -31,35 +36,33 @@ async function runDiskpart(commands: string[]) { } } -// Create a fresh, empty dune cache image and mount it at DUNE_CACHE_ROOT. +// Create a fresh, empty dune cache image and mount it at the drive letter. // Used on a cache miss (no image was restored). The image is `expandable`, so // the on-disk file only grows to the space actually used, up to the maximum. export async function createDuneCacheVhdx() { - await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); await runDiskpart([ `create vdisk file="${DUNE_CACHE_VHDX_PATH}" maximum=${DUNE_CACHE_VHDX_MAX_SIZE_MB} type=expandable`, `select vdisk file="${DUNE_CACHE_VHDX_PATH}"`, "attach vdisk", "create partition primary", 'format fs=ntfs quick label="dune"', - // Mount the volume at an (empty) NTFS folder so DUNE_CACHE_ROOT is unchanged - // for the rest of the action. - `assign mount="${DUNE_CACHE_ROOT}"`, + `assign letter=${DUNE_CACHE_VHDX_DRIVE_LETTER}`, ]); + await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); } -// Attach a previously-cached dune cache image and mount it at DUNE_CACHE_ROOT. +// Attach a previously-cached dune cache image and mount it at the drive letter. // Used on a cache hit (the .vhdx file was restored to disk). export async function attachDuneCacheVhdx() { - await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); await runDiskpart([ `select vdisk file="${DUNE_CACHE_VHDX_PATH}"`, "attach vdisk", // The image already contains a formatted partition; just re-establish the - // mount path (access paths are not persisted across runners). + // drive letter (assignments are not persisted across runners). "select partition 1", - `assign mount="${DUNE_CACHE_ROOT}"`, + `assign letter=${DUNE_CACHE_VHDX_DRIVE_LETTER}`, ]); + await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); } // Detach the image so the .vhdx file is flushed, consistent, and unlocked From f1190f959e91fe22b1387b0d2c9c25043e72dbcf Mon Sep 17 00:00:00 2001 From: yosefAlsuhaibani Date: Tue, 16 Jun 2026 22:00:20 -0400 Subject: [PATCH 4/5] fix(dune-cache): exclude Windows cache volume from Defender The drive-letter mount did not resolve dune copy-mode's "rmdir: Directory not empty" on store, ruling out reparse-point semantics. The remaining likely cause is Defender real-time scanning holding a transient (delete-pending) handle on a just-written cache file. Exclude the cache volume and report Defender status so we can confirm whether it is active. Co-Authored-By: Claude Opus 4.8 (1M context) --- dist/cache.mjs | 3 ++- packages/setup-ocaml/src/vhdx.ts | 30 ++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/dist/cache.mjs b/dist/cache.mjs index cb8570fa..6a3686aa 100644 --- a/dist/cache.mjs +++ b/dist/cache.mjs @@ -566,4 +566,5 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `)+1;for(;e!==0;)this.onNewLine(this.offset+e),e=this.source.indexOf(` `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`X:\\`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` `).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Cj(){await Ir(`Removing opam repositories`,async()=>{let e=await Sj();for(let t of e)await xj(t)})}async function wj(){try{await Ir(`Updating opam repositories`,async()=>{await br(`opam`,[`update`])})}catch(e){e instanceof Error&&Mr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function Tj(e){return aa.validRange(e,{loose:!0})!==null}function Ej(e){let t=L.basename(e).replace(`ocaml-base-compiler.`,``),n=aa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Dj(){let{data:e}=await aj.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Ej(e)).filter(e=>e!==void 0)):new Map}async function Oj(e){let t=await Dj(),n=t.keys().toArray(),r=aa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=aa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const kj=(async()=>{let e=wA.replace(`~`,`-`);return Tj(e)?`ocaml-base-compiler.${await Oj(e)}`:wA})();async function Aj(e){let t=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.txt`);await F.writeFile(t,`${e.join(` -`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0})}async function Mj(){await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0})}async function Nj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Pj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Fj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Ij(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Fj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Lj(){return fA===`windows`?[CA]:[SA]}function Rj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function zj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Bj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Vj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Pj(),n=await zj(e,t,Lj());return fA===`windows`&&(n?await Mj():await jj()),n})}async function Hj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij();return await zj(e,t,Rj())})}async function Uj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Pj(),t=Lj();fA===`windows`&&await Nj(),await Bj(e,t)})}async function Wj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=Rj();await zj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Bj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Wj as i,br as k,Cj as l,AA as m,Hj as n,_j as o,bA as p,Uj as r,vj as s,Vj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file +`)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){let e=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.ps1`);await F.writeFile(e,[`try { Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, IsTamperProtected | Format-List }`,`catch { Write-Host "Defender status unavailable: $($_.Exception.Message)" }`,`Add-MpPreference -ExclusionPath 'X:\\' -ErrorAction SilentlyContinue`].join(` +`));try{await br(`powershell`,[`-NoProfile`,`-ExecutionPolicy`,`Bypass`,`-File`,e])}catch(e){e instanceof Error&&jr(`Failed to exclude dune cache volume from Defender: ${e.message}`)}finally{await F.rm(e,{force:!0})}}async function Mj(){await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Nj(){await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Pj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Fj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Ij(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Lj(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Ij();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Rj(){return fA===`windows`?[CA]:[SA]}function zj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function Bj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Vj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Hj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Fj(),n=await Bj(e,t,Rj());return fA===`windows`&&(n?await Nj():await Mj()),n})}async function Uj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Lj();return await Bj(e,t,zj())})}async function Wj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Fj(),t=Rj();fA===`windows`&&await Pj(),await Vj(e,t)})}async function Gj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Lj(),n=zj();await Bj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Vj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Gj as i,br as k,Cj as l,AA as m,Uj as n,_j as o,bA as p,Wj as r,vj as s,Hj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file diff --git a/packages/setup-ocaml/src/vhdx.ts b/packages/setup-ocaml/src/vhdx.ts index f9fbe580..bd2752fb 100644 --- a/packages/setup-ocaml/src/vhdx.ts +++ b/packages/setup-ocaml/src/vhdx.ts @@ -36,6 +36,34 @@ async function runDiskpart(commands: string[]) { } } +// Best-effort: stop Windows Defender from holding transient handles on files +// dune writes into the cache. When real-time scanning has a just-written file +// open, Windows marks it delete-pending but leaves the directory entry, so +// dune's copy-mode store fails cleaning up its staging dir with +// "rmdir: Directory not empty". Excluding the cache volume avoids the scan. +// Also reports Defender status so we can tell whether it is active at all. +async function hardenCacheVolumeAgainstHandleHolders() { + const driveRoot = `${DUNE_CACHE_VHDX_DRIVE_LETTER}:\\`; + const scriptPath = path.join(os.tmpdir(), `setup-ocaml-dune-vhdx-${process.pid}.ps1`); + await fs.writeFile( + scriptPath, + [ + "try { Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, IsTamperProtected | Format-List }", + 'catch { Write-Host "Defender status unavailable: $($_.Exception.Message)" }', + `Add-MpPreference -ExclusionPath '${driveRoot}' -ErrorAction SilentlyContinue`, + ].join("\n"), + ); + try { + await exec("powershell", ["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", scriptPath]); + } catch (error) { + if (error instanceof Error) { + core.warning(`Failed to exclude dune cache volume from Defender: ${error.message}`); + } + } finally { + await fs.rm(scriptPath, { force: true }); + } +} + // Create a fresh, empty dune cache image and mount it at the drive letter. // Used on a cache miss (no image was restored). The image is `expandable`, so // the on-disk file only grows to the space actually used, up to the maximum. @@ -49,6 +77,7 @@ export async function createDuneCacheVhdx() { `assign letter=${DUNE_CACHE_VHDX_DRIVE_LETTER}`, ]); await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); + await hardenCacheVolumeAgainstHandleHolders(); } // Attach a previously-cached dune cache image and mount it at the drive letter. @@ -63,6 +92,7 @@ export async function attachDuneCacheVhdx() { `assign letter=${DUNE_CACHE_VHDX_DRIVE_LETTER}`, ]); await fs.mkdir(DUNE_CACHE_ROOT, { recursive: true }); + await hardenCacheVolumeAgainstHandleHolders(); } // Detach the image so the .vhdx file is flushed, consistent, and unlocked From 168cf3b8f972e65e4b44bc80a72a78c9f3ea1ef9 Mon Sep 17 00:00:00 2001 From: yosefAlsuhaibani Date: Wed, 17 Jun 2026 09:33:55 -0400 Subject: [PATCH 5/5] fix(dune-cache): use hardlink mode on Windows by colocating _build Copy-mode cache store keeps failing on Windows with "rmdir: Directory not empty" regardless of mount type or Defender exclusion, so switch to hardlink mode. Hardlinks cannot cross volumes, so junction the workspace _build onto the cache's VHDX volume; both then share a volume and the copy/staging-dir/rmdir path is gone. Bump the image to 12 GiB to hold _build alongside the cache. Co-Authored-By: Claude Opus 4.8 (1M context) --- dist/cache.mjs | 2 +- dist/index.mjs | 2 +- packages/setup-ocaml/src/cache.ts | 8 +++++++- packages/setup-ocaml/src/constants.ts | 2 +- packages/setup-ocaml/src/installer.ts | 5 ++++- packages/setup-ocaml/src/vhdx.ts | 17 +++++++++++++++++ 6 files changed, 31 insertions(+), 5 deletions(-) diff --git a/dist/cache.mjs b/dist/cache.mjs index 6a3686aa..8ef30a63 100644 --- a/dist/cache.mjs +++ b/dist/cache.mjs @@ -567,4 +567,4 @@ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,`$1$2`).replace(/\ `,e)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case`alias`:case`scalar`:case`single-quoted-scalar`:case`double-quoted-scalar`:return this.flowScalar(this.type);case`block-scalar-header`:return{type:`block-scalar`,offset:this.offset,indent:this.indent,props:[this.sourceToken],source:``};case`flow-map-start`:case`flow-seq-start`:return{type:`flow-collection`,offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case`seq-item-ind`:return{type:`block-seq`,offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case`explicit-key-ind`:{this.onKeyLine=!0;let t=c(s(e));return t.push(this.sourceToken),{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,explicitKey:!0}]}}case`map-value-ind`:{this.onKeyLine=!0;let t=c(s(e));return{type:`block-map`,offset:this.offset,indent:this.indent,items:[{start:t,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!==`comment`||this.indent<=t?!1:e.every(e=>e.type===`newline`||e.type===`space`)}*documentEnd(e){this.type!==`doc-mode`&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case`comma`:case`doc-start`:case`doc-end`:case`flow-seq-end`:case`flow-map-end`:case`map-value-ind`:yield*this.pop(),yield*this.step();break;case`newline`:this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type===`newline`&&(yield*this.pop())}}}})),oA=z((e=>{var t=Qk(),n=Fk(),r=Ik(),i=ok(),a=WO(),o=iA(),s=aA();function c(e){let t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new o.LineCounter||null,prettyErrors:t}}function l(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=Array.from(l.compose(o.parse(e)));if(a&&i)for(let t of u)t.errors.forEach(r.prettifyError(e,i)),t.warnings.forEach(r.prettifyError(e,i));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function u(e,n={}){let{lineCounter:i,prettyErrors:a}=c(n),o=new s.Parser(i?.addNewLine),l=new t.Composer(n),u=null;for(let t of l.compose(o.parse(e),!0,e.length))if(!u)u=t;else if(u.options.logLevel!==`silent`){u.errors.push(new r.YAMLParseError(t.range.slice(0,2),`MULTIPLE_DOCS`,`Source contains multiple documents; please use YAML.parseAllDocuments()`));break}return a&&i&&(u.errors.forEach(r.prettifyError(e,i)),u.warnings.forEach(r.prettifyError(e,i))),u}function d(e,t,n){let r;typeof t==`function`?r=t:n===void 0&&t&&typeof t==`object`&&(n=t);let a=u(e,n);if(!a)return null;if(a.warnings.forEach(e=>i.warn(a.options.logLevel,e)),a.errors.length>0){if(a.options.logLevel!==`silent`)throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:r},n))}function f(e,t,r){let i=null;if(typeof t==`function`||Array.isArray(t)?i=t:r===void 0&&t&&(r=t),typeof r==`string`&&(r=r.length),typeof r==`number`){let e=Math.round(r);r=e<1?void 0:e>8?{indent:8}:{indent:e}}if(e===void 0){let{keepUndefined:e}=r??t??{};if(!e)return}return a.isDocument(e)&&!i?e.toString(r):new n.Document(e,i,r).toString(r)}e.parse=d,e.parseAllDocuments=l,e.parseDocument=u,e.stringify=f})),sA=z((e=>{var t=Qk(),n=Fk(),r=Nk(),i=Ik(),a=ZO(),o=WO(),s=lk(),c=QO(),l=dk(),u=pk();nA();var d=rA(),f=iA(),p=aA(),m=oA(),h=GO();e.Composer=t.Composer,e.Document=n.Document,e.Schema=r.Schema,e.YAMLError=i.YAMLError,e.YAMLParseError=i.YAMLParseError,e.YAMLWarning=i.YAMLWarning,e.Alias=a.Alias,e.isAlias=o.isAlias,e.isCollection=o.isCollection,e.isDocument=o.isDocument,e.isMap=o.isMap,e.isNode=o.isNode,e.isPair=o.isPair,e.isScalar=o.isScalar,e.isSeq=o.isSeq,e.Pair=s.Pair,e.Scalar=c.Scalar,e.YAMLMap=l.YAMLMap,e.YAMLSeq=u.YAMLSeq,e.Lexer=d.Lexer,e.LineCounter=f.LineCounter,e.Parser=p.Parser,e.parse=m.parse,e.parseAllDocuments=m.parseAllDocuments,e.parseDocument=m.parseDocument,e.stringify=m.stringify,e.visit=h.visit,e.visitAsync=h.visitAsync})),cA=bO(),lA=B(UO(),1),uA=B(sA(),1);const dA=(()=>{switch(t.arch){case`arm`:return`armhf`;case`arm64`:return`arm64`;case`riscv64`:return`riscv64`;case`s390x`:return`s390x`;case`x64`:return`x86_64`;default:throw Error(`'${t.arch}' is not supported. Supported architectures: arm, arm64, riscv64, s390x, x64`)}})(),fA=(()=>{switch(t.platform){case`darwin`:return`macos`;case`linux`:return`linux`;case`win32`:return`windows`;default:throw Error(`'${t.platform}' is not supported. Supported platforms: darwin, linux, win32`)}})(),pA=(()=>{try{let e=N.readFileSync(`/etc/os-release`).toString().match(/^ID=(.*)$/m);return e?e[1]:`(unknown)`}catch{return`(unknown)`}})(),mA=[`curl`,`diffutils`,`m4`,`mingw64-i686-gcc-core`,`mingw64-i686-gcc-g++`,`mingw64-x86_64-gcc-core`,`mingw64-x86_64-gcc-g++`,`patch`,`perl`],hA=(()=>{let e=t.env.ImageOS,n=t.env.RUNNER_ENVIRONMENT;return e?`github-hosted`:n||`self-hosted`})(),gA=t.env.GITHUB_WORKSPACE??t.cwd(),_A=L.join(`C:`,`msys64`),vA=fA===`windows`?L.join(`C:`,`.opam`):L.join(ee.homedir(),`.opam`),yA=L.join(vA,`.cygwin`,`root`),bA=L.join(yA,`bin`),xA=L.join(yA,`bash_env`),SA=(()=>{let e=t.env.XDG_CACHE_HOME;return e?L.join(e,`dune`):fA===`windows`?L.join(`X:\\`,`dune`):L.join(ee.homedir(),`.cache`,`dune`)})(),CA=L.join(`C:`,`dune-cache.vhdx`),wA=Dr(`ocaml-compiler`,{required:!0}),TA=Or(`save-opam-post-run`),EA=(()=>{let e=uA.parse(Dr(`opam-repositories`),{schema:`failsafe`});if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`opam-repositories input must be a YAML mapping of name: URL pairs`);let t=Object.entries(e);if(t.length===0)throw Error(`opam-repositories input must not be empty`);return t.reverse()})(),DA=Or(`opam-pin`),OA=Dr(`opam-local-packages`),kA=fA!==`windows`&&Or(`opam-disable-sandboxing`),AA=Or(`dune-cache`),jA=Dr(`cache-prefix`),MA=(()=>{let e=Dr(`windows-environment`).toLowerCase();if(e!==`cygwin`&&e!==`msys2`)throw Error(`Invalid windows-environment value '${e}'. Supported values: cygwin, msys2`);return e})(),NA=(()=>{let e=Dr(`windows-compiler`).toLowerCase();if(e!==`mingw`&&e!==`msvc`)throw Error(`Invalid windows-compiler value '${e}'. Supported values: mingw, msvc`);return e})(),PA=Or(`allow-prerelease-opam`),FA=Dr(`github-token`);var IA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},LA=class{constructor(e,t,n){if(e<1)throw Error(`max attempts should be greater than or equal to 1`);if(this.maxAttempts=e,this.minSeconds=Math.floor(t),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw Error(`min seconds should be less than or equal to max seconds`)}execute(e,t){return IA(this,void 0,void 0,function*(){let n=1;for(;nsetTimeout(t,e*1e3))})}},RA=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},zA=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}};process.platform,process.platform;function BA(e,t,n,r){return RA(this,void 0,void 0,function*(){return t||=p.join(XA(),o.randomUUID()),yield cr(p.dirname(t)),U(`Downloading ${e}`),U(`Destination ${t}`),yield new LA(3,ZA(`TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS`,10),ZA(`TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS`,20)).execute(()=>RA(this,void 0,void 0,function*(){return yield VA(e,t||``,n,r)}),e=>!(e instanceof zA&&e.httpStatusCode&&e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429))})}function VA(e,t,n,r){return RA(this,void 0,void 0,function*(){if(s.existsSync(t))throw Error(`Destination file path ${t} already exists`);let i=new An(`actions/tool-cache`,[],{allowRetries:!1});n&&(U(`set auth`),r===void 0&&(r={}),r.authorization=n);let a=yield i.get(e,r);if(a.message.statusCode!==200){let t=new zA(a.message.statusCode);throw U(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`),t}let o=b.promisify(ne.pipeline),c=ZA(`TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY`,()=>a.message)(),l=!1;try{return yield o(c,s.createWriteStream(t)),U(`download complete`),l=!0,t}finally{if(!l){U(`download failed`);try{yield sr(t)}catch(e){U(`Failed to delete '${t}'. ${e.message}`)}}}})}function HA(e,t,n,i,a){return RA(this,void 0,void 0,function*(){if(i=aa.clean(i)||i,a||=r.arch(),U(`Caching tool ${n} ${i} ${a}`),U(`source file: ${e}`),!s.statSync(e).isFile())throw Error(`sourceFile is not a file`);let o=yield GA(n,i,a),c=p.join(o,t);return U(`destination file ${c}`),yield or(e,c),KA(n,i,a),o})}function UA(e,t,n){if(!e)throw Error(`toolName parameter is required`);if(!t)throw Error(`versionSpec parameter is required`);n||=r.arch(),qA(t)||(t=JA(WA(e,n),t));let i=``;if(t){t=aa.clean(t)||``;let r=p.join(YA(),e,t,n);U(`checking cache: ${r}`),s.existsSync(r)&&s.existsSync(`${r}.complete`)?(U(`Found tool in cache ${e} ${t} ${n}`),i=r):U(`not found`)}return i}function WA(e,t){let n=[];t||=r.arch();let i=p.join(YA(),e);if(s.existsSync(i)){let e=s.readdirSync(i);for(let r of e)if(qA(r)){let e=p.join(i,r,t||``);s.existsSync(e)&&s.existsSync(`${e}.complete`)&&n.push(r)}}return n}function GA(e,t,n){return RA(this,void 0,void 0,function*(){let r=p.join(YA(),e,aa.clean(t)||t,n||``);U(`destination ${r}`);let i=`${r}.complete`;return yield sr(r),yield sr(i),yield cr(r),r})}function KA(e,t,n){let r=`${p.join(YA(),e,aa.clean(t)||t,n||``)}.complete`;s.writeFileSync(r,``),U(`finished caching tool`)}function qA(e){let t=aa.clean(e)||``;U(`isExplicit: ${t}`);let n=aa.valid(t)!=null;return U(`explicit? ${n}`),n}function JA(e,t){let n=``;U(`evaluating ${e.length} versions`),e=e.sort((e,t)=>aa.gt(e,t)?1:-1);for(let r=e.length-1;r>=0;r--){let i=e[r];if(aa.satisfies(i,t)){n=i;break}}return U(n?`matched: ${n}`:`match not found`),n}function YA(){let e=process.env.RUNNER_TOOL_CACHE||``;return y(e,`Expected RUNNER_TOOL_CACHE to be defined`),e}function XA(){let e=process.env.RUNNER_TEMP||``;return y(e,`Expected RUNNER_TEMP to be defined`),e}function ZA(e,t){let n=global[e];return n===void 0?t:n}var QA=B(z(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):n.Bottleneck=r()})(e,(function(){var e=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t(e){return e&&e.default||e}var n={load:function(e,t,n={}){var r,i;for(r in t)i=t[r],n[r]=e[r]??i;return n},overwrite:function(e,t,n={}){var r,i;for(r in e)i=e[r],t[r]!==void 0&&(n[r]=i);return n}},r=class{constructor(e,t){this.incr=e,this.decr=t,this._first=null,this._last=null,this.length=0}push(e){var t;this.length++,typeof this.incr==`function`&&this.incr(),t={value:e,prev:this._last,next:null},this._last==null?this._first=this._last=t:(this._last.next=t,this._last=t)}shift(){var e;if(this._first!=null)return this.length--,typeof this.decr==`function`&&this.decr(),e=this._first.value,(this._first=this._first.next)==null?this._last=null:this._first.prev=null,e}first(){if(this._first!=null)return this._first.value}getArray(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,t.value));return n}forEachShift(e){for(var t=this.shift();t!=null;)e(t),t=this.shift()}debug(){for(var e=this._first,t,n=[];e!=null;)n.push((t=e,e=e.next,{value:t.value,prev:t.prev?.value,next:t.next?.value}));return n}},i=class{constructor(e){if(this.instance=e,this._events={},this.instance.on!=null||this.instance.once!=null||this.instance.removeAllListeners!=null)throw Error(`An Emitter already exists for this object`);this.instance.on=(e,t)=>this._addListener(e,`many`,t),this.instance.once=(e,t)=>this._addListener(e,`once`,t),this.instance.removeAllListeners=(e=null)=>e==null?this._events={}:delete this._events[e]}_addListener(e,t,n){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push({cb:n,status:t}),this.instance}listenerCount(e){return this._events[e]==null?0:this._events[e].length}async trigger(e,...t){var n,r;try{return e!==`debug`&&this.trigger(`debug`,`Event triggered: ${e}`,t),this._events[e]==null?void 0:(this._events[e]=this._events[e].filter(function(e){return e.status!==`none`}),r=this._events[e].map(async e=>{var n,r;if(e.status!==`none`){e.status===`once`&&(e.status=`none`);try{return r=typeof e.cb==`function`?e.cb(...t):void 0,typeof r?.then==`function`?await r:r}catch(e){return n=e,this.trigger(`error`,n),null}}}),(await Promise.all(r)).find(function(e){return e!=null}))}catch(e){return n=e,this.trigger(`error`,n),null}}},a=r,o=i,s=class{constructor(e){this.Events=new o(this),this._length=0,this._lists=(function(){var t,n,r=[];for(t=1,n=e;1<=n?t<=n:t>=n;1<=n?++t:--t)r.push(new a((()=>this.incr()),(()=>this.decr())));return r}).call(this)}incr(){if(this._length++===0)return this.Events.trigger(`leftzero`)}decr(){if(--this._length===0)return this.Events.trigger(`zero`)}push(e){return this._lists[e.options.priority].push(e)}queued(e){return e==null?this._length:this._lists[e].length}shiftAll(e){return this._lists.forEach(function(t){return t.forEachShift(e)})}getFirst(e=this._lists){var t,n,r;for(t=0,n=e.length;t0)return r;return[]}shiftLastFrom(e){return this.getFirst(this._lists.slice(e).reverse()).shift()}},c=class extends Error{},l,u,d,f=10,p;u=5,p=n,l=c,d=class{constructor(e,t,n,r,i,a,o,s){this.task=e,this.args=t,this.rejectOnDrop=i,this.Events=a,this._states=o,this.Promise=s,this.options=p.load(n,r),this.options.priority=this._sanitizePriority(this.options.priority),this.options.id===r.id&&(this.options.id=`${this.options.id}-${this._randomIndex()}`),this.promise=new this.Promise((e,t)=>{this._resolve=e,this._reject=t}),this.retryCount=0}_sanitizePriority(e){var t=~~e===e?e:u;return t<0?0:t>f-1?f-1:t}_randomIndex(){return Math.random().toString(36).slice(2)}doDrop({error:e,message:t=`This job has been dropped by Bottleneck`}={}){return this._states.remove(this.options.id)?(this.rejectOnDrop&&this._reject(e??new l(t)),this.Events.trigger(`dropped`,{args:this.args,options:this.options,task:this.task,promise:this.promise}),!0):!1}_assertStatus(e){var t=this._states.jobStatus(this.options.id);if(!(t===e||e===`DONE`&&t===null))throw new l(`Invalid job status ${t}, expected ${e}. Please open an issue at https://github.com/SGrondin/bottleneck/issues`)}doReceive(){return this._states.start(this.options.id),this.Events.trigger(`received`,{args:this.args,options:this.options})}doQueue(e,t){return this._assertStatus(`RECEIVED`),this._states.next(this.options.id),this.Events.trigger(`queued`,{args:this.args,options:this.options,reachedHWM:e,blocked:t})}doRun(){return this.retryCount===0?(this._assertStatus(`QUEUED`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),this.Events.trigger(`scheduled`,{args:this.args,options:this.options})}async doExecute(e,t,n,r){var i,a,o;this.retryCount===0?(this._assertStatus(`RUNNING`),this._states.next(this.options.id)):this._assertStatus(`EXECUTING`),a={args:this.args,options:this.options,retryCount:this.retryCount},this.Events.trigger(`executing`,a);try{if(o=await(e==null?this.task(...this.args):e.schedule(this.options,this.task,...this.args)),t())return this.doDone(a),await r(this.options,a),this._assertStatus(`DONE`),this._resolve(o)}catch(e){return i=e,this._onFailure(i,a,t,n,r)}}doExpire(e,t,n){var r,i;return this._states.jobStatus(this.options.id===`RUNNING`)&&this._states.next(this.options.id),this._assertStatus(`EXECUTING`),i={args:this.args,options:this.options,retryCount:this.retryCount},r=new l(`This job timed out after ${this.options.expiration} ms.`),this._onFailure(r,i,e,t,n)}async _onFailure(e,t,n,r,i){var a,o;if(n())return a=await this.Events.trigger(`failed`,e,t),a==null?(this.doDone(t),await i(this.options,t),this._assertStatus(`DONE`),this._reject(e)):(o=~~a,this.Events.trigger(`retry`,`Retrying ${this.options.id} after ${o} ms`,t),this.retryCount++,r(o))}doDone(e){return this._assertStatus(`EXECUTING`),this._states.next(this.options.id),this.Events.trigger(`done`,e)}};var m=d,h,g,_=n;h=c,g=class{constructor(e,t,n){this.instance=e,this.storeOptions=t,this.clientId=this.instance._randomIndex(),_.load(n,n,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 e;return this.heartbeat==null&&(this.storeOptions.reservoirRefreshInterval!=null&&this.storeOptions.reservoirRefreshAmount!=null||this.storeOptions.reservoirIncreaseInterval!=null&&this.storeOptions.reservoirIncreaseAmount!=null)?typeof(e=this.heartbeat=setInterval(()=>{var e,t,n,r=Date.now(),i;if(this.storeOptions.reservoirRefreshInterval!=null&&r>=this._lastReservoirRefresh+this.storeOptions.reservoirRefreshInterval&&(this._lastReservoirRefresh=r,this.storeOptions.reservoir=this.storeOptions.reservoirRefreshAmount,this.instance._drainAll(this.computeCapacity())),this.storeOptions.reservoirIncreaseInterval!=null&&r>=this._lastReservoirIncrease+this.storeOptions.reservoirIncreaseInterval&&({reservoirIncreaseAmount:e,reservoirIncreaseMaximum:n,reservoir:i}=this.storeOptions,this._lastReservoirIncrease=r,t=n==null?e:Math.min(e,n-i),t>0))return this.storeOptions.reservoir+=t,this.instance._drainAll(this.computeCapacity())},this.heartbeatInterval)).unref==`function`?e.unref():void 0:clearInterval(this.heartbeat)}async __publish__(e){return await this.yieldLoop(),this.instance.Events.trigger(`message`,e.toString())}async __disconnect__(e){return await this.yieldLoop(),clearInterval(this.heartbeat),this.Promise.resolve()}yieldLoop(e=0){return new this.Promise(function(t,n){return setTimeout(t,e)})}computePenalty(){return this.storeOptions.penalty??(15*this.storeOptions.minTime||5e3)}async __updateSettings__(e){return await this.yieldLoop(),_.overwrite(e,e,this.storeOptions),this._startHeartbeat(),this.instance._drainAll(this.computeCapacity()),!0}async __running__(){return await this.yieldLoop(),this._running}async __queued__(){return await this.yieldLoop(),this.instance.queued()}async __done__(){return await this.yieldLoop(),this._done}async __groupCheck__(e){return await this.yieldLoop(),this._nextRequest+this.timeout=e}check(e,t){return this.conditionsCheck(e)&&this._nextRequest-t<=0}async __check__(e){var t;return await this.yieldLoop(),t=Date.now(),this.check(e,t)}async __register__(e,t,n){var r,i;return await this.yieldLoop(),r=Date.now(),this.conditionsCheck(t)?(this._running+=t,this.storeOptions.reservoir!=null&&(this.storeOptions.reservoir-=t),i=Math.max(this._nextRequest-r,0),this._nextRequest=r+i+this.storeOptions.minTime,{success:!0,wait:i,reservoir:this.storeOptions.reservoir}):{success:!1}}strategyIsBlock(){return this.storeOptions.strategy===3}async __submit__(e,t){var n,r,i;if(await this.yieldLoop(),this.storeOptions.maxConcurrent!=null&&t>this.storeOptions.maxConcurrent)throw new h(`Impossible to add a job having a weight of ${t} to a limiter having a maxConcurrent setting of ${this.storeOptions.maxConcurrent}`);return r=Date.now(),i=this.storeOptions.highWater!=null&&e===this.storeOptions.highWater&&!this.check(t,r),n=this.strategyIsBlock()&&(i||this.isBlocked(r)),n&&(this._unblockTime=r+this.computePenalty(),this._nextRequest=this._unblockTime+this.storeOptions.minTime,this.instance._dropAllQueued()),{reachedHWM:i,blocked:n,strategy:this.storeOptions.strategy}}async __free__(e,t){return await this.yieldLoop(),this._running-=t,this._done+=t,this.instance._drainAll(this.computeCapacity()),{running:this._running}}};var v=g,y=c,b=class{constructor(e){this.status=e,this._jobs={},this.counts=this.status.map(function(){return 0})}next(e){var t=this._jobs[e],n=t+1;if(t!=null&&n(e[this.status[n]]=t,e)),{})}},x=r,S=class{constructor(e,t){this.schedule=this.schedule.bind(this),this.name=e,this.Promise=t,this._running=0,this._queue=new x}isEmpty(){return this._queue.length===0}async _tryToRun(){var e,t,n,r,i,a,o;if(this._running<1&&this._queue.length>0)return this._running++,{task:o,args:e,resolve:i,reject:r}=this._queue.shift(),t=await(async function(){try{return a=await o(...e),function(){return i(a)}}catch(e){return n=e,function(){return r(n)}}})(),this._running--,this._tryToRun(),t()}schedule(e,...t){var n,r,i=r=null;return n=new this.Promise(function(e,t){return i=e,r=t}),this._queue.push({task:e,args:t,resolve:i,reject:r}),this._tryToRun(),n}},C=`2.19.5`,w=Object.freeze({version:C,default:{version:C}}),T=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),E=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),D=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),O,k,A,j,M,N=n;O=i,j=T,A=E,M=D,k=(function(){class e{constructor(e={}){this.deleteKey=this.deleteKey.bind(this),this.limiterOptions=e,N.load(this.limiterOptions,this.defaults,this),this.Events=new O(this),this.instances={},this.Bottleneck=z,this._startAutoCleanup(),this.sharedConnection=this.connection!=null,this.connection??(this.limiterOptions.datastore===`redis`?this.connection=new j(Object.assign({},this.limiterOptions,{Events:this.Events})):this.limiterOptions.datastore===`ioredis`&&(this.connection=new A(Object.assign({},this.limiterOptions,{Events:this.Events}))))}key(e=``){return this.instances[e]??(()=>{var t=this.instances[e]=new this.Bottleneck(Object.assign(this.limiterOptions,{id:`${this.id}-${e}`,timeout:this.timeout,connection:this.connection}));return this.Events.trigger(`created`,t,e),t})()}async deleteKey(e=``){var t,n=this.instances[e];return this.connection&&(t=await this.connection.__runCommand__([`del`,...M.allKeys(`${this.id}-${e}`)])),n!=null&&(delete this.instances[e],await n.disconnect()),n!=null||t>0}limiters(){var e,t=this.instances,n=[],r;for(e in t)r=t[e],n.push({key:e,limiter:r});return n}keys(){return Object.keys(this.instances)}async clusterKeys(){var e,t,n,r,i,a,o,s,c;if(this.connection==null)return this.Promise.resolve(this.keys());for(a=[],e=null,c=`b_${this.id}-`.length,t=9;e!==0;)for([s,n]=await this.connection.__runCommand__([`scan`,e??0,`match`,`b_${this.id}-*_settings`,`count`,1e4]),e=~~s,r=0,o=n.length;r{var e,t,n,r,i=Date.now(),a;for(t in n=this.instances,r=[],n){a=n[t];try{await a._store.__groupCheck__(i)?r.push(this.deleteKey(t)):r.push(void 0)}catch(t){e=t,r.push(a.Events.trigger(`error`,e))}}return r},this.timeout/2)).unref==`function`?e.unref():void 0}updateSettings(e={}){if(N.overwrite(e,this.defaults,this),N.overwrite(e,e,this.limiterOptions),e.timeout!=null)return this._startAutoCleanup()}disconnect(e=!0){if(!this.sharedConnection)return this.connection?.disconnect(e)}}return e.prototype.defaults={timeout:1e3*60*5,connection:null,Promise,id:`group-key`},e}).call(e);var P=k,F,ee,te=n;ee=i,F=(function(){class e{constructor(e={}){this.options=e,te.load(this.options,this.defaults,this),this.Events=new ee(this),this._arr=[],this._resetPromise(),this._lastFlush=Date.now()}_resetPromise(){return this._promise=new this.Promise((e,t)=>this._resolve=e)}_flush(){return clearTimeout(this._timeout),this._lastFlush=Date.now(),this._resolve(),this.Events.trigger(`batch`,this._arr),this._arr=[],this._resetPromise()}add(e){var t;return this._arr.push(e),t=this._promise,this._arr.length===this.maxSize?this._flush():this.maxTime!=null&&this._arr.length===1&&(this._timeout=setTimeout(()=>this._flush(),this.maxTime)),t}}return e.prototype.defaults={maxTime:null,maxSize:null,Promise},e}).call(e);var I=F,ne=()=>console.log(`You must import the full version of Bottleneck in order to use this feature.`),re=t(w),L,ie,ae,oe,se,ce,R,le,ue,de,fe,pe=[].splice;ce=10,ie=5,fe=n,R=s,oe=m,se=v,le=ne,ae=i,ue=b,de=S,L=(function(){class e{constructor(t={},...n){var r,i;this._addToQueue=this._addToQueue.bind(this),this._validateOptions(t,n),fe.load(t,this.instanceDefaults,this),this._queues=new R(ce),this._scheduled={},this._states=new ue([`RECEIVED`,`QUEUED`,`RUNNING`,`EXECUTING`].concat(this.trackDoneStatus?[`DONE`]:[])),this._limiter=null,this.Events=new ae(this),this._submitLock=new de(`submit`,this.Promise),this._registerLock=new de(`register`,this.Promise),i=fe.load(t,this.storeDefaults,{}),this._store=(function(){if(this.datastore===`redis`||this.datastore===`ioredis`||this.connection!=null)return r=fe.load(t,this.redisStoreDefaults,{}),new le(this,i,r);if(this.datastore===`local`)return r=fe.load(t,this.localStoreDefaults,{}),new se(this,i,r);throw new e.prototype.BottleneckError(`Invalid datastore type: ${this.datastore}`)}).call(this),this._queues.on(`leftzero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.ref==`function`?e.ref():void 0}),this._queues.on(`zero`,()=>{var e;return(e=this._store.heartbeat)==null?void 0:typeof e.unref==`function`?e.unref():void 0})}_validateOptions(t,n){if(!(typeof t==`object`&&t&&n.length===0))throw new e.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(e){return this._store.__publish__(e)}disconnect(e=!0){return this._store.__disconnect__(e)}chain(e){return this._limiter=e,this}queued(e){return this._queues.queued(e)}clusterQueued(){return this._store.__queued__()}empty(){return this.queued()===0&&this._submitLock.isEmpty()}running(){return this._store.__running__()}done(){return this._store.__done__()}jobStatus(e){return this._states.jobStatus(e)}jobs(e){return this._states.statusJobs(e)}counts(){return this._states.statusCounts()}_randomIndex(){return Math.random().toString(36).slice(2)}check(e=1){return this._store.__check__(e)}_clearGlobalState(e){return this._scheduled[e]==null?!1:(clearTimeout(this._scheduled[e].expiration),delete this._scheduled[e],!0)}async _free(e,t,n,r){var i,a;try{if({running:a}=await this._store.__free__(e,n.weight),this.Events.trigger(`debug`,`Freed ${n.id}`,r),a===0&&this.empty())return this.Events.trigger(`idle`)}catch(e){return i=e,this.Events.trigger(`error`,i)}}_run(e,t,n){var r,i,a;return t.doRun(),r=this._clearGlobalState.bind(this,e),a=this._run.bind(this,e,t),i=this._free.bind(this,e,t),this._scheduled[e]={timeout:setTimeout(()=>t.doExecute(this._limiter,r,a,i),n),expiration:t.options.expiration==null?void 0:setTimeout(function(){return t.doExpire(r,a,i)},n+t.options.expiration),job:t}}_drainOne(e){return this._registerLock.schedule(()=>{var t,n,r,i,a;return this.queued()===0||(a=this._queues.getFirst(),{options:i,args:t}=r=a.first(),e!=null&&i.weight>e)?this.Promise.resolve(null):(this.Events.trigger(`debug`,`Draining ${i.id}`,{args:t,options:i}),n=this._randomIndex(),this._store.__register__(n,i.weight,i.expiration).then(({success:e,wait:o,reservoir:s})=>{var c;return this.Events.trigger(`debug`,`Drained ${i.id}`,{success:e,args:t,options:i}),e?(a.shift(),c=this.empty(),c&&this.Events.trigger(`empty`),s===0&&this.Events.trigger(`depleted`,c),this._run(n,r,o),this.Promise.resolve(i.weight)):this.Promise.resolve(null)}))})}_drainAll(e,t=0){return this._drainOne(e).then(n=>{var r;return n==null?this.Promise.resolve(t):(r=e==null?e:e-n,this._drainAll(r,t+n))}).catch(e=>this.Events.trigger(`error`,e))}_dropAllQueued(e){return this._queues.shiftAll(function(t){return t.doDrop({message:e})})}stop(t={}){var n,r;return t=fe.load(t,this.stopDefaults),r=e=>{var t=()=>{var t=this._states.counts;return t[0]+t[1]+t[2]+t[3]===e};return new this.Promise((e,n)=>t()?e():this.on(`done`,()=>{if(t())return this.removeAllListeners(`done`),e()}))},n=t.dropWaitingJobs?(this._run=function(e,n){return n.doDrop({message:t.dropErrorMessage})},this._drainOne=()=>this.Promise.resolve(null),this._registerLock.schedule(()=>this._submitLock.schedule(()=>{var e,n=this._scheduled,i;for(e in n)i=n[e],this.jobStatus(i.job.options.id)===`RUNNING`&&(clearTimeout(i.timeout),clearTimeout(i.expiration),i.job.doDrop({message:t.dropErrorMessage}));return this._dropAllQueued(t.dropErrorMessage),r(0)}))):this.schedule({priority:ce-1,weight:0},()=>r(1)),this._receive=function(n){return n._reject(new e.prototype.BottleneckError(t.enqueueErrorMessage))},this.stop=()=>this.Promise.reject(new e.prototype.BottleneckError(`stop() has already been called`)),n}async _addToQueue(t){var n,r,i,a,o,s,c;({args:n,options:a}=t);try{({reachedHWM:o,blocked:r,strategy:c}=await this._store.__submit__(this.queued(),a.weight))}catch(e){return i=e,this.Events.trigger(`debug`,`Could not queue ${a.id}`,{args:n,options:a,error:i}),t.doDrop({error:i}),!1}return r?(t.doDrop(),!0):o&&(s=c===e.prototype.strategy.LEAK?this._queues.shiftLastFrom(a.priority):c===e.prototype.strategy.OVERFLOW_PRIORITY?this._queues.shiftLastFrom(a.priority+1):c===e.prototype.strategy.OVERFLOW?t:void 0,s?.doDrop(),s==null||c===e.prototype.strategy.OVERFLOW)?(s??t.doDrop(),o):(t.doQueue(o,r),this._queues.push(t),await this._drainAll(),o)}_receive(t){return this._states.jobStatus(t.options.id)==null?(t.doReceive(),this._submitLock.schedule(this._addToQueue,t)):(t._reject(new e.prototype.BottleneckError(`A job with the same id already exists (id=${t.options.id})`)),!1)}submit(...e){var t,n,r,i,a,o,s;return typeof e[0]==`function`?(a=e,[n,...e]=a,[t]=pe.call(e,-1),i=fe.load({},this.jobDefaults)):(o=e,[i,n,...e]=o,[t]=pe.call(e,-1),i=fe.load(i,this.jobDefaults)),s=(...e)=>new this.Promise(function(t,r){return n(...e,function(...e){return(e[0]==null?t:r)(e)})}),r=new oe(s,e,i,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),r.promise.then(function(e){return typeof t==`function`?t(...e):void 0}).catch(function(e){return Array.isArray(e)?typeof t==`function`?t(...e):void 0:typeof t==`function`?t(e):void 0}),this._receive(r)}schedule(...e){var t,n,r;return typeof e[0]==`function`?([r,...e]=e,n={}):[n,r,...e]=e,t=new oe(r,e,n,this.jobDefaults,this.rejectOnDrop,this.Events,this._states,this.Promise),this._receive(t),t.promise}wrap(e){var t=this.schedule.bind(this),n=function(...n){return t(e.bind(this),...n)};return n.withOptions=function(n,...r){return t(n,e,...r)},n}async updateSettings(e={}){return await this._store.__updateSettings__(fe.overwrite(e,this.storeDefaults)),fe.overwrite(e,this.instanceDefaults,this),this}currentReservoir(){return this._store.__currentReservoir__()}incrementReservoir(e=0){return this._store.__incrementReservoir__(e)}}return e.default=e,e.Events=ae,e.version=e.prototype.version=re.version,e.strategy=e.prototype.strategy={LEAK:1,OVERFLOW:2,OVERFLOW_PRIORITY:4,BLOCK:3},e.BottleneckError=e.prototype.BottleneckError=c,e.Group=e.prototype.Group=P,e.RedisConnection=e.prototype.RedisConnection=T,e.IORedisConnection=e.prototype.IORedisConnection=E,e.Batcher=e.prototype.Batcher=I,e.prototype.jobDefaults={priority:ie,weight:1,expiration:null,id:``},e.prototype.storeDefaults={maxConcurrent:null,minTime:0,highWater:null,strategy:e.prototype.strategy.LEAK,penalty:null,reservoir:null,reservoirRefreshInterval:null,reservoirRefreshAmount:null,reservoirIncreaseInterval:null,reservoirIncreaseAmount:null,reservoirIncreaseMaximum:null},e.prototype.localStoreDefaults={Promise,timeout:null,heartbeatInterval:250},e.prototype.redisStoreDefaults={Promise,timeout:null,heartbeatInterval:5e3,clientTimeout:1e4,Redis:null,clientOptions:{},clusterNodes:null,clearDatastore:!1,connection:null},e.prototype.instanceDefaults={datastore:`local`,connection:null,id:``,rejectOnDrop:!0,trackDoneStatus:!1,Promise},e.prototype.stopDefaults={enqueueErrorMessage:`This limiter has been stopped and cannot accept new jobs.`,dropWaitingJobs:!0,dropErrorMessage:`This limiter has been stopped.`},e}).call(e);var z=L;return z}))}))(),1),$A=`0.0.0-development`;function ej(e){return e.request!==void 0}async function tj(e,t,n,r){if(!ej(n)||!n?.request.request)throw n;if(n.status>=400&&!e.doNotRetry.includes(n.status)){let i=r.request.retries==null?e.retries:r.request.retries,a=((r.request.retryCount||0)+1)**2;throw t.retry.retryRequest(n,i,a)}throw n}async function nj(e,t,n,r){let i=new QA.default;return i.on(`failed`,function(t,n){let i=~~t.request.request?.retries,a=~~t.request.request?.retryAfter;if(r.request.retryCount=n.retryCount+1,i>n.retryCount)return a*e.retryAfterBaseValue}),i.schedule(rj.bind(null,e,t,n),r)}async function rj(e,t,n,r){let i=await n(r);return i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)?tj(e,t,new fD(i.data.errors[0].message,500,{request:r,response:i}),r):i}function ij(e,t){let n=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},t.retry),r={retry:{retryRequest:(e,t,n)=>(e.request.request=Object.assign({},e.request.request,{retries:t,retryAfter:n}),e)}};return n.enabled&&(e.hook.error(`request`,tj.bind(null,n,r)),e.hook.wrap(`request`,nj.bind(null,n,r))),r}ij.VERSION=$A;const aj=dO(FA,void 0,ij);async function oj(e){let t=null;return t=pA===`alpine`?await xr(`apk`,[`search`,`--exact`,e]):await xr(`sudo`,[`apt-cache`,`search`,`--names-only`,`'^${e}$'`]),t.stdout.length>0}async function sj(e){switch(fA){case`linux`:{let t=[];for(let n of e)await oj(n)&&t.push(n);return t}default:return[]}}async function cj(){let e=!1;try{await ce.access(`/.dockerenv`,ce.constants.R_OK),e=!0}catch{e=!1}return hA===`self-hosted`||e}async function lj(){try{await br(`sudo`,[`debconf-communicate`],{input:Buffer.from(`set man-db/auto-update false`)})}catch(e){e instanceof Error&&Nr(e.message)}try{await br(`sudo`,[`dpkg-reconfigure`,`man-db`])}catch(e){e instanceof Error&&Nr(e.message)}}async function uj(){if(!await cj())switch(fA){case`linux`:await lj(),await br(`sudo`,[`apt-get`,`--yes`,`install`,`bubblewrap`,`musl-tools`,`rsync`,...await sj([`darcs`,`g++-multilib`,`gcc-multilib`,`mercurial`])]);break;case`macos`:await br(`brew`,[`install`,`darcs`,`mercurial`]);break}}async function dj(){let e=[`make`,`tar`,`unzip`,`rsync`];NA===`mingw`&&e.push(`mingw-w64-x86_64-gcc`),await br(L.join(_A,`usr`,`bin`,`pacman.exe`),[`-S`,`--noconfirm`,`--needed`,...e])}async function fj(){if(!await cj())switch(fA){case`linux`:await br(`sudo`,[`apt-get`,`update`]);break;case`macos`:await br(`brew`,[`update`])}}const pj=(async()=>{let e=PA?`*`:`>=2.5.0 < 2.5.1`,{data:t}=await aj.rest.repos.listReleases({owner:`ocaml`,repo:`opam`}),n=t.filter(t=>aa.satisfies(t.tag_name,e,{includePrerelease:PA,loose:!0})).sort(({tag_name:e},{tag_name:t})=>aa.rcompare(e,t,{loose:!0}));if(n.length===0)throw Error(`Failed to find any opam release that matches the specified version constraint. Please check your version requirements or consider allowing pre-releases.`);let r=fA===`windows`?`${dA}-${fA}.exe`:`${dA}-${fA}`;for(let e of n){let t=e.assets.find(e=>e.name.endsWith(r));if(t)return{version:e.tag_name,browserDownloadUrl:t.browser_download_url}}throw Error(`Failed to find opam binary for '${fA}' and '${dA}'. Please check if this combination is supported by opam.`)})();async function mj(){await Ir(`Installing opam`,async()=>{let{version:e,browserDownloadUrl:t}=await pj,n=UA(`opam`,e,dA),r=fA===`windows`?`opam.exe`:`opam`;if(n===``){let n=await BA(t);Nr(`Downloaded opam ${e} from ${t}`);let i=await HA(n,r,`opam`,e,dA);Nr(`Successfully cached opam to ${i}`),await F.chmod(L.join(i,r),493),Er(i),Nr(`Added opam to the path`)}else Er(n),Nr(`Added cached opam to the path`)})}async function hj(){await Ir(`Initialising opam state`,async()=>{if(fA===`windows`&&MA===`msys2`&&await dj(),fA!==`windows`)try{await uj()}catch(e){e instanceof Error&&Mr(`System package installation failed. Re-synchronizing package index files and retrying installation. Error details: ${e.message.toLocaleLowerCase()}`),await fj(),await uj()}let e=[];fA===`windows`&&(MA===`msys2`&&e.push(`--cygwin-location=${_A}`),MA===`cygwin`&&(e.push(`--cygwin-internal-install`),e.push(`--cygwin-extra-packages=${mA.join(`,`)}`))),kA&&e.push(`--disable-sandboxing`),await br(`opam`,[`init`,`--auto-setup`,`--bare`,...e,`--enable-shell-hook`])})}async function gj(){await mj(),await hj()}async function _j(e){await Ir(`Installing OCaml compiler`,async()=>{let t=[e];fA===`windows`&&NA===`msvc`&&t.push(`system-msvc`),await br(`opam`,[`switch`,`--no-install`,`--packages=${t.join(`,`)}`,`create`,`.`])})}async function vj(e){e.length!==0&&await Ir(`Pinning local packages`,async()=>{for(let t of e){let e=L.basename(t,`.opam`),n=L.dirname(t);await br(`opam`,[`pin`,`--no-action`,`add`,`${e}.dev`,`.`],{cwd:n})}})}async function yj(e,t){await br(`opam`,[`repository`,`--all-switches`,`--set-default`,`add`,e,t])}async function bj(e){await Ir(`Initialising opam repositories`,async()=>{for(let[t,n]of e)await yj(t,n)})}async function xj(e){await br(`opam`,[`repository`,`--all-switches`,`remove`,e])}async function Sj(){let e=await xr(`opam`,[`repository`,`--all-switches`,`--short`,`list`],{ignoreReturnCode:!0,silent:!0});return e.exitCode===0?e.stdout.split(` `).map(e=>e.trim()).filter(e=>e.length>0):[]}async function Cj(){await Ir(`Removing opam repositories`,async()=>{let e=await Sj();for(let t of e)await xj(t)})}async function wj(){try{await Ir(`Updating opam repositories`,async()=>{await br(`opam`,[`update`])})}catch(e){e instanceof Error&&Mr(`Failed to update opam. Error details: ${e.message.toLocaleLowerCase()}`)}}function Tj(e){return aa.validRange(e,{loose:!0})!==null}function Ej(e){let t=L.basename(e).replace(`ocaml-base-compiler.`,``),n=aa.parse(t.replace(`~`,`-`),{loose:!0});if(n===null)return;let r=n.major<5&&n.minor<10?`0${n.minor}`:n.minor,i=n.prerelease.length>0?`-${n.prerelease.join(`.`)}`:``;return[`${n.major}.${r}.${n.patch}${i}`,t]}async function Dj(){let{data:e}=await aj.rest.repos.getContent({owner:`ocaml`,repo:`opam-repository`,path:`packages/ocaml-base-compiler`});return Array.isArray(e)?new Map(e.values().map(({path:e})=>Ej(e)).filter(e=>e!==void 0)):new Map}async function Oj(e){let t=await Dj(),n=t.keys().toArray(),r=aa.maxSatisfying(n,e,{loose:!0});if(r!==null){let e=t.get(r);if(e!==void 0)return e}let i=aa.maxSatisfying(n,e,{loose:!0,includePrerelease:!0});if(i!==null){let e=t.get(i);if(e!==void 0)return e}throw Error(`Could not find any OCaml compiler version matching '${e}' in the opam-repository. Please check if you specified a valid version number or version range.`)}const kj=(async()=>{let e=wA.replace(`~`,`-`);return Tj(e)?`ocaml-base-compiler.${await Oj(e)}`:wA})();async function Aj(e){let t=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.txt`);await F.writeFile(t,`${e.join(` `)}\n`);try{await br(`diskpart`,[`/s`,t])}finally{await F.rm(t,{force:!0})}}async function jj(){let e=L.join(ee.tmpdir(),`setup-ocaml-dune-vhdx-${process.pid}.ps1`);await F.writeFile(e,[`try { Get-MpComputerStatus | Select-Object RealTimeProtectionEnabled, IsTamperProtected | Format-List }`,`catch { Write-Host "Defender status unavailable: $($_.Exception.Message)" }`,`Add-MpPreference -ExclusionPath 'X:\\' -ErrorAction SilentlyContinue`].join(` -`));try{await br(`powershell`,[`-NoProfile`,`-ExecutionPolicy`,`Bypass`,`-File`,e])}catch(e){e instanceof Error&&jr(`Failed to exclude dune cache volume from Defender: ${e.message}`)}finally{await F.rm(e,{force:!0})}}async function Mj(){await Aj([`create vdisk file="${CA}" maximum=4096 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Nj(){await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Pj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Fj(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Ij(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Lj(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Ij();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function Rj(){return fA===`windows`?[CA]:[SA]}function zj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function Bj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Vj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Hj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Fj(),n=await Bj(e,t,Rj());return fA===`windows`&&(n?await Nj():await Mj()),n})}async function Uj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Lj();return await Bj(e,t,zj())})}async function Wj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Fj(),t=Rj();fA===`windows`&&await Pj(),await Vj(e,t)})}async function Gj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Lj(),n=zj();await Bj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Vj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Gj as i,br as k,Cj as l,AA as m,Uj as n,_j as o,bA as p,Wj as r,vj as s,Hj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file +`));try{await br(`powershell`,[`-NoProfile`,`-ExecutionPolicy`,`Bypass`,`-File`,e])}catch(e){e instanceof Error&&jr(`Failed to exclude dune cache volume from Defender: ${e.message}`)}finally{await F.rm(e,{force:!0})}}async function Mj(){await Aj([`create vdisk file="${CA}" maximum=12288 type=expandable`,`select vdisk file="${CA}"`,`attach vdisk`,`create partition primary`,`format fs=ntfs quick label="dune"`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Nj(){await Aj([`select vdisk file="${CA}"`,`attach vdisk`,`select partition 1`,`assign letter=X`]),await F.mkdir(SA,{recursive:!0}),await jj()}async function Pj(){let e=L.join(`X:\\`,`_build`),t=L.join(gA,`_build`);await F.mkdir(e,{recursive:!0}),await F.rm(t,{recursive:!0,force:!0}),await br(`cmd`,[`/c`,`mklink`,`/J`,t,e])}async function Fj(){try{await Aj([`select vdisk file="${CA}"`,`detach vdisk`])}catch(e){e instanceof Error&&jr(`Failed to detach dune cache VHDX before saving: ${e.message}`)}}async function Ij(){let{workflow:e,job:t,runId:n}=uO,r=[await kj,e,t].join(),i=O.createHash(`sha256`).update(r).digest(`hex`),a=`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-${n}`,o=[a,`${jA}-setup-ocaml-dune-${fA}-${dA}-${i}-`,`${jA}-setup-ocaml-dune-${fA}-${dA}-`];return U(`dune cache key: ${r}`),{key:a,restoreKeys:o}}async function Lj(){let{stdout:e}=await xr(`vswhere`,[`-latest`,`-property`,`installationVersion`],{silent:!0});return e.trim()}async function Rj(){let{version:e}=await pj,t=kA?`nosandbox`:`sandbox`,n=await kj,r=EA.map(([e,t])=>t).join(),i=[fA,(await lA.osInfo()).release,dA,e,n,r,t];if(fA===`windows`&&(i.push(MA),i.push(NA),NA===`msvc`)){let e=await Lj();i.push(e)}i.push(`v2`);let a=i.join(),o=`${jA}-setup-ocaml-opam-${O.createHash(`sha256`).update(a).digest(`hex`)}`,s=[o];return U(`opam cache key: ${a}`),{key:o,restoreKeys:s}}function zj(){return fA===`windows`?[CA]:[SA]}function Bj(){let e=[vA,L.join(gA,`_opam`)];if(fA===`windows`){let{repo:{repo:t}}=uO;if(MA===`msys2`){let n=L.posix.join(`/d`,`a`,t,t,`_opam`);e.push(n)}if(MA===`cygwin`){let n=L.posix.join(`/cygdrive`,`d`,`a`,t,t,`_opam`);e.push(n)}}return e}async function Vj(e,t,n,r){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{let i=await(0,cA.backOff)(async()=>await $T(n,e,t,{useAzureSdk:!0,...r}),{numOfAttempts:5});return Nr(i?`Cache restored from key: ${i}`:`Cache is not found for input keys: ${[e,...t].join(`, `)}`),i}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`);return}}async function Hj(e,t){if(!QT()){Nr(`Actions cache service feature is unavailable`);return}try{await(0,cA.backOff)(async()=>await nE(t,e,{useAzureSdk:!0}),{numOfAttempts:5})}catch(e){e instanceof Error&&Nr(e.message),Mr(`An internal error has occurred in cache backend. Please check https://www.githubstatus.com for any ongoing issue in actions.`)}}async function Uj(){return await Ir(`Restoring dune cache`,async()=>{let{key:e,restoreKeys:t}=await Ij(),n=await Vj(e,t,zj());return fA===`windows`&&(n?await Nj():await Mj(),await Pj()),n})}async function Wj(){return await Ir(`Restoring opam cache`,async()=>{let{key:e,restoreKeys:t}=await Rj();return await Vj(e,t,Bj())})}async function Gj(){await Ir(`Saving dune cache`,async()=>{let{key:e}=await Ij(),t=zj();fA===`windows`&&await Fj(),await Hj(e,t)})}async function Kj(){await Ir(`Saving opam cache`,async()=>{let{key:e,restoreKeys:t}=await Rj(),n=Bj();await Vj(e,t,n,{lookupOnly:!0})?Nr(`Cache entry with the same key, version, and scope already exists`):(await br(`opam`,[`clean`,`--all-switches`,`--download-cache`,`--logs`,`--repo-cache`,`--untracked`,`--unused-repositories`]),await Hj(e,n))})}export{Er as C,Ir as D,wr as E,kr as O,MA as S,Ar as T,DA as _,kj as a,fA as b,bj as c,wj as d,xA as f,OA as g,SA as h,Kj as i,br as k,Cj as l,AA as m,Wj as n,_j as o,bA as p,Gj as r,vj as s,Uj as t,gj as u,EA as v,U as w,TA as x,vA as y}; \ No newline at end of file diff --git a/dist/index.mjs b/dist/index.mjs index 445447e9..8b4d96c3 100644 --- a/dist/index.mjs +++ b/dist/index.mjs @@ -1,4 +1,4 @@ import{C as e,D as t,E as n,O as r,S as i,T as a,_ as o,a as s,b as c,c as l,d as u,f as d,g as f,h as p,i as m,k as h,l as ee,m as te,n as ne,o as re,p as ie,s as ae,t as oe,u as se,v as ce,w as g,x as le,y as ue}from"./cache.mjs";import*as _ from"node:process";import*as de from"os";import*as v from"fs";import*as y from"path";import b from"assert";import{promises as fe}from"node:fs";import*as pe from"node:os";function me(e){let t={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return e&&(typeof e.followSymbolicLinks==`boolean`&&(t.followSymbolicLinks=e.followSymbolicLinks,g(`followSymbolicLinks '${t.followSymbolicLinks}'`)),typeof e.implicitDescendants==`boolean`&&(t.implicitDescendants=e.implicitDescendants,g(`implicitDescendants '${t.implicitDescendants}'`)),typeof e.matchDirectories==`boolean`&&(t.matchDirectories=e.matchDirectories,g(`matchDirectories '${t.matchDirectories}'`)),typeof e.omitBrokenSymbolicLinks==`boolean`&&(t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks,g(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)),typeof e.excludeHiddenFiles==`boolean`&&(t.excludeHiddenFiles=e.excludeHiddenFiles,g(`excludeHiddenFiles '${t.excludeHiddenFiles}'`))),t}const x=process.platform===`win32`;function S(e){if(e=D(e),x&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e))return e;let t=y.dirname(e);return x&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)&&(t=D(t)),t}function C(e,t){if(b(e,`ensureAbsoluteRoot parameter 'root' must not be empty`),b(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`),w(t))return t;if(x){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();return b(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),t[0].toUpperCase()===e[0].toUpperCase()?t.length===2?`${t[0]}:\\${e.substr(3)}`:(e.endsWith(`\\`)||(e+=`\\`),`${t[0]}:\\${e.substr(3)}${t.substr(2)}`):`${t[0]}:\\${t.substr(2)}`}else if(E(t).match(/^\\$|^\\[^\\]/)){let e=process.cwd();return b(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`),`${e[0]}:\\${t.substr(1)}`}}return b(w(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`),e.endsWith(`/`)||x&&e.endsWith(`\\`)||(e+=y.sep),e+t}function w(e){return b(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`),e=E(e),x?e.startsWith(`\\\\`)||/^[A-Z]:\\/i.test(e):e.startsWith(`/`)}function T(e){return b(e,`isRooted parameter 'itemPath' must not be empty`),e=E(e),x?e.startsWith(`\\`)||/^[A-Z]:/i.test(e):e.startsWith(`/`)}function E(e){return e||=``,x?(e=e.replace(/\//g,`\\`),(/^\\\\+[^\\]/.test(e)?`\\`:``)+e.replace(/\\\\+/g,`\\`)):e.replace(/\/\/+/g,`/`)}function D(e){return e?(e=E(e),!e.endsWith(y.sep)||e===y.sep||x&&/^[A-Z]:\\$/i.test(e)?e:e.substr(0,e.length-1)):``}var O;(function(e){e[e.None=0]=`None`,e[e.Directory=1]=`Directory`,e[e.File=2]=`File`,e[e.All=3]=`All`})(O||={});const he=process.platform===`win32`;function ge(e){e=e.filter(e=>!e.negate);let t={};for(let n of e){let e=he?n.searchPath.toUpperCase():n.searchPath;t[e]=`candidate`}let n=[];for(let r of e){let e=he?r.searchPath.toUpperCase():r.searchPath;if(t[e]===`included`)continue;let i=!1,a=e,o=S(a);for(;o!==a;){if(t[o]){i=!0;break}a=o,o=S(a)}i||(n.push(r.searchPath),t[e]=`included`)}return n}function _e(e,t){let n=O.None;for(let r of e)r.negate?n&=~r.match(t):n|=r.match(t);return n}function ve(e,t){return e.some(e=>!e.negate&&e.partialMatch(t))}const ye=(e,t,n)=>{let r=e instanceof RegExp?k(e,n):e,i=t instanceof RegExp?k(t,n):t,a=r!==null&&i!=null&&be(r,i,n);return a&&{start:a[0],end:a[1],pre:n.slice(0,a[0]),body:n.slice(a[0]+r.length,a[1]),post:n.slice(a[1]+i.length)}},k=(e,t)=>{let n=t.match(e);return n?n[0]:null},be=(e,t,n)=>{let r,i,a,o,s,c=n.indexOf(e),l=n.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(r=[],a=n.length;u>=0&&!s;){if(u===c)r.push(u),c=n.indexOf(e,u+1);else if(r.length===1){let e=r.pop();e!==void 0&&(s=[e,l])}else i=r.pop(),i!==void 0&&i=0?c:l}r.length&&o!==void 0&&(s=[a,o])}return s},A=`\0SLASH`+Math.random()+`\0`,j=`\0OPEN`+Math.random()+`\0`,M=`\0CLOSE`+Math.random()+`\0`,N=`\0COMMA`+Math.random()+`\0`,P=`\0PERIOD`+Math.random()+`\0`,xe=new RegExp(A,`g`),Se=new RegExp(j,`g`),Ce=new RegExp(M,`g`),we=new RegExp(N,`g`),Te=new RegExp(P,`g`),Ee=/\\\\/g,De=/\\{/g,Oe=/\\}/g,ke=/\\,/g,Ae=/\\\./g;function F(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function je(e){return e.replace(Ee,A).replace(De,j).replace(Oe,M).replace(ke,N).replace(Ae,P)}function Me(e){return e.replace(xe,`\\`).replace(Se,`{`).replace(Ce,`}`).replace(we,`,`).replace(Te,`.`)}function I(e){if(!e)return[``];let t=[],n=ye(`{`,`}`,e);if(!n)return e.split(`,`);let{pre:r,body:i,post:a}=n,o=r.split(`,`);o[o.length-1]+=`{`+i+`}`;let s=I(a);return a.length&&(o[o.length-1]+=s.shift(),o.push.apply(o,s)),t.push.apply(t,o),t}function Ne(e,t={}){if(!e)return[];let{max:n=1e5}=t;return e.slice(0,2)===`{}`&&(e=`\\{\\}`+e.slice(2)),L(je(e),n,!0).map(Me)}function Pe(e){return`{`+e+`}`}function Fe(e){return/^-?0\d/.test(e)}function Ie(e,t){return e<=t}function Le(e,t){return e>=t}function L(e,t,n){let r=[],i=ye(`{`,`}`,e);if(!i)return[e];let a=i.pre,o=i.post.length?L(i.post,t,!1):[``];if(/\$$/.test(i.pre))for(let e=0;e=0;if(!l&&!u)return i.post.match(/,(?!,).*\}/)?(e=i.pre+`{`+i.body+M+i.post,L(e,t,!0)):[e];let d;if(l)d=i.body.split(/\.\./);else if(d=I(i.body),d.length===1&&d[0]!==void 0&&(d=L(d[0],t,!1).map(Pe),d.length===1))return o.map(e=>i.pre+d[0]+e);let f;if(l&&d[0]!==void 0&&d[1]!==void 0){let e=F(d[0]),n=F(d[1]),r=Math.max(d[0].length,d[1].length),i=d.length===3&&d[2]!==void 0?Math.max(Math.abs(F(d[2])),1):1,a=Ie;n0){let n=Array(t+1).join(`0`);e=s<0?`-`+n+e.slice(1):n+e}}f.push(e)}}else{f=[];for(let e=0;e{if(typeof e!=`string`)throw TypeError(`invalid pattern`);if(e.length>65536)throw TypeError(`pattern is too long`)},Re={"[:alnum:]":[`\\p{L}\\p{Nl}\\p{Nd}`,!0],"[:alpha:]":[`\\p{L}\\p{Nl}`,!0],"[:ascii:]":[`\\x00-\\x7f`,!1],"[:blank:]":[`\\p{Zs}\\t`,!0],"[:cntrl:]":[`\\p{Cc}`,!0],"[:digit:]":[`\\p{Nd}`,!0],"[:graph:]":[`\\p{Z}\\p{C}`,!0,!0],"[:lower:]":[`\\p{Ll}`,!0],"[:print:]":[`\\p{C}`,!0],"[:punct:]":[`\\p{P}`,!0],"[:space:]":[`\\p{Z}\\t\\r\\n\\v\\f`,!0],"[:upper:]":[`\\p{Lu}`,!0],"[:word:]":[`\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}`,!0],"[:xdigit:]":[`A-Fa-f0-9`,!1]},z=e=>e.replace(/[[\]\\-]/g,`\\$&`),ze=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Be=e=>e.join(``),Ve=(e,t)=>{let n=t;if(e.charAt(n)!==`[`)throw Error(`not in a brace expression`);let r=[],i=[],a=n+1,o=!1,s=!1,c=!1,l=!1,u=n,d=``;WHILE:for(;ad?r.push(z(d)+`-`+z(t)):t===d&&r.push(z(t)),d=``,a++;continue}if(e.startsWith(`-]`,a+1)){r.push(z(t+`-`)),a+=2;continue}if(e.startsWith(`-`,a+1)){d=t,a+=2;continue}r.push(z(t)),a++}if(un?t?e.replace(/\[([^/\\])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\])\]/g,`$1$2`).replace(/\\([^/])/g,`$1`):t?e.replace(/\[([^/\\{}])\]/g,`$1`):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,`$1$2`).replace(/\\([^/{}])/g,`$1`);var V;const He=new Set([`!`,`?`,`+`,`*`,`@`]),H=e=>He.has(e),Ue=e=>H(e.type),We=new Map([[`!`,[`@`]],[`?`,[`?`,`@`]],[`@`,[`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`]]]),Ge=new Map([[`!`,[`?`]],[`@`,[`?`]],[`+`,[`?`,`*`]]]),Ke=new Map([[`!`,[`?`,`@`]],[`?`,[`?`,`@`]],[`@`,[`?`,`@`]],[`*`,[`*`,`+`,`?`,`@`]],[`+`,[`+`,`@`,`?`,`*`]]]),qe=new Map([[`!`,new Map([[`!`,`@`]])],[`?`,new Map([[`*`,`*`],[`+`,`*`]])],[`@`,new Map([[`!`,`!`],[`?`,`?`],[`@`,`@`],[`*`,`*`],[`+`,`+`]])],[`+`,new Map([[`?`,`*`],[`*`,`*`]])]]),U=`(?!\\.)`,Je=new Set([`[`,`.`]),Ye=new Set([`..`,`.`]),Xe=new Set(`().*{}+?[]^$\\!`),Ze=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`),Qe=`[^/]+?`;let $e=0;var W=class{type;#e;#t;#n=!1;#r=[];#i;#a;#o;#s=!1;#c;#l;#u=!1;id=++$e;get depth(){return(this.#i?.depth??-1)+1}[Symbol.for(`nodejs.util.inspect.custom`)](){return{"@@type":`AST`,id:this.id,type:this.type,root:this.#e.id,parent:this.#i?.id,depth:this.depth,partsLength:this.#r.length,parts:this.#r}}constructor(e,t,n={}){this.type=e,e&&(this.#t=!0),this.#i=t,this.#e=this.#i?this.#i.#e:this,this.#c=this.#e===this?n:this.#e.#c,this.#o=this.#e===this?[]:this.#e.#o,e===`!`&&!this.#e.#s&&this.#o.push(this),this.#a=this.#i?this.#i.#r.length:0}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!=`string`&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l===void 0?this.type?this.#l=this.type+`(`+this.#r.map(e=>String(e)).join(`|`)+`)`:this.#l=this.#r.map(e=>String(e)).join(``):this.#l}#d(){if(this!==this.#e)throw Error(`should only call on root`);if(this.#s)return this;this.toString(),this.#s=!0;let e;for(;e=this.#o.pop();){if(e.type!==`!`)continue;let t=e,n=t.#i;for(;n;){for(let r=t.#a+1;!n.type&&rtypeof e==`string`?e:e.toJSON()):[this.type,...this.#r.map(e=>e.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#s&&this.#i?.type===`!`)&&e.push({}),e}isStart(){if(this.#e===this)return!0;if(!this.#i?.isStart())return!1;if(this.#a===0)return!0;let e=this.#i;for(let t=0;ttypeof e!=`string`),r=this.#r.map(t=>{let[r,i,a,o]=typeof t==`string`?V.#C(t,this.#t,n):t.toRegExpSource(e);return this.#t=this.#t||a,this.#n=this.#n||o,r}).join(``),i=``;if(this.isStart()&&typeof this.#r[0]==`string`&&!(this.#r.length===1&&Ye.has(this.#r[0]))){let n=Je,a=t&&n.has(r.charAt(0))||r.startsWith(`\\.`)&&n.has(r.charAt(2))||r.startsWith(`\\.\\.`)&&n.has(r.charAt(4)),o=!t&&!e&&n.has(r.charAt(0));i=a?`(?!(?:^|/)\\.\\.?(?:$|/))`:o?U:``}let a=``;return this.isEnd()&&this.#e.#s&&this.#i?.type===`!`&&(a=`(?:$|\\/)`),[i+r+a,B(r),this.#t=!!this.#t,this.#n]}let n=this.type===`*`||this.type===`+`,r=this.type===`!`?`(?:(?!(?:`:`(?:`,i=this.#S(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!==`!`){let e=this.toString(),t=this;return t.#r=[e],t.type=null,t.#t=void 0,[e,B(this.toString()),!1,!1]}let a=!n||e||t?``:this.#S(!0);a===i&&(a=``),a&&(i=`(?:${i})(?:${a})*?`);let o=``;if(this.type===`!`&&this.#u)o=(this.isStart()&&!t?U:``)+Qe;else{let n=this.type===`!`?`))`+(this.isStart()&&!t&&!e?U:``)+`[^/]*?)`:this.type===`@`?`)`:this.type===`?`?`)?`:this.type===`+`&&a?`)`:this.type===`*`&&a?`)?`:`)${this.type}`;o=r+i+n}return[o,B(i),this.#t=!!this.#t,this.#n]}#x(){if(Ue(this)){let e=0,t=!1;do{t=!0;for(let e=0;e{if(typeof t==`string`)throw Error(`string type in extglob ast??`);let[n,r,i,a]=t.toRegExpSource(e);return this.#n=this.#n||a,n}).filter(e=>!(this.isStart()&&this.isEnd())||!!e).join(`|`)}static#C(e,t,n=!1){let r=!1,i=``,a=!1,o=!1;for(let s=0;sn?t?e.replace(/[?*()[\]{}]/g,`[$&]`):e.replace(/[?*()[\]\\{}]/g,`\\$&`):t?e.replace(/[?*()[\]]/g,`[$&]`):e.replace(/[?*()[\]\\]/g,`\\$&`),G=(e,t,n={})=>(R(t),!n.nocomment&&t.charAt(0)===`#`?!1:new Y(t,n).match(e)),tt=/^\*+([^+@!?*[(]*)$/,nt=e=>t=>!t.startsWith(`.`)&&t.endsWith(e),rt=e=>t=>t.endsWith(e),it=e=>(e=e.toLowerCase(),t=>!t.startsWith(`.`)&&t.toLowerCase().endsWith(e)),at=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ot=/^\*+\.\*+$/,st=e=>!e.startsWith(`.`)&&e.includes(`.`),ct=e=>e!==`.`&&e!==`..`&&e.includes(`.`),lt=/^\.\*+$/,ut=e=>e!==`.`&&e!==`..`&&e.startsWith(`.`),dt=/^\*+$/,ft=e=>e.length!==0&&!e.startsWith(`.`),pt=e=>e.length!==0&&e!==`.`&&e!==`..`,mt=/^\?+([^+@!?*[(]*)?$/,ht=([e,t=``])=>{let n=yt([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},gt=([e,t=``])=>{let n=bt([e]);return t?(t=t.toLowerCase(),e=>n(e)&&e.toLowerCase().endsWith(t)):n},_t=([e,t=``])=>{let n=bt([e]);return t?e=>n(e)&&e.endsWith(t):n},vt=([e,t=``])=>{let n=yt([e]);return t?e=>n(e)&&e.endsWith(t):n},yt=([e])=>{let t=e.length;return e=>e.length===t&&!e.startsWith(`.`)},bt=([e])=>{let t=e.length;return e=>e.length===t&&e!==`.`&&e!==`..`},xt=typeof process==`object`&&process?typeof process.env==`object`&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:`posix`,St={win32:{sep:`\\`},posix:{sep:`/`}};G.sep=xt===`win32`?St.win32.sep:St.posix.sep;const K=Symbol(`globstar **`);G.GLOBSTAR=K,G.filter=(e,t={})=>n=>G(n,e,t);const q=(e,t={})=>Object.assign({},e,t);G.defaults=e=>{if(!e||typeof e!=`object`||!Object.keys(e).length)return G;let t=G;return Object.assign((n,r,i={})=>t(n,r,q(e,i)),{Minimatch:class extends t.Minimatch{constructor(t,n={}){super(t,q(e,n))}static defaults(n){return t.defaults(q(e,n)).Minimatch}},AST:class extends t.AST{constructor(t,n,r={}){super(t,n,q(e,r))}static fromGlob(n,r={}){return t.AST.fromGlob(n,q(e,r))}},unescape:(n,r={})=>t.unescape(n,q(e,r)),escape:(n,r={})=>t.escape(n,q(e,r)),filter:(n,r={})=>t.filter(n,q(e,r)),defaults:n=>t.defaults(q(e,n)),makeRe:(n,r={})=>t.makeRe(n,q(e,r)),braceExpand:(n,r={})=>t.braceExpand(n,q(e,r)),match:(n,r,i={})=>t.match(n,r,q(e,i)),sep:t.sep,GLOBSTAR:K})};const Ct=(e,t={})=>(R(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:Ne(e,{max:t.braceExpandMax}));G.braceExpand=Ct,G.makeRe=(e,t={})=>new Y(e,t).makeRe(),G.match=(e,t,n={})=>{let r=new Y(t,n);return e=e.filter(e=>r.match(e)),r.options.nonull&&!e.length&&e.push(t),e};const J=/[?*]|[+@!]\(.*?\)|\[|\]/,wt=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,`\\$&`);var Y=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;regexp;constructor(e,t={}){R(e),t||={},this.options=t,this.maxGlobstarRecursion=t.maxGlobstarRecursion??200,this.pattern=e,this.platform=t.platform||xt,this.isWindows=this.platform===`win32`,this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,`/`)),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot===void 0?!!(this.isWindows&&this.nocase):t.windowsNoMagicRoot,this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let t of e)if(typeof t!=`string`)return!0;return!1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)===`#`){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...e)=>console.error(...e)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(e=>this.slashSplit(e));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let r=this.globParts.map((e,t,n)=>{if(this.isWindows&&this.windowsNoMagicRoot){let t=e[0]===``&&e[1]===``&&(e[2]===`?`||!J.test(e[2]))&&!J.test(e[3]),n=/^[a-z]:/i.test(e[0]);if(t)return[...e.slice(0,4),...e.slice(4).map(e=>this.parse(e))];if(n)return[e[0],...e.slice(1).map(e=>this.parse(e))]}return e.map(e=>this.parse(e))});if(this.debug(this.pattern,r),this.set=r.filter(e=>e.indexOf(!1)===-1),this.isWindows)for(let e=0;e=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):e=t>=1?this.levelOneOptimize(e):this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(e=>{let t=-1;for(;(t=e.indexOf(`**`,t+1))!==-1;){let n=t;for(;e[n+1]===`**`;)n++;n!==t&&e.splice(t,n-t)}return e})}levelOneOptimize(e){return e.map(e=>(e=e.reduce((e,t)=>{let n=e[e.length-1];return t===`**`&&n===`**`?e:t===`..`&&n&&n!==`..`&&n!==`.`&&n!==`**`?(e.pop(),e):(e.push(t),e)},[]),e.length===0?[``]:e))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let n=1;nr&&n.splice(r+1,i-r);let a=n[r+1],o=n[r+2],s=n[r+3];if(a!==`..`||!o||o===`.`||o===`..`||!s||s===`.`||s===`..`)continue;t=!0,n.splice(r,1);let c=n.slice(0);c[r]=`**`,e.push(c),r--}if(!this.preserveMultipleSlashes){for(let e=1;ee.length)}partsMatch(e,t,n=!1){let r=0,i=0,a=[],o=``;for(;r=2&&(e=this.levelTwoFileOptimize(e)),t.includes(K)?this.#e(e,t,n,r,i):this.#n(e,t,n,r,i)}#e(e,t,n,r,i){let a=t.indexOf(K,i),o=t.lastIndexOf(K),[s,c,l]=n?[t.slice(i,a),t.slice(a+1),[]]:[t.slice(i,a),t.slice(a+1,o),t.slice(o+1)];if(s.length){let t=e.slice(r,r+s.length);if(!this.#n(t,s,n,0,0))return!1;r+=s.length,i+=s.length}let u=0;if(l.length){if(l.length+r>e.length)return!1;let t=e.length-l.length;if(this.#n(e,l,n,t,0))u=l.length;else{if(e[e.length-1]!==``||r+l.length===e.length||(t--,!this.#n(e,l,n,t,0)))return!1;u=l.length+1}}if(!c.length){let t=!!u;for(let n=r;n{let t=e.map(e=>{if(e instanceof RegExp)for(let t of e.flags.split(``))r.add(t);return typeof e==`string`?wt(e):e===K?K:e._src});t.forEach((e,r)=>{let i=t[r+1],a=t[r-1];e!==K||a===K||(a===void 0?i!==void 0&&i!==K?t[r+1]=`(?:\\/|`+n+`\\/)?`+i:t[r]=n:i===void 0?t[r-1]=a+`(?:\\/|\\/`+n+`)?`:i!==K&&(t[r-1]=a+`(?:\\/|\\/`+n+`\\/)`+i,t[r+1]=K))});let i=t.filter(e=>e!==K);if(this.partial&&i.length>=1){let e=[];for(let t=1;t<=i.length;t++)e.push(i.slice(0,t).join(`/`));return`(?:`+e.join(`|`)+`)`}return i.join(`/`)}).join(`|`),[a,o]=e.length>1?[`(?:`,`)`]:[``,``];i=`^`+a+i+o+`$`,this.partial&&(i=`^(?:\\/|`+a+i.slice(1,-1)+o+`)$`),this.negate&&(i=`^(?!`+i+`).+$`);try{this.regexp=new RegExp(i,[...r].join(``))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split(`/`):this.isWindows&&/^\/\/[^/]+/.test(e)?[``,...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug(`match`,e,this.pattern),this.comment)return!1;if(this.empty)return e===``;if(e===`/`&&t)return!0;let n=this.options;this.isWindows&&(e=e.split(`\\`).join(`/`));let r=this.slashSplit(e);this.debug(this.pattern,`split`,r);let i=this.set;this.debug(this.pattern,`set`,i);let a=r[r.length-1];if(!a)for(let e=r.length-2;!a&&e>=0;e--)a=r[e];for(let e of i){let i=r;if(n.matchBase&&e.length===1&&(i=[a]),this.matchOne(i,e,t))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return G.defaults(e).Minimatch}};G.AST=W,G.Minimatch=Y,G.escape=et,G.unescape=B;const Tt=process.platform===`win32`;var X=class{constructor(e){if(this.segments=[],typeof e==`string`)if(b(e,`Parameter 'itemPath' must not be empty`),e=D(e),!T(e))this.segments=e.split(y.sep);else{let t=e,n=S(t);for(;n!==t;){let e=y.basename(t);this.segments.unshift(e),t=n,n=S(t)}this.segments.unshift(t)}else{b(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;te.getLiteral(t)).filter(e=>!o&&!(o=e===``));this.searchPath=new X(s).toString(),this.rootRegExp=new RegExp(e.regExpEscape(s[0]),Z?`i`:``),this.isImplicitPattern=n;let c={dot:!0,nobrace:!0,nocase:Z,nocomment:!0,noext:!0,nonegate:!0};a=Z?a.replace(/\\/g,`/`):a,this.minimatch=new Y(a,c)}match(e){return this.segments[this.segments.length-1]===`**`?(e=E(e),!e.endsWith(y.sep)&&this.isImplicitPattern===!1&&(e=`${e}${y.sep}`)):e=D(e),this.minimatch.match(e)?this.trailingSeparator?O.Directory:O.All:O.None}partialMatch(e){return e=D(e),S(e)===e?this.rootRegExp.test(e):this.minimatch.matchOne(e.split(Z?/\\+/:/\/+/),this.minimatch.set[0],!0)}static globEscape(e){return(Z?e:e.replace(/\\/g,`\\\\`)).replace(/(\[)(?=[^/]+\])/g,`[[]`).replace(/\?/g,`[?]`).replace(/\*/g,`[*]`)}static fixupPattern(t,n){b(t,`pattern cannot be empty`);let r=new X(t).segments.map(t=>e.getLiteral(t));if(b(r.every((e,t)=>(e!==`.`||t===0)&&e!==`..`),`Invalid pattern '${t}'. Relative pathing '.' and '..' is not allowed.`),b(!T(t)||r[0],`Invalid pattern '${t}'. Root segment must not contain globs.`),t=E(t),t===`.`||t.startsWith(`.${y.sep}`))t=e.globEscape(process.cwd())+t.substr(1);else if(t===`~`||t.startsWith(`~${y.sep}`))n||=de.homedir(),b(n,`Unable to determine HOME directory`),b(w(n),`Expected HOME directory to be a rooted path. Actual '${n}'`),t=e.globEscape(n)+t.substr(1);else if(Z&&(t.match(/^[A-Z]:$/i)||t.match(/^[A-Z]:[^\\]/i))){let n=C(`C:\\dummy-root`,t.substr(0,2));t.length>2&&!n.endsWith(`\\`)&&(n+=`\\`),t=e.globEscape(n)+t.substr(2)}else if(Z&&(t===`\\`||t.match(/^\\[^\\]/))){let n=C(`C:\\dummy-root`,`\\`);n.endsWith(`\\`)||(n+=`\\`),t=e.globEscape(n)+t.substr(1)}else t=C(e.globEscape(process.cwd()),t);return E(t)}static getLiteral(e){let t=``;for(let n=0;n=0){if(r.length>1)return``;if(r){t+=r,n=i;continue}}}t+=r}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,`\\$&`)}},Dt=class{constructor(e,t){this.path=e,this.level=t}},Q=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Ot=function(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==`function`?__values(e):e[Symbol.iterator](),n={},r(`next`),r(`throw`),r(`return`),n[Symbol.asyncIterator]=function(){return this},n);function r(t){n[t]=e[t]&&function(n){return new Promise(function(r,a){n=e[t](n),i(r,a,n.done,n.value)})}}function i(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}},$=function(e){return this instanceof $?(this.v=e,this):new $(e)},kt=function(e,t,n){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),s(`next`),s(`throw`),s(`return`,o),i[Symbol.asyncIterator]=function(){return this},i;function o(e){return function(t){return Promise.resolve(t).then(e,d)}}function s(e,t){r[e]&&(i[e]=function(t){return new Promise(function(n,r){a.push([e,t,n,r])>1||c(e,t)})},t&&(i[e]=t(i[e])))}function c(e,t){try{l(r[e](t))}catch(e){f(a[0][3],e)}}function l(e){e.value instanceof $?Promise.resolve(e.value.v).then(u,d):f(a[0][2],e)}function u(e){c(`next`,e)}function d(e){c(`throw`,e)}function f(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}};const At=process.platform===`win32`;var jt=class e{constructor(e){this.patterns=[],this.searchPaths=[],this.options=me(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Q(this,void 0,void 0,function*(){var e,t,n,r;let i=[];try{for(var a=!0,o=Ot(this.globGenerator()),s;s=yield o.next(),e=s.done,!e;a=!0){r=s.value,a=!1;let e=r;i.push(e)}}catch(e){t={error:e}}finally{try{!a&&!e&&(n=o.return)&&(yield n.call(o))}finally{if(t)throw t.error}}return i})}globGenerator(){return kt(this,arguments,function*(){let t=me(this.options),n=[];for(let e of this.patterns)n.push(e),t.implicitDescendants&&(e.trailingSeparator||e.segments[e.segments.length-1]!==`**`)&&n.push(new Et(e.negate,!0,e.segments.concat(`**`)));let r=[];for(let e of ge(n)){g(`Search path '${e}'`);try{yield $(v.promises.lstat(e))}catch(e){if(e.code===`ENOENT`)continue;throw e}r.unshift(new Dt(e,1))}let i=[];for(;r.length;){let a=r.pop(),o=_e(n,a.path),s=!!o||ve(n,a.path);if(!o&&!s)continue;let c=yield $(e.stat(a,t,i));if(c&&!(t.excludeHiddenFiles&&y.basename(a.path).match(/^\./)))if(c.isDirectory()){if(o&O.Directory&&t.matchDirectories)yield yield $(a.path);else if(!s)continue;let e=a.level+1,n=(yield $(v.promises.readdir(a.path))).map(t=>new Dt(y.join(a.path,t),e));r.push(...n.reverse())}else o&O.File&&(yield yield $(a.path))}})}static create(t,n){return Q(this,void 0,void 0,function*(){let r=new e(n);At&&(t=t.replace(/\r\n/g,` `),t=t.replace(/\r/g,` `));let i=t.split(` -`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new Et(e));return r.searchPaths.push(...ge(r.patterns)),r})}static stat(e,t,n){return Q(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield v.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){g(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield v.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield v.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){g(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Mt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Nt(e,t){return Mt(this,void 0,void 0,function*(){return yield jt.create(e,t)})}async function Pt(){await t(`Installing dune`,async()=>{await h(`opam`,[`install`,`dune`])})}async function Ft(){r()&&n(`OPAMVERBOSE`,1),n(`OPAMCOLOR`,`always`),n(`OPAMCONFIRMLEVEL`,`unsafe-yes`),n(`OPAMDOWNLOADJOBS`,pe.availableParallelism()),n(`OPAMERRLOGLEN`,0),n(`OPAMEXTERNALSOLVER`,`builtin-0install`),n(`OPAMPRECISETRACKING`,1),n(`OPAMRETRIES`,10),n(`OPAMROOT`,ue),n(`OPAMSOLVERTIMEOUT`,600),n(`OPAMYES`,1),c===`windows`&&(n(`HOME`,_.env.USERPROFILE),n(`MSYS`,`winsymlinks:native`),i===`cygwin`&&n(`CYGWIN`,`winsymlinks:native`),await t(`Configuring Windows symlink settings`,async()=>{await h(`fsutil`,[`behavior`,`query`,`SymlinkEvaluation`]),await h(`fsutil`,[`behavior`,`set`,`symlinkEvaluation`,`R2L:1`,`R2R:1`]),await h(`fsutil`,[`behavior`,`query`,`SymlinkEvaluation`])}));let a=await ne();await se(),c===`windows`&&i===`cygwin`&&(await fe.writeFile(d,`set -o igncr`),n(`BASH_ENV`,d),e(ie)),await ee(),await l(ce),a?await u():(await re(await s),le||await m()),te&&(await oe(),await Pt(),n(`DUNE_CACHE_ROOT`,p),n(`DUNE_CACHE`,`enabled`),n(`DUNE_CACHE_STORAGE_MODE`,`copy`)),n(`CLICOLOR_FORCE`,`1`),o&&await ae(await(await Nt(f)).glob()),await h(`opam`,[`config`,`report`])}async function It(){try{await Ft(),_.exit(0)}catch(e){e instanceof Error&&a(e.message),_.exit(1)}}It();export{}; \ No newline at end of file +`).map(e=>e.trim());for(let e of i)if(!e||e.startsWith(`#`))continue;else r.patterns.push(new Et(e));return r.searchPaths.push(...ge(r.patterns)),r})}static stat(e,t,n){return Q(this,void 0,void 0,function*(){let r;if(t.followSymbolicLinks)try{r=yield v.promises.stat(e.path)}catch(n){if(n.code===`ENOENT`){if(t.omitBrokenSymbolicLinks){g(`Broken symlink '${e.path}'`);return}throw Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}else r=yield v.promises.lstat(e.path);if(r.isDirectory()&&t.followSymbolicLinks){let t=yield v.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(e=>e===t)){g(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return}n.push(t)}return r})}},Mt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Nt(e,t){return Mt(this,void 0,void 0,function*(){return yield jt.create(e,t)})}async function Pt(){await t(`Installing dune`,async()=>{await h(`opam`,[`install`,`dune`])})}async function Ft(){r()&&n(`OPAMVERBOSE`,1),n(`OPAMCOLOR`,`always`),n(`OPAMCONFIRMLEVEL`,`unsafe-yes`),n(`OPAMDOWNLOADJOBS`,pe.availableParallelism()),n(`OPAMERRLOGLEN`,0),n(`OPAMEXTERNALSOLVER`,`builtin-0install`),n(`OPAMPRECISETRACKING`,1),n(`OPAMRETRIES`,10),n(`OPAMROOT`,ue),n(`OPAMSOLVERTIMEOUT`,600),n(`OPAMYES`,1),c===`windows`&&(n(`HOME`,_.env.USERPROFILE),n(`MSYS`,`winsymlinks:native`),i===`cygwin`&&n(`CYGWIN`,`winsymlinks:native`),await t(`Configuring Windows symlink settings`,async()=>{await h(`fsutil`,[`behavior`,`query`,`SymlinkEvaluation`]),await h(`fsutil`,[`behavior`,`set`,`symlinkEvaluation`,`R2L:1`,`R2R:1`]),await h(`fsutil`,[`behavior`,`query`,`SymlinkEvaluation`])}));let a=await ne();await se(),c===`windows`&&i===`cygwin`&&(await fe.writeFile(d,`set -o igncr`),n(`BASH_ENV`,d),e(ie)),await ee(),await l(ce),a?await u():(await re(await s),le||await m()),te&&(await oe(),await Pt(),n(`DUNE_CACHE_ROOT`,p),n(`DUNE_CACHE`,`enabled`),n(`DUNE_CACHE_STORAGE_MODE`,c===`windows`?`hardlink`:`copy`)),n(`CLICOLOR_FORCE`,`1`),o&&await ae(await(await Nt(f)).glob()),await h(`opam`,[`config`,`report`])}async function It(){try{await Ft(),_.exit(0)}catch(e){e instanceof Error&&a(e.message),_.exit(1)}}It();export{}; \ No newline at end of file diff --git a/packages/setup-ocaml/src/cache.ts b/packages/setup-ocaml/src/cache.ts index 09627a6a..4898972e 100644 --- a/packages/setup-ocaml/src/cache.ts +++ b/packages/setup-ocaml/src/cache.ts @@ -22,7 +22,12 @@ import { } from "./constants.js"; import { latestOpamRelease } from "./opam.js"; import { resolvedCompiler } from "./version.js"; -import { attachDuneCacheVhdx, createDuneCacheVhdx, detachDuneCacheVhdx } from "./vhdx.js"; +import { + attachDuneCacheVhdx, + colocateBuildDirOnCacheVolume, + createDuneCacheVhdx, + detachDuneCacheVhdx, +} from "./vhdx.js"; async function composeDuneCacheKeys() { const { workflow, job, runId } = github.context; @@ -179,6 +184,7 @@ export async function restoreDuneCache() { } else { await createDuneCacheVhdx(); } + await colocateBuildDirOnCacheVolume(); } return cacheKey; }); diff --git a/packages/setup-ocaml/src/constants.ts b/packages/setup-ocaml/src/constants.ts index 3f0d4e1b..4fa41ea6 100644 --- a/packages/setup-ocaml/src/constants.ts +++ b/packages/setup-ocaml/src/constants.ts @@ -123,7 +123,7 @@ export const DUNE_CACHE_ROOT = (() => { export const DUNE_CACHE_VHDX_PATH = path.join("C:", "dune-cache.vhdx"); -export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 4_096; +export const DUNE_CACHE_VHDX_MAX_SIZE_MB = 12_288; // ── Action Inputs ── diff --git a/packages/setup-ocaml/src/installer.ts b/packages/setup-ocaml/src/installer.ts index 1f6cb7b7..9ff4ee25 100644 --- a/packages/setup-ocaml/src/installer.ts +++ b/packages/setup-ocaml/src/installer.ts @@ -91,7 +91,10 @@ export async function installer() { await installDune(); core.exportVariable("DUNE_CACHE_ROOT", DUNE_CACHE_ROOT); core.exportVariable("DUNE_CACHE", "enabled"); - core.exportVariable("DUNE_CACHE_STORAGE_MODE", "copy"); + // On Windows the cache lives on its own VHDX volume, with the build dir + // junctioned onto the same volume (see restoreDuneCache), so hardlink mode + // works and avoids copy mode's "rmdir: Directory not empty" failures. + core.exportVariable("DUNE_CACHE_STORAGE_MODE", PLATFORM === "windows" ? "hardlink" : "copy"); } core.exportVariable("CLICOLOR_FORCE", "1"); if (OPAM_PIN) { diff --git a/packages/setup-ocaml/src/vhdx.ts b/packages/setup-ocaml/src/vhdx.ts index bd2752fb..d4dca74c 100644 --- a/packages/setup-ocaml/src/vhdx.ts +++ b/packages/setup-ocaml/src/vhdx.ts @@ -22,6 +22,7 @@ import { DUNE_CACHE_VHDX_DRIVE_LETTER, DUNE_CACHE_VHDX_MAX_SIZE_MB, DUNE_CACHE_VHDX_PATH, + GITHUB_WORKSPACE, } from "./constants.js"; // Run a diskpart script. diskpart reads its commands from a file (`/s`), so we @@ -95,6 +96,22 @@ export async function attachDuneCacheVhdx() { await hardenCacheVolumeAgainstHandleHolders(); } +// Put the dune build dir on the same volume as the cache so dune can use +// `hardlink` storage mode (hardlinks cannot cross volumes). We junction the +// workspace `_build` onto the cache volume rather than relocating it, so the +// consumer's relative `_build/...` paths keep resolving. `_build` therefore +// also lives in the image and is persisted across runs, which only helps +// incremental builds. +export async function colocateBuildDirOnCacheVolume() { + const cacheVolumeBuildDir = path.join(`${DUNE_CACHE_VHDX_DRIVE_LETTER}:\\`, "_build"); + const workspaceBuildDir = path.join(GITHUB_WORKSPACE, "_build"); + await fs.mkdir(cacheVolumeBuildDir, { recursive: true }); + // A fresh checkout has no `_build` yet; remove any stale one so the junction + // can be created. + await fs.rm(workspaceBuildDir, { recursive: true, force: true }); + await exec("cmd", ["/c", "mklink", "/J", workspaceBuildDir, cacheVolumeBuildDir]); +} + // Detach the image so the .vhdx file is flushed, consistent, and unlocked // before it is handed to `@actions/cache`. Best-effort: a failure here must not // prevent the (still-valid) image file from being saved.