diff --git a/dist/index.js b/dist/index.js index c56fb46..485b9e2 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7,7 +7,7 @@ import './sourcemap-register.cjs';import{createRequire as e}from"module";var t={ * 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{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=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;i0&&a[a.length-1])&&(m[0]===6||m[0]===2)){n=0;continue}if(m[0]===3&&(!a||m[1]>a[0]&&m[1]=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;t1||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=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{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;i2&&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{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){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{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{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=65){i|=32}while(o!==null){if(i===o.code){if(t===++n){return o}o=o.middle;break}o=o.code{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;ne.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.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{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;te[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][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;o0&&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{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{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]{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{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{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;tthis.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{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{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{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;ne.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{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/AUGA1AQLB9EFIgZtZW1vcnkCAAtfaW5pdGlhbGl6ZQAIGV9faW5kaXJlY3RfZnVuY3Rpb25fdGFibGUBAAtsbGh0dHBfaW5pdAAJGGxsaHR0cF9zaG91bGRfa2VlcF9hbGl2ZQAvDGxsaHR0cF9hbGxvYwALBm1hbGxvYwAxC2xsaHR0cF9mcmVlAAwEZnJlZQAMD2xsaHR0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iEBQQUMcQsgASAERgRAQYABIQMMrQILIAEtAABB2QBHDW4gAUEBaiEBQQgMcAsgASAERgRAQYEBIQMMrAILAkACQCABLQAAQc4Aaw4DAG8BbwsgAUEBaiEBQesAIQMMkwILIAFBAWohAUHsACEDDJICCyABIARGBEBBggEhAwyrAgsCQAJAIAEtAABByABrDggAbm5ubm5uAW4LIAFBAWohAUHqACEDDJICCyABQQFqIQFB7QAhAwyRAgtBgwEhAyABIARGDakCIAIoAgAiACAEIAFraiEFIAEgAGtBAmohBgJAA0AgAS0AACAAQYDPAGotAABHDWwgAEECRg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKoCCyACQQA2AgAgBkEBaiEBQQAMbQtBhAEhAyABIARGDagCIAIoAgAiACAEIAFraiEFIAEgAGtBBGohBgJAA0AgAS0AACAAQYPPAGotAABHDWsgAEEERg0BIABBAWohACAEIAFBAWoiAUcNAAsgAiAFNgIADKkCCyACQQA2AgAgBkEBaiEBQSMMbAsgASAERgRAQYUBIQMMqAILAkACQCABLQAAQcwAaw4IAGtra2trawFrCyABQQFqIQFB7wAhAwyPAgsgAUEBaiEBQfAAIQMMjgILIAEgBEYEQEGGASEDDKcCCyABLQAAQcUARw1oIAFBAWohAQxgC0GHASEDIAEgBEYNpQIgAigCACIAIAQgAWtqIQUgASAAa0EDaiEGAkADQCABLQAAIABBiM8Aai0AAEcNaCAAQQNGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpgILIAJBADYCACAGQQFqIQFBLQxpC0GIASEDIAEgBEYNpAIgAigCACIAIAQgAWtqIQUgASAAa0EIaiEGAkADQCABLQAAIABB0M8Aai0AAEcNZyAAQQhGDQEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMpQILIAJBADYCACAGQQFqIQFBKQxoCyABIARGBEBBiQEhAwykAgtBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAycAgsgAkEANgIAIAZBAWohAUEVDF8LQZIBIQMgASAERg2aAiAC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9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBaiEBIAItAClBI0kNACACQQA2AhwgAiABNgIUIAJB0wk2AhAgAkEINgIMQQAhAwycAQtB0QAhAwyCAQsgAS0AA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tBASABLQAAQd8ARw1nGiABQQFqIQEMXgtBigEhAyABIARGDaICIAIoAgAiACAEIAFraiEFIAEgAGtBAWohBgNAIAEtAAAgAEGMzwBqLQAARw1kIABBAUYN+gEgAEEBaiEAIAQgAUEBaiIBRw0ACyACIAU2AgAMogILQYsBIQMgASAERg2hAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGOzwBqLQAARw1kIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyiAgsgAkEANgIAIAZBAWohAUECDGULQYwBIQMgASAERg2gAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHwzwBqLQAARw1jIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyhAgsgAkEANgIAIAZBAWohAUEfDGQLQY0BIQMgASAERg2fAiACKAIAIgAgBCABa2ohBSABIABrQQFqIQYCQANAIAEtAAAgAEHyzwBqLQAARw1iIABBAUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAygAgsgAkEANgIAIAZBAWohAUEJDGMLIAEgBEYEQEGOASEDDJ8CCwJAAkAgAS0AAEHJAGsOBwBiYmJiYgFiCyABQQFqIQFB+AAhAwyGAgsgAUEBaiEBQfkAIQMMhQILQY8BIQMgASAERg2dAiACKAIAIgAgBCABa2ohBSABIABrQQVqIQYCQANAIAEtAAAgAEGRzwBqLQAARw1gIABBBUYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAyeAgsgAkEANgIAIAZBAWohAUEYDGELQZABIQMgASAERg2cAiACKAIAIgAgBCABa2ohBSABIABrQQJqIQYCQANAIAEtAAAgAEGXzwBqLQAARw1fIABBAkYNASAAQQFqIQAgBCABQQFqIgFHDQALIAIgBTYCAAydAgsgAkEANgIAIAZBAWohAUEXDGALQZEBIQMgASAERg2bAiACKAIAIgAgBCABa2ohBSABIABrQQZqIQYCQANAIAEtAAAgAEGazwBqLQAARw1eIABBBkYNASA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iABNgIUIAIgADYCDEEAIQMMrwELIABBP0cNASABQQFqCyEBQQUhAwyUAQtBACEDIAJBADYCHCACIAE2AhQgAkH9EjYCECACQQc2AgwMrAELIAJBADYCHCACIAE2AhQgAkHcCDYCECACQQc2AgxBACEDDKsBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNByACQeUANgIcIAIgATYCFCACIAA2AgxBACEDDKoBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNFiACQdMANgIcIAIgATYCFCACIAA2AgxBACEDDKkBCyACKAIEIQAgAkEANgIEIAIgACABECUiAEUNGCACQdIANgIcIAIgATYCFCACIAA2AgxBACEDDKgBCyACQQA2AhwgAiABNgIUIAJBxgo2AhAgAkEHNgIMQQAhAwynAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQMgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwymAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRIgAkHTADYCHCACIAE2AhQgAiAANgIMQQAhAwylAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDRQgAkHSADYCHCACIAE2AhQgAiAANgIMQQAhAwykAQsgAigCBCEAIAJBADYCBCACIAAgARAlIgBFDQAgAkHlADYCHCACIAE2AhQgAiAANgIMQQAhAwyjAQtB1QAhAwyJAQsgAEEVRwRAIAJBADYCHCACIAE2AhQgAkG5DTYCECACQRo2AgxBACEDDKIBCyACQeQANgIcIAIgATYCFCACQeMXNgIQIAJBFTYCDEEAIQMMoQELIAJBADYCACAGQQFqIQEgAi0AKSIAQSNrQQtJDQQCQCAAQQZLDQBBASAAdEHKAHFFDQAMBQtBACEDIAJBADYCHCACIAE2AhQgAkH3CTYCECACQQg2AgwMoAELIAJBADYCACAGQQFqIQEgAi0AKUEhRg0DIAJBADYCHCACIAE2AhQgAkGbCjYCECACQQg2AgxBACEDDJ8BCyACQQA2AgALQQAhAyACQQA2AhwgAiABNgIUIAJBkDM2AhAgAkEINgIMDJ0BCyACQQA2AgAgBkEBa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QEBAQEBAQEBAQEBAQEBAQEBAQEBAQBB+sgACwQBAAACAEGQyQALXwMEAAAEBAQEBAQEBAQEBAUEBAQEBAQEBAQEBAQABAAGBwQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAAEAAQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQAAAAEAEH6ygALBAEAAAEAQZDLAAsBAQBBqssAC0ECAAAAAAAAAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMAAAAAAAADAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwBB+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)).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=L;o.pending=k0){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=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"]=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=0&&n<=8||n>=10&&n<=31||n===127){return true}}return false}function validateCookieName(e){for(let t=0;t126||n===34||n===40||n===41||n===60||n===62||n===64||n===44||n===59||n===58||n===92||n===47||n===91||n===93||n===63||n===61||n===123||n===125){throw 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(n126||t===34||t===44||t===59||t===92){throw new Error("Invalid cookie value")}}}function validateCookiePath(e){for(let t=0;tt.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.pos0){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;t57)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 */;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=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;ie.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.positiond.test(e)),e,t);let n=collectASequenceOfCodePoints((e=>e!==";"&&e!=="="),e,t);n=n.toLowerCase();if(t.positione.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(i0&&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(ot){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;t70){return false}for(let n=0;n=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(o0&&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{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>","record"]})}}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]>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>"](e,t,n,o.bind(e))}return h.converters["record"](e,t,n)}throw h.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence>","record"]})};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;en){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{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;t126||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=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.startTime4096){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=/(?sha256|sha384|sha512)-((?[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=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.positionm){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.positione!=='"'&&e!==","),t,n);if(n.positione===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{});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(di){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;e255){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"]=m.sequenceConverter(m.converters.ByteString);m.converters["sequence>"]=m.sequenceConverter(m.converters["sequence"]);m.converters["record"]=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"]=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"],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;to){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 */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{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{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;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125){return 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.position57){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 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"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence"]=function(e,t,n){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence"](e)}return o.converters.DOMString(e,t,n)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence"],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 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"](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"!==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++;a0)||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(;t5&&"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[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[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[t+2]){t+=2;break}return t}const h='"',f="'";function g(e,t){let n="",o="",i=!1;for(;t"===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;ea.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[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(;tthis.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{for(;t0&&(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=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(;n0){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;e0)){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;e0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(d);for(let e=0;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: `);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"){let o,i="";for(let a=t;a",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;d0&&(a[t.textNodeName]=i):void 0!==i&&(a[t.textNodeName]=i),a}function ct(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n");const o=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.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`,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}`:(a+=k+">",L&&""!==n&&(L.includes("/>")||L.includes("`):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${o}`: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;n0&&t.processEntities)for(let n=0;n","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{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+""+e+"${e}`;else if("object"==typeof e&&null!==e){const o=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=""===o?`<${n}${i}/>`:`<${n}${i}>${o}`}}else if("object"==typeof o&&null!==o){const e=this.buildRawContent(o),i=this.buildAttributesForStopNode(o);t+=""===e?`<${n}${i}/>`:`<${n}${i}>${e}`}else t+=`<${n}>${o}`}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=""+e+i}},St.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+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+"0&&this.options.processEntities)for(let t=0;t{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{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{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}`}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;a0){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(nsetTimeout(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;tPattern.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=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=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{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()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&&td){failValidation("MaxItems",d)}if(m!==undefined&&t.length>m){failValidation("MaxLength",m)}if(h!==undefined&&t.lengthn.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;te!==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{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;d0){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=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{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`;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}`}else{i+=D+">";if(k&&o!==""&&(k.includes("/>")||k.includes("`}a=true}return i}function propName(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities){for(let n=0;n{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"+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=`>`+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+"0&&this.options.processEntities){for(let t=0;t"&&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++;a0){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(;t5&&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"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"){n--;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"){t+=2;break}}}return t}const ro='"';const no="'";function readAttributeStr(e,t){let n="";let o="";let i=false;for(;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;efalse,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"){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(tthis.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{while(t1||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;e0){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",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: `)}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",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;a0)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${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){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-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;t0){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.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){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.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&&ni){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;ea}const d=i0){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&&ni){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(o0&&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.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)<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;n0){for(let t=0;t0}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){this.emitter.emit("finish");return}while(this.actives{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{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{let n=a+d;if(o+h{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{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{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=0&&P{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;tSm(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(Dh.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.posxm}])}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.posQm},{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.posQm},{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.posQm},{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.posvm.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(t0){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()}))}} +/*! ws. MIT License. Einar Otto Stangvik */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{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{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;t126||n===34||n===40||n===41||n===44||n===47||n===58||n===59||n===60||n===61||n===62||n===63||n===64||n===91||n===92||n===93||n===123||n===125){return 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.position57){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 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"]=o.sequenceConverter(o.converters.DOMString);o.converters["DOMString or sequence"]=function(e,t,n){if(o.util.Type(e)==="Object"&&Symbol.iterator in e){return o.converters["sequence"](e)}return o.converters.DOMString(e,t,n)};o.converters.WebSocketInit=o.dictionaryConverter([{key:"protocols",converter:o.converters["DOMString or sequence"],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 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"](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"!==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++;a0)||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(;t5&&"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[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[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[t+2]){t+=2;break}return t}const h='"',f="'";function g(e,t){let n="",o="",i=!1;for(;t"===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;ea.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[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(;tthis.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{for(;t0&&(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=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(;n0){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;e0)){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;e0&&"object"==typeof t&&t.updateCurrent&&t.updateCurrent(d);for(let e=0;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: `);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"){let o,i="";for(let a=t;a",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;d0&&(a[t.textNodeName]=i):void 0!==i&&(a[t.textNodeName]=i),a}function ct(e){const t=Object.keys(e);for(let e=0;e0&&(n="\n");const o=[];if(t.stopNodes&&Array.isArray(t.stopNodes))for(let e=0;et.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`,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}`:(a+=k+">",L&&""!==n&&(L.includes("/>")||L.includes("`):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${o}`: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;n0&&t.processEntities)for(let n=0;n","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{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+""+e+"${e}`;else if("object"==typeof e&&null!==e){const o=this.buildRawContent(e),i=this.buildAttributesForStopNode(e);t+=""===o?`<${n}${i}/>`:`<${n}${i}>${o}`}}else if("object"==typeof o&&null!==o){const e=this.buildRawContent(o),i=this.buildAttributesForStopNode(o);t+=""===e?`<${n}${i}/>`:`<${n}${i}>${e}`}else t+=`<${n}>${o}`}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=""+e+i}},St.prototype.closeTag=function(e){let t="";return-1!==this.options.unpairedTags.indexOf(e)?this.options.suppressUnpairedNode||(t="/"):t=this.options.suppressEmptyNode?"/":`>`+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+"0&&this.options.processEntities)for(let t=0;t{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.1024.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.1024.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{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{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}`}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;a0){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(nsetTimeout(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;tPattern.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=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=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{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()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&&td){failValidation("MaxItems",d)}if(m!==undefined&&t.length>m){failValidation("MaxLength",m)}if(h!==undefined&&t.lengthn.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;te!==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{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;d0){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=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{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`;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}`}else{i+=D+">";if(k&&o!==""&&(k.includes("/>")||k.includes("`}a=true}return i}function propName(e){const t=Object.keys(e);for(let n=0;n0&&t.processEntities){for(let n=0;n{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"+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=`>`+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+"0&&this.options.processEntities){for(let t=0;t"&&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++;a0){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(;t5&&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"){t+=2;break}}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t"){n--;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"){t+=2;break}}}return t}const ro='"';const no="'";function readAttributeStr(e,t){let n="";let o="";let i=false;for(;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;efalse,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"){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(tthis.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{while(t1||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;e0){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",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: `)}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",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;a0)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${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){this.push(null)}if(!e){e=this.readableHighWaterMark}const t=[];let n=0;while(ne-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;t0){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.unresolvedLengthn.getReadableStream()),n.size,this.offset).then(e).catch(t)}else if(this.unresolvedLength>=this.bufferSize){return}else{e()}}}))}))}appendUnresolvedData(e){this.unresolvedDataArray.push(e);this.unresolvedLength+=e.length}shiftBufferFromUnresolvedDataArray(e){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.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&&ni){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;ea}const d=i0){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&&ni){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(o0&&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.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)<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;n0){for(let t=0;t0}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){this.emitter.emit("finish");return}while(this.actives{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{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{let n=a+d;if(o+h{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{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{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=0&&P{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;tSm(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(Dh.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.posxm}])}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.posQm},{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.posQm},{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.posQm},{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.posvm.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(t0){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;nm){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=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;n64)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>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>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>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(t1){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.lineIndentm){m=e.lineIndent}if(is_EOL(P)){h++;continue}if(e.lineIndentt)&&h!==0){throwError(e,"bad indentation of a sequence entry")}else if(e.lineIndentt){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.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndentt){h=1}else if(e.lineIndent===t){h=0}else if(e.lineIndent tag; it should be "scalar", not "'+e.kind+'"')}for(P=0,D=e.implicitTypes.length;P")}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=55296&&n<=56319&&t+1=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=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=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=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;a1024)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;m1024;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 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;i0){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=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 fF){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.lengthnf[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&&kthis.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{const{timchars:n}=this.state;e:for(let o=0;o=0},__compareBytes:function(e,t,n,o){if(e[0]!==o)return 0;const i=e.length;for(let o=1;othis.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;nsetTimeout(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""}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+)|(?:(?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(/(?{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{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.lengthconvertMarkedBigIntsReviver(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(/(?"";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(( diff --git a/package.json b/package.json index e177f68..b076363 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "packageManager": "yarn@4.9.2", "dependencies": { "@actions/core": "^3.0.0", - "@aws-sdk/client-ecr": "^3.1020.0", - "@aws-sdk/client-ecr-public": "^3.1020.0", + "@aws-sdk/client-ecr": "^3.1024.0", + "@aws-sdk/client-ecr-public": "^3.1024.0", "@docker/actions-toolkit": "^0.86.0", "http-proxy-agent": "^8.0.0", "https-proxy-agent": "^8.0.0", diff --git a/yarn.lock b/yarn.lock index f63b370..7405f2b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -181,9 +181,9 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/client-ecr-public@npm:^3.1020.0": - version: 3.1022.0 - resolution: "@aws-sdk/client-ecr-public@npm:3.1022.0" +"@aws-sdk/client-ecr-public@npm:^3.1024.0": + version: 3.1024.0 + resolution: "@aws-sdk/client-ecr-public@npm:3.1024.0" dependencies: "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" @@ -224,13 +224,13 @@ __metadata: "@smithy/util-retry": "npm:^4.2.13" "@smithy/util-utf8": "npm:^4.2.2" tslib: "npm:^2.6.2" - checksum: 10/c91a98928130052f521b59aedd2469b11b2f03a8394dceb23e48b84c201e64474efd1d13fcceaea0f507ea3b72c11615ae58c4fcb1343cc485786a4cb9a8bc1f + checksum: 10/57ee978ac000e9ea86a763138f80f66d9c91ab260d3b3e3c4bfd93e0080f69e6cf928f62c1fb59ae777d550df69227f98ed0e224e1426f55c92cf296864a8534 languageName: node linkType: hard -"@aws-sdk/client-ecr@npm:^3.1020.0": - version: 3.1022.0 - resolution: "@aws-sdk/client-ecr@npm:3.1022.0" +"@aws-sdk/client-ecr@npm:^3.1024.0": + version: 3.1024.0 + resolution: "@aws-sdk/client-ecr@npm:3.1024.0" dependencies: "@aws-crypto/sha256-browser": "npm:5.2.0" "@aws-crypto/sha256-js": "npm:5.2.0" @@ -272,7 +272,7 @@ __metadata: "@smithy/util-utf8": "npm:^4.2.2" "@smithy/util-waiter": "npm:^4.2.14" tslib: "npm:^2.6.2" - checksum: 10/ba985c4d19589eaab17416518c96686e8ef204bb526f606064a23b44c9b27f5c9b71d8f9926ac8785f5afe10e157f66689156d825d88d177c509cfd3224f3063 + checksum: 10/afd06042e0c629140ac2b232fc77290e99d15f67de02e6fe82d9991a8a507bf4541efbf55d55bc3b1a01e2ca49e5624d7e8c28ed0fdd9f4ef3d19d514baff14a languageName: node linkType: hard @@ -3155,8 +3155,8 @@ __metadata: resolution: "docker-login@workspace:." dependencies: "@actions/core": "npm:^3.0.0" - "@aws-sdk/client-ecr": "npm:^3.1020.0" - "@aws-sdk/client-ecr-public": "npm:^3.1020.0" + "@aws-sdk/client-ecr": "npm:^3.1024.0" + "@aws-sdk/client-ecr-public": "npm:^3.1024.0" "@docker/actions-toolkit": "npm:^0.86.0" "@eslint/js": "npm:^9.39.3" "@types/js-yaml": "npm:^4.0.9"