From b3bc5a6d84bd98e6cc485310f966c745f9fbaa03 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:48:22 +0200 Subject: [PATCH] chore: update generated content Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- dist/index.js | 37 ++++++++++++++++++----------------- dist/index.js.map | 2 +- dist/licenses.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 19 deletions(-) diff --git a/dist/index.js b/dist/index.js index 49022ba..e7349a6 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,4 +1,4 @@ -require('./sourcemap-register.js');(()=>{var r={79450:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__exportStar||function(r,i){for(var a in r)if(a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a))c(i,r,a)};Object.defineProperty(i,"__esModule",{value:true});const l=a(46190);p(a(15769),i);p(a(38182),i);p(a(46190),i);const d=new l.DefaultArtifactClient;i["default"]=d},54622:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Timestamp=void 0;const c=a(4061);const p=a(4061);const l=a(4061);const d=a(4061);const u=a(4061);const A=a(4061);const b=a(4061);class Timestamp$Type extends b.MessageType{constructor(){super("google.protobuf.Timestamp",[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}])}now(){const r=this.create();const i=Date.now();r.seconds=A.PbLong.from(Math.floor(i/1e3)).toString();r.nanos=i%1e3*1e6;return r}toDate(r){return new Date(A.PbLong.from(r.seconds).toNumber()*1e3+Math.ceil(r.nanos/1e6))}fromDate(r){const i=this.create();const a=r.getTime();i.seconds=A.PbLong.from(Math.floor(a/1e3)).toString();i.nanos=a%1e3*1e6;return i}internalJsonWrite(r,i){let a=A.PbLong.from(r.seconds).toNumber()*1e3;if(aDate.parse("9999-12-31T23:59:59Z"))throw new Error("Unable to encode Timestamp to JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(r.nanos<0)throw new Error("Unable to encode invalid Timestamp to JSON. Nanos must not be negative.");let c="Z";if(r.nanos>0){let i=(r.nanos+1e9).toString().substring(1);if(i.substring(3)==="000000")c="."+i.substring(0,3)+"Z";else if(i.substring(6)==="000")c="."+i.substring(0,6)+"Z";else c="."+i+"Z"}return new Date(a).toISOString().replace(".000Z",c)}internalJsonRead(r,i,a){if(typeof r!=="string")throw new Error("Unable to parse Timestamp from JSON "+(0,u.typeofJsonValue)(r)+".");let c=r.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!c)throw new Error("Unable to parse Timestamp from JSON. Invalid format.");let p=Date.parse(c[1]+"-"+c[2]+"-"+c[3]+"T"+c[4]+":"+c[5]+":"+c[6]+(c[8]?c[8]:"Z"));if(Number.isNaN(p))throw new Error("Unable to parse Timestamp from JSON. Invalid value.");if(pDate.parse("9999-12-31T23:59:59Z"))throw new globalThis.Error("Unable to parse Timestamp from JSON. Must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive.");if(!a)a=this.create();a.seconds=A.PbLong.from(p/1e3).toString();a.nanos=0;if(c[7])a.nanos=parseInt("1"+c[7]+"0".repeat(9-c[7].length))-1e9;return a}create(r){const i={seconds:"0",nanos:0};globalThis.Object.defineProperty(i,d.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,l.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let l=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.BytesValue=i.StringValue=i.BoolValue=i.UInt32Value=i.Int32Value=i.UInt64Value=i.Int64Value=i.FloatValue=i.DoubleValue=void 0;const c=a(4061);const p=a(4061);const l=a(4061);const d=a(4061);const u=a(4061);const A=a(4061);const b=a(4061);class DoubleValue$Type extends b.MessageType{constructor(){super("google.protobuf.DoubleValue",[{no:1,name:"value",kind:"scalar",T:1}])}internalJsonWrite(r,i){return this.refJsonWriter.scalar(2,r.value,"value",false,true)}internalJsonRead(r,i,a){if(!a)a=this.create();a.value=this.refJsonReader.scalar(r,1,undefined,"value");return a}create(r){const i={value:0};globalThis.Object.defineProperty(i,A.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,u.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),l=r.pos+i;while(r.pos{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ArtifactService=i.DeleteArtifactResponse=i.DeleteArtifactRequest=i.GetSignedArtifactURLResponse=i.GetSignedArtifactURLRequest=i.ListArtifactsResponse_MonolithArtifact=i.ListArtifactsResponse=i.ListArtifactsRequest=i.FinalizeArtifactResponse=i.FinalizeArtifactRequest=i.CreateArtifactResponse=i.CreateArtifactRequest=void 0;const c=a(60012);const p=a(4061);const l=a(4061);const d=a(4061);const u=a(4061);const A=a(4061);const b=a(8626);const h=a(8626);const g=a(54622);class CreateArtifactRequest$Type extends A.MessageType{constructor(){super("github.actions.results.api.v1.CreateArtifactRequest",[{no:1,name:"workflow_run_backend_id",kind:"scalar",T:9},{no:2,name:"workflow_job_run_backend_id",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9},{no:4,name:"expires_at",kind:"message",T:()=>g.Timestamp},{no:5,name:"version",kind:"scalar",T:5}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",version:0};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.posh.StringValue}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",name:"",size:"0"};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.posh.StringValue},{no:4,name:"id_filter",kind:"message",T:()=>b.Int64Value}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:""};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.posi.ListArtifactsResponse_MonolithArtifact}])}create(r){const i={artifacts:[]};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,a,c,p){let d=p!==null&&p!==void 0?p:this.create(),u=r.pos+a;while(r.posg.Timestamp}])}create(r){const i={workflowRunBackendId:"",workflowJobRunBackendId:"",databaseId:"0",name:"",size:"0"};globalThis.Object.defineProperty(i,u.MESSAGE_TYPE,{enumerable:false,value:this});if(r!==undefined)(0,d.reflectionMergePartial)(this,i,r);return i}internalBinaryRead(r,i,a,c){let p=c!==null&&c!==void 0?c:this.create(),d=r.pos+i;while(r.posl.CreateArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}FinalizeArtifact(r){const i=l.FinalizeArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/json",i);return a.then((r=>l.FinalizeArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}ListArtifacts(r){const i=l.ListArtifactsRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/json",i);return a.then((r=>l.ListArtifactsResponse.fromJson(r,{ignoreUnknownFields:true})))}GetSignedArtifactURL(r){const i=l.GetSignedArtifactURLRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/json",i);return a.then((r=>l.GetSignedArtifactURLResponse.fromJson(r,{ignoreUnknownFields:true})))}DeleteArtifact(r){const i=l.DeleteArtifactRequest.toJson(r,{useProtoFieldName:true,emitDefaultValues:false});const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/json",i);return a.then((r=>l.DeleteArtifactResponse.fromJson(r,{ignoreUnknownFields:true})))}}i.ArtifactServiceClientJSON=ArtifactServiceClientJSON;class ArtifactServiceClientProtobuf{constructor(r){this.rpc=r;this.CreateArtifact.bind(this);this.FinalizeArtifact.bind(this);this.ListArtifacts.bind(this);this.GetSignedArtifactURL.bind(this);this.DeleteArtifact.bind(this)}CreateArtifact(r){const i=l.CreateArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","CreateArtifact","application/protobuf",i);return a.then((r=>l.CreateArtifactResponse.fromBinary(r)))}FinalizeArtifact(r){const i=l.FinalizeArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","FinalizeArtifact","application/protobuf",i);return a.then((r=>l.FinalizeArtifactResponse.fromBinary(r)))}ListArtifacts(r){const i=l.ListArtifactsRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","ListArtifacts","application/protobuf",i);return a.then((r=>l.ListArtifactsResponse.fromBinary(r)))}GetSignedArtifactURL(r){const i=l.GetSignedArtifactURLRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","GetSignedArtifactURL","application/protobuf",i);return a.then((r=>l.GetSignedArtifactURLResponse.fromBinary(r)))}DeleteArtifact(r){const i=l.DeleteArtifactRequest.toBinary(r);const a=this.rpc.request("github.actions.results.api.v1.ArtifactService","DeleteArtifact","application/protobuf",i);return a.then((r=>l.DeleteArtifactResponse.fromBinary(r)))}}i.ArtifactServiceClientProtobuf=ArtifactServiceClientProtobuf;var d;(function(r){r["CreateArtifact"]="CreateArtifact";r["FinalizeArtifact"]="FinalizeArtifact";r["ListArtifacts"]="ListArtifacts";r["GetSignedArtifactURL"]="GetSignedArtifactURL";r["DeleteArtifact"]="DeleteArtifact"})(d||(i.ArtifactServiceMethod=d={}));i.ArtifactServiceMethodList=[d.CreateArtifact,d.FinalizeArtifact,d.ListArtifacts,d.GetSignedArtifactURL,d.DeleteArtifact];function createArtifactServiceServer(r){return new p.TwirpServer({service:r,packageName:"github.actions.results.api.v1",serviceName:"ArtifactService",methodList:i.ArtifactServiceMethodList,matchRoute:matchArtifactServiceRoute})}i.createArtifactServiceServer=createArtifactServiceServer;function matchArtifactServiceRoute(r,i){switch(r){case"CreateArtifact":return(r,a,p,l)=>c(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"CreateArtifact"});yield i.onMatch(r);return handleArtifactServiceCreateArtifactRequest(r,a,p,l)}));case"FinalizeArtifact":return(r,a,p,l)=>c(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"FinalizeArtifact"});yield i.onMatch(r);return handleArtifactServiceFinalizeArtifactRequest(r,a,p,l)}));case"ListArtifacts":return(r,a,p,l)=>c(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"ListArtifacts"});yield i.onMatch(r);return handleArtifactServiceListArtifactsRequest(r,a,p,l)}));case"GetSignedArtifactURL":return(r,a,p,l)=>c(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"GetSignedArtifactURL"});yield i.onMatch(r);return handleArtifactServiceGetSignedArtifactURLRequest(r,a,p,l)}));case"DeleteArtifact":return(r,a,p,l)=>c(this,void 0,void 0,(function*(){r=Object.assign(Object.assign({},r),{methodName:"DeleteArtifact"});yield i.onMatch(r);return handleArtifactServiceDeleteArtifactRequest(r,a,p,l)}));default:i.onNotFound();const r=`no handler found`;throw new p.TwirpError(p.TwirpErrorCode.BadRoute,r)}}function handleArtifactServiceCreateArtifactRequest(r,i,a,c){switch(r.contentType){case p.TwirpContentType.JSON:return handleArtifactServiceCreateArtifactJSON(r,i,a,c);case p.TwirpContentType.Protobuf:return handleArtifactServiceCreateArtifactProtobuf(r,i,a,c);default:const l="unexpected Content-Type";throw new p.TwirpError(p.TwirpErrorCode.BadRoute,l)}}function handleArtifactServiceFinalizeArtifactRequest(r,i,a,c){switch(r.contentType){case p.TwirpContentType.JSON:return handleArtifactServiceFinalizeArtifactJSON(r,i,a,c);case p.TwirpContentType.Protobuf:return handleArtifactServiceFinalizeArtifactProtobuf(r,i,a,c);default:const l="unexpected Content-Type";throw new p.TwirpError(p.TwirpErrorCode.BadRoute,l)}}function handleArtifactServiceListArtifactsRequest(r,i,a,c){switch(r.contentType){case p.TwirpContentType.JSON:return handleArtifactServiceListArtifactsJSON(r,i,a,c);case p.TwirpContentType.Protobuf:return handleArtifactServiceListArtifactsProtobuf(r,i,a,c);default:const l="unexpected Content-Type";throw new p.TwirpError(p.TwirpErrorCode.BadRoute,l)}}function handleArtifactServiceGetSignedArtifactURLRequest(r,i,a,c){switch(r.contentType){case p.TwirpContentType.JSON:return handleArtifactServiceGetSignedArtifactURLJSON(r,i,a,c);case p.TwirpContentType.Protobuf:return handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,a,c);default:const l="unexpected Content-Type";throw new p.TwirpError(p.TwirpErrorCode.BadRoute,l)}}function handleArtifactServiceDeleteArtifactRequest(r,i,a,c){switch(r.contentType){case p.TwirpContentType.JSON:return handleArtifactServiceDeleteArtifactJSON(r,i,a,c);case p.TwirpContentType.Protobuf:return handleArtifactServiceDeleteArtifactProtobuf(r,i,a,c);default:const l="unexpected Content-Type";throw new p.TwirpError(p.TwirpErrorCode.BadRoute,l)}}function handleArtifactServiceCreateArtifactJSON(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{const r=JSON.parse(a.toString()||"{}");c=l.CreateArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.CreateArtifact(r,a)))}else{u=yield i.CreateArtifact(r,c)}return JSON.stringify(l.CreateArtifactResponse.toJson(u,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceFinalizeArtifactJSON(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{const r=JSON.parse(a.toString()||"{}");c=l.FinalizeArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.FinalizeArtifact(r,a)))}else{u=yield i.FinalizeArtifact(r,c)}return JSON.stringify(l.FinalizeArtifactResponse.toJson(u,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceListArtifactsJSON(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{const r=JSON.parse(a.toString()||"{}");c=l.ListArtifactsRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.ListArtifacts(r,a)))}else{u=yield i.ListArtifacts(r,c)}return JSON.stringify(l.ListArtifactsResponse.toJson(u,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceGetSignedArtifactURLJSON(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{const r=JSON.parse(a.toString()||"{}");c=l.GetSignedArtifactURLRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.GetSignedArtifactURL(r,a)))}else{u=yield i.GetSignedArtifactURL(r,c)}return JSON.stringify(l.GetSignedArtifactURLResponse.toJson(u,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceDeleteArtifactJSON(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{const r=JSON.parse(a.toString()||"{}");c=l.DeleteArtifactRequest.fromJson(r,{ignoreUnknownFields:true})}catch(r){if(r instanceof Error){const i="the json request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.DeleteArtifact(r,a)))}else{u=yield i.DeleteArtifact(r,c)}return JSON.stringify(l.DeleteArtifactResponse.toJson(u,{useProtoFieldName:true,emitDefaultValues:false}))}))}function handleArtifactServiceCreateArtifactProtobuf(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{c=l.CreateArtifactRequest.fromBinary(a)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.CreateArtifact(r,a)))}else{u=yield i.CreateArtifact(r,c)}return Buffer.from(l.CreateArtifactResponse.toBinary(u))}))}function handleArtifactServiceFinalizeArtifactProtobuf(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{c=l.FinalizeArtifactRequest.fromBinary(a)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.FinalizeArtifact(r,a)))}else{u=yield i.FinalizeArtifact(r,c)}return Buffer.from(l.FinalizeArtifactResponse.toBinary(u))}))}function handleArtifactServiceListArtifactsProtobuf(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{c=l.ListArtifactsRequest.fromBinary(a)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.ListArtifacts(r,a)))}else{u=yield i.ListArtifacts(r,c)}return Buffer.from(l.ListArtifactsResponse.toBinary(u))}))}function handleArtifactServiceGetSignedArtifactURLProtobuf(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{c=l.GetSignedArtifactURLRequest.fromBinary(a)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.GetSignedArtifactURL(r,a)))}else{u=yield i.GetSignedArtifactURL(r,c)}return Buffer.from(l.GetSignedArtifactURLResponse.toBinary(u))}))}function handleArtifactServiceDeleteArtifactProtobuf(r,i,a,d){return c(this,void 0,void 0,(function*(){let c;let u;try{c=l.DeleteArtifactRequest.fromBinary(a)}catch(r){if(r instanceof Error){const i="the protobuf request could not be decoded";throw new p.TwirpError(p.TwirpErrorCode.Malformed,i).withCause(r,true)}}if(d&&d.length>0){const a=(0,p.chainInterceptors)(...d);u=yield a(r,c,((r,a)=>i.DeleteArtifact(r,a)))}else{u=yield i.DeleteArtifact(r,c)}return Buffer.from(l.DeleteArtifactResponse.toBinary(u))}))}},46190:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var p=this&&this.__rest||function(r,i){var a={};for(var c in r)if(Object.prototype.hasOwnProperty.call(r,c)&&i.indexOf(c)<0)a[c]=r[c];if(r!=null&&typeof Object.getOwnPropertySymbols==="function")for(var p=0,c=Object.getOwnPropertySymbols(r);p1){u=d.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];(0,p.debug)(`More than one artifact found for a single name, returning newest (id: ${u.databaseId})`)}const A={workflowRunBackendId:u.workflowRunBackendId,workflowJobRunBackendId:u.workflowJobRunBackendId,name:u.name};const b=yield i.DeleteArtifact(A);(0,p.info)(`Artifact '${r}' (ID: ${b.artifactId}) deleted`);return{id:Number(b.artifactId)}}))}i.deleteArtifactInternal=deleteArtifactInternal},73555:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var u=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.downloadArtifactInternal=i.downloadArtifactPublic=i.streamExtractExternal=void 0;const A=u(a(73292));const b=l(a(21260));const h=l(a(42186));const g=l(a(96255));const M=u(a(69340));const z=a(85164);const O=a(74610);const y=a(12312);const v=a(49960);const C=a(63062);const q=a(38182);const scrubQueryParameters=r=>{const i=new URL(r);i.search="";return i.toString()};function exists(r){return d(this,void 0,void 0,(function*(){try{yield A.default.access(r);return true}catch(r){if(r.code==="ENOENT"){return false}else{throw r}}}))}function streamExtract(r,i){return d(this,void 0,void 0,(function*(){let a=0;while(a<5){try{yield streamExtractExternal(r,i);return}catch(r){a++;h.debug(`Failed to download artifact after ${a} retries due to ${r.message}. Retrying in 5 seconds...`);yield new Promise((r=>setTimeout(r,5e3)))}}throw new Error(`Artifact download failed after ${a} retries.`)}))}function streamExtractExternal(r,i){return d(this,void 0,void 0,(function*(){const a=new g.HttpClient((0,z.getUserAgentString)());const c=yield a.get(r);if(c.message.statusCode!==200){throw new Error(`Unexpected HTTP response from blob storage: ${c.message.statusCode} ${c.message.statusMessage}`)}const p=30*1e3;return new Promise(((r,a)=>{const timerFn=()=>{c.message.destroy(new Error(`Blob storage chunk did not respond in ${p}ms`))};const l=setTimeout(timerFn,p);c.message.on("data",(()=>{l.refresh()})).on("error",(r=>{h.debug(`response.message: Artifact download failed: ${r.message}`);clearTimeout(l);a(r)})).pipe(M.default.Extract({path:i})).on("close",(()=>{clearTimeout(l);r()})).on("error",(r=>{a(r)}))}))}))}i.streamExtractExternal=streamExtractExternal;function downloadArtifactPublic(r,i,a,c,p){return d(this,void 0,void 0,(function*(){const l=yield resolveOrCreateDirectory(p===null||p===void 0?void 0:p.path);const d=b.getOctokit(c);h.info(`Downloading artifact '${r}' from '${i}/${a}'`);const{headers:u,status:A}=yield d.rest.actions.downloadArtifact({owner:i,repo:a,artifact_id:r,archive_format:"zip",request:{redirect:"manual"}});if(A!==302){throw new Error(`Unable to download artifact. Unexpected status: ${A}`)}const{location:g}=u;if(!g){throw new Error(`Unable to redirect to artifact download url`)}h.info(`Redirecting to blob download url: ${scrubQueryParameters(g)}`);try{h.info(`Starting download of artifact to: ${l}`);yield streamExtract(g,l);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:l}}))}i.downloadArtifactPublic=downloadArtifactPublic;function downloadArtifactInternal(r,i){return d(this,void 0,void 0,(function*(){const a=yield resolveOrCreateDirectory(i===null||i===void 0?void 0:i.path);const c=(0,y.internalArtifactTwirpClient)();const{workflowRunBackendId:p,workflowJobRunBackendId:l}=(0,C.getBackendIdsFromToken)();const d={workflowRunBackendId:p,workflowJobRunBackendId:l,idFilter:v.Int64Value.create({value:r.toString()})};const{artifacts:u}=yield c.ListArtifacts(d);if(u.length===0){throw new q.ArtifactNotFoundError(`No artifacts found for ID: ${r}\nAre you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`)}if(u.length>1){h.warning("Multiple artifacts found, defaulting to first.")}const A={workflowRunBackendId:u[0].workflowRunBackendId,workflowJobRunBackendId:u[0].workflowJobRunBackendId,name:u[0].name};const{signedUrl:b}=yield c.GetSignedArtifactURL(A);h.info(`Redirecting to blob download url: ${scrubQueryParameters(b)}`);try{h.info(`Starting download of artifact to: ${a}`);yield streamExtract(b,a);h.info(`Artifact download completed successfully.`)}catch(r){throw new Error(`Unable to download and extract artifact: ${r.message}`)}return{downloadPath:a}}))}i.downloadArtifactInternal=downloadArtifactInternal;function resolveOrCreateDirectory(r=(0,O.getGitHubWorkspaceDir)()){return d(this,void 0,void 0,(function*(){if(!(yield exists(r))){h.debug(`Artifact destination folder does not exist, creating: ${r}`);yield A.default.mkdir(r,{recursive:true})}else{h.debug(`Artifact destination folder already exists: ${r}`)}return r}))}},29491:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getArtifactInternal=i.getArtifactPublic=void 0;const u=a(21260);const A=a(86298);const b=l(a(42186));const h=a(58154);const g=a(64597);const M=a(68883);const z=a(63062);const O=a(85164);const y=a(12312);const v=a(49960);const C=a(38182);function getArtifactPublic(r,i,a,c,p){var l;return d(this,void 0,void 0,(function*(){const[d,z]=(0,g.getRetryOptions)(h.defaults);const y={log:undefined,userAgent:(0,O.getUserAgentString)(),previews:undefined,retry:d,request:z};const v=(0,u.getOctokit)(p,y,A.retry,M.requestLog);const q=yield v.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:a,repo:c,run_id:i,name:r});if(q.status!==200){throw new C.InvalidResponseError(`Invalid response from GitHub API: ${q.status} (${(l=q===null||q===void 0?void 0:q.headers)===null||l===void 0?void 0:l["x-github-request-id"]})`)}if(q.data.artifacts.length===0){throw new C.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let R=q.data.artifacts[0];if(q.data.artifacts.length>1){R=q.data.artifacts.sort(((r,i)=>i.id-r.id))[0];b.debug(`More than one artifact found for a single name, returning newest (id: ${R.id})`)}return{artifact:{name:R.name,id:R.id,size:R.size_in_bytes,createdAt:R.created_at?new Date(R.created_at):undefined}}}))}i.getArtifactPublic=getArtifactPublic;function getArtifactInternal(r){return d(this,void 0,void 0,(function*(){const i=(0,y.internalArtifactTwirpClient)();const{workflowRunBackendId:a,workflowJobRunBackendId:c}=(0,z.getBackendIdsFromToken)();const p={workflowRunBackendId:a,workflowJobRunBackendId:c,nameFilter:v.StringValue.create({value:r})};const l=yield i.ListArtifacts(p);if(l.artifacts.length===0){throw new C.ArtifactNotFoundError(`Artifact not found for name: ${r}\n Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.\n For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`)}let d=l.artifacts[0];if(l.artifacts.length>1){d=l.artifacts.sort(((r,i)=>Number(i.databaseId)-Number(r.databaseId)))[0];b.debug(`More than one artifact found for a single name, returning newest (id: ${d.databaseId})`)}return{artifact:{name:d.name,id:Number(d.databaseId),size:Number(d.size),createdAt:d.createdAt?v.Timestamp.toDate(d.createdAt):undefined}}}))}i.getArtifactInternal=getArtifactInternal},44141:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.listArtifactsInternal=i.listArtifactsPublic=void 0;const p=a(42186);const l=a(21260);const d=a(85164);const u=a(64597);const A=a(58154);const b=a(68883);const h=a(86298);const g=a(12312);const M=a(63062);const z=a(49960);const O=1e3;const y=100;const v=O/y;function listArtifactsPublic(r,i,a,g,M=false){return c(this,void 0,void 0,(function*(){(0,p.info)(`Fetching artifact list for workflow run ${r} in repository ${i}/${a}`);let c=[];const[z,C]=(0,u.getRetryOptions)(A.defaults);const q={log:undefined,userAgent:(0,d.getUserAgentString)(),previews:undefined,retry:z,request:C};const R=(0,l.getOctokit)(g,q,h.retry,b.requestLog);let B=1;const{data:w}=yield R.rest.actions.listWorkflowRunArtifacts({owner:i,repo:a,run_id:r,per_page:y,page:B});let S=Math.ceil(w.total_count/y);const N=w.total_count;if(N>O){(0,p.warning)(`Workflow run ${r} has more than 1000 artifacts. Results will be incomplete as only the first ${O} artifacts will be returned`);S=v}for(const r of w.artifacts){c.push({name:r.name,id:r.id,size:r.size_in_bytes,createdAt:r.created_at?new Date(r.created_at):undefined})}for(B;B({name:r.name,id:Number(r.databaseId),size:Number(r.size),createdAt:r.createdAt?z.Timestamp.toDate(r.createdAt):undefined})));if(r){u=filterLatest(u)}(0,p.info)(`Found ${u.length} artifact(s)`);return{artifacts:u}}))}i.listArtifactsInternal=listArtifactsInternal;function filterLatest(r){r.sort(((r,i)=>i.id-r.id));const i=[];const a=new Set;for(const c of r){if(!a.has(c.name)){i.push(c);a.add(c.name)}}return i}},64597:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getRetryOptions=void 0;const d=l(a(42186));const u=5;const A=[400,401,403,404,422];function getRetryOptions(r,i=u,a=A){var c;if(i<=0){return[{enabled:false},r.request]}const p={enabled:true};if(a.length>0){p.doNotRetry=a}const l=Object.assign(Object.assign({},r.request),{retries:i});d.debug(`GitHub client configured with: (retries: ${l.retries}, retry-exempt-status-code: ${(c=p.doNotRetry)!==null&&c!==void 0?c:"octokit default: [400, 401, 403, 404, 422]"})`);return[p,l]}i.getRetryOptions=getRetryOptions},12312:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.internalArtifactTwirpClient=void 0;const p=a(96255);const l=a(35526);const d=a(42186);const u=a(49960);const A=a(74610);const b=a(85164);const h=a(38182);class ArtifactHttpClient{constructor(r,i,a,c){this.maxAttempts=5;this.baseRetryIntervalMilliseconds=3e3;this.retryMultiplier=1.5;const d=(0,A.getRuntimeToken)();this.baseUrl=(0,A.getResultsServiceUrl)();if(i){this.maxAttempts=i}if(a){this.baseRetryIntervalMilliseconds=a}if(c){this.retryMultiplier=c}this.httpClient=new p.HttpClient(r,[new l.BearerCredentialHandler(d)])}request(r,i,a,p){return c(this,void 0,void 0,(function*(){const l=new URL(`/twirp/${r}/${i}`,this.baseUrl).href;(0,d.debug)(`[Request] ${i} ${l}`);const u={"Content-Type":a};try{const{body:r}=yield this.retryableRequest((()=>c(this,void 0,void 0,(function*(){return this.httpClient.post(l,JSON.stringify(p),u)}))));return r}catch(r){throw new Error(`Failed to ${i}: ${r.message}`)}}))}retryableRequest(r){return c(this,void 0,void 0,(function*(){let i=0;let a="";let c="";while(i=200&&r<300}isRetryableHttpStatusCode(r){if(!r)return false;const i=[p.HttpCodes.BadGateway,p.HttpCodes.GatewayTimeout,p.HttpCodes.InternalServerError,p.HttpCodes.ServiceUnavailable,p.HttpCodes.TooManyRequests];return i.includes(r)}sleep(r){return c(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,r)))}))}getExponentialRetryTimeMilliseconds(r){if(r<0){throw new Error("attempt should be a positive integer")}if(r===0){return this.baseRetryIntervalMilliseconds}const i=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,r);const a=i*this.retryMultiplier;return Math.trunc(Math.random()*(a-i)+i)}}function internalArtifactTwirpClient(r){const i=new ArtifactHttpClient((0,b.getUserAgentString)(),r===null||r===void 0?void 0:r.maxAttempts,r===null||r===void 0?void 0:r.retryIntervalMs,r===null||r===void 0?void 0:r.retryMultiplier);return new u.ArtifactServiceClientJSON(i)}i.internalArtifactTwirpClient=internalArtifactTwirpClient},74610:function(r,i,a){"use strict";var c=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getConcurrency=i.getGitHubWorkspaceDir=i.isGhes=i.getResultsServiceUrl=i.getRuntimeToken=i.getUploadChunkSize=void 0;const p=c(a(22037));function getUploadChunkSize(){return 8*1024*1024}i.getUploadChunkSize=getUploadChunkSize;function getRuntimeToken(){const r=process.env["ACTIONS_RUNTIME_TOKEN"];if(!r){throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable")}return r}i.getRuntimeToken=getRuntimeToken;function getResultsServiceUrl(){const r=process.env["ACTIONS_RESULTS_URL"];if(!r){throw new Error("Unable to get the ACTIONS_RESULTS_URL env variable")}return new URL(r).origin}i.getResultsServiceUrl=getResultsServiceUrl;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const i=r.hostname.trimEnd().toUpperCase();const a=i==="GITHUB.COM";const c=i.endsWith(".GHE.COM")||i.endsWith(".GHE.LOCALHOST");return!a&&!c}i.isGhes=isGhes;function getGitHubWorkspaceDir(){const r=process.env["GITHUB_WORKSPACE"];if(!r){throw new Error("Unable to get the GITHUB_WORKSPACE env variable")}return r}i.getGitHubWorkspaceDir=getGitHubWorkspaceDir;function getConcurrency(){const r=p.default.cpus().length;if(r<=4){return 32}const i=16*r;return i>300?300:i}i.getConcurrency=getConcurrency},38182:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.UsageError=i.NetworkError=i.GHESNotSupportedError=i.ArtifactNotFoundError=i.InvalidResponseError=i.FilesNotFoundError=void 0;class FilesNotFoundError extends Error{constructor(r=[]){let i="No files were found to upload";if(r.length>0){i+=`: ${r.join(", ")}`}super(i);this.files=r;this.name="FilesNotFoundError"}}i.FilesNotFoundError=FilesNotFoundError;class InvalidResponseError extends Error{constructor(r){super(r);this.name="InvalidResponseError"}}i.InvalidResponseError=InvalidResponseError;class ArtifactNotFoundError extends Error{constructor(r="Artifact not found"){super(r);this.name="ArtifactNotFoundError"}}i.ArtifactNotFoundError=ArtifactNotFoundError;class GHESNotSupportedError extends Error{constructor(r="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(r);this.name="GHESNotSupportedError"}}i.GHESNotSupportedError=GHESNotSupportedError;class NetworkError extends Error{constructor(r){const i=`Unable to make request: ${r}\nIf you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(i);this.code=r;this.name="NetworkError"}}i.NetworkError=NetworkError;NetworkError.isNetworkErrorCode=r=>{if(!r)return false;return["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(r)};class UsageError extends Error{constructor(){const r=`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.\nMore info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`;super(r);this.name="UsageError"}}i.UsageError=UsageError;UsageError.isUsageErrorMessage=r=>{if(!r)return false;return r.includes("insufficient usage")}},15769:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true})},85164:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.getUserAgentString=void 0;const c=a(39839);function getUserAgentString(){return`@actions/artifact-${c.version}`}i.getUserAgentString=getUserAgentString},63062:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.getBackendIdsFromToken=void 0;const u=l(a(42186));const A=a(74610);const b=d(a(84329));const h=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function getBackendIdsFromToken(){const r=(0,A.getRuntimeToken)();const i=(0,b.default)(r);if(!i.scp){throw h}const a=i.scp.split(" ");if(a.length===0){throw h}for(const r of a){const i=r.split(":");if((i===null||i===void 0?void 0:i[0])!=="Actions.Results"){continue}if(i.length!==3){throw h}const a={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};u.debug(`Workflow Run Backend ID: ${a.workflowRunBackendId}`);u.debug(`Workflow Job Run Backend ID: ${a.workflowJobRunBackendId}`);return a}throw h}i.getBackendIdsFromToken=getBackendIdsFromToken},7246:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.uploadZipToBlobStorage=void 0;const u=a(84100);const A=a(74610);const b=l(a(42186));const h=l(a(6113));const g=l(a(12781));const M=a(38182);function uploadZipToBlobStorage(r,i){return d(this,void 0,void 0,(function*(){let a=0;let c=Date.now();let p;const chunkTimer=r=>{if(p){clearTimeout(p)}p=setTimeout((()=>{const i=Date.now();if(i-c>r){throw new Error("Upload progress stalled.")}}),r);return p};const l=(0,A.getConcurrency)();const d=(0,A.getUploadChunkSize)();const z=new u.BlobClient(r);const O=z.getBlockBlobClient();const y=3e5;b.debug(`Uploading artifact zip to blob storage with maxConcurrency: ${l}, bufferSize: ${d}`);const uploadCallback=r=>{b.info(`Uploaded bytes ${r.loadedBytes}`);a=r.loadedBytes;chunkTimer(y);c=Date.now()};const v={blobHTTPHeaders:{blobContentType:"zip"},onProgress:uploadCallback};let C=undefined;const q=new g.PassThrough;const R=h.createHash("sha256");i.pipe(q);i.pipe(R).setEncoding("hex");b.info("Beginning upload of artifact content to blob storage");try{p=chunkTimer(y);yield O.uploadStream(q,d,l,v)}catch(r){if(M.NetworkError.isNetworkErrorCode(r===null||r===void 0?void 0:r.code)){throw new M.NetworkError(r===null||r===void 0?void 0:r.code)}throw r}finally{if(p){clearTimeout(p)}}b.info("Finished uploading artifact content to blob storage!");R.end();C=R.read();b.info(`SHA256 hash of uploaded artifact zip is ${C}`);if(a===0){b.warning(`No data was uploaded to blob storage. Reported upload byte count is 0.`)}return{uploadSize:a,sha256Hash:C}}))}i.uploadZipToBlobStorage=uploadZipToBlobStorage},63219:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.validateFilePath=i.validateArtifactName=void 0;const c=a(42186);const p=new Map([['"',' Double quote "'],[":"," Colon :"],["<"," Less than <"],[">"," Greater than >"],["|"," Vertical bar |"],["*"," Asterisk *"],["?"," Question mark ?"],["\r"," Carriage return \\r"],["\n"," Line feed \\n"]]);const l=new Map([...p,["\\"," Backslash \\"],["/"," Forward slash /"]]);function validateArtifactName(r){if(!r){throw new Error(`Provided artifact name input during validation is empty`)}for(const[i,a]of l){if(r.includes(i)){throw new Error(`The artifact name is not valid: ${r}. Contains the following character: ${a}\n \nInvalid characters include: ${Array.from(l.values()).toString()}\n \nThese characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`)}}(0,c.info)(`Artifact name is valid!`)}i.validateArtifactName=validateArtifactName;function validateFilePath(r){if(!r){throw new Error(`Provided file path input during validation is empty`)}for(const[i,a]of p){if(r.includes(i)){throw new Error(`The path for one of the files in artifact is not valid: ${r}. Contains the following character: ${a}\n \nInvalid characters include: ${Array.from(p.values()).toString()}\n \nThe following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.\n `)}}}i.validateFilePath=validateFilePath},3231:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getExpiration=void 0;const d=a(49960);const u=l(a(42186));function getExpiration(r){if(!r){return undefined}const i=getRetentionDays();if(i&&ir.sourcePath?[r.sourcePath]:[])))}const l=(0,M.getBackendIdsFromToken)();const d=(0,h.internalArtifactTwirpClient)();const C={workflowRunBackendId:l.workflowRunBackendId,workflowJobRunBackendId:l.workflowJobRunBackendId,name:r,version:4};const q=(0,A.getExpiration)(c===null||c===void 0?void 0:c.retentionDays);if(q){C.expiresAt=q}const R=yield d.CreateArtifact(C);if(!R.ok){throw new v.InvalidResponseError("CreateArtifact: response from backend was not ok")}const B=yield(0,O.createZipUploadStream)(p,c===null||c===void 0?void 0:c.compressionLevel);const w=yield(0,z.uploadZipToBlobStorage)(R.signedUploadUrl,B);const S={workflowRunBackendId:l.workflowRunBackendId,workflowJobRunBackendId:l.workflowJobRunBackendId,name:r,size:w.uploadSize?w.uploadSize.toString():"0"};if(w.sha256Hash){S.hash=y.StringValue.create({value:`sha256:${w.sha256Hash}`})}u.info(`Finalizing artifact upload`);const N=yield d.FinalizeArtifact(S);if(!N.ok){throw new v.InvalidResponseError("FinalizeArtifact: response from backend was not ok")}const I=BigInt(N.artifactId);u.info(`Artifact ${r}.zip successfully finalized. Artifact ID ${I}`);return{size:w.uploadSize,id:Number(I)}}))}i.uploadArtifact=uploadArtifact},17837:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getUploadZipSpecification=i.validateRootDirectory=void 0;const d=l(a(57147));const u=a(42186);const A=a(71017);const b=a(63219);function validateRootDirectory(r){if(!d.existsSync(r)){throw new Error(`The provided rootDirectory ${r} does not exist`)}if(!d.statSync(r).isDirectory()){throw new Error(`The provided rootDirectory ${r} is not a valid directory`)}(0,u.info)(`Root directory input is valid!`)}i.validateRootDirectory=validateRootDirectory;function getUploadZipSpecification(r,i){const a=[];i=(0,A.normalize)(i);i=(0,A.resolve)(i);for(let c of r){if(!d.existsSync(c)){throw new Error(`File ${c} does not exist`)}if(!d.statSync(c).isDirectory()){c=(0,A.normalize)(c);c=(0,A.resolve)(c);if(!c.startsWith(i)){throw new Error(`The rootDirectory: ${i} is not a parent directory of the file: ${c}`)}const r=c.replace(i,"");(0,b.validateFilePath)(r);a.push({sourcePath:c,destinationPath:r})}else{const r=c.replace(i,"");(0,b.validateFilePath)(r);a.push({sourcePath:null,destinationPath:r})}}return a}i.getUploadZipSpecification=getUploadZipSpecification},69186:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createZipUploadStream=i.ZipUploadStream=i.DEFAULT_COMPRESSION_LEVEL=void 0;const u=l(a(12781));const A=l(a(43084));const b=l(a(42186));const h=a(57147);const g=a(74610);i.DEFAULT_COMPRESSION_LEVEL=6;class ZipUploadStream extends u.Transform{constructor(r){super({highWaterMark:r})}_transform(r,i,a){a(null,r)}}i.ZipUploadStream=ZipUploadStream;function createZipUploadStream(r,a=i.DEFAULT_COMPRESSION_LEVEL){return d(this,void 0,void 0,(function*(){b.debug(`Creating Artifact archive with compressionLevel: ${a}`);const i=A.create("zip",{highWaterMark:(0,g.getUploadChunkSize)(),zlib:{level:a}});i.on("error",zipErrorCallback);i.on("warning",zipWarningCallback);i.on("finish",zipFinishCallback);i.on("end",zipEndCallback);for(const a of r){if(a.sourcePath!==null){i.append((0,h.createReadStream)(a.sourcePath),{name:a.destinationPath})}else{i.append("",{name:a.destinationPath})}}const c=(0,g.getUploadChunkSize)();const p=new ZipUploadStream(c);b.debug(`Zip write high watermark value ${p.writableHighWaterMark}`);b.debug(`Zip read high watermark value ${p.readableHighWaterMark}`);i.pipe(p);i.finalize();return p}))}i.createZipUploadStream=createZipUploadStream;const zipErrorCallback=r=>{b.error("An error has occurred while creating the zip file for upload");b.info(r);throw new Error("An error has occurred during zip creation for the artifact")};const zipWarningCallback=r=>{if(r.code==="ENOENT"){b.warning("ENOENT warning during artifact zip creation. No such file or directory");b.info(r)}else{b.warning(`A non-blocking warning has occurred during artifact zip creation: ${r.code}`);b.info(r)}};const zipFinishCallback=()=>{b.debug("Zip stream for upload has finished.")};const zipEndCallback=()=>{b.debug("Zip stream for upload has ended.")}},47387:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const c=a(57147);const p=a(22037);class Context{constructor(){var r,i,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if(c.existsSync(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse(c.readFileSync(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${p.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.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:i}}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'")}}i.Context=Context},21260:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const d=l(a(47387));const u=a(58154);i.context=new d.Context;function getOctokit(r,i,...a){const c=u.GitHub.plugin(...a);return new c(u.getOctokitOptions(r,i))}i.getOctokit=getOctokit},12114:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyAgent=i.getAuthString=void 0;const d=l(a(96255));function getAuthString(r,i){if(!r&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${r}`}i.getAuthString=getAuthString;function getProxyAgent(r){const i=new d.HttpClient;return i.getAgent(r)}i.getProxyAgent=getProxyAgent;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},58154:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const d=l(a(47387));const u=l(a(12114));const A=a(76762);const b=a(83044);const h=a(64193);i.context=new d.Context;const g=u.getApiBaseUrl();i.defaults={baseUrl:g,request:{agent:u.getProxyAgent(g)}};i.GitHub=A.Octokit.plugin(b.restEndpointMethods,h.paginateRest).defaults(i.defaults);function getOctokitOptions(r,i){const a=Object.assign({},i||{});const c=u.getAuthString(r,a);if(c){a.auth=c}return a}i.getOctokitOptions=getOctokitOptions},27799:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.restoreCache=i.isFeatureAvailable=i.ReserveCacheError=i.ValidationError=void 0;const u=l(a(42186));const A=l(a(71017));const b=l(a(91518));const h=l(a(98245));const g=a(56490);class ValidationError extends Error{constructor(r){super(r);this.name="ValidationError";Object.setPrototypeOf(this,ValidationError.prototype)}}i.ValidationError=ValidationError;class ReserveCacheError extends Error{constructor(r){super(r);this.name="ReserveCacheError";Object.setPrototypeOf(this,ReserveCacheError.prototype)}}i.ReserveCacheError=ReserveCacheError;function checkPaths(r){if(!r||r.length===0){throw new ValidationError(`Path Validation Error: At least one directory or file path is required`)}}function checkKey(r){if(r.length>512){throw new ValidationError(`Key Validation Error: ${r} cannot be larger than 512 characters.`)}const i=/^[^,]*$/;if(!i.test(r)){throw new ValidationError(`Key Validation Error: ${r} cannot contain commas.`)}}function isFeatureAvailable(){return!!process.env["ACTIONS_CACHE_URL"]}i.isFeatureAvailable=isFeatureAvailable;function restoreCache(r,i,a,c,p=false){return d(this,void 0,void 0,(function*(){checkPaths(r);a=a||[];const l=[i,...a];u.debug("Resolved Keys:");u.debug(JSON.stringify(l));if(l.length>10){throw new ValidationError(`Key Validation Error: Keys are limited to a maximum of 10.`)}for(const r of l){checkKey(r)}const d=yield b.getCompressionMethod();let M="";try{const i=yield h.getCacheEntry(l,r,{compressionMethod:d,enableCrossOsArchive:p});if(!(i===null||i===void 0?void 0:i.archiveLocation)){return undefined}if(c===null||c===void 0?void 0:c.lookupOnly){u.info("Lookup only - skipping download");return i.cacheKey}M=A.join(yield b.createTempDirectory(),b.getCacheFileName(d));u.debug(`Archive Path: ${M}`);yield h.downloadCache(i.archiveLocation,M,c);if(u.isDebug()){yield(0,g.listTar)(M,d)}const a=b.getArchiveFileSizeInBytes(M);u.info(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);yield(0,g.extractTar)(M,d);u.info("Cache restored successfully");return i.cacheKey}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else{u.warning(`Failed to restore: ${r.message}`)}}finally{try{yield b.unlinkFile(M)}catch(r){u.debug(`Failed to delete archive: ${r}`)}}return undefined}))}i.restoreCache=restoreCache;function saveCache(r,i,a,c=false){var p,l,M,z,O;return d(this,void 0,void 0,(function*(){checkPaths(r);checkKey(i);const d=yield b.getCompressionMethod();let y=-1;const v=yield b.resolvePaths(r);u.debug("Cache Paths:");u.debug(`${JSON.stringify(v)}`);if(v.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 C=yield b.createTempDirectory();const q=A.join(C,b.getCacheFileName(d));u.debug(`Archive Path: ${q}`);try{yield(0,g.createTar)(C,v,d);if(u.isDebug()){yield(0,g.listTar)(q,d)}const A=10*1024*1024*1024;const R=b.getArchiveFileSizeInBytes(q);u.debug(`File Size: ${R}`);if(R>A&&!b.isGhes()){throw new Error(`Cache size of ~${Math.round(R/(1024*1024))} MB (${R} B) is over the 10GB limit, not saving cache.`)}u.debug("Reserving Cache");const B=yield h.reserveCache(i,r,{compressionMethod:d,enableCrossOsArchive:c,cacheSize:R});if((p=B===null||B===void 0?void 0:B.result)===null||p===void 0?void 0:p.cacheId){y=(l=B===null||B===void 0?void 0:B.result)===null||l===void 0?void 0:l.cacheId}else if((B===null||B===void 0?void 0:B.statusCode)===400){throw new Error((z=(M=B===null||B===void 0?void 0:B.error)===null||M===void 0?void 0:M.message)!==null&&z!==void 0?z:`Cache size of ~${Math.round(R/(1024*1024))} MB (${R} B) is over the data cap limit, not saving cache.`)}else{throw new ReserveCacheError(`Unable to reserve cache with key ${i}, another job may be creating this cache. More details: ${(O=B===null||B===void 0?void 0:B.error)===null||O===void 0?void 0:O.message}`)}u.debug(`Saving Cache (ID: ${y})`);yield h.saveCache(y,q,a)}catch(r){const i=r;if(i.name===ValidationError.name){throw r}else if(i.name===ReserveCacheError.name){u.info(`Failed to save: ${i.message}`)}else{u.warning(`Failed to save: ${i.message}`)}}finally{try{yield b.unlinkFile(q)}catch(r){u.debug(`Failed to delete archive: ${r}`)}}return y}))}i.saveCache=saveCache},98245:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.saveCache=i.reserveCache=i.downloadCache=i.getCacheEntry=i.getCacheVersion=void 0;const u=l(a(42186));const A=a(96255);const b=a(35526);const h=l(a(6113));const g=l(a(57147));const M=a(57310);const z=l(a(91518));const O=a(55500);const y=a(76215);const v=a(13981);const C="1.0";function getCacheApiUrl(r){const i=process.env["ACTIONS_CACHE_URL"]||"";if(!i){throw new Error("Cache Service Url not found, unable to restore cache.")}const a=`${i}_apis/artifactcache/${r}`;u.debug(`Resource Url: ${a}`);return a}function createAcceptHeader(r,i){return`${r};api-version=${i}`}function getRequestOptions(){const r={headers:{Accept:createAcceptHeader("application/json","6.0-preview.1")}};return r}function createHttpClient(){const r=process.env["ACTIONS_RUNTIME_TOKEN"]||"";const i=new b.BearerCredentialHandler(r);return new A.HttpClient("actions/cache",[i],getRequestOptions())}function getCacheVersion(r,i,a=false){const c=r.slice();if(i){c.push(i)}if(process.platform==="win32"&&!a){c.push("windows-only")}c.push(C);return h.createHash("sha256").update(c.join("|")).digest("hex")}i.getCacheVersion=getCacheVersion;function getCacheEntry(r,i,a){return d(this,void 0,void 0,(function*(){const c=createHttpClient();const p=getCacheVersion(i,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const l=`cache?keys=${encodeURIComponent(r.join(","))}&version=${p}`;const A=yield(0,v.retryTypedResponse)("getCacheEntry",(()=>d(this,void 0,void 0,(function*(){return c.getJson(getCacheApiUrl(l))}))));if(A.statusCode===204){if(u.isDebug()){yield printCachesListForDiagnostics(r[0],c,p)}return null}if(!(0,v.isSuccessStatusCode)(A.statusCode)){throw new Error(`Cache service responded with ${A.statusCode}`)}const b=A.result;const h=b===null||b===void 0?void 0:b.archiveLocation;if(!h){throw new Error("Cache not found.")}u.setSecret(h);u.debug(`Cache Result:`);u.debug(JSON.stringify(b));return b}))}i.getCacheEntry=getCacheEntry;function printCachesListForDiagnostics(r,i,a){return d(this,void 0,void 0,(function*(){const c=`caches?key=${encodeURIComponent(r)}`;const p=yield(0,v.retryTypedResponse)("listCache",(()=>d(this,void 0,void 0,(function*(){return i.getJson(getCacheApiUrl(c))}))));if(p.statusCode===200){const i=p.result;const c=i===null||i===void 0?void 0:i.totalCount;if(c&&c>0){u.debug(`No matching cache found for cache key '${r}', version '${a} 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 r of(i===null||i===void 0?void 0:i.artifactCaches)||[]){u.debug(`Cache Key: ${r===null||r===void 0?void 0:r.cacheKey}, Cache Version: ${r===null||r===void 0?void 0:r.cacheVersion}, Cache Scope: ${r===null||r===void 0?void 0:r.scope}, Cache Created: ${r===null||r===void 0?void 0:r.creationTime}`)}}}}))}function downloadCache(r,i,a){return d(this,void 0,void 0,(function*(){const c=new M.URL(r);const p=(0,y.getDownloadOptions)(a);if(c.hostname.endsWith(".blob.core.windows.net")){if(p.useAzureSdk){yield(0,O.downloadCacheStorageSDK)(r,i,p)}else if(p.concurrentBlobDownloads){yield(0,O.downloadCacheHttpClientConcurrent)(r,i,p)}else{yield(0,O.downloadCacheHttpClient)(r,i)}}else{yield(0,O.downloadCacheHttpClient)(r,i)}}))}i.downloadCache=downloadCache;function reserveCache(r,i,a){return d(this,void 0,void 0,(function*(){const c=createHttpClient();const p=getCacheVersion(i,a===null||a===void 0?void 0:a.compressionMethod,a===null||a===void 0?void 0:a.enableCrossOsArchive);const l={key:r,version:p,cacheSize:a===null||a===void 0?void 0:a.cacheSize};const u=yield(0,v.retryTypedResponse)("reserveCache",(()=>d(this,void 0,void 0,(function*(){return c.postJson(getCacheApiUrl("caches"),l)}))));return u}))}i.reserveCache=reserveCache;function getContentRange(r,i){return`bytes ${r}-${i}/*`}function uploadChunk(r,i,a,c,p){return d(this,void 0,void 0,(function*(){u.debug(`Uploading chunk of size ${p-c+1} bytes at offset ${c} with content range: ${getContentRange(c,p)}`);const l={"Content-Type":"application/octet-stream","Content-Range":getContentRange(c,p)};const A=yield(0,v.retryHttpClientResponse)(`uploadChunk (start: ${c}, end: ${p})`,(()=>d(this,void 0,void 0,(function*(){return r.sendStream("PATCH",i,a(),l)}))));if(!(0,v.isSuccessStatusCode)(A.message.statusCode)){throw new Error(`Cache service responded with ${A.message.statusCode} during upload chunk.`)}}))}function uploadFile(r,i,a,c){return d(this,void 0,void 0,(function*(){const p=z.getArchiveFileSizeInBytes(a);const l=getCacheApiUrl(`caches/${i.toString()}`);const A=g.openSync(a,"r");const b=(0,y.getUploadOptions)(c);const h=z.assertDefined("uploadConcurrency",b.uploadConcurrency);const M=z.assertDefined("uploadChunkSize",b.uploadChunkSize);const O=[...new Array(h).keys()];u.debug("Awaiting all uploads");let v=0;try{yield Promise.all(O.map((()=>d(this,void 0,void 0,(function*(){while(vg.createReadStream(a,{fd:A,start:c,end:d,autoClose:false}).on("error",(r=>{throw new Error(`Cache upload failed because file read failed with ${r.message}`)}))),c,d)}})))))}finally{g.closeSync(A)}return}))}function commitCache(r,i,a){return d(this,void 0,void 0,(function*(){const c={size:a};return yield(0,v.retryTypedResponse)("commitCache",(()=>d(this,void 0,void 0,(function*(){return r.postJson(getCacheApiUrl(`caches/${i.toString()}`),c)}))))}))}function saveCache(r,i,a){return d(this,void 0,void 0,(function*(){const c=createHttpClient();u.debug("Upload cache");yield uploadFile(c,r,i,a);u.debug("Commiting cache");const p=z.getArchiveFileSizeInBytes(i);u.info(`Cache Size: ~${Math.round(p/(1024*1024))} MB (${p} B)`);const l=yield commitCache(c,r,p);if(!(0,v.isSuccessStatusCode)(l.statusCode)){throw new Error(`Cache service responded with ${l.statusCode} during commit cache.`)}u.info("Cache saved successfully")}))}i.saveCache=saveCache},91518:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var u=this&&this.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof __values==="function"?__values(r):r[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(i){a[i]=r[i]&&function(a){return new Promise((function(c,p){a=r[i](a),settle(c,p,a.done,a.value)}))}}function settle(r,i,a,c){Promise.resolve(c).then((function(i){r({value:i,done:a})}),i)}};Object.defineProperty(i,"__esModule",{value:true});i.isGhes=i.assertDefined=i.getGnuTarPathOnWindows=i.getCacheFileName=i.getCompressionMethod=i.unlinkFile=i.resolvePaths=i.getArchiveFileSizeInBytes=i.createTempDirectory=void 0;const A=l(a(42186));const b=l(a(71514));const h=l(a(28090));const g=l(a(47351));const M=l(a(57147));const z=l(a(71017));const O=l(a(3771));const y=l(a(73837));const v=a(94138);const C=a(88840);function createTempDirectory(){return d(this,void 0,void 0,(function*(){const r=process.platform==="win32";let i=process.env["RUNNER_TEMP"]||"";if(!i){let a;if(r){a=process.env["USERPROFILE"]||"C:\\"}else{if(process.platform==="darwin"){a="/Users"}else{a="/home"}}i=z.join(a,"actions","temp")}const a=z.join(i,(0,v.v4)());yield g.mkdirP(a);return a}))}i.createTempDirectory=createTempDirectory;function getArchiveFileSizeInBytes(r){return M.statSync(r).size}i.getArchiveFileSizeInBytes=getArchiveFileSizeInBytes;function resolvePaths(r){var i,a,c,p;var l;return d(this,void 0,void 0,(function*(){const d=[];const b=(l=process.env["GITHUB_WORKSPACE"])!==null&&l!==void 0?l:process.cwd();const g=yield h.create(r.join("\n"),{implicitDescendants:false});try{for(var M=true,O=u(g.globGenerator()),y;y=yield O.next(),i=y.done,!i;M=true){p=y.value;M=false;const r=p;const i=z.relative(b,r).replace(new RegExp(`\\${z.sep}`,"g"),"/");A.debug(`Matched: ${i}`);if(i===""){d.push(".")}else{d.push(`${i}`)}}}catch(r){a={error:r}}finally{try{if(!M&&!i&&(c=O.return))yield c.call(O)}finally{if(a)throw a.error}}return d}))}i.resolvePaths=resolvePaths;function unlinkFile(r){return d(this,void 0,void 0,(function*(){return y.promisify(M.unlink)(r)}))}i.unlinkFile=unlinkFile;function getVersion(r,i=[]){return d(this,void 0,void 0,(function*(){let a="";i.push("--version");A.debug(`Checking ${r} ${i.join(" ")}`);try{yield b.exec(`${r}`,i,{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>a+=r.toString(),stderr:r=>a+=r.toString()}})}catch(r){A.debug(r.message)}a=a.trim();A.debug(a);return a}))}function getCompressionMethod(){return d(this,void 0,void 0,(function*(){const r=yield getVersion("zstd",["--quiet"]);const i=O.clean(r);A.debug(`zstd version: ${i}`);if(r===""){return C.CompressionMethod.Gzip}else{return C.CompressionMethod.ZstdWithoutLong}}))}i.getCompressionMethod=getCompressionMethod;function getCacheFileName(r){return r===C.CompressionMethod.Gzip?C.CacheFilename.Gzip:C.CacheFilename.Zstd}i.getCacheFileName=getCacheFileName;function getGnuTarPathOnWindows(){return d(this,void 0,void 0,(function*(){if(M.existsSync(C.GnuTarPathOnWindows)){return C.GnuTarPathOnWindows}const r=yield getVersion("tar");return r.toLowerCase().includes("gnu tar")?g.which("tar"):""}))}i.getGnuTarPathOnWindows=getGnuTarPathOnWindows;function assertDefined(r,i){if(i===undefined){throw Error(`Expected ${r} but value was undefiend`)}return i}i.assertDefined=assertDefined;function isGhes(){const r=new URL(process.env["GITHUB_SERVER_URL"]||"https://github.com");const i=r.hostname.trimEnd().toUpperCase();const a=i==="GITHUB.COM";const c=i.endsWith(".GHE.COM")||i.endsWith(".GHE.LOCALHOST");return!a&&!c}i.isGhes=isGhes},88840:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.ManifestFilename=i.TarFilename=i.SystemTarPathOnWindows=i.GnuTarPathOnWindows=i.SocketTimeout=i.DefaultRetryDelay=i.DefaultRetryAttempts=i.ArchiveToolType=i.CompressionMethod=i.CacheFilename=void 0;var a;(function(r){r["Gzip"]="cache.tgz";r["Zstd"]="cache.tzst"})(a||(i.CacheFilename=a={}));var c;(function(r){r["Gzip"]="gzip";r["ZstdWithoutLong"]="zstd-without-long";r["Zstd"]="zstd"})(c||(i.CompressionMethod=c={}));var p;(function(r){r["GNU"]="gnu";r["BSD"]="bsd"})(p||(i.ArchiveToolType=p={}));i.DefaultRetryAttempts=2;i.DefaultRetryDelay=5e3;i.SocketTimeout=5e3;i.GnuTarPathOnWindows=`${process.env["PROGRAMFILES"]}\\Git\\usr\\bin\\tar.exe`;i.SystemTarPathOnWindows=`${process.env["SYSTEMDRIVE"]}\\Windows\\System32\\tar.exe`;i.TarFilename="cache.tar";i.ManifestFilename="manifest.txt"},55500:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.downloadCacheStorageSDK=i.downloadCacheHttpClientConcurrent=i.downloadCacheHttpClient=i.DownloadProgress=void 0;const u=l(a(42186));const A=a(96255);const b=a(56903);const h=l(a(14300));const g=l(a(57147));const M=l(a(12781));const z=l(a(73837));const O=l(a(91518));const y=a(88840);const v=a(13981);const C=a(52557);function pipeResponseToStream(r,i){return d(this,void 0,void 0,(function*(){const a=z.promisify(M.pipeline);yield a(r.message,i)}))}class DownloadProgress{constructor(r){this.contentLength=r;this.segmentIndex=0;this.segmentSize=0;this.segmentOffset=0;this.receivedBytes=0;this.displayedComplete=false;this.startTime=Date.now()}nextSegment(r){this.segmentOffset=this.segmentOffset+this.segmentSize;this.segmentIndex=this.segmentIndex+1;this.segmentSize=r;this.receivedBytes=0;u.debug(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(r){this.receivedBytes=r}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete){return}const r=this.segmentOffset+this.receivedBytes;const i=(100*(r/this.contentLength)).toFixed(1);const a=Date.now()-this.startTime;const c=(r/(1024*1024)/(a/1e3)).toFixed(1);u.info(`Received ${r} of ${this.contentLength} (${i}%), ${c} MBs/sec`);if(this.isDone()){this.displayedComplete=true}}onProgress(){return r=>{this.setReceivedBytes(r.loadedBytes)}}startDisplayTimer(r=1e3){const displayCallback=()=>{this.display();if(!this.isDone()){this.timeoutHandle=setTimeout(displayCallback,r)}};this.timeoutHandle=setTimeout(displayCallback,r)}stopDisplayTimer(){if(this.timeoutHandle){clearTimeout(this.timeoutHandle);this.timeoutHandle=undefined}this.display()}}i.DownloadProgress=DownloadProgress;function downloadCacheHttpClient(r,i){return d(this,void 0,void 0,(function*(){const a=g.createWriteStream(i);const c=new A.HttpClient("actions/cache");const p=yield(0,v.retryHttpClientResponse)("downloadCache",(()=>d(this,void 0,void 0,(function*(){return c.get(r)}))));p.message.socket.setTimeout(y.SocketTimeout,(()=>{p.message.destroy();u.debug(`Aborting download, socket timed out after ${y.SocketTimeout} ms`)}));yield pipeResponseToStream(p,a);const l=p.message.headers["content-length"];if(l){const r=parseInt(l);const a=O.getArchiveFileSizeInBytes(i);if(a!==r){throw new Error(`Incomplete download. Expected file size: ${r}, actual file size: ${a}`)}}else{u.debug("Unable to validate download, no Content-Length header")}}))}i.downloadCacheHttpClient=downloadCacheHttpClient;function downloadCacheHttpClientConcurrent(r,i,a){var c;return d(this,void 0,void 0,(function*(){const p=yield g.promises.open(i,"w");const l=new A.HttpClient("actions/cache",undefined,{socketTimeout:a.timeoutInMs,keepAlive:true});try{const i=yield(0,v.retryHttpClientResponse)("downloadCacheMetadata",(()=>d(this,void 0,void 0,(function*(){return yield l.request("HEAD",r,null,{})}))));const u=i.message.headers["content-length"];if(u===undefined||u===null){throw new Error("Content-Length not found on blob response")}const A=parseInt(u);if(Number.isNaN(A)){throw new Error(`Could not interpret Content-Length: ${A}`)}const b=[];const h=4*1024*1024;for(let i=0;id(this,void 0,void 0,(function*(){return yield downloadSegmentRetry(l,r,i,a)}))})}b.reverse();let g=0;let M=0;const z=new DownloadProgress(A);z.startDisplayTimer();const O=z.onProgress();const y=[];let C;const waitAndWrite=()=>d(this,void 0,void 0,(function*(){const r=yield Promise.race(Object.values(y));yield p.write(r.buffer,0,r.count,r.offset);g--;delete y[r.offset];M+=r.count;O({loadedBytes:M})}));while(C=b.pop()){y[C.offset]=C.promiseGetter();g++;if(g>=((c=a.downloadConcurrency)!==null&&c!==void 0?c:10)){yield waitAndWrite()}}while(g>0){yield waitAndWrite()}}finally{l.dispose();yield p.close()}}))}i.downloadCacheHttpClientConcurrent=downloadCacheHttpClientConcurrent;function downloadSegmentRetry(r,i,a,c){return d(this,void 0,void 0,(function*(){const p=5;let l=0;while(true){try{const p=3e4;const l=yield promiseWithTimeout(p,downloadSegment(r,i,a,c));if(typeof l==="string"){throw new Error("downloadSegmentRetry failed due to timeout")}return l}catch(r){if(l>=p){throw r}l++}}}))}function downloadSegment(r,i,a,c){return d(this,void 0,void 0,(function*(){const p=yield(0,v.retryHttpClientResponse)("downloadCachePart",(()=>d(this,void 0,void 0,(function*(){return yield r.get(i,{Range:`bytes=${a}-${a+c-1}`})}))));if(!p.readBodyBuffer){throw new Error("Expected HttpClientResponse to implement readBodyBuffer")}return{offset:a,count:c,buffer:yield p.readBodyBuffer()}}))}function downloadCacheStorageSDK(r,i,a){var c;return d(this,void 0,void 0,(function*(){const p=new b.BlockBlobClient(r,undefined,{retryOptions:{tryTimeoutInMs:a.timeoutInMs}});const l=yield p.getProperties();const d=(c=l.contentLength)!==null&&c!==void 0?c:-1;if(d<0){u.debug("Unable to determine content length, downloading file with http-client...");yield downloadCacheHttpClient(r,i)}else{const r=Math.min(134217728,h.constants.MAX_LENGTH);const c=new DownloadProgress(d);const l=g.openSync(i,"w");try{c.startDisplayTimer();const i=new C.AbortController;const u=i.signal;while(!c.isDone()){const A=c.segmentOffset+c.segmentSize;const b=Math.min(r,d-A);c.nextSegment(b);const h=yield promiseWithTimeout(a.segmentTimeoutInMs||36e5,p.downloadToBuffer(A,b,{abortSignal:u,concurrency:a.downloadConcurrency,onProgress:c.onProgress()}));if(h==="timeout"){i.abort();throw new Error("Aborting cache download as the download time exceeded the timeout.")}else if(Buffer.isBuffer(h)){g.writeFileSync(l,h)}}}finally{c.stopDisplayTimer();g.closeSync(l)}}}))}i.downloadCacheStorageSDK=downloadCacheStorageSDK;const promiseWithTimeout=(r,i)=>d(void 0,void 0,void 0,(function*(){let a;const c=new Promise((i=>{a=setTimeout((()=>i("timeout")),r)}));return Promise.race([i,c]).then((r=>{clearTimeout(a);return r}))}))},13981:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.retryHttpClientResponse=i.retryTypedResponse=i.retry=i.isRetryableStatusCode=i.isServerErrorStatusCode=i.isSuccessStatusCode=void 0;const u=l(a(42186));const A=a(96255);const b=a(88840);function isSuccessStatusCode(r){if(!r){return false}return r>=200&&r<300}i.isSuccessStatusCode=isSuccessStatusCode;function isServerErrorStatusCode(r){if(!r){return true}return r>=500}i.isServerErrorStatusCode=isServerErrorStatusCode;function isRetryableStatusCode(r){if(!r){return false}const i=[A.HttpCodes.BadGateway,A.HttpCodes.ServiceUnavailable,A.HttpCodes.GatewayTimeout];return i.includes(r)}i.isRetryableStatusCode=isRetryableStatusCode;function sleep(r){return d(this,void 0,void 0,(function*(){return new Promise((i=>setTimeout(i,r)))}))}function retry(r,i,a,c=b.DefaultRetryAttempts,p=b.DefaultRetryDelay,l=undefined){return d(this,void 0,void 0,(function*(){let d="";let A=1;while(A<=c){let b=undefined;let h=undefined;let g=false;try{b=yield i()}catch(r){if(l){b=l(r)}g=true;d=r.message}if(b){h=a(b);if(!isServerErrorStatusCode(h)){return b}}if(h){g=isRetryableStatusCode(h);d=`Cache service responded with ${h}`}u.debug(`${r} - Attempt ${A} of ${c} failed with error: ${d}`);if(!g){u.debug(`${r} - Error is not retryable`);break}yield sleep(p);A++}throw Error(`${r} failed: ${d}`)}))}i.retry=retry;function retryTypedResponse(r,i,a=b.DefaultRetryAttempts,c=b.DefaultRetryDelay){return d(this,void 0,void 0,(function*(){return yield retry(r,i,(r=>r.statusCode),a,c,(r=>{if(r instanceof A.HttpClientError){return{statusCode:r.statusCode,result:null,headers:{},error:r}}else{return undefined}}))}))}i.retryTypedResponse=retryTypedResponse;function retryHttpClientResponse(r,i,a=b.DefaultRetryAttempts,c=b.DefaultRetryDelay){return d(this,void 0,void 0,(function*(){return yield retry(r,i,(r=>r.message.statusCode),a,c)}))}i.retryHttpClientResponse=retryHttpClientResponse},56490:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.createTar=i.extractTar=i.listTar=void 0;const u=a(71514);const A=l(a(47351));const b=a(57147);const h=l(a(71017));const g=l(a(91518));const M=a(88840);const z=process.platform==="win32";function getTarPath(){return d(this,void 0,void 0,(function*(){switch(process.platform){case"win32":{const r=yield g.getGnuTarPathOnWindows();const i=M.SystemTarPathOnWindows;if(r){return{path:r,type:M.ArchiveToolType.GNU}}else if((0,b.existsSync)(i)){return{path:i,type:M.ArchiveToolType.BSD}}break}case"darwin":{const r=yield A.which("gtar",false);if(r){return{path:r,type:M.ArchiveToolType.GNU}}else{return{path:yield A.which("tar",true),type:M.ArchiveToolType.BSD}}}default:break}return{path:yield A.which("tar",true),type:M.ArchiveToolType.GNU}}))}function getTarArgs(r,i,a,c=""){return d(this,void 0,void 0,(function*(){const p=[`"${r.path}"`];const l=g.getCacheFileName(i);const d="cache.tar";const u=getWorkingDirectory();const A=r.type===M.ArchiveToolType.BSD&&i!==M.CompressionMethod.Gzip&&z;switch(a){case"create":p.push("--posix","-cf",A?d:l.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"--exclude",A?d:l.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P","-C",u.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"--files-from",M.ManifestFilename);break;case"extract":p.push("-xf",A?d:c.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P","-C",u.replace(new RegExp(`\\${h.sep}`,"g"),"/"));break;case"list":p.push("-tf",A?d:c.replace(new RegExp(`\\${h.sep}`,"g"),"/"),"-P");break}if(r.type===M.ArchiveToolType.GNU){switch(process.platform){case"win32":p.push("--force-local");break;case"darwin":p.push("--delay-directory-restore");break}}return p}))}function getCommands(r,i,a=""){return d(this,void 0,void 0,(function*(){let c;const p=yield getTarPath();const l=yield getTarArgs(p,r,i,a);const d=i!=="create"?yield getDecompressionProgram(p,r,a):yield getCompressionProgram(p,r);const u=p.type===M.ArchiveToolType.BSD&&r!==M.CompressionMethod.Gzip&&z;if(u&&i!=="create"){c=[[...d].join(" "),[...l].join(" ")]}else{c=[[...l].join(" "),[...d].join(" ")]}if(u){return c}return[c.join(" ")]}))}function getWorkingDirectory(){var r;return(r=process.env["GITHUB_WORKSPACE"])!==null&&r!==void 0?r:process.cwd()}function getDecompressionProgram(r,i,a){return d(this,void 0,void 0,(function*(){const c=r.type===M.ArchiveToolType.BSD&&i!==M.CompressionMethod.Gzip&&z;switch(i){case M.CompressionMethod.Zstd:return c?["zstd -d --long=30 --force -o",M.TarFilename,a.replace(new RegExp(`\\${h.sep}`,"g"),"/")]:["--use-compress-program",z?'"zstd -d --long=30"':"unzstd --long=30"];case M.CompressionMethod.ZstdWithoutLong:return c?["zstd -d --force -o",M.TarFilename,a.replace(new RegExp(`\\${h.sep}`,"g"),"/")]:["--use-compress-program",z?'"zstd -d"':"unzstd"];default:return["-z"]}}))}function getCompressionProgram(r,i){return d(this,void 0,void 0,(function*(){const a=g.getCacheFileName(i);const c=r.type===M.ArchiveToolType.BSD&&i!==M.CompressionMethod.Gzip&&z;switch(i){case M.CompressionMethod.Zstd:return c?["zstd -T0 --long=30 --force -o",a.replace(new RegExp(`\\${h.sep}`,"g"),"/"),M.TarFilename]:["--use-compress-program",z?'"zstd -T0 --long=30"':"zstdmt --long=30"];case M.CompressionMethod.ZstdWithoutLong:return c?["zstd -T0 --force -o",a.replace(new RegExp(`\\${h.sep}`,"g"),"/"),M.TarFilename]:["--use-compress-program",z?'"zstd -T0"':"zstdmt"];default:return["-z"]}}))}function execCommands(r,i){return d(this,void 0,void 0,(function*(){for(const a of r){try{yield(0,u.exec)(a,undefined,{cwd:i,env:Object.assign(Object.assign({},process.env),{MSYS:"winsymlinks:nativestrict"})})}catch(r){throw new Error(`${a.split(" ")[0]} failed with error: ${r===null||r===void 0?void 0:r.message}`)}}}))}function listTar(r,i){return d(this,void 0,void 0,(function*(){const a=yield getCommands(i,"list",r);yield execCommands(a)}))}i.listTar=listTar;function extractTar(r,i){return d(this,void 0,void 0,(function*(){const a=getWorkingDirectory();yield A.mkdirP(a);const c=yield getCommands(i,"extract",r);yield execCommands(c)}))}i.extractTar=extractTar;function createTar(r,i,a){return d(this,void 0,void 0,(function*(){(0,b.writeFileSync)(h.join(r,M.ManifestFilename),i.join("\n"));const c=yield getCommands(a,"create");yield execCommands(c,r)}))}i.createTar=createTar},76215:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getDownloadOptions=i.getUploadOptions=void 0;const d=l(a(42186));function getUploadOptions(r){const i={uploadConcurrency:4,uploadChunkSize:32*1024*1024};if(r){if(typeof r.uploadConcurrency==="number"){i.uploadConcurrency=r.uploadConcurrency}if(typeof r.uploadChunkSize==="number"){i.uploadChunkSize=r.uploadChunkSize}}d.debug(`Upload concurrency: ${i.uploadConcurrency}`);d.debug(`Upload chunk size: ${i.uploadChunkSize}`);return i}i.getUploadOptions=getUploadOptions;function getDownloadOptions(r){const i={useAzureSdk:false,concurrentBlobDownloads:true,downloadConcurrency:8,timeoutInMs:3e4,segmentTimeoutInMs:6e5,lookupOnly:false};if(r){if(typeof r.useAzureSdk==="boolean"){i.useAzureSdk=r.useAzureSdk}if(typeof r.concurrentBlobDownloads==="boolean"){i.concurrentBlobDownloads=r.concurrentBlobDownloads}if(typeof r.downloadConcurrency==="number"){i.downloadConcurrency=r.downloadConcurrency}if(typeof r.timeoutInMs==="number"){i.timeoutInMs=r.timeoutInMs}if(typeof r.segmentTimeoutInMs==="number"){i.segmentTimeoutInMs=r.segmentTimeoutInMs}if(typeof r.lookupOnly==="boolean"){i.lookupOnly=r.lookupOnly}}const a=process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"];if(a&&!isNaN(Number(a))&&isFinite(Number(a))){i.segmentTimeoutInMs=Number(a)*60*1e3}d.debug(`Use Azure SDK: ${i.useAzureSdk}`);d.debug(`Download concurrency: ${i.downloadConcurrency}`);d.debug(`Request timeout (ms): ${i.timeoutInMs}`);d.debug(`Cache segment download timeout mins env var: ${process.env["SEGMENT_DOWNLOAD_TIMEOUT_MINS"]}`);d.debug(`Segment download timeout (ms): ${i.segmentTimeoutInMs}`);d.debug(`Lookup only: ${i.lookupOnly}`);return i}i.getDownloadOptions=getDownloadOptions},56903:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(24607);var p=a(4351);var l=a(94175);var d=a(3233);var u=a(52557);var A=a(22037);var b=a(6113);var h=a(12781);a(74559);var g=a(27094);var M=a(82361);var z=a(57147);var O=a(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(a){if(a!=="default"){var c=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,c.get?c:{enumerable:true,get:function(){return r[a]}})}}))}i["default"]=r;return Object.freeze(i)}var y=_interopNamespace(c);var v=_interopNamespace(A);var C=_interopNamespace(z);var q=_interopNamespace(O);const R={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 B={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 w={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 S={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 N={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 I={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 x={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const T={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const _={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 W={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 L={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 k={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 P={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 D={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 Q={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 U={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 G={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 j={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 H={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 X={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 V={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 Y={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 $={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 J={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 K={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"]}},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 Z={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 ee={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 te={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const re={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 oe={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 ie={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 se={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 ae={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 ce={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 pe={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 de={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ue={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:"any"}}}}};const Ae={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 me={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const be={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 fe={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 he={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 Me={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={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 Oe={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={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 Ee={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={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 Ce={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={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 Re={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={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 we={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={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 Ne={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={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 xe={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={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 _e={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const We={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},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 Le={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={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 Pe={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={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 Qe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={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 Ue={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={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 je={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={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 Xe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={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 Ye={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $e={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 Je={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={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 Ze={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={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 tt={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={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 nt={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={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 it={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={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 ct={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={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 dt={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ut={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 At={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mt={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 bt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={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"]}}}}};const ht={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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 zt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ot={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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 yt={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={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 vt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={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 qt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rt={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 Bt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wt={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 St={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={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 It={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={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 Tt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={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 Wt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lt={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 kt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={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 Dt={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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 Ft={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={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 Gt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={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 Ht={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={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 Vt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={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 $t={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={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 Kt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={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 er={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={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 rr={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={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 or={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={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"]}}}}};const sr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"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 cr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={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 lr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={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 ur={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={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 mr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={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 fr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={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 gr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={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 zr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={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 yr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={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 vr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={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 qr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={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 Br={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={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 Sr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={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 Ir={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={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 Tr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={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 Wr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={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 kr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={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 Dr={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={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 Fr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={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 Gr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={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 Hr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xr={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 Vr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yr={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 $r={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Jr=Object.freeze({__proto__:null,BlobServiceProperties:R,Logging:B,RetentionPolicy:w,Metrics:S,CorsRule:N,StaticWebsite:I,StorageError:x,BlobServiceStatistics:T,GeoReplication:_,ListContainersSegmentResponse:W,ContainerItem:L,ContainerProperties:k,KeyInfo:P,UserDelegationKey:D,FilterBlobSegment:Q,FilterBlobItem:U,BlobTags:G,BlobTag:j,SignedIdentifier:H,AccessPolicy:X,ListBlobsFlatSegmentResponse:V,BlobFlatListSegment:Y,BlobItemInternal:$,BlobName:J,BlobPropertiesInternal:K,ListBlobsHierarchySegmentResponse:Z,BlobHierarchyListSegment:ee,BlobPrefix:te,BlockLookupList:re,BlockList:oe,Block:ie,PageList:se,PageRange:ae,ClearRange:ce,QueryRequest:pe,QuerySerialization:de,QueryFormat:ue,DelimitedTextConfiguration:Ae,JsonTextConfiguration:me,ArrowConfiguration:be,ArrowField:fe,ServiceSetPropertiesHeaders:he,ServiceSetPropertiesExceptionHeaders:Me,ServiceGetPropertiesHeaders:ze,ServiceGetPropertiesExceptionHeaders:Oe,ServiceGetStatisticsHeaders:ye,ServiceGetStatisticsExceptionHeaders:Ee,ServiceListContainersSegmentHeaders:ve,ServiceListContainersSegmentExceptionHeaders:Ce,ServiceGetUserDelegationKeyHeaders:qe,ServiceGetUserDelegationKeyExceptionHeaders:Re,ServiceGetAccountInfoHeaders:Be,ServiceGetAccountInfoExceptionHeaders:we,ServiceSubmitBatchHeaders:Se,ServiceSubmitBatchExceptionHeaders:Ne,ServiceFilterBlobsHeaders:Ie,ServiceFilterBlobsExceptionHeaders:xe,ContainerCreateHeaders:Te,ContainerCreateExceptionHeaders:_e,ContainerGetPropertiesHeaders:We,ContainerGetPropertiesExceptionHeaders:Le,ContainerDeleteHeaders:ke,ContainerDeleteExceptionHeaders:Pe,ContainerSetMetadataHeaders:De,ContainerSetMetadataExceptionHeaders:Qe,ContainerGetAccessPolicyHeaders:Fe,ContainerGetAccessPolicyExceptionHeaders:Ue,ContainerSetAccessPolicyHeaders:Ge,ContainerSetAccessPolicyExceptionHeaders:je,ContainerRestoreHeaders:He,ContainerRestoreExceptionHeaders:Xe,ContainerRenameHeaders:Ve,ContainerRenameExceptionHeaders:Ye,ContainerSubmitBatchHeaders:$e,ContainerSubmitBatchExceptionHeaders:Je,ContainerFilterBlobsHeaders:Ke,ContainerFilterBlobsExceptionHeaders:Ze,ContainerAcquireLeaseHeaders:et,ContainerAcquireLeaseExceptionHeaders:tt,ContainerReleaseLeaseHeaders:rt,ContainerReleaseLeaseExceptionHeaders:nt,ContainerRenewLeaseHeaders:ot,ContainerRenewLeaseExceptionHeaders:it,ContainerBreakLeaseHeaders:st,ContainerBreakLeaseExceptionHeaders:ct,ContainerChangeLeaseHeaders:pt,ContainerChangeLeaseExceptionHeaders:dt,ContainerListBlobFlatSegmentHeaders:ut,ContainerListBlobFlatSegmentExceptionHeaders:At,ContainerListBlobHierarchySegmentHeaders:mt,ContainerListBlobHierarchySegmentExceptionHeaders:bt,ContainerGetAccountInfoHeaders:ft,ContainerGetAccountInfoExceptionHeaders:ht,BlobDownloadHeaders:Mt,BlobDownloadExceptionHeaders:zt,BlobGetPropertiesHeaders:Ot,BlobGetPropertiesExceptionHeaders:yt,BlobDeleteHeaders:Et,BlobDeleteExceptionHeaders:vt,BlobUndeleteHeaders:Ct,BlobUndeleteExceptionHeaders:qt,BlobSetExpiryHeaders:Rt,BlobSetExpiryExceptionHeaders:Bt,BlobSetHttpHeadersHeaders:wt,BlobSetHttpHeadersExceptionHeaders:St,BlobSetImmutabilityPolicyHeaders:Nt,BlobSetImmutabilityPolicyExceptionHeaders:It,BlobDeleteImmutabilityPolicyHeaders:xt,BlobDeleteImmutabilityPolicyExceptionHeaders:Tt,BlobSetLegalHoldHeaders:_t,BlobSetLegalHoldExceptionHeaders:Wt,BlobSetMetadataHeaders:Lt,BlobSetMetadataExceptionHeaders:kt,BlobAcquireLeaseHeaders:Pt,BlobAcquireLeaseExceptionHeaders:Dt,BlobReleaseLeaseHeaders:Qt,BlobReleaseLeaseExceptionHeaders:Ft,BlobRenewLeaseHeaders:Ut,BlobRenewLeaseExceptionHeaders:Gt,BlobChangeLeaseHeaders:jt,BlobChangeLeaseExceptionHeaders:Ht,BlobBreakLeaseHeaders:Xt,BlobBreakLeaseExceptionHeaders:Vt,BlobCreateSnapshotHeaders:Yt,BlobCreateSnapshotExceptionHeaders:$t,BlobStartCopyFromURLHeaders:Jt,BlobStartCopyFromURLExceptionHeaders:Kt,BlobCopyFromURLHeaders:Zt,BlobCopyFromURLExceptionHeaders:er,BlobAbortCopyFromURLHeaders:tr,BlobAbortCopyFromURLExceptionHeaders:rr,BlobSetTierHeaders:nr,BlobSetTierExceptionHeaders:or,BlobGetAccountInfoHeaders:ir,BlobGetAccountInfoExceptionHeaders:sr,BlobQueryHeaders:ar,BlobQueryExceptionHeaders:cr,BlobGetTagsHeaders:pr,BlobGetTagsExceptionHeaders:lr,BlobSetTagsHeaders:dr,BlobSetTagsExceptionHeaders:ur,PageBlobCreateHeaders:Ar,PageBlobCreateExceptionHeaders:mr,PageBlobUploadPagesHeaders:br,PageBlobUploadPagesExceptionHeaders:fr,PageBlobClearPagesHeaders:hr,PageBlobClearPagesExceptionHeaders:gr,PageBlobUploadPagesFromURLHeaders:Mr,PageBlobUploadPagesFromURLExceptionHeaders:zr,PageBlobGetPageRangesHeaders:Or,PageBlobGetPageRangesExceptionHeaders:yr,PageBlobGetPageRangesDiffHeaders:Er,PageBlobGetPageRangesDiffExceptionHeaders:vr,PageBlobResizeHeaders:Cr,PageBlobResizeExceptionHeaders:qr,PageBlobUpdateSequenceNumberHeaders:Rr,PageBlobUpdateSequenceNumberExceptionHeaders:Br,PageBlobCopyIncrementalHeaders:wr,PageBlobCopyIncrementalExceptionHeaders:Sr,AppendBlobCreateHeaders:Nr,AppendBlobCreateExceptionHeaders:Ir,AppendBlobAppendBlockHeaders:xr,AppendBlobAppendBlockExceptionHeaders:Tr,AppendBlobAppendBlockFromUrlHeaders:_r,AppendBlobAppendBlockFromUrlExceptionHeaders:Wr,AppendBlobSealHeaders:Lr,AppendBlobSealExceptionHeaders:kr,BlockBlobUploadHeaders:Pr,BlockBlobUploadExceptionHeaders:Dr,BlockBlobPutBlobFromUrlHeaders:Qr,BlockBlobPutBlobFromUrlExceptionHeaders:Fr,BlockBlobStageBlockHeaders:Ur,BlockBlobStageBlockExceptionHeaders:Gr,BlockBlobStageBlockFromURLHeaders:jr,BlockBlobStageBlockFromURLExceptionHeaders:Hr,BlockBlobCommitBlockListHeaders:Xr,BlockBlobCommitBlockListExceptionHeaders:Vr,BlockBlobGetBlockListHeaders:Yr,BlockBlobGetBlockListExceptionHeaders:$r});const Kr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Zr={parameterPath:"blobServiceProperties",mapper:R};const en={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const tn={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const rn={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const nn={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sn={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const an={parameterPath:"version",mapper:{defaultValue:"2023-01-03",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const cn={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const pn={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ln={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dn={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const un={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const An={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const mn={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const bn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:c.QueryCollectionFormat.Csv};const hn={parameterPath:"keyInfo",mapper:P};const gn={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Mn={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const zn={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const On={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const En={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const vn={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Cn={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const qn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Rn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const Bn={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const wn={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Sn={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Nn={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const In={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Tn={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _n={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wn={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ln={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const kn={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pn={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Dn={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qn={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Fn={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Un={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Gn={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const jn={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Hn={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Xn={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vn={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Yn={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const $n={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Jn={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Kn={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Zn={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const eo={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:c.QueryCollectionFormat.Csv};const ro={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const no={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const oo={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const io={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const so={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const ao={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const co={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const po={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const lo={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const uo={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Ao={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const mo={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const bo={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const fo={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const ho={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const go={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Mo={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const zo={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const Oo={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const yo={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Eo={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const vo={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Co={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const qo={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ro={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Bo={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const wo={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const So={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const No={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Io={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xo={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 To={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const _o={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Wo={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Lo={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const ko={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Po={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Do={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Qo={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Fo={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Uo={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Go={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const jo={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Ho={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Xo={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 Vo={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Yo={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const $o={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Jo={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ko={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 Zo={parameterPath:["options","queryRequest"],mapper:pe};const ei={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ti={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ri={parameterPath:["options","tags"],mapper:G};const ni={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const oi={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const ii={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const si={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const ai={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ci={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const pi={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const li={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const di={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ui={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ai={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const mi={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const bi={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const fi={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const hi={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const gi={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Mi={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const zi={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Oi={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yi={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Ei={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const vi={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 Ci={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const qi={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ri={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bi={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const wi={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Si={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ii={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const xi={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Ti={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _i={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Wi={parameterPath:"blocks",mapper:re};const Li={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ki={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,i){const a={blobServiceProperties:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Di)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Qi)}getStatistics(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fi)}listContainersSegment(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ui)}getUserDelegationKey(r,i){const a={keyInfo:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Gi)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ji)}submitBatch(r,i,a,c){const p={contentLength:r,multipartContentType:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,Hi)}filterBlobs(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Xi)}}const Pi=new y.Serializer(Jr,true);const Di={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:he},default:{bodyMapper:x,headersMapper:Me}},requestBody:Zr,queryParameters:[rn,nn,sn],urlParameters:[tn],headerParameters:[Kr,en,an,cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const Qi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:R,headersMapper:ze},default:{bodyMapper:x,headersMapper:Oe}},queryParameters:[rn,nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Fi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:T,headersMapper:ye},default:{bodyMapper:x,headersMapper:Ee}},queryParameters:[rn,sn,ln],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Ui={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:W,headersMapper:ve},default:{bodyMapper:x,headersMapper:Ce}},queryParameters:[sn,dn,un,An,mn,bn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Gi={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:D,headersMapper:qe},default:{bodyMapper:x,headersMapper:Re}},requestBody:hn,queryParameters:[rn,sn,gn],urlParameters:[tn],headerParameters:[Kr,en,an,cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const ji={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Be},default:{bodyMapper:x,headersMapper:we}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:Pi};const Hi={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Se},default:{bodyMapper:x,headersMapper:Ne}},requestBody:zn,queryParameters:[sn,On],urlParameters:[tn],headerParameters:[Kr,en,an,cn,yn,En],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const Xi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Q,headersMapper:Ie},default:{bodyMapper:x,headersMapper:xe}},queryParameters:[sn,An,mn,vn,Cn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};class Container{constructor(r){this.client=r}create(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Yi)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,$i)}delete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ji)}setMetadata(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ki)}getAccessPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Zi)}setAccessPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,es)}restore(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ts)}rename(r,i){const a={sourceContainerName:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,rs)}submitBatch(r,i,a,c){const p={contentLength:r,multipartContentType:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,ns)}filterBlobs(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,os)}acquireLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ss)}releaseLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,cs)}renewLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ps)}breakLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ls)}changeLease(r,i,a){const c={leaseId:r,proposedLeaseId:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ds)}listBlobFlatSegment(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,us)}listBlobHierarchySegment(r,i){const a={delimiter:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,As)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ms)}}const Vi=new y.Serializer(Jr,true);const Yi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Te},default:{bodyMapper:x,headersMapper:_e}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Bn,wn,Sn],isXML:true,serializer:Vi};const $i={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:We},default:{bodyMapper:x,headersMapper:Le}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn],isXML:true,serializer:Vi};const Ji={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ke},default:{bodyMapper:x,headersMapper:Pe}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn],isXML:true,serializer:Vi};const Ki={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:De},default:{bodyMapper:x,headersMapper:Qe}},queryParameters:[sn,qn,Tn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In],isXML:true,serializer:Vi};const Zi={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:Fe},default:{bodyMapper:x,headersMapper:Ue}},queryParameters:[sn,qn,_n],urlParameters:[tn],headerParameters:[an,cn,pn,Nn],isXML:true,serializer:Vi};const es={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ge},default:{bodyMapper:x,headersMapper:je}},requestBody:Wn,queryParameters:[sn,qn,_n],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Bn,Nn,In,xn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Vi};const ts={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:He},default:{bodyMapper:x,headersMapper:Xe}},queryParameters:[sn,qn,Ln],urlParameters:[tn],headerParameters:[an,cn,pn,kn,Pn],isXML:true,serializer:Vi};const rs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ve},default:{bodyMapper:x,headersMapper:Ye}},queryParameters:[sn,qn,Dn],urlParameters:[tn],headerParameters:[an,cn,pn,Qn,Fn],isXML:true,serializer:Vi};const ns={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:$e},default:{bodyMapper:x,headersMapper:Je}},requestBody:zn,queryParameters:[sn,On,qn],urlParameters:[tn],headerParameters:[Kr,en,an,cn,yn,En],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Vi};const os={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Q,headersMapper:Ke},default:{bodyMapper:x,headersMapper:Ze}},queryParameters:[sn,An,mn,vn,Cn,qn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const ss={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:et},default:{bodyMapper:x,headersMapper:tt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Gn,jn,Hn],isXML:true,serializer:Vi};const cs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:rt},default:{bodyMapper:x,headersMapper:nt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Xn,Vn],isXML:true,serializer:Vi};const ps={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ot},default:{bodyMapper:x,headersMapper:it}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Yn],isXML:true,serializer:Vi};const ls={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:st},default:{bodyMapper:x,headersMapper:ct}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,$n,Jn],isXML:true,serializer:Vi};const ds={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:pt},default:{bodyMapper:x,headersMapper:dt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Kn,Zn],isXML:true,serializer:Vi};const us={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:V,headersMapper:ut},default:{bodyMapper:x,headersMapper:At}},queryParameters:[sn,dn,un,An,mn,qn,eo],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const As={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:mt},default:{bodyMapper:x,headersMapper:bt}},queryParameters:[sn,dn,un,An,mn,qn,eo,ro],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const ms={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ft},default:{bodyMapper:x,headersMapper:ht}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:Vi};class Blob$1{constructor(r){this.client=r}download(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fs)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,hs)}delete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,gs)}undelete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}setExpiry(r,i){const a={expiryOptions:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,zs)}setHttpHeaders(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}setImmutabilityPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ys)}deleteImmutabilityPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Es)}setLegalHold(r,i){const a={legalHold:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,vs)}setMetadata(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Cs)}acquireLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}releaseLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Rs)}renewLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Bs)}changeLease(r,i,a){const c={leaseId:r,proposedLeaseId:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ws)}breakLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ss)}createSnapshot(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ns)}startCopyFromURL(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Is)}copyFromURL(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,xs)}abortCopyFromURL(r,i){const a={copyId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ts)}setTier(r,i){const a={tier:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,_s)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}query(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ls)}getTags(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ks)}setTags(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}}const bs=new y.Serializer(Jr,true);const fs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Mt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Mt},default:{bodyMapper:x,headersMapper:zt}},queryParameters:[sn,no,oo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,so,ao,co,po,lo,uo,Ao,mo],isXML:true,serializer:bs};const hs={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Ot},default:{bodyMapper:x,headersMapper:yt}},queryParameters:[sn,no,oo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,co,po,lo,uo,Ao,mo],isXML:true,serializer:bs};const gs={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Et},default:{bodyMapper:x,headersMapper:vt}},queryParameters:[sn,no,oo,fo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,bo],isXML:true,serializer:bs};const Ms={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ct},default:{bodyMapper:x,headersMapper:qt}},queryParameters:[sn,Ln],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:bs};const zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rt},default:{bodyMapper:x,headersMapper:Bt}},queryParameters:[sn,ho],urlParameters:[tn],headerParameters:[an,cn,pn,go,Mo],isXML:true,serializer:bs};const Os={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wt},default:{bodyMapper:x,headersMapper:St}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co],isXML:true,serializer:bs};const ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Nt},default:{bodyMapper:x,headersMapper:It}},queryParameters:[sn,qo],urlParameters:[tn],headerParameters:[an,cn,pn,xn,Ro,Bo],isXML:true,serializer:bs};const Es={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:xt},default:{bodyMapper:x,headersMapper:Tt}},queryParameters:[sn,qo],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:bs};const vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:x,headersMapper:Wt}},queryParameters:[sn,wo],urlParameters:[tn],headerParameters:[an,cn,pn,So],isXML:true,serializer:bs};const Cs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lt},default:{bodyMapper:x,headersMapper:kt}},queryParameters:[sn,Tn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,No],isXML:true,serializer:bs};const qs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pt},default:{bodyMapper:x,headersMapper:Dt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Gn,jn,Hn,uo,Ao,mo],isXML:true,serializer:bs};const Rs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Qt},default:{bodyMapper:x,headersMapper:Ft}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Xn,Vn,uo,Ao,mo],isXML:true,serializer:bs};const Bs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ut},default:{bodyMapper:x,headersMapper:Gt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Yn,uo,Ao,mo],isXML:true,serializer:bs};const ws={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:jt},default:{bodyMapper:x,headersMapper:Ht}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Kn,Zn,uo,Ao,mo],isXML:true,serializer:bs};const Ss={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Xt},default:{bodyMapper:x,headersMapper:Vt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,$n,Jn,uo,Ao,mo],isXML:true,serializer:bs};const Ns={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Yt},default:{bodyMapper:x,headersMapper:$t}},queryParameters:[sn,Io],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,No],isXML:true,serializer:bs};const Is={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Jt},default:{bodyMapper:x,headersMapper:Kt}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,uo,Ao,mo,Ro,Bo,xo,To,_o,Wo,Lo,ko,Po,Do,Qo,Fo,Uo],isXML:true,serializer:bs};const xs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Zt},default:{bodyMapper:x,headersMapper:er}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,uo,Ao,mo,Ro,Bo,No,xo,_o,Wo,Lo,ko,Do,Qo,Uo,Go,jo,Ho,Xo],isXML:true,serializer:bs};const Ts={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:tr},default:{bodyMapper:x,headersMapper:rr}},queryParameters:[sn,Vo,$o],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,Yo],isXML:true,serializer:bs};const _s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nr},202:{headersMapper:nr},default:{bodyMapper:x,headersMapper:or}},queryParameters:[sn,no,oo,Jo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo,To,Ko],isXML:true,serializer:bs};const Ws={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:ir},default:{bodyMapper:x,headersMapper:sr}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:bs};const Ls={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ar},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ar},default:{bodyMapper:x,headersMapper:cr}},requestBody:Zo,queryParameters:[sn,no,ei],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Nn,In,xn,co,po,lo,uo,Ao,mo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:bs};const ks={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:G,headersMapper:pr},default:{bodyMapper:x,headersMapper:lr}},queryParameters:[sn,no,oo,ti],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo],isXML:true,serializer:bs};const Ps={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:dr},default:{bodyMapper:x,headersMapper:ur}},requestBody:ri,queryParameters:[sn,oo,ti],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Nn,mo,ni,oi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:bs};class PageBlob{constructor(r){this.client=r}create(r,i,a){const c={contentLength:r,blobContentLength:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,Fs)}uploadPages(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,Us)}clearPages(r,i){const a={contentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Gs)}uploadPagesFromURL(r,i,a,c,p){const l={sourceUrl:r,sourceRange:i,contentLength:a,range:c,options:y.operationOptionsToRequestOptionsBase(p||{})};return this.client.sendOperationRequest(l,js)}getPageRanges(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hs)}getPageRangesDiff(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Xs)}resize(r,i){const a={blobContentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Vs)}updateSequenceNumber(r,i){const a={sequenceNumberAction:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ys)}copyIncremental(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,$s)}}const Ds=new y.Serializer(Jr,true);const Qs=new y.Serializer(Jr,false);const Fs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ar},default:{bodyMapper:x,headersMapper:mr}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ii,si,ai],isXML:true,serializer:Ds};const Us={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:br},default:{bodyMapper:x,headersMapper:fr}},requestBody:pi,queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,In,xn,io,co,po,lo,uo,Ao,mo,No,ni,oi,ci,li,ui,Ai,mi,bi],mediaType:"binary",serializer:Qs};const Gs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hr},default:{bodyMapper:x,headersMapper:gr}},queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,io,co,po,lo,uo,Ao,mo,No,Ai,mi,bi,fi],isXML:true,serializer:Ds};const js={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:x,headersMapper:zr}},queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,_o,Wo,Lo,ko,jo,Ho,ui,Ai,mi,bi,hi,gi,Mi,zi],isXML:true,serializer:Ds};const Hs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Or},default:{bodyMapper:x,headersMapper:yr}},queryParameters:[sn,An,mn,no,Oi],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,uo,Ao,mo],isXML:true,serializer:Ds};const Xs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Er},default:{bodyMapper:x,headersMapper:vr}},queryParameters:[sn,An,mn,no,Oi,yi],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,uo,Ao,mo,Ei],isXML:true,serializer:Ds};const Vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cr},default:{bodyMapper:x,headersMapper:qr}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,si],isXML:true,serializer:Ds};const Ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rr},default:{bodyMapper:x,headersMapper:Br}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,ai,vi],isXML:true,serializer:Ds};const $s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wr},default:{bodyMapper:x,headersMapper:Sr}},queryParameters:[sn,Ci],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,uo,Ao,mo,Do],isXML:true,serializer:Ds};class AppendBlob{constructor(r){this.client=r}create(r,i){const a={contentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Zs)}appendBlock(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ea)}appendBlockFromUrl(r,i,a){const c={sourceUrl:r,contentLength:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ta)}seal(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ra)}}const Js=new y.Serializer(Jr,true);const Ks=new y.Serializer(Jr,false);const Zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:x,headersMapper:Ir}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,Qo,Uo,qi],isXML:true,serializer:Js};const ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xr},default:{bodyMapper:x,headersMapper:Tr}},requestBody:pi,queryParameters:[sn,Ri],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,ni,oi,ci,li,Bi,wi],mediaType:"binary",serializer:Ks};const ta={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:x,headersMapper:Wr}},queryParameters:[sn,Ri],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,_o,Wo,Lo,ko,jo,Ho,ni,hi,Mi,Bi,wi,Si],isXML:true,serializer:Js};const ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lr},default:{bodyMapper:x,headersMapper:kr}},queryParameters:[sn,Ni],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,wi],isXML:true,serializer:Js};class BlockBlob{constructor(r){this.client=r}upload(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ia)}putBlobFromUrl(r,i,a){const c={contentLength:r,copySource:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,sa)}stageBlock(r,i,a,c){const p={blockId:r,contentLength:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,aa)}stageBlockFromURL(r,i,a,c){const p={blockId:r,contentLength:i,sourceUrl:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,ca)}commitBlockList(r,i){const a={blocks:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,pa)}getBlockList(r,i){const a={listType:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,la)}}const na=new y.Serializer(Jr,true);const oa=new y.Serializer(Jr,false);const ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:x,headersMapper:Dr}},requestBody:pi,queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ni,oi,ci,li,Ii],mediaType:"binary",serializer:oa};const sa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Qr},default:{bodyMapper:x,headersMapper:Fr}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,No,xo,_o,Wo,Lo,ko,Po,Do,Qo,jo,Ho,Xo,ni,Ii,xi],isXML:true,serializer:na};const aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ur},default:{bodyMapper:x,headersMapper:Gr}},requestBody:pi,queryParameters:[sn,Ti,_i],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,co,po,lo,No,ni,oi,ci,li],mediaType:"binary",serializer:oa};const ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:x,headersMapper:Hr}},queryParameters:[sn,Ti,_i],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,co,po,lo,No,_o,Wo,Lo,ko,jo,Ho,hi,Mi,Si],isXML:true,serializer:na};const pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Xr},default:{bodyMapper:x,headersMapper:Vr}},requestBody:Wi,queryParameters:[sn,Li],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ni,oi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:na};const la={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:oe,headersMapper:Yr},default:{bodyMapper:x,headersMapper:$r}},queryParameters:[sn,no,Li,ki],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo],isXML:true,serializer:na};const da=d.createClientLogger("storage-blob");const ua="12.15.0";const Aa="2023-01-03";const ma=256*1024*1024;const ba=4e3*1024*1024;const fa=5e4;const ha=8*1024*1024;const ga=4*1024*1024;const Ma=5;const za=100*1e3;const Oa="https://storage.azure.com/.default";const ya={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ea={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const va={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"};const Ca="";const qa="*";const Ra=1*1024*1024;const Ba=256;const wa=4*Ra;const Sa="\r\n";const Na="HTTP/1.1";const Ia="AES256";const xa=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Ta=["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-if-tags","x-ms-source-if-tags"];const _a=["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 Wa="BlobUsesCustomerSpecifiedEncryption";const La="BlobDoesNotUseCustomerSpecifiedEncryption";const ka=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=c.URLBuilder.parse(r);let a=i.getPath();a=a||"/";a=escape(a);i.setPath(a);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const a=r.split(";");for(const r of a){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const a=r.split(";");for(const r of a){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=xa}let a=getValueInConnString(r,"BlobEndpoint");a=a.endsWith("/")?a.slice(0,-1):a;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let c="";let p="";let l=Buffer.from("accountKey","base64");let d="";p=getValueInConnString(r,"AccountName");l=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!a){c=getValueInConnString(r,"DefaultEndpointsProtocol");const i=c.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}a=`${c}://${p}.blob.${d}`}if(!p){throw new Error("Invalid AccountName in the provided Connection String")}else if(l.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:a,accountName:p,accountKey:l,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");const c=getAccountNameFromUrl(a);if(!a){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!i){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:a,accountName:c,accountSas:i}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,i){const a=c.URLBuilder.parse(r);let p=a.getPath();p=p?p.endsWith("/")?`${p}${i}`:`${p}/${i}`:i;a.setPath(p);const l=new URL(a.toString());return l.toString()}function setURLParameter(r,i,a){const p=c.URLBuilder.parse(r);p.setQueryParameter(i,a);return p.toString()}function getURLParameter(r,i){const a=c.URLBuilder.parse(r);return a.getQueryParameterValue(i)}function setURLHost(r,i){const a=c.URLBuilder.parse(r);a.setHost(i);return a.toString()}function getURLPath(r){const i=c.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=c.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=c.URLBuilder.parse(r);const a=i.getPath();if(!a){throw new RangeError("Invalid url without valid path.")}let p=i.getQuery()||"";p=p.trim();if(p!==""){p=p.startsWith("?")?p:`?${p}`}return`${a}${p}`}function getURLQueries(r){let i=c.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let a=i.split("&");a=a.filter((r=>{const i=r.indexOf("=");const a=r.lastIndexOf("=");return i>0&&i===a&&ap){r=r.slice(0,p)}const l=r+padStart(i.toString(),a-r.length,"0");return base64encode(l)}async function delay(r,i,a){return new Promise(((c,p)=>{let l;const abortHandler=()=>{if(l!==undefined){clearTimeout(l)}p(a)};const resolveHandler=()=>{if(i!==undefined){i.removeEventListener("abort",abortHandler)}c()};l=setTimeout(resolveHandler,r);if(i!==undefined){i.addEventListener("abort",abortHandler)}}))}function padStart(r,i,a=" "){if(String.prototype.padStart){return r.padStart(i,a)}a=a||" ";if(r.length>i){return r}else{i=i-r.length;if(i>a.length){a+=a.repeat(i/a.length)}return a.slice(0,i)+r}}function iEqual(r,i){return r.toLocaleLowerCase()===i.toLocaleLowerCase()}function getAccountNameFromUrl(r){const i=c.URLBuilder.parse(r);let a;try{if(i.getHost().split(".")[1]==="blob"){a=i.getHost().split(".")[0]}else if(isIpEndpointStyle(i)){a=i.getPath().split("/")[1]}else{a=""}return a}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const i=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());return/^.*:.*:.*$|^localhost(:[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(i)||r.getPort()!==undefined&&ka.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const i=[];for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const c=r[a];i.push(`${encodeURIComponent(a)}=${encodeURIComponent(c)}`)}}return i.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const i={blobTagSet:[]};for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const c=r[a];i.blobTagSet.push({key:a,value:c})}}return i}function toTags(r){if(r===undefined){return undefined}const i={};for(const a of r.blobTagSet){i[a.key]=a.value}return i}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const i=[];for(const a in r){const c=a.split("_");const p="or-";if(c[0].startsWith(p)){c[0]=c[0].substring(p.length)}const l={ruleId:c[1],replicationStatus:r[a]};const d=i.findIndex((r=>r.policyId===c[0]));if(d>-1){i[d].rules.push(l)}else{i.push({policyId:c[0],rules:[l]})}}return i}function attachCredential(r,i){r.credential=i;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var i;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(i=r.segment.blobPrefixes)===null||i===void 0?void 0:i.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i})),blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function*ExtractPageRangeInfoItems(r){let i=[];let a=[];if(r.pageRange)i=r.pageRange;if(r.clearRange)a=r.clearRange;let c=0;let p=0;while(c=1?Math.floor(a.maxTries):Pa.maxTries,tryTimeoutInMs:a.tryTimeoutInMs&&a.tryTimeoutInMs>=0?a.tryTimeoutInMs:Pa.tryTimeoutInMs,retryDelayInMs:a.retryDelayInMs&&a.retryDelayInMs>=0?Math.min(a.retryDelayInMs,a.maxRetryDelayInMs?a.maxRetryDelayInMs:Pa.maxRetryDelayInMs):Pa.retryDelayInMs,maxRetryDelayInMs:a.maxRetryDelayInMs&&a.maxRetryDelayInMs>=0?a.maxRetryDelayInMs:Pa.maxRetryDelayInMs,secondaryHost:a.secondaryHost?a.secondaryHost:Pa.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,i,a){const c=r.clone();const p=i||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||a%2===1;if(!p){c.url=setURLHost(c.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){c.url=setURLParameter(c.url,ya.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let l;try{da.info(`RetryPolicy: =====> Try=${a} ${p?"Primary":"Secondary"}`);l=await this._nextPolicy.sendRequest(c);if(!this.shouldRetry(p,a,l)){return l}i=i||!p&&l.status===404}catch(r){da.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(p,a,l,r)){throw r}}await this.delay(p,a,r.abortSignal);return this.attemptSendRequest(r,i,++a)}shouldRetry(r,i,a,c){if(i>=this.retryOptions.maxTries){da.info(`RetryPolicy: Attempt(s) ${i} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const p=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(c){for(const r of p){if(c.name.toUpperCase().includes(r)||c.message.toUpperCase().includes(r)||c.code&&c.code.toString().toUpperCase()===r){da.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(a||c){const i=a?a.status:c?c.statusCode:0;if(!r&&i===404){da.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){da.info(`RetryPolicy: Will retry for status code ${i}.`);return true}}if((c===null||c===void 0?void 0:c.code)==="PARSE_ERROR"&&(c===null||c===void 0?void 0:c.message.startsWith(`Error "Error: Unclosed root tag`))){da.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,a,c){let p=0;if(r){switch(this.retryOptions.retryPolicyType){case i.StorageRetryPolicyType.EXPONENTIAL:p=Math.min((Math.pow(2,a-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case i.StorageRetryPolicyType.FIXED:p=this.retryOptions.retryDelayInMs;break}}else{p=Math.random()*1e3}da.info(`RetryPolicy: Delay for ${p}ms`);return delay(p,c,Da)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,i){return new StorageRetryPolicy(r,i,this.retryOptions)}}class CredentialPolicy extends c.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,i){super(r,i)}}class Credential{create(r,i){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,i){return new AnonymousCredentialPolicy(r,i)}}class TelemetryPolicy extends c.BaseRequestPolicy{constructor(r,i,a){super(r,i);this.telemetry=a}async sendRequest(r){if(c.isNode){if(!r.headers){r.headers=new c.HttpHeaders}if(!r.headers.get(va.USER_AGENT)){r.headers.set(va.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const i=[];if(c.isNode){if(r){const a=r.userAgentPrefix||"";if(a.length>0&&i.indexOf(a)===-1){i.push(a)}}const a=`azsdk-js-storageblob/${ua}`;if(i.indexOf(a)===-1){i.push(a)}let c=`(NODE-VERSION ${process.version})`;if(v){c=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(i.indexOf(c)===-1){i.push(c)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const Qa=new c.DefaultHttpClient;function getCachedDefaultHttpClient(){return Qa}const Fa={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Ua={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,a){async function tryGetAccessToken(){if(Date.now()r.getToken(i,a);c=beginRefresh(tryGetAccessToken,l.retryIntervalInMs,(u=p===null||p===void 0?void 0:p.expiresOnTimestamp)!==null&&u!==void 0?u:Date.now()).then((r=>{c=null;p=r;return p})).catch((r=>{c=null;p=null;throw r}))}return c}return async r=>{if(d.mustRefresh)return refresh(r);if(d.shouldRefresh){refresh(r)}return p}}function getChallenge(r){const i=r.headers.get("WWW-Authenticate");if(r.status===401&&i){return i}return}function parseChallenge(r){const i=r.slice("Bearer ".length);const a=`${i.trim()} `.split(" ").filter((r=>r));const c=a.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return c.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let a=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends c.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(i){if(!i.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const p=a;const l=(await p({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Fa.HeaderConstants.AUTHORIZATION,`Bearer ${l}`);const d=await this._nextPolicy.sendRequest(i);if((d===null||d===void 0?void 0:d.status)===401){const p=getChallenge(d);if(p){const l=parseChallenge(p);const d=l.resource_id+Fa.DefaultScope;const u=c.URLBuilder.parse(l.authorization_uri);const A=u.getPath().split("/");const b=A[1];const h=createTokenCycler(r,d);const g=(await h({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:b})).token;a=h;i.headers.set(Fa.HeaderConstants.AUTHORIZATION,`Bearer ${g}`);return this._nextPolicy.sendRequest(i)}}return d}}return{create:(r,i)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,i)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const i=r;return Array.isArray(i.factories)&&typeof i.options==="object"&&typeof i.toServiceClientOptions==="function"}class Pipeline{constructor(r,i={}){this.factories=r;this.options=Object.assign(Object.assign({},i),{httpClient:i.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,i={}){var a;if(r===undefined){r=new AnonymousCredential}const p=new TelemetryPolicyFactory(i.userAgentOptions);const l=[c.tracingPolicy({userAgent:p.telemetryString}),c.keepAlivePolicy(i.keepAliveOptions),p,c.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),c.deserializationPolicy(undefined,{xmlCharKey:"#"}),c.logPolicy({logger:da.info,allowedHeaderNames:Ta,allowedQueryParameters:_a})];if(c.isNode){l.push(c.proxyPolicy(i.proxyOptions));l.push(c.disableResponseDecompressionPolicy())}l.push(c.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(a=i.audience)!==null&&a!==void 0?a:Oa),r):r);return new Pipeline(l,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,a){super(r,i);this.factory=a}signRequest(r){r.headers.set(va.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(va.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,va.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,va.CONTENT_ENCODING),this.getHeaderValueToSign(r,va.CONTENT_LENGTH),this.getHeaderValueToSign(r,va.CONTENT_MD5),this.getHeaderValueToSign(r,va.CONTENT_TYPE),this.getHeaderValueToSign(r,va.DATE),this.getHeaderValueToSign(r,va.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,va.IF_MATCH),this.getHeaderValueToSign(r,va.IF_NONE_MATCH),this.getHeaderValueToSign(r,va.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,va.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const a=this.factory.computeHMACSHA256(i);r.headers.set(va.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${a}`);return r}getHeaderValueToSign(r,i){const a=r.headers.get(i);if(!a){return""}if(i===va.CONTENT_LENGTH&&a==="0"){return""}return a}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(va.PREFIX_FOR_STORAGE)));i.sort(((r,i)=>r.name.toLowerCase().localeCompare(i.name.toLowerCase())));i=i.filter(((r,i,a)=>{if(i>0&&r.name.toLowerCase()===a[i-1].name.toLowerCase()){return false}return true}));let a="";i.forEach((r=>{a+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return a}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let a="";a+=`/${this.factory.accountName}${i}`;const c=getURLQueries(r.url);const p={};if(c){const r=[];for(const i in c){if(Object.prototype.hasOwnProperty.call(c,i)){const a=i.toLowerCase();p[a]=c[i];r.push(a)}}r.sort();for(const i of r){a+=`\n${i}:${decodeURIComponent(p[i])}`}}return a}}class StorageSharedKeyCredential extends Credential{constructor(r,i){super();this.accountName=r;this.accountKey=Buffer.from(i,"base64")}create(r,i){return new StorageSharedKeyCredentialPolicy(r,i,this)}computeHMACSHA256(r){return b.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const Ga="azure-storage-blob";const ja="12.15.0";class StorageClientContext extends y.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=y.getDefaultUserAgentValue();i.userAgent=`${Ga}/${ja} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2023-01-03"}}class StorageClient{constructor(r,i){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=i;this.storageClientContext=new StorageClientContext(this.url,i.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(c.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(c.isTokenCredential(r.credential)){this.credential=r.credential}}const a=this.storageClientContext;a.requestContentType=undefined}}const Ha=l.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,a;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(a=r===null||r===void 0?void 0:r.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new BlobSASPermissions;for(const a of r){switch(a){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"t":i.tag=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${a}`)}}return i}static from(r){const i=new BlobSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const i=new ContainerSASPermissions;for(const a of r){switch(a){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"l":i.list=true;break;case"t":i.tag=true;break;case"x":i.deleteVersion=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;case"f":i.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${a}`)}}return i}static from(r){const i=new ContainerSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.list){i.list=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}if(r.filterByTags){i.filterByTags=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,i){this.accountName=r;this.userDelegationKey=i;this.key=Buffer.from(i.value,"base64")}computeHMACSHA256(r){return b.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}i.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(i.SASProtocol||(i.SASProtocol={}));class SASQueryParameters{constructor(r,i,a,c,p,l,d,u,A,b,h,g,M,z,O,y,v,C,q,R){this.version=r;this.signature=i;if(a!==undefined&&typeof a!=="string"){this.permissions=a.permissions;this.services=a.services;this.resourceTypes=a.resourceTypes;this.protocol=a.protocol;this.startsOn=a.startsOn;this.expiresOn=a.expiresOn;this.ipRangeInner=a.ipRange;this.identifier=a.identifier;this.encryptionScope=a.encryptionScope;this.resource=a.resource;this.cacheControl=a.cacheControl;this.contentDisposition=a.contentDisposition;this.contentEncoding=a.contentEncoding;this.contentLanguage=a.contentLanguage;this.contentType=a.contentType;if(a.userDelegationKey){this.signedOid=a.userDelegationKey.signedObjectId;this.signedTenantId=a.userDelegationKey.signedTenantId;this.signedStartsOn=a.userDelegationKey.signedStartsOn;this.signedExpiresOn=a.userDelegationKey.signedExpiresOn;this.signedService=a.userDelegationKey.signedService;this.signedVersion=a.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=a.preauthorizedAgentObjectId;this.correlationId=a.correlationId}}else{this.services=c;this.resourceTypes=p;this.expiresOn=u;this.permissions=a;this.protocol=l;this.startsOn=d;this.ipRangeInner=A;this.encryptionScope=R;this.identifier=b;this.resource=h;this.cacheControl=g;this.contentDisposition=M;this.contentEncoding=z;this.contentLanguage=O;this.contentType=y;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=C;this.correlationId=q}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const i=[];for(const a of r){switch(a){case"sv":this.tryAppendQueryParameter(i,a,this.version);break;case"ss":this.tryAppendQueryParameter(i,a,this.services);break;case"srt":this.tryAppendQueryParameter(i,a,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,a,this.protocol);break;case"st":this.tryAppendQueryParameter(i,a,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,a,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,a,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,a,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,a,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,a,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,a,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,a,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,a,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,a,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,a,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,a,this.resource);break;case"sp":this.tryAppendQueryParameter(i,a,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,a,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,a,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,a,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,a,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,a,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,a,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,a,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,a,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,a){if(!a){return}i=encodeURIComponent(i);a=encodeURIComponent(a);if(i.length>0&&a.length>0){r.push(`${i}=${a}`)}}}function generateBlobSASQueryParameters(r,i,a){const c=r.version?r.version:Aa;const p=i instanceof StorageSharedKeyCredential?i:undefined;let l;if(p===undefined&&a!==undefined){l=new UserDelegationKeyCredential(a,i)}if(p===undefined&&l===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(c>="2020-12-06"){if(p!==undefined){return generateBlobSASQueryParameters20201206(r,p)}else{return generateBlobSASQueryParametersUDK20201206(r,l)}}if(c>="2018-11-09"){if(p!==undefined){return generateBlobSASQueryParameters20181109(r,p)}else{if(c>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,l)}else{return generateBlobSASQueryParametersUDK20181109(r,l)}}}if(c>="2015-04-05"){if(p!==undefined){return generateBlobSASQueryParameters20150405(r,p)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";if(r.blobName){a="b"}let c;if(r.permissions){if(r.blobName){c=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{c=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const p=[c?c:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,l,c,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,a){const c=[`/blob/${r}/${i}`];if(a){c.push(`/${a}`)}return c.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:Aa;if(r.snapshotTime&&i<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(i<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(i<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(i<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=i;return r}class BlobLeaseClient{constructor(r,i){const a=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(a)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(a)}if(!i){i=c.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:i.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(h)))}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}async changeLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{const a=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(h)));this._leaseId=r;return a}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}async releaseLease(r={}){var i,a,c,p,d,u;const{span:A,updatedOptions:b}=Ha("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((c=r.conditions)===null||c===void 0?void 0:c.ifNoneMatch)&&((p=r.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Ca||((d=r.conditions)===null||d===void 0?void 0:d.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.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(u=r.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(b)))}catch(r){A.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async renewLease(r={}){var i,a,c,p,d,u;const{span:A,updatedOptions:b}=Ha("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((c=r.conditions)===null||c===void 0?void 0:c.ifNoneMatch)&&((p=r.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Ca||((d=r.conditions)===null||d===void 0?void 0:d.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.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(u=r.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(b)))}catch(r){A.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async breakLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{const a=Object.assign({abortSignal:i.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(h));return await this._containerOrBlobOperation.breakLease(a)}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}}class RetriableReadableStream extends h.Readable{constructor(r,i,a,c,p={}){super({highWaterMark:p.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=i;this.source=r;this.start=a;this.offset=a;this.end=a+c-1;this.maxRetryRequests=p.maxRetryRequests&&p.maxRetryRequests>=0?p.maxRetryRequests:0;this.onProgress=p.onProgress;this.options=p;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)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,i){this.removeSourceEventHandlers();this.source.destroy();i(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,i,a,c,p={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,i,a,c,p)}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 c.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Xa=16;const Va=new Uint8Array([79,98,106,1]);const Ya="avro.codec";const $a="avro.schema";class AvroParser{static async readFixedBytes(r,i,a={}){const c=await r.read(i,{abortSignal:a.abortSignal});if(c.length!==i){throw new Error("Hit stream end.")}return c}static async readByte(r,i={}){const a=await AvroParser.readFixedBytes(r,1,i);return a[0]}static async readZigZagLong(r,i={}){let a=0;let c=0;let p,l,d;do{p=await AvroParser.readByte(r,i);l=p&128;a|=(p&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return c}return a>>1^-(a&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const a=await AvroParser.readByte(r,i);if(a===1){return true}else if(a===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const a=await AvroParser.readFixedBytes(r,4,i);const c=new DataView(a.buffer,a.byteOffset,a.byteLength);return c.getFloat32(0,true)}static async readDouble(r,i={}){const a=await AvroParser.readFixedBytes(r,8,i);const c=new DataView(a.buffer,a.byteOffset,a.byteLength);return c.getFloat64(0,true)}static async readBytes(r,i={}){const a=await AvroParser.readLong(r,i);if(a<0){throw new Error("Bytes size was negative.")}return r.read(a,{abortSignal:i.abortSignal})}static async readString(r,i={}){const a=await AvroParser.readBytes(r,i);const c=new TextDecoder;return c.decode(a)}static async readMapPair(r,i,a={}){const c=await AvroParser.readString(r,a);const p=await i(r,a);return{key:c,value:p}}static async readMap(r,i,a={}){const readPairMethod=(r,a={})=>AvroParser.readMapPair(r,i,a);const c=await AvroParser.readArray(r,readPairMethod,a);const p={};for(const r of c){p[r.key]=r.value}return p}static async readArray(r,i,a={}){const c=[];for(let p=await AvroParser.readLong(r,a);p!==0;p=await AvroParser.readLong(r,a)){if(p<0){await AvroParser.readLong(r,a);p=-p}while(p--){const p=await i(r,a);c.push(p)}}return c}}var Ja;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Ja||(Ja={}));var Ka;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Ka||(Ka={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Ka.NULL:case Ka.BOOLEAN:case Ka.INT:case Ka.LONG:case Ka.FLOAT:case Ka.DOUBLE:case Ka.BYTES:case Ka.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case Ja.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const a={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){a[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(a,r.name);case Ja.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Ja.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Ja.ARRAY:case Ja.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Ka.NULL:return AvroParser.readNull();case Ka.BOOLEAN:return AvroParser.readBoolean(r,i);case Ka.INT:return AvroParser.readInt(r,i);case Ka.LONG:return AvroParser.readLong(r,i);case Ka.FLOAT:return AvroParser.readFloat(r,i);case Ka.DOUBLE:return AvroParser.readDouble(r,i);case Ka.BYTES:return AvroParser.readBytes(r,i);case Ka.STRING:return AvroParser.readString(r,i);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._symbols[a]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._types[a].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const a={};a["$schema"]=this._name;for(const c in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,c)){a[c]=await this._fields[c].read(r,i)}}return a}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let a=0;a0){for(let i=0;i0}parseObjects(r={}){return p.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield p.__await(this.initialize(r))}while(this.hasNext()){const i=yield p.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const i=yield p.__await(AvroParser.readFixedBytes(this._dataStream,Xa,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,i)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield p.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield p.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield p.__await(i)}}))}}class AvroReadable{}const Za=new u.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,i={}){var a;if((a=i.abortSignal)===null||a===void 0?void 0:a.aborted){throw Za}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const c=this._readable.read(r);if(c){this._position+=c.length;return this.toUint8Array(c)}else{return new Promise(((a,c)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(i.abortSignal){i.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const i=this._readable.read(r);if(i){this._position+=i.length;cleanUp();a(this.toUint8Array(i))}};const rejectCallback=()=>{cleanUp();c()};const abortHandler=()=>{cleanUp();c(Za)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(i.abortSignal){i.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends h.Readable{constructor(r,i={}){super();this.avroPaused=true;this.source=r;this.onProgress=i.onProgress;this.onError=i.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:i.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const i=r.value;const a=i.$schema;if(typeof a!=="string"){throw Error("Missing schema in avro record.")}switch(a){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=i.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=i.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=i.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=i.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const a=i.name;if(typeof a!=="string"){throw Error("Invalid name in avro error record.")}const c=i.description;if(typeof c!=="string"){throw Error("Invalid description in avro error record.")}const p=i.position;if(typeof p!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:p,name:a,isFatal:r,description:c})}break;default:throw Error(`Unknown schema ${a} in avro progress record.`)}}while(!r.done&&!this.avroPaused)}}class BlobQueryResponse{constructor(r,i={}){this.originalResponse=r;this.blobDownloadStream=new BlobQuickQueryStream(this.originalResponse.readableStreamBody,i)}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 c.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}i.BlockBlobTier=void 0;(function(r){r["Hot"]="Hot";r["Cool"]="Cool";r["Cold"]="Cold";r["Archive"]="Archive"})(i.BlockBlobTier||(i.BlockBlobTier={}));i.PremiumPageBlobTier=void 0;(function(r){r["P4"]="P4";r["P6"]="P6";r["P10"]="P10";r["P15"]="P15";r["P20"]="P20";r["P30"]="P30";r["P40"]="P40";r["P50"]="P50";r["P60"]="P60";r["P70"]="P70";r["P80"]="P80"})(i.PremiumPageBlobTier||(i.PremiumPageBlobTier={}));function toAccessTier(r){if(r===undefined){return undefined}return r}function ensureCpkIfSpecified(r,i){if(r&&!i){throw new RangeError("Customer-provided encryption key must be used over HTTPS.")}if(r&&!r.encryptionAlgorithm){r.encryptionAlgorithm=Ia}}i.StorageBlobAudience=void 0;(function(r){r["StorageOAuthScopes"]="https://storage.azure.com/.default";r["DiskComputeOAuthScopes"]="https://disk.compute.azure.com/.default"})(i.StorageBlobAudience||(i.StorageBlobAudience={}));function rangeResponseFromModel(r){const i=(r._response.parsedBody.pageRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));const a=(r._response.parsedBody.clearRange||[]).map((r=>({offset:r.start,count:r.end-r.start})));return Object.assign(Object.assign({},r),{pageRange:i,clearRange:a,_response:Object.assign(Object.assign({},r._response),{parsedBody:{pageRange:i,clearRange:a}})})}class BlobBeginCopyFromUrlPoller extends g.Poller{constructor(r){const{blobClient:i,copySource:a,intervalInMs:c=15e3,onProgress:p,resumeFrom:l,startCopyFromURLOptions:d}=r;let u;if(l){u=JSON.parse(l).state}const A=makeBlobBeginCopyFromURLPollOperation(Object.assign(Object.assign({},u),{blobClient:i,copySource:a,startCopyFromURLOptions:d}));super(A);if(typeof p==="function"){this.onProgress(p)}this.intervalInMs=c}delay(){return c.delay(this.intervalInMs)}}const ec=async function cancel(r={}){const i=this.state;const{copyId:a}=i;if(i.isCompleted){return makeBlobBeginCopyFromURLPollOperation(i)}if(!a){i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)}await i.blobClient.abortCopyFromURL(a,{abortSignal:r.abortSignal});i.isCancelled=true;return makeBlobBeginCopyFromURLPollOperation(i)};const tc=async function update(r={}){const i=this.state;const{blobClient:a,copySource:c,startCopyFromURLOptions:p}=i;if(!i.isStarted){i.isStarted=true;const r=await a.startCopyFromURL(c,p);i.copyId=r.copyId;if(r.copyStatus==="success"){i.result=r;i.isCompleted=true}}else if(!i.isCompleted){try{const a=await i.blobClient.getProperties({abortSignal:r.abortSignal});const{copyStatus:c,copyProgress:p}=a;const l=i.copyProgress;if(p){i.copyProgress=p}if(c==="pending"&&p!==l&&typeof r.fireProgress==="function"){r.fireProgress(i)}else if(c==="success"){i.result=a;i.isCompleted=true}else if(c==="failed"){i.error=new Error(`Blob copy failed with reason: "${a.copyStatusDescription||"unknown"}"`);i.isCompleted=true}}catch(r){i.error=r;i.isCompleted=true}}return makeBlobBeginCopyFromURLPollOperation(i)};const rc=function toString(){return JSON.stringify({state:this.state},((r,i)=>{if(r==="blobClient"){return undefined}return i}))};function makeBlobBeginCopyFromURLPollOperation(r){return{state:Object.assign({},r),cancel:ec,toString:rc,update:tc}}function rangeToString(r){if(r.offset<0){throw new RangeError(`Range.offset cannot be smaller than 0.`)}if(r.count&&r.count<=0){throw new RangeError(`Range.count must be larger than 0. Leave it undefined if you want a range from offset to the end.`)}return r.count?`bytes=${r.offset}-${r.offset+r.count-1}`:`bytes=${r.offset}-`}var nc;(function(r){r[r["Good"]=0]="Good";r[r["Error"]=1]="Error"})(nc||(nc={}));class Batch{constructor(r=5){this.actives=0;this.completed=0;this.offset=0;this.operations=[];this.state=nc.Good;if(r<1){throw new RangeError("concurrency must be larger than 0")}this.concurrency=r;this.emitter=new M.EventEmitter}addOperation(r){this.operations.push((async()=>{try{this.actives++;await r();this.actives--;this.completed++;this.parallelExecute()}catch(r){this.emitter.emit("error",r)}}))}async do(){if(this.operations.length===0){return Promise.resolve()}this.parallelExecute();return new Promise(((r,i)=>{this.emitter.on("finish",r);this.emitter.on("error",(r=>{this.state=nc.Error;i(r)}))}))}nextOperation(){if(this.offset=this.operations.length){this.emitter.emit("finish");return}while(this.actives=this.byteLength){this.push(null)}if(!r){r=this.readableHighWaterMark}const i=[];let a=0;while(ar-a){const c=this.byteOffsetInCurrentBuffer+r-a;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,c));this.pushedBytesLength+=r-a;this.byteOffsetInCurrentBuffer=c;a=r;break}else{const r=this.byteOffsetInCurrentBuffer+l;i.push(this.buffers[this.bufferIndex].slice(this.byteOffsetInCurrentBuffer,r));if(l===p){this.byteOffsetInCurrentBuffer=0;this.bufferIndex++}else{this.byteOffsetInCurrentBuffer=r}this.pushedBytesLength+=l;a+=l}}if(i.length>1){this.push(Buffer.concat(i))}else if(i.length===1){this.push(i[0])}}}const oc=a(14300).constants.MAX_LENGTH;class PooledBuffer{constructor(r,i,a){this.buffers=[];this.capacity=r;this._size=0;const c=Math.ceil(r/oc);for(let i=0;i0){r[0]=r[0].slice(l)}}getReadableStream(){return new BuffersStream(this.buffers,this.size)}}class BufferScheduler{constructor(r,i,a,c,p,l){this.emitter=new M.EventEmitter;this.offset=0;this.isStreamEnd=false;this.isError=false;this.executingOutgoingHandlers=0;this.numBuffers=0;this.unresolvedDataArray=[];this.unresolvedLength=0;this.incoming=[];this.outgoing=[];if(i<=0){throw new RangeError(`bufferSize must be larger than 0, current is ${i}`)}if(a<=0){throw new RangeError(`maxBuffers must be larger than 0, current is ${a}`)}if(p<=0){throw new RangeError(`concurrency must be larger than 0, current is ${p}`)}this.bufferSize=i;this.maxBuffers=a;this.readable=r;this.outgoingHandler=c;this.concurrency=p;this.encoding=l}async do(){return new Promise(((r,i)=>{this.readable.on("data",(r=>{r=typeof r==="string"?Buffer.from(r,this.encoding):r;this.appendUnresolvedData(r);if(!this.resolveData()){this.readable.pause()}}));this.readable.on("error",(r=>{this.emitter.emit("error",r)}));this.readable.on("end",(()=>{this.isStreamEnd=true;this.emitter.emit("checkEnd")}));this.emitter.on("error",(r=>{this.isError=true;this.readable.pause();i(r)}));this.emitter.on("checkEnd",(()=>{if(this.outgoing.length>0){this.triggerOutgoingHandlers();return}if(this.isStreamEnd&&this.executingOutgoingHandlers===0){if(this.unresolvedLength>0&&this.unresolvedLengtha.getReadableStream()),a.size,this.offset).then(r).catch(i)}else if(this.unresolvedLength>=this.bufferSize){return}else{r()}}}))}))}appendUnresolvedData(r){this.unresolvedDataArray.push(r);this.unresolvedLength+=r.length}shiftBufferFromUnresolvedDataArray(r){if(!r){r=new PooledBuffer(this.bufferSize,this.unresolvedDataArray,this.unresolvedLength)}else{r.fill(this.unresolvedDataArray,this.unresolvedLength)}this.unresolvedLength-=r.size;return r}resolveData(){while(this.unresolvedLength>=this.bufferSize){let r;if(this.incoming.length>0){r=this.incoming.shift();this.shiftBufferFromUnresolvedDataArray(r)}else{if(this.numBuffers=this.concurrency){return}r=this.outgoing.shift();if(r){this.triggerOutgoingHandler(r)}}while(r)}async triggerOutgoingHandler(r){const i=r.size;this.executingOutgoingHandlers++;this.offset+=i;try{await this.outgoingHandler((()=>r.getReadableStream()),i,this.offset-i)}catch(r){this.emitter.emit("error",r);return}this.executingOutgoingHandlers--;this.reuseBuffer(r);this.emitter.emit("checkEnd")}reuseBuffer(r){this.incoming.push(r);if(!this.isError&&this.resolveData()&&!this.isStreamEnd){this.readable.resume()}}}async function streamToBuffer(r,i,a,c,p){let l=0;const d=c-a;return new Promise(((c,u)=>{const A=setTimeout((()=>u(new Error(`The operation cannot be completed in timeout.`))),za);r.on("readable",(()=>{if(l>=d){clearTimeout(A);c();return}let u=r.read();if(!u){return}if(typeof u==="string"){u=Buffer.from(u,p)}const b=l+u.length>d?d-l:u.length;i.fill(u.slice(0,b),a+l,a+l+b);l+=b}));r.on("end",(()=>{clearTimeout(A);if(l{clearTimeout(A);u(r)}))}))}async function streamToBuffer2(r,i,a){let c=0;const p=i.length;return new Promise(((l,d)=>{r.on("readable",(()=>{let l=r.read();if(!l){return}if(typeof l==="string"){l=Buffer.from(l,a)}if(c+l.length>p){d(new Error(`Stream exceeds buffer size. Buffer size: ${p}`));return}i.fill(l,c,c+l.length);c+=l.length}));r.on("end",(()=>{l(c)}));r.on("error",d)}))}async function readStreamToLocalFile(r,i){return new Promise(((a,c)=>{const p=C.createWriteStream(i);r.on("error",(r=>{c(r)}));p.on("error",(r=>{c(r)}));p.on("close",a);r.pipe(p)}))}const ic=q.promisify(C.stat);const sc=C.createReadStream;class BlobClient extends StorageClient{constructor(r,i,a,p){p=p||{};let l;let d;if(isPipelineLike(i)){d=r;l=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){d=r;p=a;l=newPipeline(i,p)}else if(!i&&typeof i!=="string"){d=r;if(a&&typeof a!=="string"){p=a}l=newPipeline(new AnonymousCredential,p)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const u=i;const A=a;const b=extractConnectionStringParts(r);if(b.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(b.accountName,b.accountKey);d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A));if(!p.proxyOptions){p.proxyOptions=c.getDefaultProxySettings(b.proxyUri)}l=newPipeline(r,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(b.kind==="SASConnString"){d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A))+"?"+b.accountSas;l=newPipeline(new AnonymousCredential,p)}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(d,l);({blobName:this._name,containerName:this._containerName}=this.getBlobAndContainerNamesFromUrl());this.blobContext=new Blob$1(this.storageClientContext);this._snapshot=getURLParameter(this.url,ya.Parameters.SNAPSHOT);this._versionId=getURLParameter(this.url,ya.Parameters.VERSIONID)}get name(){return this._name}get containerName(){return this._containerName}withSnapshot(r){return new BlobClient(setURLParameter(this.url,ya.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}withVersion(r){return new BlobClient(setURLParameter(this.url,ya.Parameters.VERSIONID,r.length===0?undefined:r),this.pipeline)}getAppendBlobClient(){return new AppendBlobClient(this.url,this.pipeline)}getBlockBlobClient(){return new BlockBlobClient(this.url,this.pipeline)}getPageBlobClient(){return new PageBlobClient(this.url,this.pipeline)}async download(r=0,i,a={}){var p;a.conditions=a.conditions||{};a.conditions=a.conditions||{};ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);const{span:d,updatedOptions:u}=Ha("BlobClient-download",a);try{const l=await this.blobContext.download(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions}),requestOptions:{onDownloadProgress:c.isNode?undefined:a.onProgress},range:r===0&&!i?undefined:rangeToString({offset:r,count:i}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey},convertTracingToRequestOptionsBase(u)));const d=Object.assign(Object.assign({},l),{_response:l._response,objectReplicationDestinationPolicyId:l.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(l.objectReplicationRules)});if(!c.isNode){return d}if(a.maxRetryRequests===undefined||a.maxRetryRequests<0){a.maxRetryRequests=Ma}if(l.contentLength===undefined){throw new RangeError(`File download response doesn't contain valid content length header`)}if(!l.etag){throw new RangeError(`File download response doesn't contain valid etag header`)}return new BlobDownloadResponse(d,(async i=>{var c;const p={leaseAccessConditions:a.conditions,modifiedAccessConditions:{ifMatch:a.conditions.ifMatch||l.etag,ifModifiedSince:a.conditions.ifModifiedSince,ifNoneMatch:a.conditions.ifNoneMatch,ifUnmodifiedSince:a.conditions.ifUnmodifiedSince,ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions},range:rangeToString({count:r+l.contentLength-i,offset:i}),rangeGetContentMD5:a.rangeGetContentMD5,rangeGetContentCRC64:a.rangeGetContentCrc64,snapshot:a.snapshot,cpkInfo:a.customerProvidedKey};return(await this.blobContext.download(Object.assign({abortSignal:a.abortSignal},p))).readableStreamBody}),r,l.contentLength,{maxRetryRequests:a.maxRetryRequests,onProgress:a.onProgress})}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async exists(r={}){const{span:i,updatedOptions:a}=Ha("BlobClient-exists",r);try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);await this.getProperties({abortSignal:r.abortSignal,customerProvidedKey:r.customerProvidedKey,conditions:r.conditions,tracingOptions:a.tracingOptions});return true}catch(r){if(r.statusCode===404){return false}else if(r.statusCode===409&&(r.details.errorCode===Wa||r.details.errorCode===La)){return true}i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getProperties(r={}){var i;const{span:a,updatedOptions:c}=Ha("BlobClient-getProperties",r);try{r.conditions=r.conditions||{};ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);const a=await this.blobContext.getProperties(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey},convertTracingToRequestOptionsBase(c)));return Object.assign(Object.assign({},a),{_response:a._response,objectReplicationDestinationPolicyId:a.objectReplicationPolicyId,objectReplicationSourceProperties:parseObjectReplicationRecord(a.objectReplicationRules)})}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async delete(r={}){var i;const{span:a,updatedOptions:c}=Ha("BlobClient-delete",r);r.conditions=r.conditions||{};try{return await this.blobContext.delete(Object.assign({abortSignal:r.abortSignal,deleteSnapshots:r.deleteSnapshots,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async deleteIfExists(r={}){var i,a;const{span:c,updatedOptions:p}=Ha("BlobClient-deleteIfExists",r);try{const r=await this.delete(p);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobNotFound"){c.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when deleting a blob or snapshot only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async undelete(r={}){const{span:i,updatedOptions:a}=Ha("BlobClient-undelete",r);try{return await this.blobContext.undelete(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setHTTPHeaders(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("BlobClient-setHTTPHeaders",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setHttpHeaders(Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:r,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async setMetadata(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("BlobClient-setMetadata",i);i.conditions=i.conditions||{};try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blobContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async setTags(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("BlobClient-setTags",i);try{return await this.blobContext.setTags(Object.assign(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)),{tags:toBlobTags(r)}))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async getTags(r={}){var i;const{span:a,updatedOptions:c}=Ha("BlobClient-getTags",r);try{const a=await this.blobContext.getTags(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(c)));const p=Object.assign(Object.assign({},a),{_response:a._response,tags:toTags({blobTagSet:a.blobTagSet})||{}});return p}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async createSnapshot(r={}){var i;const{span:a,updatedOptions:c}=Ha("BlobClient-createSnapshot",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.blobContext.createSnapshot(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async beginCopyFromURL(r,i={}){const a={abortCopyFromURL:(...r)=>this.abortCopyFromURL(...r),getProperties:(...r)=>this.getProperties(...r),startCopyFromURL:(...r)=>this.startCopyFromURL(...r)};const c=new BlobBeginCopyFromUrlPoller({blobClient:a,copySource:r,intervalInMs:i.intervalInMs,onProgress:i.onProgress,resumeFrom:i.resumeFrom,startCopyFromURLOptions:i});await c.poll();return c}async abortCopyFromURL(r,i={}){const{span:a,updatedOptions:c}=Ha("BlobClient-abortCopyFromURL",i);try{return await this.blobContext.abortCopyFromURL(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async syncCopyFromURL(r,i={}){var a,c,p;const{span:d,updatedOptions:u}=Ha("BlobClient-syncCopyFromURL",i);i.conditions=i.conditions||{};i.sourceConditions=i.sourceConditions||{};try{return await this.blobContext.copyFromURL(r,Object.assign({abortSignal:i.abortSignal,metadata:i.metadata,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:i.sourceConditions.ifMatch,sourceIfModifiedSince:i.sourceConditions.ifModifiedSince,sourceIfNoneMatch:i.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:i.sourceConditions.ifUnmodifiedSince},sourceContentMD5:i.sourceContentMD5,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),immutabilityPolicyExpiry:(c=i.immutabilityPolicy)===null||c===void 0?void 0:c.expiriesOn,immutabilityPolicyMode:(p=i.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:i.legalHold,encryptionScope:i.encryptionScope,copySourceTags:i.copySourceTags},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async setAccessTier(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("BlobClient-setAccessTier",i);try{return await this.blobContext.setTier(toAccessTier(r),Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),rehydratePriority:i.rehydratePriority},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async downloadToBuffer(r,i,a,c={}){let p;let d=0;let u=0;let A=c;if(r instanceof Buffer){p=r;d=i||0;u=typeof a==="number"?a:0}else{d=typeof r==="number"?r:0;u=typeof i==="number"?i:0;A=a||{}}const{span:b,updatedOptions:h}=Ha("BlobClient-downloadToBuffer",A);try{if(!A.blockSize){A.blockSize=0}if(A.blockSize<0){throw new RangeError("blockSize option must be >= 0")}if(A.blockSize===0){A.blockSize=ga}if(d<0){throw new RangeError("offset option must be >= 0")}if(u&&u<=0){throw new RangeError("count option must be greater than 0")}if(!A.conditions){A.conditions={}}if(!u){const r=await this.getProperties(Object.assign(Object.assign({},A),{tracingOptions:Object.assign(Object.assign({},A.tracingOptions),convertTracingToRequestOptionsBase(h))}));u=r.contentLength-d;if(u<0){throw new RangeError(`offset ${d} shouldn't be larger than blob size ${r.contentLength}`)}}if(!p){try{p=Buffer.alloc(u)}catch(r){throw new Error(`Unable to allocate the buffer of size: ${u}(in bytes). Please try passing your own buffer to the "downloadToBuffer" method or try using other methods like "download" or "downloadToFile".\t ${r.message}`)}}if(p.length{let i=d+u;if(a+A.blockSize{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const a=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName,blobName:this._name,snapshotTime:this._snapshot,versionId:this._versionId},r),this.credential).toString();i(appendToURLQuery(this.url,a))}))}async deleteImmutabilityPolicy(r){const{span:i,updatedOptions:a}=Ha("BlobClient-deleteImmutabilityPolicy",r);try{return await this.blobContext.deleteImmutabilityPolicy(Object.assign({abortSignal:r===null||r===void 0?void 0:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setImmutabilityPolicy(r,i){const{span:a,updatedOptions:c}=Ha("BlobClient-setImmutabilityPolicy",i);try{return await this.blobContext.setImmutabilityPolicy(Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal,immutabilityPolicyExpiry:r.expiriesOn,immutabilityPolicyMode:r.policyMode,modifiedAccessConditions:i===null||i===void 0?void 0:i.modifiedAccessCondition},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async setLegalHold(r,i){const{span:a,updatedOptions:c}=Ha("BlobClient-setLegalHold",i);try{return await this.blobContext.setLegalHold(r,Object.assign({abortSignal:i===null||i===void 0?void 0:i.abortSignal},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}class AppendBlobClient extends BlobClient{constructor(r,i,a,p){let l;let d;p=p||{};if(isPipelineLike(i)){d=r;l=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){d=r;p=a;l=newPipeline(i,p)}else if(!i&&typeof i!=="string"){d=r;l=newPipeline(new AnonymousCredential,p)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const u=i;const A=a;const b=extractConnectionStringParts(r);if(b.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(b.accountName,b.accountKey);d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A));if(!p.proxyOptions){p.proxyOptions=c.getDefaultProxySettings(b.proxyUri)}l=newPipeline(r,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(b.kind==="SASConnString"){d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A))+"?"+b.accountSas;l=newPipeline(new AnonymousCredential,p)}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(d,l);this.appendBlobContext=new AppendBlob(this.storageClientContext)}withSnapshot(r){return new AppendBlobClient(setURLParameter(this.url,ya.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r={}){var i,a,c;const{span:p,updatedOptions:d}=Ha("AppendBlobClient-create",r);r.conditions=r.conditions||{};try{ensureCpkIfSpecified(r.customerProvidedKey,this.isHttps);return await this.appendBlobContext.create(0,Object.assign({abortSignal:r.abortSignal,blobHttpHeaders:r.blobHTTPHeaders,leaseAccessConditions:r.conditions,metadata:r.metadata,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions}),cpkInfo:r.customerProvidedKey,encryptionScope:r.encryptionScope,immutabilityPolicyExpiry:(a=r.immutabilityPolicy)===null||a===void 0?void 0:a.expiriesOn,immutabilityPolicyMode:(c=r.immutabilityPolicy)===null||c===void 0?void 0:c.policyMode,legalHold:r.legalHold,blobTagsString:toBlobTagsString(r.tags)},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async createIfNotExists(r={}){var i,a;const{span:c,updatedOptions:p}=Ha("AppendBlobClient-createIfNotExists",r);const d={ifNoneMatch:qa};try{const r=await this.create(Object.assign(Object.assign({},p),{conditions:d}));return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="BlobAlreadyExists"){c.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async seal(r={}){var i;const{span:a,updatedOptions:c}=Ha("AppendBlobClient-seal",r);r.conditions=r.conditions||{};try{return await this.appendBlobContext.seal(Object.assign({abortSignal:r.abortSignal,appendPositionAccessConditions:r.conditions,leaseAccessConditions:r.conditions,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(i=r.conditions)===null||i===void 0?void 0:i.tagConditions})},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async appendBlock(r,i,a={}){var c;const{span:p,updatedOptions:d}=Ha("AppendBlobClient-appendBlock",a);a.conditions=a.conditions||{};try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlock(i,r,Object.assign({abortSignal:a.abortSignal,appendPositionAccessConditions:a.conditions,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},transactionalContentMD5:a.transactionalContentMD5,transactionalContentCrc64:a.transactionalContentCrc64,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async appendBlockFromURL(r,i,a,c={}){var p;const{span:d,updatedOptions:u}=Ha("AppendBlobClient-appendBlockFromURL",c);c.conditions=c.conditions||{};c.sourceConditions=c.sourceConditions||{};try{ensureCpkIfSpecified(c.customerProvidedKey,this.isHttps);return await this.appendBlobContext.appendBlockFromUrl(r,0,Object.assign({abortSignal:c.abortSignal,sourceRange:rangeToString({offset:i,count:a}),sourceContentMD5:c.sourceContentMD5,sourceContentCrc64:c.sourceContentCrc64,leaseAccessConditions:c.conditions,appendPositionAccessConditions:c.conditions,modifiedAccessConditions:Object.assign(Object.assign({},c.conditions),{ifTags:(p=c.conditions)===null||p===void 0?void 0:p.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:c.sourceConditions.ifMatch,sourceIfModifiedSince:c.sourceConditions.ifModifiedSince,sourceIfNoneMatch:c.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:c.sourceConditions.ifUnmodifiedSince},copySourceAuthorization:httpAuthorizationToString(c.sourceAuthorization),cpkInfo:c.customerProvidedKey,encryptionScope:c.encryptionScope},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}}class BlockBlobClient extends BlobClient{constructor(r,i,a,p){let l;let d;p=p||{};if(isPipelineLike(i)){d=r;l=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){d=r;p=a;l=newPipeline(i,p)}else if(!i&&typeof i!=="string"){d=r;if(a&&typeof a!=="string"){p=a}l=newPipeline(new AnonymousCredential,p)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const u=i;const A=a;const b=extractConnectionStringParts(r);if(b.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(b.accountName,b.accountKey);d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A));if(!p.proxyOptions){p.proxyOptions=c.getDefaultProxySettings(b.proxyUri)}l=newPipeline(r,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(b.kind==="SASConnString"){d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A))+"?"+b.accountSas;l=newPipeline(new AnonymousCredential,p)}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(d,l);this.blockBlobContext=new BlockBlob(this.storageClientContext);this._blobContext=new Blob$1(this.storageClientContext)}withSnapshot(r){return new BlockBlobClient(setURLParameter(this.url,ya.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async query(r,i={}){var a;ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const{span:p,updatedOptions:d}=Ha("BlockBlobClient-query",i);try{if(!c.isNode){throw new Error("This operation currently is only supported in Node.js.")}ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);const p=await this._blobContext.query(Object.assign({abortSignal:i.abortSignal,queryRequest:{queryType:"SQL",expression:r,inputSerialization:toQuerySerialization(i.inputTextConfiguration),outputSerialization:toQuerySerialization(i.outputTextConfiguration)},leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey},convertTracingToRequestOptionsBase(d)));return new BlobQueryResponse(p,{abortSignal:i.abortSignal,onProgress:i.onProgress,onError:i.onError})}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async upload(r,i,a={}){var c,p,d;a.conditions=a.conditions||{};const{span:u,updatedOptions:A}=Ha("BlockBlobClient-upload",a);try{ensureCpkIfSpecified(a.customerProvidedKey,this.isHttps);return await this.blockBlobContext.upload(i,r,Object.assign({abortSignal:a.abortSignal,blobHttpHeaders:a.blobHTTPHeaders,leaseAccessConditions:a.conditions,metadata:a.metadata,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions}),requestOptions:{onUploadProgress:a.onProgress},cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope,immutabilityPolicyExpiry:(p=a.immutabilityPolicy)===null||p===void 0?void 0:p.expiriesOn,immutabilityPolicyMode:(d=a.immutabilityPolicy)===null||d===void 0?void 0:d.policyMode,legalHold:a.legalHold,tier:toAccessTier(a.tier),blobTagsString:toBlobTagsString(a.tags)},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async syncUploadFromURL(r,i={}){var a,c,p,d,u;i.conditions=i.conditions||{};const{span:A,updatedOptions:b}=Ha("BlockBlobClient-syncUploadFromURL",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.putBlobFromUrl(0,r,Object.assign(Object.assign(Object.assign({},i),{blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:i.conditions.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:(a=i.sourceConditions)===null||a===void 0?void 0:a.ifMatch,sourceIfModifiedSince:(c=i.sourceConditions)===null||c===void 0?void 0:c.ifModifiedSince,sourceIfNoneMatch:(p=i.sourceConditions)===null||p===void 0?void 0:p.ifNoneMatch,sourceIfUnmodifiedSince:(d=i.sourceConditions)===null||d===void 0?void 0:d.ifUnmodifiedSince,sourceIfTags:(u=i.sourceConditions)===null||u===void 0?void 0:u.tagConditions},cpkInfo:i.customerProvidedKey,copySourceAuthorization:httpAuthorizationToString(i.sourceAuthorization),tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags),copySourceTags:i.copySourceTags}),convertTracingToRequestOptionsBase(b)))}catch(r){A.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async stageBlock(r,i,a,c={}){const{span:p,updatedOptions:d}=Ha("BlockBlobClient-stageBlock",c);try{ensureCpkIfSpecified(c.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlock(r,a,i,Object.assign({abortSignal:c.abortSignal,leaseAccessConditions:c.conditions,requestOptions:{onUploadProgress:c.onProgress},transactionalContentMD5:c.transactionalContentMD5,transactionalContentCrc64:c.transactionalContentCrc64,cpkInfo:c.customerProvidedKey,encryptionScope:c.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async stageBlockFromURL(r,i,a=0,c,p={}){const{span:d,updatedOptions:u}=Ha("BlockBlobClient-stageBlockFromURL",p);try{ensureCpkIfSpecified(p.customerProvidedKey,this.isHttps);return await this.blockBlobContext.stageBlockFromURL(r,0,i,Object.assign({abortSignal:p.abortSignal,leaseAccessConditions:p.conditions,sourceContentMD5:p.sourceContentMD5,sourceContentCrc64:p.sourceContentCrc64,sourceRange:a===0&&!c?undefined:rangeToString({offset:a,count:c}),cpkInfo:p.customerProvidedKey,encryptionScope:p.encryptionScope,copySourceAuthorization:httpAuthorizationToString(p.sourceAuthorization)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async commitBlockList(r,i={}){var a,c,p;i.conditions=i.conditions||{};const{span:d,updatedOptions:u}=Ha("BlockBlobClient-commitBlockList",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.blockBlobContext.commitBlockList({latest:r},Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(c=i.immutabilityPolicy)===null||c===void 0?void 0:c.expiriesOn,immutabilityPolicyMode:(p=i.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async getBlockList(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("BlockBlobClient-getBlockList",i);try{const c=await this.blockBlobContext.getBlockList(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)));if(!c.committedBlocks){c.committedBlocks=[]}if(!c.uncommittedBlocks){c.uncommittedBlocks=[]}return c}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async uploadData(r,i={}){const{span:a,updatedOptions:p}=Ha("BlockBlobClient-uploadData",i);try{if(c.isNode){let i;if(r instanceof Buffer){i=r}else if(r instanceof ArrayBuffer){i=Buffer.from(r)}else{r=r;i=Buffer.from(r.buffer,r.byteOffset,r.byteLength)}return this.uploadSeekableInternal(((r,a)=>i.slice(r,r+a)),i.byteLength,p)}else{const i=new Blob([r]);return this.uploadSeekableInternal(((r,a)=>i.slice(r,r+a)),i.size,p)}}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadBrowserData(r,i={}){const{span:a,updatedOptions:c}=Ha("BlockBlobClient-uploadBrowserData",i);try{const i=new Blob([r]);return await this.uploadSeekableInternal(((r,a)=>i.slice(r,r+a)),i.size,c)}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadSeekableInternal(r,i,a={}){if(!a.blockSize){a.blockSize=0}if(a.blockSize<0||a.blockSize>ba){throw new RangeError(`blockSize option must be >= 0 and <= ${ba}`)}if(a.maxSingleShotSize!==0&&!a.maxSingleShotSize){a.maxSingleShotSize=ma}if(a.maxSingleShotSize<0||a.maxSingleShotSize>ma){throw new RangeError(`maxSingleShotSize option must be >= 0 and <= ${ma}`)}if(a.blockSize===0){if(i>ba*fa){throw new RangeError(`${i} is too larger to upload to a block blob.`)}if(i>a.maxSingleShotSize){a.blockSize=Math.ceil(i/fa);if(a.blockSizefa){throw new RangeError(`The buffer's size is too big or the BlockSize is too small;`+`the number of blocks must be <= ${fa}`)}const l=[];const u=c.generateUuid();let A=0;const b=new Batch(a.concurrency);for(let c=0;c{const b=generateBlockID(u,c);const h=a.blockSize*c;const g=c===p-1?i:h+a.blockSize;const M=g-h;l.push(b);await this.stageBlock(b,r(h,M),M,{abortSignal:a.abortSignal,conditions:a.conditions,encryptionScope:a.encryptionScope,tracingOptions:d.tracingOptions});A+=M;if(a.onProgress){a.onProgress({loadedBytes:A})}}))}await b.do();return this.commitBlockList(l,d)}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadFile(r,i={}){const{span:a,updatedOptions:c}=Ha("BlockBlobClient-uploadFile",i);try{const a=(await ic(r)).size;return await this.uploadSeekableInternal(((i,a)=>()=>sc(r,{autoClose:true,end:a?i+a-1:Infinity,start:i})),a,Object.assign(Object.assign({},i),{tracingOptions:Object.assign(Object.assign({},i.tracingOptions),convertTracingToRequestOptionsBase(c))}))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async uploadStream(r,i=ha,a=5,p={}){if(!p.blobHTTPHeaders){p.blobHTTPHeaders={}}if(!p.conditions){p.conditions={}}const{span:d,updatedOptions:u}=Ha("BlockBlobClient-uploadStream",p);try{let l=0;const d=c.generateUuid();let A=0;const b=[];const h=new BufferScheduler(r,i,a,(async(r,i)=>{const a=generateBlockID(d,l);b.push(a);l++;await this.stageBlock(a,r,i,{conditions:p.conditions,encryptionScope:p.encryptionScope,tracingOptions:u.tracingOptions});A+=i;if(p.onProgress){p.onProgress({loadedBytes:A})}}),Math.ceil(a/4*3));await h.do();return await this.commitBlockList(b,Object.assign(Object.assign({},p),{tracingOptions:Object.assign(Object.assign({},p.tracingOptions),convertTracingToRequestOptionsBase(u))}))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}}class PageBlobClient extends BlobClient{constructor(r,i,a,p){let l;let d;p=p||{};if(isPipelineLike(i)){d=r;l=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){d=r;p=a;l=newPipeline(i,p)}else if(!i&&typeof i!=="string"){d=r;l=newPipeline(new AnonymousCredential,p)}else if(i&&typeof i==="string"&&a&&typeof a==="string"){const u=i;const A=a;const b=extractConnectionStringParts(r);if(b.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(b.accountName,b.accountKey);d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A));if(!p.proxyOptions){p.proxyOptions=c.getDefaultProxySettings(b.proxyUri)}l=newPipeline(r,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(b.kind==="SASConnString"){d=appendToURLPath(appendToURLPath(b.url,encodeURIComponent(u)),encodeURIComponent(A))+"?"+b.accountSas;l=newPipeline(new AnonymousCredential,p)}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(d,l);this.pageBlobContext=new PageBlob(this.storageClientContext)}withSnapshot(r){return new PageBlobClient(setURLParameter(this.url,ya.Parameters.SNAPSHOT,r.length===0?undefined:r),this.pipeline)}async create(r,i={}){var a,c,p;i.conditions=i.conditions||{};const{span:d,updatedOptions:u}=Ha("PageBlobClient-create",i);try{ensureCpkIfSpecified(i.customerProvidedKey,this.isHttps);return await this.pageBlobContext.create(0,r,Object.assign({abortSignal:i.abortSignal,blobHttpHeaders:i.blobHTTPHeaders,blobSequenceNumber:i.blobSequenceNumber,leaseAccessConditions:i.conditions,metadata:i.metadata,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),cpkInfo:i.customerProvidedKey,encryptionScope:i.encryptionScope,immutabilityPolicyExpiry:(c=i.immutabilityPolicy)===null||c===void 0?void 0:c.expiriesOn,immutabilityPolicyMode:(p=i.immutabilityPolicy)===null||p===void 0?void 0:p.policyMode,legalHold:i.legalHold,tier:toAccessTier(i.tier),blobTagsString:toBlobTagsString(i.tags)},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async createIfNotExists(r,i={}){var a,c;const{span:p,updatedOptions:d}=Ha("PageBlobClient-createIfNotExists",i);try{const a={ifNoneMatch:qa};const c=await this.create(r,Object.assign(Object.assign({},i),{conditions:a,tracingOptions:d.tracingOptions}));return Object.assign(Object.assign({succeeded:true},c),{_response:c._response})}catch(r){if(((a=r.details)===null||a===void 0?void 0:a.errorCode)==="BlobAlreadyExists"){p.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when creating a blob only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(c=r.response)===null||c===void 0?void 0:c.parsedHeaders),{_response:r.response})}p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async uploadPages(r,i,a,c={}){var p;c.conditions=c.conditions||{};const{span:d,updatedOptions:u}=Ha("PageBlobClient-uploadPages",c);try{ensureCpkIfSpecified(c.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPages(a,r,Object.assign({abortSignal:c.abortSignal,leaseAccessConditions:c.conditions,modifiedAccessConditions:Object.assign(Object.assign({},c.conditions),{ifTags:(p=c.conditions)===null||p===void 0?void 0:p.tagConditions}),requestOptions:{onUploadProgress:c.onProgress},range:rangeToString({offset:i,count:a}),sequenceNumberAccessConditions:c.conditions,transactionalContentMD5:c.transactionalContentMD5,transactionalContentCrc64:c.transactionalContentCrc64,cpkInfo:c.customerProvidedKey,encryptionScope:c.encryptionScope},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async uploadPagesFromURL(r,i,a,c,p={}){var d;p.conditions=p.conditions||{};p.sourceConditions=p.sourceConditions||{};const{span:u,updatedOptions:A}=Ha("PageBlobClient-uploadPagesFromURL",p);try{ensureCpkIfSpecified(p.customerProvidedKey,this.isHttps);return await this.pageBlobContext.uploadPagesFromURL(r,rangeToString({offset:i,count:c}),0,rangeToString({offset:a,count:c}),Object.assign({abortSignal:p.abortSignal,sourceContentMD5:p.sourceContentMD5,sourceContentCrc64:p.sourceContentCrc64,leaseAccessConditions:p.conditions,sequenceNumberAccessConditions:p.conditions,modifiedAccessConditions:Object.assign(Object.assign({},p.conditions),{ifTags:(d=p.conditions)===null||d===void 0?void 0:d.tagConditions}),sourceModifiedAccessConditions:{sourceIfMatch:p.sourceConditions.ifMatch,sourceIfModifiedSince:p.sourceConditions.ifModifiedSince,sourceIfNoneMatch:p.sourceConditions.ifNoneMatch,sourceIfUnmodifiedSince:p.sourceConditions.ifUnmodifiedSince},cpkInfo:p.customerProvidedKey,encryptionScope:p.encryptionScope,copySourceAuthorization:httpAuthorizationToString(p.sourceAuthorization)},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async clearPages(r=0,i,a={}){var c;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Ha("PageBlobClient-clearPages",a);try{return await this.pageBlobContext.clearPages(0,Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions}),range:rangeToString({offset:r,count:i}),sequenceNumberAccessConditions:a.conditions,cpkInfo:a.customerProvidedKey,encryptionScope:a.encryptionScope},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async getPageRanges(r=0,i,a={}){var c;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Ha("PageBlobClient-getPageRanges",a);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:a.abortSignal,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions}),range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(d))).then(rangeResponseFromModel)}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async listPageRangesSegment(r=0,i,a,c={}){var p;const{span:d,updatedOptions:u}=Ha("PageBlobClient-getPageRangesSegment",c);try{return await this.pageBlobContext.getPageRanges(Object.assign({abortSignal:c.abortSignal,leaseAccessConditions:c.conditions,modifiedAccessConditions:Object.assign(Object.assign({},c.conditions),{ifTags:(p=c.conditions)===null||p===void 0?void 0:p.tagConditions}),range:rangeToString({offset:r,count:i}),marker:a,maxPageSize:c.maxPageSize},convertTracingToRequestOptionsBase(u)))}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}listPageRangeItemSegments(r=0,i,a,c={}){return p.__asyncGenerator(this,arguments,(function*listPageRangeItemSegments_1(){let l;if(!!a||a===undefined){do{l=yield p.__await(this.listPageRangesSegment(r,i,a,c));a=l.continuationToken;yield yield p.__await(yield p.__await(l))}while(a)}}))}listPageRangeItems(r=0,i,a={}){return p.__asyncGenerator(this,arguments,(function*listPageRangeItems_1(){var c,l;let d;try{for(var u=p.__asyncValues(this.listPageRangeItemSegments(r,i,d,a)),A;A=yield p.__await(u.next()),!A.done;){const r=A.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){c={error:r}}finally{try{if(A&&!A.done&&(l=u.return))yield p.__await(l.call(u))}finally{if(c)throw c.error}}}))}listPageRanges(r=0,i,a={}){a.conditions=a.conditions||{};const c=this.listPageRangeItems(r,i,a);return{next(){return c.next()},[Symbol.asyncIterator](){return this},byPage:(c={})=>this.listPageRangeItemSegments(r,i,c.continuationToken,Object.assign({maxPageSize:c.maxPageSize},a))}}async getPageRangesDiff(r,i,a,c={}){var p;c.conditions=c.conditions||{};const{span:d,updatedOptions:u}=Ha("PageBlobClient-getPageRangesDiff",c);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:c.abortSignal,leaseAccessConditions:c.conditions,modifiedAccessConditions:Object.assign(Object.assign({},c.conditions),{ifTags:(p=c.conditions)===null||p===void 0?void 0:p.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(u))).then(rangeResponseFromModel)}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async listPageRangesDiffSegment(r,i,a,c,p){var d;const{span:u,updatedOptions:A}=Ha("PageBlobClient-getPageRangesDiffSegment",p);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:p===null||p===void 0?void 0:p.abortSignal,leaseAccessConditions:p===null||p===void 0?void 0:p.conditions,modifiedAccessConditions:Object.assign(Object.assign({},p===null||p===void 0?void 0:p.conditions),{ifTags:(d=p===null||p===void 0?void 0:p.conditions)===null||d===void 0?void 0:d.tagConditions}),prevsnapshot:a,range:rangeToString({offset:r,count:i}),marker:c,maxPageSize:p===null||p===void 0?void 0:p.maxPageSize},convertTracingToRequestOptionsBase(A)))}catch(r){u.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}listPageRangeDiffItemSegments(r,i,a,c,l){return p.__asyncGenerator(this,arguments,(function*listPageRangeDiffItemSegments_1(){let d;if(!!c||c===undefined){do{d=yield p.__await(this.listPageRangesDiffSegment(r,i,a,c,l));c=d.continuationToken;yield yield p.__await(yield p.__await(d))}while(c)}}))}listPageRangeDiffItems(r,i,a,c){return p.__asyncGenerator(this,arguments,(function*listPageRangeDiffItems_1(){var l,d;let u;try{for(var A=p.__asyncValues(this.listPageRangeDiffItemSegments(r,i,a,u,c)),b;b=yield p.__await(A.next()),!b.done;){const r=b.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(ExtractPageRangeInfoItems(r))))}}catch(r){l={error:r}}finally{try{if(b&&!b.done&&(d=A.return))yield p.__await(d.call(A))}finally{if(l)throw l.error}}}))}listPageRangesDiff(r,i,a,c={}){c.conditions=c.conditions||{};const p=this.listPageRangeDiffItems(r,i,a,Object.assign({},c));return{next(){return p.next()},[Symbol.asyncIterator](){return this},byPage:(p={})=>this.listPageRangeDiffItemSegments(r,i,a,p.continuationToken,Object.assign({maxPageSize:p.maxPageSize},c))}}async getPageRangesDiffForManagedDisks(r,i,a,c={}){var p;c.conditions=c.conditions||{};const{span:d,updatedOptions:u}=Ha("PageBlobClient-GetPageRangesDiffForManagedDisks",c);try{return await this.pageBlobContext.getPageRangesDiff(Object.assign({abortSignal:c.abortSignal,leaseAccessConditions:c.conditions,modifiedAccessConditions:Object.assign(Object.assign({},c.conditions),{ifTags:(p=c.conditions)===null||p===void 0?void 0:p.tagConditions}),prevSnapshotUrl:a,range:rangeToString({offset:r,count:i})},convertTracingToRequestOptionsBase(u))).then(rangeResponseFromModel)}catch(r){d.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{d.end()}}async resize(r,i={}){var a;i.conditions=i.conditions||{};const{span:c,updatedOptions:p}=Ha("PageBlobClient-resize",i);try{return await this.pageBlobContext.resize(r,Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions}),encryptionScope:i.encryptionScope},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async updateSequenceNumber(r,i,a={}){var c;a.conditions=a.conditions||{};const{span:p,updatedOptions:d}=Ha("PageBlobClient-updateSequenceNumber",a);try{return await this.pageBlobContext.updateSequenceNumber(r,Object.assign({abortSignal:a.abortSignal,blobSequenceNumber:i,leaseAccessConditions:a.conditions,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(c=a.conditions)===null||c===void 0?void 0:c.tagConditions})},convertTracingToRequestOptionsBase(d)))}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async startCopyIncremental(r,i={}){var a;const{span:c,updatedOptions:p}=Ha("PageBlobClient-startCopyIncremental",i);try{return await this.pageBlobContext.copyIncremental(r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(a=i.conditions)===null||a===void 0?void 0:a.tagConditions})},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}}async function getBodyAsText(r){let i=Buffer.alloc(wa);const a=await streamToBuffer2(r.readableStreamBody,i);i=i.slice(0,a);return i.toString()}function utf8ByteLength(r){return Buffer.byteLength(r)}const ac=": ";const cc=" ";const pc=-1;class BatchResponseParser{constructor(r,i){if(!r||!r.contentType){throw new RangeError("batchResponse is malformed or doesn't contain valid content-type.")}if(!i||i.size===0){throw new RangeError("Invalid state: subRequests is not provided or size is 0.")}this.batchResponse=r;this.subRequests=i;this.responseBatchBoundary=this.batchResponse.contentType.split("=")[1];this.perResponsePrefix=`--${this.responseBatchBoundary}${Sa}`;this.batchResponseEnding=`--${this.responseBatchBoundary}--`}async parseBatchResponse(){if(this.batchResponse._response.status!==Ea.HTTP_ACCEPTED){throw new Error(`Invalid state: batch request failed with status: '${this.batchResponse._response.status}'.`)}const r=await getBodyAsText(this.batchResponse);const i=r.split(this.batchResponseEnding)[0].split(this.perResponsePrefix).slice(1);const a=i.length;if(a!==this.subRequests.size&&a!==1){throw new Error("Invalid state: sub responses' count is not equal to sub requests' count.")}const p=new Array(a);let l=0;let d=0;for(let r=0;r=0&&M{if(this.keys[r]===undefined||this.keys[r]===lc.UNLOCKED){this.keys[r]=lc.LOCKED;i()}else{this.onUnlockEvent(r,(()=>{this.keys[r]=lc.LOCKED;i()}))}}))}static async unlock(r){return new Promise((i=>{if(this.keys[r]===lc.LOCKED){this.emitUnlockEvent(r)}delete this.keys[r];i()}))}static onUnlockEvent(r,i){if(this.listeners[r]===undefined){this.listeners[r]=[i]}else{this.listeners[r].push(i)}}static emitUnlockEvent(r){if(this.listeners[r]!==undefined&&this.listeners[r].length>0){const i=this.listeners[r].shift();setImmediate((()=>{i.call(this)}))}}}Mutex.keys={};Mutex.listeners={};class BlobBatch{constructor(){this.batch="batch";this.batchRequest=new InnerBatchRequest}getMultiPartContentType(){return this.batchRequest.getMultipartContentType()}getHttpRequestBody(){return this.batchRequest.getHttpRequestBody()}getSubRequests(){return this.batchRequest.getSubRequests()}async addSubRequestInternal(r,i){await Mutex.lock(this.batch);try{this.batchRequest.preAddSubRequest(r);await i();this.batchRequest.postAddSubRequest(r)}finally{await Mutex.unlock(this.batch)}}setBatchType(r){if(!this.batchType){this.batchType=r}if(this.batchType!==r){throw new RangeError(`BlobBatch only supports one operation type per batch and it already is being used for ${this.batchType} operations.`)}}async deleteBlob(r,i,a){let p;let d;if(typeof r==="string"&&(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i))){p=r;d=i}else if(r instanceof BlobClient){p=r.url;d=r.credential;a=i}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!a){a={}}const{span:u,updatedOptions:A}=Ha("BatchDeleteRequest-addSubRequest",a);try{this.setBatchType("delete");await this.addSubRequestInternal({url:p,credential:d},(async()=>{await new BlobClient(p,this.batchRequest.createPipeline(d)).delete(A)}))}catch(r){u.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{u.end()}}async setBlobAccessTier(r,i,a,p){let d;let u;let A;if(typeof r==="string"&&(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i))){d=r;u=i;A=a}else if(r instanceof BlobClient){d=r.url;u=r.credential;A=i;p=a}else{throw new RangeError("Invalid arguments. Either url and credential, or BlobClient need be provided.")}if(!p){p={}}const{span:b,updatedOptions:h}=Ha("BatchSetTierRequest-addSubRequest",p);try{this.setBatchType("setAccessTier");await this.addSubRequestInternal({url:d,credential:u},(async()=>{await new BlobClient(d,this.batchRequest.createPipeline(u)).setAccessTier(A,h)}))}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}}class InnerBatchRequest{constructor(){this.operationCount=0;this.body="";const r=c.generateUuid();this.boundary=`batch_${r}`;this.subRequestPrefix=`--${this.boundary}${Sa}${va.CONTENT_TYPE}: application/http${Sa}${va.CONTENT_TRANSFER_ENCODING}: binary`;this.multipartContentType=`multipart/mixed; boundary=${this.boundary}`;this.batchRequestEnding=`--${this.boundary}--`;this.subRequests=new Map}createPipeline(r){const i=r instanceof AnonymousCredential;const a=3+(i?0:1);const p=new Array(a);p[0]=c.deserializationPolicy();p[1]=new BatchHeaderFilterPolicyFactory;if(!i){p[2]=c.isTokenCredential(r)?attachCredential(c.bearerTokenAuthenticationPolicy(r,Oa),r):r}p[a-1]=new BatchRequestAssemblePolicyFactory(this);return new Pipeline(p,{})}appendSubRequestToBody(r){this.body+=[this.subRequestPrefix,`${va.CONTENT_ID}: ${this.operationCount}`,"",`${r.method.toString()} ${getURLPathAndQuery(r.url)} ${Na}${Sa}`].join(Sa);for(const i of r.headers.headersArray()){this.body+=`${i.name}: ${i.value}${Sa}`}this.body+=Sa}preAddSubRequest(r){if(this.operationCount>=Ba){throw new RangeError(`Cannot exceed ${Ba} sub requests in a single batch`)}const i=getURLPath(r.url);if(!i||i===""){throw new RangeError(`Invalid url for sub request: '${r.url}'`)}}postAddSubRequest(r){this.subRequests.set(this.operationCount,r);this.operationCount++}getHttpRequestBody(){return`${this.body}${this.batchRequestEnding}${Sa}`}getMultipartContentType(){return this.multipartContentType}getSubRequests(){return this.subRequests}}class BatchRequestAssemblePolicy extends c.BaseRequestPolicy{constructor(r,i,a){super(i,a);this.dummyResponse={request:new c.WebResource,status:200,headers:new c.HttpHeaders};this.batchRequest=r}async sendRequest(r){await this.batchRequest.appendSubRequestToBody(r);return this.dummyResponse}}class BatchRequestAssemblePolicyFactory{constructor(r){this.batchRequest=r}create(r,i){return new BatchRequestAssemblePolicy(this.batchRequest,r,i)}}class BatchHeaderFilterPolicy extends c.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){let i="";for(const a of r.headers.headersArray()){if(iEqual(a.name,va.X_MS_VERSION)){i=a.name}}if(i!==""){r.headers.remove(i)}return this._nextPolicy.sendRequest(r)}}class BatchHeaderFilterPolicyFactory{create(r,i){return new BatchHeaderFilterPolicy(r,i)}}class BlobBatchClient{constructor(r,i,a){let c;if(isPipelineLike(i)){c=i}else if(!i){c=newPipeline(new AnonymousCredential,a)}else{c=newPipeline(i,a)}const p=new StorageClientContext(r,c.toServiceClientOptions());const l=getURLPath(r);if(l&&l!=="/"){this.serviceOrContainerContext=new Container(p)}else{this.serviceOrContainerContext=new Service(p)}}createBatch(){return new BlobBatch}async deleteBlobs(r,i,a){const c=new BlobBatch;for(const p of r){if(typeof p==="string"){await c.deleteBlob(p,i,a)}else{await c.deleteBlob(p,i)}}return this.submitBatch(c)}async setBlobsAccessTier(r,i,a,c){const p=new BlobBatch;for(const l of r){if(typeof l==="string"){await p.setBlobAccessTier(l,i,a,c)}else{await p.setBlobAccessTier(l,i,a)}}return this.submitBatch(p)}async submitBatch(r,i={}){if(!r||r.getSubRequests().size===0){throw new RangeError("Batch request should contain one or more sub requests.")}const{span:a,updatedOptions:c}=Ha("BlobBatchClient-submitBatch",i);try{const a=r.getHttpRequestBody();const p=await this.serviceOrContainerContext.submitBatch(utf8ByteLength(a),r.getMultiPartContentType(),a,Object.assign(Object.assign({},i),convertTracingToRequestOptionsBase(c)));const l=new BatchResponseParser(p,r.getSubRequests());const d=await l.parseBatchResponse();const u={_response:p._response,contentType:p.contentType,errorCode:p.errorCode,requestId:p.requestId,clientRequestId:p.clientRequestId,version:p.version,subResponses:d.subResponses,subResponsesSucceededCount:d.subResponsesSucceededCount,subResponsesFailedCount:d.subResponsesFailedCount};return u}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}}class ContainerClient extends StorageClient{constructor(r,i,a){let p;let l;a=a||{};if(isPipelineLike(i)){l=r;p=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){l=r;p=newPipeline(i,a)}else if(!i&&typeof i!=="string"){l=r;p=newPipeline(new AnonymousCredential,a)}else if(i&&typeof i==="string"){const d=i;const u=extractConnectionStringParts(r);if(u.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(u.accountName,u.accountKey);l=appendToURLPath(u.url,encodeURIComponent(d));if(!a.proxyOptions){a.proxyOptions=c.getDefaultProxySettings(u.proxyUri)}p=newPipeline(r,a)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(u.kind==="SASConnString"){l=appendToURLPath(u.url,encodeURIComponent(d))+"?"+u.accountSas;p=newPipeline(new AnonymousCredential,a)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}else{throw new Error("Expecting non-empty strings for containerName parameter")}super(l,p);this._containerName=this.getContainerNameFromUrl();this.containerContext=new Container(this.storageClientContext)}get containerName(){return this._containerName}async create(r={}){const{span:i,updatedOptions:a}=Ha("ContainerClient-create",r);try{return await this.containerContext.create(Object.assign(Object.assign({},r),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async createIfNotExists(r={}){var i,a;const{span:c,updatedOptions:p}=Ha("ContainerClient-createIfNotExists",r);try{const r=await this.create(p);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerAlreadyExists"){c.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when creating a container only if it does not already exist."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async exists(r={}){const{span:i,updatedOptions:a}=Ha("ContainerClient-exists",r);try{await this.getProperties({abortSignal:r.abortSignal,tracingOptions:a.tracingOptions});return true}catch(r){if(r.statusCode===404){i.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when checking container existence"});return false}i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}getBlobClient(r){return new BlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getAppendBlobClient(r){return new AppendBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getBlockBlobClient(r){return new BlockBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}getPageBlobClient(r){return new PageBlobClient(appendToURLPath(this.url,EscapePath(r)),this.pipeline)}async getProperties(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:a}=Ha("ContainerClient-getProperties",r);try{return await this.containerContext.getProperties(Object.assign(Object.assign({abortSignal:r.abortSignal},r.conditions),convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async delete(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:a}=Ha("ContainerClient-delete",r);try{return await this.containerContext.delete(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions,modifiedAccessConditions:r.conditions},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async deleteIfExists(r={}){var i,a;const{span:c,updatedOptions:p}=Ha("ContainerClient-deleteIfExists",r);try{const r=await this.delete(p);return Object.assign(Object.assign({succeeded:true},r),{_response:r._response})}catch(r){if(((i=r.details)===null||i===void 0?void 0:i.errorCode)==="ContainerNotFound"){c.setStatus({code:l.SpanStatusCode.ERROR,message:"Expected exception when deleting a container only if it exists."});return Object.assign(Object.assign({succeeded:false},(a=r.response)===null||a===void 0?void 0:a.parsedHeaders),{_response:r.response})}c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async setMetadata(r,i={}){if(!i.conditions){i.conditions={}}if(i.conditions.ifUnmodifiedSince){throw new RangeError("the IfUnmodifiedSince must have their default values because they are ignored by the blob service")}const{span:a,updatedOptions:c}=Ha("ContainerClient-setMetadata",i);try{return await this.containerContext.setMetadata(Object.assign({abortSignal:i.abortSignal,leaseAccessConditions:i.conditions,metadata:r,modifiedAccessConditions:i.conditions},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getAccessPolicy(r={}){if(!r.conditions){r.conditions={}}const{span:i,updatedOptions:a}=Ha("ContainerClient-getAccessPolicy",r);try{const i=await this.containerContext.getAccessPolicy(Object.assign({abortSignal:r.abortSignal,leaseAccessConditions:r.conditions},convertTracingToRequestOptionsBase(a)));const c={_response:i._response,blobPublicAccess:i.blobPublicAccess,date:i.date,etag:i.etag,errorCode:i.errorCode,lastModified:i.lastModified,requestId:i.requestId,clientRequestId:i.clientRequestId,signedIdentifiers:[],version:i.version};for(const r of i){let i=undefined;if(r.accessPolicy){i={permissions:r.accessPolicy.permissions};if(r.accessPolicy.expiresOn){i.expiresOn=new Date(r.accessPolicy.expiresOn)}if(r.accessPolicy.startsOn){i.startsOn=new Date(r.accessPolicy.startsOn)}}c.signedIdentifiers.push({accessPolicy:i,id:r.id})}return c}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setAccessPolicy(r,i,a={}){a.conditions=a.conditions||{};const{span:c,updatedOptions:p}=Ha("ContainerClient-setAccessPolicy",a);try{const c=[];for(const r of i||[]){c.push({accessPolicy:{expiresOn:r.accessPolicy.expiresOn?truncatedISO8061Date(r.accessPolicy.expiresOn):"",permissions:r.accessPolicy.permissions,startsOn:r.accessPolicy.startsOn?truncatedISO8061Date(r.accessPolicy.startsOn):""},id:r.id})}return await this.containerContext.setAccessPolicy(Object.assign({abortSignal:a.abortSignal,access:r,containerAcl:c,leaseAccessConditions:a.conditions,modifiedAccessConditions:a.conditions},convertTracingToRequestOptionsBase(p)))}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}getBlobLeaseClient(r){return new BlobLeaseClient(this,r)}async uploadBlockBlob(r,i,a,c={}){const{span:p,updatedOptions:d}=Ha("ContainerClient-uploadBlockBlob",c);try{const c=this.getBlockBlobClient(r);const p=await c.upload(i,a,d);return{blockBlobClient:c,response:p}}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async deleteBlob(r,i={}){const{span:a,updatedOptions:c}=Ha("ContainerClient-deleteBlob",i);try{let a=this.getBlobClient(r);if(i.versionId){a=a.withVersion(i.versionId)}return await a.delete(c)}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async listBlobFlatSegment(r,i={}){const{span:a,updatedOptions:c}=Ha("ContainerClient-listBlobFlatSegment",i);try{const a=await this.containerContext.listBlobFlatSegment(Object.assign(Object.assign({marker:r},i),convertTracingToRequestOptionsBase(c)));const p=Object.assign(Object.assign({},a),{_response:Object.assign(Object.assign({},a._response),{parsedBody:ConvertInternalResponseOfListBlobFlat(a._response.parsedBody)}),segment:Object.assign(Object.assign({},a.segment),{blobItems:a.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i}))})});return p}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async listBlobHierarchySegment(r,i,a={}){var c;const{span:p,updatedOptions:d}=Ha("ContainerClient-listBlobHierarchySegment",a);try{const p=await this.containerContext.listBlobHierarchySegment(r,Object.assign(Object.assign({marker:i},a),convertTracingToRequestOptionsBase(d)));const l=Object.assign(Object.assign({},p),{_response:Object.assign(Object.assign({},p._response),{parsedBody:ConvertInternalResponseOfListBlobHierarchy(p._response.parsedBody)}),segment:Object.assign(Object.assign({},p.segment),{blobItems:p.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name),tags:toTags(r.blobTags),objectReplicationSourceProperties:parseObjectReplicationRecord(r.objectReplicationMetadata)});return i})),blobPrefixes:(c=p.segment.blobPrefixes)===null||c===void 0?void 0:c.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))})});return l}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}listSegments(r,i={}){return p.__asyncGenerator(this,arguments,(function*listSegments_1(){let a;if(!!r||r===undefined){do{a=yield p.__await(this.listBlobFlatSegment(r,i));r=a.continuationToken;yield yield p.__await(yield p.__await(a))}while(r)}}))}listItems(r={}){return p.__asyncGenerator(this,arguments,(function*listItems_1(){var i,a;let c;try{for(var l=p.__asyncValues(this.listSegments(c,r)),d;d=yield p.__await(l.next()),!d.done;){const r=d.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(r.segment.blobItems)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield p.__await(a.call(l))}finally{if(i)throw i.error}}}))}listBlobsFlat(r={}){const i=[];if(r.includeCopy){i.push("copy")}if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSnapshots){i.push("snapshots")}if(r.includeVersions){i.push("versions")}if(r.includeUncommitedBlobs){i.push("uncommittedblobs")}if(r.includeTags){i.push("tags")}if(r.includeDeletedWithVersions){i.push("deletedwithversions")}if(r.includeImmutabilityPolicy){i.push("immutabilitypolicy")}if(r.includeLegalHold){i.push("legalhold")}if(r.prefix===""){r.prefix=undefined}const a=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const c=this.listItems(a);return{next(){return c.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},a))}}listHierarchySegments(r,i,a={}){return p.__asyncGenerator(this,arguments,(function*listHierarchySegments_1(){let c;if(!!i||i===undefined){do{c=yield p.__await(this.listBlobHierarchySegment(r,i,a));i=c.continuationToken;yield yield p.__await(yield p.__await(c))}while(i)}}))}listItemsByHierarchy(r,i={}){return p.__asyncGenerator(this,arguments,(function*listItemsByHierarchy_1(){var a,c;let l;try{for(var d=p.__asyncValues(this.listHierarchySegments(r,l,i)),u;u=yield p.__await(d.next()),!u.done;){const r=u.value;const i=r.segment;if(i.blobPrefixes){for(const r of i.blobPrefixes){yield yield p.__await(Object.assign({kind:"prefix"},r))}}for(const r of i.blobItems){yield yield p.__await(Object.assign({kind:"blob"},r))}}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield p.__await(c.call(d))}finally{if(a)throw a.error}}}))}listBlobsByHierarchy(r,i={}){if(r===""){throw new RangeError("delimiter should contain one or more characters")}const a=[];if(i.includeCopy){a.push("copy")}if(i.includeDeleted){a.push("deleted")}if(i.includeMetadata){a.push("metadata")}if(i.includeSnapshots){a.push("snapshots")}if(i.includeVersions){a.push("versions")}if(i.includeUncommitedBlobs){a.push("uncommittedblobs")}if(i.includeTags){a.push("tags")}if(i.includeDeletedWithVersions){a.push("deletedwithversions")}if(i.includeImmutabilityPolicy){a.push("immutabilitypolicy")}if(i.includeLegalHold){a.push("legalhold")}if(i.prefix===""){i.prefix=undefined}const c=Object.assign(Object.assign({},i),a.length>0?{include:a}:{});const p=this.listItemsByHierarchy(r,c);return{async next(){return p.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.listHierarchySegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},c))}}async findBlobsByTagsSegment(r,i,a={}){const{span:c,updatedOptions:p}=Ha("ContainerClient-findBlobsByTagsSegment",a);try{const c=await this.containerContext.filterBlobs(Object.assign({abortSignal:a.abortSignal,where:r,marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(p)));const l=Object.assign(Object.assign({},c),{_response:c._response,blobs:c.blobs.map((r=>{var i;let a="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){a=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:a})}))});return l}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}findBlobsByTagsSegments(r,i,a={}){return p.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let c;if(!!i||i===undefined){do{c=yield p.__await(this.findBlobsByTagsSegment(r,i,a));c.blobs=c.blobs||[];i=c.continuationToken;yield yield p.__await(c)}while(i)}}))}findBlobsByTagsItems(r,i={}){return p.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var a,c;let l;try{for(var d=p.__asyncValues(this.findBlobsByTagsSegments(r,l,i)),u;u=yield p.__await(d.next()),!u.done;){const r=u.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(r.blobs)))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield p.__await(c.call(d))}finally{if(a)throw a.error}}}))}findBlobsByTags(r,i={}){const a=Object.assign({},i);const c=this.findBlobsByTagsItems(r,a);return{next(){return c.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}getContainerNameFromUrl(){let r;try{const i=c.URLBuilder.parse(this.url);if(i.getHost().split(".")[1]==="blob"){r=i.getPath().split("/")[1]}else if(isIpEndpointStyle(i)){r=i.getPath().split("/")[2]}else{r=i.getPath().split("/")[1]}r=decodeURIComponent(r);if(!r){throw new Error("Provided containerName is invalid.")}return r}catch(r){throw new Error("Unable to extract containerName with provided information.")}}generateSasUrl(r){return new Promise((i=>{if(!(this.credential instanceof StorageSharedKeyCredential)){throw new RangeError("Can only generate the SAS when the client is initialized with a shared key credential")}const a=generateBlobSASQueryParameters(Object.assign({containerName:this._containerName},r),this.credential).toString();i(appendToURLQuery(this.url,a))}))}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}}class AccountSASPermissions{constructor(){this.read=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.add=false;this.create=false;this.update=false;this.process=false;this.tag=false;this.filter=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new AccountSASPermissions;for(const a of r){switch(a){case"r":i.read=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"l":i.list=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"u":i.update=true;break;case"p":i.process=true;break;case"t":i.tag=true;break;case"f":i.filter=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission character: ${a}`)}}return i}static from(r){const i=new AccountSASPermissions;if(r.read){i.read=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.filter){i.filter=true}if(r.tag){i.tag=true}if(r.list){i.list=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.update){i.update=true}if(r.process){i.process=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.filter){r.push("f")}if(this.tag){r.push("t")}if(this.list){r.push("l")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.update){r.push("u")}if(this.process){r.push("p")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class AccountSASResourceTypes{constructor(){this.service=false;this.container=false;this.object=false}static parse(r){const i=new AccountSASResourceTypes;for(const a of r){switch(a){case"s":i.service=true;break;case"c":i.container=true;break;case"o":i.object=true;break;default:throw new RangeError(`Invalid resource type: ${a}`)}}return i}toString(){const r=[];if(this.service){r.push("s")}if(this.container){r.push("c")}if(this.object){r.push("o")}return r.join("")}}class AccountSASServices{constructor(){this.blob=false;this.file=false;this.queue=false;this.table=false}static parse(r){const i=new AccountSASServices;for(const a of r){switch(a){case"b":i.blob=true;break;case"f":i.file=true;break;case"q":i.queue=true;break;case"t":i.table=true;break;default:throw new RangeError(`Invalid service character: ${a}`)}}return i}toString(){const r=[];if(this.blob){r.push("b")}if(this.table){r.push("t")}if(this.queue){r.push("q")}if(this.file){r.push("f")}return r.join("")}}function generateAccountSASQueryParameters(r,i){const a=r.version?r.version:Aa;if(r.permissions&&r.permissions.setImmutabilityPolicy&&a<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&a<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&a<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when provided 'y' permission.")}if(r.permissions&&r.permissions.tag&&a<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 't' permission.")}if(r.permissions&&r.permissions.filter&&a<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when provided 'f' permission.")}if(r.encryptionScope&&a<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}const c=AccountSASPermissions.parse(r.permissions.toString());const p=AccountSASServices.parse(r.services).toString();const l=AccountSASResourceTypes.parse(r.resourceTypes).toString();let d;if(a>="2020-12-06"){d=[i.accountName,c,p,l,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",a,r.encryptionScope?r.encryptionScope:"",""].join("\n")}else{d=[i.accountName,c,p,l,r.startsOn?truncatedISO8061Date(r.startsOn,false):"",truncatedISO8061Date(r.expiresOn,false),r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",a,""].join("\n")}const u=i.computeHMACSHA256(d);return new SASQueryParameters(a,u,c.toString(),p,l,r.protocol,r.startsOn,r.expiresOn,r.ipRange,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,undefined,r.encryptionScope)}class BlobServiceClient extends StorageClient{constructor(r,i,a){let p;if(isPipelineLike(i)){p=i}else if(c.isNode&&i instanceof StorageSharedKeyCredential||i instanceof AnonymousCredential||c.isTokenCredential(i)){p=newPipeline(i,a)}else{p=newPipeline(new AnonymousCredential,a)}super(r,p);this.serviceContext=new Service(this.storageClientContext)}static fromConnectionString(r,i){i=i||{};const a=extractConnectionStringParts(r);if(a.kind==="AccountConnString"){if(c.isNode){const r=new StorageSharedKeyCredential(a.accountName,a.accountKey);if(!i.proxyOptions){i.proxyOptions=c.getDefaultProxySettings(a.proxyUri)}const p=newPipeline(r,i);return new BlobServiceClient(a.url,p)}else{throw new Error("Account connection string is only supported in Node.js environment")}}else if(a.kind==="SASConnString"){const r=newPipeline(new AnonymousCredential,i);return new BlobServiceClient(a.url+"?"+a.accountSas,r)}else{throw new Error("Connection string must be either an Account connection string or a SAS connection string")}}getContainerClient(r){return new ContainerClient(appendToURLPath(this.url,encodeURIComponent(r)),this.pipeline)}async createContainer(r,i={}){const{span:a,updatedOptions:c}=Ha("BlobServiceClient-createContainer",i);try{const i=this.getContainerClient(r);const a=await i.create(c);return{containerClient:i,containerCreateResponse:a}}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async deleteContainer(r,i={}){const{span:a,updatedOptions:c}=Ha("BlobServiceClient-deleteContainer",i);try{const i=this.getContainerClient(r);return await i.delete(c)}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async undeleteContainer(r,i,a={}){const{span:c,updatedOptions:p}=Ha("BlobServiceClient-undeleteContainer",a);try{const c=this.getContainerClient(a.destinationContainerName||r);const l=new Container(c["storageClientContext"]);const d=await l.restore(Object.assign({deletedContainerName:r,deletedContainerVersion:i},p));return{containerClient:c,containerUndeleteResponse:d}}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}async renameContainer(r,i,a={}){var c;const{span:p,updatedOptions:d}=Ha("BlobServiceClient-renameContainer",a);try{const p=this.getContainerClient(i);const l=new Container(p["storageClientContext"]);const u=await l.rename(r,Object.assign(Object.assign({},d),{sourceLeaseId:(c=a.sourceCondition)===null||c===void 0?void 0:c.leaseId}));return{containerClient:p,containerRenameResponse:u}}catch(r){p.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{p.end()}}async getProperties(r={}){const{span:i,updatedOptions:a}=Ha("BlobServiceClient-getProperties",r);try{return await this.serviceContext.getProperties(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async setProperties(r,i={}){const{span:a,updatedOptions:c}=Ha("BlobServiceClient-setProperties",i);try{return await this.serviceContext.setProperties(r,Object.assign({abortSignal:i.abortSignal},convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async getStatistics(r={}){const{span:i,updatedOptions:a}=Ha("BlobServiceClient-getStatistics",r);try{return await this.serviceContext.getStatistics(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async getAccountInfo(r={}){const{span:i,updatedOptions:a}=Ha("BlobServiceClient-getAccountInfo",r);try{return await this.serviceContext.getAccountInfo(Object.assign({abortSignal:r.abortSignal},convertTracingToRequestOptionsBase(a)))}catch(r){i.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{i.end()}}async listContainersSegment(r,i={}){const{span:a,updatedOptions:c}=Ha("BlobServiceClient-listContainersSegment",i);try{return await this.serviceContext.listContainersSegment(Object.assign(Object.assign(Object.assign({abortSignal:i.abortSignal,marker:r},i),{include:typeof i.include==="string"?[i.include]:i.include}),convertTracingToRequestOptionsBase(c)))}catch(r){a.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{a.end()}}async findBlobsByTagsSegment(r,i,a={}){const{span:c,updatedOptions:p}=Ha("BlobServiceClient-findBlobsByTagsSegment",a);try{const c=await this.serviceContext.filterBlobs(Object.assign({abortSignal:a.abortSignal,where:r,marker:i,maxPageSize:a.maxPageSize},convertTracingToRequestOptionsBase(p)));const l=Object.assign(Object.assign({},c),{_response:c._response,blobs:c.blobs.map((r=>{var i;let a="";if(((i=r.tags)===null||i===void 0?void 0:i.blobTagSet.length)===1){a=r.tags.blobTagSet[0].value}return Object.assign(Object.assign({},r),{tags:toTags(r.tags),tagValue:a})}))});return l}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}findBlobsByTagsSegments(r,i,a={}){return p.__asyncGenerator(this,arguments,(function*findBlobsByTagsSegments_1(){let c;if(!!i||i===undefined){do{c=yield p.__await(this.findBlobsByTagsSegment(r,i,a));c.blobs=c.blobs||[];i=c.continuationToken;yield yield p.__await(c)}while(i)}}))}findBlobsByTagsItems(r,i={}){return p.__asyncGenerator(this,arguments,(function*findBlobsByTagsItems_1(){var a,c;let l;try{for(var d=p.__asyncValues(this.findBlobsByTagsSegments(r,l,i)),u;u=yield p.__await(d.next()),!u.done;){const r=u.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(r.blobs)))}}catch(r){a={error:r}}finally{try{if(u&&!u.done&&(c=d.return))yield p.__await(c.call(d))}finally{if(a)throw a.error}}}))}findBlobsByTags(r,i={}){const a=Object.assign({},i);const c=this.findBlobsByTagsItems(r,a);return{next(){return c.next()},[Symbol.asyncIterator](){return this},byPage:(i={})=>this.findBlobsByTagsSegments(r,i.continuationToken,Object.assign({maxPageSize:i.maxPageSize},a))}}listSegments(r,i={}){return p.__asyncGenerator(this,arguments,(function*listSegments_1(){let a;if(!!r||r===undefined){do{a=yield p.__await(this.listContainersSegment(r,i));a.containerItems=a.containerItems||[];r=a.continuationToken;yield yield p.__await(yield p.__await(a))}while(r)}}))}listItems(r={}){return p.__asyncGenerator(this,arguments,(function*listItems_1(){var i,a;let c;try{for(var l=p.__asyncValues(this.listSegments(c,r)),d;d=yield p.__await(l.next()),!d.done;){const r=d.value;yield p.__await(yield*p.__asyncDelegator(p.__asyncValues(r.containerItems)))}}catch(r){i={error:r}}finally{try{if(d&&!d.done&&(a=l.return))yield p.__await(a.call(l))}finally{if(i)throw i.error}}}))}listContainers(r={}){if(r.prefix===""){r.prefix=undefined}const i=[];if(r.includeDeleted){i.push("deleted")}if(r.includeMetadata){i.push("metadata")}if(r.includeSystem){i.push("system")}const a=Object.assign(Object.assign({},r),i.length>0?{include:i}:{});const c=this.listItems(a);return{next(){return c.next()},[Symbol.asyncIterator](){return this},byPage:(r={})=>this.listSegments(r.continuationToken,Object.assign({maxPageSize:r.maxPageSize},a))}}async getUserDelegationKey(r,i,a={}){const{span:c,updatedOptions:p}=Ha("BlobServiceClient-getUserDelegationKey",a);try{const c=await this.serviceContext.getUserDelegationKey({startsOn:truncatedISO8061Date(r,false),expiresOn:truncatedISO8061Date(i,false)},Object.assign({abortSignal:a.abortSignal},convertTracingToRequestOptionsBase(p)));const l={signedObjectId:c.signedObjectId,signedTenantId:c.signedTenantId,signedStartsOn:new Date(c.signedStartsOn),signedExpiresOn:new Date(c.signedExpiresOn),signedService:c.signedService,signedVersion:c.signedVersion,value:c.value};const d=Object.assign({_response:c._response,requestId:c.requestId,clientRequestId:c.clientRequestId,version:c.version,date:c.date,errorCode:c.errorCode},l);return d}catch(r){c.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{c.end()}}getBlobBatchClient(){return new BlobBatchClient(this.url,this.pipeline)}generateAccountSasUrl(r,i=AccountSASPermissions.parse("r"),a="sco",c={}){if(!(this.credential instanceof StorageSharedKeyCredential)){throw RangeError("Can only generate the account SAS when the client is initialized with a shared key credential")}if(r===undefined){const i=new Date;r=new Date(i.getTime()+3600*1e3)}const p=generateAccountSASQueryParameters(Object.assign({permissions:i,expiresOn:r,resourceTypes:a,services:AccountSASServices.parse("b").toString()},c),this.credential).toString();return appendToURLQuery(this.url,p)}}i.KnownEncryptionAlgorithmType=void 0;(function(r){r["AES256"]="AES256"})(i.KnownEncryptionAlgorithmType||(i.KnownEncryptionAlgorithmType={}));Object.defineProperty(i,"BaseRequestPolicy",{enumerable:true,get:function(){return c.BaseRequestPolicy}});Object.defineProperty(i,"HttpHeaders",{enumerable:true,get:function(){return c.HttpHeaders}});Object.defineProperty(i,"RequestPolicyOptions",{enumerable:true,get:function(){return c.RequestPolicyOptions}});Object.defineProperty(i,"RestError",{enumerable:true,get:function(){return c.RestError}});Object.defineProperty(i,"WebResource",{enumerable:true,get:function(){return c.WebResource}});Object.defineProperty(i,"deserializationPolicy",{enumerable:true,get:function(){return c.deserializationPolicy}});i.AccountSASPermissions=AccountSASPermissions;i.AccountSASResourceTypes=AccountSASResourceTypes;i.AccountSASServices=AccountSASServices;i.AnonymousCredential=AnonymousCredential;i.AnonymousCredentialPolicy=AnonymousCredentialPolicy;i.AppendBlobClient=AppendBlobClient;i.BlobBatch=BlobBatch;i.BlobBatchClient=BlobBatchClient;i.BlobClient=BlobClient;i.BlobLeaseClient=BlobLeaseClient;i.BlobSASPermissions=BlobSASPermissions;i.BlobServiceClient=BlobServiceClient;i.BlockBlobClient=BlockBlobClient;i.ContainerClient=ContainerClient;i.ContainerSASPermissions=ContainerSASPermissions;i.Credential=Credential;i.CredentialPolicy=CredentialPolicy;i.PageBlobClient=PageBlobClient;i.Pipeline=Pipeline;i.SASQueryParameters=SASQueryParameters;i.StorageBrowserPolicy=StorageBrowserPolicy;i.StorageBrowserPolicyFactory=StorageBrowserPolicyFactory;i.StorageOAuthScopes=Oa;i.StorageRetryPolicy=StorageRetryPolicy;i.StorageRetryPolicyFactory=StorageRetryPolicyFactory;i.StorageSharedKeyCredential=StorageSharedKeyCredential;i.StorageSharedKeyCredentialPolicy=StorageSharedKeyCredentialPolicy;i.generateAccountSASQueryParameters=generateAccountSASQueryParameters;i.generateBlobSASQueryParameters=generateBlobSASQueryParameters;i.isPipelineLike=isPipelineLike;i.logger=da;i.newPipeline=newPipeline},3771:(r,i)=>{i=r.exports=SemVer;var a;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){a=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{a=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";var c=256;var p=Number.MAX_SAFE_INTEGER||9007199254740991;var l=16;var d=c-6;var u=i.re=[];var A=i.safeRe=[];var b=i.src=[];var h=i.tokens={};var g=0;function tok(r){h[r]=g++}var M="[a-zA-Z0-9-]";var z=[["\\s",1],["\\d",c],[M,d]];function makeSafeRe(r){for(var i=0;i)?=?)";tok("XRANGEIDENTIFIERLOOSE");b[h.XRANGEIDENTIFIERLOOSE]=b[h.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");b[h.XRANGEIDENTIFIER]=b[h.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");b[h.XRANGEPLAIN]="[v=\\s]*("+b[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIER]+")"+"(?:"+b[h.PRERELEASE]+")?"+b[h.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");b[h.XRANGEPLAINLOOSE]="[v=\\s]*("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+b[h.PRERELEASELOOSE]+")?"+b[h.BUILD]+"?"+")?)?";tok("XRANGE");b[h.XRANGE]="^"+b[h.GTLT]+"\\s*"+b[h.XRANGEPLAIN]+"$";tok("XRANGELOOSE");b[h.XRANGELOOSE]="^"+b[h.GTLT]+"\\s*"+b[h.XRANGEPLAINLOOSE]+"$";tok("COERCE");b[h.COERCE]="(^|[^\\d])"+"(\\d{1,"+l+"})"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");u[h.COERCERTL]=new RegExp(b[h.COERCE],"g");A[h.COERCERTL]=new RegExp(makeSafeRe(b[h.COERCE]),"g");tok("LONETILDE");b[h.LONETILDE]="(?:~>?)";tok("TILDETRIM");b[h.TILDETRIM]="(\\s*)"+b[h.LONETILDE]+"\\s+";u[h.TILDETRIM]=new RegExp(b[h.TILDETRIM],"g");A[h.TILDETRIM]=new RegExp(makeSafeRe(b[h.TILDETRIM]),"g");var O="$1~";tok("TILDE");b[h.TILDE]="^"+b[h.LONETILDE]+b[h.XRANGEPLAIN]+"$";tok("TILDELOOSE");b[h.TILDELOOSE]="^"+b[h.LONETILDE]+b[h.XRANGEPLAINLOOSE]+"$";tok("LONECARET");b[h.LONECARET]="(?:\\^)";tok("CARETTRIM");b[h.CARETTRIM]="(\\s*)"+b[h.LONECARET]+"\\s+";u[h.CARETTRIM]=new RegExp(b[h.CARETTRIM],"g");A[h.CARETTRIM]=new RegExp(makeSafeRe(b[h.CARETTRIM]),"g");var y="$1^";tok("CARET");b[h.CARET]="^"+b[h.LONECARET]+b[h.XRANGEPLAIN]+"$";tok("CARETLOOSE");b[h.CARETLOOSE]="^"+b[h.LONECARET]+b[h.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");b[h.COMPARATORLOOSE]="^"+b[h.GTLT]+"\\s*("+b[h.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");b[h.COMPARATOR]="^"+b[h.GTLT]+"\\s*("+b[h.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");b[h.COMPARATORTRIM]="(\\s*)"+b[h.GTLT]+"\\s*("+b[h.LOOSEPLAIN]+"|"+b[h.XRANGEPLAIN]+")";u[h.COMPARATORTRIM]=new RegExp(b[h.COMPARATORTRIM],"g");A[h.COMPARATORTRIM]=new RegExp(makeSafeRe(b[h.COMPARATORTRIM]),"g");var v="$1$2$3";tok("HYPHENRANGE");b[h.HYPHENRANGE]="^\\s*("+b[h.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+b[h.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");b[h.HYPHENRANGELOOSE]="^\\s*("+b[h.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+b[h.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");b[h.STAR]="(<|>)?=?\\s*\\*";for(var C=0;Cc){return null}var a=i.loose?A[h.LOOSE]:A[h.FULL];if(!a.test(r)){return null}try{return new SemVer(r,i)}catch(r){return null}}i.valid=valid;function valid(r,i){var a=parse(r,i);return a?a.version:null}i.clean=clean;function clean(r,i){var a=parse(r.trim().replace(/^[=v]+/,""),i);return a?a.version:null}i.SemVer=SemVer;function SemVer(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof SemVer){if(r.loose===i.loose){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError("Invalid Version: "+r)}if(r.length>c){throw new TypeError("version is longer than "+c+" characters")}if(!(this instanceof SemVer)){return new SemVer(r,i)}a("SemVer",r,i);this.options=i;this.loose=!!i.loose;var l=r.trim().match(i.loose?A[h.LOOSE]:A[h.FULL]);if(!l){throw new TypeError("Invalid Version: "+r)}this.raw=r;this.major=+l[1];this.minor=+l[2];this.patch=+l[3];if(this.major>p||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>p||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>p||this.patch<0){throw new TypeError("Invalid patch version")}if(!l[4]){this.prerelease=[]}else{this.prerelease=l[4].split(".").map((function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i=0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){this.prerelease.push(0)}}if(i){if(this.prerelease[0]===i){if(isNaN(this.prerelease[1])){this.prerelease=[i,0]}}else{this.prerelease=[i,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};i.inc=inc;function inc(r,i,a,c){if(typeof a==="string"){c=a;a=undefined}try{return new SemVer(r,a).inc(i,c).version}catch(r){return null}}i.diff=diff;function diff(r,i){if(eq(r,i)){return null}else{var a=parse(r);var c=parse(i);var p="";if(a.prerelease.length||c.prerelease.length){p="pre";var l="prerelease"}for(var d in a){if(d==="major"||d==="minor"||d==="patch"){if(a[d]!==c[d]){return p+d}}}return l}}i.compareIdentifiers=compareIdentifiers;var q=/^[0-9]+$/;function compareIdentifiers(r,i){var a=q.test(r);var c=q.test(i);if(a&&c){r=+r;i=+i}return r===i?0:a&&!c?-1:c&&!a?1:r0}i.lt=lt;function lt(r,i,a){return compare(r,i,a)<0}i.eq=eq;function eq(r,i,a){return compare(r,i,a)===0}i.neq=neq;function neq(r,i,a){return compare(r,i,a)!==0}i.gte=gte;function gte(r,i,a){return compare(r,i,a)>=0}i.lte=lte;function lte(r,i,a){return compare(r,i,a)<=0}i.cmp=cmp;function cmp(r,i,a,c){switch(i){case"===":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r===a;case"!==":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r!==a;case"":case"=":case"==":return eq(r,a,c);case"!=":return neq(r,a,c);case">":return gt(r,a,c);case">=":return gte(r,a,c);case"<":return lt(r,a,c);case"<=":return lte(r,a,c);default:throw new TypeError("Invalid operator: "+i)}}i.Comparator=Comparator;function Comparator(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,i)}r=r.trim().split(/\s+/).join(" ");a("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===R){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}var R={};Comparator.prototype.parse=function(r){var i=this.options.loose?A[h.COMPARATORLOOSE]:A[h.COMPARATOR];var a=r.match(i);if(!a){throw new TypeError("Invalid comparator: "+r)}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=R}else{this.semver=new SemVer(a[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){a("Comparator.test",r,this.options.loose);if(this.semver===R||r===R){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}var a;if(this.operator===""){if(this.value===""){return true}a=new Range(r.value,i);return satisfies(this.value,a,i)}else if(r.operator===""){if(r.value===""){return true}a=new Range(this.value,i);return satisfies(r.semver,a,i)}var c=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var p=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var l=this.semver.version===r.semver.version;var d=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var u=cmp(this.semver,"<",r.semver,i)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var A=cmp(this.semver,">",r.semver,i)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return c||p||l&&d||u||A};i.Range=Range;function Range(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof Comparator){return new Range(r.value,i)}if(!(this instanceof Range)){return new Range(r,i)}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var i=this.options.loose;var c=i?A[h.HYPHENRANGELOOSE]:A[h.HYPHENRANGE];r=r.replace(c,hyphenReplace);a("hyphen replace",r);r=r.replace(A[h.COMPARATORTRIM],v);a("comparator trim",r,A[h.COMPARATORTRIM]);r=r.replace(A[h.TILDETRIM],O);r=r.replace(A[h.CARETTRIM],y);r=r.split(/\s+/).join(" ");var p=i?A[h.COMPARATORLOOSE]:A[h.COMPARATOR];var l=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){l=l.filter((function(r){return!!r.match(p)}))}l=l.map((function(r){return new Comparator(r,this.options)}),this);return l};Range.prototype.intersects=function(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(a){return isSatisfiable(a,i)&&r.set.some((function(r){return isSatisfiable(r,i)&&a.every((function(a){return r.every((function(r){return a.intersects(r,i)}))}))}))}))};function isSatisfiable(r,i){var a=true;var c=r.slice();var p=c.pop();while(a&&c.length){a=c.every((function(r){return p.intersects(r,i)}));p=c.pop()}return a}i.toComparators=toComparators;function toComparators(r,i){return new Range(r,i).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,i){a("comp",r,i);r=replaceCarets(r,i);a("caret",r);r=replaceTildes(r,i);a("tildes",r);r=replaceXRanges(r,i);a("xrange",r);r=replaceStars(r,i);a("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,i){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,i)})).join(" ")}function replaceTilde(r,i){var c=i.loose?A[h.TILDELOOSE]:A[h.TILDE];return r.replace(c,(function(i,c,p,l,d){a("tilde",r,i,c,p,l,d);var u;if(isX(c)){u=""}else if(isX(p)){u=">="+c+".0.0 <"+(+c+1)+".0.0"}else if(isX(l)){u=">="+c+"."+p+".0 <"+c+"."+(+p+1)+".0"}else if(d){a("replaceTilde pr",d);u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+(+p+1)+".0"}else{u=">="+c+"."+p+"."+l+" <"+c+"."+(+p+1)+".0"}a("tilde return",u);return u}))}function replaceCarets(r,i){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,i)})).join(" ")}function replaceCaret(r,i){a("caret",r,i);var c=i.loose?A[h.CARETLOOSE]:A[h.CARET];return r.replace(c,(function(i,c,p,l,d){a("caret",r,i,c,p,l,d);var u;if(isX(c)){u=""}else if(isX(p)){u=">="+c+".0.0 <"+(+c+1)+".0.0"}else if(isX(l)){if(c==="0"){u=">="+c+"."+p+".0 <"+c+"."+(+p+1)+".0"}else{u=">="+c+"."+p+".0 <"+(+c+1)+".0.0"}}else if(d){a("replaceCaret pr",d);if(c==="0"){if(p==="0"){u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+p+"."+(+l+1)}else{u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+(+p+1)+".0"}}else{u=">="+c+"."+p+"."+l+"-"+d+" <"+(+c+1)+".0.0"}}else{a("no pr");if(c==="0"){if(p==="0"){u=">="+c+"."+p+"."+l+" <"+c+"."+p+"."+(+l+1)}else{u=">="+c+"."+p+"."+l+" <"+c+"."+(+p+1)+".0"}}else{u=">="+c+"."+p+"."+l+" <"+(+c+1)+".0.0"}}a("caret return",u);return u}))}function replaceXRanges(r,i){a("replaceXRanges",r,i);return r.split(/\s+/).map((function(r){return replaceXRange(r,i)})).join(" ")}function replaceXRange(r,i){r=r.trim();var c=i.loose?A[h.XRANGELOOSE]:A[h.XRANGE];return r.replace(c,(function(c,p,l,d,u,A){a("xRange",r,c,p,l,d,u,A);var b=isX(l);var h=b||isX(d);var g=h||isX(u);var M=g;if(p==="="&&M){p=""}A=i.includePrerelease?"-0":"";if(b){if(p===">"||p==="<"){c="<0.0.0-0"}else{c="*"}}else if(p&&M){if(h){d=0}u=0;if(p===">"){p=">=";if(h){l=+l+1;d=0;u=0}else{d=+d+1;u=0}}else if(p==="<="){p="<";if(h){l=+l+1}else{d=+d+1}}c=p+l+"."+d+"."+u+A}else if(h){c=">="+l+".0.0"+A+" <"+(+l+1)+".0.0"+A}else if(g){c=">="+l+"."+d+".0"+A+" <"+l+"."+(+d+1)+".0"+A}a("xRange return",c);return c}))}function replaceStars(r,i){a("replaceStars",r,i);return r.trim().replace(A[h.STAR],"")}function hyphenReplace(r,i,a,c,p,l,d,u,A,b,h,g,M){if(isX(a)){i=""}else if(isX(c)){i=">="+a+".0.0"}else if(isX(p)){i=">="+a+"."+c+".0"}else{i=">="+i}if(isX(A)){u=""}else if(isX(b)){u="<"+(+A+1)+".0.0"}else if(isX(h)){u="<"+A+"."+(+b+1)+".0"}else if(g){u="<="+A+"."+b+"."+h+"-"+g}else{u="<="+u}return(i+" "+u).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var i=0;i0){var l=r[p].semver;if(l.major===i.major&&l.minor===i.minor&&l.patch===i.patch){return true}}}return false}return true}i.satisfies=satisfies;function satisfies(r,i,a){try{i=new Range(i,a)}catch(r){return false}return i.test(r)}i.maxSatisfying=maxSatisfying;function maxSatisfying(r,i,a){var c=null;var p=null;try{var l=new Range(i,a)}catch(r){return null}r.forEach((function(r){if(l.test(r)){if(!c||p.compare(r)===-1){c=r;p=new SemVer(c,a)}}}));return c}i.minSatisfying=minSatisfying;function minSatisfying(r,i,a){var c=null;var p=null;try{var l=new Range(i,a)}catch(r){return null}r.forEach((function(r){if(l.test(r)){if(!c||p.compare(r)===1){c=r;p=new SemVer(c,a)}}}));return c}i.minVersion=minVersion;function minVersion(r,i){r=new Range(r,i);var a=new SemVer("0.0.0");if(r.test(a)){return a}a=new SemVer("0.0.0-0");if(r.test(a)){return a}a=null;for(var c=0;c":if(i.prerelease.length===0){i.patch++}else{i.prerelease.push(0)}i.raw=i.format();case"":case">=":if(!a||gt(a,i)){a=i}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}}))}if(a&&r.test(a)){return a}return null}i.validRange=validRange;function validRange(r,i){try{return new Range(r,i).range||"*"}catch(r){return null}}i.ltr=ltr;function ltr(r,i,a){return outside(r,i,"<",a)}i.gtr=gtr;function gtr(r,i,a){return outside(r,i,">",a)}i.outside=outside;function outside(r,i,a,c){r=new SemVer(r,c);i=new Range(i,c);var p,l,d,u,A;switch(a){case">":p=gt;l=lte;d=lt;u=">";A=">=";break;case"<":p=lt;l=gte;d=gt;u="<";A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(r,i,c)){return false}for(var b=0;b=0.0.0")}g=g||r;M=M||r;if(p(r.semver,g.semver,c)){g=r}else if(d(r.semver,M.semver,c)){M=r}}));if(g.operator===u||g.operator===A){return false}if((!M.operator||M.operator===u)&&l(r,M.semver)){return false}else if(M.operator===A&&d(r,M.semver)){return false}}return true}i.prerelease=prerelease;function prerelease(r,i){var a=parse(r,i);return a&&a.prerelease.length?a.prerelease:null}i.intersects=intersects;function intersects(r,i,a){r=new Range(r,a);i=new Range(i,a);return r.intersects(i)}i.coerce=coerce;function coerce(r,i){if(r instanceof SemVer){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}i=i||{};var a=null;if(!i.rtl){a=r.match(A[h.COERCE])}else{var c;while((c=A[h.COERCERTL].exec(r))&&(!a||a.index+a[0].length!==r.length)){if(!a||c.index+c[0].length!==a.index+a[0].length){a=c}A[h.COERCERTL].lastIndex=c.index+c[1].length+c[2].length}A[h.COERCERTL].lastIndex=-1}if(a===null){return null}return parse(a[2]+"."+(a[3]||"0")+"."+(a[4]||"0"),i)}},94138:(r,i,a)=>{var c=a(61610);var p=a(8373);var l=p;l.v1=c;l.v4=p;r.exports=l},65694:r=>{var i=[];for(var a=0;a<256;++a){i[a]=(a+256).toString(16).substr(1)}function bytesToUuid(r,a){var c=a||0;var p=i;return[p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]]].join("")}r.exports=bytesToUuid},34069:(r,i,a)=>{var c=a(6113);r.exports=function nodeRNG(){return c.randomBytes(16)}},61610:(r,i,a)=>{var c=a(34069);var p=a(65694);var l;var d;var u=0;var A=0;function v1(r,i,a){var b=i&&a||0;var h=i||[];r=r||{};var g=r.node||l;var M=r.clockseq!==undefined?r.clockseq:d;if(g==null||M==null){var z=c();if(g==null){g=l=[z[0]|1,z[1],z[2],z[3],z[4],z[5]]}if(M==null){M=d=(z[6]<<8|z[7])&16383}}var O=r.msecs!==undefined?r.msecs:(new Date).getTime();var y=r.nsecs!==undefined?r.nsecs:A+1;var v=O-u+(y-A)/1e4;if(v<0&&r.clockseq===undefined){M=M+1&16383}if((v<0||O>u)&&r.nsecs===undefined){y=0}if(y>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}u=O;A=y;d=M;O+=122192928e5;var C=((O&268435455)*1e4+y)%4294967296;h[b++]=C>>>24&255;h[b++]=C>>>16&255;h[b++]=C>>>8&255;h[b++]=C&255;var q=O/4294967296*1e4&268435455;h[b++]=q>>>8&255;h[b++]=q&255;h[b++]=q>>>24&15|16;h[b++]=q>>>16&255;h[b++]=M>>>8|128;h[b++]=M&255;for(var R=0;R<6;++R){h[b+R]=g[R]}return i?i:p(h)}r.exports=v1},8373:(r,i,a)=>{var c=a(34069);var p=a(65694);function v4(r,i,a){var l=i&&a||0;if(typeof r=="string"){i=r==="binary"?new Array(16):null;r=null}r=r||{};var d=r.random||(r.rng||c)();d[6]=d[6]&15|64;d[8]=d[8]&63|128;if(i){for(var u=0;u<16;++u){i[l+u]=d[u]}}return i||p(d)}r.exports=v4},87351:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.issue=i.issueCommand=void 0;const d=l(a(22037));const u=a(5278);function issueCommand(r,i,a){const c=new Command(r,i,a);process.stdout.write(c.toString()+d.EOL)}i.issueCommand=issueCommand;function issue(r,i=""){issueCommand(r,{},i)}i.issue=issue;const A="::";class Command{constructor(r,i,a){if(!r){r="missing.command"}this.command=r;this.properties=i;this.message=a}toString(){let r=A+this.command;if(this.properties&&Object.keys(this.properties).length>0){r+=" ";let i=true;for(const a in this.properties){if(this.properties.hasOwnProperty(a)){const c=this.properties[a];if(c){if(i){i=false}else{r+=","}r+=`${a}=${escapeProperty(c)}`}}}}r+=`${A}${escapeData(this.message)}`;return r}}function escapeData(r){return u.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(r){return u.toCommandValue(r).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},42186:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getIDToken=i.getState=i.saveState=i.group=i.endGroup=i.startGroup=i.info=i.notice=i.warning=i.error=i.debug=i.isDebug=i.setFailed=i.setCommandEcho=i.setOutput=i.getBooleanInput=i.getMultilineInput=i.getInput=i.addPath=i.setSecret=i.exportVariable=i.ExitCode=void 0;const u=a(87351);const A=a(717);const b=a(5278);const h=l(a(22037));const g=l(a(71017));const M=a(98041);var z;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(z=i.ExitCode||(i.ExitCode={}));function exportVariable(r,i){const a=b.toCommandValue(i);process.env[r]=a;const c=process.env["GITHUB_ENV"]||"";if(c){return A.issueFileCommand("ENV",A.prepareKeyValueMessage(r,i))}u.issueCommand("set-env",{name:r},a)}i.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}i.setSecret=setSecret;function addPath(r){const i=process.env["GITHUB_PATH"]||"";if(i){A.issueFileCommand("PATH",r)}else{u.issueCommand("add-path",{},r)}process.env["PATH"]=`${r}${g.delimiter}${process.env["PATH"]}`}i.addPath=addPath;function getInput(r,i){const a=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(i&&i.required&&!a){throw new Error(`Input required and not supplied: ${r}`)}if(i&&i.trimWhitespace===false){return a}return a.trim()}i.getInput=getInput;function getMultilineInput(r,i){const a=getInput(r,i).split("\n").filter((r=>r!==""));if(i&&i.trimWhitespace===false){return a}return a.map((r=>r.trim()))}i.getMultilineInput=getMultilineInput;function getBooleanInput(r,i){const a=["true","True","TRUE"];const c=["false","False","FALSE"];const p=getInput(r,i);if(a.includes(p))return true;if(c.includes(p))return false;throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${r}\n`+`Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i.getBooleanInput=getBooleanInput;function setOutput(r,i){const a=process.env["GITHUB_OUTPUT"]||"";if(a){return A.issueFileCommand("OUTPUT",A.prepareKeyValueMessage(r,i))}process.stdout.write(h.EOL);u.issueCommand("set-output",{name:r},b.toCommandValue(i))}i.setOutput=setOutput;function setCommandEcho(r){u.issue("echo",r?"on":"off")}i.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=z.Failure;error(r)}i.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}i.isDebug=isDebug;function debug(r){u.issueCommand("debug",{},r)}i.debug=debug;function error(r,i={}){u.issueCommand("error",b.toCommandProperties(i),r instanceof Error?r.toString():r)}i.error=error;function warning(r,i={}){u.issueCommand("warning",b.toCommandProperties(i),r instanceof Error?r.toString():r)}i.warning=warning;function notice(r,i={}){u.issueCommand("notice",b.toCommandProperties(i),r instanceof Error?r.toString():r)}i.notice=notice;function info(r){process.stdout.write(r+h.EOL)}i.info=info;function startGroup(r){u.issue("group",r)}i.startGroup=startGroup;function endGroup(){u.issue("endgroup")}i.endGroup=endGroup;function group(r,i){return d(this,void 0,void 0,(function*(){startGroup(r);let a;try{a=yield i()}finally{endGroup()}return a}))}i.group=group;function saveState(r,i){const a=process.env["GITHUB_STATE"]||"";if(a){return A.issueFileCommand("STATE",A.prepareKeyValueMessage(r,i))}u.issueCommand("save-state",{name:r},b.toCommandValue(i))}i.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}i.getState=getState;function getIDToken(r){return d(this,void 0,void 0,(function*(){return yield M.OidcClient.getIDToken(r)}))}i.getIDToken=getIDToken;var O=a(81327);Object.defineProperty(i,"summary",{enumerable:true,get:function(){return O.summary}});var y=a(81327);Object.defineProperty(i,"markdownSummary",{enumerable:true,get:function(){return y.markdownSummary}});var v=a(2981);Object.defineProperty(i,"toPosixPath",{enumerable:true,get:function(){return v.toPosixPath}});Object.defineProperty(i,"toWin32Path",{enumerable:true,get:function(){return v.toWin32Path}});Object.defineProperty(i,"toPlatformPath",{enumerable:true,get:function(){return v.toPlatformPath}})},717:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.prepareKeyValueMessage=i.issueFileCommand=void 0;const d=l(a(57147));const u=l(a(22037));const A=a(75840);const b=a(5278);function issueFileCommand(r,i){const a=process.env[`GITHUB_${r}`];if(!a){throw new Error(`Unable to find environment variable for file command ${r}`)}if(!d.existsSync(a)){throw new Error(`Missing file at path: ${a}`)}d.appendFileSync(a,`${b.toCommandValue(i)}${u.EOL}`,{encoding:"utf8"})}i.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(r,i){const a=`ghadelimiter_${A.v4()}`;const c=b.toCommandValue(i);if(r.includes(a)){throw new Error(`Unexpected input: name should not contain the delimiter "${a}"`)}if(c.includes(a)){throw new Error(`Unexpected input: value should not contain the delimiter "${a}"`)}return`${r}<<${a}${u.EOL}${c}${u.EOL}${a}`}i.prepareKeyValueMessage=prepareKeyValueMessage},98041:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.OidcClient=void 0;const p=a(96255);const l=a(35526);const d=a(42186);class OidcClient{static createHttpClient(r=true,i=10){const a={allowRetries:r,maxRetries:i};return new p.HttpClient("actions/oidc-client",[new l.BearerCredentialHandler(OidcClient.getRequestToken())],a)}static getRequestToken(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_TOKEN"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable")}return r}static getIDTokenUrl(){const r=process.env["ACTIONS_ID_TOKEN_REQUEST_URL"];if(!r){throw new Error("Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable")}return r}static getCall(r){var i;return c(this,void 0,void 0,(function*(){const a=OidcClient.createHttpClient();const c=yield a.getJson(r).catch((r=>{throw new Error(`Failed to get ID Token. \n \n Error Code : ${r.statusCode}\n \n Error Message: ${r.message}`)}));const p=(i=c.result)===null||i===void 0?void 0:i.value;if(!p){throw new Error("Response json body do not have ID Token field")}return p}))}static getIDToken(r){return c(this,void 0,void 0,(function*(){try{let i=OidcClient.getIDTokenUrl();if(r){const a=encodeURIComponent(r);i=`${i}&audience=${a}`}d.debug(`ID token url is ${i}`);const a=yield OidcClient.getCall(i);d.setSecret(a);return a}catch(r){throw new Error(`Error message: ${r.message}`)}}))}}i.OidcClient=OidcClient},2981:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.toPlatformPath=i.toWin32Path=i.toPosixPath=void 0;const d=l(a(71017));function toPosixPath(r){return r.replace(/[\\]/g,"/")}i.toPosixPath=toPosixPath;function toWin32Path(r){return r.replace(/[/]/g,"\\")}i.toWin32Path=toWin32Path;function toPlatformPath(r){return r.replace(/[/\\]/g,d.sep)}i.toPlatformPath=toPlatformPath},81327:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.summary=i.markdownSummary=i.SUMMARY_DOCS_URL=i.SUMMARY_ENV_VAR=void 0;const p=a(22037);const l=a(57147);const{access:d,appendFile:u,writeFile:A}=l.promises;i.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY";i.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";class Summary{constructor(){this._buffer=""}filePath(){return c(this,void 0,void 0,(function*(){if(this._filePath){return this._filePath}const r=process.env[i.SUMMARY_ENV_VAR];if(!r){throw new Error(`Unable to find environment variable for $${i.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`)}try{yield d(r,l.constants.R_OK|l.constants.W_OK)}catch(i){throw new Error(`Unable to access summary file: '${r}'. Check if the file has correct read/write permissions.`)}this._filePath=r;return this._filePath}))}wrap(r,i,a={}){const c=Object.entries(a).map((([r,i])=>` ${r}="${i}"`)).join("");if(!i){return`<${r}${c}>`}return`<${r}${c}>${i}`}write(r){return c(this,void 0,void 0,(function*(){const i=!!(r===null||r===void 0?void 0:r.overwrite);const a=yield this.filePath();const c=i?A:u;yield c(a,this._buffer,{encoding:"utf8"});return this.emptyBuffer()}))}clear(){return c(this,void 0,void 0,(function*(){return this.emptyBuffer().write({overwrite:true})}))}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){this._buffer="";return this}addRaw(r,i=false){this._buffer+=r;return i?this.addEOL():this}addEOL(){return this.addRaw(p.EOL)}addCodeBlock(r,i){const a=Object.assign({},i&&{lang:i});const c=this.wrap("pre",this.wrap("code",r),a);return this.addRaw(c).addEOL()}addList(r,i=false){const a=i?"ol":"ul";const c=r.map((r=>this.wrap("li",r))).join("");const p=this.wrap(a,c);return this.addRaw(p).addEOL()}addTable(r){const i=r.map((r=>{const i=r.map((r=>{if(typeof r==="string"){return this.wrap("td",r)}const{header:i,data:a,colspan:c,rowspan:p}=r;const l=i?"th":"td";const d=Object.assign(Object.assign({},c&&{colspan:c}),p&&{rowspan:p});return this.wrap(l,a,d)})).join("");return this.wrap("tr",i)})).join("");const a=this.wrap("table",i);return this.addRaw(a).addEOL()}addDetails(r,i){const a=this.wrap("details",this.wrap("summary",r)+i);return this.addRaw(a).addEOL()}addImage(r,i,a){const{width:c,height:p}=a||{};const l=Object.assign(Object.assign({},c&&{width:c}),p&&{height:p});const d=this.wrap("img",null,Object.assign({src:r,alt:i},l));return this.addRaw(d).addEOL()}addHeading(r,i){const a=`h${i}`;const c=["h1","h2","h3","h4","h5","h6"].includes(a)?a:"h1";const p=this.wrap(c,r);return this.addRaw(p).addEOL()}addSeparator(){const r=this.wrap("hr",null);return this.addRaw(r).addEOL()}addBreak(){const r=this.wrap("br",null);return this.addRaw(r).addEOL()}addQuote(r,i){const a=Object.assign({},i&&{cite:i});const c=this.wrap("blockquote",r,a);return this.addRaw(c).addEOL()}addLink(r,i){const a=this.wrap("a",r,{href:i});return this.addRaw(a).addEOL()}}const b=new Summary;i.markdownSummary=b;i.summary=b},5278:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.toCommandProperties=i.toCommandValue=void 0;function toCommandValue(r){if(r===null||r===undefined){return""}else if(typeof r==="string"||r instanceof String){return r}return JSON.stringify(r)}i.toCommandValue=toCommandValue;function toCommandProperties(r){if(!Object.keys(r).length){return{}}return{title:r.title,file:r.file,line:r.startLine,endLine:r.endLine,col:r.startColumn,endColumn:r.endColumn}}i.toCommandProperties=toCommandProperties},71514:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getExecOutput=i.exec=void 0;const u=a(71576);const A=l(a(88159));function exec(r,i,a){return d(this,void 0,void 0,(function*(){const c=A.argStringToArray(r);if(c.length===0){throw new Error(`Parameter 'commandLine' cannot be null or empty.`)}const p=c[0];i=c.slice(1).concat(i||[]);const l=new A.ToolRunner(p,i,a);return l.exec()}))}i.exec=exec;function getExecOutput(r,i,a){var c,p;return d(this,void 0,void 0,(function*(){let l="";let d="";const A=new u.StringDecoder("utf8");const b=new u.StringDecoder("utf8");const h=(c=a===null||a===void 0?void 0:a.listeners)===null||c===void 0?void 0:c.stdout;const g=(p=a===null||a===void 0?void 0:a.listeners)===null||p===void 0?void 0:p.stderr;const stdErrListener=r=>{d+=b.write(r);if(g){g(r)}};const stdOutListener=r=>{l+=A.write(r);if(h){h(r)}};const M=Object.assign(Object.assign({},a===null||a===void 0?void 0:a.listeners),{stdout:stdOutListener,stderr:stdErrListener});const z=yield exec(r,i,Object.assign(Object.assign({},a),{listeners:M}));l+=A.end();d+=b.end();return{exitCode:z,stdout:l,stderr:d}}))}i.getExecOutput=getExecOutput},88159:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.argStringToArray=i.ToolRunner=void 0;const u=l(a(22037));const A=l(a(82361));const b=l(a(32081));const h=l(a(71017));const g=l(a(47351));const M=l(a(81962));const z=a(39512);const O=process.platform==="win32";class ToolRunner extends A.EventEmitter{constructor(r,i,a){super();if(!r){throw new Error("Parameter 'toolPath' cannot be null or empty.")}this.toolPath=r;this.args=i||[];this.options=a||{}}_debug(r){if(this.options.listeners&&this.options.listeners.debug){this.options.listeners.debug(r)}}_getCommandString(r,i){const a=this._getSpawnFileName();const c=this._getSpawnArgs(r);let p=i?"":"[command]";if(O){if(this._isCmdFile()){p+=a;for(const r of c){p+=` ${r}`}}else if(r.windowsVerbatimArguments){p+=`"${a}"`;for(const r of c){p+=` ${r}`}}else{p+=this._windowsQuoteCmdArg(a);for(const r of c){p+=` ${this._windowsQuoteCmdArg(r)}`}}}else{p+=a;for(const r of c){p+=` ${r}`}}return p}_processLineBuffer(r,i,a){try{let c=i+r.toString();let p=c.indexOf(u.EOL);while(p>-1){const r=c.substring(0,p);a(r);c=c.substring(p+u.EOL.length);p=c.indexOf(u.EOL)}return c}catch(r){this._debug(`error processing line. Failed with error ${r}`);return""}}_getSpawnFileName(){if(O){if(this._isCmdFile()){return process.env["COMSPEC"]||"cmd.exe"}}return this.toolPath}_getSpawnArgs(r){if(O){if(this._isCmdFile()){let i=`/D /S /C "${this._windowsQuoteCmdArg(this.toolPath)}`;for(const a of this.args){i+=" ";i+=r.windowsVerbatimArguments?a:this._windowsQuoteCmdArg(a)}i+='"';return[i]}}return this.args}_endsWith(r,i){return r.endsWith(i)}_isCmdFile(){const r=this.toolPath.toUpperCase();return this._endsWith(r,".CMD")||this._endsWith(r,".BAT")}_windowsQuoteCmdArg(r){if(!this._isCmdFile()){return this._uvQuoteCmdArg(r)}if(!r){return'""'}const i=[" ","\t","&","(",")","[","]","{","}","^","=",";","!","'","+",",","`","~","|","<",">",'"'];let a=false;for(const c of r){if(i.some((r=>r===c))){a=true;break}}if(!a){return r}let c='"';let p=true;for(let i=r.length;i>0;i--){c+=r[i-1];if(p&&r[i-1]==="\\"){c+="\\"}else if(r[i-1]==='"'){p=true;c+='"'}else{p=false}}c+='"';return c.split("").reverse().join("")}_uvQuoteCmdArg(r){if(!r){return'""'}if(!r.includes(" ")&&!r.includes("\t")&&!r.includes('"')){return r}if(!r.includes('"')&&!r.includes("\\")){return`"${r}"`}let i='"';let a=true;for(let c=r.length;c>0;c--){i+=r[c-1];if(a&&r[c-1]==="\\"){i+="\\"}else if(r[c-1]==='"'){a=true;i+="\\"}else{a=false}}i+='"';return i.split("").reverse().join("")}_cloneExecOptions(r){r=r||{};const i={cwd:r.cwd||process.cwd(),env:r.env||process.env,silent:r.silent||false,windowsVerbatimArguments:r.windowsVerbatimArguments||false,failOnStdErr:r.failOnStdErr||false,ignoreReturnCode:r.ignoreReturnCode||false,delay:r.delay||1e4};i.outStream=r.outStream||process.stdout;i.errStream=r.errStream||process.stderr;return i}_getSpawnOptions(r,i){r=r||{};const a={};a.cwd=r.cwd;a.env=r.env;a["windowsVerbatimArguments"]=r.windowsVerbatimArguments||this._isCmdFile();if(r.windowsVerbatimArguments){a.argv0=`"${i}"`}return a}exec(){return d(this,void 0,void 0,(function*(){if(!M.isRooted(this.toolPath)&&(this.toolPath.includes("/")||O&&this.toolPath.includes("\\"))){this.toolPath=h.resolve(process.cwd(),this.options.cwd||process.cwd(),this.toolPath)}this.toolPath=yield g.which(this.toolPath,true);return new Promise(((r,i)=>d(this,void 0,void 0,(function*(){this._debug(`exec tool: ${this.toolPath}`);this._debug("arguments:");for(const r of this.args){this._debug(` ${r}`)}const a=this._cloneExecOptions(this.options);if(!a.silent&&a.outStream){a.outStream.write(this._getCommandString(a)+u.EOL)}const c=new ExecState(a,this.toolPath);c.on("debug",(r=>{this._debug(r)}));if(this.options.cwd&&!(yield M.exists(this.options.cwd))){return i(new Error(`The cwd: ${this.options.cwd} does not exist!`))}const p=this._getSpawnFileName();const l=b.spawn(p,this._getSpawnArgs(a),this._getSpawnOptions(this.options,p));let d="";if(l.stdout){l.stdout.on("data",(r=>{if(this.options.listeners&&this.options.listeners.stdout){this.options.listeners.stdout(r)}if(!a.silent&&a.outStream){a.outStream.write(r)}d=this._processLineBuffer(r,d,(r=>{if(this.options.listeners&&this.options.listeners.stdline){this.options.listeners.stdline(r)}}))}))}let A="";if(l.stderr){l.stderr.on("data",(r=>{c.processStderr=true;if(this.options.listeners&&this.options.listeners.stderr){this.options.listeners.stderr(r)}if(!a.silent&&a.errStream&&a.outStream){const i=a.failOnStdErr?a.errStream:a.outStream;i.write(r)}A=this._processLineBuffer(r,A,(r=>{if(this.options.listeners&&this.options.listeners.errline){this.options.listeners.errline(r)}}))}))}l.on("error",(r=>{c.processError=r.message;c.processExited=true;c.processClosed=true;c.CheckComplete()}));l.on("exit",(r=>{c.processExitCode=r;c.processExited=true;this._debug(`Exit code ${r} received from tool '${this.toolPath}'`);c.CheckComplete()}));l.on("close",(r=>{c.processExitCode=r;c.processExited=true;c.processClosed=true;this._debug(`STDIO streams have closed for tool '${this.toolPath}'`);c.CheckComplete()}));c.on("done",((a,c)=>{if(d.length>0){this.emit("stdline",d)}if(A.length>0){this.emit("errline",A)}l.removeAllListeners();if(a){i(a)}else{r(c)}}));if(this.options.input){if(!l.stdin){throw new Error("child process missing stdin")}l.stdin.end(this.options.input)}}))))}))}}i.ToolRunner=ToolRunner;function argStringToArray(r){const i=[];let a=false;let c=false;let p="";function append(r){if(c&&r!=='"'){p+="\\"}p+=r;c=false}for(let l=0;l0){i.push(p);p=""}continue}append(d)}if(p.length>0){i.push(p.trim())}return i}i.argStringToArray=argStringToArray;class ExecState extends A.EventEmitter{constructor(r,i){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(!i){throw new Error("toolPath must not be empty")}this.options=r;this.toolPath=i;if(r.delay){this.delay=r.delay}}CheckComplete(){if(this.done){return}if(this.processClosed){this._setResult()}else if(this.processExited){this.timeout=z.setTimeout(ExecState.HandleTimeout,this.delay,this)}}_debug(r){this.emit("debug",r)}_setResult(){let r;if(this.processExited){if(this.processError){r=new Error(`There was an error when attempting to execute the process '${this.toolPath}'. This may indicate the process failed to start. Error: ${this.processError}`)}else if(this.processExitCode!==0&&!this.options.ignoreReturnCode){r=new Error(`The process '${this.toolPath}' failed with exit code ${this.processExitCode}`)}else if(this.processStderr&&this.options.failOnStdErr){r=new Error(`The process '${this.toolPath}' failed because one or more lines were written to the STDERR stream`)}}if(this.timeout){clearTimeout(this.timeout);this.timeout=null}this.done=true;this.emit("done",r,this.processExitCode)}static HandleTimeout(r){if(r.done){return}if(!r.processClosed&&r.processExited){const i=`The STDIO streams did not close within ${r.delay/1e3} seconds of the exit event from process '${r.toolPath}'. This may indicate a child process inherited the STDIO streams and has not yet exited.`;r._debug(i)}r._setResult()}}},74087:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.Context=void 0;const c=a(57147);const p=a(22037);class Context{constructor(){var r,i,a;this.payload={};if(process.env.GITHUB_EVENT_PATH){if((0,c.existsSync)(process.env.GITHUB_EVENT_PATH)){this.payload=JSON.parse((0,c.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}))}else{const r=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${r} does not exist${p.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.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10);this.runId=parseInt(process.env.GITHUB_RUN_ID,10);this.apiUrl=(r=process.env.GITHUB_API_URL)!==null&&r!==void 0?r:`https://api.github.com`;this.serverUrl=(i=process.env.GITHUB_SERVER_URL)!==null&&i!==void 0?i:`https://github.com`;this.graphqlUrl=(a=process.env.GITHUB_GRAPHQL_URL)!==null&&a!==void 0?a:`https://api.github.com/graphql`}get issue(){const r=this.payload;return Object.assign(Object.assign({},this.repo),{number:(r.issue||r.pull_request||r).number})}get repo(){if(process.env.GITHUB_REPOSITORY){const[r,i]=process.env.GITHUB_REPOSITORY.split("/");return{owner:r,repo:i}}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'")}}i.Context=Context},95438:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokit=i.context=void 0;const d=l(a(74087));const u=a(73030);i.context=new d.Context;function getOctokit(r,i,...a){const c=u.GitHub.plugin(...a);return new c((0,u.getOctokitOptions)(r,i))}i.getOctokit=getOctokit},47914:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.getApiBaseUrl=i.getProxyFetch=i.getProxyAgentDispatcher=i.getProxyAgent=i.getAuthString=void 0;const u=l(a(96255));const A=a(41773);function getAuthString(r,i){if(!r&&!i.auth){throw new Error("Parameter token or opts.auth is required")}else if(r&&i.auth){throw new Error("Parameters token and opts.auth may not both be specified")}return typeof i.auth==="string"?i.auth:`token ${r}`}i.getAuthString=getAuthString;function getProxyAgent(r){const i=new u.HttpClient;return i.getAgent(r)}i.getProxyAgent=getProxyAgent;function getProxyAgentDispatcher(r){const i=new u.HttpClient;return i.getAgentDispatcher(r)}i.getProxyAgentDispatcher=getProxyAgentDispatcher;function getProxyFetch(r){const i=getProxyAgentDispatcher(r);const proxyFetch=(r,a)=>d(this,void 0,void 0,(function*(){return(0,A.fetch)(r,Object.assign(Object.assign({},a),{dispatcher:i}))}));return proxyFetch}i.getProxyFetch=getProxyFetch;function getApiBaseUrl(){return process.env["GITHUB_API_URL"]||"https://api.github.com"}i.getApiBaseUrl=getApiBaseUrl},73030:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOctokitOptions=i.GitHub=i.defaults=i.context=void 0;const d=l(a(74087));const u=l(a(47914));const A=a(18525);const b=a(94045);const h=a(48945);i.context=new d.Context;const g=u.getApiBaseUrl();i.defaults={baseUrl:g,request:{agent:u.getProxyAgent(g),fetch:u.getProxyFetch(g)}};i.GitHub=A.Octokit.plugin(b.restEndpointMethods,h.paginateRest).defaults(i.defaults);function getOctokitOptions(r,i){const a=Object.assign({},i||{});const c=u.getAuthString(r,a);if(c){a.auth=c}return a}i.getOctokitOptions=getOctokitOptions},18525:(r,i,a)=>{"use strict";var c=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var __export=(r,i)=>{for(var a in i)c(r,a,{get:i[a],enumerable:true})};var __copyProps=(r,i,a,u)=>{if(i&&typeof i==="object"||typeof i==="function"){for(let A of l(i))if(!d.call(r,A)&&A!==a)c(r,A,{get:()=>i[A],enumerable:!(u=p(i,A))||u.enumerable})}return r};var __toCommonJS=r=>__copyProps(c({},"__esModule",{value:true}),r);var u={};__export(u,{Octokit:()=>C});r.exports=__toCommonJS(u);var A=a(45030);var b=a(83682);var h=a(36234);var g=a(88467);var M=a(40334);var z="5.1.0";var noop=()=>{};var O=console.warn.bind(console);var y=console.error.bind(console);var v=`octokit-core.js/${z} ${(0,A.getUserAgent)()}`;var C=class{static{this.VERSION=z}static defaults(r){const i=class extends(this){constructor(...i){const a=i[0]||{};if(typeof r==="function"){super(r(a));return}super(Object.assign({},r,a,a.userAgent&&r.userAgent?{userAgent:`${a.userAgent} ${r.userAgent}`}:null))}};return i}static{this.plugins=[]}static plugin(...r){const i=this.plugins;const a=class extends(this){static{this.plugins=i.concat(r.filter((r=>!i.includes(r))))}};return a}constructor(r={}){const i=new b.Collection;const a={baseUrl:h.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},r.request,{hook:i.bind(null,"request")}),mediaType:{previews:[],format:""}};a.headers["user-agent"]=r.userAgent?`${r.userAgent} ${v}`:v;if(r.baseUrl){a.baseUrl=r.baseUrl}if(r.previews){a.mediaType.previews=r.previews}if(r.timeZone){a.headers["time-zone"]=r.timeZone}this.request=h.request.defaults(a);this.graphql=(0,g.withCustomRequest)(this.request).defaults(a);this.log=Object.assign({debug:noop,info:noop,warn:O,error:y},r.log);this.hook=i;if(!r.authStrategy){if(!r.auth){this.auth=async()=>({type:"unauthenticated"})}else{const a=(0,M.createTokenAuth)(r.auth);i.wrap("request",a.hook);this.auth=a}}else{const{authStrategy:a,...c}=r;const p=a(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:c},r.auth));i.wrap("request",p.hook);this.auth=p}const c=this.constructor;for(let i=0;i{"use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,a)=>{for(var c in a)i(r,c,{get:a[c],enumerable:true})};var __copyProps=(r,l,d,u)=>{if(l&&typeof l==="object"||typeof l==="function"){for(let A of c(l))if(!p.call(r,A)&&A!==d)i(r,A,{get:()=>l[A],enumerable:!(u=a(l,A))||u.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var l={};__export(l,{composePaginateRest:()=>u,isPaginatingEndpoint:()=>isPaginatingEndpoint,paginateRest:()=>paginateRest,paginatingEndpoints:()=>A});r.exports=__toCommonJS(l);var d="9.0.0";function normalizePaginatedListResponse(r){if(!r.data){return{...r,data:[]}}const i="total_count"in r.data&&!("url"in r.data);if(!i)return r;const a=r.data.incomplete_results;const c=r.data.repository_selection;const p=r.data.total_count;delete r.data.incomplete_results;delete r.data.repository_selection;delete r.data.total_count;const l=Object.keys(r.data)[0];const d=r.data[l];r.data=d;if(typeof a!=="undefined"){r.data.incomplete_results=a}if(typeof c!=="undefined"){r.data.repository_selection=c}r.data.total_count=p;return r}function iterator(r,i,a){const c=typeof i==="function"?i.endpoint(a):r.request.endpoint(i,a);const p=typeof i==="function"?i:r.request;const l=c.method;const d=c.headers;let u=c.url;return{[Symbol.asyncIterator]:()=>({async next(){if(!u)return{done:true};try{const r=await p({method:l,url:u,headers:d});const i=normalizePaginatedListResponse(r);u=((i.headers.link||"").match(/<([^>]+)>;\s*rel="next"/)||[])[1];return{value:i}}catch(r){if(r.status!==409)throw r;u="";return{value:{status:200,headers:{},data:[]}}}}})}}function paginate(r,i,a,c){if(typeof a==="function"){c=a;a=void 0}return gather(r,[],iterator(r,i,a)[Symbol.asyncIterator](),c)}function gather(r,i,a,c){return a.next().then((p=>{if(p.done){return i}let l=false;function done(){l=true}i=i.concat(c?c(p.value,done):p.value.data);if(l){return i}return gather(r,i,a,c)}))}var u=Object.assign(paginate,{iterator:iterator});var A=["GET /advisories","GET /app/hook/deliveries","GET /app/installation-requests","GET /app/installations","GET /assignments/{assignment_id}/accepted_assignments","GET /classrooms","GET /classrooms/{classroom_id}/assignments","GET /enterprises/{enterprise}/dependabot/alerts","GET /enterprises/{enterprise}/secret-scanning/alerts","GET /events","GET /gists","GET /gists/public","GET /gists/starred","GET /gists/{gist_id}/comments","GET /gists/{gist_id}/commits","GET /gists/{gist_id}/forks","GET /installation/repositories","GET /issues","GET /licenses","GET /marketplace_listing/plans","GET /marketplace_listing/plans/{plan_id}/accounts","GET /marketplace_listing/stubbed/plans","GET /marketplace_listing/stubbed/plans/{plan_id}/accounts","GET /networks/{owner}/{repo}/events","GET /notifications","GET /organizations","GET /orgs/{org}/actions/cache/usage-by-repository","GET /orgs/{org}/actions/permissions/repositories","GET /orgs/{org}/actions/runners","GET /orgs/{org}/actions/secrets","GET /orgs/{org}/actions/secrets/{secret_name}/repositories","GET /orgs/{org}/actions/variables","GET /orgs/{org}/actions/variables/{name}/repositories","GET /orgs/{org}/blocks","GET /orgs/{org}/code-scanning/alerts","GET /orgs/{org}/codespaces","GET /orgs/{org}/codespaces/secrets","GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories","GET /orgs/{org}/copilot/billing/seats","GET /orgs/{org}/dependabot/alerts","GET /orgs/{org}/dependabot/secrets","GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories","GET /orgs/{org}/events","GET /orgs/{org}/failed_invitations","GET /orgs/{org}/hooks","GET /orgs/{org}/hooks/{hook_id}/deliveries","GET /orgs/{org}/installations","GET /orgs/{org}/invitations","GET /orgs/{org}/invitations/{invitation_id}/teams","GET /orgs/{org}/issues","GET /orgs/{org}/members","GET /orgs/{org}/members/{username}/codespaces","GET /orgs/{org}/migrations","GET /orgs/{org}/migrations/{migration_id}/repositories","GET /orgs/{org}/outside_collaborators","GET /orgs/{org}/packages","GET /orgs/{org}/packages/{package_type}/{package_name}/versions","GET /orgs/{org}/personal-access-token-requests","GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories","GET /orgs/{org}/personal-access-tokens","GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories","GET /orgs/{org}/projects","GET /orgs/{org}/public_members","GET /orgs/{org}/repos","GET /orgs/{org}/rulesets","GET /orgs/{org}/secret-scanning/alerts","GET /orgs/{org}/security-advisories","GET /orgs/{org}/teams","GET /orgs/{org}/teams/{team_slug}/discussions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions","GET /orgs/{org}/teams/{team_slug}/invitations","GET /orgs/{org}/teams/{team_slug}/members","GET /orgs/{org}/teams/{team_slug}/projects","GET /orgs/{org}/teams/{team_slug}/repos","GET /orgs/{org}/teams/{team_slug}/teams","GET /projects/columns/{column_id}/cards","GET /projects/{project_id}/collaborators","GET /projects/{project_id}/columns","GET /repos/{owner}/{repo}/actions/artifacts","GET /repos/{owner}/{repo}/actions/caches","GET /repos/{owner}/{repo}/actions/organization-secrets","GET /repos/{owner}/{repo}/actions/organization-variables","GET /repos/{owner}/{repo}/actions/runners","GET /repos/{owner}/{repo}/actions/runs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts","GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs","GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs","GET /repos/{owner}/{repo}/actions/secrets","GET /repos/{owner}/{repo}/actions/variables","GET /repos/{owner}/{repo}/actions/workflows","GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs","GET /repos/{owner}/{repo}/activity","GET /repos/{owner}/{repo}/assignees","GET /repos/{owner}/{repo}/branches","GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations","GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs","GET /repos/{owner}/{repo}/code-scanning/alerts","GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances","GET /repos/{owner}/{repo}/code-scanning/analyses","GET /repos/{owner}/{repo}/codespaces","GET /repos/{owner}/{repo}/codespaces/devcontainers","GET /repos/{owner}/{repo}/codespaces/secrets","GET /repos/{owner}/{repo}/collaborators","GET /repos/{owner}/{repo}/comments","GET /repos/{owner}/{repo}/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/commits","GET /repos/{owner}/{repo}/commits/{commit_sha}/comments","GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls","GET /repos/{owner}/{repo}/commits/{ref}/check-runs","GET /repos/{owner}/{repo}/commits/{ref}/check-suites","GET /repos/{owner}/{repo}/commits/{ref}/status","GET /repos/{owner}/{repo}/commits/{ref}/statuses","GET /repos/{owner}/{repo}/contributors","GET /repos/{owner}/{repo}/dependabot/alerts","GET /repos/{owner}/{repo}/dependabot/secrets","GET /repos/{owner}/{repo}/deployments","GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses","GET /repos/{owner}/{repo}/environments","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies","GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps","GET /repos/{owner}/{repo}/events","GET /repos/{owner}/{repo}/forks","GET /repos/{owner}/{repo}/hooks","GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries","GET /repos/{owner}/{repo}/invitations","GET /repos/{owner}/{repo}/issues","GET /repos/{owner}/{repo}/issues/comments","GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/issues/events","GET /repos/{owner}/{repo}/issues/{issue_number}/comments","GET /repos/{owner}/{repo}/issues/{issue_number}/events","GET /repos/{owner}/{repo}/issues/{issue_number}/labels","GET /repos/{owner}/{repo}/issues/{issue_number}/reactions","GET /repos/{owner}/{repo}/issues/{issue_number}/timeline","GET /repos/{owner}/{repo}/keys","GET /repos/{owner}/{repo}/labels","GET /repos/{owner}/{repo}/milestones","GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels","GET /repos/{owner}/{repo}/notifications","GET /repos/{owner}/{repo}/pages/builds","GET /repos/{owner}/{repo}/projects","GET /repos/{owner}/{repo}/pulls","GET /repos/{owner}/{repo}/pulls/comments","GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions","GET /repos/{owner}/{repo}/pulls/{pull_number}/comments","GET /repos/{owner}/{repo}/pulls/{pull_number}/commits","GET /repos/{owner}/{repo}/pulls/{pull_number}/files","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews","GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments","GET /repos/{owner}/{repo}/releases","GET /repos/{owner}/{repo}/releases/{release_id}/assets","GET /repos/{owner}/{repo}/releases/{release_id}/reactions","GET /repos/{owner}/{repo}/rules/branches/{branch}","GET /repos/{owner}/{repo}/rulesets","GET /repos/{owner}/{repo}/secret-scanning/alerts","GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations","GET /repos/{owner}/{repo}/security-advisories","GET /repos/{owner}/{repo}/stargazers","GET /repos/{owner}/{repo}/subscribers","GET /repos/{owner}/{repo}/tags","GET /repos/{owner}/{repo}/teams","GET /repos/{owner}/{repo}/topics","GET /repositories","GET /repositories/{repository_id}/environments/{environment_name}/secrets","GET /repositories/{repository_id}/environments/{environment_name}/variables","GET /search/code","GET /search/commits","GET /search/issues","GET /search/labels","GET /search/repositories","GET /search/topics","GET /search/users","GET /teams/{team_id}/discussions","GET /teams/{team_id}/discussions/{discussion_number}/comments","GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions","GET /teams/{team_id}/discussions/{discussion_number}/reactions","GET /teams/{team_id}/invitations","GET /teams/{team_id}/members","GET /teams/{team_id}/projects","GET /teams/{team_id}/repos","GET /teams/{team_id}/teams","GET /user/blocks","GET /user/codespaces","GET /user/codespaces/secrets","GET /user/emails","GET /user/followers","GET /user/following","GET /user/gpg_keys","GET /user/installations","GET /user/installations/{installation_id}/repositories","GET /user/issues","GET /user/keys","GET /user/marketplace_purchases","GET /user/marketplace_purchases/stubbed","GET /user/memberships/orgs","GET /user/migrations","GET /user/migrations/{migration_id}/repositories","GET /user/orgs","GET /user/packages","GET /user/packages/{package_type}/{package_name}/versions","GET /user/public_emails","GET /user/repos","GET /user/repository_invitations","GET /user/social_accounts","GET /user/ssh_signing_keys","GET /user/starred","GET /user/subscriptions","GET /user/teams","GET /users","GET /users/{username}/events","GET /users/{username}/events/orgs/{org}","GET /users/{username}/events/public","GET /users/{username}/followers","GET /users/{username}/following","GET /users/{username}/gists","GET /users/{username}/gpg_keys","GET /users/{username}/keys","GET /users/{username}/orgs","GET /users/{username}/packages","GET /users/{username}/projects","GET /users/{username}/received_events","GET /users/{username}/received_events/public","GET /users/{username}/repos","GET /users/{username}/social_accounts","GET /users/{username}/ssh_signing_keys","GET /users/{username}/starred","GET /users/{username}/subscriptions"];function isPaginatingEndpoint(r){if(typeof r==="string"){return A.includes(r)}else{return false}}function paginateRest(r){return{paginate:Object.assign(paginate.bind(null,r),{iterator:iterator.bind(null,r)})}}paginateRest.VERSION=d;0&&0},94045:r=>{"use strict";var i=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var p=Object.prototype.hasOwnProperty;var __export=(r,a)=>{for(var c in a)i(r,c,{get:a[c],enumerable:true})};var __copyProps=(r,l,d,u)=>{if(l&&typeof l==="object"||typeof l==="function"){for(let A of c(l))if(!p.call(r,A)&&A!==d)i(r,A,{get:()=>l[A],enumerable:!(u=a(l,A))||u.enumerable})}return r};var __toCommonJS=r=>__copyProps(i({},"__esModule",{value:true}),r);var l={};__export(l,{legacyRestEndpointMethods:()=>legacyRestEndpointMethods,restEndpointMethods:()=>restEndpointMethods});r.exports=__toCommonJS(l);var d="10.4.0";var u={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repositories/{repository_id}/environments/{environment_name}/variables"],createOrUpdateEnvironmentSecret:["PUT /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVariable:["POST /orgs/{org}/actions/variables"],createRegistrationTokenForOrg:["POST /orgs/{org}/actions/runners/registration-token"],createRegistrationTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/registration-token"],createRemoveTokenForOrg:["POST /orgs/{org}/actions/runners/remove-token"],createRemoveTokenForRepo:["POST /repos/{owner}/{repo}/actions/runners/remove-token"],createRepoVariable:["POST /repos/{owner}/{repo}/actions/variables"],createWorkflowDispatch:["POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches"],deleteActionsCacheById:["DELETE /repos/{owner}/{repo}/actions/caches/{cache_id}"],deleteActionsCacheByKey:["DELETE /repos/{owner}/{repo}/actions/caches{?key,ref}"],deleteArtifact:["DELETE /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],deleteEnvironmentSecret:["DELETE /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],deleteEnvironmentVariable:["DELETE /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],deleteOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}"],deleteOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/actions/secrets/{secret_name}"],deleteRepoVariable:["DELETE /repos/{owner}/{repo}/actions/variables/{name}"],deleteSelfHostedRunnerFromOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}"],deleteSelfHostedRunnerFromRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}"],deleteWorkflowRun:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}"],deleteWorkflowRunLogs:["DELETE /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],disableSelectedRepositoryGithubActionsOrganization:["DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}"],disableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable"],downloadArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}/{archive_format}"],downloadJobLogsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}/logs"],downloadWorkflowRunAttemptLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/logs"],downloadWorkflowRunLogs:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/logs"],enableSelectedRepositoryGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories/{repository_id}"],enableWorkflow:["PUT /repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable"],forceCancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/force-cancel"],generateRunnerJitconfigForOrg:["POST /orgs/{org}/actions/runners/generate-jitconfig"],generateRunnerJitconfigForRepo:["POST /repos/{owner}/{repo}/actions/runners/generate-jitconfig"],getActionsCacheList:["GET /repos/{owner}/{repo}/actions/caches"],getActionsCacheUsage:["GET /repos/{owner}/{repo}/actions/cache/usage"],getActionsCacheUsageByRepoForOrg:["GET /orgs/{org}/actions/cache/usage-by-repository"],getActionsCacheUsageForOrg:["GET /orgs/{org}/actions/cache/usage"],getAllowedActionsOrganization:["GET /orgs/{org}/actions/permissions/selected-actions"],getAllowedActionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/selected-actions"],getArtifact:["GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}"],getCustomOidcSubClaimForRepo:["GET /repos/{owner}/{repo}/actions/oidc/customization/sub"],getEnvironmentPublicKey:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/public-key"],getEnvironmentSecret:["GET /repositories/{repository_id}/environments/{environment_name}/secrets/{secret_name}"],getEnvironmentVariable:["GET /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],getGithubActionsDefaultWorkflowPermissionsOrganization:["GET /orgs/{org}/actions/permissions/workflow"],getGithubActionsDefaultWorkflowPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions/workflow"],getGithubActionsPermissionsOrganization:["GET /orgs/{org}/actions/permissions"],getGithubActionsPermissionsRepository:["GET /repos/{owner}/{repo}/actions/permissions"],getJobForWorkflowRun:["GET /repos/{owner}/{repo}/actions/jobs/{job_id}"],getOrgPublicKey:["GET /orgs/{org}/actions/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}"],getOrgVariable:["GET /orgs/{org}/actions/variables/{name}"],getPendingDeploymentsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],getRepoPermissions:["GET /repos/{owner}/{repo}/actions/permissions",{},{renamed:["actions","getGithubActionsPermissionsRepository"]}],getRepoPublicKey:["GET /repos/{owner}/{repo}/actions/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/actions/secrets/{secret_name}"],getRepoVariable:["GET /repos/{owner}/{repo}/actions/variables/{name}"],getReviewsForRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/approvals"],getSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}"],getSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}"],getWorkflow:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}"],getWorkflowAccessToRepository:["GET /repos/{owner}/{repo}/actions/permissions/access"],getWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}"],getWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}"],getWorkflowRunUsage:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/timing"],getWorkflowUsage:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/timing"],listArtifactsForRepo:["GET /repos/{owner}/{repo}/actions/artifacts"],listEnvironmentSecrets:["GET /repositories/{repository_id}/environments/{environment_name}/secrets"],listEnvironmentVariables:["GET /repositories/{repository_id}/environments/{environment_name}/variables"],listJobsForWorkflowRun:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs"],listJobsForWorkflowRunAttempt:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs"],listLabelsForSelfHostedRunnerForOrg:["GET /orgs/{org}/actions/runners/{runner_id}/labels"],listLabelsForSelfHostedRunnerForRepo:["GET /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],listOrgSecrets:["GET /orgs/{org}/actions/secrets"],listOrgVariables:["GET /orgs/{org}/actions/variables"],listRepoOrganizationSecrets:["GET /repos/{owner}/{repo}/actions/organization-secrets"],listRepoOrganizationVariables:["GET /repos/{owner}/{repo}/actions/organization-variables"],listRepoSecrets:["GET /repos/{owner}/{repo}/actions/secrets"],listRepoVariables:["GET /repos/{owner}/{repo}/actions/variables"],listRepoWorkflows:["GET /repos/{owner}/{repo}/actions/workflows"],listRunnerApplicationsForOrg:["GET /orgs/{org}/actions/runners/downloads"],listRunnerApplicationsForRepo:["GET /repos/{owner}/{repo}/actions/runners/downloads"],listSelectedReposForOrgSecret:["GET /orgs/{org}/actions/secrets/{secret_name}/repositories"],listSelectedReposForOrgVariable:["GET /orgs/{org}/actions/variables/{name}/repositories"],listSelectedRepositoriesEnabledGithubActionsOrganization:["GET /orgs/{org}/actions/permissions/repositories"],listSelfHostedRunnersForOrg:["GET /orgs/{org}/actions/runners"],listSelfHostedRunnersForRepo:["GET /repos/{owner}/{repo}/actions/runners"],listWorkflowRunArtifacts:["GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts"],listWorkflowRuns:["GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs"],listWorkflowRunsForRepo:["GET /repos/{owner}/{repo}/actions/runs"],reRunJobForWorkflowRun:["POST /repos/{owner}/{repo}/actions/jobs/{job_id}/rerun"],reRunWorkflow:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun"],reRunWorkflowFailedJobs:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/rerun-failed-jobs"],removeAllCustomLabelsFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels"],removeAllCustomLabelsFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],removeCustomLabelFromSelfHostedRunnerForOrg:["DELETE /orgs/{org}/actions/runners/{runner_id}/labels/{name}"],removeCustomLabelFromSelfHostedRunnerForRepo:["DELETE /repos/{owner}/{repo}/actions/runners/{runner_id}/labels/{name}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgVariable:["DELETE /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],reviewCustomGatesForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/deployment_protection_rule"],reviewPendingDeploymentsForRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/pending_deployments"],setAllowedActionsOrganization:["PUT /orgs/{org}/actions/permissions/selected-actions"],setAllowedActionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/selected-actions"],setCustomLabelsForSelfHostedRunnerForOrg:["PUT /orgs/{org}/actions/runners/{runner_id}/labels"],setCustomLabelsForSelfHostedRunnerForRepo:["PUT /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],setCustomOidcSubClaimForRepo:["PUT /repos/{owner}/{repo}/actions/oidc/customization/sub"],setGithubActionsDefaultWorkflowPermissionsOrganization:["PUT /orgs/{org}/actions/permissions/workflow"],setGithubActionsDefaultWorkflowPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions/workflow"],setGithubActionsPermissionsOrganization:["PUT /orgs/{org}/actions/permissions"],setGithubActionsPermissionsRepository:["PUT /repos/{owner}/{repo}/actions/permissions"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories"],setSelectedReposForOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories"],setSelectedRepositoriesEnabledGithubActionsOrganization:["PUT /orgs/{org}/actions/permissions/repositories"],setWorkflowAccessToRepository:["PUT /repos/{owner}/{repo}/actions/permissions/access"],updateEnvironmentVariable:["PATCH /repositories/{repository_id}/environments/{environment_name}/variables/{name}"],updateOrgVariable:["PATCH /orgs/{org}/actions/variables/{name}"],updateRepoVariable:["PATCH /repos/{owner}/{repo}/actions/variables/{name}"]},activity:{checkRepoIsStarredByAuthenticatedUser:["GET /user/starred/{owner}/{repo}"],deleteRepoSubscription:["DELETE /repos/{owner}/{repo}/subscription"],deleteThreadSubscription:["DELETE /notifications/threads/{thread_id}/subscription"],getFeeds:["GET /feeds"],getRepoSubscription:["GET /repos/{owner}/{repo}/subscription"],getThread:["GET /notifications/threads/{thread_id}"],getThreadSubscriptionForAuthenticatedUser:["GET /notifications/threads/{thread_id}/subscription"],listEventsForAuthenticatedUser:["GET /users/{username}/events"],listNotificationsForAuthenticatedUser:["GET /notifications"],listOrgEventsForAuthenticatedUser:["GET /users/{username}/events/orgs/{org}"],listPublicEvents:["GET /events"],listPublicEventsForRepoNetwork:["GET /networks/{owner}/{repo}/events"],listPublicEventsForUser:["GET /users/{username}/events/public"],listPublicOrgEvents:["GET /orgs/{org}/events"],listReceivedEventsForUser:["GET /users/{username}/received_events"],listReceivedPublicEventsForUser:["GET /users/{username}/received_events/public"],listRepoEvents:["GET /repos/{owner}/{repo}/events"],listRepoNotificationsForAuthenticatedUser:["GET /repos/{owner}/{repo}/notifications"],listReposStarredByAuthenticatedUser:["GET /user/starred"],listReposStarredByUser:["GET /users/{username}/starred"],listReposWatchedByUser:["GET /users/{username}/subscriptions"],listStargazersForRepo:["GET /repos/{owner}/{repo}/stargazers"],listWatchedReposForAuthenticatedUser:["GET /user/subscriptions"],listWatchersForRepo:["GET /repos/{owner}/{repo}/subscribers"],markNotificationsAsRead:["PUT /notifications"],markRepoNotificationsAsRead:["PUT /repos/{owner}/{repo}/notifications"],markThreadAsDone:["DELETE /notifications/threads/{thread_id}"],markThreadAsRead:["PATCH /notifications/threads/{thread_id}"],setRepoSubscription:["PUT /repos/{owner}/{repo}/subscription"],setThreadSubscription:["PUT /notifications/threads/{thread_id}/subscription"],starRepoForAuthenticatedUser:["PUT /user/starred/{owner}/{repo}"],unstarRepoForAuthenticatedUser:["DELETE /user/starred/{owner}/{repo}"]},apps:{addRepoToInstallation:["PUT /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","addRepoToInstallationForAuthenticatedUser"]}],addRepoToInstallationForAuthenticatedUser:["PUT /user/installations/{installation_id}/repositories/{repository_id}"],checkToken:["POST /applications/{client_id}/token"],createFromManifest:["POST /app-manifests/{code}/conversions"],createInstallationAccessToken:["POST /app/installations/{installation_id}/access_tokens"],deleteAuthorization:["DELETE /applications/{client_id}/grant"],deleteInstallation:["DELETE /app/installations/{installation_id}"],deleteToken:["DELETE /applications/{client_id}/token"],getAuthenticated:["GET /app"],getBySlug:["GET /apps/{app_slug}"],getInstallation:["GET /app/installations/{installation_id}"],getOrgInstallation:["GET /orgs/{org}/installation"],getRepoInstallation:["GET /repos/{owner}/{repo}/installation"],getSubscriptionPlanForAccount:["GET /marketplace_listing/accounts/{account_id}"],getSubscriptionPlanForAccountStubbed:["GET /marketplace_listing/stubbed/accounts/{account_id}"],getUserInstallation:["GET /users/{username}/installation"],getWebhookConfigForApp:["GET /app/hook/config"],getWebhookDelivery:["GET /app/hook/deliveries/{delivery_id}"],listAccountsForPlan:["GET /marketplace_listing/plans/{plan_id}/accounts"],listAccountsForPlanStubbed:["GET /marketplace_listing/stubbed/plans/{plan_id}/accounts"],listInstallationReposForAuthenticatedUser:["GET /user/installations/{installation_id}/repositories"],listInstallationRequestsForAuthenticatedApp:["GET /app/installation-requests"],listInstallations:["GET /app/installations"],listInstallationsForAuthenticatedUser:["GET /user/installations"],listPlans:["GET /marketplace_listing/plans"],listPlansStubbed:["GET /marketplace_listing/stubbed/plans"],listReposAccessibleToInstallation:["GET /installation/repositories"],listSubscriptionsForAuthenticatedUser:["GET /user/marketplace_purchases"],listSubscriptionsForAuthenticatedUserStubbed:["GET /user/marketplace_purchases/stubbed"],listWebhookDeliveries:["GET /app/hook/deliveries"],redeliverWebhookDelivery:["POST /app/hook/deliveries/{delivery_id}/attempts"],removeRepoFromInstallation:["DELETE /user/installations/{installation_id}/repositories/{repository_id}",{},{renamed:["apps","removeRepoFromInstallationForAuthenticatedUser"]}],removeRepoFromInstallationForAuthenticatedUser:["DELETE /user/installations/{installation_id}/repositories/{repository_id}"],resetToken:["PATCH /applications/{client_id}/token"],revokeInstallationAccessToken:["DELETE /installation/token"],scopeToken:["POST /applications/{client_id}/token/scoped"],suspendInstallation:["PUT /app/installations/{installation_id}/suspended"],unsuspendInstallation:["DELETE /app/installations/{installation_id}/suspended"],updateWebhookConfigForApp:["PATCH /app/hook/config"]},billing:{getGithubActionsBillingOrg:["GET /orgs/{org}/settings/billing/actions"],getGithubActionsBillingUser:["GET /users/{username}/settings/billing/actions"],getGithubPackagesBillingOrg:["GET /orgs/{org}/settings/billing/packages"],getGithubPackagesBillingUser:["GET /users/{username}/settings/billing/packages"],getSharedStorageBillingOrg:["GET /orgs/{org}/settings/billing/shared-storage"],getSharedStorageBillingUser:["GET /users/{username}/settings/billing/shared-storage"]},checks:{create:["POST /repos/{owner}/{repo}/check-runs"],createSuite:["POST /repos/{owner}/{repo}/check-suites"],get:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}"],getSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}"],listAnnotations:["GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations"],listForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-runs"],listForSuite:["GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs"],listSuitesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/check-suites"],rerequestRun:["POST /repos/{owner}/{repo}/check-runs/{check_run_id}/rerequest"],rerequestSuite:["POST /repos/{owner}/{repo}/check-suites/{check_suite_id}/rerequest"],setSuitesPreferences:["PATCH /repos/{owner}/{repo}/check-suites/preferences"],update:["PATCH /repos/{owner}/{repo}/check-runs/{check_run_id}"]},codeScanning:{deleteAnalysis:["DELETE /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}{?confirm_delete}"],getAlert:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}",{},{renamedParameters:{alert_id:"alert_number"}}],getAnalysis:["GET /repos/{owner}/{repo}/code-scanning/analyses/{analysis_id}"],getCodeqlDatabase:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases/{language}"],getDefaultSetup:["GET /repos/{owner}/{repo}/code-scanning/default-setup"],getSarif:["GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"],listAlertInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances"],listAlertsForOrg:["GET /orgs/{org}/code-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/code-scanning/alerts"],listAlertsInstances:["GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",{},{renamed:["codeScanning","listAlertInstances"]}],listCodeqlDatabases:["GET /repos/{owner}/{repo}/code-scanning/codeql/databases"],listRecentAnalyses:["GET /repos/{owner}/{repo}/code-scanning/analyses"],updateAlert:["PATCH /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}"],updateDefaultSetup:["PATCH /repos/{owner}/{repo}/code-scanning/default-setup"],uploadSarif:["POST /repos/{owner}/{repo}/code-scanning/sarifs"]},codesOfConduct:{getAllCodesOfConduct:["GET /codes_of_conduct"],getConductCode:["GET /codes_of_conduct/{key}"]},codespaces:{addRepositoryForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],checkPermissionsForDevcontainer:["GET /repos/{owner}/{repo}/codespaces/permissions_check"],codespaceMachinesForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/machines"],createForAuthenticatedUser:["POST /user/codespaces"],createOrUpdateOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],createOrUpdateSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}"],createWithPrForAuthenticatedUser:["POST /repos/{owner}/{repo}/pulls/{pull_number}/codespaces"],createWithRepoForAuthenticatedUser:["POST /repos/{owner}/{repo}/codespaces"],deleteForAuthenticatedUser:["DELETE /user/codespaces/{codespace_name}"],deleteFromOrganization:["DELETE /orgs/{org}/members/{username}/codespaces/{codespace_name}"],deleteOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],deleteSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}"],exportForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/exports"],getCodespacesForUserInOrg:["GET /orgs/{org}/members/{username}/codespaces"],getExportDetailsForAuthenticatedUser:["GET /user/codespaces/{codespace_name}/exports/{export_id}"],getForAuthenticatedUser:["GET /user/codespaces/{codespace_name}"],getOrgPublicKey:["GET /orgs/{org}/codespaces/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}"],getPublicKeyForAuthenticatedUser:["GET /user/codespaces/secrets/public-key"],getRepoPublicKey:["GET /repos/{owner}/{repo}/codespaces/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/codespaces/secrets/{secret_name}"],getSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}"],listDevcontainersInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/devcontainers"],listForAuthenticatedUser:["GET /user/codespaces"],listInOrganization:["GET /orgs/{org}/codespaces",{},{renamedParameters:{org_id:"org"}}],listInRepositoryForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces"],listOrgSecrets:["GET /orgs/{org}/codespaces/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/codespaces/secrets"],listRepositoriesForSecretForAuthenticatedUser:["GET /user/codespaces/secrets/{secret_name}/repositories"],listSecretsForAuthenticatedUser:["GET /user/codespaces/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],preFlightWithRepoForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/new"],publishForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/publish"],removeRepositoryForSecretForAuthenticatedUser:["DELETE /user/codespaces/secrets/{secret_name}/repositories/{repository_id}"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/codespaces/secrets/{secret_name}/repositories/{repository_id}"],repoMachinesForAuthenticatedUser:["GET /repos/{owner}/{repo}/codespaces/machines"],setRepositoriesForSecretForAuthenticatedUser:["PUT /user/codespaces/secrets/{secret_name}/repositories"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/codespaces/secrets/{secret_name}/repositories"],startForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/start"],stopForAuthenticatedUser:["POST /user/codespaces/{codespace_name}/stop"],stopInOrganization:["POST /orgs/{org}/members/{username}/codespaces/{codespace_name}/stop"],updateForAuthenticatedUser:["PATCH /user/codespaces/{codespace_name}"]},copilot:{addCopilotSeatsForTeams:["POST /orgs/{org}/copilot/billing/selected_teams"],addCopilotSeatsForUsers:["POST /orgs/{org}/copilot/billing/selected_users"],cancelCopilotSeatAssignmentForTeams:["DELETE /orgs/{org}/copilot/billing/selected_teams"],cancelCopilotSeatAssignmentForUsers:["DELETE /orgs/{org}/copilot/billing/selected_users"],getCopilotOrganizationDetails:["GET /orgs/{org}/copilot/billing"],getCopilotSeatDetailsForUser:["GET /orgs/{org}/members/{username}/copilot"],listCopilotSeats:["GET /orgs/{org}/copilot/billing/seats"]},dependabot:{addSelectedRepoToOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],deleteOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}"],deleteRepoSecret:["DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],getAlert:["GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"],getOrgPublicKey:["GET /orgs/{org}/dependabot/secrets/public-key"],getOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}"],getRepoPublicKey:["GET /repos/{owner}/{repo}/dependabot/secrets/public-key"],getRepoSecret:["GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/dependabot/alerts"],listAlertsForOrg:["GET /orgs/{org}/dependabot/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/dependabot/alerts"],listOrgSecrets:["GET /orgs/{org}/dependabot/secrets"],listRepoSecrets:["GET /repos/{owner}/{repo}/dependabot/secrets"],listSelectedReposForOrgSecret:["GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],removeSelectedRepoFromOrgSecret:["DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}"],setSelectedReposForOrgSecret:["PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories"],updateAlert:["PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}"]},dependencyGraph:{createRepositorySnapshot:["POST /repos/{owner}/{repo}/dependency-graph/snapshots"],diffRange:["GET /repos/{owner}/{repo}/dependency-graph/compare/{basehead}"],exportSbom:["GET /repos/{owner}/{repo}/dependency-graph/sbom"]},emojis:{get:["GET /emojis"]},gists:{checkIsStarred:["GET /gists/{gist_id}/star"],create:["POST /gists"],createComment:["POST /gists/{gist_id}/comments"],delete:["DELETE /gists/{gist_id}"],deleteComment:["DELETE /gists/{gist_id}/comments/{comment_id}"],fork:["POST /gists/{gist_id}/forks"],get:["GET /gists/{gist_id}"],getComment:["GET /gists/{gist_id}/comments/{comment_id}"],getRevision:["GET /gists/{gist_id}/{sha}"],list:["GET /gists"],listComments:["GET /gists/{gist_id}/comments"],listCommits:["GET /gists/{gist_id}/commits"],listForUser:["GET /users/{username}/gists"],listForks:["GET /gists/{gist_id}/forks"],listPublic:["GET /gists/public"],listStarred:["GET /gists/starred"],star:["PUT /gists/{gist_id}/star"],unstar:["DELETE /gists/{gist_id}/star"],update:["PATCH /gists/{gist_id}"],updateComment:["PATCH /gists/{gist_id}/comments/{comment_id}"]},git:{createBlob:["POST /repos/{owner}/{repo}/git/blobs"],createCommit:["POST /repos/{owner}/{repo}/git/commits"],createRef:["POST /repos/{owner}/{repo}/git/refs"],createTag:["POST /repos/{owner}/{repo}/git/tags"],createTree:["POST /repos/{owner}/{repo}/git/trees"],deleteRef:["DELETE /repos/{owner}/{repo}/git/refs/{ref}"],getBlob:["GET /repos/{owner}/{repo}/git/blobs/{file_sha}"],getCommit:["GET /repos/{owner}/{repo}/git/commits/{commit_sha}"],getRef:["GET /repos/{owner}/{repo}/git/ref/{ref}"],getTag:["GET /repos/{owner}/{repo}/git/tags/{tag_sha}"],getTree:["GET /repos/{owner}/{repo}/git/trees/{tree_sha}"],listMatchingRefs:["GET /repos/{owner}/{repo}/git/matching-refs/{ref}"],updateRef:["PATCH /repos/{owner}/{repo}/git/refs/{ref}"]},gitignore:{getAllTemplates:["GET /gitignore/templates"],getTemplate:["GET /gitignore/templates/{name}"]},interactions:{getRestrictionsForAuthenticatedUser:["GET /user/interaction-limits"],getRestrictionsForOrg:["GET /orgs/{org}/interaction-limits"],getRestrictionsForRepo:["GET /repos/{owner}/{repo}/interaction-limits"],getRestrictionsForYourPublicRepos:["GET /user/interaction-limits",{},{renamed:["interactions","getRestrictionsForAuthenticatedUser"]}],removeRestrictionsForAuthenticatedUser:["DELETE /user/interaction-limits"],removeRestrictionsForOrg:["DELETE /orgs/{org}/interaction-limits"],removeRestrictionsForRepo:["DELETE /repos/{owner}/{repo}/interaction-limits"],removeRestrictionsForYourPublicRepos:["DELETE /user/interaction-limits",{},{renamed:["interactions","removeRestrictionsForAuthenticatedUser"]}],setRestrictionsForAuthenticatedUser:["PUT /user/interaction-limits"],setRestrictionsForOrg:["PUT /orgs/{org}/interaction-limits"],setRestrictionsForRepo:["PUT /repos/{owner}/{repo}/interaction-limits"],setRestrictionsForYourPublicRepos:["PUT /user/interaction-limits",{},{renamed:["interactions","setRestrictionsForAuthenticatedUser"]}]},issues:{addAssignees:["POST /repos/{owner}/{repo}/issues/{issue_number}/assignees"],addLabels:["POST /repos/{owner}/{repo}/issues/{issue_number}/labels"],checkUserCanBeAssigned:["GET /repos/{owner}/{repo}/assignees/{assignee}"],checkUserCanBeAssignedToIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/assignees/{assignee}"],create:["POST /repos/{owner}/{repo}/issues"],createComment:["POST /repos/{owner}/{repo}/issues/{issue_number}/comments"],createLabel:["POST /repos/{owner}/{repo}/labels"],createMilestone:["POST /repos/{owner}/{repo}/milestones"],deleteComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}"],deleteLabel:["DELETE /repos/{owner}/{repo}/labels/{name}"],deleteMilestone:["DELETE /repos/{owner}/{repo}/milestones/{milestone_number}"],get:["GET /repos/{owner}/{repo}/issues/{issue_number}"],getComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}"],getEvent:["GET /repos/{owner}/{repo}/issues/events/{event_id}"],getLabel:["GET /repos/{owner}/{repo}/labels/{name}"],getMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}"],list:["GET /issues"],listAssignees:["GET /repos/{owner}/{repo}/assignees"],listComments:["GET /repos/{owner}/{repo}/issues/{issue_number}/comments"],listCommentsForRepo:["GET /repos/{owner}/{repo}/issues/comments"],listEvents:["GET /repos/{owner}/{repo}/issues/{issue_number}/events"],listEventsForRepo:["GET /repos/{owner}/{repo}/issues/events"],listEventsForTimeline:["GET /repos/{owner}/{repo}/issues/{issue_number}/timeline"],listForAuthenticatedUser:["GET /user/issues"],listForOrg:["GET /orgs/{org}/issues"],listForRepo:["GET /repos/{owner}/{repo}/issues"],listLabelsForMilestone:["GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels"],listLabelsForRepo:["GET /repos/{owner}/{repo}/labels"],listLabelsOnIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/labels"],listMilestones:["GET /repos/{owner}/{repo}/milestones"],lock:["PUT /repos/{owner}/{repo}/issues/{issue_number}/lock"],removeAllLabels:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels"],removeAssignees:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/assignees"],removeLabel:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"],setLabels:["PUT /repos/{owner}/{repo}/issues/{issue_number}/labels"],unlock:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/lock"],update:["PATCH /repos/{owner}/{repo}/issues/{issue_number}"],updateComment:["PATCH /repos/{owner}/{repo}/issues/comments/{comment_id}"],updateLabel:["PATCH /repos/{owner}/{repo}/labels/{name}"],updateMilestone:["PATCH /repos/{owner}/{repo}/milestones/{milestone_number}"]},licenses:{get:["GET /licenses/{license}"],getAllCommonlyUsed:["GET /licenses"],getForRepo:["GET /repos/{owner}/{repo}/license"]},markdown:{render:["POST /markdown"],renderRaw:["POST /markdown/raw",{headers:{"content-type":"text/plain; charset=utf-8"}}]},meta:{get:["GET /meta"],getAllVersions:["GET /versions"],getOctocat:["GET /octocat"],getZen:["GET /zen"],root:["GET /"]},migrations:{cancelImport:["DELETE /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.cancelImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#cancel-an-import"}],deleteArchiveForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/archive"],deleteArchiveForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/archive"],downloadArchiveForOrg:["GET /orgs/{org}/migrations/{migration_id}/archive"],getArchiveForAuthenticatedUser:["GET /user/migrations/{migration_id}/archive"],getCommitAuthors:["GET /repos/{owner}/{repo}/import/authors",{},{deprecated:"octokit.rest.migrations.getCommitAuthors() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-commit-authors"}],getImportStatus:["GET /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.getImportStatus() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-an-import-status"}],getLargeFiles:["GET /repos/{owner}/{repo}/import/large_files",{},{deprecated:"octokit.rest.migrations.getLargeFiles() is deprecated, see https://docs.github.com/rest/migrations/source-imports#get-large-files"}],getStatusForAuthenticatedUser:["GET /user/migrations/{migration_id}"],getStatusForOrg:["GET /orgs/{org}/migrations/{migration_id}"],listForAuthenticatedUser:["GET /user/migrations"],listForOrg:["GET /orgs/{org}/migrations"],listReposForAuthenticatedUser:["GET /user/migrations/{migration_id}/repositories"],listReposForOrg:["GET /orgs/{org}/migrations/{migration_id}/repositories"],listReposForUser:["GET /user/migrations/{migration_id}/repositories",{},{renamed:["migrations","listReposForAuthenticatedUser"]}],mapCommitAuthor:["PATCH /repos/{owner}/{repo}/import/authors/{author_id}",{},{deprecated:"octokit.rest.migrations.mapCommitAuthor() is deprecated, see https://docs.github.com/rest/migrations/source-imports#map-a-commit-author"}],setLfsPreference:["PATCH /repos/{owner}/{repo}/import/lfs",{},{deprecated:"octokit.rest.migrations.setLfsPreference() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-git-lfs-preference"}],startForAuthenticatedUser:["POST /user/migrations"],startForOrg:["POST /orgs/{org}/migrations"],startImport:["PUT /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.startImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#start-an-import"}],unlockRepoForAuthenticatedUser:["DELETE /user/migrations/{migration_id}/repos/{repo_name}/lock"],unlockRepoForOrg:["DELETE /orgs/{org}/migrations/{migration_id}/repos/{repo_name}/lock"],updateImport:["PATCH /repos/{owner}/{repo}/import",{},{deprecated:"octokit.rest.migrations.updateImport() is deprecated, see https://docs.github.com/rest/migrations/source-imports#update-an-import"}]},oidc:{getOidcCustomSubTemplateForOrg:["GET /orgs/{org}/actions/oidc/customization/sub"],updateOidcCustomSubTemplateForOrg:["PUT /orgs/{org}/actions/oidc/customization/sub"]},orgs:{addSecurityManagerTeam:["PUT /orgs/{org}/security-managers/teams/{team_slug}"],assignTeamToOrgRole:["PUT /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],assignUserToOrgRole:["PUT /orgs/{org}/organization-roles/users/{username}/{role_id}"],blockUser:["PUT /orgs/{org}/blocks/{username}"],cancelInvitation:["DELETE /orgs/{org}/invitations/{invitation_id}"],checkBlockedUser:["GET /orgs/{org}/blocks/{username}"],checkMembershipForUser:["GET /orgs/{org}/members/{username}"],checkPublicMembershipForUser:["GET /orgs/{org}/public_members/{username}"],convertMemberToOutsideCollaborator:["PUT /orgs/{org}/outside_collaborators/{username}"],createCustomOrganizationRole:["POST /orgs/{org}/organization-roles"],createInvitation:["POST /orgs/{org}/invitations"],createOrUpdateCustomProperties:["PATCH /orgs/{org}/properties/schema"],createOrUpdateCustomPropertiesValuesForRepos:["PATCH /orgs/{org}/properties/values"],createOrUpdateCustomProperty:["PUT /orgs/{org}/properties/schema/{custom_property_name}"],createWebhook:["POST /orgs/{org}/hooks"],delete:["DELETE /orgs/{org}"],deleteCustomOrganizationRole:["DELETE /orgs/{org}/organization-roles/{role_id}"],deleteWebhook:["DELETE /orgs/{org}/hooks/{hook_id}"],enableOrDisableSecurityProductOnAllOrgRepos:["POST /orgs/{org}/{security_product}/{enablement}"],get:["GET /orgs/{org}"],getAllCustomProperties:["GET /orgs/{org}/properties/schema"],getCustomProperty:["GET /orgs/{org}/properties/schema/{custom_property_name}"],getMembershipForAuthenticatedUser:["GET /user/memberships/orgs/{org}"],getMembershipForUser:["GET /orgs/{org}/memberships/{username}"],getOrgRole:["GET /orgs/{org}/organization-roles/{role_id}"],getWebhook:["GET /orgs/{org}/hooks/{hook_id}"],getWebhookConfigForOrg:["GET /orgs/{org}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}"],list:["GET /organizations"],listAppInstallations:["GET /orgs/{org}/installations"],listBlockedUsers:["GET /orgs/{org}/blocks"],listCustomPropertiesValuesForRepos:["GET /orgs/{org}/properties/values"],listFailedInvitations:["GET /orgs/{org}/failed_invitations"],listForAuthenticatedUser:["GET /user/orgs"],listForUser:["GET /users/{username}/orgs"],listInvitationTeams:["GET /orgs/{org}/invitations/{invitation_id}/teams"],listMembers:["GET /orgs/{org}/members"],listMembershipsForAuthenticatedUser:["GET /user/memberships/orgs"],listOrgRoleTeams:["GET /orgs/{org}/organization-roles/{role_id}/teams"],listOrgRoleUsers:["GET /orgs/{org}/organization-roles/{role_id}/users"],listOrgRoles:["GET /orgs/{org}/organization-roles"],listOrganizationFineGrainedPermissions:["GET /orgs/{org}/organization-fine-grained-permissions"],listOutsideCollaborators:["GET /orgs/{org}/outside_collaborators"],listPatGrantRepositories:["GET /orgs/{org}/personal-access-tokens/{pat_id}/repositories"],listPatGrantRequestRepositories:["GET /orgs/{org}/personal-access-token-requests/{pat_request_id}/repositories"],listPatGrantRequests:["GET /orgs/{org}/personal-access-token-requests"],listPatGrants:["GET /orgs/{org}/personal-access-tokens"],listPendingInvitations:["GET /orgs/{org}/invitations"],listPublicMembers:["GET /orgs/{org}/public_members"],listSecurityManagerTeams:["GET /orgs/{org}/security-managers"],listWebhookDeliveries:["GET /orgs/{org}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /orgs/{org}/hooks"],patchCustomOrganizationRole:["PATCH /orgs/{org}/organization-roles/{role_id}"],pingWebhook:["POST /orgs/{org}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /orgs/{org}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeCustomProperty:["DELETE /orgs/{org}/properties/schema/{custom_property_name}"],removeMember:["DELETE /orgs/{org}/members/{username}"],removeMembershipForUser:["DELETE /orgs/{org}/memberships/{username}"],removeOutsideCollaborator:["DELETE /orgs/{org}/outside_collaborators/{username}"],removePublicMembershipForAuthenticatedUser:["DELETE /orgs/{org}/public_members/{username}"],removeSecurityManagerTeam:["DELETE /orgs/{org}/security-managers/teams/{team_slug}"],reviewPatGrantRequest:["POST /orgs/{org}/personal-access-token-requests/{pat_request_id}"],reviewPatGrantRequestsInBulk:["POST /orgs/{org}/personal-access-token-requests"],revokeAllOrgRolesTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}"],revokeAllOrgRolesUser:["DELETE /orgs/{org}/organization-roles/users/{username}"],revokeOrgRoleTeam:["DELETE /orgs/{org}/organization-roles/teams/{team_slug}/{role_id}"],revokeOrgRoleUser:["DELETE /orgs/{org}/organization-roles/users/{username}/{role_id}"],setMembershipForUser:["PUT /orgs/{org}/memberships/{username}"],setPublicMembershipForAuthenticatedUser:["PUT /orgs/{org}/public_members/{username}"],unblockUser:["DELETE /orgs/{org}/blocks/{username}"],update:["PATCH /orgs/{org}"],updateMembershipForAuthenticatedUser:["PATCH /user/memberships/orgs/{org}"],updatePatAccess:["POST /orgs/{org}/personal-access-tokens/{pat_id}"],updatePatAccesses:["POST /orgs/{org}/personal-access-tokens"],updateWebhook:["PATCH /orgs/{org}/hooks/{hook_id}"],updateWebhookConfigForOrg:["PATCH /orgs/{org}/hooks/{hook_id}/config"]},packages:{deletePackageForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}"],deletePackageForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}"],deletePackageForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}"],deletePackageVersionForAuthenticatedUser:["DELETE /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForOrg:["DELETE /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],deletePackageVersionForUser:["DELETE /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getAllPackageVersionsForAPackageOwnedByAnOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByOrg"]}],getAllPackageVersionsForAPackageOwnedByTheAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions",{},{renamed:["packages","getAllPackageVersionsForPackageOwnedByAuthenticatedUser"]}],getAllPackageVersionsForPackageOwnedByAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByOrg:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions"],getAllPackageVersionsForPackageOwnedByUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions"],getPackageForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}"],getPackageForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}"],getPackageForUser:["GET /users/{username}/packages/{package_type}/{package_name}"],getPackageVersionForAuthenticatedUser:["GET /user/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForOrganization:["GET /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}"],getPackageVersionForUser:["GET /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}"],listDockerMigrationConflictingPackagesForAuthenticatedUser:["GET /user/docker/conflicts"],listDockerMigrationConflictingPackagesForOrganization:["GET /orgs/{org}/docker/conflicts"],listDockerMigrationConflictingPackagesForUser:["GET /users/{username}/docker/conflicts"],listPackagesForAuthenticatedUser:["GET /user/packages"],listPackagesForOrganization:["GET /orgs/{org}/packages"],listPackagesForUser:["GET /users/{username}/packages"],restorePackageForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageForUser:["POST /users/{username}/packages/{package_type}/{package_name}/restore{?token}"],restorePackageVersionForAuthenticatedUser:["POST /user/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForOrg:["POST /orgs/{org}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"],restorePackageVersionForUser:["POST /users/{username}/packages/{package_type}/{package_name}/versions/{package_version_id}/restore"]},projects:{addCollaborator:["PUT /projects/{project_id}/collaborators/{username}"],createCard:["POST /projects/columns/{column_id}/cards"],createColumn:["POST /projects/{project_id}/columns"],createForAuthenticatedUser:["POST /user/projects"],createForOrg:["POST /orgs/{org}/projects"],createForRepo:["POST /repos/{owner}/{repo}/projects"],delete:["DELETE /projects/{project_id}"],deleteCard:["DELETE /projects/columns/cards/{card_id}"],deleteColumn:["DELETE /projects/columns/{column_id}"],get:["GET /projects/{project_id}"],getCard:["GET /projects/columns/cards/{card_id}"],getColumn:["GET /projects/columns/{column_id}"],getPermissionForUser:["GET /projects/{project_id}/collaborators/{username}/permission"],listCards:["GET /projects/columns/{column_id}/cards"],listCollaborators:["GET /projects/{project_id}/collaborators"],listColumns:["GET /projects/{project_id}/columns"],listForOrg:["GET /orgs/{org}/projects"],listForRepo:["GET /repos/{owner}/{repo}/projects"],listForUser:["GET /users/{username}/projects"],moveCard:["POST /projects/columns/cards/{card_id}/moves"],moveColumn:["POST /projects/columns/{column_id}/moves"],removeCollaborator:["DELETE /projects/{project_id}/collaborators/{username}"],update:["PATCH /projects/{project_id}"],updateCard:["PATCH /projects/columns/cards/{card_id}"],updateColumn:["PATCH /projects/columns/{column_id}"]},pulls:{checkIfMerged:["GET /repos/{owner}/{repo}/pulls/{pull_number}/merge"],create:["POST /repos/{owner}/{repo}/pulls"],createReplyForReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments/{comment_id}/replies"],createReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],createReviewComment:["POST /repos/{owner}/{repo}/pulls/{pull_number}/comments"],deletePendingReview:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],deleteReviewComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}"],dismissReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/dismissals"],get:["GET /repos/{owner}/{repo}/pulls/{pull_number}"],getReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],getReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}"],list:["GET /repos/{owner}/{repo}/pulls"],listCommentsForReview:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments"],listCommits:["GET /repos/{owner}/{repo}/pulls/{pull_number}/commits"],listFiles:["GET /repos/{owner}/{repo}/pulls/{pull_number}/files"],listRequestedReviewers:["GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],listReviewComments:["GET /repos/{owner}/{repo}/pulls/{pull_number}/comments"],listReviewCommentsForRepo:["GET /repos/{owner}/{repo}/pulls/comments"],listReviews:["GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews"],merge:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/merge"],removeRequestedReviewers:["DELETE /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],requestReviewers:["POST /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers"],submitReview:["POST /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/events"],update:["PATCH /repos/{owner}/{repo}/pulls/{pull_number}"],updateBranch:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/update-branch"],updateReview:["PUT /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}"],updateReviewComment:["PATCH /repos/{owner}/{repo}/pulls/comments/{comment_id}"]},rateLimit:{get:["GET /rate_limit"]},reactions:{createForCommitComment:["POST /repos/{owner}/{repo}/comments/{comment_id}/reactions"],createForIssue:["POST /repos/{owner}/{repo}/issues/{issue_number}/reactions"],createForIssueComment:["POST /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],createForPullRequestReviewComment:["POST /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],createForRelease:["POST /repos/{owner}/{repo}/releases/{release_id}/reactions"],createForTeamDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],createForTeamDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"],deleteForCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}/reactions/{reaction_id}"],deleteForIssue:["DELETE /repos/{owner}/{repo}/issues/{issue_number}/reactions/{reaction_id}"],deleteForIssueComment:["DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}"],deleteForPullRequestComment:["DELETE /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions/{reaction_id}"],deleteForRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}/reactions/{reaction_id}"],deleteForTeamDiscussion:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions/{reaction_id}"],deleteForTeamDiscussionComment:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions/{reaction_id}"],listForCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}/reactions"],listForIssue:["GET /repos/{owner}/{repo}/issues/{issue_number}/reactions"],listForIssueComment:["GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions"],listForPullRequestReviewComment:["GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions"],listForRelease:["GET /repos/{owner}/{repo}/releases/{release_id}/reactions"],listForTeamDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions"],listForTeamDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions"]},repos:{acceptInvitation:["PATCH /user/repository_invitations/{invitation_id}",{},{renamed:["repos","acceptInvitationForAuthenticatedUser"]}],acceptInvitationForAuthenticatedUser:["PATCH /user/repository_invitations/{invitation_id}"],addAppAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],addCollaborator:["PUT /repos/{owner}/{repo}/collaborators/{username}"],addStatusCheckContexts:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],addTeamAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],addUserAccessRestrictions:["POST /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],cancelPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}/cancel"],checkAutomatedSecurityFixes:["GET /repos/{owner}/{repo}/automated-security-fixes"],checkCollaborator:["GET /repos/{owner}/{repo}/collaborators/{username}"],checkVulnerabilityAlerts:["GET /repos/{owner}/{repo}/vulnerability-alerts"],codeownersErrors:["GET /repos/{owner}/{repo}/codeowners/errors"],compareCommits:["GET /repos/{owner}/{repo}/compare/{base}...{head}"],compareCommitsWithBasehead:["GET /repos/{owner}/{repo}/compare/{basehead}"],createAutolink:["POST /repos/{owner}/{repo}/autolinks"],createCommitComment:["POST /repos/{owner}/{repo}/commits/{commit_sha}/comments"],createCommitSignatureProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],createCommitStatus:["POST /repos/{owner}/{repo}/statuses/{sha}"],createDeployKey:["POST /repos/{owner}/{repo}/keys"],createDeployment:["POST /repos/{owner}/{repo}/deployments"],createDeploymentBranchPolicy:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],createDeploymentProtectionRule:["POST /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],createDeploymentStatus:["POST /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],createDispatchEvent:["POST /repos/{owner}/{repo}/dispatches"],createForAuthenticatedUser:["POST /user/repos"],createFork:["POST /repos/{owner}/{repo}/forks"],createInOrg:["POST /orgs/{org}/repos"],createOrUpdateCustomPropertiesValues:["PATCH /repos/{owner}/{repo}/properties/values"],createOrUpdateEnvironment:["PUT /repos/{owner}/{repo}/environments/{environment_name}"],createOrUpdateFileContents:["PUT /repos/{owner}/{repo}/contents/{path}"],createOrgRuleset:["POST /orgs/{org}/rulesets"],createPagesDeployment:["POST /repos/{owner}/{repo}/pages/deployments"],createPagesSite:["POST /repos/{owner}/{repo}/pages"],createRelease:["POST /repos/{owner}/{repo}/releases"],createRepoRuleset:["POST /repos/{owner}/{repo}/rulesets"],createTagProtection:["POST /repos/{owner}/{repo}/tags/protection"],createUsingTemplate:["POST /repos/{template_owner}/{template_repo}/generate"],createWebhook:["POST /repos/{owner}/{repo}/hooks"],declineInvitation:["DELETE /user/repository_invitations/{invitation_id}",{},{renamed:["repos","declineInvitationForAuthenticatedUser"]}],declineInvitationForAuthenticatedUser:["DELETE /user/repository_invitations/{invitation_id}"],delete:["DELETE /repos/{owner}/{repo}"],deleteAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],deleteAdminBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],deleteAnEnvironment:["DELETE /repos/{owner}/{repo}/environments/{environment_name}"],deleteAutolink:["DELETE /repos/{owner}/{repo}/autolinks/{autolink_id}"],deleteBranchProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection"],deleteCommitComment:["DELETE /repos/{owner}/{repo}/comments/{comment_id}"],deleteCommitSignatureProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],deleteDeployKey:["DELETE /repos/{owner}/{repo}/keys/{key_id}"],deleteDeployment:["DELETE /repos/{owner}/{repo}/deployments/{deployment_id}"],deleteDeploymentBranchPolicy:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],deleteFile:["DELETE /repos/{owner}/{repo}/contents/{path}"],deleteInvitation:["DELETE /repos/{owner}/{repo}/invitations/{invitation_id}"],deleteOrgRuleset:["DELETE /orgs/{org}/rulesets/{ruleset_id}"],deletePagesSite:["DELETE /repos/{owner}/{repo}/pages"],deletePullRequestReviewProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],deleteRelease:["DELETE /repos/{owner}/{repo}/releases/{release_id}"],deleteReleaseAsset:["DELETE /repos/{owner}/{repo}/releases/assets/{asset_id}"],deleteRepoRuleset:["DELETE /repos/{owner}/{repo}/rulesets/{ruleset_id}"],deleteTagProtection:["DELETE /repos/{owner}/{repo}/tags/protection/{tag_protection_id}"],deleteWebhook:["DELETE /repos/{owner}/{repo}/hooks/{hook_id}"],disableAutomatedSecurityFixes:["DELETE /repos/{owner}/{repo}/automated-security-fixes"],disableDeploymentProtectionRule:["DELETE /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],disablePrivateVulnerabilityReporting:["DELETE /repos/{owner}/{repo}/private-vulnerability-reporting"],disableVulnerabilityAlerts:["DELETE /repos/{owner}/{repo}/vulnerability-alerts"],downloadArchive:["GET /repos/{owner}/{repo}/zipball/{ref}",{},{renamed:["repos","downloadZipballArchive"]}],downloadTarballArchive:["GET /repos/{owner}/{repo}/tarball/{ref}"],downloadZipballArchive:["GET /repos/{owner}/{repo}/zipball/{ref}"],enableAutomatedSecurityFixes:["PUT /repos/{owner}/{repo}/automated-security-fixes"],enablePrivateVulnerabilityReporting:["PUT /repos/{owner}/{repo}/private-vulnerability-reporting"],enableVulnerabilityAlerts:["PUT /repos/{owner}/{repo}/vulnerability-alerts"],generateReleaseNotes:["POST /repos/{owner}/{repo}/releases/generate-notes"],get:["GET /repos/{owner}/{repo}"],getAccessRestrictions:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions"],getAdminBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],getAllDeploymentProtectionRules:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules"],getAllEnvironments:["GET /repos/{owner}/{repo}/environments"],getAllStatusCheckContexts:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts"],getAllTopics:["GET /repos/{owner}/{repo}/topics"],getAppsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps"],getAutolink:["GET /repos/{owner}/{repo}/autolinks/{autolink_id}"],getBranch:["GET /repos/{owner}/{repo}/branches/{branch}"],getBranchProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection"],getBranchRules:["GET /repos/{owner}/{repo}/rules/branches/{branch}"],getClones:["GET /repos/{owner}/{repo}/traffic/clones"],getCodeFrequencyStats:["GET /repos/{owner}/{repo}/stats/code_frequency"],getCollaboratorPermissionLevel:["GET /repos/{owner}/{repo}/collaborators/{username}/permission"],getCombinedStatusForRef:["GET /repos/{owner}/{repo}/commits/{ref}/status"],getCommit:["GET /repos/{owner}/{repo}/commits/{ref}"],getCommitActivityStats:["GET /repos/{owner}/{repo}/stats/commit_activity"],getCommitComment:["GET /repos/{owner}/{repo}/comments/{comment_id}"],getCommitSignatureProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_signatures"],getCommunityProfileMetrics:["GET /repos/{owner}/{repo}/community/profile"],getContent:["GET /repos/{owner}/{repo}/contents/{path}"],getContributorsStats:["GET /repos/{owner}/{repo}/stats/contributors"],getCustomDeploymentProtectionRule:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/{protection_rule_id}"],getCustomPropertiesValues:["GET /repos/{owner}/{repo}/properties/values"],getDeployKey:["GET /repos/{owner}/{repo}/keys/{key_id}"],getDeployment:["GET /repos/{owner}/{repo}/deployments/{deployment_id}"],getDeploymentBranchPolicy:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],getDeploymentStatus:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses/{status_id}"],getEnvironment:["GET /repos/{owner}/{repo}/environments/{environment_name}"],getLatestPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/latest"],getLatestRelease:["GET /repos/{owner}/{repo}/releases/latest"],getOrgRuleSuite:["GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}"],getOrgRuleSuites:["GET /orgs/{org}/rulesets/rule-suites"],getOrgRuleset:["GET /orgs/{org}/rulesets/{ruleset_id}"],getOrgRulesets:["GET /orgs/{org}/rulesets"],getPages:["GET /repos/{owner}/{repo}/pages"],getPagesBuild:["GET /repos/{owner}/{repo}/pages/builds/{build_id}"],getPagesDeployment:["GET /repos/{owner}/{repo}/pages/deployments/{pages_deployment_id}"],getPagesHealthCheck:["GET /repos/{owner}/{repo}/pages/health"],getParticipationStats:["GET /repos/{owner}/{repo}/stats/participation"],getPullRequestReviewProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],getPunchCardStats:["GET /repos/{owner}/{repo}/stats/punch_card"],getReadme:["GET /repos/{owner}/{repo}/readme"],getReadmeInDirectory:["GET /repos/{owner}/{repo}/readme/{dir}"],getRelease:["GET /repos/{owner}/{repo}/releases/{release_id}"],getReleaseAsset:["GET /repos/{owner}/{repo}/releases/assets/{asset_id}"],getReleaseByTag:["GET /repos/{owner}/{repo}/releases/tags/{tag}"],getRepoRuleSuite:["GET /repos/{owner}/{repo}/rulesets/rule-suites/{rule_suite_id}"],getRepoRuleSuites:["GET /repos/{owner}/{repo}/rulesets/rule-suites"],getRepoRuleset:["GET /repos/{owner}/{repo}/rulesets/{ruleset_id}"],getRepoRulesets:["GET /repos/{owner}/{repo}/rulesets"],getStatusChecksProtection:["GET /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],getTeamsWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams"],getTopPaths:["GET /repos/{owner}/{repo}/traffic/popular/paths"],getTopReferrers:["GET /repos/{owner}/{repo}/traffic/popular/referrers"],getUsersWithAccessToProtectedBranch:["GET /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users"],getViews:["GET /repos/{owner}/{repo}/traffic/views"],getWebhook:["GET /repos/{owner}/{repo}/hooks/{hook_id}"],getWebhookConfigForRepo:["GET /repos/{owner}/{repo}/hooks/{hook_id}/config"],getWebhookDelivery:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}"],listActivities:["GET /repos/{owner}/{repo}/activity"],listAutolinks:["GET /repos/{owner}/{repo}/autolinks"],listBranches:["GET /repos/{owner}/{repo}/branches"],listBranchesForHeadCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/branches-where-head"],listCollaborators:["GET /repos/{owner}/{repo}/collaborators"],listCommentsForCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/comments"],listCommitCommentsForRepo:["GET /repos/{owner}/{repo}/comments"],listCommitStatusesForRef:["GET /repos/{owner}/{repo}/commits/{ref}/statuses"],listCommits:["GET /repos/{owner}/{repo}/commits"],listContributors:["GET /repos/{owner}/{repo}/contributors"],listCustomDeploymentRuleIntegrations:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment_protection_rules/apps"],listDeployKeys:["GET /repos/{owner}/{repo}/keys"],listDeploymentBranchPolicies:["GET /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies"],listDeploymentStatuses:["GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses"],listDeployments:["GET /repos/{owner}/{repo}/deployments"],listForAuthenticatedUser:["GET /user/repos"],listForOrg:["GET /orgs/{org}/repos"],listForUser:["GET /users/{username}/repos"],listForks:["GET /repos/{owner}/{repo}/forks"],listInvitations:["GET /repos/{owner}/{repo}/invitations"],listInvitationsForAuthenticatedUser:["GET /user/repository_invitations"],listLanguages:["GET /repos/{owner}/{repo}/languages"],listPagesBuilds:["GET /repos/{owner}/{repo}/pages/builds"],listPublic:["GET /repositories"],listPullRequestsAssociatedWithCommit:["GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls"],listReleaseAssets:["GET /repos/{owner}/{repo}/releases/{release_id}/assets"],listReleases:["GET /repos/{owner}/{repo}/releases"],listTagProtection:["GET /repos/{owner}/{repo}/tags/protection"],listTags:["GET /repos/{owner}/{repo}/tags"],listTeams:["GET /repos/{owner}/{repo}/teams"],listWebhookDeliveries:["GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries"],listWebhooks:["GET /repos/{owner}/{repo}/hooks"],merge:["POST /repos/{owner}/{repo}/merges"],mergeUpstream:["POST /repos/{owner}/{repo}/merge-upstream"],pingWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/pings"],redeliverWebhookDelivery:["POST /repos/{owner}/{repo}/hooks/{hook_id}/deliveries/{delivery_id}/attempts"],removeAppAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],removeCollaborator:["DELETE /repos/{owner}/{repo}/collaborators/{username}"],removeStatusCheckContexts:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],removeStatusCheckProtection:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],removeTeamAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],removeUserAccessRestrictions:["DELETE /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],renameBranch:["POST /repos/{owner}/{repo}/branches/{branch}/rename"],replaceAllTopics:["PUT /repos/{owner}/{repo}/topics"],requestPagesBuild:["POST /repos/{owner}/{repo}/pages/builds"],setAdminBranchProtection:["POST /repos/{owner}/{repo}/branches/{branch}/protection/enforce_admins"],setAppAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/apps",{},{mapToData:"apps"}],setStatusCheckContexts:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks/contexts",{},{mapToData:"contexts"}],setTeamAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/teams",{},{mapToData:"teams"}],setUserAccessRestrictions:["PUT /repos/{owner}/{repo}/branches/{branch}/protection/restrictions/users",{},{mapToData:"users"}],testPushWebhook:["POST /repos/{owner}/{repo}/hooks/{hook_id}/tests"],transfer:["POST /repos/{owner}/{repo}/transfer"],update:["PATCH /repos/{owner}/{repo}"],updateBranchProtection:["PUT /repos/{owner}/{repo}/branches/{branch}/protection"],updateCommitComment:["PATCH /repos/{owner}/{repo}/comments/{comment_id}"],updateDeploymentBranchPolicy:["PUT /repos/{owner}/{repo}/environments/{environment_name}/deployment-branch-policies/{branch_policy_id}"],updateInformationAboutPagesSite:["PUT /repos/{owner}/{repo}/pages"],updateInvitation:["PATCH /repos/{owner}/{repo}/invitations/{invitation_id}"],updateOrgRuleset:["PUT /orgs/{org}/rulesets/{ruleset_id}"],updatePullRequestReviewProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_pull_request_reviews"],updateRelease:["PATCH /repos/{owner}/{repo}/releases/{release_id}"],updateReleaseAsset:["PATCH /repos/{owner}/{repo}/releases/assets/{asset_id}"],updateRepoRuleset:["PUT /repos/{owner}/{repo}/rulesets/{ruleset_id}"],updateStatusCheckPotection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks",{},{renamed:["repos","updateStatusCheckProtection"]}],updateStatusCheckProtection:["PATCH /repos/{owner}/{repo}/branches/{branch}/protection/required_status_checks"],updateWebhook:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}"],updateWebhookConfigForRepo:["PATCH /repos/{owner}/{repo}/hooks/{hook_id}/config"],uploadReleaseAsset:["POST /repos/{owner}/{repo}/releases/{release_id}/assets{?name,label}",{baseUrl:"https://uploads.github.com"}]},search:{code:["GET /search/code"],commits:["GET /search/commits"],issuesAndPullRequests:["GET /search/issues"],labels:["GET /search/labels"],repos:["GET /search/repositories"],topics:["GET /search/topics"],users:["GET /search/users"]},secretScanning:{getAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"],listAlertsForEnterprise:["GET /enterprises/{enterprise}/secret-scanning/alerts"],listAlertsForOrg:["GET /orgs/{org}/secret-scanning/alerts"],listAlertsForRepo:["GET /repos/{owner}/{repo}/secret-scanning/alerts"],listLocationsForAlert:["GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations"],updateAlert:["PATCH /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}"]},securityAdvisories:{createFork:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/forks"],createPrivateVulnerabilityReport:["POST /repos/{owner}/{repo}/security-advisories/reports"],createRepositoryAdvisory:["POST /repos/{owner}/{repo}/security-advisories"],createRepositoryAdvisoryCveRequest:["POST /repos/{owner}/{repo}/security-advisories/{ghsa_id}/cve"],getGlobalAdvisory:["GET /advisories/{ghsa_id}"],getRepositoryAdvisory:["GET /repos/{owner}/{repo}/security-advisories/{ghsa_id}"],listGlobalAdvisories:["GET /advisories"],listOrgRepositoryAdvisories:["GET /orgs/{org}/security-advisories"],listRepositoryAdvisories:["GET /repos/{owner}/{repo}/security-advisories"],updateRepositoryAdvisory:["PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}"]},teams:{addOrUpdateMembershipForUserInOrg:["PUT /orgs/{org}/teams/{team_slug}/memberships/{username}"],addOrUpdateProjectPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/projects/{project_id}"],addOrUpdateRepoPermissionsInOrg:["PUT /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],checkPermissionsForProjectInOrg:["GET /orgs/{org}/teams/{team_slug}/projects/{project_id}"],checkPermissionsForRepoInOrg:["GET /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],create:["POST /orgs/{org}/teams"],createDiscussionCommentInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],createDiscussionInOrg:["POST /orgs/{org}/teams/{team_slug}/discussions"],deleteDiscussionCommentInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],deleteDiscussionInOrg:["DELETE /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],deleteInOrg:["DELETE /orgs/{org}/teams/{team_slug}"],getByName:["GET /orgs/{org}/teams/{team_slug}"],getDiscussionCommentInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],getDiscussionInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],getMembershipForUserInOrg:["GET /orgs/{org}/teams/{team_slug}/memberships/{username}"],list:["GET /orgs/{org}/teams"],listChildInOrg:["GET /orgs/{org}/teams/{team_slug}/teams"],listDiscussionCommentsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments"],listDiscussionsInOrg:["GET /orgs/{org}/teams/{team_slug}/discussions"],listForAuthenticatedUser:["GET /user/teams"],listMembersInOrg:["GET /orgs/{org}/teams/{team_slug}/members"],listPendingInvitationsInOrg:["GET /orgs/{org}/teams/{team_slug}/invitations"],listProjectsInOrg:["GET /orgs/{org}/teams/{team_slug}/projects"],listReposInOrg:["GET /orgs/{org}/teams/{team_slug}/repos"],removeMembershipForUserInOrg:["DELETE /orgs/{org}/teams/{team_slug}/memberships/{username}"],removeProjectInOrg:["DELETE /orgs/{org}/teams/{team_slug}/projects/{project_id}"],removeRepoInOrg:["DELETE /orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}"],updateDiscussionCommentInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}"],updateDiscussionInOrg:["PATCH /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}"],updateInOrg:["PATCH /orgs/{org}/teams/{team_slug}"]},users:{addEmailForAuthenticated:["POST /user/emails",{},{renamed:["users","addEmailForAuthenticatedUser"]}],addEmailForAuthenticatedUser:["POST /user/emails"],addSocialAccountForAuthenticatedUser:["POST /user/social_accounts"],block:["PUT /user/blocks/{username}"],checkBlocked:["GET /user/blocks/{username}"],checkFollowingForUser:["GET /users/{username}/following/{target_user}"],checkPersonIsFollowedByAuthenticated:["GET /user/following/{username}"],createGpgKeyForAuthenticated:["POST /user/gpg_keys",{},{renamed:["users","createGpgKeyForAuthenticatedUser"]}],createGpgKeyForAuthenticatedUser:["POST /user/gpg_keys"],createPublicSshKeyForAuthenticated:["POST /user/keys",{},{renamed:["users","createPublicSshKeyForAuthenticatedUser"]}],createPublicSshKeyForAuthenticatedUser:["POST /user/keys"],createSshSigningKeyForAuthenticatedUser:["POST /user/ssh_signing_keys"],deleteEmailForAuthenticated:["DELETE /user/emails",{},{renamed:["users","deleteEmailForAuthenticatedUser"]}],deleteEmailForAuthenticatedUser:["DELETE /user/emails"],deleteGpgKeyForAuthenticated:["DELETE /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","deleteGpgKeyForAuthenticatedUser"]}],deleteGpgKeyForAuthenticatedUser:["DELETE /user/gpg_keys/{gpg_key_id}"],deletePublicSshKeyForAuthenticated:["DELETE /user/keys/{key_id}",{},{renamed:["users","deletePublicSshKeyForAuthenticatedUser"]}],deletePublicSshKeyForAuthenticatedUser:["DELETE /user/keys/{key_id}"],deleteSocialAccountForAuthenticatedUser:["DELETE /user/social_accounts"],deleteSshSigningKeyForAuthenticatedUser:["DELETE /user/ssh_signing_keys/{ssh_signing_key_id}"],follow:["PUT /user/following/{username}"],getAuthenticated:["GET /user"],getByUsername:["GET /users/{username}"],getContextForUser:["GET /users/{username}/hovercard"],getGpgKeyForAuthenticated:["GET /user/gpg_keys/{gpg_key_id}",{},{renamed:["users","getGpgKeyForAuthenticatedUser"]}],getGpgKeyForAuthenticatedUser:["GET /user/gpg_keys/{gpg_key_id}"],getPublicSshKeyForAuthenticated:["GET /user/keys/{key_id}",{},{renamed:["users","getPublicSshKeyForAuthenticatedUser"]}],getPublicSshKeyForAuthenticatedUser:["GET /user/keys/{key_id}"],getSshSigningKeyForAuthenticatedUser:["GET /user/ssh_signing_keys/{ssh_signing_key_id}"],list:["GET /users"],listBlockedByAuthenticated:["GET /user/blocks",{},{renamed:["users","listBlockedByAuthenticatedUser"]}],listBlockedByAuthenticatedUser:["GET /user/blocks"],listEmailsForAuthenticated:["GET /user/emails",{},{renamed:["users","listEmailsForAuthenticatedUser"]}],listEmailsForAuthenticatedUser:["GET /user/emails"],listFollowedByAuthenticated:["GET /user/following",{},{renamed:["users","listFollowedByAuthenticatedUser"]}],listFollowedByAuthenticatedUser:["GET /user/following"],listFollowersForAuthenticatedUser:["GET /user/followers"],listFollowersForUser:["GET /users/{username}/followers"],listFollowingForUser:["GET /users/{username}/following"],listGpgKeysForAuthenticated:["GET /user/gpg_keys",{},{renamed:["users","listGpgKeysForAuthenticatedUser"]}],listGpgKeysForAuthenticatedUser:["GET /user/gpg_keys"],listGpgKeysForUser:["GET /users/{username}/gpg_keys"],listPublicEmailsForAuthenticated:["GET /user/public_emails",{},{renamed:["users","listPublicEmailsForAuthenticatedUser"]}],listPublicEmailsForAuthenticatedUser:["GET /user/public_emails"],listPublicKeysForUser:["GET /users/{username}/keys"],listPublicSshKeysForAuthenticated:["GET /user/keys",{},{renamed:["users","listPublicSshKeysForAuthenticatedUser"]}],listPublicSshKeysForAuthenticatedUser:["GET /user/keys"],listSocialAccountsForAuthenticatedUser:["GET /user/social_accounts"],listSocialAccountsForUser:["GET /users/{username}/social_accounts"],listSshSigningKeysForAuthenticatedUser:["GET /user/ssh_signing_keys"],listSshSigningKeysForUser:["GET /users/{username}/ssh_signing_keys"],setPrimaryEmailVisibilityForAuthenticated:["PATCH /user/email/visibility",{},{renamed:["users","setPrimaryEmailVisibilityForAuthenticatedUser"]}],setPrimaryEmailVisibilityForAuthenticatedUser:["PATCH /user/email/visibility"],unblock:["DELETE /user/blocks/{username}"],unfollow:["DELETE /user/following/{username}"],updateAuthenticated:["PATCH /user"]}};var A=u;var b=new Map;for(const[r,i]of Object.entries(A)){for(const[a,c]of Object.entries(i)){const[i,p,l]=c;const[d,u]=i.split(/ /);const A=Object.assign({method:d,url:u},p);if(!b.has(r)){b.set(r,new Map)}b.get(r).set(a,{scope:r,methodName:a,endpointDefaults:A,decorations:l})}}var h={has({scope:r},i){return b.get(r).has(i)},getOwnPropertyDescriptor(r,i){return{value:this.get(r,i),configurable:true,writable:true,enumerable:true}},defineProperty(r,i,a){Object.defineProperty(r.cache,i,a);return true},deleteProperty(r,i){delete r.cache[i];return true},ownKeys({scope:r}){return[...b.get(r).keys()]},set(r,i,a){return r.cache[i]=a},get({octokit:r,scope:i,cache:a},c){if(a[c]){return a[c]}const p=b.get(i).get(c);if(!p){return void 0}const{endpointDefaults:l,decorations:d}=p;if(d){a[c]=decorate(r,i,c,l,d)}else{a[c]=r.request.defaults(l)}return a[c]}};function endpointsToMethods(r){const i={};for(const a of b.keys()){i[a]=new Proxy({octokit:r,scope:a,cache:{}},h)}return i}function decorate(r,i,a,c,p){const l=r.request.defaults(c);function withDecorations(...c){let d=l.endpoint.merge(...c);if(p.mapToData){d=Object.assign({},d,{data:d[p.mapToData],[p.mapToData]:void 0});return l(d)}if(p.renamed){const[c,l]=p.renamed;r.log.warn(`octokit.${i}.${a}() has been renamed to octokit.${c}.${l}()`)}if(p.deprecated){r.log.warn(p.deprecated)}if(p.renamedParameters){const d=l.endpoint.merge(...c);for(const[c,l]of Object.entries(p.renamedParameters)){if(c in d){r.log.warn(`"${c}" parameter is deprecated for "octokit.${i}.${a}()". Use "${l}" instead`);if(!(l in d)){d[l]=d[c]}delete d[c]}}return l(d)}return l(...c)}return Object.assign(withDecorations,l)}function restEndpointMethods(r){const i=endpointsToMethods(r);return{rest:i}}restEndpointMethods.VERSION=d;function legacyRestEndpointMethods(r){const i=endpointsToMethods(r);return{...i,rest:i}}legacyRestEndpointMethods.VERSION=d;0&&0},28090:function(r,i,a){"use strict";var c=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.create=void 0;const p=a(28298);function create(r,i){return c(this,void 0,void 0,(function*(){return yield p.DefaultGlobber.create(r,i)}))}i.create=create},51026:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};Object.defineProperty(i,"__esModule",{value:true});i.getOptions=void 0;const d=l(a(42186));function getOptions(r){const i={followSymbolicLinks:true,implicitDescendants:true,omitBrokenSymbolicLinks:true};if(r){if(typeof r.followSymbolicLinks==="boolean"){i.followSymbolicLinks=r.followSymbolicLinks;d.debug(`followSymbolicLinks '${i.followSymbolicLinks}'`)}if(typeof r.implicitDescendants==="boolean"){i.implicitDescendants=r.implicitDescendants;d.debug(`implicitDescendants '${i.implicitDescendants}'`)}if(typeof r.omitBrokenSymbolicLinks==="boolean"){i.omitBrokenSymbolicLinks=r.omitBrokenSymbolicLinks;d.debug(`omitBrokenSymbolicLinks '${i.omitBrokenSymbolicLinks}'`)}}return i}i.getOptions=getOptions},28298:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var u=this&&this.__asyncValues||function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],a;return i?i.call(r):(r=typeof __values==="function"?__values(r):r[Symbol.iterator](),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(i){a[i]=r[i]&&function(a){return new Promise((function(c,p){a=r[i](a),settle(c,p,a.done,a.value)}))}}function settle(r,i,a,c){Promise.resolve(c).then((function(i){r({value:i,done:a})}),i)}};var A=this&&this.__await||function(r){return this instanceof A?(this.v=r,this):new A(r)};var b=this&&this.__asyncGenerator||function(r,i,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=a.apply(r,i||[]),p,l=[];return p={},verb("next"),verb("throw"),verb("return"),p[Symbol.asyncIterator]=function(){return this},p;function verb(r){if(c[r])p[r]=function(i){return new Promise((function(a,c){l.push([r,i,a,c])>1||resume(r,i)}))}}function resume(r,i){try{step(c[r](i))}catch(r){settle(l[0][3],r)}}function step(r){r.value instanceof A?Promise.resolve(r.value.v).then(fulfill,reject):settle(l[0][2],r)}function fulfill(r){resume("next",r)}function reject(r){resume("throw",r)}function settle(r,i){if(r(i),l.shift(),l.length)resume(l[0][0],l[0][1])}};Object.defineProperty(i,"__esModule",{value:true});i.DefaultGlobber=void 0;const h=l(a(42186));const g=l(a(57147));const M=l(a(51026));const z=l(a(71017));const O=l(a(29005));const y=a(81063);const v=a(64536);const C=a(89117);const q=process.platform==="win32";class DefaultGlobber{constructor(r){this.patterns=[];this.searchPaths=[];this.options=M.getOptions(r)}getSearchPaths(){return this.searchPaths.slice()}glob(){var r,i;return d(this,void 0,void 0,(function*(){const a=[];try{for(var c=u(this.globGenerator()),p;p=yield c.next(),!p.done;){const r=p.value;a.push(r)}}catch(i){r={error:i}}finally{try{if(p&&!p.done&&(i=c.return))yield i.call(c)}finally{if(r)throw r.error}}return a}))}globGenerator(){return b(this,arguments,(function*globGenerator_1(){const r=M.getOptions(this.options);const i=[];for(const a of this.patterns){i.push(a);if(r.implicitDescendants&&(a.trailingSeparator||a.segments[a.segments.length-1]!=="**")){i.push(new v.Pattern(a.negate,true,a.segments.concat("**")))}}const a=[];for(const r of O.getSearchPaths(i)){h.debug(`Search path '${r}'`);try{yield A(g.promises.lstat(r))}catch(r){if(r.code==="ENOENT"){continue}throw r}a.unshift(new C.SearchState(r,1))}const c=[];while(a.length){const p=a.pop();const l=O.match(i,p.path);const d=!!l||O.partialMatch(i,p.path);if(!l&&!d){continue}const u=yield A(DefaultGlobber.stat(p,r,c));if(!u){continue}if(u.isDirectory()){if(l&y.MatchKind.Directory){yield yield A(p.path)}else if(!d){continue}const r=p.level+1;const i=(yield A(g.promises.readdir(p.path))).map((i=>new C.SearchState(z.join(p.path,i),r)));a.push(...i.reverse())}else if(l&y.MatchKind.File){yield yield A(p.path)}}}))}static create(r,i){return d(this,void 0,void 0,(function*(){const a=new DefaultGlobber(i);if(q){r=r.replace(/\r\n/g,"\n");r=r.replace(/\r/g,"\n")}const c=r.split("\n").map((r=>r.trim()));for(const r of c){if(!r||r.startsWith("#")){continue}else{a.patterns.push(new v.Pattern(r))}}a.searchPaths.push(...O.getSearchPaths(a.patterns));return a}))}static stat(r,i,a){return d(this,void 0,void 0,(function*(){let c;if(i.followSymbolicLinks){try{c=yield g.promises.stat(r.path)}catch(a){if(a.code==="ENOENT"){if(i.omitBrokenSymbolicLinks){h.debug(`Broken symlink '${r.path}'`);return undefined}throw new Error(`No information found for the path '${r.path}'. This may indicate a broken symbolic link.`)}throw a}}else{c=yield g.promises.lstat(r.path)}if(c.isDirectory()&&i.followSymbolicLinks){const i=yield g.promises.realpath(r.path);while(a.length>=r.level){a.pop()}if(a.some((r=>r===i))){h.debug(`Symlink cycle detected for path '${r.path}' and realpath '${i}'`);return undefined}a.push(i)}return c}))}}i.DefaultGlobber=DefaultGlobber},81063:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.MatchKind=void 0;var a;(function(r){r[r["None"]=0]="None";r[r["Directory"]=1]="Directory";r[r["File"]=2]="File";r[r["All"]=3]="All"})(a=i.MatchKind||(i.MatchKind={}))},1849:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.safeTrimTrailingSeparator=i.normalizeSeparators=i.hasRoot=i.hasAbsoluteRoot=i.ensureAbsoluteRoot=i.dirname=void 0;const u=l(a(71017));const A=d(a(39491));const b=process.platform==="win32";function dirname(r){r=safeTrimTrailingSeparator(r);if(b&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(r)){return r}let i=u.dirname(r);if(b&&/^\\\\[^\\]+\\[^\\]+\\$/.test(i)){i=safeTrimTrailingSeparator(i)}return i}i.dirname=dirname;function ensureAbsoluteRoot(r,i){A.default(r,`ensureAbsoluteRoot parameter 'root' must not be empty`);A.default(i,`ensureAbsoluteRoot parameter 'itemPath' must not be empty`);if(hasAbsoluteRoot(i)){return i}if(b){if(i.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();A.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`);if(i[0].toUpperCase()===r[0].toUpperCase()){if(i.length===2){return`${i[0]}:\\${r.substr(3)}`}else{if(!r.endsWith("\\")){r+="\\"}return`${i[0]}:\\${r.substr(3)}${i.substr(2)}`}}else{return`${i[0]}:\\${i.substr(2)}`}}else if(normalizeSeparators(i).match(/^\\$|^\\[^\\]/)){const r=process.cwd();A.default(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`);return`${r[0]}:\\${i.substr(1)}`}}A.default(hasAbsoluteRoot(r),`ensureAbsoluteRoot parameter 'root' must have an absolute root`);if(r.endsWith("/")||b&&r.endsWith("\\")){}else{r+=u.sep}return r+i}i.ensureAbsoluteRoot=ensureAbsoluteRoot;function hasAbsoluteRoot(r){A.default(r,`hasAbsoluteRoot parameter 'itemPath' must not be empty`);r=normalizeSeparators(r);if(b){return r.startsWith("\\\\")||/^[A-Z]:\\/i.test(r)}return r.startsWith("/")}i.hasAbsoluteRoot=hasAbsoluteRoot;function hasRoot(r){A.default(r,`isRooted parameter 'itemPath' must not be empty`);r=normalizeSeparators(r);if(b){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}i.hasRoot=hasRoot;function normalizeSeparators(r){r=r||"";if(b){r=r.replace(/\//g,"\\");const i=/^\\\\+[^\\]/.test(r);return(i?"\\":"")+r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}i.normalizeSeparators=normalizeSeparators;function safeTrimTrailingSeparator(r){if(!r){return""}r=normalizeSeparators(r);if(!r.endsWith(u.sep)){return r}if(r===u.sep){return r}if(b&&/^[A-Z]:\\$/i.test(r)){return r}return r.substr(0,r.length-1)}i.safeTrimTrailingSeparator=safeTrimTrailingSeparator},96836:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.Path=void 0;const u=l(a(71017));const A=l(a(1849));const b=d(a(39491));const h=process.platform==="win32";class Path{constructor(r){this.segments=[];if(typeof r==="string"){b.default(r,`Parameter 'itemPath' must not be empty`);r=A.safeTrimTrailingSeparator(r);if(!A.hasRoot(r)){this.segments=r.split(u.sep)}else{let i=r;let a=A.dirname(i);while(a!==i){const r=u.basename(i);this.segments.unshift(r);i=a;a=A.dirname(i)}this.segments.unshift(i)}}else{b.default(r.length>0,`Parameter 'itemPath' must not be an empty array`);for(let i=0;i!r.negate));const i={};for(const a of r){const r=A?a.searchPath.toUpperCase():a.searchPath;i[r]="candidate"}const a=[];for(const c of r){const r=A?c.searchPath.toUpperCase():c.searchPath;if(i[r]==="included"){continue}let p=false;let l=r;let u=d.dirname(l);while(u!==l){if(i[u]){p=true;break}l=u;u=d.dirname(l)}if(!p){a.push(c.searchPath);i[r]="included"}}return a}i.getSearchPaths=getSearchPaths;function match(r,i){let a=u.MatchKind.None;for(const c of r){if(c.negate){a&=~c.match(i)}else{a|=c.match(i)}}return a}i.match=match;function partialMatch(r,i){return r.some((r=>!r.negate&&r.partialMatch(i)))}i.partialMatch=partialMatch},64536:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.Pattern=void 0;const u=l(a(22037));const A=l(a(71017));const b=l(a(1849));const h=d(a(39491));const g=a(83973);const M=a(81063);const z=a(96836);const O=process.platform==="win32";class Pattern{constructor(r,i=false,a,c){this.negate=false;let p;if(typeof r==="string"){p=r.trim()}else{a=a||[];h.default(a.length,`Parameter 'segments' must not empty`);const i=Pattern.getLiteral(a[0]);h.default(i&&b.hasAbsoluteRoot(i),`Parameter 'segments' first element must be a root path`);p=new z.Path(a).toString().trim();if(r){p=`!${p}`}}while(p.startsWith("!")){this.negate=!this.negate;p=p.substr(1).trim()}p=Pattern.fixupPattern(p,c);this.segments=new z.Path(p).segments;this.trailingSeparator=b.normalizeSeparators(p).endsWith(A.sep);p=b.safeTrimTrailingSeparator(p);let l=false;const d=this.segments.map((r=>Pattern.getLiteral(r))).filter((r=>!l&&!(l=r==="")));this.searchPath=new z.Path(d).toString();this.rootRegExp=new RegExp(Pattern.regExpEscape(d[0]),O?"i":"");this.isImplicitPattern=i;const u={dot:true,nobrace:true,nocase:O,nocomment:true,noext:true,nonegate:true};p=O?p.replace(/\\/g,"/"):p;this.minimatch=new g.Minimatch(p,u)}match(r){if(this.segments[this.segments.length-1]==="**"){r=b.normalizeSeparators(r);if(!r.endsWith(A.sep)&&this.isImplicitPattern===false){r=`${r}${A.sep}`}}else{r=b.safeTrimTrailingSeparator(r)}if(this.minimatch.match(r)){return this.trailingSeparator?M.MatchKind.Directory:M.MatchKind.All}return M.MatchKind.None}partialMatch(r){r=b.safeTrimTrailingSeparator(r);if(b.dirname(r)===r){return this.rootRegExp.test(r)}return this.minimatch.matchOne(r.split(O?/\\+/:/\/+/),this.minimatch.set[0],true)}static globEscape(r){return(O?r:r.replace(/\\/g,"\\\\")).replace(/(\[)(?=[^/]+\])/g,"[[]").replace(/\?/g,"[?]").replace(/\*/g,"[*]")}static fixupPattern(r,i){h.default(r,"pattern cannot be empty");const a=new z.Path(r).segments.map((r=>Pattern.getLiteral(r)));h.default(a.every(((r,i)=>(r!=="."||i===0)&&r!=="..")),`Invalid pattern '${r}'. Relative pathing '.' and '..' is not allowed.`);h.default(!b.hasRoot(r)||a[0],`Invalid pattern '${r}'. Root segment must not contain globs.`);r=b.normalizeSeparators(r);if(r==="."||r.startsWith(`.${A.sep}`)){r=Pattern.globEscape(process.cwd())+r.substr(1)}else if(r==="~"||r.startsWith(`~${A.sep}`)){i=i||u.homedir();h.default(i,"Unable to determine HOME directory");h.default(b.hasAbsoluteRoot(i),`Expected HOME directory to be a rooted path. Actual '${i}'`);r=Pattern.globEscape(i)+r.substr(1)}else if(O&&(r.match(/^[A-Z]:$/i)||r.match(/^[A-Z]:[^\\]/i))){let i=b.ensureAbsoluteRoot("C:\\dummy-root",r.substr(0,2));if(r.length>2&&!i.endsWith("\\")){i+="\\"}r=Pattern.globEscape(i)+r.substr(2)}else if(O&&(r==="\\"||r.match(/^\\[^\\]/))){let i=b.ensureAbsoluteRoot("C:\\dummy-root","\\");if(!i.endsWith("\\")){i+="\\"}r=Pattern.globEscape(i)+r.substr(1)}else{r=b.ensureAbsoluteRoot(Pattern.globEscape(process.cwd()),r)}return b.normalizeSeparators(r)}static getLiteral(r){let i="";for(let a=0;a=0){if(c.length>1){return""}if(c){i+=c;a=p;continue}}}i+=c}return i}static regExpEscape(r){return r.replace(/[[\\^$.|?*+()]/g,"\\$&")}}i.Pattern=Pattern},89117:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.SearchState=void 0;class SearchState{constructor(r,i){this.path=r;this.level=i}}i.SearchState=SearchState},35526:function(r,i){"use strict";var a=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.PersonalAccessTokenCredentialHandler=i.BearerCredentialHandler=i.BasicCredentialHandler=void 0;class BasicCredentialHandler{constructor(r,i){this.username=r;this.password=i}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`${this.username}:${this.password}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BasicCredentialHandler=BasicCredentialHandler;class BearerCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Bearer ${this.token}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.BearerCredentialHandler=BearerCredentialHandler;class PersonalAccessTokenCredentialHandler{constructor(r){this.token=r}prepareRequest(r){if(!r.headers){throw Error("The request has no headers")}r.headers["Authorization"]=`Basic ${Buffer.from(`PAT:${this.token}`).toString("base64")}`}canHandleAuthentication(){return false}handleAuthentication(){return a(this,void 0,void 0,(function*(){throw new Error("not implemented")}))}}i.PersonalAccessTokenCredentialHandler=PersonalAccessTokenCredentialHandler},96255:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;var p=Object.getOwnPropertyDescriptor(i,a);if(!p||("get"in p?!i.__esModule:p.writable||p.configurable)){p={enumerable:true,get:function(){return i[a]}}}Object.defineProperty(r,c,p)}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.prototype.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.HttpClient=i.isHttps=i.HttpClientResponse=i.HttpClientError=i.getProxyUrl=i.MediaTypes=i.Headers=i.HttpCodes=void 0;const u=l(a(13685));const A=l(a(95687));const b=l(a(19835));const h=l(a(74294));const g=a(41773);var M;(function(r){r[r["OK"]=200]="OK";r[r["MultipleChoices"]=300]="MultipleChoices";r[r["MovedPermanently"]=301]="MovedPermanently";r[r["ResourceMoved"]=302]="ResourceMoved";r[r["SeeOther"]=303]="SeeOther";r[r["NotModified"]=304]="NotModified";r[r["UseProxy"]=305]="UseProxy";r[r["SwitchProxy"]=306]="SwitchProxy";r[r["TemporaryRedirect"]=307]="TemporaryRedirect";r[r["PermanentRedirect"]=308]="PermanentRedirect";r[r["BadRequest"]=400]="BadRequest";r[r["Unauthorized"]=401]="Unauthorized";r[r["PaymentRequired"]=402]="PaymentRequired";r[r["Forbidden"]=403]="Forbidden";r[r["NotFound"]=404]="NotFound";r[r["MethodNotAllowed"]=405]="MethodNotAllowed";r[r["NotAcceptable"]=406]="NotAcceptable";r[r["ProxyAuthenticationRequired"]=407]="ProxyAuthenticationRequired";r[r["RequestTimeout"]=408]="RequestTimeout";r[r["Conflict"]=409]="Conflict";r[r["Gone"]=410]="Gone";r[r["TooManyRequests"]=429]="TooManyRequests";r[r["InternalServerError"]=500]="InternalServerError";r[r["NotImplemented"]=501]="NotImplemented";r[r["BadGateway"]=502]="BadGateway";r[r["ServiceUnavailable"]=503]="ServiceUnavailable";r[r["GatewayTimeout"]=504]="GatewayTimeout"})(M||(i.HttpCodes=M={}));var z;(function(r){r["Accept"]="accept";r["ContentType"]="content-type"})(z||(i.Headers=z={}));var O;(function(r){r["ApplicationJson"]="application/json"})(O||(i.MediaTypes=O={}));function getProxyUrl(r){const i=b.getProxyUrl(new URL(r));return i?i.href:""}i.getProxyUrl=getProxyUrl;const y=[M.MovedPermanently,M.ResourceMoved,M.SeeOther,M.TemporaryRedirect,M.PermanentRedirect];const v=[M.BadGateway,M.ServiceUnavailable,M.GatewayTimeout];const C=["OPTIONS","GET","DELETE","HEAD"];const q=10;const R=5;class HttpClientError extends Error{constructor(r,i){super(r);this.name="HttpClientError";this.statusCode=i;Object.setPrototypeOf(this,HttpClientError.prototype)}}i.HttpClientError=HttpClientError;class HttpClientResponse{constructor(r){this.message=r}readBody(){return d(this,void 0,void 0,(function*(){return new Promise((r=>d(this,void 0,void 0,(function*(){let i=Buffer.alloc(0);this.message.on("data",(r=>{i=Buffer.concat([i,r])}));this.message.on("end",(()=>{r(i.toString())}))}))))}))}readBodyBuffer(){return d(this,void 0,void 0,(function*(){return new Promise((r=>d(this,void 0,void 0,(function*(){const i=[];this.message.on("data",(r=>{i.push(r)}));this.message.on("end",(()=>{r(Buffer.concat(i))}))}))))}))}}i.HttpClientResponse=HttpClientResponse;function isHttps(r){const i=new URL(r);return i.protocol==="https:"}i.isHttps=isHttps;class HttpClient{constructor(r,i,a){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=r;this.handlers=i||[];this.requestOptions=a;if(a){if(a.ignoreSslError!=null){this._ignoreSslError=a.ignoreSslError}this._socketTimeout=a.socketTimeout;if(a.allowRedirects!=null){this._allowRedirects=a.allowRedirects}if(a.allowRedirectDowngrade!=null){this._allowRedirectDowngrade=a.allowRedirectDowngrade}if(a.maxRedirects!=null){this._maxRedirects=Math.max(a.maxRedirects,0)}if(a.keepAlive!=null){this._keepAlive=a.keepAlive}if(a.allowRetries!=null){this._allowRetries=a.allowRetries}if(a.maxRetries!=null){this._maxRetries=a.maxRetries}}}options(r,i){return d(this,void 0,void 0,(function*(){return this.request("OPTIONS",r,null,i||{})}))}get(r,i){return d(this,void 0,void 0,(function*(){return this.request("GET",r,null,i||{})}))}del(r,i){return d(this,void 0,void 0,(function*(){return this.request("DELETE",r,null,i||{})}))}post(r,i,a){return d(this,void 0,void 0,(function*(){return this.request("POST",r,i,a||{})}))}patch(r,i,a){return d(this,void 0,void 0,(function*(){return this.request("PATCH",r,i,a||{})}))}put(r,i,a){return d(this,void 0,void 0,(function*(){return this.request("PUT",r,i,a||{})}))}head(r,i){return d(this,void 0,void 0,(function*(){return this.request("HEAD",r,null,i||{})}))}sendStream(r,i,a,c){return d(this,void 0,void 0,(function*(){return this.request(r,i,a,c)}))}getJson(r,i={}){return d(this,void 0,void 0,(function*(){i[z.Accept]=this._getExistingOrDefaultHeader(i,z.Accept,O.ApplicationJson);const a=yield this.get(r,i);return this._processResponse(a,this.requestOptions)}))}postJson(r,i,a={}){return d(this,void 0,void 0,(function*(){const c=JSON.stringify(i,null,2);a[z.Accept]=this._getExistingOrDefaultHeader(a,z.Accept,O.ApplicationJson);a[z.ContentType]=this._getExistingOrDefaultHeader(a,z.ContentType,O.ApplicationJson);const p=yield this.post(r,c,a);return this._processResponse(p,this.requestOptions)}))}putJson(r,i,a={}){return d(this,void 0,void 0,(function*(){const c=JSON.stringify(i,null,2);a[z.Accept]=this._getExistingOrDefaultHeader(a,z.Accept,O.ApplicationJson);a[z.ContentType]=this._getExistingOrDefaultHeader(a,z.ContentType,O.ApplicationJson);const p=yield this.put(r,c,a);return this._processResponse(p,this.requestOptions)}))}patchJson(r,i,a={}){return d(this,void 0,void 0,(function*(){const c=JSON.stringify(i,null,2);a[z.Accept]=this._getExistingOrDefaultHeader(a,z.Accept,O.ApplicationJson);a[z.ContentType]=this._getExistingOrDefaultHeader(a,z.ContentType,O.ApplicationJson);const p=yield this.patch(r,c,a);return this._processResponse(p,this.requestOptions)}))}request(r,i,a,c){return d(this,void 0,void 0,(function*(){if(this._disposed){throw new Error("Client has already been disposed.")}const p=new URL(i);let l=this._prepareRequest(r,p,c);const d=this._allowRetries&&C.includes(r)?this._maxRetries+1:1;let u=0;let A;do{A=yield this.requestRaw(l,a);if(A&&A.message&&A.message.statusCode===M.Unauthorized){let r;for(const i of this.handlers){if(i.canHandleAuthentication(A)){r=i;break}}if(r){return r.handleAuthentication(this,l,a)}else{return A}}let i=this._maxRedirects;while(A.message.statusCode&&y.includes(A.message.statusCode)&&this._allowRedirects&&i>0){const d=A.message.headers["location"];if(!d){break}const u=new URL(d);if(p.protocol==="https:"&&p.protocol!==u.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 A.readBody();if(u.hostname!==p.hostname){for(const r in c){if(r.toLowerCase()==="authorization"){delete c[r]}}}l=this._prepareRequest(r,u,c);A=yield this.requestRaw(l,a);i--}if(!A.message.statusCode||!v.includes(A.message.statusCode)){return A}u+=1;if(u{function callbackForResult(r,i){if(r){c(r)}else if(!i){c(new Error("Unknown error"))}else{a(i)}}this.requestRawWithCallback(r,i,callbackForResult)}))}))}requestRawWithCallback(r,i,a){if(typeof i==="string"){if(!r.options.headers){r.options.headers={}}r.options.headers["Content-Length"]=Buffer.byteLength(i,"utf8")}let c=false;function handleResult(r,i){if(!c){c=true;a(r,i)}}const p=r.httpModule.request(r.options,(r=>{const i=new HttpClientResponse(r);handleResult(undefined,i)}));let l;p.on("socket",(r=>{l=r}));p.setTimeout(this._socketTimeout||3*6e4,(()=>{if(l){l.end()}handleResult(new Error(`Request timeout: ${r.options.path}`))}));p.on("error",(function(r){handleResult(r)}));if(i&&typeof i==="string"){p.write(i,"utf8")}if(i&&typeof i!=="string"){i.on("close",(function(){p.end()}));i.pipe(p)}else{p.end()}}getAgent(r){const i=new URL(r);return this._getAgent(i)}getAgentDispatcher(r){const i=new URL(r);const a=b.getProxyUrl(i);const c=a&&a.hostname;if(!c){return}return this._getProxyAgentDispatcher(i,a)}_prepareRequest(r,i,a){const c={};c.parsedUrl=i;const p=c.parsedUrl.protocol==="https:";c.httpModule=p?A:u;const l=p?443:80;c.options={};c.options.host=c.parsedUrl.hostname;c.options.port=c.parsedUrl.port?parseInt(c.parsedUrl.port):l;c.options.path=(c.parsedUrl.pathname||"")+(c.parsedUrl.search||"");c.options.method=r;c.options.headers=this._mergeHeaders(a);if(this.userAgent!=null){c.options.headers["user-agent"]=this.userAgent}c.options.agent=this._getAgent(c.parsedUrl);if(this.handlers){for(const r of this.handlers){r.prepareRequest(c.options)}}return c}_mergeHeaders(r){if(this.requestOptions&&this.requestOptions.headers){return Object.assign({},lowercaseKeys(this.requestOptions.headers),lowercaseKeys(r||{}))}return lowercaseKeys(r||{})}_getExistingOrDefaultHeader(r,i,a){let c;if(this.requestOptions&&this.requestOptions.headers){c=lowercaseKeys(this.requestOptions.headers)[i]}return r[i]||c||a}_getAgent(r){let i;const a=b.getProxyUrl(r);const c=a&&a.hostname;if(this._keepAlive&&c){i=this._proxyAgent}if(!c){i=this._agent}if(i){return i}const p=r.protocol==="https:";let l=100;if(this.requestOptions){l=this.requestOptions.maxSockets||u.globalAgent.maxSockets}if(a&&a.hostname){const r={maxSockets:l,keepAlive:this._keepAlive,proxy:Object.assign(Object.assign({},(a.username||a.password)&&{proxyAuth:`${a.username}:${a.password}`}),{host:a.hostname,port:a.port})};let c;const d=a.protocol==="https:";if(p){c=d?h.httpsOverHttps:h.httpsOverHttp}else{c=d?h.httpOverHttps:h.httpOverHttp}i=c(r);this._proxyAgent=i}if(!i){const r={keepAlive:this._keepAlive,maxSockets:l};i=p?new A.Agent(r):new u.Agent(r);this._agent=i}if(p&&this._ignoreSslError){i.options=Object.assign(i.options||{},{rejectUnauthorized:false})}return i}_getProxyAgentDispatcher(r,i){let a;if(this._keepAlive){a=this._proxyAgentDispatcher}if(a){return a}const c=r.protocol==="https:";a=new g.ProxyAgent(Object.assign({uri:i.href,pipelining:!this._keepAlive?0:1},(i.username||i.password)&&{token:`${i.username}:${i.password}`}));this._proxyAgentDispatcher=a;if(c&&this._ignoreSslError){a.options=Object.assign(a.options.requestTls||{},{rejectUnauthorized:false})}return a}_performExponentialBackoff(r){return d(this,void 0,void 0,(function*(){r=Math.min(q,r);const i=R*Math.pow(2,r);return new Promise((r=>setTimeout((()=>r()),i)))}))}_processResponse(r,i){return d(this,void 0,void 0,(function*(){return new Promise(((a,c)=>d(this,void 0,void 0,(function*(){const p=r.message.statusCode||0;const l={statusCode:p,result:null,headers:{}};if(p===M.NotFound){a(l)}function dateTimeDeserializer(r,i){if(typeof i==="string"){const r=new Date(i);if(!isNaN(r.valueOf())){return r}}return i}let d;let u;try{u=yield r.readBody();if(u&&u.length>0){if(i&&i.deserializeDates){d=JSON.parse(u,dateTimeDeserializer)}else{d=JSON.parse(u)}l.result=d}l.headers=r.message.headers}catch(r){}if(p>299){let r;if(d&&d.message){r=d.message}else if(u&&u.length>0){r=u}else{r=`Failed request: (${p})`}const i=new HttpClientError(r,p);i.result=l.result;c(i)}else{a(l)}}))))}))}}i.HttpClient=HttpClient;const lowercaseKeys=r=>Object.keys(r).reduce(((i,a)=>(i[a.toLowerCase()]=r[a],i)),{})},19835:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});i.checkBypass=i.getProxyUrl=void 0;function getProxyUrl(r){const i=r.protocol==="https:";if(checkBypass(r)){return undefined}const a=(()=>{if(i){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(a){try{return new URL(a)}catch(r){if(!a.startsWith("http://")&&!a.startsWith("https://"))return new URL(`http://${a}`)}}else{return undefined}}i.getProxyUrl=getProxyUrl;function checkBypass(r){if(!r.hostname){return false}const i=r.hostname;if(isLoopbackAddress(i)){return true}const a=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!a){return false}let c;if(r.port){c=Number(r.port)}else if(r.protocol==="http:"){c=80}else if(r.protocol==="https:"){c=443}const p=[r.hostname.toUpperCase()];if(typeof c==="number"){p.push(`${p[0]}:${c}`)}for(const r of a.split(",").map((r=>r.trim().toUpperCase())).filter((r=>r))){if(r==="*"||p.some((i=>i===r||i.endsWith(`.${r}`)||r.startsWith(".")&&i.endsWith(`${r}`)))){return true}}return false}i.checkBypass=checkBypass;function isLoopbackAddress(r){const i=r.toLowerCase();return i==="localhost"||i.startsWith("127.")||i.startsWith("[::1]")||i.startsWith("[0:0:0:0:0:0:0:1]")}},81962:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var u;Object.defineProperty(i,"__esModule",{value:true});i.getCmdPath=i.tryGetExecutablePath=i.isRooted=i.isDirectory=i.exists=i.READONLY=i.UV_FS_O_EXLOCK=i.IS_WINDOWS=i.unlink=i.symlink=i.stat=i.rmdir=i.rm=i.rename=i.readlink=i.readdir=i.open=i.mkdir=i.lstat=i.copyFile=i.chmod=void 0;const A=l(a(57147));const b=l(a(71017));u=A.promises,i.chmod=u.chmod,i.copyFile=u.copyFile,i.lstat=u.lstat,i.mkdir=u.mkdir,i.open=u.open,i.readdir=u.readdir,i.readlink=u.readlink,i.rename=u.rename,i.rm=u.rm,i.rmdir=u.rmdir,i.stat=u.stat,i.symlink=u.symlink,i.unlink=u.unlink;i.IS_WINDOWS=process.platform==="win32";i.UV_FS_O_EXLOCK=268435456;i.READONLY=A.constants.O_RDONLY;function exists(r){return d(this,void 0,void 0,(function*(){try{yield i.stat(r)}catch(r){if(r.code==="ENOENT"){return false}throw r}return true}))}i.exists=exists;function isDirectory(r,a=false){return d(this,void 0,void 0,(function*(){const c=a?yield i.stat(r):yield i.lstat(r);return c.isDirectory()}))}i.isDirectory=isDirectory;function isRooted(r){r=normalizeSeparators(r);if(!r){throw new Error('isRooted() parameter "p" cannot be empty')}if(i.IS_WINDOWS){return r.startsWith("\\")||/^[A-Z]:/i.test(r)}return r.startsWith("/")}i.isRooted=isRooted;function tryGetExecutablePath(r,a){return d(this,void 0,void 0,(function*(){let c=undefined;try{c=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(c&&c.isFile()){if(i.IS_WINDOWS){const i=b.extname(r).toUpperCase();if(a.some((r=>r.toUpperCase()===i))){return r}}else{if(isUnixExecutable(c)){return r}}}const p=r;for(const l of a){r=p+l;c=undefined;try{c=yield i.stat(r)}catch(i){if(i.code!=="ENOENT"){console.log(`Unexpected error attempting to determine if executable file exists '${r}': ${i}`)}}if(c&&c.isFile()){if(i.IS_WINDOWS){try{const a=b.dirname(r);const c=b.basename(r).toUpperCase();for(const p of yield i.readdir(a)){if(c===p.toUpperCase()){r=b.join(a,p);break}}}catch(i){console.log(`Unexpected error attempting to determine the actual case of the file '${r}': ${i}`)}return r}else{if(isUnixExecutable(c)){return r}}}}return""}))}i.tryGetExecutablePath=tryGetExecutablePath;function normalizeSeparators(r){r=r||"";if(i.IS_WINDOWS){r=r.replace(/\//g,"\\");return r.replace(/\\\\+/g,"\\")}return r.replace(/\/\/+/g,"/")}function isUnixExecutable(r){return(r.mode&1)>0||(r.mode&8)>0&&r.gid===process.getgid()||(r.mode&64)>0&&r.uid===process.getuid()}function getCmdPath(){var r;return(r=process.env["COMSPEC"])!==null&&r!==void 0?r:`cmd.exe`}i.getCmdPath=getCmdPath},47351:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.findInPath=i.which=i.mkdirP=i.rmRF=i.mv=i.cp=void 0;const u=a(39491);const A=l(a(71017));const b=l(a(81962));function cp(r,i,a={}){return d(this,void 0,void 0,(function*(){const{force:c,recursive:p,copySourceDirectory:l}=readCopyOptions(a);const d=(yield b.exists(i))?yield b.stat(i):null;if(d&&d.isFile()&&!c){return}const u=d&&d.isDirectory()&&l?A.join(i,A.basename(r)):i;if(!(yield b.exists(r))){throw new Error(`no such file or directory: ${r}`)}const h=yield b.stat(r);if(h.isDirectory()){if(!p){throw new Error(`Failed to copy. ${r} is a directory, but tried to copy without recursive flag.`)}else{yield cpDirRecursive(r,u,0,c)}}else{if(A.relative(r,u)===""){throw new Error(`'${u}' and '${r}' are the same file`)}yield copyFile(r,u,c)}}))}i.cp=cp;function mv(r,i,a={}){return d(this,void 0,void 0,(function*(){if(yield b.exists(i)){let c=true;if(yield b.isDirectory(i)){i=A.join(i,A.basename(r));c=yield b.exists(i)}if(c){if(a.force==null||a.force){yield rmRF(i)}else{throw new Error("Destination already exists")}}}yield mkdirP(A.dirname(i));yield b.rename(r,i)}))}i.mv=mv;function rmRF(r){return d(this,void 0,void 0,(function*(){if(b.IS_WINDOWS){if(/[*"<>|]/.test(r)){throw new Error('File path must not contain `*`, `"`, `<`, `>` or `|` on Windows')}}try{yield b.rm(r,{force:true,maxRetries:3,recursive:true,retryDelay:300})}catch(r){throw new Error(`File was unable to be removed ${r}`)}}))}i.rmRF=rmRF;function mkdirP(r){return d(this,void 0,void 0,(function*(){u.ok(r,"a path argument must be provided");yield b.mkdir(r,{recursive:true})}))}i.mkdirP=mkdirP;function which(r,i){return d(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}if(i){const i=yield which(r,false);if(!i){if(b.IS_WINDOWS){throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also verify the file has a valid extension for an executable file.`)}else{throw new Error(`Unable to locate executable file: ${r}. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.`)}}return i}const a=yield findInPath(r);if(a&&a.length>0){return a[0]}return""}))}i.which=which;function findInPath(r){return d(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'tool' is required")}const i=[];if(b.IS_WINDOWS&&process.env["PATHEXT"]){for(const r of process.env["PATHEXT"].split(A.delimiter)){if(r){i.push(r)}}}if(b.isRooted(r)){const a=yield b.tryGetExecutablePath(r,i);if(a){return[a]}return[]}if(r.includes(A.sep)){return[]}const a=[];if(process.env.PATH){for(const r of process.env.PATH.split(A.delimiter)){if(r){a.push(r)}}}const c=[];for(const p of a){const a=yield b.tryGetExecutablePath(A.join(p,r),i);if(a){c.push(a)}}return c}))}i.findInPath=findInPath;function readCopyOptions(r){const i=r.force==null?true:r.force;const a=Boolean(r.recursive);const c=r.copySourceDirectory==null?true:Boolean(r.copySourceDirectory);return{force:i,recursive:a,copySourceDirectory:c}}function cpDirRecursive(r,i,a,c){return d(this,void 0,void 0,(function*(){if(a>=255)return;a++;yield mkdirP(i);const p=yield b.readdir(r);for(const l of p){const p=`${r}/${l}`;const d=`${i}/${l}`;const u=yield b.lstat(p);if(u.isDirectory()){yield cpDirRecursive(p,d,a,c)}else{yield copyFile(p,d,c)}}yield b.chmod(i,(yield b.stat(r)).mode)}))}function copyFile(r,i,a){return d(this,void 0,void 0,(function*(){if((yield b.lstat(r)).isSymbolicLink()){try{yield b.lstat(i);yield b.unlink(i)}catch(r){if(r.code==="EPERM"){yield b.chmod(i,"0666");yield b.unlink(i)}}const a=yield b.readlink(r);yield b.symlink(a,i,b.IS_WINDOWS?"junction":null)}else if(!(yield b.exists(i))||a){yield b.copyFile(r,i)}}))}},32473:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i._readLinuxVersionFile=i._getOsVersion=i._findMatch=void 0;const u=l(a(70562));const A=a(42186);const b=a(22037);const h=a(32081);const g=a(57147);function _findMatch(i,a,c,p){return d(this,void 0,void 0,(function*(){const l=b.platform();let d;let h;let g;for(const d of c){const c=d.version;A.debug(`check ${c} satisfies ${i}`);if(u.satisfies(c,i)&&(!a||d.stable===a)){g=d.files.find((i=>{A.debug(`${i.arch}===${p} && ${i.platform}===${l}`);let a=i.arch===p&&i.platform===l;if(a&&i.platform_version){const c=r.exports._getOsVersion();if(c===i.platform_version){a=true}else{a=u.satisfies(c,i.platform_version)}}return a}));if(g){A.debug(`matched ${d.version}`);h=d;break}}}if(h&&g){d=Object.assign({},h);d.files=[g]}return d}))}i._findMatch=_findMatch;function _getOsVersion(){const i=b.platform();let a="";if(i==="darwin"){a=h.execSync("sw_vers -productVersion").toString()}else if(i==="linux"){const i=r.exports._readLinuxVersionFile();if(i){const r=i.split("\n");for(const i of r){const r=i.split("=");if(r.length===2&&(r[0].trim()==="VERSION_ID"||r[0].trim()==="DISTRIB_RELEASE")){a=r[1].trim().replace(/^"/,"").replace(/"$/,"");break}}}}return a}i._getOsVersion=_getOsVersion;function _readLinuxVersionFile(){const r="/etc/lsb-release";const i="/etc/os-release";let a="";if(g.existsSync(r)){a=g.readFileSync(r).toString()}else if(g.existsSync(i)){a=g.readFileSync(i).toString()}return a}i._readLinuxVersionFile=_readLinuxVersionFile},38279:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};Object.defineProperty(i,"__esModule",{value:true});i.RetryHelper=void 0;const u=l(a(42186));class RetryHelper{constructor(r,i,a){if(r<1){throw new Error("max attempts should be greater than or equal to 1")}this.maxAttempts=r;this.minSeconds=Math.floor(i);this.maxSeconds=Math.floor(a);if(this.minSeconds>this.maxSeconds){throw new Error("min seconds should be less than or equal to max seconds")}}execute(r,i){return d(this,void 0,void 0,(function*(){let a=1;while(asetTimeout(i,r*1e3)))}))}}i.RetryHelper=RetryHelper},27784:function(r,i,a){"use strict";var c=this&&this.__createBinding||(Object.create?function(r,i,a,c){if(c===undefined)c=a;Object.defineProperty(r,c,{enumerable:true,get:function(){return i[a]}})}:function(r,i,a,c){if(c===undefined)c=a;r[c]=i[a]});var p=this&&this.__setModuleDefault||(Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:true,value:i})}:function(r,i){r["default"]=i});var l=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var a in r)if(a!=="default"&&Object.hasOwnProperty.call(r,a))c(i,r,a);p(i,r);return i};var d=this&&this.__awaiter||function(r,i,a,c){function adopt(r){return r instanceof a?r:new a((function(i){i(r)}))}return new(a||(a=Promise))((function(a,p){function fulfilled(r){try{step(c.next(r))}catch(r){p(r)}}function rejected(r){try{step(c["throw"](r))}catch(r){p(r)}}function step(r){r.done?a(r.value):adopt(r.value).then(fulfilled,rejected)}step((c=c.apply(r,i||[])).next())}))};var u=this&&this.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(i,"__esModule",{value:true});i.evaluateVersions=i.isExplicitVersion=i.findFromManifest=i.getManifestFromRepo=i.findAllVersions=i.find=i.cacheFile=i.cacheDir=i.extractZip=i.extractXar=i.extractTar=i.extract7z=i.downloadTool=i.HTTPError=void 0;const A=l(a(42186));const b=l(a(47351));const h=l(a(57147));const g=l(a(32473));const M=l(a(22037));const z=l(a(71017));const O=l(a(96255));const y=l(a(70562));const v=l(a(12781));const C=l(a(73837));const q=a(39491);const R=u(a(17468));const B=a(71514);const w=a(38279);class HTTPError extends Error{constructor(r){super(`Unexpected HTTP response: ${r}`);this.httpStatusCode=r;Object.setPrototypeOf(this,new.target.prototype)}}i.HTTPError=HTTPError;const S=process.platform==="win32";const N=process.platform==="darwin";const I="actions/tool-cache";function downloadTool(r,i,a,c){return d(this,void 0,void 0,(function*(){i=i||z.join(_getTempDirectory(),R.default());yield b.mkdirP(z.dirname(i));A.debug(`Downloading ${r}`);A.debug(`Destination ${i}`);const p=3;const l=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10);const u=_getGlobal("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);const h=new w.RetryHelper(p,l,u);return yield h.execute((()=>d(this,void 0,void 0,(function*(){return yield downloadToolAttempt(r,i||"",a,c)}))),(r=>{if(r instanceof HTTPError&&r.httpStatusCode){if(r.httpStatusCode<500&&r.httpStatusCode!==408&&r.httpStatusCode!==429){return false}}return true}))}))}i.downloadTool=downloadTool;function downloadToolAttempt(r,i,a,c){return d(this,void 0,void 0,(function*(){if(h.existsSync(i)){throw new Error(`Destination file path ${i} already exists`)}const p=new O.HttpClient(I,[],{allowRetries:false});if(a){A.debug("set auth");if(c===undefined){c={}}c.authorization=a}const l=yield p.get(r,c);if(l.message.statusCode!==200){const i=new HTTPError(l.message.statusCode);A.debug(`Failed to download from "${r}". Code(${l.message.statusCode}) Message(${l.message.statusMessage})`);throw i}const d=C.promisify(v.pipeline);const u=_getGlobal("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",(()=>l.message));const g=u();let M=false;try{yield d(g,h.createWriteStream(i));A.debug("download complete");M=true;return i}finally{if(!M){A.debug("download failed");try{yield b.rmRF(i)}catch(r){A.debug(`Failed to delete '${i}'. ${r.message}`)}}}}))}function extract7z(r,i,a){return d(this,void 0,void 0,(function*(){q.ok(S,"extract7z() not supported on current OS");q.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);const c=process.cwd();process.chdir(i);if(a){try{const i=A.isDebug()?"-bb1":"-bb0";const c=["x",i,"-bd","-sccUTF-8",r];const p={silent:true};yield B.exec(`"${a}"`,c,p)}finally{process.chdir(c)}}else{const a=z.join(__dirname,"..","scripts","Invoke-7zdec.ps1").replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const l=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const d=`& '${a}' -Source '${p}' -Target '${l}'`;const u=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",d];const A={silent:true};try{const r=yield b.which("powershell",true);yield B.exec(`"${r}"`,u,A)}finally{process.chdir(c)}}return i}))}i.extract7z=extract7z;function extractTar(r,i,a="xz"){return d(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);A.debug("Checking tar --version");let c="";yield B.exec("tar --version",[],{ignoreReturnCode:true,silent:true,listeners:{stdout:r=>c+=r.toString(),stderr:r=>c+=r.toString()}});A.debug(c.trim());const p=c.toUpperCase().includes("GNU TAR");let l;if(a instanceof Array){l=a}else{l=[a]}if(A.isDebug()&&!a.includes("v")){l.push("-v")}let d=i;let u=r;if(S&&p){l.push("--force-local");d=i.replace(/\\/g,"/");u=r.replace(/\\/g,"/")}if(p){l.push("--warning=no-unknown-keyword");l.push("--overwrite")}l.push("-C",d,"-f",u);yield B.exec(`tar`,l);return i}))}i.extractTar=extractTar;function extractXar(r,i,a=[]){return d(this,void 0,void 0,(function*(){q.ok(N,"extractXar() not supported on current OS");q.ok(r,'parameter "file" is required');i=yield _createExtractFolder(i);let c;if(a instanceof Array){c=a}else{c=[a]}c.push("-x","-C",i,"-f",r);if(A.isDebug()){c.push("-v")}const p=yield b.which("xar",true);yield B.exec(`"${p}"`,_unique(c));return i}))}i.extractXar=extractXar;function extractZip(r,i){return d(this,void 0,void 0,(function*(){if(!r){throw new Error("parameter 'file' is required")}i=yield _createExtractFolder(i);if(S){yield extractZipWin(r,i)}else{yield extractZipNix(r,i)}return i}))}i.extractZip=extractZip;function extractZipWin(r,i){return d(this,void 0,void 0,(function*(){const a=r.replace(/'/g,"''").replace(/"|\n|\r/g,"");const c=i.replace(/'/g,"''").replace(/"|\n|\r/g,"");const p=yield b.which("pwsh",false);if(p){const r=[`$ErrorActionPreference = 'Stop' ;`,`try { Add-Type -AssemblyName System.IO.Compression.ZipFile } catch { } ;`,`try { [System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${c}', $true) }`,`catch { if (($_.Exception.GetType().FullName -eq 'System.Management.Automation.MethodException') -or ($_.Exception.GetType().FullName -eq 'System.Management.Automation.RuntimeException') ){ Expand-Archive -LiteralPath '${a}' -DestinationPath '${c}' -Force } else { throw $_ } } ;`].join(" ");const i=["-NoLogo","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];A.debug(`Using pwsh at path: ${p}`);yield B.exec(`"${p}"`,i)}else{const r=[`$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 '${a}' -DestinationPath '${c}' -Force }`,`else {[System.IO.Compression.ZipFile]::ExtractToDirectory('${a}', '${c}', $true) }`].join(" ");const i=["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",r];const p=yield b.which("powershell",true);A.debug(`Using powershell at path: ${p}`);yield B.exec(`"${p}"`,i)}}))}function extractZipNix(r,i){return d(this,void 0,void 0,(function*(){const a=yield b.which("unzip",true);const c=[r];if(!A.isDebug()){c.unshift("-q")}c.unshift("-o");yield B.exec(`"${a}"`,c,{cwd:i})}))}function cacheDir(r,i,a,c){return d(this,void 0,void 0,(function*(){a=y.clean(a)||a;c=c||M.arch();A.debug(`Caching tool ${i} ${a} ${c}`);A.debug(`source dir: ${r}`);if(!h.statSync(r).isDirectory()){throw new Error("sourceDir is not a directory")}const p=yield _createToolPath(i,a,c);for(const i of h.readdirSync(r)){const a=z.join(r,i);yield b.cp(a,p,{recursive:true})}_completeToolPath(i,a,c);return p}))}i.cacheDir=cacheDir;function cacheFile(r,i,a,c,p){return d(this,void 0,void 0,(function*(){c=y.clean(c)||c;p=p||M.arch();A.debug(`Caching tool ${a} ${c} ${p}`);A.debug(`source file: ${r}`);if(!h.statSync(r).isFile()){throw new Error("sourceFile is not a file")}const l=yield _createToolPath(a,c,p);const d=z.join(l,i);A.debug(`destination file ${d}`);yield b.cp(r,d);_completeToolPath(a,c,p);return l}))}i.cacheFile=cacheFile;function find(r,i,a){if(!r){throw new Error("toolName parameter is required")}if(!i){throw new Error("versionSpec parameter is required")}a=a||M.arch();if(!isExplicitVersion(i)){const c=findAllVersions(r,a);const p=evaluateVersions(c,i);i=p}let c="";if(i){i=y.clean(i)||"";const p=z.join(_getCacheDirectory(),r,i,a);A.debug(`checking cache: ${p}`);if(h.existsSync(p)&&h.existsSync(`${p}.complete`)){A.debug(`Found tool in cache ${r} ${i} ${a}`);c=p}else{A.debug("not found")}}return c}i.find=find;function findAllVersions(r,i){const a=[];i=i||M.arch();const c=z.join(_getCacheDirectory(),r);if(h.existsSync(c)){const r=h.readdirSync(c);for(const p of r){if(isExplicitVersion(p)){const r=z.join(c,p,i||"");if(h.existsSync(r)&&h.existsSync(`${r}.complete`)){a.push(p)}}}}return a}i.findAllVersions=findAllVersions;function getManifestFromRepo(r,i,a,c="master"){return d(this,void 0,void 0,(function*(){let p=[];const l=`https://api.github.com/repos/${r}/${i}/git/trees/${c}`;const d=new O.HttpClient("tool-cache");const u={};if(a){A.debug("set auth");u.authorization=a}const b=yield d.getJson(l,u);if(!b.result){return p}let h="";for(const r of b.result.tree){if(r.path==="versions-manifest.json"){h=r.url;break}}u["accept"]="application/vnd.github.VERSION.raw";let g=yield(yield d.get(h,u)).readBody();if(g){g=g.replace(/^\uFEFF/,"");try{p=JSON.parse(g)}catch(r){A.debug("Invalid json")}}return p}))}i.getManifestFromRepo=getManifestFromRepo;function findFromManifest(r,i,a,c=M.arch()){return d(this,void 0,void 0,(function*(){const p=yield g._findMatch(r,i,a,c);return p}))}i.findFromManifest=findFromManifest;function _createExtractFolder(r){return d(this,void 0,void 0,(function*(){if(!r){r=z.join(_getTempDirectory(),R.default())}yield b.mkdirP(r);return r}))}function _createToolPath(r,i,a){return d(this,void 0,void 0,(function*(){const c=z.join(_getCacheDirectory(),r,y.clean(i)||i,a||"");A.debug(`destination ${c}`);const p=`${c}.complete`;yield b.rmRF(c);yield b.rmRF(p);yield b.mkdirP(c);return c}))}function _completeToolPath(r,i,a){const c=z.join(_getCacheDirectory(),r,y.clean(i)||i,a||"");const p=`${c}.complete`;h.writeFileSync(p,"");A.debug("finished caching tool")}function isExplicitVersion(r){const i=y.clean(r)||"";A.debug(`isExplicit: ${i}`);const a=y.valid(i)!=null;A.debug(`explicit? ${a}`);return a}i.isExplicitVersion=isExplicitVersion;function evaluateVersions(r,i){let a="";A.debug(`evaluating ${r.length} versions`);r=r.sort(((r,i)=>{if(y.gt(r,i)){return 1}return-1}));for(let c=r.length-1;c>=0;c--){const p=r[c];const l=y.satisfies(p,i);if(l){a=p;break}}if(a){A.debug(`matched: ${a}`)}else{A.debug("match not found")}return a}i.evaluateVersions=evaluateVersions;function _getCacheDirectory(){const r=process.env["RUNNER_TOOL_CACHE"]||"";q.ok(r,"Expected RUNNER_TOOL_CACHE to be defined");return r}function _getTempDirectory(){const r=process.env["RUNNER_TEMP"]||"";q.ok(r,"Expected RUNNER_TEMP to be defined");return r}function _getGlobal(r,i){const a=global[r];return a!==undefined?a:i}function _unique(r){return Array.from(new Set(r))}},70562:(r,i)=>{i=r.exports=SemVer;var a;if(typeof process==="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)){a=function(){var r=Array.prototype.slice.call(arguments,0);r.unshift("SEMVER");console.log.apply(console,r)}}else{a=function(){}}i.SEMVER_SPEC_VERSION="2.0.0";var c=256;var p=Number.MAX_SAFE_INTEGER||9007199254740991;var l=16;var d=c-6;var u=i.re=[];var A=i.safeRe=[];var b=i.src=[];var h=i.tokens={};var g=0;function tok(r){h[r]=g++}var M="[a-zA-Z0-9-]";var z=[["\\s",1],["\\d",c],[M,d]];function makeSafeRe(r){for(var i=0;i)?=?)";tok("XRANGEIDENTIFIERLOOSE");b[h.XRANGEIDENTIFIERLOOSE]=b[h.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*";tok("XRANGEIDENTIFIER");b[h.XRANGEIDENTIFIER]=b[h.NUMERICIDENTIFIER]+"|x|X|\\*";tok("XRANGEPLAIN");b[h.XRANGEPLAIN]="[v=\\s]*("+b[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIER]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIER]+")"+"(?:"+b[h.PRERELEASE]+")?"+b[h.BUILD]+"?"+")?)?";tok("XRANGEPLAINLOOSE");b[h.XRANGEPLAINLOOSE]="[v=\\s]*("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:\\.("+b[h.XRANGEIDENTIFIERLOOSE]+")"+"(?:"+b[h.PRERELEASELOOSE]+")?"+b[h.BUILD]+"?"+")?)?";tok("XRANGE");b[h.XRANGE]="^"+b[h.GTLT]+"\\s*"+b[h.XRANGEPLAIN]+"$";tok("XRANGELOOSE");b[h.XRANGELOOSE]="^"+b[h.GTLT]+"\\s*"+b[h.XRANGEPLAINLOOSE]+"$";tok("COERCE");b[h.COERCE]="(^|[^\\d])"+"(\\d{1,"+l+"})"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:\\.(\\d{1,"+l+"}))?"+"(?:$|[^\\d])";tok("COERCERTL");u[h.COERCERTL]=new RegExp(b[h.COERCE],"g");A[h.COERCERTL]=new RegExp(makeSafeRe(b[h.COERCE]),"g");tok("LONETILDE");b[h.LONETILDE]="(?:~>?)";tok("TILDETRIM");b[h.TILDETRIM]="(\\s*)"+b[h.LONETILDE]+"\\s+";u[h.TILDETRIM]=new RegExp(b[h.TILDETRIM],"g");A[h.TILDETRIM]=new RegExp(makeSafeRe(b[h.TILDETRIM]),"g");var O="$1~";tok("TILDE");b[h.TILDE]="^"+b[h.LONETILDE]+b[h.XRANGEPLAIN]+"$";tok("TILDELOOSE");b[h.TILDELOOSE]="^"+b[h.LONETILDE]+b[h.XRANGEPLAINLOOSE]+"$";tok("LONECARET");b[h.LONECARET]="(?:\\^)";tok("CARETTRIM");b[h.CARETTRIM]="(\\s*)"+b[h.LONECARET]+"\\s+";u[h.CARETTRIM]=new RegExp(b[h.CARETTRIM],"g");A[h.CARETTRIM]=new RegExp(makeSafeRe(b[h.CARETTRIM]),"g");var y="$1^";tok("CARET");b[h.CARET]="^"+b[h.LONECARET]+b[h.XRANGEPLAIN]+"$";tok("CARETLOOSE");b[h.CARETLOOSE]="^"+b[h.LONECARET]+b[h.XRANGEPLAINLOOSE]+"$";tok("COMPARATORLOOSE");b[h.COMPARATORLOOSE]="^"+b[h.GTLT]+"\\s*("+b[h.LOOSEPLAIN]+")$|^$";tok("COMPARATOR");b[h.COMPARATOR]="^"+b[h.GTLT]+"\\s*("+b[h.FULLPLAIN]+")$|^$";tok("COMPARATORTRIM");b[h.COMPARATORTRIM]="(\\s*)"+b[h.GTLT]+"\\s*("+b[h.LOOSEPLAIN]+"|"+b[h.XRANGEPLAIN]+")";u[h.COMPARATORTRIM]=new RegExp(b[h.COMPARATORTRIM],"g");A[h.COMPARATORTRIM]=new RegExp(makeSafeRe(b[h.COMPARATORTRIM]),"g");var v="$1$2$3";tok("HYPHENRANGE");b[h.HYPHENRANGE]="^\\s*("+b[h.XRANGEPLAIN]+")"+"\\s+-\\s+"+"("+b[h.XRANGEPLAIN]+")"+"\\s*$";tok("HYPHENRANGELOOSE");b[h.HYPHENRANGELOOSE]="^\\s*("+b[h.XRANGEPLAINLOOSE]+")"+"\\s+-\\s+"+"("+b[h.XRANGEPLAINLOOSE]+")"+"\\s*$";tok("STAR");b[h.STAR]="(<|>)?=?\\s*\\*";for(var C=0;Cc){return null}var a=i.loose?A[h.LOOSE]:A[h.FULL];if(!a.test(r)){return null}try{return new SemVer(r,i)}catch(r){return null}}i.valid=valid;function valid(r,i){var a=parse(r,i);return a?a.version:null}i.clean=clean;function clean(r,i){var a=parse(r.trim().replace(/^[=v]+/,""),i);return a?a.version:null}i.SemVer=SemVer;function SemVer(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof SemVer){if(r.loose===i.loose){return r}else{r=r.version}}else if(typeof r!=="string"){throw new TypeError("Invalid Version: "+r)}if(r.length>c){throw new TypeError("version is longer than "+c+" characters")}if(!(this instanceof SemVer)){return new SemVer(r,i)}a("SemVer",r,i);this.options=i;this.loose=!!i.loose;var l=r.trim().match(i.loose?A[h.LOOSE]:A[h.FULL]);if(!l){throw new TypeError("Invalid Version: "+r)}this.raw=r;this.major=+l[1];this.minor=+l[2];this.patch=+l[3];if(this.major>p||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>p||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>p||this.patch<0){throw new TypeError("Invalid patch version")}if(!l[4]){this.prerelease=[]}else{this.prerelease=l[4].split(".").map((function(r){if(/^[0-9]+$/.test(r)){var i=+r;if(i>=0&&i=0){if(typeof this.prerelease[a]==="number"){this.prerelease[a]++;a=-2}}if(a===-1){this.prerelease.push(0)}}if(i){if(this.prerelease[0]===i){if(isNaN(this.prerelease[1])){this.prerelease=[i,0]}}else{this.prerelease=[i,0]}}break;default:throw new Error("invalid increment argument: "+r)}this.format();this.raw=this.version;return this};i.inc=inc;function inc(r,i,a,c){if(typeof a==="string"){c=a;a=undefined}try{return new SemVer(r,a).inc(i,c).version}catch(r){return null}}i.diff=diff;function diff(r,i){if(eq(r,i)){return null}else{var a=parse(r);var c=parse(i);var p="";if(a.prerelease.length||c.prerelease.length){p="pre";var l="prerelease"}for(var d in a){if(d==="major"||d==="minor"||d==="patch"){if(a[d]!==c[d]){return p+d}}}return l}}i.compareIdentifiers=compareIdentifiers;var q=/^[0-9]+$/;function compareIdentifiers(r,i){var a=q.test(r);var c=q.test(i);if(a&&c){r=+r;i=+i}return r===i?0:a&&!c?-1:c&&!a?1:r0}i.lt=lt;function lt(r,i,a){return compare(r,i,a)<0}i.eq=eq;function eq(r,i,a){return compare(r,i,a)===0}i.neq=neq;function neq(r,i,a){return compare(r,i,a)!==0}i.gte=gte;function gte(r,i,a){return compare(r,i,a)>=0}i.lte=lte;function lte(r,i,a){return compare(r,i,a)<=0}i.cmp=cmp;function cmp(r,i,a,c){switch(i){case"===":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r===a;case"!==":if(typeof r==="object")r=r.version;if(typeof a==="object")a=a.version;return r!==a;case"":case"=":case"==":return eq(r,a,c);case"!=":return neq(r,a,c);case">":return gt(r,a,c);case">=":return gte(r,a,c);case"<":return lt(r,a,c);case"<=":return lte(r,a,c);default:throw new TypeError("Invalid operator: "+i)}}i.Comparator=Comparator;function Comparator(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Comparator){if(r.loose===!!i.loose){return r}else{r=r.value}}if(!(this instanceof Comparator)){return new Comparator(r,i)}r=r.trim().split(/\s+/).join(" ");a("comparator",r,i);this.options=i;this.loose=!!i.loose;this.parse(r);if(this.semver===R){this.value=""}else{this.value=this.operator+this.semver.version}a("comp",this)}var R={};Comparator.prototype.parse=function(r){var i=this.options.loose?A[h.COMPARATORLOOSE]:A[h.COMPARATOR];var a=r.match(i);if(!a){throw new TypeError("Invalid comparator: "+r)}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=R}else{this.semver=new SemVer(a[2],this.options.loose)}};Comparator.prototype.toString=function(){return this.value};Comparator.prototype.test=function(r){a("Comparator.test",r,this.options.loose);if(this.semver===R||r===R){return true}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}return cmp(r,this.operator,this.semver,this.options)};Comparator.prototype.intersects=function(r,i){if(!(r instanceof Comparator)){throw new TypeError("a Comparator is required")}if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}var a;if(this.operator===""){if(this.value===""){return true}a=new Range(r.value,i);return satisfies(this.value,a,i)}else if(r.operator===""){if(r.value===""){return true}a=new Range(this.value,i);return satisfies(r.semver,a,i)}var c=(this.operator===">="||this.operator===">")&&(r.operator===">="||r.operator===">");var p=(this.operator==="<="||this.operator==="<")&&(r.operator==="<="||r.operator==="<");var l=this.semver.version===r.semver.version;var d=(this.operator===">="||this.operator==="<=")&&(r.operator===">="||r.operator==="<=");var u=cmp(this.semver,"<",r.semver,i)&&((this.operator===">="||this.operator===">")&&(r.operator==="<="||r.operator==="<"));var A=cmp(this.semver,">",r.semver,i)&&((this.operator==="<="||this.operator==="<")&&(r.operator===">="||r.operator===">"));return c||p||l&&d||u||A};i.Range=Range;function Range(r,i){if(!i||typeof i!=="object"){i={loose:!!i,includePrerelease:false}}if(r instanceof Range){if(r.loose===!!i.loose&&r.includePrerelease===!!i.includePrerelease){return r}else{return new Range(r.raw,i)}}if(r instanceof Comparator){return new Range(r.value,i)}if(!(this instanceof Range)){return new Range(r,i)}this.options=i;this.loose=!!i.loose;this.includePrerelease=!!i.includePrerelease;this.raw=r.trim().split(/\s+/).join(" ");this.set=this.raw.split("||").map((function(r){return this.parseRange(r.trim())}),this).filter((function(r){return r.length}));if(!this.set.length){throw new TypeError("Invalid SemVer Range: "+this.raw)}this.format()}Range.prototype.format=function(){this.range=this.set.map((function(r){return r.join(" ").trim()})).join("||").trim();return this.range};Range.prototype.toString=function(){return this.range};Range.prototype.parseRange=function(r){var i=this.options.loose;var c=i?A[h.HYPHENRANGELOOSE]:A[h.HYPHENRANGE];r=r.replace(c,hyphenReplace);a("hyphen replace",r);r=r.replace(A[h.COMPARATORTRIM],v);a("comparator trim",r,A[h.COMPARATORTRIM]);r=r.replace(A[h.TILDETRIM],O);r=r.replace(A[h.CARETTRIM],y);r=r.split(/\s+/).join(" ");var p=i?A[h.COMPARATORLOOSE]:A[h.COMPARATOR];var l=r.split(" ").map((function(r){return parseComparator(r,this.options)}),this).join(" ").split(/\s+/);if(this.options.loose){l=l.filter((function(r){return!!r.match(p)}))}l=l.map((function(r){return new Comparator(r,this.options)}),this);return l};Range.prototype.intersects=function(r,i){if(!(r instanceof Range)){throw new TypeError("a Range is required")}return this.set.some((function(a){return isSatisfiable(a,i)&&r.set.some((function(r){return isSatisfiable(r,i)&&a.every((function(a){return r.every((function(r){return a.intersects(r,i)}))}))}))}))};function isSatisfiable(r,i){var a=true;var c=r.slice();var p=c.pop();while(a&&c.length){a=c.every((function(r){return p.intersects(r,i)}));p=c.pop()}return a}i.toComparators=toComparators;function toComparators(r,i){return new Range(r,i).set.map((function(r){return r.map((function(r){return r.value})).join(" ").trim().split(" ")}))}function parseComparator(r,i){a("comp",r,i);r=replaceCarets(r,i);a("caret",r);r=replaceTildes(r,i);a("tildes",r);r=replaceXRanges(r,i);a("xrange",r);r=replaceStars(r,i);a("stars",r);return r}function isX(r){return!r||r.toLowerCase()==="x"||r==="*"}function replaceTildes(r,i){return r.trim().split(/\s+/).map((function(r){return replaceTilde(r,i)})).join(" ")}function replaceTilde(r,i){var c=i.loose?A[h.TILDELOOSE]:A[h.TILDE];return r.replace(c,(function(i,c,p,l,d){a("tilde",r,i,c,p,l,d);var u;if(isX(c)){u=""}else if(isX(p)){u=">="+c+".0.0 <"+(+c+1)+".0.0"}else if(isX(l)){u=">="+c+"."+p+".0 <"+c+"."+(+p+1)+".0"}else if(d){a("replaceTilde pr",d);u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+(+p+1)+".0"}else{u=">="+c+"."+p+"."+l+" <"+c+"."+(+p+1)+".0"}a("tilde return",u);return u}))}function replaceCarets(r,i){return r.trim().split(/\s+/).map((function(r){return replaceCaret(r,i)})).join(" ")}function replaceCaret(r,i){a("caret",r,i);var c=i.loose?A[h.CARETLOOSE]:A[h.CARET];return r.replace(c,(function(i,c,p,l,d){a("caret",r,i,c,p,l,d);var u;if(isX(c)){u=""}else if(isX(p)){u=">="+c+".0.0 <"+(+c+1)+".0.0"}else if(isX(l)){if(c==="0"){u=">="+c+"."+p+".0 <"+c+"."+(+p+1)+".0"}else{u=">="+c+"."+p+".0 <"+(+c+1)+".0.0"}}else if(d){a("replaceCaret pr",d);if(c==="0"){if(p==="0"){u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+p+"."+(+l+1)}else{u=">="+c+"."+p+"."+l+"-"+d+" <"+c+"."+(+p+1)+".0"}}else{u=">="+c+"."+p+"."+l+"-"+d+" <"+(+c+1)+".0.0"}}else{a("no pr");if(c==="0"){if(p==="0"){u=">="+c+"."+p+"."+l+" <"+c+"."+p+"."+(+l+1)}else{u=">="+c+"."+p+"."+l+" <"+c+"."+(+p+1)+".0"}}else{u=">="+c+"."+p+"."+l+" <"+(+c+1)+".0.0"}}a("caret return",u);return u}))}function replaceXRanges(r,i){a("replaceXRanges",r,i);return r.split(/\s+/).map((function(r){return replaceXRange(r,i)})).join(" ")}function replaceXRange(r,i){r=r.trim();var c=i.loose?A[h.XRANGELOOSE]:A[h.XRANGE];return r.replace(c,(function(c,p,l,d,u,A){a("xRange",r,c,p,l,d,u,A);var b=isX(l);var h=b||isX(d);var g=h||isX(u);var M=g;if(p==="="&&M){p=""}A=i.includePrerelease?"-0":"";if(b){if(p===">"||p==="<"){c="<0.0.0-0"}else{c="*"}}else if(p&&M){if(h){d=0}u=0;if(p===">"){p=">=";if(h){l=+l+1;d=0;u=0}else{d=+d+1;u=0}}else if(p==="<="){p="<";if(h){l=+l+1}else{d=+d+1}}c=p+l+"."+d+"."+u+A}else if(h){c=">="+l+".0.0"+A+" <"+(+l+1)+".0.0"+A}else if(g){c=">="+l+"."+d+".0"+A+" <"+l+"."+(+d+1)+".0"+A}a("xRange return",c);return c}))}function replaceStars(r,i){a("replaceStars",r,i);return r.trim().replace(A[h.STAR],"")}function hyphenReplace(r,i,a,c,p,l,d,u,A,b,h,g,M){if(isX(a)){i=""}else if(isX(c)){i=">="+a+".0.0"}else if(isX(p)){i=">="+a+"."+c+".0"}else{i=">="+i}if(isX(A)){u=""}else if(isX(b)){u="<"+(+A+1)+".0.0"}else if(isX(h)){u="<"+A+"."+(+b+1)+".0"}else if(g){u="<="+A+"."+b+"."+h+"-"+g}else{u="<="+u}return(i+" "+u).trim()}Range.prototype.test=function(r){if(!r){return false}if(typeof r==="string"){try{r=new SemVer(r,this.options)}catch(r){return false}}for(var i=0;i0){var l=r[p].semver;if(l.major===i.major&&l.minor===i.minor&&l.patch===i.patch){return true}}}return false}return true}i.satisfies=satisfies;function satisfies(r,i,a){try{i=new Range(i,a)}catch(r){return false}return i.test(r)}i.maxSatisfying=maxSatisfying;function maxSatisfying(r,i,a){var c=null;var p=null;try{var l=new Range(i,a)}catch(r){return null}r.forEach((function(r){if(l.test(r)){if(!c||p.compare(r)===-1){c=r;p=new SemVer(c,a)}}}));return c}i.minSatisfying=minSatisfying;function minSatisfying(r,i,a){var c=null;var p=null;try{var l=new Range(i,a)}catch(r){return null}r.forEach((function(r){if(l.test(r)){if(!c||p.compare(r)===1){c=r;p=new SemVer(c,a)}}}));return c}i.minVersion=minVersion;function minVersion(r,i){r=new Range(r,i);var a=new SemVer("0.0.0");if(r.test(a)){return a}a=new SemVer("0.0.0-0");if(r.test(a)){return a}a=null;for(var c=0;c":if(i.prerelease.length===0){i.patch++}else{i.prerelease.push(0)}i.raw=i.format();case"":case">=":if(!a||gt(a,i)){a=i}break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+r.operator)}}))}if(a&&r.test(a)){return a}return null}i.validRange=validRange;function validRange(r,i){try{return new Range(r,i).range||"*"}catch(r){return null}}i.ltr=ltr;function ltr(r,i,a){return outside(r,i,"<",a)}i.gtr=gtr;function gtr(r,i,a){return outside(r,i,">",a)}i.outside=outside;function outside(r,i,a,c){r=new SemVer(r,c);i=new Range(i,c);var p,l,d,u,A;switch(a){case">":p=gt;l=lte;d=lt;u=">";A=">=";break;case"<":p=lt;l=gte;d=gt;u="<";A="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(r,i,c)){return false}for(var b=0;b=0.0.0")}g=g||r;M=M||r;if(p(r.semver,g.semver,c)){g=r}else if(d(r.semver,M.semver,c)){M=r}}));if(g.operator===u||g.operator===A){return false}if((!M.operator||M.operator===u)&&l(r,M.semver)){return false}else if(M.operator===A&&d(r,M.semver)){return false}}return true}i.prerelease=prerelease;function prerelease(r,i){var a=parse(r,i);return a&&a.prerelease.length?a.prerelease:null}i.intersects=intersects;function intersects(r,i,a){r=new Range(r,a);i=new Range(i,a);return r.intersects(i)}i.coerce=coerce;function coerce(r,i){if(r instanceof SemVer){return r}if(typeof r==="number"){r=String(r)}if(typeof r!=="string"){return null}i=i||{};var a=null;if(!i.rtl){a=r.match(A[h.COERCE])}else{var c;while((c=A[h.COERCERTL].exec(r))&&(!a||a.index+a[0].length!==r.length)){if(!a||c.index+c[0].length!==a.index+a[0].length){a=c}A[h.COERCERTL].lastIndex=c.index+c[1].length+c[2].length}A[h.COERCERTL].lastIndex=-1}if(a===null){return null}return parse(a[2]+"."+(a[3]||"0")+"."+(a[4]||"0"),i)}},7701:r=>{var i=[];for(var a=0;a<256;++a){i[a]=(a+256).toString(16).substr(1)}function bytesToUuid(r,a){var c=a||0;var p=i;return[p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],"-",p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]],p[r[c++]]].join("")}r.exports=bytesToUuid},37269:(r,i,a)=>{var c=a(6113);r.exports=function nodeRNG(){return c.randomBytes(16)}},17468:(r,i,a)=>{var c=a(37269);var p=a(7701);function v4(r,i,a){var l=i&&a||0;if(typeof r=="string"){i=r==="binary"?new Array(16):null;r=null}r=r||{};var d=r.random||(r.rng||c)();d[6]=d[6]&15|64;d[8]=d[8]&63|128;if(i){for(var u=0;u<16;++u){i[l+u]=d[u]}}return i||p(d)}r.exports=v4},52557:(r,i)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});const a=new WeakMap;const c=new WeakMap;class AbortSignal{constructor(){this.onabort=null;a.set(this,[]);c.set(this,false)}get aborted(){if(!c.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}return c.get(this)}static get none(){return new AbortSignal}addEventListener(r,i){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const c=a.get(this);c.push(i)}removeEventListener(r,i){if(!a.has(this)){throw new TypeError("Expected `this` to be an instance of AbortSignal.")}const c=a.get(this);const p=c.indexOf(i);if(p>-1){c.splice(p,1)}}dispatchEvent(r){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}}function abortSignal(r){if(r.aborted){return}if(r.onabort){r.onabort.call(r)}const i=a.get(r);if(i){i.slice().forEach((i=>{i.call(r,{type:"abort"})}))}c.set(r,true)}class AbortError extends Error{constructor(r){super(r);this.name="AbortError"}}class AbortController{constructor(r){this._signal=new AbortSignal;if(!r){return}if(!Array.isArray(r)){r=arguments}for(const i of r){if(i.aborted){this.abort()}else{i.addEventListener("abort",(()=>{this.abort()}))}}}get signal(){return this._signal}abort(){abortSignal(this._signal)}static timeout(r){const i=new AbortSignal;const a=setTimeout(abortSignal,r,i);if(typeof a.unref==="function"){a.unref()}return i}}i.AbortController=AbortController;i.AbortError=AbortError;i.AbortSignal=AbortSignal},39645:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(51333);class AzureKeyCredential{get key(){return this._key}constructor(r){if(!r){throw new Error("key must be a non-empty string")}this._key=r}update(r){this._key=r}}class AzureNamedKeyCredential{get key(){return this._key}get name(){return this._name}constructor(r,i){if(!r||!i){throw new TypeError("name and key must be non-empty strings")}this._name=r;this._key=i}update(r,i){if(!r||!i){throw new TypeError("newName and newKey must be non-empty strings")}this._name=r;this._key=i}}function isNamedKeyCredential(r){return c.isObjectWithProperties(r,["name","key"])&&typeof r.key==="string"&&typeof r.name==="string"}class AzureSASCredential{get signature(){return this._signature}constructor(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}update(r){if(!r){throw new Error("shared access signature must be a non-empty string")}this._signature=r}}function isSASCredential(r){return c.isObjectWithProperties(r,["signature"])&&typeof r.signature==="string"}function isTokenCredential(r){const i=r;return i&&typeof i.getToken==="function"&&(i.signRequest===undefined||i.getToken.length>0)}i.AzureKeyCredential=AzureKeyCredential;i.AzureNamedKeyCredential=AzureNamedKeyCredential;i.AzureSASCredential=AzureSASCredential;i.isNamedKeyCredential=isNamedKeyCredential;i.isSASCredential=isSASCredential;i.isTokenCredential=isTokenCredential},24607:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(75840);var p=a(73837);var l=a(4351);var d=a(66189);var u=a(51333);var A=a(3233);var b=a(39645);var h=a(22037);var g=a(13685);var M=a(95687);var z=a(52557);var O=a(74294);var y=a(12781);var v=a(46279);var C=a(80467);var q=a(94175);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(a){if(a!=="default"){var c=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,c.get?c:{enumerable:true,get:function(){return r[a]}})}}))}i["default"]=r;return Object.freeze(i)}var R=_interopNamespace(d);var B=_interopNamespace(h);var w=_interopNamespace(g);var S=_interopNamespace(M);var N=_interopNamespace(O);var I=_interopDefaultLegacy(v);var x=_interopDefaultLegacy(C);function getHeaderKey(r){return r.toLowerCase()}function isHttpHeadersLike(r){if(r&&typeof r==="object"){const i=r;if(typeof i.rawHeaders==="function"&&typeof i.clone==="function"&&typeof i.get==="function"&&typeof i.set==="function"&&typeof i.contains==="function"&&typeof i.remove==="function"&&typeof i.headersArray==="function"&&typeof i.headerValues==="function"&&typeof i.headerNames==="function"&&typeof i.toJson==="function"){return true}}return false}class HttpHeaders{constructor(r){this._headersMap={};if(r){for(const i in r){this.set(i,r[i])}}}set(r,i){this._headersMap[getHeaderKey(r)]={name:r,value:i.toString()}}get(r){const i=this._headersMap[getHeaderKey(r)];return!i?undefined:i.value}contains(r){return!!this._headersMap[getHeaderKey(r)]}remove(r){const i=this.contains(r);delete this._headersMap[getHeaderKey(r)];return i}rawHeaders(){return this.toJson({preserveCase:true})}headersArray(){const r=[];for(const i in this._headersMap){r.push(this._headersMap[i])}return r}headerNames(){const r=[];const i=this.headersArray();for(let a=0;a{a=a.then(r)}));return a}function promiseToCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>i(undefined,r))).catch((r=>{i(r)}))}}function promiseToServiceCallback(r){if(typeof r.then!=="function"){throw new Error("The provided input is not a Promise.")}return i=>{r.then((r=>process.nextTick(i,undefined,r.parsedBody,r.request,r))).catch((r=>{process.nextTick(i,r)}))}}function prepareXMLRootList(r,i,a,c){if(!Array.isArray(r)){r=[r]}if(!a||!c){return{[i]:r}}const p={[i]:r};p[_]={[a]:c};return p}function applyMixins(r,i){const a=r;i.forEach((r=>{Object.getOwnPropertyNames(r.prototype).forEach((i=>{a.prototype[i]=r.prototype[i]}))}))}const k=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function isDuration(r){return k.test(r)}function replaceAll(r,i,a){return!r||!i?r:r.split(i).join(a||"")}function isPrimitiveType(r){return typeof r!=="object"&&typeof r!=="function"||r===null}function getEnvironmentValue(r){if(process.env[r]){return process.env[r]}else if(process.env[r.toLowerCase()]){return process.env[r.toLowerCase()]}return undefined}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}class Serializer{constructor(r={},i){this.modelMappers=r;this.isXML=i}validateConstraints(r,i,a){const failValidation=(r,c)=>{throw new Error(`"${a}" with value "${i}" should satisfy the constraint "${r}": ${c}.`)};if(r.constraints&&i!=undefined){const a=i;const{ExclusiveMaximum:c,ExclusiveMinimum:p,InclusiveMaximum:l,InclusiveMinimum:d,MaxItems:u,MaxLength:A,MinItems:b,MinLength:h,MultipleOf:g,Pattern:M,UniqueItems:z}=r.constraints;if(c!=undefined&&a>=c){failValidation("ExclusiveMaximum",c)}if(p!=undefined&&a<=p){failValidation("ExclusiveMinimum",p)}if(l!=undefined&&a>l){failValidation("InclusiveMaximum",l)}if(d!=undefined&&au){failValidation("MaxItems",u)}if(A!=undefined&&O.length>A){failValidation("MaxLength",A)}if(b!=undefined&&O.lengtha.indexOf(r)!==i))){failValidation("UniqueItems",z)}}}serialize(r,i,a,c={}){var p,l,d;const u={rootName:(p=c.rootName)!==null&&p!==void 0?p:"",includeRoot:(l=c.includeRoot)!==null&&l!==void 0?l:false,xmlCharKey:(d=c.xmlCharKey)!==null&&d!==void 0?d:W};let A={};const b=r.type.name;if(!a){a=r.serializedName}if(b.match(/^Sequence$/i)!==null){A=[]}if(r.isConstant){i=r.defaultValue}const{required:h,nullable:g}=r;if(h&&g&&i===undefined){throw new Error(`${a} cannot be undefined.`)}if(h&&!g&&i==undefined){throw new Error(`${a} cannot be null or undefined.`)}if(!h&&g===false&&i===null){throw new Error(`${a} cannot be null.`)}if(i==undefined){A=i}else{if(b.match(/^any$/i)!==null){A=i}else if(b.match(/^(Number|String|Boolean|Object|Stream|Uuid)$/i)!==null){A=serializeBasicTypes(b,a,i)}else if(b.match(/^Enum$/i)!==null){const c=r;A=serializeEnumType(a,c.type.allowedValues,i)}else if(b.match(/^(Date|DateTime|TimeSpan|DateTimeRfc1123|UnixTime)$/i)!==null){A=serializeDateTypes(b,i,a)}else if(b.match(/^ByteArray$/i)!==null){A=serializeByteArrayType(a,i)}else if(b.match(/^Base64Url$/i)!==null){A=serializeBase64UrlType(a,i)}else if(b.match(/^Sequence$/i)!==null){A=serializeSequenceType(this,r,i,a,Boolean(this.isXML),u)}else if(b.match(/^Dictionary$/i)!==null){A=serializeDictionaryType(this,r,i,a,Boolean(this.isXML),u)}else if(b.match(/^Composite$/i)!==null){A=serializeCompositeType(this,r,i,a,Boolean(this.isXML),u)}}return A}deserialize(r,i,a,c={}){var p,l,d;const u={rootName:(p=c.rootName)!==null&&p!==void 0?p:"",includeRoot:(l=c.includeRoot)!==null&&l!==void 0?l:false,xmlCharKey:(d=c.xmlCharKey)!==null&&d!==void 0?d:W};if(i==undefined){if(this.isXML&&r.type.name==="Sequence"&&!r.xmlIsWrapped){i=[]}if(r.defaultValue!==undefined){i=r.defaultValue}return i}let A;const b=r.type.name;if(!a){a=r.serializedName}if(b.match(/^Composite$/i)!==null){A=deserializeCompositeType(this,r,i,a,u)}else{if(this.isXML){const r=u.xmlCharKey;const a=i;if(a[_]!=undefined&&a[r]!=undefined){i=a[r]}}if(b.match(/^Number$/i)!==null){A=parseFloat(i);if(isNaN(A)){A=i}}else if(b.match(/^Boolean$/i)!==null){if(i==="true"){A=true}else if(i==="false"){A=false}else{A=i}}else if(b.match(/^(String|Enum|Object|Stream|Uuid|TimeSpan|any)$/i)!==null){A=i}else if(b.match(/^(Date|DateTime|DateTimeRfc1123)$/i)!==null){A=new Date(i)}else if(b.match(/^UnixTime$/i)!==null){A=unixTimeToDate(i)}else if(b.match(/^ByteArray$/i)!==null){A=decodeString(i)}else if(b.match(/^Base64Url$/i)!==null){A=base64UrlToByteArray(i)}else if(b.match(/^Sequence$/i)!==null){A=deserializeSequenceType(this,r,i,a,u)}else if(b.match(/^Dictionary$/i)!==null){A=deserializeDictionaryType(this,r,i,a,u)}}if(r.isConstant){A=r.defaultValue}return A}}function trimEnd(r,i){let a=r.length;while(a-1>=0&&r[a-1]===i){--a}return r.substr(0,a)}function bufferToBase64Url(r){if(!r){return undefined}if(!(r instanceof Uint8Array)){throw new Error(`Please provide an input of type Uint8Array for converting to Base64Url.`)}const i=encodeByteArray(r);return trimEnd(i,"=").replace(/\+/g,"-").replace(/\//g,"_")}function base64UrlToByteArray(r){if(!r){return undefined}if(r&&typeof r.valueOf()!=="string"){throw new Error("Please provide an input of type string for converting to Uint8Array")}r=r.replace(/-/g,"+").replace(/_/g,"/");return decodeString(r)}function splitSerializeName(r){const i=[];let a="";if(r){const c=r.split(".");for(const r of c){if(r.charAt(r.length-1)==="\\"){a+=r.substr(0,r.length-1)+"."}else{a+=r;i.push(a);a=""}}}return i}function dateToUnixTime(r){if(!r){return undefined}if(typeof r.valueOf()==="string"){r=new Date(r)}return Math.floor(r.getTime()/1e3)}function unixTimeToDate(r){if(!r){return undefined}return new Date(r*1e3)}function serializeBasicTypes(r,i,a){if(a!==null&&a!==undefined){if(r.match(/^Number$/i)!==null){if(typeof a!=="number"){throw new Error(`${i} with value ${a} must be of type number.`)}}else if(r.match(/^String$/i)!==null){if(typeof a.valueOf()!=="string"){throw new Error(`${i} with value "${a}" must be of type string.`)}}else if(r.match(/^Uuid$/i)!==null){if(!(typeof a.valueOf()==="string"&&isValidUuid(a))){throw new Error(`${i} with value "${a}" must be of type string and a valid uuid.`)}}else if(r.match(/^Boolean$/i)!==null){if(typeof a!=="boolean"){throw new Error(`${i} with value ${a} must be of type boolean.`)}}else if(r.match(/^Stream$/i)!==null){const r=typeof a;if(r!=="string"&&r!=="function"&&!(a instanceof ArrayBuffer)&&!ArrayBuffer.isView(a)&&!((typeof Blob==="function"||typeof Blob==="object")&&a instanceof Blob)){throw new Error(`${i} must be a string, Blob, ArrayBuffer, ArrayBufferView, or a function returning NodeJS.ReadableStream.`)}}}return a}function serializeEnumType(r,i,a){if(!i){throw new Error(`Please provide a set of allowedValues to validate ${r} as an Enum Type.`)}const c=i.some((r=>{if(typeof r.valueOf()==="string"){return r.toLowerCase()===a.toLowerCase()}return r===a}));if(!c){throw new Error(`${a} is not a valid value for ${r}. The valid values are: ${JSON.stringify(i)}.`)}return a}function serializeByteArrayType(r,i){let a="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}a=encodeByteArray(i)}return a}function serializeBase64UrlType(r,i){let a="";if(i!=undefined){if(!(i instanceof Uint8Array)){throw new Error(`${r} must be of type Uint8Array.`)}a=bufferToBase64Url(i)||""}return a}function serializeDateTypes(r,i,a){if(i!=undefined){if(r.match(/^Date$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${a} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString().substring(0,10):new Date(i).toISOString().substring(0,10)}else if(r.match(/^DateTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${a} must be an instanceof Date or a string in ISO8601 format.`)}i=i instanceof Date?i.toISOString():new Date(i).toISOString()}else if(r.match(/^DateTimeRfc1123$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${a} must be an instanceof Date or a string in RFC-1123 format.`)}i=i instanceof Date?i.toUTCString():new Date(i).toUTCString()}else if(r.match(/^UnixTime$/i)!==null){if(!(i instanceof Date||typeof i.valueOf()==="string"&&!isNaN(Date.parse(i)))){throw new Error(`${a} must be an instanceof Date or a string in RFC-1123/ISO8601 format `+`for it to be serialized in UnixTime/Epoch format.`)}i=dateToUnixTime(i)}else if(r.match(/^TimeSpan$/i)!==null){if(!isDuration(i)){throw new Error(`${a} must be a string in ISO 8601 format. Instead was "${i}".`)}}}return i}function serializeSequenceType(r,i,a,c,p,l){if(!Array.isArray(a)){throw new Error(`${c} must be of type Array.`)}const d=i.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 ${c}.`)}const u=[];for(let i=0;ir!==p));if(u){d[p]=r.serialize(A,a[p],c+'["'+p+'"]',l)}}}return d}return a}function getXmlObjectValue(r,i,a,c){if(!a||!r.xmlNamespace){return i}const p=r.xmlNamespacePrefix?`xmlns:${r.xmlNamespacePrefix}`:"xmlns";const l={[p]:r.xmlNamespace};if(["Composite"].includes(r.type.name)){if(i[_]){return i}else{const r=Object.assign({},i);r[_]=l;return r}}const d={};d[c.xmlCharKey]=i;d[_]=l;return d}function isSpecialXmlProperty(r,i){return[_,i.xmlCharKey].includes(r)}function deserializeCompositeType(r,i,a,c,p){var l,d;const u=(l=p.xmlCharKey)!==null&&l!==void 0?l:W;if(getPolymorphicDiscriminatorRecursively(r,i)){i=getPolymorphicMapper(r,i,a,"serializedName")}const A=resolveModelProperties(r,i,c);let b={};const h=[];for(const l of Object.keys(A)){const g=A[l];const M=splitSerializeName(A[l].serializedName);h.push(M[0]);const{serializedName:z,xmlName:O,xmlElementName:y}=g;let v=c;if(z!==""&&z!==undefined){v=c+"."+z}const C=g.headerCollectionPrefix;if(C){const i={};for(const c of Object.keys(a)){if(c.startsWith(C)){i[c.substring(C.length)]=r.deserialize(g.type.value,a[c],v,p)}h.push(c)}b[l]=i}else if(r.isXML){if(g.xmlIsAttribute&&a[_]){b[l]=r.deserialize(g,a[_][O],v,p)}else if(g.xmlIsMsText){if(a[u]!==undefined){b[l]=a[u]}else if(typeof a==="string"){b[l]=a}}else{const i=y||O||z;if(g.xmlIsWrapped){const i=a[O];const c=(d=i===null||i===void 0?void 0:i[y])!==null&&d!==void 0?d:[];b[l]=r.deserialize(g,c,v,p);h.push(O)}else{const c=a[i];b[l]=r.deserialize(g,c,v,p);h.push(i)}}}else{let c;let d=a;for(const r of M){if(!d)break;d=d[r]}c=d;const u=i.type.polymorphicDiscriminator;if(u&&l===u.clientName&&c==undefined){c=i.serializedName}let h;if(Array.isArray(a[l])&&A[l].serializedName===""){c=a[l];const i=r.deserialize(g,c,v,p);for(const[r,a]of Object.entries(b)){if(!Object.prototype.hasOwnProperty.call(i,r)){i[r]=a}}b=i}else if(c!==undefined||g.defaultValue!==undefined){h=r.deserialize(g,c,v,p);b[l]=h}}}const g=i.type.additionalProperties;if(g){const isAdditionalProperty=r=>{for(const i in A){const a=splitSerializeName(A[i].serializedName);if(a[0]===r){return false}}return true};for(const i in a){if(isAdditionalProperty(i)){b[i]=r.deserialize(g,a[i],c+'["'+i+'"]',p)}}}else if(a){for(const r of Object.keys(a)){if(b[r]===undefined&&!h.includes(r)&&!isSpecialXmlProperty(r,p)){b[r]=a[r]}}}return b}function deserializeDictionaryType(r,i,a,c,p){const l=i.type.value;if(!l||typeof l!=="object"){throw new Error(`"value" metadata for a Dictionary must be defined in the `+`mapper and it must of type "object" in ${c}`)}if(a){const i={};for(const d of Object.keys(a)){i[d]=r.deserialize(l,a[d],c,p)}return i}return a}function deserializeSequenceType(r,i,a,c,p){const l=i.type.element;if(!l||typeof l!=="object"){throw new Error(`element" metadata for an Array must be defined in the `+`mapper and it must of type "object" in ${c}`)}if(a){if(!Array.isArray(a)){a=[a]}const i=[];for(let d=0;d0}keys(){return Object.keys(this._rawQuery)}set(r,i){const a=i;if(r){if(a!==undefined&&a!==null){const i=Array.isArray(a)?a:a.toString();this._rawQuery[r]=i}else{delete this._rawQuery[r]}}}get(r){return r?this._rawQuery[r]:undefined}toString(){let r="";for(const i in this._rawQuery){if(r){r+="&"}const a=this._rawQuery[i];if(Array.isArray(a)){const c=[];for(const r of a){c.push(`${i}=${r}`)}r+=c.join("&")}else{r+=`${i}=${a}`}}return r}static parse(r){const i=new URLQuery;if(r){if(r.startsWith("?")){r=r.substring(1)}let a="ParameterName";let c="";let p="";for(let l=0;lisAlphaNumericCharacter(r)))}function readUntilCharacter(r,...i){return readWhile(r,(r=>i.indexOf(r)===-1))}function nextScheme(r){const i=readWhileLetterOrDigit(r);r._currentToken=URLToken.scheme(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="HOST"}}function nextSchemeOrHost(r){const i=readUntilCharacter(r,":","/","?");if(!hasCurrentCharacter(r)){r._currentToken=URLToken.host(i);r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){if(peekCharacters(r,3)==="://"){r._currentToken=URLToken.scheme(i);r._currentState="HOST"}else{r._currentToken=URLToken.host(i);r._currentState="PORT"}}else{r._currentToken=URLToken.host(i);if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}}function nextHost(r){if(peekCharacters(r,3)==="://"){nextCharacter(r,3)}const i=readUntilCharacter(r,":","/","?");r._currentToken=URLToken.host(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)===":"){r._currentState="PORT"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPort(r){if(getCurrentCharacter(r)===":"){nextCharacter(r)}const i=readUntilCharacter(r,"/","?");r._currentToken=URLToken.port(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else if(getCurrentCharacter(r)==="/"){r._currentState="PATH"}else{r._currentState="QUERY"}}function nextPath(r){const i=readUntilCharacter(r,"?");r._currentToken=URLToken.path(i);if(!hasCurrentCharacter(r)){r._currentState="DONE"}else{r._currentState="QUERY"}}function nextQuery(r){if(getCurrentCharacter(r)==="?"){nextCharacter(r)}const i=readRemaining(r);r._currentToken=URLToken.query(i);r._currentState="DONE"}function createProxyAgent(r,i,a){const c=URLBuilder.parse(i.host).getHost();if(!c){throw new Error("Expecting a non-empty host in proxy settings.")}if(!isValidPort(i.port)){throw new Error("Expecting a valid port number in the range of [0, 65535] in proxy settings.")}const p={proxy:{host:c,port:i.port,headers:a&&a.rawHeaders()||{}}};if(i.username&&i.password){p.proxy.proxyAuth=`${i.username}:${i.password}`}else if(i.username){p.proxy.proxyAuth=`${i.username}`}const l=isUrlHttps(r);const d=isUrlHttps(i.host);const u={isHttps:l,agent:createTunnel(l,d,p)};return u}function isUrlHttps(r){const i=URLBuilder.parse(r).getScheme()||"";return i.toLowerCase()==="https"}function createTunnel(r,i,a){if(r&&i){return N.httpsOverHttps(a)}else if(r&&!i){return N.httpsOverHttp(a)}else if(!r&&i){return N.httpOverHttps(a)}else{return N.httpOverHttp(a)}}function isValidPort(r){return 0<=r&&r<=65535}const D="REDACTED";const Q=["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 U=["api-version"];class Sanitizer{constructor({allowedHeaderNames:r=[],allowedQueryParameters:i=[]}={}){r=Array.isArray(r)?Q.concat(r):Q;i=Array.isArray(i)?U.concat(i):U;this.allowedHeaderNames=new Set(r.map((r=>r.toLowerCase())));this.allowedQueryParameters=new Set(i.map((r=>r.toLowerCase())))}sanitize(r){const i=new Set;return JSON.stringify(r,((r,a)=>{if(a instanceof Error){return Object.assign(Object.assign({},a),{name:a.name,message:a.message})}if(r==="_headersMap"){return this.sanitizeHeaders(a)}else if(r==="url"){return this.sanitizeUrl(a)}else if(r==="query"){return this.sanitizeQuery(a)}else if(r==="body"){return undefined}else if(r==="response"){return undefined}else if(r==="operationSpec"){return undefined}else if(Array.isArray(a)||isObject(a)){if(i.has(a)){return"[Circular]"}i.add(a)}return a}),2)}sanitizeHeaders(r){return this.sanitizeObject(r,this.allowedHeaderNames,((r,i)=>r[i].value))}sanitizeQuery(r){return this.sanitizeObject(r,this.allowedQueryParameters,((r,i)=>r[i]))}sanitizeObject(r,i,a){if(typeof r!=="object"||r===null){return r}const c={};for(const p of Object.keys(r)){if(i.has(p.toLowerCase())){c[p]=a(r,p)}else{c[p]=D}}return c}sanitizeUrl(r){if(typeof r!=="string"||r===null){return r}const i=URLBuilder.parse(r);const a=i.getQuery();if(!a){return r}const c=URLQuery.parse(a);for(const r of c.keys()){if(!this.allowedQueryParameters.has(r.toLowerCase())){c.set(r,D)}}i.setQuery(c.toString());return i.toString()}}const G=p.inspect.custom;const j=new Sanitizer;class RestError extends Error{constructor(r,i,a,c,p){super(r);this.name="RestError";this.code=i;this.statusCode=a;this.request=c;this.response=p;Object.setPrototypeOf(this,RestError.prototype)}[G](){return`RestError: ${this.message} \n ${j.sanitize(this)}`}}RestError.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";RestError.PARSE_ERROR="PARSE_ERROR";const H=A.createClientLogger("core-http");function getCachedAgent(r,i){return r?i.httpsAgent:i.httpAgent}class ReportTransform extends y.Transform{constructor(r){super();this.progressCallback=r;this.loadedBytes=0}_transform(r,i,a){this.push(r);this.loadedBytes+=r.length;this.progressCallback({loadedBytes:this.loadedBytes});a(undefined)}}function isReadableStream(r){return r&&typeof r.pipe==="function"}function isStreamComplete(r,i){return new Promise((a=>{r.once("close",(()=>{i===null||i===void 0?void 0:i.abort();a()}));r.once("end",a);r.once("error",a)}))}function parseHeaders(r){const i=new HttpHeaders;r.forEach(((r,a)=>{i.set(a,r)}));return i}class NodeFetchHttpClient{constructor(){this.proxyAgentMap=new Map;this.keepAliveAgents={}}async sendRequest(r){var i;if(!r&&typeof r!=="object"){throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.")}const a=new z.AbortController;let c;if(r.abortSignal){if(r.abortSignal.aborted){throw new z.AbortError("The operation was aborted.")}c=r=>{if(r.type==="abort"){a.abort()}};r.abortSignal.addEventListener("abort",c)}if(r.timeout){setTimeout((()=>{a.abort()}),r.timeout)}if(r.formData){const i=r.formData;const a=new I["default"];const appendFormValue=(r,i)=>{if(typeof i==="function"){i=i()}if(i&&Object.prototype.hasOwnProperty.call(i,"value")&&Object.prototype.hasOwnProperty.call(i,"options")){a.append(r,i.value,i.options)}else{a.append(r,i)}};for(const r of Object.keys(i)){const a=i[r];if(Array.isArray(a)){for(let i=0;i{var i;(i=r.abortSignal)===null||i===void 0?void 0:i.removeEventListener("abort",c);return})).catch((r=>{H.warning("Error when cleaning up abortListener on httpRequest",r)}))}}}getOrCreateAgent(r){var i;const a=isUrlHttps(r.url);if(r.proxySettings){const{host:c,port:p,username:l,password:d}=r.proxySettings;const u=`${c}:${p}:${l}:${d}`;const A=(i=this.proxyAgentMap.get(u))!==null&&i!==void 0?i:{};let b=getCachedAgent(a,A);if(b){return b}const h=createProxyAgent(r.url,r.proxySettings,r.headers);b=h.agent;if(h.isHttps){A.httpsAgent=h.agent}else{A.httpAgent=h.agent}this.proxyAgentMap.set(u,A);return b}else if(r.keepAlive){let i=getCachedAgent(a,this.keepAliveAgents);if(i){return i}const c={keepAlive:r.keepAlive};if(a){i=this.keepAliveAgents.httpsAgent=new S.Agent(c)}else{i=this.keepAliveAgents.httpAgent=new w.Agent(c)}return i}else{return a?S.globalAgent:w.globalAgent}}async fetch(r,i){return x["default"](r,i)}async prepareRequest(r){const i={};i.agent=this.getOrCreateAgent(r);i.compress=r.decompressResponse;return i}async processRequest(r){}}i.HttpPipelineLogLevel=void 0;(function(r){r[r["OFF"]=0]="OFF";r[r["ERROR"]=1]="ERROR";r[r["WARNING"]=2]="WARNING";r[r["INFO"]=3]="INFO"})(i.HttpPipelineLogLevel||(i.HttpPipelineLogLevel={}));function operationOptionsToRequestOptionsBase(r){const{requestOptions:i,tracingOptions:a}=r,c=l.__rest(r,["requestOptions","tracingOptions"]);let p=c;if(i){p=Object.assign(Object.assign({},p),i)}if(a){p.tracingContext=a.tracingContext;p.spanOptions=a===null||a===void 0?void 0:a.spanOptions}return p}class BaseRequestPolicy{constructor(r,i){this._nextPolicy=r;this._options=i}shouldLog(r){return this._options.shouldLog(r)}log(r,i){this._options.log(r,i)}}class RequestPolicyOptions{constructor(r){this._logger=r}shouldLog(r){return!!this._logger&&r!==i.HttpPipelineLogLevel.OFF&&r<=this._logger.minimumLogLevel}log(r,i){if(this._logger&&this.shouldLog(r)){this._logger.log(r,i)}}}const X={explicitCharkey:false,trim:false,normalize:false,normalizeTags:false,attrkey:_,explicitArray:true,ignoreAttrs:false,mergeAttrs:false,explicitRoot:true,validator:undefined,xmlns:false,explicitChildren:false,preserveChildrenOrder:false,childkey:"$$",charsAsChildren:false,includeWhiteChars:false,async:false,strict:true,attrNameProcessors:undefined,attrValueProcessors:undefined,tagNameProcessors:undefined,valueProcessors:undefined,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:true},doctype:undefined,renderOpts:{pretty:true,indent:" ",newline:"\n"},headless:false,chunkSize:1e4,emptyTag:"",cdata:false};const V=Object.assign({},X);V.explicitArray=false;const Y=Object.assign({},X);Y.explicitArray=false;Y.renderOpts={pretty:false};function stringifyXML(r,i={}){var a;Y.rootName=i.rootName;Y.charkey=(a=i.xmlCharKey)!==null&&a!==void 0?a:W;const c=new R.Builder(Y);return c.buildObject(r)}function parseXML(r,i={}){var a;V.explicitRoot=!!i.includeRoot;V.charkey=(a=i.xmlCharKey)!==null&&a!==void 0?a:W;const c=new R.Parser(V);return new Promise(((i,a)=>{if(!r){a(new Error("Document is empty"))}else{c.parseString(r,((r,c)=>{if(r){a(r)}else{i(c)}}))}}))}function deserializationPolicy(r,i){return{create:(a,c)=>new DeserializationPolicy(a,c,r,i)}}const $=["application/json","text/json"];const J=["application/xml","application/atom+xml"];const K={expectedContentTypes:{json:$,xml:J}};class DeserializationPolicy extends BaseRequestPolicy{constructor(r,i,a,c={}){var p;super(r,i);this.jsonContentTypes=a&&a.json||$;this.xmlContentTypes=a&&a.xml||J;this.xmlCharKey=(p=c.xmlCharKey)!==null&&p!==void 0?p:W}async sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>deserializeResponseBody(this.jsonContentTypes,this.xmlContentTypes,r,{xmlCharKey:this.xmlCharKey})))}}function getOperationResponse(r){let i;const a=r.request;const c=a.operationSpec;if(c){const p=a.operationResponseGetter;if(!p){i=c.responses[r.status]}else{i=p(c,r)}}return i}function shouldDeserializeResponse(r){const i=r.request.shouldDeserialize;let a;if(i===undefined){a=true}else if(typeof i==="boolean"){a=i}else{a=i(r)}return a}function deserializeResponseBody(r,i,a,c={}){var p,l,d;const u={rootName:(p=c.rootName)!==null&&p!==void 0?p:"",includeRoot:(l=c.includeRoot)!==null&&l!==void 0?l:false,xmlCharKey:(d=c.xmlCharKey)!==null&&d!==void 0?d:W};return parse(r,i,a,u).then((r=>{if(!shouldDeserializeResponse(r)){return r}const i=r.request.operationSpec;if(!i||!i.responses){return r}const p=getOperationResponse(r);const{error:l,shouldReturnResponse:d}=handleErrorResponse(r,i,p);if(l){throw l}else if(d){return r}if(p){if(p.bodyMapper){let a=r.parsedBody;if(i.isXML&&p.bodyMapper.type.name===P.Sequence){a=typeof a==="object"?a[p.bodyMapper.xmlElementName]:[]}try{r.parsedBody=i.serializer.deserialize(p.bodyMapper,a,"operationRes.parsedBody",c)}catch(i){const a=new RestError(`Error ${i} occurred in deserializing the responseBody - ${r.bodyAsText}`,undefined,r.status,r.request,r);throw a}}else if(i.httpMethod==="HEAD"){r.parsedBody=a.status>=200&&a.status<300}if(p.headersMapper){r.parsedHeaders=i.serializer.deserialize(p.headersMapper,r.headers.toJson(),"operationRes.parsedHeaders",c)}}return r}))}function isOperationSpecEmpty(r){const i=Object.keys(r.responses);return i.length===0||i.length===1&&i[0]==="default"}function handleErrorResponse(r,i,a){var c;const p=200<=r.status&&r.status<300;const l=isOperationSpecEmpty(i)?p:!!a;if(l){if(a){if(!a.isError){return{error:null,shouldReturnResponse:false}}}else{return{error:null,shouldReturnResponse:false}}}const d=a!==null&&a!==void 0?a:i.responses.default;const u=((c=r.request.streamResponseStatusCodes)===null||c===void 0?void 0:c.has(r.status))||r.request.streamResponseBody;const A=u?`Unexpected status code: ${r.status}`:r.bodyAsText;const b=new RestError(A,undefined,r.status,r.request,r);if(!d){throw b}const h=d.bodyMapper;const g=d.headersMapper;try{if(r.parsedBody){const a=r.parsedBody;let c;if(h){let r=a;if(i.isXML&&h.type.name===P.Sequence){r=typeof a==="object"?a[h.xmlElementName]:[]}c=i.serializer.deserialize(h,r,"error.response.parsedBody")}const p=a.error||c||a;b.code=p.code;if(p.message){b.message=p.message}if(h){b.response.parsedBody=c}}if(r.headers&&g){b.response.parsedHeaders=i.serializer.deserialize(g,r.headers.toJson(),"operationRes.parsedHeaders")}}catch(i){b.message=`Error "${i.message}" occurred in deserializing the responseBody - "${r.bodyAsText}" for the default response.`}return{error:b,shouldReturnResponse:false}}function parse(r,i,a,c){var p;const errorHandler=r=>{const i=`Error "${r}" occurred while parsing the response body - ${a.bodyAsText}.`;const c=r.code||RestError.PARSE_ERROR;const p=new RestError(i,c,a.status,a.request,a);return Promise.reject(p)};const l=((p=a.request.streamResponseStatusCodes)===null||p===void 0?void 0:p.has(a.status))||a.request.streamResponseBody;if(!l&&a.bodyAsText){const p=a.bodyAsText;const l=a.headers.get("Content-Type")||"";const d=!l?[]:l.split(";").map((r=>r.toLowerCase()));if(d.length===0||d.some((i=>r.indexOf(i)!==-1))){return new Promise((r=>{a.parsedBody=JSON.parse(p);r(a)})).catch(errorHandler)}else if(d.some((r=>i.indexOf(r)!==-1))){return parseXML(p,c).then((r=>{a.parsedBody=r;return a})).catch(errorHandler)}}return Promise.resolve(a)}const Z={enable:true};function keepAlivePolicy(r){return{create:(i,a)=>new KeepAlivePolicy(i,a,r||Z)}}class KeepAlivePolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.keepAliveOptions=a}async sendRequest(r){r.keepAlive=this.keepAliveOptions.enable;return this._nextPolicy.sendRequest(r)}}const ee=["GET","HEAD"];const te={handleRedirects:true,maxRetries:20};function redirectPolicy(r=20){return{create:(i,a)=>new RedirectPolicy(i,a,r)}}class RedirectPolicy extends BaseRequestPolicy{constructor(r,i,a=20){super(r,i);this.maxRetries=a}sendRequest(r){return this._nextPolicy.sendRequest(r).then((r=>handleRedirect(this,r,0)))}}function handleRedirect(r,i,a){const{request:c,status:p}=i;const l=i.headers.get("location");if(l&&(p===300||p===301&&ee.includes(c.method)||p===302&&ee.includes(c.method)||p===303&&c.method==="POST"||p===307)&&(!r.maxRetries||ahandleRedirect(r,i,a+1)))}return Promise.resolve(i)}const re=3;const oe=1e3*30;const ie=1e3*90;const se=1e3*3;function isNumber(r){return typeof r==="number"}function shouldRetry(r,i,a,c,p){if(!i(c,p)){return false}return a.retryCountnew ExponentialRetryPolicy(c,p,r,i,a)}}i.RetryMode=void 0;(function(r){r[r["Exponential"]=0]="Exponential"})(i.RetryMode||(i.RetryMode={}));const ae={maxRetries:re,retryDelayInMs:oe,maxRetryDelayInMs:ie};class ExponentialRetryPolicy extends BaseRequestPolicy{constructor(r,i,a,c,p){super(r,i);this.retryCount=isNumber(a)?a:re;this.retryInterval=isNumber(c)?c:oe;this.maxRetryInterval=isNumber(p)?p:ie}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>retry$1(this,r,i))).catch((i=>retry$1(this,r,i.response,undefined,i)))}}async function retry$1(r,i,a,c,p){function shouldPolicyRetry(r){const i=r===null||r===void 0?void 0:r.status;if(i===503&&(a===null||a===void 0?void 0:a.headers.get(T.HeaderConstants.RETRY_AFTER))){return false}if(i===undefined||i<500&&i!==408||i===501||i===505){return false}return true}c=updateRetryData({retryInterval:r.retryInterval,minRetryInterval:0,maxRetryInterval:r.maxRetryInterval},c,p);const l=i.abortSignal&&i.abortSignal.aborted;if(!l&&shouldRetry(r.retryCount,shouldPolicyRetry,c,a)){H.info(`Retrying request in ${c.retryInterval}`);try{await u.delay(c.retryInterval);const a=await r._nextPolicy.sendRequest(i.clone());return retry$1(r,i,a,c)}catch(p){return retry$1(r,i,a,c,p)}}else if(l||p||!a){const r=c.error||new RestError("Failed to send the request.",RestError.REQUEST_SEND_ERROR,a&&a.status,a&&a.request,a);throw r}else{return a}}function logPolicy(r={}){return{create:(i,a)=>new LogPolicy(i,a,r)}}class LogPolicy extends BaseRequestPolicy{constructor(r,i,{logger:a=H.info,allowedHeaderNames:c=[],allowedQueryParameters:p=[]}={}){super(r,i);this.logger=a;this.sanitizer=new Sanitizer({allowedHeaderNames:c,allowedQueryParameters:p})}get allowedHeaderNames(){return this.sanitizer.allowedHeaderNames}set allowedHeaderNames(r){this.sanitizer.allowedHeaderNames=r}get allowedQueryParameters(){return this.sanitizer.allowedQueryParameters}set allowedQueryParameters(r){this.sanitizer.allowedQueryParameters=r}sendRequest(r){if(!this.logger.enabled)return this._nextPolicy.sendRequest(r);this.logRequest(r);return this._nextPolicy.sendRequest(r).then((r=>this.logResponse(r)))}logRequest(r){this.logger(`Request: ${this.sanitizer.sanitize(r)}`)}logResponse(r){this.logger(`Response status code: ${r.status}`);this.logger(`Headers: ${this.sanitizer.sanitize(r.headers)}`);return r}}function getPathStringFromParameter(r){return getPathStringFromParameterPath(r.parameterPath,r.mapper)}function getPathStringFromParameterPath(r,i){let a;if(typeof r==="string"){a=r}else if(Array.isArray(r)){a=r.join(".")}else{a=i.serializedName}return a}function getStreamResponseStatusCodes(r){const i=new Set;for(const a in r.responses){const c=r.responses[a];if(c.bodyMapper&&c.bodyMapper.type.name===P.Stream){i.add(Number(a))}}return i}function getDefaultUserAgentKey(){return T.HeaderConstants.USER_AGENT}function getPlatformSpecificData(){const r={key:"Node",value:process.version};const i={key:"OS",value:`(${B.arch()}-${B.type()}-${B.release()})`};return[r,i]}function getRuntimeInfo(){const r={key:"core-http",value:T.coreHttpVersion};return[r]}function getUserAgentString(r,i=" ",a="/"){return r.map((r=>{const i=r.value?`${a}${r.value}`:"";return`${r.key}${i}`})).join(i)}const ce=getDefaultUserAgentKey;function getDefaultUserAgentValue(){const r=getRuntimeInfo();const i=getPlatformSpecificData();const a=getUserAgentString(r.concat(i));return a}function userAgentPolicy(r){const i=!r||r.key===undefined||r.key===null?getDefaultUserAgentKey():r.key;const a=!r||r.value===undefined||r.value===null?getDefaultUserAgentValue():r.value;return{create:(r,c)=>new UserAgentPolicy(r,c,i,a)}}class UserAgentPolicy extends BaseRequestPolicy{constructor(r,i,a,c){super(r,i);this._nextPolicy=r;this._options=i;this.headerKey=a;this.headerValue=c}sendRequest(r){this.addUserAgentHeader(r);return this._nextPolicy.sendRequest(r)}addUserAgentHeader(r){if(!r.headers){r.headers=new HttpHeaders}if(!r.headers.get(this.headerKey)&&this.headerValue){r.headers.set(this.headerKey,this.headerValue)}}}i.QueryCollectionFormat=void 0;(function(r){r["Csv"]=",";r["Ssv"]=" ";r["Tsv"]="\t";r["Pipes"]="|";r["Multi"]="Multi"})(i.QueryCollectionFormat||(i.QueryCollectionFormat={}));const pe={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,a){async function tryGetAccessToken(){if(Date.now()r.getToken(i,a);c=beginRefresh(tryGetAccessToken,l.retryIntervalInMs,(u=p===null||p===void 0?void 0:p.expiresOnTimestamp)!==null&&u!==void 0?u:Date.now()).then((r=>{c=null;p=r;return p})).catch((r=>{c=null;p=null;throw r}))}return c}return async r=>{if(d.mustRefresh)return refresh(r);if(d.shouldRefresh){refresh(r)}return p}}function bearerTokenAuthenticationPolicy(r,i){const a=createTokenCycler(r,i);class BearerTokenAuthenticationPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(!r.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const{token:i}=await a({abortSignal:r.abortSignal,tracingOptions:{tracingContext:r.tracingContext}});r.headers.set(T.HeaderConstants.AUTHORIZATION,`Bearer ${i}`);return this._nextPolicy.sendRequest(r)}}return{create:(r,i)=>new BearerTokenAuthenticationPolicy(r,i)}}function disableResponseDecompressionPolicy(){return{create:(r,i)=>new DisableResponseDecompressionPolicy(r,i)}}class DisableResponseDecompressionPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){r.decompressResponse=false;return this._nextPolicy.sendRequest(r)}}function generateClientRequestIdPolicy(r="x-ms-client-request-id"){return{create:(i,a)=>new GenerateClientRequestIdPolicy(i,a,r)}}class GenerateClientRequestIdPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this._requestIdHeaderName=a}sendRequest(r){if(!r.headers.contains(this._requestIdHeaderName)){r.headers.set(this._requestIdHeaderName,r.requestId)}return this._nextPolicy.sendRequest(r)}}let de;function getCachedDefaultHttpClient(){if(!de){de=new NodeFetchHttpClient}return de}function ndJsonPolicy(){return{create:(r,i)=>new NdJsonPolicy(r,i)}}class NdJsonPolicy extends BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(r){if(typeof r.body==="string"&&r.body.startsWith("[")){const i=JSON.parse(r.body);if(Array.isArray(i)){r.body=i.map((r=>JSON.stringify(r)+"\n")).join("")}}return this._nextPolicy.sendRequest(r)}}const ue=[];let Ae=false;const me=new Map;function loadEnvironmentProxyValue(){if(!process){return undefined}const r=getEnvironmentValue(T.HTTPS_PROXY);const i=getEnvironmentValue(T.ALL_PROXY);const a=getEnvironmentValue(T.HTTP_PROXY);return r||i||a}function isBypassed(r,i,a){if(i.length===0){return false}const c=URLBuilder.parse(r).getHost();if(a===null||a===void 0?void 0:a.has(c)){return a.get(c)}let p=false;for(const r of i){if(r[0]==="."){if(c.endsWith(r)){p=true}else{if(c.length===r.length-1&&c===r.slice(1)){p=true}}}else{if(c===r){p=true}}}a===null||a===void 0?void 0:a.set(c,p);return p}function loadNoProxy(){const r=getEnvironmentValue(T.NO_PROXY);Ae=true;if(r){return r.split(",").map((r=>r.trim())).filter((r=>r.length))}return[]}function getDefaultProxySettings(r){if(!r){r=loadEnvironmentProxyValue();if(!r){return undefined}}const{username:i,password:a,urlWithoutAuth:c}=extractAuthFromUrl(r);const p=URLBuilder.parse(c);const l=p.getScheme()?p.getScheme()+"://":"";return{host:l+p.getHost(),port:Number.parseInt(p.getPort()||"80"),username:i,password:a}}function proxyPolicy(r,i){if(!r){r=getDefaultProxySettings()}if(!Ae){ue.push(...loadNoProxy())}return{create:(a,c)=>new ProxyPolicy(a,c,r,i===null||i===void 0?void 0:i.customNoProxyList)}}function extractAuthFromUrl(r){const i=r.indexOf("@");if(i===-1){return{urlWithoutAuth:r}}const a=r.indexOf("://");const c=a!==-1?a+3:0;const p=r.substring(c,i);const l=p.indexOf(":");const d=l!==-1;const u=d?p.substring(0,l):p;const A=d?p.substring(l+1):undefined;const b=r.substring(0,c)+r.substring(i+1);return{username:u,password:A,urlWithoutAuth:b}}class ProxyPolicy extends BaseRequestPolicy{constructor(r,i,a,c){super(r,i);this.proxySettings=a;this.customNoProxyList=c}sendRequest(r){var i;if(!r.proxySettings&&!isBypassed(r.url,(i=this.customNoProxyList)!==null&&i!==void 0?i:ue,this.customNoProxyList?undefined:me)){r.proxySettings=this.proxySettings}return this._nextPolicy.sendRequest(r)}}function rpRegistrationPolicy(r=30){return{create:(i,a)=>new RPRegistrationPolicy(i,a,r)}}class RPRegistrationPolicy extends BaseRequestPolicy{constructor(r,i,a=30){super(r,i);this._retryTimeout=a}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).then((i=>registerIfNeeded(this,r,i)))}}function registerIfNeeded(r,i,a){if(a.status===409){const c=checkRPNotRegisteredError(a.bodyAsText);if(c){const p=extractSubscriptionUrl(i.url);return registerRP(r,p,c,i).catch((()=>false)).then((c=>{if(c){i.headers.set("x-ms-client-request-id",generateUuid());return r._nextPolicy.sendRequest(i.clone())}return a}))}}return Promise.resolve(a)}function getRequestEssentials(r,i=false){const a=r.clone();if(i){a.url=r.url}a.headers.set("x-ms-client-request-id",generateUuid());a.headers.set("Content-Type","application/json; charset=utf-8");return a}function checkRPNotRegisteredError(r){let i,a;if(r){try{a=JSON.parse(r)}catch(r){}if(a&&a.error&&a.error.message&&a.error.code&&a.error.code==="MissingSubscriptionRegistration"){const r=a.error.message.match(/.*'(.*)'/i);if(r){i=r.pop()}}}return i}function extractSubscriptionUrl(r){let i;const a=r.match(/.*\/subscriptions\/[a-f0-9-]+\//gi);if(a&&a[0]){i=a[0]}else{throw new Error(`Unable to extract subscriptionId from the given url - ${r}.`)}return i}async function registerRP(r,i,a,c){const p=`${i}providers/${a}/register?api-version=2016-02-01`;const l=`${i}providers/${a}?api-version=2016-02-01`;const d=getRequestEssentials(c);d.method="POST";d.url=p;const u=await r._nextPolicy.sendRequest(d);if(u.status!==200){throw new Error(`Autoregistration of ${a} failed. Please try registering manually.`)}return getRegistrationStatus(r,l,c)}async function getRegistrationStatus(r,i,a){const c=getRequestEssentials(a);c.url=i;c.method="GET";const p=await r._nextPolicy.sendRequest(c);const l=p.parsedBody;if(p.parsedBody&&l.registrationState&&l.registrationState==="Registered"){return true}else{await u.delay(r._retryTimeout*1e3);return getRegistrationStatus(r,i,a)}}function signingPolicy(r){return{create:(i,a)=>new SigningPolicy(i,a,r)}}class SigningPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.authenticationProvider=a}signRequest(r){return this.authenticationProvider.signRequest(r)}sendRequest(r){return this.signRequest(r).then((r=>this._nextPolicy.sendRequest(r)))}}function systemErrorRetryPolicy(r,i,a,c){return{create:(p,l)=>new SystemErrorRetryPolicy(p,l,r,i,a,c)}}class SystemErrorRetryPolicy extends BaseRequestPolicy{constructor(r,i,a,c,p,l){super(r,i);this.retryCount=isNumber(a)?a:re;this.retryInterval=isNumber(c)?c:oe;this.minRetryInterval=isNumber(p)?p:se;this.maxRetryInterval=isNumber(l)?l:ie}sendRequest(r){return this._nextPolicy.sendRequest(r.clone()).catch((i=>retry(this,r,i.response,i)))}}async function retry(r,i,a,c,p){p=updateRetryData(r,p,c);function shouldPolicyRetry(r,i){if(i&&i.code&&(i.code==="ETIMEDOUT"||i.code==="ESOCKETTIMEDOUT"||i.code==="ECONNREFUSED"||i.code==="ECONNRESET"||i.code==="ENOENT")){return true}return false}if(shouldRetry(r.retryCount,shouldPolicyRetry,p,a,c)){try{await u.delay(p.retryInterval);return r._nextPolicy.sendRequest(i.clone())}catch(c){return retry(r,i,a,c,p)}}else{if(c){return Promise.reject(p.error)}return a}}const be=3;const fe=T.HttpConstants.StatusCodes;function throttlingRetryPolicy(){return{create:(r,i)=>new ThrottlingRetryPolicy(r,i)}}const he="The operation was aborted.";class ThrottlingRetryPolicy extends BaseRequestPolicy{constructor(r,i,a){super(r,i);this.numberOfRetries=0;this._handleResponse=a||this._defaultResponseHandler}async sendRequest(r){const i=await this._nextPolicy.sendRequest(r.clone());if(i.status!==fe.TooManyRequests&&i.status!==fe.ServiceUnavailable){return i}else{return this._handleResponse(r,i)}}async _defaultResponseHandler(r,i){var a;const c=i.headers.get(T.HeaderConstants.RETRY_AFTER);if(c){const i=ThrottlingRetryPolicy.parseRetryAfterHeader(c);if(i){this.numberOfRetries+=1;await u.delay(i,{abortSignal:r.abortSignal,abortErrorMsg:he});if((a=r.abortSignal)===null||a===void 0?void 0:a.aborted){throw new z.AbortError(he)}if(this.numberOfRetries{let a=undefined;const c=this;const p=i;return{create(i,l){const d=getCredentialScopes(p,c.baseUri);if(!d){throw new Error(`When using credential, the ServiceClient must contain a baseUri or a credentialScopes in ServiceClientOptions. Unable to create a bearerTokenAuthenticationPolicy`)}if(a===undefined||a===null){a=bearerTokenAuthenticationPolicy(r,d)}return a.create(i,l)}}};c=wrappedPolicyFactory()}else if(r&&typeof r.signRequest==="function"){H.info("ServiceClient: creating signing policy from provided credentials");c=signingPolicy(r)}else if(r!==undefined&&r!==null){throw new Error("The credentials argument must implement the TokenCredential interface")}H.info("ServiceClient: using default request policies");a=createDefaultRequestPolicyFactories(c,i);if(i.requestPolicyFactories){const r=i.requestPolicyFactories(a);if(r){a=r}}}this._requestPolicyFactories=a}sendRequest(r){if(r===null||r===undefined||typeof r!=="object"){throw new Error("options cannot be null or undefined and it must be of type object.")}let i;try{if(isWebResourceLike(r)){r.validateRequestProperties();i=r}else{i=new WebResource;i=i.prepare(r)}}catch(r){return Promise.reject(r)}let a=this._httpClient;if(this._requestPolicyFactories&&this._requestPolicyFactories.length>0){for(let r=this._requestPolicyFactories.length-1;r>=0;--r){a=this._requestPolicyFactories[r].create(a,this._requestPolicyOptions)}}return a.sendRequest(i)}async sendOperationRequest(r,a,c){var p;if(typeof r.options==="function"){c=r.options;r.options=undefined}const l=(p=r.options)===null||p===void 0?void 0:p.serializerOptions;const d=new WebResource;let u;try{const c=a.baseUrl||this.baseUri;if(!c){throw new Error("If operationSpec.baseUrl is not specified, then the ServiceClient must have a baseUri string property that contains the base URL to use.")}d.method=a.httpMethod;d.operationSpec=a;const p=URLBuilder.parse(c);if(a.path){p.appendPath(a.path)}if(a.urlParameters&&a.urlParameters.length>0){for(const i of a.urlParameters){let c=getOperationArgumentValueFromParameter(this,r,i,a.serializer);c=a.serializer.serialize(i.mapper,c,getPathStringFromParameter(i),l);if(!i.skipEncoding){c=encodeURIComponent(c)}p.replaceAll(`{${i.mapper.serializedName||getPathStringFromParameter(i)}}`,c)}}if(a.queryParameters&&a.queryParameters.length>0){for(const c of a.queryParameters){let d=getOperationArgumentValueFromParameter(this,r,c,a.serializer);if(d!==undefined&&d!==null){d=a.serializer.serialize(c.mapper,d,getPathStringFromParameter(c),l);if(c.collectionFormat!==undefined&&c.collectionFormat!==null){if(c.collectionFormat===i.QueryCollectionFormat.Multi){if(d.length===0){continue}else{for(const r in d){const i=d[r];d[r]=i===undefined||i===null?"":i.toString()}}}else if(c.collectionFormat===i.QueryCollectionFormat.Ssv||c.collectionFormat===i.QueryCollectionFormat.Tsv){d=d.join(c.collectionFormat)}}if(!c.skipEncoding){if(Array.isArray(d)){for(const r in d){if(d[r]!==undefined&&d[r]!==null){d[r]=encodeURIComponent(d[r])}}}else{d=encodeURIComponent(d)}}if(c.collectionFormat!==undefined&&c.collectionFormat!==null&&c.collectionFormat!==i.QueryCollectionFormat.Multi&&c.collectionFormat!==i.QueryCollectionFormat.Ssv&&c.collectionFormat!==i.QueryCollectionFormat.Tsv){d=d.join(c.collectionFormat)}p.setQueryParameter(c.mapper.serializedName||getPathStringFromParameter(c),d)}}}d.url=p.toString();const A=a.contentType||this.requestContentType;if(A&&a.requestBody){d.headers.set("Content-Type",A)}if(a.headerParameters){for(const i of a.headerParameters){let c=getOperationArgumentValueFromParameter(this,r,i,a.serializer);if(c!==undefined&&c!==null){c=a.serializer.serialize(i.mapper,c,getPathStringFromParameter(i),l);const r=i.mapper.headerCollectionPrefix;if(r){for(const i of Object.keys(c)){d.headers.set(r+i,c[i])}}else{d.headers.set(i.mapper.serializedName||getPathStringFromParameter(i),c)}}}}const b=r.options;if(b){if(b.customHeaders){for(const r in b.customHeaders){d.headers.set(r,b.customHeaders[r])}}if(b.abortSignal){d.abortSignal=b.abortSignal}if(b.timeout){d.timeout=b.timeout}if(b.onUploadProgress){d.onUploadProgress=b.onUploadProgress}if(b.onDownloadProgress){d.onDownloadProgress=b.onDownloadProgress}if(b.spanOptions){d.spanOptions=b.spanOptions}if(b.tracingContext){d.tracingContext=b.tracingContext}if(b.shouldDeserialize!==undefined&&b.shouldDeserialize!==null){d.shouldDeserialize=b.shouldDeserialize}}d.withCredentials=this._withCredentials;serializeRequestBody(this,d,r,a);if(d.streamResponseStatusCodes===undefined){d.streamResponseStatusCodes=getStreamResponseStatusCodes(a)}let h;let g;try{h=await this.sendRequest(d)}catch(r){g=r}if(g){if(g.response){g.details=flattenResponse(g.response,a.responses[g.statusCode]||a.responses["default"])}u=Promise.reject(g)}else{u=Promise.resolve(flattenResponse(h,a.responses[h.status]))}}catch(r){u=Promise.reject(r)}const A=c;if(A){u.then((r=>A(null,r._response.parsedBody,r._response.request,r._response))).catch((r=>A(r)))}return u}}function serializeRequestBody(r,i,a,c){var p,l,d,u,A,b;const h=(l=(p=a.options)===null||p===void 0?void 0:p.serializerOptions)!==null&&l!==void 0?l:{};const g={rootName:(d=h.rootName)!==null&&d!==void 0?d:"",includeRoot:(u=h.includeRoot)!==null&&u!==void 0?u:false,xmlCharKey:(A=h.xmlCharKey)!==null&&A!==void 0?A:W};const M=h.xmlCharKey;if(c.requestBody&&c.requestBody.mapper){i.body=getOperationArgumentValueFromParameter(r,a,c.requestBody,c.serializer);const p=c.requestBody.mapper;const{required:l,xmlName:d,xmlElementName:u,serializedName:A,xmlNamespace:h,xmlNamespacePrefix:z}=p;const O=p.type.name;try{if(i.body!==undefined&&i.body!==null||l){const r=getPathStringFromParameter(c.requestBody);i.body=c.serializer.serialize(p,i.body,r,g);const a=O===P.Stream;if(c.isXML){const r=z?`xmlns:${z}`:"xmlns";const c=getXmlValueWithNamespace(h,r,O,i.body,g);if(O===P.Sequence){i.body=stringifyXML(prepareXMLRootList(c,u||d||A,r,h),{rootName:d||A,xmlCharKey:M})}else if(!a){i.body=stringifyXML(c,{rootName:d||A,xmlCharKey:M})}}else if(O===P.String&&(((b=c.contentType)===null||b===void 0?void 0:b.match("text/plain"))||c.mediaType==="text")){return}else if(!a){i.body=JSON.stringify(i.body)}}}catch(r){throw new Error(`Error "${r.message}" occurred in serializing the payload - ${JSON.stringify(A,undefined," ")}.`)}}else if(c.formDataParameters&&c.formDataParameters.length>0){i.formData={};for(const p of c.formDataParameters){const l=getOperationArgumentValueFromParameter(r,a,p,c.serializer);if(l!==undefined&&l!==null){const r=p.mapper.serializedName||getPathStringFromParameter(p);i.formData[r]=c.serializer.serialize(p.mapper,l,getPathStringFromParameter(p),g)}}}}function getXmlValueWithNamespace(r,i,a,c,p){if(r&&!["Composite","Sequence","Dictionary"].includes(a)){const a={};a[p.xmlCharKey]=c;a[_]={[i]:r};return a}return c}function getValueOrFunctionResult(r,i){let a;if(typeof r==="string"){a=r}else{a=i();if(typeof r==="function"){a=r(a)}}return a}function createDefaultRequestPolicyFactories(r,i){const a=[];if(i.generateClientRequestIdHeader){a.push(generateClientRequestIdPolicy(i.clientRequestIdHeaderName))}if(r){a.push(r)}const c=getValueOrFunctionResult(i.userAgentHeaderName,ce);const p=getValueOrFunctionResult(i.userAgent,getDefaultUserAgentValue);if(c&&p){a.push(userAgentPolicy({key:c,value:p}))}a.push(redirectPolicy());a.push(rpRegistrationPolicy(i.rpRegistrationRetryTimeout));if(!i.noRetryPolicy){a.push(exponentialRetryPolicy());a.push(systemErrorRetryPolicy());a.push(throttlingRetryPolicy())}a.push(deserializationPolicy(i.deserializationContentTypes));if(u.isNode){a.push(proxyPolicy(i.proxySettings))}a.push(logPolicy({logger:H.info}));return a}function createPipelineFromOptions(r,i){const a=[];if(r.sendStreamingJson){a.push(ndJsonPolicy())}let c=undefined;if(r.userAgentOptions&&r.userAgentOptions.userAgentPrefix){const i=[];i.push(r.userAgentOptions.userAgentPrefix);const a=getDefaultUserAgentValue();if(i.indexOf(a)===-1){i.push(a)}c=i.join(" ")}const p=Object.assign(Object.assign({},Z),r.keepAliveOptions);const l=Object.assign(Object.assign({},ae),r.retryOptions);const d=Object.assign(Object.assign({},te),r.redirectOptions);if(u.isNode){a.push(proxyPolicy(r.proxyOptions))}const A=Object.assign(Object.assign({},K),r.deserializationOptions);const b=Object.assign({},r.loggingOptions);a.push(tracingPolicy({userAgent:c}),keepAlivePolicy(p),userAgentPolicy({value:c}),generateClientRequestIdPolicy(),deserializationPolicy(A.expectedContentTypes),throttlingRetryPolicy(),systemErrorRetryPolicy(),exponentialRetryPolicy(l.maxRetries,l.retryDelayInMs,l.maxRetryDelayInMs));if(d.handleRedirects){a.push(redirectPolicy(d.maxRetries))}if(i){a.push(i)}a.push(logPolicy(b));if(u.isNode&&r.decompressResponse===false){a.push(disableResponseDecompressionPolicy())}return{httpClient:r.httpClient,requestPolicyFactories:a}}function getOperationArgumentValueFromParameter(r,i,a,c){return getOperationArgumentValueFromParameterPath(r,i,a.parameterPath,a.mapper,c)}function getOperationArgumentValueFromParameterPath(r,i,a,c,p){var l;let d;if(typeof a==="string"){a=[a]}const u=(l=i.options)===null||l===void 0?void 0:l.serializerOptions;if(Array.isArray(a)){if(a.length>0){if(c.isConstant){d=c.defaultValue}else{let p=getPropertyFromParameterPath(i,a);if(!p.propertyFound){p=getPropertyFromParameterPath(r,a)}let l=false;if(!p.propertyFound){l=c.required||a[0]==="options"&&a.length===2}d=l?c.defaultValue:p.propertyValue}const l=getPathStringFromParameterPath(a,c);p.serialize(c,d,l,u)}}else{if(c.required){d={}}for(const l in a){const A=c.type.modelProperties[l];const b=a[l];const h=getOperationArgumentValueFromParameterPath(r,i,b,A,p);const g=getPathStringFromParameterPath(b,A);p.serialize(A,h,g,u);if(h!==undefined&&h!==null){if(!d){d={}}d[l]=h}}}return d}function getPropertyFromParameterPath(r,i){const a={propertyFound:false};let c=0;for(;cObject.defineProperty(i,"_response",{value:r});if(c){const i=c.type.name;if(i==="Stream"){return addOperationResponse(Object.assign(Object.assign({},a),{blobBody:r.blobBody,readableStreamBody:r.readableStreamBody}))}const p=i==="Composite"&&c.type.modelProperties||{};const l=Object.keys(p).some((r=>p[r].serializedName===""));if(i==="Sequence"||l){const i=[...r.parsedBody||[]];for(const a of Object.keys(p)){if(p[a].serializedName){i[a]=r.parsedBody[a]}}if(a){for(const r of Object.keys(a)){i[r]=a[r]}}addOperationResponse(i);return i}if(i==="Composite"||i==="Dictionary"){return addOperationResponse(Object.assign(Object.assign({},a),r.parsedBody))}}if(c||r.request.method==="HEAD"||isPrimitiveType(r.parsedBody)){return addOperationResponse(Object.assign(Object.assign({},a),{body:r.parsedBody}))}return addOperationResponse(Object.assign(Object.assign({},a),r.parsedBody))}function getCredentialScopes(r,i){if(r===null||r===void 0?void 0:r.credentialScopes){return r.credentialScopes}if(i){return`${i}/.default`}return undefined}function createSpanFunction(r){return q.createSpanFunction(r)}const ze=2*60*1e3;class ExpiringAccessTokenCache{constructor(r=ze){this.cachedToken=undefined;this.tokenRefreshBufferMs=r}setCachedToken(r){this.cachedToken=r}getCachedToken(){if(this.cachedToken&&Date.now()+this.tokenRefreshBufferMs>=this.cachedToken.expiresOnTimestamp){this.cachedToken=undefined}return this.cachedToken}}class AccessTokenRefresher{constructor(r,i,a=3e4){this.credential=r;this.scopes=i;this.requiredMillisecondsBeforeNewRefresh=a;this.lastCalled=0}isReady(){return!this.lastCalled||Date.now()-this.lastCalled>this.requiredMillisecondsBeforeNewRefresh}async getToken(r){this.lastCalled=Date.now();const i=await this.credential.getToken(this.scopes,r);this.promise=undefined;return i||undefined}refresh(r){if(!this.promise){this.promise=this.getToken(r)}return this.promise}}const Oe=T.HeaderConstants;const ye="Basic";class BasicAuthenticationCredentials{constructor(r,i,a=ye){this.authorizationScheme=ye;if(r===null||r===undefined||typeof r.valueOf()!=="string"){throw new Error("userName cannot be null or undefined and must be of type string.")}if(i===null||i===undefined||typeof i.valueOf()!=="string"){throw new Error("password cannot be null or undefined and must be of type string.")}this.userName=r;this.password=i;this.authorizationScheme=a}signRequest(r){const i=`${this.userName}:${this.password}`;const a=`${this.authorizationScheme} ${encodeString(i)}`;if(!r.headers)r.headers=new HttpHeaders;r.headers.set(Oe.AUTHORIZATION,a);return Promise.resolve(r)}}class ApiKeyCredentials{constructor(r){if(!r||r&&!r.inHeader&&!r.inQuery){throw new Error(`options cannot be null or undefined. Either "inHeader" or "inQuery" property of the options object needs to be provided.`)}this.inHeader=r.inHeader;this.inQuery=r.inQuery}signRequest(r){if(!r){return Promise.reject(new Error(`webResource cannot be null or undefined and must be of type "object".`))}if(this.inHeader){if(!r.headers){r.headers=new HttpHeaders}for(const i in this.inHeader){r.headers.set(i,this.inHeader[i])}}if(this.inQuery){if(!r.url){return Promise.reject(new Error(`url cannot be null in the request object.`))}if(r.url.indexOf("?")<0){r.url+="?"}for(const i in this.inQuery){if(!r.url.endsWith("?")){r.url+="&"}r.url+=`${i}=${this.inQuery[i]}`}}return Promise.resolve(r)}}class TopicCredentials extends ApiKeyCredentials{constructor(r){if(!r||r&&typeof r!=="string"){throw new Error("topicKey cannot be null or undefined and must be of type string.")}const i={inHeader:{"aeg-sas-key":r}};super(i)}}Object.defineProperty(i,"delay",{enumerable:true,get:function(){return u.delay}});Object.defineProperty(i,"isNode",{enumerable:true,get:function(){return u.isNode}});Object.defineProperty(i,"isTokenCredential",{enumerable:true,get:function(){return b.isTokenCredential}});i.AccessTokenRefresher=AccessTokenRefresher;i.ApiKeyCredentials=ApiKeyCredentials;i.BaseRequestPolicy=BaseRequestPolicy;i.BasicAuthenticationCredentials=BasicAuthenticationCredentials;i.Constants=T;i.DefaultHttpClient=NodeFetchHttpClient;i.ExpiringAccessTokenCache=ExpiringAccessTokenCache;i.HttpHeaders=HttpHeaders;i.MapperType=P;i.RequestPolicyOptions=RequestPolicyOptions;i.RestError=RestError;i.Serializer=Serializer;i.ServiceClient=ServiceClient;i.TopicCredentials=TopicCredentials;i.URLBuilder=URLBuilder;i.URLQuery=URLQuery;i.WebResource=WebResource;i.XML_ATTRKEY=_;i.XML_CHARKEY=W;i.applyMixins=applyMixins;i.bearerTokenAuthenticationPolicy=bearerTokenAuthenticationPolicy;i.createPipelineFromOptions=createPipelineFromOptions;i.createSpanFunction=createSpanFunction;i.deserializationPolicy=deserializationPolicy;i.deserializeResponseBody=deserializeResponseBody;i.disableResponseDecompressionPolicy=disableResponseDecompressionPolicy;i.encodeUri=encodeUri;i.executePromisesSequentially=executePromisesSequentially;i.exponentialRetryPolicy=exponentialRetryPolicy;i.flattenResponse=flattenResponse;i.generateClientRequestIdPolicy=generateClientRequestIdPolicy;i.generateUuid=generateUuid;i.getDefaultProxySettings=getDefaultProxySettings;i.getDefaultUserAgentValue=getDefaultUserAgentValue;i.isDuration=isDuration;i.isValidUuid=isValidUuid;i.keepAlivePolicy=keepAlivePolicy;i.logPolicy=logPolicy;i.operationOptionsToRequestOptionsBase=operationOptionsToRequestOptionsBase;i.parseXML=parseXML;i.promiseToCallback=promiseToCallback;i.promiseToServiceCallback=promiseToServiceCallback;i.proxyPolicy=proxyPolicy;i.redirectPolicy=redirectPolicy;i.serializeObject=serializeObject;i.signingPolicy=signingPolicy;i.stringifyXML=stringifyXML;i.stripRequest=stripRequest;i.stripResponse=stripResponse;i.systemErrorRetryPolicy=systemErrorRetryPolicy;i.throttlingRetryPolicy=throttlingRetryPolicy;i.tracingPolicy=tracingPolicy;i.userAgentPolicy=userAgentPolicy},46279:(r,i,a)=>{var c=a(85443);var p=a(73837);var l=a(71017);var d=a(13685);var u=a(95687);var A=a(57310).parse;var b=a(57147);var h=a(12781).Stream;var g=a(43583);var M=a(14812);var z=a(63971);r.exports=FormData;p.inherits(FormData,c);function FormData(r){if(!(this instanceof FormData)){return new FormData(r)}this._overheadLength=0;this._valueLength=0;this._valuesToMeasure=[];c.call(this);r=r||{};for(var i in r){this[i]=r[i]}}FormData.LINE_BREAK="\r\n";FormData.DEFAULT_CONTENT_TYPE="application/octet-stream";FormData.prototype.append=function(r,i,a){a=a||{};if(typeof a=="string"){a={filename:a}}var l=c.prototype.append.bind(this);if(typeof i=="number"){i=""+i}if(p.isArray(i)){this._error(new Error("Arrays are not supported."));return}var d=this._multiPartHeader(r,i,a);var u=this._multiPartFooter();l(d);l(i);l(u);this._trackLength(d,i,a)};FormData.prototype._trackLength=function(r,i,a){var c=0;if(a.knownLength!=null){c+=+a.knownLength}else if(Buffer.isBuffer(i)){c=i.length}else if(typeof i==="string"){c=Buffer.byteLength(i)}this._valueLength+=c;this._overheadLength+=Buffer.byteLength(r)+FormData.LINE_BREAK.length;if(!i||!i.path&&!(i.readable&&i.hasOwnProperty("httpVersion"))&&!(i instanceof h)){return}if(!a.knownLength){this._valuesToMeasure.push(i)}};FormData.prototype._lengthRetriever=function(r,i){if(r.hasOwnProperty("fd")){if(r.end!=undefined&&r.end!=Infinity&&r.start!=undefined){i(null,r.end+1-(r.start?r.start:0))}else{b.stat(r.path,(function(a,c){var p;if(a){i(a);return}p=c.size-(r.start?r.start:0);i(null,p)}))}}else if(r.hasOwnProperty("httpVersion")){i(null,+r.headers["content-length"])}else if(r.hasOwnProperty("httpModule")){r.on("response",(function(a){r.pause();i(null,+a.headers["content-length"])}));r.resume()}else{i("Unknown stream")}};FormData.prototype._multiPartHeader=function(r,i,a){if(typeof a.header=="string"){return a.header}var c=this._getContentDisposition(i,a);var p=this._getContentType(i,a);var l="";var d={"Content-Disposition":["form-data",'name="'+r+'"'].concat(c||[]),"Content-Type":[].concat(p||[])};if(typeof a.header=="object"){z(d,a.header)}var u;for(var A in d){if(!d.hasOwnProperty(A))continue;u=d[A];if(u==null){continue}if(!Array.isArray(u)){u=[u]}if(u.length){l+=A+": "+u.join("; ")+FormData.LINE_BREAK}}return"--"+this.getBoundary()+FormData.LINE_BREAK+l+FormData.LINE_BREAK};FormData.prototype._getContentDisposition=function(r,i){var a,c;if(typeof i.filepath==="string"){a=l.normalize(i.filepath).replace(/\\/g,"/")}else if(i.filename||r.name||r.path){a=l.basename(i.filename||r.name||r.path)}else if(r.readable&&r.hasOwnProperty("httpVersion")){a=l.basename(r.client._httpMessage.path||"")}if(a){c='filename="'+a+'"'}return c};FormData.prototype._getContentType=function(r,i){var a=i.contentType;if(!a&&r.name){a=g.lookup(r.name)}if(!a&&r.path){a=g.lookup(r.path)}if(!a&&r.readable&&r.hasOwnProperty("httpVersion")){a=r.headers["content-type"]}if(!a&&(i.filepath||i.filename)){a=g.lookup(i.filepath||i.filename)}if(!a&&typeof r=="object"){a=FormData.DEFAULT_CONTENT_TYPE}return a};FormData.prototype._multiPartFooter=function(){return function(r){var i=FormData.LINE_BREAK;var a=this._streams.length===0;if(a){i+=this._lastBoundary()}r(i)}.bind(this)};FormData.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+FormData.LINE_BREAK};FormData.prototype.getHeaders=function(r){var i;var a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(i in r){if(r.hasOwnProperty(i)){a[i.toLowerCase()]=r[i]}}return a};FormData.prototype.setBoundary=function(r){this._boundary=r};FormData.prototype.getBoundary=function(){if(!this._boundary){this._generateBoundary()}return this._boundary};FormData.prototype.getBuffer=function(){var r=new Buffer.alloc(0);var i=this.getBoundary();for(var a=0,c=this._streams.length;a{r.exports=function(r,i){Object.keys(i).forEach((function(a){r[a]=r[a]||i[a]}));return r}},27094:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(3233);var p=a(52557);var l=a(51333);const d=c.createClientLogger("core-lro");const u=2e3;const A=["succeeded","canceled","failed"];function deserializeState(r){try{return JSON.parse(r).state}catch(i){throw new Error(`Unable to deserialize input state: ${r}`)}}function setStateError(r){const{state:i,stateProxy:a,isOperationError:c}=r;return r=>{if(c(r)){a.setError(i,r);a.setFailed(i)}throw r}}function appendReadableErrorMessage(r,i){let a=r;if(a.slice(-1)!=="."){a=a+"."}return a+" "+i}function simplifyError(r){let i=r.message;let a=r.code;let c=r;while(c.innererror){c=c.innererror;a=c.code;i=appendReadableErrorMessage(i,c.message)}return{code:a,message:i}}function processOperationStatus(r){const{state:i,stateProxy:a,status:c,isDone:p,processResult:l,getError:u,response:A,setErrorAsResult:b}=r;switch(c){case"succeeded":{a.setSucceeded(i);break}case"failed":{const r=u===null||u===void 0?void 0:u(A);let c="";if(r){const{code:i,message:a}=simplifyError(r);c=`. ${i}. ${a}`}const p=`The long-running operation has failed${c}`;a.setError(i,new Error(p));a.setFailed(i);d.warning(p);break}case"canceled":{a.setCanceled(i);break}}if((p===null||p===void 0?void 0:p(A,i))||p===undefined&&["succeeded","canceled"].concat(b?[]:["failed"]).includes(c)){a.setResult(i,buildResult({response:A,state:i,processResult:l}))}}function buildResult(r){const{processResult:i,response:a,state:c}=r;return i?i(a,c):a}async function initOperation(r){const{init:i,stateProxy:a,processResult:c,getOperationStatus:p,withOperationLocation:l,setErrorAsResult:u}=r;const{operationLocation:A,resourceLocation:b,metadata:h,response:g}=await i();if(A)l===null||l===void 0?void 0:l(A,false);const M={metadata:h,operationLocation:A,resourceLocation:b};d.verbose(`LRO: Operation description:`,M);const z=a.initState(M);const O=p({response:g,state:z,operationLocation:A});processOperationStatus({state:z,status:O,stateProxy:a,response:g,setErrorAsResult:u,processResult:c});return z}async function pollOperationHelper(r){const{poll:i,state:a,stateProxy:c,operationLocation:p,getOperationStatus:l,getResourceLocation:u,isOperationError:b,options:h}=r;const g=await i(p,h).catch(setStateError({state:a,stateProxy:c,isOperationError:b}));const M=l(g,a);d.verbose(`LRO: Status:\n\tPolling from: ${a.config.operationLocation}\n\tOperation status: ${M}\n\tPolling status: ${A.includes(M)?"Stopped":"Running"}`);if(M==="succeeded"){const r=u(g,a);if(r!==undefined){return{response:await i(r).catch(setStateError({state:a,stateProxy:c,isOperationError:b})),status:M}}}return{response:g,status:M}}async function pollOperation(r){const{poll:i,state:a,stateProxy:c,options:p,getOperationStatus:l,getResourceLocation:d,getOperationLocation:u,isOperationError:b,withOperationLocation:h,getPollingInterval:g,processResult:M,getError:z,updateState:O,setDelay:y,isDone:v,setErrorAsResult:C}=r;const{operationLocation:q}=a.config;if(q!==undefined){const{response:r,status:R}=await pollOperationHelper({poll:i,getOperationStatus:l,state:a,stateProxy:c,operationLocation:q,getResourceLocation:d,isOperationError:b,options:p});processOperationStatus({status:R,response:r,state:a,stateProxy:c,isDone:v,processResult:M,getError:z,setErrorAsResult:C});if(!A.includes(R)){const i=g===null||g===void 0?void 0:g(r);if(i)y(i);const c=u===null||u===void 0?void 0:u(r,a);if(c!==undefined){const r=q!==c;a.config.operationLocation=c;h===null||h===void 0?void 0:h(c,r)}else h===null||h===void 0?void 0:h(q,false)}O===null||O===void 0?void 0:O(a,r)}}function getOperationLocationPollingUrl(r){const{azureAsyncOperation:i,operationLocation:a}=r;return a!==null&&a!==void 0?a:i}function getLocationHeader(r){return r.headers["location"]}function getOperationLocationHeader(r){return r.headers["operation-location"]}function getAzureAsyncOperationHeader(r){return r.headers["azure-asyncoperation"]}function findResourceLocation(r){var i;const{location:a,requestMethod:c,requestPath:p,resourceLocationConfig:l}=r;switch(c){case"PUT":{return p}case"DELETE":{return undefined}case"PATCH":{return(i=getDefault())!==null&&i!==void 0?i:p}default:{return getDefault()}}function getDefault(){switch(l){case"azure-async-operation":{return undefined}case"original-uri":{return p}case"location":default:{return a}}}}function inferLroMode(r){const{rawResponse:i,requestMethod:a,requestPath:c,resourceLocationConfig:p}=r;const l=getOperationLocationHeader(i);const d=getAzureAsyncOperationHeader(i);const u=getOperationLocationPollingUrl({operationLocation:l,azureAsyncOperation:d});const A=getLocationHeader(i);const b=a===null||a===void 0?void 0:a.toLocaleUpperCase();if(u!==undefined){return{mode:"OperationLocation",operationLocation:u,resourceLocation:findResourceLocation({requestMethod:b,location:A,requestPath:c,resourceLocationConfig:p})}}else if(A!==undefined){return{mode:"ResourceLocation",operationLocation:A}}else if(b==="PUT"&&c){return{mode:"Body",operationLocation:c}}else{return undefined}}function transformStatus(r){const{status:i,statusCode:a}=r;if(typeof i!=="string"&&i!==undefined){throw new Error(`Polling was unsuccessful. Expected status to have a string value or no value but it has instead: ${i}. This doesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`)}switch(i===null||i===void 0?void 0:i.toLocaleLowerCase()){case undefined:return toOperationStatus(a);case"succeeded":return"succeeded";case"failed":return"failed";case"running":case"accepted":case"started":case"canceling":case"cancelling":return"running";case"canceled":case"cancelled":return"canceled";default:{d.verbose(`LRO: unrecognized operation status: ${i}`);return i}}}function getStatus(r){var i;const{status:a}=(i=r.body)!==null&&i!==void 0?i:{};return transformStatus({status:a,statusCode:r.statusCode})}function getProvisioningState(r){var i,a;const{properties:c,provisioningState:p}=(i=r.body)!==null&&i!==void 0?i:{};const l=(a=c===null||c===void 0?void 0:c.provisioningState)!==null&&a!==void 0?a:p;return transformStatus({status:l,statusCode:r.statusCode})}function toOperationStatus(r){if(r===202){return"running"}else if(r<300){return"succeeded"}else{return"failed"}}function parseRetryAfter({rawResponse:r}){const i=r.headers["retry-after"];if(i!==undefined){const r=parseInt(i);return isNaN(r)?calculatePollingIntervalFromDate(new Date(i)):r*1e3}return undefined}function getErrorFromResponse(r){const i=r.flatResponse.error;if(!i){d.warning(`The long-running operation failed but there is no error property in the response's body`);return}if(!i.code||!i.message){d.warning(`The long-running operation failed but the error property in the response's body doesn't contain code or message`);return}return i}function calculatePollingIntervalFromDate(r){const i=Math.floor((new Date).getTime());const a=r.getTime();if(i{const r=await p.sendInitialRequest();const i=inferLroMode({rawResponse:r.rawResponse,requestPath:p.requestPath,requestMethod:p.requestMethod,resourceLocationConfig:a});return Object.assign({response:r,operationLocation:i===null||i===void 0?void 0:i.operationLocation,resourceLocation:i===null||i===void 0?void 0:i.resourceLocation},(i===null||i===void 0?void 0:i.mode)?{metadata:{mode:i.mode}}:{})},stateProxy:i,processResult:c?({flatResponse:r},i)=>c(r,i):({flatResponse:r})=>r,getOperationStatus:getStatusFromInitialResponse,setErrorAsResult:l})}function getOperationLocation({rawResponse:r},i){var a;const c=(a=i.config.metadata)===null||a===void 0?void 0:a["mode"];switch(c){case"OperationLocation":{return getOperationLocationPollingUrl({operationLocation:getOperationLocationHeader(r),azureAsyncOperation:getAzureAsyncOperationHeader(r)})}case"ResourceLocation":{return getLocationHeader(r)}case"Body":default:{return undefined}}}function getOperationStatus({rawResponse:r},i){var a;const c=(a=i.config.metadata)===null||a===void 0?void 0:a["mode"];switch(c){case"OperationLocation":{return getStatus(r)}case"ResourceLocation":{return toOperationStatus(r.statusCode)}case"Body":{return getProvisioningState(r)}default:throw new Error(`Internal error: Unexpected operation mode: ${c}`)}}function getResourceLocation({flatResponse:r},i){if(typeof r==="object"){const a=r.resourceLocation;if(a!==undefined){i.config.resourceLocation=a}}return i.config.resourceLocation}function isOperationError(r){return r.name==="RestError"}async function pollHttpOperation(r){const{lro:i,stateProxy:a,options:c,processResult:p,updateState:l,setDelay:d,state:u,setErrorAsResult:A}=r;return pollOperation({state:u,stateProxy:a,setDelay:d,processResult:p?({flatResponse:r},i)=>p(r,i):({flatResponse:r})=>r,getError:getErrorFromResponse,updateState:l,getPollingInterval:parseRetryAfter,getOperationLocation:getOperationLocation,getOperationStatus:getOperationStatus,isOperationError:isOperationError,getResourceLocation:getResourceLocation,options:c,poll:async(r,a)=>i.sendPollRequest(r,a),setErrorAsResult:A})}const createStateProxy$1=()=>({initState:r=>({status:"running",config:r}),setCanceled:r=>r.status="canceled",setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.status="running",setSucceeded:r=>r.status="succeeded",setFailed:r=>r.status="failed",getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>r.status==="canceled",isFailed:r=>r.status==="failed",isRunning:r=>r.status==="running",isSucceeded:r=>r.status==="succeeded"});function buildCreatePoller(r){const{getOperationLocation:i,getStatusFromInitialResponse:a,getStatusFromPollResponse:c,isOperationError:d,getResourceLocation:A,getPollingInterval:b,getError:h,resolveOnUnsuccessful:g}=r;return async({init:r,poll:M},z)=>{const{processResult:O,updateState:y,withOperationLocation:v,intervalInMs:C=u,restoreFrom:q}=z||{};const R=createStateProxy$1();const B=v?(()=>{let r=false;return(i,a)=>{if(a)v(i);else if(!r)v(i);r=true}})():undefined;const w=q?deserializeState(q):await initOperation({init:r,stateProxy:R,processResult:O,getOperationStatus:a,withOperationLocation:B,setErrorAsResult:!g});let S;const N=new p.AbortController;const I=new Map;const handleProgressEvents=async()=>I.forEach((r=>r(w)));const x="Operation was canceled";let T=C;const _={getOperationState:()=>w,getResult:()=>w.result,isDone:()=>["succeeded","failed","canceled"].includes(w.status),isStopped:()=>S===undefined,stopPolling:()=>{N.abort()},toString:()=>JSON.stringify({state:w}),onProgress:r=>{const i=Symbol();I.set(i,r);return()=>I.delete(i)},pollUntilDone:r=>S!==null&&S!==void 0?S:S=(async()=>{const{abortSignal:i}=r||{};const{signal:a}=i?new p.AbortController([i,N.signal]):N;if(!_.isDone()){await _.poll({abortSignal:a});while(!_.isDone()){await l.delay(T,{abortSignal:a});await _.poll({abortSignal:a})}}if(g){return _.getResult()}else{switch(w.status){case"succeeded":return _.getResult();case"canceled":throw new Error(x);case"failed":throw w.error;case"notStarted":case"running":throw new Error(`Polling completed without succeeding or failing`)}}})().finally((()=>{S=undefined})),async poll(r){if(g){if(_.isDone())return}else{switch(w.status){case"succeeded":return;case"canceled":throw new Error(x);case"failed":throw w.error}}await pollOperation({poll:M,state:w,stateProxy:R,getOperationLocation:i,isOperationError:d,withOperationLocation:B,getPollingInterval:b,getOperationStatus:c,getResourceLocation:A,processResult:O,getError:h,updateState:y,options:r,setDelay:r=>{T=r},setErrorAsResult:!g});await handleProgressEvents();if(!g){switch(w.status){case"canceled":throw new Error(x);case"failed":throw w.error}}}};return _}}async function createHttpPoller(r,i){const{resourceLocationConfig:a,intervalInMs:c,processResult:p,restoreFrom:l,updateState:d,withOperationLocation:u,resolveOnUnsuccessful:A=false}=i||{};return buildCreatePoller({getStatusFromInitialResponse:getStatusFromInitialResponse,getStatusFromPollResponse:getOperationStatus,isOperationError:isOperationError,getOperationLocation:getOperationLocation,getResourceLocation:getResourceLocation,getPollingInterval:parseRetryAfter,getError:getErrorFromResponse,resolveOnUnsuccessful:A})({init:async()=>{const i=await r.sendInitialRequest();const c=inferLroMode({rawResponse:i.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,resourceLocationConfig:a});return Object.assign({response:i,operationLocation:c===null||c===void 0?void 0:c.operationLocation,resourceLocation:c===null||c===void 0?void 0:c.resourceLocation},(c===null||c===void 0?void 0:c.mode)?{metadata:{mode:c.mode}}:{})},poll:r.sendPollRequest},{intervalInMs:c,withOperationLocation:u,restoreFrom:l,updateState:d,processResult:p?({flatResponse:r},i)=>p(r,i):({flatResponse:r})=>r})}const createStateProxy=()=>({initState:r=>({config:r,isStarted:true}),setCanceled:r=>r.isCancelled=true,setError:(r,i)=>r.error=i,setResult:(r,i)=>r.result=i,setRunning:r=>r.isStarted=true,setSucceeded:r=>r.isCompleted=true,setFailed:()=>{},getError:r=>r.error,getResult:r=>r.result,isCanceled:r=>!!r.isCancelled,isFailed:r=>!!r.error,isRunning:r=>!!r.isStarted,isSucceeded:r=>Boolean(r.isCompleted&&!r.isCancelled&&!r.error)});class GenericPollOperation{constructor(r,i,a,c,p,l,d){this.state=r;this.lro=i;this.setErrorAsResult=a;this.lroResourceLocationConfig=c;this.processResult=p;this.updateState=l;this.isDone=d}setPollerConfig(r){this.pollerConfig=r}async update(r){var i;const a=createStateProxy();if(!this.state.isStarted){this.state=Object.assign(Object.assign({},this.state),await initHttpOperation({lro:this.lro,stateProxy:a,resourceLocationConfig:this.lroResourceLocationConfig,processResult:this.processResult,setErrorAsResult:this.setErrorAsResult}))}const c=this.updateState;const p=this.isDone;if(!this.state.isCompleted&&this.state.error===undefined){await pollHttpOperation({lro:this.lro,state:this.state,stateProxy:a,processResult:this.processResult,updateState:c?(r,{rawResponse:i})=>c(r,i):undefined,isDone:p?({flatResponse:r},i)=>p(r,i):undefined,options:r,setDelay:r=>{this.pollerConfig.intervalInMs=r},setErrorAsResult:this.setErrorAsResult})}(i=r===null||r===void 0?void 0:r.fireProgress)===null||i===void 0?void 0:i.call(r,this.state);return this}async cancel(){d.error("`cancelOperation` is deprecated because it wasn't implemented");return this}toString(){return JSON.stringify({state:this.state})}}class PollerStoppedError extends Error{constructor(r){super(r);this.name="PollerStoppedError";Object.setPrototypeOf(this,PollerStoppedError.prototype)}}class PollerCancelledError extends Error{constructor(r){super(r);this.name="PollerCancelledError";Object.setPrototypeOf(this,PollerCancelledError.prototype)}}class Poller{constructor(r){this.resolveOnUnsuccessful=false;this.stopped=true;this.pollProgressCallbacks=[];this.operation=r;this.promise=new Promise(((r,i)=>{this.resolve=r;this.reject=i}));this.promise.catch((()=>{}))}async startPolling(r={}){if(this.stopped){this.stopped=false}while(!this.isStopped()&&!this.isDone()){await this.poll(r);await this.delay()}}async pollOnce(r={}){if(!this.isDone()){this.operation=await this.operation.update({abortSignal:r.abortSignal,fireProgress:this.fireProgress.bind(this)})}this.processUpdatedState()}fireProgress(r){for(const i of this.pollProgressCallbacks){i(r)}}async cancelOnce(r={}){this.operation=await this.operation.cancel(r)}poll(r={}){if(!this.pollOncePromise){this.pollOncePromise=this.pollOnce(r);const clearPollOncePromise=()=>{this.pollOncePromise=undefined};this.pollOncePromise.then(clearPollOncePromise,clearPollOncePromise).catch(this.reject)}return this.pollOncePromise}processUpdatedState(){if(this.operation.state.error){this.stopped=true;if(!this.resolveOnUnsuccessful){this.reject(this.operation.state.error);throw this.operation.state.error}}if(this.operation.state.isCancelled){this.stopped=true;if(!this.resolveOnUnsuccessful){const r=new PollerCancelledError("Operation was canceled");this.reject(r);throw r}}if(this.isDone()&&this.resolve){this.resolve(this.getResult())}}async pollUntilDone(r={}){if(this.stopped){this.startPolling(r).catch(this.reject)}this.processUpdatedState();return this.promise}onProgress(r){this.pollProgressCallbacks.push(r);return()=>{this.pollProgressCallbacks=this.pollProgressCallbacks.filter((i=>i!==r))}}isDone(){const r=this.operation.state;return Boolean(r.isCompleted||r.isCancelled||r.error)}stopPolling(){if(!this.stopped){this.stopped=true;if(this.reject){this.reject(new PollerStoppedError("This poller is already stopped"))}}}isStopped(){return this.stopped}cancelOperation(r={}){if(!this.cancelPromise){this.cancelPromise=this.cancelOnce(r)}else if(r.abortSignal){throw new Error("A cancel request is currently pending")}return this.cancelPromise}getOperationState(){return this.operation.state}getResult(){const r=this.operation.state;return r.result}toString(){return this.operation.toString()}}class LroEngine extends Poller{constructor(r,i){const{intervalInMs:a=u,resumeFrom:c,resolveOnUnsuccessful:p=false,isDone:l,lroResourceLocationConfig:d,processResult:A,updateState:b}=i||{};const h=c?deserializeState(c):{};const g=new GenericPollOperation(h,r,!p,d,A,b,l);super(g);this.resolveOnUnsuccessful=p;this.config={intervalInMs:a};g.setPollerConfig(this.config)}delay(){return new Promise((r=>setTimeout((()=>r()),this.config.intervalInMs)))}}i.LroEngine=LroEngine;i.Poller=Poller;i.PollerCancelledError=PollerCancelledError;i.PollerStoppedError=PollerStoppedError;i.createHttpPoller=createHttpPoller},74559:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(4351);function getPagedAsyncIterator(r){var i;const a=getItemAsyncIterator(r);return{next(){return a.next()},[Symbol.asyncIterator](){return this},byPage:(i=r===null||r===void 0?void 0:r.byPage)!==null&&i!==void 0?i:i=>{const{continuationToken:a,maxPageSize:c}=i!==null&&i!==void 0?i:{};return getPageAsyncIterator(r,{pageLink:a,maxPageSize:c})}}}function getItemAsyncIterator(r){return c.__asyncGenerator(this,arguments,(function*getItemAsyncIterator_1(){var i,a,p,l;const d=getPageAsyncIterator(r);const u=yield c.__await(d.next());if(!Array.isArray(u.value)){const{toElements:p}=r;if(p){yield c.__await(yield*c.__asyncDelegator(c.__asyncValues(p(u.value))));try{for(var A=c.__asyncValues(d),b;b=yield c.__await(A.next()),!b.done;){const r=b.value;yield c.__await(yield*c.__asyncDelegator(c.__asyncValues(p(r))))}}catch(r){i={error:r}}finally{try{if(b&&!b.done&&(a=A.return))yield c.__await(a.call(A))}finally{if(i)throw i.error}}}else{yield yield c.__await(u.value);yield c.__await(yield*c.__asyncDelegator(c.__asyncValues(d)))}}else{yield c.__await(yield*c.__asyncDelegator(c.__asyncValues(u.value)));try{for(var h=c.__asyncValues(d),g;g=yield c.__await(h.next()),!g.done;){const r=g.value;yield c.__await(yield*c.__asyncDelegator(c.__asyncValues(r)))}}catch(r){p={error:r}}finally{try{if(g&&!g.done&&(l=h.return))yield c.__await(l.call(h))}finally{if(p)throw p.error}}}}))}function getPageAsyncIterator(r,i={}){return c.__asyncGenerator(this,arguments,(function*getPageAsyncIterator_1(){const{pageLink:a,maxPageSize:p}=i;let l=yield c.__await(r.getPage(a!==null&&a!==void 0?a:r.firstPageLink,p));if(!l){return yield c.__await(void 0)}yield yield c.__await(l.page);while(l.nextPageLink){l=yield c.__await(r.getPage(l.nextPageLink,p));if(!l){return yield c.__await(void 0)}yield yield c.__await(l.page)}}))}i.getPagedAsyncIterator=getPagedAsyncIterator},94175:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(65163);(function(r){r[r["INTERNAL"]=0]="INTERNAL";r[r["SERVER"]=1]="SERVER";r[r["CLIENT"]=2]="CLIENT";r[r["PRODUCER"]=3]="PRODUCER";r[r["CONSUMER"]=4]="CONSUMER"})(i.SpanKind||(i.SpanKind={}));function getSpan(r){return c.trace.getSpan(r)}function setSpan(r,i){return c.trace.setSpan(r,i)}function setSpanContext(r,i){return c.trace.setSpanContext(r,i)}function getSpanContext(r){return c.trace.getSpanContext(r)}function isSpanContextValid(r){return c.trace.isSpanContextValid(r)}function getTracer(r,i){return c.trace.getTracer(r||"azure/core-tracing",i)}const p=c.context;(function(r){r[r["UNSET"]=0]="UNSET";r[r["OK"]=1]="OK";r[r["ERROR"]=2]="ERROR"})(i.SpanStatusCode||(i.SpanStatusCode={}));function isTracingDisabled(){var r;if(typeof process==="undefined"){return false}const i=(r=process.env.AZURE_TRACING_DISABLED)===null||r===void 0?void 0:r.toLowerCase();if(i==="false"||i==="0"){return false}return Boolean(i)}function createSpanFunction(r){return function(a,l){const d=getTracer();const u=(l===null||l===void 0?void 0:l.tracingOptions)||{};const A=Object.assign({kind:i.SpanKind.INTERNAL},u.spanOptions);const b=r.packagePrefix?`${r.packagePrefix}.${a}`:a;let h;if(isTracingDisabled()){h=c.trace.wrapSpanContext(c.INVALID_SPAN_CONTEXT)}else{h=d.startSpan(b,A,u.tracingContext)}if(r.namespace){h.setAttribute("az.namespace",r.namespace)}let g=u.spanOptions||{};if(h.isRecording()&&r.namespace){g=Object.assign(Object.assign({},u.spanOptions),{attributes:Object.assign(Object.assign({},A.attributes),{"az.namespace":r.namespace})})}const M=Object.assign(Object.assign({},u),{spanOptions:g,tracingContext:setSpan(u.tracingContext||p.active(),h)});const z=Object.assign(Object.assign({},l),{tracingOptions:M});return{span:h,updatedOptions:z}}}const l="00";function extractSpanContextFromTraceParentHeader(r){const i=r.split("-");if(i.length!==4){return}const[a,c,p,d]=i;if(a!==l){return}const u=parseInt(d,16);const A={spanId:p,traceId:c,traceFlags:u};return A}function getTraceParentHeader(r){const i=[];if(!r.traceId){i.push("traceId")}if(!r.spanId){i.push("spanId")}if(i.length){return}const a=r.traceFlags||0;const c=a.toString(16);const p=c.length===1?`0${c}`:c;return`${l}-${r.traceId}-${r.spanId}-${p}`}i.context=p;i.createSpanFunction=createSpanFunction;i.extractSpanContextFromTraceParentHeader=extractSpanContextFromTraceParentHeader;i.getSpan=getSpan;i.getSpanContext=getSpanContext;i.getTraceParentHeader=getTraceParentHeader;i.getTracer=getTracer;i.isSpanContextValid=isSpanContextValid;i.setSpan=setSpan;i.setSpanContext=setSpanContext},51333:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(52557);var p=a(6113);function createAbortablePromise(r,i){const{cleanupBeforeAbort:a,abortSignal:p,abortErrorMsg:l}=i!==null&&i!==void 0?i:{};return new Promise(((i,d)=>{function rejectOnAbort(){d(new c.AbortError(l!==null&&l!==void 0?l:"The operation was aborted."))}function removeListeners(){p===null||p===void 0?void 0:p.removeEventListener("abort",onAbort)}function onAbort(){a===null||a===void 0?void 0:a();removeListeners();rejectOnAbort()}if(p===null||p===void 0?void 0:p.aborted){return rejectOnAbort()}try{r((r=>{removeListeners();i(r)}),(r=>{removeListeners();d(r)}))}catch(r){d(r)}p===null||p===void 0?void 0:p.addEventListener("abort",onAbort)}))}const l="The delay was aborted.";function delay(r,i){let a;const{abortSignal:c,abortErrorMsg:p}=i!==null&&i!==void 0?i:{};return createAbortablePromise((i=>{a=setTimeout(i,r)}),{cleanupBeforeAbort:()=>clearTimeout(a),abortSignal:c,abortErrorMsg:p!==null&&p!==void 0?p:l})}function getRandomIntegerInclusive(r,i){r=Math.ceil(r);i=Math.floor(i);const a=Math.floor(Math.random()*(i-r+1));return a+r}function isObject(r){return typeof r==="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function isError(r){if(isObject(r)){const i=typeof r.name==="string";const a=typeof r.message==="string";return i&&a}return false}function getErrorMessage(r){if(isError(r)){return r.message}else{let i;try{if(typeof r==="object"&&r){i=JSON.stringify(r)}else{i=String(r)}}catch(r){i="[unable to stringify input]"}return`Unknown error ${i}`}}async function computeSha256Hmac(r,i,a){const c=Buffer.from(r,"base64");return p.createHmac("sha256",c).update(i).digest(a)}async function computeSha256Hash(r,i){return p.createHash("sha256").update(r).digest(i)}function isDefined(r){return typeof r!=="undefined"&&r!==null}function isObjectWithProperties(r,i){if(!isDefined(r)||typeof r!=="object"){return false}for(const a of i){if(!objectHasProperty(r,a)){return false}}return true}function objectHasProperty(r,i){return isDefined(r)&&typeof r==="object"&&i in r}function generateUUID(){let r="";for(let i=0;i<32;i++){const a=Math.floor(Math.random()*16);if(i===12){r+="4"}else if(i===16){r+=a&3|8}else{r+=a.toString(16)}if(i===7||i===11||i===15||i===19){r+="-"}}return r}var d;let u=typeof((d=globalThis===null||globalThis===void 0?void 0:globalThis.crypto)===null||d===void 0?void 0:d.randomUUID)==="function"?globalThis.crypto.randomUUID.bind(globalThis.crypto):p.randomUUID;if(!u){u=generateUUID}function randomUUID(){return u()}var A,b,h,g;const M=typeof window!=="undefined"&&typeof window.document!=="undefined";const z=typeof self==="object"&&typeof(self===null||self===void 0?void 0:self.importScripts)==="function"&&(((A=self.constructor)===null||A===void 0?void 0:A.name)==="DedicatedWorkerGlobalScope"||((b=self.constructor)===null||b===void 0?void 0:b.name)==="ServiceWorkerGlobalScope"||((h=self.constructor)===null||h===void 0?void 0:h.name)==="SharedWorkerGlobalScope");const O=typeof process!=="undefined"&&Boolean(process.version)&&Boolean((g=process.versions)===null||g===void 0?void 0:g.node);const y=typeof Deno!=="undefined"&&typeof Deno.version!=="undefined"&&typeof Deno.version.deno!=="undefined";const v=typeof Bun!=="undefined"&&typeof Bun.version!=="undefined";const C=typeof navigator!=="undefined"&&(navigator===null||navigator===void 0?void 0:navigator.product)==="ReactNative";function uint8ArrayToString(r,i){switch(i){case"utf-8":return uint8ArrayToUtf8String(r);case"base64":return uint8ArrayToBase64(r);case"base64url":return uint8ArrayToBase64Url(r)}}function stringToUint8Array(r,i){switch(i){case"utf-8":return utf8StringToUint8Array(r);case"base64":return base64ToUint8Array(r);case"base64url":return base64UrlToUint8Array(r)}}function uint8ArrayToBase64(r){return Buffer.from(r).toString("base64")}function uint8ArrayToBase64Url(r){return Buffer.from(r).toString("base64url")}function uint8ArrayToUtf8String(r){return Buffer.from(r).toString("utf-8")}function utf8StringToUint8Array(r){return Buffer.from(r)}function base64ToUint8Array(r){return Buffer.from(r,"base64")}function base64UrlToUint8Array(r){return Buffer.from(r,"base64url")}i.computeSha256Hash=computeSha256Hash;i.computeSha256Hmac=computeSha256Hmac;i.createAbortablePromise=createAbortablePromise;i.delay=delay;i.getErrorMessage=getErrorMessage;i.getRandomIntegerInclusive=getRandomIntegerInclusive;i.isBrowser=M;i.isBun=v;i.isDefined=isDefined;i.isDeno=y;i.isError=isError;i.isNode=O;i.isObject=isObject;i.isObjectWithProperties=isObjectWithProperties;i.isReactNative=C;i.isWebWorker=z;i.objectHasProperty=objectHasProperty;i.randomUUID=randomUUID;i.stringToUint8Array=stringToUint8Array;i.uint8ArrayToString=uint8ArrayToString},3233:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(22037);var p=a(73837);function _interopDefaultLegacy(r){return r&&typeof r==="object"&&"default"in r?r:{default:r}}var l=_interopDefaultLegacy(p);function log(r,...i){process.stderr.write(`${l["default"].format(r,...i)}${c.EOL}`)}const d=typeof process!=="undefined"&&process.env&&process.env.DEBUG||undefined;let u;let A=[];let b=[];const h=[];if(d){enable(d)}const g=Object.assign((r=>createDebugger(r)),{enable:enable,enabled:enabled,disable:disable,log:log});function enable(r){u=r;A=[];b=[];const i=/\*/g;const a=r.split(",").map((r=>r.trim().replace(i,".*?")));for(const r of a){if(r.startsWith("-")){b.push(new RegExp(`^${r.substr(1)}$`))}else{A.push(new RegExp(`^${r}$`))}}for(const r of h){r.enabled=enabled(r.namespace)}}function enabled(r){if(r.endsWith("*")){return true}for(const i of b){if(i.test(r)){return false}}for(const i of A){if(i.test(r)){return true}}return false}function disable(){const r=u||"";enable("");return r}function createDebugger(r){const i=Object.assign(debug,{enabled:enabled(r),destroy:destroy,log:g.log,namespace:r,extend:extend});function debug(...a){if(!i.enabled){return}if(a.length>0){a[0]=`${r} ${a[0]}`}i.log(...a)}h.push(i);return i}function destroy(){const r=h.indexOf(this);if(r>=0){h.splice(r,1);return true}return false}function extend(r){const i=createDebugger(`${this.namespace}:${r}`);i.log=this.log;return i}var M=g;const z=new Set;const O=typeof process!=="undefined"&&process.env&&process.env.AZURE_LOG_LEVEL||undefined;let y;const v=M("azure");v.log=(...r)=>{M.log(...r)};const C=["verbose","info","warning","error"];if(O){if(isAzureLogLevel(O)){setLogLevel(O)}else{console.error(`AZURE_LOG_LEVEL set to unknown log level '${O}'; logging is not enabled. Acceptable values: ${C.join(", ")}.`)}}function setLogLevel(r){if(r&&!isAzureLogLevel(r)){throw new Error(`Unknown log level '${r}'. Acceptable values: ${C.join(",")}`)}y=r;const i=[];for(const r of z){if(shouldEnable(r)){i.push(r.namespace)}}M.enable(i.join(","))}function getLogLevel(){return y}const q={verbose:400,info:300,warning:200,error:100};function createClientLogger(r){const i=v.extend(r);patchLogMethod(v,i);return{error:createLogger(i,"error"),warning:createLogger(i,"warning"),info:createLogger(i,"info"),verbose:createLogger(i,"verbose")}}function patchLogMethod(r,i){i.log=(...i)=>{r.log(...i)}}function createLogger(r,i){const a=Object.assign(r.extend(i),{level:i});patchLogMethod(r,a);if(shouldEnable(a)){const r=M.disable();M.enable(r+","+a.namespace)}z.add(a);return a}function shouldEnable(r){return Boolean(y&&q[r.level]<=q[y])}function isAzureLogLevel(r){return C.includes(r)}i.AzureLogger=v;i.createClientLogger=createClientLogger;i.getLogLevel=getLogLevel;i.setLogLevel=setLogLevel},84100:(r,i,a)=>{"use strict";Object.defineProperty(i,"__esModule",{value:true});var c=a(24607);var p=a(4351);var l=a(94175);var d=a(3233);var u=a(52557);var A=a(22037);var b=a(6113);var h=a(12781);a(74559);var g=a(27094);var M=a(82361);var z=a(57147);var O=a(73837);function _interopNamespace(r){if(r&&r.__esModule)return r;var i=Object.create(null);if(r){Object.keys(r).forEach((function(a){if(a!=="default"){var c=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(i,a,c.get?c:{enumerable:true,get:function(){return r[a]}})}}))}i["default"]=r;return Object.freeze(i)}var y=_interopNamespace(c);var v=_interopNamespace(A);var C=_interopNamespace(z);var q=_interopNamespace(O);const R={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 B={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 w={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 S={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 N={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 I={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 x={serializedName:"StorageError",type:{name:"Composite",className:"StorageError",modelProperties:{message:{serializedName:"Message",xmlName:"Message",type:{name:"String"}},code:{serializedName:"Code",xmlName:"Code",type:{name:"String"}}}}};const T={serializedName:"BlobServiceStatistics",xmlName:"StorageServiceStats",type:{name:"Composite",className:"BlobServiceStatistics",modelProperties:{geoReplication:{serializedName:"GeoReplication",xmlName:"GeoReplication",type:{name:"Composite",className:"GeoReplication"}}}}};const _={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 W={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 L={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 k={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 P={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 D={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 Q={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 U={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 G={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 j={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 H={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 X={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 V={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 Y={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 $={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 J={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 K={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 Z={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 ee={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 te={serializedName:"BlobPrefix",type:{name:"Composite",className:"BlobPrefix",modelProperties:{name:{serializedName:"Name",xmlName:"Name",type:{name:"Composite",className:"BlobName"}}}}};const re={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 oe={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 ie={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 se={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 ae={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 ce={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 pe={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 de={serializedName:"QuerySerialization",type:{name:"Composite",className:"QuerySerialization",modelProperties:{format:{serializedName:"Format",xmlName:"Format",type:{name:"Composite",className:"QueryFormat"}}}}};const ue={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:"any"}}}}};const Ae={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 me={serializedName:"JsonTextConfiguration",xmlName:"JsonTextConfiguration",type:{name:"Composite",className:"JsonTextConfiguration",modelProperties:{recordSeparator:{serializedName:"RecordSeparator",xmlName:"RecordSeparator",type:{name:"String"}}}}};const be={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 fe={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 he={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 Me={serializedName:"Service_setPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceSetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ze={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 Oe={serializedName:"Service_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ServiceGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ye={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 Ee={serializedName:"Service_getStatisticsExceptionHeaders",type:{name:"Composite",className:"ServiceGetStatisticsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ve={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 Ce={serializedName:"Service_listContainersSegmentExceptionHeaders",type:{name:"Composite",className:"ServiceListContainersSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const qe={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 Re={serializedName:"Service_getUserDelegationKeyExceptionHeaders",type:{name:"Composite",className:"ServiceGetUserDelegationKeyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Be={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 we={serializedName:"Service_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ServiceGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Se={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 Ne={serializedName:"Service_submitBatchExceptionHeaders",type:{name:"Composite",className:"ServiceSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ie={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 xe={serializedName:"Service_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ServiceFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Te={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 _e={serializedName:"Container_createExceptionHeaders",type:{name:"Composite",className:"ContainerCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const We={serializedName:"Container_getPropertiesHeaders",type:{name:"Composite",className:"ContainerGetPropertiesHeaders",modelProperties:{metadata:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},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 Le={serializedName:"Container_getPropertiesExceptionHeaders",type:{name:"Composite",className:"ContainerGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ke={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 Pe={serializedName:"Container_deleteExceptionHeaders",type:{name:"Composite",className:"ContainerDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const De={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 Qe={serializedName:"Container_setMetadataExceptionHeaders",type:{name:"Composite",className:"ContainerSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Fe={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 Ue={serializedName:"Container_getAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ge={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 je={serializedName:"Container_setAccessPolicyExceptionHeaders",type:{name:"Composite",className:"ContainerSetAccessPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const He={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 Xe={serializedName:"Container_restoreExceptionHeaders",type:{name:"Composite",className:"ContainerRestoreExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ve={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 Ye={serializedName:"Container_renameExceptionHeaders",type:{name:"Composite",className:"ContainerRenameExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const $e={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 Je={serializedName:"Container_submitBatchExceptionHeaders",type:{name:"Composite",className:"ContainerSubmitBatchExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ke={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 Ze={serializedName:"Container_filterBlobsExceptionHeaders",type:{name:"Composite",className:"ContainerFilterBlobsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const et={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 tt={serializedName:"Container_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const rt={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 nt={serializedName:"Container_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ot={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 it={serializedName:"Container_renewLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const st={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 ct={serializedName:"Container_breakLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pt={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 dt={serializedName:"Container_changeLeaseExceptionHeaders",type:{name:"Composite",className:"ContainerChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ut={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 At={serializedName:"Container_listBlobFlatSegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobFlatSegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const mt={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 bt={serializedName:"Container_listBlobHierarchySegmentExceptionHeaders",type:{name:"Composite",className:"ContainerListBlobHierarchySegmentExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ft={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"]}}}}};const ht={serializedName:"Container_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"ContainerGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mt={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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 zt={serializedName:"Blob_downloadExceptionHeaders",type:{name:"Composite",className:"BlobDownloadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ot={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",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"},objectReplicationPolicyId:{serializedName:"x-ms-or-policy-id",xmlName:"x-ms-or-policy-id",type:{name:"String"}},objectReplicationRules:{serializedName:"x-ms-or",xmlName:"x-ms-or",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-or-"},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 yt={serializedName:"Blob_getPropertiesExceptionHeaders",type:{name:"Composite",className:"BlobGetPropertiesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Et={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 vt={serializedName:"Blob_deleteExceptionHeaders",type:{name:"Composite",className:"BlobDeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ct={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 qt={serializedName:"Blob_undeleteExceptionHeaders",type:{name:"Composite",className:"BlobUndeleteExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rt={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 Bt={serializedName:"Blob_setExpiryExceptionHeaders",type:{name:"Composite",className:"BlobSetExpiryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wt={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 St={serializedName:"Blob_setHttpHeadersExceptionHeaders",type:{name:"Composite",className:"BlobSetHttpHeadersExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nt={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 It={serializedName:"Blob_setImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobSetImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xt={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 Tt={serializedName:"Blob_deleteImmutabilityPolicyExceptionHeaders",type:{name:"Composite",className:"BlobDeleteImmutabilityPolicyExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _t={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 Wt={serializedName:"Blob_setLegalHoldExceptionHeaders",type:{name:"Composite",className:"BlobSetLegalHoldExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lt={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 kt={serializedName:"Blob_setMetadataExceptionHeaders",type:{name:"Composite",className:"BlobSetMetadataExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pt={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 Dt={serializedName:"Blob_acquireLeaseExceptionHeaders",type:{name:"Composite",className:"BlobAcquireLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qt={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 Ft={serializedName:"Blob_releaseLeaseExceptionHeaders",type:{name:"Composite",className:"BlobReleaseLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ut={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 Gt={serializedName:"Blob_renewLeaseExceptionHeaders",type:{name:"Composite",className:"BlobRenewLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jt={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 Ht={serializedName:"Blob_changeLeaseExceptionHeaders",type:{name:"Composite",className:"BlobChangeLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xt={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 Vt={serializedName:"Blob_breakLeaseExceptionHeaders",type:{name:"Composite",className:"BlobBreakLeaseExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yt={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 $t={serializedName:"Blob_createSnapshotExceptionHeaders",type:{name:"Composite",className:"BlobCreateSnapshotExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Jt={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 Kt={serializedName:"Blob_startCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobStartCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Zt={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 er={serializedName:"Blob_copyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const tr={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 rr={serializedName:"Blob_abortCopyFromURLExceptionHeaders",type:{name:"Composite",className:"BlobAbortCopyFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const nr={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 or={serializedName:"Blob_setTierExceptionHeaders",type:{name:"Composite",className:"BlobSetTierExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ir={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"]}}}}};const sr={serializedName:"Blob_getAccountInfoExceptionHeaders",type:{name:"Composite",className:"BlobGetAccountInfoExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const ar={serializedName:"Blob_queryHeaders",type:{name:"Composite",className:"BlobQueryHeaders",modelProperties:{lastModified:{serializedName:"last-modified",xmlName:"last-modified",type:{name:"DateTimeRfc1123"}},metadata:{serializedName:"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 cr={serializedName:"Blob_queryExceptionHeaders",type:{name:"Composite",className:"BlobQueryExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const pr={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 lr={serializedName:"Blob_getTagsExceptionHeaders",type:{name:"Composite",className:"BlobGetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const dr={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 ur={serializedName:"Blob_setTagsExceptionHeaders",type:{name:"Composite",className:"BlobSetTagsExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ar={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 mr={serializedName:"PageBlob_createExceptionHeaders",type:{name:"Composite",className:"PageBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const br={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 fr={serializedName:"PageBlob_uploadPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const hr={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 gr={serializedName:"PageBlob_clearPagesExceptionHeaders",type:{name:"Composite",className:"PageBlobClearPagesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Mr={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 zr={serializedName:"PageBlob_uploadPagesFromURLExceptionHeaders",type:{name:"Composite",className:"PageBlobUploadPagesFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Or={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 yr={serializedName:"PageBlob_getPageRangesExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Er={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 vr={serializedName:"PageBlob_getPageRangesDiffExceptionHeaders",type:{name:"Composite",className:"PageBlobGetPageRangesDiffExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Cr={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 qr={serializedName:"PageBlob_resizeExceptionHeaders",type:{name:"Composite",className:"PageBlobResizeExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Rr={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 Br={serializedName:"PageBlob_updateSequenceNumberExceptionHeaders",type:{name:"Composite",className:"PageBlobUpdateSequenceNumberExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const wr={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 Sr={serializedName:"PageBlob_copyIncrementalExceptionHeaders",type:{name:"Composite",className:"PageBlobCopyIncrementalExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Nr={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 Ir={serializedName:"AppendBlob_createExceptionHeaders",type:{name:"Composite",className:"AppendBlobCreateExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const xr={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 Tr={serializedName:"AppendBlob_appendBlockExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const _r={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 Wr={serializedName:"AppendBlob_appendBlockFromUrlExceptionHeaders",type:{name:"Composite",className:"AppendBlobAppendBlockFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Lr={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 kr={serializedName:"AppendBlob_sealExceptionHeaders",type:{name:"Composite",className:"AppendBlobSealExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Pr={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 Dr={serializedName:"BlockBlob_uploadExceptionHeaders",type:{name:"Composite",className:"BlockBlobUploadExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Qr={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 Fr={serializedName:"BlockBlob_putBlobFromUrlExceptionHeaders",type:{name:"Composite",className:"BlockBlobPutBlobFromUrlExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Ur={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 Gr={serializedName:"BlockBlob_stageBlockExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const jr={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 Hr={serializedName:"BlockBlob_stageBlockFromURLExceptionHeaders",type:{name:"Composite",className:"BlockBlobStageBlockFromURLExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Xr={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 Vr={serializedName:"BlockBlob_commitBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobCommitBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};const Yr={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 $r={serializedName:"BlockBlob_getBlockListExceptionHeaders",type:{name:"Composite",className:"BlockBlobGetBlockListExceptionHeaders",modelProperties:{errorCode:{serializedName:"x-ms-error-code",xmlName:"x-ms-error-code",type:{name:"String"}}}}};var Jr=Object.freeze({__proto__:null,BlobServiceProperties:R,Logging:B,RetentionPolicy:w,Metrics:S,CorsRule:N,StaticWebsite:I,StorageError:x,BlobServiceStatistics:T,GeoReplication:_,ListContainersSegmentResponse:W,ContainerItem:L,ContainerProperties:k,KeyInfo:P,UserDelegationKey:D,FilterBlobSegment:Q,FilterBlobItem:U,BlobTags:G,BlobTag:j,SignedIdentifier:H,AccessPolicy:X,ListBlobsFlatSegmentResponse:V,BlobFlatListSegment:Y,BlobItemInternal:$,BlobName:J,BlobPropertiesInternal:K,ListBlobsHierarchySegmentResponse:Z,BlobHierarchyListSegment:ee,BlobPrefix:te,BlockLookupList:re,BlockList:oe,Block:ie,PageList:se,PageRange:ae,ClearRange:ce,QueryRequest:pe,QuerySerialization:de,QueryFormat:ue,DelimitedTextConfiguration:Ae,JsonTextConfiguration:me,ArrowConfiguration:be,ArrowField:fe,ServiceSetPropertiesHeaders:he,ServiceSetPropertiesExceptionHeaders:Me,ServiceGetPropertiesHeaders:ze,ServiceGetPropertiesExceptionHeaders:Oe,ServiceGetStatisticsHeaders:ye,ServiceGetStatisticsExceptionHeaders:Ee,ServiceListContainersSegmentHeaders:ve,ServiceListContainersSegmentExceptionHeaders:Ce,ServiceGetUserDelegationKeyHeaders:qe,ServiceGetUserDelegationKeyExceptionHeaders:Re,ServiceGetAccountInfoHeaders:Be,ServiceGetAccountInfoExceptionHeaders:we,ServiceSubmitBatchHeaders:Se,ServiceSubmitBatchExceptionHeaders:Ne,ServiceFilterBlobsHeaders:Ie,ServiceFilterBlobsExceptionHeaders:xe,ContainerCreateHeaders:Te,ContainerCreateExceptionHeaders:_e,ContainerGetPropertiesHeaders:We,ContainerGetPropertiesExceptionHeaders:Le,ContainerDeleteHeaders:ke,ContainerDeleteExceptionHeaders:Pe,ContainerSetMetadataHeaders:De,ContainerSetMetadataExceptionHeaders:Qe,ContainerGetAccessPolicyHeaders:Fe,ContainerGetAccessPolicyExceptionHeaders:Ue,ContainerSetAccessPolicyHeaders:Ge,ContainerSetAccessPolicyExceptionHeaders:je,ContainerRestoreHeaders:He,ContainerRestoreExceptionHeaders:Xe,ContainerRenameHeaders:Ve,ContainerRenameExceptionHeaders:Ye,ContainerSubmitBatchHeaders:$e,ContainerSubmitBatchExceptionHeaders:Je,ContainerFilterBlobsHeaders:Ke,ContainerFilterBlobsExceptionHeaders:Ze,ContainerAcquireLeaseHeaders:et,ContainerAcquireLeaseExceptionHeaders:tt,ContainerReleaseLeaseHeaders:rt,ContainerReleaseLeaseExceptionHeaders:nt,ContainerRenewLeaseHeaders:ot,ContainerRenewLeaseExceptionHeaders:it,ContainerBreakLeaseHeaders:st,ContainerBreakLeaseExceptionHeaders:ct,ContainerChangeLeaseHeaders:pt,ContainerChangeLeaseExceptionHeaders:dt,ContainerListBlobFlatSegmentHeaders:ut,ContainerListBlobFlatSegmentExceptionHeaders:At,ContainerListBlobHierarchySegmentHeaders:mt,ContainerListBlobHierarchySegmentExceptionHeaders:bt,ContainerGetAccountInfoHeaders:ft,ContainerGetAccountInfoExceptionHeaders:ht,BlobDownloadHeaders:Mt,BlobDownloadExceptionHeaders:zt,BlobGetPropertiesHeaders:Ot,BlobGetPropertiesExceptionHeaders:yt,BlobDeleteHeaders:Et,BlobDeleteExceptionHeaders:vt,BlobUndeleteHeaders:Ct,BlobUndeleteExceptionHeaders:qt,BlobSetExpiryHeaders:Rt,BlobSetExpiryExceptionHeaders:Bt,BlobSetHttpHeadersHeaders:wt,BlobSetHttpHeadersExceptionHeaders:St,BlobSetImmutabilityPolicyHeaders:Nt,BlobSetImmutabilityPolicyExceptionHeaders:It,BlobDeleteImmutabilityPolicyHeaders:xt,BlobDeleteImmutabilityPolicyExceptionHeaders:Tt,BlobSetLegalHoldHeaders:_t,BlobSetLegalHoldExceptionHeaders:Wt,BlobSetMetadataHeaders:Lt,BlobSetMetadataExceptionHeaders:kt,BlobAcquireLeaseHeaders:Pt,BlobAcquireLeaseExceptionHeaders:Dt,BlobReleaseLeaseHeaders:Qt,BlobReleaseLeaseExceptionHeaders:Ft,BlobRenewLeaseHeaders:Ut,BlobRenewLeaseExceptionHeaders:Gt,BlobChangeLeaseHeaders:jt,BlobChangeLeaseExceptionHeaders:Ht,BlobBreakLeaseHeaders:Xt,BlobBreakLeaseExceptionHeaders:Vt,BlobCreateSnapshotHeaders:Yt,BlobCreateSnapshotExceptionHeaders:$t,BlobStartCopyFromURLHeaders:Jt,BlobStartCopyFromURLExceptionHeaders:Kt,BlobCopyFromURLHeaders:Zt,BlobCopyFromURLExceptionHeaders:er,BlobAbortCopyFromURLHeaders:tr,BlobAbortCopyFromURLExceptionHeaders:rr,BlobSetTierHeaders:nr,BlobSetTierExceptionHeaders:or,BlobGetAccountInfoHeaders:ir,BlobGetAccountInfoExceptionHeaders:sr,BlobQueryHeaders:ar,BlobQueryExceptionHeaders:cr,BlobGetTagsHeaders:pr,BlobGetTagsExceptionHeaders:lr,BlobSetTagsHeaders:dr,BlobSetTagsExceptionHeaders:ur,PageBlobCreateHeaders:Ar,PageBlobCreateExceptionHeaders:mr,PageBlobUploadPagesHeaders:br,PageBlobUploadPagesExceptionHeaders:fr,PageBlobClearPagesHeaders:hr,PageBlobClearPagesExceptionHeaders:gr,PageBlobUploadPagesFromURLHeaders:Mr,PageBlobUploadPagesFromURLExceptionHeaders:zr,PageBlobGetPageRangesHeaders:Or,PageBlobGetPageRangesExceptionHeaders:yr,PageBlobGetPageRangesDiffHeaders:Er,PageBlobGetPageRangesDiffExceptionHeaders:vr,PageBlobResizeHeaders:Cr,PageBlobResizeExceptionHeaders:qr,PageBlobUpdateSequenceNumberHeaders:Rr,PageBlobUpdateSequenceNumberExceptionHeaders:Br,PageBlobCopyIncrementalHeaders:wr,PageBlobCopyIncrementalExceptionHeaders:Sr,AppendBlobCreateHeaders:Nr,AppendBlobCreateExceptionHeaders:Ir,AppendBlobAppendBlockHeaders:xr,AppendBlobAppendBlockExceptionHeaders:Tr,AppendBlobAppendBlockFromUrlHeaders:_r,AppendBlobAppendBlockFromUrlExceptionHeaders:Wr,AppendBlobSealHeaders:Lr,AppendBlobSealExceptionHeaders:kr,BlockBlobUploadHeaders:Pr,BlockBlobUploadExceptionHeaders:Dr,BlockBlobPutBlobFromUrlHeaders:Qr,BlockBlobPutBlobFromUrlExceptionHeaders:Fr,BlockBlobStageBlockHeaders:Ur,BlockBlobStageBlockExceptionHeaders:Gr,BlockBlobStageBlockFromURLHeaders:jr,BlockBlobStageBlockFromURLExceptionHeaders:Hr,BlockBlobCommitBlockListHeaders:Xr,BlockBlobCommitBlockListExceptionHeaders:Vr,BlockBlobGetBlockListHeaders:Yr,BlockBlobGetBlockListExceptionHeaders:$r});const Kr={parameterPath:["options","contentType"],mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const Zr={parameterPath:"blobServiceProperties",mapper:R};const en={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const tn={parameterPath:"url",mapper:{serializedName:"url",required:true,xmlName:"url",type:{name:"String"}},skipEncoding:true};const rn={parameterPath:"restype",mapper:{defaultValue:"service",isConstant:true,serializedName:"restype",type:{name:"String"}}};const nn={parameterPath:"comp",mapper:{defaultValue:"properties",isConstant:true,serializedName:"comp",type:{name:"String"}}};const sn={parameterPath:["options","timeoutInSeconds"],mapper:{constraints:{InclusiveMinimum:0},serializedName:"timeout",xmlName:"timeout",type:{name:"Number"}}};const an={parameterPath:"version",mapper:{defaultValue:"2024-05-04",isConstant:true,serializedName:"x-ms-version",type:{name:"String"}}};const cn={parameterPath:["options","requestId"],mapper:{serializedName:"x-ms-client-request-id",xmlName:"x-ms-client-request-id",type:{name:"String"}}};const pn={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const ln={parameterPath:"comp",mapper:{defaultValue:"stats",isConstant:true,serializedName:"comp",type:{name:"String"}}};const dn={parameterPath:"comp",mapper:{defaultValue:"list",isConstant:true,serializedName:"comp",type:{name:"String"}}};const un={parameterPath:["options","prefix"],mapper:{serializedName:"prefix",xmlName:"prefix",type:{name:"String"}}};const An={parameterPath:["options","marker"],mapper:{serializedName:"marker",xmlName:"marker",type:{name:"String"}}};const mn={parameterPath:["options","maxPageSize"],mapper:{constraints:{InclusiveMinimum:1},serializedName:"maxresults",xmlName:"maxresults",type:{name:"Number"}}};const bn={parameterPath:["options","include"],mapper:{serializedName:"include",xmlName:"include",xmlElementName:"ListContainersIncludeType",type:{name:"Sequence",element:{type:{name:"Enum",allowedValues:["metadata","deleted","system"]}}}},collectionFormat:c.QueryCollectionFormat.Csv};const hn={parameterPath:"keyInfo",mapper:P};const gn={parameterPath:"comp",mapper:{defaultValue:"userdelegationkey",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Mn={parameterPath:"restype",mapper:{defaultValue:"account",isConstant:true,serializedName:"restype",type:{name:"String"}}};const zn={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const On={parameterPath:"comp",mapper:{defaultValue:"batch",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yn={parameterPath:"contentLength",mapper:{serializedName:"Content-Length",required:true,xmlName:"Content-Length",type:{name:"Number"}}};const En={parameterPath:"multipartContentType",mapper:{serializedName:"Content-Type",required:true,xmlName:"Content-Type",type:{name:"String"}}};const vn={parameterPath:"comp",mapper:{defaultValue:"blobs",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Cn={parameterPath:["options","where"],mapper:{serializedName:"where",xmlName:"where",type:{name:"String"}}};const qn={parameterPath:"restype",mapper:{defaultValue:"container",isConstant:true,serializedName:"restype",type:{name:"String"}}};const Rn={parameterPath:["options","metadata"],mapper:{serializedName:"x-ms-meta",xmlName:"x-ms-meta",type:{name:"Dictionary",value:{type:{name:"String"}}},headerCollectionPrefix:"x-ms-meta-"}};const Bn={parameterPath:["options","access"],mapper:{serializedName:"x-ms-blob-public-access",xmlName:"x-ms-blob-public-access",type:{name:"Enum",allowedValues:["container","blob"]}}};const wn={parameterPath:["options","containerEncryptionScope","defaultEncryptionScope"],mapper:{serializedName:"x-ms-default-encryption-scope",xmlName:"x-ms-default-encryption-scope",type:{name:"String"}}};const Sn={parameterPath:["options","containerEncryptionScope","preventEncryptionScopeOverride"],mapper:{serializedName:"x-ms-deny-encryption-scope-override",xmlName:"x-ms-deny-encryption-scope-override",type:{name:"Boolean"}}};const Nn={parameterPath:["options","leaseAccessConditions","leaseId"],mapper:{serializedName:"x-ms-lease-id",xmlName:"x-ms-lease-id",type:{name:"String"}}};const In={parameterPath:["options","modifiedAccessConditions","ifModifiedSince"],mapper:{serializedName:"If-Modified-Since",xmlName:"If-Modified-Since",type:{name:"DateTimeRfc1123"}}};const xn={parameterPath:["options","modifiedAccessConditions","ifUnmodifiedSince"],mapper:{serializedName:"If-Unmodified-Since",xmlName:"If-Unmodified-Since",type:{name:"DateTimeRfc1123"}}};const Tn={parameterPath:"comp",mapper:{defaultValue:"metadata",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _n={parameterPath:"comp",mapper:{defaultValue:"acl",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Wn={parameterPath:["options","containerAcl"],mapper:{serializedName:"containerAcl",xmlName:"SignedIdentifiers",xmlIsWrapped:true,xmlElementName:"SignedIdentifier",type:{name:"Sequence",element:{type:{name:"Composite",className:"SignedIdentifier"}}}}};const Ln={parameterPath:"comp",mapper:{defaultValue:"undelete",isConstant:true,serializedName:"comp",type:{name:"String"}}};const kn={parameterPath:["options","deletedContainerName"],mapper:{serializedName:"x-ms-deleted-container-name",xmlName:"x-ms-deleted-container-name",type:{name:"String"}}};const Pn={parameterPath:["options","deletedContainerVersion"],mapper:{serializedName:"x-ms-deleted-container-version",xmlName:"x-ms-deleted-container-version",type:{name:"String"}}};const Dn={parameterPath:"comp",mapper:{defaultValue:"rename",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Qn={parameterPath:"sourceContainerName",mapper:{serializedName:"x-ms-source-container-name",required:true,xmlName:"x-ms-source-container-name",type:{name:"String"}}};const Fn={parameterPath:["options","sourceLeaseId"],mapper:{serializedName:"x-ms-source-lease-id",xmlName:"x-ms-source-lease-id",type:{name:"String"}}};const Un={parameterPath:"comp",mapper:{defaultValue:"lease",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Gn={parameterPath:"action",mapper:{defaultValue:"acquire",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const jn={parameterPath:["options","duration"],mapper:{serializedName:"x-ms-lease-duration",xmlName:"x-ms-lease-duration",type:{name:"Number"}}};const Hn={parameterPath:["options","proposedLeaseId"],mapper:{serializedName:"x-ms-proposed-lease-id",xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const Xn={parameterPath:"action",mapper:{defaultValue:"release",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Vn={parameterPath:"leaseId",mapper:{serializedName:"x-ms-lease-id",required:true,xmlName:"x-ms-lease-id",type:{name:"String"}}};const Yn={parameterPath:"action",mapper:{defaultValue:"renew",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const $n={parameterPath:"action",mapper:{defaultValue:"break",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Jn={parameterPath:["options","breakPeriod"],mapper:{serializedName:"x-ms-lease-break-period",xmlName:"x-ms-lease-break-period",type:{name:"Number"}}};const Kn={parameterPath:"action",mapper:{defaultValue:"change",isConstant:true,serializedName:"x-ms-lease-action",type:{name:"String"}}};const Zn={parameterPath:"proposedLeaseId",mapper:{serializedName:"x-ms-proposed-lease-id",required:true,xmlName:"x-ms-proposed-lease-id",type:{name:"String"}}};const eo={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:c.QueryCollectionFormat.Csv};const ro={parameterPath:"delimiter",mapper:{serializedName:"delimiter",required:true,xmlName:"delimiter",type:{name:"String"}}};const no={parameterPath:["options","snapshot"],mapper:{serializedName:"snapshot",xmlName:"snapshot",type:{name:"String"}}};const oo={parameterPath:["options","versionId"],mapper:{serializedName:"versionid",xmlName:"versionid",type:{name:"String"}}};const io={parameterPath:["options","range"],mapper:{serializedName:"x-ms-range",xmlName:"x-ms-range",type:{name:"String"}}};const so={parameterPath:["options","rangeGetContentMD5"],mapper:{serializedName:"x-ms-range-get-content-md5",xmlName:"x-ms-range-get-content-md5",type:{name:"Boolean"}}};const ao={parameterPath:["options","rangeGetContentCRC64"],mapper:{serializedName:"x-ms-range-get-content-crc64",xmlName:"x-ms-range-get-content-crc64",type:{name:"Boolean"}}};const co={parameterPath:["options","cpkInfo","encryptionKey"],mapper:{serializedName:"x-ms-encryption-key",xmlName:"x-ms-encryption-key",type:{name:"String"}}};const po={parameterPath:["options","cpkInfo","encryptionKeySha256"],mapper:{serializedName:"x-ms-encryption-key-sha256",xmlName:"x-ms-encryption-key-sha256",type:{name:"String"}}};const lo={parameterPath:["options","cpkInfo","encryptionAlgorithm"],mapper:{serializedName:"x-ms-encryption-algorithm",xmlName:"x-ms-encryption-algorithm",type:{name:"String"}}};const uo={parameterPath:["options","modifiedAccessConditions","ifMatch"],mapper:{serializedName:"If-Match",xmlName:"If-Match",type:{name:"String"}}};const Ao={parameterPath:["options","modifiedAccessConditions","ifNoneMatch"],mapper:{serializedName:"If-None-Match",xmlName:"If-None-Match",type:{name:"String"}}};const mo={parameterPath:["options","modifiedAccessConditions","ifTags"],mapper:{serializedName:"x-ms-if-tags",xmlName:"x-ms-if-tags",type:{name:"String"}}};const bo={parameterPath:["options","deleteSnapshots"],mapper:{serializedName:"x-ms-delete-snapshots",xmlName:"x-ms-delete-snapshots",type:{name:"Enum",allowedValues:["include","only"]}}};const fo={parameterPath:["options","blobDeleteType"],mapper:{serializedName:"deletetype",xmlName:"deletetype",type:{name:"String"}}};const ho={parameterPath:"comp",mapper:{defaultValue:"expiry",isConstant:true,serializedName:"comp",type:{name:"String"}}};const go={parameterPath:"expiryOptions",mapper:{serializedName:"x-ms-expiry-option",required:true,xmlName:"x-ms-expiry-option",type:{name:"String"}}};const Mo={parameterPath:["options","expiresOn"],mapper:{serializedName:"x-ms-expiry-time",xmlName:"x-ms-expiry-time",type:{name:"String"}}};const zo={parameterPath:["options","blobHttpHeaders","blobCacheControl"],mapper:{serializedName:"x-ms-blob-cache-control",xmlName:"x-ms-blob-cache-control",type:{name:"String"}}};const Oo={parameterPath:["options","blobHttpHeaders","blobContentType"],mapper:{serializedName:"x-ms-blob-content-type",xmlName:"x-ms-blob-content-type",type:{name:"String"}}};const yo={parameterPath:["options","blobHttpHeaders","blobContentMD5"],mapper:{serializedName:"x-ms-blob-content-md5",xmlName:"x-ms-blob-content-md5",type:{name:"ByteArray"}}};const Eo={parameterPath:["options","blobHttpHeaders","blobContentEncoding"],mapper:{serializedName:"x-ms-blob-content-encoding",xmlName:"x-ms-blob-content-encoding",type:{name:"String"}}};const vo={parameterPath:["options","blobHttpHeaders","blobContentLanguage"],mapper:{serializedName:"x-ms-blob-content-language",xmlName:"x-ms-blob-content-language",type:{name:"String"}}};const Co={parameterPath:["options","blobHttpHeaders","blobContentDisposition"],mapper:{serializedName:"x-ms-blob-content-disposition",xmlName:"x-ms-blob-content-disposition",type:{name:"String"}}};const qo={parameterPath:"comp",mapper:{defaultValue:"immutabilityPolicies",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ro={parameterPath:["options","immutabilityPolicyExpiry"],mapper:{serializedName:"x-ms-immutability-policy-until-date",xmlName:"x-ms-immutability-policy-until-date",type:{name:"DateTimeRfc1123"}}};const Bo={parameterPath:["options","immutabilityPolicyMode"],mapper:{serializedName:"x-ms-immutability-policy-mode",xmlName:"x-ms-immutability-policy-mode",type:{name:"Enum",allowedValues:["Mutable","Unlocked","Locked"]}}};const wo={parameterPath:"comp",mapper:{defaultValue:"legalhold",isConstant:true,serializedName:"comp",type:{name:"String"}}};const So={parameterPath:"legalHold",mapper:{serializedName:"x-ms-legal-hold",required:true,xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const No={parameterPath:["options","encryptionScope"],mapper:{serializedName:"x-ms-encryption-scope",xmlName:"x-ms-encryption-scope",type:{name:"String"}}};const Io={parameterPath:"comp",mapper:{defaultValue:"snapshot",isConstant:true,serializedName:"comp",type:{name:"String"}}};const xo={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 To={parameterPath:["options","rehydratePriority"],mapper:{serializedName:"x-ms-rehydrate-priority",xmlName:"x-ms-rehydrate-priority",type:{name:"Enum",allowedValues:["High","Standard"]}}};const _o={parameterPath:["options","sourceModifiedAccessConditions","sourceIfModifiedSince"],mapper:{serializedName:"x-ms-source-if-modified-since",xmlName:"x-ms-source-if-modified-since",type:{name:"DateTimeRfc1123"}}};const Wo={parameterPath:["options","sourceModifiedAccessConditions","sourceIfUnmodifiedSince"],mapper:{serializedName:"x-ms-source-if-unmodified-since",xmlName:"x-ms-source-if-unmodified-since",type:{name:"DateTimeRfc1123"}}};const Lo={parameterPath:["options","sourceModifiedAccessConditions","sourceIfMatch"],mapper:{serializedName:"x-ms-source-if-match",xmlName:"x-ms-source-if-match",type:{name:"String"}}};const ko={parameterPath:["options","sourceModifiedAccessConditions","sourceIfNoneMatch"],mapper:{serializedName:"x-ms-source-if-none-match",xmlName:"x-ms-source-if-none-match",type:{name:"String"}}};const Po={parameterPath:["options","sourceModifiedAccessConditions","sourceIfTags"],mapper:{serializedName:"x-ms-source-if-tags",xmlName:"x-ms-source-if-tags",type:{name:"String"}}};const Do={parameterPath:"copySource",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const Qo={parameterPath:["options","blobTagsString"],mapper:{serializedName:"x-ms-tags",xmlName:"x-ms-tags",type:{name:"String"}}};const Fo={parameterPath:["options","sealBlob"],mapper:{serializedName:"x-ms-seal-blob",xmlName:"x-ms-seal-blob",type:{name:"Boolean"}}};const Uo={parameterPath:["options","legalHold"],mapper:{serializedName:"x-ms-legal-hold",xmlName:"x-ms-legal-hold",type:{name:"Boolean"}}};const Go={parameterPath:"xMsRequiresSync",mapper:{defaultValue:"true",isConstant:true,serializedName:"x-ms-requires-sync",type:{name:"String"}}};const jo={parameterPath:["options","sourceContentMD5"],mapper:{serializedName:"x-ms-source-content-md5",xmlName:"x-ms-source-content-md5",type:{name:"ByteArray"}}};const Ho={parameterPath:["options","copySourceAuthorization"],mapper:{serializedName:"x-ms-copy-source-authorization",xmlName:"x-ms-copy-source-authorization",type:{name:"String"}}};const Xo={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 Vo={parameterPath:"comp",mapper:{defaultValue:"copy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Yo={parameterPath:"copyActionAbortConstant",mapper:{defaultValue:"abort",isConstant:true,serializedName:"x-ms-copy-action",type:{name:"String"}}};const $o={parameterPath:"copyId",mapper:{serializedName:"copyid",required:true,xmlName:"copyid",type:{name:"String"}}};const Jo={parameterPath:"comp",mapper:{defaultValue:"tier",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ko={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 Zo={parameterPath:["options","queryRequest"],mapper:pe};const ei={parameterPath:"comp",mapper:{defaultValue:"query",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ti={parameterPath:"comp",mapper:{defaultValue:"tags",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ri={parameterPath:["options","tags"],mapper:G};const ni={parameterPath:["options","transactionalContentMD5"],mapper:{serializedName:"Content-MD5",xmlName:"Content-MD5",type:{name:"ByteArray"}}};const oi={parameterPath:["options","transactionalContentCrc64"],mapper:{serializedName:"x-ms-content-crc64",xmlName:"x-ms-content-crc64",type:{name:"ByteArray"}}};const ii={parameterPath:"blobType",mapper:{defaultValue:"PageBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const si={parameterPath:"blobContentLength",mapper:{serializedName:"x-ms-blob-content-length",required:true,xmlName:"x-ms-blob-content-length",type:{name:"Number"}}};const ai={parameterPath:["options","blobSequenceNumber"],mapper:{serializedName:"x-ms-blob-sequence-number",xmlName:"x-ms-blob-sequence-number",type:{name:"Number"}}};const ci={parameterPath:["options","contentType"],mapper:{defaultValue:"application/octet-stream",isConstant:true,serializedName:"Content-Type",type:{name:"String"}}};const pi={parameterPath:"body",mapper:{serializedName:"body",required:true,xmlName:"body",type:{name:"Stream"}}};const li={parameterPath:"accept",mapper:{defaultValue:"application/xml",isConstant:true,serializedName:"Accept",type:{name:"String"}}};const di={parameterPath:"comp",mapper:{defaultValue:"page",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ui={parameterPath:"pageWrite",mapper:{defaultValue:"update",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const Ai={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThanOrEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-le",xmlName:"x-ms-if-sequence-number-le",type:{name:"Number"}}};const mi={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberLessThan"],mapper:{serializedName:"x-ms-if-sequence-number-lt",xmlName:"x-ms-if-sequence-number-lt",type:{name:"Number"}}};const bi={parameterPath:["options","sequenceNumberAccessConditions","ifSequenceNumberEqualTo"],mapper:{serializedName:"x-ms-if-sequence-number-eq",xmlName:"x-ms-if-sequence-number-eq",type:{name:"Number"}}};const fi={parameterPath:"pageWrite",mapper:{defaultValue:"clear",isConstant:true,serializedName:"x-ms-page-write",type:{name:"String"}}};const hi={parameterPath:"sourceUrl",mapper:{serializedName:"x-ms-copy-source",required:true,xmlName:"x-ms-copy-source",type:{name:"String"}}};const gi={parameterPath:"sourceRange",mapper:{serializedName:"x-ms-source-range",required:true,xmlName:"x-ms-source-range",type:{name:"String"}}};const Mi={parameterPath:["options","sourceContentCrc64"],mapper:{serializedName:"x-ms-source-content-crc64",xmlName:"x-ms-source-content-crc64",type:{name:"ByteArray"}}};const zi={parameterPath:"range",mapper:{serializedName:"x-ms-range",required:true,xmlName:"x-ms-range",type:{name:"String"}}};const Oi={parameterPath:"comp",mapper:{defaultValue:"pagelist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const yi={parameterPath:["options","prevsnapshot"],mapper:{serializedName:"prevsnapshot",xmlName:"prevsnapshot",type:{name:"String"}}};const Ei={parameterPath:["options","prevSnapshotUrl"],mapper:{serializedName:"x-ms-previous-snapshot-url",xmlName:"x-ms-previous-snapshot-url",type:{name:"String"}}};const vi={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 Ci={parameterPath:"comp",mapper:{defaultValue:"incrementalcopy",isConstant:true,serializedName:"comp",type:{name:"String"}}};const qi={parameterPath:"blobType",mapper:{defaultValue:"AppendBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const Ri={parameterPath:"comp",mapper:{defaultValue:"appendblock",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Bi={parameterPath:["options","appendPositionAccessConditions","maxSize"],mapper:{serializedName:"x-ms-blob-condition-maxsize",xmlName:"x-ms-blob-condition-maxsize",type:{name:"Number"}}};const wi={parameterPath:["options","appendPositionAccessConditions","appendPosition"],mapper:{serializedName:"x-ms-blob-condition-appendpos",xmlName:"x-ms-blob-condition-appendpos",type:{name:"Number"}}};const Si={parameterPath:["options","sourceRange"],mapper:{serializedName:"x-ms-source-range",xmlName:"x-ms-source-range",type:{name:"String"}}};const Ni={parameterPath:"comp",mapper:{defaultValue:"seal",isConstant:true,serializedName:"comp",type:{name:"String"}}};const Ii={parameterPath:"blobType",mapper:{defaultValue:"BlockBlob",isConstant:true,serializedName:"x-ms-blob-type",type:{name:"String"}}};const xi={parameterPath:["options","copySourceBlobProperties"],mapper:{serializedName:"x-ms-copy-source-blob-properties",xmlName:"x-ms-copy-source-blob-properties",type:{name:"Boolean"}}};const Ti={parameterPath:"comp",mapper:{defaultValue:"block",isConstant:true,serializedName:"comp",type:{name:"String"}}};const _i={parameterPath:"blockId",mapper:{serializedName:"blockid",required:true,xmlName:"blockid",type:{name:"String"}}};const Wi={parameterPath:"blocks",mapper:re};const Li={parameterPath:"comp",mapper:{defaultValue:"blocklist",isConstant:true,serializedName:"comp",type:{name:"String"}}};const ki={parameterPath:"listType",mapper:{defaultValue:"committed",serializedName:"blocklisttype",required:true,xmlName:"blocklisttype",type:{name:"Enum",allowedValues:["committed","uncommitted","all"]}}};class Service{constructor(r){this.client=r}setProperties(r,i){const a={blobServiceProperties:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Di)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Qi)}getStatistics(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Fi)}listContainersSegment(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ui)}getUserDelegationKey(r,i){const a={keyInfo:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Gi)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ji)}submitBatch(r,i,a,c){const p={contentLength:r,multipartContentType:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,Hi)}filterBlobs(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Xi)}}const Pi=new y.Serializer(Jr,true);const Di={path:"/",httpMethod:"PUT",responses:{202:{headersMapper:he},default:{bodyMapper:x,headersMapper:Me}},requestBody:Zr,queryParameters:[rn,nn,sn],urlParameters:[tn],headerParameters:[Kr,en,an,cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const Qi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:R,headersMapper:ze},default:{bodyMapper:x,headersMapper:Oe}},queryParameters:[rn,nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Fi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:T,headersMapper:ye},default:{bodyMapper:x,headersMapper:Ee}},queryParameters:[rn,sn,ln],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Ui={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:W,headersMapper:ve},default:{bodyMapper:x,headersMapper:Ce}},queryParameters:[sn,dn,un,An,mn,bn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};const Gi={path:"/",httpMethod:"POST",responses:{200:{bodyMapper:D,headersMapper:qe},default:{bodyMapper:x,headersMapper:Re}},requestBody:hn,queryParameters:[rn,sn,gn],urlParameters:[tn],headerParameters:[Kr,en,an,cn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const ji={path:"/",httpMethod:"GET",responses:{200:{headersMapper:Be},default:{bodyMapper:x,headersMapper:we}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:Pi};const Hi={path:"/",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Se},default:{bodyMapper:x,headersMapper:Ne}},requestBody:zn,queryParameters:[sn,On],urlParameters:[tn],headerParameters:[Kr,en,an,cn,yn,En],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Pi};const Xi={path:"/",httpMethod:"GET",responses:{200:{bodyMapper:Q,headersMapper:Ie},default:{bodyMapper:x,headersMapper:xe}},queryParameters:[sn,An,mn,vn,Cn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Pi};class Container{constructor(r){this.client=r}create(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Yi)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,$i)}delete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ji)}setMetadata(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ki)}getAccessPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Zi)}setAccessPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,es)}restore(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ts)}rename(r,i){const a={sourceContainerName:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,rs)}submitBatch(r,i,a,c){const p={contentLength:r,multipartContentType:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,ns)}filterBlobs(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,os)}acquireLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ss)}releaseLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,cs)}renewLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,ps)}breakLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ls)}changeLease(r,i,a){const c={leaseId:r,proposedLeaseId:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ds)}listBlobFlatSegment(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,us)}listBlobHierarchySegment(r,i){const a={delimiter:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,As)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ms)}}const Vi=new y.Serializer(Jr,true);const Yi={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:Te},default:{bodyMapper:x,headersMapper:_e}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Bn,wn,Sn],isXML:true,serializer:Vi};const $i={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:We},default:{bodyMapper:x,headersMapper:Le}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn],isXML:true,serializer:Vi};const Ji={path:"/{containerName}",httpMethod:"DELETE",responses:{202:{headersMapper:ke},default:{bodyMapper:x,headersMapper:Pe}},queryParameters:[sn,qn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn],isXML:true,serializer:Vi};const Ki={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:De},default:{bodyMapper:x,headersMapper:Qe}},queryParameters:[sn,qn,Tn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In],isXML:true,serializer:Vi};const Zi={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:Fe},default:{bodyMapper:x,headersMapper:Ue}},queryParameters:[sn,qn,_n],urlParameters:[tn],headerParameters:[an,cn,pn,Nn],isXML:true,serializer:Vi};const es={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ge},default:{bodyMapper:x,headersMapper:je}},requestBody:Wn,queryParameters:[sn,qn,_n],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Bn,Nn,In,xn],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Vi};const ts={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:He},default:{bodyMapper:x,headersMapper:Xe}},queryParameters:[sn,qn,Ln],urlParameters:[tn],headerParameters:[an,cn,pn,kn,Pn],isXML:true,serializer:Vi};const rs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:Ve},default:{bodyMapper:x,headersMapper:Ye}},queryParameters:[sn,qn,Dn],urlParameters:[tn],headerParameters:[an,cn,pn,Qn,Fn],isXML:true,serializer:Vi};const ns={path:"/{containerName}",httpMethod:"POST",responses:{202:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:$e},default:{bodyMapper:x,headersMapper:Je}},requestBody:zn,queryParameters:[sn,On,qn],urlParameters:[tn],headerParameters:[Kr,en,an,cn,yn,En],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:Vi};const os={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Q,headersMapper:Ke},default:{bodyMapper:x,headersMapper:Ze}},queryParameters:[sn,An,mn,vn,Cn,qn],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const ss={path:"/{containerName}",httpMethod:"PUT",responses:{201:{headersMapper:et},default:{bodyMapper:x,headersMapper:tt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Gn,jn,Hn],isXML:true,serializer:Vi};const cs={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:rt},default:{bodyMapper:x,headersMapper:nt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Xn,Vn],isXML:true,serializer:Vi};const ps={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:ot},default:{bodyMapper:x,headersMapper:it}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Yn],isXML:true,serializer:Vi};const ls={path:"/{containerName}",httpMethod:"PUT",responses:{202:{headersMapper:st},default:{bodyMapper:x,headersMapper:ct}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,$n,Jn],isXML:true,serializer:Vi};const ds={path:"/{containerName}",httpMethod:"PUT",responses:{200:{headersMapper:pt},default:{bodyMapper:x,headersMapper:dt}},queryParameters:[sn,qn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Kn,Zn],isXML:true,serializer:Vi};const us={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:V,headersMapper:ut},default:{bodyMapper:x,headersMapper:At}},queryParameters:[sn,dn,un,An,mn,qn,eo],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const As={path:"/{containerName}",httpMethod:"GET",responses:{200:{bodyMapper:Z,headersMapper:mt},default:{bodyMapper:x,headersMapper:bt}},queryParameters:[sn,dn,un,An,mn,qn,eo,ro],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:Vi};const ms={path:"/{containerName}",httpMethod:"GET",responses:{200:{headersMapper:ft},default:{bodyMapper:x,headersMapper:ht}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:Vi};class Blob$1{constructor(r){this.client=r}download(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,fs)}getProperties(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,hs)}delete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,gs)}undelete(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ms)}setExpiry(r,i){const a={expiryOptions:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,zs)}setHttpHeaders(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Os)}setImmutabilityPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ys)}deleteImmutabilityPolicy(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Es)}setLegalHold(r,i){const a={legalHold:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,vs)}setMetadata(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Cs)}acquireLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,qs)}releaseLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Rs)}renewLease(r,i){const a={leaseId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Bs)}changeLease(r,i,a){const c={leaseId:r,proposedLeaseId:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ws)}breakLease(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ss)}createSnapshot(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ns)}startCopyFromURL(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Is)}copyFromURL(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,xs)}abortCopyFromURL(r,i){const a={copyId:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ts)}setTier(r,i){const a={tier:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,_s)}getAccountInfo(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ws)}query(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ls)}getTags(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ks)}setTags(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Ps)}}const bs=new y.Serializer(Jr,true);const fs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Mt},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:Mt},default:{bodyMapper:x,headersMapper:zt}},queryParameters:[sn,no,oo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,so,ao,co,po,lo,uo,Ao,mo],isXML:true,serializer:bs};const hs={path:"/{containerName}/{blob}",httpMethod:"HEAD",responses:{200:{headersMapper:Ot},default:{bodyMapper:x,headersMapper:yt}},queryParameters:[sn,no,oo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,co,po,lo,uo,Ao,mo],isXML:true,serializer:bs};const gs={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{202:{headersMapper:Et},default:{bodyMapper:x,headersMapper:vt}},queryParameters:[sn,no,oo,fo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,bo],isXML:true,serializer:bs};const Ms={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ct},default:{bodyMapper:x,headersMapper:qt}},queryParameters:[sn,Ln],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:bs};const zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rt},default:{bodyMapper:x,headersMapper:Bt}},queryParameters:[sn,ho],urlParameters:[tn],headerParameters:[an,cn,pn,go,Mo],isXML:true,serializer:bs};const Os={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:wt},default:{bodyMapper:x,headersMapper:St}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co],isXML:true,serializer:bs};const ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Nt},default:{bodyMapper:x,headersMapper:It}},queryParameters:[sn,qo],urlParameters:[tn],headerParameters:[an,cn,pn,xn,Ro,Bo],isXML:true,serializer:bs};const Es={path:"/{containerName}/{blob}",httpMethod:"DELETE",responses:{200:{headersMapper:xt},default:{bodyMapper:x,headersMapper:Tt}},queryParameters:[sn,qo],urlParameters:[tn],headerParameters:[an,cn,pn],isXML:true,serializer:bs};const vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:_t},default:{bodyMapper:x,headersMapper:Wt}},queryParameters:[sn,wo],urlParameters:[tn],headerParameters:[an,cn,pn,So],isXML:true,serializer:bs};const Cs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lt},default:{bodyMapper:x,headersMapper:kt}},queryParameters:[sn,Tn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,No],isXML:true,serializer:bs};const qs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pt},default:{bodyMapper:x,headersMapper:Dt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Gn,jn,Hn,uo,Ao,mo],isXML:true,serializer:bs};const Rs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Qt},default:{bodyMapper:x,headersMapper:Ft}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Xn,Vn,uo,Ao,mo],isXML:true,serializer:bs};const Bs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Ut},default:{bodyMapper:x,headersMapper:Gt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Yn,uo,Ao,mo],isXML:true,serializer:bs};const ws={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:jt},default:{bodyMapper:x,headersMapper:Ht}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,Vn,Kn,Zn,uo,Ao,mo],isXML:true,serializer:bs};const Ss={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Xt},default:{bodyMapper:x,headersMapper:Vt}},queryParameters:[sn,Un],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,$n,Jn,uo,Ao,mo],isXML:true,serializer:bs};const Ns={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Yt},default:{bodyMapper:x,headersMapper:$t}},queryParameters:[sn,Io],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,No],isXML:true,serializer:bs};const Is={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Jt},default:{bodyMapper:x,headersMapper:Kt}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,uo,Ao,mo,Ro,Bo,xo,To,_o,Wo,Lo,ko,Po,Do,Qo,Fo,Uo],isXML:true,serializer:bs};const xs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:Zt},default:{bodyMapper:x,headersMapper:er}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,Rn,Nn,In,xn,uo,Ao,mo,Ro,Bo,No,xo,_o,Wo,Lo,ko,Do,Qo,Uo,Go,jo,Ho,Xo],isXML:true,serializer:bs};const Ts={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:tr},default:{bodyMapper:x,headersMapper:rr}},queryParameters:[sn,Vo,$o],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,Yo],isXML:true,serializer:bs};const _s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:nr},202:{headersMapper:nr},default:{bodyMapper:x,headersMapper:or}},queryParameters:[sn,no,oo,Jo],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo,To,Ko],isXML:true,serializer:bs};const Ws={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{headersMapper:ir},default:{bodyMapper:x,headersMapper:sr}},queryParameters:[nn,Mn],urlParameters:[tn],headerParameters:[an,pn],isXML:true,serializer:bs};const Ls={path:"/{containerName}/{blob}",httpMethod:"POST",responses:{200:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ar},206:{bodyMapper:{type:{name:"Stream"},serializedName:"parsedResponse"},headersMapper:ar},default:{bodyMapper:x,headersMapper:cr}},requestBody:Zo,queryParameters:[sn,no,ei],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Nn,In,xn,co,po,lo,uo,Ao,mo],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:bs};const ks={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:G,headersMapper:pr},default:{bodyMapper:x,headersMapper:lr}},queryParameters:[sn,no,oo,ti],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo],isXML:true,serializer:bs};const Ps={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{204:{headersMapper:dr},default:{bodyMapper:x,headersMapper:ur}},requestBody:ri,queryParameters:[sn,oo,ti],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Nn,mo,ni,oi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:bs};class PageBlob{constructor(r){this.client=r}create(r,i,a){const c={contentLength:r,blobContentLength:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,Fs)}uploadPages(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,Us)}clearPages(r,i){const a={contentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Gs)}uploadPagesFromURL(r,i,a,c,p){const l={sourceUrl:r,sourceRange:i,contentLength:a,range:c,options:y.operationOptionsToRequestOptionsBase(p||{})};return this.client.sendOperationRequest(l,js)}getPageRanges(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Hs)}getPageRangesDiff(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,Xs)}resize(r,i){const a={blobContentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Vs)}updateSequenceNumber(r,i){const a={sequenceNumberAction:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Ys)}copyIncremental(r,i){const a={copySource:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,$s)}}const Ds=new y.Serializer(Jr,true);const Qs=new y.Serializer(Jr,false);const Fs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ar},default:{bodyMapper:x,headersMapper:mr}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ii,si,ai],isXML:true,serializer:Ds};const Us={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:br},default:{bodyMapper:x,headersMapper:fr}},requestBody:pi,queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,In,xn,io,co,po,lo,uo,Ao,mo,No,ni,oi,ci,li,ui,Ai,mi,bi],mediaType:"binary",serializer:Qs};const Gs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:hr},default:{bodyMapper:x,headersMapper:gr}},queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,io,co,po,lo,uo,Ao,mo,No,Ai,mi,bi,fi],isXML:true,serializer:Ds};const js={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Mr},default:{bodyMapper:x,headersMapper:zr}},queryParameters:[sn,di],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,_o,Wo,Lo,ko,jo,Ho,ui,Ai,mi,bi,hi,gi,Mi,zi],isXML:true,serializer:Ds};const Hs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Or},default:{bodyMapper:x,headersMapper:yr}},queryParameters:[sn,An,mn,no,Oi],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,uo,Ao,mo],isXML:true,serializer:Ds};const Xs={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:se,headersMapper:Er},default:{bodyMapper:x,headersMapper:vr}},queryParameters:[sn,An,mn,no,Oi,yi],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,io,uo,Ao,mo,Ei],isXML:true,serializer:Ds};const Vs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Cr},default:{bodyMapper:x,headersMapper:qr}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,si],isXML:true,serializer:Ds};const Ys={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Rr},default:{bodyMapper:x,headersMapper:Br}},queryParameters:[nn,sn],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,mo,ai,vi],isXML:true,serializer:Ds};const $s={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{202:{headersMapper:wr},default:{bodyMapper:x,headersMapper:Sr}},queryParameters:[sn,Ci],urlParameters:[tn],headerParameters:[an,cn,pn,In,xn,uo,Ao,mo,Do],isXML:true,serializer:Ds};class AppendBlob{constructor(r){this.client=r}create(r,i){const a={contentLength:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,Zs)}appendBlock(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ea)}appendBlockFromUrl(r,i,a){const c={sourceUrl:r,contentLength:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ta)}seal(r){const i={options:y.operationOptionsToRequestOptionsBase(r||{})};return this.client.sendOperationRequest(i,ra)}}const Js=new y.Serializer(Jr,true);const Ks=new y.Serializer(Jr,false);const Zs={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Nr},default:{bodyMapper:x,headersMapper:Ir}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,Qo,Uo,qi],isXML:true,serializer:Js};const ea={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:xr},default:{bodyMapper:x,headersMapper:Tr}},requestBody:pi,queryParameters:[sn,Ri],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,ni,oi,ci,li,Bi,wi],mediaType:"binary",serializer:Ks};const ta={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:_r},default:{bodyMapper:x,headersMapper:Wr}},queryParameters:[sn,Ri],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,In,xn,co,po,lo,uo,Ao,mo,No,_o,Wo,Lo,ko,jo,Ho,ni,hi,Mi,Bi,wi,Si],isXML:true,serializer:Js};const ra={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{200:{headersMapper:Lr},default:{bodyMapper:x,headersMapper:kr}},queryParameters:[sn,Ni],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,In,xn,uo,Ao,wi],isXML:true,serializer:Js};class BlockBlob{constructor(r){this.client=r}upload(r,i,a){const c={contentLength:r,body:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,ia)}putBlobFromUrl(r,i,a){const c={contentLength:r,copySource:i,options:y.operationOptionsToRequestOptionsBase(a||{})};return this.client.sendOperationRequest(c,sa)}stageBlock(r,i,a,c){const p={blockId:r,contentLength:i,body:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,aa)}stageBlockFromURL(r,i,a,c){const p={blockId:r,contentLength:i,sourceUrl:a,options:y.operationOptionsToRequestOptionsBase(c||{})};return this.client.sendOperationRequest(p,ca)}commitBlockList(r,i){const a={blocks:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,pa)}getBlockList(r,i){const a={listType:r,options:y.operationOptionsToRequestOptionsBase(i||{})};return this.client.sendOperationRequest(a,la)}}const na=new y.Serializer(Jr,true);const oa=new y.Serializer(Jr,false);const ia={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Pr},default:{bodyMapper:x,headersMapper:Dr}},requestBody:pi,queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ni,oi,ci,li,Ii],mediaType:"binary",serializer:oa};const sa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Qr},default:{bodyMapper:x,headersMapper:Fr}},queryParameters:[sn],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,No,xo,_o,Wo,Lo,ko,Po,Do,Qo,jo,Ho,Xo,ni,Ii,xi],isXML:true,serializer:na};const aa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Ur},default:{bodyMapper:x,headersMapper:Gr}},requestBody:pi,queryParameters:[sn,Ti,_i],urlParameters:[tn],headerParameters:[an,cn,yn,Nn,co,po,lo,No,ni,oi,ci,li],mediaType:"binary",serializer:oa};const ca={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:jr},default:{bodyMapper:x,headersMapper:Hr}},queryParameters:[sn,Ti,_i],urlParameters:[tn],headerParameters:[an,cn,pn,yn,Nn,co,po,lo,No,_o,Wo,Lo,ko,jo,Ho,hi,Mi,Si],isXML:true,serializer:na};const pa={path:"/{containerName}/{blob}",httpMethod:"PUT",responses:{201:{headersMapper:Xr},default:{bodyMapper:x,headersMapper:Vr}},requestBody:Wi,queryParameters:[sn,Li],urlParameters:[tn],headerParameters:[Kr,en,an,cn,Rn,Nn,In,xn,co,po,lo,uo,Ao,mo,zo,Oo,yo,Eo,vo,Co,Ro,Bo,No,xo,Qo,Uo,ni,oi],isXML:true,contentType:"application/xml; charset=utf-8",mediaType:"xml",serializer:na};const la={path:"/{containerName}/{blob}",httpMethod:"GET",responses:{200:{bodyMapper:oe,headersMapper:Yr},default:{bodyMapper:x,headersMapper:$r}},queryParameters:[sn,no,Li,ki],urlParameters:[tn],headerParameters:[an,cn,pn,Nn,mo],isXML:true,serializer:na};const da=d.createClientLogger("storage-blob");const ua="12.18.0";const Aa="2024-05-04";const ma=256*1024*1024;const ba=4e3*1024*1024;const fa=5e4;const ha=8*1024*1024;const ga=4*1024*1024;const Ma=5;const za=100*1e3;const Oa="https://storage.azure.com/.default";const ya={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};const Ea={HTTP_ACCEPTED:202,HTTP_CONFLICT:409,HTTP_NOT_FOUND:404,HTTP_PRECON_FAILED:412,HTTP_RANGE_NOT_SATISFIABLE:416};const va={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"};const Ca="";const qa="*";const Ra=1*1024*1024;const Ba=256;const wa=4*Ra;const Sa="\r\n";const Na="HTTP/1.1";const Ia="AES256";const xa=`DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;`;const Ta=["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-if-tags","x-ms-source-if-tags"];const _a=["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 Wa="BlobUsesCustomerSpecifiedEncryption";const La="BlobDoesNotUseCustomerSpecifiedEncryption";const ka=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function escapeURLPath(r){const i=c.URLBuilder.parse(r);let a=i.getPath();a=a||"/";a=escape(a);i.setPath(a);return i.toString()}function getProxyUriFromDevConnString(r){let i="";if(r.search("DevelopmentStorageProxyUri=")!==-1){const a=r.split(";");for(const r of a){if(r.trim().startsWith("DevelopmentStorageProxyUri=")){i=r.trim().match("DevelopmentStorageProxyUri=(.*)")[1]}}}return i}function getValueInConnString(r,i){const a=r.split(";");for(const r of a){if(r.trim().startsWith(i)){return r.trim().match(i+"=(.*)")[1]}}return""}function extractConnectionStringParts(r){let i="";if(r.startsWith("UseDevelopmentStorage=true")){i=getProxyUriFromDevConnString(r);r=xa}let a=getValueInConnString(r,"BlobEndpoint");a=a.endsWith("/")?a.slice(0,-1):a;if(r.search("DefaultEndpointsProtocol=")!==-1&&r.search("AccountKey=")!==-1){let c="";let p="";let l=Buffer.from("accountKey","base64");let d="";p=getValueInConnString(r,"AccountName");l=Buffer.from(getValueInConnString(r,"AccountKey"),"base64");if(!a){c=getValueInConnString(r,"DefaultEndpointsProtocol");const i=c.toLowerCase();if(i!=="https"&&i!=="http"){throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'")}d=getValueInConnString(r,"EndpointSuffix");if(!d){throw new Error("Invalid EndpointSuffix in the provided Connection String")}a=`${c}://${p}.blob.${d}`}if(!p){throw new Error("Invalid AccountName in the provided Connection String")}else if(l.length===0){throw new Error("Invalid AccountKey in the provided Connection String")}return{kind:"AccountConnString",url:a,accountName:p,accountKey:l,proxyUri:i}}else{const i=getValueInConnString(r,"SharedAccessSignature");let c=getValueInConnString(r,"AccountName");if(!c){c=getAccountNameFromUrl(a)}if(!a){throw new Error("Invalid BlobEndpoint in the provided SAS Connection String")}else if(!i){throw new Error("Invalid SharedAccessSignature in the provided SAS Connection String")}return{kind:"SASConnString",url:a,accountName:c,accountSas:i}}}function escape(r){return encodeURIComponent(r).replace(/%2F/g,"/").replace(/'/g,"%27").replace(/\+/g,"%20").replace(/%25/g,"%")}function appendToURLPath(r,i){const a=c.URLBuilder.parse(r);let p=a.getPath();p=p?p.endsWith("/")?`${p}${i}`:`${p}/${i}`:i;a.setPath(p);const l=new URL(a.toString());return l.toString()}function setURLParameter(r,i,a){const p=c.URLBuilder.parse(r);p.setQueryParameter(i,a);return p.toString()}function getURLParameter(r,i){const a=c.URLBuilder.parse(r);return a.getQueryParameterValue(i)}function setURLHost(r,i){const a=c.URLBuilder.parse(r);a.setHost(i);return a.toString()}function getURLPath(r){const i=c.URLBuilder.parse(r);return i.getPath()}function getURLScheme(r){const i=c.URLBuilder.parse(r);return i.getScheme()}function getURLPathAndQuery(r){const i=c.URLBuilder.parse(r);const a=i.getPath();if(!a){throw new RangeError("Invalid url without valid path.")}let p=i.getQuery()||"";p=p.trim();if(p!==""){p=p.startsWith("?")?p:`?${p}`}return`${a}${p}`}function getURLQueries(r){let i=c.URLBuilder.parse(r).getQuery();if(!i){return{}}i=i.trim();i=i.startsWith("?")?i.substr(1):i;let a=i.split("&");a=a.filter((r=>{const i=r.indexOf("=");const a=r.lastIndexOf("=");return i>0&&i===a&&ap){r=r.slice(0,p)}const l=r+padStart(i.toString(),a-r.length,"0");return base64encode(l)}async function delay(r,i,a){return new Promise(((c,p)=>{let l;const abortHandler=()=>{if(l!==undefined){clearTimeout(l)}p(a)};const resolveHandler=()=>{if(i!==undefined){i.removeEventListener("abort",abortHandler)}c()};l=setTimeout(resolveHandler,r);if(i!==undefined){i.addEventListener("abort",abortHandler)}}))}function padStart(r,i,a=" "){if(String.prototype.padStart){return r.padStart(i,a)}a=a||" ";if(r.length>i){return r}else{i=i-r.length;if(i>a.length){a+=a.repeat(i/a.length)}return a.slice(0,i)+r}}function iEqual(r,i){return r.toLocaleLowerCase()===i.toLocaleLowerCase()}function getAccountNameFromUrl(r){const i=c.URLBuilder.parse(r);let a;try{if(i.getHost().split(".")[1]==="blob"){a=i.getHost().split(".")[0]}else if(isIpEndpointStyle(i)){a=i.getPath().split("/")[1]}else{a=""}return a}catch(r){throw new Error("Unable to extract accountName with provided information.")}}function isIpEndpointStyle(r){if(r.getHost()===undefined){return false}const i=r.getHost()+(r.getPort()===undefined?"":":"+r.getPort());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(i)||r.getPort()!==undefined&&ka.includes(r.getPort())}function toBlobTagsString(r){if(r===undefined){return undefined}const i=[];for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const c=r[a];i.push(`${encodeURIComponent(a)}=${encodeURIComponent(c)}`)}}return i.join("&")}function toBlobTags(r){if(r===undefined){return undefined}const i={blobTagSet:[]};for(const a in r){if(Object.prototype.hasOwnProperty.call(r,a)){const c=r[a];i.blobTagSet.push({key:a,value:c})}}return i}function toTags(r){if(r===undefined){return undefined}const i={};for(const a of r.blobTagSet){i[a.key]=a.value}return i}function toQuerySerialization(r){if(r===undefined){return undefined}switch(r.kind){case"csv":return{format:{type:"delimited",delimitedTextConfiguration:{columnSeparator:r.columnSeparator||",",fieldQuote:r.fieldQuote||"",recordSeparator:r.recordSeparator,escapeChar:r.escapeCharacter||"",headersPresent:r.hasHeaders||false}}};case"json":return{format:{type:"json",jsonTextConfiguration:{recordSeparator:r.recordSeparator}}};case"arrow":return{format:{type:"arrow",arrowConfiguration:{schema:r.schema}}};case"parquet":return{format:{type:"parquet"}};default:throw Error("Invalid BlobQueryTextConfiguration.")}}function parseObjectReplicationRecord(r){if(!r){return undefined}if("policy-id"in r){return undefined}const i=[];for(const a in r){const c=a.split("_");const p="or-";if(c[0].startsWith(p)){c[0]=c[0].substring(p.length)}const l={ruleId:c[1],replicationStatus:r[a]};const d=i.findIndex((r=>r.policyId===c[0]));if(d>-1){i[d].rules.push(l)}else{i.push({policyId:c[0],rules:[l]})}}return i}function attachCredential(r,i){r.credential=i;return r}function httpAuthorizationToString(r){return r?r.scheme+" "+r.value:undefined}function BlobNameToString(r){if(r.encoded){return decodeURIComponent(r.content)}else{return r.content}}function ConvertInternalResponseOfListBlobFlat(r){return Object.assign(Object.assign({},r),{segment:{blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function ConvertInternalResponseOfListBlobHierarchy(r){var i;return Object.assign(Object.assign({},r),{segment:{blobPrefixes:(i=r.segment.blobPrefixes)===null||i===void 0?void 0:i.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i})),blobItems:r.segment.blobItems.map((r=>{const i=Object.assign(Object.assign({},r),{name:BlobNameToString(r.name)});return i}))}})}function*ExtractPageRangeInfoItems(r){let i=[];let a=[];if(r.pageRange)i=r.pageRange;if(r.clearRange)a=r.clearRange;let c=0;let p=0;while(c=1?Math.floor(a.maxTries):Pa.maxTries,tryTimeoutInMs:a.tryTimeoutInMs&&a.tryTimeoutInMs>=0?a.tryTimeoutInMs:Pa.tryTimeoutInMs,retryDelayInMs:a.retryDelayInMs&&a.retryDelayInMs>=0?Math.min(a.retryDelayInMs,a.maxRetryDelayInMs?a.maxRetryDelayInMs:Pa.maxRetryDelayInMs):Pa.retryDelayInMs,maxRetryDelayInMs:a.maxRetryDelayInMs&&a.maxRetryDelayInMs>=0?a.maxRetryDelayInMs:Pa.maxRetryDelayInMs,secondaryHost:a.secondaryHost?a.secondaryHost:Pa.secondaryHost}}async sendRequest(r){return this.attemptSendRequest(r,false,1)}async attemptSendRequest(r,i,a){const c=r.clone();const p=i||!this.retryOptions.secondaryHost||!(r.method==="GET"||r.method==="HEAD"||r.method==="OPTIONS")||a%2===1;if(!p){c.url=setURLHost(c.url,this.retryOptions.secondaryHost)}if(this.retryOptions.tryTimeoutInMs){c.url=setURLParameter(c.url,ya.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString())}let l;try{da.info(`RetryPolicy: =====> Try=${a} ${p?"Primary":"Secondary"}`);l=await this._nextPolicy.sendRequest(c);if(!this.shouldRetry(p,a,l)){return l}i=i||!p&&l.status===404}catch(r){da.error(`RetryPolicy: Caught error, message: ${r.message}, code: ${r.code}`);if(!this.shouldRetry(p,a,l,r)){throw r}}await this.delay(p,a,r.abortSignal);return this.attemptSendRequest(r,i,++a)}shouldRetry(r,i,a,c){if(i>=this.retryOptions.maxTries){da.info(`RetryPolicy: Attempt(s) ${i} >= maxTries ${this.retryOptions.maxTries}, no further try.`);return false}const p=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(c){for(const r of p){if(c.name.toUpperCase().includes(r)||c.message.toUpperCase().includes(r)||c.code&&c.code.toString().toUpperCase()===r){da.info(`RetryPolicy: Network error ${r} found, will retry.`);return true}}}if(a||c){const i=a?a.status:c?c.statusCode:0;if(!r&&i===404){da.info(`RetryPolicy: Secondary access with 404, will retry.`);return true}if(i===503||i===500){da.info(`RetryPolicy: Will retry for status code ${i}.`);return true}}if((c===null||c===void 0?void 0:c.code)==="PARSE_ERROR"&&(c===null||c===void 0?void 0:c.message.startsWith(`Error "Error: Unclosed root tag`))){da.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry.");return true}return false}async delay(r,a,c){let p=0;if(r){switch(this.retryOptions.retryPolicyType){case i.StorageRetryPolicyType.EXPONENTIAL:p=Math.min((Math.pow(2,a-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case i.StorageRetryPolicyType.FIXED:p=this.retryOptions.retryDelayInMs;break}}else{p=Math.random()*1e3}da.info(`RetryPolicy: Delay for ${p}ms`);return delay(p,c,Da)}}class StorageRetryPolicyFactory{constructor(r){this.retryOptions=r}create(r,i){return new StorageRetryPolicy(r,i,this.retryOptions)}}class CredentialPolicy extends c.BaseRequestPolicy{sendRequest(r){return this._nextPolicy.sendRequest(this.signRequest(r))}signRequest(r){return r}}class AnonymousCredentialPolicy extends CredentialPolicy{constructor(r,i){super(r,i)}}class Credential{create(r,i){throw new Error("Method should be implemented in children classes.")}}class AnonymousCredential extends Credential{create(r,i){return new AnonymousCredentialPolicy(r,i)}}class TelemetryPolicy extends c.BaseRequestPolicy{constructor(r,i,a){super(r,i);this.telemetry=a}async sendRequest(r){if(c.isNode){if(!r.headers){r.headers=new c.HttpHeaders}if(!r.headers.get(va.USER_AGENT)){r.headers.set(va.USER_AGENT,this.telemetry)}}return this._nextPolicy.sendRequest(r)}}class TelemetryPolicyFactory{constructor(r){const i=[];if(c.isNode){if(r){const a=r.userAgentPrefix||"";if(a.length>0&&i.indexOf(a)===-1){i.push(a)}}const a=`azsdk-js-storageblob/${ua}`;if(i.indexOf(a)===-1){i.push(a)}let c=`(NODE-VERSION ${process.version})`;if(v){c=`(NODE-VERSION ${process.version}; ${v.type()} ${v.release()})`}if(i.indexOf(c)===-1){i.push(c)}}this.telemetryString=i.join(" ")}create(r,i){return new TelemetryPolicy(r,i,this.telemetryString)}}const Qa=new c.DefaultHttpClient;function getCachedDefaultHttpClient(){return Qa}const Fa={DefaultScope:"/.default",HeaderConstants:{AUTHORIZATION:"authorization"}};const Ua={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function beginRefresh(r,i,a){async function tryGetAccessToken(){if(Date.now()r.getToken(i,a);c=beginRefresh(tryGetAccessToken,l.retryIntervalInMs,(u=p===null||p===void 0?void 0:p.expiresOnTimestamp)!==null&&u!==void 0?u:Date.now()).then((r=>{c=null;p=r;return p})).catch((r=>{c=null;p=null;throw r}))}return c}return async r=>{if(d.mustRefresh)return refresh(r);if(d.shouldRefresh){refresh(r)}return p}}function getChallenge(r){const i=r.headers.get("WWW-Authenticate");if(r.status===401&&i){return i}return}function parseChallenge(r){const i=r.slice("Bearer ".length);const a=`${i.trim()} `.split(" ").filter((r=>r));const c=a.map((r=>(([r,i])=>({[r]:i}))(r.trim().split("="))));return c.reduce(((r,i)=>Object.assign(Object.assign({},r),i)),{})}function storageBearerTokenChallengeAuthenticationPolicy(r,i){let a=createTokenCycler(r,i);class StorageBearerTokenChallengeAuthenticationPolicy extends c.BaseRequestPolicy{constructor(r,i){super(r,i)}async sendRequest(i){if(!i.url.toLowerCase().startsWith("https://")){throw new Error("Bearer token authentication is not permitted for non-TLS protected (non-https) URLs.")}const p=a;const l=(await p({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext}})).token;i.headers.set(Fa.HeaderConstants.AUTHORIZATION,`Bearer ${l}`);const d=await this._nextPolicy.sendRequest(i);if((d===null||d===void 0?void 0:d.status)===401){const p=getChallenge(d);if(p){const l=parseChallenge(p);const d=l.resource_id+Fa.DefaultScope;const u=c.URLBuilder.parse(l.authorization_uri);const A=u.getPath().split("/");const b=A[1];const h=createTokenCycler(r,d);const g=(await h({abortSignal:i.abortSignal,tracingOptions:{tracingContext:i.tracingContext},tenantId:b})).token;a=h;i.headers.set(Fa.HeaderConstants.AUTHORIZATION,`Bearer ${g}`);return this._nextPolicy.sendRequest(i)}}return d}}return{create:(r,i)=>new StorageBearerTokenChallengeAuthenticationPolicy(r,i)}}function isPipelineLike(r){if(!r||typeof r!=="object"){return false}const i=r;return Array.isArray(i.factories)&&typeof i.options==="object"&&typeof i.toServiceClientOptions==="function"}class Pipeline{constructor(r,i={}){this.factories=r;this.options=Object.assign(Object.assign({},i),{httpClient:i.httpClient||getCachedDefaultHttpClient()})}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}}function newPipeline(r,i={}){var a;if(r===undefined){r=new AnonymousCredential}const p=new TelemetryPolicyFactory(i.userAgentOptions);const l=[c.tracingPolicy({userAgent:p.telemetryString}),c.keepAlivePolicy(i.keepAliveOptions),p,c.generateClientRequestIdPolicy(),new StorageBrowserPolicyFactory,new StorageRetryPolicyFactory(i.retryOptions),c.deserializationPolicy(undefined,{xmlCharKey:"#"}),c.logPolicy({logger:da.info,allowedHeaderNames:Ta,allowedQueryParameters:_a})];if(c.isNode){l.push(c.proxyPolicy(i.proxyOptions));l.push(c.disableResponseDecompressionPolicy())}l.push(c.isTokenCredential(r)?attachCredential(storageBearerTokenChallengeAuthenticationPolicy(r,(a=i.audience)!==null&&a!==void 0?a:Oa),r):r);return new Pipeline(l,i)}class StorageSharedKeyCredentialPolicy extends CredentialPolicy{constructor(r,i,a){super(r,i);this.factory=a}signRequest(r){r.headers.set(va.X_MS_DATE,(new Date).toUTCString());if(r.body&&(typeof r.body==="string"||r.body!==undefined)&&r.body.length>0){r.headers.set(va.CONTENT_LENGTH,Buffer.byteLength(r.body))}const i=[r.method.toUpperCase(),this.getHeaderValueToSign(r,va.CONTENT_LANGUAGE),this.getHeaderValueToSign(r,va.CONTENT_ENCODING),this.getHeaderValueToSign(r,va.CONTENT_LENGTH),this.getHeaderValueToSign(r,va.CONTENT_MD5),this.getHeaderValueToSign(r,va.CONTENT_TYPE),this.getHeaderValueToSign(r,va.DATE),this.getHeaderValueToSign(r,va.IF_MODIFIED_SINCE),this.getHeaderValueToSign(r,va.IF_MATCH),this.getHeaderValueToSign(r,va.IF_NONE_MATCH),this.getHeaderValueToSign(r,va.IF_UNMODIFIED_SINCE),this.getHeaderValueToSign(r,va.RANGE)].join("\n")+"\n"+this.getCanonicalizedHeadersString(r)+this.getCanonicalizedResourceString(r);const a=this.factory.computeHMACSHA256(i);r.headers.set(va.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${a}`);return r}getHeaderValueToSign(r,i){const a=r.headers.get(i);if(!a){return""}if(i===va.CONTENT_LENGTH&&a==="0"){return""}return a}getCanonicalizedHeadersString(r){let i=r.headers.headersArray().filter((r=>r.name.toLowerCase().startsWith(va.PREFIX_FOR_STORAGE)));i.sort(((r,i)=>r.name.toLowerCase().localeCompare(i.name.toLowerCase())));i=i.filter(((r,i,a)=>{if(i>0&&r.name.toLowerCase()===a[i-1].name.toLowerCase()){return false}return true}));let a="";i.forEach((r=>{a+=`${r.name.toLowerCase().trimRight()}:${r.value.trimLeft()}\n`}));return a}getCanonicalizedResourceString(r){const i=getURLPath(r.url)||"/";let a="";a+=`/${this.factory.accountName}${i}`;const c=getURLQueries(r.url);const p={};if(c){const r=[];for(const i in c){if(Object.prototype.hasOwnProperty.call(c,i)){const a=i.toLowerCase();p[a]=c[i];r.push(a)}}r.sort();for(const i of r){a+=`\n${i}:${decodeURIComponent(p[i])}`}}return a}}class StorageSharedKeyCredential extends Credential{constructor(r,i){super();this.accountName=r;this.accountKey=Buffer.from(i,"base64")}create(r,i){return new StorageSharedKeyCredentialPolicy(r,i,this)}computeHMACSHA256(r){return b.createHmac("sha256",this.accountKey).update(r,"utf8").digest("base64")}}const Ga="azure-storage-blob";const ja="12.18.0";class StorageClientContext extends y.ServiceClient{constructor(r,i){if(r===undefined){throw new Error("'url' cannot be null")}if(!i){i={}}if(!i.userAgent){const r=y.getDefaultUserAgentValue();i.userAgent=`${Ga}/${ja} ${r}`}super(undefined,i);this.requestContentType="application/json; charset=utf-8";this.baseUri=i.endpoint||"{url}";this.url=r;this.version=i.version||"2024-05-04"}}class StorageClient{constructor(r,i){this.url=escapeURLPath(r);this.accountName=getAccountNameFromUrl(r);this.pipeline=i;this.storageClientContext=new StorageClientContext(this.url,i.toServiceClientOptions());this.isHttps=iEqual(getURLScheme(this.url)||"","https");this.credential=new AnonymousCredential;for(const r of this.pipeline.factories){if(c.isNode&&r instanceof StorageSharedKeyCredential||r instanceof AnonymousCredential){this.credential=r}else if(c.isTokenCredential(r.credential)){this.credential=r.credential}}const a=this.storageClientContext;a.requestContentType=undefined}}const Ha=l.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function convertTracingToRequestOptionsBase(r){var i,a;return{spanOptions:(i=r===null||r===void 0?void 0:r.tracingOptions)===null||i===void 0?void 0:i.spanOptions,tracingContext:(a=r===null||r===void 0?void 0:r.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}class BlobSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false}static parse(r){const i=new BlobSASPermissions;for(const a of r){switch(a){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"x":i.deleteVersion=true;break;case"t":i.tag=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;default:throw new RangeError(`Invalid permission: ${a}`)}}return i}static from(r){const i=new BlobSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}return r.join("")}}class ContainerSASPermissions{constructor(){this.read=false;this.add=false;this.create=false;this.write=false;this.delete=false;this.deleteVersion=false;this.list=false;this.tag=false;this.move=false;this.execute=false;this.setImmutabilityPolicy=false;this.permanentDelete=false;this.filterByTags=false}static parse(r){const i=new ContainerSASPermissions;for(const a of r){switch(a){case"r":i.read=true;break;case"a":i.add=true;break;case"c":i.create=true;break;case"w":i.write=true;break;case"d":i.delete=true;break;case"l":i.list=true;break;case"t":i.tag=true;break;case"x":i.deleteVersion=true;break;case"m":i.move=true;break;case"e":i.execute=true;break;case"i":i.setImmutabilityPolicy=true;break;case"y":i.permanentDelete=true;break;case"f":i.filterByTags=true;break;default:throw new RangeError(`Invalid permission ${a}`)}}return i}static from(r){const i=new ContainerSASPermissions;if(r.read){i.read=true}if(r.add){i.add=true}if(r.create){i.create=true}if(r.write){i.write=true}if(r.delete){i.delete=true}if(r.list){i.list=true}if(r.deleteVersion){i.deleteVersion=true}if(r.tag){i.tag=true}if(r.move){i.move=true}if(r.execute){i.execute=true}if(r.setImmutabilityPolicy){i.setImmutabilityPolicy=true}if(r.permanentDelete){i.permanentDelete=true}if(r.filterByTags){i.filterByTags=true}return i}toString(){const r=[];if(this.read){r.push("r")}if(this.add){r.push("a")}if(this.create){r.push("c")}if(this.write){r.push("w")}if(this.delete){r.push("d")}if(this.deleteVersion){r.push("x")}if(this.list){r.push("l")}if(this.tag){r.push("t")}if(this.move){r.push("m")}if(this.execute){r.push("e")}if(this.setImmutabilityPolicy){r.push("i")}if(this.permanentDelete){r.push("y")}if(this.filterByTags){r.push("f")}return r.join("")}}class UserDelegationKeyCredential{constructor(r,i){this.accountName=r;this.userDelegationKey=i;this.key=Buffer.from(i.value,"base64")}computeHMACSHA256(r){return b.createHmac("sha256",this.key).update(r,"utf8").digest("base64")}}function ipRangeToString(r){return r.end?`${r.start}-${r.end}`:r.start}i.SASProtocol=void 0;(function(r){r["Https"]="https";r["HttpsAndHttp"]="https,http"})(i.SASProtocol||(i.SASProtocol={}));class SASQueryParameters{constructor(r,i,a,c,p,l,d,u,A,b,h,g,M,z,O,y,v,C,q,R){this.version=r;this.signature=i;if(a!==undefined&&typeof a!=="string"){this.permissions=a.permissions;this.services=a.services;this.resourceTypes=a.resourceTypes;this.protocol=a.protocol;this.startsOn=a.startsOn;this.expiresOn=a.expiresOn;this.ipRangeInner=a.ipRange;this.identifier=a.identifier;this.encryptionScope=a.encryptionScope;this.resource=a.resource;this.cacheControl=a.cacheControl;this.contentDisposition=a.contentDisposition;this.contentEncoding=a.contentEncoding;this.contentLanguage=a.contentLanguage;this.contentType=a.contentType;if(a.userDelegationKey){this.signedOid=a.userDelegationKey.signedObjectId;this.signedTenantId=a.userDelegationKey.signedTenantId;this.signedStartsOn=a.userDelegationKey.signedStartsOn;this.signedExpiresOn=a.userDelegationKey.signedExpiresOn;this.signedService=a.userDelegationKey.signedService;this.signedVersion=a.userDelegationKey.signedVersion;this.preauthorizedAgentObjectId=a.preauthorizedAgentObjectId;this.correlationId=a.correlationId}}else{this.services=c;this.resourceTypes=p;this.expiresOn=u;this.permissions=a;this.protocol=l;this.startsOn=d;this.ipRangeInner=A;this.encryptionScope=R;this.identifier=b;this.resource=h;this.cacheControl=g;this.contentDisposition=M;this.contentEncoding=z;this.contentLanguage=O;this.contentType=y;if(v){this.signedOid=v.signedObjectId;this.signedTenantId=v.signedTenantId;this.signedStartsOn=v.signedStartsOn;this.signedExpiresOn=v.signedExpiresOn;this.signedService=v.signedService;this.signedVersion=v.signedVersion;this.preauthorizedAgentObjectId=C;this.correlationId=q}}}get ipRange(){if(this.ipRangeInner){return{end:this.ipRangeInner.end,start:this.ipRangeInner.start}}return undefined}toString(){const r=["sv","ss","srt","spr","st","se","sip","si","ses","skoid","sktid","skt","ske","sks","skv","sr","sp","sig","rscc","rscd","rsce","rscl","rsct","saoid","scid"];const i=[];for(const a of r){switch(a){case"sv":this.tryAppendQueryParameter(i,a,this.version);break;case"ss":this.tryAppendQueryParameter(i,a,this.services);break;case"srt":this.tryAppendQueryParameter(i,a,this.resourceTypes);break;case"spr":this.tryAppendQueryParameter(i,a,this.protocol);break;case"st":this.tryAppendQueryParameter(i,a,this.startsOn?truncatedISO8061Date(this.startsOn,false):undefined);break;case"se":this.tryAppendQueryParameter(i,a,this.expiresOn?truncatedISO8061Date(this.expiresOn,false):undefined);break;case"sip":this.tryAppendQueryParameter(i,a,this.ipRange?ipRangeToString(this.ipRange):undefined);break;case"si":this.tryAppendQueryParameter(i,a,this.identifier);break;case"ses":this.tryAppendQueryParameter(i,a,this.encryptionScope);break;case"skoid":this.tryAppendQueryParameter(i,a,this.signedOid);break;case"sktid":this.tryAppendQueryParameter(i,a,this.signedTenantId);break;case"skt":this.tryAppendQueryParameter(i,a,this.signedStartsOn?truncatedISO8061Date(this.signedStartsOn,false):undefined);break;case"ske":this.tryAppendQueryParameter(i,a,this.signedExpiresOn?truncatedISO8061Date(this.signedExpiresOn,false):undefined);break;case"sks":this.tryAppendQueryParameter(i,a,this.signedService);break;case"skv":this.tryAppendQueryParameter(i,a,this.signedVersion);break;case"sr":this.tryAppendQueryParameter(i,a,this.resource);break;case"sp":this.tryAppendQueryParameter(i,a,this.permissions);break;case"sig":this.tryAppendQueryParameter(i,a,this.signature);break;case"rscc":this.tryAppendQueryParameter(i,a,this.cacheControl);break;case"rscd":this.tryAppendQueryParameter(i,a,this.contentDisposition);break;case"rsce":this.tryAppendQueryParameter(i,a,this.contentEncoding);break;case"rscl":this.tryAppendQueryParameter(i,a,this.contentLanguage);break;case"rsct":this.tryAppendQueryParameter(i,a,this.contentType);break;case"saoid":this.tryAppendQueryParameter(i,a,this.preauthorizedAgentObjectId);break;case"scid":this.tryAppendQueryParameter(i,a,this.correlationId);break}}return i.join("&")}tryAppendQueryParameter(r,i,a){if(!a){return}i=encodeURIComponent(i);a=encodeURIComponent(a);if(i.length>0&&a.length>0){r.push(`${i}=${a}`)}}}function generateBlobSASQueryParameters(r,i,a){const c=r.version?r.version:Aa;const p=i instanceof StorageSharedKeyCredential?i:undefined;let l;if(p===undefined&&a!==undefined){l=new UserDelegationKeyCredential(a,i)}if(p===undefined&&l===undefined){throw TypeError("Invalid sharedKeyCredential, userDelegationKey or accountName.")}if(c>="2020-12-06"){if(p!==undefined){return generateBlobSASQueryParameters20201206(r,p)}else{return generateBlobSASQueryParametersUDK20201206(r,l)}}if(c>="2018-11-09"){if(p!==undefined){return generateBlobSASQueryParameters20181109(r,p)}else{if(c>="2020-02-10"){return generateBlobSASQueryParametersUDK20200210(r,l)}else{return generateBlobSASQueryParametersUDK20181109(r,l)}}}if(c>="2015-04-05"){if(p!==undefined){return generateBlobSASQueryParameters20150405(r,p)}else{throw new RangeError("'version' must be >= '2018-11-09' when generating user delegation SAS using user delegation key.")}}throw new RangeError("'version' must be >= '2015-04-05'.")}function generateBlobSASQueryParameters20150405(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";if(r.blobName){a="b"}let c;if(r.permissions){if(r.blobName){c=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{c=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const p=[c?c:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const l=i.computeHMACSHA256(p);return new SASQueryParameters(r.version,l,c,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType)}function generateBlobSASQueryParameters20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.identifier&&!(r.permissions&&r.expiresOn)){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),r.identifier,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.encryptionScope,r.cacheControl?r.cacheControl:"",r.contentDisposition?r.contentDisposition:"",r.contentEncoding?r.contentEncoding:"",r.contentLanguage?r.contentLanguage:"",r.contentType?r.contentType:""].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,undefined,undefined,undefined,r.encryptionScope)}function generateBlobSASQueryParametersUDK20181109(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey)}function generateBlobSASQueryParametersUDK20200210(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId)}function generateBlobSASQueryParametersUDK20201206(r,i){r=SASSignatureValuesSanityCheckAndAutofill(r);if(!r.permissions||!r.expiresOn){throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.")}let a="c";let c=r.snapshotTime;if(r.blobName){a="b";if(r.snapshotTime){a="bs"}else if(r.versionId){a="bv";c=r.versionId}}let p;if(r.permissions){if(r.blobName){p=BlobSASPermissions.parse(r.permissions.toString()).toString()}else{p=ContainerSASPermissions.parse(r.permissions.toString()).toString()}}const l=[p?p:"",r.startsOn?truncatedISO8061Date(r.startsOn,false):"",r.expiresOn?truncatedISO8061Date(r.expiresOn,false):"",getCanonicalName(i.accountName,r.containerName,r.blobName),i.userDelegationKey.signedObjectId,i.userDelegationKey.signedTenantId,i.userDelegationKey.signedStartsOn?truncatedISO8061Date(i.userDelegationKey.signedStartsOn,false):"",i.userDelegationKey.signedExpiresOn?truncatedISO8061Date(i.userDelegationKey.signedExpiresOn,false):"",i.userDelegationKey.signedService,i.userDelegationKey.signedVersion,r.preauthorizedAgentObjectId,undefined,r.correlationId,r.ipRange?ipRangeToString(r.ipRange):"",r.protocol?r.protocol:"",r.version,a,c,r.encryptionScope,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType].join("\n");const d=i.computeHMACSHA256(l);return new SASQueryParameters(r.version,d,p,undefined,undefined,r.protocol,r.startsOn,r.expiresOn,r.ipRange,r.identifier,a,r.cacheControl,r.contentDisposition,r.contentEncoding,r.contentLanguage,r.contentType,i.userDelegationKey,r.preauthorizedAgentObjectId,r.correlationId,r.encryptionScope)}function getCanonicalName(r,i,a){const c=[`/blob/${r}/${i}`];if(a){c.push(`/${a}`)}return c.join("")}function SASSignatureValuesSanityCheckAndAutofill(r){const i=r.version?r.version:Aa;if(r.snapshotTime&&i<"2018-11-09"){throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.")}if(r.blobName===undefined&&r.snapshotTime){throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.")}if(r.versionId&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.")}if(r.blobName===undefined&&r.versionId){throw RangeError("Must provide 'blobName' when providing 'versionId'.")}if(r.permissions&&r.permissions.setImmutabilityPolicy&&i<"2020-08-04"){throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.")}if(r.permissions&&r.permissions.deleteVersion&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.")}if(r.permissions&&r.permissions.permanentDelete&&i<"2019-10-10"){throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.")}if(r.permissions&&r.permissions.tag&&i<"2019-12-12"){throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.")}if(i<"2020-02-10"&&r.permissions&&(r.permissions.move||r.permissions.execute)){throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.")}if(i<"2021-04-10"&&r.permissions&&r.permissions.filterByTags){throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.")}if(i<"2020-02-10"&&(r.preauthorizedAgentObjectId||r.correlationId)){throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.")}if(r.encryptionScope&&i<"2020-12-06"){throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.")}r.version=i;return r}class BlobLeaseClient{constructor(r,i){const a=new StorageClientContext(r.url,r.pipeline.toServiceClientOptions());this._url=r.url;if(r.name===undefined){this._isContainer=true;this._containerOrBlobOperation=new Container(a)}else{this._isContainer=false;this._containerOrBlobOperation=new Blob$1(a)}if(!i){i=c.generateUuid()}this._leaseId=i}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-acquireLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{return await this._containerOrBlobOperation.acquireLease(Object.assign({abortSignal:i.abortSignal,duration:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions}),proposedLeaseId:this._leaseId},convertTracingToRequestOptionsBase(h)))}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}async changeLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-changeLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{const a=await this._containerOrBlobOperation.changeLease(this._leaseId,r,Object.assign({abortSignal:i.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(h)));this._leaseId=r;return a}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}async releaseLease(r={}){var i,a,c,p,d,u;const{span:A,updatedOptions:b}=Ha("BlobLeaseClient-releaseLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((c=r.conditions)===null||c===void 0?void 0:c.ifNoneMatch)&&((p=r.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Ca||((d=r.conditions)===null||d===void 0?void 0:d.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.")}try{return await this._containerOrBlobOperation.releaseLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(u=r.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(b)))}catch(r){A.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async renewLease(r={}){var i,a,c,p,d,u;const{span:A,updatedOptions:b}=Ha("BlobLeaseClient-renewLease",r);if(this._isContainer&&(((i=r.conditions)===null||i===void 0?void 0:i.ifMatch)&&((a=r.conditions)===null||a===void 0?void 0:a.ifMatch)!==Ca||((c=r.conditions)===null||c===void 0?void 0:c.ifNoneMatch)&&((p=r.conditions)===null||p===void 0?void 0:p.ifNoneMatch)!==Ca||((d=r.conditions)===null||d===void 0?void 0:d.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.")}try{return await this._containerOrBlobOperation.renewLease(this._leaseId,Object.assign({abortSignal:r.abortSignal,modifiedAccessConditions:Object.assign(Object.assign({},r.conditions),{ifTags:(u=r.conditions)===null||u===void 0?void 0:u.tagConditions})},convertTracingToRequestOptionsBase(b)))}catch(r){A.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{A.end()}}async breakLease(r,i={}){var a,c,p,d,u,A;const{span:b,updatedOptions:h}=Ha("BlobLeaseClient-breakLease",i);if(this._isContainer&&(((a=i.conditions)===null||a===void 0?void 0:a.ifMatch)&&((c=i.conditions)===null||c===void 0?void 0:c.ifMatch)!==Ca||((p=i.conditions)===null||p===void 0?void 0:p.ifNoneMatch)&&((d=i.conditions)===null||d===void 0?void 0:d.ifNoneMatch)!==Ca||((u=i.conditions)===null||u===void 0?void 0:u.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.")}try{const a=Object.assign({abortSignal:i.abortSignal,breakPeriod:r,modifiedAccessConditions:Object.assign(Object.assign({},i.conditions),{ifTags:(A=i.conditions)===null||A===void 0?void 0:A.tagConditions})},convertTracingToRequestOptionsBase(h));return await this._containerOrBlobOperation.breakLease(a)}catch(r){b.setStatus({code:l.SpanStatusCode.ERROR,message:r.message});throw r}finally{b.end()}}}class RetriableReadableStream extends h.Readable{constructor(r,i,a,c,p={}){super({highWaterMark:p.highWaterMark});this.retries=0;this.sourceDataHandler=r=>{if(this.options.doInjectErrorOnce){this.options.doInjectErrorOnce=undefined;this.source.pause();this.source.removeAllListeners("data");this.source.emit("end");return}this.offset+=r.length;if(this.onProgress){this.onProgress({loadedBytes:this.offset-this.start})}if(!this.push(r)){this.source.pause()}};this.sourceErrorOrEndHandler=r=>{if(r&&r.name==="AbortError"){this.destroy(r);return}this.removeSourceEventHandlers();if(this.offset-1===this.end){this.push(null)}else if(this.offset<=this.end){if(this.retries{this.source=r;this.setSourceEventHandlers();return})).catch((r=>{this.destroy(r)}))}else{this.destroy(new Error(`Data corruption failure: received less data than required and reached maxRetires limitation. Received data offset: ${this.offset-1}, data needed offset: ${this.end}, retries: ${this.retries}, max retries: ${this.maxRetryRequests}`))}}else{this.destroy(new Error(`Data corruption failure: Received more data than original request, data needed offset is ${this.end}, received offset: ${this.offset-1}`))}};this.getter=i;this.source=r;this.start=a;this.offset=a;this.end=a+c-1;this.maxRetryRequests=p.maxRetryRequests&&p.maxRetryRequests>=0?p.maxRetryRequests:0;this.onProgress=p.onProgress;this.options=p;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)}removeSourceEventHandlers(){this.source.removeListener("data",this.sourceDataHandler);this.source.removeListener("end",this.sourceErrorOrEndHandler);this.source.removeListener("error",this.sourceErrorOrEndHandler)}_destroy(r,i){this.removeSourceEventHandlers();this.source.destroy();i(r===null?undefined:r)}}class BlobDownloadResponse{constructor(r,i,a,c,p={}){this.originalResponse=r;this.blobDownloadStream=new RetriableReadableStream(this.originalResponse.readableStreamBody,i,a,c,p)}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 c.isNode?this.blobDownloadStream:undefined}get _response(){return this.originalResponse._response}}const Xa=16;const Va=new Uint8Array([79,98,106,1]);const Ya="avro.codec";const $a="avro.schema";class AvroParser{static async readFixedBytes(r,i,a={}){const c=await r.read(i,{abortSignal:a.abortSignal});if(c.length!==i){throw new Error("Hit stream end.")}return c}static async readByte(r,i={}){const a=await AvroParser.readFixedBytes(r,1,i);return a[0]}static async readZigZagLong(r,i={}){let a=0;let c=0;let p,l,d;do{p=await AvroParser.readByte(r,i);l=p&128;a|=(p&127)<Number.MAX_SAFE_INTEGER){throw new Error("Integer overflow.")}return c}return a>>1^-(a&1)}static async readLong(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readInt(r,i={}){return AvroParser.readZigZagLong(r,i)}static async readNull(){return null}static async readBoolean(r,i={}){const a=await AvroParser.readByte(r,i);if(a===1){return true}else if(a===0){return false}else{throw new Error("Byte was not a boolean.")}}static async readFloat(r,i={}){const a=await AvroParser.readFixedBytes(r,4,i);const c=new DataView(a.buffer,a.byteOffset,a.byteLength);return c.getFloat32(0,true)}static async readDouble(r,i={}){const a=await AvroParser.readFixedBytes(r,8,i);const c=new DataView(a.buffer,a.byteOffset,a.byteLength);return c.getFloat64(0,true)}static async readBytes(r,i={}){const a=await AvroParser.readLong(r,i);if(a<0){throw new Error("Bytes size was negative.")}return r.read(a,{abortSignal:i.abortSignal})}static async readString(r,i={}){const a=await AvroParser.readBytes(r,i);const c=new TextDecoder;return c.decode(a)}static async readMapPair(r,i,a={}){const c=await AvroParser.readString(r,a);const p=await i(r,a);return{key:c,value:p}}static async readMap(r,i,a={}){const readPairMethod=(r,a={})=>AvroParser.readMapPair(r,i,a);const c=await AvroParser.readArray(r,readPairMethod,a);const p={};for(const r of c){p[r.key]=r.value}return p}static async readArray(r,i,a={}){const c=[];for(let p=await AvroParser.readLong(r,a);p!==0;p=await AvroParser.readLong(r,a)){if(p<0){await AvroParser.readLong(r,a);p=-p}while(p--){const p=await i(r,a);c.push(p)}}return c}}var Ja;(function(r){r["RECORD"]="record";r["ENUM"]="enum";r["ARRAY"]="array";r["MAP"]="map";r["UNION"]="union";r["FIXED"]="fixed"})(Ja||(Ja={}));var Ka;(function(r){r["NULL"]="null";r["BOOLEAN"]="boolean";r["INT"]="int";r["LONG"]="long";r["FLOAT"]="float";r["DOUBLE"]="double";r["BYTES"]="bytes";r["STRING"]="string"})(Ka||(Ka={}));class AvroType{static fromSchema(r){if(typeof r==="string"){return AvroType.fromStringSchema(r)}else if(Array.isArray(r)){return AvroType.fromArraySchema(r)}else{return AvroType.fromObjectSchema(r)}}static fromStringSchema(r){switch(r){case Ka.NULL:case Ka.BOOLEAN:case Ka.INT:case Ka.LONG:case Ka.FLOAT:case Ka.DOUBLE:case Ka.BYTES:case Ka.STRING:return new AvroPrimitiveType(r);default:throw new Error(`Unexpected Avro type ${r}`)}}static fromArraySchema(r){return new AvroUnionType(r.map(AvroType.fromSchema))}static fromObjectSchema(r){const i=r.type;try{return AvroType.fromStringSchema(i)}catch(r){}switch(i){case Ja.RECORD:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.name){throw new Error(`Required attribute 'name' doesn't exist on schema: ${r}`)}const a={};if(!r.fields){throw new Error(`Required attribute 'fields' doesn't exist on schema: ${r}`)}for(const i of r.fields){a[i.name]=AvroType.fromSchema(i.type)}return new AvroRecordType(a,r.name);case Ja.ENUM:if(r.aliases){throw new Error(`aliases currently is not supported, schema: ${r}`)}if(!r.symbols){throw new Error(`Required attribute 'symbols' doesn't exist on schema: ${r}`)}return new AvroEnumType(r.symbols);case Ja.MAP:if(!r.values){throw new Error(`Required attribute 'values' doesn't exist on schema: ${r}`)}return new AvroMapType(AvroType.fromSchema(r.values));case Ja.ARRAY:case Ja.FIXED:default:throw new Error(`Unexpected Avro type ${i} in ${r}`)}}}class AvroPrimitiveType extends AvroType{constructor(r){super();this._primitive=r}read(r,i={}){switch(this._primitive){case Ka.NULL:return AvroParser.readNull();case Ka.BOOLEAN:return AvroParser.readBoolean(r,i);case Ka.INT:return AvroParser.readInt(r,i);case Ka.LONG:return AvroParser.readLong(r,i);case Ka.FLOAT:return AvroParser.readFloat(r,i);case Ka.DOUBLE:return AvroParser.readDouble(r,i);case Ka.BYTES:return AvroParser.readBytes(r,i);case Ka.STRING:return AvroParser.readString(r,i);default:throw new Error("Unknown Avro Primitive")}}}class AvroEnumType extends AvroType{constructor(r){super();this._symbols=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._symbols[a]}}class AvroUnionType extends AvroType{constructor(r){super();this._types=r}async read(r,i={}){const a=await AvroParser.readInt(r,i);return this._types[a].read(r,i)}}class AvroMapType extends AvroType{constructor(r){super();this._itemType=r}read(r,i={}){const readItemMethod=(r,i)=>this._itemType.read(r,i);return AvroParser.readMap(r,readItemMethod,i)}}class AvroRecordType extends AvroType{constructor(r,i){super();this._fields=r;this._name=i}async read(r,i={}){const a={};a["$schema"]=this._name;for(const c in this._fields){if(Object.prototype.hasOwnProperty.call(this._fields,c)){a[c]=await this._fields[c].read(r,i)}}return a}}function arraysEqual(r,i){if(r===i)return true;if(r==null||i==null)return false;if(r.length!==i.length)return false;for(let a=0;a0){for(let i=0;i0}parseObjects(r={}){return p.__asyncGenerator(this,arguments,(function*parseObjects_1(){if(!this._initialized){yield p.__await(this.initialize(r))}while(this.hasNext()){const i=yield p.__await(this._itemType.read(this._dataStream,{abortSignal:r.abortSignal}));this._itemsRemainingInBlock--;this._objectIndex++;if(this._itemsRemainingInBlock===0){const i=yield p.__await(AvroParser.readFixedBytes(this._dataStream,Xa,{abortSignal:r.abortSignal}));this._blockOffset=this._initialBlockOffset+this._dataStream.position;this._objectIndex=0;if(!arraysEqual(this._syncMarker,i)){throw new Error("Stream is not a valid Avro file.")}try{this._itemsRemainingInBlock=yield p.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}catch(r){this._itemsRemainingInBlock=0}if(this._itemsRemainingInBlock>0){yield p.__await(AvroParser.readLong(this._dataStream,{abortSignal:r.abortSignal}))}}yield yield p.__await(i)}}))}}class AvroReadable{}const Za=new u.AbortError("Reading from the avro stream was aborted.");class AvroReadableFromStream extends AvroReadable{constructor(r){super();this._readable=r;this._position=0}toUint8Array(r){if(typeof r==="string"){return Buffer.from(r)}return r}get position(){return this._position}async read(r,i={}){var a;if((a=i.abortSignal)===null||a===void 0?void 0:a.aborted){throw Za}if(r<0){throw new Error(`size parameter should be positive: ${r}`)}if(r===0){return new Uint8Array}if(!this._readable.readable){throw new Error("Stream no longer readable.")}const c=this._readable.read(r);if(c){this._position+=c.length;return this.toUint8Array(c)}else{return new Promise(((a,c)=>{const cleanUp=()=>{this._readable.removeListener("readable",readableCallback);this._readable.removeListener("error",rejectCallback);this._readable.removeListener("end",rejectCallback);this._readable.removeListener("close",rejectCallback);if(i.abortSignal){i.abortSignal.removeEventListener("abort",abortHandler)}};const readableCallback=()=>{const i=this._readable.read(r);if(i){this._position+=i.length;cleanUp();a(this.toUint8Array(i))}};const rejectCallback=()=>{cleanUp();c()};const abortHandler=()=>{cleanUp();c(Za)};this._readable.on("readable",readableCallback);this._readable.once("error",rejectCallback);this._readable.once("end",rejectCallback);this._readable.once("close",rejectCallback);if(i.abortSignal){i.abortSignal.addEventListener("abort",abortHandler)}}))}}}class BlobQuickQueryStream extends h.Readable{constructor(r,i={}){super();this.avroPaused=true;this.source=r;this.onProgress=i.onProgress;this.onError=i.onError;this.avroReader=new AvroReader(new AvroReadableFromStream(this.source));this.avroIter=this.avroReader.parseObjects({abortSignal:i.abortSignal})}_read(){if(this.avroPaused){this.readInternal().catch((r=>{this.emit("error",r)}))}}async readInternal(){this.avroPaused=false;let r;do{r=await this.avroIter.next();if(r.done){break}const i=r.value;const a=i.$schema;if(typeof a!=="string"){throw Error("Missing schema in avro record.")}switch(a){case"com.microsoft.azure.storage.queryBlobContents.resultData":{const r=i.data;if(r instanceof Uint8Array===false){throw Error("Invalid data in avro result record.")}if(!this.push(Buffer.from(r))){this.avroPaused=true}}break;case"com.microsoft.azure.storage.queryBlobContents.progress":{const r=i.bytesScanned;if(typeof r!=="number"){throw Error("Invalid bytesScanned in avro progress record.")}if(this.onProgress){this.onProgress({loadedBytes:r})}}break;case"com.microsoft.azure.storage.queryBlobContents.end":if(this.onProgress){const r=i.totalBytes;if(typeof r!=="number"){throw Error("Invalid totalBytes in avro end record.")}this.onProgress({loadedBytes:r})}this.push(null);break;case"com.microsoft.azure.storage.queryBlobContents.error":if(this.onError){const r=i.fatal;if(typeof r!=="boolean"){throw Error("Invalid fatal in avro error record.")}const a=i.name;if(typeof a!=="string"){throw Error("Invalid name in avro error record.")}const c=i.description;if(typeof c!=="string"){throw Error("Invalid description in avro error record.")}const p=i.position;if(typeof p!=="number"){throw Error("Invalid position in avro error record.")}this.onError({position:p,name:a,isFatal:r,description:c})}break;default:throw Error(`Unknown schema ${a} in avro