varev=Object.create;varjs=Object.defineProperty;vartv=Object.getOwnPropertyDescriptor;varav=Object.getOwnPropertyNames;variv=Object.getPrototypeOf,rv=Object.prototype.hasOwnProperty;varfe=(t,e)=>()=>(t&&(e=t(t=0)),e);varT=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),kd=(t,e)=>{for(varaine)js(t,a,{get:e[a],enumerable:!0})},i0=(t,e,a,i)=>{if(e&&typeofe=="object"||typeofe=="function")for(letrofav(e))!rv.call(t,r)&&r!==a&&js(t,r,{get:()=>e[r],enumerable:!(i=tv(e,r))||i.enumerable});returnt};varJa=(t,e,a)=>(a=t!=null?ev(iv(t)):{},i0(e||!t||!t.__esModule?js(a,"default",{value:t,enumerable:!0}):a,t)),gn=t=>i0(js({},"__esModule",{value:!0}),t);varks=T(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.toCommandProperties=mr.toCommandValue=void0;functionnv(t){returnt==null?"":typeoft=="string"||tinstanceofString?t:JSON.stringify(t)}mr.toCommandValue=nv;functionsv(t){returnObject.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}mr.toCommandProperties=sv});varo0=T(Ut=>{"use strict";varov=Ut&&Ut.__createBinding||(Object.create?function(t,e,a,i){i===void0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){returne[a]}})}:function(t,e,a,i){i===void0&&(i=a),t[i]=e[a]}),pv=Ut&&Ut.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),dv=Ut&&Ut.__importStar||function(t){if(t&&t.__esModule)returnt;vare={};if(t!=null)for(varaint)a!=="default"&&Object.hasOwnProperty.call(t,a)&&ov(e,t,a);returnpv(e,t),e};Object.defineProperty(Ut,"__esModule",{value:!0});Ut.issue=Ut.issueCommand=void0;varlv=dv(require("os")),n0=ks();functions0(t,e,a){leti=newHd(t,e,a);process.stdout.write(i.toString()+lv.EOL)}Ut.issueCommand=s0;functioncv(t,e=""){s0(t,{},e)}Ut.issue=cv;varr0="::",Hd=class{constructor(e,a,i){e||(e="missing.command"),this.command=e,this.properties=a,this.message=i}toString(){lete=r0+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";leta=!0;for(letiinthis.properties)if(this.properties.hasOwnProperty(i)){letr=this.properties[i];r&&(a?a=!1:e+=",",e+=`${i}=${uv(r)}`)}}returne+=`${r0}${mv(this.message)}`,e}};functionmv(t){returnn0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}functionuv(t){returnn0.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}});functionyn(){returnHs>Us.length-16&&(p0.default.randomFillSync(Us),Hs=0),Us.slice(Hs,Hs+=16)}varp0,Us,Hs,Ud=fe(()=>{p0=Ja(require("crypto")),Us=newUint8Array(256),Hs=Us.length});vard0,l0=fe(()=>{d0=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i});functionfv(t){returntypeoft=="string"&&d0.test(t)}varZa,vn=fe(()=>{l0();Za=fv});functionhv(t,e=0){leta=(ut[t[e+0]]+ut[t[e+1]]+ut[t[e+2]]+ut[t[e+3]]+"-"+ut[t[e+4]]+ut[t[e+5]]+"-"+ut[t[e+6]]+ut[t[e+7]]+"-"+ut[t[e+8]]+ut[t[e+9]]+"-"+ut[t[e+10]]+ut[t[e+11]]+ut[t[e+12]]+ut[t[e+13]]+ut[t[e+14]]+ut[t[e+15]]).toLowerCase();if(!Za(a))throwTypeError("Stringified UUID is invalid");returna}varut,ei,xn=fe(()=>{vn();ut=[];for(lett=0;t<256;++t)ut.push((t+256).toString(16).substr(1));ei=hv});functiongv(t,e,a){leti=e&&a||0,r=e||newArray(16);t=t||{};letn=t.node||c0,s=t.clockseq!==void0?t.clockseq:Fd;if(n==null||s==null){letm=t.random||(t.rng||yn)();n==null&&(n=c0=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),s==null&&(s=Fd=(m[6]<<8|m[7])&16383)}leto=t.msecs!==void0?t.msecs:Date.now(),p=t.nsecs!==void0?t.nsecs:$d+1,d=o-Vd+(p-$d)/1e4;if(d<0&&t.clockseq===void0&&(s=s+1&16383),(d<0||o>Vd)&&t.nsecs===void0&&(p=0),p>=1e4)thrownewError("uuid.v1(): Can't create more than 10M uuids/sec");Vd=o,$d=p,Fd=s,o+=122192928e5;letl=((o&268435455)*1e4+p)%4294967296;r[i++]=l>>>24&255,r[i++]=l>>>16&255,r[i++]=l>>>8&255,r[i++]=l&255;letc=o/4294967296*1e4&268435455;r[i++]=c>>>8&255,r[i++]=c&255,r[i++]=c>>>24&15|16,r[i++]=c>>>16&255,r[i+
`,c.message,c.stack);var m=new Error("tunneling socket could not be established, cause="+c.message);m.code="ECONNRESET",e.request.emit("error",m),i.removeSocket(r)}};Da.prototype.removeSocket=function(e){var a=this.sockets.indexOf(e);if(a!==-1){this.sockets.splice(a,1);var i=this.requests.shift();i&&this.createSocket(i,function(r){i.request.onSocket(r)})}};function j0(t,e){var a=this;Da.prototype.createSocket.call(a,t,function(i){var r=t.request.getHeader("host"),n=Qd({},a.options,{socket:i,servername:r?r.replace(/:.*$/,""):t.host}),s=Av.connect(0,n);a.sockets[a.sockets.indexOf(i)]=s,e(s)})}function k0(t,e,a){return typeof t=="string"?{host:t,port:e,localAddress:a}:t}function Qd(t){for(var e=1,a=arguments.length;e<a;++e){var i=arguments[e];if(typeof i=="object")for(var r=Object.keys(i),n=0,s=r.length;n<s;++n){var o=r[n];i[o]!==void 0&&(t[o]=i[o])}}return t}var ti;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ti=function(){var t=Array.prototype.slice.call(arguments);typeof t[0]=="string"?t[0]="TUNNEL: "+t[0]:t.unshift("TUNNEL:"),console.error.apply(console,t)}:ti=function(){};fr.debug=ti});var Yd=T((kA,U0)=>{U0.exports=H0()});var bn=T(Se=>{"use strict";var Hv=Se&&Se.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Uv=Se&&Se.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Qs=Se&&Se.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Hv(e,t,a);return Uv(e,t),e},$e=Se&&Se.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(Se,"__esModule",{value:!0});Se.HttpClient=Se.isHttps=Se.HttpClientResponse=Se.HttpClientError=Se.getProxyUrl=Se.MediaTypes=Se.Headers=Se.HttpCodes=void 0;var $s=Qs(require("http")),Jd=Qs(require("https")),F0=Qs(M0()),Gs=Qs(Yd()),aa;(function(t){t[t.OK=200]="OK",t[t.MultipleChoices=300]="MultipleChoices",t[t.MovedPermanently=301]="MovedPermanently",t[t.ResourceMoved=302]="ResourceMoved",t[t.SeeOther=303]="SeeOther",t[t.NotModified=304]="NotModified",t[t.UseProxy=305]="UseProxy",t[t.SwitchProxy=306]="SwitchProxy",t[t.TemporaryRedirect=307]="TemporaryRedirect",t[t.PermanentRedirect=308]="PermanentRedirect",t[t.BadRequest=400]="BadRequest",t[t.Unauthorized=401]="Unauthorized",t[t.PaymentRequired=402]="PaymentRequired",t[t.Forbidden=403]="Forbidden",t[t.NotFound=404]="NotFound",t[t.MethodNotAllowed=405]="MethodNotAllowed",t[t.NotAcceptable=406]="NotAcceptable",t[t.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",t[t.RequestTimeout=408]="RequestTimeout",t[t.Conflict=409]="Conflict",t[t.Gone=410]="Gone",t[t.TooManyRequests=429]="TooManyRequests",t[t.InternalServerError=500]="InternalServerError",t[t.NotImplemented=501]="NotImplemented",t[t.BadGateway=502]="BadGateway",t[t.ServiceUnavailable=503]="ServiceUnavailable",t[t.GatewayTimeout=504]="GatewayTimeout"})(aa=Se.HttpCodes||(Se.HttpCodes={}));var Nt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Nt=Se.Headers||(Se.Headers={}));var ai;(function(t){t.ApplicationJson="application/json"})(ai=Se.MediaTypes||(Se.MediaTypes={}));function Fv(t){let e=F0.getProxyUrl(new URL(t));return e?e.href:""}Se.getProxyUrl=Fv;var Vv=[aa.MovedPermanently,aa.ResourceMoved,aa.SeeOther,aa.TemporaryRedirect,aa.PermanentRedirect],$v=[aa.BadGateway,aa.ServiceUnavailable,aa.GatewayTimeout],Gv=["OPTIONS","GET","DELETE","HEAD"],Xv=10,Kv=5,Ks=class t extends Error{constructor(e,a){super(e),this.name="HttpClientError",this.statusCode=a,Object.setPrototypeOf(this,t.prototype)}};Se.HttpClientError=Ks;var Ws=class{constructor(e){this.message=e}readBody(){return $e
globstarwhile`,t,l,e,c,m),this.matchOne(t.slice(l),e.slice(c),a))return this.debug("globstar found match!",l,s,m),!0;if(m==="."||m===".."||!i.dot&&m.charAt(0)==="."){this.debug("dot detected!",t,l,e,c);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(a&&(this.debug(`
>>>nomatch,partial?`,t,l,e,c),l===s))}var u;if(typeof p=="string"?(u=d===p,this.debug("string match",p,d,u)):(u=d.match(p),this.debug("pattern match",p,d,u)),!u)return!1}if(r===s&&n===o)return!0;if(r===s)return a;if(n===o)return r===s-1&&t[r]==="";throw new Error("wtf?")};function Hb(t){return t.replace(/\\(.)/g,"$1")}function Ub(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var $2=T($t=>{"use strict";var Fb=$t&&$t.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Vb=$t&&$t.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),V2=$t&&$t.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Fb(e,t,a);return Vb(e,t),e},$b=$t&&$t.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($t,"__esModule",{value:!0});$t.Path=void 0;var Sn=V2(require("path")),si=V2(ao()),En=$b(require("assert")),Gb=process.platform==="win32",Cl=class{constructor(e){if(this.segments=[],typeof e=="string")if(En.default(e,"Parameter 'itemPath' must not be empty"),e=si.safeTrimTrailingSeparator(e),!si.hasRoot(e))this.segments=e.split(Sn.sep);else{let a=e,i=si.dirname(a);for(;i!==a;){let r=Sn.basename(a);this.segments.unshift(r),a=i,i=si.dirname(a)}this.segments.unshift(a)}else{En.default(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let a=0;a<e.length;a++){let i=e[a];En.default(i,"Parameter 'itemPath' must not contain any empty segments"),i=si.normalizeSeparators(e[a]),a===0&&si.hasRoot(i)?(i=si.safeTrimTrailingSeparator(i),En.default(i===si.dirname(i),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(i)):(En.default(!i.includes(Sn.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(i))}}}toString(){let e=this.segments[0],a=e.endsWith(Sn.sep)||Gb&&/^[A-Z]:$/i.test(e);for(let i=1;i<this.segments.length;i++)a?a=!1:e+=Sn.sep,e+=this.segments[i];return e}};$t.Path=Cl});var G2=T(Gt=>{"use strict";var Xb=Gt&&Gt.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a),Object.defineProperty(t,i,{enumerable:!0,get:function(){return e[a]}})}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),Kb=Gt&&Gt.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Ol=Gt&&Gt.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.hasOwnProperty.call(t,a)&&Xb(e,t,a);return Kb(e,t),e},Wb=Gt&&Gt.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.Pattern=void 0;var Qb=Ol(require("os")),Cn=Ol(require("path")),Dt=Ol(ao()),Mi=Wb(require("assert")),Yb=F2(),Tl=io(),so=$2(),Ia=process.platform==="win32",Pl=class t{constructor(e,a=!1,i,r){this.negate=!1;let n;if(typeof e=="string")n=e.trim();else{i=i||[],Mi.default(i.length,"Parameter 'segments' must not empty");let d=t.getLiteral(i[0]);Mi.default(d&&Dt.hasAbsoluteRoot(d),"Parameter 'segments' first element must be a root path"),n=new so.Path(i).toString().trim(),e&&(n=`!${n}`)}for(;n.startsWith("!");)this.negate=!this.negate,n=n.substr(1).trim();n=t.fixupPattern(n,r),this.segments=new so.Path(n).segments,this.trailingSeparator=Dt.normalizeSeparators(n).endsWith(Cn.sep),n=Dt.safeTrimTrailingSeparator(n);let s=!1,o=this.segments.map(d=>t.getLiteral(d)).filter(d=>!s&&!(s=d===""));this.searchPath=new so.Path(o).toString(),this.rootRegExp=new RegExp(t.regExpEscape(o[0]),Ia?"i":""),this.isImplicitPattern=a;let p={dot:!0,nobrace:!0,nocase:Ia,nocomment:!0,noext:!0,nonegate:!0};n=Ia?n.replace(/\\/g,"/"):n,this.minimatch=new Yb.Minimatch(n,p)}match(e){return this.segments[this.segments.length-1]==="**"?(e=Dt.normalizeSeparators(e),!e.endsWith(Cn.sep)&&this.isImplicitPattern===!1&&(e=`
`},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}).call(ac)});var xa=T((m6,ci)=>{(function(){var t,e,a,i,r,n,s,o=[].slice,p={}.hasOwnProperty;t=function(){var d,l,c,m,u,h;if(h=arguments[0],u=2<=arguments.length?o.call(arguments,1):[],r(Object.assign))Object.assign.apply(null,arguments);else for(d=0,c=u.length;d<c;d++)if(m=u[d],m!=null)for(l in m)p.call(m,l)&&(h[l]=m[l]);return h},r=function(d){return!!d&&Object.prototype.toString.call(d)==="[object Function]"},n=function(d){var l;return!!d&&((l=typeof d)=="function"||l==="object")},a=function(d){return r(Array.isArray)?Array.isArray(d):Object.prototype.toString.call(d)==="[object Array]"},i=function(d){var l;if(a(d))return!d.length;for(l in d)if(p.call(d,l))return!1;return!0},s=function(d){var l,c;return n(d)&&(c=Object.getPrototypeOf(d))&&(l=c.constructor)&&typeof l=="function"&&l instanceof l&&Function.prototype.toString.call(l)===Function.prototype.toString.call(Object)},e=function(d){return r(d.valueOf)?d.valueOf():d},ci.exports.assign=t,ci.exports.isFunction=r,ci.exports.isObject=n,ci.exports.isArray=a,ci.exports.isEmpty=i,ci.exports.isPlainObject=s,ci.exports.getValue=e}).call(m6)});var ic=T((u6,f6)=>{(function(){var t;f6.exports=t=function(){function e(){}return e.prototype.hasFeature=function(a,i){return!0},e.prototype.createDocumentType=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createDocument=function(a,i,r){throw new Error("This DOM method is not implemented.")},e.prototype.createHTMLDocument=function(a){throw new Error("This DOM method is not implemented.")},e.prototype.getFeature=function(a,i){throw new Error("This DOM method is not implemented.")},e}()}).call(u6)});var y6=T((h6,g6)=>{(function(){var t;g6.exports=t=function(){function e(){}return e.prototype.handleError=function(a){throw new Error(a)},e}()}).call(h6)});var b6=T((v6,x6)=>{(function(){var t;x6.exports=t=function(){function e(a){this.arr=a||[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.arr.length}}),e.prototype.item=function(a){return this.arr[a]||null},e.prototype.contains=function(a){return this.arr.indexOf(a)!==-1},e}()}).call(v6)});var _6=T((N6,w6)=>{(function(){var t,e,a;e=y6(),a=b6(),w6.exports=t=function(){function i(){var r;this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=r=Object.create(this.defaultParams)}return Object.defineProperty(i.prototype,"parameterNames",{get:function(){return new a(Object.keys(this.defaultParams))}}),i.prototype.getParameter=function(r){return this.params.hasOwnProperty(r)?this.params[r]:null},i.prototype.canSetParameter=function(r,n){return!0},i.prototype.setParameter=function(r,n){return n!=null?this.params[r]=n:delete this.params[r]},i}()}).call(N6)});var Ge=T((S6,E6)=>{(function(){E6.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(S6)});var rc=T((C6,T6)=>{(function(){var t,e,a;t=Ge(),a=qt(),T6.exports=e=function(){function i(r,n,s){if(this.parent=r,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw new Error("Missing attribute name. "+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(s),this.type=t.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(i.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(i.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(i.prototype,"textContent",{get:function(){return this.value},set:function(r){return this.value=r||""}}),Object.defin
`?(y.line++,y.column=0):y.column++);y.textNode+=x.substring(_e,z-1)}P==="<"&&!(y.sawRoot&&y.closedRoot&&!y.strict)?(y.state=N.OPEN_WAKA,y.startTagPosition=y.position):(!b(P)&&(!y.sawRoot||y.closedRoot)&&W(y,"Text data outside of root node."),P==="&"?y.state=N.TEXT_ENTITY:y.textNode+=P);continue;case N.SCRIPT:P==="<"?y.state=N.SCRIPT_ENDING:y.script+=P;continue;case N.SCRIPT_ENDING:P==="/"?y.state=N.CLOSE_TAG:(y.script+="<"+P,y.state=N.SCRIPT);continue;case N.OPEN_WAKA:if(P==="!")y.state=N.SGML_DECL,y.sgmlDecl="";else if(!b(P))if(w(v,P))y.state=N.OPEN_TAG,y.tagName=P;else if(P==="/")y.state=N.CLOSE_TAG,y.tagName="";else if(P==="?")y.state=N.PROC_INST,y.procInstName=y.procInstBody="";else{if(W(y,"Unencoded <"),y.startTagPosition+1<y.position){var Qe=y.position-y.startTagPosition;P=new Array(Qe).join(" ")+P}y.textNode+="<"+P,y.state=N.TEXT}continue;case N.SGML_DECL:(y.sgmlDecl+P).toUpperCase()===l?(O(y,"onopencdata"),y.state=N.CDATA,y.sgmlDecl="",y.cdata=""):y.sgmlDecl+P==="--"?(y.state=N.COMMENT,y.comment="",y.sgmlDecl=""):(y.sgmlDecl+P).toUpperCase()===c?(y.state=N.DOCTYPE,(y.doctype||y.sawRoot)&&W(y,"Inappropriately located doctype declaration"),y.doctype="",y.sgmlDecl=""):P===">"?(O(y,"onsgmldeclaration",y.sgmlDecl),y.sgmlDecl="",y.state=N.TEXT):(g(P)&&(y.state=N.SGML_DECL_QUOTED),y.sgmlDecl+=P);continue;case N.SGML_DECL_QUOTED:P===y.q&&(y.state=N.SGML_DECL,y.q=""),y.sgmlDecl+=P;continue;case N.DOCTYPE:P===">"?(y.state=N.TEXT,O(y,"ondoctype",y.doctype),y.doctype=!0):(y.doctype+=P,P==="["?y.state=N.DOCTYPE_DTD:g(P)&&(y.state=N.DOCTYPE_QUOTED,y.q=P));continue;case N.DOCTYPE_QUOTED:y.doctype+=P,P===y.q&&(y.q="",y.state=N.DOCTYPE);continue;case N.DOCTYPE_DTD:y.doctype+=P,P==="]"?y.state=N.DOCTYPE:g(P)&&(y.state=N.DOCTYPE_DTD_QUOTED,y.q=P);continue;case N.DOCTYPE_DTD_QUOTED:y.doctype+=P,P===y.q&&(y.state=N.DOCTYPE_DTD,y.q="");continue;case N.COMMENT:P==="-"?y.state=N.COMMENT_ENDING:y.comment+=P;continue;case N.COMMENT_ENDING:P==="-"?(y.state=N.COMMENT_ENDED,y.comment=j(y.opt,y.comment),y.comment&&O(y,"oncomment",y.comment),y.comment=""):(y.comment+="-"+P,y.state=N.COMMENT);continue;case N.COMMENT_ENDED:P!==">"?(W(y,"Malformed comment"),y.comment+="--"+P,y.state=N.COMMENT):y.state=N.TEXT;continue;case N.CDATA:P==="]"?y.state=N.CDATA_ENDING:y.cdata+=P;continue;case N.CDATA_ENDING:P==="]"?y.state=N.CDATA_ENDING_2:(y.cdata+="]"+P,y.state=N.CDATA);continue;case N.CDATA_ENDING_2:P===">"?(y.cdata&&O(y,"oncdata",y.cdata),O(y,"onclosecdata"),y.cdata="",y.state=N.TEXT):P==="]"?y.cdata+="]":(y.cdata+="]]"+P,y.state=N.CDATA);continue;case N.PROC_INST:P==="?"?y.state=N.PROC_INST_ENDING:b(P)?y.state=N.PROC_INST_BODY:y.procInstName+=P;continue;case N.PROC_INST_BODY:if(!y.procInstBody&&b(P))continue;P==="?"?y.state=N.PROC_INST_ENDING:y.procInstBody+=P;continue;case N.PROC_INST_ENDING:P===">"?(O(y,"onprocessinginstruction",{name:y.procInstName,body:y.procInstBody}),y.procInstName=y.procInstBody="",y.state=N.TEXT):(y.procInstBody+="?"+P,y.state=N.PROC_INST_BODY);continue;case N.OPEN_TAG:w(E,P)?y.tagName+=P:(Ve(y),P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:(b(P)||W(y,"Invalid character in tag name"),y.state=N.ATTRIB));continue;case N.OPEN_TAG_SLASH:P===">"?(_t(y,!0),lr(y)):(W(y,"Forward-slash in opening tag not followed by >"),y.state=N.ATTRIB);continue;case N.ATTRIB:if(b(P))continue;P===">"?_t(y):P==="/"?y.state=N.OPEN_TAG_SLASH:w(v,P)?(y.attribName=P,y.attribValue="",y.state=N.ATTRIB_NAME):W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME:P==="="?y.state=N.ATTRIB_VALUE:P===">"?(W(y,"Attribute without value"),y.attribValue=y.attribName,ta(y),_t(y)):b(P)?y.state=N.ATTRIB_NAME_SAW_WHITE:w(E,P)?y.attribName+=P:W(y,"Invalid attribute name");continue;case N.ATTRIB_NAME_SAW_WHITE:if(P==="=")y.state=N.ATTRIB_VALUE;else{if(b(P))continue;W(y,"Attribute without value"),y.tag.attributes[y.attribName]="",y.attribValue="",O(y,"onattribute",{name:y.attribName,value:""}),y.attribName="",P===">"?_t(y):w(v,P)?(y.attribName=P,y.state=N.ATTRIB_NAME):(W(y,"Invalid attribute name"),y.state=N.ATTRIB)}continue;case N.ATTRIB_VALUE:if(b(P))continue;g(P)?
`;me.DEFAULT_CONTENT_TYPE="application/octet-stream";me.prototype.append=function(t,e,a){a=a||{},typeof a=="string"&&(a={filename:a});var i=jc.prototype.append.bind(this);if(typeof e=="number"&&(e=""+e),Rh.isArray(e)){this._error(new Error("Arrays are not supported."));return}var r=this._multiPartHeader(t,e,a),n=this._multiPartFooter();i(r),i(e),i(n),this._trackLength(r,e,a)};me.prototype._trackLength=function(t,e,a){var i=0;a.knownLength!=null?i+=+a.knownLength:Buffer.isBuffer(e)?i=e.length:typeof e=="string"&&(i=Buffer.byteLength(e)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(t)+me.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&e.hasOwnProperty("httpVersion"))&&!(e instanceof aS))&&(a.knownLength||this._valuesToMeasure.push(e))};me.prototype._lengthRetriever=function(t,e){t.hasOwnProperty("fd")?t.end!=null&&t.end!=1/0&&t.start!=null?e(null,t.end+1-(t.start?t.start:0)):tS.stat(t.path,function(a,i){var r;if(a){e(a);return}r=i.size-(t.start?t.start:0),e(null,r)}):t.hasOwnProperty("httpVersion")?e(null,+t.headers["content-length"]):t.hasOwnProperty("httpModule")?(t.on("response",function(a){t.pause(),e(null,+a.headers["content-length"])}),t.resume()):e("Unknown stream")};me.prototype._multiPartHeader=function(t,e,a){if(typeof a.header=="string")return a.header;var i=this._getContentDisposition(e,a),r=this._getContentType(e,a),n="",s={"Content-Disposition":["form-data",'name="'+t+'"'].concat(i||[]),"Content-Type":[].concat(r||[])};typeof a.header=="object"&&Lc(s,a.header);var o;for(var p in s)s.hasOwnProperty(p)&&(o=s[p],o!=null&&(Array.isArray(o)||(o=[o]),o.length&&(n+=p+": "+o.join("; ")+me.LINE_BREAK)));return"--"+this.getBoundary()+me.LINE_BREAK+n+me.LINE_BREAK};me.prototype._getContentDisposition=function(t,e){var a,i;return typeof e.filepath=="string"?a=qc.normalize(e.filepath).replace(/\\/g,"/"):e.filename||t.name||t.path?a=qc.basename(e.filename||t.name||t.path):t.readable&&t.hasOwnProperty("httpVersion")&&(a=qc.basename(t.client._httpMessage.path||"")),a&&(i='filename="'+a+'"'),i};me.prototype._getContentType=function(t,e){var a=e.contentType;return!a&&t.name&&(a=Mc.lookup(t.name)),!a&&t.path&&(a=Mc.lookup(t.path)),!a&&t.readable&&t.hasOwnProperty("httpVersion")&&(a=t.headers["content-type"]),!a&&(e.filepath||e.filename)&&(a=Mc.lookup(e.filepath||e.filename)),!a&&typeof t=="object"&&(a=me.DEFAULT_CONTENT_TYPE),a};me.prototype._multiPartFooter=function(){return function(t){var e=me.LINE_BREAK,a=this._streams.length===0;a&&(e+=this._lastBoundary()),t(e)}.bind(this)};me.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+me.LINE_BREAK};me.prototype.getHeaders=function(t){var e,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in t)t.hasOwnProperty(e)&&(a[e.toLowerCase()]=t[e]);return a};me.prototype.setBoundary=function(t){this._boundary=t};me.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};me.prototype.getBuffer=function(){for(var t=new Buffer.alloc(0),e=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)typeof this._streams[a]!="function"&&(Buffer.isBuffer(this._streams[a])?t=Buffer.concat([t,this._streams[a]]):t=Buffer.concat([t,Buffer.from(this._streams[a])]),(typeof this._streams[a]!="string"||this._streams[a].substring(2,e.length+2)!==e)&&(t=Buffer.concat([t,Buffer.from(me.LINE_BREAK)])));return Buffer.concat([t,Buffer.from(this._lastBoundary())])};me.prototype._generateBoundary=function(){for(var t="--------------------------",e=0;e<24;e++)t+=Math.floor(Math.random()*10).toString(16);this._boundary=t};me.prototype.getLengthSync=function(){var t=this._overheadLength+this._valueLength;return this._streams.length&&(t+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),t};me.prototype.hasKnownLength=function(){var t=!0;return this._valuesToMeasure.length&&(t=!1),t};me.prototype.getLength=function(t){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.l
${QT.sanitize(this)}`}};Lt.REQUEST_SEND_ERROR="REQUEST_SEND_ERROR";Lt.PARSE_ERROR="PARSE_ERROR";var da=KC.createClientLogger("core-http");function D9(t,e){return t?e.httpsAgent:e.httpAgent}var Wp=class extends ZC.Transform{constructor(e){super(),this.progressCallback=e,this.loadedBytes=0}_transform(e,a,i){this.push(e),this.loadedBytes+=e.length,this.progressCallback({loadedBytes:this.loadedBytes}),i(void 0)}};function Up(t){return t&&typeof t.pipe=="function"}function I9(t,e){return new Promise(a=>{t.once("close",()=>{e?.abort(),a()}),t.once("end",a),t.once("error",a)})}function YT(t){let e=new bi;return t.forEach((a,i)=>{e.set(i,a)}),e}var Qp=class{constructor(){this.proxyAgentMap=new Map,this.keepAliveAgents={}}async sendRequest(e){var a;if(!e&&typeof e!="object")throw new Error("'httpRequest' (WebResourceLike) cannot be null or undefined and must be of type object.");let i=new Fp.AbortController,r;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fp.AbortError("The operation was aborted.");r=d=>{d.type==="abort"&&i.abort()},e.abortSignal.addEventListener("abort",r)}if(e.timeout&&setTimeout(()=>{i.abort()},e.timeout),e.formData){let d=e.formData,l=new aT.default,c=(u,h)=>{typeof h=="function"&&(h=h()),h&&Object.prototype.hasOwnProperty.call(h,"value")&&Object.prototype.hasOwnProperty.call(h,"options")?l.append(u,h.value,h.options):l.append(u,h)};for(let u of Object.keys(d)){let h=d[u];if(Array.isArray(h))for(let v=0;v<h.length;v++)c(u,h[v]);else c(u,h)}e.body=l,e.formData=void 0;let m=e.headers.get("Content-Type");m&&m.indexOf("multipart/form-data")!==-1&&(typeof l.getBoundary=="function"?e.headers.set("Content-Type",`multipart/form-data;boundary=${l.getBoundary()}`):e.headers.remove("Content-Type"))}let n=e.body?typeof e.body=="function"?e.body():e.body:void 0;if(e.onUploadProgress&&e.body){let d=e.onUploadProgress,l=new Wp(d);Up(n)?n.pipe(l):l.end(n),n=l}let s=await this.prepareRequest(e),o=Object.assign({body:n,headers:e.headers.rawHeaders(),method:e.method,signal:i.signal,redirect:"manual"},s),p;try{let d=await this.fetch(e.url,o),l=YT(d.headers),c=((a=e.streamResponseStatusCodes)===null||a===void 0?void 0:a.has(d.status))||e.streamResponseBody;p={headers:l,request:e,status:d.status,readableStreamBody:c?d.body:void 0,bodyAsText:c?void 0:await d.text()};let m=e.onDownloadProgress;if(m){let u=d.body||void 0;if(Up(u)){let h=new Wp(m);u.pipe(h),p.readableStreamBody=h}else{let h=parseInt(l.get("Content-Length"))||void 0;h&&m({loadedBytes:h})}}return await this.processRequest(p),p}catch(d){let l=d;throw l.code==="ENOTFOUND"?new Lt(l.message,Lt.REQUEST_SEND_ERROR,void 0,e):l.type==="aborted"?new Fp.AbortError("The operation was aborted."):l}finally{if(e.abortSignal&&r){let d=Promise.resolve();Up(n)&&(d=I9(n));let l=Promise.resolve();Up(p?.readableStreamBody)&&(l=I9(p.readableStreamBody,i)),Promise.all([d,l]).then(()=>{var c;(c=e.abortSignal)===null||c===void 0||c.removeEventListener("abort",r)}).catch(c=>{da.warning("Error when cleaning up abortListener on httpRequest",c)})}}}getOrCreateAgent(e){var a;let i=Km(e.url);if(e.proxySettings){let{host:r,port:n,username:s,password:o}=e.proxySettings,p=`${r}:${n}:${s}:${o}`,d=(a=this.proxyAgentMap.get(p))!==null&&a!==void 0?a:{},l=D9(i,d);if(l)return l;let c=GT(e.url,e.proxySettings,e.headers);return l=c.agent,c.isHttps?d.httpsAgent=c.agent:d.httpAgent=c.agent,this.proxyAgentMap.set(p,d),l}else if(e.keepAlive){let r=D9(i,this.keepAliveAgents);if(r)return r;let n={keepAlive:e.keepAlive};return i?r=this.keepAliveAgents.httpsAgent=new C9.Agent(n):r=this.keepAliveAgents.httpAgent=new E9.Agent(n),r}else return i?C9.globalAgent:E9.globalAgent}async fetch(e,a){return iT.default(e,a)}async prepareRequest(e){let a={};return a.agent=this.getOrCreateAgent(e),a.compress=e.decompressResponse,a}async processRequest(e){}};U.HttpPipelineLogLevel=void 0;(function(t){t[t.OFF=0]="OFF",t[t.ERROR=1]="ERROR",t[t.WARNING=2]="WARNING",t[t.INFO=3]="INFO"})(U.HttpPipelineLogLevel||(U.HttpPipelineLogLevel={}));function JT(t){let{requestOptions:e,tracingOptions:a}=t,r=GC.__rest(t,["requestOptions","tr
Pollingstatus:${C5.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let c=s(d,a);if(c!==void 0)return{response:await e(c).catch(S5({state:a,stateProxy:i,isOperationError:o})),status:l}}return{response:d,status:l}}async function R5(t){let{poll:e,state:a,stateProxy:i,options:r,getOperationStatus:n,getResourceLocation:s,getOperationLocation:o,isOperationError:p,withOperationLocation:d,getPollingInterval:l,processResult:c,getError:m,updateState:u,setDelay:h,isDone:v,setErrorAsResult:E}=t,{operationLocation:S}=a.config;if(S!==void 0){let{response:R,status:b}=await $P({poll:e,getOperationStatus:n,state:a,stateProxy:i,operationLocation:S,getResourceLocation:s,isOperationError:p,options:r});if(P5({status:b,response:R,state:a,stateProxy:i,isDone:v,processResult:c,getError:m,setErrorAsResult:E}),!C5.includes(b)){let g=l?.(R);g&&h(g);let f=o?.(R,a);if(f!==void 0){let w=S!==f;a.config.operationLocation=f,d?.(f,w)}else d?.(S,!1)}u?.(a,R)}}function D5(t){let{azureAsyncOperation:e,operationLocation:a}=t;return a??e}function I5(t){return t.headers.location}function B5(t){return t.headers["operation-location"]}function A5(t){return t.headers["azure-asyncoperation"]}function GP(t){var e;let{location:a,requestMethod:i,requestPath:r,resourceLocationConfig:n}=t;switch(i){case"PUT":return r;case"DELETE":return;case"PATCH":return(e=s())!==null&&e!==void 0?e:r;default:return s()}function s(){switch(n){case"azure-async-operation":return;case"original-uri":return r;case"location":default:return a}}}function z5(t){let{rawResponse:e,requestMethod:a,requestPath:i,resourceLocationConfig:r}=t,n=B5(e),s=A5(e),o=D5({operationLocation:n,azureAsyncOperation:s}),p=I5(e),d=a?.toLocaleUpperCase();return o!==void 0?{mode:"OperationLocation",operationLocation:o,resourceLocation:GP({requestMethod:d,location:p,requestPath:i,resourceLocationConfig:r})}:p!==void 0?{mode:"ResourceLocation",operationLocation:p}:d==="PUT"&&i?{mode:"Body",operationLocation:i}:void 0}function q5(t){let{status:e,statusCode:a}=t;if(typeof e!="string"&&e!==void 0)throw new Error(`Pollingwasunsuccessful.Expectedstatustohaveastringvalueornovaluebutithasinstead:${e}.Thisdoesn't necessarily indicate the operation has failed. Check your Azure subscription or resource status for more information.`);switch(e?.toLocaleLowerCase()){case void 0:return A1(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:return Ji.verbose(`LRO: unrecognized operation status: ${e}`),e}}function XP(t){var e;let{status:a}=(e=t.body)!==null&&e!==void 0?e:{};return q5({status:a,statusCode:t.statusCode})}function KP(t){var e,a;let{properties:i,provisioningState:r}=(e=t.body)!==null&&e!==void 0?e:{},n=(a=i?.provisioningState)!==null&&a!==void 0?a:r;return q5({status:n,statusCode:t.statusCode})}function A1(t){return t===202?"running":t<300?"succeeded":"failed"}function M5({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let a=parseInt(e);return isNaN(a)?WP(new Date(e)):a*1e3}}function L5(t){let e=t.flatResponse.error;if(!e){Ji.warning("The long-running operation failed but there is no error property in the response'sbody");return}if(!e.code||!e.message){Ji.warning("Thelong-runningoperationfailedbuttheerrorpropertyintheresponse's body doesn'tcontaincodeormessage");return}return e}function WP(t){let e=Math.floor(new Date().getTime()),a=t.getTime();if(e<a)return a-e}function j5(t){let{response:e,state:a,operationLocation:i}=t;function r(){var s;switch((s=a.config.metadata)===null||s===void 0?void 0:s.mode){case void 0:return A1(e.rawResponse.statusCode);case"Body":return z1(e,a);default:return"running"}}let n=r();return n==="running"&&i===void 0?"succeeded":n}asyncfunctionQP(t){let{stateProxy:e,resourceLocationConfig:a,processResult:i,lro:r,setErrorAsResult:n}=t;returnO5({init:async()=>{lets=awaitr.sendInitialRequest(),o=z5({rawResponse:s.rawResponse,requestPath:r.requestPath,requestMethod:r.requestMethod,re
`,Sy="HTTP/1.1",JD="AES256",ZD="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",eI=["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"],tI=["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"],aI="BlobUsesCustomerSpecifiedEncryption",iI="BlobDoesNotUseCustomerSpecifiedEncryption",rI=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function nI(t){let e=q.URLBuilder.parse(t),a=e.getPath();return a=a||"/",a=oI(a),e.setPath(a),e.toString()}function sI(t){let e="";if(t.search("DevelopmentStorageProxyUri=")!==-1){let a=t.split(";");for(let i of a)i.trim().startsWith("DevelopmentStorageProxyUri=")&&(e=i.trim().match("DevelopmentStorageProxyUri=(.*)")[1])}return e}function Fr(t,e){let a=t.split(";");for(let i of a)if(i.trim().startsWith(e))return i.trim().match(e+"=(.*)")[1];return""}function ln(t){let e="";t.startsWith("UseDevelopmentStorage=true")&&(e=sI(t),t=ZD);let a=Fr(t,"BlobEndpoint");if(a=a.endsWith("/")?a.slice(0,-1):a,t.search("DefaultEndpointsProtocol=")!==-1&&t.search("AccountKey=")!==-1){let i="",r="",n=Buffer.from("accountKey","base64"),s="";if(r=Fr(t,"AccountName"),n=Buffer.from(Fr(t,"AccountKey"),"base64"),!a){i=Fr(t,"DefaultEndpointsProtocol");let o=i.toLowerCase();if(o!=="https"&&o!=="http")throw new Error("Invalid DefaultEndpointsProtocol in the provided Connection String. Expecting 'https' or 'http'");if(s=Fr(t,"EndpointSuffix"),!s)throw new Error("Invalid EndpointSuffix in the provided Connection String");a=`${i}://${r}.blob.${s}`}if(r){if(n.length===0)throw new Error("Invalid AccountKey in the provided Connection String")}else t
`}),i}getCanonicalizedResourceString(e){let a=ju(e.url)||"/",i="";i+=`/${this.factory.accountName}${a}`;let r=cI(e.url),n={};if(r){let s=[];for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let p=o.toLowerCase();n[p]=r[o],s.push(p)}s.sort();for(let o of s)i+=`
${o}:${decodeURIComponent(n[o])}`}return i}},Ue=class extends bs{constructor(e,a){super(),this.accountName=e,this.accountKey=Buffer.from(a,"base64")}create(e,a){return new vd(e,a,this)}computeHMACSHA256(e){return i8.createHmac("sha256",this.accountKey).update(e,"utf8").digest("base64")}},CI="azure-storage-blob",TI="12.15.0",ws=class extends H.ServiceClient{constructor(e,a){if(e===void 0)throw new Error("'url' cannot be null");if(a||(a={}),!a.userAgent){let i=H.getDefaultUserAgentValue();a.userAgent=`${CI}/${TI}${i}`}super(void 0,a),this.requestContentType="application/json; charset=utf-8",this.baseUri=a.endpoint||"{url}",this.url=e,this.version=a.version||"2023-01-03"}},_s=class{constructor(e,a){this.url=nI(e),this.accountName=Cy(e),this.pipeline=a,this.storageClientContext=new ws(this.url,a.toServiceClientOptions()),this.isHttps=Ey(dI(this.url)||"","https"),this.credential=new Ee;for(let r of this.pipeline.factories)q.isNode&&r instanceof Ue||r instanceof Ee?this.credential=r:q.isTokenCredential(r.credential)&&(this.credential=r.credential);let i=this.storageClientContext;i.requestContentType=void 0}},L=M.createSpanFunction({packagePrefix:"Azure.Storage.Blob",namespace:"Microsoft.Storage"});function G(t){var e,a;return{spanOptions:(e=t?.tracingOptions)===null||e===void 0?void 0:e.spanOptions,tracingContext:(a=t?.tracingOptions)===null||a===void 0?void 0:a.tracingContext}}var $a=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"x":a.deleteVersion=!0;break;case"t":a.tag=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;default:throw new RangeError(`Invalidpermission:${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execute&&e.push("e"),this.setImmutabilityPolicy&&e.push("i"),this.permanentDelete&&e.push("y"),e.join("")}},Ga=class t{constructor(){this.read=!1,this.add=!1,this.create=!1,this.write=!1,this.delete=!1,this.deleteVersion=!1,this.list=!1,this.tag=!1,this.move=!1,this.execute=!1,this.setImmutabilityPolicy=!1,this.permanentDelete=!1,this.filterByTags=!1}static parse(e){let a=new t;for(let i of e)switch(i){case"r":a.read=!0;break;case"a":a.add=!0;break;case"c":a.create=!0;break;case"w":a.write=!0;break;case"d":a.delete=!0;break;case"l":a.list=!0;break;case"t":a.tag=!0;break;case"x":a.deleteVersion=!0;break;case"m":a.move=!0;break;case"e":a.execute=!0;break;case"i":a.setImmutabilityPolicy=!0;break;case"y":a.permanentDelete=!0;break;case"f":a.filterByTags=!0;break;default:throw new RangeError(`Invalidpermission${i}`)}return a}static from(e){let a=new t;return e.read&&(a.read=!0),e.add&&(a.add=!0),e.create&&(a.create=!0),e.write&&(a.write=!0),e.delete&&(a.delete=!0),e.list&&(a.list=!0),e.deleteVersion&&(a.deleteVersion=!0),e.tag&&(a.tag=!0),e.move&&(a.move=!0),e.execute&&(a.execute=!0),e.setImmutabilityPolicy&&(a.setImmutabilityPolicy=!0),e.permanentDelete&&(a.permanentDelete=!0),e.filterByTags&&(a.filterByTags=!0),a}toString(){let e=[];return this.read&&e.push("r"),this.add&&e.push("a"),this.create&&e.push("c"),this.write&&e.push("w"),this.delete&&e.push("d"),this.deleteVersion&&e.push("x"),this.list&&e.push("l"),this.tag&&e.push("t"),this.move&&e.push("m"),this.execu
`),n=e.computeHMACSHA256(r);return new Pa(t.version,n,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function OI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType)}function RI(t,e){if(t=mn(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope)}function DI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey)}function II(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId)}function BI(t,e){if(t=mn(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let a="c",i=t.snapshotTime;t.blobName&&(a="b",t.snapshotTime?a="bs":t.versionId&&(a="bv",i=t.versionId));let r;t.permissions&&(t.blobName?r=$a.parse(t.permissions.toString()).toString():r=Ga.parse(t.permissions.toString()).toString());let n=[r||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",cn(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,a,i,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),s=e.computeHMACSHA256(n);return new Pa(t.version,s,r,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,a,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope)}function cn(t,e,a){let i=[`/blob/${t}/${e}`];return a&&i.push(`/${a}`),i.join("")}function mn(t){let e=t.version?t.version:Mu;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var Ss=class{constructor(e,a){let i=new ws(e.url,e.pipeline.toServiceClientOptions());this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=new ir(i)):(this._isContainer=!1,this._containerOrBlobOperation=new ys(i)),a||(a=q.generateUuid()),this._leaseId=a}get leaseId(){return this._leaseId}get url(){return this._url}async acquireLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-acquireLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.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:a.abortSignal,duration:e,modifiedAccessConditions:Object.assign(Object.assign({},a.conditions),{ifTags:(p=a.conditions)===null||p===void 0?void 0:p.tagConditions}),proposedLeaseId:this._leaseId},G(l)))}catch(c){throw d.setStatus({code:M.SpanStatusCode.ERROR,message:c.message}),c}finally{d.end()}}async changeLease(e,a={}){var i,r,n,s,o,p;let{span:d,updatedOptions:l}=L("BlobLeaseClient-changeLease",a);if(this._isContainer&&(!((i=a.conditions)===null||i===void 0)&&i.ifMatch&&((r=a.conditions)===null||r===void 0?void 0:r.ifMatch)!==Ta||!((n=a.conditions)===null||n===void 0)&&n.ifNoneMatch&&((s=a.conditions)===null||s===void 0?void 0:s.ifNoneMatch)!==Ta||!((o=a.conditions)===null||o===void 0)&&o.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{let c=await this._containerOrBlobOperatio
`));let i=yield Yu(a,"create");yield Ju(i,t)})}bt.createTar=FB});var Wy=T(We=>{"use strict";var VB=We&&We.__createBinding||(Object.create?function(t,e,a,i){i===void 0&&(i=a);var r=Object.getOwnPropertyDescriptor(e,a);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[a]}}),Object.defineProperty(t,i,r)}:function(t,e,a,i){i===void 0&&(i=a),t[i]=e[a]}),$B=We&&We.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),Md=We&&We.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var a in t)a!=="default"&&Object.prototype.hasOwnProperty.call(t,a)&&VB(e,t,a);return $B(e,t),e},$y=We&&We.__awaiter||function(t,e,a,i){function r(n){return n instanceof a?n:new a(function(s){s(n)})}return new(a||(a=Promise))(function(n,s){function o(l){try{d(i.next(l))}catch(c){s(c)}}function p(l){try{d(i.throw(l))}catch(c){s(c)}}function d(l){l.done?n(l.value):r(l.value).then(o,p)}d((i=i.apply(t,e||[])).next())})};Object.defineProperty(We,"__esModule",{value:!0});We.saveCache=We.restoreCache=We.isFeatureAvailable=We.ReserveCacheError=We.ValidationError=void 0;var tt=Md(ia()),Gy=Md(require("path")),ea=Md(zn()),zd=Md(Hy()),qd=Vy(),Ya=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}};We.ValidationError=Ya;var Ls=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}};We.ReserveCacheError=Ls;function Xy(t){if(!t||t.length===0)throw new Ya("Path Validation Error: At least one directory or file path is required")}function Ky(t){if(t.length>512)throw new Ya(`KeyValidationError:${t}cannotbelargerthan512characters.`);if(!/^[^,]*$/.test(t))throw new Ya(`KeyValidationError:${t}cannotcontaincommas.`)}function GB(){return!!process.env.ACTIONS_CACHE_URL}We.isFeatureAvailable=GB;function XB(t,e,a,i,r=!1){return $y(this,void 0,void 0,function*(){Xy(t),a=a||[];let n=[e,...a];if(tt.debug("Resolved Keys:"),tt.debug(JSON.stringify(n)),n.length>10)throw new Ya("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of n)Ky(p);let s=yield ea.getCompressionMethod(),o="";try{let p=yield zd.getCacheEntry(n,t,{compressionMethod:s,enableCrossOsArchive:r});if(!p?.archiveLocation)return;if(i?.lookupOnly)return tt.info("Lookup only - skipping download"),p.cacheKey;o=Gy.join(yield ea.createTempDirectory(),ea.getCacheFileName(s)),tt.debug(`ArchivePath:${o}`),yield zd.downloadCache(p.archiveLocation,o,i),tt.isDebug()&&(yield(0,qd.listTar)(o,s));let d=ea.getArchiveFileSizeInBytes(o);return tt.info(`CacheSize:~${Math.round(d/(1024*1024))}MB(${d}B)`),yield(0,qd.extractTar)(o,s),tt.info("Cache restored successfully"),p.cacheKey}catch(p){if(p.name===Ya.name)throw p;tt.warning(`Failedtorestore:${p.message}`)}finally{try{yield ea.unlinkFile(o)}catch(p){tt.debug(`Failedtodeletearchive:${p}`)}}})}We.restoreCache=XB;function KB(t,e,a,i=!1){var r,n,s,o,p;return $y(this,void 0,void 0,function*(){Xy(t),Ky(e);let d=yield ea.getCompressionMethod(),l=-1,c=yield ea.resolvePaths(t);if(tt.debug("Cache Paths:"),tt.debug(`${JSON.stringify(c)}`),c.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.");let m=yield ea.createTempDirectory(),u=Gy.join(m,ea.getCacheFileName(d));tt.debug(`ArchivePath:${u}`);try{yield(0,qd.createTar)(m,c,d),tt.isDebug()&&(yield(0,qd.listTar)(u,d));let h=10*1024*1024*1024,v=ea.getArchiveFileSizeInBytes(u);if(tt.debug(`FileSize:${v}`),v>h&&!ea.isGhes())throw new Error(`Cachesizeof~${Math.round(v/(1024*1024))}MB(${v}B)isoverthe10GBlimit,notsavingcache.`);tt.debug("Reserving Cache");let E=yield zd.reserveCache(e,t,{compressionMethod:d,enableCrossOsArchive:i,cacheSize:v});if(!((r=E?.result)===null||r===void 0)&&r.cacheId)l=(n=E?.result)===null||n===void 0?void 0:n.cacheId;else throw E?.statusCode===400?new Error((o=(s=E?.error)===null||s===void 0?v