Files
metadata-action/dist/index.cjs

313 lines
2.7 MiB
JavaScript
Raw Normal View History

var uIe=Object.create;var uz=Object.defineProperty;var pIe=Object.getOwnPropertyDescriptor;var AIe=Object.getOwnPropertyNames;var lIe=Object.getPrototypeOf,dIe=Object.prototype.hasOwnProperty;var i=(t,e)=>uz(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),bIe=(t,e)=>{for(var r in e)uz(t,r,{get:e[r],enumerable:!0})},MIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of AIe(e))!dIe.call(t,o)&&o!==r&&uz(t,o,{get:()=>e[o],enumerable:!(n=pIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?uIe(lIe(t)):{},MIe(e||!t||!t.__esModule?uz(r,"default",{value:t,enumerable:!0}):r,t));var U9=m(pA=>{"use strict";var V40=require("net"),gIe=require("tls"),JD=require("http"),_9=require("https"),EIe=require("events"),Y40=require("assert"),CIe=require("util");pA.httpOverHttp=yIe;pA.httpsOverHttp=BIe;pA.httpOverHttps=qIe;pA.httpsOverHttps=DIe;function yIe(t){var e=new zi(t);return e.request=JD.request,e}i(yIe,"httpOverHttp");function BIe(t){var e=new zi(t);return e.request=JD.request,e.createSocket=P9,e.defaultPort=443,e}i(BIe,"httpsOverHttp");function qIe(t){var e=new zi(t);return e.request=_9.request,e}i(qIe,"httpOverHttps");function DIe(t){var e=new zi(t);return e.request=_9.request,e.createSocket=P9,e.defaultPort=443,e}i(DIe,"httpsOverHttps");function zi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||JD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=k9(o,s,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(zi,"TunnelingAgent");CIe.inherits(zi,EIe.EventEmitter);zi.prototype.addRequest=i(function(e,r,n,o){var s=this,a=jD({request:e},s.options,k9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");zi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=jD({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Na("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,f){process.nextTick(function(){p(l,b,f)})}i(u,"onUpgrade");function p(l,b,f){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){Na("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(f.length>0){Na("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return Na("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),Na(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");zi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function P9(t,e){var r=this;zi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=jD({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=gIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(P9,"createSecureSocket");function k9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(k9,"toOptions");function jD(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),s=0,a=o.length;s<a;++s){var c=o[s];n[c]!==void 0&&(t[c]=n[c])}}return t}i(jD,"mergeOptions");var Na;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Na=i(function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)},"debug"):Na=i(function(){},"debug");pA.debug=Na});var Vd=m(($40,G9)=>{G9.exports=U9()});var k0=m((K40,H9)=>{H9.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")}});var i0=m((Z40,fU)=>{"use strict";var X9=Symbol.for("undici.error.UND_ERR"),U0=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[X9]===!0}[X9]=!0},V9=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),$D=class extends U0{static{i(this,"ConnectTimeoutError")}constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIM
`)||t.includes("\r")||t.includes("\0"))===!1}i(RG,"isValidHeaderValue");function URe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(DRe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}i(URe,"setRequestReferrerPolicyOnRedirect");function GRe(){return"allowed"}i(GRe,"crossOriginResourcePolicyCheck");function HRe(){return"success"}i(HRe,"corsCheck");function XRe(){return"success"}i(XRe,"TAOCheck");function VRe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(VRe,"appendFetchMetadata");function YRe(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&XI(t.origin)&&!XI(nb(t))&&(e=null);break;case"same-origin":Wz(t,nb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(YRe,"appendRequestOriginHeader");function OA(t,e){return t}i(OA,"coarsenTime");function JRe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:OA(t.domainLookupStartTime,r),domainLookupEndTime:OA(t.domainLookupEndTime,r),connectionStartTime:OA(t.connectionStartTime,r),connectionEndTime:OA(t.connectionEndTime,r),secureConnectionStartTime:OA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(JRe,"clampAndCoarsenConnectionTimingInfo");function jRe(t){return OA(SRe.now(),t)}i(jRe,"coarsenedSharedCurrentTime");function $Re(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}i($Re,"createOpaqueTimingInfo");function NG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(NG,"makePolicyContainer");function KRe(t){return{referrerPolicy:t.referrerPolicy}}i(KRe,"clonePolicyContainer");function ZRe(t){let e=t.referrerPolicy;tu(e);let r=null;if(t.referrer==="client"){let c=yG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=HI(r),o=HI(r,!0);n.toString().length>4096&&(n=o);let s=Wz(t,n),a=rb(n)&&!rb(t.url);switch(e){case"origin":return o??HI(r,!0);case"unsafe-url":return n;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?n:o;case"strict-origin-when-cross-origin":{let c=nb(t);return Wz(n,c)?n:rb(n)&&!rb(c)?"no-referrer":o}default:return a?"no-referrer":o}}i(ZRe,"determineRequestsReferrer");function HI(t,e){return tu(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}i(HI,"stripURLForReferrer");function rb(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(rb,"isURLPotentiallyTrustworthy");function eNe(t,e){if(Fz===void 0)return!0;let r=wG(e);if(r==="no metadata"||r.length===0)return!0;let n=rNe(r),o=nNe(r,n);for(let s of o){let a=s.algo,c=s.hash,u=Fz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),oNe(u,c))return!0}return!1}i(eNe,"bytesMatch");var tNe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-
`);function PNe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(PNe,"isAsciiString");function kNe(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(kNe,"validateBoundary");function UNe(t,e){Tz(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),o=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&vz(t,QNe,s)||s.position===t.length-4&&vz(t,_Ne,s))return o;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=GNe(t,s);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;s.position+=2;let b;{let z=t.indexOf(n.subarray(2),s.position);if(z===-1)return"failure";b=t.subarray(s.position,z-4),s.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let f;p!==null?(A??="text/plain",PNe(A)||(A=""),f=new vNe([b],p,{type:A})):f=SNe(Buffer.from(b)),Tz(GG(u)),Tz(typeof f=="string"&&GG(f)||WNe(f)),o.push(xNe(u,f,p))}}i(UNe,"multipartFormDataParser");function GNe(t,e){let r=null,n=null,o=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:s};let a=EA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=ZI(a,!0,!0,c=>c===9||c===32),!FNe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,EA(c=>c===32||c===9,t,e),wNe(a)){case"content-disposition":{if(r=n=null,!vz(t,LNe,e)||(e.position+=17,r=VG(t,e),r===null))return"failure";if(vz(t,XG,e)){let c=e.position+XG.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=VG(t,e),n===null))return"failure"}break}case"content-type":{let c=EA(u=>u!==10&&u!==13,t,e);c=ZI(c,!1,!0,u=>u===9||u===32),o=HG(c);break}case"content-transfer-encoding":{let c=EA(u=>u!==10&&u!==13,t,e);c=ZI(c,!1,!0,u=>u===9||u===32),s=HG(c);break}default:EA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(GNe,"parseMultipartFormDataHeaders");function VG(t,e){Tz(t[e.position-1]===34);let r=EA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(VG,"parseMultipartFormDataName");function EA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(EA,"collectASequenceOfBytes");function ZI(t,e,r,n){let o=0,s=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;s>0&&n(t[s]);)s--;return o===0&&s===t.length-1?t:t.subarray(o,s+1)}i(ZI,"removeChars");function vz(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(vz,"bufferStartsWith");YG.exports={multipartFormDataParser:UNe,validateBoundary:kNe}});var BA=m((QB0,sH)=>{"use strict";var ib=He(),{ReadableStreamFrom:HNe,isBlobLike:jG,isReadableStreamLike:XNe,readableStreamClose:VNe,createDeferredPromise:YNe,fullyReadBody:JNe,extractMimeType:jNe,utf8DecodeBytes:ZG}=Ir(),{FormData:$G}=sb(),{kState:yA}=wa(),{webidl:$Ne}=st(),{Blob:KNe}=require("node:buffer"),e5=require("node:assert"),{isErrored:eH,isDisturbed:ZNe}=require("node:stream"),{isArrayBuffer:ewe}=require("node:util/types"),{serializeAMimeType:twe}=Zt(),{multipartFormDataParser:rwe}=JG(),t5;try{let t=require("node:crypto");t5=i(e=>t.randomInt(0,e),"random")}catch{t5=i(t=>Math.floor(Math.random(t)),"random")}var Lz=new TextEncoder;function nwe(){}i(nwe,"noop");var tH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,rH;tH&&(rH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ZNe(e)&&!eH(e)&&e.cancel("Response object has been garbage collected").catch(nwe)}));function nH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:jG(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?Lz.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>VNe(u))},start(){},type:"bytes"}),e5(XNe(r));let n=null,o=null,s=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(ewe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ib.isFormDataLike(t)){let u=`----formdata-undici-0${`${t5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let A=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),l=i(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),b=[],f=new Uint8Array([13,10]);s=0;let z=!1;for(let[y,E]of t)if(typeof E=="string"){let B=Lz.encode(p+`; name="${A(l(y))}"\r
\r
${l(E)}\r
`);b.push(B),s+=B.byteLength}else{let B=Lz.encode(`${p}; name="${A(l(y))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);b.push(B,E,f),typeof E.size=="number"?s+=B.byteLength+E.size+f.byteLength:z=!0}let g=Lz.encode(`--${u}--\r
`);b.push(g),s+=g.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(jG(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ib.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:HNe(t)}if((typeof o=="string"||ib.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!eH(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(nH,"extractBody");function owe(t,e=!1){return t instanceof ReadableStream&&(e5(!ib.isDisturbed(t),"The body has already been consumed."),e5(!t.locked,"The stream is locked.")),nH(t,e)}i(owe,"safelyExtractBody");function swe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(swe,"cloneBody");function iwe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(iwe,"throwIfAborted");function awe(t){return{blob(){return CA(this,r=>{let n=KG(this);return n===null?n="":n&&(n=twe(n)),new KNe([r],{type:n})},t)},arrayBuffer(){return CA(this,r=>new Uint8Array(r).buffer,t)},text(){return CA(this,ZG,t)},json(){return CA(this,uwe,t)},formData(){return CA(this,r=>{let n=KG(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=rwe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new $G;return s[yA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new $G;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return CA(this,r=>new Uint8Array(r),t)}}}i(awe,"bodyMixinMethods");function cwe(t){Object.assign(t.prototype,awe(t))}i(cwe,"mixinBody");async function CA(t,e,r){if($Ne.brandCheck(t,r),oH(t))throw new TypeError("Body is unusable: Body has already been read");iwe(t[yA]);let n=YNe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[yA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await JNe(t[yA].body,s,o),n.promise)}i(CA,"consumeBody");function oH(t){let e=t[yA].body;return e!=null&&(e.stream.locked||ib.isDisturbed(e.stream))}i(oH,"bodyUnusable");function uwe(t){return JSON.parse(ZG(t))}i(uwe,"parseJSONFromBytes");function KG(t){let e=t[yA].headersList,r=jNe(e);return r==="failure"?null:r}i(KG,"bodyMimeType");sH.exports={extractBody:nH,safelyExtractBody:owe,cloneBody:swe,mixinBody:cwe,streamRegistry:rH,hasFinalizationRegistry:tH,bodyUnusable:oH}});var gH=m((PB0,OH)=>{"use strict";var be=require("node:assert"),me=He(),{channels:iH}=lA(),r5=vI(),{RequestContentLengthMismatchError:ru,ResponseContentLengthMismatchError:aH,RequestAbortedError:MH,InvalidArgumentError:pwe,HeadersTimeoutError:Awe,HeadersOverflowError:lwe,SocketError:qA,InformationalError:DA,BodyTimeoutError:dwe,HTTPParserError:bwe,ResponseExceededMaxSizeError:Mwe}=i0(),{kUrl:fH,kReset:er,kClient:kz,kParser:W0,kBlocking:ub,kRunning:I1,kPending:mH,kSize:cH,kWriting:Sa,kQueue:no,kNoRef:ab,kKeepAliveDefaultTimeout:fwe,kHostHeader:mwe,kPendingIdx:hwe,kRunningIdx:An,kError:wt,kPipelining:Uz,kSocket:ou,kKeepAliveTimeoutValue:Hz,kMaxHeadersSize:n5,kKeepAliveMaxTimeout:zwe,kKeepAliveTimeoutThreshold:Owe,kHeadersTimeout:gwe,kBodyTimeout:Ewe,kStrictContentLength:i5,kMaxRequests:uH,kCounter:Cwe,kMaxResponseSize:ywe,kOnError:pH,kResume:Bi,kHTTPContext:hH}=k0(),Rr=rG(),AH=Buffer.alloc(0),Qz=Buffer[Symbol.species],_z=me.addListener,Bwe=me.removeAllListeners,su=Symbol("kIdleSocketValidation"),nu=Symbol("kIdleSocketValidationTimeout"),p5=Symbol("kSocketUsed"),o5;async function qwe(){let t=process.e
`;if(typeof o=="string"?g+=`host: ${o}\r
`:g+=t[mwe],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[Uz]&&!f[er]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(p))for(let y=0;y<p.length;y+=2){let E=p[y+0],B=p[y+1];if(Array.isArray(B))for(let q=0;q<B.length;q++)g+=`${E}: ${B[q]}\r
`;else g+=`${E}: ${B}\r
`}return iH.sendHeaders.hasSubscribers&&iH.sendHeaders.publish({request:e,headers:g,socket:f}),!u||b===0?dH(z,null,t,e,f,A,g,l):me.isBuffer(u)?dH(z,u,t,e,f,A,g,l):me.isBlobLike(u)?typeof u.stream=="function"?bH(z,u.stream(),t,e,f,A,g,l):Wwe(z,u,t,e,f,A,g,l):me.isStream(u)?Fwe(z,u,t,e,f,A,g,l):me.isIterable(u)?bH(z,u,t,e,f,A,g,l):be(!1),!0}i(Swe,"writeH1");function Fwe(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"stream body cannot be pipelined");let u=!1,p=new Xz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(g){me.destroy(this,g)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!u){let z=new MH;queueMicrotask(()=>f(z))}},"onClose"),f=i(function(z){if(!u){if(u=!0,be(o.destroyed||o[Sa]&&r[I1]<=1),o.off("drain",l).off("error",f),e.removeListener("data",A).removeListener("end",f).removeListener("close",b),!z)try{p.end()}catch(g){z=g}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?me.destroy(e,z):me.destroy(e)}},"onFinished");e.on("data",A).on("end",f).on("error",f).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(Fwe,"writeStream");function dH(t,e,r,n,o,s,a,c){try{e?me.isBuffer(e)&&(be(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[er]=!0)):s===0?o.write(`${a}content-length: 0\r
\r
`,"latin1"):(be(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Bi]()}catch(u){t(u)}}i(dH,"writeBuffer");async function Wwe(t,e,r,n,o,s,a,c){be(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new ru;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[er]=!0),r[Bi]()}catch(u){t(u)}}i(Wwe,"writeBlob");async function bH(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,f)=>{be(u===null),o[wt]?f(o[wt]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Xz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[wt])throw o[wt];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(bH,"writeIterable");var Xz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Sa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[wt])throw r[wt];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[i5])throw new ru;process.emitWarning(new ru)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[er]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${o}\r
\r
`,"latin1")),o===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[W0].timeout&&r[W0].timeoutType===IA&&r[W0].timeout.refresh&&r[W0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Sa]=!1,e[wt])throw e[wt];if(!e.destroyed){if(o===0?s?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&o!==r){if(n[i5])throw new ru;process.emitWarning(new ru)}e[W0].timeout&&e[W0].timeoutType===IA&&e[W0].timeout.refresh&&e[W0].timeout.refresh(),n[Bi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Sa]=!1,e&&(be(n[I1]<=1,"pipeline should only contain this request"),o(e))}};OH.exports=Iwe});var RH=m((UB0,IH)=>{"use strict";var ln=require("node:assert"),{pipeline:xwe}=require("node:stream"),Je=He(),{RequestContentLengthMismatchError:A5,RequestAbortedError:EH,SocketError:pb,InformationalError:l5}=i0(),{kUrl:Vz,kReset:Jz,kClient:RA,kRunning:jz,kPending:Twe,kQueue:Fa,kPendingIdx:d5,kRunningIdx:oo,kError:io,kSocket:J1,kStrictContentLength:vwe,kOnError:b5,kMaxConcurrentStreams:DH,kHTTP2Session:so,kResume:Wa,kSize:Lwe,kHTTPContext:Qwe}=k0(),qi=Symbol("open streams"),CH,yH=!1,Yz;try{Yz=require("node:http2")}catch{Yz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_we,HTTP2_HEADER_METHOD:Pwe,HTTP2_HEADER_PATH:kwe,HTTP2_HEADER_SCHEME:Uwe,HTTP2_HEADER_CONTENT_LENGTH:Gwe,HTTP2_HEADER_EXPECT:Hwe,HTTP2_HEADER_STATUS:Xwe}}=Yz;function Vwe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(Vwe,"parseH2Headers");async function Ywe(t,e){t[J1]=e,yH||(yH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Yz.connect(t[Vz],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[DH]});r[qi]=0,r[RA]=t,r[J1]=e,Je.addListener(r,"error",jwe),Je.addListener(r,"frameError",$we),Je.addListener(r,"end",Kwe),Je.addListener(r,"goaway",Zwe),Je.addListener(r,"close",function(){let{[RA]:o}=this,{[J1]:s}=o,a=this[J1][io]||this[io]||new pb("closed",Je.getSocketInfo(s));if(o[so]=null,o.destroyed){ln(o[Twe]===0);let c=o[Fa].splice(o[oo]);for(let u=0;u<c.length;u++){let p=c[u];Je.errorRequest(o,p,a)}}}),r.unref(),t[so]=r,e[so]=r,Je.addListener(e,"error",function(o){ln(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=o,this[RA][b5](o)}),Je.addListener(e,"end",function(){Je.destroy(this,new pb("other side closed",Je.getSocketInfo(this)))}),Je.addListener(e,"close",function(){let o=this[io]||new pb("closed",Je.getSocketInfo(this));t[J1]=null,this[so]!=null&&this[so].destroy(o),t[d5]=t[oo],ln(t[jz]===0),t.emit("disconnect",t[Vz],[t],o),t[Wa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return t6e(t,...o)},resume(){Jwe(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(Ywe,"connectH2");function Jwe(t){let e=t[J1];e?.destroyed===!1&&(t[Lwe]===0&&t[DH]===0?(e.unref(),t[so].unref()):(e.ref(),t[so].ref()))}i(Jwe,"resumeH2");function jwe(t){ln(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[J1][io]=t,this[RA][b5](t)}i(jwe,"onHttp2SessionError");function $we(t,e,r){if(r===0){let n=new l5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[J1][io]=n,this[RA][b5](n)}}i($we,"onHttp2FrameError");function Kwe(){let t=new pb("other side closed",Je.getSocketInfo(this[J1]));this.destroy(t),Je.destroy(this[J1],t)}i(Kwe,"onHttp2SessionEnd");function Zwe(t){let e=this[io]||new pb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Je.getSocketInfo(this)),r=this[RA];if(r[J1]=null,r[Qwe]=null,this[so]!=null&&(this[so].destroy(e),this[so]=null),Je.destroy(this[J1],e),r[oo]<r[Fa].length){let n=r[Fa][r[oo]];r[Fa][r[oo]++]=null,Je.errorRequest(r,n,e),r[d5]=r[oo]}ln(r[jz]===0),r.emit("disconnect",r[Vz],[r],e),r[Wa]()}i(Zwe,"onHTTP2GoAway");function e6e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i(e6e,"shouldSendContentLength");function t6e(t,e){let r=t[so],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Je.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let I=0;I<p.length;I+=2){let W=p[I+0],x=p[I+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)l[W]?l[W]+=`,${x[Q]}`:l[W]=x[Q];else l[W]=x}let b,{hostname:f,port:z}=t[Vz];l[_we]=s||`${f}
`,this[D6e]=u??3e5,this[q6e]=o??3e5,this[I6e]=B??!0,this[R6e]=I,this[h5]=x,this[Ta]=null,this[W6e]=ue>-1?ue:-1,this[T6e]=Re??100,this[m1]=null,this[ao]=[],this[Ii]=0,this[co]=0,this[bb]=pe=>O5(this,pe),this[x6e]=pe=>PH(this,pe)}get pipelining(){return this[eO]}set pipelining(e){this[eO]=e,this[bb](!0)}get[mb](){return this[ao].length-this[co]}get[fb](){return this[co]-this[Ii]}get[Mb](){return this[ao].length-this[Ii]}get[z6e](){return!!this[m1]&&!this[wA]&&!this[m1].destroyed}get[m5](){return!!(this[m1]?.busy(null)||this[Mb]>=(_H(this)||1)||this[mb]>0)}[h6e](e){kH(this),this.once("connect",e)}[F6e](e,r){let n=e.origin||this[Vo].origin,o=new l6e(n,e,r);return this[ao].push(o),this[au]||(iu.bodyLength(o.body)==null&&iu.isIterable(o.body)?(this[au]=1,queueMicrotask(()=>O5(this))):this[bb](!0)),this[au]&&this[va]!==2&&this[m5]&&(this[va]=2),this[va]<2}async[w6e](){return new Promise(e=>{this[Mb]?this[Ta]=e:e(null)})}async[S6e](e){return new Promise(r=>{let n=this[ao].splice(this[co]);for(let s=0;s<n.length;s++){let a=n[s];iu.errorRequest(this,a,e)}let o=i(()=>{this[Ta]&&(this[Ta](),this[Ta]=null),r(null)},"callback");this[m1]?(this[m1].destroy(e,o),this[m1]=null):queueMicrotask(o),this[bb]()})}},Q6e=Zz();function PH(t,e){if(t[fb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Di(t[co]===t[Ii]);let r=t[ao].splice(t[Ii]);for(let n=0;n<r.length;n++){let o=r[n];iu.errorRequest(t,o,e)}Di(t[Mb]===0)}}i(PH,"onError");async function kH(t){Di(!t[wA]),Di(!t[m1]);let{host:e,hostname:r,protocol:n,port:o}=t[Vo];if(r[0]==="["){let s=r.indexOf("]");Di(s!==-1);let a=r.substring(1,s);Di(QH.isIP(a)),r=a}t[wA]=!0,NA.beforeConnect.hasSubscribers&&NA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[db]},connector:t[lb]});try{let s=await new Promise((a,c)=>{t[lb]({host:e,hostname:r,protocol:n,port:o,servername:t[xa],localAddress:t[db]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){iu.destroy(s.on("error",vH),new M6e);return}Di(s);try{t[m1]=s.alpnProtocol==="h2"?await L6e(t,s):await v6e(t,s)}catch(a){throw s.destroy().on("error",vH),a}t[wA]=!1,s[N6e]=0,s[h5]=t[h5],s[m6e]=t,s[g6e]=null,NA.connected.hasSubscribers&&NA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[db]},connector:t[lb],socket:s}),t.emit("connect",t[Vo],[t])}catch(s){if(t.destroyed)return;if(t[wA]=!1,NA.connectError.hasSubscribers&&NA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[db]},connector:t[lb],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Di(t[fb]===0);t[mb]>0&&t[ao][t[co]].servername===t[xa];){let a=t[ao][t[co]++];iu.errorRequest(t,a,s)}else PH(t,s);t.emit("connectionError",t[Vo],[t],s)}t[bb]()}i(kH,"connect");function LH(t){t[va]=0,t.emit("drain",t[Vo],[t])}i(LH,"emitDrain");function O5(t,e){t[au]!==2&&(t[au]=2,_6e(t,e),t[au]=0,t[Ii]>256&&(t[ao].splice(0,t[Ii]),t[co]-=t[Ii],t[Ii]=0))}i(O5,"resume");function _6e(t,e){for(;;){if(t.destroyed){Di(t[mb]===0);return}if(t[Ta]&&!t[Mb]){t[Ta](),t[Ta]=null;return}if(t[m1]&&t[m1].resume(),t[m5])t[va]=2;else if(t[va]===2){e?(t[va]=1,queueMicrotask(()=>LH(t))):LH(t);continue}if(t[mb]===0||t[fb]>=(_H(t)||1))return;let r=t[ao][t[co]];if(t[Vo].protocol==="https:"&&t[xa]!==r.servername){if(t[fb]>0)return;t[xa]=r.servername,t[m1]?.destroy(new b6e("servername changed"),()=>{t[m1]=null,O5(t)})}if(t[wA])return;if(!t[m1]){kH(t);return}if(t[m1].destroyed||t[m1].busy(r))return;!r.aborted&&t[m1].write(r)?t[co]++:t[ao].splice(t[co],1)}}i(_6e,"_resume");UH.exports=z5});var g5=m((KB0,GH)=>{"use strict";var tO=class{static{i(this,"FixedCircularBuffer")}constructor(){this.bottom=0,this.top=0,this.list=new Array(2048),this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void 0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};GH.exports
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};uY.exports=IR});var zO=m((eD0,bY)=>{"use strict";var AY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:DWe}=i0(),IWe=WA();dY()===void 0&&lY(new IWe);function lY(t){if(!t||typeof t.dispatch!="function")throw new DWe("Argument agent must implement Agent");Object.defineProperty(globalThis,AY,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(lY,"setGlobalDispatcher");function dY(){return globalThis[AY]}i(dY,"getGlobalDispatcher");bY.exports={setGlobalDispatcher:lY,getGlobalDispatcher:dY}});var OO=m((nD0,MY)=>{"use strict";MY.exports=class{static{i(this,"DecoratorHandler")}#e;constructor(e){if(typeof e!="object"||e===null)throw new 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)}}});var mY=m((sD0,fY)=>{"use strict";var RWe=Kz();fY.exports=t=>{let e=t?.maxRedirections;return r=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,s);let u=new RWe(r,a,o,s);return r(c,u)},"redirectInterceptor")}});var zY=m((aD0,hY)=>{"use strict";var NWe=uO();hY.exports=t=>e=>i(function(n,o){return e(n,new NWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var gY=m((uD0,OY)=>{"use strict";var wWe=He(),{InvalidArgumentError:SWe,RequestAbortedError:FWe}=i0(),WWe=OO(),RR=class extends WWe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new SWe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){let a=wWe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new FWe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function xWe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=new RR({maxSize:s},o);return e(n,a)},"Intercept")}i(xWe,"createDumpInterceptor");OY.exports=xWe});var yY=m((AD0,CY)=>{"use strict";var{isIP:TWe}=require("node:net"),{lookup:vWe}=require("node:dns"),LWe=OO(),{InvalidArgumentError:HA,InformationalError:QWe}=i0(),EY=Math.pow(2,31)-1,NR=class{static{i(this,"DNSInstance")}#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.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new QWe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){vWe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>
${s}`;break;case"retry":r$(s)&&(r[o]=s);break;case"id":n$(s)&&(r[o]=s);break;case"event":s.length>0&&(r[o]=s);break}}processEvent(e){e.retry&&r$(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&n$(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}}};o$.exports={EventSourceStream:ON}});var d$=m((bI0,l$)=>{"use strict";var{pipeline:VLe}=require("node:stream"),{fetching:YLe}=wb(),{makeRequest:JLe}=YA(),{webidl:Fi}=st(),{EventSourceStream:jLe}=s$(),{parseMIMEType:$Le}=Zt(),{createFastMessageEvent:KLe}=el(),{isNetworkError:i$}=Rb(),{delay:ZLe}=hN(),{kEnumerableProperty:Cu}=He(),{environmentSettingsObject:a$}=Ir(),c$=!1,u$=3e3,Hb=0,p$=1,Xb=2,eQe="anonymous",tQe="use-credentials",sl=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Hb;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),Fi.util.markAsUncloneable(this);let n="EventSource constructor";Fi.argumentLengthCheck(arguments,1,n),c$||(c$=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fi.converters.USVString(e,n,"url"),r=Fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:u$};let o=a$,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=eQe;r.withCredentials&&(a=tQe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=a$.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=JLe(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===Xb)return;this.#r=Hb;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{i$(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(i$(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?$Le(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=p$,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new jLe({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(KLe(u.type,u.options))},"push")});VLe(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=YLe(e)}async#c(){this.#r!==Xb&&(this.#r=Hb,this.dispatchEvent(new Event("error")),await ZLe(this.#i.reconnectionTime),this.#r===Hb&&(this.#i.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#u()))}close(){Fi.brandCheck(this,t),this.#r!==Xb&&(this.#r=Xb,this.#s.abort(),this.#o=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}},A$={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Hb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:p$,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Xb,writable:!1}};Obj
%s`,W,W,B,n);var x=B.type==="*"?Bw:B.type==="?"?yw:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+W}z(),s&&(n+="\\\\");var Q=!1;switch(n.charAt(0)){case"[":case".":case"(":Q=!0}for(var ue=c.length-1;ue>-1;ue--){var qe=c[ue],Qe=n.slice(0,qe.reStart),Re=n.slice(qe.reStart,qe.reEnd-8),ge=n.slice(qe.reEnd-8,qe.reEnd),Ue=n.slice(qe.reEnd);ge+=Ue;var pe=Qe.split("(").length-1,Ge=Ue;for(g=0;g<pe;g++)Ge=Ge.replace(/\)[+*?]?/,"");Ue=Ge;var J="";Ue===""&&e!==wg&&(J="$");var _e=Qe+Re+Ue+J+ge;n=_e}if(n!==""&&o&&(n="(?=.)"+n),Q&&(n=b+n),e===wg)return[n,o];if(!o)return Wke(t);var E0=r.nocase?"i":"";try{var ft=new RegExp("^"+n+"$",E0)}catch{return new RegExp("$.")}return ft._glob=t,ft._src=n,ft}i(Ske,"parse");Pr.makeRe=function(t,e){return new ct(t,e||{}).makeRe()};ct.prototype.makeRe=Fke;function Fke(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?Bw:e.dot?Bke:qke,n=e.nocase?"i":"",o=t.map(function(s){return s.map(function(a){return a===qw?r:typeof a=="string"?xke(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}i(Fke,"makeRe");Pr.match=function(t,e,r){r=r||{};var n=new ct(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ct.prototype.match=i(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;bM.sep!=="/"&&(e=e.split(bM.sep).join("/")),e=e.split(gee),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ct.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===qw){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,l),A===a))}var f;if(typeof u=="string"?(f=p===u,this.debug("string match",u,p,f)):(f=p.match(u),this.debug("pattern match",u,p,f)),!f)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function Wke(t){return t.replace(/\\(.)/g,"$1")}i(Wke,"globUnescape");function xke(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(xke,"regExpEscape")});var hl=m((Xw0,Iee)=>{"use strict";var Uke="2.0.0",Gke=Number.MAX_SAFE_INTEGER||9007199254740991,Hke=16,Xke=250,Vke=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Iee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Hke,MAX_SAFE_BUILD_LENGTH:Xke,MAX_SAFE_INTEGER:Gke,RELEASE_TYPES:Vke,SEMVER_SPEC_VERSION:Uke,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var mM=m((Vw0,Ree)=>{"use strict";var Yke=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Ree.exports=Yke});var zl=m((rs,Nee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Iw,MAX_SAFE_BUILD_LENGTH:Jke,MAX_LENGTH:jke}=hl(),$ke=mM();rs=Nee.exports={};var Kke=rs.re=[],Zke=rs.safeRe=[],Z=rs.src=[],e7e=rs.safeSrc=[],ee=rs.t={},t7e=0,Rw="[a-zA-Z0-9-]",r7e=[["\\s",1],["\\d",jke],[Rw,Jke]],n7e=i(t=>{for(let[e,r]of r7e)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Fe=i((t,e,r)=>{let n=n7e(e),o=t7e++;$ke(t,o,e),ee[t]=o,Z[o]=e,e7e[o]=n,Kke[o]=new RegExp(e,r?"g":void 0),Zke[o]=new RegExp(n,r?"g":void 0)},"createToken");Fe("NUMERICIDENTIFIER","0|[1-9]\\d*");Fe("NUMERICIDENTIFIERLOOSE","\\d+");Fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Rw}*`);Fe("MAINVERSION",`(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})`);Fe("MAINVERSIONLOOSE",`(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASEIDENTIFIER",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIER]})`);Fe("PRERELEASEIDENTIFIERLOOSE",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASE",`(?:-(${Z[ee.PRERELEASEIDENTIFIER]}(?:\\.${Z[ee.PRERELEASEIDENTIFIER]})*))`);Fe("PRERELEASELOOSE",`(?:-?(${Z[ee.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Z[ee.PRERELEASEIDENTIFIERLOOSE]})*))`);Fe("BUILDIDENTIFIER",`${Rw}+`);Fe("BUILD",`(?:\\+(${Z[ee.BUILDIDENTIFIER]}(?:\\.${Z[ee.BUILDIDENTIFIER]})*))`);Fe("FULLPLAIN",`v?${Z[ee.MAINVERSION]}${Z[ee.PRERELEASE]}?${Z[ee.BUILD]}?`);Fe("FULL",`^${Z[ee.FULLPLAIN]}$`);Fe("LOOSEPLAIN",`[v=\\s]*${Z[ee.MAINVERSIONLOOSE]}${Z[ee.PRERELEASELOOSE]}?${Z[ee.BUILD]}?`);Fe("LOOSE",`^${Z[ee.LOOSEPLAIN]}$`);Fe("GTLT","((?:<|>)?=?)");Fe("XRANGEIDENTIFIERLOOSE",`${Z[ee.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Fe("XRANGEIDENTIFIER",`${Z[ee.NUMERICIDENTIFIER]}|x|X|\\*`);Fe("XRANGEPLAIN",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:${Z[ee.PRERELEASE]})?${Z[ee.BUILD]}?)?)?`);Fe("XRANGEPLAINLOOSE",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:${Z[ee.PRERELEASELOOSE]})?${Z[ee.BUILD]}?)?)?`);Fe("XRANGE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAIN]}$`);Fe("XRANGELOOSE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Iw}})(?:\\.(\\d{1,${Iw}}))?(?:\\.(\\d{1,${Iw}}))?`);Fe("COERCE",`${Z[ee.COERCEPLAIN]}(?:$|[^\\d])`);Fe("COERCEFULL",Z[ee.COERCEPLAIN]+`(?:${Z[ee.PRERELEASE]})?(?:${Z[ee.BUILD]})?(?:$|[^\\d])`);Fe("COERCERTL",Z[ee.COERCE],!0);Fe("COERCERTLFULL",Z[ee.COERCEFULL],!0);Fe("LONETILDE","(?:~>?)");Fe("TILDETRIM",`(\\s*)${Z[ee.LONETILDE]}\\s+`,!0);rs.tildeTrimReplace="$1~";Fe("TILDE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAIN]}$`);Fe("TILDELOOSE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("LONECARET","(?:\\^)");Fe("CARETTRIM",`(\\s*)${Z[ee.LONECARET]}\\s+`,!0);rs.caretTrimReplace="$1^";Fe("CARET",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAIN]}$`);Fe("CARETLOOSE",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("COMPARATORLOOSE",`^$
`).join(`
`+s),t.push(o+"m+"+O3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=XGe()+e+" "+t[0]}i(HGe,"formatArgs");function XGe(){return At.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(XGe,"getDate");function VGe(...t){return process.stderr.write(z3.format(...t)+`
`)}i(VGe,"log");function YGe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(YGe,"save");function JGe(){return process.env.DEBUG}i(JGe,"load");function jGe(t){t.inspectOpts={};let e=Object.keys(At.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=At.inspectOpts[e[r]]}i(jGe,"init");O3.exports=h6()(At);var{formatters:dte}=O3.exports;dte.o=function(t){return this.inspectOpts.colors=this.useColors,z3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};dte.O=function(t){return this.inspectOpts.colors=this.useColors,z3.inspect(t,this.inspectOpts)}});var g3=m((LW0,E6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?E6.exports=cte():E6.exports=bte()});var mte=m(ir=>{"use strict";var $Ge=ir&&ir.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),KGe=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mte=ir&&ir.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&$Ge(e,t,r);return KGe(e,t),e};Object.defineProperty(ir,"__esModule",{value:!0});ir.req=ir.json=ir.toBuffer=void 0;var ZGe=Mte(require("http")),eHe=Mte(require("https"));async function fte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(fte,"toBuffer");ir.toBuffer=fte;async function tHe(t){let r=(await fte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(tHe,"json");ir.json=tHe;function rHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?eHe:ZGe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(rHe,"req");ir.req=rHe});var gte=m(Hr=>{"use strict";var zte=Hr&&Hr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nHe=Hr&&Hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ote=Hr&&Hr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&zte(e,t,r);return nHe(e,t),e},oHe=Hr&&Hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&zte(e,t,r)};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Agent=void 0;var sHe=Ote(require("net")),hte=Ote(require("http")),iHe=require("https");oHe(mte(),Hr);var is=Symbol("AgentBaseInternalState"),C6=class extends hte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[is]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new sHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?iHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof hte.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[is].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[is].currentSocket;if(this[is].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[is].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[is]&&(this[is].defaultPort=e)}get protocol(){return this[is].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[is]&&(this[is].protocol=e)}};Hr.Agent=C6});var Ete=m(Rl=>{"use strict";var aHe=Rl&&Rl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Rl,"__esModule",{value:!0});Rl.parseProxyResponse=void 0;var cHe=aHe(g3()),E3=(0,cHe.default)("https-proxy-agent:parse-proxy-response");function uHe(t){return new Promise((e,r)=>{let n=0,o=[];function s(){let A=t.read();A?p(A):t.once("readable",s)}i(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");function c(){a(),E3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function u(A){a(),E3("onerror %o",A),r(A)}i(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
\r
`);if(b===-1){E3("have not received end of HTTP headers yet..."),s();return}let f=l.slice(0,b).toString("ascii").split(`\r
`),z=f.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=z.split(" "),y=+g[1],E=g.slice(2).join(" "),B={};for(let q of f){if(!q)continue;let I=q.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let W=q.slice(0,I).toLowerCase(),x=q.slice(I+1).trimStart(),Q=B[W];typeof Q=="string"?B[W]=[Q,x]:Array.isArray(Q)?Q.push(x):B[W]=x}E3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}i(p,"ondata"),t.on("error",u),t.on("end",c),s()})}i(uHe,"parseProxyResponse");Rl.parseProxyResponse=uHe});var Ite=m(qn=>{"use strict";var pHe=qn&&qn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),AHe=qn&&qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qte=qn&&qn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&pHe(e,t,r);return AHe(e,t),e},Dte=qn&&qn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qn,"__esModule",{value:!0});qn.HttpsProxyAgent=void 0;var C3=qte(require("net")),Cte=qte(require("tls")),lHe=Dte(require("assert")),dHe=Dte(g3()),bHe=gte(),MHe=require("url"),fHe=Ete(),SM=(0,dHe.default)("https-proxy-agent"),yte=i(t=>t.servername===void 0&&t.host&&!C3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),y3=class extends bHe.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new MHe.URL(e):e,this.proxyHeaders=r?.headers??{},SM("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Bte(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(SM("Creating `tls.Socket`: %o",this.connectOpts),o=Cte.connect(yte(this.connectOpts))):(SM("Creating `net.Socket`: %o",this.connectOpts),o=C3.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=C3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}: ${s[b]}\r
`;let u=(0,fHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",mHe),r.secureEndpoint?(SM("Upgrading socket connection to TLS"),Cte.connect({...Bte(yte(r),"host","path","port"),socket:o})):o;o.destroy();let l=new C3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{SM("Replaying proxy buffer for failed request"),(0,lHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};y3.protocols=["http","https"];qn.HttpsProxyAgent=y3;function mHe(t){t.resume()}i(mHe,"resume");function Bte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Bte,"omit")});var wte=m(ar=>{"use strict";var hHe=ar&&ar.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),zHe=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Rte=ar&&ar.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&hHe(e,t,r);return zHe(e,t),e};Object.defineProperty(ar,"__esModule",{value:!0});ar.req=ar.json=ar.toBuffer=void 0;var OHe=Rte(require("http")),gHe=Rte(require("https"));async function Nte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Nte,"toBuffer");ar.toBuffer=Nte;async function EHe(t){let r=(await Nte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(EHe,"json");ar.json=EHe;function CHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?gHe:OHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(CHe,"req");ar.req=CHe});var xte=m(Xr=>{"use strict";var Fte=Xr&&Xr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yHe=Xr&&Xr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wte=Xr&&Xr.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Fte(e,t,r);return yHe(e,t),e},BHe=Xr&&Xr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fte(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Agent=void 0;var qHe=Wte(require("net")),Ste=Wte(require("http")),DHe=require("https");BHe(wte(),Xr);var as=Symbol("AgentBaseInternalState"),y6=class extends Ste.Agent{static{i(this,"Agent")}constructor(e){super(e),this[as]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new qHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?DHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof Ste.Agent)return c.addRequest(e,o);this[as].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[as].currentSocket;if(this[as].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[as].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[as]&&(this[as].defaultPort=e)}get protocol(){return this[as].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[as]&&(this[as].protocol=e)}};Xr.Agent=y6});var Lte=m(Dn=>{"use strict";var IHe=Dn&&Dn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RHe=Dn&&Dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),vte=Dn&&Dn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&IHe(e,t,r);return RHe(e,t),e},NHe=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HttpProxyAgent=void 0;var wHe=vte(require("net")),SHe=vte(require("tls")),FHe=NHe(g3()),WHe=require("events"),xHe=xte(),Tte=require("url"),Nl=(0,FHe.default)("http-proxy-agent"),B3=class extends xHe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Tte.URL(e):e,this.proxyHeaders=r?.headers??{},Nl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?THe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=new Tte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;Nl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Nl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(o),Nl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Nl("Creating `tls.Socket`: %o",this.connectOpts),s=SHe.connect(this.connectOpts)):(Nl("Creating `net.Socket`: %o",this.connectOpts),s=wHe.connect(this.connectOpts)),await(0,WHe.once)(s,"connect"),s}};B3.protocols=["http","https"];Dn.HttpProxyAgent=B3;function THe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(THe,"omit")});var ire=m(Q3=>{"use strict";Object.defineProperty(Q3,"__esModule",{value:!0});Q3.state=void 0;Q3.state={instrumenterImplementation:void 0}});var Cre=m(G3=>{"use strict";Object.defineProperty(G3,"__esModule",{value:!0});G3.state=void 0;G3.state={operationRequestMap:new WeakMap}});var tse=m(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});var r$e=require("os"),n$e=require("util");function o$e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(o$e,"_interopDefaultLegacy");var s$e=o$e(n$e);function i$e(t,...e){process.stderr.write(`${s$e.default.format(t,...e)}${r$e.EOL}`)}i(i$e,"log");var Hoe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Voe,rT=[],nT=[],uC=[];Hoe&&oT(Hoe);var Yoe=Object.assign(t=>Joe(t),{enable:oT,enabled:sT,disable:a$e,log:i$e});function oT(t){Voe=t,rT=[],nT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?nT.push(new RegExp(`^${n.substr(1)}$`)):rT.push(new RegExp(`^${n}$`));for(let n of uC)n.enabled=sT(n.namespace)}i(oT,"enable");function sT(t){if(t.endsWith("*"))return!0;for(let e of nT)if(e.test(t))return!1;for(let e of rT)if(e.test(t))return!0;return!1}i(sT,"enabled");function a$e(){let t=Voe||"";return oT(""),t}i(a$e,"disable");function Joe(t){let e=Object.assign(r,{enabled:sT(t),destroy:c$e,log:Yoe.log,namespace:t,extend:u$e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),uC.push(e),e}i(Joe,"createDebugger");function c$e(){let t=uC.indexOf(this);return t>=0?(uC.splice(t,1),!0):!1}i(c$e,"destroy");function u$e(t){let e=Joe(`${this.namespace}:${t}`);return e.log=this.log,e}i(u$e,"extend");var Of=Yoe,joe=new Set,aC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,pC,AC=Of("azure");AC.log=(...t)=>{Of.log(...t)};var iT=["verbose","info","warning","error"];aC&&(ese(aC)?$oe(aC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${aC}'; logging is not enabled. Acceptable values: ${iT.join(", ")}.`));function $oe(t){if(t&&!ese(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${iT.join(",")}`);pC=t;let e=[];for(let r of joe)Zoe(r)&&e.push(r.namespace);Of.enable(e.join(","))}i($oe,"setLogLevel");function p$e(){return pC}i(p$e,"getLogLevel");var Xoe={verbose:400,info:300,warning:200,error:100};function A$e(t){let e=AC.extend(t);return Koe(AC,e),{error:cC(e,"error"),warning:cC(e,"warning"),info:cC(e,"info"),verbose:cC(e,"verbose")}}i(A$e,"createClientLogger");function Koe(t,e){e.log=(...r)=>{t.log(...r)}}i(Koe,"patchLogMethod");function cC(t,e){let r=Object.assign(t.extend(e),{level:e});if(Koe(t,r),Zoe(r)){let n=Of.disable();Of.enable(n+","+r.namespace)}return joe.add(r),r}i(cC,"createLogger");function Zoe(t){return!!(pC&&Xoe[t.level]<=Xoe[pC])}i(Zoe,"shouldEnable");function ese(t){return iT.includes(t)}i(ese,"isAzureLogLevel");Yl.AzureLogger=AC;Yl.createClientLogger=A$e;Yl.getLogLevel=p$e;Yl.setLogLevel=$oe});var uT=m(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});var Jl=new WeakMap,lC=new WeakMap,gf=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Jl.set(this,[]),lC.set(this,!1)}get aborted(){if(!lC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return lC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Jl.get(this).push(r)}removeEventListener(e,r){if(!Jl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Jl.get(this),o=n.indexOf(r);o>-
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${Ase.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(use({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(P$e,"pollOperationHelper");async function Mse(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:f,setDelay:z,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await P$e({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(dse({status:q,response:B,state:r,stateProxy:n,isDone:g,processResult:l,getError:b,setErrorAsResult:y}),!Ase.includes(q)){let I=A?.(B);I&&z(I);let W=c?.(B,r);if(W!==void 0){let x=E!==W;r.config.operationLocation=W,p?.(W,x)}else p?.(E,!1)}f?.(r,B)}}i(Mse,"pollOperation");function fse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(fse,"getOperationLocationPollingUrl");function mse(t){return t.headers.location}i(mse,"getLocationHeader");function hse(t){return t.headers["operation-location"]}i(hse,"getOperationLocationHeader");function zse(t){return t.headers["azure-asyncoperation"]}i(zse,"getAzureAsyncOperationHeader");function k$e(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(k$e,"findResourceLocation");function Ose(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=hse(e),a=zse(e),c=fse({operationLocation:s,azureAsyncOperation:a}),u=mse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:k$e({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(Ose,"inferLroMode");function gse(t){let{status:e,statusCode:r}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${e}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return OT(r);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:return rp.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(gse,"transformStatus");function U$e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return gse({status:r,statusCode:t.statusCode})}i(U$e,"getStatus");function G$e(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return gse({status:s,statusCode:t.statusCode})}i(G$e,"getProvisioningState");function OT(t){return t===202?"running":t<300?"succeeded":"failed"}i(OT,"toOperationStatus");function Ese({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?H$e(new Date(e)):r*1e3}}i(Ese,"parseRetryAfter");function Cse(t){let e=t.flatResponse.error;if(!e){rp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){rp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(Cse,"getErrorFromResponse");function H$e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(H$e,"calculatePollingIntervalFromDate");function yse(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=s,o=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,o=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,o=3;break;case 3:r[n++]=(a&3)<<6|s,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(RKe,"base64decode");t2.base64decode=RKe;function NKe(t){let e="",r=0,n,o=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ta[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ta[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ta[o|n>>6],e+=ta[n&63],r=0;break}return r&&(e+=ta[o],e+="=",r==1&&(e+="=")),e}i(NKe,"base64encode");t2.base64encode=NKe});var tie=m(wC=>{"use strict";Object.defineProperty(wC,"__esModule",{value:!0});wC.utf8read=void 0;var wT=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function wKe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[o++]=s:s>191&&s<224?n[o++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[o++]=55296+(s>>10),n[o++]=56320+(s&1023)):n[o++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(wT(n)),o=0);return r.length?(o&&r.push(wT(n.slice(0,o))),r.join("")):wT(n.slice(0,o))}i(wKe,"utf8read");wC.utf8read=wKe});var Nf=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.WireType=Fs.mergeBinaryOptions=Fs.UnknownFieldHandler=void 0;var SKe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:s,data:a})},t.onWrite=(r,n,o)=>{for(let{no:s,wireType:a,data:c}of t.list(n))o.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(s=>s.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(SKe=Fs.UnknownFieldHandler||(Fs.UnknownFieldHandler={}));function FKe(t,e){return Object.assign(Object.assign({},t),e)}i(FKe,"mergeBinaryOptions");Fs.mergeBinaryOptions=FKe;var WKe;(function(t){t[t.Varint=0]="Varint",t[t.Bit64=1]="Bit64",t[t.LengthDelimited=2]="LengthDelimited",t[t.StartGroup=3]="StartGroup",t[t.EndGroup=4]="EndGroup",t[t.Bit32=5]="Bit32"})(WKe=Fs.WireType||(Fs.WireType={}))});var FC=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.varint32read=br.varint32write=br.int64toString=br.int64fromString=br.varint64write=br.varint64read=void 0;function xKe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(xKe,"varint64read");br.varint64read=xKe;function TKe(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}i(TKe,"varint64write");br.varint64write=TKe;var SC=65536*65536;function vKe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function s(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=SC&&(o=o+(n/SC|0),n=n%SC)}return i(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,o]}i(vKe,"int64fromString");br.int64fromString=vKe;function LKe(t,e){if(e>>>0<=2097151)return""+(SC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,s=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return i(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(s,1)}i(LKe,"int64toString");br.int64toString=LKe;function QKe(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}i(QKe,"varint32write");br.varint32write=QKe;function _Ke(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return
`)}};iy.RpcError=ov});var iv=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.mergeRpcOptions=void 0;var Wie=C1();function ce0(t,e){if(!e)return t;let r={};ay(t,r),ay(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Wie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Wie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},ay(t.meta,r.meta),ay(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}i(ce0,"mergeRpcOptions");cy.mergeRpcOptions=ce0;function ay(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}i(ay,"copy")});var cv=m(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.Deferred=ap.DeferredState=void 0;var Ts;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ts=ap.DeferredState||(ap.DeferredState={}));var av=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Ts.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ts.PENDING)throw new Error(`cannot resolve ${Ts[this.state].toLowerCase()}`);this._resolve(e),this._state=Ts.RESOLVED}reject(e){if(this.state!==Ts.PENDING)throw new Error(`cannot reject ${Ts[this.state].toLowerCase()}`);this._reject(e),this._state=Ts.REJECTED}resolvePending(e){this._state===Ts.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ts.PENDING&&this.reject(e)}};ap.Deferred=av});var pv=m(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});uy.RpcOutputStreamController=void 0;var xie=cv(),cp=C1(),uv=class{static{i(this,"RpcOutputStreamController")}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,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.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,r,n){cp.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){cp.assert(!this.closed,"stream is closed"),this.pushIt({value:e,done:!1}),this._lis.msg.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(e,void 0,!1))}notifyError(e){cp.assert(!this.closed,"stream is closed"),this._closed=e,this.pushIt(e),this._lis.err.forEach(r=>r(e)),this._lis.nxt.forEach(r=>r(void 0,e,!1)),this.clearLis()}notifyComplete(){cp.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:i(()=>{let e=this._itState;cp.assert(e,"bad state"),cp.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 xie.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;cp.assert(n.state==xie.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};uy.RpcOutputStreamController=uv});var lv=m(c2=>{"use strict";var ue0=c2&&c2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.definePrope
You can add a runtime option to disable the check or this warning:
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(So0,"logUnexpecedPropertyAccessOnce");function Fo0(){Object.keys(s4).forEach(function(t){delete s4[t]})}i(Fo0,"resetLoggedProperties")});var a4=m(_s=>{"use strict";_s.__esModule=!0;_s.HandlebarsEnvironment=oQ;function vpe(t){return t&&t.__esModule?t:{default:t}}i(vpe,"_interopRequireDefault");var hp=Yt(),Wo0=rn(),rQ=vpe(Wo0),xo0=KL(),To0=Fpe(),vo0=eQ(),i4=vpe(vo0),Lo0=tQ(),Qo0="4.7.9";_s.VERSION=Qo0;var _o0=8;_s.COMPILER_REVISION=_o0;var Po0=7;_s.LAST_COMPATIBLE_COMPILER_REVISION=Po0;var ko0={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};_s.REVISION_CHANGES=ko0;var nQ="[object Object]";function oQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},xo0.registerDefaultHelpers(this),To0.registerDefaultDecorators(this)}i(oQ,"HandlebarsEnvironment");oQ.prototype={constructor:oQ,logger:i4.default,log:i4.default.log,registerHelper:i(function(e,r){if(hp.toString.call(e)===nQ){if(r)throw new rQ.default("Arg not supported with multiple helpers");hp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(hp.toString.call(e)===nQ)hp.extend(this.partials,e);else{if(typeof r>"u")throw new rQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(hp.toString.call(e)===nQ){if(r)throw new rQ.default("Arg not supported with multiple decorators");hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){Lo0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Uo0=i4.default.log;_s.log=Uo0;_s.createFrame=hp.createFrame;_s.logger=i4.default});var Qpe=m((c4,Lpe)=>{"use strict";c4.__esModule=!0;function sQ(t){this.string=t}i(sQ,"SafeString");sQ.prototype.toString=sQ.prototype.toHTML=function(){return""+this.string};c4.default=sQ;Lpe.exports=c4.default});var _pe=m(iQ=>{"use strict";iQ.__esModule=!0;iQ.wrapHelper=Go0;function Go0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(Go0,"wrapHelper")});var Xpe=m(Cc=>{"use strict";Cc.__esModule=!0;Cc.checkRevision=jo0;Cc.template=$o0;Cc.wrapProgram=u4;Cc.resolvePartial=Ko0;Cc.invokePartial=Zo0;Cc.noop=Gpe;function Ho0(t){return t&&t.__esModule?t:{default:t}}i(Ho0,"_interopRequireDefault");function Xo0(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}i(Xo0,"_interopRequireWildcard");var Vo0=Yt(),B2=Xo0(Vo0),Yo0=rn(),ia=Ho0(Yo0),aa=a4(),Ppe=KL(),Jo0=_pe(),kpe=tQ();function jo0(t){var e=t&&t[0]||1,r=aa.COMPILER_REVISION;if(!(e>=aa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=aa.COMPILER_REVISION))if(e<aa.LAST_COMPATIBLE_COMPILER_REVISION){var n=aa.REVISION_CHANGES[r],o=aa.REVISION_CHANGES[e];throw new ia.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new ia.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(jo0,"checkRevision");function $o0(t,e){if(!e)throw new ia.default("No environment passed to template");if(!t||!t.main)throw new ia.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=B2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.res
`),l=0,b=A.length;l<b&&!(!A[l]&&l+1===b);l++)A[l]=u.indent+A[l];p=A.join(`
`)}return p}else throw new ia.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var o={strict:i(function(c,u,p){if(!c||!(u in c))throw new ia.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:i(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||kpe.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:i(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:i(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:B2.escapeExpression,invokePartial:n,fn:i(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:i(function(c,u,p,A,l){var b=this.programs[c],f=this.fn(c);return u||l||A||p?b=u4(this,c,f,u,p,A,l):b||(b=this.programs[c]=u4(this,c,f)),b},"program"),data:i(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=B2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=es0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return i(l,"main"),l=Hpe(t.main,l,o,c.depths||[],u,A),l(a,c)}return i(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};Upe(c,e.helpers,o),Upe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=B2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=kpe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;Ppe.moveHelperToHooks(o,"helperMissing",u),Ppe.moveHelperToHooks(o,"blockHelperMissing",u)}},s._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new ia.default("must pass block params");if(t.useDepths&&!p)throw new ia.default("must pass parent depths");return u4(o,a,t[a],c,0,u,p)},s}i($o0,"template");function u4(t,e,r,n,o,s,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,s&&[p.blockParams].concat(s),A)}return i(c,"prog"),c=Hpe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}i(u4,"wrapProgram");function Ko0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=p4(r.partials,t)):r.name==="@partial-block"?t=p4(r.data,"partial-block"):t=p4(r.partials,r.name),t}i(Ko0,"resolvePartial");function Zo0(t,e,r){var n=p4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==Gpe&&(function(){r.data=aa.createFrame(r.data);var s=r.fn;o=r.data["partial-block"]=i(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=aa.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=B2.extend({},r.partials,s.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new ia.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(Zo0,"invokePartial");function Gpe(){return""}i(Gpe,"noop");function p4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(p4,"lookupOwnProperty");function es0(t,e){return(!e||!("root"in e))&&(e=e?aa.createFrame(e):{},e.root=t),e}i(es0,"initData");function Hpe(t,e,r,n,o,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,s,n),B2.extend(e,a)}return e}i(Hpe,"executeDecorators");function Upe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=ts0(o,r)})}i(Upe,"addHelpers");function ts0(t,e){var r=e.lookupProperty;return Jo0
`+this.lexer.showPosition()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ge="Parse error on line "+(l+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ge,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:pe})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+I);switch(Q[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),I=null,W?(I=W,W=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(ge=this.productions_[Q[1]][1],Qe.$=c[c.length-ge],Qe._$={first_line:u[u.length-(ge||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ge||1)].first_column,last_column:u[u.length-1].last_column},E&&(Qe._$.range=[u[u.length-(ge||1)].range[0],u[u.length-1].range[1]]),qe=this.performAction.call(Qe,A,b,l,this.yy,Q[1],c,u),typeof qe<"u")return qe;ge&&(a=a.slice(0,-1*ge*2),c=c.slice(0,-1*ge),u=u.slice(0,-1*ge)),a.push(this.productions_[Q[1]][0]),c.push(Qe.$),u.push(Qe._$),Ue=p[a[a.length-2]][a[a.length-1]],a.push(Ue);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:i(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=i(function(s,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(0,1),this.begin("emu")):this.begin("mu"),a.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(p(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(a.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return a.yytext=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();b4.default=As0;tAe.exports=b4.default});var h4=m((m4,sAe)=>{"use strict";m4.__esModule=!0;function ls0(t){return t&&t.__esModule?t:{default:t}}i(ls0,"_interopRequireDefault");var ds0=rn(),lQ=ls0(ds0);function M4(){this.parents=[]}i(M4,"Visitor");M4.prototype={constructor:M4,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!M4.prototype[n.type])throw new lQ.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.a
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Ep(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Ep?e:(e=WQ(e,this,r),new Ep(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},"quotedString"),objectLiteral:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=WQ(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(WQ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};q4.default=_Ae;PAe.exports=q4.default});var VAe=m((D4,XAe)=>{"use strict";D4.__esModule=!0;function HAe(t){return t&&t.__esModule?t:{default:t}}i(HAe,"_interopRequireDefault");var UAe=a4(),pi0=rn(),TQ=HAe(pi0),Ai0=Yt(),li0=kAe(),GAe=HAe(li0);function w2(t){this.value=t}i(w2,"Literal");function S2(){}i(S2,"JavaScriptCompiler");S2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=UAe.COMPILER_REVISION,r=UAe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return Ai0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],this.source.currentLocation=a.loc,c=c||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=c,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new TQ.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
`]),this.decorators.push("return fn;"),o?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
`),this.decorators.push(`}
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,f=b.programs,z=b.decorators;for(u=0,p=f.length;u<p;u++)l[u]=f[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:i(function(){this.lastContext=0,this.source=new GAe.default(this.options.srcName),this.decorators=new GAe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(function(){if(this.isInline())this.replaceStack(function(r){return[" != null ? ",r,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},"append"),appendEscaped:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(di0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},"popHash"),pushString:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",o])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var o=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hoo
`,e};A1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};A1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};A1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};A1.prototype.BlockStatement=A1.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};A1.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};A1.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};A1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};A1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};A1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,s=e.length;o<s;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};A1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};A1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};A1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};A1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};A1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};A1.prototype.NullLiteral=function(){return"NULL"};A1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};A1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var QQ=m((vt1,ele)=>{var N4=jAe().default,ZAe=$Ae();N4.PrintVisitor=ZAe.PrintVisitor;N4.print=ZAe.print;ele.exports=N4;function KAe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=N4.compile(n)}i(KAe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=KAe,require.extensions[".hbs"]=KAe)});var T4=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.Signature=Bc.Envelope=void 0;Bc.Envelope={fromJSON(t){return{payload:x4(t.payload)?Buffer.from(ple(t.payload)):Buffer.alloc(0),payloadType:x4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Bc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=Ale(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Bc.Signature.toJSON(r))),e}};Bc.Signature={fromJSON(t){return{sig:x4(t.sig)?Buffer.from(ple(t.sig)):Buffer.alloc(0),keyid:x4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=Ale(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function ple(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(ple,"bytesFromBase64");function Ale(t){return globalThis.Buffer.from(t).toString("base64")}i(Ale,"base64FromBytes");function x4(t){return t!=null}i(x4,"isSet")});var dle=m(v4=>{"use strict";Object.defineProperty(v4,"__esModule",{value:!0});v4.Timestamp=void 0;v4.Timestamp={fromJSON(t){return{seconds:lle(t.seconds)?globalThis.String(t.seconds):"0",nanos:lle(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.s
2026-05-22 12:36:07 +00:00
`).join(`
`+s),t.push(o+"m+"+EB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sp0()+e+" "+t[0]}i(op0,"formatArgs");function sp0(){return nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(sp0,"getDate");function ip0(...t){return process.stderr.write(gB.formatWithOptions(nt.inspectOpts,...t)+`
`)}i(ip0,"log");function ap0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(ap0,"save");function cp0(){return process.env.DEBUG}i(cp0,"load");function up0(t){t.inspectOpts={};let e=Object.keys(nt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nt.inspectOpts[e[r]]}i(up0,"init");EB.exports=U8()(nt);var{formatters:_2e}=EB.exports;_2e.o=function(t){return this.inspectOpts.colors=this.useColors,gB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_2e.O=function(t){return this.inspectOpts.colors=this.useColors,gB.inspect(t,this.inspectOpts)}});var H8=m((Qo1,G8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?G8.exports=Q2e():G8.exports=P2e()});var yB=m(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.DownloadHTTPError=l1.DownloadLengthMismatchError=l1.DownloadError=l1.ExpiredMetadataError=l1.EqualVersionError=l1.BadVersionError=l1.RepositoryError=l1.PersistError=l1.RuntimeError=l1.ValueError=void 0;var X8=class extends Error{static{i(this,"ValueError")}};l1.ValueError=X8;var V8=class extends Error{static{i(this,"RuntimeError")}};l1.RuntimeError=V8;var Y8=class extends Error{static{i(this,"PersistError")}};l1.PersistError=Y8;var Sm=class extends Error{static{i(this,"RepositoryError")}};l1.RepositoryError=Sm;var CB=class extends Sm{static{i(this,"BadVersionError")}};l1.BadVersionError=CB;var J8=class extends CB{static{i(this,"EqualVersionError")}};l1.EqualVersionError=J8;var j8=class extends Sm{static{i(this,"ExpiredMetadataError")}};l1.ExpiredMetadataError=j8;var Fm=class extends Error{static{i(this,"DownloadError")}};l1.DownloadError=Fm;var $8=class extends Fm{static{i(this,"DownloadLengthMismatchError")}};l1.DownloadLengthMismatchError=$8;var K8=class extends Fm{static{i(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};l1.DownloadHTTPError=K8});var U2e=m(K2=>{"use strict";var e_=K2&&K2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(K2,"__esModule",{value:!0});K2.withTempFile=void 0;var Z8=e_(require("fs/promises")),pp0=e_(require("os")),k2e=e_(require("path")),Ap0=i(async t=>lp0(async e=>t(k2e.default.join(e,"tempfile"))),"withTempFile");K2.withTempFile=Ap0;var lp0=i(async t=>{let e=await Z8.default.realpath(pp0.default.tmpdir()),r=await Z8.default.mkdtemp(e+k2e.default.sep);try{return await t(r)}finally{await Z8.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var H2e=m((Go1,G2e)=>{var t_=class{static{i(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#s=null;#a;#i;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#i=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#i])}get timeouts(){return[...this.#i]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let s=this.#n[o],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#i=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#i=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#i.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};G2e.exports={RetryOperation:t_}});var Y2e=m((Xo1,V2e)=>{var{RetryOperation:dp0}=H2e(),X2e=i((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),bp0=i(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),Mp0=i(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let s=0;s<o.retries;s++)r.push(X2e(s,o));r.sort((s,a)=>s-a)}else e.forever&&r.push(X2e(0,o))}let n=new dp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,s){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!bp0(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"
`).forEach(r=>{r.match(DA0)||r.match(IA0)||(e+=r)}),Buffer.from(e,"base64")}i(RA0,"toDER");function NA0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}i(NA0,"fromDER")});var PB=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.SHA2_HASH_ALGOS=vc.RSA_SIGNATURE_ALGOS=vc.ECDSA_SIGNATURE_ALGOS=void 0;vc.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};vc.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};vc.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var I_=m(kB=>{"use strict";Object.defineProperty(kB,"__esModule",{value:!0});kB.RFC3161TimestampVerificationError=void 0;var D_=class extends Error{static{i(this,"RFC3161TimestampVerificationError")}};kB.RFC3161TimestampVerificationError=D_});var qde=m(Ys=>{"use strict";var wA0=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),SA0=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),FA0=Ys&&Ys.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&wA0(r,e,n[o]);return SA0(r,e),r}})();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TSTInfo=void 0;var Bde=FA0(od()),WA0=PB(),xA0=I_(),R_=class{static{i(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return WA0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Bde.digest(this.messageImprintHashAlgorithm,e);if(!Bde.bufferEqual(r,this.messageImprintHashedMessage))throw new xA0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Ys.TSTInfo=R_});var Ide=m(Js=>{"use strict";var TA0=Js&&Js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),vA0=Js&&Js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LA0=Js&&Js.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&TA0(r,e,n[o]);return vA0(r,e),r}})();Object.defineProperty(Js,"__esModule",{value:!0});Js.RFC3161Timestamp=void 0;var QA0=LB(),N_=LA0(od()),Dde=PB(),Qm=I_(),_A0=qde(),PA0="1.2.840.113549.1.7.2",kA0="1.2.840.113549.1.9.16.1.4",UA0="1.2.840.113549.1.9.4",w_=class t{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=QA0.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorith
2026-05-22 12:36:07 +00:00
`,u20=/\u2014 (\S+) (\S+)\n/g;function p20(t,e){let r=t.inclusionProof,n=aP.fromString(r.checkpoint.envelope),o=cq.fromString(n.note);if(!A20(n,e))throw new Gm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(p20,"verifyCheckpoint");function A20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>cbe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.match(n.name));return o?cbe.crypto.verify(r,o.publicKey,n.signature):!1})}i(A20,"verifySignedNote");var aP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(iP))throw new Gm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(iP),n=e.slice(0,r+1),s=e.slice(r+iP.length).matchAll(u20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Gm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Gm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},cq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Gm.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Hm.LogCheckpoint=cq});var pbe=m(AP=>{"use strict";Object.defineProperty(AP,"__esModule",{value:!0});AP.verifyMerkleInclusion=b20;var pP=Ro(),cP=It(),l20=Buffer.from([0]),d20=Buffer.from([1]);function b20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new cP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=M20(n,o);if(r.hashes.length!==s+a)throw new cP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=g20(t.canonicalizedBody),A=m20(f20(p,c,n),u);if(!pP.crypto.bufferEqual(A,e.logHash))throw new cP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(b20,"verifyMerkleInclusion");function M20(t,e){let r=h20(t,e),n=z20(t>>BigInt(r));return{inner:r,border:n}}i(M20,"decompInclProof");function f20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?uP(o,n):uP(n,o),t)}i(f20,"chainInner");function m20(t,e){return e.reduce((r,n)=>uP(n,r),t)}i(m20,"chainBorderRight");function h20(t,e){return O20(t^e-BigInt(1))}i(h20,"innerProofSize");function z20(t){return t.toString(2).split("1").length-1}i(z20,"onesCount");function O20(t){return t===0n?0:t.toString(2).length}i(O20,"bitLength");function uP(t,e){return pP.crypto.digest("sha256",d20,t,e)}i(uP,"hashChildren");function g20(t){return pP.crypto.digest("sha256",l20,t)}i(g20,"hashLeaf")});var lbe=m(lP=>{"use strict";Object.defineProperty(lP,"__esModule",{value:!0});lP.verifyTLogSET=y20;var Abe=Ro(),E20=It(),C20=ad();function y20(t,e){if(!(0,C20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=B20(t),a=Buffer.from(Abe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Abe.crypto.verify(a,o.publicKey,c)}))throw new E20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(y20,"verifyTLogSET");function B20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(B20,"toVerificationPayload")});var bbe=m(uq=>{"use strict";Object.defineProperty(uq,"__esModule",{value:!0});uq.verifyTLogBody=N20;uq.verifyTLogInclusion=w20;var dbe=obe(),MP=It(),dP=sbe(),bP=ibe(),q20=abe(),D20=ube(),I20=pbe(),R20=lbe();function N20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new MP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==dP.DSSE_API_VERSION_V1)return(0,dP.verifyDSSETLogBody)(o,e);{let s=dbe.Entry.fromJSON(o);return(0,dP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,q20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==bP.HASHEDREKORD_API_VERSION_V1)return(0,bP.verifyHashedRekordTLogBody)(o,e);{let s=dbe.Entry.fromJSON(o);return(0,bP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new MP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}i(N20,"verifyTLogBody");function w20(t,e){let r=!1;if(S20(t)&&((0,R20.verifyTLogSET)(t,e),r=!0),F20(t)){let n=(0,D20.verifyCheckpoint)(t,e);(0,I20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new MP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(w20,"verifyTLogInclusion");function S20(t){return t.inclusionPromise!==void 0}i(S20,"isTLogEntryWithInclusionPromise");function F20(t){return t.inclusionProof!==void 0}i(F20,"isTLogEntryWithInclusionProof")});var zbe=m(pq=>{"use strict";Object.defineProperty(pq,"__esModule",{value:!0});pq.Verifier=void 0;var W20=require("util"),
[`+D+"] ";for(F in arguments[0])s(arguments[0],F)&&(C+=F+": "+arguments[0][F]+", ");C=C.slice(0,-2)}else C=arguments[D];O.push(C)}Q(d+`
Arguments: `+Array.prototype.slice.call(O).join("")+`
`+new Error().stack),h=!1}return M.apply(this,arguments)},M)}i(ue,"deprecate");var qe={};function Qe(d,M){e.deprecationHandler!=null&&e.deprecationHandler(d,M),qe[d]||(Q(M),qe[d]=!0)}i(Qe,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Re(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}i(Re,"isFunction");function ge(d){var M,h;for(h in d)s(d,h)&&(M=d[h],Re(M)?this[h]=M:this["_"+h]=M);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}i(ge,"set");function Ue(d,M){var h=l({},d),O;for(O in M)s(M,O)&&(o(d[O])&&o(M[O])?(h[O]={},l(h[O],d[O]),l(h[O],M[O])):M[O]!=null?h[O]=M[O]:delete h[O]);for(O in d)s(d,O)&&!s(M,O)&&o(d[O])&&(h[O]=l({},h[O]));return h}i(Ue,"mergeConfigs");function pe(d){d!=null&&this.set(d)}i(pe,"Locale");var Ge;Object.keys?Ge=Object.keys:Ge=i(function(d){var M,h=[];for(M in d)s(d,M)&&h.push(M);return h},"keys");var J={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _e(d,M,h){var O=this._calendar[d]||this._calendar.sameElse;return Re(O)?O.call(M,h):O}i(_e,"calendar");function E0(d,M,h){var O=""+Math.abs(d),C=M-O.length,D=d>=0;return(D?h?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+O}i(E0,"zeroFill");var ft=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V1={},B0={};function ne(d,M,h,O){var C=O;typeof O=="string"&&(C=i(function(){return this[O]()},"func")),d&&(B0[d]=C),M&&(B0[M[0]]=function(){return E0(C.apply(this,arguments),M[1],M[2])}),h&&(B0[h]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}i(ne,"addFormatToken");function vo(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}i(vo,"removeFormattingTokens");function cn(d){var M=d.match(ft),h,O;for(h=0,O=M.length;h<O;h++)B0[M[h]]?M[h]=B0[M[h]]:M[h]=vo(M[h]);return function(C){var D="",F;for(F=0;F<O;F++)D+=Re(M[F])?M[F].call(C,d):M[F];return D}}i(cn,"makeFormatFunction");function b0(d,M){return d.isValid()?(M=Kt(M,d.localeData()),V1[M]=V1[M]||cn(M),V1[M](d)):d.localeData().invalidDate()}i(b0,"formatMoment");function Kt(d,M){var h=5;function O(C){return M.longDateFormat(C)||C}for(i(O,"replaceLongDateFormatTokens"),p0.lastIndex=0;h>=0&&p0.test(d);)d=d.replace(p0,O),p0.lastIndex=0,h-=1;return d}i(Kt,"expandFormat");var Uh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Gh(d){var M=this._longDateFormat[d],h=this._longDateFormat[d.toUpperCase()];return M||!h?M:(this._longDateFormat[d]=h.match(ft).map(function(O){return O==="MMMM"||O==="MM"||O==="DD"||O==="dddd"?O.slice(1):O}).join(""),this._longDateFormat[d])}i(Gh,"longDateFormat");var ED="Invalid date";function Yc(){return this._invalidDate}i(Yc,"invalidDate");var R="%d",T=/\d{1,2}/;function v(d){return this._ordinal.replace("%d",d)}i(v,"ordinal");var k={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function De(d,M,h,O){var C=this._relativeTime[h];return Re(C)?C(d,M,h,O):C.replace(/%d/i,d)}i(De,"relativeTime");function e0(d,M){var h=this._relativeTime[d>0?"future":"past"];return Re(h)?h(M):h.replace(/%s/i,M)}i(e0,"pastFuture");var K0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",min
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(N30,"_nonIterableRest");Ch.exports=N30,Ch.exports.__esModule=!0,Ch.exports.default=Ch.exports});var T3e=m((Ab1,yh)=>{var w30=Oge(),S30=A3e(),F30=W3e(),W30=x3e();function x30(t,e){return w30(t)||S30(t,e)||F30(t,e)||W30()}i(x30,"_slicedToArray");yh.exports=x30,yh.exports.__esModule=!0,yh.exports.default=yh.exports});var L3e=m((db1,v3e)=>{"use strict";var T30=iD().forEach,v30=hh(),L30=v30("forEach");v3e.exports=L30?[].forEach:i(function(e){return T30(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var _3e=m(()=>{"use strict";var Q30=w0(),Q3e=L3e();Q30({target:"Array",proto:!0,forced:[].forEach!==Q3e},{forEach:Q3e})});var k3e=m((mb1,P3e)=>{"use strict";_3e();var _30=To();P3e.exports=_30("Array","forEach")});var G3e=m((hb1,U3e)=>{"use strict";var P30=k3e();U3e.exports=P30});var H3e=m(()=>{});var V3e=m((gb1,X3e)=>{"use strict";var k30=Rd(),U30=jt(),G30=Br(),H30=G3e();H3e();var b7=Array.prototype,X30={DOMTokenList:!0,NodeList:!0};X3e.exports=function(t){var e=t.forEach;return t===b7||G30(b7,t)&&e===b7.forEach||U30(X30,k30(t))?H30:e}});var M7=m((Eb1,Y3e)=>{Y3e.exports=V3e()});var J3e=m(()=>{"use strict";var V30=w0(),Y30=Uq().includes,J30=d1(),j30=JP(),$30=J30(function(){return!Array(1).includes()});V30({target:"Array",proto:!0,forced:$30},{includes:i(function(e){return Y30(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});j30("includes")});var $3e=m((qb1,j3e)=>{"use strict";J3e();var K30=To();j3e.exports=K30("Array","includes")});var Z3e=m((Db1,K3e)=>{"use strict";var Z30=sn(),eE0=za(),tE0=D1(),rE0=tE0("match");K3e.exports=function(t){var e;return Z30(t)&&((e=t[rE0])!==void 0?!!e:eE0(t)==="RegExp")}});var tEe=m((Ib1,eEe)=>{"use strict";var nE0=Z3e(),oE0=TypeError;eEe.exports=function(t){if(nE0(t))throw new oE0("The method doesn't accept regular expressions");return t}});var nEe=m((Rb1,rEe)=>{"use strict";var sE0=D1(),iE0=sE0("match");rEe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[iE0]=!1,"/./"[t](e)}catch{}}return!1}});var sEe=m(()=>{"use strict";var aE0=w0(),cE0=t1(),uE0=tEe(),pE0=kp(),oEe=ci(),AE0=nEe(),lE0=cE0("".indexOf);aE0({target:"String",proto:!0,forced:!AE0("includes")},{includes:i(function(e){return!!~lE0(oEe(pE0(this)),oEe(uE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var aEe=m((Fb1,iEe)=>{"use strict";sEe();var dE0=To();iEe.exports=dE0("String","includes")});var pEe=m((Wb1,uEe)=>{"use strict";var cEe=Br(),bE0=$3e(),ME0=aEe(),f7=Array.prototype,m7=String.prototype;uEe.exports=function(t){var e=t.includes;return t===f7||cEe(f7,t)&&e===f7.includes?bE0:typeof t=="string"||t===m7||cEe(m7,t)&&e===m7.includes?ME0:e}});var lEe=m((xb1,AEe)=>{"use strict";var fE0=pEe();AEe.exports=fE0});var Bh=m((Tb1,dEe)=>{dEe.exports=lEe()});var h7=m((vb1,bEe)=>{"use strict";bEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var mEe=m((Lb1,fEe)=>{"use strict";var mE0=t1(),hE0=kp(),zE0=ci(),O7=h7(),MEe=mE0("".replace),OE0=RegExp("^["+O7+"]+"),gE0=RegExp("(^|[^"+O7+"])["+O7+"]+$"),z7=i(function(t){return function(e){var r=zE0(hE0(e));return t&1&&(r=MEe(r,OE0,"")),t&2&&(r=MEe(r,gE0,"$1")),r}},"createMethod");fEe.exports={start:z7(1),end:z7(2),trim:z7(3)}});var yEe=m((_b1,CEe)=>{"use strict";var gEe=X1(),EE0=d1(),CE0=t1(),yE0=ci(),BE0=mEe().trim,hEe=h7(),qh=gEe.parseInt,zEe=gEe.Symbol,OEe=zEe&&zEe.iterator,EEe=/^[+-]?0x/i,qE0=CE0(EEe.exec),DE0=qh(hEe+"08")!==8||qh(hEe+"0x16")!==22||OEe&&!EE0(function(){qh(Object(OEe))});CEe.exports=DE0?i(function(e,r){var n=BE0(yE0(e));return qh(n,r>>>0||(qE0(EEe,n)?16:10))},"parseInt"):qh});var qEe=m(()=>{"use strict";var IE0=w0(),BEe=yEe();IE0({global:!0,forced:parseInt!==BEe},{parseInt:BEe})});var IEe=m((Gb1,DEe)=>{"use strict";qEe();var RE0=So();DEe.exports=RE0.parseInt});var NEe=m((Hb1,REe)=>{"use strict";var NE0=IEe();REe.exports=NE0});var SEe=m((Xb1,wEe)=>{wEe.exports=NEe()});var MD=m((Vb1,FEe)=>{FEe.exports=d7()});var TEe=m((Yb1,xEe)=>{"use strict";var WEe=Zm(),wE0=TypeError;xEe.exports=function(t,e){if(!delete t[e])throw new wE0("Cannot delete property "+WEe(e)+" of "+WEe(t))}});var QEe=m((Jb1,LEe)=>{"use strict";var vEe=Ah(),SE0=Math.floor,g7=i(function(t,e){var r=t.length;if(r<8)for(var n=1,o,s;n<r;){for(s=n,o=t[n];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==n++&&(t[s]=o)}else for(var a=SE0(r/2),c=g7(vEe(t,0,a),e),u=g7(vEe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");LEe.exports=g7});var kEe=m(($b1,PEe)=>{"use strict";var FE0=gd(),_Ee=FE0.match(/firefox\/(\d+)/i);PEe.exports=!!_Ee&&+_Ee[1]});var GEe=m((Kb1,UEe)=>{"use strict";var WE0=gd();UEe.exports=/MSIE|Trident/.test(WE0)});var VEe=m((Zb1,XEe)=>{"use strict";var xE0=gd(),HEe=xE0.match(/AppleWebKit\/(\d+)\./);XEe.exports=!!HEe&&+HEe[1]});var rCe=m(()=>{"use strict";var TE0=w0(),eCe=t1(),vE0=Gp(),LE0=ii(),YEe=Ea(),QE0=TEe(),JEe=ci(),E7=d1(),_E0=QEe(),PE0=hh(),jEe=kEe(),kE0=GEe(),$Ee=Ed(),KEe=VEe(),Gc=[],ZEe=eCe(Gc.sort),UE0=eCe(Gc.push),GE0=E7(function(){Gc.sort(void 0)}),HE0=E7(function(){Gc.sort(null)}),XE0=PE0("sort"),tCe=!E7(function(){if($Ee)return $Ee<70;if(!(jEe&&jEe>3)){if(kE0)return!0;if(KEe)return KEe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Gc.push({k:r+o,v:n})}for(Gc.sort(function(s,a){return a.v-s.v}),o=0;o<Gc.length;o++)r=Gc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),VE0=GE0||!HE0||!XE0||!tCe,YE0=i(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:JEe(e)>JEe(r)?1:-1}},"getSortCompare");TE0({target:"Array",proto:!0,forced:VE0},{sort:i(function(e){e!==void 0&&vE0(e);var r=LE0(this);if(tCe)return e===void 0?ZEe(r):ZEe(r,e);var n=[],o=YEe(r),s,a;for(a=0;a<o;a++)a in r&&UE0(n,r[a]);for(_E0(n,YE0(e)),s=YEe(n),a=0;a<s;)r[a]=n[a++];for(;a<o;)QE0(r,a++);return r},"sort")})});var oCe=m((nM1,nCe)=>{"use strict";rCe();var JE0=To();nCe.exports=JE0("Array","sort")});var iCe=m((oM1,sCe)=>{"use strict";var jE0=Br(),$E0=oCe(),C7=Array.prototype;sCe.exports=function(t){var e=t.sort;return t===C7||jE0(C7,t)&&e===C7.sort?$E0:e}});var cCe=m((sM1,aCe)=>{"use strict";var KE0=iCe();aCe.exports=KE0});var pCe=m((iM1,uCe)=>{uCe.exports=cCe()});var ACe=m(()=>{});var bCe=m((uM1,dCe)=>{"use strict";var ZE0=X1(),eC0=d1(),lCe=ZE0.RegExp,tC0=!eC0(function(){var t=!0;try{lCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=i(function(u,p){Object.defineProperty(e,u,{get:i(function(){return r+=p,!0},"get")})},"addGetter"),s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(s.hasIndices="d");for(var a in s)o(a,s[a]);var c=Object.getOwnPropertyDescriptor(lCe.prototype,"flags").get.call(e);return c!==n||r!==n});dCe.exports={correct:tC0}});var fCe=m((AM1,M
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,dC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(Rh,"_createForOfIteratorHelper");function gC0(t,e){var r;if(t){if(typeof t=="string")return RCe(t,e);var n=(0,eo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,mC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RCe(t,e)}}i(gC0,"_unsupportedIterableToArray");function RCe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(RCe,"_arrayLikeToArray");var _0="xregexp",Zp={astral:!1,namespacing:!1},b1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ui={},Dh={},Fd={},y7=[],Wd="default",NCe="class",EC0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},CC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,yC0=b1.exec.call(/()??/,"")[1]===void 0,BC0=(0,Kp.default)(/x/)!==void 0,qC0={},xCe=qC0.toString;function q7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(q7,"hasNativeFlag");var TCe=q7("u"),D7=q7("y"),vCe={g:!0,i:!0,m:!0,u:TCe,y:D7};function LCe(t,e,r,n,o){var s;if(t[_0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=Y.prototype;else for(var a in Y.prototype)t[a]=Y.prototype[a];return t[_0].source=r,t[_0].flags=n&&(0,OC0.default)(s=n.split("")).call(s).join(""),t}i(LCe,"augment");function Ih(t){return b1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Ih,"clipDuplicates");function tA(t,e){var r;if(!Y.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[_0]||{},o=DC0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=b1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Ih(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Kp.default)(n)!=null&&(u=s?Ih((0,Kp.default)(n)+s):(0,Kp.default)(n))),t=LCe(new RegExp(e.source||t.source,o),IC0(t)?(0,eo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(tA,"copyRegex");function QCe(t){return(0,WCe.default)(t,16)}i(QCe,"dec");function _Ce(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||b1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||RC0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(_Ce,"getContextualTokenSeparator");function DC0(t){return BC0?(0,Kp.default)(t):b1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(DC0,"getNativeFlags");function IC0(t){return!!(t[_0]&&t[_0].captureNames)}i(IC0,"hasNamedCapture");function PCe(t){return(0,WCe.default)(t,10).toString(16)}i(PCe,"hex");function RC0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return b1.test.call((0,eA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,eo.default)(t).call(t,e))}i(RC0,"isQuantifierNext");function I7(t,e){return xCe.call(t)==="[object ".concat(e,"]")}i(I7,"isType");function kCe(t){for(;t.length<4;)t="0".concat(t);return t}i(kCe,"pad4");function NC0(t,e){if(Ih(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=b1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(b1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Ih(e+a),""});var
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,ly0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(Oy0,"_createForOfIteratorHelper");function gy0(t,e){var r;if(t){if(typeof t=="string")return Rye(t,e);var n=(0,my0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,fy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rye(t,e)}}i(gy0,"_unsupportedIterableToArray");function Rye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Rye,"_arrayLikeToArray");var Ey0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var f=/^\\[xu](.+)/.exec(b);return f?n(f[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var f="",z=-1;return(0,zy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=c(g[1]);y>z+1&&(f+="\\u".concat(s(o(z+1))),y>z+2&&(f+="-\\u".concat(s(o(y-1))))),z=c(g[2]||g[1])}),z<65535&&(f+="\\u".concat(s(o(z+1))),z<65534&&(f+="-\\uFFFF")),f}i(u,"invertBmp");function p(b){var f="b!";return r[b][f]||(r[b][f]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,f){var z=r[b],g="";if(z.bmp&&!z.isBmpLast){var y;g=(0,S7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(g+=z.astral),z.isBmpLast&&z.bmp){var E;g+=(0,S7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return f?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}i(A,"buildAstral");function l(b,f){var z=f?"a!":"a=";return r[b][z]||(r[b][z]=A(b,f))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,f,z){var g="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",I=b[1]==="P"||!!b[2],W=(0,hy0.default)(z).call(z,"A"),x=a(b[4]||b[3]),Q=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(g+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var ue;throw new ReferenceError((0,S7.default)(ue="".concat(E+b[0]," -> ")).call(ue,Q.inverseOf))}Q=r[x],I=!I}if(!(Q.bmp||W))throw new SyntaxError(B+b[0]);if(W){if(f==="class")throw new SyntaxError(q);return l(x,I)}return f==="class"?I?p(x):Q.bmp:"".concat((I?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var f="Unicode token requires name",z="Unicode token has no character data ",g=Oy0(b),y;try{for(g.s();!(y=g.n()).done;){var E=y.value;if(!E.name)throw new Error(f);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var f=a(b);return r[f]}},"_default");xh.default=Ey0;Nye.exports=xh.default});var Fye=m((_M1,Sye)=>{Sye.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(_$,"getBooleanInput");function vN(t,e){if(process.env.GITHUB_OUTPUT||"")return Xd("OUTPUT",lz(t,e));process.stdout.write(TN.EOL),_o("set-output",{name:t},Qo(e))}i(vN,"setOutput");function P$(t){process.exitCode=xN.Failure,pl(t)}i(P$,"setFailed");function Ti(){return process.env.RUNNER_DEBUG==="1"}i(Ti,"isDebug");function N(t){_o("debug",{},t)}i(N,"debug");function pl(t,e={}){_o("error",HD(e),t instanceof Error?t.toString():t)}i(pl,"error");function Ke(t,e={}){_o("warning",HD(e),t instanceof Error?t.toString():t)}i(Ke,"warning");function S(t){process.stdout.write(t+TN.EOL)}i(S,"info");function Du(t){VD("group",t)}i(Du,"startGroup");function Iu(){VD("endgroup")}i(Iu,"endGroup");function at(t,e){return JQe(this,void 0,void 0,function*(){Du(t);let r;try{r=yield e()}finally{Iu()}return r})}i(at,"group");function dg(t,e){if(process.env.GITHUB_STATE||"")return Xd("STATE",lz(t,e));_o("save-state",{name:t},Qo(e))}i(dg,"saveState");function k$(t){return process.env[`STATE_${t}`]||""}i(k$,"getState");var my=w(require("fs"),1),Jv=w(require("os"),1),jv=w(require("path"),1);var G$=w(require("os"),1);function tM(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(tM,"toCommandValue");function H$(t,e,r){let n=new LN(t,e,r);process.stdout.write(n.toString()+G$.EOL)}i(H$,"issueCommand");var U$="::",LN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=U$+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${$Qe(o)}`)}}return e+=`${U$}${jQe(this.message)}`,e}};function jQe(t){return tM(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(jQe,"escapeData");function $Qe(t){return tM(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i($Qe,"escapeProperty");var J$=w(require("os"),1);var V$=require("os"),rM=require("fs");var QN=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:KQe,appendFile:ZQe,writeFile:e8e}=rM.promises,X$="GITHUB_STEP_SUMMARY";var _N=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return QN(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[X$];if(!e)throw new Error(`Unable to find environment variable for $${X$}. Check if your runtime environment supports job summaries.`);try{yield KQe(e,rM.constants.R_OK|rM.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let o=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return QN(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?e8e:ZQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return QN(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,r=!1){return this._buffer+=e,r?this.addEOL():this}addEOL(){return this.addRaw(V$.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(o=>{let s=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,cols
`),e=e.replace(/\r/g,`
`));let o=e.split(`
`).map(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new MM(s));return n.searchPaths.push(...gw(n.patterns)),n})}static stat(e,r,n){return Dw(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield ml.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){gn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else o=yield ml.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield ml.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){gn(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var Pke=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function Dee(t,e){return Pke(this,void 0,void 0,function*(){return yield Fg.create(t,e)})}i(Dee,"create");var Jg=w(require("crypto"),1),gl=w(require("fs"),1),Su=w(require("path"),1),O1e=w(h1e(),1),g1e=w(require("util"),1);var EM;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(EM||(EM={}));var Lt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Lt||(Lt={}));var kr;(function(t){t.GNU="gnu",t.BSD="bsd"})(kr||(kr={}));var Vg=2,Yg=5e3,Yw=5e3,Jw=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,z1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,CM="cache.tar",jw="manifest.txt",BS0=10*Math.pow(1024,3);var Ol=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},YUe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},JUe="1.0";function yM(){return Ol(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Su.join(n,"actions","temp")}let r=Su.join(e,Jg.randomUUID());return yield xi(r),r})}i(yM,"createTempDirectory");function ns(t){return gl.statSync(t).size}i(ns,"getArchiveFileSizeInBytes");function $w(t){return Ol(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield Dee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=YUe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let f=Su.relative(c,o).replace(new RegExp(`\\${Su.sep}`,"g"),"/");N(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i($w,"resolvePaths");function BM(t){return Ol(this,void 0,void 0,function*(){return g1e.promisify(gl.unlink)(t)})}i(BM,"unlinkFile");function E1e(t){return Ol(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Qr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(E1e,"getVersion");function qM(){return Ol(this,void 0,void 0,function*(){let t=yield E1e("zstd",["--quiet"]),e=O1e.clean(t);return N(`zstd version: ${e}`),t===""?Lt.Gzip:Lt.ZstdWithoutLong})}i(qM,"getCompressionMethod");function rc(t){return t===Lt.Gzip?EM.Gzip:EM.Zstd}i(rc,"getCacheFileName");function C1e(){return Ol(this,void 0,void 0,function*(){return gl.existsSync(Jw)?Jw:(yield E1e("tar")).toLowerCase().includes("gnu tar")?it("tar"):""})}i(C1e,"getGnuTarPathOnWindows");function Kw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(Kw,"assertDefined");function El(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(JUe),Jg.createHash("sha256").update(n.join("|")).digest("hex")}i(El,"getCacheVersion");function y1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(y1e,"getRuntimeToken");var IM=w(require("http"),1),t6=w(require("https"),1);function Zw(t){let e=t.protocol==="https:";if(jUe(t))return;let r=e?process.env.https_proxy||process.env.HTTPS_PROXY:process.env.http_proxy||process.env.HTTP_PROXY;if(r)try{return new $g(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new $g(`http://${r}`)}else return}i(Zw,"getProxyUrl");function jUe(t){if(!t.hostname)return!1;let e=t.hostname;if($Ue(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(jUe,"checkBypass");function $Ue(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i($Ue,"isLoopbackAddress");var $g=class extends URL{static{i(this,"DecodedURL")}constructor(e,r){super(e,r),this._decodedUsername=decodeURIComponent(super.username),this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}};var nc=w(Vd(),1),B1e=w(al(),1);var z1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},n1;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllo
${lGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function n3(t){return t instanceof _t?!0:Wu(t)&&t.name==="RestError"}i(n3,"isRestError");function sr(t,e){return Buffer.from(t,e)}i(sr,"stringToUint8Array");var o3=w(require("node:http"),1),s3=w(require("node:https"),1),A6=w(require("node:zlib"),1),U1e=require("node:stream");var yn=RM("ts-http-runtime");var dGe={};function NM(t){return t&&typeof t.pipe=="function"}i(NM,"isReadableStream");function k1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)},"handler");t.on("close",r),t.on("end",r),t.on("error",r)})}i(k1e,"isStreamComplete");function G1e(t){return t&&typeof t.byteLength=="number"}i(G1e,"isArrayBuffer");var i3=class extends U1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},l6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ss("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new mo;yn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=mGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,g=new i3(z);g.on("error",y=>{yn.error("Error in upload progress",y)}),NM(c)?c.pipe(g):g.end(c),c=g}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=bGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?MGe(p,A):p;let f=e.onDownloadProgress;if(f){let z=new i3(f);z.on("error",g=>{yn.error("Error in download progress",g)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await fGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();NM(c)&&(p=k1e(c));let A=Promise.resolve();NM(u)&&(A=k1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{yn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?o3.default.request(c,u):s3.default.request(c,u);A.once("error",l=>{p(new _t(l.message,{code:l.code??_t.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ss("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&NM(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):G1e(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(yn.error("Unrecognized body type",n),p(new _t("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?o3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new o3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return s3.default.globalAgent;let o=e.tlsSettings??dGe,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(yn.info("No cached TLS Agent exi
`;return e}i(YHe,"encodeHeaders");function JHe(t){return t instanceof Uint8Array?t.byteLength:N3(t)?t.size===-1?void 0:t.size:void 0}i(JHe,"getLength");function jHe(t){let e=0;for(let r of t){let n=JHe(r);if(n===void 0)return;e+=n}return e}i(jHe,"getTotalLength");async function $He(t,e,r){let n=[sr(`--${r}`,"utf-8"),...e.flatMap(s=>[sr(`\r
`,"utf-8"),sr(YHe(s.headers),"utf-8"),sr(`\r
`,"utf-8"),s.body,sr(`\r
--${r}`,"utf-8")]),sr(`--\r
\r
`,"utf-8")],o=jHe(n);o&&t.headers.set("Content-Length",o),t.body=await Yte(n)}i($He,"buildRequestBody");var FM="multipartPolicy",KHe=70,ZHe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function eXe(t){if(t.length>KHe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ZHe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i(eXe,"assertValidBoundary");function S3(){return{name:FM,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;if(a&&r&&a!==r)throw new Error(`Multipart boundary was specified as ${a} in the header, but got ${r} in the request body`);return r??=a,r?eXe(r):r=VHe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await $He(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(S3,"multipartPolicy");function F3(){return r3()}i(F3,"createEmptyPipeline");var Jte=Zg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Cv0=Jte.logger;function cs(t){return Jte.createClientLogger(t)}i(cs,"createClientLogger");var us=cs("core-rest-pipeline");function w6(t={}){return c3({logger:us.info,...t})}i(w6,"logPolicy");var S6=u3;function F6(t={}){return p3(t)}i(F6,"redirectPolicy");var W3=w(require("node:os"),1),x3=w(require("node:process"),1);function jte(){return"User-Agent"}i(jte,"getHeaderName");async function $te(t){if(x3.default&&x3.default.versions){let e=`${W3.default.type()} ${W3.default.release()}; ${W3.default.arch()}`,r=x3.default.versions;r.bun?t.set("Bun",`${r.bun} (${e})`):r.deno?t.set("Deno",`${r.deno} (${e})`):r.node&&t.set("Node",`${r.node} (${e})`)}}i($te,"setPlatformSpecificData");var T3="1.22.2";function cXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(cXe,"getUserAgentString");function Kte(){return jte()}i(Kte,"getUserAgentHeaderName");async function v3(t){let e=new Map;e.set("core-rest-pipeline",T3),await $te(e);let r=cXe(e);return t?`${t} ${r}`:r}i(v3,"getUserAgentValue");var Zte=Kte(),ere="userAgentPolicy";function W6(t={}){let e=v3(t.userAgentPrefix);return{name:ere,async sendRequest(r,n){return r.headers.has(Zte)||r.headers.set(Zte,await e),n(r)}}}i(W6,"userAgentPolicy");var Vr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function x6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Vr(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(x6,"createAbortablePromise");var dXe="The delay was aborted.";function WM(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return x6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??dXe})}i(WM,"delay");function sc(t){if(Wu(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}i(sc,"getErrorMessage");function tre(t){return Wu(t)}i(tre,"isError");function wl(){return Fu()}i(wl,"randomUUID");var l0=vu;var rre=Symbol("rawContent");function v6(t){return typeof t[rre]=="function"}i(v6,"hasRawContent");function nre(t){return v6(t)?t[rre]():t}i(nre,"getRawContent");var L3=FM;function L6(){let t=S3();return{name:L3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)v6(n.body)&&(n.body=nre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(L6,"multipartPolicy");var Q6=A3;function _6(){return l3()}i(_6,"decompressResponsePolicy");fun
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!vVe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",O1("InvalidTag",l,Pt(t,s))}let p=SVe(t,s);if(p===!1)return O1("InvalidAttr","Attributes for '"+u+"' have open quote.",Pt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=kre(A,e);if(b===!0)n=!0;else return O1(b.err.code,b.err.msg,Pt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return O1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Pt(t,a));if(r.length===0)return O1("InvalidTag","Closing tag '"+u+"' has not been opened.",Pt(t,a));{let l=r.pop();if(u!==l.tagName){let b=Pt(t,l.tagStartPos);return O1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Pt(t,a))}r.length==0&&(o=!0)}}else return O1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Pt(t,s));else{let l=kre(A,e);if(l!==!0)return O1(l.err.code,l.err.msg,Pt(t,s-A.length+l.err.line));if(o===!0)return O1("InvalidXml","Multiple possible root nodes found.",Pt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Pre(t,s);continue}else if(t[s+1]==="?"){if(s=_re(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=xVe(t,s);if(l==-1)return O1("InvalidChar","char '&' is not expected.",Pt(t,s));s=l}else if(o===!0&&!Qre(t[s]))return O1("InvalidXml","Extra text at the end",Pt(t,s));t[s]==="<"&&s--}}else{if(Qre(t[s]))continue;return O1("InvalidChar","char '"+t[s]+"' is not expected.",Pt(t,s))}if(n){if(r.length==1)return O1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pt(t,r[0].tagStartPos));if(r.length>0)return O1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return O1("InvalidXml","Start tag expected.",1);return!0}i($3,"validate");function Qre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(Qre,"isWhiteSpace");function _re(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return O1("InvalidXml","XML declaration allowed only at the start of the document.",Pt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(_re,"readPI");function Pre(t,e){if(t.length>e+5&&t[e+1]==="-"&&t[e+2]==="-"){for(e+=3;e<t.length;e++)if(t[e]==="-"&&t[e+1]==="-"&&t[e+2]===">"){e+=2;break}}else if(t.length>e+8&&t[e+1]==="D"&&t[e+2]==="O"&&t[e+3]==="C"&&t[e+4]==="T"&&t[e+5]==="Y"&&t[e+6]==="P"&&t[e+7]==="E"){let r=1;for(e+=8;e<t.length;e++)if(t[e]==="<")r++;else if(t[e]===">"&&(r--,r===0))break}else if(t.length>e+9&&t[e+1]==="["&&t[e+2]==="C"&&t[e+3]==="D"&&t[e+4]==="A"&&t[e+5]==="T"&&t[e+6]==="A"&&t[e+7]==="["){for(e+=8;e<t.length;e++)if(t[e]==="]"&&t[e+1]==="]"&&t[e+2]===">"){e+=2;break}}return e}i(Pre,"readCommentAndCDATA");var NVe='"',wVe="'";function SVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===NVe||t[e]===wVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(SVe,"readAttributeStr");var FVe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function kre(t,e){let r=J3(t,FVe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",XM(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",XM(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return O1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",XM(r[o]));let s=r[o][2];if(!TVe(s))return O1("InvalidAttr","Attribute '"+s+"' is an invalid name.",XM(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return O1("InvalidAttr","Attribute '"+s+"' is repeated.",XM(r[o]))}return!0}i(kre,"validateAttributeString");function WVe(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}i(WVe,"validateNumberAmpersand");function xVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,WVe(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}i(xVe,"validateAmpersand");function O1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(O1,"getErrorObject");function TVe(t){return AS(t)}i(TVe,"validateAttrName");function vVe(t){return AS(t)}i(vVe,"validateTagName");function Pt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Pt,"getLineNumberForPosition");function XM(t){return t.startIndex+t[1].length}i(XM,"getPositionFromMatch");var Ure={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",amp:"&",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Gre={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntil
`);let e=new ur("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new JM(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=vl(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=zS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=OS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new ur(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=vl(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=vl(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=OS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,f=A.tagExp,z=A.attrExpPresent,g=A.closeIndex;if({tagName:l,tagExp:f}=zS(o.transformTagName,l,f,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),z=l!==f);let B=null,q={},I;I=iYe(b),l!==e.tagname&&this.matcher.push(l,{},I),l!==f&&z&&(B=this.buildAttributesMap(f,this.matcher,l),B&&(q=sYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let W=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ue=this.readStopNodeData(t,b,g+1);if(!ue)throw new Error(`Unexpected end of ${b}`);c=ue.i,x=ue.tagContent}let Q=new ur(l);B&&(Q[":@"]=B),Q.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,W)}else{if(E){({tagName:l,tagExp:f}=zS(o.transformTagName,l,f,o));let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new ur(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),r=x}n="",c=g}}}else n+=t[c];return e.child},"parse
`;function yYe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(qS(r)==="?xml"){let o=r[":@"];if(o){let s=e.attributeNamePrefix+"version";if(o[s])return o[s]}}return"1.0"}i(yYe,"detectXmlVersionFromArray");function Ane(t,e,r,n,o){return!r.sanitizeName||ku(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(Ane,"resolveTagName");function BS(t,e){let r="";e.format&&(r=CYe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new jr(c)):c instanceof jr&&n.push(c)}let o=yYe(t,e),s=new ls;return lne(t,e,r,s,n,o)}i(BS,"toXml");function lne(t,e,r,n,o,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=yS(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=qS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:Ane(A,!1,e,n,s),f=BYe(p[":@"],e);n.push(b,f);let z=DYe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=yS(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],I=rE(q);a+=`<![CDATA[${I}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],I=tE(q);a+=r+`<!--${I}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=pne(p[":@"],e,z,n,s);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=pne(p[":@"],e,z,n,s),E=r+`<${b}${y}`,B;z?B=dne(p[A],e):B=lne(p[A],e,g,n,o,s),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}i(lne,"arrToStr");function BYe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let s=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[s]=uc(t[o]),n=!0}return n?r:null}i(BYe,"extractAttributeValues");function dne(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],s=qS(o);if(s===e.textNodeName)r+=o[s];else if(s===e.cdataPropName)r+=o[s][0][e.textNodeName];else if(s===e.commentPropName)r+=o[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=qYe(o[":@"],e),c=dne(o[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}i(dne,"getRawContent");function qYe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${uc(o)}"`}return r}i(qYe,"attr_to_str_raw");function qS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(qS,"propName");function pne(t,e,r,n,o){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:Ane(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=yS(p,e)),p===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${uc(p)}"`}return s}i(pne,"attr_to_str");function DYe(t,e){if(!e||e.length===0)return!1;for(let r=0;r<e.length;r++)if(t.matches(e[r]))return!0;return!1}i(DYe,"checkStopNode");function yS(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(yS,"replaceEntitiesValue");function DS(t){return typeof t=="function"?t:Array.isArray(t)?e=>{for(let r of t)if(typeof r=="string"&&e===r||r instanceof RegExp&&r.test(e))return!0}:()=>!1}i(DS,"getIgnoreAttributesFn");var IYe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(Ar,"Builder");function RYe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(RYe,"detectXmlVersionFromObj");function IS(t,e,r,n,o){return!r.sanitizeName||ku(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(IS,"resolveTagName");Ar.prototype.build=function(t){if(this.options.preserveOrder)return BS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ls,r=RYe(t,this.options);return this.j2x(t,0,e,r).val}};Ar.prototype.j2x=function(t,e,r,n){let o="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:IS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?s+="":A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=IS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let f=""+t[u];f===""?s+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:s+=this.indentate(e)+"<"+A+">"+f+"</"+A+this.tagEndChar}else s+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",f="";for(let z=0;z<l;z++){let g=t[u][z];if(!(typeof g>"u"))if(g===null)A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(g,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else b+=this.processTextOrObjNode(g,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,g);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,f,e)),s+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let f=0;f<b;f++){let z=IS(l[f],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[f]],c)}}else s+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:s}};Ar.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+uc(e)+'"'};function NYe(t,e,r,n,o){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(NYe,"process
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Be.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE));r.sort((o,s)=>dE(o.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((o,s,a)=>!(s>0&&o.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=pE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=AE(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var o1=class extends Hu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ef(e,r,this)}computeHMACSHA256(e){return(0,gne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Q1=cs("storage-common");var In;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(In||(In={}));var Ac={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},QYe=new Vr("The operation was aborted."),tf=class extends ds{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ac){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ac.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ac.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ac.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs):Ac.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ac.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=uE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=pc(o.url,Hi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Q1.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(Q1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return Q1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return Q1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return Q1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Q1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Be.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(Q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case In.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case In.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return Q1.info(`RetryPolicy: Delay for ${o}ms`),lE(o,n,QYe)}};var rf=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new tf(e,r,this.retryOptions)}};var _Ye="storageBrowserPolicy";function Ene(){return{name:_Ye,async sendRequest(t,e){return l0||((t.method==="GET"||t.method==="HEAD")&&(t.url=pc(t.url,Hi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Be.COOKIE),t.headers.delete(Be.CONTENT_LENGTH)),e(t)}}}i(Ene,"storageBrowserPolicy");var PYe="StorageCorrectContentLengthPolicy";function Cne(){function t(e){e.body&&(
`)+`
`+n(s)+o(s),c=(0,Bne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Be.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Be.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(s){let a=[];for(let[u,p]of s.headers)u.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>dE(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=pE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=AE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return i(o,"getCanonicalizedResourceString"),{name:HYe,async sendRequest(s,a){return e(s),a(s)}}}i(FS,"storageSharedKeyCredentialPolicy");var XYe="storageRequestFailureDetailsParserPolicy";function qne(){return{name:XYe,async sendRequest(t,e){try{return await e(t)}catch(r){throw typeof r=="object"&&r!==null&&r.response&&r.response.parsedBody&&r.response.parsedBody.code==="InvalidHeaderValue"&&r.response.parsedBody.HeaderName==="x-ms-version"&&(r.message=`The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.
`),r}}}}i(qne,"storageRequestFailureDetailsParserPolicy");var Dne=require("node:crypto");var bE=class{static{i(this,"UserDelegationKeyCredential")}accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return(0,Dne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var ME="12.31.0",fE="2026-02-06";var mE="https://storage.azure.com/.default",Xi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ho="",WS="*",VYe=1*1024*1024;var YYe=4*VYe;var Ine="AES256",Rne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Nne=["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"],wne=["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"],Sne="BlobUsesCustomerSpecifiedEncryption",Fne="BlobDoesNotUseCustomerSpecifiedEncryption",Wne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Vi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Vi,"isPipelineLike");var nf=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function g1(t,e={}){t||(t=new H0);let r=new nf([],e);return r._credential=t,r}i(g1,"newPipeline");function JYe(t){let e=[jYe,xne,$Ye,KYe,ZYe,eJe,rJ
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new Co(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Jje,"generateBlobSASQueryParameters20150405");function jje(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(jje,"generateBlobSASQueryParameters20181109");function $je(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}i($je,"generateBlobSASQueryParameters20201206");function Kje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}i(Kje,"generateBlobSASQueryParametersUDK20181109");function Zje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}i(Zje,"generateBlobSASQueryParametersUDK20200210");function e$e(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}i(e$e,"generateBlobSASQueryParametersUDK20201206");function t$e(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}i(t$e,"generateBlobSASQueryParametersUDK20250705");function Zu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Zu,"getCanonicalName");function ep(t){let e=t.version?t.version:fE;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}i(ep,"SASSignatureValuesSanityCheckAndAutofill");var ff=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){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),r||(r=wl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ce.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return ce.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.i
If 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(r),this.code=e,this.name="NetworkError"}};$l.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var op=class extends Error{static{i(this,"UsageError")}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"}};op.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var qf=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var AKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},BT=class{static{i(this,"UploadProgress")}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,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))},"displayCallback");this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Lse(t,e,r){return AKe(this,void 0,void 0,function*(){var n;let o=new ea(t),s=o.getBlockBlobClient(),a=new BT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new gC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Lse,"uploadCacheArchiveSDK");var _se=w(require("buffer"),1),Ss=w(require("fs"),1),Pse=w(require("stream"),1),kse=w(require("util"),1);var EC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function CC(t){return t?t>=200&&t<300:!1}i(CC,"isSuccessStatusCode");function lKe(t){return t?t>=500:!0}i(lKe,"isServerErrorStatusCode");function dKe(t){return t?[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout].includes(t):!1}i(dKe,"isRetryableStatusCode");function bKe(t){return EC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(bKe,"sleep");function Qse(t,e,r){return EC(this,arguments,void 0,function*(n,o,s,a=Vg,c=Yg,u=void 0){let p="",A=1;for(;A<=a;){let l,b,f=!1;try{l=yield o()}catch(z){u&&(l=u(z)),f=!0,p=z.message}if(l&&(b=s(l),!lKe(b)))return l;if(b&&(f=dKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!f){N(`${n} - Error is not retryable`);break}yield bKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(Qse,"retry");function Df(t,e){return EC(this,arguments,void 0,function*(r,n,o=Vg,s=Yg){return yield Qse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof os)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(Df,"retryTypedResponse");function Kl(t,e){return EC(this,arguments,void 0,function*(r,n,o=Vg,s=Yg){return yield Qse(r,n,a=>a.message.statusCode,o,s)})}i(Kl,"retryHttpClientResponse");var Fn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a
Other caches with similar key:`);for(let c of s?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(EKe,"printCachesListForDiagnostics");function RT(t,e,r){return dr(this,void 0,void 0,function*(){let n=new Kse.URL(t),o=Xse(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield Gse(t,e,o):o.concurrentBlobDownloads?yield Use(t,e,o):yield BC(t,e):yield BC(t,e)})}i(RT,"downloadCache");function eie(t,e,r){return dr(this,void 0,void 0,function*(){let n=IT(),o=El(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield Df("reserveCache",()=>dr(this,void 0,void 0,function*(){return n.postJson(Rf("caches"),s)}))})}i(eie,"reserveCache");function $se(t,e){return`bytes ${t}-${e}/*`}i($se,"getContentRange");function CKe(t,e,r,n,o){return dr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${$se(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":$se(n,o)},a=yield Kl(`uploadChunk (start: ${n}, end: ${o})`,()=>dr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!CC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(CKe,"uploadChunk");function yKe(t,e,r,n){return dr(this,void 0,void 0,function*(){let o=ns(r),s=Rf(`caches/${e.toString()}`),a=Zl.openSync(r,"r"),c=qT(n),u=Kw("uploadConcurrency",c.uploadConcurrency),p=Kw("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>dr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),f=l,z=l+b-1;l+=p,yield CKe(t,s,()=>Zl.createReadStream(r,{fd:a,start:f,end:z,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,z)}})))}finally{Zl.closeSync(a)}})}i(yKe,"uploadFile");function BKe(t,e,r){return dr(this,void 0,void 0,function*(){let n={size:r};return yield Df("commitCache",()=>dr(this,void 0,void 0,function*(){return t.postJson(Rf(`caches/${e.toString()}`),n)}))})}i(BKe,"commitCache");function NT(t,e,r,n){return dr(this,void 0,void 0,function*(){if(qT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Lse(r,e,n)}else{let s=IT();N("Upload cache"),yield yKe(s,t,e,n),N("Commiting cache");let a=ns(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield BKe(s,t,a);if(!CC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(NT,"saveCache");var Yie=w(Pie(),1),y1=w(C1(),1),Zr=w(C1(),1),up=w(C1(),1),pp=w(C1(),1),Ap=w(C1(),1);var yv=w(C1(),1),Bv=w(C1(),1),Hie=w(C1(),1),Xie=w(C1(),1),Vie=w(C1(),1);var gv=w(C1(),1),Ev=w(C1(),1),kie=w(C1(),1),Uie=w(C1(),1),Gie=w(C1(),1);var Cv=class extends Gie.MessageType{static{i(this,"CacheScope$Type")}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 r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,Uie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,kie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Ev.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Ev.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},ly=new Cv;var qv=class extends Vie.Mess
`));let n=yield Pv(r,"create");yield kv(n,t)})}i(Gv,"createTar");var f2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},qo=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},lp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Hv="cache write denied:",M2=class t extends lp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},fy=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Kie(t){if(!t||t.length===0)throw new qo("Path Validation Error: At least one directory or file path is required")}i(Kie,"checkPaths");function Xv(t){if(t.length>512)throw new qo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qo(`Key Validation Error: ${t} cannot contain commas.`)}i(Xv,"checkKey");function Vv(){return If()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(Vv,"isFeatureAvailable");function Zie(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=If();return N(`Cache service version: ${p}`),Kie(o),p==="v2"?yield _e0(o,s,a,c,u):yield Qe0(o,s,a,c,u)})}i(Zie,"restoreCache");function Qe0(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of p)Xv(b);let A=yield qM(),l="";try{let b=yield Zse(p,o,{compressionMethod:A,enableCrossOsArchive:u});if(!b?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),b.cacheKey;l=Hf.join(yield yM(),rc(A)),N(`Archive Path: ${l}`),yield RT(b.archiveLocation,l,c),Ti()&&(yield Gf(l,A));let f=ns(l);return S(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield Uv(l,A),S("Cache restored successfully"),b.cacheKey}catch(b){let f=b;if(f.name===qo.name)throw b;f instanceof os&&typeof f.statusCode=="number"&&f.statusCode>=500?pl(`Failed to restore: ${b.message}`):Ke(`Failed to restore: ${b.message}`)}finally{try{yield BM(l)}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(Qe0,"restoreCacheV1");function _e0(t,e,r,n){return f2(this,arguments,void 0,function*(o,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of p)Xv(l);let A="";try{let l=_v(),b=yield qM(),f={key:s,restoreKeys:a,version:El(o,b,u)},z=yield l.GetCacheEntryDownloadURL(f);if(!z.ok){N(`Cache not found for version ${f.version} of keys: ${p.join(", ")}`);return}if(f.key!==z.matchedKey?S(`Cache hit for restore-key: ${z.matchedKey}`):S(`Cache hit for: ${z.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),z.matchedKey;A=Hf.join(yield yM(),rc(b)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield RT(z.signedDownloadUrl,A,c);let y=ns(A);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ti()&&(yield Gf(A,b)),yield Uv(A,b),S("Cache restored successfully"),z.matchedKey}catch(l){let b=l;if(b.name===qo.name)throw l;b instanceof os&&typeof b.statusCode=="number"&&b.statusCode>=500?pl(`Failed to restore: ${l.message}`):Ke(`Failed to restore: ${l.message}`)}finally{try{A&&(yield BM(A))}catch(l){N(`Failed to delete archive: ${l}`)}}})}i(_e0,"restoreCacheV2");function Yv(t,e,r){return f2(this,arguments,void 0,function*(n,o,s,a=!1)
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}i(T00,"_buildMessageForResponseErrors");var v00=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(T00(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},L00=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Q00=["query","method","url"],_ae=/\/api\/v3\/?$/;function _00(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Q00.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>L00.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return _ae.test(s)&&(o.url=s.replace(_ae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new v00(o,c,a.data)}return a.data.data})}i(_00,"graphql");function aL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>_00(r,o,s),"newApi"),{defaults:aL.bind(null,r),endpoint:r.endpoint})}i(aL,"withDefaults");var te1=aL(Jf,{headers:{"user-agent":`octokit-graphql.js/${x00} ${Oc()}`},method:"POST",url:"/graphql"});function Pae(t){return aL(t,{method:"POST",url:"/graphql"})}i(Pae,"withCustomRequest");var cL="(?:[a-zA-Z0-9_-]+)",kae="\\.",Uae=new RegExp(`^${cL}${kae}${cL}${kae}${cL}$`),P00=Uae.test.bind(Uae);async function k00(t){let e=P00(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(k00,"auth");function U00(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(U00,"withAuthorizationPrefix");async function G00(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=U00(t),e(o)}i(G00,"hook");var Gae=i(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(k00.bind(null,e),{hook:G00.bind(null,e)})},"createTokenAuth2");var uL="7.0.6";var Hae=i(()=>{},"noop"),H00=console.warn.bind(console),X00=console.error.bind(console);function V00(t={}){return typeof t.debug!="function"&&(t.debug=Hae),typeof t.info!="function"&&(t.info=Hae),typeof t.warn!="function"&&(t.warn=H00),typeof t.error!="function"&&(t.error=X00),t}i(V00,"createLogger");var Xae=`octokit-core.js/${uL} ${Oc()}`,Ry=class{static{i(this,"Octokit")}static VERSION=uL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new zae.Collection,n={baseUrl:Jf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Xae}`:Xae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Jf.defaults(n),this.graphql=Pae(this.request).defaults(n),this.log=V00(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=Gae(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<f},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:f,raw:z,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:I,escape:W,quote:x,record_delimiter:Q}=this.options,{bomSkipped:ue,delimiterDiscovered:qe,delimiterBufPrevious:Qe,rawBuffer:Re,escapeIsQuote:ge}=this.state;if(!qe&&p){let _e;if(Qe===void 0?_e=n:Qe!==void 0&&n===void 0?_e=Qe:_e=Buffer.concat([Qe,n]),n=void 0,o||_e.length>p.size)this.options.delimiter=[Buffer.from(nle(_e,this.options.delimiter_auto))],this.state.previousBuf=_e,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=_e;return}}let{previousBuf:Ue}=this.state,pe;if(Ue===void 0)if(n===void 0){a();return}else pe=n;else Ue!==void 0&&n===void 0?pe=Ue:pe=Buffer.concat([Ue,n]);if(ue===!1)if(c===!1)this.state.bomSkipped=!0;else if(pe.length<3){if(o===!1){this.state.previousBuf=pe;return}}else{for(let _e in x2)if(x2[_e].compare(pe,0,x2[_e].length)===0){let E0=x2[_e].length;this.state.bufBytesStart+=E0,pe=pe.slice(E0);let ft=W2({...this.original_options,encoding:_e});for(let p0 in ft)this.options[p0]=ft[p0];({comment:I,escape:W,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ge=pe.length,J;for(J=0;J<Ge&&!this.__needMoreData(J,Ge,o);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(pe,J)&&(Q=this.options.record_delimiter);let _e=pe[J];if(z===!0&&Re.append(_e),(_e===Ni0||_e===wi0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(W!==null&&this.state.quoting===!0&&this.__isEscape(pe,J,_e)&&J+W.length<Ge)if(ge){if(this.__isQuote(pe,J+W.length)){this.state.escaping=!0,J+=W.length-1;continue}}else{this.state.escaping=!0,J+=W.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(pe,J))if(this.state.quoting===!0){let p0=pe[J+x.length],V1=y&&this.__isCharTrimable(pe,J+x.length),B0=I!==null&&this.__compareBytes(I,pe,J+x.length,p0),ne=this.__isDelimiter(pe,J+x.length,p0),vo=Q.length===0?this.__autoDiscoverRecordDelimiter(pe,J+x.length):this.__isRecordDelimiter(p0,pe,J+x.length);if(W!==null&&this.__isEscape(pe,J,_e)&&this.__isQuote(pe,J+W.length))J+=W.length-1;else if(!p0||ne||vo||B0||V1){this.state.quoting=!1,this.state.wasQuoting=!0,J+=x.length-1;continue}else if(g===!1){let cn=this.__error(new Ve("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(p0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(cn!==void 0)return cn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),J+=x.length-1}else if(this.state.field.length!==0){if(g===!1){let p0=this.__infoField(),V1=Object.keys(x2).map(ne=>x2[ne].equals(this.state.field.toString())?ne:!1).filter(Boolean)[0],B0=this.__error(new Ve("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(p0.column)} at line ${p0.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,V1?`(${V1} bom)`:void 0],this.options,p0,{field:this.state.field}));if(B0!==void 0)return B0}}else{this.state.quoting=!0,J+=x.length-1;continue}if(this.state.quoting===!1){let p0=this.__isRecordDelimiter(_e,pe,J);if(p0!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=p0-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=p0-1;continue}this.info.bytes=this.state.bufBytesSt
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var F1=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=S4(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");var c0=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(_r(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=F1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of o)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=_r(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await it("powershell",!0),o=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${s.join(" ")}`]}}static isDirectory(e){try{return sle.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return kQ.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return kQ.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return ile.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelative
More info: ${u.url}`);let f=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let g of a)if(g.remote||g.path.endsWith(p)&&g.content===A){c.push({title:l,message:b,file:g.path,startLine:f}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var Cp=w(require("fs"),1),GQ=w(require("path"),1);var F4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new N0,this.iidFilename=`build-iidfile-${c0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${c0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([f])=>!r.has(f)),s=c0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Ht.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&c0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${a0.serverURL}/${Ht.repo.owner}/${Ht.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(c0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Ht.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Ht.payload.pull_request?.head?.sha=="string"?Ht.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let f=[`ref=${s||u?a:b}`],z=s?b:u;z&&f.push(`checksum=${z}`),p&&p!=="."&&f.push(`subdir=${p}`);for(let[g,y]of o)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return GQ.default.join(s0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Cp.default.existsSync(e))return Cp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return GQ.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Cp.default.existsSync(e))return;let r=Cp.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Cp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=s0.tmpName({tmpdir:s0.tmpDir()});return Cp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=_r(e);if(!r)return r;try{return _$(e)?`builder-id=${a0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${a0.workflowRunURL(!0)}`;let r=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${a0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${a0.repository}`),!s&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExpo
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=F1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=F1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=c0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&$o(s),[o,s]}};var HQ=w(require("fs"),1),ule=w(require("path"),1);var W4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new N0,this.metadataFilename=`bake-metadata-${c0.generateRandomString()}.json`}getMetadataFilePath(){return ule.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!HQ.default.existsSync(e))return;let r=HQ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!c0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Oe.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=c0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let o=n[1].trim();if(o.startsWith("tag: "))return await t.findDetachedTagRef(o,e);if(o.match(/^pull\/\d+\/(head|merge)$/))return`refs/${o}`;let a=o.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=o.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Oe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[o]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(s=>s.trim()).filter(s=>s.length>0).sort((s,a)=>a.length-s.length);for(let s of o){let a=`tag: ${s.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return s}if(o.length===1)return o[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(o=>o.trim()).filter(o=>o.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Bbe=require("crypto"),ei=w(require("fs"),1),ti=w(require("path"),1);var ld=w(ZQ(),1),qbe=w(b_(),1),dd=w(gbe(),1);var hP=w(ZQ(),1);var Cbe=w(_n(),1);var Ebe="application/vnd.oci.empty.v1+json";var Zs=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Oe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Oe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await Oe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=Cbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===hP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Ebe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===hP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var zP=w(require("fs"),1);var Aq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new N0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=s0.tmpName({tmpdir:s0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)r.
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Oe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Pp="https://search.sigstore.dev";var ybe="slsaprovenance1",_c=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Zs,this.imageTools=e?.imageTools||new Aq}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let o of e.imageNames){let s=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of s){let c=`${o}@${a}`;await at(`Signing attestation manifest ${c}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];S(`[command]${this.cosign.binPath} ${[...u,c].join(" ")}`);let p=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...u,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Zs.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(A.errors&&A.errors.length>0){let b=A.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${b}`)}else throw new Error(`Cosign sign command failed with: ${p.stderr.trim().split(/\r?\n/).filter(b=>b.length>0).pop()??"unknown error"}`);let l=t.parseBundle((0,ld.bundleFromJSON)(A.bundle));l.tlogID&&S(`Uploaded to Rekor transparency log: ${Pp}?logIndex=${l.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...l,imageName:o}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,s]of Object.entries(e))await at(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of o){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=Zs.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,s;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=Zs.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),o=t.getProvenanceBlobs(e);for(let s of Object.keys(o))await at(`Signing ${s}`,async()=>{let a=o[s],c=ti.default.join(ti.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){Ke(`No subjects found in provenance ${s}, skip signing.`);return}let p=ti.default.join(ti.default.dirname(s),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",s,"--type",ybe,"--bundle",c,...n];S(`[command]${this.cosign.binPath} ${[...A,p].join(" ")}`);let l=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...A,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),b=Zs.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(b.errors&&b.errors.length>0){let z=b.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${z}`)}else throw new Error(`Cosign attest-blob command failed with: ${l.stderr.trim().split(/\r?\n/).filter(z=>z.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,ld.bundleFromJSON)(JSON.parse(ei.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let z of u){let[g,y]=Object.entries(z.digest)[0]||[];S(` - ${z.name} (${g}:${y})`)}f.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${Pp}?logIndex=${f.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[s]={...f,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ti.default.dirname(o);await at(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ti.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??ybe];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await Oe.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ei.default.readFileSync(r,"utf-8")),s=(0,ld.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await qbe.getTrustedRoot(),c=(0,dd.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,dd.toSignedEntity)(s,ei.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let z=p.subjectAltName?.replace(/^uri:/i,"");if(z){if(!z.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${z}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new dd.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??a0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e);return S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await at("Creating Sigstore protobuf signing config",async()=>{let o=s0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:s0.tmpDir()}),s=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&s.push("--no-default-rekor=true"),await Oe.exec(this.cosign.binPath,s,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ei.default.readFileSync(o,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${o}`)}):(r.push("--use-signing-config"),n&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=ti.default.join(e.localExportDir,"provenance.json");if(ei.default.existsSync(r))return{[r]:ei.default.readFileSync(r)};let n=ei.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ei.default.existsSync(ti.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ti.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ei.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.
`)){let[p,...A]=u.split(":"),l=p.toLowerCase(),b=A.map(f=>f.trim()).join(":");if(p.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=b:(s&&o.gcPolicy&&(o.gcPolicy.push(s),s=void 0),o.name&&r.nodes.push(o),o={name:b});break;case l=="driver":n=void 0,r.driver=b;break;case l=="last activity":n=void 0,r.lastActivity=new Date(b);break;case l=="endpoint":n=void 0,o.endpoint=b;break;case l=="driver options":n=void 0,o["driver-opts"]=(b.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,o.status=b;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,o["buildkitd-flags"]=b;break;case l=="buildkit version":case l=="buildkit":n=void 0,o.buildkit=b;break;case l=="platforms":{if(n=void 0,!b)break;let f=[];if(b.includes("*"))for(let z of b.split(", "))z.includes("*")&&f.push(z.replace(/\*/g,""));else f=b.split(", ");o.platforms=f.join(",");break}case l=="features":n="features",o.features={};break;case l=="labels":n="label",o.labels={};break;case l=="devices":n="devices",o.devices=o.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",o.gcPolicy&&s&&(o.gcPolicy.push(s),s=void 0);break;case l.startsWith("file#"):n="file",c=p.split("#")[1],o.files=o.files||{},o.files[c]="";break;default:switch(n&&n!=="devices"&&o.devices&&a&&(o.devices.push(a),a=void 0),n||""){case"features":{o.features=o.features||{},o.features[p.trim()]=!!b;break}case"label":{o.labels=o.labels||{},o.labels[p.trim()]=b;break}case"devices":{switch(l.trim()){case"name":{o.devices&&a&&o.devices.push(a),a={},a.name=b;break}case"on-demand":{a&&b&&(a.onDemand=b=="true");break}case"automatically allowed":{a&&b&&(a.autoAllow=b=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=b)}break}case"gcpolicy":{switch(o.gcPolicy=o.gcPolicy||[],s=s||{},l.trim()){case"all":{s.all=b=="true";break}case"filters":{b&&(s.filter=b.split(","));break}case"keep duration":{s.keepDuration=b;break}case"keep bytes":{s.keepBytes=b;break}case"reserved space":{s.reservedSpace=b;break}case"max used space":{s.maxUsedSpace=b;break}case"min free space":{s.minFreeSpace=b;break}}break}case"file":{c&&o.files&&(o.files[c].length>0&&(o.files[c]+=`
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),s&&o.gcPolicy&&o.gcPolicy.push(s),o.name&&r.nodes.push(o),r}};var Dbe=w(_n(),1);var dq=w(require("fs"),1);var bq=class{static{i(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!dq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=dq.default.readFileSync(e,{encoding:"utf-8"})}let n=s0.tmpName({tmpdir:s0.tmpDir()});return dq.default.writeFileSync(n,e),n}};var Mq=class{static{i(this,"BuildKit")}buildx;config;constructor(e){this.config=new bq,this.buildx=e?.buildx||new N0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ke(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),Bt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${N0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Bt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new Md({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let s=o.buildkit;if(N(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!Dbe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var fq=class t{static{i(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Bt.isAvailable();return N(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await Oe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!1));return N(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await Oe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await Oe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var ma=w(require("fs"),1),ni=w(require("os"),1),fd=w(require("path"),1);var hq=w(_n(),1),gP=w(require("util"),1);var mq=class t{static{i(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let s=await this.vspec(o.tag_name);N(`Install.download vspec: ${s}`);let a=hq.clean(s)||"";if(!hq.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new rt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:fd.default.join(ni.default.homedir(),".bin","docker-compose"),cacheFile:ni.default.platform()=="win32"?"docker-compose.ex
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
ARG ALPINE_VERSION="3.22"
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
FROM --platform=$BUILDPLATFORM golang:\${GO_VERSION}-alpine\${ALPINE_VERSION} AS builder-base
COPY --from=xx / /
RUN apk add --no-cache git
ENV GOTOOLCHAIN=auto
ENV CGO_ENABLED=0
WORKDIR /src
RUN --mount=type=cache,target=/go/pkg/mod \\
--mount=type=bind,source=go.mod,target=go.mod \\
--mount=type=bind,source=go.sum,target=go.sum \\
go mod download
FROM builder-base AS version
RUN --mount=type=bind,target=. <<'EOT'
git rev-parse HEAD 2>/dev/null || {
echo >&2 "Failed to get git revision, make sure --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 is set when building from Git directly"
exit 1
}
set -ex
export PKG=sigs.k8s.io BUILDDATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ") TREESTATE=$(if ! git diff --no-ext-diff --quiet --exit-code; then echo dirty; else echo clean; fi) VERSION=$(git describe --match 'v[0-9]*' --dirty='.m' --always --tags) COMMIT=$(git rev-parse HEAD)$(if ! git diff --no-ext-diff --quiet --exit-code; then echo .m; fi);
echo "-X \${PKG}/release-utils/version.gitVersion=\${VERSION} -X \${PKG}/release-utils/version.gitCommit=\${COMMIT} -X \${PKG}/release-utils/version.gitTreeState=\${TREESTATE} -X \${PKG}/release-utils/version.buildDate=\${BUILDDATE}" > /tmp/.ldflags;
echo -n "\${VERSION}" > /tmp/.version;
EOT
FROM builder-base AS builder
ARG TARGETPLATFORM
RUN --mount=type=bind,target=. \\
--mount=type=cache,target=/root/.cache,id=cosign-$TARGETPLATFORM \\
--mount=source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \\
--mount=type=cache,target=/go/pkg/mod <<EOT
set -ex
xx-go build -trimpath -ldflags "-s -w $(cat /tmp/.ldflags)" -o /out/cosign ./cmd/cosign
xx-verify --static /out/cosign
EOT
FROM scratch
COPY --from=builder /out /
`;var zq=class t{static{i(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new N0,this.sigstore=e?.sigstore||new _c}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let s=hd.clean(o)||"";if(!hd.valid(s))throw new Error(`Invalid Cosign version "${o}".`);let a=new rt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:md.default.join(No.default.homedir(),".bin"),cacheFile:No.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=EP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await On(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&hd.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let s=new rt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:md.default.join(No.default.homedir(),".bin"),cacheFile:No.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=md.default.join(s0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await Oe.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(Ibe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),A=await s.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||s0.tmpDir();let n=md.default.join(r,"cosign-bin");Xm.default.existsSync(n)||Xm.default.mkdirSync(n,{recursive:!0});let o=No.default.platform()=="win32"?"cosign.exe":"cosign",s=md.default.join(n,o);return Xm.default.copyFileSync(e,s),S("Fixing perms"),Xm.default.chmodSync(s,"0755"),Zo(n),S("Added Cosign to PATH"),S(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new N0({standalone:!0}).isAvailable(),o=await new N0({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(o)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new N0({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await On(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let s=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${s.tlogID?`${Pp}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(No.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=No.default.arch();break}}let r=No.default.platform()=="win32"?"windows":No.default.platform(),n=No.default.platform()=="win32"?".exe":"";return EP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!c0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await ua.remoteSha
`,sepLabels:_r("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:_r("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:_r("bake-target")||"docker-metadata-action",githubToken:_r("github-token")}}i(wbe,"getInputs");async function Sbe(t,e){switch(t){case"workflow":return await L20(e);case"git":return await Q20();default:throw new Error(`Invalid context source: ${t}`)}}i(Sbe,"getContext");async function L20(t){let e=a0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await _20(e.sha,t),...e}}i(L20,"getContextFromWorkflow");async function Q20(){let t=await ua.context();return{commitDate:await ua.commitDate(t.sha),...t}}i(Q20,"getContextFromGit");async function _20(t,e){let r=a0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:a0.context.repo.owner,repo:a0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}i(_20,"getCommitDateFromWorkflow");var qa=w(QQ(),1),y4e=w(require("fs"),1),B4e=w(require("path"),1),kh=w(Lbe(),1),an=w(z4e(),1),Td=w(_n(),1);function g4e(t){let e=[];if(t.length==1){let r=!1,n=F1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return O4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=F1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return O4e(e)}i(g4e,"Transform");function O4e(t){Du("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Iu(),t}i(O4e,"output");var X7=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(X7||{}),zD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(zD||{}),OD=(r=>(r.Short="short",r.Long="long",r))(OD||{}),H7=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},N40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function E4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(w40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Du("Processing tags input");for(let n of r)S(n.toString());return Iu(),r}i(E4e,"Transform");function w40(t){let e=F1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new H7;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(X7).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"val
/*! Bundled license information:
undici/lib/web/fetch/body.js:
(*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> *)
undici/lib/web/websocket/frame.js:
(*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> *)
tmp/lib/tmp.js:
(*!
* Tmp
*
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
*
* MIT Licensed
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
moment-timezone/moment-timezone.js:
(*! moment-timezone.js *)
2026-05-28 08:28:29 +00:00
(*! version : 0.6.2 *)
(*! Copyright (c) JS Foundation and other contributors *)
(*! license : MIT *)
(*! github.com/moment/moment-timezone *)
xregexp/lib/xregexp.js:
(*!
* XRegExp 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2007-present MIT License
*)
xregexp/lib/addons/build.js:
(*!
* XRegExp.build 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
*)
xregexp/lib/addons/matchrecursive.js:
(*!
* XRegExp.matchRecursive 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2009-present MIT License
*)
xregexp/lib/addons/unicode-base.js:
(*!
* XRegExp Unicode Base 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2008-present MIT License
*)
xregexp/lib/addons/unicode-blocks.js:
(*!
* XRegExp Unicode Blocks 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-categories.js:
(*!
* XRegExp Unicode Categories 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-properties.js:
(*!
* XRegExp Unicode Properties 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2012-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
xregexp/lib/addons/unicode-scripts.js:
(*!
* XRegExp Unicode Scripts 4.4.1
* <xregexp.com>
* Steven Levithan (c) 2010-present MIT License
* Unicode data by Mathias Bynens <mathiasbynens.be>
*)
@octokit/request-error/dist-src/index.js:
(* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist *)
@octokit/request/dist-bundle/index.js:
(* v8 ignore next -- @preserve *)
(* v8 ignore else -- @preserve *)
*/
//# sourceMappingURL=index.cjs.map