!function(e,t){"object"==typeofexports&&"undefined"!=typeofmodule?t(exports):"function"==typeofdefine&&define.amd?define(["exports"],t):t((e=e||self).msRest={})}(this,(function(e){"use strict";functiont(e){returne.toLowerCase()}functionr(e){return!(!e||"object"!=typeofe)&&("function"==typeofe.rawHeaders&&"function"==typeofe.clone&&"function"==typeofe.get&&"function"==typeofe.set&&"function"==typeofe.contains&&"function"==typeofe.remove&&"function"==typeofe.headersArray&&"function"==typeofe.headerValues&&"function"==typeofe.headerNames&&"function"==typeofe.toJson)}varn,o=function(){functione(e){if(this._headersMap={},e)for(vartine)this.set(t,e[t])}returne.prototype.set=function(e,r){this._headersMap[t(e)]={name:e,value:r.toString()}},e.prototype.get=function(e){varr=this._headersMap[t(e)];returnr?r.value:void0},e.prototype.contains=function(e){return!!this._headersMap[t(e)]},e.prototype.remove=function(e){varr=this.contains(e);returndeletethis._headersMap[t(e)],r},e.prototype.rawHeaders=function(){vare={};for(vartinthis._headersMap){varr=this._headersMap[t];e[r.name.toLowerCase()]=r.value}returne},e.prototype.headersArray=function(){vare=[];for(vartinthis._headersMap)e.push(this._headersMap[t]);returne},e.prototype.headerNames=function(){for(vare=[],t=this.headersArray(),r=0;r<t.length;++r)e.push(t[r].name);returne},e.prototype.headerValues=function(){for(vare=[],t=this.headersArray(),r=0;r<t.length;++r)e.push(t[r].value);returne},e.prototype.toJson=function(){returnthis.rawHeaders()},e.prototype.toString=function(){returnJSON.stringify(this.toJson())},e.prototype.clone=function(){returnnewe(this.rawHeaders())},e}();functioni(e){for(vart="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);returnbtoa(t)}functiona(e){for(vart=atob(e),r=newUint8Array(t.length),n=0;n<t.length;n++)r[n]=t.charCodeAt(n);returnr}vars=newUint8Array(16);functionu(){if(!n&&!(n="undefined"!=typeofcrypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeofmsCrypto&&"function"==typeofmsCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))thrownewError("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");returnn(s)}varl=/^(?:[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;functionc(e){return"string"==typeofe&&l.test(e)}for(varf=[],p=0;p<256;++p)f.push((p+256).toString(16).substr(1));functionh(e,t,r){varn=(e=e||{}).random||(e.rng||u)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(varo=0;o<16;++o)t[r+o]=n[o];returnt}returnfunction(e){vart=arguments.length>1&&void0!==arguments[1]?arguments[1]:0,r=(f[e[t+0]]+f[e[t+1]]+f[e[t+2]]+f[e[t+3]]+"-"+f[e[t+4]]+f[e[t+5]]+"-"+f[e[t+6]]+f[e[t+7]]+"-"+f[e[t+8]]+f[e[t+9]]+"-"+f[e[t+10]]+f[e[t+11]]+f[e[t+12]]+f[e[t+13]]+f[e[t+14]]+f[e[t+15]]).toLowerCase();if(!c(r))throwTypeError("Stringified UUID is invalid");returnr}(n)}vard={msRestVersion:"2.6.2",HTTP:"http:",HTTPS:"https:",HTTP_PROXY:"HTTP_PROXY",HTTPS_PROXY:"HTTPS_PROXY",NO_PROXY:"NO_PROXY",ALL_PROXY:"ALL_PROXY",HttpConstants:{HttpVerbs:{PUT:"PUT",GET:"GET",DELETE:"DELETE",POST:"POST",MERGE:"MERGE",HEAD:"HEAD",PATCH:"PATCH"},StatusCodes:{TooManyRequests:429}},HeaderConstants:{AUTHORIZATION:"authorization",AUTHORIZATION_SCHEME:"Bearer",RETRY_AFTER:"Retry-After",USER_AGENT:"User-Agent"}},y="undefined"!=typeofprocess&&!!process.version&&!!process.versions&&!!process.versions.node;functionm(e){vart={};returnt.body=e.bodyAsText,t.headers=e.headers,t.status=e.status,t}functionv(e){vart=e.clone();returnt.headers&&t.headers.remove("authorization"),t}functiong(e){returnnewRegExp("^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$","ig").test(e)}functionb(){returnh()}functionw(e,t){returnnewPromise((function(r){returnsetTimeout((function(){returnr(t)}),e)}))}varE=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9