mirror of
https://github.com/docker/login-action.git
synced 2026-04-02 21:08:21 +01:00
18 lines
1.9 MiB
Generated
18 lines
1.9 MiB
Generated
import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={3311:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ClientStreamingCall=void 0;class ClientStreamingCall{constructor(e,t,n,o,i,a,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.response=i;this.status=a;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,response:t,status:n,trailers:o}}))}}t.ClientStreamingCall=ClientStreamingCall},9499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Deferred=t.DeferredState=void 0;var n;(function(e){e[e["PENDING"]=0]="PENDING";e[e["REJECTED"]=1]="REJECTED";e[e["RESOLVED"]=2]="RESOLVED"})(n=t.DeferredState||(t.DeferredState={}));class Deferred{constructor(e=true){this._state=n.PENDING;this._promise=new Promise(((e,t)=>{this._resolve=e;this._reject=t}));if(e){this._promise.catch((e=>{}))}}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==n.PENDING)throw new Error(`cannot resolve ${n[this.state].toLowerCase()}`);this._resolve(e);this._state=n.RESOLVED}reject(e){if(this.state!==n.PENDING)throw new Error(`cannot reject ${n[this.state].toLowerCase()}`);this._reject(e);this._state=n.REJECTED}resolvePending(e){if(this._state===n.PENDING)this.resolve(e)}rejectPending(e){if(this._state===n.PENDING)this.reject(e)}}t.Deferred=Deferred},800:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.DuplexStreamingCall=void 0;class DuplexStreamingCall{constructor(e,t,n,o,i,a,d){this.method=e;this.requestHeaders=t;this.requests=n;this.headers=o;this.responses=i;this.status=a;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,headers:e,status:t,trailers:n}}))}}t.DuplexStreamingCall=DuplexStreamingCall},6762:(e,t,n)=>{var o;o={value:true};var i=n(2554);Object.defineProperty(t,"C0",{enumerable:true,get:function(){return i.ServiceType}});var a=n(3402);o={enumerable:true,get:function(){return a.readMethodOptions}};o={enumerable:true,get:function(){return a.readMethodOption}};o={enumerable:true,get:function(){return a.readServiceOption}};var d=n(422);o={enumerable:true,get:function(){return d.RpcError}};var m=n(3474);o={enumerable:true,get:function(){return m.mergeRpcOptions}};var h=n(6407);o={enumerable:true,get:function(){return h.RpcOutputStreamController}};var f=n(5435);o={enumerable:true,get:function(){return f.TestTransport}};var C=n(9499);o={enumerable:true,get:function(){return C.Deferred}};o={enumerable:true,get:function(){return C.DeferredState}};var P=n(800);o={enumerable:true,get:function(){return P.DuplexStreamingCall}};var D=n(3311);o={enumerable:true,get:function(){return D.ClientStreamingCall}};var k=n(2715);o={enumerable:true,get:function(){return k.ServerStreamingCall}};var L=n(738);o={enumerable:true,get:function(){return L.UnaryCall}};var F=n(4359);o={enumerable:true,get:function(){return F.stackIntercept}};o={enumerable:true,get:function(){return F.stackDuplexStreamingInterceptors}};o={enumerable:true,get:function(){return F.stackClientStreamingInterceptors}};o={enumerable:true,get:function(){return F.stackServerStreamingInterceptors}};o={enumerable:true,get:function(){return F.stackUnaryInterceptors}};var q=n(4626);o={enumerable:true,get:function(){return q.ServerCallContextController}}},3402:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readServiceOption=t.readMethodOption=t.readMethodOptions=t.normalizeMethodInfo=void 0;const o=n(8372);function normalizeMethodInfo(e,t){var n,i,a;let d=e;d.service=t;d.localName=(n=d.localName)!==null&&n!==void 0?n:o.lowerCamelCase(d.name);d.serverStreaming=!!d.serverStreaming;d.clientStreaming=!!d.clientStreaming;d.options=(i=d.options)!==null&&i!==void 0?i:{};d.idempotency=(a=d.idempotency)!==null&&a!==void 0?a:undefined;return d}t.normalizeMethodInfo=normalizeMethodInfo;function readMethodOptions(e,t,n,o){var i;const a=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;return a&&a[n]?o.fromJson(a[n]):undefined}t.readMethodOptions=readMethodOptions;function readMethodOption(e,t,n,o){var i;const a=(i=e.methods.find(((e,n)=>e.localName===t||n===t)))===null||i===void 0?void 0:i.options;if(!a){return undefined}const d=a[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readMethodOption=readMethodOption;function readServiceOption(e,t,n){const o=e.options;if(!o){return undefined}const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readServiceOption=readServiceOption},422:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcError=void 0;class RpcError extends Error{constructor(e,t="UNKNOWN",n){super(e);this.name="RpcError";Object.setPrototypeOf(this,new.target.prototype);this.code=t;this.meta=n!==null&&n!==void 0?n:{}}toString(){const e=[this.name+": "+this.message];if(this.code){e.push("");e.push("Code: "+this.code)}if(this.serviceName&&this.methodName){e.push("Method: "+this.serviceName+"/"+this.methodName)}let t=Object.entries(this.meta);if(t.length){e.push("");e.push("Meta:");for(let[n,o]of t){e.push(` ${n}: ${o}`)}}return e.join("\n")}}t.RpcError=RpcError},4359:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.stackDuplexStreamingInterceptors=t.stackClientStreamingInterceptors=t.stackServerStreamingInterceptors=t.stackUnaryInterceptors=t.stackIntercept=void 0;const o=n(8372);function stackIntercept(e,t,n,i,a){var d,m,h,f;if(e=="unary"){let tail=(e,n,o)=>t.unary(e,n,o);for(const e of((d=i.interceptors)!==null&&d!==void 0?d:[]).filter((e=>e.interceptUnary)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptUnary(t,n,o,i)}return tail(n,a,i)}if(e=="serverStreaming"){let tail=(e,n,o)=>t.serverStreaming(e,n,o);for(const e of((m=i.interceptors)!==null&&m!==void 0?m:[]).filter((e=>e.interceptServerStreaming)).reverse()){const t=tail;tail=(n,o,i)=>e.interceptServerStreaming(t,n,o,i)}return tail(n,a,i)}if(e=="clientStreaming"){let tail=(e,n)=>t.clientStreaming(e,n);for(const e of((h=i.interceptors)!==null&&h!==void 0?h:[]).filter((e=>e.interceptClientStreaming)).reverse()){const t=tail;tail=(n,o)=>e.interceptClientStreaming(t,n,o)}return tail(n,i)}if(e=="duplex"){let tail=(e,n)=>t.duplex(e,n);for(const e of((f=i.interceptors)!==null&&f!==void 0?f:[]).filter((e=>e.interceptDuplex)).reverse()){const t=tail;tail=(n,o)=>e.interceptDuplex(t,n,o)}return tail(n,i)}o.assertNever(e)}t.stackIntercept=stackIntercept;function stackUnaryInterceptors(e,t,n,o){return stackIntercept("unary",e,t,o,n)}t.stackUnaryInterceptors=stackUnaryInterceptors;function stackServerStreamingInterceptors(e,t,n,o){return stackIntercept("serverStreaming",e,t,o,n)}t.stackServerStreamingInterceptors=stackServerStreamingInterceptors;function stackClientStreamingInterceptors(e,t,n){return stackIntercept("clientStreaming",e,t,n)}t.stackClientStreamingInterceptors=stackClientStreamingInterceptors;function stackDuplexStreamingInterceptors(e,t,n){return stackIntercept("duplex",e,t,n)}t.stackDuplexStreamingInterceptors=stackDuplexStreamingInterceptors},3474:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeRpcOptions=void 0;const o=n(8372);function mergeRpcOptions(e,t){if(!t)return e;let n={};copy(e,n);copy(t,n);for(let i of Object.keys(t)){let a=t[i];switch(i){case"jsonOptions":n.jsonOptions=o.mergeJsonOptions(e.jsonOptions,n.jsonOptions);break;case"binaryOptions":n.binaryOptions=o.mergeBinaryOptions(e.binaryOptions,n.binaryOptions);break;case"meta":n.meta={};copy(e.meta,n.meta);copy(t.meta,n.meta);break;case"interceptors":n.interceptors=e.interceptors?e.interceptors.concat(a):a.concat();break}}return n}t.mergeRpcOptions=mergeRpcOptions;function copy(e,t){if(!e)return;let n=t;for(let[t,o]of Object.entries(e)){if(o instanceof Date)n[t]=new Date(o.getTime());else if(Array.isArray(o))n[t]=o.concat();else n[t]=o}}},6407:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.RpcOutputStreamController=void 0;const o=n(9499);const i=n(8372);class RpcOutputStreamController{constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]};this._closed=false;this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,t){t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==false}notifyNext(e,t,n){i.assert((e?1:0)+(t?1:0)+(n?1:0)<=1,"only one emission at a time");if(e)this.notifyMessage(e);if(t)this.notifyError(t);if(n)this.notifyComplete()}notifyMessage(e){i.assert(!this.closed,"stream is closed");this.pushIt({value:e,done:false});this._lis.msg.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(e,undefined,false)))}notifyError(e){i.assert(!this.closed,"stream is closed");this._closed=e;this.pushIt(e);this._lis.err.forEach((t=>t(e)));this._lis.nxt.forEach((t=>t(undefined,e,false)));this.clearLis()}notifyComplete(){i.assert(!this.closed,"stream is closed");this._closed=true;this.pushIt({value:null,done:true});this._lis.cmp.forEach((e=>e()));this._lis.nxt.forEach((e=>e(undefined,undefined,true)));this.clearLis()}[Symbol.asyncIterator](){if(this._closed===true)this.pushIt({value:null,done:true});else if(this._closed!==false)this.pushIt(this._closed);return{next:()=>{let e=this._itState;i.assert(e,"bad state");i.assert(!e.p,"iterator contract broken");let t=e.q.shift();if(t)return"value"in t?Promise.resolve(t):Promise.reject(t);e.p=new o.Deferred;return e.p.promise}}}pushIt(e){let t=this._itState;if(t.p){const n=t.p;i.assert(n.state==o.DeferredState.PENDING,"iterator contract broken");"value"in e?n.resolve(e):n.reject(e);delete t.p}else{t.q.push(e)}}}t.RpcOutputStreamController=RpcOutputStreamController},4626:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServerCallContextController=void 0;class ServerCallContextController{constructor(e,t,n,o,i={code:"OK",detail:""}){this._cancelled=false;this._listeners=[];this.method=e;this.headers=t;this.deadline=n;this.trailers={};this._sendRH=o;this.status=i}notifyCancelled(){if(!this._cancelled){this._cancelled=true;for(let e of this._listeners){e()}}}sendResponseHeaders(e){this._sendRH(e)}get cancelled(){return this._cancelled}onCancel(e){const t=this._listeners;t.push(e);return()=>{let n=t.indexOf(e);if(n>=0)t.splice(n,1)}}}t.ServerCallContextController=ServerCallContextController},2715:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.ServerStreamingCall=void 0;class ServerStreamingCall{constructor(e,t,n,o,i,a,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.responses=i;this.status=a;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n]=yield Promise.all([this.headers,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,status:t,trailers:n}}))}}t.ServerStreamingCall=ServerStreamingCall},2554:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ServiceType=void 0;const o=n(3402);class ServiceType{constructor(e,t,n){this.typeName=e;this.methods=t.map((e=>o.normalizeMethodInfo(e,this)));this.options=n!==null&&n!==void 0?n:{}}}t.ServiceType=ServiceType},5435:function(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.TestTransport=void 0;const i=n(422);const a=n(8372);const d=n(6407);const m=n(3474);const h=n(738);const f=n(2715);const C=n(3311);const P=n(800);class TestTransport{constructor(e){this.suppressUncaughtRejections=true;this.headerDelay=10;this.responseDelay=50;this.betweenResponseDelay=10;this.afterResponseDelay=10;this.data=e!==null&&e!==void 0?e:{}}get sentMessages(){if(this.lastInput instanceof TestInputStream){return this.lastInput.sent}else if(typeof this.lastInput=="object"){return[this.lastInput.single]}return[]}get sendComplete(){if(this.lastInput instanceof TestInputStream){return this.lastInput.completed}else if(typeof this.lastInput=="object"){return true}return false}promiseHeaders(){var e;const t=(e=this.data.headers)!==null&&e!==void 0?e:TestTransport.defaultHeaders;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseSingleResponse(e){if(this.data.response instanceof i.RpcError){return Promise.reject(this.data.response)}let t;if(Array.isArray(this.data.response)){a.assert(this.data.response.length>0);t=this.data.response[0]}else if(this.data.response!==undefined){t=this.data.response}else{t=e.O.create()}a.assert(e.O.is(t));return Promise.resolve(t)}streamResponses(e,t,n){return o(this,void 0,void 0,(function*(){const o=[];if(this.data.response===undefined){o.push(e.O.create())}else if(Array.isArray(this.data.response)){for(let t of this.data.response){a.assert(e.O.is(t));o.push(t)}}else if(!(this.data.response instanceof i.RpcError)){a.assert(e.O.is(this.data.response));o.push(this.data.response)}try{yield delay(this.responseDelay,n)(undefined)}catch(e){t.notifyError(e);return}if(this.data.response instanceof i.RpcError){t.notifyError(this.data.response);return}for(let e of o){t.notifyMessage(e);try{yield delay(this.betweenResponseDelay,n)(undefined)}catch(e){t.notifyError(e);return}}if(this.data.status instanceof i.RpcError){t.notifyError(this.data.status);return}if(this.data.trailers instanceof i.RpcError){t.notifyError(this.data.trailers);return}t.notifyComplete()}))}promiseStatus(){var e;const t=(e=this.data.status)!==null&&e!==void 0?e:TestTransport.defaultStatus;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}promiseTrailers(){var e;const t=(e=this.data.trailers)!==null&&e!==void 0?e:TestTransport.defaultTrailers;return t instanceof i.RpcError?Promise.reject(t):Promise.resolve(t)}maybeSuppressUncaught(...e){if(this.suppressUncaughtRejections){for(let t of e){t.catch((()=>{}))}}}mergeOptions(e){return m.mergeRpcOptions({},e)}unary(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},a=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),d=a.catch((e=>{})).then(delay(this.responseDelay,n.abort)).then((t=>this.promiseSingleResponse(e))),m=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseStatus())),f=d.catch((e=>{})).then(delay(this.afterResponseDelay,n.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(m,f);this.lastInput={single:t};return new h.UnaryCall(e,i,t,a,d,m,f)}serverStreaming(e,t,n){var o;const i=(o=n.meta)!==null&&o!==void 0?o:{},a=this.promiseHeaders().then(delay(this.headerDelay,n.abort)),m=new d.RpcOutputStreamController,h=a.then(delay(this.responseDelay,n.abort)).catch((()=>{})).then((()=>this.streamResponses(e,m,n.abort))).then(delay(this.afterResponseDelay,n.abort)),C=h.then((()=>this.promiseStatus())),P=h.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(C,P);this.lastInput={single:t};return new f.ServerStreamingCall(e,i,t,a,m,C,P)}clientStreaming(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),a=i.catch((e=>{})).then(delay(this.responseDelay,t.abort)).then((t=>this.promiseSingleResponse(e))),d=a.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseStatus())),m=a.catch((e=>{})).then(delay(this.afterResponseDelay,t.abort)).then((e=>this.promiseTrailers()));this.maybeSuppressUncaught(d,m);this.lastInput=new TestInputStream(this.data,t.abort);return new C.ClientStreamingCall(e,o,this.lastInput,i,a,d,m)}duplex(e,t){var n;const o=(n=t.meta)!==null&&n!==void 0?n:{},i=this.promiseHeaders().then(delay(this.headerDelay,t.abort)),a=new d.RpcOutputStreamController,m=i.then(delay(this.responseDelay,t.abort)).catch((()=>{})).then((()=>this.streamResponses(e,a,t.abort))).then(delay(this.afterResponseDelay,t.abort)),h=m.then((()=>this.promiseStatus())),f=m.then((()=>this.promiseTrailers()));this.maybeSuppressUncaught(h,f);this.lastInput=new TestInputStream(this.data,t.abort);return new P.DuplexStreamingCall(e,o,this.lastInput,i,a,h,f)}}t.TestTransport=TestTransport;TestTransport.defaultHeaders={responseHeader:"test"};TestTransport.defaultStatus={code:"OK",detail:"all good"};TestTransport.defaultTrailers={responseTrailer:"test"};function delay(e,t){return n=>new Promise(((o,a)=>{if(t===null||t===void 0?void 0:t.aborted){a(new i.RpcError("user cancel","CANCELLED"))}else{const d=setTimeout((()=>o(n)),e);if(t){t.addEventListener("abort",(e=>{clearTimeout(d);a(new i.RpcError("user cancel","CANCELLED"))}))}}}))}class TestInputStream{constructor(e,t){this._completed=false;this._sent=[];this.data=e;this.abort=t}get sent(){return this._sent}get completed(){return this._completed}send(e){if(this.data.inputMessage instanceof i.RpcError){return Promise.reject(this.data.inputMessage)}const t=this.data.inputMessage===undefined?10:this.data.inputMessage;return Promise.resolve(undefined).then((()=>{this._sent.push(e)})).then(delay(t,this.abort))}complete(){if(this.data.inputComplete instanceof i.RpcError){return Promise.reject(this.data.inputComplete)}const e=this.data.inputComplete===undefined?10:this.data.inputComplete;return Promise.resolve(undefined).then((()=>{this._completed=true})).then(delay(e,this.abort))}}},738:function(e,t){var n=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.UnaryCall=void 0;class UnaryCall{constructor(e,t,n,o,i,a,d){this.method=e;this.requestHeaders=t;this.request=n;this.headers=o;this.response=i;this.status=a;this.trailers=d}then(e,t){return this.promiseFinished().then((t=>e?Promise.resolve(e(t)):t),(e=>t?Promise.resolve(t(e)):Promise.reject(e)))}promiseFinished(){return n(this,void 0,void 0,(function*(){let[e,t,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:t,status:n,trailers:o}}))}}t.UnaryCall=UnaryCall},6468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.assertFloat32=t.assertUInt32=t.assertInt32=t.assertNever=t.assert=void 0;function assert(e,t){if(!e){throw new Error(t)}}t.assert=assert;function assertNever(e,t){throw new Error(t!==null&&t!==void 0?t:"Unexpected object: "+e)}t.assertNever=assertNever;const n=34028234663852886e22,o=-34028234663852886e22,i=4294967295,a=2147483647,d=-2147483648;function assertInt32(e){if(typeof e!=="number")throw new Error("invalid int 32: "+typeof e);if(!Number.isInteger(e)||e>a||e<d)throw new Error("invalid int 32: "+e)}t.assertInt32=assertInt32;function assertUInt32(e){if(typeof e!=="number")throw new Error("invalid uint 32: "+typeof e);if(!Number.isInteger(e)||e>i||e<0)throw new Error("invalid uint 32: "+e)}t.assertUInt32=assertUInt32;function assertFloat32(e){if(typeof e!=="number")throw new Error("invalid float 32: "+typeof e);if(!Number.isFinite(e))return;if(e>n||e<o)throw new Error("invalid float 32: "+e)}t.assertFloat32=assertFloat32},6689:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.base64encode=t.base64decode=void 0;let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");let o=[];for(let e=0;e<n.length;e++)o[n[e].charCodeAt(0)]=e;o["-".charCodeAt(0)]=n.indexOf("+");o["_".charCodeAt(0)]=n.indexOf("/");function base64decode(e){let t=e.length*3/4;if(e[e.length-2]=="=")t-=2;else if(e[e.length-1]=="=")t-=1;let n=new Uint8Array(t),i=0,a=0,d,m=0;for(let t=0;t<e.length;t++){d=o[e.charCodeAt(t)];if(d===undefined){switch(e[t]){case"=":a=0;case"\n":case"\r":case"\t":case" ":continue;default:throw Error(`invalid base64 string.`)}}switch(a){case 0:m=d;a=1;break;case 1:n[i++]=m<<2|(d&48)>>4;m=d;a=2;break;case 2:n[i++]=(m&15)<<4|(d&60)>>2;m=d;a=3;break;case 3:n[i++]=(m&3)<<6|d;a=0;break}}if(a==1)throw Error(`invalid base64 string.`);return n.subarray(0,i)}t.base64decode=base64decode;function base64encode(e){let t="",o=0,i,a=0;for(let d=0;d<e.length;d++){i=e[d];switch(o){case 0:t+=n[i>>2];a=(i&3)<<4;o=1;break;case 1:t+=n[a|i>>4];a=(i&15)<<2;o=2;break;case 2:t+=n[a|i>>6];t+=n[i&63];o=0;break}}if(o){t+=n[a];t+="=";if(o==1)t+="="}return t}t.base64encode=base64encode},6690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.WireType=t.mergeBinaryOptions=t.UnknownFieldHandler=void 0;var n;(function(e){e.symbol=Symbol.for("protobuf-ts/unknown");e.onRead=(t,n,o,i,a)=>{let d=is(n)?n[e.symbol]:n[e.symbol]=[];d.push({no:o,wireType:i,data:a})};e.onWrite=(t,n,o)=>{for(let{no:t,wireType:i,data:a}of e.list(n))o.tag(t,i).raw(a)};e.list=(t,n)=>{if(is(t)){let o=t[e.symbol];return n?o.filter((e=>e.no==n)):o}return[]};e.last=(t,n)=>e.list(t,n).slice(-1)[0];const is=t=>t&&Array.isArray(t[e.symbol])})(n=t.UnknownFieldHandler||(t.UnknownFieldHandler={}));function mergeBinaryOptions(e,t){return Object.assign(Object.assign({},e),t)}t.mergeBinaryOptions=mergeBinaryOptions;var o;(function(e){e[e["Varint"]=0]="Varint";e[e["Bit64"]=1]="Bit64";e[e["LengthDelimited"]=2]="LengthDelimited";e[e["StartGroup"]=3]="StartGroup";e[e["EndGroup"]=4]="EndGroup";e[e["Bit32"]=5]="Bit32"})(o=t.WireType||(t.WireType={}))},8887:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryReader=t.binaryReadOptions=void 0;const o=n(6690);const i=n(5579);const a=n(365);const d={readUnknownField:true,readerFactory:e=>new BinaryReader(e)};function binaryReadOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryReadOptions=binaryReadOptions;class BinaryReader{constructor(e,t){this.varint64=a.varint64read;this.uint32=a.varint32read;this.buf=e;this.len=e.length;this.pos=0;this.view=new DataView(e.buffer,e.byteOffset,e.byteLength);this.textDecoder=t!==null&&t!==void 0?t:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true})}tag(){let e=this.uint32(),t=e>>>3,n=e&7;if(t<=0||n<0||n>5)throw new Error("illegal tag: field no "+t+" wire type "+n);return[t,n]}skip(e){let t=this.pos;switch(e){case o.WireType.Varint:while(this.buf[this.pos++]&128){}break;case o.WireType.Bit64:this.pos+=4;case o.WireType.Bit32:this.pos+=4;break;case o.WireType.LengthDelimited:let t=this.uint32();this.pos+=t;break;case o.WireType.StartGroup:let n;while((n=this.tag()[1])!==o.WireType.EndGroup){this.skip(n)}break;default:throw new Error("cant skip wire type "+e)}this.assertBounds();return this.buf.subarray(t,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let e=this.uint32();return e>>>1^-(e&1)}int64(){return new i.PbLong(...this.varint64())}uint64(){return new i.PbULong(...this.varint64())}sint64(){let[e,t]=this.varint64();let n=-(e&1);e=(e>>>1|(t&1)<<31)^n;t=t>>>1^n;return new i.PbLong(e,t)}bool(){let[e,t]=this.varint64();return e!==0||t!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,true)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,true)}fixed64(){return new i.PbULong(this.sfixed32(),this.sfixed32())}sfixed64(){return new i.PbLong(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,true)}double(){return this.view.getFloat64((this.pos+=8)-8,true)}bytes(){let e=this.uint32();let t=this.pos;this.pos+=e;this.assertBounds();return this.buf.subarray(t,t+e)}string(){return this.textDecoder.decode(this.bytes())}}t.BinaryReader=BinaryReader},4839:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.BinaryWriter=t.binaryWriteOptions=void 0;const o=n(5579);const i=n(365);const a=n(6468);const d={writeUnknownFields:true,writerFactory:()=>new BinaryWriter};function binaryWriteOptions(e){return e?Object.assign(Object.assign({},d),e):d}t.binaryWriteOptions=binaryWriteOptions;class BinaryWriter{constructor(e){this.stack=[];this.textEncoder=e!==null&&e!==void 0?e:new TextEncoder;this.chunks=[];this.buf=[]}finish(){this.chunks.push(new Uint8Array(this.buf));let e=0;for(let t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;let t=new Uint8Array(e);let n=0;for(let e=0;e<this.chunks.length;e++){t.set(this.chunks[e],n);n+=this.chunks[e].length}this.chunks=[];return t}fork(){this.stack.push({chunks:this.chunks,buf:this.buf});this.chunks=[];this.buf=[];return this}join(){let e=this.finish();let t=this.stack.pop();if(!t)throw new Error("invalid state, fork stack empty");this.chunks=t.chunks;this.buf=t.buf;this.uint32(e.byteLength);return this.raw(e)}tag(e,t){return this.uint32((e<<3|t)>>>0)}raw(e){if(this.buf.length){this.chunks.push(new Uint8Array(this.buf));this.buf=[]}this.chunks.push(e);return this}uint32(e){a.assertUInt32(e);while(e>127){this.buf.push(e&127|128);e=e>>>7}this.buf.push(e);return this}int32(e){a.assertInt32(e);i.varint32write(e,this.buf);return this}bool(e){this.buf.push(e?1:0);return this}bytes(e){this.uint32(e.byteLength);return this.raw(e)}string(e){let t=this.textEncoder.encode(e);this.uint32(t.byteLength);return this.raw(t)}float(e){a.assertFloat32(e);let t=new Uint8Array(4);new DataView(t.buffer).setFloat32(0,e,true);return this.raw(t)}double(e){let t=new Uint8Array(8);new DataView(t.buffer).setFloat64(0,e,true);return this.raw(t)}fixed32(e){a.assertUInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setUint32(0,e,true);return this.raw(t)}sfixed32(e){a.assertInt32(e);let t=new Uint8Array(4);new DataView(t.buffer).setInt32(0,e,true);return this.raw(t)}sint32(e){a.assertInt32(e);e=(e<<1^e>>31)>>>0;i.varint32write(e,this.buf);return this}sfixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbLong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}fixed64(e){let t=new Uint8Array(8);let n=new DataView(t.buffer);let i=o.PbULong.from(e);n.setInt32(0,i.lo,true);n.setInt32(4,i.hi,true);return this.raw(t)}int64(e){let t=o.PbLong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}sint64(e){let t=o.PbLong.from(e),n=t.hi>>31,a=t.lo<<1^n,d=(t.hi<<1|t.lo>>>31)^n;i.varint64write(a,d,this.buf);return this}uint64(e){let t=o.PbULong.from(e);i.varint64write(t.lo,t.hi,this.buf);return this}}t.BinaryWriter=BinaryWriter},6959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.listEnumNumbers=t.listEnumNames=t.listEnumValues=t.isEnumObject=void 0;function isEnumObject(e){if(typeof e!="object"||e===null){return false}if(!e.hasOwnProperty(0)){return false}for(let t of Object.keys(e)){let n=parseInt(t);if(!Number.isNaN(n)){let t=e[n];if(t===undefined)return false;if(e[t]!==n)return false}else{let n=e[t];if(n===undefined)return false;if(typeof n!=="number")return false;if(e[n]===undefined)return false}}return true}t.isEnumObject=isEnumObject;function listEnumValues(e){if(!isEnumObject(e))throw new Error("not a typescript enum object");let t=[];for(let[n,o]of Object.entries(e))if(typeof o=="number")t.push({name:n,number:o});return t}t.listEnumValues=listEnumValues;function listEnumNames(e){return listEnumValues(e).map((e=>e.name))}t.listEnumNames=listEnumNames;function listEnumNumbers(e){return listEnumValues(e).map((e=>e.number)).filter(((e,t,n)=>n.indexOf(e)==t))}t.listEnumNumbers=listEnumNumbers},365:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.varint32read=t.varint32write=t.int64toString=t.int64fromString=t.varint64write=t.varint64read=void 0;function varint64read(){let e=0;let t=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];e|=(o&127)<<n;if((o&128)==0){this.assertBounds();return[e,t]}}let n=this.buf[this.pos++];e|=(n&15)<<28;t=(n&112)>>4;if((n&128)==0){this.assertBounds();return[e,t]}for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];t|=(o&127)<<n;if((o&128)==0){this.assertBounds();return[e,t]}}throw new Error("invalid varint")}t.varint64read=varint64read;function varint64write(e,t,n){for(let o=0;o<28;o=o+7){const i=e>>>o;const a=!(i>>>7==0&&t==0);const d=(a?i|128:i)&255;n.push(d);if(!a){return}}const o=e>>>28&15|(t&7)<<4;const i=!(t>>3==0);n.push((i?o|128:o)&255);if(!i){return}for(let e=3;e<31;e=e+7){const o=t>>>e;const i=!(o>>>7==0);const a=(i?o|128:o)&255;n.push(a);if(!i){return}}n.push(t>>>31&1)}t.varint64write=varint64write;const n=(1<<16)*(1<<16);function int64fromString(e){let t=e[0]=="-";if(t)e=e.slice(1);const o=1e6;let i=0;let a=0;function add1e6digit(t,d){const m=Number(e.slice(t,d));a*=o;i=i*o+m;if(i>=n){a=a+(i/n|0);i=i%n}}add1e6digit(-24,-18);add1e6digit(-18,-12);add1e6digit(-12,-6);add1e6digit(-6);return[t,i,a]}t.int64fromString=int64fromString;function int64toString(e,t){if(t>>>0<=2097151){return""+(n*t+(e>>>0))}let o=e&16777215;let i=(e>>>24|t<<8)>>>0&16777215;let a=t>>16&65535;let d=o+i*6777216+a*6710656;let m=i+a*8147497;let h=a*2;let f=1e7;if(d>=f){m+=Math.floor(d/f);d%=f}if(m>=f){h+=Math.floor(m/f);m%=f}function decimalFrom1e7(e,t){let n=e?String(e):"";if(t){return"0000000".slice(n.length)+n}return n}return decimalFrom1e7(h,0)+decimalFrom1e7(m,h)+decimalFrom1e7(d,1)}t.int64toString=int64toString;function varint32write(e,t){if(e>=0){while(e>127){t.push(e&127|128);e=e>>>7}t.push(e)}else{for(let n=0;n<9;n++){t.push(e&127|128);e=e>>7}t.push(1)}}t.varint32write=varint32write;function varint32read(){let e=this.buf[this.pos++];let t=e&127;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<7;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<14;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&127)<<21;if((e&128)==0){this.assertBounds();return t}e=this.buf[this.pos++];t|=(e&15)<<28;for(let t=5;(e&128)!==0&&t<10;t++)e=this.buf[this.pos++];if((e&128)!=0)throw new Error("invalid varint");this.assertBounds();return t>>>0}t.varint32read=varint32read},8372:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(8369);Object.defineProperty(t,"typeofJsonValue",{enumerable:true,get:function(){return o.typeofJsonValue}});Object.defineProperty(t,"isJsonObject",{enumerable:true,get:function(){return o.isJsonObject}});var i=n(6689);Object.defineProperty(t,"base64decode",{enumerable:true,get:function(){return i.base64decode}});Object.defineProperty(t,"base64encode",{enumerable:true,get:function(){return i.base64encode}});var a=n(5424);Object.defineProperty(t,"utf8read",{enumerable:true,get:function(){return a.utf8read}});var d=n(6690);Object.defineProperty(t,"WireType",{enumerable:true,get:function(){return d.WireType}});Object.defineProperty(t,"mergeBinaryOptions",{enumerable:true,get:function(){return d.mergeBinaryOptions}});Object.defineProperty(t,"UnknownFieldHandler",{enumerable:true,get:function(){return d.UnknownFieldHandler}});var m=n(8887);Object.defineProperty(t,"BinaryReader",{enumerable:true,get:function(){return m.BinaryReader}});Object.defineProperty(t,"binaryReadOptions",{enumerable:true,get:function(){return m.binaryReadOptions}});var h=n(4839);Object.defineProperty(t,"BinaryWriter",{enumerable:true,get:function(){return h.BinaryWriter}});Object.defineProperty(t,"binaryWriteOptions",{enumerable:true,get:function(){return h.binaryWriteOptions}});var f=n(5579);Object.defineProperty(t,"PbLong",{enumerable:true,get:function(){return f.PbLong}});Object.defineProperty(t,"PbULong",{enumerable:true,get:function(){return f.PbULong}});var C=n(3389);Object.defineProperty(t,"jsonReadOptions",{enumerable:true,get:function(){return C.jsonReadOptions}});Object.defineProperty(t,"jsonWriteOptions",{enumerable:true,get:function(){return C.jsonWriteOptions}});Object.defineProperty(t,"mergeJsonOptions",{enumerable:true,get:function(){return C.mergeJsonOptions}});var P=n(1371);Object.defineProperty(t,"MESSAGE_TYPE",{enumerable:true,get:function(){return P.MESSAGE_TYPE}});var D=n(4172);Object.defineProperty(t,"MessageType",{enumerable:true,get:function(){return D.MessageType}});var k=n(528);Object.defineProperty(t,"ScalarType",{enumerable:true,get:function(){return k.ScalarType}});Object.defineProperty(t,"LongType",{enumerable:true,get:function(){return k.LongType}});Object.defineProperty(t,"RepeatType",{enumerable:true,get:function(){return k.RepeatType}});Object.defineProperty(t,"normalizeFieldInfo",{enumerable:true,get:function(){return k.normalizeFieldInfo}});Object.defineProperty(t,"readFieldOptions",{enumerable:true,get:function(){return k.readFieldOptions}});Object.defineProperty(t,"readFieldOption",{enumerable:true,get:function(){return k.readFieldOption}});Object.defineProperty(t,"readMessageOption",{enumerable:true,get:function(){return k.readMessageOption}});var L=n(5649);Object.defineProperty(t,"ReflectionTypeCheck",{enumerable:true,get:function(){return L.ReflectionTypeCheck}});var F=n(868);Object.defineProperty(t,"reflectionCreate",{enumerable:true,get:function(){return F.reflectionCreate}});var q=n(412);Object.defineProperty(t,"reflectionScalarDefault",{enumerable:true,get:function(){return q.reflectionScalarDefault}});var V=n(8674);Object.defineProperty(t,"reflectionMergePartial",{enumerable:true,get:function(){return V.reflectionMergePartial}});var ee=n(8197);Object.defineProperty(t,"reflectionEquals",{enumerable:true,get:function(){return ee.reflectionEquals}});var te=n(2161);Object.defineProperty(t,"ReflectionBinaryReader",{enumerable:true,get:function(){return te.ReflectionBinaryReader}});var re=n(5325);Object.defineProperty(t,"ReflectionBinaryWriter",{enumerable:true,get:function(){return re.ReflectionBinaryWriter}});var ne=n(5240);Object.defineProperty(t,"ReflectionJsonReader",{enumerable:true,get:function(){return ne.ReflectionJsonReader}});var se=n(5572);Object.defineProperty(t,"ReflectionJsonWriter",{enumerable:true,get:function(){return se.ReflectionJsonWriter}});var oe=n(5556);Object.defineProperty(t,"containsMessageType",{enumerable:true,get:function(){return oe.containsMessageType}});var ie=n(4857);Object.defineProperty(t,"isOneofGroup",{enumerable:true,get:function(){return ie.isOneofGroup}});Object.defineProperty(t,"setOneofValue",{enumerable:true,get:function(){return ie.setOneofValue}});Object.defineProperty(t,"getOneofValue",{enumerable:true,get:function(){return ie.getOneofValue}});Object.defineProperty(t,"clearOneofValue",{enumerable:true,get:function(){return ie.clearOneofValue}});Object.defineProperty(t,"getSelectedOneofValue",{enumerable:true,get:function(){return ie.getSelectedOneofValue}});var ae=n(6959);Object.defineProperty(t,"listEnumValues",{enumerable:true,get:function(){return ae.listEnumValues}});Object.defineProperty(t,"listEnumNames",{enumerable:true,get:function(){return ae.listEnumNames}});Object.defineProperty(t,"listEnumNumbers",{enumerable:true,get:function(){return ae.listEnumNumbers}});Object.defineProperty(t,"isEnumObject",{enumerable:true,get:function(){return ae.isEnumObject}});var ce=n(4959);Object.defineProperty(t,"lowerCamelCase",{enumerable:true,get:function(){return ce.lowerCamelCase}});var le=n(6468);Object.defineProperty(t,"assert",{enumerable:true,get:function(){return le.assert}});Object.defineProperty(t,"assertNever",{enumerable:true,get:function(){return le.assertNever}});Object.defineProperty(t,"assertInt32",{enumerable:true,get:function(){return le.assertInt32}});Object.defineProperty(t,"assertUInt32",{enumerable:true,get:function(){return le.assertUInt32}});Object.defineProperty(t,"assertFloat32",{enumerable:true,get:function(){return le.assertFloat32}})},3389:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.mergeJsonOptions=t.jsonWriteOptions=t.jsonReadOptions=void 0;const n={emitDefaultValues:false,enumAsInteger:false,useProtoFieldName:false,prettySpaces:0},o={ignoreUnknownFields:false};function jsonReadOptions(e){return e?Object.assign(Object.assign({},o),e):o}t.jsonReadOptions=jsonReadOptions;function jsonWriteOptions(e){return e?Object.assign(Object.assign({},n),e):n}t.jsonWriteOptions=jsonWriteOptions;function mergeJsonOptions(e,t){var n,o;let i=Object.assign(Object.assign({},e),t);i.typeRegistry=[...(n=e===null||e===void 0?void 0:e.typeRegistry)!==null&&n!==void 0?n:[],...(o=t===null||t===void 0?void 0:t.typeRegistry)!==null&&o!==void 0?o:[]];return i}t.mergeJsonOptions=mergeJsonOptions},8369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isJsonObject=t.typeofJsonValue=void 0;function typeofJsonValue(e){let t=typeof e;if(t=="object"){if(Array.isArray(e))return"array";if(e===null)return"null"}return t}t.typeofJsonValue=typeofJsonValue;function isJsonObject(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}t.isJsonObject=isJsonObject},4959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.lowerCamelCase=void 0;function lowerCamelCase(e){let t=false;const n=[];for(let o=0;o<e.length;o++){let i=e.charAt(o);if(i=="_"){t=true}else if(/\d/.test(i)){n.push(i);t=true}else if(t){n.push(i.toUpperCase());t=false}else if(o==0){n.push(i.toLowerCase())}else{n.push(i)}}return n.join("")}t.lowerCamelCase=lowerCamelCase},1371:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.MESSAGE_TYPE=void 0;t.MESSAGE_TYPE=Symbol.for("protobuf-ts/message-type")},4172:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.MessageType=void 0;const o=n(1371);const i=n(528);const a=n(5649);const d=n(5240);const m=n(5572);const h=n(2161);const f=n(5325);const C=n(868);const P=n(8674);const D=n(8369);const k=n(3389);const L=n(8197);const F=n(4839);const q=n(8887);const V=Object.getOwnPropertyDescriptors(Object.getPrototypeOf({}));const ee=V[o.MESSAGE_TYPE]={};class MessageType{constructor(e,t,n){this.defaultCheckDepth=16;this.typeName=e;this.fields=t.map(i.normalizeFieldInfo);this.options=n!==null&&n!==void 0?n:{};ee.value=this;this.messagePrototype=Object.create(null,V);this.refTypeCheck=new a.ReflectionTypeCheck(this);this.refJsonReader=new d.ReflectionJsonReader(this);this.refJsonWriter=new m.ReflectionJsonWriter(this);this.refBinReader=new h.ReflectionBinaryReader(this);this.refBinWriter=new f.ReflectionBinaryWriter(this)}create(e){let t=C.reflectionCreate(this);if(e!==undefined){P.reflectionMergePartial(this,t,e)}return t}clone(e){let t=this.create();P.reflectionMergePartial(this,t,e);return t}equals(e,t){return L.reflectionEquals(this,e,t)}is(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,false)}isAssignable(e,t=this.defaultCheckDepth){return this.refTypeCheck.is(e,t,true)}mergePartial(e,t){P.reflectionMergePartial(this,e,t)}fromBinary(e,t){let n=q.binaryReadOptions(t);return this.internalBinaryRead(n.readerFactory(e),e.byteLength,n)}fromJson(e,t){return this.internalJsonRead(e,k.jsonReadOptions(t))}fromJsonString(e,t){let n=JSON.parse(e);return this.fromJson(n,t)}toJson(e,t){return this.internalJsonWrite(e,k.jsonWriteOptions(t))}toJsonString(e,t){var n;let o=this.toJson(e,t);return JSON.stringify(o,null,(n=t===null||t===void 0?void 0:t.prettySpaces)!==null&&n!==void 0?n:0)}toBinary(e,t){let n=F.binaryWriteOptions(t);return this.internalBinaryWrite(e,n.writerFactory(),n).finish()}internalJsonRead(e,t,n){if(e!==null&&typeof e=="object"&&!Array.isArray(e)){let o=n!==null&&n!==void 0?n:this.create();this.refJsonReader.read(e,o,t);return o}throw new Error(`Unable to parse message ${this.typeName} from JSON ${D.typeofJsonValue(e)}.`)}internalJsonWrite(e,t){return this.refJsonWriter.write(e,t)}internalBinaryWrite(e,t,n){this.refBinWriter.write(e,t,n);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create();this.refBinReader.read(e,i,n,t);return i}}t.MessageType=MessageType},4857:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSelectedOneofValue=t.clearOneofValue=t.setUnknownOneofValue=t.setOneofValue=t.getOneofValue=t.isOneofGroup=void 0;function isOneofGroup(e){if(typeof e!="object"||e===null||!e.hasOwnProperty("oneofKind")){return false}switch(typeof e.oneofKind){case"string":if(e[e.oneofKind]===undefined)return false;return Object.keys(e).length==2;case"undefined":return Object.keys(e).length==1;default:return false}}t.isOneofGroup=isOneofGroup;function getOneofValue(e,t){return e[t]}t.getOneofValue=getOneofValue;function setOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined){e[t]=n}}t.setOneofValue=setOneofValue;function setUnknownOneofValue(e,t,n){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=t;if(n!==undefined&&t!==undefined){e[t]=n}}t.setUnknownOneofValue=setUnknownOneofValue;function clearOneofValue(e){if(e.oneofKind!==undefined){delete e[e.oneofKind]}e.oneofKind=undefined}t.clearOneofValue=clearOneofValue;function getSelectedOneofValue(e){if(e.oneofKind===undefined){return undefined}return e[e.oneofKind]}t.getSelectedOneofValue=getSelectedOneofValue},5579:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.PbLong=t.PbULong=t.detectBi=void 0;const o=n(365);let i;function detectBi(){const e=new DataView(new ArrayBuffer(8));const t=globalThis.BigInt!==undefined&&typeof e.getBigInt64==="function"&&typeof e.getBigUint64==="function"&&typeof e.setBigInt64==="function"&&typeof e.setBigUint64==="function";i=t?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:e}:undefined}t.detectBi=detectBi;detectBi();function assertBi(e){if(!e)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}const a=/^-?[0-9]+$/;const d=4294967296;const m=2147483648;class SharedPbLong{constructor(e,t){this.lo=e|0;this.hi=t|0}isZero(){return this.lo==0&&this.hi==0}toNumber(){let e=this.hi*d+(this.lo>>>0);if(!Number.isSafeInteger(e))throw new Error("cannot convert to safe number");return e}}class PbULong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(e<i.UMIN)throw new Error("signed value for ulong");if(e>i.UMAX)throw new Error("ulong too large");i.V.setBigUint64(0,e,true);return new PbULong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!a.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t)throw new Error("signed value for ulong");return new PbULong(n,i);case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");if(e<0)throw new Error("signed value for ulong");return new PbULong(e,e/d)}throw new Error("unknown value "+typeof e)}toString(){return i?this.toBigInt().toString():o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigUint64(0,true)}}t.PbULong=PbULong;PbULong.ZERO=new PbULong(0,0);class PbLong extends SharedPbLong{static from(e){if(i)switch(typeof e){case"string":if(e=="0")return this.ZERO;if(e=="")throw new Error("string is no integer");e=i.C(e);case"number":if(e===0)return this.ZERO;e=i.C(e);case"bigint":if(!e)return this.ZERO;if(e<i.MIN)throw new Error("signed long too small");if(e>i.MAX)throw new Error("signed long too large");i.V.setBigInt64(0,e,true);return new PbLong(i.V.getInt32(0,true),i.V.getInt32(4,true))}else switch(typeof e){case"string":if(e=="0")return this.ZERO;e=e.trim();if(!a.test(e))throw new Error("string is no integer");let[t,n,i]=o.int64fromString(e);if(t){if(i>m||i==m&&n!=0)throw new Error("signed long too small")}else if(i>=m)throw new Error("signed long too large");let h=new PbLong(n,i);return t?h.negate():h;case"number":if(e==0)return this.ZERO;if(!Number.isSafeInteger(e))throw new Error("number is no integer");return e>0?new PbLong(e,e/d):new PbLong(-e,-e/d).negate()}throw new Error("unknown value "+typeof e)}isNegative(){return(this.hi&m)!==0}negate(){let e=~this.hi,t=this.lo;if(t)t=~t+1;else e+=1;return new PbLong(t,e)}toString(){if(i)return this.toBigInt().toString();if(this.isNegative()){let e=this.negate();return"-"+o.int64toString(e.lo,e.hi)}return o.int64toString(this.lo,this.hi)}toBigInt(){assertBi(i);i.V.setInt32(0,this.lo,true);i.V.setInt32(4,this.hi,true);return i.V.getBigInt64(0,true)}}t.PbLong=PbLong;PbLong.ZERO=new PbLong(0,0)},5424:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.utf8read=void 0;const fromCharCodes=e=>String.fromCharCode.apply(String,e);function utf8read(e){if(e.length<1)return"";let t=0,n=[],o=[],i=0,a;let d=e.length;while(t<d){a=e[t++];if(a<128)o[i++]=a;else if(a>191&&a<224)o[i++]=(a&31)<<6|e[t++]&63;else if(a>239&&a<365){a=((a&7)<<18|(e[t++]&63)<<12|(e[t++]&63)<<6|e[t++]&63)-65536;o[i++]=55296+(a>>10);o[i++]=56320+(a&1023)}else o[i++]=(a&15)<<12|(e[t++]&63)<<6|e[t++]&63;if(i>8191){n.push(fromCharCodes(o));i=0}}if(n.length){if(i)n.push(fromCharCodes(o.slice(0,i)));return n.join("")}return fromCharCodes(o.slice(0,i))}t.utf8read=utf8read},2161:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryReader=void 0;const o=n(6690);const i=n(528);const a=n(2344);const d=n(412);class ReflectionBinaryReader{constructor(e){this.info=e}prepare(){var e;if(!this.fieldNoToField){const t=(e=this.info.fields)!==null&&e!==void 0?e:[];this.fieldNoToField=new Map(t.map((e=>[e.no,e])))}}read(e,t,n,a){this.prepare();const d=a===undefined?e.len:e.pos+a;while(e.pos<d){const[a,d]=e.tag(),m=this.fieldNoToField.get(a);if(!m){let i=n.readUnknownField;if(i=="throw")throw new Error(`Unknown field ${a} (wire type ${d}) for ${this.info.typeName}`);let m=e.skip(d);if(i!==false)(i===true?o.UnknownFieldHandler.onRead:i)(this.info.typeName,t,a,d,m);continue}let h=t,f=m.repeat,C=m.localName;if(m.oneof){h=h[m.oneof];if(h.oneofKind!==C)h=t[m.oneof]={oneofKind:C}}switch(m.kind){case"scalar":case"enum":let t=m.kind=="enum"?i.ScalarType.INT32:m.T;let a=m.kind=="scalar"?m.L:undefined;if(f){let n=h[C];if(d==o.WireType.LengthDelimited&&t!=i.ScalarType.STRING&&t!=i.ScalarType.BYTES){let o=e.uint32()+e.pos;while(e.pos<o)n.push(this.scalar(e,t,a))}else n.push(this.scalar(e,t,a))}else h[C]=this.scalar(e,t,a);break;case"message":if(f){let t=h[C];let o=m.T().internalBinaryRead(e,e.uint32(),n);t.push(o)}else h[C]=m.T().internalBinaryRead(e,e.uint32(),n,h[C]);break;case"map":let[P,D]=this.mapEntry(m,e,n);h[C][P]=D;break}}}mapEntry(e,t,n){let o=t.uint32();let a=t.pos+o;let m=undefined;let h=undefined;while(t.pos<a){let[o,a]=t.tag();switch(o){case 1:if(e.K==i.ScalarType.BOOL)m=t.bool().toString();else m=this.scalar(t,e.K,i.LongType.STRING);break;case 2:switch(e.V.kind){case"scalar":h=this.scalar(t,e.V.T,e.V.L);break;case"enum":h=t.int32();break;case"message":h=e.V.T().internalBinaryRead(t,t.uint32(),n);break}break;default:throw new Error(`Unknown field ${o} (wire type ${a}) in map entry for ${this.info.typeName}#${e.name}`)}}if(m===undefined){let t=d.reflectionScalarDefault(e.K);m=e.K==i.ScalarType.BOOL?t.toString():t}if(h===undefined)switch(e.V.kind){case"scalar":h=d.reflectionScalarDefault(e.V.T,e.V.L);break;case"enum":h=0;break;case"message":h=e.V.T().create();break}return[m,h]}scalar(e,t,n){switch(t){case i.ScalarType.INT32:return e.int32();case i.ScalarType.STRING:return e.string();case i.ScalarType.BOOL:return e.bool();case i.ScalarType.DOUBLE:return e.double();case i.ScalarType.FLOAT:return e.float();case i.ScalarType.INT64:return a.reflectionLongConvert(e.int64(),n);case i.ScalarType.UINT64:return a.reflectionLongConvert(e.uint64(),n);case i.ScalarType.FIXED64:return a.reflectionLongConvert(e.fixed64(),n);case i.ScalarType.FIXED32:return e.fixed32();case i.ScalarType.BYTES:return e.bytes();case i.ScalarType.UINT32:return e.uint32();case i.ScalarType.SFIXED32:return e.sfixed32();case i.ScalarType.SFIXED64:return a.reflectionLongConvert(e.sfixed64(),n);case i.ScalarType.SINT32:return e.sint32();case i.ScalarType.SINT64:return a.reflectionLongConvert(e.sint64(),n)}}}t.ReflectionBinaryReader=ReflectionBinaryReader},5325:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionBinaryWriter=void 0;const o=n(6690);const i=n(528);const a=n(6468);const d=n(5579);class ReflectionBinaryWriter{constructor(e){this.info=e}prepare(){if(!this.fields){const e=this.info.fields?this.info.fields.concat():[];this.fields=e.sort(((e,t)=>e.no-t.no))}}write(e,t,n){this.prepare();for(const o of this.fields){let d,m,h=o.repeat,f=o.localName;if(o.oneof){const t=e[o.oneof];if(t.oneofKind!==f)continue;d=t[f];m=true}else{d=e[f];m=false}switch(o.kind){case"scalar":case"enum":let e=o.kind=="enum"?i.ScalarType.INT32:o.T;if(h){a.assert(Array.isArray(d));if(h==i.RepeatType.PACKED)this.packed(t,e,o.no,d);else for(const n of d)this.scalar(t,e,o.no,n,true)}else if(d===undefined)a.assert(o.opt);else this.scalar(t,e,o.no,d,m||o.opt);break;case"message":if(h){a.assert(Array.isArray(d));for(const e of d)this.message(t,n,o.T(),o.no,e)}else{this.message(t,n,o.T(),o.no,d)}break;case"map":a.assert(typeof d=="object"&&d!==null);for(const[e,i]of Object.entries(d))this.mapEntry(t,n,o,e,i);break}}let d=n.writeUnknownFields;if(d!==false)(d===true?o.UnknownFieldHandler.onWrite:d)(this.info.typeName,e,t)}mapEntry(e,t,n,d,m){e.tag(n.no,o.WireType.LengthDelimited);e.fork();let h=d;switch(n.K){case i.ScalarType.INT32:case i.ScalarType.FIXED32:case i.ScalarType.UINT32:case i.ScalarType.SFIXED32:case i.ScalarType.SINT32:h=Number.parseInt(d);break;case i.ScalarType.BOOL:a.assert(d=="true"||d=="false");h=d=="true";break}this.scalar(e,n.K,1,h,true);switch(n.V.kind){case"scalar":this.scalar(e,n.V.T,2,m,true);break;case"enum":this.scalar(e,i.ScalarType.INT32,2,m,true);break;case"message":this.message(e,t,n.V.T(),2,m);break}e.join()}message(e,t,n,i,a){if(a===undefined)return;n.internalBinaryWrite(a,e.tag(i,o.WireType.LengthDelimited).fork(),t);e.join()}scalar(e,t,n,o,i){let[a,d,m]=this.scalarInfo(t,o);if(!m||i){e.tag(n,a);e[d](o)}}packed(e,t,n,d){if(!d.length)return;a.assert(t!==i.ScalarType.BYTES&&t!==i.ScalarType.STRING);e.tag(n,o.WireType.LengthDelimited);e.fork();let[,m]=this.scalarInfo(t);for(let t=0;t<d.length;t++)e[m](d[t]);e.join()}scalarInfo(e,t){let n=o.WireType.Varint;let a;let m=t===undefined;let h=t===0;switch(e){case i.ScalarType.INT32:a="int32";break;case i.ScalarType.STRING:h=m||!t.length;n=o.WireType.LengthDelimited;a="string";break;case i.ScalarType.BOOL:h=t===false;a="bool";break;case i.ScalarType.UINT32:a="uint32";break;case i.ScalarType.DOUBLE:n=o.WireType.Bit64;a="double";break;case i.ScalarType.FLOAT:n=o.WireType.Bit32;a="float";break;case i.ScalarType.INT64:h=m||d.PbLong.from(t).isZero();a="int64";break;case i.ScalarType.UINT64:h=m||d.PbULong.from(t).isZero();a="uint64";break;case i.ScalarType.FIXED64:h=m||d.PbULong.from(t).isZero();n=o.WireType.Bit64;a="fixed64";break;case i.ScalarType.BYTES:h=m||!t.byteLength;n=o.WireType.LengthDelimited;a="bytes";break;case i.ScalarType.FIXED32:n=o.WireType.Bit32;a="fixed32";break;case i.ScalarType.SFIXED32:n=o.WireType.Bit32;a="sfixed32";break;case i.ScalarType.SFIXED64:h=m||d.PbLong.from(t).isZero();n=o.WireType.Bit64;a="sfixed64";break;case i.ScalarType.SINT32:a="sint32";break;case i.ScalarType.SINT64:h=m||d.PbLong.from(t).isZero();a="sint64";break}return[n,a,m||h]}}t.ReflectionBinaryWriter=ReflectionBinaryWriter},5556:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.containsMessageType=void 0;const o=n(1371);function containsMessageType(e){return e[o.MESSAGE_TYPE]!=null}t.containsMessageType=containsMessageType},868:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionCreate=void 0;const o=n(412);const i=n(1371);function reflectionCreate(e){const t=e.messagePrototype?Object.create(e.messagePrototype):Object.defineProperty({},i.MESSAGE_TYPE,{value:e});for(let n of e.fields){let e=n.localName;if(n.opt)continue;if(n.oneof)t[n.oneof]={oneofKind:undefined};else if(n.repeat)t[e]=[];else switch(n.kind){case"scalar":t[e]=o.reflectionScalarDefault(n.T,n.L);break;case"enum":t[e]=0;break;case"map":t[e]={};break}}return t}t.reflectionCreate=reflectionCreate},8197:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionEquals=void 0;const o=n(528);function reflectionEquals(e,t,n){if(t===n)return true;if(!t||!n)return false;for(let a of e.fields){let e=a.localName;let d=a.oneof?t[a.oneof][e]:t[e];let m=a.oneof?n[a.oneof][e]:n[e];switch(a.kind){case"enum":case"scalar":let e=a.kind=="enum"?o.ScalarType.INT32:a.T;if(!(a.repeat?repeatedPrimitiveEq(e,d,m):primitiveEq(e,d,m)))return false;break;case"map":if(!(a.V.kind=="message"?repeatedMsgEq(a.V.T(),i(d),i(m)):repeatedPrimitiveEq(a.V.kind=="enum"?o.ScalarType.INT32:a.V.T,i(d),i(m))))return false;break;case"message":let t=a.T();if(!(a.repeat?repeatedMsgEq(t,d,m):t.equals(d,m)))return false;break}}return true}t.reflectionEquals=reflectionEquals;const i=Object.values;function primitiveEq(e,t,n){if(t===n)return true;if(e!==o.ScalarType.BYTES)return false;let i=t;let a=n;if(i.length!==a.length)return false;for(let e=0;e<i.length;e++)if(i[e]!=a[e])return false;return true}function repeatedPrimitiveEq(e,t,n){if(t.length!==n.length)return false;for(let o=0;o<t.length;o++)if(!primitiveEq(e,t[o],n[o]))return false;return true}function repeatedMsgEq(e,t,n){if(t.length!==n.length)return false;for(let o=0;o<t.length;o++)if(!e.equals(t[o],n[o]))return false;return true}},528:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readMessageOption=t.readFieldOption=t.readFieldOptions=t.normalizeFieldInfo=t.RepeatType=t.LongType=t.ScalarType=void 0;const o=n(4959);var i;(function(e){e[e["DOUBLE"]=1]="DOUBLE";e[e["FLOAT"]=2]="FLOAT";e[e["INT64"]=3]="INT64";e[e["UINT64"]=4]="UINT64";e[e["INT32"]=5]="INT32";e[e["FIXED64"]=6]="FIXED64";e[e["FIXED32"]=7]="FIXED32";e[e["BOOL"]=8]="BOOL";e[e["STRING"]=9]="STRING";e[e["BYTES"]=12]="BYTES";e[e["UINT32"]=13]="UINT32";e[e["SFIXED32"]=15]="SFIXED32";e[e["SFIXED64"]=16]="SFIXED64";e[e["SINT32"]=17]="SINT32";e[e["SINT64"]=18]="SINT64"})(i=t.ScalarType||(t.ScalarType={}));var a;(function(e){e[e["BIGINT"]=0]="BIGINT";e[e["STRING"]=1]="STRING";e[e["NUMBER"]=2]="NUMBER"})(a=t.LongType||(t.LongType={}));var d;(function(e){e[e["NO"]=0]="NO";e[e["PACKED"]=1]="PACKED";e[e["UNPACKED"]=2]="UNPACKED"})(d=t.RepeatType||(t.RepeatType={}));function normalizeFieldInfo(e){var t,n,i,a;e.localName=(t=e.localName)!==null&&t!==void 0?t:o.lowerCamelCase(e.name);e.jsonName=(n=e.jsonName)!==null&&n!==void 0?n:o.lowerCamelCase(e.name);e.repeat=(i=e.repeat)!==null&&i!==void 0?i:d.NO;e.opt=(a=e.opt)!==null&&a!==void 0?a:e.repeat?false:e.oneof?false:e.kind=="message";return e}t.normalizeFieldInfo=normalizeFieldInfo;function readFieldOptions(e,t,n,o){var i;const a=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;return a&&a[n]?o.fromJson(a[n]):undefined}t.readFieldOptions=readFieldOptions;function readFieldOption(e,t,n,o){var i;const a=(i=e.fields.find(((e,n)=>e.localName==t||n==t)))===null||i===void 0?void 0:i.options;if(!a){return undefined}const d=a[n];if(d===undefined){return d}return o?o.fromJson(d):d}t.readFieldOption=readFieldOption;function readMessageOption(e,t,n){const o=e.options;const i=o[t];if(i===undefined){return i}return n?n.fromJson(i):i}t.readMessageOption=readMessageOption},5240:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonReader=void 0;const o=n(8369);const i=n(6689);const a=n(528);const d=n(5579);const m=n(6468);const h=n(2344);class ReflectionJsonReader{constructor(e){this.info=e}prepare(){var e;if(this.fMap===undefined){this.fMap={};const t=(e=this.info.fields)!==null&&e!==void 0?e:[];for(const e of t){this.fMap[e.name]=e;this.fMap[e.jsonName]=e;this.fMap[e.localName]=e}}}assert(e,t,n){if(!e){let e=o.typeofJsonValue(n);if(e=="number"||e=="boolean")e=n.toString();throw new Error(`Cannot parse JSON ${e} for ${this.info.typeName}#${t}`)}}read(e,t,n){this.prepare();const i=[];for(const[d,m]of Object.entries(e)){const e=this.fMap[d];if(!e){if(!n.ignoreUnknownFields)throw new Error(`Found unknown field while reading ${this.info.typeName} from JSON format. JSON key: ${d}`);continue}const h=e.localName;let f;if(e.oneof){if(m===null&&(e.kind!=="enum"||e.T()[0]!=="google.protobuf.NullValue")){continue}if(i.includes(e.oneof))throw new Error(`Multiple members of the oneof group "${e.oneof}" of ${this.info.typeName} are present in JSON.`);i.push(e.oneof);f=t[e.oneof]={oneofKind:h}}else{f=t}if(e.kind=="map"){if(m===null){continue}this.assert(o.isJsonObject(m),e.name,m);const t=f[h];for(const[o,i]of Object.entries(m)){this.assert(i!==null,e.name+" map value",null);let d;switch(e.V.kind){case"message":d=e.V.T().internalJsonRead(i,n);break;case"enum":d=this.enum(e.V.T(),i,e.name,n.ignoreUnknownFields);if(d===false)continue;break;case"scalar":d=this.scalar(i,e.V.T,e.V.L,e.name);break}this.assert(d!==undefined,e.name+" map value",i);let m=o;if(e.K==a.ScalarType.BOOL)m=m=="true"?true:m=="false"?false:m;m=this.scalar(m,e.K,a.LongType.STRING,e.name).toString();t[m]=d}}else if(e.repeat){if(m===null)continue;this.assert(Array.isArray(m),e.name,m);const t=f[h];for(const o of m){this.assert(o!==null,e.name,null);let i;switch(e.kind){case"message":i=e.T().internalJsonRead(o,n);break;case"enum":i=this.enum(e.T(),o,e.name,n.ignoreUnknownFields);if(i===false)continue;break;case"scalar":i=this.scalar(o,e.T,e.L,e.name);break}this.assert(i!==undefined,e.name,m);t.push(i)}}else{switch(e.kind){case"message":if(m===null&&e.T().typeName!="google.protobuf.Value"){this.assert(e.oneof===undefined,e.name+" (oneof member)",null);continue}f[h]=e.T().internalJsonRead(m,n,f[h]);break;case"enum":if(m===null)continue;let t=this.enum(e.T(),m,e.name,n.ignoreUnknownFields);if(t===false)continue;f[h]=t;break;case"scalar":if(m===null)continue;f[h]=this.scalar(m,e.T,e.L,e.name);break}}}}enum(e,t,n,o){if(e[0]=="google.protobuf.NullValue")m.assert(t===null||t==="NULL_VALUE",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} only accepts null.`);if(t===null)return 0;switch(typeof t){case"number":m.assert(Number.isInteger(t),`Unable to parse field ${this.info.typeName}#${n}, enum can only be integral number, got ${t}.`);return t;case"string":let i=t;if(e[2]&&t.substring(0,e[2].length)===e[2])i=t.substring(e[2].length);let a=e[1][i];if(typeof a==="undefined"&&o){return false}m.assert(typeof a=="number",`Unable to parse field ${this.info.typeName}#${n}, enum ${e[0]} has no value for "${t}".`);return a}m.assert(false,`Unable to parse field ${this.info.typeName}#${n}, cannot parse enum value from ${typeof t}".`)}scalar(e,t,n,o){let f;try{switch(t){case a.ScalarType.DOUBLE:case a.ScalarType.FLOAT:if(e===null)return 0;if(e==="NaN")return Number.NaN;if(e==="Infinity")return Number.POSITIVE_INFINITY;if(e==="-Infinity")return Number.NEGATIVE_INFINITY;if(e===""){f="empty string";break}if(typeof e=="string"&&e.trim().length!==e.length){f="extra whitespace";break}if(typeof e!="string"&&typeof e!="number"){break}let o=Number(e);if(Number.isNaN(o)){f="not a number";break}if(!Number.isFinite(o)){f="too large or small";break}if(t==a.ScalarType.FLOAT)m.assertFloat32(o);return o;case a.ScalarType.INT32:case a.ScalarType.FIXED32:case a.ScalarType.SFIXED32:case a.ScalarType.SINT32:case a.ScalarType.UINT32:if(e===null)return 0;let C;if(typeof e=="number")C=e;else if(e==="")f="empty string";else if(typeof e=="string"){if(e.trim().length!==e.length)f="extra whitespace";else C=Number(e)}if(C===undefined)break;if(t==a.ScalarType.UINT32)m.assertUInt32(C);else m.assertInt32(C);return C;case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:if(e===null)return h.reflectionLongConvert(d.PbLong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return h.reflectionLongConvert(d.PbLong.from(e),n);case a.ScalarType.FIXED64:case a.ScalarType.UINT64:if(e===null)return h.reflectionLongConvert(d.PbULong.ZERO,n);if(typeof e!="number"&&typeof e!="string")break;return h.reflectionLongConvert(d.PbULong.from(e),n);case a.ScalarType.BOOL:if(e===null)return false;if(typeof e!=="boolean")break;return e;case a.ScalarType.STRING:if(e===null)return"";if(typeof e!=="string"){f="extra whitespace";break}try{encodeURIComponent(e)}catch(f){f="invalid UTF8";break}return e;case a.ScalarType.BYTES:if(e===null||e==="")return new Uint8Array(0);if(typeof e!=="string")break;return i.base64decode(e)}}catch(e){f=e.message}this.assert(false,o+(f?" - "+f:""),e)}}t.ReflectionJsonReader=ReflectionJsonReader},5572:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionJsonWriter=void 0;const o=n(6689);const i=n(5579);const a=n(528);const d=n(6468);class ReflectionJsonWriter{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}write(e,t){const n={},o=e;for(const e of this.fields){if(!e.oneof){let i=this.field(e,o[e.localName],t);if(i!==undefined)n[t.useProtoFieldName?e.name:e.jsonName]=i;continue}const i=o[e.oneof];if(i.oneofKind!==e.localName)continue;const a=e.kind=="scalar"||e.kind=="enum"?Object.assign(Object.assign({},t),{emitDefaultValues:true}):t;let m=this.field(e,i[e.localName],a);d.assert(m!==undefined);n[t.useProtoFieldName?e.name:e.jsonName]=m}return n}field(e,t,n){let o=undefined;if(e.kind=="map"){d.assert(typeof t=="object"&&t!==null);const i={};switch(e.V.kind){case"scalar":for(const[n,o]of Object.entries(t)){const t=this.scalar(e.V.T,o,e.name,false,true);d.assert(t!==undefined);i[n.toString()]=t}break;case"message":const o=e.V.T();for(const[a,m]of Object.entries(t)){const t=this.message(o,m,e.name,n);d.assert(t!==undefined);i[a.toString()]=t}break;case"enum":const a=e.V.T();for(const[o,m]of Object.entries(t)){d.assert(m===undefined||typeof m=="number");const t=this.enum(a,m,e.name,false,true,n.enumAsInteger);d.assert(t!==undefined);i[o.toString()]=t}break}if(n.emitDefaultValues||Object.keys(i).length>0)o=i}else if(e.repeat){d.assert(Array.isArray(t));const i=[];switch(e.kind){case"scalar":for(let n=0;n<t.length;n++){const o=this.scalar(e.T,t[n],e.name,e.opt,true);d.assert(o!==undefined);i.push(o)}break;case"enum":const o=e.T();for(let a=0;a<t.length;a++){d.assert(t[a]===undefined||typeof t[a]=="number");const m=this.enum(o,t[a],e.name,e.opt,true,n.enumAsInteger);d.assert(m!==undefined);i.push(m)}break;case"message":const a=e.T();for(let o=0;o<t.length;o++){const m=this.message(a,t[o],e.name,n);d.assert(m!==undefined);i.push(m)}break}if(n.emitDefaultValues||i.length>0||n.emitDefaultValues)o=i}else{switch(e.kind){case"scalar":o=this.scalar(e.T,t,e.name,e.opt,n.emitDefaultValues);break;case"enum":o=this.enum(e.T(),t,e.name,e.opt,n.emitDefaultValues,n.enumAsInteger);break;case"message":o=this.message(e.T(),t,e.name,n);break}}return o}enum(e,t,n,o,i,a){if(e[0]=="google.protobuf.NullValue")return!i&&!o?undefined:null;if(t===undefined){d.assert(o);return undefined}if(t===0&&!i&&!o)return undefined;d.assert(typeof t=="number");d.assert(Number.isInteger(t));if(a||!e[1].hasOwnProperty(t))return t;if(e[2])return e[2]+e[1][t];return e[1][t]}message(e,t,n,o){if(t===undefined)return o.emitDefaultValues?null:undefined;return e.internalJsonWrite(t,o)}scalar(e,t,n,m,h){if(t===undefined){d.assert(m);return undefined}const f=h||m;switch(e){case a.ScalarType.INT32:case a.ScalarType.SFIXED32:case a.ScalarType.SINT32:if(t===0)return f?0:undefined;d.assertInt32(t);return t;case a.ScalarType.FIXED32:case a.ScalarType.UINT32:if(t===0)return f?0:undefined;d.assertUInt32(t);return t;case a.ScalarType.FLOAT:d.assertFloat32(t);case a.ScalarType.DOUBLE:if(t===0)return f?0:undefined;d.assert(typeof t=="number");if(Number.isNaN(t))return"NaN";if(t===Number.POSITIVE_INFINITY)return"Infinity";if(t===Number.NEGATIVE_INFINITY)return"-Infinity";return t;case a.ScalarType.STRING:if(t==="")return f?"":undefined;d.assert(typeof t=="string");return t;case a.ScalarType.BOOL:if(t===false)return f?false:undefined;d.assert(typeof t=="boolean");return t;case a.ScalarType.UINT64:case a.ScalarType.FIXED64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let e=i.PbULong.from(t);if(e.isZero()&&!f)return undefined;return e.toString();case a.ScalarType.INT64:case a.ScalarType.SFIXED64:case a.ScalarType.SINT64:d.assert(typeof t=="number"||typeof t=="string"||typeof t=="bigint");let n=i.PbLong.from(t);if(n.isZero()&&!f)return undefined;return n.toString();case a.ScalarType.BYTES:d.assert(t instanceof Uint8Array);if(!t.byteLength)return f?"":undefined;return o.base64encode(t)}}}t.ReflectionJsonWriter=ReflectionJsonWriter},2344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionLongConvert=void 0;const o=n(528);function reflectionLongConvert(e,t){switch(t){case o.LongType.BIGINT:return e.toBigInt();case o.LongType.NUMBER:return e.toNumber();default:return e.toString()}}t.reflectionLongConvert=reflectionLongConvert},8674:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionMergePartial=void 0;function reflectionMergePartial(e,t,n){let o,i=n,a;for(let n of e.fields){let e=n.localName;if(n.oneof){const d=i[n.oneof];if((d===null||d===void 0?void 0:d.oneofKind)==undefined){continue}o=d[e];a=t[n.oneof];a.oneofKind=d.oneofKind;if(o==undefined){delete a[e];continue}}else{o=i[e];a=t;if(o==undefined){continue}}if(n.repeat)a[e].length=o.length;switch(n.kind){case"scalar":case"enum":if(n.repeat)for(let t=0;t<o.length;t++)a[e][t]=o[t];else a[e]=o;break;case"message":let t=n.T();if(n.repeat)for(let n=0;n<o.length;n++)a[e][n]=t.create(o[n]);else if(a[e]===undefined)a[e]=t.create(o);else t.mergePartial(a[e],o);break;case"map":switch(n.V.kind){case"scalar":case"enum":Object.assign(a[e],o);break;case"message":let t=n.V.T();for(let n of Object.keys(o))a[e][n]=t.create(o[n]);break}break}}}t.reflectionMergePartial=reflectionMergePartial},412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.reflectionScalarDefault=void 0;const o=n(528);const i=n(2344);const a=n(5579);function reflectionScalarDefault(e,t=o.LongType.STRING){switch(e){case o.ScalarType.BOOL:return false;case o.ScalarType.UINT64:case o.ScalarType.FIXED64:return i.reflectionLongConvert(a.PbULong.ZERO,t);case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:return i.reflectionLongConvert(a.PbLong.ZERO,t);case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return 0;case o.ScalarType.BYTES:return new Uint8Array(0);case o.ScalarType.STRING:return"";default:return 0}}t.reflectionScalarDefault=reflectionScalarDefault},5649:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReflectionTypeCheck=void 0;const o=n(528);const i=n(4857);class ReflectionTypeCheck{constructor(e){var t;this.fields=(t=e.fields)!==null&&t!==void 0?t:[]}prepare(){if(this.data)return;const e=[],t=[],n=[];for(let o of this.fields){if(o.oneof){if(!n.includes(o.oneof)){n.push(o.oneof);e.push(o.oneof);t.push(o.oneof)}}else{t.push(o.localName);switch(o.kind){case"scalar":case"enum":if(!o.opt||o.repeat)e.push(o.localName);break;case"message":if(o.repeat)e.push(o.localName);break;case"map":e.push(o.localName);break}}}this.data={req:e,known:t,oneofs:Object.values(n)}}is(e,t,n=false){if(t<0)return true;if(e===null||e===undefined||typeof e!="object")return false;this.prepare();let o=Object.keys(e),a=this.data;if(o.length<a.req.length||a.req.some((e=>!o.includes(e))))return false;if(!n){if(o.some((e=>!a.known.includes(e))))return false}if(t<1){return true}for(const o of a.oneofs){const a=e[o];if(!i.isOneofGroup(a))return false;if(a.oneofKind===undefined)continue;const d=this.fields.find((e=>e.localName===a.oneofKind));if(!d)return false;if(!this.field(a[a.oneofKind],d,n,t))return false}for(const o of this.fields){if(o.oneof!==undefined)continue;if(!this.field(e[o.localName],o,n,t))return false}return true}field(e,t,n,i){let a=t.repeat;switch(t.kind){case"scalar":if(e===undefined)return t.opt;if(a)return this.scalars(e,t.T,i,t.L);return this.scalar(e,t.T,t.L);case"enum":if(e===undefined)return t.opt;if(a)return this.scalars(e,o.ScalarType.INT32,i);return this.scalar(e,o.ScalarType.INT32);case"message":if(e===undefined)return true;if(a)return this.messages(e,t.T(),n,i);return this.message(e,t.T(),n,i);case"map":if(typeof e!="object"||e===null)return false;if(i<2)return true;if(!this.mapKeys(e,t.K,i))return false;switch(t.V.kind){case"scalar":return this.scalars(Object.values(e),t.V.T,i,t.V.L);case"enum":return this.scalars(Object.values(e),o.ScalarType.INT32,i);case"message":return this.messages(Object.values(e),t.V.T(),n,i)}break}return true}message(e,t,n,o){if(n){return t.isAssignable(e,o)}return t.is(e,o)}messages(e,t,n,o){if(!Array.isArray(e))return false;if(o<2)return true;if(n){for(let n=0;n<e.length&&n<o;n++)if(!t.isAssignable(e[n],o-1))return false}else{for(let n=0;n<e.length&&n<o;n++)if(!t.is(e[n],o-1))return false}return true}scalar(e,t,n){let i=typeof e;switch(t){case o.ScalarType.UINT64:case o.ScalarType.FIXED64:case o.ScalarType.INT64:case o.ScalarType.SFIXED64:case o.ScalarType.SINT64:switch(n){case o.LongType.BIGINT:return i=="bigint";case o.LongType.NUMBER:return i=="number"&&!isNaN(e);default:return i=="string"}case o.ScalarType.BOOL:return i=="boolean";case o.ScalarType.STRING:return i=="string";case o.ScalarType.BYTES:return e instanceof Uint8Array;case o.ScalarType.DOUBLE:case o.ScalarType.FLOAT:return i=="number"&&!isNaN(e);default:return i=="number"&&Number.isInteger(e)}}scalars(e,t,n,o){if(!Array.isArray(e))return false;if(n<2)return true;if(Array.isArray(e))for(let i=0;i<e.length&&i<n;i++)if(!this.scalar(e[i],t,o))return false;return true}mapKeys(e,t,n){let i=Object.keys(e);switch(t){case o.ScalarType.INT32:case o.ScalarType.FIXED32:case o.ScalarType.SFIXED32:case o.ScalarType.SINT32:case o.ScalarType.UINT32:return this.scalars(i.slice(0,n).map((e=>parseInt(e))),t,n);case o.ScalarType.BOOL:return this.scalars(i.slice(0,n).map((e=>e=="true"?true:e=="false"?false:e)),t,n);default:return this.scalars(i,t,n,o.LongType.STRING)}}}t.ReflectionTypeCheck=ReflectionTypeCheck},9659:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(){var ownKeys=function(e){ownKeys=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[t.length]=n;return t};return ownKeys(e)};return function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ownKeys(e),a=0;a<n.length;a++)if(n[a]!=="default")o(t,e,n[a]);i(t,e);return t}}();var d=this&&this.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:true});t.HttpClient=t.HttpClientResponse=t.HttpClientError=t.MediaTypes=t.Headers=t.HttpCodes=void 0;t.getProxyUrl=getProxyUrl;t.isHttps=isHttps;const m=a(n(8611));const h=a(n(5692));const f=a(n(3335));const C=a(n(770));const P=n(6752);var D;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(D||(t.HttpCodes=D={}));var k;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(k||(t.Headers=k={}));var L;(function(e){e["ApplicationJson"]="application/json"})(L||(t.MediaTypes=L={}));function getProxyUrl(e){const t=f.getProxyUrl(new URL(e));return t?t.href:""}const F=[D.MovedPermanently,D.ResourceMoved,D.SeeOther,D.TemporaryRedirect,D.PermanentRedirect];const q=[D.BadGateway,D.ServiceUnavailable,D.GatewayTimeout];const V=["OPTIONS","GET","DELETE","HEAD"];const ee=10;const te=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}t.HttpClientError=HttpClientError;class HttpClientResponse{constructor(e){this.message=e}readBody(){return d(this,void 0,void 0,(function*(){return new Promise((e=>d(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((e=>d(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}t.HttpClientResponse=HttpClientResponse;function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return d(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return d(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return d(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return d(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return d(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return d(this,arguments,void 0,(function*(e,t={}){t[k.Accept]=this._getExistingOrDefaultHeader(t,k.Accept,L.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,L.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,L.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,L.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,L.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return d(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[k.Accept]=this._getExistingOrDefaultHeader(n,k.Accept,L.ApplicationJson);n[k.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,L.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let a=this._prepareRequest(e,i,o);const d=this._allowRetries&&V.includes(e)?this._maxRetries+1:1;let m=0;let h;do{h=yield this.requestRaw(a,n);if(h&&h.message&&h.message.statusCode===D.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(h)){e=t;break}}if(e){return e.handleAuthentication(this,a,n)}else{return h}}let t=this._maxRedirects;while(h.message.statusCode&&F.includes(h.message.statusCode)&&this._allowRedirects&&t>0){const d=h.message.headers["location"];if(!d){break}const m=new URL(d);if(i.protocol==="https:"&&i.protocol!==m.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield h.readBody();if(m.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}a=this._prepareRequest(e,m,o);h=yield this.requestRaw(a,n);t--}if(!h.message.statusCode||!q.includes(h.message.statusCode)){return h}m+=1;if(m<d){yield h.readBody();yield this._performExponentialBackoff(m)}}while(m<d);return h}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return d(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let a;i.on("socket",(e=>{a=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=f.getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?h:m;const a=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[k.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[k.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=f.getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let a=100;if(this.requestOptions){a=this.requestOptions.maxSockets||m.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const d=n.protocol==="https:";if(i){o=d?C.httpsOverHttps:C.httpsOverHttp}else{o=d?C.httpOverHttps:C.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new h.Agent(e):new m.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new P.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return d(this,void 0,void 0,(function*(){e=Math.min(ee,e);const t=te*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return d(this,void 0,void 0,(function*(){return new Promise(((n,o)=>d(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const a={statusCode:i,result:null,headers:{}};if(i===D.NotFound){n(a)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let d;let m;try{m=yield e.readBody();if(m&&m.length>0){if(t&&t.deserializeDates){d=JSON.parse(m,dateTimeDeserializer)}else{d=JSON.parse(m)}a.result=d}a.headers=e.message.headers}catch(e){}if(i>299){let e;if(d&&d.message){e=d.message}else if(m&&m.length>0){e=m}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=a.result;o(t)}else{n(a)}}))))}))}}t.HttpClient=HttpClient;const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{})},3335:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getProxyUrl=getProxyUrl;t.checkBypass=checkBypass;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}},3182:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRPUBLICHttpAuthSchemeProvider=t.defaultECRPUBLICHttpAuthSchemeParametersProvider=void 0;const o=n(7523);const i=n(6324);const defaultECRPUBLICHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRPUBLICHttpAuthSchemeParametersProvider=defaultECRPUBLICHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr-public",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRPUBLICHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRPUBLICHttpAuthSchemeProvider=defaultECRPUBLICHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},6072:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const a=n(1829);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},1829:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",a="ref";const d=true,m="isSet",h="booleanEquals",f="error",C="endpoint",P="tree",D="PartitionResult",k="getAttr",L={[n]:false,type:"string"},F={[n]:true,default:false,type:"boolean"},q={[a]:"Endpoint"},V={[o]:h,[i]:[{[a]:"UseFIPS"},true]},ee={[o]:h,[i]:[{[a]:"UseDualStack"},true]},te={},re={[o]:k,[i]:[{[a]:D},"supportsFIPS"]},ne={[a]:D},se={[o]:h,[i]:[true,{[o]:k,[i]:[ne,"supportsDualStack"]}]},oe=[V],ie=[ee],ae=[{[a]:"Region"}];const ce={version:"1.0",parameters:{Region:L,UseDualStack:F,UseFIPS:F,Endpoint:L},rules:[{conditions:[{[o]:m,[i]:[q]}],rules:[{conditions:oe,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:f},{conditions:ie,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:f},{endpoint:{url:q,properties:te,headers:te},type:C}],type:P},{conditions:[{[o]:m,[i]:ae}],rules:[{conditions:[{[o]:"aws.partition",[i]:ae,assign:D}],rules:[{conditions:[V,ee],rules:[{conditions:[{[o]:h,[i]:[d,re]},se],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:f}],type:P},{conditions:oe,rules:[{conditions:[{[o]:h,[i]:[re,d]}],rules:[{endpoint:{url:"https://api.ecr-public-fips.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"FIPS is enabled but this partition does not support FIPS",type:f}],type:P},{conditions:ie,rules:[{conditions:[se],rules:[{conditions:[{[o]:"stringEquals",[i]:["aws",{[o]:k,[i]:[ne,"name"]}]}],endpoint:{url:"https://ecr-public.{Region}.api.aws",properties:te,headers:te},type:C},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:te,headers:te},type:C}],type:P},{error:"DualStack is enabled but this partition does not support DualStack",type:f}],type:P},{endpoint:{url:"https://api.ecr-public.{Region}.{PartitionResult#dnsSuffix}",properties:te,headers:te},type:C}],type:P}],type:P},{error:"Invalid Configuration: Missing Region",type:f}]};t.ruleSet=ce},9821:(e,t,n)=>{var o=n(2590);var i=n(5242);var a=n(1568);var d=n(2959);var m=n(9316);var h=n(402);var f=n(6890);var C=n(7212);var P=n(99);var D=n(9618);var k=n(1411);var L=n(3182);var F=n(8199);var q=n(6463);var V=n(2356);var ee=n(3917);var te=n(977);var re=n(3303);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr-public"});const ne={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(q.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),V.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,q.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),V.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRPUBLICClient extends k.Client{config;constructor(...[e]){const t=F.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const q=D.resolveRetryConfig(k);const V=m.resolveRegionConfig(q);const ee=o.resolveHostHeaderConfig(V);const te=P.resolveEndpointConfig(ee);const re=L.resolveHttpAuthSchemeConfig(te);const ne=resolveRuntimeExtensions(re,e?.extensions||[]);this.config=ne;this.middlewareStack.use(f.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(C.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(h.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:L.defaultECRPUBLICHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new h.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(h.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchCheckLayerAvailability",{}).n("ECRPUBLICClient","BatchCheckLayerAvailabilityCommand").sc(ee.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","BatchDeleteImage",{}).n("ECRPUBLICClient","BatchDeleteImageCommand").sc(ee.BatchDeleteImage$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CompleteLayerUpload",{}).n("ECRPUBLICClient","CompleteLayerUploadCommand").sc(ee.CompleteLayerUpload$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","CreateRepository",{}).n("ECRPUBLICClient","CreateRepositoryCommand").sc(ee.CreateRepository$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepository",{}).n("ECRPUBLICClient","DeleteRepositoryCommand").sc(ee.DeleteRepository$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DeleteRepositoryPolicy",{}).n("ECRPUBLICClient","DeleteRepositoryPolicyCommand").sc(ee.DeleteRepositoryPolicy$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImages",{}).n("ECRPUBLICClient","DescribeImagesCommand").sc(ee.DescribeImages$).build()){}class DescribeImageTagsCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeImageTags",{}).n("ECRPUBLICClient","DescribeImageTagsCommand").sc(ee.DescribeImageTags$).build()){}class DescribeRegistriesCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRegistries",{}).n("ECRPUBLICClient","DescribeRegistriesCommand").sc(ee.DescribeRegistries$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","DescribeRepositories",{}).n("ECRPUBLICClient","DescribeRepositoriesCommand").sc(ee.DescribeRepositories$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetAuthorizationToken",{}).n("ECRPUBLICClient","GetAuthorizationTokenCommand").sc(ee.GetAuthorizationToken$).build()){}class GetRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRegistryCatalogData",{}).n("ECRPUBLICClient","GetRegistryCatalogDataCommand").sc(ee.GetRegistryCatalogData$).build()){}class GetRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryCatalogData",{}).n("ECRPUBLICClient","GetRepositoryCatalogDataCommand").sc(ee.GetRepositoryCatalogData$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","GetRepositoryPolicy",{}).n("ECRPUBLICClient","GetRepositoryPolicyCommand").sc(ee.GetRepositoryPolicy$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","InitiateLayerUpload",{}).n("ECRPUBLICClient","InitiateLayerUploadCommand").sc(ee.InitiateLayerUpload$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","ListTagsForResource",{}).n("ECRPUBLICClient","ListTagsForResourceCommand").sc(ee.ListTagsForResource$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutImage",{}).n("ECRPUBLICClient","PutImageCommand").sc(ee.PutImage$).build()){}class PutRegistryCatalogDataCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRegistryCatalogData",{}).n("ECRPUBLICClient","PutRegistryCatalogDataCommand").sc(ee.PutRegistryCatalogData$).build()){}class PutRepositoryCatalogDataCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","PutRepositoryCatalogData",{}).n("ECRPUBLICClient","PutRepositoryCatalogDataCommand").sc(ee.PutRepositoryCatalogData$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","SetRepositoryPolicy",{}).n("ECRPUBLICClient","SetRepositoryPolicyCommand").sc(ee.SetRepositoryPolicy$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","TagResource",{}).n("ECRPUBLICClient","TagResourceCommand").sc(ee.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UntagResource",{}).n("ECRPUBLICClient","UntagResourceCommand").sc(ee.UntagResource$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(ne).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("SpencerFrontendService","UploadLayerPart",{}).n("ECRPUBLICClient","UploadLayerPartCommand").sc(ee.UploadLayerPart$).build()){}const se=h.createPaginator(ECRPUBLICClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const oe=h.createPaginator(ECRPUBLICClient,DescribeImageTagsCommand,"nextToken","nextToken","maxResults");const ie=h.createPaginator(ECRPUBLICClient,DescribeRegistriesCommand,"nextToken","nextToken","maxResults");const ae=h.createPaginator(ECRPUBLICClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const ce={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreateRepositoryCommand:CreateRepositoryCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageTagsCommand:DescribeImageTagsCommand,DescribeRegistriesCommand:DescribeRegistriesCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetRegistryCatalogDataCommand:GetRegistryCatalogDataCommand,GetRepositoryCatalogDataCommand:GetRepositoryCatalogDataCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutImageCommand:PutImageCommand,PutRegistryCatalogDataCommand:PutRegistryCatalogDataCommand,PutRepositoryCatalogDataCommand:PutRepositoryCatalogDataCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UploadLayerPartCommand:UploadLayerPartCommand};const le={paginateDescribeImages:se,paginateDescribeImageTags:oe,paginateDescribeRegistries:ie,paginateDescribeRepositories:ae};class ECRPUBLIC extends ECRPUBLICClient{}k.createAggregatedClient(ce,ECRPUBLIC,{paginators:le});const ue={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const de={AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const pe={ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag"};const Ae={ACTIVE:"ACTIVE",PENDING:"PENDING",REJECTED:"REJECTED"};t.$Command=k.Command;t.__Client=k.Client;t.ECRPUBLICServiceException=re.ECRPUBLICServiceException;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DescribeImageTagsCommand=DescribeImageTagsCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribeRegistriesCommand=DescribeRegistriesCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.ECRPUBLIC=ECRPUBLIC;t.ECRPUBLICClient=ECRPUBLICClient;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetRegistryCatalogDataCommand=GetRegistryCatalogDataCommand;t.GetRepositoryCatalogDataCommand=GetRepositoryCatalogDataCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.ImageFailureCode=pe;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=de;t.LayerFailureCode=ue;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutImageCommand=PutImageCommand;t.PutRegistryCatalogDataCommand=PutRegistryCatalogDataCommand;t.PutRepositoryCatalogDataCommand=PutRepositoryCatalogDataCommand;t.RegistryAliasStatus=Ae;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.TagResourceCommand=TagResourceCommand;t.UntagResourceCommand=UntagResourceCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.paginateDescribeImageTags=oe;t.paginateDescribeImages=se;t.paginateDescribeRegistries=ie;t.paginateDescribeRepositories=ae;Object.prototype.hasOwnProperty.call(ee,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ee["__proto__"]});Object.keys(ee).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ee[e]}));Object.prototype.hasOwnProperty.call(te,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:te["__proto__"]});Object.keys(te).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=te[e]}))},3303:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRPUBLICServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRPUBLICServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRPUBLICServiceException.prototype)}}t.ECRPUBLICServiceException=ECRPUBLICServiceException},977:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ReferencedImagesNotFoundException=t.LayersNotFoundException=t.InvalidLayerPartException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.RepositoryCatalogDataNotFoundException=t.ImageNotFoundException=t.RepositoryPolicyNotFoundException=t.RepositoryNotEmptyException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.LimitExceededException=t.InvalidTagParameterException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.InvalidLayerException=t.EmptyUploadException=t.UnsupportedCommandException=t.ServerException=t.RepositoryNotFoundException=t.RegistryNotFoundException=t.InvalidParameterException=void 0;const o=n(3303);class InvalidParameterException extends o.ECRPUBLICServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RegistryNotFoundException extends o.ECRPUBLICServiceException{name="RegistryNotFoundException";$fault="client";constructor(e){super({name:"RegistryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryNotFoundException.prototype)}}t.RegistryNotFoundException=RegistryNotFoundException;class RepositoryNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRPUBLICServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class UnsupportedCommandException extends o.ECRPUBLICServiceException{name="UnsupportedCommandException";$fault="client";constructor(e){super({name:"UnsupportedCommandException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedCommandException.prototype)}}t.UnsupportedCommandException=UnsupportedCommandException;class EmptyUploadException extends o.ECRPUBLICServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRPUBLICServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class LayerAlreadyExistsException extends o.ECRPUBLICServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRPUBLICServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRPUBLICServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class InvalidTagParameterException extends o.ECRPUBLICServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class LimitExceededException extends o.ECRPUBLICServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class RepositoryAlreadyExistsException extends o.ECRPUBLICServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRPUBLICServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class RepositoryNotEmptyException extends o.ECRPUBLICServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class RepositoryPolicyNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class ImageNotFoundException extends o.ECRPUBLICServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class RepositoryCatalogDataNotFoundException extends o.ECRPUBLICServiceException{name="RepositoryCatalogDataNotFoundException";$fault="client";constructor(e){super({name:"RepositoryCatalogDataNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryCatalogDataNotFoundException.prototype)}}t.RepositoryCatalogDataNotFoundException=RepositoryCatalogDataNotFoundException;class ImageAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRPUBLICServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRPUBLICServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class InvalidLayerPartException extends o.ECRPUBLICServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException;class LayersNotFoundException extends o.ECRPUBLICServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class ReferencedImagesNotFoundException extends o.ECRPUBLICServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException},8199:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(7643));const a=n(5152);const d=n(7523);const m=n(5861);const h=n(1656);const f=n(9316);const C=n(2711);const P=n(9618);const D=n(5704);const k=n(1279);const L=n(1411);const F=n(3638);const q=n(673);const V=n(5518);const ee=n(2180);const getRuntimeConfig=e=>{(0,L.emitWarningIfUnsupportedVersion)(process.version);const t=(0,q.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(L.loadConfigsForDefaultMode);const n=(0,ee.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,D.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??F.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??m.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,h.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,D.loadConfig)(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,D.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:k.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,D.loadConfig)({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||V.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??k.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,D.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,D.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,D.loadConfig)(h.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},2180:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7523);const i=n(7288);const a=n(1411);const d=n(4494);const m=n(8385);const h=n(1577);const f=n(3182);const C=n(6072);const P=n(3917);const getRuntimeConfig=e=>({apiVersion:"2020-10-30",base64Decoder:e?.base64Decoder??m.fromBase64,base64Encoder:e?.base64Encoder??m.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??C.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??f.defaultECRPUBLICHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecrpublic",errorTypeRegistries:P.errorTypeRegistries,xmlNamespace:"http://ecr-public.amazonaws.com/doc/2020-12-02/",version:"2020-10-30",serviceTarget:"SpencerFrontendService"},serviceId:e?.serviceId??"ECR PUBLIC",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},3917:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.GetRegistryCatalogDataRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.DescribeRepositoriesResponse$=t.DescribeRepositoriesRequest$=t.DescribeRegistriesResponse$=t.DescribeRegistriesRequest$=t.DescribeImageTagsResponse$=t.DescribeImageTagsRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AuthorizationData$=t.errorTypeRegistries=t.UploadNotFoundException$=t.UnsupportedCommandException$=t.TooManyTagsException$=t.ServerException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryCatalogDataNotFoundException$=t.RepositoryAlreadyExistsException$=t.RegistryNotFoundException$=t.ReferencedImagesNotFoundException$=t.LimitExceededException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerAlreadyExistsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageAlreadyExistsException$=t.EmptyUploadException$=t.ECRPUBLICServiceException$=void 0;t.GetRegistryCatalogData$=t.GetAuthorizationToken$=t.DescribeRepositories$=t.DescribeRegistries$=t.DescribeImageTags$=t.DescribeImages$=t.DeleteRepositoryPolicy$=t.DeleteRepository$=t.CreateRepository$=t.CompleteLayerUpload$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.RepositoryCatalogDataInput$=t.RepositoryCatalogData$=t.Repository$=t.RegistryCatalogData$=t.RegistryAlias$=t.Registry$=t.ReferencedImageDetail$=t.PutRepositoryCatalogDataResponse$=t.PutRepositoryCatalogDataRequest$=t.PutRegistryCatalogDataResponse$=t.PutRegistryCatalogDataRequest$=t.PutImageResponse$=t.PutImageRequest$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagDetail$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRepositoryCatalogDataResponse$=t.GetRepositoryCatalogDataRequest$=t.GetRegistryCatalogDataResponse$=void 0;t.UploadLayerPart$=t.UntagResource$=t.TagResource$=t.SetRepositoryPolicy$=t.PutRepositoryCatalogData$=t.PutRegistryCatalogData$=t.PutImage$=t.ListTagsForResource$=t.InitiateLayerUpload$=t.GetRepositoryPolicy$=t.GetRepositoryCatalogData$=void 0;const o="AuthorizationData";const i="BatchCheckLayerAvailability";const a="BatchCheckLayerAvailabilityRequest";const d="BatchCheckLayerAvailabilityResponse";const m="BatchDeleteImage";const h="BatchDeleteImageRequest";const f="BatchDeleteImageResponse";const C="CompleteLayerUpload";const P="CompleteLayerUploadRequest";const D="CompleteLayerUploadResponse";const k="CreateRepository";const L="CreateRepositoryRequest";const F="CreateRepositoryResponse";const q="DescribeImages";const V="DescribeImagesRequest";const ee="DescribeImagesResponse";const te="DescribeImageTags";const re="DescribeImageTagsRequest";const ne="DescribeImageTagsResponse";const se="DeleteRepository";const oe="DeleteRepositoryPolicy";const ie="DeleteRepositoryPolicyRequest";const ae="DeleteRepositoryPolicyResponse";const ce="DeleteRepositoryRequest";const le="DeleteRepositoryResponse";const ue="DescribeRegistriesRequest";const de="DescribeRegistriesResponse";const pe="DescribeRepositoriesRequest";const Ae="DescribeRepositoriesResponse";const me="DescribeRegistries";const ge="DescribeRepositories";const he="EmptyUploadException";const fe="GetAuthorizationToken";const ye="GetAuthorizationTokenRequest";const Ee="GetAuthorizationTokenResponse";const Ce="GetRegistryCatalogData";const Ie="GetRegistryCatalogDataRequest";const be="GetRegistryCatalogDataResponse";const Se="GetRepositoryCatalogDataRequest";const Be="GetRepositoryCatalogDataResponse";const we="GetRepositoryCatalogData";const Re="GetRepositoryPolicy";const Ne="GetRepositoryPolicyRequest";const xe="GetRepositoryPolicyResponse";const Qe="Image";const Te="ImageAlreadyExistsException";const ve="ImageDetail";const Pe="ImageDigestDoesNotMatchException";const De="ImageDetailList";const ke="ImageFailure";const _e="ImageFailureList";const Le="ImageIdentifier";const Oe="ImageIdentifierList";const Fe="InvalidLayerException";const Ue="InvalidLayerPartException";const Me="InitiateLayerUpload";const He="InitiateLayerUploadRequest";const $e="InitiateLayerUploadResponse";const Ge="ImageNotFoundException";const qe="InvalidParameterException";const ze="ImageTagAlreadyExistsException";const Ve="ImageTagDetail";const je="ImageTagDetailList";const Ye="InvalidTagParameterException";const Je="Key";const We="Layer";const Ke="LayerAlreadyExistsException";const Xe="LimitExceededException";const Ze="LayerFailure";const ht="LayerFailureList";const It="LayerList";const Bt="LayersNotFoundException";const Rt="LayerPartTooSmallException";const Qt="ListTagsForResource";const Pt="ListTagsForResourceRequest";const Dt="ListTagsForResourceResponse";const kt="PutImage";const _t="PutImageRequest";const Lt="PutImageResponse";const Ft="PutRegistryCatalogData";const Ut="PutRegistryCatalogDataRequest";const Mt="PutRegistryCatalogDataResponse";const Ht="PutRepositoryCatalogDataRequest";const $t="PutRepositoryCatalogDataResponse";const Gt="PutRepositoryCatalogData";const qt="Registry";const zt="RegistryAlias";const Vt="RepositoryAlreadyExistsException";const jt="RegistryAliasList";const Yt="RegistryCatalogData";const Jt="RepositoryCatalogDataInput";const Wt="RepositoryCatalogDataNotFoundException";const Kt="RepositoryCatalogData";const Xt="ReferencedImageDetail";const Zt="ReferencedImagesNotFoundException";const er="RegistryList";const tr="RepositoryList";const rr="RepositoryNotEmptyException";const nr="RegistryNotFoundException";const sr="RepositoryNotFoundException";const or="RepositoryPolicyNotFoundException";const ir="Repository";const ar="ServerException";const cr="SetRepositoryPolicy";const lr="SetRepositoryPolicyRequest";const ur="SetRepositoryPolicyResponse";const dr="Tag";const pr="TagList";const Ar="TooManyTagsException";const mr="TagResource";const gr="TagResourceRequest";const hr="TagResourceResponse";const fr="UnsupportedCommandException";const yr="UploadLayerPart";const Er="UploadLayerPartRequest";const Cr="UploadLayerPartResponse";const Ir="UploadNotFoundException";const br="UntagResource";const Sr="UntagResourceRequest";const Br="UntagResourceResponse";const wr="Value";const Rr="aliases";const Nr="authorizationData";const xr="artifactMediaType";const Qr="authorizationToken";const Tr="aboutText";const vr="architectures";const Pr="client";const Dr="createdAt";const kr="catalogData";const _r="description";const Lr="displayName";const Or="defaultRegistryAlias";const Fr="error";const Ur="expiresAt";const Mr="failures";const Hr="failureCode";const $r="failureReason";const Gr="force";const qr="image";const zr="imageDetails";const Vr="imageDigest";const jr="imageDetail";const Yr="imageIds";const Jr="imageId";const Wr="imageManifest";const Kr="imageManifestMediaType";const Xr="imagePushedAt";const Zr="imageSizeInBytes";const en="imageTags";const tn="imageTagDetails";const rn="imageTag";const nn="layers";const sn="layerAvailability";const on="lastByteReceived";const an="layerDigests";const cn="layerDigest";const ln="logoImageBlob";const un="layerPartBlob";const dn="layerSize";const pn="logoUrl";const An="lastValidByteReceived";const mn="message";const gn="marketplaceCertified";const hn="maxResults";const yn="mediaType";const En="name";const Cn="nextToken";const In="operatingSystems";const bn="partFirstByte";const Sn="partLastByte";const Bn="primaryRegistryAlias";const wn="partSize";const Rn="policyText";const Nn="repository";const xn="resourceArn";const Qn="registryArn";const Tn="repositoryArn";const vn="registryCatalogData";const Pn="registryId";const Dn="repositoryName";const kn="repositoryNames";const _n="registryUri";const Ln="repositoryUri";const On="registries";const Fn="repositories";const Un="smithy.ts.sdk.synthetic.com.amazonaws.ecrpublic";const Mn="server";const Hn="status";const $n="tags";const Gn="tagKeys";const qn="uploadId";const zn="usageText";const Vn="verified";const jn="com.amazonaws.ecrpublic";const Yn=n(6890);const Jn=n(3303);const Wn=n(977);const Kn=Yn.TypeRegistry.for(Un);t.ECRPUBLICServiceException$=[-3,Un,"ECRPUBLICServiceException",0,[],[]];Kn.registerError(t.ECRPUBLICServiceException$,Jn.ECRPUBLICServiceException);const Xn=Yn.TypeRegistry.for(jn);t.EmptyUploadException$=[-3,jn,he,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.EmptyUploadException$,Wn.EmptyUploadException);t.ImageAlreadyExistsException$=[-3,jn,Te,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.ImageAlreadyExistsException$,Wn.ImageAlreadyExistsException);t.ImageDigestDoesNotMatchException$=[-3,jn,Pe,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.ImageDigestDoesNotMatchException$,Wn.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,jn,Ge,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.ImageNotFoundException$,Wn.ImageNotFoundException);t.ImageTagAlreadyExistsException$=[-3,jn,ze,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.ImageTagAlreadyExistsException$,Wn.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,jn,Fe,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.InvalidLayerException$,Wn.InvalidLayerException);t.InvalidLayerPartException$=[-3,jn,Ue,{[Fr]:Pr},[Pn,Dn,qn,An,mn],[0,0,0,1,0]];Xn.registerError(t.InvalidLayerPartException$,Wn.InvalidLayerPartException);t.InvalidParameterException$=[-3,jn,qe,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.InvalidParameterException$,Wn.InvalidParameterException);t.InvalidTagParameterException$=[-3,jn,Ye,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.InvalidTagParameterException$,Wn.InvalidTagParameterException);t.LayerAlreadyExistsException$=[-3,jn,Ke,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.LayerAlreadyExistsException$,Wn.LayerAlreadyExistsException);t.LayerPartTooSmallException$=[-3,jn,Rt,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.LayerPartTooSmallException$,Wn.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,jn,Bt,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.LayersNotFoundException$,Wn.LayersNotFoundException);t.LimitExceededException$=[-3,jn,Xe,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.LimitExceededException$,Wn.LimitExceededException);t.ReferencedImagesNotFoundException$=[-3,jn,Zt,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.ReferencedImagesNotFoundException$,Wn.ReferencedImagesNotFoundException);t.RegistryNotFoundException$=[-3,jn,nr,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RegistryNotFoundException$,Wn.RegistryNotFoundException);t.RepositoryAlreadyExistsException$=[-3,jn,Vt,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RepositoryAlreadyExistsException$,Wn.RepositoryAlreadyExistsException);t.RepositoryCatalogDataNotFoundException$=[-3,jn,Wt,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RepositoryCatalogDataNotFoundException$,Wn.RepositoryCatalogDataNotFoundException);t.RepositoryNotEmptyException$=[-3,jn,rr,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RepositoryNotEmptyException$,Wn.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,jn,sr,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RepositoryNotFoundException$,Wn.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,jn,or,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.RepositoryPolicyNotFoundException$,Wn.RepositoryPolicyNotFoundException);t.ServerException$=[-3,jn,ar,{[Fr]:Mn},[mn],[0]];Xn.registerError(t.ServerException$,Wn.ServerException);t.TooManyTagsException$=[-3,jn,Ar,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.TooManyTagsException$,Wn.TooManyTagsException);t.UnsupportedCommandException$=[-3,jn,fr,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.UnsupportedCommandException$,Wn.UnsupportedCommandException);t.UploadNotFoundException$=[-3,jn,Ir,{[Fr]:Pr},[mn],[0]];Xn.registerError(t.UploadNotFoundException$,Wn.UploadNotFoundException);t.errorTypeRegistries=[Kn,Xn];t.AuthorizationData$=[3,jn,o,0,[Qr,Ur],[0,4]];t.BatchCheckLayerAvailabilityRequest$=[3,jn,a,0,[Dn,an,Pn],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,jn,d,0,[nn,Mr],[()=>ls,()=>cs]];t.BatchDeleteImageRequest$=[3,jn,h,0,[Dn,Yr,Pn],[0,()=>ns,0],2];t.BatchDeleteImageResponse$=[3,jn,f,0,[Yr,Mr],[()=>ns,()=>rs]];t.CompleteLayerUploadRequest$=[3,jn,P,0,[Dn,qn,an,Pn],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,jn,D,0,[Pn,Dn,qn,cn],[0,0,0,0]];t.CreateRepositoryRequest$=[3,jn,L,0,[Dn,kr,$n],[0,()=>t.RepositoryCatalogDataInput$,()=>hs],1];t.CreateRepositoryResponse$=[3,jn,F,0,[Nn,kr],[()=>t.Repository$,()=>t.RepositoryCatalogData$]];t.DeleteRepositoryPolicyRequest$=[3,jn,ie,0,[Dn,Pn],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,jn,ae,0,[Pn,Dn,Rn],[0,0,0]];t.DeleteRepositoryRequest$=[3,jn,ce,0,[Dn,Pn,Gr],[0,0,2],1];t.DeleteRepositoryResponse$=[3,jn,le,0,[Nn],[()=>t.Repository$]];t.DescribeImagesRequest$=[3,jn,V,0,[Dn,Pn,Yr,Cn,hn],[0,0,()=>ns,0,1],1];t.DescribeImagesResponse$=[3,jn,ee,0,[zr,Cn],[()=>ts,0]];t.DescribeImageTagsRequest$=[3,jn,re,0,[Dn,Pn,Cn,hn],[0,0,0,1],1];t.DescribeImageTagsResponse$=[3,jn,ne,0,[tn,Cn],[()=>ss,0]];t.DescribeRegistriesRequest$=[3,jn,ue,0,[Cn,hn],[0,1]];t.DescribeRegistriesResponse$=[3,jn,de,0,[On,Cn],[()=>ps,0],1];t.DescribeRepositoriesRequest$=[3,jn,pe,0,[Pn,kn,Cn,hn],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,jn,Ae,0,[Fn,Cn],[()=>As,0]];t.GetAuthorizationTokenRequest$=[3,jn,ye,0,[],[]];t.GetAuthorizationTokenResponse$=[3,jn,Ee,0,[Nr],[()=>t.AuthorizationData$]];t.GetRegistryCatalogDataRequest$=[3,jn,Ie,0,[],[]];t.GetRegistryCatalogDataResponse$=[3,jn,be,0,[vn],[()=>t.RegistryCatalogData$],1];t.GetRepositoryCatalogDataRequest$=[3,jn,Se,0,[Dn,Pn],[0,0],1];t.GetRepositoryCatalogDataResponse$=[3,jn,Be,0,[kr],[()=>t.RepositoryCatalogData$]];t.GetRepositoryPolicyRequest$=[3,jn,Ne,0,[Dn,Pn],[0,0],1];t.GetRepositoryPolicyResponse$=[3,jn,xe,0,[Pn,Dn,Rn],[0,0,0]];t.Image$=[3,jn,Qe,0,[Pn,Dn,Jr,Wr,Kr],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,jn,ve,0,[Pn,Dn,Vr,en,Zr,Xr,Kr,xr],[0,0,0,64|0,1,4,0,0]];t.ImageFailure$=[3,jn,ke,0,[Jr,Hr,$r],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,jn,Le,0,[Vr,rn],[0,0]];t.ImageTagDetail$=[3,jn,Ve,0,[rn,Dr,jr],[0,4,()=>t.ReferencedImageDetail$]];t.InitiateLayerUploadRequest$=[3,jn,He,0,[Dn,Pn],[0,0],1];t.InitiateLayerUploadResponse$=[3,jn,$e,0,[qn,wn],[0,1]];t.Layer$=[3,jn,We,0,[cn,sn,dn,yn],[0,0,1,0]];t.LayerFailure$=[3,jn,Ze,0,[cn,Hr,$r],[0,0,0]];t.ListTagsForResourceRequest$=[3,jn,Pt,0,[xn],[0],1];t.ListTagsForResourceResponse$=[3,jn,Dt,0,[$n],[()=>hs]];t.PutImageRequest$=[3,jn,_t,0,[Dn,Wr,Pn,Kr,rn,Vr],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,jn,Lt,0,[qr],[()=>t.Image$]];t.PutRegistryCatalogDataRequest$=[3,jn,Ut,0,[Lr],[0]];t.PutRegistryCatalogDataResponse$=[3,jn,Mt,0,[vn],[()=>t.RegistryCatalogData$],1];t.PutRepositoryCatalogDataRequest$=[3,jn,Ht,0,[Dn,kr,Pn],[0,()=>t.RepositoryCatalogDataInput$,0],2];t.PutRepositoryCatalogDataResponse$=[3,jn,$t,0,[kr],[()=>t.RepositoryCatalogData$]];t.ReferencedImageDetail$=[3,jn,Xt,0,[Vr,Zr,Xr,Kr,xr],[0,1,4,0,0]];t.Registry$=[3,jn,qt,0,[Pn,Qn,_n,Vn,Rr],[0,0,0,2,()=>ds],5];t.RegistryAlias$=[3,jn,zt,0,[En,Hn,Bn,Or],[0,0,2,2],4];t.RegistryCatalogData$=[3,jn,Yt,0,[Lr],[0]];t.Repository$=[3,jn,ir,0,[Tn,Pn,Dn,Ln,Dr],[0,0,0,0,4]];t.RepositoryCatalogData$=[3,jn,Kt,0,[_r,vr,In,pn,Tr,zn,gn],[0,64|0,64|0,0,0,0,2]];t.RepositoryCatalogDataInput$=[3,jn,Jt,0,[_r,vr,In,ln,Tr,zn],[0,64|0,64|0,21,0,0]];t.SetRepositoryPolicyRequest$=[3,jn,lr,0,[Dn,Rn,Pn,Gr],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,jn,ur,0,[Pn,Dn,Rn],[0,0,0]];t.Tag$=[3,jn,dr,0,[Je,wr],[0,0]];t.TagResourceRequest$=[3,jn,gr,0,[xn,$n],[0,()=>hs],2];t.TagResourceResponse$=[3,jn,hr,0,[],[]];t.UntagResourceRequest$=[3,jn,Sr,0,[xn,Gn],[0,64|0],2];t.UntagResourceResponse$=[3,jn,Br,0,[],[]];t.UploadLayerPartRequest$=[3,jn,Er,0,[Dn,qn,bn,Sn,un,Pn],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,jn,Cr,0,[Pn,Dn,qn,on],[0,0,0,1]];var Zn=null&&64|0;var es=null&&64|0;var ts=[1,jn,De,0,()=>t.ImageDetail$];var rs=[1,jn,_e,0,()=>t.ImageFailure$];var ns=[1,jn,Oe,0,()=>t.ImageIdentifier$];var ss=[1,jn,je,0,()=>t.ImageTagDetail$];var os=null&&64|0;var as=null&&64|0;var cs=[1,jn,ht,0,()=>t.LayerFailure$];var ls=[1,jn,It,0,()=>t.Layer$];var us=null&&64|0;var ds=[1,jn,jt,0,()=>t.RegistryAlias$];var ps=[1,jn,er,0,()=>t.Registry$];var As=[1,jn,tr,0,()=>t.Repository$];var ms=null&&64|0;var gs=null&&64|0;var hs=[1,jn,pr,0,()=>t.Tag$];t.BatchCheckLayerAvailability$=[9,jn,i,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,jn,m,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.CompleteLayerUpload$=[9,jn,C,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreateRepository$=[9,jn,k,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.DeleteRepository$=[9,jn,se,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryPolicy$=[9,jn,oe,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DescribeImages$=[9,jn,q,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageTags$=[9,jn,te,0,()=>t.DescribeImageTagsRequest$,()=>t.DescribeImageTagsResponse$];t.DescribeRegistries$=[9,jn,me,0,()=>t.DescribeRegistriesRequest$,()=>t.DescribeRegistriesResponse$];t.DescribeRepositories$=[9,jn,ge,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.GetAuthorizationToken$=[9,jn,fe,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetRegistryCatalogData$=[9,jn,Ce,0,()=>t.GetRegistryCatalogDataRequest$,()=>t.GetRegistryCatalogDataResponse$];t.GetRepositoryCatalogData$=[9,jn,we,0,()=>t.GetRepositoryCatalogDataRequest$,()=>t.GetRepositoryCatalogDataResponse$];t.GetRepositoryPolicy$=[9,jn,Re,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.InitiateLayerUpload$=[9,jn,Me,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListTagsForResource$=[9,jn,Qt,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutImage$=[9,jn,kt,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutRegistryCatalogData$=[9,jn,Ft,0,()=>t.PutRegistryCatalogDataRequest$,()=>t.PutRegistryCatalogDataResponse$];t.PutRepositoryCatalogData$=[9,jn,Gt,0,()=>t.PutRepositoryCatalogDataRequest$,()=>t.PutRepositoryCatalogDataResponse$];t.SetRepositoryPolicy$=[9,jn,cr,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.TagResource$=[9,jn,mr,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,jn,br,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UploadLayerPart$=[9,jn,yr,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$]},3218:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.resolveHttpAuthSchemeConfig=t.defaultECRHttpAuthSchemeProvider=t.defaultECRHttpAuthSchemeParametersProvider=void 0;const o=n(7523);const i=n(6324);const defaultECRHttpAuthSchemeParametersProvider=async(e,t,n)=>({operation:(0,i.getSmithyContext)(t).operation,region:await(0,i.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()});t.defaultECRHttpAuthSchemeParametersProvider=defaultECRHttpAuthSchemeParametersProvider;function createAwsAuthSigv4HttpAuthOption(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"ecr",region:e.region},propertiesExtractor:(e,t)=>({signingProperties:{config:e,context:t}})}}const defaultECRHttpAuthSchemeProvider=e=>{const t=[];switch(e.operation){default:{t.push(createAwsAuthSigv4HttpAuthOption(e))}}return t};t.defaultECRHttpAuthSchemeProvider=defaultECRHttpAuthSchemeProvider;const resolveHttpAuthSchemeConfig=e=>{const t=(0,o.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,i.normalizeProvider)(e.authSchemePreference??[])})};t.resolveHttpAuthSchemeConfig=resolveHttpAuthSchemeConfig},3628:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.defaultEndpointResolver=void 0;const o=n(3068);const i=n(9674);const a=n(4193);const d=new i.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]});const defaultEndpointResolver=(e,t={})=>d.get(e,(()=>(0,i.resolveEndpoint)(a.ruleSet,{endpointParams:e,logger:t.logger})));t.defaultEndpointResolver=defaultEndpointResolver;i.customEndpointFunctions.aws=o.awsEndpointFunctions},4193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ruleSet=void 0;const n="required",o="fn",i="argv",a="ref",d="url",m="properties",h="headers";const f=true,C="isSet",P="booleanEquals",D="error",k="endpoint",L="tree",F="PartitionResult",q={[n]:true,default:false,type:"boolean"},V={[n]:false,type:"string"},ee={[a]:"Endpoint"},te={[o]:P,[i]:[{[a]:"UseFIPS"},true]},re={[o]:P,[i]:[{[a]:"UseDualStack"},true]},ne={},se={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws"]},oe={[o]:P,[i]:[{[a]:"UseFIPS"},false]},ie={[o]:P,[i]:[{[a]:"UseDualStack"},false]},ae={[d]:"https://api.ecr.{Region}.{PartitionResult#dnsSuffix}",[m]:{},[h]:{}},ce={[d]:"https://ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[m]:{},[h]:{}},le={[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dnsSuffix}",[m]:{},[h]:{}},ue={[d]:"https://ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[m]:{},[h]:{}},de={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-us-gov"]},pe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-cn"]},Ae={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-iso"]},me={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-iso-b"]},ge={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-iso-e"]},he={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-iso-f"]},fe={[o]:"stringEquals",[i]:[{[o]:"getAttr",[i]:[{[a]:F},"name"]},"aws-eusc"]},ye={[o]:"getAttr",[i]:[{[a]:F},"supportsFIPS"]},Ee={[o]:P,[i]:[true,{[o]:"getAttr",[i]:[{[a]:F},"supportsDualStack"]}]},Ce=[{[a]:"Region"}];const Ie={version:"1.0",parameters:{UseDualStack:q,UseFIPS:q,Endpoint:V,Region:V},rules:[{conditions:[{[o]:C,[i]:[ee]}],rules:[{conditions:[te],error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:D},{rules:[{conditions:[re],error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:D},{endpoint:{[d]:ee,[m]:ne,[h]:ne},type:k}],type:L}],type:L},{rules:[{conditions:[{[o]:C,[i]:Ce}],rules:[{conditions:[{[o]:"aws.partition",[i]:Ce,assign:F}],rules:[{conditions:[se,oe,ie],endpoint:ae,type:k},{conditions:[se,oe,re],endpoint:ce,type:k},{conditions:[se,te,ie],endpoint:le,type:k},{conditions:[se,te,re],endpoint:ue,type:k},{conditions:[de,oe,ie],endpoint:ae,type:k},{conditions:[de,oe,re],endpoint:ce,type:k},{conditions:[de,te,ie],endpoint:le,type:k},{conditions:[de,te,re],endpoint:ue,type:k},{conditions:[pe,oe,ie],endpoint:ae,type:k},{conditions:[pe,oe,re],endpoint:ce,type:k},{conditions:[pe,te,ie],endpoint:le,type:k},{conditions:[pe,te,re],endpoint:ue,type:k},{conditions:[Ae,oe,ie],endpoint:ae,type:k},{conditions:[Ae,oe,re],endpoint:ce,type:k},{conditions:[Ae,te,ie],endpoint:le,type:k},{conditions:[Ae,te,re],endpoint:ue,type:k},{conditions:[me,oe,ie],endpoint:ae,type:k},{conditions:[me,oe,re],endpoint:ce,type:k},{conditions:[me,te,ie],endpoint:le,type:k},{conditions:[me,te,re],endpoint:ue,type:k},{conditions:[ge,oe,ie],endpoint:ae,type:k},{conditions:[ge,oe,re],endpoint:ce,type:k},{conditions:[ge,te,ie],endpoint:le,type:k},{conditions:[ge,te,re],endpoint:ue,type:k},{conditions:[he,oe,ie],endpoint:ae,type:k},{conditions:[he,oe,re],endpoint:ce,type:k},{conditions:[he,te,ie],endpoint:le,type:k},{conditions:[he,te,re],endpoint:ue,type:k},{conditions:[fe,oe,ie],endpoint:ae,type:k},{conditions:[fe,oe,re],endpoint:ce,type:k},{conditions:[fe,te,ie],endpoint:le,type:k},{conditions:[fe,te,re],endpoint:ue,type:k},{conditions:[te,re],rules:[{conditions:[{[o]:P,[i]:[f,ye]},Ee],rules:[{endpoint:{[d]:"https://api.ecr-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",[m]:ne,[h]:ne},type:k}],type:L},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:D}],type:L},{conditions:[te,ie],rules:[{conditions:[{[o]:P,[i]:[ye,f]}],rules:[{endpoint:le,type:k}],type:L},{error:"FIPS is enabled but this partition does not support FIPS",type:D}],type:L},{conditions:[oe,re],rules:[{conditions:[Ee],rules:[{endpoint:{[d]:"https://api.ecr.{Region}.{PartitionResult#dualStackDnsSuffix}",[m]:ne,[h]:ne},type:k}],type:L},{error:"DualStack is enabled but this partition does not support DualStack",type:D}],type:L},{endpoint:ae,type:k}],type:L}],type:L},{error:"Invalid Configuration: Missing Region",type:D}],type:L}]};t.ruleSet=Ie},8249:(e,t,n)=>{var o=n(2590);var i=n(5242);var a=n(1568);var d=n(2959);var m=n(9316);var h=n(402);var f=n(6890);var C=n(7212);var P=n(99);var D=n(9618);var k=n(1411);var L=n(3218);var F=n(3107);var q=n(6463);var V=n(2356);var ee=n(5809);var te=n(5290);var re=n(4901);var ne=n(5502);const resolveClientEndpointParameters=e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??false,useFipsEndpoint:e.useFipsEndpoint??false,defaultSigningName:"ecr"});const se={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};const getHttpAuthExtensionConfiguration=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider;let o=e.credentials;return{setHttpAuthScheme(e){const n=t.findIndex((t=>t.schemeId===e.schemeId));if(n===-1){t.push(e)}else{t.splice(n,1,e)}},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(e){n=e},httpAuthSchemeProvider(){return n},setCredentials(e){o=e},credentials(){return o}}};const resolveHttpAuthRuntimeConfig=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()});const resolveRuntimeExtensions=(e,t)=>{const n=Object.assign(q.getAwsRegionExtensionConfiguration(e),k.getDefaultExtensionConfiguration(e),V.getHttpHandlerExtensionConfiguration(e),getHttpAuthExtensionConfiguration(e));t.forEach((e=>e.configure(n)));return Object.assign(e,q.resolveAwsRegionExtensionConfiguration(n),k.resolveDefaultRuntimeConfig(n),V.resolveHttpHandlerRuntimeConfig(n),resolveHttpAuthRuntimeConfig(n))};class ECRClient extends k.Client{config;constructor(...[e]){const t=F.getRuntimeConfig(e||{});super(t);this.initConfig=t;const n=resolveClientEndpointParameters(t);const k=d.resolveUserAgentConfig(n);const q=D.resolveRetryConfig(k);const V=m.resolveRegionConfig(q);const ee=o.resolveHostHeaderConfig(V);const te=P.resolveEndpointConfig(ee);const re=L.resolveHttpAuthSchemeConfig(te);const ne=resolveRuntimeExtensions(re,e?.extensions||[]);this.config=ne;this.middlewareStack.use(f.getSchemaSerdePlugin(this.config));this.middlewareStack.use(d.getUserAgentPlugin(this.config));this.middlewareStack.use(D.getRetryPlugin(this.config));this.middlewareStack.use(C.getContentLengthPlugin(this.config));this.middlewareStack.use(o.getHostHeaderPlugin(this.config));this.middlewareStack.use(i.getLoggerPlugin(this.config));this.middlewareStack.use(a.getRecursionDetectionPlugin(this.config));this.middlewareStack.use(h.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:L.defaultECRHttpAuthSchemeParametersProvider,identityProviderConfigProvider:async e=>new h.DefaultIdentityProviderConfig({"aws.auth#sigv4":e.credentials})}));this.middlewareStack.use(h.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}}class BatchCheckLayerAvailabilityCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchCheckLayerAvailability",{}).n("ECRClient","BatchCheckLayerAvailabilityCommand").sc(ee.BatchCheckLayerAvailability$).build()){}class BatchDeleteImageCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchDeleteImage",{}).n("ECRClient","BatchDeleteImageCommand").sc(ee.BatchDeleteImage$).build()){}class BatchGetImageCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetImage",{}).n("ECRClient","BatchGetImageCommand").sc(ee.BatchGetImage$).build()){}class BatchGetRepositoryScanningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","BatchGetRepositoryScanningConfiguration",{}).n("ECRClient","BatchGetRepositoryScanningConfigurationCommand").sc(ee.BatchGetRepositoryScanningConfiguration$).build()){}class CompleteLayerUploadCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CompleteLayerUpload",{}).n("ECRClient","CompleteLayerUploadCommand").sc(ee.CompleteLayerUpload$).build()){}class CreatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreatePullThroughCacheRule",{}).n("ECRClient","CreatePullThroughCacheRuleCommand").sc(ee.CreatePullThroughCacheRule$).build()){}class CreateRepositoryCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepository",{}).n("ECRClient","CreateRepositoryCommand").sc(ee.CreateRepository$).build()){}class CreateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","CreateRepositoryCreationTemplate",{}).n("ECRClient","CreateRepositoryCreationTemplateCommand").sc(ee.CreateRepositoryCreationTemplate$).build()){}class DeleteLifecyclePolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteLifecyclePolicy",{}).n("ECRClient","DeleteLifecyclePolicyCommand").sc(ee.DeleteLifecyclePolicy$).build()){}class DeletePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeletePullThroughCacheRule",{}).n("ECRClient","DeletePullThroughCacheRuleCommand").sc(ee.DeletePullThroughCacheRule$).build()){}class DeleteRegistryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRegistryPolicy",{}).n("ECRClient","DeleteRegistryPolicyCommand").sc(ee.DeleteRegistryPolicy$).build()){}class DeleteRepositoryCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepository",{}).n("ECRClient","DeleteRepositoryCommand").sc(ee.DeleteRepository$).build()){}class DeleteRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryCreationTemplate",{}).n("ECRClient","DeleteRepositoryCreationTemplateCommand").sc(ee.DeleteRepositoryCreationTemplate$).build()){}class DeleteRepositoryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteRepositoryPolicy",{}).n("ECRClient","DeleteRepositoryPolicyCommand").sc(ee.DeleteRepositoryPolicy$).build()){}class DeleteSigningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeleteSigningConfiguration",{}).n("ECRClient","DeleteSigningConfigurationCommand").sc(ee.DeleteSigningConfiguration$).build()){}class DeregisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DeregisterPullTimeUpdateExclusion",{}).n("ECRClient","DeregisterPullTimeUpdateExclusionCommand").sc(ee.DeregisterPullTimeUpdateExclusion$).build()){}class DescribeImageReplicationStatusCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageReplicationStatus",{}).n("ECRClient","DescribeImageReplicationStatusCommand").sc(ee.DescribeImageReplicationStatus$).build()){}class DescribeImageScanFindingsCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageScanFindings",{}).n("ECRClient","DescribeImageScanFindingsCommand").sc(ee.DescribeImageScanFindings$).build()){}class DescribeImagesCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImages",{}).n("ECRClient","DescribeImagesCommand").sc(ee.DescribeImages$).build()){}class DescribeImageSigningStatusCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeImageSigningStatus",{}).n("ECRClient","DescribeImageSigningStatusCommand").sc(ee.DescribeImageSigningStatus$).build()){}class DescribePullThroughCacheRulesCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribePullThroughCacheRules",{}).n("ECRClient","DescribePullThroughCacheRulesCommand").sc(ee.DescribePullThroughCacheRules$).build()){}class DescribeRegistryCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRegistry",{}).n("ECRClient","DescribeRegistryCommand").sc(ee.DescribeRegistry$).build()){}class DescribeRepositoriesCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositories",{}).n("ECRClient","DescribeRepositoriesCommand").sc(ee.DescribeRepositories$).build()){}class DescribeRepositoryCreationTemplatesCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","DescribeRepositoryCreationTemplates",{}).n("ECRClient","DescribeRepositoryCreationTemplatesCommand").sc(ee.DescribeRepositoryCreationTemplates$).build()){}class GetAccountSettingCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAccountSetting",{}).n("ECRClient","GetAccountSettingCommand").sc(ee.GetAccountSetting$).build()){}class GetAuthorizationTokenCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetAuthorizationToken",{}).n("ECRClient","GetAuthorizationTokenCommand").sc(ee.GetAuthorizationToken$).build()){}class GetDownloadUrlForLayerCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetDownloadUrlForLayer",{}).n("ECRClient","GetDownloadUrlForLayerCommand").sc(ee.GetDownloadUrlForLayer$).build()){}class GetLifecyclePolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicy",{}).n("ECRClient","GetLifecyclePolicyCommand").sc(ee.GetLifecyclePolicy$).build()){}class GetLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetLifecyclePolicyPreview",{}).n("ECRClient","GetLifecyclePolicyPreviewCommand").sc(ee.GetLifecyclePolicyPreview$).build()){}class GetRegistryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryPolicy",{}).n("ECRClient","GetRegistryPolicyCommand").sc(ee.GetRegistryPolicy$).build()){}class GetRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRegistryScanningConfiguration",{}).n("ECRClient","GetRegistryScanningConfigurationCommand").sc(ee.GetRegistryScanningConfiguration$).build()){}class GetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetRepositoryPolicy",{}).n("ECRClient","GetRepositoryPolicyCommand").sc(ee.GetRepositoryPolicy$).build()){}class GetSigningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","GetSigningConfiguration",{}).n("ECRClient","GetSigningConfigurationCommand").sc(ee.GetSigningConfiguration$).build()){}class InitiateLayerUploadCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","InitiateLayerUpload",{}).n("ECRClient","InitiateLayerUploadCommand").sc(ee.InitiateLayerUpload$).build()){}class ListImageReferrersCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImageReferrers",{}).n("ECRClient","ListImageReferrersCommand").sc(ee.ListImageReferrers$).build()){}class ListImagesCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListImages",{}).n("ECRClient","ListImagesCommand").sc(ee.ListImages$).build()){}class ListPullTimeUpdateExclusionsCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListPullTimeUpdateExclusions",{}).n("ECRClient","ListPullTimeUpdateExclusionsCommand").sc(ee.ListPullTimeUpdateExclusions$).build()){}class ListTagsForResourceCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ListTagsForResource",{}).n("ECRClient","ListTagsForResourceCommand").sc(ee.ListTagsForResource$).build()){}class PutAccountSettingCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutAccountSetting",{}).n("ECRClient","PutAccountSettingCommand").sc(ee.PutAccountSetting$).build()){}class PutImageCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImage",{}).n("ECRClient","PutImageCommand").sc(ee.PutImage$).build()){}class PutImageScanningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageScanningConfiguration",{}).n("ECRClient","PutImageScanningConfigurationCommand").sc(ee.PutImageScanningConfiguration$).build()){}class PutImageTagMutabilityCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutImageTagMutability",{}).n("ECRClient","PutImageTagMutabilityCommand").sc(ee.PutImageTagMutability$).build()){}class PutLifecyclePolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutLifecyclePolicy",{}).n("ECRClient","PutLifecyclePolicyCommand").sc(ee.PutLifecyclePolicy$).build()){}class PutRegistryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryPolicy",{}).n("ECRClient","PutRegistryPolicyCommand").sc(ee.PutRegistryPolicy$).build()){}class PutRegistryScanningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutRegistryScanningConfiguration",{}).n("ECRClient","PutRegistryScanningConfigurationCommand").sc(ee.PutRegistryScanningConfiguration$).build()){}class PutReplicationConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutReplicationConfiguration",{}).n("ECRClient","PutReplicationConfigurationCommand").sc(ee.PutReplicationConfiguration$).build()){}class PutSigningConfigurationCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","PutSigningConfiguration",{}).n("ECRClient","PutSigningConfigurationCommand").sc(ee.PutSigningConfiguration$).build()){}class RegisterPullTimeUpdateExclusionCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","RegisterPullTimeUpdateExclusion",{}).n("ECRClient","RegisterPullTimeUpdateExclusionCommand").sc(ee.RegisterPullTimeUpdateExclusion$).build()){}class SetRepositoryPolicyCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","SetRepositoryPolicy",{}).n("ECRClient","SetRepositoryPolicyCommand").sc(ee.SetRepositoryPolicy$).build()){}class StartImageScanCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartImageScan",{}).n("ECRClient","StartImageScanCommand").sc(ee.StartImageScan$).build()){}class StartLifecyclePolicyPreviewCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","StartLifecyclePolicyPreview",{}).n("ECRClient","StartLifecyclePolicyPreviewCommand").sc(ee.StartLifecyclePolicyPreview$).build()){}class TagResourceCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","TagResource",{}).n("ECRClient","TagResourceCommand").sc(ee.TagResource$).build()){}class UntagResourceCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UntagResource",{}).n("ECRClient","UntagResourceCommand").sc(ee.UntagResource$).build()){}class UpdateImageStorageClassCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateImageStorageClass",{}).n("ECRClient","UpdateImageStorageClassCommand").sc(ee.UpdateImageStorageClass$).build()){}class UpdatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdatePullThroughCacheRule",{}).n("ECRClient","UpdatePullThroughCacheRuleCommand").sc(ee.UpdatePullThroughCacheRule$).build()){}class UpdateRepositoryCreationTemplateCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UpdateRepositoryCreationTemplate",{}).n("ECRClient","UpdateRepositoryCreationTemplateCommand").sc(ee.UpdateRepositoryCreationTemplate$).build()){}class UploadLayerPartCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","UploadLayerPart",{}).n("ECRClient","UploadLayerPartCommand").sc(ee.UploadLayerPart$).build()){}class ValidatePullThroughCacheRuleCommand extends(k.Command.classBuilder().ep(se).m((function(e,t,n,o){return[P.getEndpointPlugin(n,e.getEndpointParameterInstructions())]})).s("AmazonEC2ContainerRegistry_V20150921","ValidatePullThroughCacheRule",{}).n("ECRClient","ValidatePullThroughCacheRuleCommand").sc(ee.ValidatePullThroughCacheRule$).build()){}const oe=h.createPaginator(ECRClient,DescribeImageScanFindingsCommand,"nextToken","nextToken","maxResults");const ie=h.createPaginator(ECRClient,DescribeImagesCommand,"nextToken","nextToken","maxResults");const ae=h.createPaginator(ECRClient,DescribePullThroughCacheRulesCommand,"nextToken","nextToken","maxResults");const ce=h.createPaginator(ECRClient,DescribeRepositoriesCommand,"nextToken","nextToken","maxResults");const le=h.createPaginator(ECRClient,DescribeRepositoryCreationTemplatesCommand,"nextToken","nextToken","maxResults");const ue=h.createPaginator(ECRClient,GetLifecyclePolicyPreviewCommand,"nextToken","nextToken","maxResults");const de=h.createPaginator(ECRClient,ListImagesCommand,"nextToken","nextToken","maxResults");const checkState$1=async(e,t)=>{let n;try{let o=await e.send(new DescribeImageScanFindingsCommand(t));n=o;try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="COMPLETE"){return{state:te.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.imageScanStatus.status;if(returnComparator()==="FAILED"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:te.WaiterState.RETRY,reason:n}};const waitForImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return te.createWaiter({...n,...e},t,checkState$1)};const waitUntilImageScanComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await te.createWaiter({...n,...e},t,checkState$1);return te.checkExceptions(o)};const checkState=async(e,t)=>{let n;try{let o=await e.send(new GetLifecyclePolicyPreviewCommand(t));n=o;try{const returnComparator=()=>o.status;if(returnComparator()==="COMPLETE"){return{state:te.WaiterState.SUCCESS,reason:n}}}catch(e){}try{const returnComparator=()=>o.status;if(returnComparator()==="FAILED"){return{state:te.WaiterState.FAILURE,reason:n}}}catch(e){}}catch(e){n=e}return{state:te.WaiterState.RETRY,reason:n}};const waitForLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};return te.createWaiter({...n,...e},t,checkState)};const waitUntilLifecyclePolicyPreviewComplete=async(e,t)=>{const n={minDelay:5,maxDelay:120};const o=await te.createWaiter({...n,...e},t,checkState);return te.checkExceptions(o)};const pe={BatchCheckLayerAvailabilityCommand:BatchCheckLayerAvailabilityCommand,BatchDeleteImageCommand:BatchDeleteImageCommand,BatchGetImageCommand:BatchGetImageCommand,BatchGetRepositoryScanningConfigurationCommand:BatchGetRepositoryScanningConfigurationCommand,CompleteLayerUploadCommand:CompleteLayerUploadCommand,CreatePullThroughCacheRuleCommand:CreatePullThroughCacheRuleCommand,CreateRepositoryCommand:CreateRepositoryCommand,CreateRepositoryCreationTemplateCommand:CreateRepositoryCreationTemplateCommand,DeleteLifecyclePolicyCommand:DeleteLifecyclePolicyCommand,DeletePullThroughCacheRuleCommand:DeletePullThroughCacheRuleCommand,DeleteRegistryPolicyCommand:DeleteRegistryPolicyCommand,DeleteRepositoryCommand:DeleteRepositoryCommand,DeleteRepositoryCreationTemplateCommand:DeleteRepositoryCreationTemplateCommand,DeleteRepositoryPolicyCommand:DeleteRepositoryPolicyCommand,DeleteSigningConfigurationCommand:DeleteSigningConfigurationCommand,DeregisterPullTimeUpdateExclusionCommand:DeregisterPullTimeUpdateExclusionCommand,DescribeImageReplicationStatusCommand:DescribeImageReplicationStatusCommand,DescribeImagesCommand:DescribeImagesCommand,DescribeImageScanFindingsCommand:DescribeImageScanFindingsCommand,DescribeImageSigningStatusCommand:DescribeImageSigningStatusCommand,DescribePullThroughCacheRulesCommand:DescribePullThroughCacheRulesCommand,DescribeRegistryCommand:DescribeRegistryCommand,DescribeRepositoriesCommand:DescribeRepositoriesCommand,DescribeRepositoryCreationTemplatesCommand:DescribeRepositoryCreationTemplatesCommand,GetAccountSettingCommand:GetAccountSettingCommand,GetAuthorizationTokenCommand:GetAuthorizationTokenCommand,GetDownloadUrlForLayerCommand:GetDownloadUrlForLayerCommand,GetLifecyclePolicyCommand:GetLifecyclePolicyCommand,GetLifecyclePolicyPreviewCommand:GetLifecyclePolicyPreviewCommand,GetRegistryPolicyCommand:GetRegistryPolicyCommand,GetRegistryScanningConfigurationCommand:GetRegistryScanningConfigurationCommand,GetRepositoryPolicyCommand:GetRepositoryPolicyCommand,GetSigningConfigurationCommand:GetSigningConfigurationCommand,InitiateLayerUploadCommand:InitiateLayerUploadCommand,ListImageReferrersCommand:ListImageReferrersCommand,ListImagesCommand:ListImagesCommand,ListPullTimeUpdateExclusionsCommand:ListPullTimeUpdateExclusionsCommand,ListTagsForResourceCommand:ListTagsForResourceCommand,PutAccountSettingCommand:PutAccountSettingCommand,PutImageCommand:PutImageCommand,PutImageScanningConfigurationCommand:PutImageScanningConfigurationCommand,PutImageTagMutabilityCommand:PutImageTagMutabilityCommand,PutLifecyclePolicyCommand:PutLifecyclePolicyCommand,PutRegistryPolicyCommand:PutRegistryPolicyCommand,PutRegistryScanningConfigurationCommand:PutRegistryScanningConfigurationCommand,PutReplicationConfigurationCommand:PutReplicationConfigurationCommand,PutSigningConfigurationCommand:PutSigningConfigurationCommand,RegisterPullTimeUpdateExclusionCommand:RegisterPullTimeUpdateExclusionCommand,SetRepositoryPolicyCommand:SetRepositoryPolicyCommand,StartImageScanCommand:StartImageScanCommand,StartLifecyclePolicyPreviewCommand:StartLifecyclePolicyPreviewCommand,TagResourceCommand:TagResourceCommand,UntagResourceCommand:UntagResourceCommand,UpdateImageStorageClassCommand:UpdateImageStorageClassCommand,UpdatePullThroughCacheRuleCommand:UpdatePullThroughCacheRuleCommand,UpdateRepositoryCreationTemplateCommand:UpdateRepositoryCreationTemplateCommand,UploadLayerPartCommand:UploadLayerPartCommand,ValidatePullThroughCacheRuleCommand:ValidatePullThroughCacheRuleCommand};const Ae={paginateDescribeImages:ie,paginateDescribeImageScanFindings:oe,paginateDescribePullThroughCacheRules:ae,paginateDescribeRepositories:ce,paginateDescribeRepositoryCreationTemplates:le,paginateGetLifecyclePolicyPreview:ue,paginateListImages:de};const me={waitUntilImageScanComplete:waitUntilImageScanComplete,waitUntilLifecyclePolicyPreviewComplete:waitUntilLifecyclePolicyPreviewComplete};class ECR extends ECRClient{}k.createAggregatedClient(pe,ECR,{paginators:Ae,waiters:me});const ge={InvalidLayerDigest:"InvalidLayerDigest",MissingLayerDigest:"MissingLayerDigest"};const he={ARCHIVED:"ARCHIVED",AVAILABLE:"AVAILABLE",UNAVAILABLE:"UNAVAILABLE"};const fe={ImageInaccessible:"ImageInaccessible",ImageNotFound:"ImageNotFound",ImageReferencedByManifestList:"ImageReferencedByManifestList",ImageTagDoesNotMatchDigest:"ImageTagDoesNotMatchDigest",InvalidImageDigest:"InvalidImageDigest",InvalidImageTag:"InvalidImageTag",KmsError:"KmsError",MissingDigestAndTag:"MissingDigestAndTag",UpstreamAccessDenied:"UpstreamAccessDenied",UpstreamTooManyRequests:"UpstreamTooManyRequests",UpstreamUnavailable:"UpstreamUnavailable"};const ye={REPOSITORY_NOT_FOUND:"REPOSITORY_NOT_FOUND"};const Ee={WILDCARD:"WILDCARD"};const Ce={CONTINUOUS_SCAN:"CONTINUOUS_SCAN",MANUAL:"MANUAL",SCAN_ON_PUSH:"SCAN_ON_PUSH"};const Ie={AzureContainerRegistry:"azure-container-registry",Chainguard:"chainguard",DockerHub:"docker-hub",Ecr:"ecr",EcrPublic:"ecr-public",GitHubContainerRegistry:"github-container-registry",GitLabContainerRegistry:"gitlab-container-registry",K8s:"k8s",Quay:"quay"};const be={AES256:"AES256",KMS:"KMS",KMS_DSSE:"KMS_DSSE"};const Se={IMMUTABLE:"IMMUTABLE",IMMUTABLE_WITH_EXCLUSION:"IMMUTABLE_WITH_EXCLUSION",MUTABLE:"MUTABLE",MUTABLE_WITH_EXCLUSION:"MUTABLE_WITH_EXCLUSION"};const Be={WILDCARD:"WILDCARD"};const we={CREATE_ON_PUSH:"CREATE_ON_PUSH",PULL_THROUGH_CACHE:"PULL_THROUGH_CACHE",REPLICATION:"REPLICATION"};const Re={WILDCARD_MATCH:"WILDCARD_MATCH"};const Ne={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const xe={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const Qe={ANY:"ANY",TAGGED:"TAGGED",UNTAGGED:"UNTAGGED"};const Te={CRITICAL:"CRITICAL",HIGH:"HIGH",INFORMATIONAL:"INFORMATIONAL",LOW:"LOW",MEDIUM:"MEDIUM",UNDEFINED:"UNDEFINED"};const ve={ACTIVE:"ACTIVE",COMPLETE:"COMPLETE",FAILED:"FAILED",FINDINGS_UNAVAILABLE:"FINDINGS_UNAVAILABLE",IMAGE_ARCHIVED:"IMAGE_ARCHIVED",IN_PROGRESS:"IN_PROGRESS",LIMIT_EXCEEDED:"LIMIT_EXCEEDED",PENDING:"PENDING",SCAN_ELIGIBILITY_EXPIRED:"SCAN_ELIGIBILITY_EXPIRED",UNSUPPORTED_IMAGE:"UNSUPPORTED_IMAGE"};const Pe={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const De={COMPLETE:"COMPLETE",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const ke={PREFIX_MATCH:"PREFIX_MATCH"};const _e={ARCHIVE:"ARCHIVE"};const Le={EXPIRE:"EXPIRE",TRANSITION:"TRANSITION"};const Oe={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};const Fe={COMPLETE:"COMPLETE",EXPIRED:"EXPIRED",FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS"};const Ue={BASIC:"BASIC",ENHANCED:"ENHANCED"};const Me={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ANY:"ANY",ARCHIVED:"ARCHIVED"};const He={ACTIVATING:"ACTIVATING",ACTIVE:"ACTIVE",ARCHIVED:"ARCHIVED"};const $e={ARCHIVE:"ARCHIVE",STANDARD:"STANDARD"};t.$Command=k.Command;t.__Client=k.Client;t.ECRServiceException=ne.ECRServiceException;t.ArtifactStatus=He;t.ArtifactStatusFilter=Me;t.BatchCheckLayerAvailabilityCommand=BatchCheckLayerAvailabilityCommand;t.BatchDeleteImageCommand=BatchDeleteImageCommand;t.BatchGetImageCommand=BatchGetImageCommand;t.BatchGetRepositoryScanningConfigurationCommand=BatchGetRepositoryScanningConfigurationCommand;t.CompleteLayerUploadCommand=CompleteLayerUploadCommand;t.CreatePullThroughCacheRuleCommand=CreatePullThroughCacheRuleCommand;t.CreateRepositoryCommand=CreateRepositoryCommand;t.CreateRepositoryCreationTemplateCommand=CreateRepositoryCreationTemplateCommand;t.DeleteLifecyclePolicyCommand=DeleteLifecyclePolicyCommand;t.DeletePullThroughCacheRuleCommand=DeletePullThroughCacheRuleCommand;t.DeleteRegistryPolicyCommand=DeleteRegistryPolicyCommand;t.DeleteRepositoryCommand=DeleteRepositoryCommand;t.DeleteRepositoryCreationTemplateCommand=DeleteRepositoryCreationTemplateCommand;t.DeleteRepositoryPolicyCommand=DeleteRepositoryPolicyCommand;t.DeleteSigningConfigurationCommand=DeleteSigningConfigurationCommand;t.DeregisterPullTimeUpdateExclusionCommand=DeregisterPullTimeUpdateExclusionCommand;t.DescribeImageReplicationStatusCommand=DescribeImageReplicationStatusCommand;t.DescribeImageScanFindingsCommand=DescribeImageScanFindingsCommand;t.DescribeImageSigningStatusCommand=DescribeImageSigningStatusCommand;t.DescribeImagesCommand=DescribeImagesCommand;t.DescribePullThroughCacheRulesCommand=DescribePullThroughCacheRulesCommand;t.DescribeRegistryCommand=DescribeRegistryCommand;t.DescribeRepositoriesCommand=DescribeRepositoriesCommand;t.DescribeRepositoryCreationTemplatesCommand=DescribeRepositoryCreationTemplatesCommand;t.ECR=ECR;t.ECRClient=ECRClient;t.EncryptionType=be;t.FindingSeverity=Te;t.GetAccountSettingCommand=GetAccountSettingCommand;t.GetAuthorizationTokenCommand=GetAuthorizationTokenCommand;t.GetDownloadUrlForLayerCommand=GetDownloadUrlForLayerCommand;t.GetLifecyclePolicyCommand=GetLifecyclePolicyCommand;t.GetLifecyclePolicyPreviewCommand=GetLifecyclePolicyPreviewCommand;t.GetRegistryPolicyCommand=GetRegistryPolicyCommand;t.GetRegistryScanningConfigurationCommand=GetRegistryScanningConfigurationCommand;t.GetRepositoryPolicyCommand=GetRepositoryPolicyCommand;t.GetSigningConfigurationCommand=GetSigningConfigurationCommand;t.ImageActionType=Le;t.ImageFailureCode=fe;t.ImageStatus=Pe;t.ImageStatusFilter=xe;t.ImageTagMutability=Se;t.ImageTagMutabilityExclusionFilterType=Be;t.InitiateLayerUploadCommand=InitiateLayerUploadCommand;t.LayerAvailability=he;t.LayerFailureCode=ge;t.LifecyclePolicyPreviewStatus=Fe;t.LifecyclePolicyStorageClass=Oe;t.LifecyclePolicyTargetStorageClass=_e;t.ListImageReferrersCommand=ListImageReferrersCommand;t.ListImagesCommand=ListImagesCommand;t.ListPullTimeUpdateExclusionsCommand=ListPullTimeUpdateExclusionsCommand;t.ListTagsForResourceCommand=ListTagsForResourceCommand;t.PutAccountSettingCommand=PutAccountSettingCommand;t.PutImageCommand=PutImageCommand;t.PutImageScanningConfigurationCommand=PutImageScanningConfigurationCommand;t.PutImageTagMutabilityCommand=PutImageTagMutabilityCommand;t.PutLifecyclePolicyCommand=PutLifecyclePolicyCommand;t.PutRegistryPolicyCommand=PutRegistryPolicyCommand;t.PutRegistryScanningConfigurationCommand=PutRegistryScanningConfigurationCommand;t.PutReplicationConfigurationCommand=PutReplicationConfigurationCommand;t.PutSigningConfigurationCommand=PutSigningConfigurationCommand;t.RCTAppliedFor=we;t.RegisterPullTimeUpdateExclusionCommand=RegisterPullTimeUpdateExclusionCommand;t.ReplicationStatus=Ne;t.RepositoryFilterType=ke;t.ScanFrequency=Ce;t.ScanStatus=ve;t.ScanType=Ue;t.ScanningConfigurationFailureCode=ye;t.ScanningRepositoryFilterType=Ee;t.SetRepositoryPolicyCommand=SetRepositoryPolicyCommand;t.SigningRepositoryFilterType=Re;t.SigningStatus=De;t.StartImageScanCommand=StartImageScanCommand;t.StartLifecyclePolicyPreviewCommand=StartLifecyclePolicyPreviewCommand;t.TagResourceCommand=TagResourceCommand;t.TagStatus=Qe;t.TargetStorageClass=$e;t.UntagResourceCommand=UntagResourceCommand;t.UpdateImageStorageClassCommand=UpdateImageStorageClassCommand;t.UpdatePullThroughCacheRuleCommand=UpdatePullThroughCacheRuleCommand;t.UpdateRepositoryCreationTemplateCommand=UpdateRepositoryCreationTemplateCommand;t.UploadLayerPartCommand=UploadLayerPartCommand;t.UpstreamRegistry=Ie;t.ValidatePullThroughCacheRuleCommand=ValidatePullThroughCacheRuleCommand;t.paginateDescribeImageScanFindings=oe;t.paginateDescribeImages=ie;t.paginateDescribePullThroughCacheRules=ae;t.paginateDescribeRepositories=ce;t.paginateDescribeRepositoryCreationTemplates=le;t.paginateGetLifecyclePolicyPreview=ue;t.paginateListImages=de;t.waitForImageScanComplete=waitForImageScanComplete;t.waitForLifecyclePolicyPreviewComplete=waitForLifecyclePolicyPreviewComplete;t.waitUntilImageScanComplete=waitUntilImageScanComplete;t.waitUntilLifecyclePolicyPreviewComplete=waitUntilLifecyclePolicyPreviewComplete;Object.prototype.hasOwnProperty.call(ee,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:ee["__proto__"]});Object.keys(ee).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=ee[e]}));Object.prototype.hasOwnProperty.call(re,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:re["__proto__"]});Object.keys(re).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=re[e]}))},5502:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ECRServiceException=t.__ServiceException=void 0;const o=n(1411);Object.defineProperty(t,"__ServiceException",{enumerable:true,get:function(){return o.ServiceException}});class ECRServiceException extends o.ServiceException{constructor(e){super(e);Object.setPrototypeOf(this,ECRServiceException.prototype)}}t.ECRServiceException=ECRServiceException},4901:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.InvalidLayerPartException=t.ImageStorageClassUpdateNotSupportedException=t.LifecyclePolicyPreviewInProgressException=t.UnsupportedImageTypeException=t.ImageArchivedException=t.ExclusionAlreadyExistsException=t.BlockedByOrganizationPolicyException=t.ReferencedImagesNotFoundException=t.ImageTagAlreadyExistsException=t.ImageDigestDoesNotMatchException=t.ImageAlreadyExistsException=t.LifecyclePolicyPreviewNotFoundException=t.UnableToGetUpstreamLayerException=t.LayersNotFoundException=t.LayerInaccessibleException=t.ScanNotFoundException=t.ImageNotFoundException=t.ExclusionNotFoundException=t.SigningConfigurationNotFoundException=t.RepositoryPolicyNotFoundException=t.TemplateNotFoundException=t.RepositoryNotEmptyException=t.RegistryPolicyNotFoundException=t.PullThroughCacheRuleNotFoundException=t.LifecyclePolicyNotFoundException=t.TemplateAlreadyExistsException=t.TooManyTagsException=t.RepositoryAlreadyExistsException=t.InvalidTagParameterException=t.UnsupportedUpstreamRegistryException=t.UnableToDecryptSecretValueException=t.UnableToAccessSecretException=t.SecretNotFoundException=t.PullThroughCacheRuleAlreadyExistsException=t.UploadNotFoundException=t.LayerPartTooSmallException=t.LayerAlreadyExistsException=t.KmsException=t.InvalidLayerException=t.EmptyUploadException=t.ValidationException=t.UnableToGetUpstreamImageException=t.LimitExceededException=t.ServerException=t.RepositoryNotFoundException=t.InvalidParameterException=void 0;const o=n(5502);class InvalidParameterException extends o.ECRServiceException{name="InvalidParameterException";$fault="client";constructor(e){super({name:"InvalidParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidParameterException.prototype)}}t.InvalidParameterException=InvalidParameterException;class RepositoryNotFoundException extends o.ECRServiceException{name="RepositoryNotFoundException";$fault="client";constructor(e){super({name:"RepositoryNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotFoundException.prototype)}}t.RepositoryNotFoundException=RepositoryNotFoundException;class ServerException extends o.ECRServiceException{name="ServerException";$fault="server";constructor(e){super({name:"ServerException",$fault:"server",...e});Object.setPrototypeOf(this,ServerException.prototype)}}t.ServerException=ServerException;class LimitExceededException extends o.ECRServiceException{name="LimitExceededException";$fault="client";constructor(e){super({name:"LimitExceededException",$fault:"client",...e});Object.setPrototypeOf(this,LimitExceededException.prototype)}}t.LimitExceededException=LimitExceededException;class UnableToGetUpstreamImageException extends o.ECRServiceException{name="UnableToGetUpstreamImageException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamImageException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamImageException.prototype)}}t.UnableToGetUpstreamImageException=UnableToGetUpstreamImageException;class ValidationException extends o.ECRServiceException{name="ValidationException";$fault="client";constructor(e){super({name:"ValidationException",$fault:"client",...e});Object.setPrototypeOf(this,ValidationException.prototype)}}t.ValidationException=ValidationException;class EmptyUploadException extends o.ECRServiceException{name="EmptyUploadException";$fault="client";constructor(e){super({name:"EmptyUploadException",$fault:"client",...e});Object.setPrototypeOf(this,EmptyUploadException.prototype)}}t.EmptyUploadException=EmptyUploadException;class InvalidLayerException extends o.ECRServiceException{name="InvalidLayerException";$fault="client";constructor(e){super({name:"InvalidLayerException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerException.prototype)}}t.InvalidLayerException=InvalidLayerException;class KmsException extends o.ECRServiceException{name="KmsException";$fault="client";kmsError;constructor(e){super({name:"KmsException",$fault:"client",...e});Object.setPrototypeOf(this,KmsException.prototype);this.kmsError=e.kmsError}}t.KmsException=KmsException;class LayerAlreadyExistsException extends o.ECRServiceException{name="LayerAlreadyExistsException";$fault="client";constructor(e){super({name:"LayerAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,LayerAlreadyExistsException.prototype)}}t.LayerAlreadyExistsException=LayerAlreadyExistsException;class LayerPartTooSmallException extends o.ECRServiceException{name="LayerPartTooSmallException";$fault="client";constructor(e){super({name:"LayerPartTooSmallException",$fault:"client",...e});Object.setPrototypeOf(this,LayerPartTooSmallException.prototype)}}t.LayerPartTooSmallException=LayerPartTooSmallException;class UploadNotFoundException extends o.ECRServiceException{name="UploadNotFoundException";$fault="client";constructor(e){super({name:"UploadNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,UploadNotFoundException.prototype)}}t.UploadNotFoundException=UploadNotFoundException;class PullThroughCacheRuleAlreadyExistsException extends o.ECRServiceException{name="PullThroughCacheRuleAlreadyExistsException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleAlreadyExistsException.prototype)}}t.PullThroughCacheRuleAlreadyExistsException=PullThroughCacheRuleAlreadyExistsException;class SecretNotFoundException extends o.ECRServiceException{name="SecretNotFoundException";$fault="client";constructor(e){super({name:"SecretNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SecretNotFoundException.prototype)}}t.SecretNotFoundException=SecretNotFoundException;class UnableToAccessSecretException extends o.ECRServiceException{name="UnableToAccessSecretException";$fault="client";constructor(e){super({name:"UnableToAccessSecretException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToAccessSecretException.prototype)}}t.UnableToAccessSecretException=UnableToAccessSecretException;class UnableToDecryptSecretValueException extends o.ECRServiceException{name="UnableToDecryptSecretValueException";$fault="client";constructor(e){super({name:"UnableToDecryptSecretValueException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToDecryptSecretValueException.prototype)}}t.UnableToDecryptSecretValueException=UnableToDecryptSecretValueException;class UnsupportedUpstreamRegistryException extends o.ECRServiceException{name="UnsupportedUpstreamRegistryException";$fault="client";constructor(e){super({name:"UnsupportedUpstreamRegistryException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedUpstreamRegistryException.prototype)}}t.UnsupportedUpstreamRegistryException=UnsupportedUpstreamRegistryException;class InvalidTagParameterException extends o.ECRServiceException{name="InvalidTagParameterException";$fault="client";constructor(e){super({name:"InvalidTagParameterException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidTagParameterException.prototype)}}t.InvalidTagParameterException=InvalidTagParameterException;class RepositoryAlreadyExistsException extends o.ECRServiceException{name="RepositoryAlreadyExistsException";$fault="client";constructor(e){super({name:"RepositoryAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryAlreadyExistsException.prototype)}}t.RepositoryAlreadyExistsException=RepositoryAlreadyExistsException;class TooManyTagsException extends o.ECRServiceException{name="TooManyTagsException";$fault="client";constructor(e){super({name:"TooManyTagsException",$fault:"client",...e});Object.setPrototypeOf(this,TooManyTagsException.prototype)}}t.TooManyTagsException=TooManyTagsException;class TemplateAlreadyExistsException extends o.ECRServiceException{name="TemplateAlreadyExistsException";$fault="client";constructor(e){super({name:"TemplateAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateAlreadyExistsException.prototype)}}t.TemplateAlreadyExistsException=TemplateAlreadyExistsException;class LifecyclePolicyNotFoundException extends o.ECRServiceException{name="LifecyclePolicyNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyNotFoundException.prototype)}}t.LifecyclePolicyNotFoundException=LifecyclePolicyNotFoundException;class PullThroughCacheRuleNotFoundException extends o.ECRServiceException{name="PullThroughCacheRuleNotFoundException";$fault="client";constructor(e){super({name:"PullThroughCacheRuleNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,PullThroughCacheRuleNotFoundException.prototype)}}t.PullThroughCacheRuleNotFoundException=PullThroughCacheRuleNotFoundException;class RegistryPolicyNotFoundException extends o.ECRServiceException{name="RegistryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RegistryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RegistryPolicyNotFoundException.prototype)}}t.RegistryPolicyNotFoundException=RegistryPolicyNotFoundException;class RepositoryNotEmptyException extends o.ECRServiceException{name="RepositoryNotEmptyException";$fault="client";constructor(e){super({name:"RepositoryNotEmptyException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryNotEmptyException.prototype)}}t.RepositoryNotEmptyException=RepositoryNotEmptyException;class TemplateNotFoundException extends o.ECRServiceException{name="TemplateNotFoundException";$fault="client";constructor(e){super({name:"TemplateNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,TemplateNotFoundException.prototype)}}t.TemplateNotFoundException=TemplateNotFoundException;class RepositoryPolicyNotFoundException extends o.ECRServiceException{name="RepositoryPolicyNotFoundException";$fault="client";constructor(e){super({name:"RepositoryPolicyNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,RepositoryPolicyNotFoundException.prototype)}}t.RepositoryPolicyNotFoundException=RepositoryPolicyNotFoundException;class SigningConfigurationNotFoundException extends o.ECRServiceException{name="SigningConfigurationNotFoundException";$fault="client";constructor(e){super({name:"SigningConfigurationNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,SigningConfigurationNotFoundException.prototype)}}t.SigningConfigurationNotFoundException=SigningConfigurationNotFoundException;class ExclusionNotFoundException extends o.ECRServiceException{name="ExclusionNotFoundException";$fault="client";constructor(e){super({name:"ExclusionNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionNotFoundException.prototype)}}t.ExclusionNotFoundException=ExclusionNotFoundException;class ImageNotFoundException extends o.ECRServiceException{name="ImageNotFoundException";$fault="client";constructor(e){super({name:"ImageNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ImageNotFoundException.prototype)}}t.ImageNotFoundException=ImageNotFoundException;class ScanNotFoundException extends o.ECRServiceException{name="ScanNotFoundException";$fault="client";constructor(e){super({name:"ScanNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ScanNotFoundException.prototype)}}t.ScanNotFoundException=ScanNotFoundException;class LayerInaccessibleException extends o.ECRServiceException{name="LayerInaccessibleException";$fault="client";constructor(e){super({name:"LayerInaccessibleException",$fault:"client",...e});Object.setPrototypeOf(this,LayerInaccessibleException.prototype)}}t.LayerInaccessibleException=LayerInaccessibleException;class LayersNotFoundException extends o.ECRServiceException{name="LayersNotFoundException";$fault="client";constructor(e){super({name:"LayersNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LayersNotFoundException.prototype)}}t.LayersNotFoundException=LayersNotFoundException;class UnableToGetUpstreamLayerException extends o.ECRServiceException{name="UnableToGetUpstreamLayerException";$fault="client";constructor(e){super({name:"UnableToGetUpstreamLayerException",$fault:"client",...e});Object.setPrototypeOf(this,UnableToGetUpstreamLayerException.prototype)}}t.UnableToGetUpstreamLayerException=UnableToGetUpstreamLayerException;class LifecyclePolicyPreviewNotFoundException extends o.ECRServiceException{name="LifecyclePolicyPreviewNotFoundException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewNotFoundException.prototype)}}t.LifecyclePolicyPreviewNotFoundException=LifecyclePolicyPreviewNotFoundException;class ImageAlreadyExistsException extends o.ECRServiceException{name="ImageAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageAlreadyExistsException.prototype)}}t.ImageAlreadyExistsException=ImageAlreadyExistsException;class ImageDigestDoesNotMatchException extends o.ECRServiceException{name="ImageDigestDoesNotMatchException";$fault="client";constructor(e){super({name:"ImageDigestDoesNotMatchException",$fault:"client",...e});Object.setPrototypeOf(this,ImageDigestDoesNotMatchException.prototype)}}t.ImageDigestDoesNotMatchException=ImageDigestDoesNotMatchException;class ImageTagAlreadyExistsException extends o.ECRServiceException{name="ImageTagAlreadyExistsException";$fault="client";constructor(e){super({name:"ImageTagAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ImageTagAlreadyExistsException.prototype)}}t.ImageTagAlreadyExistsException=ImageTagAlreadyExistsException;class ReferencedImagesNotFoundException extends o.ECRServiceException{name="ReferencedImagesNotFoundException";$fault="client";constructor(e){super({name:"ReferencedImagesNotFoundException",$fault:"client",...e});Object.setPrototypeOf(this,ReferencedImagesNotFoundException.prototype)}}t.ReferencedImagesNotFoundException=ReferencedImagesNotFoundException;class BlockedByOrganizationPolicyException extends o.ECRServiceException{name="BlockedByOrganizationPolicyException";$fault="client";constructor(e){super({name:"BlockedByOrganizationPolicyException",$fault:"client",...e});Object.setPrototypeOf(this,BlockedByOrganizationPolicyException.prototype)}}t.BlockedByOrganizationPolicyException=BlockedByOrganizationPolicyException;class ExclusionAlreadyExistsException extends o.ECRServiceException{name="ExclusionAlreadyExistsException";$fault="client";constructor(e){super({name:"ExclusionAlreadyExistsException",$fault:"client",...e});Object.setPrototypeOf(this,ExclusionAlreadyExistsException.prototype)}}t.ExclusionAlreadyExistsException=ExclusionAlreadyExistsException;class ImageArchivedException extends o.ECRServiceException{name="ImageArchivedException";$fault="client";constructor(e){super({name:"ImageArchivedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageArchivedException.prototype)}}t.ImageArchivedException=ImageArchivedException;class UnsupportedImageTypeException extends o.ECRServiceException{name="UnsupportedImageTypeException";$fault="client";constructor(e){super({name:"UnsupportedImageTypeException",$fault:"client",...e});Object.setPrototypeOf(this,UnsupportedImageTypeException.prototype)}}t.UnsupportedImageTypeException=UnsupportedImageTypeException;class LifecyclePolicyPreviewInProgressException extends o.ECRServiceException{name="LifecyclePolicyPreviewInProgressException";$fault="client";constructor(e){super({name:"LifecyclePolicyPreviewInProgressException",$fault:"client",...e});Object.setPrototypeOf(this,LifecyclePolicyPreviewInProgressException.prototype)}}t.LifecyclePolicyPreviewInProgressException=LifecyclePolicyPreviewInProgressException;class ImageStorageClassUpdateNotSupportedException extends o.ECRServiceException{name="ImageStorageClassUpdateNotSupportedException";$fault="client";constructor(e){super({name:"ImageStorageClassUpdateNotSupportedException",$fault:"client",...e});Object.setPrototypeOf(this,ImageStorageClassUpdateNotSupportedException.prototype)}}t.ImageStorageClassUpdateNotSupportedException=ImageStorageClassUpdateNotSupportedException;class InvalidLayerPartException extends o.ECRServiceException{name="InvalidLayerPartException";$fault="client";registryId;repositoryName;uploadId;lastValidByteReceived;constructor(e){super({name:"InvalidLayerPartException",$fault:"client",...e});Object.setPrototypeOf(this,InvalidLayerPartException.prototype);this.registryId=e.registryId;this.repositoryName=e.repositoryName;this.uploadId=e.uploadId;this.lastValidByteReceived=e.lastValidByteReceived}}t.InvalidLayerPartException=InvalidLayerPartException},3107:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(1860);const i=o.__importDefault(n(121));const a=n(5152);const d=n(7523);const m=n(5861);const h=n(1656);const f=n(9316);const C=n(2711);const P=n(9618);const D=n(5704);const k=n(1279);const L=n(1411);const F=n(3638);const q=n(673);const V=n(5518);const ee=n(9344);const getRuntimeConfig=e=>{(0,L.emitWarningIfUnsupportedVersion)(process.version);const t=(0,q.resolveDefaultsModeConfig)(e);const defaultConfigProvider=()=>t().then(L.loadConfigsForDefaultMode);const n=(0,ee.getRuntimeConfig)(e);(0,a.emitWarningIfUnsupportedVersion)(process.version);const o={profile:e?.profile,logger:n.logger};return{...n,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,D.loadConfig)(d.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,o),bodyLengthChecker:e?.bodyLengthChecker??F.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??m.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,h.createDefaultUserAgentProvider)({serviceId:n.serviceId,clientVersion:i.default.version}),maxAttempts:e?.maxAttempts??(0,D.loadConfig)(P.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,D.loadConfig)(f.NODE_REGION_CONFIG_OPTIONS,{...f.NODE_REGION_CONFIG_FILE_OPTIONS,...o}),requestHandler:k.NodeHttpHandler.create(e?.requestHandler??defaultConfigProvider),retryMode:e?.retryMode??(0,D.loadConfig)({...P.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await defaultConfigProvider()).retryMode||V.DEFAULT_RETRY_MODE},e),sha256:e?.sha256??C.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??k.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,D.loadConfig)(f.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,o),useFipsEndpoint:e?.useFipsEndpoint??(0,D.loadConfig)(f.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,o),userAgentAppId:e?.userAgentAppId??(0,D.loadConfig)(h.NODE_APP_ID_CONFIG_OPTIONS,o)}};t.getRuntimeConfig=getRuntimeConfig},9344:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getRuntimeConfig=void 0;const o=n(7523);const i=n(7288);const a=n(1411);const d=n(4494);const m=n(8385);const h=n(1577);const f=n(3218);const C=n(3628);const P=n(5809);const getRuntimeConfig=e=>({apiVersion:"2015-09-21",base64Decoder:e?.base64Decoder??m.fromBase64,base64Encoder:e?.base64Encoder??m.toBase64,disableHostPrefix:e?.disableHostPrefix??false,endpointProvider:e?.endpointProvider??C.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??f.defaultECRHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:e=>e.getIdentityProvider("aws.auth#sigv4"),signer:new o.AwsSdkSigV4Signer}],logger:e?.logger??new a.NoOpLogger,protocol:e?.protocol??i.AwsJson1_1Protocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ecr",errorTypeRegistries:P.errorTypeRegistries,xmlNamespace:"http://ecr.amazonaws.com/doc/2015-09-21/",version:"2015-09-21",serviceTarget:"AmazonEC2ContainerRegistry_V20150921"},serviceId:e?.serviceId??"ECR",urlParser:e?.urlParser??d.parseUrl,utf8Decoder:e?.utf8Decoder??h.fromUtf8,utf8Encoder:e?.utf8Encoder??h.toUtf8});t.getRuntimeConfig=getRuntimeConfig},5809:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.AuthorizationData$=t.Attribute$=t.errorTypeRegistries=t.ValidationException$=t.UploadNotFoundException$=t.UnsupportedUpstreamRegistryException$=t.UnsupportedImageTypeException$=t.UnableToGetUpstreamLayerException$=t.UnableToGetUpstreamImageException$=t.UnableToDecryptSecretValueException$=t.UnableToAccessSecretException$=t.TooManyTagsException$=t.TemplateNotFoundException$=t.TemplateAlreadyExistsException$=t.SigningConfigurationNotFoundException$=t.ServerException$=t.SecretNotFoundException$=t.ScanNotFoundException$=t.RepositoryPolicyNotFoundException$=t.RepositoryNotFoundException$=t.RepositoryNotEmptyException$=t.RepositoryAlreadyExistsException$=t.RegistryPolicyNotFoundException$=t.ReferencedImagesNotFoundException$=t.PullThroughCacheRuleNotFoundException$=t.PullThroughCacheRuleAlreadyExistsException$=t.LimitExceededException$=t.LifecyclePolicyPreviewNotFoundException$=t.LifecyclePolicyPreviewInProgressException$=t.LifecyclePolicyNotFoundException$=t.LayersNotFoundException$=t.LayerPartTooSmallException$=t.LayerInaccessibleException$=t.LayerAlreadyExistsException$=t.KmsException$=t.InvalidTagParameterException$=t.InvalidParameterException$=t.InvalidLayerPartException$=t.InvalidLayerException$=t.ImageTagAlreadyExistsException$=t.ImageStorageClassUpdateNotSupportedException$=t.ImageNotFoundException$=t.ImageDigestDoesNotMatchException$=t.ImageArchivedException$=t.ImageAlreadyExistsException$=t.ExclusionNotFoundException$=t.ExclusionAlreadyExistsException$=t.EmptyUploadException$=t.BlockedByOrganizationPolicyException$=t.ECRServiceException$=void 0;t.DescribeRepositoriesRequest$=t.DescribeRegistryResponse$=t.DescribeRegistryRequest$=t.DescribePullThroughCacheRulesResponse$=t.DescribePullThroughCacheRulesRequest$=t.DescribeImagesResponse$=t.DescribeImagesRequest$=t.DescribeImageSigningStatusResponse$=t.DescribeImageSigningStatusRequest$=t.DescribeImagesFilter$=t.DescribeImageScanFindingsResponse$=t.DescribeImageScanFindingsRequest$=t.DescribeImageReplicationStatusResponse$=t.DescribeImageReplicationStatusRequest$=t.DeregisterPullTimeUpdateExclusionResponse$=t.DeregisterPullTimeUpdateExclusionRequest$=t.DeleteSigningConfigurationResponse$=t.DeleteSigningConfigurationRequest$=t.DeleteRepositoryResponse$=t.DeleteRepositoryRequest$=t.DeleteRepositoryPolicyResponse$=t.DeleteRepositoryPolicyRequest$=t.DeleteRepositoryCreationTemplateResponse$=t.DeleteRepositoryCreationTemplateRequest$=t.DeleteRegistryPolicyResponse$=t.DeleteRegistryPolicyRequest$=t.DeletePullThroughCacheRuleResponse$=t.DeletePullThroughCacheRuleRequest$=t.DeleteLifecyclePolicyResponse$=t.DeleteLifecyclePolicyRequest$=t.CvssScoreDetails$=t.CvssScoreAdjustment$=t.CvssScore$=t.CreateRepositoryResponse$=t.CreateRepositoryRequest$=t.CreateRepositoryCreationTemplateResponse$=t.CreateRepositoryCreationTemplateRequest$=t.CreatePullThroughCacheRuleResponse$=t.CreatePullThroughCacheRuleRequest$=t.CompleteLayerUploadResponse$=t.CompleteLayerUploadRequest$=t.BatchGetRepositoryScanningConfigurationResponse$=t.BatchGetRepositoryScanningConfigurationRequest$=t.BatchGetImageResponse$=t.BatchGetImageRequest$=t.BatchDeleteImageResponse$=t.BatchDeleteImageRequest$=t.BatchCheckLayerAvailabilityResponse$=t.BatchCheckLayerAvailabilityRequest$=t.AwsEcrContainerImageDetails$=void 0;t.ListImagesRequest$=t.ListImagesFilter$=t.ListImageReferrersResponse$=t.ListImageReferrersRequest$=t.ListImageReferrersFilter$=t.LifecyclePolicyRuleAction$=t.LifecyclePolicyPreviewSummary$=t.LifecyclePolicyPreviewResult$=t.LifecyclePolicyPreviewFilter$=t.LayerFailure$=t.Layer$=t.InitiateLayerUploadResponse$=t.InitiateLayerUploadRequest$=t.ImageTagMutabilityExclusionFilter$=t.ImageSigningStatus$=t.ImageScanStatus$=t.ImageScanningConfiguration$=t.ImageScanFindingsSummary$=t.ImageScanFindings$=t.ImageScanFinding$=t.ImageReplicationStatus$=t.ImageReferrer$=t.ImageIdentifier$=t.ImageFailure$=t.ImageDetail$=t.Image$=t.GetSigningConfigurationResponse$=t.GetSigningConfigurationRequest$=t.GetRepositoryPolicyResponse$=t.GetRepositoryPolicyRequest$=t.GetRegistryScanningConfigurationResponse$=t.GetRegistryScanningConfigurationRequest$=t.GetRegistryPolicyResponse$=t.GetRegistryPolicyRequest$=t.GetLifecyclePolicyResponse$=t.GetLifecyclePolicyRequest$=t.GetLifecyclePolicyPreviewResponse$=t.GetLifecyclePolicyPreviewRequest$=t.GetDownloadUrlForLayerResponse$=t.GetDownloadUrlForLayerRequest$=t.GetAuthorizationTokenResponse$=t.GetAuthorizationTokenRequest$=t.GetAccountSettingResponse$=t.GetAccountSettingRequest$=t.EnhancedImageScanFinding$=t.EncryptionConfigurationForRepositoryCreationTemplate$=t.EncryptionConfiguration$=t.DescribeRepositoryCreationTemplatesResponse$=t.DescribeRepositoryCreationTemplatesRequest$=t.DescribeRepositoriesResponse$=void 0;t.StartImageScanResponse$=t.StartImageScanRequest$=t.SigningRule$=t.SigningRepositoryFilter$=t.SigningConfiguration$=t.SetRepositoryPolicyResponse$=t.SetRepositoryPolicyRequest$=t.ScoreDetails$=t.ScanningRepositoryFilter$=t.ResourceDetails$=t.Resource$=t.RepositoryScanningConfigurationFailure$=t.RepositoryScanningConfiguration$=t.RepositoryFilter$=t.RepositoryCreationTemplate$=t.Repository$=t.ReplicationRule$=t.ReplicationDestination$=t.ReplicationConfiguration$=t.Remediation$=t.RegistryScanningRule$=t.RegistryScanningConfiguration$=t.RegisterPullTimeUpdateExclusionResponse$=t.RegisterPullTimeUpdateExclusionRequest$=t.Recommendation$=t.PutSigningConfigurationResponse$=t.PutSigningConfigurationRequest$=t.PutReplicationConfigurationResponse$=t.PutReplicationConfigurationRequest$=t.PutRegistryScanningConfigurationResponse$=t.PutRegistryScanningConfigurationRequest$=t.PutRegistryPolicyResponse$=t.PutRegistryPolicyRequest$=t.PutLifecyclePolicyResponse$=t.PutLifecyclePolicyRequest$=t.PutImageTagMutabilityResponse$=t.PutImageTagMutabilityRequest$=t.PutImageScanningConfigurationResponse$=t.PutImageScanningConfigurationRequest$=t.PutImageResponse$=t.PutImageRequest$=t.PutAccountSettingResponse$=t.PutAccountSettingRequest$=t.PullThroughCacheRule$=t.PackageVulnerabilityDetails$=t.ListTagsForResourceResponse$=t.ListTagsForResourceRequest$=t.ListPullTimeUpdateExclusionsResponse$=t.ListPullTimeUpdateExclusionsRequest$=t.ListImagesResponse$=void 0;t.GetRegistryPolicy$=t.GetLifecyclePolicyPreview$=t.GetLifecyclePolicy$=t.GetDownloadUrlForLayer$=t.GetAuthorizationToken$=t.GetAccountSetting$=t.DescribeRepositoryCreationTemplates$=t.DescribeRepositories$=t.DescribeRegistry$=t.DescribePullThroughCacheRules$=t.DescribeImageSigningStatus$=t.DescribeImageScanFindings$=t.DescribeImages$=t.DescribeImageReplicationStatus$=t.DeregisterPullTimeUpdateExclusion$=t.DeleteSigningConfiguration$=t.DeleteRepositoryPolicy$=t.DeleteRepositoryCreationTemplate$=t.DeleteRepository$=t.DeleteRegistryPolicy$=t.DeletePullThroughCacheRule$=t.DeleteLifecyclePolicy$=t.CreateRepositoryCreationTemplate$=t.CreateRepository$=t.CreatePullThroughCacheRule$=t.CompleteLayerUpload$=t.BatchGetRepositoryScanningConfiguration$=t.BatchGetImage$=t.BatchDeleteImage$=t.BatchCheckLayerAvailability$=t.VulnerablePackage$=t.ValidatePullThroughCacheRuleResponse$=t.ValidatePullThroughCacheRuleRequest$=t.UploadLayerPartResponse$=t.UploadLayerPartRequest$=t.UpdateRepositoryCreationTemplateResponse$=t.UpdateRepositoryCreationTemplateRequest$=t.UpdatePullThroughCacheRuleResponse$=t.UpdatePullThroughCacheRuleRequest$=t.UpdateImageStorageClassResponse$=t.UpdateImageStorageClassRequest$=t.UntagResourceResponse$=t.UntagResourceRequest$=t.TransitioningImageTotalCount$=t.TagResourceResponse$=t.TagResourceRequest$=t.Tag$=t.SubjectIdentifier$=t.StartLifecyclePolicyPreviewResponse$=t.StartLifecyclePolicyPreviewRequest$=void 0;t.ValidatePullThroughCacheRule$=t.UploadLayerPart$=t.UpdateRepositoryCreationTemplate$=t.UpdatePullThroughCacheRule$=t.UpdateImageStorageClass$=t.UntagResource$=t.TagResource$=t.StartLifecyclePolicyPreview$=t.StartImageScan$=t.SetRepositoryPolicy$=t.RegisterPullTimeUpdateExclusion$=t.PutSigningConfiguration$=t.PutReplicationConfiguration$=t.PutRegistryScanningConfiguration$=t.PutRegistryPolicy$=t.PutLifecyclePolicy$=t.PutImageTagMutability$=t.PutImageScanningConfiguration$=t.PutImage$=t.PutAccountSetting$=t.ListTagsForResource$=t.ListPullTimeUpdateExclusions$=t.ListImages$=t.ListImageReferrers$=t.InitiateLayerUpload$=t.GetSigningConfiguration$=t.GetRepositoryPolicy$=t.GetRegistryScanningConfiguration$=void 0;const o="Attribute";const i="AuthorizationData";const a="AuthorizationDataList";const d="AwsEcrContainerImageDetails";const m="AttributeList";const h="BlockedByOrganizationPolicyException";const f="BatchCheckLayerAvailability";const C="BatchCheckLayerAvailabilityRequest";const P="BatchCheckLayerAvailabilityResponse";const D="BatchDeleteImage";const k="BatchDeleteImageRequest";const L="BatchDeleteImageResponse";const F="BatchGetImage";const q="BatchGetImageRequest";const V="BatchGetImageResponse";const ee="BatchGetRepositoryScanningConfiguration";const te="BatchGetRepositoryScanningConfigurationRequest";const re="BatchGetRepositoryScanningConfigurationResponse";const ne="CompleteLayerUpload";const se="CompleteLayerUploadRequest";const oe="CompleteLayerUploadResponse";const ie="CreatePullThroughCacheRule";const ae="CreatePullThroughCacheRuleRequest";const ce="CreatePullThroughCacheRuleResponse";const le="CreateRepository";const ue="CreateRepositoryCreationTemplate";const de="CreateRepositoryCreationTemplateRequest";const pe="CreateRepositoryCreationTemplateResponse";const Ae="CreateRepositoryRequest";const me="CreateRepositoryResponse";const ge="CvssScore";const he="CvssScoreAdjustment";const fe="CvssScoreAdjustmentList";const ye="CvssScoreDetails";const Ee="CvssScoreList";const Ce="DescribeImages";const Ie="DescribeImagesFilter";const be="DescribeImagesRequest";const Se="DescribeImageReplicationStatus";const Be="DescribeImageReplicationStatusRequest";const we="DescribeImageReplicationStatusResponse";const Re="DescribeImagesResponse";const Ne="DescribeImageScanFindings";const xe="DescribeImageScanFindingsRequest";const Qe="DescribeImageScanFindingsResponse";const Te="DescribeImageSigningStatus";const ve="DescribeImageSigningStatusRequest";const Pe="DescribeImageSigningStatusResponse";const De="DeleteLifecyclePolicy";const ke="DeleteLifecyclePolicyRequest";const _e="DeleteLifecyclePolicyResponse";const Le="DeletePullThroughCacheRule";const Oe="DeletePullThroughCacheRuleRequest";const Fe="DeletePullThroughCacheRuleResponse";const Ue="DescribePullThroughCacheRulesRequest";const Me="DescribePullThroughCacheRulesResponse";const He="DescribePullThroughCacheRules";const $e="DeregisterPullTimeUpdateExclusion";const Ge="DeregisterPullTimeUpdateExclusionRequest";const qe="DeregisterPullTimeUpdateExclusionResponse";const ze="DeleteRepository";const Ve="DeleteRepositoryCreationTemplate";const je="DeleteRepositoryCreationTemplateRequest";const Ye="DeleteRepositoryCreationTemplateResponse";const Je="DescribeRepositoryCreationTemplatesRequest";const We="DescribeRepositoryCreationTemplatesResponse";const Ke="DescribeRepositoryCreationTemplates";const Xe="DeleteRegistryPolicy";const Ze="DeleteRegistryPolicyRequest";const ht="DeleteRegistryPolicyResponse";const It="DeleteRepositoryPolicyRequest";const Bt="DeleteRepositoryPolicyResponse";const Rt="DeleteRepositoryPolicy";const Qt="DeleteRepositoryRequest";const Pt="DeleteRepositoryResponse";const Dt="DescribeRegistryRequest";const kt="DescribeRegistryResponse";const _t="DescribeRepositoriesRequest";const Lt="DescribeRepositoriesResponse";const Ft="DescribeRegistry";const Ut="DescribeRepositories";const Mt="DeleteSigningConfiguration";const Ht="DeleteSigningConfigurationRequest";const $t="DeleteSigningConfigurationResponse";const Gt="ExclusionAlreadyExistsException";const qt="EncryptionConfiguration";const zt="EncryptionConfigurationForRepositoryCreationTemplate";const Vt="EnhancedImageScanFinding";const jt="EnhancedImageScanFindingList";const Yt="ExclusionNotFoundException";const Jt="EmptyUploadException";const Wt="GetAccountSetting";const Kt="GetAccountSettingRequest";const Xt="GetAccountSettingResponse";const Zt="GetAuthorizationToken";const er="GetAuthorizationTokenRequest";const tr="GetAuthorizationTokenResponse";const rr="GetDownloadUrlForLayer";const nr="GetDownloadUrlForLayerRequest";const sr="GetDownloadUrlForLayerResponse";const or="GetLifecyclePolicy";const ir="GetLifecyclePolicyPreview";const ar="GetLifecyclePolicyPreviewRequest";const cr="GetLifecyclePolicyPreviewResponse";const lr="GetLifecyclePolicyRequest";const ur="GetLifecyclePolicyResponse";const dr="GetRegistryPolicy";const pr="GetRegistryPolicyRequest";const Ar="GetRegistryPolicyResponse";const mr="GetRepositoryPolicyRequest";const gr="GetRepositoryPolicyResponse";const hr="GetRepositoryPolicy";const fr="GetRegistryScanningConfiguration";const yr="GetRegistryScanningConfigurationRequest";const Er="GetRegistryScanningConfigurationResponse";const Cr="GetSigningConfiguration";const Ir="GetSigningConfigurationRequest";const br="GetSigningConfigurationResponse";const Sr="Image";const Br="ImageArchivedException";const wr="ImageAlreadyExistsException";const Rr="ImageDetail";const Nr="ImageDigestDoesNotMatchException";const xr="ImageDetailList";const Qr="ImageFailure";const Tr="ImageFailureList";const vr="ImageIdentifier";const Pr="ImageIdentifierList";const Dr="ImageList";const kr="InvalidLayerException";const _r="InvalidLayerPartException";const Lr="InitiateLayerUpload";const Or="InitiateLayerUploadRequest";const Fr="InitiateLayerUploadResponse";const Ur="ImageNotFoundException";const Mr="InvalidParameterException";const Hr="ImageReferrer";const $r="ImageReferrerList";const Gr="ImageReplicationStatus";const qr="ImageReplicationStatusList";const zr="ImageScanningConfiguration";const Vr="ImageStorageClassUpdateNotSupportedException";const jr="ImageScanFinding";const Yr="ImageScanFindingList";const Jr="ImageScanFindingsSummary";const Wr="ImageScanFindings";const Kr="ImageScanStatus";const Xr="ImageSigningStatusList";const Zr="ImageSigningStatus";const en="ImageTagAlreadyExistsException";const tn="ImageTagMutabilityExclusionFilter";const rn="ImageTagMutabilityExclusionFilters";const nn="InvalidTagParameterException";const sn="Key";const on="KmsException";const an="Layer";const cn="LayerAlreadyExistsException";const ln="LimitExceededException";const un="LayerFailure";const dn="LayerFailureList";const pn="ListImages";const An="LayerInaccessibleException";const mn="ListImagesFilter";const gn="ListImagesRequest";const hn="ListImageReferrersFilter";const yn="ListImageReferrersRequest";const En="ListImageReferrersResponse";const Cn="ListImagesResponse";const In="ListImageReferrers";const bn="LayerList";const Sn="LayersNotFoundException";const Bn="LifecyclePolicyNotFoundException";const wn="LifecyclePolicyPreviewFilter";const Rn="LifecyclePolicyPreviewInProgressException";const Nn="LifecyclePolicyPreviewNotFoundException";const xn="LifecyclePolicyPreviewResult";const Qn="LifecyclePolicyPreviewResultList";const Tn="LifecyclePolicyPreviewSummary";const vn="LifecyclePolicyRuleAction";const Pn="LayerPartTooSmallException";const Dn="ListPullTimeUpdateExclusions";const kn="ListPullTimeUpdateExclusionsRequest";const _n="ListPullTimeUpdateExclusionsResponse";const Ln="ListTagsForResource";const On="ListTagsForResourceRequest";const Fn="ListTagsForResourceResponse";const Un="PutAccountSetting";const Mn="PutAccountSettingRequest";const Hn="PutAccountSettingResponse";const $n="PutImage";const Gn="PutImageRequest";const qn="PutImageResponse";const zn="PutImageScanningConfiguration";const Vn="PutImageScanningConfigurationRequest";const jn="PutImageScanningConfigurationResponse";const Yn="PutImageTagMutability";const Jn="PutImageTagMutabilityRequest";const Wn="PutImageTagMutabilityResponse";const Kn="PutLifecyclePolicy";const Xn="PutLifecyclePolicyRequest";const Zn="PutLifecyclePolicyResponse";const es="PutReplicationConfiguration";const ts="PutReplicationConfigurationRequest";const rs="PutReplicationConfigurationResponse";const ns="PutRegistryPolicy";const ss="PutRegistryPolicyRequest";const os="PutRegistryPolicyResponse";const as="PutRegistryScanningConfiguration";const cs="PutRegistryScanningConfigurationRequest";const ls="PutRegistryScanningConfigurationResponse";const us="PutSigningConfiguration";const ds="PutSigningConfigurationRequest";const ps="PutSigningConfigurationResponse";const As="PullThroughCacheRule";const ms="PullThroughCacheRuleAlreadyExistsException";const gs="PullThroughCacheRuleList";const hs="PullThroughCacheRuleNotFoundException";const fs="PackageVulnerabilityDetails";const ys="Recommendation";const Es="RepositoryAlreadyExistsException";const Cs="ReplicationConfiguration";const Is="RepositoryCreationTemplate";const bs="RepositoryCreationTemplateList";const Ss="ReplicationDestination";const Bs="ReplicationDestinationList";const ws="ResourceDetails";const Rs="RepositoryFilter";const Ns="RepositoryFilterList";const xs="ReferencedImagesNotFoundException";const Qs="RepositoryList";const Ts="ResourceList";const vs="RepositoryNotEmptyException";const Ps="RepositoryNotFoundException";const Ds="RegistryPolicyNotFoundException";const ks="RepositoryPolicyNotFoundException";const _s="RegisterPullTimeUpdateExclusion";const Ls="RegisterPullTimeUpdateExclusionRequest";const Os="RegisterPullTimeUpdateExclusionResponse";const Fs="ReplicationRule";const Us="ReplicationRuleList";const Ms="RegistryScanningConfiguration";const Hs="RepositoryScanningConfigurationFailure";const $s="RepositoryScanningConfigurationFailureList";const Gs="RepositoryScanningConfigurationList";const qs="RepositoryScanningConfiguration";const zs="RegistryScanningRule";const Vs="RegistryScanningRuleList";const js="Remediation";const Ys="Repository";const Js="Resource";const Ws="SigningConfiguration";const Ks="SigningConfigurationNotFoundException";const Xs="ScoreDetails";const Zs="ServerException";const eo="SubjectIdentifier";const to="StartImageScan";const ro="StartImageScanRequest";const no="StartImageScanResponse";const so="StartLifecyclePolicyPreview";const oo="StartLifecyclePolicyPreviewRequest";const io="StartLifecyclePolicyPreviewResponse";const ao="ScanNotFoundException";const co="SecretNotFoundException";const lo="SigningRule";const uo="ScanningRepositoryFilter";const po="ScanningRepositoryFilterList";const Ao="SigningRepositoryFilterList";const mo="SigningRepositoryFilter";const go="SigningRuleList";const ho="SetRepositoryPolicy";const fo="SetRepositoryPolicyRequest";const yo="SetRepositoryPolicyResponse";const Eo="Tag";const Co="TemplateAlreadyExistsException";const Io="TransitioningImageTotalCount";const bo="TransitioningImageTotalCounts";const So="TagList";const Bo="TooManyTagsException";const wo="TemplateNotFoundException";const Ro="TagResource";const No="TagResourceRequest";const xo="TagResourceResponse";const Qo="UpdateImageStorageClass";const To="UpdateImageStorageClassRequest";const vo="UpdateImageStorageClassResponse";const Po="UnsupportedImageTypeException";const Do="UploadLayerPart";const ko="UploadLayerPartRequest";const _o="UploadLayerPartResponse";const Lo="UploadNotFoundException";const Oo="UpdatePullThroughCacheRule";const Fo="UpdatePullThroughCacheRuleRequest";const Uo="UpdatePullThroughCacheRuleResponse";const Mo="UntagResource";const Ho="UpdateRepositoryCreationTemplate";const $o="UpdateRepositoryCreationTemplateRequest";const Go="UpdateRepositoryCreationTemplateResponse";const qo="UntagResourceRequest";const zo="UntagResourceResponse";const Vo="UnableToAccessSecretException";const jo="UnableToDecryptSecretValueException";const Yo="UnableToGetUpstreamImageException";const Jo="UnableToGetUpstreamLayerException";const Wo="UnsupportedUpstreamRegistryException";const Ko="Value";const Xo="ValidationException";const Zo="VulnerablePackage";const ei="VulnerablePackagesList";const ti="ValidatePullThroughCacheRule";const ri="ValidatePullThroughCacheRuleRequest";const ni="ValidatePullThroughCacheRuleResponse";const si="architecture";const oi="awsAccountId";const ii="authorizationData";const ai="awsEcrContainerImage";const ci="appliedFor";const li="acceptedMediaTypes";const ui="artifactMediaType";const di="appliedRulePriority";const pi="artifactStatus";const Ai="appliedScanFilters";const mi="authorizationToken";const gi="artifactType";const hi="artifactTypes";const fi="action";const yi="adjustments";const Ei="annotations";const Ci="arch";const Ii="attributes";const bi="author";const Si="baseScore";const Bi="client";const wi="credentialArn";const Ri="createdAt";const Ni="customRoleArn";const xi="cvss";const Qi="description";const Ti="downloadUrl";const vi="destinations";const Pi="details";const Di="digest";const ki="error";const _i="expiresAt";const Li="exploitAvailable";const Oi="encryptionConfiguration";const Fi="enhancedFindings";const Ui="expiringImageTotalCount";const Mi="ecrRepositoryPrefix";const Hi="ecrRepositoryPrefixes";const $i="encryptionType";const Gi="epoch";const qi="failures";const zi="findingArn";const Vi="fixAvailable";const ji="failureCode";const Yi="fixedInVersion";const Ji="firstObservedAt";const Wi="filePath";const Ki="failureReason";const Xi="findingSeverityCounts";const Zi="filterType";const ea="failure";const ta="filter";const ra="findings";const na="force";const sa="httpError";const oa="images";const ia="imageDetails";const aa="imageDigest";const ca="imageHash";const la="imageIds";const ua="imageId";const da="imageManifest";const pa="imageManifestMediaType";const Aa="imagePushedAt";const ma="imageStatus";const ga="imageScanningConfiguration";const ha="imageScanCompletedAt";const fa="imageScanFindings";const ya="imageScanFindingsSummary";const Ea="imageSizeInBytes";const Ca="imageScanStatus";const Ia="imageTags";const ba="imageTotalCount";const Sa="imageTagMutability";const Ba="imageTagMutabilityExclusionFilters";const wa="imageTag";const Ra="inUseCount";const Na="isValid";const xa="id";const Qa="image";const Ta="key";const va="kmsError";const Pa="kmsKey";const Da="layers";const ka="layerAvailability";const _a="lastArchivedAt";const La="lastActivatedAt";const Oa="lastByteReceived";const Fa="layerDigests";const Ua="layerDigest";const Ma="lastEvaluatedAt";const Ha="lastInUseAt";const $a="lastObservedAt";const Ga="lifecyclePolicy";const qa="layerPartBlob";const za="lifecyclePolicyText";const Va="lastRecordedPullTime";const ja="layerSize";const Ya="lastValidByteReceived";const Ja="message";const Wa="maxResults";const Ka="mediaType";const Xa="metric";const Za="name";const ec="nextToken";const tc="platform";const rc="pushedAt";const nc="principalArn";const sc="proxyEndpoint";const oc="partFirstByte";const ic="partLastByte";const ac="packageManager";const cc="previewResults";const lc="partSize";const uc="policyText";const dc="pullThroughCacheRules";const pc="pullTimeUpdateExclusions";const Ac="packageVulnerabilityDetails";const mc="prefix";const gc="prefixes";const hc="registry";const fc="resourceArn";const yc="repositoryArn";const Ec="replicationConfiguration";const Cc="repositoryCreationTemplate";const Ic="repositoryCreationTemplates";const bc="repositoryFilters";const Sc="registryId";const Bc="registryIds";const wc="repositoryName";const Rc="repositoryNames";const Nc="repositoryPolicy";const xc="replicationStatuses";const Qc="registryScanningConfiguration";const Tc="resourceTags";const vc="referenceUrls";const Pc="repositoryUri";const Dc="relatedVulnerabilities";const kc="repository";const _c="reason";const Lc="recommendation";const Oc="referrers";const Fc="region";const Uc="release";const Mc="remediation";const Hc="repositories";const $c="resources";const Gc="rules";const qc="smithy.ts.sdk.synthetic.com.amazonaws.ecr";const zc="scanningConfigurations";const Vc="scanningConfiguration";const jc="signingConfiguration";const Yc="storageClass";const Jc="scoreDetails";const Wc="scanFrequency";const Kc="subjectId";const Xc="sourceLayerHash";const Zc="subjectManifestDigest";const el="scanOnPush";const tl="signingProfileArn";const rl="scoreSource";const nl="signingStatuses";const sl="scanType";const ol="sourceUrl";const il="scoringVector";const al="score";const cl="server";const ll="severity";const ul="size";const dl="source";const pl="status";const Al="summary";const ml="tags";const gl="transitioningImageTotalCounts";const hl="tagKeys";const fl="tagStatus";const yl="targetStorageClass";const El="text";const Cl="title";const Il="type";const bl="uri";const Sl="updatedAt";const Bl="uploadId";const wl="upstreamRegistry";const Rl="upstreamRepositoryPrefix";const Nl="upstreamRegistryUrl";const xl="url";const Ql="value";const Tl="vendorCreatedAt";const vl="vulnerabilityId";const Pl="vulnerablePackages";const Dl="vendorSeverity";const kl="vulnerabilitySourceUpdatedAt";const _l="vendorUpdatedAt";const Ll="version";const Ol="com.amazonaws.ecr";const Fl=n(6890);const Ul=n(5502);const Ml=n(4901);const Hl=Fl.TypeRegistry.for(qc);t.ECRServiceException$=[-3,qc,"ECRServiceException",0,[],[]];Hl.registerError(t.ECRServiceException$,Ul.ECRServiceException);const $l=Fl.TypeRegistry.for(Ol);t.BlockedByOrganizationPolicyException$=[-3,Ol,h,{[ki]:Bi},[Ja],[0]];$l.registerError(t.BlockedByOrganizationPolicyException$,Ml.BlockedByOrganizationPolicyException);t.EmptyUploadException$=[-3,Ol,Jt,{[ki]:Bi},[Ja],[0]];$l.registerError(t.EmptyUploadException$,Ml.EmptyUploadException);t.ExclusionAlreadyExistsException$=[-3,Ol,Gt,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ExclusionAlreadyExistsException$,Ml.ExclusionAlreadyExistsException);t.ExclusionNotFoundException$=[-3,Ol,Yt,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ExclusionNotFoundException$,Ml.ExclusionNotFoundException);t.ImageAlreadyExistsException$=[-3,Ol,wr,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageAlreadyExistsException$,Ml.ImageAlreadyExistsException);t.ImageArchivedException$=[-3,Ol,Br,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageArchivedException$,Ml.ImageArchivedException);t.ImageDigestDoesNotMatchException$=[-3,Ol,Nr,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageDigestDoesNotMatchException$,Ml.ImageDigestDoesNotMatchException);t.ImageNotFoundException$=[-3,Ol,Ur,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageNotFoundException$,Ml.ImageNotFoundException);t.ImageStorageClassUpdateNotSupportedException$=[-3,Ol,Vr,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageStorageClassUpdateNotSupportedException$,Ml.ImageStorageClassUpdateNotSupportedException);t.ImageTagAlreadyExistsException$=[-3,Ol,en,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ImageTagAlreadyExistsException$,Ml.ImageTagAlreadyExistsException);t.InvalidLayerException$=[-3,Ol,kr,{[ki]:Bi},[Ja],[0]];$l.registerError(t.InvalidLayerException$,Ml.InvalidLayerException);t.InvalidLayerPartException$=[-3,Ol,_r,{[ki]:Bi},[Sc,wc,Bl,Ya,Ja],[0,0,0,1,0]];$l.registerError(t.InvalidLayerPartException$,Ml.InvalidLayerPartException);t.InvalidParameterException$=[-3,Ol,Mr,{[ki]:Bi},[Ja],[0]];$l.registerError(t.InvalidParameterException$,Ml.InvalidParameterException);t.InvalidTagParameterException$=[-3,Ol,nn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.InvalidTagParameterException$,Ml.InvalidTagParameterException);t.KmsException$=[-3,Ol,on,{[ki]:Bi},[Ja,va],[0,0]];$l.registerError(t.KmsException$,Ml.KmsException);t.LayerAlreadyExistsException$=[-3,Ol,cn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LayerAlreadyExistsException$,Ml.LayerAlreadyExistsException);t.LayerInaccessibleException$=[-3,Ol,An,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LayerInaccessibleException$,Ml.LayerInaccessibleException);t.LayerPartTooSmallException$=[-3,Ol,Pn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LayerPartTooSmallException$,Ml.LayerPartTooSmallException);t.LayersNotFoundException$=[-3,Ol,Sn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LayersNotFoundException$,Ml.LayersNotFoundException);t.LifecyclePolicyNotFoundException$=[-3,Ol,Bn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LifecyclePolicyNotFoundException$,Ml.LifecyclePolicyNotFoundException);t.LifecyclePolicyPreviewInProgressException$=[-3,Ol,Rn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LifecyclePolicyPreviewInProgressException$,Ml.LifecyclePolicyPreviewInProgressException);t.LifecyclePolicyPreviewNotFoundException$=[-3,Ol,Nn,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LifecyclePolicyPreviewNotFoundException$,Ml.LifecyclePolicyPreviewNotFoundException);t.LimitExceededException$=[-3,Ol,ln,{[ki]:Bi},[Ja],[0]];$l.registerError(t.LimitExceededException$,Ml.LimitExceededException);t.PullThroughCacheRuleAlreadyExistsException$=[-3,Ol,ms,{[ki]:Bi},[Ja],[0]];$l.registerError(t.PullThroughCacheRuleAlreadyExistsException$,Ml.PullThroughCacheRuleAlreadyExistsException);t.PullThroughCacheRuleNotFoundException$=[-3,Ol,hs,{[ki]:Bi},[Ja],[0]];$l.registerError(t.PullThroughCacheRuleNotFoundException$,Ml.PullThroughCacheRuleNotFoundException);t.ReferencedImagesNotFoundException$=[-3,Ol,xs,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ReferencedImagesNotFoundException$,Ml.ReferencedImagesNotFoundException);t.RegistryPolicyNotFoundException$=[-3,Ol,Ds,{[ki]:Bi},[Ja],[0]];$l.registerError(t.RegistryPolicyNotFoundException$,Ml.RegistryPolicyNotFoundException);t.RepositoryAlreadyExistsException$=[-3,Ol,Es,{[ki]:Bi},[Ja],[0]];$l.registerError(t.RepositoryAlreadyExistsException$,Ml.RepositoryAlreadyExistsException);t.RepositoryNotEmptyException$=[-3,Ol,vs,{[ki]:Bi},[Ja],[0]];$l.registerError(t.RepositoryNotEmptyException$,Ml.RepositoryNotEmptyException);t.RepositoryNotFoundException$=[-3,Ol,Ps,{[ki]:Bi},[Ja],[0]];$l.registerError(t.RepositoryNotFoundException$,Ml.RepositoryNotFoundException);t.RepositoryPolicyNotFoundException$=[-3,Ol,ks,{[ki]:Bi},[Ja],[0]];$l.registerError(t.RepositoryPolicyNotFoundException$,Ml.RepositoryPolicyNotFoundException);t.ScanNotFoundException$=[-3,Ol,ao,{[ki]:Bi},[Ja],[0]];$l.registerError(t.ScanNotFoundException$,Ml.ScanNotFoundException);t.SecretNotFoundException$=[-3,Ol,co,{[ki]:Bi},[Ja],[0]];$l.registerError(t.SecretNotFoundException$,Ml.SecretNotFoundException);t.ServerException$=[-3,Ol,Zs,{[ki]:cl},[Ja],[0]];$l.registerError(t.ServerException$,Ml.ServerException);t.SigningConfigurationNotFoundException$=[-3,Ol,Ks,{[ki]:Bi},[Ja],[0]];$l.registerError(t.SigningConfigurationNotFoundException$,Ml.SigningConfigurationNotFoundException);t.TemplateAlreadyExistsException$=[-3,Ol,Co,{[ki]:Bi},[Ja],[0]];$l.registerError(t.TemplateAlreadyExistsException$,Ml.TemplateAlreadyExistsException);t.TemplateNotFoundException$=[-3,Ol,wo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.TemplateNotFoundException$,Ml.TemplateNotFoundException);t.TooManyTagsException$=[-3,Ol,Bo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.TooManyTagsException$,Ml.TooManyTagsException);t.UnableToAccessSecretException$=[-3,Ol,Vo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnableToAccessSecretException$,Ml.UnableToAccessSecretException);t.UnableToDecryptSecretValueException$=[-3,Ol,jo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnableToDecryptSecretValueException$,Ml.UnableToDecryptSecretValueException);t.UnableToGetUpstreamImageException$=[-3,Ol,Yo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnableToGetUpstreamImageException$,Ml.UnableToGetUpstreamImageException);t.UnableToGetUpstreamLayerException$=[-3,Ol,Jo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnableToGetUpstreamLayerException$,Ml.UnableToGetUpstreamLayerException);t.UnsupportedImageTypeException$=[-3,Ol,Po,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnsupportedImageTypeException$,Ml.UnsupportedImageTypeException);t.UnsupportedUpstreamRegistryException$=[-3,Ol,Wo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UnsupportedUpstreamRegistryException$,Ml.UnsupportedUpstreamRegistryException);t.UploadNotFoundException$=[-3,Ol,Lo,{[ki]:Bi},[Ja],[0]];$l.registerError(t.UploadNotFoundException$,Ml.UploadNotFoundException);t.ValidationException$=[-3,Ol,Xo,{[ki]:Bi,[sa]:400},[Ja],[0]];$l.registerError(t.ValidationException$,Ml.ValidationException);t.errorTypeRegistries=[Hl,$l];t.Attribute$=[3,Ol,o,0,[Ta,Ql],[0,0],1];t.AuthorizationData$=[3,Ol,i,0,[mi,_i,sc],[0,4,0]];t.AwsEcrContainerImageDetails$=[3,Ol,d,0,[si,bi,ca,Ia,tc,rc,Ha,Ra,hc,wc],[0,0,0,64|0,0,4,4,1,0,0]];t.BatchCheckLayerAvailabilityRequest$=[3,Ol,C,0,[wc,Fa,Sc],[0,64|0,0],2];t.BatchCheckLayerAvailabilityResponse$=[3,Ol,P,0,[Da,qi],[()=>uu,()=>lu]];t.BatchDeleteImageRequest$=[3,Ol,k,0,[wc,la,Sc],[0,()=>Zl,0],2];t.BatchDeleteImageResponse$=[3,Ol,L,0,[la,qi],[()=>Zl,()=>Xl]];t.BatchGetImageRequest$=[3,Ol,q,0,[wc,la,Sc,li],[0,()=>Zl,0,64|0],2];t.BatchGetImageResponse$=[3,Ol,V,0,[oa,qi],[()=>eu,()=>Xl]];t.BatchGetRepositoryScanningConfigurationRequest$=[3,Ol,te,0,[Rc],[64|0],1];t.BatchGetRepositoryScanningConfigurationResponse$=[3,Ol,re,0,[zc,qi],[()=>xu,()=>Nu]];t.CompleteLayerUploadRequest$=[3,Ol,se,0,[wc,Bl,Fa,Sc],[0,0,64|0,0],3];t.CompleteLayerUploadResponse$=[3,Ol,oe,0,[Sc,wc,Bl,Ua],[0,0,0,0]];t.CreatePullThroughCacheRuleRequest$=[3,Ol,ae,0,[Mi,Nl,Sc,wl,wi,Ni,Rl],[0,0,0,0,0,0,0],2];t.CreatePullThroughCacheRuleResponse$=[3,Ol,ce,0,[Mi,Nl,Ri,Sc,wl,wi,Ni,Rl],[0,0,4,0,0,0,0,0]];t.CreateRepositoryCreationTemplateRequest$=[3,Ol,de,0,[mc,ci,Qi,Oi,Tc,Sa,Ba,Nc,Ga,Ni],[0,64|0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>_u,0,()=>iu,0,0,0],2];t.CreateRepositoryCreationTemplateResponse$=[3,Ol,pe,0,[Sc,Cc],[0,()=>t.RepositoryCreationTemplate$]];t.CreateRepositoryRequest$=[3,Ol,Ae,0,[wc,Sc,ml,Sa,Ba,ga,Oi],[0,0,()=>_u,0,()=>iu,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$],1];t.CreateRepositoryResponse$=[3,Ol,me,0,[kc],[()=>t.Repository$]];t.CvssScore$=[3,Ol,ge,0,[Si,il,dl,Ll],[1,0,0,0]];t.CvssScoreAdjustment$=[3,Ol,he,0,[Xa,_c],[0,0]];t.CvssScoreDetails$=[3,Ol,ye,0,[yi,al,rl,il,Ll],[()=>jl,1,0,0,0]];t.DeleteLifecyclePolicyRequest$=[3,Ol,ke,0,[wc,Sc],[0,0],1];t.DeleteLifecyclePolicyResponse$=[3,Ol,_e,0,[Sc,wc,za,Ma],[0,0,0,4]];t.DeletePullThroughCacheRuleRequest$=[3,Ol,Oe,0,[Mi,Sc],[0,0],1];t.DeletePullThroughCacheRuleResponse$=[3,Ol,Fe,0,[Mi,Nl,Ri,Sc,wi,Ni,Rl],[0,0,4,0,0,0,0]];t.DeleteRegistryPolicyRequest$=[3,Ol,Ze,0,[],[]];t.DeleteRegistryPolicyResponse$=[3,Ol,ht,0,[Sc,uc],[0,0]];t.DeleteRepositoryCreationTemplateRequest$=[3,Ol,je,0,[mc],[0],1];t.DeleteRepositoryCreationTemplateResponse$=[3,Ol,Ye,0,[Sc,Cc],[0,()=>t.RepositoryCreationTemplate$]];t.DeleteRepositoryPolicyRequest$=[3,Ol,It,0,[wc,Sc],[0,0],1];t.DeleteRepositoryPolicyResponse$=[3,Ol,Bt,0,[Sc,wc,uc],[0,0,0]];t.DeleteRepositoryRequest$=[3,Ol,Qt,0,[wc,Sc,na],[0,0,2],1];t.DeleteRepositoryResponse$=[3,Ol,Pt,0,[kc],[()=>t.Repository$]];t.DeleteSigningConfigurationRequest$=[3,Ol,Ht,0,[],[]];t.DeleteSigningConfigurationResponse$=[3,Ol,$t,0,[Sc,jc],[0,()=>t.SigningConfiguration$]];t.DeregisterPullTimeUpdateExclusionRequest$=[3,Ol,Ge,0,[nc],[0],1];t.DeregisterPullTimeUpdateExclusionResponse$=[3,Ol,qe,0,[nc],[0]];t.DescribeImageReplicationStatusRequest$=[3,Ol,Be,0,[wc,ua,Sc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageReplicationStatusResponse$=[3,Ol,we,0,[wc,ua,xc],[0,()=>t.ImageIdentifier$,()=>ru]];t.DescribeImageScanFindingsRequest$=[3,Ol,xe,0,[wc,ua,Sc,ec,Wa],[0,()=>t.ImageIdentifier$,0,0,1],2];t.DescribeImageScanFindingsResponse$=[3,Ol,Qe,0,[Sc,wc,ua,Ca,fa,ec],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$,()=>t.ImageScanFindings$,0]];t.DescribeImagesFilter$=[3,Ol,Ie,0,[fl,ma],[0,0]];t.DescribeImageSigningStatusRequest$=[3,Ol,ve,0,[wc,ua,Sc],[0,()=>t.ImageIdentifier$,0],2];t.DescribeImageSigningStatusResponse$=[3,Ol,Pe,0,[wc,ua,Sc,nl],[0,()=>t.ImageIdentifier$,0,()=>su]];t.DescribeImagesRequest$=[3,Ol,be,0,[wc,Sc,la,ec,Wa,ta],[0,0,()=>Zl,0,1,()=>t.DescribeImagesFilter$],1];t.DescribeImagesResponse$=[3,Ol,Re,0,[ia,ec],[()=>Kl,0]];t.DescribePullThroughCacheRulesRequest$=[3,Ol,Ue,0,[Sc,Hi,ec,Wa],[0,64|0,0,1]];t.DescribePullThroughCacheRulesResponse$=[3,Ol,Me,0,[dc,ec],[()=>mu,0]];t.DescribeRegistryRequest$=[3,Ol,Dt,0,[],[]];t.DescribeRegistryResponse$=[3,Ol,kt,0,[Sc,Ec],[0,()=>t.ReplicationConfiguration$]];t.DescribeRepositoriesRequest$=[3,Ol,_t,0,[Sc,Rc,ec,Wa],[0,64|0,0,1]];t.DescribeRepositoriesResponse$=[3,Ol,Lt,0,[Hc,ec],[()=>wu,0]];t.DescribeRepositoryCreationTemplatesRequest$=[3,Ol,Je,0,[gc,ec,Wa],[64|0,0,1]];t.DescribeRepositoryCreationTemplatesResponse$=[3,Ol,We,0,[Sc,Ic,ec],[0,()=>Su,0]];t.EncryptionConfiguration$=[3,Ol,qt,0,[$i,Pa],[0,0],1];t.EncryptionConfigurationForRepositoryCreationTemplate$=[3,Ol,zt,0,[$i,Pa],[0,0],1];t.EnhancedImageScanFinding$=[3,Ol,Vt,0,[oi,Qi,zi,Ji,$a,Ac,Mc,$c,al,Jc,ll,pl,Cl,Il,Sl,Vi,Li],[0,0,0,4,4,()=>t.PackageVulnerabilityDetails$,()=>t.Remediation$,()=>Qu,1,()=>t.ScoreDetails$,0,0,0,0,4,0,0]];t.GetAccountSettingRequest$=[3,Ol,Kt,0,[Za],[0],1];t.GetAccountSettingResponse$=[3,Ol,Xt,0,[Za,Ql],[0,0]];t.GetAuthorizationTokenRequest$=[3,Ol,er,0,[Bc],[64|0]];t.GetAuthorizationTokenResponse$=[3,Ol,tr,0,[ii],[()=>zl]];t.GetDownloadUrlForLayerRequest$=[3,Ol,nr,0,[wc,Ua,Sc],[0,0,0],2];t.GetDownloadUrlForLayerResponse$=[3,Ol,sr,0,[Ti,Ua],[0,0]];t.GetLifecyclePolicyPreviewRequest$=[3,Ol,ar,0,[wc,Sc,la,ec,Wa,ta],[0,0,()=>Zl,0,1,()=>t.LifecyclePolicyPreviewFilter$],1];t.GetLifecyclePolicyPreviewResponse$=[3,Ol,cr,0,[Sc,wc,za,pl,ec,cc,Al],[0,0,0,0,0,()=>du,()=>t.LifecyclePolicyPreviewSummary$]];t.GetLifecyclePolicyRequest$=[3,Ol,lr,0,[wc,Sc],[0,0],1];t.GetLifecyclePolicyResponse$=[3,Ol,ur,0,[Sc,wc,za,Ma],[0,0,0,4]];t.GetRegistryPolicyRequest$=[3,Ol,pr,0,[],[]];t.GetRegistryPolicyResponse$=[3,Ol,Ar,0,[Sc,uc],[0,0]];t.GetRegistryScanningConfigurationRequest$=[3,Ol,yr,0,[],[]];t.GetRegistryScanningConfigurationResponse$=[3,Ol,Er,0,[Sc,Vc],[0,()=>t.RegistryScanningConfiguration$]];t.GetRepositoryPolicyRequest$=[3,Ol,mr,0,[wc,Sc],[0,0],1];t.GetRepositoryPolicyResponse$=[3,Ol,gr,0,[Sc,wc,uc],[0,0,0]];t.GetSigningConfigurationRequest$=[3,Ol,Ir,0,[],[]];t.GetSigningConfigurationResponse$=[3,Ol,br,0,[Sc,jc],[0,()=>t.SigningConfiguration$]];t.Image$=[3,Ol,Sr,0,[Sc,wc,ua,da,pa],[0,0,()=>t.ImageIdentifier$,0,0]];t.ImageDetail$=[3,Ol,Rr,0,[Sc,wc,aa,Ia,Ea,Aa,Ca,ya,pa,ui,Va,Zc,ma,_a,La],[0,0,0,64|0,1,4,()=>t.ImageScanStatus$,()=>t.ImageScanFindingsSummary$,0,0,4,0,0,4,4]];t.ImageFailure$=[3,Ol,Qr,0,[ua,ji,Ki],[()=>t.ImageIdentifier$,0,0]];t.ImageIdentifier$=[3,Ol,vr,0,[aa,wa],[0,0]];t.ImageReferrer$=[3,Ol,Hr,0,[Di,Ka,ul,gi,Ei,pi],[0,0,1,0,128|0,0],3];t.ImageReplicationStatus$=[3,Ol,Gr,0,[Fc,Sc,pl,ji],[0,0,0,0]];t.ImageScanFinding$=[3,Ol,jr,0,[Za,Qi,bl,ll,Ii],[0,0,0,0,()=>ql]];t.ImageScanFindings$=[3,Ol,Wr,0,[ha,kl,Xi,ra,Fi],[4,4,128|1,()=>nu,()=>Jl]];t.ImageScanFindingsSummary$=[3,Ol,Jr,0,[ha,kl,Xi],[4,4,128|1]];t.ImageScanningConfiguration$=[3,Ol,zr,0,[el],[2]];t.ImageScanStatus$=[3,Ol,Kr,0,[pl,Qi],[0,0]];t.ImageSigningStatus$=[3,Ol,Zr,0,[tl,ji,Ki,pl],[0,0,0,0]];t.ImageTagMutabilityExclusionFilter$=[3,Ol,tn,0,[Zi,ta],[0,0],2];t.InitiateLayerUploadRequest$=[3,Ol,Or,0,[wc,Sc],[0,0],1];t.InitiateLayerUploadResponse$=[3,Ol,Fr,0,[Bl,lc],[0,1]];t.Layer$=[3,Ol,an,0,[Ua,ka,ja,Ka],[0,0,1,0]];t.LayerFailure$=[3,Ol,un,0,[Ua,ji,Ki],[0,0,0]];t.LifecyclePolicyPreviewFilter$=[3,Ol,wn,0,[fl],[0]];t.LifecyclePolicyPreviewResult$=[3,Ol,xn,0,[Ia,aa,Aa,fi,di,Yc],[64|0,0,4,()=>t.LifecyclePolicyRuleAction$,1,0]];t.LifecyclePolicyPreviewSummary$=[3,Ol,Tn,0,[Ui,gl],[1,()=>Lu]];t.LifecyclePolicyRuleAction$=[3,Ol,vn,0,[Il,yl],[0,0]];t.ListImageReferrersFilter$=[3,Ol,hn,0,[hi,pi],[64|0,0]];t.ListImageReferrersRequest$=[3,Ol,yn,0,[wc,Kc,Sc,ta,ec,Wa],[0,()=>t.SubjectIdentifier$,0,()=>t.ListImageReferrersFilter$,0,1],2];t.ListImageReferrersResponse$=[3,Ol,En,0,[Oc,ec],[()=>tu,0]];t.ListImagesFilter$=[3,Ol,mn,0,[fl,ma],[0,0]];t.ListImagesRequest$=[3,Ol,gn,0,[wc,Sc,ec,Wa,ta],[0,0,0,1,()=>t.ListImagesFilter$],1];t.ListImagesResponse$=[3,Ol,Cn,0,[la,ec],[()=>Zl,0]];t.ListPullTimeUpdateExclusionsRequest$=[3,Ol,kn,0,[Wa,ec],[1,0]];t.ListPullTimeUpdateExclusionsResponse$=[3,Ol,_n,0,[pc,ec],[64|0,0]];t.ListTagsForResourceRequest$=[3,Ol,On,0,[fc],[0],1];t.ListTagsForResourceResponse$=[3,Ol,Fn,0,[ml],[()=>_u]];t.PackageVulnerabilityDetails$=[3,Ol,fs,0,[xi,vc,Dc,dl,ol,Tl,Dl,_l,vl,Pl],[()=>Yl,64|0,64|0,0,0,4,0,4,0,()=>Ou]];t.PullThroughCacheRule$=[3,Ol,As,0,[Mi,Nl,Ri,Sc,wi,Ni,Rl,wl,Sl],[0,0,4,0,0,0,0,0,4]];t.PutAccountSettingRequest$=[3,Ol,Mn,0,[Za,Ql],[0,0],2];t.PutAccountSettingResponse$=[3,Ol,Hn,0,[Za,Ql],[0,0]];t.PutImageRequest$=[3,Ol,Gn,0,[wc,da,Sc,pa,wa,aa],[0,0,0,0,0,0],2];t.PutImageResponse$=[3,Ol,qn,0,[Qa],[()=>t.Image$]];t.PutImageScanningConfigurationRequest$=[3,Ol,Vn,0,[wc,ga,Sc],[0,()=>t.ImageScanningConfiguration$,0],2];t.PutImageScanningConfigurationResponse$=[3,Ol,jn,0,[Sc,wc,ga],[0,0,()=>t.ImageScanningConfiguration$]];t.PutImageTagMutabilityRequest$=[3,Ol,Jn,0,[wc,Sa,Sc,Ba],[0,0,0,()=>iu],2];t.PutImageTagMutabilityResponse$=[3,Ol,Wn,0,[Sc,wc,Sa,Ba],[0,0,0,()=>iu]];t.PutLifecyclePolicyRequest$=[3,Ol,Xn,0,[wc,za,Sc],[0,0,0],2];t.PutLifecyclePolicyResponse$=[3,Ol,Zn,0,[Sc,wc,za],[0,0,0]];t.PutRegistryPolicyRequest$=[3,Ol,ss,0,[uc],[0],1];t.PutRegistryPolicyResponse$=[3,Ol,os,0,[Sc,uc],[0,0]];t.PutRegistryScanningConfigurationRequest$=[3,Ol,cs,0,[sl,Gc],[0,()=>Eu]];t.PutRegistryScanningConfigurationResponse$=[3,Ol,ls,0,[Qc],[()=>t.RegistryScanningConfiguration$]];t.PutReplicationConfigurationRequest$=[3,Ol,ts,0,[Ec],[()=>t.ReplicationConfiguration$],1];t.PutReplicationConfigurationResponse$=[3,Ol,rs,0,[Ec],[()=>t.ReplicationConfiguration$]];t.PutSigningConfigurationRequest$=[3,Ol,ds,0,[jc],[()=>t.SigningConfiguration$],1];t.PutSigningConfigurationResponse$=[3,Ol,ps,0,[jc],[()=>t.SigningConfiguration$]];t.Recommendation$=[3,Ol,ys,0,[xl,El],[0,0]];t.RegisterPullTimeUpdateExclusionRequest$=[3,Ol,Ls,0,[nc],[0],1];t.RegisterPullTimeUpdateExclusionResponse$=[3,Ol,Os,0,[nc,Ri],[0,4]];t.RegistryScanningConfiguration$=[3,Ol,Ms,0,[sl,Gc],[0,()=>Eu]];t.RegistryScanningRule$=[3,Ol,zs,0,[Wc,bc],[0,()=>vu],2];t.Remediation$=[3,Ol,js,0,[Lc],[()=>t.Recommendation$]];t.ReplicationConfiguration$=[3,Ol,Cs,0,[Gc],[()=>bu],1];t.ReplicationDestination$=[3,Ol,Ss,0,[Fc,Sc],[0,0],2];t.ReplicationRule$=[3,Ol,Fs,0,[vi,bc],[()=>Iu,()=>Bu],1];t.Repository$=[3,Ol,Ys,0,[yc,Sc,wc,Pc,Ri,Sa,Ba,ga,Oi],[0,0,0,0,4,0,()=>iu,()=>t.ImageScanningConfiguration$,()=>t.EncryptionConfiguration$]];t.RepositoryCreationTemplate$=[3,Ol,Is,0,[mc,Qi,Oi,Tc,Sa,Ba,Nc,Ga,ci,Ni,Ri,Sl],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>_u,0,()=>iu,0,0,64|0,0,4,4]];t.RepositoryFilter$=[3,Ol,Rs,0,[ta,Zi],[0,0],2];t.RepositoryScanningConfiguration$=[3,Ol,qs,0,[yc,wc,el,Wc,Ai],[0,0,2,0,()=>vu]];t.RepositoryScanningConfigurationFailure$=[3,Ol,Hs,0,[wc,ji,Ki],[0,0,0]];t.Resource$=[3,Ol,Js,0,[Pi,xa,ml,Il],[()=>t.ResourceDetails$,0,128|0,0]];t.ResourceDetails$=[3,Ol,ws,0,[ai],[()=>t.AwsEcrContainerImageDetails$]];t.ScanningRepositoryFilter$=[3,Ol,uo,0,[ta,Zi],[0,0],2];t.ScoreDetails$=[3,Ol,Xs,0,[xi],[()=>t.CvssScoreDetails$]];t.SetRepositoryPolicyRequest$=[3,Ol,fo,0,[wc,uc,Sc,na],[0,0,0,2],2];t.SetRepositoryPolicyResponse$=[3,Ol,yo,0,[Sc,wc,uc],[0,0,0]];t.SigningConfiguration$=[3,Ol,Ws,0,[Gc],[()=>Du],1];t.SigningRepositoryFilter$=[3,Ol,mo,0,[ta,Zi],[0,0],2];t.SigningRule$=[3,Ol,lo,0,[tl,bc],[0,()=>Pu],1];t.StartImageScanRequest$=[3,Ol,ro,0,[wc,ua,Sc],[0,()=>t.ImageIdentifier$,0],2];t.StartImageScanResponse$=[3,Ol,no,0,[Sc,wc,ua,Ca],[0,0,()=>t.ImageIdentifier$,()=>t.ImageScanStatus$]];t.StartLifecyclePolicyPreviewRequest$=[3,Ol,oo,0,[wc,Sc,za],[0,0,0],1];t.StartLifecyclePolicyPreviewResponse$=[3,Ol,io,0,[Sc,wc,za,pl],[0,0,0,0]];t.SubjectIdentifier$=[3,Ol,eo,0,[aa],[0],1];t.Tag$=[3,Ol,Eo,0,[sn,Ko],[0,0],2];t.TagResourceRequest$=[3,Ol,No,0,[fc,ml],[0,()=>_u],2];t.TagResourceResponse$=[3,Ol,xo,0,[],[]];t.TransitioningImageTotalCount$=[3,Ol,Io,0,[yl,ba],[0,1]];t.UntagResourceRequest$=[3,Ol,qo,0,[fc,hl],[0,64|0],2];t.UntagResourceResponse$=[3,Ol,zo,0,[],[]];t.UpdateImageStorageClassRequest$=[3,Ol,To,0,[wc,ua,yl,Sc],[0,()=>t.ImageIdentifier$,0,0],3];t.UpdateImageStorageClassResponse$=[3,Ol,vo,0,[Sc,wc,ua,ma],[0,0,()=>t.ImageIdentifier$,0]];t.UpdatePullThroughCacheRuleRequest$=[3,Ol,Fo,0,[Mi,Sc,wi,Ni],[0,0,0,0],1];t.UpdatePullThroughCacheRuleResponse$=[3,Ol,Uo,0,[Mi,Sc,Sl,wi,Ni,Rl],[0,0,4,0,0,0]];t.UpdateRepositoryCreationTemplateRequest$=[3,Ol,$o,0,[mc,Qi,Oi,Tc,Sa,Ba,Nc,Ga,ci,Ni],[0,0,()=>t.EncryptionConfigurationForRepositoryCreationTemplate$,()=>_u,0,()=>iu,0,0,64|0,0],1];t.UpdateRepositoryCreationTemplateResponse$=[3,Ol,Go,0,[Sc,Cc],[0,()=>t.RepositoryCreationTemplate$]];t.UploadLayerPartRequest$=[3,Ol,ko,0,[wc,Bl,oc,ic,qa,Sc],[0,0,1,1,21,0],5];t.UploadLayerPartResponse$=[3,Ol,_o,0,[Sc,wc,Bl,Oa],[0,0,0,1]];t.ValidatePullThroughCacheRuleRequest$=[3,Ol,ri,0,[Mi,Sc],[0,0],1];t.ValidatePullThroughCacheRuleResponse$=[3,Ol,ni,0,[Mi,Sc,Nl,wi,Ni,Rl,Na,ea],[0,0,0,0,0,0,2,0]];t.VulnerablePackage$=[3,Ol,Zo,0,[Ci,Gi,Wi,Za,ac,Uc,Xc,Ll,Yi],[0,1,0,0,0,0,0,0,0]];var Gl=null&&64|0;var ql=[1,Ol,m,0,()=>t.Attribute$];var zl=[1,Ol,a,0,()=>t.AuthorizationData$];var Vl=null&&64|0;var jl=[1,Ol,fe,0,()=>t.CvssScoreAdjustment$];var Yl=[1,Ol,Ee,0,()=>t.CvssScore$];var Jl=[1,Ol,jt,0,()=>t.EnhancedImageScanFinding$];var Wl=null&&64|0;var Kl=[1,Ol,xr,0,()=>t.ImageDetail$];var Xl=[1,Ol,Tr,0,()=>t.ImageFailure$];var Zl=[1,Ol,Pr,0,()=>t.ImageIdentifier$];var eu=[1,Ol,Dr,0,()=>t.Image$];var tu=[1,Ol,$r,0,()=>t.ImageReferrer$];var ru=[1,Ol,qr,0,()=>t.ImageReplicationStatus$];var nu=[1,Ol,Yr,0,()=>t.ImageScanFinding$];var su=[1,Ol,Xr,0,()=>t.ImageSigningStatus$];var ou=null&&64|0;var iu=[1,Ol,rn,0,()=>t.ImageTagMutabilityExclusionFilter$];var au=null&&64|0;var cu=null&&64|0;var lu=[1,Ol,dn,0,()=>t.LayerFailure$];var uu=[1,Ol,bn,0,()=>t.Layer$];var du=[1,Ol,Qn,0,()=>t.LifecyclePolicyPreviewResult$];var pu=null&&64|0;var Au=null&&64|0;var mu=[1,Ol,gs,0,()=>t.PullThroughCacheRule$];var gu=null&&64|0;var hu=null&&64|0;var fu=null&&64|0;var yu=null&&64|0;var Eu=[1,Ol,Vs,0,()=>t.RegistryScanningRule$];var Cu=null&&64|0;var Iu=[1,Ol,Bs,0,()=>t.ReplicationDestination$];var bu=[1,Ol,Us,0,()=>t.ReplicationRule$];var Su=[1,Ol,bs,0,()=>t.RepositoryCreationTemplate$];var Bu=[1,Ol,Ns,0,()=>t.RepositoryFilter$];var wu=[1,Ol,Qs,0,()=>t.Repository$];var Ru=null&&64|0;var Nu=[1,Ol,$s,0,()=>t.RepositoryScanningConfigurationFailure$];var xu=[1,Ol,Gs,0,()=>t.RepositoryScanningConfiguration$];var Qu=[1,Ol,Ts,0,()=>t.Resource$];var Tu=null&&64|0;var vu=[1,Ol,po,0,()=>t.ScanningRepositoryFilter$];var Pu=[1,Ol,Ao,0,()=>t.SigningRepositoryFilter$];var Du=[1,Ol,go,0,()=>t.SigningRule$];var ku=null&&64|0;var _u=[1,Ol,So,0,()=>t.Tag$];var Lu=[1,Ol,bo,0,()=>t.TransitioningImageTotalCount$];var Ou=[1,Ol,ei,0,()=>t.VulnerablePackage$];var Fu=null&&128|0;var Uu=null&&128|1;var Mu=null&&128|0;t.BatchCheckLayerAvailability$=[9,Ol,f,0,()=>t.BatchCheckLayerAvailabilityRequest$,()=>t.BatchCheckLayerAvailabilityResponse$];t.BatchDeleteImage$=[9,Ol,D,0,()=>t.BatchDeleteImageRequest$,()=>t.BatchDeleteImageResponse$];t.BatchGetImage$=[9,Ol,F,0,()=>t.BatchGetImageRequest$,()=>t.BatchGetImageResponse$];t.BatchGetRepositoryScanningConfiguration$=[9,Ol,ee,0,()=>t.BatchGetRepositoryScanningConfigurationRequest$,()=>t.BatchGetRepositoryScanningConfigurationResponse$];t.CompleteLayerUpload$=[9,Ol,ne,0,()=>t.CompleteLayerUploadRequest$,()=>t.CompleteLayerUploadResponse$];t.CreatePullThroughCacheRule$=[9,Ol,ie,0,()=>t.CreatePullThroughCacheRuleRequest$,()=>t.CreatePullThroughCacheRuleResponse$];t.CreateRepository$=[9,Ol,le,0,()=>t.CreateRepositoryRequest$,()=>t.CreateRepositoryResponse$];t.CreateRepositoryCreationTemplate$=[9,Ol,ue,0,()=>t.CreateRepositoryCreationTemplateRequest$,()=>t.CreateRepositoryCreationTemplateResponse$];t.DeleteLifecyclePolicy$=[9,Ol,De,0,()=>t.DeleteLifecyclePolicyRequest$,()=>t.DeleteLifecyclePolicyResponse$];t.DeletePullThroughCacheRule$=[9,Ol,Le,0,()=>t.DeletePullThroughCacheRuleRequest$,()=>t.DeletePullThroughCacheRuleResponse$];t.DeleteRegistryPolicy$=[9,Ol,Xe,0,()=>t.DeleteRegistryPolicyRequest$,()=>t.DeleteRegistryPolicyResponse$];t.DeleteRepository$=[9,Ol,ze,0,()=>t.DeleteRepositoryRequest$,()=>t.DeleteRepositoryResponse$];t.DeleteRepositoryCreationTemplate$=[9,Ol,Ve,0,()=>t.DeleteRepositoryCreationTemplateRequest$,()=>t.DeleteRepositoryCreationTemplateResponse$];t.DeleteRepositoryPolicy$=[9,Ol,Rt,0,()=>t.DeleteRepositoryPolicyRequest$,()=>t.DeleteRepositoryPolicyResponse$];t.DeleteSigningConfiguration$=[9,Ol,Mt,0,()=>t.DeleteSigningConfigurationRequest$,()=>t.DeleteSigningConfigurationResponse$];t.DeregisterPullTimeUpdateExclusion$=[9,Ol,$e,0,()=>t.DeregisterPullTimeUpdateExclusionRequest$,()=>t.DeregisterPullTimeUpdateExclusionResponse$];t.DescribeImageReplicationStatus$=[9,Ol,Se,0,()=>t.DescribeImageReplicationStatusRequest$,()=>t.DescribeImageReplicationStatusResponse$];t.DescribeImages$=[9,Ol,Ce,0,()=>t.DescribeImagesRequest$,()=>t.DescribeImagesResponse$];t.DescribeImageScanFindings$=[9,Ol,Ne,0,()=>t.DescribeImageScanFindingsRequest$,()=>t.DescribeImageScanFindingsResponse$];t.DescribeImageSigningStatus$=[9,Ol,Te,0,()=>t.DescribeImageSigningStatusRequest$,()=>t.DescribeImageSigningStatusResponse$];t.DescribePullThroughCacheRules$=[9,Ol,He,0,()=>t.DescribePullThroughCacheRulesRequest$,()=>t.DescribePullThroughCacheRulesResponse$];t.DescribeRegistry$=[9,Ol,Ft,0,()=>t.DescribeRegistryRequest$,()=>t.DescribeRegistryResponse$];t.DescribeRepositories$=[9,Ol,Ut,0,()=>t.DescribeRepositoriesRequest$,()=>t.DescribeRepositoriesResponse$];t.DescribeRepositoryCreationTemplates$=[9,Ol,Ke,0,()=>t.DescribeRepositoryCreationTemplatesRequest$,()=>t.DescribeRepositoryCreationTemplatesResponse$];t.GetAccountSetting$=[9,Ol,Wt,0,()=>t.GetAccountSettingRequest$,()=>t.GetAccountSettingResponse$];t.GetAuthorizationToken$=[9,Ol,Zt,0,()=>t.GetAuthorizationTokenRequest$,()=>t.GetAuthorizationTokenResponse$];t.GetDownloadUrlForLayer$=[9,Ol,rr,0,()=>t.GetDownloadUrlForLayerRequest$,()=>t.GetDownloadUrlForLayerResponse$];t.GetLifecyclePolicy$=[9,Ol,or,0,()=>t.GetLifecyclePolicyRequest$,()=>t.GetLifecyclePolicyResponse$];t.GetLifecyclePolicyPreview$=[9,Ol,ir,0,()=>t.GetLifecyclePolicyPreviewRequest$,()=>t.GetLifecyclePolicyPreviewResponse$];t.GetRegistryPolicy$=[9,Ol,dr,0,()=>t.GetRegistryPolicyRequest$,()=>t.GetRegistryPolicyResponse$];t.GetRegistryScanningConfiguration$=[9,Ol,fr,0,()=>t.GetRegistryScanningConfigurationRequest$,()=>t.GetRegistryScanningConfigurationResponse$];t.GetRepositoryPolicy$=[9,Ol,hr,0,()=>t.GetRepositoryPolicyRequest$,()=>t.GetRepositoryPolicyResponse$];t.GetSigningConfiguration$=[9,Ol,Cr,0,()=>t.GetSigningConfigurationRequest$,()=>t.GetSigningConfigurationResponse$];t.InitiateLayerUpload$=[9,Ol,Lr,0,()=>t.InitiateLayerUploadRequest$,()=>t.InitiateLayerUploadResponse$];t.ListImageReferrers$=[9,Ol,In,0,()=>t.ListImageReferrersRequest$,()=>t.ListImageReferrersResponse$];t.ListImages$=[9,Ol,pn,0,()=>t.ListImagesRequest$,()=>t.ListImagesResponse$];t.ListPullTimeUpdateExclusions$=[9,Ol,Dn,0,()=>t.ListPullTimeUpdateExclusionsRequest$,()=>t.ListPullTimeUpdateExclusionsResponse$];t.ListTagsForResource$=[9,Ol,Ln,0,()=>t.ListTagsForResourceRequest$,()=>t.ListTagsForResourceResponse$];t.PutAccountSetting$=[9,Ol,Un,0,()=>t.PutAccountSettingRequest$,()=>t.PutAccountSettingResponse$];t.PutImage$=[9,Ol,$n,0,()=>t.PutImageRequest$,()=>t.PutImageResponse$];t.PutImageScanningConfiguration$=[9,Ol,zn,0,()=>t.PutImageScanningConfigurationRequest$,()=>t.PutImageScanningConfigurationResponse$];t.PutImageTagMutability$=[9,Ol,Yn,0,()=>t.PutImageTagMutabilityRequest$,()=>t.PutImageTagMutabilityResponse$];t.PutLifecyclePolicy$=[9,Ol,Kn,0,()=>t.PutLifecyclePolicyRequest$,()=>t.PutLifecyclePolicyResponse$];t.PutRegistryPolicy$=[9,Ol,ns,0,()=>t.PutRegistryPolicyRequest$,()=>t.PutRegistryPolicyResponse$];t.PutRegistryScanningConfiguration$=[9,Ol,as,0,()=>t.PutRegistryScanningConfigurationRequest$,()=>t.PutRegistryScanningConfigurationResponse$];t.PutReplicationConfiguration$=[9,Ol,es,0,()=>t.PutReplicationConfigurationRequest$,()=>t.PutReplicationConfigurationResponse$];t.PutSigningConfiguration$=[9,Ol,us,0,()=>t.PutSigningConfigurationRequest$,()=>t.PutSigningConfigurationResponse$];t.RegisterPullTimeUpdateExclusion$=[9,Ol,_s,0,()=>t.RegisterPullTimeUpdateExclusionRequest$,()=>t.RegisterPullTimeUpdateExclusionResponse$];t.SetRepositoryPolicy$=[9,Ol,ho,0,()=>t.SetRepositoryPolicyRequest$,()=>t.SetRepositoryPolicyResponse$];t.StartImageScan$=[9,Ol,to,0,()=>t.StartImageScanRequest$,()=>t.StartImageScanResponse$];t.StartLifecyclePolicyPreview$=[9,Ol,so,0,()=>t.StartLifecyclePolicyPreviewRequest$,()=>t.StartLifecyclePolicyPreviewResponse$];t.TagResource$=[9,Ol,Ro,0,()=>t.TagResourceRequest$,()=>t.TagResourceResponse$];t.UntagResource$=[9,Ol,Mo,0,()=>t.UntagResourceRequest$,()=>t.UntagResourceResponse$];t.UpdateImageStorageClass$=[9,Ol,Qo,0,()=>t.UpdateImageStorageClassRequest$,()=>t.UpdateImageStorageClassResponse$];t.UpdatePullThroughCacheRule$=[9,Ol,Oo,0,()=>t.UpdatePullThroughCacheRuleRequest$,()=>t.UpdatePullThroughCacheRuleResponse$];t.UpdateRepositoryCreationTemplate$=[9,Ol,Ho,0,()=>t.UpdateRepositoryCreationTemplateRequest$,()=>t.UpdateRepositoryCreationTemplateResponse$];t.UploadLayerPart$=[9,Ol,Do,0,()=>t.UploadLayerPartRequest$,()=>t.UploadLayerPartResponse$];t.ValidatePullThroughCacheRule$=[9,Ol,ti,0,()=>t.ValidatePullThroughCacheRuleRequest$,()=>t.ValidatePullThroughCacheRuleResponse$]},5152:(e,t)=>{const n={warningEmitted:false};const emitWarningIfUnsupportedVersion=e=>{if(e&&!n.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20){n.warningEmitted=true;process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will\nno longer support Node.js ${e} in January 2026.\n\nTo continue receiving updates to AWS services, bug fixes, and security\nupdates please upgrade to a supported Node.js LTS version.\n\nMore information can be found at: https://a.co/c895JFp`)}};function setCredentialFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}function setFeature(e,t,n){if(!e.__aws_sdk_context){e.__aws_sdk_context={features:{}}}else if(!e.__aws_sdk_context.features){e.__aws_sdk_context.features={}}e.__aws_sdk_context.features[t]=n}function setTokenFeature(e,t,n){if(!e.$source){e.$source={}}e.$source[t]=n;return e}t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.setCredentialFeature=setCredentialFeature;t.setFeature=setFeature;t.setTokenFeature=setTokenFeature;t.state=n},7523:(e,t,n)=>{var o=n(2356);var i=n(402);var a=n(8857);var d=n(5152);var m=n(5118);const getDateHeader=e=>o.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:undefined;const getSkewCorrectedDate=e=>new Date(Date.now()+e);const isClockSkewed=(e,t)=>Math.abs(getSkewCorrectedDate(t).getTime()-e)>=3e5;const getUpdatedSystemClockOffset=(e,t)=>{const n=Date.parse(e);if(isClockSkewed(n,t)){return n-Date.now()}return t};const throwSigningPropertyError=(e,t)=>{if(!t){throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`)}return t};const validateSigningProperties=async e=>{const t=throwSigningPropertyError("context",e.context);const n=throwSigningPropertyError("config",e.config);const o=t.endpointV2?.properties?.authSchemes?.[0];const i=throwSigningPropertyError("signer",n.signer);const a=await i(o);const d=e?.signingRegion;const m=e?.signingRegionSet;const h=e?.signingName;return{config:n,signer:a,signingRegion:d,signingRegionSet:m,signingName:h}};class AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const i=await validateSigningProperties(n);const{config:a,signer:d}=i;let{signingRegion:m,signingName:h}=i;const f=n.context;if(f?.authSchemes?.length??0>1){const[e,t]=f.authSchemes;if(e?.name==="sigv4a"&&t?.name==="sigv4"){m=t?.signingRegion??m;h=t?.signingName??h}}const C=await d.sign(e,{signingDate:getSkewCorrectedDate(a.systemClockOffset),signingRegion:m,signingService:h});return C}errorHandler(e){return t=>{const n=t.ServerTime??getDateHeader(t.$response);if(n){const o=throwSigningPropertyError("config",e.config);const i=o.systemClockOffset;o.systemClockOffset=getUpdatedSystemClockOffset(n,o.systemClockOffset);const a=o.systemClockOffset!==i;if(a&&t.$metadata){t.$metadata.clockSkewCorrected=true}}throw t}}successHandler(e,t){const n=getDateHeader(e);if(n){const e=throwSigningPropertyError("config",t.config);e.systemClockOffset=getUpdatedSystemClockOffset(n,e.systemClockOffset)}}}const h=AwsSdkSigV4Signer;class AwsSdkSigV4ASigner extends AwsSdkSigV4Signer{async sign(e,t,n){if(!o.HttpRequest.isInstance(e)){throw new Error("The request is not an instance of `HttpRequest` and cannot be signed")}const{config:i,signer:a,signingRegion:d,signingRegionSet:m,signingName:h}=await validateSigningProperties(n);const f=await(i.sigv4aSigningRegionSet?.());const C=(f??m??[d]).join(",");const P=await a.sign(e,{signingDate:getSkewCorrectedDate(i.systemClockOffset),signingRegion:C,signingService:h});return P}}const getArrayForCommaSeparatedString=e=>typeof e==="string"&&e.length>0?e.split(",").map((e=>e.trim())):[];const getBearerTokenEnvKey=e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`;const f="AWS_AUTH_SCHEME_PREFERENCE";const C="auth_scheme_preference";const P={environmentVariableSelector:(e,t)=>{if(t?.signingName){const n=getBearerTokenEnvKey(t.signingName);if(n in e)return["httpBearerAuth"]}if(!(f in e))return undefined;return getArrayForCommaSeparatedString(e[f])},configFileSelector:e=>{if(!(C in e))return undefined;return getArrayForCommaSeparatedString(e[C])},default:[]};const resolveAwsSdkSigV4AConfig=e=>{e.sigv4aSigningRegionSet=i.normalizeProvider(e.sigv4aSigningRegionSet);return e};const D={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET){return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map((e=>e.trim()))}throw new a.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:true})},configFileSelector(e){if(e.sigv4a_signing_region_set){return(e.sigv4a_signing_region_set??"").split(",").map((e=>e.trim()))}throw new a.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:true})},default:undefined};const resolveAwsSdkSigV4Config=e=>{let t=e.credentials;let n=!!e.credentials;let o=undefined;Object.defineProperty(e,"credentials",{set(i){if(i&&i!==t&&i!==o){n=true}t=i;const a=normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider});const m=bindCallerConfig(e,a);if(n&&!m.attributed){const e=typeof t==="object"&&t!==null;o=async t=>{const n=await m(t);const o=n;if(e&&(!o.$source||Object.keys(o.$source).length===0)){return d.setCredentialFeature(o,"CREDENTIALS_CODE","e")}return o};o.memoized=m.memoized;o.configBound=m.configBound;o.attributed=true}else{o=m}},get(){return o},enumerable:true,configurable:true});e.credentials=t;const{signingEscapePath:a=true,systemClockOffset:h=e.systemClockOffset||0,sha256:f}=e;let C;if(e.signer){C=i.normalizeProvider(e.signer)}else if(e.regionInfoProvider){C=()=>i.normalizeProvider(e.region)().then((async t=>[await e.regionInfoProvider(t,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},t])).then((([t,n])=>{const{signingRegion:o,signingService:i}=t;e.signingRegion=e.signingRegion||o||n;e.signingName=e.signingName||i||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:f,uriEscapePath:a};const h=e.signerConstructor||m.SignatureV4;return new h(d)}))}else{C=async t=>{t=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await i.normalizeProvider(e.region)(),properties:{}},t);const n=t.signingRegion;const o=t.signingName;e.signingRegion=e.signingRegion||n;e.signingName=e.signingName||o||e.serviceId;const d={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:f,uriEscapePath:a};const h=e.signerConstructor||m.SignatureV4;return new h(d)}}const P=Object.assign(e,{systemClockOffset:h,signingEscapePath:a,signer:C});return P};const k=resolveAwsSdkSigV4Config;function normalizeCredentialProvider(e,{credentials:t,credentialDefaultProvider:n}){let o;if(t){if(!t?.memoized){o=i.memoizeIdentityProvider(t,i.isIdentityExpired,i.doesIdentityRequireRefresh)}else{o=t}}else{if(n){o=i.normalizeProvider(n(Object.assign({},e,{parentClientConfig:e})))}else{o=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")}}}o.memoized=true;return o}function bindCallerConfig(e,t){if(t.configBound){return t}const fn=async n=>t({...n,callerClientConfig:e});fn.memoized=t.memoized;fn.configBound=true;return fn}t.AWSSDKSigV4Signer=h;t.AwsSdkSigV4ASigner=AwsSdkSigV4ASigner;t.AwsSdkSigV4Signer=AwsSdkSigV4Signer;t.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS=P;t.NODE_SIGV4A_CONFIG_OPTIONS=D;t.getBearerTokenEnvKey=getBearerTokenEnvKey;t.resolveAWSSDKSigV4Config=k;t.resolveAwsSdkSigV4AConfig=resolveAwsSdkSigV4AConfig;t.resolveAwsSdkSigV4Config=resolveAwsSdkSigV4Config;t.validateSigningProperties=validateSigningProperties},7288:(e,t,n)=>{var o=n(4645);var i=n(6890);var a=n(1411);var d=n(3422);var m=n(2430);var h=n(8385);var f=n(1577);var C=n(4274);class ProtocolLib{queryCompat;errorRegistry;constructor(e=false){this.queryCompat=e}resolveRestContentType(e,t){const n=t.getMemberSchemas();const o=Object.values(n).find((e=>!!e.getMergedTraits().httpPayload));if(o){const t=o.getMergedTraits().mediaType;if(t){return t}else if(o.isStringSchema()){return"text/plain"}else if(o.isBlobSchema()){return"application/octet-stream"}else{return e}}else if(!t.isUnitSchema()){const t=Object.values(n).find((e=>{const{httpQuery:t,httpQueryParams:n,httpHeader:o,httpLabel:i,httpPrefixHeaders:a}=e.getMergedTraits();const d=a===void 0;return!t&&!n&&!o&&!i&&d}));if(t){return e}}}async getErrorSchemaOrThrowBaseException(e,t,n,o,i,a){let d=e;if(e.includes("#")){[,d]=e.split("#")}const m={$metadata:i,$fault:n.statusCode<500?"client":"server"};if(!this.errorRegistry){throw new Error("@aws-sdk/core/protocols - error handler not initialized.")}try{const t=a?.(this.errorRegistry,d)??this.errorRegistry.getSchema(e);return{errorSchema:t,errorMetadata:m}}catch(e){o.message=o.message??o.Message??"UnknownError";const t=this.errorRegistry;const n=t.getBaseException();if(n){const e=t.getErrorCtor(n)??Error;throw this.decorateServiceException(Object.assign(new e({name:d}),m),o)}const i=o;const a=i?.message??i?.Message??i?.Error?.Message??i?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(a),{name:d},m),o)}}compose(e,t,n){let o=n;if(t.includes("#")){[o]=t.split("#")}const a=i.TypeRegistry.for(o);const d=i.TypeRegistry.for("smithy.ts.sdk.synthetic."+n);e.copyFrom(a);e.copyFrom(d);this.errorRegistry=e}decorateServiceException(e,t={}){if(this.queryCompat){const n=e.Message??t.Message;const o=a.decorateServiceException(e,t);if(n){o.message=n}o.Error={...o.Error,Type:o.Error?.Type,Code:o.Error?.Code,Message:o.Error?.message??o.Error?.Message??n};const i=o.$metadata.requestId;if(i){o.RequestId=i}return o}return a.decorateServiceException(e,t)}setQueryCompatError(e,t){const n=t.headers?.["x-amzn-query-error"];if(e!==undefined&&n!=null){const[t,o]=n.split(";");const i=Object.entries(e);const a={Code:t,Type:o};Object.assign(e,a);for(const[e,t]of i){a[e==="message"?"Message":e]=t}delete a.__type;e.Error=a}}queryCompatOutput(e,t){if(e.Error){t.Error=e.Error}if(e.Type){t.Type=e.Type}if(e.Code){t.Code=e.Code}}findQueryCompatibleError(e,t){try{return e.getSchema(t)}catch(n){return e.find((e=>i.NormalizedSchema.of(e).getMergedTraits().awsQueryError?.[0]===t))}}}class AwsSmithyRpcV2CborProtocol extends o.SmithyRpcV2CborProtocol{awsQueryCompatible;mixin;constructor({defaultNamespace:e,errorTypeRegistries:t,awsQueryCompatible:n}){super({defaultNamespace:e,errorTypeRegistries:t});this.awsQueryCompatible=!!n;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}return o}async handleError(e,t,n,a,d){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(a,n)}const m=(()=>{const e=n.headers["x-amzn-query-error"];if(e&&this.awsQueryCompatible){return e.split(";")[0]}return o.loadSmithyRpcV2CborErrorCode(n,a)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,m,this.options.defaultNamespace);const{errorSchema:h,errorMetadata:f}=await this.mixin.getErrorSchemaOrThrowBaseException(m,this.options.defaultNamespace,n,a,d,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const C=i.NormalizedSchema.of(h);const P=a.message??a.Message??"UnknownError";const D=this.compositeErrorRegistry.getErrorCtor(h)??Error;const k=new D(P);const L={};for(const[e,t]of C.structIterator()){if(a[e]!=null){L[e]=this.deserializer.readValue(t,a[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(a,L)}throw this.mixin.decorateServiceException(Object.assign(k,f,{$fault:C.getMergedTraits().error,message:P},L),a)}}const _toStr=e=>{if(e==null){return e}if(typeof e==="number"||typeof e==="bigint"){const t=new Error(`Received number ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}if(typeof e==="boolean"){const t=new Error(`Received boolean ${e} where a string was expected.`);t.name="Warning";console.warn(t);return String(e)}return e};const _toBool=e=>{if(e==null){return e}if(typeof e==="string"){const t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){const t=new Error(`Received string "${e}" where a boolean was expected.`);t.name="Warning";console.warn(t)}return e!==""&&t!=="false"}return e};const _toNum=e=>{if(e==null){return e}if(typeof e==="string"){const t=Number(e);if(t.toString()!==e){const t=new Error(`Received string "${e}" where a number was expected.`);t.name="Warning";console.warn(t);return e}return t}return e};class SerdeContextConfig{serdeContext;setSerdeContext(e){this.serdeContext=e}}class UnionSerde{from;to;keys;constructor(e,t){this.from=e;this.to=t;this.keys=new Set(Object.keys(this.from).filter((e=>e!=="__type")))}mark(e){this.keys.delete(e)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){const e=this.keys.values().next().value;const t=this.from[e];this.to.$unknown=[e,t]}}}function jsonReviver(e,t,n){if(n?.source){const e=n.source;if(typeof t==="number"){if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||e!==String(t)){const t=e.includes(".");if(t){return new m.NumericValue(e,"bigDecimal")}else{return BigInt(e)}}}}return t}const collectBodyString=(e,t)=>a.collectBody(e,t).then((e=>(t?.utf8Encoder??f.toUtf8)(e)));const parseJsonBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){try{return JSON.parse(e)}catch(t){if(t?.name==="SyntaxError"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}}return{}}));const parseJsonErrorBody=async(e,t)=>{const n=await parseJsonBody(e,t);n.message=n.message??n.Message;return n};const loadRestJsonErrorCode=(e,t)=>{const findKey=(e,t)=>Object.keys(e).find((e=>e.toLowerCase()===t.toLowerCase()));const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};const n=findKey(e.headers,"x-amzn-errortype");if(n!==undefined){return sanitizeErrorCode(e.headers[n])}if(t&&typeof t==="object"){const e=findKey(t,"code");if(e&&t[e]!==undefined){return sanitizeErrorCode(t[e])}if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}}};class JsonShapeDeserializer extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}async read(e,t){return this._read(e,typeof t==="string"?JSON.parse(t,jsonReviver):await parseJsonBody(t,this.serdeContext))}readObject(e,t){return this._read(e,t)}_read(e,t){const n=t!==null&&typeof t==="object";const o=i.NormalizedSchema.of(e);if(n){if(o.isStructSchema()){const e=t;const n=o.isUnionSchema();const i={};let a=void 0;const{jsonName:d}=this.settings;if(d){a={}}let m;if(n){m=new UnionSerde(e,i)}for(const[t,h]of o.structIterator()){let o=t;if(d){o=h.getMergedTraits().jsonName??o;a[o]=t}if(n){m.mark(o)}if(e[o]!=null){i[t]=this._read(h,e[o])}}if(n){m.writeUnknown()}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){const e=d?a[t]??t:t;if(!(e in i)){i[e]=n}}}return i}if(Array.isArray(t)&&o.isListSchema()){const e=o.getValueSchema();const n=[];for(const o of t){n.push(this._read(e,o))}return n}if(o.isMapSchema()){const e=o.getValueSchema();const n={};for(const[o,i]of Object.entries(t)){n[o]=this._read(e,i)}return n}}if(o.isBlobSchema()&&typeof t==="string"){return h.fromBase64(t)}const a=o.getMergedTraits().mediaType;if(o.isStringSchema()&&typeof t==="string"&&a){const e=a==="application/json"||a.endsWith("+json");if(e){return m.LazyJsonString.from(t)}return t}if(o.isTimestampSchema()&&t!=null){const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:return m.parseRfc3339DateTimeWithOffset(t);case 6:return m.parseRfc7231DateTime(t);case 7:return m.parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(o.isBigIntegerSchema()&&(typeof t==="number"||typeof t==="string")){return BigInt(t)}if(o.isBigDecimalSchema()&&t!=undefined){if(t instanceof m.NumericValue){return t}const e=t;if(e.type==="bigDecimal"&&"string"in e){return new m.NumericValue(e.string,e.type)}return new m.NumericValue(String(t),"bigDecimal")}if(o.isNumericSchema()&&typeof t==="string"){switch(t){case"Infinity":return Infinity;case"-Infinity":return-Infinity;case"NaN":return NaN}return t}if(o.isDocumentSchema()){if(n){const e=Array.isArray(t)?[]:{};for(const[n,i]of Object.entries(t)){if(i instanceof m.NumericValue){e[n]=i}else{e[n]=this._read(o,i)}}return e}else{return structuredClone(t)}}return t}}const P=String.fromCharCode(925);class JsonReplacer{values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1){throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=1;return(e,t)=>{if(t instanceof m.NumericValue){const e=`${P+"nv"+this.counter++}_`+t.string;this.values.set(`"${e}"`,t.string);return e}if(typeof t==="bigint"){const e=t.toString();const n=`${P+"b"+this.counter++}_`+e;this.values.set(`"${n}"`,e);return n}return t}}replaceInJson(e){if(this.stage===0){throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.")}if(this.stage===2){throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.")}this.stage=2;if(this.counter===0){return e}for(const[t,n]of this.values){e=e.replace(t,n)}return e}}class JsonShapeSerializer extends SerdeContextConfig{settings;buffer;useReplacer=false;rootSchema;constructor(e){super();this.settings=e}write(e,t){this.rootSchema=i.NormalizedSchema.of(e);this.buffer=this._write(this.rootSchema,t)}writeDiscriminatedDocument(e,t){this.write(e,t);if(typeof this.buffer==="object"){this.buffer.__type=i.NormalizedSchema.of(e).getName(true)}}flush(){const{rootSchema:e,useReplacer:t}=this;this.rootSchema=undefined;this.useReplacer=false;if(e?.isStructSchema()||e?.isDocumentSchema()){if(!t){return JSON.stringify(this.buffer)}const e=new JsonReplacer;return e.replaceInJson(JSON.stringify(this.buffer,e.createReplacer(),0))}return this.buffer}_write(e,t,n){const o=t!==null&&typeof t==="object";const a=i.NormalizedSchema.of(e);if(o){if(a.isStructSchema()){const e=t;const n={};const{jsonName:o}=this.settings;let i=void 0;if(o){i={}}for(const[t,d]of a.structIterator()){const m=this._write(d,e[t],a);if(m!==undefined){let e=t;if(o){e=d.getMergedTraits().jsonName??t;i[t]=e}n[e]=m}}if(a.isUnionSchema()&&Object.keys(n).length===0){const{$unknown:t}=e;if(Array.isArray(t)){const[e,o]=t;n[e]=this._write(15,o)}}else if(typeof e.__type==="string"){for(const[t,a]of Object.entries(e)){const e=o?i[t]??t:t;if(!(e in n)){n[e]=this._write(15,a)}}}return n}if(Array.isArray(t)&&a.isListSchema()){const e=a.getValueSchema();const n=[];const o=!!a.getMergedTraits().sparse;for(const i of t){if(o||i!=null){n.push(this._write(e,i))}}return n}if(a.isMapSchema()){const e=a.getValueSchema();const n={};const o=!!a.getMergedTraits().sparse;for(const[i,a]of Object.entries(t)){if(o||a!=null){n[i]=this._write(e,a)}}return n}if(t instanceof Uint8Array&&(a.isBlobSchema()||a.isDocumentSchema())){if(a===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??h.toBase64)(t)}if(t instanceof Date&&(a.isTimestampSchema()||a.isDocumentSchema())){const e=d.determineTimestampFormat(a,this.settings);switch(e){case 5:return t.toISOString().replace(".000Z","Z");case 6:return m.dateToUtcString(t);case 7:return t.getTime()/1e3;default:console.warn("Missing timestamp format, using epoch seconds",t);return t.getTime()/1e3}}if(t instanceof m.NumericValue){this.useReplacer=true}}if(t===null&&n?.isStructSchema()){return void 0}if(a.isStringSchema()){if(typeof t==="undefined"&&a.isIdempotencyToken()){return m.generateIdempotencyToken()}const e=a.getMergedTraits().mediaType;if(t!=null&&e){const n=e==="application/json"||e.endsWith("+json");if(n){return m.LazyJsonString.from(t)}}return t}if(typeof t==="number"&&a.isNumericSchema()){if(Math.abs(t)===Infinity||isNaN(t)){return String(t)}return t}if(typeof t==="string"&&a.isBlobSchema()){if(a===this.rootSchema){return t}return(this.serdeContext?.base64Encoder??h.toBase64)(t)}if(typeof t==="bigint"){this.useReplacer=true}if(a.isDocumentSchema()){if(o){const e=Array.isArray(t)?[]:{};for(const[n,o]of Object.entries(t)){if(o instanceof m.NumericValue){this.useReplacer=true;e[n]=o}else{e[n]=this._write(a,o)}}return e}else{return structuredClone(t)}}return t}}class JsonCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new JsonShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new JsonShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsJsonRpcProtocol extends d.RpcProtocol{serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t});this.serviceTarget=n;this.codec=i??new JsonCodec({timestampFormat:{useTrait:true,default:7},jsonName:false});this.serializer=this.codec.createSerializer();this.deserializer=this.codec.createDeserializer();this.awsQueryCompatible=!!o;this.mixin=new ProtocolLib(this.awsQueryCompatible)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-amz-json-${this.getJsonRpcVersion()}`,"x-amz-target":`${this.serviceTarget}.${e.name}`});if(this.awsQueryCompatible){o.headers["x-amzn-query-mode"]="true"}if(i.deref(e.input)==="unit"||!o.body){o.body="{}"}return o}getPayloadCodec(){return this.codec}async handleError(e,t,n,o,a){if(this.awsQueryCompatible){this.mixin.setQueryCompatError(o,n)}const d=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:m,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:undefined);const f=i.NormalizedSchema.of(m);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(m)??Error;const D=new P(C);const k={};for(const[e,t]of f.structIterator()){if(o[e]!=null){k[e]=this.codec.createDeserializer().readObject(t,o[e])}}if(this.awsQueryCompatible){this.mixin.queryCompatOutput(o,k)}throw this.mixin.decorateServiceException(Object.assign(D,h,{$fault:f.getMergedTraits().error,message:C},k),o)}}class AwsJson1_0Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}class AwsJson1_1Protocol extends AwsJsonRpcProtocol{constructor({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i}){super({defaultNamespace:e,errorTypeRegistries:t,serviceTarget:n,awsQueryCompatible:o,jsonCodec:i})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}class AwsRestJsonProtocol extends d.HttpBindingProtocol{serializer;deserializer;codec;mixin=new ProtocolLib;constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t});const n={timestampFormat:{useTrait:true,default:7},httpBindings:true,jsonName:true};this.codec=new JsonCodec(n);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),n);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),n)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(e){this.codec.setSerdeContext(e);super.setSerdeContext(e)}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const a=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);if(e){o.headers["content-type"]=e}}if(o.body==null&&o.headers["content-type"]===this.getDefaultContentType()){o.body="{}"}return o}async deserializeResponse(e,t,n){const o=await super.deserializeResponse(e,t,n);const a=i.NormalizedSchema.of(e.output);for(const[e,t]of a.structIterator()){if(t.getMemberTraits().httpPayload&&!(e in o)){o[e]=null}}return o}async handleError(e,t,n,o,a){const d=loadRestJsonErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const{errorSchema:m,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a);const f=i.NormalizedSchema.of(m);const C=o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(m)??Error;const D=new P(C);await this.deserializeHttpMessage(m,t,n,o);const k={};for(const[e,t]of f.structIterator()){const n=t.getMergedTraits().jsonName??e;k[e]=this.codec.createDeserializer().readObject(t,o[n])}throw this.mixin.decorateServiceException(Object.assign(D,h,{$fault:f.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/json"}}const awsExpectUnion=e=>{if(e==null){return undefined}if(typeof e==="object"&&"__type"in e){delete e.__type}return a.expectUnion(e)};class XmlShapeDeserializer extends SerdeContextConfig{settings;stringDeserializer;constructor(e){super();this.settings=e;this.stringDeserializer=new d.FromStringShapeDeserializer(e)}setSerdeContext(e){this.serdeContext=e;this.stringDeserializer.setSerdeContext(e)}read(e,t,n){const o=i.NormalizedSchema.of(e);const a=o.getMemberSchemas();const d=o.isStructSchema()&&o.isMemberSchema()&&!!Object.values(a).find((e=>!!e.getMemberTraits().eventPayload));if(d){const e={};const n=Object.keys(a)[0];const o=a[n];if(o.isBlobSchema()){e[n]=t}else{e[n]=this.read(a[n],t)}return e}const m=(this.serdeContext?.utf8Encoder??f.toUtf8)(t);const h=this.parseXml(m);return this.readSchema(e,n?h[n]:h)}readSchema(e,t){const n=i.NormalizedSchema.of(e);if(n.isUnitSchema()){return}const o=n.getMergedTraits();if(n.isListSchema()&&!Array.isArray(t)){return this.readSchema(n,[t])}if(t==null){return t}if(typeof t==="object"){const e=!!o.xmlFlattened;if(n.isListSchema()){const o=n.getValueSchema();const i=[];const a=o.getMergedTraits().xmlName??"member";const d=e?t:(t[0]??t)[a];if(d==null){return i}const m=Array.isArray(d)?d:[d];for(const e of m){i.push(this.readSchema(o,e))}return i}const i={};if(n.isMapSchema()){const o=n.getKeySchema();const a=n.getValueSchema();let d;if(e){d=Array.isArray(t)?t:[t]}else{d=Array.isArray(t.entry)?t.entry:[t.entry]}const m=o.getMergedTraits().xmlName??"key";const h=a.getMergedTraits().xmlName??"value";for(const e of d){const t=e[m];const n=e[h];i[t]=this.readSchema(a,n)}return i}if(n.isStructSchema()){const e=n.isUnionSchema();let o;if(e){o=new UnionSerde(t,i)}for(const[a,d]of n.structIterator()){const n=d.getMergedTraits();const m=!n.httpPayload?d.getMemberTraits().xmlName??a:n.xmlName??d.getName();if(e){o.mark(m)}if(t[m]!=null){i[a]=this.readSchema(d,t[m])}}if(e){o.writeUnknown()}return i}if(n.isDocumentSchema()){return t}throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${n.getName(true)}`)}if(n.isListSchema()){return[]}if(n.isMapSchema()||n.isStructSchema()){return{}}return this.stringDeserializer.read(n,t)}parseXml(e){if(e.length){let t;try{t=C.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return a.getValueFromTextNode(i)}return{}}}class QueryShapeSerializer extends SerdeContextConfig{settings;buffer;constructor(e){super();this.settings=e}write(e,t,n=""){if(this.buffer===undefined){this.buffer=""}const o=i.NormalizedSchema.of(e);if(n&&!n.endsWith(".")){n+="."}if(o.isBlobSchema()){if(typeof t==="string"||t instanceof Uint8Array){this.writeKey(n);this.writeValue((this.serdeContext?.base64Encoder??h.toBase64)(t))}}else if(o.isBooleanSchema()||o.isNumericSchema()||o.isStringSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}else if(o.isIdempotencyToken()){this.writeKey(n);this.writeValue(m.generateIdempotencyToken())}}else if(o.isBigIntegerSchema()){if(t!=null){this.writeKey(n);this.writeValue(String(t))}}else if(o.isBigDecimalSchema()){if(t!=null){this.writeKey(n);this.writeValue(t instanceof m.NumericValue?t.string:String(t))}}else if(o.isTimestampSchema()){if(t instanceof Date){this.writeKey(n);const e=d.determineTimestampFormat(o,this.settings);switch(e){case 5:this.writeValue(t.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue(a.dateToUtcString(t));break;case 7:this.writeValue(String(t.getTime()/1e3));break}}}else if(o.isDocumentSchema()){if(Array.isArray(t)){this.write(64|15,t,n)}else if(t instanceof Date){this.write(4,t,n)}else if(t instanceof Uint8Array){this.write(21,t,n)}else if(t&&typeof t==="object"){this.write(128|15,t,n)}else{this.writeKey(n);this.writeValue(String(t))}}else if(o.isListSchema()){if(Array.isArray(t)){if(t.length===0){if(this.settings.serializeEmptyLists){this.writeKey(n);this.writeValue("")}}else{const e=o.getValueSchema();const i=this.settings.flattenLists||o.getMergedTraits().xmlFlattened;let a=1;for(const o of t){if(o==null){continue}const t=e.getMergedTraits();const d=this.getKey("member",t.xmlName,t.ec2QueryName);const m=i?`${n}${a}`:`${n}${d}.${a}`;this.write(e,o,m);++a}}}}else if(o.isMapSchema()){if(t&&typeof t==="object"){const e=o.getKeySchema();const i=o.getValueSchema();const a=o.getMergedTraits().xmlFlattened;let d=1;for(const[o,m]of Object.entries(t)){if(m==null){continue}const t=e.getMergedTraits();const h=this.getKey("key",t.xmlName,t.ec2QueryName);const f=a?`${n}${d}.${h}`:`${n}entry.${d}.${h}`;const C=i.getMergedTraits();const P=this.getKey("value",C.xmlName,C.ec2QueryName);const D=a?`${n}${d}.${P}`:`${n}entry.${d}.${P}`;this.write(e,o,f);this.write(i,m,D);++d}}}else if(o.isStructSchema()){if(t&&typeof t==="object"){let e=false;for(const[i,a]of o.structIterator()){if(t[i]==null&&!a.isIdempotencyToken()){continue}const o=a.getMergedTraits();const d=this.getKey(i,o.xmlName,o.ec2QueryName,"struct");const m=`${n}${d}`;this.write(a,t[i],m);e=true}if(!e&&o.isUnionSchema()){const{$unknown:e}=t;if(Array.isArray(e)){const[t,o]=e;const i=`${n}${t}`;this.write(15,o,i)}}}}else if(o.isUnitSchema());else{throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${o.getName(true)}`)}}flush(){if(this.buffer===undefined){throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.")}const e=this.buffer;delete this.buffer;return e}getKey(e,t,n,o){const{ec2:i,capitalizeKeys:a}=this.settings;if(i&&n){return n}const d=t??e;if(a&&o==="struct"){return d[0].toUpperCase()+d.slice(1)}return d}writeKey(e){if(e.endsWith(".")){e=e.slice(0,e.length-1)}this.buffer+=`&${d.extendedEncodeURIComponent(e)}=`}writeValue(e){this.buffer+=d.extendedEncodeURIComponent(e)}}class AwsQueryProtocol extends d.RpcProtocol{options;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super({defaultNamespace:e.defaultNamespace,errorTypeRegistries:e.errorTypeRegistries});this.options=e;const t={timestampFormat:{useTrait:true,default:5},httpBindings:false,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace,serializeEmptyLists:true};this.serializer=new QueryShapeSerializer(t);this.deserializer=new XmlShapeDeserializer(t)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(e){this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);if(!o.path.endsWith("/")){o.path+="/"}Object.assign(o.headers,{"content-type":`application/x-www-form-urlencoded`});if(i.deref(e.input)==="unit"||!o.body){o.body=""}const a=e.name.split("#")[1]??e.name;o.body=`Action=${a}&Version=${this.options.version}`+o.body;if(o.body.endsWith("&")){o.body=o.body.slice(-1)}return o}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const m={};if(n.statusCode>=300){const i=await d.collectBody(n.body,t);if(i.byteLength>0){Object.assign(m,await o.read(15,i))}await this.handleError(e,t,n,m,this.deserializeMetadata(n))}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const h=e.name.split("#")[1]??e.name;const f=a.isStructSchema()&&this.useNestedResult()?h+"Result":undefined;const C=await d.collectBody(n.body,t);if(C.byteLength>0){Object.assign(m,await o.read(a,C,f))}const P={$metadata:this.deserializeMetadata(n),...m};return P}useNestedResult(){return true}async handleError(e,t,n,o,a){const d=this.loadQueryErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);const m=this.loadQueryError(o)??{};const h=this.loadQueryErrorMessage(o);m.message=h;m.Error={Type:m.Type,Code:m.Code,Message:h};const{errorSchema:f,errorMetadata:C}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,m,a,this.mixin.findQueryCompatibleError);const P=i.NormalizedSchema.of(f);const D=this.compositeErrorRegistry.getErrorCtor(f)??Error;const k=new D(h);const L={Type:m.Error.Type,Code:m.Error.Code,Error:m.Error};for(const[e,t]of P.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=m[n]??o[n];L[e]=this.deserializer.readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(k,C,{$fault:P.getMergedTraits().error,message:h},L),o)}loadQueryErrorCode(e,t){const n=(t.Errors?.[0]?.Error??t.Errors?.Error??t.Error)?.Code;if(n!==undefined){return n}if(e.statusCode==404){return"NotFound"}}loadQueryError(e){return e.Errors?.[0]?.Error??e.Errors?.Error??e.Error}loadQueryErrorMessage(e){const t=this.loadQueryError(e);return t?.message??t?.Message??e.message??e.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}class AwsEc2QueryProtocol extends AwsQueryProtocol{options;constructor(e){super(e);this.options=e;const t={capitalizeKeys:true,flattenLists:true,serializeEmptyLists:false,ec2:true};Object.assign(this.serializer.settings,t)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return false}}const parseXmlBody=(e,t)=>collectBodyString(e,t).then((e=>{if(e.length){let t;try{t=C.parseXML(e)}catch(t){if(t&&typeof t==="object"){Object.defineProperty(t,"$responseBodyText",{value:e})}throw t}const n="#text";const o=Object.keys(t)[0];const i=t[o];if(i[n]){i[o]=i[n];delete i[n]}return a.getValueFromTextNode(i)}return{}}));const parseXmlErrorBody=async(e,t)=>{const n=await parseXmlBody(e,t);if(n.Error){n.Error.message=n.Error.message??n.Error.Message}return n};const loadRestXmlErrorCode=(e,t)=>{if(t?.Error?.Code!==undefined){return t.Error.Code}if(t?.Code!==undefined){return t.Code}if(e.statusCode==404){return"NotFound"}};class XmlShapeSerializer extends SerdeContextConfig{settings;stringBuffer;byteBuffer;buffer;constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);if(n.isStringSchema()&&typeof t==="string"){this.stringBuffer=t}else if(n.isBlobSchema()){this.byteBuffer="byteLength"in t?t:(this.serdeContext?.base64Decoder??h.fromBase64)(t)}else{this.buffer=this.writeStruct(n,t,undefined);const e=n.getMergedTraits();if(e.httpPayload&&!e.xmlName){this.buffer.withName(n.getName())}}}flush(){if(this.byteBuffer!==undefined){const e=this.byteBuffer;delete this.byteBuffer;return e}if(this.stringBuffer!==undefined){const e=this.stringBuffer;delete this.stringBuffer;return e}const e=this.buffer;if(this.settings.xmlNamespace){if(!e?.attributes?.["xmlns"]){e.addAttribute("xmlns",this.settings.xmlNamespace)}}delete this.buffer;return e.toString()}writeStruct(e,t,n){const o=e.getMergedTraits();const i=e.isMemberSchema()&&!o.httpPayload?e.getMemberTraits().xmlName??e.getMemberName():o.xmlName??e.getName();if(!i||!e.isStructSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${e.getName(true)}.`)}const a=C.XmlNode.of(i);const[d,m]=this.getXmlnsAttribute(e,n);for(const[n,o]of e.structIterator()){const e=t[n];if(e!=null||o.isIdempotencyToken()){if(o.getMergedTraits().xmlAttribute){a.addAttribute(o.getMergedTraits().xmlName??n,this.writeSimple(o,e));continue}if(o.isListSchema()){this.writeList(o,e,a,m)}else if(o.isMapSchema()){this.writeMap(o,e,a,m)}else if(o.isStructSchema()){a.addChildNode(this.writeStruct(o,e,m))}else{const t=C.XmlNode.of(o.getMergedTraits().xmlName??o.getMemberName());this.writeSimpleInto(o,e,t,m);a.addChildNode(t)}}}const{$unknown:h}=t;if(h&&e.isUnionSchema()&&Array.isArray(h)&&Object.keys(t).length===1){const[e,n]=h;const o=C.XmlNode.of(e);if(typeof n!=="string"){if(t instanceof C.XmlNode||t instanceof C.XmlText){a.addChildNode(t)}else{throw new Error(`@aws-sdk - $unknown union member in XML requires `+`value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.`)}}this.writeSimpleInto(0,n,o,m);a.addChildNode(o)}if(m){a.addAttribute(d,m)}return a}writeList(e,t,n,o){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${e.getName(true)}`)}const i=e.getMergedTraits();const a=e.getValueSchema();const d=a.getMergedTraits();const m=!!d.sparse;const h=!!i.xmlFlattened;const[f,P]=this.getXmlnsAttribute(e,o);const writeItem=(t,n)=>{if(a.isListSchema()){this.writeList(a,Array.isArray(n)?n:[n],t,P)}else if(a.isMapSchema()){this.writeMap(a,n,t,P)}else if(a.isStructSchema()){const o=this.writeStruct(a,n,P);t.addChildNode(o.withName(h?i.xmlName??e.getMemberName():d.xmlName??"member"))}else{const o=C.XmlNode.of(h?i.xmlName??e.getMemberName():d.xmlName??"member");this.writeSimpleInto(a,n,o,P);t.addChildNode(o)}};if(h){for(const e of t){if(m||e!=null){writeItem(n,e)}}}else{const o=C.XmlNode.of(i.xmlName??e.getMemberName());if(P){o.addAttribute(f,P)}for(const e of t){if(m||e!=null){writeItem(o,e)}}n.addChildNode(o)}}writeMap(e,t,n,o,i=false){if(!e.isMemberSchema()){throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${e.getName(true)}`)}const a=e.getMergedTraits();const d=e.getKeySchema();const m=d.getMergedTraits();const h=m.xmlName??"key";const f=e.getValueSchema();const P=f.getMergedTraits();const D=P.xmlName??"value";const k=!!P.sparse;const L=!!a.xmlFlattened;const[F,q]=this.getXmlnsAttribute(e,o);const addKeyValue=(e,t,n)=>{const o=C.XmlNode.of(h,t);const[i,a]=this.getXmlnsAttribute(d,q);if(a){o.addAttribute(i,a)}e.addChildNode(o);let m=C.XmlNode.of(D);if(f.isListSchema()){this.writeList(f,n,m,q)}else if(f.isMapSchema()){this.writeMap(f,n,m,q,true)}else if(f.isStructSchema()){m=this.writeStruct(f,n,q)}else{this.writeSimpleInto(f,n,m,q)}e.addChildNode(m)};if(L){for(const[o,i]of Object.entries(t)){if(k||i!=null){const t=C.XmlNode.of(a.xmlName??e.getMemberName());addKeyValue(t,o,i);n.addChildNode(t)}}}else{let o;if(!i){o=C.XmlNode.of(a.xmlName??e.getMemberName());if(q){o.addAttribute(F,q)}n.addChildNode(o)}for(const[e,a]of Object.entries(t)){if(k||a!=null){const t=C.XmlNode.of("entry");addKeyValue(t,e,a);(i?n:o).addChildNode(t)}}}}writeSimple(e,t){if(null===t){throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.")}const n=i.NormalizedSchema.of(e);let o=null;if(t&&typeof t==="object"){if(n.isBlobSchema()){o=(this.serdeContext?.base64Encoder??h.toBase64)(t)}else if(n.isTimestampSchema()&&t instanceof Date){const e=d.determineTimestampFormat(n,this.settings);switch(e){case 5:o=t.toISOString().replace(".000Z","Z");break;case 6:o=a.dateToUtcString(t);break;case 7:o=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",t);o=a.dateToUtcString(t);break}}else if(n.isBigDecimalSchema()&&t){if(t instanceof m.NumericValue){return t.string}return String(t)}else if(n.isMapSchema()||n.isListSchema()){throw new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead.")}else{throw new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${n.getName(true)}`)}}if(n.isBooleanSchema()||n.isNumericSchema()||n.isBigIntegerSchema()||n.isBigDecimalSchema()){o=String(t)}if(n.isStringSchema()){if(t===undefined&&n.isIdempotencyToken()){o=m.generateIdempotencyToken()}else{o=String(t)}}if(o===null){throw new Error(`Unhandled schema-value pair ${n.getName(true)}=${t}`)}return o}writeSimpleInto(e,t,n,o){const a=this.writeSimple(e,t);const d=i.NormalizedSchema.of(e);const m=new C.XmlText(a);const[h,f]=this.getXmlnsAttribute(d,o);if(f){n.addAttribute(h,f)}n.addChildNode(m)}getXmlnsAttribute(e,t){const n=e.getMergedTraits();const[o,i]=n.xmlNamespace??[];if(i&&i!==t){return[o?`xmlns:${o}`:"xmlns",i]}return[void 0,void 0]}}class XmlCodec extends SerdeContextConfig{settings;constructor(e){super();this.settings=e}createSerializer(){const e=new XmlShapeSerializer(this.settings);e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new XmlShapeDeserializer(this.settings);e.setSerdeContext(this.serdeContext);return e}}class AwsRestXmlProtocol extends d.HttpBindingProtocol{codec;serializer;deserializer;mixin=new ProtocolLib;constructor(e){super(e);const t={timestampFormat:{useTrait:true,default:5},httpBindings:true,xmlNamespace:e.xmlNamespace,serviceNamespace:e.defaultNamespace};this.codec=new XmlCodec(t);this.serializer=new d.HttpInterceptingShapeSerializer(this.codec.createSerializer(),t);this.deserializer=new d.HttpInterceptingShapeDeserializer(this.codec.createDeserializer(),t);this.compositeErrorRegistry}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);const a=i.NormalizedSchema.of(e.input);if(!o.headers["content-type"]){const e=this.mixin.resolveRestContentType(this.getDefaultContentType(),a);if(e){o.headers["content-type"]=e}}if(typeof o.body==="string"&&o.headers["content-type"]===this.getDefaultContentType()&&!o.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(a)){o.body='<?xml version="1.0" encoding="UTF-8"?>'+o.body}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,a){const d=loadRestXmlErrorCode(n,o)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,d,this.options.defaultNamespace);if(o.Error&&typeof o.Error==="object"){for(const e of Object.keys(o.Error)){o[e]=o.Error[e];if(e.toLowerCase()==="message"){o.message=o.Error[e]}}}if(o.RequestId&&!a.requestId){a.requestId=o.RequestId}const{errorSchema:m,errorMetadata:h}=await this.mixin.getErrorSchemaOrThrowBaseException(d,this.options.defaultNamespace,n,o,a);const f=i.NormalizedSchema.of(m);const C=o.Error?.message??o.Error?.Message??o.message??o.Message??"UnknownError";const P=this.compositeErrorRegistry.getErrorCtor(m)??Error;const D=new P(C);await this.deserializeHttpMessage(m,t,n,o);const k={};for(const[e,t]of f.structIterator()){const n=t.getMergedTraits().xmlName??e;const i=o.Error?.[n]??o[n];k[e]=this.codec.createDeserializer().readSchema(t,i)}throw this.mixin.decorateServiceException(Object.assign(D,h,{$fault:f.getMergedTraits().error,message:C},k),o)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(e){for(const[,t]of e.structIterator()){if(t.getMergedTraits().httpPayload){return!(t.isStructSchema()||t.isMapSchema()||t.isListSchema())}}return false}}t.AwsEc2QueryProtocol=AwsEc2QueryProtocol;t.AwsJson1_0Protocol=AwsJson1_0Protocol;t.AwsJson1_1Protocol=AwsJson1_1Protocol;t.AwsJsonRpcProtocol=AwsJsonRpcProtocol;t.AwsQueryProtocol=AwsQueryProtocol;t.AwsRestJsonProtocol=AwsRestJsonProtocol;t.AwsRestXmlProtocol=AwsRestXmlProtocol;t.AwsSmithyRpcV2CborProtocol=AwsSmithyRpcV2CborProtocol;t.JsonCodec=JsonCodec;t.JsonShapeDeserializer=JsonShapeDeserializer;t.JsonShapeSerializer=JsonShapeSerializer;t.QueryShapeSerializer=QueryShapeSerializer;t.XmlCodec=XmlCodec;t.XmlShapeDeserializer=XmlShapeDeserializer;t.XmlShapeSerializer=XmlShapeSerializer;t._toBool=_toBool;t._toNum=_toNum;t._toStr=_toStr;t.awsExpectUnion=awsExpectUnion;t.loadRestJsonErrorCode=loadRestJsonErrorCode;t.loadRestXmlErrorCode=loadRestXmlErrorCode;t.parseJsonBody=parseJsonBody;t.parseJsonErrorBody=parseJsonErrorBody;t.parseXmlBody=parseXmlBody;t.parseXmlErrorBody=parseXmlErrorBody},5606:(e,t,n)=>{var o=n(5152);var i=n(8857);const a="AWS_ACCESS_KEY_ID";const d="AWS_SECRET_ACCESS_KEY";const m="AWS_SESSION_TOKEN";const h="AWS_CREDENTIAL_EXPIRATION";const f="AWS_CREDENTIAL_SCOPE";const C="AWS_ACCOUNT_ID";const fromEnv=e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");const t=process.env[a];const n=process.env[d];const P=process.env[m];const D=process.env[h];const k=process.env[f];const L=process.env[C];if(t&&n){const e={accessKeyId:t,secretAccessKey:n,...P&&{sessionToken:P},...D&&{expiration:new Date(D)},...k&&{credentialScope:k},...L&&{accountId:L}};o.setCredentialFeature(e,"CREDENTIALS_ENV_VARS","g");return e}throw new i.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})};t.ENV_ACCOUNT_ID=C;t.ENV_CREDENTIAL_SCOPE=f;t.ENV_EXPIRATION=h;t.ENV_KEY=a;t.ENV_SECRET=d;t.ENV_SESSION=m;t.fromEnv=fromEnv},5861:(e,t,n)=>{var o=n(5606);var i=n(8857);var a=n(4964);const d="AWS_EC2_METADATA_DISABLED";const remoteProvider=async e=>{const{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:o,fromContainerMetadata:a,fromInstanceMetadata:m}=await n.e(566).then(n.t.bind(n,566,19));if(process.env[o]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");const{fromHttp:t}=await n.e(605).then(n.bind(n,8605));return i.chain(t(e),a(e))}if(process.env[d]&&process.env[d]!=="false"){return async()=>{throw new i.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}}e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata");return m(e)};function memoizeChain(e,t){const n=internalCreateChain(e);let o;let i;let a;const provider=async e=>{if(e?.forceRefresh){return await n(e)}if(a?.expiration){if(a?.expiration?.getTime()<Date.now()){a=undefined}}if(o){await o}else if(!a||t?.(a)){if(a){if(!i){i=n(e).then((e=>{a=e})).finally((()=>{i=undefined}))}}else{o=n(e).then((e=>{a=e})).finally((()=>{o=undefined}));return provider(e)}}return a};return provider}const internalCreateChain=e=>async t=>{let n;for(const o of e){try{return await o(t)}catch(e){n=e;if(e?.tryNextLink){continue}throw e}}throw n};let m=false;const defaultProvider=(e={})=>memoizeChain([async()=>{const t=e.profile??process.env[a.ENV_PROFILE];if(t){const t=process.env[o.ENV_KEY]&&process.env[o.ENV_SECRET];if(t){if(!m){const t=e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn;t(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:\n Multiple credential sources detected: \n Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.\n This SDK will proceed with the AWS_PROFILE value.\n \n However, a future version may change this behavior to prefer the ENV static credentials.\n Please ensure that your environment only sets either the AWS_PROFILE or the\n AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.\n`);m=true}}throw new i.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:true})}e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv");return o.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");const{ssoStartUrl:o,ssoAccountId:a,ssoRegion:d,ssoRoleName:m,ssoSession:h}=e;if(!o&&!a&&!d&&!m&&!h){throw new i.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger})}const{fromSSO:f}=await n.e(998).then(n.t.bind(n,998,19));return f(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");const{fromIni:o}=await n.e(869).then(n.t.bind(n,5869,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");const{fromProcess:o}=await n.e(360).then(n.t.bind(n,5360,19));return o(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");const{fromTokenFile:o}=await Promise.all([n.e(136),n.e(956)]).then(n.t.bind(n,9956,23));return o(e)(t)},async()=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider");return(await remoteProvider(e))()},async()=>{throw new i.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:false,logger:e.logger})}],credentialsTreatedAsExpired);const credentialsWillNeedRefresh=e=>e?.expiration!==undefined;const credentialsTreatedAsExpired=e=>e?.expiration!==undefined&&e.expiration.getTime()-Date.now()<3e5;t.credentialsTreatedAsExpired=credentialsTreatedAsExpired;t.credentialsWillNeedRefresh=credentialsWillNeedRefresh;t.defaultProvider=defaultProvider},2590:(e,t,n)=>{var o=n(2356);function resolveHostHeaderConfig(e){return e}const hostHeaderMiddleware=e=>t=>async n=>{if(!o.HttpRequest.isInstance(n.request))return t(n);const{request:i}=n;const{handlerProtocol:a=""}=e.requestHandler.metadata||{};if(a.indexOf("h2")>=0&&!i.headers[":authority"]){delete i.headers["host"];i.headers[":authority"]=i.hostname+(i.port?":"+i.port:"")}else if(!i.headers["host"]){let e=i.hostname;if(i.port!=null)e+=`:${i.port}`;i.headers["host"]=e}return t(n)};const i={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:true};const getHostHeaderPlugin=e=>({applyToStack:t=>{t.add(hostHeaderMiddleware(e),i)}});t.getHostHeaderPlugin=getHostHeaderPlugin;t.hostHeaderMiddleware=hostHeaderMiddleware;t.hostHeaderMiddlewareOptions=i;t.resolveHostHeaderConfig=resolveHostHeaderConfig},5242:(e,t)=>{const loggerMiddleware=()=>(e,t)=>async n=>{try{const o=await e(n);const{clientName:i,commandName:a,logger:d,dynamoDbDocumentClientOptions:m={}}=t;const{overrideInputFilterSensitiveLog:h,overrideOutputFilterSensitiveLog:f}=m;const C=h??t.inputFilterSensitiveLog;const P=f??t.outputFilterSensitiveLog;const{$metadata:D,...k}=o.output;d?.info?.({clientName:i,commandName:a,input:C(n.input),output:P(k),metadata:D});return o}catch(e){const{clientName:o,commandName:i,logger:a,dynamoDbDocumentClientOptions:d={}}=t;const{overrideInputFilterSensitiveLog:m}=d;const h=m??t.inputFilterSensitiveLog;a?.error?.({clientName:o,commandName:i,input:h(n.input),error:e,metadata:e.$metadata});throw e}};const n={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:true};const getLoggerPlugin=e=>({applyToStack:e=>{e.add(loggerMiddleware(),n)}});t.getLoggerPlugin=getLoggerPlugin;t.loggerMiddleware=loggerMiddleware;t.loggerMiddlewareOptions=n},1568:(e,t,n)=>{var o=n(2521);const i={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:true,priority:"low"};const getRecursionDetectionPlugin=e=>({applyToStack:e=>{e.add(o.recursionDetectionMiddleware(),i)}});t.getRecursionDetectionPlugin=getRecursionDetectionPlugin;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},2521:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.recursionDetectionMiddleware=void 0;const o=n(9320);const i=n(2356);const a="X-Amzn-Trace-Id";const d="AWS_LAMBDA_FUNCTION_NAME";const m="_X_AMZN_TRACE_ID";const recursionDetectionMiddleware=()=>e=>async t=>{const{request:n}=t;if(!i.HttpRequest.isInstance(n)){return e(t)}const h=Object.keys(n.headers??{}).find((e=>e.toLowerCase()===a.toLowerCase()))??a;if(n.headers.hasOwnProperty(h)){return e(t)}const f=process.env[d];const C=process.env[m];const P=await o.InvokeStore.getInstanceAsync();const D=P?.getXRayTraceId();const k=D??C;const nonEmptyString=e=>typeof e==="string"&&e.length>0;if(nonEmptyString(f)&&nonEmptyString(k)){n.headers[a]=k}return e({...t,request:n})};t.recursionDetectionMiddleware=recursionDetectionMiddleware},2959:(e,t,n)=>{var o=n(402);var i=n(3068);var a=n(2356);var d=n(5152);var m=n(5518);const h=undefined;function isValidUserAgentAppId(e){if(e===undefined){return true}return typeof e==="string"&&e.length<=50}function resolveUserAgentConfig(e){const t=o.normalizeProvider(e.userAgentAppId??h);const{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n==="string"?[[n]]:n,userAgentAppId:async()=>{const n=await t();if(!isValidUserAgentAppId(n)){const t=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;if(typeof n!=="string"){t?.warn("userAgentAppId must be a string or undefined.")}else if(n.length>50){t?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}}return n}})}const f=/\d{12}\.ddb/;async function checkFeatures(e,t,n){const o=n.request;if(o?.headers?.["smithy-protocol"]==="rpc-v2-cbor"){d.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M")}if(typeof t.retryStrategy==="function"){const n=await t.retryStrategy();if(typeof n.mode==="string"){switch(n.mode){case m.RETRY_MODES.ADAPTIVE:d.setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case m.RETRY_MODES.STANDARD:d.setFeature(e,"RETRY_MODE_STANDARD","E");break}}}if(typeof t.accountIdEndpointMode==="function"){const n=e.endpointV2;if(String(n?.url?.hostname).match(f)){d.setFeature(e,"ACCOUNT_ID_ENDPOINT","O")}switch(await(t.accountIdEndpointMode?.())){case"disabled":d.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":d.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":d.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const i=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(i?.$source){const t=i;if(t.accountId){d.setFeature(e,"RESOLVED_ACCOUNT_ID","T")}for(const[n,o]of Object.entries(t.$source??{})){d.setFeature(e,n,o)}}}const C="user-agent";const P="x-amz-user-agent";const D=" ";const k="/";const L=/[^!$%&'*+\-.^_`|~\w]/g;const F=/[^!$%&'*+\-.^_`|~\w#]/g;const q="-";const V=1024;function encodeFeatures(e){let t="";for(const n in e){const o=e[n];if(t.length+o.length+1<=V){if(t.length){t+=","+o}else{t+=o}continue}break}return t}const userAgentMiddleware=e=>(t,n)=>async o=>{const{request:d}=o;if(!a.HttpRequest.isInstance(d)){return t(o)}const{headers:m}=d;const h=n?.userAgent?.map(escapeUserAgent)||[];const f=(await e.defaultUserAgentProvider()).map(escapeUserAgent);await checkFeatures(n,e,o);const k=n;f.push(`m/${encodeFeatures(Object.assign({},n.__smithy_context?.features,k.__aws_sdk_context?.features))}`);const L=e?.customUserAgent?.map(escapeUserAgent)||[];const F=await e.userAgentAppId();if(F){f.push(escapeUserAgent([`app`,`${F}`]))}const q=i.getUserAgentPrefix();const V=(q?[q]:[]).concat([...f,...h,...L]).join(D);const ee=[...f.filter((e=>e.startsWith("aws-sdk-"))),...L].join(D);if(e.runtime!=="browser"){if(ee){m[P]=m[P]?`${m[C]} ${ee}`:ee}m[C]=V}else{m[P]=V}return t({...o,request:d})};const escapeUserAgent=e=>{const t=e[0].split(k).map((e=>e.replace(L,q))).join(k);const n=e[1]?.replace(F,q);const o=t.indexOf(k);const i=t.substring(0,o);let a=t.substring(o+1);if(i==="api"){a=a.toLowerCase()}return[i,a,n].filter((e=>e&&e.length>0)).reduce(((e,t,n)=>{switch(n){case 0:return t;case 1:return`${e}/${t}`;default:return`${e}#${t}`}}),"")};const ee={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:true};const getUserAgentPlugin=e=>({applyToStack:t=>{t.add(userAgentMiddleware(e),ee)}});t.DEFAULT_UA_APP_ID=h;t.getUserAgentMiddlewareOptions=ee;t.getUserAgentPlugin=getUserAgentPlugin;t.resolveUserAgentConfig=resolveUserAgentConfig;t.userAgentMiddleware=userAgentMiddleware},6463:(e,t,n)=>{var o=n(5779);var i=n(9316);const getAwsRegionExtensionConfiguration=e=>({setRegion(t){e.region=t},region(){return e.region}});const resolveAwsRegionExtensionConfiguration=e=>({region:e.region()});t.NODE_REGION_CONFIG_FILE_OPTIONS=i.NODE_REGION_CONFIG_FILE_OPTIONS;t.NODE_REGION_CONFIG_OPTIONS=i.NODE_REGION_CONFIG_OPTIONS;t.REGION_ENV_NAME=i.REGION_ENV_NAME;t.REGION_INI_NAME=i.REGION_INI_NAME;t.resolveRegionConfig=i.resolveRegionConfig;t.getAwsRegionExtensionConfiguration=getAwsRegionExtensionConfiguration;t.resolveAwsRegionExtensionConfiguration=resolveAwsRegionExtensionConfiguration;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}))},5779:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.warning=void 0;t.stsRegionDefaultResolver=stsRegionDefaultResolver;const o=n(9316);const i=n(5704);function stsRegionDefaultResolver(e={}){return(0,i.loadConfig)({...o.NODE_REGION_CONFIG_OPTIONS,async default(){if(!t.warning.silence){console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly.")}return"us-east-1"}},{...o.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}t.warning={silence:false}},3068:(e,t,n)=>{var o=n(9674);var i=n(4494);const isVirtualHostableS3Bucket=(e,t=false)=>{if(t){for(const t of e.split(".")){if(!isVirtualHostableS3Bucket(t)){return false}}return true}if(!o.isValidHostLabel(e)){return false}if(e.length<3||e.length>63){return false}if(e!==e.toLowerCase()){return false}if(o.isIpAddress(e)){return false}return true};const a=":";const d="/";const parseArn=e=>{const t=e.split(a);if(t.length<6)return null;const[n,o,i,m,h,...f]=t;if(n!=="arn"||o===""||i===""||f.join(a)==="")return null;const C=f.map((e=>e.split(d))).flat();return{partition:o,service:i,region:m,accountId:h,resourceId:C}};var m=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:true,supportsFIPS:true},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:true,supportsFIPS:true},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:true,supportsFIPS:true},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:true,supportsFIPS:true},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}];var h="1.1";var f={partitions:m,version:h};let C=f;let P="";const partition=e=>{const{partitions:t}=C;for(const n of t){const{regions:t,outputs:o}=n;for(const[n,i]of Object.entries(t)){if(n===e){return{...o,...i}}}}for(const n of t){const{regionRegex:t,outputs:o}=n;if(new RegExp(t).test(e)){return{...o}}}const n=t.find((e=>e.id==="aws"));if(!n){throw new Error("Provided region was not found in the partition array or regex,"+" and default partition with id 'aws' doesn't exist.")}return{...n.outputs}};const setPartitionInfo=(e,t="")=>{C=e;P=t};const useDefaultPartitionInfo=()=>{setPartitionInfo(f,"")};const getUserAgentPrefix=()=>P;const D={isVirtualHostableS3Bucket:isVirtualHostableS3Bucket,parseArn:parseArn,partition:partition};o.customEndpointFunctions.aws=D;const resolveDefaultAwsRegionalEndpointsConfig=e=>{if(typeof e.endpointProvider!=="function"){throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.")}const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>toEndpointV1(e.endpointProvider({Region:typeof e.region==="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint==="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint==="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:undefined},{logger:e.logger}))}return e};const toEndpointV1=e=>i.parseUrl(e.url);t.EndpointError=o.EndpointError;t.isIpAddress=o.isIpAddress;t.resolveEndpoint=o.resolveEndpoint;t.awsEndpointFunctions=D;t.getUserAgentPrefix=getUserAgentPrefix;t.partition=partition;t.resolveDefaultAwsRegionalEndpointsConfig=resolveDefaultAwsRegionalEndpointsConfig;t.setPartitionInfo=setPartitionInfo;t.toEndpointV1=toEndpointV1;t.useDefaultPartitionInfo=useDefaultPartitionInfo},1656:(e,t,n)=>{var o=n(8161);var i=n(1708);var a=n(6716);var d=n(1455);var m=n(6760);var h=n(2959);const getRuntimeUserAgentPair=()=>{const e=["deno","bun","llrt"];for(const t of e){if(i.versions[t]){return[`md/${t}`,i.versions[t]]}}return["md/nodejs",i.versions.node]};const getNodeModulesParentDirs=e=>{const t=process.cwd();if(!e){return[t]}const n=m.normalize(e);const o=n.split(m.sep);const i=o.indexOf("node_modules");const a=i!==-1?o.slice(0,i).join(m.sep):n;if(t===a){return[t]}return[a,t]};const f=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/;const getSanitizedTypeScriptVersion=(e="")=>{const t=e.match(f);if(!t){return undefined}const[n,o,i,a]=[t[1],t[2],t[3],t[4]];return a?`${n}.${o}.${i}-${a}`:`${n}.${o}.${i}`};const C=["^","~",">=","<=",">","<"];const P=["latest","beta","dev","rc","insiders","next"];const getSanitizedDevTypeScriptVersion=(e="")=>{if(P.includes(e)){return e}const t=C.find((t=>e.startsWith(t)))??"";const n=getSanitizedTypeScriptVersion(e.slice(t.length));if(!n){return undefined}return`${t}${n}`};let D;const k=m.join("node_modules","typescript","package.json");const getTypeScriptUserAgentPair=async()=>{if(D===null){return undefined}else if(typeof D==="string"){return["md/tsc",D]}let e=false;try{e=a.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",a.SelectorType.ENV)||false}catch{}if(e){D=null;return undefined}const t=typeof __dirname!=="undefined"?__dirname:undefined;const n=getNodeModulesParentDirs(t);let o;for(const e of n){try{const t=m.join(e,"package.json");const n=await d.readFile(t,"utf-8");const{dependencies:i,devDependencies:a}=JSON.parse(n);const h=a?.typescript??i?.typescript;if(typeof h!=="string"){continue}o=h;break}catch{}}if(!o){D=null;return undefined}let i;for(const e of n){try{const t=m.join(e,k);const n=await d.readFile(t,"utf-8");const{version:o}=JSON.parse(n);const a=getSanitizedTypeScriptVersion(o);if(typeof a!=="string"){continue}i=a;break}catch{}}if(i){D=i;return["md/tsc",D]}const h=getSanitizedDevTypeScriptVersion(o);if(typeof h!=="string"){D=null;return undefined}D=`dev_${h}`;return["md/tsc",D]};const L={isCrtAvailable:false};const isCrtAvailable=()=>{if(L.isCrtAvailable){return["md/crt-avail"]}return null};const createDefaultUserAgentProvider=({serviceId:e,clientVersion:t})=>{const n=getRuntimeUserAgentPair();return async a=>{const d=[["aws-sdk-js",t],["ua","2.1"],[`os/${o.platform()}`,o.release()],["lang/js"],n];const m=await getTypeScriptUserAgentPair();if(m){d.push(m)}const h=isCrtAvailable();if(h){d.push(h)}if(e){d.push([`api/${e}`,t])}if(i.env.AWS_EXECUTION_ENV){d.push([`exec-env/${i.env.AWS_EXECUTION_ENV}`])}const f=await(a?.userAgentAppId?.());const C=f?[...d,[`app/${f}`]]:[...d];return C}};const F=createDefaultUserAgentProvider;const q="AWS_SDK_UA_APP_ID";const V="sdk_ua_app_id";const ee="sdk-ua-app-id";const te={environmentVariableSelector:e=>e[q],configFileSelector:e=>e[V]??e[ee],default:h.DEFAULT_UA_APP_ID};t.NODE_APP_ID_CONFIG_OPTIONS=te;t.UA_APP_ID_ENV_NAME=q;t.UA_APP_ID_INI_NAME=V;t.createDefaultUserAgentProvider=createDefaultUserAgentProvider;t.crtAvailability=L;t.defaultUserAgent=F},4274:(e,t,n)=>{var o=n(3343);const i=/[&<>"]/g;const a={"&":"&","<":"<",">":">",'"':"""};function escapeAttribute(e){return e.replace(i,(e=>a[e]))}const d=/[&"'<>\r\n\u0085\u2028]/g;const m={"&":"&",'"':""","'":"'","<":"<",">":">","\r":"
","\n":"
","
":"…","\u2028":"
"};function escapeElement(e){return e.replace(d,(e=>m[e]))}class XmlText{value;constructor(e){this.value=e}toString(){return escapeElement(""+this.value)}}class XmlNode{name;children;attributes={};static of(e,t,n){const o=new XmlNode(e);if(t!==undefined){o.addChildNode(new XmlText(t))}if(n!==undefined){o.withName(n)}return o}constructor(e,t=[]){this.name=e;this.children=t}withName(e){this.name=e;return this}addAttribute(e,t){this.attributes[e]=t;return this}addChildNode(e){this.children.push(e);return this}removeAttribute(e){delete this.attributes[e];return this}n(e){this.name=e;return this}c(e){this.children.push(e);return this}a(e,t){if(t!=null){this.attributes[e]=t}return this}cc(e,t,n=t){if(e[t]!=null){const o=XmlNode.of(t,e[t]).withName(n);this.c(o)}}l(e,t,n,o){if(e[t]!=null){const e=o();e.map((e=>{e.withName(n);this.c(e)}))}}lc(e,t,n,o){if(e[t]!=null){const e=o();const t=new XmlNode(n);e.map((e=>{t.c(e)}));this.c(t)}}toString(){const e=Boolean(this.children.length);let t=`<${this.name}`;const n=this.attributes;for(const e of Object.keys(n)){const o=n[e];if(o!=null){t+=` ${e}="${escapeAttribute(""+o)}"`}}return t+=!e?"/>":`>${this.children.map((e=>e.toString())).join("")}</${this.name}>`}}t.parseXML=o.parseXML;t.XmlNode=XmlNode;t.XmlText=XmlText},3343:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.parseXML=parseXML;const o=n(591);const i=new o.XMLParser({attributeNamePrefix:"",processEntities:{enabled:true,maxTotalExpansions:Infinity},htmlEntities:true,ignoreAttributes:false,ignoreDeclaration:true,parseTagValue:false,trimValues:false,tagValueProcessor:(e,t)=>t.trim()===""&&t.includes("\n")?"":undefined,maxNestedTags:Infinity});i.addEntity("#xD","\r");i.addEntity("#10","\n");function parseXML(e){return i.parse(e,true)}},9320:(e,t,n)=>{const o={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")};const i=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");if(!i){globalThis.awslambda=globalThis.awslambda||{}}class InvokeStoreBase{static PROTECTED_KEYS=o;isProtectedKey(e){return Object.values(o).includes(e)}getRequestId(){return this.get(o.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(o.X_RAY_TRACE_ID)}getTenantId(){return this.get(o.TENANT_ID)}}class InvokeStoreSingle extends InvokeStoreBase{currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==undefined}get(e){return this.currentContext?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}this.currentContext=this.currentContext||{};this.currentContext[e]=t}run(e,t){this.currentContext=e;return t()}}class InvokeStoreMulti extends InvokeStoreBase{als;static async create(){const e=new InvokeStoreMulti;const t=await Promise.resolve().then(n.t.bind(n,6698,23));e.als=new t.AsyncLocalStorage;return e}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==undefined}get(e){return this.als.getStore()?.[e]}set(e,t){if(this.isProtectedKey(e)){throw new Error(`Cannot modify protected Lambda context field: ${String(e)}`)}const n=this.als.getStore();if(!n){throw new Error("No context available")}n[e]=t}run(e,t){return this.als.run(e,t)}}t.InvokeStore=void 0;(function(e){let t=null;async function getInstanceAsync(){if(!t){t=(async()=>{const e="AWS_LAMBDA_MAX_CONCURRENCY"in process.env;const t=e?await InvokeStoreMulti.create():new InvokeStoreSingle;if(!i&&globalThis.awslambda?.InvokeStore){return globalThis.awslambda.InvokeStore}else if(!i&&globalThis.awslambda){globalThis.awslambda.InvokeStore=t;return t}else{return t}})()}return t}e.getInstanceAsync=getInstanceAsync;e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:()=>{t=null;if(globalThis.awslambda?.InvokeStore){delete globalThis.awslambda.InvokeStore}globalThis.awslambda={InvokeStore:undefined}}}:undefined})(t.InvokeStore||(t.InvokeStore={}));t.InvokeStoreBase=InvokeStoreBase},5862:(e,t,n)=>{var o;o={value:true};var i=n(5004);var a=n(1391);var d=n(7132);const m=i.createClientLogger("core-lro");const h=2e3;const f=["succeeded","canceled","failed"];function deserializeState(e){try{return JSON.parse(e).state}catch(t){throw new Error(`Unable to deserialize input state: ${e}`)}}function setStateError(e){const{state:t,stateProxy:n,isOperationError:o}=e;return e=>{if(o(e)){n.setError(t,e);n.setFailed(t)}throw e}}function appendReadableErrorMessage(e,t){let n=e;if(n.slice(-1)!=="."){n=n+"."}return n+" "+t}function simplifyError(e){let t=e.message;let n=e.code;let o=e;while(o.innererror){o=o.innererror;n=o.code;t=appendReadableErrorMessage(t,o.message)}return{code:n,message:t}}function processOperationStatus(e){const{state:t,stateProxy:n,status:o,isDone:i,processResult:a,getError:d,response:h,setErrorAsResult:f}=e;switch(o){case"succeeded":{n.setSucceeded(t);break}case"failed":{const e=d===null||d===void 0?void 0:d(h);let o="";if(e){const{code:t,message:n}=simplifyError(e);o=`. ${t}. ${n}`}const i=`The long-running operation has failed${o}`;n.setError(t,new Error(i));n.setFailed(t);m.warning(i);break}case"canceled":{n.setCanceled(t);break}}if((i===null||i===void 0?void 0:i(h,t))||i===undefined&&["succeeded","canceled"].concat(f?[]:["failed"]).includes(o)){n.setResult(t,buildResult({response:h,state:t,processResult:a}))}}function buildResult(e){const{processResult:t,response:n,state:o}=e;return t?t(n,o):n}async function initOperation(e){const{init:t,stateProxy:n,processResult:o,getOperationStatus:i,withOperationLocation:a,setErrorAsResult:d}=e;const{operationLocation:h,resourceLocation:f,metadata:C,response:P}=await t();if(h)a===null||a===void 0?void 0:a(h,false);const D={metadata:C,operationLocation:h,resourceLocation:f};m.verbose(`LRO: Operation description:`,D);const k=n.initState(D);const L=i({response:P,state:k,operationLocation:h});processOperationStatus({state:k,status:L,stateProxy:n,response:P,setErrorAsResult:d,processResult:o});return k}async function pollOperationHelper(e){const{poll:t,state:n,stateProxy:o,operationLocation:i,getOperationStatus:a,getResourceLocation:d,isOperationError:h,options:C}=e;const P=await t(i,C).catch(setStateError({state:n,stateProxy:o,isOperationError:h}));const D=a(P,n);m.verbose(`LRO: Status:\n\tPolling from: ${n.config.operationLocation}\n\tOperation status: ${D}\n\tPolling status: ${f.includes(D)?"Stopped":"Running"}`);if(D==="succeeded"){const e=d(P,n);if(e!==undefined){return{response:await t(e).catch(setStateError({state:n,stateProxy:o,isOperationError:h})),status:D}}}return{response:P,status:D}}async function pollOperation(e){const{poll:t,state:n,stateProxy:o,options:i,getOperationStatus:a,getResourceLocation:d,getOperationLocation:m,isOperationError:h,withOperationLocation:C,getPollingInterval:P,processResult:D,getError:k,updateState:L,setDelay:F,isDone:q,setErrorAsResult:V}=e;const{operationLocation:ee}=n.config;if(ee!==undefined){const{response:e,status:te}=await pollOperationHelper({poll:t,getOperationStatus:a,state:n,stateProxy:o,operationLocation:ee,getResourceLocation:d,isOperationError:h,options:i});processOperationStatus({status:te,response:e,state:n,stateProxy:o,isDone:q,processResult:D,getError:k,setErrorAsResult:V});if(!f.includes(te)){const t=P===null||P===void 0?void 0:P(e);if(t)F(t);const o=m===null||m===void 0?void 0:m(e,n);if(o!==undefined){const e=ee!==o;n.config.operationLocation=o;C===null||C===void 0?void 0:C(o,e)}else C===null||C===void 0?void 0:C(ee,false)}L===null||L===void 0?void 0:L(n,e)}}function getOperationLocationPollingUrl(e){const{azureAsyncOperation:t,operationLocation:n}=e;return n!==null&&n!==void 0?n:t}function getLocationHeader(e){return e.headers["location"]}function getOperationLocationHeader(e){return e.headers["operation-location"]}function getAzureAsyncOperationHeader(e){return e.headers["azure-asyncoperation"]}function findResourceLocation(e){const{location:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;switch(n){case"PUT":{return o}case"DELETE":{return undefined}default:{switch(i){case"azure-async-operation":{return undefined}case"original-uri":{return o}case"location":default:{return t}}}}}function inferLroMode(e){const{rawResponse:t,requestMethod:n,requestPath:o,resourceLocationConfig:i}=e;const a=getOperationLocationHeader(t);const d=getAzureAsyncOperationHeader(t);const m=getOperationLocationPollingUrl({operationLocation:a,azureAsyncOperation:d});const h=getLocationHeader(t);const f=n===null||n===void 0?void 0:n.toLocaleUpperCase();if(m!==undefined){return{mode:"OperationLocation",operationLocation:m,resourceLocation:findResourceLocation({requestMethod:f,location:h,requestPath:o,resourceLocationConfig:i})}}else if(h!==undefined){return{mode:"ResourceLocation",operationLocation:h}}else if(f==="PUT"&&o){return{mode:"Body",operationLocation:o}}else{return undefined}}function transformStatus(e){const{status:t,statusCode:n}=e;if(typeof t!=="string"&&t!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${t}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(t===null||t===void 0?void 0:t.toLocaleLowerCase()){case undefined:return toOperationStatus(n);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:{m.verbose(`LRO: unrecognized operation status: ${t}`);return t}}}function getStatus(e){var t;const{status:n}=(t=e.body)!==null&&t!==void 0?t:{};return transformStatus({status:n,statusCode:e.statusCode})}function getProvisioningState(e){var t,n;const{properties:o,provisioningState:i}=(t=e.body)!==null&&t!==void 0?t:{};const a=(n=o===null||o===void 0?void 0:o.provisioningState)!==null&&n!==void 0?n:i;return transformStatus({status:a,statusCode:e.statusCode})}function toOperationStatus(e){if(e===202){return"running"}else if(e<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:e}){const t=e.headers["retry-after"];if(t!==undefined){const e=parseInt(t);return isNaN(e)?calculatePollingIntervalFromDate(new Date(t)):e*1e3}return undefined}function getErrorFromResponse(e){const t=e.flatResponse.error;if(!t){m.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!t.code||!t.message){m.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return t}function calculatePollingIntervalFromDate(e){const t=Math.floor((new Date).getTime());const n=e.getTime();if(t<n){return n-t}return undefined}function getStatusFromInitialResponse(e){const{response:t,state:n,operationLocation:o}=e;function helper(){var e;const o=(e=n.config.metadata)===null||e===void 0?void 0:e["mode"];switch(o){case undefined:return toOperationStatus(t.rawResponse.statusCode);case"Body":return getOperationStatus(t,n);default:return"running"}}const i=helper();return i==="running"&&o===undefined?"succeeded":i}async function initHttpOperation(e){const{stateProxy:t,resourceLocationConfig:n,processResult:o,lro:i,setErrorAsResult:a}=e;return initOperation({init:async()=>{const e=await i.sendInitialRequest();const t=inferLroMode({rawResponse:e.rawResponse,requestPath:i.requestPath,requestMethod:i.requestMethod,resourceLocationConfig:n});return Object.assign({response:e,operationLocation:t===null||t===void 0?void 0:t.operationLocation,resourceLocation:t===null||t===void 0?void 0:t.resourceLocation},(t===null||t===void 0?void 0:t.mode)?{metadata:{mode:t.mode}}:{})},stateProxy:t,processResult:o?({flatResponse:e},t)=>o(e,t):({flatResponse:e})=>e,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:a})}function getOperationLocation({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(e),azureAsyncOperation:getAzureAsyncOperationHeader(e)})}case"ResourceLocation":{return getLocationHeader(e)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:e},t){var n;const o=(n=t.config.metadata)===null||n===void 0?void 0:n["mode"];switch(o){case"OperationLocation":{return getStatus(e)}case"ResourceLocation":{return toOperationStatus(e.statusCode)}case"Body":{return getProvisioningState(e)}default:throw new Error(`Internal error: Unexpected operation mode: ${o}`)}}function getResourceLocation({flatResponse:e},t){if(typeof e==="object"){const n=e.resourceLocation;if(n!==undefined){t.config.resourceLocation=n}}return t.config.resourceLocation}function isOperationError(e){return e.name==="RestError"}async function pollHttpOperation(e){const{lro:t,stateProxy:n,options:o,processResult:i,updateState:a,setDelay:d,state:m,setErrorAsResult:h}=e;return pollOperation({state:m,stateProxy:n,setDelay:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e,getError:getErrorFromResponse,updateState:a,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:o,poll:async(e,n)=>t.sendPollRequest(e,n),setErrorAsResult:h})}const createStateProxy$1=()=>({initState:e=>({status:"running",config:e}),setCanceled:e=>e.status="canceled",setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.status="running",setSucceeded:e=>e.status="succeeded",setFailed:e=>e.status="failed",getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>e.status==="canceled",isFailed:e=>e.status==="failed",isRunning:e=>e.status==="running",isSucceeded:e=>e.status==="succeeded"});function buildCreatePoller(e){const{getOperationLocation:t,getStatusFromInitialResponse:n,getStatusFromPollResponse:o,isOperationError:i,getResourceLocation:m,getPollingInterval:f,getError:C,resolveOnUnsuccessful:P}=e;return async({init:e,poll:D},k)=>{const{processResult:L,updateState:F,withOperationLocation:q,intervalInMs:V=h,restoreFrom:ee}=k||{};const te=createStateProxy$1();const re=q?(()=>{let e=false;return(t,n)=>{if(n)q(t);else if(!e)q(t);e=true}})():undefined;const ne=ee?deserializeState(ee):await initOperation({init:e,stateProxy:te,processResult:L,getOperationStatus:n,withOperationLocation:re,setErrorAsResult:!P});let se;const oe=new a.AbortController;const ie=new Map;const handleProgressEvents=async()=>ie.forEach((e=>e(ne)));const ae="Operation was canceled";let ce=V;const le={getOperationState:()=>ne,getResult:()=>ne.result,isDone:()=>["succeeded","failed","canceled"].includes(ne.status),isStopped:()=>se===undefined,stopPolling:()=>{oe.abort()},toString:()=>JSON.stringify({state:ne}),onProgress:e=>{const t=Symbol();ie.set(t,e);return()=>ie.delete(t)},pollUntilDone:e=>se!==null&&se!==void 0?se:se=(async()=>{const{abortSignal:t}=e||{};const{signal:n}=t?new a.AbortController([t,oe.signal]):oe;if(!le.isDone()){await le.poll({abortSignal:n});while(!le.isDone()){await d.delay(ce,{abortSignal:n});await le.poll({abortSignal:n})}}if(P){return le.getResult()}else{switch(ne.status){case"succeeded":return le.getResult();case"canceled":throw new Error(ae);case"failed":throw ne.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{se=undefined})),async poll(e){if(P){if(le.isDone())return}else{switch(ne.status){case"succeeded":return;case"canceled":throw new Error(ae);case"failed":throw ne.error}}await pollOperation({poll:D,state:ne,stateProxy:te,getOperationLocation:t,isOperationError:i,withOperationLocation:re,getPollingInterval:f,getOperationStatus:o,getResourceLocation:m,processResult:L,getError:C,updateState:F,options:e,setDelay:e=>{ce=e},setErrorAsResult:!P});await handleProgressEvents();if(!P){switch(ne.status){case"canceled":throw new Error(ae);case"failed":throw ne.error}}}};return le}}async function createHttpPoller(e,t){const{resourceLocationConfig:n,intervalInMs:o,processResult:i,restoreFrom:a,updateState:d,withOperationLocation:m,resolveOnUnsuccessful:h=false}=t||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:h})({init:async()=>{const t=await e.sendInitialRequest();const o=inferLroMode({rawResponse:t.rawResponse,requestPath:e.requestPath,requestMethod:e.requestMethod,resourceLocationConfig:n});return Object.assign({response:t,operationLocation:o===null||o===void 0?void 0:o.operationLocation,resourceLocation:o===null||o===void 0?void 0:o.resourceLocation},(o===null||o===void 0?void 0:o.mode)?{metadata:{mode:o.mode}}:{})},poll:e.sendPollRequest},{intervalInMs:o,withOperationLocation:m,restoreFrom:a,updateState:d,processResult:i?({flatResponse:e},t)=>i(e,t):({flatResponse:e})=>e})}const createStateProxy=()=>({initState:e=>({config:e,isStarted:true}),setCanceled:e=>e.isCancelled=true,setError:(e,t)=>e.error=t,setResult:(e,t)=>e.result=t,setRunning:e=>e.isStarted=true,setSucceeded:e=>e.isCompleted=true,setFailed:()=>{},getError:e=>e.error,getResult:e=>e.result,isCanceled:e=>!!e.isCancelled,isFailed:e=>!!e.error,isRunning:e=>!!e.isStarted,isSucceeded:e=>Boolean(e.isCompleted&&!e.isCancelled&&!e.error)});class GenericPollOperation{constructor(e,t,n,o,i,a,d){this.state=e;this.lro=t;this.setErrorAsResult=n;this.lroResourceLocationConfig=o;this.processResult=i;this.updateState=a;this.isDone=d}setPollerConfig(e){this.pollerConfig=e}async update(e){var t;const n=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:n,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const o=this.updateState;const i=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:n,processResult:this.processResult,updateState:o?(e,{rawResponse:t})=>o(e,t):undefined,isDone:i?({flatResponse:e},t)=>i(e,t):undefined,options:e,setDelay:e=>{this.pollerConfig.intervalInMs=e},setErrorAsResult:this.setErrorAsResult})}(t=e===null||e===void 0?void 0:e.fireProgress)===null||t===void 0?void 0:t.call(e,this.state);return this}async cancel(){m.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(e){super(e);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(e){super(e);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(e){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=e;this.promise=new Promise(((e,t)=>{this.resolve=e;this.reject=t}));this.promise.catch((()=>{}))}async startPolling(e={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(e);await this.delay()}}async pollOnce(e={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:e.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(e){for(const t of this.pollProgressCallbacks){t(e)}}async cancelOnce(e={}){this.operation=await this.operation.cancel(e)}poll(e={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(e);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const e=new PollerCancelledError("Operation was canceled");this.reject(e);throw e}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(e={}){if(this.stopped){this.startPolling(e).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(e){this.pollProgressCallbacks.push(e);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((t=>t!==e))}}isDone(){const e=this.operation.state;return Boolean(e.isCompleted||e.isCancelled||e.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(e={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(e)}else if(e.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const e=this.operation.state;return e.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(e,t){const{intervalInMs:n=h,resumeFrom:o,resolveOnUnsuccessful:i=false,isDone:a,lroResourceLocationConfig:d,processResult:m,updateState:f}=t||{};const C=o?deserializeState(o):{};const P=new GenericPollOperation(C,e,!i,d,m,f,a);super(P);this.resolveOnUnsuccessful=i;this.config={intervalInMs:n};P.setPollerConfig(this.config)}delay(){return new Promise((e=>setTimeout((()=>e()),this.config.intervalInMs)))}}o=LroEngine;t.vu=Poller;o=PollerCancelledError;o=PollerStoppedError;o=createHttpPoller},1391:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});const n=new WeakMap;const o=new WeakMap;class AbortSignal{constructor(){this.onabort=null;n.set(this,[]);o.set(this,false)}get aborted(){if(!o.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return o.get(this)}static get none(){return new AbortSignal}addEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);o.push(t)}removeEventListener(e,t){if(!n.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const o=n.get(this);const i=o.indexOf(t);if(i>-1){o.splice(i,1)}}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(e){if(e.aborted){return}if(e.onabort){e.onabort.call(e)}const t=n.get(e);if(t){t.slice().forEach((t=>{t.call(e,{type:"abort"})}))}o.set(e,true)}class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}class AbortController{constructor(e){this._signal=new AbortSignal;if(!e){return}if(!Array.isArray(e)){e=arguments}for(const t of e){if(t.aborted){this.abort()}else{t.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(e){const t=new AbortSignal;const n=setTimeout(abortSignal,e,t);if(typeof n.unref==="function"){n.unref()}return t}}t.AbortController=AbortController;t.AbortError=AbortError;t.AbortSignal=AbortSignal},7132:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(1391);var i=n(6982);var a;const d=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((a=process.versions)===null||a===void 0?void 0:a.node);function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:i,abortErrorMsg:a}=t!==null&&t!==void 0?t:{};return new Promise(((t,d)=>{function rejectOnAbort(){d(new o.AbortError(a!==null&&a!==void 0?a:"The operation was aborted."))}function removeListeners(){i===null||i===void 0?void 0:i.removeEventListener("abort",onAbort)}function onAbort(){n===null||n===void 0?void 0:n();removeListeners();rejectOnAbort()}if(i===null||i===void 0?void 0:i.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();d(e)}))}catch(e){d(e)}i===null||i===void 0?void 0:i.addEventListener("abort",onAbort)}))}const m="The delay was aborted.";function delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t!==null&&t!==void 0?t:{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i!==null&&i!==void 0?i:m})}function getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return i.createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return i.createHash("sha256").update(e).digest(t)}function isDefined(e){return typeof e!=="undefined"&&e!==null}function isObjectWithProperties(e,t){if(!isDefined(e)||typeof e!=="object"){return false}for(const n of t){if(!objectHasProperty(e,n)){return false}}return true}function objectHasProperty(e,t){return isDefined(e)&&typeof e==="object"&&t in e}function generateUUID(){let e="";for(let t=0;t<32;t++){const n=Math.floor(Math.random()*16);if(t===12){e+="4"}else if(t===16){e+=n&3|8}else{e+=n.toString(16)}if(t===7||t===11||t===15||t===19){e+="-"}}return e}var h;let f=typeof((h=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||h===void 0?void 0:h.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):i.randomUUID;if(!f){f=generateUUID}function randomUUID(){return f()}t.computeSha256Hash=computeSha256Hash;t.computeSha256Hmac=computeSha256Hmac;t.createAbortablePromise=createAbortablePromise;t.delay=delay;t.getErrorMessage=getErrorMessage;t.getRandomIntegerInclusive=getRandomIntegerInclusive;t.isDefined=isDefined;t.isError=isError;t.isNode=d;t.isObject=isObject;t.isObjectWithProperties=isObjectWithProperties;t.objectHasProperty=objectHasProperty;t.randomUUID=randomUUID},5004:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});var o=n(857);var i=n(9023);function _interopDefaultLegacy(e){return e&&typeof e==="object"&&"default"in e?e:{default:e}}var a=_interopDefaultLegacy(i);function log(e,...t){process.stderr.write(`${a["default"].format(e,...t)}${o.EOL}`)}const d=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let m;let h=[];let f=[];const C=[];if(d){enable(d)}const P=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){m=e;h=[];f=[];const t=/\*/g;const n=e.split(",").map((e=>e.trim().replace(t,".*?")));for(const e of n){if(e.startsWith("-")){f.push(new RegExp(`^${e.substr(1)}$`))}else{h.push(new RegExp(`^${e}$`))}}for(const e of C){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of f){if(t.test(e)){return false}}for(const t of h){if(t.test(e)){return true}}return false}function disable(){const e=m||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:P.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}C.push(t);return t}function destroy(){const e=C.indexOf(this);if(e>=0){C.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}var D=P;const k=new Set;const L=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let F;const q=D("azure");q.log=(...e)=>{D.log(...e)};const V=["verbose","info","warning","error"];if(L){if(isAzureLogLevel(L)){setLogLevel(L)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${L}'; logging is not enabled. Acceptable values: ${V.join(", ")}.`)}}function setLogLevel(e){if(e&&!isAzureLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${V.join(",")}`)}F=e;const t=[];for(const e of k){if(shouldEnable(e)){t.push(e.namespace)}}D.enable(t.join(","))}function getLogLevel(){return F}const ee={verbose:400,info:300,warning:200,error:100};function createClientLogger(e){const t=q.extend(e);patchLogMethod(q,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function createLogger(e,t){const n=Object.assign(e.extend(t),{level:t});patchLogMethod(e,n);if(shouldEnable(n)){const e=D.disable();D.enable(e+","+n.namespace)}k.add(n);return n}function shouldEnable(e){return Boolean(F&&ee[e.level]<=ee[F])}function isAzureLogLevel(e){return V.includes(e)}t.AzureLogger=q;t.createClientLogger=createClientLogger;t.getLogLevel=getLogLevel;t.setLogLevel=setLogLevel},1046:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");h("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}h("comp",this)}parse(e){const t=this.options.loose?a[d.COMPARATORLOOSE]:a[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new f(n[2],this.options.loose)}}toString(){return this.value}test(e){h("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new f(e,this.options)}catch(e){return false}}return m(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new C(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new C(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(m(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(m(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(7766);const{safeRe:a,t:d}=n(4836);const m=n(7721);const h=n(2814);const f=n(5186);const C=n(3177)},3177:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof m){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&F)|(this.options.loose&&q);const n=t+":"+e;const o=a.get(n);if(o){return o}const i=this.options.loose;const d=i?C[P.HYPHENRANGELOOSE]:C[P.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));h("hyphen replace",e);e=e.replace(C[P.COMPARATORTRIM],D);h("comparator trim",e);e=e.replace(C[P.TILDETRIM],k);h("tilde trim",e);e=e.replace(C[P.CARETTRIM],L);h("caret trim",e);let f=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){f=f.filter((e=>{h("loose invalid filter",e,this.options);return!!e.match(C[P.COMPARATORLOOSE])}))}h("range list",f);const V=new Map;const ee=f.map((e=>new m(e,this.options)));for(const e of ee){if(isNullSet(e)){return[e]}V.set(e.value,e)}if(V.size>1&&V.has("")){V.delete("")}const te=[...V.values()];a.set(n,te);return te}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new f(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const i=n(7515);const a=new i;const d=n(7766);const m=n(1046);const h=n(2814);const f=n(5186);const{safeRe:C,t:P,comparatorTrimReplace:D,tildeTrimReplace:k,caretTrimReplace:L}=n(4836);const{FLAG_INCLUDE_PRERELEASE:F,FLAG_LOOSE:q}=n(8504);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(C[P.BUILD],"");h("comp",e,t);e=replaceCarets(e,t);h("caret",e);e=replaceTildes(e,t);h("tildes",e);e=replaceXRanges(e,t);h("xrange",e);e=replaceStars(e,t);h("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?C[P.TILDELOOSE]:C[P.TILDE];return e.replace(n,((t,n,o,i,a)=>{h("tilde",e,t,n,o,i,a);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(a){h("replaceTilde pr",a);d=`>=${n}.${o}.${i}-${a} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}h("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{h("caret",e,t);const n=t.loose?C[P.CARETLOOSE]:C[P.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,d)=>{h("caret",e,t,n,i,a,d);let m;if(isX(n)){m=""}else if(isX(i)){m=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(a)){if(n==="0"){m=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{m=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){h("replaceCaret pr",d);if(n==="0"){if(i==="0"){m=`>=${n}.${i}.${a}-${d} <${n}.${i}.${+a+1}-0`}else{m=`>=${n}.${i}.${a}-${d} <${n}.${+i+1}.0-0`}}else{m=`>=${n}.${i}.${a}-${d} <${+n+1}.0.0-0`}}else{h("no pr");if(n==="0"){if(i==="0"){m=`>=${n}.${i}.${a}${o} <${n}.${i}.${+a+1}-0`}else{m=`>=${n}.${i}.${a}${o} <${n}.${+i+1}.0-0`}}else{m=`>=${n}.${i}.${a} <${+n+1}.0.0-0`}}h("caret return",m);return m}))};const replaceXRanges=(e,t)=>{h("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?C[P.XRANGELOOSE]:C[P.XRANGE];return e.replace(n,((n,o,i,a,d,m)=>{h("xRange",e,n,o,i,a,d,m);const f=isX(i);const C=f||isX(a);const P=C||isX(d);const D=P;if(o==="="&&D){o=""}m=t.includePrerelease?"-0":"";if(f){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(C){a=0}d=0;if(o===">"){o=">=";if(C){i=+i+1;a=0;d=0}else{a=+a+1;d=0}}else if(o==="<="){o="<";if(C){i=+i+1}else{a=+a+1}}if(o==="<"){m="-0"}n=`${o+i}.${a}.${d}${m}`}else if(C){n=`>=${i}.0.0${m} <${+i+1}.0.0-0`}else if(P){n=`>=${i}.${a}.0${m} <${i}.${+a+1}.0-0`}h("xRange return",n);return n}))};const replaceStars=(e,t)=>{h("replaceStars",e,t);return e.trim().replace(C[P.STAR],"")};const replaceGTE0=(e,t)=>{h("replaceGTE0",e,t);return e.trim().replace(C[t.includePrerelease?P.GTE0PRE:P.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,a,d,m,h,f,C,P,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(a)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(f)){h=""}else if(isX(C)){h=`<${+f+1}.0.0-0`}else if(isX(P)){h=`<${f}.${+C+1}.0-0`}else if(D){h=`<=${f}.${C}.${P}-${D}`}else if(e){h=`<${f}.${C}.${+P+1}-0`}else{h=`<=${h}`}return`${n} ${h}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){h(e[n].semver);if(e[n].semver===m.ANY){continue}if(e[n].semver.prerelease.length>0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},5186:(e,t,n)=>{const o=n(2814);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(8504);const{safeRe:d,t:m}=n(4836);const h=n(7766);const{compareIdentifiers:f}=n(7865);class SemVer{constructor(e,t){t=h(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[m.LOOSE]:d[m.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){o("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return f(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return f(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[m.PRERELEASELOOSE]:d[m.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(f(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},5436:(e,t,n)=>{const o=n(7526);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},7721:(e,t,n)=>{const o=n(4107);const i=n(7705);const a=n(7962);const d=n(5603);const m=n(525);const h=n(3966);const cmp=(e,t,n,f)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,f);case"!=":return i(e,n,f);case">":return a(e,n,f);case">=":return d(e,n,f);case"<":return m(e,n,f);case"<=":return h(e,n,f);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},6356:(e,t,n)=>{const o=n(5186);const i=n(7526);const{safeRe:a,t:d}=n(4836);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?a[d.COERCEFULL]:a[d.COERCE])}else{const o=t.includePrerelease?a[d.COERCERTLFULL]:a[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const m=n[2];const h=n[3]||"0";const f=n[4]||"0";const C=t.includePrerelease&&n[5]?`-${n[5]}`:"";const P=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${m}.${h}.${f}${C}${P}`,t)};e.exports=coerce},2147:(e,t,n)=>{const o=n(5186);const compareBuild=(e,t,n)=>{const i=new o(e,n);const a=new o(t,n);return i.compare(a)||i.compareBuild(a)};e.exports=compareBuild},8545:(e,t,n)=>{const o=n(18);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},18:(e,t,n)=>{const o=n(5186);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},7290:(e,t,n)=>{const o=n(7526);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const a=n.compare(i);if(a===0){return null}const d=a>0;const m=d?n:i;const h=d?i:n;const f=!!m.prerelease.length;const C=!!h.prerelease.length;if(C&&!f){if(!h.patch&&!h.minor){return"major"}if(h.compareMain(m)===0){if(h.minor&&!h.patch){return"minor"}return"patch"}}const P=f?"pre":"";if(n.major!==i.major){return P+"major"}if(n.minor!==i.minor){return P+"minor"}if(n.patch!==i.patch){return P+"patch"}return"prerelease"};e.exports=diff},4107:(e,t,n)=>{const o=n(18);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},7962:(e,t,n)=>{const o=n(18);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},5603:(e,t,n)=>{const o=n(18);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2317:(e,t,n)=>{const o=n(5186);const inc=(e,t,n,i,a)=>{if(typeof n==="string"){a=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,a).version}catch(e){return null}};e.exports=inc},525:(e,t,n)=>{const o=n(18);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},3966:(e,t,n)=>{const o=n(18);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},4716:(e,t,n)=>{const o=n(5186);const major=(e,t)=>new o(e,t).major;e.exports=major},7968:(e,t,n)=>{const o=n(5186);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},7705:(e,t,n)=>{const o=n(18);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},7526:(e,t,n)=>{const o=n(5186);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},4807:(e,t,n)=>{const o=n(5186);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5039:(e,t,n)=>{const o=n(7526);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},5236:(e,t,n)=>{const o=n(18);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},9547:(e,t,n)=>{const o=n(2147);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},6076:(e,t,n)=>{const o=n(3177);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},6293:(e,t,n)=>{const o=n(2147);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},2475:(e,t,n)=>{const o=n(7526);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},1955:(e,t,n)=>{const o=n(4836);const i=n(8504);const a=n(5186);const d=n(7865);const m=n(7526);const h=n(2475);const f=n(5436);const C=n(2317);const P=n(7290);const D=n(4716);const k=n(7968);const L=n(4807);const F=n(5039);const q=n(18);const V=n(5236);const ee=n(8545);const te=n(2147);const re=n(6293);const ne=n(9547);const se=n(7962);const oe=n(525);const ie=n(4107);const ae=n(7705);const ce=n(5603);const le=n(3966);const ue=n(7721);const de=n(6356);const pe=n(1046);const Ae=n(3177);const me=n(6076);const ge=n(8465);const he=n(1550);const fe=n(9820);const ye=n(2271);const Ee=n(8816);const Ce=n(6317);const Ie=n(5133);const be=n(8548);const Se=n(9118);const Be=n(3139);const we=n(1093);e.exports={parse:m,valid:h,clean:f,inc:C,diff:P,major:D,minor:k,patch:L,prerelease:F,compare:q,rcompare:V,compareLoose:ee,compareBuild:te,sort:re,rsort:ne,gt:se,lt:oe,eq:ie,neq:ae,gte:ce,lte:le,cmp:ue,coerce:de,Comparator:pe,Range:Ae,satisfies:me,toComparators:ge,maxSatisfying:he,minSatisfying:fe,minVersion:ye,validRange:Ee,outside:Ce,gtr:Ie,ltr:be,intersects:Se,simplifyRange:Be,subset:we,SemVer:a,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},8504:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const a=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},2814:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},7865:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:e<n?-1:1}const o=t.test(e);const i=t.test(n);if(o&&i){e=+e;n=+n}return e===n?0:o&&!i?-1:i&&!o?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},7515:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},7766:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},4836:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(8504);const d=n(2814);t=e.exports={};const m=t.re=[];const h=t.safeRe=[];const f=t.src=[];const C=t.safeSrc=[];const P=t.t={};let D=0;const k="[a-zA-Z0-9-]";const L=[["\\s",1],["\\d",a],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of L){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);P[e]=i;f[i]=t;C[i]=o;m[i]=new RegExp(t,n?"g":undefined);h[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${f[P.NUMERICIDENTIFIER]})\\.`+`(${f[P.NUMERICIDENTIFIER]})\\.`+`(${f[P.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${f[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${f[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${f[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${f[P.NONNUMERICIDENTIFIER]}|${f[P.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${f[P.NONNUMERICIDENTIFIER]}|${f[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${f[P.PRERELEASEIDENTIFIER]}(?:\\.${f[P.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${f[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[P.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${f[P.BUILDIDENTIFIER]}(?:\\.${f[P.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${f[P.MAINVERSION]}${f[P.PRERELEASE]}?${f[P.BUILD]}?`);createToken("FULL",`^${f[P.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${f[P.MAINVERSIONLOOSE]}${f[P.PRERELEASELOOSE]}?${f[P.BUILD]}?`);createToken("LOOSE",`^${f[P.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${f[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${f[P.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${f[P.XRANGEIDENTIFIER]})`+`(?:\\.(${f[P.XRANGEIDENTIFIER]})`+`(?:\\.(${f[P.XRANGEIDENTIFIER]})`+`(?:${f[P.PRERELEASE]})?${f[P.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:${f[P.PRERELEASELOOSE]})?${f[P.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${f[P.GTLT]}\\s*${f[P.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${f[P.GTLT]}\\s*${f[P.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${f[P.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",f[P.COERCEPLAIN]+`(?:${f[P.PRERELEASE]})?`+`(?:${f[P.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",f[P.COERCE],true);createToken("COERCERTLFULL",f[P.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${f[P.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${f[P.LONETILDE]}${f[P.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${f[P.LONETILDE]}${f[P.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${f[P.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${f[P.LONECARET]}${f[P.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${f[P.LONECARET]}${f[P.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${f[P.GTLT]}\\s*(${f[P.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${f[P.GTLT]}\\s*(${f[P.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${f[P.GTLT]}\\s*(${f[P.LOOSEPLAIN]}|${f[P.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${f[P.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${f[P.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${f[P.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${f[P.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5133:(e,t,n)=>{const o=n(6317);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},9118:(e,t,n)=>{const o=n(3177);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},8548:(e,t,n)=>{const o=n(6317);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},1550:(e,t,n)=>{const o=n(5186);const i=n(3177);const maxSatisfying=(e,t,n)=>{let a=null;let d=null;let m=null;try{m=new i(t,n)}catch(e){return null}e.forEach((e=>{if(m.test(e)){if(!a||d.compare(e)===-1){a=e;d=new o(a,n)}}}));return a};e.exports=maxSatisfying},9820:(e,t,n)=>{const o=n(5186);const i=n(3177);const minSatisfying=(e,t,n)=>{let a=null;let d=null;let m=null;try{m=new i(t,n)}catch(e){return null}e.forEach((e=>{if(m.test(e)){if(!a||d.compare(e)===1){a=e;d=new o(a,n)}}}));return a};e.exports=minSatisfying},2271:(e,t,n)=>{const o=n(5186);const i=n(3177);const a=n(7962);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let d=null;i.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||a(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||a(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},6317:(e,t,n)=>{const o=n(5186);const i=n(1046);const{ANY:a}=i;const d=n(3177);const m=n(6076);const h=n(7962);const f=n(525);const C=n(3966);const P=n(5603);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,L,F,q,V;switch(n){case">":k=h;L=C;F=f;q=">";V=">=";break;case"<":k=f;L=P;F=h;q="<";V="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(m(e,t,D)){return false}for(let n=0;n<t.set.length;++n){const o=t.set[n];let d=null;let m=null;o.forEach((e=>{if(e.semver===a){e=new i(">=0.0.0")}d=d||e;m=m||e;if(k(e.semver,d.semver,D)){d=e}else if(F(e.semver,m.semver,D)){m=e}}));if(d.operator===q||d.operator===V){return false}if((!m.operator||m.operator===q)&&L(e,m.semver)){return false}else if(m.operator===V&&F(e,m.semver)){return false}}return true};e.exports=outside},3139:(e,t,n)=>{const o=n(6076);const i=n(18);e.exports=(e,t,n)=>{const a=[];let d=null;let m=null;const h=e.sort(((e,t)=>i(e,t,n)));for(const e of h){const i=o(e,t,n);if(i){m=e;if(!d){d=e}}else{if(m){a.push([d,m])}m=null;d=null}}if(d){a.push([d,null])}const f=[];for(const[e,t]of a){if(e===t){f.push(e)}else if(!t&&e===h[0]){f.push("*")}else if(!t){f.push(`>=${e}`)}else if(e===h[0]){f.push(`<=${t}`)}else{f.push(`${e} - ${t}`)}}const C=f.join(" || ");const P=typeof t.raw==="string"?t.raw:String(t);return C.length<P.length?C:t}},1093:(e,t,n)=>{const o=n(3177);const i=n(1046);const{ANY:a}=i;const d=n(6076);const m=n(18);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const h=[new i(">=0.0.0-0")];const f=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(n.includePrerelease){e=h}else{e=f}}if(t.length===1&&t[0].semver===a){if(n.includePrerelease){return true}else{t=f}}const o=new Set;let i,C;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){C=lowerLT(C,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let P;if(i&&C){P=m(i.semver,C.semver,n);if(P>0){return null}else if(P===0&&(i.operator!==">="||C.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(C&&!d(e,String(C),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let L,F;let q=C&&!n.includePrerelease&&C.semver.prerelease.length?C.semver:false;let V=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(q&&q.prerelease.length===1&&C.operator==="<"&&q.prerelease[0]===0){q=false}for(const e of t){F=F||e.operator===">"||e.operator===">=";L=L||e.operator==="<"||e.operator==="<=";if(i){if(V){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===V.major&&e.semver.minor===V.minor&&e.semver.patch===V.patch){V=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(C){if(q){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===q.major&&e.semver.minor===q.minor&&e.semver.patch===q.patch){q=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(C,e,n);if(k===e&&k!==C){return false}}else if(C.operator==="<="&&!d(C.semver,String(e),n)){return false}}if(!e.operator&&(C||i)&&P!==0){return false}}if(i&&L&&!C&&P!==0){return false}if(C&&F&&!i&&P!==0){return false}if(V||q){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=m(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=m(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},8465:(e,t,n)=>{const o=n(3177);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},8816:(e,t,n)=>{const o=n(3177);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},9316:(e,t,n)=>{var o=n(6716);var i=n(6324);var a=n(9674);const d="AWS_USE_DUALSTACK_ENDPOINT";const m="use_dualstack_endpoint";const h=false;const f={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,m,o.SelectorType.CONFIG),default:false};const C={environmentVariableSelector:e=>o.booleanSelector(e,d,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,m,o.SelectorType.CONFIG),default:undefined};const P="AWS_USE_FIPS_ENDPOINT";const D="use_fips_endpoint";const k=false;const L={environmentVariableSelector:e=>o.booleanSelector(e,P,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,D,o.SelectorType.CONFIG),default:false};const F={environmentVariableSelector:e=>o.booleanSelector(e,P,o.SelectorType.ENV),configFileSelector:e=>o.booleanSelector(e,D,o.SelectorType.CONFIG),default:undefined};const resolveCustomEndpointsConfig=e=>{const{tls:t,endpoint:n,urlParser:o,useDualstackEndpoint:a}=e;return Object.assign(e,{tls:t??true,endpoint:i.normalizeProvider(typeof n==="string"?o(n):n),isCustomEndpoint:true,useDualstackEndpoint:i.normalizeProvider(a??false)})};const getEndpointFromRegion=async e=>{const{tls:t=true}=e;const n=await e.region();const o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/);if(!o.test(n)){throw new Error("Invalid region in client config")}const i=await e.useDualstackEndpoint();const a=await e.useFipsEndpoint();const{hostname:d}=await e.regionInfoProvider(n,{useDualstackEndpoint:i,useFipsEndpoint:a})??{};if(!d){throw new Error("Cannot resolve hostname from client config")}return e.urlParser(`${t?"https:":"http:"}//${d}`)};const resolveEndpointsConfig=e=>{const t=i.normalizeProvider(e.useDualstackEndpoint??false);const{endpoint:n,useFipsEndpoint:o,urlParser:a,tls:d}=e;return Object.assign(e,{tls:d??true,endpoint:n?i.normalizeProvider(typeof n==="string"?a(n):n):()=>getEndpointFromRegion({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!n,useDualstackEndpoint:t})};const q="AWS_REGION";const V="region";const ee={environmentVariableSelector:e=>e[q],configFileSelector:e=>e[V],default:()=>{throw new Error("Region is missing")}};const te={preferredFile:"credentials"};const re=new Set;const checkRegion=(e,t=a.isValidHostLabel)=>{if(!re.has(e)&&!t(e)){if(e==="*"){console.warn(`@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.`)}else{throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`)}}else{re.add(e)}};const isFipsRegion=e=>typeof e==="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));const getRealRegion=e=>isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;const resolveRegionConfig=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t){throw new Error("Region is missing")}return Object.assign(e,{region:async()=>{const e=typeof t==="function"?await t():t;const n=getRealRegion(e);checkRegion(n);return n},useFipsEndpoint:async()=>{const e=typeof t==="string"?t:await t();if(isFipsRegion(e)){return true}return typeof n!=="function"?Promise.resolve(!!n):n()}})};const getHostnameFromVariants=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>e.find((({tags:e})=>t===e.includes("fips")&&n===e.includes("dualstack")))?.hostname;const getResolvedHostname=(e,{regionHostname:t,partitionHostname:n})=>t?t:n?n.replace("{region}",e):undefined;const getResolvedPartition=(e,{partitionHash:t})=>Object.keys(t||{}).find((n=>t[n].regions.includes(e)))??"aws";const getResolvedSigningRegion=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:o})=>{if(t){return t}else if(o){const t=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\.");const o=e.match(t);if(o){return o[0].slice(1,-1)}}};const getRegionInfo=(e,{useFipsEndpoint:t=false,useDualstackEndpoint:n=false,signingService:o,regionHash:i,partitionHash:a})=>{const d=getResolvedPartition(e,{partitionHash:a});const m=e in i?e:a[d]?.endpoint??e;const h={useFipsEndpoint:t,useDualstackEndpoint:n};const f=getHostnameFromVariants(i[m]?.variants,h);const C=getHostnameFromVariants(a[d]?.variants,h);const P=getResolvedHostname(m,{regionHostname:f,partitionHostname:C});if(P===undefined){throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:m,useFipsEndpoint:t,useDualstackEndpoint:n}}`)}const D=getResolvedSigningRegion(P,{signingRegion:i[m]?.signingRegion,regionRegex:a[d].regionRegex,useFipsEndpoint:t});return{partition:d,signingService:o,hostname:P,...D&&{signingRegion:D},...i[m]?.signingService&&{signingService:i[m].signingService}}};t.CONFIG_USE_DUALSTACK_ENDPOINT=m;t.CONFIG_USE_FIPS_ENDPOINT=D;t.DEFAULT_USE_DUALSTACK_ENDPOINT=h;t.DEFAULT_USE_FIPS_ENDPOINT=k;t.ENV_USE_DUALSTACK_ENDPOINT=d;t.ENV_USE_FIPS_ENDPOINT=P;t.NODE_REGION_CONFIG_FILE_OPTIONS=te;t.NODE_REGION_CONFIG_OPTIONS=ee;t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=f;t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=L;t.REGION_ENV_NAME=q;t.REGION_INI_NAME=V;t.getRegionInfo=getRegionInfo;t.nodeDualstackConfigSelectors=C;t.nodeFipsConfigSelectors=F;t.resolveCustomEndpointsConfig=resolveCustomEndpointsConfig;t.resolveEndpointsConfig=resolveEndpointsConfig;t.resolveRegionConfig=resolveRegionConfig},402:(e,t,n)=>{var o=n(690);var i=n(6324);var a=n(2356);var d=n(3422);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const resolveAuthOptions=(e,t)=>{if(!t||t.length===0){return e}const n=[];for(const o of t){for(const t of e){const e=t.schemeId.split("#")[1];if(e===o){n.push(t)}}}for(const t of e){if(!n.find((({schemeId:e})=>e===t.schemeId))){n.push(t)}}return n};function convertHttpAuthSchemesToMap(e){const t=new Map;for(const n of e){t.set(n.schemeId,n)}return t}const httpAuthSchemeMiddleware=(e,t)=>(n,o)=>async a=>{const d=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,a.input));const m=e.authSchemePreference?await e.authSchemePreference():[];const h=resolveAuthOptions(d,m);const f=convertHttpAuthSchemesToMap(e.httpAuthSchemes);const C=i.getSmithyContext(o);const P=[];for(const n of h){const i=f.get(n.schemeId);if(!i){P.push(`HttpAuthScheme \`${n.schemeId}\` was not enabled for this service.`);continue}const a=i.identityProvider(await t.identityProviderConfigProvider(e));if(!a){P.push(`HttpAuthScheme \`${n.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:d={},signingProperties:m={}}=n.propertiesExtractor?.(e,o)||{};n.identityProperties=Object.assign(n.identityProperties||{},d);n.signingProperties=Object.assign(n.signingProperties||{},m);C.selectedHttpAuthScheme={httpAuthOption:n,identity:await a(n.identityProperties),signer:i.signer};break}if(!C.selectedHttpAuthScheme){throw new Error(P.join("\n"))}return n(a)};const m={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"endpointV2Middleware"};const getHttpAuthSchemeEndpointRuleSetPlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),m)}});const h={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:true,relation:"before",toMiddleware:"serializerMiddleware"};const getHttpAuthSchemePlugin=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:o=>{o.addRelativeTo(httpAuthSchemeMiddleware(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),h)}});const defaultErrorHandler=e=>e=>{throw e};const defaultSuccessHandler=(e,t)=>{};const httpSigningMiddleware=e=>(e,t)=>async n=>{if(!a.HttpRequest.isInstance(n.request)){return e(n)}const o=i.getSmithyContext(t);const d=o.selectedHttpAuthScheme;if(!d){throw new Error(`No HttpAuthScheme was selected: unable to sign request`)}const{httpAuthOption:{signingProperties:m={}},identity:h,signer:f}=d;const C=await e({...n,request:await f.sign(n.request,h,m)}).catch((f.errorHandler||defaultErrorHandler)(m));(f.successHandler||defaultSuccessHandler)(C.response,m);return C};const f={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:true,relation:"after",toMiddleware:"retryMiddleware"};const getHttpSigningPlugin=e=>({applyToStack:e=>{e.addRelativeTo(httpSigningMiddleware(),f)}});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};const makePagedClientRequest=async(e,t,n,o=e=>e,...i)=>{let a=new e(n);a=o(a)??a;return await t.send(a,...i)};function createPaginator(e,t,n,o,i){return async function*paginateOperation(a,d,...m){const h=d;let f=a.startingToken??h[n];let C=true;let P;while(C){h[n]=f;if(i){h[i]=h[i]??a.pageSize}if(a.client instanceof e){P=await makePagedClientRequest(t,a.client,d,a.withCommand,...m)}else{throw new Error(`Invalid client, expected instance of ${e.name}`)}yield P;const D=f;f=get(P,o);C=!!(f&&(!a.stopOnSameToken||f!==D))}return undefined}}const get=(e,t)=>{let n=e;const o=t.split(".");for(const e of o){if(!n||typeof n!=="object"){return undefined}n=n[e]}return n};function setFeature(e,t,n){if(!e.__smithy_context){e.__smithy_context={features:{}}}else if(!e.__smithy_context.features){e.__smithy_context.features={}}e.__smithy_context.features[t]=n}class DefaultIdentityProviderConfig{authSchemes=new Map;constructor(e){for(const[t,n]of Object.entries(e)){if(n!==undefined){this.authSchemes.set(t,n)}}}getIdentityProvider(e){return this.authSchemes.get(e)}}class HttpApiKeyAuthSigner{async sign(e,t,n){if(!n){throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing")}if(!n.name){throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing")}if(!n.in){throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing")}if(!t.apiKey){throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined")}const i=a.HttpRequest.clone(e);if(n.in===o.HttpApiKeyAuthLocation.QUERY){i.query[n.name]=t.apiKey}else if(n.in===o.HttpApiKeyAuthLocation.HEADER){i.headers[n.name]=n.scheme?`${n.scheme} ${t.apiKey}`:t.apiKey}else{throw new Error("request can only be signed with `apiKey` locations `query` or `header`, "+"but found: `"+n.in+"`")}return i}}class HttpBearerAuthSigner{async sign(e,t,n){const o=a.HttpRequest.clone(e);if(!t.token){throw new Error("request could not be signed with `token` since the `token` is not defined")}o.headers["Authorization"]=`Bearer ${t.token}`;return o}}class NoAuthSigner{async sign(e,t,n){return e}}const createIsIdentityExpiredFunction=e=>function isIdentityExpired(t){return doesIdentityRequireRefresh(t)&&t.expiration.getTime()-Date.now()<e};const C=3e5;const P=createIsIdentityExpiredFunction(C);const doesIdentityRequireRefresh=e=>e.expiration!==undefined;const memoizeIdentityProvider=(e,t,n)=>{if(e===undefined){return undefined}const o=typeof e!=="function"?async()=>Promise.resolve(e):e;let i;let a;let d;let m=false;const coalesceProvider=async e=>{if(!a){a=o(e)}try{i=await a;d=true;m=false}finally{a=undefined}return i};if(t===undefined){return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}return i}}return async e=>{if(!d||e?.forceRefresh){i=await coalesceProvider(e)}if(m){return i}if(!n(i)){m=true;return i}if(t(i)){await coalesceProvider(e);return i}return i}};t.requestBuilder=d.requestBuilder;t.DefaultIdentityProviderConfig=DefaultIdentityProviderConfig;t.EXPIRATION_MS=C;t.HttpApiKeyAuthSigner=HttpApiKeyAuthSigner;t.HttpBearerAuthSigner=HttpBearerAuthSigner;t.NoAuthSigner=NoAuthSigner;t.createIsIdentityExpiredFunction=createIsIdentityExpiredFunction;t.createPaginator=createPaginator;t.doesIdentityRequireRefresh=doesIdentityRequireRefresh;t.getHttpAuthSchemeEndpointRuleSetPlugin=getHttpAuthSchemeEndpointRuleSetPlugin;t.getHttpAuthSchemePlugin=getHttpAuthSchemePlugin;t.getHttpSigningPlugin=getHttpSigningPlugin;t.getSmithyContext=getSmithyContext;t.httpAuthSchemeEndpointRuleSetMiddlewareOptions=m;t.httpAuthSchemeMiddleware=httpAuthSchemeMiddleware;t.httpAuthSchemeMiddlewareOptions=h;t.httpSigningMiddleware=httpSigningMiddleware;t.httpSigningMiddlewareOptions=f;t.isIdentityExpired=P;t.memoizeIdentityProvider=memoizeIdentityProvider;t.normalizeProvider=normalizeProvider;t.setFeature=setFeature},4645:(e,t,n)=>{var o=n(2430);var i=n(1577);var a=n(3422);var d=n(2356);var m=n(2098);var h=n(6890);var f=n(6324);var C=n(8385);const P=0;const D=1;const k=2;const L=3;const F=4;const q=5;const V=6;const ee=7;const te=20;const re=21;const ne=22;const se=23;const oe=24;const ie=25;const ae=26;const ce=27;const le=31;function alloc(e){return typeof Buffer!=="undefined"?Buffer.alloc(e):new Uint8Array(e)}const ue=Symbol("@smithy/core/cbor::tagSymbol");function tag(e){e[ue]=true;return e}const de=typeof TextDecoder!=="undefined";const pe=typeof Buffer!=="undefined";let Ae=alloc(0);let me=new DataView(Ae.buffer,Ae.byteOffset,Ae.byteLength);const ge=de?new TextDecoder:null;let he=0;function setPayload(e){Ae=e;me=new DataView(Ae.buffer,Ae.byteOffset,Ae.byteLength)}function decode(e,t){if(e>=t){throw new Error("unexpected end of (decode) payload.")}const n=(Ae[e]&224)>>5;const i=Ae[e]&31;switch(n){case P:case D:case V:let a;let d;if(i<24){a=i;d=1}else{switch(i){case oe:case ie:case ae:case ce:const n=fe[i];const o=n+1;d=o;if(t-e<o){throw new Error(`countLength ${n} greater than remaining buf len.`)}const m=e+1;if(n===1){a=Ae[m]}else if(n===2){a=me.getUint16(m)}else if(n===4){a=me.getUint32(m)}else{a=me.getBigUint64(m)}break;default:throw new Error(`unexpected minor value ${i}.`)}}if(n===P){he=d;return castBigInt(a)}else if(n===D){let e;if(typeof a==="bigint"){e=BigInt(-1)-a}else{e=-1-a}he=d;return castBigInt(e)}else{if(i===2||i===3){const n=decodeCount(e+d,t);let o=BigInt(0);const a=e+d+he;for(let e=a;e<a+n;++e){o=o<<BigInt(8)|BigInt(Ae[e])}he=d+he+n;return i===3?-o-BigInt(1):o}else if(i===4){const n=decode(e+d,t);const[i,a]=n;const m=a<0?-1:1;const h="0".repeat(Math.abs(i)+1)+String(BigInt(m)*BigInt(a));let f;const C=a<0?"-":"";f=i===0?h:h.slice(0,h.length+i)+"."+h.slice(i);f=f.replace(/^0+/g,"");if(f===""){f="0"}if(f[0]==="."){f="0"+f}f=C+f;he=d+he;return o.nv(f)}else{const n=decode(e+d,t);const o=he;he=d+o;return tag({tag:castBigInt(a),value:n})}}case L:case q:case F:case k:if(i===le){switch(n){case L:return decodeUtf8StringIndefinite(e,t);case q:return decodeMapIndefinite(e,t);case F:return decodeListIndefinite(e,t);case k:return decodeUnstructuredByteStringIndefinite(e,t)}}else{switch(n){case L:return decodeUtf8String(e,t);case q:return decodeMap(e,t);case F:return decodeList(e,t);case k:return decodeUnstructuredByteString(e,t)}}default:return decodeSpecial(e,t)}}function bytesToUtf8(e,t,n){if(pe&&e.constructor?.name==="Buffer"){return e.toString("utf-8",t,n)}if(ge){return ge.decode(e.subarray(t,n))}return i.toUtf8(e.subarray(t,n))}function demote(e){const t=Number(e);if(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t){console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`))}return t}const fe={[oe]:1,[ie]:2,[ae]:4,[ce]:8};function bytesToFloat16(e,t){const n=e>>7;const o=(e&124)>>2;const i=(e&3)<<8|t;const a=n===0?1:-1;let d;let m;if(o===0){if(i===0){return 0}else{d=Math.pow(2,1-15);m=0}}else if(o===31){if(i===0){return a*Infinity}else{return NaN}}else{d=Math.pow(2,o-15);m=1}m+=i/1024;return a*(d*m)}function decodeCount(e,t){const n=Ae[e]&31;if(n<24){he=1;return n}if(n===oe||n===ie||n===ae||n===ce){const o=fe[n];he=o+1;if(t-e<he){throw new Error(`countLength ${o} greater than remaining buf len.`)}const i=e+1;if(o===1){return Ae[i]}else if(o===2){return me.getUint16(i)}else if(o===4){return me.getUint32(i)}return demote(me.getBigUint64(i))}throw new Error(`unexpected minor value ${n}.`)}function decodeUtf8String(e,t){const n=decodeCount(e,t);const o=he;e+=o;if(t-e<n){throw new Error(`string len ${n} greater than remaining buf len.`)}const i=bytesToUtf8(Ae,e,e+n);he=o+n;return i}function decodeUtf8StringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(Ae[e]===255){const t=alloc(n.length);t.set(n,0);he=e-o+2;return bytesToUtf8(t,0,t.length)}const i=(Ae[e]&224)>>5;const a=Ae[e]&31;if(i!==L){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(a===le){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const m=he;e+=m;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeUnstructuredByteString(e,t){const n=decodeCount(e,t);const o=he;e+=o;if(t-e<n){throw new Error(`unstructured byte string len ${n} greater than remaining buf len.`)}const i=Ae.subarray(e,e+n);he=o+n;return i}function decodeUnstructuredByteStringIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(Ae[e]===255){const t=alloc(n.length);t.set(n,0);he=e-o+2;return t}const i=(Ae[e]&224)>>5;const a=Ae[e]&31;if(i!==k){throw new Error(`unexpected major type ${i} in indefinite string.`)}if(a===le){throw new Error("nested indefinite string.")}const d=decodeUnstructuredByteString(e,t);const m=he;e+=m;for(let e=0;e<d.length;++e){n.push(d[e])}}throw new Error("expected break marker.")}function decodeList(e,t){const n=decodeCount(e,t);const o=he;e+=o;const i=e;const a=Array(n);for(let o=0;o<n;++o){const n=decode(e,t);const i=he;a[o]=n;e+=i}he=o+(e-i);return a}function decodeListIndefinite(e,t){e+=1;const n=[];for(const o=e;e<t;){if(Ae[e]===255){he=e-o+2;return n}const i=decode(e,t);const a=he;e+=a;n.push(i)}throw new Error("expected break marker.")}function decodeMap(e,t){const n=decodeCount(e,t);const o=he;e+=o;const i=e;const a={};for(let o=0;o<n;++o){if(e>=t){throw new Error("unexpected end of map payload.")}const n=(Ae[e]&224)>>5;if(n!==L){throw new Error(`unexpected major type ${n} for map key at index ${e}.`)}const o=decode(e,t);e+=he;const i=decode(e,t);e+=he;a[o]=i}he=o+(e-i);return a}function decodeMapIndefinite(e,t){e+=1;const n=e;const o={};for(;e<t;){if(e>=t){throw new Error("unexpected end of map payload.")}if(Ae[e]===255){he=e-n+2;return o}const i=(Ae[e]&224)>>5;if(i!==L){throw new Error(`unexpected major type ${i} for map key.`)}const a=decode(e,t);e+=he;const d=decode(e,t);e+=he;o[a]=d}throw new Error("expected break marker.")}function decodeSpecial(e,t){const n=Ae[e]&31;switch(n){case re:case te:he=1;return n===re;case ne:he=1;return null;case se:he=1;return null;case ie:if(t-e<3){throw new Error("incomplete float16 at end of buf.")}he=3;return bytesToFloat16(Ae[e+1],Ae[e+2]);case ae:if(t-e<5){throw new Error("incomplete float32 at end of buf.")}he=5;return me.getFloat32(e+1);case ce:if(t-e<9){throw new Error("incomplete float64 at end of buf.")}he=9;return me.getFloat64(e+1);default:throw new Error(`unexpected minor value ${n}.`)}}function castBigInt(e){if(typeof e==="number"){return e}const t=Number(e);if(Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER){return t}return e}const ye=typeof Buffer!=="undefined";const Ee=2048;let Ce=alloc(Ee);let Ie=new DataView(Ce.buffer,Ce.byteOffset,Ce.byteLength);let be=0;function ensureSpace(e){const t=Ce.byteLength-be;if(t<e){if(be<16e6){resize(Math.max(Ce.byteLength*4,Ce.byteLength+e))}else{resize(Ce.byteLength+e+16e6)}}}function toUint8Array(){const e=alloc(be);e.set(Ce.subarray(0,be),0);be=0;return e}function resize(e){const t=Ce;Ce=alloc(e);if(t){if(t.copy){t.copy(Ce,0,0,t.byteLength)}else{Ce.set(t,0)}}Ie=new DataView(Ce.buffer,Ce.byteOffset,Ce.byteLength)}function encodeHeader(e,t){if(t<24){Ce[be++]=e<<5|t}else if(t<1<<8){Ce[be++]=e<<5|24;Ce[be++]=t}else if(t<1<<16){Ce[be++]=e<<5|ie;Ie.setUint16(be,t);be+=2}else if(t<2**32){Ce[be++]=e<<5|ae;Ie.setUint32(be,t);be+=4}else{Ce[be++]=e<<5|ce;Ie.setBigUint64(be,typeof t==="bigint"?t:BigInt(t));be+=8}}function encode(e){const t=[e];while(t.length){const e=t.pop();ensureSpace(typeof e==="string"?e.length*4:64);if(typeof e==="string"){if(ye){encodeHeader(L,Buffer.byteLength(e));be+=Ce.write(e,be)}else{const t=i.fromUtf8(e);encodeHeader(L,t.byteLength);Ce.set(t,be);be+=t.byteLength}continue}else if(typeof e==="number"){if(Number.isInteger(e)){const t=e>=0;const n=t?P:D;const o=t?e:-e-1;if(o<24){Ce[be++]=n<<5|o}else if(o<256){Ce[be++]=n<<5|24;Ce[be++]=o}else if(o<65536){Ce[be++]=n<<5|ie;Ce[be++]=o>>8;Ce[be++]=o}else if(o<4294967296){Ce[be++]=n<<5|ae;Ie.setUint32(be,o);be+=4}else{Ce[be++]=n<<5|ce;Ie.setBigUint64(be,BigInt(o));be+=8}continue}Ce[be++]=ee<<5|ce;Ie.setFloat64(be,e);be+=8;continue}else if(typeof e==="bigint"){const t=e>=0;const n=t?P:D;const o=t?e:-e-BigInt(1);const i=Number(o);if(i<24){Ce[be++]=n<<5|i}else if(i<256){Ce[be++]=n<<5|24;Ce[be++]=i}else if(i<65536){Ce[be++]=n<<5|ie;Ce[be++]=i>>8;Ce[be++]=i&255}else if(i<4294967296){Ce[be++]=n<<5|ae;Ie.setUint32(be,i);be+=4}else if(o<BigInt("18446744073709551616")){Ce[be++]=n<<5|ce;Ie.setBigUint64(be,o);be+=8}else{const e=o.toString(2);const n=new Uint8Array(Math.ceil(e.length/8));let i=o;let a=0;while(n.byteLength-++a>=0){n[n.byteLength-a]=Number(i&BigInt(255));i>>=BigInt(8)}ensureSpace(n.byteLength*2);Ce[be++]=t?194:195;if(ye){encodeHeader(k,Buffer.byteLength(n))}else{encodeHeader(k,n.byteLength)}Ce.set(n,be);be+=n.byteLength}continue}else if(e===null){Ce[be++]=ee<<5|ne;continue}else if(typeof e==="boolean"){Ce[be++]=ee<<5|(e?re:te);continue}else if(typeof e==="undefined"){throw new Error("@smithy/core/cbor: client may not serialize undefined value.")}else if(Array.isArray(e)){for(let n=e.length-1;n>=0;--n){t.push(e[n])}encodeHeader(F,e.length);continue}else if(typeof e.byteLength==="number"){ensureSpace(e.length*2);encodeHeader(k,e.length);Ce.set(e,be);be+=e.byteLength;continue}else if(typeof e==="object"){if(e instanceof o.NumericValue){const n=e.string.indexOf(".");const o=n===-1?0:n-e.string.length+1;const i=BigInt(e.string.replace(".",""));Ce[be++]=196;t.push(i);t.push(o);encodeHeader(F,2);continue}if(e[ue]){if("tag"in e&&"value"in e){t.push(e.value);encodeHeader(V,e.tag);continue}else{throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(e))}}const n=Object.keys(e);for(let o=n.length-1;o>=0;--o){const i=n[o];t.push(e[i]);t.push(i)}encodeHeader(q,n.length);continue}throw new Error(`data type ${e?.constructor?.name??typeof e} not compatible for encoding.`)}}const Se={deserialize(e){setPayload(e);return decode(0,e.length)},serialize(e){try{encode(e);return toUint8Array()}catch(e){toUint8Array();throw e}},resizeEncodingBuffer(e){resize(e)}};const parseCborBody=(e,t)=>a.collectBody(e,t).then((async e=>{if(e.length){try{return Se.deserialize(e)}catch(n){Object.defineProperty(n,"$responseBodyText",{value:t.utf8Encoder(e)});throw n}}return{}}));const dateToTag=e=>tag({tag:1,value:e.getTime()/1e3});const parseCborErrorBody=async(e,t)=>{const n=await parseCborBody(e,t);n.message=n.message??n.Message;return n};const loadSmithyRpcV2CborErrorCode=(e,t)=>{const sanitizeErrorCode=e=>{let t=e;if(typeof t==="number"){t=t.toString()}if(t.indexOf(",")>=0){t=t.split(",")[0]}if(t.indexOf(":")>=0){t=t.split(":")[0]}if(t.indexOf("#")>=0){t=t.split("#")[1]}return t};if(t["__type"]!==undefined){return sanitizeErrorCode(t["__type"])}const n=Object.keys(t).find((e=>e.toLowerCase()==="code"));if(n&&t[n]!==undefined){return sanitizeErrorCode(t[n])}};const checkCborResponse=e=>{if(String(e.headers["smithy-protocol"]).toLowerCase()!=="rpc-v2-cbor"){throw new Error("Malformed RPCv2 CBOR response, status: "+e.statusCode)}};const buildHttpRpcRequest=async(e,t,n,o,i)=>{const a=await e.endpoint();const{hostname:h,protocol:f="https",port:C,path:P}=a;const D={protocol:f,hostname:h,port:C,method:"POST",path:P.endsWith("/")?P.slice(0,-1)+n:P+n,headers:{...t}};if(o!==undefined){D.hostname=o}if(a.headers){for(const[e,t]of Object.entries(a.headers)){D.headers[e]=t}}if(i!==undefined){D.body=i;try{D.headers["content-length"]=String(m.calculateBodyLength(i))}catch(e){}}return new d.HttpRequest(D)};class CborCodec extends a.SerdeContext{createSerializer(){const e=new CborShapeSerializer;e.setSerdeContext(this.serdeContext);return e}createDeserializer(){const e=new CborShapeDeserializer;e.setSerdeContext(this.serdeContext);return e}}class CborShapeSerializer extends a.SerdeContext{value;write(e,t){this.value=this.serialize(e,t)}serialize(e,t){const n=h.NormalizedSchema.of(e);if(t==null){if(n.isIdempotencyToken()){return o.generateIdempotencyToken()}return t}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??C.fromBase64)(t)}return t}if(n.isTimestampSchema()){if(typeof t==="number"||typeof t==="bigint"){return dateToTag(new Date(Number(t)/1e3|0))}return dateToTag(t)}if(typeof t==="function"||typeof t==="object"){const e=t;if(n.isListSchema()&&Array.isArray(e)){const t=!!n.getMergedTraits().sparse;const o=[];let i=0;for(const a of e){const e=this.serialize(n.getValueSchema(),a);if(e!=null||t){o[i++]=e}}return o}if(e instanceof Date){return dateToTag(e)}const o={};if(n.isMapSchema()){const t=!!n.getMergedTraits().sparse;for(const i of Object.keys(e)){const a=this.serialize(n.getValueSchema(),e[i]);if(a!=null||t){o[i]=a}}}else if(n.isStructSchema()){for(const[t,i]of n.structIterator()){const n=this.serialize(i,e[t]);if(n!=null){o[t]=n}}const t=n.isUnionSchema();if(t&&Array.isArray(e.$unknown)){const[t,n]=e.$unknown;o[t]=n}else if(typeof e.__type==="string"){for(const[t,n]of Object.entries(e)){if(!(t in o)){o[t]=this.serialize(15,n)}}}}else if(n.isDocumentSchema()){for(const t of Object.keys(e)){o[t]=this.serialize(n.getValueSchema(),e[t])}}else if(n.isBigDecimalSchema()){return e}return o}return t}flush(){const e=Se.serialize(this.value);this.value=undefined;return e}}class CborShapeDeserializer extends a.SerdeContext{read(e,t){const n=Se.deserialize(t);return this.readValue(e,n)}readValue(e,t){const n=h.NormalizedSchema.of(e);if(n.isTimestampSchema()){if(typeof t==="number"){return o._parseEpochTimestamp(t)}if(typeof t==="object"){if(t.tag===1&&"value"in t){return o._parseEpochTimestamp(t.value)}}}if(n.isBlobSchema()){if(typeof t==="string"){return(this.serdeContext?.base64Decoder??C.fromBase64)(t)}return t}if(typeof t==="undefined"||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="bigint"||typeof t==="symbol"){return t}else if(typeof t==="object"){if(t===null){return null}if("byteLength"in t){return t}if(t instanceof Date){return t}if(n.isDocumentSchema()){return t}if(n.isListSchema()){const e=[];const o=n.getValueSchema();for(const n of t){const t=this.readValue(o,n);e.push(t)}return e}const e={};if(n.isMapSchema()){const o=n.getValueSchema();for(const n of Object.keys(t)){const i=this.readValue(o,t[n]);e[n]=i}}else if(n.isStructSchema()){const o=n.isUnionSchema();let i;if(o){i=new Set(Object.keys(t).filter((e=>e!=="__type")))}for(const[a,d]of n.structIterator()){if(o){i.delete(a)}if(t[a]!=null){e[a]=this.readValue(d,t[a])}}if(o&&i?.size===1&&Object.keys(e).length===0){const n=i.values().next().value;e.$unknown=[n,t[n]]}else if(typeof t.__type==="string"){for(const[n,o]of Object.entries(t)){if(!(n in e)){e[n]=o}}}}else if(t instanceof o.NumericValue){return t}return e}else{return t}}}class SmithyRpcV2CborProtocol extends a.RpcProtocol{codec=new CborCodec;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:e,errorTypeRegistries:t}){super({defaultNamespace:e,errorTypeRegistries:t})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(e,t,n){const o=await super.serializeRequest(e,t,n);Object.assign(o.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()});if(h.deref(e.input)==="unit"){delete o.body;delete o.headers["content-type"]}else{if(!o.body){this.serializer.write(15,{});o.body=this.serializer.flush()}try{o.headers["content-length"]=String(o.body.byteLength)}catch(e){}}const{service:i,operation:a}=f.getSmithyContext(n);const d=`/service/${i}/operation/${a}`;if(o.path.endsWith("/")){o.path+=d.slice(1)}else{o.path+=d}return o}async deserializeResponse(e,t,n){return super.deserializeResponse(e,t,n)}async handleError(e,t,n,o,i){const a=loadSmithyRpcV2CborErrorCode(n,o)??"Unknown";const d={$metadata:i,$fault:n.statusCode<=500?"client":"server"};let m=this.options.defaultNamespace;if(a.includes("#")){[m]=a.split("#")}const f=this.compositeErrorRegistry;const C=h.TypeRegistry.for(m);f.copyFrom(C);let P;try{P=f.getSchema(a)}catch(e){if(o.Message){o.message=o.Message}const t=h.TypeRegistry.for("smithy.ts.sdk.synthetic."+m);f.copyFrom(t);const n=f.getBaseException();if(n){const e=f.getErrorCtor(n);throw Object.assign(new e({name:a}),d,o)}throw Object.assign(new Error(a),d,o)}const D=h.NormalizedSchema.of(P);const k=f.getErrorCtor(P);const L=o.message??o.Message??"Unknown";const F=new k(L);const q={};for(const[e,t]of D.structIterator()){q[e]=this.deserializer.readValue(t,o[e])}throw Object.assign(F,d,{$fault:D.getMergedTraits().error,message:L},q)}getDefaultContentType(){return"application/cbor"}}t.CborCodec=CborCodec;t.CborShapeDeserializer=CborShapeDeserializer;t.CborShapeSerializer=CborShapeSerializer;t.SmithyRpcV2CborProtocol=SmithyRpcV2CborProtocol;t.buildHttpRpcRequest=buildHttpRpcRequest;t.cbor=Se;t.checkCborResponse=checkCborResponse;t.dateToTag=dateToTag;t.loadSmithyRpcV2CborErrorCode=loadSmithyRpcV2CborErrorCode;t.parseCborBody=parseCborBody;t.parseCborErrorBody=parseCborErrorBody;t.tag=tag;t.tagSymbol=ue},2085:(e,t,n)=>{var o=n(4494);const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const t=o.parseUrl(e.url);if(e.headers){t.headers={};for(const[n,o]of Object.entries(e.headers)){t.headers[n.toLowerCase()]=o.join(", ")}}return t}return e}return o.parseUrl(e)};t.toEndpointV1=toEndpointV1},3422:(e,t,n)=>{var o=n(4252);var i=n(6890);var a=n(2430);var d=n(2356);var m=n(8385);var h=n(1577);const collectBody=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array){return o.Uint8ArrayBlobAdapter.mutate(e)}if(!e){return o.Uint8ArrayBlobAdapter.mutate(new Uint8Array)}const n=t.streamCollector(e);return o.Uint8ArrayBlobAdapter.mutate(await n)};function extendedEncodeURIComponent(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}class SerdeContext{serdeContext;setSerdeContext(e){this.serdeContext=e}}class HttpProtocol extends SerdeContext{options;compositeErrorRegistry;constructor(e){super();this.options=e;this.compositeErrorRegistry=i.TypeRegistry.for(e.defaultNamespace);for(const t of e.errorTypeRegistries??[]){this.compositeErrorRegistry.copyFrom(t)}}getRequestType(){return d.HttpRequest}getResponseType(){return d.HttpResponse}setSerdeContext(e){this.serdeContext=e;this.serializer.setSerdeContext(e);this.deserializer.setSerdeContext(e);if(this.getPayloadCodec()){this.getPayloadCodec().setSerdeContext(e)}}updateServiceEndpoint(e,t){if("url"in t){e.protocol=t.url.protocol;e.hostname=t.url.hostname;e.port=t.url.port?Number(t.url.port):undefined;e.path=t.url.pathname;e.fragment=t.url.hash||void 0;e.username=t.url.username||void 0;e.password=t.url.password||void 0;if(!e.query){e.query={}}for(const[n,o]of t.url.searchParams.entries()){e.query[n]=o}if(t.headers){for(const[n,o]of Object.entries(t.headers)){e.headers[n]=o.join(", ")}}return e}else{e.protocol=t.protocol;e.hostname=t.hostname;e.port=t.port?Number(t.port):undefined;e.path=t.path;e.query={...t.query};if(t.headers){for(const[n,o]of Object.entries(t.headers)){e.headers[n]=o}}return e}}setHostPrefix(e,t,n){if(this.serdeContext?.disableHostPrefix){return}const o=i.NormalizedSchema.of(t.input);const a=i.translateTraits(t.traits??{});if(a.endpoint){let t=a.endpoint?.[0];if(typeof t==="string"){const i=[...o.structIterator()].filter((([,e])=>e.getMergedTraits().hostLabel));for(const[e]of i){const o=n[e];if(typeof o!=="string"){throw new Error(`@smithy/core/schema - ${e} in input must be a string as hostLabel.`)}t=t.replace(`{${e}}`,o)}e.hostname=t+e.hostname}}}deserializeMetadata(e){return{httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n}){const o=await this.loadEventStreamCapability();return o.serializeEventStream({eventStream:e,requestSchema:t,initialRequest:n})}async deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n}){const o=await this.loadEventStreamCapability();return o.deserializeEventStream({response:e,responseSchema:t,initialResponseContainer:n})}async loadEventStreamCapability(){const{EventStreamSerde:e}=await n.e(579).then(n.t.bind(n,6579,19));return new e({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(e,t,n,o,i){return[]}getEventStreamMarshaller(){const e=this.serdeContext;if(!e.eventStreamMarshaller){throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.")}return e.eventStreamMarshaller}}class HttpBindingProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=t&&typeof t==="object"?t:{};const a=this.serializer;const m={};const h={};const f=await n.endpoint();const C=i.NormalizedSchema.of(e?.input);const P=[];const D=[];let k=false;let L;const F=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"",fragment:undefined,query:m,headers:h,body:undefined});if(f){this.updateServiceEndpoint(F,f);this.setHostPrefix(F,e,o);const t=i.translateTraits(e.traits);if(t.http){F.method=t.http[0];const[e,n]=t.http[1].split("?");if(F.path=="/"){F.path=e}else{F.path+=e}const o=new URLSearchParams(n??"");Object.assign(m,Object.fromEntries(o))}}for(const[e,t]of C.structIterator()){const n=t.getMergedTraits()??{};const i=o[e];if(i==null&&!t.isIdempotencyToken()){if(n.httpLabel){if(F.path.includes(`{${e}+}`)||F.path.includes(`{${e}}`)){throw new Error(`No value provided for input HTTP label: ${e}.`)}}continue}if(n.httpPayload){const n=t.isStreaming();if(n){const n=t.isStructSchema();if(n){if(o[e]){L=await this.serializeEventStream({eventStream:o[e],requestSchema:C})}}else{L=i}}else{a.write(t,i);L=a.flush()}}else if(n.httpLabel){a.write(t,i);const n=a.flush();if(F.path.includes(`{${e}+}`)){F.path=F.path.replace(`{${e}+}`,n.split("/").map(extendedEncodeURIComponent).join("/"))}else if(F.path.includes(`{${e}}`)){F.path=F.path.replace(`{${e}}`,extendedEncodeURIComponent(n))}}else if(n.httpHeader){a.write(t,i);h[n.httpHeader.toLowerCase()]=String(a.flush())}else if(typeof n.httpPrefixHeaders==="string"){for(const[e,o]of Object.entries(i)){const i=n.httpPrefixHeaders+e;a.write([t.getValueSchema(),{httpHeader:i}],o);h[i.toLowerCase()]=a.flush()}}else if(n.httpQuery||n.httpQueryParams){this.serializeQuery(t,i,m)}else{k=true;P.push(e);D.push(t)}}if(k&&o){const[e,t]=(C.getName(true)??"#Unknown").split("#");const n=C.getSchema()[6];const i=[3,e,t,C.getMergedTraits(),P,D,undefined];if(n){i[6]=n}else{i.pop()}a.write(i,o);L=a.flush()}F.headers=h;F.query=m;F.body=L;return F}serializeQuery(e,t,n){const o=this.serializer;const i=e.getMergedTraits();if(i.httpQueryParams){for(const[o,a]of Object.entries(t)){if(!(o in n)){const t=e.getValueSchema();Object.assign(t.getMergedTraits(),{...i,httpQuery:o,httpQueryParams:undefined});this.serializeQuery(t,a,n)}}return}if(e.isListSchema()){const a=!!e.getMergedTraits().sparse;const d=[];for(const n of t){o.write([e.getValueSchema(),i],n);const t=o.flush();if(a||t!==undefined){d.push(t)}}n[i.httpQuery]=d}else{o.write([e,i],t);n[i.httpQuery]=o.flush()}}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const m=await this.deserializeHttpMessage(a,t,n,d);if(m.length){const e=await collectBody(n.body,t);if(e.byteLength>0){const t=await o.read(a,e);for(const e of m){if(t[e]!=null){d[e]=t[e]}}}}else if(m.discardResponseBody){await collectBody(n.body,t)}d.$metadata=this.deserializeMetadata(n);return d}async deserializeHttpMessage(e,t,n,d,m){let h;if(d instanceof Set){h=m}else{h=d}let f=true;const C=this.deserializer;const P=i.NormalizedSchema.of(e);const D=[];for(const[e,i]of P.structIterator()){const d=i.getMemberTraits();if(d.httpPayload){f=false;const a=i.isStreaming();if(a){const t=i.isStructSchema();if(t){h[e]=await this.deserializeEventStream({response:n,responseSchema:P})}else{h[e]=o.sdkStreamMixin(n.body)}}else if(n.body){const o=await collectBody(n.body,t);if(o.byteLength>0){h[e]=await C.read(i,o)}}}else if(d.httpHeader){const t=String(d.httpHeader).toLowerCase();const o=n.headers[t];if(null!=o){if(i.isListSchema()){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;let d;if(n.isTimestampSchema()&&n.getSchema()===4){d=a.splitEvery(o,",",2)}else{d=a.splitHeader(o)}const m=[];for(const e of d){m.push(await C.read(n,e.trim()))}h[e]=m}else{h[e]=await C.read(i,o)}}}else if(d.httpPrefixHeaders!==undefined){h[e]={};for(const[t,o]of Object.entries(n.headers)){if(t.startsWith(d.httpPrefixHeaders)){const n=i.getValueSchema();n.getMergedTraits().httpHeader=t;h[e][t.slice(d.httpPrefixHeaders.length)]=await C.read(n,o)}}}else if(d.httpResponseCode){h[e]=n.statusCode}else{D.push(e)}}D.discardResponseBody=f;return D}}class RpcProtocol extends HttpProtocol{async serializeRequest(e,t,n){const o=this.serializer;const a={};const m={};const h=await n.endpoint();const f=i.NormalizedSchema.of(e?.input);const C=f.getSchema();let P;const D=t&&typeof t==="object"?t:{};const k=new d.HttpRequest({protocol:"",hostname:"",port:undefined,path:"/",fragment:undefined,query:a,headers:m,body:undefined});if(h){this.updateServiceEndpoint(k,h);this.setHostPrefix(k,e,D)}if(D){const e=f.getEventStreamMember();if(e){if(D[e]){const t={};for(const[n,i]of f.structIterator()){if(n!==e&&D[n]){o.write(i,D[n]);t[n]=o.flush()}}P=await this.serializeEventStream({eventStream:D[e],requestSchema:f,initialRequest:t})}}else{o.write(C,D);P=o.flush()}}k.headers=Object.assign(k.headers,m);k.query=a;k.body=P;k.method="POST";return k}async deserializeResponse(e,t,n){const o=this.deserializer;const a=i.NormalizedSchema.of(e.output);const d={};if(n.statusCode>=300){const i=await collectBody(n.body,t);if(i.byteLength>0){Object.assign(d,await o.read(15,i))}await this.handleError(e,t,n,d,this.deserializeMetadata(n));throw new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(const e in n.headers){const t=n.headers[e];delete n.headers[e];n.headers[e.toLowerCase()]=t}const m=a.getEventStreamMember();if(m){d[m]=await this.deserializeEventStream({response:n,responseSchema:a,initialResponseContainer:d})}else{const e=await collectBody(n.body,t);if(e.byteLength>0){Object.assign(d,await o.read(a,e))}}d.$metadata=this.deserializeMetadata(n);return d}}const resolvedPath=(e,t,n,o,i,a)=>{if(t!=null&&t[n]!==undefined){const t=o();if(t==null||t.length<=0){throw new Error("Empty value provided for input HTTP label: "+n+".")}e=e.replace(i,a?t.split("/").map((e=>extendedEncodeURIComponent(e))).join("/"):extendedEncodeURIComponent(t))}else{throw new Error("No value provided for input HTTP label: "+n+".")}return e};function requestBuilder(e,t){return new RequestBuilder(e,t)}class RequestBuilder{input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(e,t){this.input=e;this.context=t}async build(){const{hostname:e,protocol:t="https",port:n,path:o}=await this.context.endpoint();this.path=o;for(const e of this.resolvePathStack){e(this.path)}return new d.HttpRequest({protocol:t,hostname:this.hostname||e,port:n,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(e){this.hostname=e;return this}bp(e){this.resolvePathStack.push((t=>{this.path=`${t?.endsWith("/")?t.slice(0,-1):t||""}`+e}));return this}p(e,t,n,o){this.resolvePathStack.push((i=>{this.path=resolvedPath(i,this.input,e,t,n,o)}));return this}h(e){this.headers=e;return this}q(e){this.query=e;return this}b(e){this.body=e;return this}m(e){this.method=e;return this}}function determineTimestampFormat(e,t){if(t.timestampFormat.useTrait){if(e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7)){return e.getSchema()}}const{httpLabel:n,httpPrefixHeaders:o,httpHeader:i,httpQuery:a}=e.getMergedTraits();const d=t.httpBindings?typeof o==="string"||Boolean(i)?6:Boolean(a)||Boolean(n)?5:undefined:undefined;return d??t.timestampFormat.default}class FromStringShapeDeserializer extends SerdeContext{settings;constructor(e){super();this.settings=e}read(e,t){const n=i.NormalizedSchema.of(e);if(n.isListSchema()){return a.splitHeader(t).map((e=>this.read(n.getValueSchema(),e)))}if(n.isBlobSchema()){return(this.serdeContext?.base64Decoder??m.fromBase64)(t)}if(n.isTimestampSchema()){const e=determineTimestampFormat(n,this.settings);switch(e){case 5:return a._parseRfc3339DateTimeWithOffset(t);case 6:return a._parseRfc7231DateTime(t);case 7:return a._parseEpochTimestamp(t);default:console.warn("Missing timestamp format, parsing value with Date constructor:",t);return new Date(t)}}if(n.isStringSchema()){const e=n.getMergedTraits().mediaType;let o=t;if(e){if(n.getMergedTraits().httpHeader){o=this.base64ToUtf8(o)}const t=e==="application/json"||e.endsWith("+json");if(t){o=a.LazyJsonString.from(o)}return o}}if(n.isNumericSchema()){return Number(t)}if(n.isBigIntegerSchema()){return BigInt(t)}if(n.isBigDecimalSchema()){return new a.NumericValue(t,"bigDecimal")}if(n.isBooleanSchema()){return String(t).toLowerCase()==="true"}return t}base64ToUtf8(e){return(this.serdeContext?.utf8Encoder??h.toUtf8)((this.serdeContext?.base64Decoder??m.fromBase64)(e))}}class HttpInterceptingShapeDeserializer extends SerdeContext{codecDeserializer;stringDeserializer;constructor(e,t){super();this.codecDeserializer=e;this.stringDeserializer=new FromStringShapeDeserializer(t)}setSerdeContext(e){this.stringDeserializer.setSerdeContext(e);this.codecDeserializer.setSerdeContext(e);this.serdeContext=e}read(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();const a=this.serdeContext?.utf8Encoder??h.toUtf8;if(o.httpHeader||o.httpResponseCode){return this.stringDeserializer.read(n,a(t))}if(o.httpPayload){if(n.isBlobSchema()){const e=this.serdeContext?.utf8Decoder??h.fromUtf8;if(typeof t==="string"){return e(t)}return t}else if(n.isStringSchema()){if("byteLength"in t){return a(t)}return t}}return this.codecDeserializer.read(n,t)}}class ToStringShapeSerializer extends SerdeContext{settings;stringBuffer="";constructor(e){super();this.settings=e}write(e,t){const n=i.NormalizedSchema.of(e);switch(typeof t){case"object":if(t===null){this.stringBuffer="null";return}if(n.isTimestampSchema()){if(!(t instanceof Date)){throw new Error(`@smithy/core/protocols - received non-Date value ${t} when schema expected Date in ${n.getName(true)}`)}const e=determineTimestampFormat(n,this.settings);switch(e){case 5:this.stringBuffer=t.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=a.dateToUtcString(t);break;case 7:this.stringBuffer=String(t.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",t);this.stringBuffer=String(t.getTime()/1e3)}return}if(n.isBlobSchema()&&"byteLength"in t){this.stringBuffer=(this.serdeContext?.base64Encoder??m.toBase64)(t);return}if(n.isListSchema()&&Array.isArray(t)){let e="";for(const o of t){this.write([n.getValueSchema(),n.getMergedTraits()],o);const t=this.flush();const i=n.getValueSchema().isTimestampSchema()?t:a.quoteHeader(t);if(e!==""){e+=", "}e+=i}this.stringBuffer=e;return}this.stringBuffer=JSON.stringify(t,null,2);break;case"string":const e=n.getMergedTraits().mediaType;let o=t;if(e){const t=e==="application/json"||e.endsWith("+json");if(t){o=a.LazyJsonString.from(o)}if(n.getMergedTraits().httpHeader){this.stringBuffer=(this.serdeContext?.base64Encoder??m.toBase64)(o.toString());return}}this.stringBuffer=t;break;default:if(n.isIdempotencyToken()){this.stringBuffer=a.generateIdempotencyToken()}else{this.stringBuffer=String(t)}}}flush(){const e=this.stringBuffer;this.stringBuffer="";return e}}class HttpInterceptingShapeSerializer{codecSerializer;stringSerializer;buffer;constructor(e,t,n=new ToStringShapeSerializer(t)){this.codecSerializer=e;this.stringSerializer=n}setSerdeContext(e){this.codecSerializer.setSerdeContext(e);this.stringSerializer.setSerdeContext(e)}write(e,t){const n=i.NormalizedSchema.of(e);const o=n.getMergedTraits();if(o.httpHeader||o.httpLabel||o.httpQuery){this.stringSerializer.write(n,t);this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(n,t)}flush(){if(this.buffer!==undefined){const e=this.buffer;this.buffer=undefined;return e}return this.codecSerializer.flush()}}t.FromStringShapeDeserializer=FromStringShapeDeserializer;t.HttpBindingProtocol=HttpBindingProtocol;t.HttpInterceptingShapeDeserializer=HttpInterceptingShapeDeserializer;t.HttpInterceptingShapeSerializer=HttpInterceptingShapeSerializer;t.HttpProtocol=HttpProtocol;t.RequestBuilder=RequestBuilder;t.RpcProtocol=RpcProtocol;t.SerdeContext=SerdeContext;t.ToStringShapeSerializer=ToStringShapeSerializer;t.collectBody=collectBody;t.determineTimestampFormat=determineTimestampFormat;t.extendedEncodeURIComponent=extendedEncodeURIComponent;t.requestBuilder=requestBuilder;t.resolvedPath=resolvedPath},6890:(e,t,n)=>{var o=n(2356);var i=n(6324);var a=n(2085);const deref=e=>{if(typeof e==="function"){return e()}return e};const operation=(e,t,n,o,i)=>({name:t,namespace:e,traits:n,input:o,output:i});const schemaDeserializationMiddleware=e=>(t,n)=>async a=>{const{response:d}=await t(a);const{operationSchema:m}=i.getSmithyContext(n);const[,h,f,C,P,D]=m??[];try{const t=await e.protocol.deserializeResponse(operation(h,f,C,P,D),{...e,...n},d);return{response:d,output:t}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!n.logger||n.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{n.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const schemaSerializationMiddleware=e=>(t,n)=>async o=>{const{operationSchema:d}=i.getSmithyContext(n);const[,m,h,f,C,P]=d??[];const D=n.endpointV2?async()=>a.toEndpointV1(n.endpointV2):e.endpoint;const k=await e.protocol.serializeRequest(operation(m,h,f,C,P),o.input,{...e,...n,endpoint:D});return t({...o,request:k})};const d={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const m={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSchemaSerdePlugin(e){return{applyToStack:t=>{t.add(schemaSerializationMiddleware(e),m);t.add(schemaDeserializationMiddleware(e),d);e.protocol.setSerdeContext(e)}}}class Schema{name;namespace;traits;static assign(e,t){const n=Object.assign(e,t);return n}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}getName(){return this.namespace+"#"+this.name}}class ListSchema extends Schema{static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=ListSchema.symbol}const list=(e,t,n,o)=>Schema.assign(new ListSchema,{name:t,namespace:e,traits:n,valueSchema:o});class MapSchema extends Schema{static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=MapSchema.symbol}const map=(e,t,n,o,i)=>Schema.assign(new MapSchema,{name:t,namespace:e,traits:n,keySchema:o,valueSchema:i});class OperationSchema extends Schema{static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=OperationSchema.symbol}const op=(e,t,n,o,i)=>Schema.assign(new OperationSchema,{name:t,namespace:e,traits:n,input:o,output:i});class StructureSchema extends Schema{static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=StructureSchema.symbol}const struct=(e,t,n,o,i)=>Schema.assign(new StructureSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i});class ErrorSchema extends StructureSchema{static symbol=Symbol.for("@smithy/err");ctor;symbol=ErrorSchema.symbol}const error=(e,t,n,o,i,a)=>Schema.assign(new ErrorSchema,{name:t,namespace:e,traits:n,memberNames:o,memberList:i,ctor:null});const h=[];function translateTraits(e){if(typeof e==="object"){return e}e=e|0;if(h[e]){return h[e]}const t={};let n=0;for(const o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"]){if((e>>n++&1)===1){t[o]=1}}return h[e]=t}const f={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")};const C=[];const P={};class NormalizedSchema{ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=NormalizedSchema.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(e,t){this.ref=e;this.memberName=t;const n=[];let o=e;let i=e;this._isMemberSchema=false;while(isMemberSchema(o)){n.push(o[1]);o=o[0];i=deref(o);this._isMemberSchema=true}if(n.length>0){this.memberTraits={};for(let e=n.length-1;e>=0;--e){const t=n[e];Object.assign(this.memberTraits,translateTraits(t))}}else{this.memberTraits=0}if(i instanceof NormalizedSchema){const e=this.memberTraits;Object.assign(this,i);this.memberTraits=Object.assign({},e,i.getMemberTraits(),this.getMemberTraits());this.normalizedTraits=void 0;this.memberName=t??i.memberName;return}this.schema=deref(i);if(isStaticSchema(this.schema)){this.name=`${this.schema[1]}#${this.schema[2]}`;this.traits=this.schema[3]}else{this.name=this.memberName??String(i);this.traits=0}if(this._isMemberSchema&&!t){throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(true)} missing member name.`)}}static[Symbol.hasInstance](e){const t=this.prototype.isPrototypeOf(e);if(!t&&typeof e==="object"&&e!==null){const t=e;return t.symbol===this.symbol}return t}static of(e){const t=typeof e==="function"||typeof e==="object"&&e!==null;if(typeof e==="number"){if(C[e]){return C[e]}}else if(typeof e==="string"){if(P[e]){return P[e]}}else if(t){if(e[f.ns]){return e[f.ns]}}const n=deref(e);if(n instanceof NormalizedSchema){return n}if(isMemberSchema(n)){const[t,o]=n;if(t instanceof NormalizedSchema){Object.assign(t.getMergedTraits(),translateTraits(o));return t}throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(e,null,2)}.`)}const o=new NormalizedSchema(n);if(t){return e[f.ns]=o}if(typeof n==="string"){return P[n]=o}if(typeof n==="number"){return C[n]=o}return o}getSchema(){const e=this.schema;if(Array.isArray(e)&&e[0]===0){return e[4]}return e}getName(e=false){const{name:t}=this;const n=!e&&t&&t.includes("#");return n?t.split("#")[1]:t||undefined}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){const e=this.getSchema();return typeof e==="number"?e>=64&&e<128:e[0]===1}isMapSchema(){const e=this.getSchema();return typeof e==="number"?e>=128&&e<=255:e[0]===2}isStructSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}const t=e[0];return t===3||t===-3||t===4}isUnionSchema(){const e=this.getSchema();if(typeof e!=="object"){return false}return e[0]===4}isBlobSchema(){const e=this.getSchema();return e===21||e===42}isTimestampSchema(){const e=this.getSchema();return typeof e==="number"&&e>=4&&e<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){const{streaming:e}=this.getMergedTraits();return!!e||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return translateTraits(this.memberTraits)}getOwnTraits(){return translateTraits(this.traits)}getKeySchema(){const[e,t]=[this.isDocumentSchema(),this.isMapSchema()];if(!e&&!t){throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(true)}`)}const n=this.getSchema();const o=e?15:n[4]??0;return member([o,0],"key")}getValueSchema(){const e=this.getSchema();const[t,n,o]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()];const i=typeof e==="number"?63&e:e&&typeof e==="object"&&(n||o)?e[3+e[0]]:t?15:void 0;if(i!=null){return member([i,0],n?"value":"member")}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no value member.`)}getMemberSchema(e){const t=this.getSchema();if(this.isStructSchema()&&t[4].includes(e)){const n=t[4].indexOf(e);const o=t[5][n];return member(isMemberSchema(o)?o:[o,0],e)}if(this.isDocumentSchema()){return member([15,0],e)}throw new Error(`@smithy/core/schema - ${this.getName(true)} has no member=${e}.`)}getMemberSchemas(){const e={};try{for(const[t,n]of this.structIterator()){e[t]=n}}catch(e){}return e}getEventStreamMember(){if(this.isStructSchema()){for(const[e,t]of this.structIterator()){if(t.isStreaming()&&t.isStructSchema()){return e}}}return""}*structIterator(){if(this.isUnitSchema()){return}if(!this.isStructSchema()){throw new Error("@smithy/core/schema - cannot iterate non-struct schema.")}const e=this.getSchema();const t=e[4].length;let n=e[f.it];if(n&&t===n.length){yield*n;return}n=Array(t);for(let o=0;o<t;++o){const t=e[4][o];const i=member([e[5][o],0],t);yield n[o]=[t,i]}e[f.it]=n}}function member(e,t){if(e instanceof NormalizedSchema){return Object.assign(e,{memberName:t,_isMemberSchema:true})}const n=NormalizedSchema;return new n(e,t)}const isMemberSchema=e=>Array.isArray(e)&&e.length===2;const isStaticSchema=e=>Array.isArray(e)&&e.length>=5;class SimpleSchema extends Schema{static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=SimpleSchema.symbol}const sim=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:o,schemaRef:n});const simAdapter=(e,t,n,o)=>Schema.assign(new SimpleSchema,{name:t,namespace:e,traits:n,schemaRef:o});const D={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128};class TypeRegistry{namespace;schemas;exceptions;static registries=new Map;constructor(e,t=new Map,n=new Map){this.namespace=e;this.schemas=t;this.exceptions=n}static for(e){if(!TypeRegistry.registries.has(e)){TypeRegistry.registries.set(e,new TypeRegistry(e))}return TypeRegistry.registries.get(e)}copyFrom(e){const{schemas:t,exceptions:n}=this;for(const[n,o]of e.schemas){if(!t.has(n)){t.set(n,o)}}for(const[t,o]of e.exceptions){if(!n.has(t)){n.set(t,o)}}}register(e,t){const n=this.normalizeShapeId(e);for(const e of[this,TypeRegistry.for(n.split("#")[0])]){e.schemas.set(n,t)}}getSchema(e){const t=this.normalizeShapeId(e);if(!this.schemas.has(t)){throw new Error(`@smithy/core/schema - schema not found for ${t}`)}return this.schemas.get(t)}registerError(e,t){const n=e;const o=n[1];for(const e of[this,TypeRegistry.for(o)]){e.schemas.set(o+"#"+n[2],n);e.exceptions.set(n,t)}}getErrorCtor(e){const t=e;if(this.exceptions.has(t)){return this.exceptions.get(t)}const n=TypeRegistry.for(t[1]);return n.exceptions.get(t)}getBaseException(){for(const e of this.exceptions.keys()){if(Array.isArray(e)){const[,t,n]=e;const o=t+"#"+n;if(o.startsWith("smithy.ts.sdk.synthetic.")&&o.endsWith("ServiceException")){return e}}}return undefined}find(e){return[...this.schemas.values()].find(e)}clear(){this.schemas.clear();this.exceptions.clear()}normalizeShapeId(e){if(e.includes("#")){return e}return this.namespace+"#"+e}}t.ErrorSchema=ErrorSchema;t.ListSchema=ListSchema;t.MapSchema=MapSchema;t.NormalizedSchema=NormalizedSchema;t.OperationSchema=OperationSchema;t.SCHEMA=D;t.Schema=Schema;t.SimpleSchema=SimpleSchema;t.StructureSchema=StructureSchema;t.TypeRegistry=TypeRegistry;t.deref=deref;t.deserializerMiddlewareOption=d;t.error=error;t.getSchemaSerdePlugin=getSchemaSerdePlugin;t.isStaticSchema=isStaticSchema;t.list=list;t.map=map;t.op=op;t.operation=operation;t.serializerMiddlewareOption=m;t.sim=sim;t.simAdapter=simAdapter;t.simpleSchemaCacheN=C;t.simpleSchemaCacheS=P;t.struct=struct;t.traitsCache=h;t.translateTraits=translateTraits},2430:(e,t,n)=>{var o=n(266);const copyDocumentWithTransform=(e,t,n=e=>e)=>e;const parseBoolean=e=>{switch(e){case"true":return true;case"false":return false;default:throw new Error(`Unable to parse boolean value "${e}"`)}};const expectBoolean=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="number"){if(e===0||e===1){P.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(e===0){return false}if(e===1){return true}}if(typeof e==="string"){const t=e.toLowerCase();if(t==="false"||t==="true"){P.warn(stackTraceWarning(`Expected boolean, got ${typeof e}: ${e}`))}if(t==="false"){return false}if(t==="true"){return true}}if(typeof e==="boolean"){return e}throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)};const expectNumber=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){const t=parseFloat(e);if(!Number.isNaN(t)){if(String(t)!==String(e)){P.warn(stackTraceWarning(`Expected number but observed string: ${e}`))}return t}}if(typeof e==="number"){return e}throw new TypeError(`Expected number, got ${typeof e}: ${e}`)};const i=Math.ceil(2**127*(2-2**-23));const expectFloat32=e=>{const t=expectNumber(e);if(t!==undefined&&!Number.isNaN(t)&&t!==Infinity&&t!==-Infinity){if(Math.abs(t)>i){throw new TypeError(`Expected 32-bit float, got ${e}`)}}return t};const expectLong=e=>{if(e===null||e===undefined){return undefined}if(Number.isInteger(e)&&!Number.isNaN(e)){return e}throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)};const a=expectLong;const expectInt32=e=>expectSizedInt(e,32);const expectShort=e=>expectSizedInt(e,16);const expectByte=e=>expectSizedInt(e,8);const expectSizedInt=(e,t)=>{const n=expectLong(e);if(n!==undefined&&castInt(n,t)!==n){throw new TypeError(`Expected ${t}-bit integer, got ${e}`)}return n};const castInt=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}};const expectNonNull=(e,t)=>{if(e===null||e===undefined){if(t){throw new TypeError(`Expected a non-null value for ${t}`)}throw new TypeError("Expected a non-null value")}return e};const expectObject=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="object"&&!Array.isArray(e)){return e}const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)};const expectString=e=>{if(e===null||e===undefined){return undefined}if(typeof e==="string"){return e}if(["boolean","number","bigint"].includes(typeof e)){P.warn(stackTraceWarning(`Expected string, got ${typeof e}: ${e}`));return String(e)}throw new TypeError(`Expected string, got ${typeof e}: ${e}`)};const expectUnion=e=>{if(e===null||e===undefined){return undefined}const t=expectObject(e);const n=Object.entries(t).filter((([,e])=>e!=null)).map((([e])=>e));if(n.length===0){throw new TypeError(`Unions must have exactly one non-null member. None were found.`)}if(n.length>1){throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`)}return t};const strictParseDouble=e=>{if(typeof e=="string"){return expectNumber(parseNumber(e))}return expectNumber(e)};const d=strictParseDouble;const strictParseFloat32=e=>{if(typeof e=="string"){return expectFloat32(parseNumber(e))}return expectFloat32(e)};const m=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;const parseNumber=e=>{const t=e.match(m);if(t===null||t[0].length!==e.length){throw new TypeError(`Expected real number, got implicit NaN`)}return parseFloat(e)};const limitedParseDouble=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectNumber(e)};const h=limitedParseDouble;const f=limitedParseDouble;const limitedParseFloat32=e=>{if(typeof e=="string"){return parseFloatString(e)}return expectFloat32(e)};const parseFloatString=e=>{switch(e){case"NaN":return NaN;case"Infinity":return Infinity;case"-Infinity":return-Infinity;default:throw new Error(`Unable to parse float value: ${e}`)}};const strictParseLong=e=>{if(typeof e==="string"){return expectLong(parseNumber(e))}return expectLong(e)};const C=strictParseLong;const strictParseInt32=e=>{if(typeof e==="string"){return expectInt32(parseNumber(e))}return expectInt32(e)};const strictParseShort=e=>{if(typeof e==="string"){return expectShort(parseNumber(e))}return expectShort(e)};const strictParseByte=e=>{if(typeof e==="string"){return expectByte(parseNumber(e))}return expectByte(e)};const stackTraceWarning=e=>String(new TypeError(e).stack||e).split("\n").slice(0,5).filter((e=>!e.includes("stackTraceWarning"))).join("\n");const P={warn:console.warn};const D=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(e){const t=e.getUTCFullYear();const n=e.getUTCMonth();const o=e.getUTCDay();const i=e.getUTCDate();const a=e.getUTCHours();const d=e.getUTCMinutes();const m=e.getUTCSeconds();const h=i<10?`0${i}`:`${i}`;const f=a<10?`0${a}`:`${a}`;const C=d<10?`0${d}`:`${d}`;const P=m<10?`0${m}`:`${m}`;return`${D[o]}, ${h} ${k[n]} ${t} ${f}:${C}:${P} GMT`}const L=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);const parseRfc3339DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=L.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,a,d,m,h,f]=t;const C=strictParseShort(stripLeadingZeroes(o));const P=parseDateValue(i,"month",1,12);const D=parseDateValue(a,"day",1,31);return buildDate(C,P,D,{hours:d,minutes:m,seconds:h,fractionalMilliseconds:f})};const F=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);const parseRfc3339DateTimeWithOffset=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-3339 date-times must be expressed as strings")}const t=F.exec(e);if(!t){throw new TypeError("Invalid RFC-3339 date-time value")}const[n,o,i,a,d,m,h,f,C]=t;const P=strictParseShort(stripLeadingZeroes(o));const D=parseDateValue(i,"month",1,12);const k=parseDateValue(a,"day",1,31);const L=buildDate(P,D,k,{hours:d,minutes:m,seconds:h,fractionalMilliseconds:f});if(C.toUpperCase()!="Z"){L.setTime(L.getTime()-parseOffsetToMilliseconds(C))}return L};const q=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const V=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);const ee=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);const parseRfc7231DateTime=e=>{if(e===null||e===undefined){return undefined}if(typeof e!=="string"){throw new TypeError("RFC-7231 date-times must be expressed as strings")}let t=q.exec(e);if(t){const[e,n,o,i,a,d,m,h]=t;return buildDate(strictParseShort(stripLeadingZeroes(i)),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:a,minutes:d,seconds:m,fractionalMilliseconds:h})}t=V.exec(e);if(t){const[e,n,o,i,a,d,m,h]=t;return adjustRfc850Year(buildDate(parseTwoDigitYear(i),parseMonthByShortName(o),parseDateValue(n,"day",1,31),{hours:a,minutes:d,seconds:m,fractionalMilliseconds:h}))}t=ee.exec(e);if(t){const[e,n,o,i,a,d,m,h]=t;return buildDate(strictParseShort(stripLeadingZeroes(h)),parseMonthByShortName(n),parseDateValue(o.trimLeft(),"day",1,31),{hours:i,minutes:a,seconds:d,fractionalMilliseconds:m})}throw new TypeError("Invalid RFC-7231 date-time value")};const parseEpochTimestamp=e=>{if(e===null||e===undefined){return undefined}let t;if(typeof e==="number"){t=e}else if(typeof e==="string"){t=strictParseDouble(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}else{throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation")}if(Number.isNaN(t)||t===Infinity||t===-Infinity){throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics")}return new Date(Math.round(t*1e3))};const buildDate=(e,t,n,o)=>{const i=t-1;validateDayOfMonth(e,i,n);return new Date(Date.UTC(e,i,n,parseDateValue(o.hours,"hour",0,23),parseDateValue(o.minutes,"minute",0,59),parseDateValue(o.seconds,"seconds",0,60),parseMilliseconds(o.fractionalMilliseconds)))};const parseTwoDigitYear=e=>{const t=(new Date).getUTCFullYear();const n=Math.floor(t/100)*100+strictParseShort(stripLeadingZeroes(e));if(n<t){return n+100}return n};const te=50*365*24*60*60*1e3;const adjustRfc850Year=e=>{if(e.getTime()-(new Date).getTime()>te){return new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()))}return e};const parseMonthByShortName=e=>{const t=k.indexOf(e);if(t<0){throw new TypeError(`Invalid month: ${e}`)}return t+1};const re=[31,28,31,30,31,30,31,31,30,31,30,31];const validateDayOfMonth=(e,t,n)=>{let o=re[t];if(t===1&&isLeapYear(e)){o=29}if(n>o){throw new TypeError(`Invalid day for ${k[t]} in ${e}: ${n}`)}};const isLeapYear=e=>e%4===0&&(e%100!==0||e%400===0);const parseDateValue=(e,t,n,o)=>{const i=strictParseByte(stripLeadingZeroes(e));if(i<n||i>o){throw new TypeError(`${t} must be between ${n} and ${o}, inclusive`)}return i};const parseMilliseconds=e=>{if(e===null||e===undefined){return 0}return strictParseFloat32("0."+e)*1e3};const parseOffsetToMilliseconds=e=>{const t=e[0];let n=1;if(t=="+"){n=1}else if(t=="-"){n=-1}else{throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`)}const o=Number(e.substring(1,3));const i=Number(e.substring(4,6));return n*(o*60+i)*60*1e3};const stripLeadingZeroes=e=>{let t=0;while(t<e.length-1&&e.charAt(t)==="0"){t++}if(t===0){return e}return e.slice(t)};const ne=function LazyJsonString(e){const t=Object.assign(new String(e),{deserializeJSON(){return JSON.parse(String(e))},toString(){return String(e)},toJSON(){return String(e)}});return t};ne.from=e=>{if(e&&typeof e==="object"&&(e instanceof ne||"deserializeJSON"in e)){return e}else if(typeof e==="string"||Object.getPrototypeOf(e)===String.prototype){return ne(String(e))}return ne(JSON.stringify(e))};ne.fromObject=ne.from;function quoteHeader(e){if(e.includes(",")||e.includes('"')){e=`"${e.replace(/"/g,'\\"')}"`}return e}const se=`(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?`;const oe=`(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)`;const ie=`(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?`;const ae=`(\\d?\\d)`;const ce=`(\\d{4})`;const le=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/);const ue=new RegExp(`^${se}, ${ae} ${oe} ${ce} ${ie} GMT$`);const de=new RegExp(`^${se}, ${ae}-${oe}-(\\d\\d) ${ie} GMT$`);const pe=new RegExp(`^${se} ${oe} ( [1-9]|\\d\\d) ${ie} ${ce}$`);const Ae=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const _parseEpochTimestamp=e=>{if(e==null){return void 0}let t=NaN;if(typeof e==="number"){t=e}else if(typeof e==="string"){if(!/^-?\d*\.?\d+$/.test(e)){throw new TypeError(`parseEpochTimestamp - numeric string invalid.`)}t=Number.parseFloat(e)}else if(typeof e==="object"&&e.tag===1){t=e.value}if(isNaN(t)||Math.abs(t)===Infinity){throw new TypeError("Epoch timestamps must be valid finite numbers.")}return new Date(Math.round(t*1e3))};const _parseRfc3339DateTimeWithOffset=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC3339 timestamps must be strings")}const t=le.exec(e);if(!t){throw new TypeError(`Invalid RFC3339 timestamp format ${e}`)}const[,n,o,i,a,d,m,,h,f]=t;range(o,1,12);range(i,1,31);range(a,0,23);range(d,0,59);range(m,0,60);const C=new Date(Date.UTC(Number(n),Number(o)-1,Number(i),Number(a),Number(d),Number(m),Number(h)?Math.round(parseFloat(`0.${h}`)*1e3):0));C.setUTCFullYear(Number(n));if(f.toUpperCase()!="Z"){const[,e,t,n]=/([+-])(\d\d):(\d\d)/.exec(f)||[void 0,"+",0,0];const o=e==="-"?1:-1;C.setTime(C.getTime()+o*(Number(t)*60*60*1e3+Number(n)*60*1e3))}return C};const _parseRfc7231DateTime=e=>{if(e==null){return void 0}if(typeof e!=="string"){throw new TypeError("RFC7231 timestamps must be strings.")}let t;let n;let o;let i;let a;let d;let m;let h;if(h=ue.exec(e)){[,t,n,o,i,a,d,m]=h}else if(h=de.exec(e)){[,t,n,o,i,a,d,m]=h;o=(Number(o)+1900).toString()}else if(h=pe.exec(e)){[,n,t,i,a,d,m,o]=h}if(o&&d){const e=Date.UTC(Number(o),Ae.indexOf(n),Number(t),Number(i),Number(a),Number(d),m?Math.round(parseFloat(`0.${m}`)*1e3):0);range(t,1,31);range(i,0,23);range(a,0,59);range(d,0,60);const h=new Date(e);h.setUTCFullYear(Number(o));return h}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)};function range(e,t,n){const o=Number(e);if(o<t||o>n){throw new Error(`Value ${o} out of range [${t}, ${n}]`)}}function splitEvery(e,t,n){if(n<=0||!Number.isInteger(n)){throw new Error("Invalid number of delimiters ("+n+") for splitEvery.")}const o=e.split(t);if(n===1){return o}const i=[];let a="";for(let e=0;e<o.length;e++){if(a===""){a=o[e]}else{a+=t+o[e]}if((e+1)%n===0){i.push(a);a=""}}if(a!==""){i.push(a)}return i}const splitHeader=e=>{const t=e.length;const n=[];let o=false;let i=undefined;let a=0;for(let d=0;d<t;++d){const t=e[d];switch(t){case`"`:if(i!=="\\"){o=!o}break;case",":if(!o){n.push(e.slice(a,d));a=d+1}break}i=t}n.push(e.slice(a));return n.map((e=>{e=e.trim();const t=e.length;if(t<2){return e}if(e[0]===`"`&&e[t-1]===`"`){e=e.slice(1,t-1)}return e.replace(/\\"/g,'"')}))};const me=/^-?\d*(\.\d+)?$/;class NumericValue{string;type;constructor(e,t){this.string=e;this.type=t;if(!me.test(e)){throw new Error(`@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".`)}}toString(){return this.string}static[Symbol.hasInstance](e){if(!e||typeof e!=="object"){return false}const t=e;return NumericValue.prototype.isPrototypeOf(e)||t.type==="bigDecimal"&&me.test(t.string)}}function nv(e){return new NumericValue(String(e),"bigDecimal")}t.generateIdempotencyToken=o.v4;t.LazyJsonString=ne;t.NumericValue=NumericValue;t._parseEpochTimestamp=_parseEpochTimestamp;t._parseRfc3339DateTimeWithOffset=_parseRfc3339DateTimeWithOffset;t._parseRfc7231DateTime=_parseRfc7231DateTime;t.copyDocumentWithTransform=copyDocumentWithTransform;t.dateToUtcString=dateToUtcString;t.expectBoolean=expectBoolean;t.expectByte=expectByte;t.expectFloat32=expectFloat32;t.expectInt=a;t.expectInt32=expectInt32;t.expectLong=expectLong;t.expectNonNull=expectNonNull;t.expectNumber=expectNumber;t.expectObject=expectObject;t.expectShort=expectShort;t.expectString=expectString;t.expectUnion=expectUnion;t.handleFloat=h;t.limitedParseDouble=limitedParseDouble;t.limitedParseFloat=f;t.limitedParseFloat32=limitedParseFloat32;t.logger=P;t.nv=nv;t.parseBoolean=parseBoolean;t.parseEpochTimestamp=parseEpochTimestamp;t.parseRfc3339DateTime=parseRfc3339DateTime;t.parseRfc3339DateTimeWithOffset=parseRfc3339DateTimeWithOffset;t.parseRfc7231DateTime=parseRfc7231DateTime;t.quoteHeader=quoteHeader;t.splitEvery=splitEvery;t.splitHeader=splitHeader;t.strictParseByte=strictParseByte;t.strictParseDouble=strictParseDouble;t.strictParseFloat=d;t.strictParseFloat32=strictParseFloat32;t.strictParseInt=C;t.strictParseInt32=strictParseInt32;t.strictParseLong=strictParseLong;t.strictParseShort=strictParseShort},7809:(e,t,n)=>{var o=n(2356);var i=n(8256);var a=n(8385);function createRequest(e,t){return new Request(e,t)}function requestTimeout(e=0){return new Promise(((t,n)=>{if(e){setTimeout((()=>{const t=new Error(`Request did not complete within ${e} ms`);t.name="TimeoutError";n(t)}),e)}}))}const d={supported:undefined};class FetchHttpHandler{config;configProvider;static create(e){if(typeof e?.handle==="function"){return e}return new FetchHttpHandler(e)}constructor(e){if(typeof e==="function"){this.configProvider=e().then((e=>e||{}))}else{this.config=e??{};this.configProvider=Promise.resolve(this.config)}if(d.supported===undefined){d.supported=Boolean(typeof Request!=="undefined"&&"keepalive"in createRequest("https://[::1]"))}}destroy(){}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const a=n??this.config.requestTimeout;const m=this.config.keepAlive===true;const h=this.config.credentials;if(t?.aborted){const e=buildAbortError(t);return Promise.reject(e)}let f=e.path;const C=i.buildQueryString(e.query||{});if(C){f+=`?${C}`}if(e.fragment){f+=`#${e.fragment}`}let P="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";P=`${t}:${n}@`}const{port:D,method:k}=e;const L=`${e.protocol}//${P}${e.hostname}${D?`:${D}`:""}${f}`;const F=k==="GET"||k==="HEAD"?undefined:e.body;const q={body:F,headers:new Headers(e.headers),method:k,credentials:h};if(this.config?.cache){q.cache=this.config.cache}if(F){q.duplex="half"}if(typeof AbortController!=="undefined"){q.signal=t}if(d.supported){q.keepalive=m}if(typeof this.config.requestInit==="function"){Object.assign(q,this.config.requestInit(e))}let removeSignalEventListener=()=>{};const V=createRequest(L,q);const ee=[fetch(V).then((e=>{const t=e.headers;const n={};for(const e of t.entries()){n[e[0]]=e[1]}const i=e.body!=undefined;if(!i){return e.blob().then((t=>({response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:t})})))}return{response:new o.HttpResponse({headers:n,reason:e.statusText,statusCode:e.status,body:e.body})}})),requestTimeout(a)];if(t){ee.push(new Promise(((e,n)=>{const onAbort=()=>{const e=buildAbortError(t);n(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});removeSignalEventListener=()=>e.removeEventListener("abort",onAbort)}else{t.onabort=onAbort}})))}return Promise.race(ee).finally(removeSignalEventListener)}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>{n[e]=t;return n}))}httpHandlerConfigs(){return this.config??{}}}function buildAbortError(e){const t=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(t){if(t instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=t;return e}const e=new Error(String(t));e.name="AbortError";return e}const n=new Error("Request aborted");n.name="AbortError";return n}const streamCollector=async e=>{if(typeof Blob==="function"&&e instanceof Blob||e.constructor?.name==="Blob"){if(Blob.prototype.arrayBuffer!==undefined){return new Uint8Array(await e.arrayBuffer())}return collectBlob(e)}return collectStream(e)};async function collectBlob(e){const t=await readToBase64(e);const n=a.fromBase64(t);return new Uint8Array(n)}async function collectStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:a}=await n.read();if(a){t.push(a);i+=a.length}o=e}const a=new Uint8Array(i);let d=0;for(const e of t){a.set(e,d);d+=e.length}return a}function readToBase64(e){return new Promise(((t,n)=>{const o=new FileReader;o.onloadend=()=>{if(o.readyState!==2){return n(new Error("Reader aborted too early"))}const e=o.result??"";const i=e.indexOf(",");const a=i>-1?i+1:e.length;t(e.substring(a))};o.onabort=()=>n(new Error("Read aborted"));o.onerror=()=>n(o.error);o.readAsDataURL(e)}))}t.FetchHttpHandler=FetchHttpHandler;t.keepAliveSupport=d;t.streamCollector=streamCollector},2711:(e,t,n)=>{var o=n(4151);var i=n(1577);var a=n(181);var d=n(6982);class Hash{algorithmIdentifier;secret;hash;constructor(e,t){this.algorithmIdentifier=e;this.secret=t;this.reset()}update(e,t){this.hash.update(i.toUint8Array(castSourceData(e,t)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?d.createHmac(this.algorithmIdentifier,castSourceData(this.secret)):d.createHash(this.algorithmIdentifier)}}function castSourceData(e,t){if(a.Buffer.isBuffer(e)){return e}if(typeof e==="string"){return o.fromString(e,t)}if(ArrayBuffer.isView(e)){return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength)}return o.fromArrayBuffer(e)}t.Hash=Hash},6130:(e,t)=>{const isArrayBuffer=e=>typeof ArrayBuffer==="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";t.isArrayBuffer=isArrayBuffer},7212:(e,t,n)=>{var o=n(2356);const i="content-length";function contentLengthMiddleware(e){return t=>async n=>{const a=n.request;if(o.HttpRequest.isInstance(a)){const{body:t,headers:n}=a;if(t&&Object.keys(n).map((e=>e.toLowerCase())).indexOf(i)===-1){try{const n=e(t);a.headers={...a.headers,[i]:String(n)}}catch(e){}}}return t({...n,request:a})}}const a={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:true};const getContentLengthPlugin=e=>({applyToStack:t=>{t.add(contentLengthMiddleware(e.bodyLengthChecker),a)}});t.contentLengthMiddleware=contentLengthMiddleware;t.contentLengthMiddlewareOptions=a;t.getContentLengthPlugin=getContentLengthPlugin},6041:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointFromConfig=void 0;const o=n(5704);const i=n(8008);const getEndpointFromConfig=async e=>(0,o.loadConfig)((0,i.getEndpointUrlConfig)(e??""))();t.getEndpointFromConfig=getEndpointFromConfig},8008:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getEndpointUrlConfig=void 0;const o=n(4964);const i="AWS_ENDPOINT_URL";const a="endpoint_url";const getEndpointUrlConfig=e=>({environmentVariableSelector:t=>{const n=e.split(" ").map((e=>e.toUpperCase()));const o=t[[i,...n].join("_")];if(o)return o;const a=t[i];if(a)return a;return undefined},configFileSelector:(t,n)=>{if(n&&t.services){const i=n[["services",t.services].join(o.CONFIG_PREFIX_SEPARATOR)];if(i){const t=e.split(" ").map((e=>e.toLowerCase()));const n=i[[t.join("_"),a].join(o.CONFIG_PREFIX_SEPARATOR)];if(n)return n}}const i=t[a];if(i)return i;return undefined},default:undefined});t.getEndpointUrlConfig=getEndpointUrlConfig},99:(e,t,n)=>{var o=n(6041);var i=n(4494);var a=n(402);var d=n(6324);var m=n(3255);const resolveParamsForS3=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket==="string"){e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))}if(isArnBucketName(t)){if(e.ForcePathStyle===true){throw new Error("Path-style addressing cannot be used with ARN buckets")}}else if(!isDnsCompatibleBucketName(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3){e.ForcePathStyle=true}if(e.DisableMultiRegionAccessPoints){e.disableMultiRegionAccessPoints=true;e.DisableMRAP=true}return e};const h=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/;const f=/(\d+\.){3}\d+/;const C=/\.\./;const isDnsCompatibleBucketName=e=>h.test(e)&&!f.test(e)&&!C.test(e);const isArnBucketName=e=>{const[t,n,o,,,i]=e.split(":");const a=t==="arn"&&e.split(":").length>=6;const d=Boolean(a&&n&&o&&i);if(a&&!d){throw new Error(`Invalid ARN: ${e} was an invalid ARN.`)}return d};const createConfigValueProvider=(e,t,n,o=false)=>{const configProvider=async()=>{let i;if(o){const o=n.clientContextParams;const a=o?.[e];i=a??n[e]??n[t]}else{i=n[e]??n[t]}if(typeof i==="function"){return i()}return i};if(e==="credentialScope"||t==="CredentialScope"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.credentialScope??e?.CredentialScope;return t}}if(e==="accountId"||t==="AccountId"){return async()=>{const e=typeof n.credentials==="function"?await n.credentials():n.credentials;const t=e?.accountId??e?.AccountId;return t}}if(e==="endpoint"||t==="endpoint"){return async()=>{if(n.isCustomEndpoint===false){return undefined}const e=await configProvider();if(e&&typeof e==="object"){if("url"in e){return e.url.href}if("hostname"in e){const{protocol:t,hostname:n,port:o,path:i}=e;return`${t}//${n}${o?":"+o:""}${i}`}}return e}}return configProvider};const toEndpointV1=e=>{if(typeof e==="object"){if("url"in e){const t=i.parseUrl(e.url);if(e.headers){t.headers={};for(const[n,o]of Object.entries(e.headers)){t.headers[n.toLowerCase()]=o.join(", ")}}return t}return e}return i.parseUrl(e)};const getEndpointFromInstructions=async(e,t,n,i)=>{if(!n.isCustomEndpoint){let e;if(n.serviceConfiguredEndpoint){e=await n.serviceConfiguredEndpoint()}else{e=await o.getEndpointFromConfig(n.serviceId)}if(e){n.endpoint=()=>Promise.resolve(toEndpointV1(e));n.isCustomEndpoint=true}}const a=await resolveParams(e,t,n);if(typeof n.endpointProvider!=="function"){throw new Error("config.endpointProvider is not set.")}const d=n.endpointProvider(a,i);if(n.isCustomEndpoint&&n.endpoint){const e=await n.endpoint();if(e?.headers){d.headers??={};for(const[t,n]of Object.entries(e.headers)){d.headers[t]=Array.isArray(n)?n:[n]}}}return d};const resolveParams=async(e,t,n)=>{const o={};const i=t?.getEndpointParameterInstructions?.()||{};for(const[t,a]of Object.entries(i)){switch(a.type){case"staticContextParams":o[t]=a.value;break;case"contextParams":o[t]=e[a.name];break;case"clientContextParams":case"builtInParams":o[t]=await createConfigValueProvider(a.name,t,n,a.type!=="builtInParams")();break;case"operationContextParams":o[t]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}}if(Object.keys(i).length===0){Object.assign(o,n)}if(String(n.serviceId).toLowerCase()==="s3"){await resolveParamsForS3(o)}return o};const endpointMiddleware=({config:e,instructions:t})=>(n,o)=>async i=>{if(e.isCustomEndpoint){a.setFeature(o,"ENDPOINT_OVERRIDE","N")}const m=await getEndpointFromInstructions(i.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=m;o.authSchemes=m.properties?.authSchemes;const h=o.authSchemes?.[0];if(h){o["signing_region"]=h.signingRegion;o["signing_service"]=h.signingName;const e=d.getSmithyContext(o);const t=e?.selectedHttpAuthScheme?.httpAuthOption;if(t){t.signingProperties=Object.assign(t.signingProperties||{},{signing_region:h.signingRegion,signingRegion:h.signingRegion,signing_service:h.signingName,signingName:h.signingName,signingRegionSet:h.signingRegionSet},h.properties)}}return n({...i})};const P={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:true,relation:"before",toMiddleware:m.serializerMiddlewareOption.name};const getEndpointPlugin=(e,t)=>({applyToStack:n=>{n.addRelativeTo(endpointMiddleware({config:e,instructions:t}),P)}});const resolveEndpointConfig=e=>{const t=e.tls??true;const{endpoint:n,useDualstackEndpoint:i,useFipsEndpoint:a}=e;const m=n!=null?async()=>toEndpointV1(await d.normalizeProvider(n)()):undefined;const h=!!n;const f=Object.assign(e,{endpoint:m,tls:t,isCustomEndpoint:h,useDualstackEndpoint:d.normalizeProvider(i??false),useFipsEndpoint:d.normalizeProvider(a??false)});let C=undefined;f.serviceConfiguredEndpoint=async()=>{if(e.serviceId&&!C){C=o.getEndpointFromConfig(e.serviceId)}return C};return f};const resolveEndpointRequiredConfig=e=>{const{endpoint:t}=e;if(t===undefined){e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}}return e};t.endpointMiddleware=endpointMiddleware;t.endpointMiddlewareOptions=P;t.getEndpointFromInstructions=getEndpointFromInstructions;t.getEndpointPlugin=getEndpointPlugin;t.resolveEndpointConfig=resolveEndpointConfig;t.resolveEndpointRequiredConfig=resolveEndpointRequiredConfig;t.resolveParams=resolveParams;t.toEndpointV1=toEndpointV1},9618:(e,t,n)=>{var o=n(5518);var i=n(2356);var a=n(2058);var d=n(266);var m=n(6324);var h=n(1411);var f=n(9831);const getDefaultRetryQuota=(e,t)=>{const n=e;const i=o.NO_RETRY_INCREMENT;const a=o.RETRY_COST;const d=o.TIMEOUT_RETRY_COST;let m=e;const getCapacityAmount=e=>e.name==="TimeoutError"?d:a;const hasRetryTokens=e=>getCapacityAmount(e)<=m;const retrieveRetryTokens=e=>{if(!hasRetryTokens(e)){throw new Error("No retry token available")}const t=getCapacityAmount(e);m-=t;return t};const releaseRetryTokens=e=>{m+=e??i;m=Math.min(m,n)};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:retrieveRetryTokens,releaseRetryTokens:releaseRetryTokens})};const defaultDelayDecider=(e,t)=>Math.floor(Math.min(o.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));const defaultRetryDecider=e=>{if(!e){return false}return a.isRetryableByTrait(e)||a.isClockSkewError(e)||a.isThrottlingError(e)||a.isTransientError(e)};const asSdkError=e=>{if(e instanceof Error)return e;if(e instanceof Object)return Object.assign(new Error,e);if(typeof e==="string")return new Error(e);return new Error(`AWS SDK error wrapper for ${e}`)};class StandardRetryStrategy{maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=o.RETRY_MODES.STANDARD;constructor(e,t){this.maxAttemptsProvider=e;this.retryDecider=t?.retryDecider??defaultRetryDecider;this.delayDecider=t?.delayDecider??defaultDelayDecider;this.retryQuota=t?.retryQuota??getDefaultRetryQuota(o.INITIAL_RETRY_TOKENS)}shouldRetry(e,t,n){return t<n&&this.retryDecider(e)&&this.retryQuota.hasRetryTokens(e)}async getMaxAttempts(){let e;try{e=await this.maxAttemptsProvider()}catch(t){e=o.DEFAULT_MAX_ATTEMPTS}return e}async retry(e,t,n){let m;let h=0;let f=0;const C=await this.getMaxAttempts();const{request:P}=t;if(i.HttpRequest.isInstance(P)){P.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(i.HttpRequest.isInstance(P)){P.headers[o.REQUEST_HEADER]=`attempt=${h+1}; max=${C}`}if(n?.beforeRequest){await n.beforeRequest()}const{response:a,output:d}=await e(t);if(n?.afterRequest){n.afterRequest(a)}this.retryQuota.releaseRetryTokens(m);d.$metadata.attempts=h+1;d.$metadata.totalRetryDelay=f;return{response:a,output:d}}catch(e){const t=asSdkError(e);h++;if(this.shouldRetry(t,h,C)){m=this.retryQuota.retrieveRetryTokens(t);const e=this.delayDecider(a.isThrottlingError(t)?o.THROTTLING_RETRY_DELAY_BASE:o.DEFAULT_RETRY_DELAY_BASE,h);const n=getDelayFromRetryAfterHeader(t.$response);const i=Math.max(n||0,e);f+=i;await new Promise((e=>setTimeout(e,i)));continue}if(!t.$metadata){t.$metadata={}}t.$metadata.attempts=h;t.$metadata.totalRetryDelay=f;throw t}}}}const getDelayFromRetryAfterHeader=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return o*1e3;const a=new Date(n);return a.getTime()-Date.now()};class AdaptiveRetryStrategy extends StandardRetryStrategy{rateLimiter;constructor(e,t){const{rateLimiter:n,...i}=t??{};super(e,i);this.rateLimiter=n??new o.DefaultRateLimiter;this.mode=o.RETRY_MODES.ADAPTIVE}async retry(e,t){return super.retry(e,t,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:e=>{this.rateLimiter.updateClientSendingRate(e)}})}}const C="AWS_MAX_ATTEMPTS";const P="max_attempts";const D={environmentVariableSelector:e=>{const t=e[C];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Environment variable ${C} mast be a number, got "${t}"`)}return n},configFileSelector:e=>{const t=e[P];if(!t)return undefined;const n=parseInt(t);if(Number.isNaN(n)){throw new Error(`Shared config file entry ${P} mast be a number, got "${t}"`)}return n},default:o.DEFAULT_MAX_ATTEMPTS};const resolveRetryConfig=e=>{const{retryStrategy:t,retryMode:n}=e;const i=m.normalizeProvider(e.maxAttempts??o.DEFAULT_MAX_ATTEMPTS);let a=t?Promise.resolve(t):undefined;const getDefault=async()=>await m.normalizeProvider(n)()===o.RETRY_MODES.ADAPTIVE?new o.AdaptiveRetryStrategy(i):new o.StandardRetryStrategy(i);return Object.assign(e,{maxAttempts:i,retryStrategy:()=>a??=getDefault()})};const k="AWS_RETRY_MODE";const L="retry_mode";const F={environmentVariableSelector:e=>e[k],configFileSelector:e=>e[L],default:o.DEFAULT_RETRY_MODE};const omitRetryHeadersMiddleware=()=>e=>async t=>{const{request:n}=t;if(i.HttpRequest.isInstance(n)){delete n.headers[o.INVOCATION_ID_HEADER];delete n.headers[o.REQUEST_HEADER]}return e(t)};const q={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:true};const getOmitRetryHeadersPlugin=e=>({applyToStack:e=>{e.addRelativeTo(omitRetryHeadersMiddleware(),q)}});const retryMiddleware=e=>(t,n)=>async a=>{let m=await e.retryStrategy();const C=await e.maxAttempts();if(isRetryStrategyV2(m)){m=m;let e=await m.acquireInitialRetryToken(n["partition_id"]);let P=new Error;let D=0;let k=0;const{request:L}=a;const F=i.HttpRequest.isInstance(L);if(F){L.headers[o.INVOCATION_ID_HEADER]=d.v4()}while(true){try{if(F){L.headers[o.REQUEST_HEADER]=`attempt=${D+1}; max=${C}`}const{response:n,output:i}=await t(a);m.recordSuccess(e);i.$metadata.attempts=D+1;i.$metadata.totalRetryDelay=k;return{response:n,output:i}}catch(t){const o=getRetryErrorInfo(t);P=asSdkError(t);if(F&&f.isStreamingPayload(L)){(n.logger instanceof h.NoOpLogger?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request.");throw P}try{e=await m.refreshRetryTokenForRetry(e,o)}catch(e){if(!P.$metadata){P.$metadata={}}P.$metadata.attempts=D+1;P.$metadata.totalRetryDelay=k;throw P}D=e.getRetryCount();const i=e.getRetryDelay();k+=i;await new Promise((e=>setTimeout(e,i)))}}}else{m=m;if(m?.mode)n.userAgent=[...n.userAgent||[],["cfg/retry-mode",m.mode]];return m.retry(t,a)}};const isRetryStrategyV2=e=>typeof e.acquireInitialRetryToken!=="undefined"&&typeof e.refreshRetryTokenForRetry!=="undefined"&&typeof e.recordSuccess!=="undefined";const getRetryErrorInfo=e=>{const t={error:e,errorType:getRetryErrorType(e)};const n=getRetryAfterHint(e.$response);if(n){t.retryAfterHint=n}return t};const getRetryErrorType=e=>{if(a.isThrottlingError(e))return"THROTTLING";if(a.isTransientError(e))return"TRANSIENT";if(a.isServerError(e))return"SERVER_ERROR";return"CLIENT_ERROR"};const V={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:true};const getRetryPlugin=e=>({applyToStack:t=>{t.add(retryMiddleware(e),V)}});const getRetryAfterHint=e=>{if(!i.HttpResponse.isInstance(e))return;const t=Object.keys(e.headers).find((e=>e.toLowerCase()==="retry-after"));if(!t)return;const n=e.headers[t];const o=Number(n);if(!Number.isNaN(o))return new Date(o*1e3);const a=new Date(n);return a};t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.CONFIG_MAX_ATTEMPTS=P;t.CONFIG_RETRY_MODE=L;t.ENV_MAX_ATTEMPTS=C;t.ENV_RETRY_MODE=k;t.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=D;t.NODE_RETRY_MODE_CONFIG_OPTIONS=F;t.StandardRetryStrategy=StandardRetryStrategy;t.defaultDelayDecider=defaultDelayDecider;t.defaultRetryDecider=defaultRetryDecider;t.getOmitRetryHeadersPlugin=getOmitRetryHeadersPlugin;t.getRetryAfterHint=getRetryAfterHint;t.getRetryPlugin=getRetryPlugin;t.omitRetryHeadersMiddleware=omitRetryHeadersMiddleware;t.omitRetryHeadersMiddlewareOptions=q;t.resolveRetryConfig=resolveRetryConfig;t.retryMiddleware=retryMiddleware;t.retryMiddlewareOptions=V},9831:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.isStreamingPayload=void 0;const o=n(2203);const isStreamingPayload=e=>e?.body instanceof o.Readable||typeof ReadableStream!=="undefined"&&e?.body instanceof ReadableStream;t.isStreamingPayload=isStreamingPayload},3255:(e,t,n)=>{var o=n(2356);var i=n(2085);const deserializerMiddleware=(e,t)=>(n,i)=>async a=>{const{response:d}=await n(a);try{const n=await t(d,e);return{response:d,output:n}}catch(e){Object.defineProperty(e,"$response",{value:d,enumerable:false,writable:false,configurable:false});if(!("$metadata"in e)){const t=`Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`;try{e.message+="\n "+t}catch(e){if(!i.logger||i.logger?.constructor?.name==="NoOpLogger"){console.warn(t)}else{i.logger?.warn?.(t)}}if(typeof e.$responseBodyText!=="undefined"){if(e.$response){e.$response.body=e.$responseBodyText}}try{if(o.HttpResponse.isInstance(d)){const{headers:t={}}=d;const n=Object.entries(t);e.$metadata={httpStatusCode:d.statusCode,requestId:findHeader(/^x-[\w-]+-request-?id$/,n),extendedRequestId:findHeader(/^x-[\w-]+-id-2$/,n),cfId:findHeader(/^x-[\w-]+-cf-id$/,n)}}}catch(e){}}throw e}};const findHeader=(e,t)=>(t.find((([t])=>t.match(e)))||[void 0,void 0])[1];const serializerMiddleware=(e,t)=>(n,o)=>async a=>{const d=e;const m=o.endpointV2?async()=>i.toEndpointV1(o.endpointV2):d.endpoint;if(!m){throw new Error("No valid endpoint provider available.")}const h=await t(a.input,{...e,endpoint:m});return n({...a,request:h})};const a={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:true};const d={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:true};function getSerdePlugin(e,t,n){return{applyToStack:o=>{o.add(deserializerMiddleware(e,n),a);o.add(serializerMiddleware(e,t),d)}}}t.deserializerMiddleware=deserializerMiddleware;t.deserializerMiddlewareOption=a;t.getSerdePlugin=getSerdePlugin;t.serializerMiddleware=serializerMiddleware;t.serializerMiddlewareOption=d},9208:(e,t)=>{const getAllAliases=(e,t)=>{const n=[];if(e){n.push(e)}if(t){for(const e of t){n.push(e)}}return n};const getMiddlewareNameWithAliases=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`;const constructStack=()=>{let e=[];let t=[];let i=false;const a=new Set;const sort=e=>e.sort(((e,t)=>n[t.step]-n[e.step]||o[t.priority||"normal"]-o[e.priority||"normal"]));const removeByName=n=>{let o=false;const filterCb=e=>{const t=getAllAliases(e.name,e.aliases);if(t.includes(n)){o=true;for(const e of t){a.delete(e)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const removeByReference=n=>{let o=false;const filterCb=e=>{if(e.middleware===n){o=true;for(const t of getAllAliases(e.name,e.aliases)){a.delete(t)}return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o};const cloneTo=n=>{e.forEach((e=>{n.add(e.middleware,{...e})}));t.forEach((e=>{n.addRelativeTo(e.middleware,{...e})}));n.identifyOnResolve?.(d.identifyOnResolve());return n};const expandRelativeMiddlewareList=e=>{const t=[];e.before.forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));t.push(e);e.after.reverse().forEach((e=>{if(e.before.length===0&&e.after.length===0){t.push(e)}else{t.push(...expandRelativeMiddlewareList(e))}}));return t};const getMiddlewareList=(n=false)=>{const o=[];const i=[];const a={};e.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){a[e]=t}o.push(t)}));t.forEach((e=>{const t={...e,before:[],after:[]};for(const e of getAllAliases(t.name,t.aliases)){a[e]=t}i.push(t)}));i.forEach((e=>{if(e.toMiddleware){const t=a[e.toMiddleware];if(t===undefined){if(n){return}throw new Error(`${e.toMiddleware} is not found when adding `+`${getMiddlewareNameWithAliases(e.name,e.aliases)} `+`middleware ${e.relation} ${e.toMiddleware}`)}if(e.relation==="after"){t.after.push(e)}if(e.relation==="before"){t.before.push(e)}}}));const d=sort(o).map(expandRelativeMiddlewareList).reduce(((e,t)=>{e.push(...t);return e}),[]);return d};const d={add:(t,n={})=>{const{name:o,override:i,aliases:d}=n;const m={step:"initialize",priority:"normal",middleware:t,...n};const h=getAllAliases(o,d);if(h.length>0){if(h.some((e=>a.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const t of h){const n=e.findIndex((e=>e.name===t||e.aliases?.some((e=>e===t))));if(n===-1){continue}const i=e[n];if(i.step!==m.step||m.priority!==i.priority){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware with `+`${i.priority} priority in ${i.step} step cannot `+`be overridden by "${getMiddlewareNameWithAliases(o,d)}" middleware with `+`${m.priority} priority in ${m.step} step.`)}e.splice(n,1)}}for(const e of h){a.add(e)}}e.push(m)},addRelativeTo:(e,n)=>{const{name:o,override:i,aliases:d}=n;const m={middleware:e,...n};const h=getAllAliases(o,d);if(h.length>0){if(h.some((e=>a.has(e)))){if(!i)throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(o,d)}'`);for(const e of h){const n=t.findIndex((t=>t.name===e||t.aliases?.some((t=>t===e))));if(n===-1){continue}const i=t[n];if(i.toMiddleware!==m.toMiddleware||i.relation!==m.relation){throw new Error(`"${getMiddlewareNameWithAliases(i.name,i.aliases)}" middleware `+`${i.relation} "${i.toMiddleware}" middleware cannot be overridden `+`by "${getMiddlewareNameWithAliases(o,d)}" middleware ${m.relation} `+`"${m.toMiddleware}" middleware.`)}t.splice(n,1)}}for(const e of h){a.add(e)}}t.push(m)},clone:()=>cloneTo(constructStack()),use:e=>{e.applyToStack(d)},remove:e=>{if(typeof e==="string")return removeByName(e);else return removeByReference(e)},removeByTag:n=>{let o=false;const filterCb=e=>{const{tags:t,name:i,aliases:d}=e;if(t&&t.includes(n)){const e=getAllAliases(i,d);for(const t of e){a.delete(t)}o=true;return false}return true};e=e.filter(filterCb);t=t.filter(filterCb);return o},concat:e=>{const t=cloneTo(constructStack());t.use(e);t.identifyOnResolve(i||t.identifyOnResolve()||(e.identifyOnResolve?.()??false));return t},applyToStack:cloneTo,identify:()=>getMiddlewareList(true).map((e=>{const t=e.step??e.relation+" "+e.toMiddleware;return getMiddlewareNameWithAliases(e.name,e.aliases)+" - "+t})),identifyOnResolve(e){if(typeof e==="boolean")i=e;return i},resolve:(e,t)=>{for(const n of getMiddlewareList().map((e=>e.middleware)).reverse()){e=n(e,t)}if(i){console.log(d.identify())}return e}};return d};const n={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1};const o={high:3,normal:2,low:1};t.constructStack=constructStack},5704:(e,t,n)=>{var o=n(8857);var i=n(4964);function getSelectorName(e){try{const t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));t.delete("CONFIG");t.delete("CONFIG_PREFIX_SEPARATOR");t.delete("ENV");return[...t].join(", ")}catch(t){return e}}const fromEnv=(e,t)=>async()=>{try{const n=e(process.env,t);if(n===undefined){throw new Error}return n}catch(n){throw new o.CredentialsProviderError(n.message||`Not found in ENV: ${getSelectorName(e.toString())}`,{logger:t?.logger})}};const fromSharedConfigFiles=(e,{preferredFile:t="config",...n}={})=>async()=>{const a=i.getProfileName(n);const{configFile:d,credentialsFile:m}=await i.loadSharedConfigFiles(n);const h=m[a]||{};const f=d[a]||{};const C=t==="config"?{...h,...f}:{...f,...h};try{const n=t==="config"?d:m;const o=e(C,n);if(o===undefined){throw new Error}return o}catch(t){throw new o.CredentialsProviderError(t.message||`Not found in config files w/ profile [${a}]: ${getSelectorName(e.toString())}`,{logger:n.logger})}};const isFunction=e=>typeof e==="function";const fromStatic=e=>isFunction(e)?async()=>await e():o.fromStatic(e);const loadConfig=({environmentVariableSelector:e,configFileSelector:t,default:n},i={})=>{const{signingName:a,logger:d}=i;const m={signingName:a,logger:d};return o.memoize(o.chain(fromEnv(e,m),fromSharedConfigFiles(t,i),fromStatic(n)))};t.loadConfig=loadConfig},1279:(e,t,n)=>{var o=n(2356);var i=n(8256);var a=n(4708);var d=n(7075);var m=n(2467);function buildAbortError(e){const t=e&&typeof e==="object"&&"reason"in e?e.reason:undefined;if(t){if(t instanceof Error){const e=new Error("Request aborted");e.name="AbortError";e.cause=t;return e}const e=new Error(String(t));e.name="AbortError";return e}const n=new Error("Request aborted");n.name="AbortError";return n}const h=["ECONNRESET","EPIPE","ETIMEDOUT"];const getTransformedHeaders=e=>{const t={};for(const n of Object.keys(e)){const o=e[n];t[n]=Array.isArray(o)?o.join(","):o}return t};const f={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e)};const C=1e3;const setConnectionTimeout=(e,t,n=0)=>{if(!n){return-1}const registerTimeout=o=>{const i=f.setTimeout((()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${n} ms.`),{name:"TimeoutError"}))}),n-o);const doWithSocket=e=>{if(e?.connecting){e.on("connect",(()=>{f.clearTimeout(i)}))}else{f.clearTimeout(i)}};if(e.socket){doWithSocket(e.socket)}else{e.on("socket",doWithSocket)}};if(n<2e3){registerTimeout(0);return 0}return f.setTimeout(registerTimeout.bind(null,C),C)};const setRequestTimeout=(e,t,n=0,o,i)=>{if(n){return f.setTimeout((()=>{let a=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${n} ms requestTimeout.`;if(o){const n=Object.assign(new Error(a),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(n);t(n)}else{a+=` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;i?.warn?.(a)}}),n)}return-1};const P=3e3;const setSocketKeepAlive=(e,{keepAlive:t,keepAliveMsecs:n},o=P)=>{if(t!==true){return-1}const registerListener=()=>{if(e.socket){e.socket.setKeepAlive(t,n||0)}else{e.on("socket",(e=>{e.setKeepAlive(t,n||0)}))}};if(o===0){registerListener();return 0}return f.setTimeout(registerListener,o)};const D=3e3;const setSocketTimeout=(e,t,n=0)=>{const registerTimeout=o=>{const i=n-o;const onTimeout=()=>{e.destroy();t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${n} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))};if(e.socket){e.socket.setTimeout(i,onTimeout);e.on("close",(()=>e.socket?.removeListener("timeout",onTimeout)))}else{e.setTimeout(i,onTimeout)}};if(0<n&&n<6e3){registerTimeout(0);return 0}return f.setTimeout(registerTimeout.bind(null,n===0?0:D),D)};const k=6e3;async function writeRequestBody(e,t,n=k,o=false){const i=t.headers??{};const a=i.Expect||i.expect;let d=-1;let m=true;if(!o&&a==="100-continue"){m=await Promise.race([new Promise((e=>{d=Number(f.setTimeout((()=>e(true)),Math.max(k,n)))})),new Promise((t=>{e.on("continue",(()=>{f.clearTimeout(d);t(true)}));e.on("response",(()=>{f.clearTimeout(d);t(false)}));e.on("error",(()=>{f.clearTimeout(d);t(false)}))}))])}if(m){writeBody(e,t.body)}}function writeBody(e,t){if(t instanceof d.Readable){t.pipe(e);return}if(t){const n=Buffer.isBuffer(t);const o=typeof t==="string";if(n||o){if(n&&t.byteLength===0){e.end()}else{e.end(t)}return}const i=t;if(typeof i==="object"&&i.buffer&&typeof i.byteOffset==="number"&&typeof i.byteLength==="number"){e.end(Buffer.from(i.buffer,i.byteOffset,i.byteLength));return}e.end(Buffer.from(t));return}e.end()}const L=0;let F=undefined;let q=undefined;class NodeHttpHandler{config;configProvider;socketWarningTimestamp=0;externalAgent=false;metadata={handlerProtocol:"http/1.1"};static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttpHandler(e)}static checkSocketUsage(e,t,n=console){const{sockets:o,requests:i,maxSockets:a}=e;if(typeof a!=="number"||a===Infinity){return t}const d=15e3;if(Date.now()-d<t){return t}if(o&&i){for(const e in o){const t=o[e]?.length??0;const d=i[e]?.length??0;if(t>=a&&d>=2*a){n?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${t} and ${d} additional requests are enqueued.\nSee https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html\nor increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);return Date.now()}}}return t}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(this.resolveDefaultConfig(e))})).catch(n)}else{t(this.resolveDefaultConfig(e))}}))}destroy(){this.config?.httpAgent?.destroy();this.config?.httpsAgent?.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider}const d=this.config;const m=e.protocol==="https:";if(!m&&!this.config.httpAgent){this.config.httpAgent=await this.config.httpAgentProvider()}return new Promise(((C,P)=>{let D=undefined;const k=[];const resolve=async e=>{await D;k.forEach(f.clearTimeout);C(e)};const reject=async e=>{await D;k.forEach(f.clearTimeout);P(e)};if(t?.aborted){const e=buildAbortError(t);reject(e);return}const L=e.headers??{};const V=(L.Expect??L.expect)==="100-continue";let ee=m?d.httpsAgent:d.httpAgent;if(V&&!this.externalAgent){ee=new(m?a.Agent:F)({keepAlive:false,maxSockets:Infinity})}k.push(f.setTimeout((()=>{this.socketWarningTimestamp=NodeHttpHandler.checkSocketUsage(ee,this.socketWarningTimestamp,d.logger)}),d.socketAcquisitionWarningTimeout??(d.requestTimeout??2e3)+(d.connectionTimeout??1e3)));const te=i.buildQueryString(e.query||{});let re=undefined;if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";re=`${t}:${n}`}let ne=e.path;if(te){ne+=`?${te}`}if(e.fragment){ne+=`#${e.fragment}`}let se=e.hostname??"";if(se[0]==="["&&se.endsWith("]")){se=e.hostname.slice(1,-1)}else{se=e.hostname}const oe={headers:e.headers,host:se,method:e.method,path:ne,port:e.port,agent:ee,auth:re};const ie=m?a.request:q;const ae=ie(oe,(e=>{const t=new o.HttpResponse({statusCode:e.statusCode||-1,reason:e.statusMessage,headers:getTransformedHeaders(e.headers),body:e});resolve({response:t})}));ae.on("error",(e=>{if(h.includes(e.code)){reject(Object.assign(e,{name:"TimeoutError"}))}else{reject(e)}}));if(t){const onAbort=()=>{ae.destroy();const e=buildAbortError(t);reject(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});ae.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}const ce=n??d.requestTimeout;k.push(setConnectionTimeout(ae,reject,d.connectionTimeout));k.push(setRequestTimeout(ae,reject,ce,d.throwOnRequestTimeout,d.logger??console));k.push(setSocketTimeout(ae,reject,d.socketTimeout));const le=oe.agent;if(typeof le==="object"&&"keepAlive"in le){k.push(setSocketKeepAlive(ae,{keepAlive:le.keepAlive,keepAliveMsecs:le.keepAliveMsecs}))}D=writeRequestBody(ae,e,ce,this.externalAgent).catch((e=>{k.forEach(f.clearTimeout);return P(e)}))}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(e){const{requestTimeout:t,connectionTimeout:o,socketTimeout:i,socketAcquisitionWarningTimeout:d,httpAgent:m,httpsAgent:h,throwOnRequestTimeout:f,logger:C}=e||{};const P=true;const D=50;return{connectionTimeout:o,requestTimeout:t,socketTimeout:i,socketAcquisitionWarningTimeout:d,throwOnRequestTimeout:f,httpAgentProvider:async()=>{const{Agent:e,request:t}=await Promise.resolve().then(n.t.bind(n,7067,23));q=t;F=e;if(m instanceof F||typeof m?.destroy==="function"){this.externalAgent=true;return m}return new F({keepAlive:P,maxSockets:D,...m})},httpsAgent:(()=>{if(h instanceof a.Agent||typeof h?.destroy==="function"){this.externalAgent=true;return h}return new a.Agent({keepAlive:P,maxSockets:D,...h})})(),logger:C}}}class NodeHttp2ConnectionPool{sessions=[];constructor(e){this.sessions=e??[]}poll(){if(this.sessions.length>0){return this.sessions.shift()}}offerLast(e){this.sessions.push(e)}contains(e){return this.sessions.includes(e)}remove(e){this.sessions=this.sessions.filter((t=>t!==e))}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}destroy(e){for(const t of this.sessions){if(t===e){if(!t.destroyed){t.destroy()}}}}}class NodeHttp2ConnectionManager{constructor(e){this.config=e;if(this.config.maxConcurrency&&this.config.maxConcurrency<=0){throw new RangeError("maxConcurrency must be greater than zero.")}}config;sessionCache=new Map;lease(e,t){const n=this.getUrlString(e);const o=this.sessionCache.get(n);if(o){const e=o.poll();if(e&&!this.config.disableConcurrency){return e}}const i=m.connect(n);if(this.config.maxConcurrency){i.settings({maxConcurrentStreams:this.config.maxConcurrency},(t=>{if(t){throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+e.destination.toString())}}))}i.unref();const destroySessionCb=()=>{i.destroy();this.deleteSession(n,i)};i.on("goaway",destroySessionCb);i.on("error",destroySessionCb);i.on("frameError",destroySessionCb);i.on("close",(()=>this.deleteSession(n,i)));if(t.requestTimeout){i.setTimeout(t.requestTimeout,destroySessionCb)}const a=this.sessionCache.get(n)||new NodeHttp2ConnectionPool;a.offerLast(i);this.sessionCache.set(n,a);return i}deleteSession(e,t){const n=this.sessionCache.get(e);if(!n){return}if(!n.contains(t)){return}n.remove(t);this.sessionCache.set(e,n)}release(e,t){const n=this.getUrlString(e);this.sessionCache.get(n)?.offerLast(t)}destroy(){for(const[e,t]of this.sessionCache){for(const e of t){if(!e.destroyed){e.destroy()}t.remove(e)}this.sessionCache.delete(e)}}setMaxConcurrentStreams(e){if(e&&e<=0){throw new RangeError("maxConcurrentStreams must be greater than zero.")}this.config.maxConcurrency=e}setDisableConcurrentStreams(e){this.config.disableConcurrency=e}getUrlString(e){return e.destination.toString()}}class NodeHttp2Handler{config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new NodeHttp2ConnectionManager({});static create(e){if(typeof e?.handle==="function"){return e}return new NodeHttp2Handler(e)}constructor(e){this.configProvider=new Promise(((t,n)=>{if(typeof e==="function"){e().then((e=>{t(e||{})})).catch(n)}else{t(e||{})}}))}destroy(){this.connectionManager.destroy()}async handle(e,{abortSignal:t,requestTimeout:n}={}){if(!this.config){this.config=await this.configProvider;this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams||false);if(this.config.maxConcurrentStreams){this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams)}}const{requestTimeout:a,disableConcurrentStreams:d}=this.config;const h=n??a;return new Promise(((n,a)=>{let f=false;let C=undefined;const resolve=async e=>{await C;n(e)};const reject=async e=>{await C;a(e)};if(t?.aborted){f=true;const e=buildAbortError(t);reject(e);return}const{hostname:P,method:D,port:k,protocol:L,query:F}=e;let q="";if(e.username!=null||e.password!=null){const t=e.username??"";const n=e.password??"";q=`${t}:${n}@`}const V=`${L}//${q}${P}${k?`:${k}`:""}`;const ee={destination:new URL(V)};const te=this.connectionManager.lease(ee,{requestTimeout:this.config?.sessionTimeout,disableConcurrentStreams:d||false});const rejectWithDestroy=e=>{if(d){this.destroySession(te)}f=true;reject(e)};const re=i.buildQueryString(F||{});let ne=e.path;if(re){ne+=`?${re}`}if(e.fragment){ne+=`#${e.fragment}`}const se=te.request({...e.headers,[m.constants.HTTP2_HEADER_PATH]:ne,[m.constants.HTTP2_HEADER_METHOD]:D});te.ref();se.on("response",(e=>{const t=new o.HttpResponse({statusCode:e[":status"]||-1,headers:getTransformedHeaders(e),body:se});f=true;resolve({response:t});if(d){te.close();this.connectionManager.deleteSession(V,te)}}));if(h){se.setTimeout(h,(()=>{se.close();const e=new Error(`Stream timed out because of no activity for ${h} ms`);e.name="TimeoutError";rejectWithDestroy(e)}))}if(t){const onAbort=()=>{se.close();const e=buildAbortError(t);rejectWithDestroy(e)};if(typeof t.addEventListener==="function"){const e=t;e.addEventListener("abort",onAbort,{once:true});se.once("close",(()=>e.removeEventListener("abort",onAbort)))}else{t.onabort=onAbort}}se.on("frameError",((e,t,n)=>{rejectWithDestroy(new Error(`Frame type id ${e} in stream id ${n} has failed with code ${t}.`))}));se.on("error",rejectWithDestroy);se.on("aborted",(()=>{rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${se.rstCode}.`))}));se.on("close",(()=>{te.unref();if(d){te.destroy()}if(!f){rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response"))}}));C=writeRequestBody(se,e,h)}))}updateHttpClientConfig(e,t){this.config=undefined;this.configProvider=this.configProvider.then((n=>({...n,[e]:t})))}httpHandlerConfigs(){return this.config??{}}destroySession(e){if(!e.destroyed){e.destroy()}}}class Collector extends d.Writable{bufferedBytes=[];_write(e,t,n){this.bufferedBytes.push(e);n()}}const streamCollector=e=>{if(isReadableStreamInstance(e)){return collectReadableStream(e)}return new Promise(((t,n)=>{const o=new Collector;e.pipe(o);e.on("error",(e=>{o.end();n(e)}));o.on("error",n);o.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.bufferedBytes));t(e)}))}))};const isReadableStreamInstance=e=>typeof ReadableStream==="function"&&e instanceof ReadableStream;async function collectReadableStream(e){const t=[];const n=e.getReader();let o=false;let i=0;while(!o){const{done:e,value:a}=await n.read();if(a){t.push(a);i+=a.length}o=e}const a=new Uint8Array(i);let d=0;for(const e of t){a.set(e,d);d+=e.length}return a}t.DEFAULT_REQUEST_TIMEOUT=L;t.NodeHttp2Handler=NodeHttp2Handler;t.NodeHttpHandler=NodeHttpHandler;t.streamCollector=streamCollector},8857:(e,t)=>{class ProviderError extends Error{name="ProviderError";tryNextLink;constructor(e,t=true){let n;let o=true;if(typeof t==="boolean"){n=undefined;o=t}else if(t!=null&&typeof t==="object"){n=t.logger;o=t.tryNextLink??true}super(e);this.tryNextLink=o;Object.setPrototypeOf(this,ProviderError.prototype);n?.debug?.(`@smithy/property-provider ${o?"->":"(!)"} ${e}`)}static from(e,t=true){return Object.assign(new this(e.message,t),e)}}class CredentialsProviderError extends ProviderError{name="CredentialsProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,CredentialsProviderError.prototype)}}class TokenProviderError extends ProviderError{name="TokenProviderError";constructor(e,t=true){super(e,t);Object.setPrototypeOf(this,TokenProviderError.prototype)}}const chain=(...e)=>async()=>{if(e.length===0){throw new ProviderError("No providers in chain")}let t;for(const n of e){try{const e=await n();return e}catch(e){t=e;if(e?.tryNextLink){continue}throw e}}throw t};const fromStatic=e=>()=>Promise.resolve(e);const memoize=(e,t,n)=>{let o;let i;let a;let d=false;const coalesceProvider=async()=>{if(!i){i=e()}try{o=await i;a=true;d=false}finally{i=undefined}return o};if(t===undefined){return async e=>{if(!a||e?.forceRefresh){o=await coalesceProvider()}return o}}return async e=>{if(!a||e?.forceRefresh){o=await coalesceProvider()}if(d){return o}if(n&&!n(o)){d=true;return o}if(t(o)){await coalesceProvider();return o}return o}};t.CredentialsProviderError=CredentialsProviderError;t.ProviderError=ProviderError;t.TokenProviderError=TokenProviderError;t.chain=chain;t.fromStatic=fromStatic;t.memoize=memoize},2356:(e,t,n)=>{var o=n(690);const getHttpHandlerExtensionConfiguration=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}});const resolveHttpHandlerRuntimeConfig=e=>({httpHandler:e.httpHandler()});class Field{name;kind;values;constructor({name:e,kind:t=o.FieldPosition.HEADER,values:n=[]}){this.name=e;this.kind=t;this.values=n}add(e){this.values.push(e)}set(e){this.values=e}remove(e){this.values=this.values.filter((t=>t!==e))}toString(){return this.values.map((e=>e.includes(",")||e.includes(" ")?`"${e}"`:e)).join(", ")}get(){return this.values}}class Fields{entries={};encoding;constructor({fields:e=[],encoding:t="utf-8"}){e.forEach(this.setField.bind(this));this.encoding=t}setField(e){this.entries[e.name.toLowerCase()]=e}getField(e){return this.entries[e.toLowerCase()]}removeField(e){delete this.entries[e.toLowerCase()]}getByType(e){return Object.values(this.entries).filter((t=>t.kind===e))}}class HttpRequest{method;protocol;hostname;port;path;query;headers;username;password;fragment;body;constructor(e){this.method=e.method||"GET";this.hostname=e.hostname||"localhost";this.port=e.port;this.query=e.query||{};this.headers=e.headers||{};this.body=e.body;this.protocol=e.protocol?e.protocol.slice(-1)!==":"?`${e.protocol}:`:e.protocol:"https:";this.path=e.path?e.path.charAt(0)!=="/"?`/${e.path}`:e.path:"/";this.username=e.username;this.password=e.password;this.fragment=e.fragment}static clone(e){const t=new HttpRequest({...e,headers:{...e.headers}});if(t.query){t.query=cloneQuery(t.query)}return t}static isInstance(e){if(!e){return false}const t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&typeof t["query"]==="object"&&typeof t["headers"]==="object"}clone(){return HttpRequest.clone(this)}}function cloneQuery(e){return Object.keys(e).reduce(((t,n)=>{const o=e[n];return{...t,[n]:Array.isArray(o)?[...o]:o}}),{})}class HttpResponse{statusCode;reason;headers;body;constructor(e){this.statusCode=e.statusCode;this.reason=e.reason;this.headers=e.headers||{};this.body=e.body}static isInstance(e){if(!e)return false;const t=e;return typeof t.statusCode==="number"&&typeof t.headers==="object"}}function isValidHostname(e){const t=/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/;return t.test(e)}t.Field=Field;t.Fields=Fields;t.HttpRequest=HttpRequest;t.HttpResponse=HttpResponse;t.getHttpHandlerExtensionConfiguration=getHttpHandlerExtensionConfiguration;t.isValidHostname=isValidHostname;t.resolveHttpHandlerRuntimeConfig=resolveHttpHandlerRuntimeConfig},8256:(e,t,n)=>{var o=n(146);function buildQueryString(e){const t=[];for(let n of Object.keys(e).sort()){const i=e[n];n=o.escapeUri(n);if(Array.isArray(i)){for(let e=0,a=i.length;e<a;e++){t.push(`${n}=${o.escapeUri(i[e])}`)}}else{let e=n;if(i||typeof i==="string"){e+=`=${o.escapeUri(i)}`}t.push(e)}}return t.join("&")}t.buildQueryString=buildQueryString},8822:(e,t)=>{function parseQueryString(e){const t={};e=e.replace(/^\?/,"");if(e){for(const n of e.split("&")){let[e,o=null]=n.split("=");e=decodeURIComponent(e);if(o){o=decodeURIComponent(o)}if(!(e in t)){t[e]=o}else if(Array.isArray(t[e])){t[e].push(o)}else{t[e]=[t[e],o]}}}return t}t.parseQueryString=parseQueryString},2058:(e,t)=>{const n=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];const o=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];const i=["TimeoutError","RequestTimeout","RequestTimeoutException"];const a=[500,502,503,504];const d=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"];const m=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"];const isRetryableByTrait=e=>e?.$retryable!==undefined;const isClockSkewError=e=>n.includes(e.name);const isClockSkewCorrectedError=e=>e.$metadata?.clockSkewCorrected;const isBrowserNetworkError=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);const n=e&&e instanceof TypeError;if(!n){return false}return t.has(e.message)};const isThrottlingError=e=>e.$metadata?.httpStatusCode===429||o.includes(e.name)||e.$retryable?.throttling==true;const isTransientError=(e,t=0)=>isRetryableByTrait(e)||isClockSkewCorrectedError(e)||i.includes(e.name)||d.includes(e?.code||"")||m.includes(e?.code||"")||a.includes(e.$metadata?.httpStatusCode||0)||isBrowserNetworkError(e)||e.cause!==undefined&&t<=10&&isTransientError(e.cause,t+1);const isServerError=e=>{if(e.$metadata?.httpStatusCode!==undefined){const t=e.$metadata.httpStatusCode;if(500<=t&&t<=599&&!isTransientError(e)){return true}return false}return false};t.isBrowserNetworkError=isBrowserNetworkError;t.isClockSkewCorrectedError=isClockSkewCorrectedError;t.isClockSkewError=isClockSkewError;t.isRetryableByTrait=isRetryableByTrait;t.isServerError=isServerError;t.isThrottlingError=isThrottlingError;t.isTransientError=isTransientError},1791:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getHomeDir=void 0;const o=n(857);const i=n(6928);const a={};const getHomeDirCacheKey=()=>{if(process&&process.geteuid){return`${process.geteuid()}`}return"DEFAULT"};const getHomeDir=()=>{const{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:d=`C:${i.sep}`}=process.env;if(e)return e;if(t)return t;if(n)return`${d}${n}`;const m=getHomeDirCacheKey();if(!a[m])a[m]=(0,o.homedir)();return a[m]};t.getHomeDir=getHomeDir},269:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFilepath=void 0;const o=n(6982);const i=n(6928);const a=n(1791);const getSSOTokenFilepath=e=>{const t=(0,o.createHash)("sha1");const n=t.update(e).digest("hex");return(0,i.join)((0,a.getHomeDir)(),".aws","sso","cache",`${n}.json`)};t.getSSOTokenFilepath=getSSOTokenFilepath},1326:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getSSOTokenFromFile=t.tokenIntercept=void 0;const o=n(1943);const i=n(269);t.tokenIntercept={};const getSSOTokenFromFile=async e=>{if(t.tokenIntercept[e]){return t.tokenIntercept[e]}const n=(0,i.getSSOTokenFilepath)(e);const a=await(0,o.readFile)(n,"utf8");return JSON.parse(a)};t.getSSOTokenFromFile=getSSOTokenFromFile},4964:(e,t,n)=>{var o=n(1791);var i=n(269);var a=n(1326);var d=n(6928);var m=n(690);var h=n(6684);const f="AWS_PROFILE";const C="default";const getProfileName=e=>e.profile||process.env[f]||C;const P=".";const getConfigData=e=>Object.entries(e).filter((([e])=>{const t=e.indexOf(P);if(t===-1){return false}return Object.values(m.IniSectionType).includes(e.substring(0,t))})).reduce(((e,[t,n])=>{const o=t.indexOf(P);const i=t.substring(0,o)===m.IniSectionType.PROFILE?t.substring(o+1):t;e[i]=n;return e}),{...e.default&&{default:e.default}});const D="AWS_CONFIG_FILE";const getConfigFilepath=()=>process.env[D]||d.join(o.getHomeDir(),".aws","config");const k="AWS_SHARED_CREDENTIALS_FILE";const getCredentialsFilepath=()=>process.env[k]||d.join(o.getHomeDir(),".aws","credentials");const L=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;const F=["__proto__","profile __proto__"];const parseIni=e=>{const t={};let n;let o;for(const i of e.split(/\r?\n/)){const e=i.split(/(^|\s)[;#]/)[0].trim();const a=e[0]==="["&&e[e.length-1]==="]";if(a){n=undefined;o=undefined;const t=e.substring(1,e.length-1);const i=L.exec(t);if(i){const[,e,,t]=i;if(Object.values(m.IniSectionType).includes(e)){n=[e,t].join(P)}}else{n=t}if(F.includes(t)){throw new Error(`Found invalid profile name "${t}"`)}}else if(n){const a=e.indexOf("=");if(![0,-1].includes(a)){const[d,m]=[e.substring(0,a).trim(),e.substring(a+1).trim()];if(m===""){o=d}else{if(o&&i.trimStart()===i){o=undefined}t[n]=t[n]||{};const e=o?[o,d].join(P):d;t[n][e]=m}}}}return t};const swallowError$1=()=>({});const loadSharedConfigFiles=async(e={})=>{const{filepath:t=getCredentialsFilepath(),configFilepath:n=getConfigFilepath()}=e;const i=o.getHomeDir();const a="~/";let m=t;if(t.startsWith(a)){m=d.join(i,t.slice(2))}let f=n;if(n.startsWith(a)){f=d.join(i,n.slice(2))}const C=await Promise.all([h.readFile(f,{ignoreCache:e.ignoreCache}).then(parseIni).then(getConfigData).catch(swallowError$1),h.readFile(m,{ignoreCache:e.ignoreCache}).then(parseIni).catch(swallowError$1)]);return{configFile:C[0],credentialsFile:C[1]}};const getSsoSessionData=e=>Object.entries(e).filter((([e])=>e.startsWith(m.IniSectionType.SSO_SESSION+P))).reduce(((e,[t,n])=>({...e,[t.substring(t.indexOf(P)+1)]:n})),{});const swallowError=()=>({});const loadSsoSessionData=async(e={})=>h.readFile(e.configFilepath??getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError);const mergeConfigFiles=(...e)=>{const t={};for(const n of e){for(const[e,o]of Object.entries(n)){if(t[e]!==undefined){Object.assign(t[e],o)}else{t[e]=o}}}return t};const parseKnownFiles=async e=>{const t=await loadSharedConfigFiles(e);return mergeConfigFiles(t.configFile,t.credentialsFile)};const q={getFileRecord(){return h.fileIntercept},interceptFile(e,t){h.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return a.tokenIntercept},interceptToken(e,t){a.tokenIntercept[e]=t}};t.getSSOTokenFromFile=a.getSSOTokenFromFile;t.readFile=h.readFile;t.CONFIG_PREFIX_SEPARATOR=P;t.DEFAULT_PROFILE=C;t.ENV_PROFILE=f;t.externalDataInterceptor=q;t.getProfileName=getProfileName;t.loadSharedConfigFiles=loadSharedConfigFiles;t.loadSsoSessionData=loadSsoSessionData;t.parseKnownFiles=parseKnownFiles;Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},6684:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.readFile=t.fileIntercept=t.filePromises=void 0;const o=n(1455);t.filePromises={};t.fileIntercept={};const readFile=(e,n)=>{if(t.fileIntercept[e]!==undefined){return t.fileIntercept[e]}if(!t.filePromises[e]||n?.ignoreCache){t.filePromises[e]=(0,o.readFile)(e,"utf8")}return t.filePromises[e]};t.readFile=readFile},5118:(e,t,n)=>{var o=n(6435);var i=n(1577);var a=n(6130);var d=n(2356);var m=n(6324);var h=n(146);const f="X-Amz-Algorithm";const C="X-Amz-Credential";const P="X-Amz-Date";const D="X-Amz-SignedHeaders";const k="X-Amz-Expires";const L="X-Amz-Signature";const F="X-Amz-Security-Token";const q="X-Amz-Region-Set";const V="authorization";const ee=P.toLowerCase();const te="date";const re=[V,ee,te];const ne=L.toLowerCase();const se="x-amz-content-sha256";const oe=F.toLowerCase();const ie="host";const ae={authorization:true,"cache-control":true,connection:true,expect:true,from:true,"keep-alive":true,"max-forwards":true,pragma:true,referer:true,te:true,trailer:true,"transfer-encoding":true,upgrade:true,"user-agent":true,"x-amzn-trace-id":true};const ce=/^proxy-/;const le=/^sec-/;const ue=[/^proxy-/i,/^sec-/i];const de="AWS4-HMAC-SHA256";const pe="AWS4-ECDSA-P256-SHA256";const Ae="AWS4-HMAC-SHA256-PAYLOAD";const me="UNSIGNED-PAYLOAD";const ge=50;const he="aws4_request";const fe=60*60*24*7;const ye={};const Ee=[];const createScope=(e,t,n)=>`${e}/${t}/${n}/${he}`;const getSigningKey=async(e,t,n,i,a)=>{const d=await hmac(e,t.secretAccessKey,t.accessKeyId);const m=`${n}:${i}:${a}:${o.toHex(d)}:${t.sessionToken}`;if(m in ye){return ye[m]}Ee.push(m);while(Ee.length>ge){delete ye[Ee.shift()]}let h=`AWS4${t.secretAccessKey}`;for(const t of[n,i,a,he]){h=await hmac(e,h,t)}return ye[m]=h};const clearCredentialCache=()=>{Ee.length=0;Object.keys(ye).forEach((e=>{delete ye[e]}))};const hmac=(e,t,n)=>{const o=new e(t);o.update(i.toUint8Array(n));return o.digest()};const getCanonicalHeaders=({headers:e},t,n)=>{const o={};for(const i of Object.keys(e).sort()){if(e[i]==undefined){continue}const a=i.toLowerCase();if(a in ae||t?.has(a)||ce.test(a)||le.test(a)){if(!n||n&&!n.has(a)){continue}}o[a]=e[i].trim().replace(/\s+/g," ")}return o};const getPayloadHash=async({headers:e,body:t},n)=>{for(const t of Object.keys(e)){if(t.toLowerCase()===se){return e[t]}}if(t==undefined){return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}else if(typeof t==="string"||ArrayBuffer.isView(t)||a.isArrayBuffer(t)){const e=new n;e.update(i.toUint8Array(t));return o.toHex(await e.digest())}return me};class HeaderFormatter{format(e){const t=[];for(const n of Object.keys(e)){const o=i.fromUtf8(n);t.push(Uint8Array.from([o.byteLength]),o,this.formatHeaderValue(e[n]))}const n=new Uint8Array(t.reduce(((e,t)=>e+t.byteLength),0));let o=0;for(const e of t){n.set(e,o);o+=e.byteLength}return n}formatHeaderValue(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":const t=new DataView(new ArrayBuffer(3));t.setUint8(0,3);t.setInt16(1,e.value,false);return new Uint8Array(t.buffer);case"integer":const n=new DataView(new ArrayBuffer(5));n.setUint8(0,4);n.setInt32(1,e.value,false);return new Uint8Array(n.buffer);case"long":const a=new Uint8Array(9);a[0]=5;a.set(e.value.bytes,1);return a;case"binary":const d=new DataView(new ArrayBuffer(3+e.value.byteLength));d.setUint8(0,6);d.setUint16(1,e.value.byteLength,false);const m=new Uint8Array(d.buffer);m.set(e.value,3);return m;case"string":const h=i.fromUtf8(e.value);const f=new DataView(new ArrayBuffer(3+h.byteLength));f.setUint8(0,7);f.setUint16(1,h.byteLength,false);const C=new Uint8Array(f.buffer);C.set(h,3);return C;case"timestamp":const P=new Uint8Array(9);P[0]=8;P.set(Int64.fromNumber(e.value.valueOf()).bytes,1);return P;case"uuid":if(!Ce.test(e.value)){throw new Error(`Invalid UUID received: ${e.value}`)}const D=new Uint8Array(17);D[0]=9;D.set(o.fromHex(e.value.replace(/\-/g,"")),1);return D}}}const Ce=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;class Int64{bytes;constructor(e){this.bytes=e;if(e.byteLength!==8){throw new Error("Int64 buffers must be exactly 8 bytes")}}static fromNumber(e){if(e>0x8000000000000000||e<-0x8000000000000000){throw new Error(`${e} is too large (or, if negative, too small) to represent as an Int64`)}const t=new Uint8Array(8);for(let n=7,o=Math.abs(Math.round(e));n>-1&&o>0;n--,o/=256){t[n]=o}if(e<0){negate(t)}return new Int64(t)}valueOf(){const e=this.bytes.slice(0);const t=e[0]&128;if(t){negate(e)}return parseInt(o.toHex(e),16)*(t?-1:1)}toString(){return String(this.valueOf())}}function negate(e){for(let t=0;t<8;t++){e[t]^=255}for(let t=7;t>-1;t--){e[t]++;if(e[t]!==0)break}}const hasHeader=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t)){if(e===n.toLowerCase()){return true}}return false};const moveHeadersToQuery=(e,t={})=>{const{headers:n,query:o={}}=d.HttpRequest.clone(e);for(const e of Object.keys(n)){const i=e.toLowerCase();if(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i)){o[e]=n[e];delete n[e]}}return{...e,headers:n,query:o}};const prepareRequest=e=>{e=d.HttpRequest.clone(e);for(const t of Object.keys(e.headers)){if(re.indexOf(t.toLowerCase())>-1){delete e.headers[t]}}return e};const getCanonicalQuery=({query:e={}})=>{const t=[];const n={};for(const o of Object.keys(e)){if(o.toLowerCase()===ne){continue}const i=h.escapeUri(o);t.push(i);const a=e[o];if(typeof a==="string"){n[i]=`${i}=${h.escapeUri(a)}`}else if(Array.isArray(a)){n[i]=a.slice(0).reduce(((e,t)=>e.concat([`${i}=${h.escapeUri(t)}`])),[]).sort().join("&")}}return t.sort().map((e=>n[e])).filter((e=>e)).join("&")};const iso8601=e=>toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");const toDate=e=>{if(typeof e==="number"){return new Date(e*1e3)}if(typeof e==="string"){if(Number(e)){return new Date(Number(e)*1e3)}return new Date(e)}return e};class SignatureV4Base{service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a=true}){this.service=o;this.sha256=i;this.uriEscapePath=a;this.applyChecksum=typeof e==="boolean"?e:true;this.regionProvider=m.normalizeProvider(n);this.credentialProvider=m.normalizeProvider(t)}createCanonicalRequest(e,t,n){const o=Object.keys(t).sort();return`${e.method}\n${this.getCanonicalPath(e)}\n${getCanonicalQuery(e)}\n${o.map((e=>`${e}:${t[e]}`)).join("\n")}\n\n${o.join(";")}\n${n}`}async createStringToSign(e,t,n,a){const d=new this.sha256;d.update(i.toUint8Array(n));const m=await d.digest();return`${a}\n${e}\n${t}\n${o.toHex(m)}`}getCanonicalPath({path:e}){if(this.uriEscapePath){const t=[];for(const n of e.split("/")){if(n?.length===0)continue;if(n===".")continue;if(n===".."){t.pop()}else{t.push(n)}}const n=`${e?.startsWith("/")?"/":""}${t.join("/")}${t.length>0&&e?.endsWith("/")?"/":""}`;const o=h.escapeUri(n);return o.replace(/%2F/g,"/")}return e}validateResolvedCredentials(e){if(typeof e!=="object"||typeof e.accessKeyId!=="string"||typeof e.secretAccessKey!=="string"){throw new Error("Resolved credential object is not valid")}}formatDate(e){const t=iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}}getCanonicalHeaderList(e){return Object.keys(e).sort().join(";")}}class SignatureV4 extends SignatureV4Base{headerFormatter=new HeaderFormatter;constructor({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a=true}){super({applyChecksum:e,credentials:t,region:n,service:o,sha256:i,uriEscapePath:a})}async presign(e,t={}){const{signingDate:n=new Date,expiresIn:o=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:d,hoistableHeaders:m,signingRegion:h,signingService:q}=t;const V=await this.credentialProvider();this.validateResolvedCredentials(V);const ee=h??await this.regionProvider();const{longDate:te,shortDate:re}=this.formatDate(n);if(o>fe){return Promise.reject("Signature version 4 presigned URLs"+" must have an expiration date less than one week in"+" the future")}const ne=createScope(re,ee,q??this.service);const se=moveHeadersToQuery(prepareRequest(e),{unhoistableHeaders:a,hoistableHeaders:m});if(V.sessionToken){se.query[F]=V.sessionToken}se.query[f]=de;se.query[C]=`${V.accessKeyId}/${ne}`;se.query[P]=te;se.query[k]=o.toString(10);const oe=getCanonicalHeaders(se,i,d);se.query[D]=this.getCanonicalHeaderList(oe);se.query[L]=await this.getSignature(te,ne,this.getSigningKey(V,ee,re,q),this.createCanonicalRequest(se,oe,await getPayloadHash(e,this.sha256)));return se}async sign(e,t){if(typeof e==="string"){return this.signString(e,t)}else if(e.headers&&e.payload){return this.signEvent(e,t)}else if(e.message){return this.signMessage(e,t)}else{return this.signRequest(e,t)}}async signEvent({headers:e,payload:t},{signingDate:n=new Date,priorSignature:i,signingRegion:a,signingService:d}){const m=a??await this.regionProvider();const{shortDate:h,longDate:f}=this.formatDate(n);const C=createScope(h,m,d??this.service);const P=await getPayloadHash({headers:{},body:t},this.sha256);const D=new this.sha256;D.update(e);const k=o.toHex(await D.digest());const L=[Ae,f,C,i,k,P].join("\n");return this.signString(L,{signingDate:n,signingRegion:m,signingService:d})}async signMessage(e,{signingDate:t=new Date,signingRegion:n,signingService:o}){const i=this.signEvent({headers:this.headerFormatter.format(e.message.headers),payload:e.message.body},{signingDate:t,signingRegion:n,signingService:o,priorSignature:e.priorSignature});return i.then((t=>({message:e.message,signature:t})))}async signString(e,{signingDate:t=new Date,signingRegion:n,signingService:a}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const m=n??await this.regionProvider();const{shortDate:h}=this.formatDate(t);const f=new this.sha256(await this.getSigningKey(d,m,h,a));f.update(i.toUint8Array(e));return o.toHex(await f.digest())}async signRequest(e,{signingDate:t=new Date,signableHeaders:n,unsignableHeaders:o,signingRegion:i,signingService:a}={}){const d=await this.credentialProvider();this.validateResolvedCredentials(d);const m=i??await this.regionProvider();const h=prepareRequest(e);const{longDate:f,shortDate:C}=this.formatDate(t);const P=createScope(C,m,a??this.service);h.headers[ee]=f;if(d.sessionToken){h.headers[oe]=d.sessionToken}const D=await getPayloadHash(h,this.sha256);if(!hasHeader(se,h.headers)&&this.applyChecksum){h.headers[se]=D}const k=getCanonicalHeaders(h,o,n);const L=await this.getSignature(f,P,this.getSigningKey(d,m,C,a),this.createCanonicalRequest(h,k,D));h.headers[V]=`${de} `+`Credential=${d.accessKeyId}/${P}, `+`SignedHeaders=${this.getCanonicalHeaderList(k)}, `+`Signature=${L}`;return h}async getSignature(e,t,n,a){const d=await this.createStringToSign(e,t,a,de);const m=new this.sha256(await n);m.update(i.toUint8Array(d));return o.toHex(await m.digest())}getSigningKey(e,t,n,o){return getSigningKey(this.sha256,e,n,t,o||this.service)}}const Ie={SignatureV4a:null};t.ALGORITHM_IDENTIFIER=de;t.ALGORITHM_IDENTIFIER_V4A=pe;t.ALGORITHM_QUERY_PARAM=f;t.ALWAYS_UNSIGNABLE_HEADERS=ae;t.AMZ_DATE_HEADER=ee;t.AMZ_DATE_QUERY_PARAM=P;t.AUTH_HEADER=V;t.CREDENTIAL_QUERY_PARAM=C;t.DATE_HEADER=te;t.EVENT_ALGORITHM_IDENTIFIER=Ae;t.EXPIRES_QUERY_PARAM=k;t.GENERATED_HEADERS=re;t.HOST_HEADER=ie;t.KEY_TYPE_IDENTIFIER=he;t.MAX_CACHE_SIZE=ge;t.MAX_PRESIGNED_TTL=fe;t.PROXY_HEADER_PATTERN=ce;t.REGION_SET_PARAM=q;t.SEC_HEADER_PATTERN=le;t.SHA256_HEADER=se;t.SIGNATURE_HEADER=ne;t.SIGNATURE_QUERY_PARAM=L;t.SIGNED_HEADERS_QUERY_PARAM=D;t.SignatureV4=SignatureV4;t.SignatureV4Base=SignatureV4Base;t.TOKEN_HEADER=oe;t.TOKEN_QUERY_PARAM=F;t.UNSIGNABLE_PATTERNS=ue;t.UNSIGNED_PAYLOAD=me;t.clearCredentialCache=clearCredentialCache;t.createScope=createScope;t.getCanonicalHeaders=getCanonicalHeaders;t.getCanonicalQuery=getCanonicalQuery;t.getPayloadHash=getPayloadHash;t.getSigningKey=getSigningKey;t.hasHeader=hasHeader;t.moveHeadersToQuery=moveHeadersToQuery;t.prepareRequest=prepareRequest;t.signatureV4aContainer=Ie},1411:(e,t,n)=>{var o=n(9208);var i=n(3422);var a=n(690);var d=n(6890);var m=n(2430);class Client{config;middlewareStack=o.constructStack();initConfig;handlers;constructor(e){this.config=e;const{protocol:t,protocolSettings:n}=e;if(n){if(typeof t==="function"){e.protocol=new t(n)}}}send(e,t,n){const o=typeof t!=="function"?t:undefined;const i=typeof t==="function"?t:n;const a=o===undefined&&this.config.cacheMiddleware===true;let d;if(a){if(!this.handlers){this.handlers=new WeakMap}const t=this.handlers;if(t.has(e.constructor)){d=t.get(e.constructor)}else{d=e.resolveMiddleware(this.middlewareStack,this.config,o);t.set(e.constructor,d)}}else{delete this.handlers;d=e.resolveMiddleware(this.middlewareStack,this.config,o)}if(i){d(e).then((e=>i(null,e.output)),(e=>i(e))).catch((()=>{}))}else{return d(e).then((e=>e.output))}}destroy(){this.config?.requestHandler?.destroy?.();delete this.handlers}}const h="***SensitiveInformation***";function schemaLogFilter(e,t){if(t==null){return t}const n=d.NormalizedSchema.of(e);if(n.getMergedTraits().sensitive){return h}if(n.isListSchema()){const e=!!n.getValueSchema().getMergedTraits().sensitive;if(e){return h}}else if(n.isMapSchema()){const e=!!n.getKeySchema().getMergedTraits().sensitive||!!n.getValueSchema().getMergedTraits().sensitive;if(e){return h}}else if(n.isStructSchema()&&typeof t==="object"){const e=t;const o={};for(const[t,i]of n.structIterator()){if(e[t]!=null){o[t]=schemaLogFilter(i,e[t])}}return o}return t}class Command{middlewareStack=o.constructStack();schema;static classBuilder(){return new ClassBuilder}resolveMiddlewareWithContext(e,t,n,{middlewareFn:o,clientName:i,commandName:d,inputFilterSensitiveLog:m,outputFilterSensitiveLog:h,smithyContext:f,additionalContext:C,CommandCtor:P}){for(const i of o.bind(this)(P,e,t,n)){this.middlewareStack.use(i)}const D=e.concat(this.middlewareStack);const{logger:k}=t;const L={logger:k,clientName:i,commandName:d,inputFilterSensitiveLog:m,outputFilterSensitiveLog:h,[a.SMITHY_CONTEXT_KEY]:{commandInstance:this,...f},...C};const{requestHandler:F}=t;return D.resolve((e=>F.handle(e.request,n||{})),L)}}class ClassBuilder{_init=()=>{};_ep={};_middlewareFn=()=>[];_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=undefined;_outputFilterSensitiveLog=undefined;_serializer=null;_deserializer=null;_operationSchema;init(e){this._init=e}ep(e){this._ep=e;return this}m(e){this._middlewareFn=e;return this}s(e,t,n={}){this._smithyContext={service:e,operation:t,...n};return this}c(e={}){this._additionalContext=e;return this}n(e,t){this._clientName=e;this._commandName=t;return this}f(e=e=>e,t=e=>e){this._inputFilterSensitiveLog=e;this._outputFilterSensitiveLog=t;return this}ser(e){this._serializer=e;return this}de(e){this._deserializer=e;return this}sc(e){this._operationSchema=e;this._smithyContext.operationSchema=e;return this}build(){const e=this;let t;return t=class extends Command{input;static getEndpointParameterInstructions(){return e._ep}constructor(...[t]){super();this.input=t??{};e._init(this);this.schema=e._operationSchema}resolveMiddleware(n,o,i){const a=e._operationSchema;const d=a?.[4]??a?.input;const m=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(n,o,i,{CommandCtor:t,middlewareFn:e._middlewareFn,clientName:e._clientName,commandName:e._commandName,inputFilterSensitiveLog:e._inputFilterSensitiveLog??(a?schemaLogFilter.bind(null,d):e=>e),outputFilterSensitiveLog:e._outputFilterSensitiveLog??(a?schemaLogFilter.bind(null,m):e=>e),smithyContext:e._smithyContext,additionalContext:e._additionalContext})}serialize=e._serializer;deserialize=e._deserializer}}}const f="***SensitiveInformation***";const createAggregatedClient=(e,t,n)=>{for(const[n,o]of Object.entries(e)){const methodImpl=async function(e,t,n){const i=new o(e);if(typeof t==="function"){this.send(i,t)}else if(typeof n==="function"){if(typeof t!=="object")throw new Error(`Expected http options but got ${typeof t}`);this.send(i,t||{},n)}else{return this.send(i,t)}};const e=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[e]=methodImpl}const{paginators:o={},waiters:i={}}=n??{};for(const[e,n]of Object.entries(o)){if(t.prototype[e]===void 0){t.prototype[e]=function(e={},t,...o){return n({...t,client:this},e,...o)}}}for(const[e,n]of Object.entries(i)){if(t.prototype[e]===void 0){t.prototype[e]=async function(e={},t,...o){let i=t;if(typeof t==="number"){i={maxWaitTime:t}}return n({...i,client:this},e,...o)}}}};class ServiceException extends Error{$fault;$response;$retryable;$metadata;constructor(e){super(e.message);Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype);this.name=e.name;this.$fault=e.$fault;this.$metadata=e.$metadata}static isInstance(e){if(!e)return false;const t=e;return ServiceException.prototype.isPrototypeOf(t)||Boolean(t.$fault)&&Boolean(t.$metadata)&&(t.$fault==="client"||t.$fault==="server")}static[Symbol.hasInstance](e){if(!e)return false;const t=e;if(this===ServiceException){return ServiceException.isInstance(e)}if(ServiceException.isInstance(e)){if(t.name&&this.name){return this.prototype.isPrototypeOf(e)||t.name===this.name}return this.prototype.isPrototypeOf(e)}return false}}const decorateServiceException=(e,t={})=>{Object.entries(t).filter((([,e])=>e!==undefined)).forEach((([t,n])=>{if(e[t]==undefined||e[t]===""){e[t]=n}}));const n=e.message||e.Message||"UnknownError";e.message=n;delete e.Message;return e};const throwDefaultError=({output:e,parsedBody:t,exceptionCtor:n,errorCode:o})=>{const i=deserializeMetadata(e);const a=i.httpStatusCode?i.httpStatusCode+"":undefined;const d=new n({name:t?.code||t?.Code||o||a||"UnknownError",$fault:"client",$metadata:i});throw decorateServiceException(d,t)};const withBaseException=e=>({output:t,parsedBody:n,errorCode:o})=>{throwDefaultError({output:t,parsedBody:n,exceptionCtor:e,errorCode:o})};const deserializeMetadata=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]});const loadConfigsForDefaultMode=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};let C=false;const emitWarningIfUnsupportedVersion=e=>{if(e&&!C&&parseInt(e.substring(1,e.indexOf(".")))<16){C=true}};const P=Object.values(a.AlgorithmId);const getChecksumConfiguration=e=>{const t=[];for(const n in a.AlgorithmId){const o=a.AlgorithmId[n];if(e[o]===undefined){continue}t.push({algorithmId:()=>o,checksumConstructor:()=>e[o]})}for(const[n,o]of Object.entries(e.checksumAlgorithms??{})){t.push({algorithmId:()=>n,checksumConstructor:()=>o})}return{addChecksumAlgorithm(n){e.checksumAlgorithms=e.checksumAlgorithms??{};const o=n.algorithmId();const i=n.checksumConstructor();if(P.includes(o)){e.checksumAlgorithms[o.toUpperCase()]=i}else{e.checksumAlgorithms[o]=i}t.push(n)},checksumAlgorithms(){return t}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{const n=e.algorithmId();if(P.includes(n)){t[n]=e.checksumConstructor()}}));return t};const getRetryConfiguration=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}});const resolveRetryRuntimeConfig=e=>{const t={};t.retryStrategy=e.retryStrategy();return t};const getDefaultExtensionConfiguration=e=>Object.assign(getChecksumConfiguration(e),getRetryConfiguration(e));const D=getDefaultExtensionConfiguration;const resolveDefaultRuntimeConfig=e=>Object.assign(resolveChecksumRuntimeConfig(e),resolveRetryRuntimeConfig(e));const getArrayIfSingleItem=e=>Array.isArray(e)?e:[e];const getValueFromTextNode=e=>{const t="#text";for(const n in e){if(e.hasOwnProperty(n)&&e[n][t]!==undefined){e[n]=e[n][t]}else if(typeof e[n]==="object"&&e[n]!==null){e[n]=getValueFromTextNode(e[n])}}return e};const isSerializableHeaderValue=e=>e!=null;class NoOpLogger{trace(){}debug(){}info(){}warn(){}error(){}}function map(e,t,n){let o;let i;let a;if(typeof t==="undefined"&&typeof n==="undefined"){o={};a=e}else{o=e;if(typeof t==="function"){i=t;a=n;return mapWithFilter(o,i,a)}else{a=t}}for(const e of Object.keys(a)){if(!Array.isArray(a[e])){o[e]=a[e];continue}applyInstruction(o,null,a,e)}return o}const convertMap=e=>{const t={};for(const[n,o]of Object.entries(e||{})){t[n]=[,o]}return t};const take=(e,t)=>{const n={};for(const o in t){applyInstruction(n,e,t,o)}return n};const mapWithFilter=(e,t,n)=>map(e,Object.entries(n).reduce(((e,[n,o])=>{if(Array.isArray(o)){e[n]=o}else{if(typeof o==="function"){e[n]=[t,o()]}else{e[n]=[t,o]}}return e}),{}));const applyInstruction=(e,t,n,o)=>{if(t!==null){let i=n[o];if(typeof i==="function"){i=[,i]}const[a=nonNullish,d=pass,m=o]=i;if(typeof a==="function"&&a(t[m])||typeof a!=="function"&&!!a){e[o]=d(t[m])}return}let[i,a]=n[o];if(typeof a==="function"){let t;const n=i===undefined&&(t=a())!=null;const d=typeof i==="function"&&!!i(void 0)||typeof i!=="function"&&!!i;if(n){e[o]=t}else if(d){e[o]=a()}}else{const t=i===undefined&&a!=null;const n=typeof i==="function"&&!!i(a)||typeof i!=="function"&&!!i;if(t||n){e[o]=a}}};const nonNullish=e=>e!=null;const pass=e=>e;const serializeFloat=e=>{if(e!==e){return"NaN"}switch(e){case Infinity:return"Infinity";case-Infinity:return"-Infinity";default:return e}};const serializeDateTime=e=>e.toISOString().replace(".000Z","Z");const _json=e=>{if(e==null){return{}}if(Array.isArray(e)){return e.filter((e=>e!=null)).map(_json)}if(typeof e==="object"){const t={};for(const n of Object.keys(e)){if(e[n]==null){continue}t[n]=_json(e[n])}return t}return e};t.collectBody=i.collectBody;t.extendedEncodeURIComponent=i.extendedEncodeURIComponent;t.resolvedPath=i.resolvedPath;t.Client=Client;t.Command=Command;t.NoOpLogger=NoOpLogger;t.SENSITIVE_STRING=f;t.ServiceException=ServiceException;t._json=_json;t.convertMap=convertMap;t.createAggregatedClient=createAggregatedClient;t.decorateServiceException=decorateServiceException;t.emitWarningIfUnsupportedVersion=emitWarningIfUnsupportedVersion;t.getArrayIfSingleItem=getArrayIfSingleItem;t.getDefaultClientConfiguration=D;t.getDefaultExtensionConfiguration=getDefaultExtensionConfiguration;t.getValueFromTextNode=getValueFromTextNode;t.isSerializableHeaderValue=isSerializableHeaderValue;t.loadConfigsForDefaultMode=loadConfigsForDefaultMode;t.map=map;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig;t.serializeDateTime=serializeDateTime;t.serializeFloat=serializeFloat;t.take=take;t.throwDefaultError=throwDefaultError;t.withBaseException=withBaseException;Object.prototype.hasOwnProperty.call(m,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:m["__proto__"]});Object.keys(m).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=m[e]}))},690:(e,t)=>{t.HttpAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpAuthLocation||(t.HttpAuthLocation={}));t.HttpApiKeyAuthLocation=void 0;(function(e){e["HEADER"]="header";e["QUERY"]="query"})(t.HttpApiKeyAuthLocation||(t.HttpApiKeyAuthLocation={}));t.EndpointURLScheme=void 0;(function(e){e["HTTP"]="http";e["HTTPS"]="https"})(t.EndpointURLScheme||(t.EndpointURLScheme={}));t.AlgorithmId=void 0;(function(e){e["MD5"]="md5";e["CRC32"]="crc32";e["CRC32C"]="crc32c";e["SHA1"]="sha1";e["SHA256"]="sha256"})(t.AlgorithmId||(t.AlgorithmId={}));const getChecksumConfiguration=e=>{const n=[];if(e.sha256!==undefined){n.push({algorithmId:()=>t.AlgorithmId.SHA256,checksumConstructor:()=>e.sha256})}if(e.md5!=undefined){n.push({algorithmId:()=>t.AlgorithmId.MD5,checksumConstructor:()=>e.md5})}return{addChecksumAlgorithm(e){n.push(e)},checksumAlgorithms(){return n}}};const resolveChecksumRuntimeConfig=e=>{const t={};e.checksumAlgorithms().forEach((e=>{t[e.algorithmId()]=e.checksumConstructor()}));return t};const getDefaultClientConfiguration=e=>getChecksumConfiguration(e);const resolveDefaultRuntimeConfig=e=>resolveChecksumRuntimeConfig(e);t.FieldPosition=void 0;(function(e){e[e["HEADER"]=0]="HEADER";e[e["TRAILER"]=1]="TRAILER"})(t.FieldPosition||(t.FieldPosition={}));const n="__smithy_context";t.IniSectionType=void 0;(function(e){e["PROFILE"]="profile";e["SSO_SESSION"]="sso-session";e["SERVICES"]="services"})(t.IniSectionType||(t.IniSectionType={}));t.RequestHandlerProtocol=void 0;(function(e){e["HTTP_0_9"]="http/0.9";e["HTTP_1_0"]="http/1.0";e["TDS_8_0"]="tds/8.0"})(t.RequestHandlerProtocol||(t.RequestHandlerProtocol={}));t.SMITHY_CONTEXT_KEY=n;t.getDefaultClientConfiguration=getDefaultClientConfiguration;t.resolveDefaultRuntimeConfig=resolveDefaultRuntimeConfig},4494:(e,t,n)=>{var o=n(8822);const parseUrl=e=>{if(typeof e==="string"){return parseUrl(new URL(e))}const{hostname:t,pathname:n,port:i,protocol:a,search:d}=e;let m;if(d){m=o.parseQueryString(d)}return{hostname:t,port:i?parseInt(i):undefined,protocol:a,path:n,query:m}};t.parseUrl=parseUrl},2674:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.fromBase64=void 0;const o=n(4151);const i=/^[A-Za-z0-9+/]*={0,2}$/;const fromBase64=e=>{if(e.length*3%4!==0){throw new TypeError(`Incorrect padding on base64 string.`)}if(!i.exec(e)){throw new TypeError(`Invalid base64 string.`)}const t=(0,o.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)};t.fromBase64=fromBase64},8385:(e,t,n)=>{var o=n(2674);var i=n(4871);Object.prototype.hasOwnProperty.call(o,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:o["__proto__"]});Object.keys(o).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=o[e]}));Object.prototype.hasOwnProperty.call(i,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:i["__proto__"]});Object.keys(i).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=i[e]}))},4871:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.toBase64=void 0;const o=n(4151);const i=n(1577);const toBase64=e=>{let t;if(typeof e==="string"){t=(0,i.fromUtf8)(e)}else{t=e}if(typeof t!=="object"||typeof t.byteOffset!=="number"||typeof t.byteLength!=="number"){throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.")}return(0,o.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")};t.toBase64=toBase64},2098:(e,t)=>{const n=typeof TextEncoder=="function"?new TextEncoder:null;const calculateBodyLength=e=>{if(typeof e==="string"){if(n){return n.encode(e).byteLength}let t=e.length;for(let n=t-1;n>=0;n--){const o=e.charCodeAt(n);if(o>127&&o<=2047)t++;else if(o>2047&&o<=65535)t+=2;if(o>=56320&&o<=57343)n--}return t}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},3638:(e,t,n)=>{var o=n(3024);const calculateBodyLength=e=>{if(!e){return 0}if(typeof e==="string"){return Buffer.byteLength(e)}else if(typeof e.byteLength==="number"){return e.byteLength}else if(typeof e.size==="number"){return e.size}else if(typeof e.start==="number"&&typeof e.end==="number"){return e.end+1-e.start}else if(e instanceof o.ReadStream){if(e.path!=null){return o.lstatSync(e.path).size}else if(typeof e.fd==="number"){return o.fstatSync(e.fd).size}}throw new Error(`Body Length computation failed for ${e}`)};t.calculateBodyLength=calculateBodyLength},4151:(e,t,n)=>{var o=n(6130);var i=n(181);const fromArrayBuffer=(e,t=0,n=e.byteLength-t)=>{if(!o.isArrayBuffer(e)){throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`)}return i.Buffer.from(e,t,n)};const fromString=(e,t)=>{if(typeof e!=="string"){throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`)}return t?i.Buffer.from(e,t):i.Buffer.from(e)};t.fromArrayBuffer=fromArrayBuffer;t.fromString=fromString},6716:(e,t)=>{const booleanSelector=(e,t,n)=>{if(!(t in e))return undefined;if(e[t]==="true")return true;if(e[t]==="false")return false;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)};const numberSelector=(e,t,n)=>{if(!(t in e))return undefined;const o=parseInt(e[t],10);if(Number.isNaN(o)){throw new TypeError(`Cannot load ${n} '${t}'. Expected number, got '${e[t]}'.`)}return o};t.SelectorType=void 0;(function(e){e["ENV"]="env";e["CONFIG"]="shared config entry"})(t.SelectorType||(t.SelectorType={}));t.booleanSelector=booleanSelector;t.numberSelector=numberSelector},673:(e,t,n)=>{var o=n(9316);var i=n(5704);var a=n(8857);const d="AWS_EXECUTION_ENV";const m="AWS_REGION";const h="AWS_DEFAULT_REGION";const f="AWS_EC2_METADATA_DISABLED";const C=["in-region","cross-region","mobile","standard","legacy"];const P="/latest/meta-data/placement/region";const D="AWS_DEFAULTS_MODE";const k="defaults_mode";const L={environmentVariableSelector:e=>e[D],configFileSelector:e=>e[k],default:"legacy"};const resolveDefaultsModeConfig=({region:e=i.loadConfig(o.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=i.loadConfig(L)}={})=>a.memoize((async()=>{const n=typeof t==="function"?await t():t;switch(n?.toLowerCase()){case"auto":return resolveNodeDefaultsModeAuto(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n?.toLocaleLowerCase());case undefined:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${C.join(", ")}, got ${n}`)}}));const resolveNodeDefaultsModeAuto=async e=>{if(e){const t=typeof e==="function"?await e():e;const n=await inferPhysicalRegion();if(!n){return"standard"}if(t===n){return"in-region"}else{return"cross-region"}}return"standard"};const inferPhysicalRegion=async()=>{if(process.env[d]&&(process.env[m]||process.env[h])){return process.env[m]??process.env[h]}if(!process.env[f]){try{const{getInstanceMetadataEndpoint:e,httpRequest:t}=await n.e(566).then(n.t.bind(n,566,19));const o=await e();return(await t({...o,path:P})).toString()}catch(e){}}};t.resolveDefaultsModeConfig=resolveDefaultsModeConfig},9674:(e,t,n)=>{var o=n(690);class EndpointCache{capacity;data=new Map;parameters=[];constructor({size:e,params:t}){this.capacity=e??50;if(t){this.parameters=t}}get(e,t){const n=this.hash(e);if(n===false){return t()}if(!this.data.has(n)){if(this.data.size>this.capacity+10){const e=this.data.keys();let t=0;while(true){const{value:n,done:o}=e.next();this.data.delete(n);if(o||++t>10){break}}}this.data.set(n,t())}return this.data.get(n)}size(){return this.data.size}hash(e){let t="";const{parameters:n}=this;if(n.length===0){return false}for(const o of n){const n=String(e[o]??"");if(n.includes("|;")){return false}t+=n+"|;"}return t}}const i=new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`);const isIpAddress=e=>i.test(e)||e.startsWith("[")&&e.endsWith("]");const a=new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`);const isValidHostLabel=(e,t=false)=>{if(!t){return a.test(e)}const n=e.split(".");for(const e of n){if(!isValidHostLabel(e)){return false}}return true};const d={};const m="endpoints";function toDebugString(e){if(typeof e!=="object"||e==null){return e}if("ref"in e){return`$${toDebugString(e.ref)}`}if("fn"in e){return`${e.fn}(${(e.argv||[]).map(toDebugString).join(", ")})`}return JSON.stringify(e,null,2)}class EndpointError extends Error{constructor(e){super(e);this.name="EndpointError"}}const booleanEquals=(e,t)=>e===t;const getAttrPathList=e=>{const t=e.split(".");const n=[];for(const o of t){const t=o.indexOf("[");if(t!==-1){if(o.indexOf("]")!==o.length-1){throw new EndpointError(`Path: '${e}' does not end with ']'`)}const i=o.slice(t+1,-1);if(Number.isNaN(parseInt(i))){throw new EndpointError(`Invalid array index: '${i}' in path: '${e}'`)}if(t!==0){n.push(o.slice(0,t))}n.push(i)}else{n.push(o)}}return n};const getAttr=(e,t)=>getAttrPathList(t).reduce(((n,o)=>{if(typeof n!=="object"){throw new EndpointError(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`)}else if(Array.isArray(n)){return n[parseInt(o)]}return n[o]}),e);const isSet=e=>e!=null;const not=e=>!e;const h={[o.EndpointURLScheme.HTTP]:80,[o.EndpointURLScheme.HTTPS]:443};const parseURL=e=>{const t=(()=>{try{if(e instanceof URL){return e}if(typeof e==="object"&&"hostname"in e){const{hostname:t,port:n,protocol:o="",path:i="",query:a={}}=e;const d=new URL(`${o}//${t}${n?`:${n}`:""}${i}`);d.search=Object.entries(a).map((([e,t])=>`${e}=${t}`)).join("&");return d}return new URL(e)}catch(e){return null}})();if(!t){console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`);return null}const n=t.href;const{host:i,hostname:a,pathname:d,protocol:m,search:f}=t;if(f){return null}const C=m.slice(0,-1);if(!Object.values(o.EndpointURLScheme).includes(C)){return null}const P=isIpAddress(a);const D=n.includes(`${i}:${h[C]}`)||typeof e==="string"&&e.includes(`${i}:${h[C]}`);const k=`${i}${D?`:${h[C]}`:``}`;return{scheme:C,authority:k,path:d,normalizedPath:d.endsWith("/")?d:`${d}/`,isIp:P}};const stringEquals=(e,t)=>e===t;const substring=(e,t,n,o)=>{if(t>=n||e.length<n||/[^\u0000-\u007f]/.test(e)){return null}if(!o){return e.substring(t,n)}return e.substring(e.length-n,e.length-t)};const uriEncode=e=>encodeURIComponent(e).replace(/[!*'()]/g,(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`));const f={booleanEquals:booleanEquals,getAttr:getAttr,isSet:isSet,isValidHostLabel:isValidHostLabel,not:not,parseURL:parseURL,stringEquals:stringEquals,substring:substring,uriEncode:uriEncode};const evaluateTemplate=(e,t)=>{const n=[];const o={...t.endpointParams,...t.referenceRecord};let i=0;while(i<e.length){const t=e.indexOf("{",i);if(t===-1){n.push(e.slice(i));break}n.push(e.slice(i,t));const a=e.indexOf("}",t);if(a===-1){n.push(e.slice(t));break}if(e[t+1]==="{"&&e[a+1]==="}"){n.push(e.slice(t+1,a));i=a+2}const d=e.substring(t+1,a);if(d.includes("#")){const[e,t]=d.split("#");n.push(getAttr(o[e],t))}else{n.push(o[d])}i=a+1}return n.join("")};const getReferenceValue=({ref:e},t)=>{const n={...t.endpointParams,...t.referenceRecord};return n[e]};const evaluateExpression=(e,t,n)=>{if(typeof e==="string"){return evaluateTemplate(e,n)}else if(e["fn"]){return C.callFunction(e,n)}else if(e["ref"]){return getReferenceValue(e,n)}throw new EndpointError(`'${t}': ${String(e)} is not a string, function or reference.`)};const callFunction=({fn:e,argv:t},n)=>{const o=t.map((e=>["boolean","number"].includes(typeof e)?e:C.evaluateExpression(e,"arg",n)));const i=e.split(".");if(i[0]in d&&i[1]!=null){return d[i[0]][i[1]](...o)}return f[e](...o)};const C={evaluateExpression:evaluateExpression,callFunction:callFunction};const evaluateCondition=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord){throw new EndpointError(`'${e}' is already defined in Reference Record.`)}const o=callFunction(t,n);n.logger?.debug?.(`${m} evaluateCondition: ${toDebugString(t)} = ${toDebugString(o)}`);return{result:o===""?true:!!o,...e!=null&&{toAssign:{name:e,value:o}}}};const evaluateConditions=(e=[],t)=>{const n={};for(const o of e){const{result:e,toAssign:i}=evaluateCondition(o,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!e){return{result:e}}if(i){n[i.name]=i.value;t.logger?.debug?.(`${m} assign: ${i.name} := ${toDebugString(i.value)}`)}}return{result:true,referenceRecord:n}};const getEndpointHeaders=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:o.map((e=>{const o=evaluateExpression(e,"Header value entry",t);if(typeof o!=="string"){throw new EndpointError(`Header '${n}' value '${o}' is not a string`)}return o}))})),{});const getEndpointProperties=(e,t)=>Object.entries(e).reduce(((e,[n,o])=>({...e,[n]:P.getEndpointProperty(o,t)})),{});const getEndpointProperty=(e,t)=>{if(Array.isArray(e)){return e.map((e=>getEndpointProperty(e,t)))}switch(typeof e){case"string":return evaluateTemplate(e,t);case"object":if(e===null){throw new EndpointError(`Unexpected endpoint property: ${e}`)}return P.getEndpointProperties(e,t);case"boolean":return e;default:throw new EndpointError(`Unexpected endpoint property type: ${typeof e}`)}};const P={getEndpointProperty:getEndpointProperty,getEndpointProperties:getEndpointProperties};const getEndpointUrl=(e,t)=>{const n=evaluateExpression(e,"Endpoint URL",t);if(typeof n==="string"){try{return new URL(n)}catch(e){console.error(`Failed to construct URL with ${n}`,e);throw e}}throw new EndpointError(`Endpoint URL must be a string, got ${typeof n}`)};const evaluateEndpointRule=(e,t)=>{const{conditions:n,endpoint:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}const d={...t,referenceRecord:{...t.referenceRecord,...a}};const{url:h,properties:f,headers:C}=o;t.logger?.debug?.(`${m} Resolving endpoint from template: ${toDebugString(o)}`);return{...C!=undefined&&{headers:getEndpointHeaders(C,d)},...f!=undefined&&{properties:getEndpointProperties(f,d)},url:getEndpointUrl(h,d)}};const evaluateErrorRule=(e,t)=>{const{conditions:n,error:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}throw new EndpointError(evaluateExpression(o,"Error",{...t,referenceRecord:{...t.referenceRecord,...a}}))};const evaluateRules=(e,t)=>{for(const n of e){if(n.type==="endpoint"){const e=evaluateEndpointRule(n,t);if(e){return e}}else if(n.type==="error"){evaluateErrorRule(n,t)}else if(n.type==="tree"){const e=D.evaluateTreeRule(n,t);if(e){return e}}else{throw new EndpointError(`Unknown endpoint rule: ${n}`)}}throw new EndpointError(`Rules evaluation failed`)};const evaluateTreeRule=(e,t)=>{const{conditions:n,rules:o}=e;const{result:i,referenceRecord:a}=evaluateConditions(n,t);if(!i){return}return D.evaluateRules(o,{...t,referenceRecord:{...t.referenceRecord,...a}})};const D={evaluateRules:evaluateRules,evaluateTreeRule:evaluateTreeRule};const resolveEndpoint=(e,t)=>{const{endpointParams:n,logger:o}=t;const{parameters:i,rules:a}=e;t.logger?.debug?.(`${m} Initial EndpointParams: ${toDebugString(n)}`);const d=Object.entries(i).filter((([,e])=>e.default!=null)).map((([e,t])=>[e,t.default]));if(d.length>0){for(const[e,t]of d){n[e]=n[e]??t}}const h=Object.entries(i).filter((([,e])=>e.required)).map((([e])=>e));for(const e of h){if(n[e]==null){throw new EndpointError(`Missing required parameter: '${e}'`)}}const f=evaluateRules(a,{endpointParams:n,logger:o,referenceRecord:{}});t.logger?.debug?.(`${m} Resolved endpoint: ${toDebugString(f)}`);return f};t.EndpointCache=EndpointCache;t.EndpointError=EndpointError;t.customEndpointFunctions=d;t.isIpAddress=isIpAddress;t.isValidHostLabel=isValidHostLabel;t.resolveEndpoint=resolveEndpoint},6435:(e,t)=>{const n={};const o={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();if(t.length===1){t=`0${t}`}n[e]=t;o[t]=e}function fromHex(e){if(e.length%2!==0){throw new Error("Hex encoded strings must have an even number length")}const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const i=e.slice(n,n+2).toLowerCase();if(i in o){t[n/2]=o[i]}else{throw new Error(`Cannot decode unrecognized sequence ${i} as hexadecimal`)}}return t}function toHex(e){let t="";for(let o=0;o<e.byteLength;o++){t+=n[e[o]]}return t}t.fromHex=fromHex;t.toHex=toHex},6324:(e,t,n)=>{var o=n(690);const getSmithyContext=e=>e[o.SMITHY_CONTEXT_KEY]||(e[o.SMITHY_CONTEXT_KEY]={});const normalizeProvider=e=>{if(typeof e==="function")return e;const t=Promise.resolve(e);return()=>t};t.getSmithyContext=getSmithyContext;t.normalizeProvider=normalizeProvider},5518:(e,t,n)=>{var o=n(2058);t.RETRY_MODES=void 0;(function(e){e["STANDARD"]="standard";e["ADAPTIVE"]="adaptive"})(t.RETRY_MODES||(t.RETRY_MODES={}));const i=3;const a=t.RETRY_MODES.STANDARD;class DefaultRateLimiter{static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=false;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(e){this.beta=e?.beta??.7;this.minCapacity=e?.minCapacity??1;this.minFillRate=e?.minFillRate??.5;this.scaleConstant=e?.scaleConstant??.4;this.smooth=e?.smooth??.8;const t=this.getCurrentTimeInSeconds();this.lastThrottleTime=t;this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds());this.fillRate=this.minFillRate;this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(e){if(!this.enabled){return}this.refillTokenBucket();if(e>this.availableTokens){const t=(e-this.availableTokens)/this.fillRate*1e3;await new Promise((e=>DefaultRateLimiter.setTimeoutFn(e,t)))}this.availableTokens=this.availableTokens-e}refillTokenBucket(){const e=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=e;return}const t=(e-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+t);this.lastTimestamp=e}updateClientSendingRate(e){let t;this.updateMeasuredRate();const n=e;const i=n?.errorType==="THROTTLING"||o.isThrottlingError(n?.error??e);if(i){const e=!this.enabled?this.measuredTxRate:Math.min(this.measuredTxRate,this.fillRate);this.lastMaxRate=e;this.calculateTimeWindow();this.lastThrottleTime=this.getCurrentTimeInSeconds();t=this.cubicThrottle(e);this.enableTokenBucket()}else{this.calculateTimeWindow();t=this.cubicSuccess(this.getCurrentTimeInSeconds())}const a=Math.min(t,2*this.measuredTxRate);this.updateTokenBucketRate(a)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(e){return this.getPrecise(e*this.beta)}cubicSuccess(e){return this.getPrecise(this.scaleConstant*Math.pow(e-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=true}updateTokenBucketRate(e){this.refillTokenBucket();this.fillRate=Math.max(e,this.minFillRate);this.maxCapacity=Math.max(e,this.minCapacity);this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){const e=this.getCurrentTimeInSeconds();const t=Math.floor(e*2)/2;this.requestCount++;if(t>this.lastTxRateBucket){const e=this.requestCount/(t-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(e*this.smooth+this.measuredTxRate*(1-this.smooth));this.requestCount=0;this.lastTxRateBucket=t}}getPrecise(e){return parseFloat(e.toFixed(8))}}const d=100;const m=20*1e3;const h=500;const f=500;const C=5;const P=10;const D=1;const k="amz-sdk-invocation-id";const L="amz-sdk-request";const getDefaultRetryBackoffStrategy=()=>{let e=d;const computeNextBackoffDelay=t=>Math.floor(Math.min(m,Math.random()*2**t*e));const setDelayBase=t=>{e=t};return{computeNextBackoffDelay:computeNextBackoffDelay,setDelayBase:setDelayBase}};const createDefaultRetryToken=({retryDelay:e,retryCount:t,retryCost:n})=>{const getRetryCount=()=>t;const getRetryDelay=()=>Math.min(m,e);const getRetryCost=()=>n;return{getRetryCount:getRetryCount,getRetryDelay:getRetryDelay,getRetryCost:getRetryCost}};class StandardRetryStrategy{maxAttempts;mode=t.RETRY_MODES.STANDARD;capacity=f;retryBackoffStrategy=getDefaultRetryBackoffStrategy();maxAttemptsProvider;constructor(e){this.maxAttempts=e;this.maxAttemptsProvider=typeof e==="function"?e:async()=>e}async acquireInitialRetryToken(e){return createDefaultRetryToken({retryDelay:d,retryCount:0})}async refreshRetryTokenForRetry(e,t){const n=await this.getMaxAttempts();if(this.shouldRetry(e,t,n)){const n=t.errorType;this.retryBackoffStrategy.setDelayBase(n==="THROTTLING"?h:d);const o=this.retryBackoffStrategy.computeNextBackoffDelay(e.getRetryCount());const i=t.retryAfterHint?Math.max(t.retryAfterHint.getTime()-Date.now()||0,o):o;const a=this.getCapacityCost(n);this.capacity-=a;return createDefaultRetryToken({retryDelay:i,retryCount:e.getRetryCount()+1,retryCost:a})}throw new Error("No retry token available")}recordSuccess(e){this.capacity=Math.max(f,this.capacity+(e.getRetryCost()??D))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch(e){console.warn(`Max attempts provider could not resolve. Using default of ${i}`);return i}}shouldRetry(e,t,n){const o=e.getRetryCount()+1;return o<n&&this.capacity>=this.getCapacityCost(t.errorType)&&this.isRetryableError(t.errorType)}getCapacityCost(e){return e==="TRANSIENT"?P:C}isRetryableError(e){return e==="THROTTLING"||e==="TRANSIENT"}}class AdaptiveRetryStrategy{maxAttemptsProvider;rateLimiter;standardRetryStrategy;mode=t.RETRY_MODES.ADAPTIVE;constructor(e,t){this.maxAttemptsProvider=e;const{rateLimiter:n}=t??{};this.rateLimiter=n??new DefaultRateLimiter;this.standardRetryStrategy=new StandardRetryStrategy(e)}async acquireInitialRetryToken(e){await this.rateLimiter.getSendToken();return this.standardRetryStrategy.acquireInitialRetryToken(e)}async refreshRetryTokenForRetry(e,t){this.rateLimiter.updateClientSendingRate(t);return this.standardRetryStrategy.refreshRetryTokenForRetry(e,t)}recordSuccess(e){this.rateLimiter.updateClientSendingRate({});this.standardRetryStrategy.recordSuccess(e)}}class ConfiguredRetryStrategy extends StandardRetryStrategy{computeNextBackoffDelay;constructor(e,t=d){super(typeof e==="function"?e:async()=>e);if(typeof t==="number"){this.computeNextBackoffDelay=()=>t}else{this.computeNextBackoffDelay=t}}async refreshRetryTokenForRetry(e,t){const n=await super.refreshRetryTokenForRetry(e,t);n.getRetryDelay=()=>this.computeNextBackoffDelay(n.getRetryCount());return n}}t.AdaptiveRetryStrategy=AdaptiveRetryStrategy;t.ConfiguredRetryStrategy=ConfiguredRetryStrategy;t.DEFAULT_MAX_ATTEMPTS=i;t.DEFAULT_RETRY_DELAY_BASE=d;t.DEFAULT_RETRY_MODE=a;t.DefaultRateLimiter=DefaultRateLimiter;t.INITIAL_RETRY_TOKENS=f;t.INVOCATION_ID_HEADER=k;t.MAXIMUM_RETRY_DELAY=m;t.NO_RETRY_INCREMENT=D;t.REQUEST_HEADER=L;t.RETRY_COST=C;t.StandardRetryStrategy=StandardRetryStrategy;t.THROTTLING_RETRY_DELAY_BASE=h;t.TIMEOUT_RETRY_COST=P},1732:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ByteArrayCollector=void 0;class ByteArrayCollector{allocByteArray;byteLength=0;byteArrays=[];constructor(e){this.allocByteArray=e}push(e){this.byteArrays.push(e);this.byteLength+=e.byteLength}flush(){if(this.byteArrays.length===1){const e=this.byteArrays[0];this.reset();return e}const e=this.allocByteArray(this.byteLength);let t=0;for(let n=0;n<this.byteArrays.length;++n){const o=this.byteArrays[n];e.set(o,t);t+=o.byteLength}this.reset();return e}reset(){this.byteArrays=[];this.byteLength=0}}t.ByteArrayCollector=ByteArrayCollector},7753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const n=typeof ReadableStream==="function"?ReadableStream:function(){};class ChecksumStream extends n{}t.ChecksumStream=ChecksumStream},1775:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.ChecksumStream=void 0;const o=n(8385);const i=n(2203);class ChecksumStream extends i.Duplex{expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:i,base64Encoder:a}){super();if(typeof n.pipe==="function"){this.source=n}else{throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}this.base64Encoder=a??o.toBase64;this.expectedChecksum=e;this.checksum=t;this.checksumSourceLocation=i;this.source.pipe(this)}_read(e){if(this.pendingCallback){const e=this.pendingCallback;this.pendingCallback=null;e()}}_write(e,t,n){try{this.checksum.update(e);const t=this.push(e);if(!t){this.pendingCallback=n;return}}catch(e){return n(e)}return n()}async _final(e){try{const t=await this.checksum.digest();const n=this.base64Encoder(t);if(this.expectedChecksum!==n){return e(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${n}"`+` in response header "${this.checksumSourceLocation}".`))}}catch(t){return e(t)}this.push(null);return e()}}t.ChecksumStream=ChecksumStream},4129:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=void 0;const o=n(8385);const i=n(4414);const a=n(7753);const createChecksumStream=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:d,base64Encoder:m})=>{if(!(0,i.isReadableStream)(n)){throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`)}const h=m??o.toBase64;if(typeof TransformStream!=="function"){throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.")}const f=new TransformStream({start(){},async transform(e,n){t.update(e);n.enqueue(e)},async flush(n){const o=await t.digest();const i=h(o);if(e!==i){const t=new Error(`Checksum mismatch: expected "${e}" but received "${i}"`+` in response header "${d}".`);n.error(t)}else{n.terminate()}}});n.pipeThrough(f);const C=f.readable;Object.setPrototypeOf(C,a.ChecksumStream.prototype);return C};t.createChecksumStream=createChecksumStream},5639:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createChecksumStream=createChecksumStream;const o=n(4414);const i=n(1775);const a=n(4129);function createChecksumStream(e){if(typeof ReadableStream==="function"&&(0,o.isReadableStream)(e.source)){return(0,a.createChecksumStream)(e)}return new i.ChecksumStream(e)}},2005:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=createBufferedReadable;const o=n(7075);const i=n(1732);const a=n(8213);const d=n(4414);function createBufferedReadable(e,t,n){if((0,d.isReadableStream)(e)){return(0,a.createBufferedReadableStream)(e,t,n)}const m=new o.Readable({read(){}});let h=false;let f=0;const C=["",new i.ByteArrayCollector((e=>new Uint8Array(e))),new i.ByteArrayCollector((e=>Buffer.from(new Uint8Array(e))))];let P=-1;e.on("data",(e=>{const o=(0,a.modeOf)(e,true);if(P!==o){if(P>=0){m.push((0,a.flush)(C,P))}P=o}if(P===-1){m.push(e);return}const i=(0,a.sizeOf)(e);f+=i;const d=(0,a.sizeOf)(C[P]);if(i>=t&&d===0){m.push(e)}else{const o=(0,a.merge)(C,P,e);if(!h&&f>t*2){h=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){m.push((0,a.flush)(C,P))}}}));e.on("end",(()=>{if(P!==-1){const e=(0,a.flush)(C,P);if((0,a.sizeOf)(e)>0){m.push(e)}}m.push(null)}));return m}},8213:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.createBufferedReadable=void 0;t.createBufferedReadableStream=createBufferedReadableStream;t.merge=merge;t.flush=flush;t.sizeOf=sizeOf;t.modeOf=modeOf;const o=n(1732);function createBufferedReadableStream(e,t,n){const i=e.getReader();let a=false;let d=0;const m=["",new o.ByteArrayCollector((e=>new Uint8Array(e)))];let h=-1;const pull=async e=>{const{value:o,done:f}=await i.read();const C=o;if(f){if(h!==-1){const t=flush(m,h);if(sizeOf(t)>0){e.enqueue(t)}}e.close()}else{const o=modeOf(C,false);if(h!==o){if(h>=0){e.enqueue(flush(m,h))}h=o}if(h===-1){e.enqueue(C);return}const i=sizeOf(C);d+=i;const f=sizeOf(m[h]);if(i>=t&&f===0){e.enqueue(C)}else{const o=merge(m,h,C);if(!a&&d>t*2){a=true;n?.warn(`@smithy/util-stream - stream chunk size ${i} is below threshold of ${t}, automatically buffering.`)}if(o>=t){e.enqueue(flush(m,h))}else{await pull(e)}}}};return new ReadableStream({pull:pull})}t.createBufferedReadable=createBufferedReadableStream;function merge(e,t,n){switch(t){case 0:e[0]+=n;return sizeOf(e[0]);case 1:case 2:e[t].push(n);return sizeOf(e[t])}}function flush(e,t){switch(t){case 0:const n=e[0];e[0]="";return n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function sizeOf(e){return e?.byteLength??e?.length??0}function modeOf(e,t=true){if(t&&typeof Buffer!=="undefined"&&e instanceof Buffer){return 2}if(e instanceof Uint8Array){return 1}if(typeof e==="string"){return 0}return-1}},3492:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=void 0;const getAwsChunkedEncodingStream=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:o,checksumAlgorithmFn:i,checksumLocationName:a,streamHasher:d}=t;const m=n!==undefined&&o!==undefined&&i!==undefined&&a!==undefined&&d!==undefined;const h=m?d(i,e):undefined;const f=e.getReader();return new ReadableStream({async pull(e){const{value:t,done:i}=await f.read();if(i){e.enqueue(`0\r\n`);if(m){const t=n(await h);e.enqueue(`${a}:${t}\r\n`);e.enqueue(`\r\n`)}e.close()}else{e.enqueue(`${(o(t)||0).toString(16)}\r\n${t}\r\n`)}}})};t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream},6522:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.getAwsChunkedEncodingStream=getAwsChunkedEncodingStream;const o=n(7075);const i=n(3492);const a=n(4414);function getAwsChunkedEncodingStream(e,t){const n=e;const d=e;if((0,a.isReadableStream)(d)){return(0,i.getAwsChunkedEncodingStream)(d,t)}const{base64Encoder:m,bodyLengthChecker:h,checksumAlgorithmFn:f,checksumLocationName:C,streamHasher:P}=t;const D=m!==undefined&&f!==undefined&&C!==undefined&&P!==undefined;const k=D?P(f,n):undefined;const L=new o.Readable({read:()=>{}});n.on("data",(e=>{const t=h(e)||0;if(t===0){return}L.push(`${t.toString(16)}\r\n`);L.push(e);L.push("\r\n")}));n.on("end",(async()=>{L.push(`0\r\n`);if(D){const e=m(await k);L.push(`${C}:${e}\r\n`);L.push(`\r\n`)}L.push(null)}));return L}},66:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=headStream;async function headStream(e,t){let n=0;const o=[];const i=e.getReader();let a=false;while(!a){const{done:e,value:d}=await i.read();if(d){o.push(d);n+=d?.byteLength??0}if(n>=t){break}a=e}i.releaseLock();const d=new Uint8Array(Math.min(t,n));let m=0;for(const e of o){if(e.byteLength>d.byteLength-m){d.set(e.subarray(0,d.byteLength-m),m);break}else{d.set(e,m)}m+=e.length}return d}},8412:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.headStream=void 0;const o=n(2203);const i=n(66);const a=n(4414);const headStream=(e,t)=>{if((0,a.isReadableStream)(e)){return(0,i.headStream)(e,t)}return new Promise(((n,o)=>{const i=new Collector;i.limit=t;e.pipe(i);e.on("error",(e=>{i.end();o(e)}));i.on("error",o);i.on("finish",(function(){const e=new Uint8Array(Buffer.concat(this.buffers));n(e)}))}))};t.headStream=headStream;class Collector extends o.Writable{buffers=[];limit=Infinity;bytesBuffered=0;_write(e,t,n){this.buffers.push(e);this.bytesBuffered+=e.byteLength??0;if(this.bytesBuffered>=this.limit){const e=this.bytesBuffered-this.limit;const t=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=t.subarray(0,t.byteLength-e);this.emit("finish")}n()}}},4252:(e,t,n)=>{var o=n(8385);var i=n(1577);var a=n(1775);var d=n(5639);var m=n(2005);var h=n(6522);var f=n(8412);var C=n(7201);var P=n(2108);var D=n(4414);class Uint8ArrayBlobAdapter extends Uint8Array{static fromString(e,t="utf-8"){if(typeof e==="string"){if(t==="base64"){return Uint8ArrayBlobAdapter.mutate(o.fromBase64(e))}return Uint8ArrayBlobAdapter.mutate(i.fromUtf8(e))}throw new Error(`Unsupported conversion from ${typeof e} to Uint8ArrayBlobAdapter.`)}static mutate(e){Object.setPrototypeOf(e,Uint8ArrayBlobAdapter.prototype);return e}transformToString(e="utf-8"){if(e==="base64"){return o.toBase64(this)}return i.toUtf8(this)}}t.isBlob=D.isBlob;t.isReadableStream=D.isReadableStream;t.Uint8ArrayBlobAdapter=Uint8ArrayBlobAdapter;Object.prototype.hasOwnProperty.call(a,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:a["__proto__"]});Object.keys(a).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=a[e]}));Object.prototype.hasOwnProperty.call(d,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:d["__proto__"]});Object.keys(d).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=d[e]}));Object.prototype.hasOwnProperty.call(m,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:m["__proto__"]});Object.keys(m).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=m[e]}));Object.prototype.hasOwnProperty.call(h,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:h["__proto__"]});Object.keys(h).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=h[e]}));Object.prototype.hasOwnProperty.call(f,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:f["__proto__"]});Object.keys(f).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=f[e]}));Object.prototype.hasOwnProperty.call(C,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:C["__proto__"]});Object.keys(C).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=C[e]}));Object.prototype.hasOwnProperty.call(P,"__proto__")&&!Object.prototype.hasOwnProperty.call(t,"__proto__")&&Object.defineProperty(t,"__proto__",{enumerable:true,value:P["__proto__"]});Object.keys(P).forEach((function(e){if(e!=="default"&&!Object.prototype.hasOwnProperty.call(t,e))t[e]=P[e]}))},2207:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(7809);const i=n(8385);const a=n(6435);const d=n(1577);const m=n(4414);const h="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!isBlobInstance(e)&&!(0,m.isReadableStream)(e)){const t=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${t}`)}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(h)}t=true;return await(0,o.streamCollector)(e)};const blobToWebStream=e=>{if(typeof e.stream!=="function"){throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n"+"If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body")}return e.stream()};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e==="base64"){return(0,i.toBase64)(t)}else if(e==="hex"){return(0,a.toHex)(t)}else if(e===undefined||e==="utf8"||e==="utf-8"){return(0,d.toUtf8)(t)}else if(typeof TextDecoder==="function"){return new TextDecoder(e).decode(t)}else{throw new Error("TextDecoder is not available, please make sure polyfill is provided.")}},transformToWebStream:()=>{if(t){throw new Error(h)}t=true;if(isBlobInstance(e)){return blobToWebStream(e)}else if((0,m.isReadableStream)(e)){return e}else{throw new Error(`Cannot transform payload to web stream, got ${e}`)}}})};t.sdkStreamMixin=sdkStreamMixin;const isBlobInstance=e=>typeof Blob==="function"&&e instanceof Blob},7201:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.sdkStreamMixin=void 0;const o=n(1279);const i=n(4151);const a=n(2203);const d=n(2207);const m="The stream has already been transformed.";const sdkStreamMixin=e=>{if(!(e instanceof a.Readable)){try{return(0,d.sdkStreamMixin)(e)}catch(t){const n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}}let t=false;const transformToByteArray=async()=>{if(t){throw new Error(m)}t=true;return await(0,o.streamCollector)(e)};return Object.assign(e,{transformToByteArray:transformToByteArray,transformToString:async e=>{const t=await transformToByteArray();if(e===undefined||Buffer.isEncoding(e)){return(0,i.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString(e)}else{const n=new TextDecoder(e);return n.decode(t)}},transformToWebStream:()=>{if(t){throw new Error(m)}if(e.readableFlowing!==null){throw new Error("The stream has been consumed by other callbacks.")}if(typeof a.Readable.toWeb!=="function"){throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.")}t=true;return a.Readable.toWeb(e)}})};t.sdkStreamMixin=sdkStreamMixin},7570:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;async function splitStream(e){if(typeof e.stream==="function"){e=e.stream()}const t=e;return t.tee()}},2108:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.splitStream=splitStream;const o=n(2203);const i=n(7570);const a=n(4414);async function splitStream(e){if((0,a.isReadableStream)(e)||(0,a.isBlob)(e)){return(0,i.splitStream)(e)}const t=new o.PassThrough;const n=new o.PassThrough;e.pipe(t);e.pipe(n);return[t,n]}},4414:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.isBlob=t.isReadableStream=void 0;const isReadableStream=e=>typeof ReadableStream==="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream);t.isReadableStream=isReadableStream;const isBlob=e=>typeof Blob==="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob);t.isBlob=isBlob},146:(e,t)=>{const escapeUri=e=>encodeURIComponent(e).replace(/[!'()*]/g,hexEncode);const hexEncode=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;const escapeUriPath=e=>e.split("/").map(escapeUri).join("/");t.escapeUri=escapeUri;t.escapeUriPath=escapeUriPath},1577:(e,t,n)=>{var o=n(4151);const fromUtf8=e=>{const t=o.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};const toUint8Array=e=>{if(typeof e==="string"){return fromUtf8(e)}if(ArrayBuffer.isView(e)){return new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT)}return new Uint8Array(e)};const toUtf8=e=>{if(typeof e==="string"){return e}if(typeof e!=="object"||typeof e.byteOffset!=="number"||typeof e.byteLength!=="number"){throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.")}return o.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")};t.fromUtf8=fromUtf8;t.toUint8Array=toUint8Array;t.toUtf8=toUtf8},5290:(e,t)=>{const getCircularReplacer=()=>{const e=new WeakSet;return(t,n)=>{if(typeof n==="object"&&n!==null){if(e.has(n)){return"[Circular]"}e.add(n)}return n}};const sleep=e=>new Promise((t=>setTimeout(t,e*1e3)));const n={minDelay:2,maxDelay:120};t.WaiterState=void 0;(function(e){e["ABORTED"]="ABORTED";e["FAILURE"]="FAILURE";e["SUCCESS"]="SUCCESS";e["RETRY"]="RETRY";e["TIMEOUT"]="TIMEOUT"})(t.WaiterState||(t.WaiterState={}));const checkExceptions=e=>{if(e.state===t.WaiterState.ABORTED){const t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},getCircularReplacer())}`);t.name="AbortError";throw t}else if(e.state===t.WaiterState.TIMEOUT){const t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},getCircularReplacer())}`);t.name="TimeoutError";throw t}else if(e.state!==t.WaiterState.SUCCESS){throw new Error(`${JSON.stringify(e,getCircularReplacer())}`)}return e};const exponentialBackoffWithJitter=(e,t,n,o)=>{if(o>n)return t;const i=e*2**(o-1);return randomInRange(e,i)};const randomInRange=(e,t)=>e+Math.random()*(t-e);const runPolling=async({minDelay:e,maxDelay:n,maxWaitTime:o,abortController:i,client:a,abortSignal:d},m,h)=>{const f={};const{state:C,reason:P}=await h(a,m);if(P){const e=createMessageFromResponse(P);f[e]|=0;f[e]+=1}if(C!==t.WaiterState.RETRY){return{state:C,reason:P,observedResponses:f}}let D=1;const k=Date.now()+o*1e3;const L=Math.log(n/e)/Math.log(2)+1;while(true){if(i?.signal?.aborted||d?.aborted){const e="AbortController signal aborted.";f[e]|=0;f[e]+=1;return{state:t.WaiterState.ABORTED,observedResponses:f}}const o=exponentialBackoffWithJitter(e,n,L,D);if(Date.now()+o*1e3>k){return{state:t.WaiterState.TIMEOUT,observedResponses:f}}await sleep(o);const{state:C,reason:P}=await h(a,m);if(P){const e=createMessageFromResponse(P);f[e]|=0;f[e]+=1}if(C!==t.WaiterState.RETRY){return{state:C,reason:P,observedResponses:f}}D+=1}};const createMessageFromResponse=e=>{if(e?.$responseBodyText){return`Deserialization error for body: ${e.$responseBodyText}`}if(e?.$metadata?.httpStatusCode){if(e.$response||e.message){return`${e.$response?.statusCode??e.$metadata.httpStatusCode??"Unknown"}: ${e.message}`}return`${e.$metadata.httpStatusCode}: OK`}return String(e?.message??JSON.stringify(e,getCircularReplacer())??"Unknown")};const validateWaiterOptions=e=>{if(e.maxWaitTime<=0){throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`)}else if(e.minDelay<=0){throw new Error(`WaiterConfiguration.minDelay must be greater than 0`)}else if(e.maxDelay<=0){throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`)}else if(e.maxWaitTime<=e.minDelay){throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}else if(e.maxDelay<e.minDelay){throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)}};const abortTimeout=e=>{let n;const o=new Promise((o=>{n=()=>o({state:t.WaiterState.ABORTED});if(typeof e.addEventListener==="function"){e.addEventListener("abort",n)}else{e.onabort=n}}));return{clearListener(){if(typeof e.removeEventListener==="function"){e.removeEventListener("abort",n)}},aborted:o}};const createWaiter=async(e,t,o)=>{const i={...n,...e};validateWaiterOptions(i);const a=[runPolling(i,t,o)];const d=[];if(e.abortSignal){const{aborted:t,clearListener:n}=abortTimeout(e.abortSignal);d.push(n);a.push(t)}if(e.abortController?.signal){const{aborted:t,clearListener:n}=abortTimeout(e.abortController.signal);d.push(n);a.push(t)}return Promise.race(a).then((e=>{for(const e of d){e()}return e}))};t.checkExceptions=checkExceptions;t.createWaiter=createWaiter;t.waiterServiceDefaults=n},266:(e,t,n)=>{var o=n(8492);const i=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));const v4=()=>{if(o.randomUUID){return o.randomUUID()}const e=new Uint8Array(16);crypto.getRandomValues(e);e[6]=e[6]&15|64;e[8]=e[8]&63|128;return i[e[0]]+i[e[1]]+i[e[2]]+i[e[3]]+"-"+i[e[4]]+i[e[5]]+"-"+i[e[6]]+i[e[7]]+"-"+i[e[8]]+i[e[9]]+"-"+i[e[10]]+i[e[11]]+i[e[12]]+i[e[13]]+i[e[14]]+i[e[15]]};t.v4=v4},8492:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.randomUUID=void 0;const o=n(1860);const i=o.__importDefault(n(6982));t.randomUUID=i.default.randomUUID.bind(i.default)},7969:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpProxyAgent=void 0;const m=a(n(9278));const h=a(n(4756));const f=d(n(2830));const C=n(4434);const P=n(8894);const D=n(7016);const k=(0,f.default)("http-proxy-agent");class HttpProxyAgent extends P.Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};k("Creating new HttpProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?omit(t,"headers"):null,host:n,port:o}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:n}=this;const o=t.secureEndpoint?"https:":"http:";const i=e.getHeader("host")||"localhost";const a=`${o}//${i}`;const d=new D.URL(e.path,a);if(t.port!==80){d.port=String(t.port)}e.path=String(d);const m=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;m["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!m["Proxy-Connection"]){m["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(m)){const n=m[t];if(n){e.setHeader(t,n)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let n;let o;k("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){k("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);k("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){k("Creating `tls.Socket`: %o",this.connectOpts);i=h.connect(this.connectOpts)}else{k("Creating `net.Socket`: %o",this.connectOpts);i=m.connect(this.connectOpts)}await(0,C.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];t.HttpProxyAgent=HttpProxyAgent;function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},5588:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HttpsProxyAgent=void 0;const m=a(n(9278));const h=a(n(4756));const f=d(n(2613));const C=d(n(2830));const P=n(3495);const D=n(7016);const k=n(1632);const L=(0,C.default)("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!m.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends P.Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new D.URL(e):e;this.proxyHeaders=t?.headers??{};L("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){L("Creating `tls.Socket`: %o",this.connectOpts);o=h.connect(setServernameFromNonIpHost(this.connectOpts))}else{L("Creating `net.Socket`: %o",this.connectOpts);o=m.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const a=m.isIPv6(t.host)?`[${t.host}]`:t.host;let d=`CONNECT ${a}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${a}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){d+=`${e}: ${i[e]}\r\n`}const C=(0,k.parseProxyResponse)(o);o.write(`${d}\r\n`);const{connect:P,buffered:D}=await C;e.emit("proxyConnect",P);this.emit("proxyConnect",P,e);if(P.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){L("Upgrading socket connection to TLS");return h.connect({...omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const F=new m.Socket({writable:false});F.readable=true;e.once("socket",(e=>{L("Replaying proxy buffer for failed request");(0,f.default)(e.listenerCount("data")>0);e.push(D);e.push(null)}));return F}}HttpsProxyAgent.protocols=["http","https"];t.HttpsProxyAgent=HttpsProxyAgent;function resume(e){e.resume()}function omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}},1632:function(e,t,n){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseProxyResponse=void 0;const i=o(n(2830));const a=(0,i.default)("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();a("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();a("onerror %o",e);n(e)}function ondata(d){i.push(d);o+=d.length;const m=Buffer.concat(i,o);const h=m.indexOf("\r\n\r\n");if(h===-1){a("have not received end of HTTP headers yet...");read();return}const f=m.slice(0,h).toString("ascii").split("\r\n");const C=f.shift();if(!C){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const P=C.split(" ");const D=+P[1];const k=P.slice(2).join(" ");const L={};for(const t of f){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const a=t.slice(o+1).trimStart();const d=L[i];if(typeof d==="string"){L[i]=[d,a]}else if(Array.isArray(d)){d.push(a)}else{L[i]=a}}a("got proxy server response: %o %o",C,L);cleanup();t({connect:{statusCode:D,statusText:k,headers:L},buffered:m})}e.on("error",onerror);e.on("end",onend);read()}))}t.parseProxyResponse=parseProxyResponse},102:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=a(n(8611));const m=a(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?m:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},3495:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const m=a(n(9278));const h=a(n(8611));const f=n(5692);d(n(102),t);const C=Symbol("AgentBaseInternalState");class Agent extends h.Agent{constructor(e){super(e);this[C]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new m.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=typeof e.secureEndpoint==="boolean"?e.secureEndpoint:this.isSecureEndpoint(e);if(t){return f.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const a=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,a);if(d instanceof h.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[C].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,a);n(e)}))}createConnection(){const e=this[C].currentSocket;this[C].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[C].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[C]){this[C].defaultPort=e}}get protocol(){return this[C].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[C]){this[C].protocol=e}}}t.Agent=Agent},5183:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.req=t.json=t.toBuffer=void 0;const d=a(n(8611));const m=a(n(5692));async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}t.toBuffer=toBuffer;async function json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}t.json=json;function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?m:d).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}t.req=req},8894:function(e,t,n){var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))o(t,e,n);i(t,e);return t};var d=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))o(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.Agent=void 0;const m=a(n(8611));d(n(5183),t);const h=Symbol("AgentBaseInternalState");class Agent extends m.Agent{constructor(e){super(e);this[h]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};Promise.resolve().then((()=>this.connect(e,o))).then((i=>{if(i instanceof m.Agent){return i.addRequest(e,o)}this[h].currentSocket=i;super.createSocket(e,t,n)}),n)}createConnection(){const e=this[h].currentSocket;this[h].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[h].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[h]){this[h].defaultPort=e}}get protocol(){return this[h].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[h]){this[h].protocol=e}}}t.Agent=Agent},9380:e=>{e.exports=balanced;function balanced(e,t,n){if(e instanceof RegExp)e=maybeMatch(e,n);if(t instanceof RegExp)t=maybeMatch(t,n);var o=range(e,t,n);return o&&{start:o[0],end:o[1],pre:n.slice(0,o[0]),body:n.slice(o[0]+e.length,o[1]),post:n.slice(o[1]+t.length)}}function maybeMatch(e,t){var n=t.match(e);return n?n[0]:null}balanced.range=range;function range(e,t,n){var o,i,a,d,m;var h=n.indexOf(e);var f=n.indexOf(t,h+1);var C=h;if(h>=0&&f>0){if(e===t){return[h,f]}o=[];a=n.length;while(C>=0&&!m){if(C==h){o.push(C);h=n.indexOf(e,C+1)}else if(o.length==1){m=[o.pop(),f]}else{i=o.pop();if(i<a){a=i;d=f}f=n.indexOf(t,C+1)}C=h<f&&h>=0?h:f}if(o.length){m=[a,d]}}return m}},7087:e=>{e.exports=function(e,n){var o=[];for(var i=0;i<e.length;i++){var a=n(e[i],i);if(t(a))o.push.apply(o,a);else o.push(a)}return o};var t=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"}},6110:(e,t,n)=>{t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.storage=localstorage();t.destroy=(()=>{let e=false;return()=>{if(!e){e=true;console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}}})();t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function useColors(){if(typeof window!=="undefined"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs)){return true}if(typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)){return false}return typeof document!=="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!=="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let o=0;let i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{if(e==="%%"){return}o++;if(e==="%c"){i=o}}));t.splice(i,0,n)}t.log=console.debug||console.log||(()=>{});function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=n(897)(t);const{formatters:o}=e.exports;o.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},897:(e,t,n)=>{function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=n(744);createDebug.destroy=destroy;Object.keys(e).forEach((t=>{createDebug[t]=e[t]}));createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let n=0;n<e.length;n++){t=(t<<5)-t+e.charCodeAt(n);t|=0}return createDebug.colors[Math.abs(t)%createDebug.colors.length]}createDebug.selectColor=selectColor;function createDebug(e){let t;let n=null;let o;let i;function debug(...e){if(!debug.enabled){return}const n=debug;const o=Number(new Date);const i=o-(t||o);n.diff=i;n.prev=t;n.curr=o;t=o;e[0]=createDebug.coerce(e[0]);if(typeof e[0]!=="string"){e.unshift("%O")}let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((t,o)=>{if(t==="%%"){return"%"}a++;const i=createDebug.formatters[o];if(typeof i==="function"){const o=e[a];t=i.call(n,o);e.splice(a,1);a--}return t}));createDebug.formatArgs.call(n,e);const d=n.log||createDebug.log;d.apply(n,e)}debug.namespace=e;debug.useColors=createDebug.useColors();debug.color=createDebug.selectColor(e);debug.extend=extend;debug.destroy=createDebug.destroy;Object.defineProperty(debug,"enabled",{enumerable:true,configurable:false,get:()=>{if(n!==null){return n}if(o!==createDebug.namespaces){o=createDebug.namespaces;i=createDebug.enabled(e)}return i},set:e=>{n=e}});if(typeof createDebug.init==="function"){createDebug.init(debug)}return debug}function extend(e,t){const n=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);n.log=this.log;return n}function enable(e){createDebug.save(e);createDebug.namespaces=e;createDebug.names=[];createDebug.skips=[];let t;const n=(typeof e==="string"?e:"").split(/[\s,]+/);const o=n.length;for(t=0;t<o;t++){if(!n[t]){continue}e=n[t].replace(/\*/g,".*?");if(e[0]==="-"){createDebug.skips.push(new RegExp("^"+e.slice(1)+"$"))}else{createDebug.names.push(new RegExp("^"+e+"$"))}}}function disable(){const e=[...createDebug.names.map(toNamespace),...createDebug.skips.map(toNamespace).map((e=>"-"+e))].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let n;for(t=0,n=createDebug.skips.length;t<n;t++){if(createDebug.skips[t].test(e)){return false}}for(t=0,n=createDebug.names.length;t<n;t++){if(createDebug.names[t].test(e)){return true}}return false}function toNamespace(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}function coerce(e){if(e instanceof Error){return e.stack||e.message}return e}function destroy(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}createDebug.enable(createDebug.load());return createDebug}e.exports=setup},2830:(e,t,n)=>{if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=n(6110)}else{e.exports=n(5108)}},5108:(e,t,n)=>{const o=n(2018);const i=n(9023);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");t.colors=[6,2,3,4,5,1];try{const e=n(1450);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let o=process.env[t];if(/^(yes|on|true|enabled)$/i.test(o)){o=true}else if(/^(no|off|false|disabled)$/i.test(o)){o=false}else if(o==="null"){o=null}else{o=Number(o)}e[n]=o;return e}),{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):o.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:n,useColors:o}=this;if(o){const o=this.color;const i="[3"+(o<8?o:"8;5;"+o);const a=` ${i};1m${n} [0m`;t[0]=a+t[0].split("\n").join("\n"+a);t.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else{t[0]=getDate()+n+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(i.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let o=0;o<n.length;o++){e.inspectOpts[n[o]]=t.inspectOpts[n[o]]}}e.exports=n(897)(t);const{formatters:a}=e.exports;a.o=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")};a.O=function(e){this.inspectOpts.colors=this.useColors;return i.inspect(e,this.inspectOpts)}},3813:e=>{e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":e.length===1?"-":"--";const o=t.indexOf(n+e);const i=t.indexOf("--");return o!==-1&&(i===-1||o<i)}},3772:(e,t,n)=>{e.exports=minimatch;minimatch.Minimatch=Minimatch;var o=function(){try{return n(6928)}catch(e){}}()||{sep:"/"};minimatch.sep=o.sep;var i=minimatch.GLOBSTAR=Minimatch.GLOBSTAR={};var a=n(3783);var d={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}};var m="[^/]";var h=m+"*?";var f="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?";var C="(?:(?!(?:\\/|^)\\.).)*?";var P=charSet("().*{}+?[]^$\\!");function charSet(e){return e.split("").reduce((function(e,t){e[t]=true;return e}),{})}var D=/\/+/;minimatch.filter=filter;function filter(e,t){t=t||{};return function(n,o,i){return minimatch(n,e,t)}}function ext(e,t){t=t||{};var n={};Object.keys(e).forEach((function(t){n[t]=e[t]}));Object.keys(t).forEach((function(e){n[e]=t[e]}));return n}minimatch.defaults=function(e){if(!e||typeof e!=="object"||!Object.keys(e).length){return minimatch}var t=minimatch;var n=function minimatch(n,o,i){return t(n,o,ext(e,i))};n.Minimatch=function Minimatch(n,o){return new t.Minimatch(n,ext(e,o))};n.Minimatch.defaults=function defaults(n){return t.defaults(ext(e,n)).Minimatch};n.filter=function filter(n,o){return t.filter(n,ext(e,o))};n.defaults=function defaults(n){return t.defaults(ext(e,n))};n.makeRe=function makeRe(n,o){return t.makeRe(n,ext(e,o))};n.braceExpand=function braceExpand(n,o){return t.braceExpand(n,ext(e,o))};n.match=function(n,o,i){return t.match(n,o,ext(e,i))};return n};Minimatch.defaults=function(e){return minimatch.defaults(e).Minimatch};function minimatch(e,t,n){assertValidPattern(t);if(!n)n={};if(!n.nocomment&&t.charAt(0)==="#"){return false}return new Minimatch(t,n).match(e)}function Minimatch(e,t){if(!(this instanceof Minimatch)){return new Minimatch(e,t)}assertValidPattern(e);if(!t)t={};e=e.trim();if(!t.allowWindowsEscape&&o.sep!=="/"){e=e.split(o.sep).join("/")}this.options=t;this.maxGlobstarRecursion=t.maxGlobstarRecursion!==undefined?t.maxGlobstarRecursion:200;this.set=[];this.pattern=e;this.regexp=null;this.negate=false;this.comment=false;this.empty=false;this.partial=!!t.partial;this.make()}Minimatch.prototype.debug=function(){};Minimatch.prototype.make=make;function make(){var e=this.pattern;var t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=true;return}if(!e){this.empty=true;return}this.parseNegate();var n=this.globSet=this.braceExpand();if(t.debug)this.debug=function debug(){console.error.apply(console,arguments)};this.debug(this.pattern,n);n=this.globParts=n.map((function(e){return e.split(D)}));this.debug(this.pattern,n);n=n.map((function(e,t,n){return e.map(this.parse,this)}),this);this.debug(this.pattern,n);n=n.filter((function(e){return e.indexOf(false)===-1}));this.debug(this.pattern,n);this.set=n}Minimatch.prototype.parseNegate=parseNegate;function parseNegate(){var e=this.pattern;var t=false;var n=this.options;var o=0;if(n.nonegate)return;for(var i=0,a=e.length;i<a&&e.charAt(i)==="!";i++){t=!t;o++}if(o)this.pattern=e.substr(o);this.negate=t}minimatch.braceExpand=function(e,t){return braceExpand(e,t)};Minimatch.prototype.braceExpand=braceExpand;function braceExpand(e,t){if(!t){if(this instanceof Minimatch){t=this.options}else{t={}}}e=typeof e==="undefined"?this.pattern:e;assertValidPattern(e);if(t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)){return[e]}return a(e)}var k=1024*64;var assertValidPattern=function(e){if(typeof e!=="string"){throw new TypeError("invalid pattern")}if(e.length>k){throw new TypeError("pattern is too long")}};Minimatch.prototype.parse=parse;var L={};function parse(e,t){assertValidPattern(e);var n=this.options;if(e==="**"){if(!n.noglobstar)return i;else e="*"}if(e==="")return"";var o="";var a=!!n.nocase;var f=false;var C=[];var D=[];var k;var F=false;var q=-1;var V=-1;var ee=e.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var te=this;function clearStateChar(){if(k){switch(k){case"*":o+=h;a=true;break;case"?":o+=m;a=true;break;default:o+="\\"+k;break}te.debug("clearStateChar %j %j",k,o);k=false}}for(var re=0,ne=e.length,se;re<ne&&(se=e.charAt(re));re++){this.debug("%s\t%s %s %j",e,re,o,se);if(f&&P[se]){o+="\\"+se;f=false;continue}switch(se){case"/":{return false}case"\\":clearStateChar();f=true;continue;case"?":case"*":case"+":case"@":case"!":this.debug("%s\t%s %s %j <-- stateChar",e,re,o,se);if(F){this.debug(" in class");if(se==="!"&&re===V+1)se="^";o+=se;continue}if(se==="*"&&k==="*")continue;te.debug("call clearStateChar %j",k);clearStateChar();k=se;if(n.noext)clearStateChar();continue;case"(":if(F){o+="(";continue}if(!k){o+="\\(";continue}C.push({type:k,start:re-1,reStart:o.length,open:d[k].open,close:d[k].close});o+=k==="!"?"(?:(?!(?:":"(?:";this.debug("plType %j %j",k,o);k=false;continue;case")":if(F||!C.length){o+="\\)";continue}clearStateChar();a=true;var oe=C.pop();o+=oe.close;if(oe.type==="!"){D.push(oe)}oe.reEnd=o.length;continue;case"|":if(F||!C.length||f){o+="\\|";f=false;continue}clearStateChar();o+="|";continue;case"[":clearStateChar();if(F){o+="\\"+se;continue}F=true;V=re;q=o.length;o+=se;continue;case"]":if(re===V+1||!F){o+="\\"+se;f=false;continue}var ie=e.substring(V+1,re);try{RegExp("["+ie+"]")}catch(e){var ae=this.parse(ie,L);o=o.substr(0,q)+"\\["+ae[0]+"\\]";a=a||ae[1];F=false;continue}a=true;F=false;o+=se;continue;default:clearStateChar();if(f){f=false}else if(P[se]&&!(se==="^"&&F)){o+="\\"}o+=se}}if(F){ie=e.substr(V+1);ae=this.parse(ie,L);o=o.substr(0,q)+"\\["+ae[0];a=a||ae[1]}for(oe=C.pop();oe;oe=C.pop()){var ce=o.slice(oe.reStart+oe.open.length);this.debug("setting tail",o,oe);ce=ce.replace(/((?:\\{2}){0,64})(\\?)\|/g,(function(e,t,n){if(!n){n="\\"}return t+t+n+"|"}));this.debug("tail=%j\n %s",ce,ce,oe,o);var le=oe.type==="*"?h:oe.type==="?"?m:"\\"+oe.type;a=true;o=o.slice(0,oe.reStart)+le+"\\("+ce}clearStateChar();if(f){o+="\\\\"}var ue=false;switch(o.charAt(0)){case"[":case".":case"(":ue=true}for(var de=D.length-1;de>-1;de--){var pe=D[de];var Ae=o.slice(0,pe.reStart);var me=o.slice(pe.reStart,pe.reEnd-8);var ge=o.slice(pe.reEnd-8,pe.reEnd);var he=o.slice(pe.reEnd);ge+=he;var fe=Ae.split("(").length-1;var ye=he;for(re=0;re<fe;re++){ye=ye.replace(/\)[+*?]?/,"")}he=ye;var Ee="";if(he===""&&t!==L){Ee="$"}var Ce=Ae+me+he+Ee+ge;o=Ce}if(o!==""&&a){o="(?=.)"+o}if(ue){o=ee+o}if(t===L){return[o,a]}if(!a){return globUnescape(e)}var Ie=n.nocase?"i":"";try{var be=new RegExp("^"+o+"$",Ie)}catch(e){return new RegExp("$.")}be._glob=e;be._src=o;return be}minimatch.makeRe=function(e,t){return new Minimatch(e,t||{}).makeRe()};Minimatch.prototype.makeRe=makeRe;function makeRe(){if(this.regexp||this.regexp===false)return this.regexp;var e=this.set;if(!e.length){this.regexp=false;return this.regexp}var t=this.options;var n=t.noglobstar?h:t.dot?f:C;var o=t.nocase?"i":"";var a=e.map((function(e){return e.map((function(e){return e===i?n:typeof e==="string"?regExpEscape(e):e._src})).join("\\/")})).join("|");a="^(?:"+a+")$";if(this.negate)a="^(?!"+a+").*$";try{this.regexp=new RegExp(a,o)}catch(e){this.regexp=false}return this.regexp}minimatch.match=function(e,t,n){n=n||{};var o=new Minimatch(t,n);e=e.filter((function(e){return o.match(e)}));if(o.options.nonull&&!e.length){e.push(t)}return e};Minimatch.prototype.match=function match(e,t){if(typeof t==="undefined")t=this.partial;this.debug("match",e,this.pattern);if(this.comment)return false;if(this.empty)return e==="";if(e==="/"&&t)return true;var n=this.options;if(o.sep!=="/"){e=e.split(o.sep).join("/")}e=e.split(D);this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var a;var d;for(d=e.length-1;d>=0;d--){a=e[d];if(a)break}for(d=0;d<i.length;d++){var m=i[d];var h=e;if(n.matchBase&&m.length===1){h=[a]}var f=this.matchOne(h,m,t);if(f){if(n.flipNegate)return true;return!this.negate}}if(n.flipNegate)return false;return this.negate};Minimatch.prototype.matchOne=function(e,t,n){if(t.indexOf(i)!==-1){return this._matchGlobstar(e,t,n,0,0)}return this._matchOne(e,t,n,0,0)};Minimatch.prototype._matchGlobstar=function(e,t,n,o,a){var d;var m=-1;for(d=a;d<t.length;d++){if(t[d]===i){m=d;break}}var h=-1;for(d=t.length-1;d>=0;d--){if(t[d]===i){h=d;break}}var f=t.slice(a,m);var C=n?t.slice(m+1):t.slice(m+1,h);var P=n?[]:t.slice(h+1);if(f.length){var D=e.slice(o,o+f.length);if(!this._matchOne(D,f,n,0,0)){return false}o+=f.length}var k=0;if(P.length){if(P.length+o>e.length)return false;var L=e.length-P.length;if(this._matchOne(e,P,n,L,0)){k=P.length}else{if(e[e.length-1]!==""||o+P.length===e.length){return false}L--;if(!this._matchOne(e,P,n,L,0)){return false}k=P.length+1}}if(!C.length){var F=!!k;for(d=o;d<e.length-k;d++){var q=String(e[d]);F=true;if(q==="."||q===".."||!this.options.dot&&q.charAt(0)==="."){return false}}return n||F}var V=[[[],0]];var ee=V[0];var te=0;var re=[0];for(var ne=0;ne<C.length;ne++){var se=C[ne];if(se===i){re.push(te);ee=[[],0];V.push(ee)}else{ee[0].push(se);te++}}var oe=V.length-1;var ie=e.length-k;for(var ae=0;ae<V.length;ae++){V[ae][1]=ie-(re[oe--]+V[ae][0].length)}return!!this._matchGlobStarBodySections(e,V,o,0,n,0,!!k)};Minimatch.prototype._matchGlobStarBodySections=function(e,t,n,o,i,a,d){var m=t[o];if(!m){for(var h=n;h<e.length;h++){d=true;var f=e[h];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)==="."){return false}}return d}var C=m[0];var P=m[1];while(n<=P){var D=this._matchOne(e.slice(0,n+C.length),C,i,n,0);if(D&&a<this.maxGlobstarRecursion){var k=this._matchGlobStarBodySections(e,t,n+C.length,o+1,i,a+1,d);if(k!==false){return k}}var f=e[n];if(f==="."||f===".."||!this.options.dot&&f.charAt(0)==="."){return false}n++}return i||null};Minimatch.prototype._matchOne=function(e,t,n,o,a){var d,m,h,f;for(d=o,m=a,h=e.length,f=t.length;d<h&&m<f;d++,m++){this.debug("matchOne loop");var C=t[m];var P=e[d];this.debug(t,C,P);if(C===false||C===i)return false;var D;if(typeof C==="string"){D=P===C;this.debug("string match",C,P,D)}else{D=P.match(C);this.debug("pattern match",C,P,D)}if(!D)return false}if(d===h&&m===f){return true}else if(d===h){return n}else if(m===f){return d===h-1&&e[d]===""}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},3783:(e,t,n)=>{var o=n(7087);var i=n(9380);e.exports=expandTop;var a="\0SLASH"+Math.random()+"\0";var d="\0OPEN"+Math.random()+"\0";var m="\0CLOSE"+Math.random()+"\0";var h="\0COMMA"+Math.random()+"\0";var f="\0PERIOD"+Math.random()+"\0";function numeric(e){return parseInt(e,10)==e?parseInt(e,10):e.charCodeAt(0)}function escapeBraces(e){return e.split("\\\\").join(a).split("\\{").join(d).split("\\}").join(m).split("\\,").join(h).split("\\.").join(f)}function unescapeBraces(e){return e.split(a).join("\\").split(d).join("{").split(m).join("}").split(h).join(",").split(f).join(".")}function parseCommaParts(e){if(!e)return[""];var t=[];var n=i("{","}",e);if(!n)return e.split(",");var o=n.pre;var a=n.body;var d=n.post;var m=o.split(",");m[m.length-1]+="{"+a+"}";var h=parseCommaParts(d);if(d.length){m[m.length-1]+=h.shift();m.push.apply(m,h)}t.push.apply(t,m);return t}function expandTop(e){if(!e)return[];if(e.substr(0,2)==="{}"){e="\\{\\}"+e.substr(2)}return expand(escapeBraces(e),true).map(unescapeBraces)}function identity(e){return e}function embrace(e){return"{"+e+"}"}function isPadded(e){return/^-?0\d/.test(e)}function lte(e,t){return e<=t}function gte(e,t){return e>=t}function expand(e,t){var n=[];var a=i("{","}",e);if(!a||/\$$/.test(a.pre))return[e];var d=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(a.body);var h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(a.body);var f=d||h;var C=a.body.indexOf(",")>=0;if(!f&&!C){if(a.post.match(/,(?!,).*\}/)){e=a.pre+"{"+a.body+m+a.post;return expand(e)}return[e]}var P;if(f){P=a.body.split(/\.\./)}else{P=parseCommaParts(a.body);if(P.length===1){P=expand(P[0],false).map(embrace);if(P.length===1){var D=a.post.length?expand(a.post,false):[""];return D.map((function(e){return a.pre+P[0]+e}))}}}var k=a.pre;var D=a.post.length?expand(a.post,false):[""];var L;if(f){var F=numeric(P[0]);var q=numeric(P[1]);var V=Math.max(P[0].length,P[1].length);var ee=P.length==3?Math.max(Math.abs(numeric(P[2])),1):1;var te=lte;var re=q<F;if(re){ee*=-1;te=gte}var ne=P.some(isPadded);L=[];for(var se=F;te(se,q);se+=ee){var oe;if(h){oe=String.fromCharCode(se);if(oe==="\\")oe=""}else{oe=String(se);if(ne){var ie=V-oe.length;if(ie>0){var ae=new Array(ie+1).join("0");if(se<0)oe="-"+ae+oe.slice(1);else oe=ae+oe}}}L.push(oe)}}else{L=o(P,(function(e){return expand(e,false)}))}for(var ce=0;ce<L.length;ce++){for(var le=0;le<D.length;le++){var ue=k+L[ce]+D[le];if(!t||f||ue)n.push(ue)}}return n}},744:e=>{var t=1e3;var n=t*60;var o=n*60;var i=o*24;var a=i*7;var d=i*365.25;e.exports=function(e,t){t=t||{};var n=typeof e;if(n==="string"&&e.length>0){return parse(e)}else if(n==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var m=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!m){return}var h=parseFloat(m[1]);var f=(m[2]||"ms").toLowerCase();switch(f){case"years":case"year":case"yrs":case"yr":case"y":return h*d;case"weeks":case"week":case"w":return h*a;case"days":case"day":case"d":return h*i;case"hours":case"hour":case"hrs":case"hr":case"h":return h*o;case"minutes":case"minute":case"mins":case"min":case"m":return h*n;case"seconds":case"second":case"secs":case"sec":case"s":return h*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return undefined}}function fmtShort(e){var a=Math.abs(e);if(a>=i){return Math.round(e/i)+"d"}if(a>=o){return Math.round(e/o)+"h"}if(a>=n){return Math.round(e/n)+"m"}if(a>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var a=Math.abs(e);if(a>=i){return plural(e,a,i,"day")}if(a>=o){return plural(e,a,o,"hour")}if(a>=n){return plural(e,a,n,"minute")}if(a>=t){return plural(e,a,t,"second")}return e+" ms"}function plural(e,t,n,o){var i=t>=n*1.5;return Math.round(e/n)+" "+o+(i?"s":"")}},9379:(e,t,n)=>{const o=Symbol("SemVer ANY");class Comparator{static get ANY(){return o}constructor(e,t){t=i(t);if(e instanceof Comparator){if(e.loose===!!t.loose){return e}else{e=e.value}}e=e.trim().split(/\s+/).join(" ");h("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===o){this.value=""}else{this.value=this.operator+this.semver.version}h("comp",this)}parse(e){const t=this.options.loose?a[d.COMPARATORLOOSE]:a[d.COMPARATOR];const n=e.match(t);if(!n){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=n[1]!==undefined?n[1]:"";if(this.operator==="="){this.operator=""}if(!n[2]){this.semver=o}else{this.semver=new f(n[2],this.options.loose)}}toString(){return this.value}test(e){h("Comparator.test",e,this.options.loose);if(this.semver===o||e===o){return true}if(typeof e==="string"){try{e=new f(e,this.options)}catch(e){return false}}return m(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof Comparator)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new C(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new C(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(m(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(m(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=Comparator;const i=n(356);const{safeRe:a,t:d}=n(5471);const m=n(8646);const h=n(1159);const f=n(7163);const C=n(6782)},6782:(e,t,n)=>{const o=/\s+/g;class Range{constructor(e,t){t=d(t);if(e instanceof Range){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new Range(e.raw,t)}}if(e instanceof m){this.raw=e.value;this.set=[[e]];this.formatted=undefined;return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e.trim().replace(o," ");this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${this.raw}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!isNullSet(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&isAny(e[0])){this.set=[e];break}}}}this.formatted=undefined}get range(){if(this.formatted===undefined){this.formatted="";for(let e=0;e<this.set.length;e++){if(e>0){this.formatted+="||"}const t=this.set[e];for(let e=0;e<t.length;e++){if(e>0){this.formatted+=" "}this.formatted+=t[e].toString().trim()}}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){const t=(this.options.includePrerelease&&F)|(this.options.loose&&q);const n=t+":"+e;const o=a.get(n);if(o){return o}const i=this.options.loose;const d=i?C[P.HYPHENRANGELOOSE]:C[P.HYPHENRANGE];e=e.replace(d,hyphenReplace(this.options.includePrerelease));h("hyphen replace",e);e=e.replace(C[P.COMPARATORTRIM],D);h("comparator trim",e);e=e.replace(C[P.TILDETRIM],k);h("tilde trim",e);e=e.replace(C[P.CARETTRIM],L);h("caret trim",e);let f=e.split(" ").map((e=>parseComparator(e,this.options))).join(" ").split(/\s+/).map((e=>replaceGTE0(e,this.options)));if(i){f=f.filter((e=>{h("loose invalid filter",e,this.options);return!!e.match(C[P.COMPARATORLOOSE])}))}h("range list",f);const V=new Map;const ee=f.map((e=>new m(e,this.options)));for(const e of ee){if(isNullSet(e)){return[e]}V.set(e.value,e)}if(V.size>1&&V.has("")){V.delete("")}const te=[...V.values()];a.set(n,te);return te}intersects(e,t){if(!(e instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((n=>isSatisfiable(n,t)&&e.set.some((e=>isSatisfiable(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new f(e,this.options)}catch(e){return false}}for(let t=0;t<this.set.length;t++){if(testSet(this.set[t],e,this.options)){return true}}return false}}e.exports=Range;const i=n(1383);const a=new i;const d=n(356);const m=n(9379);const h=n(1159);const f=n(7163);const{safeRe:C,t:P,comparatorTrimReplace:D,tildeTrimReplace:k,caretTrimReplace:L}=n(5471);const{FLAG_INCLUDE_PRERELEASE:F,FLAG_LOOSE:q}=n(5101);const isNullSet=e=>e.value==="<0.0.0-0";const isAny=e=>e.value==="";const isSatisfiable=(e,t)=>{let n=true;const o=e.slice();let i=o.pop();while(n&&o.length){n=o.every((e=>i.intersects(e,t)));i=o.pop()}return n};const parseComparator=(e,t)=>{e=e.replace(C[P.BUILD],"");h("comp",e,t);e=replaceCarets(e,t);h("caret",e);e=replaceTildes(e,t);h("tildes",e);e=replaceXRanges(e,t);h("xrange",e);e=replaceStars(e,t);h("stars",e);return e};const isX=e=>!e||e.toLowerCase()==="x"||e==="*";const replaceTildes=(e,t)=>e.trim().split(/\s+/).map((e=>replaceTilde(e,t))).join(" ");const replaceTilde=(e,t)=>{const n=t.loose?C[P.TILDELOOSE]:C[P.TILDE];return e.replace(n,((t,n,o,i,a)=>{h("tilde",e,t,n,o,i,a);let d;if(isX(n)){d=""}else if(isX(o)){d=`>=${n}.0.0 <${+n+1}.0.0-0`}else if(isX(i)){d=`>=${n}.${o}.0 <${n}.${+o+1}.0-0`}else if(a){h("replaceTilde pr",a);d=`>=${n}.${o}.${i}-${a} <${n}.${+o+1}.0-0`}else{d=`>=${n}.${o}.${i} <${n}.${+o+1}.0-0`}h("tilde return",d);return d}))};const replaceCarets=(e,t)=>e.trim().split(/\s+/).map((e=>replaceCaret(e,t))).join(" ");const replaceCaret=(e,t)=>{h("caret",e,t);const n=t.loose?C[P.CARETLOOSE]:C[P.CARET];const o=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,a,d)=>{h("caret",e,t,n,i,a,d);let m;if(isX(n)){m=""}else if(isX(i)){m=`>=${n}.0.0${o} <${+n+1}.0.0-0`}else if(isX(a)){if(n==="0"){m=`>=${n}.${i}.0${o} <${n}.${+i+1}.0-0`}else{m=`>=${n}.${i}.0${o} <${+n+1}.0.0-0`}}else if(d){h("replaceCaret pr",d);if(n==="0"){if(i==="0"){m=`>=${n}.${i}.${a}-${d} <${n}.${i}.${+a+1}-0`}else{m=`>=${n}.${i}.${a}-${d} <${n}.${+i+1}.0-0`}}else{m=`>=${n}.${i}.${a}-${d} <${+n+1}.0.0-0`}}else{h("no pr");if(n==="0"){if(i==="0"){m=`>=${n}.${i}.${a}${o} <${n}.${i}.${+a+1}-0`}else{m=`>=${n}.${i}.${a}${o} <${n}.${+i+1}.0-0`}}else{m=`>=${n}.${i}.${a} <${+n+1}.0.0-0`}}h("caret return",m);return m}))};const replaceXRanges=(e,t)=>{h("replaceXRanges",e,t);return e.split(/\s+/).map((e=>replaceXRange(e,t))).join(" ")};const replaceXRange=(e,t)=>{e=e.trim();const n=t.loose?C[P.XRANGELOOSE]:C[P.XRANGE];return e.replace(n,((n,o,i,a,d,m)=>{h("xRange",e,n,o,i,a,d,m);const f=isX(i);const C=f||isX(a);const P=C||isX(d);const D=P;if(o==="="&&D){o=""}m=t.includePrerelease?"-0":"";if(f){if(o===">"||o==="<"){n="<0.0.0-0"}else{n="*"}}else if(o&&D){if(C){a=0}d=0;if(o===">"){o=">=";if(C){i=+i+1;a=0;d=0}else{a=+a+1;d=0}}else if(o==="<="){o="<";if(C){i=+i+1}else{a=+a+1}}if(o==="<"){m="-0"}n=`${o+i}.${a}.${d}${m}`}else if(C){n=`>=${i}.0.0${m} <${+i+1}.0.0-0`}else if(P){n=`>=${i}.${a}.0${m} <${i}.${+a+1}.0-0`}h("xRange return",n);return n}))};const replaceStars=(e,t)=>{h("replaceStars",e,t);return e.trim().replace(C[P.STAR],"")};const replaceGTE0=(e,t)=>{h("replaceGTE0",e,t);return e.trim().replace(C[t.includePrerelease?P.GTE0PRE:P.GTE0],"")};const hyphenReplace=e=>(t,n,o,i,a,d,m,h,f,C,P,D)=>{if(isX(o)){n=""}else if(isX(i)){n=`>=${o}.0.0${e?"-0":""}`}else if(isX(a)){n=`>=${o}.${i}.0${e?"-0":""}`}else if(d){n=`>=${n}`}else{n=`>=${n}${e?"-0":""}`}if(isX(f)){h=""}else if(isX(C)){h=`<${+f+1}.0.0-0`}else if(isX(P)){h=`<${f}.${+C+1}.0-0`}else if(D){h=`<=${f}.${C}.${P}-${D}`}else if(e){h=`<${f}.${C}.${+P+1}-0`}else{h=`<=${h}`}return`${n} ${h}`.trim()};const testSet=(e,t,n)=>{for(let n=0;n<e.length;n++){if(!e[n].test(t)){return false}}if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++){h(e[n].semver);if(e[n].semver===m.ANY){continue}if(e[n].semver.prerelease.length>0){const o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch){return true}}}return false}return true}},7163:(e,t,n)=>{const o=n(1159);const{MAX_LENGTH:i,MAX_SAFE_INTEGER:a}=n(5101);const{safeRe:d,t:m}=n(5471);const h=n(356);const{compareIdentifiers:f}=n(3348);class SemVer{constructor(e,t){t=h(t);if(e instanceof SemVer){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`)}if(e.length>i){throw new TypeError(`version is longer than ${i} characters`)}o("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?d[m.LOOSE]:d[m.FULL]);if(!n){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>a||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>a||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>a||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<a){return t}}return e}))}this.build=n[5]?n[5].split("."):[];this.format()}format(){this.version=`${this.major}.${this.minor}.${this.patch}`;if(this.prerelease.length){this.version+=`-${this.prerelease.join(".")}`}return this.version}toString(){return this.version}compare(e){o("SemVer.compare",this.version,this.options,e);if(!(e instanceof SemVer)){if(typeof e==="string"&&e===this.version){return 0}e=new SemVer(e,this.options)}if(e.version===this.version){return 0}return this.compareMain(e)||this.comparePre(e)}compareMain(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.major<e.major){return-1}if(this.major>e.major){return 1}if(this.minor<e.minor){return-1}if(this.minor>e.minor){return 1}if(this.patch<e.patch){return-1}if(this.patch>e.patch){return 1}return 0}comparePre(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}if(this.prerelease.length&&!e.prerelease.length){return-1}else if(!this.prerelease.length&&e.prerelease.length){return 1}else if(!this.prerelease.length&&!e.prerelease.length){return 0}let t=0;do{const n=this.prerelease[t];const i=e.prerelease[t];o("prerelease compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return f(n,i)}}while(++t)}compareBuild(e){if(!(e instanceof SemVer)){e=new SemVer(e,this.options)}let t=0;do{const n=this.build[t];const i=e.build[t];o("build compare",t,n,i);if(n===undefined&&i===undefined){return 0}else if(i===undefined){return 1}else if(n===undefined){return-1}else if(n===i){continue}else{return f(n,i)}}while(++t)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&n===false){throw new Error("invalid increment argument: identifier is empty")}if(t){const e=`-${t}`.match(this.options.loose?d[m.PRERELEASELOOSE]:d[m.PRERELEASE]);if(!e||e[1]!==t){throw new Error(`invalid identifier: ${t}`)}}}switch(e){case"premajor":this.prerelease.length=0;this.patch=0;this.minor=0;this.major++;this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0;this.patch=0;this.minor++;this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0;this.inc("patch",t,n);this.inc("pre",t,n);break;case"prerelease":if(this.prerelease.length===0){this.inc("patch",t,n)}this.inc("pre",t,n);break;case"release":if(this.prerelease.length===0){throw new Error(`version ${this.raw} is not a prerelease`)}this.prerelease.length=0;break;case"major":if(this.minor!==0||this.patch!==0||this.prerelease.length===0){this.major++}this.minor=0;this.patch=0;this.prerelease=[];break;case"minor":if(this.patch!==0||this.prerelease.length===0){this.minor++}this.patch=0;this.prerelease=[];break;case"patch":if(this.prerelease.length===0){this.patch++}this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(this.prerelease.length===0){this.prerelease=[e]}else{let o=this.prerelease.length;while(--o>=0){if(typeof this.prerelease[o]==="number"){this.prerelease[o]++;o=-2}}if(o===-1){if(t===this.prerelease.join(".")&&n===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let o=[t,e];if(n===false){o=[t]}if(f(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=o}}else{this.prerelease=o}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.raw=this.format();if(this.build.length){this.raw+=`+${this.build.join(".")}`}return this}}e.exports=SemVer},1799:(e,t,n)=>{const o=n(6353);const clean=(e,t)=>{const n=o(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null};e.exports=clean},8646:(e,t,n)=>{const o=n(5082);const i=n(4974);const a=n(6599);const d=n(1236);const m=n(3872);const h=n(6717);const cmp=(e,t,n,f)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e===n;case"!==":if(typeof e==="object"){e=e.version}if(typeof n==="object"){n=n.version}return e!==n;case"":case"=":case"==":return o(e,n,f);case"!=":return i(e,n,f);case">":return a(e,n,f);case">=":return d(e,n,f);case"<":return m(e,n,f);case"<=":return h(e,n,f);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=cmp},5385:(e,t,n)=>{const o=n(7163);const i=n(6353);const{safeRe:a,t:d}=n(5471);const coerce=(e,t)=>{if(e instanceof o){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let n=null;if(!t.rtl){n=e.match(t.includePrerelease?a[d.COERCEFULL]:a[d.COERCE])}else{const o=t.includePrerelease?a[d.COERCERTLFULL]:a[d.COERCERTL];let i;while((i=o.exec(e))&&(!n||n.index+n[0].length!==e.length)){if(!n||i.index+i[0].length!==n.index+n[0].length){n=i}o.lastIndex=i.index+i[1].length+i[2].length}o.lastIndex=-1}if(n===null){return null}const m=n[2];const h=n[3]||"0";const f=n[4]||"0";const C=t.includePrerelease&&n[5]?`-${n[5]}`:"";const P=t.includePrerelease&&n[6]?`+${n[6]}`:"";return i(`${m}.${h}.${f}${C}${P}`,t)};e.exports=coerce},7648:(e,t,n)=>{const o=n(7163);const compareBuild=(e,t,n)=>{const i=new o(e,n);const a=new o(t,n);return i.compare(a)||i.compareBuild(a)};e.exports=compareBuild},6874:(e,t,n)=>{const o=n(8469);const compareLoose=(e,t)=>o(e,t,true);e.exports=compareLoose},8469:(e,t,n)=>{const o=n(7163);const compare=(e,t,n)=>new o(e,n).compare(new o(t,n));e.exports=compare},711:(e,t,n)=>{const o=n(6353);const diff=(e,t)=>{const n=o(e,null,true);const i=o(t,null,true);const a=n.compare(i);if(a===0){return null}const d=a>0;const m=d?n:i;const h=d?i:n;const f=!!m.prerelease.length;const C=!!h.prerelease.length;if(C&&!f){if(!h.patch&&!h.minor){return"major"}if(h.compareMain(m)===0){if(h.minor&&!h.patch){return"minor"}return"patch"}}const P=f?"pre":"";if(n.major!==i.major){return P+"major"}if(n.minor!==i.minor){return P+"minor"}if(n.patch!==i.patch){return P+"patch"}return"prerelease"};e.exports=diff},5082:(e,t,n)=>{const o=n(8469);const eq=(e,t,n)=>o(e,t,n)===0;e.exports=eq},6599:(e,t,n)=>{const o=n(8469);const gt=(e,t,n)=>o(e,t,n)>0;e.exports=gt},1236:(e,t,n)=>{const o=n(8469);const gte=(e,t,n)=>o(e,t,n)>=0;e.exports=gte},2338:(e,t,n)=>{const o=n(7163);const inc=(e,t,n,i,a)=>{if(typeof n==="string"){a=i;i=n;n=undefined}try{return new o(e instanceof o?e.version:e,n).inc(t,i,a).version}catch(e){return null}};e.exports=inc},3872:(e,t,n)=>{const o=n(8469);const lt=(e,t,n)=>o(e,t,n)<0;e.exports=lt},6717:(e,t,n)=>{const o=n(8469);const lte=(e,t,n)=>o(e,t,n)<=0;e.exports=lte},8511:(e,t,n)=>{const o=n(7163);const major=(e,t)=>new o(e,t).major;e.exports=major},2603:(e,t,n)=>{const o=n(7163);const minor=(e,t)=>new o(e,t).minor;e.exports=minor},4974:(e,t,n)=>{const o=n(8469);const neq=(e,t,n)=>o(e,t,n)!==0;e.exports=neq},6353:(e,t,n)=>{const o=n(7163);const parse=(e,t,n=false)=>{if(e instanceof o){return e}try{return new o(e,t)}catch(e){if(!n){return null}throw e}};e.exports=parse},8756:(e,t,n)=>{const o=n(7163);const patch=(e,t)=>new o(e,t).patch;e.exports=patch},5714:(e,t,n)=>{const o=n(6353);const prerelease=(e,t)=>{const n=o(e,t);return n&&n.prerelease.length?n.prerelease:null};e.exports=prerelease},2173:(e,t,n)=>{const o=n(8469);const rcompare=(e,t,n)=>o(t,e,n);e.exports=rcompare},7192:(e,t,n)=>{const o=n(7648);const rsort=(e,t)=>e.sort(((e,n)=>o(n,e,t)));e.exports=rsort},8011:(e,t,n)=>{const o=n(6782);const satisfies=(e,t,n)=>{try{t=new o(t,n)}catch(e){return false}return t.test(e)};e.exports=satisfies},9872:(e,t,n)=>{const o=n(7648);const sort=(e,t)=>e.sort(((e,n)=>o(e,n,t)));e.exports=sort},8780:(e,t,n)=>{const o=n(6353);const valid=(e,t)=>{const n=o(e,t);return n?n.version:null};e.exports=valid},2088:(e,t,n)=>{const o=n(5471);const i=n(5101);const a=n(7163);const d=n(3348);const m=n(6353);const h=n(8780);const f=n(1799);const C=n(2338);const P=n(711);const D=n(8511);const k=n(2603);const L=n(8756);const F=n(5714);const q=n(8469);const V=n(2173);const ee=n(6874);const te=n(7648);const re=n(9872);const ne=n(7192);const se=n(6599);const oe=n(3872);const ie=n(5082);const ae=n(4974);const ce=n(1236);const le=n(6717);const ue=n(8646);const de=n(5385);const pe=n(9379);const Ae=n(6782);const me=n(8011);const ge=n(4750);const he=n(5574);const fe=n(8595);const ye=n(1866);const Ee=n(4737);const Ce=n(280);const Ie=n(2276);const be=n(5213);const Se=n(3465);const Be=n(2028);const we=n(1489);e.exports={parse:m,valid:h,clean:f,inc:C,diff:P,major:D,minor:k,patch:L,prerelease:F,compare:q,rcompare:V,compareLoose:ee,compareBuild:te,sort:re,rsort:ne,gt:se,lt:oe,eq:ie,neq:ae,gte:ce,lte:le,cmp:ue,coerce:de,Comparator:pe,Range:Ae,satisfies:me,toComparators:ge,maxSatisfying:he,minSatisfying:fe,minVersion:ye,validRange:Ee,outside:Ce,gtr:Ie,ltr:be,intersects:Se,simplifyRange:Be,subset:we,SemVer:a,re:o.re,src:o.src,tokens:o.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:d.compareIdentifiers,rcompareIdentifiers:d.rcompareIdentifiers}},5101:e=>{const t="2.0.0";const n=256;const o=Number.MAX_SAFE_INTEGER||9007199254740991;const i=16;const a=n-6;const d=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:n,MAX_SAFE_COMPONENT_LENGTH:i,MAX_SAFE_BUILD_LENGTH:a,MAX_SAFE_INTEGER:o,RELEASE_TYPES:d,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},1159:e=>{const t=typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},3348:e=>{const t=/^[0-9]+$/;const compareIdentifiers=(e,n)=>{if(typeof e==="number"&&typeof n==="number"){return e===n?0:e<n?-1:1}const o=t.test(e);const i=t.test(n);if(o&&i){e=+e;n=+n}return e===n?0:o&&!i?-1:i&&!o?1:e<n?-1:1};const rcompareIdentifiers=(e,t)=>compareIdentifiers(t,e);e.exports={compareIdentifiers:compareIdentifiers,rcompareIdentifiers:rcompareIdentifiers}},1383:e=>{class LRUCache{constructor(){this.max=1e3;this.map=new Map}get(e){const t=this.map.get(e);if(t===undefined){return undefined}else{this.map.delete(e);this.map.set(e,t);return t}}delete(e){return this.map.delete(e)}set(e,t){const n=this.delete(e);if(!n&&t!==undefined){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}}e.exports=LRUCache},356:e=>{const t=Object.freeze({loose:true});const n=Object.freeze({});const parseOptions=e=>{if(!e){return n}if(typeof e!=="object"){return t}return e};e.exports=parseOptions},5471:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:o,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:a}=n(5101);const d=n(1159);t=e.exports={};const m=t.re=[];const h=t.safeRe=[];const f=t.src=[];const C=t.safeSrc=[];const P=t.t={};let D=0;const k="[a-zA-Z0-9-]";const L=[["\\s",1],["\\d",a],[k,i]];const makeSafeRegex=e=>{for(const[t,n]of L){e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`)}return e};const createToken=(e,t,n)=>{const o=makeSafeRegex(t);const i=D++;d(e,i,t);P[e]=i;f[i]=t;C[i]=o;m[i]=new RegExp(t,n?"g":undefined);h[i]=new RegExp(o,n?"g":undefined)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k}*`);createToken("MAINVERSION",`(${f[P.NUMERICIDENTIFIER]})\\.`+`(${f[P.NUMERICIDENTIFIER]})\\.`+`(${f[P.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${f[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${f[P.NUMERICIDENTIFIERLOOSE]})\\.`+`(${f[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${f[P.NONNUMERICIDENTIFIER]}|${f[P.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${f[P.NONNUMERICIDENTIFIER]}|${f[P.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${f[P.PRERELEASEIDENTIFIER]}(?:\\.${f[P.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${f[P.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[P.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${k}+`);createToken("BUILD",`(?:\\+(${f[P.BUILDIDENTIFIER]}(?:\\.${f[P.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${f[P.MAINVERSION]}${f[P.PRERELEASE]}?${f[P.BUILD]}?`);createToken("FULL",`^${f[P.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${f[P.MAINVERSIONLOOSE]}${f[P.PRERELEASELOOSE]}?${f[P.BUILD]}?`);createToken("LOOSE",`^${f[P.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${f[P.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${f[P.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${f[P.XRANGEIDENTIFIER]})`+`(?:\\.(${f[P.XRANGEIDENTIFIER]})`+`(?:\\.(${f[P.XRANGEIDENTIFIER]})`+`(?:${f[P.PRERELEASE]})?${f[P.BUILD]}?`+`)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${f[P.XRANGEIDENTIFIERLOOSE]})`+`(?:${f[P.PRERELEASELOOSE]})?${f[P.BUILD]}?`+`)?)?`);createToken("XRANGE",`^${f[P.GTLT]}\\s*${f[P.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${f[P.GTLT]}\\s*${f[P.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`${"(^|[^\\d])"+"(\\d{1,"}${o}})`+`(?:\\.(\\d{1,${o}}))?`+`(?:\\.(\\d{1,${o}}))?`);createToken("COERCE",`${f[P.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",f[P.COERCEPLAIN]+`(?:${f[P.PRERELEASE]})?`+`(?:${f[P.BUILD]})?`+`(?:$|[^\\d])`);createToken("COERCERTL",f[P.COERCE],true);createToken("COERCERTLFULL",f[P.COERCEFULL],true);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${f[P.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";createToken("TILDE",`^${f[P.LONETILDE]}${f[P.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${f[P.LONETILDE]}${f[P.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${f[P.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";createToken("CARET",`^${f[P.LONECARET]}${f[P.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${f[P.LONECARET]}${f[P.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${f[P.GTLT]}\\s*(${f[P.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${f[P.GTLT]}\\s*(${f[P.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${f[P.GTLT]}\\s*(${f[P.LOOSEPLAIN]}|${f[P.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${f[P.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${f[P.XRANGEPLAIN]})`+`\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${f[P.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${f[P.XRANGEPLAINLOOSE]})`+`\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},2276:(e,t,n)=>{const o=n(280);const gtr=(e,t,n)=>o(e,t,">",n);e.exports=gtr},3465:(e,t,n)=>{const o=n(6782);const intersects=(e,t,n)=>{e=new o(e,n);t=new o(t,n);return e.intersects(t,n)};e.exports=intersects},5213:(e,t,n)=>{const o=n(280);const ltr=(e,t,n)=>o(e,t,"<",n);e.exports=ltr},5574:(e,t,n)=>{const o=n(7163);const i=n(6782);const maxSatisfying=(e,t,n)=>{let a=null;let d=null;let m=null;try{m=new i(t,n)}catch(e){return null}e.forEach((e=>{if(m.test(e)){if(!a||d.compare(e)===-1){a=e;d=new o(a,n)}}}));return a};e.exports=maxSatisfying},8595:(e,t,n)=>{const o=n(7163);const i=n(6782);const minSatisfying=(e,t,n)=>{let a=null;let d=null;let m=null;try{m=new i(t,n)}catch(e){return null}e.forEach((e=>{if(m.test(e)){if(!a||d.compare(e)===1){a=e;d=new o(a,n)}}}));return a};e.exports=minSatisfying},1866:(e,t,n)=>{const o=n(7163);const i=n(6782);const a=n(6599);const minVersion=(e,t)=>{e=new i(e,t);let n=new o("0.0.0");if(e.test(n)){return n}n=new o("0.0.0-0");if(e.test(n)){return n}n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let d=null;i.forEach((e=>{const t=new o(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!d||a(t,d)){d=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(d&&(!n||a(n,d))){n=d}}if(n&&e.test(n)){return n}return null};e.exports=minVersion},280:(e,t,n)=>{const o=n(7163);const i=n(9379);const{ANY:a}=i;const d=n(6782);const m=n(8011);const h=n(6599);const f=n(3872);const C=n(6717);const P=n(1236);const outside=(e,t,n,D)=>{e=new o(e,D);t=new d(t,D);let k,L,F,q,V;switch(n){case">":k=h;L=C;F=f;q=">";V=">=";break;case"<":k=f;L=P;F=h;q="<";V="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(m(e,t,D)){return false}for(let n=0;n<t.set.length;++n){const o=t.set[n];let d=null;let m=null;o.forEach((e=>{if(e.semver===a){e=new i(">=0.0.0")}d=d||e;m=m||e;if(k(e.semver,d.semver,D)){d=e}else if(F(e.semver,m.semver,D)){m=e}}));if(d.operator===q||d.operator===V){return false}if((!m.operator||m.operator===q)&&L(e,m.semver)){return false}else if(m.operator===V&&F(e,m.semver)){return false}}return true};e.exports=outside},2028:(e,t,n)=>{const o=n(8011);const i=n(8469);e.exports=(e,t,n)=>{const a=[];let d=null;let m=null;const h=e.sort(((e,t)=>i(e,t,n)));for(const e of h){const i=o(e,t,n);if(i){m=e;if(!d){d=e}}else{if(m){a.push([d,m])}m=null;d=null}}if(d){a.push([d,null])}const f=[];for(const[e,t]of a){if(e===t){f.push(e)}else if(!t&&e===h[0]){f.push("*")}else if(!t){f.push(`>=${e}`)}else if(e===h[0]){f.push(`<=${t}`)}else{f.push(`${e} - ${t}`)}}const C=f.join(" || ");const P=typeof t.raw==="string"?t.raw:String(t);return C.length<P.length?C:t}},1489:(e,t,n)=>{const o=n(6782);const i=n(9379);const{ANY:a}=i;const d=n(8011);const m=n(8469);const subset=(e,t,n={})=>{if(e===t){return true}e=new o(e,n);t=new o(t,n);let i=false;e:for(const o of e.set){for(const e of t.set){const t=simpleSubset(o,e,n);i=i||t!==null;if(t){continue e}}if(i){return false}}return true};const h=[new i(">=0.0.0-0")];const f=[new i(">=0.0.0")];const simpleSubset=(e,t,n)=>{if(e===t){return true}if(e.length===1&&e[0].semver===a){if(t.length===1&&t[0].semver===a){return true}else if(n.includePrerelease){e=h}else{e=f}}if(t.length===1&&t[0].semver===a){if(n.includePrerelease){return true}else{t=f}}const o=new Set;let i,C;for(const t of e){if(t.operator===">"||t.operator===">="){i=higherGT(i,t,n)}else if(t.operator==="<"||t.operator==="<="){C=lowerLT(C,t,n)}else{o.add(t.semver)}}if(o.size>1){return null}let P;if(i&&C){P=m(i.semver,C.semver,n);if(P>0){return null}else if(P===0&&(i.operator!==">="||C.operator!=="<=")){return null}}for(const e of o){if(i&&!d(e,String(i),n)){return null}if(C&&!d(e,String(C),n)){return null}for(const o of t){if(!d(e,String(o),n)){return false}}return true}let D,k;let L,F;let q=C&&!n.includePrerelease&&C.semver.prerelease.length?C.semver:false;let V=i&&!n.includePrerelease&&i.semver.prerelease.length?i.semver:false;if(q&&q.prerelease.length===1&&C.operator==="<"&&q.prerelease[0]===0){q=false}for(const e of t){F=F||e.operator===">"||e.operator===">=";L=L||e.operator==="<"||e.operator==="<=";if(i){if(V){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===V.major&&e.semver.minor===V.minor&&e.semver.patch===V.patch){V=false}}if(e.operator===">"||e.operator===">="){D=higherGT(i,e,n);if(D===e&&D!==i){return false}}else if(i.operator===">="&&!d(i.semver,String(e),n)){return false}}if(C){if(q){if(e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===q.major&&e.semver.minor===q.minor&&e.semver.patch===q.patch){q=false}}if(e.operator==="<"||e.operator==="<="){k=lowerLT(C,e,n);if(k===e&&k!==C){return false}}else if(C.operator==="<="&&!d(C.semver,String(e),n)){return false}}if(!e.operator&&(C||i)&&P!==0){return false}}if(i&&L&&!C&&P!==0){return false}if(C&&F&&!i&&P!==0){return false}if(V||q){return false}return true};const higherGT=(e,t,n)=>{if(!e){return t}const o=m(e.semver,t.semver,n);return o>0?e:o<0?t:t.operator===">"&&e.operator===">="?t:e};const lowerLT=(e,t,n)=>{if(!e){return t}const o=m(e.semver,t.semver,n);return o<0?e:o>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=subset},4750:(e,t,n)=>{const o=n(6782);const toComparators=(e,t)=>new o(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=toComparators},4737:(e,t,n)=>{const o=n(6782);const validRange=(e,t)=>{try{return new o(e,t).range||"*"}catch(e){return null}};e.exports=validRange},1450:(e,t,n)=>{const o=n(857);const i=n(2018);const a=n(3813);const{env:d}=process;let m;if(a("no-color")||a("no-colors")||a("color=false")||a("color=never")){m=0}else if(a("color")||a("colors")||a("color=true")||a("color=always")){m=1}if("FORCE_COLOR"in d){if(d.FORCE_COLOR==="true"){m=1}else if(d.FORCE_COLOR==="false"){m=0}else{m=d.FORCE_COLOR.length===0?1:Math.min(parseInt(d.FORCE_COLOR,10),3)}}function translateLevel(e){if(e===0){return false}return{level:e,hasBasic:true,has256:e>=2,has16m:e>=3}}function supportsColor(e,t){if(m===0){return 0}if(a("color=16m")||a("color=full")||a("color=truecolor")){return 3}if(a("color=256")){return 2}if(e&&!t&&m===undefined){return 0}const n=m||0;if(d.TERM==="dumb"){return n}if(process.platform==="win32"){const e=o.release().split(".");if(Number(e[0])>=10&&Number(e[2])>=10586){return Number(e[2])>=14931?3:2}return 1}if("CI"in d){if(["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in d))||d.CI_NAME==="codeship"){return 1}return n}if("TEAMCITY_VERSION"in d){return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(d.TEAMCITY_VERSION)?1:0}if(d.COLORTERM==="truecolor"){return 3}if("TERM_PROGRAM"in d){const e=parseInt((d.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(d.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}if(/-256(color)?$/i.test(d.TERM)){return 2}if(/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(d.TERM)){return 1}if("COLORTERM"in d){return 1}return n}function getSupportLevel(e){const t=supportsColor(e,e&&e.isTTY);return translateLevel(t)}e.exports={supportsColor:getSupportLevel,stdout:translateLevel(supportsColor(true,i.isatty(1))),stderr:translateLevel(supportsColor(true,i.isatty(2)))}},1288:(e,t,n)=>{var o;
|
||
/*!
|
||
* Tmp
|
||
*
|
||
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
||
*
|
||
* MIT Licensed
|
||
*/const i=n(9896);const a=n(857);const d=n(6928);const m=n(6982);const h={fs:i.constants,os:a.constants};const f="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",C=/XXXXXX/,P=3,D=(h.O_CREAT||h.fs.O_CREAT)|(h.O_EXCL||h.fs.O_EXCL)|(h.O_RDWR||h.fs.O_RDWR),k=a.platform()==="win32",L=h.EBADF||h.os.errno.EBADF,F=h.ENOENT||h.os.errno.ENOENT,q=448,V=384,ee="exit",te=[],re=i.rmdirSync.bind(i);let ne=false;function rimraf(e,t){return i.rm(e,{recursive:true},t)}function FN_RIMRAF_SYNC(e){return i.rmSync(e,{recursive:true})}function tmpName(e,t){const n=_parseArguments(e,t),o=n[0],a=n[1];_assertAndSanitizeOptions(o,(function(e,t){if(e)return a(e);let n=t.tries;(function _getUniqueName(){try{const e=_generateTmpName(t);i.stat(e,(function(t){if(!t){if(n-- >0)return _getUniqueName();return a(new Error("Could not get a unique tmp filename, max tries reached "+e))}a(null,e)}))}catch(e){a(e)}})()}))}function tmpNameSync(e){const t=_parseArguments(e),n=t[0];const o=_assertAndSanitizeOptionsSync(n);let a=o.tries;do{const e=_generateTmpName(o);try{i.statSync(e)}catch(t){return e}}while(a-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function file(e,t){const n=_parseArguments(e,t),o=n[0],a=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return a(e);i.open(t,D,o.mode||V,(function _fileCreated(e,n){if(e)return a(e);if(o.discardDescriptor){return i.close(n,(function _discardCallback(e){return a(e,t,undefined,_prepareTmpFileRemoveCallback(t,-1,o,false))}))}else{const e=o.discardDescriptor||o.detachDescriptor;a(null,t,n,_prepareTmpFileRemoveCallback(t,e?-1:n,o,false))}}))}))}function fileSync(e){const t=_parseArguments(e),n=t[0];const o=n.discardDescriptor||n.detachDescriptor;const a=tmpNameSync(n);let d=i.openSync(a,D,n.mode||V);if(n.discardDescriptor){i.closeSync(d);d=undefined}return{name:a,fd:d,removeCallback:_prepareTmpFileRemoveCallback(a,o?-1:d,n,true)}}function dir(e,t){const n=_parseArguments(e,t),o=n[0],a=n[1];tmpName(o,(function _tmpNameCreated(e,t){if(e)return a(e);i.mkdir(t,o.mode||q,(function _dirCreated(e){if(e)return a(e);a(null,t,_prepareTmpDirRemoveCallback(t,o,false))}))}))}function dirSync(e){const t=_parseArguments(e),n=t[0];const o=tmpNameSync(n);i.mkdirSync(o,n.mode||q);return{name:o,removeCallback:_prepareTmpDirRemoveCallback(o,n,true)}}function _removeFileAsync(e,t){const _handler=function(e){if(e&&!_isENOENT(e)){return t(e)}t()};if(0<=e[0])i.close(e[0],(function(){i.unlink(e[1],_handler)}));else i.unlink(e[1],_handler)}function _removeFileSync(e){let t=null;try{if(0<=e[0])i.closeSync(e[0])}catch(e){if(!_isEBADF(e)&&!_isENOENT(e))throw e}finally{try{i.unlinkSync(e[1])}catch(e){if(!_isENOENT(e))t=e}}if(t!==null){throw t}}function _prepareTmpFileRemoveCallback(e,t,n,o){const i=_prepareRemoveCallback(_removeFileSync,[t,e],o);const a=_prepareRemoveCallback(_removeFileAsync,[t,e],o,i);if(!n.keep)te.unshift(i);return o?i:a}function _prepareTmpDirRemoveCallback(e,t,n){const o=t.unsafeCleanup?rimraf:i.rmdir.bind(i);const a=t.unsafeCleanup?FN_RIMRAF_SYNC:re;const d=_prepareRemoveCallback(a,e,n);const m=_prepareRemoveCallback(o,e,n,d);if(!t.keep)te.unshift(d);return n?d:m}function _prepareRemoveCallback(e,t,n,o){let i=false;return function _cleanupCallback(a){if(!i){const d=o||_cleanupCallback;const m=te.indexOf(d);if(m>=0)te.splice(m,1);i=true;if(n||e===re||e===FN_RIMRAF_SYNC){return e(t)}else{return e(t,a||function(){})}}}}function _garbageCollector(){if(!ne)return;while(te.length){try{te[0]()}catch(e){}}}function _randomChars(e){let t=[],n=null;try{n=m.randomBytes(e)}catch(t){n=m.pseudoRandomBytes(e)}for(let o=0;o<e;o++){t.push(f[n[o]%f.length])}return t.join("")}function _isUndefined(e){return typeof e==="undefined"}function _parseArguments(e,t){if(typeof e==="function"){return[{},e]}if(_isUndefined(e)){return[{},t]}const n={};for(const t of Object.getOwnPropertyNames(e)){n[t]=e[t]}return[n,t]}function _resolvePath(e,t,n){const o=d.isAbsolute(e)?e:d.join(t,e);i.stat(o,(function(e){if(e){i.realpath(d.dirname(o),(function(e,t){if(e)return n(e);n(null,d.join(t,d.basename(o)))}))}else{i.realpath(o,n)}}))}function _resolvePathSync(e,t){const n=d.isAbsolute(e)?e:d.join(t,e);try{i.statSync(n);return i.realpathSync(n)}catch(e){const t=i.realpathSync(d.dirname(n));return d.join(t,d.basename(n))}}function _generateTmpName(e){const t=e.tmpdir;if(!_isUndefined(e.name)){return d.join(t,e.dir,e.name)}if(!_isUndefined(e.template)){return d.join(t,e.dir,e.template).replace(C,_randomChars(6))}const n=[e.prefix?e.prefix:"tmp","-",process.pid,"-",_randomChars(12),e.postfix?"-"+e.postfix:""].join("");return d.join(t,e.dir,n)}function _assertOptionsBase(e){if(!_isUndefined(e.name)){const t=e.name;if(d.isAbsolute(t))throw new Error(`name option must not contain an absolute path, found "${t}".`);const n=d.basename(t);if(n===".."||n==="."||n!==t)throw new Error(`name option must not contain a path, found "${t}".`)}if(!_isUndefined(e.template)&&!e.template.match(C)){throw new Error(`Invalid template, found "${e.template}".`)}if(!_isUndefined(e.tries)&&isNaN(e.tries)||e.tries<0){throw new Error(`Invalid tries, found "${e.tries}".`)}e.tries=_isUndefined(e.name)?e.tries||P:1;e.keep=!!e.keep;e.detachDescriptor=!!e.detachDescriptor;e.discardDescriptor=!!e.discardDescriptor;e.unsafeCleanup=!!e.unsafeCleanup;e.prefix=_isUndefined(e.prefix)?"":e.prefix;e.postfix=_isUndefined(e.postfix)?"":e.postfix}function _getRelativePath(e,t,n,o){if(_isUndefined(t))return o(null);_resolvePath(t,n,(function(t,i){if(t)return o(t);const a=d.relative(n,i);if(!i.startsWith(n)){return o(new Error(`${e} option must be relative to "${n}", found "${a}".`))}o(null,a)}))}function _getRelativePathSync(e,t,n){if(_isUndefined(t))return;const o=_resolvePathSync(t,n);const i=d.relative(n,o);if(!o.startsWith(n)){throw new Error(`${e} option must be relative to "${n}", found "${i}".`)}return i}function _assertAndSanitizeOptions(e,t){_getTmpDir(e,(function(n,o){if(n)return t(n);e.tmpdir=o;try{_assertOptionsBase(e,o)}catch(n){return t(n)}_getRelativePath("dir",e.dir,o,(function(n,i){if(n)return t(n);e.dir=_isUndefined(i)?"":i;_getRelativePath("template",e.template,o,(function(n,o){if(n)return t(n);e.template=o;t(null,e)}))}))}))}function _assertAndSanitizeOptionsSync(e){const t=e.tmpdir=_getTmpDirSync(e);_assertOptionsBase(e,t);const n=_getRelativePathSync("dir",e.dir,t);e.dir=_isUndefined(n)?"":n;e.template=_getRelativePathSync("template",e.template,t);return e}function _isEBADF(e){return _isExpectedError(e,-L,"EBADF")}function _isENOENT(e){return _isExpectedError(e,-F,"ENOENT")}function _isExpectedError(e,t,n){return k?e.code===n:e.code===n&&e.errno===t}function setGracefulCleanup(){ne=true}function _getTmpDir(e,t){return i.realpath(e&&e.tmpdir||a.tmpdir(),t)}function _getTmpDirSync(e){return i.realpathSync(e&&e.tmpdir||a.tmpdir())}process.addListener(ee,_garbageCollector);o={enumerable:true,configurable:false,get:function(){return _getTmpDirSync()}};o=dir;o=dirSync;o=file;o=fileSync;o=tmpName;e.exports.om=tmpNameSync;o=setGracefulCleanup},1860:e=>{var t;var n;var o;var i;var a;var d;var m;var h;var f;var C;var P;var D;var k;var L;var F;var q;var V;var ee;var te;var re;var ne;var se;var oe;var ie;var ae;var ce;var le;var ue;var de;var pe;var Ae;(function(t){var n=typeof global==="object"?global:typeof self==="object"?self:typeof this==="object"?this:{};if(typeof define==="function"&&define.amd){define("tslib",["exports"],(function(e){t(createExporter(n,createExporter(e)))}))}else if(true&&typeof e.exports==="object"){t(createExporter(n,createExporter(e.exports)))}else{t(createExporter(n))}function createExporter(e,t){if(e!==n){if(typeof Object.create==="function"){Object.defineProperty(e,"__esModule",{value:true})}else{e.__esModule=true}}return function(n,o){return e[n]=t?t(n,o):o}}})((function(e){var me=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};t=function(e,t){if(typeof t!=="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");me(e,t);function __(){this.constructor=e}e.prototype=t===null?Object.create(t):(__.prototype=t.prototype,new __)};n=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++){t=arguments[n];for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i))e[i]=t[i]}return e};o=function(e,t){var n={};for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0)n[o]=e[o];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,o=Object.getOwnPropertySymbols(e);i<o.length;i++){if(t.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(e,o[i]))n[o[i]]=e[o[i]]}return n};i=function(e,t,n,o){var i=arguments.length,a=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,n):o,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(e,t,n,o);else for(var m=e.length-1;m>=0;m--)if(d=e[m])a=(i<3?d(a):i>3?d(t,n,a):d(t,n))||a;return i>3&&a&&Object.defineProperty(t,n,a),a};a=function(e,t){return function(n,o){t(n,o,e)}};d=function(e,t,n,o,i,a){function accept(e){if(e!==void 0&&typeof e!=="function")throw new TypeError("Function expected");return e}var d=o.kind,m=d==="getter"?"get":d==="setter"?"set":"value";var h=!t&&e?o["static"]?e:e.prototype:null;var f=t||(h?Object.getOwnPropertyDescriptor(h,o.name):{});var C,P=false;for(var D=n.length-1;D>=0;D--){var k={};for(var L in o)k[L]=L==="access"?{}:o[L];for(var L in o.access)k.access[L]=o.access[L];k.addInitializer=function(e){if(P)throw new TypeError("Cannot add initializers after decoration has completed");a.push(accept(e||null))};var F=(0,n[D])(d==="accessor"?{get:f.get,set:f.set}:f[m],k);if(d==="accessor"){if(F===void 0)continue;if(F===null||typeof F!=="object")throw new TypeError("Object expected");if(C=accept(F.get))f.get=C;if(C=accept(F.set))f.set=C;if(C=accept(F.init))i.unshift(C)}else if(C=accept(F)){if(d==="field")i.unshift(C);else f[m]=C}}if(h)Object.defineProperty(h,o.name,f);P=true};m=function(e,t,n){var o=arguments.length>2;for(var i=0;i<t.length;i++){n=o?t[i].call(e,n):t[i].call(e)}return o?n:void 0};h=function(e){return typeof e==="symbol"?e:"".concat(e)};f=function(e,t,n){if(typeof t==="symbol")t=t.description?"[".concat(t.description,"]"):"";return Object.defineProperty(e,"name",{configurable:true,value:n?"".concat(n," ",t):t})};C=function(e,t){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(e,t)};P=function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};D=function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,d;return d={next:verb(0),throw:verb(1),return:verb(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function verb(e){return function(t){return step([e,t])}}function step(m){if(o)throw new TypeError("Generator is already executing.");while(d&&(d=0,m[0]&&(n=0)),n)try{if(o=1,i&&(a=m[0]&2?i["return"]:m[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,m[1])).done)return a;if(i=0,a)m=[m[0]&2,a.value];switch(m[0]){case 0:case 1:a=m;break;case 4:n.label++;return{value:m[1],done:false};case 5:n.label++;i=m[1];m=[0];continue;case 7:m=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(m[0]===6||m[0]===2)){n=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]<a[3])){n.label=m[1];break}if(m[0]===6&&n.label<a[1]){n.label=a[1];a=m;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(m);break}if(a[2])n.ops.pop();n.trys.pop();continue}m=t.call(e,n)}catch(e){m=[6,e];i=0}finally{o=a=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:true}}};k=function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))de(t,e,n)};de=Object.create?function(e,t,n,o){if(o===undefined)o=n;var i=Object.getOwnPropertyDescriptor(t,n);if(!i||("get"in i?!t.__esModule:i.writable||i.configurable)){i={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,o,i)}:function(e,t,n,o){if(o===undefined)o=n;e[o]=t[n]};L=function(e){var t=typeof Symbol==="function"&&Symbol.iterator,n=t&&e[t],o=0;if(n)return n.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&o>=e.length)e=void 0;return{value:e&&e[o++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};F=function(e,t){var n=typeof Symbol==="function"&&e[Symbol.iterator];if(!n)return e;var o=n.call(e),i,a=[],d;try{while((t===void 0||t-- >0)&&!(i=o.next()).done)a.push(i.value)}catch(e){d={error:e}}finally{try{if(i&&!i.done&&(n=o["return"]))n.call(o)}finally{if(d)throw d.error}}return a};q=function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(F(arguments[t]));return e};V=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],d=0,m=a.length;d<m;d++,i++)o[i]=a[d];return o};ee=function(e,t,n){if(n||arguments.length===2)for(var o=0,i=t.length,a;o<i;o++){if(a||!(o in t)){if(!a)a=Array.prototype.slice.call(t,0,o);a[o]=t[o]}}return e.concat(a||Array.prototype.slice.call(t))};te=function(e){return this instanceof te?(this.v=e,this):new te(e)};re=function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,a=[];return i={},verb("next"),verb("throw"),verb("return"),i[Symbol.asyncIterator]=function(){return this},i;function verb(e){if(o[e])i[e]=function(t){return new Promise((function(n,o){a.push([e,t,n,o])>1||resume(e,t)}))}}function resume(e,t){try{step(o[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof te?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};ne=function(e){var t,n;return t={},verb("next"),verb("throw",(function(e){throw e})),verb("return"),t[Symbol.iterator]=function(){return this},t;function verb(o,i){t[o]=e[o]?function(t){return(n=!n)?{value:te(e[o](t)),done:false}:i?i(t):t}:i}};se=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof L==="function"?L(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};oe=function(e,t){if(Object.defineProperty){Object.defineProperty(e,"raw",{value:t})}else{e.raw=t}return e};var ge=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t};ie=function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))de(t,e,n);ge(t,e);return t};ae=function(e){return e&&e.__esModule?e:{default:e}};ce=function(e,t,n,o){if(n==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t==="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?o:n==="a"?o.call(e):o?o.value:t.get(e)};le=function(e,t,n,o,i){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t==="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n};ue=function(e,t){if(t===null||typeof t!=="object"&&typeof t!=="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e==="function"?t===e:e.has(t)};pe=function(e,t,n){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("Object expected.");var o;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose]}if(typeof o!=="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:o,async:n})}else if(n){e.stack.push({async:true})}return t};var he=typeof SuppressedError==="function"?SuppressedError:function(e,t,n){var o=new Error(n);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};Ae=function(e){function fail(t){e.error=e.hasError?new he(t,e.error,"An error was suppressed during disposal."):t;e.hasError=true}function next(){while(e.stack.length){var t=e.stack.pop();try{var n=t.dispose&&t.dispose.call(t.value);if(t.async)return Promise.resolve(n).then(next,(function(e){fail(e);return next()}))}catch(e){fail(e)}}if(e.hasError)throw e.error}return next()};e("__extends",t);e("__assign",n);e("__rest",o);e("__decorate",i);e("__param",a);e("__esDecorate",d);e("__runInitializers",m);e("__propKey",h);e("__setFunctionName",f);e("__metadata",C);e("__awaiter",P);e("__generator",D);e("__exportStar",k);e("__createBinding",de);e("__values",L);e("__read",F);e("__spread",q);e("__spreadArrays",V);e("__spreadArray",ee);e("__await",te);e("__asyncGenerator",re);e("__asyncDelegator",ne);e("__asyncValues",se);e("__makeTemplateObject",oe);e("__importStar",ie);e("__importDefault",ae);e("__classPrivateFieldGet",ce);e("__classPrivateFieldSet",le);e("__classPrivateFieldIn",ue);e("__addDisposableResource",pe);e("__disposeResources",Ae)}))},770:(e,t,n)=>{e.exports=n(218)},218:(e,t,n)=>{var o=n(9278);var i=n(4756);var a=n(8611);var d=n(5692);var m=n(4434);var h=n(2613);var f=n(9023);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=a.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=a.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=d.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=d.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||a.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",(function onFree(e,n,o,i){var a=toOptions(n,o,i);for(var d=0,m=t.requests.length;d<m;++d){var h=t.requests[d];if(h.host===a.host&&h.port===a.port){t.requests.splice(d,1);h.request.onSocket(e);return}}e.destroy();t.removeSocket(e)}))}f.inherits(TunnelingAgent,m.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,n,o){var i=this;var a=mergeOptions({request:e},i.options,toOptions(t,n,o));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,(function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,a)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}}))};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var n=this;var o={};n.sockets.push(o);var i=mergeOptions({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}C("making CONNECT request");var a=n.request(i);a.useChunkedEncodingByDefault=false;a.once("response",onResponse);a.once("upgrade",onUpgrade);a.once("connect",onConnect);a.once("error",onError);a.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,n){process.nextTick((function(){onConnect(e,t,n)}))}function onConnect(i,d,m){a.removeAllListeners();d.removeAllListeners();if(i.statusCode!==200){C("tunneling socket could not be established, statusCode=%d",i.statusCode);d.destroy();var h=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);h.code="ECONNRESET";e.request.emit("error",h);n.removeSocket(o);return}if(m.length>0){C("got illegal response body from proxy");d.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET";e.request.emit("error",h);n.removeSocket(o);return}C("tunneling connection has established");n.sockets[n.sockets.indexOf(o)]=d;return t(d)}function onError(t){a.removeAllListeners();C("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);n.removeSocket(o)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var n=this.requests.shift();if(n){this.createSocket(n,(function(e){n.request.onSocket(e)}))}};function createSecureSocket(e,t){var n=this;TunnelingAgent.prototype.createSocket.call(n,e,(function(o){var a=e.request.getHeader("host");var d=mergeOptions({},n.options,{socket:o,servername:a?a.replace(/:.*$/,""):e.host});var m=i.connect(0,d);n.sockets[n.sockets.indexOf(o)]=m;t(m)}))}function toOptions(e,t,n){if(typeof e==="string"){return{host:e,port:t,localAddress:n}}return e}function mergeOptions(e){for(var t=1,n=arguments.length;t<n;++t){var o=arguments[t];if(typeof o==="object"){var i=Object.keys(o);for(var a=0,d=i.length;a<d;++a){var m=i[a];if(o[m]!==undefined){e[m]=o[m]}}}}return e}var C;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){C=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{C=function(){}}t.debug=C},6752:(e,t,n)=>{const o=n(3701);const i=n(883);const a=n(628);const d=n(837);const m=n(7405);const h=n(6672);const f=n(3137);const C=n(50);const P=n(8707);const D=n(3440);const{InvalidArgumentError:k}=P;const L=n(6615);const F=n(9136);const q=n(7365);const V=n(7501);const ee=n(4004);const te=n(2429);const re=n(7816);const{getGlobalDispatcher:ne,setGlobalDispatcher:se}=n(2581);const oe=n(8155);const ie=n(8754);const ae=n(5092);Object.assign(i.prototype,L);e.exports.Dispatcher=i;e.exports.Client=o;e.exports.Pool=a;e.exports.BalancedPool=d;e.exports.Agent=m;e.exports.ProxyAgent=h;e.exports.EnvHttpProxyAgent=f;e.exports.RetryAgent=C;e.exports.RetryHandler=re;e.exports.DecoratorHandler=oe;e.exports.RedirectHandler=ie;e.exports.createRedirectInterceptor=ae;e.exports.interceptors={redirect:n(1514),retry:n(2026),dump:n(8060),dns:n(379)};e.exports.buildConnector=F;e.exports.errors=P;e.exports.util={parseHeaders:D.parseHeaders,headerNameToString:D.headerNameToString};function makeDispatcher(e){return(t,n,o)=>{if(typeof n==="function"){o=n;n=null}if(!t||typeof t!=="string"&&typeof t!=="object"&&!(t instanceof URL)){throw new k("invalid url")}if(n!=null&&typeof n!=="object"){throw new k("invalid opts")}if(n&&n.path!=null){if(typeof n.path!=="string"){throw new k("invalid opts.path")}let e=n.path;if(!n.path.startsWith("/")){e=`/${e}`}t=new URL(D.parseOrigin(t).origin+e)}else{if(!n){n=typeof t==="object"?t:{}}t=D.parseURL(t)}const{agent:i,dispatcher:a=ne()}=n;if(i){throw new k("unsupported opts.agent. Did you mean opts.client?")}return e.call(a,{...n,origin:t.origin,path:t.search?`${t.pathname}${t.search}`:t.pathname,method:n.method||(n.body?"PUT":"GET")},o)}}e.exports.setGlobalDispatcher=se;e.exports.getGlobalDispatcher=ne;const ce=n(4398).fetch;e.exports.fetch=async function fetch(e,t=undefined){try{return await ce(e,t)}catch(e){if(e&&typeof e==="object"){Error.captureStackTrace(e)}throw e}};e.exports.Headers=n(660).Headers;e.exports.Response=n(9051).Response;e.exports.Request=n(9967).Request;e.exports.FormData=n(5910).FormData;e.exports.File=globalThis.File??n(4573).File;e.exports.FileReader=n(8355).FileReader;const{setGlobalOrigin:le,getGlobalOrigin:ue}=n(1059);e.exports.setGlobalOrigin=le;e.exports.getGlobalOrigin=ue;const{CacheStorage:de}=n(3245);const{kConstruct:pe}=n(109);e.exports.caches=new de(pe);const{deleteCookie:Ae,getCookies:me,getSetCookies:ge,setCookie:he}=n(9061);e.exports.deleteCookie=Ae;e.exports.getCookies=me;e.exports.getSetCookies=ge;e.exports.setCookie=he;const{parseMIMEType:fe,serializeAMimeType:ye}=n(1900);e.exports.parseMIMEType=fe;e.exports.serializeAMimeType=ye;const{CloseEvent:Ee,ErrorEvent:Ce,MessageEvent:Ie}=n(5188);e.exports.WebSocket=n(3726).WebSocket;e.exports.CloseEvent=Ee;e.exports.ErrorEvent=Ce;e.exports.MessageEvent=Ie;e.exports.request=makeDispatcher(L.request);e.exports.stream=makeDispatcher(L.stream);e.exports.pipeline=makeDispatcher(L.pipeline);e.exports.connect=makeDispatcher(L.connect);e.exports.upgrade=makeDispatcher(L.upgrade);e.exports.MockClient=q;e.exports.MockPool=ee;e.exports.MockAgent=V;e.exports.mockErrors=te;const{EventSource:be}=n(1238);e.exports.EventSource=be},158:(e,t,n)=>{const{addAbortListener:o}=n(3440);const{RequestAbortedError:i}=n(8707);const a=Symbol("kListener");const d=Symbol("kSignal");function abort(e){if(e.abort){e.abort(e[d]?.reason)}else{e.reason=e[d]?.reason??new i}removeSignal(e)}function addSignal(e,t){e.reason=null;e[d]=null;e[a]=null;if(!t){return}if(t.aborted){abort(e);return}e[d]=t;e[a]=()=>{abort(e)};o(e[d],e[a])}function removeSignal(e){if(!e[d]){return}if("removeEventListener"in e[d]){e[d].removeEventListener("abort",e[a])}else{e[d].removeListener("abort",e[a])}e[d]=null;e[a]=null}e.exports={addSignal:addSignal,removeSignal:removeSignal}},2279:(e,t,n)=>{const o=n(4589);const{AsyncResource:i}=n(6698);const{InvalidArgumentError:a,SocketError:d}=n(8707);const m=n(3440);const{addSignal:h,removeSignal:f}=n(158);class ConnectHandler extends i{constructor(e,t){if(!e||typeof e!=="object"){throw new a("invalid opts")}if(typeof t!=="function"){throw new a("invalid callback")}const{signal:n,opaque:o,responseHeaders:i}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}super("UNDICI_CONNECT");this.opaque=o||null;this.responseHeaders=i||null;this.callback=t;this.abort=null;h(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(){throw new d("bad connect",null)}onUpgrade(e,t,n){const{callback:o,opaque:i,context:a}=this;f(this);this.callback=null;let d=t;if(d!=null){d=this.responseHeaders==="raw"?m.parseRawHeaders(t):m.parseHeaders(t)}this.runInAsyncScope(o,null,null,{statusCode:e,headers:d,socket:n,opaque:i,context:a})}onError(e){const{callback:t,opaque:n}=this;f(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function connect(e,t){if(t===undefined){return new Promise(((t,n)=>{connect.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new ConnectHandler(e,t);this.dispatch({...e,method:"CONNECT"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=connect},6862:(e,t,n)=>{const{Readable:o,Duplex:i,PassThrough:a}=n(7075);const{InvalidArgumentError:d,InvalidReturnValueError:m,RequestAbortedError:h}=n(8707);const f=n(3440);const{AsyncResource:C}=n(6698);const{addSignal:P,removeSignal:D}=n(158);const k=n(4589);const L=Symbol("resume");class PipelineRequest extends o{constructor(){super({autoDestroy:true});this[L]=null}_read(){const{[L]:e}=this;if(e){this[L]=null;e()}}_destroy(e,t){this._read();t(e)}}class PipelineResponse extends o{constructor(e){super({autoDestroy:true});this[L]=e}_read(){this[L]()}_destroy(e,t){if(!e&&!this._readableState.endEmitted){e=new h}t(e)}}class PipelineHandler extends C{constructor(e,t){if(!e||typeof e!=="object"){throw new d("invalid opts")}if(typeof t!=="function"){throw new d("invalid handler")}const{signal:n,method:o,opaque:a,onInfo:m,responseHeaders:C}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new d("invalid method")}if(m&&typeof m!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_PIPELINE");this.opaque=a||null;this.responseHeaders=C||null;this.handler=t;this.abort=null;this.context=null;this.onInfo=m||null;this.req=(new PipelineRequest).on("error",f.nop);this.ret=new i({readableObjectMode:e.objectMode,autoDestroy:true,read:()=>{const{body:e}=this;if(e?.resume){e.resume()}},write:(e,t,n)=>{const{req:o}=this;if(o.push(e,t)||o._readableState.destroyed){n()}else{o[L]=n}},destroy:(e,t)=>{const{body:n,req:o,res:i,ret:a,abort:d}=this;if(!e&&!a._readableState.endEmitted){e=new h}if(d&&e){d()}f.destroy(n,e);f.destroy(o,e);f.destroy(i,e);D(this);t(e)}}).on("prefinish",(()=>{const{req:e}=this;e.push(null)}));this.res=null;P(this,n)}onConnect(e,t){const{ret:n,res:o}=this;if(this.reason){e(this.reason);return}k(!o,"pipeline cannot be retried");k(!n.destroyed);this.abort=e;this.context=t}onHeaders(e,t,n){const{opaque:o,handler:i,context:a}=this;if(e<200){if(this.onInfo){const n=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);this.onInfo({statusCode:e,headers:n})}return}this.res=new PipelineResponse(n);let d;try{this.handler=null;const n=this.responseHeaders==="raw"?f.parseRawHeaders(t):f.parseHeaders(t);d=this.runInAsyncScope(i,null,{statusCode:e,headers:n,opaque:o,body:this.res,context:a})}catch(e){this.res.on("error",f.nop);throw e}if(!d||typeof d.on!=="function"){throw new m("expected Readable")}d.on("data",(e=>{const{ret:t,body:n}=this;if(!t.push(e)&&n.pause){n.pause()}})).on("error",(e=>{const{ret:t}=this;f.destroy(t,e)})).on("end",(()=>{const{ret:e}=this;e.push(null)})).on("close",(()=>{const{ret:e}=this;if(!e._readableState.ended){f.destroy(e,new h)}}));this.body=d}onData(e){const{res:t}=this;return t.push(e)}onComplete(e){const{res:t}=this;t.push(null)}onError(e){const{ret:t}=this;this.handler=null;f.destroy(t,e)}}function pipeline(e,t){try{const n=new PipelineHandler(e,t);this.dispatch({...e,body:n.req},n);return n.ret}catch(e){return(new a).destroy(e)}}e.exports=pipeline},4043:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(9927);const{InvalidArgumentError:a,RequestAbortedError:d}=n(8707);const m=n(3440);const{getResolveErrorBodyCallback:h}=n(7655);const{AsyncResource:f}=n(6698);class RequestHandler extends f{constructor(e,t){if(!e||typeof e!=="object"){throw new a("invalid opts")}const{signal:n,method:o,opaque:i,body:h,onInfo:f,responseHeaders:C,throwOnError:P,highWaterMark:D}=e;try{if(typeof t!=="function"){throw new a("invalid callback")}if(D&&(typeof D!=="number"||D<0)){throw new a("invalid highWaterMark")}if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new a("signal must be an EventEmitter or EventTarget")}if(o==="CONNECT"){throw new a("invalid method")}if(f&&typeof f!=="function"){throw new a("invalid onInfo callback")}super("UNDICI_REQUEST")}catch(e){if(m.isStream(h)){m.destroy(h.on("error",m.nop),e)}throw e}this.method=o;this.responseHeaders=C||null;this.opaque=i||null;this.callback=t;this.res=null;this.abort=null;this.body=h;this.trailers={};this.context=null;this.onInfo=f||null;this.throwOnError=P;this.highWaterMark=D;this.signal=n;this.reason=null;this.removeAbortListener=null;if(m.isStream(h)){h.on("error",(e=>{this.onError(e)}))}if(this.signal){if(this.signal.aborted){this.reason=this.signal.reason??new d}else{this.removeAbortListener=m.addAbortListener(this.signal,(()=>{this.reason=this.signal.reason??new d;if(this.res){m.destroy(this.res.on("error",m.nop),this.reason)}else if(this.abort){this.abort(this.reason)}if(this.removeAbortListener){this.res?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}))}}}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{callback:a,opaque:d,abort:f,context:C,responseHeaders:P,highWaterMark:D}=this;const k=P==="raw"?m.parseRawHeaders(t):m.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:k})}return}const L=P==="raw"?m.parseHeaders(t):k;const F=L["content-type"];const q=L["content-length"];const V=new i({resume:n,abort:f,contentType:F,contentLength:this.method!=="HEAD"&&q?Number(q):null,highWaterMark:D});if(this.removeAbortListener){V.on("close",this.removeAbortListener)}this.callback=null;this.res=V;if(a!==null){if(this.throwOnError&&e>=400){this.runInAsyncScope(h,null,{callback:a,body:V,contentType:F,statusCode:e,statusMessage:o,headers:k})}else{this.runInAsyncScope(a,null,null,{statusCode:e,headers:k,trailers:this.trailers,opaque:d,body:V,context:C})}}}onData(e){return this.res.push(e)}onComplete(e){m.parseHeaders(e,this.trailers);this.res.push(null)}onError(e){const{res:t,callback:n,body:o,opaque:i}=this;if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:i})}))}if(t){this.res=null;queueMicrotask((()=>{m.destroy(t,e)}))}if(o){this.body=null;m.destroy(o,e)}if(this.removeAbortListener){t?.off("close",this.removeAbortListener);this.removeAbortListener();this.removeAbortListener=null}}}function request(e,t){if(t===undefined){return new Promise(((t,n)=>{request.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{this.dispatch(e,new RequestHandler(e,t))}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=request;e.exports.RequestHandler=RequestHandler},3560:(e,t,n)=>{const o=n(4589);const{finished:i,PassThrough:a}=n(7075);const{InvalidArgumentError:d,InvalidReturnValueError:m}=n(8707);const h=n(3440);const{getResolveErrorBodyCallback:f}=n(7655);const{AsyncResource:C}=n(6698);const{addSignal:P,removeSignal:D}=n(158);class StreamHandler extends C{constructor(e,t,n){if(!e||typeof e!=="object"){throw new d("invalid opts")}const{signal:o,method:i,opaque:a,body:m,onInfo:f,responseHeaders:C,throwOnError:D}=e;try{if(typeof n!=="function"){throw new d("invalid callback")}if(typeof t!=="function"){throw new d("invalid factory")}if(o&&typeof o.on!=="function"&&typeof o.addEventListener!=="function"){throw new d("signal must be an EventEmitter or EventTarget")}if(i==="CONNECT"){throw new d("invalid method")}if(f&&typeof f!=="function"){throw new d("invalid onInfo callback")}super("UNDICI_STREAM")}catch(e){if(h.isStream(m)){h.destroy(m.on("error",h.nop),e)}throw e}this.responseHeaders=C||null;this.opaque=a||null;this.factory=t;this.callback=n;this.res=null;this.abort=null;this.context=null;this.trailers=null;this.body=m;this.onInfo=f||null;this.throwOnError=D||false;if(h.isStream(m)){m.on("error",(e=>{this.onError(e)}))}P(this,o)}onConnect(e,t){if(this.reason){e(this.reason);return}o(this.callback);this.abort=e;this.context=t}onHeaders(e,t,n,o){const{factory:d,opaque:C,context:P,callback:D,responseHeaders:k}=this;const L=k==="raw"?h.parseRawHeaders(t):h.parseHeaders(t);if(e<200){if(this.onInfo){this.onInfo({statusCode:e,headers:L})}return}this.factory=null;let F;if(this.throwOnError&&e>=400){const n=k==="raw"?h.parseHeaders(t):L;const i=n["content-type"];F=new a;this.callback=null;this.runInAsyncScope(f,null,{callback:D,body:F,contentType:i,statusCode:e,statusMessage:o,headers:L})}else{if(d===null){return}F=this.runInAsyncScope(d,null,{statusCode:e,headers:L,opaque:C,context:P});if(!F||typeof F.write!=="function"||typeof F.end!=="function"||typeof F.on!=="function"){throw new m("expected Writable")}i(F,{readable:false},(e=>{const{callback:t,res:n,opaque:o,trailers:i,abort:a}=this;this.res=null;if(e||!n.readable){h.destroy(n,e)}this.callback=null;this.runInAsyncScope(t,null,e||null,{opaque:o,trailers:i});if(e){a()}}))}F.on("drain",n);this.res=F;const q=F.writableNeedDrain!==undefined?F.writableNeedDrain:F._writableState?.needDrain;return q!==true}onData(e){const{res:t}=this;return t?t.write(e):true}onComplete(e){const{res:t}=this;D(this);if(!t){return}this.trailers=h.parseHeaders(e);t.end()}onError(e){const{res:t,callback:n,opaque:o,body:i}=this;D(this);this.factory=null;if(t){this.res=null;h.destroy(t,e)}else if(n){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(n,null,e,{opaque:o})}))}if(i){this.body=null;h.destroy(i,e)}}}function stream(e,t,n){if(n===undefined){return new Promise(((n,o)=>{stream.call(this,e,t,((e,t)=>e?o(e):n(t)))}))}try{this.dispatch(e,new StreamHandler(e,t,n))}catch(t){if(typeof n!=="function"){throw t}const o=e?.opaque;queueMicrotask((()=>n(t,{opaque:o})))}}e.exports=stream},1882:(e,t,n)=>{const{InvalidArgumentError:o,SocketError:i}=n(8707);const{AsyncResource:a}=n(6698);const d=n(3440);const{addSignal:m,removeSignal:h}=n(158);const f=n(4589);class UpgradeHandler extends a{constructor(e,t){if(!e||typeof e!=="object"){throw new o("invalid opts")}if(typeof t!=="function"){throw new o("invalid callback")}const{signal:n,opaque:i,responseHeaders:a}=e;if(n&&typeof n.on!=="function"&&typeof n.addEventListener!=="function"){throw new o("signal must be an EventEmitter or EventTarget")}super("UNDICI_UPGRADE");this.responseHeaders=a||null;this.opaque=i||null;this.callback=t;this.abort=null;this.context=null;m(this,n)}onConnect(e,t){if(this.reason){e(this.reason);return}f(this.callback);this.abort=e;this.context=null}onHeaders(){throw new i("bad upgrade",null)}onUpgrade(e,t,n){f(e===101);const{callback:o,opaque:i,context:a}=this;h(this);this.callback=null;const m=this.responseHeaders==="raw"?d.parseRawHeaders(t):d.parseHeaders(t);this.runInAsyncScope(o,null,null,{headers:m,socket:n,opaque:i,context:a})}onError(e){const{callback:t,opaque:n}=this;h(this);if(t){this.callback=null;queueMicrotask((()=>{this.runInAsyncScope(t,null,e,{opaque:n})}))}}}function upgrade(e,t){if(t===undefined){return new Promise(((t,n)=>{upgrade.call(this,e,((e,o)=>e?n(e):t(o)))}))}try{const n=new UpgradeHandler(e,t);this.dispatch({...e,method:e.method||"GET",upgrade:e.protocol||"Websocket"},n)}catch(n){if(typeof t!=="function"){throw n}const o=e?.opaque;queueMicrotask((()=>t(n,{opaque:o})))}}e.exports=upgrade},6615:(e,t,n)=>{e.exports.request=n(4043);e.exports.stream=n(3560);e.exports.pipeline=n(6862);e.exports.upgrade=n(1882);e.exports.connect=n(2279)},9927:(e,t,n)=>{const o=n(4589);const{Readable:i}=n(7075);const{RequestAbortedError:a,NotSupportedError:d,InvalidArgumentError:m,AbortError:h}=n(8707);const f=n(3440);const{ReadableStreamFrom:C}=n(3440);const P=Symbol("kConsume");const D=Symbol("kReading");const k=Symbol("kBody");const L=Symbol("kAbort");const F=Symbol("kContentType");const q=Symbol("kContentLength");const noop=()=>{};class BodyReadable extends i{constructor({resume:e,abort:t,contentType:n="",contentLength:o,highWaterMark:i=64*1024}){super({autoDestroy:true,read:e,highWaterMark:i});this._readableState.dataEmitted=false;this[L]=t;this[P]=null;this[k]=null;this[F]=n;this[q]=o;this[D]=false}destroy(e){if(!e&&!this._readableState.endEmitted){e=new a}if(e){this[L]()}return super.destroy(e)}_destroy(e,t){if(!this[D]){setImmediate((()=>{t(e)}))}else{t(e)}}on(e,...t){if(e==="data"||e==="readable"){this[D]=true}return super.on(e,...t)}addListener(e,...t){return this.on(e,...t)}off(e,...t){const n=super.off(e,...t);if(e==="data"||e==="readable"){this[D]=this.listenerCount("data")>0||this.listenerCount("readable")>0}return n}removeListener(e,...t){return this.off(e,...t)}push(e){if(this[P]&&e!==null){consumePush(this[P],e);return this[D]?super.push(e):true}return super.push(e)}async text(){return consume(this,"text")}async json(){return consume(this,"json")}async blob(){return consume(this,"blob")}async bytes(){return consume(this,"bytes")}async arrayBuffer(){return consume(this,"arrayBuffer")}async formData(){throw new d}get bodyUsed(){return f.isDisturbed(this)}get body(){if(!this[k]){this[k]=C(this);if(this[P]){this[k].getReader();o(this[k].locked)}}return this[k]}async dump(e){let t=Number.isFinite(e?.limit)?e.limit:128*1024;const n=e?.signal;if(n!=null&&(typeof n!=="object"||!("aborted"in n))){throw new m("signal must be an AbortSignal")}n?.throwIfAborted();if(this._readableState.closeEmitted){return null}return await new Promise(((e,o)=>{if(this[q]>t){this.destroy(new h)}const onAbort=()=>{this.destroy(n.reason??new h)};n?.addEventListener("abort",onAbort);this.on("close",(function(){n?.removeEventListener("abort",onAbort);if(n?.aborted){o(n.reason??new h)}else{e(null)}})).on("error",noop).on("data",(function(e){t-=e.length;if(t<=0){this.destroy()}})).resume()}))}}function isLocked(e){return e[k]&&e[k].locked===true||e[P]}function isUnusable(e){return f.isDisturbed(e)||isLocked(e)}async function consume(e,t){o(!e[P]);return new Promise(((n,o)=>{if(isUnusable(e)){const t=e._readableState;if(t.destroyed&&t.closeEmitted===false){e.on("error",(e=>{o(e)})).on("close",(()=>{o(new TypeError("unusable"))}))}else{o(t.errored??new TypeError("unusable"))}}else{queueMicrotask((()=>{e[P]={type:t,stream:e,resolve:n,reject:o,length:0,body:[]};e.on("error",(function(e){consumeFinish(this[P],e)})).on("close",(function(){if(this[P].body!==null){consumeFinish(this[P],new a)}}));consumeStart(e[P])}))}}))}function consumeStart(e){if(e.body===null){return}const{_readableState:t}=e.stream;if(t.bufferIndex){const n=t.bufferIndex;const o=t.buffer.length;for(let i=n;i<o;i++){consumePush(e,t.buffer[i])}}else{for(const n of t.buffer){consumePush(e,n)}}if(t.endEmitted){consumeEnd(this[P])}else{e.stream.on("end",(function(){consumeEnd(this[P])}))}e.stream.resume();while(e.stream.read()!=null){}}function chunksDecode(e,t){if(e.length===0||t===0){return""}const n=e.length===1?e[0]:Buffer.concat(e,t);const o=n.length;const i=o>2&&n[0]===239&&n[1]===187&&n[2]===191?3:0;return n.utf8Slice(i,o)}function chunksConcat(e,t){if(e.length===0||t===0){return new Uint8Array(0)}if(e.length===1){return new Uint8Array(e[0])}const n=new Uint8Array(Buffer.allocUnsafeSlow(t).buffer);let o=0;for(let t=0;t<e.length;++t){const i=e[t];n.set(i,o);o+=i.length}return n}function consumeEnd(e){const{type:t,body:n,resolve:o,stream:i,length:a}=e;try{if(t==="text"){o(chunksDecode(n,a))}else if(t==="json"){o(JSON.parse(chunksDecode(n,a)))}else if(t==="arrayBuffer"){o(chunksConcat(n,a).buffer)}else if(t==="blob"){o(new Blob(n,{type:i[F]}))}else if(t==="bytes"){o(chunksConcat(n,a))}consumeFinish(e)}catch(e){i.destroy(e)}}function consumePush(e,t){e.length+=t.length;e.body.push(t)}function consumeFinish(e,t){if(e.body===null){return}if(t){e.reject(t)}else{e.resolve()}e.type=null;e.stream=null;e.resolve=null;e.reject=null;e.length=0;e.body=null}e.exports={Readable:BodyReadable,chunksDecode:chunksDecode}},7655:(e,t,n)=>{const o=n(4589);const{ResponseStatusCodeError:i}=n(8707);const{chunksDecode:a}=n(9927);const d=128*1024;async function getResolveErrorBodyCallback({callback:e,body:t,contentType:n,statusCode:m,statusMessage:h,headers:f}){o(t);let C=[];let P=0;try{for await(const e of t){C.push(e);P+=e.length;if(P>d){C=[];P=0;break}}}catch{C=[];P=0}const D=`Response status code ${m}${h?`: ${h}`:""}`;if(m===204||!n||!P){queueMicrotask((()=>e(new i(D,m,f))));return}const k=Error.stackTraceLimit;Error.stackTraceLimit=0;let L;try{if(isContentTypeApplicationJson(n)){L=JSON.parse(a(C,P))}else if(isContentTypeText(n)){L=a(C,P)}}catch{}finally{Error.stackTraceLimit=k}queueMicrotask((()=>e(new i(D,m,f,L))))}const isContentTypeApplicationJson=e=>e.length>15&&e[11]==="/"&&e[0]==="a"&&e[1]==="p"&&e[2]==="p"&&e[3]==="l"&&e[4]==="i"&&e[5]==="c"&&e[6]==="a"&&e[7]==="t"&&e[8]==="i"&&e[9]==="o"&&e[10]==="n"&&e[12]==="j"&&e[13]==="s"&&e[14]==="o"&&e[15]==="n";const isContentTypeText=e=>e.length>4&&e[4]==="/"&&e[0]==="t"&&e[1]==="e"&&e[2]==="x"&&e[3]==="t";e.exports={getResolveErrorBodyCallback:getResolveErrorBodyCallback,isContentTypeApplicationJson:isContentTypeApplicationJson,isContentTypeText:isContentTypeText}},9136:(e,t,n)=>{const o=n(7030);const i=n(4589);const a=n(3440);const{InvalidArgumentError:d,ConnectTimeoutError:m}=n(8707);const h=n(6603);function noop(){}let f;let C;if(global.FinalizationRegistry&&!(process.env.NODE_V8_COVERAGE||process.env.UNDICI_NO_FG)){C=class WeakSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map;this._sessionRegistry=new global.FinalizationRegistry((e=>{if(this._sessionCache.size<this._maxCachedSessions){return}const t=this._sessionCache.get(e);if(t!==undefined&&t.deref()===undefined){this._sessionCache.delete(e)}}))}get(e){const t=this._sessionCache.get(e);return t?t.deref():null}set(e,t){if(this._maxCachedSessions===0){return}this._sessionCache.set(e,new WeakRef(t));this._sessionRegistry.register(t,e)}}}else{C=class SimpleSessionCache{constructor(e){this._maxCachedSessions=e;this._sessionCache=new Map}get(e){return this._sessionCache.get(e)}set(e,t){if(this._maxCachedSessions===0){return}if(this._sessionCache.size>=this._maxCachedSessions){const{value:e}=this._sessionCache.keys().next();this._sessionCache.delete(e)}this._sessionCache.set(e,t)}}}function buildConnector({allowH2:e,maxCachedSessions:t,socketPath:m,timeout:h,session:D,...k}){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new d("maxCachedSessions must be a positive integer or zero")}const L={path:m,...k};const F=new C(t==null?100:t);h=h==null?1e4:h;e=e!=null?e:false;return function connect({hostname:t,host:d,protocol:m,port:C,servername:k,localAddress:q,httpSocket:V},ee){let te;if(m==="https:"){if(!f){f=n(1692)}k=k||L.servername||a.getServerName(d)||null;const o=k||t;i(o);const m=D||F.get(o)||null;C=C||443;te=f.connect({highWaterMark:16384,...L,servername:k,session:m,localAddress:q,ALPNProtocols:e?["http/1.1","h2"]:["http/1.1"],socket:V,port:C,host:t});te.on("session",(function(e){F.set(o,e)}))}else{i(!V,"httpSocket can only be sent on TLS update");C=C||80;te=o.connect({highWaterMark:64*1024,...L,localAddress:q,port:C,host:t})}if(L.keepAlive==null||L.keepAlive){const e=L.keepAliveInitialDelay===undefined?6e4:L.keepAliveInitialDelay;te.setKeepAlive(true,e)}const re=P(new WeakRef(te),{timeout:h,hostname:t,port:C});te.setNoDelay(true).once(m==="https:"?"secureConnect":"connect",(function(){queueMicrotask(re);if(ee){const e=ee;ee=null;e(null,this)}})).on("error",(function(e){queueMicrotask(re);if(ee){const t=ee;ee=null;t(e)}}));return te}}const P=process.platform==="win32"?(e,t)=>{if(!t.timeout){return noop}let n=null;let o=null;const i=h.setFastTimeout((()=>{n=setImmediate((()=>{o=setImmediate((()=>onConnectTimeout(e.deref(),t)))}))}),t.timeout);return()=>{h.clearFastTimeout(i);clearImmediate(n);clearImmediate(o)}}:(e,t)=>{if(!t.timeout){return noop}let n=null;const o=h.setFastTimeout((()=>{n=setImmediate((()=>{onConnectTimeout(e.deref(),t)}))}),t.timeout);return()=>{h.clearFastTimeout(o);clearImmediate(n)}};function onConnectTimeout(e,t){if(e==null){return}let n="Connect Timeout Error";if(Array.isArray(e.autoSelectFamilyAttemptedAddresses)){n+=` (attempted addresses: ${e.autoSelectFamilyAttemptedAddresses.join(", ")},`}else{n+=` (attempted address: ${t.hostname}:${t.port},`}n+=` timeout: ${t.timeout}ms)`;a.destroy(e,new m(n))}e.exports=buildConnector},735:e=>{const t={};const n=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e<n.length;++e){const o=n[e];const i=o.toLowerCase();t[o]=t[i]=i}Object.setPrototypeOf(t,null);e.exports={wellknownHeaderNames:n,headerNameLowerCasedRecord:t}},2414:(e,t,n)=>{const o=n(3053);const i=n(7975);const a=i.debuglog("undici");const d=i.debuglog("fetch");const m=i.debuglog("websocket");let h=false;const f={beforeConnect:o.channel("undici:client:beforeConnect"),connected:o.channel("undici:client:connected"),connectError:o.channel("undici:client:connectError"),sendHeaders:o.channel("undici:client:sendHeaders"),create:o.channel("undici:request:create"),bodySent:o.channel("undici:request:bodySent"),headers:o.channel("undici:request:headers"),trailers:o.channel("undici:request:trailers"),error:o.channel("undici:request:error"),open:o.channel("undici:websocket:open"),close:o.channel("undici:websocket:close"),socketError:o.channel("undici:websocket:socket_error"),ping:o.channel("undici:websocket:ping"),pong:o.channel("undici:websocket:pong")};if(a.enabled||d.enabled){const e=d.enabled?d:a;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a}}=t;e("connecting to %s using %s%s",`${a}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a}}=t;e("connected to %s using %s%s",`${a}${i?`:${i}`:""}`,o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a},error:d}=t;e("connection to %s using %s%s errored - %s",`${a}${i?`:${i}`:""}`,o,n,d.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}));o.channel("undici:request:headers").subscribe((t=>{const{request:{method:n,path:o,origin:i},response:{statusCode:a}}=t;e("received response to %s %s/%s - HTTP %d",n,i,o,a)}));o.channel("undici:request:trailers").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("trailers received from %s %s/%s",n,i,o)}));o.channel("undici:request:error").subscribe((t=>{const{request:{method:n,path:o,origin:i},error:a}=t;e("request to %s %s/%s errored - %s",n,i,o,a.message)}));h=true}if(m.enabled){if(!h){const e=a.enabled?a:m;o.channel("undici:client:beforeConnect").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a}}=t;e("connecting to %s%s using %s%s",a,i?`:${i}`:"",o,n)}));o.channel("undici:client:connected").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a}}=t;e("connected to %s%s using %s%s",a,i?`:${i}`:"",o,n)}));o.channel("undici:client:connectError").subscribe((t=>{const{connectParams:{version:n,protocol:o,port:i,host:a},error:d}=t;e("connection to %s%s using %s%s errored - %s",a,i?`:${i}`:"",o,n,d.message)}));o.channel("undici:client:sendHeaders").subscribe((t=>{const{request:{method:n,path:o,origin:i}}=t;e("sending request to %s %s/%s",n,i,o)}))}o.channel("undici:websocket:open").subscribe((e=>{const{address:{address:t,port:n}}=e;m("connection opened %s%s",t,n?`:${n}`:"")}));o.channel("undici:websocket:close").subscribe((e=>{const{websocket:t,code:n,reason:o}=e;m("closed connection to %s - %s %s",t.url,n,o)}));o.channel("undici:websocket:socket_error").subscribe((e=>{m("connection errored - %s",e.message)}));o.channel("undici:websocket:ping").subscribe((e=>{m("ping received")}));o.channel("undici:websocket:pong").subscribe((e=>{m("pong received")}))}e.exports={channels:f}},8707:e=>{const t=Symbol.for("undici.error.UND_ERR");class UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[t]===true}[t]=true}const n=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT");class ConnectTimeoutError extends UndiciError{constructor(e){super(e);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[n]===true}[n]=true}const o=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT");class HeadersTimeoutError extends UndiciError{constructor(e){super(e);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[o]===true}[o]=true}const i=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW");class HeadersOverflowError extends UndiciError{constructor(e){super(e);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}const a=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT");class BodyTimeoutError extends UndiciError{constructor(e){super(e);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[a]===true}[a]=true}const d=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE");class ResponseStatusCodeError extends UndiciError{constructor(e,t,n,o){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=o;this.status=t;this.statusCode=t;this.headers=n}static[Symbol.hasInstance](e){return e&&e[d]===true}[d]=true}const m=Symbol.for("undici.error.UND_ERR_INVALID_ARG");class InvalidArgumentError extends UndiciError{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}static[Symbol.hasInstance](e){return e&&e[m]===true}[m]=true}const h=Symbol.for("undici.error.UND_ERR_INVALID_RETURN_VALUE");class InvalidReturnValueError extends UndiciError{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}static[Symbol.hasInstance](e){return e&&e[h]===true}[h]=true}const f=Symbol.for("undici.error.UND_ERR_ABORT");class AbortError extends UndiciError{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted";this.code="UND_ERR_ABORT"}static[Symbol.hasInstance](e){return e&&e[f]===true}[f]=true}const C=Symbol.for("undici.error.UND_ERR_ABORTED");class RequestAbortedError extends AbortError{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}static[Symbol.hasInstance](e){return e&&e[C]===true}[C]=true}const P=Symbol.for("undici.error.UND_ERR_INFO");class InformationalError extends UndiciError{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}static[Symbol.hasInstance](e){return e&&e[P]===true}[P]=true}const D=Symbol.for("undici.error.UND_ERR_REQ_CONTENT_LENGTH_MISMATCH");class RequestContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[D]===true}[D]=true}const k=Symbol.for("undici.error.UND_ERR_RES_CONTENT_LENGTH_MISMATCH");class ResponseContentLengthMismatchError extends UndiciError{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}static[Symbol.hasInstance](e){return e&&e[k]===true}[k]=true}const L=Symbol.for("undici.error.UND_ERR_DESTROYED");class ClientDestroyedError extends UndiciError{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}static[Symbol.hasInstance](e){return e&&e[L]===true}[L]=true}const F=Symbol.for("undici.error.UND_ERR_CLOSED");class ClientClosedError extends UndiciError{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}static[Symbol.hasInstance](e){return e&&e[F]===true}[F]=true}const q=Symbol.for("undici.error.UND_ERR_SOCKET");class SocketError extends UndiciError{constructor(e,t){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=t}static[Symbol.hasInstance](e){return e&&e[q]===true}[q]=true}const V=Symbol.for("undici.error.UND_ERR_NOT_SUPPORTED");class NotSupportedError extends UndiciError{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}static[Symbol.hasInstance](e){return e&&e[V]===true}[V]=true}const ee=Symbol.for("undici.error.UND_ERR_BPL_MISSING_UPSTREAM");class BalancedPoolMissingUpstreamError extends UndiciError{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}static[Symbol.hasInstance](e){return e&&e[ee]===true}[ee]=true}const te=Symbol.for("undici.error.UND_ERR_HTTP_PARSER");class HTTPParserError extends Error{constructor(e,t,n){super(e);this.name="HTTPParserError";this.code=t?`HPE_${t}`:undefined;this.data=n?n.toString():undefined}static[Symbol.hasInstance](e){return e&&e[te]===true}[te]=true}const re=Symbol.for("undici.error.UND_ERR_RES_EXCEEDED_MAX_SIZE");class ResponseExceededMaxSizeError extends UndiciError{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}static[Symbol.hasInstance](e){return e&&e[re]===true}[re]=true}const ne=Symbol.for("undici.error.UND_ERR_REQ_RETRY");class RequestRetryError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[ne]===true}[ne]=true}const se=Symbol.for("undici.error.UND_ERR_RESPONSE");class ResponseError extends UndiciError{constructor(e,t,{headers:n,data:o}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=t;this.data=o;this.headers=n}static[Symbol.hasInstance](e){return e&&e[se]===true}[se]=true}const oe=Symbol.for("undici.error.UND_ERR_PRX_TLS");class SecureProxyConnectionError extends UndiciError{constructor(e,t,n){super(t,{cause:e,...n??{}});this.name="SecureProxyConnectionError";this.message=t||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}static[Symbol.hasInstance](e){return e&&e[oe]===true}[oe]=true}const ie=Symbol.for("undici.error.UND_ERR_WS_MESSAGE_SIZE_EXCEEDED");class MessageSizeExceededError extends UndiciError{constructor(e){super(e);this.name="MessageSizeExceededError";this.message=e||"Max decompressed message size exceeded";this.code="UND_ERR_WS_MESSAGE_SIZE_EXCEEDED"}static[Symbol.hasInstance](e){return e&&e[ie]===true}get[ie](){return true}}e.exports={AbortError:AbortError,HTTPParserError:HTTPParserError,UndiciError:UndiciError,HeadersTimeoutError:HeadersTimeoutError,HeadersOverflowError:HeadersOverflowError,BodyTimeoutError:BodyTimeoutError,RequestContentLengthMismatchError:RequestContentLengthMismatchError,ConnectTimeoutError:ConnectTimeoutError,ResponseStatusCodeError:ResponseStatusCodeError,InvalidArgumentError:InvalidArgumentError,InvalidReturnValueError:InvalidReturnValueError,RequestAbortedError:RequestAbortedError,ClientDestroyedError:ClientDestroyedError,ClientClosedError:ClientClosedError,InformationalError:InformationalError,SocketError:SocketError,NotSupportedError:NotSupportedError,ResponseContentLengthMismatchError:ResponseContentLengthMismatchError,BalancedPoolMissingUpstreamError:BalancedPoolMissingUpstreamError,ResponseExceededMaxSizeError:ResponseExceededMaxSizeError,RequestRetryError:RequestRetryError,ResponseError:ResponseError,SecureProxyConnectionError:SecureProxyConnectionError,MessageSizeExceededError:MessageSizeExceededError}},4655:(e,t,n)=>{const{InvalidArgumentError:o,NotSupportedError:i}=n(8707);const a=n(4589);const{isValidHTTPToken:d,isValidHeaderValue:m,isStream:h,destroy:f,isBuffer:C,isFormDataLike:P,isIterable:D,isBlobLike:k,buildURL:L,validateHandler:F,getServerName:q,normalizedMethodRecords:V}=n(3440);const{channels:ee}=n(2414);const{headerNameLowerCasedRecord:te}=n(735);const re=/[^\u0021-\u00ff]/;const ne=Symbol("handler");class Request{constructor(e,{path:t,method:n,body:i,headers:a,query:te,idempotent:se,blocking:oe,upgrade:ie,headersTimeout:ae,bodyTimeout:ce,reset:le,throwOnError:ue,expectContinue:de,servername:pe},Ae){if(typeof t!=="string"){throw new o("path must be a string")}else if(t[0]!=="/"&&!(t.startsWith("http://")||t.startsWith("https://"))&&n!=="CONNECT"){throw new o("path must be an absolute URL or start with a slash")}else if(re.test(t)){throw new o("invalid request path")}if(typeof n!=="string"){throw new o("method must be a string")}else if(V[n]===undefined&&!d(n)){throw new o("invalid request method")}if(ie&&typeof ie!=="string"){throw new o("upgrade must be a string")}if(ie&&!m(ie)){throw new o("invalid upgrade header")}if(ae!=null&&(!Number.isFinite(ae)||ae<0)){throw new o("invalid headersTimeout")}if(ce!=null&&(!Number.isFinite(ce)||ce<0)){throw new o("invalid bodyTimeout")}if(le!=null&&typeof le!=="boolean"){throw new o("invalid reset")}if(de!=null&&typeof de!=="boolean"){throw new o("invalid expectContinue")}this.headersTimeout=ae;this.bodyTimeout=ce;this.throwOnError=ue===true;this.method=n;this.abort=null;if(i==null){this.body=null}else if(h(i)){this.body=i;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=function autoDestroy(){f(this)};this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(C(i)){this.body=i.byteLength?i:null}else if(ArrayBuffer.isView(i)){this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null}else if(i instanceof ArrayBuffer){this.body=i.byteLength?Buffer.from(i):null}else if(typeof i==="string"){this.body=i.length?Buffer.from(i):null}else if(P(i)||D(i)||k(i)){this.body=i}else{throw new o("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=ie||null;this.path=te?L(t,te):t;this.origin=e;this.idempotent=se==null?n==="HEAD"||n==="GET":se;this.blocking=oe==null?false:oe;this.reset=le==null?null:le;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=de!=null?de:false;if(Array.isArray(a)){if(a.length%2!==0){throw new o("headers array must be even")}for(let e=0;e<a.length;e+=2){processHeader(this,a[e],a[e+1])}}else if(a&&typeof a==="object"){if(a[Symbol.iterator]){for(const e of a){if(!Array.isArray(e)||e.length!==2){throw new o("headers must be in key-value pair format")}processHeader(this,e[0],e[1])}}else{const e=Object.keys(a);for(let t=0;t<e.length;++t){processHeader(this,e[t],a[e[t]])}}}else if(a!=null){throw new o("headers must be an object or an array")}F(Ae,n,ie);this.servername=pe||q(this.host);this[ne]=Ae;if(ee.create.hasSubscribers){ee.create.publish({request:this})}}onBodySent(e){if(this[ne].onBodySent){try{return this[ne].onBodySent(e)}catch(e){this.abort(e)}}}onRequestSent(){if(ee.bodySent.hasSubscribers){ee.bodySent.publish({request:this})}if(this[ne].onRequestSent){try{return this[ne].onRequestSent()}catch(e){this.abort(e)}}}onConnect(e){a(!this.aborted);a(!this.completed);if(this.error){e(this.error)}else{this.abort=e;return this[ne].onConnect(e)}}onResponseStarted(){return this[ne].onResponseStarted?.()}onHeaders(e,t,n,o){a(!this.aborted);a(!this.completed);if(ee.headers.hasSubscribers){ee.headers.publish({request:this,response:{statusCode:e,headers:t,statusText:o}})}try{return this[ne].onHeaders(e,t,n,o)}catch(e){this.abort(e)}}onData(e){a(!this.aborted);a(!this.completed);try{return this[ne].onData(e)}catch(e){this.abort(e);return false}}onUpgrade(e,t,n){a(!this.aborted);a(!this.completed);return this[ne].onUpgrade(e,t,n)}onComplete(e){this.onFinally();a(!this.aborted);this.completed=true;if(ee.trailers.hasSubscribers){ee.trailers.publish({request:this,trailers:e})}try{return this[ne].onComplete(e)}catch(e){this.onError(e)}}onError(e){this.onFinally();if(ee.error.hasSubscribers){ee.error.publish({request:this,error:e})}if(this.aborted){return}this.aborted=true;return this[ne].onError(e)}onFinally(){if(this.errorHandler){this.body.off("error",this.errorHandler);this.errorHandler=null}if(this.endHandler){this.body.off("end",this.endHandler);this.endHandler=null}}addHeader(e,t){processHeader(this,e,t);return this}}function processHeader(e,t,n){if(n&&(typeof n==="object"&&!Array.isArray(n))){throw new o(`invalid ${t} header`)}else if(n===undefined){return}let a=te[t];if(a===undefined){a=t.toLowerCase();if(te[a]===undefined&&!d(a)){throw new o("invalid header key")}}if(Array.isArray(n)){const e=[];for(let i=0;i<n.length;i++){if(typeof n[i]==="string"){if(!m(n[i])){throw new o(`invalid ${t} header`)}e.push(n[i])}else if(n[i]===null){e.push("")}else if(typeof n[i]==="object"){throw new o(`invalid ${t} header`)}else{e.push(`${n[i]}`)}}n=e}else if(typeof n==="string"){if(!m(n)){throw new o(`invalid ${t} header`)}}else if(n===null){n=""}else{n=`${n}`}if(a==="host"){if(e.host!==null){throw new o("duplicate host header")}if(typeof n!=="string"){throw new o("invalid host header")}e.host=n}else if(a==="content-length"){if(e.contentLength!==null){throw new o("duplicate content-length header")}e.contentLength=parseInt(n,10);if(!Number.isFinite(e.contentLength)){throw new o("invalid content-length header")}}else if(e.contentType===null&&a==="content-type"){e.contentType=n;e.headers.push(t,n)}else if(a==="transfer-encoding"||a==="keep-alive"||a==="upgrade"){throw new o(`invalid ${a} header`)}else if(a==="connection"){const t=typeof n==="string"?n.toLowerCase():null;if(t!=="close"&&t!=="keep-alive"){throw new o("invalid connection header")}if(t==="close"){e.reset=true}}else if(a==="expect"){throw new i("expect header not supported")}else{e.headers.push(t,n)}}e.exports=Request},6443:e=>{e.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")}},7752:(e,t,n)=>{const{wellknownHeaderNames:o,headerNameLowerCasedRecord:i}=n(735);class TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,t,n){if(n===undefined||n>=e.length){throw new TypeError("Unreachable")}const o=this.code=e.charCodeAt(n);if(o>127){throw new TypeError("key must be ascii string")}if(e.length!==++n){this.middle=new TstNode(e,t,n)}else{this.value=t}}add(e,t){const n=e.length;if(n===0){throw new TypeError("Unreachable")}let o=0;let i=this;while(true){const a=e.charCodeAt(o);if(a>127){throw new TypeError("key must be ascii string")}if(i.code===a){if(n===++o){i.value=t;break}else if(i.middle!==null){i=i.middle}else{i.middle=new TstNode(e,t,o);break}}else if(i.code<a){if(i.left!==null){i=i.left}else{i.left=new TstNode(e,t,o);break}}else if(i.right!==null){i=i.right}else{i.right=new TstNode(e,t,o);break}}}search(e){const t=e.length;let n=0;let o=this;while(o!==null&&n<t){let i=e[n];if(i<=90&&i>=65){i|=32}while(o!==null){if(i===o.code){if(t===++n){return o}o=o.middle;break}o=o.code<i?o.left:o.right}}return null}}class TernarySearchTree{node=null;insert(e,t){if(this.node===null){this.node=new TstNode(e,t,0)}else{this.node.add(e,t)}}lookup(e){return this.node?.search(e)?.value??null}}const a=new TernarySearchTree;for(let e=0;e<o.length;++e){const t=i[o[e]];a.insert(t,t)}e.exports={TernarySearchTree:TernarySearchTree,tree:a}},3440:(e,t,n)=>{const o=n(4589);const{kDestroyed:i,kBodyUsed:a,kListeners:d,kBody:m}=n(6443);const{IncomingMessage:h}=n(7067);const f=n(7075);const C=n(7030);const{Blob:P}=n(4573);const D=n(7975);const{stringify:k}=n(1792);const{EventEmitter:L}=n(8474);const{InvalidArgumentError:F}=n(8707);const{headerNameLowerCasedRecord:q}=n(735);const{tree:V}=n(7752);const[ee,te]=process.versions.node.split(".").map((e=>Number(e)));class BodyAsyncIterable{constructor(e){this[m]=e;this[a]=false}async*[Symbol.asyncIterator](){o(!this[a],"disturbed");this[a]=true;yield*this[m]}}function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){o(false)}))}if(typeof e.readableDidRead!=="boolean"){e[a]=false;L.prototype.on.call(e,"data",(function(){this[a]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new BodyAsyncIterable(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new BodyAsyncIterable(e)}else{return e}}function nop(){}function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}function isBlobLike(e){if(e===null){return false}else if(e instanceof P){return true}else if(typeof e!=="object"){return false}else{const t=e[Symbol.toStringTag];return(t==="Blob"||t==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}function buildURL(e,t){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const n=k(t);if(n){e+="?"+n}return e}function isValidPort(e){const t=parseInt(e,10);return t===Number(e)&&t>=0&&t<=65535}function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new F("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new F("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new F("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new F("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new F("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new F("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new F("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new F("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const t=e.port!=null?e.port:e.protocol==="https:"?443:80;let n=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${t}`;let o=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(n[n.length-1]==="/"){n=n.slice(0,n.length-1)}if(o&&o[0]!=="/"){o=`/${o}`}return new URL(`${n}${o}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new F("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new F("invalid url")}return e}function getHostname(e){if(e[0]==="["){const t=e.indexOf("]");o(t!==-1);return e.substring(1,t)}const t=e.indexOf(":");if(t===-1)return e;return e.substring(0,t)}function getServerName(e){if(!e){return null}o(typeof e==="string");const t=getHostname(e);if(C.isIP(t)){return""}return t}function deepClone(e){return JSON.parse(JSON.stringify(e))}function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const t=e._readableState;return t&&t.objectMode===false&&t.ended===true&&Number.isFinite(t.length)?t.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}function isDestroyed(e){return e&&!!(e.destroyed||e[i]||f.isDestroyed?.(e))}function destroy(e,t){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===h){e.socket=null}e.destroy(t)}else if(t){queueMicrotask((()=>{e.emit("error",t)}))}if(e.destroyed!==true){e[i]=true}}const re=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const t=e.toString().match(re);return t?parseInt(t[1],10)*1e3:null}function headerNameToString(e){return typeof e==="string"?q[e]??e.toLowerCase():V.lookup(e)??e.toString("latin1").toLowerCase()}function bufferToLowerCasedHeaderName(e){return V.lookup(e)??e.toString("latin1").toLowerCase()}function parseHeaders(e,t){if(t===undefined)t={};for(let n=0;n<e.length;n+=2){const o=headerNameToString(e[n]);let i=t[o];if(i){if(typeof i==="string"){i=[i];t[o]=i}i.push(e[n+1].toString("utf8"))}else{const i=e[n+1];if(typeof i==="string"){t[o]=i}else{t[o]=Array.isArray(i)?i.map((e=>e.toString("utf8"))):i.toString("utf8")}}}if("content-length"in t&&"content-disposition"in t){t["content-disposition"]=Buffer.from(t["content-disposition"]).toString("latin1")}return t}function parseRawHeaders(e){const t=e.length;const n=new Array(t);let o=false;let i=-1;let a;let d;let m=0;for(let t=0;t<e.length;t+=2){a=e[t];d=e[t+1];typeof a!=="string"&&(a=a.toString());typeof d!=="string"&&(d=d.toString("utf8"));m=a.length;if(m===14&&a[7]==="-"&&(a==="content-length"||a.toLowerCase()==="content-length")){o=true}else if(m===19&&a[7]==="-"&&(a==="content-disposition"||a.toLowerCase()==="content-disposition")){i=t+1}n[t]=a;n[t+1]=d}if(o&&i!==-1){n[i]=Buffer.from(n[i]).toString("latin1")}return n}function isBuffer(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}function validateHandler(e,t,n){if(!e||typeof e!=="object"){throw new F("handler must be an object")}if(typeof e.onConnect!=="function"){throw new F("invalid onConnect method")}if(typeof e.onError!=="function"){throw new F("invalid onError method")}if(typeof e.onBodySent!=="function"&&e.onBodySent!==undefined){throw new F("invalid onBodySent method")}if(n||t==="CONNECT"){if(typeof e.onUpgrade!=="function"){throw new F("invalid onUpgrade method")}}else{if(typeof e.onHeaders!=="function"){throw new F("invalid onHeaders method")}if(typeof e.onData!=="function"){throw new F("invalid onData method")}if(typeof e.onComplete!=="function"){throw new F("invalid onComplete method")}}}function isDisturbed(e){return!!(e&&(f.isDisturbed(e)||e[a]))}function isErrored(e){return!!(e&&f.isErrored(e))}function isReadable(e){return!!(e&&f.isReadable(e))}function getSocketInfo(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}}function ReadableStreamFrom(e){let t;return new ReadableStream({async start(){t=e[Symbol.asyncIterator]()},async pull(e){const{done:n,value:o}=await t.next();if(n){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{const t=Buffer.isBuffer(o)?o:Buffer.from(o);if(t.byteLength){e.enqueue(new Uint8Array(t))}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}function addAbortListener(e,t){if("addEventListener"in e){e.addEventListener("abort",t,{once:true});return()=>e.removeEventListener("abort",t)}e.addListener("abort",t);return()=>e.removeListener("abort",t)}const ne=typeof String.prototype.toWellFormed==="function";const se=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return ne?`${e}`.toWellFormed():D.toUSVString(e)}function isUSVString(e){return se?`${e}`.isWellFormed():toUSVString(e)===`${e}`}function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}function isValidHTTPToken(e){if(e.length===0){return false}for(let t=0;t<e.length;++t){if(!isTokenCharCode(e.charCodeAt(t))){return false}}return true}const oe=/[^\t\x20-\x7e\x80-\xff]/;function isValidHeaderValue(e){return!oe.test(e)}function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const t=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return t?{start:parseInt(t[1]),end:t[2]?parseInt(t[2]):null,size:t[3]?parseInt(t[3]):null}:null}function addListener(e,t,n){const o=e[d]??=[];o.push([t,n]);e.on(t,n);return e}function removeAllListeners(e){for(const[t,n]of e[d]??[]){e.removeListener(t,n)}e[d]=null}function errorRequest(e,t,n){try{t.onError(n);o(t.aborted)}catch(n){e.emit("error",n)}}const ie=Object.create(null);ie.enumerable=true;const ae={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};const ce={...ae,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(ae,null);Object.setPrototypeOf(ce,null);e.exports={kEnumerableProperty:ie,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isUSVString:isUSVString,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,bufferToLowerCasedHeaderName:bufferToLowerCasedHeaderName,addListener:addListener,removeAllListeners:removeAllListeners,errorRequest:errorRequest,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,addAbortListener:addAbortListener,isValidHTTPToken:isValidHTTPToken,isValidHeaderValue:isValidHeaderValue,isTokenCharCode:isTokenCharCode,parseRangeHeader:parseRangeHeader,normalizedMethodRecordsBase:ae,normalizedMethodRecords:ce,isValidPort:isValidPort,isHttpOrHttpsPrefixed:isHttpOrHttpsPrefixed,nodeMajor:ee,nodeMinor:te,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:wrapRequestBody}},7405:(e,t,n)=>{const{InvalidArgumentError:o}=n(8707);const{kClients:i,kRunning:a,kClose:d,kDestroy:m,kDispatch:h,kInterceptors:f}=n(6443);const C=n(1841);const P=n(628);const D=n(3701);const k=n(3440);const L=n(5092);const F=Symbol("onConnect");const q=Symbol("onDisconnect");const V=Symbol("onConnectionError");const ee=Symbol("maxRedirections");const te=Symbol("onDrain");const re=Symbol("factory");const ne=Symbol("options");function defaultFactory(e,t){return t&&t.connections===1?new D(e,t):new P(e,t)}class Agent extends C{constructor({factory:e=defaultFactory,maxRedirections:t=0,connect:n,...a}={}){super();if(typeof e!=="function"){throw new o("factory must be a function.")}if(n!=null&&typeof n!=="function"&&typeof n!=="object"){throw new o("connect must be a function or an object")}if(!Number.isInteger(t)||t<0){throw new o("maxRedirections must be a positive number")}if(n&&typeof n!=="function"){n={...n}}this[f]=a.interceptors?.Agent&&Array.isArray(a.interceptors.Agent)?a.interceptors.Agent:[L({maxRedirections:t})];this[ne]={...k.deepClone(a),connect:n};this[ne].interceptors=a.interceptors?{...a.interceptors}:undefined;this[ee]=t;this[re]=e;this[i]=new Map;this[te]=(e,t)=>{this.emit("drain",e,[this,...t])};this[F]=(e,t)=>{this.emit("connect",e,[this,...t])};this[q]=(e,t,n)=>{this.emit("disconnect",e,[this,...t],n)};this[V]=(e,t,n)=>{this.emit("connectionError",e,[this,...t],n)}}get[a](){let e=0;for(const t of this[i].values()){e+=t[a]}return e}[h](e,t){let n;if(e.origin&&(typeof e.origin==="string"||e.origin instanceof URL)){n=String(e.origin)}else{throw new o("opts.origin must be a non-empty string or URL.")}let a=this[i].get(n);if(!a){a=this[re](e.origin,this[ne]).on("drain",this[te]).on("connect",this[F]).on("disconnect",this[q]).on("connectionError",this[V]);this[i].set(n,a)}return a.dispatch(e,t)}async[d](){const e=[];for(const t of this[i].values()){e.push(t.close())}this[i].clear();await Promise.all(e)}async[m](e){const t=[];for(const n of this[i].values()){t.push(n.destroy(e))}this[i].clear();await Promise.all(t)}}e.exports=Agent},837:(e,t,n)=>{const{BalancedPoolMissingUpstreamError:o,InvalidArgumentError:i}=n(8707);const{PoolBase:a,kClients:d,kNeedDrain:m,kAddClient:h,kRemoveClient:f,kGetDispatcher:C}=n(2128);const P=n(628);const{kUrl:D,kInterceptors:k}=n(6443);const{parseOrigin:L}=n(3440);const F=Symbol("factory");const q=Symbol("options");const V=Symbol("kGreatestCommonDivisor");const ee=Symbol("kCurrentWeight");const te=Symbol("kIndex");const re=Symbol("kWeight");const ne=Symbol("kMaxWeightPerServer");const se=Symbol("kErrorPenalty");function getGreatestCommonDivisor(e,t){if(e===0)return t;while(t!==0){const n=t;t=e%t;e=n}return e}function defaultFactory(e,t){return new P(e,t)}class BalancedPool extends a{constructor(e=[],{factory:t=defaultFactory,...n}={}){super();this[q]=n;this[te]=-1;this[ee]=0;this[ne]=this[q].maxWeightPerServer||100;this[se]=this[q].errorPenalty||15;if(!Array.isArray(e)){e=[e]}if(typeof t!=="function"){throw new i("factory must be a function.")}this[k]=n.interceptors?.BalancedPool&&Array.isArray(n.interceptors.BalancedPool)?n.interceptors.BalancedPool:[];this[F]=t;for(const t of e){this.addUpstream(t)}this._updateBalancedPoolStats()}addUpstream(e){const t=L(e).origin;if(this[d].find((e=>e[D].origin===t&&e.closed!==true&&e.destroyed!==true))){return this}const n=this[F](t,Object.assign({},this[q]));this[h](n);n.on("connect",(()=>{n[re]=Math.min(this[ne],n[re]+this[se])}));n.on("connectionError",(()=>{n[re]=Math.max(1,n[re]-this[se]);this._updateBalancedPoolStats()}));n.on("disconnect",((...e)=>{const t=e[2];if(t&&t.code==="UND_ERR_SOCKET"){n[re]=Math.max(1,n[re]-this[se]);this._updateBalancedPoolStats()}}));for(const e of this[d]){e[re]=this[ne]}this._updateBalancedPoolStats();return this}_updateBalancedPoolStats(){let e=0;for(let t=0;t<this[d].length;t++){e=getGreatestCommonDivisor(this[d][t][re],e)}this[V]=e}removeUpstream(e){const t=L(e).origin;const n=this[d].find((e=>e[D].origin===t&&e.closed!==true&&e.destroyed!==true));if(n){this[f](n)}return this}get upstreams(){return this[d].filter((e=>e.closed!==true&&e.destroyed!==true)).map((e=>e[D].origin))}[C](){if(this[d].length===0){throw new o}const e=this[d].find((e=>!e[m]&&e.closed!==true&&e.destroyed!==true));if(!e){return}const t=this[d].map((e=>e[m])).reduce(((e,t)=>e&&t),true);if(t){return}let n=0;let i=this[d].findIndex((e=>!e[m]));while(n++<this[d].length){this[te]=(this[te]+1)%this[d].length;const e=this[d][this[te]];if(e[re]>this[d][i][re]&&!e[m]){i=this[te]}if(this[te]===0){this[ee]=this[ee]-this[V];if(this[ee]<=0){this[ee]=this[ne]}}if(e[re]>=this[ee]&&!e[m]){return e}}this[ee]=this[d][i][re];this[te]=i;return this[d][i]}}e.exports=BalancedPool},637:(e,t,n)=>{const o=n(4589);const i=n(3440);const{channels:a}=n(2414);const d=n(6603);const{RequestContentLengthMismatchError:m,ResponseContentLengthMismatchError:h,RequestAbortedError:f,HeadersTimeoutError:C,HeadersOverflowError:P,SocketError:D,InformationalError:k,BodyTimeoutError:L,HTTPParserError:F,ResponseExceededMaxSizeError:q}=n(8707);const{kUrl:V,kReset:ee,kClient:te,kParser:re,kBlocking:ne,kRunning:se,kPending:oe,kSize:ie,kWriting:ae,kQueue:ce,kNoRef:le,kKeepAliveDefaultTimeout:ue,kHostHeader:de,kPendingIdx:pe,kRunningIdx:Ae,kError:me,kPipelining:ge,kSocket:he,kKeepAliveTimeoutValue:fe,kMaxHeadersSize:ye,kKeepAliveMaxTimeout:Ee,kKeepAliveTimeoutThreshold:Ce,kHeadersTimeout:Ie,kBodyTimeout:be,kStrictContentLength:Se,kMaxRequests:Be,kCounter:we,kMaxResponseSize:Re,kOnError:Ne,kResume:xe,kHTTPContext:Qe}=n(6443);const Te=n(2824);const ve=Buffer.alloc(0);const Pe=Buffer[Symbol.species];const De=i.addListener;const ke=i.removeAllListeners;let _e;async function lazyllhttp(){const e=process.env.JEST_WORKER_ID?n(3870):undefined;let t;try{t=await WebAssembly.compile(n(3434))}catch(o){t=await WebAssembly.compile(e||n(3870))}return await WebAssembly.instantiate(t,{env:{wasm_on_url:(e,t,n)=>0,wasm_on_status:(e,t,n)=>{o(Fe.ptr===e);const i=t-He+Ue.byteOffset;return Fe.onStatus(new Pe(Ue.buffer,i,n))||0},wasm_on_message_begin:e=>{o(Fe.ptr===e);return Fe.onMessageBegin()||0},wasm_on_header_field:(e,t,n)=>{o(Fe.ptr===e);const i=t-He+Ue.byteOffset;return Fe.onHeaderField(new Pe(Ue.buffer,i,n))||0},wasm_on_header_value:(e,t,n)=>{o(Fe.ptr===e);const i=t-He+Ue.byteOffset;return Fe.onHeaderValue(new Pe(Ue.buffer,i,n))||0},wasm_on_headers_complete:(e,t,n,i)=>{o(Fe.ptr===e);return Fe.onHeadersComplete(t,Boolean(n),Boolean(i))||0},wasm_on_body:(e,t,n)=>{o(Fe.ptr===e);const i=t-He+Ue.byteOffset;return Fe.onBody(new Pe(Ue.buffer,i,n))||0},wasm_on_message_complete:e=>{o(Fe.ptr===e);return Fe.onMessageComplete()||0}}})}let Le=null;let Oe=lazyllhttp();Oe.catch();let Fe=null;let Ue=null;let Me=0;let He=null;const $e=0;const Ge=1;const qe=2|Ge;const ze=4|Ge;const Ve=8|$e;class Parser{constructor(e,t,{exports:n}){o(Number.isFinite(e[ye])&&e[ye]>0);this.llhttp=n;this.ptr=this.llhttp.llhttp_alloc(Te.TYPE.RESPONSE);this.client=e;this.socket=t;this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.statusCode=null;this.statusText="";this.upgrade=false;this.headers=[];this.headersSize=0;this.headersMaxSize=e[ye];this.shouldKeepAlive=false;this.paused=false;this.resume=this.resume.bind(this);this.bytesRead=0;this.keepAlive="";this.contentLength="";this.connection="";this.maxResponseSize=e[Re]}setTimeout(e,t){if(e!==this.timeoutValue||t&Ge^this.timeoutType&Ge){if(this.timeout){d.clearTimeout(this.timeout);this.timeout=null}if(e){if(t&Ge){this.timeout=d.setFastTimeout(onParserTimeout,e,new WeakRef(this))}else{this.timeout=setTimeout(onParserTimeout,e,new WeakRef(this));this.timeout.unref()}}this.timeoutValue=e}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.timeoutType=t}resume(){if(this.socket.destroyed||!this.paused){return}o(this.ptr!=null);o(Fe==null);this.llhttp.llhttp_resume(this.ptr);o(this.timeoutType===ze);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}this.paused=false;this.execute(this.socket.read()||ve);this.readMore()}readMore(){while(!this.paused&&this.ptr){const e=this.socket.read();if(e===null){break}this.execute(e)}}execute(e){o(this.ptr!=null);o(Fe==null);o(!this.paused);const{socket:t,llhttp:n}=this;if(e.length>Me){if(He){n.free(He)}Me=Math.ceil(e.length/4096)*4096;He=n.malloc(Me)}new Uint8Array(n.memory.buffer,He,Me).set(e);try{let o;try{Ue=e;Fe=this;o=n.llhttp_execute(this.ptr,He,e.length)}catch(e){throw e}finally{Fe=null;Ue=null}const i=n.llhttp_get_error_pos(this.ptr)-He;if(o===Te.ERROR.PAUSED_UPGRADE){this.onUpgrade(e.slice(i))}else if(o===Te.ERROR.PAUSED){this.paused=true;t.unshift(e.slice(i))}else if(o!==Te.ERROR.OK){const t=n.llhttp_get_error_reason(this.ptr);let a="";if(t){const e=new Uint8Array(n.memory.buffer,t).indexOf(0);a="Response does not match the HTTP/1.1 protocol ("+Buffer.from(n.memory.buffer,t,e).toString()+")"}throw new F(a,Te.ERROR[o],e.slice(i))}}catch(e){i.destroy(t,e)}}destroy(){o(this.ptr!=null);o(Fe==null);this.llhttp.llhttp_free(this.ptr);this.ptr=null;this.timeout&&d.clearTimeout(this.timeout);this.timeout=null;this.timeoutValue=null;this.timeoutType=null;this.paused=false}onStatus(e){this.statusText=e.toString()}onMessageBegin(){const{socket:e,client:t}=this;if(e.destroyed){return-1}const n=t[ce][t[Ae]];if(!n){return-1}n.onResponseStarted()}onHeaderField(e){const t=this.headers.length;if((t&1)===0){this.headers.push(e)}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}this.trackHeader(e.length)}onHeaderValue(e){let t=this.headers.length;if((t&1)===1){this.headers.push(e);t+=1}else{this.headers[t-1]=Buffer.concat([this.headers[t-1],e])}const n=this.headers[t-2];if(n.length===10){const t=i.bufferToLowerCasedHeaderName(n);if(t==="keep-alive"){this.keepAlive+=e.toString()}else if(t==="connection"){this.connection+=e.toString()}}else if(n.length===14&&i.bufferToLowerCasedHeaderName(n)==="content-length"){this.contentLength+=e.toString()}this.trackHeader(e.length)}trackHeader(e){this.headersSize+=e;if(this.headersSize>=this.headersMaxSize){i.destroy(this.socket,new P)}}onUpgrade(e){const{upgrade:t,client:n,socket:a,headers:d,statusCode:m}=this;o(t);o(n[he]===a);o(!a.destroyed);o(!this.paused);o((d.length&1)===0);const h=n[ce][n[Ae]];o(h);o(h.upgrade||h.method==="CONNECT");this.statusCode=null;this.statusText="";this.shouldKeepAlive=null;this.headers=[];this.headersSize=0;a.unshift(e);a[re].destroy();a[re]=null;a[te]=null;a[me]=null;ke(a);n[he]=null;n[Qe]=null;n[ce][n[Ae]++]=null;n.emit("disconnect",n[V],[n],new k("upgrade"));try{h.onUpgrade(m,d,a)}catch(e){i.destroy(a,e)}n[xe]()}onHeadersComplete(e,t,n){const{client:a,socket:d,headers:m,statusText:h}=this;if(d.destroyed){return-1}const f=a[ce][a[Ae]];if(!f){return-1}o(!this.upgrade);o(this.statusCode<200);if(e===100){i.destroy(d,new D("bad response",i.getSocketInfo(d)));return-1}if(t&&!f.upgrade){i.destroy(d,new D("bad upgrade",i.getSocketInfo(d)));return-1}o(this.timeoutType===qe);this.statusCode=e;this.shouldKeepAlive=n||f.method==="HEAD"&&!d[ee]&&this.connection.toLowerCase()==="keep-alive";if(this.statusCode>=200){const e=f.bodyTimeout!=null?f.bodyTimeout:a[be];this.setTimeout(e,ze)}else if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}if(f.method==="CONNECT"){o(a[se]===1);this.upgrade=true;return 2}if(t){o(a[se]===1);this.upgrade=true;return 2}o((this.headers.length&1)===0);this.headers=[];this.headersSize=0;if(this.shouldKeepAlive&&a[ge]){const e=this.keepAlive?i.parseKeepAliveTimeout(this.keepAlive):null;if(e!=null){const t=Math.min(e-a[Ce],a[Ee]);if(t<=0){d[ee]=true}else{a[fe]=t}}else{a[fe]=a[ue]}}else{d[ee]=true}const C=f.onHeaders(e,m,this.resume,h)===false;if(f.aborted){return-1}if(f.method==="HEAD"){return 1}if(e<200){return 1}if(d[ne]){d[ne]=false;a[xe]()}return C?Te.ERROR.PAUSED:0}onBody(e){const{client:t,socket:n,statusCode:a,maxResponseSize:d}=this;if(n.destroyed){return-1}const m=t[ce][t[Ae]];o(m);o(this.timeoutType===ze);if(this.timeout){if(this.timeout.refresh){this.timeout.refresh()}}o(a>=200);if(d>-1&&this.bytesRead+e.length>d){i.destroy(n,new q);return-1}this.bytesRead+=e.length;if(m.onData(e)===false){return Te.ERROR.PAUSED}}onMessageComplete(){const{client:e,socket:t,statusCode:n,upgrade:a,headers:d,contentLength:m,bytesRead:f,shouldKeepAlive:C}=this;if(t.destroyed&&(!n||C)){return-1}if(a){return}o(n>=100);o((this.headers.length&1)===0);const P=e[ce][e[Ae]];o(P);this.statusCode=null;this.statusText="";this.bytesRead=0;this.contentLength="";this.keepAlive="";this.connection="";this.headers=[];this.headersSize=0;if(n<200){return}if(P.method!=="HEAD"&&m&&f!==parseInt(m,10)){i.destroy(t,new h);return-1}P.onComplete(d);e[ce][e[Ae]++]=null;if(t[ae]){o(e[se]===0);i.destroy(t,new k("reset"));return Te.ERROR.PAUSED}else if(!C){i.destroy(t,new k("reset"));return Te.ERROR.PAUSED}else if(t[ee]&&e[se]===0){i.destroy(t,new k("reset"));return Te.ERROR.PAUSED}else if(e[ge]==null||e[ge]===1){setImmediate((()=>e[xe]()))}else{e[xe]()}}}function onParserTimeout(e){const{socket:t,timeoutType:n,client:a,paused:d}=e.deref();if(n===qe){if(!t[ae]||t.writableNeedDrain||a[se]>1){o(!d,"cannot be paused while waiting for headers");i.destroy(t,new C)}}else if(n===ze){if(!d){i.destroy(t,new L)}}else if(n===Ve){o(a[se]===0&&a[fe]);i.destroy(t,new k("socket idle timeout"))}}async function connectH1(e,t){e[he]=t;if(!Le){Le=await Oe;Oe=null}t[le]=false;t[ae]=false;t[ee]=false;t[ne]=false;t[re]=new Parser(e,t,Le);De(t,"error",(function(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");const t=this[re];if(e.code==="ECONNRESET"&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete();return}this[me]=e;this[te][Ne](e)}));De(t,"readable",(function(){const e=this[re];if(e){e.readMore()}}));De(t,"end",(function(){const e=this[re];if(e.statusCode&&!e.shouldKeepAlive){e.onMessageComplete();return}i.destroy(this,new D("other side closed",i.getSocketInfo(this)))}));De(t,"close",(function(){const e=this[te];const t=this[re];if(t){if(!this[me]&&t.statusCode&&!t.shouldKeepAlive){t.onMessageComplete()}this[re].destroy();this[re]=null}const n=this[me]||new D("closed",i.getSocketInfo(this));e[he]=null;e[Qe]=null;if(e.destroyed){o(e[oe]===0);const t=e[ce].splice(e[Ae]);for(let o=0;o<t.length;o++){const a=t[o];i.errorRequest(e,a,n)}}else if(e[se]>0&&n.code!=="UND_ERR_INFO"){const t=e[ce][e[Ae]];e[ce][e[Ae]++]=null;i.errorRequest(e,t,n)}e[pe]=e[Ae];o(e[se]===0);e.emit("disconnect",e[V],[e],n);e[xe]()}));let n=false;t.on("close",(()=>{n=true}));return{version:"h1",defaultPipelining:1,write(...t){return writeH1(e,...t)},resume(){resumeH1(e)},destroy(e,o){if(n){queueMicrotask(o)}else{t.destroy(e).on("close",o)}},get destroyed(){return t.destroyed},busy(n){if(t[ae]||t[ee]||t[ne]){return true}if(n){if(e[se]>0&&!n.idempotent){return true}if(e[se]>0&&(n.upgrade||n.method==="CONNECT")){return true}if(e[se]>0&&i.bodyLength(n.body)!==0&&(i.isStream(n.body)||i.isAsyncIterable(n.body)||i.isFormDataLike(n.body))){return true}}return false}}}function resumeH1(e){const t=e[he];if(t&&!t.destroyed){if(e[ie]===0){if(!t[le]&&t.unref){t.unref();t[le]=true}}else if(t[le]&&t.ref){t.ref();t[le]=false}if(e[ie]===0){if(t[re].timeoutType!==Ve){t[re].setTimeout(e[fe],Ve)}}else if(e[se]>0&&t[re].statusCode<200){if(t[re].timeoutType!==qe){const n=e[ce][e[Ae]];const o=n.headersTimeout!=null?n.headersTimeout:e[Ie];t[re].setTimeout(o,qe)}}}}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH1(e,t){const{method:d,path:h,host:C,upgrade:P,blocking:D,reset:L}=t;let{body:F,headers:q,contentLength:V}=t;const te=d==="PUT"||d==="POST"||d==="PATCH"||d==="QUERY"||d==="PROPFIND"||d==="PROPPATCH";if(i.isFormDataLike(F)){if(!_e){_e=n(4492).extractBody}const[e,o]=_e(F);if(t.contentType==null){q.push("content-type",o)}F=e.stream;V=e.length}else if(i.isBlobLike(F)&&t.contentType==null&&F.type){q.push("content-type",F.type)}if(F&&typeof F.read==="function"){F.read(0)}const re=i.bodyLength(F);V=re??V;if(V===null){V=t.contentLength}if(V===0&&!te){V=null}if(shouldSendContentLength(d)&&V>0&&t.contentLength!==null&&t.contentLength!==V){if(e[Se]){i.errorRequest(e,t,new m);return false}process.emitWarning(new m)}const se=e[he];const abort=n=>{if(t.aborted||t.completed){return}i.errorRequest(e,t,n||new f);i.destroy(F);i.destroy(se,new k("aborted"))};try{t.onConnect(abort)}catch(n){i.errorRequest(e,t,n)}if(t.aborted){return false}if(d==="HEAD"){se[ee]=true}if(P||d==="CONNECT"){se[ee]=true}if(L!=null){se[ee]=L}if(e[Be]&&se[we]++>=e[Be]){se[ee]=true}if(D){se[ne]=true}let oe=`${d} ${h} HTTP/1.1\r\n`;if(typeof C==="string"){oe+=`host: ${C}\r\n`}else{oe+=e[de]}if(P){oe+=`connection: upgrade\r\nupgrade: ${P}\r\n`}else if(e[ge]&&!se[ee]){oe+="connection: keep-alive\r\n"}else{oe+="connection: close\r\n"}if(Array.isArray(q)){for(let e=0;e<q.length;e+=2){const t=q[e+0];const n=q[e+1];if(Array.isArray(n)){for(let e=0;e<n.length;e++){oe+=`${t}: ${n[e]}\r\n`}}else{oe+=`${t}: ${n}\r\n`}}}if(a.sendHeaders.hasSubscribers){a.sendHeaders.publish({request:t,headers:oe,socket:se})}if(!F||re===0){writeBuffer(abort,null,e,t,se,V,oe,te)}else if(i.isBuffer(F)){writeBuffer(abort,F,e,t,se,V,oe,te)}else if(i.isBlobLike(F)){if(typeof F.stream==="function"){writeIterable(abort,F.stream(),e,t,se,V,oe,te)}else{writeBlob(abort,F,e,t,se,V,oe,te)}}else if(i.isStream(F)){writeStream(abort,F,e,t,se,V,oe,te)}else if(i.isIterable(F)){writeIterable(abort,F,e,t,se,V,oe,te)}else{o(false)}return true}function writeStream(e,t,n,a,d,m,h,C){o(m!==0||n[se]===0,"stream body cannot be pipelined");let P=false;const D=new AsyncWriter({abort:e,socket:d,request:a,contentLength:m,client:n,expectsPayload:C,header:h});const onData=function(e){if(P){return}try{if(!D.write(e)&&this.pause){this.pause()}}catch(e){i.destroy(this,e)}};const onDrain=function(){if(P){return}if(t.resume){t.resume()}};const onClose=function(){queueMicrotask((()=>{t.removeListener("error",onFinished)}));if(!P){const e=new f;queueMicrotask((()=>onFinished(e)))}};const onFinished=function(e){if(P){return}P=true;o(d.destroyed||d[ae]&&n[se]<=1);d.off("drain",onDrain).off("error",onFinished);t.removeListener("data",onData).removeListener("end",onFinished).removeListener("close",onClose);if(!e){try{D.end()}catch(t){e=t}}D.destroy(e);if(e&&(e.code!=="UND_ERR_INFO"||e.message!=="reset")){i.destroy(t,e)}else{i.destroy(t)}};t.on("data",onData).on("end",onFinished).on("error",onFinished).on("close",onClose);if(t.resume){t.resume()}d.on("drain",onDrain).on("error",onFinished);if(t.errorEmitted??t.errored){setImmediate((()=>onFinished(t.errored)))}else if(t.endEmitted??t.readableEnded){setImmediate((()=>onFinished(null)))}if(t.closeEmitted??t.closed){setImmediate(onClose)}}function writeBuffer(e,t,n,a,d,m,h,f){try{if(!t){if(m===0){d.write(`${h}content-length: 0\r\n\r\n`,"latin1")}else{o(m===null,"no body must not have content length");d.write(`${h}\r\n`,"latin1")}}else if(i.isBuffer(t)){o(m===t.byteLength,"buffer body must have content length");d.cork();d.write(`${h}content-length: ${m}\r\n\r\n`,"latin1");d.write(t);d.uncork();a.onBodySent(t);if(!f&&a.reset!==false){d[ee]=true}}a.onRequestSent();n[xe]()}catch(t){e(t)}}async function writeBlob(e,t,n,i,a,d,h,f){o(d===t.size,"blob body must have content length");try{if(d!=null&&d!==t.size){throw new m}const e=Buffer.from(await t.arrayBuffer());a.cork();a.write(`${h}content-length: ${d}\r\n\r\n`,"latin1");a.write(e);a.uncork();i.onBodySent(e);i.onRequestSent();if(!f&&i.reset!==false){a[ee]=true}n[xe]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,a,d,m,h){o(d!==0||n[se]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const e=f;f=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(f===null);if(a[me]){t(a[me])}else{f=e}}));a.on("close",onDrain).on("drain",onDrain);const C=new AsyncWriter({abort:e,socket:a,request:i,contentLength:d,client:n,expectsPayload:h,header:m});try{for await(const e of t){if(a[me]){throw a[me]}if(!C.write(e)){await waitForDrain()}}C.end()}catch(e){C.destroy(e)}finally{a.off("close",onDrain).off("drain",onDrain)}}class AsyncWriter{constructor({abort:e,socket:t,request:n,contentLength:o,client:i,expectsPayload:a,header:d}){this.socket=t;this.request=n;this.contentLength=o;this.client=i;this.bytesWritten=0;this.expectsPayload=a;this.header=d;this.abort=e;t[ae]=true}write(e){const{socket:t,request:n,contentLength:o,client:i,bytesWritten:a,expectsPayload:d,header:h}=this;if(t[me]){throw t[me]}if(t.destroyed){return false}const f=Buffer.byteLength(e);if(!f){return true}if(o!==null&&a+f>o){if(i[Se]){throw new m}process.emitWarning(new m)}t.cork();if(a===0){if(!d&&n.reset!==false){t[ee]=true}if(o===null){t.write(`${h}transfer-encoding: chunked\r\n`,"latin1")}else{t.write(`${h}content-length: ${o}\r\n\r\n`,"latin1")}}if(o===null){t.write(`\r\n${f.toString(16)}\r\n`,"latin1")}this.bytesWritten+=f;const C=t.write(e);t.uncork();n.onBodySent(e);if(!C){if(t[re].timeout&&t[re].timeoutType===qe){if(t[re].timeout.refresh){t[re].timeout.refresh()}}}return C}end(){const{socket:e,contentLength:t,client:n,bytesWritten:o,expectsPayload:i,header:a,request:d}=this;d.onRequestSent();e[ae]=false;if(e[me]){throw e[me]}if(e.destroyed){return}if(o===0){if(i){e.write(`${a}content-length: 0\r\n\r\n`,"latin1")}else{e.write(`${a}\r\n`,"latin1")}}else if(t===null){e.write("\r\n0\r\n\r\n","latin1")}if(t!==null&&o!==t){if(n[Se]){throw new m}else{process.emitWarning(new m)}}if(e[re].timeout&&e[re].timeoutType===qe){if(e[re].timeout.refresh){e[re].timeout.refresh()}}n[xe]()}destroy(e){const{socket:t,client:n,abort:i}=this;t[ae]=false;if(e){o(n[se]<=1,"pipeline should only contain this request");i(e)}}}e.exports=connectH1},8788:(e,t,n)=>{const o=n(4589);const{pipeline:i}=n(7075);const a=n(3440);const{RequestContentLengthMismatchError:d,RequestAbortedError:m,SocketError:h,InformationalError:f}=n(8707);const{kUrl:C,kReset:P,kClient:D,kRunning:k,kPending:L,kQueue:F,kPendingIdx:q,kRunningIdx:V,kError:ee,kSocket:te,kStrictContentLength:re,kOnError:ne,kMaxConcurrentStreams:se,kHTTP2Session:oe,kResume:ie,kSize:ae,kHTTPContext:ce}=n(6443);const le=Symbol("open streams");let ue;let de=false;let pe;try{pe=n(2467)}catch{pe={constants:{}}}const{constants:{HTTP2_HEADER_AUTHORITY:Ae,HTTP2_HEADER_METHOD:me,HTTP2_HEADER_PATH:ge,HTTP2_HEADER_SCHEME:he,HTTP2_HEADER_CONTENT_LENGTH:fe,HTTP2_HEADER_EXPECT:ye,HTTP2_HEADER_STATUS:Ee}}=pe;function parseH2Headers(e){const t=[];for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.push(Buffer.from(n),Buffer.from(e))}}else{t.push(Buffer.from(n),Buffer.from(o))}}return t}async function connectH2(e,t){e[te]=t;if(!de){de=true;process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"})}const n=pe.connect(e[C],{createConnection:()=>t,peerMaxConcurrentStreams:e[se]});n[le]=0;n[D]=e;n[te]=t;a.addListener(n,"error",onHttp2SessionError);a.addListener(n,"frameError",onHttp2FrameError);a.addListener(n,"end",onHttp2SessionEnd);a.addListener(n,"goaway",onHTTP2GoAway);a.addListener(n,"close",(function(){const{[D]:e}=this;const{[te]:t}=e;const n=this[te][ee]||this[ee]||new h("closed",a.getSocketInfo(t));e[oe]=null;if(e.destroyed){o(e[L]===0);const t=e[F].splice(e[V]);for(let o=0;o<t.length;o++){const i=t[o];a.errorRequest(e,i,n)}}}));n.unref();e[oe]=n;t[oe]=n;a.addListener(t,"error",(function(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[ee]=e;this[D][ne](e)}));a.addListener(t,"end",(function(){a.destroy(this,new h("other side closed",a.getSocketInfo(this)))}));a.addListener(t,"close",(function(){const t=this[ee]||new h("closed",a.getSocketInfo(this));e[te]=null;if(this[oe]!=null){this[oe].destroy(t)}e[q]=e[V];o(e[k]===0);e.emit("disconnect",e[C],[e],t);e[ie]()}));let i=false;t.on("close",(()=>{i=true}));return{version:"h2",defaultPipelining:Infinity,write(...t){return writeH2(e,...t)},resume(){resumeH2(e)},destroy(e,n){if(i){queueMicrotask(n)}else{t.destroy(e).on("close",n)}},get destroyed(){return t.destroyed},busy(){return false}}}function resumeH2(e){const t=e[te];if(t?.destroyed===false){if(e[ae]===0&&e[se]===0){t.unref();e[oe].unref()}else{t.ref();e[oe].ref()}}}function onHttp2SessionError(e){o(e.code!=="ERR_TLS_CERT_ALTNAME_INVALID");this[te][ee]=e;this[D][ne](e)}function onHttp2FrameError(e,t,n){if(n===0){const n=new f(`HTTP/2: "frameError" received - type ${e}, code ${t}`);this[te][ee]=n;this[D][ne](n)}}function onHttp2SessionEnd(){const e=new h("other side closed",a.getSocketInfo(this[te]));this.destroy(e);a.destroy(this[te],e)}function onHTTP2GoAway(e){const t=this[ee]||new h(`HTTP/2: "GOAWAY" frame received with code ${e}`,a.getSocketInfo(this));const n=this[D];n[te]=null;n[ce]=null;if(this[oe]!=null){this[oe].destroy(t);this[oe]=null}a.destroy(this[te],t);if(n[V]<n[F].length){const e=n[F][n[V]];n[F][n[V]++]=null;a.errorRequest(n,e,t);n[q]=n[V]}o(n[k]===0);n.emit("disconnect",n[C],[n],t);n[ie]()}function shouldSendContentLength(e){return e!=="GET"&&e!=="HEAD"&&e!=="OPTIONS"&&e!=="TRACE"&&e!=="CONNECT"}function writeH2(e,t){const i=e[oe];const{method:h,path:P,host:D,upgrade:k,expectContinue:L,signal:ee,headers:ne}=t;let{body:se}=t;if(k){a.errorRequest(e,t,new Error("Upgrade not supported for H2"));return false}const ae={};for(let e=0;e<ne.length;e+=2){const t=ne[e+0];const n=ne[e+1];if(Array.isArray(n)){for(let e=0;e<n.length;e++){if(ae[t]){ae[t]+=`,${n[e]}`}else{ae[t]=n[e]}}}else{ae[t]=n}}let ce;const{hostname:de,port:pe}=e[C];ae[Ae]=D||`${de}${pe?`:${pe}`:""}`;ae[me]=h;const abort=n=>{if(t.aborted||t.completed){return}n=n||new m;a.errorRequest(e,t,n);if(ce!=null){a.destroy(ce,n)}a.destroy(se,n);e[F][e[V]++]=null;e[ie]()};try{t.onConnect(abort)}catch(n){a.errorRequest(e,t,n)}if(t.aborted){return false}if(h==="CONNECT"){i.ref();ce=i.request(ae,{endStream:false,signal:ee});if(ce.id&&!ce.pending){t.onUpgrade(null,null,ce);++i[le];e[F][e[V]++]=null}else{ce.once("ready",(()=>{t.onUpgrade(null,null,ce);++i[le];e[F][e[V]++]=null}))}ce.once("close",(()=>{i[le]-=1;if(i[le]===0)i.unref()}));return true}ae[ge]=P;ae[he]="https";const Ce=h==="PUT"||h==="POST"||h==="PATCH";if(se&&typeof se.read==="function"){se.read(0)}let Ie=a.bodyLength(se);if(a.isFormDataLike(se)){ue??=n(4492).extractBody;const[e,t]=ue(se);ae["content-type"]=t;se=e.stream;Ie=e.length}if(Ie==null){Ie=t.contentLength}if(Ie===0||!Ce){Ie=null}if(shouldSendContentLength(h)&&Ie>0&&t.contentLength!=null&&t.contentLength!==Ie){if(e[re]){a.errorRequest(e,t,new d);return false}process.emitWarning(new d)}if(Ie!=null){o(se,"no body must not have content length");ae[fe]=`${Ie}`}i.ref();const be=h==="GET"||h==="HEAD"||se===null;if(L){ae[ye]="100-continue";ce=i.request(ae,{endStream:be,signal:ee});ce.once("continue",writeBodyH2)}else{ce=i.request(ae,{endStream:be,signal:ee});writeBodyH2()}++i[le];ce.once("response",(n=>{const{[Ee]:o,...i}=n;t.onResponseStarted();if(t.aborted){const n=new m;a.errorRequest(e,t,n);a.destroy(ce,n);return}if(t.onHeaders(Number(o),parseH2Headers(i),ce.resume.bind(ce),"")===false){ce.pause()}ce.on("data",(e=>{if(t.onData(e)===false){ce.pause()}}))}));ce.once("end",(()=>{if(ce.state?.state==null||ce.state.state<6){t.onComplete([])}if(i[le]===0){i.unref()}abort(new f("HTTP/2: stream half-closed (remote)"));e[F][e[V]++]=null;e[q]=e[V];e[ie]()}));ce.once("close",(()=>{i[le]-=1;if(i[le]===0){i.unref()}}));ce.once("error",(function(e){abort(e)}));ce.once("frameError",((e,t)=>{abort(new f(`HTTP/2: "frameError" received - type ${e}, code ${t}`))}));return true;function writeBodyH2(){if(!se||Ie===0){writeBuffer(abort,ce,null,e,t,e[te],Ie,Ce)}else if(a.isBuffer(se)){writeBuffer(abort,ce,se,e,t,e[te],Ie,Ce)}else if(a.isBlobLike(se)){if(typeof se.stream==="function"){writeIterable(abort,ce,se.stream(),e,t,e[te],Ie,Ce)}else{writeBlob(abort,ce,se,e,t,e[te],Ie,Ce)}}else if(a.isStream(se)){writeStream(abort,e[te],Ce,ce,se,e,t,Ie)}else if(a.isIterable(se)){writeIterable(abort,ce,se,e,t,e[te],Ie,Ce)}else{o(false)}}}function writeBuffer(e,t,n,i,d,m,h,f){try{if(n!=null&&a.isBuffer(n)){o(h===n.byteLength,"buffer body must have content length");t.cork();t.write(n);t.uncork();t.end();d.onBodySent(n)}if(!f){m[P]=true}d.onRequestSent();i[ie]()}catch(t){e(t)}}function writeStream(e,t,n,d,m,h,f,C){o(C!==0||h[k]===0,"stream body cannot be pipelined");const D=i(m,d,(o=>{if(o){a.destroy(D,o);e(o)}else{a.removeAllListeners(D);f.onRequestSent();if(!n){t[P]=true}h[ie]()}}));a.addListener(D,"data",onPipeData);function onPipeData(e){f.onBodySent(e)}}async function writeBlob(e,t,n,i,a,m,h,f){o(h===n.size,"blob body must have content length");try{if(h!=null&&h!==n.size){throw new d}const e=Buffer.from(await n.arrayBuffer());t.cork();t.write(e);t.uncork();t.end();a.onBodySent(e);a.onRequestSent();if(!f){m[P]=true}i[ie]()}catch(t){e(t)}}async function writeIterable(e,t,n,i,a,d,m,h){o(m!==0||i[k]===0,"iterator body cannot be pipelined");let f=null;function onDrain(){if(f){const e=f;f=null;e()}}const waitForDrain=()=>new Promise(((e,t)=>{o(f===null);if(d[ee]){t(d[ee])}else{f=e}}));t.on("close",onDrain).on("drain",onDrain);try{for await(const e of n){if(d[ee]){throw d[ee]}const n=t.write(e);a.onBodySent(e);if(!n){await waitForDrain()}}t.end();a.onRequestSent();if(!h){d[P]=true}i[ie]()}catch(t){e(t)}finally{t.off("close",onDrain).off("drain",onDrain)}}e.exports=connectH2},3701:(e,t,n)=>{const o=n(4589);const i=n(7030);const a=n(7067);const d=n(3440);const{channels:m}=n(2414);const h=n(4655);const f=n(1841);const{InvalidArgumentError:C,InformationalError:P,ClientDestroyedError:D}=n(8707);const k=n(9136);const{kUrl:L,kServerName:F,kClient:q,kBusy:V,kConnect:ee,kResuming:te,kRunning:re,kPending:ne,kSize:se,kQueue:oe,kConnected:ie,kConnecting:ae,kNeedDrain:ce,kKeepAliveDefaultTimeout:le,kHostHeader:ue,kPendingIdx:de,kRunningIdx:pe,kError:Ae,kPipelining:me,kKeepAliveTimeoutValue:ge,kMaxHeadersSize:he,kKeepAliveMaxTimeout:fe,kKeepAliveTimeoutThreshold:ye,kHeadersTimeout:Ee,kBodyTimeout:Ce,kStrictContentLength:Ie,kConnector:be,kMaxRedirections:Se,kMaxRequests:Be,kCounter:we,kClose:Re,kDestroy:Ne,kDispatch:xe,kInterceptors:Qe,kLocalAddress:Te,kMaxResponseSize:ve,kOnError:Pe,kHTTPContext:De,kMaxConcurrentStreams:ke,kResume:_e}=n(6443);const Le=n(637);const Oe=n(8788);let Fe=false;const Ue=Symbol("kClosedResolve");const noop=()=>{};function getPipelining(e){return e[me]??e[De]?.defaultPipelining??1}class Client extends f{constructor(e,{interceptors:t,maxHeaderSize:n,headersTimeout:o,socketTimeout:m,requestTimeout:h,connectTimeout:f,bodyTimeout:P,idleTimeout:D,keepAlive:q,keepAliveTimeout:V,maxKeepAliveTimeout:ee,keepAliveMaxTimeout:re,keepAliveTimeoutThreshold:ne,socketPath:se,pipelining:ie,tls:ae,strictContentLength:Ae,maxCachedSessions:we,maxRedirections:Re,connect:Ne,maxRequestsPerClient:xe,localAddress:Le,maxResponseSize:Oe,autoSelectFamily:He,autoSelectFamilyAttemptTimeout:$e,maxConcurrentStreams:Ge,allowH2:qe}={}){super();if(q!==undefined){throw new C("unsupported keepAlive, use pipelining=0 instead")}if(m!==undefined){throw new C("unsupported socketTimeout, use headersTimeout & bodyTimeout instead")}if(h!==undefined){throw new C("unsupported requestTimeout, use headersTimeout & bodyTimeout instead")}if(D!==undefined){throw new C("unsupported idleTimeout, use keepAliveTimeout instead")}if(ee!==undefined){throw new C("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead")}if(n!=null&&!Number.isFinite(n)){throw new C("invalid maxHeaderSize")}if(se!=null&&typeof se!=="string"){throw new C("invalid socketPath")}if(f!=null&&(!Number.isFinite(f)||f<0)){throw new C("invalid connectTimeout")}if(V!=null&&(!Number.isFinite(V)||V<=0)){throw new C("invalid keepAliveTimeout")}if(re!=null&&(!Number.isFinite(re)||re<=0)){throw new C("invalid keepAliveMaxTimeout")}if(ne!=null&&!Number.isFinite(ne)){throw new C("invalid keepAliveTimeoutThreshold")}if(o!=null&&(!Number.isInteger(o)||o<0)){throw new C("headersTimeout must be a positive integer or zero")}if(P!=null&&(!Number.isInteger(P)||P<0)){throw new C("bodyTimeout must be a positive integer or zero")}if(Ne!=null&&typeof Ne!=="function"&&typeof Ne!=="object"){throw new C("connect must be a function or an object")}if(Re!=null&&(!Number.isInteger(Re)||Re<0)){throw new C("maxRedirections must be a positive number")}if(xe!=null&&(!Number.isInteger(xe)||xe<0)){throw new C("maxRequestsPerClient must be a positive number")}if(Le!=null&&(typeof Le!=="string"||i.isIP(Le)===0)){throw new C("localAddress must be valid string IP address")}if(Oe!=null&&(!Number.isInteger(Oe)||Oe<-1)){throw new C("maxResponseSize must be a positive number")}if($e!=null&&(!Number.isInteger($e)||$e<-1)){throw new C("autoSelectFamilyAttemptTimeout must be a positive number")}if(qe!=null&&typeof qe!=="boolean"){throw new C("allowH2 must be a valid boolean value")}if(Ge!=null&&(typeof Ge!=="number"||Ge<1)){throw new C("maxConcurrentStreams must be a positive integer, greater than 0")}if(typeof Ne!=="function"){Ne=k({...ae,maxCachedSessions:we,allowH2:qe,socketPath:se,timeout:f,...He?{autoSelectFamily:He,autoSelectFamilyAttemptTimeout:$e}:undefined,...Ne})}if(t?.Client&&Array.isArray(t.Client)){this[Qe]=t.Client;if(!Fe){Fe=true;process.emitWarning("Client.Options#interceptor is deprecated. Use Dispatcher#compose instead.",{code:"UNDICI-CLIENT-INTERCEPTOR-DEPRECATED"})}}else{this[Qe]=[Me({maxRedirections:Re})]}this[L]=d.parseOrigin(e);this[be]=Ne;this[me]=ie!=null?ie:1;this[he]=n||a.maxHeaderSize;this[le]=V==null?4e3:V;this[fe]=re==null?6e5:re;this[ye]=ne==null?2e3:ne;this[ge]=this[le];this[F]=null;this[Te]=Le!=null?Le:null;this[te]=0;this[ce]=0;this[ue]=`host: ${this[L].hostname}${this[L].port?`:${this[L].port}`:""}\r\n`;this[Ce]=P!=null?P:3e5;this[Ee]=o!=null?o:3e5;this[Ie]=Ae==null?true:Ae;this[Se]=Re;this[Be]=xe;this[Ue]=null;this[ve]=Oe>-1?Oe:-1;this[ke]=Ge!=null?Ge:100;this[De]=null;this[oe]=[];this[pe]=0;this[de]=0;this[_e]=e=>resume(this,e);this[Pe]=e=>onError(this,e)}get pipelining(){return this[me]}set pipelining(e){this[me]=e;this[_e](true)}get[ne](){return this[oe].length-this[de]}get[re](){return this[de]-this[pe]}get[se](){return this[oe].length-this[pe]}get[ie](){return!!this[De]&&!this[ae]&&!this[De].destroyed}get[V](){return Boolean(this[De]?.busy(null)||this[se]>=(getPipelining(this)||1)||this[ne]>0)}[ee](e){connect(this);this.once("connect",e)}[xe](e,t){const n=e.origin||this[L].origin;const o=new h(n,e,t);this[oe].push(o);if(this[te]){}else if(d.bodyLength(o.body)==null&&d.isIterable(o.body)){this[te]=1;queueMicrotask((()=>resume(this)))}else{this[_e](true)}if(this[te]&&this[ce]!==2&&this[V]){this[ce]=2}return this[ce]<2}async[Re](){return new Promise((e=>{if(this[se]){this[Ue]=e}else{e(null)}}))}async[Ne](e){return new Promise((t=>{const n=this[oe].splice(this[de]);for(let t=0;t<n.length;t++){const o=n[t];d.errorRequest(this,o,e)}const callback=()=>{if(this[Ue]){this[Ue]();this[Ue]=null}t(null)};if(this[De]){this[De].destroy(e,callback);this[De]=null}else{queueMicrotask(callback)}this[_e]()}))}}const Me=n(5092);function onError(e,t){if(e[re]===0&&t.code!=="UND_ERR_INFO"&&t.code!=="UND_ERR_SOCKET"){o(e[de]===e[pe]);const n=e[oe].splice(e[pe]);for(let o=0;o<n.length;o++){const i=n[o];d.errorRequest(e,i,t)}o(e[se]===0)}}async function connect(e){o(!e[ae]);o(!e[De]);let{host:t,hostname:n,protocol:a,port:h}=e[L];if(n[0]==="["){const e=n.indexOf("]");o(e!==-1);const t=n.substring(1,e);o(i.isIP(t));n=t}e[ae]=true;if(m.beforeConnect.hasSubscribers){m.beforeConnect.publish({connectParams:{host:t,hostname:n,protocol:a,port:h,version:e[De]?.version,servername:e[F],localAddress:e[Te]},connector:e[be]})}try{const i=await new Promise(((o,i)=>{e[be]({host:t,hostname:n,protocol:a,port:h,servername:e[F],localAddress:e[Te]},((e,t)=>{if(e){i(e)}else{o(t)}}))}));if(e.destroyed){d.destroy(i.on("error",noop),new D);return}o(i);try{e[De]=i.alpnProtocol==="h2"?await Oe(e,i):await Le(e,i)}catch(e){i.destroy().on("error",noop);throw e}e[ae]=false;i[we]=0;i[Be]=e[Be];i[q]=e;i[Ae]=null;if(m.connected.hasSubscribers){m.connected.publish({connectParams:{host:t,hostname:n,protocol:a,port:h,version:e[De]?.version,servername:e[F],localAddress:e[Te]},connector:e[be],socket:i})}e.emit("connect",e[L],[e])}catch(i){if(e.destroyed){return}e[ae]=false;if(m.connectError.hasSubscribers){m.connectError.publish({connectParams:{host:t,hostname:n,protocol:a,port:h,version:e[De]?.version,servername:e[F],localAddress:e[Te]},connector:e[be],error:i})}if(i.code==="ERR_TLS_CERT_ALTNAME_INVALID"){o(e[re]===0);while(e[ne]>0&&e[oe][e[de]].servername===e[F]){const t=e[oe][e[de]++];d.errorRequest(e,t,i)}}else{onError(e,i)}e.emit("connectionError",e[L],[e],i)}e[_e]()}function emitDrain(e){e[ce]=0;e.emit("drain",e[L],[e])}function resume(e,t){if(e[te]===2){return}e[te]=2;_resume(e,t);e[te]=0;if(e[pe]>256){e[oe].splice(0,e[pe]);e[de]-=e[pe];e[pe]=0}}function _resume(e,t){while(true){if(e.destroyed){o(e[ne]===0);return}if(e[Ue]&&!e[se]){e[Ue]();e[Ue]=null;return}if(e[De]){e[De].resume()}if(e[V]){e[ce]=2}else if(e[ce]===2){if(t){e[ce]=1;queueMicrotask((()=>emitDrain(e)))}else{emitDrain(e)}continue}if(e[ne]===0){return}if(e[re]>=(getPipelining(e)||1)){return}const n=e[oe][e[de]];if(e[L].protocol==="https:"&&e[F]!==n.servername){if(e[re]>0){return}e[F]=n.servername;e[De]?.destroy(new P("servername changed"),(()=>{e[De]=null;resume(e)}))}if(e[ae]){return}if(!e[De]){connect(e);return}if(e[De].destroyed){return}if(e[De].busy(n)){return}if(!n.aborted&&e[De].write(n)){e[de]++}else{e[oe].splice(e[de],1)}}}e.exports=Client},1841:(e,t,n)=>{const o=n(883);const{ClientDestroyedError:i,ClientClosedError:a,InvalidArgumentError:d}=n(8707);const{kDestroy:m,kClose:h,kClosed:f,kDestroyed:C,kDispatch:P,kInterceptors:D}=n(6443);const k=Symbol("onDestroyed");const L=Symbol("onClosed");const F=Symbol("Intercepted Dispatch");class DispatcherBase extends o{constructor(){super();this[C]=false;this[k]=null;this[f]=false;this[L]=[]}get destroyed(){return this[C]}get closed(){return this[f]}get interceptors(){return this[D]}set interceptors(e){if(e){for(let t=e.length-1;t>=0;t--){const e=this[D][t];if(typeof e!=="function"){throw new d("interceptor must be an function")}}}this[D]=e}close(e){if(e===undefined){return new Promise(((e,t)=>{this.close(((n,o)=>n?t(n):e(o)))}))}if(typeof e!=="function"){throw new d("invalid callback")}if(this[C]){queueMicrotask((()=>e(new i,null)));return}if(this[f]){if(this[L]){this[L].push(e)}else{queueMicrotask((()=>e(null,null)))}return}this[f]=true;this[L].push(e);const onClosed=()=>{const e=this[L];this[L]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[h]().then((()=>this.destroy())).then((()=>{queueMicrotask(onClosed)}))}destroy(e,t){if(typeof e==="function"){t=e;e=null}if(t===undefined){return new Promise(((t,n)=>{this.destroy(e,((e,o)=>e?n(e):t(o)))}))}if(typeof t!=="function"){throw new d("invalid callback")}if(this[C]){if(this[k]){this[k].push(t)}else{queueMicrotask((()=>t(null,null)))}return}if(!e){e=new i}this[C]=true;this[k]=this[k]||[];this[k].push(t);const onDestroyed=()=>{const e=this[k];this[k]=null;for(let t=0;t<e.length;t++){e[t](null,null)}};this[m](e).then((()=>{queueMicrotask(onDestroyed)}))}[F](e,t){if(!this[D]||this[D].length===0){this[F]=this[P];return this[P](e,t)}let n=this[P].bind(this);for(let e=this[D].length-1;e>=0;e--){n=this[D][e](n)}this[F]=n;return n(e,t)}dispatch(e,t){if(!t||typeof t!=="object"){throw new d("handler must be an object")}try{if(!e||typeof e!=="object"){throw new d("opts must be an object.")}if(this[C]||this[k]){throw new i}if(this[f]){throw new a}return this[F](e,t)}catch(e){if(typeof t.onError!=="function"){throw new d("invalid onError method")}t.onError(e);return false}}}e.exports=DispatcherBase},883:(e,t,n)=>{const o=n(8474);class Dispatcher extends o{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const t=Array.isArray(e[0])?e[0]:e;let n=this.dispatch.bind(this);for(const e of t){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}n=e(n);if(n==null||typeof n!=="function"||n.length!==2){throw new TypeError("invalid interceptor")}}return new ComposedDispatcher(this,n)}}class ComposedDispatcher extends Dispatcher{#e=null;#t=null;constructor(e,t){super();this.#e=e;this.#t=t}dispatch(...e){this.#t(...e)}close(...e){return this.#e.close(...e)}destroy(...e){return this.#e.destroy(...e)}}e.exports=Dispatcher},3137:(e,t,n)=>{const o=n(1841);const{kClose:i,kDestroy:a,kClosed:d,kDestroyed:m,kDispatch:h,kNoProxyAgent:f,kHttpProxyAgent:C,kHttpsProxyAgent:P}=n(6443);const D=n(6672);const k=n(7405);const L={"http:":80,"https:":443};let F=false;class EnvHttpProxyAgent extends o{#r=null;#n=null;#s=null;constructor(e={}){super();this.#s=e;if(!F){F=true;process.emitWarning("EnvHttpProxyAgent is experimental, expect them to change at any time.",{code:"UNDICI-EHPA"})}const{httpProxy:t,httpsProxy:n,noProxy:o,...i}=e;this[f]=new k(i);const a=t??process.env.http_proxy??process.env.HTTP_PROXY;if(a){this[C]=new D({...i,uri:a})}else{this[C]=this[f]}const d=n??process.env.https_proxy??process.env.HTTPS_PROXY;if(d){this[P]=new D({...i,uri:d})}else{this[P]=this[C]}this.#o()}[h](e,t){const n=new URL(e.origin);const o=this.#i(n);return o.dispatch(e,t)}async[i](){await this[f].close();if(!this[C][d]){await this[C].close()}if(!this[P][d]){await this[P].close()}}async[a](e){await this[f].destroy(e);if(!this[C][m]){await this[C].destroy(e)}if(!this[P][m]){await this[P].destroy(e)}}#i(e){let{protocol:t,host:n,port:o}=e;n=n.replace(/:\d*$/,"").toLowerCase();o=Number.parseInt(o,10)||L[t]||0;if(!this.#a(n,o)){return this[f]}if(t==="https:"){return this[P]}return this[C]}#a(e,t){if(this.#c){this.#o()}if(this.#n.length===0){return true}if(this.#r==="*"){return false}for(let n=0;n<this.#n.length;n++){const o=this.#n[n];if(o.port&&o.port!==t){continue}if(!/^[.*]/.test(o.hostname)){if(e===o.hostname){return false}}else{if(e.endsWith(o.hostname.replace(/^\*/,""))){return false}}}return true}#o(){const e=this.#s.noProxy??this.#l;const t=e.split(/[,\s]/);const n=[];for(let e=0;e<t.length;e++){const o=t[e];if(!o){continue}const i=o.match(/^(.+):(\d+)$/);n.push({hostname:(i?i[1]:o).toLowerCase(),port:i?Number.parseInt(i[2],10):0})}this.#r=e;this.#n=n}get#c(){if(this.#s.noProxy!==undefined){return false}return this.#r!==this.#l}get#l(){return process.env.no_proxy??process.env.NO_PROXY??""}}e.exports=EnvHttpProxyAgent},4660:e=>{const t=2048;const n=t-1;class FixedCircularBuffer{constructor(){this.bottom=0;this.top=0;this.list=new Array(t);this.next=null}isEmpty(){return this.top===this.bottom}isFull(){return(this.top+1&n)===this.bottom}push(e){this.list[this.top]=e;this.top=this.top+1&n}shift(){const e=this.list[this.bottom];if(e===undefined)return null;this.list[this.bottom]=undefined;this.bottom=this.bottom+1&n;return e}}e.exports=class FixedQueue{constructor(){this.head=this.tail=new FixedCircularBuffer}isEmpty(){return this.head.isEmpty()}push(e){if(this.head.isFull()){this.head=this.head.next=new FixedCircularBuffer}this.head.push(e)}shift(){const e=this.tail;const t=e.shift();if(e.isEmpty()&&e.next!==null){this.tail=e.next}return t}}},2128:(e,t,n)=>{const o=n(1841);const i=n(4660);const{kConnected:a,kSize:d,kRunning:m,kPending:h,kQueued:f,kBusy:C,kFree:P,kUrl:D,kClose:k,kDestroy:L,kDispatch:F}=n(6443);const q=n(3246);const V=Symbol("clients");const ee=Symbol("needDrain");const te=Symbol("queue");const re=Symbol("closed resolve");const ne=Symbol("onDrain");const se=Symbol("onConnect");const oe=Symbol("onDisconnect");const ie=Symbol("onConnectionError");const ae=Symbol("get dispatcher");const ce=Symbol("add client");const le=Symbol("remove client");const ue=Symbol("stats");class PoolBase extends o{constructor(){super();this[te]=new i;this[V]=[];this[f]=0;const e=this;this[ne]=function onDrain(t,n){const o=e[te];let i=false;while(!i){const t=o.shift();if(!t){break}e[f]--;i=!this.dispatch(t.opts,t.handler)}this[ee]=i;if(!this[ee]&&e[ee]){e[ee]=false;e.emit("drain",t,[e,...n])}if(e[re]&&o.isEmpty()){Promise.all(e[V].map((e=>e.close()))).then(e[re])}};this[se]=(t,n)=>{e.emit("connect",t,[e,...n])};this[oe]=(t,n,o)=>{e.emit("disconnect",t,[e,...n],o)};this[ie]=(t,n,o)=>{e.emit("connectionError",t,[e,...n],o)};this[ue]=new q(this)}get[C](){return this[ee]}get[a](){return this[V].filter((e=>e[a])).length}get[P](){return this[V].filter((e=>e[a]&&!e[ee])).length}get[h](){let e=this[f];for(const{[h]:t}of this[V]){e+=t}return e}get[m](){let e=0;for(const{[m]:t}of this[V]){e+=t}return e}get[d](){let e=this[f];for(const{[d]:t}of this[V]){e+=t}return e}get stats(){return this[ue]}async[k](){if(this[te].isEmpty()){await Promise.all(this[V].map((e=>e.close())))}else{await new Promise((e=>{this[re]=e}))}}async[L](e){while(true){const t=this[te].shift();if(!t){break}t.handler.onError(e)}await Promise.all(this[V].map((t=>t.destroy(e))))}[F](e,t){const n=this[ae]();if(!n){this[ee]=true;this[te].push({opts:e,handler:t});this[f]++}else if(!n.dispatch(e,t)){n[ee]=true;this[ee]=!this[ae]()}return!this[ee]}[ce](e){e.on("drain",this[ne]).on("connect",this[se]).on("disconnect",this[oe]).on("connectionError",this[ie]);this[V].push(e);if(this[ee]){queueMicrotask((()=>{if(this[ee]){this[ne](e[D],[this,e])}}))}return this}[le](e){e.close((()=>{const t=this[V].indexOf(e);if(t!==-1){this[V].splice(t,1)}}));this[ee]=this[V].some((e=>!e[ee]&&e.closed!==true&&e.destroyed!==true))}}e.exports={PoolBase:PoolBase,kClients:V,kNeedDrain:ee,kAddClient:ce,kRemoveClient:le,kGetDispatcher:ae}},3246:(e,t,n)=>{const{kFree:o,kConnected:i,kPending:a,kQueued:d,kRunning:m,kSize:h}=n(6443);const f=Symbol("pool");class PoolStats{constructor(e){this[f]=e}get connected(){return this[f][i]}get free(){return this[f][o]}get pending(){return this[f][a]}get queued(){return this[f][d]}get running(){return this[f][m]}get size(){return this[f][h]}}e.exports=PoolStats},628:(e,t,n)=>{const{PoolBase:o,kClients:i,kNeedDrain:a,kAddClient:d,kGetDispatcher:m}=n(2128);const h=n(3701);const{InvalidArgumentError:f}=n(8707);const C=n(3440);const{kUrl:P,kInterceptors:D}=n(6443);const k=n(9136);const L=Symbol("options");const F=Symbol("connections");const q=Symbol("factory");function defaultFactory(e,t){return new h(e,t)}class Pool extends o{constructor(e,{connections:t,factory:n=defaultFactory,connect:o,connectTimeout:a,tls:d,maxCachedSessions:m,socketPath:h,autoSelectFamily:V,autoSelectFamilyAttemptTimeout:ee,allowH2:te,...re}={}){super();if(t!=null&&(!Number.isFinite(t)||t<0)){throw new f("invalid connections")}if(typeof n!=="function"){throw new f("factory must be a function.")}if(o!=null&&typeof o!=="function"&&typeof o!=="object"){throw new f("connect must be a function or an object")}if(typeof o!=="function"){o=k({...d,maxCachedSessions:m,allowH2:te,socketPath:h,timeout:a,...V?{autoSelectFamily:V,autoSelectFamilyAttemptTimeout:ee}:undefined,...o})}this[D]=re.interceptors?.Pool&&Array.isArray(re.interceptors.Pool)?re.interceptors.Pool:[];this[F]=t||null;this[P]=C.parseOrigin(e);this[L]={...C.deepClone(re),connect:o,allowH2:te};this[L].interceptors=re.interceptors?{...re.interceptors}:undefined;this[q]=n;this.on("connectionError",((e,t,n)=>{for(const e of t){const t=this[i].indexOf(e);if(t!==-1){this[i].splice(t,1)}}}))}[m](){for(const e of this[i]){if(!e[a]){return e}}if(!this[F]||this[i].length<this[F]){const e=this[q](this[P],this[L]);this[d](e);return e}}}e.exports=Pool},6672:(e,t,n)=>{const{kProxy:o,kClose:i,kDestroy:a,kDispatch:d,kInterceptors:m}=n(6443);const{URL:h}=n(3136);const f=n(7405);const C=n(628);const P=n(1841);const{InvalidArgumentError:D,RequestAbortedError:k,SecureProxyConnectionError:L}=n(8707);const F=n(9136);const q=n(3701);const V=Symbol("proxy agent");const ee=Symbol("proxy client");const te=Symbol("proxy headers");const re=Symbol("request tls settings");const ne=Symbol("proxy tls settings");const se=Symbol("connect endpoint function");const oe=Symbol("tunnel proxy");function defaultProtocolPort(e){return e==="https:"?443:80}function defaultFactory(e,t){return new C(e,t)}const noop=()=>{};function defaultAgentFactory(e,t){if(t.connections===1){return new q(e,t)}return new C(e,t)}class Http1ProxyWrapper extends P{#u;constructor(e,{headers:t={},connect:n,factory:o}){super();if(!e){throw new D("Proxy URL is mandatory")}this[te]=t;if(o){this.#u=o(e,{connect:n})}else{this.#u=new q(e,{connect:n})}}[d](e,t){const n=t.onHeaders;t.onHeaders=function(e,o,i){if(e===407){if(typeof t.onError==="function"){t.onError(new D("Proxy Authentication Required (407)"))}return}if(n)n.call(this,e,o,i)};const{origin:o,path:i="/",headers:a={}}=e;e.path=o+i;if(!("host"in a)&&!("Host"in a)){const{host:e}=new h(o);a.host=e}e.headers={...this[te],...a};return this.#u[d](e,t)}async[i](){return this.#u.close()}async[a](e){return this.#u.destroy(e)}}class ProxyAgent extends P{constructor(e){super();if(!e||typeof e==="object"&&!(e instanceof h)&&!e.uri){throw new D("Proxy uri is mandatory")}const{clientFactory:t=defaultFactory}=e;if(typeof t!=="function"){throw new D("Proxy opts.clientFactory must be a function.")}const{proxyTunnel:n=true}=e;const i=this.#d(e);const{href:a,origin:d,port:C,protocol:P,username:q,password:ie,hostname:ae}=i;this[o]={uri:a,protocol:P};this[m]=e.interceptors?.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[];this[re]=e.requestTls;this[ne]=e.proxyTls;this[te]=e.headers||{};this[oe]=n;if(e.auth&&e.token){throw new D("opts.auth cannot be used in combination with opts.token")}else if(e.auth){this[te]["proxy-authorization"]=`Basic ${e.auth}`}else if(e.token){this[te]["proxy-authorization"]=e.token}else if(q&&ie){this[te]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(q)}:${decodeURIComponent(ie)}`).toString("base64")}`}const ce=F({...e.proxyTls});this[se]=F({...e.requestTls});const le=e.factory||defaultAgentFactory;const factory=(e,t)=>{const{protocol:n}=new h(e);if(!this[oe]&&n==="http:"&&this[o].protocol==="http:"){return new Http1ProxyWrapper(this[o].uri,{headers:this[te],connect:ce,factory:le})}return le(e,t)};this[ee]=t(i,{connect:ce});this[V]=new f({...e,factory:factory,connect:async(e,t)=>{let n=e.host;if(!e.port){n+=`:${defaultProtocolPort(e.protocol)}`}try{const{socket:o,statusCode:i}=await this[ee].connect({origin:d,port:C,path:n,signal:e.signal,headers:{...this[te],host:e.host},servername:this[ne]?.servername||ae});if(i!==200){o.on("error",noop).destroy();t(new k(`Proxy response (${i}) !== 200 when HTTP Tunneling`))}if(e.protocol!=="https:"){t(null,o);return}let a;if(this[re]){a=this[re].servername}else{a=e.servername}this[se]({...e,servername:a,httpSocket:o},t)}catch(e){if(e.code==="ERR_TLS_CERT_ALTNAME_INVALID"){t(new L(e))}else{t(e)}}}})}dispatch(e,t){const n=buildHeaders(e.headers);throwIfProxyAuthIsSent(n);if(n&&!("host"in n)&&!("Host"in n)){const{host:t}=new h(e.origin);n.host=t}return this[V].dispatch({...e,headers:n},t)}#d(e){if(typeof e==="string"){return new h(e)}else if(e instanceof h){return e}else{return new h(e.uri)}}async[i](){await this[V].close();await this[ee].close()}async[a](){await this[V].destroy();await this[ee].destroy()}}function buildHeaders(e){if(Array.isArray(e)){const t={};for(let n=0;n<e.length;n+=2){t[e[n]]=e[n+1]}return t}return e}function throwIfProxyAuthIsSent(e){const t=e&&Object.keys(e).find((e=>e.toLowerCase()==="proxy-authorization"));if(t){throw new D("Proxy-Authorization should be sent in ProxyAgent constructor")}}e.exports=ProxyAgent},50:(e,t,n)=>{const o=n(883);const i=n(7816);class RetryAgent extends o{#p=null;#A=null;constructor(e,t={}){super(t);this.#p=e;this.#A=t}dispatch(e,t){const n=new i({...e,retryOptions:this.#A},{dispatch:this.#p.dispatch.bind(this.#p),handler:t});return this.#p.dispatch(e,n)}close(){return this.#p.close()}destroy(){return this.#p.destroy()}}e.exports=RetryAgent},2581:(e,t,n)=>{const o=Symbol.for("undici.globalDispatcher.1");const{InvalidArgumentError:i}=n(8707);const a=n(7405);if(getGlobalDispatcher()===undefined){setGlobalDispatcher(new a)}function setGlobalDispatcher(e){if(!e||typeof e.dispatch!=="function"){throw new i("Argument agent must implement Agent")}Object.defineProperty(globalThis,o,{value:e,writable:true,enumerable:false,configurable:false})}function getGlobalDispatcher(){return globalThis[o]}e.exports={setGlobalDispatcher:setGlobalDispatcher,getGlobalDispatcher:getGlobalDispatcher}},8155:e=>{e.exports=class DecoratorHandler{#m;constructor(e){if(typeof e!=="object"||e===null){throw new TypeError("handler must be an object")}this.#m=e}onConnect(...e){return this.#m.onConnect?.(...e)}onError(...e){return this.#m.onError?.(...e)}onUpgrade(...e){return this.#m.onUpgrade?.(...e)}onResponseStarted(...e){return this.#m.onResponseStarted?.(...e)}onHeaders(...e){return this.#m.onHeaders?.(...e)}onData(...e){return this.#m.onData?.(...e)}onComplete(...e){return this.#m.onComplete?.(...e)}onBodySent(...e){return this.#m.onBodySent?.(...e)}}},8754:(e,t,n)=>{const o=n(3440);const{kBodyUsed:i}=n(6443);const a=n(4589);const{InvalidArgumentError:d}=n(8707);const m=n(8474);const h=[300,301,302,303,307,308];const f=Symbol("body");class BodyAsyncIterable{constructor(e){this[f]=e;this[i]=false}async*[Symbol.asyncIterator](){a(!this[i],"disturbed");this[i]=true;yield*this[f]}}class RedirectHandler{constructor(e,t,n,h){if(t!=null&&(!Number.isInteger(t)||t<0)){throw new d("maxRedirections must be a positive number")}o.validateHandler(h,n.method,n.upgrade);this.dispatch=e;this.location=null;this.abort=null;this.opts={...n,maxRedirections:0};this.maxRedirections=t;this.handler=h;this.history=[];this.redirectionLimitReached=false;if(o.isStream(this.opts.body)){if(o.bodyLength(this.opts.body)===0){this.opts.body.on("data",(function(){a(false)}))}if(typeof this.opts.body.readableDidRead!=="boolean"){this.opts.body[i]=false;m.prototype.on.call(this.opts.body,"data",(function(){this[i]=true}))}}else if(this.opts.body&&typeof this.opts.body.pipeTo==="function"){this.opts.body=new BodyAsyncIterable(this.opts.body)}else if(this.opts.body&&typeof this.opts.body!=="string"&&!ArrayBuffer.isView(this.opts.body)&&o.isIterable(this.opts.body)){this.opts.body=new BodyAsyncIterable(this.opts.body)}}onConnect(e){this.abort=e;this.handler.onConnect(e,{history:this.history})}onUpgrade(e,t,n){this.handler.onUpgrade(e,t,n)}onError(e){this.handler.onError(e)}onHeaders(e,t,n,i){this.location=this.history.length>=this.maxRedirections||o.isDisturbed(this.opts.body)?null:parseLocation(e,t);if(this.opts.throwOnMaxRedirect&&this.history.length>=this.maxRedirections){if(this.request){this.request.abort(new Error("max redirects"))}this.redirectionLimitReached=true;this.abort(new Error("max redirects"));return}if(this.opts.origin){this.history.push(new URL(this.opts.path,this.opts.origin))}if(!this.location){return this.handler.onHeaders(e,t,n,i)}const{origin:a,pathname:d,search:m}=o.parseURL(new URL(this.location,this.opts.origin&&new URL(this.opts.path,this.opts.origin)));const h=m?`${d}${m}`:d;this.opts.headers=cleanRequestHeaders(this.opts.headers,e===303,this.opts.origin!==a);this.opts.path=h;this.opts.origin=a;this.opts.maxRedirections=0;this.opts.query=null;if(e===303&&this.opts.method!=="HEAD"){this.opts.method="GET";this.opts.body=null}}onData(e){if(this.location){}else{return this.handler.onData(e)}}onComplete(e){if(this.location){this.location=null;this.abort=null;this.dispatch(this.opts,this)}else{this.handler.onComplete(e)}}onBodySent(e){if(this.handler.onBodySent){this.handler.onBodySent(e)}}}function parseLocation(e,t){if(h.indexOf(e)===-1){return null}for(let e=0;e<t.length;e+=2){if(t[e].length===8&&o.headerNameToString(t[e])==="location"){return t[e+1]}}}function shouldRemoveHeader(e,t,n){if(e.length===4){return o.headerNameToString(e)==="host"}if(t&&o.headerNameToString(e).startsWith("content-")){return true}if(n&&(e.length===13||e.length===6||e.length===19)){const t=o.headerNameToString(e);return t==="authorization"||t==="cookie"||t==="proxy-authorization"}return false}function cleanRequestHeaders(e,t,n){const o=[];if(Array.isArray(e)){for(let i=0;i<e.length;i+=2){if(!shouldRemoveHeader(e[i],t,n)){o.push(e[i],e[i+1])}}}else if(e&&typeof e==="object"){for(const i of Object.keys(e)){if(!shouldRemoveHeader(i,t,n)){o.push(i,e[i])}}}else{a(e==null,"headers must be an object or an array")}return o}e.exports=RedirectHandler},7816:(e,t,n)=>{const o=n(4589);const{kRetryHandlerDefaultRetry:i}=n(6443);const{RequestRetryError:a}=n(8707);const{isDisturbed:d,parseHeaders:m,parseRangeHeader:h,wrapRequestBody:f}=n(3440);function calculateRetryAfterHeader(e){const t=Date.now();return new Date(e).getTime()-t}class RetryHandler{constructor(e,t){const{retryOptions:n,...o}=e;const{retry:a,maxRetries:d,maxTimeout:m,minTimeout:h,timeoutFactor:C,methods:P,errorCodes:D,retryAfter:k,statusCodes:L}=n??{};this.dispatch=t.dispatch;this.handler=t.handler;this.opts={...o,body:f(e.body)};this.abort=null;this.aborted=false;this.retryOpts={retry:a??RetryHandler[i],retryAfter:k??true,maxTimeout:m??30*1e3,minTimeout:h??500,timeoutFactor:C??2,maxRetries:d??5,methods:P??["GET","HEAD","OPTIONS","PUT","DELETE","TRACE"],statusCodes:L??[500,502,503,504,429],errorCodes:D??["ECONNRESET","ECONNREFUSED","ENOTFOUND","ENETDOWN","ENETUNREACH","EHOSTDOWN","EHOSTUNREACH","EPIPE","UND_ERR_SOCKET"]};this.retryCount=0;this.retryCountCheckpoint=0;this.start=0;this.end=null;this.etag=null;this.resume=null;this.handler.onConnect((e=>{this.aborted=true;if(this.abort){this.abort(e)}else{this.reason=e}}))}onRequestSent(){if(this.handler.onRequestSent){this.handler.onRequestSent()}}onUpgrade(e,t,n){if(this.handler.onUpgrade){this.handler.onUpgrade(e,t,n)}}onConnect(e){if(this.aborted){e(this.reason)}else{this.abort=e}}onBodySent(e){if(this.handler.onBodySent)return this.handler.onBodySent(e)}static[i](e,{state:t,opts:n},o){const{statusCode:i,code:a,headers:d}=e;const{method:m,retryOptions:h}=n;const{maxRetries:f,minTimeout:C,maxTimeout:P,timeoutFactor:D,statusCodes:k,errorCodes:L,methods:F}=h;const{counter:q}=t;if(a&&a!=="UND_ERR_REQ_RETRY"&&!L.includes(a)){o(e);return}if(Array.isArray(F)&&!F.includes(m)){o(e);return}if(i!=null&&Array.isArray(k)&&!k.includes(i)){o(e);return}if(q>f){o(e);return}let V=d?.["retry-after"];if(V){V=Number(V);V=Number.isNaN(V)?calculateRetryAfterHeader(V):V*1e3}const ee=V>0?Math.min(V,P):Math.min(C*D**(q-1),P);setTimeout((()=>o(null)),ee)}onHeaders(e,t,n,i){const d=m(t);this.retryCount+=1;if(e>=300){if(this.retryOpts.statusCodes.includes(e)===false){return this.handler.onHeaders(e,t,n,i)}else{this.abort(new a("Request failed",e,{headers:d,data:{count:this.retryCount}}));return false}}if(this.resume!=null){this.resume=null;if(e!==206&&(this.start>0||e!==200)){this.abort(new a("server does not support the range header and the payload was partially consumed",e,{headers:d,data:{count:this.retryCount}}));return false}const t=h(d["content-range"]);if(!t){this.abort(new a("Content-Range mismatch",e,{headers:d,data:{count:this.retryCount}}));return false}if(this.etag!=null&&this.etag!==d.etag){this.abort(new a("ETag mismatch",e,{headers:d,data:{count:this.retryCount}}));return false}const{start:i,size:m,end:f=m-1}=t;o(this.start===i,"content-range mismatch");o(this.end==null||this.end===f,"content-range mismatch");this.resume=n;return true}if(this.end==null){if(e===206){const a=h(d["content-range"]);if(a==null){return this.handler.onHeaders(e,t,n,i)}const{start:m,size:f,end:C=f-1}=a;o(m!=null&&Number.isFinite(m),"content-range mismatch");o(C!=null&&Number.isFinite(C),"invalid content-length");this.start=m;this.end=C}if(this.end==null){const e=d["content-length"];this.end=e!=null?Number(e)-1:null}o(Number.isFinite(this.start));o(this.end==null||Number.isFinite(this.end),"invalid content-length");this.resume=n;this.etag=d.etag!=null?d.etag:null;if(this.etag!=null&&this.etag.startsWith("W/")){this.etag=null}return this.handler.onHeaders(e,t,n,i)}const f=new a("Request failed",e,{headers:d,data:{count:this.retryCount}});this.abort(f);return false}onData(e){this.start+=e.length;return this.handler.onData(e)}onComplete(e){this.retryCount=0;return this.handler.onComplete(e)}onError(e){if(this.aborted||d(this.opts.body)){return this.handler.onError(e)}if(this.retryCount-this.retryCountCheckpoint>0){this.retryCount=this.retryCountCheckpoint+(this.retryCount-this.retryCountCheckpoint)}else{this.retryCount+=1}this.retryOpts.retry(e,{state:{counter:this.retryCount},opts:{retryOptions:this.retryOpts,...this.opts}},onRetry.bind(this));function onRetry(e){if(e!=null||this.aborted||d(this.opts.body)){return this.handler.onError(e)}if(this.start!==0){const e={range:`bytes=${this.start}-${this.end??""}`};if(this.etag!=null){e["if-match"]=this.etag}this.opts={...this.opts,headers:{...this.opts.headers,...e}}}try{this.retryCountCheckpoint=this.retryCount;this.dispatch(this.opts,this)}catch(e){this.handler.onError(e)}}}}e.exports=RetryHandler},379:(e,t,n)=>{const{isIP:o}=n(7030);const{lookup:i}=n(610);const a=n(8155);const{InvalidArgumentError:d,InformationalError:m}=n(8707);const h=Math.pow(2,31)-1;class DNSInstance{#g=0;#h=0;#f=new Map;dualStack=true;affinity=null;lookup=null;pick=null;constructor(e){this.#g=e.maxTTL;this.#h=e.maxItems;this.dualStack=e.dualStack;this.affinity=e.affinity;this.lookup=e.lookup??this.#y;this.pick=e.pick??this.#E}get full(){return this.#f.size===this.#h}runLookup(e,t,n){const o=this.#f.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}const i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...t.dns,maxTTL:this.#g,maxItems:this.#h};if(o==null){this.lookup(e,i,((t,o)=>{if(t||o==null||o.length===0){n(t??new m("No DNS entries found"));return}this.setRecords(e,o);const a=this.#f.get(e.hostname);const d=this.pick(e,a,i.affinity);let h;if(typeof d.port==="number"){h=`:${d.port}`}else if(e.port!==""){h=`:${e.port}`}else{h=""}n(null,`${e.protocol}//${d.family===6?`[${d.address}]`:d.address}${h}`)}))}else{const a=this.pick(e,o,i.affinity);if(a==null){this.#f.delete(e.hostname);this.runLookup(e,t,n);return}let d;if(typeof a.port==="number"){d=`:${a.port}`}else if(e.port!==""){d=`:${e.port}`}else{d=""}n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${d}`)}}#y(e,t,n){i(e.hostname,{all:true,family:this.dualStack===false?this.affinity:0,order:"ipv4first"},((e,t)=>{if(e){return n(e)}const o=new Map;for(const e of t){o.set(`${e.address}:${e.family}`,e)}n(null,o.values())}))}#E(e,t,n){let o=null;const{records:i,offset:a}=t;let d;if(this.dualStack){if(n==null){if(a==null||a===h){t.offset=0;n=4}else{t.offset++;n=(t.offset&1)===1?6:4}}if(i[n]!=null&&i[n].ips.length>0){d=i[n]}else{d=i[n===4?6:4]}}else{d=i[n]}if(d==null||d.ips.length===0){return o}if(d.offset==null||d.offset===h){d.offset=0}else{d.offset++}const m=d.offset%d.ips.length;o=d.ips[m]??null;if(o==null){return o}if(Date.now()-o.timestamp>o.ttl){d.ips.splice(m,1);return this.pick(e,t,n)}return o}setRecords(e,t){const n=Date.now();const o={records:{4:null,6:null}};for(const e of t){e.timestamp=n;if(typeof e.ttl==="number"){e.ttl=Math.min(e.ttl,this.#g)}else{e.ttl=this.#g}const t=o.records[e.family]??{ips:[]};t.ips.push(e);o.records[e.family]=t}this.#f.set(e.hostname,o)}getHandler(e,t){return new DNSDispatchHandler(this,e,t)}}class DNSDispatchHandler extends a{#C=null;#s=null;#t=null;#m=null;#I=null;constructor(e,{origin:t,handler:n,dispatch:o},i){super(n);this.#I=t;this.#m=n;this.#s={...i};this.#C=e;this.#t=o}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#C.dualStack){this.#C.runLookup(this.#I,this.#s,((e,t)=>{if(e){return this.#m.onError(e)}const n={...this.#s,origin:t};this.#t(n,this)}));return}this.#m.onError(e);return}case"ENOTFOUND":this.#C.deleteRecord(this.#I);default:this.#m.onError(e);break}}}e.exports=e=>{if(e?.maxTTL!=null&&(typeof e?.maxTTL!=="number"||e?.maxTTL<0)){throw new d("Invalid maxTTL. Must be a positive number")}if(e?.maxItems!=null&&(typeof e?.maxItems!=="number"||e?.maxItems<1)){throw new d("Invalid maxItems. Must be a positive number and greater than zero")}if(e?.affinity!=null&&e?.affinity!==4&&e?.affinity!==6){throw new d("Invalid affinity. Must be either 4 or 6")}if(e?.dualStack!=null&&typeof e?.dualStack!=="boolean"){throw new d("Invalid dualStack. Must be a boolean")}if(e?.lookup!=null&&typeof e?.lookup!=="function"){throw new d("Invalid lookup. Must be a function")}if(e?.pick!=null&&typeof e?.pick!=="function"){throw new d("Invalid pick. Must be a function")}const t=e?.dualStack??true;let n;if(t){n=e?.affinity??null}else{n=e?.affinity??4}const i={maxTTL:e?.maxTTL??1e4,lookup:e?.lookup??null,pick:e?.pick??null,dualStack:t,affinity:n,maxItems:e?.maxItems??Infinity};const a=new DNSInstance(i);return e=>function dnsInterceptor(t,n){const i=t.origin.constructor===URL?t.origin:new URL(t.origin);if(o(i.hostname)!==0){return e(t,n)}a.runLookup(i,t,((o,d)=>{if(o){return n.onError(o)}let m=null;m={...t,servername:i.hostname,origin:d,headers:{host:i.hostname,...t.headers}};e(m,a.getHandler({origin:i,dispatch:e,handler:n},t))}));return true}}},8060:(e,t,n)=>{const o=n(3440);const{InvalidArgumentError:i,RequestAbortedError:a}=n(8707);const d=n(8155);class DumpHandler extends d{#b=1024*1024;#S=null;#B=false;#w=false;#R=0;#N=null;#m=null;constructor({maxSize:e},t){super(t);if(e!=null&&(!Number.isFinite(e)||e<1)){throw new i("maxSize must be a number greater than 0")}this.#b=e??this.#b;this.#m=t}onConnect(e){this.#S=e;this.#m.onConnect(this.#x.bind(this))}#x(e){this.#w=true;this.#N=e}onHeaders(e,t,n,i){const d=o.parseHeaders(t);const m=d["content-length"];if(m!=null&&m>this.#b){throw new a(`Response size (${m}) larger than maxSize (${this.#b})`)}if(this.#w){return true}return this.#m.onHeaders(e,t,n,i)}onError(e){if(this.#B){return}e=this.#N??e;this.#m.onError(e)}onData(e){this.#R=this.#R+e.length;if(this.#R>=this.#b){this.#B=true;if(this.#w){this.#m.onError(this.#N)}else{this.#m.onComplete([])}}return true}onComplete(e){if(this.#B){return}if(this.#w){this.#m.onError(this.reason);return}this.#m.onComplete(e)}}function createDumpInterceptor({maxSize:e}={maxSize:1024*1024}){return t=>function Intercept(n,o){const{dumpMaxSize:i=e}=n;const a=new DumpHandler({maxSize:i},o);return t(n,a)}}e.exports=createDumpInterceptor},5092:(e,t,n)=>{const o=n(8754);function createRedirectInterceptor({maxRedirections:e}){return t=>function Intercept(n,i){const{maxRedirections:a=e}=n;if(!a){return t(n,i)}const d=new o(t,a,n,i);n={...n,maxRedirections:0};return t(n,d)}}e.exports=createRedirectInterceptor},1514:(e,t,n)=>{const o=n(8754);e.exports=e=>{const t=e?.maxRedirections;return e=>function redirectInterceptor(n,i){const{maxRedirections:a=t,...d}=n;if(!a){return e(n,i)}const m=new o(e,a,n,i);return e(d,m)}}},2026:(e,t,n)=>{const o=n(7816);e.exports=e=>t=>function retryInterceptor(n,i){return t(n,new o({...n,retryOptions:{...e,...n.retryOptions}},{handler:i,dispatch:t}))}},2824:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:true});t.SPECIAL_HEADERS=t.HEADER_STATE=t.MINOR=t.MAJOR=t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS=t.TOKEN=t.STRICT_TOKEN=t.HEX=t.URL_CHAR=t.STRICT_URL_CHAR=t.USERINFO_CHARS=t.MARK=t.ALPHANUM=t.NUM=t.HEX_MAP=t.NUM_MAP=t.ALPHA=t.FINISH=t.H_METHOD_MAP=t.METHOD_MAP=t.METHODS_RTSP=t.METHODS_ICE=t.METHODS_HTTP=t.METHODS=t.LENIENT_FLAGS=t.FLAGS=t.TYPE=t.ERROR=void 0;const o=n(172);var i;(function(e){e[e["OK"]=0]="OK";e[e["INTERNAL"]=1]="INTERNAL";e[e["STRICT"]=2]="STRICT";e[e["LF_EXPECTED"]=3]="LF_EXPECTED";e[e["UNEXPECTED_CONTENT_LENGTH"]=4]="UNEXPECTED_CONTENT_LENGTH";e[e["CLOSED_CONNECTION"]=5]="CLOSED_CONNECTION";e[e["INVALID_METHOD"]=6]="INVALID_METHOD";e[e["INVALID_URL"]=7]="INVALID_URL";e[e["INVALID_CONSTANT"]=8]="INVALID_CONSTANT";e[e["INVALID_VERSION"]=9]="INVALID_VERSION";e[e["INVALID_HEADER_TOKEN"]=10]="INVALID_HEADER_TOKEN";e[e["INVALID_CONTENT_LENGTH"]=11]="INVALID_CONTENT_LENGTH";e[e["INVALID_CHUNK_SIZE"]=12]="INVALID_CHUNK_SIZE";e[e["INVALID_STATUS"]=13]="INVALID_STATUS";e[e["INVALID_EOF_STATE"]=14]="INVALID_EOF_STATE";e[e["INVALID_TRANSFER_ENCODING"]=15]="INVALID_TRANSFER_ENCODING";e[e["CB_MESSAGE_BEGIN"]=16]="CB_MESSAGE_BEGIN";e[e["CB_HEADERS_COMPLETE"]=17]="CB_HEADERS_COMPLETE";e[e["CB_MESSAGE_COMPLETE"]=18]="CB_MESSAGE_COMPLETE";e[e["CB_CHUNK_HEADER"]=19]="CB_CHUNK_HEADER";e[e["CB_CHUNK_COMPLETE"]=20]="CB_CHUNK_COMPLETE";e[e["PAUSED"]=21]="PAUSED";e[e["PAUSED_UPGRADE"]=22]="PAUSED_UPGRADE";e[e["PAUSED_H2_UPGRADE"]=23]="PAUSED_H2_UPGRADE";e[e["USER"]=24]="USER"})(i=t.ERROR||(t.ERROR={}));var a;(function(e){e[e["BOTH"]=0]="BOTH";e[e["REQUEST"]=1]="REQUEST";e[e["RESPONSE"]=2]="RESPONSE"})(a=t.TYPE||(t.TYPE={}));var d;(function(e){e[e["CONNECTION_KEEP_ALIVE"]=1]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=2]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=4]="CONNECTION_UPGRADE";e[e["CHUNKED"]=8]="CHUNKED";e[e["UPGRADE"]=16]="UPGRADE";e[e["CONTENT_LENGTH"]=32]="CONTENT_LENGTH";e[e["SKIPBODY"]=64]="SKIPBODY";e[e["TRAILING"]=128]="TRAILING";e[e["TRANSFER_ENCODING"]=512]="TRANSFER_ENCODING"})(d=t.FLAGS||(t.FLAGS={}));var m;(function(e){e[e["HEADERS"]=1]="HEADERS";e[e["CHUNKED_LENGTH"]=2]="CHUNKED_LENGTH";e[e["KEEP_ALIVE"]=4]="KEEP_ALIVE"})(m=t.LENIENT_FLAGS||(t.LENIENT_FLAGS={}));var h;(function(e){e[e["DELETE"]=0]="DELETE";e[e["GET"]=1]="GET";e[e["HEAD"]=2]="HEAD";e[e["POST"]=3]="POST";e[e["PUT"]=4]="PUT";e[e["CONNECT"]=5]="CONNECT";e[e["OPTIONS"]=6]="OPTIONS";e[e["TRACE"]=7]="TRACE";e[e["COPY"]=8]="COPY";e[e["LOCK"]=9]="LOCK";e[e["MKCOL"]=10]="MKCOL";e[e["MOVE"]=11]="MOVE";e[e["PROPFIND"]=12]="PROPFIND";e[e["PROPPATCH"]=13]="PROPPATCH";e[e["SEARCH"]=14]="SEARCH";e[e["UNLOCK"]=15]="UNLOCK";e[e["BIND"]=16]="BIND";e[e["REBIND"]=17]="REBIND";e[e["UNBIND"]=18]="UNBIND";e[e["ACL"]=19]="ACL";e[e["REPORT"]=20]="REPORT";e[e["MKACTIVITY"]=21]="MKACTIVITY";e[e["CHECKOUT"]=22]="CHECKOUT";e[e["MERGE"]=23]="MERGE";e[e["M-SEARCH"]=24]="M-SEARCH";e[e["NOTIFY"]=25]="NOTIFY";e[e["SUBSCRIBE"]=26]="SUBSCRIBE";e[e["UNSUBSCRIBE"]=27]="UNSUBSCRIBE";e[e["PATCH"]=28]="PATCH";e[e["PURGE"]=29]="PURGE";e[e["MKCALENDAR"]=30]="MKCALENDAR";e[e["LINK"]=31]="LINK";e[e["UNLINK"]=32]="UNLINK";e[e["SOURCE"]=33]="SOURCE";e[e["PRI"]=34]="PRI";e[e["DESCRIBE"]=35]="DESCRIBE";e[e["ANNOUNCE"]=36]="ANNOUNCE";e[e["SETUP"]=37]="SETUP";e[e["PLAY"]=38]="PLAY";e[e["PAUSE"]=39]="PAUSE";e[e["TEARDOWN"]=40]="TEARDOWN";e[e["GET_PARAMETER"]=41]="GET_PARAMETER";e[e["SET_PARAMETER"]=42]="SET_PARAMETER";e[e["REDIRECT"]=43]="REDIRECT";e[e["RECORD"]=44]="RECORD";e[e["FLUSH"]=45]="FLUSH"})(h=t.METHODS||(t.METHODS={}));t.METHODS_HTTP=[h.DELETE,h.GET,h.HEAD,h.POST,h.PUT,h.CONNECT,h.OPTIONS,h.TRACE,h.COPY,h.LOCK,h.MKCOL,h.MOVE,h.PROPFIND,h.PROPPATCH,h.SEARCH,h.UNLOCK,h.BIND,h.REBIND,h.UNBIND,h.ACL,h.REPORT,h.MKACTIVITY,h.CHECKOUT,h.MERGE,h["M-SEARCH"],h.NOTIFY,h.SUBSCRIBE,h.UNSUBSCRIBE,h.PATCH,h.PURGE,h.MKCALENDAR,h.LINK,h.UNLINK,h.PRI,h.SOURCE];t.METHODS_ICE=[h.SOURCE];t.METHODS_RTSP=[h.OPTIONS,h.DESCRIBE,h.ANNOUNCE,h.SETUP,h.PLAY,h.PAUSE,h.TEARDOWN,h.GET_PARAMETER,h.SET_PARAMETER,h.REDIRECT,h.RECORD,h.FLUSH,h.GET,h.POST];t.METHOD_MAP=o.enumToMap(h);t.H_METHOD_MAP={};Object.keys(t.METHOD_MAP).forEach((e=>{if(/^H/.test(e)){t.H_METHOD_MAP[e]=t.METHOD_MAP[e]}}));var f;(function(e){e[e["SAFE"]=0]="SAFE";e[e["SAFE_WITH_CB"]=1]="SAFE_WITH_CB";e[e["UNSAFE"]=2]="UNSAFE"})(f=t.FINISH||(t.FINISH={}));t.ALPHA=[];for(let e="A".charCodeAt(0);e<="Z".charCodeAt(0);e++){t.ALPHA.push(String.fromCharCode(e));t.ALPHA.push(String.fromCharCode(e+32))}t.NUM_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9};t.HEX_MAP={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15};t.NUM=["0","1","2","3","4","5","6","7","8","9"];t.ALPHANUM=t.ALPHA.concat(t.NUM);t.MARK=["-","_",".","!","~","*","'","(",")"];t.USERINFO_CHARS=t.ALPHANUM.concat(t.MARK).concat(["%",";",":","&","=","+","$",","]);t.STRICT_URL_CHAR=["!",'"',"$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","@","[","\\","]","^","_","`","{","|","}","~"].concat(t.ALPHANUM);t.URL_CHAR=t.STRICT_URL_CHAR.concat(["\t","\f"]);for(let e=128;e<=255;e++){t.URL_CHAR.push(e)}t.HEX=t.NUM.concat(["a","b","c","d","e","f","A","B","C","D","E","F"]);t.STRICT_TOKEN=["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~"].concat(t.ALPHANUM);t.TOKEN=t.STRICT_TOKEN.concat([" "]);t.HEADER_CHARS=["\t"];for(let e=32;e<=255;e++){if(e!==127){t.HEADER_CHARS.push(e)}}t.CONNECTION_TOKEN_CHARS=t.HEADER_CHARS.filter((e=>e!==44));t.MAJOR=t.NUM_MAP;t.MINOR=t.MAJOR;var C;(function(e){e[e["GENERAL"]=0]="GENERAL";e[e["CONNECTION"]=1]="CONNECTION";e[e["CONTENT_LENGTH"]=2]="CONTENT_LENGTH";e[e["TRANSFER_ENCODING"]=3]="TRANSFER_ENCODING";e[e["UPGRADE"]=4]="UPGRADE";e[e["CONNECTION_KEEP_ALIVE"]=5]="CONNECTION_KEEP_ALIVE";e[e["CONNECTION_CLOSE"]=6]="CONNECTION_CLOSE";e[e["CONNECTION_UPGRADE"]=7]="CONNECTION_UPGRADE";e[e["TRANSFER_ENCODING_CHUNKED"]=8]="TRANSFER_ENCODING_CHUNKED"})(C=t.HEADER_STATE||(t.HEADER_STATE={}));t.SPECIAL_HEADERS={connection:C.CONNECTION,"content-length":C.CONTENT_LENGTH,"proxy-connection":C.CONNECTION,"transfer-encoding":C.TRANSFER_ENCODING,upgrade:C.UPGRADE}},3870:(e,t,n)=>{const{Buffer:o}=n(4573);e.exports=o.from("AGFzbQEAAAABJwdgAX8Bf2ADf39/AX9gAX8AYAJ/fwBgBH9/f38Bf2AAAGADf39/AALLAQgDZW52GHdhc21fb25faGVhZGVyc19jb21wbGV0ZQAEA2VudhV3YXNtX29uX21lc3NhZ2VfYmVnaW4AAANlbnYLd2FzbV9vbl91cmwAAQNlbnYOd2FzbV9vbl9zdGF0dXMAAQNlbnYUd2FzbV9vbl9oZWFkZXJfZmllbGQAAQNlbnYUd2FzbV9vbl9oZWFkZXJfdmFsdWUAAQNlbnYMd2FzbV9vbl9ib2R5AAEDZW52GHdhc21fb25fbWVzc2FnZV9jb21wbGV0ZQAAAy0sBQYAAAIAAAAAAAACAQIAAgICAAADAAAAAAMDAwMBAQEBAQEBAQEAAAIAAAAEBQFwARISBQMBAAIGCAF/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0cF9nZXRfdHlwZQANFWxsaHR0cF9nZXRfaHR0cF9tYWpvcgAOFWxsaHR0cF9nZXRfaHR0cF9taW5vcgAPEWxsaHR0cF9nZXRfbWV0aG9kABAWbGxodHRwX2dldF9zdGF0dXNfY29kZQAREmxsaHR0cF9nZXRfdXBncmFkZQASDGxsaHR0cF9yZXNldAATDmxsaHR0cF9leGVjdX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gADYCGAsgASAEaiAENgIAIAEgBEEBcjYCBCABQaDQACgCAEcNAEGU0AAgBDYCAAwBCyAEQf8BTQRAIARBeHFBtNAAaiEAAn9BjNAAKAIAIgJBASAEQQN2dCIDcUUEQEGM0AAgAiADcjYCACAADAELIAAoAggLIgIgATYCDCAAIAE2AgggASAANgIMIAEgAjYCCAwBC0EfIQIgBEH///8HTQRAIARBJiAEQQh2ZyIAa3ZBAXEgAEEBdGtBPmohAgsgASACNgIcIAFCADcCECACQQJ0QbzSAGohAAJAQZDQACgCACIDQQEgAnQiB3FFBEAgACABNgIAQZDQACADIAdyNgIAIAEgADYCGCABIAE2AgggASABNgIMDAELIARBGSACQQF2a0EAIAJBH0cbdCECIAAoAgAhAAJAA0AgACIDKAIEQXhxIARGDQEgAkEddiEAIAJBAXQhAiADIABBBHFqQRBqIgcoAgAiAA0ACyAHIAE2AgAgASADNgIYIAEgATYCDCABIAE2AggMAQsgAygCCCIAIAE2AgwgAyABNgIIIAFBADYCGCABIAM2AgwgASAANgIIC0Gs0ABBrNAAKAIAQQFrIgBBfyAAGzYCAAsLBwAgAC0AKAsHACAALQAqCwcAIAAtACsLBwAgAC0AKQsHACAALwEyCwcAIAAtAC4LQAEEfyAAKAIYIQEgAC0ALSECIAAtACghAyAAKAI4IQQgABAwIAAgBDYCOCAAIAM6ACggACACOgAtIAAgATYCGAu74gECB38DfiABIAJqIQQCQCAAIgIoAgwiAA0AIAIoAgQEQCACIAE2AgQLIwBBEGsiCCQAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ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tBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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QEMHwtBpgEMHgtBpwEMHQtBqAEMHAtBqQEMGwtBqgEMGgtBqwEMGQtBrAEMGAtBrQEMFwtBrgEMFgtBAQwVC0GvAQwUC0GwAQwTC0GxAQwSC0GzAQwRC0GyAQwQC0G0AQwPC0G1AQwOC0G2AQwNC0G3AQwMC0G4AQwLC0G5AQwKC0G6AQwJC0G7AQwIC0HGAQwHC0G8AQwGC0G9AQwFC0G+AQwEC0G/AQwDC0HAAQwCC0HCAQwBC0HBAQshAwNAAkACQAJAAkACQAJAAkACQAJAIAICfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAgAgJ/AkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACfwJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACfwJAAkACQAJAAn8CQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAC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kwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGhzwBqLQAARw1dIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAybAgsgAkEANgIAIAZBAWohA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AsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+swACwQBAAABAEGQzQALAQEAQZrNAAsGAgAAAAACAEGxzQALOgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAQfDOAAuWAU5PVU5DRUVDS09VVE5FQ1RFVEVDUklCRUxVU0hFVEVBRFNFQVJDSFJHRUNUSVZJVFlMRU5EQVJWRU9USUZZUFRJT05TQ0hTRUFZU1RBVENIR0VPUkRJUkVDVE9SVFJDSFBBUkFNRVRFUlVSQ0VCU0NSSUJFQVJET1dOQUNFSU5ETktDS1VCU0NSSUJFSFRUUC9BRFRQLw==","base64")},172:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.enumToMap=void 0;function enumToMap(e){const t={};Object.keys(e).forEach((n=>{const o=e[n];if(typeof o==="number"){t[n]=o}}));return t}t.enumToMap=enumToMap},7501:(e,t,n)=>{const{kClients:o}=n(6443);const i=n(7405);const{kAgent:a,kMockAgentSet:d,kMockAgentGet:m,kDispatches:h,kIsMockActive:f,kNetConnect:C,kGetNetConnect:P,kOptions:D,kFactory:k}=n(1117);const L=n(7365);const F=n(4004);const{matchValue:q,buildMockOptions:V}=n(3397);const{InvalidArgumentError:ee,UndiciError:te}=n(8707);const re=n(883);const ne=n(1529);const se=n(6142);class MockAgent extends re{constructor(e){super(e);this[C]=true;this[f]=true;if(e?.agent&&typeof e.agent.dispatch!=="function"){throw new ee("Argument opts.agent must implement Agent")}const t=e?.agent?e.agent:new i(e);this[a]=t;this[o]=t[o];this[D]=V(e)}get(e){let t=this[m](e);if(!t){t=this[k](e);this[d](e,t)}return t}dispatch(e,t){this.get(e.origin);return this[a].dispatch(e,t)}async close(){await this[a].close();this[o].clear()}deactivate(){this[f]=false}activate(){this[f]=true}enableNetConnect(e){if(typeof e==="string"||typeof e==="function"||e instanceof RegExp){if(Array.isArray(this[C])){this[C].push(e)}else{this[C]=[e]}}else if(typeof e==="undefined"){this[C]=true}else{throw new ee("Unsupported matcher. Must be one of String|Function|RegExp.")}}disableNetConnect(){this[C]=false}get isMockActive(){return this[f]}[d](e,t){this[o].set(e,t)}[k](e){const t=Object.assign({agent:this},this[D]);return this[D]&&this[D].connections===1?new L(e,t):new F(e,t)}[m](e){const t=this[o].get(e);if(t){return t}if(typeof e!=="string"){const t=this[k]("http://localhost:9999");this[d](e,t);return t}for(const[t,n]of Array.from(this[o])){if(n&&typeof t!=="string"&&q(t,e)){const t=this[k](e);this[d](e,t);t[h]=n[h];return t}}}[P](){return this[C]}pendingInterceptors(){const e=this[o];return Array.from(e.entries()).flatMap((([e,t])=>t[h].map((t=>({...t,origin:e}))))).filter((({pending:e})=>e))}assertNoPendingInterceptors({pendingInterceptorsFormatter:e=new se}={}){const t=this.pendingInterceptors();if(t.length===0){return}const n=new ne("interceptor","interceptors").pluralize(t.length);throw new te(`\n${n.count} ${n.noun} ${n.is} pending:\n\n${e.format(t)}\n`.trim())}}e.exports=MockAgent},7365:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(3701);const{buildMockDispatch:a}=n(3397);const{kDispatches:d,kMockAgent:m,kClose:h,kOriginalClose:f,kOrigin:C,kOriginalDispatch:P,kConnected:D}=n(1117);const{MockInterceptor:k}=n(1511);const L=n(6443);const{InvalidArgumentError:F}=n(8707);class MockClient extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new F("Argument opts.agent must implement Agent")}this[m]=t.agent;this[C]=e;this[d]=[];this[D]=1;this[P]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=a.call(this);this.close=this[h]}get[L.kConnected](){return this[D]}intercept(e){return new k(e,this[d])}async[h](){await o(this[f])();this[D]=0;this[m][L.kClients].delete(this[C])}}e.exports=MockClient},2429:(e,t,n)=>{const{UndiciError:o}=n(8707);const i=Symbol.for("undici.error.UND_MOCK_ERR_MOCK_NOT_MATCHED");class MockNotMatchedError extends o{constructor(e){super(e);Error.captureStackTrace(this,MockNotMatchedError);this.name="MockNotMatchedError";this.message=e||"The request does not match any registered mock dispatches";this.code="UND_MOCK_ERR_MOCK_NOT_MATCHED"}static[Symbol.hasInstance](e){return e&&e[i]===true}[i]=true}e.exports={MockNotMatchedError:MockNotMatchedError}},1511:(e,t,n)=>{const{getResponseData:o,buildKey:i,addMockDispatch:a}=n(3397);const{kDispatches:d,kDispatchKey:m,kDefaultHeaders:h,kDefaultTrailers:f,kContentLength:C,kMockDispatch:P}=n(1117);const{InvalidArgumentError:D}=n(8707);const{buildURL:k}=n(3440);class MockScope{constructor(e){this[P]=e}delay(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new D("waitInMs must be a valid integer > 0")}this[P].delay=e;return this}persist(){this[P].persist=true;return this}times(e){if(typeof e!=="number"||!Number.isInteger(e)||e<=0){throw new D("repeatTimes must be a valid integer > 0")}this[P].times=e;return this}}class MockInterceptor{constructor(e,t){if(typeof e!=="object"){throw new D("opts must be an object")}if(typeof e.path==="undefined"){throw new D("opts.path must be defined")}if(typeof e.method==="undefined"){e.method="GET"}if(typeof e.path==="string"){if(e.query){e.path=k(e.path,e.query)}else{const t=new URL(e.path,"data://");e.path=t.pathname+t.search}}if(typeof e.method==="string"){e.method=e.method.toUpperCase()}this[m]=i(e);this[d]=t;this[h]={};this[f]={};this[C]=false}createMockScopeDispatchData({statusCode:e,data:t,responseOptions:n}){const i=o(t);const a=this[C]?{"content-length":i.length}:{};const d={...this[h],...a,...n.headers};const m={...this[f],...n.trailers};return{statusCode:e,data:t,headers:d,trailers:m}}validateReplyParameters(e){if(typeof e.statusCode==="undefined"){throw new D("statusCode must be defined")}if(typeof e.responseOptions!=="object"||e.responseOptions===null){throw new D("responseOptions must be an object")}}reply(e){if(typeof e==="function"){const wrappedDefaultsCallback=t=>{const n=e(t);if(typeof n!=="object"||n===null){throw new D("reply options callback must return an object")}const o={data:"",responseOptions:{},...n};this.validateReplyParameters(o);return{...this.createMockScopeDispatchData(o)}};const t=a(this[d],this[m],wrappedDefaultsCallback);return new MockScope(t)}const t={statusCode:e,data:arguments[1]===undefined?"":arguments[1],responseOptions:arguments[2]===undefined?{}:arguments[2]};this.validateReplyParameters(t);const n=this.createMockScopeDispatchData(t);const o=a(this[d],this[m],n);return new MockScope(o)}replyWithError(e){if(typeof e==="undefined"){throw new D("error must be defined")}const t=a(this[d],this[m],{error:e});return new MockScope(t)}defaultReplyHeaders(e){if(typeof e==="undefined"){throw new D("headers must be defined")}this[h]=e;return this}defaultReplyTrailers(e){if(typeof e==="undefined"){throw new D("trailers must be defined")}this[f]=e;return this}replyContentLength(){this[C]=true;return this}}e.exports.MockInterceptor=MockInterceptor;e.exports.MockScope=MockScope},4004:(e,t,n)=>{const{promisify:o}=n(7975);const i=n(628);const{buildMockDispatch:a}=n(3397);const{kDispatches:d,kMockAgent:m,kClose:h,kOriginalClose:f,kOrigin:C,kOriginalDispatch:P,kConnected:D}=n(1117);const{MockInterceptor:k}=n(1511);const L=n(6443);const{InvalidArgumentError:F}=n(8707);class MockPool extends i{constructor(e,t){super(e,t);if(!t||!t.agent||typeof t.agent.dispatch!=="function"){throw new F("Argument opts.agent must implement Agent")}this[m]=t.agent;this[C]=e;this[d]=[];this[D]=1;this[P]=this.dispatch;this[f]=this.close.bind(this);this.dispatch=a.call(this);this.close=this[h]}get[L.kConnected](){return this[D]}intercept(e){return new k(e,this[d])}async[h](){await o(this[f])();this[D]=0;this[m][L.kClients].delete(this[C])}}e.exports=MockPool},1117:e=>{e.exports={kAgent:Symbol("agent"),kOptions:Symbol("options"),kFactory:Symbol("factory"),kDispatches:Symbol("dispatches"),kDispatchKey:Symbol("dispatch key"),kDefaultHeaders:Symbol("default headers"),kDefaultTrailers:Symbol("default trailers"),kContentLength:Symbol("content length"),kMockAgent:Symbol("mock agent"),kMockAgentSet:Symbol("mock agent set"),kMockAgentGet:Symbol("mock agent get"),kMockDispatch:Symbol("mock dispatch"),kClose:Symbol("close"),kOriginalClose:Symbol("original agent close"),kOrigin:Symbol("origin"),kIsMockActive:Symbol("is mock active"),kNetConnect:Symbol("net connect"),kGetNetConnect:Symbol("get net connect"),kConnected:Symbol("connected")}},3397:(e,t,n)=>{const{MockNotMatchedError:o}=n(2429);const{kDispatches:i,kMockAgent:a,kOriginalDispatch:d,kOrigin:m,kGetNetConnect:h}=n(1117);const{buildURL:f}=n(3440);const{STATUS_CODES:C}=n(7067);const{types:{isPromise:P}}=n(7975);function matchValue(e,t){if(typeof e==="string"){return e===t}if(e instanceof RegExp){return e.test(t)}if(typeof e==="function"){return e(t)===true}return false}function lowerCaseEntries(e){return Object.fromEntries(Object.entries(e).map((([e,t])=>[e.toLocaleLowerCase(),t])))}function getHeaderByName(e,t){if(Array.isArray(e)){for(let n=0;n<e.length;n+=2){if(e[n].toLocaleLowerCase()===t.toLocaleLowerCase()){return e[n+1]}}return undefined}else if(typeof e.get==="function"){return e.get(t)}else{return lowerCaseEntries(e)[t.toLocaleLowerCase()]}}function buildHeadersFromArray(e){const t=e.slice();const n=[];for(let e=0;e<t.length;e+=2){n.push([t[e],t[e+1]])}return Object.fromEntries(n)}function matchHeaders(e,t){if(typeof e.headers==="function"){if(Array.isArray(t)){t=buildHeadersFromArray(t)}return e.headers(t?lowerCaseEntries(t):{})}if(typeof e.headers==="undefined"){return true}if(typeof t!=="object"||typeof e.headers!=="object"){return false}for(const[n,o]of Object.entries(e.headers)){const e=getHeaderByName(t,n);if(!matchValue(o,e)){return false}}return true}function safeUrl(e){if(typeof e!=="string"){return e}const t=e.split("?");if(t.length!==2){return e}const n=new URLSearchParams(t.pop());n.sort();return[...t,n.toString()].join("?")}function matchKey(e,{path:t,method:n,body:o,headers:i}){const a=matchValue(e.path,t);const d=matchValue(e.method,n);const m=typeof e.body!=="undefined"?matchValue(e.body,o):true;const h=matchHeaders(e,i);return a&&d&&m&&h}function getResponseData(e){if(Buffer.isBuffer(e)){return e}else if(e instanceof Uint8Array){return e}else if(e instanceof ArrayBuffer){return e}else if(typeof e==="object"){return JSON.stringify(e)}else{return e.toString()}}function getMockDispatch(e,t){const n=t.query?f(t.path,t.query):t.path;const i=typeof n==="string"?safeUrl(n):n;let a=e.filter((({consumed:e})=>!e)).filter((({path:e})=>matchValue(safeUrl(e),i)));if(a.length===0){throw new o(`Mock dispatch not matched for path '${i}'`)}a=a.filter((({method:e})=>matchValue(e,t.method)));if(a.length===0){throw new o(`Mock dispatch not matched for method '${t.method}' on path '${i}'`)}a=a.filter((({body:e})=>typeof e!=="undefined"?matchValue(e,t.body):true));if(a.length===0){throw new o(`Mock dispatch not matched for body '${t.body}' on path '${i}'`)}a=a.filter((e=>matchHeaders(e,t.headers)));if(a.length===0){const e=typeof t.headers==="object"?JSON.stringify(t.headers):t.headers;throw new o(`Mock dispatch not matched for headers '${e}' on path '${i}'`)}return a[0]}function addMockDispatch(e,t,n){const o={timesInvoked:0,times:1,persist:false,consumed:false};const i=typeof n==="function"?{callback:n}:{...n};const a={...o,...t,pending:true,data:{error:null,...i}};e.push(a);return a}function deleteMockDispatch(e,t){const n=e.findIndex((e=>{if(!e.consumed){return false}return matchKey(e,t)}));if(n!==-1){e.splice(n,1)}}function buildKey(e){const{path:t,method:n,body:o,headers:i,query:a}=e;return{path:t,method:n,body:o,headers:i,query:a}}function generateKeyValues(e){const t=Object.keys(e);const n=[];for(let o=0;o<t.length;++o){const i=t[o];const a=e[i];const d=Buffer.from(`${i}`);if(Array.isArray(a)){for(let e=0;e<a.length;++e){n.push(d,Buffer.from(`${a[e]}`))}}else{n.push(d,Buffer.from(`${a}`))}}return n}function getStatusText(e){return C[e]||"unknown"}async function getResponse(e){const t=[];for await(const n of e){t.push(n)}return Buffer.concat(t).toString("utf8")}function mockDispatch(e,t){const n=buildKey(e);const o=getMockDispatch(this[i],n);o.timesInvoked++;if(o.data.callback){o.data={...o.data,...o.data.callback(e)}}const{data:{statusCode:a,data:d,headers:m,trailers:h,error:f},delay:C,persist:D}=o;const{timesInvoked:k,times:L}=o;o.consumed=!D&&k>=L;o.pending=k<L;if(f!==null){deleteMockDispatch(this[i],n);t.onError(f);return true}if(typeof C==="number"&&C>0){setTimeout((()=>{handleReply(this[i])}),C)}else{handleReply(this[i])}function handleReply(o,i=d){const f=Array.isArray(e.headers)?buildHeadersFromArray(e.headers):e.headers;const C=typeof i==="function"?i({...e,headers:f}):i;if(P(C)){C.then((e=>handleReply(o,e)));return}const D=getResponseData(C);const k=generateKeyValues(m);const L=generateKeyValues(h);t.onConnect?.((e=>t.onError(e)),null);t.onHeaders?.(a,k,resume,getStatusText(a));t.onData?.(Buffer.from(D));t.onComplete?.(L);deleteMockDispatch(o,n)}function resume(){}return true}function buildMockDispatch(){const e=this[a];const t=this[m];const n=this[d];return function dispatch(i,a){if(e.isMockActive){try{mockDispatch.call(this,i,a)}catch(d){if(d instanceof o){const m=e[h]();if(m===false){throw new o(`${d.message}: subsequent request to origin ${t} was not allowed (net.connect disabled)`)}if(checkNetConnect(m,t)){n.call(this,i,a)}else{throw new o(`${d.message}: subsequent request to origin ${t} was not allowed (net.connect is not enabled for this origin)`)}}else{throw d}}}else{n.call(this,i,a)}}}function checkNetConnect(e,t){const n=new URL(t);if(e===true){return true}else if(Array.isArray(e)&&e.some((e=>matchValue(e,n.host)))){return true}return false}function buildMockOptions(e){if(e){const{agent:t,...n}=e;return n}}e.exports={getResponseData:getResponseData,getMockDispatch:getMockDispatch,addMockDispatch:addMockDispatch,deleteMockDispatch:deleteMockDispatch,buildKey:buildKey,generateKeyValues:generateKeyValues,matchValue:matchValue,getResponse:getResponse,getStatusText:getStatusText,mockDispatch:mockDispatch,buildMockDispatch:buildMockDispatch,checkNetConnect:checkNetConnect,buildMockOptions:buildMockOptions,getHeaderByName:getHeaderByName,buildHeadersFromArray:buildHeadersFromArray}},6142:(e,t,n)=>{const{Transform:o}=n(7075);const{Console:i}=n(7540);const a=process.versions.icu?"✅":"Y ";const d=process.versions.icu?"❌":"N ";e.exports=class PendingInterceptorsFormatter{constructor({disableColors:e}={}){this.transform=new o({transform(e,t,n){n(null,e)}});this.logger=new i({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}})}format(e){const t=e.map((({method:e,path:t,data:{statusCode:n},persist:o,times:i,timesInvoked:m,origin:h})=>({Method:e,Origin:h,Path:t,"Status code":n,Persistent:o?a:d,Invocations:m,Remaining:o?Infinity:i-m})));this.logger.table(t);return this.transform.read().toString()}}},1529:e=>{const t={pronoun:"it",is:"is",was:"was",this:"this"};const n={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class Pluralizer{constructor(e,t){this.singular=e;this.plural=t}pluralize(e){const o=e===1;const i=o?t:n;const a=o?this.singular:this.plural;return{...i,count:e,noun:a}}}},6603:e=>{let t=0;const n=1e3;const o=(n>>1)-1;let i;const a=Symbol("kFastTimer");const d=[];const m=-2;const h=-1;const f=0;const C=1;function onTick(){t+=o;let e=0;let n=d.length;while(e<n){const i=d[e];if(i._state===f){i._idleStart=t-o;i._state=C}else if(i._state===C&&t>=i._idleStart+i._idleTimeout){i._state=h;i._idleStart=-1;i._onTimeout(i._timerArg)}if(i._state===h){i._state=m;if(--n!==0){d[e]=d[n]}}else{++e}}d.length=n;if(d.length!==0){refreshTimeout()}}function refreshTimeout(){if(i){i.refresh()}else{clearTimeout(i);i=setTimeout(onTick,o);if(i.unref){i.unref()}}}class FastTimer{[a]=true;_state=m;_idleTimeout=-1;_idleStart=-1;_onTimeout;_timerArg;constructor(e,t,n){this._onTimeout=e;this._idleTimeout=t;this._timerArg=n;this.refresh()}refresh(){if(this._state===m){d.push(this)}if(!i||d.length===1){refreshTimeout()}this._state=f}clear(){this._state=h;this._idleStart=-1}}e.exports={setTimeout(e,t,o){return t<=n?setTimeout(e,t,o):new FastTimer(e,t,o)},clearTimeout(e){if(e[a]){e.clear()}else{clearTimeout(e)}},setFastTimeout(e,t,n){return new FastTimer(e,t,n)},clearFastTimeout(e){e.clear()},now(){return t},tick(e=0){t+=e-n+1;onTick();onTick()},reset(){t=0;d.length=0;clearTimeout(i);i=null},kFastTimer:a}},9634:(e,t,n)=>{const{kConstruct:o}=n(109);const{urlEquals:i,getFieldValues:a}=n(6798);const{kEnumerableProperty:d,isDisturbed:m}=n(3440);const{webidl:h}=n(5893);const{Response:f,cloneResponse:C,fromInnerResponse:P}=n(9051);const{Request:D,fromInnerRequest:k}=n(9967);const{kState:L}=n(3627);const{fetching:F}=n(4398);const{urlIsHttpHttpsScheme:q,createDeferredPromise:V,readAllBytes:ee}=n(3168);const te=n(4589);class Cache{#Q;constructor(){if(arguments[0]!==o){h.illegalConstructor()}h.util.markAsUncloneable(this);this.#Q=arguments[1]}async match(e,t={}){h.brandCheck(this,Cache);const n="Cache.match";h.argumentLengthCheck(arguments,1,n);e=h.converters.RequestInfo(e,n,"request");t=h.converters.CacheQueryOptions(t,n,"options");const o=this.#T(e,t,1);if(o.length===0){return}return o[0]}async matchAll(e=undefined,t={}){h.brandCheck(this,Cache);const n="Cache.matchAll";if(e!==undefined)e=h.converters.RequestInfo(e,n,"request");t=h.converters.CacheQueryOptions(t,n,"options");return this.#T(e,t)}async add(e){h.brandCheck(this,Cache);const t="Cache.add";h.argumentLengthCheck(arguments,1,t);e=h.converters.RequestInfo(e,t,"request");const n=[e];const o=this.addAll(n);return await o}async addAll(e){h.brandCheck(this,Cache);const t="Cache.addAll";h.argumentLengthCheck(arguments,1,t);const n=[];const o=[];for(let n of e){if(n===undefined){throw h.errors.conversionFailed({prefix:t,argument:"Argument 1",types:["undefined is not allowed"]})}n=h.converters.RequestInfo(n);if(typeof n==="string"){continue}const e=n[L];if(!q(e.url)||e.method!=="GET"){throw h.errors.exception({header:t,message:"Expected http/s scheme when method is not GET."})}}const i=[];for(const d of e){const e=new D(d)[L];if(!q(e.url)){throw h.errors.exception({header:t,message:"Expected http/s scheme."})}e.initiator="fetch";e.destination="subresource";o.push(e);const m=V();i.push(F({request:e,processResponse(e){if(e.type==="error"||e.status===206||e.status<200||e.status>299){m.reject(h.errors.exception({header:"Cache.addAll",message:"Received an invalid status code or the request failed."}))}else if(e.headersList.contains("vary")){const t=a(e.headersList.get("vary"));for(const e of t){if(e==="*"){m.reject(h.errors.exception({header:"Cache.addAll",message:"invalid vary field value"}));for(const e of i){e.abort()}return}}}},processResponseEndOfBody(e){if(e.aborted){m.reject(new DOMException("aborted","AbortError"));return}m.resolve(e)}}));n.push(m.promise)}const d=Promise.all(n);const m=await d;const f=[];let C=0;for(const e of m){const t={type:"put",request:o[C],response:e};f.push(t);C++}const P=V();let k=null;try{this.#v(f)}catch(e){k=e}queueMicrotask((()=>{if(k===null){P.resolve(undefined)}else{P.reject(k)}}));return P.promise}async put(e,t){h.brandCheck(this,Cache);const n="Cache.put";h.argumentLengthCheck(arguments,2,n);e=h.converters.RequestInfo(e,n,"request");t=h.converters.Response(t,n,"response");let o=null;if(e instanceof D){o=e[L]}else{o=new D(e)[L]}if(!q(o.url)||o.method!=="GET"){throw h.errors.exception({header:n,message:"Expected an http/s scheme when method is not GET"})}const i=t[L];if(i.status===206){throw h.errors.exception({header:n,message:"Got 206 status"})}if(i.headersList.contains("vary")){const e=a(i.headersList.get("vary"));for(const t of e){if(t==="*"){throw h.errors.exception({header:n,message:"Got * vary field value"})}}}if(i.body&&(m(i.body.stream)||i.body.stream.locked)){throw h.errors.exception({header:n,message:"Response body is locked or disturbed"})}const d=C(i);const f=V();if(i.body!=null){const e=i.body.stream;const t=e.getReader();ee(t).then(f.resolve,f.reject)}else{f.resolve(undefined)}const P=[];const k={type:"put",request:o,response:d};P.push(k);const F=await f.promise;if(d.body!=null){d.body.source=F}const te=V();let re=null;try{this.#v(P)}catch(e){re=e}queueMicrotask((()=>{if(re===null){te.resolve()}else{te.reject(re)}}));return te.promise}async delete(e,t={}){h.brandCheck(this,Cache);const n="Cache.delete";h.argumentLengthCheck(arguments,1,n);e=h.converters.RequestInfo(e,n,"request");t=h.converters.CacheQueryOptions(t,n,"options");let o=null;if(e instanceof D){o=e[L];if(o.method!=="GET"&&!t.ignoreMethod){return false}}else{te(typeof e==="string");o=new D(e)[L]}const i=[];const a={type:"delete",request:o,options:t};i.push(a);const d=V();let m=null;let f;try{f=this.#v(i)}catch(e){m=e}queueMicrotask((()=>{if(m===null){d.resolve(!!f?.length)}else{d.reject(m)}}));return d.promise}async keys(e=undefined,t={}){h.brandCheck(this,Cache);const n="Cache.keys";if(e!==undefined)e=h.converters.RequestInfo(e,n,"request");t=h.converters.CacheQueryOptions(t,n,"options");let o=null;if(e!==undefined){if(e instanceof D){o=e[L];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new D(e)[L]}}const i=V();const a=[];if(e===undefined){for(const e of this.#Q){a.push(e[0])}}else{const e=this.#P(o,t);for(const t of e){a.push(t[0])}}queueMicrotask((()=>{const e=[];for(const t of a){const n=k(t,(new AbortController).signal,"immutable");e.push(n)}i.resolve(Object.freeze(e))}));return i.promise}#v(e){const t=this.#Q;const n=[...t];const o=[];const i=[];try{for(const n of e){if(n.type!=="delete"&&n.type!=="put"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:'operation type does not match "delete" or "put"'})}if(n.type==="delete"&&n.response!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"delete operation should not have an associated response"})}if(this.#P(n.request,n.options,o).length){throw new DOMException("???","InvalidStateError")}let e;if(n.type==="delete"){e=this.#P(n.request,n.options);if(e.length===0){return[]}for(const n of e){const e=t.indexOf(n);te(e!==-1);t.splice(e,1)}}else if(n.type==="put"){if(n.response==null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"put operation should have an associated response"})}const i=n.request;if(!q(i.url)){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"expected http or https scheme"})}if(i.method!=="GET"){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"not get method"})}if(n.options!=null){throw h.errors.exception({header:"Cache.#batchCacheOperations",message:"options must not be defined"})}e=this.#P(n.request);for(const n of e){const e=t.indexOf(n);te(e!==-1);t.splice(e,1)}t.push([n.request,n.response]);o.push([n.request,n.response])}i.push([n.request,n.response])}return i}catch(e){this.#Q.length=0;this.#Q=n;throw e}}#P(e,t,n){const o=[];const i=n??this.#Q;for(const n of i){const[i,a]=n;if(this.#D(e,i,a,t)){o.push(n)}}return o}#D(e,t,n=null,o){const d=new URL(e.url);const m=new URL(t.url);if(o?.ignoreSearch){m.search="";d.search=""}if(!i(d,m,true)){return false}if(n==null||o?.ignoreVary||!n.headersList.contains("vary")){return true}const h=a(n.headersList.get("vary"));for(const n of h){if(n==="*"){return false}const o=t.headersList.get(n);const i=e.headersList.get(n);if(o!==i){return false}}return true}#T(e,t,n=Infinity){let o=null;if(e!==undefined){if(e instanceof D){o=e[L];if(o.method!=="GET"&&!t.ignoreMethod){return[]}}else if(typeof e==="string"){o=new D(e)[L]}}const i=[];if(e===undefined){for(const e of this.#Q){i.push(e[1])}}else{const e=this.#P(o,t);for(const t of e){i.push(t[1])}}const a=[];for(const e of i){const t=P(e,"immutable");a.push(t.clone());if(a.length>=n){break}}return Object.freeze(a)}}Object.defineProperties(Cache.prototype,{[Symbol.toStringTag]:{value:"Cache",configurable:true},match:d,matchAll:d,add:d,addAll:d,put:d,delete:d,keys:d});const re=[{key:"ignoreSearch",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreMethod",converter:h.converters.boolean,defaultValue:()=>false},{key:"ignoreVary",converter:h.converters.boolean,defaultValue:()=>false}];h.converters.CacheQueryOptions=h.dictionaryConverter(re);h.converters.MultiCacheQueryOptions=h.dictionaryConverter([...re,{key:"cacheName",converter:h.converters.DOMString}]);h.converters.Response=h.interfaceConverter(f);h.converters["sequence<RequestInfo>"]=h.sequenceConverter(h.converters.RequestInfo);e.exports={Cache:Cache}},3245:(e,t,n)=>{const{kConstruct:o}=n(109);const{Cache:i}=n(9634);const{webidl:a}=n(5893);const{kEnumerableProperty:d}=n(3440);class CacheStorage{#k=new Map;constructor(){if(arguments[0]!==o){a.illegalConstructor()}a.util.markAsUncloneable(this)}async match(e,t={}){a.brandCheck(this,CacheStorage);a.argumentLengthCheck(arguments,1,"CacheStorage.match");e=a.converters.RequestInfo(e);t=a.converters.MultiCacheQueryOptions(t);if(t.cacheName!=null){if(this.#k.has(t.cacheName)){const n=this.#k.get(t.cacheName);const a=new i(o,n);return await a.match(e,t)}}else{for(const n of this.#k.values()){const a=new i(o,n);const d=await a.match(e,t);if(d!==undefined){return d}}}}async has(e){a.brandCheck(this,CacheStorage);const t="CacheStorage.has";a.argumentLengthCheck(arguments,1,t);e=a.converters.DOMString(e,t,"cacheName");return this.#k.has(e)}async open(e){a.brandCheck(this,CacheStorage);const t="CacheStorage.open";a.argumentLengthCheck(arguments,1,t);e=a.converters.DOMString(e,t,"cacheName");if(this.#k.has(e)){const t=this.#k.get(e);return new i(o,t)}const n=[];this.#k.set(e,n);return new i(o,n)}async delete(e){a.brandCheck(this,CacheStorage);const t="CacheStorage.delete";a.argumentLengthCheck(arguments,1,t);e=a.converters.DOMString(e,t,"cacheName");return this.#k.delete(e)}async keys(){a.brandCheck(this,CacheStorage);const e=this.#k.keys();return[...e]}}Object.defineProperties(CacheStorage.prototype,{[Symbol.toStringTag]:{value:"CacheStorage",configurable:true},match:d,has:d,open:d,delete:d,keys:d});e.exports={CacheStorage:CacheStorage}},109:(e,t,n)=>{e.exports={kConstruct:n(6443).kConstruct}},6798:(e,t,n)=>{const o=n(4589);const{URLSerializer:i}=n(1900);const{isValidHeaderName:a}=n(3168);function urlEquals(e,t,n=false){const o=i(e,n);const a=i(t,n);return o===a}function getFieldValues(e){o(e!==null);const t=[];for(let n of e.split(",")){n=n.trim();if(a(n)){t.push(n)}}return t}e.exports={urlEquals:urlEquals,getFieldValues:getFieldValues}},1276:e=>{const t=1024;const n=4096;e.exports={maxAttributeValueSize:t,maxNameValuePairSize:n}},9061:(e,t,n)=>{const{parseSetCookie:o}=n(1978);const{stringify:i}=n(7797);const{webidl:a}=n(5893);const{Headers:d}=n(660);function getCookies(e){a.argumentLengthCheck(arguments,1,"getCookies");a.brandCheck(e,d,{strict:false});const t=e.get("cookie");const n={};if(!t){return n}for(const e of t.split(";")){const[t,...o]=e.split("=");n[t.trim()]=o.join("=")}return n}function deleteCookie(e,t,n){a.brandCheck(e,d,{strict:false});const o="deleteCookie";a.argumentLengthCheck(arguments,2,o);t=a.converters.DOMString(t,o,"name");n=a.converters.DeleteCookieAttributes(n);setCookie(e,{name:t,value:"",expires:new Date(0),...n})}function getSetCookies(e){a.argumentLengthCheck(arguments,1,"getSetCookies");a.brandCheck(e,d,{strict:false});const t=e.getSetCookie();if(!t){return[]}return t.map((e=>o(e)))}function setCookie(e,t){a.argumentLengthCheck(arguments,2,"setCookie");a.brandCheck(e,d,{strict:false});t=a.converters.Cookie(t);const n=i(t);if(n){e.append("Set-Cookie",n)}}a.converters.DeleteCookieAttributes=a.dictionaryConverter([{converter:a.nullableConverter(a.converters.DOMString),key:"path",defaultValue:()=>null},{converter:a.nullableConverter(a.converters.DOMString),key:"domain",defaultValue:()=>null}]);a.converters.Cookie=a.dictionaryConverter([{converter:a.converters.DOMString,key:"name"},{converter:a.converters.DOMString,key:"value"},{converter:a.nullableConverter((e=>{if(typeof e==="number"){return a.converters["unsigned long long"](e)}return new Date(e)})),key:"expires",defaultValue:()=>null},{converter:a.nullableConverter(a.converters["long long"]),key:"maxAge",defaultValue:()=>null},{converter:a.nullableConverter(a.converters.DOMString),key:"domain",defaultValue:()=>null},{converter:a.nullableConverter(a.converters.DOMString),key:"path",defaultValue:()=>null},{converter:a.nullableConverter(a.converters.boolean),key:"secure",defaultValue:()=>null},{converter:a.nullableConverter(a.converters.boolean),key:"httpOnly",defaultValue:()=>null},{converter:a.converters.USVString,key:"sameSite",allowedValues:["Strict","Lax","None"]},{converter:a.sequenceConverter(a.converters.DOMString),key:"unparsed",defaultValue:()=>new Array(0)}]);e.exports={getCookies:getCookies,deleteCookie:deleteCookie,getSetCookies:getSetCookies,setCookie:setCookie}},1978:(e,t,n)=>{const{maxNameValuePairSize:o,maxAttributeValueSize:i}=n(1276);const{isCTLExcludingHtab:a}=n(7797);const{collectASequenceOfCodePointsFast:d}=n(1900);const m=n(4589);function parseSetCookie(e){if(a(e)){return null}let t="";let n="";let i="";let m="";if(e.includes(";")){const o={position:0};t=d(";",e,o);n=e.slice(o.position)}else{t=e}if(!t.includes("=")){m=t}else{const e={position:0};i=d("=",t,e);m=t.slice(e.position+1)}i=i.trim();m=m.trim();if(i.length+m.length>o){return null}return{name:i,value:m,...parseUnparsedAttributes(n)}}function parseUnparsedAttributes(e,t={}){if(e.length===0){return t}m(e[0]===";");e=e.slice(1);let n="";if(e.includes(";")){n=d(";",e,{position:0});e=e.slice(n.length)}else{n=e;e=""}let o="";let a="";if(n.includes("=")){const e={position:0};o=d("=",n,e);a=n.slice(e.position+1)}else{o=n}o=o.trim();a=a.trim();if(a.length>i){return parseUnparsedAttributes(e,t)}const h=o.toLowerCase();if(h==="expires"){const e=new Date(a);t.expires=e}else if(h==="max-age"){const n=a.charCodeAt(0);if((n<48||n>57)&&a[0]!=="-"){return parseUnparsedAttributes(e,t)}if(!/^\d+$/.test(a)){return parseUnparsedAttributes(e,t)}const o=Number(a);t.maxAge=o}else if(h==="domain"){let e=a;if(e[0]==="."){e=e.slice(1)}e=e.toLowerCase();t.domain=e}else if(h==="path"){let e="";if(a.length===0||a[0]!=="/"){e="/"}else{e=a}t.path=e}else if(h==="secure"){t.secure=true}else if(h==="httponly"){t.httpOnly=true}else if(h==="samesite"){let e="Default";const n=a.toLowerCase();if(n.includes("none")){e="None"}if(n.includes("strict")){e="Strict"}if(n.includes("lax")){e="Lax"}t.sameSite=e}else{t.unparsed??=[];t.unparsed.push(`${o}=${a}`)}return parseUnparsedAttributes(e,t)}e.exports={parseSetCookie:parseSetCookie,parseUnparsedAttributes:parseUnparsedAttributes}},7797:e=>{function isCTLExcludingHtab(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n>=0&&n<=8||n>=10&&n<=31||n===127){return true}}return false}function validateCookieName(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125){throw new Error("Invalid cookie name")}}}function validateCookieValue(e){let t=e.length;let n=0;if(e[0]==='"'){if(t===1||e[t-1]!=='"'){throw new Error("Invalid cookie value")}--t;++n}while(n<t){const t=e.charCodeAt(n++);if(t<33||t>126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<32||n===127||n===59){throw new Error("Invalid cookie path")}}}function validateCookieDomain(e){if(e.startsWith("-")||e.endsWith(".")||e.endsWith("-")){throw new Error("Invalid cookie domain")}}const t=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];const n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];const o=Array(61).fill(0).map(((e,t)=>t.toString().padStart(2,"0")));function toIMFDate(e){if(typeof e==="number"){e=new Date(e)}return`${t[e.getUTCDay()]}, ${o[e.getUTCDate()]} ${n[e.getUTCMonth()]} ${e.getUTCFullYear()} ${o[e.getUTCHours()]}:${o[e.getUTCMinutes()]}:${o[e.getUTCSeconds()]} GMT`}function validateCookieMaxAge(e){if(e<0){throw new Error("Invalid cookie max-age")}}function stringify(e){if(e.name.length===0){return null}validateCookieName(e.name);validateCookieValue(e.value);const t=[`${e.name}=${e.value}`];if(e.name.startsWith("__Secure-")){e.secure=true}if(e.name.startsWith("__Host-")){e.secure=true;e.domain=null;e.path="/"}if(e.secure){t.push("Secure")}if(e.httpOnly){t.push("HttpOnly")}if(typeof e.maxAge==="number"){validateCookieMaxAge(e.maxAge);t.push(`Max-Age=${e.maxAge}`)}if(e.domain){validateCookieDomain(e.domain);t.push(`Domain=${e.domain}`)}if(e.path){validateCookiePath(e.path);t.push(`Path=${e.path}`)}if(e.expires&&e.expires.toString()!=="Invalid Date"){t.push(`Expires=${toIMFDate(e.expires)}`)}if(e.sameSite){t.push(`SameSite=${e.sameSite}`)}for(const n of e.unparsed){if(!n.includes("=")){throw new Error("Invalid unparsed")}const[e,...o]=n.split("=");t.push(`${e.trim()}=${o.join("=")}`)}return t.join("; ")}e.exports={isCTLExcludingHtab:isCTLExcludingHtab,validateCookieName:validateCookieName,validateCookiePath:validateCookiePath,validateCookieValue:validateCookieValue,toIMFDate:toIMFDate,stringify:stringify}},4031:(e,t,n)=>{const{Transform:o}=n(7075);const{isASCIINumber:i,isValidLastEventId:a}=n(4811);const d=[239,187,191];const m=10;const h=13;const f=58;const C=32;class EventSourceStream extends o{state=null;checkBOM=true;crlfCheck=false;eventEndCheck=false;buffer=null;pos=0;event={data:undefined,event:undefined,id:undefined,retry:undefined};constructor(e={}){e.readableObjectMode=true;super(e);this.state=e.eventSourceSettings||{};if(e.push){this.push=e.push}}_transform(e,t,n){if(e.length===0){n();return}if(this.buffer){this.buffer=Buffer.concat([this.buffer,e])}else{this.buffer=e}if(this.checkBOM){switch(this.buffer.length){case 1:if(this.buffer[0]===d[0]){n();return}this.checkBOM=false;n();return;case 2:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]){n();return}this.checkBOM=false;break;case 3:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=Buffer.alloc(0);this.checkBOM=false;n();return}this.checkBOM=false;break;default:if(this.buffer[0]===d[0]&&this.buffer[1]===d[1]&&this.buffer[2]===d[2]){this.buffer=this.buffer.subarray(3)}this.checkBOM=false;break}}while(this.pos<this.buffer.length){if(this.eventEndCheck){if(this.crlfCheck){if(this.buffer[this.pos]===m){this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;this.crlfCheck=false;continue}this.crlfCheck=false}if(this.buffer[this.pos]===m||this.buffer[this.pos]===h){if(this.buffer[this.pos]===h){this.crlfCheck=true}this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;if(this.event.data!==undefined||this.event.event||this.event.id||this.event.retry){this.processEvent(this.event)}this.clearEvent();continue}this.eventEndCheck=false;continue}if(this.buffer[this.pos]===m||this.buffer[this.pos]===h){if(this.buffer[this.pos]===h){this.crlfCheck=true}this.parseLine(this.buffer.subarray(0,this.pos),this.event);this.buffer=this.buffer.subarray(this.pos+1);this.pos=0;this.eventEndCheck=true;continue}this.pos++}n()}parseLine(e,t){if(e.length===0){return}const n=e.indexOf(f);if(n===0){return}let o="";let d="";if(n!==-1){o=e.subarray(0,n).toString("utf8");let t=n+1;if(e[t]===C){++t}d=e.subarray(t).toString("utf8")}else{o=e.toString("utf8");d=""}switch(o){case"data":if(t[o]===undefined){t[o]=d}else{t[o]+=`\n${d}`}break;case"retry":if(i(d)){t[o]=d}break;case"id":if(a(d)){t[o]=d}break;case"event":if(d.length>0){t[o]=d}break}}processEvent(e){if(e.retry&&i(e.retry)){this.state.reconnectionTime=parseInt(e.retry,10)}if(e.id&&a(e.id)){this.state.lastEventId=e.id}if(e.data!==undefined){this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}}clearEvent(){this.event={data:undefined,event:undefined,id:undefined,retry:undefined}}}e.exports={EventSourceStream:EventSourceStream}},1238:(e,t,n)=>{const{pipeline:o}=n(7075);const{fetching:i}=n(4398);const{makeRequest:a}=n(9967);const{webidl:d}=n(5893);const{EventSourceStream:m}=n(4031);const{parseMIMEType:h}=n(1900);const{createFastMessageEvent:f}=n(5188);const{isNetworkError:C}=n(9051);const{delay:P}=n(4811);const{kEnumerableProperty:D}=n(3440);const{environmentSettingsObject:k}=n(3168);let L=false;const F=3e3;const q=0;const V=1;const ee=2;const te="anonymous";const re="use-credentials";class EventSource extends EventTarget{#_={open:null,error:null,message:null};#L=null;#O=false;#F=q;#U=null;#M=null;#e;#C;constructor(e,t={}){super();d.util.markAsUncloneable(this);const n="EventSource constructor";d.argumentLengthCheck(arguments,1,n);if(!L){L=true;process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})}e=d.converters.USVString(e,n,"url");t=d.converters.EventSourceInitDict(t,n,"eventSourceInitDict");this.#e=t.dispatcher;this.#C={lastEventId:"",reconnectionTime:F};const o=k;let i;try{i=new URL(e,o.settingsObject.baseUrl);this.#C.origin=i.origin}catch(e){throw new DOMException(e,"SyntaxError")}this.#L=i.href;let m=te;if(t.withCredentials){m=re;this.#O=true}const h={redirect:"follow",keepalive:true,mode:"cors",credentials:m==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};h.client=k.settingsObject;h.headersList=[["accept",{name:"accept",value:"text/event-stream"}]];h.cache="no-store";h.initiator="other";h.urlList=[new URL(this.#L)];this.#U=a(h);this.#H()}get readyState(){return this.#F}get url(){return this.#L}get withCredentials(){return this.#O}#H(){if(this.#F===ee)return;this.#F=q;const e={request:this.#U,dispatcher:this.#e};const processEventSourceEndOfBody=e=>{if(C(e)){this.dispatchEvent(new Event("error"));this.close()}this.#$()};e.processResponseEndOfBody=processEventSourceEndOfBody;e.processResponse=e=>{if(C(e)){if(e.aborted){this.close();this.dispatchEvent(new Event("error"));return}else{this.#$();return}}const t=e.headersList.get("content-type",true);const n=t!==null?h(t):"failure";const i=n!=="failure"&&n.essence==="text/event-stream";if(e.status!==200||i===false){this.close();this.dispatchEvent(new Event("error"));return}this.#F=V;this.dispatchEvent(new Event("open"));this.#C.origin=e.urlList[e.urlList.length-1].origin;const a=new m({eventSourceSettings:this.#C,push:e=>{this.dispatchEvent(f(e.type,e.options))}});o(e.body.stream,a,(e=>{if(e?.aborted===false){this.close();this.dispatchEvent(new Event("error"))}}))};this.#M=i(e)}async#$(){if(this.#F===ee)return;this.#F=q;this.dispatchEvent(new Event("error"));await P(this.#C.reconnectionTime);if(this.#F!==q)return;if(this.#C.lastEventId.length){this.#U.headersList.set("last-event-id",this.#C.lastEventId,true)}this.#H()}close(){d.brandCheck(this,EventSource);if(this.#F===ee)return;this.#F=ee;this.#M.abort();this.#U=null}get onopen(){return this.#_.open}set onopen(e){if(this.#_.open){this.removeEventListener("open",this.#_.open)}if(typeof e==="function"){this.#_.open=e;this.addEventListener("open",e)}else{this.#_.open=null}}get onmessage(){return this.#_.message}set onmessage(e){if(this.#_.message){this.removeEventListener("message",this.#_.message)}if(typeof e==="function"){this.#_.message=e;this.addEventListener("message",e)}else{this.#_.message=null}}get onerror(){return this.#_.error}set onerror(e){if(this.#_.error){this.removeEventListener("error",this.#_.error)}if(typeof e==="function"){this.#_.error=e;this.addEventListener("error",e)}else{this.#_.error=null}}}const ne={CONNECTING:{__proto__:null,configurable:false,enumerable:true,value:q,writable:false},OPEN:{__proto__:null,configurable:false,enumerable:true,value:V,writable:false},CLOSED:{__proto__:null,configurable:false,enumerable:true,value:ee,writable:false}};Object.defineProperties(EventSource,ne);Object.defineProperties(EventSource.prototype,ne);Object.defineProperties(EventSource.prototype,{close:D,onerror:D,onmessage:D,onopen:D,readyState:D,url:D,withCredentials:D});d.converters.EventSourceInitDict=d.dictionaryConverter([{key:"withCredentials",converter:d.converters.boolean,defaultValue:()=>false},{key:"dispatcher",converter:d.converters.any}]);e.exports={EventSource:EventSource,defaultReconnectionTime:F}},4811:e=>{function isValidLastEventId(e){return e.indexOf("\0")===-1}function isASCIINumber(e){if(e.length===0)return false;for(let t=0;t<e.length;t++){if(e.charCodeAt(t)<48||e.charCodeAt(t)>57)return false}return true}function delay(e){return new Promise((t=>{setTimeout(t,e).unref()}))}e.exports={isValidLastEventId:isValidLastEventId,isASCIINumber:isASCIINumber,delay:delay}},4492:(e,t,n)=>{const o=n(3440);const{ReadableStreamFrom:i,isBlobLike:a,isReadableStreamLike:d,readableStreamClose:m,createDeferredPromise:h,fullyReadBody:f,extractMimeType:C,utf8DecodeBytes:P}=n(3168);const{FormData:D}=n(5910);const{kState:k}=n(3627);const{webidl:L}=n(5893);const{Blob:F}=n(4573);const q=n(4589);const{isErrored:V,isDisturbed:ee}=n(7075);const{isArrayBuffer:te}=n(3429);const{serializeAMimeType:re}=n(1900);const{multipartFormDataParser:ne}=n(116);let se;try{const e=n(7598);se=t=>e.randomInt(0,t)}catch{se=e=>Math.floor(Math.random(e))}const oe=new TextEncoder;function noop(){}const ie=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0;let ae;if(ie){ae=new FinalizationRegistry((e=>{const t=e.deref();if(t&&!t.locked&&!ee(t)&&!V(t)){t.cancel("Response object has been garbage collected").catch(noop)}}))}function extractBody(e,t=false){let n=null;if(e instanceof ReadableStream){n=e}else if(a(e)){n=e.stream()}else{n=new ReadableStream({async pull(e){const t=typeof f==="string"?oe.encode(f):f;if(t.byteLength){e.enqueue(t)}queueMicrotask((()=>m(e)))},start(){},type:"bytes"})}q(d(n));let h=null;let f=null;let C=null;let P=null;if(typeof e==="string"){f=e;P="text/plain;charset=UTF-8"}else if(e instanceof URLSearchParams){f=e.toString();P="application/x-www-form-urlencoded;charset=UTF-8"}else if(te(e)){f=new Uint8Array(e.slice())}else if(ArrayBuffer.isView(e)){f=new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength))}else if(o.isFormDataLike(e)){const t=`----formdata-undici-0${`${se(1e11)}`.padStart(11,"0")}`;const n=`--${t}\r\nContent-Disposition: form-data`
|
||
/*! formdata-polyfill. MIT License. Jimmy Wärting <https://jimmy.warting.se/opensource> */;const escape=e=>e.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22");const normalizeLinefeeds=e=>e.replace(/\r?\n|\r/g,"\r\n");const o=[];const i=new Uint8Array([13,10]);C=0;let a=false;for(const[t,d]of e){if(typeof d==="string"){const e=oe.encode(n+`; name="${escape(normalizeLinefeeds(t))}"`+`\r\n\r\n${normalizeLinefeeds(d)}\r\n`);o.push(e);C+=e.byteLength}else{const e=oe.encode(`${n}; name="${escape(normalizeLinefeeds(t))}"`+(d.name?`; filename="${escape(d.name)}"`:"")+"\r\n"+`Content-Type: ${d.type||"application/octet-stream"}\r\n\r\n`);o.push(e,d,i);if(typeof d.size==="number"){C+=e.byteLength+d.size+i.byteLength}else{a=true}}}const d=oe.encode(`--${t}--\r\n`);o.push(d);C+=d.byteLength;if(a){C=null}f=e;h=async function*(){for(const e of o){if(e.stream){yield*e.stream()}else{yield e}}};P=`multipart/form-data; boundary=${t}`}else if(a(e)){f=e;C=e.size;if(e.type){P=e.type}}else if(typeof e[Symbol.asyncIterator]==="function"){if(t){throw new TypeError("keepalive")}if(o.isDisturbed(e)||e.locked){throw new TypeError("Response body object should not be disturbed or locked")}n=e instanceof ReadableStream?e:i(e)}if(typeof f==="string"||o.isBuffer(f)){C=Buffer.byteLength(f)}if(h!=null){let t;n=new ReadableStream({async start(){t=h(e)[Symbol.asyncIterator]()},async pull(e){const{value:o,done:i}=await t.next();if(i){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{if(!V(n)){const t=new Uint8Array(o);if(t.byteLength){e.enqueue(t)}}}return e.desiredSize>0},async cancel(e){await t.return()},type:"bytes"})}const D={stream:n,source:f,length:C};return[D,P]}function safelyExtractBody(e,t=false){if(e instanceof ReadableStream){q(!o.isDisturbed(e),"The body has already been consumed.");q(!e.locked,"The stream is locked.")}return extractBody(e,t)}function cloneBody(e,t){const[n,o]=t.stream.tee();t.stream=n;return{stream:o,length:t.length,source:t.source}}function throwIfAborted(e){if(e.aborted){throw new DOMException("The operation was aborted.","AbortError")}}function bodyMixinMethods(e){const t={blob(){return consumeBody(this,(e=>{let t=bodyMimeType(this);if(t===null){t=""}else if(t){t=re(t)}return new F([e],{type:t})}),e)},arrayBuffer(){return consumeBody(this,(e=>new Uint8Array(e).buffer),e)},text(){return consumeBody(this,P,e)},json(){return consumeBody(this,parseJSONFromBytes,e)},formData(){return consumeBody(this,(e=>{const t=bodyMimeType(this);if(t!==null){switch(t.essence){case"multipart/form-data":{const n=ne(e,t);if(n==="failure"){throw new TypeError("Failed to parse body as FormData.")}const o=new D;o[k]=n;return o}case"application/x-www-form-urlencoded":{const t=new URLSearchParams(e.toString());const n=new D;for(const[e,o]of t){n.append(e,o)}return n}}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')}),e)},bytes(){return consumeBody(this,(e=>new Uint8Array(e)),e)}};return t}function mixinBody(e){Object.assign(e.prototype,bodyMixinMethods(e))}async function consumeBody(e,t,n){L.brandCheck(e,n);if(bodyUnusable(e)){throw new TypeError("Body is unusable: Body has already been read")}throwIfAborted(e[k]);const o=h();const errorSteps=e=>o.reject(e);const successSteps=e=>{try{o.resolve(t(e))}catch(e){errorSteps(e)}};if(e[k].body==null){successSteps(Buffer.allocUnsafe(0));return o.promise}await f(e[k].body,successSteps,errorSteps);return o.promise}function bodyUnusable(e){const t=e[k].body;return t!=null&&(t.stream.locked||o.isDisturbed(t.stream))}function parseJSONFromBytes(e){return JSON.parse(P(e))}function bodyMimeType(e){const t=e[k].headersList;const n=C(t);if(n==="failure"){return null}return n}e.exports={extractBody:extractBody,safelyExtractBody:safelyExtractBody,cloneBody:cloneBody,mixinBody:mixinBody,streamRegistry:ae,hasFinalizationRegistry:ie,bodyUnusable:bodyUnusable}},4495:e=>{const t=["GET","HEAD","POST"];const n=new Set(t);const o=[101,204,205,304];const i=[301,302,303,307,308];const a=new Set(i);const d=["1","7","9","11","13","15","17","19","20","21","22","23","25","37","42","43","53","69","77","79","87","95","101","102","103","104","109","110","111","113","115","117","119","123","135","137","139","143","161","179","389","427","465","512","513","514","515","526","530","531","532","540","548","554","556","563","587","601","636","989","990","993","995","1719","1720","1723","2049","3659","4045","4190","5060","5061","6000","6566","6665","6666","6667","6668","6669","6679","6697","10080"];const m=new Set(d);const h=["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"];const f=new Set(h);const C=["follow","manual","error"];const P=["GET","HEAD","OPTIONS","TRACE"];const D=new Set(P);const k=["navigate","same-origin","no-cors","cors"];const L=["omit","same-origin","include"];const F=["default","no-store","reload","no-cache","force-cache","only-if-cached"];const q=["content-encoding","content-language","content-location","content-type","content-length"];const V=["half"];const ee=["CONNECT","TRACE","TRACK"];const te=new Set(ee);const re=["audio","audioworklet","font","image","manifest","paintworklet","script","style","track","video","xslt",""];const ne=new Set(re);e.exports={subresource:re,forbiddenMethods:ee,requestBodyHeader:q,referrerPolicy:h,requestRedirect:C,requestMode:k,requestCredentials:L,requestCache:F,redirectStatus:i,corsSafeListedMethods:t,nullBodyStatus:o,safeMethods:P,badPorts:d,requestDuplex:V,subresourceSet:ne,badPortsSet:m,redirectStatusSet:a,corsSafeListedMethodsSet:n,safeMethodsSet:D,forbiddenMethodsSet:te,referrerPolicySet:f}},1900:(e,t,n)=>{const o=n(4589);const i=new TextEncoder;const a=/^[!#$%&'*+\-.^_|~A-Za-z0-9]+$/;const d=/[\u000A\u000D\u0009\u0020]/;const m=/[\u0009\u000A\u000C\u000D\u0020]/g;const h=/^[\u0009\u0020-\u007E\u0080-\u00FF]+$/;function dataURLProcessor(e){o(e.protocol==="data:");let t=URLSerializer(e,true);t=t.slice(5);const n={position:0};let i=collectASequenceOfCodePointsFast(",",t,n);const a=i.length;i=removeASCIIWhitespace(i,true,true);if(n.position>=t.length){return"failure"}n.position++;const d=t.slice(a+1);let m=stringPercentDecode(d);if(/;(\u0020){0,}base64$/i.test(i)){const e=isomorphicDecode(m);m=forgivingBase64(e);if(m==="failure"){return"failure"}i=i.slice(0,-6);i=i.replace(/(\u0020)+$/,"");i=i.slice(0,-1)}if(i.startsWith(";")){i="text/plain"+i}let h=parseMIMEType(i);if(h==="failure"){h=parseMIMEType("text/plain;charset=US-ASCII")}return{mimeType:h,body:m}}function URLSerializer(e,t=false){if(!t){return e.href}const n=e.href;const o=e.hash.length;const i=o===0?n:n.substring(0,n.length-o);if(!o&&n.endsWith("#")){return i.slice(0,-1)}return i}function collectASequenceOfCodePoints(e,t,n){let o="";while(n.position<t.length&&e(t[n.position])){o+=t[n.position];n.position++}return o}function collectASequenceOfCodePointsFast(e,t,n){const o=t.indexOf(e,n.position);const i=n.position;if(o===-1){n.position=t.length;return t.slice(i)}n.position=o;return t.slice(i,n.position)}function stringPercentDecode(e){const t=i.encode(e);return percentDecode(t)}function isHexCharByte(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function hexByteToNumber(e){return e>=48&&e<=57?e-48:(e&223)-55}function percentDecode(e){const t=e.length;const n=new Uint8Array(t);let o=0;for(let i=0;i<t;++i){const t=e[i];if(t!==37){n[o++]=t}else if(t===37&&!(isHexCharByte(e[i+1])&&isHexCharByte(e[i+2]))){n[o++]=37}else{n[o++]=hexByteToNumber(e[i+1])<<4|hexByteToNumber(e[i+2]);i+=2}}return t===o?n:n.subarray(0,o)}function parseMIMEType(e){e=removeHTTPWhitespace(e,true,true);const t={position:0};const n=collectASequenceOfCodePointsFast("/",e,t);if(n.length===0||!a.test(n)){return"failure"}if(t.position>e.length){return"failure"}t.position++;let o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0||!a.test(o)){return"failure"}const i=n.toLowerCase();const m=o.toLowerCase();const f={type:i,subtype:m,parameters:new Map,essence:`${i}/${m}`};while(t.position<e.length){t.position++;collectASequenceOfCodePoints((e=>d.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.position<e.length){if(e[t.position]===";"){continue}t.position++}if(t.position>e.length){break}let o=null;if(e[t.position]==='"'){o=collectAnHTTPQuotedString(e,t,true);collectASequenceOfCodePointsFast(";",e,t)}else{o=collectASequenceOfCodePointsFast(";",e,t);o=removeHTTPWhitespace(o,false,true);if(o.length===0){continue}}if(n.length!==0&&a.test(n)&&(o.length===0||h.test(o))&&!f.parameters.has(n)){f.parameters.set(n,o)}}return f}function forgivingBase64(e){e=e.replace(m,"");let t=e.length;if(t%4===0){if(e.charCodeAt(t-1)===61){--t;if(e.charCodeAt(t-1)===61){--t}}}if(t%4===1){return"failure"}if(/[^+/0-9A-Za-z]/.test(e.length===t?e:e.substring(0,t))){return"failure"}const n=Buffer.from(e,"base64");return new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}function collectAnHTTPQuotedString(e,t,n){const i=t.position;let a="";o(e[t.position]==='"');t.position++;while(true){a+=collectASequenceOfCodePoints((e=>e!=='"'&&e!=="\\"),e,t);if(t.position>=e.length){break}const n=e[t.position];t.position++;if(n==="\\"){if(t.position>=e.length){a+="\\";break}a+=e[t.position];t.position++}else{o(n==='"');break}}if(n){return a}return e.slice(i,t.position)}function serializeAMimeType(e){o(e!=="failure");const{parameters:t,essence:n}=e;let i=n;for(let[e,n]of t.entries()){i+=";";i+=e;i+="=";if(!a.test(n)){n=n.replace(/(\\|")/g,"\\$1");n='"'+n;n+='"'}i+=n}return i}function isHTTPWhiteSpace(e){return e===13||e===10||e===9||e===32}function removeHTTPWhitespace(e,t=true,n=true){return removeChars(e,t,n,isHTTPWhiteSpace)}function isASCIIWhitespace(e){return e===13||e===10||e===9||e===12||e===32}function removeASCIIWhitespace(e,t=true,n=true){return removeChars(e,t,n,isASCIIWhitespace)}function removeChars(e,t,n,o){let i=0;let a=e.length-1;if(t){while(i<e.length&&o(e.charCodeAt(i)))i++}if(n){while(a>0&&o(e.charCodeAt(a)))a--}return i===0&&a===e.length-1?e:e.slice(i,a+1)}function isomorphicDecode(e){const t=e.length;if((2<<15)-1>t){return String.fromCharCode.apply(null,e)}let n="";let o=0;let i=(2<<15)-1;while(o<t){if(o+i>t){i=t-o}n+=String.fromCharCode.apply(null,e.subarray(o,o+=i))}return n}function minimizeSupportedMimeType(e){switch(e.essence){case"application/ecmascript":case"application/javascript":case"application/x-ecmascript":case"application/x-javascript":case"text/ecmascript":case"text/javascript":case"text/javascript1.0":case"text/javascript1.1":case"text/javascript1.2":case"text/javascript1.3":case"text/javascript1.4":case"text/javascript1.5":case"text/jscript":case"text/livescript":case"text/x-ecmascript":case"text/x-javascript":return"text/javascript";case"application/json":case"text/json":return"application/json";case"image/svg+xml":return"image/svg+xml";case"text/xml":case"application/xml":return"application/xml"}if(e.subtype.endsWith("+json")){return"application/json"}if(e.subtype.endsWith("+xml")){return"application/xml"}return""}e.exports={dataURLProcessor:dataURLProcessor,URLSerializer:URLSerializer,collectASequenceOfCodePoints:collectASequenceOfCodePoints,collectASequenceOfCodePointsFast:collectASequenceOfCodePointsFast,stringPercentDecode:stringPercentDecode,parseMIMEType:parseMIMEType,collectAnHTTPQuotedString:collectAnHTTPQuotedString,serializeAMimeType:serializeAMimeType,removeChars:removeChars,removeHTTPWhitespace:removeHTTPWhitespace,minimizeSupportedMimeType:minimizeSupportedMimeType,HTTP_TOKEN_CODEPOINTS:a,isomorphicDecode:isomorphicDecode}},6653:(e,t,n)=>{const{kConnected:o,kSize:i}=n(6443);class CompatWeakRef{constructor(e){this.value=e}deref(){return this.value[o]===0&&this.value[i]===0?undefined:this.value}}class CompatFinalizer{constructor(e){this.finalizer=e}register(e,t){if(e.on){e.on("disconnect",(()=>{if(e[o]===0&&e[i]===0){this.finalizer(t)}}))}}unregister(e){}}e.exports=function(){if(process.env.NODE_V8_COVERAGE&&process.version.startsWith("v18")){process._rawDebug("Using compatibility WeakRef and FinalizationRegistry");return{WeakRef:CompatWeakRef,FinalizationRegistry:CompatFinalizer}}return{WeakRef:WeakRef,FinalizationRegistry:FinalizationRegistry}}},7114:(e,t,n)=>{const{Blob:o,File:i}=n(4573);const{kState:a}=n(3627);const{webidl:d}=n(5893);class FileLike{constructor(e,t,n={}){const o=t;const i=n.type;const d=n.lastModified??Date.now();this[a]={blobLike:e,name:o,type:i,lastModified:d}}stream(...e){d.brandCheck(this,FileLike);return this[a].blobLike.stream(...e)}arrayBuffer(...e){d.brandCheck(this,FileLike);return this[a].blobLike.arrayBuffer(...e)}slice(...e){d.brandCheck(this,FileLike);return this[a].blobLike.slice(...e)}text(...e){d.brandCheck(this,FileLike);return this[a].blobLike.text(...e)}get size(){d.brandCheck(this,FileLike);return this[a].blobLike.size}get type(){d.brandCheck(this,FileLike);return this[a].blobLike.type}get name(){d.brandCheck(this,FileLike);return this[a].name}get lastModified(){d.brandCheck(this,FileLike);return this[a].lastModified}get[Symbol.toStringTag](){return"File"}}d.converters.Blob=d.interfaceConverter(o);function isFileLike(e){return e instanceof i||e&&(typeof e.stream==="function"||typeof e.arrayBuffer==="function")&&e[Symbol.toStringTag]==="File"}e.exports={FileLike:FileLike,isFileLike:isFileLike}},116:(e,t,n)=>{const{isUSVString:o,bufferToLowerCasedHeaderName:i}=n(3440);const{utf8DecodeBytes:a}=n(3168);const{HTTP_TOKEN_CODEPOINTS:d,isomorphicDecode:m}=n(1900);const{isFileLike:h}=n(7114);const{makeEntry:f}=n(5910);const C=n(4589);const{File:P}=n(4573);const D=globalThis.File??P;const k=Buffer.from('form-data; name="');const L=Buffer.from("; filename");const F=Buffer.from("--");const q=Buffer.from("--\r\n");function isAsciiString(e){for(let t=0;t<e.length;++t){if((e.charCodeAt(t)&~127)!==0){return false}}return true}function validateBoundary(e){const t=e.length;if(t<27||t>70){return false}for(let n=0;n<t;++n){const t=e.charCodeAt(n);if(!(t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||t===39||t===45||t===95)){return false}}return true}function multipartFormDataParser(e,t){C(t!=="failure"&&t.essence==="multipart/form-data");const n=t.parameters.get("boundary");if(n===undefined){return"failure"}const i=Buffer.from(`--${n}`,"utf8");const d=[];const m={position:0};while(e[m.position]===13&&e[m.position+1]===10){m.position+=2}let P=e.length;while(e[P-1]===10&&e[P-2]===13){P-=2}if(P!==e.length){e=e.subarray(0,P)}while(true){if(e.subarray(m.position,m.position+i.length).equals(i)){m.position+=i.length}else{return"failure"}if(m.position===e.length-2&&bufferStartsWith(e,F,m)||m.position===e.length-4&&bufferStartsWith(e,q,m)){return d}if(e[m.position]!==13||e[m.position+1]!==10){return"failure"}m.position+=2;const t=parseMultipartFormDataHeaders(e,m);if(t==="failure"){return"failure"}let{name:n,filename:P,contentType:k,encoding:L}=t;m.position+=2;let V;{const t=e.indexOf(i.subarray(2),m.position);if(t===-1){return"failure"}V=e.subarray(m.position,t-4);m.position+=V.length;if(L==="base64"){V=Buffer.from(V.toString(),"base64")}}if(e[m.position]!==13||e[m.position+1]!==10){return"failure"}else{m.position+=2}let ee;if(P!==null){k??="text/plain";if(!isAsciiString(k)){k=""}ee=new D([V],P,{type:k})}else{ee=a(Buffer.from(V))}C(o(n));C(typeof ee==="string"&&o(ee)||h(ee));d.push(f(n,ee,P))}}function parseMultipartFormDataHeaders(e,t){let n=null;let o=null;let a=null;let h=null;while(true){if(e[t.position]===13&&e[t.position+1]===10){if(n===null){return"failure"}return{name:n,filename:o,contentType:a,encoding:h}}let f=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==58),e,t);f=removeChars(f,true,true,(e=>e===9||e===32));if(!d.test(f.toString())){return"failure"}if(e[t.position]!==58){return"failure"}t.position++;collectASequenceOfBytes((e=>e===32||e===9),e,t);switch(i(f)){case"content-disposition":{n=o=null;if(!bufferStartsWith(e,k,t)){return"failure"}t.position+=17;n=parseMultipartFormDataName(e,t);if(n===null){return"failure"}if(bufferStartsWith(e,L,t)){let n=t.position+L.length;if(e[n]===42){t.position+=1;n+=1}if(e[n]!==61||e[n+1]!==34){return"failure"}t.position+=12;o=parseMultipartFormDataName(e,t);if(o===null){return"failure"}}break}case"content-type":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));a=m(n);break}case"content-transfer-encoding":{let n=collectASequenceOfBytes((e=>e!==10&&e!==13),e,t);n=removeChars(n,false,true,(e=>e===9||e===32));h=m(n);break}default:{collectASequenceOfBytes((e=>e!==10&&e!==13),e,t)}}if(e[t.position]!==13&&e[t.position+1]!==10){return"failure"}else{t.position+=2}}}function parseMultipartFormDataName(e,t){C(e[t.position-1]===34);let n=collectASequenceOfBytes((e=>e!==10&&e!==13&&e!==34),e,t);if(e[t.position]!==34){return null}else{t.position++}n=(new TextDecoder).decode(n).replace(/%0A/gi,"\n").replace(/%0D/gi,"\r").replace(/%22/g,'"');return n}function collectASequenceOfBytes(e,t,n){let o=n.position;while(o<t.length&&e(t[o])){++o}return t.subarray(n.position,n.position=o)}function removeChars(e,t,n,o){let i=0;let a=e.length-1;if(t){while(i<e.length&&o(e[i]))i++}if(n){while(a>0&&o(e[a]))a--}return i===0&&a===e.length-1?e:e.subarray(i,a+1)}function bufferStartsWith(e,t,n){if(e.length<t.length){return false}for(let o=0;o<t.length;o++){if(t[o]!==e[n.position+o]){return false}}return true}e.exports={multipartFormDataParser:multipartFormDataParser,validateBoundary:validateBoundary}},5910:(e,t,n)=>{const{isBlobLike:o,iteratorMixin:i}=n(3168);const{kState:a}=n(3627);const{kEnumerableProperty:d}=n(3440);const{FileLike:m,isFileLike:h}=n(7114);const{webidl:f}=n(5893);const{File:C}=n(4573);const P=n(7975);const D=globalThis.File??C;class FormData{constructor(e){f.util.markAsUncloneable(this);if(e!==undefined){throw f.errors.conversionFailed({prefix:"FormData constructor",argument:"Argument 1",types:["undefined"]})}this[a]=[]}append(e,t,n=undefined){f.brandCheck(this,FormData);const i="FormData.append";f.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'")}e=f.converters.USVString(e,i,"name");t=o(t)?f.converters.Blob(t,i,"value",{strict:false}):f.converters.USVString(t,i,"value");n=arguments.length===3?f.converters.USVString(n,i,"filename"):undefined;const d=makeEntry(e,t,n);this[a].push(d)}delete(e){f.brandCheck(this,FormData);const t="FormData.delete";f.argumentLengthCheck(arguments,1,t);e=f.converters.USVString(e,t,"name");this[a]=this[a].filter((t=>t.name!==e))}get(e){f.brandCheck(this,FormData);const t="FormData.get";f.argumentLengthCheck(arguments,1,t);e=f.converters.USVString(e,t,"name");const n=this[a].findIndex((t=>t.name===e));if(n===-1){return null}return this[a][n].value}getAll(e){f.brandCheck(this,FormData);const t="FormData.getAll";f.argumentLengthCheck(arguments,1,t);e=f.converters.USVString(e,t,"name");return this[a].filter((t=>t.name===e)).map((e=>e.value))}has(e){f.brandCheck(this,FormData);const t="FormData.has";f.argumentLengthCheck(arguments,1,t);e=f.converters.USVString(e,t,"name");return this[a].findIndex((t=>t.name===e))!==-1}set(e,t,n=undefined){f.brandCheck(this,FormData);const i="FormData.set";f.argumentLengthCheck(arguments,2,i);if(arguments.length===3&&!o(t)){throw new TypeError("Failed to execute 'set' on 'FormData': parameter 2 is not of type 'Blob'")}e=f.converters.USVString(e,i,"name");t=o(t)?f.converters.Blob(t,i,"name",{strict:false}):f.converters.USVString(t,i,"name");n=arguments.length===3?f.converters.USVString(n,i,"name"):undefined;const d=makeEntry(e,t,n);const m=this[a].findIndex((t=>t.name===e));if(m!==-1){this[a]=[...this[a].slice(0,m),d,...this[a].slice(m+1).filter((t=>t.name!==e))]}else{this[a].push(d)}}[P.inspect.custom](e,t){const n=this[a].reduce(((e,t)=>{if(e[t.name]){if(Array.isArray(e[t.name])){e[t.name].push(t.value)}else{e[t.name]=[e[t.name],t.value]}}else{e[t.name]=t.value}return e}),{__proto__:null});t.depth??=e;t.colors??=true;const o=P.formatWithOptions(t,n);return`FormData ${o.slice(o.indexOf("]")+2)}`}}i("FormData",FormData,a,"name","value");Object.defineProperties(FormData.prototype,{append:d,delete:d,get:d,getAll:d,has:d,set:d,[Symbol.toStringTag]:{value:"FormData",configurable:true}});function makeEntry(e,t,n){if(typeof t==="string"){}else{if(!h(t)){t=t instanceof Blob?new D([t],"blob",{type:t.type}):new m(t,"blob",{type:t.type})}if(n!==undefined){const e={type:t.type,lastModified:t.lastModified};t=t instanceof C?new D([t],n,e):new m(t,n,e)}}return{name:e,value:t}}e.exports={FormData:FormData,makeEntry:makeEntry}},1059:e=>{const t=Symbol.for("undici.globalOrigin.1");function getGlobalOrigin(){return globalThis[t]}function setGlobalOrigin(e){if(e===undefined){Object.defineProperty(globalThis,t,{value:undefined,writable:true,enumerable:false,configurable:false});return}const n=new URL(e);if(n.protocol!=="http:"&&n.protocol!=="https:"){throw new TypeError(`Only http & https urls are allowed, received ${n.protocol}`)}Object.defineProperty(globalThis,t,{value:n,writable:true,enumerable:false,configurable:false})}e.exports={getGlobalOrigin:getGlobalOrigin,setGlobalOrigin:setGlobalOrigin}},660:(e,t,n)=>{const{kConstruct:o}=n(6443);const{kEnumerableProperty:i}=n(3440);const{iteratorMixin:a,isValidHeaderName:d,isValidHeaderValue:m}=n(3168);const{webidl:h}=n(5893);const f=n(4589);const C=n(7975);const P=Symbol("headers map");const D=Symbol("headers map sorted");function isHTTPWhiteSpaceCharCode(e){return e===10||e===13||e===9||e===32}function headerValueNormalize(e){let t=0;let n=e.length;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(n-1)))--n;while(n>t&&isHTTPWhiteSpaceCharCode(e.charCodeAt(t)))++t;return t===0&&n===e.length?e:e.substring(t,n)}function fill(e,t){if(Array.isArray(t)){for(let n=0;n<t.length;++n){const o=t[n];if(o.length!==2){throw h.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${o.length}.`})}appendHeader(e,o[0],o[1])}}else if(typeof t==="object"&&t!==null){const n=Object.keys(t);for(let o=0;o<n.length;++o){appendHeader(e,n[o],t[n[o]])}}else{throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}}function appendHeader(e,t,n){n=headerValueNormalize(n);if(!d(t)){throw h.errors.invalidArgument({prefix:"Headers.append",value:t,type:"header name"})}else if(!m(n)){throw h.errors.invalidArgument({prefix:"Headers.append",value:n,type:"header value"})}if(k(e)==="immutable"){throw new TypeError("immutable")}return F(e).append(t,n,false)}function compareHeaderName(e,t){return e[0]<t[0]?-1:1}class HeadersList{cookies=null;constructor(e){if(e instanceof HeadersList){this[P]=new Map(e[P]);this[D]=e[D];this.cookies=e.cookies===null?null:[...e.cookies]}else{this[P]=new Map(e);this[D]=null}}contains(e,t){return this[P].has(t?e:e.toLowerCase())}clear(){this[P].clear();this[D]=null;this.cookies=null}append(e,t,n){this[D]=null;const o=n?e:e.toLowerCase();const i=this[P].get(o);if(i){const e=o==="cookie"?"; ":", ";this[P].set(o,{name:i.name,value:`${i.value}${e}${t}`})}else{this[P].set(o,{name:e,value:t})}if(o==="set-cookie"){(this.cookies??=[]).push(t)}}set(e,t,n){this[D]=null;const o=n?e:e.toLowerCase();if(o==="set-cookie"){this.cookies=[t]}this[P].set(o,{name:e,value:t})}delete(e,t){this[D]=null;if(!t)e=e.toLowerCase();if(e==="set-cookie"){this.cookies=null}this[P].delete(e)}get(e,t){return this[P].get(t?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(const{0:e,1:{value:t}}of this[P]){yield[e,t]}}get entries(){const e={};if(this[P].size!==0){for(const{name:t,value:n}of this[P].values()){e[t]=n}}return e}rawValues(){return this[P].values()}get entriesList(){const e=[];if(this[P].size!==0){for(const{0:t,1:{name:n,value:o}}of this[P]){if(t==="set-cookie"){for(const t of this.cookies){e.push([n,t])}}else{e.push([n,o])}}}return e}toSortedArray(){const e=this[P].size;const t=new Array(e);if(e<=32){if(e===0){return t}const n=this[P][Symbol.iterator]();const o=n.next().value;t[0]=[o[0],o[1].value];f(o[1].value!==null);for(let o=1,i=0,a=0,d=0,m=0,h,C;o<e;++o){C=n.next().value;h=t[o]=[C[0],C[1].value];f(h[1]!==null);d=0;a=o;while(d<a){m=d+(a-d>>1);if(t[m][0]<=h[0]){d=m+1}else{a=m}}if(o!==m){i=o;while(i>d){t[i]=t[--i]}t[d]=h}}if(!n.next().done){throw new TypeError("Unreachable")}return t}else{let e=0;for(const{0:n,1:{value:o}}of this[P]){t[e++]=[n,o];f(o!==null)}return t.sort(compareHeaderName)}}}class Headers{#G;#q;constructor(e=undefined){h.util.markAsUncloneable(this);if(e===o){return}this.#q=new HeadersList;this.#G="none";if(e!==undefined){e=h.converters.HeadersInit(e,"Headers contructor","init");fill(this,e)}}append(e,t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.append");const n="Headers.append";e=h.converters.ByteString(e,n,"name");t=h.converters.ByteString(t,n,"value");return appendHeader(this,e,t)}delete(e){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.delete");const t="Headers.delete";e=h.converters.ByteString(e,t,"name");if(!d(e)){throw h.errors.invalidArgument({prefix:"Headers.delete",value:e,type:"header name"})}if(this.#G==="immutable"){throw new TypeError("immutable")}if(!this.#q.contains(e,false)){return}this.#q.delete(e,false)}get(e){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.get");const t="Headers.get";e=h.converters.ByteString(e,t,"name");if(!d(e)){throw h.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.get(e,false)}has(e){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,1,"Headers.has");const t="Headers.has";e=h.converters.ByteString(e,t,"name");if(!d(e)){throw h.errors.invalidArgument({prefix:t,value:e,type:"header name"})}return this.#q.contains(e,false)}set(e,t){h.brandCheck(this,Headers);h.argumentLengthCheck(arguments,2,"Headers.set");const n="Headers.set";e=h.converters.ByteString(e,n,"name");t=h.converters.ByteString(t,n,"value");t=headerValueNormalize(t);if(!d(e)){throw h.errors.invalidArgument({prefix:n,value:e,type:"header name"})}else if(!m(t)){throw h.errors.invalidArgument({prefix:n,value:t,type:"header value"})}if(this.#G==="immutable"){throw new TypeError("immutable")}this.#q.set(e,t,false)}getSetCookie(){h.brandCheck(this,Headers);const e=this.#q.cookies;if(e){return[...e]}return[]}get[D](){if(this.#q[D]){return this.#q[D]}const e=[];const t=this.#q.toSortedArray();const n=this.#q.cookies;if(n===null||n.length===1){return this.#q[D]=t}for(let o=0;o<t.length;++o){const{0:i,1:a}=t[o];if(i==="set-cookie"){for(let t=0;t<n.length;++t){e.push([i,n[t]])}}else{e.push([i,a])}}return this.#q[D]=e}[C.inspect.custom](e,t){t.depth??=e;return`Headers ${C.formatWithOptions(t,this.#q.entries)}`}static getHeadersGuard(e){return e.#G}static setHeadersGuard(e,t){e.#G=t}static getHeadersList(e){return e.#q}static setHeadersList(e,t){e.#q=t}}const{getHeadersGuard:k,setHeadersGuard:L,getHeadersList:F,setHeadersList:q}=Headers;Reflect.deleteProperty(Headers,"getHeadersGuard");Reflect.deleteProperty(Headers,"setHeadersGuard");Reflect.deleteProperty(Headers,"getHeadersList");Reflect.deleteProperty(Headers,"setHeadersList");a("Headers",Headers,D,0,1);Object.defineProperties(Headers.prototype,{append:i,delete:i,get:i,has:i,set:i,getSetCookie:i,[Symbol.toStringTag]:{value:"Headers",configurable:true},[C.inspect.custom]:{enumerable:false}});h.converters.HeadersInit=function(e,t,n){if(h.util.Type(e)==="Object"){const o=Reflect.get(e,Symbol.iterator);if(!C.types.isProxy(e)&&o===Headers.prototype.entries){try{return F(e).entriesList}catch{}}if(typeof o==="function"){return h.converters["sequence<sequence<ByteString>>"](e,t,n,o.bind(e))}return h.converters["record<ByteString, ByteString>"](e,t,n)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})};e.exports={fill:fill,compareHeaderName:compareHeaderName,Headers:Headers,HeadersList:HeadersList,getHeadersGuard:k,setHeadersGuard:L,setHeadersList:q,getHeadersList:F}},4398:(e,t,n)=>{const{makeNetworkError:o,makeAppropriateNetworkError:i,filterResponse:a,makeResponse:d,fromInnerResponse:m}=n(9051);const{HeadersList:h}=n(660);const{Request:f,cloneRequest:C}=n(9967);const P=n(8522);const{bytesMatch:D,makePolicyContainer:k,clonePolicyContainer:L,requestBadPort:F,TAOCheck:q,appendRequestOriginHeader:V,responseLocationURL:ee,requestCurrentURL:te,setRequestReferrerPolicyOnRedirect:re,tryUpgradeRequestToAPotentiallyTrustworthyURL:ne,createOpaqueTimingInfo:se,appendFetchMetadata:oe,corsCheck:ie,crossOriginResourcePolicyCheck:ae,determineRequestsReferrer:ce,coarsenedSharedCurrentTime:le,createDeferredPromise:ue,isBlobLike:de,sameOrigin:pe,isCancelled:Ae,isAborted:me,isErrorLike:ge,fullyReadBody:he,readableStreamClose:fe,isomorphicEncode:ye,urlIsLocal:Ee,urlIsHttpHttpsScheme:Ce,urlHasHttpsScheme:Ie,clampAndCoarsenConnectionTimingInfo:be,simpleRangeHeaderValue:Se,buildContentRange:Be,createInflate:we,extractMimeType:Re}=n(3168);const{kState:Ne,kDispatcher:xe}=n(3627);const Qe=n(4589);const{safelyExtractBody:Te,extractBody:ve}=n(4492);const{redirectStatusSet:Pe,nullBodyStatus:De,safeMethodsSet:ke,requestBodyHeader:_e,subresourceSet:Le}=n(4495);const Oe=n(8474);const{Readable:Fe,pipeline:Ue,finished:Me}=n(7075);const{addAbortListener:He,isErrored:$e,isReadable:Ge,bufferToLowerCasedHeaderName:qe}=n(3440);const{dataURLProcessor:ze,serializeAMimeType:Ve,minimizeSupportedMimeType:je}=n(1900);const{getGlobalDispatcher:Ye}=n(2581);const{webidl:Je}=n(5893);const{STATUS_CODES:We}=n(7067);const Ke=["GET","HEAD"];const Xe=typeof __UNDICI_IS_NODE__!=="undefined"||typeof esbuildDetection!=="undefined"?"node":"undici";let Ze;class Fetch extends Oe{constructor(e){super();this.dispatcher=e;this.connection=null;this.dump=false;this.state="ongoing"}terminate(e){if(this.state!=="ongoing"){return}this.state="terminated";this.connection?.destroy(e);this.emit("terminated",e)}abort(e){if(this.state!=="ongoing"){return}this.state="aborted";if(!e){e=new DOMException("The operation was aborted.","AbortError")}this.serializedAbortReason=e;this.connection?.destroy(e);this.emit("terminated",e)}}function handleFetchDone(e){finalizeAndReportTiming(e,"fetch")}function fetch(e,t=undefined){Je.argumentLengthCheck(arguments,1,"globalThis.fetch");let n=ue();let o;try{o=new f(e,t)}catch(e){n.reject(e);return n.promise}const i=o[Ne];if(o.signal.aborted){abortFetch(n,i,null,o.signal.reason);return n.promise}const a=i.client.globalObject;if(a?.constructor?.name==="ServiceWorkerGlobalScope"){i.serviceWorkers="none"}let d=null;let h=false;let C=null;He(o.signal,(()=>{h=true;Qe(C!=null);C.abort(o.signal.reason);const e=d?.deref();abortFetch(n,i,e,o.signal.reason)}));const processResponse=e=>{if(h){return}if(e.aborted){abortFetch(n,i,d,C.serializedAbortReason);return}if(e.type==="error"){n.reject(new TypeError("fetch failed",{cause:e.error}));return}d=new WeakRef(m(e,"immutable"));n.resolve(d.deref());n=null};C=fetching({request:i,processResponseEndOfBody:handleFetchDone,processResponse:processResponse,dispatcher:o[xe]});return n.promise}function finalizeAndReportTiming(e,t="other"){if(e.type==="error"&&e.aborted){return}if(!e.urlList?.length){return}const n=e.urlList[0];let o=e.timingInfo;let i=e.cacheState;if(!Ce(n)){return}if(o===null){return}if(!e.timingAllowPassed){o=se({startTime:o.startTime});i=""}o.endTime=le();e.timingInfo=o;ht(o,n.href,t,globalThis,i)}const ht=performance.markResourceTiming;function abortFetch(e,t,n,o){if(e){e.reject(o)}if(t.body!=null&&Ge(t.body?.stream)){t.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}if(n==null){return}const i=n[Ne];if(i.body!=null&&Ge(i.body?.stream)){i.body.stream.cancel(o).catch((e=>{if(e.code==="ERR_INVALID_STATE"){return}throw e}))}}function fetching({request:e,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseEndOfBody:i,processResponseConsumeBody:a,useParallelQueue:d=false,dispatcher:m=Ye()}){Qe(m);let h=null;let f=false;if(e.client!=null){h=e.client.globalObject;f=e.client.crossOriginIsolatedCapability}const C=le(f);const P=se({startTime:C});const D={controller:new Fetch(m),request:e,timingInfo:P,processRequestBodyChunkLength:t,processRequestEndOfBody:n,processResponse:o,processResponseConsumeBody:a,processResponseEndOfBody:i,taskDestination:h,crossOriginIsolatedCapability:f};Qe(!e.body||e.body.stream);if(e.window==="client"){e.window=e.client?.globalObject?.constructor?.name==="Window"?e.client:"no-window"}if(e.origin==="client"){e.origin=e.client.origin}if(e.policyContainer==="client"){if(e.client!=null){e.policyContainer=L(e.client.policyContainer)}else{e.policyContainer=k()}}if(!e.headersList.contains("accept",true)){const t="*/*";e.headersList.append("accept",t,true)}if(!e.headersList.contains("accept-language",true)){e.headersList.append("accept-language","*",true)}if(e.priority===null){}if(Le.has(e.destination)){}mainFetch(D).catch((e=>{D.controller.terminate(e)}));return D.controller}async function mainFetch(e,t=false){const n=e.request;let i=null;if(n.localURLsOnly&&!Ee(te(n))){i=o("local URLs only")}ne(n);if(F(n)==="blocked"){i=o("bad port")}if(n.referrerPolicy===""){n.referrerPolicy=n.policyContainer.referrerPolicy}if(n.referrer!=="no-referrer"){n.referrer=ce(n)}if(i===null){i=await(async()=>{const t=te(n);if(pe(t,n.url)&&n.responseTainting==="basic"||t.protocol==="data:"||(n.mode==="navigate"||n.mode==="websocket")){n.responseTainting="basic";return await schemeFetch(e)}if(n.mode==="same-origin"){return o('request mode cannot be "same-origin"')}if(n.mode==="no-cors"){if(n.redirect!=="follow"){return o('redirect mode cannot be "follow" for "no-cors" request')}n.responseTainting="opaque";return await schemeFetch(e)}if(!Ce(te(n))){return o("URL scheme must be a HTTP(S) scheme")}n.responseTainting="cors";return await httpFetch(e)})()}if(t){return i}if(i.status!==0&&!i.internalResponse){if(n.responseTainting==="cors"){}if(n.responseTainting==="basic"){i=a(i,"basic")}else if(n.responseTainting==="cors"){i=a(i,"cors")}else if(n.responseTainting==="opaque"){i=a(i,"opaque")}else{Qe(false)}}let d=i.status===0?i:i.internalResponse;if(d.urlList.length===0){d.urlList.push(...n.urlList)}if(!n.timingAllowFailed){i.timingAllowPassed=true}if(i.type==="opaque"&&d.status===206&&d.rangeRequested&&!n.headers.contains("range",true)){i=d=o()}if(i.status!==0&&(n.method==="HEAD"||n.method==="CONNECT"||De.includes(d.status))){d.body=null;e.controller.dump=true}if(n.integrity){const processBodyError=t=>fetchFinale(e,o(t));if(n.responseTainting==="opaque"||i.body==null){processBodyError(i.error);return}const processBody=t=>{if(!D(t,n.integrity)){processBodyError("integrity mismatch");return}i.body=Te(t)[0];fetchFinale(e,i)};await he(i.body,processBody,processBodyError)}else{fetchFinale(e,i)}}function schemeFetch(e){if(Ae(e)&&e.request.redirectCount===0){return Promise.resolve(i(e))}const{request:t}=e;const{protocol:a}=te(t);switch(a){case"about:":{return Promise.resolve(o("about scheme is not supported"))}case"blob:":{if(!Ze){Ze=n(4573).resolveObjectURL}const e=te(t);if(e.search.length!==0){return Promise.resolve(o("NetworkError when attempting to fetch resource."))}const i=Ze(e.toString());if(t.method!=="GET"||!de(i)){return Promise.resolve(o("invalid method"))}const a=d();const m=i.size;const h=ye(`${m}`);const f=i.type;if(!t.headersList.contains("range",true)){const e=ve(i);a.statusText="OK";a.body=e[0];a.headersList.set("content-length",h,true);a.headersList.set("content-type",f,true)}else{a.rangeRequested=true;const e=t.headersList.get("range",true);const n=Se(e,true);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}let{rangeStartValue:d,rangeEndValue:h}=n;if(d===null){d=m-h;h=d+h-1}else{if(d>=m){return Promise.resolve(o("Range start is greater than the blob's size."))}if(h===null||h>=m){h=m-1}}const C=i.slice(d,h,f);const P=ve(C);a.body=P[0];const D=ye(`${C.size}`);const k=Be(d,h,m);a.status=206;a.statusText="Partial Content";a.headersList.set("content-length",D,true);a.headersList.set("content-type",f,true);a.headersList.set("content-range",k,true)}return Promise.resolve(a)}case"data:":{const e=te(t);const n=ze(e);if(n==="failure"){return Promise.resolve(o("failed to fetch the data URL"))}const i=Ve(n.mimeType);return Promise.resolve(d({statusText:"OK",headersList:[["content-type",{name:"Content-Type",value:i}]],body:Te(n.body)[0]}))}case"file:":{return Promise.resolve(o("not implemented... yet..."))}case"http:":case"https:":{return httpFetch(e).catch((e=>o(e)))}default:{return Promise.resolve(o("unknown scheme"))}}}function finalizeResponse(e,t){e.request.done=true;if(e.processResponseDone!=null){queueMicrotask((()=>e.processResponseDone(t)))}}function fetchFinale(e,t){let n=e.timingInfo;const processResponseEndOfBody=()=>{const o=Date.now();if(e.request.destination==="document"){e.controller.fullTimingInfo=n}e.controller.reportTimingSteps=()=>{if(e.request.url.protocol!=="https:"){return}n.endTime=o;let i=t.cacheState;const a=t.bodyInfo;if(!t.timingAllowPassed){n=se(n);i=""}let d=0;if(e.request.mode!=="navigator"||!t.hasCrossOriginRedirects){d=t.status;const e=Re(t.headersList);if(e!=="failure"){a.contentType=je(e)}}if(e.request.initiatorType!=null){ht(n,e.request.url.href,e.request.initiatorType,globalThis,i,a,d)}};const processResponseEndOfBodyTask=()=>{e.request.done=true;if(e.processResponseEndOfBody!=null){queueMicrotask((()=>e.processResponseEndOfBody(t)))}if(e.request.initiatorType!=null){e.controller.reportTimingSteps()}};queueMicrotask((()=>processResponseEndOfBodyTask()))};if(e.processResponse!=null){queueMicrotask((()=>{e.processResponse(t);e.processResponse=null}))}const o=t.type==="error"?t:t.internalResponse??t;if(o.body==null){processResponseEndOfBody()}else{Me(o.body.stream,(()=>{processResponseEndOfBody()}))}}async function httpFetch(e){const t=e.request;let n=null;let i=null;const a=e.timingInfo;if(t.serviceWorkers==="all"){}if(n===null){if(t.redirect==="follow"){t.serviceWorkers="none"}i=n=await httpNetworkOrCacheFetch(e);if(t.responseTainting==="cors"&&ie(t,n)==="failure"){return o("cors failure")}if(q(t,n)==="failure"){t.timingAllowFailed=true}}if((t.responseTainting==="opaque"||n.type==="opaque")&&ae(t.origin,t.client,t.destination,i)==="blocked"){return o("blocked")}if(Pe.has(i.status)){if(t.redirect!=="manual"){e.controller.connection.destroy(undefined,false)}if(t.redirect==="error"){n=o("unexpected redirect")}else if(t.redirect==="manual"){n=i}else if(t.redirect==="follow"){n=await httpRedirectFetch(e,n)}else{Qe(false)}}n.timingInfo=a;return n}function httpRedirectFetch(e,t){const n=e.request;const i=t.internalResponse?t.internalResponse:t;let a;try{a=ee(i,te(n).hash);if(a==null){return t}}catch(e){return Promise.resolve(o(e))}if(!Ce(a)){return Promise.resolve(o("URL scheme must be a HTTP(S) scheme"))}if(n.redirectCount===20){return Promise.resolve(o("redirect count exceeded"))}n.redirectCount+=1;if(n.mode==="cors"&&(a.username||a.password)&&!pe(n,a)){return Promise.resolve(o('cross origin not allowed for request mode "cors"'))}if(n.responseTainting==="cors"&&(a.username||a.password)){return Promise.resolve(o('URL cannot contain credentials for request mode "cors"'))}if(i.status!==303&&n.body!=null&&n.body.source==null){return Promise.resolve(o())}if([301,302].includes(i.status)&&n.method==="POST"||i.status===303&&!Ke.includes(n.method)){n.method="GET";n.body=null;for(const e of _e){n.headersList.delete(e)}}if(!pe(te(n),a)){n.headersList.delete("authorization",true);n.headersList.delete("proxy-authorization",true);n.headersList.delete("cookie",true);n.headersList.delete("host",true)}if(n.body!=null){Qe(n.body.source!=null);n.body=Te(n.body.source)[0]}const d=e.timingInfo;d.redirectEndTime=d.postRedirectStartTime=le(e.crossOriginIsolatedCapability);if(d.redirectStartTime===0){d.redirectStartTime=d.startTime}n.urlList.push(a);re(n,i);return mainFetch(e,true)}async function httpNetworkOrCacheFetch(e,t=false,n=false){const a=e.request;let d=null;let m=null;let h=null;const f=null;const P=false;if(a.window==="no-window"&&a.redirect==="error"){d=e;m=a}else{m=C(a);d={...e};d.request=m}const D=a.credentials==="include"||a.credentials==="same-origin"&&a.responseTainting==="basic";const k=m.body?m.body.length:null;let L=null;if(m.body==null&&["POST","PUT"].includes(m.method)){L="0"}if(k!=null){L=ye(`${k}`)}if(L!=null){m.headersList.append("content-length",L,true)}if(k!=null&&m.keepalive){}if(m.referrer instanceof URL){m.headersList.append("referer",ye(m.referrer.href),true)}V(m);oe(m);if(!m.headersList.contains("user-agent",true)){m.headersList.append("user-agent",Xe)}if(m.cache==="default"&&(m.headersList.contains("if-modified-since",true)||m.headersList.contains("if-none-match",true)||m.headersList.contains("if-unmodified-since",true)||m.headersList.contains("if-match",true)||m.headersList.contains("if-range",true))){m.cache="no-store"}if(m.cache==="no-cache"&&!m.preventNoCacheCacheControlHeaderModification&&!m.headersList.contains("cache-control",true)){m.headersList.append("cache-control","max-age=0",true)}if(m.cache==="no-store"||m.cache==="reload"){if(!m.headersList.contains("pragma",true)){m.headersList.append("pragma","no-cache",true)}if(!m.headersList.contains("cache-control",true)){m.headersList.append("cache-control","no-cache",true)}}if(m.headersList.contains("range",true)){m.headersList.append("accept-encoding","identity",true)}if(!m.headersList.contains("accept-encoding",true)){if(Ie(te(m))){m.headersList.append("accept-encoding","br, gzip, deflate",true)}else{m.headersList.append("accept-encoding","gzip, deflate",true)}}m.headersList.delete("host",true);if(D){}if(f==null){m.cache="no-store"}if(m.cache!=="no-store"&&m.cache!=="reload"){}if(h==null){if(m.cache==="only-if-cached"){return o("only if cached")}const e=await httpNetworkFetch(d,D,n);if(!ke.has(m.method)&&e.status>=200&&e.status<=399){}if(P&&e.status===304){}if(h==null){h=e}}h.urlList=[...m.urlList];if(m.headersList.contains("range",true)){h.rangeRequested=true}h.requestIncludesCredentials=D;if(h.status===407){if(a.window==="no-window"){return o()}if(Ae(e)){return i(e)}return o("proxy authentication required")}if(h.status===421&&!n&&(a.body==null||a.body.source!=null)){if(Ae(e)){return i(e)}e.controller.connection.destroy();h=await httpNetworkOrCacheFetch(e,t,true)}if(t){}return h}async function httpNetworkFetch(e,t=false,n=false){Qe(!e.controller.connection||e.controller.connection.destroyed);e.controller.connection={abort:null,destroyed:false,destroy(e,t=true){if(!this.destroyed){this.destroyed=true;if(t){this.abort?.(e??new DOMException("The operation was aborted.","AbortError"))}}}};const a=e.request;let m=null;const f=e.timingInfo;const C=null;if(C==null){a.cache="no-store"}const D=n?"yes":"no";if(a.mode==="websocket"){}else{}let k=null;if(a.body==null&&e.processRequestEndOfBody){queueMicrotask((()=>e.processRequestEndOfBody()))}else if(a.body!=null){const processBodyChunk=async function*(t){if(Ae(e)){return}yield t;e.processRequestBodyChunkLength?.(t.byteLength)};const processEndOfBody=()=>{if(Ae(e)){return}if(e.processRequestEndOfBody){e.processRequestEndOfBody()}};const processBodyError=t=>{if(Ae(e)){return}if(t.name==="AbortError"){e.controller.abort()}else{e.controller.terminate(t)}};k=async function*(){try{for await(const e of a.body.stream){yield*processBodyChunk(e)}processEndOfBody()}catch(e){processBodyError(e)}}()}try{const{body:t,status:n,statusText:o,headersList:i,socket:a}=await dispatch({body:k});if(a){m=d({status:n,statusText:o,headersList:i,socket:a})}else{const a=t[Symbol.asyncIterator]();e.controller.next=()=>a.next();m=d({status:n,statusText:o,headersList:i})}}catch(t){if(t.name==="AbortError"){e.controller.connection.destroy();return i(e,t)}return o(t)}const pullAlgorithm=async()=>{await e.controller.resume()};const cancelAlgorithm=t=>{if(!Ae(e)){e.controller.abort(t)}};const L=new ReadableStream({async start(t){e.controller.controller=t},async pull(e){await pullAlgorithm(e)},async cancel(e){await cancelAlgorithm(e)},type:"bytes"});m.body={stream:L,source:null,length:null};e.controller.onAborted=onAborted;e.controller.on("terminated",onAborted);e.controller.resume=async()=>{while(true){let t;let n;try{const{done:n,value:o}=await e.controller.next();if(me(e)){break}t=n?undefined:o}catch(o){if(e.controller.ended&&!f.encodedBodySize){t=undefined}else{t=o;n=true}}if(t===undefined){fe(e.controller.controller);finalizeResponse(e,m);return}f.decodedBodySize+=t?.byteLength??0;if(n){e.controller.terminate(t);return}const o=new Uint8Array(t);if(o.byteLength){e.controller.controller.enqueue(o)}if($e(L)){e.controller.terminate();return}if(e.controller.controller.desiredSize<=0){return}}};function onAborted(t){if(me(e)){m.aborted=true;if(Ge(L)){e.controller.controller.error(e.controller.serializedAbortReason)}}else{if(Ge(L)){e.controller.controller.error(new TypeError("terminated",{cause:ge(t)?t:undefined}))}}e.controller.connection.destroy()}return m;function dispatch({body:t}){const n=te(a);const o=e.controller.dispatcher;return new Promise(((i,d)=>o.dispatch({path:n.pathname+n.search,origin:n.origin,method:a.method,body:o.isMockActive?a.body&&(a.body.source||a.body.stream):t,headers:a.headersList.entries,maxRedirections:0,upgrade:a.mode==="websocket"?"websocket":undefined},{body:null,abort:null,onConnect(t){const{connection:n}=e.controller;f.finalConnectionTimingInfo=be(undefined,f.postRedirectStartTime,e.crossOriginIsolatedCapability);if(n.destroyed){t(new DOMException("The operation was aborted.","AbortError"))}else{e.controller.on("terminated",t);this.abort=n.abort=t}f.finalNetworkRequestStartTime=le(e.crossOriginIsolatedCapability)},onResponseStarted(){f.finalNetworkResponseStartTime=le(e.crossOriginIsolatedCapability)},onHeaders(e,t,n,o){if(e<200){return}let m="";const f=new h;for(let e=0;e<t.length;e+=2){f.append(qe(t[e]),t[e+1].toString("latin1"),true)}m=f.get("location",true);this.body=new Fe({read:n});const C=[];const D=m&&a.redirect==="follow"&&Pe.has(e);if(a.method!=="HEAD"&&a.method!=="CONNECT"&&!De.includes(e)&&!D){const e=f.get("content-encoding",true);const t=e?e.toLowerCase().split(","):[];const n=5;if(t.length>n){d(new Error(`too many content-encodings in response: ${t.length}, maximum allowed is ${n}`));return true}for(let e=t.length-1;e>=0;--e){const n=t[e].trim();if(n==="x-gzip"||n==="gzip"){C.push(P.createGunzip({flush:P.constants.Z_SYNC_FLUSH,finishFlush:P.constants.Z_SYNC_FLUSH}))}else if(n==="deflate"){C.push(we({flush:P.constants.Z_SYNC_FLUSH,finishFlush:P.constants.Z_SYNC_FLUSH}))}else if(n==="br"){C.push(P.createBrotliDecompress({flush:P.constants.BROTLI_OPERATION_FLUSH,finishFlush:P.constants.BROTLI_OPERATION_FLUSH}))}else{C.length=0;break}}}const k=this.onError.bind(this);i({status:e,statusText:o,headersList:f,body:C.length?Ue(this.body,...C,(e=>{if(e){this.onError(e)}})).on("error",k):this.body.on("error",k)});return true},onData(t){if(e.controller.dump){return}const n=t;f.encodedBodySize+=n.byteLength;return this.body.push(n)},onComplete(){if(this.abort){e.controller.off("terminated",this.abort)}if(e.controller.onAborted){e.controller.off("terminated",e.controller.onAborted)}e.controller.ended=true;this.body.push(null)},onError(t){if(this.abort){e.controller.off("terminated",this.abort)}this.body?.destroy(t);e.controller.terminate(t);d(t)},onUpgrade(e,t,n){if(e!==101){return}const o=new h;for(let e=0;e<t.length;e+=2){o.append(qe(t[e]),t[e+1].toString("latin1"),true)}i({status:e,statusText:We[e],headersList:o,socket:n});return true}})))}}e.exports={fetch:fetch,Fetch:Fetch,fetching:fetching,finalizeAndReportTiming:finalizeAndReportTiming}},9967:(e,t,n)=>{const{extractBody:o,mixinBody:i,cloneBody:a,bodyUnusable:d}=n(4492);const{Headers:m,fill:h,HeadersList:f,setHeadersGuard:C,getHeadersGuard:P,setHeadersList:D,getHeadersList:k}=n(660);const{FinalizationRegistry:L}=n(6653)();const F=n(3440);const q=n(7975);const{isValidHTTPToken:V,sameOrigin:ee,environmentSettingsObject:te}=n(3168);const{forbiddenMethodsSet:re,corsSafeListedMethodsSet:ne,referrerPolicy:se,requestRedirect:oe,requestMode:ie,requestCredentials:ae,requestCache:ce,requestDuplex:le}=n(4495);const{kEnumerableProperty:ue,normalizedMethodRecordsBase:de,normalizedMethodRecords:pe}=F;const{kHeaders:Ae,kSignal:me,kState:ge,kDispatcher:he}=n(3627);const{webidl:fe}=n(5893);const{URLSerializer:ye}=n(1900);const{kConstruct:Ee}=n(6443);const Ce=n(4589);const{getMaxListeners:Ie,setMaxListeners:be,getEventListeners:Se,defaultMaxListeners:Be}=n(8474);const we=Symbol("abortController");const Re=new L((({signal:e,abort:t})=>{e.removeEventListener("abort",t)}));const Ne=new WeakMap;function buildAbort(e){return abort;function abort(){const t=e.deref();if(t!==undefined){Re.unregister(abort);this.removeEventListener("abort",abort);t.abort(this.reason);const e=Ne.get(t.signal);if(e!==undefined){if(e.size!==0){for(const t of e){const e=t.deref();if(e!==undefined){e.abort(this.reason)}}e.clear()}Ne.delete(t.signal)}}}}let xe=false;class Request{constructor(e,t={}){fe.util.markAsUncloneable(this);if(e===Ee){return}const n="Request constructor";fe.argumentLengthCheck(arguments,1,n);e=fe.converters.RequestInfo(e,n,"input");t=fe.converters.RequestInit(t,n,"init");let i=null;let a=null;const P=te.settingsObject.baseUrl;let L=null;if(typeof e==="string"){this[he]=t.dispatcher;let n;try{n=new URL(e,P)}catch(t){throw new TypeError("Failed to parse URL from "+e,{cause:t})}if(n.username||n.password){throw new TypeError("Request cannot be constructed from a URL that includes credentials: "+e)}i=makeRequest({urlList:[n]});a="cors"}else{this[he]=t.dispatcher||e[he];Ce(e instanceof Request);i=e[ge];L=e[me]}const q=te.settingsObject.origin;let se="client";if(i.window?.constructor?.name==="EnvironmentSettingsObject"&&ee(i.window,q)){se=i.window}if(t.window!=null){throw new TypeError(`'window' option '${se}' must be null`)}if("window"in t){se="no-window"}i=makeRequest({method:i.method,headersList:i.headersList,unsafeRequest:i.unsafeRequest,client:te.settingsObject,window:se,priority:i.priority,origin:i.origin,referrer:i.referrer,referrerPolicy:i.referrerPolicy,mode:i.mode,credentials:i.credentials,cache:i.cache,redirect:i.redirect,integrity:i.integrity,keepalive:i.keepalive,reloadNavigation:i.reloadNavigation,historyNavigation:i.historyNavigation,urlList:[...i.urlList]});const oe=Object.keys(t).length!==0;if(oe){if(i.mode==="navigate"){i.mode="same-origin"}i.reloadNavigation=false;i.historyNavigation=false;i.origin="client";i.referrer="client";i.referrerPolicy="";i.url=i.urlList[i.urlList.length-1];i.urlList=[i.url]}if(t.referrer!==undefined){const e=t.referrer;if(e===""){i.referrer="no-referrer"}else{let t;try{t=new URL(e,P)}catch(t){throw new TypeError(`Referrer "${e}" is not a valid URL.`,{cause:t})}if(t.protocol==="about:"&&t.hostname==="client"||q&&!ee(t,te.settingsObject.baseUrl)){i.referrer="client"}else{i.referrer=t}}}if(t.referrerPolicy!==undefined){i.referrerPolicy=t.referrerPolicy}let ie;if(t.mode!==undefined){ie=t.mode}else{ie=a}if(ie==="navigate"){throw fe.errors.exception({header:"Request constructor",message:"invalid request mode navigate."})}if(ie!=null){i.mode=ie}if(t.credentials!==undefined){i.credentials=t.credentials}if(t.cache!==undefined){i.cache=t.cache}if(i.cache==="only-if-cached"&&i.mode!=="same-origin"){throw new TypeError("'only-if-cached' can be set only with 'same-origin' mode")}if(t.redirect!==undefined){i.redirect=t.redirect}if(t.integrity!=null){i.integrity=String(t.integrity)}if(t.keepalive!==undefined){i.keepalive=Boolean(t.keepalive)}if(t.method!==undefined){let e=t.method;const n=pe[e];if(n!==undefined){i.method=n}else{if(!V(e)){throw new TypeError(`'${e}' is not a valid HTTP method.`)}const t=e.toUpperCase();if(re.has(t)){throw new TypeError(`'${e}' HTTP method is unsupported.`)}e=de[t]??e;i.method=e}if(!xe&&i.method==="patch"){process.emitWarning("Using `patch` is highly likely to result in a `405 Method Not Allowed`. `PATCH` is much more likely to succeed.",{code:"UNDICI-FETCH-patch"});xe=true}}if(t.signal!==undefined){L=t.signal}this[ge]=i;const ae=new AbortController;this[me]=ae.signal;if(L!=null){if(!L||typeof L.aborted!=="boolean"||typeof L.addEventListener!=="function"){throw new TypeError("Failed to construct 'Request': member signal is not of type AbortSignal.")}if(L.aborted){ae.abort(L.reason)}else{this[we]=ae;const e=new WeakRef(ae);const t=buildAbort(e);try{if(typeof Ie==="function"&&Ie(L)===Be){be(1500,L)}else if(Se(L,"abort").length>=Be){be(1500,L)}}catch{}F.addAbortListener(L,t);Re.register(ae,{signal:L,abort:t},t)}}this[Ae]=new m(Ee);D(this[Ae],i.headersList);C(this[Ae],"request");if(ie==="no-cors"){if(!ne.has(i.method)){throw new TypeError(`'${i.method} is unsupported in no-cors mode.`)}C(this[Ae],"request-no-cors")}if(oe){const e=k(this[Ae]);const n=t.headers!==undefined?t.headers:new f(e);e.clear();if(n instanceof f){for(const{name:t,value:o}of n.rawValues()){e.append(t,o,false)}e.cookies=n.cookies}else{h(this[Ae],n)}}const ce=e instanceof Request?e[ge].body:null;if((t.body!=null||ce!=null)&&(i.method==="GET"||i.method==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body.")}let le=null;if(t.body!=null){const[e,n]=o(t.body,i.keepalive);le=e;if(n&&!k(this[Ae]).contains("content-type",true)){this[Ae].append("content-type",n)}}const ue=le??ce;if(ue!=null&&ue.source==null){if(le!=null&&t.duplex==null){throw new TypeError("RequestInit: duplex option is required when sending a body.")}if(i.mode!=="same-origin"&&i.mode!=="cors"){throw new TypeError('If request is made from ReadableStream, mode should be "same-origin" or "cors"')}i.useCORSPreflightFlag=true}let ye=ue;if(le==null&&ce!=null){if(d(e)){throw new TypeError("Cannot construct a Request with a Request object that has already been used.")}const t=new TransformStream;ce.stream.pipeThrough(t);ye={source:ce.source,length:ce.length,stream:t.readable}}this[ge].body=ye}get method(){fe.brandCheck(this,Request);return this[ge].method}get url(){fe.brandCheck(this,Request);return ye(this[ge].url)}get headers(){fe.brandCheck(this,Request);return this[Ae]}get destination(){fe.brandCheck(this,Request);return this[ge].destination}get referrer(){fe.brandCheck(this,Request);if(this[ge].referrer==="no-referrer"){return""}if(this[ge].referrer==="client"){return"about:client"}return this[ge].referrer.toString()}get referrerPolicy(){fe.brandCheck(this,Request);return this[ge].referrerPolicy}get mode(){fe.brandCheck(this,Request);return this[ge].mode}get credentials(){return this[ge].credentials}get cache(){fe.brandCheck(this,Request);return this[ge].cache}get redirect(){fe.brandCheck(this,Request);return this[ge].redirect}get integrity(){fe.brandCheck(this,Request);return this[ge].integrity}get keepalive(){fe.brandCheck(this,Request);return this[ge].keepalive}get isReloadNavigation(){fe.brandCheck(this,Request);return this[ge].reloadNavigation}get isHistoryNavigation(){fe.brandCheck(this,Request);return this[ge].historyNavigation}get signal(){fe.brandCheck(this,Request);return this[me]}get body(){fe.brandCheck(this,Request);return this[ge].body?this[ge].body.stream:null}get bodyUsed(){fe.brandCheck(this,Request);return!!this[ge].body&&F.isDisturbed(this[ge].body.stream)}get duplex(){fe.brandCheck(this,Request);return"half"}clone(){fe.brandCheck(this,Request);if(d(this)){throw new TypeError("unusable")}const e=cloneRequest(this[ge]);const t=new AbortController;if(this.signal.aborted){t.abort(this.signal.reason)}else{let e=Ne.get(this.signal);if(e===undefined){e=new Set;Ne.set(this.signal,e)}const n=new WeakRef(t);e.add(n);F.addAbortListener(t.signal,buildAbort(n))}return fromInnerRequest(e,t.signal,P(this[Ae]))}[q.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={method:this.method,url:this.url,headers:this.headers,destination:this.destination,referrer:this.referrer,referrerPolicy:this.referrerPolicy,mode:this.mode,credentials:this.credentials,cache:this.cache,redirect:this.redirect,integrity:this.integrity,keepalive:this.keepalive,isReloadNavigation:this.isReloadNavigation,isHistoryNavigation:this.isHistoryNavigation,signal:this.signal};return`Request ${q.formatWithOptions(t,n)}`}}i(Request);function makeRequest(e){return{method:e.method??"GET",localURLsOnly:e.localURLsOnly??false,unsafeRequest:e.unsafeRequest??false,body:e.body??null,client:e.client??null,reservedClient:e.reservedClient??null,replacesClientId:e.replacesClientId??"",window:e.window??"client",keepalive:e.keepalive??false,serviceWorkers:e.serviceWorkers??"all",initiator:e.initiator??"",destination:e.destination??"",priority:e.priority??null,origin:e.origin??"client",policyContainer:e.policyContainer??"client",referrer:e.referrer??"client",referrerPolicy:e.referrerPolicy??"",mode:e.mode??"no-cors",useCORSPreflightFlag:e.useCORSPreflightFlag??false,credentials:e.credentials??"same-origin",useCredentials:e.useCredentials??false,cache:e.cache??"default",redirect:e.redirect??"follow",integrity:e.integrity??"",cryptoGraphicsNonceMetadata:e.cryptoGraphicsNonceMetadata??"",parserMetadata:e.parserMetadata??"",reloadNavigation:e.reloadNavigation??false,historyNavigation:e.historyNavigation??false,userActivation:e.userActivation??false,taintedOrigin:e.taintedOrigin??false,redirectCount:e.redirectCount??0,responseTainting:e.responseTainting??"basic",preventNoCacheCacheControlHeaderModification:e.preventNoCacheCacheControlHeaderModification??false,done:e.done??false,timingAllowFailed:e.timingAllowFailed??false,urlList:e.urlList,url:e.urlList[0],headersList:e.headersList?new f(e.headersList):new f}}function cloneRequest(e){const t=makeRequest({...e,body:null});if(e.body!=null){t.body=a(t,e.body)}return t}function fromInnerRequest(e,t,n){const o=new Request(Ee);o[ge]=e;o[me]=t;o[Ae]=new m(Ee);D(o[Ae],e.headersList);C(o[Ae],n);return o}Object.defineProperties(Request.prototype,{method:ue,url:ue,headers:ue,redirect:ue,clone:ue,signal:ue,duplex:ue,destination:ue,body:ue,bodyUsed:ue,isHistoryNavigation:ue,isReloadNavigation:ue,keepalive:ue,integrity:ue,cache:ue,credentials:ue,attribute:ue,referrerPolicy:ue,referrer:ue,mode:ue,[Symbol.toStringTag]:{value:"Request",configurable:true}});fe.converters.Request=fe.interfaceConverter(Request);fe.converters.RequestInfo=function(e,t,n){if(typeof e==="string"){return fe.converters.USVString(e,t,n)}if(e instanceof Request){return fe.converters.Request(e,t,n)}return fe.converters.USVString(e,t,n)};fe.converters.AbortSignal=fe.interfaceConverter(AbortSignal);fe.converters.RequestInit=fe.dictionaryConverter([{key:"method",converter:fe.converters.ByteString},{key:"headers",converter:fe.converters.HeadersInit},{key:"body",converter:fe.nullableConverter(fe.converters.BodyInit)},{key:"referrer",converter:fe.converters.USVString},{key:"referrerPolicy",converter:fe.converters.DOMString,allowedValues:se},{key:"mode",converter:fe.converters.DOMString,allowedValues:ie},{key:"credentials",converter:fe.converters.DOMString,allowedValues:ae},{key:"cache",converter:fe.converters.DOMString,allowedValues:ce},{key:"redirect",converter:fe.converters.DOMString,allowedValues:oe},{key:"integrity",converter:fe.converters.DOMString},{key:"keepalive",converter:fe.converters.boolean},{key:"signal",converter:fe.nullableConverter((e=>fe.converters.AbortSignal(e,"RequestInit","signal",{strict:false})))},{key:"window",converter:fe.converters.any},{key:"duplex",converter:fe.converters.DOMString,allowedValues:le},{key:"dispatcher",converter:fe.converters.any}]);e.exports={Request:Request,makeRequest:makeRequest,fromInnerRequest:fromInnerRequest,cloneRequest:cloneRequest}},9051:(e,t,n)=>{const{Headers:o,HeadersList:i,fill:a,getHeadersGuard:d,setHeadersGuard:m,setHeadersList:h}=n(660);const{extractBody:f,cloneBody:C,mixinBody:P,hasFinalizationRegistry:D,streamRegistry:k,bodyUnusable:L}=n(4492);const F=n(3440);const q=n(7975);const{kEnumerableProperty:V}=F;const{isValidReasonPhrase:ee,isCancelled:te,isAborted:re,isBlobLike:ne,serializeJavascriptValueToJSONString:se,isErrorLike:oe,isomorphicEncode:ie,environmentSettingsObject:ae}=n(3168);const{redirectStatusSet:ce,nullBodyStatus:le}=n(4495);const{kState:ue,kHeaders:de}=n(3627);const{webidl:pe}=n(5893);const{FormData:Ae}=n(5910);const{URLSerializer:me}=n(1900);const{kConstruct:ge}=n(6443);const he=n(4589);const{types:fe}=n(7975);const ye=new TextEncoder("utf-8");class Response{static error(){const e=fromInnerResponse(makeNetworkError(),"immutable");return e}static json(e,t={}){pe.argumentLengthCheck(arguments,1,"Response.json");if(t!==null){t=pe.converters.ResponseInit(t)}const n=ye.encode(se(e));const o=f(n);const i=fromInnerResponse(makeResponse({}),"response");initializeResponse(i,t,{body:o[0],type:"application/json"});return i}static redirect(e,t=302){pe.argumentLengthCheck(arguments,1,"Response.redirect");e=pe.converters.USVString(e);t=pe.converters["unsigned short"](t);let n;try{n=new URL(e,ae.settingsObject.baseUrl)}catch(t){throw new TypeError(`Failed to parse URL from ${e}`,{cause:t})}if(!ce.has(t)){throw new RangeError(`Invalid status code ${t}`)}const o=fromInnerResponse(makeResponse({}),"immutable");o[ue].status=t;const i=ie(me(n));o[ue].headersList.append("location",i,true);return o}constructor(e=null,t={}){pe.util.markAsUncloneable(this);if(e===ge){return}if(e!==null){e=pe.converters.BodyInit(e)}t=pe.converters.ResponseInit(t);this[ue]=makeResponse({});this[de]=new o(ge);m(this[de],"response");h(this[de],this[ue].headersList);let n=null;if(e!=null){const[t,o]=f(e);n={body:t,type:o}}initializeResponse(this,t,n)}get type(){pe.brandCheck(this,Response);return this[ue].type}get url(){pe.brandCheck(this,Response);const e=this[ue].urlList;const t=e[e.length-1]??null;if(t===null){return""}return me(t,true)}get redirected(){pe.brandCheck(this,Response);return this[ue].urlList.length>1}get status(){pe.brandCheck(this,Response);return this[ue].status}get ok(){pe.brandCheck(this,Response);return this[ue].status>=200&&this[ue].status<=299}get statusText(){pe.brandCheck(this,Response);return this[ue].statusText}get headers(){pe.brandCheck(this,Response);return this[de]}get body(){pe.brandCheck(this,Response);return this[ue].body?this[ue].body.stream:null}get bodyUsed(){pe.brandCheck(this,Response);return!!this[ue].body&&F.isDisturbed(this[ue].body.stream)}clone(){pe.brandCheck(this,Response);if(L(this)){throw pe.errors.exception({header:"Response.clone",message:"Body has already been consumed."})}const e=cloneResponse(this[ue]);if(D&&this[ue].body?.stream){k.register(this,new WeakRef(this[ue].body.stream))}return fromInnerResponse(e,d(this[de]))}[q.inspect.custom](e,t){if(t.depth===null){t.depth=2}t.colors??=true;const n={status:this.status,statusText:this.statusText,headers:this.headers,body:this.body,bodyUsed:this.bodyUsed,ok:this.ok,redirected:this.redirected,type:this.type,url:this.url};return`Response ${q.formatWithOptions(t,n)}`}}P(Response);Object.defineProperties(Response.prototype,{type:V,url:V,status:V,ok:V,redirected:V,statusText:V,headers:V,clone:V,body:V,bodyUsed:V,[Symbol.toStringTag]:{value:"Response",configurable:true}});Object.defineProperties(Response,{json:V,redirect:V,error:V});function cloneResponse(e){if(e.internalResponse){return filterResponse(cloneResponse(e.internalResponse),e.type)}const t=makeResponse({...e,body:null});if(e.body!=null){t.body=C(t,e.body)}return t}function makeResponse(e){return{aborted:false,rangeRequested:false,timingAllowPassed:false,requestIncludesCredentials:false,type:"default",status:200,timingInfo:null,cacheState:"",statusText:"",...e,headersList:e?.headersList?new i(e?.headersList):new i,urlList:e?.urlList?[...e.urlList]:[]}}function makeNetworkError(e){const t=oe(e);return makeResponse({type:"error",status:0,error:t?e:new Error(e?String(e):e),aborted:e&&e.name==="AbortError"})}function isNetworkError(e){return e.type==="error"&&e.status===0}function makeFilteredResponse(e,t){t={internalResponse:e,...t};return new Proxy(e,{get(e,n){return n in t?t[n]:e[n]},set(e,n,o){he(!(n in t));e[n]=o;return true}})}function filterResponse(e,t){if(t==="basic"){return makeFilteredResponse(e,{type:"basic",headersList:e.headersList})}else if(t==="cors"){return makeFilteredResponse(e,{type:"cors",headersList:e.headersList})}else if(t==="opaque"){return makeFilteredResponse(e,{type:"opaque",urlList:Object.freeze([]),status:0,statusText:"",body:null})}else if(t==="opaqueredirect"){return makeFilteredResponse(e,{type:"opaqueredirect",status:0,statusText:"",headersList:[],body:null})}else{he(false)}}function makeAppropriateNetworkError(e,t=null){he(te(e));return re(e)?makeNetworkError(Object.assign(new DOMException("The operation was aborted.","AbortError"),{cause:t})):makeNetworkError(Object.assign(new DOMException("Request was cancelled."),{cause:t}))}function initializeResponse(e,t,n){if(t.status!==null&&(t.status<200||t.status>599)){throw new RangeError('init["status"] must be in the range of 200 to 599, inclusive.')}if("statusText"in t&&t.statusText!=null){if(!ee(String(t.statusText))){throw new TypeError("Invalid statusText")}}if("status"in t&&t.status!=null){e[ue].status=t.status}if("statusText"in t&&t.statusText!=null){e[ue].statusText=t.statusText}if("headers"in t&&t.headers!=null){a(e[de],t.headers)}if(n){if(le.includes(e.status)){throw pe.errors.exception({header:"Response constructor",message:`Invalid response status code ${e.status}`})}e[ue].body=n.body;if(n.type!=null&&!e[ue].headersList.contains("content-type",true)){e[ue].headersList.append("content-type",n.type,true)}}}function fromInnerResponse(e,t){const n=new Response(ge);n[ue]=e;n[de]=new o(ge);h(n[de],e.headersList);m(n[de],t);if(D&&e.body?.stream){k.register(n,new WeakRef(e.body.stream))}return n}pe.converters.ReadableStream=pe.interfaceConverter(ReadableStream);pe.converters.FormData=pe.interfaceConverter(Ae);pe.converters.URLSearchParams=pe.interfaceConverter(URLSearchParams);pe.converters.XMLHttpRequestBodyInit=function(e,t,n){if(typeof e==="string"){return pe.converters.USVString(e,t,n)}if(ne(e)){return pe.converters.Blob(e,t,n,{strict:false})}if(ArrayBuffer.isView(e)||fe.isArrayBuffer(e)){return pe.converters.BufferSource(e,t,n)}if(F.isFormDataLike(e)){return pe.converters.FormData(e,t,n,{strict:false})}if(e instanceof URLSearchParams){return pe.converters.URLSearchParams(e,t,n)}return pe.converters.DOMString(e,t,n)};pe.converters.BodyInit=function(e,t,n){if(e instanceof ReadableStream){return pe.converters.ReadableStream(e,t,n)}if(e?.[Symbol.asyncIterator]){return e}return pe.converters.XMLHttpRequestBodyInit(e,t,n)};pe.converters.ResponseInit=pe.dictionaryConverter([{key:"status",converter:pe.converters["unsigned short"],defaultValue:()=>200},{key:"statusText",converter:pe.converters.ByteString,defaultValue:()=>""},{key:"headers",converter:pe.converters.HeadersInit}]);e.exports={isNetworkError:isNetworkError,makeNetworkError:makeNetworkError,makeResponse:makeResponse,makeAppropriateNetworkError:makeAppropriateNetworkError,filterResponse:filterResponse,Response:Response,cloneResponse:cloneResponse,fromInnerResponse:fromInnerResponse}},3627:e=>{e.exports={kUrl:Symbol("url"),kHeaders:Symbol("headers"),kSignal:Symbol("signal"),kState:Symbol("state"),kDispatcher:Symbol("dispatcher")}},3168:(e,t,n)=>{const{Transform:o}=n(7075);const i=n(8522);const{redirectStatusSet:a,referrerPolicySet:d,badPortsSet:m}=n(4495);const{getGlobalOrigin:h}=n(1059);const{collectASequenceOfCodePoints:f,collectAnHTTPQuotedString:C,removeChars:P,parseMIMEType:D}=n(1900);const{performance:k}=n(643);const{isBlobLike:L,ReadableStreamFrom:F,isValidHTTPToken:q,normalizedMethodRecordsBase:V}=n(3440);const ee=n(4589);const{isUint8Array:te}=n(3429);const{webidl:re}=n(5893);let ne=[];let se;try{se=n(7598);const e=["sha256","sha384","sha512"];ne=se.getHashes().filter((t=>e.includes(t)))}catch{}function responseURL(e){const t=e.urlList;const n=t.length;return n===0?null:t[n-1].toString()}function responseLocationURL(e,t){if(!a.has(e.status)){return null}let n=e.headersList.get("location",true);if(n!==null&&isValidHeaderValue(n)){if(!isValidEncodedURL(n)){n=normalizeBinaryStringToUtf8(n)}n=new URL(n,responseURL(e))}if(n&&!n.hash){n.hash=t}return n}function isValidEncodedURL(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n>126||n<32){return false}}return true}function normalizeBinaryStringToUtf8(e){return Buffer.from(e,"binary").toString("utf8")}function requestCurrentURL(e){return e.urlList[e.urlList.length-1]}function requestBadPort(e){const t=requestCurrentURL(e);if(urlIsHttpHttpsScheme(t)&&m.has(t.port)){return"blocked"}return"allowed"}function isErrorLike(e){return e instanceof Error||(e?.constructor?.name==="Error"||e?.constructor?.name==="DOMException")}function isValidReasonPhrase(e){for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(!(n===9||n>=32&&n<=126||n>=128&&n<=255)){return false}}return true}const oe=q;function isValidHeaderValue(e){return(e[0]==="\t"||e[0]===" "||e[e.length-1]==="\t"||e[e.length-1]===" "||e.includes("\n")||e.includes("\r")||e.includes("\0"))===false}function setRequestReferrerPolicyOnRedirect(e,t){const{headersList:n}=t;const o=(n.get("referrer-policy",true)??"").split(",");let i="";if(o.length>0){for(let e=o.length;e!==0;e--){const t=o[e-1].trim();if(d.has(t)){i=t;break}}}if(i!==""){e.referrerPolicy=i}}function crossOriginResourcePolicyCheck(){return"allowed"}function corsCheck(){return"success"}function TAOCheck(){return"success"}function appendFetchMetadata(e){let t=null;t=e.mode;e.headersList.set("sec-fetch-mode",t,true)}function appendRequestOriginHeader(e){let t=e.origin;if(t==="client"||t===undefined){return}if(e.responseTainting==="cors"||e.mode==="websocket"){e.headersList.append("origin",t,true)}else if(e.method!=="GET"&&e.method!=="HEAD"){switch(e.referrerPolicy){case"no-referrer":t=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":if(e.origin&&urlHasHttpsScheme(e.origin)&&!urlHasHttpsScheme(requestCurrentURL(e))){t=null}break;case"same-origin":if(!sameOrigin(e,requestCurrentURL(e))){t=null}break;default:}e.headersList.append("origin",t,true)}}function coarsenTime(e,t){return e}function clampAndCoarsenConnectionTimingInfo(e,t,n){if(!e?.startTime||e.startTime<t){return{domainLookupStartTime:t,domainLookupEndTime:t,connectionStartTime:t,connectionEndTime:t,secureConnectionStartTime:t,ALPNNegotiatedProtocol:e?.ALPNNegotiatedProtocol}}return{domainLookupStartTime:coarsenTime(e.domainLookupStartTime,n),domainLookupEndTime:coarsenTime(e.domainLookupEndTime,n),connectionStartTime:coarsenTime(e.connectionStartTime,n),connectionEndTime:coarsenTime(e.connectionEndTime,n),secureConnectionStartTime:coarsenTime(e.secureConnectionStartTime,n),ALPNNegotiatedProtocol:e.ALPNNegotiatedProtocol}}function coarsenedSharedCurrentTime(e){return coarsenTime(k.now(),e)}function createOpaqueTimingInfo(e){return{startTime:e.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:e.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function makePolicyContainer(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function clonePolicyContainer(e){return{referrerPolicy:e.referrerPolicy}}function determineRequestsReferrer(e){const t=e.referrerPolicy;ee(t);let n=null;if(e.referrer==="client"){const e=h();if(!e||e.origin==="null"){return"no-referrer"}n=new URL(e)}else if(e.referrer instanceof URL){n=e.referrer}let o=stripURLForReferrer(n);const i=stripURLForReferrer(n,true);if(o.toString().length>4096){o=i}const a=sameOrigin(e,o);const d=isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(e.url);switch(t){case"origin":return i!=null?i:stripURLForReferrer(n,true);case"unsafe-url":return o;case"same-origin":return a?i:"no-referrer";case"origin-when-cross-origin":return a?o:i;case"strict-origin-when-cross-origin":{const t=requestCurrentURL(e);if(sameOrigin(o,t)){return o}if(isURLPotentiallyTrustworthy(o)&&!isURLPotentiallyTrustworthy(t)){return"no-referrer"}return i}case"strict-origin":case"no-referrer-when-downgrade":default:return d?"no-referrer":i}}function stripURLForReferrer(e,t){ee(e instanceof URL);e=new URL(e);if(e.protocol==="file:"||e.protocol==="about:"||e.protocol==="blank:"){return"no-referrer"}e.username="";e.password="";e.hash="";if(t){e.pathname="";e.search=""}return e}function isURLPotentiallyTrustworthy(e){if(!(e instanceof URL)){return false}if(e.href==="about:blank"||e.href==="about:srcdoc"){return true}if(e.protocol==="data:")return true;if(e.protocol==="file:")return true;return isOriginPotentiallyTrustworthy(e.origin);function isOriginPotentiallyTrustworthy(e){if(e==null||e==="null")return false;const t=new URL(e);if(t.protocol==="https:"||t.protocol==="wss:"){return true}if(/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(t.hostname)||(t.hostname==="localhost"||t.hostname.includes("localhost."))||t.hostname.endsWith(".localhost")){return true}return false}}function bytesMatch(e,t){if(se===undefined){return true}const n=parseMetadata(t);if(n==="no metadata"){return true}if(n.length===0){return true}const o=getStrongestMetadata(n);const i=filterMetadataListByAlgorithm(n,o);for(const t of i){const n=t.algo;const o=t.hash;let i=se.createHash(n).update(e).digest("base64");if(i[i.length-1]==="="){if(i[i.length-2]==="="){i=i.slice(0,-2)}else{i=i.slice(0,-1)}}if(compareBase64Mixed(i,o)){return true}}return false}const ie=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function parseMetadata(e){const t=[];let n=true;for(const o of e.split(" ")){n=false;const e=ie.exec(o);if(e===null||e.groups===undefined||e.groups.algo===undefined){continue}const i=e.groups.algo.toLowerCase();if(ne.includes(i)){t.push(e.groups)}}if(n===true){return"no metadata"}return t}function getStrongestMetadata(e){let t=e[0].algo;if(t[3]==="5"){return t}for(let n=1;n<e.length;++n){const o=e[n];if(o.algo[3]==="5"){t="sha512";break}else if(t[3]==="3"){continue}else if(o.algo[3]==="3"){t="sha384"}}return t}function filterMetadataListByAlgorithm(e,t){if(e.length===1){return e}let n=0;for(let o=0;o<e.length;++o){if(e[o].algo===t){e[n++]=e[o]}}e.length=n;return e}function compareBase64Mixed(e,t){if(e.length!==t.length){return false}for(let n=0;n<e.length;++n){if(e[n]!==t[n]){if(e[n]==="+"&&t[n]==="-"||e[n]==="/"&&t[n]==="_"){continue}return false}}return true}function tryUpgradeRequestToAPotentiallyTrustworthyURL(e){}function sameOrigin(e,t){if(e.origin===t.origin&&e.origin==="null"){return true}if(e.protocol===t.protocol&&e.hostname===t.hostname&&e.port===t.port){return true}return false}function createDeferredPromise(){let e;let t;const n=new Promise(((n,o)=>{e=n;t=o}));return{promise:n,resolve:e,reject:t}}function isAborted(e){return e.controller.state==="aborted"}function isCancelled(e){return e.controller.state==="aborted"||e.controller.state==="terminated"}function normalizeMethod(e){return V[e.toLowerCase()]??e}function serializeJavascriptValueToJSONString(e){const t=JSON.stringify(e);if(t===undefined){throw new TypeError("Value is not JSON serializable")}ee(typeof t==="string");return t}const ae=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function createIterator(e,t,n=0,o=1){class FastIterableIterator{#z;#V;#j;constructor(e,t){this.#z=e;this.#V=t;this.#j=0}next(){if(typeof this!=="object"||this===null||!(#z in this)){throw new TypeError(`'next' called on an object that does not implement interface ${e} Iterator.`)}const i=this.#j;const a=this.#z[t];const d=a.length;if(i>=d){return{value:undefined,done:true}}const{[n]:m,[o]:h}=a[i];this.#j=i+1;let f;switch(this.#V){case"key":f=m;break;case"value":f=h;break;case"key+value":f=[m,h];break}return{value:f,done:false}}}delete FastIterableIterator.prototype.constructor;Object.setPrototypeOf(FastIterableIterator.prototype,ae);Object.defineProperties(FastIterableIterator.prototype,{[Symbol.toStringTag]:{writable:false,enumerable:false,configurable:true,value:`${e} Iterator`},next:{writable:true,enumerable:true,configurable:true}});return function(e,t){return new FastIterableIterator(e,t)}}function iteratorMixin(e,t,n,o=0,i=1){const a=createIterator(e,n,o,i);const d={keys:{writable:true,enumerable:true,configurable:true,value:function keys(){re.brandCheck(this,t);return a(this,"key")}},values:{writable:true,enumerable:true,configurable:true,value:function values(){re.brandCheck(this,t);return a(this,"value")}},entries:{writable:true,enumerable:true,configurable:true,value:function entries(){re.brandCheck(this,t);return a(this,"key+value")}},forEach:{writable:true,enumerable:true,configurable:true,value:function forEach(n,o=globalThis){re.brandCheck(this,t);re.argumentLengthCheck(arguments,1,`${e}.forEach`);if(typeof n!=="function"){throw new TypeError(`Failed to execute 'forEach' on '${e}': parameter 1 is not of type 'Function'.`)}for(const{0:e,1:t}of a(this,"key+value")){n.call(o,t,e,this)}}}};return Object.defineProperties(t.prototype,{...d,[Symbol.iterator]:{writable:true,enumerable:false,configurable:true,value:d.entries.value}})}async function fullyReadBody(e,t,n){const o=t;const i=n;let a;try{a=e.stream.getReader()}catch(e){i(e);return}try{o(await readAllBytes(a))}catch(e){i(e)}}function isReadableStreamLike(e){return e instanceof ReadableStream||e[Symbol.toStringTag]==="ReadableStream"&&typeof e.tee==="function"}function readableStreamClose(e){try{e.close();e.byobRequest?.respond(0)}catch(e){if(!e.message.includes("Controller is already closed")&&!e.message.includes("ReadableStream is already closed")){throw e}}}const ce=/[^\x00-\xFF]/;function isomorphicEncode(e){ee(!ce.test(e));return e}async function readAllBytes(e){const t=[];let n=0;while(true){const{done:o,value:i}=await e.read();if(o){return Buffer.concat(t,n)}if(!te(i)){throw new TypeError("Received non-Uint8Array chunk")}t.push(i);n+=i.length}}function urlIsLocal(e){ee("protocol"in e);const t=e.protocol;return t==="about:"||t==="blob:"||t==="data:"}function urlHasHttpsScheme(e){return typeof e==="string"&&e[5]===":"&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&e[4]==="s"||e.protocol==="https:"}function urlIsHttpHttpsScheme(e){ee("protocol"in e);const t=e.protocol;return t==="http:"||t==="https:"}function simpleRangeHeaderValue(e,t){const n=e;if(!n.startsWith("bytes")){return"failure"}const o={position:5};if(t){f((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==61){return"failure"}o.position++;if(t){f((e=>e==="\t"||e===" "),n,o)}const i=f((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const a=i.length?Number(i):null;if(t){f((e=>e==="\t"||e===" "),n,o)}if(n.charCodeAt(o.position)!==45){return"failure"}o.position++;if(t){f((e=>e==="\t"||e===" "),n,o)}const d=f((e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}),n,o);const m=d.length?Number(d):null;if(o.position<n.length){return"failure"}if(m===null&&a===null){return"failure"}if(a>m){return"failure"}return{rangeStartValue:a,rangeEndValue:m}}function buildContentRange(e,t,n){let o="bytes ";o+=isomorphicEncode(`${e}`);o+="-";o+=isomorphicEncode(`${t}`);o+="/";o+=isomorphicEncode(`${n}`);return o}class InflateStream extends o{#Y;constructor(e){super();this.#Y=e}_transform(e,t,n){if(!this._inflateStream){if(e.length===0){n();return}this._inflateStream=(e[0]&15)===8?i.createInflate(this.#Y):i.createInflateRaw(this.#Y);this._inflateStream.on("data",this.push.bind(this));this._inflateStream.on("end",(()=>this.push(null)));this._inflateStream.on("error",(e=>this.destroy(e)))}this._inflateStream.write(e,t,n)}_final(e){if(this._inflateStream){this._inflateStream.end();this._inflateStream=null}e()}}function createInflate(e){return new InflateStream(e)}function extractMimeType(e){let t=null;let n=null;let o=null;const i=getDecodeSplit("content-type",e);if(i===null){return"failure"}for(const e of i){const i=D(e);if(i==="failure"||i.essence==="*/*"){continue}o=i;if(o.essence!==n){t=null;if(o.parameters.has("charset")){t=o.parameters.get("charset")}n=o.essence}else if(!o.parameters.has("charset")&&t!==null){o.parameters.set("charset",t)}}if(o==null){return"failure"}return o}function gettingDecodingSplitting(e){const t=e;const n={position:0};const o=[];let i="";while(n.position<t.length){i+=f((e=>e!=='"'&&e!==","),t,n);if(n.position<t.length){if(t.charCodeAt(n.position)===34){i+=C(t,n);if(n.position<t.length){continue}}else{ee(t.charCodeAt(n.position)===44);n.position++}}i=P(i,true,true,(e=>e===9||e===32));o.push(i);i=""}return o}function getDecodeSplit(e,t){const n=t.get(e,true);if(n===null){return null}return gettingDecodingSplitting(n)}const le=new TextDecoder;function utf8DecodeBytes(e){if(e.length===0){return""}if(e[0]===239&&e[1]===187&&e[2]===191){e=e.subarray(3)}const t=le.decode(e);return t}class EnvironmentSettingsObjectBase{get baseUrl(){return h()}get origin(){return this.baseUrl?.origin}policyContainer=makePolicyContainer()}class EnvironmentSettingsObject{settingsObject=new EnvironmentSettingsObjectBase}const ue=new EnvironmentSettingsObject;e.exports={isAborted:isAborted,isCancelled:isCancelled,isValidEncodedURL:isValidEncodedURL,createDeferredPromise:createDeferredPromise,ReadableStreamFrom:F,tryUpgradeRequestToAPotentiallyTrustworthyURL:tryUpgradeRequestToAPotentiallyTrustworthyURL,clampAndCoarsenConnectionTimingInfo:clampAndCoarsenConnectionTimingInfo,coarsenedSharedCurrentTime:coarsenedSharedCurrentTime,determineRequestsReferrer:determineRequestsReferrer,makePolicyContainer:makePolicyContainer,clonePolicyContainer:clonePolicyContainer,appendFetchMetadata:appendFetchMetadata,appendRequestOriginHeader:appendRequestOriginHeader,TAOCheck:TAOCheck,corsCheck:corsCheck,crossOriginResourcePolicyCheck:crossOriginResourcePolicyCheck,createOpaqueTimingInfo:createOpaqueTimingInfo,setRequestReferrerPolicyOnRedirect:setRequestReferrerPolicyOnRedirect,isValidHTTPToken:q,requestBadPort:requestBadPort,requestCurrentURL:requestCurrentURL,responseURL:responseURL,responseLocationURL:responseLocationURL,isBlobLike:L,isURLPotentiallyTrustworthy:isURLPotentiallyTrustworthy,isValidReasonPhrase:isValidReasonPhrase,sameOrigin:sameOrigin,normalizeMethod:normalizeMethod,serializeJavascriptValueToJSONString:serializeJavascriptValueToJSONString,iteratorMixin:iteratorMixin,createIterator:createIterator,isValidHeaderName:oe,isValidHeaderValue:isValidHeaderValue,isErrorLike:isErrorLike,fullyReadBody:fullyReadBody,bytesMatch:bytesMatch,isReadableStreamLike:isReadableStreamLike,readableStreamClose:readableStreamClose,isomorphicEncode:isomorphicEncode,urlIsLocal:urlIsLocal,urlHasHttpsScheme:urlHasHttpsScheme,urlIsHttpHttpsScheme:urlIsHttpHttpsScheme,readAllBytes:readAllBytes,simpleRangeHeaderValue:simpleRangeHeaderValue,buildContentRange:buildContentRange,parseMetadata:parseMetadata,createInflate:createInflate,extractMimeType:extractMimeType,getDecodeSplit:getDecodeSplit,utf8DecodeBytes:utf8DecodeBytes,environmentSettingsObject:ue}},5893:(e,t,n)=>{const{types:o,inspect:i}=n(7975);const{markAsUncloneable:a}=n(5919);const{toUSVString:d}=n(3440);const m={};m.converters={};m.util={};m.errors={};m.errors.exception=function(e){return new TypeError(`${e.header}: ${e.message}`)};m.errors.conversionFailed=function(e){const t=e.types.length===1?"":" one of";const n=`${e.argument} could not be converted to`+`${t}: ${e.types.join(", ")}.`;return m.errors.exception({header:e.prefix,message:n})};m.errors.invalidArgument=function(e){return m.errors.exception({header:e.prefix,message:`"${e.value}" is an invalid ${e.type}.`})};m.brandCheck=function(e,t,n){if(n?.strict!==false){if(!(e instanceof t)){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}else{if(e?.[Symbol.toStringTag]!==t.prototype[Symbol.toStringTag]){const e=new TypeError("Illegal invocation");e.code="ERR_INVALID_THIS";throw e}}};m.argumentLengthCheck=function({length:e},t,n){if(e<t){throw m.errors.exception({message:`${t} argument${t!==1?"s":""} required, `+`but${e?" only":""} ${e} found.`,header:n})}};m.illegalConstructor=function(){throw m.errors.exception({header:"TypeError",message:"Illegal constructor"})};m.util.Type=function(e){switch(typeof e){case"undefined":return"Undefined";case"boolean":return"Boolean";case"string":return"String";case"symbol":return"Symbol";case"number":return"Number";case"bigint":return"BigInt";case"function":case"object":{if(e===null){return"Null"}return"Object"}}};m.util.markAsUncloneable=a||(()=>{});m.util.ConvertToInt=function(e,t,n,o){let i;let a;if(t===64){i=Math.pow(2,53)-1;if(n==="unsigned"){a=0}else{a=Math.pow(-2,53)+1}}else if(n==="unsigned"){a=0;i=Math.pow(2,t)-1}else{a=Math.pow(-2,t)-1;i=Math.pow(2,t-1)-1}let d=Number(e);if(d===0){d=0}if(o?.enforceRange===true){if(Number.isNaN(d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){throw m.errors.exception({header:"Integer conversion",message:`Could not convert ${m.util.Stringify(e)} to an integer.`})}d=m.util.IntegerPart(d);if(d<a||d>i){throw m.errors.exception({header:"Integer conversion",message:`Value must be between ${a}-${i}, got ${d}.`})}return d}if(!Number.isNaN(d)&&o?.clamp===true){d=Math.min(Math.max(d,a),i);if(Math.floor(d)%2===0){d=Math.floor(d)}else{d=Math.ceil(d)}return d}if(Number.isNaN(d)||d===0&&Object.is(0,d)||d===Number.POSITIVE_INFINITY||d===Number.NEGATIVE_INFINITY){return 0}d=m.util.IntegerPart(d);d=d%Math.pow(2,t);if(n==="signed"&&d>=Math.pow(2,t)-1){return d-Math.pow(2,t)}return d};m.util.IntegerPart=function(e){const t=Math.floor(Math.abs(e));if(e<0){return-1*t}return t};m.util.Stringify=function(e){const t=m.util.Type(e);switch(t){case"Symbol":return`Symbol(${e.description})`;case"Object":return i(e);case"String":return`"${e}"`;default:return`${e}`}};m.sequenceConverter=function(e){return(t,n,o,i)=>{if(m.util.Type(t)!=="Object"){throw m.errors.exception({header:n,message:`${o} (${m.util.Stringify(t)}) is not iterable.`})}const a=typeof i==="function"?i():t?.[Symbol.iterator]?.();const d=[];let h=0;if(a===undefined||typeof a.next!=="function"){throw m.errors.exception({header:n,message:`${o} is not iterable.`})}while(true){const{done:t,value:i}=a.next();if(t){break}d.push(e(i,n,`${o}[${h++}]`))}return d}};m.recordConverter=function(e,t){return(n,i,a)=>{if(m.util.Type(n)!=="Object"){throw m.errors.exception({header:i,message:`${a} ("${m.util.Type(n)}") is not an Object.`})}const d={};if(!o.isProxy(n)){const o=[...Object.getOwnPropertyNames(n),...Object.getOwnPropertySymbols(n)];for(const m of o){const o=e(m,i,a);const h=t(n[m],i,a);d[o]=h}return d}const h=Reflect.ownKeys(n);for(const o of h){const m=Reflect.getOwnPropertyDescriptor(n,o);if(m?.enumerable){const m=e(o,i,a);const h=t(n[o],i,a);d[m]=h}}return d}};m.interfaceConverter=function(e){return(t,n,o,i)=>{if(i?.strict!==false&&!(t instanceof e)){throw m.errors.exception({header:n,message:`Expected ${o} ("${m.util.Stringify(t)}") to be an instance of ${e.name}.`})}return t}};m.dictionaryConverter=function(e){return(t,n,o)=>{const i=m.util.Type(t);const a={};if(i==="Null"||i==="Undefined"){return a}else if(i!=="Object"){throw m.errors.exception({header:n,message:`Expected ${t} to be one of: Null, Undefined, Object.`})}for(const i of e){const{key:e,defaultValue:d,required:h,converter:f}=i;if(h===true){if(!Object.hasOwn(t,e)){throw m.errors.exception({header:n,message:`Missing required key "${e}".`})}}let C=t[e];const P=Object.hasOwn(i,"defaultValue");if(P&&C!==null){C??=d()}if(h||P||C!==undefined){C=f(C,n,`${o}.${e}`);if(i.allowedValues&&!i.allowedValues.includes(C)){throw m.errors.exception({header:n,message:`${C} is not an accepted type. Expected one of ${i.allowedValues.join(", ")}.`})}a[e]=C}}return a}};m.nullableConverter=function(e){return(t,n,o)=>{if(t===null){return t}return e(t,n,o)}};m.converters.DOMString=function(e,t,n,o){if(e===null&&o?.legacyNullToEmptyString){return""}if(typeof e==="symbol"){throw m.errors.exception({header:t,message:`${n} is a symbol, which cannot be converted to a DOMString.`})}return String(e)};m.converters.ByteString=function(e,t,n){const o=m.converters.DOMString(e,t,n);for(let e=0;e<o.length;e++){if(o.charCodeAt(e)>255){throw new TypeError("Cannot convert argument to a ByteString because the character at "+`index ${e} has a value of ${o.charCodeAt(e)} which is greater than 255.`)}}return o};m.converters.USVString=d;m.converters.boolean=function(e){const t=Boolean(e);return t};m.converters.any=function(e){return e};m.converters["long long"]=function(e,t,n){const o=m.util.ConvertToInt(e,64,"signed",undefined,t,n);return o};m.converters["unsigned long long"]=function(e,t,n){const o=m.util.ConvertToInt(e,64,"unsigned",undefined,t,n);return o};m.converters["unsigned long"]=function(e,t,n){const o=m.util.ConvertToInt(e,32,"unsigned",undefined,t,n);return o};m.converters["unsigned short"]=function(e,t,n,o){const i=m.util.ConvertToInt(e,16,"unsigned",o,t,n);return i};m.converters.ArrayBuffer=function(e,t,n,i){if(m.util.Type(e)!=="Object"||!o.isAnyArrayBuffer(e)){throw m.errors.conversionFailed({prefix:t,argument:`${n} ("${m.util.Stringify(e)}")`,types:["ArrayBuffer"]})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e)){throw m.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.resizable||e.growable){throw m.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};m.converters.TypedArray=function(e,t,n,i,a){if(m.util.Type(e)!=="Object"||!o.isTypedArray(e)||e.constructor.name!==t.name){throw m.errors.conversionFailed({prefix:n,argument:`${i} ("${m.util.Stringify(e)}")`,types:[t.name]})}if(a?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw m.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw m.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};m.converters.DataView=function(e,t,n,i){if(m.util.Type(e)!=="Object"||!o.isDataView(e)){throw m.errors.exception({header:t,message:`${n} is not a DataView.`})}if(i?.allowShared===false&&o.isSharedArrayBuffer(e.buffer)){throw m.errors.exception({header:"ArrayBuffer",message:"SharedArrayBuffer is not allowed."})}if(e.buffer.resizable||e.buffer.growable){throw m.errors.exception({header:"ArrayBuffer",message:"Received a resizable ArrayBuffer."})}return e};m.converters.BufferSource=function(e,t,n,i){if(o.isAnyArrayBuffer(e)){return m.converters.ArrayBuffer(e,t,n,{...i,allowShared:false})}if(o.isTypedArray(e)){return m.converters.TypedArray(e,e.constructor,t,n,{...i,allowShared:false})}if(o.isDataView(e)){return m.converters.DataView(e,t,n,{...i,allowShared:false})}throw m.errors.conversionFailed({prefix:t,argument:`${n} ("${m.util.Stringify(e)}")`,types:["BufferSource"]})};m.converters["sequence<ByteString>"]=m.sequenceConverter(m.converters.ByteString);m.converters["sequence<sequence<ByteString>>"]=m.sequenceConverter(m.converters["sequence<ByteString>"]);m.converters["record<ByteString, ByteString>"]=m.recordConverter(m.converters.ByteString,m.converters.ByteString);e.exports={webidl:m}},2607:e=>{function getEncoding(e){if(!e){return"failure"}switch(e.trim().toLowerCase()){case"unicode-1-1-utf-8":case"unicode11utf8":case"unicode20utf8":case"utf-8":case"utf8":case"x-unicode20utf8":return"UTF-8";case"866":case"cp866":case"csibm866":case"ibm866":return"IBM866";case"csisolatin2":case"iso-8859-2":case"iso-ir-101":case"iso8859-2":case"iso88592":case"iso_8859-2":case"iso_8859-2:1987":case"l2":case"latin2":return"ISO-8859-2";case"csisolatin3":case"iso-8859-3":case"iso-ir-109":case"iso8859-3":case"iso88593":case"iso_8859-3":case"iso_8859-3:1988":case"l3":case"latin3":return"ISO-8859-3";case"csisolatin4":case"iso-8859-4":case"iso-ir-110":case"iso8859-4":case"iso88594":case"iso_8859-4":case"iso_8859-4:1988":case"l4":case"latin4":return"ISO-8859-4";case"csisolatincyrillic":case"cyrillic":case"iso-8859-5":case"iso-ir-144":case"iso8859-5":case"iso88595":case"iso_8859-5":case"iso_8859-5:1988":return"ISO-8859-5";case"arabic":case"asmo-708":case"csiso88596e":case"csiso88596i":case"csisolatinarabic":case"ecma-114":case"iso-8859-6":case"iso-8859-6-e":case"iso-8859-6-i":case"iso-ir-127":case"iso8859-6":case"iso88596":case"iso_8859-6":case"iso_8859-6:1987":return"ISO-8859-6";case"csisolatingreek":case"ecma-118":case"elot_928":case"greek":case"greek8":case"iso-8859-7":case"iso-ir-126":case"iso8859-7":case"iso88597":case"iso_8859-7":case"iso_8859-7:1987":case"sun_eu_greek":return"ISO-8859-7";case"csiso88598e":case"csisolatinhebrew":case"hebrew":case"iso-8859-8":case"iso-8859-8-e":case"iso-ir-138":case"iso8859-8":case"iso88598":case"iso_8859-8":case"iso_8859-8:1988":case"visual":return"ISO-8859-8";case"csiso88598i":case"iso-8859-8-i":case"logical":return"ISO-8859-8-I";case"csisolatin6":case"iso-8859-10":case"iso-ir-157":case"iso8859-10":case"iso885910":case"l6":case"latin6":return"ISO-8859-10";case"iso-8859-13":case"iso8859-13":case"iso885913":return"ISO-8859-13";case"iso-8859-14":case"iso8859-14":case"iso885914":return"ISO-8859-14";case"csisolatin9":case"iso-8859-15":case"iso8859-15":case"iso885915":case"iso_8859-15":case"l9":return"ISO-8859-15";case"iso-8859-16":return"ISO-8859-16";case"cskoi8r":case"koi":case"koi8":case"koi8-r":case"koi8_r":return"KOI8-R";case"koi8-ru":case"koi8-u":return"KOI8-U";case"csmacintosh":case"mac":case"macintosh":case"x-mac-roman":return"macintosh";case"iso-8859-11":case"iso8859-11":case"iso885911":case"tis-620":case"windows-874":return"windows-874";case"cp1250":case"windows-1250":case"x-cp1250":return"windows-1250";case"cp1251":case"windows-1251":case"x-cp1251":return"windows-1251";case"ansi_x3.4-1968":case"ascii":case"cp1252":case"cp819":case"csisolatin1":case"ibm819":case"iso-8859-1":case"iso-ir-100":case"iso8859-1":case"iso88591":case"iso_8859-1":case"iso_8859-1:1987":case"l1":case"latin1":case"us-ascii":case"windows-1252":case"x-cp1252":return"windows-1252";case"cp1253":case"windows-1253":case"x-cp1253":return"windows-1253";case"cp1254":case"csisolatin5":case"iso-8859-9":case"iso-ir-148":case"iso8859-9":case"iso88599":case"iso_8859-9":case"iso_8859-9:1989":case"l5":case"latin5":case"windows-1254":case"x-cp1254":return"windows-1254";case"cp1255":case"windows-1255":case"x-cp1255":return"windows-1255";case"cp1256":case"windows-1256":case"x-cp1256":return"windows-1256";case"cp1257":case"windows-1257":case"x-cp1257":return"windows-1257";case"cp1258":case"windows-1258":case"x-cp1258":return"windows-1258";case"x-mac-cyrillic":case"x-mac-ukrainian":return"x-mac-cyrillic";case"chinese":case"csgb2312":case"csiso58gb231280":case"gb2312":case"gb_2312":case"gb_2312-80":case"gbk":case"iso-ir-58":case"x-gbk":return"GBK";case"gb18030":return"gb18030";case"big5":case"big5-hkscs":case"cn-big5":case"csbig5":case"x-x-big5":return"Big5";case"cseucpkdfmtjapanese":case"euc-jp":case"x-euc-jp":return"EUC-JP";case"csiso2022jp":case"iso-2022-jp":return"ISO-2022-JP";case"csshiftjis":case"ms932":case"ms_kanji":case"shift-jis":case"shift_jis":case"sjis":case"windows-31j":case"x-sjis":return"Shift_JIS";case"cseuckr":case"csksc56011987":case"euc-kr":case"iso-ir-149":case"korean":case"ks_c_5601-1987":case"ks_c_5601-1989":case"ksc5601":case"ksc_5601":case"windows-949":return"EUC-KR";case"csiso2022kr":case"hz-gb-2312":case"iso-2022-cn":case"iso-2022-cn-ext":case"iso-2022-kr":case"replacement":return"replacement";case"unicodefffe":case"utf-16be":return"UTF-16BE";case"csunicode":case"iso-10646-ucs-2":case"ucs-2":case"unicode":case"unicodefeff":case"utf-16":case"utf-16le":return"UTF-16LE";case"x-user-defined":return"x-user-defined";default:return"failure"}}e.exports={getEncoding:getEncoding}},8355:(e,t,n)=>{const{staticPropertyDescriptors:o,readOperation:i,fireAProgressEvent:a}=n(3610);const{kState:d,kError:m,kResult:h,kEvents:f,kAborted:C}=n(961);const{webidl:P}=n(5893);const{kEnumerableProperty:D}=n(3440);class FileReader extends EventTarget{constructor(){super();this[d]="empty";this[h]=null;this[m]=null;this[f]={loadend:null,error:null,abort:null,load:null,progress:null,loadstart:null}}readAsArrayBuffer(e){P.brandCheck(this,FileReader);P.argumentLengthCheck(arguments,1,"FileReader.readAsArrayBuffer");e=P.converters.Blob(e,{strict:false});i(this,e,"ArrayBuffer")}readAsBinaryString(e){P.brandCheck(this,FileReader);P.argumentLengthCheck(arguments,1,"FileReader.readAsBinaryString");e=P.converters.Blob(e,{strict:false});i(this,e,"BinaryString")}readAsText(e,t=undefined){P.brandCheck(this,FileReader);P.argumentLengthCheck(arguments,1,"FileReader.readAsText");e=P.converters.Blob(e,{strict:false});if(t!==undefined){t=P.converters.DOMString(t,"FileReader.readAsText","encoding")}i(this,e,"Text",t)}readAsDataURL(e){P.brandCheck(this,FileReader);P.argumentLengthCheck(arguments,1,"FileReader.readAsDataURL");e=P.converters.Blob(e,{strict:false});i(this,e,"DataURL")}abort(){if(this[d]==="empty"||this[d]==="done"){this[h]=null;return}if(this[d]==="loading"){this[d]="done";this[h]=null}this[C]=true;a("abort",this);if(this[d]!=="loading"){a("loadend",this)}}get readyState(){P.brandCheck(this,FileReader);switch(this[d]){case"empty":return this.EMPTY;case"loading":return this.LOADING;case"done":return this.DONE}}get result(){P.brandCheck(this,FileReader);return this[h]}get error(){P.brandCheck(this,FileReader);return this[m]}get onloadend(){P.brandCheck(this,FileReader);return this[f].loadend}set onloadend(e){P.brandCheck(this,FileReader);if(this[f].loadend){this.removeEventListener("loadend",this[f].loadend)}if(typeof e==="function"){this[f].loadend=e;this.addEventListener("loadend",e)}else{this[f].loadend=null}}get onerror(){P.brandCheck(this,FileReader);return this[f].error}set onerror(e){P.brandCheck(this,FileReader);if(this[f].error){this.removeEventListener("error",this[f].error)}if(typeof e==="function"){this[f].error=e;this.addEventListener("error",e)}else{this[f].error=null}}get onloadstart(){P.brandCheck(this,FileReader);return this[f].loadstart}set onloadstart(e){P.brandCheck(this,FileReader);if(this[f].loadstart){this.removeEventListener("loadstart",this[f].loadstart)}if(typeof e==="function"){this[f].loadstart=e;this.addEventListener("loadstart",e)}else{this[f].loadstart=null}}get onprogress(){P.brandCheck(this,FileReader);return this[f].progress}set onprogress(e){P.brandCheck(this,FileReader);if(this[f].progress){this.removeEventListener("progress",this[f].progress)}if(typeof e==="function"){this[f].progress=e;this.addEventListener("progress",e)}else{this[f].progress=null}}get onload(){P.brandCheck(this,FileReader);return this[f].load}set onload(e){P.brandCheck(this,FileReader);if(this[f].load){this.removeEventListener("load",this[f].load)}if(typeof e==="function"){this[f].load=e;this.addEventListener("load",e)}else{this[f].load=null}}get onabort(){P.brandCheck(this,FileReader);return this[f].abort}set onabort(e){P.brandCheck(this,FileReader);if(this[f].abort){this.removeEventListener("abort",this[f].abort)}if(typeof e==="function"){this[f].abort=e;this.addEventListener("abort",e)}else{this[f].abort=null}}}FileReader.EMPTY=FileReader.prototype.EMPTY=0;FileReader.LOADING=FileReader.prototype.LOADING=1;FileReader.DONE=FileReader.prototype.DONE=2;Object.defineProperties(FileReader.prototype,{EMPTY:o,LOADING:o,DONE:o,readAsArrayBuffer:D,readAsBinaryString:D,readAsText:D,readAsDataURL:D,abort:D,readyState:D,result:D,error:D,onloadstart:D,onprogress:D,onload:D,onabort:D,onerror:D,onloadend:D,[Symbol.toStringTag]:{value:"FileReader",writable:false,enumerable:false,configurable:true}});Object.defineProperties(FileReader,{EMPTY:o,LOADING:o,DONE:o});e.exports={FileReader:FileReader}},8573:(e,t,n)=>{const{webidl:o}=n(5893);const i=Symbol("ProgressEvent state");class ProgressEvent extends Event{constructor(e,t={}){e=o.converters.DOMString(e,"ProgressEvent constructor","type");t=o.converters.ProgressEventInit(t??{});super(e,t);this[i]={lengthComputable:t.lengthComputable,loaded:t.loaded,total:t.total}}get lengthComputable(){o.brandCheck(this,ProgressEvent);return this[i].lengthComputable}get loaded(){o.brandCheck(this,ProgressEvent);return this[i].loaded}get total(){o.brandCheck(this,ProgressEvent);return this[i].total}}o.converters.ProgressEventInit=o.dictionaryConverter([{key:"lengthComputable",converter:o.converters.boolean,defaultValue:()=>false},{key:"loaded",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"total",converter:o.converters["unsigned long long"],defaultValue:()=>0},{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}]);e.exports={ProgressEvent:ProgressEvent}},961:e=>{e.exports={kState:Symbol("FileReader state"),kResult:Symbol("FileReader result"),kError:Symbol("FileReader error"),kLastProgressEventFired:Symbol("FileReader last progress event fired timestamp"),kEvents:Symbol("FileReader events"),kAborted:Symbol("FileReader aborted")}},3610:(e,t,n)=>{const{kState:o,kError:i,kResult:a,kAborted:d,kLastProgressEventFired:m}=n(961);const{ProgressEvent:h}=n(8573);const{getEncoding:f}=n(2607);const{serializeAMimeType:C,parseMIMEType:P}=n(1900);const{types:D}=n(7975);const{StringDecoder:k}=n(3193);const{btoa:L}=n(4573);const F={enumerable:true,writable:false,configurable:false};function readOperation(e,t,n,h){if(e[o]==="loading"){throw new DOMException("Invalid state","InvalidStateError")}e[o]="loading";e[a]=null;e[i]=null;const f=t.stream();const C=f.getReader();const P=[];let k=C.read();let L=true;(async()=>{while(!e[d]){try{const{done:f,value:F}=await k;if(L&&!e[d]){queueMicrotask((()=>{fireAProgressEvent("loadstart",e)}))}L=false;if(!f&&D.isUint8Array(F)){P.push(F);if((e[m]===undefined||Date.now()-e[m]>=50)&&!e[d]){e[m]=Date.now();queueMicrotask((()=>{fireAProgressEvent("progress",e)}))}k=C.read()}else if(f){queueMicrotask((()=>{e[o]="done";try{const o=packageData(P,n,t.type,h);if(e[d]){return}e[a]=o;fireAProgressEvent("load",e)}catch(t){e[i]=t;fireAProgressEvent("error",e)}if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}catch(t){if(e[d]){return}queueMicrotask((()=>{e[o]="done";e[i]=t;fireAProgressEvent("error",e);if(e[o]!=="loading"){fireAProgressEvent("loadend",e)}}));break}}})()}function fireAProgressEvent(e,t){const n=new h(e,{bubbles:false,cancelable:false});t.dispatchEvent(n)}function packageData(e,t,n,o){switch(t){case"DataURL":{let t="data:";const o=P(n||"application/octet-stream");if(o!=="failure"){t+=C(o)}t+=";base64,";const i=new k("latin1");for(const n of e){t+=L(i.write(n))}t+=L(i.end());return t}case"Text":{let t="failure";if(o){t=f(o)}if(t==="failure"&&n){const e=P(n);if(e!=="failure"){t=f(e.parameters.get("charset"))}}if(t==="failure"){t="UTF-8"}return decode(e,t)}case"ArrayBuffer":{const t=combineByteSequences(e);return t.buffer}case"BinaryString":{let t="";const n=new k("latin1");for(const o of e){t+=n.write(o)}t+=n.end();return t}}}function decode(e,t){const n=combineByteSequences(e);const o=BOMSniffing(n);let i=0;if(o!==null){t=o;i=o==="UTF-8"?3:2}const a=n.slice(i);return new TextDecoder(t).decode(a)}function BOMSniffing(e){const[t,n,o]=e;if(t===239&&n===187&&o===191){return"UTF-8"}else if(t===254&&n===255){return"UTF-16BE"}else if(t===255&&n===254){return"UTF-16LE"}return null}function combineByteSequences(e){const t=e.reduce(((e,t)=>e+t.byteLength),0);let n=0;return e.reduce(((e,t)=>{e.set(t,n);n+=t.byteLength;return e}),new Uint8Array(t))}e.exports={staticPropertyDescriptors:F,readOperation:readOperation,fireAProgressEvent:fireAProgressEvent}},6897:(e,t,n)=>{const{uid:o,states:i,sentCloseFrameState:a,emptyBuffer:d,opcodes:m}=n(736);const{kReadyState:h,kSentClose:f,kByteParser:C,kReceivedClose:P,kResponse:D}=n(1216);const{fireEvent:k,failWebsocketConnection:L,isClosing:F,isClosed:q,isEstablished:V,parseExtensions:ee}=n(8625);const{channels:te}=n(2414);const{CloseEvent:re}=n(5188);const{makeRequest:ne}=n(9967);const{fetching:se}=n(4398);const{Headers:oe,getHeadersList:ie}=n(660);const{getDecodeSplit:ae}=n(3168);const{WebsocketFrameSend:ce}=n(3264);let le;try{le=n(7598)}catch{}function establishWebSocketConnection(e,t,n,i,a,d){const m=e;m.protocol=e.protocol==="ws:"?"http:":"https:";const h=ne({urlList:[m],client:n,serviceWorkers:"none",referrer:"no-referrer",mode:"websocket",credentials:"include",cache:"no-store",redirect:"error"});if(d.headers){const e=ie(new oe(d.headers));h.headersList=e}const f=le.randomBytes(16).toString("base64");h.headersList.append("sec-websocket-key",f);h.headersList.append("sec-websocket-version","13");for(const e of t){h.headersList.append("sec-websocket-protocol",e)}const C="permessage-deflate; client_max_window_bits";h.headersList.append("sec-websocket-extensions",C);const P=se({request:h,useParallelQueue:true,dispatcher:d.dispatcher,processResponse(e){if(e.type==="error"||e.status!==101){L(i,"Received network error or non-101 status code.");return}if(t.length!==0&&!e.headersList.get("Sec-WebSocket-Protocol")){L(i,"Server did not respond with sent protocols.");return}if(e.headersList.get("Upgrade")?.toLowerCase()!=="websocket"){L(i,'Server did not set Upgrade header to "websocket".');return}if(e.headersList.get("Connection")?.toLowerCase()!=="upgrade"){L(i,'Server did not set Connection header to "upgrade".');return}const n=e.headersList.get("Sec-WebSocket-Accept");const d=le.createHash("sha1").update(f+o).digest("base64");if(n!==d){L(i,"Incorrect hash received in Sec-WebSocket-Accept header.");return}const m=e.headersList.get("Sec-WebSocket-Extensions");let C;if(m!==null){C=ee(m);if(!C.has("permessage-deflate")){L(i,"Sec-WebSocket-Extensions header does not match.");return}}const P=e.headersList.get("Sec-WebSocket-Protocol");if(P!==null){const e=ae("sec-websocket-protocol",h.headersList);if(!e.includes(P)){L(i,"Protocol was not set in the opening handshake.");return}}e.socket.on("data",onSocketData);e.socket.on("close",onSocketClose);e.socket.on("error",onSocketError);if(te.open.hasSubscribers){te.open.publish({address:e.socket.address(),protocol:P,extensions:m})}a(e,C)}});return P}function closeWebSocketConnection(e,t,n,o){if(F(e)||q(e)){}else if(!V(e)){L(e,"Connection was closed before it was established.");e[h]=i.CLOSING}else if(e[f]===a.NOT_SENT){e[f]=a.PROCESSING;const C=new ce;if(t!==undefined&&n===undefined){C.frameData=Buffer.allocUnsafe(2);C.frameData.writeUInt16BE(t,0)}else if(t!==undefined&&n!==undefined){C.frameData=Buffer.allocUnsafe(2+o);C.frameData.writeUInt16BE(t,0);C.frameData.write(n,2,"utf-8")}else{C.frameData=d}const P=e[D].socket;P.write(C.createFrame(m.CLOSE));e[f]=a.SENT;e[h]=i.CLOSING}else{e[h]=i.CLOSING}}function onSocketData(e){if(!this.ws[C].write(e)){this.pause()}}function onSocketClose(){const{ws:e}=this;const{[D]:t}=e;t.socket.off("data",onSocketData);t.socket.off("close",onSocketClose);t.socket.off("error",onSocketError);const n=e[f]===a.SENT&&e[P];let o=1005;let d="";const m=e[C].closingInfo;if(m&&!m.error){o=m.code??1005;d=m.reason}else if(!e[P]){o=1006}e[h]=i.CLOSED;k("close",e,((e,t)=>new re(e,t)),{wasClean:n,code:o,reason:d});if(te.close.hasSubscribers){te.close.publish({websocket:e,code:o,reason:d})}}function onSocketError(e){const{ws:t}=this;t[h]=i.CLOSING;if(te.socketError.hasSubscribers){te.socketError.publish(e)}this.destroy()}e.exports={establishWebSocketConnection:establishWebSocketConnection,closeWebSocketConnection:closeWebSocketConnection}},736:e=>{const t="258EAFA5-E914-47DA-95CA-C5AB0DC85B11";const n={enumerable:true,writable:false,configurable:false};const o={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};const i={NOT_SENT:0,PROCESSING:1,SENT:2};const a={CONTINUATION:0,TEXT:1,BINARY:2,CLOSE:8,PING:9,PONG:10};const d=2**16-1;const m={INFO:0,PAYLOADLENGTH_16:2,PAYLOADLENGTH_64:3,READ_DATA:4};const h=Buffer.allocUnsafe(0);const f={string:1,typedArray:2,arrayBuffer:3,blob:4};e.exports={uid:t,sentCloseFrameState:i,staticPropertyDescriptors:n,states:o,opcodes:a,maxUnsigned16Bit:d,parserStates:m,emptyBuffer:h,sendHints:f}},5188:(e,t,n)=>{const{webidl:o}=n(5893);const{kEnumerableProperty:i}=n(3440);const{kConstruct:a}=n(6443);const{MessagePort:d}=n(5919);class MessageEvent extends Event{#J;constructor(e,t={}){if(e===a){super(arguments[1],arguments[2]);o.util.markAsUncloneable(this);return}const n="MessageEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.MessageEventInit(t,n,"eventInitDict");super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get data(){o.brandCheck(this,MessageEvent);return this.#J.data}get origin(){o.brandCheck(this,MessageEvent);return this.#J.origin}get lastEventId(){o.brandCheck(this,MessageEvent);return this.#J.lastEventId}get source(){o.brandCheck(this,MessageEvent);return this.#J.source}get ports(){o.brandCheck(this,MessageEvent);if(!Object.isFrozen(this.#J.ports)){Object.freeze(this.#J.ports)}return this.#J.ports}initMessageEvent(e,t=false,n=false,i=null,a="",d="",m=null,h=[]){o.brandCheck(this,MessageEvent);o.argumentLengthCheck(arguments,1,"MessageEvent.initMessageEvent");return new MessageEvent(e,{bubbles:t,cancelable:n,data:i,origin:a,lastEventId:d,source:m,ports:h})}static createFastMessageEvent(e,t){const n=new MessageEvent(a,e,t);n.#J=t;n.#J.data??=null;n.#J.origin??="";n.#J.lastEventId??="";n.#J.source??=null;n.#J.ports??=[];return n}}const{createFastMessageEvent:m}=MessageEvent;delete MessageEvent.createFastMessageEvent;class CloseEvent extends Event{#J;constructor(e,t={}){const n="CloseEvent constructor";o.argumentLengthCheck(arguments,1,n);e=o.converters.DOMString(e,n,"type");t=o.converters.CloseEventInit(t);super(e,t);this.#J=t;o.util.markAsUncloneable(this)}get wasClean(){o.brandCheck(this,CloseEvent);return this.#J.wasClean}get code(){o.brandCheck(this,CloseEvent);return this.#J.code}get reason(){o.brandCheck(this,CloseEvent);return this.#J.reason}}class ErrorEvent extends Event{#J;constructor(e,t){const n="ErrorEvent constructor";o.argumentLengthCheck(arguments,1,n);super(e,t);o.util.markAsUncloneable(this);e=o.converters.DOMString(e,n,"type");t=o.converters.ErrorEventInit(t??{});this.#J=t}get message(){o.brandCheck(this,ErrorEvent);return this.#J.message}get filename(){o.brandCheck(this,ErrorEvent);return this.#J.filename}get lineno(){o.brandCheck(this,ErrorEvent);return this.#J.lineno}get colno(){o.brandCheck(this,ErrorEvent);return this.#J.colno}get error(){o.brandCheck(this,ErrorEvent);return this.#J.error}}Object.defineProperties(MessageEvent.prototype,{[Symbol.toStringTag]:{value:"MessageEvent",configurable:true},data:i,origin:i,lastEventId:i,source:i,ports:i,initMessageEvent:i});Object.defineProperties(CloseEvent.prototype,{[Symbol.toStringTag]:{value:"CloseEvent",configurable:true},reason:i,code:i,wasClean:i});Object.defineProperties(ErrorEvent.prototype,{[Symbol.toStringTag]:{value:"ErrorEvent",configurable:true},message:i,filename:i,lineno:i,colno:i,error:i});o.converters.MessagePort=o.interfaceConverter(d);o.converters["sequence<MessagePort>"]=o.sequenceConverter(o.converters.MessagePort);const h=[{key:"bubbles",converter:o.converters.boolean,defaultValue:()=>false},{key:"cancelable",converter:o.converters.boolean,defaultValue:()=>false},{key:"composed",converter:o.converters.boolean,defaultValue:()=>false}];o.converters.MessageEventInit=o.dictionaryConverter([...h,{key:"data",converter:o.converters.any,defaultValue:()=>null},{key:"origin",converter:o.converters.USVString,defaultValue:()=>""},{key:"lastEventId",converter:o.converters.DOMString,defaultValue:()=>""},{key:"source",converter:o.nullableConverter(o.converters.MessagePort),defaultValue:()=>null},{key:"ports",converter:o.converters["sequence<MessagePort>"],defaultValue:()=>new Array(0)}]);o.converters.CloseEventInit=o.dictionaryConverter([...h,{key:"wasClean",converter:o.converters.boolean,defaultValue:()=>false},{key:"code",converter:o.converters["unsigned short"],defaultValue:()=>0},{key:"reason",converter:o.converters.USVString,defaultValue:()=>""}]);o.converters.ErrorEventInit=o.dictionaryConverter([...h,{key:"message",converter:o.converters.DOMString,defaultValue:()=>""},{key:"filename",converter:o.converters.USVString,defaultValue:()=>""},{key:"lineno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"colno",converter:o.converters["unsigned long"],defaultValue:()=>0},{key:"error",converter:o.converters.any}]);e.exports={MessageEvent:MessageEvent,CloseEvent:CloseEvent,ErrorEvent:ErrorEvent,createFastMessageEvent:m}},3264:(e,t,n)=>{const{maxUnsigned16Bit:o}=n(736);const i=16386;let a;let d=null;let m=i;try{a=n(7598)}catch{a={randomFillSync:function randomFillSync(e,t,n){for(let t=0;t<e.length;++t){e[t]=Math.random()*255|0}return e}}}function generateMask(){if(m===i){m=0;a.randomFillSync(d??=Buffer.allocUnsafe(i),0,i)}return[d[m++],d[m++],d[m++],d[m++]]}class WebsocketFrameSend{constructor(e){this.frameData=e}createFrame(e){const t=this.frameData;const n=generateMask();const i=t?.byteLength??0;let a=i;let d=6;if(i>o){d+=8;a=127}else if(i>125){d+=2;a=126}const m=Buffer.allocUnsafe(i+d);m[0]=m[1]=0;m[0]|=128;m[0]=(m[0]&240)+e;
|
||
/*! ws. MIT License. Einar Otto Stangvik <einaros@gmail.com> */m[d-4]=n[0];m[d-3]=n[1];m[d-2]=n[2];m[d-1]=n[3];m[1]=a;if(a===126){m.writeUInt16BE(i,2)}else if(a===127){m[2]=m[3]=0;m.writeUIntBE(i,4,6)}m[1]|=128;for(let e=0;e<i;++e){m[d+e]=t[e]^n[e&3]}return m}}e.exports={WebsocketFrameSend:WebsocketFrameSend}},9469:(e,t,n)=>{const{createInflateRaw:o,Z_DEFAULT_WINDOWBITS:i}=n(8522);const{isValidClientWindowBits:a}=n(8625);const{MessageSizeExceededError:d}=n(8707);const m=Buffer.from([0,0,255,255]);const h=Symbol("kBuffer");const f=Symbol("kLength");const C=4*1024*1024;class PerMessageDeflate{#W;#A={};#w=false;#K=null;constructor(e){this.#A.serverNoContextTakeover=e.has("server_no_context_takeover");this.#A.serverMaxWindowBits=e.get("server_max_window_bits")}decompress(e,t,n){if(this.#w){n(new d);return}if(!this.#W){let e=i;if(this.#A.serverMaxWindowBits){if(!a(this.#A.serverMaxWindowBits)){n(new Error("Invalid server_max_window_bits"));return}e=Number.parseInt(this.#A.serverMaxWindowBits)}try{this.#W=o({windowBits:e})}catch(e){n(e);return}this.#W[h]=[];this.#W[f]=0;this.#W.on("data",(e=>{if(this.#w){return}this.#W[f]+=e.length;if(this.#W[f]>C){this.#w=true;this.#W.removeAllListeners();this.#W.destroy();this.#W=null;if(this.#K){const e=this.#K;this.#K=null;e(new d)}return}this.#W[h].push(e)}));this.#W.on("error",(e=>{this.#W=null;n(e)}))}this.#K=n;this.#W.write(e);if(t){this.#W.write(m)}this.#W.flush((()=>{if(this.#w||!this.#W){return}const e=Buffer.concat(this.#W[h],this.#W[f]);this.#W[h].length=0;this.#W[f]=0;this.#K=null;n(null,e)}))}}e.exports={PerMessageDeflate:PerMessageDeflate}},1652:(e,t,n)=>{const{Writable:o}=n(7075);const i=n(4589);const{parserStates:a,opcodes:d,states:m,emptyBuffer:h,sentCloseFrameState:f}=n(736);const{kReadyState:C,kSentClose:P,kResponse:D,kReceivedClose:k}=n(1216);const{channels:L}=n(2414);const{isValidStatusCode:F,isValidOpcode:q,failWebsocketConnection:V,websocketMessageReceived:ee,utf8Decode:te,isControlFrame:re,isTextBinaryFrame:ne,isContinuationFrame:se}=n(8625);const{WebsocketFrameSend:oe}=n(3264);const{closeWebSocketConnection:ie}=n(6897);const{PerMessageDeflate:ae}=n(9469);class ByteParser extends o{#X=[];#Z=0;#ee=false;#C=a.INFO;#te={};#re=[];#ne;constructor(e,t){super();this.ws=e;this.#ne=t==null?new Map:t;if(this.#ne.has("permessage-deflate")){this.#ne.set("permessage-deflate",new ae(t))}}_write(e,t,n){this.#X.push(e);this.#Z+=e.length;this.#ee=true;this.run(n)}run(e){while(this.#ee){if(this.#C===a.INFO){if(this.#Z<2){return e()}const t=this.consume(2);const n=(t[0]&128)!==0;const o=t[0]&15;const i=(t[1]&128)===128;const m=!n&&o!==d.CONTINUATION;const h=t[1]&127;const f=t[0]&64;const C=t[0]&32;const P=t[0]&16;if(!q(o)){V(this.ws,"Invalid opcode received");return e()}if(i){V(this.ws,"Frame cannot be masked");return e()}if(f!==0&&!this.#ne.has("permessage-deflate")){V(this.ws,"Expected RSV1 to be clear.");return}if(C!==0||P!==0){V(this.ws,"RSV1, RSV2, RSV3 must be clear");return}if(m&&!ne(o)){V(this.ws,"Invalid frame type was fragmented.");return}if(ne(o)&&this.#re.length>0){V(this.ws,"Expected continuation frame");return}if(this.#te.fragmented&&m){V(this.ws,"Fragmented frame exceeded 125 bytes.");return}if((h>125||m)&&re(o)){V(this.ws,"Control frame either too large or fragmented");return}if(se(o)&&this.#re.length===0&&!this.#te.compressed){V(this.ws,"Unexpected continuation frame");return}if(h<=125){this.#te.payloadLength=h;this.#C=a.READ_DATA}else if(h===126){this.#C=a.PAYLOADLENGTH_16}else if(h===127){this.#C=a.PAYLOADLENGTH_64}if(ne(o)){this.#te.binaryType=o;this.#te.compressed=f!==0}this.#te.opcode=o;this.#te.masked=i;this.#te.fin=n;this.#te.fragmented=m}else if(this.#C===a.PAYLOADLENGTH_16){if(this.#Z<2){return e()}const t=this.consume(2);this.#te.payloadLength=t.readUInt16BE(0);this.#C=a.READ_DATA}else if(this.#C===a.PAYLOADLENGTH_64){if(this.#Z<8){return e()}const t=this.consume(8);const n=t.readUInt32BE(0);const o=t.readUInt32BE(4);if(n!==0||o>2**31-1){V(this.ws,"Received payload length > 2^31 bytes.");return}this.#te.payloadLength=o;this.#C=a.READ_DATA}else if(this.#C===a.READ_DATA){if(this.#Z<this.#te.payloadLength){return e()}const t=this.consume(this.#te.payloadLength);if(re(this.#te.opcode)){this.#ee=this.parseControlFrame(t);this.#C=a.INFO}else{if(!this.#te.compressed){this.#re.push(t);if(!this.#te.fragmented&&this.#te.fin){const e=Buffer.concat(this.#re);ee(this.ws,this.#te.binaryType,e);this.#re.length=0}this.#C=a.INFO}else{this.#ne.get("permessage-deflate").decompress(t,this.#te.fin,((t,n)=>{if(t){V(this.ws,t.message);return}this.#re.push(n);if(!this.#te.fin){this.#C=a.INFO;this.#ee=true;this.run(e);return}ee(this.ws,this.#te.binaryType,Buffer.concat(this.#re));this.#ee=true;this.#C=a.INFO;this.#re.length=0;this.run(e)}));this.#ee=false;break}}}}}consume(e){if(e>this.#Z){throw new Error("Called consume() before buffers satiated.")}else if(e===0){return h}if(this.#X[0].length===e){this.#Z-=this.#X[0].length;return this.#X.shift()}const t=Buffer.allocUnsafe(e);let n=0;while(n!==e){const o=this.#X[0];const{length:i}=o;if(i+n===e){t.set(this.#X.shift(),n);break}else if(i+n>e){t.set(o.subarray(0,e-n),n);this.#X[0]=o.subarray(e-n);break}else{t.set(this.#X.shift(),n);n+=o.length}}this.#Z-=e;return t}parseCloseBody(e){i(e.length!==1);let t;if(e.length>=2){t=e.readUInt16BE(0)}if(t!==undefined&&!F(t)){return{code:1002,reason:"Invalid status code",error:true}}let n=e.subarray(2);if(n[0]===239&&n[1]===187&&n[2]===191){n=n.subarray(3)}try{n=te(n)}catch{return{code:1007,reason:"Invalid UTF-8",error:true}}return{code:t,reason:n,error:false}}parseControlFrame(e){const{opcode:t,payloadLength:n}=this.#te;if(t===d.CLOSE){if(n===1){V(this.ws,"Received close frame with a 1-byte body.");return false}this.#te.closeInfo=this.parseCloseBody(e);if(this.#te.closeInfo.error){const{code:e,reason:t}=this.#te.closeInfo;ie(this.ws,e,t,t.length);V(this.ws,t);return false}if(this.ws[P]!==f.SENT){let e=h;if(this.#te.closeInfo.code){e=Buffer.allocUnsafe(2);e.writeUInt16BE(this.#te.closeInfo.code,0)}const t=new oe(e);this.ws[D].socket.write(t.createFrame(d.CLOSE),(e=>{if(!e){this.ws[P]=f.SENT}}))}this.ws[C]=m.CLOSING;this.ws[k]=true;return false}else if(t===d.PING){if(!this.ws[k]){const t=new oe(e);this.ws[D].socket.write(t.createFrame(d.PONG));if(L.ping.hasSubscribers){L.ping.publish({payload:e})}}}else if(t===d.PONG){if(L.pong.hasSubscribers){L.pong.publish({payload:e})}}return true}get closingInfo(){return this.#te.closeInfo}}e.exports={ByteParser:ByteParser}},3900:(e,t,n)=>{const{WebsocketFrameSend:o}=n(3264);const{opcodes:i,sendHints:a}=n(736);const d=n(4660);const m=Buffer[Symbol.species];class SendQueue{#se=new d;#oe=false;#ie;constructor(e){this.#ie=e}add(e,t,n){if(n!==a.blob){const o=createFrame(e,n);if(!this.#oe){this.#ie.write(o,t)}else{const e={promise:null,callback:t,frame:o};this.#se.push(e)}return}const o={promise:e.arrayBuffer().then((e=>{o.promise=null;o.frame=createFrame(e,n)})),callback:t,frame:null};this.#se.push(o);if(!this.#oe){this.#ae()}}async#ae(){this.#oe=true;const e=this.#se;while(!e.isEmpty()){const t=e.shift();if(t.promise!==null){await t.promise}this.#ie.write(t.frame,t.callback);t.callback=t.frame=null}this.#oe=false}}function createFrame(e,t){return new o(toBuffer(e,t)).createFrame(t===a.string?i.TEXT:i.BINARY)}function toBuffer(e,t){switch(t){case a.string:return Buffer.from(e);case a.arrayBuffer:case a.blob:return new m(e);case a.typedArray:return new m(e.buffer,e.byteOffset,e.byteLength)}}e.exports={SendQueue:SendQueue}},1216:e=>{e.exports={kWebSocketURL:Symbol("url"),kReadyState:Symbol("ready state"),kController:Symbol("controller"),kResponse:Symbol("response"),kBinaryType:Symbol("binary type"),kSentClose:Symbol("sent close"),kReceivedClose:Symbol("received close"),kByteParser:Symbol("byte parser")}},8625:(e,t,n)=>{const{kReadyState:o,kController:i,kResponse:a,kBinaryType:d,kWebSocketURL:m}=n(1216);const{states:h,opcodes:f}=n(736);const{ErrorEvent:C,createFastMessageEvent:P}=n(5188);const{isUtf8:D}=n(4573);const{collectASequenceOfCodePointsFast:k,removeHTTPWhitespace:L}=n(1900);function isConnecting(e){return e[o]===h.CONNECTING}function isEstablished(e){return e[o]===h.OPEN}function isClosing(e){return e[o]===h.CLOSING}function isClosed(e){return e[o]===h.CLOSED}function fireEvent(e,t,n=(e,t)=>new Event(e,t),o={}){const i=n(e,o);t.dispatchEvent(i)}function websocketMessageReceived(e,t,n){if(e[o]!==h.OPEN){return}let i;if(t===f.TEXT){try{i=V(n)}catch{failWebsocketConnection(e,"Received invalid UTF-8 in text frame.");return}}else if(t===f.BINARY){if(e[d]==="blob"){i=new Blob([n])}else{i=toArrayBuffer(n)}}fireEvent("message",e,P,{origin:e[m].origin,data:i})}function toArrayBuffer(e){if(e.byteLength===e.buffer.byteLength){return e.buffer}return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)}function isValidSubprotocol(e){if(e.length===0){return false}for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125){return false}}return true}function isValidStatusCode(e){if(e>=1e3&&e<1015){return e!==1004&&e!==1005&&e!==1006}return e>=3e3&&e<=4999}function failWebsocketConnection(e,t){const{[i]:n,[a]:o}=e;n.abort();if(o?.socket&&!o.socket.destroyed){o.socket.destroy()}if(t){fireEvent("error",e,((e,t)=>new C(e,t)),{error:new Error(t),message:t})}}function isControlFrame(e){return e===f.CLOSE||e===f.PING||e===f.PONG}function isContinuationFrame(e){return e===f.CONTINUATION}function isTextBinaryFrame(e){return e===f.TEXT||e===f.BINARY}function isValidOpcode(e){return isTextBinaryFrame(e)||isContinuationFrame(e)||isControlFrame(e)}function parseExtensions(e){const t={position:0};const n=new Map;while(t.position<e.length){const o=k(";",e,t);const[i,a=""]=o.split("=");n.set(L(i,true,false),L(a,false,true));t.position++}return n}function isValidClientWindowBits(e){if(e.length===0){return false}for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(n<48||n>57){return false}}const t=Number.parseInt(e,10);return t>=8&&t<=15}const F=typeof process.versions.icu==="string";const q=F?new TextDecoder("utf-8",{fatal:true}):undefined;const V=F?q.decode.bind(q):function(e){if(D(e)){return e.toString("utf-8")}throw new TypeError("Invalid utf-8 received.")};e.exports={isConnecting:isConnecting,isEstablished:isEstablished,isClosing:isClosing,isClosed:isClosed,fireEvent:fireEvent,isValidSubprotocol:isValidSubprotocol,isValidStatusCode:isValidStatusCode,failWebsocketConnection:failWebsocketConnection,websocketMessageReceived:websocketMessageReceived,utf8Decode:V,isControlFrame:isControlFrame,isContinuationFrame:isContinuationFrame,isTextBinaryFrame:isTextBinaryFrame,isValidOpcode:isValidOpcode,parseExtensions:parseExtensions,isValidClientWindowBits:isValidClientWindowBits}},3726:(e,t,n)=>{const{webidl:o}=n(5893);const{URLSerializer:i}=n(1900);const{environmentSettingsObject:a}=n(3168);const{staticPropertyDescriptors:d,states:m,sentCloseFrameState:h,sendHints:f}=n(736);const{kWebSocketURL:C,kReadyState:P,kController:D,kBinaryType:k,kResponse:L,kSentClose:F,kByteParser:q}=n(1216);const{isConnecting:V,isEstablished:ee,isClosing:te,isValidSubprotocol:re,fireEvent:ne}=n(8625);const{establishWebSocketConnection:se,closeWebSocketConnection:oe}=n(6897);const{ByteParser:ie}=n(1652);const{kEnumerableProperty:ae,isBlobLike:ce}=n(3440);const{getGlobalDispatcher:le}=n(2581);const{types:ue}=n(7975);const{ErrorEvent:de,CloseEvent:pe}=n(5188);const{SendQueue:Ae}=n(3900);class WebSocket extends EventTarget{#_={open:null,error:null,close:null,message:null};#ce=0;#le="";#ne="";#ue;constructor(e,t=[]){super();o.util.markAsUncloneable(this);const n="WebSocket constructor";o.argumentLengthCheck(arguments,1,n);const i=o.converters["DOMString or sequence<DOMString> or WebSocketInit"](t,n,"options");e=o.converters.USVString(e,n,"url");t=i.protocols;const d=a.settingsObject.baseUrl;let m;try{m=new URL(e,d)}catch(e){throw new DOMException(e,"SyntaxError")}if(m.protocol==="http:"){m.protocol="ws:"}else if(m.protocol==="https:"){m.protocol="wss:"}if(m.protocol!=="ws:"&&m.protocol!=="wss:"){throw new DOMException(`Expected a ws: or wss: protocol, got ${m.protocol}`,"SyntaxError")}if(m.hash||m.href.endsWith("#")){throw new DOMException("Got fragment","SyntaxError")}if(typeof t==="string"){t=[t]}if(t.length!==new Set(t.map((e=>e.toLowerCase()))).size){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}if(t.length>0&&!t.every((e=>re(e)))){throw new DOMException("Invalid Sec-WebSocket-Protocol value","SyntaxError")}this[C]=new URL(m.href);const f=a.settingsObject;this[D]=se(m,t,f,this,((e,t)=>this.#de(e,t)),i);this[P]=WebSocket.CONNECTING;this[F]=h.NOT_SENT;this[k]="blob"}close(e=undefined,t=undefined){o.brandCheck(this,WebSocket);const n="WebSocket.close";if(e!==undefined){e=o.converters["unsigned short"](e,n,"code",{clamp:true})}if(t!==undefined){t=o.converters.USVString(t,n,"reason")}if(e!==undefined){if(e!==1e3&&(e<3e3||e>4999)){throw new DOMException("invalid code","InvalidAccessError")}}let i=0;if(t!==undefined){i=Buffer.byteLength(t);if(i>123){throw new DOMException(`Reason must be less than 123 bytes; received ${i}`,"SyntaxError")}}oe(this,e,t,i)}send(e){o.brandCheck(this,WebSocket);const t="WebSocket.send";o.argumentLengthCheck(arguments,1,t);e=o.converters.WebSocketSendData(e,t,"data");if(V(this)){throw new DOMException("Sent before connected.","InvalidStateError")}if(!ee(this)||te(this)){return}if(typeof e==="string"){const t=Buffer.byteLength(e);this.#ce+=t;this.#ue.add(e,(()=>{this.#ce-=t}),f.string)}else if(ue.isArrayBuffer(e)){this.#ce+=e.byteLength;this.#ue.add(e,(()=>{this.#ce-=e.byteLength}),f.arrayBuffer)}else if(ArrayBuffer.isView(e)){this.#ce+=e.byteLength;this.#ue.add(e,(()=>{this.#ce-=e.byteLength}),f.typedArray)}else if(ce(e)){this.#ce+=e.size;this.#ue.add(e,(()=>{this.#ce-=e.size}),f.blob)}}get readyState(){o.brandCheck(this,WebSocket);return this[P]}get bufferedAmount(){o.brandCheck(this,WebSocket);return this.#ce}get url(){o.brandCheck(this,WebSocket);return i(this[C])}get extensions(){o.brandCheck(this,WebSocket);return this.#ne}get protocol(){o.brandCheck(this,WebSocket);return this.#le}get onopen(){o.brandCheck(this,WebSocket);return this.#_.open}set onopen(e){o.brandCheck(this,WebSocket);if(this.#_.open){this.removeEventListener("open",this.#_.open)}if(typeof e==="function"){this.#_.open=e;this.addEventListener("open",e)}else{this.#_.open=null}}get onerror(){o.brandCheck(this,WebSocket);return this.#_.error}set onerror(e){o.brandCheck(this,WebSocket);if(this.#_.error){this.removeEventListener("error",this.#_.error)}if(typeof e==="function"){this.#_.error=e;this.addEventListener("error",e)}else{this.#_.error=null}}get onclose(){o.brandCheck(this,WebSocket);return this.#_.close}set onclose(e){o.brandCheck(this,WebSocket);if(this.#_.close){this.removeEventListener("close",this.#_.close)}if(typeof e==="function"){this.#_.close=e;this.addEventListener("close",e)}else{this.#_.close=null}}get onmessage(){o.brandCheck(this,WebSocket);return this.#_.message}set onmessage(e){o.brandCheck(this,WebSocket);if(this.#_.message){this.removeEventListener("message",this.#_.message)}if(typeof e==="function"){this.#_.message=e;this.addEventListener("message",e)}else{this.#_.message=null}}get binaryType(){o.brandCheck(this,WebSocket);return this[k]}set binaryType(e){o.brandCheck(this,WebSocket);if(e!=="blob"&&e!=="arraybuffer"){this[k]="blob"}else{this[k]=e}}#de(e,t){this[L]=e;const n=new ie(this,t);n.on("drain",onParserDrain);n.on("error",onParserError.bind(this));e.socket.ws=this;this[q]=n;this.#ue=new Ae(e.socket);this[P]=m.OPEN;const o=e.headersList.get("sec-websocket-extensions");if(o!==null){this.#ne=o}const i=e.headersList.get("sec-websocket-protocol");if(i!==null){this.#le=i}ne("open",this)}}WebSocket.CONNECTING=WebSocket.prototype.CONNECTING=m.CONNECTING;WebSocket.OPEN=WebSocket.prototype.OPEN=m.OPEN;WebSocket.CLOSING=WebSocket.prototype.CLOSING=m.CLOSING;WebSocket.CLOSED=WebSocket.prototype.CLOSED=m.CLOSED;Object.defineProperties(WebSocket.prototype,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d,url:ae,readyState:ae,bufferedAmount:ae,onopen:ae,onerror:ae,onclose:ae,close:ae,onmessage:ae,binaryType:ae,send:ae,extensions:ae,protocol:ae,[Symbol.toStringTag]:{value:"WebSocket",writable:false,enumerable:false,configurable:true}});Object.defineProperties(WebSocket,{CONNECTING:d,OPEN:d,CLOSING:d,CLOSED:d});o.converters["sequence<DOMString>"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence<DOMString>"]=function(e,t,n){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence<DOMString>"](e)}return o.converters.DOMString(e,t,n)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence<DOMString>"],defaultValue:()=>new Array(0)},{key:"dispatcher",converter:o.converters.any,defaultValue:()=>le()},{key:"headers",converter:o.nullableConverter(o.converters.HeadersInit)}]);o.converters["DOMString or sequence<DOMString> or WebSocketInit"]=function(e){if(o.util.Type(e)==="Object"&&!(Symbol.iterator in e)){return o.converters.WebSocketInit(e)}return{protocols:o.converters["DOMString or sequence<DOMString>"](e)}};o.converters.WebSocketSendData=function(e){if(o.util.Type(e)==="Object"){if(ce(e)){return o.converters.Blob(e,{strict:false})}if(ArrayBuffer.isView(e)||ue.isArrayBuffer(e)){return o.converters.BufferSource(e)}}return o.converters.USVString(e)};function onParserDrain(){this.ws[L].socket.resume()}function onParserError(e){let t;let n;if(e instanceof pe){t=e.reason;n=e.code}else{t=e.message}ne("error",this,(()=>new de("error",{error:e,message:t})));oe(this,n)}e.exports={WebSocket:WebSocket}},2613:t=>{t.exports=e(import.meta.url)("assert")},181:t=>{t.exports=e(import.meta.url)("buffer")},6982:t=>{t.exports=e(import.meta.url)("crypto")},4434:t=>{t.exports=e(import.meta.url)("events")},9896:t=>{t.exports=e(import.meta.url)("fs")},1943:t=>{t.exports=e(import.meta.url)("fs/promises")},8611:t=>{t.exports=e(import.meta.url)("http")},5692:t=>{t.exports=e(import.meta.url)("https")},9278:t=>{t.exports=e(import.meta.url)("net")},4589:t=>{t.exports=e(import.meta.url)("node:assert")},6698:t=>{t.exports=e(import.meta.url)("node:async_hooks")},4573:t=>{t.exports=e(import.meta.url)("node:buffer")},1421:t=>{t.exports=e(import.meta.url)("node:child_process")},7540:t=>{t.exports=e(import.meta.url)("node:console")},7598:t=>{t.exports=e(import.meta.url)("node:crypto")},3053:t=>{t.exports=e(import.meta.url)("node:diagnostics_channel")},610:t=>{t.exports=e(import.meta.url)("node:dns")},8474:t=>{t.exports=e(import.meta.url)("node:events")},3024:t=>{t.exports=e(import.meta.url)("node:fs")},1455:t=>{t.exports=e(import.meta.url)("node:fs/promises")},7067:t=>{t.exports=e(import.meta.url)("node:http")},2467:t=>{t.exports=e(import.meta.url)("node:http2")},4708:t=>{t.exports=e(import.meta.url)("node:https")},7030:t=>{t.exports=e(import.meta.url)("node:net")},8161:t=>{t.exports=e(import.meta.url)("node:os")},6760:t=>{t.exports=e(import.meta.url)("node:path")},643:t=>{t.exports=e(import.meta.url)("node:perf_hooks")},1708:t=>{t.exports=e(import.meta.url)("node:process")},1792:t=>{t.exports=e(import.meta.url)("node:querystring")},7075:t=>{t.exports=e(import.meta.url)("node:stream")},1692:t=>{t.exports=e(import.meta.url)("node:tls")},3136:t=>{t.exports=e(import.meta.url)("node:url")},7975:t=>{t.exports=e(import.meta.url)("node:util")},3429:t=>{t.exports=e(import.meta.url)("node:util/types")},5919:t=>{t.exports=e(import.meta.url)("node:worker_threads")},8522:t=>{t.exports=e(import.meta.url)("node:zlib")},857:t=>{t.exports=e(import.meta.url)("os")},6928:t=>{t.exports=e(import.meta.url)("path")},2203:t=>{t.exports=e(import.meta.url)("stream")},3193:t=>{t.exports=e(import.meta.url)("string_decoder")},4756:t=>{t.exports=e(import.meta.url)("tls")},2018:t=>{t.exports=e(import.meta.url)("tty")},7016:t=>{t.exports=e(import.meta.url)("url")},9023:t=>{t.exports=e(import.meta.url)("util")},3345:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={operationRequestMap:new WeakMap}},8914:(e,t)=>{var n;n={value:true};t.w=void 0;t.w={instrumenterImplementation:undefined}},1120:e=>{var t;const n=function NullObject(){};n.prototype=Object.create(null);const o=/; *([!#$%&'*+.^\w`|~-]+)=("(?:[\v\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\v\u0020-\u00ff])*"|[!#$%&'*+.^\w`|~-]+) */gu;const i=/\\([\v\u0020-\u00ff])/gu;const a=/^[!#$%&'*+.^\w|~-]+\/[!#$%&'*+.^\w|~-]+$/u;const d={type:"",parameters:new n};Object.freeze(d.parameters);Object.freeze(d);function parse(e){if(typeof e!=="string"){throw new TypeError("argument header is required and must be a string")}let t=e.indexOf(";");const d=t!==-1?e.slice(0,t).trim():e.trim();if(a.test(d)===false){throw new TypeError("invalid media type")}const m={type:d.toLowerCase(),parameters:new n};if(t===-1){return m}let h;let f;let C;o.lastIndex=t;while(f=o.exec(e)){if(f.index!==t){throw new TypeError("invalid parameter format")}t+=f[0].length;h=f[1].toLowerCase();C=f[2];if(C[0]==='"'){C=C.slice(1,C.length-1);i.test(C)&&(C=C.replace(i,"$1"))}m.parameters[h]=C}if(t!==e.length){throw new TypeError("invalid parameter format")}return m}function safeParse(e){if(typeof e!=="string"){return d}let t=e.indexOf(";");const m=t!==-1?e.slice(0,t).trim():e.trim();if(a.test(m)===false){return d}const h={type:m.toLowerCase(),parameters:new n};if(t===-1){return h}let f;let C;let P;o.lastIndex=t;while(C=o.exec(e)){if(C.index!==t){return d}t+=C[0].length;f=C[1].toLowerCase();P=C[2];if(P[0]==='"'){P=P.slice(1,P.length-1);i.test(P)&&(P=P.replace(i,"$1"))}h.parameters[f]=P}if(t!==e.length){return d}return h}t={parse:parse,safeParse:safeParse};t=parse;e.exports.xL=safeParse;t=d},8658:(e,t,n)=>{const o=n(4012);e.exports={version:o.version}},591:e=>{(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};t.r(n),t.d(n,{XMLBuilder:()=>ne,XMLParser:()=>gt,XMLValidator:()=>se});const o=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i=new RegExp("^["+o+"]["+o+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function s(e,t){const n=[];let o=t.exec(e);for(;o;){const i=[];i.startIndex=t.lastIndex-o[0].length;const a=o.length;for(let e=0;e<a;e++)i.push(o[e]);n.push(i),o=t.exec(e)}return n}const r=function(e){return!(null==i.exec(e))},a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],d=["__proto__","constructor","prototype"],m={allowBooleanAttributes:!1,unpairedTags:[]};function l(e,t){t=Object.assign({},m,t);const n=[];let o=!1,i=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let a=0;a<e.length;a++)if("<"===e[a]&&"?"===e[a+1]){if(a+=2,a=u(e,a),a.err)return a}else{if("<"!==e[a]){if(p(e[a]))continue;return b("InvalidChar","char '"+e[a]+"' is not expected.",w(e,a))}{let d=a;if(a++,"!"===e[a]){a=c(e,a);continue}{let m=!1;"/"===e[a]&&(m=!0,a++);let h="";for(;a<e.length&&">"!==e[a]&&" "!==e[a]&&"\t"!==e[a]&&"\n"!==e[a]&&"\r"!==e[a];a++)h+=e[a];if(h=h.trim(),"/"===h[h.length-1]&&(h=h.substring(0,h.length-1),a--),!y(h)){let t;return t=0===h.trim().length?"Invalid space after '<'.":"Tag '"+h+"' is an invalid name.",b("InvalidTag",t,w(e,a))}const f=g(e,a);if(!1===f)return b("InvalidAttr","Attributes for '"+h+"' have open quote.",w(e,a));let C=f.value;if(a=f.index,"/"===C[C.length-1]){const n=a-C.length;C=C.substring(0,C.length-1);const i=x(C,t);if(!0!==i)return b(i.err.code,i.err.msg,w(e,n+i.err.line));o=!0}else if(m){if(!f.tagClosed)return b("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",w(e,a));if(C.trim().length>0)return b("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",w(e,d));if(0===n.length)return b("InvalidTag","Closing tag '"+h+"' has not been opened.",w(e,d));{const t=n.pop();if(h!==t.tagName){let n=w(e,t.tagStartPos);return b("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+h+"'.",w(e,d))}0==n.length&&(i=!0)}}else{const m=x(C,t);if(!0!==m)return b(m.err.code,m.err.msg,w(e,a-C.length+m.err.line));if(!0===i)return b("InvalidXml","Multiple possible root nodes found.",w(e,a));-1!==t.unpairedTags.indexOf(h)||n.push({tagName:h,tagStartPos:d}),o=!0}for(a++;a<e.length;a++)if("<"===e[a]){if("!"===e[a+1]){a++,a=c(e,a);continue}if("?"!==e[a+1])break;if(a=u(e,++a),a.err)return a}else if("&"===e[a]){const t=N(e,a);if(-1==t)return b("InvalidChar","char '&' is not expected.",w(e,a));a=t}else if(!0===i&&!p(e[a]))return b("InvalidXml","Extra text at the end",w(e,a));"<"===e[a]&&a--}}}return o?1==n.length?b("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",w(e,n[0].tagStartPos)):!(n.length>0)||b("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):b("InvalidXml","Start tag expected.",1)}function p(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function u(e,t){const n=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const o=e.substr(n,t-n);if(t>5&&"xml"===o)return b("InvalidXml","XML declaration allowed only at the start of the document.",w(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function c(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let n=1;for(t+=8;t<e.length;t++)if("<"===e[t])n++;else if(">"===e[t]&&(n--,0===n))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}const h='"',f="'";function g(e,t){let n="",o="",i=!1;for(;t<e.length;t++){if(e[t]===h||e[t]===f)""===o?o=e[t]:o!==e[t]||(o="");else if(">"===e[t]&&""===o){i=!0;break}n+=e[t]}return""===o&&{value:n,index:t,tagClosed:i}}const C=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function x(e,t){const n=s(e,C),o={};for(let e=0;e<n.length;e++){if(0===n[e][1].length)return b("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",v(n[e]));if(void 0!==n[e][3]&&void 0===n[e][4])return b("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",v(n[e]));if(void 0===n[e][3]&&!t.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",v(n[e]));const i=n[e][2];if(!E(i))return b("InvalidAttr","Attribute '"+i+"' is an invalid name.",v(n[e]));if(Object.prototype.hasOwnProperty.call(o,i))return b("InvalidAttr","Attribute '"+i+"' is repeated.",v(n[e]));o[i]=1}return!0}function N(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let n=/\d/;for("x"===e[t]&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(n))break}return-1}(e,++t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(";"===e[t])break;return-1}return t}function b(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function E(e){return r(e)}function y(e){return r(e)}function w(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function v(e){return e.startIndex+e[1].length}const T=e=>a.includes(e)?"__"+e:e,P={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:T};function S(e,t){if("string"!=typeof e)return;const n=e.toLowerCase();if(a.some((e=>n===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);if(d.some((e=>n===e.toLowerCase())))throw new Error(`[SECURITY] Invalid ${t}: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`)}function A(e){return"boolean"==typeof e?{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:"object"==typeof e&&null!==e?{enabled:!1!==e.enabled,maxEntitySize:Math.max(1,e.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,e.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,e.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,e.maxExpandedLength??1e5),maxEntityCount:Math.max(1,e.maxEntityCount??100),allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}:A(!0)}const O=function(e){const t=Object.assign({},P,e),n=[{value:t.attributeNamePrefix,name:"attributeNamePrefix"},{value:t.attributesGroupName,name:"attributesGroupName"},{value:t.textNodeName,name:"textNodeName"},{value:t.cdataPropName,name:"cdataPropName"},{value:t.commentPropName,name:"commentPropName"}];for(const{value:e,name:t}of n)e&&S(e,t);return null===t.onDangerousProperty&&(t.onDangerousProperty=T),t.processEntities=A(t.processEntities),t.stopNodes&&Array.isArray(t.stopNodes)&&(t.stopNodes=t.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),t};let D;D="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class ${constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][D]={startIndex:t})}static getMetaDataSymbol(){return D}}class I{constructor(e){this.suppressValidationErr=!e,this.options=e}readDocType(e,t){const n=Object.create(null);let o=0;if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let i=1,a=!1,d=!1,m="";for(;t<e.length;t++)if("<"!==e[t]||d)if(">"===e[t]){if(d?"-"===e[t-1]&&"-"===e[t-2]&&(d=!1,i--):i--,0===i)break}else"["===e[t]?a=!0:m+=e[t];else{if(a&&M(e,"!ENTITY",t)){let i,a;if(t+=7,[i,a,t]=this.readEntityExp(e,t+1,this.suppressValidationErr),-1===a.indexOf("&")){if(!1!==this.options.enabled&&null!=this.options.maxEntityCount&&o>=this.options.maxEntityCount)throw new Error(`Entity count (${o+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);const e=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");n[i]={regx:RegExp(`&${e};`,"g"),val:a},o++}}else if(a&&M(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(a&&M(e,"!ATTLIST",t))t+=8;else if(a&&M(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else{if(!M(e,"!--",t))throw new Error("Invalid DOCTYPE");d=!0}i++,m=""}if(0!==i)throw new Error("Unclosed DOCTYPE")}return{entities:n,i:t}}readEntityExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)t++;let o=e.substring(n,t);if(_(o),t=j(e,t),!this.suppressValidationErr){if("SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported")}let i="";if([t,i]=this.readIdentifierVal(e,t,"entity"),!1!==this.options.enabled&&null!=this.options.maxEntitySize&&i.length>this.options.maxEntitySize)throw new Error(`Entity "${o}" size (${i.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[o,i,--t]}readNotationExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);!this.suppressValidationErr&&_(o),t=j(e,t);const i=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&"SYSTEM"!==i&&"PUBLIC"!==i)throw new Error(`Expected SYSTEM or PUBLIC, found "${i}"`);t+=i.length,t=j(e,t);let a=null,d=null;if("PUBLIC"===i)[t,a]=this.readIdentifierVal(e,t,"publicIdentifier"),'"'!==e[t=j(e,t)]&&"'"!==e[t]||([t,d]=this.readIdentifierVal(e,t,"systemIdentifier"));else if("SYSTEM"===i&&([t,d]=this.readIdentifierVal(e,t,"systemIdentifier"),!this.suppressValidationErr&&!d))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:o,publicIdentifier:a,systemIdentifier:d,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if('"'!==i&&"'"!==i)throw new Error(`Expected quoted string, found "${i}"`);const a=++t;for(;t<e.length&&e[t]!==i;)t++;if(o=e.substring(a,t),e[t]!==i)throw new Error(`Unterminated ${n} value`);return[++t,o]}readElementExp(e,t){const n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);if(!this.suppressValidationErr&&!r(o))throw new Error(`Invalid element name: "${o}"`);let i="";if("E"===e[t=j(e,t)]&&M(e,"MPTY",t))t+=4;else if("A"===e[t]&&M(e,"NY",t))t+=2;else if("("===e[t]){const n=++t;for(;t<e.length&&")"!==e[t];)t++;if(i=e.substring(n,t),")"!==e[t])throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:o,contentModel:i.trim(),index:t}}readAttlistExp(e,t){let n=t=j(e,t);for(;t<e.length&&!/\s/.test(e[t]);)t++;let o=e.substring(n,t);for(_(o),n=t=j(e,t);t<e.length&&!/\s/.test(e[t]);)t++;let i=e.substring(n,t);if(!_(i))throw new Error(`Invalid attribute name: "${i}"`);t=j(e,t);let a="";if("NOTATION"===e.substring(t,t+8).toUpperCase()){if(a="NOTATION","("!==e[t=j(e,t+=8)])throw new Error(`Expected '(', found "${e[t]}"`);t++;let n=[];for(;t<e.length&&")"!==e[t];){const o=t;for(;t<e.length&&"|"!==e[t]&&")"!==e[t];)t++;let i=e.substring(o,t);if(i=i.trim(),!_(i))throw new Error(`Invalid notation name: "${i}"`);n.push(i),"|"===e[t]&&(t++,t=j(e,t))}if(")"!==e[t])throw new Error("Unterminated list of notations");t++,a+=" ("+n.join("|")+")"}else{const n=t;for(;t<e.length&&!/\s/.test(e[t]);)t++;a+=e.substring(n,t);const o=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!o.includes(a.toUpperCase()))throw new Error(`Invalid attribute type: "${a}"`)}t=j(e,t);let d="";return"#REQUIRED"===e.substring(t,t+8).toUpperCase()?(d="#REQUIRED",t+=8):"#IMPLIED"===e.substring(t,t+7).toUpperCase()?(d="#IMPLIED",t+=7):[t,d]=this.readIdentifierVal(e,t,"ATTLIST"),{elementName:o,attributeName:i,attributeType:a,defaultValue:d,index:t}}}const j=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function M(e,t,n){for(let o=0;o<t.length;o++)if(t[o]!==e[n+o+1])return!1;return!0}function _(e){if(r(e))return e;throw new Error(`Invalid entity name ${e}`)}const k=/^[-+]?0x[a-fA-F0-9]+$/,L=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,F={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"};const q=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/,V=new Set(["push","pop","reset","updateCurrent","restore"]);class G{constructor(e={}){this.separator=e.separator||".",this.path=[],this.siblingStacks=[]}push(e,t=null,n=null){this.path.length>0&&(this.path[this.path.length-1].values=void 0);const o=this.path.length;this.siblingStacks[o]||(this.siblingStacks[o]=new Map);const i=this.siblingStacks[o],a=n?`${n}:${e}`:e,d=i.get(a)||0;let m=0;for(const e of i.values())m+=e;i.set(a,d+1);const h={tag:e,position:m,counter:d};null!=n&&(h.namespace=n),null!=t&&(h.values=t),this.path.push(h)}pop(){if(0===this.path.length)return;const e=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),e}updateCurrent(e){if(this.path.length>0){const t=this.path[this.path.length-1];null!=e&&(t.values=e)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(e){if(0===this.path.length)return;const t=this.path[this.path.length-1];return t.values?.[e]}hasAttr(e){if(0===this.path.length)return!1;const t=this.path[this.path.length-1];return void 0!==t.values&&e in t.values}getPosition(){return 0===this.path.length?-1:this.path[this.path.length-1].position??0}getCounter(){return 0===this.path.length?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(e,t=!0){const n=e||this.separator;return this.path.map((e=>t&&e.namespace?`${e.namespace}:${e.tag}`:e.tag)).join(n)}toArray(){return this.path.map((e=>e.tag))}reset(){this.path=[],this.siblingStacks=[]}matches(e){const t=e.segments;return 0!==t.length&&(e.hasDeepWildcard()?this._matchWithDeepWildcard(t):this._matchSimple(t))}_matchSimple(e){if(this.path.length!==e.length)return!1;for(let t=0;t<e.length;t++){const n=e[t],o=this.path[t],i=t===this.path.length-1;if(!this._matchSegment(n,o,i))return!1}return!0}_matchWithDeepWildcard(e){let t=this.path.length-1,n=e.length-1;for(;n>=0&&t>=0;){const o=e[n];if("deep-wildcard"===o.type){if(n--,n<0)return!0;const o=e[n];let i=!1;for(let e=t;e>=0;e--){const a=e===this.path.length-1;if(this._matchSegment(o,this.path[e],a)){t=e-1,n--,i=!0;break}}if(!i)return!1}else{const e=t===this.path.length-1;if(!this._matchSegment(o,this.path[t],e))return!1;t--,n--}}return n<0}_matchSegment(e,t,n){if("*"!==e.tag&&e.tag!==t.tag)return!1;if(void 0!==e.namespace&&"*"!==e.namespace&&e.namespace!==t.namespace)return!1;if(void 0!==e.attrName){if(!n)return!1;if(!t.values||!(e.attrName in t.values))return!1;if(void 0!==e.attrValue){const n=t.values[e.attrName];if(String(n)!==String(e.attrValue))return!1}}if(void 0!==e.position){if(!n)return!1;const o=t.counter??0;if("first"===e.position&&0!==o)return!1;if("odd"===e.position&&o%2!=1)return!1;if("even"===e.position&&o%2!=0)return!1;if("nth"===e.position&&o!==e.positionValue)return!1}return!0}snapshot(){return{path:this.path.map((e=>({...e}))),siblingStacks:this.siblingStacks.map((e=>new Map(e)))}}restore(e){this.path=e.path.map((e=>({...e}))),this.siblingStacks=e.siblingStacks.map((e=>new Map(e)))}readOnly(){return new Proxy(this,{get(e,t,n){if(V.has(t))return()=>{throw new TypeError(`Cannot call '${t}' on a read-only Matcher. Obtain a writable instance to mutate state.`)};const o=Reflect.get(e,t,n);return"path"===t||"siblingStacks"===t?Object.freeze(Array.isArray(o)?o.map((e=>e instanceof Map?Object.freeze(new Map(e)):Object.freeze({...e}))):o):"function"==typeof o?o.bind(e):o},set(e,t){throw new TypeError(`Cannot set property '${String(t)}' on a read-only Matcher.`)},deleteProperty(e,t){throw new TypeError(`Cannot delete property '${String(t)}' from a read-only Matcher.`)}})}}class R{constructor(e,t={}){this.pattern=e,this.separator=t.separator||".",this.segments=this._parse(e),this._hasDeepWildcard=this.segments.some((e=>"deep-wildcard"===e.type)),this._hasAttributeCondition=this.segments.some((e=>void 0!==e.attrName)),this._hasPositionSelector=this.segments.some((e=>void 0!==e.position))}_parse(e){const t=[];let n=0,o="";for(;n<e.length;)e[n]===this.separator?n+1<e.length&&e[n+1]===this.separator?(o.trim()&&(t.push(this._parseSegment(o.trim())),o=""),t.push({type:"deep-wildcard"}),n+=2):(o.trim()&&t.push(this._parseSegment(o.trim())),o="",n++):(o+=e[n],n++);return o.trim()&&t.push(this._parseSegment(o.trim())),t}_parseSegment(e){const t={type:"tag"};let n=null,o=e;const i=e.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(i&&(o=i[1]+i[3],i[2])){const e=i[2].slice(1,-1);e&&(n=e)}let a,d,m=o;if(o.includes("::")){const t=o.indexOf("::");if(a=o.substring(0,t).trim(),m=o.substring(t+2).trim(),!a)throw new Error(`Invalid namespace in pattern: ${e}`)}let h=null;if(m.includes(":")){const e=m.lastIndexOf(":"),t=m.substring(0,e).trim(),n=m.substring(e+1).trim();["first","last","odd","even"].includes(n)||/^nth\(\d+\)$/.test(n)?(d=t,h=n):d=m}else d=m;if(!d)throw new Error(`Invalid segment pattern: ${e}`);if(t.tag=d,a&&(t.namespace=a),n)if(n.includes("=")){const e=n.indexOf("=");t.attrName=n.substring(0,e).trim(),t.attrValue=n.substring(e+1).trim()}else t.attrName=n.trim();if(h){const e=h.match(/^nth\((\d+)\)$/);e?(t.position="nth",t.positionValue=parseInt(e[1],10)):t.position=h}return t}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}function U(e,t){if(!e)return{};const n=t.attributesGroupName?e[t.attributesGroupName]:e;if(!n)return{};const o={};for(const e in n)e.startsWith(t.attributeNamePrefix)?o[e.substring(t.attributeNamePrefix.length)]=n[e]:o[e]=n[e];return o}function B(e){if(!e||"string"!=typeof e)return;const t=e.indexOf(":");if(-1!==t&&t>0){const n=e.substring(0,t);if("xmlns"!==n)return n}}class W{constructor(e){var t;if(this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>rt(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>rt(t,16,"&#x")}},this.addExternalEntities=Y,this.parseXml=J,this.parseTextData=z,this.resolveNameSpace=X,this.buildAttributesMap=Z,this.isItStopNode=tt,this.replaceEntitiesValue=Q,this.readStopNodeData=nt,this.saveTextToParentTag=H,this.addChild=K,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0,this.matcher=new G,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodeExpressions=[];for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new R(t)):t instanceof R&&this.stopNodeExpressions.push(t)}}}}function Y(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n],i=o.replace(/[.\-+*:]/g,"\\.");this.lastEntities[o]={regex:new RegExp("&"+i+";","g"),val:e[o]}}}function z(e,t,n,o,i,a,d){if(void 0!==e&&(this.options.trimValues&&!o&&(e=e.trim()),e.length>0)){d||(e=this.replaceEntitiesValue(e,t,n));const o=this.options.jPath?n.toString():n,m=this.options.tagValueProcessor(t,e,o,i,a);return null==m?e:typeof m!=typeof e||m!==e?m:this.options.trimValues||e.trim()===e?st(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function X(e){if(this.options.removeNSPrefix){const t=e.split(":"),n="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=n+t[1])}return e}const ee=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function Z(e,t,n){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const o=s(e,ee),i=o.length,a={},d={};for(let e=0;e<i;e++){const t=this.resolveNameSpace(o[e][1]),i=o[e][4];if(t.length&&void 0!==i){let e=i;this.options.trimValues&&(e=e.trim()),e=this.replaceEntitiesValue(e,n,this.readonlyMatcher),d[t]=e}}Object.keys(d).length>0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(d);for(let e=0;e<i;e++){const i=this.resolveNameSpace(o[e][1]),d=this.options.jPath?t.toString():this.readonlyMatcher;if(this.ignoreAttributesFn(i,d))continue;let m=o[e][4],h=this.options.attributeNamePrefix+i;if(i.length)if(this.options.transformAttributeName&&(h=this.options.transformAttributeName(h)),h=at(h,this.options),void 0!==m){this.options.trimValues&&(m=m.trim()),m=this.replaceEntitiesValue(m,n,this.readonlyMatcher);const e=this.options.jPath?t.toString():this.readonlyMatcher,o=this.options.attributeValueProcessor(i,m,e);a[h]=null==o?m:typeof o!=typeof m||o!==m?o:st(m,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[h]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=a,e}return a}}const J=function(e){e=e.replace(/\r\n?/g,"\n");const t=new $("!xml");let n=t,o="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;const i=new I(this.options.processEntities);for(let a=0;a<e.length;a++)if("<"===e[a])if("/"===e[a+1]){const t=et(e,">",a,"Closing Tag is not closed.");let i=e.substring(a+2,t).trim();if(this.options.removeNSPrefix){const e=i.indexOf(":");-1!==e&&(i=i.substr(e+1))}i=ot(this.options.transformTagName,i,"",this.options).tagName,n&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher));const d=this.matcher.getCurrentTag();if(i&&-1!==this.options.unpairedTags.indexOf(i))throw new Error(`Unpaired tag can not be used as closing tag: </${i}>`);d&&-1!==this.options.unpairedTags.indexOf(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,n=this.tagsNodeStack.pop(),o="",a=t}else if("?"===e[a+1]){let t=it(e,a,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(o=this.saveTextToParentTag(o,n,this.readonlyMatcher),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new $(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,this.matcher,t.tagName)),this.addChild(n,e,this.readonlyMatcher,a)}a=t.closeIndex+1}else if("!--"===e.substr(a+1,3)){const t=et(e,"--\x3e",a+4,"Comment is not closed.");if(this.options.commentPropName){const i=e.substring(a+4,t-2);o=this.saveTextToParentTag(o,n,this.readonlyMatcher),n.add(this.options.commentPropName,[{[this.options.textNodeName]:i}])}a=t}else if("!D"===e.substr(a+1,2)){const t=i.readDocType(e,a);this.docTypeEntities=t.entities,a=t.i}else if("!["===e.substr(a+1,2)){const t=et(e,"]]>",a,"CDATA is not closed.")-2,i=e.substring(a+9,t);o=this.saveTextToParentTag(o,n,this.readonlyMatcher);let d=this.parseTextData(i,n.tagname,this.readonlyMatcher,!0,!1,!0,!0);null==d&&(d=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:i}]):n.add(this.options.textNodeName,d),a=t+2}else{let i=it(e,a,this.options.removeNSPrefix);if(!i){const t=e.substring(Math.max(0,a-50),Math.min(e.length,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${t}"`)}let d=i.tagName;const m=i.rawTagName;let h=i.tagExp,f=i.attrExpPresent,C=i.closeIndex;if(({tagName:d,tagExp:h}=ot(this.options.transformTagName,d,h,this.options)),this.options.strictReservedNames&&(d===this.options.commentPropName||d===this.options.cdataPropName||d===this.options.textNodeName||d===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);n&&o&&"!xml"!==n.tagname&&(o=this.saveTextToParentTag(o,n,this.readonlyMatcher,!1));const P=n;P&&-1!==this.options.unpairedTags.indexOf(P.tagname)&&(n=this.tagsNodeStack.pop(),this.matcher.pop());let D=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(D=!0,"/"===d[d.length-1]?(d=d.substr(0,d.length-1),h=d):h=h.substr(0,h.length-1),f=d!==h);let k,L=null,F={};k=B(m),d!==t.tagname&&this.matcher.push(d,{},k),d!==h&&f&&(L=this.buildAttributesMap(h,this.matcher,d),L&&(F=U(L,this.options))),d!==t.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));const q=a;if(this.isCurrentNodeStopNode){let t="";if(D)a=i.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(d))a=i.closeIndex;else{const n=this.readStopNodeData(e,m,C+1);if(!n)throw new Error(`Unexpected end of ${m}`);a=n.i,t=n.tagContent}const o=new $(d);L&&(o[":@"]=L),o.add(this.options.textNodeName,t),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(n,o,this.readonlyMatcher,q)}else{if(D){({tagName:d,tagExp:h}=ot(this.options.transformTagName,d,h,this.options));const e=new $(d);L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(-1!==this.options.unpairedTags.indexOf(d)){const e=new $(d);L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=i.closeIndex;continue}{const e=new $(d);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(n),L&&(e[":@"]=L),this.addChild(n,e,this.readonlyMatcher,q),n=e}}o="",a=C}}else o+=e[a];return t.child};function K(e,t,n,o){this.options.captureMetaData||(o=void 0);const i=this.options.jPath?n.toString():n,a=this.options.updateTag(t.tagname,i,t[":@"]);!1===a||("string"==typeof a?(t.tagname=a,e.addChild(t,o)):e.addChild(t,o))}function Q(e,t,n){const o=this.options.processEntities;if(!o||!o.enabled)return e;if(o.allowedTags){const i=this.options.jPath?n.toString():n;if(!(Array.isArray(o.allowedTags)?o.allowedTags.includes(t):o.allowedTags(t,i)))return e}if(o.tagFilter){const i=this.options.jPath?n.toString():n;if(!o.tagFilter(t,i))return e}for(const t of Object.keys(this.docTypeEntities)){const n=this.docTypeEntities[t],i=e.match(n.regx);if(i){if(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);const t=e.length;if(e=e.replace(n.regx,n.val),o.maxExpandedLength&&(this.currentExpandedLength+=e.length-t,this.currentExpandedLength>o.maxExpandedLength))throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${o.maxExpandedLength}`)}}for(const t of Object.keys(this.lastEntities)){const n=this.lastEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}if(-1===e.indexOf("&"))return e;if(this.options.htmlEntities)for(const t of Object.keys(this.htmlEntities)){const n=this.htmlEntities[t],i=e.match(n.regex);if(i&&(this.entityExpansionCount+=i.length,o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions))throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`);e=e.replace(n.regex,n.val)}return e.replace(this.ampEntity.regex,this.ampEntity.val)}function H(e,t,n,o){return e&&(void 0===o&&(o=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,n,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,o))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function tt(e,t){if(!e||0===e.length)return!1;for(let n=0;n<e.length;n++)if(t.matches(e[n]))return!0;return!1}function et(e,t,n,o){const i=e.indexOf(t,n);if(-1===i)throw new Error(o);return i+t.length-1}function it(e,t,n,o=">"){const i=function(e,t,n=">"){let o,i="";for(let a=t;a<e.length;a++){let t=e[a];if(o)t===o&&(o="");else if('"'===t||"'"===t)o=t;else if(t===n[0]){if(!n[1])return{data:i,index:a};if(e[a+1]===n[1])return{data:i,index:a}}else"\t"===t&&(t=" ");i+=t}}(e,t+1,o);if(!i)return;let a=i.data;const d=i.index,m=a.search(/\s/);let h=a,f=!0;-1!==m&&(h=a.substring(0,m),a=a.substring(m+1).trimStart());const C=h;if(n){const e=h.indexOf(":");-1!==e&&(h=h.substr(e+1),f=h!==i.data.substr(e+1))}return{tagName:h,tagExp:a,closeIndex:d,attrExpPresent:f,rawTagName:C}}function nt(e,t,n){const o=n;let i=1;for(;n<e.length;n++)if("<"===e[n])if("/"===e[n+1]){const a=et(e,">",n,`${t} is not closed`);if(e.substring(n+2,a).trim()===t&&(i--,0===i))return{tagContent:e.substring(o,n),i:a};n=a}else if("?"===e[n+1])n=et(e,"?>",n+1,"StopNode is not closed.");else if("!--"===e.substr(n+1,3))n=et(e,"--\x3e",n+3,"StopNode is not closed.");else if("!["===e.substr(n+1,2))n=et(e,"]]>",n,"StopNode is not closed.")-2;else{const o=it(e,n,">");o&&((o&&o.tagName)===t&&"/"!==o.tagExp[o.tagExp.length-1]&&i++,n=o.closeIndex)}}function st(e,t,n){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},F,t),!e||"string"!=typeof e)return e;let n=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(n))return e;if("0"===e)return 0;if(t.hex&&k.test(n))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(n);if(isFinite(n)){if(n.includes("e")||n.includes("E"))return function(e,t,n){if(!n.eNotation)return e;const o=t.match(q);if(o){let i=o[1]||"";const a=-1===o[3].indexOf("e")?"E":"e",d=o[2],m=i?e[d.length+1]===a:e[d.length]===a;return d.length>1&&m?e:(1!==d.length||!o[3].startsWith(`.${a}`)&&o[3][0]!==a)&&d.length>0?n.leadingZeros&&!m?(t=(o[1]||"")+o[3],Number(t)):e:Number(t)}return e}(e,n,t);{const i=L.exec(n);if(i){const a=i[1]||"",d=i[2];let m=(o=i[3])&&-1!==o.indexOf(".")?("."===(o=o.replace(/0+$/,""))?o="0":"."===o[0]?o="0"+o:"."===o[o.length-1]&&(o=o.substring(0,o.length-1)),o):o;const h=a?"."===e[d.length+1]:"."===e[d.length];if(!t.leadingZeros&&(d.length>1||1===d.length&&!h))return e;{const o=Number(n),i=String(o);if(0===o)return o;if(-1!==i.search(/[eE]/))return t.eNotation?o:e;if(-1!==n.indexOf("."))return"0"===i||i===m||i===`${a}${m}`?o:e;let h=d?m:n;return d?h===i||a+h===i?o:e:h===i||h===a+i?o:e}}return e}}var o;return function(e,t,n){const o=t===1/0;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return o?"Infinity":"-Infinity";default:return e}}(e,Number(n),t)}(e,n)}return void 0!==e?e:""}function rt(e,t,n){const o=Number.parseInt(e,t);return o>=0&&o<=1114111?String.fromCodePoint(o):n+e+";"}function ot(e,t,n,o){if(e){const o=e(t);n===t&&(n=o),t=o}return{tagName:t=at(t,o),tagExp:n}}function at(e,t){if(d.includes(e))throw new Error(`[SECURITY] Invalid name: "${e}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(e)?t.onDangerousProperty(e):e}const te=$.getMetaDataSymbol();function lt(e,t){if(!e||"object"!=typeof e)return{};if(!t)return e;const n={};for(const o in e)o.startsWith(t)?n[o.substring(t.length)]=e[o]:n[o]=e[o];return n}function pt(e,t,n,o){return ut(e,t,n,o)}function ut(e,t,n,o){let i;const a={};for(let d=0;d<e.length;d++){const m=e[d],h=ct(m);if(void 0!==h&&h!==t.textNodeName){const e=lt(m[":@"]||{},t.attributeNamePrefix);n.push(h,e)}if(h===t.textNodeName)void 0===i?i=m[h]:i+=""+m[h];else{if(void 0===h)continue;if(m[h]){let e=ut(m[h],t,n,o);const i=ft(e,t);if(m[":@"]?dt(e,m[":@"],o,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==m[te]&&"object"==typeof e&&null!==e&&(e[te]=m[te]),void 0!==a[h]&&Object.prototype.hasOwnProperty.call(a,h))Array.isArray(a[h])||(a[h]=[a[h]]),a[h].push(e);else{const n=t.jPath?o.toString():o;t.isArray(h,n,i)?a[h]=[e]:a[h]=e}void 0!==h&&h!==t.textNodeName&&n.pop()}}}return"string"==typeof i?i.length>0&&(a[t.textNodeName]=i):void 0!==i&&(a[t.textNodeName]=i),a}function ct(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(":@"!==n)return n}}function dt(e,t,n,o){if(t){const i=Object.keys(t),a=i.length;for(let d=0;d<a;d++){const a=i[d],m=a.startsWith(o.attributeNamePrefix)?a.substring(o.attributeNamePrefix.length):a,h=o.jPath?n.toString()+"."+m:n;o.isArray(a,h,!0,!0)?e[a]=[t[a]]:e[a]=t[a]}}}function ft(e,t){const{textNodeName:n}=t,o=Object.keys(e).length;return 0===o||!(1!==o||!e[n]&&"boolean"!=typeof e[n]&&0!==e[n])}class gt{constructor(e){this.externalEntities={},this.options=O(e)}parse(e,t){if("string"!=typeof e&&e.toString)e=e.toString();else if("string"!=typeof e)throw new Error("XML data is accepted in String or Bytes[] form.");if(t){!0===t&&(t={});const n=l(e,t);if(!0!==n)throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}const n=new W(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);return this.options.preserveOrder||void 0===o?o:pt(o,this.options,n.matcher,n.readonlyMatcher)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return $.getMetaDataSymbol()}}function mt(e,t){let n="";t.format&&t.indentBy.length>0&&(n="\n");const o=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;e<t.stopNodes.length;e++){const n=t.stopNodes[e];"string"==typeof n?o.push(new R(n)):n instanceof R&&o.push(n)}return xt(e,t,n,new G,o)}function xt(e,t,n,o,i){let a="",d=!1;if(t.maxNestedTags&&o.getDepth()>t.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(e)){if(null!=e){let n=e.toString();return n=Tt(n,t),n}return""}for(let m=0;m<e.length;m++){const h=e[m],f=yt(h);if(void 0===f)continue;const C=Nt(h[":@"],t);o.push(f,C);const P=vt(o,i);if(f===t.textNodeName){let e=h[f];P||(e=t.tagValueProcessor(f,e),e=Tt(e,t)),d&&(a+=n),a+=e,d=!1,o.pop();continue}if(f===t.cdataPropName){d&&(a+=n),a+=`<![CDATA[${h[f][0][t.textNodeName]}]]>`,d=!1,o.pop();continue}if(f===t.commentPropName){a+=n+`\x3c!--${h[f][0][t.textNodeName]}--\x3e`,d=!0,o.pop();continue}if("?"===f[0]){const e=wt(h[":@"],t,P),i="?xml"===f?"":n;let m=h[f][0][t.textNodeName];m=0!==m.length?" "+m:"",a+=i+`<${f}${m}${e}?>`,d=!0,o.pop();continue}let D=n;""!==D&&(D+=t.indentBy);const k=n+`<${f}${wt(h[":@"],t,P)}`;let L;L=P?bt(h[f],t):xt(h[f],t,D,o,i),-1!==t.unpairedTags.indexOf(f)?t.suppressUnpairedNode?a+=k+">":a+=k+"/>":L&&0!==L.length||!t.suppressEmptyNode?L&&L.endsWith(">")?a+=k+`>${L}${n}</${f}>`:(a+=k+">",L&&""!==n&&(L.includes("/>")||L.includes("</"))?a+=n+t.indentBy+L+n:a+=L,a+=`</${f}>`):a+=k+"/>",d=!0,o.pop()}return a}function Nt(e,t){if(!e||t.ignoreAttributes)return null;const n={};let o=!1;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i.startsWith(t.attributeNamePrefix)?i.substr(t.attributeNamePrefix.length):i]=e[i],o=!0);return o?n:null}function bt(e,t){if(!Array.isArray(e))return null!=e?e.toString():"";let n="";for(let o=0;o<e.length;o++){const i=e[o],a=yt(i);if(a===t.textNodeName)n+=i[a];else if(a===t.cdataPropName)n+=i[a][0][t.textNodeName];else if(a===t.commentPropName)n+=i[a][0][t.textNodeName];else{if(a&&"?"===a[0])continue;if(a){const e=Et(i[":@"],t),o=bt(i[a],t);o&&0!==o.length?n+=`<${a}${e}>${o}</${a}>`:n+=`<${a}${e}/>`}}}return n}function Et(e,t){let n="";if(e&&!t.ignoreAttributes)for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;let i=e[o];!0===i&&t.suppressBooleanAttributes?n+=` ${o.substr(t.attributeNamePrefix.length)}`:n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}return n}function yt(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(Object.prototype.hasOwnProperty.call(e,o)&&":@"!==o)return o}}function wt(e,t,n){let o="";if(e&&!t.ignoreAttributes)for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;let a;n?a=e[i]:(a=t.attributeValueProcessor(i,e[i]),a=Tt(a,t)),!0===a&&t.suppressBooleanAttributes?o+=` ${i.substr(t.attributeNamePrefix.length)}`:o+=` ${i.substr(t.attributeNamePrefix.length)}="${a}"`}return o}function vt(e,t){if(!t||0===t.length)return!1;for(let n=0;n<t.length;n++)if(e.matches(t[n]))return!0;return!1}function Tt(e,t){if(e&&e.length>0&&t.processEntities)for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}return e}const re={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function St(e){if(this.options=Object.assign({},re,e),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map((e=>"string"==typeof e&&e.startsWith("*.")?".."+e.substring(2):e))),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];"string"==typeof t?this.stopNodeExpressions.push(new R(t)):t instanceof R&&this.stopNodeExpressions.push(t)}var t;!0===this.options.ignoreAttributes||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const n of t){if("string"==typeof n&&e===n)return!0;if(n instanceof RegExp&&n.test(e))return!0}}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ct),this.processTextOrObjNode=At,this.options.format?(this.indentate=Ot,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function At(e,t,n,o){const i=this.extractAttributes(e);if(o.push(t,i),this.checkStopNode(o)){const i=this.buildRawContent(e),a=this.buildAttributesForStopNode(e);return o.pop(),this.buildObjectNode(i,t,a,n)}const a=this.j2x(e,n+1,o);return o.pop(),void 0!==e[this.options.textNodeName]&&1===Object.keys(e).length?this.buildTextValNode(e[this.options.textNodeName],t,a.attrStr,n,o):this.buildObjectNode(a.val,t,a.attrStr,n)}function Ot(e){return this.options.indentBy.repeat(e)}function Ct(e){return!(!e.startsWith(this.options.attributeNamePrefix)||e===this.options.textNodeName)&&e.substr(this.attrPrefixLen)}St.prototype.build=function(e){if(this.options.preserveOrder)return mt(e,this.options);{Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(e={[this.options.arrayNodeName]:e});const t=new G;return this.j2x(e,0,t).val}},St.prototype.j2x=function(e,t,n){let o="",i="";if(this.options.maxNestedTags&&n.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");const a=this.options.jPath?n.toString():n,d=this.checkStopNode(n);for(let m in e)if(Object.prototype.hasOwnProperty.call(e,m))if(void 0===e[m])this.isAttribute(m)&&(i+="");else if(null===e[m])this.isAttribute(m)||m===this.options.cdataPropName?i+="":"?"===m[0]?i+=this.indentate(t)+"<"+m+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+m+"/"+this.tagEndChar;else if(e[m]instanceof Date)i+=this.buildTextValNode(e[m],m,"",t,n);else if("object"!=typeof e[m]){const h=this.isAttribute(m);if(h&&!this.ignoreAttributesFn(h,a))o+=this.buildAttrPairStr(h,""+e[m],d);else if(!h)if(m===this.options.textNodeName){let t=this.options.tagValueProcessor(m,""+e[m]);i+=this.replaceEntitiesValue(t)}else{n.push(m);const o=this.checkStopNode(n);if(n.pop(),o){const n=""+e[m];i+=""===n?this.indentate(t)+"<"+m+this.closeTag(m)+this.tagEndChar:this.indentate(t)+"<"+m+">"+n+"</"+m+this.tagEndChar}else i+=this.buildTextValNode(e[m],m,"",t,n)}}else if(Array.isArray(e[m])){const o=e[m].length;let a="",d="";for(let h=0;h<o;h++){const o=e[m][h];if(void 0===o);else if(null===o)"?"===m[0]?i+=this.indentate(t)+"<"+m+"?"+this.tagEndChar:i+=this.indentate(t)+"<"+m+"/"+this.tagEndChar;else if("object"==typeof o)if(this.options.oneListGroup){n.push(m);const e=this.j2x(o,t+1,n);n.pop(),a+=e.val,this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)&&(d+=e.attrStr)}else a+=this.processTextOrObjNode(o,m,t,n);else if(this.options.oneListGroup){let e=this.options.tagValueProcessor(m,o);e=this.replaceEntitiesValue(e),a+=e}else{n.push(m);const e=this.checkStopNode(n);if(n.pop(),e){const e=""+o;a+=""===e?this.indentate(t)+"<"+m+this.closeTag(m)+this.tagEndChar:this.indentate(t)+"<"+m+">"+e+"</"+m+this.tagEndChar}else a+=this.buildTextValNode(o,m,"",t,n)}}this.options.oneListGroup&&(a=this.buildObjectNode(a,m,d,t)),i+=a}else if(this.options.attributesGroupName&&m===this.options.attributesGroupName){const t=Object.keys(e[m]),n=t.length;for(let i=0;i<n;i++)o+=this.buildAttrPairStr(t[i],""+e[m][t[i]],d)}else i+=this.processTextOrObjNode(e[m],m,t,n);return{attrStr:o,val:i}},St.prototype.buildAttrPairStr=function(e,t,n){return n||(t=this.options.attributeValueProcessor(e,""+t),t=this.replaceEntitiesValue(t)),this.options.suppressBooleanAttributes&&"true"===t?" "+e:" "+e+'="'+t+'"'},St.prototype.extractAttributes=function(e){if(!e||"object"!=typeof e)return null;const t={};let n=!1;if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const o=e[this.options.attributesGroupName];for(let e in o)Object.prototype.hasOwnProperty.call(o,e)&&(t[e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e]=o[e],n=!0)}else for(let o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=this.isAttribute(o);i&&(t[i]=e[o],n=!0)}return n?t:null},St.prototype.buildRawContent=function(e){if("string"==typeof e)return e;if("object"!=typeof e||null===e)return String(e);if(void 0!==e[this.options.textNodeName])return e[this.options.textNodeName];let t="";for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;if(this.isAttribute(n))continue;if(this.options.attributesGroupName&&n===this.options.attributesGroupName)continue;const o=e[n];if(n===this.options.textNodeName)t+=o;else if(Array.isArray(o)){for(let e of o)if("string"==typeof e||"number"==typeof e)t+=`<${n}>${e}</${n}>`;else if("object"==typeof e&&null!==e){const o=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=""===o?`<${n}${i}/>`:`<${n}${i}>${o}</${n}>`}}else if("object"==typeof o&&null!==o){const e=this.buildRawContent(o),i=this.buildAttributesForStopNode(o);t+=""===e?`<${n}${i}/>`:`<${n}${i}>${e}</${n}>`}else t+=`<${n}>${o}</${n}>`}return t},St.prototype.buildAttributesForStopNode=function(e){if(!e||"object"!=typeof e)return"";let t="";if(this.options.attributesGroupName&&e[this.options.attributesGroupName]){const n=e[this.options.attributesGroupName];for(let e in n){if(!Object.prototype.hasOwnProperty.call(n,e))continue;const o=e.startsWith(this.options.attributeNamePrefix)?e.substring(this.options.attributeNamePrefix.length):e,i=n[e];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}else for(let n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const o=this.isAttribute(n);if(o){const i=e[n];!0===i&&this.options.suppressBooleanAttributes?t+=" "+o:t+=" "+o+'="'+i+'"'}}return t},St.prototype.buildObjectNode=function(e,t,n,o){if(""===e)return"?"===t[0]?this.indentate(o)+"<"+t+n+"?"+this.tagEndChar:this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar;{let i="</"+t+this.tagEndChar,a="";return"?"===t[0]&&(a="?",i=""),!n&&""!==n||-1!==e.indexOf("<")?!1!==this.options.commentPropName&&t===this.options.commentPropName&&0===a.length?this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine:this.indentate(o)+"<"+t+n+a+this.tagEndChar+e+this.indentate(o)+i:this.indentate(o)+"<"+t+n+a+">"+e+i}},St.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`></${e}`,t},St.prototype.checkStopNode=function(e){if(!this.stopNodeExpressions||0===this.stopNodeExpressions.length)return!1;for(let t=0;t<this.stopNodeExpressions.length;t++)if(e.matches(this.stopNodeExpressions[t]))return!0;return!1},St.prototype.buildTextValNode=function(e,t,n,o,i){if(!1!==this.options.cdataPropName&&t===this.options.cdataPropName)return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine;if(!1!==this.options.commentPropName&&t===this.options.commentPropName)return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine;if("?"===t[0])return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;{let i=this.options.tagValueProcessor(t,e);return i=this.replaceEntitiesValue(i),""===i?this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar:this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}},St.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities)for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}return e};const ne=St,se={validate:l};e.exports=n})()},4012:e=>{e.exports=JSON.parse('{"name":"@actions/cache","version":"6.0.0","description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","type":"module","main":"lib/cache.js","types":"lib/cache.d.ts","exports":{".":{"types":"./lib/cache.d.ts","import":"./lib/cache.js"}},"directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1","semver":"^7.7.3"},"devDependencies":{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1","typescript":"^5.2.2"},"overrides":{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}')},7643:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr-public","description":"AWS SDK for JavaScript Ecr Public Client for Node.js, Browser and React Native","version":"3.1022.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr-public","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr-public","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.26","@aws-sdk/credential-provider-node":"^3.972.29","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.28","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.14","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.13","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.28","@smithy/middleware-retry":"^4.4.46","@smithy/middleware-serde":"^4.2.16","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.1","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.8","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.44","@smithy/util-defaults-mode-node":"^4.2.48","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.13","@smithy/util-utf8":"^4.2.2","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr-public","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr-public"}}')},121:e=>{e.exports=JSON.parse('{"name":"@aws-sdk/client-ecr","description":"AWS SDK for JavaScript Ecr Client for Node.js, Browser and React Native","version":"3.1022.0","scripts":{"build":"concurrently \'yarn:build:types\' \'yarn:build:es\' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-ecr","build:es":"tsc -p tsconfig.es.json","build:include:deps":"yarn g:turbo run build -F=\\"$npm_package_name\\"","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4","clean":"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo ecr","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},"main":"./dist-cjs/index.js","types":"./dist-types/index.d.ts","module":"./dist-es/index.js","sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.26","@aws-sdk/credential-provider-node":"^3.972.29","@aws-sdk/middleware-host-header":"^3.972.8","@aws-sdk/middleware-logger":"^3.972.8","@aws-sdk/middleware-recursion-detection":"^3.972.9","@aws-sdk/middleware-user-agent":"^3.972.28","@aws-sdk/region-config-resolver":"^3.972.10","@aws-sdk/types":"^3.973.6","@aws-sdk/util-endpoints":"^3.996.5","@aws-sdk/util-user-agent-browser":"^3.972.8","@aws-sdk/util-user-agent-node":"^3.973.14","@smithy/config-resolver":"^4.4.13","@smithy/core":"^3.23.13","@smithy/fetch-http-handler":"^5.3.15","@smithy/hash-node":"^4.2.12","@smithy/invalid-dependency":"^4.2.12","@smithy/middleware-content-length":"^4.2.12","@smithy/middleware-endpoint":"^4.4.28","@smithy/middleware-retry":"^4.4.46","@smithy/middleware-serde":"^4.2.16","@smithy/middleware-stack":"^4.2.12","@smithy/node-config-provider":"^4.3.12","@smithy/node-http-handler":"^4.5.1","@smithy/protocol-http":"^5.3.12","@smithy/smithy-client":"^4.12.8","@smithy/types":"^4.13.1","@smithy/url-parser":"^4.2.12","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.44","@smithy/util-defaults-mode-node":"^4.2.48","@smithy/util-endpoints":"^3.3.3","@smithy/util-middleware":"^4.2.12","@smithy/util-retry":"^4.2.13","@smithy/util-utf8":"^4.2.2","@smithy/util-waiter":"^4.2.14","tslib":"^2.6.2"},"devDependencies":{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8","concurrently":"7.0.0","downlevel-dts":"0.10.1","premove":"4.0.0","typescript":"~5.8.3"},"engines":{"node":">=20.0.0"},"typesVersions":{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},"files":["dist-*/**"],"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","browser":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},"homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ecr","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-ecr"}}')}};var n={};function __nccwpck_require__(e){var o=n[e];if(o!==undefined){return o.exports}var i=n[e]={exports:{}};var a=true;try{t[e].call(i.exports,i,i.exports,__nccwpck_require__);a=false}finally{if(a)delete n[e]}return i.exports}__nccwpck_require__.m=t;(()=>{__nccwpck_require__.n=e=>{var t=e&&e.__esModule?()=>e["default"]:()=>e;__nccwpck_require__.d(t,{a:t});return t}})();(()=>{var e=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;var t;__nccwpck_require__.t=function(n,o){if(o&1)n=this(n);if(o&8)return n;if(typeof n==="object"&&n){if(o&4&&n.__esModule)return n;if(o&16&&typeof n.then==="function")return n}var i=Object.create(null);__nccwpck_require__.r(i);var a={};t=t||[null,e({}),e([]),e(e)];for(var d=o&2&&n;typeof d=="object"&&!~t.indexOf(d);d=e(d)){Object.getOwnPropertyNames(d).forEach((e=>a[e]=()=>n[e]))}a["default"]=()=>n;__nccwpck_require__.d(i,a);return i}})();(()=>{__nccwpck_require__.d=(e,t)=>{for(var n in t){if(__nccwpck_require__.o(t,n)&&!__nccwpck_require__.o(e,n)){Object.defineProperty(e,n,{enumerable:true,get:t[n]})}}}})();(()=>{__nccwpck_require__.f={};__nccwpck_require__.e=e=>Promise.all(Object.keys(__nccwpck_require__.f).reduce(((t,n)=>{__nccwpck_require__.f[n](e,t);return t}),[]))})();(()=>{__nccwpck_require__.u=e=>""+e+".index.js"})();(()=>{__nccwpck_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t)})();(()=>{__nccwpck_require__.r=e=>{if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(e,"__esModule",{value:true})}})();if(typeof __nccwpck_require__!=="undefined")__nccwpck_require__.ab=new URL(".",import.meta.url).pathname.slice(import.meta.url.match(/^file:\/\/\/\w:/)?1:0,-1)+"/";(()=>{var e={792:0};var installChunk=t=>{var{ids:n,modules:o,runtime:i}=t;var a,d,m=0;for(a in o){if(__nccwpck_require__.o(o,a)){__nccwpck_require__.m[a]=o[a]}}if(i)i(__nccwpck_require__);for(;m<n.length;m++){d=n[m];if(__nccwpck_require__.o(e,d)&&e[d]){e[d][0]()}e[n[m]]=0}};__nccwpck_require__.f.j=(t,n)=>{var o=__nccwpck_require__.o(e,t)?e[t]:undefined;if(o!==0){if(o){n.push(o[1])}else{if(true){var i=import("./"+__nccwpck_require__.u(t)).then(installChunk,(n=>{if(e[t]!==0)e[t]=undefined;throw n}));var i=Promise.race([i,new Promise((n=>o=e[t]=[n]))]);n.push(o[1]=i)}}}}})();var o={};__nccwpck_require__.d(o,{i:()=>main});var i={};__nccwpck_require__.r(i);__nccwpck_require__.d(i,{AccessPolicy:()=>Fi,AppendBlobAppendBlockExceptionHeaders:()=>El,AppendBlobAppendBlockFromUrlExceptionHeaders:()=>Il,AppendBlobAppendBlockFromUrlHeaders:()=>Cl,AppendBlobAppendBlockHeaders:()=>yl,AppendBlobCreateExceptionHeaders:()=>fl,AppendBlobCreateHeaders:()=>hl,AppendBlobSealExceptionHeaders:()=>Sl,AppendBlobSealHeaders:()=>bl,ArrowConfiguration:()=>sa,ArrowField:()=>oa,BlobAbortCopyFromURLExceptionHeaders:()=>Hc,BlobAbortCopyFromURLHeaders:()=>Mc,BlobAcquireLeaseExceptionHeaders:()=>wc,BlobAcquireLeaseHeaders:()=>Bc,BlobBreakLeaseExceptionHeaders:()=>Dc,BlobBreakLeaseHeaders:()=>Pc,BlobChangeLeaseExceptionHeaders:()=>vc,BlobChangeLeaseHeaders:()=>Tc,BlobCopyFromURLExceptionHeaders:()=>Uc,BlobCopyFromURLHeaders:()=>Fc,BlobCreateSnapshotExceptionHeaders:()=>_c,BlobCreateSnapshotHeaders:()=>kc,BlobDeleteExceptionHeaders:()=>lc,BlobDeleteHeaders:()=>cc,BlobDeleteImmutabilityPolicyExceptionHeaders:()=>Ec,BlobDeleteImmutabilityPolicyHeaders:()=>yc,BlobDownloadExceptionHeaders:()=>oc,BlobDownloadHeaders:()=>sc,BlobFlatListSegment:()=>Mi,BlobGetAccountInfoExceptionHeaders:()=>zc,BlobGetAccountInfoHeaders:()=>qc,BlobGetPropertiesExceptionHeaders:()=>ac,BlobGetPropertiesHeaders:()=>ic,BlobGetTagsExceptionHeaders:()=>Jc,BlobGetTagsHeaders:()=>Yc,BlobHierarchyListSegment:()=>zi,BlobItemInternal:()=>Hi,BlobName:()=>$i,BlobPrefix:()=>Vi,BlobPropertiesInternal:()=>Gi,BlobQueryExceptionHeaders:()=>jc,BlobQueryHeaders:()=>Vc,BlobReleaseLeaseExceptionHeaders:()=>Nc,BlobReleaseLeaseHeaders:()=>Rc,BlobRenewLeaseExceptionHeaders:()=>Qc,BlobRenewLeaseHeaders:()=>xc,BlobServiceProperties:()=>Ei,BlobServiceStatistics:()=>Ri,BlobSetExpiryExceptionHeaders:()=>Ac,BlobSetExpiryHeaders:()=>pc,BlobSetHttpHeadersExceptionHeaders:()=>gc,BlobSetHttpHeadersHeaders:()=>mc,BlobSetImmutabilityPolicyExceptionHeaders:()=>fc,BlobSetImmutabilityPolicyHeaders:()=>hc,BlobSetLegalHoldExceptionHeaders:()=>Ic,BlobSetLegalHoldHeaders:()=>Cc,BlobSetMetadataExceptionHeaders:()=>Sc,BlobSetMetadataHeaders:()=>bc,BlobSetTagsExceptionHeaders:()=>Kc,BlobSetTagsHeaders:()=>Wc,BlobSetTierExceptionHeaders:()=>Gc,BlobSetTierHeaders:()=>$c,BlobStartCopyFromURLExceptionHeaders:()=>Oc,BlobStartCopyFromURLHeaders:()=>Lc,BlobTag:()=>Li,BlobTags:()=>_i,BlobUndeleteExceptionHeaders:()=>dc,BlobUndeleteHeaders:()=>uc,Block:()=>Ji,BlockBlobCommitBlockListExceptionHeaders:()=>Dl,BlockBlobCommitBlockListHeaders:()=>Pl,BlockBlobGetBlockListExceptionHeaders:()=>_l,BlockBlobGetBlockListHeaders:()=>kl,BlockBlobPutBlobFromUrlExceptionHeaders:()=>Nl,BlockBlobPutBlobFromUrlHeaders:()=>Rl,BlockBlobStageBlockExceptionHeaders:()=>Ql,BlockBlobStageBlockFromURLExceptionHeaders:()=>vl,BlockBlobStageBlockFromURLHeaders:()=>Tl,BlockBlobStageBlockHeaders:()=>xl,BlockBlobUploadExceptionHeaders:()=>wl,BlockBlobUploadHeaders:()=>Bl,BlockList:()=>Yi,BlockLookupList:()=>ji,ClearRange:()=>Xi,ContainerAcquireLeaseExceptionHeaders:()=>Ga,ContainerAcquireLeaseHeaders:()=>$a,ContainerBreakLeaseExceptionHeaders:()=>Ja,ContainerBreakLeaseHeaders:()=>Ya,ContainerChangeLeaseExceptionHeaders:()=>Ka,ContainerChangeLeaseHeaders:()=>Wa,ContainerCreateExceptionHeaders:()=>Sa,ContainerCreateHeaders:()=>ba,ContainerDeleteExceptionHeaders:()=>Na,ContainerDeleteHeaders:()=>Ra,ContainerFilterBlobsExceptionHeaders:()=>Ha,ContainerFilterBlobsHeaders:()=>Ma,ContainerGetAccessPolicyExceptionHeaders:()=>va,ContainerGetAccessPolicyHeaders:()=>Ta,ContainerGetAccountInfoExceptionHeaders:()=>nc,ContainerGetAccountInfoHeaders:()=>rc,ContainerGetPropertiesExceptionHeaders:()=>wa,ContainerGetPropertiesHeaders:()=>Ba,ContainerItem:()=>Qi,ContainerListBlobFlatSegmentExceptionHeaders:()=>Za,ContainerListBlobFlatSegmentHeaders:()=>Xa,ContainerListBlobHierarchySegmentExceptionHeaders:()=>tc,ContainerListBlobHierarchySegmentHeaders:()=>ec,ContainerProperties:()=>Ti,ContainerReleaseLeaseExceptionHeaders:()=>za,ContainerReleaseLeaseHeaders:()=>qa,ContainerRenameExceptionHeaders:()=>Oa,ContainerRenameHeaders:()=>La,ContainerRenewLeaseExceptionHeaders:()=>ja,ContainerRenewLeaseHeaders:()=>Va,ContainerRestoreExceptionHeaders:()=>_a,ContainerRestoreHeaders:()=>ka,ContainerSetAccessPolicyExceptionHeaders:()=>Da,ContainerSetAccessPolicyHeaders:()=>Pa,ContainerSetMetadataExceptionHeaders:()=>Qa,ContainerSetMetadataHeaders:()=>xa,ContainerSubmitBatchExceptionHeaders:()=>Ua,ContainerSubmitBatchHeaders:()=>Fa,CorsRule:()=>Si,DelimitedTextConfiguration:()=>ra,FilterBlobItem:()=>ki,FilterBlobSegment:()=>Di,GeoReplication:()=>Ni,JsonTextConfiguration:()=>na,KeyInfo:()=>vi,ListBlobsFlatSegmentResponse:()=>Ui,ListBlobsHierarchySegmentResponse:()=>qi,ListContainersSegmentResponse:()=>xi,Logging:()=>Ci,Metrics:()=>bi,PageBlobClearPagesExceptionHeaders:()=>nl,PageBlobClearPagesHeaders:()=>rl,PageBlobCopyIncrementalExceptionHeaders:()=>gl,PageBlobCopyIncrementalHeaders:()=>ml,PageBlobCreateExceptionHeaders:()=>Zc,PageBlobCreateHeaders:()=>Xc,PageBlobGetPageRangesDiffExceptionHeaders:()=>ll,PageBlobGetPageRangesDiffHeaders:()=>cl,PageBlobGetPageRangesExceptionHeaders:()=>al,PageBlobGetPageRangesHeaders:()=>il,PageBlobResizeExceptionHeaders:()=>dl,PageBlobResizeHeaders:()=>ul,PageBlobUpdateSequenceNumberExceptionHeaders:()=>Al,PageBlobUpdateSequenceNumberHeaders:()=>pl,PageBlobUploadPagesExceptionHeaders:()=>tl,PageBlobUploadPagesFromURLExceptionHeaders:()=>ol,PageBlobUploadPagesFromURLHeaders:()=>sl,PageBlobUploadPagesHeaders:()=>el,PageList:()=>Wi,PageRange:()=>Ki,QueryFormat:()=>ta,QueryRequest:()=>Zi,QuerySerialization:()=>ea,RetentionPolicy:()=>Ii,ServiceFilterBlobsExceptionHeaders:()=>Ia,ServiceFilterBlobsHeaders:()=>Ca,ServiceGetAccountInfoExceptionHeaders:()=>fa,ServiceGetAccountInfoHeaders:()=>ha,ServiceGetPropertiesExceptionHeaders:()=>la,ServiceGetPropertiesHeaders:()=>ca,ServiceGetStatisticsExceptionHeaders:()=>da,ServiceGetStatisticsHeaders:()=>ua,ServiceGetUserDelegationKeyExceptionHeaders:()=>ga,ServiceGetUserDelegationKeyHeaders:()=>ma,ServiceListContainersSegmentExceptionHeaders:()=>Aa,ServiceListContainersSegmentHeaders:()=>pa,ServiceSetPropertiesExceptionHeaders:()=>aa,ServiceSetPropertiesHeaders:()=>ia,ServiceSubmitBatchExceptionHeaders:()=>Ea,ServiceSubmitBatchHeaders:()=>ya,SignedIdentifier:()=>Oi,StaticWebsite:()=>Bi,StorageError:()=>wi,UserDelegationKey:()=>Pi});var a=__nccwpck_require__(857);function utils_toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}function utils_toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}function command_issueCommand(e,t,n){const o=new Command(e,t,n);process.stdout.write(o.toString()+a.EOL)}function command_issue(e,t=""){command_issueCommand(e,{},t)}const d="::";class Command{constructor(e,t,n){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=n}toString(){let e=d+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const n in this.properties){if(this.properties.hasOwnProperty(n)){const o=this.properties[n];if(o){if(t){t=false}else{e+=","}e+=`${n}=${escapeProperty(o)}`}}}}e+=`${d}${escapeData(this.message)}`;return e}}function escapeData(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return utils_toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}var m=__nccwpck_require__(6982);var h=__nccwpck_require__(9896);function file_command_issueFileCommand(e,t){const n=process.env[`GITHUB_${e}`];if(!n){throw new Error(`Unable to find environment variable for file command ${e}`)}if(!h.existsSync(n)){throw new Error(`Missing file at path: ${n}`)}h.appendFileSync(n,`${utils_toCommandValue(t)}${a.EOL}`,{encoding:"utf8"})}function file_command_prepareKeyValueMessage(e,t){const n=`ghadelimiter_${m.randomUUID()}`;const o=utils_toCommandValue(t);if(e.includes(n)){throw new Error(`Unexpected input: name should not contain the delimiter "${n}"`)}if(o.includes(n)){throw new Error(`Unexpected input: value should not contain the delimiter "${n}"`)}return`${e}<<${n}${a.EOL}${o}${a.EOL}${n}`}var f=__nccwpck_require__(6928);var C=__nccwpck_require__.n(f);var P=__nccwpck_require__(8611);var D=__nccwpck_require__.t(P,2);var k=__nccwpck_require__(5692);var L=__nccwpck_require__.t(k,2);function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const n=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(n){try{return new DecodedURL(n)}catch(e){if(!n.startsWith("http://")&&!n.startsWith("https://"))return new DecodedURL(`http://${n}`)}}else{return undefined}}function checkBypass(e){if(!e.hostname){return false}const t=e.hostname;if(isLoopbackAddress(t)){return true}const n=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!n){return false}let o;if(e.port){o=Number(e.port)}else if(e.protocol==="http:"){o=80}else if(e.protocol==="https:"){o=443}const i=[e.hostname.toUpperCase()];if(typeof o==="number"){i.push(`${i[0]}:${o}`)}for(const e of n.split(",").map((e=>e.trim().toUpperCase())).filter((e=>e))){if(e==="*"||i.some((t=>t===e||t.endsWith(`.${e}`)||e.startsWith(".")&&t.endsWith(`${e}`)))){return true}}return false}function isLoopbackAddress(e){const t=e.toLowerCase();return t==="localhost"||t.startsWith("127.")||t.startsWith("[::1]")||t.startsWith("[0:0:0:0:0:0:0:1]")}class DecodedURL extends URL{constructor(e,t){super(e,t);this._decodedUsername=decodeURIComponent(super.username);this._decodedPassword=decodeURIComponent(super.password)}get username(){return this._decodedUsername}get password(){return this._decodedPassword}}var F=__nccwpck_require__(770);var q=__nccwpck_require__(6752);var V=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var ee;(function(e){e[e["OK"]=200]="OK";e[e["MultipleChoices"]=300]="MultipleChoices";e[e["MovedPermanently"]=301]="MovedPermanently";e[e["ResourceMoved"]=302]="ResourceMoved";e[e["SeeOther"]=303]="SeeOther";e[e["NotModified"]=304]="NotModified";e[e["UseProxy"]=305]="UseProxy";e[e["SwitchProxy"]=306]="SwitchProxy";e[e["TemporaryRedirect"]=307]="TemporaryRedirect";e[e["PermanentRedirect"]=308]="PermanentRedirect";e[e["BadRequest"]=400]="BadRequest";e[e["Unauthorized"]=401]="Unauthorized";e[e["PaymentRequired"]=402]="PaymentRequired";e[e["Forbidden"]=403]="Forbidden";e[e["NotFound"]=404]="NotFound";e[e["MethodNotAllowed"]=405]="MethodNotAllowed";e[e["NotAcceptable"]=406]="NotAcceptable";e[e["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";e[e["RequestTimeout"]=408]="RequestTimeout";e[e["Conflict"]=409]="Conflict";e[e["Gone"]=410]="Gone";e[e["TooManyRequests"]=429]="TooManyRequests";e[e["InternalServerError"]=500]="InternalServerError";e[e["NotImplemented"]=501]="NotImplemented";e[e["BadGateway"]=502]="BadGateway";e[e["ServiceUnavailable"]=503]="ServiceUnavailable";e[e["GatewayTimeout"]=504]="GatewayTimeout"})(ee||(ee={}));var te;(function(e){e["Accept"]="accept";e["ContentType"]="content-type"})(te||(te={}));var re;(function(e){e["ApplicationJson"]="application/json"})(re||(re={}));function lib_getProxyUrl(e){const t=pm.getProxyUrl(new URL(e));return t?t.href:""}const ne=[ee.MovedPermanently,ee.ResourceMoved,ee.SeeOther,ee.TemporaryRedirect,ee.PermanentRedirect];const se=[ee.BadGateway,ee.ServiceUnavailable,ee.GatewayTimeout];const oe=["OPTIONS","GET","DELETE","HEAD"];const ie=10;const ae=5;class HttpClientError extends Error{constructor(e,t){super(e);this.name="HttpClientError";this.statusCode=t;Object.setPrototypeOf(this,HttpClientError.prototype)}}class HttpClientResponse{constructor(e){this.message=e}readBody(){return V(this,void 0,void 0,(function*(){return new Promise((e=>V(this,void 0,void 0,(function*(){let t=Buffer.alloc(0);this.message.on("data",(e=>{t=Buffer.concat([t,e])}));this.message.on("end",(()=>{e(t.toString())}))}))))}))}readBodyBuffer(){return V(this,void 0,void 0,(function*(){return new Promise((e=>V(this,void 0,void 0,(function*(){const t=[];this.message.on("data",(e=>{t.push(e)}));this.message.on("end",(()=>{e(Buffer.concat(t))}))}))))}))}}function isHttps(e){const t=new URL(e);return t.protocol==="https:"}class lib_HttpClient{constructor(e,t,n){this._ignoreSslError=false;this._allowRedirects=true;this._allowRedirectDowngrade=false;this._maxRedirects=50;this._allowRetries=false;this._maxRetries=1;this._keepAlive=false;this._disposed=false;this.userAgent=this._getUserAgentWithOrchestrationId(e);this.handlers=t||[];this.requestOptions=n;if(n){if(n.ignoreSslError!=null){this._ignoreSslError=n.ignoreSslError}this._socketTimeout=n.socketTimeout;if(n.allowRedirects!=null){this._allowRedirects=n.allowRedirects}if(n.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=n.allowRedirectDowngrade}if(n.maxRedirects!=null){this._maxRedirects=Math.max(n.maxRedirects,0)}if(n.keepAlive!=null){this._keepAlive=n.keepAlive}if(n.allowRetries!=null){this._allowRetries=n.allowRetries}if(n.maxRetries!=null){this._maxRetries=n.maxRetries}}}options(e,t){return V(this,void 0,void 0,(function*(){return this.request("OPTIONS",e,null,t||{})}))}get(e,t){return V(this,void 0,void 0,(function*(){return this.request("GET",e,null,t||{})}))}del(e,t){return V(this,void 0,void 0,(function*(){return this.request("DELETE",e,null,t||{})}))}post(e,t,n){return V(this,void 0,void 0,(function*(){return this.request("POST",e,t,n||{})}))}patch(e,t,n){return V(this,void 0,void 0,(function*(){return this.request("PATCH",e,t,n||{})}))}put(e,t,n){return V(this,void 0,void 0,(function*(){return this.request("PUT",e,t,n||{})}))}head(e,t){return V(this,void 0,void 0,(function*(){return this.request("HEAD",e,null,t||{})}))}sendStream(e,t,n,o){return V(this,void 0,void 0,(function*(){return this.request(e,t,n,o)}))}getJson(e){return V(this,arguments,void 0,(function*(e,t={}){t[te.Accept]=this._getExistingOrDefaultHeader(t,te.Accept,re.ApplicationJson);const n=yield this.get(e,t);return this._processResponse(n,this.requestOptions)}))}postJson(e,t){return V(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[te.Accept]=this._getExistingOrDefaultHeader(n,te.Accept,re.ApplicationJson);n[te.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,re.ApplicationJson);const i=yield this.post(e,o,n);return this._processResponse(i,this.requestOptions)}))}putJson(e,t){return V(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[te.Accept]=this._getExistingOrDefaultHeader(n,te.Accept,re.ApplicationJson);n[te.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,re.ApplicationJson);const i=yield this.put(e,o,n);return this._processResponse(i,this.requestOptions)}))}patchJson(e,t){return V(this,arguments,void 0,(function*(e,t,n={}){const o=JSON.stringify(t,null,2);n[te.Accept]=this._getExistingOrDefaultHeader(n,te.Accept,re.ApplicationJson);n[te.ContentType]=this._getExistingOrDefaultContentTypeHeader(n,re.ApplicationJson);const i=yield this.patch(e,o,n);return this._processResponse(i,this.requestOptions)}))}request(e,t,n,o){return V(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const i=new URL(t);let a=this._prepareRequest(e,i,o);const d=this._allowRetries&&oe.includes(e)?this._maxRetries+1:1;let m=0;let h;do{h=yield this.requestRaw(a,n);if(h&&h.message&&h.message.statusCode===ee.Unauthorized){let e;for(const t of this.handlers){if(t.canHandleAuthentication(h)){e=t;break}}if(e){return e.handleAuthentication(this,a,n)}else{return h}}let t=this._maxRedirects;while(h.message.statusCode&&ne.includes(h.message.statusCode)&&this._allowRedirects&&t>0){const d=h.message.headers["location"];if(!d){break}const m=new URL(d);if(i.protocol==="https:"&&i.protocol!==m.protocol&&!this._allowRedirectDowngrade){throw new Error("Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.")}yield h.readBody();if(m.hostname!==i.hostname){for(const e in o){if(e.toLowerCase()==="authorization"){delete o[e]}}}a=this._prepareRequest(e,m,o);h=yield this.requestRaw(a,n);t--}if(!h.message.statusCode||!se.includes(h.message.statusCode)){return h}m+=1;if(m<d){yield h.readBody();yield this._performExponentialBackoff(m)}}while(m<d);return h}))}dispose(){if(this._agent){this._agent.destroy()}this._disposed=true}requestRaw(e,t){return V(this,void 0,void 0,(function*(){return new Promise(((n,o)=>{function callbackForResult(e,t){if(e){o(e)}else if(!t){o(new Error("Unknown error"))}else{n(t)}}this.requestRawWithCallback(e,t,callbackForResult)}))}))}requestRawWithCallback(e,t,n){if(typeof t==="string"){if(!e.options.headers){e.options.headers={}}e.options.headers["Content-Length"]=Buffer.byteLength(t,"utf8")}let o=false;function handleResult(e,t){if(!o){o=true;n(e,t)}}const i=e.httpModule.request(e.options,(e=>{const t=new HttpClientResponse(e);handleResult(undefined,t)}));let a;i.on("socket",(e=>{a=e}));i.setTimeout(this._socketTimeout||3*6e4,(()=>{if(a){a.end()}handleResult(new Error(`Request timeout: ${e.options.path}`))}));i.on("error",(function(e){handleResult(e)}));if(t&&typeof t==="string"){i.write(t,"utf8")}if(t&&typeof t!=="string"){t.on("close",(function(){i.end()}));t.pipe(i)}else{i.end()}}getAgent(e){const t=new URL(e);return this._getAgent(t)}getAgentDispatcher(e){const t=new URL(e);const n=getProxyUrl(t);const o=n&&n.hostname;if(!o){return}return this._getProxyAgentDispatcher(t,n)}_prepareRequest(e,t,n){const o={};o.parsedUrl=t;const i=o.parsedUrl.protocol==="https:";o.httpModule=i?L:D;const a=i?443:80;o.options={};o.options.host=o.parsedUrl.hostname;o.options.port=o.parsedUrl.port?parseInt(o.parsedUrl.port):a;o.options.path=(o.parsedUrl.pathname||"")+(o.parsedUrl.search||"");o.options.method=e;o.options.headers=this._mergeHeaders(n);if(this.userAgent!=null){o.options.headers["user-agent"]=this.userAgent}o.options.agent=this._getAgent(o.parsedUrl);if(this.handlers){for(const e of this.handlers){e.prepareRequest(o.options)}}return o}_mergeHeaders(e){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(e||{}))}return lowercaseKeys(e||{})}_getExistingOrDefaultHeader(e,t,n){let o;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[t];if(e){o=typeof e==="number"?e.toString():e}}const i=e[t];if(i!==undefined){return typeof i==="number"?i.toString():i}if(o!==undefined){return o}return n}_getExistingOrDefaultContentTypeHeader(e,t){let n;if(this.requestOptions&&this.requestOptions.headers){const e=lowercaseKeys(this.requestOptions.headers)[te.ContentType];if(e){if(typeof e==="number"){n=String(e)}else if(Array.isArray(e)){n=e.join(", ")}else{n=e}}}const o=e[te.ContentType];if(o!==undefined){if(typeof o==="number"){return String(o)}else if(Array.isArray(o)){return o.join(", ")}else{return o}}if(n!==undefined){return n}return t}_getAgent(e){let t;const n=getProxyUrl(e);const o=n&&n.hostname;if(this._keepAlive&&o){t=this._proxyAgent}if(!o){t=this._agent}if(t){return t}const i=e.protocol==="https:";let a=100;if(this.requestOptions){a=this.requestOptions.maxSockets||P.globalAgent.maxSockets}if(n&&n.hostname){const e={maxSockets:a,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(n.username||n.password)&&{proxyAuth:`${n.username}:${n.password}`}),{host:n.hostname,port:n.port})};let o;const d=n.protocol==="https:";if(i){o=d?F.httpsOverHttps:F.httpsOverHttp}else{o=d?F.httpOverHttps:F.httpOverHttp}t=o(e);this._proxyAgent=t}if(!t){const e={keepAlive:this._keepAlive,maxSockets:a};t=i?new k.Agent(e):new P.Agent(e);this._agent=t}if(i&&this._ignoreSslError){t.options=Object.assign(t.options||{},{rejectUnauthorized:false})}return t}_getProxyAgentDispatcher(e,t){let n;if(this._keepAlive){n=this._proxyAgentDispatcher}if(n){return n}const o=e.protocol==="https:";n=new q.ProxyAgent(Object.assign({uri:t.href,pipelining:!this._keepAlive?0:1},(t.username||t.password)&&{token:`Basic ${Buffer.from(`${t.username}:${t.password}`).toString("base64")}`}));this._proxyAgentDispatcher=n;if(o&&this._ignoreSslError){n.options=Object.assign(n.options.requestTls||{},{rejectUnauthorized:false})}return n}_getUserAgentWithOrchestrationId(e){const t=e||"actions/http-client";const n=process.env["ACTIONS_ORCHESTRATION_ID"];if(n){const e=n.replace(/[^a-z0-9_.-]/gi,"_");return`${t} actions_orchestration_id/${e}`}return t}_performExponentialBackoff(e){return V(this,void 0,void 0,(function*(){e=Math.min(ie,e);const t=ae*Math.pow(2,e);return new Promise((e=>setTimeout((()=>e()),t)))}))}_processResponse(e,t){return V(this,void 0,void 0,(function*(){return new Promise(((n,o)=>V(this,void 0,void 0,(function*(){const i=e.message.statusCode||0;const a={statusCode:i,result:null,headers:{}};if(i===ee.NotFound){n(a)}function dateTimeDeserializer(e,t){if(typeof t==="string"){const e=new Date(t);if(!isNaN(e.valueOf())){return e}}return t}let d;let m;try{m=yield e.readBody();if(m&&m.length>0){if(t&&t.deserializeDates){d=JSON.parse(m,dateTimeDeserializer)}else{d=JSON.parse(m)}a.result=d}a.headers=e.message.headers}catch(e){}if(i>299){let e;if(d&&d.message){e=d.message}else if(m&&m.length>0){e=m}else{e=`Failed request: (${i})`}const t=new HttpClientError(e,i);t.result=a.result;o(t)}else{n(a)}}))))}))}}const lowercaseKeys=e=>Object.keys(e).reduce(((t,n)=>(t[n.toLowerCase()]=e[n],t)),{});var ce=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class BasicCredentialHandler{constructor(e,t){this.username=e;this.password=t}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return ce(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class auth_BearerCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return ce(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}class PersonalAccessTokenCredentialHandler{constructor(e){this.token=e}prepareRequest(e){if(!e.headers){throw Error("The request has no headers")}e.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return ce(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}var le=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class oidc_utils_OidcClient{static createHttpClient(e=true,t=10){const n={allowRetries:e,maxRetries:t};return new HttpClient("actions/oidc-client",[new BearerCredentialHandler(oidc_utils_OidcClient.getRequestToken())],n)}static getRequestToken(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return e}static getIDTokenUrl(){const e=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!e){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return e}static getCall(e){return le(this,void 0,void 0,(function*(){var t;const n=oidc_utils_OidcClient.createHttpClient();const o=yield n.getJson(e).catch((e=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${e.statusCode}\n \n Error Message: ${e.message}`)}));const i=(t=o.result)===null||t===void 0?void 0:t.value;if(!i){throw new Error("Response json body do not have ID Token field")}return i}))}static getIDToken(e){return le(this,void 0,void 0,(function*(){try{let t=oidc_utils_OidcClient.getIDTokenUrl();if(e){const n=encodeURIComponent(e);t=`${t}&audience=${n}`}debug(`ID token url is ${t}`);const n=yield oidc_utils_OidcClient.getCall(t);setSecret(n);return n}catch(e){throw new Error(`Error message: ${e.message}`)}}))}}var ue=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const{access:de,appendFile:pe,writeFile:Ae}=h.promises;const me="GITHUB_STEP_SUMMARY";const ge="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return ue(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const e=process.env[me];if(!e){throw new Error(`Unable to find environment variable for $${me}. Check if your runtime environment supports job summaries.`)}try{yield de(e,h.constants.R_OK|h.constants.W_OK)}catch(t){throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}this._filePath=e;return this._filePath}))}wrap(e,t,n={}){const o=Object.entries(n).map((([e,t])=>` ${e}="${t}"`)).join("");if(!t){return`<${e}${o}>`}return`<${e}${o}>${t}</${e}>`}write(e){return ue(this,void 0,void 0,(function*(){const t=!!(e===null||e===void 0?void 0:e.overwrite);const n=yield this.filePath();const o=t?Ae:pe;yield o(n,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return ue(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(e,t=false){this._buffer+=e;return t?this.addEOL():this}addEOL(){return this.addRaw(a.EOL)}addCodeBlock(e,t){const n=Object.assign({},t&&{lang:t});const o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,t=false){const n=t?"ol":"ul";const o=e.map((e=>this.wrap("li",e))).join("");const i=this.wrap(n,o);return this.addRaw(i).addEOL()}addTable(e){const t=e.map((e=>{const t=e.map((e=>{if(typeof e==="string"){return this.wrap("td",e)}const{header:t,data:n,colspan:o,rowspan:i}=e;const a=t?"th":"td";const d=Object.assign(Object.assign({},o&&{colspan:o}),i&&{rowspan:i});return this.wrap(a,n,d)})).join("");return this.wrap("tr",t)})).join("");const n=this.wrap("table",t);return this.addRaw(n).addEOL()}addDetails(e,t){const n=this.wrap("details",this.wrap("summary",e)+t);return this.addRaw(n).addEOL()}addImage(e,t,n){const{width:o,height:i}=n||{};const a=Object.assign(Object.assign({},o&&{width:o}),i&&{height:i});const d=this.wrap("img",null,Object.assign({src:e,alt:t},a));return this.addRaw(d).addEOL()}addHeading(e,t){const n=`h${t}`;const o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1";const i=this.wrap(o,e);return this.addRaw(i).addEOL()}addSeparator(){const e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){const e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,t){const n=Object.assign({},t&&{cite:t});const o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLink(e,t){const n=this.wrap("a",e,{href:t});return this.addRaw(n).addEOL()}}const he=new Summary;const fe=null&&he;const ye=null&&he;function toPosixPath(e){return e.replace(/[\\]/g,"/")}function toWin32Path(e){return e.replace(/[/]/g,"\\")}function toPlatformPath(e){return e.replace(/[/\\]/g,path.sep)}var Ee=__nccwpck_require__(3193);var Ce=__nccwpck_require__(4434);const Ie=e(import.meta.url)("child_process");var be=__nccwpck_require__(2613);var Se=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const{chmod:Be,copyFile:we,lstat:Re,mkdir:Ne,open:xe,readdir:Qe,rename:Te,rm:ve,rmdir:Pe,stat:De,symlink:ke,unlink:_e}=h.promises;const Le=process.platform==="win32";function readlink(e){return Se(this,void 0,void 0,(function*(){const t=yield h.promises.readlink(e);if(Le&&!t.endsWith("\\")){return`${t}\\`}return t}))}const Oe=268435456;const Fe=h.constants.O_RDONLY;function exists(e){return Se(this,void 0,void 0,(function*(){try{yield De(e)}catch(e){if(e.code==="ENOENT"){return false}throw e}return true}))}function isDirectory(e){return Se(this,arguments,void 0,(function*(e,t=false){const n=t?yield De(e):yield Re(e);return n.isDirectory()}))}function isRooted(e){e=normalizeSeparators(e);if(!e){throw new Error('isRooted() parameter "p" cannot be empty')}if(Le){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function tryGetExecutablePath(e,t){return Se(this,void 0,void 0,(function*(){let n=undefined;try{n=yield De(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(Le){const n=f.extname(e).toUpperCase();if(t.some((e=>e.toUpperCase()===n))){return e}}else{if(isUnixExecutable(n)){return e}}}const o=e;for(const i of t){e=o+i;n=undefined;try{n=yield De(e)}catch(t){if(t.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${e}': ${t}`)}}if(n&&n.isFile()){if(Le){try{const t=f.dirname(e);const n=f.basename(e).toUpperCase();for(const o of yield Qe(t)){if(n===o.toUpperCase()){e=f.join(t,o);break}}}catch(t){console.log(`Unexpected error attempting to determine the actual case of the file '${e}': ${t}`)}return e}else{if(isUnixExecutable(n)){return e}}}}return""}))}function normalizeSeparators(e){e=e||"";if(Le){e=e.replace(/\//g,"\\");return e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function isUnixExecutable(e){return(e.mode&1)>0||(e.mode&8)>0&&process.getgid!==undefined&&e.gid===process.getgid()||(e.mode&64)>0&&process.getuid!==undefined&&e.uid===process.getuid()}function getCmdPath(){var e;return(e=process.env["COMSPEC"])!==null&&e!==void 0?e:`cmd.exe`}var Ue=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function io_cp(e,t){return Ue(this,arguments,void 0,(function*(e,t,n={}){const{force:o,recursive:i,copySourceDirectory:a}=readCopyOptions(n);const d=(yield exists(t))?yield De(t):null;if(d&&d.isFile()&&!o){return}const m=d&&d.isDirectory()&&a?f.join(t,f.basename(e)):t;if(!(yield exists(e))){throw new Error(`no such file or directory: ${e}`)}const h=yield De(e);if(h.isDirectory()){if(!i){throw new Error(`Failed to copy. ${e} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(e,m,0,o)}}else{if(f.relative(e,m)===""){throw new Error(`'${m}' and '${e}' are the same file`)}yield io_copyFile(e,m,o)}}))}function mv(e,t){return Ue(this,arguments,void 0,(function*(e,t,n={}){if(yield ioUtil.exists(t)){let o=true;if(yield ioUtil.isDirectory(t)){t=path.join(t,path.basename(e));o=yield ioUtil.exists(t)}if(o){if(n.force==null||n.force){yield rmRF(t)}else{throw new Error("Destination already exists")}}}yield mkdirP(path.dirname(t));yield ioUtil.rename(e,t)}))}function rmRF(e){return Ue(this,void 0,void 0,(function*(){if(Le){if(/[*"<>|]/.test(e)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield ve(e,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(e){throw new Error(`File was unable to be removed ${e}`)}}))}function mkdirP(e){return Ue(this,void 0,void 0,(function*(){(0,be.ok)(e,"a path argument must be provided");yield Ne(e,{recursive:true})}))}function which(e,t){return Ue(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}if(t){const t=yield which(e,false);if(!t){if(Le){throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${e}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return t}const n=yield findInPath(e);if(n&&n.length>0){return n[0]}return""}))}function findInPath(e){return Ue(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'tool' is required")}const t=[];if(Le&&process.env["PATHEXT"]){for(const e of process.env["PATHEXT"].split(f.delimiter)){if(e){t.push(e)}}}if(isRooted(e)){const n=yield tryGetExecutablePath(e,t);if(n){return[n]}return[]}if(e.includes(f.sep)){return[]}const n=[];if(process.env.PATH){for(const e of process.env.PATH.split(f.delimiter)){if(e){n.push(e)}}}const o=[];for(const i of n){const n=yield tryGetExecutablePath(f.join(i,e),t);if(n){o.push(n)}}return o}))}function readCopyOptions(e){const t=e.force==null?true:e.force;const n=Boolean(e.recursive);const o=e.copySourceDirectory==null?true:Boolean(e.copySourceDirectory);return{force:t,recursive:n,copySourceDirectory:o}}function cpDirRecursive(e,t,n,o){return Ue(this,void 0,void 0,(function*(){if(n>=255)return;n++;yield mkdirP(t);const i=yield Qe(e);for(const a of i){const i=`${e}/${a}`;const d=`${t}/${a}`;const m=yield Re(i);if(m.isDirectory()){yield cpDirRecursive(i,d,n,o)}else{yield io_copyFile(i,d,o)}}yield Be(t,(yield De(e)).mode)}))}function io_copyFile(e,t,n){return Ue(this,void 0,void 0,(function*(){if((yield Re(e)).isSymbolicLink()){try{yield Re(t);yield _e(t)}catch(e){if(e.code==="EPERM"){yield Be(t,"0666");yield _e(t)}}const n=yield readlink(e);yield ke(n,t,Le?"junction":null)}else if(!(yield exists(t))||n){yield we(e,t)}}))}const Me=e(import.meta.url)("timers");var He=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const $e=process.platform==="win32";class ToolRunner extends Ce.EventEmitter{constructor(e,t,n){super();if(!e){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=e;this.args=t||[];this.options=n||{}}_debug(e){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(e)}}_getCommandString(e,t){const n=this._getSpawnFileName();const o=this._getSpawnArgs(e);let i=t?"":"[command]";if($e){if(this._isCmdFile()){i+=n;for(const e of o){i+=` ${e}`}}else if(e.windowsVerbatimArguments){i+=`"${n}"`;for(const e of o){i+=` ${e}`}}else{i+=this._windowsQuoteCmdArg(n);for(const e of o){i+=` ${this._windowsQuoteCmdArg(e)}`}}}else{i+=n;for(const e of o){i+=` ${e}`}}return i}_processLineBuffer(e,t,n){try{let o=t+e.toString();let i=o.indexOf(a.EOL);while(i>-1){const e=o.substring(0,i);n(e);o=o.substring(i+a.EOL.length);i=o.indexOf(a.EOL)}return o}catch(e){this._debug(`error processing line. Failed with error ${e}`);return""}}_getSpawnFileName(){if($e){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(e){if($e){if(this._isCmdFile()){let t=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const n of this.args){t+=" ";t+=e.windowsVerbatimArguments?n:this._windowsQuoteCmdArg(n)}t+='"';return[t]}}return this.args}_endsWith(e,t){return e.endsWith(t)}_isCmdFile(){const e=this.toolPath.toUpperCase();return this._endsWith(e,".CMD")||this._endsWith(e,".BAT")}_windowsQuoteCmdArg(e){if(!this._isCmdFile()){return this._uvQuoteCmdArg(e)}if(!e){return'""'}const t=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let n=false;for(const o of e){if(t.some((e=>e===o))){n=true;break}}if(!n){return e}let o='"';let i=true;for(let t=e.length;t>0;t--){o+=e[t-1];if(i&&e[t-1]==="\\"){o+="\\"}else if(e[t-1]==='"'){i=true;o+='"'}else{i=false}}o+='"';return o.split("").reverse().join("")}_uvQuoteCmdArg(e){if(!e){return'""'}if(!e.includes(" ")&&!e.includes("\t")&&!e.includes('"')){return e}if(!e.includes('"')&&!e.includes("\\")){return`"${e}"`}let t='"';let n=true;for(let o=e.length;o>0;o--){t+=e[o-1];if(n&&e[o-1]==="\\"){t+="\\"}else if(e[o-1]==='"'){n=true;t+="\\"}else{n=false}}t+='"';return t.split("").reverse().join("")}_cloneExecOptions(e){e=e||{};const t={cwd:e.cwd||process.cwd(),env:e.env||process.env,silent:e.silent||false,windowsVerbatimArguments:e.windowsVerbatimArguments||false,failOnStdErr:e.failOnStdErr||false,ignoreReturnCode:e.ignoreReturnCode||false,delay:e.delay||1e4};t.outStream=e.outStream||process.stdout;t.errStream=e.errStream||process.stderr;return t}_getSpawnOptions(e,t){e=e||{};const n={};n.cwd=e.cwd;n.env=e.env;n["windowsVerbatimArguments"]=e.windowsVerbatimArguments||this._isCmdFile();if(e.windowsVerbatimArguments){n.argv0=`"${t}"`}return n}exec(){return He(this,void 0,void 0,(function*(){if(!isRooted(this.toolPath)&&(this.toolPath.includes("/")||$e&&this.toolPath.includes("\\"))){this.toolPath=f.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield which(this.toolPath,true);return new Promise(((e,t)=>He(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const e of this.args){this._debug(` ${e}`)}const n=this._cloneExecOptions(this.options);if(!n.silent&&n.outStream){n.outStream.write(this._getCommandString(n)+a.EOL)}const o=new ExecState(n,this.toolPath);o.on("debug",(e=>{this._debug(e)}));if(this.options.cwd&&!(yield exists(this.options.cwd))){return t(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const i=this._getSpawnFileName();const d=Ie.spawn(i,this._getSpawnArgs(n),this._getSpawnOptions(this.options,i));let m="";if(d.stdout){d.stdout.on("data",(e=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(e)}if(!n.silent&&n.outStream){n.outStream.write(e)}m=this._processLineBuffer(e,m,(e=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(e)}}))}))}let h="";if(d.stderr){d.stderr.on("data",(e=>{o.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(e)}if(!n.silent&&n.errStream&&n.outStream){const t=n.failOnStdErr?n.errStream:n.outStream;t.write(e)}h=this._processLineBuffer(e,h,(e=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(e)}}))}))}d.on("error",(e=>{o.processError=e.message;o.processExited=true;o.processClosed=true;o.CheckComplete()}));d.on("exit",(e=>{o.processExitCode=e;o.processExited=true;this._debug(`Exit code ${e} received from tool '${this.toolPath}'`);o.CheckComplete()}));d.on("close",(e=>{o.processExitCode=e;o.processExited=true;o.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);o.CheckComplete()}));o.on("done",((n,o)=>{if(m.length>0){this.emit("stdline",m)}if(h.length>0){this.emit("errline",h)}d.removeAllListeners();if(n){t(n)}else{e(o)}}));if(this.options.input){if(!d.stdin){throw new Error("child process missing stdin")}d.stdin.end(this.options.input)}}))))}))}}function argStringToArray(e){const t=[];let n=false;let o=false;let i="";function append(e){if(o&&e!=='"'){i+="\\"}i+=e;o=false}for(let a=0;a<e.length;a++){const d=e.charAt(a);if(d==='"'){if(!o){n=!n}else{append(d)}continue}if(d==="\\"&&o){append(d);continue}if(d==="\\"&&n){o=true;continue}if(d===" "&&!n){if(i.length>0){t.push(i);i=""}continue}append(d)}if(i.length>0){t.push(i.trim())}return t}class ExecState extends Ce.EventEmitter{constructor(e,t){super();this.processClosed=false;this.processError="";this.processExitCode=0;this.processExited=false;this.processStderr=false;this.delay=1e4;this.done=false;this.timeout=null;if(!t){throw new Error("toolPath must not be empty")}this.options=e;this.toolPath=t;if(e.delay){this.delay=e.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=(0,Me.setTimeout)(ExecState.HandleTimeout,this.delay,this)}}_debug(e){this.emit("debug",e)}_setResult(){let e;if(this.processExited){if(this.processError){e=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){e=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){e=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",e,this.processExitCode)}static HandleTimeout(e){if(e.done){return}if(!e.processClosed&&e.processExited){const t=`The STDIO streams did not close within ${e.delay/1e3} seconds of the exit event from process '${e.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;e._debug(t)}e._setResult()}}var Ge=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function exec_exec(e,t,n){return Ge(this,void 0,void 0,(function*(){const o=argStringToArray(e);if(o.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const i=o[0];t=o.slice(1).concat(t||[]);const a=new ToolRunner(i,t,n);return a.exec()}))}function getExecOutput(e,t,n){return Ge(this,void 0,void 0,(function*(){var o,i;let a="";let d="";const m=new Ee.StringDecoder("utf8");const h=new Ee.StringDecoder("utf8");const f=(o=n===null||n===void 0?void 0:n.listeners)===null||o===void 0?void 0:o.stdout;const C=(i=n===null||n===void 0?void 0:n.listeners)===null||i===void 0?void 0:i.stderr;const stdErrListener=e=>{d+=h.write(e);if(C){C(e)}};const stdOutListener=e=>{a+=m.write(e);if(f){f(e)}};const P=Object.assign(Object.assign({},n===null||n===void 0?void 0:n.listeners),{stdout:stdOutListener,stderr:stdErrListener});const D=yield exec_exec(e,t,Object.assign(Object.assign({},n),{listeners:P}));a+=m.end();d+=h.end();return{exitCode:D,stdout:a,stderr:d}}))}var qe=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const getWindowsInfo=()=>qe(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Version"',undefined,{silent:true});const{stdout:t}=yield exec.getExecOutput('powershell -command "(Get-CimInstance -ClassName Win32_OperatingSystem).Caption"',undefined,{silent:true});return{name:t.trim(),version:e.trim()}}));const getMacOsInfo=()=>qe(void 0,void 0,void 0,(function*(){var e,t,n,o;const{stdout:i}=yield exec.getExecOutput("sw_vers",undefined,{silent:true});const a=(t=(e=i.match(/ProductVersion:\s*(.+)/))===null||e===void 0?void 0:e[1])!==null&&t!==void 0?t:"";const d=(o=(n=i.match(/ProductName:\s*(.+)/))===null||n===void 0?void 0:n[1])!==null&&o!==void 0?o:"";return{name:d,version:a}}));const getLinuxInfo=()=>qe(void 0,void 0,void 0,(function*(){const{stdout:e}=yield exec.getExecOutput("lsb_release",["-i","-r","-s"],{silent:true});const[t,n]=e.trim().split("\n");return{name:t,version:n}}));const ze=a.platform();const Ve=a.arch();const je=ze==="win32";const Ye=ze==="darwin";const Je=ze==="linux";function getDetails(){return qe(this,void 0,void 0,(function*(){return Object.assign(Object.assign({},yield je?getWindowsInfo():Ye?getMacOsInfo():getLinuxInfo()),{platform:ze,arch:Ve,isWindows:je,isMacOS:Ye,isLinux:Je})}))}var We=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Ke;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(Ke||(Ke={}));function exportVariable(e,t){const n=toCommandValue(t);process.env[e]=n;const o=process.env["GITHUB_ENV"]||"";if(o){return issueFileCommand("ENV",prepareKeyValueMessage(e,t))}issueCommand("set-env",{name:e},n)}function core_setSecret(e){command_issueCommand("add-mask",{},e)}function addPath(e){const t=process.env["GITHUB_PATH"]||"";if(t){issueFileCommand("PATH",e)}else{issueCommand("add-path",{},e)}process.env["PATH"]=`${e}${path.delimiter}${process.env["PATH"]}`}function getInput(e,t){const n=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!n){throw new Error(`Input required and not supplied: ${e}`)}if(t&&t.trimWhitespace===false){return n}return n.trim()}function getMultilineInput(e,t){const n=getInput(e,t).split("\n").filter((e=>e!==""));if(t&&t.trimWhitespace===false){return n}return n.map((e=>e.trim()))}function getBooleanInput(e,t){const n=["true","True","TRUE"];const o=["false","False","FALSE"];const i=getInput(e,t);if(n.includes(i))return true;if(o.includes(i))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${e}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}function setOutput(e,t){const n=process.env["GITHUB_OUTPUT"]||"";if(n){return issueFileCommand("OUTPUT",prepareKeyValueMessage(e,t))}process.stdout.write(os.EOL);issueCommand("set-output",{name:e},toCommandValue(t))}function setCommandEcho(e){issue("echo",e?"on":"off")}function setFailed(e){process.exitCode=Ke.Failure;core_error(e)}function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}function core_debug(e){command_issueCommand("debug",{},e)}function core_error(e,t={}){command_issueCommand("error",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function warning(e,t={}){command_issueCommand("warning",utils_toCommandProperties(t),e instanceof Error?e.toString():e)}function notice(e,t={}){issueCommand("notice",toCommandProperties(t),e instanceof Error?e.toString():e)}function info(e){process.stdout.write(e+a.EOL)}function startGroup(e){command_issue("group",e)}function endGroup(){command_issue("endgroup")}function group(e,t){return We(this,void 0,void 0,(function*(){startGroup(e);let n;try{n=yield t()}finally{endGroup()}return n}))}function saveState(e,t){const n=process.env["GITHUB_STATE"]||"";if(n){return file_command_issueFileCommand("STATE",file_command_prepareKeyValueMessage(e,t))}command_issueCommand("save-state",{name:e},utils_toCommandValue(t))}function getState(e){return process.env[`STATE_${e}`]||""}function getIDToken(e){return We(this,void 0,void 0,(function*(){return yield OidcClient.getIDToken(e)}))}var Xe=__nccwpck_require__(2088);var Ze=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const ht={readLinuxVersionFile(){const e="/etc/lsb-release";const t="/etc/os-release";let n="";if(h.existsSync(e)){n=h.readFileSync(e).toString()}else if(h.existsSync(t)){n=h.readFileSync(t).toString()}return n}};function _findMatch(e,t,n,o){return Ze(this,void 0,void 0,(function*(){const i=os.platform();let a;let d;let m;for(const a of n){const n=a.version;debug(`check ${n} satisfies ${e}`);if(semver.satisfies(n,e)&&(!t||a.stable===t)){m=a.files.find((e=>{debug(`${e.arch}===${o} && ${e.platform}===${i}`);let t=e.arch===o&&e.platform===i;if(t&&e.platform_version){const n=_getOsVersion();if(n===e.platform_version){t=true}else{t=semver.satisfies(n,e.platform_version)}}return t}));if(m){debug(`matched ${a.version}`);d=a;break}}}if(d&&m){a=Object.assign({},d);a.files=[m]}return a}))}function _getOsVersion(){const e=os.platform();let t="";if(e==="darwin"){t=cp.execSync("sw_vers -productVersion").toString()}else if(e==="linux"){const e=ht.readLinuxVersionFile();if(e){const n=e.split("\n");for(const e of n){const n=e.split("=");if(n.length===2&&(n[0].trim()==="VERSION_ID"||n[0].trim()==="DISTRIB_RELEASE")){t=n[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return t}function _readLinuxVersionFile(){return ht.readLinuxVersionFile()}var It=__nccwpck_require__(2203);var Bt=__nccwpck_require__(9023);var Rt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class retry_helper_RetryHelper{constructor(e,t,n){if(e<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=e;this.minSeconds=Math.floor(t);this.maxSeconds=Math.floor(n);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(e,t){return Rt(this,void 0,void 0,(function*(){let n=1;while(n<this.maxAttempts){try{return yield e()}catch(e){if(t&&!t(e)){throw e}core.info(e.message)}const o=this.getSleepAmount();core.info(`Waiting ${o} seconds before trying again`);yield this.sleep(o);n++}return yield e()}))}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Rt(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e*1e3)))}))}}var Qt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class HTTPError extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`);this.httpStatusCode=e;Object.setPrototypeOf(this,new.target.prototype)}}const Pt=process.platform==="win32";const Dt=process.platform==="darwin";const kt="actions/tool-cache";function downloadTool(e,t,n,o){return Qt(this,void 0,void 0,(function*(){t=t||path.join(_getTempDirectory(),crypto.randomUUID());yield io.mkdirP(path.dirname(t));core.debug(`Downloading ${e}`);core.debug(`Destination ${t}`);const i=3;const a=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const d=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const m=new RetryHelper(i,a,d);return yield m.execute((()=>Qt(this,void 0,void 0,(function*(){return yield downloadToolAttempt(e,t||"",n,o)}))),(e=>{if(e instanceof HTTPError&&e.httpStatusCode){if(e.httpStatusCode<500&&e.httpStatusCode!==408&&e.httpStatusCode!==429){return false}}return true}))}))}function downloadToolAttempt(e,t,n,o){return Qt(this,void 0,void 0,(function*(){if(fs.existsSync(t)){throw new Error(`Destination file path ${t} already exists`)}const i=new httpm.HttpClient(kt,[],{allowRetries:false});if(n){core.debug("set auth");if(o===undefined){o={}}o.authorization=n}const a=yield i.get(e,o);if(a.message.statusCode!==200){const t=new HTTPError(a.message.statusCode);core.debug(`Failed to download from "${e}". Code(${a.message.statusCode}) Message(${a.message.statusMessage})`);throw t}const d=util.promisify(stream.pipeline);const m=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>a.message));const h=m();let f=false;try{yield d(h,fs.createWriteStream(t));core.debug("download complete");f=true;return t}finally{if(!f){core.debug("download failed");try{yield io.rmRF(t)}catch(e){core.debug(`Failed to delete '${t}'. ${e.message}`)}}}}))}function extract7z(e,t,n){return Qt(this,void 0,void 0,(function*(){ok(Pt,"extract7z() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);const o=process.cwd();process.chdir(t);if(n){try{const t=core.isDebug()?"-bb1":"-bb0";const o=["x",t,"-bd","-sccUTF-8",e];const i={silent:true};yield exec(`"${n}"`,o,i)}finally{process.chdir(o)}}else{const n=path.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const a=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=`& '${n}' -Source '${i}' -Target '${a}'`;const m=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",d];const h={silent:true};try{const e=yield io.which("powershell",true);yield exec(`"${e}"`,m,h)}finally{process.chdir(o)}}return t}))}function extractTar(e,t){return Qt(this,arguments,void 0,(function*(e,t,n="xz"){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);core.debug("Checking tar --version");let o="";yield exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>o+=e.toString(),stderr:e=>o+=e.toString()}});core.debug(o.trim());const i=o.toUpperCase().includes("GNU TAR");let a;if(n instanceof Array){a=n}else{a=[n]}if(core.isDebug()&&!n.includes("v")){a.push("-v")}let d=t;let m=e;if(Pt&&i){a.push("--force-local");d=t.replace(/\\/g,"/");m=e.replace(/\\/g,"/")}if(i){a.push("--warning=no-unknown-keyword");a.push("--overwrite")}a.push("-C",d,"-f",m);yield exec(`tar`,a);return t}))}function extractXar(e,t){return Qt(this,arguments,void 0,(function*(e,t,n=[]){ok(Dt,"extractXar() not supported on current OS");ok(e,'parameter "file" is required');t=yield _createExtractFolder(t);let o;if(n instanceof Array){o=n}else{o=[n]}o.push("-x","-C",t,"-f",e);if(core.isDebug()){o.push("-v")}const i=yield io.which("xar",true);yield exec(`"${i}"`,_unique(o));return t}))}function extractZip(e,t){return Qt(this,void 0,void 0,(function*(){if(!e){throw new Error("parameter 'file' is required")}t=yield _createExtractFolder(t);if(Pt){yield extractZipWin(e,t)}else{yield extractZipNix(e,t)}return t}))}function extractZipWin(e,t){return Qt(this,void 0,void 0,(function*(){const n=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const o=t.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=yield io.which("pwsh",false);if(i){const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${o}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${n}' -DestinationPath '${o}' -Force } else { throw $_ } } ;`].join(" ");const t=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];core.debug(`Using pwsh at path: ${i}`);yield exec(`"${i}"`,t)}else{const e=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.FileSystem } catch { } ;`,`if ((Get-Command -Name Expand-Archive -Module Microsoft.PowerShell.Archive -ErrorAction Ignore)) { Expand-Archive -LiteralPath '${n}' -DestinationPath '${o}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${n}', '${o}', $true) }`].join(" ");const t=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",e];const i=yield io.which("powershell",true);core.debug(`Using powershell at path: ${i}`);yield exec(`"${i}"`,t)}}))}function extractZipNix(e,t){return Qt(this,void 0,void 0,(function*(){const n=yield io.which("unzip",true);const o=[e];if(!core.isDebug()){o.unshift("-q")}o.unshift("-o");yield exec(`"${n}"`,o,{cwd:t})}))}function cacheDir(e,t,n,o){return Qt(this,void 0,void 0,(function*(){n=Xe.clean(n)||n;o=o||a.arch();core_debug(`Caching tool ${t} ${n} ${o}`);core_debug(`source dir: ${e}`);if(!h.statSync(e).isDirectory()){throw new Error("sourceDir is not a directory")}const i=yield _createToolPath(t,n,o);for(const t of h.readdirSync(e)){const n=f.join(e,t);yield io_cp(n,i,{recursive:true})}_completeToolPath(t,n,o);return i}))}function cacheFile(e,t,n,o,i){return Qt(this,void 0,void 0,(function*(){o=semver.clean(o)||o;i=i||os.arch();core.debug(`Caching tool ${n} ${o} ${i}`);core.debug(`source file: ${e}`);if(!fs.statSync(e).isFile()){throw new Error("sourceFile is not a file")}const a=yield _createToolPath(n,o,i);const d=path.join(a,t);core.debug(`destination file ${d}`);yield io.cp(e,d);_completeToolPath(n,o,i);return a}))}function find(e,t,n){if(!e){throw new Error("toolName parameter is required")}if(!t){throw new Error("versionSpec parameter is required")}n=n||a.arch();if(!isExplicitVersion(t)){const o=findAllVersions(e,n);const i=evaluateVersions(o,t);t=i}let o="";if(t){t=Xe.clean(t)||"";const i=f.join(_getCacheDirectory(),e,t,n);core_debug(`checking cache: ${i}`);if(h.existsSync(i)&&h.existsSync(`${i}.complete`)){core_debug(`Found tool in cache ${e} ${t} ${n}`);o=i}else{core_debug("not found")}}return o}function findAllVersions(e,t){const n=[];t=t||a.arch();const o=f.join(_getCacheDirectory(),e);if(h.existsSync(o)){const e=h.readdirSync(o);for(const i of e){if(isExplicitVersion(i)){const e=f.join(o,i,t||"");if(h.existsSync(e)&&h.existsSync(`${e}.complete`)){n.push(i)}}}}return n}function getManifestFromRepo(e,t,n){return Qt(this,arguments,void 0,(function*(e,t,n,o="master"){let i=[];const a=`https://api.github.com/repos/${e}/${t}/git/trees/${o}`;const d=new httpm.HttpClient("tool-cache");const m={};if(n){core.debug("set auth");m.authorization=n}const h=yield d.getJson(a,m);if(!h.result){return i}let f="";for(const e of h.result.tree){if(e.path==="versions-manifest.json"){f=e.url;break}}m["accept"]="application/vnd.github.VERSION.raw";let C=yield(yield d.get(f,m)).readBody();if(C){C=C.replace(/^\uFEFF/,"");try{i=JSON.parse(C)}catch(e){core.debug("Invalid json")}}return i}))}function findFromManifest(e,t,n){return Qt(this,arguments,void 0,(function*(e,t,n,o=os.arch()){const i=yield mm._findMatch(e,t,n,o);return i}))}function _createExtractFolder(e){return Qt(this,void 0,void 0,(function*(){if(!e){e=path.join(_getTempDirectory(),crypto.randomUUID())}yield io.mkdirP(e);return e}))}function _createToolPath(e,t,n){return Qt(this,void 0,void 0,(function*(){const o=f.join(_getCacheDirectory(),e,Xe.clean(t)||t,n||"");core_debug(`destination ${o}`);const i=`${o}.complete`;yield rmRF(o);yield rmRF(i);yield mkdirP(o);return o}))}function _completeToolPath(e,t,n){const o=f.join(_getCacheDirectory(),e,Xe.clean(t)||t,n||"");const i=`${o}.complete`;h.writeFileSync(i,"");core_debug("finished caching tool")}function isExplicitVersion(e){const t=Xe.clean(e)||"";core_debug(`isExplicit: ${t}`);const n=Xe.valid(t)!=null;core_debug(`explicit? ${n}`);return n}function evaluateVersions(e,t){let n="";core_debug(`evaluating ${e.length} versions`);e=e.sort(((e,t)=>{if(Xe.gt(e,t)){return 1}return-1}));for(let o=e.length-1;o>=0;o--){const i=e[o];const a=Xe.satisfies(i,t);if(a){n=i;break}}if(n){core_debug(`matched: ${n}`)}else{core_debug("match not found")}return n}function _getCacheDirectory(){const e=process.env["RUNNER_TOOL_CACHE"]||"";(0,be.ok)(e,"Expected RUNNER_TOOL_CACHE to be defined");return e}function _getTempDirectory(){const e=process.env["RUNNER_TEMP"]||"";ok(e,"Expected RUNNER_TEMP to be defined");return e}function _getGlobal(e,t){const n=global[e];return n!==undefined?n:t}function _unique(e){return Array.from(new Set(e))}function getOptions(e){const t={followSymbolicLinks:true,implicitDescendants:true,matchDirectories:true,omitBrokenSymbolicLinks:true,excludeHiddenFiles:false};if(e){if(typeof e.followSymbolicLinks==="boolean"){t.followSymbolicLinks=e.followSymbolicLinks;core_debug(`followSymbolicLinks '${t.followSymbolicLinks}'`)}if(typeof e.implicitDescendants==="boolean"){t.implicitDescendants=e.implicitDescendants;core_debug(`implicitDescendants '${t.implicitDescendants}'`)}if(typeof e.matchDirectories==="boolean"){t.matchDirectories=e.matchDirectories;core_debug(`matchDirectories '${t.matchDirectories}'`)}if(typeof e.omitBrokenSymbolicLinks==="boolean"){t.omitBrokenSymbolicLinks=e.omitBrokenSymbolicLinks;core_debug(`omitBrokenSymbolicLinks '${t.omitBrokenSymbolicLinks}'`)}if(typeof e.excludeHiddenFiles==="boolean"){t.excludeHiddenFiles=e.excludeHiddenFiles;core_debug(`excludeHiddenFiles '${t.excludeHiddenFiles}'`)}}return t}const _t=process.platform==="win32";function dirname(e){e=safeTrimTrailingSeparator(e);if(_t&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(e)){return e}let t=f.dirname(e);if(_t&&/^\\\\[^\\]+\\[^\\]+\\$/.test(t)){t=safeTrimTrailingSeparator(t)}return t}function ensureAbsoluteRoot(e,t){be(e,`ensureAbsoluteRoot parameter 'root' must not be empty`);be(t,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(t)){return t}if(_t){if(t.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let e=process.cwd();be(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);if(t[0].toUpperCase()===e[0].toUpperCase()){if(t.length===2){return`${t[0]}:\\${e.substr(3)}`}else{if(!e.endsWith("\\")){e+="\\"}return`${t[0]}:\\${e.substr(3)}${t.substr(2)}`}}else{return`${t[0]}:\\${t.substr(2)}`}}else if(internal_path_helper_normalizeSeparators(t).match(/^\\$|^\\[^\\]/)){const e=process.cwd();be(e.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${e}'`);return`${e[0]}:\\${t.substr(1)}`}}be(hasAbsoluteRoot(e),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(e.endsWith("/")||_t&&e.endsWith("\\")){}else{e+=f.sep}return e+t}function hasAbsoluteRoot(e){be(e,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);e=internal_path_helper_normalizeSeparators(e);if(_t){return e.startsWith("\\\\")||/^[A-Z]:\\/i.test(e)}return e.startsWith("/")}function hasRoot(e){be(e,`isRooted parameter 'itemPath' must not be empty`);e=internal_path_helper_normalizeSeparators(e);if(_t){return e.startsWith("\\")||/^[A-Z]:/i.test(e)}return e.startsWith("/")}function internal_path_helper_normalizeSeparators(e){e=e||"";if(_t){e=e.replace(/\//g,"\\");const t=/^\\\\+[^\\]/.test(e);return(t?"\\":"")+e.replace(/\\\\+/g,"\\")}return e.replace(/\/\/+/g,"/")}function safeTrimTrailingSeparator(e){if(!e){return""}e=internal_path_helper_normalizeSeparators(e);if(!e.endsWith(f.sep)){return e}if(e===f.sep){return e}if(_t&&/^[A-Z]:\\$/i.test(e)){return e}return e.substr(0,e.length-1)}var Lt;(function(e){e[e["None"]=0]="None";e[e["Directory"]=1]="Directory";e[e["File"]=2]="File";e[e["All"]=3]="All"})(Lt||(Lt={}));const Ft=process.platform==="win32";function getSearchPaths(e){e=e.filter((e=>!e.negate));const t={};for(const n of e){const e=Ft?n.searchPath.toUpperCase():n.searchPath;t[e]="candidate"}const n=[];for(const o of e){const e=Ft?o.searchPath.toUpperCase():o.searchPath;if(t[e]==="included"){continue}let i=false;let a=e;let d=dirname(a);while(d!==a){if(t[d]){i=true;break}a=d;d=dirname(a)}if(!i){n.push(o.searchPath);t[e]="included"}}return n}function internal_pattern_helper_match(e,t){let n=Lt.None;for(const o of e){if(o.negate){n&=~o.match(t)}else{n|=o.match(t)}}return n}function internal_pattern_helper_partialMatch(e,t){return e.some((e=>!e.negate&&e.partialMatch(t)))}var Ut=__nccwpck_require__(3772);const Mt=process.platform==="win32";class Path{constructor(e){this.segments=[];if(typeof e==="string"){be(e,`Parameter 'itemPath' must not be empty`);e=safeTrimTrailingSeparator(e);if(!hasRoot(e)){this.segments=e.split(f.sep)}else{let t=e;let n=dirname(t);while(n!==t){const e=f.basename(t);this.segments.unshift(e);t=n;n=dirname(t)}this.segments.unshift(t)}}else{be(e.length>0,`Parameter 'itemPath' must not be an empty array`);for(let t=0;t<e.length;t++){let n=e[t];be(n,`Parameter 'itemPath' must not contain any empty segments`);n=internal_path_helper_normalizeSeparators(e[t]);if(t===0&&hasRoot(n)){n=safeTrimTrailingSeparator(n);be(n===dirname(n),`Parameter 'itemPath' root segment contains information for multiple segments`);this.segments.push(n)}else{be(!n.includes(f.sep),`Parameter 'itemPath' contains unexpected path separators`);this.segments.push(n)}}}}toString(){let e=this.segments[0];let t=e.endsWith(f.sep)||Mt&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++){if(t){t=false}else{e+=f.sep}e+=this.segments[n]}return e}}const{Minimatch:Ht}=Ut;const $t=process.platform==="win32";class Pattern{constructor(e,t=false,n,o){this.negate=false;let i;if(typeof e==="string"){i=e.trim()}else{n=n||[];be(n.length,`Parameter 'segments' must not empty`);const t=Pattern.getLiteral(n[0]);be(t&&hasAbsoluteRoot(t),`Parameter 'segments' first element must be a root path`);i=new Path(n).toString().trim();if(e){i=`!${i}`}}while(i.startsWith("!")){this.negate=!this.negate;i=i.substr(1).trim()}i=Pattern.fixupPattern(i,o);this.segments=new Path(i).segments;this.trailingSeparator=internal_path_helper_normalizeSeparators(i).endsWith(f.sep);i=safeTrimTrailingSeparator(i);let a=false;const d=this.segments.map((e=>Pattern.getLiteral(e))).filter((e=>!a&&!(a=e==="")));this.searchPath=new Path(d).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(d[0]),$t?"i":"");this.isImplicitPattern=t;const m={dot:true,nobrace:true,nocase:$t,nocomment:true,noext:true,nonegate:true};i=$t?i.replace(/\\/g,"/"):i;this.minimatch=new Ht(i,m)}match(e){if(this.segments[this.segments.length-1]==="**"){e=internal_path_helper_normalizeSeparators(e);if(!e.endsWith(f.sep)&&this.isImplicitPattern===false){e=`${e}${f.sep}`}}else{e=safeTrimTrailingSeparator(e)}if(this.minimatch.match(e)){return this.trailingSeparator?Lt.Directory:Lt.All}return Lt.None}partialMatch(e){e=safeTrimTrailingSeparator(e);if(dirname(e)===e){return this.rootRegExp.test(e)}return this.minimatch.matchOne(e.split($t?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(e){return($t?e:e.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(e,t){be(e,"pattern cannot be empty");const n=new Path(e).segments.map((e=>Pattern.getLiteral(e)));be(n.every(((e,t)=>(e!=="."||t===0)&&e!=="..")),`Invalid pattern '${e}'. Relative pathing '.' and '..' is not allowed.`);be(!hasRoot(e)||n[0],`Invalid pattern '${e}'. Root segment must not contain globs.`);e=internal_path_helper_normalizeSeparators(e);if(e==="."||e.startsWith(`.${f.sep}`)){e=Pattern.globEscape(process.cwd())+e.substr(1)}else if(e==="~"||e.startsWith(`~${f.sep}`)){t=t||a.homedir();be(t,"Unable to determine HOME directory");be(hasAbsoluteRoot(t),`Expected HOME directory to be a rooted path. Actual '${t}'`);e=Pattern.globEscape(t)+e.substr(1)}else if($t&&(e.match(/^[A-Z]:$/i)||e.match(/^[A-Z]:[^\\]/i))){let t=ensureAbsoluteRoot("C:\\dummy-root",e.substr(0,2));if(e.length>2&&!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(2)}else if($t&&(e==="\\"||e.match(/^\\[^\\]/))){let t=ensureAbsoluteRoot("C:\\dummy-root","\\");if(!t.endsWith("\\")){t+="\\"}e=Pattern.globEscape(t)+e.substr(1)}else{e=ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),e)}return internal_path_helper_normalizeSeparators(e)}static getLiteral(e){let t="";for(let n=0;n<e.length;n++){const o=e[n];if(o==="\\"&&!$t&&n+1<e.length){t+=e[++n];continue}else if(o==="*"||o==="?"){return""}else if(o==="["&&n+1<e.length){let o="";let i=-1;for(let t=n+1;t<e.length;t++){const n=e[t];if(n==="\\"&&!$t&&t+1<e.length){o+=e[++t];continue}else if(n==="]"){i=t;break}else{o+=n}}if(i>=0){if(o.length>1){return""}if(o){t+=o;n=i;continue}}}t+=o}return t}static regExpEscape(e){return e.replace(/[[\\^$.|?*+()]/g,"\\$&")}}class SearchState{constructor(e,t){this.path=e;this.level=t}}var Gt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var qt=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};var zt=undefined&&undefined.__await||function(e){return this instanceof zt?(this.v=e,this):new zt(e)};var Vt=undefined&&undefined.__asyncGenerator||function(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator==="function"?AsyncIterator:Object).prototype),verb("next"),verb("throw"),verb("return",awaitReturn),i[Symbol.asyncIterator]=function(){return this},i;function awaitReturn(e){return function(t){return Promise.resolve(t).then(e,reject)}}function verb(e,t){if(o[e]){i[e]=function(t){return new Promise((function(n,o){a.push([e,t,n,o])>1||resume(e,t)}))};if(t)i[e]=t(i[e])}}function resume(e,t){try{step(o[e](t))}catch(e){settle(a[0][3],e)}}function step(e){e.value instanceof zt?Promise.resolve(e.value.v).then(fulfill,reject):settle(a[0][2],e)}function fulfill(e){resume("next",e)}function reject(e){resume("throw",e)}function settle(e,t){if(e(t),a.shift(),a.length)resume(a[0][0],a[0][1])}};const jt=process.platform==="win32";class DefaultGlobber{constructor(e){this.patterns=[];this.searchPaths=[];this.options=getOptions(e)}getSearchPaths(){return this.searchPaths.slice()}glob(){return Gt(this,void 0,void 0,(function*(){var e,t,n,o;const i=[];try{for(var a=true,d=qt(this.globGenerator()),m;m=yield d.next(),e=m.done,!e;a=true){o=m.value;a=false;const e=o;i.push(e)}}catch(e){t={error:e}}finally{try{if(!a&&!e&&(n=d.return))yield n.call(d)}finally{if(t)throw t.error}}return i}))}globGenerator(){return Vt(this,arguments,(function*globGenerator_1(){const e=getOptions(this.options);const t=[];for(const n of this.patterns){t.push(n);if(e.implicitDescendants&&(n.trailingSeparator||n.segments[n.segments.length-1]!=="**")){t.push(new Pattern(n.negate,true,n.segments.concat("**")))}}const n=[];for(const e of getSearchPaths(t)){core_debug(`Search path '${e}'`);try{yield zt(h.promises.lstat(e))}catch(e){if(e.code==="ENOENT"){continue}throw e}n.unshift(new SearchState(e,1))}const o=[];while(n.length){const i=n.pop();const a=internal_pattern_helper_match(t,i.path);const d=!!a||internal_pattern_helper_partialMatch(t,i.path);if(!a&&!d){continue}const m=yield zt(DefaultGlobber.stat(i,e,o));if(!m){continue}if(e.excludeHiddenFiles&&f.basename(i.path).match(/^\./)){continue}if(m.isDirectory()){if(a&Lt.Directory&&e.matchDirectories){yield yield zt(i.path)}else if(!d){continue}const t=i.level+1;const o=(yield zt(h.promises.readdir(i.path))).map((e=>new SearchState(f.join(i.path,e),t)));n.push(...o.reverse())}else if(a&Lt.File){yield yield zt(i.path)}}}))}static create(e,t){return Gt(this,void 0,void 0,(function*(){const n=new DefaultGlobber(t);if(jt){e=e.replace(/\r\n/g,"\n");e=e.replace(/\r/g,"\n")}const o=e.split("\n").map((e=>e.trim()));for(const e of o){if(!e||e.startsWith("#")){continue}else{n.patterns.push(new Pattern(e))}}n.searchPaths.push(...getSearchPaths(n.patterns));return n}))}static stat(e,t,n){return Gt(this,void 0,void 0,(function*(){let o;if(t.followSymbolicLinks){try{o=yield h.promises.stat(e.path)}catch(n){if(n.code==="ENOENT"){if(t.omitBrokenSymbolicLinks){core_debug(`Broken symlink '${e.path}'`);return undefined}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw n}}else{o=yield h.promises.lstat(e.path)}if(o.isDirectory()&&t.followSymbolicLinks){const t=yield h.promises.realpath(e.path);while(n.length>=e.level){n.pop()}if(n.some((e=>e===t))){core_debug(`Symlink cycle detected for path '${e.path}' and realpath '${t}'`);return undefined}n.push(t)}return o}))}}var Yt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var Jt=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};function hashFiles(e,t){return Yt(this,arguments,void 0,(function*(e,t,n=false){var o,i,a,d;var m;const h=n?core.info:core.debug;let f=false;const C=t?t:(m=process.env["GITHUB_WORKSPACE"])!==null&&m!==void 0?m:process.cwd();const P=crypto.createHash("sha256");let D=0;try{for(var k=true,L=Jt(e.globGenerator()),F;F=yield L.next(),o=F.done,!o;k=true){d=F.value;k=false;const e=d;h(e);if(!e.startsWith(`${C}${path.sep}`)){h(`Ignore '${e}' since it is not under GITHUB_WORKSPACE.`);continue}if(fs.statSync(e).isDirectory()){h(`Skip directory '${e}'.`);continue}const t=crypto.createHash("sha256");const n=util.promisify(stream.pipeline);yield n(fs.createReadStream(e),t);P.write(t.digest());D++;if(!f){f=true}}}catch(e){i={error:e}}finally{try{if(!k&&!o&&(a=L.return))yield a.call(L)}finally{if(i)throw i.error}}P.end();if(f){h(`Found ${D} files to hash.`);return P.digest("hex")}else{h(`No matches found for glob`);return""}}))}var Wt=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function create(e,t){return Wt(this,void 0,void 0,(function*(){return yield DefaultGlobber.create(e,t)}))}function glob_hashFiles(e){return Wt(this,arguments,void 0,(function*(e,t="",n,o=false){let i=true;if(n&&typeof n.followSymbolicLinks==="boolean"){i=n.followSymbolicLinks}const a=yield create(e,{followSymbolicLinks:i});return _hashFiles(a,t,o)}))}var Kt;(function(e){e["Gzip"]="cache.tgz";e["Zstd"]="cache.tzst"})(Kt||(Kt={}));var Xt;(function(e){e["Gzip"]="gzip";e["ZstdWithoutLong"]="zstd-without-long";e["Zstd"]="zstd"})(Xt||(Xt={}));var Zt;(function(e){e["GNU"]="gnu";e["BSD"]="bsd"})(Zt||(Zt={}));const er=2;const tr=5e3;const rr=5e3;const nr=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;const sr=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;const or="cache.tar";const ir="manifest.txt";const ar=10*Math.pow(1024,3);var cr=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};var lr=undefined&&undefined.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof __values==="function"?__values(e):e[Symbol.iterator](),n={},verb("next"),verb("throw"),verb("return"),n[Symbol.asyncIterator]=function(){return this},n);function verb(t){n[t]=e[t]&&function(n){return new Promise((function(o,i){n=e[t](n),settle(o,i,n.done,n.value)}))}}function settle(e,t,n,o){Promise.resolve(o).then((function(t){e({value:t,done:n})}),t)}};const ur="1.0";function createTempDirectory(){return cr(this,void 0,void 0,(function*(){const e=process.platform==="win32";let t=process.env["RUNNER_TEMP"]||"";if(!t){let n;if(e){n=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){n="/Users"}else{n="/home"}}t=f.join(n,"actions","temp")}const n=f.join(t,m.randomUUID());yield mkdirP(n);return n}))}function getArchiveFileSizeInBytes(e){return h.statSync(e).size}function resolvePaths(e){return cr(this,void 0,void 0,(function*(){var t,n,o,i;var a;const d=[];const m=(a=process.env["GITHUB_WORKSPACE"])!==null&&a!==void 0?a:process.cwd();const h=yield create(e.join("\n"),{implicitDescendants:false});try{for(var C=true,P=lr(h.globGenerator()),D;D=yield P.next(),t=D.done,!t;C=true){i=D.value;C=false;const e=i;const t=f.relative(m,e).replace(new RegExp(`\\${f.sep}`,"g"),"/");core_debug(`Matched: ${t}`);if(t===""){d.push(".")}else{d.push(`${t}`)}}}catch(e){n={error:e}}finally{try{if(!C&&!t&&(o=P.return))yield o.call(P)}finally{if(n)throw n.error}}return d}))}function unlinkFile(e){return cr(this,void 0,void 0,(function*(){return Bt.promisify(h.unlink)(e)}))}function getVersion(e){return cr(this,arguments,void 0,(function*(e,t=[]){let n="";t.push("--version");core_debug(`Checking ${e} ${t.join(" ")}`);try{yield exec_exec(`${e}`,t,{ignoreReturnCode:true,silent:true,listeners:{stdout:e=>n+=e.toString(),stderr:e=>n+=e.toString()}})}catch(e){core_debug(e.message)}n=n.trim();core_debug(n);return n}))}function getCompressionMethod(){return cr(this,void 0,void 0,(function*(){const e=yield getVersion("zstd",["--quiet"]);const t=Xe.clean(e);core_debug(`zstd version: ${t}`);if(e===""){return Xt.Gzip}else{return Xt.ZstdWithoutLong}}))}function getCacheFileName(e){return e===Xt.Gzip?Kt.Gzip:Kt.Zstd}function getGnuTarPathOnWindows(){return cr(this,void 0,void 0,(function*(){if(h.existsSync(nr)){return nr}const e=yield getVersion("tar");return e.toLowerCase().includes("gnu tar")?which("tar"):""}))}function assertDefined(e,t){if(t===undefined){throw Error(`Expected ${e} but value was undefiend`)}return t}function getCacheVersion(e,t,n=false){const o=e.slice();if(t){o.push(t)}if(process.platform==="win32"&&!n){o.push("windows-only")}o.push(ur);return m.createHash("sha256").update(o.join("|")).digest("hex")}function getRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"];if(!e){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return e}var dr=__nccwpck_require__(7016);class AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}var pr=__nccwpck_require__(8161);var Ar=__nccwpck_require__(7975);var mr=__nccwpck_require__(1708);function log(e,...t){mr.stderr.write(`${Ar.format(e,...t)}${pr.EOL}`)}const gr=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let hr;let fr=[];let yr=[];const Er=[];if(gr){enable(gr)}const Cr=Object.assign((e=>createDebugger(e)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(e){hr=e;fr=[];yr=[];const t=e.split(",").map((e=>e.trim()));for(const e of t){if(e.startsWith("-")){yr.push(e.substring(1))}else{fr.push(e)}}for(const e of Er){e.enabled=enabled(e.namespace)}}function enabled(e){if(e.endsWith("*")){return true}for(const t of yr){if(namespaceMatches(e,t)){return false}}for(const t of fr){if(namespaceMatches(e,t)){return true}}return false}function namespaceMatches(e,t){if(t.indexOf("*")===-1){return e===t}let n=t;if(t.indexOf("**")!==-1){const e=[];let o="";for(const n of t){if(n==="*"&&o==="*"){continue}else{o=n;e.push(n)}}n=e.join("")}let o=0;let i=0;const a=n.length;const d=e.length;let m=-1;let h=-1;while(o<d&&i<a){if(n[i]==="*"){m=i;i++;if(i===a){return true}while(e[o]!==n[i]){o++;if(o===d){return false}}h=o;o++;i++;continue}else if(n[i]===e[o]){i++;o++}else if(m>=0){i=m+1;o=h+1;if(o===d){return false}while(e[o]!==n[i]){o++;if(o===d){return false}}h=o;o++;i++;continue}else{return false}}const f=o===e.length;const C=i===n.length;const P=i===n.length-1&&n[i]==="*";return f&&(C||P)}function disable(){const e=hr||"";enable("");return e}function createDebugger(e){const t=Object.assign(debug,{enabled:enabled(e),destroy:destroy,log:Cr.log,namespace:e,extend:extend});function debug(...n){if(!t.enabled){return}if(n.length>0){n[0]=`${e} ${n[0]}`}t.log(...n)}Er.push(t);return t}function destroy(){const e=Er.indexOf(this);if(e>=0){Er.splice(e,1);return true}return false}function extend(e){const t=createDebugger(`${this.namespace}:${e}`);t.log=this.log;return t}const Ir=Cr;const br=["verbose","info","warning","error"];const Sr={verbose:400,info:300,warning:200,error:100};function patchLogMethod(e,t){t.log=(...t)=>{e.log(...t)}}function isTypeSpecRuntimeLogLevel(e){return br.includes(e)}function createLoggerContext(e){const t=new Set;const n=typeof process!=="undefined"&&process.env&&process.env[e.logLevelEnvVarName]||undefined;let o;const i=Ir(e.namespace);i.log=(...e)=>{Ir.log(...e)};function contextSetLogLevel(e){if(e&&!isTypeSpecRuntimeLogLevel(e)){throw new Error(`Unknown log level '${e}'. Acceptable values: ${br.join(",")}`)}o=e;const n=[];for(const e of t){if(shouldEnable(e)){n.push(e.namespace)}}Ir.enable(n.join(","))}if(n){if(isTypeSpecRuntimeLogLevel(n)){contextSetLogLevel(n)}else{console.error(`${e.logLevelEnvVarName} set to unknown log level '${n}'; logging is not enabled. Acceptable values: ${br.join(", ")}.`)}}function shouldEnable(e){return Boolean(o&&Sr[e.level]<=Sr[o])}function createLogger(e,n){const o=Object.assign(e.extend(n),{level:n});patchLogMethod(e,o);if(shouldEnable(o)){const e=Ir.disable();Ir.enable(e+","+o.namespace)}t.add(o);return o}function contextGetLogLevel(){return o}function contextCreateClientLogger(e){const t=i.extend(e);patchLogMethod(i,t);return{error:createLogger(t,"error"),warning:createLogger(t,"warning"),info:createLogger(t,"info"),verbose:createLogger(t,"verbose")}}return{setLogLevel:contextSetLogLevel,getLogLevel:contextGetLogLevel,createClientLogger:contextCreateClientLogger,logger:i}}const Br=createLoggerContext({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"});const wr=Br.logger;function setLogLevel(e){Br.setLogLevel(e)}function getLogLevel(){return Br.getLogLevel()}function createClientLogger(e){return Br.createClientLogger(e)}function normalizeName(e){return e.toLowerCase()}function*headerIterator(e){for(const t of e.values()){yield[t.name,t.value]}}class HttpHeadersImpl{_headersMap;constructor(e){this._headersMap=new Map;if(e){for(const t of Object.keys(e)){this.set(t,e[t])}}}set(e,t){this._headersMap.set(normalizeName(e),{name:e,value:String(t).trim()})}get(e){return this._headersMap.get(normalizeName(e))?.value}has(e){return this._headersMap.has(normalizeName(e))}delete(e){this._headersMap.delete(normalizeName(e))}toJSON(e={}){const t={};if(e.preserveCase){for(const e of this._headersMap.values()){t[e.name]=e.value}}else{for(const[e,n]of this._headersMap){t[e]=n.value}}return t}toString(){return JSON.stringify(this.toJSON({preserveCase:true}))}[Symbol.iterator](){return headerIterator(this._headersMap)}}function httpHeaders_createHttpHeaders(e){return new HttpHeadersImpl(e)}function randomUUID(){return crypto.randomUUID()}class PipelineRequestImpl{url;method;headers;timeout;withCredentials;body;multipartBody;formData;streamResponseStatusCodes;enableBrowserStreams;proxySettings;disableKeepAlive;abortSignal;requestId;allowInsecureConnection;onUploadProgress;onDownloadProgress;requestOverrides;authSchemes;constructor(e){this.url=e.url;this.body=e.body;this.headers=e.headers??httpHeaders_createHttpHeaders();this.method=e.method??"GET";this.timeout=e.timeout??0;this.multipartBody=e.multipartBody;this.formData=e.formData;this.disableKeepAlive=e.disableKeepAlive??false;this.proxySettings=e.proxySettings;this.streamResponseStatusCodes=e.streamResponseStatusCodes;this.withCredentials=e.withCredentials??false;this.abortSignal=e.abortSignal;this.onUploadProgress=e.onUploadProgress;this.onDownloadProgress=e.onDownloadProgress;this.requestId=e.requestId||randomUUID();this.allowInsecureConnection=e.allowInsecureConnection??false;this.enableBrowserStreams=e.enableBrowserStreams??false;this.requestOverrides=e.requestOverrides;this.authSchemes=e.authSchemes}}function pipelineRequest_createPipelineRequest(e){return new PipelineRequestImpl(e)}const Rr=new Set(["Deserialize","Serialize","Retry","Sign"]);class HttpPipeline{_policies=[];_orderedPolicies;constructor(e){this._policies=e?.slice(0)??[];this._orderedPolicies=undefined}addPolicy(e,t={}){if(t.phase&&t.afterPhase){throw new Error("Policies inside a phase cannot specify afterPhase.")}if(t.phase&&!Rr.has(t.phase)){throw new Error(`Invalid phase name: ${t.phase}`)}if(t.afterPhase&&!Rr.has(t.afterPhase)){throw new Error(`Invalid afterPhase name: ${t.afterPhase}`)}this._policies.push({policy:e,options:t});this._orderedPolicies=undefined}removePolicy(e){const t=[];this._policies=this._policies.filter((n=>{if(e.name&&n.policy.name===e.name||e.phase&&n.options.phase===e.phase){t.push(n.policy);return false}else{return true}}));this._orderedPolicies=undefined;return t}sendRequest(e,t){const n=this.getOrderedPolicies();const o=n.reduceRight(((e,t)=>n=>t.sendRequest(n,e)),(t=>e.sendRequest(t)));return o(t)}getOrderedPolicies(){if(!this._orderedPolicies){this._orderedPolicies=this.orderPolicies()}return this._orderedPolicies}clone(){return new HttpPipeline(this._policies)}static create(){return new HttpPipeline}orderPolicies(){const e=[];const t=new Map;function createPhase(e){return{name:e,policies:new Set,hasRun:false,hasAfterPolicies:false}}const n=createPhase("Serialize");const o=createPhase("None");const i=createPhase("Deserialize");const a=createPhase("Retry");const d=createPhase("Sign");const m=[n,o,i,a,d];function getPhase(e){if(e==="Retry"){return a}else if(e==="Serialize"){return n}else if(e==="Deserialize"){return i}else if(e==="Sign"){return d}else{return o}}for(const e of this._policies){const n=e.policy;const o=e.options;const i=n.name;if(t.has(i)){throw new Error("Duplicate policy names not allowed in pipeline")}const a={policy:n,dependsOn:new Set,dependants:new Set};if(o.afterPhase){a.afterPhase=getPhase(o.afterPhase);a.afterPhase.hasAfterPolicies=true}t.set(i,a);const d=getPhase(o.phase);d.policies.add(a)}for(const e of this._policies){const{policy:n,options:o}=e;const i=n.name;const a=t.get(i);if(!a){throw new Error(`Missing node for policy ${i}`)}if(o.afterPolicies){for(const e of o.afterPolicies){const n=t.get(e);if(n){a.dependsOn.add(n);n.dependants.add(a)}}}if(o.beforePolicies){for(const e of o.beforePolicies){const n=t.get(e);if(n){n.dependsOn.add(a);a.dependants.add(n)}}}}function walkPhase(n){n.hasRun=true;for(const o of n.policies){if(o.afterPhase&&(!o.afterPhase.hasRun||o.afterPhase.policies.size)){continue}if(o.dependsOn.size===0){e.push(o.policy);for(const e of o.dependants){e.dependsOn.delete(o)}t.delete(o.policy.name);n.policies.delete(o)}}}function walkPhases(){for(const e of m){walkPhase(e);if(e.policies.size>0&&e!==o){if(!o.hasRun){walkPhase(o)}return}if(e.hasAfterPolicies){walkPhase(o)}}}let h=0;while(t.size>0){h++;const t=e.length;walkPhases();if(e.length<=t&&h>1){throw new Error("Cannot satisfy policy dependencies due to requirements cycle.")}}return e}}function pipeline_createEmptyPipeline(){return HttpPipeline.create()}function isObject(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function isError(e){if(isObject(e)){const t=typeof e.name==="string";const n=typeof e.message==="string";return t&&n}return false}const Nr=Ar.inspect.custom;const xr="REDACTED";const Qr=["x-ms-client-request-id","x-ms-return-client-request-id","x-ms-useragent","x-ms-correlation-request-id","x-ms-request-id","client-request-id","ms-cv","return-client-request-id","traceparent","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Origin","Accept","Accept-Encoding","Cache-Control","Connection","Content-Length","Content-Type","Date","ETag","Expires","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","Last-Modified","Pragma","Request-Id","Retry-After","Server","Transfer-Encoding","User-Agent","WWW-Authenticate"];const Tr=["api-version"];class Sanitizer{allowedHeaderNames;allowedQueryParameters;constructor({additionalAllowedHeaderNames:e=[],additionalAllowedQueryParameters:t=[]}={}){e=Qr.concat(e);t=Tr.concat(t);this.allowedHeaderNames=new Set(e.map((e=>e.toLowerCase())));this.allowedQueryParameters=new Set(t.map((e=>e.toLowerCase())))}sanitize(e){const t=new Set;return JSON.stringify(e,((e,n)=>{if(n instanceof Error){return{...n,name:n.name,message:n.message}}if(e==="headers"){return this.sanitizeHeaders(n)}else if(e==="url"){return this.sanitizeUrl(n)}else if(e==="query"){return this.sanitizeQuery(n)}else if(e==="body"){return undefined}else if(e==="response"){return undefined}else if(e==="operationSpec"){return undefined}else if(Array.isArray(n)||isObject(n)){if(t.has(n)){return"[Circular]"}t.add(n)}return n}),2)}sanitizeUrl(e){if(typeof e!=="string"||e===null||e===""){return e}const t=new URL(e);if(!t.search){return e}for(const[e]of t.searchParams){if(!this.allowedQueryParameters.has(e.toLowerCase())){t.searchParams.set(e,xr)}}return t.toString()}sanitizeHeaders(e){const t={};for(const n of Object.keys(e)){if(this.allowedHeaderNames.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=xr}}return t}sanitizeQuery(e){if(typeof e!=="object"||e===null){return e}const t={};for(const n of Object.keys(e)){if(this.allowedQueryParameters.has(n.toLowerCase())){t[n]=e[n]}else{t[n]=xr}}return t}}const vr=new Sanitizer;class restError_RestError extends Error{static REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";static PARSE_ERROR="PARSE_ERROR";code;statusCode;request;response;details;constructor(e,t={}){super(e);this.name="RestError";this.code=t.code;this.statusCode=t.statusCode;Object.defineProperty(this,"request",{value:t.request,enumerable:false});Object.defineProperty(this,"response",{value:t.response,enumerable:false});const n=this.request?.agent?{maxFreeSockets:this.request.agent.maxFreeSockets,maxSockets:this.request.agent.maxSockets}:undefined;Object.defineProperty(this,Nr,{value:()=>`RestError: ${this.message} \n ${vr.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:false});Object.setPrototypeOf(this,restError_RestError.prototype)}}function restError_isRestError(e){if(e instanceof restError_RestError){return true}return isError(e)&&e.name==="RestError"}var Pr=__nccwpck_require__(7067);var Dr=__nccwpck_require__(4708);var kr=__nccwpck_require__(8522);var _r=__nccwpck_require__(7075);const Lr=createClientLogger("ts-http-runtime");const Or={};function nodeHttpClient_isReadableStream(e){return e&&typeof e.pipe==="function"}function isStreamComplete(e){if(e.readable===false){return Promise.resolve()}return new Promise((t=>{const handler=()=>{t();e.removeListener("close",handler);e.removeListener("end",handler);e.removeListener("error",handler)};e.on("close",handler);e.on("end",handler);e.on("error",handler)}))}function isArrayBuffer(e){return e&&typeof e.byteLength==="number"}class ReportTransform extends _r.Transform{loadedBytes=0;progressCallback;_transform(e,t,n){this.push(e);this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes});n()}catch(e){n(e)}}constructor(e){super();this.progressCallback=e}}class NodeHttpClient{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){const t=new AbortController;let n;if(e.abortSignal){if(e.abortSignal.aborted){throw new AbortError("The operation was aborted. Request has already been canceled.")}n=e=>{if(e.type==="abort"){t.abort()}};e.abortSignal.addEventListener("abort",n)}let o;if(e.timeout>0){o=setTimeout((()=>{const n=new Sanitizer;Lr.info(`request to '${n.sanitizeUrl(e.url)}' timed out. canceling...`);t.abort()}),e.timeout)}const i=e.headers.get("Accept-Encoding");const a=i?.includes("gzip")||i?.includes("deflate");let d=typeof e.body==="function"?e.body():e.body;if(d&&!e.headers.has("Content-Length")){const t=getBodyLength(d);if(t!==null){e.headers.set("Content-Length",t)}}let m;try{if(d&&e.onUploadProgress){const t=e.onUploadProgress;const n=new ReportTransform(t);n.on("error",(e=>{Lr.error("Error in upload progress",e)}));if(nodeHttpClient_isReadableStream(d)){d.pipe(n)}else{n.end(d)}d=n}const n=await this.makeRequest(e,t,d);if(o!==undefined){clearTimeout(o)}const i=getResponseHeaders(n);const h=n.statusCode??0;const f={status:h,headers:i,request:e};if(e.method==="HEAD"){n.resume();return f}m=a?getDecodedResponseStream(n,i):n;const C=e.onDownloadProgress;if(C){const e=new ReportTransform(C);e.on("error",(e=>{Lr.error("Error in download progress",e)}));m.pipe(e);m=e}if(e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(f.status)){f.readableStreamBody=m}else{f.bodyAsText=await streamToText(m)}return f}finally{if(e.abortSignal&&n){let t=Promise.resolve();if(nodeHttpClient_isReadableStream(d)){t=isStreamComplete(d)}let o=Promise.resolve();if(nodeHttpClient_isReadableStream(m)){o=isStreamComplete(m)}Promise.all([t,o]).then((()=>{if(n){e.abortSignal?.removeEventListener("abort",n)}})).catch((e=>{Lr.warning("Error when cleaning up abortListener on httpRequest",e)}))}}}makeRequest(e,t,n){const o=new URL(e.url);const i=o.protocol!=="https:";if(i&&!e.allowInsecureConnection){throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`)}const a=e.agent??this.getOrCreateAgent(e,i);const d={agent:a,hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:true}),...e.requestOverrides};return new Promise(((o,a)=>{const m=i?Pr.request(d,o):Dr.request(d,o);m.once("error",(t=>{a(new restError_RestError(t.message,{code:t.code??restError_RestError.REQUEST_SEND_ERROR,request:e}))}));t.signal.addEventListener("abort",(()=>{const e=new AbortError("The operation was aborted. Rejecting from abort signal callback while making request.");m.destroy(e);a(e)}));if(n&&nodeHttpClient_isReadableStream(n)){n.pipe(m)}else if(n){if(typeof n==="string"||Buffer.isBuffer(n)){m.end(n)}else if(isArrayBuffer(n)){m.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n))}else{Lr.error("Unrecognized body type",n);a(new restError_RestError("Unrecognized body type"))}}else{m.end()}}))}getOrCreateAgent(e,t){const n=e.disableKeepAlive;if(t){if(n){return Pr.globalAgent}if(!this.cachedHttpAgent){this.cachedHttpAgent=new Pr.Agent({keepAlive:true})}return this.cachedHttpAgent}else{if(n&&!e.tlsSettings){return Dr.globalAgent}const t=e.tlsSettings??Or;let o=this.cachedHttpsAgents.get(t);if(o&&o.options.keepAlive===!n){return o}Lr.info("No cached TLS Agent exist, creating a new Agent");o=new Dr.Agent({keepAlive:!n,...t});this.cachedHttpsAgents.set(t,o);return o}}}function getResponseHeaders(e){const t=httpHeaders_createHttpHeaders();for(const n of Object.keys(e.headers)){const o=e.headers[n];if(Array.isArray(o)){if(o.length>0){t.set(n,o[0])}}else if(o){t.set(n,o)}}return t}function getDecodedResponseStream(e,t){const n=t.get("Content-Encoding");if(n==="gzip"){const t=kr.createGunzip();e.pipe(t);return t}else if(n==="deflate"){const t=kr.createInflate();e.pipe(t);return t}return e}function streamToText(e){return new Promise(((t,n)=>{const o=[];e.on("data",(e=>{if(Buffer.isBuffer(e)){o.push(e)}else{o.push(Buffer.from(e))}}));e.on("end",(()=>{t(Buffer.concat(o).toString("utf8"))}));e.on("error",(e=>{if(e&&e?.name==="AbortError"){n(e)}else{n(new restError_RestError(`Error reading response as text: ${e.message}`,{code:restError_RestError.PARSE_ERROR}))}}))}))}function getBodyLength(e){if(!e){return 0}else if(Buffer.isBuffer(e)){return e.length}else if(nodeHttpClient_isReadableStream(e)){return null}else if(isArrayBuffer(e)){return e.byteLength}else if(typeof e==="string"){return Buffer.from(e).length}else{return null}}function createNodeHttpClient(){return new NodeHttpClient}function defaultHttpClient_createDefaultHttpClient(){return createNodeHttpClient()}const Fr="logPolicy";function logPolicy_logPolicy(e={}){const t=e.logger??Lr.info;const n=new Sanitizer({additionalAllowedHeaderNames:e.additionalAllowedHeaderNames,additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});return{name:Fr,async sendRequest(e,o){if(!t.enabled){return o(e)}t(`Request: ${n.sanitize(e)}`);const i=await o(e);t(`Response status code: ${i.status}`);t(`Headers: ${n.sanitize(i.headers)}`);return i}}}function getHeaderName(){return"User-Agent"}async function userAgentPlatform_setPlatformSpecificData(e){if(process&&process.versions){const t=`${os.type()} ${os.release()}; ${os.arch()}`;const n=process.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}function getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function getUserAgentHeaderName(){return getHeaderName()}async function userAgent_getUserAgentValue(e){const t=new Map;t.set("ts-http-runtime",SDK_VERSION);await setPlatformSpecificData(t);const n=getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const Ur=getUserAgentHeaderName();const Mr="userAgentPolicy";function userAgentPolicy_userAgentPolicy(e={}){const t=getUserAgentValue(e.userAgentPrefix);return{name:Mr,async sendRequest(e,n){if(!e.headers.has(Ur)){e.headers.set(Ur,await t)}return n(e)}}}function random_getRandomIntegerInclusive(e,t){e=Math.ceil(e);t=Math.floor(t);const n=Math.floor(Math.random()*(t-e+1));return n+e}function calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+random_getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}const Hr="The operation was aborted.";function delay(e,t,n){return new Promise(((o,i)=>{let a=undefined;let d=undefined;const rejectOnAbort=()=>i(new AbortError(n?.abortErrorMsg?n?.abortErrorMsg:Hr));const removeListeners=()=>{if(n?.abortSignal&&d){n.abortSignal.removeEventListener("abort",d)}};d=()=>{if(a){clearTimeout(a)}removeListeners();return rejectOnAbort()};if(n?.abortSignal&&n.abortSignal.aborted){return rejectOnAbort()}a=setTimeout((()=>{removeListeners();o(t)}),e);if(n?.abortSignal){n.abortSignal.addEventListener("abort",d)}}))}function parseHeaderValueAsNumber(e,t){const n=e.headers.get(t);if(!n)return;const o=Number(n);if(Number.isNaN(o))return;return o}const $r="Retry-After";const Gr=["retry-after-ms","x-ms-retry-after-ms",$r];function getRetryAfterInMs(e){if(!(e&&[429,503].includes(e.status)))return undefined;try{for(const t of Gr){const n=parseHeaderValueAsNumber(e,t);if(n===0||n){const e=t===$r?1e3:1;return n*e}}const t=e.headers.get($r);if(!t)return;const n=Date.parse(t);const o=n-Date.now();return Number.isFinite(o)?Math.max(0,o):undefined}catch{return undefined}}function isThrottlingRetryResponse(e){return Number.isFinite(getRetryAfterInMs(e))}function throttlingRetryStrategy_throttlingRetryStrategy(){return{name:"throttlingRetryStrategy",retry({response:e}){const t=getRetryAfterInMs(e);if(!Number.isFinite(t)){return{skipStrategy:true}}return{retryAfterInMs:t}}}}const qr=1e3;const zr=1e3*64;function exponentialRetryStrategy_exponentialRetryStrategy(e={}){const t=e.retryDelayInMs??qr;const n=e.maxRetryDelayInMs??zr;return{name:"exponentialRetryStrategy",retry({retryCount:o,response:i,responseError:a}){const d=isSystemError(a);const m=d&&e.ignoreSystemErrors;const h=isExponentialRetryResponse(i);const f=h&&e.ignoreHttpStatusCodes;const C=i&&(isThrottlingRetryResponse(i)||!h);if(C||f||m){return{skipStrategy:true}}if(a&&!d&&!h){return{errorToThrow:a}}return calculateRetryDelay(o,{retryDelayInMs:t,maxRetryDelayInMs:n})}}}function isExponentialRetryResponse(e){return Boolean(e&&e.status!==undefined&&(e.status>=500||e.status===408)&&e.status!==501&&e.status!==505)}function isSystemError(e){if(!e){return false}return e.code==="ETIMEDOUT"||e.code==="ESOCKETTIMEDOUT"||e.code==="ECONNREFUSED"||e.code==="ECONNRESET"||e.code==="ENOENT"||e.code==="ENOTFOUND"}const Vr="0.3.2";const jr=3;const Yr=createClientLogger("ts-http-runtime retryPolicy");const Jr="retryPolicy";function retryPolicy_retryPolicy(e,t={maxRetries:jr}){const n=t.logger||Yr;return{name:Jr,async sendRequest(o,i){let a;let d;let m=-1;e:while(true){m+=1;a=undefined;d=undefined;try{n.info(`Retry ${m}: Attempting to send request`,o.requestId);a=await i(o);n.info(`Retry ${m}: Received a response from request`,o.requestId)}catch(e){n.error(`Retry ${m}: Received an error from request`,o.requestId);d=e;if(!e||d.name!=="RestError"){throw e}a=d.response}if(o.abortSignal?.aborted){n.error(`Retry ${m}: Request aborted.`);const e=new AbortError;throw e}if(m>=(t.maxRetries??jr)){n.info(`Retry ${m}: Maximum retries reached. Returning the last received response, or throwing the last received error.`);if(d){throw d}else if(a){return a}else{throw new Error("Maximum retries reached with no response or error to throw")}}n.info(`Retry ${m}: Processing ${e.length} retry strategies.`);t:for(const t of e){const e=t.logger||n;e.info(`Retry ${m}: Processing retry strategy ${t.name}.`);const i=t.retry({retryCount:m,response:a,responseError:d});if(i.skipStrategy){e.info(`Retry ${m}: Skipped.`);continue t}const{errorToThrow:h,retryAfterInMs:f,redirectTo:C}=i;if(h){e.error(`Retry ${m}: Retry strategy ${t.name} throws error:`,h);throw h}if(f||f===0){e.info(`Retry ${m}: Retry strategy ${t.name} retries after ${f}`);await delay(f,undefined,{abortSignal:o.abortSignal});continue e}if(C){e.info(`Retry ${m}: Retry strategy ${t.name} redirects to ${C}`);o.url=C;continue e}}if(d){n.info(`None of the retry strategies could work with the received error. Throwing it.`);throw d}if(a){n.info(`None of the retry strategies could work with the received response. Returning it.`);return a}}}}}const Wr="defaultRetryPolicy";function defaultRetryPolicy_defaultRetryPolicy(e={}){return{name:Wr,sendRequest:retryPolicy_retryPolicy([throttlingRetryStrategy_throttlingRetryStrategy(),exponentialRetryStrategy_exponentialRetryStrategy(e)],{maxRetries:e.maxRetries??jr}).sendRequest}}function bytesEncoding_uint8ArrayToString(e,t){return Buffer.from(e).toString(t)}function bytesEncoding_stringToUint8Array(e,t){return Buffer.from(e,t)}const Kr=typeof window!=="undefined"&&typeof window.document!=="undefined";const Xr=typeof self==="object"&&typeof self?.importScripts==="function"&&(self.constructor?.name==="DedicatedWorkerGlobalScope"||self.constructor?.name==="ServiceWorkerGlobalScope"||self.constructor?.name==="SharedWorkerGlobalScope");const Zr=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const en=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const tn=typeof globalThis.process!=="undefined"&&Boolean(globalThis.process.version)&&Boolean(globalThis.process.versions?.node);const rn=tn&&!en&&!Zr;const nn=typeof navigator!=="undefined"&&navigator?.product==="ReactNative";const sn="formDataPolicy";function formDataToFormDataMap(e){const t={};for(const[n,o]of e.entries()){t[n]??=[];t[n].push(o)}return t}function formDataPolicy_formDataPolicy(){return{name:sn,async sendRequest(e,t){if(tn&&typeof FormData!=="undefined"&&e.body instanceof FormData){e.formData=formDataToFormDataMap(e.body);e.body=undefined}if(e.formData){const t=e.headers.get("Content-Type");if(t&&t.indexOf("application/x-www-form-urlencoded")!==-1){e.body=wwwFormUrlEncode(e.formData)}else{await prepareFormData(e.formData,e)}e.formData=undefined}return t(e)}}}function wwwFormUrlEncode(e){const t=new URLSearchParams;for(const[n,o]of Object.entries(e)){if(Array.isArray(o)){for(const e of o){t.append(n,e.toString())}}else{t.append(n,o.toString())}}return t.toString()}async function prepareFormData(e,t){const n=t.headers.get("Content-Type");if(n&&!n.startsWith("multipart/form-data")){return}t.headers.set("Content-Type",n??"multipart/form-data");const o=[];for(const[t,n]of Object.entries(e)){for(const e of Array.isArray(n)?n:[n]){if(typeof e==="string"){o.push({headers:httpHeaders_createHttpHeaders({"Content-Disposition":`form-data; name="${t}"`}),body:bytesEncoding_stringToUint8Array(e,"utf-8")})}else if(e===undefined||e===null||typeof e!=="object"){throw new Error(`Unexpected value for key ${t}: ${e}. Value should be serialized to string first.`)}else{const n=e.name||"blob";const i=httpHeaders_createHttpHeaders();i.set("Content-Disposition",`form-data; name="${t}"; filename="${n}"`);i.set("Content-Type",e.type||"application/octet-stream");o.push({headers:i,body:e})}}}t.multipartBody={parts:o}}var on=__nccwpck_require__(5588);var an=__nccwpck_require__(7969);const cn="HTTPS_PROXY";const ln="HTTP_PROXY";const un="ALL_PROXY";const dn="NO_PROXY";const pn="proxyPolicy";const An=[];let mn=false;const gn=new Map;function getEnvironmentValue(e){if(process.env[e]){return process.env[e]}else if(process.env[e.toLowerCase()]){return process.env[e.toLowerCase()]}return undefined}function loadEnvironmentProxyValue(){if(!process){return undefined}const e=getEnvironmentValue(cn);const t=getEnvironmentValue(un);const n=getEnvironmentValue(ln);return e||t||n}function isBypassed(e,t,n){if(t.length===0){return false}const o=new URL(e).hostname;if(n?.has(o)){return n.get(o)}let i=false;for(const e of t){if(e[0]==="."){if(o.endsWith(e)){i=true}else{if(o.length===e.length-1&&o===e.slice(1)){i=true}}}else{if(o===e){i=true}}}n?.set(o,i);return i}function loadNoProxy(){const e=getEnvironmentValue(dn);mn=true;if(e){return e.split(",").map((e=>e.trim())).filter((e=>e.length))}return[]}function getDefaultProxySettings(e){if(!e){e=loadEnvironmentProxyValue();if(!e){return undefined}}const t=new URL(e);const n=t.protocol?t.protocol+"//":"";return{host:n+t.hostname,port:Number.parseInt(t.port||"80"),username:t.username,password:t.password}}function getDefaultProxySettingsInternal(){const e=loadEnvironmentProxyValue();return e?new URL(e):undefined}function getUrlFromProxySettings(e){let t;try{t=new URL(e.host)}catch{throw new Error(`Expecting a valid host string in proxy settings, but found "${e.host}".`)}t.port=String(e.port);if(e.username){t.username=e.username}if(e.password){t.password=e.password}return t}function setProxyAgentOnRequest(e,t,n){if(e.agent){return}const o=new URL(e.url);const i=o.protocol!=="https:";if(e.tlsSettings){Lr.warning("TLS settings are not supported in combination with custom Proxy, certificates provided to the client will be ignored.")}const a=e.headers.toJSON();if(i){if(!t.httpProxyAgent){t.httpProxyAgent=new an.HttpProxyAgent(n,{headers:a})}e.agent=t.httpProxyAgent}else{if(!t.httpsProxyAgent){t.httpsProxyAgent=new on.HttpsProxyAgent(n,{headers:a})}e.agent=t.httpsProxyAgent}}function proxyPolicy_proxyPolicy(e,t){if(!mn){An.push(...loadNoProxy())}const n=e?getUrlFromProxySettings(e):getDefaultProxySettingsInternal();const o={};return{name:pn,async sendRequest(e,i){if(!e.proxySettings&&n&&!isBypassed(e.url,t?.customNoProxyList??An,t?.customNoProxyList?undefined:gn)){setProxyAgentOnRequest(e,o,n)}else if(e.proxySettings){setProxyAgentOnRequest(e,o,getUrlFromProxySettings(e.proxySettings))}return i(e)}}}function isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}function isWebReadableStream(e){return Boolean(e&&typeof e.getReader==="function"&&typeof e.tee==="function")}function typeGuards_isBinaryBody(e){return e!==undefined&&(e instanceof Uint8Array||typeGuards_isReadableStream(e)||typeof e==="function"||e instanceof Blob)}function typeGuards_isReadableStream(e){return isNodeReadableStream(e)||isWebReadableStream(e)}function isBlob(e){return typeof e.stream==="function"}async function*streamAsyncIterator(){const e=this.getReader();try{while(true){const{done:t,value:n}=await e.read();if(t){return}yield n}}finally{e.releaseLock()}}function makeAsyncIterable(e){if(!e[Symbol.asyncIterator]){e[Symbol.asyncIterator]=streamAsyncIterator.bind(e)}if(!e.values){e.values=streamAsyncIterator.bind(e)}}function ensureNodeStream(e){if(e instanceof ReadableStream){makeAsyncIterable(e);return It.Readable.fromWeb(e)}else{return e}}function toStream(e){if(e instanceof Uint8Array){return It.Readable.from(Buffer.from(e))}else if(isBlob(e)){return ensureNodeStream(e.stream())}else{return ensureNodeStream(e)}}async function concat(e){return function(){const t=e.map((e=>typeof e==="function"?e():e)).map(toStream);return It.Readable.from(async function*(){for(const e of t){for await(const t of e){yield t}}}())}}function generateBoundary(){return`----AzSDKFormBoundary${randomUUID()}`}function encodeHeaders(e){let t="";for(const[n,o]of e){t+=`${n}: ${o}\r\n`}return t}function getLength(e){if(e instanceof Uint8Array){return e.byteLength}else if(isBlob(e)){return e.size===-1?undefined:e.size}else{return undefined}}function getTotalLength(e){let t=0;for(const n of e){const e=getLength(n);if(e===undefined){return undefined}else{t+=e}}return t}async function buildRequestBody(e,t,n){const o=[bytesEncoding_stringToUint8Array(`--${n}`,"utf-8"),...t.flatMap((e=>[bytesEncoding_stringToUint8Array("\r\n","utf-8"),bytesEncoding_stringToUint8Array(encodeHeaders(e.headers),"utf-8"),bytesEncoding_stringToUint8Array("\r\n","utf-8"),e.body,bytesEncoding_stringToUint8Array(`\r\n--${n}`,"utf-8")])),bytesEncoding_stringToUint8Array("--\r\n\r\n","utf-8")];const i=getTotalLength(o);if(i){e.headers.set("Content-Length",i)}e.body=await concat(o)}const hn="multipartPolicy";const yn=70;const En=new Set(`abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?`);function assertValidBoundary(e){if(e.length>yn){throw new Error(`Multipart boundary "${e}" exceeds maximum length of 70 characters`)}if(Array.from(e).some((e=>!En.has(e)))){throw new Error(`Multipart boundary "${e}" contains invalid characters`)}}function multipartPolicy_multipartPolicy(){return{name:hn,async sendRequest(e,t){if(!e.multipartBody){return t(e)}if(e.body){throw new Error("multipartBody and regular body cannot be set at the same time")}let n=e.multipartBody.boundary;const o=e.headers.get("Content-Type")??"multipart/mixed";const i=o.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i){throw new Error(`Got multipart request body, but content-type header was not multipart: ${o}`)}const[,a,d]=i;if(d&&n&&d!==n){throw new Error(`Multipart boundary was specified as ${d} in the header, but got ${n} in the request body`)}n??=d;if(n){assertValidBoundary(n)}else{n=generateBoundary()}e.headers.set("Content-Type",`${a}; boundary=${n}`);await buildRequestBody(e,e.multipartBody.parts,n);e.multipartBody=undefined;return t(e)}}}function createPipelineFromOptions_createPipelineFromOptions(e){const t=createEmptyPipeline();if(isNodeLike){if(e.agent){t.addPolicy(agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(tlsPolicy(e.tlsOptions))}t.addPolicy(proxyPolicy(e.proxyOptions));t.addPolicy(decompressResponsePolicy())}t.addPolicy(formDataPolicy(),{beforePolicies:[multipartPolicyName]});t.addPolicy(userAgentPolicy(e.userAgentOptions));t.addPolicy(multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(defaultRetryPolicy(e.retryOptions),{phase:"Retry"});if(isNodeLike){t.addPolicy(redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}let Cn=false;function allowInsecureConnection(e,t){if(t.allowInsecureConnection&&e.allowInsecureConnection){const t=new URL(e.url);if(t.hostname==="localhost"||t.hostname==="127.0.0.1"){return true}}return false}function emitInsecureConnectionWarning(){const e="Sending token over insecure transport. Assume any token issued is compromised.";logger.warning(e);if(typeof process?.emitWarning==="function"&&!Cn){Cn=true;process.emitWarning(e)}}function checkInsecureConnection_ensureSecureConnection(e,t){if(!e.url.toLowerCase().startsWith("https://")){if(allowInsecureConnection(e,t)){emitInsecureConnectionWarning()}else{throw new Error("Authentication is not permitted for non-TLS protected (non-https) URLs when allowInsecureConnection is false.")}}}const In="apiKeyAuthenticationPolicy";function apiKeyAuthenticationPolicy_apiKeyAuthenticationPolicy(e){return{name:In,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="apiKey"));if(!o){return n(t)}if(o.apiKeyLocation!=="header"){throw new Error(`Unsupported API key location: ${o.apiKeyLocation}`)}t.headers.set(o.name,e.credential.key);return n(t)}}}const bn="bearerAuthenticationPolicy";function basicAuthenticationPolicy_basicAuthenticationPolicy(e){return{name:bn,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="basic"));if(!o){return n(t)}const{username:i,password:a}=e.credential;const d=uint8ArrayToString(stringToUint8Array(`${i}:${a}`,"utf-8"),"base64");t.headers.set("Authorization",`Basic ${d}`);return n(t)}}}const Sn="bearerAuthenticationPolicy";function bearerAuthenticationPolicy_bearerAuthenticationPolicy(e){return{name:Sn,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="http"&&e.scheme==="bearer"));if(!o){return n(t)}const i=await e.credential.getBearerToken({abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}const Bn="oauth2AuthenticationPolicy";function oauth2AuthenticationPolicy_oauth2AuthenticationPolicy(e){return{name:Bn,async sendRequest(t,n){ensureSecureConnection(t,e);const o=(t.authSchemes??e.authSchemes)?.find((e=>e.kind==="oauth2"));if(!o){return n(t)}const i=await e.credential.getOAuth2Token(o.flows,{abortSignal:t.abortSignal});t.headers.set("Authorization",`Bearer ${i}`);return n(t)}}}let wn;function clientHelpers_createDefaultPipeline(e={}){const t=createPipelineFromOptions(e);t.addPolicy(apiVersionPolicy(e));const{credential:n,authSchemes:o,allowInsecureConnection:i}=e;if(n){if(isApiKeyCredential(n)){t.addPolicy(apiKeyAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBasicCredential(n)){t.addPolicy(basicAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isBearerTokenCredential(n)){t.addPolicy(bearerAuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}else if(isOAuth2TokenCredential(n)){t.addPolicy(oauth2AuthenticationPolicy({authSchemes:o,credential:n,allowInsecureConnection:i}))}}return t}function clientHelpers_getCachedDefaultHttpsClient(){if(!wn){wn=createDefaultHttpClient()}return wn}function getHeaderValue(e,t){if(e.headers){const n=Object.keys(e.headers).find((e=>e.toLowerCase()===t.toLowerCase()));if(n){return e.headers[n]}}return undefined}function getPartContentType(e){const t=getHeaderValue(e,"content-type");if(t){return t}if(e.contentType===null){return undefined}if(e.contentType){return e.contentType}const{body:n}=e;if(n===null||n===undefined){return undefined}if(typeof n==="string"||typeof n==="number"||typeof n==="boolean"){return"text/plain; charset=UTF-8"}if(n instanceof Blob){return n.type||"application/octet-stream"}if(isBinaryBody(n)){return"application/octet-stream"}return"application/json"}function escapeDispositionField(e){return JSON.stringify(e)}function getContentDisposition(e){const t=getHeaderValue(e,"content-disposition");if(t){return t}if(e.dispositionType===undefined&&e.name===undefined&&e.filename===undefined){return undefined}const n=e.dispositionType??"form-data";let o=n;if(e.name){o+=`; name=${escapeDispositionField(e.name)}`}let i=undefined;if(e.filename){i=e.filename}else if(typeof File!=="undefined"&&e.body instanceof File){const t=e.body.name;if(t!==""){i=t}}if(i){o+=`; filename=${escapeDispositionField(i)}`}return o}function normalizeBody(e,t){if(e===undefined){return new Uint8Array([])}if(isBinaryBody(e)){return e}if(typeof e==="string"||typeof e==="number"||typeof e==="boolean"){return stringToUint8Array(String(e),"utf-8")}if(t&&/application\/(.+\+)?json(;.+)?/i.test(String(t))){return stringToUint8Array(JSON.stringify(e),"utf-8")}throw new RestError(`Unsupported body/content-type combination: ${e}, ${t}`)}function buildBodyPart(e){const t=getPartContentType(e);const n=getContentDisposition(e);const o=createHttpHeaders(e.headers??{});if(t){o.set("content-type",t)}if(n){o.set("content-disposition",n)}const i=normalizeBody(e.body,t);return{headers:o,body:i}}function multipart_buildMultipartBody(e){return{parts:e.map(buildBodyPart)}}async function sendRequest_sendRequest(e,t,n,o={},i){const a=i??getCachedDefaultHttpsClient();const d=buildPipelineRequest(e,t,o);try{const e=await n.sendRequest(a,d);const t=e.headers.toJSON();const i=e.readableStreamBody??e.browserStreamBody;const m=o.responseAsStream||i!==undefined?undefined:getResponseBody(e);const h=i??m;if(o?.onResponse){o.onResponse({...e,request:d,rawHeaders:t,parsedBody:m})}return{request:d,headers:t,status:`${e.status}`,body:h}}catch(e){if(isRestError(e)&&e.response&&o.onResponse){const{response:t}=e;const n=t.headers.toJSON();o?.onResponse({...t,request:d,rawHeaders:n},e)}throw e}}function getRequestContentType(e={}){return e.contentType??e.headers?.["content-type"]??getContentType(e.body)}function getContentType(e){if(ArrayBuffer.isView(e)){return"application/octet-stream"}if(typeof e==="string"){try{JSON.parse(e);return"application/json"}catch(e){return undefined}}return"application/json"}function buildPipelineRequest(e,t,n={}){const o=getRequestContentType(n);const{body:i,multipartBody:a}=getRequestBody(n.body,o);const d=i!==undefined||a!==undefined;const m=createHttpHeaders({...n.headers?n.headers:{},accept:n.accept??n.headers?.accept??"application/json",...d&&o&&{"content-type":o}});return createPipelineRequest({url:t,method:e,body:i,multipartBody:a,headers:m,allowInsecureConnection:n.allowInsecureConnection,abortSignal:n.abortSignal,onUploadProgress:n.onUploadProgress,onDownloadProgress:n.onDownloadProgress,timeout:n.timeout,enableBrowserStreams:true,streamResponseStatusCodes:n.responseAsStream?new Set([Number.POSITIVE_INFINITY]):undefined})}function getRequestBody(e,t=""){if(e===undefined){return{body:undefined}}if(typeof FormData!=="undefined"&&e instanceof FormData){return{body:e}}if(isReadableStream(e)){return{body:e}}if(ArrayBuffer.isView(e)){return{body:e instanceof Uint8Array?e:JSON.stringify(e)}}const n=t.split(";")[0];switch(n){case"application/json":return{body:JSON.stringify(e)};case"multipart/form-data":if(Array.isArray(e)){return{multipartBody:buildMultipartBody(e)}}return{body:JSON.stringify(e)};case"text/plain":return{body:String(e)};default:if(typeof e==="string"){return{body:e}}return{body:JSON.stringify(e)}}}function getResponseBody(e){const t=e.headers.get("content-type")??"";const n=t.split(";")[0];const o=e.bodyAsText??"";if(n==="text/plain"){return String(o)}try{return o?JSON.parse(o):undefined}catch(t){if(n==="application/json"){throw createParseError(e,t)}return String(o)}}function createParseError(e,t){const n=`Error "${t}" occurred while parsing the response body - ${e.bodyAsText}.`;const o=t.code??RestError.PARSE_ERROR;return new RestError(n,{code:o,statusCode:e.status,request:e.request,response:e})}function getClient(e,t={}){const n=t.pipeline??createDefaultPipeline(t);if(t.additionalPolicies?.length){for(const{policy:e,position:o}of t.additionalPolicies){const t=o==="perRetry"?"Sign":undefined;n.addPolicy(e,{afterPhase:t})}}const{allowInsecureConnection:o,httpClient:i}=t;const a=t.endpoint??e;const client=(e,...t)=>{const getUrl=n=>buildRequestUrl(a,e,t,{allowInsecureConnection:o,...n});return{get:(e={})=>buildOperation("GET",getUrl(e),n,e,o,i),post:(e={})=>buildOperation("POST",getUrl(e),n,e,o,i),put:(e={})=>buildOperation("PUT",getUrl(e),n,e,o,i),patch:(e={})=>buildOperation("PATCH",getUrl(e),n,e,o,i),delete:(e={})=>buildOperation("DELETE",getUrl(e),n,e,o,i),head:(e={})=>buildOperation("HEAD",getUrl(e),n,e,o,i),options:(e={})=>buildOperation("OPTIONS",getUrl(e),n,e,o,i),trace:(e={})=>buildOperation("TRACE",getUrl(e),n,e,o,i)}};return{path:client,pathUnchecked:client,pipeline:n}}function buildOperation(e,t,n,o,i,a){i=o.allowInsecureConnection??i;return{then:function(d,m){return sendRequest(e,t,n,{...o,allowInsecureConnection:i},a).then(d,m)},async asBrowserStream(){if(isNodeLike){throw new Error("`asBrowserStream` is supported only in the browser environment. Use `asNodeStream` instead to obtain the response body stream. If you require a Web stream of the response in Node, consider using `Readable.toWeb` on the result of `asNodeStream`.")}else{return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}},async asNodeStream(){if(isNodeLike){return sendRequest(e,t,n,{...o,allowInsecureConnection:i,responseAsStream:true},a)}else{throw new Error("`isNodeStream` is not supported in the browser environment. Use `asBrowserStream` to obtain the response body stream.")}}}}function createRestError(e,t){const n=typeof e==="string"?t:e;const o=n.body?.error??n.body;const i=typeof e==="string"?e:o?.message??`Unexpected status code: ${n.status}`;return new RestError(i,{statusCode:statusCodeToNumber(n.status),code:o?.code,request:n.request,response:toPipelineResponse(n)})}function toPipelineResponse(e){return{headers:createHttpHeaders(e.headers),request:e.request,status:statusCodeToNumber(e.status)??-1}}function statusCodeToNumber(e){const t=Number.parseInt(e);return Number.isNaN(t)?undefined:t}function esm_pipeline_createEmptyPipeline(){return pipeline_createEmptyPipeline()}const Rn=createLoggerContext({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"});const Nn=Rn.logger;function esm_setLogLevel(e){Rn.setLogLevel(e)}function esm_getLogLevel(){return Rn.getLogLevel()}function esm_createClientLogger(e){return Rn.createClientLogger(e)}const xn=esm_createClientLogger("core-rest-pipeline");const Qn="agentPolicy";function agentPolicy_agentPolicy(e){return{name:Qn,sendRequest:async(t,n)=>{if(!t.agent){t.agent=e}return n(t)}}}const Tn="decompressResponsePolicy";function decompressResponsePolicy_decompressResponsePolicy(){return{name:Tn,async sendRequest(e,t){if(e.method!=="HEAD"){e.headers.set("Accept-Encoding","gzip,deflate")}return t(e)}}}const vn="exponentialRetryPolicy";function exponentialRetryPolicy(e={}){return retryPolicy([exponentialRetryStrategy({...e,ignoreSystemErrors:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT})}const Pn="systemErrorRetryPolicy";function systemErrorRetryPolicy(e={}){return{name:Pn,sendRequest:retryPolicy([exponentialRetryStrategy({...e,ignoreHttpStatusCodes:true})],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const Dn="throttlingRetryPolicy";function throttlingRetryPolicy(e={}){return{name:Dn,sendRequest:retryPolicy([throttlingRetryStrategy()],{maxRetries:e.maxRetries??DEFAULT_RETRY_POLICY_COUNT}).sendRequest}}const kn="redirectPolicy";const _n=["GET","HEAD"];function redirectPolicy_redirectPolicy(e={}){const{maxRetries:t=20}=e;return{name:kn,async sendRequest(e,n){const o=await n(e);return handleRedirect(n,o,t)}}}async function handleRedirect(e,t,n,o=0){const{request:i,status:a,headers:d}=t;const m=d.get("location");if(m&&(a===300||a===301&&_n.includes(i.method)||a===302&&_n.includes(i.method)||a===303&&i.method==="POST"||a===307)&&o<n){const t=new URL(m,i.url);i.url=t.toString();if(a===303){i.method="GET";i.headers.delete("Content-Length");delete i.body}i.headers.delete("Authorization");const d=await e(i);return handleRedirect(e,d,n,o+1)}return t}const Ln="tlsPolicy";function tlsPolicy_tlsPolicy(e){return{name:Ln,sendRequest:async(t,n)=>{if(!t.tlsSettings){t.tlsSettings=e}return n(t)}}}const On=null&&tspLogPolicyName;function policies_logPolicy_logPolicy(e={}){return logPolicy_logPolicy({logger:xn.info,...e})}const Fn=kn;function policies_redirectPolicy_redirectPolicy(e={}){return redirectPolicy_redirectPolicy(e)}function userAgentPlatform_getHeaderName(){return"User-Agent"}async function util_userAgentPlatform_setPlatformSpecificData(e){if(mr&&mr.versions){const t=`${pr.type()} ${pr.release()}; ${pr.arch()}`;const n=mr.versions;if(n.bun){e.set("Bun",`${n.bun} (${t})`)}else if(n.deno){e.set("Deno",`${n.deno} (${t})`)}else if(n.node){e.set("Node",`${n.node} (${t})`)}}}const Un="1.22.2";const Mn=3;function userAgent_getUserAgentString(e){const t=[];for(const[n,o]of e){const e=o?`${n}/${o}`:n;t.push(e)}return t.join(" ")}function userAgent_getUserAgentHeaderName(){return userAgentPlatform_getHeaderName()}async function util_userAgent_getUserAgentValue(e){const t=new Map;t.set("core-rest-pipeline",Un);await util_userAgentPlatform_setPlatformSpecificData(t);const n=userAgent_getUserAgentString(t);const o=e?`${e} ${n}`:n;return o}const Hn=userAgent_getUserAgentHeaderName();const $n="userAgentPolicy";function policies_userAgentPolicy_userAgentPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);return{name:$n,async sendRequest(e,n){if(!e.headers.has(Hn)){e.headers.set(Hn,await t)}return n(e)}}}var Gn=__nccwpck_require__(7598);async function computeSha256Hmac(e,t,n){const o=Buffer.from(e,"base64");return createHmac("sha256",o).update(t).digest(n)}async function computeSha256Hash(e,t){return createHash("sha256").update(e).digest(t)}class AbortError_AbortError extends Error{constructor(e){super(e);this.name="AbortError"}}function createAbortablePromise(e,t){const{cleanupBeforeAbort:n,abortSignal:o,abortErrorMsg:i}=t??{};return new Promise(((t,a)=>{function rejectOnAbort(){a(new AbortError_AbortError(i??"The operation was aborted."))}function removeListeners(){o?.removeEventListener("abort",onAbort)}function onAbort(){n?.();removeListeners();rejectOnAbort()}if(o?.aborted){return rejectOnAbort()}try{e((e=>{removeListeners();t(e)}),(e=>{removeListeners();a(e)}))}catch(e){a(e)}o?.addEventListener("abort",onAbort)}))}const qn="The delay was aborted.";function delay_delay(e,t){let n;const{abortSignal:o,abortErrorMsg:i}=t??{};return createAbortablePromise((t=>{n=setTimeout(t,e)}),{cleanupBeforeAbort:()=>clearTimeout(n),abortSignal:o,abortErrorMsg:i??qn})}function delay_calculateRetryDelay(e,t){const n=t.retryDelayInMs*Math.pow(2,e);const o=Math.min(t.maxRetryDelayInMs,n);const i=o/2+getRandomIntegerInclusive(0,o/2);return{retryAfterInMs:i}}function getErrorMessage(e){if(isError(e)){return e.message}else{let t;try{if(typeof e==="object"&&e){t=JSON.stringify(e)}else{t=String(e)}}catch(e){t="[unable to stringify input]"}return`Unknown error ${t}`}}function esm_calculateRetryDelay(e,t){return tspRuntime.calculateRetryDelay(e,t)}function esm_computeSha256Hash(e,t){return tspRuntime.computeSha256Hash(e,t)}function esm_computeSha256Hmac(e,t,n){return tspRuntime.computeSha256Hmac(e,t,n)}function esm_getRandomIntegerInclusive(e,t){return tspRuntime.getRandomIntegerInclusive(e,t)}function esm_isError(e){return isError(e)}function esm_isObject(e){return tspRuntime.isObject(e)}function esm_randomUUID(){return randomUUID()}const zn=Kr;const Vn=en;const jn=Zr;const Yn=tn;const Jn=tn;const Wn=rn;const Kn=nn;const Xn=Xr;function esm_uint8ArrayToString(e,t){return tspRuntime.uint8ArrayToString(e,t)}function esm_stringToUint8Array(e,t){return tspRuntime.stringToUint8Array(e,t)}function file_isNodeReadableStream(e){return Boolean(e&&typeof e["pipe"]==="function")}const Zn={arrayBuffer:()=>{throw new Error("Not implemented")},bytes:()=>{throw new Error("Not implemented")},slice:()=>{throw new Error("Not implemented")},text:()=>{throw new Error("Not implemented")}};const es=Symbol("rawContent");function hasRawContent(e){return typeof e[es]==="function"}function getRawContent(e){if(hasRawContent(e)){return e[es]()}else{return e}}function createFileFromStream(e,t,n={}){return{...Zn,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:n.size??-1,name:t,stream:()=>{const t=e();if(file_isNodeReadableStream(t)){throw new Error("Not supported: a Node stream was provided as input to createFileFromStream.")}return t},[es]:e}}function createFile(e,t,n={}){if(isNodeLike){return{...Zn,type:n.type??"",lastModified:n.lastModified??(new Date).getTime(),webkitRelativePath:n.webkitRelativePath??"",size:e.byteLength,name:t,arrayBuffer:async()=>e.buffer,stream:()=>new Blob([toArrayBuffer(e)]).stream(),[es]:()=>e}}else{return new File([toArrayBuffer(e)],t,n)}}function toArrayBuffer(e){if("resize"in e.buffer){return e}return e.map((e=>e))}const ts=hn;function policies_multipartPolicy_multipartPolicy(){const e=multipartPolicy_multipartPolicy();return{name:ts,sendRequest:async(t,n)=>{if(t.multipartBody){for(const e of t.multipartBody.parts){if(hasRawContent(e.body)){e.body=getRawContent(e.body)}}}return e.sendRequest(t,n)}}}const rs=Tn;function policies_decompressResponsePolicy_decompressResponsePolicy(){return decompressResponsePolicy_decompressResponsePolicy()}const ns=null&&tspDefaultRetryPolicyName;function policies_defaultRetryPolicy_defaultRetryPolicy(e={}){return defaultRetryPolicy_defaultRetryPolicy(e)}const ss=null&&tspFormDataPolicyName;function policies_formDataPolicy_formDataPolicy(){return formDataPolicy_formDataPolicy()}const as=null&&tspProxyPolicyName;function proxyPolicy_getDefaultProxySettings(e){return getDefaultProxySettings(e)}function policies_proxyPolicy_proxyPolicy(e,t){return proxyPolicy_proxyPolicy(e,t)}const cs="setClientRequestIdPolicy";function setClientRequestIdPolicy(e="x-ms-client-request-id"){return{name:cs,async sendRequest(t,n){if(!t.headers.has(e)){t.headers.set(e,t.requestId)}return n(t)}}}const ls=null&&tspAgentPolicyName;function policies_agentPolicy_agentPolicy(e){return agentPolicy_agentPolicy(e)}const us=null&&tspTlsPolicyName;function policies_tlsPolicy_tlsPolicy(e){return tlsPolicy_tlsPolicy(e)}const ds={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function createTracingContext(e={}){let t=new TracingContextImpl(e.parentContext);if(e.span){t=t.setValue(ds.span,e.span)}if(e.namespace){t=t.setValue(ds.namespace,e.namespace)}return t}class TracingContextImpl{_contextMap;constructor(e){this._contextMap=e instanceof TracingContextImpl?new Map(e._contextMap):new Map}setValue(e,t){const n=new TracingContextImpl(this);n._contextMap.set(e,t);return n}getValue(e){return this._contextMap.get(e)}deleteValue(e){const t=new TracingContextImpl(this);t._contextMap.delete(e);return t}}var ps=__nccwpck_require__(8914);const As=ps.w;function createDefaultTracingSpan(){return{end:()=>{},isRecording:()=>false,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function createDefaultInstrumenter(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>undefined,startSpan:(e,t)=>({span:createDefaultTracingSpan(),tracingContext:createTracingContext({parentContext:t.tracingContext})}),withContext(e,t,...n){return t(...n)}}}function useInstrumenter(e){state.instrumenterImplementation=e}function getInstrumenter(){if(!As.instrumenterImplementation){As.instrumenterImplementation=createDefaultInstrumenter()}return As.instrumenterImplementation}function createTracingClient(e){const{namespace:t,packageName:n,packageVersion:o}=e;function startSpan(e,i,a){const d=getInstrumenter().startSpan(e,{...a,packageName:n,packageVersion:o,tracingContext:i?.tracingOptions?.tracingContext});let m=d.tracingContext;const h=d.span;if(!m.getValue(ds.namespace)){m=m.setValue(ds.namespace,t)}h.setAttribute("az.namespace",m.getValue(ds.namespace));const f=Object.assign({},i,{tracingOptions:{...i?.tracingOptions,tracingContext:m}});return{span:h,updatedOptions:f}}async function withSpan(e,t,n,o){const{span:i,updatedOptions:a}=startSpan(e,t,o);try{const e=await withContext(a.tracingOptions.tracingContext,(()=>Promise.resolve(n(a,i))));i.setStatus({status:"success"});return e}catch(e){i.setStatus({status:"error",error:e});throw e}finally{i.end()}}function withContext(e,t,...n){return getInstrumenter().withContext(e,t,...n)}function parseTraceparentHeader(e){return getInstrumenter().parseTraceparentHeader(e)}function createRequestHeaders(e){return getInstrumenter().createRequestHeaders(e)}return{startSpan:startSpan,withSpan:withSpan,withContext:withContext,parseTraceparentHeader:parseTraceparentHeader,createRequestHeaders:createRequestHeaders}}const ms=restError_RestError;function esm_restError_isRestError(e){return restError_isRestError(e)}const gs="tracingPolicy";function tracingPolicy(e={}){const t=util_userAgent_getUserAgentValue(e.userAgentPrefix);const n=new Sanitizer({additionalAllowedQueryParameters:e.additionalAllowedQueryParameters});const o=tryCreateTracingClient();return{name:gs,async sendRequest(e,i){if(!o){return i(e)}const a=await t;const d={"http.url":n.sanitizeUrl(e.url),"http.method":e.method,"http.user_agent":a,requestId:e.requestId};if(a){d["http.user_agent"]=a}const{span:m,tracingContext:h}=tryCreateSpan(o,e,d)??{};if(!m||!h){return i(e)}try{const t=await o.withContext(h,i,e);tryProcessResponse(m,t);return t}catch(e){tryProcessError(m,e);throw e}}}}function tryCreateTracingClient(){try{return createTracingClient({namespace:"",packageName:"@azure/core-rest-pipeline",packageVersion:Un})}catch(e){xn.warning(`Error when creating the TracingClient: ${getErrorMessage(e)}`);return undefined}}function tryCreateSpan(e,t,n){try{const{span:o,updatedOptions:i}=e.startSpan(`HTTP ${t.method}`,{tracingOptions:t.tracingOptions},{spanKind:"client",spanAttributes:n});if(!o.isRecording()){o.end();return undefined}const a=e.createRequestHeaders(i.tracingOptions.tracingContext);for(const[e,n]of Object.entries(a)){t.headers.set(e,n)}return{span:o,tracingContext:i.tracingOptions.tracingContext}}catch(e){xn.warning(`Skipping creating a tracing span due to an error: ${getErrorMessage(e)}`);return undefined}}function tryProcessError(e,t){try{e.setStatus({status:"error",error:esm_isError(t)?t:undefined});if(esm_restError_isRestError(t)&&t.statusCode){e.setAttribute("http.status_code",t.statusCode)}e.end()}catch(e){xn.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function tryProcessResponse(e,t){try{e.setAttribute("http.status_code",t.status);const n=t.headers.get("x-ms-request-id");if(n){e.setAttribute("serviceRequestId",n)}if(t.status>=400){e.setStatus({status:"error"})}e.end()}catch(e){xn.warning(`Skipping tracing span processing due to an error: ${getErrorMessage(e)}`)}}function wrapAbortSignalLike(e){if(e instanceof AbortSignal){return{abortSignal:e}}if(e.aborted){return{abortSignal:AbortSignal.abort(e.reason)}}const t=new AbortController;let n=true;function cleanup(){if(n){e.removeEventListener("abort",listener);n=false}}function listener(){t.abort(e.reason);cleanup()}e.addEventListener("abort",listener);return{abortSignal:t.signal,cleanup:cleanup}}const hs="wrapAbortSignalLikePolicy";function wrapAbortSignalLikePolicy(){return{name:hs,sendRequest:async(e,t)=>{if(!e.abortSignal){return t(e)}const{abortSignal:n,cleanup:o}=wrapAbortSignalLike(e.abortSignal);e.abortSignal=n;try{return await t(e)}finally{o?.()}}}}function esm_createPipelineFromOptions_createPipelineFromOptions(e){const t=esm_pipeline_createEmptyPipeline();if(Jn){if(e.agent){t.addPolicy(policies_agentPolicy_agentPolicy(e.agent))}if(e.tlsOptions){t.addPolicy(policies_tlsPolicy_tlsPolicy(e.tlsOptions))}t.addPolicy(policies_proxyPolicy_proxyPolicy(e.proxyOptions));t.addPolicy(policies_decompressResponsePolicy_decompressResponsePolicy())}t.addPolicy(wrapAbortSignalLikePolicy());t.addPolicy(policies_formDataPolicy_formDataPolicy(),{beforePolicies:[ts]});t.addPolicy(policies_userAgentPolicy_userAgentPolicy(e.userAgentOptions));t.addPolicy(setClientRequestIdPolicy(e.telemetryOptions?.clientRequestIdHeaderName));t.addPolicy(policies_multipartPolicy_multipartPolicy(),{afterPhase:"Deserialize"});t.addPolicy(policies_defaultRetryPolicy_defaultRetryPolicy(e.retryOptions),{phase:"Retry"});t.addPolicy(tracingPolicy({...e.userAgentOptions,...e.loggingOptions}),{afterPhase:"Retry"});if(Jn){t.addPolicy(policies_redirectPolicy_redirectPolicy(e.redirectOptions),{afterPhase:"Retry"})}t.addPolicy(policies_logPolicy_logPolicy(e.loggingOptions),{afterPhase:"Sign"});return t}function esm_defaultHttpClient_createDefaultHttpClient(){const e=defaultHttpClient_createDefaultHttpClient();return{async sendRequest(t){const{abortSignal:n,cleanup:o}=t.abortSignal?wrapAbortSignalLike(t.abortSignal):{};try{t.abortSignal=n;return await e.sendRequest(t)}finally{o?.()}}}}function esm_httpHeaders_createHttpHeaders(e){return httpHeaders_createHttpHeaders(e)}function esm_pipelineRequest_createPipelineRequest(e){return pipelineRequest_createPipelineRequest(e)}const ys=null&&tspExponentialRetryPolicyName;function exponentialRetryPolicy_exponentialRetryPolicy(e={}){return tspExponentialRetryPolicy(e)}const Es=null&&tspSystemErrorRetryPolicyName;function systemErrorRetryPolicy_systemErrorRetryPolicy(e={}){return tspSystemErrorRetryPolicy(e)}const Cs=null&&tspThrottlingRetryPolicyName;function throttlingRetryPolicy_throttlingRetryPolicy(e={}){return tspThrottlingRetryPolicy(e)}const Is=esm_createClientLogger("core-rest-pipeline retryPolicy");function policies_retryPolicy_retryPolicy(e,t={maxRetries:DEFAULT_RETRY_POLICY_COUNT}){return tspRetryPolicy(e,{logger:Is,...t})}const bs={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(e,t,n){async function tryGetAccessToken(){if(Date.now()<n){try{return await e()}catch{return null}}else{const t=await e();if(t===null){throw new Error("Failed to refresh access token.")}return t}}let o=await tryGetAccessToken();while(o===null){await delay_delay(t);o=await tryGetAccessToken()}return o}function tokenCycler_createTokenCycler(e,t){let n=null;let o=null;let i;const a={...bs,...t};const d={get isRefreshing(){return n!==null},get shouldRefresh(){if(d.isRefreshing){return false}if(o?.refreshAfterTimestamp&&o.refreshAfterTimestamp<Date.now()){return true}return(o?.expiresOnTimestamp??0)-a.refreshWindowInMs<Date.now()},get mustRefresh(){return o===null||o.expiresOnTimestamp-a.forcedRefreshWindowInMs<Date.now()}};function refresh(t,m){if(!d.isRefreshing){const tryGetAccessToken=()=>e.getToken(t,m);n=beginRefresh(tryGetAccessToken,a.retryIntervalInMs,o?.expiresOnTimestamp??Date.now()).then((e=>{n=null;o=e;i=m.tenantId;return o})).catch((e=>{n=null;o=null;i=undefined;throw e}))}return n}return async(e,t)=>{const n=Boolean(t.claims);const a=i!==t.tenantId;if(n){o=null}const m=a||n||d.mustRefresh;if(m){return refresh(e,t)}if(d.shouldRefresh){refresh(e,t)}return o}}const Ss="bearerTokenAuthenticationPolicy";async function trySendRequest(e,t){try{return[await t(e),undefined]}catch(e){if(esm_restError_isRestError(e)&&e.response){return[e.response,e]}else{throw e}}}async function defaultAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions,enableCae:true};const a=await n(t,i);if(a){e.request.headers.set("Authorization",`Bearer ${a.token}`)}}function isChallengeResponse(e){return e.status===401&&e.headers.has("WWW-Authenticate")}async function authorizeRequestOnCaeChallenge(e,t){const{scopes:n}=e;const o=await e.getAccessToken(n,{enableCae:true,claims:t});if(!o){return false}e.request.headers.set("Authorization",`${o.tokenType??"Bearer"} ${o.token}`);return true}function bearerTokenAuthenticationPolicy(e){const{credential:t,scopes:n,challengeCallbacks:o}=e;const i=e.logger||xn;const a={authorizeRequest:o?.authorizeRequest?.bind(o)??defaultAuthorizeRequest,authorizeRequestOnChallenge:o?.authorizeRequestOnChallenge?.bind(o)};const d=t?tokenCycler_createTokenCycler(t):()=>Promise.resolve(null);return{name:Ss,async sendRequest(e,t){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}await a.authorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:d,logger:i});let o;let m;let h;[o,m]=await trySendRequest(e,t);if(isChallengeResponse(o)){let f=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(f){let a;try{a=atob(f)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return o}h=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},a);if(h){[o,m]=await trySendRequest(e,t)}}else if(a.authorizeRequestOnChallenge){h=await a.authorizeRequestOnChallenge({scopes:Array.isArray(n)?n:[n],request:e,response:o,getAccessToken:d,logger:i});if(h){[o,m]=await trySendRequest(e,t)}if(isChallengeResponse(o)){f=getCaeChallengeClaims(o.headers.get("WWW-Authenticate"));if(f){let a;try{a=atob(f)}catch(e){i.warning(`The WWW-Authenticate header contains "claims" that cannot be parsed. Unable to perform the Continuous Access Evaluation authentication flow. Unparsable claims: ${f}`);return o}h=await authorizeRequestOnCaeChallenge({scopes:Array.isArray(n)?n:[n],response:o,request:e,getAccessToken:d,logger:i},a);if(h){[o,m]=await trySendRequest(e,t)}}}}}if(m){throw m}else{return o}}}}function parseChallenges(e){const t=/(\w+)\s+((?:\w+=(?:"[^"]*"|[^,]*),?\s*)+)/g;const n=/(\w+)="([^"]*)"/g;const o=[];let i;while((i=t.exec(e))!==null){const e=i[1];const t=i[2];const a={};let d;while((d=n.exec(t))!==null){a[d[1]]=d[2]}o.push({scheme:e,params:a})}return o}function getCaeChallengeClaims(e){if(!e){return}const t=parseChallenges(e);return t.find((e=>e.scheme==="Bearer"&&e.params.claims&&e.params.error==="insufficient_claims"))?.params.claims}const Bs="auxiliaryAuthenticationHeaderPolicy";const ws="x-ms-authorization-auxiliary";async function sendAuthorizeRequest(e){const{scopes:t,getAccessToken:n,request:o}=e;const i={abortSignal:o.abortSignal,tracingOptions:o.tracingOptions};return(await n(t,i))?.token??""}function auxiliaryAuthenticationHeaderPolicy(e){const{credentials:t,scopes:n}=e;const o=e.logger||coreLogger;const i=new WeakMap;return{name:Bs,async sendRequest(e,a){if(!e.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication for auxiliary header is not permitted for non-TLS protected (non-https) URLs.")}if(!t||t.length===0){o.info(`${Bs} header will not be set due to empty credentials.`);return a(e)}const d=[];for(const a of t){let t=i.get(a);if(!t){t=createTokenCycler(a);i.set(a,t)}d.push(sendAuthorizeRequest({scopes:Array.isArray(n)?n:[n],request:e,getAccessToken:t,logger:o}))}const m=(await Promise.all(d)).filter((e=>Boolean(e)));if(m.length===0){o.warning(`None of the auxiliary tokens are valid. ${ws} header will not be set.`);return a(e)}e.headers.set(ws,m.map((e=>`Bearer ${e}`)).join(", "));return a(e)}}}function isKeyCredential(e){return isObjectWithProperties(e,["key"])&&typeof e.key==="string"}class AzureNamedKeyCredential{_key;_name;get key(){return this._key}get name(){return this._name}constructor(e,t){if(!e||!t){throw new TypeError("name and key must be non-empty strings")}this._name=e;this._key=t}update(e,t){if(!e||!t){throw new TypeError("newName and newKey must be non-empty strings")}this._name=e;this._key=t}}function isNamedKeyCredential(e){return isObjectWithProperties(e,["name","key"])&&typeof e.key==="string"&&typeof e.name==="string"}class AzureSASCredential{_signature;get signature(){return this._signature}constructor(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}update(e){if(!e){throw new Error("shared access signature must be a non-empty string")}this._signature=e}}function isSASCredential(e){return isObjectWithProperties(e,["signature"])&&typeof e.signature==="string"}function isBearerToken(e){return!e.tokenType||e.tokenType==="Bearer"}function isPopToken(e){return e.tokenType==="pop"}function isTokenCredential(e){const t=e;return t&&typeof t.getToken==="function"&&(t.signRequest===undefined||t.getToken.length>0)}const Rs="DisableKeepAlivePolicy";function createDisableKeepAlivePolicy(){return{name:Rs,async sendRequest(e,t){e.disableKeepAlive=true;return t(e)}}}function pipelineContainsDisableKeepAlivePolicy(e){return e.getOrderedPolicies().some((e=>e.name===Rs))}function encodeString(e){return Buffer.from(e).toString("base64")}function encodeByteArray(e){const t=e instanceof Buffer?e:Buffer.from(e.buffer);return t.toString("base64")}function decodeString(e){return Buffer.from(e,"base64")}function base64_decodeStringToString(e){return Buffer.from(e,"base64").toString()}const Ns="$";const xs="_";function isPrimitiveBody(e,t){return t!=="Composite"&&t!=="Dictionary"&&(typeof e==="string"||typeof e==="number"||typeof e==="boolean"||t?.match(/^(Date|DateTime|DateTimeRfc1123|UnixTime|ByteArray|Base64Url)$/i)!==null||e===undefined||e===null)}const Qs=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(e){return Qs.test(e)}const Ts=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/i;function isValidUuid(e){return Ts.test(e)}function handleNullableResponseAndWrappableBody(e){const t={...e.headers,...e.body};if(e.hasNullableType&&Object.getOwnPropertyNames(t).length===0){return e.shouldWrapBody?{body:null}:null}else{return e.shouldWrapBody?{...e.headers,body:e.body}:t}}function flattenResponse(e,t){const n=e.parsedHeaders;if(e.request.method==="HEAD"){return{...n,body:e.parsedBody}}const o=t&&t.bodyMapper;const i=Boolean(o?.nullable);const a=o?.type.name;if(a==="Stream"){return{...n,blobBody:e.blobBody,readableStreamBody:e.readableStreamBody}}const d=a==="Composite"&&o.type.modelProperties||{};const m=Object.keys(d).some((e=>d[e].serializedName===""));if(a==="Sequence"||m){const t=e.parsedBody??[];for(const n of Object.keys(d)){if(d[n].serializedName){t[n]=e.parsedBody?.[n]}}if(n){for(const e of Object.keys(n)){t[e]=n[e]}}return i&&!e.parsedBody&&!n&&Object.getOwnPropertyNames(d).length===0?null:t}return handleNullableResponseAndWrappableBody({body:e.parsedBody,headers:n,hasNullableType:i,shouldWrapBody:isPrimitiveBody(e.parsedBody,a)})}class SerializerImpl{modelMappers;isXML;constructor(e={},t=false){this.modelMappers=e;this.isXML=t}validateConstraints(e,t,n){const failValidation=(e,o)=>{throw new Error(`"${n}" with value "${t}" should satisfy the constraint "${e}": ${o}.`)};if(e.constraints&&t!==undefined&&t!==null){const{ExclusiveMaximum:n,ExclusiveMinimum:o,InclusiveMaximum:i,InclusiveMinimum:a,MaxItems:d,MaxLength:m,MinItems:h,MinLength:f,MultipleOf:C,Pattern:P,UniqueItems:D}=e.constraints;if(n!==undefined&&t>=n){failValidation("ExclusiveMaximum",n)}if(o!==undefined&&t<=o){failValidation("ExclusiveMinimum",o)}if(i!==undefined&&t>i){failValidation("InclusiveMaximum",i)}if(a!==undefined&&t<a){failValidation("InclusiveMinimum",a)}if(d!==undefined&&t.length>d){failValidation("MaxItems",d)}if(m!==undefined&&t.length>m){failValidation("MaxLength",m)}if(h!==undefined&&t.length<h){failValidation("MinItems",h)}if(f!==undefined&&t.length<f){failValidation("MinLength",f)}if(C!==undefined&&t%C!==0){failValidation("MultipleOf",C)}if(P){const e=typeof P==="string"?new RegExp(P):P;if(typeof t!=="string"||t.match(e)===null){failValidation("Pattern",P)}}if(D&&t.some(((e,t,n)=>n.indexOf(e)!==t))){failValidation("UniqueItems",D)}}}serialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??xs}};let a={};const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Sequence$/i)!==null){a=[]}if(e.isConstant){t=e.defaultValue}const{required:m,nullable:h}=e;if(m&&h&&t===undefined){throw new Error(`${n} cannot be undefined.`)}if(m&&!h&&(t===undefined||t===null)){throw new Error(`${n} cannot be null or undefined.`)}if(!m&&h===false&&t===null){throw new Error(`${n} cannot be null.`)}if(t===undefined||t===null){a=t}else{if(d.match(/^any$/i)!==null){a=t}else if(d.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){a=serializeBasicTypes(d,n,t)}else if(d.match(/^Enum$/i)!==null){const o=e;a=serializeEnumType(n,o.type.allowedValues,t)}else if(d.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){a=serializeDateTypes(d,t,n)}else if(d.match(/^ByteArray$/i)!==null){a=serializeByteArrayType(n,t)}else if(d.match(/^Base64Url$/i)!==null){a=serializeBase64UrlType(n,t)}else if(d.match(/^Sequence$/i)!==null){a=serializeSequenceType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Dictionary$/i)!==null){a=serializeDictionaryType(this,e,t,n,Boolean(this.isXML),i)}else if(d.match(/^Composite$/i)!==null){a=serializeCompositeType(this,e,t,n,Boolean(this.isXML),i)}}return a}deserialize(e,t,n,o={xml:{}}){const i={xml:{rootName:o.xml.rootName??"",includeRoot:o.xml.includeRoot??false,xmlCharKey:o.xml.xmlCharKey??xs},ignoreUnknownProperties:o.ignoreUnknownProperties??false};if(t===undefined||t===null){if(this.isXML&&e.type.name==="Sequence"&&!e.xmlIsWrapped){t=[]}if(e.defaultValue!==undefined){t=e.defaultValue}return t}let a;const d=e.type.name;if(!n){n=e.serializedName}if(d.match(/^Composite$/i)!==null){a=deserializeCompositeType(this,e,t,n,i)}else{if(this.isXML){const e=i.xml.xmlCharKey;if(t[Ns]!==undefined&&t[e]!==undefined){t=t[e]}}if(d.match(/^Number$/i)!==null){a=parseFloat(t);if(isNaN(a)){a=t}}else if(d.match(/^Boolean$/i)!==null){if(t==="true"){a=true}else if(t==="false"){a=false}else{a=t}}else if(d.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){a=t}else if(d.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){a=new Date(t)}else if(d.match(/^UnixTime$/i)!==null){a=unixTimeToDate(t)}else if(d.match(/^ByteArray$/i)!==null){a=decodeString(t)}else if(d.match(/^Base64Url$/i)!==null){a=base64UrlToByteArray(t)}else if(d.match(/^Sequence$/i)!==null){a=deserializeSequenceType(this,e,t,n,i)}else if(d.match(/^Dictionary$/i)!==null){a=deserializeDictionaryType(this,e,t,n,i)}}if(e.isConstant){a=e.defaultValue}return a}}function createSerializer(e={},t=false){return new SerializerImpl(e,t)}function trimEnd(e,t){let n=e.length;while(n-1>=0&&e[n-1]===t){--n}return e.substr(0,n)}function bufferToBase64Url(e){if(!e){return undefined}if(!(e instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const t=encodeByteArray(e);return trimEnd(t,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(e){if(!e){return undefined}if(e&&typeof e.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}e=e.replace(/-/g,"+").replace(/_/g,"/");return decodeString(e)}function splitSerializeName(e){const t=[];let n="";if(e){const o=e.split(".");for(const e of o){if(e.charAt(e.length-1)==="\\"){n+=e.substr(0,e.length-1)+"."}else{n+=e;t.push(n);n=""}}}return t}function dateToUnixTime(e){if(!e){return undefined}if(typeof e.valueOf()==="string"){e=new Date(e)}return Math.floor(e.getTime()/1e3)}function unixTimeToDate(e){if(!e){return undefined}return new Date(e*1e3)}function serializeBasicTypes(e,t,n){if(n!==null&&n!==undefined){if(e.match(/^Number$/i)!==null){if(typeof n!=="number"){throw new Error(`${t} with value ${n} must be of type number.`)}}else if(e.match(/^String$/i)!==null){if(typeof n.valueOf()!=="string"){throw new Error(`${t} with value "${n}" must be of type string.`)}}else if(e.match(/^Uuid$/i)!==null){if(!(typeof n.valueOf()==="string"&&isValidUuid(n))){throw new Error(`${t} with value "${n}" must be of type string and a valid uuid.`)}}else if(e.match(/^Boolean$/i)!==null){if(typeof n!=="boolean"){throw new Error(`${t} with value ${n} must be of type boolean.`)}}else if(e.match(/^Stream$/i)!==null){const e=typeof n;if(e!=="string"&&typeof n.pipe!=="function"&&typeof n.tee!=="function"&&!(n instanceof ArrayBuffer)&&!ArrayBuffer.isView(n)&&!((typeof Blob==="function"||typeof Blob==="object")&&n instanceof Blob)&&e!=="function"){throw new Error(`${t} must be a string, Blob, ArrayBuffer, ArrayBufferView, ReadableStream, or () => ReadableStream.`)}}}return n}function serializeEnumType(e,t,n){if(!t){throw new Error(`Please provide a set of allowedValues to validate ${e} as an Enum Type.`)}const o=t.some((e=>{if(typeof e.valueOf()==="string"){return e.toLowerCase()===n.toLowerCase()}return e===n}));if(!o){throw new Error(`${n} is not a valid value for ${e}. The valid values are: ${JSON.stringify(t)}.`)}return n}function serializeByteArrayType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=encodeByteArray(t)}return t}function serializeBase64UrlType(e,t){if(t!==undefined&&t!==null){if(!(t instanceof Uint8Array)){throw new Error(`${e} must be of type Uint8Array.`)}t=bufferToBase64Url(t)}return t}function serializeDateTypes(e,t,n){if(t!==undefined&&t!==null){if(e.match(/^Date$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString().substring(0,10):new Date(t).toISOString().substring(0,10)}else if(e.match(/^DateTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in ISO8601 format.`)}t=t instanceof Date?t.toISOString():new Date(t).toISOString()}else if(e.match(/^DateTimeRfc1123$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123 format.`)}t=t instanceof Date?t.toUTCString():new Date(t).toUTCString()}else if(e.match(/^UnixTime$/i)!==null){if(!(t instanceof Date||typeof t.valueOf()==="string"&&!isNaN(Date.parse(t)))){throw new Error(`${n} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}t=dateToUnixTime(t)}else if(e.match(/^TimeSpan$/i)!==null){if(!isDuration(t)){throw new Error(`${n} must be a string in ISO 8601 format. Instead was "${t}".`)}}}return t}function serializeSequenceType(e,t,n,o,i,a){if(!Array.isArray(n)){throw new Error(`${o} must be of type Array.`)}let d=t.type.element;if(!d||typeof d!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}.`)}if(d.type.name==="Composite"&&d.type.className){d=e.modelMappers[d.type.className]??d}const m=[];for(let t=0;t<n.length;t++){const h=e.serialize(d,n[t],o,a);if(i&&d.xmlNamespace){const e=d.xmlNamespacePrefix?`xmlns:${d.xmlNamespacePrefix}`:"xmlns";if(d.type.name==="Composite"){m[t]={...h};m[t][Ns]={[e]:d.xmlNamespace}}else{m[t]={};m[t][a.xml.xmlCharKey]=h;m[t][Ns]={[e]:d.xmlNamespace}}}else{m[t]=h}}return m}function serializeDictionaryType(e,t,n,o,i,a){if(typeof n!=="object"){throw new Error(`${o} must be of type object.`)}const d=t.type.value;if(!d||typeof d!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}.`)}const m={};for(const t of Object.keys(n)){const h=e.serialize(d,n[t],o,a);m[t]=getXmlObjectValue(d,h,i,a)}if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";const n=m;n[Ns]={[e]:t.xmlNamespace};return n}return m}function resolveAdditionalProperties(e,t,n){const o=t.type.additionalProperties;if(!o&&t.type.className){const o=resolveReferencedMapper(e,t,n);return o?.type.additionalProperties}return o}function resolveReferencedMapper(e,t,n){const o=t.type.className;if(!o){throw new Error(`Class name for model "${n}" is not provided in the mapper "${JSON.stringify(t,undefined,2)}".`)}return e.modelMappers[o]}function resolveModelProperties(e,t,n){let o=t.type.modelProperties;if(!o){const i=resolveReferencedMapper(e,t,n);if(!i){throw new Error(`mapper() cannot be null or undefined for model "${t.type.className}".`)}o=i?.type.modelProperties;if(!o){throw new Error(`modelProperties cannot be null or undefined in the `+`mapper "${JSON.stringify(i)}" of type "${t.type.className}" for object "${n}".`)}}return o}function serializeCompositeType(e,t,n,o,i,a){if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"clientName")}if(n!==undefined&&n!==null){const d={};const m=resolveModelProperties(e,t,o);for(const h of Object.keys(m)){const f=m[h];if(f.readOnly){continue}let C;let P=d;if(e.isXML){if(f.xmlIsWrapped){C=f.xmlName}else{C=f.xmlElementName||f.xmlName}}else{const e=splitSerializeName(f.serializedName);C=e.pop();for(const t of e){const e=P[t];if((e===undefined||e===null)&&(n[h]!==undefined&&n[h]!==null||f.defaultValue!==undefined)){P[t]={}}P=P[t]}}if(P!==undefined&&P!==null){if(i&&t.xmlNamespace){const e=t.xmlNamespacePrefix?`xmlns:${t.xmlNamespacePrefix}`:"xmlns";P[Ns]={...P[Ns],[e]:t.xmlNamespace}}const d=f.serializedName!==""?o+"."+f.serializedName:o;let m=n[h];const D=getPolymorphicDiscriminatorRecursively(e,t);if(D&&D.clientName===h&&(m===undefined||m===null)){m=t.serializedName}const k=e.serialize(f,m,d,a);if(k!==undefined&&C!==undefined&&C!==null){const e=getXmlObjectValue(f,k,i,a);if(i&&f.xmlIsAttribute){P[Ns]=P[Ns]||{};P[Ns][C]=k}else if(i&&f.xmlIsWrapped){P[C]={[f.xmlElementName]:e}}else{P[C]=e}}}}const h=resolveAdditionalProperties(e,t,o);if(h){const t=Object.keys(m);for(const i in n){const m=t.every((e=>e!==i));if(m){d[i]=e.serialize(h,n[i],o+'["'+i+'"]',a)}}}return d}return n}function getXmlObjectValue(e,t,n,o){if(!n||!e.xmlNamespace){return t}const i=e.xmlNamespacePrefix?`xmlns:${e.xmlNamespacePrefix}`:"xmlns";const a={[i]:e.xmlNamespace};if(["Composite"].includes(e.type.name)){if(t[Ns]){return t}else{const e={...t};e[Ns]=a;return e}}const d={};d[o.xml.xmlCharKey]=t;d[Ns]=a;return d}function isSpecialXmlProperty(e,t){return[Ns,t.xml.xmlCharKey].includes(e)}function deserializeCompositeType(e,t,n,o,i){const a=i.xml.xmlCharKey??xs;if(getPolymorphicDiscriminatorRecursively(e,t)){t=getPolymorphicMapper(e,t,n,"serializedName")}const d=resolveModelProperties(e,t,o);let m={};const h=[];for(const f of Object.keys(d)){const C=d[f];const P=splitSerializeName(d[f].serializedName);h.push(P[0]);const{serializedName:D,xmlName:k,xmlElementName:L}=C;let F=o;if(D!==""&&D!==undefined){F=o+"."+D}const q=C.headerCollectionPrefix;if(q){const t={};for(const o of Object.keys(n)){if(o.startsWith(q)){t[o.substring(q.length)]=e.deserialize(C.type.value,n[o],F,i)}h.push(o)}m[f]=t}else if(e.isXML){if(C.xmlIsAttribute&&n[Ns]){m[f]=e.deserialize(C,n[Ns][k],F,i)}else if(C.xmlIsMsText){if(n[a]!==undefined){m[f]=n[a]}else if(typeof n==="string"){m[f]=n}}else{const t=L||k||D;if(C.xmlIsWrapped){const t=n[k];const o=t?.[L]??[];m[f]=e.deserialize(C,o,F,i);h.push(k)}else{const o=n[t];m[f]=e.deserialize(C,o,F,i);h.push(t)}}}else{let o;let a=n;let h=0;for(const e of P){if(!a)break;h++;a=a[e]}if(a===null&&h<P.length){a=undefined}o=a;const D=t.type.polymorphicDiscriminator;if(D&&f===D.clientName&&(o===undefined||o===null)){o=t.serializedName}let k;if(Array.isArray(n[f])&&d[f].serializedName===""){o=n[f];const t=e.deserialize(C,o,F,i);for(const[e,n]of Object.entries(m)){if(!Object.prototype.hasOwnProperty.call(t,e)){t[e]=n}}m=t}else if(o!==undefined||C.defaultValue!==undefined){k=e.deserialize(C,o,F,i);m[f]=k}}}const f=t.type.additionalProperties;if(f){const isAdditionalProperty=e=>{for(const t in d){const n=splitSerializeName(d[t].serializedName);if(n[0]===e){return false}}return true};for(const t in n){if(isAdditionalProperty(t)){m[t]=e.deserialize(f,n[t],o+'["'+t+'"]',i)}}}else if(n&&!i.ignoreUnknownProperties){for(const e of Object.keys(n)){if(m[e]===undefined&&!h.includes(e)&&!isSpecialXmlProperty(e,i)){m[e]=n[e]}}}return m}function deserializeDictionaryType(e,t,n,o,i){const a=t.type.value;if(!a||typeof a!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){const t={};for(const d of Object.keys(n)){t[d]=e.deserialize(a,n[d],o,i)}return t}return n}function deserializeSequenceType(e,t,n,o,i){let a=t.type.element;if(!a||typeof a!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${o}`)}if(n){if(!Array.isArray(n)){n=[n]}if(a.type.name==="Composite"&&a.type.className){a=e.modelMappers[a.type.className]??a}const t=[];for(let d=0;d<n.length;d++){t[d]=e.deserialize(a,n[d],`${o}[${d}]`,i)}return t}return n}function getIndexDiscriminator(e,t,n){const o=[n];while(o.length){const n=o.shift();const i=t===n?t:n+"."+t;if(Object.prototype.hasOwnProperty.call(e,i)){return e[i]}else{for(const[t,i]of Object.entries(e)){if(t.startsWith(n+".")&&i.type.uberParent===n&&i.type.className){o.push(i.type.className)}}}}return undefined}function getPolymorphicMapper(e,t,n,o){const i=getPolymorphicDiscriminatorRecursively(e,t);if(i){let a=i[o];if(a){if(o==="serializedName"){a=a.replace(/\\/gi,"")}const i=n[a];const d=t.type.uberParent??t.type.className;if(typeof i==="string"&&d){const n=getIndexDiscriminator(e.modelMappers.discriminators,i,d);if(n){t=n}}}}return t}function getPolymorphicDiscriminatorRecursively(e,t){return t.type.polymorphicDiscriminator||getPolymorphicDiscriminatorSafely(e,t.type.uberParent)||getPolymorphicDiscriminatorSafely(e,t.type.className)}function getPolymorphicDiscriminatorSafely(e,t){return t&&e.modelMappers[t]&&e.modelMappers[t].type.polymorphicDiscriminator}const vs={Base64Url:"Base64Url",Boolean:"Boolean",ByteArray:"ByteArray",Composite:"Composite",Date:"Date",DateTime:"DateTime",DateTimeRfc1123:"DateTimeRfc1123",Dictionary:"Dictionary",Enum:"Enum",Number:"Number",Object:"Object",Sequence:"Sequence",String:"String",Stream:"Stream",TimeSpan:"TimeSpan",UnixTime:"UnixTime"};var Ps=__nccwpck_require__(3345);const Ds=Ps.w;function getOperationArgumentValueFromParameter(e,t,n){let o=t.parameterPath;const i=t.mapper;let a;if(typeof o==="string"){o=[o]}if(Array.isArray(o)){if(o.length>0){if(i.isConstant){a=i.defaultValue}else{let t=getPropertyFromParameterPath(e,o);if(!t.propertyFound&&n){t=getPropertyFromParameterPath(n,o)}let d=false;if(!t.propertyFound){d=i.required||o[0]==="options"&&o.length===2}a=d?i.defaultValue:t.propertyValue}}}else{if(i.required){a={}}for(const t in o){const d=i.type.modelProperties[t];const m=o[t];const h=getOperationArgumentValueFromParameter(e,{parameterPath:m,mapper:d},n);if(h!==undefined){if(!a){a={}}a[t]=h}}}return a}function getPropertyFromParameterPath(e,t){const n={propertyFound:false};let o=0;for(;o<t.length;++o){const n=t[o];if(e&&n in e){e=e[n]}else{break}}if(o===t.length){n.propertyValue=e;n.propertyFound=true}return n}const ks=Symbol.for("@azure/core-client original request");function hasOriginalRequest(e){return ks in e}function getOperationRequestInfo(e){if(hasOriginalRequest(e)){return getOperationRequestInfo(e[ks])}let t=Ds.operationRequestMap.get(e);if(!t){t={};Ds.operationRequestMap.set(e,t)}return t}const _s=["application/json","text/json"];const Ls=["application/xml","application/atom+xml"];const Os="deserializationPolicy";function deserializationPolicy(e={}){const t=e.expectedContentTypes?.json??_s;const n=e.expectedContentTypes?.xml??Ls;const o=e.parseXML;const i=e.serializerOptions;const a={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??xs}};return{name:Os,async sendRequest(e,i){const d=await i(e);return deserializeResponseBody(t,n,d,a,o)}}}function getOperationResponseMap(e){let t;const n=e.request;const o=getOperationRequestInfo(n);const i=o?.operationSpec;if(i){if(!o?.operationResponseGetter){t=i.responses[e.status]}else{t=o?.operationResponseGetter(i,e)}}return t}function shouldDeserializeResponse(e){const t=e.request;const n=getOperationRequestInfo(t);const o=n?.shouldDeserialize;let i;if(o===undefined){i=true}else if(typeof o==="boolean"){i=o}else{i=o(e)}return i}async function deserializeResponseBody(e,t,n,o,i){const a=await parse(e,t,n,o,i);if(!shouldDeserializeResponse(a)){return a}const d=getOperationRequestInfo(a.request);const m=d?.operationSpec;if(!m||!m.responses){return a}const h=getOperationResponseMap(a);const{error:f,shouldReturnResponse:C}=handleErrorResponse(a,m,h,o);if(f){throw f}else if(C){return a}if(h){if(h.bodyMapper){let e=a.parsedBody;if(m.isXML&&h.bodyMapper.type.name===vs.Sequence){e=typeof e==="object"?e[h.bodyMapper.xmlElementName]:[]}try{a.parsedBody=m.serializer.deserialize(h.bodyMapper,e,"operationRes.parsedBody",o)}catch(e){const t=new ms(`Error ${e} occurred in deserializing the responseBody - ${a.bodyAsText}`,{statusCode:a.status,request:a.request,response:a});throw t}}else if(m.httpMethod==="HEAD"){a.parsedBody=n.status>=200&&n.status<300}if(h.headersMapper){a.parsedHeaders=m.serializer.deserialize(h.headersMapper,a.headers.toJSON(),"operationRes.parsedHeaders",{xml:{},ignoreUnknownProperties:true})}}return a}function isOperationSpecEmpty(e){const t=Object.keys(e.responses);return t.length===0||t.length===1&&t[0]==="default"}function handleErrorResponse(e,t,n,o){const i=200<=e.status&&e.status<300;const a=isOperationSpecEmpty(t)?i:!!n;if(a){if(n){if(!n.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=n??t.responses.default;const m=e.request.streamResponseStatusCodes?.has(e.status)?`Unexpected status code: ${e.status}`:e.bodyAsText;const h=new ms(m,{statusCode:e.status,request:e.request,response:e});if(!d&&!(e.parsedBody?.error?.code&&e.parsedBody?.error?.message)){throw h}const f=d?.bodyMapper;const C=d?.headersMapper;try{if(e.parsedBody){const n=e.parsedBody;let i;if(f){let e=n;if(t.isXML&&f.type.name===vs.Sequence){e=[];const t=f.xmlElementName;if(typeof n==="object"&&t){e=n[t]}}i=t.serializer.deserialize(f,e,"error.response.parsedBody",o)}const a=n.error||i||n;h.code=a.code;if(a.message){h.message=a.message}if(f){h.response.parsedBody=i}}if(e.headers&&C){h.response.parsedHeaders=t.serializer.deserialize(C,e.headers.toJSON(),"operationRes.parsedHeaders")}}catch(t){h.message=`Error "${t.message}" occurred in deserializing the responseBody - "${e.bodyAsText}" for the default response.`}return{error:h,shouldReturnResponse:false}}async function parse(e,t,n,o,i){if(!n.request.streamResponseStatusCodes?.has(n.status)&&n.bodyAsText){const a=n.bodyAsText;const d=n.headers.get("Content-Type")||"";const m=!d?[]:d.split(";").map((e=>e.toLowerCase()));try{if(m.length===0||m.some((t=>e.indexOf(t)!==-1))){n.parsedBody=JSON.parse(a);return n}else if(m.some((e=>t.indexOf(e)!==-1))){if(!i){throw new Error("Parsing XML not supported.")}const e=await i(a,o.xml);n.parsedBody=e;return n}}catch(e){const t=`Error "${e}" occurred while parsing the response body - ${n.bodyAsText}.`;const o=e.code||ms.PARSE_ERROR;const i=new ms(t,{code:o,statusCode:n.status,request:n.request,response:n});throw i}}return n}function getStreamingResponseStatusCodes(e){const t=new Set;for(const n in e.responses){const o=e.responses[n];if(o.bodyMapper&&o.bodyMapper.type.name===vs.Stream){t.add(Number(n))}}return t}function getPathStringFromParameter(e){const{parameterPath:t,mapper:n}=e;let o;if(typeof t==="string"){o=t}else if(Array.isArray(t)){o=t.join(".")}else{o=n.serializedName}return o}const Fs="serializationPolicy";function serializationPolicy(e={}){const t=e.stringifyXML;return{name:Fs,async sendRequest(e,n){const o=getOperationRequestInfo(e);const i=o?.operationSpec;const a=o?.operationArguments;if(i&&a){serializeHeaders(e,a,i);serializeRequestBody(e,a,i,t)}return n(e)}}}function serializeHeaders(e,t,n){if(n.headerParameters){for(const o of n.headerParameters){let i=getOperationArgumentValueFromParameter(t,o);if(i!==null&&i!==undefined||o.mapper.required){i=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o));const t=o.mapper.headerCollectionPrefix;if(t){for(const n of Object.keys(i)){e.headers.set(t+n,i[n])}}else{e.headers.set(o.mapper.serializedName||getPathStringFromParameter(o),i)}}}}const o=t.options?.requestOptions?.customHeaders;if(o){for(const t of Object.keys(o)){e.headers.set(t,o[t])}}}function serializeRequestBody(e,t,n,o=function(){throw new Error("XML serialization unsupported!")}){const i=t.options?.serializerOptions;const a={xml:{rootName:i?.xml.rootName??"",includeRoot:i?.xml.includeRoot??false,xmlCharKey:i?.xml.xmlCharKey??xs}};const d=a.xml.xmlCharKey;if(n.requestBody&&n.requestBody.mapper){e.body=getOperationArgumentValueFromParameter(t,n.requestBody);const i=n.requestBody.mapper;const{required:m,serializedName:h,xmlName:f,xmlElementName:C,xmlNamespace:P,xmlNamespacePrefix:D,nullable:k}=i;const L=i.type.name;try{if(e.body!==undefined&&e.body!==null||k&&e.body===null||m){const t=getPathStringFromParameter(n.requestBody);e.body=n.serializer.serialize(i,e.body,t,a);const m=L===vs.Stream;if(n.isXML){const t=D?`xmlns:${D}`:"xmlns";const n=getXmlValueWithNamespace(P,t,L,e.body,a);if(L===vs.Sequence){e.body=o(prepareXMLRootList(n,C||f||h,t,P),{rootName:f||h,xmlCharKey:d})}else if(!m){e.body=o(n,{rootName:f||h,xmlCharKey:d})}}else if(L===vs.String&&(n.contentType?.match("text/plain")||n.mediaType==="text")){return}else if(!m){e.body=JSON.stringify(e.body)}}}catch(e){throw new Error(`Error "${e.message}" occurred in serializing the payload - ${JSON.stringify(h,undefined," ")}.`)}}else if(n.formDataParameters&&n.formDataParameters.length>0){e.formData={};for(const o of n.formDataParameters){const i=getOperationArgumentValueFromParameter(t,o);if(i!==undefined&&i!==null){const t=o.mapper.serializedName||getPathStringFromParameter(o);e.formData[t]=n.serializer.serialize(o.mapper,i,getPathStringFromParameter(o),a)}}}}function getXmlValueWithNamespace(e,t,n,o,i){if(e&&!["Composite","Sequence","Dictionary"].includes(n)){const n={};n[i.xml.xmlCharKey]=o;n[Ns]={[t]:e};return n}return o}function prepareXMLRootList(e,t,n,o){if(!Array.isArray(e)){e=[e]}if(!n||!o){return{[t]:e}}const i={[t]:e};i[Ns]={[n]:o};return i}function createClientPipeline(e={}){const t=esm_createPipelineFromOptions_createPipelineFromOptions(e??{});if(e.credentialOptions){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e.credentialOptions.credential,scopes:e.credentialOptions.credentialScopes}))}t.addPolicy(serializationPolicy(e.serializationOptions),{phase:"Serialize"});t.addPolicy(deserializationPolicy(e.deserializationOptions),{phase:"Deserialize"});return t}let Us;function getCachedDefaultHttpClient(){if(!Us){Us=esm_defaultHttpClient_createDefaultHttpClient()}return Us}const Ms={CSV:",",SSV:" ",Multi:"Multi",TSV:"\t",Pipes:"|"};function getRequestUrl(e,t,n,o){const i=calculateUrlReplacements(t,n,o);let a=false;let d=replaceAll(e,i);if(t.path){let e=replaceAll(t.path,i);if(t.path==="/{nextLink}"&&e.startsWith("/")){e=e.substring(1)}if(isAbsoluteUrl(e)){d=e;a=true}else{d=appendPath(d,e)}}const{queryParams:m,sequenceParams:h}=calculateQueryParameters(t,n,o);d=appendQueryParams(d,m,h,a);return d}function replaceAll(e,t){let n=e;for(const[e,o]of t){n=n.split(e).join(o)}return n}function calculateUrlReplacements(e,t,n){const o=new Map;if(e.urlParameters?.length){for(const i of e.urlParameters){let a=getOperationArgumentValueFromParameter(t,i,n);const d=getPathStringFromParameter(i);a=e.serializer.serialize(i.mapper,a,d);if(!i.skipEncoding){a=encodeURIComponent(a)}o.set(`{${i.mapper.serializedName||d}}`,a)}}return o}function isAbsoluteUrl(e){return e.includes("://")}function appendPath(e,t){if(!t){return e}const n=new URL(e);let o=n.pathname;if(!o.endsWith("/")){o=`${o}/`}if(t.startsWith("/")){t=t.substring(1)}const i=t.indexOf("?");if(i!==-1){const e=t.substring(0,i);const a=t.substring(i+1);o=o+e;if(a){n.search=n.search?`${n.search}&${a}`:a}}else{o=o+t}n.pathname=o;return n.toString()}function calculateQueryParameters(e,t,n){const o=new Map;const i=new Set;if(e.queryParameters?.length){for(const a of e.queryParameters){if(a.mapper.type.name==="Sequence"&&a.mapper.serializedName){i.add(a.mapper.serializedName)}let d=getOperationArgumentValueFromParameter(t,a,n);if(d!==undefined&&d!==null||a.mapper.required){d=e.serializer.serialize(a.mapper,d,getPathStringFromParameter(a));const t=a.collectionFormat?Ms[a.collectionFormat]:"";if(Array.isArray(d)){d=d.map((e=>{if(e===null||e===undefined){return""}return e}))}if(a.collectionFormat==="Multi"&&d.length===0){continue}else if(Array.isArray(d)&&(a.collectionFormat==="SSV"||a.collectionFormat==="TSV")){d=d.join(t)}if(!a.skipEncoding){if(Array.isArray(d)){d=d.map((e=>encodeURIComponent(e)))}else{d=encodeURIComponent(d)}}if(Array.isArray(d)&&(a.collectionFormat==="CSV"||a.collectionFormat==="Pipes")){d=d.join(t)}o.set(a.mapper.serializedName||getPathStringFromParameter(a),d)}}}return{queryParams:o,sequenceParams:i}}function simpleParseQueryParams(e){const t=new Map;if(!e||e[0]!=="?"){return t}e=e.slice(1);const n=e.split("&");for(const e of n){const[n,o]=e.split("=",2);const i=t.get(n);if(i){if(Array.isArray(i)){i.push(o)}else{t.set(n,[i,o])}}else{t.set(n,o)}}return t}function appendQueryParams(e,t,n,o=false){if(t.size===0){return e}const i=new URL(e);const a=simpleParseQueryParams(i.search);for(const[e,i]of t){const t=a.get(e);if(Array.isArray(t)){if(Array.isArray(i)){t.push(...i);const n=new Set(t);a.set(e,Array.from(n))}else{t.push(i)}}else if(t){if(Array.isArray(i)){i.unshift(t)}else if(n.has(e)){a.set(e,[t,i])}if(!o){a.set(e,i)}}else{a.set(e,i)}}const d=[];for(const[e,t]of a){if(typeof t==="string"){d.push(`${e}=${t}`)}else if(Array.isArray(t)){for(const n of t){d.push(`${e}=${n}`)}}else{d.push(`${e}=${t}`)}}i.search=d.length?`?${d.join("&")}`:"";return i.toString()}const Hs=esm_createClientLogger("core-client");class ServiceClient{_endpoint;_requestContentType;_allowInsecureConnection;_httpClient;pipeline;constructor(e={}){this._requestContentType=e.requestContentType;this._endpoint=e.endpoint??e.baseUri;if(e.baseUri){Hs.warning("The baseUri option for SDK Clients has been deprecated, please use endpoint instead.")}this._allowInsecureConnection=e.allowInsecureConnection;this._httpClient=e.httpClient||getCachedDefaultHttpClient();this.pipeline=e.pipeline||serviceClient_createDefaultPipeline(e);if(e.additionalPolicies?.length){for(const{policy:t,position:n}of e.additionalPolicies){const e=n==="perRetry"?"Sign":undefined;this.pipeline.addPolicy(t,{afterPhase:e})}}}async sendRequest(e){return this.pipeline.sendRequest(this._httpClient,e)}async sendOperationRequest(e,t){const n=t.baseUrl||this._endpoint;if(!n){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a endpoint string property that contains the base URL to use.")}const o=getRequestUrl(n,t,e,this);const i=esm_pipelineRequest_createPipelineRequest({url:o});i.method=t.httpMethod;const a=getOperationRequestInfo(i);a.operationSpec=t;a.operationArguments=e;const d=t.contentType||this._requestContentType;if(d&&t.requestBody){i.headers.set("Content-Type",d)}const m=e.options;if(m){const e=m.requestOptions;if(e){if(e.timeout){i.timeout=e.timeout}if(e.onUploadProgress){i.onUploadProgress=e.onUploadProgress}if(e.onDownloadProgress){i.onDownloadProgress=e.onDownloadProgress}if(e.shouldDeserialize!==undefined){a.shouldDeserialize=e.shouldDeserialize}if(e.allowInsecureConnection){i.allowInsecureConnection=true}}if(m.abortSignal){i.abortSignal=m.abortSignal}if(m.tracingOptions){i.tracingOptions=m.tracingOptions}}if(this._allowInsecureConnection){i.allowInsecureConnection=true}if(i.streamResponseStatusCodes===undefined){i.streamResponseStatusCodes=getStreamingResponseStatusCodes(t)}try{const e=await this.sendRequest(i);const n=flattenResponse(e,t.responses[e.status]);if(m?.onResponse){m.onResponse(e,n)}return n}catch(e){if(typeof e==="object"&&e?.response){const n=e.response;const o=flattenResponse(n,t.responses[e.statusCode]||t.responses["default"]);e.details=o;if(m?.onResponse){m.onResponse(n,o,e)}}throw e}}}function serviceClient_createDefaultPipeline(e){const t=getCredentialScopes(e);const n=e.credential&&t?{credentialScopes:t,credential:e.credential}:undefined;return createClientPipeline({...e,credentialOptions:n})}function getCredentialScopes(e){if(e.credentialScopes){return e.credentialScopes}if(e.endpoint){return`${e.endpoint}/.default`}if(e.baseUri){return`${e.baseUri}/.default`}if(e.credential&&!e.credentialScopes){throw new Error(`When using credentials, the ServiceClientOptions must contain either a endpoint or a credentialScopes. Unable to create a bearerTokenAuthenticationPolicy`)}return undefined}function parseCAEChallenge(e){const t=`, ${e.trim()}`.split(", Bearer ").filter((e=>e));return t.map((e=>{const t=`${e.trim()}, `.split('", ').filter((e=>e));const n=t.map((e=>(([e,t])=>({[e]:t}))(e.trim().split('="'))));return n.reduce(((e,t)=>({...e,...t})),{})}))}async function authorizeRequestOnClaimChallenge(e){const{scopes:t,response:n}=e;const o=e.logger||coreClientLogger;const i=n.headers.get("WWW-Authenticate");if(!i){o.info(`The WWW-Authenticate header was missing. Failed to perform the Continuous Access Evaluation authentication flow.`);return false}const a=parseCAEChallenge(i)||[];const d=a.find((e=>e.claims));if(!d){o.info(`The WWW-Authenticate header was missing the necessary "claims" to perform the Continuous Access Evaluation authentication flow.`);return false}const m=await e.getAccessToken(d.scope?[d.scope]:t,{claims:decodeStringToString(d.claims)});if(!m){return false}e.request.headers.set("Authorization",`${m.tokenType??"Bearer"} ${m.token}`);return true}const $s={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};function isUuid(e){return/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/.test(e)}const authorizeRequestOnTenantChallenge=async e=>{const t=requestToOptions(e.request);const n=getChallenge(e.response);if(n){const o=parseChallenge(n);const i=buildScopes(e,o);const a=extractTenantId(o);if(!a){return false}const d=await e.getAccessToken(i,{...t,tenantId:a});if(!d){return false}e.request.headers.set($s.HeaderConstants.AUTHORIZATION,`${d.tokenType??"Bearer"} ${d.token}`);return true}return false};function extractTenantId(e){const t=new URL(e.authorization_uri);const n=t.pathname.split("/");const o=n[1];if(o&&isUuid(o)){return o}return undefined}function buildScopes(e,t){if(!t.resource_id){return e.scopes}const n=new URL(t.resource_id);n.pathname=$s.DefaultScope;let o=n.toString();if(o==="https://disk.azure.com/.default"){o="https://disk.azure.com//.default"}return[o]}function getChallenge(e){const t=e.headers.get("WWW-Authenticate");if(e.status===401&&t){return t}return}function parseChallenge(e){const t=e.slice("Bearer ".length);const n=`${t.trim()} `.split(" ").filter((e=>e));const o=n.map((e=>(([e,t])=>({[e]:t}))(e.trim().split("="))));return o.reduce(((e,t)=>({...e,...t})),{})}function requestToOptions(e){return{abortSignal:e.abortSignal,requestOptions:{timeout:e.timeout},tracingOptions:e.tracingOptions}}const Gs=Symbol("Original PipelineRequest");const qs=Symbol.for("@azure/core-client original request");function toPipelineRequest(e,t={}){const n=e;const o=n[Gs];const i=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(o){o.headers=i;return o}else{const n=esm_pipelineRequest_createPipelineRequest({url:e.url,method:e.method,headers:i,withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,disableKeepAlive:!!e.keepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides});if(t.originalRequest){n[qs]=t.originalRequest}return n}}function toWebResourceLike(e,t){const n=t?.originalRequest??e;const o={url:e.url,method:e.method,headers:toHttpHeadersLike(e.headers),withCredentials:e.withCredentials,timeout:e.timeout,requestId:e.headers.get("x-ms-client-request-id")||e.requestId,abortSignal:e.abortSignal,body:e.body,formData:e.formData,keepAlive:!!e.disableKeepAlive,onDownloadProgress:e.onDownloadProgress,onUploadProgress:e.onUploadProgress,proxySettings:e.proxySettings,streamResponseStatusCodes:e.streamResponseStatusCodes,agent:e.agent,requestOverrides:e.requestOverrides,clone(){throw new Error("Cannot clone a non-proxied WebResourceLike")},prepare(){throw new Error("WebResourceLike.prepare() is not supported by @azure/core-http-compat")},validateRequestProperties(){}};if(t?.createProxy){return new Proxy(o,{get(t,i,a){if(i===Gs){return e}else if(i==="clone"){return()=>toWebResourceLike(toPipelineRequest(o,{originalRequest:n}),{createProxy:true,originalRequest:n})}return Reflect.get(t,i,a)},set(t,n,o,i){if(n==="keepAlive"){e.disableKeepAlive=!o}const a=["url","method","withCredentials","timeout","requestId","abortSignal","body","formData","onDownloadProgress","onUploadProgress","proxySettings","streamResponseStatusCodes","agent","requestOverrides"];if(typeof n==="string"&&a.includes(n)){e[n]=o}return Reflect.set(t,n,o,i)}})}else{return o}}function toHttpHeadersLike(e){return new HttpHeaders(e.toJSON({preserveCase:true}))}function getHeaderKey(e){return e.toLowerCase()}class HttpHeaders{_headersMap;constructor(e){this._headersMap={};if(e){for(const t in e){this.set(t,e[t])}}}set(e,t){this._headersMap[getHeaderKey(e)]={name:e,value:t.toString()}}get(e){const t=this._headersMap[getHeaderKey(e)];return!t?undefined:t.value}contains(e){return!!this._headersMap[getHeaderKey(e)]}remove(e){const t=this.contains(e);delete this._headersMap[getHeaderKey(e)];return t}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const e=[];for(const t in this._headersMap){e.push(this._headersMap[t])}return e}headerNames(){const e=[];const t=this.headersArray();for(let n=0;n<t.length;++n){e.push(t[n].name)}return e}headerValues(){const e=[];const t=this.headersArray();for(let n=0;n<t.length;++n){e.push(t[n].value)}return e}toJson(e={}){const t={};if(e.preserveCase){for(const e in this._headersMap){const n=this._headersMap[e];t[n.name]=n.value}}else{for(const e in this._headersMap){const n=this._headersMap[e];t[getHeaderKey(n.name)]=n.value}}return t}toString(){return JSON.stringify(this.toJson({preserveCase:true}))}clone(){const e={};for(const t in this._headersMap){const n=this._headersMap[t];e[n.name]=n.value}return new HttpHeaders(e)}}const zs=Symbol("Original FullOperationResponse");function toCompatResponse(e,t){let n=toWebResourceLike(e.request);let o=toHttpHeadersLike(e.headers);if(t?.createProxy){return new Proxy(e,{get(t,i,a){if(i==="headers"){return o}else if(i==="request"){return n}else if(i===zs){return e}return Reflect.get(t,i,a)},set(e,t,i,a){if(t==="headers"){o=i}else if(t==="request"){n=i}return Reflect.set(e,t,i,a)}})}else{return{...e,request:n,headers:o}}}function response_toPipelineResponse(e){const t=e;const n=t[zs];const o=esm_httpHeaders_createHttpHeaders(e.headers.toJson({preserveCase:true}));if(n){n.headers=o;return n}else{return{...e,headers:o,request:toPipelineRequest(e.request)}}}class ExtendedServiceClient extends ServiceClient{constructor(e){super(e);if(e.keepAliveOptions?.enable===false&&!pipelineContainsDisableKeepAlivePolicy(this.pipeline)){this.pipeline.addPolicy(createDisableKeepAlivePolicy())}if(e.redirectOptions?.handleRedirects===false){this.pipeline.removePolicy({name:Fn})}}async sendOperationRequest(e,t){const n=e?.options?.onResponse;let o;function onResponse(e,t,i){o=e;if(n){n(e,t,i)}}e.options={...e.options,onResponse:onResponse};const i=await super.sendOperationRequest(e,t);if(o){Object.defineProperty(i,"_response",{value:toCompatResponse(o)})}return i}}var Vs;(function(e){e[e["ERROR"]=1]="ERROR";e[e["INFO"]=3]="INFO";e[e["OFF"]=0]="OFF";e[e["WARNING"]=2]="WARNING"})(Vs||(Vs={}));const js={log(e,t){},shouldLog(e){return false}};const Ys="RequestPolicyFactoryPolicy";function createRequestPolicyFactoryPolicy(e){const t=e.slice().reverse();return{name:Ys,async sendRequest(e,n){let o={async sendRequest(e){const t=await n(toPipelineRequest(e));return toCompatResponse(t,{createProxy:true})}};for(const e of t){o=e.create(o,js)}const i=toWebResourceLike(e,{createProxy:true});const a=await o.sendRequest(i);return response_toPipelineResponse(a)}}}function convertHttpClient(e){return{sendRequest:async t=>{const n=await e.sendRequest(toWebResourceLike(t,{createProxy:true}));return response_toPipelineResponse(n)}}}const Js="\n";function toXml(e,t){let n="";if(t.format&&t.indentBy.length>0){n=Js}return arrToStr(e,t,"",n)}function arrToStr(e,t,n,o){let i="";let a=false;for(let d=0;d<e.length;d++){const m=e[d];const h=propName(m);if(h===undefined)continue;let f="";if(n.length===0)f=h;else f=`${n}.${h}`;if(h===t.textNodeName){let e=m[h];if(!isStopNode(f,t)){e=t.tagValueProcessor(h,e);e=replaceEntitiesValue(e,t)}if(a){i+=o}i+=e;a=false;continue}else if(h===t.cdataPropName){if(a){i+=o}i+=`<![CDATA[${m[h][0][t.textNodeName]}]]>`;a=false;continue}else if(h===t.commentPropName){i+=o+`\x3c!--${m[h][0][t.textNodeName]}--\x3e`;a=true;continue}else if(h[0]==="?"){const e=attr_to_str(m[":@"],t);const n=h==="?xml"?"":o;let d=m[h][0][t.textNodeName];d=d.length!==0?" "+d:"";i+=n+`<${h}${d}${e}?>`;a=true;continue}let C=o;if(C!==""){C+=t.indentBy}const P=attr_to_str(m[":@"],t);const D=o+`<${h}${P}`;const k=arrToStr(m[h],t,f,C);if(t.unpairedTags.indexOf(h)!==-1){if(t.suppressUnpairedNode)i+=D+">";else i+=D+"/>"}else if((!k||k.length===0)&&t.suppressEmptyNode){i+=D+"/>"}else if(k&&k.endsWith(">")){i+=D+`>${k}${o}</${h}>`}else{i+=D+">";if(k&&o!==""&&(k.includes("/>")||k.includes("</"))){i+=o+t.indentBy+k+o}else{i+=k}i+=`</${h}>`}a=true}return i}function propName(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];if(!e.hasOwnProperty(o))continue;if(o!==":@")return o}}function attr_to_str(e,t){let n="";if(e&&!t.ignoreAttributes){for(let o in e){if(!e.hasOwnProperty(o))continue;let i=t.attributeValueProcessor(o,e[o]);i=replaceEntitiesValue(i,t);if(i===true&&t.suppressBooleanAttributes){n+=` ${o.substr(t.attributeNamePrefix.length)}`}else{n+=` ${o.substr(t.attributeNamePrefix.length)}="${i}"`}}}return n}function isStopNode(e,t){e=e.substr(0,e.length-t.textNodeName.length-1);let n=e.substr(e.lastIndexOf(".")+1);for(let o in t.stopNodes){if(t.stopNodes[o]===e||t.stopNodes[o]==="*."+n)return true}return false}function replaceEntitiesValue(e,t){if(e&&e.length>0&&t.processEntities){for(let n=0;n<t.entities.length;n++){const o=t.entities[n];e=e.replace(o.regex,o.val)}}return e}function getIgnoreAttributesFn(e){if(typeof e==="function"){return e}if(Array.isArray(e)){return t=>{for(const n of e){if(typeof n==="string"&&t===n){return true}if(n instanceof RegExp&&n.test(t)){return true}}}}return()=>false}const Ws={attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,cdataPropName:false,format:false,indentBy:" ",suppressEmptyNode:false,suppressUnpairedNode:true,suppressBooleanAttributes:true,tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},preserveOrder:false,commentPropName:false,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:true,stopNodes:[],oneListGroup:false};function Builder(e){this.options=Object.assign({},Ws,e);if(this.options.ignoreAttributes===true||this.options.attributesGroupName){this.isAttribute=function(){return false}}else{this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes);this.attrPrefixLen=this.options.attributeNamePrefix.length;this.isAttribute=isAttribute}this.processTextOrObjNode=processTextOrObjNode;if(this.options.format){this.indentate=indentate;this.tagEndChar=">\n";this.newLine="\n"}else{this.indentate=function(){return""};this.tagEndChar=">";this.newLine=""}}Builder.prototype.build=function(e){if(this.options.preserveOrder){return toXml(e,this.options)}else{if(Array.isArray(e)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1){e={[this.options.arrayNodeName]:e}}return this.j2x(e,0,[]).val}};Builder.prototype.j2x=function(e,t,n){let o="";let i="";const a=n.join(".");for(let d in e){if(!Object.prototype.hasOwnProperty.call(e,d))continue;if(typeof e[d]==="undefined"){if(this.isAttribute(d)){i+=""}}else if(e[d]===null){if(this.isAttribute(d)){i+=""}else if(d===this.options.cdataPropName){i+=""}else if(d[0]==="?"){i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar}else{i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar}}else if(e[d]instanceof Date){i+=this.buildTextValNode(e[d],d,"",t)}else if(typeof e[d]!=="object"){const n=this.isAttribute(d);if(n&&!this.ignoreAttributesFn(n,a)){o+=this.buildAttrPairStr(n,""+e[d])}else if(!n){if(d===this.options.textNodeName){let t=this.options.tagValueProcessor(d,""+e[d]);i+=this.replaceEntitiesValue(t)}else{i+=this.buildTextValNode(e[d],d,"",t)}}}else if(Array.isArray(e[d])){const o=e[d].length;let a="";let m="";for(let h=0;h<o;h++){const o=e[d][h];if(typeof o==="undefined"){}else if(o===null){if(d[0]==="?")i+=this.indentate(t)+"<"+d+"?"+this.tagEndChar;else i+=this.indentate(t)+"<"+d+"/"+this.tagEndChar}else if(typeof o==="object"){if(this.options.oneListGroup){const e=this.j2x(o,t+1,n.concat(d));a+=e.val;if(this.options.attributesGroupName&&o.hasOwnProperty(this.options.attributesGroupName)){m+=e.attrStr}}else{a+=this.processTextOrObjNode(o,d,t,n)}}else{if(this.options.oneListGroup){let e=this.options.tagValueProcessor(d,o);e=this.replaceEntitiesValue(e);a+=e}else{a+=this.buildTextValNode(o,d,"",t)}}}if(this.options.oneListGroup){a=this.buildObjectNode(a,d,m,t)}i+=a}else{if(this.options.attributesGroupName&&d===this.options.attributesGroupName){const t=Object.keys(e[d]);const n=t.length;for(let i=0;i<n;i++){o+=this.buildAttrPairStr(t[i],""+e[d][t[i]])}}else{i+=this.processTextOrObjNode(e[d],d,t,n)}}}return{attrStr:o,val:i}};Builder.prototype.buildAttrPairStr=function(e,t){t=this.options.attributeValueProcessor(e,""+t);t=this.replaceEntitiesValue(t);if(this.options.suppressBooleanAttributes&&t==="true"){return" "+e}else return" "+e+'="'+t+'"'};function processTextOrObjNode(e,t,n,o){const i=this.j2x(e,n+1,o.concat(t));if(e[this.options.textNodeName]!==undefined&&Object.keys(e).length===1){return this.buildTextValNode(e[this.options.textNodeName],t,i.attrStr,n)}else{return this.buildObjectNode(i.val,t,i.attrStr,n)}}Builder.prototype.buildObjectNode=function(e,t,n,o){if(e===""){if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}}else{let i="</"+t+this.tagEndChar;let a="";if(t[0]==="?"){a="?";i=""}if((n||n==="")&&e.indexOf("<")===-1){return this.indentate(o)+"<"+t+n+a+">"+e+i}else if(this.options.commentPropName!==false&&t===this.options.commentPropName&&a.length===0){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else{return this.indentate(o)+"<"+t+n+a+this.tagEndChar+e+this.indentate(o)+i}}};Builder.prototype.closeTag=function(e){let t="";if(this.options.unpairedTags.indexOf(e)!==-1){if(!this.options.suppressUnpairedNode)t="/"}else if(this.options.suppressEmptyNode){t="/"}else{t=`></${e}`}return t};function buildEmptyObjNode(e,t,n,o){if(e!==""){return this.buildObjectNode(e,t,n,o)}else{if(t[0]==="?")return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar;else{return this.indentate(o)+"<"+t+n+"/"+this.tagEndChar}}}Builder.prototype.buildTextValNode=function(e,t,n,o){if(this.options.cdataPropName!==false&&t===this.options.cdataPropName){return this.indentate(o)+`<![CDATA[${e}]]>`+this.newLine}else if(this.options.commentPropName!==false&&t===this.options.commentPropName){return this.indentate(o)+`\x3c!--${e}--\x3e`+this.newLine}else if(t[0]==="?"){return this.indentate(o)+"<"+t+n+"?"+this.tagEndChar}else{let i=this.options.tagValueProcessor(t,e);i=this.replaceEntitiesValue(i);if(i===""){return this.indentate(o)+"<"+t+n+this.closeTag(t)+this.tagEndChar}else{return this.indentate(o)+"<"+t+n+">"+i+"</"+t+this.tagEndChar}}};Builder.prototype.replaceEntitiesValue=function(e){if(e&&e.length>0&&this.options.processEntities){for(let t=0;t<this.options.entities.length;t++){const n=this.options.entities[t];e=e.replace(n.regex,n.val)}}return e};function indentate(e){return this.options.indentBy.repeat(e)}function isAttribute(e){if(e.startsWith(this.options.attributeNamePrefix)&&e!==this.options.textNodeName){return e.substr(this.attrPrefixLen)}else{return false}}const Ks=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD";const Xs=Ks+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";const Zs="["+Ks+"]["+Xs+"]*";const eo=new RegExp("^"+Zs+"$");function getAllMatches(e,t){const n=[];let o=t.exec(e);while(o){const i=[];i.startIndex=t.lastIndex-o[0].length;const a=o.length;for(let e=0;e<a;e++){i.push(o[e])}n.push(i);o=t.exec(e)}return n}const isName=function(e){const t=eo.exec(e);return!(t===null||typeof t==="undefined")};function isExist(e){return typeof e!=="undefined"}function isEmptyObject(e){return Object.keys(e).length===0}function merge(e,t,n){if(t){const o=Object.keys(t);const i=o.length;for(let a=0;a<i;a++){if(n==="strict"){e[o[a]]=[t[o[a]]]}else{e[o[a]]=t[o[a]]}}}}function getValue(e){if(exports.isExist(e)){return e}else{return""}}const to={allowBooleanAttributes:false,unpairedTags:[]};function validate(e,t){t=Object.assign({},to,t);const n=[];let o=false;let i=false;if(e[0]==="\ufeff"){e=e.substr(1)}for(let a=0;a<e.length;a++){if(e[a]==="<"&&e[a+1]==="?"){a+=2;a=readPI(e,a);if(a.err)return a}else if(e[a]==="<"){let d=a;a++;if(e[a]==="!"){a=readCommentAndCDATA(e,a);continue}else{let m=false;if(e[a]==="/"){m=true;a++}let h="";for(;a<e.length&&e[a]!==">"&&e[a]!==" "&&e[a]!=="\t"&&e[a]!=="\n"&&e[a]!=="\r";a++){h+=e[a]}h=h.trim();if(h[h.length-1]==="/"){h=h.substring(0,h.length-1);a--}if(!validateTagName(h)){let t;if(h.trim().length===0){t="Invalid space after '<'."}else{t="Tag '"+h+"' is an invalid name."}return getErrorObject("InvalidTag",t,getLineNumberForPosition(e,a))}const f=readAttributeStr(e,a);if(f===false){return getErrorObject("InvalidAttr","Attributes for '"+h+"' have open quote.",getLineNumberForPosition(e,a))}let C=f.value;a=f.index;if(C[C.length-1]==="/"){const n=a-C.length;C=C.substring(0,C.length-1);const i=validateAttributeString(C,t);if(i===true){o=true}else{return getErrorObject(i.err.code,i.err.msg,getLineNumberForPosition(e,n+i.err.line))}}else if(m){if(!f.tagClosed){return getErrorObject("InvalidTag","Closing tag '"+h+"' doesn't have proper closing.",getLineNumberForPosition(e,a))}else if(C.trim().length>0){return getErrorObject("InvalidTag","Closing tag '"+h+"' can't have attributes or invalid starting.",getLineNumberForPosition(e,d))}else if(n.length===0){return getErrorObject("InvalidTag","Closing tag '"+h+"' has not been opened.",getLineNumberForPosition(e,d))}else{const t=n.pop();if(h!==t.tagName){let n=getLineNumberForPosition(e,t.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+n.line+", col "+n.col+") instead of closing tag '"+h+"'.",getLineNumberForPosition(e,d))}if(n.length==0){i=true}}}else{const m=validateAttributeString(C,t);if(m!==true){return getErrorObject(m.err.code,m.err.msg,getLineNumberForPosition(e,a-C.length+m.err.line))}if(i===true){return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(e,a))}else if(t.unpairedTags.indexOf(h)!==-1){}else{n.push({tagName:h,tagStartPos:d})}o=true}for(a++;a<e.length;a++){if(e[a]==="<"){if(e[a+1]==="!"){a++;a=readCommentAndCDATA(e,a);continue}else if(e[a+1]==="?"){a=readPI(e,++a);if(a.err)return a}else{break}}else if(e[a]==="&"){const t=validateAmpersand(e,a);if(t==-1)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(e,a));a=t}else{if(i===true&&!isWhiteSpace(e[a])){return getErrorObject("InvalidXml","Extra text at the end",getLineNumberForPosition(e,a))}}}if(e[a]==="<"){a--}}}else{if(isWhiteSpace(e[a])){continue}return getErrorObject("InvalidChar","char '"+e[a]+"' is not expected.",getLineNumberForPosition(e,a))}}if(!o){return getErrorObject("InvalidXml","Start tag expected.",1)}else if(n.length==1){return getErrorObject("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",getLineNumberForPosition(e,n[0].tagStartPos))}else if(n.length>0){return getErrorObject("InvalidXml","Invalid '"+JSON.stringify(n.map((e=>e.tagName)),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}return true}function isWhiteSpace(e){return e===" "||e==="\t"||e==="\n"||e==="\r"}function readPI(e,t){const n=t;for(;t<e.length;t++){if(e[t]=="?"||e[t]==" "){const o=e.substr(n,t-n);if(t>5&&o==="xml"){return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(e,t))}else if(e[t]=="?"&&e[t+1]==">"){t++;break}else{continue}}}return t}function readCommentAndCDATA(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++){if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t<e.length;t++){if(e[t]==="<"){n++}else if(e[t]===">"){n--;if(n===0){break}}}}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++){if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}}return t}const ro='"';const no="'";function readAttributeStr(e,t){let n="";let o="";let i=false;for(;t<e.length;t++){if(e[t]===ro||e[t]===no){if(o===""){o=e[t]}else if(o!==e[t]){}else{o=""}}else if(e[t]===">"){if(o===""){i=true;break}}n+=e[t]}if(o!==""){return false}return{value:n,index:t,tagClosed:i}}const so=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(e,t){const n=getAllMatches(e,so);const o={};for(let e=0;e<n.length;e++){if(n[e][1].length===0){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' has no space in starting.",getPositionFromMatch(n[e]))}else if(n[e][3]!==undefined&&n[e][4]===undefined){return getErrorObject("InvalidAttr","Attribute '"+n[e][2]+"' is without value.",getPositionFromMatch(n[e]))}else if(n[e][3]===undefined&&!t.allowBooleanAttributes){return getErrorObject("InvalidAttr","boolean attribute '"+n[e][2]+"' is not allowed.",getPositionFromMatch(n[e]))}const i=n[e][2];if(!validateAttrName(i)){return getErrorObject("InvalidAttr","Attribute '"+i+"' is an invalid name.",getPositionFromMatch(n[e]))}if(!o.hasOwnProperty(i)){o[i]=1}else{return getErrorObject("InvalidAttr","Attribute '"+i+"' is repeated.",getPositionFromMatch(n[e]))}}return true}function validateNumberAmpersand(e,t){let n=/\d/;if(e[t]==="x"){t++;n=/[\da-fA-F]/}for(;t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function validateAmpersand(e,t){t++;if(e[t]===";")return-1;if(e[t]==="#"){t++;return validateNumberAmpersand(e,t)}let n=0;for(;t<e.length;t++,n++){if(e[t].match(/\w/)&&n<20)continue;if(e[t]===";")break;return-1}return t}function getErrorObject(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function validateAttrName(e){return isName(e)}function validateTagName(e){return isName(e)}function getLineNumberForPosition(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function getPositionFromMatch(e){return e.startIndex+e[1].length}const oo={validate:validate};const ao={preserveOrder:false,attributeNamePrefix:"@_",attributesGroupName:false,textNodeName:"#text",ignoreAttributes:true,removeNSPrefix:false,allowBooleanAttributes:false,parseTagValue:true,parseAttributeValue:false,trimValues:true,cdataPropName:false,numberParseOptions:{hex:true,leadingZeros:true,eNotation:true},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:false,isArray:()=>false,commentPropName:false,unpairedTags:[],processEntities:true,htmlEntities:false,ignoreDeclaration:false,ignorePiTags:false,transformTagName:false,transformAttributeName:false,updateTag:function(e,t,n){return e},captureMetaData:false};function normalizeProcessEntities(e){if(typeof e==="boolean"){return{enabled:e,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,allowedTags:null,tagFilter:null}}if(typeof e==="object"&&e!==null){return{enabled:e.enabled!==false,maxEntitySize:e.maxEntitySize??1e4,maxExpansionDepth:e.maxExpansionDepth??10,maxTotalExpansions:e.maxTotalExpansions??1e3,maxExpandedLength:e.maxExpandedLength??1e5,allowedTags:e.allowedTags??null,tagFilter:e.tagFilter??null}}return normalizeProcessEntities(true)}const buildOptions=function(e){const t=Object.assign({},ao,e);t.processEntities=normalizeProcessEntities(t.processEntities);return t};let co;if(typeof Symbol!=="function"){co="@@xmlMetadata"}else{co=Symbol("XML Node Metadata")}class XmlNode{constructor(e){this.tagname=e;this.child=[];this[":@"]={}}add(e,t){if(e==="__proto__")e="#__proto__";this.child.push({[e]:t})}addChild(e,t){if(e.tagname==="__proto__")e.tagname="#__proto__";if(e[":@"]&&Object.keys(e[":@"]).length>0){this.child.push({[e.tagname]:e.child,[":@"]:e[":@"]})}else{this.child.push({[e.tagname]:e.child})}if(t!==undefined){this.child[this.child.length-1][co]={startIndex:t}}}static getMetaDataSymbol(){return co}}class DocTypeReader{constructor(e){this.suppressValidationErr=!e;this.options=e}readDocType(e,t){const n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let o=1;let i=false,a=false;let d="";for(;t<e.length;t++){if(e[t]==="<"&&!a){if(i&&hasSeq(e,"!ENTITY",t)){t+=7;let o,i;[o,i,t]=this.readEntityExp(e,t+1,this.suppressValidationErr);if(i.indexOf("&")===-1){const e=o.replace(/[.\-+*:]/g,"\\.");n[o]={regx:RegExp(`&${e};`,"g"),val:i}}}else if(i&&hasSeq(e,"!ELEMENT",t)){t+=8;const{index:n}=this.readElementExp(e,t+1);t=n}else if(i&&hasSeq(e,"!ATTLIST",t)){t+=8}else if(i&&hasSeq(e,"!NOTATION",t)){t+=9;const{index:n}=this.readNotationExp(e,t+1,this.suppressValidationErr);t=n}else if(hasSeq(e,"!--",t))a=true;else throw new Error(`Invalid DOCTYPE`);o++;d=""}else if(e[t]===">"){if(a){if(e[t-1]==="-"&&e[t-2]==="-"){a=false;o--}}else{o--}if(o===0){break}}else if(e[t]==="["){i=true}else{d+=e[t]}}if(o!==0){throw new Error(`Unclosed DOCTYPE`)}}else{throw new Error(`Invalid Tag instead of DOCTYPE`)}return{entities:n,i:t}}readEntityExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'"){n+=e[t];t++}validateEntityName(n);t=skipWhitespace(e,t);if(!this.suppressValidationErr){if(e.substring(t,t+6).toUpperCase()==="SYSTEM"){throw new Error("External entities are not supported")}else if(e[t]==="%"){throw new Error("Parameter entities are not supported")}}let o="";[t,o]=this.readIdentifierVal(e,t,"entity");if(this.options.enabled!==false&&this.options.maxEntitySize&&o.length>this.options.maxEntitySize){throw new Error(`Entity "${n}" size (${o.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`)}t--;return[n,o,t]}readNotationExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}!this.suppressValidationErr&&validateEntityName(n);t=skipWhitespace(e,t);const o=e.substring(t,t+6).toUpperCase();if(!this.suppressValidationErr&&o!=="SYSTEM"&&o!=="PUBLIC"){throw new Error(`Expected SYSTEM or PUBLIC, found "${o}"`)}t+=o.length;t=skipWhitespace(e,t);let i=null;let a=null;if(o==="PUBLIC"){[t,i]=this.readIdentifierVal(e,t,"publicIdentifier");t=skipWhitespace(e,t);if(e[t]==='"'||e[t]==="'"){[t,a]=this.readIdentifierVal(e,t,"systemIdentifier")}}else if(o==="SYSTEM"){[t,a]=this.readIdentifierVal(e,t,"systemIdentifier");if(!this.suppressValidationErr&&!a){throw new Error("Missing mandatory system identifier for SYSTEM notation")}}return{notationName:n,publicIdentifier:i,systemIdentifier:a,index:--t}}readIdentifierVal(e,t,n){let o="";const i=e[t];if(i!=='"'&&i!=="'"){throw new Error(`Expected quoted string, found "${i}"`)}t++;while(t<e.length&&e[t]!==i){o+=e[t];t++}if(e[t]!==i){throw new Error(`Unterminated ${n} value`)}t++;return[t,o]}readElementExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}if(!this.suppressValidationErr&&!isName(n)){throw new Error(`Invalid element name: "${n}"`)}t=skipWhitespace(e,t);let o="";if(e[t]==="E"&&hasSeq(e,"MPTY",t))t+=4;else if(e[t]==="A"&&hasSeq(e,"NY",t))t+=2;else if(e[t]==="("){t++;while(t<e.length&&e[t]!==")"){o+=e[t];t++}if(e[t]!==")"){throw new Error("Unterminated content model")}}else if(!this.suppressValidationErr){throw new Error(`Invalid Element Expression, found "${e[t]}"`)}return{elementName:n,contentModel:o.trim(),index:t}}readAttlistExp(e,t){t=skipWhitespace(e,t);let n="";while(t<e.length&&!/\s/.test(e[t])){n+=e[t];t++}validateEntityName(n);t=skipWhitespace(e,t);let o="";while(t<e.length&&!/\s/.test(e[t])){o+=e[t];t++}if(!validateEntityName(o)){throw new Error(`Invalid attribute name: "${o}"`)}t=skipWhitespace(e,t);let i="";if(e.substring(t,t+8).toUpperCase()==="NOTATION"){i="NOTATION";t+=8;t=skipWhitespace(e,t);if(e[t]!=="("){throw new Error(`Expected '(', found "${e[t]}"`)}t++;let n=[];while(t<e.length&&e[t]!==")"){let o="";while(t<e.length&&e[t]!=="|"&&e[t]!==")"){o+=e[t];t++}o=o.trim();if(!validateEntityName(o)){throw new Error(`Invalid notation name: "${o}"`)}n.push(o);if(e[t]==="|"){t++;t=skipWhitespace(e,t)}}if(e[t]!==")"){throw new Error("Unterminated list of notations")}t++;i+=" ("+n.join("|")+")"}else{while(t<e.length&&!/\s/.test(e[t])){i+=e[t];t++}const n=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!n.includes(i.toUpperCase())){throw new Error(`Invalid attribute type: "${i}"`)}}t=skipWhitespace(e,t);let a="";if(e.substring(t,t+8).toUpperCase()==="#REQUIRED"){a="#REQUIRED";t+=8}else if(e.substring(t,t+7).toUpperCase()==="#IMPLIED"){a="#IMPLIED";t+=7}else{[t,a]=this.readIdentifierVal(e,t,"ATTLIST")}return{elementName:n,attributeName:o,attributeType:i,defaultValue:a,index:t}}}const skipWhitespace=(e,t)=>{while(t<e.length&&/\s/.test(e[t])){t++}return t};function hasSeq(e,t,n){for(let o=0;o<t.length;o++){if(t[o]!==e[n+o+1])return false}return true}function validateEntityName(e){if(isName(e))return e;else throw new Error(`Invalid entity name ${e}`)}const lo=/^[-+]?0x[a-fA-F0-9]+$/;const uo=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/;const po={hex:true,leadingZeros:true,decimalPoint:".",eNotation:true,infinity:"original"};function toNumber(e,t={}){t=Object.assign({},po,t);if(!e||typeof e!=="string")return e;let n=e.trim();if(t.skipLike!==undefined&&t.skipLike.test(n))return e;else if(e==="0")return 0;else if(t.hex&&lo.test(n)){return parse_int(n,16)}else if(!isFinite(n)){return handleInfinity(e,Number(n),t)}else if(n.includes("e")||n.includes("E")){return resolveEnotation(e,n,t)}else{const o=uo.exec(n);if(o){const i=o[1]||"";const a=o[2];let d=trimZeros(o[3]);const m=i?e[a.length+1]===".":e[a.length]===".";if(!t.leadingZeros&&(a.length>1||a.length===1&&!m)){return e}else{const o=Number(n);const m=String(o);if(o===0)return o;if(m.search(/[eE]/)!==-1){if(t.eNotation)return o;else return e}else if(n.indexOf(".")!==-1){if(m==="0")return o;else if(m===d)return o;else if(m===`${i}${d}`)return o;else return e}let h=a?d:n;if(a){return h===m||i+h===m?o:e}else{return h===m||h===i+m?o:e}}}else{return e}}}const Ao=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function resolveEnotation(e,t,n){if(!n.eNotation)return e;const o=t.match(Ao);if(o){let i=o[1]||"";const a=o[3].indexOf("e")===-1?"E":"e";const d=o[2];const m=i?e[d.length+1]===a:e[d.length]===a;if(d.length>1&&m)return e;else if(d.length===1&&(o[3].startsWith(`.${a}`)||o[3][0]===a)){return Number(t)}else if(n.leadingZeros&&!m){t=(o[1]||"")+o[3];return Number(t)}else return e}else{return e}}function trimZeros(e){if(e&&e.indexOf(".")!==-1){e=e.replace(/0+$/,"");if(e===".")e="0";else if(e[0]===".")e="0"+e;else if(e[e.length-1]===".")e=e.substring(0,e.length-1);return e}return e}function parse_int(e,t){if(parseInt)return parseInt(e,t);else if(Number.parseInt)return Number.parseInt(e,t);else if(window&&window.parseInt)return window.parseInt(e,t);else throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function handleInfinity(e,t,n){const o=t===Infinity;switch(n.infinity.toLowerCase()){case"null":return null;case"infinity":return t;case"string":return o?"Infinity":"-Infinity";case"original":default:return e}}class OrderedObjParser{constructor(e){this.options=e;this.currentNode=null;this.tagsNodeStack=[];this.docTypeEntities={};this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}};this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"};this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>fromCodePoint(t,10,"&#")},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>fromCodePoint(t,16,"&#x")}};this.addExternalEntities=addExternalEntities;this.parseXml=parseXml;this.parseTextData=parseTextData;this.resolveNameSpace=resolveNameSpace;this.buildAttributesMap=buildAttributesMap;this.isItStopNode=isItStopNode;this.replaceEntitiesValue=OrderedObjParser_replaceEntitiesValue;this.readStopNodeData=readStopNodeData;this.saveTextToParentTag=saveTextToParentTag;this.addChild=addChild;this.ignoreAttributesFn=getIgnoreAttributesFn(this.options.ignoreAttributes);this.entityExpansionCount=0;this.currentExpandedLength=0;if(this.options.stopNodes&&this.options.stopNodes.length>0){this.stopNodesExact=new Set;this.stopNodesWildcard=new Set;for(let e=0;e<this.options.stopNodes.length;e++){const t=this.options.stopNodes[e];if(typeof t!=="string")continue;if(t.startsWith("*.")){this.stopNodesWildcard.add(t.substring(2))}else{this.stopNodesExact.add(t)}}}}}function addExternalEntities(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const o=t[n];const i=o.replace(/[.\-+*:]/g,"\\.");this.lastEntities[o]={regex:new RegExp("&"+i+";","g"),val:e[o]}}}function parseTextData(e,t,n,o,i,a,d){if(e!==undefined){if(this.options.trimValues&&!o){e=e.trim()}if(e.length>0){if(!d)e=this.replaceEntitiesValue(e,t,n);const o=this.options.tagValueProcessor(t,e,n,i,a);if(o===null||o===undefined){return e}else if(typeof o!==typeof e||o!==e){return o}else if(this.options.trimValues){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{const t=e.trim();if(t===e){return parseValue(e,this.options.parseTagValue,this.options.numberParseOptions)}else{return e}}}}}function resolveNameSpace(e){if(this.options.removeNSPrefix){const t=e.split(":");const n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns"){return""}if(t.length===2){e=n+t[1]}}return e}const mo=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function buildAttributesMap(e,t,n){if(this.options.ignoreAttributes!==true&&typeof e==="string"){const o=getAllMatches(e,mo);const i=o.length;const a={};for(let e=0;e<i;e++){const i=this.resolveNameSpace(o[e][1]);if(this.ignoreAttributesFn(i,t)){continue}let d=o[e][4];let m=this.options.attributeNamePrefix+i;if(i.length){if(this.options.transformAttributeName){m=this.options.transformAttributeName(m)}if(m==="__proto__")m="#__proto__";if(d!==undefined){if(this.options.trimValues){d=d.trim()}d=this.replaceEntitiesValue(d,n,t);const e=this.options.attributeValueProcessor(i,d,t);if(e===null||e===undefined){a[m]=d}else if(typeof e!==typeof d||e!==d){a[m]=e}else{a[m]=parseValue(d,this.options.parseAttributeValue,this.options.numberParseOptions)}}else if(this.options.allowBooleanAttributes){a[m]=true}}}if(!Object.keys(a).length){return}if(this.options.attributesGroupName){const e={};e[this.options.attributesGroupName]=a;return e}return a}}const parseXml=function(e){e=e.replace(/\r\n?/g,"\n");const t=new XmlNode("!xml");let n=t;let o="";let i="";this.entityExpansionCount=0;this.currentExpandedLength=0;const a=new DocTypeReader(this.options.processEntities);for(let d=0;d<e.length;d++){const m=e[d];if(m==="<"){if(e[d+1]==="/"){const t=findClosingIndex(e,">",d,"Closing Tag is not closed.");let a=e.substring(d+2,t).trim();if(this.options.removeNSPrefix){const e=a.indexOf(":");if(e!==-1){a=a.substr(e+1)}}if(this.options.transformTagName){a=this.options.transformTagName(a)}if(n){o=this.saveTextToParentTag(o,n,i)}const m=i.substring(i.lastIndexOf(".")+1);if(a&&this.options.unpairedTags.indexOf(a)!==-1){throw new Error(`Unpaired tag can not be used as closing tag: </${a}>`)}let h=0;if(m&&this.options.unpairedTags.indexOf(m)!==-1){h=i.lastIndexOf(".",i.lastIndexOf(".")-1);this.tagsNodeStack.pop()}else{h=i.lastIndexOf(".")}i=i.substring(0,h);n=this.tagsNodeStack.pop();o="";d=t}else if(e[d+1]==="?"){let t=readTagExp(e,d,false,"?>");if(!t)throw new Error("Pi Tag is not closed.");o=this.saveTextToParentTag(o,n,i);if(this.options.ignoreDeclaration&&t.tagName==="?xml"||this.options.ignorePiTags){}else{const e=new XmlNode(t.tagName);e.add(this.options.textNodeName,"");if(t.tagName!==t.tagExp&&t.attrExpPresent){e[":@"]=this.buildAttributesMap(t.tagExp,i,t.tagName)}this.addChild(n,e,i,d)}d=t.closeIndex+1}else if(e.substr(d+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",d+4,"Comment is not closed.");if(this.options.commentPropName){const a=e.substring(d+4,t-2);o=this.saveTextToParentTag(o,n,i);n.add(this.options.commentPropName,[{[this.options.textNodeName]:a}])}d=t}else if(e.substr(d+1,2)==="!D"){const t=a.readDocType(e,d);this.docTypeEntities=t.entities;d=t.i}else if(e.substr(d+1,2)==="!["){const t=findClosingIndex(e,"]]>",d,"CDATA is not closed.")-2;const a=e.substring(d+9,t);o=this.saveTextToParentTag(o,n,i);let m=this.parseTextData(a,n.tagname,i,true,false,true,true);if(m==undefined)m="";if(this.options.cdataPropName){n.add(this.options.cdataPropName,[{[this.options.textNodeName]:a}])}else{n.add(this.options.textNodeName,m)}d=t+2}else{let a=readTagExp(e,d,this.options.removeNSPrefix);let m=a.tagName;const h=a.rawTagName;let f=a.tagExp;let C=a.attrExpPresent;let P=a.closeIndex;if(this.options.transformTagName){const e=this.options.transformTagName(m);if(f===m){f=e}m=e}if(n&&o){if(n.tagname!=="!xml"){o=this.saveTextToParentTag(o,n,i,false)}}const D=n;if(D&&this.options.unpairedTags.indexOf(D.tagname)!==-1){n=this.tagsNodeStack.pop();i=i.substring(0,i.lastIndexOf("."))}if(m!==t.tagname){i+=i?"."+m:m}const k=d;if(this.isItStopNode(this.stopNodesExact,this.stopNodesWildcard,i,m)){let t="";if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(m[m.length-1]==="/"){m=m.substr(0,m.length-1);i=i.substr(0,i.length-1);f=m}else{f=f.substr(0,f.length-1)}d=a.closeIndex}else if(this.options.unpairedTags.indexOf(m)!==-1){d=a.closeIndex}else{const n=this.readStopNodeData(e,h,P+1);if(!n)throw new Error(`Unexpected end of ${h}`);d=n.i;t=n.tagContent}const o=new XmlNode(m);if(m!==f&&C){o[":@"]=this.buildAttributesMap(f,i,m)}if(t){t=this.parseTextData(t,m,i,true,C,true,true)}i=i.substr(0,i.lastIndexOf("."));o.add(this.options.textNodeName,t);this.addChild(n,o,i,k)}else{if(f.length>0&&f.lastIndexOf("/")===f.length-1){if(m[m.length-1]==="/"){m=m.substr(0,m.length-1);i=i.substr(0,i.length-1);f=m}else{f=f.substr(0,f.length-1)}if(this.options.transformTagName){const e=this.options.transformTagName(m);if(f===m){f=e}m=e}const e=new XmlNode(m);if(m!==f&&C){e[":@"]=this.buildAttributesMap(f,i,m)}this.addChild(n,e,i,k);i=i.substr(0,i.lastIndexOf("."))}else{const e=new XmlNode(m);this.tagsNodeStack.push(n);if(m!==f&&C){e[":@"]=this.buildAttributesMap(f,i,m)}this.addChild(n,e,i,k);n=e}o="";d=P}}}else{o+=e[d]}}return t.child};function addChild(e,t,n,o){if(!this.options.captureMetaData)o=undefined;const i=this.options.updateTag(t.tagname,n,t[":@"]);if(i===false){}else if(typeof i==="string"){t.tagname=i;e.addChild(t,o)}else{e.addChild(t,o)}}const OrderedObjParser_replaceEntitiesValue=function(e,t,n){if(e.indexOf("&")===-1){return e}const o=this.options.processEntities;if(!o.enabled){return e}if(o.allowedTags){if(!o.allowedTags.includes(t)){return e}}if(o.tagFilter){if(!o.tagFilter(t,n)){return e}}for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];const i=e.match(n.regx);if(i){this.entityExpansionCount+=i.length;if(o.maxTotalExpansions&&this.entityExpansionCount>o.maxTotalExpansions){throw new Error(`Entity expansion limit exceeded: ${this.entityExpansionCount} > ${o.maxTotalExpansions}`)}const t=e.length;e=e.replace(n.regx,n.val);if(o.maxExpandedLength){this.currentExpandedLength+=e.length-t;if(this.currentExpandedLength>o.maxExpandedLength){throw new Error(`Total expanded content size exceeded: ${this.currentExpandedLength} > ${o.maxExpandedLength}`)}}}}if(e.indexOf("&")===-1)return e;for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(e.indexOf("&")===-1)return e;if(this.options.htmlEntities){for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}}e=e.replace(this.ampEntity.regex,this.ampEntity.val);return e};function saveTextToParentTag(e,t,n,o){if(e){if(o===undefined)o=t.child.length===0;e=this.parseTextData(e,t.tagname,n,false,t[":@"]?Object.keys(t[":@"]).length!==0:false,o);if(e!==undefined&&e!=="")t.add(this.options.textNodeName,e);e=""}return e}function isItStopNode(e,t,n,o){if(t&&t.has(o))return true;if(e&&e.has(n))return true;return false}function tagExpWithClosingIndex(e,t,n=">"){let o;let i="";for(let a=t;a<e.length;a++){let t=e[a];if(o){if(t===o)o=""}else if(t==='"'||t==="'"){o=t}else if(t===n[0]){if(n[1]){if(e[a+1]===n[1]){return{data:i,index:a}}}else{return{data:i,index:a}}}else if(t==="\t"){t=" "}i+=t}}function findClosingIndex(e,t,n,o){const i=e.indexOf(t,n);if(i===-1){throw new Error(o)}else{return i+t.length-1}}function readTagExp(e,t,n,o=">"){const i=tagExpWithClosingIndex(e,t+1,o);if(!i)return;let a=i.data;const d=i.index;const m=a.search(/\s/);let h=a;let f=true;if(m!==-1){h=a.substring(0,m);a=a.substring(m+1).trimStart()}const C=h;if(n){const e=h.indexOf(":");if(e!==-1){h=h.substr(e+1);f=h!==i.data.substr(e+1)}}return{tagName:h,tagExp:a,closeIndex:d,attrExpPresent:f,rawTagName:C}}function readStopNodeData(e,t,n){const o=n;let i=1;for(;n<e.length;n++){if(e[n]==="<"){if(e[n+1]==="/"){const a=findClosingIndex(e,">",n,`${t} is not closed`);let d=e.substring(n+2,a).trim();if(d===t){i--;if(i===0){return{tagContent:e.substring(o,n),i:a}}}n=a}else if(e[n+1]==="?"){const t=findClosingIndex(e,"?>",n+1,"StopNode is not closed.");n=t}else if(e.substr(n+1,3)==="!--"){const t=findClosingIndex(e,"--\x3e",n+3,"StopNode is not closed.");n=t}else if(e.substr(n+1,2)==="!["){const t=findClosingIndex(e,"]]>",n,"StopNode is not closed.")-2;n=t}else{const o=readTagExp(e,n,">");if(o){const e=o&&o.tagName;if(e===t&&o.tagExp[o.tagExp.length-1]!=="/"){i++}n=o.closeIndex}}}}}function parseValue(e,t,n){if(t&&typeof e==="string"){const t=e.trim();if(t==="true")return true;else if(t==="false")return false;else return toNumber(e,n)}else{if(isExist(e)){return e}else{return""}}}function fromCodePoint(e,t,n){const o=Number.parseInt(e,t);if(o>=0&&o<=1114111){return String.fromCodePoint(o)}else{return n+e+";"}}const go=XmlNode.getMetaDataSymbol();function prettify(e,t){return compress(e,t)}function compress(e,t,n){let o;const i={};for(let a=0;a<e.length;a++){const d=e[a];const m=node2json_propName(d);let h="";if(n===undefined)h=m;else h=n+"."+m;if(m===t.textNodeName){if(o===undefined)o=d[m];else o+=""+d[m]}else if(m===undefined){continue}else if(d[m]){let e=compress(d[m],t,h);const n=isLeafTag(e,t);if(d[go]!==undefined){e[go]=d[go]}if(d[":@"]){assignAttributes(e,d[":@"],h,t)}else if(Object.keys(e).length===1&&e[t.textNodeName]!==undefined&&!t.alwaysCreateTextNode){e=e[t.textNodeName]}else if(Object.keys(e).length===0){if(t.alwaysCreateTextNode)e[t.textNodeName]="";else e=""}if(i[m]!==undefined&&i.hasOwnProperty(m)){if(!Array.isArray(i[m])){i[m]=[i[m]]}i[m].push(e)}else{if(t.isArray(m,h,n)){i[m]=[e]}else{i[m]=e}}}}if(typeof o==="string"){if(o.length>0)i[t.textNodeName]=o}else if(o!==undefined)i[t.textNodeName]=o;return i}function node2json_propName(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const n=t[e];if(n!==":@")return n}}function assignAttributes(e,t,n,o){if(t){const i=Object.keys(t);const a=i.length;for(let d=0;d<a;d++){const a=i[d];if(o.isArray(a,n+"."+a,true,true)){e[a]=[t[a]]}else{e[a]=t[a]}}}}function isLeafTag(e,t){const{textNodeName:n}=t;const o=Object.keys(e).length;if(o===0){return true}if(o===1&&(e[n]||typeof e[n]==="boolean"||e[n]===0)){return true}return false}class XMLParser{constructor(e){this.externalEntities={};this.options=buildOptions(e)}parse(e,t){if(typeof e!=="string"&&e.toString){e=e.toString()}else if(typeof e!=="string"){throw new Error("XML data is accepted in String or Bytes[] form.")}if(t){if(t===true)t={};const n=validate(e,t);if(n!==true){throw Error(`${n.err.msg}:${n.err.line}:${n.err.col}`)}}const n=new OrderedObjParser(this.options);n.addExternalEntities(this.externalEntities);const o=n.parseXml(e);if(this.options.preserveOrder||o===undefined)return o;else return prettify(o,this.options)}addEntity(e,t){if(t.indexOf("&")!==-1){throw new Error("Entity value can't have '&'")}else if(e.indexOf("&")!==-1||e.indexOf(";")!==-1){throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'")}else if(t==="&"){throw new Error("An entity with value '&' is not permitted")}else{this.externalEntities[e]=t}}static getMetaDataSymbol(){return XmlNode.getMetaDataSymbol()}}const ho="$";const fo="_";function getCommonOptions(e){var t;return{attributesGroupName:ho,textNodeName:(t=e.xmlCharKey)!==null&&t!==void 0?t:fo,ignoreAttributes:false,suppressBooleanAttributes:false}}function getSerializerOptions(e={}){var t,n;return Object.assign(Object.assign({},getCommonOptions(e)),{attributeNamePrefix:"@_",format:true,suppressEmptyNode:true,indentBy:"",rootNodeName:(t=e.rootName)!==null&&t!==void 0?t:"root",cdataPropName:(n=e.cdataPropName)!==null&&n!==void 0?n:"__cdata"})}function getParserOptions(e={}){return Object.assign(Object.assign({},getCommonOptions(e)),{parseAttributeValue:false,parseTagValue:false,attributeNamePrefix:"",stopNodes:e.stopNodes,processEntities:true,trimValues:false})}function stringifyXML(e,t={}){const n=getSerializerOptions(t);const o=new Builder(n);const i={[n.rootNodeName]:e};const a=o.build(i);return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>${a}`.replace(/\n/g,"")}async function parseXML(e,t={}){if(!e){throw new Error("Document is empty")}const n=oo.validate(e);if(n!==true){throw n}const o=new XMLParser(getParserOptions(t));const i=o.parse(e);if(i["?xml"]){delete i["?xml"]}if(!t.includeRoot){for(const e of Object.keys(i)){const t=i[e];return typeof t==="object"?Object.assign({},t):t}}return i}const yo=esm_createClientLogger("storage-blob");class BuffersStream extends _r.Readable{buffers;byteLength;byteOffsetInCurrentBuffer;bufferIndex;pushedBytesLength;constructor(e,t,n){super(n);this.buffers=e;this.byteLength=t;this.byteOffsetInCurrentBuffer=0;this.bufferIndex=0;this.pushedBytesLength=0;let o=0;for(const e of this.buffers){o+=e.byteLength}if(o<this.byteLength){throw new Error("Data size shouldn't be larger than the total length of buffers.")}}_read(e){if(this.pushedBytesLength>=this.byteLength){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(n<e&&this.pushedBytesLength<this.byteLength){const o=this.byteLength-this.pushedBytesLength;const i=this.buffers[this.bufferIndex].byteLength-this.byteOffsetInCurrentBuffer;const a=Math.min(i,o);if(a>e-n){const o=this.byteOffsetInCurrentBuffer+e-n;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,o));this.pushedBytesLength+=e-n;this.byteOffsetInCurrentBuffer=o;n=e;break}else{const e=this.byteOffsetInCurrentBuffer+a;t.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,e));if(a===i){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=e}this.pushedBytesLength+=a;n+=a}}if(t.length>1){this.push(Buffer.concat(t))}else if(t.length===1){this.push(t[0])}}}var Eo=__nccwpck_require__(4573);const Co=Eo.constants.MAX_LENGTH;class PooledBuffer{buffers=[];capacity;_size;get size(){return this._size}constructor(e,t,n){this.capacity=e;this._size=0;const o=Math.ceil(e/Co);for(let t=0;t<o;t++){let n=t===o-1?e%Co:Co;if(n===0){n=Co}this.buffers.push(Buffer.allocUnsafe(n))}if(t){this.fill(t,n)}}fill(e,t){this._size=Math.min(this.capacity,t);let n=0,o=0,i=0,a=0,d=0;while(d<this._size){const t=e[n];const m=this.buffers[o];const h=t.copy(m,i,a);d+=h;a+=h;i+=h;if(a===t.length){n++;a=0}if(i===m.length){o++;i=0}}e.splice(0,n);if(e.length>0){e[0]=e[0].slice(a)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{bufferSize;maxBuffers;readable;outgoingHandler;emitter=new Ce.EventEmitter;concurrency;offset=0;isStreamEnd=false;isError=false;executingOutgoingHandlers=0;encoding;numBuffers=0;unresolvedDataArray=[];unresolvedLength=0;incoming=[];outgoing=[];constructor(e,t,n,o,i,a){if(t<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${t}`)}if(n<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${n}`)}if(i<=0){throw new RangeError(`concurrency must be larger than 0, current is ${i}`)}this.bufferSize=t;this.maxBuffers=n;this.readable=e;this.outgoingHandler=o;this.concurrency=i;this.encoding=a}async do(){return new Promise(((e,t)=>{this.readable.on("data",(e=>{e=typeof e==="string"?Buffer.from(e,this.encoding):e;this.appendUnresolvedData(e);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(e=>{this.emitter.emit("error",e)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(e=>{this.isError=true;this.readable.pause();t(e)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLength<this.bufferSize){const n=this.shiftBufferFromUnresolvedDataArray();this.outgoingHandler((()=>n.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){if(!e){e=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{e.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=e.size;return e}resolveData(){while(this.unresolvedLength>=this.bufferSize){let e;if(this.incoming.length>0){e=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(e)}else{if(this.numBuffers<this.maxBuffers){e=this.shiftBufferFromUnresolvedDataArray();this.numBuffers++}else{return false}}this.outgoing.push(e);this.triggerOutgoingHandlers()}return true}async triggerOutgoingHandlers(){let e;do{if(this.executingOutgoingHandlers>=this.concurrency){return}e=this.outgoing.shift();if(e){this.triggerOutgoingHandler(e)}}while(e)}async triggerOutgoingHandler(e){const t=e.size;this.executingOutgoingHandlers++;this.offset+=t;try{await this.outgoingHandler((()=>e.getReadableStream()),t,this.offset-t)}catch(e){this.emitter.emit("error",e);return}this.executingOutgoingHandlers--;this.reuseBuffer(e);this.emitter.emit("checkEnd")}reuseBuffer(e){this.incoming.push(e);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}let Io;function cache_getCachedDefaultHttpClient(){if(!Io){Io=esm_defaultHttpClient_createDefaultHttpClient()}return Io}class BaseRequestPolicy{_nextPolicy;_options;constructor(e,t){this._nextPolicy=e;this._options=t}shouldLog(e){return this._options.shouldLog(e)}log(e,t){this._options.log(e,t)}}const bo="1.0.0";const So={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Bo={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const wo=null&&`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Ro=null&&["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=utils_common_escape(n);t.pathname=n;return t.toString()}function getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=getProxyUriFromDevConnString(e);e=DevelopmentConnectionString}let n=getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let a=Buffer.from("accountKey","base64");let d="";i=getValueInConnString(e,"AccountName");a=Buffer.from(getValueInConnString(e,"AccountKey"),"base64");if(!n){o=getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(e,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${d}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(a.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=getValueInConnString(e,"SharedAccessSignature");let o=getValueInConnString(e,"AccountName");if(!o){o=getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const a=n?encodeURIComponent(n):undefined;const d=o.search===""?"?":o.search;const m=[];for(const e of d.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){m.push(e)}}}if(a){m.push(`${i}=${a}`)}o.search=m.length?`?${m.join("&")}`:"";return o.toString()}function getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));const o={};for(const e of n){const t=e.split("=");const n=t[0];const i=t[1];o[n]=i}return o}function appendToURLQuery(e,t){const n=new URL(e);let o=n.search;if(o){o+="&"+t}else{o=t}n.search=o;return n.toString()}function truncatedISO8061Date(e,t=true){const n=e.toISOString();return t?n.substring(0,n.length-1)+"0000"+"Z":n.substring(0,n.length-5)+"Z"}function base64encode(e){return!isNodeLike?btoa(e):Buffer.from(e).toString("base64")}function base64decode(e){return!isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function generateBlockID(e,t){const n=48;const o=6;const i=n-o;if(e.length>i){e=e.slice(0,i)}const a=e+padStart(t.toString(),n-e.length,"0");return base64encode(a)}async function utils_common_delay(e,t,n){return new Promise(((o,i)=>{let a;const abortHandler=()=>{if(a!==undefined){clearTimeout(a)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};a=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function sanitizeURL(e){let t=e;if(getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function sanitizeHeaders(e){const t=createHttpHeaders();for(const[n,o]of e){if(n.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(n,sanitizeURL(o))}else{t.set(n,o)}}return t}function iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&PathStylePorts.includes(e.port)}function attachCredential(e,t){e.credential=t;return e}function httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}class StorageBrowserPolicy extends BaseRequestPolicy{constructor(e,t){super(e,t)}async sendRequest(e){if(Jn){return this._nextPolicy.sendRequest(e)}if(e.method.toUpperCase()==="GET"||e.method.toUpperCase()==="HEAD"){e.url=setURLParameter(e.url,So.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.remove(Bo.COOKIE);e.headers.remove(Bo.CONTENT_LENGTH);return this._nextPolicy.sendRequest(e)}}class StorageBrowserPolicyFactory{create(e,t){return new StorageBrowserPolicy(e,t)}}class CredentialPolicy extends BaseRequestPolicy{sendRequest(e){return this._nextPolicy.sendRequest(this.signRequest(e))}signRequest(e){return e}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(e,t){super(e,t)}}class Credential{create(e,t){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(e,t){return new AnonymousCredentialPolicy(e,t)}}const No=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1820,0,1823,1825,1827,1829,0,0,0,1837,2051,0,0,1843,0,3331,3354,3356,3358,3360,3362,3364,3366,3368,3370,0,0,0,0,0,0,0,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,0,0,1859,1860,1864,3586,3593,3594,3610,3617,3619,3621,3628,3634,3637,3638,3656,3665,3696,3708,3710,3721,3722,3729,3737,3743,3746,3748,3750,3751,3753,0,1868,0,1872,0]);const xo=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);const Qo=new Uint32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,32786,0,0,0,0,0,33298,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function compareHeader(e,t){if(isLessThan(e,t))return-1;return 1}function isLessThan(e,t){const n=[No,xo,Qo];let o=0;let i=0;let a=0;while(o<n.length){if(o===n.length-1&&i!==a){return i>a}const d=i<e.length?n[o][e[i].charCodeAt(0)]:1;const m=a<t.length?n[o][t[a].charCodeAt(0)]:1;if(d===1&&m===1){i=0;a=0;++o}else if(d===m){++i;++a}else if(d===0){++i}else if(m===0){++a}else{return d<m}}return false}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{factory;constructor(e,t,n){super(e,t);this.factory=n}signRequest(e){e.headers.set(Bo.X_MS_DATE,(new Date).toUTCString());if(e.body&&(typeof e.body==="string"||e.body!==undefined)&&e.body.length>0){e.headers.set(Bo.CONTENT_LENGTH,Buffer.byteLength(e.body))}const t=[e.method.toUpperCase(),this.getHeaderValueToSign(e,Bo.CONTENT_LANGUAGE),this.getHeaderValueToSign(e,Bo.CONTENT_ENCODING),this.getHeaderValueToSign(e,Bo.CONTENT_LENGTH),this.getHeaderValueToSign(e,Bo.CONTENT_MD5),this.getHeaderValueToSign(e,Bo.CONTENT_TYPE),this.getHeaderValueToSign(e,Bo.DATE),this.getHeaderValueToSign(e,Bo.IF_MODIFIED_SINCE),this.getHeaderValueToSign(e,Bo.IF_MATCH),this.getHeaderValueToSign(e,Bo.IF_NONE_MATCH),this.getHeaderValueToSign(e,Bo.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(e,Bo.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e);const n=this.factory.computeHMACSHA256(t);e.headers.set(Bo.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`);return e}getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===Bo.CONTENT_LENGTH&&n==="0"){return""}return n}getCanonicalizedHeadersString(e){let t=e.headers.headersArray().filter((e=>e.name.toLowerCase().startsWith(Bo.PREFIX_FOR_STORAGE)));t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}getCanonicalizedResourceString(e){const t=getURLPath(e.url)||"/";let n="";n+=`/${this.factory.accountName}${t}`;const o=getURLQueries(e.url);const i={};if(o){const e=[];for(const t in o){if(Object.prototype.hasOwnProperty.call(o,t)){const n=t.toLowerCase();i[n]=o[t];e.push(n)}}e.sort();for(const t of e){n+=`\n${t}:${decodeURIComponent(i[t])}`}}return n}}class StorageSharedKeyCredential extends Credential{accountName;accountKey;constructor(e,t){super();this.accountName=e;this.accountKey=Buffer.from(t,"base64")}create(e,t){return new StorageSharedKeyCredentialPolicy(e,t,this)}computeHMACSHA256(e){return(0,Gn.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}}const To=esm_createClientLogger("storage-common");var vo;(function(e){e[e["EXPONENTIAL"]=0]="EXPONENTIAL";e[e["FIXED"]=1]="FIXED"})(vo||(vo={}));function NewRetryPolicyFactory(e){return{create:(t,n)=>new StorageRetryPolicy(t,n,e)}}const Po={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Do=new AbortError_AbortError("The operation was aborted.");class StorageRetryPolicy extends BaseRequestPolicy{retryOptions;constructor(e,t,n=Po){super(e,t);this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Po.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Po.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Po.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Po.maxRetryDelayInMs):Po.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Po.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Po.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,false,1)}async attemptSendRequest(e,t,n){const o=e.clone();const i=t||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;if(!i){o.url=setURLHost(o.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){o.url=setURLParameter(o.url,So.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let a;try{To.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`);a=await this._nextPolicy.sendRequest(o);if(!this.shouldRetry(i,n,a)){return a}t=t||!i&&a.status===404}catch(e){To.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);if(!this.shouldRetry(i,n,a,e)){throw e}}await this.delay(i,n,e.abortSignal);return this.attemptSendRequest(e,t,++n)}shouldRetry(e,t,n,o){if(t>=this.retryOptions.maxTries){To.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(const e of i){if(o.name.toUpperCase().includes(e)||o.message.toUpperCase().includes(e)||o.code&&o.code.toString().toUpperCase()===e){To.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}}if(n||o){const t=n?n.status:o?o.statusCode:0;if(!e&&t===404){To.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){To.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(n){if(n?.status>=400){const e=n.headers.get(Bo.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}if(o?.code==="PARSE_ERROR"&&o?.message.startsWith(`Error "Error: Unclosed root tag`)){To.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(e,t,n){let o=0;if(e){switch(this.retryOptions.retryPolicyType){case vo.EXPONENTIAL:o=Math.min((Math.pow(2,t-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case vo.FIXED:o=this.retryOptions.retryDelayInMs;break}}else{o=Math.random()*1e3}To.info(`RetryPolicy: Delay for ${o}ms`);return utils_common_delay(o,n,Do)}}class StorageRetryPolicyFactory{retryOptions;constructor(e){this.retryOptions=e}create(e,t){return new StorageRetryPolicy(e,t,this.retryOptions)}}const ko="storageBrowserPolicy";function storageBrowserPolicy(){return{name:ko,async sendRequest(e,t){if(Jn){return t(e)}if(e.method==="GET"||e.method==="HEAD"){e.url=setURLParameter(e.url,So.Parameters.FORCE_BROWSER_NO_CACHE,(new Date).getTime().toString())}e.headers.delete(Bo.COOKIE);e.headers.delete(Bo.CONTENT_LENGTH);return t(e)}}}const _o="StorageCorrectContentLengthPolicy";function storageCorrectContentLengthPolicy(){function correctContentLength(e){if(e.body&&(typeof e.body==="string"||Buffer.isBuffer(e.body))&&e.body.length>0){e.headers.set(Bo.CONTENT_LENGTH,Buffer.byteLength(e.body))}}return{name:_o,async sendRequest(e,t){correctContentLength(e);return t(e)}}}const Lo="storageRetryPolicy";const Oo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:vo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:undefined};const Fo=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];const Uo=new AbortError_AbortError("The operation was aborted.");function storageRetryPolicy(e={}){const t=e.retryPolicyType??Oo.retryPolicyType;const n=e.maxTries??Oo.maxTries;const o=e.retryDelayInMs??Oo.retryDelayInMs;const i=e.maxRetryDelayInMs??Oo.maxRetryDelayInMs;const a=e.secondaryHost??Oo.secondaryHost;const d=e.tryTimeoutInMs??Oo.tryTimeoutInMs;function shouldRetry({isPrimaryRetry:e,attempt:t,response:o,error:i}){if(t>=n){To.info(`RetryPolicy: Attempt(s) ${t} >= maxTries ${n}, no further try.`);return false}if(i){for(const e of Fo){if(i.name.toUpperCase().includes(e)||i.message.toUpperCase().includes(e)||i.code&&i.code.toString().toUpperCase()===e){To.info(`RetryPolicy: Network error ${e} found, will retry.`);return true}}if(i?.code==="PARSE_ERROR"&&i?.message.startsWith(`Error "Error: Unclosed root tag`)){To.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}}if(o||i){const t=o?.status??i?.statusCode??0;if(!e&&t===404){To.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(t===503||t===500){To.info(`RetryPolicy: Will retry for status code ${t}.`);return true}}if(o){if(o?.status>=400){const e=o.headers.get(Bo.X_MS_CopySourceErrorCode);if(e!==undefined){switch(e){case"InternalError":case"OperationTimedOut":case"ServerBusy":return true}}}}return false}function calculateDelay(e,n){let a=0;if(e){switch(t){case vo.EXPONENTIAL:a=Math.min((Math.pow(2,n-1)-1)*o,i);break;case vo.FIXED:a=o;break}}else{a=Math.random()*1e3}To.info(`RetryPolicy: Delay for ${a}ms`);return a}return{name:Lo,async sendRequest(e,t){if(d){e.url=setURLParameter(e.url,So.Parameters.TIMEOUT,String(Math.floor(d/1e3)))}const n=e.url;const o=a?setURLHost(e.url,a):undefined;let i=false;let m=1;let h=true;let f;let C;while(h){const a=i||!o||!["GET","HEAD","OPTIONS"].includes(e.method)||m%2===1;e.url=a?n:o;f=undefined;C=undefined;try{To.info(`RetryPolicy: =====> Try=${m} ${a?"Primary":"Secondary"}`);f=await t(e);i=i||!a&&f.status===404}catch(e){if(esm_restError_isRestError(e)){To.error(`RetryPolicy: Caught error, message: ${e.message}, code: ${e.code}`);C=e}else{To.error(`RetryPolicy: Caught error, message: ${getErrorMessage(e)}`);throw e}}h=shouldRetry({isPrimaryRetry:a,attempt:m,response:f,error:C});if(h){await utils_common_delay(calculateDelay(a,m),e.abortSignal,Uo)}m++}if(f){return f}throw C??new ms("RetryPolicy failed without known error.")}}}const Mo="storageSharedKeyCredentialPolicy";function storageSharedKeyCredentialPolicy(e){function signRequest(t){t.headers.set(Bo.X_MS_DATE,(new Date).toUTCString());if(t.body&&(typeof t.body==="string"||Buffer.isBuffer(t.body))&&t.body.length>0){t.headers.set(Bo.CONTENT_LENGTH,Buffer.byteLength(t.body))}const n=[t.method.toUpperCase(),getHeaderValueToSign(t,Bo.CONTENT_LANGUAGE),getHeaderValueToSign(t,Bo.CONTENT_ENCODING),getHeaderValueToSign(t,Bo.CONTENT_LENGTH),getHeaderValueToSign(t,Bo.CONTENT_MD5),getHeaderValueToSign(t,Bo.CONTENT_TYPE),getHeaderValueToSign(t,Bo.DATE),getHeaderValueToSign(t,Bo.IF_MODIFIED_SINCE),getHeaderValueToSign(t,Bo.IF_MATCH),getHeaderValueToSign(t,Bo.IF_NONE_MATCH),getHeaderValueToSign(t,Bo.IF_UNMODIFIED_SINCE),getHeaderValueToSign(t,Bo.RANGE)].join("\n")+"\n"+getCanonicalizedHeadersString(t)+getCanonicalizedResourceString(t);const o=(0,Gn.createHmac)("sha256",e.accountKey).update(n,"utf8").digest("base64");t.headers.set(Bo.AUTHORIZATION,`SharedKey ${e.accountName}:${o}`)}function getHeaderValueToSign(e,t){const n=e.headers.get(t);if(!n){return""}if(t===Bo.CONTENT_LENGTH&&n==="0"){return""}return n}function getCanonicalizedHeadersString(e){let t=[];for(const[n,o]of e.headers){if(n.toLowerCase().startsWith(Bo.PREFIX_FOR_STORAGE)){t.push({name:n,value:o})}}t.sort(((e,t)=>compareHeader(e.name.toLowerCase(),t.name.toLowerCase())));t=t.filter(((e,t,n)=>{if(t>0&&e.name.toLowerCase()===n[t-1].name.toLowerCase()){return false}return true}));let n="";t.forEach((e=>{n+=`${e.name.toLowerCase().trimRight()}:${e.value.trimLeft()}\n`}));return n}function getCanonicalizedResourceString(t){const n=getURLPath(t.url)||"/";let o="";o+=`/${e.accountName}${n}`;const i=getURLQueries(t.url);const a={};if(i){const e=[];for(const t in i){if(Object.prototype.hasOwnProperty.call(i,t)){const n=t.toLowerCase();a[n]=i[t];e.push(n)}}e.sort();for(const t of e){o+=`\n${t}:${decodeURIComponent(a[t])}`}}return o}return{name:Mo,async sendRequest(e,t){signRequest(e);return t(e)}}}const Ho="storageRequestFailureDetailsParserPolicy";function storageRequestFailureDetailsParserPolicy(){return{name:Ho,async sendRequest(e,t){try{const n=await t(e);return n}catch(e){if(typeof e==="object"&&e!==null&&e.response&&e.response.parsedBody){if(e.response.parsedBody.code==="InvalidHeaderValue"&&e.response.parsedBody.HeaderName==="x-ms-version"){e.message="The provided service version is not enabled on this storage account. Please see https://learn.microsoft.com/rest/api/storageservices/versioning-for-the-azure-storage-services for additional information.\n"}}throw e}}}}class UserDelegationKeyCredential{accountName;userDelegationKey;key;constructor(e,t){this.accountName=e;this.userDelegationKey=t;this.key=Buffer.from(t.value,"base64")}computeHMACSHA256(e){return(0,Gn.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}}const $o="12.31.0";const Go="2026-02-06";const qo=256*1024*1024;const zo=4e3*1024*1024;const Vo=5e4;const jo=8*1024*1024;const Yo=4*1024*1024;const Jo=5;const Wo=100*1e3;const Ko="https://storage.azure.com/.default";const Xo={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Zo={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const ei={AUTHORIZATION:"Authorization",AUTHORIZATION_SCHEME:"Bearer",CONTENT_ENCODING:"Content-Encoding",CONTENT_ID:"Content-ID",CONTENT_LANGUAGE:"Content-Language",CONTENT_LENGTH:"Content-Length",CONTENT_MD5:"Content-Md5",CONTENT_TRANSFER_ENCODING:"Content-Transfer-Encoding",CONTENT_TYPE:"Content-Type",COOKIE:"Cookie",DATE:"date",IF_MATCH:"if-match",IF_MODIFIED_SINCE:"if-modified-since",IF_NONE_MATCH:"if-none-match",IF_UNMODIFIED_SINCE:"if-unmodified-since",PREFIX_FOR_STORAGE:"x-ms-",RANGE:"Range",USER_AGENT:"User-Agent",X_MS_CLIENT_REQUEST_ID:"x-ms-client-request-id",X_MS_COPY_SOURCE:"x-ms-copy-source",X_MS_DATE:"x-ms-date",X_MS_ERROR_CODE:"x-ms-error-code",X_MS_VERSION:"x-ms-version",X_MS_CopySourceErrorCode:"x-ms-copy-source-error-code"};const ti="";const ri="*";const ni=1*1024*1024;const si=256;const oi=4*ni;const ii="\r\n";const ai="HTTP/1.1";const ci="AES256";const li=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const ui=["Access-Control-Allow-Origin","Cache-Control","Content-Length","Content-Type","Date","Request-Id","traceparent","Transfer-Encoding","User-Agent","x-ms-client-request-id","x-ms-date","x-ms-error-code","x-ms-request-id","x-ms-return-client-request-id","x-ms-version","Accept-Ranges","Content-Disposition","Content-Encoding","Content-Language","Content-MD5","Content-Range","ETag","Last-Modified","Server","Vary","x-ms-content-crc64","x-ms-copy-action","x-ms-copy-completion-time","x-ms-copy-id","x-ms-copy-progress","x-ms-copy-status","x-ms-has-immutability-policy","x-ms-has-legal-hold","x-ms-lease-state","x-ms-lease-status","x-ms-range","x-ms-request-server-encrypted","x-ms-server-encrypted","x-ms-snapshot","x-ms-source-range","If-Match","If-Modified-Since","If-None-Match","If-Unmodified-Since","x-ms-access-tier","x-ms-access-tier-change-time","x-ms-access-tier-inferred","x-ms-account-kind","x-ms-archive-status","x-ms-blob-append-offset","x-ms-blob-cache-control","x-ms-blob-committed-block-count","x-ms-blob-condition-appendpos","x-ms-blob-condition-maxsize","x-ms-blob-content-disposition","x-ms-blob-content-encoding","x-ms-blob-content-language","x-ms-blob-content-length","x-ms-blob-content-md5","x-ms-blob-content-type","x-ms-blob-public-access","x-ms-blob-sequence-number","x-ms-blob-type","x-ms-copy-destination-snapshot","x-ms-creation-time","x-ms-default-encryption-scope","x-ms-delete-snapshots","x-ms-delete-type-permanent","x-ms-deny-encryption-scope-override","x-ms-encryption-algorithm","x-ms-if-sequence-number-eq","x-ms-if-sequence-number-le","x-ms-if-sequence-number-lt","x-ms-incremental-copy","x-ms-lease-action","x-ms-lease-break-period","x-ms-lease-duration","x-ms-lease-id","x-ms-lease-time","x-ms-page-write","x-ms-proposed-lease-id","x-ms-range-get-content-md5","x-ms-rehydrate-priority","x-ms-sequence-number-action","x-ms-sku-name","x-ms-source-content-md5","x-ms-source-if-match","x-ms-source-if-modified-since","x-ms-source-if-none-match","x-ms-source-if-unmodified-since","x-ms-tag-count","x-ms-encryption-key-sha256","x-ms-copy-source-error-code","x-ms-copy-source-status-code","x-ms-if-tags","x-ms-source-if-tags"];const di=["comp","maxresults","rscc","rscd","rsce","rscl","rsct","se","si","sip","sp","spr","sr","srt","ss","st","sv","include","marker","prefix","copyid","restype","blockid","blocklisttype","delimiter","prevsnapshot","ske","skoid","sks","skt","sktid","skv","snapshot"];const pi="BlobUsesCustomerSpecifiedEncryption";const Ai="BlobDoesNotUseCustomerSpecifiedEncryption";const mi=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function isPipelineLike(e){if(!e||typeof e!=="object"){return false}const t=e;return Array.isArray(t.factories)&&typeof t.options==="object"&&typeof t.toServiceClientOptions==="function"}class Pipeline{factories;options;constructor(e,t={}){this.factories=e;this.options=t}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(e,t={}){if(!e){e=new AnonymousCredential}const n=new Pipeline([],t);n._credential=e;return n}function processDownlevelPipeline(e){const t=[isAnonymousCredential,isStorageSharedKeyCredential,isCoreHttpBearerTokenFactory,isStorageBrowserPolicyFactory,isStorageRetryPolicyFactory,isStorageTelemetryPolicyFactory,isCoreHttpPolicyFactory];if(e.factories.length){const n=e.factories.filter((e=>!t.some((t=>t(e)))));if(n.length){const e=n.some((e=>isInjectorPolicyFactory(e)));return{wrappedPolicies:createRequestPolicyFactoryPolicy(n),afterRetry:e}}}return undefined}function getCoreClientOptions(e){const{httpClient:t,...n}=e.options;let o=e._coreHttpClient;if(!o){o=t?convertHttpClient(t):cache_getCachedDefaultHttpClient();e._coreHttpClient=o}let i=e._corePipeline;if(!i){const t=`azsdk-js-azure-storage-blob/${$o}`;const o=n.userAgentOptions&&n.userAgentOptions.userAgentPrefix?`${n.userAgentOptions.userAgentPrefix} ${t}`:`${t}`;i=createClientPipeline({...n,loggingOptions:{additionalAllowedHeaderNames:ui,additionalAllowedQueryParameters:di,logger:yo.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:parseXML,serializerOptions:{xml:{xmlCharKey:"#"}}}});i.removePolicy({phase:"Retry"});i.removePolicy({name:rs});i.addPolicy(storageCorrectContentLengthPolicy());i.addPolicy(storageRetryPolicy(n.retryOptions),{phase:"Retry"});i.addPolicy(storageRequestFailureDetailsParserPolicy());i.addPolicy(storageBrowserPolicy());const a=processDownlevelPipeline(e);if(a){i.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:undefined)}const d=getCredentialFromPipeline(e);if(isTokenCredential(d)){i.addPolicy(bearerTokenAuthenticationPolicy({credential:d,scopes:n.audience??Ko,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(d instanceof StorageSharedKeyCredential){i.addPolicy(storageSharedKeyCredentialPolicy({accountName:d.accountName,accountKey:d.accountKey}),{phase:"Sign"})}e._corePipeline=i}return{...n,allowInsecureConnection:true,httpClient:o,pipeline:i}}function getCredentialFromPipeline(e){if(e._credential){return e._credential}let t=new AnonymousCredential;for(const n of e.factories){if(isTokenCredential(n.credential)){t=n.credential}else if(isStorageSharedKeyCredential(n)){return n}}return t}function isStorageSharedKeyCredential(e){if(e instanceof StorageSharedKeyCredential){return true}return e.constructor.name==="StorageSharedKeyCredential"}function isAnonymousCredential(e){if(e instanceof AnonymousCredential){return true}return e.constructor.name==="AnonymousCredential"}function isCoreHttpBearerTokenFactory(e){return isTokenCredential(e.credential)}function isStorageBrowserPolicyFactory(e){if(e instanceof StorageBrowserPolicyFactory){return true}return e.constructor.name==="StorageBrowserPolicyFactory"}function isStorageRetryPolicyFactory(e){if(e instanceof StorageRetryPolicyFactory){return true}return e.constructor.name==="StorageRetryPolicyFactory"}function isStorageTelemetryPolicyFactory(e){return e.constructor.name==="TelemetryPolicyFactory"}function isInjectorPolicyFactory(e){return e.constructor.name==="InjectorPolicyFactory"}function isCoreHttpPolicyFactory(e){const t=["GenerateClientRequestIdPolicy","TracingPolicy","LogPolicy","ProxyPolicy","DisableResponseDecompressionPolicy","KeepAlivePolicy","DeserializationPolicy"];const n={sendRequest:async e=>({request:e,headers:e.headers.clone(),status:500})};const o={log(e,t){},shouldLog(e){return false}};const i=e.create(n,o);const a=i.constructor.name;return t.some((e=>a.startsWith(e)))}var gi;(function(e){e["AES256"]="AES256"})(gi||(gi={}));var hi;(function(e){e["Backup"]="backup"})(hi||(hi={}));var fi;(function(e){e["NeverExpire"]="NeverExpire";e["RelativeToCreation"]="RelativeToCreation";e["RelativeToNow"]="RelativeToNow";e["Absolute"]="Absolute"})(fi||(fi={}));var yi;(function(e){e["AccountAlreadyExists"]="AccountAlreadyExists";e["AccountBeingCreated"]="AccountBeingCreated";e["AccountIsDisabled"]="AccountIsDisabled";e["AuthenticationFailed"]="AuthenticationFailed";e["AuthorizationFailure"]="AuthorizationFailure";e["ConditionHeadersNotSupported"]="ConditionHeadersNotSupported";e["ConditionNotMet"]="ConditionNotMet";e["EmptyMetadataKey"]="EmptyMetadataKey";e["InsufficientAccountPermissions"]="InsufficientAccountPermissions";e["InternalError"]="InternalError";e["InvalidAuthenticationInfo"]="InvalidAuthenticationInfo";e["InvalidHeaderValue"]="InvalidHeaderValue";e["InvalidHttpVerb"]="InvalidHttpVerb";e["InvalidInput"]="InvalidInput";e["InvalidMd5"]="InvalidMd5";e["InvalidMetadata"]="InvalidMetadata";e["InvalidQueryParameterValue"]="InvalidQueryParameterValue";e["InvalidRange"]="InvalidRange";e["InvalidResourceName"]="InvalidResourceName";e["InvalidUri"]="InvalidUri";e["InvalidXmlDocument"]="InvalidXmlDocument";e["InvalidXmlNodeValue"]="InvalidXmlNodeValue";e["Md5Mismatch"]="Md5Mismatch";e["MetadataTooLarge"]="MetadataTooLarge";e["MissingContentLengthHeader"]="MissingContentLengthHeader";e["MissingRequiredQueryParameter"]="MissingRequiredQueryParameter";e["MissingRequiredHeader"]="MissingRequiredHeader";e["MissingRequiredXmlNode"]="MissingRequiredXmlNode";e["MultipleConditionHeadersNotSupported"]="MultipleConditionHeadersNotSupported";e["OperationTimedOut"]="OperationTimedOut";e["OutOfRangeInput"]="OutOfRangeInput";e["OutOfRangeQueryParameterValue"]="OutOfRangeQueryParameterValue";e["RequestBodyTooLarge"]="RequestBodyTooLarge";e["ResourceTypeMismatch"]="ResourceTypeMismatch";e["RequestUrlFailedToParse"]="RequestUrlFailedToParse";e["ResourceAlreadyExists"]="ResourceAlreadyExists";e["ResourceNotFound"]="ResourceNotFound";e["ServerBusy"]="ServerBusy";e["UnsupportedHeader"]="UnsupportedHeader";e["UnsupportedXmlNode"]="UnsupportedXmlNode";e["UnsupportedQueryParameter"]="UnsupportedQueryParameter";e["UnsupportedHttpVerb"]="UnsupportedHttpVerb";e["AppendPositionConditionNotMet"]="AppendPositionConditionNotMet";e["BlobAlreadyExists"]="BlobAlreadyExists";e["BlobImmutableDueToPolicy"]="BlobImmutableDueToPolicy";e["BlobNotFound"]="BlobNotFound";e["BlobOverwritten"]="BlobOverwritten";e["BlobTierInadequateForContentLength"]="BlobTierInadequateForContentLength";e["BlobUsesCustomerSpecifiedEncryption"]="BlobUsesCustomerSpecifiedEncryption";e["BlockCountExceedsLimit"]="BlockCountExceedsLimit";e["BlockListTooLong"]="BlockListTooLong";e["CannotChangeToLowerTier"]="CannotChangeToLowerTier";e["CannotVerifyCopySource"]="CannotVerifyCopySource";e["ContainerAlreadyExists"]="ContainerAlreadyExists";e["ContainerBeingDeleted"]="ContainerBeingDeleted";e["ContainerDisabled"]="ContainerDisabled";e["ContainerNotFound"]="ContainerNotFound";e["ContentLengthLargerThanTierLimit"]="ContentLengthLargerThanTierLimit";e["CopyAcrossAccountsNotSupported"]="CopyAcrossAccountsNotSupported";e["CopyIdMismatch"]="CopyIdMismatch";e["FeatureVersionMismatch"]="FeatureVersionMismatch";e["IncrementalCopyBlobMismatch"]="IncrementalCopyBlobMismatch";e["IncrementalCopyOfEarlierVersionSnapshotNotAllowed"]="IncrementalCopyOfEarlierVersionSnapshotNotAllowed";e["IncrementalCopySourceMustBeSnapshot"]="IncrementalCopySourceMustBeSnapshot";e["InfiniteLeaseDurationRequired"]="InfiniteLeaseDurationRequired";e["InvalidBlobOrBlock"]="InvalidBlobOrBlock";e["InvalidBlobTier"]="InvalidBlobTier";e["InvalidBlobType"]="InvalidBlobType";e["InvalidBlockId"]="InvalidBlockId";e["InvalidBlockList"]="InvalidBlockList";e["InvalidOperation"]="InvalidOperation";e["InvalidPageRange"]="InvalidPageRange";e["InvalidSourceBlobType"]="InvalidSourceBlobType";e["InvalidSourceBlobUrl"]="InvalidSourceBlobUrl";e["InvalidVersionForPageBlobOperation"]="InvalidVersionForPageBlobOperation";e["LeaseAlreadyPresent"]="LeaseAlreadyPresent";e["LeaseAlreadyBroken"]="LeaseAlreadyBroken";e["LeaseIdMismatchWithBlobOperation"]="LeaseIdMismatchWithBlobOperation";e["LeaseIdMismatchWithContainerOperation"]="LeaseIdMismatchWithContainerOperation";e["LeaseIdMismatchWithLeaseOperation"]="LeaseIdMismatchWithLeaseOperation";e["LeaseIdMissing"]="LeaseIdMissing";e["LeaseIsBreakingAndCannotBeAcquired"]="LeaseIsBreakingAndCannotBeAcquired";e["LeaseIsBreakingAndCannotBeChanged"]="LeaseIsBreakingAndCannotBeChanged";e["LeaseIsBrokenAndCannotBeRenewed"]="LeaseIsBrokenAndCannotBeRenewed";e["LeaseLost"]="LeaseLost";e["LeaseNotPresentWithBlobOperation"]="LeaseNotPresentWithBlobOperation";e["LeaseNotPresentWithContainerOperation"]="LeaseNotPresentWithContainerOperation";e["LeaseNotPresentWithLeaseOperation"]="LeaseNotPresentWithLeaseOperation";e["MaxBlobSizeConditionNotMet"]="MaxBlobSizeConditionNotMet";e["NoAuthenticationInformation"]="NoAuthenticationInformation";e["NoPendingCopyOperation"]="NoPendingCopyOperation";e["OperationNotAllowedOnIncrementalCopyBlob"]="OperationNotAllowedOnIncrementalCopyBlob";e["PendingCopyOperation"]="PendingCopyOperation";e["PreviousSnapshotCannotBeNewer"]="PreviousSnapshotCannotBeNewer";e["PreviousSnapshotNotFound"]="PreviousSnapshotNotFound";e["PreviousSnapshotOperationNotSupported"]="PreviousSnapshotOperationNotSupported";e["SequenceNumberConditionNotMet"]="SequenceNumberConditionNotMet";e["SequenceNumberIncrementTooLarge"]="SequenceNumberIncrementTooLarge";e["SnapshotCountExceeded"]="SnapshotCountExceeded";e["SnapshotOperationRateExceeded"]="SnapshotOperationRateExceeded";e["SnapshotsPresent"]="SnapshotsPresent";e["SourceConditionNotMet"]="SourceConditionNotMet";e["SystemInUse"]="SystemInUse";e["TargetConditionNotMet"]="TargetConditionNotMet";e["UnauthorizedBlobOverwrite"]="UnauthorizedBlobOverwrite";e["BlobBeingRehydrated"]="BlobBeingRehydrated";e["BlobArchived"]="BlobArchived";e["BlobNotArchived"]="BlobNotArchived";e["AuthorizationSourceIPMismatch"]="AuthorizationSourceIPMismatch";e["AuthorizationProtocolMismatch"]="AuthorizationProtocolMismatch";e["AuthorizationPermissionMismatch"]="AuthorizationPermissionMismatch";e["AuthorizationServiceMismatch"]="AuthorizationServiceMismatch";e["AuthorizationResourceTypeMismatch"]="AuthorizationResourceTypeMismatch";e["BlobAccessTierNotSupportedForAccountType"]="BlobAccessTierNotSupportedForAccountType"})(yi||(yi={}));const Ei={serializedName:"BlobServiceProperties",xmlName:"StorageServiceProperties",type:{name:"Composite",className:"BlobServiceProperties",modelProperties:{blobAnalyticsLogging:{serializedName:"Logging",xmlName:"Logging",type:{name:"Composite",className:"Logging"}},hourMetrics:{serializedName:"HourMetrics",xmlName:"HourMetrics",type:{name:"Composite",className:"Metrics"}},minuteMetrics:{serializedName:"MinuteMetrics",xmlName:"MinuteMetrics",type:{name:"Composite",className:"Metrics"}},cors:{serializedName:"Cors",xmlName:"Cors",xmlIsWrapped:true,xmlElementName:"CorsRule",type:{name:"Sequence",element:{type:{name:"Composite",className:"CorsRule"}}}},defaultServiceVersion:{serializedName:"DefaultServiceVersion",xmlName:"DefaultServiceVersion",type:{name:"String"}},deleteRetentionPolicy:{serializedName:"DeleteRetentionPolicy",xmlName:"DeleteRetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}},staticWebsite:{serializedName:"StaticWebsite",xmlName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite"}}}}};const Ci={serializedName:"Logging",type:{name:"Composite",className:"Logging",modelProperties:{version:{serializedName:"Version",required:true,xmlName:"Version",type:{name:"String"}},deleteProperty:{serializedName:"Delete",required:true,xmlName:"Delete",type:{name:"Boolean"}},read:{serializedName:"Read",required:true,xmlName:"Read",type:{name:"Boolean"}},write:{serializedName:"Write",required:true,xmlName:"Write",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const Ii={serializedName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},days:{constraints:{InclusiveMinimum:1},serializedName:"Days",xmlName:"Days",type:{name:"Number"}}}}};const bi={serializedName:"Metrics",type:{name:"Composite",className:"Metrics",modelProperties:{version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},includeAPIs:{serializedName:"IncludeAPIs",xmlName:"IncludeAPIs",type:{name:"Boolean"}},retentionPolicy:{serializedName:"RetentionPolicy",xmlName:"RetentionPolicy",type:{name:"Composite",className:"RetentionPolicy"}}}}};const Si={serializedName:"CorsRule",type:{name:"Composite",className:"CorsRule",modelProperties:{allowedOrigins:{serializedName:"AllowedOrigins",required:true,xmlName:"AllowedOrigins",type:{name:"String"}},allowedMethods:{serializedName:"AllowedMethods",required:true,xmlName:"AllowedMethods",type:{name:"String"}},allowedHeaders:{serializedName:"AllowedHeaders",required:true,xmlName:"AllowedHeaders",type:{name:"String"}},exposedHeaders:{serializedName:"ExposedHeaders",required:true,xmlName:"ExposedHeaders",type:{name:"String"}},maxAgeInSeconds:{constraints:{InclusiveMinimum:0},serializedName:"MaxAgeInSeconds",required:true,xmlName:"MaxAgeInSeconds",type:{name:"Number"}}}}};const Bi={serializedName:"StaticWebsite",type:{name:"Composite",className:"StaticWebsite",modelProperties:{enabled:{serializedName:"Enabled",required:true,xmlName:"Enabled",type:{name:"Boolean"}},indexDocument:{serializedName:"IndexDocument",xmlName:"IndexDocument",type:{name:"String"}},errorDocument404Path:{serializedName:"ErrorDocument404Path",xmlName:"ErrorDocument404Path",type:{name:"String"}},defaultIndexDocumentPath:{serializedName:"DefaultIndexDocumentPath",xmlName:"DefaultIndexDocumentPath",type:{name:"String"}}}}};const wi={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},copySourceStatusCode:{serializedName:"CopySourceStatusCode",xmlName:"CopySourceStatusCode",type:{name:"Number"}},copySourceErrorCode:{serializedName:"CopySourceErrorCode",xmlName:"CopySourceErrorCode",type:{name:"String"}},copySourceErrorMessage:{serializedName:"CopySourceErrorMessage",xmlName:"CopySourceErrorMessage",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}},authenticationErrorDetail:{serializedName:"AuthenticationErrorDetail",xmlName:"AuthenticationErrorDetail",type:{name:"String"}}}}};const Ri={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const Ni={serializedName:"GeoReplication",type:{name:"Composite",className:"GeoReplication",modelProperties:{status:{serializedName:"Status",required:true,xmlName:"Status",type:{name:"Enum",allowedValues:["live","bootstrap","unavailable"]}},lastSyncOn:{serializedName:"LastSyncTime",required:true,xmlName:"LastSyncTime",type:{name:"DateTimeRfc1123"}}}}};const xi={serializedName:"ListContainersSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListContainersSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},containerItems:{serializedName:"ContainerItems",required:true,xmlName:"Containers",xmlIsWrapped:true,xmlElementName:"Container",type:{name:"Sequence",element:{type:{name:"Composite",className:"ContainerItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Qi={serializedName:"ContainerItem",xmlName:"Container",type:{name:"Composite",className:"ContainerItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},deleted:{serializedName:"Deleted",xmlName:"Deleted",type:{name:"Boolean"}},version:{serializedName:"Version",xmlName:"Version",type:{name:"String"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"ContainerProperties"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}}}}};const Ti={serializedName:"ContainerProperties",type:{name:"Composite",className:"ContainerProperties",modelProperties:{lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},publicAccess:{serializedName:"PublicAccess",xmlName:"PublicAccess",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"HasImmutabilityPolicy",xmlName:"HasImmutabilityPolicy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"HasLegalHold",xmlName:"HasLegalHold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"DefaultEncryptionScope",xmlName:"DefaultEncryptionScope",type:{name:"String"}},preventEncryptionScopeOverride:{serializedName:"DenyEncryptionScopeOverride",xmlName:"DenyEncryptionScopeOverride",type:{name:"Boolean"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},isImmutableStorageWithVersioningEnabled:{serializedName:"ImmutableStorageWithVersioningEnabled",xmlName:"ImmutableStorageWithVersioningEnabled",type:{name:"Boolean"}}}}};const vi={serializedName:"KeyInfo",type:{name:"Composite",className:"KeyInfo",modelProperties:{startsOn:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",required:true,xmlName:"Expiry",type:{name:"String"}}}}};const Pi={serializedName:"UserDelegationKey",type:{name:"Composite",className:"UserDelegationKey",modelProperties:{signedObjectId:{serializedName:"SignedOid",required:true,xmlName:"SignedOid",type:{name:"String"}},signedTenantId:{serializedName:"SignedTid",required:true,xmlName:"SignedTid",type:{name:"String"}},signedStartsOn:{serializedName:"SignedStart",required:true,xmlName:"SignedStart",type:{name:"String"}},signedExpiresOn:{serializedName:"SignedExpiry",required:true,xmlName:"SignedExpiry",type:{name:"String"}},signedService:{serializedName:"SignedService",required:true,xmlName:"SignedService",type:{name:"String"}},signedVersion:{serializedName:"SignedVersion",required:true,xmlName:"SignedVersion",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Di={serializedName:"FilterBlobSegment",xmlName:"EnumerationResults",type:{name:"Composite",className:"FilterBlobSegment",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},where:{serializedName:"Where",required:true,xmlName:"Where",type:{name:"String"}},blobs:{serializedName:"Blobs",required:true,xmlName:"Blobs",xmlIsWrapped:true,xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"FilterBlobItem"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const ki={serializedName:"FilterBlobItem",xmlName:"Blob",type:{name:"Composite",className:"FilterBlobItem",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",type:{name:"String"}},tags:{serializedName:"Tags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}}}}};const _i={serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags",modelProperties:{blobTagSet:{serializedName:"BlobTagSet",required:true,xmlName:"TagSet",xmlIsWrapped:true,xmlElementName:"Tag",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobTag"}}}}}}};const Li={serializedName:"BlobTag",xmlName:"Tag",type:{name:"Composite",className:"BlobTag",modelProperties:{key:{serializedName:"Key",required:true,xmlName:"Key",type:{name:"String"}},value:{serializedName:"Value",required:true,xmlName:"Value",type:{name:"String"}}}}};const Oi={serializedName:"SignedIdentifier",xmlName:"SignedIdentifier",type:{name:"Composite",className:"SignedIdentifier",modelProperties:{id:{serializedName:"Id",required:true,xmlName:"Id",type:{name:"String"}},accessPolicy:{serializedName:"AccessPolicy",xmlName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy"}}}}};const Fi={serializedName:"AccessPolicy",type:{name:"Composite",className:"AccessPolicy",modelProperties:{startsOn:{serializedName:"Start",xmlName:"Start",type:{name:"String"}},expiresOn:{serializedName:"Expiry",xmlName:"Expiry",type:{name:"String"}},permissions:{serializedName:"Permission",xmlName:"Permission",type:{name:"String"}}}}};const Ui={serializedName:"ListBlobsFlatSegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsFlatSegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Mi={serializedName:"BlobFlatListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobFlatListSegment",modelProperties:{blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Hi={serializedName:"BlobItemInternal",xmlName:"Blob",type:{name:"Composite",className:"BlobItemInternal",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}},deleted:{serializedName:"Deleted",required:true,xmlName:"Deleted",type:{name:"Boolean"}},snapshot:{serializedName:"Snapshot",required:true,xmlName:"Snapshot",type:{name:"String"}},versionId:{serializedName:"VersionId",xmlName:"VersionId",type:{name:"String"}},isCurrentVersion:{serializedName:"IsCurrentVersion",xmlName:"IsCurrentVersion",type:{name:"Boolean"}},properties:{serializedName:"Properties",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal"}},metadata:{serializedName:"Metadata",xmlName:"Metadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobTags:{serializedName:"BlobTags",xmlName:"Tags",type:{name:"Composite",className:"BlobTags"}},objectReplicationMetadata:{serializedName:"ObjectReplicationMetadata",xmlName:"OrMetadata",type:{name:"Dictionary",value:{type:{name:"String"}}}},hasVersionsOnly:{serializedName:"HasVersionsOnly",xmlName:"HasVersionsOnly",type:{name:"Boolean"}}}}};const $i={serializedName:"BlobName",type:{name:"Composite",className:"BlobName",modelProperties:{encoded:{serializedName:"Encoded",xmlName:"Encoded",xmlIsAttribute:true,type:{name:"Boolean"}},content:{serializedName:"content",xmlName:"content",xmlIsMsText:true,type:{name:"String"}}}}};const Gi={serializedName:"BlobPropertiesInternal",xmlName:"Properties",type:{name:"Composite",className:"BlobPropertiesInternal",modelProperties:{createdOn:{serializedName:"Creation-Time",xmlName:"Creation-Time",type:{name:"DateTimeRfc1123"}},lastModified:{serializedName:"Last-Modified",required:true,xmlName:"Last-Modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"Etag",required:true,xmlName:"Etag",type:{name:"String"}},contentLength:{serializedName:"Content-Length",xmlName:"Content-Length",type:{name:"Number"}},contentType:{serializedName:"Content-Type",xmlName:"Content-Type",type:{name:"String"}},contentEncoding:{serializedName:"Content-Encoding",xmlName:"Content-Encoding",type:{name:"String"}},contentLanguage:{serializedName:"Content-Language",xmlName:"Content-Language",type:{name:"String"}},contentMD5:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}},contentDisposition:{serializedName:"Content-Disposition",xmlName:"Content-Disposition",type:{name:"String"}},cacheControl:{serializedName:"Cache-Control",xmlName:"Cache-Control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"BlobType",xmlName:"BlobType",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},leaseStatus:{serializedName:"LeaseStatus",xmlName:"LeaseStatus",type:{name:"Enum",allowedValues:["locked","unlocked"]}},leaseState:{serializedName:"LeaseState",xmlName:"LeaseState",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseDuration:{serializedName:"LeaseDuration",xmlName:"LeaseDuration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},copyId:{serializedName:"CopyId",xmlName:"CopyId",type:{name:"String"}},copyStatus:{serializedName:"CopyStatus",xmlName:"CopyStatus",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},copySource:{serializedName:"CopySource",xmlName:"CopySource",type:{name:"String"}},copyProgress:{serializedName:"CopyProgress",xmlName:"CopyProgress",type:{name:"String"}},copyCompletedOn:{serializedName:"CopyCompletionTime",xmlName:"CopyCompletionTime",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"CopyStatusDescription",xmlName:"CopyStatusDescription",type:{name:"String"}},serverEncrypted:{serializedName:"ServerEncrypted",xmlName:"ServerEncrypted",type:{name:"Boolean"}},incrementalCopy:{serializedName:"IncrementalCopy",xmlName:"IncrementalCopy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"DestinationSnapshot",xmlName:"DestinationSnapshot",type:{name:"String"}},deletedOn:{serializedName:"DeletedTime",xmlName:"DeletedTime",type:{name:"DateTimeRfc1123"}},remainingRetentionDays:{serializedName:"RemainingRetentionDays",xmlName:"RemainingRetentionDays",type:{name:"Number"}},accessTier:{serializedName:"AccessTier",xmlName:"AccessTier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}},accessTierInferred:{serializedName:"AccessTierInferred",xmlName:"AccessTierInferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"ArchiveStatus",xmlName:"ArchiveStatus",type:{name:"Enum",allowedValues:["rehydrate-pending-to-hot","rehydrate-pending-to-cool","rehydrate-pending-to-cold"]}},customerProvidedKeySha256:{serializedName:"CustomerProvidedKeySha256",xmlName:"CustomerProvidedKeySha256",type:{name:"String"}},encryptionScope:{serializedName:"EncryptionScope",xmlName:"EncryptionScope",type:{name:"String"}},accessTierChangedOn:{serializedName:"AccessTierChangeTime",xmlName:"AccessTierChangeTime",type:{name:"DateTimeRfc1123"}},tagCount:{serializedName:"TagCount",xmlName:"TagCount",type:{name:"Number"}},expiresOn:{serializedName:"Expiry-Time",xmlName:"Expiry-Time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"Sealed",xmlName:"Sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"RehydratePriority",xmlName:"RehydratePriority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessedOn:{serializedName:"LastAccessTime",xmlName:"LastAccessTime",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"ImmutabilityPolicyUntilDate",xmlName:"ImmutabilityPolicyUntilDate",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"ImmutabilityPolicyMode",xmlName:"ImmutabilityPolicyMode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"LegalHold",xmlName:"LegalHold",type:{name:"Boolean"}}}}};const qi={serializedName:"ListBlobsHierarchySegmentResponse",xmlName:"EnumerationResults",type:{name:"Composite",className:"ListBlobsHierarchySegmentResponse",modelProperties:{serviceEndpoint:{serializedName:"ServiceEndpoint",required:true,xmlName:"ServiceEndpoint",xmlIsAttribute:true,type:{name:"String"}},containerName:{serializedName:"ContainerName",required:true,xmlName:"ContainerName",xmlIsAttribute:true,type:{name:"String"}},prefix:{serializedName:"Prefix",xmlName:"Prefix",type:{name:"String"}},marker:{serializedName:"Marker",xmlName:"Marker",type:{name:"String"}},maxPageSize:{serializedName:"MaxResults",xmlName:"MaxResults",type:{name:"Number"}},delimiter:{serializedName:"Delimiter",xmlName:"Delimiter",type:{name:"String"}},segment:{serializedName:"Segment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment"}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const zi={serializedName:"BlobHierarchyListSegment",xmlName:"Blobs",type:{name:"Composite",className:"BlobHierarchyListSegment",modelProperties:{blobPrefixes:{serializedName:"BlobPrefixes",xmlName:"BlobPrefixes",xmlElementName:"BlobPrefix",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobPrefix"}}}},blobItems:{serializedName:"BlobItems",required:true,xmlName:"BlobItems",xmlElementName:"Blob",type:{name:"Sequence",element:{type:{name:"Composite",className:"BlobItemInternal"}}}}}}};const Vi={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const ji={serializedName:"BlockLookupList",xmlName:"BlockList",type:{name:"Composite",className:"BlockLookupList",modelProperties:{committed:{serializedName:"Committed",xmlName:"Committed",xmlElementName:"Committed",type:{name:"Sequence",element:{type:{name:"String"}}}},uncommitted:{serializedName:"Uncommitted",xmlName:"Uncommitted",xmlElementName:"Uncommitted",type:{name:"Sequence",element:{type:{name:"String"}}}},latest:{serializedName:"Latest",xmlName:"Latest",xmlElementName:"Latest",type:{name:"Sequence",element:{type:{name:"String"}}}}}}};const Yi={serializedName:"BlockList",type:{name:"Composite",className:"BlockList",modelProperties:{committedBlocks:{serializedName:"CommittedBlocks",xmlName:"CommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}},uncommittedBlocks:{serializedName:"UncommittedBlocks",xmlName:"UncommittedBlocks",xmlIsWrapped:true,xmlElementName:"Block",type:{name:"Sequence",element:{type:{name:"Composite",className:"Block"}}}}}}};const Ji={serializedName:"Block",type:{name:"Composite",className:"Block",modelProperties:{name:{serializedName:"Name",required:true,xmlName:"Name",type:{name:"String"}},size:{serializedName:"Size",required:true,xmlName:"Size",type:{name:"Number"}}}}};const Wi={serializedName:"PageList",type:{name:"Composite",className:"PageList",modelProperties:{pageRange:{serializedName:"PageRange",xmlName:"PageRange",xmlElementName:"PageRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"PageRange"}}}},clearRange:{serializedName:"ClearRange",xmlName:"ClearRange",xmlElementName:"ClearRange",type:{name:"Sequence",element:{type:{name:"Composite",className:"ClearRange"}}}},continuationToken:{serializedName:"NextMarker",xmlName:"NextMarker",type:{name:"String"}}}}};const Ki={serializedName:"PageRange",xmlName:"PageRange",type:{name:"Composite",className:"PageRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Xi={serializedName:"ClearRange",xmlName:"ClearRange",type:{name:"Composite",className:"ClearRange",modelProperties:{start:{serializedName:"Start",required:true,xmlName:"Start",type:{name:"Number"}},end:{serializedName:"End",required:true,xmlName:"End",type:{name:"Number"}}}}};const Zi={serializedName:"QueryRequest",xmlName:"QueryRequest",type:{name:"Composite",className:"QueryRequest",modelProperties:{queryType:{serializedName:"QueryType",required:true,xmlName:"QueryType",type:{name:"String"}},expression:{serializedName:"Expression",required:true,xmlName:"Expression",type:{name:"String"}},inputSerialization:{serializedName:"InputSerialization",xmlName:"InputSerialization",type:{name:"Composite",className:"QuerySerialization"}},outputSerialization:{serializedName:"OutputSerialization",xmlName:"OutputSerialization",type:{name:"Composite",className:"QuerySerialization"}}}}};const ea={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ta={serializedName:"QueryFormat",type:{name:"Composite",className:"QueryFormat",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"Enum",allowedValues:["delimited","json","arrow","parquet"]}},delimitedTextConfiguration:{serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration"}},jsonTextConfiguration:{serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration"}},arrowConfiguration:{serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration"}},parquetTextConfiguration:{serializedName:"ParquetTextConfiguration",xmlName:"ParquetTextConfiguration",type:{name:"Dictionary",value:{type:{name:"any"}}}}}}};const ra={serializedName:"DelimitedTextConfiguration",xmlName:"DelimitedTextConfiguration",type:{name:"Composite",className:"DelimitedTextConfiguration",modelProperties:{columnSeparator:{serializedName:"ColumnSeparator",xmlName:"ColumnSeparator",type:{name:"String"}},fieldQuote:{serializedName:"FieldQuote",xmlName:"FieldQuote",type:{name:"String"}},recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}},escapeChar:{serializedName:"EscapeChar",xmlName:"EscapeChar",type:{name:"String"}},headersPresent:{serializedName:"HeadersPresent",xmlName:"HasHeaders",type:{name:"Boolean"}}}}};const na={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const sa={serializedName:"ArrowConfiguration",xmlName:"ArrowConfiguration",type:{name:"Composite",className:"ArrowConfiguration",modelProperties:{schema:{serializedName:"Schema",required:true,xmlName:"Schema",xmlIsWrapped:true,xmlElementName:"Field",type:{name:"Sequence",element:{type:{name:"Composite",className:"ArrowField"}}}}}}};const oa={serializedName:"ArrowField",xmlName:"Field",type:{name:"Composite",className:"ArrowField",modelProperties:{type:{serializedName:"Type",required:true,xmlName:"Type",type:{name:"String"}},name:{serializedName:"Name",xmlName:"Name",type:{name:"String"}},precision:{serializedName:"Precision",xmlName:"Precision",type:{name:"Number"}},scale:{serializedName:"Scale",xmlName:"Scale",type:{name:"Number"}}}}};const ia={serializedName:"Service_setPropertiesHeaders",type:{name:"Composite",className:"ServiceSetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const aa={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ca={serializedName:"Service_getPropertiesHeaders",type:{name:"Composite",className:"ServiceGetPropertiesHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const la={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ua={serializedName:"Service_getStatisticsHeaders",type:{name:"Composite",className:"ServiceGetStatisticsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const da={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pa={serializedName:"Service_listContainersSegmentHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Aa={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ma={serializedName:"Service_getUserDelegationKeyHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ga={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ha={serializedName:"Service_getAccountInfoHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fa={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ya={serializedName:"Service_submitBatchHeaders",type:{name:"Composite",className:"ServiceSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ea={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ca={serializedName:"Service_filterBlobsHeaders",type:{name:"Composite",className:"ServiceFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ia={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ba={serializedName:"Container_createHeaders",type:{name:"Composite",className:"ContainerCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sa={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ba={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},hasImmutabilityPolicy:{serializedName:"x-ms-has-immutability-policy",xmlName:"x-ms-has-immutability-policy",type:{name:"Boolean"}},hasLegalHold:{serializedName:"x-ms-has-legal-hold",xmlName:"x-ms-has-legal-hold",type:{name:"Boolean"}},defaultEncryptionScope:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}},denyEncryptionScopeOverride:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}},isImmutableStorageWithVersioningEnabled:{serializedName:"x-ms-immutable-storage-with-versioning-enabled",xmlName:"x-ms-immutable-storage-with-versioning-enabled",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wa={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ra={serializedName:"Container_deleteHeaders",type:{name:"Composite",className:"ContainerDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Na={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xa={serializedName:"Container_setMetadataHeaders",type:{name:"Composite",className:"ContainerSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qa={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ta={serializedName:"Container_getAccessPolicyHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyHeaders",modelProperties:{blobPublicAccess:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const va={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pa={serializedName:"Container_setAccessPolicyHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Da={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ka={serializedName:"Container_restoreHeaders",type:{name:"Composite",className:"ContainerRestoreHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _a={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const La={serializedName:"Container_renameHeaders",type:{name:"Composite",className:"ContainerRenameHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oa={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fa={serializedName:"Container_submitBatchHeaders",type:{name:"Composite",className:"ContainerSubmitBatchHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}}}}};const Ua={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ma={serializedName:"Container_filterBlobsHeaders",type:{name:"Composite",className:"ContainerFilterBlobsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ha={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $a={serializedName:"Container_acquireLeaseHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ga={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qa={serializedName:"Container_releaseLeaseHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const za={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Va={serializedName:"Container_renewLeaseHeaders",type:{name:"Composite",className:"ContainerRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const ja={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ya={serializedName:"Container_breakLeaseHeaders",type:{name:"Composite",className:"ContainerBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ja={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wa={serializedName:"Container_changeLeaseHeaders",type:{name:"Composite",className:"ContainerChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ka={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xa={serializedName:"Container_listBlobFlatSegmentHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Za={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ec={serializedName:"Container_listBlobHierarchySegmentHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentHeaders",modelProperties:{contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tc={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rc={serializedName:"Container_getAccountInfoHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const nc={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sc={serializedName:"Blob_downloadHeaders",type:{name:"Composite",className:"BlobDownloadHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const oc={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ic={serializedName:"Blob_getPropertiesHeaders",type:{name:"Composite",className:"BlobGetPropertiesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},createdOn:{serializedName:"x-ms-creation-time",xmlName:"x-ms-creation-time",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",headerCollectionPrefix:"x-ms-or-",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletedOn:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},isIncrementalCopy:{serializedName:"x-ms-incremental-copy",xmlName:"x-ms-incremental-copy",type:{name:"Boolean"}},destinationSnapshot:{serializedName:"x-ms-copy-destination-snapshot",xmlName:"x-ms-copy-destination-snapshot",type:{name:"String"}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},accessTier:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"String"}},accessTierInferred:{serializedName:"x-ms-access-tier-inferred",xmlName:"x-ms-access-tier-inferred",type:{name:"Boolean"}},archiveStatus:{serializedName:"x-ms-archive-status",xmlName:"x-ms-archive-status",type:{name:"String"}},accessTierChangedOn:{serializedName:"x-ms-access-tier-change-time",xmlName:"x-ms-access-tier-change-time",type:{name:"DateTimeRfc1123"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},isCurrentVersion:{serializedName:"x-ms-is-current-version",xmlName:"x-ms-is-current-version",type:{name:"Boolean"}},tagCount:{serializedName:"x-ms-tag-count",xmlName:"x-ms-tag-count",type:{name:"Number"}},expiresOn:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}},rehydratePriority:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}},lastAccessed:{serializedName:"x-ms-last-access-time",xmlName:"x-ms-last-access-time",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiresOn:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ac={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cc={serializedName:"Blob_deleteHeaders",type:{name:"Composite",className:"BlobDeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const lc={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const uc={serializedName:"Blob_undeleteHeaders",type:{name:"Composite",className:"BlobUndeleteHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dc={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pc={serializedName:"Blob_setExpiryHeaders",type:{name:"Composite",className:"BlobSetExpiryHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ac={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mc={serializedName:"Blob_setHttpHeadersHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gc={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hc={serializedName:"Blob_setImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyExpiry:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}},immutabilityPolicyMode:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}}}};const fc={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yc={serializedName:"Blob_deleteImmutabilityPolicyHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Ec={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cc={serializedName:"Blob_setLegalHoldHeaders",type:{name:"Composite",className:"BlobSetLegalHoldHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},legalHold:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}}}};const Ic={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const bc={serializedName:"Blob_setMetadataHeaders",type:{name:"Composite",className:"BlobSetMetadataHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Sc={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bc={serializedName:"Blob_acquireLeaseHeaders",type:{name:"Composite",className:"BlobAcquireLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const wc={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rc={serializedName:"Blob_releaseLeaseHeaders",type:{name:"Composite",className:"BlobReleaseLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Nc={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xc={serializedName:"Blob_renewLeaseHeaders",type:{name:"Composite",className:"BlobRenewLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Qc={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tc={serializedName:"Blob_changeLeaseHeaders",type:{name:"Composite",className:"BlobChangeLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},leaseId:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const vc={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pc={serializedName:"Blob_breakLeaseHeaders",type:{name:"Composite",className:"BlobBreakLeaseHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},leaseTime:{serializedName:"x-ms-lease-time",xmlName:"x-ms-lease-time",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}}}}};const Dc={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kc={serializedName:"Blob_createSnapshotHeaders",type:{name:"Composite",className:"BlobCreateSnapshotHeaders",modelProperties:{snapshot:{serializedName:"x-ms-snapshot",xmlName:"x-ms-snapshot",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _c={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lc={serializedName:"Blob_startCopyFromURLHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Oc={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Fc={serializedName:"Blob_copyFromURLHeaders",type:{name:"Composite",className:"BlobCopyFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{defaultValue:"success",isConstant:true,serializedName:"x-ms-copy-status",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Uc={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Mc={serializedName:"Blob_abortCopyFromURLHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Hc={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $c={serializedName:"Blob_setTierHeaders",type:{name:"Composite",className:"BlobSetTierHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Gc={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qc={serializedName:"Blob_getAccountInfoHeaders",type:{name:"Composite",className:"BlobGetAccountInfoHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},skuName:{serializedName:"x-ms-sku-name",xmlName:"x-ms-sku-name",type:{name:"Enum",allowedValues:["Standard_LRS","Standard_GRS","Standard_RAGRS","Standard_ZRS","Premium_LRS"]}},accountKind:{serializedName:"x-ms-account-kind",xmlName:"x-ms-account-kind",type:{name:"Enum",allowedValues:["Storage","BlobStorage","StorageV2","FileStorage","BlockBlobStorage"]}},isHierarchicalNamespaceEnabled:{serializedName:"x-ms-is-hns-enabled",xmlName:"x-ms-is-hns-enabled",type:{name:"Boolean"}}}}};const zc={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Vc={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}}},contentLength:{serializedName:"content-length",xmlName:"content-length",type:{name:"Number"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},contentRange:{serializedName:"content-range",xmlName:"content-range",type:{name:"String"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},contentEncoding:{serializedName:"content-encoding",xmlName:"content-encoding",type:{name:"String"}},cacheControl:{serializedName:"cache-control",xmlName:"cache-control",type:{name:"String"}},contentDisposition:{serializedName:"content-disposition",xmlName:"content-disposition",type:{name:"String"}},contentLanguage:{serializedName:"content-language",xmlName:"content-language",type:{name:"String"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},blobType:{serializedName:"x-ms-blob-type",xmlName:"x-ms-blob-type",type:{name:"Enum",allowedValues:["BlockBlob","PageBlob","AppendBlob"]}},copyCompletionTime:{serializedName:"x-ms-copy-completion-time",xmlName:"x-ms-copy-completion-time",type:{name:"DateTimeRfc1123"}},copyStatusDescription:{serializedName:"x-ms-copy-status-description",xmlName:"x-ms-copy-status-description",type:{name:"String"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyProgress:{serializedName:"x-ms-copy-progress",xmlName:"x-ms-copy-progress",type:{name:"String"}},copySource:{serializedName:"x-ms-copy-source",xmlName:"x-ms-copy-source",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},leaseDuration:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Enum",allowedValues:["infinite","fixed"]}},leaseState:{serializedName:"x-ms-lease-state",xmlName:"x-ms-lease-state",type:{name:"Enum",allowedValues:["available","leased","expired","breaking","broken"]}},leaseStatus:{serializedName:"x-ms-lease-status",xmlName:"x-ms-lease-status",type:{name:"Enum",allowedValues:["locked","unlocked"]}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},acceptRanges:{serializedName:"accept-ranges",xmlName:"accept-ranges",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-server-encrypted",xmlName:"x-ms-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},blobContentMD5:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},contentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}}}};const jc={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yc={serializedName:"Blob_getTagsHeaders",type:{name:"Composite",className:"BlobGetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jc={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Wc={serializedName:"Blob_setTagsHeaders",type:{name:"Composite",className:"BlobSetTagsHeaders",modelProperties:{clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Kc={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xc={serializedName:"PageBlob_createHeaders",type:{name:"Composite",className:"PageBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zc={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const el={serializedName:"PageBlob_uploadPagesHeaders",type:{name:"Composite",className:"PageBlobUploadPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tl={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rl={serializedName:"PageBlob_clearPagesHeaders",type:{name:"Composite",className:"PageBlobClearPagesHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nl={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const sl={serializedName:"PageBlob_uploadPagesFromURLHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ol={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const il={serializedName:"PageBlob_getPageRangesHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const al={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const cl={serializedName:"PageBlob_getPageRangesDiffHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ll={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ul={serializedName:"PageBlob_resizeHeaders",type:{name:"Composite",className:"PageBlobResizeHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dl={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pl={serializedName:"PageBlob_updateSequenceNumberHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},blobSequenceNumber:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Al={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ml={serializedName:"PageBlob_copyIncrementalHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},copyId:{serializedName:"x-ms-copy-id",xmlName:"x-ms-copy-id",type:{name:"String"}},copyStatus:{serializedName:"x-ms-copy-status",xmlName:"x-ms-copy-status",type:{name:"Enum",allowedValues:["pending","success","aborted","failed"]}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const gl={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hl={serializedName:"AppendBlob_createHeaders",type:{name:"Composite",className:"AppendBlobCreateHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const fl={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const yl={serializedName:"AppendBlob_appendBlockHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const El={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cl={serializedName:"AppendBlob_appendBlockFromUrlHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},blobAppendOffset:{serializedName:"x-ms-blob-append-offset",xmlName:"x-ms-blob-append-offset",type:{name:"String"}},blobCommittedBlockCount:{serializedName:"x-ms-blob-committed-block-count",xmlName:"x-ms-blob-committed-block-count",type:{name:"Number"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Il={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const bl={serializedName:"AppendBlob_sealHeaders",type:{name:"Composite",className:"AppendBlobSealHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isSealed:{serializedName:"x-ms-blob-sealed",xmlName:"x-ms-blob-sealed",type:{name:"Boolean"}}}}};const Sl={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Bl={serializedName:"BlockBlob_uploadHeaders",type:{name:"Composite",className:"BlockBlobUploadHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wl={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rl={serializedName:"BlockBlob_putBlobFromUrlHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nl={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const xl={serializedName:"BlockBlob_stageBlockHeaders",type:{name:"Composite",className:"BlockBlobStageBlockHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ql={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Tl={serializedName:"BlockBlob_stageBlockFromURLHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLHeaders",modelProperties:{contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const vl={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}},copySourceErrorCode:{serializedName:"x-ms-copy-source-error-code",xmlName:"x-ms-copy-source-error-code",type:{name:"String"}},copySourceStatusCode:{serializedName:"x-ms-copy-source-status-code",xmlName:"x-ms-copy-source-status-code",type:{name:"Number"}}}}};const Pl={serializedName:"BlockBlob_commitBlockListHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListHeaders",modelProperties:{etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},contentMD5:{serializedName:"content-md5",xmlName:"content-md5",type:{name:"ByteArray"}},xMsContentCrc64:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},versionId:{serializedName:"x-ms-version-id",xmlName:"x-ms-version-id",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},isServerEncrypted:{serializedName:"x-ms-request-server-encrypted",xmlName:"x-ms-request-server-encrypted",type:{name:"Boolean"}},encryptionKeySha256:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}},encryptionScope:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Dl={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const kl={serializedName:"BlockBlob_getBlockListHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},etag:{serializedName:"etag",xmlName:"etag",type:{name:"String"}},contentType:{serializedName:"content-type",xmlName:"content-type",type:{name:"String"}},blobContentLength:{serializedName:"x-ms-blob-content-length",xmlName:"x-ms-blob-content-length",type:{name:"Number"}},clientRequestId:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}},requestId:{serializedName:"x-ms-request-id",xmlName:"x-ms-request-id",type:{name:"String"}},version:{serializedName:"x-ms-version",xmlName:"x-ms-version",type:{name:"String"}},date:{serializedName:"date",xmlName:"date",type:{name:"DateTimeRfc1123"}},errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _l={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ll={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Ol={parameterPath:"blobServiceProperties",mapper:Ei};const Fl={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Ul={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const Ml={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Hl={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const $l={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const Gl={parameterPath:"version",mapper:{defaultValue:"2026-02-06",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const ql={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const zl={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Vl={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const jl={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Yl={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const Jl={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const Wl={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const Kl={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:"CSV"};const Xl={parameterPath:"keyInfo",mapper:vi};const Zl={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const eu={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const tu={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const ru={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const nu={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const su={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const ou={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const iu={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const au={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const cu={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",headerCollectionPrefix:"x-ms-meta-",type:{name:"Dictionary",value:{type:{name:"String"}}}}};const lu={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const uu={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const du={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const pu={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const Au={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const mu={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const gu={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const hu={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const fu={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const yu={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Eu={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Cu={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Iu={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bu={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Su={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Bu={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wu={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Ru={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Nu={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const xu={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Qu={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Tu={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const vu={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Pu={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Du={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const ku={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const _u={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListBlobsIncludeItem",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["copy","deleted","metadata","snapshots","uncommittedblobs","versions","tags","immutabilitypolicy","legalhold","deletedwithversions"]}}}},collectionFormat:"CSV"};const Lu={parameterPath:["options","startFrom"],mapper:{serializedName:"startFrom",xmlName:"startFrom",type:{name:"String"}}};const Ou={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const Fu={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const Uu={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const Mu={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const Hu={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const $u={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const Gu={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const qu={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const zu={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const Vu={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const ju={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const Yu={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const Ju={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const Wu={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const Ku={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Xu={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Zu={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const ed={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const td={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const rd={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const nd={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const sd={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const od={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const id={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ad={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const cd={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const ld={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ud={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const dd={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const pd={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ad={parameterPath:["options","tier"],mapper:{serializedName:"x-ms-access-tier",xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const md={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const gd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const hd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const fd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const yd={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Ed={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Cd={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Id={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const bd={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Sd={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Bd={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const wd={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Rd={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Nd={parameterPath:["options","copySourceTags"],mapper:{serializedName:"x-ms-copy-source-tag-option",xmlName:"x-ms-copy-source-tag-option",type:{name:"Enum",allowedValues:["REPLACE","COPY"]}}};const xd={parameterPath:["options","fileRequestIntent"],mapper:{serializedName:"x-ms-file-request-intent",xmlName:"x-ms-file-request-intent",type:{name:"String"}}};const Qd={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Td={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const vd={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Pd={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Dd={parameterPath:"tier",mapper:{serializedName:"x-ms-access-tier",required:true,xmlName:"x-ms-access-tier",type:{name:"Enum",allowedValues:["P4","P6","P10","P15","P20","P30","P40","P50","P60","P70","P80","Hot","Cool","Archive","Cold"]}}};const kd={parameterPath:["options","queryRequest"],mapper:Zi};const _d={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ld={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Od={parameterPath:["options","blobModifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"x-ms-blob-if-modified-since",xmlName:"x-ms-blob-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Fd={parameterPath:["options","blobModifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"x-ms-blob-if-unmodified-since",xmlName:"x-ms-blob-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Ud={parameterPath:["options","blobModifiedAccessConditions","ifMatch"],mapper:{serializedName:"x-ms-blob-if-match",xmlName:"x-ms-blob-if-match",type:{name:"String"}}};const Md={parameterPath:["options","blobModifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"x-ms-blob-if-none-match",xmlName:"x-ms-blob-if-none-match",type:{name:"String"}}};const Hd={parameterPath:["options","tags"],mapper:_i};const $d={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const Gd={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const qd={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const zd={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const Vd={parameterPath:["options","blobSequenceNumber"],mapper:{defaultValue:0,serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const jd={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Yd={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const Jd={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const Wd={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Kd={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Xd={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const Zd={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const ep={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const tp={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const rp={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const np={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const sp={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const ip={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const ap={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const lp={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const up={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const dp={parameterPath:"sequenceNumberAction",mapper:{serializedName:"x-ms-sequence-number-action",required:true,xmlName:"x-ms-sequence-number-action",type:{name:"Enum",allowedValues:["max","update","increment"]}}};const pp={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ap={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const mp={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const gp={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const hp={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const fp={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const yp={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ep={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Cp={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Ip={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const bp={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Sp={parameterPath:"blocks",mapper:ji};const Bp={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const wp={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class ServiceImpl{client;constructor(e){this.client=e}setProperties(e,t){return this.client.sendOperationRequest({blobServiceProperties:e,options:t},Np)}getProperties(e){return this.client.sendOperationRequest({options:e},xp)}getStatistics(e){return this.client.sendOperationRequest({options:e},Qp)}listContainersSegment(e){return this.client.sendOperationRequest({options:e},Tp)}getUserDelegationKey(e,t){return this.client.sendOperationRequest({keyInfo:e,options:t},vp)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Pp)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},Dp)}filterBlobs(e){return this.client.sendOperationRequest({options:e},kp)}}const Rp=createSerializer(i,true);const Np={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:ia},default:{bodyMapper:wi,headersMapper:aa}},requestBody:Ol,queryParameters:[Ml,Hl,$l],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rp};const xp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Ei,headersMapper:ca},default:{bodyMapper:wi,headersMapper:la}},queryParameters:[Ml,Hl,$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:Rp};const Qp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Ri,headersMapper:ua},default:{bodyMapper:wi,headersMapper:da}},queryParameters:[Ml,$l,Vl],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:Rp};const Tp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:xi,headersMapper:pa},default:{bodyMapper:wi,headersMapper:Aa}},queryParameters:[$l,jl,Yl,Jl,Wl,Kl],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:Rp};const vp={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:Pi,headersMapper:ma},default:{bodyMapper:wi,headersMapper:ga}},requestBody:Xl,queryParameters:[Ml,$l,Zl],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rp};const Pp={path:"/",httpMethod:"GET",responses:{200:{headersMapper:ha},default:{bodyMapper:wi,headersMapper:fa}},queryParameters:[Hl,$l,eu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:Rp};const Dp={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ya},default:{bodyMapper:wi,headersMapper:Ea}},requestBody:tu,queryParameters:[$l,ru],urlParameters:[Ul],headerParameters:[Fl,Gl,ql,nu,su],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Rp};const kp={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Di,headersMapper:Ca},default:{bodyMapper:wi,headersMapper:Ia}},queryParameters:[$l,Jl,Wl,ou,iu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:Rp};class ContainerImpl{client;constructor(e){this.client=e}create(e){return this.client.sendOperationRequest({options:e},Lp)}getProperties(e){return this.client.sendOperationRequest({options:e},Op)}delete(e){return this.client.sendOperationRequest({options:e},Fp)}setMetadata(e){return this.client.sendOperationRequest({options:e},Up)}getAccessPolicy(e){return this.client.sendOperationRequest({options:e},Mp)}setAccessPolicy(e){return this.client.sendOperationRequest({options:e},Hp)}restore(e){return this.client.sendOperationRequest({options:e},$p)}rename(e,t){return this.client.sendOperationRequest({sourceContainerName:e,options:t},Gp)}submitBatch(e,t,n,o){return this.client.sendOperationRequest({contentLength:e,multipartContentType:t,body:n,options:o},qp)}filterBlobs(e){return this.client.sendOperationRequest({options:e},zp)}acquireLease(e){return this.client.sendOperationRequest({options:e},Vp)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},jp)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},Yp)}breakLease(e){return this.client.sendOperationRequest({options:e},Jp)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},Wp)}listBlobFlatSegment(e){return this.client.sendOperationRequest({options:e},Kp)}listBlobHierarchySegment(e,t){return this.client.sendOperationRequest({delimiter:e,options:t},Xp)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},Zp)}}const _p=createSerializer(i,true);const Lp={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ba},default:{bodyMapper:wi,headersMapper:Sa}},queryParameters:[$l,au],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,lu,uu,du],isXML:true,serializer:_p};const Op={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:Ba},default:{bodyMapper:wi,headersMapper:wa}},queryParameters:[$l,au],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu],isXML:true,serializer:_p};const Fp={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:Ra},default:{bodyMapper:wi,headersMapper:Na}},queryParameters:[$l,au],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu],isXML:true,serializer:_p};const Up={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:xa},default:{bodyMapper:wi,headersMapper:Qa}},queryParameters:[$l,au,gu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,pu,Au],isXML:true,serializer:_p};const Mp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}},serializedName:"SignedIdentifiers",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier"},headersMapper:Ta},default:{bodyMapper:wi,headersMapper:va}},queryParameters:[$l,au,hu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu],isXML:true,serializer:_p};const Hp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Pa},default:{bodyMapper:wi,headersMapper:Da}},requestBody:fu,queryParameters:[$l,au,hu],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql,lu,pu,Au,mu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_p};const $p={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:ka},default:{bodyMapper:wi,headersMapper:_a}},queryParameters:[$l,au,yu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Eu,Cu],isXML:true,serializer:_p};const Gp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:La},default:{bodyMapper:wi,headersMapper:Oa}},queryParameters:[$l,au,Iu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,bu,Su],isXML:true,serializer:_p};const qp={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Fa},default:{bodyMapper:wi,headersMapper:Ua}},requestBody:tu,queryParameters:[$l,ru,au],urlParameters:[Ul],headerParameters:[Fl,Gl,ql,nu,su],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:_p};const zp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Di,headersMapper:Ma},default:{bodyMapper:wi,headersMapper:Ha}},queryParameters:[$l,Jl,Wl,ou,iu,au],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:_p};const Vp={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:$a},default:{bodyMapper:wi,headersMapper:Ga}},queryParameters:[$l,au,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,wu,Ru,Nu],isXML:true,serializer:_p};const jp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:qa},default:{bodyMapper:wi,headersMapper:za}},queryParameters:[$l,au,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,xu,Qu],isXML:true,serializer:_p};const Yp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Va},default:{bodyMapper:wi,headersMapper:ja}},queryParameters:[$l,au,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,Qu,Tu],isXML:true,serializer:_p};const Jp={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:Ya},default:{bodyMapper:wi,headersMapper:Ja}},queryParameters:[$l,au,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,vu,Pu],isXML:true,serializer:_p};const Wp={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Wa},default:{bodyMapper:wi,headersMapper:Ka}},queryParameters:[$l,au,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,Qu,Du,ku],isXML:true,serializer:_p};const Kp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Ui,headersMapper:Xa},default:{bodyMapper:wi,headersMapper:Za}},queryParameters:[$l,jl,Yl,Jl,Wl,au,_u,Lu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:_p};const Xp={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:qi,headersMapper:ec},default:{bodyMapper:wi,headersMapper:tc}},queryParameters:[$l,jl,Yl,Jl,Wl,au,_u,Lu,Ou],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:_p};const Zp={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:rc},default:{bodyMapper:wi,headersMapper:nc}},queryParameters:[Hl,$l,eu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:_p};class BlobImpl{client;constructor(e){this.client=e}download(e){return this.client.sendOperationRequest({options:e},tA)}getProperties(e){return this.client.sendOperationRequest({options:e},rA)}delete(e){return this.client.sendOperationRequest({options:e},nA)}undelete(e){return this.client.sendOperationRequest({options:e},sA)}setExpiry(e,t){return this.client.sendOperationRequest({expiryOptions:e,options:t},oA)}setHttpHeaders(e){return this.client.sendOperationRequest({options:e},iA)}setImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},aA)}deleteImmutabilityPolicy(e){return this.client.sendOperationRequest({options:e},cA)}setLegalHold(e,t){return this.client.sendOperationRequest({legalHold:e,options:t},lA)}setMetadata(e){return this.client.sendOperationRequest({options:e},uA)}acquireLease(e){return this.client.sendOperationRequest({options:e},dA)}releaseLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},pA)}renewLease(e,t){return this.client.sendOperationRequest({leaseId:e,options:t},AA)}changeLease(e,t,n){return this.client.sendOperationRequest({leaseId:e,proposedLeaseId:t,options:n},mA)}breakLease(e){return this.client.sendOperationRequest({options:e},gA)}createSnapshot(e){return this.client.sendOperationRequest({options:e},hA)}startCopyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},fA)}copyFromURL(e,t){return this.client.sendOperationRequest({copySource:e,options:t},yA)}abortCopyFromURL(e,t){return this.client.sendOperationRequest({copyId:e,options:t},EA)}setTier(e,t){return this.client.sendOperationRequest({tier:e,options:t},CA)}getAccountInfo(e){return this.client.sendOperationRequest({options:e},IA)}query(e){return this.client.sendOperationRequest({options:e},bA)}getTags(e){return this.client.sendOperationRequest({options:e},SA)}setTags(e){return this.client.sendOperationRequest({options:e},BA)}}const eA=createSerializer(i,true);const tA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:sc},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:sc},default:{bodyMapper:wi,headersMapper:oc}},queryParameters:[$l,Fu,Uu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Mu,Hu,$u,Gu,qu,zu,Vu,ju,Yu],isXML:true,serializer:eA};const rA={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:ic},default:{bodyMapper:wi,headersMapper:ac}},queryParameters:[$l,Fu,Uu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu],isXML:true,serializer:eA};const nA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:cc},default:{bodyMapper:wi,headersMapper:lc}},queryParameters:[$l,Fu,Uu,Wu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Vu,ju,Yu,Ju],isXML:true,serializer:eA};const sA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:uc},default:{bodyMapper:wi,headersMapper:dc}},queryParameters:[$l,yu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:eA};const oA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:pc},default:{bodyMapper:wi,headersMapper:Ac}},queryParameters:[$l,Ku],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Xu,Zu],isXML:true,serializer:eA};const iA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:mc},default:{bodyMapper:wi,headersMapper:gc}},queryParameters:[Hl,$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Vu,ju,Yu,ed,td,rd,nd,sd,od],isXML:true,serializer:eA};const aA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:hc},default:{bodyMapper:wi,headersMapper:fc}},queryParameters:[$l,Fu,Uu,id],urlParameters:[Ul],headerParameters:[Gl,ql,zl,mu,ad,cd],isXML:true,serializer:eA};const cA={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:yc},default:{bodyMapper:wi,headersMapper:Ec}},queryParameters:[$l,Fu,Uu,id],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:eA};const lA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cc},default:{bodyMapper:wi,headersMapper:Ic}},queryParameters:[$l,Fu,Uu,ld],urlParameters:[Ul],headerParameters:[Gl,ql,zl,ud],isXML:true,serializer:eA};const uA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bc},default:{bodyMapper:wi,headersMapper:Sc}},queryParameters:[$l,gu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd],isXML:true,serializer:eA};const dA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Bc},default:{bodyMapper:wi,headersMapper:wc}},queryParameters:[$l,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,wu,Ru,Nu,Vu,ju,Yu],isXML:true,serializer:eA};const pA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rc},default:{bodyMapper:wi,headersMapper:Nc}},queryParameters:[$l,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,xu,Qu,Vu,ju,Yu],isXML:true,serializer:eA};const AA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:xc},default:{bodyMapper:wi,headersMapper:Qc}},queryParameters:[$l,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,Qu,Tu,Vu,ju,Yu],isXML:true,serializer:eA};const mA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Tc},default:{bodyMapper:wi,headersMapper:vc}},queryParameters:[$l,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,Qu,Du,ku,Vu,ju,Yu],isXML:true,serializer:eA};const gA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Pc},default:{bodyMapper:wi,headersMapper:Dc}},queryParameters:[$l,Bu],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,vu,Pu,Vu,ju,Yu],isXML:true,serializer:eA};const hA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:kc},default:{bodyMapper:wi,headersMapper:_c}},queryParameters:[$l,pd],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd],isXML:true,serializer:eA};const fA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Lc},default:{bodyMapper:wi,headersMapper:Oc}},queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,pu,Au,mu,Vu,ju,Yu,ad,cd,Ad,md,gd,hd,fd,yd,Ed,Cd,Id,bd,Sd],isXML:true,serializer:eA};const yA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Fc},default:{bodyMapper:wi,headersMapper:Uc}},queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,cu,pu,Au,mu,Vu,ju,Yu,ad,cd,dd,Ad,gd,hd,fd,yd,Cd,Id,Sd,Bd,wd,Rd,Nd,xd],isXML:true,serializer:eA};const EA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Mc},default:{bodyMapper:wi,headersMapper:Hc}},queryParameters:[$l,Qd,vd],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Td],isXML:true,serializer:eA};const CA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:$c},202:{headersMapper:$c},default:{bodyMapper:wi,headersMapper:Gc}},queryParameters:[$l,Fu,Uu,Pd],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Yu,md,Dd],isXML:true,serializer:eA};const IA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:qc},default:{bodyMapper:wi,headersMapper:zc}},queryParameters:[Hl,$l,eu],urlParameters:[Ul],headerParameters:[Gl,ql,zl],isXML:true,serializer:eA};const bA={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vc},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Vc},default:{bodyMapper:wi,headersMapper:jc}},requestBody:kd,queryParameters:[$l,Fu,_d],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:eA};const SA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:_i,headersMapper:Yc},default:{bodyMapper:wi,headersMapper:Jc}},queryParameters:[$l,Fu,Uu,Ld],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Yu,Od,Fd,Ud,Md],isXML:true,serializer:eA};const BA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:Wc},default:{bodyMapper:wi,headersMapper:Kc}},requestBody:Hd,queryParameters:[$l,Uu,Ld],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql,pu,Yu,Od,Fd,Ud,Md,$d,Gd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:eA};class PageBlobImpl{client;constructor(e){this.client=e}create(e,t,n){return this.client.sendOperationRequest({contentLength:e,blobContentLength:t,options:n},RA)}uploadPages(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},NA)}clearPages(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},xA)}uploadPagesFromURL(e,t,n,o,i){return this.client.sendOperationRequest({sourceUrl:e,sourceRange:t,contentLength:n,range:o,options:i},QA)}getPageRanges(e){return this.client.sendOperationRequest({options:e},TA)}getPageRangesDiff(e){return this.client.sendOperationRequest({options:e},vA)}resize(e,t){return this.client.sendOperationRequest({blobContentLength:e,options:t},PA)}updateSequenceNumber(e,t){return this.client.sendOperationRequest({sequenceNumberAction:e,options:t},DA)}copyIncremental(e,t){return this.client.sendOperationRequest({copySource:e,options:t},kA)}}const wA=createSerializer(i,true);const RA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Xc},default:{bodyMapper:wi,headersMapper:Zc}},queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,ed,td,rd,nd,sd,od,ad,cd,dd,Ad,Id,Sd,qd,zd,Vd],isXML:true,serializer:wA};const NA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:el},default:{bodyMapper:wi,headersMapper:tl}},requestBody:Yd,queryParameters:[$l,Wd],urlParameters:[Ul],headerParameters:[Gl,ql,nu,pu,Au,mu,Mu,Gu,qu,zu,Vu,ju,Yu,dd,$d,Gd,jd,Jd,Kd,Xd,Zd,ep],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:wA};const xA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:rl},default:{bodyMapper:wi,headersMapper:nl}},queryParameters:[$l,Wd],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,pu,Au,mu,Mu,Gu,qu,zu,Vu,ju,Yu,dd,Xd,Zd,ep,tp],isXML:true,serializer:wA};const QA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:sl},default:{bodyMapper:wi,headersMapper:ol}},queryParameters:[$l,Wd],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd,gd,hd,fd,yd,wd,Rd,xd,Kd,Xd,Zd,ep,rp,np,sp,ip],isXML:true,serializer:wA};const TA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Wi,headersMapper:il},default:{bodyMapper:wi,headersMapper:al}},queryParameters:[$l,Jl,Wl,Fu,ap],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Mu,Vu,ju,Yu],isXML:true,serializer:wA};const vA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Wi,headersMapper:cl},default:{bodyMapper:wi,headersMapper:ll}},queryParameters:[$l,Jl,Wl,Fu,ap,lp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Mu,Vu,ju,Yu,up],isXML:true,serializer:wA};const PA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:ul},default:{bodyMapper:wi,headersMapper:dl}},queryParameters:[Hl,$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd,zd],isXML:true,serializer:wA};const DA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:pl},default:{bodyMapper:wi,headersMapper:Al}},queryParameters:[Hl,$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Vu,ju,Yu,Vd,dp],isXML:true,serializer:wA};const kA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:ml},default:{bodyMapper:wi,headersMapper:gl}},queryParameters:[$l,pp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,Au,mu,Vu,ju,Yu,Cd],isXML:true,serializer:wA};class AppendBlobImpl{client;constructor(e){this.client=e}create(e,t){return this.client.sendOperationRequest({contentLength:e,options:t},LA)}appendBlock(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},OA)}appendBlockFromUrl(e,t,n){return this.client.sendOperationRequest({sourceUrl:e,contentLength:t,options:n},FA)}seal(e){return this.client.sendOperationRequest({options:e},UA)}}const _A=createSerializer(i,true);const LA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hl},default:{bodyMapper:wi,headersMapper:fl}},queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,ed,td,rd,nd,sd,od,ad,cd,dd,Id,Sd,Ap],isXML:true,serializer:_A};const OA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:yl},default:{bodyMapper:wi,headersMapper:El}},requestBody:Yd,queryParameters:[$l,mp],urlParameters:[Ul],headerParameters:[Gl,ql,nu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd,$d,Gd,jd,Jd,gp,hp],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:_A};const FA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Cl},default:{bodyMapper:wi,headersMapper:Il}},queryParameters:[$l,mp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,dd,gd,hd,fd,yd,wd,Rd,xd,$d,rp,sp,gp,hp,fp],isXML:true,serializer:_A};const UA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:bl},default:{bodyMapper:wi,headersMapper:Sl}},queryParameters:[$l,yp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Au,mu,Vu,ju,hp],isXML:true,serializer:_A};class BlockBlobImpl{client;constructor(e){this.client=e}upload(e,t,n){return this.client.sendOperationRequest({contentLength:e,body:t,options:n},HA)}putBlobFromUrl(e,t,n){return this.client.sendOperationRequest({contentLength:e,copySource:t,options:n},$A)}stageBlock(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,body:n,options:o},GA)}stageBlockFromURL(e,t,n,o){return this.client.sendOperationRequest({blockId:e,contentLength:t,sourceUrl:n,options:o},qA)}commitBlockList(e,t){return this.client.sendOperationRequest({blocks:e,options:t},zA)}getBlockList(e,t){return this.client.sendOperationRequest({listType:e,options:t},VA)}}const MA=createSerializer(i,true);const HA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Bl},default:{bodyMapper:wi,headersMapper:wl}},requestBody:Yd,queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,nu,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,ed,td,rd,nd,sd,od,ad,cd,dd,Ad,Id,Sd,$d,Gd,jd,Jd,Ep],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:MA};const $A={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Rl},default:{bodyMapper:wi,headersMapper:Nl}},queryParameters:[$l],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,ed,td,rd,nd,sd,od,dd,Ad,gd,hd,fd,yd,Ed,Cd,Id,wd,Rd,Nd,xd,$d,Ep,Cp],isXML:true,serializer:MA};const GA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xl},default:{bodyMapper:wi,headersMapper:Ql}},requestBody:Yd,queryParameters:[$l,Ip,bp],urlParameters:[Ul],headerParameters:[Gl,ql,nu,pu,Gu,qu,zu,dd,$d,Gd,jd,Jd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"binary",serializer:MA};const qA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Tl},default:{bodyMapper:wi,headersMapper:vl}},queryParameters:[$l,Ip,bp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,nu,pu,Gu,qu,zu,dd,gd,hd,fd,yd,wd,Rd,xd,rp,sp,fp],isXML:true,serializer:MA};const zA={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pl},default:{bodyMapper:wi,headersMapper:Dl}},requestBody:Sp,queryParameters:[$l,Bp],urlParameters:[Ul],headerParameters:[Ll,Fl,Gl,ql,cu,pu,Au,mu,Gu,qu,zu,Vu,ju,Yu,ed,td,rd,nd,sd,od,ad,cd,dd,Ad,Id,Sd,$d,Gd],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:MA};const VA={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:Yi,headersMapper:kl},default:{bodyMapper:wi,headersMapper:_l}},queryParameters:[$l,Fu,Bp,wp],urlParameters:[Ul],headerParameters:[Gl,ql,zl,pu,Yu],isXML:true,serializer:MA};class StorageClient extends ExtendedServiceClient{url;version;constructor(e,t){if(e===undefined){throw new Error("'url' cannot be null")}if(!t){t={}}const n={requestContentType:"application/json; charset=utf-8"};const o=`azsdk-js-azure-storage-blob/12.30.0`;const i=t.userAgentOptions&&t.userAgentOptions.userAgentPrefix?`${t.userAgentOptions.userAgentPrefix} ${o}`:`${o}`;const a={...n,...t,userAgentOptions:{userAgentPrefix:i},endpoint:t.endpoint??t.baseUri??"{url}"};super(a);this.url=e;this.version=t.version||"2026-02-06";this.service=new ServiceImpl(this);this.container=new ContainerImpl(this);this.blob=new BlobImpl(this);this.pageBlob=new PageBlobImpl(this);this.appendBlob=new AppendBlobImpl(this);this.blockBlob=new BlockBlobImpl(this)}service;container;blob;pageBlob;appendBlob;blockBlob}class StorageContextClient extends StorageClient{async sendOperationRequest(e,t){const n={...t};if(n.path==="/{containerName}"||n.path==="/{containerName}/{blob}"){n.path=""}return super.sendOperationRequest(e,n)}}function utils_common_escapeURLPath(e){const t=new URL(e);let n=t.pathname;n=n||"/";n=utils_utils_common_escape(n);t.pathname=n;return t.toString()}function utils_common_getProxyUriFromDevConnString(e){let t="";if(e.search("DevelopmentStorageProxyUri=")!==-1){const n=e.split(";");for(const e of n){if(e.trim().startsWith("DevelopmentStorageProxyUri=")){t=e.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return t}function utils_common_getValueInConnString(e,t){const n=e.split(";");for(const e of n){if(e.trim().startsWith(t)){return e.trim().match(t+"=(.*)")[1]}}return""}function utils_common_extractConnectionStringParts(e){let t="";if(e.startsWith("UseDevelopmentStorage=true")){t=utils_common_getProxyUriFromDevConnString(e);e=li}let n=utils_common_getValueInConnString(e,"BlobEndpoint");n=n.endsWith("/")?n.slice(0,-1):n;if(e.search("DefaultEndpointsProtocol=")!==-1&&e.search("AccountKey=")!==-1){let o="";let i="";let a=Buffer.from("accountKey","base64");let d="";i=utils_common_getValueInConnString(e,"AccountName");a=Buffer.from(utils_common_getValueInConnString(e,"AccountKey"),"base64");if(!n){o=utils_common_getValueInConnString(e,"DefaultEndpointsProtocol");const t=o.toLowerCase();if(t!=="https"&&t!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=utils_common_getValueInConnString(e,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}n=`${o}://${i}.blob.${d}`}if(!i){throw new Error("Invalid AccountName in the provided Connection String")}else if(a.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:n,accountName:i,accountKey:a,proxyUri:t}}else{let t=utils_common_getValueInConnString(e,"SharedAccessSignature");let o=utils_common_getValueInConnString(e,"AccountName");if(!o){o=utils_common_getAccountNameFromUrl(n)}if(!n){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!t){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}if(t.startsWith("?")){t=t.substring(1)}return{kind:"SASConnString",url:n,accountName:o,accountSas:t}}}function utils_utils_common_escape(e){return encodeURIComponent(e).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function utils_common_appendToURLPath(e,t){const n=new URL(e);let o=n.pathname;o=o?o.endsWith("/")?`${o}${t}`:`${o}/${t}`:t;n.pathname=o;return n.toString()}function utils_common_setURLParameter(e,t,n){const o=new URL(e);const i=encodeURIComponent(t);const a=n?encodeURIComponent(n):undefined;const d=o.search===""?"?":o.search;const m=[];for(const e of d.slice(1).split("&")){if(e){const[t]=e.split("=",2);if(t!==i){m.push(e)}}}if(a){m.push(`${i}=${a}`)}o.search=m.length?`?${m.join("&")}`:"";return o.toString()}function utils_common_getURLParameter(e,t){const n=new URL(e);return n.searchParams.get(t)??undefined}function utils_common_setURLHost(e,t){const n=new URL(e);n.hostname=t;return n.toString()}function utils_common_getURLPath(e){try{const t=new URL(e);return t.pathname}catch(e){return undefined}}function utils_common_getURLScheme(e){try{const t=new URL(e);return t.protocol.endsWith(":")?t.protocol.slice(0,-1):t.protocol}catch(e){return undefined}}function utils_common_getURLPathAndQuery(e){const t=new URL(e);const n=t.pathname;if(!n){throw new RangeError("Invalid url without valid path.")}let o=t.search||"";o=o.trim();if(o!==""){o=o.startsWith("?")?o:`?${o}`}return`${n}${o}`}function utils_common_getURLQueries(e){let t=new URL(e).search;if(!t){return{}}t=t.trim();t=t.startsWith("?")?t.substring(1):t;let n=t.split("&");n=n.filter((e=>{const t=e.indexOf("=");const n=e.lastIndexOf("=");return t>0&&t===n&&n<e.length-1}));const o={};for(const e of n){const t=e.split("=");const n=t[0];const i=t[1];o[n]=i}return o}function utils_common_appendToURLQuery(e,t){const n=new URL(e);let o=n.search;if(o){o+="&"+t}else{o=t}n.search=o;return n.toString()}function utils_common_truncatedISO8061Date(e,t=true){const n=e.toISOString();return t?n.substring(0,n.length-1)+"0000"+"Z":n.substring(0,n.length-5)+"Z"}function utils_common_base64encode(e){return!Jn?btoa(e):Buffer.from(e).toString("base64")}function utils_common_base64decode(e){return!isNodeLike?atob(e):Buffer.from(e,"base64").toString()}function utils_common_generateBlockID(e,t){const n=48;const o=6;const i=n-o;if(e.length>i){e=e.slice(0,i)}const a=e+utils_common_padStart(t.toString(),n-e.length,"0");return utils_common_base64encode(a)}async function utils_utils_common_delay(e,t,n){return new Promise(((o,i)=>{let a;const abortHandler=()=>{if(a!==undefined){clearTimeout(a)}i(n)};const resolveHandler=()=>{if(t!==undefined){t.removeEventListener("abort",abortHandler)}o()};a=setTimeout(resolveHandler,e);if(t!==undefined){t.addEventListener("abort",abortHandler)}}))}function utils_common_padStart(e,t,n=" "){if(String.prototype.padStart){return e.padStart(t,n)}n=n||" ";if(e.length>t){return e}else{t=t-e.length;if(t>n.length){n+=n.repeat(t/n.length)}return n.slice(0,t)+e}}function utils_common_sanitizeURL(e){let t=e;if(utils_common_getURLParameter(t,URLConstants.Parameters.SIGNATURE)){t=utils_common_setURLParameter(t,URLConstants.Parameters.SIGNATURE,"*****")}return t}function utils_common_sanitizeHeaders(e){const t=createHttpHeaders();for(const[n,o]of e){if(n.toLowerCase()===HeaderConstants.AUTHORIZATION.toLowerCase()){t.set(n,"*****")}else if(n.toLowerCase()===HeaderConstants.X_MS_COPY_SOURCE){t.set(n,utils_common_sanitizeURL(o))}else{t.set(n,o)}}return t}function utils_common_iEqual(e,t){return e.toLocaleLowerCase()===t.toLocaleLowerCase()}function utils_common_getAccountNameFromUrl(e){const t=new URL(e);let n;try{if(t.hostname.split(".")[1]==="blob"){n=t.hostname.split(".")[0]}else if(utils_common_isIpEndpointStyle(t)){n=t.pathname.split("/")[1]}else{n=""}return n}catch(e){throw new Error("Unable to extract accountName with provided information.")}}function utils_common_isIpEndpointStyle(e){const t=e.host;return/^.*:.*:.*$|^(localhost|host.docker.internal)(:[0-9]+)?$|^(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])(\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])){3}(:[0-9]+)?$/.test(t)||Boolean(e.port)&&mi.includes(e.port)}function toBlobTagsString(e){if(e===undefined){return undefined}const t=[];for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.push(`${encodeURIComponent(n)}=${encodeURIComponent(o)}`)}}return t.join("&")}function toBlobTags(e){if(e===undefined){return undefined}const t={blobTagSet:[]};for(const n in e){if(Object.prototype.hasOwnProperty.call(e,n)){const o=e[n];t.blobTagSet.push({key:n,value:o})}}return t}function toTags(e){if(e===undefined){return undefined}const t={};for(const n of e.blobTagSet){t[n.key]=n.value}return t}function toQuerySerialization(e){if(e===undefined){return undefined}switch(e.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:e.columnSeparator||",",fieldQuote:e.fieldQuote||"",recordSeparator:e.recordSeparator,escapeChar:e.escapeCharacter||"",headersPresent:e.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:e.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:e.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(e){if(!e){return undefined}if("policy-id"in e){return undefined}const t=[];for(const n in e){const o=n.split("_");const i="or-";if(o[0].startsWith(i)){o[0]=o[0].substring(i.length)}const a={ruleId:o[1],replicationStatus:e[n]};const d=t.findIndex((e=>e.policyId===o[0]));if(d>-1){t[d].rules.push(a)}else{t.push({policyId:o[0],rules:[a]})}}return t}function utils_common_attachCredential(e,t){e.credential=t;return e}function utils_common_httpAuthorizationToString(e){return e?e.scheme+" "+e.value:undefined}function BlobNameToString(e){if(e.encoded){return decodeURIComponent(e.content)}else{return e.content}}function ConvertInternalResponseOfListBlobFlat(e){return{...e,segment:{blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function ConvertInternalResponseOfListBlobHierarchy(e){return{...e,segment:{blobPrefixes:e.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t})),blobItems:e.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}}}function*ExtractPageRangeInfoItems(e){let t=[];let n=[];if(e.pageRange)t=e.pageRange;if(e.clearRange)n=e.clearRange;let o=0;let i=0;while(o<t.length&&i<n.length){if(t[o].start<n[i].start){yield{start:t[o].start,end:t[o].end,isClear:false};++o}else{yield{start:n[i].start,end:n[i].end,isClear:true};++i}}for(;o<t.length;++o){yield{start:t[o].start,end:t[o].end,isClear:false}}for(;i<n.length;++i){yield{start:n[i].start,end:n[i].end,isClear:true}}}function utils_common_EscapePath(e){const t=e.split("/");for(let e=0;e<t.length;e++){t[e]=encodeURIComponent(t[e])}return t.join("/")}function utils_common_assertResponse(e){if(`_response`in e){return e}throw new TypeError(`Unexpected response object ${e}`)}class StorageClient_StorageClient{url;accountName;pipeline;credential;storageClientContext;isHttps;constructor(e,t){this.url=utils_common_escapeURLPath(e);this.accountName=utils_common_getAccountNameFromUrl(e);this.pipeline=t;this.storageClientContext=new StorageContextClient(this.url,getCoreClientOptions(t));this.isHttps=utils_common_iEqual(utils_common_getURLScheme(this.url)||"","https");this.credential=getCredentialFromPipeline(t);const n=this.storageClientContext;n.requestContentType=undefined}}const jA=createTracingClient({packageName:"@azure/storage-blob",packageVersion:$o,namespace:"Microsoft.Storage"});class BlobSASPermissions{static parse(e){const t=new BlobSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"t":t.tag=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${n}`)}}return t}static from(e){const t=new BlobSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class ContainerSASPermissions{static parse(e){const t=new ContainerSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"l":t.list=true;break;case"t":t.tag=true;break;case"x":t.deleteVersion=true;break;case"m":t.move=true;break;case"e":t.execute=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;case"f":t.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${n}`)}}return t}static from(e){const t=new ContainerSASPermissions;if(e.read){t.read=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.list){t.list=true}if(e.deleteVersion){t.deleteVersion=true}if(e.tag){t.tag=true}if(e.move){t.move=true}if(e.execute){t.execute=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}if(e.filterByTags){t.filterByTags=true}return t}read=false;add=false;create=false;write=false;delete=false;deleteVersion=false;list=false;tag=false;move=false;execute=false;setImmutabilityPolicy=false;permanentDelete=false;filterByTags=false;toString(){const e=[];if(this.read){e.push("r")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.list){e.push("l")}if(this.tag){e.push("t")}if(this.move){e.push("m")}if(this.execute){e.push("e")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}if(this.filterByTags){e.push("f")}return e.join("")}}function ipRangeToString(e){return e.end?`${e.start}-${e.end}`:e.start}var YA;(function(e){e["Https"]="https";e["HttpsAndHttp"]="https,http"})(YA||(YA={}));class SASQueryParameters{version;protocol;startsOn;expiresOn;permissions;services;resourceTypes;identifier;delegatedUserObjectId;encryptionScope;resource;signature;cacheControl;contentDisposition;contentEncoding;contentLanguage;contentType;ipRangeInner;signedOid;signedTenantId;signedStartsOn;signedExpiresOn;signedService;signedVersion;preauthorizedAgentObjectId;correlationId;get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}constructor(e,t,n,o,i,a,d,m,h,f,C,P,D,k,L,F,q,V,ee,te,re){this.version=e;this.signature=t;if(n!==undefined&&typeof n!=="string"){this.permissions=n.permissions;this.services=n.services;this.resourceTypes=n.resourceTypes;this.protocol=n.protocol;this.startsOn=n.startsOn;this.expiresOn=n.expiresOn;this.ipRangeInner=n.ipRange;this.identifier=n.identifier;this.delegatedUserObjectId=n.delegatedUserObjectId;this.encryptionScope=n.encryptionScope;this.resource=n.resource;this.cacheControl=n.cacheControl;this.contentDisposition=n.contentDisposition;this.contentEncoding=n.contentEncoding;this.contentLanguage=n.contentLanguage;this.contentType=n.contentType;if(n.userDelegationKey){this.signedOid=n.userDelegationKey.signedObjectId;this.signedTenantId=n.userDelegationKey.signedTenantId;this.signedStartsOn=n.userDelegationKey.signedStartsOn;this.signedExpiresOn=n.userDelegationKey.signedExpiresOn;this.signedService=n.userDelegationKey.signedService;this.signedVersion=n.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=n.preauthorizedAgentObjectId;this.correlationId=n.correlationId}}else{this.services=o;this.resourceTypes=i;this.expiresOn=m;this.permissions=n;this.protocol=a;this.startsOn=d;this.ipRangeInner=h;this.delegatedUserObjectId=re;this.encryptionScope=te;this.identifier=f;this.resource=C;this.cacheControl=P;this.contentDisposition=D;this.contentEncoding=k;this.contentLanguage=L;this.contentType=F;if(q){this.signedOid=q.signedObjectId;this.signedTenantId=q.signedTenantId;this.signedStartsOn=q.signedStartsOn;this.signedExpiresOn=q.signedExpiresOn;this.signedService=q.signedService;this.signedVersion=q.signedVersion;this.preauthorizedAgentObjectId=V;this.correlationId=ee}}}toString(){const e=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid","sduoid"];const t=[];for(const n of e){switch(n){case"sv":this.tryAppendQueryParameter(t,n,this.version);break;case"ss":this.tryAppendQueryParameter(t,n,this.services);break;case"srt":this.tryAppendQueryParameter(t,n,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(t,n,this.protocol);break;case"st":this.tryAppendQueryParameter(t,n,this.startsOn?utils_common_truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(t,n,this.expiresOn?utils_common_truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(t,n,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(t,n,this.identifier);break;case"ses":this.tryAppendQueryParameter(t,n,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(t,n,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(t,n,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(t,n,this.signedStartsOn?utils_common_truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(t,n,this.signedExpiresOn?utils_common_truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(t,n,this.signedService);break;case"skv":this.tryAppendQueryParameter(t,n,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(t,n,this.resource);break;case"sp":this.tryAppendQueryParameter(t,n,this.permissions);break;case"sig":this.tryAppendQueryParameter(t,n,this.signature);break;case"rscc":this.tryAppendQueryParameter(t,n,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(t,n,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(t,n,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(t,n,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(t,n,this.contentType);break;case"saoid":this.tryAppendQueryParameter(t,n,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(t,n,this.correlationId);break;case"sduoid":this.tryAppendQueryParameter(t,n,this.delegatedUserObjectId);break}}return t.join("&")}tryAppendQueryParameter(e,t,n){if(!n){return}t=encodeURIComponent(t);n=encodeURIComponent(n);if(t.length>0&&n.length>0){e.push(`${t}=${n}`)}}}function generateBlobSASQueryParameters(e,t,n){return generateBlobSASQueryParametersInternal(e,t,n).sasQueryParameters}function generateBlobSASQueryParametersInternal(e,t,n){const o=e.version?e.version:Go;const i=t instanceof StorageSharedKeyCredential?t:undefined;let a;if(i===undefined&&n!==undefined){a=new UserDelegationKeyCredential(n,t)}if(i===undefined&&a===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(o>="2020-12-06"){if(i!==undefined){return generateBlobSASQueryParameters20201206(e,i)}else{if(o>="2025-07-05"){return generateBlobSASQueryParametersUDK20250705(e,a)}else{return generateBlobSASQueryParametersUDK20201206(e,a)}}}if(o>="2018-11-09"){if(i!==undefined){return generateBlobSASQueryParameters20181109(e,i)}else{if(o>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(e,a)}else{return generateBlobSASQueryParametersUDK20181109(e,a)}}}if(o>="2015-04-05"){if(i!==undefined){return generateBlobSASQueryParameters20150405(e,i)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";if(e.blobName){n="b"}let o;if(e.permissions){if(e.blobName){o=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{o=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const i=[o?o:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const a=t.computeHMACSHA256(i);return{sasQueryParameters:new SASQueryParameters(e.version,a,o,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:i}}function generateBlobSASQueryParameters20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType),stringToSign:a}}function generateBlobSASQueryParameters20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.identifier&&!(e.permissions&&e.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),e.identifier,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl?e.cacheControl:"",e.contentDisposition?e.contentDisposition:"",e.contentEncoding?e.contentEncoding:"",e.contentLanguage?e.contentLanguage:"",e.contentType?e.contentType:""].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,undefined,undefined,undefined,e.encryptionScope),stringToSign:a}}function generateBlobSASQueryParametersUDK20181109(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey),stringToSign:a}}function generateBlobSASQueryParametersUDK20200210(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId),stringToSign:a}}function generateBlobSASQueryParametersUDK20201206(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope),stringToSign:a}}function generateBlobSASQueryParametersUDK20250705(e,t){e=SASSignatureValuesSanityCheckAndAutofill(e);if(!e.permissions||!e.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let n="c";let o=e.snapshotTime;if(e.blobName){n="b";if(e.snapshotTime){n="bs"}else if(e.versionId){n="bv";o=e.versionId}}let i;if(e.permissions){if(e.blobName){i=BlobSASPermissions.parse(e.permissions.toString()).toString()}else{i=ContainerSASPermissions.parse(e.permissions.toString()).toString()}}const a=[i?i:"",e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",e.expiresOn?utils_common_truncatedISO8061Date(e.expiresOn,false):"",getCanonicalName(t.accountName,e.containerName,e.blobName),t.userDelegationKey.signedObjectId,t.userDelegationKey.signedTenantId,t.userDelegationKey.signedStartsOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedStartsOn,false):"",t.userDelegationKey.signedExpiresOn?utils_common_truncatedISO8061Date(t.userDelegationKey.signedExpiresOn,false):"",t.userDelegationKey.signedService,t.userDelegationKey.signedVersion,e.preauthorizedAgentObjectId,undefined,e.correlationId,undefined,e.delegatedUserObjectId,e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",e.version,n,o,e.encryptionScope,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType].join("\n");const d=t.computeHMACSHA256(a);return{sasQueryParameters:new SASQueryParameters(e.version,d,i,undefined,undefined,e.protocol,e.startsOn,e.expiresOn,e.ipRange,e.identifier,n,e.cacheControl,e.contentDisposition,e.contentEncoding,e.contentLanguage,e.contentType,t.userDelegationKey,e.preauthorizedAgentObjectId,e.correlationId,e.encryptionScope,e.delegatedUserObjectId),stringToSign:a}}function getCanonicalName(e,t,n){const o=[`/blob/${e}/${t}`];if(n){o.push(`/${n}`)}return o.join("")}function SASSignatureValuesSanityCheckAndAutofill(e){const t=e.version?e.version:Go;if(e.snapshotTime&&t<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(e.blobName===undefined&&e.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(e.versionId&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(e.blobName===undefined&&e.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(e.permissions&&e.permissions.setImmutabilityPolicy&&t<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&t<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(e.permissions&&e.permissions.tag&&t<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(t<"2020-02-10"&&e.permissions&&(e.permissions.move||e.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(t<"2021-04-10"&&e.permissions&&e.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(t<"2020-02-10"&&(e.preauthorizedAgentObjectId||e.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(e.encryptionScope&&t<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}e.version=t;return e}class BlobLeaseClient{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,t){const n=e.storageClientContext;this._url=e.url;if(e.name===undefined){this._isContainer=true;this._containerOrBlobOperation=n.container}else{this._isContainer=false;this._containerOrBlobOperation=n.blob}if(!t){t=esm_randomUUID()}this._leaseId=t}async acquireLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==ti||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==ti||t.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 jA.withSpan("BlobLeaseClient-acquireLease",t,(async n=>utils_common_assertResponse(await this._containerOrBlobOperation.acquireLease({abortSignal:t.abortSignal,duration:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions}))))}async changeLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==ti||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==ti||t.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 jA.withSpan("BlobLeaseClient-changeLease",t,(async n=>{const o=utils_common_assertResponse(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));this._leaseId=e;return o}))}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ti||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ti||e.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 jA.withSpan("BlobLeaseClient-releaseLease",e,(async t=>utils_common_assertResponse(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ti||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ti||e.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 jA.withSpan("BlobLeaseClient-renewLease",e,(async t=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions})))}async breakLease(e,t={}){if(this._isContainer&&(t.conditions?.ifMatch&&t.conditions?.ifMatch!==ti||t.conditions?.ifNoneMatch&&t.conditions?.ifNoneMatch!==ti||t.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 jA.withSpan("BlobLeaseClient-breakLease",t,(async n=>{const o={abortSignal:t.abortSignal,breakPeriod:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions};return utils_common_assertResponse(await this._containerOrBlobOperation.breakLease(o))}))}}class RetriableReadableStream extends _r.Readable{start;offset;end;getter;source;retries=0;maxRetryRequests;onProgress;options;constructor(e,t,n,o,i={}){super({highWaterMark:i.highWaterMark});this.getter=t;this.source=e;this.start=n;this.offset=n;this.end=n+o-1;this.maxRetryRequests=i.maxRetryRequests&&i.maxRetryRequests>=0?i.maxRetryRequests:0;this.onProgress=i.onProgress;this.options=i;this.setSourceEventHandlers()}_read(){this.source.resume()}setSourceEventHandlers(){this.source.on("data",this.sourceDataHandler);this.source.on("end",this.sourceErrorOrEndHandler);this.source.on("error",this.sourceErrorOrEndHandler);this.source.on("aborted",this.sourceAbortedHandler)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler);this.source.removeListener("aborted",this.sourceAbortedHandler)}sourceDataHandler=e=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.sourceErrorOrEndHandler();this.source.destroy();return}this.offset+=e.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(e)){this.source.pause()}};sourceAbortedHandler=()=>{const e=new AbortError_AbortError("The operation was aborted.");this.destroy(e)};sourceErrorOrEndHandler=e=>{if(e&&e.name==="AbortError"){this.destroy(e);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries<this.maxRetryRequests){this.retries+=1;this.getter(this.offset).then((e=>{this.source=e;this.setSourceEventHandlers();return})).catch((e=>{this.destroy(e)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};_destroy(e,t){this.removeSourceEventHandlers();this.source.destroy();t(e===null?undefined:e)}}class BlobDownloadResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return this.originalResponse.copyCompletedOn}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get tagCount(){return this.originalResponse.tagCount}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get lastAccessed(){return this.originalResponse.lastAccessed}get createdOn(){return this.originalResponse.createdOn}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get versionId(){return this.originalResponse.versionId}get isCurrentVersion(){return this.originalResponse.isCurrentVersion}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get objectReplicationDestinationPolicyId(){return this.originalResponse.objectReplicationDestinationPolicyId}get objectReplicationSourceProperties(){return this.originalResponse.objectReplicationSourceProperties}get isSealed(){return this.originalResponse.isSealed}get immutabilityPolicyExpiresOn(){return this.originalResponse.immutabilityPolicyExpiresOn}get immutabilityPolicyMode(){return this.originalResponse.immutabilityPolicyMode}get legalHold(){return this.originalResponse.legalHold}get contentAsBlob(){return this.originalResponse.blobBody}get readableStreamBody(){return Jn?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t,n,o,i={}){this.originalResponse=e;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,t,n,o,i)}}const JA=16;const WA=new Uint8Array([79,98,106,1]);const KA="avro.codec";const XA="avro.schema";class AvroParser{static async readFixedBytes(e,t,n={}){const o=await e.read(t,{abortSignal:n.abortSignal});if(o.length!==t){throw new Error("Hit stream end.")}return o}static async readByte(e,t={}){const n=await AvroParser.readFixedBytes(e,1,t);return n[0]}static async readZigZagLong(e,t={}){let n=0;let o=0;let i,a,d;do{i=await AvroParser.readByte(e,t);a=i&128;n|=(i&127)<<o;o+=7}while(a&&o<28);if(a){n=n;d=268435456;do{i=await AvroParser.readByte(e,t);n+=(i&127)*d;d*=128}while(i&128);const o=(n%2?-(n+1):n)/2;if(o<Number.MIN_SAFE_INTEGER||o>Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return o}return n>>1^-(n&1)}static async readLong(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readInt(e,t={}){return AvroParser.readZigZagLong(e,t)}static async readNull(){return null}static async readBoolean(e,t={}){const n=await AvroParser.readByte(e,t);if(n===1){return true}else if(n===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(e,t={}){const n=await AvroParser.readFixedBytes(e,4,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat32(0,true)}static async readDouble(e,t={}){const n=await AvroParser.readFixedBytes(e,8,t);const o=new DataView(n.buffer,n.byteOffset,n.byteLength);return o.getFloat64(0,true)}static async readBytes(e,t={}){const n=await AvroParser.readLong(e,t);if(n<0){throw new Error("Bytes size was negative.")}return e.read(n,{abortSignal:t.abortSignal})}static async readString(e,t={}){const n=await AvroParser.readBytes(e,t);const o=new TextDecoder;return o.decode(n)}static async readMapPair(e,t,n={}){const o=await AvroParser.readString(e,n);const i=await t(e,n);return{key:o,value:i}}static async readMap(e,t,n={}){const readPairMethod=(e,n={})=>AvroParser.readMapPair(e,t,n);const o=await AvroParser.readArray(e,readPairMethod,n);const i={};for(const e of o){i[e.key]=e.value}return i}static async readArray(e,t,n={}){const o=[];for(let i=await AvroParser.readLong(e,n);i!==0;i=await AvroParser.readLong(e,n)){if(i<0){await AvroParser.readLong(e,n);i=-i}while(i--){const i=await t(e,n);o.push(i)}}return o}}var ZA;(function(e){e["RECORD"]="record";e["ENUM"]="enum";e["ARRAY"]="array";e["MAP"]="map";e["UNION"]="union";e["FIXED"]="fixed"})(ZA||(ZA={}));var em;(function(e){e["NULL"]="null";e["BOOLEAN"]="boolean";e["INT"]="int";e["LONG"]="long";e["FLOAT"]="float";e["DOUBLE"]="double";e["BYTES"]="bytes";e["STRING"]="string"})(em||(em={}));class AvroType{static fromSchema(e){if(typeof e==="string"){return AvroType.fromStringSchema(e)}else if(Array.isArray(e)){return AvroType.fromArraySchema(e)}else{return AvroType.fromObjectSchema(e)}}static fromStringSchema(e){switch(e){case em.NULL:case em.BOOLEAN:case em.INT:case em.LONG:case em.FLOAT:case em.DOUBLE:case em.BYTES:case em.STRING:return new AvroPrimitiveType(e);default:throw new Error(`Unexpected Avro type ${e}`)}}static fromArraySchema(e){return new AvroUnionType(e.map(AvroType.fromSchema))}static fromObjectSchema(e){const t=e.type;try{return AvroType.fromStringSchema(t)}catch{}switch(t){case ZA.RECORD:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${e}`)}const n={};if(!e.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${e}`)}for(const t of e.fields){n[t.name]=AvroType.fromSchema(t.type)}return new AvroRecordType(n,e.name);case ZA.ENUM:if(e.aliases){throw new Error(`aliases currently is not supported, schema: ${e}`)}if(!e.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${e}`)}return new AvroEnumType(e.symbols);case ZA.MAP:if(!e.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${e}`)}return new AvroMapType(AvroType.fromSchema(e.values));case ZA.ARRAY:case ZA.FIXED:default:throw new Error(`Unexpected Avro type ${t} in ${e}`)}}}class AvroPrimitiveType extends AvroType{_primitive;constructor(e){super();this._primitive=e}read(e,t={}){switch(this._primitive){case em.NULL:return AvroParser.readNull();case em.BOOLEAN:return AvroParser.readBoolean(e,t);case em.INT:return AvroParser.readInt(e,t);case em.LONG:return AvroParser.readLong(e,t);case em.FLOAT:return AvroParser.readFloat(e,t);case em.DOUBLE:return AvroParser.readDouble(e,t);case em.BYTES:return AvroParser.readBytes(e,t);case em.STRING:return AvroParser.readString(e,t);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{_symbols;constructor(e){super();this._symbols=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._symbols[n]}}class AvroUnionType extends AvroType{_types;constructor(e){super();this._types=e}async read(e,t={}){const n=await AvroParser.readInt(e,t);return this._types[n].read(e,t)}}class AvroMapType extends AvroType{_itemType;constructor(e){super();this._itemType=e}read(e,t={}){const readItemMethod=(e,t)=>this._itemType.read(e,t);return AvroParser.readMap(e,readItemMethod,t)}}class AvroRecordType extends AvroType{_name;_fields;constructor(e,t){super();this._fields=e;this._name=t}async read(e,t={}){const n={};n["$schema"]=this._name;for(const o in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,o)){n[o]=await this._fields[o].read(e,t)}}return n}}function arraysEqual(e,t){if(e===t)return true;if(e==null||t==null)return false;if(e.length!==t.length)return false;for(let n=0;n<e.length;++n){if(e[n]!==t[n])return false}return true}class AvroReader{_dataStream;_headerStream;_syncMarker;_metadata;_itemType;_itemsRemainingInBlock;_initialBlockOffset;_blockOffset;get blockOffset(){return this._blockOffset}_objectIndex;get objectIndex(){return this._objectIndex}_initialized;constructor(e,t,n,o){this._dataStream=e;this._headerStream=t||e;this._initialized=false;this._blockOffset=n||0;this._objectIndex=o||0;this._initialBlockOffset=n||0}async initialize(e={}){const t=await AvroParser.readFixedBytes(this._headerStream,WA.length,{abortSignal:e.abortSignal});if(!arraysEqual(t,WA)){throw new Error("Stream is not an Avro file.")}this._metadata=await AvroParser.readMap(this._headerStream,AvroParser.readString,{abortSignal:e.abortSignal});const n=this._metadata[KA];if(!(n===undefined||n===null||n==="null")){throw new Error("Codecs are not supported")}this._syncMarker=await AvroParser.readFixedBytes(this._headerStream,JA,{abortSignal:e.abortSignal});const o=JSON.parse(this._metadata[XA]);this._itemType=AvroType.fromSchema(o);if(this._blockOffset===0){this._blockOffset=this._initialBlockOffset+this._dataStream.position}this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal});this._initialized=true;if(this._objectIndex&&this._objectIndex>0){for(let t=0;t<this._objectIndex;t++){await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--}}}hasNext(){return!this._initialized||this._itemsRemainingInBlock>0}async*parseObjects(e={}){if(!this._initialized){await this.initialize(e)}while(this.hasNext()){const t=await this._itemType.read(this._dataStream,{abortSignal:e.abortSignal});this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const t=await AvroParser.readFixedBytes(this._dataStream,JA,{abortSignal:e.abortSignal});this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,t)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}catch{this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){await AvroParser.readLong(this._dataStream,{abortSignal:e.abortSignal})}}yield t}}}class AvroReadable{}var tm=__nccwpck_require__(181);const rm=new AbortError_AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{_position;_readable;toUint8Array(e){if(typeof e==="string"){return tm.Buffer.from(e)}return e}constructor(e){super();this._readable=e;this._position=0}get position(){return this._position}async read(e,t={}){if(t.abortSignal?.aborted){throw rm}if(e<0){throw new Error(`size parameter should be positive: ${e}`)}if(e===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const n=this._readable.read(e);if(n){this._position+=n.length;return this.toUint8Array(n)}else{return new Promise(((n,o)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(t.abortSignal){t.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const t=this._readable.read(e);if(t){this._position+=t.length;cleanUp();n(this.toUint8Array(t))}};const rejectCallback=()=>{cleanUp();o()};const abortHandler=()=>{cleanUp();o(rm)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(t.abortSignal){t.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends _r.Readable{source;avroReader;avroIter;avroPaused=true;onProgress;onError;constructor(e,t={}){super();this.source=e;this.onProgress=t.onProgress;this.onError=t.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:t.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((e=>{this.emit("error",e)}))}}async readInternal(){this.avroPaused=false;let e;do{e=await this.avroIter.next();if(e.done){break}const t=e.value;const n=t.$schema;if(typeof n!=="string"){throw Error("Missing schema in avro record.")}switch(n){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const e=t.data;if(e instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(e))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const e=t.bytesScanned;if(typeof e!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:e})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const e=t.totalBytes;if(typeof e!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:e})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const e=t.fatal;if(typeof e!=="boolean"){throw Error("Invalid fatal in avro error record.")}const n=t.name;if(typeof n!=="string"){throw Error("Invalid name in avro error record.")}const o=t.description;if(typeof o!=="string"){throw Error("Invalid description in avro error record.")}const i=t.position;if(typeof i!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:i,name:n,isFatal:e,description:o})}break;default:throw Error(`Unknown schema ${n} in avro progress record.`)}}while(!e.done&&!this.avroPaused)}}class BlobQueryResponse{get acceptRanges(){return this.originalResponse.acceptRanges}get cacheControl(){return this.originalResponse.cacheControl}get contentDisposition(){return this.originalResponse.contentDisposition}get contentEncoding(){return this.originalResponse.contentEncoding}get contentLanguage(){return this.originalResponse.contentLanguage}get blobSequenceNumber(){return this.originalResponse.blobSequenceNumber}get blobType(){return this.originalResponse.blobType}get contentLength(){return this.originalResponse.contentLength}get contentMD5(){return this.originalResponse.contentMD5}get contentRange(){return this.originalResponse.contentRange}get contentType(){return this.originalResponse.contentType}get copyCompletedOn(){return undefined}get copyId(){return this.originalResponse.copyId}get copyProgress(){return this.originalResponse.copyProgress}get copySource(){return this.originalResponse.copySource}get copyStatus(){return this.originalResponse.copyStatus}get copyStatusDescription(){return this.originalResponse.copyStatusDescription}get leaseDuration(){return this.originalResponse.leaseDuration}get leaseState(){return this.originalResponse.leaseState}get leaseStatus(){return this.originalResponse.leaseStatus}get date(){return this.originalResponse.date}get blobCommittedBlockCount(){return this.originalResponse.blobCommittedBlockCount}get etag(){return this.originalResponse.etag}get errorCode(){return this.originalResponse.errorCode}get isServerEncrypted(){return this.originalResponse.isServerEncrypted}get blobContentMD5(){return this.originalResponse.blobContentMD5}get lastModified(){return this.originalResponse.lastModified}get metadata(){return this.originalResponse.metadata}get requestId(){return this.originalResponse.requestId}get clientRequestId(){return this.originalResponse.clientRequestId}get version(){return this.originalResponse.version}get encryptionKeySha256(){return this.originalResponse.encryptionKeySha256}get contentCrc64(){return this.originalResponse.contentCrc64}get blobBody(){return undefined}get readableStreamBody(){return Jn?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}originalResponse;blobDownloadStream;constructor(e,t={}){this.originalResponse=e;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,t)}}var nm;(function(e){e["Hot"]="Hot";e["Cool"]="Cool";e["Cold"]="Cold";e["Archive"]="Archive"})(nm||(nm={}));var sm;(function(e){e["P4"]="P4";e["P6"]="P6";e["P10"]="P10";e["P15"]="P15";e["P20"]="P20";e["P30"]="P30";e["P40"]="P40";e["P50"]="P50";e["P60"]="P60";e["P70"]="P70";e["P80"]="P80"})(sm||(sm={}));function toAccessTier(e){if(e===undefined){return undefined}return e}function ensureCpkIfSpecified(e,t){if(e&&!t){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(e&&!e.encryptionAlgorithm){e.encryptionAlgorithm=ci}}var om;(function(e){e["StorageOAuthScopes"]="https://storage.azure.com/.default";e["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(om||(om={}));function getBlobServiceAccountAudience(e){return`https://${e}.blob.core.windows.net/.default`}function rangeResponseFromModel(e){const t=(e._response.parsedBody.pageRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));const n=(e._response.parsedBody.clearRange||[]).map((e=>({offset:e.start,count:e.end-e.start})));return{...e,pageRange:t,clearRange:n,_response:{...e._response,parsedBody:{pageRange:t,clearRange:n}}}}var im=__nccwpck_require__(5862);class BlobBeginCopyFromUrlPoller extends im.vu{intervalInMs;constructor(e){const{blobClient:t,copySource:n,intervalInMs:o=15e3,onProgress:i,resumeFrom:a,startCopyFromURLOptions:d}=e;let m;if(a){m=JSON.parse(a).state}const h=makeBlobBeginCopyFromURLPollOperation({...m,blobClient:t,copySource:n,startCopyFromURLOptions:d});super(h);if(typeof i==="function"){this.onProgress(i)}this.intervalInMs=o}delay(){return delay_delay(this.intervalInMs)}}const am=async function cancel(e={}){const t=this.state;const{copyId:n}=t;if(t.isCompleted){return makeBlobBeginCopyFromURLPollOperation(t)}if(!n){t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)}await t.blobClient.abortCopyFromURL(n,{abortSignal:e.abortSignal});t.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(t)};const cm=async function update(e={}){const t=this.state;const{blobClient:n,copySource:o,startCopyFromURLOptions:i}=t;if(!t.isStarted){t.isStarted=true;const e=await n.startCopyFromURL(o,i);t.copyId=e.copyId;if(e.copyStatus==="success"){t.result=e;t.isCompleted=true}}else if(!t.isCompleted){try{const n=await t.blobClient.getProperties({abortSignal:e.abortSignal});const{copyStatus:o,copyProgress:i}=n;const a=t.copyProgress;if(i){t.copyProgress=i}if(o==="pending"&&i!==a&&typeof e.fireProgress==="function"){e.fireProgress(t)}else if(o==="success"){t.result=n;t.isCompleted=true}else if(o==="failed"){t.error=new Error(`Blob copy failed with reason: "${n.copyStatusDescription||"unknown"}"`);t.isCompleted=true}}catch(e){t.error=e;t.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(t)};const lm=function toString(){return JSON.stringify({state:this.state},((e,t)=>{if(e==="blobClient"){return undefined}return t}))};function makeBlobBeginCopyFromURLPollOperation(e){return{state:{...e},cancel:am,toString:lm,update:cm}}function rangeToString(e){if(e.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(e.count&&e.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return e.count?`bytes=${e.offset}-${e.offset+e.count-1}`:`bytes=${e.offset}-`}var um;(function(e){e[e["Good"]=0]="Good";e[e["Error"]=1]="Error"})(um||(um={}));class Batch{concurrency;actives=0;completed=0;offset=0;operations=[];state=um.Good;emitter;constructor(e=5){if(e<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=e;this.emitter=new Ce.EventEmitter}addOperation(e){this.operations.push((async()=>{try{this.actives++;await e();this.actives--;this.completed++;this.parallelExecute()}catch(e){this.emitter.emit("error",e)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((e,t)=>{this.emitter.on("finish",e);this.emitter.on("error",(e=>{this.state=um.Error;t(e)}))}))}nextOperation(){if(this.offset<this.operations.length){return this.operations[this.offset++]}return null}parallelExecute(){if(this.state===um.Error){return}if(this.completed>=this.operations.length){this.emitter.emit("finish");return}while(this.actives<this.concurrency){const e=this.nextOperation();if(e){e()}else{return}}}}var dm=__nccwpck_require__(3024);async function streamToBuffer(e,t,n,o,i){let a=0;const d=o-n;return new Promise(((o,m)=>{const h=setTimeout((()=>m(new Error(`The operation cannot be completed in timeout.`))),Wo);e.on("readable",(()=>{if(a>=d){clearTimeout(h);o();return}let m=e.read();if(!m){return}if(typeof m==="string"){m=Buffer.from(m,i)}const f=a+m.length>d?d-a:m.length;t.fill(m.slice(0,f),n+a,n+a+f);a+=f}));e.on("end",(()=>{clearTimeout(h);if(a<d){m(new Error(`Stream drains before getting enough data needed. Data read: ${a}, data need: ${d}`))}o()}));e.on("error",(e=>{clearTimeout(h);m(e)}))}))}async function streamToBuffer2(e,t,n){let o=0;const i=t.length;return new Promise(((a,d)=>{e.on("readable",(()=>{let a=e.read();if(!a){return}if(typeof a==="string"){a=Buffer.from(a,n)}if(o+a.length>i){d(new Error(`Stream exceeds buffer size. Buffer size: ${i}`));return}t.fill(a,o,o+a.length);o+=a.length}));e.on("end",(()=>{a(o)}));e.on("error",d)}))}async function streamToBuffer3(e,t){return new Promise(((n,o)=>{const i=[];e.on("data",(e=>{i.push(typeof e==="string"?Buffer.from(e,t):e)}));e.on("end",(()=>{n(Buffer.concat(i))}));e.on("error",o)}))}async function readStreamToLocalFile(e,t){return new Promise(((n,o)=>{const i=dm.createWriteStream(t);e.on("error",(e=>{o(e)}));i.on("error",(e=>{o(e)}));i.on("close",n);e.pipe(i)}))}const Am=Ar.promisify(dm.stat);const gm=dm.createReadStream;class BlobClient extends StorageClient_StorageClient{blobContext;_name;_containerName;_versionId;_snapshot;get name(){return this._name}get containerName(){return this._containerName}constructor(e,t,n,o){o=o||{};let i;let a;if(isPipelineLike(t)){a=e;i=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){a=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){a=e;if(n&&typeof n!=="string"){o=n}i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const m=n;const h=utils_common_extractConnectionStringParts(e);if(h.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(h.accountName,h.accountKey);a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(h.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m))+"?"+h.accountSas;i=newPipeline(new AnonymousCredential,o)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(a,i);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=this.storageClientContext.blob;this._snapshot=utils_common_getURLParameter(this.url,Xo.Parameters.SNAPSHOT);this._versionId=utils_common_getURLParameter(this.url,Xo.Parameters.VERSIONID)}withSnapshot(e){return new BlobClient(utils_common_setURLParameter(this.url,Xo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}withVersion(e){return new BlobClient(utils_common_setURLParameter(this.url,Xo.Parameters.VERSIONID,e.length===0?undefined:e),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(e=0,t,n={}){n.conditions=n.conditions||{};n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return jA.withSpan("BlobClient-download",n,(async o=>{const i=utils_common_assertResponse(await this.blobContext.download({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onDownloadProgress:Jn?undefined:n.onProgress},range:e===0&&!t?undefined:rangeToString({offset:e,count:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey,tracingOptions:o.tracingOptions}));const a={...i,_response:i._response,objectReplicationDestinationPolicyId:i.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(i.objectReplicationRules)};if(!Jn){return a}if(n.maxRetryRequests===undefined||n.maxRetryRequests<0){n.maxRetryRequests=Jo}if(i.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!i.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(a,(async t=>{const o={leaseAccessConditions:n.conditions,modifiedAccessConditions:{ifMatch:n.conditions.ifMatch||i.etag,ifModifiedSince:n.conditions.ifModifiedSince,ifNoneMatch:n.conditions.ifNoneMatch,ifUnmodifiedSince:n.conditions.ifUnmodifiedSince,ifTags:n.conditions?.tagConditions},range:rangeToString({count:e+i.contentLength-t,offset:t}),rangeGetContentMD5:n.rangeGetContentMD5,rangeGetContentCRC64:n.rangeGetContentCrc64,snapshot:n.snapshot,cpkInfo:n.customerProvidedKey};return(await this.blobContext.download({abortSignal:n.abortSignal,...o})).readableStreamBody}),e,i.contentLength,{maxRetryRequests:n.maxRetryRequests,onProgress:n.onProgress})}))}async exists(e={}){return jA.withSpan("BlobClient-exists",e,(async t=>{try{ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:e.abortSignal,customerProvidedKey:e.customerProvidedKey,conditions:e.conditions,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}else if(e.statusCode===409&&(e.details.errorCode===pi||e.details.errorCode===Ai)){return true}throw e}}))}async getProperties(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return jA.withSpan("BlobClient-getProperties",e,(async t=>{const n=utils_common_assertResponse(await this.blobContext.getProperties({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,tracingOptions:t.tracingOptions}));return{...n,_response:n._response,objectReplicationDestinationPolicyId:n.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(n.objectReplicationRules)}}))}async delete(e={}){e.conditions=e.conditions||{};return jA.withSpan("BlobClient-delete",e,(async t=>utils_common_assertResponse(await this.blobContext.delete({abortSignal:e.abortSignal,deleteSnapshots:e.deleteSnapshots,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return jA.withSpan("BlobClient-deleteIfExists",e,(async e=>{try{const t=utils_common_assertResponse(await this.delete(e));return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="BlobNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async undelete(e={}){return jA.withSpan("BlobClient-undelete",e,(async t=>utils_common_assertResponse(await this.blobContext.undelete({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setHTTPHeaders(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return jA.withSpan("BlobClient-setHTTPHeaders",t,(async n=>utils_common_assertResponse(await this.blobContext.setHttpHeaders({abortSignal:t.abortSignal,blobHttpHeaders:e,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}async setMetadata(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return jA.withSpan("BlobClient-setMetadata",t,(async n=>utils_common_assertResponse(await this.blobContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async setTags(e,t={}){return jA.withSpan("BlobClient-setTags",t,(async n=>utils_common_assertResponse(await this.blobContext.setTags({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},blobModifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions,tags:toBlobTags(e)}))))}async getTags(e={}){return jA.withSpan("BlobClient-getTags",e,(async t=>{const n=utils_common_assertResponse(await this.blobContext.getTags({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},blobModifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={...n,_response:n._response,tags:toTags({blobTagSet:n.blobTagSet})||{}};return o}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async createSnapshot(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return jA.withSpan("BlobClient-createSnapshot",e,(async t=>utils_common_assertResponse(await this.blobContext.createSnapshot({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,tracingOptions:t.tracingOptions}))))}async beginCopyFromURL(e,t={}){const n={abortCopyFromURL:(...e)=>this.abortCopyFromURL(...e),getProperties:(...e)=>this.getProperties(...e),startCopyFromURL:(...e)=>this.startCopyFromURL(...e)};const o=new BlobBeginCopyFromUrlPoller({blobClient:n,copySource:e,intervalInMs:t.intervalInMs,onProgress:t.onProgress,resumeFrom:t.resumeFrom,startCopyFromURLOptions:t});await o.poll();return o}async abortCopyFromURL(e,t={}){return jA.withSpan("BlobClient-abortCopyFromURL",t,(async n=>utils_common_assertResponse(await this.blobContext.abortCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async syncCopyFromURL(e,t={}){t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return jA.withSpan("BlobClient-syncCopyFromURL",t,(async n=>utils_common_assertResponse(await this.blobContext.copyFromURL(e,{abortSignal:t.abortSignal,metadata:t.metadata,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince},sourceContentMD5:t.sourceContentMD5,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,encryptionScope:t.encryptionScope,copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async setAccessTier(e,t={}){return jA.withSpan("BlobClient-setAccessTier",t,(async n=>utils_common_assertResponse(await this.blobContext.setTier(toAccessTier(e),{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},rehydratePriority:t.rehydratePriority,tracingOptions:n.tracingOptions}))))}async downloadToBuffer(e,t,n,o={}){let i;let a=0;let d=0;let m=o;if(e instanceof Buffer){i=e;a=t||0;d=typeof n==="number"?n:0}else{a=typeof e==="number"?e:0;d=typeof t==="number"?t:0;m=n||{}}let h=m.blockSize??0;if(h<0){throw new RangeError("blockSize option must be >= 0")}if(h===0){h=Yo}if(a<0){throw new RangeError("offset option must be >= 0")}if(d&&d<=0){throw new RangeError("count option must be greater than 0")}if(!m.conditions){m.conditions={}}return jA.withSpan("BlobClient-downloadToBuffer",m,(async e=>{if(!d){const t=await this.getProperties({...m,tracingOptions:e.tracingOptions});d=t.contentLength-a;if(d<0){throw new RangeError(`offset ${a} shouldn't be larger than blob size ${t.contentLength}`)}}if(!i){try{i=Buffer.alloc(d)}catch(e){throw new Error(`Unable to allocate the buffer of size: ${d}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${e.message}`)}}if(i.length<d){throw new RangeError(`The buffer's size should be equal to or larger than the request count of bytes: ${d}`)}let t=0;const n=new Batch(m.concurrency);for(let o=a;o<a+d;o=o+h){n.addOperation((async()=>{let n=a+d;if(o+h<n){n=o+h}const f=await this.download(o,n-o,{abortSignal:m.abortSignal,conditions:m.conditions,maxRetryRequests:m.maxRetryRequestsPerBlock,customerProvidedKey:m.customerProvidedKey,tracingOptions:e.tracingOptions});const C=f.readableStreamBody;await streamToBuffer(C,i,o-a,n-a);t+=n-o;if(m.onProgress){m.onProgress({loadedBytes:t})}}))}await n.do();return i}))}async downloadToFile(e,t=0,n,o={}){return jA.withSpan("BlobClient-downloadToFile",o,(async i=>{const a=await this.download(t,n,{...o,tracingOptions:i.tracingOptions});if(a.readableStreamBody){await readStreamToLocalFile(a.readableStreamBody,e)}a.blobDownloadStream=undefined;return a}))}getBlobAndContainerNamesFromUrl(){let e;let t;try{const n=new URL(this.url);if(n.host.split(".")[1]==="blob"){const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}else if(utils_common_isIpEndpointStyle(n)){const o=n.pathname.match("/([^/]*)/([^/]*)(/(.*))?");e=o[2];t=o[4]}else{const o=n.pathname.match("/([^/]*)(/(.*))?");e=o[1];t=o[3]}e=decodeURIComponent(e);t=decodeURIComponent(t);t=t.replace(/\\/g,"/");if(!e){throw new Error("Provided containerName is invalid.")}return{blobName:t,containerName:e}}catch(e){throw new Error("Unable to extract blobName and containerName with provided information.")}}async startCopyFromURL(e,t={}){return jA.withSpan("BlobClient-startCopyFromURL",t,(async n=>{t.conditions=t.conditions||{};t.sourceConditions=t.sourceConditions||{};return utils_common_assertResponse(await this.blobContext.startCopyFromURL(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions.ifMatch,sourceIfModifiedSince:t.sourceConditions.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions.ifUnmodifiedSince,sourceIfTags:t.sourceConditions.tagConditions},immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,rehydratePriority:t.rehydratePriority,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),sealBlob:t.sealBlob,tracingOptions:n.tracingOptions}))}))}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=generateBlobSASQueryParameters({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).toString();n(utils_common_appendToURLQuery(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId,...e},t,this.accountName).stringToSign}async deleteImmutabilityPolicy(e={}){return jA.withSpan("BlobClient-deleteImmutabilityPolicy",e,(async e=>utils_common_assertResponse(await this.blobContext.deleteImmutabilityPolicy({tracingOptions:e.tracingOptions}))))}async setImmutabilityPolicy(e,t={}){return jA.withSpan("BlobClient-setImmutabilityPolicy",t,(async t=>utils_common_assertResponse(await this.blobContext.setImmutabilityPolicy({immutabilityPolicyExpiry:e.expiriesOn,immutabilityPolicyMode:e.policyMode,tracingOptions:t.tracingOptions}))))}async setLegalHold(e,t={}){return jA.withSpan("BlobClient-setLegalHold",t,(async t=>utils_common_assertResponse(await this.blobContext.setLegalHold(e,{tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return jA.withSpan("BlobClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.blobContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}}class AppendBlobClient extends BlobClient{appendBlobContext;constructor(e,t,n,o){let i;let a;o=o||{};if(isPipelineLike(t)){a=e;i=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){a=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){a=e;i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const m=n;const h=utils_common_extractConnectionStringParts(e);if(h.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(h.accountName,h.accountKey);a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(h.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m))+"?"+h.accountSas;i=newPipeline(new AnonymousCredential,o)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(a,i);this.appendBlobContext=this.storageClientContext.appendBlob}withSnapshot(e){return new AppendBlobClient(utils_common_setURLParameter(this.url,Xo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e={}){e.conditions=e.conditions||{};ensureCpkIfSpecified(e.customerProvidedKey,this.isHttps);return jA.withSpan("AppendBlobClient-create",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.create(0,{abortSignal:e.abortSignal,blobHttpHeaders:e.blobHTTPHeaders,leaseAccessConditions:e.conditions,metadata:e.metadata,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},cpkInfo:e.customerProvidedKey,encryptionScope:e.encryptionScope,immutabilityPolicyExpiry:e.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:e.immutabilityPolicy?.policyMode,legalHold:e.legalHold,blobTagsString:toBlobTagsString(e.tags),tracingOptions:t.tracingOptions}))))}async createIfNotExists(e={}){const t={ifNoneMatch:ri};return jA.withSpan("AppendBlobClient-createIfNotExists",e,(async e=>{try{const n=utils_common_assertResponse(await this.create({...e,conditions:t}));return{succeeded:true,...n,_response:n._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async seal(e={}){e.conditions=e.conditions||{};return jA.withSpan("AppendBlobClient-seal",e,(async t=>utils_common_assertResponse(await this.appendBlobContext.seal({abortSignal:e.abortSignal,appendPositionAccessConditions:e.conditions,leaseAccessConditions:e.conditions,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:t.tracingOptions}))))}async appendBlock(e,t,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return jA.withSpan("AppendBlobClient-appendBlock",n,(async o=>utils_common_assertResponse(await this.appendBlobContext.appendBlock(t,e,{abortSignal:n.abortSignal,appendPositionAccessConditions:n.conditions,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},transactionalContentMD5:n.transactionalContentMD5,transactionalContentCrc64:n.transactionalContentCrc64,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async appendBlockFromURL(e,t,n,o={}){o.conditions=o.conditions||{};o.sourceConditions=o.sourceConditions||{};ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return jA.withSpan("AppendBlobClient-appendBlockFromURL",o,(async i=>utils_common_assertResponse(await this.appendBlobContext.appendBlockFromUrl(e,0,{abortSignal:o.abortSignal,sourceRange:rangeToString({offset:t,count:n}),sourceContentMD5:o.sourceContentMD5,sourceContentCrc64:o.sourceContentCrc64,leaseAccessConditions:o.conditions,appendPositionAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:o.sourceConditions?.ifMatch,sourceIfModifiedSince:o.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:o.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:o.sourceConditions?.ifUnmodifiedSince},copySourceAuthorization:utils_common_httpAuthorizationToString(o.sourceAuthorization),cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,fileRequestIntent:o.sourceShareTokenIntent,tracingOptions:i.tracingOptions}))))}}class BlockBlobClient extends BlobClient{_blobContext;blockBlobContext;constructor(e,t,n,o){let i;let a;o=o||{};if(isPipelineLike(t)){a=e;i=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){a=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){a=e;if(n&&typeof n!=="string"){o=n}i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const m=n;const h=utils_common_extractConnectionStringParts(e);if(h.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(h.accountName,h.accountKey);a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(h.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m))+"?"+h.accountSas;i=newPipeline(new AnonymousCredential,o)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(a,i);this.blockBlobContext=this.storageClientContext.blockBlob;this._blobContext=this.storageClientContext.blob}withSnapshot(e){return new BlockBlobClient(utils_common_setURLParameter(this.url,Xo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async query(e,t={}){ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);if(!Jn){throw new Error("This operation currently is only supported in Node.js.")}return jA.withSpan("BlockBlobClient-query",t,(async n=>{const o=utils_common_assertResponse(await this._blobContext.query({abortSignal:t.abortSignal,queryRequest:{queryType:"SQL",expression:e,inputSerialization:toQuerySerialization(t.inputTextConfiguration),outputSerialization:toQuerySerialization(t.outputTextConfiguration)},leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,tracingOptions:n.tracingOptions}));return new BlobQueryResponse(o,{abortSignal:t.abortSignal,onProgress:t.onProgress,onError:t.onError})}))}async upload(e,t,n={}){n.conditions=n.conditions||{};ensureCpkIfSpecified(n.customerProvidedKey,this.isHttps);return jA.withSpan("BlockBlobClient-upload",n,(async o=>utils_common_assertResponse(await this.blockBlobContext.upload(t,e,{abortSignal:n.abortSignal,blobHttpHeaders:n.blobHTTPHeaders,leaseAccessConditions:n.conditions,metadata:n.metadata,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},requestOptions:{onUploadProgress:n.onProgress},cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,immutabilityPolicyExpiry:n.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:n.immutabilityPolicy?.policyMode,legalHold:n.legalHold,tier:toAccessTier(n.tier),blobTagsString:toBlobTagsString(n.tags),tracingOptions:o.tracingOptions}))))}async syncUploadFromURL(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return jA.withSpan("BlockBlobClient-syncUploadFromURL",t,(async n=>utils_common_assertResponse(await this.blockBlobContext.putBlobFromUrl(0,e,{...t,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:t.sourceConditions?.ifMatch,sourceIfModifiedSince:t.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:t.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:t.sourceConditions?.ifUnmodifiedSince,sourceIfTags:t.sourceConditions?.tagConditions},cpkInfo:t.customerProvidedKey,copySourceAuthorization:utils_common_httpAuthorizationToString(t.sourceAuthorization),tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),copySourceTags:t.copySourceTags,fileRequestIntent:t.sourceShareTokenIntent,tracingOptions:n.tracingOptions}))))}async stageBlock(e,t,n,o={}){ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return jA.withSpan("BlockBlobClient-stageBlock",o,(async i=>utils_common_assertResponse(await this.blockBlobContext.stageBlock(e,n,t,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,requestOptions:{onUploadProgress:o.onProgress},transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async stageBlockFromURL(e,t,n=0,o,i={}){ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return jA.withSpan("BlockBlobClient-stageBlockFromURL",i,(async a=>utils_common_assertResponse(await this.blockBlobContext.stageBlockFromURL(e,0,t,{abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,sourceRange:n===0&&!o?undefined:rangeToString({offset:n,count:o}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions}))))}async commitBlockList(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return jA.withSpan("BlockBlobClient-commitBlockList",t,(async n=>utils_common_assertResponse(await this.blockBlobContext.commitBlockList({latest:e},{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:n.tracingOptions}))))}async getBlockList(e,t={}){return jA.withSpan("BlockBlobClient-getBlockList",t,(async n=>{const o=utils_common_assertResponse(await this.blockBlobContext.getBlockList(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}));if(!o.committedBlocks){o.committedBlocks=[]}if(!o.uncommittedBlocks){o.uncommittedBlocks=[]}return o}))}async uploadData(e,t={}){return jA.withSpan("BlockBlobClient-uploadData",t,(async t=>{if(Jn){let n;if(e instanceof Buffer){n=e}else if(e instanceof ArrayBuffer){n=Buffer.from(e)}else{e=e;n=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.byteLength,t)}else{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}}))}async uploadBrowserData(e,t={}){return jA.withSpan("BlockBlobClient-uploadBrowserData",t,(async t=>{const n=new Blob([e]);return this.uploadSeekableInternal(((e,t)=>n.slice(e,e+t)),n.size,t)}))}async uploadSeekableInternal(e,t,n={}){let o=n.blockSize??0;if(o<0||o>zo){throw new RangeError(`blockSize option must be >= 0 and <= ${zo}`)}const i=n.maxSingleShotSize??qo;if(i<0||i>qo){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${qo}`)}if(o===0){if(t>zo*Vo){throw new RangeError(`${t} is too larger to upload to a block blob.`)}if(t>i){o=Math.ceil(t/Vo);if(o<Yo){o=Yo}}}if(!n.blobHTTPHeaders){n.blobHTTPHeaders={}}if(!n.conditions){n.conditions={}}return jA.withSpan("BlockBlobClient-uploadSeekableInternal",n,(async a=>{if(t<=i){return utils_common_assertResponse(await this.upload(e(0,t),t,a))}const d=Math.floor((t-1)/o)+1;if(d>Vo){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${Vo}`)}const m=[];const h=esm_randomUUID();let f=0;const C=new Batch(n.concurrency);for(let i=0;i<d;i++){C.addOperation((async()=>{const C=utils_common_generateBlockID(h,i);const P=o*i;const D=i===d-1?t:P+o;const k=D-P;m.push(C);await this.stageBlock(C,e(P,k),k,{abortSignal:n.abortSignal,conditions:n.conditions,encryptionScope:n.encryptionScope,tracingOptions:a.tracingOptions});f+=k;if(n.onProgress){n.onProgress({loadedBytes:f})}}))}await C.do();return this.commitBlockList(m,a)}))}async uploadFile(e,t={}){return jA.withSpan("BlockBlobClient-uploadFile",t,(async n=>{const o=(await Am(e)).size;return this.uploadSeekableInternal(((t,n)=>()=>gm(e,{autoClose:true,end:n?t+n-1:Infinity,start:t})),o,{...t,tracingOptions:n.tracingOptions})}))}async uploadStream(e,t=jo,n=5,o={}){if(!o.blobHTTPHeaders){o.blobHTTPHeaders={}}if(!o.conditions){o.conditions={}}return jA.withSpan("BlockBlobClient-uploadStream",o,(async i=>{let a=0;const d=esm_randomUUID();let m=0;const h=[];const f=new BufferScheduler(e,t,n,(async(e,t)=>{const n=utils_common_generateBlockID(d,a);h.push(n);a++;await this.stageBlock(n,e,t,{customerProvidedKey:o.customerProvidedKey,conditions:o.conditions,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions});m+=t;if(o.onProgress){o.onProgress({loadedBytes:m})}}),Math.ceil(n/4*3));await f.do();return utils_common_assertResponse(await this.commitBlockList(h,{...o,tracingOptions:i.tracingOptions}))}))}}class PageBlobClient extends BlobClient{pageBlobContext;constructor(e,t,n,o){let i;let a;o=o||{};if(isPipelineLike(t)){a=e;i=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){a=e;o=n;i=newPipeline(t,o)}else if(!t&&typeof t!=="string"){a=e;i=newPipeline(new AnonymousCredential,o)}else if(t&&typeof t==="string"&&n&&typeof n==="string"){const d=t;const m=n;const h=utils_common_extractConnectionStringParts(e);if(h.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(h.accountName,h.accountKey);a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m));if(!o.proxyOptions){o.proxyOptions=proxyPolicy_getDefaultProxySettings(h.proxyUri)}i=newPipeline(e,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(h.kind==="SASConnString"){a=utils_common_appendToURLPath(utils_common_appendToURLPath(h.url,encodeURIComponent(d)),encodeURIComponent(m))+"?"+h.accountSas;i=newPipeline(new AnonymousCredential,o)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName and blobName parameters")}super(a,i);this.pageBlobContext=this.storageClientContext.pageBlob}withSnapshot(e){return new PageBlobClient(utils_common_setURLParameter(this.url,Xo.Parameters.SNAPSHOT,e.length===0?undefined:e),this.pipeline)}async create(e,t={}){t.conditions=t.conditions||{};ensureCpkIfSpecified(t.customerProvidedKey,this.isHttps);return jA.withSpan("PageBlobClient-create",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.create(0,e,{abortSignal:t.abortSignal,blobHttpHeaders:t.blobHTTPHeaders,blobSequenceNumber:t.blobSequenceNumber,leaseAccessConditions:t.conditions,metadata:t.metadata,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},cpkInfo:t.customerProvidedKey,encryptionScope:t.encryptionScope,immutabilityPolicyExpiry:t.immutabilityPolicy?.expiriesOn,immutabilityPolicyMode:t.immutabilityPolicy?.policyMode,legalHold:t.legalHold,tier:toAccessTier(t.tier),blobTagsString:toBlobTagsString(t.tags),tracingOptions:n.tracingOptions}))))}async createIfNotExists(e,t={}){return jA.withSpan("PageBlobClient-createIfNotExists",t,(async n=>{try{const o={ifNoneMatch:ri};const i=utils_common_assertResponse(await this.create(e,{...t,conditions:o,tracingOptions:n.tracingOptions}));return{succeeded:true,...i,_response:i._response}}catch(e){if(e.details?.errorCode==="BlobAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async uploadPages(e,t,n,o={}){o.conditions=o.conditions||{};ensureCpkIfSpecified(o.customerProvidedKey,this.isHttps);return jA.withSpan("PageBlobClient-uploadPages",o,(async i=>utils_common_assertResponse(await this.pageBlobContext.uploadPages(n,e,{abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},requestOptions:{onUploadProgress:o.onProgress},range:rangeToString({offset:t,count:n}),sequenceNumberAccessConditions:o.conditions,transactionalContentMD5:o.transactionalContentMD5,transactionalContentCrc64:o.transactionalContentCrc64,cpkInfo:o.customerProvidedKey,encryptionScope:o.encryptionScope,tracingOptions:i.tracingOptions}))))}async uploadPagesFromURL(e,t,n,o,i={}){i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return jA.withSpan("PageBlobClient-uploadPagesFromURL",i,(async a=>utils_common_assertResponse(await this.pageBlobContext.uploadPagesFromURL(e,rangeToString({offset:t,count:o}),0,rangeToString({offset:n,count:o}),{abortSignal:i.abortSignal,sourceContentMD5:i.sourceContentMD5,sourceContentCrc64:i.sourceContentCrc64,leaseAccessConditions:i.conditions,sequenceNumberAccessConditions:i.conditions,modifiedAccessConditions:{...i.conditions,ifTags:i.conditions?.tagConditions},sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions?.ifMatch,sourceIfModifiedSince:i.sourceConditions?.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions?.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions?.ifUnmodifiedSince},cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,copySourceAuthorization:utils_common_httpAuthorizationToString(i.sourceAuthorization),fileRequestIntent:i.sourceShareTokenIntent,tracingOptions:a.tracingOptions}))))}async clearPages(e=0,t,n={}){n.conditions=n.conditions||{};return jA.withSpan("PageBlobClient-clearPages",n,(async o=>utils_common_assertResponse(await this.pageBlobContext.clearPages(0,{abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),sequenceNumberAccessConditions:n.conditions,cpkInfo:n.customerProvidedKey,encryptionScope:n.encryptionScope,tracingOptions:o.tracingOptions}))))}async getPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};return jA.withSpan("PageBlobClient-getPageRanges",n,(async o=>{const i=utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:n.abortSignal,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),tracingOptions:o.tracingOptions}));return rangeResponseFromModel(i)}))}async listPageRangesSegment(e=0,t,n,o={}){return jA.withSpan("PageBlobClient-getPageRangesSegment",o,(async i=>utils_common_assertResponse(await this.pageBlobContext.getPageRanges({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},range:rangeToString({offset:e,count:t}),marker:n,maxPageSize:o.maxPageSize,tracingOptions:i.tracingOptions}))))}async*listPageRangeItemSegments(e=0,t,n,o={}){let i;if(!!n||n===undefined){do{i=await this.listPageRangesSegment(e,t,n,o);n=i.continuationToken;yield await i}while(n)}}async*listPageRangeItems(e=0,t,n={}){let o;for await(const i of this.listPageRangeItemSegments(e,t,o,n)){yield*ExtractPageRangeInfoItems(i)}}listPageRanges(e=0,t,n={}){n.conditions=n.conditions||{};const o=this.listPageRangeItems(e,t,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(o={})=>this.listPageRangeItemSegments(e,t,o.continuationToken,{maxPageSize:o.maxPageSize,...n})}}async getPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};return jA.withSpan("PageBlobClient-getPageRangesDiff",o,(async i=>{const a=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevsnapshot:n,range:rangeToString({offset:e,count:t}),tracingOptions:i.tracingOptions}));return rangeResponseFromModel(a)}))}async listPageRangesDiffSegment(e,t,n,o,i={}){return jA.withSpan("PageBlobClient-getPageRangesDiffSegment",i,(async a=>utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:i?.abortSignal,leaseAccessConditions:i?.conditions,modifiedAccessConditions:{...i?.conditions,ifTags:i?.conditions?.tagConditions},prevsnapshot:n,range:rangeToString({offset:e,count:t}),marker:o,maxPageSize:i?.maxPageSize,tracingOptions:a.tracingOptions}))))}async*listPageRangeDiffItemSegments(e,t,n,o,i){let a;if(!!o||o===undefined){do{a=await this.listPageRangesDiffSegment(e,t,n,o,i);o=a.continuationToken;yield await a}while(o)}}async*listPageRangeDiffItems(e,t,n,o){let i;for await(const a of this.listPageRangeDiffItemSegments(e,t,n,i,o)){yield*ExtractPageRangeInfoItems(a)}}listPageRangesDiff(e,t,n,o={}){o.conditions=o.conditions||{};const i=this.listPageRangeDiffItems(e,t,n,{...o});return{next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listPageRangeDiffItemSegments(e,t,n,i.continuationToken,{maxPageSize:i.maxPageSize,...o})}}async getPageRangesDiffForManagedDisks(e,t,n,o={}){o.conditions=o.conditions||{};return jA.withSpan("PageBlobClient-GetPageRangesDiffForManagedDisks",o,(async i=>{const a=utils_common_assertResponse(await this.pageBlobContext.getPageRangesDiff({abortSignal:o.abortSignal,leaseAccessConditions:o.conditions,modifiedAccessConditions:{...o.conditions,ifTags:o.conditions?.tagConditions},prevSnapshotUrl:n,range:rangeToString({offset:e,count:t}),tracingOptions:i.tracingOptions}));return rangeResponseFromModel(a)}))}async resize(e,t={}){t.conditions=t.conditions||{};return jA.withSpan("PageBlobClient-resize",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.resize(e,{abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},encryptionScope:t.encryptionScope,tracingOptions:n.tracingOptions}))))}async updateSequenceNumber(e,t,n={}){n.conditions=n.conditions||{};return jA.withSpan("PageBlobClient-updateSequenceNumber",n,(async o=>utils_common_assertResponse(await this.pageBlobContext.updateSequenceNumber(e,{abortSignal:n.abortSignal,blobSequenceNumber:t,leaseAccessConditions:n.conditions,modifiedAccessConditions:{...n.conditions,ifTags:n.conditions?.tagConditions},tracingOptions:o.tracingOptions}))))}async startCopyIncremental(e,t={}){return jA.withSpan("PageBlobClient-startCopyIncremental",t,(async n=>utils_common_assertResponse(await this.pageBlobContext.copyIncremental(e,{abortSignal:t.abortSignal,modifiedAccessConditions:{...t.conditions,ifTags:t.conditions?.tagConditions},tracingOptions:n.tracingOptions}))))}}async function getBodyAsText(e){let t=Buffer.alloc(oi);const n=await streamToBuffer2(e.readableStreamBody,t);t=t.slice(0,n);return t.toString()}function utf8ByteLength(e){return Buffer.byteLength(e)}const hm=": ";const fm=" ";const ym=-1;class BatchResponseParser{batchResponse;responseBatchBoundary;perResponsePrefix;batchResponseEnding;subRequests;constructor(e,t){if(!e||!e.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!t||t.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=e;this.subRequests=t;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${ii}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Zo.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const e=await getBodyAsText(this.batchResponse);const t=e.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const n=t.length;if(n!==this.subRequests.size&&n!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const o=new Array(n);let i=0;let a=0;for(let e=0;e<n;e++){const n=t[e];const d={};d.headers=toHttpHeadersLike(esm_httpHeaders_createHttpHeaders());const m=n.split(`${ii}`);let h=false;let f=false;let C=false;let P=ym;for(const e of m){if(!h){if(e.startsWith(ei.CONTENT_ID)){P=parseInt(e.split(hm)[1])}if(e.startsWith(ai)){h=true;const t=e.split(fm);d.status=parseInt(t[1]);d.statusMessage=t.slice(2).join(fm)}continue}if(e.trim()===""){if(!f){f=true}continue}if(!f){if(e.indexOf(hm)===-1){throw new Error(`Invalid state: find non-empty line '${e}' without HTTP header delimiter '${hm}'.`)}const t=e.split(hm);d.headers.set(t[0],t[1]);if(t[0]===ei.X_MS_ERROR_CODE){d.errorCode=t[1];C=true}}else{if(!d.bodyAsText){d.bodyAsText=""}d.bodyAsText+=e}}if(P!==ym&&Number.isInteger(P)&&P>=0&&P<this.subRequests.size&&o[P]===undefined){d._request=this.subRequests.get(P);o[P]=d}else{yo.error(`subResponses[${e}] is dropped as the Content-ID is not found or invalid, Content-ID: ${P}`)}if(C){a++}else{i++}}return{subResponses:o,subResponsesSucceededCount:i,subResponsesFailedCount:a}}}var Em;(function(e){e[e["LOCKED"]=0]="LOCKED";e[e["UNLOCKED"]=1]="UNLOCKED"})(Em||(Em={}));class Mutex{static async lock(e){return new Promise((t=>{if(this.keys[e]===undefined||this.keys[e]===Em.UNLOCKED){this.keys[e]=Em.LOCKED;t()}else{this.onUnlockEvent(e,(()=>{this.keys[e]=Em.LOCKED;t()}))}}))}static async unlock(e){return new Promise((t=>{if(this.keys[e]===Em.LOCKED){this.emitUnlockEvent(e)}delete this.keys[e];t()}))}static keys={};static listeners={};static onUnlockEvent(e,t){if(this.listeners[e]===undefined){this.listeners[e]=[t]}else{this.listeners[e].push(t)}}static emitUnlockEvent(e){if(this.listeners[e]!==undefined&&this.listeners[e].length>0){const t=this.listeners[e].shift();setImmediate((()=>{t.call(this)}))}}}class BlobBatch{batchRequest;batch="batch";batchType;constructor(){this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(e,t){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(e);await t();this.batchRequest.postAddSubRequest(e)}finally{await Mutex.unlock(this.batch)}}setBatchType(e){if(!this.batchType){this.batchType=e}if(this.batchType!==e){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(e,t,n){let o;let i;if(typeof e==="string"&&(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){o=e;i=t}else if(e instanceof BlobClient){o=e.url;i=e.credential;n=t}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!n){n={}}return jA.withSpan("BatchDeleteRequest-addSubRequest",n,(async e=>{this.setBatchType("delete");await this.addSubRequestInternal({url:o,credential:i},(async()=>{await new BlobClient(o,this.batchRequest.createPipeline(i)).delete(e)}))}))}async setBlobAccessTier(e,t,n,o){let i;let a;let d;if(typeof e==="string"&&(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t))){i=e;a=t;d=n}else if(e instanceof BlobClient){i=e.url;a=e.credential;d=t;o=n}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!o){o={}}return jA.withSpan("BatchSetTierRequest-addSubRequest",o,(async e=>{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:i,credential:a},(async()=>{await new BlobClient(i,this.batchRequest.createPipeline(a)).setAccessTier(d,e)}))}))}}class InnerBatchRequest{operationCount;body;subRequests;boundary;subRequestPrefix;multipartContentType;batchRequestEnding;constructor(){this.operationCount=0;this.body="";const e=esm_randomUUID();this.boundary=`batch_${e}`;this.subRequestPrefix=`--${this.boundary}${ii}${ei.CONTENT_TYPE}: application/http${ii}${ei.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(e){const t=esm_pipeline_createEmptyPipeline();t.addPolicy(serializationPolicy({stringifyXML:stringifyXML,serializerOptions:{xml:{xmlCharKey:"#"}}}),{phase:"Serialize"});t.addPolicy(batchHeaderFilterPolicy());t.addPolicy(batchRequestAssemblePolicy(this),{afterPhase:"Sign"});if(isTokenCredential(e)){t.addPolicy(bearerTokenAuthenticationPolicy({credential:e,scopes:Ko,challengeCallbacks:{authorizeRequestOnChallenge:authorizeRequestOnTenantChallenge}}),{phase:"Sign"})}else if(e instanceof StorageSharedKeyCredential){t.addPolicy(storageSharedKeyCredentialPolicy({accountName:e.accountName,accountKey:e.accountKey}),{phase:"Sign"})}const n=new Pipeline([]);n._credential=e;n._corePipeline=t;return n}appendSubRequestToBody(e){this.body+=[this.subRequestPrefix,`${ei.CONTENT_ID}: ${this.operationCount}`,"",`${e.method.toString()} ${utils_common_getURLPathAndQuery(e.url)} ${ai}${ii}`].join(ii);for(const[t,n]of e.headers){this.body+=`${t}: ${n}${ii}`}this.body+=ii}preAddSubRequest(e){if(this.operationCount>=si){throw new RangeError(`Cannot exceed ${si} sub requests in a single batch`)}const t=utils_common_getURLPath(e.url);if(!t||t===""){throw new RangeError(`Invalid url for sub request: '${e.url}'`)}}postAddSubRequest(e){this.subRequests.set(this.operationCount,e);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${ii}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}function batchRequestAssemblePolicy(e){return{name:"batchRequestAssemblePolicy",async sendRequest(t){e.appendSubRequestToBody(t);return{request:t,status:200,headers:esm_httpHeaders_createHttpHeaders()}}}}function batchHeaderFilterPolicy(){return{name:"batchHeaderFilterPolicy",async sendRequest(e,t){let n="";for(const[t]of e.headers){if(utils_common_iEqual(t,ei.X_MS_VERSION)){n=t}}if(n!==""){e.headers.delete(n)}return t(e)}}}class BlobBatchClient{serviceOrContainerContext;constructor(e,t,n){let o;if(isPipelineLike(t)){o=t}else if(!t){o=newPipeline(new AnonymousCredential,n)}else{o=newPipeline(t,n)}const i=new StorageContextClient(e,getCoreClientOptions(o));const a=utils_common_getURLPath(e);if(a&&a!=="/"){this.serviceOrContainerContext=i.container}else{this.serviceOrContainerContext=i.service}}createBatch(){return new BlobBatch}async deleteBlobs(e,t,n){const o=new BlobBatch;for(const i of e){if(typeof i==="string"){await o.deleteBlob(i,t,n)}else{await o.deleteBlob(i,t)}}return this.submitBatch(o)}async setBlobsAccessTier(e,t,n,o){const i=new BlobBatch;for(const a of e){if(typeof a==="string"){await i.setBlobAccessTier(a,t,n,o)}else{await i.setBlobAccessTier(a,t,n)}}return this.submitBatch(i)}async submitBatch(e,t={}){if(!e||e.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}return jA.withSpan("BlobBatchClient-submitBatch",t,(async t=>{const n=e.getHttpRequestBody();const o=utils_common_assertResponse(await this.serviceOrContainerContext.submitBatch(utf8ByteLength(n),e.getMultiPartContentType(),n,{...t}));const i=new BatchResponseParser(o,e.getSubRequests());const a=await i.parseBatchResponse();const d={_response:o._response,contentType:o.contentType,errorCode:o.errorCode,requestId:o.requestId,clientRequestId:o.clientRequestId,version:o.version,subResponses:a.subResponses,subResponsesSucceededCount:a.subResponsesSucceededCount,subResponsesFailedCount:a.subResponsesFailedCount};return d}))}}class ContainerClient extends StorageClient_StorageClient{containerContext;_containerName;get containerName(){return this._containerName}constructor(e,t,n){let o;let i;n=n||{};if(isPipelineLike(t)){i=e;o=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){i=e;o=newPipeline(t,n)}else if(!t&&typeof t!=="string"){i=e;o=newPipeline(new AnonymousCredential,n)}else if(t&&typeof t==="string"){const a=t;const d=utils_common_extractConnectionStringParts(e);if(d.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(d.accountName,d.accountKey);i=utils_common_appendToURLPath(d.url,encodeURIComponent(a));if(!n.proxyOptions){n.proxyOptions=proxyPolicy_getDefaultProxySettings(d.proxyUri)}o=newPipeline(e,n)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(d.kind==="SASConnString"){i=utils_common_appendToURLPath(d.url,encodeURIComponent(a))+"?"+d.accountSas;o=newPipeline(new AnonymousCredential,n)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(i,o);this._containerName=this.getContainerNameFromUrl();this.containerContext=this.storageClientContext.container}async create(e={}){return jA.withSpan("ContainerClient-create",e,(async e=>utils_common_assertResponse(await this.containerContext.create(e))))}async createIfNotExists(e={}){return jA.withSpan("ContainerClient-createIfNotExists",e,(async e=>{try{const t=await this.create(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerAlreadyExists"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}else{throw e}}}))}async exists(e={}){return jA.withSpan("ContainerClient-exists",e,(async t=>{try{await this.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions});return true}catch(e){if(e.statusCode===404){return false}throw e}}))}getBlobClient(e){return new BlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getAppendBlobClient(e){return new AppendBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getBlockBlobClient(e){return new BlockBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}getPageBlobClient(e){return new PageBlobClient(utils_common_appendToURLPath(this.url,utils_common_EscapePath(e)),this.pipeline)}async getProperties(e={}){if(!e.conditions){e.conditions={}}return jA.withSpan("ContainerClient-getProperties",e,(async t=>utils_common_assertResponse(await this.containerContext.getProperties({abortSignal:e.abortSignal,...e.conditions,tracingOptions:t.tracingOptions}))))}async delete(e={}){if(!e.conditions){e.conditions={}}return jA.withSpan("ContainerClient-delete",e,(async t=>utils_common_assertResponse(await this.containerContext.delete({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,modifiedAccessConditions:e.conditions,tracingOptions:t.tracingOptions}))))}async deleteIfExists(e={}){return jA.withSpan("ContainerClient-deleteIfExists",e,(async e=>{try{const t=await this.delete(e);return{succeeded:true,...t,_response:t._response}}catch(e){if(e.details?.errorCode==="ContainerNotFound"){return{succeeded:false,...e.response?.parsedHeaders,_response:e.response}}throw e}}))}async setMetadata(e,t={}){if(!t.conditions){t.conditions={}}if(t.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}return jA.withSpan("ContainerClient-setMetadata",t,(async n=>utils_common_assertResponse(await this.containerContext.setMetadata({abortSignal:t.abortSignal,leaseAccessConditions:t.conditions,metadata:e,modifiedAccessConditions:t.conditions,tracingOptions:n.tracingOptions}))))}async getAccessPolicy(e={}){if(!e.conditions){e.conditions={}}return jA.withSpan("ContainerClient-getAccessPolicy",e,(async t=>{const n=utils_common_assertResponse(await this.containerContext.getAccessPolicy({abortSignal:e.abortSignal,leaseAccessConditions:e.conditions,tracingOptions:t.tracingOptions}));const o={_response:n._response,blobPublicAccess:n.blobPublicAccess,date:n.date,etag:n.etag,errorCode:n.errorCode,lastModified:n.lastModified,requestId:n.requestId,clientRequestId:n.clientRequestId,signedIdentifiers:[],version:n.version};for(const e of n){let t=undefined;if(e.accessPolicy){t={permissions:e.accessPolicy.permissions};if(e.accessPolicy.expiresOn){t.expiresOn=new Date(e.accessPolicy.expiresOn)}if(e.accessPolicy.startsOn){t.startsOn=new Date(e.accessPolicy.startsOn)}}o.signedIdentifiers.push({accessPolicy:t,id:e.id})}return o}))}async setAccessPolicy(e,t,n={}){n.conditions=n.conditions||{};return jA.withSpan("ContainerClient-setAccessPolicy",n,(async o=>{const i=[];for(const e of t||[]){i.push({accessPolicy:{expiresOn:e.accessPolicy.expiresOn?utils_common_truncatedISO8061Date(e.accessPolicy.expiresOn):"",permissions:e.accessPolicy.permissions,startsOn:e.accessPolicy.startsOn?utils_common_truncatedISO8061Date(e.accessPolicy.startsOn):""},id:e.id})}return utils_common_assertResponse(await this.containerContext.setAccessPolicy({abortSignal:n.abortSignal,access:e,containerAcl:i,leaseAccessConditions:n.conditions,modifiedAccessConditions:n.conditions,tracingOptions:o.tracingOptions}))}))}getBlobLeaseClient(e){return new BlobLeaseClient(this,e)}async uploadBlockBlob(e,t,n,o={}){return jA.withSpan("ContainerClient-uploadBlockBlob",o,(async o=>{const i=this.getBlockBlobClient(e);const a=await i.upload(t,n,o);return{blockBlobClient:i,response:a}}))}async deleteBlob(e,t={}){return jA.withSpan("ContainerClient-deleteBlob",t,(async n=>{let o=this.getBlobClient(e);if(t.versionId){o=o.withVersion(t.versionId)}return o.delete(n)}))}async listBlobFlatSegment(e,t={}){return jA.withSpan("ContainerClient-listBlobFlatSegment",t,(async n=>{const o=utils_common_assertResponse(await this.containerContext.listBlobFlatSegment({marker:e,...t,tracingOptions:n.tracingOptions}));const i={...o,_response:{...o._response,parsedBody:ConvertInternalResponseOfListBlobFlat(o._response.parsedBody)},segment:{...o.segment,blobItems:o.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t}))}};return i}))}async listBlobHierarchySegment(e,t,n={}){return jA.withSpan("ContainerClient-listBlobHierarchySegment",n,(async o=>{const i=utils_common_assertResponse(await this.containerContext.listBlobHierarchySegment(e,{marker:t,...n,tracingOptions:o.tracingOptions}));const a={...i,_response:{...i._response,parsedBody:ConvertInternalResponseOfListBlobHierarchy(i._response.parsedBody)},segment:{...i.segment,blobItems:i.segment.blobItems.map((e=>{const t={...e,name:BlobNameToString(e.name),tags:toTags(e.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(e.objectReplicationMetadata)};return t})),blobPrefixes:i.segment.blobPrefixes?.map((e=>{const t={...e,name:BlobNameToString(e.name)};return t}))}};return a}))}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listBlobFlatSegment(e,t);e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.segment.blobItems}}listBlobsFlat(e={}){const t=[];if(e.includeCopy){t.push("copy")}if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSnapshots){t.push("snapshots")}if(e.includeVersions){t.push("versions")}if(e.includeUncommitedBlobs){t.push("uncommittedblobs")}if(e.includeTags){t.push("tags")}if(e.includeDeletedWithVersions){t.push("deletedwithversions")}if(e.includeImmutabilityPolicy){t.push("immutabilitypolicy")}if(e.includeLegalHold){t.push("legalhold")}if(e.prefix===""){e.prefix=undefined}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async*listHierarchySegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.listBlobHierarchySegment(e,t,n);t=o.continuationToken;yield await o}while(t)}}async*listItemsByHierarchy(e,t={}){let n;for await(const o of this.listHierarchySegments(e,n,t)){const e=o.segment;if(e.blobPrefixes){for(const t of e.blobPrefixes){yield{kind:"prefix",...t}}}for(const t of e.blobItems){yield{kind:"blob",...t}}}}listBlobsByHierarchy(e,t={}){if(e===""){throw new RangeError("delimiter should contain one or more characters")}const n=[];if(t.includeCopy){n.push("copy")}if(t.includeDeleted){n.push("deleted")}if(t.includeMetadata){n.push("metadata")}if(t.includeSnapshots){n.push("snapshots")}if(t.includeVersions){n.push("versions")}if(t.includeUncommitedBlobs){n.push("uncommittedblobs")}if(t.includeTags){n.push("tags")}if(t.includeDeletedWithVersions){n.push("deletedwithversions")}if(t.includeImmutabilityPolicy){n.push("immutabilitypolicy")}if(t.includeLegalHold){n.push("legalhold")}if(t.prefix===""){t.prefix=undefined}const o={...t,...n.length>0?{include:n}:{}};const i=this.listItemsByHierarchy(e,o);return{async next(){return i.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.listHierarchySegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...o})}}async findBlobsByTagsSegment(e,t,n={}){return jA.withSpan("ContainerClient-findBlobsByTagsSegment",n,(async o=>{const i=utils_common_assertResponse(await this.containerContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const a={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return a}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async getAccountInfo(e={}){return jA.withSpan("ContainerClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.containerContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}getContainerNameFromUrl(){let e;try{const t=new URL(this.url);if(t.hostname.split(".")[1]==="blob"){e=t.pathname.split("/")[1]}else if(utils_common_isIpEndpointStyle(t)){e=t.pathname.split("/")[2]}else{e=t.pathname.split("/")[1]}e=decodeURIComponent(e);if(!e){throw new Error("Provided containerName is invalid.")}return e}catch(e){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(e){return new Promise((t=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const n=generateBlobSASQueryParameters({containerName:this._containerName,...e},this.credential).toString();t(utils_common_appendToURLQuery(this.url,n))}))}generateSasStringToSign(e){if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},this.credential).stringToSign}generateUserDelegationSasUrl(e,t){return new Promise((n=>{const o=generateBlobSASQueryParameters({containerName:this._containerName,...e},t,this.accountName).toString();n(utils_common_appendToURLQuery(this.url,o))}))}generateUserDelegationSasStringToSign(e,t){return generateBlobSASQueryParametersInternal({containerName:this._containerName,...e},t,this.accountName).stringToSign}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{static parse(e){const t=new AccountSASPermissions;for(const n of e){switch(n){case"r":t.read=true;break;case"w":t.write=true;break;case"d":t.delete=true;break;case"x":t.deleteVersion=true;break;case"l":t.list=true;break;case"a":t.add=true;break;case"c":t.create=true;break;case"u":t.update=true;break;case"p":t.process=true;break;case"t":t.tag=true;break;case"f":t.filter=true;break;case"i":t.setImmutabilityPolicy=true;break;case"y":t.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${n}`)}}return t}static from(e){const t=new AccountSASPermissions;if(e.read){t.read=true}if(e.write){t.write=true}if(e.delete){t.delete=true}if(e.deleteVersion){t.deleteVersion=true}if(e.filter){t.filter=true}if(e.tag){t.tag=true}if(e.list){t.list=true}if(e.add){t.add=true}if(e.create){t.create=true}if(e.update){t.update=true}if(e.process){t.process=true}if(e.setImmutabilityPolicy){t.setImmutabilityPolicy=true}if(e.permanentDelete){t.permanentDelete=true}return t}read=false;write=false;delete=false;deleteVersion=false;list=false;add=false;create=false;update=false;process=false;tag=false;filter=false;setImmutabilityPolicy=false;permanentDelete=false;toString(){const e=[];if(this.read){e.push("r")}if(this.write){e.push("w")}if(this.delete){e.push("d")}if(this.deleteVersion){e.push("x")}if(this.filter){e.push("f")}if(this.tag){e.push("t")}if(this.list){e.push("l")}if(this.add){e.push("a")}if(this.create){e.push("c")}if(this.update){e.push("u")}if(this.process){e.push("p")}if(this.setImmutabilityPolicy){e.push("i")}if(this.permanentDelete){e.push("y")}return e.join("")}}class AccountSASResourceTypes{static parse(e){const t=new AccountSASResourceTypes;for(const n of e){switch(n){case"s":t.service=true;break;case"c":t.container=true;break;case"o":t.object=true;break;default:throw new RangeError(`Invalid resource type: ${n}`)}}return t}service=false;container=false;object=false;toString(){const e=[];if(this.service){e.push("s")}if(this.container){e.push("c")}if(this.object){e.push("o")}return e.join("")}}class AccountSASServices{static parse(e){const t=new AccountSASServices;for(const n of e){switch(n){case"b":t.blob=true;break;case"f":t.file=true;break;case"q":t.queue=true;break;case"t":t.table=true;break;default:throw new RangeError(`Invalid service character: ${n}`)}}return t}blob=false;file=false;queue=false;table=false;toString(){const e=[];if(this.blob){e.push("b")}if(this.table){e.push("t")}if(this.queue){e.push("q")}if(this.file){e.push("f")}return e.join("")}}function generateAccountSASQueryParameters(e,t){return generateAccountSASQueryParametersInternal(e,t).sasQueryParameters}function generateAccountSASQueryParametersInternal(e,t){const n=e.version?e.version:Go;if(e.permissions&&e.permissions.setImmutabilityPolicy&&n<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(e.permissions&&e.permissions.deleteVersion&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(e.permissions&&e.permissions.permanentDelete&&n<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(e.permissions&&e.permissions.tag&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(e.permissions&&e.permissions.filter&&n<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(e.encryptionScope&&n<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const o=AccountSASPermissions.parse(e.permissions.toString());const i=AccountSASServices.parse(e.services).toString();const a=AccountSASResourceTypes.parse(e.resourceTypes).toString();let d;if(n>="2020-12-06"){d=[t.accountName,o,i,a,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",n,e.encryptionScope?e.encryptionScope:"",""].join("\n")}else{d=[t.accountName,o,i,a,e.startsOn?utils_common_truncatedISO8061Date(e.startsOn,false):"",utils_common_truncatedISO8061Date(e.expiresOn,false),e.ipRange?ipRangeToString(e.ipRange):"",e.protocol?e.protocol:"",n,""].join("\n")}const m=t.computeHMACSHA256(d);return{sasQueryParameters:new SASQueryParameters(n,m,o.toString(),i,a,e.protocol,e.startsOn,e.expiresOn,e.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,e.encryptionScope),stringToSign:d}}class BlobServiceClient extends StorageClient_StorageClient{serviceContext;static fromConnectionString(e,t){t=t||{};const n=utils_common_extractConnectionStringParts(e);if(n.kind==="AccountConnString"){if(Jn){const e=new StorageSharedKeyCredential(n.accountName,n.accountKey);if(!t.proxyOptions){t.proxyOptions=proxyPolicy_getDefaultProxySettings(n.proxyUri)}const o=newPipeline(e,t);return new BlobServiceClient(n.url,o)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(n.kind==="SASConnString"){const e=newPipeline(new AnonymousCredential,t);return new BlobServiceClient(n.url+"?"+n.accountSas,e)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}constructor(e,t,n){let o;if(isPipelineLike(t)){o=t}else if(Jn&&t instanceof StorageSharedKeyCredential||t instanceof AnonymousCredential||isTokenCredential(t)){o=newPipeline(t,n)}else{o=newPipeline(new AnonymousCredential,n)}super(e,o);this.serviceContext=this.storageClientContext.service}getContainerClient(e){return new ContainerClient(utils_common_appendToURLPath(this.url,encodeURIComponent(e)),this.pipeline)}async createContainer(e,t={}){return jA.withSpan("BlobServiceClient-createContainer",t,(async t=>{const n=this.getContainerClient(e);const o=await n.create(t);return{containerClient:n,containerCreateResponse:o}}))}async deleteContainer(e,t={}){return jA.withSpan("BlobServiceClient-deleteContainer",t,(async t=>{const n=this.getContainerClient(e);return n.delete(t)}))}async undeleteContainer(e,t,n={}){return jA.withSpan("BlobServiceClient-undeleteContainer",n,(async o=>{const i=this.getContainerClient(n.destinationContainerName||e);const a=i["storageClientContext"].container;const d=utils_common_assertResponse(await a.restore({deletedContainerName:e,deletedContainerVersion:t,tracingOptions:o.tracingOptions}));return{containerClient:i,containerUndeleteResponse:d}}))}async getProperties(e={}){return jA.withSpan("BlobServiceClient-getProperties",e,(async t=>utils_common_assertResponse(await this.serviceContext.getProperties({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async setProperties(e,t={}){return jA.withSpan("BlobServiceClient-setProperties",t,(async n=>utils_common_assertResponse(await this.serviceContext.setProperties(e,{abortSignal:t.abortSignal,tracingOptions:n.tracingOptions}))))}async getStatistics(e={}){return jA.withSpan("BlobServiceClient-getStatistics",e,(async t=>utils_common_assertResponse(await this.serviceContext.getStatistics({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async getAccountInfo(e={}){return jA.withSpan("BlobServiceClient-getAccountInfo",e,(async t=>utils_common_assertResponse(await this.serviceContext.getAccountInfo({abortSignal:e.abortSignal,tracingOptions:t.tracingOptions}))))}async listContainersSegment(e,t={}){return jA.withSpan("BlobServiceClient-listContainersSegment",t,(async n=>utils_common_assertResponse(await this.serviceContext.listContainersSegment({abortSignal:t.abortSignal,marker:e,...t,include:typeof t.include==="string"?[t.include]:t.include,tracingOptions:n.tracingOptions}))))}async findBlobsByTagsSegment(e,t,n={}){return jA.withSpan("BlobServiceClient-findBlobsByTagsSegment",n,(async o=>{const i=utils_common_assertResponse(await this.serviceContext.filterBlobs({abortSignal:n.abortSignal,where:e,marker:t,maxPageSize:n.maxPageSize,tracingOptions:o.tracingOptions}));const a={...i,_response:i._response,blobs:i.blobs.map((e=>{let t="";if(e.tags?.blobTagSet.length===1){t=e.tags.blobTagSet[0].value}return{...e,tags:toTags(e.tags),tagValue:t}}))};return a}))}async*findBlobsByTagsSegments(e,t,n={}){let o;if(!!t||t===undefined){do{o=await this.findBlobsByTagsSegment(e,t,n);o.blobs=o.blobs||[];t=o.continuationToken;yield o}while(t)}}async*findBlobsByTagsItems(e,t={}){let n;for await(const o of this.findBlobsByTagsSegments(e,n,t)){yield*o.blobs}}findBlobsByTags(e,t={}){const n={...t};const o=this.findBlobsByTagsItems(e,n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(t={})=>this.findBlobsByTagsSegments(e,t.continuationToken,{maxPageSize:t.maxPageSize,...n})}}async*listSegments(e,t={}){let n;if(!!e||e===undefined){do{n=await this.listContainersSegment(e,t);n.containerItems=n.containerItems||[];e=n.continuationToken;yield await n}while(e)}}async*listItems(e={}){let t;for await(const n of this.listSegments(t,e)){yield*n.containerItems}}listContainers(e={}){if(e.prefix===""){e.prefix=undefined}const t=[];if(e.includeDeleted){t.push("deleted")}if(e.includeMetadata){t.push("metadata")}if(e.includeSystem){t.push("system")}const n={...e,...t.length>0?{include:t}:{}};const o=this.listItems(n);return{next(){return o.next()},[Symbol.asyncIterator](){return this},byPage:(e={})=>this.listSegments(e.continuationToken,{maxPageSize:e.maxPageSize,...n})}}async getUserDelegationKey(e,t,n={}){return jA.withSpan("BlobServiceClient-getUserDelegationKey",n,(async o=>{const i=utils_common_assertResponse(await this.serviceContext.getUserDelegationKey({startsOn:utils_common_truncatedISO8061Date(e,false),expiresOn:utils_common_truncatedISO8061Date(t,false)},{abortSignal:n.abortSignal,tracingOptions:o.tracingOptions}));const a={signedObjectId:i.signedObjectId,signedTenantId:i.signedTenantId,signedStartsOn:new Date(i.signedStartsOn),signedExpiresOn:new Date(i.signedExpiresOn),signedService:i.signedService,signedVersion:i.signedVersion,value:i.value};const d={_response:i._response,requestId:i.requestId,clientRequestId:i.clientRequestId,version:i.version,date:i.date,errorCode:i.errorCode,...a};return d}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(e,t=AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}const i=generateAccountSASQueryParameters({permissions:t,expiresOn:e,resourceTypes:n,services:AccountSASServices.parse("b").toString(),...o},this.credential).toString();return utils_common_appendToURLQuery(this.url,i)}generateSasStringToSign(e,t=AccountSASPermissions.parse("r"),n="sco",o={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(e===undefined){const t=new Date;e=new Date(t.getTime()+3600*1e3)}return generateAccountSASQueryParametersInternal({permissions:t,expiresOn:e,resourceTypes:n,services:AccountSASServices.parse("b").toString(),...o},this.credential).stringToSign}}var Cm;(function(e){e["AES256"]="AES256"})(Cm||(Cm={}));class FilesNotFoundError extends Error{constructor(e=[]){let t="No files were found to upload";if(e.length>0){t+=`: ${e.join(", ")}`}super(t);this.files=e;this.name="FilesNotFoundError"}}class InvalidResponseError extends Error{constructor(e){super(e);this.name="InvalidResponseError"}}class CacheNotFoundError extends Error{constructor(e="Cache not found"){super(e);this.name="CacheNotFoundError"}}class GHESNotSupportedError extends Error{constructor(e="@actions/cache v4.1.4+, actions/cache/save@v4+ and actions/cache/restore@v4+ are not currently supported on GHES."){super(e);this.name="GHESNotSupportedError"}}class NetworkError extends Error{constructor(e){const t=`Unable to make request: ${e}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(t);this.code=e;this.name="NetworkError"}}NetworkError.isNetworkErrorCode=e=>{if(!e)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(e)};class UsageError extends Error{constructor(){const e=`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(e);this.name="UsageError"}}UsageError.isUsageErrorMessage=e=>{if(!e)return false;return e.includes("insufficient usage")};class RateLimitError extends Error{constructor(e){super(e);this.name="RateLimitError"}}var Im=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class UploadProgress{constructor(e){this.contentLength=e;this.sentBytes=0;this.displayedComplete=false;this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.sentBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);info(`Sent ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function uploadCacheArchiveSDK(e,t,n){return Im(this,void 0,void 0,(function*(){var o;const i=new BlobClient(e);const a=i.getBlockBlobClient();const d=new UploadProgress((o=n===null||n===void 0?void 0:n.archiveSizeBytes)!==null&&o!==void 0?o:0);const m={blockSize:n===null||n===void 0?void 0:n.uploadChunkSize,concurrency:n===null||n===void 0?void 0:n.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:d.onProgress()};try{d.startDisplayTimer();core_debug(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);const e=yield a.uploadFile(t,m);if(e._response.status>=400){throw new InvalidResponseError(`uploadCacheArchiveSDK: upload failed with status code ${e._response.status}`)}return e}catch(e){warning(`uploadCacheArchiveSDK: internal error uploading cache archive: ${e.message}`);throw e}finally{d.stopDisplayTimer()}}))}var bm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function isSuccessStatusCode(e){if(!e){return false}return e>=200&&e<300}function isServerErrorStatusCode(e){if(!e){return true}return e>=500}function isRetryableStatusCode(e){if(!e){return false}const t=[ee.BadGateway,ee.ServiceUnavailable,ee.GatewayTimeout];return t.includes(e)}function sleep(e){return bm(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}function retry(e,t,n){return bm(this,arguments,void 0,(function*(e,t,n,o=er,i=tr,a=undefined){let d="";let m=1;while(m<=o){let h=undefined;let f=undefined;let C=false;try{h=yield t()}catch(e){if(a){h=a(e)}C=true;d=e.message}if(h){f=n(h);if(!isServerErrorStatusCode(f)){return h}}if(f){C=isRetryableStatusCode(f);d=`Cache service responded with ${f}`}core_debug(`${e} - Attempt ${m} of ${o} failed with error: ${d}`);if(!C){core_debug(`${e} - Error is not retryable`);break}yield sleep(i);m++}throw Error(`${e} failed: ${d}`)}))}function retryTypedResponse(e,t){return bm(this,arguments,void 0,(function*(e,t,n=er,o=tr){return yield retry(e,t,(e=>e.statusCode),n,o,(e=>{if(e instanceof HttpClientError){return{statusCode:e.statusCode,result:null,headers:{},error:e}}else{return undefined}}))}))}function retryHttpClientResponse(e,t){return bm(this,arguments,void 0,(function*(e,t,n=er,o=tr){return yield retry(e,t,(e=>e.message.statusCode),n,o)}))}var Sm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function pipeResponseToStream(e,t){return Sm(this,void 0,void 0,(function*(){const n=Bt.promisify(It.pipeline);yield n(e.message,t)}))}class DownloadProgress{constructor(e){this.contentLength=e;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=e;this.receivedBytes=0;core_debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const e=this.segmentOffset+this.receivedBytes;const t=(100*(e/this.contentLength)).toFixed(1);const n=Date.now()-this.startTime;const o=(e/(1024*1024)/(n/1e3)).toFixed(1);info(`Received ${e} of ${this.contentLength} (${t}%), ${o} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,e)}};this.timeoutHandle=setTimeout(displayCallback,e)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}function downloadCacheHttpClient(e,t){return Sm(this,void 0,void 0,(function*(){const n=h.createWriteStream(t);const o=new lib_HttpClient("actions/cache");const i=yield retryHttpClientResponse("downloadCache",(()=>Sm(this,void 0,void 0,(function*(){return o.get(e)}))));i.message.socket.setTimeout(rr,(()=>{i.message.destroy();core_debug(`Aborting download, socket timed out after ${rr} ms`)}));yield pipeResponseToStream(i,n);const a=i.message.headers["content-length"];if(a){const e=parseInt(a);const n=getArchiveFileSizeInBytes(t);if(n!==e){throw new Error(`Incomplete download. Expected file size: ${e}, actual file size: ${n}`)}}else{core_debug("Unable to validate download, no Content-Length header")}}))}function downloadCacheHttpClientConcurrent(e,t,n){return Sm(this,void 0,void 0,(function*(){var o;const i=yield h.promises.open(t,"w");const a=new lib_HttpClient("actions/cache",undefined,{socketTimeout:n.timeoutInMs,keepAlive:true});try{const t=yield retryHttpClientResponse("downloadCacheMetadata",(()=>Sm(this,void 0,void 0,(function*(){return yield a.request("HEAD",e,null,{})}))));const d=t.message.headers["content-length"];if(d===undefined||d===null){throw new Error("Content-Length not found on blob response")}const m=parseInt(d);if(Number.isNaN(m)){throw new Error(`Could not interpret Content-Length: ${m}`)}const h=[];const f=4*1024*1024;for(let t=0;t<m;t+=f){const n=Math.min(f,m-t);h.push({offset:t,promiseGetter:()=>Sm(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(a,e,t,n)}))})}h.reverse();let C=0;let P=0;const D=new DownloadProgress(m);D.startDisplayTimer();const k=D.onProgress();const L=[];let F;const waitAndWrite=()=>Sm(this,void 0,void 0,(function*(){const e=yield Promise.race(Object.values(L));yield i.write(e.buffer,0,e.count,e.offset);C--;delete L[e.offset];P+=e.count;k({loadedBytes:P})}));while(F=h.pop()){L[F.offset]=F.promiseGetter();C++;if(C>=((o=n.downloadConcurrency)!==null&&o!==void 0?o:10)){yield waitAndWrite()}}while(C>0){yield waitAndWrite()}}finally{a.dispose();yield i.close()}}))}function downloadSegmentRetry(e,t,n,o){return Sm(this,void 0,void 0,(function*(){const i=5;let a=0;while(true){try{const i=3e4;const a=yield promiseWithTimeout(i,downloadSegment(e,t,n,o));if(typeof a==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return a}catch(e){if(a>=i){throw e}a++}}}))}function downloadSegment(e,t,n,o){return Sm(this,void 0,void 0,(function*(){const i=yield retryHttpClientResponse("downloadCachePart",(()=>Sm(this,void 0,void 0,(function*(){return yield e.get(t,{Range:`bytes=${n}-${n+o-1}`})}))));if(!i.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:n,count:o,buffer:yield i.readBodyBuffer()}}))}function downloadCacheStorageSDK(e,t,n){return Sm(this,void 0,void 0,(function*(){var o;const i=new BlockBlobClient(e,undefined,{retryOptions:{tryTimeoutInMs:n.timeoutInMs}});const a=yield i.getProperties();const d=(o=a.contentLength)!==null&&o!==void 0?o:-1;if(d<0){core_debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(e,t)}else{const e=Math.min(134217728,tm.constants.MAX_LENGTH);const o=new DownloadProgress(d);const a=h.openSync(t,"w");try{o.startDisplayTimer();const t=new AbortController;const m=t.signal;while(!o.isDone()){const f=o.segmentOffset+o.segmentSize;const C=Math.min(e,d-f);o.nextSegment(C);const P=yield promiseWithTimeout(n.segmentTimeoutInMs||36e5,i.downloadToBuffer(f,C,{abortSignal:m,concurrency:n.downloadConcurrency,onProgress:o.onProgress()}));if(P==="timeout"){t.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(P)){h.writeFileSync(a,P)}}}finally{o.stopDisplayTimer();h.closeSync(a)}}}))}const promiseWithTimeout=(e,t)=>Sm(void 0,void 0,void 0,(function*(){let n;const o=new Promise((t=>{n=setTimeout((()=>t("timeout")),e)}));return Promise.race([t,o]).then((e=>{clearTimeout(n);return e}))}));function getUploadOptions(e){const t={useAzureSdk:false,uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.uploadConcurrency==="number"){t.uploadConcurrency=e.uploadConcurrency}if(typeof e.uploadChunkSize==="number"){t.uploadChunkSize=e.uploadChunkSize}}t.uploadConcurrency=!isNaN(Number(process.env["CACHE_UPLOAD_CONCURRENCY"]))?Math.min(32,Number(process.env["CACHE_UPLOAD_CONCURRENCY"])):t.uploadConcurrency;t.uploadChunkSize=!isNaN(Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"]))?Math.min(128*1024*1024,Number(process.env["CACHE_UPLOAD_CHUNK_SIZE"])*1024*1024):t.uploadChunkSize;core_debug(`Use Azure SDK: ${t.useAzureSdk}`);core_debug(`Upload concurrency: ${t.uploadConcurrency}`);core_debug(`Upload chunk size: ${t.uploadChunkSize}`);return t}function getDownloadOptions(e){const t={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(e){if(typeof e.useAzureSdk==="boolean"){t.useAzureSdk=e.useAzureSdk}if(typeof e.concurrentBlobDownloads==="boolean"){t.concurrentBlobDownloads=e.concurrentBlobDownloads}if(typeof e.downloadConcurrency==="number"){t.downloadConcurrency=e.downloadConcurrency}if(typeof e.timeoutInMs==="number"){t.timeoutInMs=e.timeoutInMs}if(typeof e.segmentTimeoutInMs==="number"){t.segmentTimeoutInMs=e.segmentTimeoutInMs}if(typeof e.lookupOnly==="boolean"){t.lookupOnly=e.lookupOnly}}const n=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(n&&!isNaN(Number(n))&&isFinite(Number(n))){t.segmentTimeoutInMs=Number(n)*60*1e3}core_debug(`Use Azure SDK: ${t.useAzureSdk}`);core_debug(`Download concurrency: ${t.downloadConcurrency}`);core_debug(`Request timeout (ms): ${t.timeoutInMs}`);core_debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);core_debug(`Segment download timeout (ms): ${t.segmentTimeoutInMs}`);core_debug(`Lookup only: ${t.lookupOnly}`);return t}function isGhes(){const e=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}function getCacheServiceVersion(){if(isGhes())return"v1";return process.env["ACTIONS_CACHE_SERVICE_V2"]?"v2":"v1"}function getCacheServiceURL(){const e=getCacheServiceVersion();switch(e){case"v1":return process.env["ACTIONS_CACHE_URL"]||process.env["ACTIONS_RESULTS_URL"]||"";case"v2":return process.env["ACTIONS_RESULTS_URL"]||"";default:throw new Error(`Unsupported cache service version: ${e}`)}}var Bm=__nccwpck_require__(8658);function user_agent_getUserAgentString(){return`@actions/cache-${Bm.version}`}var wm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function getCacheApiUrl(e){const t=getCacheServiceURL();if(!t){throw new Error("Cache Service Url not found, unable to restore cache.")}const n=`${t}_apis/artifactcache/${e}`;core_debug(`Resource Url: ${n}`);return n}function createAcceptHeader(e,t){return`${e};api-version=${t}`}function getRequestOptions(){const e={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return e}function createHttpClient(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const t=new auth_BearerCredentialHandler(e);return new lib_HttpClient(user_agent_getUserAgentString(),[t],getRequestOptions())}function getCacheEntry(e,t,n){return wm(this,void 0,void 0,(function*(){const o=createHttpClient();const i=getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const a=`cache?keys=${encodeURIComponent(e.join(","))}&version=${i}`;const d=yield retryTypedResponse("getCacheEntry",(()=>wm(this,void 0,void 0,(function*(){return o.getJson(getCacheApiUrl(a))}))));if(d.statusCode===204){if(isDebug()){yield printCachesListForDiagnostics(e[0],o,i)}return null}if(!isSuccessStatusCode(d.statusCode)){throw new Error(`Cache service responded with ${d.statusCode}`)}const m=d.result;const h=m===null||m===void 0?void 0:m.archiveLocation;if(!h){throw new Error("Cache not found.")}core_setSecret(h);core_debug(`Cache Result:`);core_debug(JSON.stringify(m));return m}))}function printCachesListForDiagnostics(e,t,n){return wm(this,void 0,void 0,(function*(){const o=`caches?key=${encodeURIComponent(e)}`;const i=yield retryTypedResponse("listCache",(()=>wm(this,void 0,void 0,(function*(){return t.getJson(getCacheApiUrl(o))}))));if(i.statusCode===200){const t=i.result;const o=t===null||t===void 0?void 0:t.totalCount;if(o&&o>0){core_debug(`No matching cache found for cache key '${e}', version '${n} and scope ${process.env["GITHUB_REF"]}. There exist one or more cache(s) with similar key but they have different version or scope. See more info on cache matching here: https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key \nOther caches with similar key:`);for(const e of(t===null||t===void 0?void 0:t.artifactCaches)||[]){core_debug(`Cache Key: ${e===null||e===void 0?void 0:e.cacheKey}, Cache Version: ${e===null||e===void 0?void 0:e.cacheVersion}, Cache Scope: ${e===null||e===void 0?void 0:e.scope}, Cache Created: ${e===null||e===void 0?void 0:e.creationTime}`)}}}}))}function downloadCache(e,t,n){return wm(this,void 0,void 0,(function*(){const o=new dr.URL(e);const i=getDownloadOptions(n);if(o.hostname.endsWith(".blob.core.windows.net")){if(i.useAzureSdk){yield downloadCacheStorageSDK(e,t,i)}else if(i.concurrentBlobDownloads){yield downloadCacheHttpClientConcurrent(e,t,i)}else{yield downloadCacheHttpClient(e,t)}}else{yield downloadCacheHttpClient(e,t)}}))}function reserveCache(e,t,n){return wm(this,void 0,void 0,(function*(){const o=createHttpClient();const i=getCacheVersion(t,n===null||n===void 0?void 0:n.compressionMethod,n===null||n===void 0?void 0:n.enableCrossOsArchive);const a={key:e,version:i,cacheSize:n===null||n===void 0?void 0:n.cacheSize};const d=yield retryTypedResponse("reserveCache",(()=>wm(this,void 0,void 0,(function*(){return o.postJson(getCacheApiUrl("caches"),a)}))));return d}))}function getContentRange(e,t){return`bytes ${e}-${t}/*`}function uploadChunk(e,t,n,o,i){return wm(this,void 0,void 0,(function*(){core_debug(`Uploading chunk of size ${i-o+1} bytes at offset ${o} with content range: ${getContentRange(o,i)}`);const a={"Content-Type":"application/octet-stream","Content-Range":getContentRange(o,i)};const d=yield retryHttpClientResponse(`uploadChunk (start: ${o}, end: ${i})`,(()=>wm(this,void 0,void 0,(function*(){return e.sendStream("PATCH",t,n(),a)}))));if(!isSuccessStatusCode(d.message.statusCode)){throw new Error(`Cache service responded with ${d.message.statusCode} during upload chunk.`)}}))}function uploadFile(e,t,n,o){return wm(this,void 0,void 0,(function*(){const i=getArchiveFileSizeInBytes(n);const a=getCacheApiUrl(`caches/${t.toString()}`);const d=h.openSync(n,"r");const m=getUploadOptions(o);const f=assertDefined("uploadConcurrency",m.uploadConcurrency);const C=assertDefined("uploadChunkSize",m.uploadChunkSize);const P=[...new Array(f).keys()];core_debug("Awaiting all uploads");let D=0;try{yield Promise.all(P.map((()=>wm(this,void 0,void 0,(function*(){while(D<i){const t=Math.min(i-D,C);const o=D;const m=D+t-1;D+=C;yield uploadChunk(e,a,(()=>h.createReadStream(n,{fd:d,start:o,end:m,autoClose:false}).on("error",(e=>{throw new Error(`Cache upload failed because file read failed with ${e.message}`)}))),o,m)}})))))}finally{h.closeSync(d)}return}))}function commitCache(e,t,n){return wm(this,void 0,void 0,(function*(){const o={size:n};return yield retryTypedResponse("commitCache",(()=>wm(this,void 0,void 0,(function*(){return e.postJson(getCacheApiUrl(`caches/${t.toString()}`),o)}))))}))}function saveCache(e,t,n,o){return wm(this,void 0,void 0,(function*(){const i=getUploadOptions(o);if(i.useAzureSdk){if(!n){throw new Error("Azure Storage SDK can only be used when a signed URL is provided.")}yield uploadCacheArchiveSDK(n,t,o)}else{const n=createHttpClient();core_debug("Upload cache");yield uploadFile(n,e,t,o);core_debug("Commiting cache");const i=getArchiveFileSizeInBytes(t);info(`Cache Size: ~${Math.round(i/(1024*1024))} MB (${i} B)`);const a=yield commitCache(n,e,i);if(!isSuccessStatusCode(a.statusCode)){throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`)}info("Cache saved successfully")}}))}var Rm=__nccwpck_require__(6762);var Nm=__nccwpck_require__(8372);class CacheScope$Type extends Nm.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){const t={scope:"",permission:"0"};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.scope!=="")t.tag(1,Nm.WireType.LengthDelimited).string(e.scope);if(e.permission!=="0")t.tag(2,Nm.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const xm=new CacheScope$Type;class CacheMetadata$Type extends Nm.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>xm}])}create(e){const t={repositoryId:"0",scope:[]};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(xm.internalBinaryRead(e,e.uint32(),n));break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.repositoryId!=="0")t.tag(1,Nm.WireType.Varint).int64(e.repositoryId);for(let o=0;o<e.scope.length;o++)xm.internalBinaryWrite(e.scope[o],t.tag(2,Nm.WireType.LengthDelimited).fork(),n).join();let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Qm=new CacheMetadata$Type;class CreateCacheEntryRequest$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryRequest",[{no:1,name:"metadata",kind:"message",T:()=>Qm},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",version:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.metadata=Qm.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.version=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)Qm.internalBinaryWrite(e.metadata,t.tag(1,Nm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,Nm.WireType.LengthDelimited).string(e.key);if(e.version!=="")t.tag(3,Nm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Tm=new CreateCacheEntryRequest$Type;class CreateCacheEntryResponse$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.CreateCacheEntryResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_upload_url",kind:"scalar",T:9},{no:3,name:"message",kind:"scalar",T:9}])}create(e){const t={ok:false,signedUploadUrl:"",message:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.signedUploadUrl=e.string();break;case 3:i.message=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,Nm.WireType.Varint).bool(e.ok);if(e.signedUploadUrl!=="")t.tag(2,Nm.WireType.LengthDelimited).string(e.signedUploadUrl);if(e.message!=="")t.tag(3,Nm.WireType.LengthDelimited).string(e.message);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const vm=new CreateCacheEntryResponse$Type;class FinalizeCacheEntryUploadRequest$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadRequest",[{no:1,name:"metadata",kind:"message",T:()=>Qm},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"size_bytes",kind:"scalar",T:3},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",sizeBytes:"0",version:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.metadata=Qm.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.sizeBytes=e.int64().toString();break;case 4:i.version=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)Qm.internalBinaryWrite(e.metadata,t.tag(1,Nm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,Nm.WireType.LengthDelimited).string(e.key);if(e.sizeBytes!=="0")t.tag(3,Nm.WireType.Varint).int64(e.sizeBytes);if(e.version!=="")t.tag(4,Nm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Pm=new FinalizeCacheEntryUploadRequest$Type;class FinalizeCacheEntryUploadResponse$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.FinalizeCacheEntryUploadResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"entry_id",kind:"scalar",T:3},{no:3,name:"message",kind:"scalar",T:9}])}create(e){const t={ok:false,entryId:"0",message:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.entryId=e.int64().toString();break;case 3:i.message=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,Nm.WireType.Varint).bool(e.ok);if(e.entryId!=="0")t.tag(2,Nm.WireType.Varint).int64(e.entryId);if(e.message!=="")t.tag(3,Nm.WireType.LengthDelimited).string(e.message);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const Dm=new FinalizeCacheEntryUploadResponse$Type;class GetCacheEntryDownloadURLRequest$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLRequest",[{no:1,name:"metadata",kind:"message",T:()=>Qm},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"restore_keys",kind:"scalar",repeat:2,T:9},{no:4,name:"version",kind:"scalar",T:9}])}create(e){const t={key:"",restoreKeys:[],version:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.metadata=Qm.internalBinaryRead(e,e.uint32(),n,i.metadata);break;case 2:i.key=e.string();break;case 3:i.restoreKeys.push(e.string());break;case 4:i.version=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.metadata)Qm.internalBinaryWrite(e.metadata,t.tag(1,Nm.WireType.LengthDelimited).fork(),n).join();if(e.key!=="")t.tag(2,Nm.WireType.LengthDelimited).string(e.key);for(let n=0;n<e.restoreKeys.length;n++)t.tag(3,Nm.WireType.LengthDelimited).string(e.restoreKeys[n]);if(e.version!=="")t.tag(4,Nm.WireType.LengthDelimited).string(e.version);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const km=new GetCacheEntryDownloadURLRequest$Type;class GetCacheEntryDownloadURLResponse$Type extends Nm.MessageType{constructor(){super("github.actions.results.api.v1.GetCacheEntryDownloadURLResponse",[{no:1,name:"ok",kind:"scalar",T:8},{no:2,name:"signed_download_url",kind:"scalar",T:9},{no:3,name:"matched_key",kind:"scalar",T:9}])}create(e){const t={ok:false,signedDownloadUrl:"",matchedKey:""};globalThis.Object.defineProperty(t,Nm.MESSAGE_TYPE,{enumerable:false,value:this});if(e!==undefined)(0,Nm.reflectionMergePartial)(this,t,e);return t}internalBinaryRead(e,t,n,o){let i=o!==null&&o!==void 0?o:this.create(),a=e.pos+t;while(e.pos<a){let[t,o]=e.tag();switch(t){case 1:i.ok=e.bool();break;case 2:i.signedDownloadUrl=e.string();break;case 3:i.matchedKey=e.string();break;default:let a=n.readUnknownField;if(a==="throw")throw new globalThis.Error(`Unknown field ${t} (wire type ${o}) for ${this.typeName}`);let d=e.skip(o);if(a!==false)(a===true?Nm.UnknownFieldHandler.onRead:a)(this.typeName,i,t,o,d)}}return i}internalBinaryWrite(e,t,n){if(e.ok!==false)t.tag(1,Nm.WireType.Varint).bool(e.ok);if(e.signedDownloadUrl!=="")t.tag(2,Nm.WireType.LengthDelimited).string(e.signedDownloadUrl);if(e.matchedKey!=="")t.tag(3,Nm.WireType.LengthDelimited).string(e.matchedKey);let o=n.writeUnknownFields;if(o!==false)(o==true?Nm.UnknownFieldHandler.onWrite:o)(this.typeName,e,t);return t}}const _m=new GetCacheEntryDownloadURLResponse$Type;const Lm=new Rm.C0("github.actions.results.api.v1.CacheService",[{name:"CreateCacheEntry",options:{},I:Tm,O:vm},{name:"FinalizeCacheEntryUpload",options:{},I:Pm,O:Dm},{name:"GetCacheEntryDownloadURL",options:{},I:km,O:_m}]);class CacheServiceClientJSON{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=Tm.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/json",t);return n.then((e=>vm.fromJson(e,{ignoreUnknownFields:true})))}FinalizeCacheEntryUpload(e){const t=Pm.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/json",t);return n.then((e=>Dm.fromJson(e,{ignoreUnknownFields:true})))}GetCacheEntryDownloadURL(e){const t=km.toJson(e,{useProtoFieldName:true,emitDefaultValues:false});const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/json",t);return n.then((e=>_m.fromJson(e,{ignoreUnknownFields:true})))}}class CacheServiceClientProtobuf{constructor(e){this.rpc=e;this.CreateCacheEntry.bind(this);this.FinalizeCacheEntryUpload.bind(this);this.GetCacheEntryDownloadURL.bind(this)}CreateCacheEntry(e){const t=CreateCacheEntryRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","CreateCacheEntry","application/protobuf",t);return n.then((e=>CreateCacheEntryResponse.fromBinary(e)))}FinalizeCacheEntryUpload(e){const t=FinalizeCacheEntryUploadRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","FinalizeCacheEntryUpload","application/protobuf",t);return n.then((e=>FinalizeCacheEntryUploadResponse.fromBinary(e)))}GetCacheEntryDownloadURL(e){const t=GetCacheEntryDownloadURLRequest.toBinary(e);const n=this.rpc.request("github.actions.results.api.v1.CacheService","GetCacheEntryDownloadURL","application/protobuf",t);return n.then((e=>GetCacheEntryDownloadURLResponse.fromBinary(e)))}}function maskSigUrl(e){if(!e)return;try{const t=new URL(e);const n=t.searchParams.get("sig");if(n){core_setSecret(n);core_setSecret(encodeURIComponent(n))}}catch(t){core_debug(`Failed to parse URL: ${e} ${t instanceof Error?t.message:String(t)}`)}}function maskSecretUrls(e){if(typeof e!=="object"||e===null){core_debug("body is not an object or is null");return}if("signed_upload_url"in e&&typeof e.signed_upload_url==="string"){maskSigUrl(e.signed_upload_url)}if("signed_download_url"in e&&typeof e.signed_download_url==="string"){maskSigUrl(e.signed_download_url)}}var Om=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class CacheServiceClient{constructor(e,t,n,o){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const i=getRuntimeToken();this.baseUrl=getCacheServiceURL();if(t){this.maxAttempts=t}if(n){this.baseRetryIntervalMilliseconds=n}if(o){this.retryMultiplier=o}this.httpClient=new lib_HttpClient(e,[new auth_BearerCredentialHandler(i)])}request(e,t,n,o){return Om(this,void 0,void 0,(function*(){const i=new URL(`/twirp/${e}/${t}`,this.baseUrl).href;core_debug(`[Request] ${t} ${i}`);const a={"Content-Type":n};try{const{body:e}=yield this.retryableRequest((()=>Om(this,void 0,void 0,(function*(){return this.httpClient.post(i,JSON.stringify(o),a)}))));return e}catch(e){throw new Error(`Failed to ${t}: ${e.message}`)}}))}retryableRequest(e){return Om(this,void 0,void 0,(function*(){let t=0;let n="";let o="";while(t<this.maxAttempts){let i=false;try{const t=yield e();const a=t.message.statusCode;o=yield t.readBody();core_debug(`[Response] - ${t.message.statusCode}`);core_debug(`Headers: ${JSON.stringify(t.message.headers,null,2)}`);const d=JSON.parse(o);maskSecretUrls(d);core_debug(`Body: ${JSON.stringify(d,null,2)}`);if(this.isSuccessStatusCode(a)){return{response:t,body:d}}i=this.isRetryableHttpStatusCode(a);n=`Failed request: (${a}) ${t.message.statusMessage}`;if(d.msg){if(UsageError.isUsageErrorMessage(d.msg)){throw new UsageError}n=`${n}: ${d.msg}`}if(a===ee.TooManyRequests){const e=t.message.headers["retry-after"];if(e){const t=parseInt(e,10);if(!isNaN(t)&&t>0){warning(`You've hit a rate limit, your rate limit will reset in ${t} seconds`)}}throw new RateLimitError(`Rate limited: ${n}`)}}catch(e){if(e instanceof SyntaxError){core_debug(`Raw Body: ${o}`)}if(e instanceof UsageError){throw e}if(e instanceof RateLimitError){throw e}if(NetworkError.isNetworkErrorCode(e===null||e===void 0?void 0:e.code)){throw new NetworkError(e===null||e===void 0?void 0:e.code)}i=true;n=e.message}if(!i){throw new Error(`Received non-retryable error: ${n}`)}if(t+1===this.maxAttempts){throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`)}const a=this.getExponentialRetryTimeMilliseconds(t);info(`Attempt ${t+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`);yield this.sleep(a);t++}throw new Error(`Request failed`)}))}isSuccessStatusCode(e){if(!e)return false;return e>=200&&e<300}isRetryableHttpStatusCode(e){if(!e)return false;const t=[ee.BadGateway,ee.GatewayTimeout,ee.InternalServerError,ee.ServiceUnavailable];return t.includes(e)}sleep(e){return Om(this,void 0,void 0,(function*(){return new Promise((t=>setTimeout(t,e)))}))}getExponentialRetryTimeMilliseconds(e){if(e<0){throw new Error("attempt should be a positive integer")}if(e===0){return this.baseRetryIntervalMilliseconds}const t=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e);const n=t*this.retryMultiplier;return Math.trunc(Math.random()*(n-t)+t)}}function internalCacheTwirpClient(e){const t=new CacheServiceClient(user_agent_getUserAgentString(),e===null||e===void 0?void 0:e.maxAttempts,e===null||e===void 0?void 0:e.retryIntervalMs,e===null||e===void 0?void 0:e.retryMultiplier);return new CacheServiceClientJSON(t)}var Fm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};const Um=process.platform==="win32";function getTarPath(){return Fm(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const e=yield getGnuTarPathOnWindows();const t=sr;if(e){return{path:e,type:Zt.GNU}}else if((0,h.existsSync)(t)){return{path:t,type:Zt.BSD}}break}case"darwin":{const e=yield which("gtar",false);if(e){return{path:e,type:Zt.GNU}}else{return{path:yield which("tar",true),type:Zt.BSD}}}default:break}return{path:yield which("tar",true),type:Zt.GNU}}))}function getTarArgs(e,t,n){return Fm(this,arguments,void 0,(function*(e,t,n,o=""){const i=[`"${e.path}"`];const a=getCacheFileName(t);const d="cache.tar";const m=getWorkingDirectory();const h=e.type===Zt.BSD&&t!==Xt.Gzip&&Um;switch(n){case"create":i.push("--posix","-cf",h?d:a.replace(new RegExp(`\\${f.sep}`,"g"),"/"),"--exclude",h?d:a.replace(new RegExp(`\\${f.sep}`,"g"),"/"),"-P","-C",m.replace(new RegExp(`\\${f.sep}`,"g"),"/"),"--files-from",ir);break;case"extract":i.push("-xf",h?d:o.replace(new RegExp(`\\${f.sep}`,"g"),"/"),"-P","-C",m.replace(new RegExp(`\\${f.sep}`,"g"),"/"));break;case"list":i.push("-tf",h?d:o.replace(new RegExp(`\\${f.sep}`,"g"),"/"),"-P");break}if(e.type===Zt.GNU){switch(process.platform){case"win32":i.push("--force-local");break;case"darwin":i.push("--delay-directory-restore");break}}return i}))}function getCommands(e,t){return Fm(this,arguments,void 0,(function*(e,t,n=""){let o;const i=yield getTarPath();const a=yield getTarArgs(i,e,t,n);const d=t!=="create"?yield getDecompressionProgram(i,e,n):yield getCompressionProgram(i,e);const m=i.type===Zt.BSD&&e!==Xt.Gzip&&Um;if(m&&t!=="create"){o=[[...d].join(" "),[...a].join(" ")]}else{o=[[...a].join(" "),[...d].join(" ")]}if(m){return o}return[o.join(" ")]}))}function getWorkingDirectory(){var e;return(e=process.env["GITHUB_WORKSPACE"])!==null&&e!==void 0?e:process.cwd()}function getDecompressionProgram(e,t,n){return Fm(this,void 0,void 0,(function*(){const o=e.type===Zt.BSD&&t!==Xt.Gzip&&Um;switch(t){case Xt.Zstd:return o?["zstd -d --long=30 --force -o",or,n.replace(new RegExp(`\\${f.sep}`,"g"),"/")]:["--use-compress-program",Um?'"zstd -d --long=30"':"unzstd --long=30"];case Xt.ZstdWithoutLong:return o?["zstd -d --force -o",or,n.replace(new RegExp(`\\${f.sep}`,"g"),"/")]:["--use-compress-program",Um?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(e,t){return Fm(this,void 0,void 0,(function*(){const n=getCacheFileName(t);const o=e.type===Zt.BSD&&t!==Xt.Gzip&&Um;switch(t){case Xt.Zstd:return o?["zstd -T0 --long=30 --force -o",n.replace(new RegExp(`\\${f.sep}`,"g"),"/"),or]:["--use-compress-program",Um?'"zstd -T0 --long=30"':"zstdmt --long=30"];case Xt.ZstdWithoutLong:return o?["zstd -T0 --force -o",n.replace(new RegExp(`\\${f.sep}`,"g"),"/"),or]:["--use-compress-program",Um?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(e,t){return Fm(this,void 0,void 0,(function*(){for(const n of e){try{yield exec_exec(n,undefined,{cwd:t,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(e){throw new Error(`${n.split(" ")[0]} failed with error: ${e===null||e===void 0?void 0:e.message}`)}}}))}function listTar(e,t){return Fm(this,void 0,void 0,(function*(){const n=yield getCommands(t,"list",e);yield execCommands(n)}))}function tar_extractTar(e,t){return Fm(this,void 0,void 0,(function*(){const n=getWorkingDirectory();yield mkdirP(n);const o=yield getCommands(t,"extract",e);yield execCommands(o)}))}function createTar(e,t,n){return Fm(this,void 0,void 0,(function*(){(0,h.writeFileSync)(f.join(e,ir),t.join("\n"));const o=yield getCommands(n,"create");yield execCommands(o,e)}))}var Mm=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};class ValidationError extends Error{constructor(e){super(e);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}class ReserveCacheError extends Error{constructor(e){super(e);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}class FinalizeCacheError extends Error{constructor(e){super(e);this.name="FinalizeCacheError";Object.setPrototypeOf(this,FinalizeCacheError.prototype)}}function checkPaths(e){if(!e||e.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(e){if(e.length>512){throw new ValidationError(`Key Validation Error: ${e} cannot be larger than 512 characters.`)}const t=/^[^,]*$/;if(!t.test(e)){throw new ValidationError(`Key Validation Error: ${e} cannot contain commas.`)}}function isFeatureAvailable(){const e=getCacheServiceVersion();switch(e){case"v2":return!!process.env["ACTIONS_RESULTS_URL"];case"v1":default:return!!process.env["ACTIONS_CACHE_URL"]}}function restoreCache(e,t,n,o){return Mm(this,arguments,void 0,(function*(e,t,n,o,i=false){const a=getCacheServiceVersion();core_debug(`Cache service version: ${a}`);checkPaths(e);switch(a){case"v2":return yield restoreCacheV2(e,t,n,o,i);case"v1":default:return yield restoreCacheV1(e,t,n,o,i)}}))}function restoreCacheV1(e,t,n,o){return Mm(this,arguments,void 0,(function*(e,t,n,o,i=false){n=n||[];const a=[t,...n];core_debug("Resolved Keys:");core_debug(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}const d=yield getCompressionMethod();let m="";try{const t=yield getCacheEntry(a,e,{compressionMethod:d,enableCrossOsArchive:i});if(!(t===null||t===void 0?void 0:t.archiveLocation)){return undefined}if(o===null||o===void 0?void 0:o.lookupOnly){info("Lookup only - skipping download");return t.cacheKey}m=f.join(yield createTempDirectory(),getCacheFileName(d));core_debug(`Archive Path: ${m}`);yield downloadCache(t.archiveLocation,m,o);if(isDebug()){yield listTar(m,d)}const n=getArchiveFileSizeInBytes(m);info(`Cache Size: ~${Math.round(n/(1024*1024))} MB (${n} B)`);yield tar_extractTar(m,d);info("Cache restored successfully");return t.cacheKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to restore: ${e.message}`)}else{warning(`Failed to restore: ${e.message}`)}}}finally{try{yield unlinkFile(m)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return undefined}))}function restoreCacheV2(e,t,n,o){return Mm(this,arguments,void 0,(function*(e,t,n,o,i=false){o=Object.assign(Object.assign({},o),{useAzureSdk:true});n=n||[];const a=[t,...n];core_debug("Resolved Keys:");core_debug(JSON.stringify(a));if(a.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const e of a){checkKey(e)}let d="";try{const m=internalCacheTwirpClient();const h=yield getCompressionMethod();const C={key:t,restoreKeys:n,version:getCacheVersion(e,h,i)};const P=yield m.GetCacheEntryDownloadURL(C);if(!P.ok){core_debug(`Cache not found for version ${C.version} of keys: ${a.join(", ")}`);return undefined}const D=C.key!==P.matchedKey;if(D){info(`Cache hit for restore-key: ${P.matchedKey}`)}else{info(`Cache hit for: ${P.matchedKey}`)}if(o===null||o===void 0?void 0:o.lookupOnly){info("Lookup only - skipping download");return P.matchedKey}d=f.join(yield createTempDirectory(),getCacheFileName(h));core_debug(`Archive path: ${d}`);core_debug(`Starting download of archive to: ${d}`);yield downloadCache(P.signedDownloadUrl,d,o);const k=getArchiveFileSizeInBytes(d);info(`Cache Size: ~${Math.round(k/(1024*1024))} MB (${k} B)`);if(isDebug()){yield listTar(d,h)}yield tar_extractTar(d,h);info("Cache restored successfully");return P.matchedKey}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to restore: ${e.message}`)}else{warning(`Failed to restore: ${e.message}`)}}}finally{try{if(d){yield unlinkFile(d)}}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return undefined}))}function cache_saveCache(e,t,n){return Mm(this,arguments,void 0,(function*(e,t,n,o=false){const i=getCacheServiceVersion();core_debug(`Cache service version: ${i}`);checkPaths(e);checkKey(t);switch(i){case"v2":return yield saveCacheV2(e,t,n,o);case"v1":default:return yield saveCacheV1(e,t,n,o)}}))}function saveCacheV1(e,t,n){return Mm(this,arguments,void 0,(function*(e,t,n,o=false){var i,a,d,m,h;const C=yield getCompressionMethod();let P=-1;const D=yield resolvePaths(e);core_debug("Cache Paths:");core_debug(`${JSON.stringify(D)}`);if(D.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const k=yield createTempDirectory();const L=f.join(k,getCacheFileName(C));core_debug(`Archive Path: ${L}`);try{yield createTar(k,D,C);if(isDebug()){yield listTar(L,C)}const f=10*1024*1024*1024;const F=getArchiveFileSizeInBytes(L);core_debug(`File Size: ${F}`);if(F>f&&!isGhes()){throw new Error(`Cache size of ~${Math.round(F/(1024*1024))} MB (${F} B) is over the 10GB limit, not saving cache.`)}core_debug("Reserving Cache");const q=yield reserveCache(t,e,{compressionMethod:C,enableCrossOsArchive:o,cacheSize:F});if((i=q===null||q===void 0?void 0:q.result)===null||i===void 0?void 0:i.cacheId){P=(a=q===null||q===void 0?void 0:q.result)===null||a===void 0?void 0:a.cacheId}else if((q===null||q===void 0?void 0:q.statusCode)===400){throw new Error((m=(d=q===null||q===void 0?void 0:q.error)===null||d===void 0?void 0:d.message)!==null&&m!==void 0?m:`Cache size of ~${Math.round(F/(1024*1024))} MB (${F} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache. More details: ${(h=q===null||q===void 0?void 0:q.error)===null||h===void 0?void 0:h.message}`)}core_debug(`Saving Cache (ID: ${P})`);yield saveCache(P,L,"",n)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){info(`Failed to save: ${t.message}`)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to save: ${t.message}`)}else{warning(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(L)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return P}))}function saveCacheV2(e,t,n){return Mm(this,arguments,void 0,(function*(e,t,n,o=false){n=Object.assign(Object.assign({},n),{uploadChunkSize:64*1024*1024,uploadConcurrency:8,useAzureSdk:true});const i=yield getCompressionMethod();const a=internalCacheTwirpClient();let d=-1;const m=yield resolvePaths(e);core_debug("Cache Paths:");core_debug(`${JSON.stringify(m)}`);if(m.length===0){throw new Error(`Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.`)}const h=yield createTempDirectory();const C=f.join(h,getCacheFileName(i));core_debug(`Archive Path: ${C}`);try{yield createTar(h,m,i);if(isDebug()){yield listTar(C,i)}const f=getArchiveFileSizeInBytes(C);core_debug(`File Size: ${f}`);n.archiveSizeBytes=f;core_debug("Reserving Cache");const P=getCacheVersion(e,i,o);const D={key:t,version:P};let k;try{const e=yield a.CreateCacheEntry(D);if(!e.ok){if(e.message){warning(`Cache reservation failed: ${e.message}`)}throw new Error(e.message||"Response was not ok")}k=e.signedUploadUrl}catch(e){core_debug(`Failed to reserve cache: ${e}`);throw new ReserveCacheError(`Unable to reserve cache with key ${t}, another job may be creating this cache.`)}core_debug(`Attempting to upload cache located at: ${C}`);yield saveCache(d,C,k,n);const L={key:t,version:P,sizeBytes:`${f}`};const F=yield a.FinalizeCacheEntryUpload(L);core_debug(`FinalizeCacheEntryUploadResponse: ${F.ok}`);if(!F.ok){if(F.message){throw new FinalizeCacheError(F.message)}throw new Error(`Unable to finalize cache with key ${t}, another job may be finalizing this cache.`)}d=parseInt(F.entryId)}catch(e){const t=e;if(t.name===ValidationError.name){throw e}else if(t.name===ReserveCacheError.name){info(`Failed to save: ${t.message}`)}else if(t.name===FinalizeCacheError.name){warning(t.message)}else{if(t instanceof HttpClientError&&typeof t.statusCode==="number"&&t.statusCode>=500){core_error(`Failed to save: ${t.message}`)}else{warning(`Failed to save: ${t.message}`)}}}finally{try{yield unlinkFile(C)}catch(e){core_debug(`Failed to delete archive: ${e}`)}}return d}))}class Cache{opts;ghaCacheKey;ghaNoCache;cacheDir;cachePath;static POST_CACHE_KEY="postCache";constructor(e){this.opts=e;this.ghaCacheKey=Bt.format("%s-%s-%s",this.opts.htcName,this.opts.htcVersion,this.platform());this.ghaNoCache=this.opts.ghaNoCache;this.cacheDir=f.join(this.opts.baseCacheDir,this.opts.htcVersion,this.platform());this.cachePath=f.join(this.cacheDir,this.opts.cacheFile);if(!h.existsSync(this.cacheDir)){h.mkdirSync(this.cacheDir,{recursive:true})}}async save(e,t){core_debug(`Cache.save ${e}`);const n=this.copyToCache(e);const o=await cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());core_debug(`Cache.save cached to hosted tool cache ${o}`);if(!this.ghaNoCache&&isFeatureAvailable()){if(t){try{core_debug(`Cache.save caching ${this.ghaCacheKey} to GitHub Actions cache`);await cache_saveCache([this.cacheDir],this.ghaCacheKey)}catch(e){warning(`Failed to save cache: ${e}`)}}else{core_debug(`Cache.save sending ${this.ghaCacheKey} to post state`);saveState(Cache.POST_CACHE_KEY,JSON.stringify({dir:this.cacheDir,key:this.ghaCacheKey}))}}return n}async find(){try{let e=find(this.opts.htcName,this.opts.htcVersion,this.platform());if(e){info(`Restored from hosted tool cache ${e}`);return this.copyToCache(`${e}/${this.opts.cacheFile}`)}if(!this.ghaNoCache&&isFeatureAvailable()){core_debug(`GitHub Actions cache feature available`);if(await restoreCache([this.cacheDir],this.ghaCacheKey)){info(`Restored ${this.ghaCacheKey} from GitHub Actions cache`);e=await cacheDir(this.cacheDir,this.opts.htcName,this.opts.htcVersion,this.platform());info(`Cached to hosted tool cache ${e}`);return this.copyToCache(`${e}/${this.opts.cacheFile}`)}}else if(this.ghaNoCache){info(`GitHub Actions cache disabled`)}else{info(`GitHub Actions cache feature not available`)}}catch(e){warning(`Failed to restore cache: ${e}`)}return""}static async post(){const e=getState(Cache.POST_CACHE_KEY);if(!e){info(`State not set`);return Promise.resolve(undefined)}let t;try{t=JSON.parse(e)}catch(e){throw new Error(`Failed to parse cache post state: ${e}`)}if(!t.dir||!t.key){throw new Error(`Invalid cache post state: ${e}`)}try{info(`Caching ${t.key} to GitHub Actions cache`);await cache_saveCache([t.dir],t.key)}catch(e){warning(`Failed to save cache: ${e}`)}return t}copyToCache(e){info(`Copying ${e} to ${this.cachePath}`);h.copyFileSync(e,this.cachePath);return this.cachePath}platform(){const e=process.config.variables.arm_version;return`${a.platform()}-${a.arch()}${e?"v"+e:""}`}}const Hm=!!process.env["STATE_isPost"];if(!Hm){saveState("isPost","true")}async function run(e,t){if(!Hm){try{await e()}catch(e){setFailed(e.message)}}else{if(t){await t()}await group(`Post cache`,(async()=>{await Cache.post()}))}}
|
||
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
||
function isNothing(e){return typeof e==="undefined"||e===null}function js_yaml_isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function js_yaml_extend(e,t){var n,o,i,a;if(t){a=Object.keys(t);for(n=0,o=a.length;n<o;n+=1){i=a[n];e[i]=t[i]}}return e}function repeat(e,t){var n="",o;for(o=0;o<t;o+=1){n+=e}return n}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var $m=isNothing;var Gm=js_yaml_isObject;var qm=toArray;var zm=repeat;var Vm=isNegativeZero;var jm=js_yaml_extend;var Ym={isNothing:$m,isObject:Gm,toArray:qm,repeat:zm,isNegativeZero:Vm,extend:jm};function formatError(e,t){var n="",o=e.reason||"(unknown reason)";if(!e.mark)return o;if(e.mark.name){n+='in "'+e.mark.name+'" '}n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){n+="\n\n"+e.mark.snippet}return o+" "+n}function YAMLException$1(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException$1.prototype=Object.create(Error.prototype);YAMLException$1.prototype.constructor=YAMLException$1;YAMLException$1.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};var Jm=YAMLException$1;function getLine(e,t,n,o,i){var a="";var d="";var m=Math.floor(i/2)-1;if(o-t>m){a=" ... ";t=o-m+a.length}if(n-o>m){d=" ...";n=o+m-d.length}return{str:a+e.slice(t,n).replace(/\t/g,"→")+d,pos:o-t+a.length}}function js_yaml_padStart(e,t){return Ym.repeat(" ",t-e.length)+e}function makeSnippet(e,t){t=Object.create(t||null);if(!e.buffer)return null;if(!t.maxLength)t.maxLength=79;if(typeof t.indent!=="number")t.indent=1;if(typeof t.linesBefore!=="number")t.linesBefore=3;if(typeof t.linesAfter!=="number")t.linesAfter=2;var n=/\r?\n|\r|\0/g;var o=[0];var i=[];var a;var d=-1;while(a=n.exec(e.buffer)){i.push(a.index);o.push(a.index+a[0].length);if(e.position<=a.index&&d<0){d=o.length-2}}if(d<0)d=o.length-1;var m="",h,f;var C=Math.min(e.line+t.linesAfter,i.length).toString().length;var P=t.maxLength-(t.indent+C+3);for(h=1;h<=t.linesBefore;h++){if(d-h<0)break;f=getLine(e.buffer,o[d-h],i[d-h],e.position-(o[d]-o[d-h]),P);m=Ym.repeat(" ",t.indent)+js_yaml_padStart((e.line-h+1).toString(),C)+" | "+f.str+"\n"+m}f=getLine(e.buffer,o[d],i[d],e.position,P);m+=Ym.repeat(" ",t.indent)+js_yaml_padStart((e.line+1).toString(),C)+" | "+f.str+"\n";m+=Ym.repeat("-",t.indent+C+3+f.pos)+"^"+"\n";for(h=1;h<=t.linesAfter;h++){if(d+h>=i.length)break;f=getLine(e.buffer,o[d+h],i[d+h],e.position-(o[d]-o[d+h]),P);m+=Ym.repeat(" ",t.indent)+js_yaml_padStart((e.line+h+1).toString(),C)+" | "+f.str+"\n"}return m.replace(/\n$/,"")}var Wm=makeSnippet;var Km=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"];var Xm=["scalar","sequence","mapping"];function compileStyleAliases(e){var t={};if(e!==null){Object.keys(e).forEach((function(n){e[n].forEach((function(e){t[String(e)]=n}))}))}return t}function Type$1(e,t){t=t||{};Object.keys(t).forEach((function(t){if(Km.indexOf(t)===-1){throw new Jm('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}}));this.options=t;this.tag=e;this.kind=t["kind"]||null;this.resolve=t["resolve"]||function(){return true};this.construct=t["construct"]||function(e){return e};this.instanceOf=t["instanceOf"]||null;this.predicate=t["predicate"]||null;this.represent=t["represent"]||null;this.representName=t["representName"]||null;this.defaultStyle=t["defaultStyle"]||null;this.multi=t["multi"]||false;this.styleAliases=compileStyleAliases(t["styleAliases"]||null);if(Xm.indexOf(this.kind)===-1){throw new Jm('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}}var Zm=Type$1;function compileList(e,t){var n=[];e[t].forEach((function(e){var t=n.length;n.forEach((function(n,o){if(n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi){t=o}}));n[t]=e}));return n}function compileMap(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function collectType(t){if(t.multi){e.multi[t.kind].push(t);e.multi["fallback"].push(t)}else{e[t.kind][t.tag]=e["fallback"][t.tag]=t}}for(t=0,n=arguments.length;t<n;t+=1){arguments[t].forEach(collectType)}return e}function Schema$1(e){return this.extend(e)}Schema$1.prototype.extend=function extend(e){var t=[];var n=[];if(e instanceof Zm){n.push(e)}else if(Array.isArray(e)){n=n.concat(e)}else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit))){if(e.implicit)t=t.concat(e.implicit);if(e.explicit)n=n.concat(e.explicit)}else{throw new Jm("Schema.extend argument should be a Type, [ Type ], "+"or a schema definition ({ implicit: [...], explicit: [...] })")}t.forEach((function(e){if(!(e instanceof Zm)){throw new Jm("Specified list of YAML types (or a single Type object) contains a non-Type object.")}if(e.loadKind&&e.loadKind!=="scalar"){throw new Jm("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}if(e.multi){throw new Jm("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}}));n.forEach((function(e){if(!(e instanceof Zm)){throw new Jm("Specified list of YAML types (or a single Type object) contains a non-Type object.")}}));var o=Object.create(Schema$1.prototype);o.implicit=(this.implicit||[]).concat(t);o.explicit=(this.explicit||[]).concat(n);o.compiledImplicit=compileList(o,"implicit");o.compiledExplicit=compileList(o,"explicit");o.compiledTypeMap=compileMap(o.compiledImplicit,o.compiledExplicit);return o};var eg=Schema$1;var tg=new Zm("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}});var rg=new Zm("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}});var ng=new Zm("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}});var sg=new eg({explicit:[tg,rg,ng]});function resolveYamlNull(e){if(e===null)return true;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function constructYamlNull(){return null}function isNull(e){return e===null}var og=new Zm("tag:yaml.org,2002:null",{kind:"scalar",resolve:resolveYamlNull,construct:constructYamlNull,predicate:isNull,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function resolveYamlBoolean(e){if(e===null)return false;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function constructYamlBoolean(e){return e==="true"||e==="True"||e==="TRUE"}function isBoolean(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ig=new Zm("tag:yaml.org,2002:bool",{kind:"scalar",resolve:resolveYamlBoolean,construct:constructYamlBoolean,predicate:isBoolean,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function isHexCode(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function isOctCode(e){return 48<=e&&e<=55}function isDecCode(e){return 48<=e&&e<=57}function resolveYamlInteger(e){if(e===null)return false;var t=e.length,n=0,o=false,i;if(!t)return false;i=e[n];if(i==="-"||i==="+"){i=e[++n]}if(i==="0"){if(n+1===t)return true;i=e[++n];if(i==="b"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(i!=="0"&&i!=="1")return false;o=true}return o&&i!=="_"}if(i==="x"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isHexCode(e.charCodeAt(n)))return false;o=true}return o&&i!=="_"}if(i==="o"){n++;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isOctCode(e.charCodeAt(n)))return false;o=true}return o&&i!=="_"}}if(i==="_")return false;for(;n<t;n++){i=e[n];if(i==="_")continue;if(!isDecCode(e.charCodeAt(n))){return false}o=true}if(!o||i==="_")return false;return true}function constructYamlInteger(e){var t=e,n=1,o;if(t.indexOf("_")!==-1){t=t.replace(/_/g,"")}o=t[0];if(o==="-"||o==="+"){if(o==="-")n=-1;t=t.slice(1);o=t[0]}if(t==="0")return 0;if(o==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function isInteger(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1===0&&!Ym.isNegativeZero(e))}var ag=new Zm("tag:yaml.org,2002:int",{kind:"scalar",resolve:resolveYamlInteger,construct:constructYamlInteger,predicate:isInteger,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}});var cg=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?"+"|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?"+"|[-+]?\\.(?:inf|Inf|INF)"+"|\\.(?:nan|NaN|NAN))$");function resolveYamlFloat(e){if(e===null)return false;if(!cg.test(e)||e[e.length-1]==="_"){return false}return true}function constructYamlFloat(e){var t,n;t=e.replace(/_/g,"").toLowerCase();n=t[0]==="-"?-1:1;if("+-".indexOf(t[0])>=0){t=t.slice(1)}if(t===".inf"){return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY}else if(t===".nan"){return NaN}return n*parseFloat(t,10)}var lg=/^[-+]?[0-9]+e/;function representYamlFloat(e,t){var n;if(isNaN(e)){switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}}else if(Number.POSITIVE_INFINITY===e){switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}}else if(Number.NEGATIVE_INFINITY===e){switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}}else if(Ym.isNegativeZero(e)){return"-0.0"}n=e.toString(10);return lg.test(n)?n.replace("e",".e"):n}function isFloat(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ym.isNegativeZero(e))}var ug=new Zm("tag:yaml.org,2002:float",{kind:"scalar",resolve:resolveYamlFloat,construct:constructYamlFloat,predicate:isFloat,represent:representYamlFloat,defaultStyle:"lowercase"});var dg=sg.extend({implicit:[og,ig,ag,ug]});var pg=dg;var Ag=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9])"+"-([0-9][0-9])$");var mg=new RegExp("^([0-9][0-9][0-9][0-9])"+"-([0-9][0-9]?)"+"-([0-9][0-9]?)"+"(?:[Tt]|[ \\t]+)"+"([0-9][0-9]?)"+":([0-9][0-9])"+":([0-9][0-9])"+"(?:\\.([0-9]*))?"+"(?:[ \\t]*(Z|([-+])([0-9][0-9]?)"+"(?::([0-9][0-9]))?))?$");function resolveYamlTimestamp(e){if(e===null)return false;if(Ag.exec(e)!==null)return true;if(mg.exec(e)!==null)return true;return false}function constructYamlTimestamp(e){var t,n,o,i,a,d,m,h=0,f=null,C,P,D;t=Ag.exec(e);if(t===null)t=mg.exec(e);if(t===null)throw new Error("Date resolve error");n=+t[1];o=+t[2]-1;i=+t[3];if(!t[4]){return new Date(Date.UTC(n,o,i))}a=+t[4];d=+t[5];m=+t[6];if(t[7]){h=t[7].slice(0,3);while(h.length<3){h+="0"}h=+h}if(t[9]){C=+t[10];P=+(t[11]||0);f=(C*60+P)*6e4;if(t[9]==="-")f=-f}D=new Date(Date.UTC(n,o,i,a,d,m,h));if(f)D.setTime(D.getTime()-f);return D}function representYamlTimestamp(e){return e.toISOString()}var gg=new Zm("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:resolveYamlTimestamp,construct:constructYamlTimestamp,instanceOf:Date,represent:representYamlTimestamp});function resolveYamlMerge(e){return e==="<<"||e===null}var hg=new Zm("tag:yaml.org,2002:merge",{kind:"scalar",resolve:resolveYamlMerge});var fg="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";function resolveYamlBinary(e){if(e===null)return false;var t,n,o=0,i=e.length,a=fg;for(n=0;n<i;n++){t=a.indexOf(e.charAt(n));if(t>64)continue;if(t<0)return false;o+=6}return o%8===0}function constructYamlBinary(e){var t,n,o=e.replace(/[\r\n=]/g,""),i=o.length,a=fg,d=0,m=[];for(t=0;t<i;t++){if(t%4===0&&t){m.push(d>>16&255);m.push(d>>8&255);m.push(d&255)}d=d<<6|a.indexOf(o.charAt(t))}n=i%4*6;if(n===0){m.push(d>>16&255);m.push(d>>8&255);m.push(d&255)}else if(n===18){m.push(d>>10&255);m.push(d>>2&255)}else if(n===12){m.push(d>>4&255)}return new Uint8Array(m)}function representYamlBinary(e){var t="",n=0,o,i,a=e.length,d=fg;for(o=0;o<a;o++){if(o%3===0&&o){t+=d[n>>18&63];t+=d[n>>12&63];t+=d[n>>6&63];t+=d[n&63]}n=(n<<8)+e[o]}i=a%3;if(i===0){t+=d[n>>18&63];t+=d[n>>12&63];t+=d[n>>6&63];t+=d[n&63]}else if(i===2){t+=d[n>>10&63];t+=d[n>>4&63];t+=d[n<<2&63];t+=d[64]}else if(i===1){t+=d[n>>2&63];t+=d[n<<4&63];t+=d[64];t+=d[64]}return t}function isBinary(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var yg=new Zm("tag:yaml.org,2002:binary",{kind:"scalar",resolve:resolveYamlBinary,construct:constructYamlBinary,predicate:isBinary,represent:representYamlBinary});var Eg=Object.prototype.hasOwnProperty;var Cg=Object.prototype.toString;function resolveYamlOmap(e){if(e===null)return true;var t=[],n,o,i,a,d,m=e;for(n=0,o=m.length;n<o;n+=1){i=m[n];d=false;if(Cg.call(i)!=="[object Object]")return false;for(a in i){if(Eg.call(i,a)){if(!d)d=true;else return false}}if(!d)return false;if(t.indexOf(a)===-1)t.push(a);else return false}return true}function constructYamlOmap(e){return e!==null?e:[]}var Ig=new Zm("tag:yaml.org,2002:omap",{kind:"sequence",resolve:resolveYamlOmap,construct:constructYamlOmap});var bg=Object.prototype.toString;function resolveYamlPairs(e){if(e===null)return true;var t,n,o,i,a,d=e;a=new Array(d.length);for(t=0,n=d.length;t<n;t+=1){o=d[t];if(bg.call(o)!=="[object Object]")return false;i=Object.keys(o);if(i.length!==1)return false;a[t]=[i[0],o[i[0]]]}return true}function constructYamlPairs(e){if(e===null)return[];var t,n,o,i,a,d=e;a=new Array(d.length);for(t=0,n=d.length;t<n;t+=1){o=d[t];i=Object.keys(o);a[t]=[i[0],o[i[0]]]}return a}var Sg=new Zm("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:resolveYamlPairs,construct:constructYamlPairs});var Bg=Object.prototype.hasOwnProperty;function resolveYamlSet(e){if(e===null)return true;var t,n=e;for(t in n){if(Bg.call(n,t)){if(n[t]!==null)return false}}return true}function constructYamlSet(e){return e!==null?e:{}}var wg=new Zm("tag:yaml.org,2002:set",{kind:"mapping",resolve:resolveYamlSet,construct:constructYamlSet});var Rg=pg.extend({implicit:[gg,hg],explicit:[yg,Ig,Sg,wg]});var Ng=Object.prototype.hasOwnProperty;var xg=1;var Qg=2;var Tg=3;var vg=4;var Pg=1;var Dg=2;var kg=3;var _g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var Lg=/[\x85\u2028\u2029]/;var Og=/[,\[\]\{\}]/;var Fg=/^(?:!|!!|![a-z\-]+!)$/i;var Ug=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function setProperty(e,t,n){if(t==="__proto__"){Object.defineProperty(e,t,{configurable:true,enumerable:true,writable:true,value:n})}else{e[t]=n}}var Mg=new Array(256);var Hg=new Array(256);for(var $g=0;$g<256;$g++){Mg[$g]=simpleEscapeSequence($g)?1:0;Hg[$g]=simpleEscapeSequence($g)}function State$1(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||Rg;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};n.snippet=Wm(n);return new Jm(t,n)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var Gg={YAML:function handleYamlDirective(e,t,n){var o,i,a;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(n.length!==1){throwError(e,"YAML directive accepts exactly one argument")}o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);if(o===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(o[1],10);a=parseInt(o[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=n[0];e.checkLineBreaks=a<2;if(a!==1&&a!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,n){var o,i;if(n.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}o=n[0];i=n[1];if(!Fg.test(o)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(Ng.call(e.tagMap,o)){throwError(e,'there is a previously declared suffix for "'+o+'" tag handle')}if(!Ug.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[o]=i}};function captureSegment(e,t,n,o){var i,a,d,m;if(t<n){m=e.input.slice(t,n);if(o){for(i=0,a=m.length;i<a;i+=1){d=m.charCodeAt(i);if(!(d===9||32<=d&&d<=1114111)){throwError(e,"expected valid JSON character")}}}else if(_g.test(m)){throwError(e,"the stream contains non-printable characters")}e.result+=m}}function mergeMappings(e,t,n,o){var i,a,d,m;if(!Ym.isObject(n)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}i=Object.keys(n);for(d=0,m=i.length;d<m;d+=1){a=i[d];if(!Ng.call(t,a)){setProperty(t,a,n[a]);o[a]=true}}}function storeMappingPair(e,t,n,o,i,a,d,m,h){var f,C;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(f=0,C=i.length;f<C;f+=1){if(Array.isArray(i[f])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[f])==="[object Object]"){i[f]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(o==="tag:yaml.org,2002:merge"){if(Array.isArray(a)){for(f=0,C=a.length;f<C;f+=1){mergeMappings(e,t,a[f],n)}}else{mergeMappings(e,t,a,n)}}else{if(!e.json&&!Ng.call(n,i)&&Ng.call(t,i)){e.line=d||e.line;e.lineStart=m||e.lineStart;e.position=h||e.position;throwError(e,"duplicated mapping key")}setProperty(t,i,a);delete n[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,n){var o=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);o++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(n!==-1&&o!==0&&e.lineIndent<n){throwWarning(e,"deficient indentation")}return o}function testDocumentSeparator(e){var t=e.position,n;n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){t+=3;n=e.input.charCodeAt(t);if(n===0||is_WS_OR_EOL(n)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=Ym.repeat("\n",t-1)}}function readPlainScalar(e,t,n){var o,i,a,d,m,h,f,C,P=e.kind,D=e.result,k;k=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(k)||is_FLOW_INDICATOR(k)||k===35||k===38||k===42||k===33||k===124||k===62||k===39||k===34||k===37||k===64||k===96){return false}if(k===63||k===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";a=d=e.position;m=false;while(k!==0){if(k===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||n&&is_FLOW_INDICATOR(i)){break}}else if(k===35){o=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(o)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||n&&is_FLOW_INDICATOR(k)){break}else if(is_EOL(k)){h=e.line;f=e.lineStart;C=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){m=true;k=e.input.charCodeAt(e.position);continue}else{e.position=d;e.line=h;e.lineStart=f;e.lineIndent=C;break}}if(m){captureSegment(e,a,d,false);writeFoldedLines(e,e.line-h);a=d=e.position;m=false}if(!is_WHITE_SPACE(k)){d=e.position+1}k=e.input.charCodeAt(++e.position)}captureSegment(e,a,d,false);if(e.result){return true}e.kind=P;e.result=D;return false}function readSingleQuotedScalar(e,t){var n,o,i;n=e.input.charCodeAt(e.position);if(n!==39){return false}e.kind="scalar";e.result="";e.position++;o=i=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===39){captureSegment(e,o,e.position,true);n=e.input.charCodeAt(++e.position);if(n===39){o=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(n)){captureSegment(e,o,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));o=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var n,o,i,a,d,m;m=e.input.charCodeAt(e.position);if(m!==34){return false}e.kind="scalar";e.result="";e.position++;n=o=e.position;while((m=e.input.charCodeAt(e.position))!==0){if(m===34){captureSegment(e,n,e.position,true);e.position++;return true}else if(m===92){captureSegment(e,n,e.position,true);m=e.input.charCodeAt(++e.position);if(is_EOL(m)){skipSeparationSpace(e,false,t)}else if(m<256&&Mg[m]){e.result+=Hg[m];e.position++}else if((d=escapedHexLen(m))>0){i=d;a=0;for(;i>0;i--){m=e.input.charCodeAt(++e.position);if((d=fromHexCode(m))>=0){a=(a<<4)+d}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(a);e.position++}else{throwError(e,"unknown escape sequence")}n=o=e.position}else if(is_EOL(m)){captureSegment(e,n,o,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));n=o=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;o=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var n=true,o,i,a,d=e.tag,m,h=e.anchor,f,C,P,D,k,L=Object.create(null),F,q,V,ee;ee=e.input.charCodeAt(e.position);if(ee===91){C=93;k=false;m=[]}else if(ee===123){C=125;k=true;m={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=m}ee=e.input.charCodeAt(++e.position);while(ee!==0){skipSeparationSpace(e,true,t);ee=e.input.charCodeAt(e.position);if(ee===C){e.position++;e.tag=d;e.anchor=h;e.kind=k?"mapping":"sequence";e.result=m;return true}else if(!n){throwError(e,"missed comma between flow collection entries")}else if(ee===44){throwError(e,"expected the node content, but found ','")}q=F=V=null;P=D=false;if(ee===63){f=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(f)){P=D=true;e.position++;skipSeparationSpace(e,true,t)}}o=e.line;i=e.lineStart;a=e.position;composeNode(e,t,xg,false,true);q=e.tag;F=e.result;skipSeparationSpace(e,true,t);ee=e.input.charCodeAt(e.position);if((D||e.line===o)&&ee===58){P=true;ee=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,xg,false,true);V=e.result}if(k){storeMappingPair(e,m,L,q,F,V,o,i,a)}else if(P){m.push(storeMappingPair(e,null,L,q,F,V,o,i,a))}else{m.push(F)}skipSeparationSpace(e,true,t);ee=e.input.charCodeAt(e.position);if(ee===44){n=true;ee=e.input.charCodeAt(++e.position)}else{n=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var n,o,i=Pg,a=false,d=false,m=t,h=0,f=false,C,P;P=e.input.charCodeAt(e.position);if(P===124){o=false}else if(P===62){o=true}else{return false}e.kind="scalar";e.result="";while(P!==0){P=e.input.charCodeAt(++e.position);if(P===43||P===45){if(Pg===i){i=P===43?kg:Dg}else{throwError(e,"repeat of a chomping mode identifier")}}else if((C=fromDecimalCode(P))>=0){if(C===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!d){m=t+C-1;d=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(P)){do{P=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(P));if(P===35){do{P=e.input.charCodeAt(++e.position)}while(!is_EOL(P)&&P!==0)}}while(P!==0){readLineBreak(e);e.lineIndent=0;P=e.input.charCodeAt(e.position);while((!d||e.lineIndent<m)&&P===32){e.lineIndent++;P=e.input.charCodeAt(++e.position)}if(!d&&e.lineIndent>m){m=e.lineIndent}if(is_EOL(P)){h++;continue}if(e.lineIndent<m){if(i===kg){e.result+=Ym.repeat("\n",a?1+h:h)}else if(i===Pg){if(a){e.result+="\n"}}break}if(o){if(is_WHITE_SPACE(P)){f=true;e.result+=Ym.repeat("\n",a?1+h:h)}else if(f){f=false;e.result+=Ym.repeat("\n",h+1)}else if(h===0){if(a){e.result+=" "}}else{e.result+=Ym.repeat("\n",h)}}else{e.result+=Ym.repeat("\n",a?1+h:h)}a=true;d=true;h=0;n=e.position;while(!is_EOL(P)&&P!==0){P=e.input.charCodeAt(++e.position)}captureSegment(e,n,e.position,false)}return true}function readBlockSequence(e,t){var n,o=e.tag,i=e.anchor,a=[],d,m=false,h;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=a}h=e.input.charCodeAt(e.position);while(h!==0){if(e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}if(h!==45){break}d=e.input.charCodeAt(e.position+1);if(!is_WS_OR_EOL(d)){break}m=true;e.position++;if(skipSeparationSpace(e,true,-1)){if(e.lineIndent<=t){a.push(null);h=e.input.charCodeAt(e.position);continue}}n=e.line;composeNode(e,t,Tg,false,true);a.push(e.result);skipSeparationSpace(e,true,-1);h=e.input.charCodeAt(e.position);if((e.line===n||e.lineIndent>t)&&h!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndent<t){break}}if(m){e.tag=o;e.anchor=i;e.kind="sequence";e.result=a;return true}return false}function readBlockMapping(e,t,n){var o,i,a,d,m,h,f=e.tag,C=e.anchor,P={},D=Object.create(null),k=null,L=null,F=null,q=false,V=false,ee;if(e.firstTabInLine!==-1)return false;if(e.anchor!==null){e.anchorMap[e.anchor]=P}ee=e.input.charCodeAt(e.position);while(ee!==0){if(!q&&e.firstTabInLine!==-1){e.position=e.firstTabInLine;throwError(e,"tab characters must not be used in indentation")}o=e.input.charCodeAt(e.position+1);a=e.line;if((ee===63||ee===58)&&is_WS_OR_EOL(o)){if(ee===63){if(q){storeMappingPair(e,P,D,k,L,null,d,m,h);k=L=F=null}V=true;q=true;i=true}else if(q){q=false;i=true}else{throwError(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line")}e.position+=1;ee=o}else{d=e.line;m=e.lineStart;h=e.position;if(!composeNode(e,n,Qg,false,true)){break}if(e.line===a){ee=e.input.charCodeAt(e.position);while(is_WHITE_SPACE(ee)){ee=e.input.charCodeAt(++e.position)}if(ee===58){ee=e.input.charCodeAt(++e.position);if(!is_WS_OR_EOL(ee)){throwError(e,"a whitespace character is expected after the key-value separator within a block mapping")}if(q){storeMappingPair(e,P,D,k,L,null,d,m,h);k=L=F=null}V=true;q=false;i=false;k=e.tag;L=e.result}else if(V){throwError(e,"can not read an implicit mapping pair; a colon is missed")}else{e.tag=f;e.anchor=C;return true}}else if(V){throwError(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}else{e.tag=f;e.anchor=C;return true}}if(e.line===a||e.lineIndent>t){if(q){d=e.line;m=e.lineStart;h=e.position}if(composeNode(e,t,vg,true,i)){if(q){L=e.result}else{F=e.result}}if(!q){storeMappingPair(e,P,D,k,L,F,d,m,h);k=L=F=null}skipSeparationSpace(e,true,-1);ee=e.input.charCodeAt(e.position)}if((e.line===a||e.lineIndent>t)&&ee!==0){throwError(e,"bad indentation of a mapping entry")}else if(e.lineIndent<t){break}}if(q){storeMappingPair(e,P,D,k,L,null,d,m,h)}if(V){e.tag=f;e.anchor=C;e.kind="mapping";e.result=P}return V}function readTagProperty(e){var t,n=false,o=false,i,a,d;d=e.input.charCodeAt(e.position);if(d!==33)return false;if(e.tag!==null){throwError(e,"duplication of a tag property")}d=e.input.charCodeAt(++e.position);if(d===60){n=true;d=e.input.charCodeAt(++e.position)}else if(d===33){o=true;i="!!";d=e.input.charCodeAt(++e.position)}else{i="!"}t=e.position;if(n){do{d=e.input.charCodeAt(++e.position)}while(d!==0&&d!==62);if(e.position<e.length){a=e.input.slice(t,e.position);d=e.input.charCodeAt(++e.position)}else{throwError(e,"unexpected end of the stream within a verbatim tag")}}else{while(d!==0&&!is_WS_OR_EOL(d)){if(d===33){if(!o){i=e.input.slice(t-1,e.position+1);if(!Fg.test(i)){throwError(e,"named tag handle cannot contain such characters")}o=true;t=e.position+1}else{throwError(e,"tag suffix cannot contain exclamation marks")}}d=e.input.charCodeAt(++e.position)}a=e.input.slice(t,e.position);if(Og.test(a)){throwError(e,"tag suffix cannot contain flow indicator characters")}}if(a&&!Ug.test(a)){throwError(e,"tag name cannot contain such characters: "+a)}try{a=decodeURIComponent(a)}catch(t){throwError(e,"tag name is malformed: "+a)}if(n){e.tag=a}else if(Ng.call(e.tagMap,i)){e.tag=e.tagMap[i]+a}else if(i==="!"){e.tag="!"+a}else if(i==="!!"){e.tag="tag:yaml.org,2002:"+a}else{throwError(e,'undeclared tag handle "'+i+'"')}return true}function readAnchorProperty(e){var t,n;n=e.input.charCodeAt(e.position);if(n!==38)return false;if(e.anchor!==null){throwError(e,"duplication of an anchor property")}n=e.input.charCodeAt(++e.position);t=e.position;while(n!==0&&!is_WS_OR_EOL(n)&&!is_FLOW_INDICATOR(n)){n=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an anchor node must contain at least one character")}e.anchor=e.input.slice(t,e.position);return true}function readAlias(e){var t,n,o;o=e.input.charCodeAt(e.position);if(o!==42)return false;o=e.input.charCodeAt(++e.position);t=e.position;while(o!==0&&!is_WS_OR_EOL(o)&&!is_FLOW_INDICATOR(o)){o=e.input.charCodeAt(++e.position)}if(e.position===t){throwError(e,"name of an alias node must contain at least one character")}n=e.input.slice(t,e.position);if(!Ng.call(e.anchorMap,n)){throwError(e,'unidentified alias "'+n+'"')}e.result=e.anchorMap[n];skipSeparationSpace(e,true,-1);return true}function composeNode(e,t,n,o,i){var a,d,m,h=1,f=false,C=false,P,D,k,L,F,q;if(e.listener!==null){e.listener("open",e)}e.tag=null;e.anchor=null;e.kind=null;e.result=null;a=d=m=vg===n||Tg===n;if(o){if(skipSeparationSpace(e,true,-1)){f=true;if(e.lineIndent>t){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent<t){h=-1}}}if(h===1){while(readTagProperty(e)||readAnchorProperty(e)){if(skipSeparationSpace(e,true,-1)){f=true;m=a;if(e.lineIndent>t){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent<t){h=-1}}else{m=false}}}if(m){m=f||i}if(h===1||vg===n){if(xg===n||Qg===n){F=t}else{F=t+1}q=e.position-e.lineStart;if(h===1){if(m&&(readBlockSequence(e,q)||readBlockMapping(e,q,F))||readFlowCollection(e,F)){C=true}else{if(d&&readBlockScalar(e,F)||readSingleQuotedScalar(e,F)||readDoubleQuotedScalar(e,F)){C=true}else if(readAlias(e)){C=true;if(e.tag!==null||e.anchor!==null){throwError(e,"alias node should not have any properties")}}else if(readPlainScalar(e,F,xg===n)){C=true;if(e.tag===null){e.tag="?"}}if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}else if(h===0){C=m&&readBlockSequence(e,q)}}if(e.tag===null){if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}else if(e.tag==="?"){if(e.result!==null&&e.kind!=="scalar"){throwError(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"')}for(P=0,D=e.implicitTypes.length;P<D;P+=1){L=e.implicitTypes[P];if(L.resolve(e.result)){e.result=L.construct(e.result);e.tag=L.tag;if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}break}}}else if(e.tag!=="!"){if(Ng.call(e.typeMap[e.kind||"fallback"],e.tag)){L=e.typeMap[e.kind||"fallback"][e.tag]}else{L=null;k=e.typeMap.multi[e.kind||"fallback"];for(P=0,D=k.length;P<D;P+=1){if(e.tag.slice(0,k[P].tag.length)===k[P].tag){L=k[P];break}}}if(!L){throwError(e,"unknown tag !<"+e.tag+">")}if(e.result!==null&&L.kind!==e.kind){throwError(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+L.kind+'", not "'+e.kind+'"')}if(!L.resolve(e.result,e.tag)){throwError(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}else{e.result=L.construct(e.result,e.tag);if(e.anchor!==null){e.anchorMap[e.anchor]=e.result}}}if(e.listener!==null){e.listener("close",e)}return e.tag!==null||e.anchor!==null||C}function readDocument(e){var t=e.position,n,o,i,a=false,d;e.version=null;e.checkLineBreaks=e.legacy;e.tagMap=Object.create(null);e.anchorMap=Object.create(null);while((d=e.input.charCodeAt(e.position))!==0){skipSeparationSpace(e,true,-1);d=e.input.charCodeAt(e.position);if(e.lineIndent>0||d!==37){break}a=true;d=e.input.charCodeAt(++e.position);n=e.position;while(d!==0&&!is_WS_OR_EOL(d)){d=e.input.charCodeAt(++e.position)}o=e.input.slice(n,e.position);i=[];if(o.length<1){throwError(e,"directive name must not be less than one character in length")}while(d!==0){while(is_WHITE_SPACE(d)){d=e.input.charCodeAt(++e.position)}if(d===35){do{d=e.input.charCodeAt(++e.position)}while(d!==0&&!is_EOL(d));break}if(is_EOL(d))break;n=e.position;while(d!==0&&!is_WS_OR_EOL(d)){d=e.input.charCodeAt(++e.position)}i.push(e.input.slice(n,e.position))}if(d!==0)readLineBreak(e);if(Ng.call(Gg,o)){Gg[o](e,o,i)}else{throwWarning(e,'unknown document directive "'+o+'"')}}skipSeparationSpace(e,true,-1);if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45){e.position+=3;skipSeparationSpace(e,true,-1)}else if(a){throwError(e,"directives end mark is expected")}composeNode(e,e.lineIndent-1,vg,false,true);skipSeparationSpace(e,true,-1);if(e.checkLineBreaks&&Lg.test(e.input.slice(t,e.position))){throwWarning(e,"non-ASCII line breaks are interpreted as content")}e.documents.push(e.result);if(e.position===e.lineStart&&testDocumentSeparator(e)){if(e.input.charCodeAt(e.position)===46){e.position+=3;skipSeparationSpace(e,true,-1)}return}if(e.position<e.length-1){throwError(e,"end of the stream or a document separator is expected")}else{return}}function loadDocuments(e,t){e=String(e);t=t||{};if(e.length!==0){if(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13){e+="\n"}if(e.charCodeAt(0)===65279){e=e.slice(1)}}var n=new State$1(e,t);var o=e.indexOf("\0");if(o!==-1){n.position=o;throwError(n,"null byte is not allowed in input")}n.input+="\0";while(n.input.charCodeAt(n.position)===32){n.lineIndent+=1;n.position+=1}while(n.position<n.length-1){readDocument(n)}return n.documents}function loadAll$1(e,t,n){if(t!==null&&typeof t==="object"&&typeof n==="undefined"){n=t;t=null}var o=loadDocuments(e,n);if(typeof t!=="function"){return o}for(var i=0,a=o.length;i<a;i+=1){t(o[i])}}function load$1(e,t){var n=loadDocuments(e,t);if(n.length===0){return undefined}else if(n.length===1){return n[0]}throw new Jm("expected a single document in the stream, but found more")}var qg=loadAll$1;var zg=load$1;var Vg={loadAll:qg,load:zg};var jg=Object.prototype.toString;var Yg=Object.prototype.hasOwnProperty;var Jg=65279;var Wg=9;var Kg=10;var Xg=13;var Zg=32;var eh=33;var th=34;var rh=35;var nh=37;var sh=38;var oh=39;var ih=42;var ah=44;var ch=45;var lh=58;var uh=61;var dh=62;var ph=63;var Ah=64;var mh=91;var gh=93;var hh=96;var fh=123;var yh=124;var Eh=125;var Ch={};Ch[0]="\\0";Ch[7]="\\a";Ch[8]="\\b";Ch[9]="\\t";Ch[10]="\\n";Ch[11]="\\v";Ch[12]="\\f";Ch[13]="\\r";Ch[27]="\\e";Ch[34]='\\"';Ch[92]="\\\\";Ch[133]="\\N";Ch[160]="\\_";Ch[8232]="\\L";Ch[8233]="\\P";var Ih=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var bh=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var n,o,i,a,d,m,h;if(t===null)return{};n={};o=Object.keys(t);for(i=0,a=o.length;i<a;i+=1){d=o[i];m=String(t[d]);if(d.slice(0,2)==="!!"){d="tag:yaml.org,2002:"+d.slice(2)}h=e.compiledTypeMap["fallback"][d];if(h&&Yg.call(h.styleAliases,m)){m=h.styleAliases[m]}n[d]=m}return n}function encodeHex(e){var t,n,o;t=e.toString(16).toUpperCase();if(e<=255){n="x";o=2}else if(e<=65535){n="u";o=4}else if(e<=4294967295){n="U";o=8}else{throw new Jm("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+n+Ym.repeat("0",o-t.length)+t}var Sh=1,Bh=2;function State(e){this.schema=e["schema"]||Rg;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=Ym.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?Bh:Sh;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var n=Ym.repeat(" ",t),o=0,i=-1,a="",d,m=e.length;while(o<m){i=e.indexOf("\n",o);if(i===-1){d=e.slice(o);o=m}else{d=e.slice(o,i+1);o=i+1}if(d.length&&d!=="\n")a+=n;a+=d}return a}function generateNextLine(e,t){return"\n"+Ym.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var n,o,i;for(n=0,o=e.implicitTypes.length;n<o;n+=1){i=e.implicitTypes[n];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===Zg||e===Wg}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Jg||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==Jg&&e!==Xg&&e!==Kg}function isPlainSafe(e,t,n){var o=isNsCharOrWhitespace(e);var i=o&&!isWhitespace(e);return(n?o:o&&e!==ah&&e!==mh&&e!==gh&&e!==fh&&e!==Eh)&&e!==rh&&!(t===lh&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===rh||t===lh&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==Jg&&!isWhitespace(e)&&e!==ch&&e!==ph&&e!==lh&&e!==ah&&e!==mh&&e!==gh&&e!==fh&&e!==Eh&&e!==rh&&e!==sh&&e!==ih&&e!==eh&&e!==yh&&e!==uh&&e!==dh&&e!==oh&&e!==th&&e!==nh&&e!==Ah&&e!==hh}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==lh}function codePointAt(e,t){var n=e.charCodeAt(t),o;if(n>=55296&&n<=56319&&t+1<e.length){o=e.charCodeAt(t+1);if(o>=56320&&o<=57343){return(n-55296)*1024+o-56320+65536}}return n}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var wh=1,Rh=2,Nh=3,xh=4,Qh=5;function chooseScalarStyle(e,t,n,o,i,a,d,m){var h;var f=0;var C=null;var P=false;var D=false;var k=o!==-1;var L=-1;var F=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||d){for(h=0;h<e.length;f>=65536?h+=2:h++){f=codePointAt(e,h);if(!isPrintable(f)){return Qh}F=F&&isPlainSafe(f,C,m);C=f}}else{for(h=0;h<e.length;f>=65536?h+=2:h++){f=codePointAt(e,h);if(f===Kg){P=true;if(k){D=D||h-L-1>o&&e[L+1]!==" ";L=h}}else if(!isPrintable(f)){return Qh}F=F&&isPlainSafe(f,C,m);C=f}D=D||k&&(h-L-1>o&&e[L+1]!==" ")}if(!P&&!D){if(F&&!d&&!i(e)){return wh}return a===Bh?Qh:Rh}if(n>9&&needIndentIndicator(e)){return Qh}if(!d){return D?xh:Nh}return a===Bh?Qh:Rh}function writeScalar(e,t,n,o,i){e.dump=function(){if(t.length===0){return e.quotingType===Bh?'""':"''"}if(!e.noCompatMode){if(Ih.indexOf(t)!==-1||bh.test(t)){return e.quotingType===Bh?'"'+t+'"':"'"+t+"'"}}var a=e.indent*Math.max(1,n);var d=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-a);var m=o||e.flowLevel>-1&&n>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,m,e.indent,d,testAmbiguity,e.quotingType,e.forceQuotes&&!o,i)){case wh:return t;case Rh:return"'"+t.replace(/'/g,"''")+"'";case Nh:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,a));case xh:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,d),a));case Qh:return'"'+escapeString(t)+'"';default:throw new Jm("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var n=needIndentIndicator(e)?String(t):"";var o=e[e.length-1]==="\n";var i=o&&(e[e.length-2]==="\n"||e==="\n");var a=i?"+":o?"":"-";return n+a+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var n=/(\n+)([^\n]*)/g;var o=function(){var o=e.indexOf("\n");o=o!==-1?o:e.length;n.lastIndex=o;return foldLine(e.slice(0,o),t)}();var i=e[0]==="\n"||e[0]===" ";var a;var d;while(d=n.exec(e)){var m=d[1],h=d[2];a=h[0]===" ";o+=m+(!i&&!a&&h!==""?"\n":"")+foldLine(h,t);i=a}return o}function foldLine(e,t){if(e===""||e[0]===" ")return e;var n=/ [^ ]/g;var o;var i=0,a,d=0,m=0;var h="";while(o=n.exec(e)){m=o.index;if(m-i>t){a=d>i?d:m;h+="\n"+e.slice(i,a);i=a+1}d=m}h+="\n";if(e.length-i>t&&d>i){h+=e.slice(i,d)+"\n"+e.slice(d+1)}else{h+=e.slice(i)}return h.slice(1)}function escapeString(e){var t="";var n=0;var o;for(var i=0;i<e.length;n>=65536?i+=2:i++){n=codePointAt(e,i);o=Ch[n];if(!o&&isPrintable(n)){t+=e[i];if(n>=65536)t+=e[i+1]}else{t+=o||encodeHex(n)}}return t}function writeFlowSequence(e,t,n){var o="",i=e.tag,a,d,m;for(a=0,d=n.length;a<d;a+=1){m=n[a];if(e.replacer){m=e.replacer.call(n,String(a),m)}if(writeNode(e,t,m,false,false)||typeof m==="undefined"&&writeNode(e,t,null,false,false)){if(o!=="")o+=","+(!e.condenseFlow?" ":"");o+=e.dump}}e.tag=i;e.dump="["+o+"]"}function writeBlockSequence(e,t,n,o){var i="",a=e.tag,d,m,h;for(d=0,m=n.length;d<m;d+=1){h=n[d];if(e.replacer){h=e.replacer.call(n,String(d),h)}if(writeNode(e,t+1,h,true,true,false,true)||typeof h==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!o||i!==""){i+=generateNextLine(e,t)}if(e.dump&&Kg===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=a;e.dump=i||"[]"}function writeFlowMapping(e,t,n){var o="",i=e.tag,a=Object.keys(n),d,m,h,f,C;for(d=0,m=a.length;d<m;d+=1){C="";if(o!=="")C+=", ";if(e.condenseFlow)C+='"';h=a[d];f=n[h];if(e.replacer){f=e.replacer.call(n,h,f)}if(!writeNode(e,t,h,false,false)){continue}if(e.dump.length>1024)C+="? ";C+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,f,false,false)){continue}C+=e.dump;o+=C}e.tag=i;e.dump="{"+o+"}"}function writeBlockMapping(e,t,n,o){var i="",a=e.tag,d=Object.keys(n),m,h,f,C,P,D;if(e.sortKeys===true){d.sort()}else if(typeof e.sortKeys==="function"){d.sort(e.sortKeys)}else if(e.sortKeys){throw new Jm("sortKeys must be a boolean or a function")}for(m=0,h=d.length;m<h;m+=1){D="";if(!o||i!==""){D+=generateNextLine(e,t)}f=d[m];C=n[f];if(e.replacer){C=e.replacer.call(n,f,C)}if(!writeNode(e,t+1,f,true,true,true)){continue}P=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(P){if(e.dump&&Kg===e.dump.charCodeAt(0)){D+="?"}else{D+="? "}}D+=e.dump;if(P){D+=generateNextLine(e,t)}if(!writeNode(e,t+1,C,true,P)){continue}if(e.dump&&Kg===e.dump.charCodeAt(0)){D+=":"}else{D+=": "}D+=e.dump;i+=D}e.tag=a;e.dump=i||"{}"}function detectType(e,t,n){var o,i,a,d,m,h;i=n?e.explicitTypes:e.implicitTypes;for(a=0,d=i.length;a<d;a+=1){m=i[a];if((m.instanceOf||m.predicate)&&(!m.instanceOf||typeof t==="object"&&t instanceof m.instanceOf)&&(!m.predicate||m.predicate(t))){if(n){if(m.multi&&m.representName){e.tag=m.representName(t)}else{e.tag=m.tag}}else{e.tag="?"}if(m.represent){h=e.styleMap[m.tag]||m.defaultStyle;if(jg.call(m.represent)==="[object Function]"){o=m.represent(t,h)}else if(Yg.call(m.represent,h)){o=m.represent[h](t,h)}else{throw new Jm("!<"+m.tag+'> tag resolver accepts not "'+h+'" style')}e.dump=o}return true}}return false}function writeNode(e,t,n,o,i,a,d){e.tag=null;e.dump=n;if(!detectType(e,n,false)){detectType(e,n,true)}var m=jg.call(e.dump);var h=o;var f;if(o){o=e.flowLevel<0||e.flowLevel>t}var C=m==="[object Object]"||m==="[object Array]",P,D;if(C){P=e.duplicates.indexOf(n);D=P!==-1}if(e.tag!==null&&e.tag!=="?"||D||e.indent!==2&&t>0){i=false}if(D&&e.usedDuplicates[P]){e.dump="*ref_"+P}else{if(C&&D&&!e.usedDuplicates[P]){e.usedDuplicates[P]=true}if(m==="[object Object]"){if(o&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,i);if(D){e.dump="&ref_"+P+e.dump}}else{writeFlowMapping(e,t,e.dump);if(D){e.dump="&ref_"+P+" "+e.dump}}}else if(m==="[object Array]"){if(o&&e.dump.length!==0){if(e.noArrayIndent&&!d&&t>0){writeBlockSequence(e,t-1,e.dump,i)}else{writeBlockSequence(e,t,e.dump,i)}if(D){e.dump="&ref_"+P+e.dump}}else{writeFlowSequence(e,t,e.dump);if(D){e.dump="&ref_"+P+" "+e.dump}}}else if(m==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,a,h)}}else if(m==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new Jm("unacceptable kind of an object to dump "+m)}if(e.tag!==null&&e.tag!=="?"){f=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){f="!"+f}else if(f.slice(0,18)==="tag:yaml.org,2002:"){f="!!"+f.slice(18)}else{f="!<"+f+">"}e.dump=f+" "+e.dump}}return true}function getDuplicateReferences(e,t){var n=[],o=[],i,a;inspectNode(e,n,o);for(i=0,a=o.length;i<a;i+=1){t.duplicates.push(n[o[i]])}t.usedDuplicates=new Array(a)}function inspectNode(e,t,n){var o,i,a;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(n.indexOf(i)===-1){n.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,a=e.length;i<a;i+=1){inspectNode(e[i],t,n)}}else{o=Object.keys(e);for(i=0,a=o.length;i<a;i+=1){inspectNode(e[o[i]],t,n)}}}}}function dump$1(e,t){t=t||{};var n=new State(t);if(!n.noRefs)getDuplicateReferences(e,n);var o=e;if(n.replacer){o=n.replacer.call({"":o},"",o)}if(writeNode(n,0,o,true,true))return n.dump+"\n";return""}var Th=dump$1;var vh={dump:Th};function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}var Ph=Zm;var Dh=eg;var kh=sg;var _h=dg;var Lh=pg;var Oh=Rg;var Fh=Vg.load;var Uh=Vg.loadAll;var Mh=vh.dump;var Hh=Jm;var $h={binary:yg,float:ug,map:ng,null:og,pairs:Sg,set:wg,timestamp:gg,bool:ig,int:ag,merge:hg,omap:Ig,seq:rg,str:tg};var Gh=renamed("safeLoad","load");var qh=renamed("safeLoadAll","loadAll");var zh=renamed("safeDump","dump");var Vh={Type:Ph,Schema:Dh,FAILSAFE_SCHEMA:kh,JSON_SCHEMA:_h,CORE_SCHEMA:Lh,DEFAULT_SCHEMA:Oh,load:Fh,loadAll:Uh,dump:Mh,YAMLException:Hh,types:$h,safeLoad:Gh,safeLoadAll:qh,safeDump:zh};var jh=__nccwpck_require__(1955);class Git{static protoRegexp=new RegExp("^[a-zA-Z0-9]+://");static supportedProtos={http:{},https:{},ssh:{},git:{}};static parseURL(e){const t=e.match(Git.protoRegexp);if(t&&t.length>0){let n=t[0].toLowerCase();n=n.slice(0,n.lastIndexOf("://"));if(!(n in Git.supportedProtos)){throw new Error(`Invalid protocol: ${n}`)}return Git.fromURL(new URL(e))}throw new Error("Unknown protocol")}static fromURL(e){const t=new URL(e.toString());t.hash="";let n;if(e.username||e.password){n={username:e.username,password:e.password,passwordSet:e.password!==""}}return{scheme:e.protocol.slice(0,-1),user:n,host:`${e.hostname}${e.port?":"+e.port:""}`,path:e.pathname,fragment:Git.splitGitFragment(e.hash),remote:t.toString()}}static splitGitFragment(e){if(e===""){return undefined}const[t,n]=e.slice(1).split(":");return{ref:t,subdir:n}}static parseRef(e){const t={};let n;if(e.startsWith("./")||e.startsWith("../")){throw new Error("Invalid argument")}else if(e.startsWith("github.com/")){t.indistinguishableFromLocal=true;n=Git.fromURL(new URL("https://"+e))}else{n=Git.parseURL(e);if(["http","git"].includes(n.scheme)){t.unencryptedTCP=true}if(["http","https"].includes(n.scheme)&&!n.path.endsWith(".git")){throw new Error("Invalid argument")}}t.remote=n.remote;if(t.indistinguishableFromLocal){t.remote=t.remote.split("://")[1]}if(n.fragment){t.commit=n.fragment.ref;t.subDir=n.fragment.subdir}const o=t.remote.split("/");t.shortName=o[o.length-1].replace(".git","");return t}}var Yh=__nccwpck_require__(1288);class Context{static _tmpDir=h.mkdtempSync(f.join(Context.ensureDirExists(process.env.RUNNER_TEMP||a.tmpdir()),"docker-actions-toolkit-"));static ensureDirExists(e){h.mkdirSync(e,{recursive:true});return e}static tmpDir(){return Context._tmpDir}static tmpName(e){return Yh.om(e)}}class Exec{static async exec(e,t,n){core_debug(`Exec.exec: ${e} ${t?.join(" ")}`);return exec_exec(e,t,n)}static async getExecOutput(e,t,n){core_debug(`Exec.getExecOutput: ${e} ${t?.join(" ")}`);return getExecOutput(e,t,n)}}class CsvError extends Error{constructor(e,t,n,...o){if(Array.isArray(t))t=t.join(" ").trim();super(t);if(Error.captureStackTrace!==undefined){Error.captureStackTrace(this,CsvError)}this.code=e;for(const e of o){for(const t in e){const o=e[t];this[t]=Buffer.isBuffer(o)?o.toString(n.encoding):o==null?o:JSON.parse(JSON.stringify(o))}}}}const is_object=function(e){return typeof e==="object"&&e!==null&&!Array.isArray(e)};const normalize_columns_array=function(e){const t=[];for(let n=0,o=e.length;n<o;n++){const o=e[n];if(o===undefined||o===null||o===false){t[n]={disabled:true}}else if(typeof o==="string"||typeof o==="number"){t[n]={name:`${o}`}}else if(is_object(o)){if(typeof o.name!=="string"){throw new CsvError("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${n}`,"when column is an object literal"])}t[n]=o}else{throw new CsvError("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(o)} at position ${n}`])}}return t};class ResizeableBuffer{constructor(e=100){this.size=e;this.length=0;this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){const t=this.length+e.length;if(t>=this.size){this.resize();if(t>=this.size){throw Error("INVALID_BUFFER_STATE")}}const n=this.buf;this.buf=Buffer.allocUnsafe(this.size);e.copy(this.buf,0);n.copy(this.buf,e.length);this.length+=e.length}else{const t=this.length++;if(t===this.size){this.resize()}const n=this.clone();this.buf[0]=e;n.copy(this.buf,1,0,t)}}append(e){const t=this.length++;if(t===this.size){this.resize()}this.buf[t]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){const e=this.length;this.size=this.size*2;const t=Buffer.allocUnsafe(this.size);this.buf.copy(t,0,0,e);this.buf=t}toString(e){if(e){return this.buf.slice(0,this.length).toString(e)}else{return Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}}toJSON(){return this.toString("utf8")}reset(){this.length=0}}const Jh=ResizeableBuffer;const Wh=12;const Kh=13;const Xh=10;const Zh=32;const ef=9;const init_state=function(e){return{bomSkipped:false,bufBytesStart:0,castField:e.cast_function,commenting:false,error:undefined,enabled:e.from_line===1,escaping:false,escapeIsQuote:Buffer.isBuffer(e.escape)&&Buffer.isBuffer(e.quote)&&Buffer.compare(e.escape,e.quote)===0,expectedRecordLength:Array.isArray(e.columns)?e.columns.length:undefined,field:new Jh(20),firstLineToHeaders:e.cast_first_line_to_header,needMoreDataSize:Math.max(e.comment!==null?e.comment.length:0,...e.delimiter.map((e=>e.length)),e.quote!==null?e.quote.length:0),previousBuf:undefined,quoting:false,stop:false,rawBuffer:new Jh(100),record:[],recordHasError:false,record_length:0,recordDelimiterMaxLength:e.record_delimiter.length===0?0:Math.max(...e.record_delimiter.map((e=>e.length))),trimChars:[Buffer.from(" ",e.encoding)[0],Buffer.from("\t",e.encoding)[0]],wasQuoting:false,wasRowDelimiter:false,timchars:[Buffer.from(Buffer.from([Kh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Xh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Wh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([Zh],"utf8").toString(),e.encoding),Buffer.from(Buffer.from([ef],"utf8").toString(),e.encoding)]}};const underscore=function(e){return e.replace(/([A-Z])/g,(function(e,t){return"_"+t.toLowerCase()}))};const normalize_options=function(e){const t={};for(const n in e){t[underscore(n)]=e[n]}if(t.encoding===undefined||t.encoding===true){t.encoding="utf8"}else if(t.encoding===null||t.encoding===false){t.encoding=null}else if(typeof t.encoding!=="string"&&t.encoding!==null){throw new CsvError("CSV_INVALID_OPTION_ENCODING",["Invalid option encoding:","encoding must be a string or null to return a buffer,",`got ${JSON.stringify(t.encoding)}`],t)}if(t.bom===undefined||t.bom===null||t.bom===false){t.bom=false}else if(t.bom!==true){throw new CsvError("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`],t)}t.cast_function=null;if(t.cast===undefined||t.cast===null||t.cast===false||t.cast===""){t.cast=undefined}else if(typeof t.cast==="function"){t.cast_function=t.cast;t.cast=true}else if(t.cast!==true){throw new CsvError("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`],t)}if(t.cast_date===undefined||t.cast_date===null||t.cast_date===false||t.cast_date===""){t.cast_date=false}else if(t.cast_date===true){t.cast_date=function(e){const t=Date.parse(e);return!isNaN(t)?new Date(t):e}}else if(typeof t.cast_date!=="function"){throw new CsvError("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`],t)}t.cast_first_line_to_header=undefined;if(t.columns===true){t.cast_first_line_to_header=undefined}else if(typeof t.columns==="function"){t.cast_first_line_to_header=t.columns;t.columns=true}else if(Array.isArray(t.columns)){t.columns=normalize_columns_array(t.columns)}else if(t.columns===undefined||t.columns===null||t.columns===false){t.columns=false}else{throw new CsvError("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an array, a function or true,",`got ${JSON.stringify(t.columns)}`],t)}if(t.group_columns_by_name===undefined||t.group_columns_by_name===null||t.group_columns_by_name===false){t.group_columns_by_name=false}else if(t.group_columns_by_name!==true){throw new CsvError("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","expect an boolean,",`got ${JSON.stringify(t.group_columns_by_name)}`],t)}else if(t.columns===false){throw new CsvError("CSV_INVALID_OPTION_GROUP_COLUMNS_BY_NAME",["Invalid option group_columns_by_name:","the `columns` mode must be activated."],t)}if(t.comment===undefined||t.comment===null||t.comment===false||t.comment===""){t.comment=null}else{if(typeof t.comment==="string"){t.comment=Buffer.from(t.comment,t.encoding)}if(!Buffer.isBuffer(t.comment)){throw new CsvError("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`],t)}}if(t.comment_no_infix===undefined||t.comment_no_infix===null||t.comment_no_infix===false){t.comment_no_infix=false}else if(t.comment_no_infix!==true){throw new CsvError("CSV_INVALID_OPTION_COMMENT",["Invalid option comment_no_infix:","value must be a boolean,",`got ${JSON.stringify(t.comment_no_infix)}`],t)}const n=JSON.stringify(t.delimiter);if(!Array.isArray(t.delimiter))t.delimiter=[t.delimiter];if(t.delimiter.length===0){throw new CsvError("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t)}t.delimiter=t.delimiter.map((function(e){if(e===undefined||e===null||e===false){return Buffer.from(",",t.encoding)}if(typeof e==="string"){e=Buffer.from(e,t.encoding)}if(!Buffer.isBuffer(e)||e.length===0){throw new CsvError("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer or array of string|buffer,",`got ${n}`],t)}return e}));if(t.escape===undefined||t.escape===true){t.escape=Buffer.from('"',t.encoding)}else if(typeof t.escape==="string"){t.escape=Buffer.from(t.escape,t.encoding)}else if(t.escape===null||t.escape===false){t.escape=null}if(t.escape!==null){if(!Buffer.isBuffer(t.escape)){throw new Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`)}}if(t.from===undefined||t.from===null){t.from=1}else{if(typeof t.from==="string"&&/\d+/.test(t.from)){t.from=parseInt(t.from)}if(Number.isInteger(t.from)){if(t.from<0){throw new Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}}else{throw new Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`)}}if(t.from_line===undefined||t.from_line===null){t.from_line=1}else{if(typeof t.from_line==="string"&&/\d+/.test(t.from_line)){t.from_line=parseInt(t.from_line)}if(Number.isInteger(t.from_line)){if(t.from_line<=0){throw new Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}}else{throw new Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`)}}if(t.ignore_last_delimiters===undefined||t.ignore_last_delimiters===null){t.ignore_last_delimiters=false}else if(typeof t.ignore_last_delimiters==="number"){t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters);if(t.ignore_last_delimiters===0){t.ignore_last_delimiters=false}}else if(typeof t.ignore_last_delimiters!=="boolean"){throw new CsvError("CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS",["Invalid option `ignore_last_delimiters`:","the value must be a boolean value or an integer,",`got ${JSON.stringify(t.ignore_last_delimiters)}`],t)}if(t.ignore_last_delimiters===true&&t.columns===false){throw new CsvError("CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS",["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t)}if(t.info===undefined||t.info===null||t.info===false){t.info=false}else if(t.info!==true){throw new Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`)}if(t.max_record_size===undefined||t.max_record_size===null||t.max_record_size===false){t.max_record_size=0}else if(Number.isInteger(t.max_record_size)&&t.max_record_size>=0){}else if(typeof t.max_record_size==="string"&&/\d+/.test(t.max_record_size)){t.max_record_size=parseInt(t.max_record_size)}else{throw new Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`)}if(t.objname===undefined||t.objname===null||t.objname===false){t.objname=undefined}else if(Buffer.isBuffer(t.objname)){if(t.objname.length===0){throw new Error(`Invalid Option: objname must be a non empty buffer`)}if(t.encoding===null){}else{t.objname=t.objname.toString(t.encoding)}}else if(typeof t.objname==="string"){if(t.objname.length===0){throw new Error(`Invalid Option: objname must be a non empty string`)}}else if(typeof t.objname==="number"){}else{throw new Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`)}if(t.objname!==undefined){if(typeof t.objname==="number"){if(t.columns!==false){throw Error("Invalid Option: objname index cannot be combined with columns or be defined as a field")}}else{if(t.columns===false){throw Error("Invalid Option: objname field must be combined with columns or be defined as an index")}}}if(t.on_record===undefined||t.on_record===null){t.on_record=undefined}else if(typeof t.on_record!=="function"){throw new CsvError("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`],t)}if(t.on_skip!==undefined&&t.on_skip!==null&&typeof t.on_skip!=="function"){throw new Error(`Invalid Option: on_skip must be a function, got ${JSON.stringify(t.on_skip)}`)}if(t.quote===null||t.quote===false||t.quote===""){t.quote=null}else{if(t.quote===undefined||t.quote===true){t.quote=Buffer.from('"',t.encoding)}else if(typeof t.quote==="string"){t.quote=Buffer.from(t.quote,t.encoding)}if(!Buffer.isBuffer(t.quote)){throw new Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`)}}if(t.raw===undefined||t.raw===null||t.raw===false){t.raw=false}else if(t.raw!==true){throw new Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`)}if(t.record_delimiter===undefined){t.record_delimiter=[]}else if(typeof t.record_delimiter==="string"||Buffer.isBuffer(t.record_delimiter)){if(t.record_delimiter.length===0){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t)}t.record_delimiter=[t.record_delimiter]}else if(!Array.isArray(t.record_delimiter)){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer,",`got ${JSON.stringify(t.record_delimiter)}`],t)}t.record_delimiter=t.record_delimiter.map((function(e,n){if(typeof e!=="string"&&!Buffer.isBuffer(e)){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a string, a buffer or array of string|buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t)}else if(e.length===0){throw new CsvError("CSV_INVALID_OPTION_RECORD_DELIMITER",["Invalid option `record_delimiter`:","value must be a non empty string or buffer",`at index ${n},`,`got ${JSON.stringify(e)}`],t)}if(typeof e==="string"){e=Buffer.from(e,t.encoding)}return e}));if(typeof t.relax_column_count==="boolean"){}else if(t.relax_column_count===undefined||t.relax_column_count===null){t.relax_column_count=false}else{throw new Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`)}if(typeof t.relax_column_count_less==="boolean"){}else if(t.relax_column_count_less===undefined||t.relax_column_count_less===null){t.relax_column_count_less=false}else{throw new Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`)}if(typeof t.relax_column_count_more==="boolean"){}else if(t.relax_column_count_more===undefined||t.relax_column_count_more===null){t.relax_column_count_more=false}else{throw new Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`)}if(typeof t.relax_quotes==="boolean"){}else if(t.relax_quotes===undefined||t.relax_quotes===null){t.relax_quotes=false}else{throw new Error(`Invalid Option: relax_quotes must be a boolean, got ${JSON.stringify(t.relax_quotes)}`)}if(typeof t.skip_empty_lines==="boolean"){}else if(t.skip_empty_lines===undefined||t.skip_empty_lines===null){t.skip_empty_lines=false}else{throw new Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`)}if(typeof t.skip_records_with_empty_values==="boolean"){}else if(t.skip_records_with_empty_values===undefined||t.skip_records_with_empty_values===null){t.skip_records_with_empty_values=false}else{throw new Error(`Invalid Option: skip_records_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_records_with_empty_values)}`)}if(typeof t.skip_records_with_error==="boolean"){}else if(t.skip_records_with_error===undefined||t.skip_records_with_error===null){t.skip_records_with_error=false}else{throw new Error(`Invalid Option: skip_records_with_error must be a boolean, got ${JSON.stringify(t.skip_records_with_error)}`)}if(t.rtrim===undefined||t.rtrim===null||t.rtrim===false){t.rtrim=false}else if(t.rtrim!==true){throw new Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`)}if(t.ltrim===undefined||t.ltrim===null||t.ltrim===false){t.ltrim=false}else if(t.ltrim!==true){throw new Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`)}if(t.trim===undefined||t.trim===null||t.trim===false){t.trim=false}else if(t.trim!==true){throw new Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`)}if(t.trim===true&&e.ltrim!==false){t.ltrim=true}else if(t.ltrim!==true){t.ltrim=false}if(t.trim===true&&e.rtrim!==false){t.rtrim=true}else if(t.rtrim!==true){t.rtrim=false}if(t.to===undefined||t.to===null){t.to=-1}else if(t.to!==-1){if(typeof t.to==="string"&&/\d+/.test(t.to)){t.to=parseInt(t.to)}if(Number.isInteger(t.to)){if(t.to<=0){throw new Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}}else{throw new Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`)}}if(t.to_line===undefined||t.to_line===null){t.to_line=-1}else if(t.to_line!==-1){if(typeof t.to_line==="string"&&/\d+/.test(t.to_line)){t.to_line=parseInt(t.to_line)}if(Number.isInteger(t.to_line)){if(t.to_line<=0){throw new Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}}else{throw new Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`)}}return t};const isRecordEmpty=function(e){return e.every((e=>e==null||e.toString&&e.toString().trim()===""))};const tf=13;const rf=10;const nf={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])};const transform=function(e={}){const t={bytes:0,bytes_records:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0};const n=normalize_options(e);return{info:t,original_options:e,options:n,state:init_state(n),__needMoreData:function(e,t,n){if(n)return false;const{encoding:o,escape:i,quote:a}=this.options;const{quoting:d,needMoreDataSize:m,recordDelimiterMaxLength:h}=this.state;const f=t-e-1;const C=Math.max(m,h===0?Buffer.from("\r\n",o).length:h,d?(i===null?0:i.length)+a.length:0,d?a.length+h:0);return f<C},parse:function(e,t,n,o){const{bom:i,comment_no_infix:a,encoding:d,from_line:m,ltrim:h,max_record_size:f,raw:C,relax_quotes:P,rtrim:D,skip_empty_lines:k,to:L,to_line:F}=this.options;let{comment:q,escape:V,quote:ee,record_delimiter:te}=this.options;const{bomSkipped:re,previousBuf:ne,rawBuffer:se,escapeIsQuote:oe}=this.state;let ie;if(ne===undefined){if(e===undefined){o();return}else{ie=e}}else if(ne!==undefined&&e===undefined){ie=ne}else{ie=Buffer.concat([ne,e])}if(re===false){if(i===false){this.state.bomSkipped=true}else if(ie.length<3){if(t===false){this.state.previousBuf=ie;return}}else{for(const e in nf){if(nf[e].compare(ie,0,nf[e].length)===0){const t=nf[e].length;this.state.bufBytesStart+=t;ie=ie.slice(t);const n=normalize_options({...this.original_options,encoding:e});for(const e in n){this.options[e]=n[e]}({comment:q,escape:V,quote:ee}=this.options);break}}this.state.bomSkipped=true}}const ae=ie.length;let ce;for(ce=0;ce<ae;ce++){if(this.__needMoreData(ce,ae,t)){break}if(this.state.wasRowDelimiter===true){this.info.lines++;this.state.wasRowDelimiter=false}if(F!==-1&&this.info.lines>F){this.state.stop=true;o();return}if(this.state.quoting===false&&te.length===0){const e=this.__autoDiscoverRecordDelimiter(ie,ce);if(e){te=this.options.record_delimiter}}const e=ie[ce];if(C===true){se.append(e)}if((e===tf||e===rf)&&this.state.wasRowDelimiter===false){this.state.wasRowDelimiter=true}if(this.state.escaping===true){this.state.escaping=false}else{if(V!==null&&this.state.quoting===true&&this.__isEscape(ie,ce,e)&&ce+V.length<ae){if(oe){if(this.__isQuote(ie,ce+V.length)){this.state.escaping=true;ce+=V.length-1;continue}}else{this.state.escaping=true;ce+=V.length-1;continue}}if(this.state.commenting===false&&this.__isQuote(ie,ce)){if(this.state.quoting===true){const t=ie[ce+ee.length];const n=D&&this.__isCharTrimable(ie,ce+ee.length);const o=q!==null&&this.__compareBytes(q,ie,ce+ee.length,t);const i=this.__isDelimiter(ie,ce+ee.length,t);const a=te.length===0?this.__autoDiscoverRecordDelimiter(ie,ce+ee.length):this.__isRecordDelimiter(t,ie,ce+ee.length);if(V!==null&&this.__isEscape(ie,ce,e)&&this.__isQuote(ie,ce+V.length)){ce+=V.length-1}else if(!t||i||a||o||n){this.state.quoting=false;this.state.wasQuoting=true;ce+=ee.length-1;continue}else if(P===false){const e=this.__error(new CsvError("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(e!==undefined)return e}else{this.state.quoting=false;this.state.wasQuoting=true;this.state.field.prepend(ee);ce+=ee.length-1}}else{if(this.state.field.length!==0){if(P===false){const e=this.__infoField();const t=Object.keys(nf).map((e=>nf[e].equals(this.state.field.toString())?e:false)).filter(Boolean)[0];const n=this.__error(new CsvError("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(e.column)} at line ${e.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,t?`(${t} bom)`:undefined],this.options,e,{field:this.state.field}));if(n!==undefined)return n}}else{this.state.quoting=true;ce+=ee.length-1;continue}}}if(this.state.quoting===false){const t=this.__isRecordDelimiter(e,ie,ce);if(t!==0){const e=this.state.commenting&&this.state.wasQuoting===false&&this.state.record.length===0&&this.state.field.length===0;if(e){this.info.comment_lines++}else{if(this.state.enabled===false&&this.info.lines+(this.state.wasRowDelimiter===true?1:0)>=m){this.state.enabled=true;this.__resetField();this.__resetRecord();ce+=t-1;continue}if(k===true&&this.state.wasQuoting===false&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++;ce+=t-1;continue}this.info.bytes=this.state.bufBytesStart+ce;const e=this.__onField();if(e!==undefined)return e;this.info.bytes=this.state.bufBytesStart+ce+t;const i=this.__onRecord(n);if(i!==undefined)return i;if(L!==-1&&this.info.records>=L){this.state.stop=true;o();return}}this.state.commenting=false;ce+=t-1;continue}if(this.state.commenting){continue}if(q!==null&&(a===false||this.state.record.length===0&&this.state.field.length===0)){const t=this.__compareBytes(q,ie,ce,e);if(t!==0){this.state.commenting=true;continue}}const i=this.__isDelimiter(ie,ce,e);if(i!==0){this.info.bytes=this.state.bufBytesStart+ce;const e=this.__onField();if(e!==undefined)return e;ce+=i-1;continue}}}if(this.state.commenting===false){if(f!==0&&this.state.record_length+this.state.field.length>f){return this.__error(new CsvError("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()))}}const i=h===false||this.state.quoting===true||this.state.field.length!==0||!this.__isCharTrimable(ie,ce);const re=D===false||this.state.wasQuoting===false;if(i===true&&re===true){this.state.field.append(e)}else if(D===true&&!this.__isCharTrimable(ie,ce)){return this.__error(new CsvError("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()))}else{if(i===false){ce+=this.__isCharTrimable(ie,ce)-1}continue}}if(t===true){if(this.state.quoting===true){const e=this.__error(new CsvError("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==undefined)return e}else{if(this.state.wasQuoting===true||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+ce;const e=this.__onField();if(e!==undefined)return e;const t=this.__onRecord(n);if(t!==undefined)return t}else if(this.state.wasRowDelimiter===true){this.info.empty_lines++}else if(this.state.commenting===true){this.info.comment_lines++}}}else{this.state.bufBytesStart+=ce;this.state.previousBuf=ie.slice(ce)}if(this.state.wasRowDelimiter===true){this.info.lines++;this.state.wasRowDelimiter=false}},__onRecord:function(e){const{columns:t,group_columns_by_name:n,encoding:o,info:i,from:a,relax_column_count:d,relax_column_count_less:m,relax_column_count_more:h,raw:f,skip_records_with_empty_values:C}=this.options;const{enabled:P,record:D}=this.state;if(P===false){return this.__resetRecord()}const k=D.length;if(t===true){if(C===true&&isRecordEmpty(D)){this.__resetRecord();return}return this.__firstLineToColumns(D)}if(t===false&&this.info.records===0){this.state.expectedRecordLength=k}if(k!==this.state.expectedRecordLength){const e=t===false?new CsvError("CSV_RECORD_INCONSISTENT_FIELDS_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${k} on line ${this.info.lines}`],this.options,this.__infoField(),{record:D}):new CsvError("CSV_RECORD_INCONSISTENT_COLUMNS",["Invalid Record Length:",`columns length is ${t.length},`,`got ${k} on line ${this.info.lines}`],this.options,this.__infoField(),{record:D});if(d===true||m===true&&k<this.state.expectedRecordLength||h===true&&k>this.state.expectedRecordLength){this.info.invalid_field_length++;this.state.error=e}else{const t=this.__error(e);if(t)return t}}if(C===true&&isRecordEmpty(D)){this.__resetRecord();return}if(this.state.recordHasError===true){this.__resetRecord();this.state.recordHasError=false;return}this.info.records++;if(a===1||this.info.records>=a){const{objname:a}=this.options;if(t!==false){const d={};for(let e=0,o=D.length;e<o;e++){if(t[e]===undefined||t[e].disabled)continue;if(n===true&&d[t[e].name]!==undefined){if(Array.isArray(d[t[e].name])){d[t[e].name]=d[t[e].name].concat(D[e])}else{d[t[e].name]=[d[t[e].name],D[e]]}}else{d[t[e].name]=D[e]}}if(f===true||i===true){const t=Object.assign({record:d},f===true?{raw:this.state.rawBuffer.toString(o)}:{},i===true?{info:this.__infoRecord()}:{});const n=this.__push(a===undefined?t:[d[a],t],e);if(n){return n}}else{const t=this.__push(a===undefined?d:[d[a],d],e);if(t){return t}}}else{if(f===true||i===true){const t=Object.assign({record:D},f===true?{raw:this.state.rawBuffer.toString(o)}:{},i===true?{info:this.__infoRecord()}:{});const n=this.__push(a===undefined?t:[D[a],t],e);if(n){return n}}else{const t=this.__push(a===undefined?D:[D[a],D],e);if(t){return t}}}}this.__resetRecord()},__firstLineToColumns:function(e){const{firstLineToHeaders:t}=this.state;try{const n=t===undefined?e:t.call(null,e);if(!Array.isArray(n)){return this.__error(new CsvError("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}))}const o=normalize_columns_array(n);this.state.expectedRecordLength=o.length;this.options.columns=o;this.__resetRecord();return}catch(e){return e}},__resetRecord:function(){if(this.options.raw===true){this.state.rawBuffer.reset()}this.state.error=undefined;this.state.record=[];this.state.record_length=0},__onField:function(){const{cast:e,encoding:t,rtrim:n,max_record_size:o}=this.options;const{enabled:i,wasQuoting:a}=this.state;if(i===false){return this.__resetField()}let d=this.state.field.toString(t);if(n===true&&a===false){d=d.trimRight()}if(e===true){const[e,t]=this.__cast(d);if(e!==undefined)return e;d=t}this.state.record.push(d);if(o!==0&&typeof d==="string"){this.state.record_length+=d.length}this.__resetField()},__resetField:function(){this.state.field.reset();this.state.wasQuoting=false},__push:function(e,t){const{on_record:n}=this.options;if(n!==undefined){const t=this.__infoRecord();try{e=n.call(null,e,t)}catch(e){return e}if(e===undefined||e===null){return}}this.info.bytes_records+=this.info.bytes;t(e)},__cast:function(e){const{columns:t,relax_column_count:n}=this.options;const o=Array.isArray(t);if(o===true&&n&&this.options.columns.length<=this.state.record.length){return[undefined,undefined]}if(this.state.castField!==null){try{const t=this.__infoField();return[undefined,this.state.castField.call(null,e,t)]}catch(e){return[e]}}if(this.__isFloat(e)){return[undefined,parseFloat(e)]}else if(this.options.cast_date!==false){const t=this.__infoField();return[undefined,this.options.cast_date.call(null,e,t)]}return[undefined,e]},__isCharTrimable:function(e,t){const isTrim=(e,t)=>{const{timchars:n}=this.state;e:for(let o=0;o<n.length;o++){const i=n[o];for(let n=0;n<i.length;n++){if(i[n]!==e[t+n])continue e}return i.length}return 0};return isTrim(e,t)},__isFloat:function(e){return e-parseFloat(e)+1>=0},__compareBytes:function(e,t,n,o){if(e[0]!==o)return 0;const i=e.length;for(let o=1;o<i;o++){if(e[o]!==t[n+o])return 0}return i},__isDelimiter:function(e,t,n){const{delimiter:o,ignore_last_delimiters:i}=this.options;if(i===true&&this.state.record.length===this.options.columns.length-1){return 0}else if(i!==false&&typeof i==="number"&&this.state.record.length===i-1){return 0}e:for(let i=0;i<o.length;i++){const a=o[i];if(a[0]===n){for(let n=1;n<a.length;n++){if(a[n]!==e[t+n])continue e}return a.length}}return 0},__isRecordDelimiter:function(e,t,n){const{record_delimiter:o}=this.options;const i=o.length;e:for(let a=0;a<i;a++){const i=o[a];const d=i.length;if(i[0]!==e){continue}for(let e=1;e<d;e++){if(i[e]!==t[n+e]){continue e}}return i.length}return 0},__isEscape:function(e,t,n){const{escape:o}=this.options;if(o===null)return false;const i=o.length;if(o[0]===n){for(let n=0;n<i;n++){if(o[n]!==e[t+n]){return false}}return true}return false},__isQuote:function(e,t){const{quote:n}=this.options;if(n===null)return false;const o=n.length;for(let i=0;i<o;i++){if(n[i]!==e[t+i]){return false}}return true},__autoDiscoverRecordDelimiter:function(e,t){const{encoding:n}=this.options;const o=[Buffer.from("\r\n",n),Buffer.from("\n",n),Buffer.from("\r",n)];e:for(let n=0;n<o.length;n++){const i=o[n].length;for(let a=0;a<i;a++){if(o[n][a]!==e[t+a]){continue e}}this.options.record_delimiter.push(o[n]);this.state.recordDelimiterMaxLength=o[n].length;return o[n].length}return 0},__error:function(e){const{encoding:t,raw:n,skip_records_with_error:o}=this.options;const i=typeof e==="string"?new Error(e):e;if(o){this.state.recordHasError=true;if(this.options.on_skip!==undefined){try{this.options.on_skip(i,n?this.state.rawBuffer.toString(t):undefined)}catch(i){return i}}return undefined}else{return i}},__infoDataSet:function(){return{...this.info,columns:this.options.columns}},__infoRecord:function(){const{columns:e,raw:t,encoding:n}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:e===true,index:this.state.record.length,raw:t?this.state.rawBuffer.toString(n):undefined}},__infoField:function(){const{columns:e}=this.options;const t=Array.isArray(e);const n=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:n,column:t===true?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}}};const sync_parse=function(e,t={}){if(typeof e==="string"){e=Buffer.from(e)}const n=t&&t.objname?{}:[];const o=transform(t);const push=e=>{if(o.options.objname===undefined)n.push(e);else{n[e[0]]=e[1]}};const close=()=>{};const i=o.parse(e,true,push,close);if(i!==undefined)throw i;return n};class Util{static getInputList(e,t){return this.getList(getInput(e),t)}static getList(e,t){const n=[];if(e==""){return n}const o=sync_parse(e,{columns:false,relaxQuotes:true,comment:t?.comment,comment_no_infix:t?.commentNoInfix,relaxColumnCount:true,skipEmptyLines:true,quote:t?.quote});for(const e of o){if(e.length==1){if(t?.ignoreComma){n.push(e[0])}else{n.push(...e[0].split(","))}}else if(!t?.ignoreComma){n.push(...e)}else{n.push(e.join(","))}}return n.filter((e=>e)).map((e=>e.trim()))}static getInputNumber(e){const t=getInput(e);if(!t){return undefined}return parseInt(t)}static async asyncForEach(e,t){for(let n=0;n<e.length;n++){await t(e[n],n,e)}}static isValidURL(e){let t;try{t=new URL(e)}catch{return false}return t.protocol==="http:"||t.protocol==="https:"}static isValidRef(e){if(Util.isValidURL(e)){return true}for(const t of["git://","github.com/","git@"]){if(e.startsWith(t)){return true}}return false}static async powershellCommand(e,t){const n=await which("powershell",true);const o=e.replace(/'/g,"''").replace(/"|\n|\r/g,"");const i=[];if(t){for(const e in t){i.push(`-${e} '${t[e].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`)}}return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${i.join(" ")}`]}}static isDirectory(e){try{return h.lstatSync(e).isDirectory()}catch{}return false}static trimPrefix(e,t){if(!e||!t){return e}const n=e.indexOf(t);if(n!==0){return e}return e.substring(t.length)}static trimSuffix(e,t){if(!e||!t){return e}const n=e.lastIndexOf(t);if(n===-1||n+t.length!==e.length){return e}return e.substring(0,n)}static sleep(e){return new Promise((t=>setTimeout(t,e*1e3)))}static hash(e){return m.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===undefined){return false}switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return true;case"0":case"f":case"F":case"false":case"FALSE":case"False":return false;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,t=false){try{return this.parseBool(e)}catch{return t}}static formatFileSize(e){if(e===0)return"0 Bytes";const t=1024;const n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];const o=Math.floor(Math.log(e)/Math.log(t));return parseFloat((e/Math.pow(t,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){const t=m.randomBytes(Math.ceil(e/2));return t.toString("hex").slice(0,e)}static stringToUnicodeEntities(e){return Array.from(e).map((e=>`&#x${e.charCodeAt(0).toString(16)};`)).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,t){const n=f.resolve(e);const o=f.resolve(t);return o.startsWith(n.endsWith(f.sep)?n:`${n}${f.sep}`)}static formatDuration(e){if(e===0)return"0s";const t=Math.floor(e/1e9);const n=Math.floor(t/3600);const o=Math.floor(t%3600/60);const i=t%60;const a=[];if(n)a.push(`${n}h`);if(o)a.push(`${o}m`);if(i||a.length===0)a.push(`${i}s`);return a.join("")}}class Docker{static get configDir(){return process.env.DOCKER_CONFIG||f.join(a.homedir(),".docker")}static configFile(){const e=f.join(Docker.configDir,"config.json");if(!h.existsSync(e)){return undefined}return JSON.parse(h.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await which("docker",true).then((e=>{core_debug(`Docker.isAvailable ok: ${e}`);return true})).catch((e=>{core_debug(`Docker.isAvailable error: ${e}`);return false}))}static async isDaemonRunning(){try{await Docker.getExecOutput([`version`],{silent:true});return true}catch{return false}}static async exec(e,t){return Exec.exec("docker",e,Docker.execOptions(t))}static async getExecOutput(e,t){return Exec.getExecOutput("docker",e,Docker.execOptions(t))}static execOptions(e){if(!e){e={}}if(!e.env){e.env=Object.assign({},process.env,{DOCKER_CONTENT_TRUST:"false"})}else{e.env.DOCKER_CONTENT_TRUST="false"}return e}static async context(e){const t=["context","inspect","--format","{{.Name}}"];if(e){t.push(e)}return await Docker.getExecOutput(t,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr)}return e.stdout.trim()}))}static async contextInspect(e){const t=["context","inspect","--format=json"];if(e){t.push(e)}return await Docker.getExecOutput(t,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}return JSON.parse(e.stdout.trim())[0]}))}static async printVersion(){await Docker.exec(["version"])}static async printInfo(){await Docker.exec(["info"])}static parseRepoTag(e){let t;const n=e.indexOf("@");const o=e.lastIndexOf(":");if(n>=0){t=n}else if(o>=0){t=o}else{return{repository:e,tag:"latest"}}const i=e.slice(t+1);if(i.indexOf("/")===-1){return{repository:e.slice(0,t),tag:i}}return{repository:e,tag:"latest"}}static async pull(e,t){const n=Docker.parseRepoTag(e);const o=n.repository.replace(/[^a-zA-Z0-9.]+/g,"--");const i=n.tag.replace(/[^a-zA-Z0-9.]+/g,"--");const a=new Cache({htcName:o,htcVersion:i,baseCacheDir:f.join(Docker.configDir,".cache","images",o),cacheFile:"image.tar"});let d;if(t){d=await a.find();if(d){info(`Image found from cache in ${d}`);await Docker.getExecOutput(["load","-i",d],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(`Failed to load image from cache: ${e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)}}))}}let m=true;await Docker.getExecOutput(["pull",e],{ignoreReturnCode:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){m=false;const t=e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error";if(d){warning(`Failed to pull image, using one from cache: ${t}`)}else{throw new Error(t)}}}));if(t&&m){const t=f.join(Context.tmpDir(),`${Util.hash(e)}.tar`);await Docker.getExecOutput(["save","-o",t,e],{ignoreReturnCode:true}).then((async e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(`Failed to save image: ${e.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`)}else{const e=await a.save(t);info(`Image cached to ${e}`)}}))}}}class context_Context{constructor(){var e,t,n;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,h.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,h.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const e=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${e} does not exist${a.EOL}`)}}this.eventName=process.env.GITHUB_EVENT_NAME;this.sha=process.env.GITHUB_SHA;this.ref=process.env.GITHUB_REF;this.workflow=process.env.GITHUB_WORKFLOW;this.action=process.env.GITHUB_ACTION;this.actor=process.env.GITHUB_ACTOR;this.job=process.env.GITHUB_JOB;this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10);this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:`https://api.github.com`;this.serverUrl=(t=process.env.GITHUB_SERVER_URL)!==null&&t!==void 0?t:`https://github.com`;this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:`https://api.github.com/graphql`}get issue(){const e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[e,t]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:t}}if(this.payload.repository){return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name}}throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}}var sf=__nccwpck_require__(9659);var of=undefined&&undefined.__awaiter||function(e,t,n,o){function adopt(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function fulfilled(e){try{step(o.next(e))}catch(e){i(e)}}function rejected(e){try{step(o["throw"](e))}catch(e){i(e)}}function step(e){e.done?n(e.value):adopt(e.value).then(fulfilled,rejected)}step((o=o.apply(e,t||[])).next())}))};function getAuthString(e,t){if(!e&&!t.auth){throw new Error("Parameter token or opts.auth is required")}else if(e&&t.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof t.auth==="string"?t.auth:`token ${e}`}function getProxyAgent(e){const t=new sf.HttpClient;return t.getAgent(e)}function getProxyAgentDispatcher(e){const t=new sf.HttpClient;return t.getAgentDispatcher(e)}function getProxyFetch(e){const t=getProxyAgentDispatcher(e);const proxyFetch=(e,n)=>of(this,void 0,void 0,(function*(){return(0,q.fetch)(e,Object.assign(Object.assign({},n),{dispatcher:t}))}));return proxyFetch}function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}function getUserAgent(){if(typeof navigator==="object"&&"userAgent"in navigator){return navigator.userAgent}if(typeof process==="object"&&process.version!==undefined){return`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`}return"<environment undetectable>"}function register(e,t,n,o){if(typeof n!=="function"){throw new Error("method for before hook must be a function")}if(!o){o={}}if(Array.isArray(t)){return t.reverse().reduce(((t,n)=>register.bind(null,e,n,t,o)),n)()}return Promise.resolve().then((()=>{if(!e.registry[t]){return n(o)}return e.registry[t].reduce(((e,t)=>t.hook.bind(null,e,o)),n)()}))}function addHook(e,t,n,o){const i=o;if(!e.registry[n]){e.registry[n]=[]}if(t==="before"){o=(e,t)=>Promise.resolve().then(i.bind(null,t)).then(e.bind(null,t))}if(t==="after"){o=(e,t)=>{let n;return Promise.resolve().then(e.bind(null,t)).then((e=>{n=e;return i(n,t)})).then((()=>n))}}if(t==="error"){o=(e,t)=>Promise.resolve().then(e.bind(null,t)).catch((e=>i(e,t)))}e.registry[n].push({hook:o,orig:i})}function removeHook(e,t,n){if(!e.registry[t]){return}const o=e.registry[t].map((e=>e.orig)).indexOf(n);if(o===-1){return}e.registry[t].splice(o,1)}const af=Function.bind;const cf=af.bind(af);function bindApi(e,t,n){const o=cf(removeHook,null).apply(null,n?[t,n]:[t]);e.api={remove:o};e.remove=o;["before","error","after","wrap"].forEach((o=>{const i=n?[t,o,n]:[t,o];e[o]=e.api[o]=cf(addHook,null).apply(null,i)}))}function Singular(){const e=Symbol("Singular");const t={registry:{}};const n=register.bind(null,t,e);bindApi(n,t,e);return n}function Collection(){const e={registry:{}};const t=register.bind(null,e);bindApi(t,e);return t}const lf={Singular:Singular,Collection:Collection};var uf="0.0.0-development";var df=`octokit-endpoint.js/${uf} ${getUserAgent()}`;var pf={method:"GET",baseUrl:"https://api.github.com",headers:{accept:"application/vnd.github.v3+json","user-agent":df},mediaType:{format:""}};function dist_bundle_lowercaseKeys(e){if(!e){return{}}return Object.keys(e).reduce(((t,n)=>{t[n.toLowerCase()]=e[n];return t}),{})}function isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n==="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}function mergeDeep(e,t){const n=Object.assign({},e);Object.keys(t).forEach((o=>{if(isPlainObject(t[o])){if(!(o in e))Object.assign(n,{[o]:t[o]});else n[o]=mergeDeep(e[o],t[o])}else{Object.assign(n,{[o]:t[o]})}}));return n}function removeUndefinedProperties(e){for(const t in e){if(e[t]===void 0){delete e[t]}}return e}function dist_bundle_merge(e,t,n){if(typeof t==="string"){let[e,o]=t.split(" ");n=Object.assign(o?{method:e,url:o}:{url:e},n)}else{n=Object.assign({},t)}n.headers=dist_bundle_lowercaseKeys(n.headers);removeUndefinedProperties(n);removeUndefinedProperties(n.headers);const o=mergeDeep(e||{},n);if(n.url==="/graphql"){if(e&&e.mediaType.previews?.length){o.mediaType.previews=e.mediaType.previews.filter((e=>!o.mediaType.previews.includes(e))).concat(o.mediaType.previews)}o.mediaType.previews=(o.mediaType.previews||[]).map((e=>e.replace(/-preview/,"")))}return o}function addQueryParameters(e,t){const n=/\?/.test(e)?"&":"?";const o=Object.keys(t);if(o.length===0){return e}return e+n+o.map((e=>{if(e==="q"){return"q="+t.q.split("+").map(encodeURIComponent).join("+")}return`${e}=${encodeURIComponent(t[e])}`})).join("&")}var Af=/\{[^{}}]+\}/g;function removeNonChars(e){return e.replace(/(?:^\W+)|(?:(?<!\W)\W+$)/g,"").split(/,/)}function extractUrlVariableNames(e){const t=e.match(Af);if(!t){return[]}return t.map(removeNonChars).reduce(((e,t)=>e.concat(t)),[])}function omit(e,t){const n={__proto__:null};for(const o of Object.keys(e)){if(t.indexOf(o)===-1){n[o]=e[o]}}return n}function encodeReserved(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map((function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e})).join("")}function encodeUnreserved(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function encodeValue(e,t,n){t=e==="+"||e==="#"?encodeReserved(t):encodeUnreserved(t);if(n){return encodeUnreserved(n)+"="+t}else{return t}}function isDefined(e){return e!==void 0&&e!==null}function isKeyOperator(e){return e===";"||e==="&"||e==="?"}function getValues(e,t,n,o){var i=e[n],a=[];if(isDefined(i)&&i!==""){if(typeof i==="string"||typeof i==="number"||typeof i==="bigint"||typeof i==="boolean"){i=i.toString();if(o&&o!=="*"){i=i.substring(0,parseInt(o,10))}a.push(encodeValue(t,i,isKeyOperator(t)?n:""))}else{if(o==="*"){if(Array.isArray(i)){i.filter(isDefined).forEach((function(e){a.push(encodeValue(t,e,isKeyOperator(t)?n:""))}))}else{Object.keys(i).forEach((function(e){if(isDefined(i[e])){a.push(encodeValue(t,i[e],e))}}))}}else{const e=[];if(Array.isArray(i)){i.filter(isDefined).forEach((function(n){e.push(encodeValue(t,n))}))}else{Object.keys(i).forEach((function(n){if(isDefined(i[n])){e.push(encodeUnreserved(n));e.push(encodeValue(t,i[n].toString()))}}))}if(isKeyOperator(t)){a.push(encodeUnreserved(n)+"="+e.join(","))}else if(e.length!==0){a.push(e.join(","))}}}}else{if(t===";"){if(isDefined(i)){a.push(encodeUnreserved(n))}}else if(i===""&&(t==="&"||t==="?")){a.push(encodeUnreserved(n)+"=")}else if(i===""){a.push("")}}return a}function parseUrl(e){return{expand:expand.bind(null,e)}}function expand(e,t){var n=["+","#",".","/",";","?","&"];e=e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,(function(e,o,i){if(o){let e="";const i=[];if(n.indexOf(o.charAt(0))!==-1){e=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach((function(n){var o=/([^:\*]*)(?::(\d+)|(\*))?/.exec(n);i.push(getValues(t,e,o[1],o[2]||o[3]))}));if(e&&e!=="+"){var a=",";if(e==="?"){a="&"}else if(e!=="#"){a=e}return(i.length!==0?e:"")+i.join(a)}else{return i.join(",")}}else{return encodeReserved(i)}}));if(e==="/"){return e}else{return e.replace(/\/$/,"")}}function dist_bundle_parse(e){let t=e.method.toUpperCase();let n=(e.url||"/").replace(/:([a-z]\w+)/g,"{$1}");let o=Object.assign({},e.headers);let i;let a=omit(e,["method","baseUrl","url","headers","request","mediaType"]);const d=extractUrlVariableNames(n);n=parseUrl(n).expand(a);if(!/^http/.test(n)){n=e.baseUrl+n}const m=Object.keys(e).filter((e=>d.includes(e))).concat("baseUrl");const h=omit(a,m);const f=/application\/octet-stream/i.test(o.accept);if(!f){if(e.mediaType.format){o.accept=o.accept.split(/,/).map((t=>t.replace(/application\/vnd(\.\w+)(\.v3)?(\.\w+)?(\+json)?$/,`application/vnd$1$2.${e.mediaType.format}`))).join(",")}if(n.endsWith("/graphql")){if(e.mediaType.previews?.length){const t=o.accept.match(/(?<![\w-])[\w-]+(?=-preview)/g)||[];o.accept=t.concat(e.mediaType.previews).map((t=>{const n=e.mediaType.format?`.${e.mediaType.format}`:"+json";return`application/vnd.github.${t}-preview${n}`})).join(",")}}}if(["GET","HEAD"].includes(t)){n=addQueryParameters(n,h)}else{if("data"in h){i=h.data}else{if(Object.keys(h).length){i=h}}}if(!o["content-type"]&&typeof i!=="undefined"){o["content-type"]="application/json; charset=utf-8"}if(["PATCH","PUT"].includes(t)&&typeof i==="undefined"){i=""}return Object.assign({method:t,url:n,headers:o},typeof i!=="undefined"?{body:i}:null,e.request?{request:e.request}:null)}function endpointWithDefaults(e,t,n){return dist_bundle_parse(dist_bundle_merge(e,t,n))}function withDefaults(e,t){const n=dist_bundle_merge(e,t);const o=endpointWithDefaults.bind(null,n);return Object.assign(o,{DEFAULTS:n,defaults:withDefaults.bind(null,n),merge:dist_bundle_merge.bind(null,n),parse:dist_bundle_parse})}var mf=withDefaults(null,pf);var gf=__nccwpck_require__(1120);const hf=/^-?\d+$/;const ff=/^-?\d+n+$/;const yf=JSON.stringify;const Ef=JSON.parse;const Cf=/^-?\d+n$/;const If=/([\[:])?"(-?\d+)n"($|([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const bf=/([\[:])?("-?\d+n+)n("$|"([\\n]|\s)*(\s|[\\n])*[,\}\]])/g;const JSONStringify=(e,t,n)=>{if("rawJSON"in JSON){return yf(e,((e,n)=>{if(typeof n==="bigint")return JSON.rawJSON(n.toString());if(typeof t==="function")return t(e,n);if(Array.isArray(t)&&t.includes(e))return n;return n}),n)}if(!e)return yf(e,t,n);const o=yf(e,((e,n)=>{const o=typeof n==="string"&&Boolean(n.match(ff));if(o)return n.toString()+"n";if(typeof n==="bigint")return n.toString()+"n";if(typeof t==="function")return t(e,n);if(Array.isArray(t)&&t.includes(e))return n;return n}),n);const i=o.replace(If,"$1$2$3");const a=i.replace(bf,"$1$2$3");return a};const isContextSourceSupported=()=>JSON.parse("1",((e,t,n)=>!!n&&n.source==="1"));const convertMarkedBigIntsReviver=(e,t,n,o)=>{const i=typeof t==="string"&&t.match(Cf);if(i)return BigInt(t.slice(0,-1));const a=typeof t==="string"&&t.match(ff);if(a)return t.slice(0,-1);if(typeof o!=="function")return t;return o(e,t,n)};const JSONParseV2=(e,t)=>JSON.parse(e,((e,n,o)=>{const i=typeof n==="number"&&(n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER);const a=o&&hf.test(o.source);const d=i&&a;if(d)return BigInt(o.source);if(typeof t!=="function")return n;return t(e,n,o)}));const Sf=Number.MAX_SAFE_INTEGER.toString();const Bf=Sf.length;const wf=/"(?:\\.|[^"])*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g;const Rf=/^"-?\d+n+"$/;const JSONParse=(e,t)=>{if(!e)return Ef(e,t);if(isContextSourceSupported())return JSONParseV2(e,t);const n=e.replace(wf,((e,t,n,o)=>{const i=e[0]==='"';const a=i&&Boolean(e.match(Rf));if(a)return e.substring(0,e.length-1)+'n"';const d=n||o;const m=t&&(t.length<Bf||t.length===Bf&&t<=Sf);if(i||d||m)return e;return'"'+e+'n"'}));return Ef(n,((e,n,o)=>convertMarkedBigIntsReviver(e,n,o,t)))};class RequestError extends Error{name;status;request;response;constructor(e,t,n){super(e,{cause:n.cause});this.name="HttpError";this.status=Number.parseInt(t);if(Number.isNaN(this.status)){this.status=0}
|
||
/* v8 ignore else -- @preserve -- Bug with vitest coverage where it sees an else branch that doesn't exist */if("response"in n){this.response=n.response}const o=Object.assign({},n.request);if(n.request.headers.authorization){o.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})}o.url=o.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]");this.request=o}}var Nf="10.0.8";var xf={headers:{"user-agent":`octokit-request.js/${Nf} ${getUserAgent()}`}};function dist_bundle_isPlainObject(e){if(typeof e!=="object"||e===null)return false;if(Object.prototype.toString.call(e)!=="[object Object]")return false;const t=Object.getPrototypeOf(e);if(t===null)return true;const n=Object.prototype.hasOwnProperty.call(t,"constructor")&&t.constructor;return typeof n==="function"&&n instanceof n&&Function.prototype.call(n)===Function.prototype.call(e)}var noop=()=>"";async function fetchWrapper(e){const t=e.request?.fetch||globalThis.fetch;if(!t){throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing")}const n=e.request?.log||console;const o=e.request?.parseSuccessResponseBody!==false;const i=dist_bundle_isPlainObject(e.body)||Array.isArray(e.body)?JSONStringify(e.body):e.body;const a=Object.fromEntries(Object.entries(e.headers).map((([e,t])=>[e,String(t)])));let d;try{d=await t(e.url,{method:e.method,body:i,redirect:e.request?.redirect,headers:a,signal:e.request?.signal,...e.body&&{duplex:"half"}})}catch(t){let n="Unknown Error";if(t instanceof Error){if(t.name==="AbortError"){t.status=500;throw t}n=t.message;if(t.name==="TypeError"&&"cause"in t){if(t.cause instanceof Error){n=t.cause.message}else if(typeof t.cause==="string"){n=t.cause}}}const o=new RequestError(n,500,{request:e});o.cause=t;throw o}const m=d.status;const h=d.url;const f={};for(const[e,t]of d.headers){f[e]=t}const C={url:h,status:m,headers:f,data:""};if("deprecation"in f){const t=f.link&&f.link.match(/<([^<>]+)>; rel="deprecation"/);const o=t&&t.pop();n.warn(`[@octokit/request] "${e.method} ${e.url}" is deprecated. It is scheduled to be removed on ${f.sunset}${o?`. See ${o}`:""}`)}if(m===204||m===205){return C}if(e.method==="HEAD"){if(m<400){return C}throw new RequestError(d.statusText,m,{response:C,request:e})}if(m===304){C.data=await getResponseData(d);throw new RequestError("Not modified",m,{response:C,request:e})}if(m>=400){C.data=await getResponseData(d);throw new RequestError(toErrorMessage(C.data),m,{response:C,request:e})}C.data=o?await getResponseData(d):d.body;return C}async function getResponseData(e){const t=e.headers.get("content-type");if(!t){return e.text().catch(noop)}const n=(0,gf.xL)(t);if(isJSONResponse(n)){let t="";try{t=await e.text();return JSONParse(t)}catch(e){return t}}else if(n.type.startsWith("text/")||n.parameters.charset?.toLowerCase()==="utf-8"){return e.text().catch(noop)}else{return e.arrayBuffer().catch((
|
||
/* v8 ignore next -- @preserve */
|
||
()=>new ArrayBuffer(0)))}}function isJSONResponse(e){return e.type==="application/json"||e.type==="application/scim+json"}function toErrorMessage(e){if(typeof e==="string"){return e}if(e instanceof ArrayBuffer){return"Unknown error"}if("message"in e){const t="documentation_url"in e?` - ${e.documentation_url}`:"";return Array.isArray(e.errors)?`${e.message}: ${e.errors.map((e=>JSON.stringify(e))).join(", ")}${t}`:`${e.message}${t}`}return`Unknown error: ${JSON.stringify(e)}`}function dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=function(e,t){const o=n.merge(e,t);if(!o.request||!o.request.hook){return fetchWrapper(n.parse(o))}const request2=(e,t)=>fetchWrapper(n.parse(n.merge(e,t)));Object.assign(request2,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)});return o.request.hook(request2,o)};return Object.assign(newApi,{endpoint:n,defaults:dist_bundle_withDefaults.bind(null,n)})}var Qf=dist_bundle_withDefaults(mf,xf);
|
||
/* v8 ignore next -- @preserve */
|
||
/* v8 ignore else -- @preserve */var Tf="0.0.0-development";function _buildMessageForResponseErrors(e){return`Request failed due to following response errors:\n`+e.errors.map((e=>` - ${e.message}`)).join("\n")}var vf=class extends Error{constructor(e,t,n){super(_buildMessageForResponseErrors(n));this.request=e;this.headers=t;this.response=n;this.errors=n.errors;this.data=n.data;if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}}name="GraphqlResponseError";errors;data};var Pf=["method","baseUrl","url","headers","request","query","mediaType","operationName"];var Df=["query","method","url"];var kf=/\/api\/v3\/?$/;function graphql(e,t,n){if(n){if(typeof t==="string"&&"query"in n){return Promise.reject(new Error(`[@octokit/graphql] "query" cannot be used as variable name`))}for(const e in n){if(!Df.includes(e))continue;return Promise.reject(new Error(`[@octokit/graphql] "${e}" cannot be used as variable name`))}}const o=typeof t==="string"?Object.assign({query:t},n):t;const i=Object.keys(o).reduce(((e,t)=>{if(Pf.includes(t)){e[t]=o[t];return e}if(!e.variables){e.variables={}}e.variables[t]=o[t];return e}),{});const a=o.baseUrl||e.endpoint.DEFAULTS.baseUrl;if(kf.test(a)){i.url=a.replace(kf,"/api/graphql")}return e(i).then((e=>{if(e.data.errors){const t={};for(const n of Object.keys(e.headers)){t[n]=e.headers[n]}throw new vf(i,t,e.data)}return e.data.data}))}function graphql_dist_bundle_withDefaults(e,t){const n=e.defaults(t);const newApi=(e,t)=>graphql(n,e,t);return Object.assign(newApi,{defaults:graphql_dist_bundle_withDefaults.bind(null,n),endpoint:n.endpoint})}var _f=graphql_dist_bundle_withDefaults(Qf,{headers:{"user-agent":`octokit-graphql.js/${Tf} ${getUserAgent()}`},method:"POST",url:"/graphql"});function withCustomRequest(e){return graphql_dist_bundle_withDefaults(e,{method:"POST",url:"/graphql"})}var Lf="(?:[a-zA-Z0-9_-]+)";var Of="\\.";var Ff=new RegExp(`^${Lf}${Of}${Lf}${Of}${Lf}$`);var Uf=Ff.test.bind(Ff);async function auth(e){const t=Uf(e);const n=e.startsWith("v1.")||e.startsWith("ghs_");const o=e.startsWith("ghu_");const i=t?"app":n?"installation":o?"user-to-server":"oauth";return{type:"token",token:e,tokenType:i}}function withAuthorizationPrefix(e){if(e.split(/\./).length===3){return`bearer ${e}`}return`token ${e}`}async function hook(e,t,n,o){const i=t.endpoint.merge(n,o);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}var Mf=function createTokenAuth2(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")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};const Hf="7.0.6";const dist_src_noop=()=>{};const $f=console.warn.bind(console);const Gf=console.error.bind(console);function createLogger(e={}){if(typeof e.debug!=="function"){e.debug=dist_src_noop}if(typeof e.info!=="function"){e.info=dist_src_noop}if(typeof e.warn!=="function"){e.warn=$f}if(typeof e.error!=="function"){e.error=Gf}return e}const qf=`octokit-core.js/${Hf} ${getUserAgent()}`;class Octokit{static VERSION=Hf;static defaults(e){const t=class extends(this){constructor(...t){const n=t[0]||{};if(typeof e==="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}};return t}static plugins=[];static plugin(...e){const t=this.plugins;const n=class extends(this){static plugins=t.concat(e.filter((e=>!t.includes(e))))};return n}constructor(e={}){const t=new lf.Collection;const n={baseUrl:Qf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:t.bind(null,"request")}),mediaType:{previews:[],format:""}};n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${qf}`:qf;if(e.baseUrl){n.baseUrl=e.baseUrl}if(e.previews){n.mediaType.previews=e.previews}if(e.timeZone){n.headers["time-zone"]=e.timeZone}this.request=Qf.defaults(n);this.graphql=withCustomRequest(this.request).defaults(n);this.log=createLogger(e.log);this.hook=t;if(!e.authStrategy){if(!e.auth){this.auth=async()=>({type:"unauthenticated"})}else{const n=Mf(e.auth);t.wrap("request",n.hook);this.auth=n}}else{const{authStrategy:n,...o}=e;const i=n(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));t.wrap("request",i.hook);this.auth=i}const o=this.constructor;for(let t=0;t<o.plugins.length;++t){Object.assign(this,o.plugins[t](this,e))}}request;graphql;log;hook;auth}const zf="17.0.0";const Vf={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteCustomImageFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],deleteCustomImageVersionFromOrg:["DELETE /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],deleteEnvironmentSecret:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],deleteHostedRunnerForOrg:["DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomImageForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}"],getCustomImageVersionForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions/{version}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getHostedRunnerForOrg:["GET /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],getHostedRunnersGithubOwnedImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/github-owned"],getHostedRunnersLimitsForOrg:["GET /orgs/{org}/actions/hosted-runners/limits"],getHostedRunnersMachineSpecsForOrg:["GET /orgs/{org}/actions/hosted-runners/machine-sizes"],getHostedRunnersPartnerImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/partner"],getHostedRunnersPlatformsForOrg:["GET /orgs/{org}/actions/hosted-runners/platforms"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listCustomImageVersionsForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom/{image_definition_id}/versions"],listCustomImagesForOrg:["GET /orgs/{org}/actions/hosted-runners/images/custom"],listEnvironmentSecrets:["GET /repos/{owner}/{repo}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repos/{owner}/{repo}/environments/{environment_name}/variables"],listGithubHostedRunnersInGroupForOrg:["GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners"],listHostedRunnersForOrg:["GET /orgs/{org}/actions/hosted-runners"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repos/{owner}/{repo}/environments/{environment_name}/variables/{name}"],updateHostedRunnerForOrg:["PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubBillingPremiumRequestUsageReportOrg:["GET /organizations/{org}/settings/billing/premium_request/usage"],getGithubBillingPremiumRequestUsageReportUser:["GET /users/{username}/settings/billing/premium_request/usage"],getGithubBillingUsageReportOrg:["GET /organizations/{org}/settings/billing/usage"],getGithubBillingUsageReportUser:["GET /users/{username}/settings/billing/usage"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},campaigns:{createCampaign:["POST /orgs/{org}/campaigns"],deleteCampaign:["DELETE /orgs/{org}/campaigns/{campaign_number}"],getCampaignSummary:["GET /orgs/{org}/campaigns/{campaign_number}"],listOrgCampaigns:["GET /orgs/{org}/campaigns"],updateCampaign:["PATCH /orgs/{org}/campaigns/{campaign_number}"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{commitAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix/commits"],createAutofix:["POST /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],createVariantAnalysis:["POST /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses"],deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],deleteCodeqlDatabase:["DELETE /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getAutofix:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/autofix"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],getVariantAnalysis:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}"],getVariantAnalysisRepoTask:["GET /repos/{owner}/{repo}/code-scanning/codeql/variant-analyses/{codeql_variant_analysis_id}/repos/{repo_owner}/{repo_name}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codeSecurity:{attachConfiguration:["POST /orgs/{org}/code-security/configurations/{configuration_id}/attach"],attachEnterpriseConfiguration:["POST /enterprises/{enterprise}/code-security/configurations/{configuration_id}/attach"],createConfiguration:["POST /orgs/{org}/code-security/configurations"],createConfigurationForEnterprise:["POST /enterprises/{enterprise}/code-security/configurations"],deleteConfiguration:["DELETE /orgs/{org}/code-security/configurations/{configuration_id}"],deleteConfigurationForEnterprise:["DELETE /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],detachConfiguration:["DELETE /orgs/{org}/code-security/configurations/detach"],getConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}"],getConfigurationForRepository:["GET /repos/{owner}/{repo}/code-security-configuration"],getConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations"],getConfigurationsForOrg:["GET /orgs/{org}/code-security/configurations"],getDefaultConfigurations:["GET /orgs/{org}/code-security/configurations/defaults"],getDefaultConfigurationsForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/defaults"],getRepositoriesForConfiguration:["GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories"],getRepositoriesForEnterpriseConfiguration:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories"],getSingleConfigurationForEnterprise:["GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}"],setConfigurationAsDefault:["PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults"],setConfigurationAsDefaultForEnterprise:["PUT /enterprises/{enterprise}/code-security/configurations/{configuration_id}/defaults"],updateConfiguration:["PATCH /orgs/{org}/code-security/configurations/{configuration_id}"],updateEnterpriseConfiguration:["PATCH /enterprises/{enterprise}/code-security/configurations/{configuration_id}"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],copilotMetricsForOrganization:["GET /orgs/{org}/copilot/metrics"],copilotMetricsForTeam:["GET /orgs/{org}/team/{team_slug}/copilot/metrics"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},credentials:{revoke:["POST /credentials/revoke"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],repositoryAccessForOrg:["GET /organizations/{org}/dependabot/repository-access"],setRepositoryAccessDefaultLevel:["PUT /organizations/{org}/dependabot/repository-access/default-level"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],updateRepositoryAccessForOrg:["PATCH /organizations/{org}/dependabot/repository-access"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},enterpriseTeamMemberships:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/memberships/remove"],get:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"],list:["GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships"],remove:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/memberships/{username}"]},enterpriseTeamOrganizations:{add:["PUT /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],bulkAdd:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/add"],bulkRemove:["POST /enterprises/{enterprise}/teams/{enterprise-team}/organizations/remove"],delete:["DELETE /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignment:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations/{org}"],getAssignments:["GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations"]},enterpriseTeams:{create:["POST /enterprises/{enterprise}/teams"],delete:["DELETE /enterprises/{enterprise}/teams/{team_slug}"],get:["GET /enterprises/{enterprise}/teams/{team_slug}"],list:["GET /enterprises/{enterprise}/teams"],update:["PATCH /enterprises/{enterprise}/teams/{team_slug}"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},hostedCompute:{createNetworkConfigurationForOrg:["POST /orgs/{org}/settings/network-configurations"],deleteNetworkConfigurationFromOrg:["DELETE /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkConfigurationForOrg:["GET /orgs/{org}/settings/network-configurations/{network_configuration_id}"],getNetworkSettingsForOrg:["GET /orgs/{org}/settings/network-settings/{network_settings_id}"],listNetworkConfigurationsForOrg:["GET /orgs/{org}/settings/network-configurations"],updateNetworkConfigurationForOrg:["PATCH /orgs/{org}/settings/network-configurations/{network_configuration_id}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addBlockedByDependency:["POST /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],addSubIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],getParent:["GET /repos/{owner}/{repo}/issues/{issue_number}/parent"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listDependenciesBlockedBy:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by"],listDependenciesBlocking:["GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],listSubIssues:["GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeDependencyBlockedBy:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by/{issue_id}"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],removeSubIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/sub_issue"],reprioritizeSubIssue:["PATCH /repos/{owner}/{repo}/issues/{issue_number}/sub_issues/priority"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.addSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#add-a-security-manager-team"}],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createArtifactStorageRecord:["POST /orgs/{org}/artifacts/metadata/storage-record"],createInvitation:["POST /orgs/{org}/invitations"],createIssueType:["POST /orgs/{org}/issue-types"],createWebhook:["POST /orgs/{org}/hooks"],customPropertiesForOrgsCreateOrUpdateOrganizationValues:["PATCH /organizations/{org}/org-properties/values"],customPropertiesForOrgsGetOrganizationValues:["GET /organizations/{org}/org-properties/values"],customPropertiesForReposCreateOrUpdateOrganizationDefinition:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposCreateOrUpdateOrganizationDefinitions:["PATCH /orgs/{org}/properties/schema"],customPropertiesForReposCreateOrUpdateOrganizationValues:["PATCH /orgs/{org}/properties/values"],customPropertiesForReposDeleteOrganizationDefinition:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinition:["GET /orgs/{org}/properties/schema/{custom_property_name}"],customPropertiesForReposGetOrganizationDefinitions:["GET /orgs/{org}/properties/schema"],customPropertiesForReposGetOrganizationValues:["GET /orgs/{org}/properties/values"],delete:["DELETE /orgs/{org}"],deleteAttestationsBulk:["POST /orgs/{org}/attestations/delete-request"],deleteAttestationsById:["DELETE /orgs/{org}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /orgs/{org}/attestations/digest/{subject_digest}"],deleteIssueType:["DELETE /orgs/{org}/issue-types/{issue_type_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],disableSelectedRepositoryImmutableReleasesOrganization:["DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],enableSelectedRepositoryImmutableReleasesOrganization:["PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}"],get:["GET /orgs/{org}"],getImmutableReleasesSettings:["GET /orgs/{org}/settings/immutable-releases"],getImmutableReleasesSettingsRepositories:["GET /orgs/{org}/settings/immutable-releases/repositories"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getOrgRulesetHistory:["GET /orgs/{org}/rulesets/{ruleset_id}/history"],getOrgRulesetVersion:["GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listArtifactStorageRecords:["GET /orgs/{org}/artifacts/{subject_digest}/metadata/storage-records"],listAttestationRepositories:["GET /orgs/{org}/attestations/repositories"],listAttestations:["GET /orgs/{org}/attestations/{subject_digest}"],listAttestationsBulk:["POST /orgs/{org}/attestations/bulk-list{?per_page,before,after}"],listBlockedUsers:["GET /orgs/{org}/blocks"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listIssueTypes:["GET /orgs/{org}/issue-types"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers",{},{deprecated:"octokit.rest.orgs.listSecurityManagerTeams() is deprecated, see https://docs.github.com/rest/orgs/security-managers#list-security-manager-teams"}],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}",{},{deprecated:"octokit.rest.orgs.removeSecurityManagerTeam() is deprecated, see https://docs.github.com/rest/orgs/security-managers#remove-a-security-manager-team"}],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setImmutableReleasesSettings:["PUT /orgs/{org}/settings/immutable-releases"],setImmutableReleasesSettingsRepositories:["PUT /orgs/{org}/settings/immutable-releases/repositories"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateIssueType:["PUT /orgs/{org}/issue-types/{issue_type_id}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},privateRegistries:{createOrgPrivateRegistry:["POST /orgs/{org}/private-registries"],deleteOrgPrivateRegistry:["DELETE /orgs/{org}/private-registries/{secret_name}"],getOrgPrivateRegistry:["GET /orgs/{org}/private-registries/{secret_name}"],getOrgPublicKey:["GET /orgs/{org}/private-registries/public-key"],listOrgPrivateRegistries:["GET /orgs/{org}/private-registries"],updateOrgPrivateRegistry:["PATCH /orgs/{org}/private-registries/{secret_name}"]},projects:{addItemForOrg:["POST /orgs/{org}/projectsV2/{project_number}/items"],addItemForUser:["POST /users/{username}/projectsV2/{project_number}/items"],deleteItemForOrg:["DELETE /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],deleteItemForUser:["DELETE /users/{username}/projectsV2/{project_number}/items/{item_id}"],getFieldForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields/{field_id}"],getFieldForUser:["GET /users/{username}/projectsV2/{project_number}/fields/{field_id}"],getForOrg:["GET /orgs/{org}/projectsV2/{project_number}"],getForUser:["GET /users/{username}/projectsV2/{project_number}"],getOrgItem:["GET /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],getUserItem:["GET /users/{username}/projectsV2/{project_number}/items/{item_id}"],listFieldsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/fields"],listFieldsForUser:["GET /users/{username}/projectsV2/{project_number}/fields"],listForOrg:["GET /orgs/{org}/projectsV2"],listForUser:["GET /users/{username}/projectsV2"],listItemsForOrg:["GET /orgs/{org}/projectsV2/{project_number}/items"],listItemsForUser:["GET /users/{username}/projectsV2/{project_number}/items"],updateItemForOrg:["PATCH /orgs/{org}/projectsV2/{project_number}/items/{item_id}"],updateItemForUser:["PATCH /users/{username}/projectsV2/{project_number}/items/{item_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkImmutableReleases:["GET /repos/{owner}/{repo}/immutable-releases"],checkPrivateVulnerabilityReporting:["GET /repos/{owner}/{repo}/private-vulnerability-reporting"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAttestation:["POST /repos/{owner}/{repo}/attestations"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],customPropertiesForReposCreateOrUpdateRepositoryValues:["PATCH /repos/{owner}/{repo}/properties/values"],customPropertiesForReposGetRepositoryValues:["GET /repos/{owner}/{repo}/properties/values"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disableImmutableReleases:["DELETE /repos/{owner}/{repo}/immutable-releases"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enableImmutableReleases:["PUT /repos/{owner}/{repo}/immutable-releases"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesetHistory:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history"],getRepoRulesetVersion:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history/{version_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAttestations:["GET /repos/{owner}/{repo}/attestations/{subject_digest}"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{createPushProtectionBypass:["POST /repos/{owner}/{repo}/secret-scanning/push-protection-bypasses"],getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],getScanHistory:["GET /repos/{owner}/{repo}/secret-scanning/scan-history"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],listOrgPatternConfigs:["GET /orgs/{org}/secret-scanning/pattern-configurations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],updateOrgPatternConfigs:["PATCH /orgs/{org}/secret-scanning/pattern-configurations"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteAttestationsBulk:["POST /users/{username}/attestations/delete-request"],deleteAttestationsById:["DELETE /users/{username}/attestations/{attestation_id}"],deleteAttestationsBySubjectDigest:["DELETE /users/{username}/attestations/digest/{subject_digest}"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getById:["GET /user/{account_id}"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listAttestations:["GET /users/{username}/attestations/{subject_digest}"],listAttestationsBulk:["POST /users/{username}/attestations/bulk-list{?per_page,before,after}"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var jf=Vf;const Yf=new Map;for(const[e,t]of Object.entries(jf)){for(const[n,o]of Object.entries(t)){const[t,i,a]=o;const[d,m]=t.split(/ /);const h=Object.assign({method:d,url:m},i);if(!Yf.has(e)){Yf.set(e,new Map)}Yf.get(e).set(n,{scope:e,methodName:n,endpointDefaults:h,decorations:a})}}const Jf={has({scope:e},t){return Yf.get(e).has(t)},getOwnPropertyDescriptor(e,t){return{value:this.get(e,t),configurable:true,writable:true,enumerable:true}},defineProperty(e,t,n){Object.defineProperty(e.cache,t,n);return true},deleteProperty(e,t){delete e.cache[t];return true},ownKeys({scope:e}){return[...Yf.get(e).keys()]},set(e,t,n){return e.cache[t]=n},get({octokit:e,scope:t,cache:n},o){if(n[o]){return n[o]}const i=Yf.get(t).get(o);if(!i){return void 0}const{endpointDefaults:a,decorations:d}=i;if(d){n[o]=decorate(e,t,o,a,d)}else{n[o]=e.request.defaults(a)}return n[o]}};function endpointsToMethods(e){const t={};for(const n of Yf.keys()){t[n]=new Proxy({octokit:e,scope:n,cache:{}},Jf)}return t}function decorate(e,t,n,o,i){const a=e.request.defaults(o);function withDecorations(...o){let d=a.endpoint.merge(...o);if(i.mapToData){d=Object.assign({},d,{data:d[i.mapToData],[i.mapToData]:void 0});return a(d)}if(i.renamed){const[o,a]=i.renamed;e.log.warn(`octokit.${t}.${n}() has been renamed to octokit.${o}.${a}()`)}if(i.deprecated){e.log.warn(i.deprecated)}if(i.renamedParameters){const d=a.endpoint.merge(...o);for(const[o,a]of Object.entries(i.renamedParameters)){if(o in d){e.log.warn(`"${o}" parameter is deprecated for "octokit.${t}.${n}()". Use "${a}" instead`);if(!(a in d)){d[a]=d[o]}delete d[o]}}return a(d)}return a(...o)}return Object.assign(withDecorations,a)}function restEndpointMethods(e){const t=endpointsToMethods(e);return{rest:t}}restEndpointMethods.VERSION=zf;function legacyRestEndpointMethods(e){const t=endpointsToMethods(e);return{...t,rest:t}}legacyRestEndpointMethods.VERSION=zf;var Wf="0.0.0-development";function normalizePaginatedListResponse(e){if(!e.data){return{...e,data:[]}}const t=("total_count"in e.data||"total_commits"in e.data)&&!("url"in e.data);if(!t)return e;const n=e.data.incomplete_results;const o=e.data.repository_selection;const i=e.data.total_count;const a=e.data.total_commits;delete e.data.incomplete_results;delete e.data.repository_selection;delete e.data.total_count;delete e.data.total_commits;const d=Object.keys(e.data)[0];const m=e.data[d];e.data=m;if(typeof n!=="undefined"){e.data.incomplete_results=n}if(typeof o!=="undefined"){e.data.repository_selection=o}e.data.total_count=i;e.data.total_commits=a;return e}function iterator(e,t,n){const o=typeof t==="function"?t.endpoint(n):e.request.endpoint(t,n);const i=typeof t==="function"?t:e.request;const a=o.method;const d=o.headers;let m=o.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!m)return{done:true};try{const e=await i({method:a,url:m,headers:d});const t=normalizePaginatedListResponse(e);m=((t.headers.link||"").match(/<([^<>]+)>;\s*rel="next"/)||[])[1];if(!m&&"total_commits"in t.data){const e=new URL(t.url);const n=e.searchParams;const o=parseInt(n.get("page")||"1",10);const i=parseInt(n.get("per_page")||"250",10);if(o*i<t.data.total_commits){n.set("page",String(o+1));m=e.toString()}}return{value:t}}catch(e){if(e.status!==409)throw e;m="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(e,t,n,o){if(typeof n==="function"){o=n;n=void 0}return gather(e,[],iterator(e,t,n)[Symbol.asyncIterator](),o)}function gather(e,t,n,o){return n.next().then((i=>{if(i.done){return t}let a=false;function done(){a=true}t=t.concat(o?o(i.value,done):i.value.data);if(a){return t}return gather(e,t,n,o)}))}var Kf=Object.assign(paginate,{iterator:iterator});var Xf=null&&["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/code-security/configurations","GET /enterprises/{enterprise}/code-security/configurations/{configuration_id}/repositories","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/teams","GET /enterprises/{enterprise}/teams/{enterprise-team}/memberships","GET /enterprises/{enterprise}/teams/{enterprise-team}/organizations","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /organizations/{org}/dependabot/repository-access","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/hosted-runners","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/permissions/self-hosted-runners/repositories","GET /orgs/{org}/actions/runner-groups","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/hosted-runners","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories","GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/attestations/repositories","GET /orgs/{org}/attestations/{subject_digest}","GET /orgs/{org}/blocks","GET /orgs/{org}/campaigns","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/code-security/configurations","GET /orgs/{org}/code-security/configurations/{configuration_id}/repositories","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/copilot/metrics","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}","GET /orgs/{org}/insights/api/subject-stats","GET /orgs/{org}/insights/api/user-stats/{user_id}","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/organization-roles/{role_id}/teams","GET /orgs/{org}/organization-roles/{role_id}/users","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/private-registries","GET /orgs/{org}/projects","GET /orgs/{org}/projectsV2","GET /orgs/{org}/projectsV2/{project_number}/fields","GET /orgs/{org}/projectsV2/{project_number}/items","GET /orgs/{org}/properties/values","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/rulesets/rule-suites","GET /orgs/{org}/rulesets/{ruleset_id}/history","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/settings/immutable-releases/repositories","GET /orgs/{org}/settings/network-configurations","GET /orgs/{org}/team/{team_slug}/copilot/metrics","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/{project_id}/collaborators","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/attestations/{subject_digest}","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/compare/{basehead}","GET /repos/{owner}/{repo}/compare/{base}...{head}","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/environments/{environment_name}/secrets","GET /repos/{owner}/{repo}/environments/{environment_name}/variables","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocked_by","GET /repos/{owner}/{repo}/issues/{issue_number}/dependencies/blocking","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/sub_issues","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/rulesets/rule-suites","GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/attestations/{subject_digest}","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/projectsV2","GET /users/{username}/projectsV2/{project_number}/fields","GET /users/{username}/projectsV2/{project_number}/items","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(e){if(typeof e==="string"){return Xf.includes(e)}else{return false}}function paginateRest(e){return{paginate:Object.assign(paginate.bind(null,e),{iterator:iterator.bind(null,e)})}}paginateRest.VERSION=Wf;const Zf=new context_Context;const ey=getApiBaseUrl();const ty={baseUrl:ey,request:{agent:getProxyAgent(ey),fetch:getProxyFetch(ey)}};const ry=Octokit.plugin(restEndpointMethods,paginateRest).defaults(ty);function getOctokitOptions(e,t){const n=Object.assign({},t||{});const o=getAuthString(e,n);if(o){n.auth=o}return n}const ny=new context_Context;function getOctokit(e,t,...n){const o=ry.plugin(...n);return new o(getOctokitOptions(e,t))}class InvalidTokenError extends Error{}InvalidTokenError.prototype.name="InvalidTokenError";function b64DecodeUnicode(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();if(n.length<2){n="0"+n}return"%"+n})))}function base64UrlDecode(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return b64DecodeUnicode(t)}catch(e){return atob(t)}}function jwtDecode(e,t){if(typeof e!=="string"){throw new InvalidTokenError("Invalid token specified: must be a string")}t||(t={});const n=t.header===true?0:1;const o=e.split(".")[n];if(typeof o!=="string"){throw new InvalidTokenError(`Invalid token specified: missing part #${n+1}`)}let i;try{i=base64UrlDecode(o)}catch(e){throw new InvalidTokenError(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new InvalidTokenError(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}class github_GitHub{githubToken;octokit;constructor(e){this.githubToken=e?.token||process.env.GITHUB_TOKEN;this.octokit=getOctokit(`${this.githubToken}`)}repoData(){return this.octokit.rest.repos.get({...ny.repo}).then((e=>e.data))}async releases(e,t){let n;try{n=await this.releasesRaw(e,t)}catch(o){if(!this.githubToken){throw o}n=await this.releasesRaw(e,t,this.githubToken)}return n}async releasesRaw(e,t,n){const o=`https://raw.githubusercontent.com/${t.owner}/${t.repo}/${t.ref}/${t.path}`;const i=new lib_HttpClient("docker-actions-toolkit");const a=await i.get(o,n?{Authorization:`token ${n}`}:undefined);const d=await a.readBody();const m=a.message.statusCode||500;if(m>=400){throw new Error(`Failed to get ${e} releases from ${o} with status code ${m}: ${d}`)}return JSON.parse(d)}static get context(){return ny}static get serverURL(){return process.env.GITHUB_SERVER_URL||"https://github.com"}static get apiURL(){return process.env.GITHUB_API_URL||"https://api.github.com"}static get isGHES(){const e=new URL(github_GitHub.serverURL);const t=e.hostname.trimEnd().toUpperCase();const n=t==="GITHUB.COM";const o=t.endsWith(".GHE.COM");const i=t.endsWith(".LOCALHOST");return!n&&!o&&!i}static get repository(){return`${ny.repo.owner}/${ny.repo.repo}`}static get workspace(){return process.env.GITHUB_WORKSPACE||process.cwd()}static get runId(){return process.env.GITHUB_RUN_ID?+process.env.GITHUB_RUN_ID:ny.runId}static get runAttempt(){return process.env.GITHUB_RUN_ATTEMPT?+process.env.GITHUB_RUN_ATTEMPT:1}static workflowRunURL(e){return`${github_GitHub.serverURL}/${github_GitHub.repository}/actions/runs/${github_GitHub.runId}${e?`/attempts/${github_GitHub.runAttempt}`:""}`}static get actionsRuntimeToken(){const e=process.env["ACTIONS_RUNTIME_TOKEN"]||"";return e?jwtDecode(e):undefined}static async printActionsRuntimeTokenACs(){let e;try{e=github_GitHub.actionsRuntimeToken}catch(e){throw new Error(`Cannot parse GitHub Actions Runtime Token: ${e.message}`)}if(!e){throw new Error(`ACTIONS_RUNTIME_TOKEN not set`)}try{JSON.parse(`${e.ac}`).forEach((e=>{let t;switch(e.Permission){case 1:t="read";break;case 2:t="write";break;case 3:t="read/write";break;default:t=`unimplemented (${e.Permission})`}info(`${e.Scope}: ${t}`)}))}catch(e){throw new Error(`Cannot parse GitHub Actions Runtime Token ACs: ${e.message}`)}}}class Buildx{_version;_versionOnce;_standalone;static containerNamePrefix="buildx_buildkit_";constructor(e){this._standalone=e?.standalone;this._version="";this._versionOnce=false}static get configDir(){return process.env.BUILDX_CONFIG||f.join(Docker.configDir,"buildx")}static get refsDir(){return f.join(Buildx.configDir,"refs")}static get refsGroupDir(){return f.join(Buildx.refsDir,"__group__")}static get certsDir(){return f.join(Buildx.configDir,"certs")}async isStandalone(){const e=this._standalone??!await Docker.isAvailable();core_debug(`Buildx.isStandalone: ${e}`);return e}async getCommand(e){const t=await this.isStandalone();return{command:t?"buildx":"docker",args:t?e:["buildx",...e]}}async isAvailable(){const e=await this.getCommand([]);const t=await Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){core_debug(`Buildx.isAvailable cmd err: ${e.stderr.trim()}`);return false}return e.exitCode==0})).catch((e=>{core_debug(`Buildx.isAvailable error: ${e}`);return false}));core_debug(`Buildx.isAvailable: ${t}`);return t}async version(){if(this._versionOnce){return this._version}this._versionOnce=true;const e=await this.getCommand(["version"]);this._version=await Exec.getExecOutput(e.command,e.args,{ignoreReturnCode:true,silent:true}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}return Buildx.parseVersion(e.stdout.trim())}));return this._version}async printVersion(){const e=await this.getCommand(["version"]);await Exec.exec(e.command,e.args,{failOnStdErr:false})}static parseVersion(e){const t=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!t){throw new Error(`Cannot parse buildx version`)}return t[1]}async versionSatisfies(e,t){const n=t??await this.version();if(!n){core_debug(`Buildx.versionSatisfies false: undefined version`);return false}const o=jh.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;core_debug(`Buildx.versionSatisfies ${n} statisfies ${e}: ${o}`);return o}static resolveCertsDriverOpts(e,t,n){let o;try{o=new URL(t)}catch{return[]}if(o.protocol!="tcp:"){return[]}const i=[];if(Object.keys(n).length==0){return i}let a=o.hostname;if(o.port.length>0){a+=`-${o.port}`}if(n.cacert!==undefined){const e=f.join(Buildx.certsDir,`cacert_${a}.pem`);h.writeFileSync(e,n.cacert);i.push(`cacert=${e}`)}if(n.cert!==undefined){const e=f.join(Buildx.certsDir,`cert_${a}.pem`);h.writeFileSync(e,n.cert);i.push(`cert=${e}`)}if(n.key!==undefined){const e=f.join(Buildx.certsDir,`key_${a}.pem`);h.writeFileSync(e,n.key);i.push(`key=${e}`)}if(e!="remote"){return[]}return i}static localState(e,t){const[n,o,i]=e.split("/");if(!n||!o||!i){throw new Error(`Invalid build reference: ${e}`)}const a=f.join(t||Buildx.refsDir,n,o,i);if(!h.existsSync(a)){throw new Error(`Local state not found in ${a}`)}return Buildx.fixLocalState(JSON.parse(h.readFileSync(a,"utf8")))}static fixLocalState(e){const fnTrimToValidContext=function(e){const t=e.match(/(.*)(https?:\/{1,2}\S+|ssh:\/{1,2}\S+|git:\/{1,2}\S+)/i);if(t&&t.length==3){const e=t[1];let n=t[2];if(n.startsWith("https:/")&&!n.startsWith("https://")){n=n.replace("https:/","https://")}if(n.startsWith("http:/")&&!n.startsWith("http://")){n=n.replace("http:/","http://")}if(n.startsWith("ssh:/")&&!n.startsWith("ssh://")){n=n.replace("ssh:/","ssh://")}if(n.startsWith("git:/")&&!n.startsWith("git://")){n=n.replace("git:/","git://")}return[n,e,true]}return[e,"",false]};const[t,n,o]=fnTrimToValidContext(e.LocalPath);if(o){e.LocalPath=t;if(e.DockerfilePath.indexOf(n)===0){e.DockerfilePath=e.DockerfilePath.substring(n.length)}}e.LocalPath=e.LocalPath.endsWith("/-")?"-":e.LocalPath;e.DockerfilePath=e.DockerfilePath.endsWith("/-")?"-":e.DockerfilePath;return e}static refs(e,t={}){const{dir:n,builderName:o,nodeName:i,since:a}=e;let d=f.resolve(n);if(e.builderName){d=f.join(d,e.builderName)}if(e.nodeName){d=f.join(d,e.nodeName)}if(!h.existsSync(d)){return t}const m=h.readdirSync(d);for(const n of m){const m=f.join(d,n);const C=h.statSync(m);if(C.isDirectory()){const a={...e};if(!o){if(n==="__group__"){continue}a.builderName=n}else if(!i){a.nodeName=n}Buildx.refs(a,t)}else{if(a&&C.mtime<a){continue}const e=Buildx.fixLocalState(JSON.parse(h.readFileSync(m,"utf8")));const d=`${o}/${i}/${n}`;t[d]=e}}return t}static async convertWarningsToGitHubAnnotations(e,t,n){if(e.length===0){return}const fnGitURL=function(e){try{return Git.parseURL(e)}catch{}};const fnLocalState=function(e){try{return Buildx.localState(e,n)}catch(t){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): local state not found: ${t.message}`)}};const o=[];for(const e of t){const t=fnLocalState(e);if(!t){continue}if(t.DockerfilePath=="-"){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): skipping stdin Dockerfile`);continue}else if(t.DockerfilePath==""){t.DockerfilePath="Dockerfile"}const n=fnGitURL(t.LocalPath);if(n){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): git context detected: ${t.LocalPath}`);const i=n.host.replace(/:.*/,"");if(i!=="github.com"&&!i.endsWith(".ghe.com")){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): not a GitHub repo: ${i}`);continue}const a=n.path.replace(/^\//,"").replace(/\.git$/,"");if(a!==github_GitHub.repository){core_debug(`Buildx.convertWarningsToGitHubAnnotations(${e}): not same GitHub repo: ${a} != ${github_GitHub.repository}`);continue}o.push({path:t.DockerfilePath,remote:true});continue}if(!h.existsSync(t.DockerfilePath)){core_debug(`Buildx.convertWarningsToGitHubAnnotations: Dockerfile not found from localstate ref ${e}: ${t.DockerfilePath}`);continue}const i=github_GitHub.workspace;if(Util.isPathRelativeTo(i,t.DockerfilePath)){o.push({path:f.relative(i,t.DockerfilePath),content:Buffer.from(h.readFileSync(t.DockerfilePath,{encoding:"utf-8"}),"utf-8").toString("base64")})}else{core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping Dockerfile outside of workspace: ${t.DockerfilePath}`)}}if(o.length===0){core_debug(`Buildx.convertWarningsToGitHubAnnotations: no Dockerfiles found`);return}core_debug(`Buildx.convertWarningsToGitHubAnnotations: found ${o.length} Dockerfiles: ${JSON.stringify(o,null,2)}`);const i=[];for(const t of e){if(!t.detail||!t.short){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without detail or short`);continue}const e=t.sourceInfo?.filename;const n=t.sourceInfo?.data;if(!e||!n){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without source info filename or data`);continue}const a=t.detail.map((e=>atob(e))).join(" ");let d=atob(t.short).replace(/\s\(line \d+\)$/,"");if(t.url){d+=`\nMore info: ${t.url}`}const m=t.range&&t.range.length>0?t.range[0]?.start.line:undefined;let h=false;for(const t of o){if(t.remote||t.path.endsWith(e)&&t.content===n){i.push({title:a,message:d,file:t.path,startLine:m});h=true;break}}if(!h){core_debug(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${e}: ${a}`)}}return i}}function getInputs(){return{registry:getInput("registry"),username:getInput("username"),password:getInput("password"),scope:getInput("scope"),ecr:getInput("ecr"),logout:getBooleanInput("logout"),registryAuth:getInput("registry-auth")}}function getAuthList(e){if(e.registryAuth&&(e.registry||e.username||e.password||e.scope||e.ecr)){throw new Error("Cannot use registry-auth with other inputs")}let t=[];if(!e.registryAuth){const n=e.registry||"docker.io";t.push({registry:n,username:e.username,password:e.password,scope:e.scope,ecr:e.ecr||"auto",configDir:scopeToConfigDir(n,e.scope)})}else{t=Fh(e.registryAuth).map((e=>{core_setSecret(e.password);const t=e.registry||"docker.io";return{registry:t,username:e.username,password:e.password,scope:e.scope,ecr:e.ecr||"auto",configDir:scopeToConfigDir(t,e.scope)}}))}if(t.length==0){throw new Error("No registry to login")}return t}function scopeToConfigDir(e,t){if(scopeDisabled()||!t||t===""){return""}let n=C().join(Buildx.configDir,"config",e==="docker.io"?"registry-1.docker.io":e);if(t.startsWith("@")){n+=t}else{n=C().join(n,t)}return n}function scopeDisabled(){if(process.env.DOCKER_LOGIN_SCOPE_DISABLED){return Util.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED)}return false}var sy=__nccwpck_require__(8249);var oy=__nccwpck_require__(9821);var iy=__nccwpck_require__(1279);var ay=__nccwpck_require__(9278);var cy=__nccwpck_require__(4756);var ly=__nccwpck_require__(2830);async function toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}async function helpers_json(e){const t=await toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}function req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?https:http).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}const uy=Symbol("AgentBaseInternalState");class Agent extends P.Agent{constructor(e){super(e);this[uy]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new ay.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return k.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const a=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,a);if(d instanceof P.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[uy].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,a);n(e)}))}createConnection(){const e=this[uy].currentSocket;this[uy].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[uy].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[uy]){this[uy].defaultPort=e}}get protocol(){return this[uy].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[uy]){this[uy].protocol=e}}}const dy=ly("http-proxy-agent");class HttpProxyAgent extends Agent{constructor(e,t){super(t);this.proxy=typeof e==="string"?new dr.URL(e):e;this.proxyHeaders=t?.headers??{};dy("Creating new HttpProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...t?dist_omit(t,"headers"):null,host:n,port:o}}addRequest(e,t){e._header=null;this.setRequestProps(e,t);super.addRequest(e,t)}setRequestProps(e,t){const{proxy:n}=this;const o=t.secureEndpoint?"https:":"http:";const i=e.getHeader("host")||"localhost";const a=`${o}//${i}`;const d=new dr.URL(e.path,a);if(t.port!==80){d.port=String(t.port)}e.path=String(d);const m=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;m["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}if(!m["Proxy-Connection"]){m["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const t of Object.keys(m)){const n=m[t];if(n){e.setHeader(t,n)}}}async connect(e,t){e._header=null;if(!e.path.includes("://")){this.setRequestProps(e,t)}let n;let o;dy("Regenerating stored HTTP header string for request");e._implicitHeader();if(e.outputData&&e.outputData.length>0){dy("Patching connection write() output buffer with updated header");n=e.outputData[0].data;o=n.indexOf("\r\n\r\n")+4;e.outputData[0].data=e._header+n.substring(o);dy("Output buffer: %o",e.outputData[0].data)}let i;if(this.proxy.protocol==="https:"){dy("Creating `tls.Socket`: %o",this.connectOpts);i=cy.connect(this.connectOpts)}else{dy("Creating `net.Socket`: %o",this.connectOpts);i=ay.connect(this.connectOpts)}await(0,Ce.once)(i,"connect");return i}}HttpProxyAgent.protocols=["http","https"];function dist_omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}async function helpers_toBuffer(e){let t=0;const n=[];for await(const o of e){t+=o.length;n.push(o)}return Buffer.concat(n,t)}async function dist_helpers_json(e){const t=await helpers_toBuffer(e);const n=t.toString("utf8");try{return JSON.parse(n)}catch(e){const t=e;t.message+=` (input: ${n})`;throw t}}function helpers_req(e,t={}){const n=typeof e==="string"?e:e.href;const o=(n.startsWith("https:")?https:http).request(e,t);const i=new Promise(((e,t)=>{o.once("response",e).once("error",t).end()}));o.then=i.then.bind(i);return o}const py=Symbol("AgentBaseInternalState");class dist_Agent extends P.Agent{constructor(e){super(e);this[py]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint==="boolean"){return e.secureEndpoint}if(typeof e.protocol==="string"){return e.protocol==="https:"}}const{stack:t}=new Error;if(typeof t!=="string")return false;return t.split("\n").some((e=>e.indexOf("(https.js:")!==-1||e.indexOf("node:https:")!==-1))}incrementSockets(e){if(this.maxSockets===Infinity&&this.maxTotalSockets===Infinity){return null}if(!this.sockets[e]){this.sockets[e]=[]}const t=new ay.Socket({writable:false});this.sockets[e].push(t);this.totalSocketCount++;return t}decrementSockets(e,t){if(!this.sockets[e]||t===null){return}const n=this.sockets[e];const o=n.indexOf(t);if(o!==-1){n.splice(o,1);this.totalSocketCount--;if(n.length===0){delete this.sockets[e]}}}getName(e){const t=this.isSecureEndpoint(e);if(t){return k.Agent.prototype.getName.call(this,e)}return super.getName(e)}createSocket(e,t,n){const o={...t,secureEndpoint:this.isSecureEndpoint(t)};const i=this.getName(o);const a=this.incrementSockets(i);Promise.resolve().then((()=>this.connect(e,o))).then((d=>{this.decrementSockets(i,a);if(d instanceof P.Agent){try{return d.addRequest(e,o)}catch(e){return n(e)}}this[py].currentSocket=d;super.createSocket(e,t,n)}),(e=>{this.decrementSockets(i,a);n(e)}))}createConnection(){const e=this[py].currentSocket;this[py].currentSocket=undefined;if(!e){throw new Error("No socket was returned in the `connect()` function")}return e}get defaultPort(){return this[py].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){if(this[py]){this[py].defaultPort=e}}get protocol(){return this[py].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){if(this[py]){this[py].protocol=e}}}const Ay=ly("https-proxy-agent:parse-proxy-response");function parseProxyResponse(e){return new Promise(((t,n)=>{let o=0;const i=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("readable",read)}function onend(){cleanup();Ay("onend");n(new Error("Proxy connection ended before receiving CONNECT response"))}function onerror(e){cleanup();Ay("onerror %o",e);n(e)}function ondata(a){i.push(a);o+=a.length;const d=Buffer.concat(i,o);const m=d.indexOf("\r\n\r\n");if(m===-1){Ay("have not received end of HTTP headers yet...");read();return}const h=d.slice(0,m).toString("ascii").split("\r\n");const f=h.shift();if(!f){e.destroy();return n(new Error("No header received from proxy CONNECT response"))}const C=f.split(" ");const P=+C[1];const D=C.slice(2).join(" ");const k={};for(const t of h){if(!t)continue;const o=t.indexOf(":");if(o===-1){e.destroy();return n(new Error(`Invalid header from proxy CONNECT response: "${t}"`))}const i=t.slice(0,o).toLowerCase();const a=t.slice(o+1).trimStart();const d=k[i];if(typeof d==="string"){k[i]=[d,a]}else if(Array.isArray(d)){d.push(a)}else{k[i]=a}}Ay("got proxy server response: %o %o",f,k);cleanup();t({connect:{statusCode:P,statusText:D,headers:k},buffered:d})}e.on("error",onerror);e.on("end",onend);read()}))}const my=ly("https-proxy-agent");const setServernameFromNonIpHost=e=>{if(e.servername===undefined&&e.host&&!ay.isIP(e.host)){return{...e,servername:e.host}}return e};class HttpsProxyAgent extends dist_Agent{constructor(e,t){super(t);this.options={path:undefined};this.proxy=typeof e==="string"?new dr.URL(e):e;this.proxyHeaders=t?.headers??{};my("Creating new HttpsProxyAgent instance: %o",this.proxy.href);const n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,"");const o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...t?https_proxy_agent_dist_omit(t,"headers"):null,host:n,port:o}}async connect(e,t){const{proxy:n}=this;if(!t.host){throw new TypeError('No "host" provided')}let o;if(n.protocol==="https:"){my("Creating `tls.Socket`: %o",this.connectOpts);o=cy.connect(setServernameFromNonIpHost(this.connectOpts))}else{my("Creating `net.Socket`: %o",this.connectOpts);o=ay.connect(this.connectOpts)}const i=typeof this.proxyHeaders==="function"?this.proxyHeaders():{...this.proxyHeaders};const a=ay.isIPv6(t.host)?`[${t.host}]`:t.host;let d=`CONNECT ${a}:${t.port} HTTP/1.1\r\n`;if(n.username||n.password){const e=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(e).toString("base64")}`}i.Host=`${a}:${t.port}`;if(!i["Proxy-Connection"]){i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close"}for(const e of Object.keys(i)){d+=`${e}: ${i[e]}\r\n`}const m=parseProxyResponse(o);o.write(`${d}\r\n`);const{connect:h,buffered:f}=await m;e.emit("proxyConnect",h);this.emit("proxyConnect",h,e);if(h.statusCode===200){e.once("socket",resume);if(t.secureEndpoint){my("Upgrading socket connection to TLS");return cy.connect({...https_proxy_agent_dist_omit(setServernameFromNonIpHost(t),"host","path","port"),socket:o})}return o}o.destroy();const C=new ay.Socket({writable:false});C.readable=true;e.once("socket",(e=>{my("Replaying proxy buffer for failed request");be(e.listenerCount("data")>0);e.push(f);e.push(null)}));return C}}HttpsProxyAgent.protocols=["http","https"];function resume(e){e.resume()}function https_proxy_agent_dist_omit(e,...t){const n={};let o;for(o in e){if(!t.includes(o)){n[o]=e[o]}}return n}const gy=/^(([0-9]{12})\.(dkr\.ecr|dkr-ecr)\.(.+)\.(on\.aws|amazonaws\.(com(.cn)?|eu)))(\/([^:]+)(:.+)?)?$/;const hy=/public\.ecr\.aws|ecr-public\.aws\.com/;const isECR=e=>gy.test(e)||isPubECR(e);const isPubECR=e=>hy.test(e);const getRegion=e=>{if(isPubECR(e)){return process.env.AWS_REGION||process.env.AWS_DEFAULT_REGION||"us-east-1"}const t=e.match(gy);if(!t){return""}return t[4]};const getAccountIDs=e=>{if(isPubECR(e)){return[]}const t=e.match(gy);if(!t){return[]}const n=[t[2]];if(process.env.AWS_ACCOUNT_IDS){n.push(...process.env.AWS_ACCOUNT_IDS.split(","))}return n.filter(((e,t)=>n.indexOf(e)===t))};const getRegistriesData=async(e,t,n)=>{const o=getRegion(e);const i=getAccountIDs(e);const a={};if(i.length>0){core_debug(`Requesting AWS ECR auth token for ${i.join(", ")}`);a["registryIds"]=i}let d;const m=process.env.http_proxy||process.env.HTTP_PROXY||"";if(m){core_debug(`Using http proxy ${m}`);d=new HttpProxyAgent(m)}let h;const f=process.env.https_proxy||process.env.HTTPS_PROXY||"";if(f){core_debug(`Using https proxy ${f}`);h=new HttpsProxyAgent(f)}const C=t&&n?{accessKeyId:t,secretAccessKey:n}:undefined;if(isPubECR(e)){info(`AWS Public ECR detected with ${o} region`);const e=new oy.ECRPUBLIC({customUserAgent:"docker-login-action",credentials:C,region:o,requestHandler:new iy.NodeHttpHandler({httpAgent:d,httpsAgent:h})});const t=await e.getAuthorizationToken(a);if(!t.authorizationData||!t.authorizationData.authorizationToken){throw new Error("Could not retrieve an authorization token from AWS Public ECR")}const n=Buffer.from(t.authorizationData.authorizationToken,"base64").toString("utf-8");const i=n.split(":",2);core_setSecret(i[0]);core_setSecret(i[1]);return[{registry:"public.ecr.aws",username:i[0],password:i[1]}]}else{info(`AWS ECR detected with ${o} region`);const e=new sy.ECR({customUserAgent:"docker-login-action",credentials:C,region:o,requestHandler:new iy.NodeHttpHandler({httpAgent:d,httpsAgent:h})});const t=await e.getAuthorizationToken(a);if(!Array.isArray(t.authorizationData)||!t.authorizationData.length){throw new Error("Could not retrieve an authorization token from AWS ECR")}const n=[];for(const e of t.authorizationData){const t=Buffer.from(e.authorizationToken||"","base64").toString("utf-8");const o=t.split(":",2);core_setSecret(o[0]);core_setSecret(o[1]);n.push({registry:e.proxyEndpoint||"",username:o[0],password:o[1]})}return n}};async function login(e){if(/true/i.test(e.ecr)||e.ecr=="auto"&&isECR(e.registry)){await loginECR(e.registry,e.username,e.password,e.scope)}else{await loginStandard(e.registry,e.username,e.password,e.scope)}}async function logout(e,t){let n;if(t!==""){n=Object.assign({},process.env,{DOCKER_CONFIG:t});info(`Alternative config dir: ${t}`)}await Docker.getExecOutput(["logout",e],{ignoreReturnCode:true,env:n}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){warning(e.stderr.trim())}}))}async function loginStandard(e,t,n,o){if(!t&&!n){throw new Error("Username and password required")}if(!t){throw new Error("Username required")}if(!n){throw new Error("Password required")}await loginExec(e,t,n,o)}async function loginECR(e,t,n,o){info(`Retrieving registries data through AWS SDK...`);const i=await getRegistriesData(e,t,n);for(const e of i){await loginExec(e.registry,e.username,e.password,o)}}async function loginExec(e,t,n,o){let i;const a=scopeToConfigDir(e,o);if(a!==""){i=Object.assign({},process.env,{DOCKER_CONFIG:a});info(`Logging into ${e} (scope ${o})...`)}else{info(`Logging into ${e}...`)}await Docker.getExecOutput(["login","--password-stdin","--username",t,e],{ignoreReturnCode:true,silent:true,input:Buffer.from(n),env:i}).then((e=>{if(e.stderr.length>0&&e.exitCode!=0){throw new Error(e.stderr.trim())}info("Login Succeeded!")}))}const fy=process.env["STATE_registries"]?JSON.parse(process.env["STATE_registries"]):[];const yy=/true/i.test(process.env["STATE_logout"]||"");function setRegistries(e){saveState("registries",JSON.stringify(e))}function setLogout(e){saveState("logout",e)}async function main(){const e=getInputs();setLogout(e.logout);const t=getAuthList(e);setRegistries(Array.from(new Map(t.map((e=>[`${e.registry}|${e.configDir}`,{registry:e.registry,configDir:e.configDir}]))).values()));if(t.length===1){await login(t[0]);return}for(const e of t){await group(`Login to ${e.registry}`,(async()=>{await login(e)}))}}async function post(){if(!yy){return}for(const e of fy){await group(`Logout from ${e.registry}`,(async()=>{await logout(e.registry,e.configDir)}))}}run(main,post);var Ey=o.i;export{Ey as main};
|
||
//# sourceMappingURL=index.js.map |