????
Current Path : C:/Program Files/Azure Data Studio/resources/app/extensions/resource-deployment/dist/ |
Current File : C:/Program Files/Azure Data Studio/resources/app/extensions/resource-deployment/dist/main.js |
/*! For license information please see main.js.LICENSE.txt */ (()=>{var e={1616:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0});const i=n(7571),o=n(9695),a=["redmond.corp.microsoft.com","northamerica.corp.microsoft.com","fareast.corp.microsoft.com","ntdev.corp.microsoft.com","wingroup.corp.microsoft.com","southpacific.corp.microsoft.com","wingroup.windeploy.ntdev.microsoft.com","ddnet.microsoft.com","europe.corp.microsoft.com"],s={"common.msftInternal":function(){const e=process.env.USERDNSDOMAIN;if(!e)return!1;const t=e.toLowerCase();return a.some((e=>t===e))}()?1:0},c={};try{const e=n(235);c["common.adsversion"]=null==e?void 0:e.version}catch(e){}class l{constructor(e,t,n,r){this.reporter=e,this.eventName=t,this.properties=n,this.measurements=r,this.properties=n||{},Object.assign(this.properties,c),this.measurements=r||{},Object.assign(this.measurements,s)}send(){var e;try{null===(e=this.reporter)||void 0===e||e.sendTelemetryEvent(this.eventName,this.properties,this.measurements)}catch(e){const t=e instanceof Error?e.message:e;console.error(`Error sending ${this.eventName} event ${t}`)}}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasurements(e){return Object.assign(this.measurements,e),this}withConnectionInfo(e){return"object"==typeof e?Object.assign(this.properties,{authenticationType:e.authenticationType,providerName:e.providerName}):console.error("AdsTelemetryReporter received invalid ConnectionInfo object of type "+typeof e),this}withServerInfo(e){var t,n,r;return"object"==typeof e?Object.assign(this.properties,{connectionType:void 0!==e.isCloud?e.isCloud?"Azure":"Standalone":"",serverVersion:null!==(t=e.serverVersion)&&void 0!==t?t:"",serverEdition:null!==(n=e.serverEdition)&&void 0!==n?n:"",serverEngineEdition:null!==(r=e.engineEditionId)&&void 0!==r?r:""}):console.error("AdsTelemetryReporter received invalid ServerInfo object of type "+typeof e),this}}t.default=class{constructor(e,t,n){var r,o;this._telemetryReporter=void 0;try{this._telemetryReporter=new i.default(e,t,n)}catch(t){console.error(`Error initializing TelemetryReporter for '${e}'. ${null!==(o=null===(r=t)||void 0===r?void 0:r.message)&&void 0!==o?o:t}`)}}createViewEvent(e){return new l(this._telemetryReporter,"view",{view:e})}sendViewEvent(e){this.createViewEvent(e).send()}createActionEvent(e,t,n="",r="",i){const o=i?{durationInMs:i}:{};return new l(this._telemetryReporter,"action",{view:e,action:t,target:n,source:r},o)}sendActionEvent(e,t,n="",r="",i){this.createActionEvent(e,t,n,r,i).send()}createTimedAction(e,t,n,r){return new o.TimedAction(this,e,t,n,r)}createMetricsEvent(e,t=""){return new l(this._telemetryReporter,"metrics",{groupName:t},e)}sendMetricsEvent(e,t=""){this.createMetricsEvent(e,t).send()}createErrorEvent(e,t,n="",r=""){return new l(this._telemetryReporter,"error",{view:e,name:t,errorCode:n,errorType:r})}sendErrorEvent(e,t,n="",r=""){this.createErrorEvent(e,t,n,r).send()}createErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){const a={view:e,name:t,errorCode:i,errorType:o};if(n instanceof Error){a.message=!0===r?n.message:"";let e=n.stack||"";if(!0!==r&&n.message){const t=new RegExp(n.message,"g");e=e.replace(t,"<REDACTED: error-message>")}a.stack=e}else a.message=!0===r?null==n?void 0:n.toString():"",a.stack="";return new l(this._telemetryReporter,"error",a)}sendErrorEvent2(e,t,n=void 0,r=!1,i="",o=""){this.createErrorEvent2(e,t,n,r,i,o).send()}createTelemetryEvent(e,t,n){return new l(this._telemetryReporter,e,t,n)}sendTelemetryEvent(e,t,n){this.createTelemetryEvent(e,t,n).send()}dispose(){var e;return r(this,void 0,void 0,(function*(){yield null===(e=this._telemetryReporter)||void 0===e?void 0:e.dispose()}))}}},9695:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimedAction=void 0,t.TimedAction=class{constructor(e,t,n,r="",i=""){this.reporter=e,this.view=t,this.action=n,this.target=r,this.source=i,this.properties={},this.measures={},this.start=Date.now()}withAdditionalProperties(e){return Object.assign(this.properties,e),this}withAdditionalMeasures(e){return Object.assign(this.measures,e),this}send(){this.reporter.createActionEvent(this.view,this.action,this.source,this.target,Date.now()-this.start).withAdditionalProperties(this.properties).withAdditionalMeasurements(this.measures).send()}}},7571:(e,t,n)=>{var r,i,o,a,s=Object.create,c=Object.defineProperty,l=Object.defineProperties,u=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getPrototypeOf,m=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,g=(e,t,n)=>t in e?c(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,b=(e,t)=>{for(var n in t||(t={}))m.call(t,n)&&g(e,n,t[n]);if(f)for(var n of f(t))v.call(t,n)&&g(e,n,t[n]);return e},y=(e,t)=>l(e,p(t)),_=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),x=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of d(t))!m.call(e,i)&&i!==n&&c(e,i,{get:()=>t[i],enumerable:!(r=u(t,i))||r.enumerable});return e},w=(e,t,n)=>(n=null!=e?s(h(e)):{},x(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)),E=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],l=s.assign,u=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function m(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&m("Object prototype may only be an Object:"+e),o[i]=e,new o}var g=(h()||{}).Symbol,b=(h()||{}).Reflect,y=!!b,_="decorate",x="metadata",w="getOwnPropertySymbols",E="iterator",A=l||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},S=function(e,t){return(S=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function T(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&m("Class extends value "+String(n)+" is not a constructor or null"),S(e,n),e[i]=null===n?v(n):(r[i]=n[i],new r)}function C(e,t,n,r){void 0===r&&(r=n),u?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=l,e.ObjClass=s,e.ObjCreate=u,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=A,e.__createBindingFn=C,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof b[_]===t)c=b[_](e,n,r,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&C(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=A,n=T,r=C,(e=i).__assign||(e.__assign=l||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=T,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&C(t,e,n);return u?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&b[x]===t)return b[x](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof g===t&&e[g[E]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[w]===t)for(var o=0,a=s[w](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof g===t&&g[E],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void m(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=v,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=m,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),A=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a=Object,s=a[i],c=a.assign,l=a.create,u=a.defineProperty,p=s[o],d=null;function f(e){return void 0===e&&(e=!0),(!d||!e)&&(typeof globalThis!==r&&globalThis&&(d=globalThis),typeof self!==r&&self&&(d=self),typeof window!==r&&window&&(d=window),typeof global!==r&&global&&(d=global)),d}function h(e){throw new TypeError(e)}function m(e){if(l)return l(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&h("Object prototype may only be an Object:"+e),o[i]=e,new o}(f()||{}).Symbol,(f()||{}).Reflect;var v=function(e,t){return(v=a.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function g(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&h("Class extends value "+String(n)+" is not a constructor or null"),v(e,n),e[i]=null===n?m(n):(r[i]=n[i],new r)}function b(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var y="",_="processTelemetry",x="priority",w="setNextPlugin",E="isInitialized",A="teardown",S="core",T="update",C="disabled",I="_doTeardown",P="processNext",O="resume",N="pause",R="NotificationListener",D="add"+R,k="remove"+R,L="eventsSent",M="eventsDiscarded",j="eventsSendRequest",z="perfEvent",F="toISOString",B="endsWith",V="startsWith",U="indexOf",q="reduce",H="trim",G="toString",$="__proto__",W="constructor",Q=u,K=a.freeze,X=a.seal,Y=a.keys,J=String[i],Z=J[H],ee=J[B],te=J[V],ne=Date[i][F],re=Array.isArray,ie=s[G],oe=p[G],ae=oe.call(a),se=/-([a-z])/g,ce=/([^\w\d_$])/g,le=/^(\d+[\w\d_$])/,ue=Object.getPrototypeOf;function pe(e){if(e){if(ue)return ue(e);var t=e[$]||e[i]||e[W];if(t)return t}return null}function de(e,t){return typeof e===t}function fe(e){return void 0===e||typeof e===r}function he(e){return null===e||fe(e)}function me(e){return!he(e)}function ve(e,t){return!(!e||!p.call(e,t))}function ge(e){return!(!e||typeof e!==n)}function be(e){return!(!e||typeof e!==t)}function ye(e){var t=e;return t&&Te(t)&&(t=(t=(t=t.replace(se,(function(e,t){return t.toUpperCase()}))).replace(ce,"_")).replace(le,(function(e,t){return"_"+t}))),t}function _e(e,t){if(e)for(var n in e)p.call(e,n)&&t.call(e,n,e[n])}function xe(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=ee?e[B](t):function(e,t){var n=!1,r=t?t.length:0,i=e?e.length:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,a=r-1;a>=0;a--){if(e[o]!=t[a])return!1;o--}n=!0}return n}(e,t)),n}function we(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Ee(e){return!(!e||"[object Date]"!==ie.call(e))}var Ae=re||function(e){return!(!e||"[object Array]"!==ie.call(e))};function Se(e){return!(!e||"[object Error]"!==ie.call(e))}function Te(e){return"string"==typeof e}function Ce(e){return"number"==typeof e}function Ie(e){return"boolean"==typeof e}function Pe(e){var n=!1;if(e&&"object"==typeof e){var r=ue?ue(e):pe(e);r?(r[W]&&p.call(r,W)&&(r=r[W]),n=typeof r===t&&oe.call(r)===ae):n=!0}return n}function Oe(e){if(e)return ne?e[F]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function Ne(e,t,n){var r=e.length;try{for(var i=0;i<r&&(!(i in e)||-1!==t.call(n||e,e[i],i,e));i++);}catch{}}function Re(e,t,n){if(e){if(e[U])return e[U](t,n);var r=e.length,i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch{}}return-1}function De(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e.length,o=n||e;r=new Array(i);try{for(var a=0;a<i;a++)a in e&&(r[a]=t.call(o,e[a],e))}catch{}}return r}function ke(e,t,n){var r;if(e){if(e[q])return e[q](t,n);var i=e.length,o=0;if(arguments.length>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r}function Le(e){return e&&(e=Z&&e[H]?e[H]():e.replace?e.replace(/^\s+|\s+$/g,""):e),e}var Me=!{toString:null}.propertyIsEnumerable("toString"),je=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function ze(e){var r=typeof e;if(r!==t&&(r!==n||null===e)&&h("objKeys called on non-object"),!Me&&Y)return Y(e);var i=[];for(var o in e)e&&p.call(e,o)&&i.push(o);if(Me)for(var a=je.length,s=0;s<a;s++)e&&p.call(e,je[s])&&i.push(je[s]);return i}function Fe(e,t,n,r){if(Q)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),Q(e,t,i),!0}catch{}return!1}function Be(e){return e}function Ve(e){return K&&_e(e,(function(e,t){(Ae(t)||ge(t))&&K(t)})),Ue(e)}var Ue=K||Be,qe=X||Be;function He(){var e=Date;return e.now?e.now():(new e).getTime()}function Ge(e){return Se(e)?e.name:y}function $e(e,t,n,r,i){var o=n;return e&&(o=e[t])!==n&&(!i||i(o))&&(!r||r(n))&&(o=n,e[t]=o),o}function We(e,t,n){var r;return e?!(r=e[t])&&he(r)&&(r=fe(n)?{}:n,e[t]=r):r=fe(n)?{}:n,r}function Qe(e){return!e}function Ke(e){return!!e}function Xe(e){throw new Error(e)}function Ye(e,t){var n=null,r=null;return be(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function Je(e,t,n,r,i){e&&t&&n&&(!1!==i||fe(e[t]))&&(e[t]=Ye(n,r))}function Ze(e,t,n,r){return e&&t&&ge(e)&&Ae(n)&&Ne(n,(function(n){Te(n)&&Je(e,n,t,n,r)})),e}function et(e,t,n,r,i,o){var a=arguments,s=a[0]||{},c=a.length,l=!1,u=1;for(c>0&&Ie(s)&&(l=s,s=a[u]||{},u++),ge(s)||(s={});u<c;u++){var d=a[u],f=Ae(d),h=ge(d);for(var m in d)if(f&&m in d||h&&p.call(d,m)){var v=d[m],g=void 0;if(l&&v&&((g=Ae(v))||Pe(v))){var b=s[m];g?Ae(b)||(b=[]):Pe(b)||(b={}),v=et(l,b,v)}void 0!==v&&(s[m]=v)}}return s}function tt(e){var t={};return _e(e,(function(e,n){t[e]=n,t[n]=e})),Ve(t)}var nt=tt({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),rt="constructor",it="prototype",ot="function",at="_dynInstFuncs",st="_isDynProxy",ct="_dynClass",lt="_dynInstChk",ut=lt,pt="_dfOpts",dt="_unknown_",ft="__proto__",ht="_dyn"+ft,mt="_dynInstProto",vt="useBaseInst",gt="setInstFuncs",bt=Object,yt=bt.getPrototypeOf,_t=bt.getOwnPropertyNames,xt=0;function wt(e,t){return e&&bt[it].hasOwnProperty.call(e,t)}function Et(e){return e&&(e===bt[it]||e===Array[it])}function At(e){return Et(e)||e===Function[it]}function St(e){var t;if(e){if(yt)return yt(e);var n=e[ft]||e[it]||(e[rt]?e[rt][it]:null);t=e[ht]||n,wt(e,ht)||(delete e[mt],t=e[ht]=e[mt]||e[ht],e[mt]=n)}return t}function Tt(e,t){var n=[];if(_t)n=_t(e);else for(var r in e)"string"==typeof r&&wt(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function Ct(e,t,n){return t!==rt&&typeof e[t]===ot&&(n||wt(e,t))}function It(e){throw new TypeError("DynamicProto: "+e)}function Pt(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function Ot(e,t,n,r,i){if(!Et(e)){var o=n[at]=n[at]||{},a=o[t]=o[t]||{};!1!==o[ut]&&(o[ut]=!!i),Tt(n,(function(t){Ct(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!wt(e,t)||e[t]&&!e[t][st])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&wt(n,ct)){var o=e[at]||{};if((i=(o[n[ct]]||{})[t])||It("Missing ["+t+"] "+ot),!i[lt]&&!1!==o[ut]){for(var a=!wt(e,t),s=St(e),c=[];a&&s&&!At(s)&&!Pt(c,s);){var l=s[t];if(l){a=l===r;break}c.push(s),s=St(s)}try{a&&(e[t]=i),i[lt]=1}catch{o[ut]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=St(t)[e]),typeof r!==ot&&It("["+e+"] is not a "+ot),r}(t,e,n);return r.apply(this,arguments)};return n[st]=1,n}(e,t)))}))}}function Nt(e,t){return wt(e,it)?e.name||t||dt:((e||{})[rt]||{}).name||t||dt}function Rt(e,t,n,r){wt(e,it)||It("theClass is an invalid class definition.");var i=e[it];(function(e,t){if(yt){for(var n=[],r=St(t);r&&!At(r)&&!Pt(n,r);){if(r===e)return!0;n.push(r),r=St(r)}return!1}return!0})(i,t)||It("["+Nt(e)+"] is not in class hierarchy of ["+Nt(t)+"]");var o=null;wt(i,ct)?o=i[ct]:(o="_dynCls$"+Nt(e,"_")+"$"+xt,xt++,i[ct]=o);var a=Rt[pt],s=!!a[vt];s&&r&&void 0!==r[vt]&&(s=!!r[vt]);var c=function(e){var t={};return Tt(e,(function(n){!t[n]&&Ct(e,n,!1)&&(t[n]=e[n])})),t}(t),l=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[st]&&r){var o=e[at]||{};!1!==o[ut]&&(i=(o[t[ct]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};Tt(n,(function(e){o[e]=i(t,n,e)}));for(var a=St(e),s=[];a&&!At(a)&&!Pt(s,a);)Tt(a,(function(e){!o[e]&&Ct(a,e,!yt)&&(o[e]=i(t,a,e))})),s.push(a),a=St(a);return o}(i,t,c,s);n(t,l);var u=!!yt&&!!a[gt];u&&r&&(u=!!r[gt]),Ot(i,o,t,c,!1!==u)}Rt[pt]={setInstFuncs:!0,useBaseInst:!0};var Dt="window",kt="document",Lt="navigator",Mt="location",jt="console",zt="performance",Ft="JSON",Bt="crypto",Vt="msCrypto",Ut="msie",qt="trident/",Ht="XMLHttpRequest",Gt=null,$t=null,Wt=!1,Qt=null,Kt=null;function Xt(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[i];r&&(n=t in r)}}catch{}if(!n)try{n=!fe((new e)[t])}catch{}}return n}function Yt(e){var t=f();return t&&t[e]?t[e]:e===Dt&&Jt()?window:null}function Jt(){return Boolean(typeof window===n&&window)}function Zt(){return Jt()?window:Yt(Dt)}function en(){return Boolean(typeof document===n&&document)}function tn(){return en()?document:Yt(kt)}function nn(){return Boolean(typeof navigator===n&&navigator)}function rn(){return nn()?navigator:Yt(Lt)}function on(){return Boolean(typeof history===n&&history)}function an(e){if(e&&Wt){var t=Yt("__mockLocation");if(t)return t}return typeof location===n&&location?location:Yt(Mt)}function sn(){return typeof console!==r?console:Yt(jt)}function cn(){return Yt(zt)}function ln(){return Boolean(typeof JSON===n&&JSON||null!==Yt(Ft))}function un(){return ln()?JSON||Yt(Ft):null}function pn(){return Yt(Bt)}function dn(){return Yt(Vt)}function fn(){var e=rn();if(e&&(e.userAgent!==$t||null===Gt)){var t=(($t=e.userAgent)||y).toLowerCase();Gt=we(t,Ut)||we(t,qt)}return Gt}function hn(e){var t=Object[i].toString.call(e),n=y;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":ln()&&(n=un().stringify(e)),t+n}function mn(){var e=!1;try{e=!!Yt(Ht)}catch{}return e}function vn(e,t){if(e)for(var n=0;n<e.length;n++){var r=e[n];if(r.name&&r.name===t)return r}return{}}function gn(e){var t=tn();return t&&e?vn(t.querySelectorAll("meta"),e).content:null}function bn(e){var t,n=cn();if(n){var r=n.getEntriesByType("navigation")||[];t=vn((r.length>0?r[0]:{}).serverTiming,e).description}return t}var yn,_n=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],xn=null;function wn(e,t){return function(){var n=arguments,r=En(t);if(r){var i=r.listener;i&&i[e]&&i[e].apply(i,n)}}}function En(e){var t=xn;return!t&&!0!==e.disableDbgExt&&(t=xn||function(){var e=Yt("Microsoft");return e&&(xn=e.ApplicationInsights),xn}()),t?t.ChromeDbgExt:null}function An(e){if(!yn){yn={};for(var t=0;t<_n.length;t++)yn[_n[t]]=wn(_n[t],e)}return yn}function Sn(e){return e?'"'+e.replace(/\"/g,y)+'"':y}function Tn(e,t){var n=sn();if(n){var r="log";n[e]&&(r=e),be(n[r])&&n[r](t)}}var Cn=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i.messageId=e,i.message=(n?"AI: ":"AI (Internal): ")+e;var o=y;ln()&&(o=un().stringify(r));var a=(t?" message:"+Sn(t):y)+(r?" props:"+Sn(o):y);i.message+=a}return e.dataType="MessageData",e}();function In(e,t){return(e||{}).logger||new Pn(t)}var Pn=function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,r={};Rt(e,this,(function(e){function i(e,n){var r=t[e];return he(r)?n:r}function o(e,n){var r=En(t);r&&r.diagLog&&r.diagLog(e,n)}he(t)&&(t={}),e.consoleLoggingLevel=function(){return i("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return i("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return i("maxMessageLimit",25)},e.enableDebugExceptions=function(){return i("enableDebugExceptions",!1)},e.throwInternal=function(t,n,i,a,s){void 0===s&&(s=!1);var c=new Cn(n,i,s,a);if(e.enableDebugExceptions())throw hn(c);var l=1===t?"errorToConsole":"warnToConsole";if(fe(c.message))o("throw"+(1===t?"Critical":"Warning"),c);else{var u=e.consoleLoggingLevel();if(s){var p=+c.messageId;!r[p]&&u>=t&&(e[l](c.message),r[p]=!0)}else u>=t&&e[l](c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){Tn("warn",e),o("warning",e)},e.errorToConsole=function(e){Tn("error",e),o("error",e)},e.resetInternalMessageCount=function(){n=0,r={}},e.logInternalMessage=function(t,i){if(!(n>=e.maxInternalMessageLimit())){var a=!0,s="AITR_"+i.messageId;if(r[s]?a=!1:r[s]=!0,a&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(i),n++,o(1===t?"error":"warn",i)),n===e.maxInternalMessageLimit())){var c="Internal events throttle limit per PageView reached for this app.",l=new Cn(23,c,!1);e.queue.push(l),1===t?e.errorToConsole(c):e.warnToConsole(c)}}}}))};function On(e){return e||new Pn}function Nn(e,t,n,r,i,o){void 0===o&&(o=!1),(e||new Pn).throwInternal(t,n,r,i,o)}function Rn(e,t){On(e).warnToConsole(t)}var Dn="ctx",kn=null,Ln=function(){function e(t,n,r){var i,o=this,a=!1;o.start=He(),o.name=t,o.isAsync=r,o.isChildEvt=function(){return!1},be(n)&&(a=Fe(o,"payload",(function(){return!i&&be(n)&&(i=n(),n=null),i}))),o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o[Dn]||{})[t]:null},o.setCtx=function(t,n){t&&(t===e.ParentContextKey?(o[t]||(o.isChildEvt=function(){return!0}),o[t]=n):t===e.ChildrenContextKey?o[t]=n:(o[Dn]=o[Dn]||{})[t]=n)},o.complete=function(){var t=0,r=o.getCtx(e.ChildrenContextKey);if(Ae(r))for(var i=0;i<r.length;i++){var s=r[i];s&&(t+=s.time)}o.time=He()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&be(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Mn=function e(t){this.ctx={},Rt(e,this,(function(e){e.create=function(e,t,n){return new Ln(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&be(t.perfEvent)&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e[Dn]=e[Dn]||{})[t]=n)},e.getCtx=function(t){return(e[Dn]||{})[t]}}))},jn="CoreUtils.doPerf";function zn(e,t,n,r,i){if(e){var o=e;if(be(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(jn);try{if(a=o.create(t(),r,i)){if(s&&a.setCtx&&(a.setCtx(Ln.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Ln.ChildrenContextKey);c||(c=[],s.setCtx(Ln.ChildrenContextKey,c)),c.push(a)}return o.setCtx(jn,a),n(a)}}catch(e){a&&a.setCtx&&a.setCtx("exception",e)}finally{a&&o.fire(a),o.setCtx(jn,s)}}}return n()}function Fn(){return kn}var Bn=4294967296,Vn=4294967295,Un=!1,qn=123456789,Hn=987654321;function Gn(e){e<0&&(e>>>=0),qn=123456789+e&Vn,Hn=987654321-e&Vn,Un=!0}function $n(){try{var e=2147483647&He();Gn((Math.random()*Bn^e)+e)}catch{}}function Wn(e){return e>0?Math.floor(Qn()/Vn*(e+1))>>>0:0}function Qn(e){var t=0,n=pn()||dn();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&Vn),0===t&&fn()&&(Un||$n(),t=Xn()&Vn),0===t&&(t=Math.floor(Bn*Math.random()|0)),e||(t>>>=0),t}function Kn(e){e?Gn(e):$n()}function Xn(e){var t=((Hn=36969*(65535&Hn)+(Hn>>16)&Vn)<<16)+(65535&(qn=18e3*(65535&qn)+(qn>>16)&Vn))>>>0&Vn;return e||(t>>>=0),t}function Yn(e){void 0===e&&(e=22);for(var t=Qn()>>>0,n=0,r=y;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(Qn()<<2&4294967295|3&t)>>>0,n=0);return r}var Jn=u,Zn="2.8.4",er="."+Yn(6),tr=0;function nr(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function rr(e,t){return void 0===t&&(t=!1),ye(e+tr+++(t?"."+Zn:"")+er)}function ir(e){var t={id:rr("_aiData-"+(e||"")+"."+Zn),accept:function(e){return nr(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[ye(n)]:(i&&((o=function(e,t){var n=t[e.id];if(!n){n={};try{nr(t)&&(function(e,t,n){if(Jn)try{return Jn(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch{}return!1}(t,e.id,n)||(t[e.id]=n))}catch{}}return n}(t,e))[ye(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch{}}};return t}var or="toGMTString",ar="toUTCString",sr="cookie",cr="expires",lr="enabled",ur="isCookieUseDisabled",pr="disableCookiesUsage",dr="_ckMgr",fr=null,hr=null,mr=null,vr=tn(),gr={},br={};function yr(e,t){var n=xr[dr]||br[dr];return n||(n=xr[dr]=xr(e,t),br[dr]=n),n}function _r(e){return!e||e.isEnabled()}function xr(e,t){var n=function(e){var t=e.cookieCfg=e.cookieCfg||{};if($e(t,"domain",e.cookieDomain,me,he),$e(t,"path",e.cookiePath||"/",null,he),he(t[lr])){var n=void 0;fe(e[ur])||(n=!e[ur]),fe(e[pr])||(n=!e[pr]),t[lr]=n}return t}(e||br),r=n.path||"/",i=n.domain,o=!1!==n[lr],a={isEnabled:function(){var e=o&&wr(t),n=br[dr];return e&&n&&a!==n&&(e=_r(n)),e},setEnabled:function(e){o=!1!==e},set:function(e,t,o,s,c){var l=!1;if(_r(a)){var u={},p=Le(t||y),d=p.indexOf(";");if(-1!==d&&(p=Le(t.substring(0,d)),u=Er(t.substring(d+1))),$e(u,"domain",s||i,Ke,fe),!he(o)){var f=fn();if(fe(u[cr])){var h=He()+1e3*o;if(h>0){var m=new Date;m.setTime(h),$e(u,cr,Ar(m,f?or:ar)||Ar(m,f?or:ar)||y,Ke)}}f||$e(u,"max-age",y+o,null,fe)}var v=an();v&&"https:"===v.protocol&&($e(u,"secure",null,null,fe),null===hr&&(hr=!Ir((rn()||{}).userAgent)),hr&&$e(u,"SameSite","None",null,fe)),$e(u,"path",c||r,null,fe),(n.setCookie||Cr)(e,Sr(p,u)),l=!0}return l},get:function(e){var t=y;return _r(a)&&(t=(n.getCookie||Tr)(e)),t},del:function(e,t){var n=!1;return _r(a)&&(n=a.purge(e,t)),n},purge:function(e,r){var i,o=!1;if(wr(t)){var a=((i={}).path=r||"/",i[cr]="Thu, 01 Jan 1970 00:00:01 GMT",i);fn()||(a["max-age"]="0"),(n.delCookie||Cr)(e,Sr(y,a)),o=!0}return o}};return a[dr]=a,a}function wr(e){if(null===fr){fr=!1;try{fr=void 0!==(vr||{})[sr]}catch(t){Nn(e,2,68,"Cannot access document.cookie - "+Ge(t),{exception:hn(t)})}}return fr}function Er(e){var t={};return e&&e.length&&Ne(Le(e).split(";"),(function(e){if(e=Le(e||y)){var n=e.indexOf("=");-1===n?t[e]=null:t[Le(e.substring(0,n))]=Le(e.substring(n+1))}})),t}function Ar(e,t){return be(e[t])?e[t]():null}function Sr(e,t){var n=e||y;return _e(t,(function(e,t){n+="; "+e+(he(t)?y:"="+t)})),n}function Tr(e){var t=y;if(vr){var n=vr[sr]||y;mr!==n&&(gr=Er(n),mr=n),t=Le(gr[e]||y)}return t}function Cr(e,t){vr&&(vr[sr]=e+"="+t)}function Ir(e){return!!Te(e)&&!!(we(e,"CPU iPhone OS 12")||we(e,"iPad; CPU OS 12")||we(e,"Macintosh; Intel Mac OS X 10_14")&&we(e,"Version/")&&we(e,"Safari")||we(e,"Macintosh; Intel Mac OS X 10_14")&&xe(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)")||we(e,"Chrome/5")||we(e,"Chrome/6")||we(e,"UnrealEngine")&&!we(e,"Chrome")||we(e,"UCBrowser/12")||we(e,"UCBrowser/11"))}var Pr="on",Or="attachEvent",Nr="addEventListener",Rr="detachEvent",Dr="removeEventListener",kr="events",Lr="visibilitychange",Mr="pagehide",jr="pageshow",zr="unload",Fr="beforeunload",Br=rr("aiEvtPageHide"),Vr=rr("aiEvtPageShow"),Ur=/\.[\.]+/g,qr=/[\.]+$/,Hr=1,Gr=ir("events"),$r=/^([^.]*)(?:\.(.+)|)/;function Wr(e){return e&&e.replace?e.replace(/^\s*\.*|\.*\s*$/g,""):e}function Qr(e,t){if(t){var n="";Ae(t)?(n="",Ne(t,(function(e){(e=Wr(e))&&("."!==e[0]&&(e="."+e),n+=e)}))):n=Wr(t),n&&("."!==n[0]&&(n="."+n),e=(e||"")+n)}var r=$r.exec(e||"")||[];return{type:r[1],ns:(r[2]||"").replace(Ur,".").replace(qr,"").split(".").sort().join(".")}}function Kr(e,t,n){void 0===n&&(n=!0);var r=Gr.get(e,kr,{},n),i=r[t];return i||(i=r[t]=[]),i}function Xr(e,t,n,r){e&&t&&t.type&&(e[Dr]?e[Dr](t.type,n,r):e[Rr]&&e[Rr](Pr+t.type,n))}function Yr(e,t,n,r){for(var i=t.length;i--;){var o=t[i];o&&(!n.ns||n.ns===o.evtName.ns)&&(!r||r(o))&&(Xr(e,o.evtName,o.handler,o.capture),t.splice(i,1))}}function Jr(e,t){return t?Qr("xx",Ae(t)?[e].concat(t):[e,t]).ns.split("."):e}function Zr(e,t,n,r,i){void 0===i&&(i=!1);var o=!1;if(e)try{var a=Qr(t,r);if(o=function(e,t,n,r){var i=!1;return e&&t&&t.type&&n&&(e[Nr]?(e[Nr](t.type,n,r),i=!0):e[Or]&&(e[Or](Pr+t.type,n),i=!0)),i}(e,a,n,i),o&&Gr.accept(e)){var s={guid:Hr++,evtName:a,handler:n,capture:i};Kr(e,a.type).push(s)}}catch{}return o}function ei(e,t,n,r,i){if(void 0===i&&(i=!1),e)try{var o=Qr(t,r),a=!1;(function(e,t,n){if(t.type)Yr(e,Kr(e,t.type),t,n);else{var r=Gr.get(e,kr,{});_e(r,(function(r,i){Yr(e,i,t,n)})),0===ze(r).length&&Gr.kill(e,kr)}})(e,o,(function(e){return!((!o.ns||n)&&e.handler!==n||(a=!0,0))})),a||Xr(e,o,n,i)}catch{}}function ti(e,t,n,r){return void 0===r&&(r=!1),Zr(e,t,n,null,r)}function ni(e,t,n,r){void 0===r&&(r=!1),ei(e,t,n,null,r)}function ri(e,t,n){var r=!1,i=Zt();i&&(r=Zr(i,e,t,n),r=Zr(i.body,e,t,n)||r);var o=tn();return o&&(r=Zr(o,e,t,n)||r),r}function ii(e,t,n){var r=Zt();r&&(ei(r,e,t,n),ei(r.body,e,t,n));var i=tn();i&&ei(i,e,t,n)}function oi(e,t,n,r){var i=!1;return t&&e&&e.length>0&&Ne(e,(function(e){e&&(!n||-1===Re(n,e))&&(i=ri(e,t,r)||i)})),i}function ai(e,t,n,r){var i=!1;return t&&e&&Ae(e)&&!(i=oi(e,t,n,r))&&n&&n.length>0&&(i=oi(e,t,null,r)),i}function si(e,t,n){e&&Ae(e)&&Ne(e,(function(e){e&&ii(e,t,n)}))}var ci,li=null,ui=r;function pi(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(mi,(function(e){var t=0|Wn(15);return("x"===e?t:3&t|8).toString(16)}))}function di(){var e=cn();return e&&e.now?e.now():He()}function fi(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=y,r=0;r<4;r++)n+=t[15&(e=Qn())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&Qn())|0];return n.substr(0,8)+n.substr(9,4)+"4"+n.substr(13,3)+i+n.substr(16,3)+n.substr(19,12)}var hi={_canUseCookies:void 0,isTypeof:de,isUndefined:fe,isNullOrUndefined:he,hasOwnProperty:ve,isFunction:be,isObject:ge,isDate:Ee,isArray:Ae,isError:Se,isString:Te,isNumber:Ce,isBoolean:Ie,toISOString:Oe,arrForEach:Ne,arrIndexOf:Re,arrMap:De,arrReduce:ke,strTrim:Le,objCreate:m,objKeys:ze,objDefineAccessors:Fe,addEventHandler:ri,dateNow:He,isIE:fn,disableCookies:bi,newGuid:pi,perfNow:di,newId:Yn,randomValue:Wn,random32:Qn,mwcRandomSeed:Kn,mwcRandom32:Xn,generateW3CId:fi},mi=/[xy]/g,vi={Attach:ti,AttachEvent:ti,Detach:ni,DetachEvent:ni};function gi(e,t){var n=yr(e,t),r=hi._canUseCookies;return null===li&&(li=[],ci=r,Fe(hi,"_canUseCookies",(function(){return ci}),(function(e){ci=e,Ne(li,(function(t){t.setEnabled(e)}))}))),-1===Re(li,n)&&li.push(n),Ie(r)&&n.setEnabled(r),Ie(ci)&&n.setEnabled(ci),n}function bi(){gi().setEnabled(!1)}var yi=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,_i="00",xi="ff",wi="00000000000000000000000000000000",Ei="0000000000000000";function Ai(e,t,n){return!(!e||e.length!==t||e===n||!e.match(/^[\da-f]*$/))}function Si(e,t,n){return Ai(e,t)?e:n}function Ti(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function Ci(e){if(!e||(Ae(e)&&(e=e[0]||""),!e||!Te(e)||e.length>8192))return null;var t=yi.exec(Le(e));return t&&t[1]!==xi&&t[2]!==wi&&t[3]!==Ei?{version:t[1],traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}:null}function Ii(e){return Ai(e,32,wi)}function Pi(e){return Ai(e,16,Ei)}function Oi(e){return!!(e&&Ai(e.version,2,xi)&&Ai(e.traceId,32,wi)&&Ai(e.spanId,16,Ei)&&Ai(Ti(e.traceFlags),2))}var Ni=ir("plugin");function Ri(e){return Ni.get(e,"state",{},!0)}function Di(e,t){for(var n,r=[],i=null,o=e.getNext();o;){var a=o.getPlugin();a&&(i&&be(i[w])&&be(a[_])&&i[w](a),(be(a[E])?a[E]():(n=Ri(a))[E])||r.push(a),i=a,o=o.getNext())}Ne(r,(function(r){var i=e.core();r.initialize(e.getCfg(),i,t,e.getNext()),n=Ri(r),!r[S]&&!n[S]&&(n[S]=i),n[E]=!0,delete n[A]}))}function ki(e){return e.sort((function(e,t){var n=0;if(t){var r=be(t[_]);be(e[_])?n=r?e[x]-t[x]:1:r&&(n=-1)}else n=e?1:-1;return n}))}var Li="TelemetryPluginChain",Mi="_hasRun",ji="_getTelCtx",zi=0;function Fi(e,t,n,r){var i=null,o=[];null!==r&&(i=r?function(e,t,n){for(;e;){if(e.getPlugin()===n)return e;e=e.getNext()}return qi([n],t.config||{},t)}(e,n,r):e);var a={_next:function(){var e=i;if(i=e?e.getNext():null,!e){var t=o;t&&t.length>0&&(Ne(t,(function(e){try{e.func.call(e.self,e.args)}catch(e){Nn(n.logger,2,73,"Unexpected Exception during onComplete - "+hn(e))}})),o=[])}return e},ctx:{core:function(){return n},diagLog:function(){return In(n,t)},getCfg:function(){return t},getExtCfg:s,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=s(e,null);return o&&!he(o[n])?i=o[n]:t&&!he(t[n])&&(i=t[n]),he(i)?r:i},hasNext:function(){return!!i},getNext:function(){return i},setNext:function(e){i=e},iterate:function(e){for(var t;t=a._next();){var n=t.getPlugin();n&&e(n)}},onComplete:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];e&&o.push({func:e,self:fe(t)?a.ctx:t,args:n})}}};function s(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t.extensionConfig;o&&e&&(i=o[e])}if(i){if(ge(n)&&0!==r){var a=et(!0,n,i);t&&2===r&&_e(n,(function(e){if(he(a[e])){var n=t[e];he(n)||(a[e]=n)}})),i=a}}else i=n;return i}return a}function Bi(e,t,n,r){var i=Fi(e,t,n,r),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.processTelemetry(e,o),!t},o.createNew=function(e,r){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,t,n,r)),Bi(e||o.getNext(),t,n,r)},o}function Vi(e,t,n){var r=t.config||{},i=Fi(e,r,t,n),o=i.ctx;return o.processNext=function(e){var t=i._next();return t&&t.unload(o,e),!t},o.createNew=function(e,n){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,r,t,n)),Vi(e||o.getNext(),t,n)},o}function Ui(e,t,n){var r=t.config||{},i=Fi(e,r,t,n).ctx;return i.processNext=function(e){return i.iterate((function(t){be(t.update)&&t.update(i,e)}))},i.createNew=function(e,n){return void 0===e&&(e=null),Ae(e)&&(e=qi(e,r,t,n)),Ui(e||i.getNext(),t,n)},i}function qi(e,t,n,r){var i=null,o=!r;if(Ae(e)&&e.length>0){var a=null;Ne(e,(function(e){if(!o&&r===e&&(o=!0),o&&e&&be(e.processTelemetry)){var s=function(e,t,n){var r,i=null,o=be(e.processTelemetry),a=be(e.setNextPlugin),s={getPlugin:function(){return e},getNext:function(){return i},processTelemetry:function(r,l){c(l=l||function(){var r;return e&&be(e[ji])&&(r=e[ji]()),r||(r=Bi(s,t,n)),r}(),(function(t){if(!e||!o)return!1;var n=Ri(e);return!n.teardown&&!n[C]&&(a&&e.setNextPlugin(i),e.processTelemetry(r,t),!0)}),"processTelemetry",(function(){return{item:r}}),!r.sync)||l.processNext(r)},unload:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ri(e),o=e[S]||i.core;e&&(!o||o===t[S]())&&!i[A]&&(i[S]=null,i[A]=!0,i[E]=!1,e[A]&&!0===e[A](t,n)&&(r=!0))}return r}),"unload",(function(){}),n.isAsync)||t.processNext(n)},update:function(t,n){c(t,(function(){var r=!1;if(e){var i=Ri(e),o=e[S]||i.core;e&&(!o||o===t[S]())&&!i[A]&&e[T]&&!0===e[T](t,n)&&(r=!0)}return r}),"update",(function(){}),!1)||t.processNext(n)},_id:r=e?e.identifier+"-"+e.priority+"-"+zi++:"Unknown-0-"+zi++,_setNext:function(e){i=e}};function c(t,n,o,a,s){var c=!1,l=e?e.identifier:Li,u=t[Mi];return u||(u=t[Mi]={}),t.setNext(i),e&&zn(t[S](),(function(){return l+":"+o}),(function(){u[r]=!0;try{var e=i?i._id:y;e&&(u[e]=!1),c=n(t)}catch(e){var a=!i||u[i._id];a&&(c=!0),(!i||!a)&&Nn(t.diagLog(),1,73,"Plugin ["+l+"] failed during "+o+" - "+hn(e)+", run flags: "+hn(u))}}),a,s),c}return Ue(s)}(e,t,n);i||(i=s),a&&a._setNext(s),a=s}}))}return r&&!i?qi([r],t,n):i}var Hi="extensionConfig",Gi=500;function $i(e,t,n,r){t&&Ae(t)&&t.length>0&&(Ne(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Gi&&Xe("Channel has invalid priority - "+e.identifier)})),e.push({queue:Ue(t),chain:qi(t,n,r)}))}function Wi(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Ne(e,(function(e){try{e(t,n)}catch(e){Nn(t.diagLog(),2,73,"Unexpected error calling unload handler - "+hn(e))}})),e=[]}}}var Qi="getPlugin",Ki=function e(){var t,n,r,i,o,a=this;function s(e){void 0===e&&(e=null);var t=e;if(!t){var i=n||Bi(null,{},a.core);t=r&&r[Qi]?i.createNew(null,r[Qi]):i.createNew(null,r)}return t}function c(e,t,i){e&&$e(e,Hi,[],null,he),!i&&t&&(i=t.getProcessTelContext().getNext());var o=r;r&&r[Qi]&&(o=r[Qi]()),a.core=t,n=Bi(i,e,t,o)}function l(){t=!1,a.core=null,n=null,r=null,o=[],i=Wi()}l(),Rt(e,a,(function(e){e.initialize=function(e,n,r,i){c(e,n,i),t=!0},e.teardown=function(t,n){var a=e.core;if(a&&(!t||a===t.core())){var s,c=!1,u=t||Vi(null,a,r&&r[Qi]?r[Qi]():r),p=n||{reason:0,isAsync:!1};return e[I]&&!0===e[I](u,p,d)?s=!0:d(),s}function d(){c||(c=!0,i.run(u,n),Ne(o,(function(e){e.rm()})),o=[],!0===s&&u.processNext(p),l())}},e.update=function(t,n){var i=e.core;if(i&&(!t||i===t.core())){var o,a=!1,s=t||Ui(null,i,r&&r[Qi]?r[Qi]():r),l=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,l,u)?o=!0:u(),o}function u(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(Ae(e)?o=o.concat(e):o.push(e))},Je(e,"_addUnloadCb",(function(){return i}),"add")})),a.diagLog=function(e){return s(e).diagLog()},a[E]=function(){return t},a.setInitialized=function(e){t=e},a[w]=function(e){r=e},a.processNext=function(e,t){t?t.processNext(e):r&&be(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s},Xi=function(e){function t(){var n,r,i=e.call(this)||this;function o(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,o(),Rt(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Ne(r,(function(e,n){if(e.id===t.id)return r.splice(n,1),-1}))}}},e.processTelemetry=function(t,n){for(var i=!1,o=r.length,a=0;a<o;++a){var s=r[a];if(s)try{if(!1===s.fn.apply(null,[t])){i=!0;break}}catch(e){Nn(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+Ge(e),{exception:hn(e)},!0)}}i||e.processNext(t,n)},e[I]=function(){o()}})),i}return g(t,e),t}(Ki),Yi="Plugins must provide initialize method",Ji="_notificationManager",Zi="SDK is still unloading...",eo={loggingLevelConsole:1};function to(e,t){return new Mn(t)}function no(e,t){var n=!1;return Ne(t,(function(t){if(t===e)return n=!0,-1})),n}var ro=function e(){var t,n,r,i,o,a,s,c,l,u,p,d,f,h,v,g,y,_,x,w=0;Rt(e,this,(function(e){function E(){t=!1,e.config=et(!0,{},eo),e.logger=new Pn(e.config),e._extensions=[],h=new Xi,n=[],r=null,i=null,o=null,a=null,s=null,l=null,c=[],u=null,p=null,d=null,f=!1,v=null,g=rr("AIBaseCore",!0),y=Wi(),x=null}function S(){return Bi(R(),e.config,e)}function T(t,n){var r=function(e,t,n){var r=[],i={};return Ne(n,(function(t){(he(t)||he(t.initialize))&&Xe(Yi);var n=t.priority,o=t.identifier;t&&n&&(he(i[n])?i[n]=o:Rn(e,"Two extensions have same priority #"+n+" - "+i[n]+", "+o)),(!n||n<500)&&r.push(t)})),{all:n,core:r}}(e.logger,0,c);l=r.core,s=null;var i=r.all;if(d=Ue(function(e,t,n,r){var i=[];if(e&&Ne(e,(function(e){return $i(i,e,n,r)})),t){var o=[];Ne(t,(function(e){e.priority>Gi&&o.push(e)})),$i(i,o,n,r)}return i}(p,i,t,e)),u){var o=Re(i,u);-1!==o&&i.splice(o,1),-1!==(o=Re(l,u))&&l.splice(o,1),u._setQueue(d)}else u=function(e,t){var n;function r(){return Bi(null,t.config,t,null)}function i(e,t,n,r){var i=e?e.length+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&Ne(e,(function(e){if(e&&e.queue.length>0){var r=e.chain,a=t.createNew(r);a.onComplete(o),n(a)}else i--})),o()}var o=!1;return(n={identifier:"ChannelControllerPlugin",priority:Gi,initialize:function(t,n,r,i){o=!0,Ne(e,(function(e){e&&e.queue.length>0&&Di(Bi(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,n){i(e,n||r(),(function(e){e[P](t)}),(function(){n[P](t)}))},update:function(t,n){var r=n||{reason:0};return i(e,t,(function(e){e[P](r)}),(function(){t[P](r)})),!0}})[N]=function(){i(e,r(),(function(e){e.iterate((function(e){e[N]&&e[N]()}))}),null)},n[O]=function(){i(e,r(),(function(e){e.iterate((function(e){e[O]&&e[O]()}))}),null)},n[A]=function(t,n){var r=n||{reason:0,isAsync:!1};return i(e,t,(function(e){e[P](r)}),(function(){t[P](r),o=!1})),!0},n.getChannel=function(t){var n=null;return e&&e.length>0&&Ne(e,(function(e){if(e&&e.queue.length>0&&(Ne(e.queue,(function(e){if(e.identifier===t)return n=e,-1})),n))return-1})),n},n.flush=function(t,n,o,a){var s=1,c=!1,l=null;function u(){s--,c&&0===s&&(l&&(clearTimeout(l),l=null),n&&n(c),n=null)}return a=a||5e3,i(e,r(),(function(e){e.iterate((function(e){if(e.flush){s++;var n=!1;e.flush(t,(function(){n=!0,u()}),o)||n||(t&&null==l?l=setTimeout((function(){l=null,u()}),a):u())}}))}),(function(){c=!0,u()})),!0},n._setQueue=function(t){e=t},n}(d,e);i.push(u),l.push(u),e._extensions=ki(i),u.initialize(t,e,i),Di(S(),i),e._extensions=Ue(ki(l||[])).slice(),n&&function(t){var n=Ui(R(),e);(!e._updateHook||!0!==e._updateHook(n,t))&&n.processNext(t)}(n)}function I(t){var n=null,r=null;return Ne(e._extensions,(function(e){if(e.identifier===t&&e!==u&&e!==h)return r=e,-1})),!r&&u&&(r=u.getChannel(t)),r&&(n={plugin:r,setEnabled:function(e){Ri(r)[C]=!e},isEnabled:function(){var e=Ri(r);return!e[A]&&!e[C]},remove:function(t,n){void 0===t&&(t=!0);var i=[r];z(i,{reason:1,isAsync:t},(function(t){t&&T(e.config,{reason:32,removed:i}),n&&n(t)}))}}),n}function R(){if(!s){var t=(l||[]).slice();-1===Re(t,h)&&t.push(h),s=qi(ki(t),e.config,e)}return s}function z(t,n,r){if(t&&t.length>0){var i=Vi(qi(t,e.config,e),e);i.onComplete((function(){var e=!1,n=[];Ne(c,(function(r,i){no(r,t)?e=!0:n.push(r)})),c=n;var i=[];p&&(Ne(p,(function(n,r){var o=[];Ne(n,(function(n){no(n,t)?e=!0:o.push(n)})),i.push(o)})),p=i),r&&r(e)})),i.processNext(n)}else r(!1)}function F(){var t=e.logger?e.logger.queue:[];t&&(Ne(t,(function(t){var n={name:v||"InternalMessageId: "+t.messageId,iKey:e.config.instrumentationKey,time:Oe(new Date),baseType:Cn.dataType,baseData:{message:t.message}};e.track(n)})),t.length=0)}function B(e,t,n,r){return u?u.flush(e,t,n||6,r):(t&&t(!1),!0)}function V(t){var n=e.logger;n?Nn(n,2,73,t):Xe(t)}E(),e.isInitialized=function(){return t},e.initialize=function(n,i,a,s){f&&Xe(Zi),e.isInitialized()&&Xe("Core should not be initialized more than once"),(!n||he(n.instrumentationKey))&&Xe("Please provide instrumentation key"),r=s,e[Ji]=s,e.config=n||{},function(e){!0===e.disableDbgExt&&_&&(r[k](_),_=null),r&&!_&&!0!==e.disableDbgExt&&(_=An(e),r[D](_))}(n),function(t){!t.enablePerfMgr&&o&&(o=null),t.enablePerfMgr&&$e(e.config,"createPerfMgr",to)}(n),n.extensions=he(n.extensions)?[]:n.extensions,function(e){We(e,Hi).NotificationManager=r}(n),a&&(e.logger=a),(c=[]).push.apply(c,b(b([],i),n.extensions)),p=(n||{}).channels,T(n,null),(!d||0===d.length)&&Xe("No channels available"),t=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return d&&Ne(d,(function(t){e.push(t.queue)})),Ue(e)},e.track=function(t){$e(t,"iKey",e.config.instrumentationKey,null,Qe),$e(t,"time",Oe(new Date),null,Qe),$e(t,"ver","4.0",null,he),!f&&e.isInitialized()?S().processNext(t):n.push(t)},e.getProcessTelContext=S,e.getNotifyMgr=function(){return r||(r=function(){var e;return m(((e={})[D]=function(e){},e[k]=function(e){},e[L]=function(e){},e[M]=function(e,t){},e[j]=function(e,t){},e))}(),e[Ji]=r),r},e[D]=function(e){r&&r[D](e)},e[k]=function(e){r&&r[k](e)},e.getCookieMgr=function(){return a||(a=xr(e.config,e.logger)),a},e.setCookieMgr=function(e){a=e},e.getPerfMgr=function(){return!i&&!o&&e.config&&e.config.enablePerfMgr&&be(e.config.createPerfMgr)&&(o=e.config.createPerfMgr(e,e.getNotifyMgr())),i||o||Fn()},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return n.length},e.releaseQueue=function(){if(t&&n.length>0){var e=n;n=[],Ne(e,(function(e){S().processNext(e)}))}},e.pollInternalLogs=function(t){v=t||null;var n=e.config.diagnosticLogInterval;return(!n||!(n>0))&&(n=1e4),w&&clearInterval(w),w=setInterval((function(){F()}),n)},e.stopPollingInternalLogs=function(){w&&(clearInterval(w),w=0,F())},Ze(e,(function(){return h}),["addTelemetryInitializer"]),e.unload=function(n,r,i){void 0===n&&(n=!0),t||Xe("SDK is not initialized"),f&&Xe(Zi);var o={reason:50,isAsync:n,flushComplete:!1},a=Vi(R(),e);function s(t){o.flushComplete=t,f=!0,y.run(a,o),e.stopPollingInternalLogs(),a.processNext(o)}a.onComplete((function(){E(),r&&r(o)}),e),B(n,s,6,i)||s(!1)},e.getPlugin=I,e.addPlugin=function(t,n,r,i){if(!t)return i&&i(!1),void V(Yi);var o=I(t.identifier);if(o&&!n)return i&&i(!1),void V("Plugin ["+t.identifier+"] is already loaded!");var a={reason:16};function s(n){c.push(t),a.added=[t],T(e.config,a),i&&i(!0)}if(o){var l=[o.plugin];z(l,{reason:2,isAsync:!!r},(function(e){e?(a.removed=l,a.reason|=32,s()):i&&i(!1)}))}else s()},e.evtNamespace=function(){return g},e.flush=B,e.getTraceCtx=function(e){return x||(x=function(){var e={};return{getName:function(){return e.name},setName:function(t){e.name=t},getTraceId:function(){return e.traceId},setTraceId:function(t){Ii(t)&&(e.traceId=t)},getSpanId:function(){return e.spanId},setSpanId:function(t){Pi(t)&&(e.spanId=t)},getTraceFlags:function(){return e.traceFlags},setTraceFlags:function(t){e.traceFlags=t}}}()),x},e.setTraceCtx=function(e){x=e||null},Je(e,"addUnloadCb",(function(){return y}),"add")}))};function io(e,t,n,r){Ne(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch{}}))}var oo=function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;Rt(e,this,(function(e){e[D]=function(t){e.listeners.push(t)},e[k]=function(t){for(var n=Re(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Re(e.listeners,t)},e[L]=function(t){io(e.listeners,L,!0,(function(e){e[L](t)}))},e[M]=function(t,n){io(e.listeners,M,!0,(function(e){e[M](t,n)}))},e[j]=function(t,n){io(e.listeners,j,n,(function(e){e[j](t,n)}))},e[z]=function(t){t&&(n||!t.isChildEvt())&&io(e.listeners,z,!1,(function(e){t.isAsync?setTimeout((function(){return e[z](t)}),0):e[z](t)}))}}))},ao=function(e){function t(){var n=e.call(this)||this;return Rt(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],2)}e.initialize=function(e,n,r,i){t.initialize(e,n,r||new Pn(e),i||new oo(e))},e.track=function(r){zn(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),Xe("Invalid telemetry item")),function(e){he(e.name)&&(n(e),Xe("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return g(t,e),t}(ro),so=tt({CRITICAL:1,WARNING:2}),co=tt({BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103,FailedAddingCustomDefinedRequestContext:104,InMemoryStorageBufferFull:105,InstrumentationKeyDeprecation:106}),lo="_aiHooks",uo=["req","rsp","hkErr","fnErr"];function po(e,t){if(e)for(var n=0;n<e.length&&!t(e[n],n);n++);}function fo(e,t,n,r,i){i>=0&&i<=2&&po(e,(function(e,o){var a=e.cbks,s=a[uo[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s.apply(t.inst,n)}catch(e){var c=t.err;try{var l=a[uo[2]];l&&(t.err=e,l.apply(t.inst,n))}catch{}finally{t.err=c}}}}))}function ho(e,t,n){var r=null;return e&&(ve(e,t)?r=e:n&&(r=ho(pe(e),t,!1))),r}function mo(e,t,n,r){var i=n&&n[lo];if(!i){var o=function(e){return function(){var t=arguments,n=e.h,r={name:e.n,inst:this,ctx:null,set:function(e,n){(t=a([],t))[e]=n,o=a([r],t)}},i=[],o=a([r],t);function a(e,t){return po(t,(function(t){e.push(t)})),e}r.evt=Yt("event"),fo(n,r,o,i,0);var s=e.f;if(s)try{r.rslt=s.apply(this,t)}catch(e){throw r.err=e,fo(n,r,o,i,3),e}return fo(n,r,o,i,1),r.rslt}}(i={i:0,n:t,f:n,h:[]});o[lo]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;po(i.h,(function(t,n){if(t.id===e)return i.h.splice(n,1),1}))}};return i.i++,i.h.push(a),a}function vo(e,n,r,i){if(void 0===i&&(i=!0),e&&n&&r){var o=ho(e,n,i);if(o){var a=o[n];if(typeof a===t)return mo(o,n,a,r)}}return null}function go(e,t,n,r){void 0===r&&(r=!0);var i=null;return po(t,(function(t){var o=vo(e,t,n,r);o&&(i||(i=[]),i.push(o))})),i}e.AppInsightsCore=ao,e.BaseCore=ro,e.BaseTelemetryPlugin=Ki,e.CoreUtils=hi,e.DiagnosticLogger=Pn,e.EventHelper=vi,e.EventsDiscardedReason=nt,e.InstrumentEvent=function(e,t,n,r){if(e&&t&&n){var i=ho(e,t,r)||e;if(i)return mo(i,t,i[t],n)}return null},e.InstrumentFunc=vo,e.InstrumentFuncs=go,e.InstrumentProto=function(e,t,n){return e?vo(e[i],t,n,!1):null},e.InstrumentProtos=function(e,t,n){return e?go(e[i],t,n,!1):null},e.LoggingSeverity=so,e.MinChannelPriorty=100,e.NotificationManager=oo,e.PerfEvent=Ln,e.PerfManager=Mn,e.ProcessTelemetryContext=function(e,t,n,r){var i=Bi(e,t,n,r);Ze(this,i,ze(i))},e.Undefined=ui,e._InternalLogMessage=Cn,e._InternalMessageId=co,e.__getRegisteredEvents=function(e,t,n){var r=[],i=Gr.get(e,kr,{},!1),o=Qr(t,n);return _e(i,(function(e,t){Ne(t,(function(e){(!o.type||o.type===e.evtName.type)&&(!o.ns||o.ns==o.ns)&&r.push({name:e.evtName.type+(e.evtName.ns?"."+e.evtName.ns:""),handler:e.handler})}))})),r},e._legacyCookieMgr=gi,e._logInternalMessage=function(e,t,n){On(e).logInternalMessage(t,n)},e._throwInternal=Nn,e._warnToConsole=Rn,e.addEventHandler=ri,e.addEventListeners=ai,e.addPageHideEventListener=function e(t,n,r){var i=Jr(Br,r),o=oi([Mr],t,n,i);return(!n||-1===Re(n,Lr))&&(o=oi([Lr],(function(e){var n=tn();t&&n&&"hidden"===n.visibilityState&&t(e)}),n,i)||o),!o&&n&&(o=e(t,null,r)),o},e.addPageShowEventListener=function e(t,n,r){var i=Jr(Vr,r),o=oi([jr],t,n,i);return!(o=oi([Lr],(function(e){var n=tn();t&&n&&"visible"===n.visibilityState&&t(e)}),n,i)||o)&&n&&(o=e(t,null,r)),o},e.addPageUnloadEventListener=function(e,t,n){return ai([Fr,zr,Mr],e,t,n)},e.areCookiesSupported=wr,e.arrForEach=Ne,e.arrIndexOf=Re,e.arrMap=De,e.arrReduce=ke,e.attachEvent=ti,e.canUseCookies=function(e){return gi(null,e).isEnabled()},e.createClassFromInterface=function(e){return function(){var t=this;e&&_e(e,(function(e,n){t[e]=n}))}},e.createCookieMgr=xr,e.createEnumMap=function(e){var t={};return _e(e,(function(e,n){t[e]=e,t[n]=e})),Ve(t)},e.createEnumStyle=tt,e.createProcessTelemetryContext=Bi,e.createTraceParent=function(e,t,n,r){return{version:Ai(r,2,xi)?r:_i,traceId:Ii(e)?e:fi(),spanId:Pi(t)?t:fi().substr(0,16),traceFlags:n>=0&&n<=255?n:1}},e.createUniqueNamespace=rr,e.createUnloadHandlerContainer=Wi,e.createValueMap=function(e){var t={};return _e(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),Ve(t)},e.dateNow=He,e.deepFreeze=Ve,e.deleteCookie=function(e,t){return gi(null,e).del(t)},e.detachEvent=ni,e.disableCookies=bi,e.doPerf=zn,e.dumpObj=hn,e.eventOff=ei,e.eventOn=Zr,e.findMetaTag=gn,e.findNamedServerTiming=bn,e.findW3cTraceParent=function(){var e="traceparent",t=Ci(gn(e));return t||(t=Ci(bn(e))),t},e.formatTraceParent=function(e){if(e){var t=Ti(e.traceFlags);Ai(t,2)||(t="01");var n=e.version||_i;return"00"!==n&&"ff"!==n&&(n=_i),"".concat(n,"-").concat(Si(e.traceId,32,wi),"-").concat(Si(e.spanId,16,Ei),"-").concat(t)}return""},e.generateW3CId=fi,e.getConsole=sn,e.getCookie=function(e,t){return gi(null,e).get(t)},e.getCrypto=pn,e.getDebugExt=En,e.getDebugListener=An,e.getDocument=tn,e.getExceptionName=Ge,e.getGblPerfMgr=Fn,e.getGlobal=f,e.getGlobalInst=Yt,e.getHistory=function(){return on()?history:Yt("history")},e.getIEVersion=function(e){if(void 0===e&&(e=null),!e){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}var n=(e||y).toLowerCase();if(we(n,Ut)){var r=tn()||{};return Math.max(parseInt(n.split(Ut)[1]),r.documentMode||0)}if(we(n,qt)){var i=parseInt(n.split(qt)[1]);if(i)return i+4}return null},e.getJSON=un,e.getLocation=an,e.getMsCrypto=dn,e.getNavigator=rn,e.getPerformance=cn,e.getSetValue=We,e.getWindow=Zt,e.hasDocument=en,e.hasHistory=on,e.hasJSON=ln,e.hasNavigator=nn,e.hasOwnProperty=ve,e.hasWindow=Jt,e.initializePlugins=Di,e.isArray=Ae,e.isBeaconsSupported=function(){return null===Kt&&(Kt=nn()&&Boolean(rn().sendBeacon)),Kt},e.isBoolean=Ie,e.isDate=Ee,e.isError=Se,e.isFetchSupported=function(e){var t=!1;try{t=!!Yt("fetch");var n=Yt("Request");t&&e&&n&&(t=Xt(n,"keepalive"))}catch{}return t},e.isFunction=be,e.isIE=fn,e.isNotNullOrUndefined=me,e.isNotTruthy=Qe,e.isNotUndefined=function(e){return!fe(e)},e.isNullOrUndefined=he,e.isNumber=Ce,e.isObject=ge,e.isReactNative=function(){var e=rn();return!(!e||!e.product)&&"ReactNative"===e.product},e.isSafari=function(e){if(!e||!Te(e)){var t=rn()||{};e=t?(t.userAgent||y).toLowerCase():y}return(e||y).toLowerCase().indexOf("safari")>=0},e.isSampledFlag=function(e){return!(!Oi(e)||1&~e.traceFlags)},e.isString=Te,e.isSymbol=function(e){return"symbol"==typeof e},e.isTruthy=Ke,e.isTypeof=de,e.isUndefined=fe,e.isValidSpanId=Pi,e.isValidTraceId=Ii,e.isValidTraceParent=Oi,e.isXhrSupported=mn,e.mergeEvtNamespace=Jr,e.mwcRandom32=Xn,e.mwcRandomSeed=Kn,e.newGuid=pi,e.newId=Yn,e.normalizeJsName=ye,e.objCreate=m,e.objDefineAccessors=Fe,e.objExtend=et,e.objForEachKey=_e,e.objFreeze=Ue,e.objKeys=ze,e.objSeal=qe,e.objToString=function(e){return ie.call(e)},e.optimizeObject=function(e){return e&&c&&(e=a(c({},e))),e},e.parseTraceParent=Ci,e.perfNow=di,e.proxyAssign=function(e,t,n){if(e&&t&&ge(e)&&ge(t)){var r=function(r){if(Te(r)){var i=t[r];be(i)?(!n||n(r,!0,t,e))&&(e[r]=Ye(t,r)):(!n||n(r,!1,t,e))&&(ve(e,r)&&delete e[r],Fe(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e},e.proxyFunctionAs=Je,e.proxyFunctions=Ze,e.random32=Qn,e.randomValue=Wn,e.removeEventHandler=ii,e.removeEventListeners=si,e.removePageHideEventListener=function(e,t){var n=Jr(Br,t);si([Mr],e,n),si([Lr],null,n)},e.removePageShowEventListener=function(e,t){var n=Jr(Vr,t);si([jr],e,n),si([Lr],null,n)},e.removePageUnloadEventListener=function(e,t){si([Fr,zr,Mr],e,t)},e.safeGetCookieMgr=function(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r[dr]?r[dr]:xr(t)}return n||(n=yr(t,(e||{}).logger)),n},e.safeGetLogger=In,e.setCookie=function(e,t,n,r){gi(null,e).set(t,n,null,r)},e.setEnableEnvMocks=function(e){Wt=e},e.setGblPerfMgr=function(e){kn=e},e.setValue=$e,e.sortPlugins=ki,e.strContains=we,e.strEndsWith=xe,e.strFunction=t,e.strObject=n,e.strPrototype=i,e.strStartsWith=function(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=te?e[V](t):function(e,t){var n=!1,r=t?t.length:0;if(e&&r&&e.length>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n},e.strTrim=Le,e.strUndefined=r,e.throwError=Xe,e.toISOString=Oe,e.uaDisallowsSameSiteNone=Ir,e.unloadComponents=function(e,t,n,r){var i=0;return function r(){for(;i<e.length;){var o=e[i++];if(o){var a=o._doUnload||o[I];if(be(a)&&!0===a.call(o,t,n,r))return!0}}}()},e.useXDomainRequest=function(){return null===Qt&&(Qt=typeof XDomainRequest!==r)&&mn()&&(Qt=Qt&&!Xt(Yt(Ht),"withCredentials")),Qt},function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),S=_(((i,a)=>{var s;s=function(){"use strict";var e="constructor",t="prototype",n="function",r="_dynInstFuncs",i="_isDynProxy",o="_dynClass",a="_dynInstChk",s=a,c="_dfOpts",l="_unknown_",u="__proto__",p="_dyn"+u,d="_dynInstProto",f="useBaseInst",h="setInstFuncs",m=Object,v=m.getPrototypeOf,g=m.getOwnPropertyNames,b=0;function y(e,n){return e&&m[t].hasOwnProperty.call(e,n)}function _(e){return e&&(e===m[t]||e===Array[t])}function x(e){return _(e)||e===Function[t]}function w(n){var r;if(n){if(v)return v(n);var i=n[u]||n[t]||(n[e]?n[e][t]:null);r=n[p]||i,y(n,p)||(delete n[d],r=n[p]=n[d]||n[p],n[d]=i)}return r}function E(e,t){var n=[];if(g)n=g(e);else for(var r in e)"string"==typeof r&&y(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function A(t,r,i){return r!==e&&typeof t[r]===n&&(i||y(t,r))}function S(e){throw new TypeError("DynamicProto: "+e)}function T(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function C(e,t,c,l,u){if(!_(e)){var p=c[r]=c[r]||{},d=p[t]=p[t]||{};!1!==p[s]&&(p[s]=!!u),E(c,(function(t){A(c,t,!1)&&c[t]!==l[t]&&(d[t]=c[t],delete c[t],(!y(e,t)||e[t]&&!e[t][i])&&(e[t]=function(e,t){var c=function(){var i=function(e,t,i,c){var l=null;if(e&&y(i,o)){var u=e[r]||{};if((l=(u[i[o]]||{})[t])||S("Missing ["+t+"] "+n),!l[a]&&!1!==u[s]){for(var p=!y(e,t),d=w(e),f=[];p&&d&&!x(d)&&!T(f,d);){var h=d[t];if(h){p=h===c;break}f.push(d),d=w(d)}try{p&&(e[t]=l),l[a]=1}catch{u[s]=!1}}}return l}(this,t,e,c)||function(e,t,r){var i=t[e];return i===r&&(i=w(t)[e]),typeof i!==n&&S("["+e+"] is not a "+n),i}(t,e,c);return i.apply(this,arguments)};return c[i]=1,c}(e,t)))}))}}function I(n,r){return y(n,t)?n.name||r||l:((n||{})[e]||{}).name||r||l}function P(e,n,a,l){y(e,t)||S("theClass is an invalid class definition.");var u=e[t];(function(e,t){if(v){for(var n=[],r=w(t);r&&!x(r)&&!T(n,r);){if(r===e)return!0;n.push(r),r=w(r)}return!1}return!0})(u,n)||S("["+I(e)+"] is not in class hierarchy of ["+I(n)+"]");var p=null;y(u,o)?p=u[o]:(p="_dynCls$"+I(e,"_")+"$"+b,b++,u[o]=p);var d=P[c],m=!!d[f];m&&l&&void 0!==l[f]&&(m=!!l[f]);var g=function(e){var t={};return E(e,(function(n){!t[n]&&A(e,n,!1)&&(t[n]=e[n])})),t}(n),_=function(e,t,n,a){function c(e,t,n){var c=t[n];if(c[i]&&a){var l=e[r]||{};!1!==l[s]&&(c=(l[t[o]]||{})[n]||c)}return function(){return c.apply(e,arguments)}}var l={};E(n,(function(e){l[e]=c(t,n,e)}));for(var u=w(e),p=[];u&&!x(u)&&!T(p,u);)E(u,(function(e){!l[e]&&A(u,e,!v)&&(l[e]=c(t,u,e))})),p.push(u),u=w(u);return l}(u,n,g,m);a(n,_);var O=!!v&&!!d[h];O&&l&&(O=!!l[h]),C(u,p,n,g,!1!==O)}return P[c]={setInstFuncs:!0,useBaseInst:!0},P},"object"==typeof i&&typeof a<"u"?a.exports=s():void 0===(o="function"==typeof(r=s)?r.call(t,n,t,e):r)||(e.exports=o)})),T=_(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o,a=(o=r)&&"object"==typeof o&&"default"in o?o.default:o,s=n.createEnumStyle({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),c=n.createEnumStyle({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),l=n.createEnumStyle({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),u=n.createEnumStyle({Normal:1,Critical:2}),p=n.createEnumStyle({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),d=n.objFreeze(t.__assignFn(t.__assignFn({},n._InternalMessageId),n.createEnumStyle({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),f="3.2.3",h="1DS-Web-JS-"+f,m="withCredentials",v=((i={})[0]=0,i[2]=6,i[1]=1,i[3]=7,i[4098]=6,i[4097]=1,i[4099]=7,i),g=null,b=Boolean(n.getDocument()),y=Boolean(n.getWindow());function _(e){return!(""===e||n.isNullOrUndefined(e))}function x(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function w(){return null===g&&(g=!n.isUndefined(Uint8Array)&&!function(){var e=n.getNavigator();if(!n.isUndefined(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!n.isReactNative()),g}function E(e){return!!(e&&n.isNumber(e)&&e>=1&&e<=4)}function A(e,t,r){if(!t&&!_(t)||"string"!=typeof e)return null;var i=typeof t;if("string"===i||"number"===i||"boolean"===i||n.isArray(t))t={value:t};else if("object"!==i||t.hasOwnProperty("value")){if(n.isNullOrUndefined(t.value)||""===t.value||!n.isString(t.value)&&!n.isNumber(t.value)&&!n.isBoolean(t.value)&&!n.isArray(t.value))return null}else t={value:r?JSON.stringify(t):t};if(n.isArray(t.value)&&!L(t.value))return null;if(!n.isNullOrUndefined(t.kind)){if(n.isArray(t.value)||!k(t.kind))return null;t.value=t.value.toString()}return t}function S(e,t,r){var i=-1;if(!n.isUndefined(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){return e>=0&&e<=9}(r))-1===i&&(i=0),i|=r;else{var o=v[j(e)]||-1;-1!==i&&-1!==o?i|=o:6===o&&(i=o)}return i}function T(){n.safeGetCookieMgr(null).setEnabled(!1)}function C(e,t,r){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).set(e,t,86400*r,null,"/")}function I(e){n.areCookiesSupported(null)&&n.safeGetCookieMgr(null).del(e)}function P(e){return n.areCookiesSupported(null)?O(n.safeGetCookieMgr(null),e):""}function O(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||""}function N(e){void 0===e&&(e="D");var t=n.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function R(e,t,r,i,o){var a={},s=!1,c=0,l=arguments.length,u=arguments;for("[object Boolean]"===Object[n.strPrototype].toString.call(u[0])&&(s=u[0],c++);c<l;c++)e=u[c],n.objForEachKey(e,(function(e,t){s&&t&&n.isObject(t)?n.isArray(t)?(a[e]=a[e]||[],n.arrForEach(t,(function(t,r){t&&n.isObject(t)?a[e][r]=R(!0,a[e][r],t):a[e][r]=t}))):a[e]=R(!0,a[e],t):a[e]=t}));return a}var D=n.perfNow;function k(e){return 0===e||e>0&&e<=13||32===e}function L(e){return e.length>0}function M(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=D()}function j(e){var r=0;if(null!=e){var i=typeof e;"string"===i?r=1:"number"===i?r=2:"boolean"===i?r=3:i===t.strShimObject&&(r=4,n.isArray(e)?(r=4096,e.length>0&&(r|=j(e[0]))):n.hasOwnProperty(e,"value")&&(r=8192|j(e.value)))}return r}var z={Version:f,FullVersionString:h,strUndefined:n.strUndefined,strObject:n.strObject,Undefined:n.strUndefined,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,objKeys:n.objKeys,toISOString:n.toISOString,isReactNative:n.isReactNative,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,isFunction:n.isFunction,isArray:n.isArray,isObject:n.isObject,strTrim:n.strTrim,isDocumentObjectAvailable:b,isWindowObjectAvailable:y,isValueAssigned:_,getTenantId:x,isBeaconsSupported:n.isBeaconsSupported,isUint8ArrayAvailable:w,isLatency:E,sanitizeProperty:A,getISOString:n.toISOString,useXDomainRequest:n.useXDomainRequest,getCommonSchemaMetaData:S,cookieAvailable:n.areCookiesSupported,disallowsSameSiteNone:n.uaDisallowsSameSiteNone,setCookie:C,deleteCookie:I,getCookie:P,createGuid:N,extend:R,getTime:D,isValueKind:k,isArrayValid:L,objDefineAccessors:n.objDefineAccessors,addPageUnloadEventListener:n.addPageUnloadEventListener,setProcessTelemetryTimings:M,addEventHandler:n.addEventHandler,getFieldValueType:j,strEndsWith:n.strEndsWith,objForEachKey:n.objForEachKey},F={_canUseCookies:void 0,isTypeof:n.isTypeof,isUndefined:n.isUndefined,isNullOrUndefined:n.isNullOrUndefined,hasOwnProperty:n.hasOwnProperty,isFunction:n.isFunction,isObject:n.isObject,isDate:n.isDate,isArray:n.isArray,isError:n.isError,isString:n.isString,isNumber:n.isNumber,isBoolean:n.isBoolean,toISOString:n.toISOString,arrForEach:n.arrForEach,arrIndexOf:n.arrIndexOf,arrMap:n.arrMap,arrReduce:n.arrReduce,strTrim:n.strTrim,objCreate:t.objCreateFn,objKeys:n.objKeys,objDefineAccessors:n.objDefineAccessors,addEventHandler:n.addEventHandler,dateNow:n.dateNow,isIE:n.isIE,disableCookies:T,newGuid:n.newGuid,perfNow:n.perfNow,newId:n.newId,randomValue:n.randomValue,random32:n.random32,mwcRandomSeed:n.mwcRandomSeed,mwcRandom32:n.mwcRandom32,generateW3CId:n.generateW3CId},B="version",V="properties",U=function(e){function r(){var t=e.call(this)||this;return t.pluginVersionStringArr=[],t.pluginVersionString="",a(r,t,(function(e,t){(!e.logger||!e.logger.queue)&&(e.logger=new n.DiagnosticLogger({loggingLevelConsole:1})),e.initialize=function(r,i,o,a){n.doPerf(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(r){r.endpointUrl||(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var s=r.propertyStorageOverride;if(s&&(!s.getProperty||!s.setProperty))throw new Error("Invalid property storage override passed.");r.channels&&n.arrForEach(r.channels,(function(t){t&&n.arrForEach(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return typeof document<"u"?0:-1},i&&n.arrForEach(i,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(r,i,o,a),e.pollInternalLogs("InternalLog")}catch(t){var c=e.logger,l=n.dumpObj(t);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),c.throwInternal(1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:r,extensions:i,logger:o,notificationManager:a}}))},e.track=function(r){n.doPerf(e,(function(){return"AppInsightsCore.track"}),(function(){var n=r;if(n){n.timings=n.timings||{},n.timings.trackStart=D(),E(n.latency)||(n.latency=1);var i=n.ext=n.ext||{};i.sdk=i.sdk||{},i.sdk.ver=h;var o=n.baseData=n.baseData||{};o[V]||(o[V]={});var a=o[V];a[B]||(a[B]=""),""!==e.pluginVersionString&&(a[B]=e.pluginVersionString)}t.track(n)}),(function(){return{item:r}}),!r.sync)}})),t}return t.__extendsFn(r,e),r}(n.AppInsightsCore),q=function(e){function r(){var t=e.call(this)||this;return a(r,t,(function(e,t){e.initialize=function(r,i,o,a){r&&!r.endpointUrl&&(r.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/"),e.getWParam=function(){return b?0:-1};try{t.initialize(r,i,o,a)}catch(t){n._throwInternal(e.logger,1,514,"Initialization Failed: "+n.dumpObj(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=h}t.track(n)}})),t}return t.__extendsFn(r,e),r}(n.BaseCore),H=n.isFunction;function G(e,t,n){return function(r){e[t]=r,n()}}var $=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch{}}),0)}}function s(e){0===n&&(r=e,n=1,o())}function c(e){0===n&&(r=e,n=2,o())}a(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?H(t)?t(r):r:H(a)?a(r):r)instanceof e?i.then(s,c):2!==n||H(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!H(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(s,c)}catch(e){c(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&H(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&H(a.then)?(i++,a.then(G(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&H(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}(),W=0,Q=[],K=[],X=[];function Y(){return(new Date).getTime()}var J=function(){function e(t,r){var i=0,o=(t||"<unnamed>")+"."+W;function s(e){var t=n.getGlobal();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+o+"] "+e)}function c(e){r&&r.warnToConsole("ESPromiseScheduler["+o+"] "+e)}W++,a(e,this,(function(e){var t=null,n=0;function r(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,a,l){var u=o+"."+n;n++,a&&(u+="-("+a+")");var p=u+"{"+i+"}";i++;var d,f,h,m={evt:null,tm:Y(),id:p,isRunning:!1,isAborted:!1};return m.evt=t?(d=m,f=t,h=new $((function(e,t){var n=Y()-f.tm,i=f.id;s("["+u+"] is waiting for ["+i+":"+n+" ms] to complete before starting -- ["+K.length+"] waiting and ["+Q.length+"] running"),d.abort=function(e){d.abort=null,r(K,u),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){r(K,u),x(d).then(e,t)}),(function(n){r(K,u),x(d).then(e,t)}))})),K.push(d),h):x(m),(t=m).evt._schId=p,m.evt;function v(e){for(var t=Y(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var a=null;o.abort?(a="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(a)):a="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",c(a),e.splice(i,1),r--}else i++}}function g(e,n){var i=!1,o=r(Q,e);if(o||(o=r(X,e),i=!0),o){o.to&&(clearTimeout(o.to),o.to=null);var a=Y()-o.tm;n?i?c("Timed out event ["+e+"] finally complete -- "+a+" ms"):s("Promise ["+e+"] Complete -- "+a+" ms"):(X.push(o),c("Event ["+e+"] Timed out and removed -- "+a+" ms"))}else s("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),v(Q),v(K),v(X)}function b(e,t){return function(n){return g(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof $?(s("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):b(e,n)(t)}),b(e,r))}function _(e,t){var n=e.id;return new $((function(r,i){s("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,g(n,!1),i(new Error(t))};var o=t(n);o instanceof $?(l&&(e.to=setTimeout((function(){g(n,!1),i(new Error("Timed out after ["+l+"] ms"))}),l)),y(n,o,(function(t){s("Event ["+n+"] Resolving after "+(Y()-e.tm)+" ms"),r(t)}),i)):(s("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function x(t){var n=Y();return t.wTm=n-t.tm,t.tm=n,t.isAborted?$.reject(new Error("["+u+"] was aborted")):(Q.push(t),_(t,e))}}}))}return e.incomplete=function(){return Q},e.waitingToStart=function(){return K},e}(),Z=function(){function e(e){var t=this,r={},i=[],o=[];function a(e,t){var a,s=r[e];if(s&&(a=s[t]),!a&&null!==a){if(n.isString(e)&&n.isString(t))if(o.length>0){for(var c=0;c<o.length;c++)if(o[c].handleField(e,t)){a={canHandle:!0,fieldHandler:o[c]};break}}else 0===i.length&&(a={canHandle:!0});if(!a&&null!==a)for(a=null,c=0;c<i.length;c++)if(i[c].handleField(e,t)){a={canHandle:!0,handler:i[c],fieldHandler:null};break}s||(s=r[e]={}),s[t]=a}return a}function s(e,t,r,i,o,a){if(e.handler)return e.handler.property(t,r,o,a);if(!n.isNullOrUndefined(o.kind)){if(!(4096&~i&&k(o.kind)))return null;o.value=o.value.toString()}return l(e.fieldHandler,t,r,i,o)}function c(e,t,n){return _(n)?{value:n}:null}function l(e,r,i,o,a){if(a&&e){var s=e.getSanitizer(r,i,o,a.kind,a.propertyType);if(s)if(4===o){var u={},p=a.value;n.objForEachKey(p,(function(t,n){var o=r+"."+i;if(_(n)){var a=c(0,0,n);(a=l(e,o,t,j(n),a))&&(u[t]=a.value)}})),a.value=u}else{var d={path:r,name:i,type:o,prop:a,sanitizer:t};a=s.call(t,d)}}return a}e&&o.push(e),t.addSanitizer=function(e){e&&(i.push(e),r={})},t.addFieldSanitizer=function(e){e&&(o.push(e),r={})},t.handleField=function(e,t){var n=a(e,t);return!!n&&n.canHandle},t.value=function(e,t,r,i){var o=a(e,t);if(o&&o.canHandle){if(!o||!o.canHandle)return null;if(o.handler)return o.handler.value(e,t,r,i);if(!n.isString(t)||n.isNullOrUndefined(r)||""===r)return null;var l=null,u=j(r);if(8192&~u)1!==u&&2!==u&&3!==u&&4096&~u?4===u&&(l=c(0,0,i?JSON.stringify(r):r)):l=c(0,0,r);else{var p=-8193&u;if(!_((l=r).value)||1!==p&&2!==p&&3!==p&&4096&~p)return null}if(l)return s(o,e,t,u,l,i)}return null},t.property=function(e,t,r,i){var o=a(e,t);if(!o||!o.canHandle||!n.isString(t)||n.isNullOrUndefined(r)||!_(r.value))return null;var c=j(r.value);return 0===c?null:s(o,e,t,c,r,i)}}return e.getFieldType=j,e}();e.BaseTelemetryPlugin=n.BaseTelemetryPlugin,e.DiagnosticLogger=n.DiagnosticLogger,e.EventHelper=n.EventHelper,e.EventsDiscardedReason=n.EventsDiscardedReason,e.InternalAppInsightsCore=n.AppInsightsCore,e.InternalBaseCore=n.BaseCore,e.LoggingSeverity=n.LoggingSeverity,e.MinChannelPriorty=n.MinChannelPriorty,e.NotificationManager=n.NotificationManager,e.PerfEvent=n.PerfEvent,e.PerfManager=n.PerfManager,e.ProcessTelemetryContext=n.ProcessTelemetryContext,e.Undefined=n.strUndefined,e._InternalLogMessage=n._InternalLogMessage,e._InternalMessageId=n._InternalMessageId,e.__getRegisteredEvents=n.__getRegisteredEvents,e._throwInternal=n._throwInternal,e.addEventHandler=n.addEventHandler,e.addEventListeners=n.addEventListeners,e.addPageHideEventListener=n.addPageHideEventListener,e.addPageShowEventListener=n.addPageShowEventListener,e.addPageUnloadEventListener=n.addPageUnloadEventListener,e.areCookiesSupported=n.areCookiesSupported,e.arrForEach=n.arrForEach,e.arrIndexOf=n.arrIndexOf,e.arrMap=n.arrMap,e.arrReduce=n.arrReduce,e.attachEvent=n.attachEvent,e.cookieAvailable=n.areCookiesSupported,e.createCookieMgr=n.createCookieMgr,e.createEnumStyle=n.createEnumStyle,e.createProcessTelemetryContext=n.createProcessTelemetryContext,e.createTraceParent=n.createTraceParent,e.createUniqueNamespace=n.createUniqueNamespace,e.createUnloadHandlerContainer=n.createUnloadHandlerContainer,e.dateNow=n.dateNow,e.detachEvent=n.detachEvent,e.disallowsSameSiteNone=n.uaDisallowsSameSiteNone,e.doPerf=n.doPerf,e.dumpObj=n.dumpObj,e.eventOff=n.eventOff,e.eventOn=n.eventOn,e.findW3cTraceParent=n.findW3cTraceParent,e.formatTraceParent=n.formatTraceParent,e.generateW3CId=n.generateW3CId,e.getConsole=n.getConsole,e.getCrypto=n.getCrypto,e.getDocument=n.getDocument,e.getExceptionName=n.getExceptionName,e.getGlobal=n.getGlobal,e.getGlobalInst=n.getGlobalInst,e.getHistory=n.getHistory,e.getIEVersion=n.getIEVersion,e.getISOString=n.toISOString,e.getJSON=n.getJSON,e.getLocation=n.getLocation,e.getMsCrypto=n.getMsCrypto,e.getNavigator=n.getNavigator,e.getPerformance=n.getPerformance,e.getSetValue=n.getSetValue,e.getWindow=n.getWindow,e.hasDocument=n.hasDocument,e.hasHistory=n.hasHistory,e.hasJSON=n.hasJSON,e.hasNavigator=n.hasNavigator,e.hasOwnProperty=n.hasOwnProperty,e.hasWindow=n.hasWindow,e.isArray=n.isArray,e.isBeaconsSupported=n.isBeaconsSupported,e.isBoolean=n.isBoolean,e.isDate=n.isDate,e.isError=n.isError,e.isFetchSupported=n.isFetchSupported,e.isFunction=n.isFunction,e.isIE=n.isIE,e.isNotTruthy=n.isNotTruthy,e.isNullOrUndefined=n.isNullOrUndefined,e.isNumber=n.isNumber,e.isObject=n.isObject,e.isReactNative=n.isReactNative,e.isSampledFlag=n.isSampledFlag,e.isString=n.isString,e.isTruthy=n.isTruthy,e.isTypeof=n.isTypeof,e.isUndefined=n.isUndefined,e.isValidSpanId=n.isValidSpanId,e.isValidTraceId=n.isValidTraceId,e.isValidTraceParent=n.isValidTraceParent,e.isXhrSupported=n.isXhrSupported,e.mergeEvtNamespace=n.mergeEvtNamespace,e.newGuid=n.newGuid,e.newId=n.newId,e.normalizeJsName=n.normalizeJsName,e.objCreate=n.objCreate,e.objDefineAccessors=n.objDefineAccessors,e.objForEachKey=n.objForEachKey,e.objFreeze=n.objFreeze,e.objKeys=n.objKeys,e.objSeal=n.objSeal,e.optimizeObject=n.optimizeObject,e.parseTraceParent=n.parseTraceParent,e.perfNow=n.perfNow,e.proxyAssign=n.proxyAssign,e.proxyFunctionAs=n.proxyFunctionAs,e.proxyFunctions=n.proxyFunctions,e.random32=n.random32,e.randomValue=n.randomValue,e.removeEventHandler=n.removeEventHandler,e.removeEventListeners=n.removeEventListeners,e.removePageHideEventListener=n.removePageHideEventListener,e.removePageShowEventListener=n.removePageShowEventListener,e.removePageUnloadEventListener=n.removePageUnloadEventListener,e.safeGetCookieMgr=n.safeGetCookieMgr,e.safeGetLogger=n.safeGetLogger,e.setEnableEnvMocks=n.setEnableEnvMocks,e.setValue=n.setValue,e.strContains=n.strContains,e.strEndsWith=n.strEndsWith,e.strFunction=n.strFunction,e.strObject=n.strObject,e.strPrototype=n.strPrototype,e.strStartsWith=n.strStartsWith,e.strTrim=n.strTrim,e.strUndefined=n.strUndefined,e.throwError=n.throwError,e.toISOString=n.toISOString,e.useXDomainRequest=n.useXDomainRequest,e.AppInsightsCore=U,e.BaseCore=q,e.CoreUtils=F,e.ESPromise=$,e.ESPromiseScheduler=J,e.EventLatency=c,e.EventPersistence=u,e.EventPropertyType=l,e.FullVersionString=h,e.TraceLevel=p,e.Utils=z,e.ValueKind=s,e.ValueSanitizer=Z,e.Version=f,e._ExtendedInternalMessageId=d,e.createGuid=N,e.deleteCookie=I,e.disableCookies=T,e.extend=R,e.getCommonSchemaMetaData=S,e.getCookie=P,e.getCookieValue=O,e.getFieldValueType=j,e.getTenantId=x,e.getTime=D,e.isArrayValid=L,e.isChromium=function(){return!!n.getGlobalInst("chrome")},e.isDocumentObjectAvailable=b,e.isLatency=E,e.isUint8ArrayAvailable=w,e.isValueAssigned=_,e.isValueKind=k,e.isWindowObjectAvailable=y,e.openXhr=function(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch{}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&a(s,m,n),s.open(e,t,!i),n&&a(s,m,n),!i&&o&&a(s,"timeout",o),s},e.sanitizeProperty=A,e.setCookie=C,e.setProcessTelemetryTimings=M,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,E(),A(),S()):(i=[t,n(2284),n(3695),n(1356)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),C=_(((n,a)=>{var s;s=function(e){"use strict";var t="function",n="object",r="undefined",i="prototype",o="hasOwnProperty",a="default",s=Object,c=s[i],l=s.assign,u=s.create,p=s.defineProperty,d=c[o],f=null;function h(e){return void 0===e&&(e=!0),(!f||!e)&&(typeof globalThis!==r&&globalThis&&(f=globalThis),typeof self!==r&&self&&(f=self),typeof window!==r&&window&&(f=window),typeof global!==r&&global&&(f=global)),f}function m(e){throw new TypeError(e)}function v(e){if(u)return u(e);if(null==e)return{};var r=typeof e;function o(){}return r!==n&&r!==t&&m("Object prototype may only be an Object:"+e),o[i]=e,new o}var g=(h()||{}).Symbol,b=(h()||{}).Reflect,y=!!b,_="decorate",x="metadata",w="getOwnPropertySymbols",E="iterator",A=l||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])c[o].call(t,i)&&(e[i]=t[i]);return e},S=function(e,t){return(S=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[o](n)&&(e[n]=t[n])})(e,t)};function T(e,n){function r(){this.constructor=e}typeof n!==t&&null!==n&&m("Class extends value "+String(n)+" is not a constructor or null"),S(e,n),e[i]=null===n?v(n):(r[i]=n[i],new r)}function C(e,t,n,r){void 0===r&&(r=n),u?p(e,r,{enumerable:!0,get:function(){return t[n]}}):e[r]=t[n]}e.ObjAssign=l,e.ObjClass=s,e.ObjCreate=u,e.ObjDefineProperty=p,e.ObjHasOwnProperty=d,e.ObjProto=c,e.__assignFn=A,e.__createBindingFn=C,e.__decorateFn=function(e,n,r,i){var o,a=arguments.length,c=a<3?n:null===i?i=s.getOwnPropertyDescriptor(n,r):i;if(y&&typeof b[_]===t)c=b[_](e,n,r,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(c=(a<3?o(c):a>3?o(n,r,c):o(n,r))||c);return a>3&&c&&p(n,r,c),c},e.__exportStarFn=function(e,t){for(var n in e)n!==a&&!d.call(t,n)&&C(t,e,n)},e.__exposeGlobalTsLib=function(){var e,t,n,r,i=h()||{};t=A,n=T,r=C,(e=i).__assign||(e.__assign=l||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=r),__assign||(__assign=i.__assign),__extends||(__extends=i.__extends),__createBinding||(__createBinding=i.__createBinding)},e.__extendsFn=T,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==a&&Object.prototype.hasOwnProperty.call(e,n)&&C(t,e,n);return u?p(t,a,{enumerable:!0,value:e}):t[a]=e,t},e.__makeTemplateObjectFn=function(e,t){return p?p(e,"raw",{value:t}):e.raw=t,e},e.__metadataFn=function(e,n){if(y&&b[x]===t)return b[x](e,n)},e.__paramFn=function(e,t){return function(n,r){t(n,r,e)}},e.__readFn=function(e,n){var r=typeof g===t&&e[g[E]];if(!r)return e;var i,o,a=r.call(e),s=[];try{for(;(void 0===n||n-- >0)&&!(i=a.next()).done;)s.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return s},e.__restFn=function(e,n){var r={};for(var i in e)d.call(e,i)&&n.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&typeof s[w]===t)for(var o=0,a=s[w](e);o<a.length;o++)n.indexOf(a[o])<0&&c.propertyIsEnumerable.call(e,a[o])&&(r[a[o]]=e[a[o]]);return r},e.__spreadArrayFn=function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e},e.__spreadArraysFn=function(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i},e.__valuesFn=function(e){var n=typeof g===t&&g[E],r=n&&e[n],i=0;return r?r.call(e):e&&"number"==typeof e.length?{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}}:void m(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=h,e.objCreateFn=v,e.strDefault=a,e.strShimFunction=t,e.strShimHasOwnProperty=o,e.strShimObject=n,e.strShimPrototype=i,e.strShimUndefined=r,e.throwTypeError=m,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof n&&typeof a<"u"?s(n):(i=[t],void 0===(o="function"==typeof(r=s)?r.apply(t,i):r)||(e.exports=o))})),I=_(((a,s)=>{var c;c=function(e,t,n,r){"use strict";var i,o=(i=n)&&"object"==typeof i&&"default"in i?i.default:i,a="REAL_TIME",s="NEAR_REAL_TIME",c="BEST_EFFORT",l="POST",u="drop",p="requeue",d="application/x-json-stream",f="cache-control",h="content-type",m="kill-duration",v="time-delta-millis",g="client-version",b="client-id",y="time-delta-to-apply-millis",_="upload-time",x="apikey",w="AuthMsaDeviceTicket",E="AuthXToken",A="msfpc";function S(e){var t=(e.ext||{}).intweb;return t&&r.isValueAssigned(t[A])?t[A]:null}function T(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=S(e[n]);return t}var C=function(){function e(t,n){var i=n?[].concat(n):[],o=this,a=T(i);o.iKey=function(){return t},o.Msfpc=function(){return a||""},o.count=function(){return i.length},o.events=function(){return i},o.addEvent=function(e){return!!e&&(i.push(e),a||(a=S(e)),!0)},o.split=function(n,o){var s;if(n<i.length){var c=i.length-n;r.isNullOrUndefined(o)||(c=o<c?o:c),s=i.splice(n,c),a=T(i)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}(),I=2e6,P=Math.min(I,65e3),O="metadata",N="f",R=/\./,D=function e(t,n,i,a){var s="data",c="baseData",l=!!a,u=!0,p=n,d={};o(e,this,(function(e){function n(e,t,o,a,s,c,u){r.objForEachKey(e,(function(e,f){var h=null;if(f||r.isValueAssigned(f)){var m=o,v=e,g=s,b=t;if(l&&!a&&R.test(e)){var y=e.split("."),_=y.length;if(_>1){g&&(g=g.slice());for(var x=0;x<_-1;x++){var w=y[x];b=b[w]=b[w]||{},m+="."+w,g&&g.push(w)}v=y[_-1]}}var E=a&&function(e){var t=d[e];return void 0===t&&(e.length>=7&&(t=r.strStartsWith(e,"ext.metadata")||r.strStartsWith(e,"ext.web")),d[e]=t),t}(m);if(h=!E&&p&&p.handleField(m,v)?p.value(m,v,f,i):r.sanitizeProperty(v,f,i)){var A=h.value;if(b[v]=A,c&&c(g,v,h),u&&"object"==typeof A&&!r.isArray(A)){var S=g;S&&(S=S.slice()).push(v),n(f,A,m+"."+v,a,S,c,u)}}}}))}e.createPayload=function(e,t,n,r,i,o){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:o,sendReason:i}},e.appendPayload=function(n,i,o){var a=n&&i&&!n.overflow;return a&&r.doPerf(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),a=n.payloadBlob,s=n.numEvents,c=!1,l=[],u=[],p=n.isBeacon,d=p?65e3:3984588,f=p?P:I,h=0,m=0;h<t.length;){var v=t[h];if(v){if(s>=o){n.overflow=i.split(h);break}var g=e.getEventBlob(v);if(g&&g.length<=f){var b=g.length;if(a.length+b>d){n.overflow=i.split(h);break}a&&(a+="\n"),a+=g,++m>20&&(a.substr(0,1),m=0),c=!0,s++}else g?l.push(v):u.push(v),t.splice(h,1),h--}h++}if(l&&l.length>0&&n.sizeExceed.push(C.create(i.iKey(),l)),u&&u.length>0&&n.failedEvts.push(C.create(i.iKey(),u)),c){n.batches.push(i),n.payloadBlob=a,n.numEvents=s;var y=i.iKey();-1===r.arrIndexOf(n.apiKeys,y)&&n.apiKeys.push(y)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:o}})),a},e.getEventBlob=function(e){try{return r.doPerf(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+r.getTenantId(e.iKey);var i={},o=e.ext;o&&(t.ext=i,r.objForEachKey(o,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null,!0)})));var a=t[s]={};a.baseType=e.baseType;var l=a[c]={};return n(e.baseData,l,c,!1,[c],(function(e,t,n){k(i,e,t,n)}),u),n(e.data,a,s,!1,[],(function(e,t,n){k(i,e,t,n)}),u),JSON.stringify(t)}),(function(){return{item:e}}))}catch{return null}}}))};function k(e,t,n,i){if(i&&e){var o=r.getCommonSchemaMetaData(i.value,i.kind,i.propertyType);if(o>-1){var a=e[O];a||(a=e[O]={f:{}});var s=a[N];if(s||(s=a[N]={}),t)for(var c=0;c<t.length;c++){var l=t[c];s[l]||(s[l]={f:{}});var u=s[l][N];u||(u=s[l][N]={}),s=u}s=s[n]={},r.isArray(i.value)?s.a={t:o}:s.t=o}}}function L(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var M,j=function e(){var t={};o(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var i=function(e){var t=[];return e&&r.arrForEach(e,(function(e){t.push(r.strTrim(e))})),t}(e.split(","));if("this-request-only"===n)return i;for(var o=1e3*parseInt(n,10),a=0;a<i.length;++a)t[i[a]]=r.dateNow()+o}catch{return[]}return[]},e.isTenantKilled=function(e){var n=t,i=r.strTrim(e);return void 0!==n[i]&&n[i]>r.dateNow()||(delete n[i],!1)}}))},z=function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;o(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))},F="sendAttempt",B="&NoResponseBody=true",V=((M={})[1]=p,M[100]=p,M[200]="sent",M[8004]=u,M[8003]=u,M),U={},q={};function H(e,t,n){U[e]=t,!1!==n&&(q[t]=e)}function G(e){try{return e.responseText}catch{}return""}function $(e,t){var n=!1;if(e&&t){var i=r.objKeys(e);if(i&&i.length>0)for(var o=t.toLowerCase(),a=0;a<i.length;a++){var s=i[a];if(s&&r.hasOwnProperty(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function W(e,t,n,r){t&&n&&n.length>0&&(r&&U[t]?(e.hdrs[U[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}H(w,w,!1),H(g,g),H(b,"Client-Id"),H(x,x),H(y,y),H(_,_),H(E,E);var Q=function e(t,n,i,a,s){this._responseHandlers=[];var c,p,w,E,S,T,C="?cors=true&"+h.toLowerCase()+"="+d,I=new j,P=!1,O=new z,N=!1,R=0,k=!0,M=[],U={},H=[],Q=null,K=!1,X=!1,Y=!1;o(e,this,(function(e){var o=!0;function j(e,t){for(var n=0,i=null,o=0;null==i&&o<e.length;)1===(n=e[o])?r.useXDomainRequest()?i=z:r.isXhrSupported()&&(i=Z):2===n&&r.isFetchSupported(t)?i=J:N&&3===n&&r.isBeaconsSupported()&&(i=te),o++;return i?{_transport:n,_isSync:t,sendPOST:i}:null}function z(e,t,n){var r=new XDomainRequest;r.open(l,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=G(r);ee(t,200,{},e),de(e)},r.onerror=function(){ee(t,400,{})},r.ontimeout=function(){ee(t,500,{})},r.onprogress=function(){},n?r.send(e.data):s.set((function(){r.send(e.data)}),0)}function J(e,t,n){var i,a=e.urlString,c=!1,u=!1,p=((i={body:e.data,method:l}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,i);n&&(p.keepalive=!0,2===e._sendReason&&(c=!0,a+=B)),o&&(p.credentials="include"),e.headers&&r.objKeys(e.headers).length>0&&(p.headers=e.headers),fetch(a,p).then((function(e){var n={},r="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),u||(u=!0,ee(t,e.status,n,r),de(r))})).catch((function(e){u||(u=!0,ee(t,0,{}))})),c&&!u&&(u=!0,ee(t,200,{})),!u&&e.timeout>0&&s.set((function(){u||(u=!0,ee(t,500,{}))}),e.timeout)}function Z(e,t,n){var i=e.urlString;function a(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=r.strTrim(i))}return e}function s(e,n){ee(t,e.status,function(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(r.isString(e)){var n=r.strTrim(e).split(/[\r\n]+/);r.arrForEach(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=r.strTrim(e.substring(0,n)).toLowerCase(),o=r.strTrim(e.substring(n+1));t[i]=o}else t[r.strTrim(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=a(t,e,v),t=a(t,e,m),t=a(t,e,"kill-duration-seconds")),t}(e),n)}n&&e.disableXhrSync&&(n=!1);var c=r.openXhr(l,i,o,!0,n,e.timeout);r.objForEachKey(e.headers,(function(e,t){c.setRequestHeader(e,t)})),c.onload=function(){var e=G(c);s(c,e),de(e)},c.onerror=function(){s(c)},c.ontimeout=function(){s(c)},c.send(e.data)}function ee(e,t,n,i){try{e(t,n,i)}catch(e){r._throwInternal(c.diagLog(),2,518,r.dumpObj(e))}}function te(e,t,n){var i=200,o=e._thePayload,a=e.urlString+B;try{var s=r.getNavigator();if(!s.sendBeacon(a,e.data))if(o){var l=[];r.arrForEach(o.batches,(function(e){if(l&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!s.sendBeacon(a,Q.getEventBlob(t[n]))){l.push(e.split(n));break}}else l.push(e.split(0))})),fe(l,8003,o.sendType,!0)}else i=0}catch(e){c.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+r.dumpObj(e)),i=0}finally{ee(t,i,{},"")}}function ne(e){return 2===e||3===e}function re(e){return X&&ne(e)&&(e=2),e}function ie(){return!P&&R<n}function oe(){var e=H;return H=[],e}function ae(e,t,n){var r=!1;return e&&e.length>0&&!P&&p[t]&&Q&&(r=0!==t||ie()&&(n>0||O.allowRequestSending())),r}function se(e){var t={};return e&&r.arrForEach(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function ce(e,n,i,o,a){if(e&&0!==e.length){if(P)return void fe(e,1,o);o=re(o);try{var s=e,l=0!==o;r.doPerf(w,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var c=[],u=null,d=r.getTime(),f=p[o]||(l?p[1]:p[0]),h=(X||ne(o)||f&&3===f._transport)&&!k&&N&&r.isBeaconsSupported();ae(e,o,n);){var m=e.shift();m&&m.count()>0&&(I.isTenantKilled(m.iKey())?c.push(m):(u=u||Q.createPayload(n,i,l,h,a,o),Q.appendPayload(u,m,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,ue(u,d,r.getTime(),a),d=r.getTime(),u=null):(ue(u,d,r.getTime(),a),d=r.getTime(),e=[m].concat(e),u=null)))}u&&ue(u,d,r.getTime(),a),e.length>0&&(H=e.concat(H)),fe(c,8004,o)}),(function(){return{batches:se(s),retryCount:n,isTeardown:i,isSynchronous:l,sendReason:a,useSendBeacon:ne(o),sendType:o}}),!l)}catch(e){r._throwInternal(c.diagLog(),2,48,"Unexpected Exception sending batch: "+r.dumpObj(e))}}}function le(e,t,n){e[t]=e[t]||{},e[t][c.identifier]=n}function ue(t,n,o,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var s=!!e.sendHook,l=p[t.sendType];!ne(t.sendType)&&t.isBeacon&&2===t.sendReason&&(l=p[2]||p[3]||l);var u=Y;(t.isBeacon||3===l._transport)&&(u=!1);var E=function(e,t){var n={url:C,hdrs:{},useHdrs:!1};t?(n.hdrs=r.extend(n.hdrs,U),n.useHdrs=r.objKeys(n.hdrs).length>0):r.objForEachKey(U,(function(e,t){q[e]?W(n,q[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),W(n,b,"NO_AUTH",t),W(n,g,r.FullVersionString,t);var i="";r.arrForEach(e.apiKeys,(function(e){i.length>0&&(i+=","),i+=e})),W(n,x,i,t),W(n,_,r.dateNow().toString(),t);var o=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return""}(e);if(r.isValueAssigned(o)&&(n.url+="&ext.intweb.msfpc="+o),O.shouldAddClockSkewHeaders()&&W(n,y,O.getClockSkewHeaderValue(),t),w.getWParam){var a=w.getWParam();a>=0&&(n.url+="&w="+a)}for(var s=0;s<M.length;s++)n.url+="&"+M[s].name+"="+M[s].value;return n}(t,u);u=u||E.useHdrs;var A=r.getTime();r.doPerf(w,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var p=0;p<t.batches.length;p++)for(var g=t.batches[p].events(),b=0;b<g.length;b++){var y=g[b];if(K){var _=y.timings=y.timings||{};le(_,"sendEventStart",A),le(_,"serializationStart",n),le(_,"serializationCompleted",o)}y[F]>0?y[F]++:y[F]=1}fe(t.batches,1e3+(a||0),t.sendType,!0);var x={data:t.payloadBlob,urlString:E.url,headers:E.hdrs,_thePayload:t,_sendReason:a,timeout:S};r.isUndefined(T)||(x.disableXhrSync=!!T),u&&($(x.headers,f)||(x.headers[f]="no-cache, no-store"),$(x.headers,h)||(x.headers[h]=d));var C=null;l&&(C=function(n){O.firstRequestSent();var o=function(n,o){!function(t,n,o,a){var s=9e3,l=null,u=!1,p=!1;try{var d=!0;if(typeof t!==r.strUndefined){if(n){O.setClockSkew(n[v]);var f=n[m]||n["kill-duration-seconds"];r.arrForEach(I.setKillSwitchTenants(n["kill-tokens"],f),(function(e){r.arrForEach(o.batches,(function(t){if(t.iKey()===e){l=l||[];var n=t.split(0);o.numEvents-=n.count(),l.push(n)}}))}))}if(200==t||204==t)return void(s=200);(!function(e){return!(e>=300&&e<500&&408!=e&&429!=e||501==e||505==e)}(t)||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<i?(u=!0,pe((function(){0===o.sendType&&R--,ce(o.batches,h+1,o.isTeardown,X?2:o.sendType,5)}),X,L(h))):(p=!0,X&&(s=8001)))}}finally{u||(O.setClockSkew(),function(t,n,i,o){try{o&&c._backOffTransmission(),200===n&&(!o&&!t.isSync&&c._clearBackOff(),function(e){if(K){var t=r.getTime();r.arrForEach(e,(function(e){e&&e.count()>0&&function(e,t){K&&r.arrForEach(e,(function(e){le(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),fe(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(R--,5!==i&&e.sendQueuedRequests(t.sendType,i))}}(o,s,a,p)),fe(l,8004,o.sendType)}}(n,o,t,a)},s=t.isTeardown||t.isSync;try{l.sendPOST(n,o,s),e.sendListener&&e.sendListener(x,n,s,t.isBeacon)}catch(e){c.diagLog().warnToConsole("Unexpected exception sending payload. Ex:"+r.dumpObj(e)),ee(o,0,{})}}),r.doPerf(w,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(C)if(0===t.sendType&&R++,s&&!t.isBeacon&&3!==l._transport){var n={data:x.data,urlString:x.urlString,headers:r.extend({},x.headers),timeout:x.timeout,disableXhrSync:x.disableXhrSync},i=!1;r.doPerf(w,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){i=!0,!k&&!e._thePayload&&(e._thePayload=e._thePayload||x._thePayload,e._sendReason=e._sendReason||x._sendReason),C(e)}),t.isSync||t.isTeardown)}catch{i||C(x)}}))}else C(x)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&fe(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&fe(t.failedEvts,8002,t.sendType)}function pe(e,t,n){t?e():s.set(e,n)}function de(t){var n=e._responseHandlers;try{for(var i=0;i<n.length;i++)try{n[i](t)}catch(e){r._throwInternal(c.diagLog(),1,519,"Response handler failed: "+e)}if(t){var o=JSON.parse(t);r.isValueAssigned(o.webResult)&&r.isValueAssigned(o.webResult[A])&&E.set("MSFPC",o.webResult[A],31536e3)}}catch{}}function fe(e,t,n,i){if(e&&e.length>0&&a){var o=a[function(e){var t=V[e];return r.isValueAssigned(t)||(t="oth",e>=9e3&&e<=9999?t="rspFail":e>=8e3&&e<=8999?t=u:e>=1e3&&e<=1999&&(t="send")),t}(t)];if(o){var s=0!==n;r.doPerf(w,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){pe((function(){try{o.call(a,e,t,s,n)}catch(e){r._throwInternal(c.diagLog(),1,74,"send request notification failed: "+e)}}),i||s,0)}),(function(){return{batches:se(e),reason:t,isSync:s,sendSync:i,sendType:n}}),!s)}}}e.initialize=function(e,t,n,i,a){var s;a||(a={}),C=e+C,Y=!!r.isUndefined(a.avoidOptions)||!a.avoidOptions,w=t,E=t.getCookieMgr(),K=!w.config.disableEventTimings;var l=!!w.config.enableCompoundKey;c=n;var u=a.valueSanitizer,d=a.stringifyObjects;r.isUndefined(a.enableCompoundKey)||(l=!!a.enableCompoundKey),S=a.xhrTimeout,T=a.disableXhrSync,N=!r.isReactNative(),Q=new D(w,u,d,l);var f=i,h=a.alwaysUseXhrOverride?i:null,m=a.alwaysUseXhrOverride?i:null;if(!i){k=!1;var v=r.getLocation();v&&v.protocol&&"file:"===v.protocol.toLowerCase()&&(o=!1);var g=[];g=r.isReactNative()?[2,1]:[1,2,3];var b=a.transports;b&&(r.isNumber(b)?g=[b].concat(g):r.isArray(b)&&(g=b.concat(g))),i=j(g,!1),f=j(g,!0),i||c.diagLog().warnToConsole("No available transport to send events")}(s={})[0]=i,s[1]=f||j([1,2,3],!0),s[2]=h||j([3,2],!0)||f||j([1],!0),s[3]=m||j([2,3],!0)||f||j([1],!0),p=s},e._getDbgPlgTargets=function(){return[p[0],I,Q,p]},e.addQueryStringParameter=function(e,t){for(var n=0;n<M.length;n++)if(M[n].name===e)return void(M[n].value=t);M.push({name:e,value:t})},e.addHeader=function(e,t){U[e]=t},e.canSendRequest=function(){return ie()&&O.allowRequestSending()},e.sendQueuedRequests=function(e,t){r.isUndefined(e)&&(e=0),X&&(e=re(e),t=2),ae(H,e,0)&&ce(oe(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!P&&0===R&&0===H.length},e.setUnloading=function(e){X=e},e.addBatch=function(e){if(e&&e.count()>0){if(I.isTenantKilled(e.iKey()))return!1;H.push(e)}return!0},e.teardown=function(){H.length>0&&ce(oe(),0,!0,2,2)},e.pause=function(){P=!0},e.resume=function(){P=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&(r.isNullOrUndefined(t)&&(t=1),X&&(t=re(t),n=2),ce([e],0,!1,t,n||0))}}))};function K(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function X(e){clearTimeout(e)}function Y(e,t){return{set:e||K,clear:t||X}}var J="eventsDiscarded",Z="overrideInstrumentationKey",ee="maxEventRetryAttempts",te="maxUnloadEventRetryAttempts",ne=function(e){function n(){var t=e.call(this)||this;t.identifier="PostChannel",t.priority=1011,t.version="3.2.3";var i,l,u,p,d,f,h,m,v=!1,g=[],b=null,y=!1,_=0,x=500,E=0,A=1e4,S={},T=a,I=null,P=null,O=0,N=0,R={},D=-1,k=!0,M=!1,j=6,z=2;return o(n,t,(function(e,t){function n(e){"beforeunload"!==(e||r.getWindow().event).type&&(M=!0,u.setUnloading(M)),$(2,2)}function o(e){M=!1,u.setUnloading(M)}function F(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=1),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,k&&(e.ext=r.optimizeObject(e.ext),e.baseData&&(e.baseData=r.optimizeObject(e.baseData)),e.data&&(e.data=r.optimizeObject(e.data))),e.sync)if(O||y)e.latency=3,e.sync=!1;else if(u)return k&&(e=r.optimizeObject(e)),void u.sendSynchronousBatch(C.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,i=E,o=A;4===n&&(i=_,o=x);var a=!1;if(i<o)a=!X(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),a=!0,function(e,t,n,i){for(;n<=t;){var o=W(e,t,!0);if(o&&o.count()>0){var a=o.split(0,i),s=a.count();if(s>0)return 4===n?_-=s:E-=s,ue(J,[a],r.EventsDiscardedReason.QueueFull),!0}n++}return ne(),!1}(e.iKey,e.latency,s,c)&&(a=!X(e,t))}a&&le(J,[e],r.EventsDiscardedReason.QueueFull)}function B(e,t,n){var r=re(e,t,n);return u.sendQueuedRequests(t,n),r}function V(){return E>0}function U(){if(D>=0&&re(D,0,f)&&u.sendQueuedRequests(0,f),_>0&&!P&&!y){var e=S[T][2];e>=0&&(P=H((function(){P=null,B(4,0,1),U()}),e))}var t=S[T][1];!I&&!b&&t>=0&&!y&&(V()?I=H((function(){I=null,B(0===N?3:1,0,1),N++,N%=2,U()}),t):N=0)}function q(){i=null,v=!1,g=[],b=null,y=!1,_=0,x=500,E=0,A=1e4,S={},T=a,I=null,P=null,O=0,N=0,l=null,R={},p=void 0,d=0,D=-1,f=null,k=!0,M=!1,j=6,z=2,h=null,m=Y(),u=new Q(500,2,1,{requeue:se,send:pe,sent:de,drop:fe,rspFail:he,oth:me},m),ae(),R[4]={batches:[],iKeyMap:{}},R[3]={batches:[],iKeyMap:{}},R[2]={batches:[],iKeyMap:{}},R[1]={batches:[],iKeyMap:{}},ve()}function H(e,t){0===t&&O&&(t=1);var n=1e3;return O&&(n=L(O-1)),m.set(e,t*n)}function G(){return null!==I&&(m.clear(I),I=null,N=0,!0)}function $(e,t){G(),b&&(m.clear(b),b=null),y||B(1,e,t)}function W(e,t,n){var r=R[t];r||(r=R[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=C.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function K(t,n){u.canSendRequest()&&!O&&(p>0&&E>p&&(n=!0),n&&null==b&&e.flush(t,null,20))}function X(e,t){k&&(e=r.optimizeObject(e));var n=e.latency,i=W(e.iKey,n,!0);return!!i.addEvent(e)&&(4!==n?(E++,t&&0===e.sendAttempt&&K(!e.sync,d>0&&i.count()>=d)):_++,!0)}function ne(){for(var e=0,t=0,n=function(n){var i=R[n];i&&i.batches&&r.arrForEach(i.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},i=1;i<=4;i++)n(i);E=t,_=e}function re(t,n,i){var o=!1,a=0===n;return!a||u.canSendRequest()?r.doPerf(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var i=R[n];i&&i.batches&&i.batches.length>0&&(r.arrForEach(i.batches,(function(t){u.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?_-=t.count():E-=t.count()})),i.batches=[],i.iKeyMap={}),n--}e.length>0&&le(J,e,r.EventsDiscardedReason.KillSwitch),o&&D>=t&&(D=-1,f=0)}),(function(){return{latency:t,sendType:n,sendReason:i}}),!a):(D=D>=0?Math.min(D,t):t,f=Math.max(f,i)),o}function ie(e,t){B(1,0,t),ne(),oe((function(){e&&e(),g.length>0?b=H((function(){b=null,ie(g.shift(),t)}),0):(b=null,U())}))}function oe(e){u.isCompletelyIdle()?e():b=H((function(){b=null,oe(e)}),.25)}function ae(){(S={})[a]=[2,1,0],S[s]=[6,3,0],S[c]=[18,9,0]}function se(t,n){var i=[],o=j;M&&(o=z),r.arrForEach(t,(function(t){t&&t.count()>0&&r.arrForEach(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(r.setProcessTelemetryTimings(t,e.identifier),F(t,!1)):i.push(t))}))})),i.length>0&&le(J,i,r.EventsDiscardedReason.NonRetryableStatus),M&&$(2,2)}function ce(t,n){var i=e._notificationManager||{},o=i[t];if(o)try{o.apply(i,n)}catch(n){r._throwInternal(e.diagLog(),1,74,t+" notification failed: "+n)}}function le(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ce(e,[t].concat(n))}function ue(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&r.arrForEach(t,(function(t){t&&t.count()>0&&ce(e,[t.events()].concat(n))}))}function pe(e,t,n){e&&e.length>0&&ce("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function de(e,t){ue("eventsSent",e,t),U()}function fe(e,t){ue(J,e,t>=8e3&&t<=8999?t-8e3:r.EventsDiscardedReason.Unknown)}function he(e){ue(J,e,r.EventsDiscardedReason.NonRetryableStatus),U()}function me(e,t){ue(J,e,r.EventsDiscardedReason.Unknown),U()}function ve(){d=i&&i.disableAutoBatchFlushLimit?0:Math.max(1500,A/6)}q(),e._getDbgPlgTargets=function(){return[u]},e.initialize=function(a,s,c){r.doPerf(s,(function(){return"PostChannel:initialize"}),(function(){var d=s;t.initialize(a,s,c);try{s.addUnloadCb,h=r.mergeEvtNamespace(r.createUniqueNamespace(e.identifier),s.evtNamespace&&s.evtNamespace());var f=e._getTelCtx();a.extensionConfig[e.identifier]=a.extensionConfig[e.identifier]||{},i=f.getExtCfg(e.identifier),m=Y(i.setTimeoutOverride,i.clearTimeoutOverride),k=!i.disableOptimizeObj&&r.isChromium(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return i.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(d),i.eventsLimitInMem>0&&(A=i.eventsLimitInMem),i.immediateEventLimit>0&&(x=i.immediateEventLimit),i.autoFlushEventsLimit>0&&(p=i.autoFlushEventsLimit),r.isNumber(i[ee])&&(j=i[ee]),r.isNumber(i[te])&&(z=i[te]),ve(),i.httpXHROverride&&i.httpXHROverride.sendPOST&&(l=i.httpXHROverride),r.isValueAssigned(a.anonCookieName)&&u.addQueryStringParameter("anoncknm",a.anonCookieName),u.sendHook=i.payloadPreprocessor,u.sendListener=i.payloadListener;var v=i.overrideEndpointUrl?i.overrideEndpointUrl:a.endpointUrl;e._notificationManager=a.extensionConfig.NotificationManager,u.initialize(v,e.core,e,l,i);var g=a.disablePageUnloadEvents||[];r.addPageUnloadEventListener(n,g,h),r.addPageHideEventListener(n,g,h),r.addPageShowEventListener(o,a.disablePageShowEvents,h)}catch(t){throw e.setInitialized(!1),t}}),(function(){return{coreConfig:a,core:s,extensions:c}}))},e.processTelemetry=function(t,n){r.setProcessTelemetryTimings(t,e.identifier);var o=(n=e._getTelCtx(n)).getExtCfg(e.identifier),a=!!i.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;!a&&!v&&(i[Z]&&(s.iKey=i[Z]),o&&o[Z]&&(s.iKey=o[Z]),F(s,!0),M?$(2,2):U()),e.processNext(s,n)},e._doTeardown=function(e,t){$(2,2),v=!0,u.teardown(),r.removePageUnloadEventListener(null,h),r.removePageHideEventListener(null,h),r.removePageShowEventListener(null,h),q()},e.setEventQueueLimits=function(e,t){A=e>0?e:1e4,p=t>0?t:0,ve();var n=E>e;if(!n&&d>0)for(var i=1;!n&&i<=3;i++){var o=R[i];o&&o.batches&&r.arrForEach(o.batches,(function(e){e&&e.count()>=d&&(n=!0)}))}K(!0,n)},e.pause=function(){G(),y=!0,u.pause()},e.resume=function(){y=!1,u.resume(),U()},e.addResponseHandler=function(e){u._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){G(),ae(),T=a,U(),r.objForEachKey(e,(function(e,t){var n=t.length;if(n>=2){var r=n>2?t[2]:0;if(t.splice(0,n-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),S[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!y)if(n=n||1,e)null==b?(G(),re(1,0,n),b=H((function(){b=null,ie(t,n)}),0)):g.push(t);else{var r=G();B(1,1,n),null!=t&&t(),r&&U()}},e.setMsaAuthTicket=function(e){u.addHeader(w,e)},e.hasEvents=V,e._setTransmitProfile=function(e){T!==e&&void 0!==S[e]&&(G(),T=e,U())},e._backOffTransmission=function(){O<4&&(O++,G(),U())},e._clearBackOff=function(){O&&(O=0,G(),U())},r.objDefineAccessors(e,"_setTimeoutOverride",(function(){return m.set}),(function(e){m=Y(e,m.clear)})),r.objDefineAccessors(e,"_clearTimeoutOverride",(function(){return m.clear}),(function(e){m=Y(m.set,e)}))})),t}return t.__extendsFn(n,e),n}(r.BaseTelemetryPlugin);e.BE_PROFILE=c,e.NRT_PROFILE=s,e.PostChannel=ne,e.RT_PROFILE=a,function(e,t,n){var r=Object.defineProperty;if(r)try{return r(e,t,n)}catch{}n&&void 0!==typeof n.value&&(e[t]=n.value)}(e,"__esModule",{value:!0})},"object"==typeof a&&typeof s<"u"?c(a,C(),S(),T()):(i=[t,n(2284),n(1356),n(1318)],void 0===(o="function"==typeof(r=c)?r.apply(t,i):r)||(e.exports=o))})),P=_(((e,t)=>{"use strict";var n=function(){function e(){}return e.info=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.enableDebug&&console.info(e.TAG+t,n)},e.warn=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];e.disableWarnings||console.warn(e.TAG+t,n)},e.enableDebug=!1,e.disableWarnings=!1,e.disableErrors=!1,e.TAG="ApplicationInsights:",e}();t.exports=n})),O=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AsyncScopeManager=e.OpenTelemetryScopeManagerWrapper=void 0;var r=Tr(),i=n(4434),o=function(){function e(){}return e.prototype.active=function(){var e=this,n=r.CorrelationContextManager.getCurrentContext();return t(t({},n),{getValue:function(t){return e._activeSymbol?t===e._activeSymbol&&n:(e._activeSymbol=t,n)},setValue:function(){}})},e.prototype.with=function(t,n){var i=t.parentSpanId,o=t.name,a=e._spanToContext(t,i,o);return r.CorrelationContextManager.runWithContext(a,n)()},e.prototype.bind=function(e){return"function"==typeof e?r.CorrelationContextManager.wrapCallback(e):(e instanceof i.EventEmitter&&r.CorrelationContextManager.wrapEmitter(e),e)},e.prototype.enable=function(){return r.CorrelationContextManager.enable(),this},e.prototype.disable=function(){return r.CorrelationContextManager.disable(),this},e._spanToContext=function(e,n,i){var o=n?"|"+e.spanContext().traceId+"."+n+".":e.spanContext().traceId,a=t(t({},e.spanContext()),{traceFlags:e.spanContext().traceFlags});return r.CorrelationContextManager.spanToContextObject(a,o,i)},e}();e.OpenTelemetryScopeManagerWrapper=o,e.AsyncScopeManager=new o})),N=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var M=s++;a[M]="(\\s*)"+a[L]+"\\s+",o[M]=new RegExp(a[M],"g");var j=s++;a[j]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var F=s++;a[F]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var V=s++;a[V]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[V]=new RegExp(a[V],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[F]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[V],"$1$2$3"),n("comparator trim",e,o[V]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[F]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[j];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),R=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.makePatchingRequire=void 0;var t=n(6928),r=N(),i=n(3339),o=Object.keys(process.binding("natives")),a=i.prototype.require;e.makePatchingRequire=function(e){var n={};return function(s){var c=a.apply(this,arguments);if(e[s]){var l=i._resolveFilename(s,this);if(n.hasOwnProperty(l))return n[l];var u=void 0;if(o.indexOf(s)<0)try{u=a.call(this,t.join(s,"package.json")).version}catch{return c}else u=process.version.substring(1);var p=u.indexOf("-");p>=0&&(u=u.substring(0,p));for(var d=c,f=0,h=e[s];f<h.length;f++){var m=h[f];r.satisfies(u,m.versionSpecifier)&&(d=m.patch(d,l))}return n[l]=d}return c}}})),D=_(((e,t)=>{t.exports={name:"diagnostic-channel",version:"1.0.0",main:"./dist/src/channel.js",types:"./dist/src/channel.d.ts",scripts:{build:"tsc",lint:"tslint -c tslint.json -p tsconfig.json",clean:"rimraf ./dist",test:"mocha ./dist/tests/**/*.js"},homepage:"https://github.com/Microsoft/node-diagnostic-channel",bugs:{url:"https://github.com/Microsoft/node-diagnostic-channel/issues"},repository:{type:"git",url:"https://github.com/Microsoft/node-diagnostic-channel.git"},description:"Provides a context-saving pub/sub channel to connect diagnostic event publishers and subscribers",dependencies:{semver:"^5.3.0"},devDependencies:{"@types/mocha":"^2.2.40","@types/node":"~8.0.0",mocha:"^3.2.0",rimraf:"^2.6.1",tslint:"^5.0.0",typescript:"4.1.2"},files:["dist/src/**/*.d.ts","dist/src/**/*.js","LICENSE","README.md","package.json"],license:"MIT"}})),k=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.channel=e.makePatchingRequire=void 0;var t=R(),r=R();Object.defineProperty(e,"makePatchingRequire",{enumerable:!0,get:function(){return r.makePatchingRequire}});var i=function(e){return!0},o=function(){function e(){this.version=D().version,this.subscribers={},this.contextPreservationFunction=function(e){return e},this.knownPatches={},this.currentlyPublishing=!1}return e.prototype.shouldPublish=function(e){var t=this.subscribers[e];return!!t&&t.some((function(e){var t=e.filter;return!t||t(!1)}))},e.prototype.publish=function(e,t){if(!this.currentlyPublishing){var n=this.subscribers[e];if(n){var r={timestamp:Date.now(),data:t};this.currentlyPublishing=!0,n.forEach((function(e){var t=e.listener,n=e.filter;try{n&&n(!0)&&t(r)}catch{}})),this.currentlyPublishing=!1}}},e.prototype.subscribe=function(e,t,n){void 0===n&&(n=i),this.subscribers[e]||(this.subscribers[e]=[]),this.subscribers[e].push({listener:t,filter:n})},e.prototype.unsubscribe=function(e,t,n){void 0===n&&(n=i);var r=this.subscribers[e];if(r)for(var o=0;o<r.length;++o)if(r[o].listener===t&&r[o].filter===n)return r.splice(o,1),!0;return!1},e.prototype.reset=function(){var e=this;this.subscribers={},this.contextPreservationFunction=function(e){return e},Object.getOwnPropertyNames(this.knownPatches).forEach((function(t){return delete e.knownPatches[t]}))},e.prototype.bindToContext=function(e){return this.contextPreservationFunction(e)},e.prototype.addContextPreservation=function(e){var t=this.contextPreservationFunction;this.contextPreservationFunction=function(n){return e(t(n))}},e.prototype.registerMonkeyPatch=function(e,t){this.knownPatches[e]||(this.knownPatches[e]=[]),this.knownPatches[e].push(t)},e.prototype.getPatchesObject=function(){return this.knownPatches},e}();global.diagnosticsSource||(global.diagnosticsSource=new o,n(3339).prototype.require=t.makePatchingRequire(global.diagnosticsSource.getPatchesObject())),e.channel=global.diagnosticsSource})),L=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),M=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._globalThis=void 0,e._globalThis="object"==typeof globalThis?globalThis:global})),j=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(M(),e)})),z=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(j(),e)})),F=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="1.0.3"})),B=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isCompatible=e._makeCompatibilityCheck=void 0;var t=F(),n=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function r(e){var t=new Set([e]),r=new Set,i=e.match(n);if(!i)return function(){return!1};var o=+i[1],a=+i[2],s=+i[3];if(null!=i[4])return function(t){return t===e};function c(e){return r.add(e),!1}function l(e){return t.add(e),!0}return function(e){if(t.has(e))return!0;if(r.has(e))return!1;var i=e.match(n);if(!i)return c(e);var u=+i[1],p=+i[2],d=+i[3];return null!=i[4]||o!==u?c(e):0===o?a===p&&s<=d?l(e):c(e):a<=p?l(e):c(e)}}e._makeCompatibilityCheck=r,e.isCompatible=r(t.VERSION)})),V=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unregisterGlobal=e.getGlobal=e.registerGlobal=void 0;var t=z(),n=F(),r=B(),i=n.VERSION.split(".")[0],o=Symbol.for("opentelemetry.js.api."+i),a=t._globalThis;e.registerGlobal=function(e,t,r,i){var s;void 0===i&&(i=!1);var c=a[o]=null!==(s=a[o])&&void 0!==s?s:{version:n.VERSION};if(!i&&c[e]){var l=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return r.error(l.stack||l.message),!1}return c.version!==n.VERSION?(l=new Error("@opentelemetry/api: All API registration versions must match"),r.error(l.stack||l.message),!1):(c[e]=t,r.debug("@opentelemetry/api: Registered a global for "+e+" v"+n.VERSION+"."),!0)},e.getGlobal=function(e){var t,n,i=null===(t=a[o])||void 0===t?void 0:t.version;if(i&&r.isCompatible(i))return null===(n=a[o])||void 0===n?void 0:n[e]},e.unregisterGlobal=function(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+n.VERSION+".");var r=a[o];r&&delete r[e]}})),U=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagComponentLogger=void 0;var t=V(),n=function(){function e(e){this._namespace=e.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("debug",this._namespace,e)},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("error",this._namespace,e)},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("info",this._namespace,e)},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("warn",this._namespace,e)},e.prototype.verbose=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return r("verbose",this._namespace,e)},e}();function r(e,n,r){var i=t.getGlobal("diag");if(i)return r.unshift(n),i[e].apply(i,r)}e.DiagComponentLogger=n})),q=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.DiagLogLevel=void 0,(t=e.DiagLogLevel||(e.DiagLogLevel={}))[t.NONE=0]="NONE",t[t.ERROR=30]="ERROR",t[t.WARN=50]="WARN",t[t.INFO=60]="INFO",t[t.DEBUG=70]="DEBUG",t[t.VERBOSE=80]="VERBOSE",t[t.ALL=9999]="ALL"})),H=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createLogLevelDiagLogger=void 0;var t=q();e.createLogLevelDiagLogger=function(e,n){function r(t,r){var i=n[t];return"function"==typeof i&&e>=r?i.bind(n):function(){}}return e<t.DiagLogLevel.NONE?e=t.DiagLogLevel.NONE:e>t.DiagLogLevel.ALL&&(e=t.DiagLogLevel.ALL),n=n||{},{error:r("error",t.DiagLogLevel.ERROR),warn:r("warn",t.DiagLogLevel.WARN),info:r("info",t.DiagLogLevel.INFO),debug:r("debug",t.DiagLogLevel.DEBUG),verbose:r("verbose",t.DiagLogLevel.VERBOSE)}}})),G=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagAPI=void 0;var t=U(),n=H(),r=q(),i=V(),o=function(){function e(){function e(e){return function(){var t=i.getGlobal("diag");if(t)return t[e].apply(t,arguments)}}var o=this;o.setLogger=function(e,t){var a,s;if(void 0===t&&(t=r.DiagLogLevel.INFO),e===o){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return o.error(null!==(a=c.stack)&&void 0!==a?a:c.message),!1}var l=i.getGlobal("diag"),u=n.createLogLevelDiagLogger(t,e);if(l){var p=null!==(s=(new Error).stack)&&void 0!==s?s:"<failed to generate stacktrace>";l.warn("Current logger will be overwritten from "+p),u.warn("Current logger will overwrite one already registered from "+p)}return i.registerGlobal("diag",u,o,!0)},o.disable=function(){i.unregisterGlobal("diag",o)},o.createComponentLogger=function(e){return new t.DiagComponentLogger(e)},o.verbose=e("verbose"),o.debug=e("debug"),o.info=e("info"),o.warn=e("warn"),o.error=e("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e}();e.DiagAPI=o})),$=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BaggageImpl=void 0;var t=function(){function e(e){this._entries=e?new Map(e):new Map}return e.prototype.getEntry=function(e){var t=this._entries.get(e);if(t)return Object.assign({},t)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map((function(e){return[e[0],e[1]]}))},e.prototype.setEntry=function(t,n){var r=new e(this._entries);return r._entries.set(t,n),r},e.prototype.removeEntry=function(t){var n=new e(this._entries);return n._entries.delete(t),n},e.prototype.removeEntries=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=new e(this._entries),i=0,o=t;i<o.length;i++){var a=o[i];r._entries.delete(a)}return r},e.prototype.clear=function(){return new e},e}();e.BaggageImpl=t})),W=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataSymbol=void 0,e.baggageEntryMetadataSymbol=Symbol("BaggageEntryMetadata")})),Q=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.baggageEntryMetadataFromString=e.createBaggage=void 0;var t=G(),n=$(),r=W(),i=t.DiagAPI.instance();e.createBaggage=function(e){return void 0===e&&(e={}),new n.BaggageImpl(new Map(Object.entries(e)))},e.baggageEntryMetadataFromString=function(e){return"string"!=typeof e&&(i.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:r.baggageEntryMetadataSymbol,toString:function(){return e}}}})),K=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),X=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Y=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DiagConsoleLogger=void 0;var t=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}];e.DiagConsoleLogger=function(){function e(e){return function(){var t=arguments;if(console){var n=console[e];if("function"!=typeof n&&(n=console.log),"function"==typeof n)return n.apply(console,t)}}}for(var n=0;n<t.length;n++)this[t[n].n]=e(t[n].c)}})),J=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Y(),e),n(q(),e)})),Z=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultTextMapSetter=e.defaultTextMapGetter=void 0,e.defaultTextMapGetter={get:function(e,t){if(null!=e)return e[t]},keys:function(e){return null==e?[]:Object.keys(e)}},e.defaultTextMapSetter={set:function(e,t,n){null!=e&&(e[t]=n)}}})),ee=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),te=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ne=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ROOT_CONTEXT=e.createContextKey=void 0,e.createContextKey=function(e){return Symbol.for(e)};e.ROOT_CONTEXT=new function e(t){var n=this;n._currentContext=t?new Map(t):new Map,n.getValue=function(e){return n._currentContext.get(e)},n.setValue=function(t,r){var i=new e(n._currentContext);return i._currentContext.set(t,r),i},n.deleteValue=function(t){var r=new e(n._currentContext);return r._currentContext.delete(t),r}}})),re=_((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.NoopContextManager=void 0;var n=ne(),r=function(){function e(){}return e.prototype.active=function(){return n.ROOT_CONTEXT},e.prototype.with=function(e,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return n.call.apply(n,t([r],i))},e.prototype.bind=function(e,t){return t},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e}();e.NoopContextManager=r})),ie=_((e=>{"use strict";var t=e&&e.__spreadArray||function(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e};Object.defineProperty(e,"__esModule",{value:!0}),e.ContextAPI=void 0;var n=re(),r=V(),i=G(),o="context",a=new n.NoopContextManager,s=function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(e){return r.registerGlobal(o,e,i.DiagAPI.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(e,n,r){for(var i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return(i=this._getContextManager()).with.apply(i,t([e,n,r],o))},e.prototype.bind=function(e,t){return this._getContextManager().bind(e,t)},e.prototype._getContextManager=function(){return r.getGlobal(o)||a},e.prototype.disable=function(){this._getContextManager().disable(),r.unregisterGlobal(o,i.DiagAPI.instance())},e}();e.ContextAPI=s})),oe=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TraceFlags=void 0,(t=e.TraceFlags||(e.TraceFlags={}))[t.NONE=0]="NONE",t[t.SAMPLED=1]="SAMPLED"})),ae=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=void 0;var t=oe();e.INVALID_SPANID="0000000000000000",e.INVALID_TRACEID="00000000000000000000000000000000",e.INVALID_SPAN_CONTEXT={traceId:e.INVALID_TRACEID,spanId:e.INVALID_SPANID,traceFlags:t.TraceFlags.NONE}})),se=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NonRecordingSpan=void 0;var t=ae(),n=function(){function e(e){void 0===e&&(e=t.INVALID_SPAN_CONTEXT),this._spanContext=e}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(e,t){return this},e.prototype.setAttributes=function(e){return this},e.prototype.addEvent=function(e,t){return this},e.prototype.setStatus=function(e){return this},e.prototype.updateName=function(e){return this},e.prototype.end=function(e){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(e,t){},e}();e.NonRecordingSpan=n})),ce=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSpanContext=e.setSpanContext=e.deleteSpan=e.setSpan=e.getSpan=void 0;var t=ne(),n=se(),r=t.createContextKey("OpenTelemetry Context Key SPAN");function i(e){return e.getValue(r)||void 0}function o(e,t){return e.setValue(r,t)}e.getSpan=i,e.setSpan=o,e.deleteSpan=function(e){return e.deleteValue(r)},e.setSpanContext=function(e,t){return o(e,new n.NonRecordingSpan(t))},e.getSpanContext=function(e){var t;return null===(t=i(e))||void 0===t?void 0:t.spanContext()}})),le=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.wrapSpanContext=e.isSpanContextValid=e.isValidSpanId=e.isValidTraceId=void 0;var t=ae(),n=se(),r=/^([0-9a-f]{32})$/i,i=/^[0-9a-f]{16}$/i;function o(e){return r.test(e)&&e!==t.INVALID_TRACEID}function a(e){return i.test(e)&&e!==t.INVALID_SPANID}e.isValidTraceId=o,e.isValidSpanId=a,e.isSpanContextValid=function(e){return o(e.traceId)&&a(e.spanId)},e.wrapSpanContext=function(e){return new n.NonRecordingSpan(e)}})),ue=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracer=void 0;var t=ie(),n=ce(),r=se(),i=le(),o=t.ContextAPI.getInstance(),a=function(){function e(){}return e.prototype.startSpan=function(e,t,o){if(Boolean(null==t?void 0:t.root))return new r.NonRecordingSpan;var a=o&&n.getSpanContext(o);return function(e){return"object"==typeof e&&"string"==typeof e.spanId&&"string"==typeof e.traceId&&"number"==typeof e.traceFlags}(a)&&i.isSpanContextValid(a)?new r.NonRecordingSpan(a):new r.NonRecordingSpan},e.prototype.startActiveSpan=function(e,t,r,i){var a,s,c;if(!(arguments.length<2)){2===arguments.length?c=t:3===arguments.length?(a=t,c=r):(a=t,s=r,c=i);var l=s??o.active(),u=this.startSpan(e,a,l),p=n.setSpan(l,u);return o.with(p,c,void 0,u)}},e}();e.NoopTracer=a})),pe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracer=void 0;var t=new(ue().NoopTracer),n=function(){function e(e,t,n){this._provider=e,this.name=t,this.version=n}return e.prototype.startSpan=function(e,t,n){return this._getTracer().startSpan(e,t,n)},e.prototype.startActiveSpan=function(e,t,n,r){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var e=this._provider.getDelegateTracer(this.name,this.version);return e?(this._delegate=e,this._delegate):t},e}();e.ProxyTracer=n})),de=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTracerProvider=void 0;var t=ue(),n=function(){function e(){}return e.prototype.getTracer=function(e,n){return new t.NoopTracer},e}();e.NoopTracerProvider=n})),fe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProxyTracerProvider=void 0;var t=pe(),n=new(de().NoopTracerProvider),r=function(){function e(){}return e.prototype.getTracer=function(e,n){var r;return null!==(r=this.getDelegateTracer(e,n))&&void 0!==r?r:new t.ProxyTracer(this,e,n)},e.prototype.getDelegate=function(){var e;return null!==(e=this._delegate)&&void 0!==e?e:n},e.prototype.setDelegate=function(e){this._delegate=e},e.prototype.getDelegateTracer=function(e,t){var n;return null===(n=this._delegate)||void 0===n?void 0:n.getTracer(e,t)},e}();e.ProxyTracerProvider=r})),he=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),me=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SamplingDecision=void 0,(t=e.SamplingDecision||(e.SamplingDecision={}))[t.NOT_RECORD=0]="NOT_RECORD",t[t.RECORD=1]="RECORD",t[t.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})),ve=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ge=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanKind=void 0,(t=e.SpanKind||(e.SpanKind={}))[t.INTERNAL=0]="INTERNAL",t[t.SERVER=1]="SERVER",t[t.CLIENT=2]="CLIENT",t[t.PRODUCER=3]="PRODUCER",t[t.CONSUMER=4]="CONSUMER"})),be=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),ye=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),_e=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.SpanStatusCode=void 0,(t=e.SpanStatusCode||(e.SpanStatusCode={}))[t.UNSET=0]="UNSET",t[t.OK=1]="OK",t[t.ERROR=2]="ERROR"})),xe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),we=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ee=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ae=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Se=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceAPI=void 0;var t=V(),n=fe(),r=le(),i=ce(),o=G(),a="trace",s=function(){function e(){this._proxyTracerProvider=new n.ProxyTracerProvider,this.wrapSpanContext=r.wrapSpanContext,this.isSpanContextValid=r.isSpanContextValid,this.deleteSpan=i.deleteSpan,this.getSpan=i.getSpan,this.getSpanContext=i.getSpanContext,this.setSpan=i.setSpan,this.setSpanContext=i.setSpanContext}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(e){var n=t.registerGlobal(a,this._proxyTracerProvider,o.DiagAPI.instance());return n&&this._proxyTracerProvider.setDelegate(e),n},e.prototype.getTracerProvider=function(){return t.getGlobal(a)||this._proxyTracerProvider},e.prototype.getTracer=function(e,t){return this.getTracerProvider().getTracer(e,t)},e.prototype.disable=function(){t.unregisterGlobal(a,o.DiagAPI.instance()),this._proxyTracerProvider=new n.ProxyTracerProvider},e}();e.TraceAPI=s})),Te=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopTextMapPropagator=void 0;var t=function(){function e(){}return e.prototype.inject=function(e,t){},e.prototype.extract=function(e,t){return e},e.prototype.fields=function(){return[]},e}();e.NoopTextMapPropagator=t})),Ce=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.deleteBaggage=e.setBaggage=e.getBaggage=void 0;var t=ne().createContextKey("OpenTelemetry Baggage Key");e.getBaggage=function(e){return e.getValue(t)||void 0},e.setBaggage=function(e,n){return e.setValue(t,n)},e.deleteBaggage=function(e){return e.deleteValue(t)}})),Ie=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PropagationAPI=void 0;var t=V(),n=Te(),r=Z(),i=Ce(),o=Q(),a=G(),s="propagation",c=new n.NoopTextMapPropagator,l=function(){function e(){this.createBaggage=o.createBaggage,this.getBaggage=i.getBaggage,this.setBaggage=i.setBaggage,this.deleteBaggage=i.deleteBaggage}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(e){return t.registerGlobal(s,e,a.DiagAPI.instance())},e.prototype.inject=function(e,t,n){return void 0===n&&(n=r.defaultTextMapSetter),this._getGlobalPropagator().inject(e,t,n)},e.prototype.extract=function(e,t,n){return void 0===n&&(n=r.defaultTextMapGetter),this._getGlobalPropagator().extract(e,t,n)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){t.unregisterGlobal(s,a.DiagAPI.instance())},e.prototype._getGlobalPropagator=function(){return t.getGlobal(s)||c},e}();e.PropagationAPI=l})),Pe=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.diag=e.propagation=e.trace=e.context=e.INVALID_SPAN_CONTEXT=e.INVALID_TRACEID=e.INVALID_SPANID=e.isValidSpanId=e.isValidTraceId=e.isSpanContextValid=e.baggageEntryMetadataFromString=void 0,n(L(),e);var r=Q();Object.defineProperty(e,"baggageEntryMetadataFromString",{enumerable:!0,get:function(){return r.baggageEntryMetadataFromString}}),n(K(),e),n(X(),e),n(J(),e),n(Z(),e),n(ee(),e),n(te(),e),n(pe(),e),n(fe(),e),n(he(),e),n(me(),e),n(ve(),e),n(ge(),e),n(be(),e),n(ye(),e),n(_e(),e),n(oe(),e),n(xe(),e),n(we(),e),n(Ee(),e);var i=le();Object.defineProperty(e,"isSpanContextValid",{enumerable:!0,get:function(){return i.isSpanContextValid}}),Object.defineProperty(e,"isValidTraceId",{enumerable:!0,get:function(){return i.isValidTraceId}}),Object.defineProperty(e,"isValidSpanId",{enumerable:!0,get:function(){return i.isValidSpanId}});var o=ae();Object.defineProperty(e,"INVALID_SPANID",{enumerable:!0,get:function(){return o.INVALID_SPANID}}),Object.defineProperty(e,"INVALID_TRACEID",{enumerable:!0,get:function(){return o.INVALID_TRACEID}}),Object.defineProperty(e,"INVALID_SPAN_CONTEXT",{enumerable:!0,get:function(){return o.INVALID_SPAN_CONTEXT}}),n(ne(),e),n(Ae(),e);var a=ie();e.context=a.ContextAPI.getInstance();var s=Se();e.trace=s.TraceAPI.getInstance();var c=Ie();e.propagation=c.PropagationAPI.getInstance();var l=G();e.diag=l.DiagAPI.instance(),e.default={trace:e.trace,context:e.context,propagation:e.propagation,diag:e.diag}})),Oe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTracingSuppressed=e.unsuppressTracing=e.suppressTracing=void 0;var t=Pe().createContextKey("OpenTelemetry SDK Context Key SUPPRESS_TRACING");e.suppressTracing=function(e){return e.setValue(t,!0)},e.unsuppressTracing=function(e){return e.deleteValue(t)},e.isTracingSuppressed=function(e){return!0===e.getValue(t)}})),Ne=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BAGGAGE_MAX_TOTAL_LENGTH=e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=e.BAGGAGE_MAX_NAME_VALUE_PAIRS=e.BAGGAGE_HEADER=e.BAGGAGE_ITEMS_SEPARATOR=e.BAGGAGE_PROPERTIES_SEPARATOR=e.BAGGAGE_KEY_PAIR_SEPARATOR=void 0,e.BAGGAGE_KEY_PAIR_SEPARATOR="=",e.BAGGAGE_PROPERTIES_SEPARATOR=";",e.BAGGAGE_ITEMS_SEPARATOR=",",e.BAGGAGE_HEADER="baggage",e.BAGGAGE_MAX_NAME_VALUE_PAIRS=180,e.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS=4096,e.BAGGAGE_MAX_TOTAL_LENGTH=8192})),Re=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseKeyPairsIntoRecord=e.parsePairKeyValue=e.getKeyPairs=e.serializeKeyPairs=void 0;var t=Pe(),n=Ne();e.serializeKeyPairs=e=>e.reduce(((e,t)=>{let r=`${e}${""!==e?n.BAGGAGE_ITEMS_SEPARATOR:""}${t}`;return r.length>n.BAGGAGE_MAX_TOTAL_LENGTH?e:r}),""),e.getKeyPairs=e=>e.getAllEntries().map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t.value)}`)),e.parsePairKeyValue=e=>{let r=e.split(n.BAGGAGE_PROPERTIES_SEPARATOR);if(r.length<=0)return;let i=r.shift();if(!i)return;let o=i.split(n.BAGGAGE_KEY_PAIR_SEPARATOR);if(2!==o.length)return;let a,s=decodeURIComponent(o[0].trim()),c=decodeURIComponent(o[1].trim());return r.length>0&&(a=t.baggageEntryMetadataFromString(r.join(n.BAGGAGE_PROPERTIES_SEPARATOR))),{key:s,value:c,metadata:a}},e.parseKeyPairsIntoRecord=t=>"string"!=typeof t||0===t.length?{}:t.split(n.BAGGAGE_ITEMS_SEPARATOR).map((t=>e.parsePairKeyValue(t))).filter((e=>void 0!==e&&e.value.length>0)).reduce(((e,t)=>(e[t.key]=t.value,e)),{})})),De=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpBaggagePropagator=void 0;var t=Pe(),n=Oe(),r=Ne(),i=Re();e.HttpBaggagePropagator=class{inject(e,o,a){let s=t.propagation.getBaggage(e);if(!s||n.isTracingSuppressed(e))return;let c=i.getKeyPairs(s).filter((e=>e.length<=r.BAGGAGE_MAX_PER_NAME_VALUE_PAIRS)).slice(0,r.BAGGAGE_MAX_NAME_VALUE_PAIRS),l=i.serializeKeyPairs(c);l.length>0&&a.set(o,r.BAGGAGE_HEADER,l)}extract(e,n,o){let a=o.get(n,r.BAGGAGE_HEADER);if(!a)return e;let s={};return 0===a.length||(a.split(r.BAGGAGE_ITEMS_SEPARATOR).forEach((e=>{let t=i.parsePairKeyValue(e);if(t){let e={value:t.value};t.metadata&&(e.metadata=t.metadata),s[t.key]=e}})),0===Object.entries(s).length)?e:t.propagation.setBaggage(e,t.propagation.createBaggage(s))}fields(){return[r.BAGGAGE_HEADER]}}})),ke=_((e=>{"use strict";function t(e){return null==e||(Array.isArray(e)?function(e){let t;for(let r of e)if(null!=r){if(!t){if(n(r)){t=typeof r;continue}return!1}if(typeof r!==t)return!1}return!0}(e):n(e))}function n(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.isAttributeValue=e.sanitizeAttributes=void 0,e.sanitizeAttributes=function(e){let n={};if(null==e||"object"!=typeof e)return n;for(let[r,i]of Object.entries(e))t(i)&&(Array.isArray(i)?n[r]=i.slice():n[r]=i);return n},e.isAttributeValue=t})),Le=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.loggingErrorHandler=void 0;var t=Pe();e.loggingErrorHandler=function(){return e=>{t.diag.error(function(e){return"string"==typeof e?e:JSON.stringify(function(e){let t={},n=e;for(;null!==n;)Object.getOwnPropertyNames(n).forEach((e=>{if(t[e])return;let r=n[e];r&&(t[e]=String(r))})),n=Object.getPrototypeOf(n);return t}(e))}(e))}}})),Me=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.globalErrorHandler=e.setGlobalErrorHandler=void 0;var t=Le().loggingErrorHandler();e.setGlobalErrorHandler=function(e){t=e},e.globalErrorHandler=e=>{try{t(e)}catch{}}})),je=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TracesSamplerValues=void 0,(t=e.TracesSamplerValues||(e.TracesSamplerValues={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio"})),ze=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEnvironment=e.DEFAULT_ENVIRONMENT=void 0;var t=Pe(),n=je(),r=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT"];function i(e){return r.indexOf(e)>-1}var o=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS"];function a(e){return o.indexOf(e)>-1}function s(e,t,n,r=-1/0,i=1/0){if(typeof n[e]<"u"){let o=Number(n[e]);isNaN(o)||(t[e]=o<r?r:o>i?i:o)}}function c(e,t,n,r=","){let i=n[e];"string"==typeof i&&(t[e]=i.split(r).map((e=>e.trim())))}e.DEFAULT_ENVIRONMENT={CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:t.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"none",OTEL_TRACES_SAMPLER:n.TracesSamplerValues.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:""};var l={ALL:t.DiagLogLevel.ALL,VERBOSE:t.DiagLogLevel.VERBOSE,DEBUG:t.DiagLogLevel.DEBUG,INFO:t.DiagLogLevel.INFO,WARN:t.DiagLogLevel.WARN,ERROR:t.DiagLogLevel.ERROR,NONE:t.DiagLogLevel.NONE};function u(e,t,n){let r=n[e];if("string"==typeof r){let n=l[r.toUpperCase()];null!=n&&(t[e]=n)}}e.parseEnvironment=function(t){let n={};for(let r in e.DEFAULT_ENVIRONMENT){let e=r;if("OTEL_LOG_LEVEL"===e)u(e,n,t);else if(i(e))s(e,n,t);else if(a(e))c(e,n,t);else{let r=t[e];typeof r<"u"&&null!==r&&(n[e]=String(r))}}return n}})),Fe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEnv=void 0;var t=n(857),r=ze();e.getEnv=function(){let e=r.parseEnvironment(process.env);return Object.assign({HOSTNAME:t.hostname()},r.DEFAULT_ENVIRONMENT,e)}})),Be=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hexToBase64=void 0,e.hexToBase64=function(e){let t=e.length,n="";for(let r=0;r<t;r+=2){let t=e.substring(r,r+2),i=parseInt(t,16);n+=String.fromCharCode(i)}return Buffer.from(n,"ascii").toString("base64")}})),Ve=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RandomIdGenerator=void 0,e.RandomIdGenerator=class{constructor(){this.generateTraceId=n(16),this.generateSpanId=n(8)}};var t=Buffer.allocUnsafe(16);function n(e){return function(){for(let n=0;n<e/4;n++)t.writeUInt32BE(Math.random()*2**32>>>0,4*n);for(let n=0;n<e&&!(t[n]>0);n++)n===e-1&&(t[e-1]=1);return t.toString("hex",0,e)}}})),Ue=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.otperformance=void 0;var t=n(2987);e.otperformance=t.performance})),qe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.VERSION=void 0,e.VERSION="0.23.0"})),He=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.RpcGrpcStatusCodeValues=e.MessagingOperationValues=e.MessagingDestinationKindValues=e.HttpFlavorValues=e.NetTransportValues=e.FaasInvokedProviderValues=e.FaasDocumentOperationValues=e.FaasTriggerValues=e.DbCassandraConsistencyLevelValues=e.DbSystemValues=e.SemanticAttributes=void 0,e.SemanticAttributes={DB_SYSTEM:"db.system",DB_CONNECTION_STRING:"db.connection_string",DB_USER:"db.user",DB_JDBC_DRIVER_CLASSNAME:"db.jdbc.driver_classname",DB_NAME:"db.name",DB_STATEMENT:"db.statement",DB_OPERATION:"db.operation",DB_MSSQL_INSTANCE_NAME:"db.mssql.instance_name",DB_CASSANDRA_KEYSPACE:"db.cassandra.keyspace",DB_CASSANDRA_PAGE_SIZE:"db.cassandra.page_size",DB_CASSANDRA_CONSISTENCY_LEVEL:"db.cassandra.consistency_level",DB_CASSANDRA_TABLE:"db.cassandra.table",DB_CASSANDRA_IDEMPOTENCE:"db.cassandra.idempotence",DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:"db.cassandra.speculative_execution_count",DB_CASSANDRA_COORDINATOR_ID:"db.cassandra.coordinator.id",DB_CASSANDRA_COORDINATOR_DC:"db.cassandra.coordinator.dc",DB_HBASE_NAMESPACE:"db.hbase.namespace",DB_REDIS_DATABASE_INDEX:"db.redis.database_index",DB_MONGODB_COLLECTION:"db.mongodb.collection",DB_SQL_TABLE:"db.sql.table",EXCEPTION_TYPE:"exception.type",EXCEPTION_MESSAGE:"exception.message",EXCEPTION_STACKTRACE:"exception.stacktrace",EXCEPTION_ESCAPED:"exception.escaped",FAAS_TRIGGER:"faas.trigger",FAAS_EXECUTION:"faas.execution",FAAS_DOCUMENT_COLLECTION:"faas.document.collection",FAAS_DOCUMENT_OPERATION:"faas.document.operation",FAAS_DOCUMENT_TIME:"faas.document.time",FAAS_DOCUMENT_NAME:"faas.document.name",FAAS_TIME:"faas.time",FAAS_CRON:"faas.cron",FAAS_COLDSTART:"faas.coldstart",FAAS_INVOKED_NAME:"faas.invoked_name",FAAS_INVOKED_PROVIDER:"faas.invoked_provider",FAAS_INVOKED_REGION:"faas.invoked_region",NET_TRANSPORT:"net.transport",NET_PEER_IP:"net.peer.ip",NET_PEER_PORT:"net.peer.port",NET_PEER_NAME:"net.peer.name",NET_HOST_IP:"net.host.ip",NET_HOST_PORT:"net.host.port",NET_HOST_NAME:"net.host.name",PEER_SERVICE:"peer.service",ENDUSER_ID:"enduser.id",ENDUSER_ROLE:"enduser.role",ENDUSER_SCOPE:"enduser.scope",THREAD_ID:"thread.id",THREAD_NAME:"thread.name",CODE_FUNCTION:"code.function",CODE_NAMESPACE:"code.namespace",CODE_FILEPATH:"code.filepath",CODE_LINENO:"code.lineno",HTTP_METHOD:"http.method",HTTP_URL:"http.url",HTTP_TARGET:"http.target",HTTP_HOST:"http.host",HTTP_SCHEME:"http.scheme",HTTP_STATUS_CODE:"http.status_code",HTTP_FLAVOR:"http.flavor",HTTP_USER_AGENT:"http.user_agent",HTTP_REQUEST_CONTENT_LENGTH:"http.request_content_length",HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:"http.request_content_length_uncompressed",HTTP_RESPONSE_CONTENT_LENGTH:"http.response_content_length",HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:"http.response_content_length_uncompressed",HTTP_SERVER_NAME:"http.server_name",HTTP_ROUTE:"http.route",HTTP_CLIENT_IP:"http.client_ip",AWS_DYNAMODB_TABLE_NAMES:"aws.dynamodb.table_names",AWS_DYNAMODB_CONSUMED_CAPACITY:"aws.dynamodb.consumed_capacity",AWS_DYNAMODB_ITEM_COLLECTION_METRICS:"aws.dynamodb.item_collection_metrics",AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:"aws.dynamodb.provisioned_read_capacity",AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:"aws.dynamodb.provisioned_write_capacity",AWS_DYNAMODB_CONSISTENT_READ:"aws.dynamodb.consistent_read",AWS_DYNAMODB_PROJECTION:"aws.dynamodb.projection",AWS_DYNAMODB_LIMIT:"aws.dynamodb.limit",AWS_DYNAMODB_ATTRIBUTES_TO_GET:"aws.dynamodb.attributes_to_get",AWS_DYNAMODB_INDEX_NAME:"aws.dynamodb.index_name",AWS_DYNAMODB_SELECT:"aws.dynamodb.select",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:"aws.dynamodb.global_secondary_indexes",AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:"aws.dynamodb.local_secondary_indexes",AWS_DYNAMODB_EXCLUSIVE_START_TABLE:"aws.dynamodb.exclusive_start_table",AWS_DYNAMODB_TABLE_COUNT:"aws.dynamodb.table_count",AWS_DYNAMODB_SCAN_FORWARD:"aws.dynamodb.scan_forward",AWS_DYNAMODB_SEGMENT:"aws.dynamodb.segment",AWS_DYNAMODB_TOTAL_SEGMENTS:"aws.dynamodb.total_segments",AWS_DYNAMODB_COUNT:"aws.dynamodb.count",AWS_DYNAMODB_SCANNED_COUNT:"aws.dynamodb.scanned_count",AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:"aws.dynamodb.attribute_definitions",AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:"aws.dynamodb.global_secondary_index_updates",MESSAGING_SYSTEM:"messaging.system",MESSAGING_DESTINATION:"messaging.destination",MESSAGING_DESTINATION_KIND:"messaging.destination_kind",MESSAGING_TEMP_DESTINATION:"messaging.temp_destination",MESSAGING_PROTOCOL:"messaging.protocol",MESSAGING_PROTOCOL_VERSION:"messaging.protocol_version",MESSAGING_URL:"messaging.url",MESSAGING_MESSAGE_ID:"messaging.message_id",MESSAGING_CONVERSATION_ID:"messaging.conversation_id",MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:"messaging.message_payload_size_bytes",MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:"messaging.message_payload_compressed_size_bytes",MESSAGING_OPERATION:"messaging.operation",MESSAGING_RABBITMQ_ROUTING_KEY:"messaging.rabbitmq.routing_key",MESSAGING_KAFKA_MESSAGE_KEY:"messaging.kafka.message_key",MESSAGING_KAFKA_CONSUMER_GROUP:"messaging.kafka.consumer_group",MESSAGING_KAFKA_CLIENT_ID:"messaging.kafka.client_id",MESSAGING_KAFKA_PARTITION:"messaging.kafka.partition",MESSAGING_KAFKA_TOMBSTONE:"messaging.kafka.tombstone",RPC_SYSTEM:"rpc.system",RPC_SERVICE:"rpc.service",RPC_METHOD:"rpc.method",RPC_GRPC_STATUS_CODE:"rpc.grpc.status_code",RPC_JSONRPC_VERSION:"rpc.jsonrpc.version",RPC_JSONRPC_METHOD:"rpc.jsonrpc.method",RPC_JSONRPC_REQUEST_ID:"rpc.jsonrpc.request_id",RPC_JSONRPC_ERROR_CODE:"rpc.jsonrpc.error_code",RPC_JSONRPC_ERROR_MESSAGE:"rpc.jsonrpc.error_message"},(t=e.DbSystemValues||(e.DbSystemValues={})).OTHER_SQL="other_sql",t.MSSQL="mssql",t.MYSQL="mysql",t.ORACLE="oracle",t.DB2="db2",t.POSTGRESQL="postgresql",t.REDSHIFT="redshift",t.HIVE="hive",t.CLOUDSCAPE="cloudscape",t.HSQLDB="hsqldb",t.PROGRESS="progress",t.MAXDB="maxdb",t.HANADB="hanadb",t.INGRES="ingres",t.FIRSTSQL="firstsql",t.EDB="edb",t.CACHE="cache",t.ADABAS="adabas",t.FIREBIRD="firebird",t.DERBY="derby",t.FILEMAKER="filemaker",t.INFORMIX="informix",t.INSTANTDB="instantdb",t.INTERBASE="interbase",t.MARIADB="mariadb",t.NETEZZA="netezza",t.PERVASIVE="pervasive",t.POINTBASE="pointbase",t.SQLITE="sqlite",t.SYBASE="sybase",t.TERADATA="teradata",t.VERTICA="vertica",t.H2="h2",t.COLDFUSION="coldfusion",t.CASSANDRA="cassandra",t.HBASE="hbase",t.MONGODB="mongodb",t.REDIS="redis",t.COUCHBASE="couchbase",t.COUCHDB="couchdb",t.COSMOSDB="cosmosdb",t.DYNAMODB="dynamodb",t.NEO4J="neo4j",t.GEODE="geode",t.ELASTICSEARCH="elasticsearch",t.MEMCACHED="memcached",t.COCKROACHDB="cockroachdb",function(e){e.ALL="all",e.EACH_QUORUM="each_quorum",e.QUORUM="quorum",e.LOCAL_QUORUM="local_quorum",e.ONE="one",e.TWO="two",e.THREE="three",e.LOCAL_ONE="local_one",e.ANY="any",e.SERIAL="serial",e.LOCAL_SERIAL="local_serial"}(e.DbCassandraConsistencyLevelValues||(e.DbCassandraConsistencyLevelValues={})),function(e){e.DATASOURCE="datasource",e.HTTP="http",e.PUBSUB="pubsub",e.TIMER="timer",e.OTHER="other"}(e.FaasTriggerValues||(e.FaasTriggerValues={})),function(e){e.INSERT="insert",e.EDIT="edit",e.DELETE="delete"}(e.FaasDocumentOperationValues||(e.FaasDocumentOperationValues={})),function(e){e.AWS="aws",e.AZURE="azure",e.GCP="gcp"}(e.FaasInvokedProviderValues||(e.FaasInvokedProviderValues={})),function(e){e.IP_TCP="ip_tcp",e.IP_UDP="ip_udp",e.IP="ip",e.UNIX="unix",e.PIPE="pipe",e.INPROC="inproc",e.OTHER="other"}(e.NetTransportValues||(e.NetTransportValues={})),function(e){e.HTTP_1_0="1.0",e.HTTP_1_1="1.1",e.HTTP_2_0="2.0",e.SPDY="SPDY",e.QUIC="QUIC"}(e.HttpFlavorValues||(e.HttpFlavorValues={})),function(e){e.QUEUE="queue",e.TOPIC="topic"}(e.MessagingDestinationKindValues||(e.MessagingDestinationKindValues={})),function(e){e.RECEIVE="receive",e.PROCESS="process"}(e.MessagingOperationValues||(e.MessagingOperationValues={})),function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED"}(e.RpcGrpcStatusCodeValues||(e.RpcGrpcStatusCodeValues={}))})),Ge=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(He(),e)})),$e=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetrySdkLanguageValues=e.OsTypeValues=e.HostArchValues=e.AwsEcsLaunchtypeValues=e.CloudPlatformValues=e.CloudProviderValues=e.ResourceAttributes=void 0,e.ResourceAttributes={CLOUD_PROVIDER:"cloud.provider",CLOUD_ACCOUNT_ID:"cloud.account.id",CLOUD_REGION:"cloud.region",CLOUD_AVAILABILITY_ZONE:"cloud.availability_zone",CLOUD_PLATFORM:"cloud.platform",AWS_ECS_CONTAINER_ARN:"aws.ecs.container.arn",AWS_ECS_CLUSTER_ARN:"aws.ecs.cluster.arn",AWS_ECS_LAUNCHTYPE:"aws.ecs.launchtype",AWS_ECS_TASK_ARN:"aws.ecs.task.arn",AWS_ECS_TASK_FAMILY:"aws.ecs.task.family",AWS_ECS_TASK_REVISION:"aws.ecs.task.revision",AWS_EKS_CLUSTER_ARN:"aws.eks.cluster.arn",AWS_LOG_GROUP_NAMES:"aws.log.group.names",AWS_LOG_GROUP_ARNS:"aws.log.group.arns",AWS_LOG_STREAM_NAMES:"aws.log.stream.names",AWS_LOG_STREAM_ARNS:"aws.log.stream.arns",CONTAINER_NAME:"container.name",CONTAINER_ID:"container.id",CONTAINER_RUNTIME:"container.runtime",CONTAINER_IMAGE_NAME:"container.image.name",CONTAINER_IMAGE_TAG:"container.image.tag",DEPLOYMENT_ENVIRONMENT:"deployment.environment",DEVICE_ID:"device.id",DEVICE_MODEL_IDENTIFIER:"device.model.identifier",DEVICE_MODEL_NAME:"device.model.name",FAAS_NAME:"faas.name",FAAS_ID:"faas.id",FAAS_VERSION:"faas.version",FAAS_INSTANCE:"faas.instance",FAAS_MAX_MEMORY:"faas.max_memory",HOST_ID:"host.id",HOST_NAME:"host.name",HOST_TYPE:"host.type",HOST_ARCH:"host.arch",HOST_IMAGE_NAME:"host.image.name",HOST_IMAGE_ID:"host.image.id",HOST_IMAGE_VERSION:"host.image.version",K8S_CLUSTER_NAME:"k8s.cluster.name",K8S_NODE_NAME:"k8s.node.name",K8S_NODE_UID:"k8s.node.uid",K8S_NAMESPACE_NAME:"k8s.namespace.name",K8S_POD_UID:"k8s.pod.uid",K8S_POD_NAME:"k8s.pod.name",K8S_CONTAINER_NAME:"k8s.container.name",K8S_REPLICASET_UID:"k8s.replicaset.uid",K8S_REPLICASET_NAME:"k8s.replicaset.name",K8S_DEPLOYMENT_UID:"k8s.deployment.uid",K8S_DEPLOYMENT_NAME:"k8s.deployment.name",K8S_STATEFULSET_UID:"k8s.statefulset.uid",K8S_STATEFULSET_NAME:"k8s.statefulset.name",K8S_DAEMONSET_UID:"k8s.daemonset.uid",K8S_DAEMONSET_NAME:"k8s.daemonset.name",K8S_JOB_UID:"k8s.job.uid",K8S_JOB_NAME:"k8s.job.name",K8S_CRONJOB_UID:"k8s.cronjob.uid",K8S_CRONJOB_NAME:"k8s.cronjob.name",OS_TYPE:"os.type",OS_DESCRIPTION:"os.description",OS_NAME:"os.name",OS_VERSION:"os.version",PROCESS_PID:"process.pid",PROCESS_EXECUTABLE_NAME:"process.executable.name",PROCESS_EXECUTABLE_PATH:"process.executable.path",PROCESS_COMMAND:"process.command",PROCESS_COMMAND_LINE:"process.command_line",PROCESS_COMMAND_ARGS:"process.command_args",PROCESS_OWNER:"process.owner",PROCESS_RUNTIME_NAME:"process.runtime.name",PROCESS_RUNTIME_VERSION:"process.runtime.version",PROCESS_RUNTIME_DESCRIPTION:"process.runtime.description",SERVICE_NAME:"service.name",SERVICE_NAMESPACE:"service.namespace",SERVICE_INSTANCE_ID:"service.instance.id",SERVICE_VERSION:"service.version",TELEMETRY_SDK_NAME:"telemetry.sdk.name",TELEMETRY_SDK_LANGUAGE:"telemetry.sdk.language",TELEMETRY_SDK_VERSION:"telemetry.sdk.version",TELEMETRY_AUTO_VERSION:"telemetry.auto.version",WEBENGINE_NAME:"webengine.name",WEBENGINE_VERSION:"webengine.version",WEBENGINE_DESCRIPTION:"webengine.description"},(t=e.CloudProviderValues||(e.CloudProviderValues={})).AWS="aws",t.AZURE="azure",t.GCP="gcp",function(e){e.AWS_EC2="aws_ec2",e.AWS_ECS="aws_ecs",e.AWS_EKS="aws_eks",e.AWS_LAMBDA="aws_lambda",e.AWS_ELASTIC_BEANSTALK="aws_elastic_beanstalk",e.AZURE_VM="azure_vm",e.AZURE_CONTAINER_INSTANCES="azure_container_instances",e.AZURE_AKS="azure_aks",e.AZURE_FUNCTIONS="azure_functions",e.AZURE_APP_SERVICE="azure_app_service",e.GCP_COMPUTE_ENGINE="gcp_compute_engine",e.GCP_CLOUD_RUN="gcp_cloud_run",e.GCP_KUBERNETES_ENGINE="gcp_kubernetes_engine",e.GCP_CLOUD_FUNCTIONS="gcp_cloud_functions",e.GCP_APP_ENGINE="gcp_app_engine"}(e.CloudPlatformValues||(e.CloudPlatformValues={})),function(e){e.EC2="ec2",e.FARGATE="fargate"}(e.AwsEcsLaunchtypeValues||(e.AwsEcsLaunchtypeValues={})),function(e){e.AMD64="amd64",e.ARM32="arm32",e.ARM64="arm64",e.IA64="ia64",e.PPC32="ppc32",e.PPC64="ppc64",e.X86="x86"}(e.HostArchValues||(e.HostArchValues={})),function(e){e.WINDOWS="windows",e.LINUX="linux",e.DARWIN="darwin",e.FREEBSD="freebsd",e.NETBSD="netbsd",e.OPENBSD="openbsd",e.DRAGONFLYBSD="dragonflybsd",e.HPUX="hpux",e.AIX="aix",e.SOLARIS="solaris",e.Z_OS="z_os"}(e.OsTypeValues||(e.OsTypeValues={})),function(e){e.CPP="cpp",e.DOTNET="dotnet",e.ERLANG="erlang",e.GO="go",e.JAVA="java",e.NODEJS="nodejs",e.PHP="php",e.PYTHON="python",e.RUBY="ruby",e.WEBJS="webjs"}(e.TelemetrySdkLanguageValues||(e.TelemetrySdkLanguageValues={}))})),We=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n($e(),e)})),Qe=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ge(),e),n(We(),e)})),Ke=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SDK_INFO=void 0;var t=qe(),n=Qe();e.SDK_INFO={[n.ResourceAttributes.TELEMETRY_SDK_NAME]:"opentelemetry",[n.ResourceAttributes.PROCESS_RUNTIME_NAME]:"node",[n.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.TelemetrySdkLanguageValues.NODEJS,[n.ResourceAttributes.TELEMETRY_SDK_VERSION]:t.VERSION}})),Xe=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unrefTimer=void 0,e.unrefTimer=function(e){e.unref()}})),Ye=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Fe(),e),n(Be(),e),n(Ve(),e),n(Ue(),e),n(Ke(),e),n(Xe(),e)})),Je=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ye(),e)})),Ze=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isTimeInput=e.isTimeInputHrTime=e.hrTimeToMicroseconds=e.hrTimeToMilliseconds=e.hrTimeToNanoseconds=e.hrTimeToTimeStamp=e.hrTimeDuration=e.timeInputToHrTime=e.hrTime=void 0;var t=Je(),n=9,r=Math.pow(10,n);function i(e){let t=e/1e3,i=Math.trunc(t);return[i,Number((t-i).toFixed(n))*r]}function o(){let e=t.otperformance.timeOrigin;if("number"!=typeof e){let n=t.otperformance;e=n.timing&&n.timing.fetchStart}return e}function a(e){let n=i(o()),a=i("number"==typeof e?e:t.otperformance.now()),s=n[0]+a[0],c=n[1]+a[1];return c>r&&(c-=r,s+=1),[s,c]}function s(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}e.hrTime=a,e.timeInputToHrTime=function(e){if(s(e))return e;if("number"==typeof e)return e<o()?a(e):i(e);if(e instanceof Date)return i(e.getTime());throw TypeError("Invalid input type")},e.hrTimeDuration=function(e,t){let n=t[0]-e[0],i=t[1]-e[1];return i<0&&(n-=1,i+=r),[n,i]},e.hrTimeToTimeStamp=function(e){let t=n,r=`${"0".repeat(t)}${e[1]}Z`,i=r.substr(r.length-t-1);return new Date(1e3*e[0]).toISOString().replace("000Z",i)},e.hrTimeToNanoseconds=function(e){return e[0]*r+e[1]},e.hrTimeToMilliseconds=function(e){return Math.round(1e3*e[0]+e[1]/1e6)},e.hrTimeToMicroseconds=function(e){return Math.round(1e6*e[0]+e[1]/1e3)},e.isTimeInputHrTime=s,e.isTimeInput=function(e){return s(e)||"number"==typeof e||e instanceof Date}})),et=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tt=_((e=>{"use strict";var t;Object.defineProperty(e,"__esModule",{value:!0}),e.ExportResultCode=void 0,(t=e.ExportResultCode||(e.ExportResultCode={}))[t.SUCCESS=0]="SUCCESS",t[t.FAILED=1]="FAILED"})),nt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompositePropagator=void 0;var t=Pe();e.CompositePropagator=class{constructor(e={}){var t;this._propagators=null!==(t=e.propagators)&&void 0!==t?t:[],this._fields=Array.from(new Set(this._propagators.map((e=>"function"==typeof e.fields?e.fields():[])).reduce(((e,t)=>e.concat(t)),[])))}inject(e,n,r){for(let i of this._propagators)try{i.inject(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}}extract(e,n,r){return this._propagators.reduce(((e,i)=>{try{return i.extract(e,n,r)}catch(e){t.diag.warn(`Failed to inject with ${i.constructor.name}. Err: ${e.message}`)}return e}),e)}fields(){return this._fields.slice()}}})),rt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.validateValue=e.validateKey=void 0;var t="[_0-9a-z-*/]",n=new RegExp(`^(?:[a-z]${t}{0,255}|[a-z0-9]${t}{0,240}@[a-z]${t}{0,13})$`),r=/^[ -~]{0,255}[!-~]$/,i=/,|=/;e.validateKey=function(e){return n.test(e)},e.validateValue=function(e){return r.test(e)&&!i.test(e)}})),it=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceState=void 0;var t=rt(),n=class{constructor(e){this._internalState=new Map,e&&this._parse(e)}set(e,t){let n=this._clone();return n._internalState.has(e)&&n._internalState.delete(e),n._internalState.set(e,t),n}unset(e){let t=this._clone();return t._internalState.delete(e),t}get(e){return this._internalState.get(e)}serialize(){return this._keys().reduce(((e,t)=>(e.push(t+"="+this.get(t)),e)),[]).join(",")}_parse(e){e.length>512||(this._internalState=e.split(",").reverse().reduce(((e,n)=>{let r=n.trim(),i=r.indexOf("=");if(-1!==i){let o=r.slice(0,i),a=r.slice(i+1,n.length);t.validateKey(o)&&t.validateValue(a)&&e.set(o,a)}return e}),new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){let e=new n;return e._internalState=new Map(this._internalState),e}};e.TraceState=n})),ot=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HttpTraceContextPropagator=e.parseTraceParent=e.TRACE_STATE_HEADER=e.TRACE_PARENT_HEADER=void 0;var t=Pe(),n=Oe(),r=it();e.TRACE_PARENT_HEADER="traceparent",e.TRACE_STATE_HEADER="tracestate";var i=new RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function o(e){let t=i.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}e.parseTraceParent=o,e.HttpTraceContextPropagator=class{inject(r,i,o){let a=t.trace.getSpanContext(r);if(!a||n.isTracingSuppressed(r)||!t.isSpanContextValid(a))return;let s=`00-${a.traceId}-${a.spanId}-0${Number(a.traceFlags||t.TraceFlags.NONE).toString(16)}`;o.set(i,e.TRACE_PARENT_HEADER,s),a.traceState&&o.set(i,e.TRACE_STATE_HEADER,a.traceState.serialize())}extract(n,i,a){let s=a.get(i,e.TRACE_PARENT_HEADER);if(!s)return n;let c=Array.isArray(s)?s[0]:s;if("string"!=typeof c)return n;let l=o(c);if(!l)return n;l.isRemote=!0;let u=a.get(i,e.TRACE_STATE_HEADER);if(u){let e=Array.isArray(u)?u.join(","):u;l.traceState=new r.TraceState("string"==typeof e?e:void 0)}return t.trace.setSpanContext(n,l)}fields(){return[e.TRACE_PARENT_HEADER,e.TRACE_STATE_HEADER]}}})),at=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),st=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRPCMetadata=e.deleteRPCMetadata=e.setRPCMetadata=e.RPCType=void 0;var t=Pe().createContextKey("OpenTelemetry SDK Context Key RPC_METADATA");(e.RPCType||(e.RPCType={})).HTTP="http",e.setRPCMetadata=function(e,n){return e.setValue(t,n)},e.deleteRPCMetadata=function(e){return e.deleteValue(t)},e.getRPCMetadata=function(e){return e.getValue(t)}})),ct=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOffSampler=void 0;var t=Pe();e.AlwaysOffSampler=class{shouldSample(){return{decision:t.SamplingDecision.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}})),lt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlwaysOnSampler=void 0;var t=Pe();e.AlwaysOnSampler=class{shouldSample(){return{decision:t.SamplingDecision.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}})),ut=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParentBasedSampler=void 0;var t=Pe(),n=Me(),r=ct(),i=lt();e.ParentBasedSampler=class{constructor(e){var t,o,a,s;this._root=e.root,this._root||(n.globalErrorHandler(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new i.AlwaysOnSampler),this._remoteParentSampled=null!==(t=e.remoteParentSampled)&&void 0!==t?t:new i.AlwaysOnSampler,this._remoteParentNotSampled=null!==(o=e.remoteParentNotSampled)&&void 0!==o?o:new r.AlwaysOffSampler,this._localParentSampled=null!==(a=e.localParentSampled)&&void 0!==a?a:new i.AlwaysOnSampler,this._localParentNotSampled=null!==(s=e.localParentNotSampled)&&void 0!==s?s:new r.AlwaysOffSampler}shouldSample(e,n,r,i,o,a){let s=t.trace.getSpanContext(e);return s&&t.isSpanContextValid(s)?s.isRemote?s.traceFlags&t.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,n,r,i,o,a):this._remoteParentNotSampled.shouldSample(e,n,r,i,o,a):s.traceFlags&t.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,n,r,i,o,a):this._localParentNotSampled.shouldSample(e,n,r,i,o,a):this._root.shouldSample(e,n,r,i,o,a)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}})),pt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TraceIdRatioBasedSampler=void 0;var t=Pe();e.TraceIdRatioBasedSampler=class{constructor(e=0){this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(4294967295*this._ratio)}shouldSample(e,n){return{decision:t.isValidTraceId(n)&&this._accumulate(n)<this._upperBound?t.SamplingDecision.RECORD_AND_SAMPLED:t.SamplingDecision.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e}_accumulate(e){let t=0;for(let n=0;n<e.length/8;n++){let r=8*n;t=(t^parseInt(e.slice(r,r+8),16))>>>0}return t}}})),dt=_((e=>{"use strict";function t(e,t){return"string"==typeof t?e===t:t.test(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isUrlIgnored=e.urlMatches=void 0,e.urlMatches=t,e.isUrlIgnored=function(e,n){if(!n)return!1;for(let r of n)if(t(e,r))return!0;return!1}})),ft=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isWrapped=void 0,e.isWrapped=function(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}})),ht=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.baggageUtils=void 0,n(De(),e),n(ke(),e),n(Me(),e),n(Le(),e),n(Ze(),e),n(et(),e),n(tt(),e),n(qe(),e),e.baggageUtils=Re(),n(Je(),e),n(nt(),e),n(ot(),e),n(at(),e),n(st(),e),n(ct(),e),n(lt(),e),n(ut(),e),n(pt(),e),n(Oe(),e),n(it(),e),n(ze(),e),n(je(),e),n(dt(),e),n(ft(),e),n(qe(),e)})),mt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ExceptionEventName=void 0,e.ExceptionEventName="exception"})),vt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Span=void 0;var t=Pe(),n=ht(),r=Qe(),i=mt();e.Span=class{constructor(e,r,i,o,a,s,c=[],l=n.hrTime()){this.attributes={},this.links=[],this.events=[],this.status={code:t.SpanStatusCode.UNSET},this.endTime=[0,0],this._ended=!1,this._duration=[-1,-1],this.name=i,this._spanContext=o,this.parentSpanId=s,this.kind=a,this.links=c,this.startTime=n.timeInputToHrTime(l),this.resource=e.resource,this.instrumentationLibrary=e.instrumentationLibrary,this._spanLimits=e.getSpanLimits(),this._spanProcessor=e.getActiveSpanProcessor(),this._spanProcessor.onStart(this,r)}spanContext(){return this._spanContext}setAttribute(e,r){return null==r||this._isSpanEnded()?this:0===e.length?(t.diag.warn(`Invalid attribute key: ${e}`),this):n.isAttributeValue(r)?(Object.keys(this.attributes).length>=this._spanLimits.attributeCountLimit&&!Object.prototype.hasOwnProperty.call(this.attributes,e)||(this.attributes[e]=r),this):(t.diag.warn(`Invalid attribute value set for key: ${e}`),this)}setAttributes(e){for(let[t,n]of Object.entries(e))this.setAttribute(t,n);return this}addEvent(e,r,i){return this._isSpanEnded()||(this.events.length>=this._spanLimits.eventCountLimit&&(t.diag.warn("Dropping extra events."),this.events.shift()),n.isTimeInput(r)&&(typeof i>"u"&&(i=r),r=void 0),typeof i>"u"&&(i=n.hrTime()),this.events.push({name:e,attributes:r,time:n.timeInputToHrTime(i)})),this}setStatus(e){return this._isSpanEnded()||(this.status=e),this}updateName(e){return this._isSpanEnded()||(this.name=e),this}end(e=n.hrTime()){this._isSpanEnded()?t.diag.error("You can only call end() on a span once."):(this._ended=!0,this.endTime=n.timeInputToHrTime(e),this._duration=n.hrTimeDuration(this.startTime,this.endTime),this._duration[0]<0&&t.diag.warn("Inconsistent start and end time, startTime > endTime",this.startTime,this.endTime),this._spanProcessor.onEnd(this))}isRecording(){return!1===this._ended}recordException(e,o=n.hrTime()){let a={};"string"==typeof e?a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e:e&&(e.code?a[r.SemanticAttributes.EXCEPTION_TYPE]=e.code.toString():e.name&&(a[r.SemanticAttributes.EXCEPTION_TYPE]=e.name),e.message&&(a[r.SemanticAttributes.EXCEPTION_MESSAGE]=e.message),e.stack&&(a[r.SemanticAttributes.EXCEPTION_STACKTRACE]=e.stack)),a[r.SemanticAttributes.EXCEPTION_TYPE]||a[r.SemanticAttributes.EXCEPTION_MESSAGE]?this.addEvent(i.ExceptionEventName,a,o):t.diag.warn(`Failed to record an exception ${e}`)}get duration(){return this._duration}get ended(){return this._ended}_isSpanEnded(){return this._ended&&t.diag.warn("Can not execute the operation on ended Span {traceId: %s, spanId: %s}",this._spanContext.traceId,this._spanContext.spanId),this._ended}}})),gt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildSamplerFromEnv=e.DEFAULT_CONFIG=void 0;var t=Pe(),n=ht(),r=n.getEnv(),i=n.TracesSamplerValues.AlwaysOn;function o(e=n.getEnv()){switch(e.OTEL_TRACES_SAMPLER){case n.TracesSamplerValues.AlwaysOn:return new n.AlwaysOnSampler;case n.TracesSamplerValues.AlwaysOff:return new n.AlwaysOffSampler;case n.TracesSamplerValues.ParentBasedAlwaysOn:return new n.ParentBasedSampler({root:new n.AlwaysOnSampler});case n.TracesSamplerValues.ParentBasedAlwaysOff:return new n.ParentBasedSampler({root:new n.AlwaysOffSampler});case n.TracesSamplerValues.TraceIdRatio:return new n.TraceIdRatioBasedSampler(s(e));case n.TracesSamplerValues.ParentBasedTraceIdRatio:return new n.ParentBasedSampler({root:new n.TraceIdRatioBasedSampler(s(e))});default:return t.diag.error(`OTEL_TRACES_SAMPLER value "${e.OTEL_TRACES_SAMPLER} invalid, defaulting to ${i}".`),new n.AlwaysOnSampler}}e.DEFAULT_CONFIG={sampler:o(r),forceFlushTimeoutMillis:3e4,spanLimits:{attributeCountLimit:n.getEnv().OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT,linkCountLimit:n.getEnv().OTEL_SPAN_LINK_COUNT_LIMIT,eventCountLimit:n.getEnv().OTEL_SPAN_EVENT_COUNT_LIMIT}},e.buildSamplerFromEnv=o;var a=1;function s(e){if(void 0===e.OTEL_TRACES_SAMPLER_ARG||""===e.OTEL_TRACES_SAMPLER_ARG)return t.diag.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${a}.`),a;let n=Number(e.OTEL_TRACES_SAMPLER_ARG);return isNaN(n)?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is invalid, defaulting to ${a}.`),a):n<0||n>1?(t.diag.error(`OTEL_TRACES_SAMPLER_ARG=${e.OTEL_TRACES_SAMPLER_ARG} was given, but it is out of range ([0..1]), defaulting to ${a}.`),a):n}})),bt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeConfig=void 0;var t=gt();e.mergeConfig=function(e){let n={sampler:t.buildSamplerFromEnv()},r=Object.assign({},t.DEFAULT_CONFIG,n,e);return r.spanLimits=Object.assign({},t.DEFAULT_CONFIG.spanLimits,e.spanLimits||{}),r}})),yt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracer=void 0;var t=Pe(),n=ht(),r=vt(),i=bt();e.Tracer=class{constructor(e,t,r){this._tracerProvider=r;let o=i.mergeConfig(t);this._sampler=o.sampler,this._spanLimits=o.spanLimits,this._idGenerator=t.idGenerator||new n.RandomIdGenerator,this.resource=r.resource,this.instrumentationLibrary=e}startSpan(e,i={},o=t.context.active()){var a,s;if(n.isTracingSuppressed(o))return t.diag.debug("Instrumentation suppressed, returning Noop Span"),t.trace.wrapSpanContext(t.INVALID_SPAN_CONTEXT);let c,l,u,p=function(e,n){if(!e.root)return t.trace.getSpanContext(n)}(i,o),d=this._idGenerator.generateSpanId();p&&t.trace.isSpanContextValid(p)?(c=p.traceId,l=p.traceState,u=p.spanId):c=this._idGenerator.generateTraceId();let f=null!==(a=i.kind)&&void 0!==a?a:t.SpanKind.INTERNAL,h=null!==(s=i.links)&&void 0!==s?s:[],m=n.sanitizeAttributes(i.attributes),v=this._sampler.shouldSample(i.root?t.trace.setSpanContext(o,t.INVALID_SPAN_CONTEXT):o,c,e,f,m,h),g={traceId:c,spanId:d,traceFlags:v.decision===t.SamplingDecision.RECORD_AND_SAMPLED?t.TraceFlags.SAMPLED:t.TraceFlags.NONE,traceState:l};if(v.decision===t.SamplingDecision.NOT_RECORD)return t.diag.debug("Recording is off, propagating context in a non-recording span"),t.trace.wrapSpanContext(g);let b=new r.Span(this,o,e,g,f,u,h,i.startTime);return b.setAttributes(Object.assign(m,v.attributes)),b}startActiveSpan(e,n,r,i){let o,a,s;if(arguments.length<2)return;2===arguments.length?s=n:3===arguments.length?(o=n,s=r):(o=n,a=r,s=i);let c=a??t.context.active(),l=this.startSpan(e,o,c),u=t.trace.setSpan(c,l);return t.context.with(u,s,void 0,l)}getSpanLimits(){return this._spanLimits}getActiveSpanProcessor(){return this._tracerProvider.getActiveSpanProcessor()}}})),_t=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultServiceName=void 0,e.defaultServiceName=function(){return`unknown_service:${process.argv0}`}})),xt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.detectResources=void 0;var t=Ct(),r=Pe(),i=n(9023);e.detectResources=async(e={})=>{let n=Object.assign(e),i=await Promise.all((n.detectors||[]).map((async e=>{try{let t=await e.detect(n);return r.diag.debug(`${e.constructor.name} found resource.`,t),t}catch(n){return r.diag.debug(`${e.constructor.name} failed: ${n.message}`),t.Resource.empty()}})));return o(i),i.reduce(((e,t)=>e.merge(t)),t.Resource.empty())};var o=e=>{e.forEach((e=>{if(Object.keys(e.attributes).length>0){let t=i.inspect(e.attributes,{depth:2,breakLength:1/0,sorted:!0,compact:!1});r.diag.verbose(t)}}))}})),wt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.envDetector=void 0;var t=Pe(),n=ht(),r=Qe(),i=Ot();e.envDetector=new class{constructor(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}async detect(e){let o={},a=n.getEnv(),s=a.OTEL_RESOURCE_ATTRIBUTES,c=a.OTEL_SERVICE_NAME;if(s)try{let e=this._parseResourceAttributes(s);Object.assign(o,e)}catch(e){t.diag.debug(`EnvDetector failed: ${e.message}`)}return c&&(o[r.ResourceAttributes.SERVICE_NAME]=c),new i.Resource(o)}_parseResourceAttributes(e){if(!e)return{};let t={},n=e.split(this._COMMA_SEPARATOR,-1);for(let e of n){let n=e.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2!==n.length)continue;let[r,i]=n;if(r=r.trim(),i=i.trim().split('^"|"$').join(""),!this._isValidAndNotEmpty(r))throw new Error(`Attribute key ${this._ERROR_MESSAGE_INVALID_CHARS}`);if(!this._isValid(i))throw new Error(`Attribute value ${this._ERROR_MESSAGE_INVALID_VALUE}`);t[r]=i}return t}_isValid(e){return e.length<=this._MAX_LENGTH&&this._isPrintableString(e)}_isPrintableString(e){for(let t=0;t<e.length;t++){let n=e.charAt(t);if(n<=" "||n>="~")return!1}return!0}_isValidAndNotEmpty(e){return e.length>0&&this._isValid(e)}}})),Et=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.processDetector=void 0;var t=Pe(),n=Qe(),r=Ot();e.processDetector=new class{async detect(e){let t={[n.ResourceAttributes.PROCESS_PID]:process.pid,[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]:process.title||"",[n.ResourceAttributes.PROCESS_COMMAND]:process.argv[1]||"",[n.ResourceAttributes.PROCESS_COMMAND_LINE]:process.argv.join(" ")||""};return this._getResourceAttributes(t,e)}_getResourceAttributes(e,i){return""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_NAME]||""===e[n.ResourceAttributes.PROCESS_EXECUTABLE_PATH]||""===e[n.ResourceAttributes.PROCESS_COMMAND]||""===e[n.ResourceAttributes.PROCESS_COMMAND_LINE]?(t.diag.debug("ProcessDetector failed: Unable to find required process resources. "),r.Resource.empty()):new r.Resource(Object.assign({},e))}}})),At=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(wt(),e),n(Et(),e)})),St=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(_t(),e),n(xt(),e),n(At(),e)})),Tt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(St(),e)})),Ct=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Resource=void 0;var t=Qe(),n=ht(),r=Tt(),i=class{constructor(e){this.attributes=e}static empty(){return i.EMPTY}static default(){return new i({[t.ResourceAttributes.SERVICE_NAME]:r.defaultServiceName(),[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_LANGUAGE],[t.ResourceAttributes.TELEMETRY_SDK_NAME]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_NAME],[t.ResourceAttributes.TELEMETRY_SDK_VERSION]:n.SDK_INFO[t.ResourceAttributes.TELEMETRY_SDK_VERSION]})}merge(e){if(!e||!Object.keys(e.attributes).length)return this;let t=Object.assign({},this.attributes,e.attributes);return new i(t)}};e.Resource=i,i.EMPTY=new i({})})),It=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Pt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ot=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Ct(),e),n(Tt(),e),n(It(),e),n(Pt(),e)})),Nt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MultiSpanProcessor=void 0;var t=ht();e.MultiSpanProcessor=class{constructor(e){this._spanProcessors=e}forceFlush(){let e=[];for(let t of this._spanProcessors)e.push(t.forceFlush());return new Promise((n=>{Promise.all(e).then((()=>{n()})).catch((e=>{t.globalErrorHandler(e||new Error("MultiSpanProcessor: forceFlush failed")),n()}))}))}onStart(e,t){for(let n of this._spanProcessors)n.onStart(e,t)}onEnd(e){for(let t of this._spanProcessors)t.onEnd(e)}shutdown(){let e=[];for(let t of this._spanProcessors)e.push(t.shutdown());return new Promise(((t,n)=>{Promise.all(e).then((()=>{t()}),n)}))}}})),Rt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NoopSpanProcessor=void 0,e.NoopSpanProcessor=class{onStart(e,t){}onEnd(e){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}})),Dt=_(((e,t)=>{var n="__lodash_hash_undefined__",r=9007199254740991,i="[object Arguments]",o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",c="[object Null]",l="[object Object]",u="[object Proxy]",p="[object Undefined]",d=/^\[object .+?Constructor\]$/,f=/^(?:0|[1-9]\d*)$/,h={};h["[object Float32Array]"]=h["[object Float64Array]"]=h["[object Int8Array]"]=h["[object Int16Array]"]=h["[object Int32Array]"]=h["[object Uint8Array]"]=h["[object Uint8ClampedArray]"]=h["[object Uint16Array]"]=h["[object Uint32Array]"]=!0,h[i]=h["[object Array]"]=h["[object ArrayBuffer]"]=h["[object Boolean]"]=h["[object DataView]"]=h["[object Date]"]=h["[object Error]"]=h[a]=h["[object Map]"]=h["[object Number]"]=h[l]=h["[object RegExp]"]=h["[object Set]"]=h["[object String]"]=h["[object WeakMap]"]=!1;var m,v="object"==typeof global&&global&&global.Object===Object&&global,g="object"==typeof self&&self&&self.Object===Object&&self,b=v||g||Function("return this")(),y="object"==typeof e&&e&&!e.nodeType&&e,_=y&&"object"==typeof t&&t&&!t.nodeType&&t,x=_&&_.exports===y,w=x&&v.process,E=function(){try{return _&&_.require&&_.require("util").types||w&&w.binding&&w.binding("util")}catch{}}(),A=E&&E.isTypedArray,S=Array.prototype,T=Function.prototype,C=Object.prototype,I=b["__core-js_shared__"],P=T.toString,O=C.hasOwnProperty,N=(m=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+m:"",R=C.toString,D=P.call(Object),k=RegExp("^"+P.call(O).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),L=x?b.Buffer:void 0,M=b.Symbol,j=b.Uint8Array,z=(L&&L.allocUnsafe,function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object)),F=Object.create,B=C.propertyIsEnumerable,V=S.splice,U=M?M.toStringTag:void 0,q=function(){try{var e=ue(Object,"defineProperty");return e({},"",{}),e}catch{}}(),H=L?L.isBuffer:void 0,G=Math.max,$=Date.now,W=ue(b,"Map"),Q=ue(Object,"create"),K=function(){function e(){}return function(t){if(!we(t))return{};if(F)return F(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function X(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Y(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function J(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Z(e){var t=this.__data__=new Y(e);this.size=t.size}function ee(e,t,n){(void 0!==n&&!me(e[t],n)||void 0===n&&!(t in e))&&re(e,t,n)}function te(e,t,n){var r=e[t];(!O.call(e,t)||!me(r,n)||void 0===n&&!(t in e))&&re(e,t,n)}function ne(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function re(e,t,n){"__proto__"==t&&q?q(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}X.prototype.clear=function(){this.__data__=Q?Q(null):{},this.size=0},X.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},X.prototype.get=function(e){var t=this.__data__;if(Q){var r=t[e];return r===n?void 0:r}return O.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return Q?void 0!==t[e]:O.call(t,e)},X.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Q&&void 0===t?n:t,this},Y.prototype.clear=function(){this.__data__=[],this.size=0},Y.prototype.delete=function(e){var t=this.__data__,n=ne(t,e);return!(n<0||(n==t.length-1?t.pop():V.call(t,n,1),--this.size,0))},Y.prototype.get=function(e){var t=this.__data__,n=ne(t,e);return n<0?void 0:t[n][1]},Y.prototype.has=function(e){return ne(this.__data__,e)>-1},Y.prototype.set=function(e,t){var n=this.__data__,r=ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},J.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(W||Y),string:new X}},J.prototype.delete=function(e){var t=le(this,e).delete(e);return this.size-=t?1:0,t},J.prototype.get=function(e){return le(this,e).get(e)},J.prototype.has=function(e){return le(this,e).has(e)},J.prototype.set=function(e,t){var n=le(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Z.prototype.clear=function(){this.__data__=new Y,this.size=0},Z.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Z.prototype.get=function(e){return this.__data__.get(e)},Z.prototype.has=function(e){return this.__data__.has(e)},Z.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Y){var r=n.__data__;if(!W||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new J(r)}return n.set(e,t),this.size=n.size,this};var ie=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e};function oe(e){return null==e?void 0===e?p:c:U&&U in Object(e)?function(e){var t=O.call(e,U),n=e[U];try{e[U]=void 0;var r=!0}catch{}var i=R.call(e);return r&&(t?e[U]=n:delete e[U]),i}(e):function(e){return R.call(e)}(e)}function ae(e){return Ee(e)&&oe(e)==i}function se(e,t,n,r,i){e!==t&&ie(t,(function(o,a){if(i||(i=new Z),we(o))!function(e,t,n,r,i,o,a){var s=fe(e,n),c=fe(t,n),u=a.get(c);if(u)ee(e,n,u);else{var p=o?o(s,c,n+"",e,t,a):void 0,d=void 0===p;if(d){var f=ge(c),h=!f&&ye(c),m=!f&&!h&&Ae(c);p=c,f||h||m?ge(s)?p=s:function(e){return Ee(e)&&be(e)}(s)?p=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(s):h?(d=!1,p=function(e){return e.slice()}(c)):m?(d=!1,p=function(e){var t=function(e){var t=new e.constructor(e.byteLength);return new j(t).set(new j(e)),t}(e.buffer);return new e.constructor(t,e.byteOffset,e.length)}(c)):p=[]:function(e){if(!Ee(e)||oe(e)!=l)return!1;var t=z(e);if(null===t)return!0;var n=O.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&P.call(n)==D}(c)||ve(c)?(p=s,ve(s)?p=function(e){return function(e,t,n){var r=!n;n||(n={});for(var i=-1,o=t.length;++i<o;){var a=t[i],s=void 0;void 0===s&&(s=e[a]),r?re(n,a,s):te(n,a,s)}return n}(e,Se(e))}(s):(!we(s)||_e(s))&&(p=function(e){return"function"!=typeof e.constructor||de(e)?{}:K(z(e))}(c))):d=!1}d&&(a.set(c,p),i(p,c,r,o,a),a.delete(c)),ee(e,n,p)}}(e,t,a,n,se,r,i);else{var s=r?r(fe(e,a),o,a+"",e,t,i):void 0;void 0===s&&(s=o),ee(e,a,s)}}),Se)}var ce=q?function(e,t){return q(e,"toString",{configurable:!0,enumerable:!1,value:Ce(t),writable:!0})}:Ie;function le(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function ue(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){return!(!we(e)||function(e){return!!N&&N in e}(e))&&(_e(e)?k:d).test(function(e){if(null!=e){try{return P.call(e)}catch{}try{return e+""}catch{}}return""}(e))}(n)?n:void 0}function pe(e,t){var n=typeof e;return!!(t=t??r)&&("number"==n||"symbol"!=n&&f.test(e))&&e>-1&&e%1==0&&e<t}function de(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||C)}function fe(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var he=function(e){var t=0,n=0;return function(){var r=$(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(ce);function me(e,t){return e===t||e!=e&&t!=t}var ve=ae(function(){return arguments}())?ae:function(e){return Ee(e)&&O.call(e,"callee")&&!B.call(e,"callee")},ge=Array.isArray;function be(e){return null!=e&&xe(e.length)&&!_e(e)}var ye=H||function(){return!1};function _e(e){if(!we(e))return!1;var t=oe(e);return t==a||t==s||t==o||t==u}function xe(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function we(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ee(e){return null!=e&&"object"==typeof e}var Ae=A?function(e){return function(t){return e(t)}}(A):function(e){return Ee(e)&&xe(e.length)&&!!h[oe(e)]};function Se(e){return be(e)?function(e,t){var n=ge(e),r=!n&&ve(e),i=!n&&!r&&ye(e),o=!n&&!r&&!i&&Ae(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],c=s.length;for(var l in e)(t||O.call(e,l))&&(!a||!("length"==l||i&&("offset"==l||"parent"==l)||o&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||pe(l,c)))&&s.push(l);return s}(e,!0):function(e){if(!we(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=de(e),n=[];for(var r in e)"constructor"==r&&(t||!O.call(e,r))||n.push(r);return n}(e)}var Te=function(e){return function(e,t){return he(function(e,t,n){return t=G(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=G(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}}(e,t,Ie),e+"")}((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&function(e,t,n){if(!we(n))return!1;var r=typeof t;return!!("number"==r?be(n)&&pe(t,n.length):"string"==r&&t in n)&&me(n[t],e)}(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var s=n[r];s&&e(t,s,r)}return t}))}((function(e,t,n){se(e,t,n)}));function Ce(e){return function(){return e}}function Ie(e){return e}t.exports=Te})),kt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessorBase=void 0;var t=Pe(),n=ht();e.BatchSpanProcessorBase=class{constructor(e,t){this._exporter=e,this._finishedSpans=[],this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve();let r=n.getEnv();this._maxExportBatchSize="number"==typeof(null==t?void 0:t.maxExportBatchSize)?t.maxExportBatchSize:r.OTEL_BSP_MAX_EXPORT_BATCH_SIZE,this._maxQueueSize="number"==typeof(null==t?void 0:t.maxQueueSize)?t.maxQueueSize:r.OTEL_BSP_MAX_QUEUE_SIZE,this._scheduledDelayMillis="number"==typeof(null==t?void 0:t.scheduledDelayMillis)?t.scheduledDelayMillis:r.OTEL_BSP_SCHEDULE_DELAY,this._exportTimeoutMillis="number"==typeof(null==t?void 0:t.exportTimeoutMillis)?t.exportTimeoutMillis:r.OTEL_BSP_EXPORT_TIMEOUT}forceFlush(){return this._isShutdown?this._shuttingDownPromise:this._flushAll()}onStart(e){}onEnd(e){this._isShutdown||this._addToBuffer(e)}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this.onShutdown())).then((()=>this._flushAll())).then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}_addToBuffer(e){this._finishedSpans.length>=this._maxQueueSize||(this._finishedSpans.push(e),this._maybeStartTimer())}_flushAll(){return new Promise(((e,t)=>{let n=[];for(let e=0,t=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);e<t;e++)n.push(this._flushOneBatch());Promise.all(n).then((()=>{e()})).catch(t)}))}_flushOneBatch(){return this._clearTimer(),0===this._finishedSpans.length?Promise.resolve():new Promise(((e,r)=>{let i=setTimeout((()=>{r(new Error("Timeout"))}),this._exportTimeoutMillis);t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export(this._finishedSpans.splice(0,this._maxExportBatchSize),(t=>{var o;clearTimeout(i),t.code===n.ExportResultCode.SUCCESS?e():r(null!==(o=t.error)&&void 0!==o?o:new Error("BatchSpanProcessor: span export failed"))}))}))}))}_maybeStartTimer(){void 0===this._timer&&(this._timer=setTimeout((()=>{this._flushOneBatch().then((()=>{this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())})).catch((e=>{n.globalErrorHandler(e)}))}),this._scheduledDelayMillis),n.unrefTimer(this._timer))}_clearTimer(){void 0!==this._timer&&(clearTimeout(this._timer),this._timer=void 0)}}})),Lt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BatchSpanProcessor=void 0;var t=kt(),n=class extends t.BatchSpanProcessorBase{onShutdown(){}};e.BatchSpanProcessor=n})),Mt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Lt(),e)})),jt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Mt(),e)})),zt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BasicTracerProvider=e.ForceFlushState=void 0;var t,n,r=Pe(),i=ht(),o=Ot(),a=Wt(),s=gt(),c=Nt(),l=Rt(),u=Dt(),p=jt();(n=t=e.ForceFlushState||(e.ForceFlushState={}))[n.resolved=0]="resolved",n[n.timeout=1]="timeout",n[n.error=2]="error",n[n.unresolved=3]="unresolved";var d=class{constructor(e={}){var t;this._registeredSpanProcessors=[],this._tracers=new Map;let n=u({},s.DEFAULT_CONFIG,e);this.resource=null!==(t=n.resource)&&void 0!==t?t:o.Resource.empty(),this.resource=o.Resource.default().merge(this.resource),this._config=Object.assign({},n,{resource:this.resource});let r=this._buildExporterFromEnv();if(void 0!==r){let e=new p.BatchSpanProcessor(r);this.activeSpanProcessor=e}else this.activeSpanProcessor=new l.NoopSpanProcessor}getTracer(e,t){let n=`${e}@${t||""}`;return this._tracers.has(n)||this._tracers.set(n,new a.Tracer({name:e,version:t},this._config,this)),this._tracers.get(n)}addSpanProcessor(e){0===this._registeredSpanProcessors.length&&this.activeSpanProcessor.shutdown().catch((e=>r.diag.error("Error while trying to shutdown current span processor",e))),this._registeredSpanProcessors.push(e),this.activeSpanProcessor=new c.MultiSpanProcessor(this._registeredSpanProcessors)}getActiveSpanProcessor(){return this.activeSpanProcessor}register(e={}){r.trace.setGlobalTracerProvider(this),void 0===e.propagator&&(e.propagator=this._buildPropagatorFromEnv()),e.contextManager&&r.context.setGlobalContextManager(e.contextManager),e.propagator&&r.propagation.setGlobalPropagator(e.propagator)}forceFlush(){let e=this._config.forceFlushTimeoutMillis,n=this._registeredSpanProcessors.map((n=>new Promise((r=>{let i,o=setTimeout((()=>{r(new Error(`Span processor did not completed within timeout period of ${e} ms`)),i=t.timeout}),e);n.forceFlush().then((()=>{clearTimeout(o),i!==t.timeout&&(i=t.resolved,r(i))})).catch((e=>{clearTimeout(o),i=t.error,r(e)}))}))));return new Promise(((e,r)=>{Promise.all(n).then((n=>{let i=n.filter((e=>e!==t.resolved));i.length>0?r(i):e()})).catch((e=>r([e])))}))}shutdown(){return this.activeSpanProcessor.shutdown()}_getPropagator(e){var t;return null===(t=d._registeredPropagators.get(e))||void 0===t?void 0:t()}_getSpanExporter(e){var t;return null===(t=d._registeredExporters.get(e))||void 0===t?void 0:t()}_buildPropagatorFromEnv(){let e=Array.from(new Set(i.getEnv().OTEL_PROPAGATORS)),t=e.map((e=>{let t=this._getPropagator(e);return t||r.diag.warn(`Propagator "${e}" requested through environment variable is unavailable.`),t})).reduce(((e,t)=>(t&&e.push(t),e)),[]);if(0!==t.length)return 1===e.length?t[0]:new i.CompositePropagator({propagators:t})}_buildExporterFromEnv(){let e=i.getEnv().OTEL_TRACES_EXPORTER;if("none"===e)return;let t=this._getSpanExporter(e);return t||r.diag.error(`Exporter "${e}" requested through environment variable is unavailable.`),t}};e.BasicTracerProvider=d,d._registeredPropagators=new Map([["tracecontext",()=>new i.HttpTraceContextPropagator],["baggage",()=>new i.HttpBaggagePropagator]]),d._registeredExporters=new Map})),Ft=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ConsoleSpanExporter=void 0;var t=ht();e.ConsoleSpanExporter=class{export(e,t){return this._sendSpans(e,t)}shutdown(){return this._sendSpans([]),Promise.resolve()}_exportInfo(e){return{traceId:e.spanContext().traceId,parentId:e.parentSpanId,name:e.name,id:e.spanContext().spanId,kind:e.kind,timestamp:t.hrTimeToMicroseconds(e.startTime),duration:t.hrTimeToMicroseconds(e.duration),attributes:e.attributes,status:e.status,events:e.events}}_sendSpans(e,n){for(let t of e)console.log(this._exportInfo(t));if(n)return n({code:t.ExportResultCode.SUCCESS})}}})),Bt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InMemorySpanExporter=void 0;var t=ht();e.InMemorySpanExporter=class{constructor(){this._finishedSpans=[],this._stopped=!1}export(e,n){if(this._stopped)return n({code:t.ExportResultCode.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...e),setTimeout((()=>n({code:t.ExportResultCode.SUCCESS})),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}})),Vt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ut=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SimpleSpanProcessor=void 0;var t=Pe(),n=ht();e.SimpleSpanProcessor=class{constructor(e){this._exporter=e,this._isShutdown=!1,this._shuttingDownPromise=Promise.resolve()}forceFlush(){return Promise.resolve()}onStart(e){}onEnd(e){this._isShutdown||t.context.with(n.suppressTracing(t.context.active()),(()=>{this._exporter.export([e],(e=>{var t;e.code!==n.ExportResultCode.SUCCESS&&n.globalErrorHandler(null!==(t=e.error)&&void 0!==t?t:new Error(`SimpleSpanProcessor: span export failed (status ${e})`))}))}))}shutdown(){return this._isShutdown||(this._isShutdown=!0,this._shuttingDownPromise=new Promise(((e,t)=>{Promise.resolve().then((()=>this._exporter.shutdown())).then(e).catch((e=>{t(e)}))}))),this._shuttingDownPromise}}})),qt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ht=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),$t=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Wt=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(yt(),e),n(zt(),e),n(jt(),e),n(Ft(),e),n(Bt(),e),n(Vt(),e),n(Ut(),e),n(qt(),e),n(Rt(),e),n(vt(),e),n(Ht(),e),n(Gt(),e),n($t(),e)})),Qt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.azureCoreTracing=e.AzureMonitorSymbol=void 0;var t=k();e.AzureMonitorSymbol="Azure_Monitor_Tracer";var n=!1;e.azureCoreTracing={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(r){if(n)return r;try{var i=Wt(),o=Pe(),a=(new i.BasicTracerProvider).getTracer("applicationinsights tracer"),s=r.setTracer;r.setTracer=function(n){var r=n.startSpan;n.startSpan=function(e,n,i){var o=r.call(this,e,n,i),a=o.end;return o.end=function(){var e=a.apply(this,arguments);return t.channel.publish("azure-coretracing",o),e},o},n[e.AzureMonitorSymbol]=!0,s.call(this,n)},o.trace.getSpan(o.context.active()),r.setTracer(a),n=!0}catch{}return r}},e.enable=function(){t.channel.registerMonkeyPatch("@azure/core-tracing",e.azureCoreTracing)}})),Kt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.bunyan=void 0;var t=k();e.bunyan={versionSpecifier:">= 1.0.0 < 2.0.0",patch:function(e){var n=e.prototype._emit;return e.prototype._emit=function(e,r){var i=n.apply(this,arguments);if(!r){var o=i;o||(o=n.call(this,e,!0)),t.channel.publish("bunyan",{level:e.level,result:o})}return i},e}},e.enable=function(){t.channel.registerMonkeyPatch("bunyan",e.bunyan)}})),Xt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.console=void 0;var t=k(),r=n(2203);e.console={versionSpecifier:">= 4.0.0",patch:function(e){var n=new r.Writable,i=new r.Writable;n.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n}),!0},i.write=function(e){if(!e)return!0;var n=e.toString();return t.channel.publish("console",{message:n,stderr:!0}),!0};for(var o=new e.Console(n,i),a=function(t){var n=e[t];n&&(e[t]=function(){if(o[t])try{o[t].apply(o,arguments)}catch{}return n.apply(e,arguments)})},s=0,c=["log","info","warn","error","dir","time","timeEnd","trace","assert"];s<c.length;s++)a(c[s]);return e}},e.enable=function(){t.channel.registerMonkeyPatch("console",e.console),n(4236)}})),Yt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongoCore=void 0;var t=k();e.mongoCore={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.Server.prototype.connect;return e.Server.prototype.connect=function(){var e=n.apply(this,arguments),r=this.s.pool.write;this.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=t.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.pool.logout;return this.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=t.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e},e}},e.enable=function(){t.channel.registerMonkeyPatch("mongodb-core",e.mongoCore)}})),Jt=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mongo330=e.mongo3=e.mongo2=void 0;var n=k();e.mongo2={versionSpecifier:">= 2.0.0 <= 3.0.5",patch:function(e){var r=e.instrument({operationIdGenerator:{next:function(){return n.channel.bindToContext((function(e){return e()}))}}}),i={};return r.on("started",(function(e){i[e.requestId]||(i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"function"==typeof e.operationId?e.operationId((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})):n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),e}},e.mongo3={versionSpecifier:"> 3.0.5 < 3.3.0",patch:function(e){var r=e.instrument(),i={},o={};return r.on("started",(function(e){i[e.requestId]||(o[e.requestId]=n.channel.bindToContext((function(e){return e()})),i[e.requestId]=t(t({},e),{time:new Date}))})),r.on("succeeded",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete o[e.requestId])})),r.on("failed",(function(e){var t=i[e.requestId];t&&delete i[e.requestId],"object"==typeof e&&"function"==typeof o[e.requestId]&&(o[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete o[e.requestId])})),e}},e.mongo330={versionSpecifier:">= 3.3.0 < 4.0.0",patch:function(e){!function(e){var t=e.Server.prototype.connect;e.Server.prototype.connect=function(){var e=t.apply(this,arguments),r=this.s.coreTopology.s.pool.write;this.s.coreTopology.s.pool.write=function(){var e="function"==typeof arguments[1]?1:2;return"function"==typeof arguments[e]&&(arguments[e]=n.channel.bindToContext(arguments[e])),r.apply(this,arguments)};var i=this.s.coreTopology.s.pool.logout;return this.s.coreTopology.s.pool.logout=function(){return"function"==typeof arguments[1]&&(arguments[1]=n.channel.bindToContext(arguments[1])),i.apply(this,arguments)},e}}(e);var t=e.instrument(),r={},i={};return t.on("started",(function(e){r[e.requestId]||(i[e.requestId]=n.channel.bindToContext((function(e){return e()})),r[e.requestId]=e)})),t.on("succeeded",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!0})})),delete i[e.requestId])})),t.on("failed",(function(e){var t=r[e.requestId];t&&delete r[e.requestId],"object"==typeof e&&"function"==typeof i[e.requestId]&&(i[e.requestId]((function(){return n.channel.publish("mongodb",{startedData:t,event:e,succeeded:!1})})),delete i[e.requestId])})),e}},e.enable=function(){n.channel.registerMonkeyPatch("mongodb",e.mongo2),n.channel.registerMonkeyPatch("mongodb",e.mongo3),n.channel.registerMonkeyPatch("mongodb",e.mongo330)}})),Zt=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.mysql=void 0;var t=k(),r=n(6928);e.mysql={versionSpecifier:">= 2.0.0 < 3.0.0",patch:function(e,i){var o=function(e,n){return function(n,r){var i=e[n];i&&(e[n]=function(){for(var e=arguments.length-1,n=arguments.length-1;n>=0;--n){if("function"==typeof arguments[n]){e=n;break}if(typeof arguments[n]<"u")break}var o=arguments[e],a={result:null,startTime:null,startDate:null};"function"==typeof o&&(r?(a.startTime=process.hrtime(),a.startDate=new Date,arguments[e]=t.channel.bindToContext(r(a,o))):arguments[e]=t.channel.bindToContext(o));var s=i.apply(this,arguments);return a.result=s,s})}},a=function(e,t){return o(e.prototype)},s=n(889)(r.dirname(i)+"/lib/Connection");["connect","changeUser","ping","statistics","end"].forEach((function(e){return a(s)(e)})),o(s)("createQuery",(function(e,n){return function(r){var i=process.hrtime(e.startTime),o=1e3*i[0]+i[1]/1e6|0;t.channel.publish("mysql",{query:e.result,callbackArgs:arguments,err:r,duration:o,time:e.startDate}),n.apply(this,arguments)}}));var c=n(8371)(r.dirname(i)+"/lib/Pool");return["_enqueueCallback"].forEach((function(e){return a(c)(e)})),e}},e.enable=function(){t.channel.registerMonkeyPatch("mysql",e.mysql)}})),en=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgresPool1=void 0;var t=k();e.postgresPool1={versionSpecifier:">= 1.0.0 < 3.0.0",patch:function(e){var n=e.prototype.connect;return e.prototype.connect=function(e){return e&&(arguments[0]=t.channel.bindToContext(e)),n.apply(this,arguments)},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg-pool",e.postgresPool1)}})),tn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.postgres7=e.postgres6=void 0;var t=k(),r=n(4434);e.postgres6={versionSpecifier:"6.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},l=process.hrtime();function u(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(l);if(c.result=i&&{rowCount:i.rowCount,command:i.command},c.error=n,c.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",c),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(c.query.preparable={text:e,args:n},a=u(a)):(c.query.text=e,a?a=u(a):n=u(n)):("string"==typeof e.name?c.query.plan=e.name:e.values instanceof Array?c.query.preparable={text:e.text,args:e.values}:c.query.text=e.text,a?a=u(a):n?n=u(n):e.callback=u(e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments)},e}},e.postgres7={versionSpecifier:">=7.* <=8.*",patch:function(e,n){var i=e.Client.prototype.query,o="__diagnosticOriginalFunc";return e.Client.prototype.query=function(e,n,a){var s,c=this,l=!!a,u={query:{},database:{host:this.connectionParameters.host,port:this.connectionParameters.port},result:null,error:null,duration:0,time:new Date},p=process.hrtime();function d(e){e&&e[o]&&(e=e[o]);var n=t.channel.bindToContext((function(n,i){var o=process.hrtime(p);if(u.result=i&&{rowCount:i.rowCount,command:i.command},u.error=n,u.duration=Math.ceil(1e3*o[0]+o[1]/1e6),t.channel.publish("postgres",u),n){if(e)return e.apply(this,arguments);s&&s instanceof r.EventEmitter&&s.emit("error",n)}else e&&e.apply(this,arguments)}));try{return Object.defineProperty(n,o,{value:e}),n}catch{return e}}try{"string"==typeof e?n instanceof Array?(u.query.preparable={text:e,args:n},a=(l="function"==typeof a)?d(a):a):(u.query.text=e,a?a=(l="function"==typeof a)?d(a):a:n=(l="function"==typeof n)?d(n):n):("string"==typeof e.name?u.query.plan=e.name:e.values instanceof Array?u.query.preparable={text:e.text,args:e.values}:u.query.text=e.text,a?(l="function"==typeof a,a=d(a)):n?n=(l="function"==typeof n)?d(n):n:(l="function"==typeof e.callback,e.callback=l?d(e.callback):e.callback))}catch{return i.apply(this,arguments)}return arguments[0]=e,arguments[1]=n,arguments[2]=a,arguments.length=arguments.length>3?arguments.length:3,s=i.apply(this,arguments),l?s:s.then((function(e){return d()(void 0,e),new c._Promise((function(t,n){t(e)}))})).catch((function(e){return d()(e,void 0),new c._Promise((function(t,n){n(e)}))}))},e}},e.enable=function(){t.channel.registerMonkeyPatch("pg",e.postgres6),t.channel.registerMonkeyPatch("pg",e.postgres7)}})),nn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.redis=void 0;var t=k();e.redis={versionSpecifier:">= 2.0.0 < 4.0.0",patch:function(e){var n=e.RedisClient.prototype.internal_send_command;return e.RedisClient.prototype.internal_send_command=function(e){if(e){var r=e.callback;if(!r||!r.pubsubBound){var i=this.address,o=process.hrtime(),a=new Date;e.callback=t.channel.bindToContext((function(n,s){var c=process.hrtime(o),l=1e3*c[0]+c[1]/1e6|0;t.channel.publish("redis",{duration:l,address:i,commandObj:e,err:n,result:s,time:a}),"function"==typeof r&&r.apply(this,arguments)})),e.callback.pubsubBound=!0}}return n.call(this,e)},e}},e.enable=function(){t.channel.registerMonkeyPatch("redis",e.redis)}})),rn=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=void 0;var n=k();e.tedious={versionSpecifier:">= 6.0.0 < 9.0.0",patch:function(e){var r=e.Connection.prototype.makeRequest;return e.Connection.prototype.makeRequest=function(){var e,i,o,a=arguments[0];arguments[0].callback=(e=a.callback,i=process.hrtime(),o={query:{},database:{host:null,port:null},result:null,error:null,duration:0},n.channel.bindToContext((function(r,a,s){var c=process.hrtime(i);o=t(t({},o),{database:{host:this.connection.config.server,port:this.connection.config.options.port},result:!r&&{rowCount:a,rows:s},query:{text:this.parametersByName.statement.value},error:r,duration:Math.ceil(1e3*c[0]+c[1]/1e6)}),n.channel.publish("tedious",o),e.call(this,r,a,s)}))),r.apply(this,arguments)},e}},e.enable=function(){n.channel.registerMonkeyPatch("tedious",e.tedious)}})),on=_((e=>{"use strict";var t,n=e&&e.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)},function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}),r=e&&e.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.winston2=e.winston3=void 0;var i=k();e.winston3={versionSpecifier:"3.x",patch:function(e){var t=function(e){function t(t,n){var r=e.call(this,n)||this;return r.winston=t,r}return n(t,e),t.prototype.log=function(e,t){var n=e.message,o=e.level,a=e.meta,s=r(e,["message","level","meta"]);o="function"==typeof Symbol.for?e[Symbol.for("level")]:o,n=e instanceof Error?e:n;var c=function(e,t){return null!=e.config.npm.levels[t]?"npm":null!=e.config.syslog.levels[t]?"syslog":"unknown"}(this.winston,o);for(var l in a=a||{},s)s.hasOwnProperty(l)&&(a[l]=s[l]);i.channel.publish("winston",{message:n,level:o,levelKind:c,meta:a}),t()},t}(e.Transport);function o(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);this.add(new t(e,{level:n}))}var a=e.createLogger;e.createLogger=function(){var n,r=arguments[0].levels||e.config.npm.levels;for(var i in r)r.hasOwnProperty(i)&&(n=void 0===n||r[i]>r[n]?i:n);var s=a.apply(this,arguments);s.add(new t(e,{level:n}));var c=s.configure;return s.configure=function(){c.apply(this,arguments),o.apply(this,arguments)},s};var s=e.configure;return e.configure=function(){s.apply(this,arguments),o.apply(this,arguments)},e.add(new t(e)),e}},e.winston2={versionSpecifier:"2.x",patch:function(e){var t,n=e.Logger.prototype.log,r=function(n,r,o){var a;return a=t===e.config.npm.levels?"npm":t===e.config.syslog.levels?"syslog":"unknown",i.channel.publish("winston",{level:n,message:r,meta:o,levelKind:a}),r};return e.Logger.prototype.log=function(){return t=this.levels,this.filters&&0!==this.filters.length?this.filters[this.filters.length-1]!==r&&(this.filters=this.filters.filter((function(e){return e!==r})),this.filters.push(r)):this.filters=[r],n.apply(this,arguments)},e}},e.enable=function(){i.channel.registerMonkeyPatch("winston",e.winston2),i.channel.registerMonkeyPatch("winston",e.winston3)}})),an=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.tedious=e.pgPool=e.pg=e.winston=e.redis=e.mysql=e.mongodb=e.mongodbCore=e.console=e.bunyan=e.azuresdk=void 0;var t=Qt();e.azuresdk=t;var n=Kt();e.bunyan=n;var r=Xt();e.console=r;var i=Yt();e.mongodbCore=i;var o=Jt();e.mongodb=o;var a=Zt();e.mysql=a;var s=en();e.pgPool=s;var c=tn();e.pg=c;var l=nn();e.redis=l;var u=rn();e.tedious=u;var p=on();e.winston=p,e.enable=function(){n.enable(),r.enable(),i.enable(),o.enable(),a.enable(),c.enable(),s.enable(),l.enable(),p.enable(),t.enable(),u.enable()}})),sn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerContextPreservation=e.IsInitialized=void 0;var t=O(),n=P();e.IsInitialized=!process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL;var r,i,o,a,s="DiagnosticChannel";if(e.IsInitialized){for(a in r=an(),i=(process.env.APPLICATION_INSIGHTS_NO_PATCH_MODULES||"").split(","),o={bunyan:r.bunyan,console:r.console,mongodb:r.mongodb,mongodbCore:r.mongodbCore,mysql:r.mysql,redis:r.redis,pg:r.pg,pgPool:r.pgPool,winston:r.winston,azuresdk:r.azuresdk})-1===i.indexOf(a)&&(o[a].enable(),n.info(s,"Subscribed to "+a+" events"));i.length>0&&n.info(s,"Some modules will not be patched",i)}else n.info(s,"Not subscribing to dependency autocollection because APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL was set");e.registerContextPreservation=function(n){if(e.IsInitialized){var r=k();r.channel.addContextPreservation(n),r.channel.spanContextPropagator=t.AsyncScopeManager}}})),cn=_(((e,t)=>{"use strict";t.exports={requestContextHeader:"request-context",requestContextSourceKey:"appId",requestContextTargetKey:"appId",requestIdHeader:"request-id",parentIdHeader:"x-ms-request-id",rootIdHeader:"x-ms-request-root-id",correlationContextHeader:"correlation-context",traceparentHeader:"traceparent",traceStateHeader:"tracestate"}})),ln=_(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(8611),o=n(5692),a=n(7016),s=n(9140),c=P(),l=cn(),u=function(){function e(){}return e.getCookie=function(t,n){var r="";if(t&&t.length&&"string"==typeof n)for(var i=t+"=",o=n.split(";"),a=0;a<o.length;a++)if(n=o[a],(n=e.trim(n))&&0===n.indexOf(i)){r=n.substring(i.length,o[a].length);break}return r},e.trim=function(e){return"string"==typeof e?e.replace(/^\s+|\s+$/g,""):""},e.int32ArrayToBase64=function(e){var t=function(e,t){return String.fromCharCode(e>>t&255)},n=e.map((function(e){return t(e,24)+t(e,16)+t(e,8)+t(e,0)})).join(""),r=(Buffer.from?Buffer.from(n,"binary"):new Buffer(n,"binary")).toString("base64");return r.substr(0,r.indexOf("="))},e.random32=function(){return 4294967296*Math.random()|0},e.randomu32=function(){return e.random32()+2147483648},e.w3cTraceId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],r="",i=0;i<4;i++)r+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+4*Math.random()|0];return r.substr(0,8)+r.substr(9,4)+"4"+r.substr(13,3)+o+r.substr(16,3)+r.substr(19,12)},e.w3cSpanId=function(){return e.w3cTraceId().substring(16)},e.isValidW3CId=function(e){return 32===e.length&&"00000000000000000000000000000000"!==e},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return e instanceof Error},e.isPrimitive=function(e){var t=typeof e;return"string"===t||"number"===t||"boolean"===t},e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=(e/1e3%60).toFixed(7).replace(/0{0,4}$/,""),n=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,i=Math.floor(e/864e5);return t=t.indexOf(".")<2?"0"+t:t,n=n.length<2?"0"+n:n,(i>0?i+".":"")+(r=r.length<2?"0"+r:r)+":"+n+":"+t},e.extractError=function(e){var t=e;return{message:e.message,code:t.code||t.id||""}},e.extractObject=function(t){return t instanceof Error?e.extractError(t):"function"==typeof t.toJSON?t.toJSON():t},e.validateStringMap=function(t){if("object"==typeof t){var n={};for(var r in t){var i="",o=t[r],a=typeof o;if(e.isPrimitive(o))i=o.toString();else if(null===o||"undefined"===a)i="";else{if("function"===a){c.info("key: "+r+" was function; will not serialize");continue}var s=e.isArray(o)?o:e.extractObject(o);try{i=e.isPrimitive(s)?s:JSON.stringify(s)}catch(e){i=o.constructor.name.toString()+" (Error: "+e.message+")",c.info("key: "+r+", could not be serialized")}}n[r]=i.substring(0,e.MAX_PROPERTY_LENGTH)}return n}c.info("Invalid properties dropped from payload")},e.canIncludeCorrelationHeader=function(e,t){var n=e&&e.config&&e.config.correlationHeaderExcludedDomains;if(!n||0==n.length||!t)return!0;for(var r=0;r<n.length;r++)if(new RegExp(n[r].replace(/\./g,".").replace(/\*/g,".*")).test(a.parse(t).hostname))return!1;return!0},e.getCorrelationContextTarget=function(e,t){var n=e.headers&&e.headers[l.requestContextHeader];if(n)for(var r=n.split(","),i=0;i<r.length;++i){var o=r[i].split("=");if(2==o.length&&o[0]==t)return o[1]}},e.makeRequest=function(t,n,s,l){n&&0===n.indexOf("//")&&(n="https:"+n);var u=a.parse(n),p=r(r({},s),{host:u.hostname,port:u.port,path:u.pathname}),d=void 0;if("https:"===u.protocol&&(d=t.proxyHttpsUrl||void 0),"http:"===u.protocol&&(d=t.proxyHttpUrl||void 0),d){0===d.indexOf("//")&&(d="http:"+d);var f=a.parse(d);"https:"===f.protocol?(c.info("Proxies that use HTTPS are not supported"),d=void 0):p=r(r({},p),{host:f.hostname,port:f.port||"80",path:n,headers:r(r({},p.headers),{Host:u.hostname})})}var h="https:"===u.protocol&&!d;return h&&void 0!==t.httpsAgent?p.agent=t.httpsAgent:h||void 0===t.httpAgent?h&&(p.agent=e.tlsRestrictedAgent):p.agent=t.httpAgent,h?o.request(p,l):i.request(p,l)},e.safeIncludeCorrelationHeader=function(t,n,r){var i;if("string"==typeof r)i=r;else if(r instanceof Array)i=r.join(",");else if(r&&"function"==typeof r.toString)try{i=r.toString()}catch(e){c.warn("Outgoing request-context header could not be read. Correlation of requests may be lost.",e,r)}i?e.addCorrelationIdHeaderFromString(t,n,i):n.setHeader(l.requestContextHeader,l.requestContextSourceKey+"="+t.config.correlationId)},e.dumpObj=function(e){var t=Object.prototype.toString.call(e);return t+("[object Error]"===t?"{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":JSON.stringify(e))},e.addCorrelationIdHeaderFromString=function(e,t,n){var r=n.split(","),i=l.requestContextSourceKey+"=";r.some((function(e){return e.substring(0,i.length)===i}))||t.setHeader(l.requestContextHeader,n+","+l.requestContextSourceKey+"="+e.config.correlationId)},e.MAX_PROPERTY_LENGTH=8192,e.tlsRestrictedAgent=new o.Agent({keepAlive:!0,maxSockets:25,secureOptions:s.SSL_OP_NO_SSLv2|s.SSL_OP_NO_SSLv3|s.SSL_OP_NO_TLSv1|s.SSL_OP_NO_TLSv1_1}),e}();t.exports=u})),un=_(((e,t)=>{"use strict";var n=ln(),r=P(),i=function(){function e(){}return e.queryCorrelationId=function(t,i){var o=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId";if(e.completedLookups.hasOwnProperty(o))i(e.completedLookups[o]);else if(e.pendingLookups[o])e.pendingLookups[o].push(i);else{e.pendingLookups[o]=[i];var a=function(){if(e.pendingLookups[o]){var i={method:"GET",disableAppInsightsAutoCollection:!0};r.info(e.TAG,i);var s=n.makeRequest(t,o,i,(function(n){if(200===n.statusCode){var i="";n.setEncoding("utf-8"),n.on("data",(function(e){i+=e})),n.on("end",(function(){r.info(e.TAG,i);var t=e.correlationIdPrefix+i;e.completedLookups[o]=t,e.pendingLookups[o]&&e.pendingLookups[o].forEach((function(e){return e(t)})),delete e.pendingLookups[o]}))}else n.statusCode>=400&&n.statusCode<500?(e.completedLookups[o]=void 0,delete e.pendingLookups[o]):setTimeout(a,t.correlationIdRetryIntervalMs)}));s&&(s.on("error",(function(t){r.warn(e.TAG,t)})),s.end())}};setTimeout(a,0)}},e.cancelCorrelationIdQuery=function(t,n){var r=t.profileQueryEndpoint+"/api/profiles/"+t.instrumentationKey+"/appId",i=e.pendingLookups[r];i&&(e.pendingLookups[r]=i.filter((function(e){return e!=n})),0==e.pendingLookups[r].length&&delete e.pendingLookups[r])},e.generateRequestId=function(t){if(t){"."!==(t="|"==t[0]?t:"|"+t)[t.length-1]&&(t+=".");var n=(e.currentRootId++).toString(16);return e.appendSuffix(t,n,"_")}return e.generateRootId()},e.getRootId=function(e){var t=e.indexOf(".");t<0&&(t=e.length);var n="|"===e[0]?1:0;return e.substring(n,t)},e.generateRootId=function(){return"|"+n.w3cTraceId()+"."},e.appendSuffix=function(t,r,i){if(t.length+r.length<e.requestIdMaxLength)return t+r+i;var o=e.requestIdMaxLength-9;if(t.length>o)for(;o>1;--o){var a=t[o-1];if("."===a||"_"===a)break}if(o<=1)return e.generateRootId();for(r=n.randomu32().toString(16);r.length<8;)r="0"+r;return t.substring(0,o)+r+"#"},e.TAG="CorrelationIdManager",e.correlationIdPrefix="cid-v1:",e.w3cEnabled=!0,e.pendingLookups={},e.completedLookups={},e.requestIdMaxLength=1024,e.currentRootId=n.randomu32(),e}();t.exports=i})),pn=_(((e,t)=>{"use strict";var n=ln(),r=un(),i=function(){function e(t,i){if(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.version=e.DEFAULT_VERSION,t&&"string"==typeof t)if(t.split(",").length>1)this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16);else{var o=t.trim().split("-"),a=o.length;a>=4?(this.version=o[0],this.traceId=o[1],this.spanId=o[2],this.traceFlag=o[3]):(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^[0-9a-f]{2}$/g)||(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId()),"00"===this.version&&4!==a&&(this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),"ff"===this.version&&(this.version=e.DEFAULT_VERSION,this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)),this.version.match(/^0[0-9a-f]$/g)||(this.version=e.DEFAULT_VERSION),this.traceFlag.match(/^[0-9a-f]{2}$/g)||(this.traceFlag=e.DEFAULT_TRACE_FLAG,this.traceId=n.w3cTraceId()),e.isValidTraceId(this.traceId)||(this.traceId=n.w3cTraceId()),e.isValidSpanId(this.spanId)||(this.spanId=n.w3cTraceId().substr(0,16),this.traceId=n.w3cTraceId()),this.parentId=this.getBackCompatRequestId()}else if(i){this.parentId=i.slice();var s=r.getRootId(i);e.isValidTraceId(s)||(this.legacyRootId=s,s=n.w3cTraceId()),-1!==i.indexOf("|")&&(i=i.substring(1+i.substring(0,i.length-1).lastIndexOf("."),i.length-1)),this.traceId=s,this.spanId=i}else this.traceId=n.w3cTraceId(),this.spanId=n.w3cTraceId().substr(0,16)}return e.isValidTraceId=function(e){return e.match(/^[0-9a-f]{32}$/)&&"00000000000000000000000000000000"!==e},e.isValidSpanId=function(e){return e.match(/^[0-9a-f]{16}$/)&&"0000000000000000"!==e},e.formatOpenTelemetryTraceFlags=function(e){var t="0"+e.toString(16);return t.substring(t.length-2)},e.prototype.getBackCompatRequestId=function(){return"|"+this.traceId+"."+this.spanId+"."},e.prototype.toString=function(){return this.version+"-"+this.traceId+"-"+this.spanId+"-"+this.traceFlag},e.prototype.updateSpanId=function(){this.spanId=n.w3cTraceId().substr(0,16)},e.DEFAULT_TRACE_FLAG="01",e.DEFAULT_VERSION="00",e}();t.exports=i})),dn=_(((e,t)=>{"use strict";var n=function(){function e(e){this.fieldmap=[],e&&(this.fieldmap=this.parseHeader(e))}return e.prototype.toString=function(){var e=this.fieldmap;return e&&0!=e.length?e.join(", "):null},e.validateKeyChars=function(e){var t=e.split("@");if(2==t.length){var n=t[0].trim(),r=t[1].trim(),i=Boolean(n.match(/^[\ ]?[a-z0-9\*\-\_/]{1,241}$/)),o=Boolean(r.match(/^[\ ]?[a-z0-9\*\-\_/]{1,14}$/));return i&&o}return 1==t.length&&Boolean(e.match(/^[\ ]?[a-z0-9\*\-\_/]{1,256}$/))},e.prototype.parseHeader=function(t){var n=[],r={},i=t.split(",");if(i.length>32)return null;for(var o=0,a=i;o<a.length;o++){var s=a[o].trim();if(0!==s.length){var c=s.split("=");if(2!==c.length||!e.validateKeyChars(c[0])||r[c[0]])return null;r[c[0]]=!0,n.push(s)}}return n},e.strict=!0,e}();t.exports=n})),fn=_(((e,t)=>{"use strict";t.exports=function(){}})),hn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),mn=_(((e,t)=>{"use strict";t.exports=function(){}})),vn=_(((e,t)=>{"use strict";t.exports=function(){this.applicationVersion="ai.application.ver",this.deviceId="ai.device.id",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceOEMName="ai.device.oemName",this.deviceOSVersion="ai.device.osVersion",this.deviceType="ai.device.type",this.locationIp="ai.location.ip",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.userAccountId="ai.user.accountId",this.userId="ai.user.id",this.userAuthUserId="ai.user.authUserId",this.cloudRole="ai.cloud.role",this.cloudRoleInstance="ai.cloud.roleInstance",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalNodeName="ai.internal.nodeName"}})),gn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){return e.call(this)||this}return r(t,e),t}(mn());t.exports=i})),bn=_(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Measurement=0]="Measurement",r[r.Aggregation=1]="Aggregation",t.exports=n})),yn=_(((e,t)=>{"use strict";var n=bn();t.exports=function(){this.kind=n.Measurement}})),_n=_(((e,t)=>{"use strict";t.exports=function(){this.ver=1,this.sampleRate=100,this.tags={}}})),xn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),wn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),En=_(((e,t)=>{"use strict";t.exports=function(){this.hasFullStack=!0,this.parsedStack=[]}})),An=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t}return r(t,e),t}(fn());t.exports=i})),Sn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t}return r(t,e),t}(fn());t.exports=i})),Tn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(xn());t.exports=i})),Cn=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),In=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return r(t,e),t}(fn());t.exports=i})),Pn=_(((e,t)=>{"use strict";var n,r;(r=n||(n={}))[r.Verbose=0]="Verbose",r[r.Information=1]="Information",r[r.Warning=2]="Warning",r[r.Error=3]="Error",r[r.Critical=4]="Critical",t.exports=n})),On=_(((e,t)=>{"use strict";t.exports=function(){}})),Nn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AvailabilityData=hn(),e.Base=mn(),e.ContextTagKeys=vn(),e.Data=gn(),e.DataPoint=yn(),e.DataPointType=bn(),e.Domain=fn(),e.Envelope=_n(),e.EventData=xn(),e.ExceptionData=wn(),e.ExceptionDetails=En(),e.MessageData=An(),e.MetricData=Sn(),e.PageViewData=Tn(),e.RemoteDependencyData=Cn(),e.RequestData=In(),e.SeverityLevel=Pn(),e.StackFrame=On()})),Rn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.domainSupportsProperties=e.RemoteDependencyDataConstants=void 0;var t=Nn(),n=function(){function e(){}return e.TYPE_HTTP="Http",e.TYPE_AI="Http (tracked component)",e}();e.RemoteDependencyDataConstants=n,e.domainSupportsProperties=function(e){return"properties"in e||e instanceof t.EventData||e instanceof t.ExceptionData||e instanceof t.MessageData||e instanceof t.MetricData||e instanceof t.PageViewData||e instanceof t.RemoteDependencyData||e instanceof t.RequestData}})),Dn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),kn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Ln=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Mn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),jn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),zn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Fn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Bn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Vn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Un=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),qn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Hn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Gn=_((e=>{"use strict";var t,n;Object.defineProperty(e,"__esModule",{value:!0}),e.TelemetryType=e.TelemetryTypeString=e.baseTypeToTelemetryType=e.telemetryTypeToBaseType=void 0,e.telemetryTypeToBaseType=function(e){switch(e){case t.Event:return"EventData";case t.Exception:return"ExceptionData";case t.Trace:return"MessageData";case t.Metric:return"MetricData";case t.Request:return"RequestData";case t.Dependency:return"RemoteDependencyData";case t.Availability:return"AvailabilityData";case t.PageView:return"PageViewData"}},e.baseTypeToTelemetryType=function(e){switch(e){case"EventData":return t.Event;case"ExceptionData":return t.Exception;case"MessageData":return t.Trace;case"MetricData":return t.Metric;case"RequestData":return t.Request;case"RemoteDependencyData":return t.Dependency;case"AvailabilityData":return t.Availability;case"PageViewData":return t.PageView}},e.TelemetryTypeString={Event:"EventData",Exception:"ExceptionData",Trace:"MessageData",Metric:"MetricData",Request:"RequestData",Dependency:"RemoteDependencyData",Availability:"AvailabilityData",PageView:"PageViewData"},(n=t=e.TelemetryType||(e.TelemetryType={}))[n.Event=0]="Event",n[n.Exception=1]="Exception",n[n.Trace=2]="Trace",n[n.Metric=3]="Metric",n[n.Request=4]="Request",n[n.Dependency=5]="Dependency",n[n.Availability=6]="Availability",n[n.PageView=7]="PageView"})),$n=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Dn(),e),n(kn(),e),n(Ln(),e),n(Mn(),e),n(jn(),e),n(zn(),e),n(Fn(),e),n(Bn(),e),n(Vn(),e),n(Un(),e),n(qn(),e),n(Hn(),e),n(Gn(),e)})),Wn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Qn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Kn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Xn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Yn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Jn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),Zn=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),er=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),tr=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Wn(),e),n(Qn(),e),n(Kn(),e),n(Xn(),e),n(Yn(),e),n(Jn(),e),n(Zn(),e),n(er(),e)})),nr=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(Rn(),e),n(Nn(),e),n($n(),e),n(tr(),e)})),rr=_(((e,t)=>{"use strict";var n=function(){function e(){}return e.prototype.getUrl=function(){return this.url},e.prototype.RequestParser=function(){this.startTime=+new Date},e.prototype._setStatus=function(e,t){var n=+new Date;this.duration=n-this.startTime,this.statusCode=e;var r=this.properties||{};if(t)if("string"==typeof t)r.error=t;else if(t instanceof Error)r.error=t.message;else if("object"==typeof t)for(var i in t)r[i]=t[i]&&t[i].toString&&t[i].toString();this.properties=r},e.prototype._isSuccess=function(){return 0<this.statusCode&&this.statusCode<400},e}();t.exports=n})),ir=_(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7016),a=nr(),s=ln(),c=cn(),l=rr(),u=un(),p=dn(),d=pn(),f=function(e){function t(t,n){var r=e.call(this)||this;return t&&(r.method=t.method,r.url=r._getAbsoluteUrl(t),r.startTime=+new Date,r.socketRemoteAddress=t.socket&&t.socket.remoteAddress,r.parseHeaders(t,n),t.connection&&(r.connectionRemoteAddress=t.connection.remoteAddress,r.legacySocketRemoteAddress=t.connection.socket&&t.connection.socket.remoteAddress)),r}return i(t,e),t.prototype.onError=function(e,t){this._setStatus(void 0,e),t&&(this.duration=t)},t.prototype.onResponse=function(e,t){this._setStatus(e.statusCode,void 0),t&&(this.duration=t)},t.prototype.getRequestTelemetry=function(e){var t={id:this.requestId,name:this.method+" "+o.parse(this.url).pathname,url:this.url,source:this.sourceCorrelationId,duration:this.duration,resultCode:this.statusCode?this.statusCode.toString():null,success:this._isSuccess(),properties:this.properties};if(e&&e.time?t.time=e.time:this.startTime&&(t.time=new Date(this.startTime)),e){for(var n in e)t[n]||(t[n]=e[n]);if(e.properties)for(var n in e.properties)t.properties[n]=e.properties[n]}return t},t.prototype.getRequestTags=function(e){var n={};for(var r in e)n[r]=e[r];return n[t.keys.locationIp]=e[t.keys.locationIp]||this._getIp(),n[t.keys.sessionId]=e[t.keys.sessionId]||this._getId("ai_session"),n[t.keys.userId]=e[t.keys.userId]||this._getId("ai_user"),n[t.keys.userAuthUserId]=e[t.keys.userAuthUserId]||this._getId("ai_authUser"),n[t.keys.operationName]=this.getOperationName(e),n[t.keys.operationParentId]=this.getOperationParentId(e),n[t.keys.operationId]=this.getOperationId(e),n},t.prototype.getOperationId=function(e){return e[t.keys.operationId]||this.operationId},t.prototype.getOperationParentId=function(e){return e[t.keys.operationParentId]||this.parentId||this.getOperationId(e)},t.prototype.getOperationName=function(e){return e[t.keys.operationName]||this.method+" "+o.parse(this.url).pathname},t.prototype.getRequestId=function(){return this.requestId},t.prototype.getCorrelationContextHeader=function(){return this.correlationContextHeader},t.prototype.getTraceparent=function(){return this.traceparent},t.prototype.getTracestate=function(){return this.tracestate},t.prototype.getLegacyRootId=function(){return this.legacyRootId},t.prototype._getAbsoluteUrl=function(e){if(!e.headers)return e.url;var t=e.connection?e.connection.encrypted:null,n=o.parse(e.url),r=n.pathname,i=n.search,a=t||"https"==e.headers["x-forwarded-proto"]?"https":"http";return o.format({protocol:a,host:e.headers.host,pathname:r,search:i})},t.prototype._getIp=function(){var e=/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}/,t=function(t){var n=e.exec(t);if(n)return n[0]},n=t(this.rawHeaders["x-forwarded-for"])||t(this.rawHeaders["x-client-ip"])||t(this.rawHeaders["x-real-ip"])||t(this.connectionRemoteAddress)||t(this.socketRemoteAddress)||t(this.legacySocketRemoteAddress);return!n&&this.connectionRemoteAddress&&this.connectionRemoteAddress.substr&&"::"===this.connectionRemoteAddress.substr(0,2)&&(n="127.0.0.1"),n},t.prototype._getId=function(e){var n=this.rawHeaders&&this.rawHeaders.cookie&&"string"==typeof this.rawHeaders.cookie&&this.rawHeaders.cookie||"";return t.parseId(s.getCookie(e,n))},t.prototype.setBackCompatFromThisTraceContext=function(){this.operationId=this.traceparent.traceId,this.traceparent.legacyRootId&&(this.legacyRootId=this.traceparent.legacyRootId),this.parentId=this.traceparent.parentId,this.traceparent.updateSpanId(),this.requestId=this.traceparent.getBackCompatRequestId()},t.prototype.parseHeaders=function(e,t){if(this.rawHeaders=e.headers||e.rawHeaders,this.userAgent=e.headers&&e.headers["user-agent"],this.sourceCorrelationId=s.getCorrelationContextTarget(e,c.requestContextSourceKey),e.headers){var n=e.headers[c.traceStateHeader]?e.headers[c.traceStateHeader].toString():null,r=e.headers[c.traceparentHeader]?e.headers[c.traceparentHeader].toString():null,i=e.headers[c.requestIdHeader]?e.headers[c.requestIdHeader].toString():null,o=e.headers[c.parentIdHeader]?e.headers[c.parentIdHeader].toString():null,a=e.headers[c.rootIdHeader]?e.headers[c.rootIdHeader].toString():null;this.correlationContextHeader=e.headers[c.correlationContextHeader]?e.headers[c.correlationContextHeader].toString():null,u.w3cEnabled&&(r||n)?(this.traceparent=new d(r?r.toString():null),this.tracestate=r&&n&&new p(n?n.toString():null),this.setBackCompatFromThisTraceContext()):i?u.w3cEnabled?(this.traceparent=new d(null,i),this.setBackCompatFromThisTraceContext()):(this.parentId=i,this.requestId=u.generateRequestId(this.parentId),this.operationId=u.getRootId(this.requestId)):u.w3cEnabled?(this.traceparent=new d,this.traceparent.parentId=o,this.traceparent.legacyRootId=a||o,this.setBackCompatFromThisTraceContext()):(this.parentId=o,this.requestId=u.generateRequestId(a||this.parentId),this.correlationContextHeader=null,this.operationId=u.getRootId(this.requestId)),t&&(this.requestId=t,this.operationId=u.getRootId(this.requestId))}},t.parseId=function(e){var t=e.split("|");return t.length>0?t[0]:""},t.keys=new a.ContextTagKeys,t}(l);t.exports=f})),or=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var M=s++;a[M]="(\\s*)"+a[L]+"\\s+",o[M]=new RegExp(a[M],"g");var j=s++;a[j]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var F=s++;a[F]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var V=s++;a[V]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[V]=new RegExp(a[V],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[F]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[V],"$1$2$3"),n("comparator trim",e,o[V]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[F]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[j];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),ar=_(((e,t)=>{"use strict";function n(e){return"function"==typeof e}var r=console.error.bind(console);function i(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function o(e){e&&e.logger&&(n(e.logger)?r=e.logger:r("new logger isn't a function, not replacing"))}function a(e,t,o){if(e&&e[t]){if(!o)return r("no wrapper function"),void r((new Error).stack);if(n(e[t])&&n(o)){var a=e[t],s=o(a,t);return i(s,"__original",a),i(s,"__unwrap",(function(){e[t]===s&&i(e,t,a)})),i(s,"__wrapped",!0),i(e,t,s),s}r("original object and wrapper must be functions")}else r("no original function "+t+" to wrap")}function s(e,t){return e&&e[t]?e[t].__unwrap?e[t].__unwrap():void r("no original to unwrap to -- has "+t+" already been unwrapped?"):(r("no function to unwrap."),void r((new Error).stack))}o.wrap=a,o.massWrap=function(e,t,n){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){a(e,t,n)}))})):r("must provide one or more functions to wrap on modules")},o.unwrap=s,o.massUnwrap=function(e,t){if(!e)return r("must provide one or more modules to patch"),void r((new Error).stack);Array.isArray(e)||(e=[e]),t&&Array.isArray(t)?e.forEach((function(e){t.forEach((function(t){s(e,t)}))})):r("must provide one or more functions to unwrap on modules")},t.exports=o})),sr=_(((e,t)=>{"use strict";var n=ar(),r=n.wrap,i=n.unwrap,o="wrap@before";function a(e,t,n){var r=!!e[t]&&e.propertyIsEnumerable(t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:n})}function s(e,t){var n;return n=e._events&&e._events[t],Array.isArray(n)||(n=n?[n]:[]),n}function c(e,t){if(e){var n=e;if("function"==typeof e)n=t(e);else if(Array.isArray(e)){n=[];for(var r=0;r<e.length;r++)n[r]=t(e[r])}return n}}t.exports=function(e,t,n){if(!(e&&e.on&&e.addListener&&e.removeListener&&e.emit))throw new Error("can only wrap real EEs");if(!t)throw new Error("must have function to run on listener addition");if(!n)throw new Error("must have function to wrap listeners when emitting");function l(e){return function(t,n){var i=s(this,t).slice();try{var a=e.call(this,t,n);return function(e,t,n){var r=s(e,t).filter((function(e){return-1===n.indexOf(e)}));r.length>0&&function(e,t){for(var n=t.length,r=0;r<n;r++){var i=t[r],a=e[o];if("function"==typeof a)a(i);else if(Array.isArray(a))for(var s=a.length,c=0;c<s;c++)a[c](i)}}(e,r)}(this,t,i),a}finally{this.on.__wrapped||r(this,"on",l),this.addListener.__wrapped||r(this,"addListener",l)}}}e[o]?"function"==typeof e[o]?a(e,o,[e[o],t]):Array.isArray(e[o])&&e[o].push(t):a(e,o,t),e.__wrapped||(r(e,"addListener",l),r(e,"on",l),r(e,"emit",(function(e){return function(t){if(!this._events||!this._events[t])return e.apply(this,arguments);var o=this._events[t];r(this,"removeListener",(function(e){return function(){this._events[t]=o;try{return e.apply(this,arguments)}finally{o=this._events[t],this._events[t]=c(o,n)}}}));try{return this._events[t]=c(o,n),e.apply(this,arguments)}finally{i(this,"removeListener"),this._events[t]=o}}})),a(e,"__unwrap",(function(){i(e,"addListener"),i(e,"on"),i(e,"emit"),delete e[o],delete e.__wrapped})),a(e,"__wrapped",!0))}})),cr=_(((e,t)=>{"use strict";var r=n(9023),i=n(2613),o=sr(),a=n(290),s="cls@contexts",c="error@context",l=process.env.DEBUG_CLS_HOOKED,u=-1;function p(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map,this._indent=0}function d(e){return process.namespaces[e]}function f(e){let t=d(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function h(...e){l&&process._rawDebug(`${r.format(...e)}`)}t.exports={getNamespace:d,createNamespace:function(e){i.ok(e,"namespace must be given a name."),l&&h(`NS-CREATING NAMESPACE (${e})`);let t=new p(e);return t.id=u,a.createHook({init(n,i,o,s){if(u=a.executionAsyncId(),t.active)t._contexts.set(n,t.active),l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`);else if(0===u){let o=a.triggerAsyncId(),c=t._contexts.get(o);c?(t._contexts.set(n,c),l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT USING CONTEXT FROM TRIGGERID [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)):l&&h(`${" ".repeat(t._indent<0?0:t._indent)}INIT MISSING CONTEXT [${i}] (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}if(l&&"PROMISE"===i){h(r.inspect(s,{showHidden:!0}));let a=s.parentId;h(`${" ".repeat(t._indent<0?0:t._indent)}INIT RESOURCE-PROMISE [${i}] (${e}) parentId:${a} asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} resource:${s}`)}},before(n){let i;if(u=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(u),i){if(l){let o=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`),t._indent+=2}t.enter(i)}else if(l){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}BEFORE MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} namespace._contexts:${r.inspect(t._contexts,{showHidden:!0,depth:2,colors:!0})}`),t._indent+=2}},after(n){let i;if(u=a.executionAsyncId(),i=t._contexts.get(n)||t._contexts.get(u),i){if(l){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}t.exit(i)}else if(l){let o=a.triggerAsyncId();t._indent-=2,h(`${" ".repeat(t._indent<0?0:t._indent)}AFTER MISSING CONTEXT (${e}) asyncId:${n} currentUid:${u} triggerId:${o} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(i)}`)}},destroy(n){if(u=a.executionAsyncId(),l){let i=a.triggerAsyncId();h(`${" ".repeat(t._indent<0?0:t._indent)}DESTROY (${e}) currentUid:${u} asyncId:${n} triggerId:${i} active:${r.inspect(t.active,{showHidden:!0,depth:2,colors:!0})} context:${r.inspect(t._contexts.get(u))}`)}t._contexts.delete(n)}}).enable(),process.namespaces[e]=t,t},destroyNamespace:f,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){f(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},p.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,l&&h(" ".repeat(this._indent<0?0:this._indent)+"CONTEXT-SET KEY:"+e+"="+t+" in ns:"+this.name+" currentUid:"+u+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),t},p.prototype.get=function(e){if(this.active){if(l){let t=a.executionAsyncId(),n=a.triggerAsyncId(),i=" ".repeat(this._indent<0?0:this._indent);h(i+"CONTEXT-GETTING KEY:"+e+"="+this.active[e]+" ("+this.name+") currentUid:"+u+" active:"+r.inspect(this.active,{showHidden:!0,depth:2,colors:!0})),h(`${i}CONTEXT-GETTING KEY: (${this.name}) ${e}=${this.active[e]} currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} active:${r.inspect(this.active)}`)}return this.active[e]}if(l){let t=a.currentId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-GETTING KEY NO ACTIVE NS: (${this.name}) ${e}=undefined currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length}`)}},p.prototype.createContext=function(){let e=Object.create(this.active?this.active:Object.prototype);if(e._ns_name=this.name,e.id=u,l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-CREATED Context: (${this.name}) currentUid:${u} asyncHooksCurrentId:${t} triggerId:${n} len:${this._set.length} context:${r.inspect(e,{showHidden:!0,depth:2,colors:!0})}`)}return e},p.prototype.run=function(e){let t=this.createContext();this.enter(t);try{if(l){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN BEGIN: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} context:${r.inspect(t)}`)}return e(t),t}catch(e){throw e&&(e[c]=t),e}finally{if(l){let e=a.triggerAsyncId(),n=a.executionAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-RUN END: (${this.name}) currentUid:${u} triggerId:${e} asyncHooksCurrentId:${n} len:${this._set.length} ${r.inspect(t)}`)}this.exit(t)}},p.prototype.runAndReturn=function(e){let t;return this.run((function(n){t=e(n)})),t},p.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return l&&h("CONTEXT-runPromise BEFORE: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(l&&h("CONTEXT-runPromise AFTER then: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,l&&h("CONTEXT-runPromise AFTER catch: ("+this.name+") currentUid:"+u+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},p.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},p.prototype.enter=function(e){if(i.ok(e,"context must be provided for entering"),l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-ENTER: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}this._set.push(this.active),this.active=e},p.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),l){let t=a.executionAsyncId(),n=a.triggerAsyncId();h(`${" ".repeat(this._indent<0?0:this._indent)}CONTEXT-EXIT: (${this.name}) currentUid:${u} triggerId:${n} asyncHooksCurrentId:${t} len:${this._set.length} ${r.inspect(e)}`)}if(this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(l&&h("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},p.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},p.prototype.fromException=function(e){return e[c]},process.namespaces={}})),lr=_(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=process.nextTick;process.nextTick=function(){if(!t.enabled)return r.apply(process,arguments);let i=new Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];let o=i[0];if("function"!=typeof o)throw new TypeError("callback is not a function");let a=new n,s=--t.counter;return e.init.call(a,s,0,null,null),i[0]=function(){e.pre.call(a,s);let t=!0;try{o.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(a,s,!0),e.destroy.call(null,s)}))}e.post.call(a,s,!1),e.destroy.call(null,s)},r.apply(process,i)}}})),ur=_(((e,t)=>{"use strict";function n(){}t.exports=function(){let e=this._hooks,t=this._state,r=global.Promise,i=r.prototype.then;function o(t,n,r,i){return"function"!=typeof t?i?function(t){return function(n){return e.destroy.call(null,t),n}}(r):function(t){return function(n){throw e.destroy.call(null,t),n}}(r):function(){e.pre.call(n,r);try{return t.apply(this,arguments)}finally{e.post.call(n,r,!1),e.destroy.call(null,r)}}}r.prototype.then=function(r,a){if(!t.enabled)return i.call(this,r,a);let s=new n,c=--t.counter;return e.init.call(s,c,0,null,null),i.call(this,o(r,s,c,!0),o(a,s,c,!1))}}})),pr=_(((e,t)=>{"use strict";var r=n(3557);function i(){}function o(){}function a(){}var s=new Map,c=new Map,l=new Map,u=null,p=!1;function d(e,t,n,i,o,a,s){let c=r[n],l=r[i];r[n]=function(){if(!t.enabled)return c.apply(r,arguments);let n=new Array(arguments.length);for(let e=0;e<arguments.length;e++)n[e]=arguments[e];let i=n[0];if("function"!=typeof i)throw new TypeError('"callback" argument must be a function');let l,d=new o,f=--t.counter;return e.init.call(d,f,0,null,null),n[0]=function(){u=l,e.pre.call(d,f);let t=!0;try{i.apply(this,arguments),t=!1}finally{t&&process.listenerCount("uncaughtException")>0&&process.once("uncaughtException",(function(){e.post.call(d,f,!0),a.delete(l),e.destroy.call(null,f)}))}e.post.call(d,f,!1),u=null,(s||p)&&(p=!1,a.delete(l),e.destroy.call(null,f))},l=c.apply(r,n),a.set(l,f),l},r[i]=function(t){if(u===t&&null!==t)p=!0;else if(a.has(t)){let n=a.get(t);a.delete(t),e.destroy.call(null,n)}l.apply(r,arguments)}}t.exports=function(){d(this._hooks,this._state,"setTimeout","clearTimeout",i,s,!0),d(this._hooks,this._state,"setInterval","clearInterval",o,c,!1),d(this._hooks,this._state,"setImmediate","clearImmediate",a,l,!0),global.setTimeout=r.setTimeout,global.setInterval=r.setInterval,global.setImmediate=r.setImmediate,global.clearTimeout=r.clearTimeout,global.clearInterval=r.clearInterval,global.clearImmediate=r.clearImmediate}})),dr=_(((e,t)=>{t.exports={name:"async-hook-jl",description:"Inspect the life of handle objects in node",version:"1.7.6",author:"Andreas Madsen <amwebdk@gmail.com>",main:"./index.js",scripts:{test:"node ./test/runner.js && eslint ."},repository:{type:"git",url:"git://github.com/jeff-lewis/async-hook-jl.git"},keywords:["async","async hooks","inspect","async wrap"],license:"MIT",dependencies:{"stack-chain":"^1.3.7"},devDependencies:{async:"1.5.x","cli-color":"1.1.x",eslint:"^3.4.0",endpoint:"0.4.x"},engines:{node:"^4.7 || >=6.9 || >=7.3"}}})),fr=_(((e,t)=>{"use strict";var n=process.binding("async_wrap"),r=n.Providers.TIMERWRAP,i={nextTick:lr(),promise:ur(),timers:pr()},o=new Set;function a(){this.enabled=!1,this.counter=0}function s(){let e=this.initFns=[],t=this.preFns=[],n=this.postFns=[],i=this.destroyFns=[];this.init=function(t,n,i,a){if(n!==r)for(let r of e)r(t,this,n,i,a);else o.add(t)},this.pre=function(e){if(!o.has(e))for(let n of t)n(e,this)},this.post=function(e,t){if(!o.has(e))for(let r of n)r(e,this,t)},this.destroy=function(e){if(o.has(e))o.delete(e);else for(let t of i)t(e)}}function c(e,t){let n=e.indexOf(t);-1!==n&&e.splice(n,1)}function l(){this._state=new a,this._hooks=new s,this.version=dr().version,this.providers=n.Providers;for(let e of Object.keys(i))i[e].call(this);process.env.hasOwnProperty("NODE_ASYNC_HOOK_WARNING")&&console.warn("warning: you are using async-hook-jl which is unstable."),n.setupHooks({init:this._hooks.init,pre:this._hooks.pre,post:this._hooks.post,destroy:this._hooks.destroy})}s.prototype.add=function(e){e.init&&this.initFns.push(e.init),e.pre&&this.preFns.push(e.pre),e.post&&this.postFns.push(e.post),e.destroy&&this.destroyFns.push(e.destroy)},s.prototype.remove=function(e){e.init&&c(this.initFns,e.init),e.pre&&c(this.preFns,e.pre),e.post&&c(this.postFns,e.post),e.destroy&&c(this.destroyFns,e.destroy)},t.exports=l,l.prototype.addHooks=function(e){this._hooks.add(e)},l.prototype.removeHooks=function(e){this._hooks.remove(e)},l.prototype.enable=function(){this._state.enabled=!0,n.enable()},l.prototype.disable=function(){this._state.enabled=!1,n.disable()}})),hr=_(((e,t)=>{t.exports={name:"stack-chain",description:"API for combining call site modifiers",version:"1.3.7",author:"Andreas Madsen <amwebdk@gmail.com>",scripts:{test:"tap ./test/simple"},repository:{type:"git",url:"git://github.com/AndreasMadsen/stack-chain.git"},keywords:["stack","chain","trace","call site","concat","format"],devDependencies:{tap:"2.x.x","uglify-js":"2.5.x"},license:"MIT"}})),mr=_(((e,t)=>{t.exports=function(e,t){var n=[];n.push(function(e){try{return Error.prototype.toString.call(e)}catch(e){try{return"<error: "+e+">"}catch{return"<error>"}}}(e));for(var r=0;r<t.length;r++){var i,o=t[r];try{i=o.toString()}catch(e){try{i="<error: "+e+">"}catch{i="<error>"}}n.push(" at "+i)}return n.join("\n")}})),vr=_(((e,t)=>{var n=mr();function r(){this.extend=new a,this.filter=new a,this.format=new s,this.version=hr().version}var i=!1;r.prototype.callSite=function e(t){t||(t={}),i=!0;var n={};Error.captureStackTrace(n,e);var r=n.stack;return i=!1,r=r.slice(t.slice||0),t.extend&&(r=this.extend._modify(n,r)),t.filter&&(r=this.filter._modify(n,r)),r};var o=new r;function a(){this._modifiers=[]}function s(){this._formater=n,this._previous=void 0}a.prototype._modify=function(e,t){for(var n=0,r=this._modifiers.length;n<r;n++)t=this._modifiers[n](e,t);return t},a.prototype.attach=function(e){this._modifiers.push(e)},a.prototype.deattach=function(e){var t=this._modifiers.indexOf(e);return-1!==t&&(this._modifiers.splice(t,1),!0)},s.prototype.replace=function(e){e?this._formater=e:this.restore()},s.prototype.restore=function(){this._formater=n,this._previous=void 0},s.prototype._backup=function(){this._previous=this._formater},s.prototype._roolback=function(){this._previous===n?this.replace(void 0):this.replace(this._previous),this._previous=void 0},Error.prepareStackTrace&&o.format.replace(Error.prepareStackTrace);var c=!1;function l(e,t){if(i)return t;if(c)return n(e,t);var r=t.concat();r=o.extend._modify(e,r),r=(r=o.filter._modify(e,r)).slice(0,Error.stackTraceLimit),Object.isExtensible(e)&&void 0===Object.getOwnPropertyDescriptor(e,"callSite")&&(e.callSite={original:t,mutated:r}),c=!0;var a=o.format._formater(e,r);return c=!1,a}Object.defineProperty(Error,"prepareStackTrace",{get:function(){return l},set:function(e){e===l?o.format._roolback():(o.format._backup(),o.format.replace(e))}}),Object.defineProperty(Error.prototype,"callSite",{get:function(){return this.stack,this.callSite},set:function(e){Object.defineProperty(this,"callSite",{value:e,writable:!0,configurable:!0})},configurable:!0}),t.exports=o})),gr=_(((e,t)=>{if(global._stackChain){if(global._stackChain.version!==hr().version)throw new Error("Conflicting version of stack-chain found");t.exports=global._stackChain}else t.exports=global._stackChain=vr()})),br=_(((e,t)=>{"use strict";var n=fr();if(global._asyncHook){if(global._asyncHook.version!==dr().version)throw new Error("Conflicting version of async-hook-jl found");t.exports=global._asyncHook}else gr().filter.attach((function(e,t){return t.filter((function(e){let t=e.getFileName();return!(t&&t.slice(0,__dirname.length)===__dirname)}))})),t.exports=global._asyncHook=new n})),yr=_(((e,t)=>{"use strict";var r=n(9023),i=n(2613),o=sr(),a=br(),s="cls@contexts",c="error@context",l=[];for(let e in a.providers)l[a.providers[e]]=e;var u,p,d=process.env.DEBUG_CLS_HOOKED,f=-1;function h(e){this.name=e,this.active=null,this._set=[],this.id=null,this._contexts=new Map}function m(e){return process.namespaces[e]}function v(e){let t=m(e);i.ok(t,"can't delete nonexistent namespace! \""+e+'"'),i.ok(t.id,"don't assign to process.namespaces directly! "+r.inspect(t)),process.namespaces[e]=null}function g(e){process.env.DEBUG&&process._rawDebug(e)}function b(e){return e?"function"==typeof e?e.name?e.name:(e.toString().trim().match(/^function\s*([^\s(]+)/)||[])[1]:e.constructor&&e.constructor.name?e.constructor.name:void 0:e}if(t.exports={getNamespace:m,createNamespace:function(e){i.ok(e,"namespace must be given a name."),d&&g("CREATING NAMESPACE "+e);let t=new h(e);return t.id=f,a.addHooks({init(n,i,o,a,s){f=n,a?(t._contexts.set(n,t._contexts.get(a)),d&&g("PARENTID: "+e+" uid:"+n+" parent:"+a+" provider:"+o)):t._contexts.set(f,t.active),d&&g("INIT "+e+" uid:"+n+" parent:"+a+" provider:"+l[o]+" active:"+r.inspect(t.active,!0))},pre(n,i){f=n;let o=t._contexts.get(n);o?(d&&g(" PRE "+e+" uid:"+n+" handle:"+b(i)+" context:"+r.inspect(o)),t.enter(o)):d&&g(" PRE MISSING CONTEXT "+e+" uid:"+n+" handle:"+b(i))},post(n,i){f=n;let o=t._contexts.get(n);o?(d&&g(" POST "+e+" uid:"+n+" handle:"+b(i)+" context:"+r.inspect(o)),t.exit(o)):d&&g(" POST MISSING CONTEXT "+e+" uid:"+n+" handle:"+b(i))},destroy(n){f=n,d&&g("DESTROY "+e+" uid:"+n+" context:"+r.inspect(t._contexts.get(f))+" active:"+r.inspect(t.active,!0)),t._contexts.delete(n)}}),process.namespaces[e]=t,t},destroyNamespace:v,reset:function(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){v(e)})),process.namespaces=Object.create(null)},ERROR_SYMBOL:c},h.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return d&&g(" SETTING KEY:"+e+"="+t+" in ns:"+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e]=t,t},h.prototype.get=function(e){if(this.active)return d&&g(" GETTING KEY:"+e+"="+this.active[e]+" "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0)),this.active[e];d&&g(" GETTING KEY:"+e+"=undefined "+this.name+" uid:"+f+" active:"+r.inspect(this.active,!0))},h.prototype.createContext=function(){d&&g(" CREATING Context: "+this.name+" uid:"+f+" len:"+this._set.length+" active:"+r.inspect(this.active,!0,2,!0));let e=Object.create(this.active?this.active:Object.prototype);return e._ns_name=this.name,e.id=f,d&&g(" CREATED Context: "+this.name+" uid:"+f+" len:"+this._set.length+" context:"+r.inspect(e,!0,2,!0)),e},h.prototype.run=function(e){let t=this.createContext();this.enter(t);try{return d&&g(" BEFORE RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),e(t),t}catch(e){throw e&&(e[c]=t),e}finally{d&&g(" AFTER RUN: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t)}},h.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},h.prototype.runPromise=function(e){let t=this.createContext();this.enter(t);let n=e(t);if(!n||!n.then||!n.catch)throw new Error("fn must return a promise.");return d&&g(" BEFORE runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),n.then((e=>(d&&g(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e))).catch((e=>{throw e[c]=t,d&&g(" AFTER runPromise: "+this.name+" uid:"+f+" len:"+this._set.length+" "+r.inspect(t)),this.exit(t),e}))},h.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());let n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[c]=t),e}finally{n.exit(t)}}},h.prototype.enter=function(e){i.ok(e,"context must be provided for entering"),d&&g(" ENTER "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this._set.push(this.active),this.active=e},h.prototype.exit=function(e){if(i.ok(e,"context must be provided for exiting"),d&&g(" EXIT "+this.name+" uid:"+f+" len:"+this._set.length+" context: "+r.inspect(e)),this.active===e)return i.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());let t=this._set.lastIndexOf(e);t<0?(d&&g("??ERROR?? context exiting but not entered - ignoring: "+r.inspect(e)),i.ok(t>=0,"context not currently entered; can't exit. \n"+r.inspect(this)+"\n"+r.inspect(e))):(i.ok(t,"can't remove top context"),this._set.splice(t,1))},h.prototype.bindEmitter=function(e){i.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");let t=this,n="context@"+this.name;o(e,(function(e){!e||(e[s]||(e[s]=Object.create(null)),e[s][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[s])return e;let t=e,n=e[s];return Object.keys(n).forEach((function(e){let r=n[e];t=r.namespace.bind(t,r.context)})),t}))},h.prototype.fromException=function(e){return e[c]},process.namespaces={},a._state&&!a._state.enabled&&a.enable(),d)for(p in(u=gr()).filter._modifiers)u.filter.deattach(p)})),_r=_(((e,t)=>{"use strict";var n=or();process&&n.gte(process.versions.node,"8.0.0")?t.exports=cr():t.exports=yr()})),xr=_(((e,t)=>{var n;e=t.exports=W,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},e.SEMVER_SPEC_VERSION="2.0.0";var r=256,i=Number.MAX_SAFE_INTEGER||9007199254740991,o=e.re=[],a=e.src=[],s=0,c=s++;a[c]="0|[1-9]\\d*";var l=s++;a[l]="[0-9]+";var u=s++;a[u]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=s++;a[p]="("+a[c]+")\\.("+a[c]+")\\.("+a[c]+")";var d=s++;a[d]="("+a[l]+")\\.("+a[l]+")\\.("+a[l]+")";var f=s++;a[f]="(?:"+a[c]+"|"+a[u]+")";var h=s++;a[h]="(?:"+a[l]+"|"+a[u]+")";var m=s++;a[m]="(?:-("+a[f]+"(?:\\."+a[f]+")*))";var v=s++;a[v]="(?:-?("+a[h]+"(?:\\."+a[h]+")*))";var g=s++;a[g]="[0-9A-Za-z-]+";var b=s++;a[b]="(?:\\+("+a[g]+"(?:\\."+a[g]+")*))";var y=s++,_="v?"+a[p]+a[m]+"?"+a[b]+"?";a[y]="^"+_+"$";var x="[v=\\s]*"+a[d]+a[v]+"?"+a[b]+"?",w=s++;a[w]="^"+x+"$";var E=s++;a[E]="((?:<|>)?=?)";var A=s++;a[A]=a[l]+"|x|X|\\*";var S=s++;a[S]=a[c]+"|x|X|\\*";var T=s++;a[T]="[v=\\s]*("+a[S]+")(?:\\.("+a[S]+")(?:\\.("+a[S]+")(?:"+a[m]+")?"+a[b]+"?)?)?";var C=s++;a[C]="[v=\\s]*("+a[A]+")(?:\\.("+a[A]+")(?:\\.("+a[A]+")(?:"+a[v]+")?"+a[b]+"?)?)?";var I=s++;a[I]="^"+a[E]+"\\s*"+a[T]+"$";var P=s++;a[P]="^"+a[E]+"\\s*"+a[C]+"$";var O=s++;a[O]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var N=s++;a[N]="(?:~>?)";var R=s++;a[R]="(\\s*)"+a[N]+"\\s+",o[R]=new RegExp(a[R],"g");var D=s++;a[D]="^"+a[N]+a[T]+"$";var k=s++;a[k]="^"+a[N]+a[C]+"$";var L=s++;a[L]="(?:\\^)";var M=s++;a[M]="(\\s*)"+a[L]+"\\s+",o[M]=new RegExp(a[M],"g");var j=s++;a[j]="^"+a[L]+a[T]+"$";var z=s++;a[z]="^"+a[L]+a[C]+"$";var F=s++;a[F]="^"+a[E]+"\\s*("+x+")$|^$";var B=s++;a[B]="^"+a[E]+"\\s*("+_+")$|^$";var V=s++;a[V]="(\\s*)"+a[E]+"\\s*("+x+"|"+a[T]+")",o[V]=new RegExp(a[V],"g");var U=s++;a[U]="^\\s*("+a[T]+")\\s+-\\s+("+a[T]+")\\s*$";var q=s++;a[q]="^\\s*("+a[C]+")\\s+-\\s+("+a[C]+")\\s*$";var H,G=s++;for(a[G]="(<|>)?=?\\s*\\*",H=0;H<35;H++)n(H,a[H]),o[H]||(o[H]=new RegExp(a[H]));function $(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e||e.length>r)return null;if(!(t.loose?o[w]:o[y]).test(e))return null;try{return new W(e,t)}catch{return null}}function W(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof W))return new W(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[w]:o[y]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>i||this.major<0)throw new TypeError("Invalid major version");if(this.minor>i||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>i||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<i)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}e.parse=$,e.valid=function(e,t){var n=$(e,t);return n?n.version:null},e.clean=function(e,t){var n=$(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},e.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),K(this.major,e.major)||K(this.minor,e.minor)||K(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],i=e.prerelease[t];if(n("prerelease compare",t,r,i),void 0===r&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===r)return-1;if(r!==i)return K(r,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},e.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch{return null}},e.diff=function(e,t){if(Z(e,t))return null;var n=$(e),r=$(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},e.compareIdentifiers=K;var Q=/^[0-9]+$/;function K(e,t){var n=Q.test(e),r=Q.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function X(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return X(e,t,n)>0}function J(e,t,n){return X(e,t,n)<0}function Z(e,t,n){return 0===X(e,t,n)}function ee(e,t,n){return 0!==X(e,t,n)}function te(e,t,n){return X(e,t,n)>=0}function ne(e,t,n){return X(e,t,n)<=0}function re(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return Z(e,n,r);case"!=":return ee(e,n,r);case">":return Y(e,n,r);case">=":return te(e,n,r);case"<":return J(e,n,r);case"<=":return ne(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function ie(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ie){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===oe?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}e.rcompareIdentifiers=function(e,t){return K(t,e)},e.major=function(e,t){return new W(e,t).major},e.minor=function(e,t){return new W(e,t).minor},e.patch=function(e,t){return new W(e,t).patch},e.compare=X,e.compareLoose=function(e,t){return X(e,t,!0)},e.rcompare=function(e,t,n){return X(t,e,n)},e.sort=function(t,n){return t.sort((function(t,r){return e.compare(t,r,n)}))},e.rsort=function(t,n){return t.sort((function(t,r){return e.rcompare(t,r,n)}))},e.gt=Y,e.lt=J,e.eq=Z,e.neq=ee,e.gte=te,e.lte=ne,e.cmp=re,e.Comparator=ie;var oe={};function ae(e,t){if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),e instanceof ae)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new ae(e.raw,t);if(e instanceof ie)return new ae(e.value,t);if(!(this instanceof ae))return new ae(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function se(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,n,r,i,o,a,s,c,l,u,p,d){return((t=se(n)?"":se(r)?">="+n+".0.0":se(i)?">="+n+"."+r+".0":">="+t)+" "+(s=se(c)?"":se(l)?"<"+(+c+1)+".0.0":se(u)?"<"+c+"."+(+l+1)+".0":p?"<="+c+"."+l+"."+u+"-"+p:"<="+s)).trim()}function le(e,t,r){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(i=0;i<e.length;i++)if(n(e[i].semver),e[i].semver!==oe&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function ue(e,t,n){try{t=new ae(t,n)}catch{return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,c;switch(e=new W(e,r),t=new ae(t,r),n){case">":i=Y,o=ne,a=J,s=">",c=">=";break;case"<":i=J,o=te,a=Y,s="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(ue(e,t,r))return!1;for(var l=0;l<t.set.length;++l){var u=t.set[l],p=null,d=null;if(u.forEach((function(e){e.semver===oe&&(e=new ie(">=0.0.0")),p=p||e,d=d||e,i(e.semver,p.semver,r)?p=e:a(e.semver,d.semver,r)&&(d=e)})),p.operator===s||p.operator===c||(!d.operator||d.operator===s)&&o(e,d.semver))return!1;if(d.operator===c&&a(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.options.loose?o[F]:o[B],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=n[1],"="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=oe},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return n("Comparator.test",e,this.options.loose),this.semver===oe||("string"==typeof e&&(e=new W(e,this.options)),re(e,this.operator,this.semver,this.options))},ie.prototype.intersects=function(e,t){if(!(e instanceof ie))throw new TypeError("a Comparator is required");var n;if((!t||"object"!=typeof t)&&(t={loose:!!t,includePrerelease:!1}),""===this.operator)return n=new ae(e.value,t),ue(this.value,n,t);if(""===e.operator)return n=new ae(this.value,t),ue(e.semver,n,t);var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=re(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=re(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||c},e.Range=ae,ae.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},ae.prototype.toString=function(){return this.range},ae.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[q]:o[U];e=e.replace(r,ce),n("hyphen replace",e),e=e.replace(o[V],"$1$2$3"),n("comparator trim",e,o[V]),e=(e=(e=e.replace(o[R],"$1~")).replace(o[M],"$1^")).split(/\s+/).join(" ");var i=t?o[F]:o[B],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?o[z]:o[j];return e.replace(r,(function(t,r,i,o,a){var s;return n("caret",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s="0"===r?">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":">="+r+"."+i+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),s="0"===r?"0"===i?">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),s="0"===r?"0"===i?">="+r+"."+i+"."+o+" <"+r+"."+i+"."+(+o+1):">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0":">="+r+"."+i+"."+o+" <"+(+r+1)+".0.0"),n("caret return",s),s}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?o[k]:o[D];return e.replace(r,(function(t,r,i,o,a){var s;return n("tilde",e,t,r,i,o,a),se(r)?s="":se(i)?s=">="+r+".0.0 <"+(+r+1)+".0.0":se(o)?s=">="+r+"."+i+".0 <"+r+"."+(+i+1)+".0":a?(n("replaceTilde pr",a),s=">="+r+"."+i+"."+o+"-"+a+" <"+r+"."+(+i+1)+".0"):s=">="+r+"."+i+"."+o+" <"+r+"."+(+i+1)+".0",n("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?o[P]:o[I];return e.replace(r,(function(t,r,i,o,a,s){n("xRange",e,t,r,i,o,a,s);var c=se(i),l=c||se(o),u=l||se(a);return"="===r&&u&&(r=""),c?t=">"===r||"<"===r?"<0.0.0":"*":r&&u?(l&&(o=0),a=0,">"===r?(r=">=",l?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",l?i=+i+1:o=+o+1),t=r+i+"."+o+"."+a):l?t=">="+i+".0.0 <"+(+i+1)+".0.0":u&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),n("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(o[G],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(i)}))),a.map((function(e){return new ie(e,this.options)}),this)},ae.prototype.intersects=function(e,t){if(!(e instanceof ae))throw new TypeError("a Range is required");return this.set.some((function(n){return n.every((function(n){return e.set.some((function(e){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},e.toComparators=function(e,t){return new ae(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},ae.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new W(e,this.options));for(var t=0;t<this.set.length;t++)if(le(this.set[t],e,this.options))return!0;return!1},e.satisfies=ue,e.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||-1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new ae(t,n)}catch{return null}return e.forEach((function(e){o.test(e)&&(!r||1===i.compare(e))&&(i=new W(r=e,n))})),r},e.minVersion=function(e,t){e=new ae(e,t);var n=new W("0.0.0");if(e.test(n)||(n=new W("0.0.0-0"),e.test(n)))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!n||Y(n,t))&&(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},e.validRange=function(e,t){try{return new ae(e,t).range||"*"}catch{return null}},e.ltr=function(e,t,n){return pe(e,t,"<",n)},e.gtr=function(e,t,n){return pe(e,t,">",n)},e.outside=pe,e.prerelease=function(e,t){var n=$(e,t);return n&&n.prerelease.length?n.prerelease:null},e.intersects=function(e,t,n){return e=new ae(e,n),t=new ae(t,n),e.intersects(t)},e.coerce=function(e){if(e instanceof W)return e;if("string"!=typeof e)return null;var t=e.match(o[O]);return null==t?null:$(t[1]+"."+(t[2]||"0")+"."+(t[3]||"0"))}})),wr=_(((e,t)=>{var n,r,i,o,a,s=ar().wrap,c=1,l=2,u=4,p=8,d=[],f=0,h=!1,m=[];function v(e,t){var n=e.length,r=t.length,i=[];if(0===n&&0===r)return i;for(var o=0;o<n;o++)i[o]=e[o];if(0===r)return i;for(var a=0;a<r;a++){var s=!0;for(o=0;o<n;o++)if(e[o].uid===t[a].uid){s=!1;break}s&&i.push(t[a])}return i}function g(e,t){"function"==typeof e.create&&(this.create=e.create,this.flags|=c),"function"==typeof e.before&&(this.before=e.before,this.flags|=l),"function"==typeof e.after&&(this.after=e.after,this.flags|=u),"function"==typeof e.error&&(this.error=e.error,this.flags|=p),this.uid=++f,this.data=void 0===t?null:t}function b(e,t){if("object"!=typeof e||!e)throw new TypeError("callbacks argument must be an object");return e instanceof g?e:new g(e,t)}process._fatalException?(i=!1,n=function(e){var t=d.length;if(i||0===t)return!1;var n=!1;i=!0;for(var r=0;r<t;++r){var a=d[r];if(a.flags&p){var s=o&&o[a.uid];n=a.error(s,e)||n}}return i=!1,m.length>0&&(d=m.pop()),o=void 0,n&&!h},r=function(e,t,n){var r=[];h=!0;for(var i=0;i<n;++i){var a=t[i];if(r[a.uid]=a.data,a.flags&c){var s=a.create(a.data);void 0!==s&&(r[a.uid]=s)}}return h=!1,function(){o=r,m.push(d),d=v(t,d),h=!0;for(var i=0;i<n;++i)(t[i].flags&l)>0&&t[i].before(this,r[t[i].uid]);h=!1;var a=e.apply(this,arguments);for(h=!0,i=0;i<n;++i)(t[i].flags&u)>0&&t[i].after(this,r[t[i].uid]);return h=!1,d=m.pop(),o=void 0,a}},s(process,"_fatalException",(function(e){return function(t){return n(t)||e(t)}}))):(a=!1,n=function(e){if(a)throw e;for(var t=!1,n=d.length,r=0;r<n;++r){var i=d[r];i.flags&p&&(t=i.error(null,e)||t)}if(!t&&h)throw e},r=function(e,t,r){var i=[];h=!0;for(var o=0;o<r;++o){var s=t[o];if(i[s.uid]=s.data,s.flags&c){var f=s.create(s.data);void 0!==f&&(i[s.uid]=f)}}return h=!1,function(){var o,s=!1,c=!1;m.push(d),d=v(t,d),h=!0;for(var f=0;f<r;++f)(t[f].flags&l)>0&&t[f].before(this,i[t[f].uid]);h=!1;try{o=e.apply(this,arguments)}catch(e){for(s=!0,f=0;f<r;++f)if(d[f].flags&p)try{c=d[f].error(i[t[f].uid],e)||c}catch(e){throw a=!0,e}if(!c)throw process.removeListener("uncaughtException",n),process._originalNextTick((function(){process.addListener("uncaughtException",n)})),e}finally{if(!s||c){for(h=!0,f=0;f<r;++f)(t[f].flags&u)>0&&t[f].after(this,i[t[f].uid]);h=!1}d=m.pop()}return o}},process.addListener("uncaughtException",n)),g.prototype.create=void 0,g.prototype.before=void 0,g.prototype.after=void 0,g.prototype.error=void 0,g.prototype.data=void 0,g.prototype.uid=0,g.prototype.flags=0,process.createAsyncListener=b,process.addAsyncListener=function(e,t){var n;n=e instanceof g?e:b(e,t);for(var r=!1,i=0;i<d.length;i++)if(n===d[i]){r=!0;break}return r||d.push(n),n},process.removeAsyncListener=function(e){for(var t=0;t<d.length;t++)if(e===d[t]){d.splice(t,1);break}},t.exports=function(e){var t=d.length;if(0===t)return e;for(var n=d.slice(),i=0;i<t;++i)if(n[i].flags>0)return r(e,n,t);return function(e,t,n){h=!0;for(var r=0;r<n;++r){var i=t[r];i.create&&i.create(i.data)}return h=!1,function(){m.push(d),d=v(t,d);var n=e.apply(this,arguments);return d=m.pop(),n}}(e,n,t)}})),Er=_(((e,t)=>{"use strict";t.exports=(e,t)=>class extends e{constructor(e){var n,r;super((function(e,o){n=this,r=[function(n){return t(i,!1),e(n)},function(e){return t(i,!1),o(e)}]}));var i=this;try{e.apply(n,r)}catch(e){r[1](e)}return i}}})),Ar=_((()=>{"use strict";if(process.addAsyncListener)throw new Error("Don't require polyfill unless needed");var e=ar(),t=xr(),r=e.wrap,i=e.massWrap,o=wr(),a=n(9023),s=t.gte(process.version,"6.0.0"),c=t.gte(process.version,"7.0.0"),l=t.gte(process.version,"8.0.0"),u=t.gte(process.version,"11.0.0"),p=n(9278);function d(e){return function(){this.on("connection",(function(e){e._handle&&(e._handle.onread=o(e._handle.onread))}));try{return e.apply(this,arguments)}finally{this._handle&&this._handle.onconnection&&(this._handle.onconnection=o(this._handle.onconnection))}}}function f(e){if(e&&e._handle){var t=e._handle;t._originalOnread||(t._originalOnread=t.onread),t.onread=o(t._originalOnread)}}c&&!p._normalizeArgs?p._normalizeArgs=function(e){if(0===e.length)return[{},null];var t=e[0],n={};"object"==typeof t&&null!==t?n=t:function(e){return"string"==typeof e&&!1===function(e){return(e=Number(e))>=0&&e}(e)}(t)?n.path=t:(n.port=t,e.length>1&&"string"==typeof e[1]&&(n.host=e[1]));var r=e[e.length-1];return"function"!=typeof r?[n,null]:[n,r]}:!c&&!p._normalizeConnectArgs&&(p._normalizeConnectArgs=function(e){var t={};"object"==typeof e[0]&&null!==e[0]?t=e[0]:"string"==typeof e[0]&&!1===function(e){return(e=Number(e))>=0&&e}(e[0])?t.path=e[0]:(t.port=e[0],"string"==typeof e[1]&&(t.host=e[1]));var n=e[e.length-1];return"function"==typeof n?[t,n]:[t]}),"_setUpListenHandle"in p.Server.prototype?r(p.Server.prototype,"_setUpListenHandle",d):r(p.Server.prototype,"_listen2",d),r(p.Socket.prototype,"connect",(function(e){return function(){var t;(t=l&&Array.isArray(arguments[0])&&Object.getOwnPropertySymbols(arguments[0]).length>0?arguments[0]:c?p._normalizeArgs(arguments):p._normalizeConnectArgs(arguments))[1]&&(t[1]=o(t[1]));var n=e.apply(this,t);return f(this),n}}));var h=n(8611);r(h.Agent.prototype,"addRequest",(function(e){return function(t){var n=t.onSocket;return t.onSocket=o((function(e){return f(e),n.apply(this,arguments)})),e.apply(this,arguments)}}));var m=n(5317);function v(e){Array.isArray(e.stdio)&&e.stdio.forEach((function(e){e&&e._handle&&(e._handle.onread=o(e._handle.onread),r(e._handle,"close",O))})),e._handle&&(e._handle.onexit=o(e._handle.onexit))}m.ChildProcess?r(m.ChildProcess.prototype,"spawn",(function(e){return function(){var t=e.apply(this,arguments);return v(this),t}})):i(m,["execFile","fork","spawn"],(function(e){return function(){var t=e.apply(this,arguments);return v(t),t}})),process._fatalException||(process._originalNextTick=process.nextTick);var g=[];process._nextDomainTick&&g.push("_nextDomainTick"),process._tickDomainCallback&&g.push("_tickDomainCallback"),i(process,g,P),r(process,"nextTick",O);var b=["setTimeout","setInterval"];global.setImmediate&&b.push("setImmediate");var y=n(3557),_=global.setTimeout===y.setTimeout;i(y,b,O),_&&i(global,b,O);var x=n(2250);i(x,["lookup","resolve","resolve4","resolve6","resolveCname","resolveMx","resolveNs","resolveTxt","resolveSrv","reverse"],P),x.resolveNaptr&&r(x,"resolveNaptr",P);var w,E,A,S=n(9896);i(S,["watch","rename","truncate","chown","fchown","chmod","fchmod","stat","lstat","fstat","link","symlink","readlink","realpath","unlink","rmdir","mkdir","readdir","close","open","utimes","futimes","fsync","write","read","readFile","writeFile","appendFile","watchFile","unwatchFile","exists"],P),S.lchown&&r(S,"lchown",P),S.lchmod&&r(S,"lchmod",P),S.ftruncate&&r(S,"ftruncate",P);try{w=n(3106)}catch{}w&&w.Deflate&&w.Deflate.prototype&&((E=Object.getPrototypeOf(w.Deflate.prototype))._transform?r(E,"_transform",P):E.write&&E.flush&&E.end&&i(E,["write","flush","end"],P));try{A=n(6982)}catch{}A&&(T=["pbkdf2","randomBytes"],u||T.push("pseudoRandomBytes"),i(A,T,P));var T,C,I=!!global.Promise&&"function Promise() { [native code] }"===Promise.toString()&&"function toString() { [native code] }"===Promise.toString.toString();function P(e){var t=function(){var t,n=arguments.length-1;if("function"==typeof arguments[n]){t=Array(arguments.length);for(var r=0;r<arguments.length-1;r++)t[r]=arguments[r];t[n]=o(arguments[n])}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof r&&(r=o(r)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof i&&(i=o(i)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof a&&(a=o(a)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof s&&(s=o(s)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof c&&(c=o(c)),e.call(this,n,r,i,a,s,c))};default:return t}}function O(e){var t=function(){var t;if("function"==typeof arguments[0]){(t=Array(arguments.length))[0]=o(arguments[0]);for(var n=1;n<arguments.length;n++)t[n]=arguments[n]}return e.apply(this,t||arguments)};switch(e.length){case 1:return function(n){return 1!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n))};case 2:return function(n,r){return 2!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r))};case 3:return function(n,r,i){return 3!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i))};case 4:return function(n,r,i,a){return 4!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a))};case 5:return function(n,r,i,a,s){return 5!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s))};case 6:return function(n,r,i,a,s,c){return 6!==arguments.length?t.apply(this,arguments):("function"==typeof n&&(n=o(n)),e.call(this,n,r,i,a,s,c))};default:return t}}I&&(C=process.addAsyncListener({create:function(){I=!1}}),global.Promise.resolve(!0).then((function(){I=!1})),process.removeAsyncListener(C)),I&&function(){var e=global.Promise;function t(r){if(!(this instanceof t))return e(r);if("function"!=typeof r)return new e(r);var i,o,a=new e((function(e,t){i=this,o=[function(t){return n(a,!1),e(t)},function(e){return n(a,!1),t(e)}]}));a.__proto__=t.prototype;try{r.apply(i,o)}catch(e){o[1](e)}return a}function n(e,t){(!e.__asl_wrapper||t)&&(e.__asl_wrapper=o(i))}function i(t,r,o,a){var s;try{return{returnVal:s=r.call(t,o),error:!1}}catch(e){return{errorVal:e,error:!0}}finally{s instanceof e?a.__asl_wrapper=function(){return(s.__asl_wrapper||i).apply(this,arguments)}:n(a,!0)}}function c(e){return function(){var t=this,n=e.apply(t,Array.prototype.map.call(arguments,(function(e){return"function"!=typeof e?e:o((function(r){var o=(t.__asl_wrapper||i)(this,e,r,n);if(o.error)throw o.errorVal;return o.returnVal}))})));return n.__asl_wrapper=function(e,r,o,a){return t.__asl_wrapper?(t.__asl_wrapper(e,(function(){}),null,n),n.__asl_wrapper(e,r,o,a)):i(e,r,o,a)},n}}a.inherits(t,e),r(e.prototype,"then",c),e.prototype.chain&&r(e.prototype,"chain",c),s?global.Promise=Er()(e,n):(["all","race","reject","resolve","accept","defer"].forEach((function(n){"function"==typeof e[n]&&(t[n]=e[n])})),global.Promise=t)}()})),Sr=_(((e,t)=>{"use strict";var r=n(2613),i=sr(),o="cls@contexts",a="error@context";function s(e){this.name=e,this.active=null,this._set=[],this.id=null}function c(e){return process.namespaces[e]}function l(e){var t=c(e);r.ok(t,"can't delete nonexistent namespace!"),r.ok(t.id,"don't assign to process.namespaces directly!"),process.removeAsyncListener(t.id),process.namespaces[e]=null}function u(){process.namespaces&&Object.keys(process.namespaces).forEach((function(e){l(e)})),process.namespaces=Object.create(null)}process.addAsyncListener||Ar(),s.prototype.set=function(e,t){if(!this.active)throw new Error("No context available. ns.run() or ns.bind() must be called first.");return this.active[e]=t,t},s.prototype.get=function(e){if(this.active)return this.active[e]},s.prototype.createContext=function(){return Object.create(this.active)},s.prototype.run=function(e){var t=this.createContext();this.enter(t);try{return e(t),t}catch(e){throw e&&(e[a]=t),e}finally{this.exit(t)}},s.prototype.runAndReturn=function(e){var t;return this.run((function(n){t=e(n)})),t},s.prototype.bind=function(e,t){t||(t=this.active?this.active:this.createContext());var n=this;return function(){n.enter(t);try{return e.apply(this,arguments)}catch(e){throw e&&(e[a]=t),e}finally{n.exit(t)}}},s.prototype.enter=function(e){r.ok(e,"context must be provided for entering"),this._set.push(this.active),this.active=e},s.prototype.exit=function(e){if(r.ok(e,"context must be provided for exiting"),this.active===e)return r.ok(this._set.length,"can't remove top context"),void(this.active=this._set.pop());var t=this._set.lastIndexOf(e);r.ok(t>=0,"context not currently entered; can't exit"),r.ok(t,"can't remove top context"),this._set.splice(t,1)},s.prototype.bindEmitter=function(e){r.ok(e.on&&e.addListener&&e.emit,"can only bind real EEs");var t=this,n="context@"+this.name;i(e,(function(e){!e||(e[o]||(e[o]=Object.create(null)),e[o][n]={namespace:t,context:t.active})}),(function(e){if(!e||!e[o])return e;var t=e,n=e[o];return Object.keys(n).forEach((function(e){var r=n[e];t=r.namespace.bind(t,r.context)})),t}))},s.prototype.fromException=function(e){return e[a]},process.namespaces||u(),t.exports={getNamespace:c,createNamespace:function(e){r.ok(e,"namespace must be given a name!");var t=new s(e);return t.id=process.addAsyncListener({create:function(){return t.active},before:function(e,n){n&&t.enter(n)},after:function(e,n){n&&t.exit(n)},error:function(e){e&&t.exit(e)}}),process.namespaces[e]=t,t},destroyNamespace:l,reset:u}})),Tr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CorrelationContextManager=void 0;var t=P(),n=sn(),r=pn(),i=dn(),o=ir(),a=function(){function e(){}return e.getCurrentContext=function(){if(!e.enabled)return null;var t=e.session.get(e.CONTEXT_NAME);return void 0===t?null:t},e.generateContextObject=function(e,t,n,r,i,o){return t=t||e,this.enabled?{operation:{name:n,id:e,parentId:t,traceparent:i,tracestate:o},customProperties:new s(r)}:null},e.spanToContextObject=function(t,n,i){var o=new r;return o.traceId=t.traceId,o.spanId=t.spanId,o.traceFlag=r.formatOpenTelemetryTraceFlags(t.traceFlags)||r.DEFAULT_TRACE_FLAG,o.parentId=n,e.generateContextObject(o.traceId,o.parentId,i,null,o)},e.runWithContext=function(t,n){var r;return e.enabled?e.session.bind(n,((r={})[e.CONTEXT_NAME]=t,r))():n()},e.wrapEmitter=function(t){e.enabled&&e.session.bindEmitter(t)},e.wrapCallback=function(t,n){var r;return e.enabled?e.session.bind(t,n?((r={})[e.CONTEXT_NAME]=n,r):void 0):t},e.enable=function(t){if(!this.enabled){if(!this.isNodeVersionCompatible())return void(this.enabled=!1);e.hasEverEnabled||(this.forceClsHooked=t,this.hasEverEnabled=!0,typeof this.cls>"u"&&(!0===e.forceClsHooked||void 0===e.forceClsHooked&&e.shouldUseClsHooked()?this.cls=_r():this.cls=Sr()),e.session=this.cls.createNamespace("AI-CLS-Session"),n.registerContextPreservation((function(t){return e.session.bind(t)}))),this.enabled=!0}},e.startOperation=function(n,a){var s=n&&n.traceContext||null,c=n&&n.traceId?n:null,l=n&&n.headers;if(c){var u=new r("00-"+c.traceId+"-"+c.spanId+"-01"),p=new i(c.traceState?c.traceState.serialize():null);return e.generateContextObject(c.traceId,"|"+c.traceId+"."+c.spanId+".","string"==typeof a?a:"",void 0,u,p)}if(s){u=new r(s.traceparent),p=new i(s.tracestate);var d="object"==typeof a?new o(a):null;return e.generateContextObject(u.traceId,u.parentId,"string"==typeof a?a:d.getOperationName({}),d&&d.getCorrelationContextHeader()||void 0,u,p)}return l?(u=new r(l.traceparent?l.traceparent.toString():null),p=new i(l.tracestate?l.tracestate.toString():null),d=new o(n),e.generateContextObject(u.traceId,u.parentId,d.getOperationName({}),d.getCorrelationContextHeader(),u,p)):(t.warn("startOperation was called with invalid arguments",arguments),null)},e.disable=function(){this.enabled=!1},e.reset=function(){e.hasEverEnabled&&(e.session=null,e.session=this.cls.createNamespace("AI-CLS-Session"))},e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>3||parseInt(e[0])>2&&parseInt(e[1])>2},e.shouldUseClsHooked=function(){var e=process.versions.node.split(".");return parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=2},e.canUseClsHooked=function(){var e=process.versions.node.split("."),t=parseInt(e[0])>8||parseInt(e[0])>=8&&parseInt(e[1])>=0,n=parseInt(e[0])<8||parseInt(e[0])<=8&&parseInt(e[1])<2,r=parseInt(e[0])>4||parseInt(e[0])>=4&&parseInt(e[1])>=7;return!(t&&n)&&r},e.enabled=!1,e.hasEverEnabled=!1,e.forceClsHooked=void 0,e.CONTEXT_NAME="ApplicationInsights-Context",e}();e.CorrelationContextManager=a;var s=function(){function e(e){this.props=[],this.addHeaderData(e)}return e.prototype.addHeaderData=function(e){var t=e?e.split(", "):[];this.props=t.map((function(e){var t=e.split("=");return{key:t[0],value:t[1]}})).concat(this.props)},e.prototype.serializeToHeader=function(){return this.props.map((function(e){return e.key+"="+e.value})).join(", ")},e.prototype.getProperty=function(e){for(var t=0;t<this.props.length;++t){var n=this.props[t];if(n.key===e)return n.value}},e.prototype.setProperty=function(n,r){if(e.bannedCharacters.test(n)||e.bannedCharacters.test(r))t.warn("Correlation context property keys and values must not contain ',' or '='. setProperty was called with key: "+n+" and value: "+r);else{for(var i=0;i<this.props.length;++i){var o=this.props[i];if(o.key===n)return void(o.value=r)}this.props.push({key:n,value:r})}},e.bannedCharacters=/[,=]/,e}()})),Cr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i=function(e){var n=e.data.message;r.forEach((function(r){n instanceof Error?r.trackException({exception:n}):(n.lastIndexOf("\n")==n.length-1&&(n=n.substring(0,n.length-1)),r.trackTrace({message:n,severity:e.data.stderr?t.SeverityLevel.Warning:t.SeverityLevel.Information}))}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("console",i),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("console",i)},e.dispose=function(){n.channel.unsubscribe("console",i),r=[]}})),Ir=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={10:t.SeverityLevel.Verbose,20:t.SeverityLevel.Verbose,30:t.SeverityLevel.Information,40:t.SeverityLevel.Warning,50:t.SeverityLevel.Error,60:t.SeverityLevel.Critical},o=function(e){var t=e.data.result;r.forEach((function(n){var r=i[e.data.level];t instanceof Error?n.trackException({exception:t}):n.trackTrace({message:t,severity:r})}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("bunyan",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("bunyan",o)},e.dispose=function(){n.channel.unsubscribe("bunyan",o),r=[]}})),Pr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.enable=void 0;var t=nr(),n=k(),r=[],i={syslog:function(e){var n={emerg:t.SeverityLevel.Critical,alert:t.SeverityLevel.Critical,crit:t.SeverityLevel.Critical,error:t.SeverityLevel.Error,warning:t.SeverityLevel.Warning,notice:t.SeverityLevel.Information,info:t.SeverityLevel.Information,debug:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},npm:function(e){var n={error:t.SeverityLevel.Error,warn:t.SeverityLevel.Warning,info:t.SeverityLevel.Information,verbose:t.SeverityLevel.Verbose,debug:t.SeverityLevel.Verbose,silly:t.SeverityLevel.Verbose};return void 0===n[e]?t.SeverityLevel.Information:n[e]},unknown:function(e){return t.SeverityLevel.Information}},o=function(e){var t=e.data.message;r.forEach((function(n){if(t instanceof Error)n.trackException({exception:t,properties:e.data.meta});else{var r=i[e.data.levelKind](e.data.level);n.trackTrace({message:t,severity:r,properties:e.data.meta})}}))};e.enable=function(e,t){e?(0===r.length&&n.channel.subscribe("winston",o),r.push(t)):0===(r=r.filter((function(e){return e!=t}))).length&&n.channel.unsubscribe("winston",o)},e.dispose=function(){n.channel.unsubscribe("winston",o),r=[]}})),Or=_(((e,t)=>{"use strict";var n=sn(),r=function(){function e(t){if(e.INSTANCE)throw new Error("Console logging adapter tracking should be configured from the applicationInsights object");this._client=t,e.INSTANCE=this}return e.prototype.enable=function(e,t){n.IsInitialized&&(Cr().enable(e&&t,this._client),Ir().enable(e,this._client),Pr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1,!1)},e._methodNames=["debug","info","log","warn","error"],e}();t.exports=r})),Nr=_(((e,t)=>{"use strict";var n=function(){function e(t){if(e.INSTANCE)throw new Error("Exception tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t;var n=process.versions.node.split(".");e._canUseUncaughtExceptionMonitor=parseInt(n[0])>13||13===parseInt(n[0])&&parseInt(n[1])>=7}return e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.enable=function(t){var n=this;if(t){if(this._isInitialized=!0,!this._exceptionListenerHandle){var r=function(t,r,i){void 0===i&&(i=new Error(e._FALLBACK_ERROR_MESSAGE)),n._client.trackException({exception:i}),n._client.flush({isAppCrashing:!0}),t&&r&&1===process.listeners(r).length&&(console.error(i),process.exit(1))};e._canUseUncaughtExceptionMonitor?(this._exceptionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle)):(this._exceptionListenerHandle=r.bind(this,!0,e.UNCAUGHT_EXCEPTION_HANDLER_NAME),this._rejectionListenerHandle=r.bind(this,!1,void 0),process.on(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.on(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle))}}else this._exceptionListenerHandle&&(e._canUseUncaughtExceptionMonitor?process.removeListener(e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME,this._exceptionListenerHandle):(process.removeListener(e.UNCAUGHT_EXCEPTION_HANDLER_NAME,this._exceptionListenerHandle),process.removeListener(e.UNHANDLED_REJECTION_HANDLER_NAME,this._rejectionListenerHandle)),this._exceptionListenerHandle=void 0,this._rejectionListenerHandle=void 0,delete this._exceptionListenerHandle,delete this._rejectionListenerHandle)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.INSTANCE=null,e.UNCAUGHT_EXCEPTION_MONITOR_HANDLER_NAME="uncaughtExceptionMonitor",e.UNCAUGHT_EXCEPTION_HANDLER_NAME="uncaughtException",e.UNHANDLED_REJECTION_HANDLER_NAME="unhandledRejection",e._RETHROW_EXIT_MESSAGE="Application Insights Rethrow Exception Handler",e._FALLBACK_ERROR_MESSAGE="A promise was rejected without providing an error. Application Insights generated this error stack for you.",e._canUseUncaughtExceptionMonitor=!1,e}();t.exports=n})),Rr=_((e=>{"use strict";var t,n,r,i;Object.defineProperty(e,"__esModule",{value:!0}),e.HeartBeatMetricName=e.DependencyTypeName=e.SpanAttribute=e.TelemetryTypeStringToQuickPulseDocumentType=e.TelemetryTypeStringToQuickPulseType=e.QuickPulseType=e.QuickPulseDocumentType=e.PerformanceToQuickPulseCounter=e.MetricId=e.PerformanceCounter=e.QuickPulseCounter=e.DEFAULT_LIVEMETRICS_HOST=e.DEFAULT_LIVEMETRICS_ENDPOINT=e.DEFAULT_BREEZE_ENDPOINT=void 0,e.DEFAULT_BREEZE_ENDPOINT="https://dc.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_ENDPOINT="https://rt.services.visualstudio.com",e.DEFAULT_LIVEMETRICS_HOST="rt.services.visualstudio.com",(r=n=e.QuickPulseCounter||(e.QuickPulseCounter={})).COMMITTED_BYTES="\\Memory\\Committed Bytes",r.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",r.REQUEST_RATE="\\ApplicationInsights\\Requests/Sec",r.REQUEST_FAILURE_RATE="\\ApplicationInsights\\Requests Failed/Sec",r.REQUEST_DURATION="\\ApplicationInsights\\Request Duration",r.DEPENDENCY_RATE="\\ApplicationInsights\\Dependency Calls/Sec",r.DEPENDENCY_FAILURE_RATE="\\ApplicationInsights\\Dependency Calls Failed/Sec",r.DEPENDENCY_DURATION="\\ApplicationInsights\\Dependency Call Duration",r.EXCEPTION_RATE="\\ApplicationInsights\\Exceptions/Sec",function(e){e.PRIVATE_BYTES="\\Process(??APP_WIN32_PROC??)\\Private Bytes",e.AVAILABLE_BYTES="\\Memory\\Available Bytes",e.PROCESSOR_TIME="\\Processor(_Total)\\% Processor Time",e.PROCESS_TIME="\\Process(??APP_WIN32_PROC??)\\% Processor Time",e.REQUEST_RATE="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Requests/Sec",e.REQUEST_DURATION="\\ASP.NET Applications(??APP_W3SVC_PROC??)\\Request Execution Time"}(i=e.PerformanceCounter||(e.PerformanceCounter={})),function(e){e.REQUESTS_DURATION="requests/duration",e.DEPENDENCIES_DURATION="dependencies/duration",e.EXCEPTIONS_COUNT="exceptions/count",e.TRACES_COUNT="traces/count"}(e.MetricId||(e.MetricId={})),e.PerformanceToQuickPulseCounter=((t={})[i.PROCESSOR_TIME]=n.PROCESSOR_TIME,t[i.REQUEST_RATE]=n.REQUEST_RATE,t[i.REQUEST_DURATION]=n.REQUEST_DURATION,t[n.COMMITTED_BYTES]=n.COMMITTED_BYTES,t[n.REQUEST_FAILURE_RATE]=n.REQUEST_FAILURE_RATE,t[n.DEPENDENCY_RATE]=n.DEPENDENCY_RATE,t[n.DEPENDENCY_FAILURE_RATE]=n.DEPENDENCY_FAILURE_RATE,t[n.DEPENDENCY_DURATION]=n.DEPENDENCY_DURATION,t[n.EXCEPTION_RATE]=n.EXCEPTION_RATE,t),e.QuickPulseDocumentType={Event:"Event",Exception:"Exception",Trace:"Trace",Metric:"Metric",Request:"Request",Dependency:"RemoteDependency",Availability:"Availability",PageView:"PageView"},e.QuickPulseType={Event:"EventTelemetryDocument",Exception:"ExceptionTelemetryDocument",Trace:"TraceTelemetryDocument",Metric:"MetricTelemetryDocument",Request:"RequestTelemetryDocument",Dependency:"DependencyTelemetryDocument",Availability:"AvailabilityTelemetryDocument",PageView:"PageViewTelemetryDocument"},e.TelemetryTypeStringToQuickPulseType={EventData:e.QuickPulseType.Event,ExceptionData:e.QuickPulseType.Exception,MessageData:e.QuickPulseType.Trace,MetricData:e.QuickPulseType.Metric,RequestData:e.QuickPulseType.Request,RemoteDependencyData:e.QuickPulseType.Dependency,AvailabilityData:e.QuickPulseType.Availability,PageViewData:e.QuickPulseType.PageView},e.TelemetryTypeStringToQuickPulseDocumentType={EventData:e.QuickPulseDocumentType.Event,ExceptionData:e.QuickPulseDocumentType.Exception,MessageData:e.QuickPulseDocumentType.Trace,MetricData:e.QuickPulseDocumentType.Metric,RequestData:e.QuickPulseDocumentType.Request,RemoteDependencyData:e.QuickPulseDocumentType.Dependency,AvailabilityData:e.QuickPulseDocumentType.Availability,PageViewData:e.QuickPulseDocumentType.PageView},e.SpanAttribute={HttpHost:"http.host",HttpMethod:"http.method",HttpPort:"http.port",HttpStatusCode:"http.status_code",HttpUrl:"http.url",HttpUserAgent:"http.user_agent",GrpcMethod:"grpc.method",GrpcService:"rpc.service"},e.DependencyTypeName={Grpc:"GRPC",Http:"HTTP",InProc:"InProc"},e.HeartBeatMetricName="HeartBeat"})),Dr=_(((e,t)=>{"use strict";var r=n(857),i=Rr(),o=function(){function e(t,n,r){void 0===n&&(n=6e4),void 0===r&&(r=!1),this._lastIntervalRequestExecutionTime=0,this._lastIntervalDependencyExecutionTime=0,e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t,this._collectionInterval=n,this._enableLiveMetricsCounters=r}return e.prototype.enable=function(t,n){var i=this;this._isEnabled=t,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),t?this._handle||(this._lastCpus=r.cpus(),this._lastRequests={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},this._lastDependencies={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},this._lastExceptions={totalExceptionCount:e._totalExceptionCount,time:+new Date},"function"==typeof process.cpuUsage&&(this._lastAppCpuUsage=process.cpuUsage()),this._lastHrtime=process.hrtime(),this._collectionInterval=n||this._collectionInterval,this._handle=setInterval((function(){return i.trackPerformance()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countRequest=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalRequestExecutionTime+=r,!1===n&&e._totalFailedRequestCount++,e._totalRequestCount++}},e.countException=function(){e._totalExceptionCount++},e.countDependency=function(t,n){var r;if(e.isEnabled()){if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}e._intervalDependencyExecutionTime+=r,!1===n&&e._totalFailedDependencyCount++,e._totalDependencyCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPerformance=function(){this._trackCpu(),this._trackMemory(),this._trackNetwork(),this._trackDependencyRate(),this._trackExceptionRate()},e.prototype._trackCpu=function(){var e=r.cpus();if(e&&e.length&&this._lastCpus&&e.length===this._lastCpus.length){for(var t=0,n=0,o=0,a=0,s=0,c=0;e&&c<e.length;c++){var l=e[c],u=this._lastCpus[c],p=(l.model,l.speed,l.times),d=u.times;t+=p.user-d.user||0,n+=p.sys-d.sys||0,o+=p.nice-d.nice||0,a+=p.idle-d.idle||0,s+=p.irq-d.irq||0}var f=void 0;if("function"==typeof process.cpuUsage){var h=process.cpuUsage(),m=process.hrtime(),v=h.user-this._lastAppCpuUsage.user+(h.system-this._lastAppCpuUsage.system)||0;typeof this._lastHrtime<"u"&&2===this._lastHrtime.length&&(f=100*v/((1e6*(m[0]-this._lastHrtime[0])+(m[1]-this._lastHrtime[1])/1e3||0)*e.length)),this._lastAppCpuUsage=h,this._lastHrtime=m}var g=t+n+o+a+s||1;this._client.trackMetric({name:i.PerformanceCounter.PROCESSOR_TIME,value:(g-a)/g*100}),this._client.trackMetric({name:i.PerformanceCounter.PROCESS_TIME,value:f||t/g*100})}this._lastCpus=e},e.prototype._trackMemory=function(){var e=r.freemem(),t=process.memoryUsage().rss,n=r.totalmem()-e;this._client.trackMetric({name:i.PerformanceCounter.PRIVATE_BYTES,value:t}),this._client.trackMetric({name:i.PerformanceCounter.AVAILABLE_BYTES,value:e}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.COMMITTED_BYTES,value:n})},e.prototype._trackNetwork=function(){var t=this._lastRequests,n={totalRequestCount:e._totalRequestCount,totalFailedRequestCount:e._totalFailedRequestCount,time:+new Date},r=n.totalRequestCount-t.totalRequestCount||0,o=n.totalFailedRequestCount-t.totalFailedRequestCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalRequestExecutionTime-this._lastIntervalRequestExecutionTime)/r||0;if(this._lastIntervalRequestExecutionTime=e._intervalRequestExecutionTime,a>0){var l=r/s,u=o/s;this._client.trackMetric({name:i.PerformanceCounter.REQUEST_RATE,value:l}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.PerformanceCounter.REQUEST_DURATION,value:c}),this._enableLiveMetricsCounters&&this._client.trackMetric({name:i.QuickPulseCounter.REQUEST_FAILURE_RATE,value:u})}this._lastRequests=n},e.prototype._trackDependencyRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastDependencies,n={totalDependencyCount:e._totalDependencyCount,totalFailedDependencyCount:e._totalFailedDependencyCount,time:+new Date},r=n.totalDependencyCount-t.totalDependencyCount||0,o=n.totalFailedDependencyCount-t.totalFailedDependencyCount||0,a=n.time-t.time,s=a/1e3,c=(e._intervalDependencyExecutionTime-this._lastIntervalDependencyExecutionTime)/r||0;if(this._lastIntervalDependencyExecutionTime=e._intervalDependencyExecutionTime,a>0){var l=r/s,u=o/s;this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_RATE,value:l}),this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_FAILURE_RATE,value:u}),(!this._enableLiveMetricsCounters||r>0)&&this._client.trackMetric({name:i.QuickPulseCounter.DEPENDENCY_DURATION,value:c})}this._lastDependencies=n}},e.prototype._trackExceptionRate=function(){if(this._enableLiveMetricsCounters){var t=this._lastExceptions,n={totalExceptionCount:e._totalExceptionCount,time:+new Date},r=n.totalExceptionCount-t.totalExceptionCount||0,o=n.time-t.time;if(o>0){var a=r/(o/1e3);this._client.trackMetric({name:i.QuickPulseCounter.EXCEPTION_RATE,value:a})}this._lastExceptions=n}},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e._totalRequestCount=0,e._totalFailedRequestCount=0,e._totalDependencyCount=0,e._totalFailedDependencyCount=0,e._totalExceptionCount=0,e._intervalDependencyExecutionTime=0,e._intervalRequestExecutionTime=0,e}();t.exports=o})),kr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AggregatedMetricCounter=void 0;e.AggregatedMetricCounter=function(e){this.dimensions=e,this.totalCount=0,this.lastTotalCount=0,this.intervalExecutionTime=0,this.lastTime=+new Date,this.lastIntervalExecutionTime=0}})),Lr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PreaggregatedMetricPropertyNames=void 0,e.PreaggregatedMetricPropertyNames={cloudRoleInstance:"cloud/roleInstance",cloudRoleName:"cloud/roleName",operationSynthetic:"operation/synthetic",requestSuccess:"Request.Success",requestResultCode:"request/resultCode",dependencyType:"Dependency.Type",dependencyTarget:"dependency/target",dependencySuccess:"Dependency.Success",dependencyResultCode:"dependency/resultCode",traceSeverityLevel:"trace/severityLevel"}})),Mr=_(((e,t)=>{"use strict";var n=e&&e.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)},r=Rr(),i=kr(),o=Lr(),a=function(){function e(t,n){void 0===n&&(n=6e4),e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,e._dependencyCountersCollection=[],e._requestCountersCollection=[],e._exceptionCountersCollection=[],e._traceCountersCollection=[],this._client=t,this._collectionInterval=n}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._collectionInterval=t||this._collectionInterval,this._handle=setInterval((function(){return n.trackPreAggregatedMetrics()}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=void 0)},e.countException=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._exceptionCountersCollection).totalCount++},e.countTrace=function(t){e.isEnabled()&&e._getAggregatedCounter(t,this._traceCountersCollection).totalCount++},e.countRequest=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._requestCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.countDependency=function(t,n){if(e.isEnabled()){var r,i=e._getAggregatedCounter(n,this._dependencyCountersCollection);if("string"==typeof t)r=+new Date("1970-01-01T"+t+"Z");else{if("number"!=typeof t)return;r=t}i.intervalExecutionTime+=r,i.totalCount++}},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackPreAggregatedMetrics=function(){this._trackRequestMetrics(),this._trackDependencyMetrics(),this._trackExceptionMetrics(),this._trackTraceMetrics()},e._getAggregatedCounter=function(e,t){for(var n=!1,r=0;r<t.length;r++){if(e===t[r].dimensions)return t[r];if(Object.keys(e).length===Object.keys(t[r].dimensions).length){for(var o in e)if(e[o]!=t[r].dimensions[o]){n=!0;break}if(!n)return t[r];n=!1}}var a=new i.AggregatedMetricCounter(e);return t.push(a),a},e.prototype._trackRequestMetrics=function(){for(var t=0;t<e._requestCountersCollection.length;t++){var n=e._requestCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Server response time",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.REQUESTS_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackDependencyMetrics=function(){for(var t=0;t<e._dependencyCountersCollection.length;t++){var n=e._dependencyCountersCollection[t];n.time=+new Date;var i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime,a=(n.intervalExecutionTime-n.lastIntervalExecutionTime)/i||0;n.lastIntervalExecutionTime=n.intervalExecutionTime,o>0&&i>0&&this._trackPreAggregatedMetric({name:"Dependency duration",dimensions:n.dimensions,value:a,count:i,aggregationInterval:o,metricType:r.MetricId.DEPENDENCIES_DURATION}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackExceptionMetrics=function(){for(var t=0;t<e._exceptionCountersCollection.length;t++){var n=e._exceptionCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Exceptions",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.EXCEPTIONS_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackTraceMetrics=function(){for(var t=0;t<e._traceCountersCollection.length;t++){var n=e._traceCountersCollection[t],i=n.totalCount-n.lastTotalCount||0,o=n.time-n.lastTime;this._trackPreAggregatedMetric({name:"Traces",dimensions:n.dimensions,value:i,count:i,aggregationInterval:o,metricType:r.MetricId.TRACES_COUNT}),n.lastTotalCount=n.totalCount,n.lastTime=n.time}},e.prototype._trackPreAggregatedMetric=function(e){var t={};for(var r in e.dimensions)t[o.PreaggregatedMetricPropertyNames[r]]=e.dimensions[r];t=n(n({},t),{"_MS.MetricId":e.metricType,"_MS.AggregationIntervalMs":String(e.aggregationInterval),"_MS.IsAutocollected":"True"});var i={name:e.name,value:e.value,count:e.count,properties:t,kind:"Aggregation"};this._client.trackMetric(i)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e}();t.exports=a})),jr=_(((e,t)=>{"use strict";var r=n(857),i=n(9896),o=n(6928),a=nr(),s=P(),c=function(){function e(e){this.keys=new a.ContextTagKeys,this.tags={},this._loadApplicationContext(e),this._loadDeviceContext(),this._loadInternalContext()}return e.prototype._loadApplicationContext=function(t){if(t=t||o.resolve(__dirname,"../../../../package.json"),!e.appVersion[t]){e.appVersion[t]="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.appVersion[t]=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.applicationVersion]=e.appVersion[t]},e.prototype._loadDeviceContext=function(){this.tags[this.keys.deviceId]="",this.tags[this.keys.cloudRoleInstance]=r&&r.hostname(),this.tags[this.keys.deviceOSVersion]=r&&r.type()+" "+r.release(),this.tags[this.keys.cloudRole]=e.DefaultRoleName,this.tags["ai.device.osArchitecture"]=r&&r.arch(),this.tags["ai.device.osPlatform"]=r&&r.platform()},e.prototype._loadInternalContext=function(){var t=o.resolve(__dirname,"../../package.json");if(!e.sdkVersion){e.sdkVersion="unknown";try{var n=JSON.parse(i.readFileSync(t,"utf8"));n&&"string"==typeof n.version&&(e.sdkVersion=n.version)}catch(e){s.info("unable to read app version: ",e)}}this.tags[this.keys.internalSdkVersion]="node:"+e.sdkVersion},e.DefaultRoleName="Web",e.appVersion={},e.sdkVersion=null,e}();t.exports=c})),zr=_(((e,t)=>{"use strict";var r,i=e&&e.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=n(7016),a=nr(),s=ln(),c=cn(),l=rr(),u=un(),p=function(e){function t(n,r){var i=e.call(this)||this;return r&&r.method&&n&&(i.method=r.method,i.url=t._getUrlFromRequestOptions(n,r),i.startTime=+new Date),i}return i(t,e),t.prototype.onError=function(e){this._setStatus(void 0,e)},t.prototype.onResponse=function(e){this._setStatus(e.statusCode,void 0),this.correlationId=s.getCorrelationContextTarget(e,c.requestContextTargetKey)},t.prototype.getDependencyTelemetry=function(e,t){var n=o.parse(this.url);n.search=void 0,n.hash=void 0;var r=this.method.toUpperCase()+" "+n.pathname,i=a.RemoteDependencyDataConstants.TYPE_HTTP,s=n.hostname;n.port&&(s+=":"+n.port),this.correlationId?(i=a.RemoteDependencyDataConstants.TYPE_AI,this.correlationId!==u.correlationIdPrefix&&(s+=" | "+this.correlationId)):i=a.RemoteDependencyDataConstants.TYPE_HTTP;var c={id:t,name:r,data:this.url,duration:this.duration,success:this._isSuccess(),resultCode:this.statusCode?this.statusCode.toString():null,properties:this.properties||{},dependencyTypeName:i,target:s};if(e&&e.time?c.time=e.time:this.startTime&&(c.time=new Date(this.startTime)),e){for(var l in e)c[l]||(c[l]=e[l]);if(e.properties)for(var l in e.properties)c.properties[l]=e.properties[l]}return c},t._getUrlFromRequestOptions=function(e,t){if("string"==typeof e)if(0===e.indexOf("http://")||0===e.indexOf("https://"))e=o.parse(e);else{var n=o.parse(e);e="443"===n.host?o.parse("https://"+e):o.parse("http://"+e)}else{if(e&&"function"==typeof o.URL&&e instanceof o.URL)return o.format(e);var r=e;e={},r&&Object.keys(r).forEach((function(t){e[t]=r[t]}))}if(e.path){var i=o.parse(e.path);e.pathname=i.pathname,e.search=i.search}return e.host&&e.port&&!o.parse("http://"+e.host).port&&e.port&&(e.hostname=e.host,delete e.host),e.protocol=e.protocol||t.agent&&t.agent.protocol||t.protocol||void 0,e.hostname=e.hostname||"localhost",o.format(e)},t}(l);t.exports=p})),Fr=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.spanToTelemetryContract=void 0;var n=Pe(),r=Rr();function i(e){var n=t({},e);return Object.keys(r.SpanAttribute).forEach((function(e){delete n[e]})),n}e.spanToTelemetryContract=function(e){var o="|"+e.spanContext().traceId+"."+e.spanContext().spanId+".",a=Math.round(1e3*e._duration[0]+e._duration[1]/1e6),s=e.attributes["peer.address"]?e.attributes["peer.address"].toString():"",c=e.attributes.component?e.attributes.component.toString():"",l=c.toUpperCase()===r.DependencyTypeName.Http||!!e.attributes[r.SpanAttribute.HttpUrl],u=c.toLowerCase()===r.DependencyTypeName.Grpc;if(l){var p=e.attributes[r.SpanAttribute.HttpMethod]||"GET",d=new URL(e.attributes[r.SpanAttribute.HttpUrl].toString()),f=e.attributes[r.SpanAttribute.HttpHost]||d.host,h=e.attributes[r.SpanAttribute.HttpPort]||d.port||null,m=p+" "+(d.pathname||"/"),v=r.DependencyTypeName.Http,g=h?(f+":"+h).toString():f.toString(),b=d.toString(),y=e.attributes[r.SpanAttribute.HttpStatusCode]||e.status.code||0;return{id:o,name:m,dependencyTypeName:v,target:g,data:b,success:y<400,duration:a,url:b,resultCode:String(y),properties:i(e.attributes)}}if(u){p=e.attributes[r.SpanAttribute.GrpcMethod]||"rpc";var _=e.attributes[r.SpanAttribute.GrpcService],x=_?p+" "+_:e.name;return{id:o,duration:a,name:x,target:_.toString(),data:_.toString()||x,url:_.toString()||x,dependencyTypeName:r.DependencyTypeName.Grpc,resultCode:String(e.status.code||0),success:0===e.status.code,properties:i(e.attributes)}}var w=e.name,E=e.links&&e.links.map((function(e){return{operation_Id:e.context.traceId,id:e.context.spanId}}));return{id:o,duration:a,name:w,target:s,data:s||w,url:s||w,dependencyTypeName:e.kind===n.SpanKind.INTERNAL?r.DependencyTypeName.InProc:c||e.name,resultCode:String(e.status.code||0),success:0===e.status.code,properties:t(t({},i(e.attributes)),{"_MS.links":E||void 0})}}})),Br=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=Pe(),n=k(),r=pn(),i=Fr(),o=O(),a=[];e.subscriber=function(e){var n=e.data,s=i.spanToTelemetryContract(n),c=n.spanContext(),l=new r;l.traceId=c.traceId,l.spanId=c.spanId,l.traceFlag=r.formatOpenTelemetryTraceFlags(c.traceFlags),l.parentId=n.parentSpanId?"|"+c.traceId+"."+n.parentSpanId+".":null,o.AsyncScopeManager.with(n,(function(){a.forEach((function(e){n.kind===t.SpanKind.SERVER?e.trackRequest(s):(n.kind===t.SpanKind.CLIENT||n.kind===t.SpanKind.INTERNAL)&&e.trackDependency(s)}))}))},e.enable=function(t,r){t?(0===a.length&&n.channel.subscribe("azure-coretracing",e.subscriber),a.push(r)):0===(a=a.filter((function(e){return e!=r}))).length&&n.channel.unsubscribe("azure-coretracing",e.subscriber)}})),Vr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){"ismaster"!==e.data.event.commandName&&n.forEach((function(t){var n=e.data.startedData&&e.data.startedData.databaseName||"Unknown database";t.trackDependency({target:n,data:e.data.event.commandName,name:e.data.event.commandName,duration:e.data.event.duration,success:e.data.succeeded,resultCode:e.data.succeeded?"0":"1",time:e.data.startedData.time,dependencyTypeName:"mongodb"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mongodb",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mongodb",e.subscriber)}})),Ur=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query||{},r=n.sql||"Unknown query",i=!e.data.err,o=(n._connection||{}).config||{},a=o.socketPath?o.socketPath:(o.host||"localhost")+":"+o.port;t.trackDependency({target:a,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"mysql"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("mysql",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("mysql",e.subscriber)}})),qr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){"info"!==e.data.commandObj.command&&t.trackDependency({target:e.data.address,name:e.data.commandObj.command,data:e.data.commandObj.command,duration:e.data.duration,success:!e.data.err,resultCode:e.data.err?"1":"0",time:e.data.time,dependencyTypeName:"redis"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("redis",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("redis",e.subscriber)}})),Hr=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.enable=e.subscriber=void 0;var t=k(),n=[];e.subscriber=function(e){n.forEach((function(t){var n=e.data.query,r=n.preparable&&n.preparable.text||n.plan||n.text||"unknown query",i=!e.data.error,o=e.data.database.host+":"+e.data.database.port;t.trackDependency({target:o,data:r,name:r,duration:e.data.duration,success:i,resultCode:i?"0":"1",time:e.data.time,dependencyTypeName:"postgres"})}))},e.enable=function(r,i){r?(0===n.length&&t.channel.subscribe("postgres",e.subscriber),n.push(i)):0===(n=n.filter((function(e){return e!=i}))).length&&t.channel.unsubscribe("postgres",e.subscriber)}})),Gr=_(((e,t)=>{"use strict";var r=e&&e.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r},i=n(8611),o=n(5692),a=P(),s=ln(),c=cn(),l=zr(),u=Tr(),p=un(),d=pn(),f=sn(),h=function(){function e(t){if(e.INSTANCE)throw new Error("Client request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,this._isEnabled&&!this._isInitialized&&this._initialize(),f.IsInitialized&&(Br().enable(!0,this._client),Vr().enable(e,this._client),Ur().enable(e,this._client),qr().enable(e,this._client),Hr().enable(e,this._client))},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=i.request,a=o.request,s=function(n,r){var i=!r[e.disableCollectionRequestOption]&&!n[e.alreadyAutoCollectedFlag];r.headers&&r.headers["user-agent"]&&-1!==r.headers["user-agent"].toString().indexOf("azsdk-js")&&(i=!1),n[e.alreadyAutoCollectedFlag]=!0,n&&r&&i&&(u.CorrelationContextManager.wrapEmitter(n),e.trackRequest(t._client,{options:r,request:n}))};i.request=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var a=n.call.apply(n,r([i,e],t));return s(a,e),a},o.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=a.call.apply(a,r([o,e],t));return s(i,e),i},i.get=function(e){for(var t,n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];var a=(t=i.request).call.apply(t,r([i,e],n));return a.end(),a},o.get=function(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=(t=o.request).call.apply(t,r([o,e],n));return a.end(),a}},e.trackRequest=function(t,n){if(n.options&&n.request&&t){var r,i,o=new l(n.options,n.request),f=u.CorrelationContextManager.getCurrentContext();if(f&&f.operation&&f.operation.traceparent&&d.isValidTraceId(f.operation.traceparent.traceId)?(f.operation.traceparent.updateSpanId(),r=f.operation.traceparent.getBackCompatRequestId()):p.w3cEnabled?(i=(m=new d).toString(),r=m.getBackCompatRequestId()):r=f&&f.operation&&f.operation.parentId+e.requestNumber+++".",s.canIncludeCorrelationHeader(t,o.getUrl())&&n.request.getHeader&&n.request.setHeader&&t.config&&t.config.correlationId){var h=n.request.getHeader(c.requestContextHeader);try{s.safeIncludeCorrelationHeader(t,n.request,h)}catch(e){a.warn("Request-Context header could not be set. Correlation of requests may be lost",e)}if(f&&f.operation)try{if(n.request.setHeader(c.requestIdHeader,r),t.config.ignoreLegacyHeaders||(n.request.setHeader(c.parentIdHeader,f.operation.id),n.request.setHeader(c.rootIdHeader,r)),i||f.operation.traceparent)n.request.setHeader(c.traceparentHeader,i||f.operation.traceparent.toString());else if(p.w3cEnabled){var m=(new d).toString();n.request.setHeader(c.traceparentHeader,m)}if(f.operation.tracestate){var v=f.operation.tracestate.toString();v&&n.request.setHeader(c.traceStateHeader,v)}var g=f.customProperties.serializeToHeader();g&&n.request.setHeader(c.correlationContextHeader,g)}catch(e){a.warn("Correlation headers could not be set. Correlation of requests may be lost.",e)}}n.request.on&&(n.request.on("response",(function(e){o.onResponse(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects["http.ClientResponse"]=e,t.trackDependency(i)})),n.request.on("error",(function(e){o.onError(e);var i=o.getDependencyTelemetry(n,r);i.contextObjects=i.contextObjects||{},i.contextObjects["http.RequestOptions"]=n.options,i.contextObjects["http.ClientRequest"]=n.request,i.contextObjects.Error=e,t.trackDependency(i)})),n.request.on("abort",(function(){o.onError(new Error);var e=o.getDependencyTelemetry(n,r);e.contextObjects=e.contextObjects||{},e.contextObjects["http.RequestOptions"]=n.options,e.contextObjects["http.ClientRequest"]=n.request,t.trackDependency(e)})))}else a.info("AutoCollectHttpDependencies.trackRequest was called with invalid parameters: ",!n.options,!n.request,!t)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.disableCollectionRequestOption="disableAppInsightsAutoCollection",e.requestNumber=1,e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=h})),$r=_(((e,t)=>{"use strict";var r=n(857),i=Rr(),o=ln(),a=jr(),s=Gr(),c=function(){function e(t){this._collectionInterval=9e5,this._vmData={},this._azInst_vmId="",this._azInst_subscriptionId="",this._azInst_osType="",e.INSTANCE||(e.INSTANCE=this),this._isInitialized=!1,this._client=t}return e.prototype.enable=function(e,t){var n=this;this._isEnabled=e,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),e?this._handle||(this._handle=setInterval((function(){return n.trackHeartBeat(t,(function(){}))}),this._collectionInterval),this._handle.unref()):this._handle&&(clearInterval(this._handle),this._handle=null)},e.prototype.isInitialized=function(){return this._isInitialized},e.isEnabled=function(){return e.INSTANCE&&e.INSTANCE._isEnabled},e.prototype.trackHeartBeat=function(e,t){var n=this,o=!1,s={},c=a.sdkVersion;s.sdk=c,s.osType=r.type(),process.env.WEBSITE_SITE_NAME?(s.appSrv_SiteName=process.env.WEBSITE_SITE_NAME||"",s.appSrv_wsStamp=process.env.WEBSITE_HOME_STAMPNAME||"",s.appSrv_wsHost=process.env.WEBSITE_HOSTNAME||""):process.env.FUNCTIONS_WORKER_RUNTIME?s.azfunction_appId=process.env.WEBSITE_HOSTNAME:e&&(void 0===this._isVM?(o=!0,this._getAzureComputeMetadata(e,(function(){n._isVM&&Object.keys(n._vmData).length>0&&(s.azInst_vmId=n._vmData.vmId||"",s.azInst_subscriptionId=n._vmData.subscriptionId||"",s.azInst_osType=n._vmData.osType||"",n._azInst_vmId=n._vmData.vmId||"",n._azInst_subscriptionId=n._vmData.subscriptionId||"",n._azInst_osType=n._vmData.osType||""),n._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t()}))):this._isVM&&(s.azInst_vmId=this._azInst_vmId,s.azInst_subscriptionId=this._azInst_subscriptionId,s.azInst_osType=this._azInst_osType)),o||(this._client.trackMetric({name:i.HeartBeatMetricName,value:0,properties:s}),t())},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1},e.prototype._getAzureComputeMetadata=function(e,t){var n,r=this,i=((n={method:"GET"})[s.disableCollectionRequestOption]=!0,n.headers={Metadata:"True"},n),a=o.makeRequest(e,"http://169.254.169.254/metadata/instance/compute?api-version=2017-12-01&format=json",i,(function(e){if(200===e.statusCode){r._isVM=!0;var n="";e.on("data",(function(e){n+=e})),e.on("end",(function(){r._vmData=r._isJSON(n)?JSON.parse(n):{},t()}))}else t()}));a&&(a.on("error",(function(e){e&&e.message&&e.message.indexOf("ENETUNREACH")>-1&&(r._isVM=!1),t()})),a.end())},e.prototype._isJSON=function(e){try{return JSON.parse(e)&&!!e}catch{return!1}},e}();t.exports=c})),Wr=_(((e,t)=>{"use strict";var r=n(8611),i=n(5692),o=P(),a=ln(),s=cn(),c=ir(),l=Tr(),u=Dr(),p=function(){function e(t){if(e.INSTANCE)throw new Error("Server request tracking should be configured from the applicationInsights object");e.INSTANCE=this,this._client=t}return e.prototype.enable=function(e){this._isEnabled=e,(this._isAutoCorrelating||this._isEnabled||u.isEnabled())&&!this._isInitialized&&(this.useAutoCorrelation(this._isAutoCorrelating),this._initialize())},e.prototype.useAutoCorrelation=function(e,t){e&&!this._isAutoCorrelating?l.CorrelationContextManager.enable(t):!e&&this._isAutoCorrelating&&l.CorrelationContextManager.disable(),this._isAutoCorrelating=e},e.prototype.isInitialized=function(){return this._isInitialized},e.prototype.isAutoCorrelating=function(){return this._isAutoCorrelating},e.prototype._generateCorrelationContext=function(e){if(this._isAutoCorrelating)return l.CorrelationContextManager.generateContextObject(e.getOperationId(this._client.context.tags),e.getRequestId(),e.getOperationName(this._client.context.tags),e.getCorrelationContextHeader(),e.getTraceparent(),e.getTracestate())},e.prototype._initialize=function(){var t=this;this._isInitialized=!0;var n=function(n){if(n){if("function"!=typeof n)throw new Error("onRequest handler must be a function");return function(r,i){l.CorrelationContextManager.wrapEmitter(r),l.CorrelationContextManager.wrapEmitter(i);var o=r&&!r[e.alreadyAutoCollectedFlag];if(r&&o){var a=new c(r),s=t._generateCorrelationContext(a);l.CorrelationContextManager.runWithContext(s,(function(){t._isEnabled&&(r[e.alreadyAutoCollectedFlag]=!0,e.trackRequest(t._client,{request:r,response:i},a)),"function"==typeof n&&n(r,i)}))}else"function"==typeof n&&n(r,i)}}},o=function(e){var t=e.addListener.bind(e);e.addListener=function(e,r){switch(e){case"request":case"checkContinue":return t(e,n(r));default:return t(e,r)}},e.on=e.addListener},a=r.createServer;r.createServer=function(e,t){if(t&&"function"==typeof t){var r=a(e,n(t));return o(r),r}return r=a(n(e)),o(r),r};var s=i.createServer;i.createServer=function(e,t){var r=s(e,n(t));return o(r),r}},e.trackRequestSync=function(t,n){if(n.request&&n.response&&t){e.addResponseCorrelationIdHeader(t,n.response);var r=l.CorrelationContextManager.getCurrentContext(),i=new c(n.request,r&&r.operation.parentId);r&&(r.operation.id=i.getOperationId(t.context.tags)||r.operation.id,r.operation.name=i.getOperationName(t.context.tags)||r.operation.name,r.operation.parentId=i.getRequestId()||r.operation.parentId,r.customProperties.addHeaderData(i.getCorrelationContextHeader())),e.endRequest(t,i,n,n.duration,n.error)}else o.info("AutoCollectHttpRequests.trackRequestSync was called with invalid parameters: ",!n.request,!n.response,!t)},e.trackRequest=function(t,n,r){if(n.request&&n.response&&t){var i=l.CorrelationContextManager.getCurrentContext(),s=r||new c(n.request,i&&i.operation.parentId);a.canIncludeCorrelationHeader(t,s.getUrl())&&e.addResponseCorrelationIdHeader(t,n.response),i&&!r&&(i.operation.id=s.getOperationId(t.context.tags)||i.operation.id,i.operation.name=s.getOperationName(t.context.tags)||i.operation.name,i.operation.parentId=s.getOperationParentId(t.context.tags)||i.operation.parentId,i.customProperties.addHeaderData(s.getCorrelationContextHeader())),n.response.once&&n.response.once("finish",(function(){e.endRequest(t,s,n,null,null)})),n.request.on&&n.request.on("error",(function(r){e.endRequest(t,s,n,null,r)})),n.request.on&&n.request.on("aborted",(function(){e.endRequest(t,s,n,null,"The request has been aborted and the network socket has closed.")}))}else o.info("AutoCollectHttpRequests.trackRequest was called with invalid parameters: ",!n.request,!n.response,!t)},e.addResponseCorrelationIdHeader=function(e,t){if(e.config&&e.config.correlationId&&t.getHeader&&t.setHeader&&!t.headersSent){var n=t.getHeader(s.requestContextHeader);a.safeIncludeCorrelationHeader(e,t,n)}},e.endRequest=function(e,t,n,r,i){i?t.onError(i,r):t.onResponse(n.response,r);var o=t.getRequestTelemetry(n);if(o.tagOverrides=t.getRequestTags(e.context.tags),n.tagOverrides)for(var a in n.tagOverrides)o.tagOverrides[a]=n.tagOverrides[a];var s=t.getLegacyRootId();s&&(o.properties.ai_legacyRootId=s),o.contextObjects=o.contextObjects||{},o.contextObjects["http.ServerRequest"]=n.request,o.contextObjects["http.ServerResponse"]=n.response,e.trackRequest(o)},e.prototype.dispose=function(){e.INSTANCE=null,this.enable(!1),this._isInitialized=!1,l.CorrelationContextManager.disable(),this._isAutoCorrelating=!1},e.alreadyAutoCollectedFlag="_appInsightsAutoCollected",e}();t.exports=p})),Qr=_(((e,t)=>{"use strict";var r=e&&e.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)},i=n(857),o=nr(),a=Rr(),s=ln(),c=P(),l=s.w3cTraceId(),u=function(){function e(){}return e.createQuickPulseEnvelope=function(e,t,n,r){var o=i&&"function"==typeof i.hostname&&i.hostname()||"Unknown",a=r.tags&&r.keys&&r.keys.cloudRoleInstance&&r.tags[r.keys.cloudRoleInstance]||o,s=r.tags&&r.keys&&r.keys.cloudRole&&r.tags[r.keys.cloudRole]||null;return{Documents:t.length>0?t:null,InstrumentationKey:n.instrumentationKey||"",Metrics:e.length>0?e:null,InvariantVersion:1,Timestamp:"/Date("+Date.now()+")/",Version:r.tags[r.keys.internalSdkVersion],StreamId:l,MachineName:o,Instance:a,RoleName:s}},e.createQuickPulseMetric=function(e){return{Name:e.name,Value:e.value,Weight:e.count||1}},e.telemetryEnvelopeToQuickPulseDocument=function(t){switch(t.data.baseType){case o.TelemetryTypeString.Event:return e.createQuickPulseEventDocument(t);case o.TelemetryTypeString.Exception:return e.createQuickPulseExceptionDocument(t);case o.TelemetryTypeString.Trace:return e.createQuickPulseTraceDocument(t);case o.TelemetryTypeString.Dependency:return e.createQuickPulseDependencyDocument(t);case o.TelemetryTypeString.Request:return e.createQuickPulseRequestDocument(t)}return null},e.createQuickPulseEventDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.name;return r(r({},n),{Name:i})},e.createQuickPulseTraceDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.severityLevel||0;return r(r({},n),{Message:t.data.baseData.message,SeverityLevel:o.SeverityLevel[i]})},e.createQuickPulseExceptionDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData.exceptions,o="",a="",s="";return i&&i.length>0&&(i[0].parsedStack&&i[0].parsedStack.length>0?i[0].parsedStack.forEach((function(e){o+=e.assembly+"\n"})):i[0].stack&&i[0].stack.length>0&&(o=i[0].stack),a=i[0].message,s=i[0].typeName),r(r({},n),{Exception:o,ExceptionMessage:a,ExceptionType:s})},e.createQuickPulseRequestDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Success:i.success,Duration:i.duration,ResponseCode:i.responseCode,OperationName:i.name})},e.createQuickPulseDependencyDocument=function(t){var n=e.createQuickPulseDocument(t),i=t.data.baseData;return r(r({},n),{Name:i.name,Target:i.target,Success:i.success,Duration:i.duration,ResultCode:i.resultCode,CommandName:i.data,OperationName:n.OperationId,DependencyTypeName:i.type})},e.createQuickPulseDocument=function(t){var n,r;return t.data.baseType?(r=a.TelemetryTypeStringToQuickPulseType[t.data.baseType],n=a.TelemetryTypeStringToQuickPulseDocumentType[t.data.baseType]):c.warn("Document type invalid; not sending live metric document",t.data.baseType),{DocumentType:n,__type:r,OperationId:t.tags[e.keys.operationId],Version:"1.0",Properties:e.aggregateProperties(t)}},e.aggregateProperties=function(e){var t=[],n=e.data.baseData.measurements||{};for(var r in n)if(n.hasOwnProperty(r)){var i={key:r,value:n[r]};t.push(i)}var o=e.data.baseData.properties||{};for(var r in o)o.hasOwnProperty(r)&&(i={key:r,value:o[r]},t.push(i));return t},e.keys=new o.ContextTagKeys,e}();t.exports=u})),Kr=_(((e,t)=>{"use strict";t.exports={getTransmissionTime:function(){return 1e4*(Date.now()+621355968e5)}}})),Xr=_(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(5692),a=Gr(),s=P(),c=Kr(),l=ln(),u="x-ms-qps-service-polling-interval-hint",p="x-ms-qps-service-endpoint-redirect",d=function(){function e(e){this._config=e,this._consecutiveErrors=0}return e.prototype.ping=function(e,t,n){var r=[{name:"x-ms-qps-stream-id",value:e.StreamId},{name:"x-ms-qps-machine-name",value:e.MachineName},{name:"x-ms-qps-role-name",value:e.RoleName},{name:"x-ms-qps-instance-name",value:e.Instance},{name:"x-ms-qps-invariant-version",value:e.InvariantVersion.toString()}];this._submitData(e,t,n,"ping",r)},e.prototype.post=function(e,t,n){return r(this,void 0,void 0,(function(){return i(this,(function(r){switch(r.label){case 0:return[4,this._submitData([e],t,n,"post")];case 1:return r.sent(),[2]}}))}))},e.prototype._submitData=function(e,t,n,s,d){return r(this,void 0,void 0,(function(){var r,f,h,m,v,g=this;return i(this,(function(i){return r=JSON.stringify(e),(m={})[a.disableCollectionRequestOption]=!0,m.host=t&&t.length>0?t:this._config.quickPulseHost,m.method="POST",m.path="/QuickPulseService.svc/"+s+"?ikey="+this._config.instrumentationKey,m.headers=((v={Expect:"100-continue"})["x-ms-qps-transmission-time"]=c.getTransmissionTime(),v["Content-Type"]="application/json",v["Content-Length"]=Buffer.byteLength(r),v),f=m,d&&d.length>0&&d.forEach((function(e){return f.headers[e.name]=e.value})),this._config.httpsAgent?f.agent=this._config.httpsAgent:f.agent=l.tlsRestrictedAgent,(h=o.request(f,(function(e){if(200==e.statusCode){var t="true"===e.headers["x-ms-qps-subscribed"],r=e.headers[p]?e.headers[p].toString():null,i=e.headers[u]?parseInt(e.headers[u].toString()):null;g._consecutiveErrors=0,n(t,e,r,i)}else g._onError("StatusCode:"+e.statusCode+" StatusMessage:"+e.statusMessage),n()}))).on("error",(function(e){g._onError(e),n()})),h.write(r),h.end(),[2]}))}))},e.prototype._onError=function(t){this._consecutiveErrors++;var n="Transient error connecting to the Live Metrics endpoint. This packet will not appear in your Live Metrics Stream. Error:";this._consecutiveErrors%e.MAX_QPS_FAILURES_BEFORE_WARN==0?(n="Live Metrics endpoint could not be reached "+this._consecutiveErrors+" consecutive times. Most recent error:",s.warn(e.TAG,n,t)):s.info(e.TAG,n,t)},e.TAG="QuickPulseSender",e.MAX_QPS_FAILURES_BEFORE_WARN=25,e}();t.exports=d})),Yr=_(((e,t)=>{"use strict";var n=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},r=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},i=P(),o=Qr(),a=Xr(),s=Rr(),c=jr(),l=function(){function e(e,t){this._isCollectingData=!1,this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0,this._metrics={},this._documents=[],this._collectors=[],this._redirectedHost=null,this._pollingIntervalHint=-1,this.config=e,this.context=t||new c,this._sender=new a(this.config),this._isEnabled=!1}return e.prototype.addCollector=function(e){this._collectors.push(e)},e.prototype.trackMetric=function(e){this._addMetric(e)},e.prototype.addDocument=function(e){var t=o.telemetryEnvelopeToQuickPulseDocument(e);t&&this._documents.push(t)},e.prototype.enable=function(e){e&&!this._isEnabled?(this._isEnabled=!0,this._goQuickPulse()):!e&&this._isEnabled&&(this._isEnabled=!1,clearTimeout(this._handle),this._handle=void 0)},e.prototype.enableCollectors=function(e){this._collectors.forEach((function(t){t.enable(e)}))},e.prototype._addMetric=function(e){var t=e.value,n=e.count||1,r=s.PerformanceToQuickPulseCounter[e.name];r&&(this._metrics[r]?(this._metrics[r].Value=(this._metrics[r].Value*this._metrics[r].Weight+t*n)/(this._metrics[r].Weight+n),this._metrics[r].Weight+=n):(this._metrics[r]=o.createQuickPulseMetric(e),this._metrics[r].Name=r,this._metrics[r].Weight=1))},e.prototype._resetQuickPulseBuffer=function(){delete this._metrics,this._metrics={},this._documents.length=0},e.prototype._goQuickPulse=function(){return n(this,void 0,void 0,(function(){var t,n,i,a,s=this;return r(this,(function(r){switch(r.label){case 0:return t=Object.keys(this._metrics).map((function(e){return s._metrics[e]})),n=o.createQuickPulseEnvelope(t,this._documents.slice(),this.config,this.context),this._resetQuickPulseBuffer(),this._isCollectingData?[4,this._post(n)]:[3,2];case 1:return r.sent(),[3,3];case 2:this._ping(n),r.label=3;case 3:return i=this._pollingIntervalHint>0?this._pollingIntervalHint:e.PING_INTERVAL,a=this._isCollectingData?e.POST_INTERVAL:i,this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_POST_WAIT_TIME&&!this._lastSendSucceeded?(this._isCollectingData=!1,a=e.FALLBACK_INTERVAL):!this._isCollectingData&&Date.now()-this._lastSuccessTime>=e.MAX_PING_WAIT_TIME&&!this._lastSendSucceeded&&(a=e.FALLBACK_INTERVAL),this._lastSendSucceeded=null,this._handle=setTimeout(this._goQuickPulse.bind(this),a),this._handle.unref(),[2]}}))}))},e.prototype._ping=function(e){this._sender.ping(e,this._redirectedHost,this._quickPulseDone.bind(this))},e.prototype._post=function(e){return n(this,void 0,void 0,(function(){return r(this,(function(t){switch(t.label){case 0:return[4,this._sender.post(e,this._redirectedHost,this._quickPulseDone.bind(this))];case 1:return t.sent(),[2]}}))}))},e.prototype._quickPulseDone=function(e,t,n,r){null!=e?(this._isCollectingData!==e&&(i.info("Live Metrics sending data",e),this.enableCollectors(e)),this._isCollectingData=e,n&&n.length>0&&(this._redirectedHost=n,i.info("Redirecting endpoint to: ",n)),r&&r>0&&(this._pollingIntervalHint=r),t&&t.statusCode<300&&t.statusCode>=200?(this._lastSuccessTime=Date.now(),this._lastSendSucceeded=!0):this._lastSendSucceeded=!1):this._lastSendSucceeded=!1},e.MAX_POST_WAIT_TIME=2e4,e.MAX_PING_WAIT_TIME=6e4,e.FALLBACK_INTERVAL=6e4,e.PING_INTERVAL=5e3,e.POST_INTERVAL=1e3,e}();t.exports=l})),Jr=_(((e,t)=>{"use strict";var n=Rr(),r=function(){function e(){}return e.parse=function(t){if(!t)return{};var r=t.split(e._FIELDS_SEPARATOR).reduce((function(t,n){var r=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===r.length){var i=r[0].toLowerCase(),o=r[1];t[i]=o}return t}),{});if(Object.keys(r).length>0){if(r.endpointsuffix){var i=r.location?r.location+".":"";r.ingestionendpoint=r.ingestionendpoint||"https://"+i+"dc."+r.endpointsuffix,r.liveendpoint=r.liveendpoint||"https://"+i+"live."+r.endpointsuffix}r.ingestionendpoint=r.ingestionendpoint||n.DEFAULT_BREEZE_ENDPOINT,r.liveendpoint=r.liveendpoint||n.DEFAULT_LIVEMETRICS_ENDPOINT}return r},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="=",e}();t.exports=r})),Zr=_(((e,t)=>{"use strict";var r=un(),i=Jr(),o=(P(),Rr()),a=n(7016),s=function(){function e(t){var n=this;this.endpointBase=o.DEFAULT_BREEZE_ENDPOINT;var r=process.env[e.ENV_connectionString],s=i.parse(t),c=i.parse(r),l=!s.instrumentationkey&&Object.keys(s).length>0?null:t;this.instrumentationKey=s.instrumentationkey||l||c.instrumentationkey||e._getInstrumentationKey(),e._validateInstrumentationKey(this.instrumentationKey),this.endpointUrl=(s.ingestionendpoint||c.ingestionendpoint||this.endpointBase)+"/v2.1/track",this.maxBatchSize=250,this.maxBatchIntervalMs=15e3,this.disableAppInsights=!1,this.samplingPercentage=100,this.correlationIdRetryIntervalMs=3e4,this.correlationHeaderExcludedDomains=["*.core.windows.net","*.core.chinacloudapi.cn","*.core.cloudapi.de","*.core.usgovcloudapi.net","*.core.microsoft.scloud","*.core.eaglex.ic.gov"],this.setCorrelationId=function(e){return n.correlationId=e},this.proxyHttpUrl=process.env[e.ENV_http_proxy]||void 0,this.proxyHttpsUrl=process.env[e.ENV_https_proxy]||void 0,this.httpAgent=void 0,this.httpsAgent=void 0,this.profileQueryEndpoint=s.ingestionendpoint||c.ingestionendpoint||process.env[e.ENV_profileQueryEndpoint]||this.endpointBase,this._quickPulseHost=s.liveendpoint||c.liveendpoint||process.env[e.ENV_quickPulseHost]||o.DEFAULT_LIVEMETRICS_HOST,this._quickPulseHost.match(/^https?:\/\//)&&(this._quickPulseHost=a.parse(this._quickPulseHost).host)}return Object.defineProperty(e.prototype,"profileQueryEndpoint",{get:function(){return this._profileQueryEndpoint},set:function(e){r.cancelCorrelationIdQuery(this,this.setCorrelationId),this._profileQueryEndpoint=e,this.correlationId=r.correlationIdPrefix,r.queryCorrelationId(this,this.setCorrelationId)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"quickPulseHost",{get:function(){return this._quickPulseHost},set:function(e){this._quickPulseHost=e},enumerable:!1,configurable:!0}),e._getInstrumentationKey=function(){var t=process.env[e.ENV_iKey]||process.env[e.ENV_azurePrefix+e.ENV_iKey]||process.env[e.legacy_ENV_iKey]||process.env[e.ENV_azurePrefix+e.legacy_ENV_iKey];if(!t||""==t)throw new Error("Instrumentation key not found, pass the key in the config to this method or set the key in the environment variable APPINSIGHTS_INSTRUMENTATIONKEY before starting the server");return t},e._validateInstrumentationKey=function(e){return new RegExp("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$").test(e)},e.ENV_azurePrefix="APPSETTING_",e.ENV_iKey="APPINSIGHTS_INSTRUMENTATIONKEY",e.legacy_ENV_iKey="APPINSIGHTS_INSTRUMENTATION_KEY",e.ENV_profileQueryEndpoint="APPINSIGHTS_PROFILE_QUERY_ENDPOINT",e.ENV_quickPulseHost="APPINSIGHTS_QUICKPULSE_HOST",e.ENV_connectionString="APPLICATIONINSIGHTS_CONNECTION_STRING",e.ENV_nativeMetricsDisablers="APPLICATION_INSIGHTS_DISABLE_EXTENDED_METRIC",e.ENV_nativeMetricsDisableAll="APPLICATION_INSIGHTS_DISABLE_ALL_EXTENDED_METRICS",e.ENV_http_proxy="http_proxy",e.ENV_https_proxy="https_proxy",e}();t.exports=s})),ei=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.AutoCollectNativePerformance=void 0;var r=Zr(),i=jr(),o=P(),a=function(){function e(t){this._disabledMetrics={},e.INSTANCE&&e.INSTANCE.dispose(),e.INSTANCE=this,this._client=t}return e.isNodeVersionCompatible=function(){var e=process.versions.node.split(".");return parseInt(e[0])>=6},e.prototype.enable=function(t,r,i){var a=this;if(void 0===r&&(r={}),void 0===i&&(i=6e4),e.isNodeVersionCompatible()){if(null==e._metricsAvailable&&t&&!this._isInitialized)try{var s=n(4597);e._emitter=new s,e._metricsAvailable=!0,o.info("Native metrics module successfully loaded!")}catch{return void(e._metricsAvailable=!1)}this._isEnabled=t,this._disabledMetrics=r,this._isEnabled&&!this._isInitialized&&(this._isInitialized=!0),this._isEnabled&&e._emitter?(e._emitter.enable(!0,i),this._handle||(this._handle=setInterval((function(){return a._trackNativeMetrics()}),i),this._handle.unref())):e._emitter&&(e._emitter.enable(!1),this._handle&&(clearInterval(this._handle),this._handle=void 0))}},e.prototype.dispose=function(){this.enable(!1)},e.parseEnabled=function(e){var n=process.env[r.ENV_nativeMetricsDisableAll],i=process.env[r.ENV_nativeMetricsDisablers];if(n)return{isEnabled:!1,disabledMetrics:{}};if(i){var o=i.split(","),a={};if(o.length>0)for(var s=0,c=o;s<c.length;s++)a[c[s]]=!0;return"object"==typeof e?{isEnabled:!0,disabledMetrics:t(t({},e),a)}:{isEnabled:e,disabledMetrics:a}}return"boolean"==typeof e?{isEnabled:e,disabledMetrics:{}}:{isEnabled:!0,disabledMetrics:e}},e.prototype._trackNativeMetrics=function(){var e=!0;"object"!=typeof this._isEnabled&&(e=this._isEnabled),e&&(this._trackGarbageCollection(),this._trackEventLoop(),this._trackHeapUsage())},e.prototype._trackGarbageCollection=function(){var t;if(!this._disabledMetrics.gc){var n=e._emitter.getGCData();for(var r in n){var o=n[r].metrics,a=r+" Garbage Collection Duration",s=Math.sqrt(o.sumSquares/o.count-Math.pow(o.total/o.count,2))||0;this._client.trackMetric({name:a,value:o.total,count:o.count,max:o.max,min:o.min,stdDev:s,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackEventLoop=function(){var t;if(!this._disabledMetrics.loop){var n=e._emitter.getLoopData().loopUsage;if(0!=n.count){var r=Math.sqrt(n.sumSquares/n.count-Math.pow(n.total/n.count,2))||0;this._client.trackMetric({name:"Event Loop CPU Time",value:n.total,count:n.count,min:n.min,max:n.max,stdDev:r,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)})}}},e.prototype._trackHeapUsage=function(){var e,t,n;if(!this._disabledMetrics.heap){var r=process.memoryUsage(),o=r.heapUsed,a=r.heapTotal,s=r.rss;this._client.trackMetric({name:"Memory Usage (Heap)",value:o,count:1,tagOverrides:(e={},e[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,e)}),this._client.trackMetric({name:"Memory Total (Heap)",value:a,count:1,tagOverrides:(t={},t[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,t)}),this._client.trackMetric({name:"Memory Usage (Non-Heap)",value:s-a,count:1,tagOverrides:(n={},n[this._client.context.keys.internalSdkVersion]="node-nativeperf:"+i.sdkVersion,n)})}},e}();e.AutoCollectNativePerformance=a})),ti=_(((e,t)=>{"use strict";var n=P(),r=function(){function e(e,t,n,r){this._buffer=[],this._lastSend=0,this._isDisabled=e,this._getBatchSize=t,this._getBatchIntervalMs=n,this._sender=r}return e.prototype.setUseDiskRetryCaching=function(e,t,n){this._sender.setDiskRetryMode(e,t,n)},e.prototype.send=function(e){var t=this;if(!this._isDisabled()){if(!e)return void n.warn("Cannot send null/undefined telemetry");if(this._buffer.push(e),this._buffer.length>=this._getBatchSize())return void this.triggerSend(!1);!this._timeoutHandle&&this._buffer.length>0&&(this._timeoutHandle=setTimeout((function(){t._timeoutHandle=null,t.triggerSend(!1)}),this._getBatchIntervalMs()))}},e.prototype.triggerSend=function(e,t){var n=this._buffer.length<1;n||(e?(this._sender.saveOnCrash(this._buffer),"function"==typeof t&&t("data saved on crash")):this._sender.send(this._buffer,t)),this._lastSend=+new Date,this._buffer=[],clearTimeout(this._timeoutHandle),this._timeoutHandle=null,n&&"function"==typeof t&&t("no data to send")},e}();t.exports=r})),ni=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.azureRoleEnvironmentTelemetryProcessor=void 0,e.azureRoleEnvironmentTelemetryProcessor=function(e,t){process.env.WEBSITE_SITE_NAME&&(e.tags[t.keys.cloudRole]=process.env.WEBSITE_SITE_NAME)}})),ri=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSamplingHashCode=e.samplingTelemetryProcessor=void 0;var t=nr();function n(e){var t=2147483647,n=5381;if(!e)return 0;for(;e.length<8;)e+=e;for(var r=0;r<e.length;r++)n=((n<<5)+n|0)+e.charCodeAt(r)|0;return(n=n<=-2147483648?t:Math.abs(n))/t*100}e.samplingTelemetryProcessor=function(e,r){var i=e.sampleRate;return!!(null==i||i>=100||e.data&&t.TelemetryType.Metric===t.baseTypeToTelemetryType(e.data.baseType))||(r.correlationContext&&r.correlationContext.operation?n(r.correlationContext.operation.id)<i:100*Math.random()<i)},e.getSamplingHashCode=n})),ii=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.performanceMetricsTelemetryProcessor=void 0;var t=Dr(),n=nr();e.performanceMetricsTelemetryProcessor=function(e,r){switch(r&&r.addDocument(e),e.data.baseType){case n.TelemetryTypeString.Exception:t.countException();break;case n.TelemetryTypeString.Request:var i=e.data.baseData;t.countRequest(i.duration,i.success);break;case n.TelemetryTypeString.Dependency:var o=e.data.baseData;t.countDependency(o.duration,o.success)}return!0}})),oi=_((e=>{"use strict";var t=e&&e.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.preAggregatedMetricsTelemetryProcessor=void 0;var n=nr(),r=Mr(),i=nr();e.preAggregatedMetricsTelemetryProcessor=function(e,o){if(r.isEnabled())switch(e.data.baseType){case i.TelemetryTypeString.Exception:var a=e.data.baseData;a.properties=t(t({},a.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Exceptions', Ver:'1.1')"});var s={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole]};r.countException(s);break;case i.TelemetryTypeString.Trace:var c=e.data.baseData;c.properties=t(t({},c.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Traces', Ver:'1.1')"});var l={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],traceSeverityLevel:n.SeverityLevel[c.severity]};r.countTrace(l);break;case i.TelemetryTypeString.Request:var u=e.data.baseData;u.properties=t(t({},u.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Requests', Ver:'1.1')"});var p={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],requestSuccess:u.success,requestResultCode:u.responseCode};r.countRequest(u.duration,p);break;case i.TelemetryTypeString.Dependency:var d=e.data.baseData;d.properties=t(t({},d.properties),{"_MS.ProcessedByMetricExtractors":"(Name:'Dependencies', Ver:'1.1')"});var f={cloudRoleInstance:e.tags[o.keys.cloudRoleInstance],cloudRoleName:e.tags[o.keys.cloudRole],operationSynthetic:e.tags[o.keys.operationSyntheticSource],dependencySuccess:d.success,dependencyType:d.type,dependencyTarget:d.target,dependencyResultCode:d.resultCode};r.countDependency(d.duration,f)}return!0}})),ai=_((e=>{"use strict";var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"!==r&&!Object.prototype.hasOwnProperty.call(n,r)&&t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(ni(),e),n(ri(),e),n(ii(),e),n(oi(),e)})),si=_(((e,t)=>{"use strict";var r=e&&e.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):function(e){return e instanceof n?e:new n((function(t){t(e)}))}(e.value).then(a,s)}c((r=r.apply(e,t||[])).next())}))},i=e&&e.__generator||function(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},o=n(9896),a=n(857),s=n(6928),c=n(3106),l=n(5317),u=P(),p=Gr(),d=ln(),f=function(){function e(t,n,r){if(this._redirectedHost=null,this._config=t,this._onSuccess=n,this._onError=r,this._enableDiskRetryMode=!1,this._resendInterval=e.WAIT_BETWEEN_RESEND,this._maxBytesOnDisk=e.MAX_BYTES_ON_DISK,this._numConsecutiveFailures=0,this._numConsecutiveRedirects=0,this._resendTimer=null,this._fileCleanupTimer=null,this._tempDir=s.join(a.tmpdir(),e.TEMPDIR_PREFIX+this._config.instrumentationKey),!e.OS_PROVIDES_FILE_PROTECTION)if(e.USE_ICACLS){try{e.OS_PROVIDES_FILE_PROTECTION=o.existsSync(e.ICACLS_PATH)}catch{}e.OS_PROVIDES_FILE_PROTECTION||u.warn(e.TAG,"Could not find ICACLS in expected location! This is necessary to use disk retry mode on Windows.")}else e.OS_PROVIDES_FILE_PROTECTION=!0}return e.prototype.setDiskRetryMode=function(t,n,r){var i=this;this._enableDiskRetryMode=e.OS_PROVIDES_FILE_PROTECTION&&t,"number"==typeof n&&n>=0&&(this._resendInterval=Math.floor(n)),"number"==typeof r&&r>=0&&(this._maxBytesOnDisk=Math.floor(r)),t&&!e.OS_PROVIDES_FILE_PROTECTION&&(this._enableDiskRetryMode=!1,u.warn(e.TAG,"Ignoring request to enable disk retry mode. Sufficient file protection capabilities were not detected.")),this._enableDiskRetryMode?this._fileCleanupTimer||(this._fileCleanupTimer=setTimeout((function(){i._fileCleanupTask()}),e.CLEANUP_TIMEOUT),this._fileCleanupTimer.unref()):this._fileCleanupTimer&&clearTimeout(this._fileCleanupTimer)},e.prototype.send=function(t,n){return r(this,void 0,void 0,(function(){var r,o,a,s,l=this;return i(this,(function(i){return t&&(r=this._redirectedHost||this._config.endpointUrl,o={method:"POST",withCredentials:!1,headers:{"Content-Type":"application/x-json-stream"}},a="",t.forEach((function(e){var t=l._stringify(e);"string"==typeof t&&(a+=t+"\n")})),a.length>0&&(a=a.substring(0,a.length-1)),s=Buffer.from?Buffer.from(a):new Buffer(a),c.gzip(s,(function(i,a){var c=a;i?(u.warn(i),c=s,o.headers["Content-Length"]=s.length.toString()):(o.headers["Content-Encoding"]="gzip",o.headers["Content-Length"]=a.length.toString()),u.info(e.TAG,o),o[p.disableCollectionRequestOption]=!0;var f=d.makeRequest(l._config,r,o,(function(r){r.setEncoding("utf-8");var i="";r.on("data",(function(e){i+=e})),r.on("end",(function(){if(l._numConsecutiveFailures=0,l._enableDiskRetryMode)if(200===r.statusCode)l._resendTimer||(l._resendTimer=setTimeout((function(){l._resendTimer=null,l._sendFirstFileOnDisk()}),l._resendInterval),l._resendTimer.unref());else if(l._isRetriable(r.statusCode))try{var o=JSON.parse(i),a=[];o.errors.forEach((function(e){l._isRetriable(e.statusCode)&&a.push(t[e.index])})),a.length>0&&l._storeToDisk(a)}catch{l._storeToDisk(t)}if(307===r.statusCode||308===r.statusCode)if(l._numConsecutiveRedirects++,l._numConsecutiveRedirects<10){var s=r.headers.location?r.headers.location.toString():null;s&&(l._redirectedHost=s,l.send(t,n))}else"function"==typeof n&&n("Error sending telemetry because of circular redirects.");else l._numConsecutiveRedirects=0,"function"==typeof n&&n(i),u.info(e.TAG,i),"function"==typeof l._onSuccess&&l._onSuccess(i)}))}));f.on("error",(function(r){if(l._numConsecutiveFailures++,!l._enableDiskRetryMode||l._numConsecutiveFailures>0&&l._numConsecutiveFailures%e.MAX_CONNECTION_FAILURES_BEFORE_WARN==0){var i="Ingestion endpoint could not be reached. This batch of telemetry items has been lost. Use Disk Retry Caching to enable resending of failed telemetry. Error:";l._enableDiskRetryMode&&(i="Ingestion endpoint could not be reached "+l._numConsecutiveFailures+" consecutive times. There may be resulting telemetry loss. Most recent error:"),u.warn(e.TAG,i,d.dumpObj(r))}else i="Transient failure to reach ingestion endpoint. This batch of telemetry items will be retried. Error:",u.info(e.TAG,i,d.dumpObj(r));l._onErrorHelper(r),"function"==typeof n&&(r&&n(d.dumpObj(r)),n("Error sending telemetry")),l._enableDiskRetryMode&&l._storeToDisk(t)})),f.write(c),f.end()}))),[2]}))}))},e.prototype.saveOnCrash=function(e){this._enableDiskRetryMode&&this._storeToDiskSync(this._stringify(e))},e.prototype._isRetriable=function(e){return 206===e||408===e||429===e||439===e||500===e||503===e},e.prototype._runICACLS=function(t,n){var r=l.spawn(e.ICACLS_PATH,t,{windowsHide:!0});r.on("error",(function(e){return n(e)})),r.on("close",(function(e,t){return n(0===e?null:new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+e+")"))}))},e.prototype._runICACLSSync=function(t){if(!l.spawnSync)throw new Error("Could not synchronously call ICACLS under current version of Node.js");var n=l.spawnSync(e.ICACLS_PATH,t,{windowsHide:!0});if(n.error)throw n.error;if(0!==n.status)throw new Error("Setting ACL restrictions did not succeed (ICACLS returned code "+n.status+")")},e.prototype._getACLIdentity=function(t){if(e.ACL_IDENTITY)return t(null,e.ACL_IDENTITY);var n=l.spawn(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]}),r="";n.stdout.on("data",(function(e){return r+=e})),n.on("error",(function(e){return t(e,null)})),n.on("close",(function(n,i){return e.ACL_IDENTITY=r&&r.trim(),t(0===n?null:new Error("Getting ACL identity did not succeed (PS returned code "+n+")"),e.ACL_IDENTITY)}))},e.prototype._getACLIdentitySync=function(){if(e.ACL_IDENTITY)return e.ACL_IDENTITY;if(l.spawnSync){var t=l.spawnSync(e.POWERSHELL_PATH,["-Command","[System.Security.Principal.WindowsIdentity]::GetCurrent().Name"],{windowsHide:!0,stdio:["ignore","pipe","pipe"]});if(t.error)throw t.error;if(0!==t.status)throw new Error("Getting ACL identity did not succeed (PS returned code "+t.status+")");return e.ACL_IDENTITY=t.stdout&&t.stdout.toString().trim(),e.ACL_IDENTITY}throw new Error("Could not synchronously get ACL identity under current version of Node.js")},e.prototype._getACLArguments=function(e,t){return[e,"/grant","*S-1-5-32-544:(OI)(CI)F","/grant",t+":(OI)(CI)F","/inheritance:r"]},e.prototype._applyACLRules=function(t,n){var r=this;return e.USE_ICACLS?void 0!==e.ACLED_DIRECTORIES[t]?n(e.ACLED_DIRECTORIES[t]?null:new Error("Setting ACL restrictions did not succeed (cached result)")):(e.ACLED_DIRECTORIES[t]=!1,void this._getACLIdentity((function(i,o){if(i)return e.ACLED_DIRECTORIES[t]=!1,n(i);r._runICACLS(r._getACLArguments(t,o),(function(r){return e.ACLED_DIRECTORIES[t]=!r,n(r)}))}))):n(null)},e.prototype._applyACLRulesSync=function(t){if(e.USE_ICACLS){if(void 0===e.ACLED_DIRECTORIES[t])return this._runICACLSSync(this._getACLArguments(t,this._getACLIdentitySync())),void(e.ACLED_DIRECTORIES[t]=!0);if(!e.ACLED_DIRECTORIES[t])throw new Error("Setting ACL restrictions did not succeed (cached result)")}},e.prototype._confirmDirExists=function(e,t){var n=this;o.lstat(e,(function(r,i){r&&"ENOENT"===r.code?o.mkdir(e,(function(r){r&&"EEXIST"!==r.code?t(r):n._applyACLRules(e,t)})):!r&&i.isDirectory()?n._applyACLRules(e,t):t(r||new Error("Path existed but was not a directory"))}))},e.prototype._getShallowDirectorySize=function(e,t){o.readdir(e,(function(n,r){if(n)return t(n,-1);var i=null,a=0,c=0;if(0!==r.length)for(var l=0;l<r.length;l++)o.stat(s.join(e,r[l]),(function(e,n){c++,e?i=e:n.isFile()&&(a+=n.size),c===r.length&&t(i,i?-1:a)}));else t(null,0)}))},e.prototype._getShallowDirectorySizeSync=function(e){for(var t=o.readdirSync(e),n=0,r=0;r<t.length;r++)n+=o.statSync(s.join(e,t[r])).size;return n},e.prototype._storeToDisk=function(t){var n=this;u.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),this._confirmDirExists(this._tempDir,(function(r){if(r)return u.warn(e.TAG,"Error while checking/creating directory: "+(r&&r.message)),void n._onErrorHelper(r);n._getShallowDirectorySize(n._tempDir,(function(r,i){if(r||i<0)return u.warn(e.TAG,"Error while checking directory size: "+(r&&r.message)),void n._onErrorHelper(r);if(i>n._maxBytesOnDisk)u.warn(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+i);else{var a=(new Date).getTime()+".ai.json",c=s.join(n._tempDir,a);u.info(e.TAG,"saving data to disk at: "+c),o.writeFile(c,n._stringify(t),{mode:384},(function(e){return n._onErrorHelper(e)}))}}))}))},e.prototype._storeToDiskSync=function(t){try{u.info(e.TAG,"Checking existence of data storage directory: "+this._tempDir),o.existsSync(this._tempDir)||o.mkdirSync(this._tempDir),this._applyACLRulesSync(this._tempDir);var n=this._getShallowDirectorySizeSync(this._tempDir);if(n>this._maxBytesOnDisk)return void u.info(e.TAG,"Not saving data due to max size limit being met. Directory size in bytes is: "+n);var r=(new Date).getTime()+".ai.json",i=s.join(this._tempDir,r);u.info(e.TAG,"saving data before crash to disk at: "+i),o.writeFileSync(i,t,{mode:384})}catch(t){u.warn(e.TAG,"Error while saving data to disk: "+(t&&t.message)),this._onErrorHelper(t)}},e.prototype._sendFirstFileOnDisk=function(){var e=this;o.exists(this._tempDir,(function(t){t&&o.readdir(e._tempDir,(function(t,n){if(t)e._onErrorHelper(t);else if((n=n.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0){var r=n[0],i=s.join(e._tempDir,r);o.readFile(i,(function(t,n){t?e._onErrorHelper(t):o.unlink(i,(function(t){if(t)e._onErrorHelper(t);else try{var r=JSON.parse(n.toString());e.send(r)}catch(e){u.warn("Failed to read persisted file",e)}}))}))}}))}))},e.prototype._onErrorHelper=function(e){"function"==typeof this._onError&&this._onError(e)},e.prototype._stringify=function(e){try{return JSON.stringify(e)}catch(t){u.warn("Failed to serialize payload",t,e)}},e.prototype._fileCleanupTask=function(){var t=this;o.exists(this._tempDir,(function(n){n&&o.readdir(t._tempDir,(function(n,r){n?t._onErrorHelper(n):(r=r.filter((function(e){return s.basename(e).indexOf(".ai.json")>-1}))).length>0&&r.forEach((function(n){var r=new Date(parseInt(n.split(".ai.json")[0]));if(new Date(+new Date-e.FILE_RETEMPTION_PERIOD)>r){var i=s.join(t._tempDir,n);o.unlink(i,(function(e){e&&t._onErrorHelper(e)}))}}))}))}))},e.TAG="Sender",e.ICACLS_PATH=process.env.systemdrive+"/windows/system32/icacls.exe",e.POWERSHELL_PATH=process.env.systemdrive+"/windows/system32/windowspowershell/v1.0/powershell.exe",e.ACLED_DIRECTORIES={},e.ACL_IDENTITY=null,e.WAIT_BETWEEN_RESEND=6e4,e.MAX_BYTES_ON_DISK=52428800,e.MAX_CONNECTION_FAILURES_BEFORE_WARN=5,e.CLEANUP_TIMEOUT=36e5,e.FILE_RETEMPTION_PERIOD=6048e5,e.TEMPDIR_PREFIX="appInsights-node",e.OS_PROVIDES_FILE_PROTECTION=!1,e.USE_ICACLS="Windows_NT"===a.type(),e}();t.exports=f})),ci=_(((e,t)=>{"use strict";var n=nr(),r=ln(),i=Tr(),o=function(){function e(){}return e.createEnvelope=function(t,i,o,a,s){var c=null;switch(i){case n.TelemetryType.Trace:c=e.createTraceData(t);break;case n.TelemetryType.Dependency:c=e.createDependencyData(t);break;case n.TelemetryType.Event:c=e.createEventData(t);break;case n.TelemetryType.Exception:c=e.createExceptionData(t);break;case n.TelemetryType.Request:c=e.createRequestData(t);break;case n.TelemetryType.Metric:c=e.createMetricData(t);break;case n.TelemetryType.Availability:c=e.createAvailabilityData(t);break;case n.TelemetryType.PageView:c=e.createPageViewData(t)}if(o&&n.domainSupportsProperties(c.baseData)){if(c&&c.baseData)if(c.baseData.properties)for(var l in o)c.baseData.properties[l]||(c.baseData.properties[l]=o[l]);else c.baseData.properties=o;c.baseData.properties=r.validateStringMap(c.baseData.properties)}var u=s&&s.instrumentationKey||"",p=new n.Envelope;return p.data=c,p.iKey=u,p.name="Microsoft.ApplicationInsights."+u.replace(/-/g,"")+"."+c.baseType.substr(0,c.baseType.length-4),p.tags=this.getTags(a,t.tagOverrides),p.time=(new Date).toISOString(),p.ver=1,p.sampleRate=s?s.samplingPercentage:100,i===n.TelemetryType.Metric&&(p.sampleRate=100),p},e.createTraceData=function(e){var t=new n.MessageData;t.message=e.message,t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Information:t.severityLevel=e.severity;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Trace),r.baseData=t,r},e.createDependencyData=function(e){var t=new n.RemoteDependencyData;"string"==typeof e.name&&(t.name=e.name.length>1024?e.name.slice(0,1021)+"...":e.name),t.data=e.data,t.target=e.target,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.type=e.dependencyTypeName,t.properties=e.properties,t.resultCode=e.resultCode?e.resultCode+"":"",e.id?t.id=e.id:t.id=r.w3cTraceId();var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Dependency),i.baseData=t,i},e.createEventData=function(e){var t=new n.EventData;t.name=e.name,t.properties=e.properties,t.measurements=e.measurements;var r=new n.Data;return r.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Event),r.baseData=t,r},e.createExceptionData=function(e){var t=new n.ExceptionData;t.properties=e.properties,isNaN(e.severity)?t.severityLevel=n.SeverityLevel.Error:t.severityLevel=e.severity,t.measurements=e.measurements,t.exceptions=[];var i=e.exception.stack,o=new n.ExceptionDetails;o.message=e.exception.message,o.typeName=e.exception.name,o.parsedStack=this.parseStack(i),o.hasFullStack=r.isArray(o.parsedStack)&&o.parsedStack.length>0,t.exceptions.push(o);var a=new n.Data;return a.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Exception),a.baseData=t,a},e.createRequestData=function(e){var t=new n.RequestData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.url=e.url,t.source=e.source,t.duration=r.msToTimeSpan(e.duration),t.responseCode=e.resultCode?e.resultCode+"":"",t.success=e.success,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Request),i.baseData=t,i},e.createMetricData=function(e){var t=new n.MetricData;t.metrics=[];var r=new n.DataPoint;r.count=isNaN(e.count)?1:e.count,r.kind=n.DataPointType.Aggregation,r.max=isNaN(e.max)?e.value:e.max,r.min=isNaN(e.min)?e.value:e.min,r.name=e.name,r.stdDev=isNaN(e.stdDev)?0:e.stdDev,r.value=e.value,t.metrics.push(r),t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Metric),i.baseData=t,i},e.createAvailabilityData=function(e){var t=new n.AvailabilityData;e.id?t.id=e.id:t.id=r.w3cTraceId(),t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.success=e.success,t.runLocation=e.runLocation,t.message=e.message,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.Availability),i.baseData=t,i},e.createPageViewData=function(e){var t=new n.PageViewData;t.name=e.name,t.duration=r.msToTimeSpan(e.duration),t.url=e.url,t.measurements=e.measurements,t.properties=e.properties;var i=new n.Data;return i.baseType=n.telemetryTypeToBaseType(n.TelemetryType.PageView),i.baseData=t,i},e.getTags=function(e,t){var n=i.CorrelationContextManager.getCurrentContext(),r={};if(e&&e.tags)for(var o in e.tags)r[o]=e.tags[o];if(t)for(var o in t)r[o]=t[o];return n&&(r[e.keys.operationId]=r[e.keys.operationId]||n.operation.id,r[e.keys.operationName]=r[e.keys.operationName]||n.operation.name,r[e.keys.operationParentId]=r[e.keys.operationParentId]||n.operation.parentId),r},e.parseStack=function(e){var t=void 0;if("string"==typeof e){var n=e.split("\n");t=[];for(var r=0,i=0,o=0;o<=n.length;o++){var s=n[o];if(a.regex.test(s)){var c=new a(n[o],r++);i+=c.sizeInBytes,t.push(c)}}if(i>32768)for(var l=0,u=t.length-1,p=0,d=l,f=u;l<u;){if((p+=t[l].sizeInBytes+t[u].sizeInBytes)>32768){var h=f-d+1;t.splice(d,h);break}d=l,f=u,l++,u--}}return t},e}(),a=function(){function e(t,n){this.sizeInBytes=0,this.level=n,this.method="<no_method>",this.assembly=r.trim(t);var i=t.match(e.regex);i&&i.length>=5&&(this.method=r.trim(i[2])||this.method,this.fileName=r.trim(i[4])||"<no_filename>",this.line=parseInt(i[5])||0),this.sizeInBytes+=this.method.length,this.sizeInBytes+=this.fileName.length,this.sizeInBytes+=this.assembly.length,this.sizeInBytes+=e.baseSize,this.sizeInBytes+=this.level.toString().length,this.sizeInBytes+=this.line.toString().length}return e.regex=/^(\s+at)?(.*?)(\@|\s\(|\s)([^\(\n]+):(\d+):(\d+)(\)?)$/,e.baseSize=58,e}();t.exports=o})),li=_(((e,t)=>{"use strict";var r=n(7016),i=Zr(),o=jr(),a=nr(),s=ti(),c=ai(),l=Tr(),u=si(),p=ln(),d=P(),f=ci(),h=function(){function e(e){this._telemetryProcessors=[],this._enableAzureProperties=!1;var t=new i(e);this.config=t,this.context=new o,this.commonProperties={};var n=new u(this.config);this.channel=new s((function(){return t.disableAppInsights}),(function(){return t.maxBatchSize}),(function(){return t.maxBatchIntervalMs}),n)}return e.prototype.trackAvailability=function(e){this.track(e,a.TelemetryType.Availability)},e.prototype.trackPageView=function(e){this.track(e,a.TelemetryType.PageView)},e.prototype.trackTrace=function(e){this.track(e,a.TelemetryType.Trace)},e.prototype.trackMetric=function(e){this.track(e,a.TelemetryType.Metric)},e.prototype.trackException=function(e){e&&e.exception&&!p.isError(e.exception)&&(e.exception=new Error(e.exception.toString())),this.track(e,a.TelemetryType.Exception)},e.prototype.trackEvent=function(e){this.track(e,a.TelemetryType.Event)},e.prototype.trackRequest=function(e){this.track(e,a.TelemetryType.Request)},e.prototype.trackDependency=function(e){e&&!e.target&&e.data&&(e.target=r.parse(e.data).host),this.track(e,a.TelemetryType.Dependency)},e.prototype.flush=function(e){this.channel.triggerSend(!!e&&!!e.isAppCrashing,e?e.callback:void 0)},e.prototype.track=function(e,t){if(e&&a.telemetryTypeToBaseType(t)){var n=f.createEnvelope(e,t,this.commonProperties,this.context,this.config);e.time&&(n.time=e.time.toISOString()),this._enableAzureProperties&&c.azureRoleEnvironmentTelemetryProcessor(n,this.context);var r=this.runTelemetryProcessors(n,e.contextObjects);r=r&&c.samplingTelemetryProcessor(n,{correlationContext:l.CorrelationContextManager.getCurrentContext()}),c.preAggregatedMetricsTelemetryProcessor(n,this.context),r&&(c.performanceMetricsTelemetryProcessor(n,this.quickPulseClient),this.channel.send(n))}else d.warn("track() requires telemetry object and telemetryType to be specified.")},e.prototype.setAutoPopulateAzureProperties=function(e){this._enableAzureProperties=e},e.prototype.addTelemetryProcessor=function(e){this._telemetryProcessors.push(e)},e.prototype.clearTelemetryProcessors=function(){this._telemetryProcessors=[]},e.prototype.runTelemetryProcessors=function(e,t){var n=!0,r=this._telemetryProcessors.length;if(0===r)return n;(t=t||{}).correlationContext=l.CorrelationContextManager.getCurrentContext();for(var i=0;i<r;++i)try{var o=this._telemetryProcessors[i];if(o&&!1===o.apply(null,[e,t])){n=!1;break}}catch(t){n=!0,d.warn("One of telemetry processors failed, telemetry item will be sent.",t,e)}return n&&(e&&e.tags&&(e.tags=p.validateStringMap(e.tags)),e&&e.data&&e.data.baseData&&e.data.baseData.properties&&(e.data.baseData.properties=p.validateStringMap(e.data.baseData.properties))),n},e}();t.exports=h})),ui=_(((e,t)=>{"use strict";var n,r=e&&e.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=li(),o=Wr(),a=Gr(),s=P(),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.trackNodeHttpRequestSync=function(e){e&&e.request&&e.response&&e.duration?o.trackRequestSync(this,e):s.warn("trackNodeHttpRequestSync requires NodeHttpRequestTelemetry object with request, response and duration specified.")},t.prototype.trackNodeHttpRequest=function(e){(e.duration||e.error)&&s.warn("trackNodeHttpRequest will ignore supplied duration and error parameters. These values are collected from the request and response objects."),e&&e.request&&e.response?o.trackRequest(this,e):s.warn("trackNodeHttpRequest requires NodeHttpRequestTelemetry object with request and response specified.")},t.prototype.trackNodeHttpDependency=function(e){e&&e.request?a.trackRequest(this,e):s.warn("trackNodeHttpDependency requires NodeHttpDependencyTelemetry object with request specified.")},t}(i);t.exports=c})),pi=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0})})),di=_((e=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.dispose=e.Configuration=e.wrapWithCorrelationContext=e.startOperation=e.getCorrelationContext=e.start=e.setup=e.liveMetricsClient=e.defaultClient=e.DistributedTracingModes=void 0;var t,n,r=Tr(),i=Or(),o=Nr(),a=Dr(),s=Mr(),c=$r(),l=Gr(),u=Wr(),p=un(),d=P(),f=Yr(),h=ei();e.TelemetryClient=ui(),e.Contracts=nr(),e.azureFunctionsTypes=pi(),(n=t=e.DistributedTracingModes||(e.DistributedTracingModes={}))[n.AI=0]="AI",n[n.AI_AND_W3C=1]="AI_AND_W3C";var m,v,g,b,y,_,x,w,E,A,S,T=!0,C=!1,I=!0,O=!0,N=!0,R=!1,D=!0,k=!0,L=!0,M=!0,j=!1,z=!0,F=void 0,B=void 0,V=!1;function U(){return e.defaultClient?(V=!0,g.enable(T,C),b.enable(I),y.enable(O),_.enable(N),x.enable(R,e.defaultClient.config),w.enable(z,v),E.useAutoCorrelation(M,m),E.enable(D),A.enable(k),e.liveMetricsClient&&j&&e.liveMetricsClient.enable(j)):d.warn("Start cannot be called before setup"),q}e.setup=function(t){return e.defaultClient?d.info("The default client is already setup"):(e.defaultClient=new e.TelemetryClient(t),g=new i(e.defaultClient),b=new o(e.defaultClient),y=new a(e.defaultClient),_=new s(e.defaultClient),x=new c(e.defaultClient),E=new u(e.defaultClient),A=new l(e.defaultClient),w||(w=new h.AutoCollectNativePerformance(e.defaultClient))),e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(L,F,B),q},e.start=U,e.getCorrelationContext=function(){return M?r.CorrelationContextManager.getCurrentContext():null},e.startOperation=function(e,t){return r.CorrelationContextManager.startOperation(e,t)},e.wrapWithCorrelationContext=function(e,t){return r.CorrelationContextManager.wrapCallback(e,t)};var q=function(){function n(){}return n.setDistributedTracingMode=function(e){return p.w3cEnabled=e===t.AI_AND_W3C,n},n.setAutoCollectConsole=function(e,t){return void 0===t&&(t=!1),T=e,C=t,V&&g.enable(e,t),n},n.setAutoCollectExceptions=function(e){return I=e,V&&b.enable(e),n},n.setAutoCollectPerformance=function(e,t){void 0===t&&(t=!0),O=e;var r=h.AutoCollectNativePerformance.parseEnabled(t);return z=r.isEnabled,v=r.disabledMetrics,V&&(y.enable(e),w.enable(r.isEnabled,r.disabledMetrics)),n},n.setAutoCollectPreAggregatedMetrics=function(e){return N=e,V&&_.enable(e),n},n.setAutoCollectHeartbeat=function(t){return R=t,V&&x.enable(t,e.defaultClient.config),n},n.setAutoCollectRequests=function(e){return D=e,V&&E.enable(e),n},n.setAutoCollectDependencies=function(e){return k=e,V&&A.enable(e),n},n.setAutoDependencyCorrelation=function(e,t){return M=e,m=t,V&&E.useAutoCorrelation(e,t),n},n.setUseDiskRetryCaching=function(t,r,i){return L=t,F=r,B=i,e.defaultClient&&e.defaultClient.channel&&e.defaultClient.channel.setUseDiskRetryCaching(t,r,i),n},n.setInternalLogging=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!0),d.enableDebug=e,d.disableWarnings=!t,n},n.setSendLiveMetrics=function(t){return void 0===t&&(t=!1),e.defaultClient?(!e.liveMetricsClient&&t?(e.liveMetricsClient=new f(e.defaultClient.config,null),S=new a(e.liveMetricsClient,1e3,!0),e.liveMetricsClient.addCollector(S),e.defaultClient.quickPulseClient=e.liveMetricsClient):e.liveMetricsClient&&e.liveMetricsClient.enable(t),j=t,n):(d.warn("Live metrics client cannot be setup without the default client"),n)},n.start=U,n}();e.Configuration=q,e.dispose=function(){p.w3cEnabled=!0,e.defaultClient=null,V=!1,g&&g.dispose(),b&&b.dispose(),y&&y.dispose(),_&&_.dispose(),x&&x.dispose(),w&&w.dispose(),E&&E.dispose(),A&&A.dispose(),e.liveMetricsClient&&(e.liveMetricsClient.enable(!1),j=!1,e.liveMetricsClient=void 0)}})),fi={};((e,t)=>{for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(fi,{default:()=>_i}),e.exports=(a=fi,x(c({},"__esModule",{value:!0}),a));var hi=w(n(857)),mi=w(n(1398)),vi=w(n(5692)),gi=class{constructor(e){this.vscodeAPI=e}getTelemetryLevel(){try{let e=this.vscodeAPI.env.telemetryConfiguration;return e.isUsageEnabled&&e.isErrorsEnabled&&e.isCrashEnabled?"on":e.isErrorsEnabled&&e.isCrashEnabled?"error":"off"}catch{return void 0!==this.vscodeAPI.env.isTelemetryEnabled?this.vscodeAPI.env.isTelemetryEnabled?"on":"off":this.vscodeAPI.workspace.getConfiguration("telemetry").get("enableTelemetry")?"on":"off"}}static applyReplacements(e,t){for(let n of Object.keys(e))for(let r of t)r.lookup.test(n)&&(void 0!==r.replacementString?e[n]=r.replacementString:delete e[n])}static shouldUseOneDataSystemSDK(e){return 74===e.length&&"-"===e[32]&&"-"===e[41]&&"-"===e[46]&&"-"===e[51]&&"-"===e[56]&&"-"===e[69]}static getInstance(e){return gi._instance||(gi._instance=new gi(e)),gi._instance}},bi=class{constructor(e,t,n,r,i,o){this.extensionId=e,this.extensionVersion=t,this.telemetryAppender=n,this.osShim=r,this.vscodeAPI=i,this.firstParty=!1,this.userOptIn=!1,this.errorOptIn=!1,this.disposables=[],this.firstParty=!!o,this.updateUserOptStatus(),void 0!==i.env.onDidChangeTelemetryEnabled?(this.disposables.push(i.env.onDidChangeTelemetryEnabled((()=>this.updateUserOptStatus()))),this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))):this.disposables.push(i.workspace.onDidChangeConfiguration((()=>this.updateUserOptStatus())))}updateUserOptStatus(){let e=gi.getInstance(this.vscodeAPI).getTelemetryLevel();this.userOptIn="on"===e,this.errorOptIn="error"===e||this.userOptIn,(this.userOptIn||this.errorOptIn)&&this.telemetryAppender.instantiateAppender()}cleanRemoteName(e){if(!e)return"none";let t="other";return["ssh-remote","dev-container","attached-container","wsl","codespaces"].forEach((n=>{0===e.indexOf(`${n}`)&&(t=n)})),t}get extension(){return void 0===this._extension&&(this._extension=this.vscodeAPI.extensions.getExtension(this.extensionId)),this._extension}cloneAndChange(e,t){if(null===e||"object"!=typeof e||"function"!=typeof t)return e;let n={};for(let r in e)n[r]=t(r,e[r]);return n}shouldSendErrorTelemetry(){return!(!1===this.errorOptIn||this.firstParty&&this.vscodeAPI.env.remoteName&&"other"===this.cleanRemoteName(this.vscodeAPI.env.remoteName))}getCommonProperties(){let e={};if(e["common.os"]=this.osShim.platform,e["common.nodeArch"]=this.osShim.architecture,e["common.platformversion"]=(this.osShim.release||"").replace(/^(\d+)(\.\d+)?(\.\d+)?(.*)/,"$1$2$3"),e["common.extname"]=this.extensionId,e["common.extversion"]=this.extensionVersion,this.vscodeAPI&&this.vscodeAPI.env){switch(e["common.vscodemachineid"]=this.vscodeAPI.env.machineId,e["common.vscodesessionid"]=this.vscodeAPI.env.sessionId,e["common.vscodeversion"]=this.vscodeAPI.version,e["common.isnewappinstall"]=this.vscodeAPI.env.isNewAppInstall?this.vscodeAPI.env.isNewAppInstall.toString():"false",e["common.product"]=this.vscodeAPI.env.appHost,this.vscodeAPI.env.uiKind){case this.vscodeAPI.UIKind.Web:e["common.uikind"]="web";break;case this.vscodeAPI.UIKind.Desktop:e["common.uikind"]="desktop";break;default:e["common.uikind"]="unknown"}e["common.remotename"]=this.cleanRemoteName(this.vscodeAPI.env.remoteName)}return e}anonymizeFilePaths(e,t){let n;if(null==e)return"";let r=[];""!==this.vscodeAPI.env.appRoot&&r.push(new RegExp(this.vscodeAPI.env.appRoot.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi")),this.extension&&r.push(new RegExp(this.extension.extensionPath.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi"));let i=e;if(t){let t=[];for(let i of r)for(;(n=i.exec(e))&&n;)t.push([n.index,i.lastIndex]);let o=/^[\\/]?(node_modules|node_modules\.asar)[\\/]/,a=/(file:\/\/)?([a-zA-Z]:(\\\\|\\|\/)|(\\\\|\\|\/))?([\w-._]+(\\\\|\\|\/))+[\w-._]*/g,s=0;for(i="";(n=a.exec(e))&&n;)n[0]&&!o.test(n[0])&&t.every((([e,t])=>n.index<e||n.index>=t))&&(i+=e.substring(s,n.index)+"<REDACTED: user-file-path>",s=a.lastIndex);s<e.length&&(i+=e.substr(s))}for(let e of r)i=i.replace(e,"");return i}removePropertiesWithPossibleUserInfo(e){if("object"!=typeof e)return;let t={};for(let n of Object.keys(e)){let r=e[n];if(!r)continue;let i=/@[a-zA-Z0-9-.]+/,o=/xox[pbaors]-[a-zA-Z0-9]+-[a-zA-Z0-9-]+?/;/(key|token|sig|signature|password|passwd|pwd|android:value)[^a-zA-Z0-9]/.test(r.toLowerCase())?t[n]="<REDACTED: secret>":i.test(r)?t[n]="<REDACTED: email>":o.test(r)?t[n]="<REDACTED: token>":t[n]=r}return t}get telemetryLevel(){switch(gi.getInstance(this.vscodeAPI).getTelemetryLevel()){case"on":return"all";case"error":return"error";case"off":return"off"}}internalSendTelemetryEvent(e,t,n,r,i){if((this.userOptIn||i)&&""!==e){if(t=b(b({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!0,!1)}sendRawTelemetryEvent(e,t,n){this.internalSendTelemetryEvent(e,t,n,!1,!1)}sendDangerousTelemetryEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryEvent(e,t,n,r,!0)}internalSendTelemetryErrorEvent(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&""!==e){if(t=b(b({},t),this.getCommonProperties()),r){let e=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));t=this.removePropertiesWithPossibleUserInfo(e)}t=t??{},n=n??{},e=`${this.extensionId}/${e}`,this.telemetryAppender.logEvent(e,{properties:t,measurements:n})}}sendTelemetryErrorEvent(e,t,n){this.internalSendTelemetryErrorEvent(e,t,n,!0,!1)}sendDangerousTelemetryErrorEvent(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryErrorEvent(e,t,n,r,!0)}internalSendTelemetryException(e,t,n,r,i){if((this.shouldSendErrorTelemetry()||i)&&e){if(t=b(b({},t),this.getCommonProperties()),r){let n=this.cloneAndChange(t,((e,t)=>this.anonymizeFilePaths(t,this.firstParty)));e.stack&&(e.stack=this.anonymizeFilePaths(e.stack,this.firstParty)),t=this.removePropertiesWithPossibleUserInfo(n)}t=t??{},n=n??{},this.telemetryAppender.logException(e,{properties:t,measurements:n})}}sendTelemetryException(e,t,n){this.internalSendTelemetryException(e,t,n,!0,!1)}sendDangerousTelemetryException(e,t,n,r=!0){this.telemetryAppender.instantiateAppender(),this.internalSendTelemetryException(e,t,n,r,!0)}dispose(){return this.telemetryAppender.flush(),Promise.all(this.disposables.map((e=>e.dispose())))}},yi=class{constructor(e,t){this._instantiationStatus=0,this._eventQueue=[],this._exceptionQueue=[],this._clientFactory=t,this._key=e}logEvent(e,t){this._telemetryClient?this._telemetryClient.logEvent(e,t):2!==this._instantiationStatus&&this._eventQueue.push({eventName:e,data:t})}logException(e,t){this._telemetryClient?this._telemetryClient.logException(e,t):2!==this._instantiationStatus&&this._exceptionQueue.push({exception:e,data:t})}async flush(){this._telemetryClient&&(await this._telemetryClient.flush(),this._telemetryClient=void 0)}_flushQueues(){this._eventQueue.forEach((({eventName:e,data:t})=>this.logEvent(e,t))),this._eventQueue=[],this._exceptionQueue.forEach((({exception:e,data:t})=>this.logException(e,t))),this._exceptionQueue=[]}instantiateAppender(){0===this._instantiationStatus&&(this._instantiationStatus=1,this._clientFactory(this._key).then((e=>{this._telemetryClient=e,this._instantiationStatus=2,this._flushQueues()})).catch((e=>{console.error(e),this._instantiationStatus=2})))}},_i=class extends bi{constructor(e,t,n,r,i){let o=e=>(async(e,t)=>{let n;try{process.env.APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL="1";let t=await Promise.resolve().then((()=>w(di())));t.defaultClient?(n=new t.TelemetryClient(e),n.channel.setUseDiskRetryCaching(!0)):(t.setup(e).setAutoCollectRequests(!1).setAutoCollectPerformance(!1).setAutoCollectExceptions(!1).setAutoCollectDependencies(!1).setAutoDependencyCorrelation(!1).setAutoCollectConsole(!1).setAutoCollectHeartbeat(!1).setUseDiskRetryCaching(!0).start(),n=t.defaultClient),mi&&mi.env&&(n.context.tags[n.context.keys.userId]=mi.env.machineId,n.context.tags[n.context.keys.sessionId]=mi.env.sessionId,n.context.tags[n.context.keys.cloudRole]=mi.env.appName,n.context.tags[n.context.keys.cloudRoleInstance]=mi.env.appName),e&&0===e.indexOf("AIF-")&&(n.config.endpointUrl="https://mobile.events.data.microsoft.com/collect/v1")}catch(e){return Promise.reject("Failed to initialize app insights!\n"+e.message)}return null!=t&&t.length&&function(e,t){e.addTelemetryProcessor((e=>(Array.isArray(e.tags)?e.tags.forEach((e=>gi.applyReplacements(e,t))):e.tags&&gi.applyReplacements(e.tags,t),e.data.baseData&&gi.applyReplacements(e.data.baseData,t),!0)))}(n,t),{logEvent:(e,t)=>{try{null==n||n.trackEvent({name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{try{null==n||n.trackException({exception:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements})}catch(e){throw new Error("Failed to log exception to app insights!\n"+e.message)}},flush:async()=>{try{null==n||n.flush()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,i);gi.shouldUseOneDataSystemSDK(n)&&(o=e=>(async(e,t,n)=>{let r=await(async(e,t,n)=>{let r=await Promise.resolve().then((()=>w(T()))),i=await Promise.resolve().then((()=>w(I()))),o=new r.AppInsightsCore,a=new i.PostChannel,s={instrumentationKey:e,endpointUrl:"https://mobile.events.data.microsoft.com/OneCollector/1.0",loggingLevelTelemetry:0,loggingLevelConsole:0,disableCookiesUsage:!0,disableDbgExt:!0,disableInstrumentationKeyValidation:!0,channels:[[a]]};if(n){s.extensionConfig={};let e={alwaysUseXhrOverride:!0,httpXHROverride:n};s.extensionConfig[a.identifier]=e}let c=t.workspace.getConfiguration("telemetry").get("internalTesting");return o.initialize(s,[]),o.addTelemetryInitializer((e=>{!c||(e.ext=e.ext??{},e.ext.utc=e.ext.utc??{},e.ext.utc.flags=8462029)})),o})(e,t,n);return{logEvent:(e,t)=>{try{null==r||r.track({name:e,baseData:{name:e,properties:null==t?void 0:t.properties,measurements:null==t?void 0:t.measurements}})}catch(e){throw new Error("Failed to log event to app insights!\n"+e.message)}},logException:(e,t)=>{throw new Error("1DS SDK does not support logging exceptions, please use logEvent for exception tracking")},flush:async()=>{try{null==r||r.unload()}catch(e){throw new Error("Failed to flush app insights!\n"+e.message)}}}})(e,mi,{sendPOST:(e,t)=>{let n={method:"POST",headers:y(b({},e.headers),{"Content-Type":"application/json","Content-Length":Buffer.byteLength(e.data)})};try{let r=vi.request(e.urlString,n,(e=>{e.on("data",(function(n){t(e.statusCode??200,e.headers,n.toString())})),e.on("error",(function(){t(0,{})}))}));r.write(e.data),r.end()}catch{t(0,{})}}}));let a=new yi(n,o);n&&(0===n.indexOf("AIF-")||gi.shouldUseOneDataSystemSDK(n))&&(r=!0),super(e,t,a,{release:hi.release(),platform:hi.platform(),architecture:hi.arch()},mi,r)}}},889:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=889,e.exports=t},8371:e=>{function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=8371,e.exports=t},1873:(e,t,n)=>{e.exports={parallel:n(8798),serial:n(2081),serialOrdered:n(28)}},4555:e=>{function t(e){"function"==typeof this.jobs[e]&&this.jobs[e]()}e.exports=function(e){Object.keys(e.jobs).forEach(t.bind(e)),e.jobs={}}},2313:(e,t,n)=>{var r=n(405);e.exports=function(e){var t=!1;return r((function(){t=!0})),function(n,i){t?e(n,i):r((function(){e(n,i)}))}}},405:e=>{e.exports=function(e){var t="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;t?t(e):setTimeout(e,0)}},8051:(e,t,n)=>{var r=n(2313),i=n(4555);e.exports=function(e,t,n,o){var a=n.keyedList?n.keyedList[n.index]:n.index;n.jobs[a]=function(e,t,n,i){return 2==e.length?e(n,r(i)):e(n,t,r(i))}(t,a,e[a],(function(e,t){a in n.jobs&&(delete n.jobs[a],e?i(n):n.results[a]=t,o(e,n.results))}))}},9500:e=>{e.exports=function(e,t){var n=!Array.isArray(e),r={index:0,keyedList:n||t?Object.keys(e):null,jobs:{},results:n?{}:[],size:n?Object.keys(e).length:e.length};return t&&r.keyedList.sort(n?t:function(n,r){return t(e[n],e[r])}),r}},6276:(e,t,n)=>{var r=n(4555),i=n(2313);e.exports=function(e){Object.keys(this.jobs).length&&(this.index=this.size,r(this),i(e)(null,this.results))}},8798:(e,t,n)=>{var r=n(8051),i=n(9500),o=n(6276);e.exports=function(e,t,n){for(var a=i(e);a.index<(a.keyedList||e).length;)r(e,t,a,(function(e,t){e?n(e,t):0!==Object.keys(a.jobs).length||n(null,a.results)})),a.index++;return o.bind(a,n)}},2081:(e,t,n)=>{var r=n(28);e.exports=function(e,t,n){return r(e,t,null,n)}},28:(e,t,n)=>{var r=n(8051),i=n(9500),o=n(6276);function a(e,t){return e<t?-1:e>t?1:0}e.exports=function(e,t,n,a){var s=i(e,n);return r(e,t,s,(function n(i,o){i?a(i,o):(s.index++,s.index<(s.keyedList||e).length?r(e,t,s,n):a(null,s.results))})),o.bind(s,a)},e.exports.ascending=a,e.exports.descending=function(e,t){return-1*a(e,t)}},801:(e,t,n)=>{var r=n(9023),i=n(2203).Stream,o=n(8069);function a(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=a,r.inherits(a,i),a.create=function(e){var t=new this;for(var n in e=e||{})t[n]=e[n];return t},a.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},a.prototype.append=function(e){if(a.isStreamLike(e)){if(!(e instanceof o)){var t=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=t}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},a.prototype.pipe=function(e,t){return i.prototype.pipe.call(this,e,t),this.resume(),e},a.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},a.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){a.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},a.prototype._pipeNext=function(e){if(this._currentStream=e,a.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var t=e;this.write(t),this._getNext()},a.prototype._handleErrors=function(e){var t=this;e.on("error",(function(e){t._emitError(e)}))},a.prototype.write=function(e){this.emit("data",e)},a.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},a.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},a.prototype.end=function(){this._reset(),this.emit("end")},a.prototype.destroy=function(){this._reset(),this.emit("close")},a.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},a.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},a.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(t){t.dataSize&&(e.dataSize+=t.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},a.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},7833:(e,t,n)=>{t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))})),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type&&!window.process.__nwjs)||("undefined"==typeof navigator||!navigator.userAgent||!navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(736)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},736:(e,t,n)=>{e.exports=function(e){function t(e){let n,i,o,a=null;function s(...e){if(!s.enabled)return;const r=s,i=Number(new Date),o=i-(n||i);r.diff=o,r.prev=n,r.curr=i,n=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let a=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((n,i)=>{if("%%"===n)return"%";a++;const o=t.formatters[i];if("function"==typeof o){const t=e[a];n=o.call(r,t),e.splice(a,1),a--}return n})),t.formatArgs.call(r,e),(r.log||t.log).apply(r,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=r,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==a?a:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{a=e}}),"function"==typeof t.init&&t.init(s),s}function r(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names.map(i),...t.skips.map(i).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(6585),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},5753:(e,t,n)=>{"undefined"==typeof process||"renderer"===process.type||!0===process.browser||process.__nwjs?e.exports=n(7833):e.exports=n(6033)},6033:(e,t,n)=>{const r=n(2018),i=n(9023);t.init=function(e){e.inspectOpts={};const n=Object.keys(t.inspectOpts);for(let r=0;r<n.length;r++)e.inspectOpts[n[r]]=t.inspectOpts[n[r]]},t.log=function(...e){return process.stderr.write(i.format(...e)+"\n")},t.formatArgs=function(n){const{namespace:r,useColors:i}=this;if(i){const t=this.color,i="[3"+(t<8?t:"8;5;"+t),o=` ${i};1m${r} [0m`;n[0]=o+n[0].split("\n").join("\n"+o),n.push(i+"m+"+e.exports.humanize(this.diff)+"[0m")}else n[0]=(t.inspectOpts.hideDate?"":(new Date).toISOString()+" ")+r+" "+n[0]},t.save=function(e){e?process.env.DEBUG=e:delete process.env.DEBUG},t.load=function(){return process.env.DEBUG},t.useColors=function(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)},t.destroy=i.deprecate((()=>{}),"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),t.colors=[6,2,3,4,5,1];try{const e=n(7687);e&&(e.stderr||e).level>=2&&(t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch(e){}t.inspectOpts=Object.keys(process.env).filter((e=>/^debug_/i.test(e))).reduce(((e,t)=>{const n=t.substring(6).toLowerCase().replace(/_([a-z])/g,((e,t)=>t.toUpperCase()));let r=process.env[t];return r=!!/^(yes|on|true|enabled)$/i.test(r)||!/^(no|off|false|disabled)$/i.test(r)&&("null"===r?null:Number(r)),e[n]=r,e}),{}),e.exports=n(736)(t);const{formatters:o}=e.exports;o.o=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts).split("\n").map((e=>e.trim())).join(" ")},o.O=function(e){return this.inspectOpts.colors=this.useColors,i.inspect(e,this.inspectOpts)}},8069:(e,t,n)=>{var r=n(2203).Stream,i=n(9023);function o(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}e.exports=o,i.inherits(o,r),o.create=function(e,t){var n=new this;for(var r in t=t||{})n[r]=t[r];n.source=e;var i=e.emit;return e.emit=function(){return n._handleEmit(arguments),i.apply(e,arguments)},e.on("error",(function(){})),n.pauseStream&&e.pause(),n},Object.defineProperty(o.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),o.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},o.prototype.resume=function(){this._released||this.release(),this.source.resume()},o.prototype.pause=function(){this.source.pause()},o.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(e){this.emit.apply(this,e)}.bind(this)),this._bufferedEvents=[]},o.prototype.pipe=function(){var e=r.prototype.pipe.apply(this,arguments);return this.resume(),e},o.prototype._handleEmit=function(e){this._released?this.emit.apply(this,e):("data"===e[0]&&(this.dataSize+=e[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(e))},o.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(e))}}},7507:(e,t,n)=>{var r;e.exports=function(){if(!r){try{r=n(5753)("follow-redirects")}catch(e){}"function"!=typeof r&&(r=function(){})}r.apply(null,arguments)}},3164:(e,t,n)=>{var r=n(7016),i=r.URL,o=n(8611),a=n(5692),s=n(2203).Writable,c=n(2613),l=n(7507),u=!1;try{c(new i)}catch(e){u="ERR_INVALID_URL"===e.code}var p=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],d=["abort","aborted","connect","error","socket","timeout"],f=Object.create(null);d.forEach((function(e){f[e]=function(t,n,r){this._redirectable.emit(e,t,n,r)}}));var h=C("ERR_INVALID_URL","Invalid URL",TypeError),m=C("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),v=C("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",m),g=C("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),b=C("ERR_STREAM_WRITE_AFTER_END","write after end"),y=s.prototype.destroy||w;function _(e,t){s.call(this),this._sanitizeOptions(e),this._options=e,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],t&&this.on("response",t);var n=this;this._onNativeResponse=function(e){try{n._processResponse(e)}catch(e){n.emit("error",e instanceof m?e:new m({cause:e}))}},this._performRequest()}function x(e){var t={maxRedirects:21,maxBodyLength:10485760},n={};return Object.keys(e).forEach((function(r){var o=r+":",a=n[o]=e[r],s=t[r]=Object.create(a);Object.defineProperties(s,{request:{value:function(e,r,a){return i&&e instanceof i?e=S(e):P(e)?e=S(E(e)):(a=r,r=A(e),e={protocol:o}),O(r)&&(a=r,r=null),(r=Object.assign({maxRedirects:t.maxRedirects,maxBodyLength:t.maxBodyLength},e,r)).nativeProtocols=n,P(r.host)||P(r.hostname)||(r.hostname="::1"),c.equal(r.protocol,o,"protocol mismatch"),l("options",r),new _(r,a)},configurable:!0,enumerable:!0,writable:!0},get:{value:function(e,t,n){var r=s.request(e,t,n);return r.end(),r},configurable:!0,enumerable:!0,writable:!0}})})),t}function w(){}function E(e){var t;if(u)t=new i(e);else if(!P((t=A(r.parse(e))).protocol))throw new h({input:e});return t}function A(e){if(/^\[/.test(e.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(e.hostname))throw new h({input:e.href||e});if(/^\[/.test(e.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(e.host))throw new h({input:e.href||e});return e}function S(e,t){var n=t||{};for(var r of p)n[r]=e[r];return n.hostname.startsWith("[")&&(n.hostname=n.hostname.slice(1,-1)),""!==n.port&&(n.port=Number(n.port)),n.path=n.search?n.pathname+n.search:n.pathname,n}function T(e,t){var n;for(var r in t)e.test(r)&&(n=t[r],delete t[r]);return null==n?void 0:String(n).trim()}function C(e,t,n){function r(n){Error.captureStackTrace(this,this.constructor),Object.assign(this,n||{}),this.code=e,this.message=this.cause?t+": "+this.cause.message:t}return r.prototype=new(n||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+e+"]",enumerable:!1}}),r}function I(e,t){for(var n of d)e.removeListener(n,f[n]);e.on("error",w),e.destroy(t)}function P(e){return"string"==typeof e||e instanceof String}function O(e){return"function"==typeof e}_.prototype=Object.create(s.prototype),_.prototype.abort=function(){I(this._currentRequest),this._currentRequest.abort(),this.emit("abort")},_.prototype.destroy=function(e){return I(this._currentRequest,e),y.call(this,e),this},_.prototype.write=function(e,t,n){if(this._ending)throw new b;if(!(P(e)||"object"==typeof(r=e)&&"length"in r))throw new TypeError("data should be a string, Buffer or Uint8Array");var r;O(t)&&(n=t,t=null),0!==e.length?this._requestBodyLength+e.length<=this._options.maxBodyLength?(this._requestBodyLength+=e.length,this._requestBodyBuffers.push({data:e,encoding:t}),this._currentRequest.write(e,t,n)):(this.emit("error",new g),this.abort()):n&&n()},_.prototype.end=function(e,t,n){if(O(e)?(n=e,e=t=null):O(t)&&(n=t,t=null),e){var r=this,i=this._currentRequest;this.write(e,t,(function(){r._ended=!0,i.end(null,null,n)})),this._ending=!0}else this._ended=this._ending=!0,this._currentRequest.end(null,null,n)},_.prototype.setHeader=function(e,t){this._options.headers[e]=t,this._currentRequest.setHeader(e,t)},_.prototype.removeHeader=function(e){delete this._options.headers[e],this._currentRequest.removeHeader(e)},_.prototype.setTimeout=function(e,t){var n=this;function r(t){t.setTimeout(e),t.removeListener("timeout",t.destroy),t.addListener("timeout",t.destroy)}function i(t){n._timeout&&clearTimeout(n._timeout),n._timeout=setTimeout((function(){n.emit("timeout"),o()}),e),r(t)}function o(){n._timeout&&(clearTimeout(n._timeout),n._timeout=null),n.removeListener("abort",o),n.removeListener("error",o),n.removeListener("response",o),n.removeListener("close",o),t&&n.removeListener("timeout",t),n.socket||n._currentRequest.removeListener("socket",i)}return t&&this.on("timeout",t),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",r),this.on("abort",o),this.on("error",o),this.on("response",o),this.on("close",o),this},["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach((function(e){_.prototype[e]=function(t,n){return this._currentRequest[e](t,n)}})),["aborted","connection","socket"].forEach((function(e){Object.defineProperty(_.prototype,e,{get:function(){return this._currentRequest[e]}})})),_.prototype._sanitizeOptions=function(e){if(e.headers||(e.headers={}),e.host&&(e.hostname||(e.hostname=e.host),delete e.host),!e.pathname&&e.path){var t=e.path.indexOf("?");t<0?e.pathname=e.path:(e.pathname=e.path.substring(0,t),e.search=e.path.substring(t))}},_.prototype._performRequest=function(){var e=this._options.protocol,t=this._options.nativeProtocols[e];if(!t)throw new TypeError("Unsupported protocol "+e);if(this._options.agents){var n=e.slice(0,-1);this._options.agent=this._options.agents[n]}var i=this._currentRequest=t.request(this._options,this._onNativeResponse);for(var o of(i._redirectable=this,d))i.on(o,f[o]);if(this._currentUrl=/^\//.test(this._options.path)?r.format(this._options):this._options.path,this._isRedirect){var a=0,s=this,c=this._requestBodyBuffers;!function e(t){if(i===s._currentRequest)if(t)s.emit("error",t);else if(a<c.length){var n=c[a++];i.finished||i.write(n.data,n.encoding,e)}else s._ended&&i.end()}()}},_.prototype._processResponse=function(e){var t=e.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:e.headers,statusCode:t});var n,o=e.headers.location;if(!o||!1===this._options.followRedirects||t<300||t>=400)return e.responseUrl=this._currentUrl,e.redirects=this._redirects,this.emit("response",e),void(this._requestBodyBuffers=[]);if(I(this._currentRequest),e.destroy(),++this._redirectCount>this._options.maxRedirects)throw new v;var a=this._options.beforeRedirect;a&&(n=Object.assign({Host:e.req.getHeader("host")},this._options.headers));var s=this._options.method;((301===t||302===t)&&"POST"===this._options.method||303===t&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],T(/^content-/i,this._options.headers));var p,d,f=T(/^host$/i,this._options.headers),h=E(this._currentUrl),m=f||h.host,g=/^\w+:/.test(o)?this._currentUrl:r.format(Object.assign(h,{host:m})),b=(p=o,d=g,u?new i(p,d):E(r.resolve(d,p)));if(l("redirecting to",b.href),this._isRedirect=!0,S(b,this._options),(b.protocol!==h.protocol&&"https:"!==b.protocol||b.host!==m&&!function(e,t){c(P(e)&&P(t));var n=e.length-t.length-1;return n>0&&"."===e[n]&&e.endsWith(t)}(b.host,m))&&T(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),O(a)){var y={headers:e.headers,statusCode:t},_={url:g,method:s,headers:n};a(this._options,y,_),this._sanitizeOptions(this._options)}this._performRequest()},e.exports=x({http:o,https:a}),e.exports.wrap=x},737:(e,t,n)=>{var r=n(801),i=n(9023),o=n(6928),a=n(8611),s=n(5692),c=n(7016).parse,l=n(9896),u=n(2203).Stream,p=n(6049),d=n(1873),f=n(1362);function h(e){if(!(this instanceof h))return new h(e);for(var t in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],r.call(this),e=e||{})this[t]=e[t]}e.exports=h,i.inherits(h,r),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,t,n){"string"==typeof(n=n||{})&&(n={filename:n});var o=r.prototype.append.bind(this);if("number"==typeof t&&(t=""+t),i.isArray(t))this._error(new Error("Arrays are not supported."));else{var a=this._multiPartHeader(e,t,n),s=this._multiPartFooter();o(a),o(t),o(s),this._trackLength(a,t,n)}},h.prototype._trackLength=function(e,t,n){var r=0;null!=n.knownLength?r+=+n.knownLength:Buffer.isBuffer(t)?r=t.length:"string"==typeof t&&(r=Buffer.byteLength(t)),this._valueLength+=r,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,t&&(t.path||t.readable&&t.hasOwnProperty("httpVersion")||t instanceof u)&&(n.knownLength||this._valuesToMeasure.push(t))},h.prototype._lengthRetriever=function(e,t){e.hasOwnProperty("fd")?null!=e.end&&e.end!=1/0&&null!=e.start?t(null,e.end+1-(e.start?e.start:0)):l.stat(e.path,(function(n,r){var i;n?t(n):(i=r.size-(e.start?e.start:0),t(null,i))})):e.hasOwnProperty("httpVersion")?t(null,+e.headers["content-length"]):e.hasOwnProperty("httpModule")?(e.on("response",(function(n){e.pause(),t(null,+n.headers["content-length"])})),e.resume()):t("Unknown stream")},h.prototype._multiPartHeader=function(e,t,n){if("string"==typeof n.header)return n.header;var r,i=this._getContentDisposition(t,n),o=this._getContentType(t,n),a="",s={"Content-Disposition":["form-data",'name="'+e+'"'].concat(i||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof n.header&&f(s,n.header),s)s.hasOwnProperty(c)&&null!=(r=s[c])&&(Array.isArray(r)||(r=[r]),r.length&&(a+=c+": "+r.join("; ")+h.LINE_BREAK));return"--"+this.getBoundary()+h.LINE_BREAK+a+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,t){var n,r;return"string"==typeof t.filepath?n=o.normalize(t.filepath).replace(/\\/g,"/"):t.filename||e.name||e.path?n=o.basename(t.filename||e.name||e.path):e.readable&&e.hasOwnProperty("httpVersion")&&(n=o.basename(e.client._httpMessage.path||"")),n&&(r='filename="'+n+'"'),r},h.prototype._getContentType=function(e,t){var n=t.contentType;return!n&&e.name&&(n=p.lookup(e.name)),!n&&e.path&&(n=p.lookup(e.path)),!n&&e.readable&&e.hasOwnProperty("httpVersion")&&(n=e.headers["content-type"]),n||!t.filepath&&!t.filename||(n=p.lookup(t.filepath||t.filename)),n||"object"!=typeof e||(n=h.DEFAULT_CONTENT_TYPE),n},h.prototype._multiPartFooter=function(){return function(e){var t=h.LINE_BREAK;0===this._streams.length&&(t+=this._lastBoundary()),e(t)}.bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var t,n={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(t in e)e.hasOwnProperty(t)&&(n[t.toLowerCase()]=e[t]);return n},h.prototype.setBoundary=function(e){this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),t=this.getBoundary(),n=0,r=this._streams.length;n<r;n++)"function"!=typeof this._streams[n]&&(e=Buffer.isBuffer(this._streams[n])?Buffer.concat([e,this._streams[n]]):Buffer.concat([e,Buffer.from(this._streams[n])]),"string"==typeof this._streams[n]&&this._streams[n].substring(2,t.length+2)===t||(e=Buffer.concat([e,Buffer.from(h.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},h.prototype._generateBoundary=function(){for(var e="--------------------------",t=0;t<24;t++)e+=Math.floor(10*Math.random()).toString(16);this._boundary=e},h.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},h.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},h.prototype.getLength=function(e){var t=this._overheadLength+this._valueLength;this._streams.length&&(t+=this._lastBoundary().length),this._valuesToMeasure.length?d.parallel(this._valuesToMeasure,this._lengthRetriever,(function(n,r){n?e(n):(r.forEach((function(e){t+=e})),e(null,t))})):process.nextTick(e.bind(this,null,t))},h.prototype.submit=function(e,t){var n,r,i={method:"post"};return"string"==typeof e?(e=c(e),r=f({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},i)):(r=f(e,i)).port||(r.port="https:"==r.protocol?443:80),r.headers=this.getHeaders(e.headers),n="https:"==r.protocol?s.request(r):a.request(r),this.getLength(function(e,r){if(e&&"Unknown stream"!==e)this._error(e);else if(r&&n.setHeader("Content-Length",r),this.pipe(n),t){var i,o=function(e,r){return n.removeListener("error",o),n.removeListener("response",i),t.call(this,e,r)};i=o.bind(this,null),n.on("error",o),n.on("response",i)}}.bind(this)),n},h.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},h.prototype.toString=function(){return"[object FormData]"}},1362:e=>{e.exports=function(e,t){return Object.keys(t).forEach((function(n){e[n]=e[n]||t[n]})),e}},5884:e=>{"use strict";e.exports=(e,t=process.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r<i)}},9956:(e,t,n)=>{const r=n(9896),i=n(857),{promisify:o}=n(9023),a=o(r.readFile);function s(e,t){return t.split("\n").forEach((t=>{const n=t.split("=");2===n.length&&(n[1]=n[1].replace(/["'\r]/gi,""),Object.defineProperty(e,n[0].toLowerCase(),{value:n[1],writable:!0,enumerable:!0,configurable:!0}))})),e}function c(){return{type:i.type(),platform:i.platform(),hostname:i.hostname(),arch:i.arch(),release:i.release()}}e.exports=function(e={mode:"async",custom_file:null,debug:!1}){if("Linux"!==i.type())return"sync"===e.mode?c():Promise.resolve(c());const t=null!==(n=e.custom_file)&&"string"==typeof n?Array(n):["/etc/os-release","/usr/lib/os-release"];var n;return"sync"===e.mode?function(e,t){let n=null;for(os_release_file of e)try{t.debug&&console.log(`Trying to read '${os_release_file}'...`),n=r.readFileSync(os_release_file,"binary"),t.debug&&console.log("Read data:\n"+n);break}catch(e){t.debug&&console.error(e)}if(null===n)throw new Error("Cannot read os-release file!");return s(c(),n)}(t,e):Promise.resolve(async function(e,t){let n=null;for(os_release_file of e)try{t.debug&&console.log(`Trying to read '${os_release_file}'...`),n=await a(os_release_file,"binary"),t.debug&&console.log("Read data:\n"+n);break}catch(e){t.debug&&console.error(e)}if(null===n)throw new Error("Cannot read os-release file!");return s(c(),n)}(t,e))}},9749:(e,t,n)=>{"use strict";const r=n(8799),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),c=Symbol("maxAge"),l=Symbol("dispose"),u=Symbol("noDisposeOnSet"),p=Symbol("lruList"),d=Symbol("cache"),f=Symbol("updateAgeOnGet"),h=()=>1,m=(e,t,n)=>{const r=e[d].get(t);if(r){const t=r.value;if(v(e,t)){if(b(e,r),!e[s])return}else n&&(e[f]&&(r.value.now=Date.now()),e[p].unshiftNode(r));return t.value}},v=(e,t)=>{if(!t||!t.maxAge&&!e[c])return!1;const n=Date.now()-t.now;return t.maxAge?n>t.maxAge:e[c]&&n>e[c]},g=e=>{if(e[o]>e[i])for(let t=e[p].tail;e[o]>e[i]&&null!==t;){const n=t.prev;b(e,t),t=n}},b=(e,t)=>{if(t){const n=t.value;e[l]&&e[l](n.key,n.value),e[o]-=n.length,e[d].delete(n.key),e[p].removeNode(t)}};class y{constructor(e,t,n,r,i){this.key=e,this.value=t,this.length=n,this.now=r,this.maxAge=i||0}}const _=(e,t,n,r)=>{let i=n.value;v(e,i)&&(b(e,n),e[s]||(i=void 0)),i&&t.call(r,i.value,i.key,e)};e.exports=class{constructor(e){if("number"==typeof e&&(e={max:e}),e||(e={}),e.max&&("number"!=typeof e.max||e.max<0))throw new TypeError("max must be a non-negative number");this[i]=e.max||1/0;const t=e.length||h;if(this[a]="function"!=typeof t?h:t,this[s]=e.stale||!1,e.maxAge&&"number"!=typeof e.maxAge)throw new TypeError("maxAge must be a number");this[c]=e.maxAge||0,this[l]=e.dispose,this[u]=e.noDisposeOnSet||!1,this[f]=e.updateAgeOnGet||!1,this.reset()}set max(e){if("number"!=typeof e||e<0)throw new TypeError("max must be a non-negative number");this[i]=e||1/0,g(this)}get max(){return this[i]}set allowStale(e){this[s]=!!e}get allowStale(){return this[s]}set maxAge(e){if("number"!=typeof e)throw new TypeError("maxAge must be a non-negative number");this[c]=e,g(this)}get maxAge(){return this[c]}set lengthCalculator(e){"function"!=typeof e&&(e=h),e!==this[a]&&(this[a]=e,this[o]=0,this[p].forEach((e=>{e.length=this[a](e.value,e.key),this[o]+=e.length}))),g(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let n=this[p].tail;null!==n;){const r=n.prev;_(this,e,n,t),n=r}}forEach(e,t){t=t||this;for(let n=this[p].head;null!==n;){const r=n.next;_(this,e,n,t),n=r}}keys(){return this[p].toArray().map((e=>e.key))}values(){return this[p].toArray().map((e=>e.value))}reset(){this[l]&&this[p]&&this[p].length&&this[p].forEach((e=>this[l](e.key,e.value))),this[d]=new Map,this[p]=new r,this[o]=0}dump(){return this[p].map((e=>!v(this,e)&&{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[p]}set(e,t,n){if((n=n||this[c])&&"number"!=typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](t,e);if(this[d].has(e)){if(s>this[i])return b(this,this[d].get(e)),!1;const a=this[d].get(e).value;return this[l]&&(this[u]||this[l](e,a.value)),a.now=r,a.maxAge=n,a.value=t,this[o]+=s-a.length,a.length=s,this.get(e),g(this),!0}const f=new y(e,t,s,r,n);return f.length>this[i]?(this[l]&&this[l](e,t),!1):(this[o]+=f.length,this[p].unshift(f),this[d].set(e,this[p].head),g(this),!0)}has(e){if(!this[d].has(e))return!1;const t=this[d].get(e).value;return!v(this,t)}get(e){return m(this,e,!0)}peek(e){return m(this,e,!1)}pop(){const e=this[p].tail;return e?(b(this,e),e.value):null}del(e){b(this,this[d].get(e))}load(e){this.reset();const t=Date.now();for(let n=e.length-1;n>=0;n--){const r=e[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const e=i-t;e>0&&this.set(r.k,r.v,e)}}}prune(){this[d].forEach(((e,t)=>m(this,t,!1)))}}},7598:(e,t,n)=>{e.exports=n(1813)},6049:(e,t,n)=>{"use strict";var r,i,o,a=n(7598),s=n(6928).extname,c=/^\s*([^;\s]*)(?:;|\s|$)/,l=/^text\//i;function u(e){if(!e||"string"!=typeof e)return!1;var t=c.exec(e),n=t&&a[t[1].toLowerCase()];return n&&n.charset?n.charset:!(!t||!l.test(t[1]))&&"UTF-8"}t.charset=u,t.charsets={lookup:u},t.contentType=function(e){if(!e||"string"!=typeof e)return!1;var n=-1===e.indexOf("/")?t.lookup(e):e;if(!n)return!1;if(-1===n.indexOf("charset")){var r=t.charset(n);r&&(n+="; charset="+r.toLowerCase())}return n},t.extension=function(e){if(!e||"string"!=typeof e)return!1;var n=c.exec(e),r=n&&t.extensions[n[1].toLowerCase()];return!(!r||!r.length)&&r[0]},t.extensions=Object.create(null),t.lookup=function(e){if(!e||"string"!=typeof e)return!1;var n=s("x."+e).toLowerCase().substr(1);return n&&t.types[n]||!1},t.types=Object.create(null),r=t.extensions,i=t.types,o=["nginx","apache",void 0,"iana"],Object.keys(a).forEach((function(e){var t=a[e],n=t.extensions;if(n&&n.length){r[e]=n;for(var s=0;s<n.length;s++){var c=n[s];if(i[c]){var l=o.indexOf(a[i[c]].source),u=o.indexOf(t.source);if("application/octet-stream"!==i[c]&&(l>u||l===u&&"application/"===i[c].substr(0,12)))continue}i[c]=e}}}))},6585:e=>{var t=1e3,n=60*t,r=60*n,i=24*r,o=7*i;function a(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}e.exports=function(e,s){s=s||{};var c,l,u=typeof e;if("string"===u&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var a=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(a){var s=parseFloat(a[1]);switch((a[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*s;case"weeks":case"week":case"w":return s*o;case"days":case"day":case"d":return s*i;case"hours":case"hour":case"hrs":case"hr":case"h":return s*r;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}(e);if("number"===u&&isFinite(e))return s.long?(c=e,(l=Math.abs(c))>=i?a(c,l,i,"day"):l>=r?a(c,l,r,"hour"):l>=n?a(c,l,n,"minute"):l>=t?a(c,l,t,"second"):c+" ms"):function(e){var o=Math.abs(e);return o>=i?Math.round(e/i)+"d":o>=r?Math.round(e/r)+"h":o>=n?Math.round(e/n)+"m":o>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},5532:(e,t,n)=>{"use strict";var r=n(4994);Object.defineProperty(t,"__esModule",{value:!0}),t.promisifyChildProcess=a,t.spawn=function(e,t,n){return a(i.default.spawn(e,t,n),Array.isArray(t)?n:t)},t.fork=function(e,t,n){return a(i.default.fork(e,t,n),Array.isArray(t)?n:t)},t.execFile=t.exec=void 0;var i=r(n(5317));function o(e,t){if(e[0]instanceof Buffer){var n=Buffer.concat(e);return t?n.toString(t):n}return e.join("")}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Promise((function(n,r){var i,a=t.encoding,s=t.killSignal,c=null!=a||null!=t.maxBuffer,l=t.maxBuffer||204800,u=0,p=[],d=[],f=function(t){return function(n){var r=l-u;n.length>r&&(i=new Error("maxBuffer size exceeded"),e.kill(s||"SIGTERM"),n=n.slice(0,r)),u+=n.length,t.push(n)}};function h(e,t){function s(e){c?(e.stdout=o(p,a),e.stderr=o(d,a)):Object.defineProperties(e,{stdout:{configurable:!0,enumerable:!0,get:function(){return console.error(new Error("To get stdout from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning")),null}},stderr:{configurable:!0,enumerable:!0,get:function(){return console.error(new Error("To get stderr from a spawned or forked process, set the `encoding` or `maxBuffer` option").stack.replace(/^Error/,"Warning")),null}}})}i||(null!=e&&0!==e?i=new Error("Process exited with code ".concat(e)):null!=t&&(i=new Error("Process was killed with ".concat(t))));var l={};s(l);var u=i;u?(u.code=e,u.signal=t,s(u),r(u)):n(l)}c&&(e.stdout&&e.stdout.on("data",f(p)),e.stderr&&e.stderr.on("data",f(d))),e.on("error",r),e.on("close",h),e.on("exit",h)}));return Object.create(e,{then:{value:n.then.bind(n)},catch:{value:n.catch.bind(n)}})}function s(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o=new Promise((function(t,r){i=e.apply(void 0,n.concat([function(e,n,i){e?(e.stdout=n,e.stderr=i,r(e)):t({stdout:n,stderr:i})}]))}));if(!i)throw new Error("unexpected error: child has not been initialized");return Object.create(i,{then:{value:o.then.bind(o)},catch:{value:o.catch.bind(o)}})}}var c=s(i.default.exec);t.exec=c;var l=s(i.default.execFile);t.execFile=l},6504:(e,t,n)=>{"use strict";var r=n(7016).parse,i={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},o=String.prototype.endsWith||function(e){return e.length<=this.length&&-1!==this.indexOf(e,this.length-e.length)};function a(e){return process.env[e.toLowerCase()]||process.env[e.toUpperCase()]||""}t.getProxyForUrl=function(e){var t="string"==typeof e?r(e):e||{},n=t.protocol,s=t.host,c=t.port;if("string"!=typeof s||!s||"string"!=typeof n)return"";if(n=n.split(":",1)[0],!function(e,t){var n=(a("npm_config_no_proxy")||a("no_proxy")).toLowerCase();return!n||"*"!==n&&n.split(/[,\s]/).every((function(n){if(!n)return!0;var r=n.match(/^(.+):(\d+)$/),i=r?r[1]:n,a=r?parseInt(r[2]):0;return!(!a||a===t)||(/^[.*]/.test(i)?("*"===i.charAt(0)&&(i=i.slice(1)),!o.call(e,i)):e!==i)}))}(s=s.replace(/:\d*$/,""),c=parseInt(c)||i[n]||0))return"";var l=a("npm_config_"+n+"_proxy")||a(n+"_proxy")||a("npm_config_proxy")||a("all_proxy");return l&&-1===l.indexOf("://")&&(l=n+"://"+l),l}},3904:(e,t,n)=>{const r=Symbol("SemVer ANY");class i{static get ANY(){return r}constructor(e,t){if(t=o(t),e instanceof i){if(e.loose===!!t.loose)return e;e=e.value}e=e.trim().split(/\s+/).join(" "),l("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===r?this.value="":this.value=this.operator+this.semver.version,l("comp",this)}parse(e){const t=this.options.loose?a[s.COMPARATORLOOSE]:a[s.COMPARATOR],n=e.match(t);if(!n)throw new TypeError(`Invalid comparator: ${e}`);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new u(n[2],this.options.loose):this.semver=r}toString(){return this.value}test(e){if(l("Comparator.test",e,this.options.loose),this.semver===r||e===r)return!0;if("string"==typeof e)try{e=new u(e,this.options)}catch(e){return!1}return c(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof i))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new p(e.value,t).test(this.value):""===e.operator?""===e.value||new p(this.value,t).test(e.semver):!((t=o(t)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(c(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(c(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}e.exports=i;const o=n(8587),{safeRe:a,t:s}=n(9718),c=n(4492),l=n(7272),u=n(3908),p=n(8311)},8311:(e,t,n)=>{class r{constructor(e,t){if(t=o(t),e instanceof r)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new r(e.raw,t);if(e instanceof a)return this.raw=e.value,this.set=[[e]],this.format(),this;if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length)),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter((e=>!v(e[0]))),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&g(e[0])){this.set=[e];break}}this.format()}format(){return this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim(),this.range}toString(){return this.range}parseRange(e){const t=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+e,n=i.get(t);if(n)return n;const r=this.options.loose,o=r?l[u.HYPHENRANGELOOSE]:l[u.HYPHENRANGE];e=e.replace(o,P(this.options.includePrerelease)),s("hyphen replace",e),e=e.replace(l[u.COMPARATORTRIM],p),s("comparator trim",e),e=e.replace(l[u.TILDETRIM],d),s("tilde trim",e),e=e.replace(l[u.CARETTRIM],f),s("caret trim",e);let c=e.split(" ").map((e=>y(e,this.options))).join(" ").split(/\s+/).map((e=>I(e,this.options)));r&&(c=c.filter((e=>(s("loose invalid filter",e,this.options),!!e.match(l[u.COMPARATORLOOSE]))))),s("range list",c);const g=new Map,b=c.map((e=>new a(e,this.options)));for(const e of b){if(v(e))return[e];g.set(e.value,e)}g.size>1&&g.has("")&&g.delete("");const _=[...g.values()];return i.set(t,_),_}intersects(e,t){if(!(e instanceof r))throw new TypeError("a Range is required");return this.set.some((n=>b(n,t)&&e.set.some((e=>b(e,t)&&n.every((n=>e.every((e=>n.intersects(e,t)))))))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new c(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}e.exports=r;const i=new(n(9749))({max:1e3}),o=n(8587),a=n(3904),s=n(7272),c=n(3908),{safeRe:l,t:u,comparatorTrimReplace:p,tildeTrimReplace:d,caretTrimReplace:f}=n(9718),{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=n(6874),v=e=>"<0.0.0-0"===e.value,g=e=>""===e.value,b=(e,t)=>{let n=!0;const r=e.slice();let i=r.pop();for(;n&&r.length;)n=r.every((e=>i.intersects(e,t))),i=r.pop();return n},y=(e,t)=>(s("comp",e,t),e=E(e,t),s("caret",e),e=x(e,t),s("tildes",e),e=S(e,t),s("xrange",e),e=C(e,t),s("stars",e),e),_=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map((e=>w(e,t))).join(" "),w=(e,t)=>{const n=t.loose?l[u.TILDELOOSE]:l[u.TILDE];return e.replace(n,((t,n,r,i,o)=>{let a;return s("tilde",e,t,n,r,i,o),_(n)?a="":_(r)?a=`>=${n}.0.0 <${+n+1}.0.0-0`:_(i)?a=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(s("replaceTilde pr",o),a=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):a=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,s("tilde return",a),a}))},E=(e,t)=>e.trim().split(/\s+/).map((e=>A(e,t))).join(" "),A=(e,t)=>{s("caret",e,t);const n=t.loose?l[u.CARETLOOSE]:l[u.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,((t,n,i,o,a)=>{let c;return s("caret",e,t,n,i,o,a),_(n)?c="":_(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:_(o)?c="0"===n?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:a?(s("replaceCaret pr",a),c="0"===n?"0"===i?`>=${n}.${i}.${o}-${a} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${a} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${a} <${+n+1}.0.0-0`):(s("no pr"),c="0"===n?"0"===i?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),s("caret return",c),c}))},S=(e,t)=>(s("replaceXRanges",e,t),e.split(/\s+/).map((e=>T(e,t))).join(" ")),T=(e,t)=>{e=e.trim();const n=t.loose?l[u.XRANGELOOSE]:l[u.XRANGE];return e.replace(n,((n,r,i,o,a,c)=>{s("xRange",e,n,r,i,o,a,c);const l=_(i),u=l||_(o),p=u||_(a),d=p;return"="===r&&d&&(r=""),c=t.includePrerelease?"-0":"",l?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&d?(u&&(o=0),a=0,">"===r?(r=">=",u?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===r&&(r="<",u?i=+i+1:o=+o+1),"<"===r&&(c="-0"),n=`${r+i}.${o}.${a}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:p&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),s("xRange return",n),n}))},C=(e,t)=>(s("replaceStars",e,t),e.trim().replace(l[u.STAR],"")),I=(e,t)=>(s("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?u.GTE0PRE:u.GTE0],"")),P=e=>(t,n,r,i,o,a,s,c,l,u,p,d,f)=>`${n=_(r)?"":_(i)?`>=${r}.0.0${e?"-0":""}`:_(o)?`>=${r}.${i}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${c=_(l)?"":_(u)?`<${+l+1}.0.0-0`:_(p)?`<${l}.${+u+1}.0-0`:d?`<=${l}.${u}.${p}-${d}`:e?`<${l}.${u}.${+p+1}-0`:`<=${c}`}`.trim(),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(s(e[n].semver),e[n].semver!==a.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}},3908:(e,t,n)=>{const r=n(7272),{MAX_LENGTH:i,MAX_SAFE_INTEGER:o}=n(6874),{safeRe:a,t:s}=n(9718),c=n(8587),{compareIdentifiers:l}=n(1123);class u{constructor(e,t){if(t=c(t),e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>i)throw new TypeError(`version is longer than ${i} characters`);r("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?a[s.LOOSE]:a[s.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(r("SemVer.compare",this.version,this.options,e),!(e instanceof u)){if("string"==typeof e&&e===this.version)return 0;e=new u(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof u||(e=new u(e,this.options)),l(this.major,e.major)||l(this.minor,e.minor)||l(this.patch,e.patch)}comparePre(e){if(e instanceof u||(e=new u(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}compareBuild(e){e instanceof u||(e=new u(e,this.options));let t=0;do{const n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return l(n,i)}while(++t)}inc(e,t,n){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];!1===n&&(r=[t]),0===l(this.prerelease[0],t)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}e.exports=u},7414:(e,t,n)=>{const r=n(144);e.exports=(e,t)=>{const n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},4492:(e,t,n)=>{const r=n(4641),i=n(3999),o=n(5580),a=n(4089),s=n(7059),c=n(5200);e.exports=(e,t,n,l)=>{switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return r(e,n,l);case"!=":return i(e,n,l);case">":return o(e,n,l);case">=":return a(e,n,l);case"<":return s(e,n,l);case"<=":return c(e,n,l);default:throw new TypeError(`Invalid operator: ${t}`)}}},6170:(e,t,n)=>{const r=n(3908),i=n(144),{safeRe:o,t:a}=n(9718);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=o[a.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),o[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;o[a.COERCERTL].lastIndex=-1}else n=e.match(o[a.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},909:(e,t,n)=>{const r=n(3908);e.exports=(e,t,n)=>{const i=new r(e,n),o=new r(t,n);return i.compare(o)||i.compareBuild(o)}},1763:(e,t,n)=>{const r=n(560);e.exports=(e,t)=>r(e,t,!0)},560:(e,t,n)=>{const r=n(3908);e.exports=(e,t,n)=>new r(e,n).compare(new r(t,n))},1832:(e,t,n)=>{const r=n(144);e.exports=(e,t)=>{const n=r(e,null,!0),i=r(t,null,!0),o=n.compare(i);if(0===o)return null;const a=o>0,s=a?n:i,c=a?i:n,l=!!s.prerelease.length;if(c.prerelease.length&&!l)return c.patch||c.minor?s.patch?"patch":s.minor?"minor":"major":"major";const u=l?"pre":"";return n.major!==i.major?u+"major":n.minor!==i.minor?u+"minor":n.patch!==i.patch?u+"patch":"prerelease"}},4641:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>0===r(e,t,n)},5580:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>r(e,t,n)>0},4089:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>r(e,t,n)>=0},3007:(e,t,n)=>{const r=n(3908);e.exports=(e,t,n,i,o)=>{"string"==typeof n&&(o=i,i=n,n=void 0);try{return new r(e instanceof r?e.version:e,n).inc(t,i,o).version}catch(e){return null}}},7059:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>r(e,t,n)<0},5200:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>r(e,t,n)<=0},2938:(e,t,n)=>{const r=n(3908);e.exports=(e,t)=>new r(e,t).major},6254:(e,t,n)=>{const r=n(3908);e.exports=(e,t)=>new r(e,t).minor},3999:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>0!==r(e,t,n)},144:(e,t,n)=>{const r=n(3908);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},4493:(e,t,n)=>{const r=n(3908);e.exports=(e,t)=>new r(e,t).patch},1729:(e,t,n)=>{const r=n(144);e.exports=(e,t)=>{const n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},9970:(e,t,n)=>{const r=n(560);e.exports=(e,t,n)=>r(t,e,n)},4277:(e,t,n)=>{const r=n(909);e.exports=(e,t)=>e.sort(((e,n)=>r(n,e,t)))},7638:(e,t,n)=>{const r=n(8311);e.exports=(e,t,n)=>{try{t=new r(t,n)}catch(e){return!1}return t.test(e)}},3927:(e,t,n)=>{const r=n(909);e.exports=(e,t)=>e.sort(((e,n)=>r(e,n,t)))},6953:(e,t,n)=>{const r=n(144);e.exports=(e,t)=>{const n=r(e,t);return n?n.version:null}},1970:(e,t,n)=>{const r=n(9718),i=n(6874),o=n(3908),a=n(1123),s=n(144),c=n(6953),l=n(7414),u=n(3007),p=n(1832),d=n(2938),f=n(6254),h=n(4493),m=n(1729),v=n(560),g=n(9970),b=n(1763),y=n(909),_=n(3927),x=n(4277),w=n(5580),E=n(7059),A=n(4641),S=n(3999),T=n(4089),C=n(5200),I=n(4492),P=n(6170),O=n(3904),N=n(8311),R=n(7638),D=n(7631),k=n(9628),L=n(270),M=n(1261),j=n(3874),z=n(7075),F=n(5571),B=n(5342),V=n(6780),U=n(2525),q=n(5032);e.exports={parse:s,valid:c,clean:l,inc:u,diff:p,major:d,minor:f,patch:h,prerelease:m,compare:v,rcompare:g,compareLoose:b,compareBuild:y,sort:_,rsort:x,gt:w,lt:E,eq:A,neq:S,gte:T,lte:C,cmp:I,coerce:P,Comparator:O,Range:N,satisfies:R,toComparators:D,maxSatisfying:k,minSatisfying:L,minVersion:M,validRange:j,outside:z,gtr:F,ltr:B,intersects:V,simplifyRange:U,subset:q,SemVer:o,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}},6874:e=>{const t=Number.MAX_SAFE_INTEGER||9007199254740991;e.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:t,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},7272:e=>{const t="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=t},1123:e=>{const t=/^[0-9]+$/,n=(e,n)=>{const r=t.test(e),i=t.test(n);return r&&i&&(e=+e,n=+n),e===n?0:r&&!i?-1:i&&!r?1:e<n?-1:1};e.exports={compareIdentifiers:n,rcompareIdentifiers:(e,t)=>n(t,e)}},8587:e=>{const t=Object.freeze({loose:!0}),n=Object.freeze({});e.exports=e=>e?"object"!=typeof e?t:e:n},9718:(e,t,n)=>{const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:i,MAX_LENGTH:o}=n(6874),a=n(7272),s=(t=e.exports={}).re=[],c=t.safeRe=[],l=t.src=[],u=t.t={};let p=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[d,i]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),i=p++;a(e,i,t),u[e]=i,l[i]=t,s[i]=new RegExp(t,n?"g":void 0),c[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})\\.(${l[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})\\.(${l[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${l[u.NUMERICIDENTIFIER]}|${l[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${l[u.NUMERICIDENTIFIERLOOSE]}|${l[u.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${l[u.PRERELEASEIDENTIFIER]}(?:\\.${l[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${l[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${l[u.BUILDIDENTIFIER]}(?:\\.${l[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${l[u.MAINVERSION]}${l[u.PRERELEASE]}?${l[u.BUILD]}?`),h("FULL",`^${l[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${l[u.MAINVERSIONLOOSE]}${l[u.PRERELEASELOOSE]}?${l[u.BUILD]}?`),h("LOOSE",`^${l[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${l[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${l[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:\\.(${l[u.XRANGEIDENTIFIER]})(?:${l[u.PRERELEASE]})?${l[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[u.XRANGEIDENTIFIERLOOSE]})(?:${l[u.PRERELEASELOOSE]})?${l[u.BUILD]}?)?)?`),h("XRANGE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${l[u.GTLT]}\\s*${l[u.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",l[u.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${l[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${l[u.LONETILDE]}${l[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${l[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${l[u.LONECARET]}${l[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${l[u.LONECARET]}${l[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${l[u.GTLT]}\\s*(${l[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${l[u.GTLT]}\\s*(${l[u.LOOSEPLAIN]}|${l[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${l[u.XRANGEPLAIN]})\\s+-\\s+(${l[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${l[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},5571:(e,t,n)=>{const r=n(7075);e.exports=(e,t,n)=>r(e,t,">",n)},6780:(e,t,n)=>{const r=n(8311);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},5342:(e,t,n)=>{const r=n(7075);e.exports=(e,t,n)=>r(e,t,"<",n)},9628:(e,t,n)=>{const r=n(3908),i=n(8311);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&-1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},270:(e,t,n)=>{const r=n(3908),i=n(8311);e.exports=(e,t,n)=>{let o=null,a=null,s=null;try{s=new i(t,n)}catch(e){return null}return e.forEach((e=>{s.test(e)&&(o&&1!==a.compare(e)||(o=e,a=new r(o,n)))})),o}},1261:(e,t,n)=>{const r=n(3908),i=n(8311),o=n(5580);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n))return n;if(n=new r("0.0.0-0"),e.test(n))return n;n=null;for(let t=0;t<e.set.length;++t){const i=e.set[t];let a=null;i.forEach((e=>{const t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":a&&!o(t,a)||(a=t);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}})),!a||n&&!o(n,a)||(n=a)}return n&&e.test(n)?n:null}},7075:(e,t,n)=>{const r=n(3908),i=n(3904),{ANY:o}=i,a=n(8311),s=n(7638),c=n(5580),l=n(7059),u=n(5200),p=n(4089);e.exports=(e,t,n,d)=>{let f,h,m,v,g;switch(e=new r(e,d),t=new a(t,d),n){case">":f=c,h=u,m=l,v=">",g=">=";break;case"<":f=l,h=p,m=c,v="<",g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(s(e,t,d))return!1;for(let n=0;n<t.set.length;++n){const r=t.set[n];let a=null,s=null;if(r.forEach((e=>{e.semver===o&&(e=new i(">=0.0.0")),a=a||e,s=s||e,f(e.semver,a.semver,d)?a=e:m(e.semver,s.semver,d)&&(s=e)})),a.operator===v||a.operator===g)return!1;if((!s.operator||s.operator===v)&&h(e,s.semver))return!1;if(s.operator===g&&m(e,s.semver))return!1}return!0}},2525:(e,t,n)=>{const r=n(7638),i=n(560);e.exports=(e,t,n)=>{const o=[];let a=null,s=null;const c=e.sort(((e,t)=>i(e,t,n)));for(const e of c)r(e,t,n)?(s=e,a||(a=e)):(s&&o.push([a,s]),s=null,a=null);a&&o.push([a,null]);const l=[];for(const[e,t]of o)e===t?l.push(e):t||e!==c[0]?t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`):l.push("*");const u=l.join(" || "),p="string"==typeof t.raw?t.raw:String(t);return u.length<p.length?u:t}},5032:(e,t,n)=>{const r=n(8311),i=n(3904),{ANY:o}=i,a=n(7638),s=n(560),c=[new i(">=0.0.0-0")],l=[new i(">=0.0.0")],u=(e,t,n)=>{if(e===t)return!0;if(1===e.length&&e[0].semver===o){if(1===t.length&&t[0].semver===o)return!0;e=n.includePrerelease?c:l}if(1===t.length&&t[0].semver===o){if(n.includePrerelease)return!0;t=l}const r=new Set;let i,u,f,h,m,v,g;for(const t of e)">"===t.operator||">="===t.operator?i=p(i,t,n):"<"===t.operator||"<="===t.operator?u=d(u,t,n):r.add(t.semver);if(r.size>1)return null;if(i&&u){if(f=s(i.semver,u.semver,n),f>0)return null;if(0===f&&(">="!==i.operator||"<="!==u.operator))return null}for(const e of r){if(i&&!a(e,String(i),n))return null;if(u&&!a(e,String(u),n))return null;for(const r of t)if(!a(e,String(r),n))return!1;return!0}let b=!(!u||n.includePrerelease||!u.semver.prerelease.length)&&u.semver,y=!(!i||n.includePrerelease||!i.semver.prerelease.length)&&i.semver;b&&1===b.prerelease.length&&"<"===u.operator&&0===b.prerelease[0]&&(b=!1);for(const e of t){if(g=g||">"===e.operator||">="===e.operator,v=v||"<"===e.operator||"<="===e.operator,i)if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),">"===e.operator||">="===e.operator){if(h=p(i,e,n),h===e&&h!==i)return!1}else if(">="===i.operator&&!a(i.semver,String(e),n))return!1;if(u)if(b&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===b.major&&e.semver.minor===b.minor&&e.semver.patch===b.patch&&(b=!1),"<"===e.operator||"<="===e.operator){if(m=d(u,e,n),m===e&&m!==u)return!1}else if("<="===u.operator&&!a(u.semver,String(e),n))return!1;if(!e.operator&&(u||i)&&0!==f)return!1}return!(i&&v&&!u&&0!==f||u&&g&&!i&&0!==f||y||b)},p=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r>0?e:r<0||">"===t.operator&&">="===e.operator?t:e},d=(e,t,n)=>{if(!e)return t;const r=s(e.semver,t.semver,n);return r<0?e:r>0||"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;e:for(const r of e.set){for(const e of t.set){const t=u(r,e,n);if(i=i||null!==t,t)continue e}if(i)return!1}return!0}},7631:(e,t,n)=>{const r=n(8311);e.exports=(e,t)=>new r(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")))},3874:(e,t,n)=>{const r=n(8311);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},761:(e,t,n)=>{var r={child:n(5317),crypto:n(6982),fs:n(9896),os:n(857),path:n(6928),process,util:n(9023)};function i(e,t){var n=r.process.platform;return"darwin"===n?function(e,t){var n=r.os.tmpdir();return n?r.process.env.USER?void s(e,(function(i,s){if(i)return t(i);function c(n,i,o){a(r.path.dirname(e.path),(function(e){return n?t(n):e?t(e):void t(void 0,i,o)}))}e.uuid=s,e.path=r.path.join(n,e.uuid,e.options.name+".app"),function(e,t){var n=r.path.dirname(e.path);r.fs.mkdir(n,(function(i){if(i)return t(i);var a=r.path.join(n,"sudo-prompt-applet.zip");r.fs.writeFile(a,u,"base64",(function(n){if(n)return t(n);var i=[];i.push("/usr/bin/unzip"),i.push("-o"),i.push('"'+o(a)+'"'),i.push('-d "'+o(e.path)+'"'),i=i.join(" "),r.child.exec(i,{encoding:"utf-8"},t)}))}))}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){if(!e.options.icns)return t();r.fs.readFile(e.options.icns,(function(n,i){if(n)return t(n);var o=r.path.join(e.path,"Contents","Resources","applet.icns");r.fs.writeFile(o,i,t)}))}(e,(function(t){if(t)return c(t);!function(e,t){var n=o(r.path.join(e.path,"Contents","Info.plist")),i=o("CFBundleName"),a=e.options.name+" Password Prompt";if(/'/.test(a))return t(new Error("Value should not contain single quotes."));var s=[];s.push("/usr/bin/defaults"),s.push("write"),s.push('"'+n+'"'),s.push('"'+i+'"'),s.push("'"+a+"'"),s=s.join(" "),r.child.exec(s,{encoding:"utf-8"},t)}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS","sudo-prompt-command"),i=[];for(var a in i.push('cd "'+o(r.process.cwd())+'"'),e.options.env){var s=e.options.env[a];i.push("export "+a+'="'+o(s)+'"')}i.push(e.command),i=i.join("\n"),r.fs.writeFile(n,i,"utf-8",t)}(e,(function(t){if(t)return c(t);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS","applet"),i={cwd:r.path.dirname(n),encoding:"utf-8"};r.child.exec("./"+r.path.basename(n),i,t)}(e,(function(t,n,i){if(t)return c(t,n,i);!function(e,t){var n=r.path.join(e.path,"Contents","MacOS");r.fs.readFile(r.path.join(n,"code"),"utf-8",(function(i,o){if(i){if("ENOENT"===i.code)return t(new Error(p));t(i)}else r.fs.readFile(r.path.join(n,"stdout"),"utf-8",(function(i,a){if(i)return t(i);r.fs.readFile(r.path.join(n,"stderr"),"utf-8",(function(n,r){if(n)return t(n);0===(o=parseInt(o.trim(),10))?t(void 0,a,r):((n=new Error("Command failed: "+e.command+"\n"+r)).code=o,t(n,a,r))}))}))}))}(e,c)}))}))}))}))}))})):t(new Error("env['USER'] not defined.")):t(new Error("os.tmpdir() not defined."))}(e,t):"linux"===n?function(e,t){!function(e,t){var n=0,i=["/usr/bin/kdesudo","/usr/bin/pkexec"];!function e(){if(n===i.length)return t(new Error("Unable to find pkexec or kdesudo."));var o=i[n++];r.fs.stat(o,(function(n){if(n){if("ENOTDIR"===n.code)return e();if("ENOENT"===n.code)return e();t(n)}else t(void 0,o)}))}()}(0,(function(n,i){if(n)return t(n);var a=[];for(var s in a.push('cd "'+o(r.process.cwd())+'";'),e.options.env){var c=e.options.env[s];a.push("export "+s+'="'+o(c)+'";')}a.push('"'+o(i)+'"'),/kdesudo/i.test(i)?(a.push("--comment",'"'+e.options.name+' wants to make changes. Enter your password to allow this."'),a.push("-d"),a.push("--")):/pkexec/i.test(i)&&a.push("--disable-internal-agent");var l="SUDOPROMPT\n";a.push('/bin/bash -c "echo '+o(l.trim())+"; "+o(e.command)+'"'),a=a.join(" "),r.child.exec(a,{encoding:"utf-8",maxBuffer:f},(function(e,n,r){var i=n&&n.slice(0,11)===l;i&&(n=n.slice(11)),e&&!i&&(/No authentication agent found/.test(r)?e.message=d:e.message=p),t(e,n,r)}))}))}(e,t):"win32"===n?function(e,t){var n=r.os.tmpdir();if(!n)return t(new Error("os.tmpdir() not defined."));s(e,(function(i,o){return i?t(i):(e.uuid=o,e.path=r.path.join(n,e.uuid),/"/.test(e.path)?t(new Error("instance.path cannot contain double-quotes.")):(e.pathElevate=r.path.join(e.path,"elevate.vbs"),e.pathExecute=r.path.join(e.path,"execute.bat"),e.pathCommand=r.path.join(e.path,"command.bat"),e.pathStdout=r.path.join(e.path,"stdout"),e.pathStderr=r.path.join(e.path,"stderr"),e.pathStatus=r.path.join(e.path,"status"),void r.fs.mkdir(e.path,(function(n){if(n)return t(n);function i(n,r,i){a(e.path,(function(e){return n?t(n):e?t(e):void t(void 0,r,i)}))}!function(e,t){var n=[];n.push("@echo off"),n.push('call "'+e.pathCommand+'" > "'+e.pathStdout+'" 2> "'+e.pathStderr+'"'),n.push('(echo %ERRORLEVEL%) > "'+e.pathStatus+'"'),n=n.join("\r\n"),r.fs.writeFile(e.pathExecute,n,"utf-8",t)}(e,(function(t){if(t)return i(t);!function(e,t){var n=r.process.cwd();if(/"/.test(n))return t(new Error("process.cwd() cannot contain double-quotes."));var i=[];for(var o in i.push("@echo off"),i.push("chcp 65001>nul"),i.push('cd /d "'+n+'"'),e.options.env){var a=e.options.env[o];i.push("set "+o+"="+a.replace(/([<>\\|&^])/g,"^$1"))}i.push(e.command),i=i.join("\r\n"),r.fs.writeFile(e.pathCommand,i,"utf-8",t)}(e,(function(t){if(t)return i(t);!function(e,t){var n=[];n.push("powershell.exe"),n.push("Start-Process"),n.push("-FilePath"),n.push("\"'"+e.pathExecute.replace(/'/g,"`'")+"'\""),n.push("-WindowStyle hidden"),n.push("-Verb runAs"),n=n.join(" ");var i=r.child.exec(n,{encoding:"utf-8"},(function(e,n,r){if(e)return t(new Error(p),n,r);t()}));i.stdin.end()}(e,(function(t,n,o){if(t)return i(t,n,o);l(e,(function(t){if(t)return i(t);!function(e,t){r.fs.readFile(e.pathStatus,"utf-8",(function(n,i){if(n)return t(n);r.fs.readFile(e.pathStdout,"utf-8",(function(n,o){if(n)return t(n);r.fs.readFile(e.pathStderr,"utf-8",(function(n,r){if(n)return t(n);0===(i=parseInt(i.trim(),10))?t(void 0,o,r):((n=new Error("Command failed: "+e.command+"\r\n"+r)).code=i,t(n,o,r))}))}))}))}(e,i)}))}))}))}))}))))}))}(e,t):void t(new Error("Platform not yet supported."))}function o(e){if("string"!=typeof e)throw new Error("Expected a string.");return e.replace(/"/g,'\\"')}function a(e,t){if("string"!=typeof e||!e.trim())return t(new Error("Argument path not defined."));var n=[];if("win32"===r.process.platform){if(/"/.test(e))return t(new Error("Argument path cannot contain double-quotes."));n.push('rmdir /s /q "'+e+'"')}else n.push("/bin/rm"),n.push("-rf"),n.push('"'+o(r.path.normalize(e))+'"');n=n.join(" "),r.child.exec(n,{encoding:"utf-8"},t)}function s(e,t){r.crypto.randomBytes(256,(function(n,i){n&&(i=Date.now()+""+Math.random());var o=r.crypto.createHash("SHA256");o.update("sudo-prompt-3"),o.update(e.options.name),o.update(e.command),o.update(i);var a=o.digest("hex").slice(-32);if(!a||"string"!=typeof a||32!==a.length)return t(new Error("Expected a valid UUID."));t(void 0,a)}))}function c(e){return!(!/^[a-z0-9 ]+$/i.test(e)||0===e.trim().length||e.length>70)}function l(e,t){r.fs.stat(e.pathStatus,(function(n,i){n&&"ENOENT"===n.code||i.size<2?setTimeout((function(){r.fs.stat(e.pathStdout,(function(n){if(n)return t(new Error(p));l(e,t)}))}),1e3):n?t(n):t()}))}e.exports.exec=function(){if(arguments.length<1||arguments.length>3)throw new Error("Wrong number of arguments.");var e=arguments[0],t={},n=function(){};if("string"!=typeof e)throw new Error("Command should be a string.");if(2===arguments.length)if(r.util.isObject(arguments[1]))t=arguments[1];else{if(!r.util.isFunction(arguments[1]))throw new Error("Expected options or callback.");n=arguments[1]}else if(3===arguments.length){if(!r.util.isObject(arguments[1]))throw new Error("Expected options to be an object.");if(t=arguments[1],!r.util.isFunction(arguments[2]))throw new Error("Expected callback to be a function.");n=arguments[2]}if(/^sudo/i.test(e))return n(new Error('Command should not be prefixed with "sudo".'));if(void 0===t.name){var o=r.process.title;if(!c(o))return n(new Error("process.title cannot be used as a valid name."));t.name=o}else if(!c(t.name))return n(new Error("options.name must be alphanumeric only (spaces are allowed) and <= 70 characters."));if(void 0!==t.icns){if("string"!=typeof t.icns)return n(new Error("options.icns must be a string if provided."));if(0===t.icns.trim().length)return n(new Error("options.icns must not be empty if provided."))}if(void 0!==t.env){if("object"!=typeof t.env)return n(new Error("options.env must be an object if provided."));if(0===Object.keys(t.env).length)return n(new Error("options.env must not be empty if provided."));for(var a in t.env){var s=t.env[a];if("string"!=typeof a||"string"!=typeof s)return n(new Error("options.env environment variables must be strings."));if(!/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(a))return n(new Error("options.env has an invalid environment variable name: "+JSON.stringify(a)));if(/[\r\n]/.test(s))return n(new Error("options.env has an invalid environment variable value: "+JSON.stringify(s)))}}var l=r.process.platform;if("darwin"!==l&&"linux"!==l&&"win32"!==l)return n(new Error("Platform not yet supported."));i({command:e,options:t,uuid:void 0,path:void 0},n)};var u="UEsDBAoAAAAAAO1YcEcAAAAAAAAAAAAAAAAJABwAQ29udGVudHMvVVQJAAPNnElWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACgeXBHlHaGqKEBAAC+AwAAEwAcAENvbnRlbnRzL0luZm8ucGxpc3RVVAkAA1zWSVYtkRBXdXgLAAEE9QEAAAQUAAAAfZNRb5swFIWfl1/BeA9OpSmqJkqVBCJFop1VyKQ9Ta59S6wa27NNCfv1M0naJWTsEXO+c8+9vo7v97UI3sBYruRdeBPNwgAkVYzL6i7cluvpbXifTOLP6bdV+QNngRbcugBvl/lmFYRThBZaC0AoLdMA55uiDLwHQtljGIQ75/RXhNq2jUiviqiqe6FF2CgNxnW5N5t6IGKOhb7M0f0ijj9lnLpk8il+hS5ZrZeNZAIWQqj2ge+B5YoSwX8T5xEbo17ktc40gIZQCm8glK5BuieovP5Dbp3xHSeZrHyCXYxO3wM+2wNtHHkWMAQP/bkxbkOVXPMxKuK0Dz6CMh+Wv3AwQ9gPM7INU1NtVK3Ha8sXlfoB+m6J6b4fRzv0mkezMf6R1Fe5MbG2VYYF+L+lMaGvpIKy01cOC4zzMazYKeNOQYuDYkjfjMcteCWJa8w/Zi2ugubFA5e8buqisw7qU81ltzB0xx3QC5/TFh7J/e385/zL+7+/wWbR/LwIOl/dvHiCXw03YFfEPJ9dwsWu5sV2kwnod3QoeLeL0eGdJJM/UEsDBAoAAAAAAHSBjkgAAAAAAAAAAAAAAAAPABwAQ29udGVudHMvTWFjT1MvVVQJAAMbpQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACABVHBdH7Dk4KTIIAADIYQAAFQAcAENvbnRlbnRzL01hY09TL2FwcGxldFVUCQADMiPZVVOlD1d1eAsAAQT1AQAABBQAAADtnG9sHEcVwGfti7M1/rONLNVtXHqpzsipis+pHOSWFOzEm25at3XrJI2ozbK+W/suuds79vaSuCKSpaOIxRy1+NSPRPAhlWj7AVRaQCWpTRz+CEo+RSKCCho4K67kVhUyAeV4b3fWt17fXZqKFgHvp8zO3/dmdmfPmtl5L7+8/uPXGWMNELZCaGRMgmjHIlxaBCibdcoGsewCljGCIAiCIAiCIAiCIP7r+M21d67zjb/zEaAdwr1bGHuWMQH2/2wAgqqODj0kf0F+8nGfoFRbJ8p9U0C5g/KRgwEZqZLGfrfwwJx+LP2kVWkelD9zJ2NfBr1nWt2xrhNisxWZ3Ex6MpNSc1Z+soqOO+5i7JMYt7vj9BC5jiZXBwirCT2V1c0qOgZAxwMYt9cbRyxnmUljusa9mKBjGON2tgG/PlXNGyeSRlxNGlOZKjpeBR0KxsFx+MB7VJy5GB46OOSrCLPKfEjrH3/gFry+4zOpuH8sm+VF5srW6ltVjZQ3HVnL3KRDDLsflMSADpyDyjuR0urp6AAdHRgHdOD9iOs6Ypl0OmPUupeecOW19OsQAmn3tzBy4LFH5OED3jz0MbYouM8D460BOdTXCaEF6tsgLkF8GeJPQBj16Rb4PTf5xl2NH4J8a5Vy1N3F3OcZzefMaCo5GeVTuJ2P4cUf/aH5qbbP73/utpfeevdbLzwfYfy+Q80woGan/1E+ljo/703g77IaOJY479t5rqFLDag9OjaTs/R0dCQ5aWrmTHS/qaX1ExnzWC66L2PqY7p5PBnTc71TXnn0sG7mkhkjFx3a0IL30e/rQxB+EXL68J4BBLe73r298DySk5tlGPtJY1BmOhZTc727PBH2Ke+ZhF35nTyP80oQBEEQBPFRcJTZVwpvrxZWpLmJkN0VKT4q2iORUGFBOPfnBuFX9nhELOG67f1D9pWxpw4XVrrmTklz+ZY5Wfwurm/t3ffi9cE+uM41vYbbj2fP5kNXt9sXiopwVRj6xhPlr160mttfuVi4Fs2vXv2rfc5u7UeZfxQ+y4pPh/JrpyUUBjmrofzmadGXKf0eui7KK/ZwJLQUiuRAe+mLUFQ+tFKUV3npd7AU9ytz8iqIiXYoUnoBsqdxDbXk3CXcRov9lYhoW5EQjBxb4NoSY9iQsvn5+QSuusrduAybL3eHIIIbLqyIS9CHlY3loB8rldVKuLfyOsE1+a6zhUVxYsFp3Amqz8tr7Lz8dza1JF8TmC3/syivYVtcfxcWOycWQDvuLcrdnc61y7mGnWsErgmsXDbK5TKkscnypJvGhsuH3TQ2X37YTaPQ8ucw7W6t1LR2TFfjekqb0SGTiedTOmz0klZSSyWf0U01pqVSufXGmThsjs20OpU3Yrjuxbnu4u+GP8b1LO6PcX2L4Q6+v8Q07u9aQFLy71Ckt54TIfjfNdzfDkMYhTAOIXHXh39vCYIgCIIgCIIgCIL4z3Nm+84/Ci1Nn8b0ryHsgbBX1rbgOXD7LZJzNtrC0/gFqYOn8csQ/GONguQchPXzcvy+9CBzvk84HxkO+tJH3bRz5Fb0pb/nS3/fl/6BL/2aL43faLzz3Wbmju8W5p6pttaoR9THjgyZ0zEeH2eqqmbNzLShpXVIpxOqflKP5S1dTehaXDeZqhvHk2bGYOo+LZXal0lnM4ZuWMPJXFazYgmmPp7VjWF9SsunrPVa1HpMn0lPm2r8hGZO3aea+nQyZ+mmmtNjFp5i4oG0lTChE+eDj2pm8lbSgDFoln4yCRp00zQyEDmZtBZLbGxnanHzgWh092d29e/uv+/f+DIQBEEQBEEQBEEQ/7P81rX/FxoZm/Xs/5UmtP8PO/W3M9fGvKoPAEfYXLQJ1HOpmk+AJx80OOb5m/URGG9z9c378rVs9F15tPXP1dS3wvVtC+Q9/H4DFX21fQcY9zvo9eXrj6++D0Af1zfqy9eyx3f16QnVMayufr+zXN+sL99YRx/O69er+RdIgXkNxJv9DfBTDIxLPa6Zudr6enz5euO6ke9Bj7TRzr0noK+JbczfyA9hgOvr9OX98t57XNFX3ydhlOsL+2T8+oK/ucrvNOCfEHbbXhAqeebLB/0V7oYp7+Pt8PsZWnl1+urRpAn7SUCcYBX/hkth95kd2cFYllX3bxB4+xCrzcCO6v4PbXzo1fwbEM/H4ds/f/nCgZH+8k+j0vNPv7Jlz7qPQ1PFx+FVPoZ76ozj42K87YP9/cT7xuf9UfpSeP0MsJvzp0A8/4g3w+78ef4R+F4QBEEQBPH/w1Gm2FeUwturytwpUSnmJfta4Q3h3J8aFeE9xf7d1ZBSOCcqhftZ/m+YKuG6wV4qaQzdGED0Z2jJ/zpa9ZcegjIF7fkVaIBrt11nJxYOOepXpPPyKjsvvytOLcnvCWxJfh87V+xTa0rx1Kpj0a8UFqWJhXL3fgHt9xXn+rCz7Bop3rkTEkNj5e7bIZ7HNRZb/ku5XE6g58HyZUzdj6mLjh1/Pbt7XMt5dvfvtLl1Fbv7BtbhrtyEPW6V038H1yE88yQTTkqC1LJVnIeaCNe7dr3sEPEe6lCb9LWGfa3efvNG8pe5fF8NeW8g3n7jCI+/xOOEVH19KvF9oudHH2n/YOtYgiAIgiAIgiAIgiA+fm69mx3aO8bYtkHn/xlwDq8nkwaavz9h9swzc+DWwRrm71A5CJVVjeChTtk26Fqwu0fxQjUL+9vqHVV/KC53OUd+bJxVfBkw7/gzCO5pr3dOK/g+WUQDeZlV/A2QRwJ5THjn1/xcd9BfhlT1KbgpVwLn+W2amGr2//8CUEsDBBQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABwAQ29udGVudHMvTWFjT1Mvc3Vkby1wcm9tcHQtc2NyaXB0VVQJAAOJkBBXipAQV3V4CwABBPUBAAAEFAAAAI1SO08cMRDu91cMHIKGxUB5xSGEUqTlFKWMvPYca+EXnjGXy6/PeNcg0qVay+PvObs5U5OLatI0DxvYIwNVm4BdQGIdMhxSkauJ8K1i7FOjvSdwB2A+/WJnXpEJdEGwjvTk0W6HhTW8WldgzKDedVF2Ug2tLn7svz3DDpTFdxWr93C/u7wbVKWyoDhVM/8XZAOPOXvcm+IyXxGcizeaUca0XJ1D0CfQnlEysE2VwbuII0br4gvdCMF37m9IoC39+oxTO2EpS8oZJdtRS0aIKY5/sCQoyLVEMMki6Ghl0BGN9SeuICkPIctXDHDDSB9oGEQi1yZWUAda8EZnIcR/eIOOVao+9TrbkpYFjLmkkHk0KYSGvdt12/e71cP6Hs2c4OJBemtsYusplVX+GLHQ7DKkQ098/ZF38dLEpRCeNUMlMW90BIseeQkWtuu2qKmIyDHCuqFuo1N11Ud/1Cf6CHb7Sfxld2ATklQoUGEDActfZ5326WU74G/HcDv8BVBLAwQKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAcAENvbnRlbnRzL1BrZ0luZm9VVAkAA82cSVYqkRBXdXgLAAEE9QEAAAQUAAAAQVBQTGFwbHRQSwMECgAAAAAAm3lwRwAAAAAAAAAAAAAAABMAHABDb250ZW50cy9SZXNvdXJjZXMvVVQJAANW1klWLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACACAeXBHfrnysfYGAAAf3AAAHgAcAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUCQADH9ZJVnGlD1d1eAsAAQT1AQAABBQAAADt3Xk81Hkcx/Hvb5yVo5bGsVlKbcpRRqFlGZGS5JikRBIdI0OZttMZloqiYwrVjD1UqJaUokTRubG72bZVjqR1VZNjp2XEGo9H+9gt+9h/9tHx8H7N4/fw5MHjYeaPz+P7+P7x/bL9griEPNBm+001J0S+ZbvL/NmKwzWHE0IUHebYuRFCEckjL9v/xSvk2EpCpBXZtrYuDra2Oi4hwSvZgSsIMU9MdPdePcZd1aqQu0p3fDkrcFrs+mPWihMU9y6clp5XEFFdbRrEczCtGtfkL3pWfvBGublJ4ct051kuocYtaaqll/IjdfR+V75vlTdl//AJVZU6elZ5f0S7NO3MaE2xMElhF+TUrHgW2nFYeGTrs/OrhDJN5zMX8ZJVKXrqSUM1Rj03bnf85/pJMXECNdl0D1ctfe/j82imziM2nllSa3t5q8+vP1f38k/k22uN1lmnvfz0b8dGxO+mnh91v7WB2tKdrG3d4vmJaHlTvjGzdMqWcw/9frnCtQpPZK9sMKi/Ey/jzgqIPzBy9/dlf9griI2/u+sjcApozWx6/NXytC+qBTlrhb69fE7J6tgOzpWjFSl8qxihr5dYf/qExoeupY6Ze/j2PfL1azhhZ8fU3eelJY+ylk16UJN6KmOU0M4r+75cZhH/mxNndowNb4wx7TCoN4yvMGu8ySq5l5W5t+xQyYbS/Ome7e0W0sXbC5aktl0LEXNYR9obH7dMT721dbNdT/eFzXNEYSH8GU+bQ5s6YniGcj3fHtgXPbo0Oj4i3d5G1Fjfm/Ng7kgpjQDNxw4RRnu+Vloy5ZE3J6OpwlFBzaxS25He2h3lJuizO70zJPLUYtks14RE5yrD8y2tXa5l5Wqh/NBY06yoiCLF08Nk9A5Ojbs43GmR1Ch/PaZsLf3e6uPRSrIM1ROqGjt80leqfdxYbNn+WV7K7ZKiy/t6r1/3ie46V5432T/Oahs9V7NnVzb9zoq2rFgvPxXrcAMzmvWnGjof/RpdsZThIEpex6DGbd5h6STaOyZXxV/YfW9u4KyllmZ3X15IMHHLSJtVPSOvULCsz2TyPC/WL9kGSme/1L01SSzjfbHnqk+OV7OBmevZeo3DBR7lXT5drT0MkX5PwDd1EQ0ebfkh1zy/L8ydd+VJ4CLuRndNjuwj+vMfU8q2l2l1rGtr8FC2D+fdSGk81eltuTjYSMk++4BMd0DXQo35iXbZndGdcXkGFyeG6b28evF22M2w22HlYSXetGSLW4cfFT00WqvN9bkqCujQ9KzdSt+snr+qmbcme+5Y3cDRn9BDLps+dPVltE9UkPeb6XovineiVUznTznyuZaSn/ZvR8VeRUYLqe3iHFqnU6+7+4LmtfsmaS0MdjIvslFJGG/rn7DPdMGLcx4d6eP2Oz92Y49kWbBUjudU2ijHnc7YIODQxD1aPx8PynVr+cmvJoy2+M5nQa2Kt0dvdPxp73LNU6aTeaktTfHH1L+8Pm/XalZcFcfzYxlhTefuzjRGobLKEqPZh8QKxUXWbU/ERvW78ghvTGTUNd0g9YqbcjUy5h0xVbn3S7SS54SOqKt88UR0qZuxKfxlZfODUm52o2HkGTOLw5dqhevvWjH7ssiqxAhKwA91d1nWG9w/GJIc7GwWbKKe/mAsGRqXBb87P10jH8/0LY6kpGQV1KcuAwAAeCt4LiVFWRJKs4DJ6p9GxGHWfLuTM5dt61/pzCCE7vLmSodGJM/ASqdzU2U3VjpY6WClg5XOICudUaI3VjocuWCsdAAAAAAAAAAAAAAAAD5o1Gmr054TSoqWxPvnfrLxVEIc29/cT5YmkmdgPzlCSz8a+8nYT8Z+MvaTB9lPZpJX+8lRktFyRdDF0m6IdcF2MgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC8ddD8G5oJkUuQnAXwnvxLAAAAADDkEFURRckVE6rIv+Tb1078MiZEetubJ34RHckzcOIXd8uWTpz4hRO/cOIXTvwa5MQvoidZ5S8a9h8nfl1QVhipQ6jyyWeuvTaBGP3D5fwgE4gpeQYmUCZ7XQ0mECYQJhAm0GATyOfVmYOU4sAdNi+cOUpm/9cdNv2Di8kkFN3mYOtrg8sE14xicGFwYXDhmlEAAD5w/Os1o8bTcM0oVjpY6WClg2tGAQAAAAAAAAAAAAAAgL/wb9eMBpow+r817yN/fwnJf33P5g78nWofEZNXD3u95GdSkh3o135/aL2i3vl/gHf/7t59oDlnDSHS8gQhNGQL8uWs6P+iwPYLDuIOzARqyM+E9QOfA3PIfw4IIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhND70J9QSwMEFAAAAAgA7VhwR/dYplZAAAAAagEAAB4AHABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAkAA82cSVZTpQ9XdXgLAAEE9QEAAAQUAAAAY2BgZGBgYFQBEiDsxjDygJQDPlkmEIEaRpJAQg8kLAMML8bi5OIqIFuouKA4A0jLMTD8/w+S5AdrB7PlBIAEAFBLAwQKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1VUCQADzZxJVi2REFd1eAsAAQT1AQAABBQAAABQSwMEFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAHABDb250ZW50cy9SZXNvdXJjZXMvZGVzY3JpcHRpb24ucnRmZC9UWFQucnRmVVQJAAPNnElWU6UPV3V4CwABBPUBAAAEFAAAACWJOw6AIBAFe08DCBVX2QbWhZgQ1vCpCHcXtHkzkzegtCDB5Xp/g0+UyihARnb70kL/UbvffYpjQODcmk9zKXListxCoUsZA7EQ5S0+dVq085gvUEsDBAoAAAAAAIeBjkgAAAAAAAAAAAAAAAAbABwAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQJAAM9pQ9XLZEQV3V4CwABBPUBAAAEFAAAAFBLAwQUAAAACAAJgI5ICl5liTUBAADMAQAAJAAcAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUCQADcaIPV1OlD1d1eAsAAQT1AQAABBQAAAB9UMtOAkEQrNldd9dhH3Dz6NGYiPIJHjTxLCZeF9iDcXEJC0RvfoI/4sEfIvoHPEQEhbIHvOok01U16emu7vOkaF2dXu7XqrUTcyMATkxCwYKthCAUbmciAQ8O11yFcGBfbF/4jR24WmCvWjwUeXqfNutn13XyEeYYHkqKam+kghdJGfUCvwIfB6jiGAX6aCHHETroCrYFe6IKNEXfGOXChc0v7HKpBRzdSFrtELvbumKVC80F/FIjzwe9bj91uZRuXJuwAiLjNi7DlsxPaJSUAMrCFOeac3GfpINennQ6d/0sA4z7JxzKiVCCV+YHAs74LuuIONUi//4RIoC63czrIbYQS3PFicWJcTMTv1JHmocmROLJ45gjzfHvXJqjf7ZZ4RT+61uaBbDipGh2ZanBcjh8/gFQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAACQAYAAAAAAAAABAA7UEAAAAAQ29udGVudHMvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAoHlwR5R2hqihAQAAvgMAABMAGAAAAAAAAQAAAKSBQwAAAENvbnRlbnRzL0luZm8ucGxpc3RVVAUAA1zWSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAAB0gY5IAAAAAAAAAAAAAAAADwAYAAAAAAAAABAA7UExAgAAQ29udGVudHMvTWFjT1MvVVQFAAMbpQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAVRwXR+w5OCkyCAAAyGEAABUAGAAAAAAAAAAAAO2BegIAAENvbnRlbnRzL01hY09TL2FwcGxldFVUBQADMiPZVXV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAAVHj0ga7FYjfQEAAKoCAAAhABgAAAAAAAEAAADtgfsKAABDb250ZW50cy9NYWNPUy9zdWRvLXByb21wdC1zY3JpcHRVVAUAA4mQEFd1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHqiAGewgAAAAIAAAAEAAYAAAAAAABAAAApIHTDAAAQ29udGVudHMvUGtnSW5mb1VUBQADzZxJVnV4CwABBPUBAAAEFAAAAFBLAQIeAwoAAAAAAJt5cEcAAAAAAAAAAAAAAAATABgAAAAAAAAAEADtQSUNAABDb250ZW50cy9SZXNvdXJjZXMvVVQFAANW1klWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgAgHlwR3658rH2BgAAH9wAAB4AGAAAAAAAAAAAAKSBcg0AAENvbnRlbnRzL1Jlc291cmNlcy9hcHBsZXQuaWNuc1VUBQADH9ZJVnV4CwABBPUBAAAEFAAAAFBLAQIeAxQAAAAIAO1YcEf3WKZWQAAAAGoBAAAeABgAAAAAAAAAAACkgcAUAABDb250ZW50cy9SZXNvdXJjZXMvYXBwbGV0LnJzcmNVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAADtWHBHAAAAAAAAAAAAAAAAJAAYAAAAAAAAABAA7UFYFQAAQ29udGVudHMvUmVzb3VyY2VzL2Rlc2NyaXB0aW9uLnJ0ZmQvVVQFAAPNnElWdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgA7VhwRzPLNU9TAAAAZgAAACsAGAAAAAAAAQAAAKSBthUAAENvbnRlbnRzL1Jlc291cmNlcy9kZXNjcmlwdGlvbi5ydGZkL1RYVC5ydGZVVAUAA82cSVZ1eAsAAQT1AQAABBQAAABQSwECHgMKAAAAAACHgY5IAAAAAAAAAAAAAAAAGwAYAAAAAAAAABAA7UFuFgAAQ29udGVudHMvUmVzb3VyY2VzL1NjcmlwdHMvVVQFAAM9pQ9XdXgLAAEE9QEAAAQUAAAAUEsBAh4DFAAAAAgACYCOSApeZYk1AQAAzAEAACQAGAAAAAAAAAAAAKSBwxYAAENvbnRlbnRzL1Jlc291cmNlcy9TY3JpcHRzL21haW4uc2NwdFVUBQADcaIPV3V4CwABBPUBAAAEFAAAAFBLBQYAAAAADQANANwEAABWGAAAAAA=",p="User did not grant permission.",d="No polkit authentication agent found.",f=134217728},7687:(e,t,n)=>{"use strict";const r=n(857),i=n(2018),o=n(5884),{env:a}=process;let s;function c(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function l(e,t){if(0===s)return 0;if(o("color=16m")||o("color=full")||o("color=truecolor"))return 3;if(o("color=256"))return 2;if(e&&!t&&void 0===s)return 0;const n=s||0;if("dumb"===a.TERM)return n;if("win32"===process.platform){const e=r.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in a)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some((e=>e in a))||"codeship"===a.CI_NAME?1:n;if("TEAMCITY_VERSION"in a)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(a.TEAMCITY_VERSION)?1:0;if("truecolor"===a.COLORTERM)return 3;if("TERM_PROGRAM"in a){const e=parseInt((a.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(a.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(a.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(a.TERM)||"COLORTERM"in a?1:n}o("no-color")||o("no-colors")||o("color=false")||o("color=never")?s=0:(o("color")||o("colors")||o("color=true")||o("color=always"))&&(s=1),"FORCE_COLOR"in a&&(s="true"===a.FORCE_COLOR?1:"false"===a.FORCE_COLOR?0:0===a.FORCE_COLOR.length?1:Math.min(parseInt(a.FORCE_COLOR,10),3)),e.exports={supportsColor:function(e){return c(l(e,e&&e.isTTY))},stdout:c(l(!0,i.isatty(1))),stderr:c(l(!0,i.isatty(2)))}},4200:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i,o,a,s,c,l=n(6928),u=n(9896),p=Object.prototype.toString;function d(e){return void 0!==e}function f(e){return"[object String]"===p.call(e)}function h(e){return JSON.parse(u.readFileSync(e,"utf8"))}function m(e,t){return c&&(e="["+e.replace(/[aouei]/g,"$&$&")+"]"),0===t.length?e:e.replace(/\{(\d+)\}/g,(function(e,n){var r=n[0],i=t[r],o=e;return"string"==typeof i?o=i:"number"!=typeof i&&"boolean"!=typeof i&&null!=i||(o=String(i)),o}))}function v(e){return function(t,n){for(var r,i=[],o=2;o<arguments.length;o++)i[o-2]=arguments[o];return r=t,"[object Number]"===p.call(r)?t>=e.length?void console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack):m(e[t],i):f(n)?(console.warn("Message "+n+" didn't get externalized correctly."),m(n,i)):void console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}function g(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return m(t,n)}function b(e,t){return a[e]=t,t}function y(e){try{return function(e){var t=h(l.join(e,"nls.metadata.json")),n=Object.create(null);for(var r in t){var i=t[r];n[r]=i.messages}return n}(e)}catch(e){return void console.log("Generating default bundle from meta data failed.",e)}}function _(e,t){var n;if(!0===s.languagePackSupport&&void 0!==s.cacheRoot&&void 0!==s.languagePackId&&void 0!==s.translationsConfigFile&&void 0!==s.translationsConfig)try{n=function(e,t){var n,r,i,o=l.join(s.cacheRoot,e.id+"-"+e.hash+".json"),a=!1,c=!1;try{return n=JSON.parse(u.readFileSync(o,{encoding:"utf8",flag:"r"})),r=o,i=new Date,u.utimes(r,i,i,(function(){})),n}catch(e){if("ENOENT"===e.code)c=!0;else{if(!(e instanceof SyntaxError))throw e;console.log("Syntax error parsing message bundle: "+e.message+"."),u.unlink(o,(function(e){e&&console.error("Deleting corrupted bundle "+o+" failed.")})),a=!0}}if(n=function(e,t){var n=s.translationsConfig[e.id];if(n){var r=h(n).contents,i=h(l.join(t,"nls.metadata.json")),o=Object.create(null);for(var a in i){var c=i[a],u=r[e.outDir+"/"+a];if(u){for(var p=[],d=0;d<c.keys.length;d++){var m=c.keys[d],v=u[f(m)?m:m.key];void 0===v&&(v=c.messages[d]),p.push(v)}o[a]=p}else o[a]=c.messages}return o}}(e,t),!n||a)return n;if(c)try{u.writeFileSync(o,JSON.stringify(n),{encoding:"utf8",flag:"wx"})}catch(e){if("EEXIST"===e.code)return n;throw e}return n}(e,t)}catch(e){console.log("Load or create bundle failed ",e)}if(!n){if(s.languagePackSupport)return y(t);var r=function(e){for(var t=s.language;t;){var n=l.join(e,"nls.bundle."+t+".json");if(u.existsSync(n))return n;var r=t.lastIndexOf("-");t=r>0?t.substring(0,r):void 0}if(void 0===t&&(n=l.join(e,"nls.bundle.json"),u.existsSync(n)))return n}(t);if(r)try{return h(r)}catch(e){console.log("Loading in the box message bundle failed.",e)}n=y(t)}return n}function x(e){if(!e)return g;var t=l.extname(e);if(t&&(e=e.substr(0,e.length-t.length)),s.messageFormat===r.both||s.messageFormat===r.bundle){var n=function(e){for(var t,n=l.dirname(e);t=l.join(n,"nls.metadata.header.json"),!u.existsSync(t);){var r=l.dirname(n);if(r===n){t=void 0;break}n=r}return t}(e);if(n){var i=l.dirname(n),o=a[i];if(void 0===o)try{var p=JSON.parse(u.readFileSync(n,"utf8"));try{var f=_(p,i);o=b(i,f?{header:p,nlsBundle:f}:null)}catch(e){console.error("Failed to load nls bundle",e),o=b(i,null)}}catch(e){console.error("Failed to read header file",e),o=b(i,null)}if(o){var m=e.substr(i.length+1).replace(/\\/g,"/"),y=o.nlsBundle[m];return void 0===y?(console.error("Messages for file "+e+" not found. See console for details."),function(){return"Messages not found."}):v(y)}}}if(s.messageFormat===r.both||s.messageFormat===r.file)try{var x=h(function(e){var t;if(s.cacheLanguageResolution&&t);else{if(c||!s.language)t=".nls.json";else for(var n=s.language;n;){var r=".nls."+n+".json";if(u.existsSync(e+r)){t=r;break}var i=n.lastIndexOf("-");i>0?n=n.substring(0,i):(t=".nls.json",n=null)}s.cacheLanguageResolution}return e+t}(e));return Array.isArray(x)?v(x):d(x.messages)&&d(x.keys)?v(x.messages):(console.error("String bundle '"+e+"' uses an unsupported format."),function(){return"File bundle has unsupported format. See console for details"})}catch(e){"ENOENT"!==e.code&&console.error("Failed to load single file bundle",e)}return console.error("Failed to load message bundle for file "+e),function(){return"Failed to load message bundle. See console for details."}}!function(e){e.file="file",e.bundle="bundle",e.both="both"}(r=t.MessageFormat||(t.MessageFormat={})),function(e){e.standalone="standalone",e.languagePack="languagePack"}(i=t.BundleFormat||(t.BundleFormat={})),function(e){e.is=function(e){var t=e;return t&&d(t.key)&&d(t.comment)}}(o||(o={})),function(){if(s={locale:void 0,language:void 0,languagePackSupport:!1,cacheLanguageResolution:!0,messageFormat:r.bundle},f(process.env.VSCODE_NLS_CONFIG))try{var e=JSON.parse(process.env.VSCODE_NLS_CONFIG),t=void 0;if(e.availableLanguages){var n=e.availableLanguages["*"];f(n)&&(t=n)}if(f(e.locale)&&(s.locale=e.locale.toLowerCase()),void 0===t?s.language=s.locale:"en"!==t&&(s.language=t),function(e){return!0===e||!1===e}(e._languagePackSupport)&&(s.languagePackSupport=e._languagePackSupport),f(e._cacheRoot)&&(s.cacheRoot=e._cacheRoot),f(e._languagePackId)&&(s.languagePackId=e._languagePackId),f(e._translationsConfigFile)){s.translationsConfigFile=e._translationsConfigFile;try{s.translationsConfig=h(s.translationsConfigFile)}catch(t){if(e._corruptedFile){var i=l.dirname(e._corruptedFile);u.exists(i,(function(t){t&&u.writeFile(e._corruptedFile,"corrupted","utf8",(function(e){console.error(e)}))}))}}}}catch(e){}c="pseudo"===s.locale,a=Object.create(null)}(),t.loadMessageBundle=x,t.config=function(e){return e&&(f(e.locale)&&(s.locale=e.locale.toLowerCase(),s.language=s.locale,a=Object.create(null)),void 0!==e.messageFormat&&(s.messageFormat=e.messageFormat),e.bundleFormat===i.standalone&&!0===s.languagePackSupport&&(s.languagePackSupport=!1)),c="pseudo"===s.locale,x}},259:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}},8799:(e,t,n)=>{"use strict";function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach((function(e){t.push(e)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n<i;n++)t.push(arguments[n]);return t}function i(e,t,n){var r=t===e.head?new s(n,null,t,e):new s(n,t,t.next,e);return null===r.next&&(e.tail=r),null===r.prev&&(e.head=r),e.length++,r}function o(e,t){e.tail=new s(t,e.tail,null,e),e.head||(e.head=e.tail),e.length++}function a(e,t){e.head=new s(t,null,e.head,e),e.tail||(e.tail=e.head),e.length++}function s(e,t,n,r){if(!(this instanceof s))return new s(e,t,n,r);this.list=r,this.value=e,t?(t.next=this,this.prev=t):this.prev=null,n?(n.prev=this,this.next=n):this.next=null}e.exports=r,r.Node=s,r.create=r,r.prototype.removeNode=function(e){if(e.list!==this)throw new Error("removing node which does not belong to this list");var t=e.next,n=e.prev;return t&&(t.prev=n),n&&(n.next=t),e===this.head&&(this.head=t),e===this.tail&&(this.tail=n),e.list.length--,e.next=null,e.prev=null,e.list=null,t},r.prototype.unshiftNode=function(e){if(e!==this.head){e.list&&e.list.removeNode(e);var t=this.head;e.list=this,e.next=t,t&&(t.prev=e),this.head=e,this.tail||(this.tail=e),this.length++}},r.prototype.pushNode=function(e){if(e!==this.tail){e.list&&e.list.removeNode(e);var t=this.tail;e.list=this,e.prev=t,t&&(t.next=e),this.tail=e,this.head||(this.head=e),this.length++}},r.prototype.push=function(){for(var e=0,t=arguments.length;e<t;e++)o(this,arguments[e]);return this.length},r.prototype.unshift=function(){for(var e=0,t=arguments.length;e<t;e++)a(this,arguments[e]);return this.length},r.prototype.pop=function(){if(this.tail){var e=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,e}},r.prototype.shift=function(){if(this.head){var e=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,e}},r.prototype.forEach=function(e,t){t=t||this;for(var n=this.head,r=0;null!==n;r++)e.call(t,n.value,r,this),n=n.next},r.prototype.forEachReverse=function(e,t){t=t||this;for(var n=this.tail,r=this.length-1;null!==n;r--)e.call(t,n.value,r,this),n=n.prev},r.prototype.get=function(e){for(var t=0,n=this.head;null!==n&&t<e;t++)n=n.next;if(t===e&&null!==n)return n.value},r.prototype.getReverse=function(e){for(var t=0,n=this.tail;null!==n&&t<e;t++)n=n.prev;if(t===e&&null!==n)return n.value},r.prototype.map=function(e,t){t=t||this;for(var n=new r,i=this.head;null!==i;)n.push(e.call(t,i.value,this)),i=i.next;return n},r.prototype.mapReverse=function(e,t){t=t||this;for(var n=new r,i=this.tail;null!==i;)n.push(e.call(t,i.value,this)),i=i.prev;return n},r.prototype.reduce=function(e,t){var n,r=this.head;if(arguments.length>1)n=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=e(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(e,t){var n,r=this.tail;if(arguments.length>1)n=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=e(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,n=this.head;null!==n;t++)e[t]=n.value,n=n.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,n=this.tail;null!==n;t++)e[t]=n.value,n=n.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=0,o=this.head;null!==o&&i<e;i++)o=o.next;for(;null!==o&&i<t;i++,o=o.next)n.push(o.value);return n},r.prototype.sliceReverse=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(t<e||t<0)return n;e<0&&(e=0),t>this.length&&(t=this.length);for(var i=this.length,o=this.tail;null!==o&&i>t;i--)o=o.prev;for(;null!==o&&i>e;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(e,t,...n){e>this.length&&(e=this.length-1),e<0&&(e=this.length+e);for(var r=0,o=this.head;null!==o&&r<e;r++)o=o.next;var a=[];for(r=0;o&&r<t;r++)a.push(o.value),o=this.removeNode(o);for(null===o&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev),r=0;r<n.length;r++)o=i(this,o,n[r]);return a},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,n=e;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=t,this.tail=e,this};try{n(259)(r)}catch(e){}},4648:(e,t,n)=>{var r,i,o;o=n(5288),i=n(3432),r=function(){function e(){}return e.indentation=4,e.prototype.dump=function(e,t,n,r,a){var s,c,l,u,p,d,f;if(null==t&&(t=0),null==n&&(n=0),null==r&&(r=!1),null==a&&(a=null),u="",p=n?o.strRepeat(" ",n):"",t<=0||"object"!=typeof e||e instanceof Date||o.isEmpty(e))u+=p+i.dump(e,r,a);else if(e instanceof Array)for(s=0,l=e.length;s<l;s++)d=e[s],u+=p+"-"+((f=t-1<=0||"object"!=typeof d||o.isEmpty(d))?" ":"\n")+this.dump(d,t-1,f?0:n+this.indentation,r,a)+(f?"\n":"");else for(c in e)d=e[c],f=t-1<=0||"object"!=typeof d||o.isEmpty(d),u+=p+i.dump(c,r,a)+":"+(f?" ":"\n")+this.dump(d,t-1,f?0:n+this.indentation,r,a)+(f?"\n":"");return u},e}(),e.exports=r},5666:(e,t,n)=>{var r,i;i=n(1459),r=function(){var e;function t(){}return t.LIST_ESCAPEES=["\\","\\\\",'\\"','"',"\0","","","","","","","","\b","\t","\n","\v","\f","\r","","","","","","","","","","","","","","","","","","",(e=String.fromCharCode)(133),e(160),e(8232),e(8233)],t.LIST_ESCAPED=["\\\\",'\\"','\\"','\\"',"\\0","\\x01","\\x02","\\x03","\\x04","\\x05","\\x06","\\a","\\b","\\t","\\n","\\v","\\f","\\r","\\x0e","\\x0f","\\x10","\\x11","\\x12","\\x13","\\x14","\\x15","\\x16","\\x17","\\x18","\\x19","\\x1a","\\e","\\x1c","\\x1d","\\x1e","\\x1f","\\N","\\_","\\L","\\P"],t.MAPPING_ESCAPEES_TO_ESCAPED=function(){var e,n,r,i;for(r={},e=n=0,i=t.LIST_ESCAPEES.length;0<=i?n<i:n>i;e=0<=i?++n:--n)r[t.LIST_ESCAPEES[e]]=t.LIST_ESCAPED[e];return r}(),t.PATTERN_CHARACTERS_TO_ESCAPE=new i("[\\x00-\\x1f]|…| |
|
"),t.PATTERN_MAPPING_ESCAPEES=new i(t.LIST_ESCAPEES.join("|").split("\\").join("\\\\")),t.PATTERN_SINGLE_QUOTING=new i("[\\s'\":{}[\\],&*#?]|^[-?|<>=!%@`]"),t.requiresDoubleQuoting=function(e){return this.PATTERN_CHARACTERS_TO_ESCAPE.test(e)},t.escapeWithDoubleQuotes=function(e){var t;return'"'+this.PATTERN_MAPPING_ESCAPEES.replace(e,(t=this,function(e){return t.MAPPING_ESCAPEES_TO_ESCAPED[e]}))+'"'},t.requiresSingleQuoting=function(e){return this.PATTERN_SINGLE_QUOTING.test(e)},t.escapeWithSingleQuotes=function(e){return"'"+e.replace(/'/g,"''")+"'"},t}(),e.exports=r},4916:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<DumpException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<DumpException> "+this.message},e}(),e.exports=t},2087:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseException> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseException> "+this.message},e}(),e.exports=t},9589:e=>{var t,n={}.hasOwnProperty;t=function(){function e(e,t,n){this.message=e,this.parsedLine=t,this.snippet=n}return function(e,t){for(var r in t)n.call(t,r)&&(e[r]=t[r]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(e,Error),e.prototype.toString=function(){return null!=this.parsedLine&&null!=this.snippet?"<ParseMore> "+this.message+" (line "+this.parsedLine+": '"+this.snippet+"')":"<ParseMore> "+this.message},e}(),e.exports=t},3432:(e,t,n)=>{var r,i,o,a,s,c,l,u=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};s=n(1459),c=n(1963),r=n(5666),l=n(5288),o=n(2087),a=n(9589),n(4916),i=function(){function e(){}return e.REGEX_QUOTED_STRING="(?:\"(?:[^\"\\\\]*(?:\\\\.[^\"\\\\]*)*)\"|'(?:[^']*(?:''[^']*)*)')",e.PATTERN_TRAILING_COMMENTS=new s("^\\s*#.*$"),e.PATTERN_QUOTED_SCALAR=new s("^"+e.REGEX_QUOTED_STRING),e.PATTERN_THOUSAND_NUMERIC_SCALAR=new s("^(-|\\+)?[0-9,]+(\\.[0-9]+)?$"),e.PATTERN_SCALAR_BY_DELIMITERS={},e.settings={},e.configure=function(e,t){null==e&&(e=null),null==t&&(t=null),this.settings.exceptionOnInvalidType=e,this.settings.objectDecoder=t},e.parse=function(e,t,n){var r,i;if(null==t&&(t=!1),null==n&&(n=null),this.settings.exceptionOnInvalidType=t,this.settings.objectDecoder=n,null==e)return"";if(0===(e=l.trim(e)).length)return"";switch(r={exceptionOnInvalidType:t,objectDecoder:n,i:0},e.charAt(0)){case"[":i=this.parseSequence(e,r),++r.i;break;case"{":i=this.parseMapping(e,r),++r.i;break;default:i=this.parseScalar(e,null,['"',"'"],r)}if(""!==this.PATTERN_TRAILING_COMMENTS.replace(e.slice(r.i),""))throw new o('Unexpected characters near "'+e.slice(r.i)+'".');return i},e.dump=function(e,t,n){var i,o,a;return null==t&&(t=!1),null==n&&(n=null),null==e?"null":"object"==(a=typeof e)?e instanceof Date?e.toISOString():null==n||"string"!=typeof(o=n(e))&&null==o?this.dumpObject(e):o:"boolean"===a?e?"true":"false":l.isDigits(e)?"string"===a?"'"+e+"'":String(parseInt(e)):l.isNumeric(e)?"string"===a?"'"+e+"'":String(parseFloat(e)):"number"===a?Infinity===e?".Inf":-Infinity===e?"-.Inf":isNaN(e)?".NaN":e:r.requiresDoubleQuoting(e)?r.escapeWithDoubleQuotes(e):r.requiresSingleQuoting(e)?r.escapeWithSingleQuotes(e):""===e?'""':l.PATTERN_DATE.test(e)||"null"===(i=e.toLowerCase())||"~"===i||"true"===i||"false"===i?"'"+e+"'":e},e.dumpObject=function(e,t,n){var r,i,o,a,s;if(null==n&&(n=null),e instanceof Array){for(a=[],r=0,o=e.length;r<o;r++)s=e[r],a.push(this.dump(s));return"["+a.join(", ")+"]"}for(i in a=[],e)s=e[i],a.push(this.dump(i)+": "+this.dump(s));return"{"+a.join(", ")+"}"},e.parseScalar=function(e,t,n,r,i){var a,c,p,d,f,h,m,v;if(null==t&&(t=null),null==n&&(n=['"',"'"]),null==r&&(r=null),null==i&&(i=!0),null==r&&(r={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),a=r.i,h=e.charAt(a),u.call(n,h)>=0){if(d=this.parseQuotedScalar(e,r),a=r.i,null!=t&&(m=l.ltrim(e.slice(a)," ").charAt(0),!(u.call(t,m)>=0)))throw new o("Unexpected characters ("+e.slice(a)+").")}else{if(t){if(c=t.join("|"),null==(f=this.PATTERN_SCALAR_BY_DELIMITERS[c])&&(f=new s("^(.+?)("+c+")"),this.PATTERN_SCALAR_BY_DELIMITERS[c]=f),!(p=f.exec(e.slice(a))))throw new o("Malformed inline YAML string ("+e+").");a+=(d=p[1]).length}else a+=(d=e.slice(a)).length,-1!==(v=d.indexOf(" #"))&&(d=l.rtrim(d.slice(0,v)));i&&(d=this.evaluateScalar(d,r))}return r.i=a,d},e.parseQuotedScalar=function(e,t){var n,r,i;if(n=t.i,!(r=this.PATTERN_QUOTED_SCALAR.exec(e.slice(n))))throw new a("Malformed inline YAML string ("+e.slice(n)+").");return i=r[0].substr(1,r[0].length-2),i='"'===e.charAt(n)?c.unescapeDoubleQuotedString(i):c.unescapeSingleQuotedString(i),n+=r[0].length,t.i=n,i},e.parseSequence=function(e,t){var n,r,i,o,s,c;for(o=[],i=e.length,n=t.i,n+=1;n<i;){switch(t.i=n,e.charAt(n)){case"[":o.push(this.parseSequence(e,t)),n=t.i;break;case"{":o.push(this.parseMapping(e,t)),n=t.i;break;case"]":return o;case",":case" ":case"\n":break;default:if(r='"'===(s=e.charAt(n))||"'"===s,c=this.parseScalar(e,[",","]"],['"',"'"],t),n=t.i,!r&&"string"==typeof c&&(-1!==c.indexOf(": ")||-1!==c.indexOf(":\n")))try{c=this.parseMapping("{"+c+"}")}catch(e){}o.push(c),--n}++n}throw new a("Malformed inline YAML string "+e)},e.parseMapping=function(e,t){var n,r,i,o,s,c,l;for(s={},o=e.length,r=t.i,r+=1,c=!1;r<o;){switch(t.i=r,e.charAt(r)){case" ":case",":case"\n":++r,t.i=r,c=!0;break;case"}":return s}if(c)c=!1;else for(i=this.parseScalar(e,[":"," ","\n"],['"',"'"],t,!1),r=t.i,n=!1;r<o;){switch(t.i=r,e.charAt(r)){case"[":l=this.parseSequence(e,t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0;break;case"{":l=this.parseMapping(e,t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0;break;case":":case" ":case"\n":break;default:l=this.parseScalar(e,[",","}"],['"',"'"],t),r=t.i,void 0===s[i]&&(s[i]=l),n=!0,--r}if(++r,n)break}}throw new a("Malformed inline YAML string "+e)},e.evaluateScalar=function(e,t){var n,r,i,a,s,c,u,p,d;switch(u=(e=l.trim(e)).toLowerCase()){case"null":case"":case"~":return null;case"true":return!0;case"false":return!1;case".inf":case"-.inf":return Infinity;case".nan":return NaN;default:switch(u.charAt(0)){case"!":switch(-1===(a=e.indexOf(" "))?u:u.slice(0,a)){case"!":return-1!==a?parseInt(this.parseScalar(e.slice(2))):null;case"!str":return l.ltrim(e.slice(4));case"!!str":return l.ltrim(e.slice(5));case"!!int":return parseInt(this.parseScalar(e.slice(5)));case"!!bool":return l.parseBoolean(this.parseScalar(e.slice(6)),!1);case"!!float":return parseFloat(this.parseScalar(e.slice(7)));case"!!timestamp":return l.stringToDate(l.ltrim(e.slice(11)));default:if(null==t&&(t={exceptionOnInvalidType:this.settings.exceptionOnInvalidType,objectDecoder:this.settings.objectDecoder,i:0}),s=t.objectDecoder,i=t.exceptionOnInvalidType,s)return-1===(a=(d=l.rtrim(e)).indexOf(" "))?s(d,null):((p=l.ltrim(d.slice(a+1))).length>0||(p=null),s(d.slice(0,a),p));if(i)throw new o("Custom object support when parsing a YAML file has been disabled.");return null}break;case"0":return"0x"===e.slice(0,2)?l.hexDec(e):l.isDigits(e)?l.octDec(e):l.isNumeric(e)?parseFloat(e):e;case"+":return l.isDigits(e)?(c=e,n=parseInt(c),c===String(n)?n:c):l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;case"-":return l.isDigits(e.slice(1))?"0"===e.charAt(1)?-l.octDec(e.slice(1)):(c=e.slice(1),n=parseInt(c),c===String(n)?-n:-c):l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e;default:return(r=l.stringToDate(e))?r:l.isNumeric(e)?parseFloat(e):this.PATTERN_THOUSAND_NUMERIC_SCALAR.test(e)?parseFloat(e.replace(",","")):e}}},e}(),e.exports=i},8450:(e,t,n)=>{var r,i,o,a,s,c;r=n(3432),s=n(1459),c=n(5288),i=n(2087),o=n(9589),a=function(){function e(e){this.offset=null!=e?e:0,this.lines=[],this.currentLineNb=-1,this.currentLine="",this.refs={}}return e.prototype.PATTERN_FOLDED_SCALAR_ALL=new s("^(?:(?<type>![^\\|>]*)\\s+)?(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_FOLDED_SCALAR_END=new s("(?<separator>\\||>)(?<modifiers>\\+|\\-|\\d+|\\+\\d+|\\-\\d+|\\d+\\+|\\d+\\-)?(?<comments> +#.*)?$"),e.prototype.PATTERN_SEQUENCE_ITEM=new s("^\\-((?<leadspaces>\\s+)(?<value>.+?))?\\s*$"),e.prototype.PATTERN_ANCHOR_VALUE=new s("^&(?<ref>[^ ]+) *(?<value>.*)"),e.prototype.PATTERN_COMPACT_NOTATION=new s("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\{\\[].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_MAPPING_ITEM=new s("^(?<key>"+r.REGEX_QUOTED_STRING+"|[^ '\"\\[\\{].*?) *\\:(\\s+(?<value>.+?))?\\s*$"),e.prototype.PATTERN_DECIMAL=new s("\\d+"),e.prototype.PATTERN_INDENT_SPACES=new s("^ +"),e.prototype.PATTERN_TRAILING_LINES=new s("(\n*)$"),e.prototype.PATTERN_YAML_HEADER=new s("^\\%YAML[: ][\\d\\.]+.*\n","m"),e.prototype.PATTERN_LEADING_COMMENTS=new s("^(\\#.*?\n)+","m"),e.prototype.PATTERN_DOCUMENT_MARKER_START=new s("^\\-\\-\\-.*?\n","m"),e.prototype.PATTERN_DOCUMENT_MARKER_END=new s("^\\.\\.\\.\\s*$","m"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION={},e.prototype.CONTEXT_NONE=0,e.prototype.CONTEXT_SEQUENCE=1,e.prototype.CONTEXT_MAPPING=2,e.prototype.parse=function(t,n,o){var a,s,l,u,p,d,f,h,m,v,g,b,y,_,x,w,E,A,S,T,C,I,P,O,N,R,D,k,L,M,j,z,F,B,V;for(null==n&&(n=!1),null==o&&(o=null),this.currentLineNb=-1,this.currentLine="",this.lines=this.cleanup(t).split("\n"),p=null,u=this.CONTEXT_NONE,s=!1;this.moveToNextLine();)if(!this.isCurrentLineEmpty()){if("\t"===this.currentLine[0])throw new i("A YAML file cannot contain tabs as indentation.",this.getRealCurrentLineNb()+1,this.currentLine);if(v=P=!1,V=this.PATTERN_SEQUENCE_ITEM.exec(this.currentLine)){if(this.CONTEXT_MAPPING===u)throw new i("You cannot define a sequence item when in a mapping");u=this.CONTEXT_SEQUENCE,null==p&&(p=[]),null!=V.value&&(I=this.PATTERN_ANCHOR_VALUE.exec(V.value))&&(v=I.ref,V.value=I.value),null==V.value||""===c.trim(V.value," ")||0===c.ltrim(V.value," ").indexOf("#")?this.currentLineNb<this.lines.length-1&&!this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,p.push(k.parse(this.getNextEmbedBlock(null,!0),n,o))):p.push(null):(null!=(L=V.leadspaces)?L.length:void 0)&&(I=this.PATTERN_COMPACT_NOTATION.exec(V.value))?((k=new e(this.getRealCurrentLineNb())).refs=this.refs,l=V.value,m=this.getCurrentLineIndentation(),this.isNextLineIndented(!1)&&(l+="\n"+this.getNextEmbedBlock(m+V.leadspaces.length+1,!0)),p.push(k.parse(l,n,o))):p.push(this.parseValue(V.value,n,o))}else{if(!(V=this.PATTERN_MAPPING_ITEM.exec(this.currentLine))||-1!==V.key.indexOf(" #")){if(1===(T=this.lines.length)||2===T&&c.isEmpty(this.lines[1])){try{t=r.parse(this.lines[0],n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("object"==typeof t){if(t instanceof Array)f=t[0];else for(y in t){f=t[y];break}if("string"==typeof f&&0===f.indexOf("*")){for(p=[],O=0,S=t.length;O<S;O++)a=t[O],p.push(this.refs[a.slice(1)]);t=p}}return t}if("["===(j=c.ltrim(t).charAt(0))||"{"===j)try{return r.parse(t,n,o)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}throw new i("Unable to parse.",this.getRealCurrentLineNb()+1,this.currentLine)}if(this.CONTEXT_SEQUENCE===u)throw new i("You cannot define a mapping item when in a sequence");u=this.CONTEXT_MAPPING,null==p&&(p={}),r.configure(n,o);try{y=r.parseScalar(V.key)}catch(e){throw(d=e).parsedLine=this.getRealCurrentLineNb()+1,d.snippet=this.currentLine,d}if("<<"===y)if(P=!0,s=!0,0===(null!=(M=V.value)?M.indexOf("*"):void 0)){if(z=V.value.slice(1),null==this.refs[z])throw new i('Reference "'+z+'" does not exist.',this.getRealCurrentLineNb()+1,this.currentLine);if("object"!=typeof(F=this.refs[z]))throw new i("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(F instanceof Array)for(h=g=0,w=F.length;g<w;h=++g)t=F[h],null==p[N=String(h)]&&(p[N]=t);else for(y in F)t=F[y],null==p[y]&&(p[y]=t)}else{if(t=null!=V.value&&""!==V.value?V.value:this.getNextEmbedBlock(),(k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,"object"!=typeof(R=k.parse(t,n)))throw new i("YAML merge keys used with a scalar value instead of an object.",this.getRealCurrentLineNb()+1,this.currentLine);if(R instanceof Array)for(_=0,E=R.length;_<E;_++){if("object"!=typeof(D=R[_]))throw new i("Merge items must be objects.",this.getRealCurrentLineNb()+1,D);if(D instanceof Array)for(h=C=0,A=D.length;C<A;h=++C)t=D[h],b=String(h),p.hasOwnProperty(b)||(p[b]=t);else for(y in D)t=D[y],p.hasOwnProperty(y)||(p[y]=t)}else for(y in R)t=R[y],p.hasOwnProperty(y)||(p[y]=t)}else null!=V.value&&(I=this.PATTERN_ANCHOR_VALUE.exec(V.value))&&(v=I.ref,V.value=I.value);P||(null==V.value||""===c.trim(V.value," ")||0===c.ltrim(V.value," ").indexOf("#")?this.isNextLineIndented()||this.isNextLineUnIndentedCollection()?((k=new e(this.getRealCurrentLineNb()+1)).refs=this.refs,B=k.parse(this.getNextEmbedBlock(),n,o),(s||void 0===p[y])&&(p[y]=B)):(s||void 0===p[y])&&(p[y]=null):(B=this.parseValue(V.value,n,o),(s||void 0===p[y])&&(p[y]=B)))}if(v)if(p instanceof Array)this.refs[v]=p[p.length-1];else{for(y in x=null,p)x=y;this.refs[v]=p[x]}}return c.isEmpty(p)?null:p},e.prototype.getRealCurrentLineNb=function(){return this.currentLineNb+this.offset},e.prototype.getCurrentLineIndentation=function(){return this.currentLine.length-c.ltrim(this.currentLine," ").length},e.prototype.getNextEmbedBlock=function(e,t){var n,r,o,a,s,l,u;if(null==e&&(e=null),null==t&&(t=!1),this.moveToNextLine(),null==e){if(a=this.getCurrentLineIndentation(),u=this.isStringUnIndentedCollectionItem(this.currentLine),!this.isCurrentLineEmpty()&&0===a&&!u)throw new i("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}else a=e;for(n=[this.currentLine.slice(a)],t||(o=this.isStringUnIndentedCollectionItem(this.currentLine)),s=!(l=this.PATTERN_FOLDED_SCALAR_END).test(this.currentLine);this.moveToNextLine();)if((r=this.getCurrentLineIndentation())===a&&(s=!l.test(this.currentLine)),!s||!this.isCurrentLineComment())if(this.isCurrentLineBlank())n.push(this.currentLine.slice(a));else{if(o&&!this.isStringUnIndentedCollectionItem(this.currentLine)&&r===a){this.moveToPreviousLine();break}if(r>=a)n.push(this.currentLine.slice(a));else if("#"!==c.ltrim(this.currentLine).charAt(0)){if(0===r){this.moveToPreviousLine();break}throw new i("Indentation problem.",this.getRealCurrentLineNb()+1,this.currentLine)}}return n.join("\n")},e.prototype.moveToNextLine=function(){return!(this.currentLineNb>=this.lines.length-1||(this.currentLine=this.lines[++this.currentLineNb],0))},e.prototype.moveToPreviousLine=function(){this.currentLine=this.lines[--this.currentLineNb]},e.prototype.parseValue=function(e,t,n){var a,s,l,u,p,d,f,h;if(0===e.indexOf("*")){if(p=e.indexOf("#"),e=-1!==p?e.substr(1,p-2):e.slice(1),void 0===this.refs[e])throw new i('Reference "'+e+'" does not exist.',this.currentLine);return this.refs[e]}if(l=this.PATTERN_FOLDED_SCALAR_ALL.exec(e))return u=null!=(d=l.modifiers)?d:"",s=Math.abs(parseInt(u)),isNaN(s)&&(s=0),h=this.parseFoldedScalar(l.separator,this.PATTERN_DECIMAL.replace(u,""),s),null!=l.type?(r.configure(t,n),r.parseScalar(l.type+" "+h)):h;if("["!==(f=e.charAt(0))&&"{"!==f&&'"'!==f&&"'"!==f)return this.isNextLineIndented()&&(e+="\n"+this.getNextEmbedBlock()),r.parse(e,t,n);for(;;)try{return r.parse(e,t,n)}catch(t){if(!((a=t)instanceof o&&this.moveToNextLine()))throw a.parsedLine=this.getRealCurrentLineNb()+1,a.snippet=this.currentLine,a;e+="\n"+c.trim(this.currentLine," ")}},e.prototype.parseFoldedScalar=function(t,n,r){var i,o,a,l,u,p,d,f,h,m;if(null==n&&(n=""),null==r&&(r=0),!(d=this.moveToNextLine()))return"";for(i=this.isCurrentLineBlank(),m="";d&&i;)(d=this.moveToNextLine())&&(m+="\n",i=this.isCurrentLineBlank());if(0===r&&(u=this.PATTERN_INDENT_SPACES.exec(this.currentLine))&&(r=u[0].length),r>0)for(null==(f=this.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r])&&(f=new s("^ {"+r+"}(.*)$"),e.prototype.PATTERN_FOLDED_SCALAR_BY_INDENTATION[r]=f);d&&(i||(u=f.exec(this.currentLine)));)m+=i?this.currentLine.slice(r):u[1],(d=this.moveToNextLine())&&(m+="\n",i=this.isCurrentLineBlank());else d&&(m+="\n");if(d&&this.moveToPreviousLine(),">"===t){for(p="",o=0,a=(h=m.split("\n")).length;o<a;o++)0===(l=h[o]).length||" "===l.charAt(0)?p=c.rtrim(p," ")+l+"\n":p+=l+" ";m=p}return"+"!==n&&(m=c.rtrim(m)),""===n?m=this.PATTERN_TRAILING_LINES.replace(m,"\n"):"-"===n&&(m=this.PATTERN_TRAILING_LINES.replace(m,"")),m},e.prototype.isNextLineIndented=function(e){var t,n,r;if(null==e&&(e=!0),n=this.getCurrentLineIndentation(),t=!this.moveToNextLine(),e)for(;!t&&this.isCurrentLineEmpty();)t=!this.moveToNextLine();else for(;!t&&this.isCurrentLineBlank();)t=!this.moveToNextLine();return!t&&(r=!1,this.getCurrentLineIndentation()>n&&(r=!0),this.moveToPreviousLine(),r)},e.prototype.isCurrentLineEmpty=function(){var e;return 0===(e=c.trim(this.currentLine," ")).length||"#"===e.charAt(0)},e.prototype.isCurrentLineBlank=function(){return""===c.trim(this.currentLine," ")},e.prototype.isCurrentLineComment=function(){return"#"===c.ltrim(this.currentLine," ").charAt(0)},e.prototype.cleanup=function(e){var t,n,r,i,o,a,s,l,u,p,d,f,h,m;for(-1!==e.indexOf("\r")&&(e=e.split("\r\n").join("\n").split("\r").join("\n")),t=0,e=(p=this.PATTERN_YAML_HEADER.replaceAll(e,""))[0],t=p[1],this.offset+=t,m=(d=this.PATTERN_LEADING_COMMENTS.replaceAll(e,"",1))[0],1===(t=d[1])&&(this.offset+=c.subStrCount(e,"\n")-c.subStrCount(m,"\n"),e=m),m=(f=this.PATTERN_DOCUMENT_MARKER_START.replaceAll(e,"",1))[0],1===(t=f[1])&&(this.offset+=c.subStrCount(e,"\n")-c.subStrCount(m,"\n"),e=m,e=this.PATTERN_DOCUMENT_MARKER_END.replace(e,"")),h=-1,i=0,a=(u=e.split("\n")).length;i<a;i++)l=u[i],0!==c.trim(l," ").length&&(r=l.length-c.ltrim(l).length,(-1===h||r<h)&&(h=r));if(h>0){for(n=o=0,s=u.length;o<s;n=++o)l=u[n],u[n]=l.slice(h);e=u.join("\n")}return e},e.prototype.isNextLineUnIndentedCollection=function(e){var t,n;for(null==e&&(e=null),null==e&&(e=this.getCurrentLineIndentation()),t=this.moveToNextLine();t&&this.isCurrentLineEmpty();)t=this.moveToNextLine();return!1!==t&&(n=!1,this.getCurrentLineIndentation()===e&&this.isStringUnIndentedCollectionItem(this.currentLine)&&(n=!0),this.moveToPreviousLine(),n)},e.prototype.isStringUnIndentedCollectionItem=function(){return"-"===this.currentLine||"- "===this.currentLine.slice(0,2)},e}(),e.exports=a},1459:e=>{var t;t=function(){function e(e,t){var n,r,i,o,a,s,c,l,u;for(null==t&&(t=""),i="",a=e.length,s=null,r=0,o=0;o<a;){if("\\"===(n=e.charAt(o)))i+=e.slice(o,+(o+1)+1||9e9),o++;else if("("===n)if(o<a-2)if("(?:"===(l=e.slice(o,+(o+2)+1||9e9)))o+=2,i+=l;else if("(?<"===l)for(r++,o+=2,c="";o+1<a;){if(">"===(u=e.charAt(o+1))){i+="(",o++,c.length>0&&(null==s&&(s={}),s[c]=r);break}c+=u,o++}else i+=n,r++;else i+=n;else i+=n;o++}this.rawRegex=e,this.cleanedRegex=i,this.regex=new RegExp(this.cleanedRegex,"g"+t.replace("g","")),this.mapping=s}return e.prototype.regex=null,e.prototype.rawRegex=null,e.prototype.cleanedRegex=null,e.prototype.mapping=null,e.prototype.exec=function(e){var t,n,r,i;if(this.regex.lastIndex=0,null==(n=this.regex.exec(e)))return null;if(null!=this.mapping)for(r in i=this.mapping)t=i[r],n[r]=n[t];return n},e.prototype.test=function(e){return this.regex.lastIndex=0,this.regex.test(e)},e.prototype.replace=function(e,t){return this.regex.lastIndex=0,e.replace(this.regex,t)},e.prototype.replaceAll=function(e,t,n){var r;for(null==n&&(n=0),this.regex.lastIndex=0,r=0;this.regex.test(e)&&(0===n||r<n);)this.regex.lastIndex=0,e=e.replace(this.regex,t),r++;return[e,r]},e}(),e.exports=t},1963:(e,t,n)=>{var r,i,o;o=n(5288),r=n(1459),i=function(){function e(){}return e.PATTERN_ESCAPED_CHARACTER=new r('\\\\([0abt\tnvfre "\\/\\\\N_LP]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})'),e.unescapeSingleQuotedString=function(e){return e.replace(/\'\'/g,"'")},e.unescapeDoubleQuotedString=function(e){var t;return null==this._unescapeCallback&&(this._unescapeCallback=(t=this,function(e){return t.unescapeCharacter(e)})),this.PATTERN_ESCAPED_CHARACTER.replace(e,this._unescapeCallback)},e.unescapeCharacter=function(e){var t;switch(t=String.fromCharCode,e.charAt(1)){case"0":return t(0);case"a":return t(7);case"b":return t(8);case"t":case"\t":return"\t";case"n":return"\n";case"v":return t(11);case"f":return t(12);case"r":return t(13);case"e":return t(27);case" ":return" ";case'"':return'"';case"/":return"/";case"\\":return"\\";case"N":return t(133);case"_":return t(160);case"L":return t(8232);case"P":return t(8233);case"x":return o.utf8chr(o.hexDec(e.substr(2,2)));case"u":return o.utf8chr(o.hexDec(e.substr(2,4)));case"U":return o.utf8chr(o.hexDec(e.substr(2,8)));default:return""}},e}(),e.exports=i},5288:(e,t,n)=>{var r,i,o={}.hasOwnProperty;r=n(1459),i=function(){function e(){}return e.REGEX_LEFT_TRIM_BY_CHAR={},e.REGEX_RIGHT_TRIM_BY_CHAR={},e.REGEX_SPACES=/\s+/g,e.REGEX_DIGITS=/^\d+$/,e.REGEX_OCTAL=/[^0-7]/gi,e.REGEX_HEXADECIMAL=/[^a-f0-9]/gi,e.PATTERN_DATE=new r("^(?<year>[0-9][0-9][0-9][0-9])-(?<month>[0-9][0-9]?)-(?<day>[0-9][0-9]?)(?:(?:[Tt]|[ \t]+)(?<hour>[0-9][0-9]?):(?<minute>[0-9][0-9]):(?<second>[0-9][0-9])(?:.(?<fraction>[0-9]*))?(?:[ \t]*(?<tz>Z|(?<tz_sign>[-+])(?<tz_hour>[0-9][0-9]?)(?::(?<tz_minute>[0-9][0-9]))?))?)?$","i"),e.LOCAL_TIMEZONE_OFFSET=60*(new Date).getTimezoneOffset()*1e3,e.trim=function(e,t){var n,r;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,null==(r=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=r=new RegExp(t+""+t+"*$")),r.lastIndex=0,e.replace(n,"").replace(r,"")},e.ltrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_LEFT_TRIM_BY_CHAR[t])&&(this.REGEX_LEFT_TRIM_BY_CHAR[t]=n=new RegExp("^"+t+t+"*")),n.lastIndex=0,e.replace(n,"")},e.rtrim=function(e,t){var n;return null==t&&(t="\\s"),null==(n=this.REGEX_RIGHT_TRIM_BY_CHAR[t])&&(this.REGEX_RIGHT_TRIM_BY_CHAR[t]=n=new RegExp(t+""+t+"*$")),n.lastIndex=0,e.replace(n,"")},e.isEmpty=function(e){return!e||""===e||"0"===e||e instanceof Array&&0===e.length||this.isEmptyObject(e)},e.isEmptyObject=function(e){var t;return e instanceof Object&&0===function(){var n;for(t in n=[],e)o.call(e,t)&&n.push(t);return n}().length},e.subStrCount=function(e,t,n,r){var i,o,a,s,c,l;for(i=0,e=""+e,t=""+t,null!=n&&(e=e.slice(n)),null!=r&&(e=e.slice(0,r)),s=e.length,l=t.length,o=a=0,c=s;0<=c?a<c:a>c;o=0<=c?++a:--a)t===e.slice(o,l)&&(i++,o+=l-1);return i},e.isDigits=function(e){return this.REGEX_DIGITS.lastIndex=0,this.REGEX_DIGITS.test(e)},e.octDec=function(e){return this.REGEX_OCTAL.lastIndex=0,parseInt((e+"").replace(this.REGEX_OCTAL,""),8)},e.hexDec=function(e){return this.REGEX_HEXADECIMAL.lastIndex=0,"0x"===((e=this.trim(e))+"").slice(0,2)&&(e=(e+"").slice(2)),parseInt((e+"").replace(this.REGEX_HEXADECIMAL,""),16)},e.utf8chr=function(e){var t;return t=String.fromCharCode,128>(e%=2097152)?t(e):2048>e?t(192|e>>6)+t(128|63&e):65536>e?t(224|e>>12)+t(128|e>>6&63)+t(128|63&e):t(240|e>>18)+t(128|e>>12&63)+t(128|e>>6&63)+t(128|63&e)},e.parseBoolean=function(e,t){var n;return null==t&&(t=!0),"string"==typeof e?(n=e.toLowerCase(),!(!t&&"no"===n)&&"0"!==n&&"false"!==n&&""!==n):!!e},e.isNumeric=function(e){return this.REGEX_SPACES.lastIndex=0,"number"==typeof e||"string"==typeof e&&!isNaN(e)&&""!==e.replace(this.REGEX_SPACES,"")},e.stringToDate=function(e){var t,n,r,i,o,a,s,c,l,u;if(!(null!=e?e.length:void 0))return null;if(!(o=this.PATTERN_DATE.exec(e)))return null;if(u=parseInt(o.year,10),s=parseInt(o.month,10)-1,n=parseInt(o.day,10),null==o.hour)return new Date(Date.UTC(u,s,n));if(i=parseInt(o.hour,10),a=parseInt(o.minute,10),c=parseInt(o.second,10),null!=o.fraction){for(r=o.fraction.slice(0,3);r.length<3;)r+="0";r=parseInt(r,10)}else r=0;return null!=o.tz&&(l=6e4*(60*parseInt(o.tz_hour,10)+(null!=o.tz_minute?parseInt(o.tz_minute,10):0)),"-"===o.tz_sign&&(l*=-1)),t=new Date(Date.UTC(u,s,n,i,a,c,r)),l&&t.setTime(t.getTime()-l),t},e.strRepeat=function(e,t){var n,r;for(r="",n=0;n<t;)r+=e,n++;return r},e.getStringFromFile=function(e,t){var r,i,o,a,s,c,l;if(null==t&&(t=null),l=null,"undefined"!=typeof window&&null!==window)if(window.XMLHttpRequest)l=new XMLHttpRequest;else if(window.ActiveXObject)for(o=0,a=(c=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"]).length;o<a;o++){s=c[o];try{l=new ActiveXObject(s)}catch(e){}}return null!=l?null!=t?(l.onreadystatechange=function(){if(4===l.readyState)return 200===l.status||0===l.status?t(l.responseText):t(null)},l.open("GET",e,!0),l.send(null)):(l.open("GET",e,!1),l.send(null),200===l.status||0===l.status?l.responseText:null):(i=n(9896),null!=t?i.readFile(e,(function(e,n){return t(e?null:String(n))})):null!=(r=i.readFileSync(e))?String(r):null)},e}(),e.exports=i},9238:function(e,t,n){var r,i,o,a;i=n(8450),r=n(4648),o=n(5288),a=function(){function e(){}return e.parse=function(e,t,n){return null==t&&(t=!1),null==n&&(n=null),(new i).parse(e,t,n)},e.parseFile=function(e,t,n,r){var i,a;return null==t&&(t=null),null==n&&(n=!1),null==r&&(r=null),null!=t?o.getStringFromFile(e,(a=this,function(e){var i;i=null,null!=e&&(i=a.parse(e,n,r)),t(i)})):null!=(i=o.getStringFromFile(e))?this.parse(i,n,r):null},e.dump=function(e,t,n,i,o){var a;return null==t&&(t=2),null==n&&(n=4),null==i&&(i=!1),null==o&&(o=null),(a=new r).indentation=n,a.dump(e,t,0,i,o)},e.stringify=function(e,t,n,r,i){return this.dump(e,t,n,r,i)},e.load=function(e,t,n,r){return this.parseFile(e,t,n,r)},e}(),"undefined"!=typeof window&&null!==window&&(window.YAML=a),"undefined"!=typeof window&&null!==window||(this.YAML=a),e.exports=a},1318:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>se,BaseCore:()=>ue,BaseTelemetryPlugin:()=>Ee.s,CoreUtils:()=>re,DiagnosticLogger:()=>m.wq,ESPromise:()=>he,ESPromiseScheduler:()=>_e,EventHelper:()=>A.fs,EventLatency:()=>l,EventPersistence:()=>p,EventPropertyType:()=>u,EventsDiscardedReason:()=>Te.x,FullVersionString:()=>O,InternalAppInsightsCore:()=>b._,InternalBaseCore:()=>ce.F,LoggingSeverity:()=>s.b,MinChannelPriorty:()=>Se.T,NotificationManager:()=>we.h,PerfEvent:()=>v.Q6,PerfManager:()=>v.NS,ProcessTelemetryContext:()=>Ae.W0,TraceLevel:()=>d,Undefined:()=>S.bA,Utils:()=>ne,ValueKind:()=>c,ValueSanitizer:()=>xe,Version:()=>P,_ExtendedInternalMessageId:()=>f,_InternalLogMessage:()=>m.WD,_InternalMessageId:()=>s.$,__getRegisteredEvents:()=>T.El,_logInternalMessage:()=>m.Oc,_throwInternal:()=>m.ZP,_warnToConsole:()=>m.OG,addEventHandler:()=>T.So,addEventListeners:()=>T.lQ,addPageHideEventListener:()=>T.Fc,addPageShowEventListener:()=>T.oS,addPageUnloadEventListener:()=>T.ee,areCookiesSupported:()=>E.gi,arrForEach:()=>a.Iu,arrIndexOf:()=>a.rD,arrMap:()=>a.W$,arrReduce:()=>a.KT,attachEvent:()=>T.Q3,cookieAvailable:()=>E.gi,createCookieMgr:()=>E.xN,createEnumStyle:()=>o.Hj,createGuid:()=>K,createProcessTelemetryContext:()=>Ae.i8,createTraceParent:()=>Pe.wk,createUniqueNamespace:()=>Ce.Z,createUnloadHandlerContainer:()=>Ie.P,dateNow:()=>a.x3,deleteCookie:()=>$,detachEvent:()=>T.Ym,disableCookies:()=>H,disallowsSameSiteNone:()=>E.It,doPerf:()=>v.r2,dumpObj:()=>g.mm,eventOff:()=>T.ML,eventOn:()=>T.mB,extend:()=>X,findW3cTraceParent:()=>Pe.ef,formatTraceParent:()=>Pe.L0,generateW3CId:()=>A.cL,getCommonSchemaMetaData:()=>q,getConsole:()=>g.U5,getCookie:()=>W,getCookieValue:()=>Q,getCrypto:()=>g.MY,getDocument:()=>g.YE,getExceptionName:()=>a.lL,getFieldValueType:()=>te,getGlobal:()=>I.mS,getGlobalInst:()=>g.EH,getHistory:()=>g.JK,getIEVersion:()=>g.L0,getISOString:()=>a._u,getJSON:()=>g.hm,getLocation:()=>g.g$,getMsCrypto:()=>g.iN,getNavigator:()=>g.w3,getPerformance:()=>g.FJ,getSetValue:()=>a.c2,getTenantId:()=>F,getTime:()=>Y,getWindow:()=>g.zk,hasDocument:()=>g.Wt,hasHistory:()=>g.tw,hasJSON:()=>g.Z,hasNavigator:()=>g.w9,hasOwnProperty:()=>a.mQ,hasWindow:()=>g.Vd,isArray:()=>a.cy,isArrayValid:()=>Z,isBeaconsSupported:()=>g.Uf,isBoolean:()=>a.Lm,isChromium:()=>ie,isDate:()=>a.$P,isDocumentObjectAvailable:()=>M,isError:()=>a.bJ,isFetchSupported:()=>g.R7,isFunction:()=>a.Tn,isIE:()=>g.lT,isLatency:()=>V,isNotTruthy:()=>a.wo,isNullOrUndefined:()=>a.hX,isNumber:()=>a.Et,isObject:()=>a.Gv,isReactNative:()=>g.lV,isSampledFlag:()=>Pe.N7,isString:()=>a.Kg,isTruthy:()=>a.zz,isTypeof:()=>a.Ed,isUint8ArrayAvailable:()=>B,isUndefined:()=>a.b0,isValidSpanId:()=>Pe.wN,isValidTraceId:()=>Pe.hX,isValidTraceParent:()=>Pe.mJ,isValueAssigned:()=>z,isValueKind:()=>J,isWindowObjectAvailable:()=>j,isXhrSupported:()=>g.xk,mergeEvtNamespace:()=>T.Hm,newGuid:()=>A.aq,newId:()=>C.Si,normalizeJsName:()=>a.cH,objCreate:()=>I.AQ,objDefineAccessors:()=>a.r,objForEachKey:()=>a.z,objFreeze:()=>a.N6,objKeys:()=>a.cG,objSeal:()=>a.js,openXhr:()=>oe,optimizeObject:()=>a.hW,parseTraceParent:()=>Pe.ZI,perfNow:()=>A.UU,proxyAssign:()=>a.qz,proxyFunctionAs:()=>a.RF,proxyFunctions:()=>a.o$,random32:()=>C.VN,randomValue:()=>C.Z1,removeEventHandler:()=>T.zh,removeEventListeners:()=>T.Wg,removePageHideEventListener:()=>T.sq,removePageShowEventListener:()=>T.vF,removePageUnloadEventListener:()=>T.Ds,safeGetCookieMgr:()=>E.um,safeGetLogger:()=>m.y0,sanitizeProperty:()=>U,setCookie:()=>G,setEnableEnvMocks:()=>g.cU,setProcessTelemetryTimings:()=>ee,setValue:()=>a.KY,strContains:()=>a.Ju,strEndsWith:()=>a.Cv,strFunction:()=>S.hW,strObject:()=>S._1,strPrototype:()=>S.vR,strStartsWith:()=>a.tG,strTrim:()=>a.EH,strUndefined:()=>S.bA,throwError:()=>a.$8,toISOString:()=>a._u,useXDomainRequest:()=>g.PV});var r,i=n(212),o=n(3435),a=n(2504),s=n(6166),c=(0,o.Hj)({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,CustomerContent_GenericContent:32}),l=(0,o.Hj)({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),u=(0,o.Hj)({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),p=(0,o.Hj)({Normal:1,Critical:2}),d=(0,o.Hj)({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),f=(0,a.N6)((0,i.Im)((0,i.Im)({},s.$),(0,o.Hj)({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),h=n(1356),m=n(6392),v=n(5441),g=n(8323),b=n(6382),y="",_="https://browser.events.data.microsoft.com/OneCollector/1.0/",x="version",w="properties",E=n(5691),A=n(5955),S=n(7245),T=n(4838),C=n(9668),I=n(9381),P="3.2.13",O="1DS-Web-JS-"+P,N="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",R="withCredentials",D="timeout",k=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),L=null,M=Boolean((0,g.YE)()),j=Boolean((0,g.zk)());function z(e){return!(e===y||(0,a.hX)(e))}function F(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return y}function B(){return null===L&&(L=!(0,a.b0)(Uint8Array)&&!function(){var e=(0,g.w3)();if(!(0,a.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,g.lV)()),L}function V(e){return!!(e&&(0,a.Et)(e)&&e>=1&&e<=4)}function U(e,t,n){if(!t&&!z(t)||"string"!=typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.cy)(t))t={value:t};else if("object"!==r||S.J$.call(t,"value")){if((0,a.hX)(t.value)||t.value===y||!(0,a.Kg)(t.value)&&!(0,a.Et)(t.value)&&!(0,a.Lm)(t.value)&&!(0,a.cy)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.cy)(t.value)&&!Z(t.value))return null;if(!(0,a.hX)(t.kind)){if((0,a.cy)(t.value)||!J(t.kind))return null;t.value=t.value.toString()}return t}function q(e,t,n){var r=-1;if(!(0,a.b0)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){return e>=0&&e<=9}(n))-1===r&&(r=0),r|=n;else{var i=k[te(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function H(){(0,E.um)(null).setEnabled(!1)}function G(e,t,n){(0,E.gi)(null)&&(0,E.um)(null).set(e,t,86400*n,null,"/")}function $(e){(0,E.gi)(null)&&(0,E.um)(null).del(e)}function W(e){return(0,E.gi)(null)?Q((0,E.um)(null),e):y}function Q(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||y}function K(e){void 0===e&&(e="D");var t=(0,A.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,y)),t}function X(e,t,n,r,i){var o={},s=!1,c=0,l=arguments.length,u=arguments;for("[object Boolean]"===Object[S.vR].toString.call(u[0])&&(s=u[0],c++);c<l;c++)e=u[c],(0,a.z)(e,(function(e,t){s&&t&&(0,a.Gv)(t)?(0,a.cy)(t)?(o[e]=o[e]||[],(0,a.Iu)(t,(function(t,n){t&&(0,a.Gv)(t)?o[e][n]=X(!0,o[e][n],t):o[e][n]=t}))):o[e]=X(!0,o[e],t):o[e]=t}));return o}var Y=A.UU;function J(e){return 0===e||e>0&&e<=13||32===e}function Z(e){return e.length>0}function ee(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=Y()}function te(e){var t=0;if(null!=e){var n=typeof e;"string"===n?t=1:"number"===n?t=2:"boolean"===n?t=3:n===S._1&&(t=4,(0,a.cy)(e)?(t=4096,e.length>0&&(t|=te(e[0]))):S.J$.call(e,"value")&&(t=8192|te(e.value)))}return t}var ne={Version:P,FullVersionString:O,strUndefined:S.bA,strObject:S._1,Undefined:S.bA,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,objKeys:a.cG,toISOString:a._u,isReactNative:g.lV,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,isFunction:a.Tn,isArray:a.cy,isObject:a.Gv,strTrim:a.EH,isDocumentObjectAvailable:M,isWindowObjectAvailable:j,isValueAssigned:z,getTenantId:F,isBeaconsSupported:g.Uf,isUint8ArrayAvailable:B,isLatency:V,sanitizeProperty:U,getISOString:a._u,useXDomainRequest:g.PV,getCommonSchemaMetaData:q,cookieAvailable:E.gi,disallowsSameSiteNone:E.It,setCookie:G,deleteCookie:$,getCookie:W,createGuid:K,extend:X,getTime:Y,isValueKind:J,isArrayValid:Z,objDefineAccessors:a.r,addPageUnloadEventListener:T.ee,setProcessTelemetryTimings:ee,addEventHandler:T.So,getFieldValueType:te,strEndsWith:a.Cv,objForEachKey:a.z},re={_canUseCookies:void 0,isTypeof:a.Ed,isUndefined:a.b0,isNullOrUndefined:a.hX,hasOwnProperty:a.mQ,isFunction:a.Tn,isObject:a.Gv,isDate:a.$P,isArray:a.cy,isError:a.bJ,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,toISOString:a._u,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,strTrim:a.EH,objCreate:I.AQ,objKeys:a.cG,objDefineAccessors:a.r,addEventHandler:T.So,dateNow:a.x3,isIE:g.lT,disableCookies:H,newGuid:A.aq,perfNow:A.UU,newId:C.Si,randomValue:C.Z1,random32:C.VN,mwcRandomSeed:C.yc,mwcRandom32:C.k5,generateW3CId:A.cL};function ie(){return!!(0,g.EH)("chrome")}function oe(e,t,n,r,i,o){function a(e,t,n){try{e[t]=n}catch(e){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var s=new XMLHttpRequest;return r&&a(s,N,r),n&&a(s,R,n),s.open(e,t,!i),n&&a(s,R,n),!i&&o&&a(s,D,o),s}var ae=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,h.default)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new m.wq({loggingLevelConsole:1})),e.initialize=function(n,r,i,o){(0,v.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var s=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=_);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,a.$8)("Invalid property storage override passed."),n.channels&&(0,a.Iu)(n.channels,(function(e){e&&(0,a.Iu)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}}))}))}e.getWParam=function(){return"undefined"!=typeof document||n.enableWParam?0:-1},r&&(0,a.Iu)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;s.push(t)}})),e.pluginVersionString=s.join(";"),e.pluginVersionStringArr=s;try{t.initialize(n,r,i,o),e.pollInternalLogs("InternalLog")}catch(t){var l=e.logger,u=(0,g.mm)(t);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),(0,m.ZP)(l,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:o}}))},e.track=function(n){(0,v.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=Y(),V(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=O;var o=r.baseData=r.baseData||{};o[w]=o[w]||{};var a=o[w];a[x]=a[x]||e.pluginVersionString||y}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,i.qU)(t,e),t.__ieDyn=1,t}(b._);const se=ae;var ce=n(3227),le=function(e){function t(){var n=e.call(this)||this;return(0,h.default)(t,n,(function(e,t){e.initialize=function(n,r,i,o){n&&!n.endpointUrl&&(n.endpointUrl=_),e.getWParam=function(){return M||n.enableWParam?0:-1};try{t.initialize(n,r,i,o)}catch(t){(0,m.ZP)(e.logger,1,514,"Initialization Failed: "+(0,g.mm)(t)+"\n - Note: Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var r=n.ext=n.ext||{};r.sdk=r.sdk||{},r.sdk.ver=O}t.track(n)}})),n}return(0,i.qU)(t,e),t.__ieDyn=1,t}(ce.F);const ue=le;var pe=a.Tn;function de(e,t,n){return function(r){e[t]=r,n()}}var fe=function(){function e(t){var n=0,r=null,i=[];function o(){if(i.length>0){var e=i.slice();i=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(e){}}),0)}}function a(e){0===n&&(r=e,n=1,o())}function s(e){0===n&&(r=e,n=2,o())}(0,h.default)(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){i.push((function(){var i;try{(i=1===n?pe(t)?t(r):r:pe(a)?a(r):r)instanceof e?i.then(s,c):2!==n||pe(a)?s(i):c(i)}catch(e){return void c(e)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!pe(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&pe(t.then)?new e((function(e,n){try{t.then(e,n)}catch(e){n(e)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var r=[],i=0,o=0;o<t.length;o++){var a=t[o];a&&pe(a.then)?(i++,a.then(de(r,o,(function(){0==--i&&e(r)})),n)):r[o]=a}0===i&&setTimeout((function(){e(r)}),0)}catch(e){n(e)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var r=function(r){var i=t[r];i&&pe(i.then)?i.then(e,n):setTimeout((function(){e(i)}),0)},i=0;i<t.length;i++)r(i)}catch(e){n(e)}}))},e}();const he=fe;var me=0,ve=[],ge=[],be=[];function ye(){return(new Date).getTime()}const _e=function(){function e(t,n){var r=0,i=(t||"<unnamed>")+"."+me;function o(e){var t=(0,I.mS)();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+i+"] "+e)}function a(e){(0,m.OG)(n,"ESPromiseScheduler["+i+"] "+e)}me++,(0,h.default)(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,l){var u=i+"."+n;n++,c&&(u+="-("+c+")");var p=u+"{"+r+"}";r++;var d,f,h,m={evt:null,tm:ye(),id:p,isRunning:!1,isAborted:!1};return m.evt=t?(d=m,f=t,h=new he((function(e,t){var n=ye()-f.tm,r=f.id;o("["+u+"] is waiting for ["+r+":"+n+" ms] to complete before starting -- ["+ge.length+"] waiting and ["+ve.length+"] running"),d.abort=function(e){d.abort=null,s(ge,u),d.isAborted=!0,t(new Error(e))},f.evt.then((function(n){s(ge,u),x(d).then(e,t)}),(function(n){s(ge,u),x(d).then(e,t)}))})),ge.push(d),h):x(m),(t=m).evt._schId=p,m.evt;function v(e){for(var t=ye(),n=t-6e5,r=e.length,i=0;i<r;){var o=e[i];if(o&&o.tm<n){var s=null;o.abort?(s="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(s)):s="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",a(s),e.splice(i,1),r--}else i++}}function g(e,n){var r=!1,i=s(ve,e);if(i||(i=s(be,e),r=!0),i){i.to&&(clearTimeout(i.to),i.to=null);var c=ye()-i.tm;n?r?a("Timed out event ["+e+"] finally complete -- "+c+" ms"):o("Promise ["+e+"] Complete -- "+c+" ms"):(be.push(i),a("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else o("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),v(ve),v(ge),v(be)}function b(e,t){return function(n){return g(e,!0),t&&t(n),n}}function y(e,t,n,r){t.then((function(t){return t instanceof he?(o("Event ["+e+"] returned a promise -- waiting"),y(e,t,n,r),t):b(e,n)(t)}),b(e,r))}function _(e,t){var n=e.id;return new he((function(r,i){o("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,g(n,!1),i(new Error(t))};var a=t(n);a instanceof he?(l&&(e.to=setTimeout((function(){g(n,!1),i(new Error("Timed out after ["+l+"] ms"))}),l)),y(n,a,(function(t){o("Event ["+n+"] Resolving after "+(ye()-e.tm)+" ms"),r(t)}),i)):(o("Promise ["+n+"] Auto completed as the start action did not return a promise"),r())}))}function x(t){var n=ye();return t.wTm=n-t.tm,t.tm=n,t.isAborted?he.reject(new Error("["+u+"] was aborted")):(ve.push(t),_(t,e))}}}))}return e.incomplete=function(){return ve},e.waitingToStart=function(){return ge},e}();var xe=function(){function e(e){var t=this,n={},r=[],i=[];function o(e,t){var o,s=n[e];if(s&&(o=s[t]),!o&&null!==o){if((0,a.Kg)(e)&&(0,a.Kg)(t))if(i.length>0){for(var c=0;c<i.length;c++)if(i[c].handleField(e,t)){o={canHandle:!0,fieldHandler:i[c]};break}}else 0===r.length&&(o={canHandle:!0});if(!o&&null!==o)for(o=null,c=0;c<r.length;c++)if(r[c].handleField(e,t)){o={canHandle:!0,handler:r[c],fieldHandler:null};break}s||(s=n[e]={}),s[t]=o}return o}function s(e,t,n,r,i,o){if(e.handler)return e.handler.property(t,n,i,o);if(!(0,a.hX)(i.kind)){if(!(4096&~r&&J(i.kind)))return null;i.value=i.value.toString()}return l(e.fieldHandler,t,n,r,i)}function c(e,t,n){return z(n)?{value:n}:null}function l(e,n,r,i,o){if(o&&e){var s=e.getSanitizer(n,r,i,o.kind,o.propertyType);if(s)if(4===i){var u={},p=o.value;(0,a.z)(p,(function(t,i){var o=n+"."+r;if(z(i)){var a=c(0,0,i);(a=l(e,o,t,te(i),a))&&(u[t]=a.value)}})),o.value=u}else{var d={path:n,name:r,type:i,prop:o,sanitizer:t};o=s.call(t,d)}}return o}e&&i.push(e),t.addSanitizer=function(e){e&&(r.push(e),n={})},t.addFieldSanitizer=function(e){e&&(i.push(e),n={})},t.handleField=function(e,t){var n=o(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,r){var i=o(e,t);if(i&&i.canHandle){if(!i||!i.canHandle)return null;if(i.handler)return i.handler.value(e,t,n,r);if(!(0,a.Kg)(t)||(0,a.hX)(n)||n===y)return null;var l=null,u=te(n);if(8192&~u)1!==u&&2!==u&&3!==u&&4096&~u?4===u&&(l=c(0,0,r?JSON.stringify(n):n)):l=c(0,0,n);else{var p=-8193&u;if(!z((l=n).value)||1!==p&&2!==p&&3!==p&&4096&~p)return null}if(l)return s(i,e,t,u,l,r)}return null},t.property=function(e,t,n,r){var i=o(e,t);if(!i||!i.canHandle)return null;if(!(0,a.Kg)(t)||(0,a.hX)(n)||!z(n.value))return null;var c=te(n.value);return 0===c?null:s(i,e,t,c,n,r)}}return e.getFieldType=te,e}(),we=n(4013),Ee=n(7428),Ae=n(8012),Se=n(8963),Te=n(4343),Ce=n(2429),Ie=n(2755),Pe=n(2675)},3435:(e,t,n)=>{"use strict";n.d(t,{Hj:()=>i,oP:()=>a,oc:()=>o});var r=n(2504);function i(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r.ol)(t)}function o(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=e,t[n]=e})),(0,r.ol)(t)}function a(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r.ol)(t)}},4343:(e,t,n)=>{"use strict";n.d(t,{x:()=>r});var r=(0,n(3435).Hj)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5})},6166:(e,t,n)=>{"use strict";n.d(t,{$:()=>x,b:()=>_});var r,i=n(3435),o="Failed",a=o+"MonitorAjax",s="Track",c="Start",l="Stop",u="Event",p="AuthContext",d="Exception",f="Local",h="Session",m="Storage",v="Browser",g="Cannot",b="Buffer",y="InstrumentationKey",_=(0,i.Hj)({CRITICAL:1,WARNING:2}),x=(0,i.Hj)(((r={})[v+"DoesNotSupport"+f+m]=0,r[v+g+"Read"+f+m]=1,r[v+g+"Read"+h+m]=2,r[v+g+"Write"+f+m]=3,r[v+g+"Write"+h+m]=4,r[v+o+"RemovalFrom"+f+m]=5,r[v+o+"RemovalFrom"+h+m]=6,r[g+"SendEmptyTelemetry"]=7,r.ClientPerformanceMathError=8,r["ErrorParsingAI"+h+"Cookie"]=9,r.ErrorPVCalc=10,r[d+"WhileLoggingError"]=11,r[o+"AddingTelemetryTo"+b]=12,r[a+"Abort"]=13,r[a+"Dur"]=14,r[a+"Open"]=15,r[a+"RSC"]=16,r[a+"Send"]=17,r[a+"GetCorrelationHeader"]=18,r[o+"ToAddHandlerForOnBeforeUnload"]=19,r[o+"ToSendQueuedTelemetry"]=20,r[o+"ToReportDataLoss"]=21,r["Flush"+o]=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r[h+"RenewalDateIsZero"]=27,r.SenderNotInitialized=28,r[c+s+u+o]=29,r[l+s+u+o]=30,r[c+s+o]=31,r[l+s+o]=32,r.TelemetrySampledAndNotSent=33,r[s+u+o]=34,r[s+d+o]=35,r[s+"Metric"+o]=36,r[s+"PV"+o]=37,r[s+"PV"+o+"Calc"]=38,r[s+"Trace"+o]=39,r["Transmission"+o]=40,r[o+"ToSet"+m+b]=41,r[o+"ToRestore"+m+b]=42,r.InvalidBackendResponse=43,r[o+"ToFixDepricatedValues"]=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r[g+"SerializeObject"]=48,r[g+"SerializeObjectNonSerializable"]=49,r.CircularReferenceDetected=50,r["Clear"+p+o]=51,r[d+"Truncated"]=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r["Set"+p+o]=59,r["Set"+p+o+"AccountName"]=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r["TelemetryInitializer"+o]=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r[h+m+b+"Full"]=67,r[g+"AccessCookie"]=68,r.IdTooLong=69,r.InvalidEvent=70,r[a+"SetRequestHeader"]=71,r["Send"+v+"InfoOnUserInit"]=72,r["Plugin"+d]=73,r["Notification"+d]=74,r.SnippetScriptLoadFailure=99,r["Invalid"+y]=100,r[g+"ParseAiBlobValue"]=101,r.InvalidContentBlob=102,r[s+"PageAction"+u+o]=103,r[o+"AddingCustomDefinedRequestContext"]=104,r["InMemory"+m+b+"Full"]=105,r[y+"Deprecation"]=106,r))},8963:(e,t,n)=>{"use strict";n.d(t,{T:()=>r});var r=100},6382:(e,t,n)=>{"use strict";n.d(t,{_:()=>d});var r=n(212),i=n(9284),o=n(3229),a=n(3227),s=n(6392),c=n(2504),l=n(5397),u=n(4013),p=n(5441),d=function(e){function t(){var n=e.call(this)||this;return(0,i.A)(t,n,(function(e,t){function n(t){var n=e[o.RF]();n&&n[l.Yp]([t],2)}e[o.mE]=function(e,n,r,i){t[o.mE](e,n,r||new s.wq(e),i||new u.h(e))},e.track=function(r){(0,p.r2)(e[l.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,c.$8)("Invalid telemetry item")),function(e){(0,c.hX)(e[o.RS])&&(n(e),(0,c.$8)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.qU)(t,e),t.__ieDyn=1,t}(a.F)},3227:(e,t,n)=>{"use strict";n.d(t,{F:()=>I});var r=n(212),i=n(9284),o=n(9381),a=n(3229),s=n(2504),c=n(5397),l=n(8012),u=n(1267),p=500;function d(e,t,n){t&&(0,s.cy)(t)&&t[a.oI]>0&&(t=t.sort((function(e,t){return e[c.Vo]-t[c.Vo]})),(0,s.Iu)(t,(function(e){e[c.Vo]<p&&(0,s.$8)("Channel has invalid priority - "+e[a.Ju])})),e[a.y5]({queue:(0,s.N6)(t),chain:(0,l.PV)(t,n[a.GA],n)}))}var f=n(5691),h=n(2429),m=n(8074),v=n(6392),g=n(5441),b=n(7428),y=n(8323),_=function(e){function t(){var n,r,o=e.call(this)||this;function l(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,l(),(0,i.A)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[a.y5](t),{remove:function(){(0,s.Iu)(r,(function(e,n){if(e.id===t.id)return r[a.Ic](n,1),-1}))}}},e[c.qT]=function(t,n){for(var i=!1,o=r[a.oI],c=0;c<o;++c){var l=r[c];if(l)try{if(!1===l.fn[a.y9](null,[t])){i=!0;break}}catch(e){(0,v.ZP)(n[a.e4](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,s.lL)(e),{exception:(0,y.mm)(e)},!0)}}i||e[a.$5](t,n)},e[a.tn]=function(){l()}})),o}return(0,r.qU)(t,e),t.__ieDyn=1,t}(b.s),x=n(2755),w="Plugins must provide initialize method",E="_notificationManager",A="SDK is still unloading...",S={loggingLevelConsole:1};function T(e,t){return new g.NS(t)}function C(e,t){var n=!1;return(0,s.Iu)(t,(function(t){if(t===e)return n=!0,-1})),n}var I=function(){function e(){var t,n,b,y,I,P,O,N,R,D,k,L,M,j,z,F,B,V,U,q,H=0,G=!1;(0,i.A)(e,this,(function(e){function i(n){if(!H&&!G&&(n||e[a.Uw]&&e[a.Uw].queue[a.oI]>0)){var r=(0,s.SA)(t.diagnosticLogInterval);r&&r>0||(r=1e4),H=setInterval((function(){clearInterval(H),H=0,J()}),r)}return H}function $(){n=!1,t=(0,s.CP)(!0,{},S),e[a.GA]=t,e[a.Uw]=new v.wq(t),e[a.H7]=[],z=new _,b=[],y=null,I=null,P=null,O=null,N=null,D=null,R=[],k=null,L=null,M=null,j=!1,F=null,B=(0,h.Z)("AIBaseCore",!0),V=(0,x.P)(),q=null}function W(){var n=(0,l.i8)(X(),t,e);return n[a.by](i),n}function Q(n){var r=function(e,t,n){var r,i=[],o={};return(0,s.Iu)(n,(function(t){((0,s.hX)(t)||(0,s.hX)(t[a.mE]))&&(0,s.$8)(w);var n=t[c.Vo],r=t[a.Ju];t&&n&&((0,s.hX)(o[n])?o[n]=r:(0,v.OG)(e,"Two extensions have same priority #"+n+" - "+o[n]+", "+r)),(!n||n<500)&&i[a.y5](t)})),(r={all:n})[c.eT]=i,r}(e[a.Uw],0,R);D=r[c.eT],N=null;var o=r.all;if(M=(0,s.N6)(function(e,t,n){var r=[];if(e&&(0,s.Iu)(e,(function(e){return d(r,e,n)})),t){var i=[];(0,s.Iu)(t,(function(e){e[c.Vo]>p&&i[a.y5](e)})),d(r,i,n)}return r}(L,o,e)),k){var f=(0,s.rD)(o,k);-1!==f&&o[a.Ic](f,1),-1!==(f=(0,s.rD)(D,k))&&D[a.Ic](f,1),k._setQueue(M)}else k=function(e,t){function n(){return(0,l.i8)(null,t[a.GA],t,null)}function r(e,t,n,r){var i=e?e[a.oI]+1:1;function o(){0==--i&&(r&&r(),r=null)}i>0&&(0,s.Iu)(e,(function(e){if(e&&e.queue[a.oI]>0){var r=e.chain,s=t[a.$o](r);s[a.by](o),n(s)}else i--})),o()}var i=!1,o={identifier:"ChannelControllerPlugin",priority:p,initialize:function(t,n,r,o){i=!0,(0,s.Iu)(e,(function(e){e&&e.queue[a.oI]>0&&(0,u.pI)((0,l.i8)(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[a.$5](t)}),(function(){i[a.$5](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[a.$5](i)}),(function(){t[a.$5](i)})),!0},pause:function(){r(e,n(),(function(e){e.iterate((function(e){e.pause&&e.pause()}))}),null)},resume:function(){r(e,n(),(function(e){e.iterate((function(e){e.resume&&e.resume()}))}),null)},teardown:function(t,n){var o=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[a.$5](o)}),(function(){t[a.$5](o),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[a.oI]>0&&(0,s.Iu)(e,(function(e){if(e&&e.queue[a.oI]>0&&((0,s.Iu)(e.queue,(function(e){if(e[a.Ju]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,o,s){var c=1,l=!1,u=null;function p(){c--,l&&0===c&&(u&&(clearTimeout(u),u=null),i&&i(l),i=null)}return s=s||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[a.EX]){c++;var n=!1;e[a.EX](t,(function(){n=!0,p()}),o)||n||(t&&null==u?u=setTimeout((function(){u=null,p()}),s):p())}}))}),(function(){l=!0,p()})),!0},_setQueue:function(t){e=t}};return o}(M,e);o[a.y5](k),D[a.y5](k),e[a.H7]=(0,u.Xc)(o),k[a.mE](t,e,o);var h=W();(0,u.pI)(h,o),e[a.H7]=(0,s.N6)((0,u.Xc)(D||[])).slice(),n&&function(t){var n=(0,l.nU)(X(),e);n[a.by](i),e._updateHook&&!0===e._updateHook(n,t)||n[a.$5](t)}(n)}function K(t){var n,r=null,i=null;return(0,s.Iu)(e[a.H7],(function(e){if(e[a.Ju]===t&&e!==k&&e!==z)return i=e,-1})),!i&&k&&(i=k.getChannel(t)),i&&((n={plugin:i})[a.kt]=function(e){(0,u.Cr)(i)[c.Hr]=!e},n.isEnabled=function(){var e=(0,u.Cr)(i);return!e[a.Ik]&&!e[c.Hr]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],o=((n={reason:1})[a.tI]=e,n);Y(r,o,(function(e){e&&Q({reason:32,removed:r}),t&&t(e)}))},r=n),r}function X(){if(!N){var n=(D||[]).slice();-1===(0,s.rD)(n,z)&&n[a.y5](z),N=(0,l.PV)((0,u.Xc)(n),t,e)}return N}function Y(n,r,o){if(n&&n[a.oI]>0){var c=(0,l.PV)(n,t,e),u=(0,l.tS)(c,e);u[a.by]((function(){var e=!1,t=[];(0,s.Iu)(R,(function(r,i){C(r,n)?e=!0:t[a.y5](r)})),R=t;var r=[];L&&((0,s.Iu)(L,(function(t,i){var o=[];(0,s.Iu)(t,(function(t){C(t,n)?e=!0:o[a.y5](t)})),r[a.y5](o)})),L=r),o&&o(e),i()})),u[a.$5](r)}else o(!1)}function J(){if(e[a.Uw]&&e[a.Uw].queue){var n=e[a.Uw].queue.slice(0);e[a.Uw].queue[a.oI]=0,(0,s.Iu)(n,(function(n){var r,i=((r={})[a.RS]=F||"InternalMessageId: "+n[a.JR],r.iKey=(0,s.SA)(t[a.sl]),r.time=(0,s._u)(new Date),r.baseType=v.WD.dataType,r.baseData={message:n[a.pM]},r);e.track(i)}))}}function Z(e,t,n,r){return k?k[a.EX](e,t,n||6,r):(t&&t(!1),!0)}function ee(t){var n=e[a.Uw];n?((0,v.ZP)(n,2,73,t),i()):(0,s.$8)(t)}$(),e[a.tZ]=function(){return n},e[a.mE]=function(i,o,l,u){var p,d;j&&(0,s.$8)(A),e[a.tZ]()&&(0,s.$8)("Core should not be initialized more than once"),t=i||{},e[a.GA]=t,(0,s.hX)(i[a.sl])&&(0,s.$8)("Please provide instrumentation key"),y=u,e[E]=u,!0===(d=(0,s.SA)(t.disableDbgExt))&&U&&(y[a.TP](U),U=null),y&&!U&&!0!==d&&(U=(0,m.M)(t),y[a.vR](U)),!(p=(0,s.SA)(t.enablePerfMgr))&&P&&(P=null),p&&(0,s.c2)(t,c.Yd,T),(0,s.c2)(t,c.Bw,{}).NotificationManager=y,l&&(e[a.Uw]=l);var f=(0,s.c2)(t,c.jy,[]);(R=[])[a.y5].apply(R,(0,r.vz)((0,r.vz)([],o,!1),f,!1)),L=(0,s.c2)(t,c.LZ,[]),Q(null),M&&0!==M[a.oI]||(0,s.$8)("No "+c.LZ+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return M&&(0,s.Iu)(M,(function(t){e[a.y5](t.queue)})),(0,s.N6)(e)},e.track=function(n){n.iKey=n.iKey||t[a.sl],n[a.fA]=n[a.fA]||(0,s._u)(new Date),n.ver=n.ver||"4.0",!j&&e[a.tZ]()?W()[a.$5](n):b[a.y5](n)},e[a.ps]=W,e[a.RF]=function(){var t;return y||(y=(0,o.AQ)(((t={})[a.vR]=function(e){},t[a.TP]=function(e){},t[c.fc]=function(e){},t[c.Yp]=function(e,t){},t[c.dI]=function(e,t){},t)),e[E]=y),y},e[a.vR]=function(e){y&&y[a.vR](e)},e[a.TP]=function(e){y&&y[a.TP](e)},e.getCookieMgr=function(){return O||(O=(0,f.xN)(t,e[a.Uw])),O},e.setCookieMgr=function(e){O=e},e[c.kI]=function(){if(!I&&!P&&(0,s.SA)(t.enablePerfMgr)){var n=(0,s.SA)(t[c.Yd]);(0,s.Tn)(n)&&(P=n(e,e[a.RF]()))}return I||P||(0,g.Z4)()},e.setPerfMgr=function(e){I=e},e.eventCnt=function(){return b[a.oI]},e.releaseQueue=function(){if(n&&b[a.oI]>0){var e=b;b=[],(0,s.Iu)(e,(function(e){W()[a.$5](e)}))}},e.pollInternalLogs=function(e){return F=e||null,G=!1,H&&(clearInterval(H),H=null),i(!0)},e[a.Di]=function(){G=!0,H&&(clearInterval(H),H=0,J())},(0,s.o$)(e,(function(){return z}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var o;void 0===t&&(t=!0),n||(0,s.$8)("SDK is not initialized"),j&&(0,s.$8)(A);var c=((o={reason:50})[a.tI]=t,o.flushComplete=!1,o),u=(0,l.tS)(X(),e);function p(t){c.flushComplete=t,j=!0,V.run(u,c),e[a.Di](),u[a.$5](c)}u[a.by]((function(){$(),r&&r(c)}),e),J(),Z(t,p,6,i)||p(!1)},e[a.AP]=K,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void ee(w);var i=K(e[a.Ju]);if(i&&!t)return r&&r(!1),void ee("Plugin ["+e[a.Ju]+"] is already loaded!");var o={reason:16};function s(t){R[a.y5](e),o.added=[e],Q(o),r&&r(!0)}if(i){var c=[i.plugin];Y(c,{reason:2,isAsync:!!n},(function(e){e?(o.removed=c,o.reason|=32,s()):r&&r(!1)}))}else s()},e.evtNamespace=function(){return B},e[a.EX]=Z,e.getTraceCtx=function(e){return q||(q=(0,u.u7)()),q},e.setTraceCtx=function(e){q=e||null},(0,s.RF)(e,"addUnloadCb",(function(){return V}),"add")}))}return e.__ieDyn=1,e}()},7428:(e,t,n)=>{"use strict";n.d(t,{s:()=>u});var r=n(9284),i=n(3229),o=n(2504),a=n(5397),s=n(8012),c=n(2755),l="getPlugin",u=function(){function e(){var t,n,u,p,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.i8)(null,{},f[a.eT]);t=u&&u[l]?r[i.$o](null,u[l]):r[i.$o](null,u)}return t}function m(e,t,r){e&&(0,o.KY)(e,a.Bw,[],null,o.hX),!r&&t&&(r=t[i.ps]()[i.uR]());var c=u;u&&u[l]&&(c=u[l]()),f[a.eT]=t,n=(0,s.i8)(r,e,t,c)}function v(){t=!1,f[a.eT]=null,n=null,u=null,d=[],p=(0,c.P)()}v(),(0,r.A)(e,f,(function(e){e[i.mE]=function(e,n,r,i){m(e,n,i),t=!0},e[i.Ik]=function(t,n){var r,c=e[a.eT];if(c&&(!t||c===t[a.eT]())){var f,h=!1,m=t||(0,s.tS)(null,c,u&&u[l]?u[l]():u),g=n||((r={reason:0})[i.tI]=!1,r);return e[i.tn]&&!0===e[i.tn](m,g,b)?f=!0:b(),f}function b(){if(!h){h=!0,p.run(m,n);var e=d;d=[],(0,o.Iu)(e,(function(e){e.rm()})),!0===f&&m[i.$5](g),v()}}},e[i.HC]=function(t,n){var r=e[a.eT];if(r&&(!t||r===t[a.eT]())){var o,c=!1,p=t||(0,s.nU)(null,r,u&&u[l]?u[l]():u),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(p,d,f)?o=!0:f(),o}function f(){c||(c=!0,m(p.getCfg(),p.core(),p[i.uR]()))}},e._addHook=function(e){e&&((0,o.cy)(e)?d=d.concat(e):d[i.y5](e))},(0,o.RF)(e,"_addUnloadCb",(function(){return p}),"add")})),f[i.e4]=function(e){return h(e)[i.e4]()},f[i.tZ]=function(){return t},f.setInitialized=function(e){t=e},f[i.YH]=function(e){u=e},f[i.$5]=function(e,t){t?t[i.$5](e):u&&(0,o.Tn)(u[a.qT])&&u[a.qT](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},5691:(e,t,n)=>{"use strict";n.d(t,{It:()=>D,d5:()=>w,gi:()=>C,um:()=>S,xN:()=>T});var r=n(3229),i=n(6392),o=n(8323),a=n(2504),s=n(5397),c="toGMTString",l="toUTCString",u="cookie",p="expires",d="enabled",f="isCookieUseDisabled",h="disableCookiesUsage",m="_ckMgr",v=null,g=null,b=null,y=(0,o.YE)(),_={},x={};function w(e,t){var n=T[m]||x[m];return n||(n=T[m]=T(e,t),x[m]=n),n}function E(e){return!e||e.isEnabled()}function A(e,t){return!!(t&&e&&(0,a.cy)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.Sj](t)}function S(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.lK];n=i[m]?i[m]:T(t)}return n||(n=w(t,(e||{})[r.Uw])),n}function T(e,t){var n,i=function(e){var t=e[r.lK]=e[r.lK]||{};if((0,a.KY)(t,"domain",e.cookieDomain,a.Gh,a.hX),(0,a.KY)(t,"path",e.cookiePath||"/",null,a.hX),(0,a.hX)(t[d])){var n=void 0;(0,a.b0)(e[f])||(n=!e[f]),(0,a.b0)(e[h])||(n=!e[h]),t[d]=n}return t}(e||x),u=i.path||"/",v=i.domain,b=!1!==i[d],y=((n={isEnabled:function(){var e=b&&C(t),n=x[m];return e&&n&&y!==n&&(e=E(n)),e}})[r.kt]=function(e){b=!1!==e},n.set=function(e,t,n,d,f){var h=!1;if(E(y)&&!function(e,t){return!!(t&&e&&(0,a.cy)(e.blockedCookies)&&-1!==e.blockedCookies[r.Sj](t))||A(e,t)}(i,e)){var m={},b=(0,a.EH)(t||s.m5),_=b[r.Sj](";");if(-1!==_&&(b=(0,a.EH)(t[r.Re](0,_)),m=I(t[r.Re](_+1))),(0,a.KY)(m,"domain",d||v,a.zz,a.b0),!(0,a.hX)(n)){var x=(0,o.lT)();if((0,a.b0)(m[p])){var w=(0,a.x3)()+1e3*n;if(w>0){var S=new Date;S.setTime(w),(0,a.KY)(m,p,P(S,x?c:l)||P(S,x?c:l)||s.m5,a.zz)}}x||(0,a.KY)(m,"max-age",s.m5+n,null,a.b0)}var T=(0,o.g$)();T&&"https:"===T.protocol&&((0,a.KY)(m,"secure",null,null,a.b0),null===g&&(g=!D(((0,o.w3)()||{})[r.tX])),g&&(0,a.KY)(m,"SameSite","None",null,a.b0)),(0,a.KY)(m,"path",f||u,null,a.b0),(i.setCookie||R)(e,O(b,m)),h=!0}return h},n.get=function(e){var t=s.m5;return E(y)&&!A(i,e)&&(t=(i.getCookie||N)(e)),t},n.del=function(e,t){var n=!1;return E(y)&&(n=y.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(C(t)){var c=((r={}).path=n||"/",r[p]="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,o.lT)()||(c["max-age"]="0"),(i.delCookie||R)(e,O(s.m5,c)),a=!0}return a},n);return y[m]=y,y}function C(e){if(null===v){v=!1;try{v=void 0!==(y||{})[u]}catch(t){(0,i.ZP)(e,2,68,"Cannot access document.cookie - "+(0,a.lL)(t),{exception:(0,o.mm)(t)})}}return v}function I(e){var t={};if(e&&e[r.oI]){var n=(0,a.EH)(e)[r.sY](";");(0,a.Iu)(n,(function(e){if(e=(0,a.EH)(e||s.m5)){var n=e[r.Sj]("=");-1===n?t[e]=null:t[(0,a.EH)(e[r.Re](0,n))]=(0,a.EH)(e[r.Re](n+1))}}))}return t}function P(e,t){return(0,a.Tn)(e[t])?e[t]():null}function O(e,t){var n=e||s.m5;return(0,a.z)(t,(function(e,t){n+="; "+e+((0,a.hX)(t)?s.m5:"="+t)})),n}function N(e){var t=s.m5;if(y){var n=y[u]||s.m5;b!==n&&(_=I(n),b=n),t=(0,a.EH)(_[e]||s.m5)}return t}function R(e,t){y&&(y[u]=e+"="+t)}function D(e){return!(!(0,a.Kg)(e)||!(0,a.Ju)(e,"CPU iPhone OS 12")&&!(0,a.Ju)(e,"iPad; CPU OS 12")&&!((0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a.Ju)(e,"Version/")&&(0,a.Ju)(e,"Safari"))&&(!(0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Cv)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))&&!(0,a.Ju)(e,"Chrome/5")&&!(0,a.Ju)(e,"Chrome/6")&&(!(0,a.Ju)(e,"UnrealEngine")||(0,a.Ju)(e,"Chrome"))&&!(0,a.Ju)(e,"UCBrowser/12")&&!(0,a.Ju)(e,"UCBrowser/11"))}},5955:(e,t,n)=>{"use strict";n.d(t,{Rb:()=>_,Ri:()=>E,TV:()=>A,UU:()=>v,WD:()=>x,Yj:()=>S,aq:()=>m,cL:()=>g,fs:()=>y,ht:()=>w,jS:()=>b,rK:()=>h});var r,i=n(7245),o=n(9381),a=n(3229),s=n(5691),c=n(8323),l=n(4838),u=n(2504),p=n(5397),d=n(9668),f=null,h=i.bA;function m(){var e=g();return e[a.Re](0,8)+"-"+e[a.Re](8,12)+"-"+e[a.Re](12,16)+"-"+e[a.Re](16,20)+"-"+e[a.Re](20)}function v(){var e=(0,c.FJ)();return e&&e.now?e.now():(0,u.x3)()}function g(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=p.m5,r=0;r<4;r++)n+=t[15&(e=(0,d.VN)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var i=t[8+(3&(0,d.VN)())|0];return n[a.$4](0,8)+n[a.$4](9,4)+"4"+n[a.$4](13,3)+i+n[a.$4](16,3)+n[a.$4](19,12)}var b={_canUseCookies:void 0,isTypeof:u.Ed,isUndefined:u.b0,isNullOrUndefined:u.hX,hasOwnProperty:u.mQ,isFunction:u.Tn,isObject:u.Gv,isDate:u.$P,isArray:u.cy,isError:u.bJ,isString:u.Kg,isNumber:u.Et,isBoolean:u.Lm,toISOString:u._u,arrForEach:u.Iu,arrIndexOf:u.rD,arrMap:u.W$,arrReduce:u.KT,strTrim:u.EH,objCreate:o.AQ,objKeys:u.cG,objDefineAccessors:u.r,addEventHandler:l.So,dateNow:u.x3,isIE:c.lT,disableCookies:x,newGuid:m,perfNow:v,newId:d.Si,randomValue:d.Z1,random32:d.VN,mwcRandomSeed:d.yc,mwcRandom32:d.k5,generateW3CId:g},y={Attach:l.Q3,AttachEvent:l.Q3,Detach:l.Ym,DetachEvent:l.Ym};function _(e,t){var n=(0,s.d5)(e,t),i=b._canUseCookies;return null===f&&(f=[],r=i,(0,u.r)(b,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,u.Iu)(f,(function(t){t[a.kt](e)}))}))),-1===(0,u.rD)(f,n)&&f[a.y5](n),(0,u.Lm)(i)&&n[a.kt](i),(0,u.Lm)(r)&&n[a.kt](r),n}function x(){_()[a.kt](!1)}function w(e){return _(null,e).isEnabled()}function E(e,t){return _(null,e).get(t)}function A(e,t,n,r){_(null,e).set(t,n,null,r)}function S(e,t){return _(null,e).del(t)}},2429:(e,t,n)=>{"use strict";n.d(t,{T:()=>h,Z:()=>f});var r=n(7245),i=n(3229),o=n(2504),a=n(5397),s=n(9668),c=r.KU,l="2.8.15",u="."+(0,s.Si)(6),p=0;function d(e){return 1===e[i.re]||9===e[i.re]||!+e[i.re]}function f(e,t){return void 0===t&&(t=!1),(0,o.cH)(e+p+++(t?"."+l:a.m5)+u)}function h(e){var t={id:f("_aiData-"+(e||a.m5)+"."+l),accept:function(e){return d(e)},get:function(e,n,r,i){var a=e[t.id];return a?a[(0,o.cH)(n)]:(i&&((a=function(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(e,t,{value:n,enumerable:!1,configurable:!0}),!0}catch(e){}return!1}(t,e.id,n)||(t[e.id]=n))}catch(e){}}return n}(t,e))[(0,o.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(e){}}};return t}},8074:(e,t,n)=>{"use strict";n.d(t,{$:()=>l,M:()=>u});var r,i=n(3229),o=n(8323),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=l(t);if(r){var o=r.listener;o&&o[e]&&o[e][i.y9](o,n)}}}function l(e){var t,n=s;return n||!0===e.disableDbgExt||(n=s||((t=(0,o.EH)("Microsoft"))&&(s=t.ApplicationInsights),s)),n?n.ChromeDbgExt:null}function u(e){if(!r){r={};for(var t=0;t<a[i.oI];t++)r[a[t]]=c(a[t],e)}return r}},6392:(e,t,n)=>{"use strict";n.d(t,{OG:()=>v,Oc:()=>g,WD:()=>p,ZP:()=>m,wq:()=>f,y0:()=>d});var r=n(9284),i=n(3229),o=n(8074),a=n(8323),s=n(2504),c=n(5397);function l(e){return e?'"'+e[i.W7](/\"/g,c.m5)+'"':c.m5}function u(e,t){var n=(0,a.U5)();if(n){var r="log";n[e]&&(r=e),(0,s.Tn)(n[r])&&n[r](t)}}var p=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o[i.JR]=e,o[i.pM]=(n?"AI: ":"AI (Internal): ")+e;var s=c.m5;(0,a.Z)()&&(s=(0,a.hm)().stringify(r));var u=(t?" message:"+l(t):c.m5)+(r?" props:"+l(s):c.m5);o[i.pM]+=u}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[i.Uw]||new f(t)}var f=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,l,d,f,h=0,m={};(0,r.A)(e,this,(function(e){function r(t,n){if(!(h>=d)){var r=!0,o="AITR_"+n[i.JR];if(m[o]?r=!1:m[o]=!0,r&&(t<=l&&(e.queue[i.y5](n),h++,v(1===t?"error":"warn",n)),h===d)){var a="Internal events throttle limit per PageView reached for this app.",s=new p(23,a,!1);e.queue[i.y5](s),1===t?e[c.Zi](a):e[c.Tj](a)}}}function v(e,n){var r=(0,o.$)(t||{});r&&r[i.e4]&&r[i.e4](e,n)}!function(e){n=(0,s.SA)(e.loggingLevelConsole,0),l=(0,s.SA)(e.loggingLevelTelemetry,1),d=(0,s.SA)(e.maxMessageLimit,25),f=(0,s.SA)(e.enableDebug,(0,s.SA)(e[i.a$],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return l},e.maxInternalMessageLimit=function(){return d},e[i.a$]=function(){return f},e.throwInternal=function(t,o,l,u,d){void 0===d&&(d=!1);var h=new p(o,l,d,u);if(f)throw(0,a.mm)(h);var g=1===t?c.Zi:c.Tj;if((0,s.b0)(h[i.pM]))v("throw"+(1===t?"Critical":"Warning"),h);else{if(d){var b=+h[i.JR];!m[b]&&n>=t&&(e[g](h[i.pM]),m[b]=!0)}else n>=t&&e[g](h[i.pM]);r(t,h)}},e[c.Tj]=function(e){u("warn",e),v("warning",e)},e[c.Zi]=function(e){u("error",e),v("error",e)},e.resetInternalMessageCount=function(){h=0,m={}},e[i.sx]=r}))}return e.__ieDyn=1,e}();function h(e){return e||new f}function m(e,t,n,r,i,o){void 0===o&&(o=!1),h(e).throwInternal(t,n,r,i,o)}function v(e,t){h(e)[c.Tj](t)}function g(e,t,n){h(e)[i.sx](t,n)}},8323:(e,t,n)=>{"use strict";n.d(t,{$Z:()=>ne,EH:()=>O,FJ:()=>V,Iu:()=>re,JK:()=>z,L0:()=>Q,MY:()=>H,PV:()=>Z,Pt:()=>ie,R7:()=>J,Sf:()=>oe,U5:()=>B,Uf:()=>Y,Vd:()=>N,Wt:()=>D,YE:()=>k,Z:()=>U,cU:()=>P,g$:()=>F,hm:()=>q,iN:()=>G,lT:()=>W,lV:()=>$,mm:()=>K,nr:()=>X,sN:()=>ae,tw:()=>j,w3:()=>M,w9:()=>L,xk:()=>ee,zk:()=>R});var r=n(7245),i=n(9381),o=n(3229),a=n(2504),s=n(5397),c="window",l="document",u="documentMode",p="navigator",d="history",f="location",h="console",m="performance",v="JSON",g="crypto",b="msCrypto",y="ReactNative",_="msie",x="trident/",w="XMLHttpRequest",E=null,A=null,S=!1,T=null,C=null;function I(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.vR];i&&(n=t in i)}}catch(e){}if(!n)try{var o=new e;n=!(0,a.b0)(o[t])}catch(e){}}return n}function P(e){S=e}function O(e){var t=(0,i.mS)();return t&&t[e]?t[e]:e===c&&N()?window:null}function N(){return Boolean(typeof window===r._1&&window)}function R(){return N()?window:O(c)}function D(){return Boolean(typeof document===r._1&&document)}function k(){return D()?document:O(l)}function L(){return Boolean(typeof navigator===r._1&&navigator)}function M(){return L()?navigator:O(p)}function j(){return Boolean(typeof history===r._1&&history)}function z(){return j()?history:O(d)}function F(e){if(e&&S){var t=O("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:O(f)}function B(){return typeof console!==r.bA?console:O(h)}function V(){return O(m)}function U(){return Boolean(typeof JSON===r._1&&JSON||null!==O(v))}function q(){return U()?JSON||O(v):null}function H(){return O(g)}function G(){return O(b)}function $(){var e=M();return!(!e||!e.product)&&e.product===y}function W(){var e=M();if(e&&(e[o.tX]!==A||null===E)){var t=((A=e[o.tX])||s.m5)[o.OL]();E=(0,a.Ju)(t,_)||(0,a.Ju)(t,x)}return E}function Q(e){if(void 0===e&&(e=null),!e){var t=M()||{};e=t?(t[o.tX]||s.m5)[o.OL]():s.m5}var n=(e||s.m5)[o.OL]();if((0,a.Ju)(n,_)){var r=k()||{};return Math.max(parseInt(n[o.sY](_)[1]),r[u]||0)}if((0,a.Ju)(n,x)){var i=parseInt(n[o.sY](x)[1]);if(i)return i+4}return null}function K(e){var t=Object[r.vR].toString[o.Ek](e),n=s.m5;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[o.RS]+"'":U()&&(n=q().stringify(e)),t+n}function X(e){if(!e||!(0,a.Kg)(e)){var t=M()||{};e=t?(t[o.tX]||s.m5)[o.OL]():s.m5}return(e||s.m5)[o.OL]()[o.Sj]("safari")>=0}function Y(){return null===C&&(C=L()&&Boolean(M().sendBeacon)),C}function J(e){var t=!1;try{t=!!O("fetch");var n=O("Request");t&&e&&n&&(t=I(n,"keepalive"))}catch(e){}return t}function Z(){return null===T&&(T=typeof XDomainRequest!==r.bA)&&ee()&&(T=T&&!I(O(w),"withCredentials")),T}function ee(){var e=!1;try{e=!!O(w)}catch(e){}return e}function te(e,t){if(e)for(var n=0;n<e[o.oI];n++){var r=e[n];if(r[o.RS]&&r[o.RS]===t)return r}return{}}function ne(e){var t=k();return t&&e?te(t.querySelectorAll("meta"),e).content:null}function re(e){var t,n=V();if(n){var r=n.getEntriesByType("navigation")||[];t=te((r[o.oI]>0?r[0]:{}).serverTiming,e).description}return t}function ie(e,t){return!!(e&&e.dispatchEvent&&t)&&(e.dispatchEvent(t),!0)}function oe(e,t){var n=null,r={detail:t||null};if((0,a.Tn)(CustomEvent))n=new CustomEvent(e,r);else{var i=k();i&&i.createEvent&&(n=i.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,r)}return n}function ae(e,t,n){var r=(0,i.mS)();if(r&&r.CustomEvent)try{return ie(r,oe(e,{cfg:t||null,customDetails:n||null}))}catch(e){}return!1}},4838:(e,t,n)=>{"use strict";n.d(t,{Ds:()=>q,El:()=>I,Fc:()=>H,Hm:()=>R,ML:()=>k,Q3:()=>L,So:()=>j,Wg:()=>V,Ym:()=>M,ee:()=>U,lQ:()=>B,mB:()=>D,oS:()=>$,sq:()=>G,vF:()=>W,zh:()=>z});var r=n(3229),i=n(2429),o=n(8323),a=n(2504),s=n(5397),c="on",l="attachEvent",u="addEventListener",p="detachEvent",d="removeEventListener",f="events",h="visibilitychange",m="pagehide",v="pageshow",g="unload",b="beforeunload",y=(0,i.Z)("aiEvtPageHide"),_=(0,i.Z)("aiEvtPageShow"),x=/\.[\.]+/g,w=/[\.]+$/,E=1,A=(0,i.T)("events"),S=/^([^.]*)(?:\.(.+)|)/;function T(e){return e&&e[r.W7]?e[r.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.m5):e}function C(e,t){var n;if(t){var i=s.m5;(0,a.cy)(t)?(i=s.m5,(0,a.Iu)(t,(function(e){(e=T(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=T(t),i&&("."!==i[0]&&(i="."+i),e=(e||s.m5)+i)}var o=S.exec(e||s.m5)||[];return(n={})[r.QM]=o[1],n.ns=(o[2]||s.m5).replace(x,".").replace(w,s.m5)[r.sY](".").sort().join("."),n}function I(e,t,n){var i=[],o=A.get(e,f,{},!1),c=C(t,n);return(0,a.z)(o,(function(e,t){(0,a.Iu)(t,(function(e){var t;c[r.QM]&&c[r.QM]!==e.evtName[r.QM]||c.ns&&c.ns!=c.ns||i[r.y5](((t={})[r.RS]=e.evtName[r.QM]+(e.evtName.ns?"."+e.evtName.ns:s.m5),t.handler=e[r.Yo],t))}))})),i}function P(e,t,n){void 0===n&&(n=!0);var r=A.get(e,f,{},n),i=r[t];return i||(i=r[t]=[]),i}function O(e,t,n,i){e&&t&&t[r.QM]&&(e[d]?e[d](t[r.QM],n,i):e[p]&&e[p](c+t[r.QM],n))}function N(e,t,n,i){for(var o=t[r.oI];o--;){var a=t[o];a&&(n.ns&&n.ns!==a.evtName.ns||i&&!i(a)||(O(e,a.evtName,a[r.Yo],a.capture),t[r.Ic](o,1)))}}function R(e,t){return t?C("xx",(0,a.cy)(t)?[e].concat(t):[e,t]).ns[r.sY]("."):e}function D(e,t,n,i,o){var a;void 0===o&&(o=!1);var s=!1;if(e)try{var p=C(t,i);if(s=function(e,t,n,i){var o=!1;return e&&t&&t[r.QM]&&n&&(e[u]?(e[u](t[r.QM],n,i),o=!0):e[l]&&(e[l](c+t[r.QM],n),o=!0)),o}(e,p,n,o),s&&A.accept(e)){var d=((a={guid:E++,evtName:p})[r.Yo]=n,a.capture=o,a);P(e,p.type)[r.y5](d)}}catch(e){}return s}function k(e,t,n,i,o){if(void 0===o&&(o=!1),e)try{var s=C(t,i),c=!1;!function(e,t,n){if(t[r.QM])N(e,P(e,t[r.QM]),t,n);else{var i=A.get(e,f,{});(0,a.z)(i,(function(r,i){N(e,i,t,n)})),0===(0,a.cG)(i)[r.oI]&&A.kill(e,f)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Yo]!==n||(c=!0,0))})),c||O(e,s,n,o)}catch(e){}}function L(e,t,n,r){return void 0===r&&(r=!1),D(e,t,n,null,r)}function M(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r)}function j(e,t,n){var r=!1,i=(0,o.zk)();i&&(r=D(i,e,t,n),r=D(i.body,e,t,n)||r);var a=(0,o.YE)();return a&&(r=D(a,e,t,n)||r),r}function z(e,t,n){var r=(0,o.zk)();r&&(k(r,e,t,n),k(r.body,e,t,n));var i=(0,o.YE)();i&&k(i,e,t,n)}function F(e,t,n,i){var o=!1;return t&&e&&e[r.oI]>0&&(0,a.Iu)(e,(function(e){e&&(n&&-1!==(0,a.rD)(n,e)||(o=j(e,t,i)||o))})),o}function B(e,t,n,i){var o=!1;return t&&e&&(0,a.cy)(e)&&!(o=F(e,t,n,i))&&n&&n[r.oI]>0&&(o=F(e,t,null,i)),o}function V(e,t,n){e&&(0,a.cy)(e)&&(0,a.Iu)(e,(function(e){e&&z(e,t,n)}))}function U(e,t,n){return B([b,g,m],e,t,n)}function q(e,t){V([b,g,m],e,t)}function H(e,t,n){var r=R(y,n),i=F([m],e,t,r);return t&&-1!==(0,a.rD)(t,h)||(i=F([h],(function(t){var n=(0,o.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=H(e,null,n)),i}function G(e,t){var n=R(y,t);V([m],e,n),V([h],null,n)}function $(e,t,n){var r=R(_,n),i=F([v],e,t,r);return!(i=F([h],(function(t){var n=(0,o.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=$(e,null,n)),i}function W(e,t){var n=R(_,t);V([v],e,n),V([h],null,n)}},2504:(e,t,n)=>{"use strict";n.d(t,{$8:()=>Ae,$P:()=>K,Bm:()=>te,CP:()=>Ne,Cv:()=>$,EA:()=>z,EH:()=>ce,Ed:()=>M,Et:()=>Z,Gh:()=>B,Gv:()=>U,Iu:()=>ie,Ju:()=>Q,KT:()=>se,KY:()=>ye,Kg:()=>J,Lm:()=>ee,N6:()=>me,Qd:()=>ne,RF:()=>Ce,SA:()=>xe,SZ:()=>Pe,Tn:()=>q,W$:()=>ae,_u:()=>re,b0:()=>j,bJ:()=>Y,c2:()=>_e,cG:()=>pe,cH:()=>H,cy:()=>X,fw:()=>k,hW:()=>Oe,hX:()=>F,js:()=>ve,lL:()=>be,mQ:()=>V,o$:()=>Ie,ol:()=>he,qz:()=>Te,r:()=>de,rD:()=>oe,tG:()=>W,wo:()=>we,x3:()=>ge,z:()=>G,zC:()=>L,zz:()=>Ee});var r=n(7245),i=n(9381),o=n(3229),a=n(5397),s="toISOString",c="endsWith",l="startsWith",u="indexOf",p="map",d="reduce",f="trim",h="toString",m="__proto__",v="constructor",g=r.KU,b=r.s6.freeze,y=r.s6.seal,_=r.s6.keys,x=String[r.vR],w=x[f],E=x[c],A=x[l],S=Date[r.vR][s],T=Array.isArray,C=r.Wy[h],I=r.J$[h],P=I[o.Ek](r.s6),O=/-([a-z])/g,N=/([^\w\d_$])/g,R=/^(\d+[\w\d_$])/,D=Object.getPrototypeOf;function k(e){if(e){if(D)return D(e);var t=e[m]||e[r.vR]||e[v];if(t)return t}return null}function L(e){return C[o.Ek](e)}function M(e,t){return typeof e===t}function j(e){return void 0===e||typeof e===r.bA}function z(e){return!j(e)}function F(e){return null===e||j(e)}function B(e){return!F(e)}function V(e,t){return!(!e||!r.J$[o.Ek](e,t))}function U(e){return!(!e||typeof e!==r._1)}function q(e){return!(!e||typeof e!==r.hW)}function H(e){var t=e;return t&&J(t)&&(t=(t=(t=t[o.W7](O,(function(e,t){return t.toUpperCase()})))[o.W7](N,"_"))[o.W7](R,(function(e,t){return"_"+t}))),t}function G(e,t){if(e)for(var n in e)r.J$[o.Ek](e,n)&&t[o.Ek](e,n,e[n])}function $(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=E?e[c](t):function(e,t){var n=!1,r=t?t[o.oI]:0,i=e?e[o.oI]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var a=i-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function W(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=A?e[l](t):function(e,t){var n=!1,r=t?t[o.oI]:0;if(e&&r&&e[o.oI]>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n}function Q(e,t){return!(!e||!t)&&-1!==e[o.Sj](t)}function K(e){return!(!e||"[object Date]"!==C[o.Ek](e))}var X=T||function(e){return!(!e||"[object Array]"!==C[o.Ek](e))};function Y(e){return!(!e||"[object Error]"!==C[o.Ek](e))}function J(e){return"string"==typeof e}function Z(e){return"number"==typeof e}function ee(e){return"boolean"==typeof e}function te(e){return"symbol"==typeof e}function ne(e){var t=!1;if(e&&"object"==typeof e){var n=D?D(e):k(e);n?(n[v]&&r.J$[o.Ek](n,v)&&(n=n[v]),t=typeof n===r.hW&&I[o.Ek](n)===P):t=!0}return t}function re(e){if(e)return S?e[s]():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[o.oI]&&(t="0"+t),t};return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())+"."+String((e.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}}(e)}function ie(e,t,n){var r=e[o.oI];try{for(var i=0;i<r&&(!(i in e)||-1!==t[o.Ek](n||e,e[i],i,e));i++);}catch(e){}}function oe(e,t,n){if(e){if(e[u])return e[u](t,n);var r=e[o.oI],i=n||0;try{for(var a=Math.max(i>=0?i:r-Math.abs(i),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(e){}}return-1}function ae(e,t,n){var r;if(e){if(e[p])return e[p](t,n);var i=e[o.oI],a=n||e;r=new Array(i);try{for(var s=0;s<i;s++)s in e&&(r[s]=t[o.Ek](a,e[s],e))}catch(e){}}return r}function se(e,t,n){var r;if(e){if(e[d])return e[d](t,n);var i=e[o.oI],a=0;if(arguments[o.oI]>=3)r=arguments[2];else{for(;a<i&&!(a in e);)a++;r=e[a++]}for(;a<i;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function ce(e){return e&&(e=w&&e[f]?e[f]():e[o.W7]?e[o.W7](/^\s+|(?=\s)\s+$/g,a.m5):e),e}var le=!{toString:null}.propertyIsEnumerable("toString"),ue=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function pe(e){var t=typeof e;if(t===r.hW||t===r._1&&null!==e||(0,i.zk)("objKeys called on non-object"),!le&&_)return _(e);var n=[];for(var a in e)e&&r.J$[o.Ek](e,a)&&n[o.y5](a);if(le)for(var s=ue[o.oI],c=0;c<s;c++)e&&r.J$[o.Ek](e,ue[c])&&n[o.y5](ue[c]);return n}function de(e,t,n,r){if(g)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),g(e,t,i),!0}catch(e){}return!1}function fe(e){return e}function he(e){return b&&G(e,(function(e,t){(X(t)||U(t))&&b(t)})),me(e)}var me=b||fe,ve=y||fe;function ge(){var e=Date;return e.now?e.now():(new e).getTime()}function be(e){return Y(e)?e[o.RS]:a.m5}function ye(e,t,n,r,i){var o=n;return e&&((o=e[t])===n||i&&!i(o)||r&&!r(n)||(o=n,e[t]=o)),o}function _e(e,t,n){var r;return e?!(r=e[t])&&F(r)&&(r=j(n)?{}:n,e[t]=r):r=j(n)?{}:n,r}function xe(e,t){return F(e)?t:e}function we(e){return!e}function Ee(e){return!!e}function Ae(e){throw new Error(e)}function Se(e,t){var n=null,r=null;return q(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][o.y9](r,e)}}function Te(e,t,n){if(e&&t&&U(e)&&U(t)){var r=function(r){if(J(r)){var i=t[r];q(i)?n&&!n(r,!0,t,e)||(e[r]=Se(t,r)):n&&!n(r,!1,t,e)||(V(e,r)&&delete e[r],de(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e}function Ce(e,t,n,r,i){e&&t&&n&&(!1!==i||j(e[t]))&&(e[t]=Se(n,r))}function Ie(e,t,n,r){return e&&t&&U(e)&&X(n)&&ie(n,(function(n){J(n)&&Ce(e,n,t,n,r)})),e}function Pe(e){return function(){var t=this;e&&G(e,(function(e,n){t[e]=n}))}}function Oe(e){return e&&r.zi&&(e=(0,r.s6)((0,r.zi)({},e))),e}function Ne(e,t,n,i,a,s){var c=arguments,l=c[0]||{},u=c[o.oI],p=!1,d=1;for(u>0&&ee(l)&&(p=l,l=c[d]||{},d++),U(l)||(l={});d<u;d++){var f=c[d],h=X(f),m=U(f);for(var v in f)if(h&&v in f||m&&r.J$[o.Ek](f,v)){var g=f[v],b=void 0;if(p&&g&&((b=X(g))||ne(g))){var y=l[v];b?X(y)||(y=[]):ne(y)||(y={}),g=Ne(p,y,g)}void 0!==g&&(l[v]=g)}}return l}},5397:(e,t,n)=>{"use strict";n.d(t,{Bw:()=>c,Hr:()=>s,LZ:()=>i,Tj:()=>g,Vo:()=>p,Yd:()=>a,Yp:()=>f,Zi:()=>v,dI:()=>h,eT:()=>o,fc:()=>d,jy:()=>l,kI:()=>b,l0:()=>m,m5:()=>r,qT:()=>u});var r="",i="channels",o="core",a="createPerfMgr",s="disabled",c="extensionConfig",l="extensions",u="processTelemetry",p="priority",d="eventsSent",f="eventsDiscarded",h="eventsSendRequest",m="perfEvent",v="errorToConsole",g="warnToConsole",b="getPerfMgr"},4013:(e,t,n)=>{"use strict";n.d(t,{h:()=>c});var r=n(9284),i=n(3229),o=n(2504),a=n(5397);function s(e,t,n,r){(0,o.Iu)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(e){}}))}var c=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,r.A)(e,this,(function(e){e[i.vR]=function(t){e.listeners[i.y5](t)},e[i.TP]=function(t){for(var n=(0,o.rD)(e[i.lJ],t);n>-1;)e.listeners[i.Ic](n,1),n=(0,o.rD)(e[i.lJ],t)},e[a.fc]=function(t){s(e[i.lJ],a.fc,!0,(function(e){e[a.fc](t)}))},e[a.Yp]=function(t,n){s(e[i.lJ],a.Yp,!0,(function(e){e[a.Yp](t,n)}))},e[a.dI]=function(t,n){s(e[i.lJ],a.dI,n,(function(e){e[a.dI](t,n)}))},e[a.l0]=function(t){t&&(!n&&t[i.Zu]()||s(e[i.lJ],a.l0,!1,(function(e){t[i.tI]?setTimeout((function(){return e[a.l0](t)}),0):e[a.l0](t)})))}}))}return e.__ieDyn=1,e}()},5441:(e,t,n)=>{"use strict";n.d(t,{NS:()=>d,Q6:()=>p,Z4:()=>v,jv:()=>m,r2:()=>h});var r=n(9284),i=n(3229),o=n(2504),a=n(5397),s="ctx",c="ParentContextKey",l="ChildrenContextKey",u=null,p=function(){function e(t,n,r){var a,u=this,p=!1;u.start=(0,o.x3)(),u[i.RS]=t,u[i.tI]=r,u[i.Zu]=function(){return!1},(0,o.Tn)(n)&&(p=(0,o.r)(u,"payload",(function(){return!a&&(0,o.Tn)(n)&&(a=n(),n=null),a}))),u[i.O_]=function(t){return t?t===e[c]||t===e[l]?u[t]:(u[s]||{})[t]:null},u[i.e_]=function(t,n){t&&(t===e[c]?(u[t]||(u[i.Zu]=function(){return!0}),u[t]=n):t===e[l]?u[t]=n:(u[s]=u[s]||{})[t]=n)},u[i.Ru]=function(){var t=0,r=u[i.O_](e[l]);if((0,o.cy)(r))for(var a=0;a<r[i.oI];a++){var s=r[a];s&&(t+=s[i.fA])}u[i.fA]=(0,o.x3)()-u.start,u.exTime=u[i.fA]-t,u[i.Ru]=function(){},!p&&(0,o.Tn)(n)&&(u.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),d=function(){function e(t){this.ctx={},(0,r.A)(e,this,(function(e){e.create=function(e,t,n){return new p(e,t,n)},e.fire=function(e){e&&(e[i.Ru](),t&&(0,o.Tn)(t[a.l0])&&t[a.l0](e))},e[i.e_]=function(t,n){t&&((e[s]=e[s]||{})[t]=n)},e[i.O_]=function(t){return(e[s]||{})[t]}}))}return e.__ieDyn=1,e}(),f="CoreUtils.doPerf";function h(e,t,n,r,o){if(e){var s=e;if(s[a.kI]&&(s=s[a.kI]()),s){var u=void 0,d=s[i.O_](f);try{if(u=s.create(t(),r,o)){if(d&&u[i.e_]&&(u[i.e_](p[c],d),d[i.O_]&&d[i.e_])){var h=d[i.O_](p[l]);h||(h=[],d[i.e_](p[l],h)),h[i.y5](u)}return s[i.e_](f,u),n(u)}}catch(e){u&&u[i.e_]&&u[i.e_]("exception",e)}finally{u&&s.fire(u),s[i.e_](f,d)}}}return n()}function m(e){u=e}function v(){return u}},8012:(e,t,n)=>{"use strict";n.d(t,{PV:()=>b,W0:()=>y,i8:()=>m,nU:()=>g,tS:()=>v});var r=n(3229),i=n(6392),o=n(8323),a=n(2504),s=n(5397),c=n(5441),l=n(1267),u="TelemetryPluginChain",p="_hasRun",d="_getTelCtx",f=0;function h(e,t,n,c){var l=null,u=[];null!==c&&(l=c?function(e,t,n){for(;e;){if(e[r.AP]()===n)return e;e=e[r.uR]()}return b([n],t[r.GA]||{},t)}(e,n,c):e);var p={_next:function(){var e=l;if(l=e?e[r.uR]():null,!e){var t=u;t&&t[r.oI]>0&&((0,a.Iu)(t,(function(e){try{e.func[r.Ek](e.self,e.args)}catch(e){(0,i.ZP)(n[r.Uw],2,73,"Unexpected Exception during onComplete - "+(0,o.mm)(e))}})),u=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,i.y0)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,o=d(e,null);return o&&!(0,a.hX)(o[n])?i=o[n]:t&&!(0,a.hX)(t[n])&&(i=t[n]),(0,a.hX)(i)?r:i},hasNext:function(){return!!l},getNext:function(){return l},setNext:function(e){l=e},iterate:function(e){for(var t;t=p._next();){var n=t[r.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&u[r.y5]({func:e,self:(0,a.b0)(t)?p.ctx:t,args:n})}}};function d(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var o=t[s.Bw];o&&e&&(i=o[e])}if(i){if((0,a.Gv)(n)&&0!==r){var c=(0,a.CP)(!0,n,i);t&&2===r&&(0,a.z)(n,(function(e){if((0,a.hX)(c[e])){var n=t[e];(0,a.hX)(n)||(c[e]=n)}})),i=c}}else i=n;return i}return p}function m(e,t,n,i){var o=h(e,t,n,i),c=o.ctx;return c[r.$5]=function(e){var t=o._next();return t&&t[s.qT](e,c),!t},c[r.$o]=function(e,i){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=b(e,t,n,i)),m(e||c[r.uR](),t,n,i)},c}function v(e,t,n){var i=t[r.GA]||{},o=h(e,i,t,n),s=o.ctx;return s[r.$5]=function(e){var t=o._next();return t&&t.unload(s,e),!t},s[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=b(e,i,t,n)),v(e||s[r.uR](),t,n)},s}function g(e,t,n){var i=t[r.GA]||{},o=h(e,i,t,n).ctx;return o[r.$5]=function(e){return o.iterate((function(t){(0,a.Tn)(t[r.HC])&&t[r.HC](o,e)}))},o[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=b(e,i,t,n)),g(e||o[r.uR](),t,n)},o}function b(e,t,n,h){var v=null,g=!h;if((0,a.cy)(e)&&e[r.oI]>0){var y=null;(0,a.Iu)(e,(function(e){if(g||h!==e||(g=!0),g&&e&&(0,a.Tn)(e[s.qT])){var b=function(e,t,n){var h,v=null,g=(0,a.Tn)(e[s.qT]),b=(0,a.Tn)(e[r.YH]),y={getPlugin:function(){return e},getNext:function(){return v},processTelemetry:function(i,o){_(o=o||function(){var r;return e&&(0,a.Tn)(e[d])&&(r=e[d]()),r||(r=m(y,t,n)),r}(),(function(t){if(!e||!g)return!1;var n=(0,l.Cr)(e);return!n[r.Ik]&&!n[s.Hr]&&(b&&e[r.YH](v),e[s.qT](i,t),!0)}),"processTelemetry",(function(){return{item:i}}),!i.sync)||o[r.$5](i)},unload:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,l.Cr)(e),a=e[s.eT]||o[s.eT];!e||a&&a!==t.core()||o[r.Ik]||(o[s.eT]=null,o[r.Ik]=!0,o[r.tZ]=!1,e[r.Ik]&&!0===e[r.Ik](t,n)&&(i=!0))}return i}),"unload",(function(){}),n[r.tI])||t[r.$5](n)},update:function(t,n){_(t,(function(){var i=!1;if(e){var o=(0,l.Cr)(e),a=e[s.eT]||o[s.eT];!e||a&&a!==t.core()||o[r.Ik]||e[r.HC]&&!0===e[r.HC](t,n)&&(i=!0)}return i}),"update",(function(){}),!1)||t[r.$5](n)},_id:h=e?e[r.Ju]+"-"+e[s.Vo]+"-"+f++:"Unknown-0-"+f++,_setNext:function(e){v=e}};function _(t,n,a,l,d){var f=!1,m=e?e[r.Ju]:u,g=t[p];return g||(g=t[p]={}),t.setNext(v),e&&(0,c.r2)(t[s.eT](),(function(){return m+":"+a}),(function(){g[h]=!0;try{var e=v?v._id:s.m5;e&&(g[e]=!1),f=n(t)}catch(e){var c=!v||g[v._id];c&&(f=!0),v&&c||(0,i.ZP)(t[r.e4](),1,73,"Plugin ["+m+"] failed during "+a+" - "+(0,o.mm)(e)+", run flags: "+(0,o.mm)(g))}}),l,d),f}return(0,a.N6)(y)}(e,t,n);v||(v=b),y&&y._setNext(b),y=b}}))}return h&&!v?b([h],t,n):v}var y=function(e,t,n,r){var i=m(e,t,n,r);(0,a.o$)(this,i,(0,a.cG)(i))}},9668:(e,t,n)=>{"use strict";n.d(t,{Si:()=>b,VN:()=>m,Z1:()=>h,k5:()=>g,yc:()=>v});var r=n(3229),i=n(8323),o=n(2504),a=n(5397),s=4294967296,c=4294967295,l=!1,u=123456789,p=987654321;function d(e){e<0&&(e>>>=0),u=123456789+e&c,p=987654321-e&c,l=!0}function f(){try{var e=2147483647&(0,o.x3)();d((Math.random()*s^e)+e)}catch(e){}}function h(e){return e>0?Math.floor(m()/c*(e+1))>>>0:0}function m(e){var t=0,n=(0,i.MY)()||(0,i.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,i.lT)()&&(l||f(),t=g()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function v(e){e?d(e):f()}function g(e){var t=((p=36969*(65535&p)+(p>>16)&c)<<16)+(65535&(u=18e3*(65535&u)+(u>>16)&c))>>>0&c;return e||(t>>>=0),t}function b(e){void 0===e&&(e=22);for(var t=m()>>>0,n=0,i=a.m5;i[r.oI]<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(m()<<2&4294967295|3&t)>>>0,n=0);return i}},1267:(e,t,n)=>{"use strict";n.d(t,{Cr:()=>l,Xc:()=>p,pI:()=>u,s4:()=>d,u7:()=>f});var r=n(3229),i=n(2429),o=n(2504),a=n(5397),s=n(2675),c=(0,i.T)("plugin");function l(e){return c.get(e,"state",{},!0)}function u(e,t){for(var n,i=[],s=null,c=e[r.uR]();c;){var u=c[r.AP]();u&&(s&&(0,o.Tn)(s[r.YH])&&(0,o.Tn)(u[a.qT])&&s[r.YH](u),((0,o.Tn)(u[r.tZ])?u[r.tZ]():(n=l(u))[r.tZ])||i[r.y5](u),s=u,c=c[r.uR]())}(0,o.Iu)(i,(function(i){var o=e[a.eT]();i[r.mE](e.getCfg(),o,t,e[r.uR]()),n=l(i),i[a.eT]||n[a.eT]||(n[a.eT]=o),n[r.tZ]=!0,delete n[r.Ik]}))}function p(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,o.Tn)(t[a.qT]);(0,o.Tn)(e[a.qT])?n=r?e[a.Vo]-t[a.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e,t,n,i){var a=0;return function i(){for(;a<e[r.oI];){var s=e[a++];if(s){var c=s._doUnload||s[r.tn];if((0,o.Tn)(c)&&!0===c[r.Ek](s,t,n,i))return!0}}}()}function f(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},2755:(e,t,n)=>{"use strict";n.d(t,{P:()=>s});var r=n(3229),i=n(6392),o=n(8323),a=n(2504);function s(){var e=[];return{add:function(t){t&&e[r.y5](t)},run:function(t,n){(0,a.Iu)(e,(function(e){try{e(t,n)}catch(e){(0,i.ZP)(t[r.e4](),2,73,"Unexpected error calling unload handler - "+(0,o.mm)(e))}})),e=[]}}}},2675:(e,t,n)=>{"use strict";n.d(t,{L0:()=>w,N7:()=>x,ZI:()=>g,ef:()=>E,hX:()=>b,mJ:()=>_,wN:()=>y,wk:()=>v});var r=n(3229),i=n(5955),o=n(8323),a=n(2504),s=/^([\da-f]{2})-([\da-f]{32})-([\da-f]{16})-([\da-f]{2})(-[^\s]*)?$/,c="00",l="ff",u="00000000000000000000000000000000",p="0000000000000000",d=1;function f(e,t,n){return!(!e||e[r.oI]!==t||e===n||!e.match(/^[\da-f]*$/))}function h(e,t,n){return f(e,t)?e:n}function m(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.oI]<2;)t="0"+t;return t}function v(e,t,n,o){var a;return(a={})[r.s]=f(o,2,l)?o:c,a[r.P5]=b(e)?e:(0,i.cL)(),a.spanId=y(t)?t:(0,i.cL)()[r.$4](0,16),a.traceFlags=n>=0&&n<=255?n:1,a}function g(e){var t;if(!e)return null;if((0,a.cy)(e)&&(e=e[0]||""),!e||!(0,a.Kg)(e)||e[r.oI]>8192)return null;var n=s.exec((0,a.EH)(e));return n&&n[1]!==l&&n[2]!==u&&n[3]!==p?((t={})[r.s]=n[1],t[r.P5]=n[2],t[r.wi]=n[3],t[r.Rr]=parseInt(n[4],16),t):null}function b(e){return f(e,32,u)}function y(e){return f(e,16,p)}function _(e){return!!(e&&f(e[r.s],2,l)&&f(e[r.P5],32,u)&&f(e[r.wi],16,p)&&f(m(e[r.Rr]),2))}function x(e){return!!_(e)&&(e[r.Rr]&d)===d}function w(e){if(e){var t=m(e[r.Rr]);f(t,2)||(t="01");var n=e[r.s]||c;return"00"!==n&&"ff"!==n&&(n=c),"".concat(n,"-").concat(h(e.traceId,32,u),"-").concat(h(e.spanId,16,p),"-").concat(t)}return""}function E(){var e="traceparent",t=g((0,o.$Z)(e));return t||(t=g((0,o.Iu)(e))),t}},3229:(e,t,n)=>{"use strict";n.d(t,{$4:()=>B,$5:()=>h,$o:()=>D,AP:()=>_,Di:()=>b,EX:()=>x,Ek:()=>W,GA:()=>l,H7:()=>w,HC:()=>P,Ic:()=>E,Ik:()=>A,JR:()=>S,Ju:()=>a,OL:()=>$,O_:()=>J,P5:()=>te,QM:()=>Q,RF:()=>o,RS:()=>i,Re:()=>M,Rr:()=>re,Ru:()=>ee,Sj:()=>L,TP:()=>g,Uw:()=>p,W7:()=>q,YH:()=>R,Yo:()=>K,Zu:()=>Y,a$:()=>H,by:()=>y,e4:()=>N,e_:()=>Z,fA:()=>f,kt:()=>F,lJ:()=>X,lK:()=>k,mE:()=>r,oI:()=>d,pM:()=>T,ps:()=>m,re:()=>V,s:()=>ie,sY:()=>z,sl:()=>u,sx:()=>G,tI:()=>C,tX:()=>j,tZ:()=>c,tn:()=>I,uR:()=>O,vR:()=>v,wi:()=>ne,y5:()=>s,y9:()=>U});var r="initialize",i="name",o="getNotifyMgr",a="identifier",s="push",c="isInitialized",l="config",u="instrumentationKey",p="logger",d="length",f="time",h="processNext",m="getProcessTelContext",v="addNotificationListener",g="removeNotificationListener",b="stopPollingInternalLogs",y="onComplete",_="getPlugin",x="flush",w="_extensions",E="splice",A="teardown",S="messageId",T="message",C="isAsync",I="_doTeardown",P="update",O="getNext",N="diagLog",R="setNextPlugin",D="createNew",k="cookieCfg",L="indexOf",M="substring",j="userAgent",z="split",F="setEnabled",B="substr",V="nodeType",U="apply",q="replace",H="enableDebugExceptions",G="logInternalMessage",$="toLowerCase",W="call",Q="type",K="handler",X="listeners",Y="isChildEvt",J="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",ie="version"},3695:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AppInsightsCore:()=>o._,BaseCore:()=>a.F,BaseTelemetryPlugin:()=>s.s,CoreUtils:()=>l.jS,DiagnosticLogger:()=>b.wq,EventHelper:()=>l.fs,EventsDiscardedReason:()=>i.x,InstrumentEvent:()=>D,InstrumentFunc:()=>N,InstrumentFuncs:()=>R,InstrumentProto:()=>I,InstrumentProtos:()=>P,LoggingSeverity:()=>x.b,MinChannelPriorty:()=>r.T,NotificationManager:()=>v.h,PerfEvent:()=>g.Q6,PerfManager:()=>g.NS,ProcessTelemetryContext:()=>y.W0,Undefined:()=>l.rK,_InternalLogMessage:()=>b.WD,_InternalMessageId:()=>x.$,__getRegisteredEvents:()=>d.El,_legacyCookieMgr:()=>l.Rb,_logInternalMessage:()=>b.Oc,_throwInternal:()=>b.ZP,_warnToConsole:()=>b.OG,addEventHandler:()=>d.So,addEventListeners:()=>d.lQ,addPageHideEventListener:()=>d.Fc,addPageShowEventListener:()=>d.oS,addPageUnloadEventListener:()=>d.ee,areCookiesSupported:()=>k.gi,arrForEach:()=>u.Iu,arrIndexOf:()=>u.rD,arrMap:()=>u.W$,arrReduce:()=>u.KT,attachEvent:()=>d.Q3,canUseCookies:()=>l.ht,createClassFromInterface:()=>u.SZ,createCookieMgr:()=>k.xN,createCustomDomEvent:()=>f.Sf,createEnumMap:()=>p.oc,createEnumStyle:()=>p.Hj,createProcessTelemetryContext:()=>y.i8,createTraceParent:()=>z.wk,createUniqueNamespace:()=>M.Z,createUnloadHandlerContainer:()=>j.P,createValueMap:()=>p.oP,dateNow:()=>u.x3,deepFreeze:()=>u.ol,deleteCookie:()=>l.Yj,detachEvent:()=>d.Ym,disableCookies:()=>l.WD,dispatchEvent:()=>f.Pt,doPerf:()=>g.r2,dumpObj:()=>f.mm,eventOff:()=>d.ML,eventOn:()=>d.mB,findMetaTag:()=>f.$Z,findNamedServerTiming:()=>f.Iu,findW3cTraceParent:()=>z.ef,formatTraceParent:()=>z.L0,generateW3CId:()=>l.cL,getConsole:()=>f.U5,getCookie:()=>l.Ri,getCrypto:()=>f.MY,getDebugExt:()=>L.$,getDebugListener:()=>L.M,getDocument:()=>f.YE,getExceptionName:()=>u.lL,getGblPerfMgr:()=>g.Z4,getGlobal:()=>h.mS,getGlobalInst:()=>f.EH,getHistory:()=>f.JK,getIEVersion:()=>f.L0,getJSON:()=>f.hm,getLocation:()=>f.g$,getMsCrypto:()=>f.iN,getNavigator:()=>f.w3,getPerformance:()=>f.FJ,getSetValue:()=>u.c2,getWindow:()=>f.zk,hasDocument:()=>f.Wt,hasHistory:()=>f.tw,hasJSON:()=>f.Z,hasNavigator:()=>f.w9,hasOwnProperty:()=>u.mQ,hasWindow:()=>f.Vd,initializePlugins:()=>_.pI,isArray:()=>u.cy,isBeaconsSupported:()=>f.Uf,isBoolean:()=>u.Lm,isDate:()=>u.$P,isError:()=>u.bJ,isFetchSupported:()=>f.R7,isFunction:()=>u.Tn,isIE:()=>f.lT,isNotNullOrUndefined:()=>u.Gh,isNotTruthy:()=>u.wo,isNotUndefined:()=>u.EA,isNullOrUndefined:()=>u.hX,isNumber:()=>u.Et,isObject:()=>u.Gv,isPlainObject:()=>u.Qd,isReactNative:()=>f.lV,isSafari:()=>f.nr,isSampledFlag:()=>z.N7,isString:()=>u.Kg,isSymbol:()=>u.Bm,isTruthy:()=>u.zz,isTypeof:()=>u.Ed,isUndefined:()=>u.b0,isValidSpanId:()=>z.wN,isValidTraceId:()=>z.hX,isValidTraceParent:()=>z.mJ,isXhrSupported:()=>f.xk,mergeEvtNamespace:()=>d.Hm,mwcRandom32:()=>c.k5,mwcRandomSeed:()=>c.yc,newGuid:()=>l.aq,newId:()=>c.Si,normalizeJsName:()=>u.cH,objCreate:()=>h.AQ,objDefineAccessors:()=>u.r,objExtend:()=>u.CP,objForEachKey:()=>u.z,objFreeze:()=>u.N6,objKeys:()=>u.cG,objSeal:()=>u.js,objToString:()=>u.zC,optimizeObject:()=>u.hW,parseTraceParent:()=>z.ZI,perfNow:()=>l.UU,proxyAssign:()=>u.qz,proxyFunctionAs:()=>u.RF,proxyFunctions:()=>u.o$,random32:()=>c.VN,randomValue:()=>c.Z1,removeEventHandler:()=>d.zh,removeEventListeners:()=>d.Wg,removePageHideEventListener:()=>d.sq,removePageShowEventListener:()=>d.vF,removePageUnloadEventListener:()=>d.Ds,safeGetCookieMgr:()=>k.um,safeGetLogger:()=>b.y0,sendCustomEvent:()=>f.sN,setCookie:()=>l.TV,setEnableEnvMocks:()=>f.cU,setGblPerfMgr:()=>g.jv,setValue:()=>u.KY,sortPlugins:()=>_.Xc,strContains:()=>u.Ju,strEndsWith:()=>u.Cv,strFunction:()=>m.hW,strObject:()=>m._1,strPrototype:()=>m.vR,strStartsWith:()=>u.tG,strTrim:()=>u.EH,strUndefined:()=>m.bA,throwError:()=>u.$8,toISOString:()=>u._u,uaDisallowsSameSiteNone:()=>k.It,unloadComponents:()=>_.s4,useXDomainRequest:()=>f.PV});var r=n(8963),i=n(4343),o=n(6382),a=n(3227),s=n(7428),c=n(9668),l=n(5955),u=n(2504),p=n(3435),d=n(4838),f=n(8323),h=n(9381),m=n(7245),v=n(4013),g=n(5441),b=n(6392),y=n(8012),_=n(1267),x=n(6166),w=n(3229),E="_aiHooks",A=["req","rsp","hkErr","fnErr"];function S(e,t){if(e)for(var n=0;n<e[w.oI]&&!t(e[n],n);n++);}function T(e,t,n,r,i){i>=0&&i<=2&&S(e,(function(e,o){var a=e.cbks,s=a[A[i]];if(s){t.ctx=function(){return r[o]=r[o]||{}};try{s[w.y9](t.inst,n)}catch(e){var c=t.err;try{var l=a[A[2]];l&&(t.err=e,l[w.y9](t.inst,n))}catch(e){}finally{t.err=c}}}}))}function C(e,t,n,r){var i=null;return e&&((0,u.mQ)(e,t)?i=e:n&&(i=C((0,u.fw)(e),t,r,!1))),i}function I(e,t,n){return e?N(e[m.vR],t,n,!1):null}function P(e,t,n){return e?R(e[m.vR],t,n,!1):null}function O(e,t,n,r){var i=n&&n[E];if(!i){var o=function(e){return function(){var t,n=arguments,r=e.h,i=((t={})[w.RS]=e.n,t.inst=this,t.ctx=null,t.set=function(e,t){(n=s([],n))[e]=t,a=s([i],n)},t),o=[],a=s([i],n);function s(e,t){return S(t,(function(t){e[w.y5](t)})),e}i.evt=(0,f.EH)("event"),T(r,i,a,o,0);var c=e.f;if(c)try{i.rslt=c[w.y9](this,n)}catch(e){throw i.err=e,T(r,i,a,o,3),e}return T(r,i,a,o,1),i.rslt}}(i={i:0,n:t,f:n,h:[]});o[E]=i,e[t]=o}var a={id:i.i,cbks:r,rm:function(){var e=this.id;S(i.h,(function(t,n){if(t.id===e)return i.h[w.Ic](n,1),1}))}};return i.i++,i.h[w.y5](a),a}function N(e,t,n,r,i){if(void 0===r&&(r=!0),e&&t&&n){var o=C(e,t,r,i);if(o){var a=o[t];if(typeof a===m.hW)return O(o,t,a,n)}}return null}function R(e,t,n,r,i){void 0===r&&(r=!0);var o=null;return S(t,(function(t){var a=N(e,t,n,r,i);a&&(o||(o=[]),o[w.y5](a))})),o}function D(e,t,n,r,i){if(e&&t&&n){var o=C(e,t,r,i)||e;if(o)return O(o,t,o[t],n)}return null}var k=n(5691),L=n(8074),M=n(2429),j=n(2755),z=n(2675)},9284:(e,t,n)=>{"use strict";var r;n.d(t,{A:()=>z});var i,o="undefined",a="constructor",s="prototype",c="function",l="_dynInstFuncs",u="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",v="_unknown_",g="__proto__",b="_dyn"+g,y="__dynProto$Gbl",_="_dynInstProto",x="useBaseInst",w="setInstFuncs",E=Object,A=E.getPrototypeOf,S=E.getOwnPropertyNames,T=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),C=T[y]||(T[y]={o:(r={},r[w]=!0,r[x]=!0,r),n:1e3});function I(e,t){return e&&E[s].hasOwnProperty.call(e,t)}function P(e){return e&&(e===E[s]||e===Array[s])}function O(e){return P(e)||e===Function[s]}function N(e){var t;if(e){if(A)return A(e);var n=e[g]||e[s]||(e[a]?e[a][s]:null);t=e[b]||n,I(e,b)||(delete e[_],t=e[b]=e[_]||e[b],e[_]=n)}return t}function R(e,t){var n=[];if(S)n=S(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function L(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function M(e,t,n,r,i){if(!P(e)){var o=n[l]=n[l]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),R(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][u])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[l]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=N(e),u=[];a&&s&&!O(s)&&!L(u,s);){var d=s[t];if(d){a=d===r;break}u.push(s),s=N(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=N(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[u]=1,n}(e,t)))}))}}function j(e,t){return I(e,s)?e.name||t||v:((e||{})[a]||{}).name||t||v}function z(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(A){for(var n=[],r=N(t);r&&!O(r)&&!L(n,r);){if(r===e)return!0;n.push(r),r=N(r)}return!1}return!0})(i,t)||k("["+j(e)+"] not in hierarchy of ["+j(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+j(e,"_")+"$"+C.n,C.n++,i[p]=o);var a=z[m],c=!!a[x];c&&r&&void 0!==r[x]&&(c=!!r[x]);var f=function(e){var t={};return R(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[u]&&r){var o=e[l]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};R(n,(function(e){o[e]=i(t,n,e)}));for(var a=N(e),s=[];a&&!O(a)&&!L(s,a);)R(a,(function(e){!o[e]&&D(a,e,!A)&&(o[e]=i(t,a,e))})),s.push(a),a=N(a);return o}(i,t,f,c);n(t,v);var g=!!A&&!!a[w];g&&r&&(g=!!r[w]),M(i,o,t,f,!1!==g)}z[m]=C.o},7245:(e,t,n)=>{"use strict";n.d(t,{FC:()=>c,J$:()=>h,KU:()=>f,OR:()=>d,QV:()=>s,Wy:()=>u,_1:()=>i,bA:()=>o,hW:()=>r,s6:()=>l,vR:()=>a,zi:()=>p});var r="function",i="object",o="undefined",a="prototype",s="hasOwnProperty",c="default",l=Object,u=l[a],p=l.assign,d=l.create,f=l.defineProperty,h=u[s]},9381:(e,t,n)=>{"use strict";n.d(t,{AQ:()=>s,mS:()=>o,zk:()=>a});var r=n(7245),i=null;function o(e){void 0===e&&(e=!0);var t=!1===e?null:i;return t||(typeof globalThis!==r.bA&&(t=globalThis),t||typeof self===r.bA||(t=self),t||typeof window===r.bA||(t=window),t||typeof global===r.bA||(t=global),i=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.OR;if(t)return t(e);if(null==e)return{};var n=typeof e;function i(){}return n!==r._1&&n!==r.hW&&a("Object prototype may only be an Object:"+e),i[r.vR]=e,new i}},212:(e,t,n)=>{"use strict";n.d(t,{BY:()=>y,G4:()=>_,I3:()=>v,Im:()=>d,JA:()=>m,Ri:()=>x,_J:()=>E,m6:()=>S,pP:()=>C,qU:()=>h,s4:()=>T,sx:()=>g,tl:()=>w,u7:()=>b,vz:()=>A});var r=n(7245),i=n(9381),o=((0,i.mS)()||{}).Symbol,a=((0,i.mS)()||{}).Reflect,s=!!a,c="decorate",l="metadata",u="getOwnPropertySymbols",p="iterator",d=r.zi||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])r.Wy[r.QV].call(t,o)&&(e[o]=t[o]);return e},f=function(e,t){return f=r.s6.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.QV](n)&&(e[n]=t[n])},f(e,t)};function h(e,t){function n(){this.constructor=e}typeof t!==r.hW&&null!==t&&(0,i.zk)("Class extends value "+String(t)+" is not a constructor or null"),f(e,t),e[r.vR]=null===t?(0,i.AQ)(t):(n[r.vR]=t[r.vR],new n)}function m(e,t){var n={};for(var i in e)r.J$.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&typeof r.s6[u]===r.hW)for(var o=0,a=r.s6[u](e);o<a.length;o++)t.indexOf(a[o])<0&&r.Wy.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function v(e,t,n,i){var o,l=arguments.length,u=l<3?t:null===i?i=r.s6.getOwnPropertyDescriptor(t,n):i;if(s&&typeof a[c]===r.hW)u=a[c](e,t,n,i);else for(var p=e.length-1;p>=0;p--)(o=e[p])&&(u=(l<3?o(u):l>3?o(t,n,u):o(t,n))||u);return l>3&&u&&(0,r.KU)(t,n,u),u}function g(e,t){return function(n,r){t(n,r,e)}}function b(e,t){if(s&&a[l]===r.hW)return a[l](e,t)}function y(e,t){for(var n in e)n===r.FC||r.J$.call(t,n)||_(t,e,n)}function _(e,t,n,i){void 0===i&&(i=n),r.OR?(0,r.KU)(e,i,{enumerable:!0,get:function(){return t[n]}}):e[i]=t[n]}function x(e){var t=typeof o===r.hW&&o[p],n=t&&e[t],a=0;return n?n.call(e):e&&"number"==typeof e.length?{next:function(){return e&&a>=e.length&&(e=void 0),{value:e&&e[a++],done:!e}}}:void(0,i.zk)(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function w(e,t){var n=typeof o===r.hW&&e[o[p]];if(!n)return e;var i,a,s=n.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)c.push(i.value)}catch(e){a={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return c}function E(){for(var e=arguments,t=0,n=0,r=e.length;n<r;n++)t+=e[n].length;var i=Array(t),o=0;for(n=0;n<r;n++)for(var a=e[n],s=0,c=a.length;s<c;s++,o++)i[o]=a[s];return i}function A(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}function S(e,t){return r.KU?(0,r.KU)(e,"raw",{value:t}):e.raw=t,e}function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)n!==r.FC&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return r.OR?(0,r.KU)(t,r.FC,{enumerable:!0,value:e}):t[r.FC]=e,t}function C(e){return e&&e.__esModule?e:{strDefault:e}}},2284:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ObjAssign:()=>r.zi,ObjClass:()=>r.s6,ObjCreate:()=>r.OR,ObjDefineProperty:()=>r.KU,ObjHasOwnProperty:()=>r.J$,ObjProto:()=>r.Wy,__assignFn:()=>o.Im,__createBindingFn:()=>o.G4,__decorateFn:()=>o.I3,__exportStarFn:()=>o.BY,__exposeGlobalTsLib:()=>a,__extendsFn:()=>o.qU,__importDefaultFn:()=>o.pP,__importStarFn:()=>o.s4,__makeTemplateObjectFn:()=>o.m6,__metadataFn:()=>o.u7,__paramFn:()=>o.sx,__readFn:()=>o.tl,__restFn:()=>o.JA,__spreadArrayFn:()=>o.vz,__spreadArraysFn:()=>o._J,__valuesFn:()=>o.Ri,getGlobal:()=>i.mS,objCreateFn:()=>i.AQ,strDefault:()=>r.FC,strShimFunction:()=>r.hW,strShimHasOwnProperty:()=>r.QV,strShimObject:()=>r._1,strShimPrototype:()=>r.vR,strShimUndefined:()=>r.bA,throwTypeError:()=>i.zk});var r=n(7245),i=n(9381),o=n(212);function a(){var e,t,n,a,s=(0,i.mS)()||{};e=s,t=o.Im,n=o.qU,a=o.G4,e.__assign||(e.__assign=r.zi||t),e.__extends||(e.__extends=n),e.__createBinding||(e.__createBinding=a),__assign||(__assign=s.__assign),__extends||(__extends=s.__extends),__createBinding||(__createBinding=s.__createBinding)}},1356:(e,t,n)=>{"use strict";var r;n.r(t),n.d(t,{default:()=>z});var i,o="undefined",a="constructor",s="prototype",c="function",l="_dynInstFuncs",u="_isDynProxy",p="_dynClass",d="_dynCls$",f="_dynInstChk",h=f,m="_dfOpts",v="_unknown_",g="__proto__",b="_dyn"+g,y="__dynProto$Gbl",_="_dynInstProto",x="useBaseInst",w="setInstFuncs",E=Object,A=E.getPrototypeOf,S=E.getOwnPropertyNames,T=(typeof globalThis!==o&&(i=globalThis),i||typeof self===o||(i=self),i||typeof window===o||(i=window),i||typeof global===o||(i=global),i||{}),C=T[y]||(T[y]={o:(r={},r[w]=!0,r[x]=!0,r),n:1e3});function I(e,t){return e&&E[s].hasOwnProperty.call(e,t)}function P(e){return e&&(e===E[s]||e===Array[s])}function O(e){return P(e)||e===Function[s]}function N(e){var t;if(e){if(A)return A(e);var n=e[g]||e[s]||(e[a]?e[a][s]:null);t=e[b]||n,I(e,b)||(delete e[_],t=e[b]=e[_]||e[b],e[_]=n)}return t}function R(e,t){var n=[];if(S)n=S(e);else for(var r in e)"string"==typeof r&&I(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function D(e,t,n){return t!==a&&typeof e[t]===c&&(n||I(e,t))}function k(e){throw new TypeError("DynamicProto: "+e)}function L(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function M(e,t,n,r,i){if(!P(e)){var o=n[l]=n[l]||{},a=o[t]=o[t]||{};!1!==o[h]&&(o[h]=!!i),R(n,(function(t){D(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!I(e,t)||e[t]&&!e[t][u])&&(e[t]=function(e,t){var n=function(){var r=function(e,t,n,r){var i=null;if(e&&I(n,p)){var o=e[l]||{};if((i=(o[n[p]]||{})[t])||k("Missing ["+t+"] "+c),!i[f]&&!1!==o[h]){for(var a=!I(e,t),s=N(e),u=[];a&&s&&!O(s)&&!L(u,s);){var d=s[t];if(d){a=d===r;break}u.push(s),s=N(s)}try{a&&(e[t]=i),i[f]=1}catch(e){o[h]=!1}}}return i}(this,t,e,n)||function(e,t,n){var r=t[e];return r===n&&(r=N(t)[e]),typeof r!==c&&k("["+e+"] is not a "+c),r}(t,e,n);return r.apply(this,arguments)};return n[u]=1,n}(e,t)))}))}}function j(e,t){return I(e,s)?e.name||t||v:((e||{})[a]||{}).name||t||v}function z(e,t,n,r){I(e,s)||k("theClass is an invalid class definition.");var i=e[s];(function(e,t){if(A){for(var n=[],r=N(t);r&&!O(r)&&!L(n,r);){if(r===e)return!0;n.push(r),r=N(r)}return!1}return!0})(i,t)||k("["+j(e)+"] not in hierarchy of ["+j(t)+"]");var o=null;I(i,p)?o=i[p]:(o=d+j(e,"_")+"$"+C.n,C.n++,i[p]=o);var a=z[m],c=!!a[x];c&&r&&void 0!==r[x]&&(c=!!r[x]);var f=function(e){var t={};return R(e,(function(n){!t[n]&&D(e,n,!1)&&(t[n]=e[n])})),t}(t),v=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i[u]&&r){var o=e[l]||{};!1!==o[h]&&(i=(o[t[p]]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var o={};R(n,(function(e){o[e]=i(t,n,e)}));for(var a=N(e),s=[];a&&!O(a)&&!L(s,a);)R(a,(function(e){!o[e]&&D(a,e,!A)&&(o[e]=i(t,a,e))})),s.push(a),a=N(a);return o}(i,t,f,c);n(t,v);var g=!!A&&!!a[w];g&&r&&(g=!!r[w]),M(i,o,t,f,!1!==g)}z[m]=C.o},6905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getExtensionApi=void 0;const r=n(19),i=n(7684);t.getExtensionApi=function(){return{registerOptionsSourceProvider:e=>i.optionsSourcesService.registerOptionsSourceProvider(e),registerValueProvider:e=>r.valueProviderService.registerValueProvider(e)}}},7982:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=t.tryExecuteAction=t.throwUnless=t.isUndefinedOrEmpty=t.setEnvironmentVariablesForInstallPaths=t.getRuntimeBinaryPathEnvironmentVariableName=t.getDateTimeString=t.isUserCancelledError=t.getErrorMessage=void 0;const r=n(6928),i=n(3508),o=n(2761);function a(e){return`${o.NoteBookEnvironmentVariablePrefix}${e.toUpperCase().replace(/ |-/g,"_")}`}t.getErrorMessage=function(e){return e instanceof Error?"string"==typeof e.message?e.message:"":"string"==typeof e?e:`${JSON.stringify(e,void 0,"\t")}`},t.isUserCancelledError=function(e){return e instanceof Error&&"type"in e&&0===e.type},t.getDateTimeString=function(){return(new Date).toISOString().slice(0,19).replace(/[^0-9]/g,"")},t.getRuntimeBinaryPathEnvironmentVariableName=a,t.setEnvironmentVariablesForInstallPaths=function(e,t=process.env){let n=new Set;if(e.forEach((e=>{if(e.installationPathOrAdditionalInformation){const i=a(e.name);t[i]=e.installationPathOrAdditionalInformation,n.add(r.dirname(e.installationPathOrAdditionalInformation))}})),n.size>0){const e=[...n.values()].join(r.delimiter);t[i.ToolsInstallPath]=e}},t.isUndefinedOrEmpty=function(e){return void 0===e||"string"==typeof e&&0===e.length},t.throwUnless=function(e,t){if(!e)throw new Error(t)},t.tryExecuteAction=async function(e){let t,n;try{n=await e()}catch(e){t=e}return{result:n,error:t}},t.deepClone=function e(t){if(!t||"object"!=typeof t)return t;if(t instanceof RegExp)return t;const n=Array.isArray(t)?[]:{};return Object.keys(t).forEach((r=>{t[r]&&"object"==typeof t[r]?n[r]=e(t[r]):n[r]=t[r]})),n}},3508:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsInstallPath=t.AzdataInstallLocationKey=t.DeploymentConfigurationKey=void 0,t.DeploymentConfigurationKey="deployment",t.AzdataInstallLocationKey="azdataInstallLocation",t.ToolsInstallPath="AZDATA_NB_VAR_TOOLS_INSTALLATION_PATH"},2761:(e,t)=>{"use strict";var n,r,i,o,a;Object.defineProperty(t,"__esModule",{value:!0}),t.ToolType=t.OsDistribution=t.OptionsType=t.FieldType=t.FontWeight=t.instanceOfDynamicOptionsInfo=t.instanceOfDynamicEnablementInfo=t.instanceOfCommandBasedDialogInfo=t.instanceOfNotebookBasedDialogInfo=t.instanceOfAzureSQLDBDeploymentProvider=t.instanceOfAzureSQLVMDeploymentProvider=t.instanceOfCommandDeploymentProvider=t.instanceOfDownloadDeploymentProvider=t.instanceOfWebPageDeploymentProvider=t.instanceOfNotebookDeploymentProvider=t.instanceOfNotebookWizardDeploymentProvider=t.instanceOfDialogDeploymentProvider=t.NoteBookEnvironmentVariablePrefix=void 0,t.NoteBookEnvironmentVariablePrefix="AZDATA_NB_VAR_",t.instanceOfDialogDeploymentProvider=function(e){return e&&"dialog"in e},t.instanceOfNotebookWizardDeploymentProvider=function(e){return e&&"notebookWizard"in e},t.instanceOfNotebookDeploymentProvider=function(e){return e&&"notebook"in e},t.instanceOfWebPageDeploymentProvider=function(e){return e&&"webPageUrl"in e},t.instanceOfDownloadDeploymentProvider=function(e){return e&&"downloadUrl"in e},t.instanceOfCommandDeploymentProvider=function(e){return e&&"command"in e},t.instanceOfAzureSQLVMDeploymentProvider=function(e){return e&&"azureSQLVMWizard"in e},t.instanceOfAzureSQLDBDeploymentProvider=function(e){return e&&"azureSQLDBWizard"in e},t.instanceOfNotebookBasedDialogInfo=function(e){return e&&"notebook"in e},t.instanceOfCommandBasedDialogInfo=function(e){return e&&"command"in e},t.instanceOfDynamicEnablementInfo=function(e){return void 0!==e?.target&&void 0!==e?.value},t.instanceOfDynamicOptionsInfo=function(e){return void 0!==e?.target&&void 0!==e?.alternates},function(e){e.Normal="normal",e.Bold="bold"}(n||(t.FontWeight=n={})),function(e){e.Text="text",e.Number="number",e.DateTimeText="datetime_text",e.SQLPassword="sql_password",e.Password="password",e.Options="options",e.ReadonlyText="readonly_text",e.Checkbox="checkbox",e.AzureAccount="azure_account",e.AzureLocations="azure_locations",e.FilePicker="file_picker",e.KubeClusterContextPicker="kube_cluster_context_picker",e.KubeStorageClass="kube_storage_class"}(r||(t.FieldType=r={})),function(e){e.Dropdown="dropdown",e.Radio="radio"}(i||(t.OptionsType=i={})),function(e){e.win32="win32",e.darwin="darwin",e.debian="debian",e.others="others"}(o||(t.OsDistribution=o={})),function(e){e[e.AzCli=0]="AzCli",e[e.KubeCtl=1]="KubeCtl",e[e.Docker=2]="Docker"}(a||(t.ToolType=a={}))},1651:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.requiredVersionText=t.versionText=t.statusText=t.toolText=t.descriptionText=t.getResourceTypeCategoryLocalizedString=t.taskFailedWithNoOutputNotebook=t.backgroundExecutionFailed=t.failedToOpenNotebook=t.viewErrorDetail=t.deployNotebook=t.scriptToNotebook=t.multipleValidationErrors=t.resourceTypeCategoryListViewTitle=t.resourceTypeSearchBoxDescription=t.resourceTypePickerDialogTitle=t.unknownExtension=t.installingExtension=t.install=t.extensionRequiredPrompt=t.acceptEulaAndSelect=t.azdataEulaDeclined=t.azdataEulaNotAccepted=t.optionsTypeRadioOrDropdown=t.optionsTypeNotFound=t.optionsNotObjectOrArray=t.optionsNotDefined=t.isPasswordFetchForUnsupportedVariable=t.variableValueFetchForUnsupportedVariable=t.noValueProviderDefined=t.noOptionsSourceDefined=t.valueProviderAlreadyDefined=t.optionsSourceAlreadyDefined=t.unknownFieldTypeError=t.realm=t.NewResourceGroupAriaLabel=t.createNewResourceGroup=t.no=t.yes=t.refresh=t.signIn=t.clusterContextNotFound=t.kubeConfigFilePath=t.select=t.browse=t.location=t.resourceGroup=t.subscriptionDescription=t.subscription=t.account=void 0,t.getToolInstallingMessage=t.optionsText=t.installToolsText=t.requiredToolsText=t.discoverPathOrAdditionalInformationText=void 0;const r=n(857),i=n(4200),o=n(7982),a=n(2761),s=i.loadMessageBundle(n(6928).join(__dirname,"localizedConstants.ts"));t.account=s(0,null),t.subscription=s(1,null),t.subscriptionDescription=s(2,null),t.resourceGroup=s(3,null),t.location=s(4,null),t.browse=s(5,null),t.select=s(6,null),t.kubeConfigFilePath=s(7,null),t.clusterContextNotFound=s(8,null),t.signIn=s(9,null),t.refresh=s(10,null),t.yes=s(11,null),t.no=s(12,null),t.createNewResourceGroup=s(13,null),t.NewResourceGroupAriaLabel=s(14,null),t.realm=s(15,null),t.unknownFieldTypeError=e=>s(16,null,e),t.optionsSourceAlreadyDefined=e=>s(17,null,e),t.valueProviderAlreadyDefined=e=>s(18,null,e),t.noOptionsSourceDefined=e=>s(19,null,e),t.noValueProviderDefined=e=>s(20,null,e),t.variableValueFetchForUnsupportedVariable=e=>s(21,null,e),t.isPasswordFetchForUnsupportedVariable=e=>s(22,null,e),t.optionsNotDefined=e=>s(23,null,e),t.optionsNotObjectOrArray=s(24,null),t.optionsTypeNotFound=s(25,null),t.optionsTypeRadioOrDropdown=s(26,null,a.OptionsType.Radio,a.OptionsType.Dropdown),t.azdataEulaNotAccepted=s(27,null),t.azdataEulaDeclined=s(28,null),t.acceptEulaAndSelect=s(29,null),t.extensionRequiredPrompt=e=>s(30,null,e),t.install=s(31,null),t.installingExtension=e=>s(32,null,e),t.unknownExtension=e=>s(33,null,e),t.resourceTypePickerDialogTitle=s(34,null),t.resourceTypeSearchBoxDescription=s(35,null),t.resourceTypeCategoryListViewTitle=s(36,null),t.multipleValidationErrors=s(37,null),t.scriptToNotebook=s(38,null),t.deployNotebook=s(39,null),t.viewErrorDetail=s(40,null),t.failedToOpenNotebook=e=>s(41,null,r.EOL,(0,o.getErrorMessage)(e)),t.backgroundExecutionFailed=e=>s(42,null,e),t.taskFailedWithNoOutputNotebook=e=>s(43,null,e),t.getResourceTypeCategoryLocalizedString=function(e){switch(e){case"All":return s(44,null);case"On-premises":return s(45,null);case"SQL Server":return s(46,null);case"Hybrid":return s(47,null);case"PostgreSQL":return s(48,null);case"Cloud":return s(49,null);default:return e}},t.descriptionText=s(50,null),t.toolText=s(51,null),t.statusText=s(52,null),t.versionText=s(53,null),t.requiredVersionText=s(54,null),t.discoverPathOrAdditionalInformationText=s(55,null),t.requiredToolsText=s(56,null),t.installToolsText=s(57,null),t.optionsText=s(58,null),t.getToolInstallingMessage=function(e){return s(59,null,e.displayName,e.homePage)}},7315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.apiService=void 0;const r=n(1398);t.apiService=new class{constructor(){}get azurecoreApi(){return r.extensions.getExtension("Microsoft.azurecore")?.exports}get azApi(){return r.extensions.getExtension("Microsoft.azcli")?.exports}get arcApi(){return r.extensions.getExtension("Microsoft.arc")?.exports}}},5634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultKubeConfigPath=t.getKubeConfigClusterContexts=t.KubeService=void 0;const r=n(6928),i=n(857),o=n(9238),a=n(9896);async function s(e){try{await a.promises.access(e)}catch(e){if(e&&"ENOENT"===e.code)return[];throw e}const t=o.load(e),n=t.contexts,r=t["current-context"],i=[];return r&&n&&n.length>0&&n.forEach((e=>{const t=e.name;t&&i.push({name:t,isCurrentContext:t===r})})),i}function c(){return r.join(i.homedir(),".kube","config")}t.KubeService=class{getDefaultConfigPath(){return c()}getClusterContexts(e){return s(e)}},t.getKubeConfigClusterContexts=s,t.getDefaultKubeConfigPath=c},2698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookService=void 0;const r=n(235),i=n(6928),o=n(1398),a=n(4200),s=n(7982),c=n(1651),l=a.loadMessageBundle(n(6928).join(__dirname,"services/notebookService.ts"));t.NotebookService=class{constructor(e,t){this.platformService=e,this.extensionPath=t}async openNotebook(e){const t=await this.getNotebookFullPath(e);return await this.showNotebookAsUntitled(t)}async openNotebookWithEdits(e,t,n=0){const r=await this.openNotebook(e);return await r.edit((e=>{e.insertCell({cell_type:"code",source:t},n)})),r}async openNotebookWithContent(e,t){const n=o.Uri.parse(`untitled:${this.findNextUntitledEditorName(e)}`);return await r.nb.showNotebookDocument(n,{connectionProfile:void 0,preview:!1,initialContent:t,initialDirtyState:!1})}async getNotebook(e){const t=await this.getNotebookFullPath(e);return JSON.parse(await this.platformService.readTextFile(t))}async executeNotebook(e,t){const n=JSON.stringify(e,void 0,4),r=`nb-${(0,s.getDateTimeString)()}.ipynb`,o=this.platformService.storagePath(),a=i.join(o,r),c=i.join(o,`output-${r}`),l=t||{};l.ACCEPT_EULA="yes";try{return await this.platformService.saveTextFile(n,a),await this.platformService.runCommand(`azdata notebook run --path "${a}" --output-path "${o}" --timeout -1`,{additionalEnvironmentVariables:l,workingDirectory:o}),{succeeded:!0}}catch(e){return{succeeded:!1,outputNotebook:await this.platformService.fileExists(c)?await this.platformService.readTextFile(c):void 0,errorMessage:(0,s.getErrorMessage)(e)}}finally{this.platformService.deleteFile(a),this.platformService.deleteFile(c)}}backgroundExecuteNotebook(e="Executing notebook",t,n,i,a){r.tasks.startBackgroundOperation({displayName:e,description:e,isCancelable:!1,operation:async l=>{l.updateStatus(r.TaskStatus.InProgress);const u="object"==typeof t&&"cells"in t?t:await this.getNotebook(t),p=await this.executeNotebook(u,a);if(p.succeeded)l.updateStatus(r.TaskStatus.Succeeded);else if(l.updateStatus(r.TaskStatus.Failed,p.errorMessage),p.outputNotebook){const t=c.backgroundExecutionFailed(e),r=await o.window.showErrorMessage(t,c.viewErrorDetail);if(i.logToOutputChannel(t),r===c.viewErrorDetail)try{await this.openNotebookWithContent(`${n}-${(0,s.getDateTimeString)()}`,p.outputNotebook)}catch(e){const t=c.failedToOpenNotebook(e);i.logToOutputChannel(t),o.window.showErrorMessage(t)}}else{const t=c.taskFailedWithNoOutputNotebook(e);i.logToOutputChannel(t),o.window.showErrorMessage(t)}}})}async getNotebookFullPath(e){const t=this.getNotebookPath(e);let n=await this.platformService.fileExists(t);if(n)return t;const r=i.join(this.extensionPath,t);if(n=await this.platformService.fileExists(r),n)return r;throw new Error(l(0,null,t))}getNotebookPath(e){let t;if(e&&"string"!=typeof e){const n=this.platformService.platform();t="win32"===n?e.win32:"darwin"===n?e.darwin:e.linux}else t=e;return t}findNextUntitledEditorName(e){const t=i.extname(e),n=i.basename(e,t);let r=0,o=`${n}`;do{o=`${n}${0===r?"":`-${r}`}`,r++}while(this.platformService.isNotebookNameUsed(o));return o}async showNotebookAsUntitled(e){let t=this.findNextUntitledEditorName(e);const n=o.Uri.parse(`untitled:${t}`);let i=(await o.workspace.openTextDocument(e)).getText();return await r.nb.showNotebookDocument(n,{connectionProfile:void 0,preview:!1,initialContent:i,initialDirtyState:!1})}}},7684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.optionsSourcesService=void 0;const r=n(1398),i=n(1651);t.optionsSourcesService=new class{constructor(){this._optionsSourceStore=new Map}registerOptionsSourceProvider(e){if(this._optionsSourceStore.has(e.id))throw new Error(i.optionsSourceAlreadyDefined(e.id));return this._optionsSourceStore.set(e.id,e),{dispose:()=>this.unregisterOptionsSourceProvider(e.id)}}unregisterOptionsSourceProvider(e){this._optionsSourceStore.delete(e)}async getOptionsSource(e){let t=this._optionsSourceStore.get(e);if(void 0===t){const n=r.extensions.all.find((t=>!!t.packageJSON.contributes?.resourceDeploymentOptionsSources?.find((t=>t.id===e))));if(n&&await n.activate(),t=this._optionsSourceStore.get(e),void 0===t)throw new Error(i.noOptionsSourceDefined(e))}return t}}},5568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformService=t.extensionOutputChannel=void 0;const r=n(235),i=n(9896),o=n(9956),a=n(5532),s=n(761),c=n(1398),l=n(4200),u=n(2761),p=n(7982),d=l.loadMessageBundle(n(6928).join(__dirname,"services/platformService.ts"));t.extensionOutputChannel=d(0,null),t.PlatformService=class{constructor(e){this._storagePath=e,this._outputChannel=c.window.createOutputChannel(t.extensionOutputChannel),this._osDistribution=this.getOsDistribution(),this._initializationEnsurer=this.ensureDirectoryExists(e)}async initialize(){await this._initializationEnsurer}storagePath(){return this._storagePath}platform(){return process.platform}outputChannelName(){return this._outputChannel.name}showOutputChannel(e){this._outputChannel.show(e)}osDistribution(){return this._osDistribution}getOsDistribution(){const e=o({mode:"sync"}),t=e.id_like||e.id||e.platform;return Object.values(u.OsDistribution).includes(t)?t:u.OsDistribution.others}async copyFile(e,t){return await i.promises.copyFile(e,t)}async fileExists(e){try{return await i.promises.access(e),!0}catch(e){if(e&&"ENOENT"===e.code)return!1;throw e}}openFile(e){c.commands.executeCommand("vscode.open",c.Uri.file(e))}showErrorMessage(e){c.window.showErrorMessage((0,p.getErrorMessage)(e))}isNotebookNameUsed(e){return r.nb.notebookDocuments.findIndex((t=>t.isUntitled&&t.fileName===e))>-1&&c.workspace.textDocuments.findIndex((t=>t.isUntitled&&t.fileName===e))>-1}async makeDirectory(e){await i.promises.mkdir(e)}async ensureDirectoryExists(e){await this.fileExists(e)||await this.makeDirectory(e)}async readTextFile(e){return await i.promises.readFile(e,"utf8")}logToOutputChannel(e,t){e.toString().split(/\r?\n/).forEach((e=>{this._outputChannel.appendLine(t?t+e:e)}))}outputDataChunk(e,t,n){e.toString().split(/\r?\n/).forEach((e=>{t.appendLine(n+e)}))}async runCommand(e,t){t&&void 0!==t.commandTitle&&null!==t.commandTitle&&this._outputChannel.appendLine(`\t[ ${t.commandTitle} ]`);try{return t&&t.sudo?await this.runSudoCommand(e,this._outputChannel,t):await this.runStreamedCommand(e,this._outputChannel,t)}catch(n){if(this._outputChannel.append(d(1,null,e,(0,p.getErrorMessage)(n))),t&&t.ignoreError)return this._outputChannel.append(d(2,null)),"";throw n}}sudoExec(e,t){return new Promise(((n,r)=>{s.exec(e,t,((e,t,i)=>{e?r(e):n({stdout:t,stderr:i})}))}))}async runSudoCommand(e,t,n){t.appendLine(` sudo> ${e}`),n&&n.workingDirectory&&process.chdir(n.workingDirectory);const r=Object.assign({},process.env,n&&n.additionalEnvironmentVariables),i={};Object.keys(r).filter((e=>/^[a-zA-Z_][a-zA-Z0-9_]*$/.test(e))).forEach((e=>{i[e]=r[e]}));const o={name:"AzureDataStudio",env:i};try{const{stdout:n,stderr:r}=await this.sudoExec(e,o);return this.outputDataChunk(n,t,d(3,null)),this.outputDataChunk(r,t,d(4,null)),n}catch(e){throw this.outputDataChunk(e,t,d(5,null)),e}}async runStreamedCommand(e,t,n){const r=[];t.appendLine(` > ${e}`);const i={cwd:n&&n.workingDirectory,env:Object.assign({},process.env,n&&n.additionalEnvironmentVariables),encoding:"utf8",maxBuffer:10485760,shell:!0,detached:!1,windowsHide:!0},o=a.spawn(e,[],i);return o.on("exit",((n,r)=>{null!==n?t.appendLine(d(6,null,e,n)):t.appendLine(d(7,null,e,r))})),o.stdout.on("data",(e=>{r.push(e.toString()),this.outputDataChunk(e,t,d(8,null))})),o.stderr.on("data",(e=>{this.outputDataChunk(e,t,d(9,null))})),await o,r.join("")}saveTextFile(e,t){return i.promises.writeFile(t,e,"utf8")}async deleteFile(e,t=!0){try{await this.fileExists(e)&&i.promises.unlink(e)}catch(e){if(!t)throw e;console.error("Error occurred deleting file: ",(0,p.getErrorMessage)(e))}}}},5085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processWhenClause=t.ResourceTypeService=void 0;const r=n(9896),i=n(5692),o=n(857),a=n(6928),s=n(1398),c=n(4200),l=n(2761),u=n(5634),p=n(1651),d=n(4101),f=n(7982),h=c.loadMessageBundle(n(6928).join(__dirname,"services/resourceTypeService.ts"));async function m(e){try{return await r.promises.access(e),!0}catch(e){return!1}}function v(e,t){if(void 0===e||"true"===e.toString().toLowerCase())return!0;{const n=e.replace(/\s/g,"").split("&&").sort(),r=t.map((e=>`${e.option}=${e.value}`));for(let e of n)if(-1===r.indexOf(e))return!1;return!0}}t.ResourceTypeService=class{constructor(e,t,n){this.platformService=e,this.toolsService=t,this.notebookService=n,this._resourceTypes=[]}getResourceTypes(e=!0){let t=this._resourceTypes;return e&&(t=t.filter((e=>"string"==typeof e.platforms&&"*"===e.platforms||e.platforms.includes(this.platformService.platform())))),t}loadResourceTypes(){const e=[];s.extensions.all.forEach((t=>{const n=t.packageJSON.contributes?.resourceDeploymentTypes;n?.forEach(((n,r)=>{const i=(0,f.deepClone)(n);this.updatePathProperties(i,t.extensionPath),i.getProvider=e=>this.getProvider(i,e),i.getOkButtonText=e=>this.getOkButtonText(i,e),i.getAgreementInfo=e=>this.getAgreementInfo(i,e),i.getHelpText=e=>this.getHelpText(i,e),this.getResourceSubTypes(i);const o=this.validateResourceType(i,`resource type index: ${r}`);o.length>0?console.log(`Found errors validating resource type at index ${r} in extension ${t.id}\n${o.join("\n")}`):e.push(i)}))})),this._resourceTypes=e}updatePathProperties(e,t){"string"==typeof e.icon?e.icon=a.join(t,e.icon):(e.icon.dark=a.join(t,e.icon.dark),e.icon.light=a.join(t,e.icon.light)),e.providers.forEach((e=>{this.updateProviderPathProperties(e,t)}))}updateProviderPathProperties(e,t){(0,l.instanceOfNotebookDeploymentProvider)(e)?this.updateNotebookPath(e,t):(0,l.instanceOfDialogDeploymentProvider)(e)&&(0,l.instanceOfNotebookBasedDialogInfo)(e.dialog)?this.updateNotebookPath(e.dialog,t):"notebookWizard"in e?this.updateNotebookPath(e.notebookWizard,t):"azureSQLVMWizard"in e?this.updateNotebookPath(e.azureSQLVMWizard,t):"azureSQLDBWizard"in e&&this.updateNotebookPath(e.azureSQLDBWizard,t)}updateNotebookPath(e,t){e&&e.notebook&&("string"==typeof e.notebook?e.notebook=a.join(t,e.notebook):Array.isArray(e.notebook)?e.notebook.forEach((e=>{e.path=a.join(t,e.path)})):(e.notebook.darwin&&(e.notebook.darwin=a.join(t,e.notebook.darwin)),e.notebook.win32&&(e.notebook.darwin=a.join(t,e.notebook.win32)),e.notebook.linux&&(e.notebook=a.join(t,e.notebook.linux))))}getResourceSubTypes(e){s.extensions.all.forEach((t=>{const n=t.packageJSON.contributes?.resourceDeploymentSubTypes;n?.forEach((n=>{const r=(0,f.deepClone)(n);if(r.resourceName===e.name){this.updateProviderPathProperties(r.provider,t.extensionPath);const n=new Set(e.tags);r.tags?.forEach((e=>n.add(e))),e.tags=Array.from(n),e.providers.push(r.provider),r.okButtonText&&e.okButtonText?.push(r.okButtonText),r.options&&e.options.forEach((e=>{r.options.forEach((t=>{e.name===t.name&&(e.values=e.values.concat(t.values))}))})),r.agreement&&e.agreements?.push(r.agreement),r.helpText&&e.helpTexts.push(r.helpText)}}))}))}validateResourceType(e,t){const n=[];if(this.validateNameDisplayName(e,"resource type",t,n),e.icon&&("object"!=typeof e.icon||e.icon.dark&&e.icon.light)||n.push(`Icon for resource type is not specified properly. ${t} `),e.options&&e.options.length>0){let r=1;e.options.forEach((e=>{const i=`${t}, option index: ${r} `;this.validateResourceTypeOption(e,i,n),r++}))}return this.validateProviders(e,t,n),n}validateResourceTypeOption(e,t,n){if(this.validateNameDisplayName(e,"option",t,n),e.values&&0!==e.values.length){let r=1;e.values.forEach((e=>{const i=`${t}, option value index: ${r} `;this.validateNameDisplayName(e,"option value",i,n),r++}));for(let r=0;r<e.values.length;r++)if(e.values[r].name&&e.values[r].displayName){let i=[];for(let t=r+1;t<e.values.length;t++)e.values[r].name!==e.values[t].name&&e.values[r].displayName!==e.values[t].displayName||i.push(t+1);0!==i.length&&(n.push(`Option values with same name or display name are found at the following positions: ${r+1}, ${i.join(",")}.${t} `),n.push(JSON.stringify(e)))}}else n.push(`Option contains no values.${t} `)}validateProviders(e,t,n){if(e.providers&&0!==e.providers.length){let r=1;e.providers.forEach((e=>{const i=`${t}, provider index: ${r} `;(0,l.instanceOfNotebookWizardDeploymentProvider)(e)||(0,l.instanceOfDialogDeploymentProvider)(e)||(0,l.instanceOfNotebookDeploymentProvider)(e)||(0,l.instanceOfDownloadDeploymentProvider)(e)||(0,l.instanceOfWebPageDeploymentProvider)(e)||(0,l.instanceOfCommandDeploymentProvider)(e)||(0,l.instanceOfAzureSQLVMDeploymentProvider)(e)||(0,l.instanceOfAzureSQLDBDeploymentProvider)(e)||n.push(`No deployment method defined for the provider, ${i}`),e.requiredTools&&e.requiredTools.length>0&&e.requiredTools.forEach((e=>{this.toolsService.getToolByName(e.name)||n.push(`The tool is not supported: ${e.name}, ${i} `)})),r++}))}else n.push(`No providers defined for resource type, ${t}`)}validateNameDisplayName(e,t,n,r){e.name||r.push(`Name of the ${t} is empty.${n} `),e.displayName||r.push(`Display name of the ${t} is empty.${n} `)}getProvider(e,t){for(let n=0;n<e.providers.length;n++){const r=e.providers[n];if(v(r.when,t))return r}}getOkButtonText(e,t){if(e.okButtonText)for(const n of e.okButtonText)if(v(n.when,t))return n.value;return p.select}getAgreementInfo(e,t){if(e.agreements)for(const n of e.agreements)if(v(n.when,t))return n}getHelpText(e,t){if(e.helpTexts)for(const n of e.helpTexts)if(v(n.when,t))return n}startDeployment(e,t,n){new d.ResourceTypeWizard(e,new u.KubeService,this.notebookService,this.toolsService,this.platformService,this,t,n).open()}download(e){const t=this;return new Promise(((n,s)=>{i.get(e,(async function(i){if(console.log("Download installer from: "+e),301===i.statusCode||302===i.statusCode)return console.log("Redirecting the download to: "+i.headers.location),void t.download(i.headers.location).then((e=>{n(e)}),(e=>{s(e)}));if(200!==i.statusCode)return void s(h(0,null,i.statusCode,i.statusMessage));const c=a.extname(e),l=a.basename(e,c);let u=l,p=a.join(o.homedir(),"Downloads");await m(p)||(p=o.homedir());let d=1;for(;await m(a.join(p,u+c));)u=`${l}-${d}`,d++;u=a.join(p,u+c);const f=(0,r.createWriteStream)(u);i.pipe(f),f.on("finish",(()=>{f.close(),n(u)})),f.on("error",(async e=>{await r.promises.unlink(u),s(e.message)}))}))}))}},t.processWhenClause=v},9146:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TelemetryAction=t.TelemetryView=t.TelemetryReporter=void 0;const r=n(1398),i=n(1616),o=r.extensions.getExtension("Microsoft.resource-deployment").packageJSON;var a,s;t.TelemetryReporter=new i.default(o.name,o.version,o.aiKey),function(e){e.ResourceTypeWizard="ResourceTypeWizard"}(a||(t.TelemetryView=a={})),function(e){e.SelectedDeploymentType="SelectedDeploymentType"}(s||(t.TelemetryAction=s={}))},4323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzCliTool=t.AzCliToolName=void 0;const r=n(857),i=n(1970),o=n(4200),a=n(2761),s=n(3967),c=o.loadMessageBundle(n(6928).join(__dirname,"services/tools/azCliTool.ts")),l=`${process.env["ProgramFiles(x86)"]}\\Microsoft SDKs\\Azure\\CLI2\\wbin`;t.AzCliToolName="azure-cli";class u extends s.ToolBase{constructor(e){super(e),this.allInstallationCommands=new Map([[a.OsDistribution.debian,f],[a.OsDistribution.win32,p],[a.OsDistribution.darwin,d],[a.OsDistribution.others,h]]),this.dependenciesByOsType=new Map([[a.OsDistribution.debian,[]],[a.OsDistribution.win32,[]],[a.OsDistribution.darwin,["Brew"]],[a.OsDistribution.others,["Curl"]]])}get name(){return t.AzCliToolName}get description(){return c(0,null)}get type(){return a.ToolType.AzCli}get displayName(){return c(1,null)}get homePage(){return"https://docs.microsoft.com/cli/azure/install-azure-cli"}async getSearchPaths(){return this.osDistribution===a.OsDistribution.win32?[l]:["/usr/local/bin"]}getVersionFromOutput(e){return e&&e.includes("azure-cli")?new i.SemVer(e.split(r.EOL)[0].replace(/azure-cli/g,"").replace(/ /g,"").replace(/\*/g,"")):void 0}get versionCommand(){return{command:"az --version"}}get discoveryCommand(){return{command:this.discoveryCommandString("az")}}}t.AzCliTool=u;const p=[{comment:c(2,null),command:"IF EXIST .\\AzureCLI.msi DEL /F .\\AzureCLI.msi"},{sudo:!0,comment:c(3,null),command:"powershell -Command \"& {(New-Object System.Net.WebClient).DownloadFile('https://aka.ms/installazurecliwindows', 'AzureCLI.msi'); Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /passive /quiet /lvx ADS_AzureCliInstall.log'}\""},{comment:c(4,null),command:'type ADS_AzureCliInstall.log | findstr /i /v "^MSI"',ignoreError:!0}],d=[{comment:c(5,null),command:"brew update"},{comment:c(6,null),command:"brew install azure-cli"}],f=[{sudo:!0,comment:c(7,null),command:"apt-get update"},{sudo:!0,comment:c(8,null),command:"apt-get install ca-certificates curl apt-transport-https lsb-release gnupg -y"},{sudo:!0,comment:c(9,null),command:"curl -sL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | tee /etc/apt/trusted.gpg.d/microsoft.asc.gpg > /dev/null"},{sudo:!0,comment:c(10,null),command:'echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ `lsb_release -cs` main" | tee /etc/apt/sources.list.d/azure-cli.list'},{sudo:!0,comment:c(11,null),command:"apt-get update"},{sudo:!0,comment:c(12,null),command:"apt-get install azure-cli"}],h=[{sudo:!0,comment:c(13,null),command:"curl -sL https://aka.ms/InstallAzureCLIDeb | bash"}]},5186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DockerTool=void 0;const r=n(1970),i=n(4200),o=n(2761),a=n(3967),s=i.loadMessageBundle(n(6928).join(__dirname,"services/tools/dockerTool.ts"));class c extends a.ToolBase{constructor(e){super(e),this.discoveryCommand={command:""},this.allInstallationCommands=new Map}get name(){return"docker"}get description(){return s(0,null)}get type(){return o.ToolType.Docker}get displayName(){return s(1,null)}get homePage(){return"https://docs.docker.com/install"}getVersionFromOutput(e){let t;return e&&(t=new r.SemVer(JSON.parse(e).Client.Version,!0)),t}get versionCommand(){return{command:'docker version --format "{{json .}}"'}}}t.DockerTool=c},7390:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KubeCtlTool=t.KubeCtlToolName=void 0;const r=n(2761),i=n(4200),o=n(1970),a=n(3967),s=i.loadMessageBundle(n(6928).join(__dirname,"services/tools/kubeCtlTool.ts"));t.KubeCtlToolName="kubectl";class c extends a.ToolBase{constructor(e){super(e),this.allInstallationCommands=new Map([[r.OsDistribution.debian,u],[r.OsDistribution.win32,p],[r.OsDistribution.darwin,l],[r.OsDistribution.others,d]]),this.dependenciesByOsType=new Map([[r.OsDistribution.debian,[]],[r.OsDistribution.win32,[]],[r.OsDistribution.darwin,["Brew"]],[r.OsDistribution.others,["Curl"]]])}get name(){return t.KubeCtlToolName}get description(){return s(0,null)}get type(){return r.ToolType.KubeCtl}get displayName(){return s(1,null)}get homePage(){return"https://kubernetes.io/docs/tasks/tools/install-kubectl"}async getStorageClasses(){const e=JSON.parse(await this.platformService.runCommand("kubectl get sc -o json")).items.filter((e=>e.metadata));return{storageClasses:e.map((e=>e.metadata.name)),defaultStorageClass:e.find((e=>"true"===e.metadata.annotations?.["storageclass.kubernetes.io/is-default-class"]))?.metadata.name??""}}getVersionFromOutput(e){let t;if(e){const n=JSON.parse(e);if(!(n&&n.clientVersion&&n.clientVersion.gitVersion))throw new Error(s(2,null,e));t=new o.SemVer(n.clientVersion.gitVersion)}return t}get versionCommand(){return{command:"kubectl version -o json --client"}}get discoveryCommand(){return{command:this.discoveryCommandString("kubectl")}}async getSearchPaths(){return this.osDistribution===r.OsDistribution.win32?[this.storagePath]:["/usr/local/bin"]}}t.KubeCtlTool=c;const l=[{comment:s(3,null),command:"brew update"},{comment:s(4,null),command:"brew install kubectl"}],u=[{sudo:!0,comment:s(5,null),command:"apt-get update"},{sudo:!0,comment:s(6,null),command:"apt-get install -y apt-transport-https"},{sudo:!0,comment:s(7,null),command:"curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -"},{sudo:!0,comment:s(8,null),command:'echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" | tee -a /etc/apt/sources.list.d/kubernetes.list'},{sudo:!0,comment:s(9,null),command:"apt-get update"},{sudo:!0,comment:s(10,null),command:"apt-get install -y kubectl"}],p=[{comment:s(11,null),command:"IF EXIST .\\kubectl.exe DEL /F .\\kubectl.exe"},{comment:s(12,null),command:'powershell -Command "& {$WebClient = New-Object System.Net.WebClient; $Version=$WebClient.DownloadString(\'https://storage.googleapis.com/kubernetes-release/release/stable.txt\').Trim();Write-Output \\"KubeCtl Version=$Version\\";$Url=\\"https://storage.googleapis.com/kubernetes-release/release/$Version/bin/windows/amd64/kubectl.exe\\"; Write-Output \\"Downloading file: $Url\\"; $WebClient.DownloadFile($Url, \'kubectl.exe\')}"'}],d=[{comment:s(13,null),command:"[ -e ./kubectl ] && rm -f ./kubectl"},{comment:s(14,null),command:"curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl"},{comment:s(15,null),command:"chmod +x ./kubectl"},{sudo:!0,comment:s(16,null),command:"[ -e /usr/local/bin/kubectl] && [ -e /usr/local/bin/kubectl_movedByADS ] && rm -f /usr/local/bin/kubectl_movedByADS"},{sudo:!0,comment:s(17,null),command:"[ -e /usr/local/bin/kubectl ] && mv /usr/local/bin/kubectl /usr/local/bin/kubectl_movedByADS"},{comment:s(18,null),sudo:!0,command:"mv ./kubectl /usr/local/bin/kubectl"}]},3967:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolBase=t.messageByDependencyType=void 0;const r=n(857),i=n(6928),o=n(1970),a=n(1398),s=n(4200),c=n(7982),l=n(2761),u=s.loadMessageBundle(n(6928).join(__dirname,"services/tools/toolBase.ts")),p=u(0,null),d=u(1,null),f=u(2,null),h=u(3,null),m=u(4,null),v=new Map([["Error",h],["Installed",d],["Installing",f],["NotInstalled",p],["Failed",m]]),g=u(5,null),b=u(6,null);t.messageByDependencyType=new Map([["Brew",g],["Curl",b]]),t.ToolBase=class{constructor(e){this.platformService=e,this.dependenciesByOsType=new Map,this._onDidUpdateData=new a.EventEmitter,this._status="NotInstalled",this.startVersionAndStatusUpdate()}isEulaAccepted(){return Promise.resolve(!0)}promptForEula(){return Promise.resolve(!0)}get dependencyMessages(){return(this.dependenciesByOsType.get(this.osDistribution)||[]).map((e=>t.messageByDependencyType.get(e)))}async getInstallationPath(){}async getSearchPaths(){return[]}get downloadPath(){return this.storagePath}logToOutputChannel(e,t){this.platformService.logToOutputChannel(e,t)}get onDidUpdateData(){return this._onDidUpdateData.event}get status(){return this._status}setStatus(e){this._status=e,this._onDidUpdateData.fire(this)}get displayStatus(){return v.get(this._status)}get autoInstallNeeded(){return"NotInstalled"===this.status&&this.autoInstallSupported}get storagePath(){return this.platformService.storagePath()}get osDistribution(){return this.platformService.osDistribution()}get version(){return this._version}set version(e){this._version=e,this._onDidUpdateData.fire(this)}get fullVersion(){return this._version&&this._version.version}get statusDescription(){return this._statusDescription}setStatusDescription(e){this._statusDescription=e}get installationPathOrAdditionalInformation(){return this._installationPathOrAdditionalInformation}setInstallationPathOrAdditionalInformation(e){this._installationPathOrAdditionalInformation=e}get installationCommands(){return this.allInstallationCommands.get(this.osDistribution)}async getPip3InstallLocation(e){const t=`pip3 show ${e}`,n=await this.platformService.runCommand(t,{sudo:!1,ignoreError:!0}),r=/^Location\: (.*)$/gim.exec(n);let i=r&&r[1];return null==i?(this.logToOutputChannel(` >${t}`),this.logToOutputChannel(u(7,null)),this.logToOutputChannel(n,u(8,null)),""):i}get outputChannelName(){return this.platformService.outputChannelName()}showOutputChannel(e){this.platformService.showOutputChannel(e)}get autoInstallSupported(){return!!this.installationCommands&&!!this.installationCommands.length}async install(){this._statusDescription="";try{this.setStatus("Installing"),await this.installCore(),this.startVersionAndStatusUpdate(),await this._pendingVersionAndStatusUpdate}catch(e){const t=(0,c.getErrorMessage)(e);throw this._statusDescription=u(9,null,this.displayName,this.homePage,r.EOL,t,this.outputChannelName),this.setStatus("Error"),this._installationPathOrAdditionalInformation=u(10,null,this.outputChannelName),e}if("NotInstalled"===this.status)throw this._statusDescription=u(11,null,this.displayName,this._statusDescription,r.EOL),this._installationPathOrAdditionalInformation=u(12,null,this.outputChannelName),this.uninstallCommand&&(this._statusDescription+=u(13,null,r.EOL,this.uninstallCommand)),this._statusDescription+=u(14,null,r.EOL,this.outputChannelName),this.setStatus("Failed"),new Error(this._statusDescription)}async installCore(){const e=this.installationCommands;if(!e||0===e.length)throw new Error(u(15,null,this.displayName,this.description));for(let t=0;t<e.length;t++)await this.platformService.runCommand(e[t].command,{workingDirectory:e[t].workingDirectory||this.downloadPath,additionalEnvironmentVariables:e[t].additionalEnvironmentVariables,sudo:e[t].sudo,commandTitle:e[t].comment,ignoreError:e[t].ignoreError})}async addInstallationSearchPathsToSystemPath(){const e=[...new Set([...await this.getSearchPaths(),this.storagePath].filter((e=>!!e))).values()];this.logToOutputChannel(u(16,null,this.displayName,JSON.stringify(e,void 0,"\t"))),e.forEach((e=>{process.env.PATH?`${i.delimiter}${process.env.PATH}${i.delimiter}`.includes(`${i.delimiter}${e}${i.delimiter}`)||(process.env.PATH+=`${i.delimiter}${e}`):process.env.PATH=e}))}async finishInitialization(){try{await this._pendingVersionAndStatusUpdate}catch(e){throw this.setStatus("Error"),this._statusDescription=(0,c.getErrorMessage)(e),this._installationPathOrAdditionalInformation=this._statusDescription,e}}startVersionAndStatusUpdate(){this._statusDescription="",this._pendingVersionAndStatusUpdate=this.updateVersionAndStatus()}async updateVersionAndStatus(){this._statusDescription="",await this.addInstallationSearchPathsToSystemPath();const e=await this.platformService.runCommand(this.versionCommand.command,{workingDirectory:this.versionCommand.workingDirectory,additionalEnvironmentVariables:this.versionCommand.additionalEnvironmentVariables,sudo:!1,ignoreError:!0});this.version=await this.getVersionFromOutput(e),this.version?(this.autoInstallSupported&&await this.setInstallationPath(),this.setStatus("Installed")):(this._installationPathOrAdditionalInformation=u(17,null,this.outputChannelName),this._statusDescription=u(18,null,r.EOL,e),this.setStatus("NotInstalled"))}discoveryCommandString(e){switch(this.osDistribution){case l.OsDistribution.win32:return`where.exe ${e}`;case l.OsDistribution.darwin:return`command -v ${e}`;default:return`which ${e}`}}async setInstallationPath(){const e=await this.platformService.runCommand(this.discoveryCommand.command,{workingDirectory:this.discoveryCommand.workingDirectory,additionalEnvironmentVariables:this.discoveryCommand.additionalEnvironmentVariables,sudo:!1,ignoreError:!1});if(!e)throw new Error(`Install location of tool:'${this.displayName}' could not be discovered`);this._installationPathOrAdditionalInformation=i.resolve(e.split(r.EOL)[0])}isSameOrNewerThan(e){return!e||!!this._version&&(0,o.compare)(this._version.raw,e)>=0}}},2566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsService=void 0;const r=n(5186),i=n(4323),o=n(7390);t.ToolsService=class{constructor(e){this._platformService=e,this.currentTools=[],this.supportedTools=new Map([new r.DockerTool(this._platformService),new i.AzCliTool(this._platformService),new o.KubeCtlTool(this._platformService)].map((e=>[e.name,e])))}getToolByName(e){return this.supportedTools.get(e)}get toolsForCurrentProvider(){return this.currentTools}set toolsForCurrentProvider(e){this.currentTools=e}}},2247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UriHandlerService=void 0;const r=n(1398),i=n(1651);t.UriHandlerService=class{constructor(e){this._resourceTypeService=e}async handleUri(e){if("/deploy"===e.path){const t=e.query.split("&").map((e=>e.split("="))),n=t.find((e=>"type"===e[0]))?.[1],o=t.find((e=>"extension"===e[0]))?.[1];if(o){const e=r.extensions.getExtension(o);if(e)await e.activate();else{const e=await r.commands.executeCommand("workbench.extensions.getExtensionFromGallery",o);if(!e)return void r.window.showErrorMessage(i.unknownExtension(o));if(await r.window.showInformationMessage(i.extensionRequiredPrompt(e.displayName),i.install)!==i.install)return void console.log(`User cancelled out of prompt to install required extension '${o}' for Resource Deployment URI`);await r.window.withProgress({location:r.ProgressLocation.Notification,title:i.installingExtension(e.displayName),cancellable:!1},(async(e,t)=>{await r.commands.executeCommand("workbench.extensions.installExtension",o)}))}}const a=JSON.parse(t.find((e=>"params"===e[0]))?.[1]??"{}"),s=this._resourceTypeService.getResourceTypes().find((e=>e.name===n));if(n&&!s&&console.warn(`Unknown resource type ${n}`),!s)return r.commands.executeCommand("azdata.resource.deploy");this._resourceTypeService.startDeployment(s,void 0,a)}}}},19:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.valueProviderService=void 0;const r=n(1398),i=n(1651);t.valueProviderService=new class{constructor(){this._valueProviderStore=new Map}registerValueProvider(e){if(this._valueProviderStore.has(e.id))throw new Error(i.valueProviderAlreadyDefined(e.id));return this._valueProviderStore.set(e.id,e),{dispose:()=>this.unregisterValueProvider(e.id)}}unregisterValueProvider(e){this._valueProviderStore.delete(e)}async getValueProvider(e){let t=this._valueProviderStore.get(e);if(void 0===t){const n=r.extensions.all.find((t=>!!t.packageJSON.contributes?.resourceDeploymentValueProviders?.find((t=>t.id===e))));if(n&&await n.activate(),t=this._valueProviderStore.get(e),void 0===t)throw new Error(i.noValueProviderDefined(e))}return t}}},1247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirewallToggleLabel=t.FirewallRuleDescription=t.EndIpAddressShortLabel=t.StartIpAddressShortLabel=t.EndIpAddressLabel=t.StartIpAddressLabel=t.IpAddressInfoLabel=t.CollationNameSummaryLabel=t.CollationNameLabel=t.DatabaseNameLabel=t.FirewallRuleNameLabel=t.DatabaseSettingsPageTitle=t.AzureAccountResourceGroupDropdownLabel=t.AzureAccountDatabaseServersDropdownLabel=t.AzureAccountSubscriptionDropdownLabel=t.AzureAccountDropdownLabel=t.AzureSettingsSummaryPageTitle=t.AzureSettingsPageTitle=t.MissingRequiredInformationErrorMessage=t.WizardDoneButtonLabel=t.WizardTitle=t.standardWidth=void 0;const r=n(4200).loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLDBWizard/constants.ts"));t.standardWidth="480px",t.WizardTitle=r(0,null),t.WizardDoneButtonLabel=r(1,null),t.MissingRequiredInformationErrorMessage=r(2,null),t.AzureSettingsPageTitle=r(3,null),t.AzureSettingsSummaryPageTitle=r(4,null),t.AzureAccountDropdownLabel=r(5,null),t.AzureAccountSubscriptionDropdownLabel=r(6,null),t.AzureAccountDatabaseServersDropdownLabel=r(7,null),t.AzureAccountResourceGroupDropdownLabel=r(8,null),t.DatabaseSettingsPageTitle=r(9,null),t.FirewallRuleNameLabel=r(10,null),t.DatabaseNameLabel=r(11,null),t.CollationNameLabel=r(12,null),t.CollationNameSummaryLabel=r(13,null),t.IpAddressInfoLabel=r(14,null),t.StartIpAddressLabel=r(15,null),t.EndIpAddressLabel=r(16,null),t.StartIpAddressShortLabel=r(17,null),t.EndIpAddressShortLabel=r(18,null),t.FirewallRuleDescription=r(19,null),t.FirewallToggleLabel=r(20,null)},8706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeployAzureSQLDBWizardModel=void 0;const r=n(857),i=n(1398),o=n(1247),a=n(9329),s=n(4545),c=n(1774),l=n(8102),u=n(2148);class p extends s.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get toolService(){return this.wizard.toolsService}constructor(e,t){super(e,t),this.sqldbProvider=e,this.cache=new Map,this.wizard.wizardObject.title=o.WizardTitle}initialize(){this.wizard.setPages(this.getPages()),this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.doneButton.label=o.WizardDoneButtonLabel}async onOk(){await this.scriptToNotebook()}getPages(){const e=[];return e.push(new u.AzureSettingsPage(this)),e.push(new c.DatabaseSettingsPage(this)),e.push(new l.AzureSQLDBSummaryPage(this)),e}async getRequest(e,t=!1){if(t&&this.cache.has(e))return this.cache.get(e);const n={headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.securityToken.token}`},validateStatus:()=>!0},o=await a.default.get(e,n);if(200!==o.status){let e=[];e.push(o.status.toString()),e.push(o.statusText),o.data&&o.data.error&&e.push(`${o.data.error.code} : ${o.data.error.message}`),i.window.showErrorMessage(e.join(r.EOL))}return t&&this.cache.set(e,o),o}createFormRowComponent(e,t,n,r,i){r.updateProperties({required:i,width:"480px"});const o=e.modelBuilder.text().withProps({value:t,width:"250px",description:n,requiredIndicator:i}).component();return o.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([o,r],{CSSStyles:{"margin-right":"5px"}}).component()}changeComponentDisplay(e,t){e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}changeRowDisplay(e,t){e.items.map((e=>{e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}))}addDropdownValues(e,t,n){e.updateProperties({values:t,width:"480px"})}async scriptToNotebook(){const e=this.getCodeCellContentForNotebook();try{await this.notebookService.openNotebookWithEdits(this.sqldbProvider.azureSQLDBWizard.notebook,e,2)}catch(e){i.window.showErrorMessage(e)}}getCodeCellContentForNotebook(){const e=[];return e.push(`azure_sqldb_subscription = '${this.azureSubscription}'`),e.push(`azure_sqldb_resource_group_name = '${this.azureResouceGroup}'`),e.push(`azure_sqldb_server_name = '${this.azureServerName}'`),e.push(`azure_sqldb_database_name = '${this.databaseName}'`),e.push(`azure_sqldb_collation = '${this.databaseCollation}'`),e.push("azure_sqldb_enable_firewall_rule = "+(this.newFirewallRule?"True":"False")),this.newFirewallRule&&(e.push(`azure_sqldb_ip_start = '${this.startIpAddress}'`),e.push(`azure_sqldb_ip_end = '${this.endIpAddress}'`),e.push(`azure_sqldb_firewall_name = '${this.firewallRuleName}'`)),e.map((e=>e.concat(r.EOL)))}}t.DeployAzureSQLDBWizardModel=p},2148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSettingsPage=void 0;const r=n(235),i=n(857),o=n(1247),a=n(7315),s=n(1398),c=n(9315),l=n(4200),u=n(1651),p=l.loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLDBWizard/pages/azureSettingsPage.ts"));class d extends c.BasePage{constructor(e){super(o.AzureSettingsPageTitle,"",e.wizard),this._model=e,this._accountsMap=new Map,this._subscriptionsMap=new Map}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createAzureAccountsDropdown(e),this.createAzureSubscriptionsDropdown(e),this.createServerDropdown(e)]),this.populateAzureAccountsDropdown(),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,o.AzureAccountDropdownLabel,"",this._azureAccountsDropdown,!0)},{component:this.buttonFlexContainer},{component:this._model.createFormRowComponent(e,o.AzureAccountSubscriptionDropdownLabel,"",this._azureSubscriptionsDropdown,!0)},{component:this._model.createFormRowComponent(e,o.AzureAccountDatabaseServersDropdownLabel,"",this._serverGroupDropdown,!0)}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||""===await this.validate()))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createAzureAccountsDropdown(e){this._azureAccountsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureAccountsDropdown.onValueChanged((async e=>{this._model.azureAccount=this._accountsMap.get(e.selected),this.populateAzureSubscriptionsDropdown()})),this.signInButton=e.modelBuilder.button().withProps({label:u.signIn,width:"100px",secondary:!0}).component(),this.refreshButton=e.modelBuilder.button().withProps({label:u.refresh,width:"100px",secondary:!0}).component(),this.signInButton.onDidClick((async e=>{await s.commands.executeCommand("workbench.actions.modal.linkedAccount"),await this.populateAzureAccountsDropdown()})),this.refreshButton.onDidClick((async e=>{await this.populateAzureAccountsDropdown()})),this.buttonFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems([this.signInButton,this.refreshButton],{CSSStyles:{"margin-right":"5px"}}).component()}async populateAzureAccountsDropdown(){this._azureAccountsDropdown.loading=!0;let e=await r.accounts.getAllAccounts();0!==e.length?(this._model.wizard.showErrorMessage(""),this._model.addDropdownValues(this._azureAccountsDropdown,e.map((e=>{let t={displayName:e.displayInfo.displayName,name:e.displayInfo.displayName};return this._accountsMap.set(t.displayName,e),t}))),this._model.azureAccount=e[0],this._azureAccountsDropdown.loading=!1,await this.populateAzureSubscriptionsDropdown()):this._model.wizard.showErrorMessage(p(0,null))}async createAzureSubscriptionsDropdown(e){this._azureSubscriptionsDropdown=e.modelBuilder.dropDown().component(),this._azureSubscriptionsDropdown.onValueChanged((async e=>{let t=this._azureSubscriptionsDropdown.value;this._model.azureSubscription=t.name,this._model.azureSubscriptionDisplayName=t.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(t.name)?.tenant,r.AzureResource.ResourceManagement),await this.populateServerGroupDropdown()}))}async populateAzureSubscriptionsDropdown(){this._azureSubscriptionsDropdown.loading=!0;let e=a.apiService.azurecoreApi,t=this._azureAccountsDropdown.value;if(void 0===t)return this._azureSubscriptionsDropdown.loading=!1,void await this.populateServerGroupDropdown();let n=this._accountsMap.get(t.name),i=(await e.getSubscriptions(n,!0)).subscriptions;if(void 0===i||0===i.length)return this._azureSubscriptionsDropdown.updateProperties({values:[]}),this._azureSubscriptionsDropdown.loading=!1,void await this.populateServerGroupDropdown();i.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._model.addDropdownValues(this._azureSubscriptionsDropdown,i.map((e=>{let t={displayName:e.name+" - "+e.id,name:e.id};return this._subscriptionsMap.set(t.name,e),t}))),this._model.azureSubscription=this._azureSubscriptionsDropdown.value.name,this._model.azureSubscriptionDisplayName=this._azureSubscriptionsDropdown.value.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(this._azureSubscriptionsDropdown.value.name)?.tenant,r.AzureResource.ResourceManagement),this._azureSubscriptionsDropdown.loading=!1,await this.populateServerGroupDropdown()}async createServerDropdown(e){this._serverGroupDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._serverGroupDropdown.onValueChanged((async e=>{e.selected===this._serverGroupDropdown.value.displayName&&(this._model.azureServerName=e.selected,this._model.azureResouceGroup=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),""),this._model.azureRegion=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/location/"),""))}))}async populateServerGroupDropdown(){this._serverGroupDropdown.loading=!0;let e=this._azureSubscriptionsDropdown.value;if(void 0===e||""===e.displayName)return this._serverGroupDropdown.updateProperties({values:[]}),void(this._serverGroupDropdown.loading=!1);let t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Sql/servers?api-version=2019-06-01-preview`,n=await this._model.getRequest(t);if(0===n.data.value.length)return this._serverGroupDropdown.updateProperties({values:[{displayName:p(1,null),name:""}]}),void(this._serverGroupDropdown.loading=!1);n.data.value.sort(((e,t)=>e.name>t.name?1:-1)),this._model.addDropdownValues(this._serverGroupDropdown,n.data.value.map((e=>({displayName:e.name,name:e.id+"/location/"+e.location})))),this._serverGroupDropdown.value&&(this._model.azureServerName=this._serverGroupDropdown.value.displayName,this._model.azureResouceGroup=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),""),this._model.azureRegion=this._serverGroupDropdown.value.name.replace(RegExp("^(.*?)/location/"),"")),this._serverGroupDropdown.loading=!1}async validate(){let e=[];return""===this._serverGroupDropdown.value.name&&e.push(p(2,null)),this._model.wizard.showErrorMessage(e.join(i.EOL)),e.join(i.EOL)}}t.AzureSettingsPage=d},9315:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasePage=void 0;const r=n(4441);class i extends r.ResourceTypePage{}t.BasePage=i},1774:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatabaseSettingsPage=void 0;const r=n(857),i=n(1247),o=n(9315),a=n(4200),s=n(3767),c=a.loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLDBWizard/pages/databaseSettingsPage.ts"));class l extends o.BasePage{constructor(e){super(i.DatabaseSettingsPageTitle,"",e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createIpAddressText(e),this.createFirewallToggle(e),this.createFirewallNameText(e),this.createDatabaseNameText(e),this.createCollationText(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._databaseNameTextRow},{component:this._collationTextRow},{component:(0,s.createFlexContainer)(e,[this._firewallToggleLabel,this._firewallToggleDropdown])},{component:this._firewallRuleNameTextRow},{component:this._startIpAddressTextRow},{component:this._endIpAddressTextRow},{component:this._IpInfoText}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||""===await this.validate()))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createIpAddressText(e){this._IpInfoText=e.modelBuilder.text().withProps({value:i.IpAddressInfoLabel}).component(),this._startIpAddressTextbox=e.modelBuilder.inputBox().withProps({inputType:"text"}).component(),this._startIpAddressTextbox.onTextChanged((e=>{this._model.startIpAddress=e})),this._startIpAddressTextRow=this._model.createFormRowComponent(e,i.StartIpAddressLabel,"",this._startIpAddressTextbox,!0),this._endIpAddressTextbox=e.modelBuilder.inputBox().withProps({inputType:"text"}).component(),this._endIpAddressTextbox.onTextChanged((e=>{this._model.endIpAddress=e})),this._endIpAddressTextRow=this._model.createFormRowComponent(e,i.EndIpAddressLabel,"",this._endIpAddressTextbox,!0)}createFirewallToggle(e){this._firewallToggleDropdown=(0,s.createCheckbox)(e,{initialValue:!0,label:"",required:!1}),this._firewallToggleLabel=(0,s.createLabel)(e,{text:i.FirewallToggleLabel,description:i.FirewallRuleDescription,required:!1,width:"250px",cssStyles:{"font-weight":"400","font-size":"13px"}}),this._model.newFirewallRule=!0,this._firewallToggleDropdown.onChanged((e=>{let t=e?"block":"none";this._model.changeRowDisplay(this._firewallRuleNameTextRow,t),this._model.changeRowDisplay(this._endIpAddressTextRow,t),this._model.changeRowDisplay(this._startIpAddressTextRow,t),this._model.changeComponentDisplay(this._IpInfoText,t),this._model.newFirewallRule=e}))}createFirewallNameText(e){this._firewallRuleNameTextbox=e.modelBuilder.inputBox().component(),this._firewallRuleNameTextRow=this._model.createFormRowComponent(e,i.FirewallRuleNameLabel,"",this._firewallRuleNameTextbox,!0),this._firewallRuleNameTextbox.onTextChanged((e=>{this._model.firewallRuleName=e}))}createDatabaseNameText(e){this._databaseNameTextbox=e.modelBuilder.inputBox().component(),this._databaseNameTextRow=this._model.createFormRowComponent(e,i.DatabaseNameLabel,"",this._databaseNameTextbox,!0),this._databaseNameTextbox.onTextChanged((e=>{this._model.databaseName=e}))}createCollationText(e){this._collationTextbox=e.modelBuilder.inputBox().withProps({inputType:"text",value:"SQL_Latin1_General_CP1_CI_AS"}).component(),this._collationTextbox.onTextChanged((e=>{this._model.databaseCollation=e})),this._collationTextRow=this._model.createFormRowComponent(e,i.CollationNameLabel,"",this._collationTextbox,!0)}async validate(){let e=[],t=/(^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$)/,n=this._startIpAddressTextbox.value,i=this._endIpAddressTextbox.value,o=this._firewallRuleNameTextbox.value,a=this._databaseNameTextbox.value,s=this._collationTextbox.value;return this._model.newFirewallRule&&(t.test(n)||e.push(c(0,null)),t.test(i)||e.push(c(1,null)),/^\d+$/.test(o)&&e.push(c(2,null)),(o.length<1||o.length>100)&&e.push(c(3,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(o)&&e.push(c(4,null)),/[A-Z]/g.test(o)&&e.push(c(5,null))),/^\d+$/.test(a)&&e.push(c(6,null)),(a.length<1||a.length>100)&&e.push(c(7,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(a)&&e.push(c(8,null)),await this.databaseNameExists(a)&&e.push(c(9,null)),/^\d+$/.test(s)&&e.push(c(10,null)),(s.length<1||s.length>100)&&e.push(c(11,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(s)&&e.push(c(12,null)),this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}async databaseNameExists(e){const t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/resourceGroups/${this._model.azureResouceGroup}/providers/Microsoft.Sql/servers/${this._model.azureServerName}/databases?api-version=2017-10-01-preview`;return(await this._model.getRequest(t,!0)).data.value.map((e=>e.name)).includes(e)}}t.DatabaseSettingsPage=l},8102:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSQLDBSummaryPage=void 0;const r=n(1247),i=n(1651),o=n(2761),a=n(3767),s=n(4422);class c extends s.BasePage{constructor(e){super("Summary","",e.wizard),this._model=e,this.formItems=[]}async initialize(){this.pageObject.registerContent((async e=>(this._view=e,this._form=e.modelBuilder.formContainer(),e.initializeModel(this._form.withLayout({width:"100%"}).component()))))}async onEnter(){this.formItems.forEach((e=>{this._form.removeFormItem(e)})),this.formItems=[];let e=this._model;const t="150px",n="400px",s="20px",c={labelPosition:"left",labelWidth:t,inputWidth:n,fieldHeight:s,spaceBetweenFields:"0",title:r.AzureSettingsSummaryPageTitle,fields:[{type:o.FieldType.ReadonlyText,label:r.AzureAccountDropdownLabel,defaultValue:e.azureAccount.displayInfo.displayName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountSubscriptionDropdownLabel,defaultValue:e.azureSubscriptionDisplayName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountResourceGroupDropdownLabel,defaultValue:e.azureResouceGroup,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.AzureAccountDatabaseServersDropdownLabel,defaultValue:e.azureServerName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}}]},l={labelPosition:"left",labelWidth:t,inputWidth:n,fieldHeight:s,title:r.DatabaseSettingsPageTitle,fields:[{type:o.FieldType.ReadonlyText,label:r.DatabaseNameLabel,defaultValue:e.databaseName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.CollationNameSummaryLabel,defaultValue:e.databaseCollation,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.FirewallToggleLabel,defaultValue:e.newFirewallRule?i.yes:i.no,labelCSSStyles:{fontWeight:o.FontWeight.Bold}}]};e.newFirewallRule&&l.fields?.push({type:o.FieldType.ReadonlyText,label:r.FirewallRuleNameLabel,defaultValue:e.firewallRuleName,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.StartIpAddressShortLabel,defaultValue:e.startIpAddress,labelCSSStyles:{fontWeight:o.FontWeight.Bold}},{type:o.FieldType.ReadonlyText,label:r.EndIpAddressShortLabel,defaultValue:e.endIpAddress,labelCSSStyles:{fontWeight:o.FontWeight.Bold}});const u=async e=>({title:"",component:await(0,a.createSection)({container:this.wizard.wizardObject,inputComponents:{},sectionInfo:e,view:this._view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{},toolsService:this.wizard.toolsService})}),p=await u(c),d=await u(l);this.formItems.push(p,d),this._form.addFormItems(this.formItems),this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSummaryRow(e,t,n){const r=e.modelBuilder.text().withProps({value:t,width:"250px"}).component();return r.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([r,n],{CSSStyles:{"margin-right":"5px"}}).component()}}t.AzureSQLDBSummaryPage=c},6648:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlAuthenticationConfirmPasswordLabel=t.SqlAuthenticationPasswordLabel=t.SqlAuthenticationUsernameLabel=t.SqlEnableSQLAuthenticationLabel=t.SqlPortLabel=t.SqlConnectivityTypeDropdownLabel=t.SqlServerSettingsPageTitle=t.RDPAllowCheckboxLabel=t.NetworkSettingsNewPublicIp=t.PublicIPDropdownLabel=t.SubnetDropdownLabel=t.NetworkSettingsNewSubnet=t.VirtualNetworkDropdownLabel=t.NetworkSettingsNewVirtualNetwork=t.NetworkSettingsPageDescription=t.NetworkSettingsPageTitle=t.VmSizeLearnMoreLabel=t.VmSizeDropdownLabel=t.VmVersionDropdownLabel=t.VmSkuDropdownLabel=t.VmImageDropdownLabel=t.VmAdminConfirmPasswordTextBoxLabel=t.VmAdminPasswordTextBoxLabel=t.VmAdminUsernameTextBoxLabel=t.VmNameTextBoxLabel=t.VmSettingsPageTitle=t.AzureAccountRegionDropdownLabel=t.AzureAccountResourceGroupDropdownLabel=t.AzureAccountSubscriptionDropdownLabel=t.AzureAccountDropdownLabel=t.AzureSettingsPageTitle=t.MissingRequiredInformationErrorMessage=t.WizardDoneButtonLabel=t.WizardTitle=t.standardWidth=void 0;const r=n(4200).loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLVMWizard/constants.ts"));t.standardWidth="480px",t.WizardTitle=r(0,null),t.WizardDoneButtonLabel=r(1,null),t.MissingRequiredInformationErrorMessage=r(2,null),t.AzureSettingsPageTitle=r(3,null),t.AzureAccountDropdownLabel=r(4,null),t.AzureAccountSubscriptionDropdownLabel=r(5,null),t.AzureAccountResourceGroupDropdownLabel=r(6,null),t.AzureAccountRegionDropdownLabel=r(7,null),t.VmSettingsPageTitle=r(8,null),t.VmNameTextBoxLabel=r(9,null),t.VmAdminUsernameTextBoxLabel=r(10,null),t.VmAdminPasswordTextBoxLabel=r(11,null),t.VmAdminConfirmPasswordTextBoxLabel=r(12,null),t.VmImageDropdownLabel=r(13,null),t.VmSkuDropdownLabel=r(14,null),t.VmVersionDropdownLabel=r(15,null),t.VmSizeDropdownLabel=r(16,null),t.VmSizeLearnMoreLabel=r(17,null),t.NetworkSettingsPageTitle=r(18,null),t.NetworkSettingsPageDescription=r(19,null),t.NetworkSettingsNewVirtualNetwork=r(20,null),t.VirtualNetworkDropdownLabel=r(21,null),t.NetworkSettingsNewSubnet=r(22,null),t.SubnetDropdownLabel=r(23,null),t.PublicIPDropdownLabel=r(24,null),t.NetworkSettingsNewPublicIp=r(25,null),t.RDPAllowCheckboxLabel=r(26,null),t.SqlServerSettingsPageTitle=r(27,null),t.SqlConnectivityTypeDropdownLabel=r(28,null),t.SqlPortLabel=r(29,null),t.SqlEnableSQLAuthenticationLabel=r(30,null),t.SqlAuthenticationUsernameLabel=r(31,null),t.SqlAuthenticationPasswordLabel=r(32,null),t.SqlAuthenticationConfirmPasswordLabel=r(33,null)},6344:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeployAzureSQLVMWizardModel=void 0;const r=n(857),i=n(6648),o=n(9329),a=n(1398),s=n(4200),c=n(1387),l=n(1847),u=n(566),p=n(6023),d=n(8941),f=n(4545),h=s.loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLVMWizard/deployAzureSQLVMWizardModel.ts"));class m extends f.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get toolService(){return this.wizard.toolsService}constructor(e,t){super(e,t),this.sqlvmProvider=e,this.cache=new Map,this.wizard.wizardObject.title=i.WizardTitle}initialize(){this.wizard.setPages(this.getPages()),this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.doneButton.label=i.WizardDoneButtonLabel}async onOk(){await this.scriptToNotebook()}getPages(){const e=[];return e.push(new c.AzureSettingsPage(this)),e.push(new l.VmSettingsPage(this)),e.push(new u.NetworkSettingsPage(this)),e.push(new p.SqlServerSettingsPage(this)),e.push(new d.AzureSQLVMSummaryPage(this)),e}async scriptToNotebook(){this.setNotebookEnvironmentVariables(process.env);const e=this.getCodeCellContentForNotebook();try{await this.notebookService.openNotebookWithEdits(this.sqlvmProvider.azureSQLVMWizard.notebook,e,2)}catch(e){a.window.showErrorMessage(e)}}setNotebookEnvironmentVariables(e){e.AZDATA_NB_VAR_AZURE_SQLVM_PASSWORD=this.vmPassword,e.AZDATA_NB_VAR_AZURE_SQLVM_SQL_PASSWORD=this.sqlAuthenticationPassword}async getRequest(e,t=!1){if(t&&this.cache.has(e))return this.cache.get(e);const n={headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.securityToken.token}`},validateStatus:()=>!0},i=await o.default.get(e,n);if(200!==i.status){let e=[];e.push(i.status.toString()),e.push(i.statusText),i.data&&i.data.error&&e.push(`${i.data.error.code} : ${i.data.error.message}`),a.window.showErrorMessage(e.join(r.EOL))}return t&&this.cache.set(e,i),i}createFormRowComponent(e,t,n,r,i){r.updateProperties({required:i,width:"480px"});const o=e.modelBuilder.text().withProps({value:t,width:"250px",description:n,requiredIndicator:i}).component();return o.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([o,r],{CSSStyles:{"margin-right":"5px"}}).component()}changeComponentDisplay(e,t){e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}changeRowDisplay(e,t){e.items.map((e=>{e.updateProperties({required:"block"===t}),e.updateCssStyles({display:t})}))}addDropdownValues(e,t,n){e.updateProperties({values:t,width:"480px"})}validatePassword(e){let t=[];(e.length<12||e.length>123)&&t.push(h(0,null));let n=0;return new RegExp(".*[a-z].*").test(e)&&n++,new RegExp(".*[A-Z].*").test(e)&&n++,new RegExp(".*[0-9].*").test(e)&&n++,/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(e)&&n++,n<3&&t.push(h(1,null)),t}getCodeCellContentForNotebook(){const e=[];return e.push("import os"),e.push(`azure_sqlvm_nb_var_subscription = '${this.azureSubscription}'`),e.push(`azure_sqlvm_nb_var_resource_group_name = '${this.azureResouceGroup}'`),e.push(`azure_sqlvm_location = '${this.azureRegion}'`),e.push(`azure_sqlvm_vmname = '${this.vmName}'`),e.push(`azure_sqlvm_username = '${this.vmUsername}'`),e.push(`azure_sqlvm_image = '${this.vmImage}'`),e.push(`azure_sqlvm_image_sku = '${this.vmImageSKU}'`),e.push(`azure_sqlvm_image_version = '${this.vmImageVersion}'`),e.push(`azure_sqlvm_vmsize = '${this.vmSize}'`),e.push(`azure_sqlvm_newVirtualNetwork = ${this.newVirtualNetwork}`),e.push(`azure_sqlvm_virtnet = '${this.virtualNetworkName}'`),e.push(`azure_sqlvm_newSubnet = ${this.newSubnet}`),e.push(`azure_sqlvm_subnet = '${this.subnetName}'`),e.push(`azure_sqlvm_newPublicIp = ${this.newPublicIp}`),e.push(`azure_sqlvm_publicip = '${this.publicIpName}'`),e.push(`azure_sqlvm_allow_rdp = ${this.allowRDP}`),e.push(`azure_sqlvm_sqlConnectivityType = '${this.sqlConnectivityType}'`),e.push(`azure_sqlvm_port = '${this.port}'`),e.push(`azure_sqlvm_enableSqlAuthentication = ${this.enableSqlAuthentication}`),e.push(`azure_sqlvm_sqlAuthenticationUsername = '${this.sqlAuthenticationUsername}'`),e.map((e=>e+r.EOL))}}t.DeployAzureSQLVMWizardModel=m},1387:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSettingsPage=void 0;const r=n(235),i=n(6648),o=n(7315),a=n(1398),s=n(1651),c=n(4422),l=["eastus","eastus2","westus","centralus","northcentralus","southcentralus","northeurope","westeurope","eastasia","southeastasia","japaneast","japanwest","australiaeast","australiasoutheast","australiacentral","brazilsouth","southindia","centralindia","westindia","canadacentral","canadaeast","westus2","westcentralus","uksouth","ukwest","koreacentral","koreasouth","francecentral","southafricanorth","uaenorth","switzerlandnorth","germanywestcentral","norwayeast"];class u extends c.BasePage{constructor(e){super(i.AzureSettingsPageTitle,"",e.wizard),this._model=e,this._accountsMap=new Map,this._subscriptionsMap=new Map}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createAzureAccountsDropdown(e),this.createAzureSubscriptionsDropdown(e),this.createResourceDropdown(e),this.createAzureRegionsDropdown(e)]),this.populateAzureAccountsDropdown(),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.AzureAccountDropdownLabel,"",this._azureAccountsDropdown,!0)},{component:this.buttonFlexContainer},{component:this._model.createFormRowComponent(e,i.AzureAccountSubscriptionDropdownLabel,"",this._azureSubscriptionsDropdown,!0)},{component:this._model.createFormRowComponent(e,i.AzureAccountResourceGroupDropdownLabel,"",this._resourceGroupDropdown,!0)},{component:this._model.createFormRowComponent(e,i.AzureAccountRegionDropdownLabel,"",this._azureRegionsDropdown,!0)}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createAzureAccountsDropdown(e){this._azureAccountsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureAccountsDropdown.onValueChanged((async e=>{this._azureAccountsDropdown.value&&(this._model.azureAccount=this._accountsMap.get(e.selected),this.populateAzureSubscriptionsDropdown())})),this.signInButton=e.modelBuilder.button().withProps({label:s.signIn,width:"100px",secondary:!0}).component(),this.refreshButton=e.modelBuilder.button().withProps({label:s.refresh,width:"100px",secondary:!0}).component(),this.signInButton.onDidClick((async e=>{await a.commands.executeCommand("workbench.actions.modal.linkedAccount"),await this.populateAzureAccountsDropdown()})),this.refreshButton.onDidClick((async e=>{await this.populateAzureAccountsDropdown()})),this.buttonFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems([this.signInButton,this.refreshButton],{CSSStyles:{"margin-right":"5px"}}).component()}async populateAzureAccountsDropdown(){this._azureAccountsDropdown.loading=!0;let e=await r.accounts.getAllAccounts();0!==e.length?(this._model.wizard.showErrorMessage(""),this._model.addDropdownValues(this._azureAccountsDropdown,e.map((e=>{let t={displayName:e.displayInfo.displayName,name:e.displayInfo.displayName};return this._accountsMap.set(t.displayName,e),t}))),this._model.azureAccount=e[0],this._azureAccountsDropdown.loading=!1,await this.populateAzureSubscriptionsDropdown()):this._model.wizard.showErrorMessage("Sign in to an Azure account first")}async createAzureSubscriptionsDropdown(e){this._azureSubscriptionsDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._azureSubscriptionsDropdown.onValueChanged((async e=>{if(!this._azureSubscriptionsDropdown.value)return;let t=this._azureSubscriptionsDropdown.value;this._model.azureSubscription=t.name,this._model.azureSubscriptionDisplayName=t.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(t.name)?.tenant,r.AzureResource.ResourceManagement),this.populateResourceGroupDropdown(),this.populateAzureRegionsDropdown()}))}async populateAzureSubscriptionsDropdown(){this._azureSubscriptionsDropdown.loading=!0;let e=o.apiService.azurecoreApi,t=this._azureAccountsDropdown.value;if(void 0===t)return this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),void await this.populateAzureRegionsDropdown();let n=this._accountsMap.get(t.name),i=(await e.getSubscriptions(n,!0)).subscriptions;if(void 0===i||0===i.length)return this._azureSubscriptionsDropdown.updateProperties({values:[]}),this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),void await this.populateAzureRegionsDropdown();i.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._model.addDropdownValues(this._azureSubscriptionsDropdown,i.map((e=>{let t={displayName:e.name+" - "+e.id,name:e.id};return this._subscriptionsMap.set(t.name,e),t}))),this._model.azureSubscription=this._azureSubscriptionsDropdown.value.name,this._model.azureSubscriptionDisplayName=this._azureSubscriptionsDropdown.value.displayName,this._model.securityToken=await r.accounts.getAccountSecurityToken(this._model.azureAccount,this._subscriptionsMap.get(this._azureSubscriptionsDropdown.value.name)?.tenant,r.AzureResource.ResourceManagement),this._azureSubscriptionsDropdown.loading=!1,await this.populateResourceGroupDropdown(),await this.populateAzureRegionsDropdown()}async createResourceDropdown(e){this._resourceGroupDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._resourceGroupDropdown.onValueChanged((async e=>{this._model.azureResouceGroup=e.selected}))}async populateResourceGroupDropdown(){this._resourceGroupDropdown.loading=!0;let e=o.apiService.azurecoreApi,t=this._azureSubscriptionsDropdown.value;if(void 0===t||""===t.displayName)return this._resourceGroupDropdown.updateProperties({values:[]}),void(this._resourceGroupDropdown.loading=!1);let n=this._subscriptionsMap.get(t.name),r=(await e.getResourceGroups(this._model.azureAccount,n,!0)).resourceGroups;if(void 0===r||0===r.length)return this._resourceGroupDropdown.loading=!1,void this._resourceGroupDropdown.updateProperties({values:[]});r.sort(((e,t)=>e.name.toLocaleLowerCase().localeCompare(t.name.toLocaleLowerCase()))),this._resourceGroupDropdown.updateProperties({values:r.map((e=>({displayName:e.name,name:e.name})))}),this._model.azureResouceGroup=this._resourceGroupDropdown.value.name,this._resourceGroupDropdown.loading=!1}async createAzureRegionsDropdown(e){this._azureRegionsDropdown=e.modelBuilder.dropDown().withProps({required:!0}).component(),this._azureRegionsDropdown.onValueChanged((e=>{this._azureRegionsDropdown.value&&(this._model.azureRegion=this._azureRegionsDropdown.value.name)}))}async populateAzureRegionsDropdown(){this._azureRegionsDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/locations?api-version=2020-01-01`;const t=await this._model.getRequest(e,!1);t.data.value=t.data.value.sort(((e,t)=>e.displayName>t.displayName?1:-1)),this._model.addDropdownValues(this._azureRegionsDropdown,t.data.value.filter((e=>l.includes(e.name))).map((e=>({displayName:e.displayName,name:e.name})))),this._model.azureRegion=this._azureRegionsDropdown.value.name,this._azureRegionsDropdown.loading=!1}}t.AzureSettingsPage=u},4422:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BasePage=void 0;const r=n(4441);class i extends r.ResourceTypePage{initialize(){throw new Error("Method not implemented.")}async validatePage(){return""}activateRealTimeFormValidation(){this.liveValidation&&this.validatePage()}}t.BasePage=i},566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkSettingsPage=void 0;const r=n(6648),i=n(4422),o=n(4200).loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLVMWizard/pages/networkSettingsPage.ts"));class a extends i.BasePage{constructor(e){super(r.NetworkSettingsPageTitle,r.NetworkSettingsPageDescription,e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createVirtualNetworkDropdown(e),this.createSubnetDropdown(e),this.createPublicIPDropdown(e),this.createVmRDPAllowCheckbox(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,r.VirtualNetworkDropdownLabel,"",this._virtualNetworkFlexContainer,!0)},{component:this._model.createFormRowComponent(e,r.SubnetDropdownLabel,"",this._subnetFlexContainer,!0)},{component:this._model.createFormRowComponent(e,r.PublicIPDropdownLabel,"",this._publicIpFlexContainer,!0)},{component:this._vmRDPAllowCheckbox}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.populateVirtualNetworkDropdown(),this.populatePublicIpkDropdown(),this.liveValidation=!1,this._model.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||(this.liveValidation=!0,""===await this.validatePage())))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createVirtualNetworkDropdown(e){this._newVirtualNetworkCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewVirtualNetwork,checked:!1}).component(),this._newVirtualNetworkCheckbox.onChanged((e=>{this.toggleNewVirtualNetwork()})),this._virtualNetworkDropdown=e.modelBuilder.dropDown().withProps({width:r.standardWidth,required:!0}).component(),this._virtualNetworkDropdown.onValueChanged((e=>{this._virtualNetworkDropdown.value&&(this._model.virtualNetworkName=this._virtualNetworkDropdown.value.name,this.populateSubnetDropdown())})),this._newVirtualNetworkText=e.modelBuilder.inputBox().withProps({width:r.standardWidth,required:!0,placeHolder:o(0,null)}).component(),this._newVirtualNetworkText.onTextChanged((e=>{this._model.virtualNetworkName=e,this.activateRealTimeFormValidation()})),this._virtualNetworkFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._virtualNetworkDropdown,this._newVirtualNetworkText,this._newVirtualNetworkCheckbox]).component()}async populateVirtualNetworkDropdown(){this._virtualNetworkDropdown.loading=!0;let e=await this.getVirtualNetworks();e&&0!==e.length?(this._virtualNetworkDropdown.updateProperties({values:e}),this._newVirtualNetworkCheckbox.enabled=!0,this.toggleNewVirtualNetwork()):(e=[{displayName:"None",name:"None"}],this._virtualNetworkDropdown.updateProperties({values:e}),this._newVirtualNetworkCheckbox.checked=!0,this._newVirtualNetworkCheckbox.enabled=!1,this.toggleNewVirtualNetwork()),this._virtualNetworkDropdown.loading=!1,await this.populateSubnetDropdown()}toggleNewVirtualNetwork(){let e=this._newVirtualNetworkCheckbox.checked;this._model.newVirtualNetwork=e?"True":"False",e?(this._model.changeComponentDisplay(this._virtualNetworkDropdown,"none"),this._model.changeComponentDisplay(this._newVirtualNetworkText,"block"),this._newSubnetCheckbox.enabled=!1,this._model.changeComponentDisplay(this._subnetDropdown,"none"),this._model.changeComponentDisplay(this._newsubnetText,"block"),this._model.virtualNetworkName=this._newVirtualNetworkText.value,this._model.newSubnet="True",this._model.subnetName=this._newsubnetText.value):(this._model.changeComponentDisplay(this._virtualNetworkDropdown,"block"),this._model.changeComponentDisplay(this._newVirtualNetworkText,"none"),this._newSubnetCheckbox.enabled=!0,this._model.changeComponentDisplay(this._subnetDropdown,"block"),this._model.changeComponentDisplay(this._newsubnetText,"none"),this._model.virtualNetworkName=this._virtualNetworkDropdown.value.name,this._model.newSubnet=this._newSubnetCheckbox.checked?"True":"False")}async createSubnetDropdown(e){this._newSubnetCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewSubnet,checked:!1}).component(),this._newSubnetCheckbox.onChanged((e=>{this.toggleNewSubnet()})),this._subnetDropdown=e.modelBuilder.dropDown().withProps({width:r.standardWidth,required:!0}).component(),this._subnetDropdown.onValueChanged((e=>{this._subnetDropdown.value&&(this._model.subnetName=this._subnetDropdown.value.name)})),this._newsubnetText=e.modelBuilder.inputBox().withProps({width:r.standardWidth,required:!0,placeHolder:o(1,null)}).component(),this._newsubnetText.onTextChanged((e=>{this._model.subnetName=e,this.activateRealTimeFormValidation()})),this._subnetFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._subnetDropdown,this._newsubnetText,this._newSubnetCheckbox]).component()}async populateSubnetDropdown(){this._subnetDropdown.loading=!0;let e=await this.getSubnets();e&&0!==e.length?(this._subnetDropdown.updateProperties({values:e}),this._newSubnetCheckbox.enabled=!0,this.toggleNewSubnet()):(e=[{displayName:"None",name:"None"}],this._subnetDropdown.updateProperties({values:e}),this._newSubnetCheckbox.checked=!0,this._newSubnetCheckbox.enabled=!1,this.toggleNewSubnet()),this._subnetDropdown.loading=!1}toggleNewSubnet(){let e=this._newSubnetCheckbox.checked;this._model.newSubnet=e?"True":"False",e?(this._model.changeComponentDisplay(this._subnetDropdown,"none"),this._model.changeComponentDisplay(this._newsubnetText,"block"),this._model.subnetName=this._newsubnetText.value):(this._model.changeComponentDisplay(this._subnetDropdown,"block"),this._model.changeComponentDisplay(this._newsubnetText,"none"),this._model.subnetName=this._subnetDropdown.value.name)}async createPublicIPDropdown(e){this._newPublicIpCheckbox=e.modelBuilder.checkBox().withProps({label:r.NetworkSettingsNewPublicIp,checked:!1}).component(),this._newPublicIpCheckbox.onChanged((e=>{this.toggleNewPublicIp()})),this._publicIpDropdown=e.modelBuilder.dropDown().withProps({required:!0,width:r.standardWidth}).component(),this._publicIpDropdown.onValueChanged((e=>{this._publicIpDropdown.value&&(this._model.publicIpName=this._publicIpDropdown.value.name)})),this._publicIpNetworkText=e.modelBuilder.inputBox().withProps({placeHolder:o(2,null),width:r.standardWidth}).component(),this._publicIpNetworkText.onTextChanged((e=>{this._model.publicIpName=e,this.activateRealTimeFormValidation()})),this._model.changeComponentDisplay(this._publicIpNetworkText,"none"),this._publicIpFlexContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([this._publicIpDropdown,this._publicIpNetworkText,this._newPublicIpCheckbox]).component()}async populatePublicIpkDropdown(){this._publicIpDropdown.loading=!0;let e=await this.getPips();e&&0!==e.length?(this._publicIpDropdown.updateProperties({values:e}),this._newPublicIpCheckbox.enabled=!0,this.toggleNewPublicIp()):(e=[{displayName:"None",name:"None"}],this._publicIpDropdown.updateProperties({values:e}),this._newPublicIpCheckbox.checked=!0,this._newPublicIpCheckbox.enabled=!1,this.toggleNewPublicIp()),this._publicIpDropdown.loading=!1}toggleNewPublicIp(){let e=this._newPublicIpCheckbox.checked;this._model.newPublicIp=e?"True":"False",e?(this._model.changeComponentDisplay(this._publicIpDropdown,"none"),this._model.changeComponentDisplay(this._publicIpNetworkText,"block"),this._model.publicIpName=this._publicIpNetworkText.value):(this._model.changeComponentDisplay(this._publicIpDropdown,"block"),this._model.changeComponentDisplay(this._publicIpNetworkText,"none"),this._model.publicIpName=this._publicIpDropdown.value.name)}async createVmRDPAllowCheckbox(e){this._vmRDPAllowCheckbox=e.modelBuilder.checkBox().withProps({label:r.RDPAllowCheckboxLabel}).component(),this._vmRDPAllowCheckbox.onChanged((e=>{this._model.allowRDP=e?"True":"False"})),this._model.allowRDP="False"}async getVirtualNetworks(){let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Network/virtualNetworks?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.filter((e=>e.location===this._model.azureRegion)).map((e=>{let t=e.id.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"");return{name:e.id,displayName:`${e.name} \t\t resource group: (${t})`}}))}async getSubnets(){if(!this._model.virtualNetworkName)return;let e=`https://management.azure.com${this._model.virtualNetworkName}/subnets?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.map((e=>({name:e.id,displayName:`${e.name}`})))}async getPips(){let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Network/publicIPAddresses?api-version=2020-05-01`;return(await this._model.getRequest(e)).data.value.filter((e=>e.location===this._model.azureRegion)).map((e=>{let t=e.id.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"");return{name:e.id,displayName:`${e.name} \t\t resource group: (${t})`}}))}async validatePage(){const e=[];return"True"===this._model.newVirtualNetwork?(this._model.virtualNetworkName.length<2||this._model.virtualNetworkName.length>64)&&e.push(o(3,null)):"None"===this._model.virtualNetworkName&&e.push(o(4,null)),"True"===this._model.newSubnet?(this._model.subnetName.length<1||this._model.subnetName.length>80)&&e.push(o(5,null)):"None"===this._model.subnetName&&e.push(o(6,null)),"True"===this._model.newPublicIp?(this._model.publicIpName.length<1||this._model.publicIpName.length>80)&&e.push(o(7,null)):"None"===this._model.publicIpName&&e.push(o(8,null)),this._model.wizard.showErrorMessage(e.join("\n")),e.join("\n")}}t.NetworkSettingsPage=a},6023:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SqlServerSettingsPage=void 0;const r=n(857),i=n(6648),o=n(4422),a=n(4200),s=n(1651),c=a.loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLVMWizard/pages/sqlServerSettingsPage.ts"));class l extends o.BasePage{constructor(e){super(i.SqlServerSettingsPageTitle,"",e.wizard),this._model=e}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createSqlConnectivityDropdown(e),this.createPortText(e),this.createSqlAuthentication(e)]),this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.SqlConnectivityTypeDropdownLabel,"",this._sqlConnectivityDropdown,!0)},{component:this._portTextRow},{component:this._model.createFormRowComponent(e,i.SqlEnableSQLAuthenticationLabel,"",this._sqlAuthenticationDropdown,!0)},{component:this._sqlAuthenticationTextRow},{component:this._sqlAuthenticationPasswordTextRow},{component:this._sqlAuthenticationPasswordConfirmationTextRow}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.liveValidation=!1,this._model.wizard.wizardObject.registerNavigationValidator((async e=>e.newPage<e.lastPage||(this.liveValidation=!0,""===await this.validatePage())))}async onLeave(){this._model.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSqlConnectivityDropdown(e){const t=c(0,null);this._sqlConnectivityDropdown=e.modelBuilder.dropDown().withProps({values:[{name:"local",displayName:c(1,null)},{name:"private",displayName:t},{name:"public",displayName:c(2,null)}],value:{name:"private",displayName:t}}).component(),this._model.sqlConnectivityType=this._sqlConnectivityDropdown.value.name,this._sqlConnectivityDropdown.onValueChanged((e=>{let t=this._sqlConnectivityDropdown.value.name;this._model.sqlConnectivityType=t,"local"===t?this._model.changeRowDisplay(this._portTextRow,"none"):this._model.changeRowDisplay(this._portTextRow,"block")}))}createPortText(e){this._portTextBox=e.modelBuilder.inputBox().withProps({inputType:"number",max:65535,min:1024,value:"1433"}).component(),this._portTextBox.onTextChanged((e=>{this._model.port=e,this.activateRealTimeFormValidation()})),this._portTextRow=this._model.createFormRowComponent(e,i.SqlPortLabel,"",this._portTextBox,!0)}createSqlAuthentication(e){this._sqlAuthenticationDropdown=e.modelBuilder.dropDown().withProps({values:[{displayName:s.yes,name:"True"},{displayName:s.no,name:"False"}]}).component(),this._sqlAuthenticationDropdown.onValueChanged((e=>{let t=this._sqlAuthenticationDropdown.value.name,n="True"===t?"block":"none";this._model.changeRowDisplay(this._sqlAuthenticationTextRow,n),this._model.changeRowDisplay(this._sqlAuthenticationPasswordTextRow,n),this._model.changeRowDisplay(this._sqlAuthenticationPasswordConfirmationTextRow,n),this._model.enableSqlAuthentication=t})),this._model.enableSqlAuthentication=this._sqlAuthenticationDropdown.value.name,this._sqlAuthenticationTextbox=e.modelBuilder.inputBox().component(),this._sqlAuthenticationTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationUsernameLabel,"",this._sqlAuthenticationTextbox,!0),this._sqlAuthenticationPasswordTextbox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._sqlAuthenticationPasswordTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationPasswordLabel,"",this._sqlAuthenticationPasswordTextbox,!0),this._sqlAuthenticationPasswordConfirmationTextbox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._sqlAuthenticationPasswordConfirmationTextRow=this._model.createFormRowComponent(e,i.SqlAuthenticationConfirmPasswordLabel,"",this._sqlAuthenticationPasswordConfirmationTextbox,!0),this._sqlAuthenticationTextbox.onTextChanged((e=>{this._model.sqlAuthenticationUsername=e,this.activateRealTimeFormValidation()})),this._sqlAuthenticationPasswordTextbox.onTextChanged((e=>{this._model.sqlAuthenticationPassword=e,this.activateRealTimeFormValidation()}))}async validatePage(){const e=[];if("True"===this._sqlAuthenticationDropdown.value.name){let t=this._sqlAuthenticationTextbox.value;(t.length<2||t.length>128)&&e.push(c(3,null)),/[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]+/.test(t)&&e.push(c(4,null)),e.push(this._model.validatePassword(this._sqlAuthenticationPasswordTextbox.value)),this._sqlAuthenticationPasswordTextbox.value!==this._sqlAuthenticationPasswordConfirmationTextbox.value&&e.push(c(5,null))}return this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}}t.SqlServerSettingsPage=l},8941:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureSQLVMSummaryPage=void 0;const r=n(6648),i=n(2761),o=n(3767),a=n(4422);class s extends a.BasePage{constructor(e){super("Summary","",e.wizard),this._model=e,this.formItems=[]}async initialize(){this.pageObject.registerContent((async e=>(this._view=e,this._form=e.modelBuilder.formContainer(),e.initializeModel(this._form.withLayout({width:"100%"}).component()))))}async onEnter(){this.formItems.forEach((e=>{this._form.removeFormItem(e)})),this.formItems=[];const e="150px",t="400px",n="20px",a={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,spaceBetweenFields:"0",title:r.AzureSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountDropdownLabel,defaultValue:this._model.azureAccount.displayInfo.displayName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountSubscriptionDropdownLabel,defaultValue:this._model.azureSubscriptionDisplayName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountResourceGroupDropdownLabel,defaultValue:this._model.azureResouceGroup,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.AzureAccountRegionDropdownLabel,defaultValue:this._model.azureRegion,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},s={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.VmSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.VmNameTextBoxLabel,defaultValue:this._model.vmName,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.SqlAuthenticationUsernameLabel,defaultValue:this._model.vmUsername,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmImageDropdownLabel,defaultValue:this._model.vmImage,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmSkuDropdownLabel,defaultValue:this._model.vmImageSKU,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmVersionDropdownLabel,defaultValue:this._model.vmImageVersion,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.VmSizeDropdownLabel,defaultValue:this._model.vmSize,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},c={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.NetworkSettingsPageTitle,rows:[{items:[{type:i.FieldType.ReadonlyText,label:r.VirtualNetworkDropdownLabel,defaultValue:("True"===this._model.newVirtualNetwork?"(new) ":"")+this.processVnetName(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.SubnetDropdownLabel,defaultValue:("True"===this._model.newSubnet?"(new) ":"")+this.processSubnetName(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]},{items:[{type:i.FieldType.ReadonlyText,label:r.PublicIPDropdownLabel,defaultValue:("True"===this._model.newPublicIp?"(new) ":"")+this.processPublicIp(),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}]},l={labelPosition:"left",labelWidth:e,inputWidth:t,fieldHeight:n,title:r.SqlServerSettingsPageTitle,rows:[]};l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlConnectivityTypeDropdownLabel,defaultValue:this._model.sqlConnectivityType,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),"local"!==this._model.sqlConnectivityType&&l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlPortLabel,defaultValue:r.SqlPortLabel,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlEnableSQLAuthenticationLabel,defaultValue:"True"===this._model.enableSqlAuthentication?"Yes ":"No ",labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]}),"True"===this._model.enableSqlAuthentication&&l.rows?.push({items:[{type:i.FieldType.ReadonlyText,label:r.SqlAuthenticationUsernameLabel,defaultValue:this._model.sqlAuthenticationUsername,labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]});const u=async e=>({title:"",component:await(0,o.createSection)({container:this.wizard.wizardObject,inputComponents:{},sectionInfo:e,view:this._view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{},toolsService:this.wizard.toolsService})}),p=await u(a),d=await u(s),f=await u(c),h=await u(l);this.formItems.push(p,d,f,h),this._form.addFormItems(this.formItems),this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}createSummaryRow(e,t,n){const r=e.modelBuilder.text().withProps({value:t,width:"250px"}).component();return r.updateCssStyles({"font-weight":"400","font-size":"13px"}),e.modelBuilder.flexContainer().withLayout({flexFlow:"row",alignItems:"center"}).withItems([r,n],{CSSStyles:{"margin-right":"5px"}}).component()}processVnetName(){return"True"===this._model.newVirtualNetwork?this._model.virtualNetworkName:`(${this._model.virtualNetworkName.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"")}) ${this._model.virtualNetworkName.replace(RegExp("^(.*?)/virtualNetworks/"),"")}`}processSubnetName(){return"True"===this._model.newSubnet?this._model.subnetName:`${this._model.subnetName.replace(RegExp("^(.*?)/subnets/"),"")}`}processPublicIp(){return"True"===this._model.newPublicIp?this._model.publicIpName:`(${this._model.publicIpName.replace(RegExp("^(.*?)/resourceGroups/"),"").replace(RegExp("/providers/.*"),"")}) ${this._model.publicIpName.replace(RegExp("^(.*?)/publicIPAddresses/"),"")}`}}t.AzureSQLVMSummaryPage=s},1847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VmSettingsPage=void 0;const r=n(857),i=n(6648),o=n(4200),a=n(4422),s=o.loadMessageBundle(n(6928).join(__dirname,"ui/deployAzureSQLVMWizard/pages/vmSettingsPage.ts"));class c extends a.BasePage{constructor(e){super(i.VmSettingsPageTitle,"",e.wizard),this._model=e,this._vmSize=[]}async initialize(){this.pageObject.registerContent((async e=>(await Promise.all([this.createVmNameTextBox(e),this.createAdminUsernameTextBox(e),this.createAdminPasswordTextBox(e),this.createAdminPasswordConfirmTextBox(e),this.createVmImageDropdown(e),this.createVMImageSkuDropdown(e),this.createVMImageVersionDropdown(e),this.createVmSizeDropdown(e)]),this.liveValidation=!1,this._form=e.modelBuilder.formContainer().withFormItems([{component:this._model.createFormRowComponent(e,i.VmNameTextBoxLabel,"",this._vmNameTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminUsernameTextBoxLabel,"",this._adminUsernameTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminPasswordTextBoxLabel,"",this._adminPasswordTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmAdminConfirmPasswordTextBoxLabel,"",this._adminComfirmPasswordTextBox,!0)},{component:this._model.createFormRowComponent(e,i.VmImageDropdownLabel,"",this._vmImageDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmSkuDropdownLabel,"",this._vmImageSkuDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmVersionDropdownLabel,"",this._vmImageVersionDropdown,!0)},{component:this._model.createFormRowComponent(e,i.VmSizeDropdownLabel,"",this._vmSizeDropdown,!0)},{component:this._vmSizeLearnMoreLink}],{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component(),e.initializeModel(this._form))))}async onEnter(){this.populateVmImageDropdown(),this.populateVmSizeDropdown(),this.liveValidation=!1,this.wizard.wizardObject.registerNavigationValidator((async e=>(this.liveValidation=!0,e.newPage<e.lastPage||""===await this.validatePage())))}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async createVmNameTextBox(e){this._vmNameTextBox=e.modelBuilder.inputBox().withProps({}).component(),this._vmNameTextBox.onTextChanged((e=>{this._model.vmName=e,this.activateRealTimeFormValidation()}))}async createAdminUsernameTextBox(e){this._adminUsernameTextBox=e.modelBuilder.inputBox().withProps({}).component(),this._adminUsernameTextBox.onTextChanged((e=>{this._model.vmUsername=e,this.activateRealTimeFormValidation()}))}async createAdminPasswordTextBox(e){this._adminPasswordTextBox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._adminPasswordTextBox.onTextChanged((e=>{this._model.vmPassword=e,this.activateRealTimeFormValidation()}))}async createAdminPasswordConfirmTextBox(e){this._adminComfirmPasswordTextBox=e.modelBuilder.inputBox().withProps({inputType:"password"}).component(),this._adminComfirmPasswordTextBox.onTextChanged((e=>{this.activateRealTimeFormValidation()}))}async createVmImageDropdown(e){this._vmImageDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageDropdown.onValueChanged((e=>{this._vmImageDropdown.value&&(this._model.vmImage=this._vmImageDropdown.value.name,this._vmImageSkuDropdown.loading=!0,this._vmImageVersionDropdown.loading=!0,this.populateVmImageSkuDropdown())}))}async populateVmImageDropdown(){this._vmImageDropdown.loading=!0,this._vmImageSkuDropdown.loading=!0,this._vmImageVersionDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);t.data=t.data.reverse(),this._model.addDropdownValues(this._vmImageDropdown,t.data.filter((e=>!new RegExp("-byol").test(e.name.toLowerCase()))).map((e=>{let t=e.name.toLowerCase().match(new RegExp("sql(.*?)-"))[1],n=e.name.toLowerCase().replace(new RegExp("sql(.*?)-"),"");return n=n.replace(new RegExp("ws"),"Windows Server "),n=n.replace(new RegExp("ubuntu"),"Ubuntu Server "),n=n.replace(new RegExp("sles"),"SUSE Linux Enterprise Server (SLES) "),n=n.replace(new RegExp("rhel"),"Red Hat Enterprise Linux "),{displayName:`SQL Server ${t.toUpperCase()} on ${n}`,name:e.name}}))),this._model.vmImage=this._vmImageDropdown.value.name,this._vmImageDropdown.loading=!1,this.populateVmImageSkuDropdown()}async createVMImageSkuDropdown(e){this._vmImageSkuDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageSkuDropdown.onValueChanged((e=>{this._vmImageSkuDropdown.value&&(this._model.vmImageSKU=this._vmImageSkuDropdown.value.name,this.populateVmImageVersionDropdown())}))}async populateVmImageSkuDropdown(){this._vmImageSkuDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/${this._model.vmImage}/skus?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);this._model.addDropdownValues(this._vmImageSkuDropdown,t.data.map((e=>({name:e.name,displayName:e.name})))),this._model.vmImageSKU=this._vmImageSkuDropdown.value.name,this._vmImageSkuDropdown.loading=!1,this.populateVmImageVersionDropdown()}async createVMImageVersionDropdown(e){this._vmImageVersionDropdown=e.modelBuilder.dropDown().withProps({}).component(),this._vmImageVersionDropdown.onValueChanged((e=>{this._vmImageVersionDropdown.value&&(this._model.vmImageVersion=this._vmImageVersionDropdown.value.name)}))}async populateVmImageVersionDropdown(){this._vmImageVersionDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/locations/${this._model.azureRegion}/publishers/MicrosoftSQLServer/artifacttypes/vmimage/offers/${this._model.vmImage}/skus/${this._model.vmImageSKU}/versions?api-version=2019-12-01`,t=await this._model.getRequest(e,!0);this._model.addDropdownValues(this._vmImageVersionDropdown,t.data.map((e=>({name:e.name,displayName:e.name})))),this._model.vmImageVersion=this._vmImageVersionDropdown.value.name,this._vmImageVersionDropdown.loading=!1}async createVmSizeDropdown(e){this._vmSizeDropdown=e.modelBuilder.dropDown().withProps({editable:!0}).component(),this._vmSizeDropdown.onValueChanged((e=>{this._model.vmSize=this._vmSizeDropdown.value.name})),this._vmSizeLearnMoreLink=e.modelBuilder.hyperlink().withProps({label:i.VmSizeLearnMoreLabel,url:"https://go.microsoft.com/fwlink/?linkid=2143101"}).component()}async populateVmSizeDropdown(){this._vmSizeDropdown.loading=!0;let e=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/providers/Microsoft.Compute/skus?api-version=2019-04-01&$filter=location eq '${this._model.azureRegion}'`,t=await this._model.getRequest(e,!0),n=[];t.data.value.map((e=>{"virtualMachines"===e.resourceType&&n.push(e)}));let r=n.filter((e=>{if(Number(e.capabilities.filter((e=>"MaxResourceVolumeMB"===e.name))[0].value)/1024>=40)return e})).map((e=>{if(e.capabilities){let t;t=0!==e.capabilities.filter((e=>"vCPUsAvailable"===e.name)).length?e.capabilities.filter((e=>"vCPUsAvailable"===e.name))[0].value:e.capabilities.filter((e=>"vCPUs"===e.name))[0].value;const n=e.capabilities.filter((e=>"MemoryGB"===e.name))[0].value,r=Number(e.capabilities.filter((e=>"MaxResourceVolumeMB"===e.name))[0].value)/1024,i=e.capabilities.filter((e=>"MaxDataDiskCount"===e.name))[0].value,o=`${e.name}\tCores: ${t}\tMemory: ${n}GB\tdiscCount: ${i}\tdiscSize: ${r}GB`;return this._vmSize.push(o),{name:e.name,displayName:o}}}));r.sort(((e,t)=>e.displayName>t.displayName?1:-1)),this._vmSize=[],this._vmSizeDropdown.updateProperties({values:r,value:r[0],width:"480px"}),this._model.vmSize=this._vmSizeDropdown.value.name,this._vmSizeDropdown.loading=!1}async validatePage(){const e=[];let t=this._model.vmName;t.length<1&&t.length>15&&e.push(s(0,null)),/^\d+$/.test(t)&&e.push(s(1,null)),"_"!==t.charAt(0)&&"."!==t.slice(-1)&&"-"!==t.slice(-1)||e.push(s(2,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&,]/g.test(t)&&e.push(s(3,null)),await this.vmNameExists(t)&&e.push(s(4,null));let n=this._model.vmUsername;return(n.length<1||n.length>20)&&e.push(s(5,null)),"."===n.slice(-1)&&e.push(s(6,null)),/[\\\/"\'\[\]:\|<>\+=;,\?\*@\&]/g.test(n)&&e.push(s(7,null)),["administrator","admin","user","user1","test","user2","test1","user3","admin1","1","123","a","actuser","adm","admin2","aspnet","backup","console","david","guest","john","owner","root","server","sql","support","support_388945a0","sys","test2","test3","user4","user5"].includes(n)&&e.push(s(8,null)),e.push(this._model.validatePassword(this._model.vmPassword)),this._model.vmPassword!==this._adminComfirmPasswordTextBox.value&&e.push(s(9,null)),this._vmSize.includes(this._vmSizeDropdown.value.name)&&e.push(s(10,null)),this._model.wizard.showErrorMessage(e.join(r.EOL)),e.join(r.EOL)}async vmNameExists(e){const t=`https://management.azure.com/subscriptions/${this._model.azureSubscription}/resourceGroups/${this._model.azureResouceGroup}/providers/Microsoft.Compute/virtualMachines?api-version=2019-12-01`;return(await this._model.getRequest(t,!0)).data.value.map((e=>e.name)).includes(e)}}t.VmSettingsPage=c},365:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DeploymentInputDialog=void 0;const r=n(235),i=n(857),o=n(1398),a=n(4200),s=n(2761),c=n(8991),l=n(6061),u=n(3767),p=a.loadMessageBundle(n(6928).join(__dirname,"ui/deploymentInputDialog.ts")),d="SYS_NotebookType";class f extends c.DialogBase{constructor(e,t,n,r){let i;super(r.title,r.name,!1),this.notebookService=e,this.platformService=t,this.toolsService=n,this.dialogInfo=r,this.inputComponents={},i=r.actionText?r.actionText:(0,s.instanceOfNotebookBasedDialogInfo)(r)&&!r.runNotebook?p(0,null):p(1,null),this._dialogObject.okButton.label=i}initialize(){const e=this,t=[];this.dialogInfo.tabs.length>0&&(0,s.instanceOfNotebookBasedDialogInfo)(this.dialogInfo)&&Array.isArray(this.dialogInfo.notebook)&&this.dialogInfo.tabs[0].sections.push({fields:[{type:s.FieldType.Options,label:p(2,null),options:this.dialogInfo.notebook.map((e=>e.type)),variableName:d}]}),(0,u.initializeDialog)({dialogInfo:this.dialogInfo,container:this._dialogObject,inputComponents:this.inputComponents,onNewDisposableCreated:e=>{this._toDispose.push(e)},onNewInputComponentCreated:(e,t)=>{this.inputComponents[e]=t},onNewValidatorCreated:e=>{t.push(e)},toolsService:this.toolsService}),this._dialogObject.registerCloseValidator((()=>{const n=[];return t.forEach((e=>{const t=e();t.valid||n.push(t.message)})),n.length>0?e._dialogObject.message={level:r.window.MessageLevel.Error,text:n.join(i.EOL)}:e._dialogObject.message={text:""},0===n.length}))}async onComplete(){const e=new l.Model;if(await(0,u.setModelValues)(this.inputComponents,e),(0,s.instanceOfNotebookBasedDialogInfo)(this.dialogInfo))if(e.setEnvironmentVariables(),this.dialogInfo.runNotebook)this.executeNotebook(this.dialogInfo);else{const t=Array.isArray(this.dialogInfo.notebook)?this.dialogInfo.notebook.find((t=>t.type===e.getStringValue(d)))?.path:this.dialogInfo.notebook;this.notebookService.openNotebook(t).catch((e=>{o.window.showErrorMessage(e)}))}else await o.commands.executeCommand(this.dialogInfo.command,e)}executeNotebook(e){this.notebookService.backgroundExecuteNotebook(e.taskName,e.notebook,"deploy",this.platformService)}}t.DeploymentInputDialog=f},8991:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DialogBase=void 0;const r=n(235);t.DialogBase=class{constructor(e,t,n=!1){this._toDispose=[],this._dialogObject=r.window.createModelViewDialog(e,t,n),this._toDispose.push(this._dialogObject.cancelButton.onClick((()=>this.onCancelButtonClicked()))),this._toDispose.push(this._dialogObject.okButton.onClick((()=>this.onOkButtonClicked())))}open(){this.initialize(),r.window.openDialog(this._dialogObject)}onCancelButtonClicked(){this.dispose()}async onOkButtonClicked(){await this.onComplete(),this.dispose()}async onComplete(){}dispose(){this._toDispose.forEach((e=>e.dispose()))}}},6061:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const r=n(857),i=n(2761),o=n(7982),a=n(3508),s=n(6928),c=new RegExp(`^${i.NoteBookEnvironmentVariablePrefix}`);t.Model=class{constructor(){this.propValueObject={}}setPropertyValue(e,t){this.propValueObject[e]="boolean"==typeof t?t?"true":"false":"number"==typeof t?t.toString():t}getIntegerValue(e,t=0){const n=this.propValueObject[e];return void 0===n?t:Number.parseInt(n)}getStringValue(e,t){const n=this.propValueObject[e];return void 0===n?t:n}getBooleanValue(e,t=!1){const n=this.propValueObject[e];return void 0===n?t:"true"===n}getCodeCellContentForNotebook(e=[],t=()=>!0){const n=Object.keys(this.propValueObject).filter((e=>e.startsWith(i.NoteBookEnvironmentVariablePrefix)&&t(e))).map((e=>{const t=this.escapeForNotebookCodeCell(this.getStringValue(e,""));return`${e.replace(c,"").toLocaleLowerCase()} = '${t}'${r.EOL}`}));n.push(`print('Variables have been set successfully.')${r.EOL}`);const l={};return(0,o.setEnvironmentVariablesForInstallPaths)(e,l),e.forEach((e=>{const t=(0,o.getRuntimeBinaryPathEnvironmentVariableName)(e.name);n.push(`os.environ["${t}"] = "${this.escapeForNotebookCodeCell(l[t])}"${r.EOL}`)})),l[a.ToolsInstallPath]&&n.push(`os.environ["PATH"] = os.environ["PATH"] + "${s.delimiter}" + "${this.escapeForNotebookCodeCell(l[a.ToolsInstallPath])}"${r.EOL}`),n.push(`print('Environment Variables for tools have been set successfully.')${r.EOL}`),n}escapeForNotebookCodeCell(e){return e&&e.replace(/\\/g,"\\\\")}setEnvironmentVariables(e=process.env,t=()=>!0){Object.keys(this.propValueObject).filter((e=>e.startsWith(i.NoteBookEnvironmentVariablePrefix)&&t(e))).forEach((t=>{const n=this.getStringValue(t);e[t]=void 0===n?"":n}))}}},3767:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isInputBoxEmpty=t.setModelValues=t.getPasswordMismatchMessage=t.getInvalidSQLPasswordMessage=t.removeValidationMessage=t.isValidSQLPassword=t.createGroupContainer=t.createFlexContainer=t.createSection=t.initializeWizardPage=t.initializeDialog=t.createDropdownInputInfo=t.createCheckbox=t.createCheckboxInputInfo=t.createNumberInputBoxInputInfo=t.createLabel=t.createInputBoxInputInfo=t.DefaultFieldHeight=t.DefaultFieldWidth=t.DefaultFieldAlignItems=t.DefaultLabelWidth=t.DefaultInputWidth=t.getTextComponent=t.getCheckboxComponent=t.getDropdownComponent=t.getInputBoxComponent=void 0;const r=n(235),i=n(9896),o=n(857),a=n(6928),s=n(1398),c=n(4200),l=n(7982),u=n(2761),p=n(1651),d=n(7315),f=n(19),h=n(5634),m=n(7684),v=n(7390),g=n(3948),b=n(5354),y=c.loadMessageBundle(n(6928).join(__dirname,"ui/modelViewUtils.ts"));function _({context:e,inputBoxType:t="text"}){const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=e.initialVariableValues?.[e.fieldInfo.variableName||""]?.toString()||e.fieldInfo.defaultValue,i=x(e.view,{type:t,defaultValue:r,ariaLabel:e.fieldInfo.label,required:e.fieldInfo.required,min:e.fieldInfo.min,max:e.fieldInfo.max,placeHolder:e.fieldInfo.placeHolder,width:e.fieldInfo.inputWidth,enabled:!(0,u.instanceOfDynamicEnablementInfo)(e.fieldInfo.enabled)&&e.fieldInfo.enabled,validations:e.fieldValidations});return i.labelComponent=n,N(e.view,e.components,n,i.component,e.fieldInfo),i}function x(e,t){const n=e.modelBuilder.inputBox().withProps({value:t.defaultValue,ariaLabel:t.ariaLabel,inputType:t.type||"text",required:t.required,min:t.min,max:t.max,placeHolder:t.placeHolder,width:t.width,enabled:t.enabled}).withValidation((async e=>await(0,b.validateInputBoxComponent)(e,t.validations))).component();return{component:n,getValue:async()=>n.value,setValue:e=>n.value=e?.toString(),onValueChanged:n.onTextChanged}}function w(e,t){let n={};void 0!==t.cssStyles&&(n=Object.assign(n,t.cssStyles,{"font-style":t.cssStyles.fontStyle||"normal","font-weight":t.cssStyles.fontWeight||"normal"}),void 0!==t.cssStyles.color&&(n.color=t.cssStyles.color));const r=e.modelBuilder.text().withProps({value:t.text,description:t.description,requiredIndicator:t.required,CSSStyles:n,links:t.links}).component();return r.width=t.width,r}function E(e,t){const n=A(e,t);return{component:n,getValue:async()=>n.checked?"true":"false",setValue:e=>n.checked="true"===e?.toString().toLowerCase(),onValueChanged:n.onChanged}}function A(e,t){return e.modelBuilder.checkBox().withProps({checked:t.initialValue,required:t.required,label:t.label}).component()}function S(e,t){const n=e.modelBuilder.dropDown().withProps({values:t.values,value:t.defaultValue,width:t.width,editable:t.editable,fireOnTextChange:!0,required:t.required,ariaLabel:t.label}).component();return{component:n,getValue:async()=>"string"==typeof n.value?n.value:n.value?.name,setValue:e=>X(n,e?.toString()),getDisplayValue:async()=>("string"==typeof n.value?n.value:n.value?.displayName)||"",onValueChanged:n.onValueChanged}}async function T(e){const n=[];if(e.sectionInfo.inputWidth=e.sectionInfo.inputWidth||t.DefaultInputWidth,e.sectionInfo.labelWidth=e.sectionInfo.labelWidth||t.DefaultLabelWidth,e.sectionInfo.fieldAlignItems=e.sectionInfo.fieldAlignItems||t.DefaultFieldAlignItems,e.sectionInfo.fieldWidth=e.sectionInfo.fieldWidth||t.DefaultFieldWidth,e.sectionInfo.fieldHeight=e.sectionInfo.fieldHeight||t.DefaultFieldHeight,e.sectionInfo.fields)await I(e.sectionInfo.fields,n,e);else if(e.sectionInfo.rows)for(const t of e.sectionInfo.rows)n.push(await C(t,e));return O(e.view,n,{header:e.sectionInfo.title,collapsible:void 0===e.sectionInfo.collapsible||e.sectionInfo.collapsible,collapsed:void 0!==e.sectionInfo.collapsed&&e.sectionInfo.collapsed})}async function C(e,t){const n=[];if("items"in e.items[0]){const r=e.items;n.push(...await Promise.all(r.map((e=>C(e,t)))))}else{const r=e.items;await I(r,n,t,void 0===t.sectionInfo.spaceBetweenFields?"50px":t.sectionInfo.spaceBetweenFields)}return P(t.view,n,!0,t.sectionInfo.fieldWidth,t.sectionInfo.fieldHeight,t.sectionInfo.fieldAlignItems,e.cssStyles)}async function I(e,t,n,r){for(let i=0;i<e.length;i++){const o=e[i];o.labelWidth=o.labelWidth||n.sectionInfo.labelWidth,o.inputWidth=o.inputWidth||n.sectionInfo.inputWidth,o.fieldAlignItems=o.fieldAlignItems||n.sectionInfo.fieldAlignItems,o.fieldWidth=o.fieldWidth||n.sectionInfo.fieldWidth,o.fieldHeight=o.fieldHeight||n.sectionInfo.fieldHeight,o.labelPosition=void 0===o.labelPosition?n.sectionInfo.labelPosition:o.labelPosition,await R({view:n.view,onNewDisposableCreated:n.onNewDisposableCreated,onNewInputComponentCreated:n.onNewInputComponentCreated,onNewValidatorCreated:n.onNewValidatorCreated,fieldInfo:o,container:n.container,inputComponents:n.inputComponents,initialVariableValues:n.initialVariableValues,components:t,toolsService:n.toolsService}),r&&i<e.length-1&&t.push(n.view.modelBuilder.divContainer().withLayout({width:r}).component())}}function P(e,t,n=!0,r,i,o,a){o=o||(n?"center":void 0);const s=n?{CSSStyles:{"margin-right":"5px"}}:{},c={flexFlow:n?"row":"column"};return i&&(c.height=i),r&&(c.width=r),o&&(c.alignItems=o),e.modelBuilder.flexContainer().withItems(t,s).withLayout(c).withProps({CSSStyles:a||{}}).component()}function O(e,t,n){return e.modelBuilder.groupContainer().withItems(t).withLayout(n).component()}function N(e,t,n,r,i,o){const a=[n];if(void 0!==r&&a.push(r),o&&o.length>0&&a.push(...o),"left"===i.labelPosition){const n=P(e,a,!0,i.fieldWidth,i.fieldHeight,i.fieldAlignItems);t.push(n)}else t.push(...a)}async function R(e){switch(e.fieldValidations=e.fieldInfo.validations?.map((t=>(0,b.createValidation)(t,(()=>e.inputComponents[e.fieldInfo.variableName||e.fieldInfo.label].getValue()),(t=>e.inputComponents[t].getValue()),(t=>e.inputComponents[t].component.onValidityChanged),(t=>e.onNewDisposableCreated(t))))),e.fieldInfo.type){case u.FieldType.Options:await async function(e){if((0,l.throwUnless)(void 0!==e.fieldInfo.options,p.optionsNotDefined(e.fieldInfo.type)),Array.isArray(e.fieldInfo.options)&&(e.fieldInfo.options={values:e.fieldInfo.options,defaultValue:e.fieldInfo.defaultValue,optionsType:u.OptionsType.Dropdown}),(0,l.throwUnless)("object"==typeof e.fieldInfo.options,p.optionsNotObjectOrArray),(0,l.throwUnless)("optionsType"in e.fieldInfo.options,p.optionsTypeNotFound),e.fieldInfo.options.source?.providerId){try{e.fieldInfo.options.source.provider=await m.optionsSourcesService.getOptionsSource(e.fieldInfo.options.source.providerId)}catch(t){throw D(e.container),e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error},t}e.fieldInfo.subFields=e.fieldInfo.subFields||[]}let t;const n=e.fieldInfo.options,i=n.source;if(e.fieldInfo.options.optionsType===u.OptionsType.Radio){let o;i?.provider&&(o=async()=>{try{return{defaultValue:n.defaultValue,values:await i.provider.getOptions()}}catch(t){return e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error},{defaultValue:"",values:[]}}}),t=await async function(e,t){return await z(e,t)}(e,o)}else{if((0,l.throwUnless)(e.fieldInfo.options.optionsType===u.OptionsType.Dropdown,p.optionsTypeRadioOrDropdown),i?.provider)try{e.fieldInfo.options.values=await i.provider.getOptions()}catch(t){e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error}}t=function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=e.fieldInfo.options,r=e.fieldInfo.variableName&&e.initialVariableValues?.[e.fieldInfo.variableName]?.toString(),i=n.values,o=i&&i.length>0&&"object"==typeof i[0]?i.find((e=>e.name===n.defaultValue)):n.defaultValue,a=r||o,s=S(e.view,{values:n.values,defaultValue:a,width:e.fieldInfo.inputWidth,editable:e.fieldInfo.editable,required:e.fieldInfo.required,label:e.fieldInfo.label});return s.labelComponent=t,s.component.fireOnTextChange=!0,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,s),N(e.view,e.components,t,s.component,e.fieldInfo),s.component}(e)}if(i?.provider){const n=i.provider;await Promise.all(Object.keys(i?.variableNames??{}).map((async o=>{await async function(e,t,n,i,o){e.fieldInfo.subFields.push({label:e.fieldInfo.label,variableName:t.variableNames[n]}),e.onNewInputComponentCreated(t.variableNames[n],{component:i,isPassword:await o.getIsPassword(n),getValue:async()=>{const t=("string"==typeof i.value?i.value:i.value?.name)||"";try{return await o.getVariableValue(n,t)}catch(t){throw(0,l.isUserCancelledError)(t)||(D(e.container),e.container.message={text:(0,l.getErrorMessage)(t),description:"",level:r.window.MessageLevel.Error}),t}},setValue:e=>{throw new Error("Setting value of radio group isn't currently supported")},onValueChanged:i.onValueChanged})}(e,i,o,t,n)})))}}(e);break;case u.FieldType.DateTimeText:!function(e){e.fieldInfo.defaultValue=e.fieldInfo.defaultValue+(0,l.getDateTimeString)();const t=_({context:e});e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,t)}(e);break;case u.FieldType.Number:!function(e){const t=_({context:e,inputBoxType:"number"});e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:t.component,getValue:async()=>{const e=await t.getValue();return"string"==typeof e&&e.length>0?parseFloat(e):e},setValue:e=>t.component.value=e?.toString(),onValueChanged:t.onValueChanged})}(e);break;case u.FieldType.SQLPassword:case u.FieldType.Password:!function(e){const t=k(e);if(e.fieldInfo.type===u.FieldType.SQLPassword){const n=Q(e.fieldInfo.label);e.onNewDisposableCreated(t.component.onTextChanged((()=>{e.fieldInfo.type===u.FieldType.SQLPassword&&$(t.component.value,e.fieldInfo.userName)&&W(e.container,n)}))),e.onNewValidatorCreated((()=>({valid:$(t.component.value,e.fieldInfo.userName),message:n})))}if(e.fieldInfo.confirmationRequired){const n=K(e.fieldInfo.label),r=w(e.view,{text:e.fieldInfo.confirmationLabel,required:!0,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),i=e.view.modelBuilder.inputBox().withProps({ariaLabel:e.fieldInfo.confirmationLabel,inputType:"password",required:!0,width:e.fieldInfo.inputWidth}).component();N(e.view,e.components,r,i,e.fieldInfo),e.onNewValidatorCreated((()=>({valid:t.component.value===i.value,message:n})));const o=()=>{t.component.value===i.value&&W(e.container,n)};e.onNewDisposableCreated(t.component.onTextChanged((()=>{o()}))),e.onNewDisposableCreated(i.onTextChanged((()=>{o()})))}}(e);break;case u.FieldType.Text:k(e);break;case u.FieldType.ReadonlyText:L(e);break;case u.FieldType.Checkbox:!function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=E(e.view,{initialValue:"true"===e.fieldInfo.defaultValue,label:"",required:e.fieldInfo.required});n.labelComponent=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n),N(e.view,e.components,t,n.component,e.fieldInfo)}(e);break;case u.FieldType.AzureAccount:!async function(e){e.fieldInfo.subFields=[];const t=new Map,n=new Map;let i,o;const a=!!e.initialVariableValues?.[e.fieldInfo.subscriptionVariableName||""]?.toString();a||(i=function(e){const t=w(e.view,{text:p.account,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=S(e.view,{width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.account});n.component.fireOnTextChange=!0,n.labelComponent=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n);const r=e.view.modelBuilder.button().withProps({label:p.signIn,width:"100px",secondary:!0}).component(),i=e.view.modelBuilder.button().withProps({label:p.refresh,width:"100px",secondary:!0}).component();N(e.view,e.components,t,n.component,e.fieldInfo);const o=P(e.view,[r,i],!0,void 0,void 0,void 0,{"margin-right":"10px"});return e.components.push(o),{accountDropdown:n.component,signInButton:r,refreshAccountsButton:i}}(e),o=i.accountDropdown);const c=function(e,t){const n=w(e.view,{text:p.subscription,description:p.subscriptionDescription,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=e.initialVariableValues?.[e.fieldInfo.subscriptionVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let i,o;return r?(i=x(e.view,{type:"text",defaultValue:r,ariaLabel:p.subscription,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1}),o=e=>{}):(i=S(e.view,{defaultValue:r,width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.subscription}),o=e=>X(i.component,e?.toString()),i.component.fireOnTextChange=!0),i.labelComponent=n,e.fieldInfo.subFields.push({label:n.value,variableName:e.fieldInfo.subscriptionVariableName}),e.onNewInputComponentCreated(e.fieldInfo.subscriptionVariableName||e.fieldInfo.label,{component:i.component,getValue:async()=>{const e=(await i.getValue())?.toString()||"";return t.get(e)?.id||e},setValue:e=>o,getDisplayValue:i.getDisplayValue,onValueChanged:i.onValueChanged}),N(e.view,e.components,n,i.component,e.fieldInfo),i.component}(e,n),u=function(e,t,n,r,i){const o=w(e.view,{text:p.resourceGroup,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),a=e.initialVariableValues?.[e.fieldInfo.resourceGroupVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let c;a?c=x(e.view,{type:"text",defaultValue:a,ariaLabel:p.resourceGroup,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1}):(c=S(e.view,{defaultValue:e.fieldInfo.required?void 0:"",width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.resourceGroup}),c.component.fireOnTextChange=!0),c.labelComponent=o,e.fieldInfo.subFields.push({label:o.value,variableName:e.fieldInfo.resourceGroupVariableName});const l=new s.EventEmitter;return c.onValueChanged((()=>l.fire())),e.onNewInputComponentCreated(e.fieldInfo.resourceGroupVariableName||e.fieldInfo.label,c),N(e.view,e.components,o,c.component,e.fieldInfo),"onValueChanged"in r&&r.onValueChanged((async r=>{const o=t&&t.value?n.get(t.value.toString()):void 0,a=i.get(r.selected);await H(e,o,a,c.component),l.fire()})),c.component}(e,o,t,c,n);if(e.fieldInfo.allowNewResourceGroup){const t=E(e.view,{initialValue:!1,label:p.createNewResourceGroup});e.onNewInputComponentCreated(e.fieldInfo.newResourceGroupFlagVariableName,t);const n=x(e.view,{ariaLabel:p.NewResourceGroupAriaLabel});e.onNewInputComponentCreated(e.fieldInfo.newResourceGroupNameVariableName,n),e.components.push(t.component),e.components.push(n.component);const r=e=>{u.required=!e,u.enabled=!e,n.component.required=e,n.component.enabled=e,e||(n.component.value="")};e.onNewDisposableCreated(t.onValueChanged((()=>{r(t.component.checked)}))),r(!1)}const d=e.fieldInfo.locations&&await G(e);if(!a){o.onValueChanged((async r=>{const i=t.get(r.selected);await V(e,i,c,n,u,d)}));const a=async()=>{t.clear();try{const i=await r.accounts.getAllAccounts(),a=e.fieldInfo.required?[]:[""];o.values=a.concat(i.map((e=>{const n=B(e);return t.set(n,e),n})));const s=o.value?t.get(o.value.toString()):void 0;await V(e,s,c,n,u,d)}catch(e){s.window.showErrorMessage(y(3,null,(0,l.getErrorMessage)(e)))}};e.onNewDisposableCreated(i.refreshAccountsButton.onDidClick((async()=>{await a()}))),e.onNewDisposableCreated(i.signInButton.onDidClick((async()=>{await s.commands.executeCommand("workbench.actions.modal.linkedAccount"),await a()}))),setTimeout((async()=>{await a()}),0)}}(e);break;case u.FieldType.AzureLocations:await G(e);break;case u.FieldType.FilePicker:M(e);break;case u.FieldType.KubeClusterContextPicker:!async function(e){const t=e.fieldInfo.configFileVariableName||"AZDATA_NB_VAR_KUBECONFIG_PATH",n={container:e.container,inputComponents:e.inputComponents,components:e.components,view:e.view,onNewValidatorCreated:e.onNewValidatorCreated,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,fieldInfo:{label:p.kubeConfigFilePath,type:u.FieldType.FilePicker,defaultValue:(0,h.getDefaultKubeConfigPath)(),inputWidth:e.fieldInfo.inputWidth,labelWidth:e.fieldInfo.labelWidth,variableName:t,labelPosition:"left",required:!0},toolsService:e.toolsService},r=M(n);e.fieldInfo.subFields=e.fieldInfo.subFields||[],e.fieldInfo.subFields.push({label:n.fieldInfo.label,variableName:t});const i=await z(e,j(r.input.value));e.onNewDisposableCreated(r.input.onTextChanged((async()=>await i.loadOptions(j(r.input.value)))))}(e);break;case u.FieldType.KubeStorageClass:await async function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles});let n=[],r="";try{const t=e.toolsService.getToolByName(v.KubeCtlToolName),i=await t.getStorageClasses();n=i.storageClasses,r=i.defaultStorageClass}catch(e){s.window.showErrorMessage(y(4,null,e.message??e))}const i=S(e.view,{width:e.fieldInfo.inputWidth,editable:!0,required:e.fieldInfo.required,label:e.fieldInfo.label,values:n,defaultValue:r});i.labelComponent=t,i.component.fireOnTextChange=!0,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,i),N(e.view,e.components,t,i.component,e.fieldInfo)}(e);break;default:throw new Error(p.unknownFieldTypeError(e.fieldInfo.type))}}function D(e){"okButton"in e?e.okButton.enabled=!1:(e.generateScriptButton.enabled=!1,e.doneButton.enabled=!1,e.nextButton.enabled=!1,e.backButton.enabled=!1,e.customButtons.forEach((e=>e.enabled=!1)))}function k(e){const t=e.fieldInfo.type===u.FieldType.Password||e.fieldInfo.type===u.FieldType.SQLPassword,n=_({context:e,inputBoxType:t?"password":"text"});return n.isPassword=t,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,n),n}function L(e,t=!0){if((e.fieldInfo.links?.length??0)>0)return function(e){const t=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:!1,width:e.fieldInfo.labelWidth,links:e.fieldInfo.links,cssStyles:e.fieldInfo.labelCSSStyles});return e.components.push(t),{label:t}}(e);if(e.fieldInfo.isEvaluated&&t)return function(e){const t=L(e,!1),n=new s.EventEmitter;return e.onNewDisposableCreated(n),e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:t.text,getValue:async()=>(t.text.value=await async function(e,t){return await Promise.all(Object.keys(e).filter((e=>e.startsWith(u.NoteBookEnvironmentVariablePrefix))).map((async n=>{const r=await(e[n].getDisplayValue?e[n].getDisplayValue():e[n].getValue())??"<undefined>",i=new RegExp(`\\$\\(${n}\\)`,"gi");t=t?.replace(i,r.toString())}))),t}(e.inputComponents,e.fieldInfo.defaultValue),t.text.value),setValue:e=>t.text.value=e?.toString(),onValueChanged:n.event}),t}(e);const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:!1,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=void 0!==e.fieldInfo.defaultValue?w(e.view,{text:e.fieldInfo.defaultValue,description:"",required:!1,width:e.fieldInfo.inputWidth}):void 0;if(r){const t=new s.EventEmitter;e.onNewDisposableCreated(t),e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:r,getValue:async()=>"string"==typeof r.value?r.value:r.value?.join(o.EOL),setValue:e=>r.value=e?.toString(),onValueChanged:t.event})}return N(e.view,e.components,n,r,e.fieldInfo),{label:n,text:r}}function M(e){const t=parseInt(e.fieldInfo.inputWidth.replace(/px/g,"").trim()),n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=x(e.view,{defaultValue:e.fieldInfo.defaultValue||"",ariaLabel:e.fieldInfo.label,required:e.fieldInfo.required,placeHolder:e.fieldInfo.placeHolder,width:t-100+"px",enabled:"boolean"==typeof e.fieldInfo.enabled&&e.fieldInfo.enabled,validations:e.fieldValidations});r.labelComponent=n,e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,r),r.component.enabled=!1;const i=e.view.modelBuilder.button().withProps({label:p.browse,width:100,secondary:!0}).component(),o=e.fieldInfo;let c;if(o.filter){const e=o.filter.displayName;c={},c[e]=o.filter.fileTypes}e.onNewDisposableCreated(i.onDidClick((async()=>{let e=await s.window.showOpenDialog({canSelectFiles:!0,canSelectFolders:!1,canSelectMany:!1,defaultUri:r.component.value?s.Uri.file(a.dirname(r.component.value)):void 0,openLabel:p.select,filters:c});if(!e||0===e.length)return;let t=e[0];r.component.value=t.fsPath})));const l=P(e.view,[r.component,i],!0,e.fieldInfo.inputWidth);return N(e.view,e.components,n,l,e.fieldInfo),{input:r.component,browseButton:i}}function j(e){return async()=>{await async function(e){try{if(!(await i.promises.stat(e)).isFile())throw Error(y(1,null,e))}catch(t){throw"ENOENT"===t.code?Error(y(2,null,e)):t}}(e);try{let t="";const n=(await(0,h.getKubeConfigClusterContexts)(e)).map((e=>(e.isCurrentContext&&(t=e.name),e.name)));if(0===n.length)throw Error(p.clusterContextNotFound);return{values:n,defaultValue:t}}catch(t){throw Error(y(0,null,e,(0,l.getErrorMessage)(t)))}}}async function z(e,t){void 0===e.fieldInfo.fieldAlignItems&&(e.fieldInfo.fieldAlignItems="flex-start");const n=w(e.view,{text:e.fieldInfo.label,description:e.fieldInfo.description,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),r=new g.RadioGroupLoadingComponentBuilder(e.view,e.onNewDisposableCreated,e.fieldInfo);e.fieldInfo.labelPosition="left",e.onNewInputComponentCreated(e.fieldInfo.variableName||e.fieldInfo.label,{component:r,labelComponent:n,getValue:async()=>r.value,setValue:e=>{throw new Error("Setting value of radio group isn't currently supported")},setOptions:e=>{r.loadOptions(e)},getDisplayValue:async()=>r.displayValue,onValueChanged:r.onValueChanged});const i=e.fieldInfo.options;let o=i?.source?.loadingText,a=i?.source?.loadingCompletedText;return(o||a)&&r.withProps({showText:!0,loadingText:o,loadingCompletedText:a}),N(e.view,e.components,n,r.component(),e.fieldInfo),r.loadOptions(t||i).catch((e=>console.log("Error loading options for radio group ",e))),r}async function F(e){const t=(await r.accounts.getAllAccounts()).find((t=>t.key.accountId===e.key.accountId));return void 0===t?0:t.isStale?1:2}function B(e){return`${e.displayInfo.displayName} (${e.displayInfo.userId})`}async function V(e,t,n,i,a,c){if("values"in n){if(i.clear(),n.values=[],await H(e,t,void 0,a),!t)return n.values=[""],void(c&&"values"in c&&(c.values=[""]));c&&"values"in c&&c.values&&0===c.values.length&&(c.values=e.fieldInfo.locations);try{const s=await d.apiService.azurecoreApi.getSubscriptions(t,!0,!1);if(!s)return;if(s.errors.length>0){const n=await F(t);if(1===n||0===n){const i=await q({selectedAccount:t,accountStatus:n});e.container.message={text:i,description:"",level:r.window.MessageLevel.Error}}else{const t=s.errors.join(o.EOL);0===s.subscriptions.length?e.container.message={text:t,description:"",level:r.window.MessageLevel.Error}:console.log(t)}}n.values=s.subscriptions.map((e=>{const t=U(e);return i.set(t,e),t})).sort(((e,t)=>e.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase())));const c=n.values.length>0?i.get(n.values[0]):void 0;await H(e,t,c,a)}catch(e){await s.window.showErrorMessage(await q({selectedAccount:t,defaultErrorMessage:y(5,null,B(t),(0,l.getErrorMessage)(e)),error:e}))}}}function U(e){return`${e.name} (${e.id})`}async function q({selectedAccount:e,defaultErrorMessage:t="",error:n,accountStatus:r}){switch(void 0===r&&(r=await F(e)),r){case 0:return y(6,null,B(e))+(void 0!==n?y(7,null,(0,l.getErrorMessage)(n)):"");case 1:return y(8,null,B(e))+(void 0!==n?y(9,null,(0,l.getErrorMessage)(n)):"");case 2:return t}}async function H(e,t,n,i){if("values"in i&&(i.values=[""],t&&n))try{const a=await d.apiService.azurecoreApi.getResourceGroups(t,n,!0);if(!a)return;if(a.errors.length>0){const n=await F(t);if(1===n||0===n){const i=await q({selectedAccount:t,accountStatus:n});e.container.message={text:i,description:"",level:r.window.MessageLevel.Error}}else{const t=a.errors.join(o.EOL);0===a.resourceGroups.length?e.container.message={text:t,description:"",level:r.window.MessageLevel.Error}:console.log(t)}}i.values=0!==a.resourceGroups.length?a.resourceGroups.map((e=>e.name)).sort(((e,t)=>e.toLocaleLowerCase().localeCompare(t.toLocaleLowerCase()))):[""]}catch(e){await s.window.showErrorMessage(await q({selectedAccount:t,defaultErrorMessage:y(10,null,U(n),(0,l.getErrorMessage)(e)),error:e}))}}async function G(e){const t=w(e.view,{text:e.fieldInfo.label||p.location,required:e.fieldInfo.required,width:e.fieldInfo.labelWidth,cssStyles:e.fieldInfo.labelCSSStyles}),n=e.initialVariableValues?.[e.fieldInfo.locationVariableName||""]?.toString()??(e.fieldInfo.required?void 0:"");let r;if(n)r=x(e.view,{type:"text",defaultValue:n,ariaLabel:p.location,required:e.fieldInfo.required,width:e.fieldInfo.inputWidth,enabled:!1});else{const t=e.fieldInfo.locations?.map((e=>({name:e,displayName:d.apiService.azurecoreApi.getRegionDisplayName(e)})));r=S(e.view,{defaultValue:t?.find((t=>t.name===e.fieldInfo.defaultValue)),width:e.fieldInfo.inputWidth,editable:!1,required:e.fieldInfo.required,label:p.location,values:t}),r.component.fireOnTextChange=!0}return r.labelComponent=t,e.fieldInfo.subFields=e.fieldInfo.subFields||[],e.fieldInfo.locationVariableName&&(e.fieldInfo.subFields.push({label:t.value,variableName:e.fieldInfo.locationVariableName}),e.onNewInputComponentCreated(e.fieldInfo.locationVariableName,r)),N(e.view,e.components,t,r.component,e.fieldInfo),r.component}function $(e,t="sa"){const n=e&&void 0!==t&&e.toUpperCase().includes(t.toUpperCase()),r=/[A-Z]/.test(e)?1:0,i=/[a-z]/.test(e)?1:0,o=/\d/.test(e)?1:0,a=/\W/.test(e)?1:0;return!n&&e.length>=8&&e.length<=128&&r+i+o+a>=3}function W(e,t){if(e.message&&e.message.text.includes(t)){const n=t+"\n",r=e.message.text.includes(n)?n:t;e.message={text:e.message.text.replace(r,"")}}}function Q(e){return y(11,null,e)}function K(e){return y(12,null,e)}function X(e,t=""){const n=e.values??[];"object"==typeof n[0]?e.value=n.find((e=>e.name===t)):e.value=t}t.getInputBoxComponent=function(e,t){return t[e].component},t.getDropdownComponent=function(e,t){return t[e].component},t.getCheckboxComponent=function(e,t){return t[e].component},t.getTextComponent=function(e,t){return t[e].component},t.DefaultInputWidth="400px",t.DefaultLabelWidth="200px",t.DefaultFieldAlignItems=void 0,t.DefaultFieldWidth=void 0,t.DefaultFieldHeight=void 0,t.createInputBoxInputInfo=x,t.createLabel=w,t.createNumberInputBoxInputInfo=function(e,t){return t.type="number",x(e,t)},t.createCheckboxInputInfo=E,t.createCheckbox=A,t.createDropdownInputInfo=S,t.initializeDialog=function(e){const n=[];e.dialogInfo.tabs.forEach((i=>{const o=r.window.createTab(i.title);o.registerContent((async n=>{const r=await Promise.all(i.sections.map((r=>(r.inputWidth=r.inputWidth||i.inputWidth||t.DefaultInputWidth,r.labelWidth=r.labelWidth||i.labelWidth||t.DefaultLabelWidth,r.fieldAlignItems=r.fieldAlignItems||i.fieldAlignItems||t.DefaultFieldAlignItems,r.fieldWidth=r.fieldWidth||i.fieldWidth||t.DefaultFieldWidth,r.fieldHeight=r.fieldHeight||i.fieldHeight||t.DefaultFieldHeight,r.labelPosition=r.labelPosition||i.labelPosition,T({sectionInfo:r,view:n,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,onNewValidatorCreated:e.onNewValidatorCreated,container:e.container,inputComponents:e.inputComponents,toolsService:e.toolsService}))))),o=n.modelBuilder.formContainer().withFormItems(r.map((e=>({title:"",component:e}))),{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component();return n.initializeModel(o)})),n.push(o)})),e.container.content=n},t.initializeWizardPage=function(e){e.page.registerContent((async n=>{const r=await Promise.all(e.pageInfo.sections.map((r=>(r.inputWidth=r.inputWidth||e.pageInfo.inputWidth||e.wizardInfo.inputWidth||t.DefaultInputWidth,r.labelWidth=r.labelWidth||e.pageInfo.labelWidth||e.wizardInfo.labelWidth||t.DefaultLabelWidth,r.fieldAlignItems=r.fieldAlignItems||e.pageInfo.fieldAlignItems||t.DefaultFieldAlignItems,r.fieldWidth=r.fieldWidth||e.pageInfo.fieldWidth||e.wizardInfo.fieldWidth||t.DefaultFieldWidth,r.fieldHeight=r.fieldHeight||e.pageInfo.fieldHeight||e.wizardInfo.fieldHeight||t.DefaultFieldHeight,r.labelPosition=r.labelPosition||e.pageInfo.labelPosition||e.wizardInfo.labelPosition,T({view:n,container:e.container,toolsService:e.toolsService,inputComponents:e.inputComponents,initialVariableValues:e.initialVariableValues,onNewDisposableCreated:e.onNewDisposableCreated,onNewInputComponentCreated:e.onNewInputComponentCreated,onNewValidatorCreated:e.onNewValidatorCreated,sectionInfo:r})))));await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if((0,u.instanceOfDynamicEnablementInfo)(t.enabled)){const n=t.variableName||t.label,r=e.inputComponents[n],i=e.inputComponents[t.enabled.target],o=t.enabled.value;if(!i)return void console.error(`Could not find target component ${t.enabled.target} when hooking up dynamic enablement for ${t.label}`);const a=async()=>{const e=await i.getValue()===o;r.component.enabled=e;const n=!1!==r.component.enabled&&t.required;r.labelComponent&&(r.labelComponent.requiredIndicator=n),"required"in r.component&&(r.component.required=n),"placeHolder"in r.component&&(r.component.placeHolder=e?t.placeHolder:"")};i.onValueChanged((()=>{a()})),await a()}})))})))}(e),await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if((0,u.instanceOfDynamicOptionsInfo)(t.dynamicOptions)){const n=t.variableName||t.label,r=e.inputComponents[n],i=e.inputComponents[t.dynamicOptions.target];if(!i)return void console.error(`Could not find target component ${t.dynamicOptions.target} when hooking up dynamic options for ${t.label}`);const o=async()=>{const e=await i.getValue();if(t.dynamicOptions&&t.options&&r&&r.setOptions){let n=t.dynamicOptions.alternates.find((t=>t.selection===e));n?r.setOptions({values:n.alternateValues,defaultValue:n.defaultValue}):r.setOptions({values:t.options.values,defaultValue:t.options.defaultValue})}};i.onValueChanged((()=>{o()})),await o()}})))})))}(e),await async function(e){await Promise.all(e.pageInfo.sections.map((async t=>{t.fields&&await Promise.all(t.fields.map((async t=>{if(t.valueProvider){const n=t.variableName||t.label,r=e.inputComponents[n],i=await f.valueProviderService.getValueProvider(t.valueProvider.providerId);let o={};t.valueProvider.triggerFields.forEach((n=>{const r=e.inputComponents[n];r?o[n]=r:console.error(`Could not find target component '${n}' when hooking up value providers for '${t.label}'`)}));const a=async()=>{let e={};for(let t in o)e[t]=await o[t].getValue();let t=await i.getValue(e);r.setValue(t)};for(let t in o)e.onNewDisposableCreated(o[t].onValueChanged((()=>{a()})));await a()}})))})))}(e);const i=n.modelBuilder.formContainer().withFormItems(r.map((e=>({title:"",component:e}))),{horizontal:!1,componentWidth:"100%"}).withLayout({width:"100%"}).component();return n.initializeModel(i)}))},t.createSection=T,t.createFlexContainer=P,t.createGroupContainer=O,t.isValidSQLPassword=$,t.removeValidationMessage=W,t.getInvalidSQLPasswordMessage=Q,t.getPasswordMismatchMessage=K,t.setModelValues=async function(e,t){await Promise.all(Object.keys(e).map((async n=>{const r=await e[n].getValue();"object"==typeof r?t.setPropertyValue(n,r.name):t.setPropertyValue(n,r)})))},t.isInputBoxEmpty=function(e){return void 0===e.value||""===e.value}},8603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardAutoSummaryPage=void 0;const r=n(4200),i=n(2761),o=n(3767),a=n(8114),s=r.loadMessageBundle(n(6928).join(__dirname,"ui/notebookWizard/notebookWizardAutoSummaryPage.ts"));class c extends a.NotebookWizardPage{constructor(e,t){super(e,t,e.wizardInfo.pages[t].title||s(0,null),e.wizardInfo.pages[t].description||""),this.formItems=[]}initialize(){this.pageObject.registerContent((e=>(this.view=e,this.form=e.modelBuilder.formContainer(),e.initializeModel(this.form.withLayout({width:"100%"}).component()))))}async onLeave(){this.wizard.wizardObject.message={text:""}}async onEnter(){this.formItems.forEach((e=>{this.form.removeFormItem(e)})),this.formItems=[];const e=this.pageInfo.fieldWidth||this._model.wizardInfo.fieldWidth||o.DefaultFieldWidth,t=this.pageInfo.fieldHeight||this._model.wizardInfo.fieldHeight||o.DefaultFieldHeight,n=this.pageInfo.fieldAlignItems||this._model.wizardInfo.fieldAlignItems||o.DefaultFieldAlignItems,r=this.pageInfo.labelWidth||this._model.wizardInfo.labelWidth||o.DefaultLabelWidth,i=this.pageInfo.labelPosition||this._model.wizardInfo.labelPosition||"left",a=this.pageInfo.inputWidth||this._model.wizardInfo.inputWidth||o.DefaultInputWidth,s=this._model.wizardInfo.pages.filter(((e,t)=>t<this._pageIndex));for(const c of s){const s={labelPosition:i,labelWidth:r,inputWidth:a,fieldWidth:e,fieldHeight:t,fieldAlignItems:n,title:"",rows:[]};if(c.sections.forEach((e=>{e.fields.forEach((e=>{e.variableName&&this.addSummaryForVariable(s,e),e.subFields&&e.subFields.forEach((e=>{this.addSummaryForVariable(s,e)}))}))})),s.rows.length>0){const e={title:c.title,component:await(0,o.createSection)({container:this.wizard.wizardObject,toolsService:this.wizard.toolsService,inputComponents:this._model.inputComponents,sectionInfo:s,view:this.view,onNewDisposableCreated:()=>{},onNewInputComponentCreated:()=>{},onNewValidatorCreated:()=>{}})};this.formItems.push(e)}}this.form.addFormItems(this.formItems)}addSummaryForVariable(e,t){e.rows.push({items:[{type:i.FieldType.ReadonlyText,label:t.label,defaultValue:this.wizard.model.getStringValue(t.variableName),labelCSSStyles:{fontWeight:i.FontWeight.Bold}}]})}}t.NotebookWizardAutoSummaryPage=c},6564:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardModel=void 0;const r=n(1651),i=n(3767),o=n(4545),a=n(8603),s=n(8114),c=n(7982);class l extends o.ResourceTypeModel{get notebookService(){return this.wizard.notebookService}get platformService(){return this.wizard.platformService}get toolsService(){return this.wizard.toolsService}get wizardInfo(){return this.notebookProvider.notebookWizard}get inputComponents(){return this._inputComponents}constructor(e,t){super(e,t),this.notebookProvider=e,this._inputComponents={},void 0===this.notebookProvider.notebookWizard.codeCellInsertionPosition&&(this.notebookProvider.notebookWizard.codeCellInsertionPosition=0),this.wizard.wizardObject.title=this.notebookProvider.notebookWizard.title,this.wizard.wizardObject.doneButton.label=this.notebookProvider.notebookWizard.doneAction?.label||r.deployNotebook,this.wizard.wizardObject.generateScriptButton.label=this.notebookProvider.notebookWizard.scriptAction?.label||r.scriptToNotebook}initialize(){this.wizard.setPages(this.getPages())}async onGenerateScript(){if(this.wizard.lastPage.validatePage()){let e;try{e=await this.prepareNotebookAndEnvironment()}catch(e){if((0,c.isUserCancelledError)(e))return!1;throw e}return e&&await this.openNotebook(e),!0}return!1}async onOk(){const e=await this.prepareNotebookAndEnvironment();(await this.openNotebook(e)).runAllCells()}async openNotebook(e){const t=this.notebookService.getNotebookPath(this.wizardInfo.notebook);return await this.notebookService.openNotebookWithContent(t,JSON.stringify(e,void 0,4))}async prepareNotebookAndEnvironment(){await(0,i.setModelValues)(this.inputComponents,this);const e=process.env;this.setEnvironmentVariables(e,(e=>!!this.inputComponents[e]?.isPassword));const t=await this.notebookService.getNotebook(this.wizardInfo.notebook),n=this.getCodeCellContentForNotebook(this.toolsService.toolsForCurrentProvider,(e=>!this.inputComponents[e]?.isPassword));return t.cells.splice(this.wizardInfo.codeCellInsertionPosition??0,0,{cell_type:"code",source:n,metadata:{},outputs:[],execution_count:0}),t}getPages(){const e=[];for(let t=0;t<this.wizardInfo.pages.length;t++)this.wizardInfo.pages[t].isSummaryPage&&this.wizardInfo.isSummaryPageAutoGenerated?e.push(new a.NotebookWizardAutoSummaryPage(this,t)):e.push(new s.NotebookWizardPage(this,t));return e}}t.NotebookWizardModel=l},8114:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NotebookWizardPage=void 0;const r=n(235),i=n(857),o=n(3767),a=n(4441),s=n(1651);class c extends a.ResourceTypePage{get pageInfo(){return this._model.wizardInfo.pages[this._pageIndex]}constructor(e,t,n,r){super(e.wizardInfo.pages[t].title||n||"",e.wizardInfo.pages[t].description||r||"",e.wizard),this._model=e,this._pageIndex=t}get isDoneButtonVisible(){return!!this._model.wizardInfo.doneAction}get isGenerateScriptButtonVisible(){return!!this._model.wizardInfo.scriptAction}initialize(e){(0,o.initializeWizardPage)({container:this.wizard.wizardObject,inputComponents:this._model.inputComponents,wizardInfo:this._model.wizardInfo,pageInfo:this.pageInfo,page:this.pageObject,initialVariableValues:e,onNewDisposableCreated:e=>{this.wizard.registerDisposable(e)},onNewInputComponentCreated:(e,t)=>{e&&(this._model.inputComponents[e]=t)},onNewValidatorCreated:e=>{this.validators.push(e)},toolsService:this.wizard.toolsService})}async onLeave(){this.wizard.wizardObject.registerNavigationValidator((e=>!0))}async onEnter(e){e.isLastPage?(this.wizard.wizardObject.doneButton.hidden=!this.isDoneButtonVisible,this._model.wizardInfo.doneAction?.label&&(this.wizard.wizardObject.doneButton.label=this._model.wizardInfo.doneAction.label),this.wizard.wizardObject.generateScriptButton.hidden=!this.isGenerateScriptButtonVisible,this._model.wizardInfo.scriptAction?.label&&(this.wizard.wizardObject.generateScriptButton.label=this._model.wizardInfo.scriptAction.label)):(this.wizard.wizardObject.doneButton.hidden=!0,this.wizard.wizardObject.generateScriptButton.hidden=!0),this.pageInfo.isSummaryPage&&await(0,o.setModelValues)(this._model.inputComponents,this.wizard.model),this.wizard.wizardObject.generateScriptButton.enabled=this.pageObject.valid,this.wizard.wizardObject.registerNavigationValidator((e=>(this.wizard.wizardObject.message={text:""},!(void 0===e.newPage||e.newPage>e.lastPage)||this.validatePage())))}validatePage(){const e=[];return this.validators.forEach((t=>{const n=t();n.valid||e.push(n.message)})),e.length>0&&(this.wizard.wizardObject.message={text:1===e.length?e[0]:s.multipleValidationErrors,description:1===e.length?void 0:e.join(i.EOL),level:r.window.MessageLevel.Error}),0===e.length}}t.NotebookWizardPage=c},7914:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageLessDeploymentModel=void 0;const r=n(2761),i=n(365),o=n(4545),a=n(235),s=n(1398),c=n(4200).loadMessageBundle(n(6928).join(__dirname,"ui/pageLessDeploymentModel.ts"));class l extends o.ResourceTypeModel{initialize(){this.wizard.setPages([])}async onOk(){let e=this.wizard.provider;if((0,r.instanceOfDialogDeploymentProvider)(e))new i.DeploymentInputDialog(this.wizard.notebookService,this.wizard.platformService,this.wizard.toolsService,e.dialog).open();else if((0,r.instanceOfNotebookDeploymentProvider)(e))this.wizard.notebookService.openNotebook(e.notebook);else if((0,r.instanceOfDownloadDeploymentProvider)(e)){const t=e.downloadUrl,n=c(0,null,t);a.tasks.startBackgroundOperation({displayName:n,description:n,isCancelable:!1,operation:e=>{e.updateStatus(a.TaskStatus.InProgress,c(1,null,t)),this.wizard.resourceTypeService.download(t).then((async t=>{e.updateStatus(a.TaskStatus.InProgress,c(2,null,t)),e.updateStatus(a.TaskStatus.InProgress,c(3,null,t)),await this.wizard.platformService.runCommand(t,{sudo:!0}),e.updateStatus(a.TaskStatus.Succeeded,c(4,null,t))}),(t=>{e.updateStatus(a.TaskStatus.Failed,t)}))}})}else(0,r.instanceOfWebPageDeploymentProvider)(e)?s.commands.executeCommand("vscode.open",s.Uri.parse(e.webPageUrl)):(0,r.instanceOfCommandDeploymentProvider)(e)&&s.commands.executeCommand(e.command)}}t.PageLessDeploymentModel=l},3948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RadioGroupLoadingComponentBuilder=void 0;const r=n(235),i=n(1398),o=n(2761),a=n(7982);t.RadioGroupLoadingComponentBuilder=class{constructor(e,t,n){this._view=e,this._onNewDisposableCreated=t,this._fieldInfo=n,this._onValueChangedEmitter=new i.EventEmitter,this._optionsDivContainer=this._view.modelBuilder.divContainer().withProps({clickable:!1}).component(),this._optionsLoadingBuilder=this._view.modelBuilder.loadingComponent().withItem(this._optionsDivContainer),this._enabled=!(0,o.instanceOfDynamicEnablementInfo)(this._fieldInfo.enabled)&&this._fieldInfo.enabled}component(){return this._optionsLoadingBuilder.component()}withProperties(e){return this._optionsLoadingBuilder.withProps(e)}withProps(e){return this._optionsLoadingBuilder.withProps(e)}withValidation(e){return this._optionsLoadingBuilder.withValidation(e)}async loadOptions(e){this.component().loading=!0,this._optionsDivContainer.clearItems();try{"object"!=typeof e&&(e=await e());let t=e.values,n=e.defaultValue;t.forEach((e=>{const t="string"==typeof e?{name:e,displayName:e}:e,r=this._view.modelBuilder.radioButton().withProps({label:t.displayName,value:t.name,checked:t.displayName===n,enabled:this._enabled}).component();r.checked&&(this._currentRadioOption=r,this._onValueChangedEmitter.fire()),this._onNewDisposableCreated(r.onDidClick((()=>{this._optionsDivContainer.items.filter((e=>e!==r)).forEach((e=>e.checked=!1)),this._currentRadioOption=r,this._onValueChangedEmitter.fire()}))),this._optionsDivContainer.addItem(r)}))}catch(e){const t=this._view.modelBuilder.text().withProps({value:(0,a.getErrorMessage)(e),textType:r.TextType.Error}).component();this._optionsDivContainer.addItem(t)}this.component().loading=!1}get value(){return this._currentRadioOption?.value||this._currentRadioOption?.label}get displayValue(){return this._currentRadioOption.label||""}get checked(){return this._currentRadioOption}set enabled(e){this._optionsDivContainer.items.forEach((t=>{t.enabled=e})),this._enabled=e}get onValueChanged(){return this._onValueChangedEmitter.event}}},4545:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypeModel=void 0;const r=n(6061);class i extends r.Model{constructor(e,t){super(),this.provider=e,this.wizard=t}onCancel(){}async onGenerateScript(){return!0}}t.ResourceTypeModel=i},4441:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypePage=void 0;const r=n(2111);class i extends r.WizardPageBase{}t.ResourceTypePage=i},4204:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypePickerDialog=void 0;const r=n(235),i=n(4200),o=n(1651),a=n(8991),s=i.loadMessageBundle(n(6928).join(__dirname,"ui/resourceTypePickerDialog.ts"));class c extends a.DialogBase{constructor(e,t,n,r,i){super(o.resourceTypePickerDialogTitle,"ResourceTypePickerDialog",!0),this.resourceTypeService=e,this._resourceTypeNameFilters=n,this._optionValuesFilter=r,this._initialVariableValues=i,this._currentResourceTypeDisposables=[],this._cardsCache=new Map,this._selectedResourceType=t,this._dialogObject.okButton.label=o.select}initialize(){let e=r.window.createTab("");this._dialogObject.registerCloseValidator((async()=>!0)),e.registerContent((e=>{this._view=e,this._resourceTypes=this.resourceTypeService.getResourceTypes().filter((e=>!this._resourceTypeNameFilters||this._resourceTypeNameFilters.find((t=>e.name===t)))).sort(((e,t)=>(e.displayIndex||Number.MAX_VALUE)-(t.displayIndex||Number.MAX_VALUE))),this._cardGroup=e.modelBuilder.radioCardGroup().withProps({cards:this._resourceTypes.map((e=>this.createOrGetCard(e))),iconHeight:"35px",iconWidth:"35px",cardWidth:"300px",cardHeight:"150px",ariaLabel:s(0,null),width:"1000px",height:"550px",iconPosition:"left"}).component(),this._toDispose.push(this._cardGroup.onSelectionChanged((({cardId:e})=>{this._dialogObject.message={text:""},this._dialogObject.okButton.label=o.select;const t=this._resourceTypes.find((t=>t.name===e));t&&this.selectResourceType(t)})));const t=[];0!==this.getAllResourceTags().length&&(this._resourceTagsListView=this.createTagsListView(),t.push(this._resourceTagsListView)),this._resourceSearchBox=e.modelBuilder.inputBox().withProps({placeHolder:o.resourceTypeSearchBoxDescription,ariaLabel:o.resourceTypeSearchBoxDescription}).component(),this._toDispose.push(this._resourceSearchBox.onTextChanged((e=>{this.filterResources(),this._resourceSearchBox.focus()})));const n=e.modelBuilder.divContainer().withItems([this._resourceSearchBox]).withProps({CSSStyles:{"margin-left":"15px",width:"300px"}}).component(),r=this._view.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).withItems([n,this._cardGroup]).component();t.push(r);const i=e.modelBuilder.formContainer().withFormItems([{component:this._view.modelBuilder.flexContainer().withLayout({flexFlow:"row"}).withItems(t).component(),title:""}],{horizontal:!1}).withLayout({width:"100%"}).component();return e.initializeModel(i).then((()=>{this.selectResourceType(this._resourceTypes[0]),this._selectedResourceType&&(this._cardGroup.selectedCardId=this._selectedResourceType.name),this._resourceTagsListView.focus()}))})),this._dialogObject.content=[e]}createTagsListView(){const e=this.getAllResourceTags();e.includes("All")||e.splice(0,0,"All");const t=[];e.forEach(((e,n)=>{t.push({label:o.getResourceTypeCategoryLocalizedString(e),id:e})}));const n=this._view.modelBuilder.listView().withProps({title:{text:o.resourceTypeCategoryListViewTitle},CSSStyles:{"margin-top":"35px",width:"140px"},options:t,selectedOptionId:t[0].id,ariaLabel:o.resourceTypeCategoryListViewTitle}).component();return this._toDispose.push(n.onDidClick((e=>{this._resourceSearchBox.value="",this.filterResources(),n.focus()}))),n}filterResources(){const e=this._resourceTagsListView.selectedOptionId,t=this._resourceSearchBox.value?.toLowerCase()??"";let n="All"!==e?this._resourceTypes.filter((t=>t.tags?.includes(e)??!1)):this._resourceTypes;const r=n.filter((e=>e.displayName.toLowerCase().includes(t)));r.push(...n.filter((e=>!e.displayName.toLowerCase().includes(t)&&e.description.toLowerCase().includes(t))));const i=r.map((e=>this.createOrGetCard(e)));r.length>0?(this._cardGroup.updateProperties({selectedCardId:i[0].id,cards:i}),this.selectResourceType(r[0])):(this._cardGroup.updateProperties({selectedCardId:"",cards:[]}),this._dialogObject.okButton.enabled=!1)}selectResourceType(e){this._currentResourceTypeDisposables.forEach((e=>e.dispose())),this._selectedResourceType=e}async onComplete(){this.resourceTypeService.startDeployment(this._selectedResourceType,this._optionValuesFilter,this._initialVariableValues)}getAllResourceTags(){return["All","On-premises","Hybrid","Cloud","SQL Server","PostgreSQL"].filter((e=>"All"===e||void 0!==this._resourceTypes.find((t=>t.tags?.includes(e)))))}createOrGetCard(e){if(this._cardsCache.has(e.name))return this._cardsCache.get(e.name);const t={id:e.name,label:e.displayName,icon:e.icon,descriptions:[{textValue:e.displayName,textStyles:{"font-size":"14px","font-weight":"bold"}},{textValue:e.description}]};return this._cardsCache.set(e.name,t),t}}t.ResourceTypePickerDialog=c},4101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResourceTypeWizard=void 0;const r=n(235),i=n(2761),o=n(6344),a=n(9110),s=n(6564),c=n(8706),l=n(3333),u=n(7914),p=n(7982);t.ResourceTypeWizard=class{get useGenerateScriptButton(){return this._useGenerateScriptButton}set useGenerateScriptButton(e){this._useGenerateScriptButton=e}get model(){return this._model}get lastPage(){return this.pages.length>0?this.pages[this.pages.length-1]:void 0}constructor(e,t,n,r,i,o,a,s){this.resourceType=e,this._kubeService=t,this.notebookService=n,this.toolsService=r,this.platformService=i,this.resourceTypeService=o,this._optionValuesFilter=a,this._initialVariableValues=s,this.customButtons=[],this.pages=[],this.toDispose=[];let c=(0,p.deepClone)(e.options);const l=this._optionValuesFilter?.[this.resourceType.name];l&&c.forEach((e=>{const t=l[e.name];t&&(e.values=e.values.filter((e=>t.includes(e.name))))})),e.options?this.provider=this.resourceType.getProvider(c.map((e=>({option:e.name,value:e.values[0].name})))):this.provider=this.resourceType.providers[0]}createNewWizard(){this.wizardObject&&this.close(),this.wizardObject=r.window.createWizard(this.resourceType.displayName,this.resourceType.name,"wide"),this.wizardObject.generateScriptButton.hidden=!0,this.wizardObject.customButtons=this.customButtons,this.toDispose.push(this.wizardObject.onPageChanged((async e=>{let t=this.pages[e.lastPage],n=this.pages[e.newPage];await(t?.onLeave(new a.WizardPageInfo(e.lastPage,this.pages.length))),this.useGenerateScriptButton&&(this.wizardObject.generateScriptButton.hidden=n!==this.pages.slice(-1)[0]),await n.onEnter(new a.WizardPageInfo(e.newPage,this.pages.length))}))),this.toDispose.push(this.wizardObject.doneButton.onClick((async()=>{await this._model.onOk(),this.dispose()}))),this.toDispose.push(this.wizardObject.generateScriptButton.onClick((async()=>{await this._model.onGenerateScript()&&(this.dispose(),this.wizardObject.close())}))),this.toDispose.push(this.wizardObject.cancelButton.onClick((()=>{this._model.onCancel(),this.dispose()})))}getResourceProviderModel(){return(0,i.instanceOfAzureSQLVMDeploymentProvider)(this.provider)?new o.DeployAzureSQLVMWizardModel(this.provider,this):(0,i.instanceOfNotebookWizardDeploymentProvider)(this.provider)?new s.NotebookWizardModel(this.provider,this):(0,i.instanceOfAzureSQLDBDeploymentProvider)(this.provider)?new c.DeployAzureSQLDBWizardModel(this.provider,this):new u.PageLessDeploymentModel(this.provider,this)}async open(){this.createNewWizard(),this.updateModelFromProvider(),await this.wizardObject.open()}updateModelFromProvider(){this._model=this.getResourceProviderModel(),this._model.initialize()}addButton(e){this.customButtons.push(e)}setPages(e){e.unshift(new l.ToolsAndEulaPage(this,this._optionValuesFilter)),this.wizardObject.pages=e.map((e=>e.pageObject)),this.pages=e,this.pages.forEach((e=>{e.pageObject.onValidityChanged((e=>{this.wizardObject.generateScriptButton.enabled=e})),e.initialize(this._initialVariableValues)}))}dispose(){this.toDispose.forEach((e=>{e.dispose()})),this.toDispose=[]}registerDisposable(e){this.toDispose.push(e)}showErrorMessage(e){this.wizardObject.message={text:e,level:r.window.MessageLevel.Error}}async close(){this.dispose(),this.wizardObject.close()}}},3333:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolsAndEulaPage=void 0;const r=n(235),i=n(857),o=n(4200),a=n(3767),s=n(1651),c=n(7982),l=n(4441),u=n(9146),p=o.loadMessageBundle(n(6928).join(__dirname,"ui/toolsAndEulaSettingsPage.ts"));class d extends l.ResourceTypePage{get toolsService(){return this.wizard.toolsService}constructor(e,t){super(p(0,null),"",e),this.optionValuesFilter=t,this.toolRefreshTimestamp=0,this._optionDropDownMap=new Map,this._installationInProgress=!1,this._tools=[],this._eulaValidationSucceeded=!1,this._isInitialized=!1,this._resourceType=e.resourceType}async onEnter(){this.wizard.wizardObject.generateScriptButton.hidden=!0,this.wizard.wizardObject.registerNavigationValidator((async e=>{for(let e=0;e<this._tools.length;e++)switch(this._tools[e].status){case"Installing":return this.wizard.wizardObject.message={text:s.getToolInstallingMessage(this._tools[e]),level:r.window.MessageLevel.Information},!1;case"Installed":continue;default:return this.wizard.wizardObject.message={text:p(1,null),level:r.window.MessageLevel.Error},!1}return this._eulaValidationSucceeded||await this.acquireEulaAndProceed()?(this.wizard.wizardObject.message={text:""},u.TelemetryReporter.createActionEvent(u.TelemetryView.ResourceTypeWizard,u.TelemetryAction.SelectedDeploymentType).withAdditionalProperties({resourceType:this._resourceType.name,provider:this.getCurrentProvider().name}).send(),!0):(this.wizard.wizardObject.message={text:p(2,null),level:r.window.MessageLevel.Error},!1)}))}initialize(){this._isInitialized||(this.pageObject.registerContent((e=>{this.view=e,this._optionsContainer=e.modelBuilder.flexContainer().withLayout({flexFlow:"column"}).component(),this._agreementContainer=e.modelBuilder.divContainer().component(),this._helpTextContainer=e.modelBuilder.divContainer().component();const t={value:s.toolText,width:105},n={value:s.descriptionText,width:270},r={value:s.statusText,width:70},i={value:s.versionText,width:75},o={value:s.requiredVersionText,width:105},a={value:s.discoverPathOrAdditionalInformationText,width:435};this._toolsTable=e.modelBuilder.table().withProps({data:[],columns:[t,n,r,i,o,a],width:1060,ariaLabel:s.requiredToolsText}).component();const l=e.modelBuilder.divContainer().withLayout({width:1060}).component();return l.addItem(this._toolsTable,{CSSStyles:{"border-left":"1px solid silver","border-top":"1px solid silver"}}),this._toolsLoadingComponent=e.modelBuilder.loadingComponent().withItem(l).withProps({loadingCompletedText:p(3,null),loadingText:p(4,null),showText:!0}).component(),this._installToolButton=e.modelBuilder.button().withProps({label:s.installToolsText,CSSStyles:{display:"none"},width:"100px",secondary:!0}).component(),this.wizard.registerDisposable(this._installToolButton.onDidClick((()=>{this.installTools().catch((e=>console.log(e)))}))),this.form=e.modelBuilder.formContainer().withFormItems([{component:this._helpTextContainer},{component:this._optionsContainer},{component:this._agreementContainer},{component:this._toolsLoadingComponent,title:s.requiredToolsText},{component:this._installToolButton}],{horizontal:!1}),e.initializeModel(this.form.withLayout({width:"100%"}).component()).then((()=>{if(this._agreementContainer.clearItems(),this._optionsContainer.clearItems(),this._optionDropDownMap.clear(),this._resourceType.options){let e=[];const t=this.view.modelBuilder.text().withProps({value:s.optionsText,CSSStyles:{"font-size":"14px",padding:"0"}}).component();this._optionsContainer.addItem(t),this._resourceType.options.forEach(((t,n)=>{let r=(0,c.deepClone)(t.values);const i=this.optionValuesFilter?.[this._resourceType.name]?.[t.name];i&&(r=r.filter((e=>i.includes(e.name))));const o=this.view.modelBuilder.text().withProps({value:t.displayName}).component();o.width="150px";const a=this.wizard.toolsEulaPagePresets?this.wizard.toolsEulaPagePresets[n]:r[0],s=this.view.modelBuilder.dropDown().withProps({values:r,value:a,width:"300px",ariaLabel:t.displayName}).component();e.push(a),this.wizard.registerDisposable(s.onValueChanged((async()=>{e[n].name!==s.value.name&&(e[n]=s.value,this.wizard.provider=this.getCurrentProvider(),await this.wizard.open())}))),this._optionDropDownMap.set(t.name,s),this.wizard.provider=this.getCurrentProvider();const l=this.view.modelBuilder.flexContainer().withItems([o,s],{flex:"0 0 auto",CSSStyles:{"margin-right":"20px"}}).withLayout({flexFlow:"row",alignItems:"center"}).component();this._optionsContainer.addItem(l)})),this.wizard.toolsEulaPagePresets=e}else this.form.removeFormItem({component:this._optionsContainer});const e=this._resourceType.getAgreementInfo(this.getSelectedOptions());if(e){if(this._resourceType.agreements){const e=this.view.modelBuilder.text().withProps({value:p(5,null),CSSStyles:{"font-size":"14px",padding:"0"}}).component();this._agreementContainer.addItem(e)}else this.form.removeFormItem({component:this._agreementContainer});this._agreementContainer.addItem(this.createAgreementCheckbox(e))}const t=this._resourceType.getHelpText(this.getSelectedOptions());t&&this._helpTextContainer.addItem(this.createHelpText(t)),this.updateOkButtonText(),this.updateToolsDisplayTable()}))})),this._isInitialized=!0)}createAgreementCheckbox(e){this._agreementCheckBox=this.view.modelBuilder.checkBox().withProps({ariaLabel:this.getAgreementDisplayText(e),required:!0}).component();const t=this.view.modelBuilder.text().withProps({value:e.template,links:e.links,requiredIndicator:!0}).component();return(0,a.createFlexContainer)(this.view,[this._agreementCheckBox,t])}createHelpText(e){const t=this.view.modelBuilder.text().withProps({value:e.template,links:e.links}).component();return(0,a.createFlexContainer)(this.view,[t])}getAgreementDisplayText(e){let t=e.template;for(let n=0;n<e.links.length;n++)t=t.replace(`{${n}}`,e.links[n].text);return t}async acquireEulaAndProceed(){this.wizard.wizardObject.message={text:""};let e=!0;for(const t of this._tools)if(e=await t.isEulaAccepted()||await t.promptForEula(),!e){this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:[t.statusDescription,this.wizard.wizardObject.message.text].join(i.EOL)};break}return e}getCurrentProvider(){const e=this.getSelectedOptions();return this._resourceType.getProvider(e)}getCurrentOkText(){return this._resourceType.getOkButtonText(this.getSelectedOptions())}getSelectedOptions(){const e=[];return this._optionDropDownMap.forEach(((t,n)=>{let r=t.value;e.push({option:n,value:r.name})})),e}updateOkButtonText(){let e=this.getCurrentOkText();this.wizard.wizardObject.doneButton.label=e||s.select}async installTools(){let e;this._installToolButton.enabled=!1,this._installationInProgress=!0;try{this.setDoneAndNextButtonEnabledState(!1);const t=this.toolRequirements;let n=[];for(let i=0;i<t.length;i++){const o=t[i];if(e=this.toolsService.getToolByName(o.name),e.autoInstallNeeded){if(this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:s.getToolInstallingMessage(e)},await this._tools[i].install(),"Installed"===e.status&&o.version&&!e.isSameOrNewerThan(o.version))throw new Error(p(6,null,e.displayName,e.homePage))}else"Installed"!==this._tools[i].status&&n.push(e)}0===n.length?(this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:p(7,null)},this.setDoneAndNextButtonEnabledState(!0)):this.wizard.wizardObject.message={level:r.window.MessageLevel.Information,text:p(8,null,n.map((e=>e.displayName)).join(","))}}catch(t){const n=e.statusDescription||(0,c.getErrorMessage)(t);n&&(this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:n}),e.showOutputChannel(!1)}finally{this._installationInProgress=!1}}updateToolsDisplayTableData(e){this._toolsTable.data=this._toolsTable.data.map((t=>t[0]===e.displayName?[e.displayName,e.description,e.displayStatus,e.fullVersion||"",t[4],e.installationPathOrAdditionalInformation||""]:t)),this.setUiControlsEnabled("Installing"!==e.status)}setUiControlsEnabled(e){this._agreementContainer.enabled=e,this._optionsContainer.enabled=e,this.wizard.wizardObject.cancelButton.enabled=e}async onLeave(){this.toolsService.toolsForCurrentProvider=this._tools}async areToolsEulaAccepted(){return this._eulaValidationSucceeded=(await Promise.all(this._tools.map((async e=>{const t=await e.isEulaAccepted();return t||(this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:[e.statusDescription,this.wizard.wizardObject.message.text].join(i.EOL)}),t})))).every((e=>e)),this._eulaValidationSucceeded}get toolRequirements(){return this.wizard.provider.requiredTools}executeToolsTableWorkflow(e,t){if(this.toolRefreshTimestamp!==e)return;let n=!1;const o=[];let a=t,c=!1;if(this._toolsTable.data=this.toolRequirements.map((e=>{const t=this.toolsService.getToolByName(e.name);return this.wizard.registerDisposable(t.onDidUpdateData((e=>{this.updateToolsDisplayTableData(e)}))),c=c||"Error"===t.status||"Failed"===t.status,"NotInstalled"===t.status?t.autoInstallSupported?o.push(t):a.push(p(9,null,t.displayName,t.homePage)):"Installed"===t.status&&e.version&&!t.isSameOrNewerThan(e.version)&&(n=!0,a.push(p(10,null,t.displayName,t.homePage))),[t.displayName,t.description,t.displayStatus,t.fullVersion||"",e.version||"",t.installationPathOrAdditionalInformation||""]})),this._installToolButton.updateProperties({CSSStyles:{display:c||n||0===o.length?"none":"inline"}}),this.setDoneAndNextButtonEnabledState(!c&&0===a.length&&!n&&0===o.length),0!==a.length)a.length>1&&(a=a.map((e=>`•\t${e}`))),a.push(p(11,null)),this.wizard.wizardObject.message={level:r.window.MessageLevel.Error,text:a.join(i.EOL)};else if(0===o.length||this._installationInProgress)this.areToolsEulaAccepted()||this.areToolsEulaAccepted().then((e=>{e||(this.wizard.wizardObject.doneButton.label=s.acceptEulaAndSelect,this.wizard.wizardObject.nextButton.label=s.acceptEulaAndSelect)}));else{let e=[1===o.length?p(12,null,o[0].displayName,this._installToolButton.label):p(13,null,o.map((e=>e.displayName)).join(", "),this._installToolButton.label)];const t=this._tools.reduce(((e,t)=>(t.autoInstallNeeded&&e.push(...t.dependencyMessages),e)),[]),n=new Set(t);n.size>0&&e.push(...n.values()),this.wizard.wizardObject.message={level:r.window.MessageLevel.Warning,text:e.join(i.EOL)}}this._toolsLoadingComponent.loading=!1}updateToolsDisplayTable(){this.toolRefreshTimestamp=(new Date).getTime();const e=this.toolRefreshTimestamp;if(this._toolsTable.height=25*Math.max(this.toolRequirements.length,1)+28,this._installationInProgress||(this.wizard.wizardObject.message={text:""}),this._installToolButton.updateProperties({CSSStyles:{display:"none"}}),0===this.toolRequirements.length)this._toolsLoadingComponent.loading=!1,this.setDoneAndNextButtonEnabledState(!0),this._toolsTable.data=[[p(14,null),""]],this._tools=[];else{this._tools=this.toolRequirements.map((e=>this.toolsService.getToolByName(e.name))),this._toolsLoadingComponent.loading=!0,this.setDoneAndNextButtonEnabledState(!1);let t=[];Promise.all(this._tools.map((e=>e.finishInitialization().catch((()=>t.push(`${e.displayName}:${e.statusDescription}`)))))).then((()=>this.executeToolsTableWorkflow(e,t))).catch((e=>console.log(e)))}}setDoneAndNextButtonEnabledState(e){this.wizard.wizardObject.doneButton.enabled=e,this.wizard.wizardObject.nextButton.enabled=e}}t.ToolsAndEulaPage=d},5354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateInputBoxComponent=t.createValidation=t.NotEqualValidation=t.GreaterThanOrEqualsValidation=t.LessThanOrEqualsValidation=t.Comparison=t.RegexValidation=t.IntegerValidation=t.Validation=void 0;const r=n(7982);class i{get target(){return this._target}get description(){return this._description}getValue(){return this._valueGetter()}getTargetValue(e){return this._targetValueGetter(e)}constructor(e,t,n,r,i){this._valueGetter=t,this._targetValueGetter=n,this._onTargetValidityChangedGetter=r,this._onNewDisposableCreated=i,this._description=e.description}}t.Validation=i;class o extends i{constructor(e,t){super(e,t)}async isIntegerOrEmptyOrUndefined(){const e=await this.getValue();return!!(0,r.isUndefinedOrEmpty)(e)||("string"==typeof e?Number.isInteger(parseFloat(e)):Number.isInteger(e))}async validate(){const e=await this.isIntegerOrEmptyOrUndefined();return{valid:e,message:e?void 0:this.description}}}t.IntegerValidation=o;class a extends i{get regex(){return this._regex}constructor(e,t){super(e,t),(0,r.throwUnless)(void 0!==e.regex),this._regex="string"==typeof e.regex?new RegExp(e.regex):e.regex}async validate(){const e=(await this.getValue())?.toString(),t=!!(0,r.isUndefinedOrEmpty)(e)||this.regex.test(e);return{valid:t,message:t?void 0:this.description}}}t.RegexValidation=a;class s extends i{get target(){return this._target}onTargetValidityChanged(e){const t=this._onTargetValidityChangedGetter(this.target);this._onNewDisposableCreated(t((t=>e(t))))}constructor(e,t,n,i,o){super(e,t,n,i,o),this._ensureOnTargetValidityChangeListenerAdded=!1,(0,r.throwUnless)(void 0!==e.target),this._target=e.target}validateOnTargetValidityChange(){this._ensureOnTargetValidityChangeListenerAdded||(this._ensureOnTargetValidityChangeListenerAdded=!0,this.onTargetValidityChanged((async e=>{e&&await this.validate()})))}async validate(){this.validateOnTargetValidityChange();const e=await this.isComparisonSuccessful();return{valid:e,message:e?void 0:this.description}}}t.Comparison=s;class c extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=await this.getTargetValue(this.target);return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e<=t}}t.LessThanOrEqualsValidation=c;class l extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=await this.getTargetValue(this.target);return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e>=t}}t.GreaterThanOrEqualsValidation=l;class u extends s{async isComparisonSuccessful(){const e=await this.getValue(),t=this.target;return!(!(0,r.isUndefinedOrEmpty)(e)&&!(0,r.isUndefinedOrEmpty)(t))||e.toString()!==t}}t.NotEqualValidation=u,t.createValidation=function(e,t,n,r,i){switch(e.type){case"regex_match":return new a(e,t);case"is_integer":return new o(e,t);case"<=":return new c(e,t,n,r,i);case">=":return new l(e,t,n,r,i);case"!=":return new u(e,t,n,r,i);default:throw new Error(`unknown validation type:${e.type}`)}},t.validateInputBoxComponent=async function(e,t=[]){let n=!0,r="";for(const e of t)if(!(await e.validate()).valid){n=!1,r=e.description;break}return(e.validationErrorMessage??"")!==r&&(e.validationErrorMessage=r),n}},2111:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageBase=void 0;const r=n(235);t.WizardPageBase=class{constructor(e,t,n){this._wizard=n,this._validators=[],this._page=r.window.createWizardPage(e),this._page.description=t}get pageObject(){return this._page}get wizard(){return this._wizard}async onEnter(e){}async onLeave(e){}get validators(){return this._validators}}},9110:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WizardPageInfo=void 0,t.WizardPageInfo=class{get pageCount(){return this._pageCount}get currentPageId(){return this._currentPageId}get isFirstPage(){return 0===this._currentPageId}get isLastPage(){return this._currentPageId===this._pageCount-1}constructor(e,t){this._currentPageId=e,this._pageCount=t}}},4597:e=>{"use strict";e.exports=require("applicationinsights-native-metrics")},235:e=>{"use strict";e.exports=require("azdata")},1398:e=>{"use strict";e.exports=require("vscode")},2613:e=>{"use strict";e.exports=require("assert")},290:e=>{"use strict";e.exports=require("async_hooks")},5317:e=>{"use strict";e.exports=require("child_process")},4236:e=>{"use strict";e.exports=require("console")},9140:e=>{"use strict";e.exports=require("constants")},6982:e=>{"use strict";e.exports=require("crypto")},2250:e=>{"use strict";e.exports=require("dns")},4434:e=>{"use strict";e.exports=require("events")},9896:e=>{"use strict";e.exports=require("fs")},8611:e=>{"use strict";e.exports=require("http")},5692:e=>{"use strict";e.exports=require("https")},3339:e=>{"use strict";e.exports=require("module")},9278:e=>{"use strict";e.exports=require("net")},857:e=>{"use strict";e.exports=require("os")},6928:e=>{"use strict";e.exports=require("path")},2987:e=>{"use strict";e.exports=require("perf_hooks")},2203:e=>{"use strict";e.exports=require("stream")},3557:e=>{"use strict";e.exports=require("timers")},2018:e=>{"use strict";e.exports=require("tty")},7016:e=>{"use strict";e.exports=require("url")},9023:e=>{"use strict";e.exports=require("util")},3106:e=>{"use strict";e.exports=require("zlib")},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},9329:(e,t,n)=>{"use strict";const r=n(737),i=n(7016),o=n(6504),a=n(8611),s=n(5692),c=n(9023),l=n(3164),u=n(3106),p=n(2203),d=n(4434);function f(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const h=f(r),m=f(i),v=f(a),g=f(s),b=f(c),y=f(l),_=f(u),x=f(p);function w(e,t){return function(){return e.apply(t,arguments)}}const{toString:E}=Object.prototype,{getPrototypeOf:A}=Object,S=(T=Object.create(null),e=>{const t=E.call(e);return T[t]||(T[t]=t.slice(8,-1).toLowerCase())});var T;const C=e=>(e=e.toLowerCase(),t=>S(t)===e),I=e=>t=>typeof t===e,{isArray:P}=Array,O=I("undefined"),N=C("ArrayBuffer"),R=I("string"),D=I("function"),k=I("number"),L=e=>null!==e&&"object"==typeof e,M=e=>{if("object"!==S(e))return!1;const t=A(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},j=C("Date"),z=C("File"),F=C("Blob"),B=C("FileList"),V=C("URLSearchParams"),[U,q,H,G]=["ReadableStream","Request","Response","Headers"].map(C);function $(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),P(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function W(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Q="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,K=e=>!O(e)&&e!==Q,X=(Y="undefined"!=typeof Uint8Array&&A(Uint8Array),e=>Y&&e instanceof Y);var Y;const J=C("HTMLFormElement"),Z=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ee=C("RegExp"),te=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};$(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},ne="abcdefghijklmnopqrstuvwxyz",re="0123456789",ie={DIGIT:re,ALPHA:ne,ALPHA_DIGIT:ne+ne.toUpperCase()+re},oe=C("AsyncFunction"),ae=(se="function"==typeof setImmediate,ce=D(Q.postMessage),se?setImmediate:ce?(le=`axios@${Math.random()}`,ue=[],Q.addEventListener("message",(({source:e,data:t})=>{e===Q&&t===le&&ue.length&&ue.shift()()}),!1),e=>{ue.push(e),Q.postMessage(le,"*")}):e=>setTimeout(e));var se,ce,le,ue;const pe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Q):"undefined"!=typeof process&&process.nextTick||ae,de={isArray:P,isArrayBuffer:N,isBuffer:function(e){return null!==e&&!O(e)&&null!==e.constructor&&!O(e.constructor)&&D(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||D(e.append)&&("formdata"===(t=S(e))||"object"===t&&D(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&N(e.buffer),t},isString:R,isNumber:k,isBoolean:e=>!0===e||!1===e,isObject:L,isPlainObject:M,isReadableStream:U,isRequest:q,isResponse:H,isHeaders:G,isUndefined:O,isDate:j,isFile:z,isBlob:F,isRegExp:ee,isFunction:D,isStream:e=>L(e)&&D(e.pipe),isURLSearchParams:V,isTypedArray:X,isFileList:B,forEach:$,merge:function e(){const{caseless:t}=K(this)&&this||{},n={},r=(r,i)=>{const o=t&&W(n,i)||i;M(n[o])&&M(r)?n[o]=e(n[o],r):M(r)?n[o]=e({},r):P(r)?n[o]=r.slice():n[o]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&$(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>($(t,((t,r)=>{n&&D(t)?e[r]=w(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&A(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:S,kindOfTest:C,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(P(e))return e;let t=e.length;if(!k(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:J,hasOwnProperty:Z,hasOwnProp:Z,reduceDescriptors:te,freezeMethods:e=>{te(e,((t,n)=>{if(D(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];D(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return P(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:W,global:Q,isContextDefined:K,ALPHABET:ie,generateString:(e=16,t=ie.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&D(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(L(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=P(e)?[]:{};return $(e,((e,t)=>{const o=n(e,r+1);!O(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:oe,isThenable:e=>e&&(L(e)||D(e))&&D(e.then)&&D(e.catch),setImmediate:ae,asap:pe};function fe(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}de.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:de.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const he=fe.prototype,me={};function ve(e){return de.isPlainObject(e)||de.isArray(e)}function ge(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function be(e,t,n){return e?e.concat(t).map((function(e,t){return e=ge(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{me[e]={value:e}})),Object.defineProperties(fe,me),Object.defineProperty(he,"isAxiosError",{value:!0}),fe.from=(e,t,n,r,i,o)=>{const a=Object.create(he);return de.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),fe.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};const ye=de.toFlatObject(de,{},null,(function(e){return/^is[A-Z]/.test(e)}));function _e(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new(h.default||FormData);const r=(n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!de.isUndefined(t[e])}))).metaTokens,i=n.visitor||l,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(i))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(de.isDate(e))return e.toISOString();if(!s&&de.isBlob(e))throw new fe("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(e)||de.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(de.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(de.isArray(e)&&function(e){return de.isArray(e)&&!e.some(ve)}(e)||(de.isFileList(e)||de.endsWith(n,"[]"))&&(s=de.toArray(e)))return n=ge(n),s.forEach((function(e,r){!de.isUndefined(e)&&null!==e&&t.append(!0===a?be([n],r,o):null===a?n:n+"[]",c(e))})),!1;return!!ve(e)||(t.append(be(i,n,o),c(e)),!1)}const u=[],p=Object.assign(ye,{defaultVisitor:l,convertValue:c,isVisitable:ve});if(!de.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!de.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),de.forEach(n,(function(n,o){!0===(!(de.isUndefined(n)||null===n)&&i.call(t,n,de.isString(o)?o.trim():o,r,p))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t}function xe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function we(e,t){this._pairs=[],e&&_e(e,this,t)}const Ee=we.prototype;function Ae(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Se(e,t,n){if(!t)return e;const r=n&&n.encode||Ae,i=n&&n.serialize;let o;if(o=i?i(t,n):de.isURLSearchParams(t)?t.toString():new we(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Ee.append=function(e,t){this._pairs.push([e,t])},Ee.toString=function(e){const t=e?function(t){return e.call(this,t,xe)}:xe;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};const Te=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){de.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},Ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ie={isNode:!0,classes:{URLSearchParams:m.default.URLSearchParams,FormData:h.default,Blob:"undefined"!=typeof Blob&&Blob||null},protocols:["http","https","file","data"]},Pe="undefined"!=typeof window&&"undefined"!=typeof document,Oe=(Ne="undefined"!=typeof navigator&&navigator.product,Pe&&["ReactNative","NativeScript","NS"].indexOf(Ne)<0);var Ne;const Re="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,De=Pe&&window.location.href||"http://localhost",ke={...Object.freeze({__proto__:null,hasBrowserEnv:Pe,hasStandardBrowserWebWorkerEnv:Re,hasStandardBrowserEnv:Oe,origin:De}),...Ie};function Le(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;return o=!o&&de.isArray(r)?r.length:o,s?(de.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&de.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&de.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,((e,r)=>{t(function(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const Me={transitional:Ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=de.isObject(e);if(i&&de.isHTMLForm(e)&&(e=new FormData(e)),de.isFormData(e))return r?JSON.stringify(Le(e)):e;if(de.isArrayBuffer(e)||de.isBuffer(e)||de.isStream(e)||de.isFile(e)||de.isBlob(e)||de.isReadableStream(e))return e;if(de.isArrayBufferView(e))return e.buffer;if(de.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return _e(e,new ke.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ke.isNode&&de.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=de.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return _e(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e){if(de.isString(e))try{return(0,JSON.parse)(e),de.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Me.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(de.isResponse(e)||de.isReadableStream(e))return e;if(e&&de.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw fe.from(e,fe.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ke.classes.FormData,Blob:ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],(e=>{Me.headers[e]={}}));const je=Me,ze=de.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Fe=Symbol("internals");function Be(e){return e&&String(e).trim().toLowerCase()}function Ve(e){return!1===e||null==e?e:de.isArray(e)?e.map(Ve):String(e)}function Ue(e,t,n,r,i){return de.isFunction(r)?r.call(this,t,n):(i&&(t=n),de.isString(t)?de.isString(r)?-1!==t.indexOf(r):de.isRegExp(r)?r.test(t):void 0:void 0)}class qe{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=Be(t);if(!i)throw new Error("header name must be a non-empty string");const o=de.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=Ve(e))}const o=(e,t)=>de.forEach(e,((e,n)=>i(e,n,t)));if(de.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(de.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&ze[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(de.isHeaders(e))for(const[t,r]of e.entries())i(r,t,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=Be(e)){const n=de.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(de.isFunction(t))return t.call(this,e,n);if(de.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Be(e)){const n=de.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ue(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=Be(e)){const i=de.findKey(n,e);!i||t&&!Ue(0,n[i],i,t)||(delete n[i],r=!0)}}return de.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!Ue(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return de.forEach(this,((r,i)=>{const o=de.findKey(n,i);if(o)return t[o]=Ve(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=Ve(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return de.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&de.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Fe]=this[Fe]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Be(e);t[r]||(function(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return de.isArray(e)?e.forEach(r):r(e),this}}qe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),de.reduceDescriptors(qe.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),de.freezeMethods(qe);const He=qe;function Ge(e,t){const n=this||je,r=t||n,i=He.from(r.headers);let o=r.data;return de.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function $e(e){return!(!e||!e.__CANCEL__)}function We(e,t,n){fe.call(this,null==e?"canceled":e,fe.ERR_CANCELED,t,n),this.name="CanceledError"}function Qe(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new fe("Request failed with status code "+n.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}function Ke(e,t){return e&&!function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}de.inherits(We,fe,{__CANCEL__:!0});const Xe="1.7.4";function Ye(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}const Je=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/,Ze=Symbol("internals");class et extends x.default.Transform{constructor(e){super({readableHighWaterMark:(e=de.toFlatObject(e,{maxRate:0,chunkSize:65536,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,((e,t)=>!de.isUndefined(t[e])))).chunkSize});const t=this[Ze]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",(e=>{"progress"===e&&(t.isCaptured||(t.isCaptured=!0))}))}_read(e){const t=this[Ze];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){const r=this[Ze],i=r.maxRate,o=this.readableHighWaterMark,a=r.timeWindow,s=i/(1e3/a),c=!1!==r.minChunkSize?Math.max(r.minChunkSize,.01*s):0,l=(e,t)=>{const n=Buffer.byteLength(e);r.bytesSeen+=n,r.bytes+=n,r.isCaptured&&this.emit("progress",r.bytesSeen),this.push(e)?process.nextTick(t):r.onReadCallback=()=>{r.onReadCallback=null,process.nextTick(t)}},u=(e,t)=>{const n=Buffer.byteLength(e);let u,p=null,d=o,f=0;if(i){const e=Date.now();(!r.ts||(f=e-r.ts)>=a)&&(r.ts=e,u=s-r.bytes,r.bytes=u<0?-u:0,f=0),u=s-r.bytes}if(i){if(u<=0)return setTimeout((()=>{t(null,e)}),a-f);u<d&&(d=u)}d&&n>d&&n-d>c&&(p=e.subarray(d),e=e.subarray(0,d)),l(e,p?()=>{process.nextTick(t,null,p)}:t)};u(e,(function e(t,r){if(t)return n(t);r?u(r,e):n(null)}))}}const tt=et,{asyncIterator:nt}=Symbol,rt=async function*(e){e.stream?yield*e.stream():e.arrayBuffer?yield await e.arrayBuffer():e[nt]?yield*e[nt]():yield e},it=de.ALPHABET.ALPHA_DIGIT+"-_",ot=new c.TextEncoder,at="\r\n",st=ot.encode(at);class ct{constructor(e,t){const{escapeName:n}=this.constructor,r=de.isString(t);let i=`Content-Disposition: form-data; name="${n(e)}"${!r&&t.name?`; filename="${n(t.name)}"`:""}${at}`;r?t=ot.encode(String(t).replace(/\r?\n|\r\n?/g,at)):i+=`Content-Type: ${t.type||"application/octet-stream"}${at}`,this.headers=ot.encode(i+at),this.contentLength=r?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+2,this.name=e,this.value=t}async*encode(){yield this.headers;const{value:e}=this;de.isTypedArray(e)?yield e:yield*rt(e),yield st}static escapeName(e){return String(e).replace(/[\r\n"]/g,(e=>({"\r":"%0D","\n":"%0A",'"':"%22"}[e])))}}class lt extends x.default.Transform{__transform(e,t,n){this.push(e),n()}_transform(e,t,n){if(0!==e.length&&(this._transform=this.__transform,120!==e[0])){const e=Buffer.alloc(2);e[0]=120,e[1]=156,this.push(e,t)}this.__transform(e,t,n)}}const ut=lt,pt=(e,t)=>de.isAsyncFn(e)?function(...n){const r=n.pop();e.apply(this,n).then((e=>{try{t?r(null,...t(e)):r(null,e)}catch(e){r(e)}}),r)}:e,dt=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const c=Date.now(),l=r[a];i||(i=c),n[o]=s,r[o]=c;let u=a,p=0;for(;u!==o;)p+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),c-i<t)return;const d=l&&c-l;return d?Math.round(1e3*p/d):void 0}}(50,250);return function(e,t){let n,r,i=0,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,c=i(s);r=o,e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&o<=a?(a-o)/c:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},ft=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},ht=e=>(...t)=>de.asap((()=>e(...t))),mt={flush:_.default.constants.Z_SYNC_FLUSH,finishFlush:_.default.constants.Z_SYNC_FLUSH},vt={flush:_.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:_.default.constants.BROTLI_OPERATION_FLUSH},gt=de.isFunction(_.default.createBrotliDecompress),{http:bt,https:yt}=y.default,_t=/https:?/,xt=ke.protocols.map((e=>e+":")),wt=(e,[t,n])=>(e.on("end",n).on("error",n),t);function Et(e,t){e.beforeRedirects.proxy&&e.beforeRedirects.proxy(e),e.beforeRedirects.config&&e.beforeRedirects.config(e,t)}function At(e,t,n){let r=t;if(!r&&!1!==r){const e=o.getProxyForUrl(n);e&&(r=new URL(e))}if(r){if(r.username&&(r.auth=(r.username||"")+":"+(r.password||"")),r.auth){(r.auth.username||r.auth.password)&&(r.auth=(r.auth.username||"")+":"+(r.auth.password||""));const t=Buffer.from(r.auth,"utf8").toString("base64");e.headers["Proxy-Authorization"]="Basic "+t}e.headers.host=e.hostname+(e.port?":"+e.port:"");const t=r.hostname||r.host;e.hostname=t,e.host=t,e.port=r.port,e.path=n,r.protocol&&(e.protocol=r.protocol.includes(":")?r.protocol:`${r.protocol}:`)}e.beforeRedirects.proxy=function(e){At(e,t,e.href)}}const St="undefined"!=typeof process&&"process"===de.kindOf(process),Tt=(e,t)=>(({address:e,family:t})=>{if(!de.isString(e))throw TypeError("address must be a string");return{address:e,family:t||(e.indexOf(".")<0?6:4)}})(de.isObject(e)?e:{address:e,family:t}),Ct=St&&function(e){return t=async function(t,n,r){let{data:i,lookup:o,family:a}=e;const{responseType:s,responseEncoding:c}=e,l=e.method.toUpperCase();let u,f,h=!1;if(o){const e=pt(o,(e=>de.isArray(e)?e:[e]));o=(t,n,r)=>{e(t,n,((e,t,i)=>{if(e)return r(e);const o=de.isArray(t)?t.map((e=>Tt(e))):[Tt(t,i)];n.all?r(e,o):r(e,o[0].address,o[0].family)}))}}const m=new d.EventEmitter,y=()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),m.removeAllListeners()};function w(t){m.emit("abort",!t||t.type?new We(null,e,f):t)}r(((e,t)=>{u=!0,t&&(h=!0,y())})),m.once("abort",n),(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w)));const E=Ke(e.baseURL,e.url),A=new URL(E,de.hasBrowserEnv?ke.origin:void 0),S=A.protocol||xt[0];if("data:"===S){let r;if("GET"!==l)return Qe(t,n,{status:405,statusText:"method not allowed",headers:{},config:e});try{r=function(e,t,n){const r=n&&n.Blob||ke.classes.Blob,i=Ye(e);if(void 0===t&&r&&(t=!0),"data"===i){e=i.length?e.slice(i.length+1):e;const n=Je.exec(e);if(!n)throw new fe("Invalid URL",fe.ERR_INVALID_URL);const o=n[1],a=n[2],s=n[3],c=Buffer.from(decodeURIComponent(s),a?"base64":"utf8");if(t){if(!r)throw new fe("Blob is not supported",fe.ERR_NOT_SUPPORT);return new r([c],{type:o})}return c}throw new fe("Unsupported protocol "+i,fe.ERR_NOT_SUPPORT)}(e.url,"blob"===s,{Blob:e.env&&e.env.Blob})}catch(t){throw fe.from(t,fe.ERR_BAD_REQUEST,e)}return"text"===s?(r=r.toString(c),c&&"utf8"!==c||(r=de.stripBOM(r))):"stream"===s&&(r=x.default.Readable.from(r)),Qe(t,n,{data:r,status:200,statusText:"OK",headers:new He,config:e})}if(-1===xt.indexOf(S))return n(new fe("Unsupported protocol "+S,fe.ERR_BAD_REQUEST,e));const T=He.from(e.headers).normalize();T.set("User-Agent","axios/"+Xe,!1);const{onUploadProgress:C,onDownloadProgress:I}=e,P=e.maxRate;let O,N;if(de.isSpecCompliantForm(i)){const e=T.getContentType(/boundary=([-_\w\d]{10,70})/i);i=((e,t,n)=>{const{tag:r="form-data-boundary",size:i=25,boundary:o=r+"-"+de.generateString(i,it)}=n||{};if(!de.isFormData(e))throw TypeError("FormData instance required");if(o.length<1||o.length>70)throw Error("boundary must be 10-70 characters long");const a=ot.encode("--"+o+at),s=ot.encode("--"+o+"--"+at+at);let c=s.byteLength;const l=Array.from(e.entries()).map((([e,t])=>{const n=new ct(e,t);return c+=n.size,n}));c+=a.byteLength*l.length,c=de.toFiniteNumber(c);const u={"Content-Type":`multipart/form-data; boundary=${o}`};return Number.isFinite(c)&&(u["Content-Length"]=c),t&&t(u),p.Readable.from(async function*(){for(const e of l)yield a,yield*e.encode();yield s}())})(i,(e=>{T.set(e)}),{tag:`axios-${Xe}-boundary`,boundary:e&&e[1]||void 0})}else if(de.isFormData(i)&&de.isFunction(i.getHeaders)){if(T.set(i.getHeaders()),!T.hasContentLength())try{const e=await b.default.promisify(i.getLength).call(i);Number.isFinite(e)&&e>=0&&T.setContentLength(e)}catch(e){}}else if(de.isBlob(i))i.size&&T.setContentType(i.type||"application/octet-stream"),T.setContentLength(i.size||0),i=x.default.Readable.from(rt(i));else if(i&&!de.isStream(i)){if(Buffer.isBuffer(i));else if(de.isArrayBuffer(i))i=Buffer.from(new Uint8Array(i));else{if(!de.isString(i))return n(new fe("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",fe.ERR_BAD_REQUEST,e));i=Buffer.from(i,"utf-8")}if(T.setContentLength(i.length,!1),e.maxBodyLength>-1&&i.length>e.maxBodyLength)return n(new fe("Request body larger than maxBodyLength limit",fe.ERR_BAD_REQUEST,e))}const R=de.toFiniteNumber(T.getContentLength());let D,k;de.isArray(P)?(O=P[0],N=P[1]):O=N=P,i&&(C||O)&&(de.isStream(i)||(i=x.default.Readable.from(i,{objectMode:!1})),i=x.default.pipeline([i,new tt({maxRate:de.toFiniteNumber(O)})],de.noop),C&&i.on("progress",wt(i,ft(R,dt(ht(C),!1,3))))),e.auth&&(D=(e.auth.username||"")+":"+(e.auth.password||"")),!D&&A.username&&(D=A.username+":"+A.password),D&&T.delete("authorization");try{k=Se(A.pathname+A.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(t){const r=new Error(t.message);return r.config=e,r.url=e.url,r.exists=!0,n(r)}T.set("Accept-Encoding","gzip, compress, deflate"+(gt?", br":""),!1);const L={path:k,method:l,headers:T.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:D,protocol:S,family:a,beforeRedirect:Et,beforeRedirects:{}};let M;!de.isUndefined(o)&&(L.lookup=o),e.socketPath?L.socketPath=e.socketPath:(L.hostname=A.hostname,L.port=A.port,At(L,e.proxy,S+"//"+A.hostname+(A.port?":"+A.port:"")+L.path));const j=_t.test(L.protocol);if(L.agent=j?e.httpsAgent:e.httpAgent,e.transport?M=e.transport:0===e.maxRedirects?M=j?g.default:v.default:(e.maxRedirects&&(L.maxRedirects=e.maxRedirects),e.beforeRedirect&&(L.beforeRedirects.config=e.beforeRedirect),M=j?yt:bt),e.maxBodyLength>-1?L.maxBodyLength=e.maxBodyLength:L.maxBodyLength=1/0,e.insecureHTTPParser&&(L.insecureHTTPParser=e.insecureHTTPParser),f=M.request(L,(function(r){if(f.destroyed)return;const i=[r],o=+r.headers["content-length"];if(I||N){const e=new tt({maxRate:de.toFiniteNumber(N)});I&&e.on("progress",wt(e,ft(o,dt(ht(I),!0,3)))),i.push(e)}let a=r;const u=r.req||f;if(!1!==e.decompress&&r.headers["content-encoding"])switch("HEAD"!==l&&204!==r.statusCode||delete r.headers["content-encoding"],(r.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":i.push(_.default.createUnzip(mt)),delete r.headers["content-encoding"];break;case"deflate":i.push(new ut),i.push(_.default.createUnzip(mt)),delete r.headers["content-encoding"];break;case"br":gt&&(i.push(_.default.createBrotliDecompress(vt)),delete r.headers["content-encoding"])}a=i.length>1?x.default.pipeline(i,de.noop):i[0];const p=x.default.finished(a,(()=>{p(),y()})),d={status:r.statusCode,statusText:r.statusMessage,headers:new He(r.headers),config:e,request:u};if("stream"===s)d.data=a,Qe(t,n,d);else{const r=[];let i=0;a.on("data",(function(t){r.push(t),i+=t.length,e.maxContentLength>-1&&i>e.maxContentLength&&(h=!0,a.destroy(),n(new fe("maxContentLength size of "+e.maxContentLength+" exceeded",fe.ERR_BAD_RESPONSE,e,u)))})),a.on("aborted",(function(){if(h)return;const t=new fe("maxContentLength size of "+e.maxContentLength+" exceeded",fe.ERR_BAD_RESPONSE,e,u);a.destroy(t),n(t)})),a.on("error",(function(t){f.destroyed||n(fe.from(t,null,e,u))})),a.on("end",(function(){try{let e=1===r.length?r[0]:Buffer.concat(r);"arraybuffer"!==s&&(e=e.toString(c),c&&"utf8"!==c||(e=de.stripBOM(e))),d.data=e}catch(t){return n(fe.from(t,null,e,d.request,d))}Qe(t,n,d)}))}m.once("abort",(e=>{a.destroyed||(a.emit("error",e),a.destroy())}))})),m.once("abort",(e=>{n(e),f.destroy(e)})),f.on("error",(function(t){n(fe.from(t,null,e,f))})),f.on("socket",(function(e){e.setKeepAlive(!0,6e4)})),e.timeout){const t=parseInt(e.timeout,10);if(Number.isNaN(t))return void n(new fe("error trying to parse `config.timeout` to int",fe.ERR_BAD_OPTION_VALUE,e,f));f.setTimeout(t,(function(){if(u)return;let t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const r=e.transitional||Ce;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new fe(t,r.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,f)),w()}))}if(de.isStream(i)){let t=!1,n=!1;i.on("end",(()=>{t=!0})),i.once("error",(e=>{n=!0,f.destroy(e)})),i.on("close",(()=>{t||n||w(new We("Request stream has been aborted",e,f))})),i.pipe(f)}else f.end(i)},new Promise(((e,n)=>{let r,i;const o=(e,t)=>{i||(i=!0,r&&r(e,t))},a=e=>{o(e,!0),n(e)};t((t=>{o(t),e(t)}),a,(e=>r=e)).catch(a)}));var t},It=ke.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=de.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return!0},Pt=ke.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];de.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),de.isString(r)&&a.push("path="+r),de.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}},Ot=e=>e instanceof He?{...e}:e;function Nt(e,t){t=t||{};const n={};function r(e,t,n){return de.isPlainObject(e)&&de.isPlainObject(t)?de.merge.call({caseless:n},e,t):de.isPlainObject(t)?de.merge({},t):de.isArray(t)?t.slice():t}function i(e,t,n){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!de.isUndefined(t))return r(void 0,t)}function a(e,t){return de.isUndefined(t)?de.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const c={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Ot(e),Ot(t),!0)};return de.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=c[r]||i,a=o(e[r],t[r],r);de.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Rt=e=>{const t=Nt({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:c}=t;if(t.headers=s=He.from(s),t.url=Se(Ke(t.baseURL,t.url),e.params,e.paramsSerializer),c&&s.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),de.isFormData(r))if(ke.hasStandardBrowserEnv||ke.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(ke.hasStandardBrowserEnv&&(i&&de.isFunction(i)&&(i=i(t)),i||!1!==i&&It(t.url))){const e=o&&a&&Pt.read(a);e&&s.set(o,e)}return t},Dt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Rt(e);let i=r.data;const o=He.from(r.headers).normalize();let a,s,c,l,u,{responseType:p,onUploadProgress:d,onDownloadProgress:f}=r;function h(){l&&l(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function v(){if(!m)return;const r=He.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Qe((function(e){t(e),h()}),(function(e){n(e),h()}),{data:p&&"text"!==p&&"json"!==p?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=v:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(v)},m.onabort=function(){m&&(n(new fe("Request aborted",fe.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new fe("Network Error",fe.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new fe(t,i.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&de.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),de.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),p&&"json"!==p&&(m.responseType=r.responseType),f&&([c,u]=dt(f,!0),m.addEventListener("progress",c)),d&&m.upload&&([s,l]=dt(d),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",l)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new We(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const g=Ye(r.url);g&&-1===ke.protocols.indexOf(g)?n(new fe("Unsupported protocol "+g+":",fe.ERR_BAD_REQUEST,e)):m.send(i||null)}))},kt=(e,t)=>{let n,r=new AbortController;const i=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof fe?t:new We(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{i(new fe(`timeout ${t} of ms exceeded`,fe.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",i):e.unsubscribe(i))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},Lt=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Mt=(e,t,n,r,i)=>{const o=async function*(e,t,n){for await(const r of e)yield*Lt(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,i);let a,s=0,c=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return c(),void e.close();let i=r.byteLength;if(n){let e=s+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),o.return())},{highWaterMark:2})},jt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,zt=jt&&"function"==typeof ReadableStream,Ft=jt&&("function"==typeof TextEncoder?(Bt=new TextEncoder,e=>Bt.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Bt;const Vt=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Ut=zt&&Vt((()=>{let e=!1;const t=new Request(ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),qt=zt&&Vt((()=>de.isReadableStream(new Response("").body))),Ht={stream:qt&&(e=>e.body)};var Gt;jt&&(Gt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ht[e]&&(Ht[e]=de.isFunction(Gt[e])?t=>t[e]():(t,n)=>{throw new fe(`Response type '${e}' is not supported`,fe.ERR_NOT_SUPPORT,n)})})));const $t=jt&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:c,responseType:l,headers:u,withCredentials:p="same-origin",fetchOptions:d}=Rt(e);l=l?(l+"").toLowerCase():"text";let f,h,[m,v]=i||o||a?kt([i,o],a):[];const g=()=>{!f&&setTimeout((()=>{m&&m.unsubscribe()})),f=!0};let b;try{if(c&&Ut&&"get"!==n&&"head"!==n&&0!==(b=await(async(e,t)=>{const n=de.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:de.isBlob(e)?e.size:de.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:de.isArrayBufferView(e)||de.isArrayBuffer(e)?e.byteLength:(de.isURLSearchParams(e)&&(e+=""),de.isString(e)?(await Ft(e)).byteLength:void 0))(t):n})(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(de.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=ft(b,dt(ht(c)));r=Mt(n.body,65536,e,t,Ft)}}de.isString(p)||(p=p?"include":"omit"),h=new Request(t,{...d,signal:m,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:p});let i=await fetch(h);const o=qt&&("stream"===l||"response"===l);if(qt&&(s||o)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=de.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&ft(t,dt(ht(s),!0))||[];i=new Response(Mt(i.body,65536,n,(()=>{r&&r(),o&&g()}),Ft),e)}l=l||"text";let a=await Ht[de.findKey(Ht,l)||"text"](i,e);return!o&&g(),v&&v(),await new Promise(((t,n)=>{Qe(t,n,{data:a,headers:He.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:h})}))}catch(t){if(g(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new fe("Network Error",fe.ERR_NETWORK,e,h),{cause:t.cause||t});throw fe.from(t,t&&t.code,e,h)}}),Wt={http:Ct,xhr:Dt,fetch:$t};de.forEach(Wt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qt=e=>`- ${e}`,Kt=e=>de.isFunction(e)||null===e||!1===e,Xt=e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Kt(n)&&(r=Wt[(t=String(n)).toLowerCase()],void 0===r))throw new fe(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new fe("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qt).join("\n"):" "+Qt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Yt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new We(null,e)}function Jt(e){return Yt(e),e.headers=He.from(e.headers),e.data=Ge.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Xt(e.adapter||je.adapter)(e).then((function(t){return Yt(e),t.data=Ge.call(e,e.transformResponse,t),t.headers=He.from(t.headers),t}),(function(t){return $e(t)||(Yt(e),t&&t.response&&(t.response.data=Ge.call(e,e.transformResponse,t.response),t.response.headers=He.from(t.response.headers))),Promise.reject(t)}))}const Zt={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Zt[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const en={};Zt.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new fe(r(i," has been removed"+(t?" in "+t:"")),fe.ERR_DEPRECATED);return t&&!en[i]&&(en[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const tn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new fe("options must be an object",fe.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new fe("option "+o+" must be "+n,fe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new fe("Unknown option "+o,fe.ERR_BAD_OPTION)}},validators:Zt},nn=tn.validators;class rn{constructor(e){this.defaults=e,this.interceptors={request:new Te,response:new Te}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t;Error.captureStackTrace?Error.captureStackTrace(t={}):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Nt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&tn.assertOptions(n,{silentJSONParsing:nn.transitional(nn.boolean),forcedJSONParsing:nn.transitional(nn.boolean),clarifyTimeoutError:nn.transitional(nn.boolean)},!1),null!=r&&(de.isFunction(r)?t.paramsSerializer={serialize:r}:tn.assertOptions(r,{encode:nn.function,serialize:nn.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&de.merge(i.common,i[t.method]);i&&de.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=He.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const c=[];let l;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let u,p=0;if(!s){const e=[Jt.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,c),u=e.length,l=Promise.resolve(t);p<u;)l=l.then(e[p++],e[p++]);return l}u=a.length;let d=t;for(p=0;p<u;){const e=a[p++],t=a[p++];try{d=e(d)}catch(e){t.call(this,e);break}}try{l=Jt.call(this,d)}catch(e){return Promise.reject(e)}for(p=0,u=c.length;p<u;)l=l.then(c[p++],c[p++]);return l}getUri(e){return Se(Ke((e=Nt(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}de.forEach(["delete","get","head","options"],(function(e){rn.prototype[e]=function(t,n){return this.request(Nt(n||{},{method:e,url:t,data:(n||{}).data}))}})),de.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Nt(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}rn.prototype[e]=t(),rn.prototype[e+"Form"]=t(!0)}));const on=rn;class an{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,i){n.reason||(n.reason=new We(e,r,i),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new an((function(t){e=t})),cancel:e}}}const sn=an,cn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(cn).forEach((([e,t])=>{cn[t]=e}));const ln=cn,un=function e(t){const n=new on(t),r=w(on.prototype.request,n);return de.extend(r,on.prototype,n,{allOwnKeys:!0}),de.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Nt(t,n))},r}(je);un.Axios=on,un.CanceledError=We,un.CancelToken=sn,un.isCancel=$e,un.VERSION=Xe,un.toFormData=_e,un.AxiosError=fe,un.Cancel=un.CanceledError,un.all=function(e){return Promise.all(e)},un.spread=function(e){return function(t){return e.apply(null,t)}},un.isAxiosError=function(e){return de.isObject(e)&&!0===e.isAxiosError},un.mergeConfig=Nt,un.AxiosHeaders=He,un.formToJSON=e=>Le(de.isHTMLForm(e)?new FormData(e):e),un.getAdapter=Xt,un.HttpStatusCode=ln,un.default=un,e.exports=un},1813:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"application/aml":{"source":"iana"},"application/andrew-inset":{"source":"iana","extensions":["ez"]},"application/applefile":{"source":"iana"},"application/applixware":{"source":"apache","extensions":["aw"]},"application/at+jwt":{"source":"iana"},"application/atf":{"source":"iana"},"application/atfx":{"source":"iana"},"application/atom+xml":{"source":"iana","compressible":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":["cdfx"]},"application/cdmi-capability":{"source":"iana","extensions":["cdmia"]},"application/cdmi-container":{"source":"iana","extensions":["cdmic"]},"application/cdmi-domain":{"source":"iana","extensions":["cdmid"]},"application/cdmi-object":{"source":"iana","extensions":["cdmio"]},"application/cdmi-queue":{"source":"iana","extensions":["cdmiq"]},"application/cdni":{"source":"iana"},"application/cea":{"source":"iana"},"application/cea-2018+xml":{"source":"iana","compressible":true},"application/cellml+xml":{"source":"iana","compressible":true},"application/cfw":{"source":"iana"},"application/city+json":{"source":"iana","compressible":true},"application/clr":{"source":"iana"},"application/clue+xml":{"source":"iana","compressible":true},"application/clue_info+xml":{"source":"iana","compressible":true},"application/cms":{"source":"iana"},"application/cnrp+xml":{"source":"iana","compressible":true},"application/coap-group+json":{"source":"iana","compressible":true},"application/coap-payload":{"source":"iana"},"application/commonground":{"source":"iana"},"application/conference-info+xml":{"source":"iana","compressible":true},"application/cose":{"source":"iana"},"application/cose-key":{"source":"iana"},"application/cose-key-set":{"source":"iana"},"application/cpl+xml":{"source":"iana","compressible":true,"extensions":["cpl"]},"application/csrattrs":{"source":"iana"},"application/csta+xml":{"source":"iana","compressible":true},"application/cstadata+xml":{"source":"iana","compressible":true},"application/csvm+json":{"source":"iana","compressible":true},"application/cu-seeme":{"source":"apache","extensions":["cu"]},"application/cwt":{"source":"iana"},"application/cybercash":{"source":"iana"},"application/dart":{"compressible":true},"application/dash+xml":{"source":"iana","compressible":true,"extensions":["mpd"]},"application/dash-patch+xml":{"source":"iana","compressible":true,"extensions":["mpp"]},"application/dashdelta":{"source":"iana"},"application/davmount+xml":{"source":"iana","compressible":true,"extensions":["davmount"]},"application/dca-rft":{"source":"iana"},"application/dcd":{"source":"iana"},"application/dec-dx":{"source":"iana"},"application/dialog-info+xml":{"source":"iana","compressible":true},"application/dicom":{"source":"iana"},"application/dicom+json":{"source":"iana","compressible":true},"application/dicom+xml":{"source":"iana","compressible":true},"application/dii":{"source":"iana"},"application/dit":{"source":"iana"},"application/dns":{"source":"iana"},"application/dns+json":{"source":"iana","compressible":true},"application/dns-message":{"source":"iana"},"application/docbook+xml":{"source":"apache","compressible":true,"extensions":["dbk"]},"application/dots+cbor":{"source":"iana"},"application/dskpp+xml":{"source":"iana","compressible":true},"application/dssc+der":{"source":"iana","extensions":["dssc"]},"application/dssc+xml":{"source":"iana","compressible":true,"extensions":["xdssc"]},"application/dvcs":{"source":"iana"},"application/ecmascript":{"source":"iana","compressible":true,"extensions":["es","ecma"]},"application/edi-consent":{"source":"iana"},"application/edi-x12":{"source":"iana","compressible":false},"application/edifact":{"source":"iana","compressible":false},"application/efi":{"source":"iana"},"application/elm+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/elm+xml":{"source":"iana","compressible":true},"application/emergencycalldata.cap+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/emergencycalldata.comment+xml":{"source":"iana","compressible":true},"application/emergencycalldata.control+xml":{"source":"iana","compressible":true},"application/emergencycalldata.deviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.ecall.msd":{"source":"iana"},"application/emergencycalldata.providerinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.serviceinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.subscriberinfo+xml":{"source":"iana","compressible":true},"application/emergencycalldata.veds+xml":{"source":"iana","compressible":true},"application/emma+xml":{"source":"iana","compressible":true,"extensions":["emma"]},"application/emotionml+xml":{"source":"iana","compressible":true,"extensions":["emotionml"]},"application/encaprtp":{"source":"iana"},"application/epp+xml":{"source":"iana","compressible":true},"application/epub+zip":{"source":"iana","compressible":false,"extensions":["epub"]},"application/eshop":{"source":"iana"},"application/exi":{"source":"iana","extensions":["exi"]},"application/expect-ct-report+json":{"source":"iana","compressible":true},"application/express":{"source":"iana","extensions":["exp"]},"application/fastinfoset":{"source":"iana"},"application/fastsoap":{"source":"iana"},"application/fdt+xml":{"source":"iana","compressible":true,"extensions":["fdt"]},"application/fhir+json":{"source":"iana","charset":"UTF-8","compressible":true},"application/fhir+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/fido.trusted-apps+json":{"compressible":true},"application/fits":{"source":"iana"},"application/flexfec":{"source":"iana"},"application/font-sfnt":{"source":"iana"},"application/font-tdpfr":{"source":"iana","extensions":["pfr"]},"application/font-woff":{"source":"iana","compressible":false},"application/framework-attributes+xml":{"source":"iana","compressible":true},"application/geo+json":{"source":"iana","compressible":true,"extensions":["geojson"]},"application/geo+json-seq":{"source":"iana"},"application/geopackage+sqlite3":{"source":"iana"},"application/geoxacml+xml":{"source":"iana","compressible":true},"application/gltf-buffer":{"source":"iana"},"application/gml+xml":{"source":"iana","compressible":true,"extensions":["gml"]},"application/gpx+xml":{"source":"apache","compressible":true,"extensions":["gpx"]},"application/gxf":{"source":"apache","extensions":["gxf"]},"application/gzip":{"source":"iana","compressible":false,"extensions":["gz"]},"application/h224":{"source":"iana"},"application/held+xml":{"source":"iana","compressible":true},"application/hjson":{"extensions":["hjson"]},"application/http":{"source":"iana"},"application/hyperstudio":{"source":"iana","extensions":["stk"]},"application/ibe-key-request+xml":{"source":"iana","compressible":true},"application/ibe-pkg-reply+xml":{"source":"iana","compressible":true},"application/ibe-pp-data":{"source":"iana"},"application/iges":{"source":"iana"},"application/im-iscomposing+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/index":{"source":"iana"},"application/index.cmd":{"source":"iana"},"application/index.obj":{"source":"iana"},"application/index.response":{"source":"iana"},"application/index.vnd":{"source":"iana"},"application/inkml+xml":{"source":"iana","compressible":true,"extensions":["ink","inkml"]},"application/iotp":{"source":"iana"},"application/ipfix":{"source":"iana","extensions":["ipfix"]},"application/ipp":{"source":"iana"},"application/isup":{"source":"iana"},"application/its+xml":{"source":"iana","compressible":true,"extensions":["its"]},"application/java-archive":{"source":"apache","compressible":false,"extensions":["jar","war","ear"]},"application/java-serialized-object":{"source":"apache","compressible":false,"extensions":["ser"]},"application/java-vm":{"source":"apache","compressible":false,"extensions":["class"]},"application/javascript":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["js","mjs"]},"application/jf2feed+json":{"source":"iana","compressible":true},"application/jose":{"source":"iana"},"application/jose+json":{"source":"iana","compressible":true},"application/jrd+json":{"source":"iana","compressible":true},"application/jscalendar+json":{"source":"iana","compressible":true},"application/json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["json","map"]},"application/json-patch+json":{"source":"iana","compressible":true},"application/json-seq":{"source":"iana"},"application/json5":{"extensions":["json5"]},"application/jsonml+json":{"source":"apache","compressible":true,"extensions":["jsonml"]},"application/jwk+json":{"source":"iana","compressible":true},"application/jwk-set+json":{"source":"iana","compressible":true},"application/jwt":{"source":"iana"},"application/kpml-request+xml":{"source":"iana","compressible":true},"application/kpml-response+xml":{"source":"iana","compressible":true},"application/ld+json":{"source":"iana","compressible":true,"extensions":["jsonld"]},"application/lgr+xml":{"source":"iana","compressible":true,"extensions":["lgr"]},"application/link-format":{"source":"iana"},"application/load-control+xml":{"source":"iana","compressible":true},"application/lost+xml":{"source":"iana","compressible":true,"extensions":["lostxml"]},"application/lostsync+xml":{"source":"iana","compressible":true},"application/lpf+zip":{"source":"iana","compressible":false},"application/lxf":{"source":"iana"},"application/mac-binhex40":{"source":"iana","extensions":["hqx"]},"application/mac-compactpro":{"source":"apache","extensions":["cpt"]},"application/macwriteii":{"source":"iana"},"application/mads+xml":{"source":"iana","compressible":true,"extensions":["mads"]},"application/manifest+json":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["webmanifest"]},"application/marc":{"source":"iana","extensions":["mrc"]},"application/marcxml+xml":{"source":"iana","compressible":true,"extensions":["mrcx"]},"application/mathematica":{"source":"iana","extensions":["ma","nb","mb"]},"application/mathml+xml":{"source":"iana","compressible":true,"extensions":["mathml"]},"application/mathml-content+xml":{"source":"iana","compressible":true},"application/mathml-presentation+xml":{"source":"iana","compressible":true},"application/mbms-associated-procedure-description+xml":{"source":"iana","compressible":true},"application/mbms-deregister+xml":{"source":"iana","compressible":true},"application/mbms-envelope+xml":{"source":"iana","compressible":true},"application/mbms-msk+xml":{"source":"iana","compressible":true},"application/mbms-msk-response+xml":{"source":"iana","compressible":true},"application/mbms-protection-description+xml":{"source":"iana","compressible":true},"application/mbms-reception-report+xml":{"source":"iana","compressible":true},"application/mbms-register+xml":{"source":"iana","compressible":true},"application/mbms-register-response+xml":{"source":"iana","compressible":true},"application/mbms-schedule+xml":{"source":"iana","compressible":true},"application/mbms-user-service-description+xml":{"source":"iana","compressible":true},"application/mbox":{"source":"iana","extensions":["mbox"]},"application/media-policy-dataset+xml":{"source":"iana","compressible":true,"extensions":["mpf"]},"application/media_control+xml":{"source":"iana","compressible":true},"application/mediaservercontrol+xml":{"source":"iana","compressible":true,"extensions":["mscml"]},"application/merge-patch+json":{"source":"iana","compressible":true},"application/metalink+xml":{"source":"apache","compressible":true,"extensions":["metalink"]},"application/metalink4+xml":{"source":"iana","compressible":true,"extensions":["meta4"]},"application/mets+xml":{"source":"iana","compressible":true,"extensions":["mets"]},"application/mf4":{"source":"iana"},"application/mikey":{"source":"iana"},"application/mipc":{"source":"iana"},"application/missing-blocks+cbor-seq":{"source":"iana"},"application/mmt-aei+xml":{"source":"iana","compressible":true,"extensions":["maei"]},"application/mmt-usd+xml":{"source":"iana","compressible":true,"extensions":["musd"]},"application/mods+xml":{"source":"iana","compressible":true,"extensions":["mods"]},"application/moss-keys":{"source":"iana"},"application/moss-signature":{"source":"iana"},"application/mosskey-data":{"source":"iana"},"application/mosskey-request":{"source":"iana"},"application/mp21":{"source":"iana","extensions":["m21","mp21"]},"application/mp4":{"source":"iana","extensions":["mp4s","m4p"]},"application/mpeg4-generic":{"source":"iana"},"application/mpeg4-iod":{"source":"iana"},"application/mpeg4-iod-xmt":{"source":"iana"},"application/mrb-consumer+xml":{"source":"iana","compressible":true},"application/mrb-publish+xml":{"source":"iana","compressible":true},"application/msc-ivr+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msc-mixer+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/msword":{"source":"iana","compressible":false,"extensions":["doc","dot"]},"application/mud+json":{"source":"iana","compressible":true},"application/multipart-core":{"source":"iana"},"application/mxf":{"source":"iana","extensions":["mxf"]},"application/n-quads":{"source":"iana","extensions":["nq"]},"application/n-triples":{"source":"iana","extensions":["nt"]},"application/nasdata":{"source":"iana"},"application/news-checkgroups":{"source":"iana","charset":"US-ASCII"},"application/news-groupinfo":{"source":"iana","charset":"US-ASCII"},"application/news-transmission":{"source":"iana"},"application/nlsml+xml":{"source":"iana","compressible":true},"application/node":{"source":"iana","extensions":["cjs"]},"application/nss":{"source":"iana"},"application/oauth-authz-req+jwt":{"source":"iana"},"application/oblivious-dns-message":{"source":"iana"},"application/ocsp-request":{"source":"iana"},"application/ocsp-response":{"source":"iana"},"application/octet-stream":{"source":"iana","compressible":false,"extensions":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{"source":"iana","extensions":["oda"]},"application/odm+xml":{"source":"iana","compressible":true},"application/odx":{"source":"iana"},"application/oebps-package+xml":{"source":"iana","compressible":true,"extensions":["opf"]},"application/ogg":{"source":"iana","compressible":false,"extensions":["ogx"]},"application/omdoc+xml":{"source":"apache","compressible":true,"extensions":["omdoc"]},"application/onenote":{"source":"apache","extensions":["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{"source":"iana","compressible":true},"application/oscore":{"source":"iana"},"application/oxps":{"source":"iana","extensions":["oxps"]},"application/p21":{"source":"iana"},"application/p21+zip":{"source":"iana","compressible":false},"application/p2p-overlay+xml":{"source":"iana","compressible":true,"extensions":["relo"]},"application/parityfec":{"source":"iana"},"application/passport":{"source":"iana"},"application/patch-ops-error+xml":{"source":"iana","compressible":true,"extensions":["xer"]},"application/pdf":{"source":"iana","compressible":false,"extensions":["pdf"]},"application/pdx":{"source":"iana"},"application/pem-certificate-chain":{"source":"iana"},"application/pgp-encrypted":{"source":"iana","compressible":false,"extensions":["pgp"]},"application/pgp-keys":{"source":"iana","extensions":["asc"]},"application/pgp-signature":{"source":"iana","extensions":["asc","sig"]},"application/pics-rules":{"source":"apache","extensions":["prf"]},"application/pidf+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pidf-diff+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/pkcs10":{"source":"iana","extensions":["p10"]},"application/pkcs12":{"source":"iana"},"application/pkcs7-mime":{"source":"iana","extensions":["p7m","p7c"]},"application/pkcs7-signature":{"source":"iana","extensions":["p7s"]},"application/pkcs8":{"source":"iana","extensions":["p8"]},"application/pkcs8-encrypted":{"source":"iana"},"application/pkix-attr-cert":{"source":"iana","extensions":["ac"]},"application/pkix-cert":{"source":"iana","extensions":["cer"]},"application/pkix-crl":{"source":"iana","extensions":["crl"]},"application/pkix-pkipath":{"source":"iana","extensions":["pkipath"]},"application/pkixcmp":{"source":"iana","extensions":["pki"]},"application/pls+xml":{"source":"iana","compressible":true,"extensions":["pls"]},"application/poc-settings+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/postscript":{"source":"iana","compressible":true,"extensions":["ai","eps","ps"]},"application/ppsp-tracker+json":{"source":"iana","compressible":true},"application/problem+json":{"source":"iana","compressible":true},"application/problem+xml":{"source":"iana","compressible":true},"application/provenance+xml":{"source":"iana","compressible":true,"extensions":["provx"]},"application/prs.alvestrand.titrax-sheet":{"source":"iana"},"application/prs.cww":{"source":"iana","extensions":["cww"]},"application/prs.cyn":{"source":"iana","charset":"7-BIT"},"application/prs.hpub+zip":{"source":"iana","compressible":false},"application/prs.nprend":{"source":"iana"},"application/prs.plucker":{"source":"iana"},"application/prs.rdf-xml-crypt":{"source":"iana"},"application/prs.xsf+xml":{"source":"iana","compressible":true},"application/pskc+xml":{"source":"iana","compressible":true,"extensions":["pskcxml"]},"application/pvd+json":{"source":"iana","compressible":true},"application/qsig":{"source":"iana"},"application/raml+yaml":{"compressible":true,"extensions":["raml"]},"application/raptorfec":{"source":"iana"},"application/rdap+json":{"source":"iana","compressible":true},"application/rdf+xml":{"source":"iana","compressible":true,"extensions":["rdf","owl"]},"application/reginfo+xml":{"source":"iana","compressible":true,"extensions":["rif"]},"application/relax-ng-compact-syntax":{"source":"iana","extensions":["rnc"]},"application/remote-printing":{"source":"iana"},"application/reputon+json":{"source":"iana","compressible":true},"application/resource-lists+xml":{"source":"iana","compressible":true,"extensions":["rl"]},"application/resource-lists-diff+xml":{"source":"iana","compressible":true,"extensions":["rld"]},"application/rfc+xml":{"source":"iana","compressible":true},"application/riscos":{"source":"iana"},"application/rlmi+xml":{"source":"iana","compressible":true},"application/rls-services+xml":{"source":"iana","compressible":true,"extensions":["rs"]},"application/route-apd+xml":{"source":"iana","compressible":true,"extensions":["rapd"]},"application/route-s-tsid+xml":{"source":"iana","compressible":true,"extensions":["sls"]},"application/route-usd+xml":{"source":"iana","compressible":true,"extensions":["rusd"]},"application/rpki-ghostbusters":{"source":"iana","extensions":["gbr"]},"application/rpki-manifest":{"source":"iana","extensions":["mft"]},"application/rpki-publication":{"source":"iana"},"application/rpki-roa":{"source":"iana","extensions":["roa"]},"application/rpki-updown":{"source":"iana"},"application/rsd+xml":{"source":"apache","compressible":true,"extensions":["rsd"]},"application/rss+xml":{"source":"apache","compressible":true,"extensions":["rss"]},"application/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"application/rtploopback":{"source":"iana"},"application/rtx":{"source":"iana"},"application/samlassertion+xml":{"source":"iana","compressible":true},"application/samlmetadata+xml":{"source":"iana","compressible":true},"application/sarif+json":{"source":"iana","compressible":true},"application/sarif-external-properties+json":{"source":"iana","compressible":true},"application/sbe":{"source":"iana"},"application/sbml+xml":{"source":"iana","compressible":true,"extensions":["sbml"]},"application/scaip+xml":{"source":"iana","compressible":true},"application/scim+json":{"source":"iana","compressible":true},"application/scvp-cv-request":{"source":"iana","extensions":["scq"]},"application/scvp-cv-response":{"source":"iana","extensions":["scs"]},"application/scvp-vp-request":{"source":"iana","extensions":["spq"]},"application/scvp-vp-response":{"source":"iana","extensions":["spp"]},"application/sdp":{"source":"iana","extensions":["sdp"]},"application/secevent+jwt":{"source":"iana"},"application/senml+cbor":{"source":"iana"},"application/senml+json":{"source":"iana","compressible":true},"application/senml+xml":{"source":"iana","compressible":true,"extensions":["senmlx"]},"application/senml-etch+cbor":{"source":"iana"},"application/senml-etch+json":{"source":"iana","compressible":true},"application/senml-exi":{"source":"iana"},"application/sensml+cbor":{"source":"iana"},"application/sensml+json":{"source":"iana","compressible":true},"application/sensml+xml":{"source":"iana","compressible":true,"extensions":["sensmlx"]},"application/sensml-exi":{"source":"iana"},"application/sep+xml":{"source":"iana","compressible":true},"application/sep-exi":{"source":"iana"},"application/session-info":{"source":"iana"},"application/set-payment":{"source":"iana"},"application/set-payment-initiation":{"source":"iana","extensions":["setpay"]},"application/set-registration":{"source":"iana"},"application/set-registration-initiation":{"source":"iana","extensions":["setreg"]},"application/sgml":{"source":"iana"},"application/sgml-open-catalog":{"source":"iana"},"application/shf+xml":{"source":"iana","compressible":true,"extensions":["shf"]},"application/sieve":{"source":"iana","extensions":["siv","sieve"]},"application/simple-filter+xml":{"source":"iana","compressible":true},"application/simple-message-summary":{"source":"iana"},"application/simplesymbolcontainer":{"source":"iana"},"application/sipc":{"source":"iana"},"application/slate":{"source":"iana"},"application/smil":{"source":"iana"},"application/smil+xml":{"source":"iana","compressible":true,"extensions":["smi","smil"]},"application/smpte336m":{"source":"iana"},"application/soap+fastinfoset":{"source":"iana"},"application/soap+xml":{"source":"iana","compressible":true},"application/sparql-query":{"source":"iana","extensions":["rq"]},"application/sparql-results+xml":{"source":"iana","compressible":true,"extensions":["srx"]},"application/spdx+json":{"source":"iana","compressible":true},"application/spirits-event+xml":{"source":"iana","compressible":true},"application/sql":{"source":"iana"},"application/srgs":{"source":"iana","extensions":["gram"]},"application/srgs+xml":{"source":"iana","compressible":true,"extensions":["grxml"]},"application/sru+xml":{"source":"iana","compressible":true,"extensions":["sru"]},"application/ssdl+xml":{"source":"apache","compressible":true,"extensions":["ssdl"]},"application/ssml+xml":{"source":"iana","compressible":true,"extensions":["ssml"]},"application/stix+json":{"source":"iana","compressible":true},"application/swid+xml":{"source":"iana","compressible":true,"extensions":["swidtag"]},"application/tamp-apex-update":{"source":"iana"},"application/tamp-apex-update-confirm":{"source":"iana"},"application/tamp-community-update":{"source":"iana"},"application/tamp-community-update-confirm":{"source":"iana"},"application/tamp-error":{"source":"iana"},"application/tamp-sequence-adjust":{"source":"iana"},"application/tamp-sequence-adjust-confirm":{"source":"iana"},"application/tamp-status-query":{"source":"iana"},"application/tamp-status-response":{"source":"iana"},"application/tamp-update":{"source":"iana"},"application/tamp-update-confirm":{"source":"iana"},"application/tar":{"compressible":true},"application/taxii+json":{"source":"iana","compressible":true},"application/td+json":{"source":"iana","compressible":true},"application/tei+xml":{"source":"iana","compressible":true,"extensions":["tei","teicorpus"]},"application/tetra_isi":{"source":"iana"},"application/thraud+xml":{"source":"iana","compressible":true,"extensions":["tfi"]},"application/timestamp-query":{"source":"iana"},"application/timestamp-reply":{"source":"iana"},"application/timestamped-data":{"source":"iana","extensions":["tsd"]},"application/tlsrpt+gzip":{"source":"iana"},"application/tlsrpt+json":{"source":"iana","compressible":true},"application/tnauthlist":{"source":"iana"},"application/token-introspection+jwt":{"source":"iana"},"application/toml":{"compressible":true,"extensions":["toml"]},"application/trickle-ice-sdpfrag":{"source":"iana"},"application/trig":{"source":"iana","extensions":["trig"]},"application/ttml+xml":{"source":"iana","compressible":true,"extensions":["ttml"]},"application/tve-trigger":{"source":"iana"},"application/tzif":{"source":"iana"},"application/tzif-leap":{"source":"iana"},"application/ubjson":{"compressible":false,"extensions":["ubj"]},"application/ulpfec":{"source":"iana"},"application/urc-grpsheet+xml":{"source":"iana","compressible":true},"application/urc-ressheet+xml":{"source":"iana","compressible":true,"extensions":["rsheet"]},"application/urc-targetdesc+xml":{"source":"iana","compressible":true,"extensions":["td"]},"application/urc-uisocketdesc+xml":{"source":"iana","compressible":true},"application/vcard+json":{"source":"iana","compressible":true},"application/vcard+xml":{"source":"iana","compressible":true},"application/vemmi":{"source":"iana"},"application/vividence.scriptfile":{"source":"apache"},"application/vnd.1000minds.decision-model+xml":{"source":"iana","compressible":true,"extensions":["1km"]},"application/vnd.3gpp-prose+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-prose-pc3ch+xml":{"source":"iana","compressible":true},"application/vnd.3gpp-v2x-local-service-information":{"source":"iana"},"application/vnd.3gpp.5gnas":{"source":"iana"},"application/vnd.3gpp.access-transfer-events+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.bsf+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gmop+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.gtpc":{"source":"iana"},"application/vnd.3gpp.interworking-data":{"source":"iana"},"application/vnd.3gpp.lpp":{"source":"iana"},"application/vnd.3gpp.mc-signalling-ear":{"source":"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-payload":{"source":"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-signalling":{"source":"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcdata-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-floor-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-signed+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-ue-init-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcptt-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-location-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-service-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-transmission-request+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-ue-config+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mcvideo-user-profile+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.mid-call+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ngap":{"source":"iana"},"application/vnd.3gpp.pfcp":{"source":"iana"},"application/vnd.3gpp.pic-bw-large":{"source":"iana","extensions":["plb"]},"application/vnd.3gpp.pic-bw-small":{"source":"iana","extensions":["psb"]},"application/vnd.3gpp.pic-bw-var":{"source":"iana","extensions":["pvb"]},"application/vnd.3gpp.s1ap":{"source":"iana"},"application/vnd.3gpp.sms":{"source":"iana"},"application/vnd.3gpp.sms+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-ext+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.srvcc-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.state-and-event-info+xml":{"source":"iana","compressible":true},"application/vnd.3gpp.ussd+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.bcmcsinfo+xml":{"source":"iana","compressible":true},"application/vnd.3gpp2.sms":{"source":"iana"},"application/vnd.3gpp2.tcap":{"source":"iana","extensions":["tcap"]},"application/vnd.3lightssoftware.imagescal":{"source":"iana"},"application/vnd.3m.post-it-notes":{"source":"iana","extensions":["pwn"]},"application/vnd.accpac.simply.aso":{"source":"iana","extensions":["aso"]},"application/vnd.accpac.simply.imp":{"source":"iana","extensions":["imp"]},"application/vnd.acucobol":{"source":"iana","extensions":["acu"]},"application/vnd.acucorp":{"source":"iana","extensions":["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{"source":"apache","compressible":false,"extensions":["air"]},"application/vnd.adobe.flash.movie":{"source":"iana"},"application/vnd.adobe.formscentral.fcdt":{"source":"iana","extensions":["fcdt"]},"application/vnd.adobe.fxp":{"source":"iana","extensions":["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{"source":"iana"},"application/vnd.adobe.xdp+xml":{"source":"iana","compressible":true,"extensions":["xdp"]},"application/vnd.adobe.xfdf":{"source":"iana","extensions":["xfdf"]},"application/vnd.aether.imp":{"source":"iana"},"application/vnd.afpc.afplinedata":{"source":"iana"},"application/vnd.afpc.afplinedata-pagedef":{"source":"iana"},"application/vnd.afpc.cmoca-cmresource":{"source":"iana"},"application/vnd.afpc.foca-charset":{"source":"iana"},"application/vnd.afpc.foca-codedfont":{"source":"iana"},"application/vnd.afpc.foca-codepage":{"source":"iana"},"application/vnd.afpc.modca":{"source":"iana"},"application/vnd.afpc.modca-cmtable":{"source":"iana"},"application/vnd.afpc.modca-formdef":{"source":"iana"},"application/vnd.afpc.modca-mediummap":{"source":"iana"},"application/vnd.afpc.modca-objectcontainer":{"source":"iana"},"application/vnd.afpc.modca-overlay":{"source":"iana"},"application/vnd.afpc.modca-pagesegment":{"source":"iana"},"application/vnd.age":{"source":"iana","extensions":["age"]},"application/vnd.ah-barcode":{"source":"iana"},"application/vnd.ahead.space":{"source":"iana","extensions":["ahead"]},"application/vnd.airzip.filesecure.azf":{"source":"iana","extensions":["azf"]},"application/vnd.airzip.filesecure.azs":{"source":"iana","extensions":["azs"]},"application/vnd.amadeus+json":{"source":"iana","compressible":true},"application/vnd.amazon.ebook":{"source":"apache","extensions":["azw"]},"application/vnd.amazon.mobi8-ebook":{"source":"iana"},"application/vnd.americandynamics.acc":{"source":"iana","extensions":["acc"]},"application/vnd.amiga.ami":{"source":"iana","extensions":["ami"]},"application/vnd.amundsen.maze+xml":{"source":"iana","compressible":true},"application/vnd.android.ota":{"source":"iana"},"application/vnd.android.package-archive":{"source":"apache","compressible":false,"extensions":["apk"]},"application/vnd.anki":{"source":"iana"},"application/vnd.anser-web-certificate-issue-initiation":{"source":"iana","extensions":["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{"source":"apache","extensions":["fti"]},"application/vnd.antix.game-component":{"source":"iana","extensions":["atx"]},"application/vnd.apache.arrow.file":{"source":"iana"},"application/vnd.apache.arrow.stream":{"source":"iana"},"application/vnd.apache.thrift.binary":{"source":"iana"},"application/vnd.apache.thrift.compact":{"source":"iana"},"application/vnd.apache.thrift.json":{"source":"iana"},"application/vnd.api+json":{"source":"iana","compressible":true},"application/vnd.aplextor.warrp+json":{"source":"iana","compressible":true},"application/vnd.apothekende.reservation+json":{"source":"iana","compressible":true},"application/vnd.apple.installer+xml":{"source":"iana","compressible":true,"extensions":["mpkg"]},"application/vnd.apple.keynote":{"source":"iana","extensions":["key"]},"application/vnd.apple.mpegurl":{"source":"iana","extensions":["m3u8"]},"application/vnd.apple.numbers":{"source":"iana","extensions":["numbers"]},"application/vnd.apple.pages":{"source":"iana","extensions":["pages"]},"application/vnd.apple.pkpass":{"compressible":false,"extensions":["pkpass"]},"application/vnd.arastra.swi":{"source":"iana"},"application/vnd.aristanetworks.swi":{"source":"iana","extensions":["swi"]},"application/vnd.artisan+json":{"source":"iana","compressible":true},"application/vnd.artsquare":{"source":"iana"},"application/vnd.astraea-software.iota":{"source":"iana","extensions":["iota"]},"application/vnd.audiograph":{"source":"iana","extensions":["aep"]},"application/vnd.autopackage":{"source":"iana"},"application/vnd.avalon+json":{"source":"iana","compressible":true},"application/vnd.avistar+xml":{"source":"iana","compressible":true},"application/vnd.balsamiq.bmml+xml":{"source":"iana","compressible":true,"extensions":["bmml"]},"application/vnd.balsamiq.bmpr":{"source":"iana"},"application/vnd.banana-accounting":{"source":"iana"},"application/vnd.bbf.usp.error":{"source":"iana"},"application/vnd.bbf.usp.msg":{"source":"iana"},"application/vnd.bbf.usp.msg+json":{"source":"iana","compressible":true},"application/vnd.bekitzur-stech+json":{"source":"iana","compressible":true},"application/vnd.bint.med-content":{"source":"iana"},"application/vnd.biopax.rdf+xml":{"source":"iana","compressible":true},"application/vnd.blink-idb-value-wrapper":{"source":"iana"},"application/vnd.blueice.multipass":{"source":"iana","extensions":["mpm"]},"application/vnd.bluetooth.ep.oob":{"source":"iana"},"application/vnd.bluetooth.le.oob":{"source":"iana"},"application/vnd.bmi":{"source":"iana","extensions":["bmi"]},"application/vnd.bpf":{"source":"iana"},"application/vnd.bpf3":{"source":"iana"},"application/vnd.businessobjects":{"source":"iana","extensions":["rep"]},"application/vnd.byu.uapi+json":{"source":"iana","compressible":true},"application/vnd.cab-jscript":{"source":"iana"},"application/vnd.canon-cpdl":{"source":"iana"},"application/vnd.canon-lips":{"source":"iana"},"application/vnd.capasystems-pg+json":{"source":"iana","compressible":true},"application/vnd.cendio.thinlinc.clientconf":{"source":"iana"},"application/vnd.century-systems.tcp_stream":{"source":"iana"},"application/vnd.chemdraw+xml":{"source":"iana","compressible":true,"extensions":["cdxml"]},"application/vnd.chess-pgn":{"source":"iana"},"application/vnd.chipnuts.karaoke-mmd":{"source":"iana","extensions":["mmd"]},"application/vnd.ciedi":{"source":"iana"},"application/vnd.cinderella":{"source":"iana","extensions":["cdy"]},"application/vnd.cirpack.isdn-ext":{"source":"iana"},"application/vnd.citationstyles.style+xml":{"source":"iana","compressible":true,"extensions":["csl"]},"application/vnd.claymore":{"source":"iana","extensions":["cla"]},"application/vnd.cloanto.rp9":{"source":"iana","extensions":["rp9"]},"application/vnd.clonk.c4group":{"source":"iana","extensions":["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{"source":"iana","extensions":["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{"source":"iana","extensions":["c11amz"]},"application/vnd.coffeescript":{"source":"iana"},"application/vnd.collabio.xodocuments.document":{"source":"iana"},"application/vnd.collabio.xodocuments.document-template":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation":{"source":"iana"},"application/vnd.collabio.xodocuments.presentation-template":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{"source":"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{"source":"iana"},"application/vnd.collection+json":{"source":"iana","compressible":true},"application/vnd.collection.doc+json":{"source":"iana","compressible":true},"application/vnd.collection.next+json":{"source":"iana","compressible":true},"application/vnd.comicbook+zip":{"source":"iana","compressible":false},"application/vnd.comicbook-rar":{"source":"iana"},"application/vnd.commerce-battelle":{"source":"iana"},"application/vnd.commonspace":{"source":"iana","extensions":["csp"]},"application/vnd.contact.cmsg":{"source":"iana","extensions":["cdbcmsg"]},"application/vnd.coreos.ignition+json":{"source":"iana","compressible":true},"application/vnd.cosmocaller":{"source":"iana","extensions":["cmc"]},"application/vnd.crick.clicker":{"source":"iana","extensions":["clkx"]},"application/vnd.crick.clicker.keyboard":{"source":"iana","extensions":["clkk"]},"application/vnd.crick.clicker.palette":{"source":"iana","extensions":["clkp"]},"application/vnd.crick.clicker.template":{"source":"iana","extensions":["clkt"]},"application/vnd.crick.clicker.wordbank":{"source":"iana","extensions":["clkw"]},"application/vnd.criticaltools.wbs+xml":{"source":"iana","compressible":true,"extensions":["wbs"]},"application/vnd.cryptii.pipe+json":{"source":"iana","compressible":true},"application/vnd.crypto-shade-file":{"source":"iana"},"application/vnd.cryptomator.encrypted":{"source":"iana"},"application/vnd.cryptomator.vault":{"source":"iana"},"application/vnd.ctc-posml":{"source":"iana","extensions":["pml"]},"application/vnd.ctct.ws+xml":{"source":"iana","compressible":true},"application/vnd.cups-pdf":{"source":"iana"},"application/vnd.cups-postscript":{"source":"iana"},"application/vnd.cups-ppd":{"source":"iana","extensions":["ppd"]},"application/vnd.cups-raster":{"source":"iana"},"application/vnd.cups-raw":{"source":"iana"},"application/vnd.curl":{"source":"iana"},"application/vnd.curl.car":{"source":"apache","extensions":["car"]},"application/vnd.curl.pcurl":{"source":"apache","extensions":["pcurl"]},"application/vnd.cyan.dean.root+xml":{"source":"iana","compressible":true},"application/vnd.cybank":{"source":"iana"},"application/vnd.cyclonedx+json":{"source":"iana","compressible":true},"application/vnd.cyclonedx+xml":{"source":"iana","compressible":true},"application/vnd.d2l.coursepackage1p0+zip":{"source":"iana","compressible":false},"application/vnd.d3m-dataset":{"source":"iana"},"application/vnd.d3m-problem":{"source":"iana"},"application/vnd.dart":{"source":"iana","compressible":true,"extensions":["dart"]},"application/vnd.data-vision.rdz":{"source":"iana","extensions":["rdz"]},"application/vnd.datapackage+json":{"source":"iana","compressible":true},"application/vnd.dataresource+json":{"source":"iana","compressible":true},"application/vnd.dbf":{"source":"iana","extensions":["dbf"]},"application/vnd.debian.binary-package":{"source":"iana"},"application/vnd.dece.data":{"source":"iana","extensions":["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{"source":"iana","compressible":true,"extensions":["uvt","uvvt"]},"application/vnd.dece.unspecified":{"source":"iana","extensions":["uvx","uvvx"]},"application/vnd.dece.zip":{"source":"iana","extensions":["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{"source":"iana","extensions":["fe_launch"]},"application/vnd.desmume.movie":{"source":"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{"source":"iana"},"application/vnd.dm.delegation+xml":{"source":"iana","compressible":true},"application/vnd.dna":{"source":"iana","extensions":["dna"]},"application/vnd.document+json":{"source":"iana","compressible":true},"application/vnd.dolby.mlp":{"source":"apache","extensions":["mlp"]},"application/vnd.dolby.mobile.1":{"source":"iana"},"application/vnd.dolby.mobile.2":{"source":"iana"},"application/vnd.doremir.scorecloud-binary-document":{"source":"iana"},"application/vnd.dpgraph":{"source":"iana","extensions":["dpg"]},"application/vnd.dreamfactory":{"source":"iana","extensions":["dfac"]},"application/vnd.drive+json":{"source":"iana","compressible":true},"application/vnd.ds-keypoint":{"source":"apache","extensions":["kpxx"]},"application/vnd.dtg.local":{"source":"iana"},"application/vnd.dtg.local.flash":{"source":"iana"},"application/vnd.dtg.local.html":{"source":"iana"},"application/vnd.dvb.ait":{"source":"iana","extensions":["ait"]},"application/vnd.dvb.dvbisl+xml":{"source":"iana","compressible":true},"application/vnd.dvb.dvbj":{"source":"iana"},"application/vnd.dvb.esgcontainer":{"source":"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess":{"source":"iana"},"application/vnd.dvb.ipdcesgaccess2":{"source":"iana"},"application/vnd.dvb.ipdcesgpdd":{"source":"iana"},"application/vnd.dvb.ipdcroaming":{"source":"iana"},"application/vnd.dvb.iptv.alfec-base":{"source":"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{"source":"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-container+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-generic+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-msglist+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-request+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-ia-registration-response+xml":{"source":"iana","compressible":true},"application/vnd.dvb.notif-init+xml":{"source":"iana","compressible":true},"application/vnd.dvb.pfr":{"source":"iana"},"application/vnd.dvb.service":{"source":"iana","extensions":["svc"]},"application/vnd.dxr":{"source":"iana"},"application/vnd.dynageo":{"source":"iana","extensions":["geo"]},"application/vnd.dzr":{"source":"iana"},"application/vnd.easykaraoke.cdgdownload":{"source":"iana"},"application/vnd.ecdis-update":{"source":"iana"},"application/vnd.ecip.rlp":{"source":"iana"},"application/vnd.eclipse.ditto+json":{"source":"iana","compressible":true},"application/vnd.ecowin.chart":{"source":"iana","extensions":["mag"]},"application/vnd.ecowin.filerequest":{"source":"iana"},"application/vnd.ecowin.fileupdate":{"source":"iana"},"application/vnd.ecowin.series":{"source":"iana"},"application/vnd.ecowin.seriesrequest":{"source":"iana"},"application/vnd.ecowin.seriesupdate":{"source":"iana"},"application/vnd.efi.img":{"source":"iana"},"application/vnd.efi.iso":{"source":"iana"},"application/vnd.emclient.accessrequest+xml":{"source":"iana","compressible":true},"application/vnd.enliven":{"source":"iana","extensions":["nml"]},"application/vnd.enphase.envoy":{"source":"iana"},"application/vnd.eprints.data+xml":{"source":"iana","compressible":true},"application/vnd.epson.esf":{"source":"iana","extensions":["esf"]},"application/vnd.epson.msf":{"source":"iana","extensions":["msf"]},"application/vnd.epson.quickanime":{"source":"iana","extensions":["qam"]},"application/vnd.epson.salt":{"source":"iana","extensions":["slt"]},"application/vnd.epson.ssf":{"source":"iana","extensions":["ssf"]},"application/vnd.ericsson.quickcall":{"source":"iana"},"application/vnd.espass-espass+zip":{"source":"iana","compressible":false},"application/vnd.eszigno3+xml":{"source":"iana","compressible":true,"extensions":["es3","et3"]},"application/vnd.etsi.aoc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.asic-e+zip":{"source":"iana","compressible":false},"application/vnd.etsi.asic-s+zip":{"source":"iana","compressible":false},"application/vnd.etsi.cug+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvcommand+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-bc+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-cod+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsad-npvr+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvservice+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvsync+xml":{"source":"iana","compressible":true},"application/vnd.etsi.iptvueprofile+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mcid+xml":{"source":"iana","compressible":true},"application/vnd.etsi.mheg5":{"source":"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{"source":"iana","compressible":true},"application/vnd.etsi.pstn+xml":{"source":"iana","compressible":true},"application/vnd.etsi.sci+xml":{"source":"iana","compressible":true},"application/vnd.etsi.simservs+xml":{"source":"iana","compressible":true},"application/vnd.etsi.timestamp-token":{"source":"iana"},"application/vnd.etsi.tsl+xml":{"source":"iana","compressible":true},"application/vnd.etsi.tsl.der":{"source":"iana"},"application/vnd.eu.kasparian.car+json":{"source":"iana","compressible":true},"application/vnd.eudora.data":{"source":"iana"},"application/vnd.evolv.ecig.profile":{"source":"iana"},"application/vnd.evolv.ecig.settings":{"source":"iana"},"application/vnd.evolv.ecig.theme":{"source":"iana"},"application/vnd.exstream-empower+zip":{"source":"iana","compressible":false},"application/vnd.exstream-package":{"source":"iana"},"application/vnd.ezpix-album":{"source":"iana","extensions":["ez2"]},"application/vnd.ezpix-package":{"source":"iana","extensions":["ez3"]},"application/vnd.f-secure.mobile":{"source":"iana"},"application/vnd.familysearch.gedcom+zip":{"source":"iana","compressible":false},"application/vnd.fastcopy-disk-image":{"source":"iana"},"application/vnd.fdf":{"source":"iana","extensions":["fdf"]},"application/vnd.fdsn.mseed":{"source":"iana","extensions":["mseed"]},"application/vnd.fdsn.seed":{"source":"iana","extensions":["seed","dataless"]},"application/vnd.ffsns":{"source":"iana"},"application/vnd.ficlab.flb+zip":{"source":"iana","compressible":false},"application/vnd.filmit.zfc":{"source":"iana"},"application/vnd.fints":{"source":"iana"},"application/vnd.firemonkeys.cloudcell":{"source":"iana"},"application/vnd.flographit":{"source":"iana","extensions":["gph"]},"application/vnd.fluxtime.clip":{"source":"iana","extensions":["ftc"]},"application/vnd.font-fontforge-sfd":{"source":"iana"},"application/vnd.framemaker":{"source":"iana","extensions":["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{"source":"iana","extensions":["fnc"]},"application/vnd.frogans.ltf":{"source":"iana","extensions":["ltf"]},"application/vnd.fsc.weblaunch":{"source":"iana","extensions":["fsc"]},"application/vnd.fujifilm.fb.docuworks":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{"source":"iana"},"application/vnd.fujifilm.fb.docuworks.container":{"source":"iana"},"application/vnd.fujifilm.fb.jfi+xml":{"source":"iana","compressible":true},"application/vnd.fujitsu.oasys":{"source":"iana","extensions":["oas"]},"application/vnd.fujitsu.oasys2":{"source":"iana","extensions":["oa2"]},"application/vnd.fujitsu.oasys3":{"source":"iana","extensions":["oa3"]},"application/vnd.fujitsu.oasysgp":{"source":"iana","extensions":["fg5"]},"application/vnd.fujitsu.oasysprs":{"source":"iana","extensions":["bh2"]},"application/vnd.fujixerox.art-ex":{"source":"iana"},"application/vnd.fujixerox.art4":{"source":"iana"},"application/vnd.fujixerox.ddd":{"source":"iana","extensions":["ddd"]},"application/vnd.fujixerox.docuworks":{"source":"iana","extensions":["xdw"]},"application/vnd.fujixerox.docuworks.binder":{"source":"iana","extensions":["xbd"]},"application/vnd.fujixerox.docuworks.container":{"source":"iana"},"application/vnd.fujixerox.hbpl":{"source":"iana"},"application/vnd.fut-misnet":{"source":"iana"},"application/vnd.futoin+cbor":{"source":"iana"},"application/vnd.futoin+json":{"source":"iana","compressible":true},"application/vnd.fuzzysheet":{"source":"iana","extensions":["fzs"]},"application/vnd.genomatix.tuxedo":{"source":"iana","extensions":["txd"]},"application/vnd.gentics.grd+json":{"source":"iana","compressible":true},"application/vnd.geo+json":{"source":"iana","compressible":true},"application/vnd.geocube+xml":{"source":"iana","compressible":true},"application/vnd.geogebra.file":{"source":"iana","extensions":["ggb"]},"application/vnd.geogebra.slides":{"source":"iana"},"application/vnd.geogebra.tool":{"source":"iana","extensions":["ggt"]},"application/vnd.geometry-explorer":{"source":"iana","extensions":["gex","gre"]},"application/vnd.geonext":{"source":"iana","extensions":["gxt"]},"application/vnd.geoplan":{"source":"iana","extensions":["g2w"]},"application/vnd.geospace":{"source":"iana","extensions":["g3w"]},"application/vnd.gerber":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt":{"source":"iana"},"application/vnd.globalplatform.card-content-mgt-response":{"source":"iana"},"application/vnd.gmx":{"source":"iana","extensions":["gmx"]},"application/vnd.google-apps.document":{"compressible":false,"extensions":["gdoc"]},"application/vnd.google-apps.presentation":{"compressible":false,"extensions":["gslides"]},"application/vnd.google-apps.spreadsheet":{"compressible":false,"extensions":["gsheet"]},"application/vnd.google-earth.kml+xml":{"source":"iana","compressible":true,"extensions":["kml"]},"application/vnd.google-earth.kmz":{"source":"iana","compressible":false,"extensions":["kmz"]},"application/vnd.gov.sk.e-form+xml":{"source":"iana","compressible":true},"application/vnd.gov.sk.e-form+zip":{"source":"iana","compressible":false},"application/vnd.gov.sk.xmldatacontainer+xml":{"source":"iana","compressible":true},"application/vnd.grafeq":{"source":"iana","extensions":["gqf","gqs"]},"application/vnd.gridmp":{"source":"iana"},"application/vnd.groove-account":{"source":"iana","extensions":["gac"]},"application/vnd.groove-help":{"source":"iana","extensions":["ghf"]},"application/vnd.groove-identity-message":{"source":"iana","extensions":["gim"]},"application/vnd.groove-injector":{"source":"iana","extensions":["grv"]},"application/vnd.groove-tool-message":{"source":"iana","extensions":["gtm"]},"application/vnd.groove-tool-template":{"source":"iana","extensions":["tpl"]},"application/vnd.groove-vcard":{"source":"iana","extensions":["vcg"]},"application/vnd.hal+json":{"source":"iana","compressible":true},"application/vnd.hal+xml":{"source":"iana","compressible":true,"extensions":["hal"]},"application/vnd.handheld-entertainment+xml":{"source":"iana","compressible":true,"extensions":["zmm"]},"application/vnd.hbci":{"source":"iana","extensions":["hbci"]},"application/vnd.hc+json":{"source":"iana","compressible":true},"application/vnd.hcl-bireports":{"source":"iana"},"application/vnd.hdt":{"source":"iana"},"application/vnd.heroku+json":{"source":"iana","compressible":true},"application/vnd.hhe.lesson-player":{"source":"iana","extensions":["les"]},"application/vnd.hl7cda+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hl7v2+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.hp-hpgl":{"source":"iana","extensions":["hpgl"]},"application/vnd.hp-hpid":{"source":"iana","extensions":["hpid"]},"application/vnd.hp-hps":{"source":"iana","extensions":["hps"]},"application/vnd.hp-jlyt":{"source":"iana","extensions":["jlt"]},"application/vnd.hp-pcl":{"source":"iana","extensions":["pcl"]},"application/vnd.hp-pclxl":{"source":"iana","extensions":["pclxl"]},"application/vnd.httphone":{"source":"iana"},"application/vnd.hydrostatix.sof-data":{"source":"iana","extensions":["sfd-hdstx"]},"application/vnd.hyper+json":{"source":"iana","compressible":true},"application/vnd.hyper-item+json":{"source":"iana","compressible":true},"application/vnd.hyperdrive+json":{"source":"iana","compressible":true},"application/vnd.hzn-3d-crossword":{"source":"iana"},"application/vnd.ibm.afplinedata":{"source":"iana"},"application/vnd.ibm.electronic-media":{"source":"iana"},"application/vnd.ibm.minipay":{"source":"iana","extensions":["mpy"]},"application/vnd.ibm.modcap":{"source":"iana","extensions":["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{"source":"iana","extensions":["irm"]},"application/vnd.ibm.secure-container":{"source":"iana","extensions":["sc"]},"application/vnd.iccprofile":{"source":"iana","extensions":["icc","icm"]},"application/vnd.ieee.1905":{"source":"iana"},"application/vnd.igloader":{"source":"iana","extensions":["igl"]},"application/vnd.imagemeter.folder+zip":{"source":"iana","compressible":false},"application/vnd.imagemeter.image+zip":{"source":"iana","compressible":false},"application/vnd.immervision-ivp":{"source":"iana","extensions":["ivp"]},"application/vnd.immervision-ivu":{"source":"iana","extensions":["ivu"]},"application/vnd.ims.imsccv1p1":{"source":"iana"},"application/vnd.ims.imsccv1p2":{"source":"iana"},"application/vnd.ims.imsccv1p3":{"source":"iana"},"application/vnd.ims.lis.v2.result+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolproxy.id+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings+json":{"source":"iana","compressible":true},"application/vnd.ims.lti.v2.toolsettings.simple+json":{"source":"iana","compressible":true},"application/vnd.informedcontrol.rms+xml":{"source":"iana","compressible":true},"application/vnd.informix-visionary":{"source":"iana"},"application/vnd.infotech.project":{"source":"iana"},"application/vnd.infotech.project+xml":{"source":"iana","compressible":true},"application/vnd.innopath.wamp.notification":{"source":"iana"},"application/vnd.insors.igm":{"source":"iana","extensions":["igm"]},"application/vnd.intercon.formnet":{"source":"iana","extensions":["xpw","xpx"]},"application/vnd.intergeo":{"source":"iana","extensions":["i2g"]},"application/vnd.intertrust.digibox":{"source":"iana"},"application/vnd.intertrust.nncp":{"source":"iana"},"application/vnd.intu.qbo":{"source":"iana","extensions":["qbo"]},"application/vnd.intu.qfx":{"source":"iana","extensions":["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.conceptitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.knowledgeitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.newsmessage+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.packageitem+xml":{"source":"iana","compressible":true},"application/vnd.iptc.g2.planningitem+xml":{"source":"iana","compressible":true},"application/vnd.ipunplugged.rcprofile":{"source":"iana","extensions":["rcprofile"]},"application/vnd.irepository.package+xml":{"source":"iana","compressible":true,"extensions":["irp"]},"application/vnd.is-xpr":{"source":"iana","extensions":["xpr"]},"application/vnd.isac.fcs":{"source":"iana","extensions":["fcs"]},"application/vnd.iso11783-10+zip":{"source":"iana","compressible":false},"application/vnd.jam":{"source":"iana","extensions":["jam"]},"application/vnd.japannet-directory-service":{"source":"iana"},"application/vnd.japannet-jpnstore-wakeup":{"source":"iana"},"application/vnd.japannet-payment-wakeup":{"source":"iana"},"application/vnd.japannet-registration":{"source":"iana"},"application/vnd.japannet-registration-wakeup":{"source":"iana"},"application/vnd.japannet-setstore-wakeup":{"source":"iana"},"application/vnd.japannet-verification":{"source":"iana"},"application/vnd.japannet-verification-wakeup":{"source":"iana"},"application/vnd.jcp.javame.midlet-rms":{"source":"iana","extensions":["rms"]},"application/vnd.jisp":{"source":"iana","extensions":["jisp"]},"application/vnd.joost.joda-archive":{"source":"iana","extensions":["joda"]},"application/vnd.jsk.isdn-ngn":{"source":"iana"},"application/vnd.kahootz":{"source":"iana","extensions":["ktz","ktr"]},"application/vnd.kde.karbon":{"source":"iana","extensions":["karbon"]},"application/vnd.kde.kchart":{"source":"iana","extensions":["chrt"]},"application/vnd.kde.kformula":{"source":"iana","extensions":["kfo"]},"application/vnd.kde.kivio":{"source":"iana","extensions":["flw"]},"application/vnd.kde.kontour":{"source":"iana","extensions":["kon"]},"application/vnd.kde.kpresenter":{"source":"iana","extensions":["kpr","kpt"]},"application/vnd.kde.kspread":{"source":"iana","extensions":["ksp"]},"application/vnd.kde.kword":{"source":"iana","extensions":["kwd","kwt"]},"application/vnd.kenameaapp":{"source":"iana","extensions":["htke"]},"application/vnd.kidspiration":{"source":"iana","extensions":["kia"]},"application/vnd.kinar":{"source":"iana","extensions":["kne","knp"]},"application/vnd.koan":{"source":"iana","extensions":["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{"source":"iana","extensions":["sse"]},"application/vnd.las":{"source":"iana"},"application/vnd.las.las+json":{"source":"iana","compressible":true},"application/vnd.las.las+xml":{"source":"iana","compressible":true,"extensions":["lasxml"]},"application/vnd.laszip":{"source":"iana"},"application/vnd.leap+json":{"source":"iana","compressible":true},"application/vnd.liberty-request+xml":{"source":"iana","compressible":true},"application/vnd.llamagraphics.life-balance.desktop":{"source":"iana","extensions":["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{"source":"iana","compressible":true,"extensions":["lbe"]},"application/vnd.logipipe.circuit+zip":{"source":"iana","compressible":false},"application/vnd.loom":{"source":"iana"},"application/vnd.lotus-1-2-3":{"source":"iana","extensions":["123"]},"application/vnd.lotus-approach":{"source":"iana","extensions":["apr"]},"application/vnd.lotus-freelance":{"source":"iana","extensions":["pre"]},"application/vnd.lotus-notes":{"source":"iana","extensions":["nsf"]},"application/vnd.lotus-organizer":{"source":"iana","extensions":["org"]},"application/vnd.lotus-screencam":{"source":"iana","extensions":["scm"]},"application/vnd.lotus-wordpro":{"source":"iana","extensions":["lwp"]},"application/vnd.macports.portpkg":{"source":"iana","extensions":["portpkg"]},"application/vnd.mapbox-vector-tile":{"source":"iana","extensions":["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.conftoken+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.license+xml":{"source":"iana","compressible":true},"application/vnd.marlin.drm.mdcf":{"source":"iana"},"application/vnd.mason+json":{"source":"iana","compressible":true},"application/vnd.maxar.archive.3tz+zip":{"source":"iana","compressible":false},"application/vnd.maxmind.maxmind-db":{"source":"iana"},"application/vnd.mcd":{"source":"iana","extensions":["mcd"]},"application/vnd.medcalcdata":{"source":"iana","extensions":["mc1"]},"application/vnd.mediastation.cdkey":{"source":"iana","extensions":["cdkey"]},"application/vnd.meridian-slingshot":{"source":"iana"},"application/vnd.mfer":{"source":"iana","extensions":["mwf"]},"application/vnd.mfmp":{"source":"iana","extensions":["mfm"]},"application/vnd.micro+json":{"source":"iana","compressible":true},"application/vnd.micrografx.flo":{"source":"iana","extensions":["flo"]},"application/vnd.micrografx.igx":{"source":"iana","extensions":["igx"]},"application/vnd.microsoft.portable-executable":{"source":"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{"source":"iana"},"application/vnd.miele+json":{"source":"iana","compressible":true},"application/vnd.mif":{"source":"iana","extensions":["mif"]},"application/vnd.minisoft-hp3000-save":{"source":"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{"source":"iana"},"application/vnd.mobius.daf":{"source":"iana","extensions":["daf"]},"application/vnd.mobius.dis":{"source":"iana","extensions":["dis"]},"application/vnd.mobius.mbk":{"source":"iana","extensions":["mbk"]},"application/vnd.mobius.mqy":{"source":"iana","extensions":["mqy"]},"application/vnd.mobius.msl":{"source":"iana","extensions":["msl"]},"application/vnd.mobius.plc":{"source":"iana","extensions":["plc"]},"application/vnd.mobius.txf":{"source":"iana","extensions":["txf"]},"application/vnd.mophun.application":{"source":"iana","extensions":["mpn"]},"application/vnd.mophun.certificate":{"source":"iana","extensions":["mpc"]},"application/vnd.motorola.flexsuite":{"source":"iana"},"application/vnd.motorola.flexsuite.adsi":{"source":"iana"},"application/vnd.motorola.flexsuite.fis":{"source":"iana"},"application/vnd.motorola.flexsuite.gotap":{"source":"iana"},"application/vnd.motorola.flexsuite.kmr":{"source":"iana"},"application/vnd.motorola.flexsuite.ttc":{"source":"iana"},"application/vnd.motorola.flexsuite.wem":{"source":"iana"},"application/vnd.motorola.iprm":{"source":"iana"},"application/vnd.mozilla.xul+xml":{"source":"iana","compressible":true,"extensions":["xul"]},"application/vnd.ms-3mfdocument":{"source":"iana"},"application/vnd.ms-artgalry":{"source":"iana","extensions":["cil"]},"application/vnd.ms-asf":{"source":"iana"},"application/vnd.ms-cab-compressed":{"source":"iana","extensions":["cab"]},"application/vnd.ms-color.iccprofile":{"source":"apache"},"application/vnd.ms-excel":{"source":"iana","compressible":false,"extensions":["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{"source":"iana","extensions":["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{"source":"iana","extensions":["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{"source":"iana","extensions":["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{"source":"iana","extensions":["xltm"]},"application/vnd.ms-fontobject":{"source":"iana","compressible":true,"extensions":["eot"]},"application/vnd.ms-htmlhelp":{"source":"iana","extensions":["chm"]},"application/vnd.ms-ims":{"source":"iana","extensions":["ims"]},"application/vnd.ms-lrm":{"source":"iana","extensions":["lrm"]},"application/vnd.ms-office.activex+xml":{"source":"iana","compressible":true},"application/vnd.ms-officetheme":{"source":"iana","extensions":["thmx"]},"application/vnd.ms-opentype":{"source":"apache","compressible":true},"application/vnd.ms-outlook":{"compressible":false,"extensions":["msg"]},"application/vnd.ms-package.obfuscated-opentype":{"source":"apache"},"application/vnd.ms-pki.seccat":{"source":"apache","extensions":["cat"]},"application/vnd.ms-pki.stl":{"source":"apache","extensions":["stl"]},"application/vnd.ms-playready.initiator+xml":{"source":"iana","compressible":true},"application/vnd.ms-powerpoint":{"source":"iana","compressible":false,"extensions":["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{"source":"iana","extensions":["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{"source":"iana","extensions":["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{"source":"iana","extensions":["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{"source":"iana","extensions":["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{"source":"iana","extensions":["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{"source":"iana","compressible":true},"application/vnd.ms-printing.printticket+xml":{"source":"apache","compressible":true},"application/vnd.ms-printschematicket+xml":{"source":"iana","compressible":true},"application/vnd.ms-project":{"source":"iana","extensions":["mpp","mpt"]},"application/vnd.ms-tnef":{"source":"iana"},"application/vnd.ms-windows.devicepairing":{"source":"iana"},"application/vnd.ms-windows.nwprinting.oob":{"source":"iana"},"application/vnd.ms-windows.printerpairing":{"source":"iana"},"application/vnd.ms-windows.wsd.oob":{"source":"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.lic-resp":{"source":"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{"source":"iana"},"application/vnd.ms-wmdrm.meter-resp":{"source":"iana"},"application/vnd.ms-word.document.macroenabled.12":{"source":"iana","extensions":["docm"]},"application/vnd.ms-word.template.macroenabled.12":{"source":"iana","extensions":["dotm"]},"application/vnd.ms-works":{"source":"iana","extensions":["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{"source":"iana","extensions":["wpl"]},"application/vnd.ms-xpsdocument":{"source":"iana","compressible":false,"extensions":["xps"]},"application/vnd.msa-disk-image":{"source":"iana"},"application/vnd.mseq":{"source":"iana","extensions":["mseq"]},"application/vnd.msign":{"source":"iana"},"application/vnd.multiad.creator":{"source":"iana"},"application/vnd.multiad.creator.cif":{"source":"iana"},"application/vnd.music-niff":{"source":"iana"},"application/vnd.musician":{"source":"iana","extensions":["mus"]},"application/vnd.muvee.style":{"source":"iana","extensions":["msty"]},"application/vnd.mynfc":{"source":"iana","extensions":["taglet"]},"application/vnd.nacamar.ybrid+json":{"source":"iana","compressible":true},"application/vnd.ncd.control":{"source":"iana"},"application/vnd.ncd.reference":{"source":"iana"},"application/vnd.nearst.inv+json":{"source":"iana","compressible":true},"application/vnd.nebumind.line":{"source":"iana"},"application/vnd.nervana":{"source":"iana"},"application/vnd.netfpx":{"source":"iana"},"application/vnd.neurolanguage.nlu":{"source":"iana","extensions":["nlu"]},"application/vnd.nimn":{"source":"iana"},"application/vnd.nintendo.nitro.rom":{"source":"iana"},"application/vnd.nintendo.snes.rom":{"source":"iana"},"application/vnd.nitf":{"source":"iana","extensions":["ntf","nitf"]},"application/vnd.noblenet-directory":{"source":"iana","extensions":["nnd"]},"application/vnd.noblenet-sealer":{"source":"iana","extensions":["nns"]},"application/vnd.noblenet-web":{"source":"iana","extensions":["nnw"]},"application/vnd.nokia.catalogs":{"source":"iana"},"application/vnd.nokia.conml+wbxml":{"source":"iana"},"application/vnd.nokia.conml+xml":{"source":"iana","compressible":true},"application/vnd.nokia.iptv.config+xml":{"source":"iana","compressible":true},"application/vnd.nokia.isds-radio-presets":{"source":"iana"},"application/vnd.nokia.landmark+wbxml":{"source":"iana"},"application/vnd.nokia.landmark+xml":{"source":"iana","compressible":true},"application/vnd.nokia.landmarkcollection+xml":{"source":"iana","compressible":true},"application/vnd.nokia.n-gage.ac+xml":{"source":"iana","compressible":true,"extensions":["ac"]},"application/vnd.nokia.n-gage.data":{"source":"iana","extensions":["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{"source":"iana","extensions":["n-gage"]},"application/vnd.nokia.ncd":{"source":"iana"},"application/vnd.nokia.pcd+wbxml":{"source":"iana"},"application/vnd.nokia.pcd+xml":{"source":"iana","compressible":true},"application/vnd.nokia.radio-preset":{"source":"iana","extensions":["rpst"]},"application/vnd.nokia.radio-presets":{"source":"iana","extensions":["rpss"]},"application/vnd.novadigm.edm":{"source":"iana","extensions":["edm"]},"application/vnd.novadigm.edx":{"source":"iana","extensions":["edx"]},"application/vnd.novadigm.ext":{"source":"iana","extensions":["ext"]},"application/vnd.ntt-local.content-share":{"source":"iana"},"application/vnd.ntt-local.file-transfer":{"source":"iana"},"application/vnd.ntt-local.ogw_remote-access":{"source":"iana"},"application/vnd.ntt-local.sip-ta_remote":{"source":"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{"source":"iana"},"application/vnd.oasis.opendocument.chart":{"source":"iana","extensions":["odc"]},"application/vnd.oasis.opendocument.chart-template":{"source":"iana","extensions":["otc"]},"application/vnd.oasis.opendocument.database":{"source":"iana","extensions":["odb"]},"application/vnd.oasis.opendocument.formula":{"source":"iana","extensions":["odf"]},"application/vnd.oasis.opendocument.formula-template":{"source":"iana","extensions":["odft"]},"application/vnd.oasis.opendocument.graphics":{"source":"iana","compressible":false,"extensions":["odg"]},"application/vnd.oasis.opendocument.graphics-template":{"source":"iana","extensions":["otg"]},"application/vnd.oasis.opendocument.image":{"source":"iana","extensions":["odi"]},"application/vnd.oasis.opendocument.image-template":{"source":"iana","extensions":["oti"]},"application/vnd.oasis.opendocument.presentation":{"source":"iana","compressible":false,"extensions":["odp"]},"application/vnd.oasis.opendocument.presentation-template":{"source":"iana","extensions":["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{"source":"iana","compressible":false,"extensions":["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{"source":"iana","extensions":["ots"]},"application/vnd.oasis.opendocument.text":{"source":"iana","compressible":false,"extensions":["odt"]},"application/vnd.oasis.opendocument.text-master":{"source":"iana","extensions":["odm"]},"application/vnd.oasis.opendocument.text-template":{"source":"iana","extensions":["ott"]},"application/vnd.oasis.opendocument.text-web":{"source":"iana","extensions":["oth"]},"application/vnd.obn":{"source":"iana"},"application/vnd.ocf+cbor":{"source":"iana"},"application/vnd.oci.image.manifest.v1+json":{"source":"iana","compressible":true},"application/vnd.oftn.l10n+json":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessdownload+xml":{"source":"iana","compressible":true},"application/vnd.oipf.contentaccessstreaming+xml":{"source":"iana","compressible":true},"application/vnd.oipf.cspg-hexbinary":{"source":"iana"},"application/vnd.oipf.dae.svg+xml":{"source":"iana","compressible":true},"application/vnd.oipf.dae.xhtml+xml":{"source":"iana","compressible":true},"application/vnd.oipf.mippvcontrolmessage+xml":{"source":"iana","compressible":true},"application/vnd.oipf.pae.gem":{"source":"iana"},"application/vnd.oipf.spdiscovery+xml":{"source":"iana","compressible":true},"application/vnd.oipf.spdlist+xml":{"source":"iana","compressible":true},"application/vnd.oipf.ueprofile+xml":{"source":"iana","compressible":true},"application/vnd.oipf.userprofile+xml":{"source":"iana","compressible":true},"application/vnd.olpc-sugar":{"source":"iana","extensions":["xo"]},"application/vnd.oma-scws-config":{"source":"iana"},"application/vnd.oma-scws-http-request":{"source":"iana"},"application/vnd.oma-scws-http-response":{"source":"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.drm-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.imd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.ltkm":{"source":"iana"},"application/vnd.oma.bcast.notification+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.provisioningtrigger":{"source":"iana"},"application/vnd.oma.bcast.sgboot":{"source":"iana"},"application/vnd.oma.bcast.sgdd+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sgdu":{"source":"iana"},"application/vnd.oma.bcast.simple-symbol-container":{"source":"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.sprov+xml":{"source":"iana","compressible":true},"application/vnd.oma.bcast.stkm":{"source":"iana"},"application/vnd.oma.cab-address-book+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-feature-handler+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-pcc+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-subs-invite+xml":{"source":"iana","compressible":true},"application/vnd.oma.cab-user-prefs+xml":{"source":"iana","compressible":true},"application/vnd.oma.dcd":{"source":"iana"},"application/vnd.oma.dcdc":{"source":"iana"},"application/vnd.oma.dd2+xml":{"source":"iana","compressible":true,"extensions":["dd2"]},"application/vnd.oma.drm.risd+xml":{"source":"iana","compressible":true},"application/vnd.oma.group-usage-list+xml":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+cbor":{"source":"iana"},"application/vnd.oma.lwm2m+json":{"source":"iana","compressible":true},"application/vnd.oma.lwm2m+tlv":{"source":"iana"},"application/vnd.oma.pal+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.detailed-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.final-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.groups+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.invocation-descriptor+xml":{"source":"iana","compressible":true},"application/vnd.oma.poc.optimized-progress-report+xml":{"source":"iana","compressible":true},"application/vnd.oma.push":{"source":"iana"},"application/vnd.oma.scidm.messages+xml":{"source":"iana","compressible":true},"application/vnd.oma.xcap-directory+xml":{"source":"iana","compressible":true},"application/vnd.omads-email+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-file+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omads-folder+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.omaloc-supl-init":{"source":"iana"},"application/vnd.onepager":{"source":"iana"},"application/vnd.onepagertamp":{"source":"iana"},"application/vnd.onepagertamx":{"source":"iana"},"application/vnd.onepagertat":{"source":"iana"},"application/vnd.onepagertatp":{"source":"iana"},"application/vnd.onepagertatx":{"source":"iana"},"application/vnd.openblox.game+xml":{"source":"iana","compressible":true,"extensions":["obgx"]},"application/vnd.openblox.game-binary":{"source":"iana"},"application/vnd.openeye.oeb":{"source":"iana"},"application/vnd.openofficeorg.extension":{"source":"apache","extensions":["oxt"]},"application/vnd.openstreetmap.data+xml":{"source":"iana","compressible":true,"extensions":["osm"]},"application/vnd.opentimestamps.ots":{"source":"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawing+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{"source":"iana","compressible":false,"extensions":["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slide":{"source":"iana","extensions":["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{"source":"iana","extensions":["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.template":{"source":"iana","extensions":["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{"source":"iana","compressible":false,"extensions":["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{"source":"iana","extensions":["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.theme+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.vmldrawing":{"source":"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{"source":"iana","compressible":false,"extensions":["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{"source":"iana","extensions":["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.core-properties+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{"source":"iana","compressible":true},"application/vnd.openxmlformats-package.relationships+xml":{"source":"iana","compressible":true},"application/vnd.oracle.resource+json":{"source":"iana","compressible":true},"application/vnd.orange.indata":{"source":"iana"},"application/vnd.osa.netdeploy":{"source":"iana"},"application/vnd.osgeo.mapguide.package":{"source":"iana","extensions":["mgp"]},"application/vnd.osgi.bundle":{"source":"iana"},"application/vnd.osgi.dp":{"source":"iana","extensions":["dp"]},"application/vnd.osgi.subsystem":{"source":"iana","extensions":["esa"]},"application/vnd.otps.ct-kip+xml":{"source":"iana","compressible":true},"application/vnd.oxli.countgraph":{"source":"iana"},"application/vnd.pagerduty+json":{"source":"iana","compressible":true},"application/vnd.palm":{"source":"iana","extensions":["pdb","pqa","oprc"]},"application/vnd.panoply":{"source":"iana"},"application/vnd.paos.xml":{"source":"iana"},"application/vnd.patentdive":{"source":"iana"},"application/vnd.patientecommsdoc":{"source":"iana"},"application/vnd.pawaafile":{"source":"iana","extensions":["paw"]},"application/vnd.pcos":{"source":"iana"},"application/vnd.pg.format":{"source":"iana","extensions":["str"]},"application/vnd.pg.osasli":{"source":"iana","extensions":["ei6"]},"application/vnd.piaccess.application-licence":{"source":"iana"},"application/vnd.picsel":{"source":"iana","extensions":["efif"]},"application/vnd.pmi.widget":{"source":"iana","extensions":["wg"]},"application/vnd.poc.group-advertisement+xml":{"source":"iana","compressible":true},"application/vnd.pocketlearn":{"source":"iana","extensions":["plf"]},"application/vnd.powerbuilder6":{"source":"iana","extensions":["pbd"]},"application/vnd.powerbuilder6-s":{"source":"iana"},"application/vnd.powerbuilder7":{"source":"iana"},"application/vnd.powerbuilder7-s":{"source":"iana"},"application/vnd.powerbuilder75":{"source":"iana"},"application/vnd.powerbuilder75-s":{"source":"iana"},"application/vnd.preminet":{"source":"iana"},"application/vnd.previewsystems.box":{"source":"iana","extensions":["box"]},"application/vnd.proteus.magazine":{"source":"iana","extensions":["mgz"]},"application/vnd.psfs":{"source":"iana"},"application/vnd.publishare-delta-tree":{"source":"iana","extensions":["qps"]},"application/vnd.pvi.ptid1":{"source":"iana","extensions":["ptid"]},"application/vnd.pwg-multiplexed":{"source":"iana"},"application/vnd.pwg-xhtml-print+xml":{"source":"iana","compressible":true},"application/vnd.qualcomm.brew-app-res":{"source":"iana"},"application/vnd.quarantainenet":{"source":"iana"},"application/vnd.quark.quarkxpress":{"source":"iana","extensions":["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{"source":"iana"},"application/vnd.radisys.moml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-conn+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-audit-stream+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-conf+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-base+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-detect+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-group+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-speech+xml":{"source":"iana","compressible":true},"application/vnd.radisys.msml-dialog-transform+xml":{"source":"iana","compressible":true},"application/vnd.rainstor.data":{"source":"iana"},"application/vnd.rapid":{"source":"iana"},"application/vnd.rar":{"source":"iana","extensions":["rar"]},"application/vnd.realvnc.bed":{"source":"iana","extensions":["bed"]},"application/vnd.recordare.musicxml":{"source":"iana","extensions":["mxl"]},"application/vnd.recordare.musicxml+xml":{"source":"iana","compressible":true,"extensions":["musicxml"]},"application/vnd.renlearn.rlprint":{"source":"iana"},"application/vnd.resilient.logic":{"source":"iana"},"application/vnd.restful+json":{"source":"iana","compressible":true},"application/vnd.rig.cryptonote":{"source":"iana","extensions":["cryptonote"]},"application/vnd.rim.cod":{"source":"apache","extensions":["cod"]},"application/vnd.rn-realmedia":{"source":"apache","extensions":["rm"]},"application/vnd.rn-realmedia-vbr":{"source":"apache","extensions":["rmvb"]},"application/vnd.route66.link66+xml":{"source":"iana","compressible":true,"extensions":["link66"]},"application/vnd.rs-274x":{"source":"iana"},"application/vnd.ruckus.download":{"source":"iana"},"application/vnd.s3sms":{"source":"iana"},"application/vnd.sailingtracker.track":{"source":"iana","extensions":["st"]},"application/vnd.sar":{"source":"iana"},"application/vnd.sbm.cid":{"source":"iana"},"application/vnd.sbm.mid2":{"source":"iana"},"application/vnd.scribus":{"source":"iana"},"application/vnd.sealed.3df":{"source":"iana"},"application/vnd.sealed.csf":{"source":"iana"},"application/vnd.sealed.doc":{"source":"iana"},"application/vnd.sealed.eml":{"source":"iana"},"application/vnd.sealed.mht":{"source":"iana"},"application/vnd.sealed.net":{"source":"iana"},"application/vnd.sealed.ppt":{"source":"iana"},"application/vnd.sealed.tiff":{"source":"iana"},"application/vnd.sealed.xls":{"source":"iana"},"application/vnd.sealedmedia.softseal.html":{"source":"iana"},"application/vnd.sealedmedia.softseal.pdf":{"source":"iana"},"application/vnd.seemail":{"source":"iana","extensions":["see"]},"application/vnd.seis+json":{"source":"iana","compressible":true},"application/vnd.sema":{"source":"iana","extensions":["sema"]},"application/vnd.semd":{"source":"iana","extensions":["semd"]},"application/vnd.semf":{"source":"iana","extensions":["semf"]},"application/vnd.shade-save-file":{"source":"iana"},"application/vnd.shana.informed.formdata":{"source":"iana","extensions":["ifm"]},"application/vnd.shana.informed.formtemplate":{"source":"iana","extensions":["itp"]},"application/vnd.shana.informed.interchange":{"source":"iana","extensions":["iif"]},"application/vnd.shana.informed.package":{"source":"iana","extensions":["ipk"]},"application/vnd.shootproof+json":{"source":"iana","compressible":true},"application/vnd.shopkick+json":{"source":"iana","compressible":true},"application/vnd.shp":{"source":"iana"},"application/vnd.shx":{"source":"iana"},"application/vnd.sigrok.session":{"source":"iana"},"application/vnd.simtech-mindmapper":{"source":"iana","extensions":["twd","twds"]},"application/vnd.siren+json":{"source":"iana","compressible":true},"application/vnd.smaf":{"source":"iana","extensions":["mmf"]},"application/vnd.smart.notebook":{"source":"iana"},"application/vnd.smart.teacher":{"source":"iana","extensions":["teacher"]},"application/vnd.snesdev-page-table":{"source":"iana"},"application/vnd.software602.filler.form+xml":{"source":"iana","compressible":true,"extensions":["fo"]},"application/vnd.software602.filler.form-xml-zip":{"source":"iana"},"application/vnd.solent.sdkm+xml":{"source":"iana","compressible":true,"extensions":["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{"source":"iana","extensions":["dxp"]},"application/vnd.spotfire.sfs":{"source":"iana","extensions":["sfs"]},"application/vnd.sqlite3":{"source":"iana"},"application/vnd.sss-cod":{"source":"iana"},"application/vnd.sss-dtf":{"source":"iana"},"application/vnd.sss-ntf":{"source":"iana"},"application/vnd.stardivision.calc":{"source":"apache","extensions":["sdc"]},"application/vnd.stardivision.draw":{"source":"apache","extensions":["sda"]},"application/vnd.stardivision.impress":{"source":"apache","extensions":["sdd"]},"application/vnd.stardivision.math":{"source":"apache","extensions":["smf"]},"application/vnd.stardivision.writer":{"source":"apache","extensions":["sdw","vor"]},"application/vnd.stardivision.writer-global":{"source":"apache","extensions":["sgl"]},"application/vnd.stepmania.package":{"source":"iana","extensions":["smzip"]},"application/vnd.stepmania.stepchart":{"source":"iana","extensions":["sm"]},"application/vnd.street-stream":{"source":"iana"},"application/vnd.sun.wadl+xml":{"source":"iana","compressible":true,"extensions":["wadl"]},"application/vnd.sun.xml.calc":{"source":"apache","extensions":["sxc"]},"application/vnd.sun.xml.calc.template":{"source":"apache","extensions":["stc"]},"application/vnd.sun.xml.draw":{"source":"apache","extensions":["sxd"]},"application/vnd.sun.xml.draw.template":{"source":"apache","extensions":["std"]},"application/vnd.sun.xml.impress":{"source":"apache","extensions":["sxi"]},"application/vnd.sun.xml.impress.template":{"source":"apache","extensions":["sti"]},"application/vnd.sun.xml.math":{"source":"apache","extensions":["sxm"]},"application/vnd.sun.xml.writer":{"source":"apache","extensions":["sxw"]},"application/vnd.sun.xml.writer.global":{"source":"apache","extensions":["sxg"]},"application/vnd.sun.xml.writer.template":{"source":"apache","extensions":["stw"]},"application/vnd.sus-calendar":{"source":"iana","extensions":["sus","susp"]},"application/vnd.svd":{"source":"iana","extensions":["svd"]},"application/vnd.swiftview-ics":{"source":"iana"},"application/vnd.sycle+xml":{"source":"iana","compressible":true},"application/vnd.syft+json":{"source":"iana","compressible":true},"application/vnd.symbian.install":{"source":"apache","extensions":["sis","sisx"]},"application/vnd.syncml+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xsm"]},"application/vnd.syncml.dm+wbxml":{"source":"iana","charset":"UTF-8","extensions":["bdm"]},"application/vnd.syncml.dm+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["xdm"]},"application/vnd.syncml.dm.notification":{"source":"iana"},"application/vnd.syncml.dmddf+wbxml":{"source":"iana"},"application/vnd.syncml.dmddf+xml":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{"source":"iana"},"application/vnd.syncml.dmtnds+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/vnd.syncml.ds.notification":{"source":"iana"},"application/vnd.tableschema+json":{"source":"iana","compressible":true},"application/vnd.tao.intent-module-archive":{"source":"iana","extensions":["tao"]},"application/vnd.tcpdump.pcap":{"source":"iana","extensions":["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{"source":"iana","compressible":true},"application/vnd.tmd.mediaflex.api+xml":{"source":"iana","compressible":true},"application/vnd.tml":{"source":"iana"},"application/vnd.tmobile-livetv":{"source":"iana","extensions":["tmo"]},"application/vnd.tri.onesource":{"source":"iana"},"application/vnd.trid.tpt":{"source":"iana","extensions":["tpt"]},"application/vnd.triscape.mxs":{"source":"iana","extensions":["mxs"]},"application/vnd.trueapp":{"source":"iana","extensions":["tra"]},"application/vnd.truedoc":{"source":"iana"},"application/vnd.ubisoft.webplayer":{"source":"iana"},"application/vnd.ufdl":{"source":"iana","extensions":["ufd","ufdl"]},"application/vnd.uiq.theme":{"source":"iana","extensions":["utz"]},"application/vnd.umajin":{"source":"iana","extensions":["umj"]},"application/vnd.unity":{"source":"iana","extensions":["unityweb"]},"application/vnd.uoml+xml":{"source":"iana","compressible":true,"extensions":["uoml"]},"application/vnd.uplanet.alert":{"source":"iana"},"application/vnd.uplanet.alert-wbxml":{"source":"iana"},"application/vnd.uplanet.bearer-choice":{"source":"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{"source":"iana"},"application/vnd.uplanet.cacheop":{"source":"iana"},"application/vnd.uplanet.cacheop-wbxml":{"source":"iana"},"application/vnd.uplanet.channel":{"source":"iana"},"application/vnd.uplanet.channel-wbxml":{"source":"iana"},"application/vnd.uplanet.list":{"source":"iana"},"application/vnd.uplanet.list-wbxml":{"source":"iana"},"application/vnd.uplanet.listcmd":{"source":"iana"},"application/vnd.uplanet.listcmd-wbxml":{"source":"iana"},"application/vnd.uplanet.signal":{"source":"iana"},"application/vnd.uri-map":{"source":"iana"},"application/vnd.valve.source.material":{"source":"iana"},"application/vnd.vcx":{"source":"iana","extensions":["vcx"]},"application/vnd.vd-study":{"source":"iana"},"application/vnd.vectorworks":{"source":"iana"},"application/vnd.vel+json":{"source":"iana","compressible":true},"application/vnd.verimatrix.vcas":{"source":"iana"},"application/vnd.veritone.aion+json":{"source":"iana","compressible":true},"application/vnd.veryant.thin":{"source":"iana"},"application/vnd.ves.encrypted":{"source":"iana"},"application/vnd.vidsoft.vidconference":{"source":"iana"},"application/vnd.visio":{"source":"iana","extensions":["vsd","vst","vss","vsw"]},"application/vnd.visionary":{"source":"iana","extensions":["vis"]},"application/vnd.vividence.scriptfile":{"source":"iana"},"application/vnd.vsf":{"source":"iana","extensions":["vsf"]},"application/vnd.wap.sic":{"source":"iana"},"application/vnd.wap.slc":{"source":"iana"},"application/vnd.wap.wbxml":{"source":"iana","charset":"UTF-8","extensions":["wbxml"]},"application/vnd.wap.wmlc":{"source":"iana","extensions":["wmlc"]},"application/vnd.wap.wmlscriptc":{"source":"iana","extensions":["wmlsc"]},"application/vnd.webturbo":{"source":"iana","extensions":["wtb"]},"application/vnd.wfa.dpp":{"source":"iana"},"application/vnd.wfa.p2p":{"source":"iana"},"application/vnd.wfa.wsc":{"source":"iana"},"application/vnd.windows.devicepairing":{"source":"iana"},"application/vnd.wmc":{"source":"iana"},"application/vnd.wmf.bootstrap":{"source":"iana"},"application/vnd.wolfram.mathematica":{"source":"iana"},"application/vnd.wolfram.mathematica.package":{"source":"iana"},"application/vnd.wolfram.player":{"source":"iana","extensions":["nbp"]},"application/vnd.wordperfect":{"source":"iana","extensions":["wpd"]},"application/vnd.wqd":{"source":"iana","extensions":["wqd"]},"application/vnd.wrq-hp3000-labelled":{"source":"iana"},"application/vnd.wt.stf":{"source":"iana","extensions":["stf"]},"application/vnd.wv.csp+wbxml":{"source":"iana"},"application/vnd.wv.csp+xml":{"source":"iana","compressible":true},"application/vnd.wv.ssp+xml":{"source":"iana","compressible":true},"application/vnd.xacml+json":{"source":"iana","compressible":true},"application/vnd.xara":{"source":"iana","extensions":["xar"]},"application/vnd.xfdl":{"source":"iana","extensions":["xfdl"]},"application/vnd.xfdl.webform":{"source":"iana"},"application/vnd.xmi+xml":{"source":"iana","compressible":true},"application/vnd.xmpie.cpkg":{"source":"iana"},"application/vnd.xmpie.dpkg":{"source":"iana"},"application/vnd.xmpie.plan":{"source":"iana"},"application/vnd.xmpie.ppkg":{"source":"iana"},"application/vnd.xmpie.xlim":{"source":"iana"},"application/vnd.yamaha.hv-dic":{"source":"iana","extensions":["hvd"]},"application/vnd.yamaha.hv-script":{"source":"iana","extensions":["hvs"]},"application/vnd.yamaha.hv-voice":{"source":"iana","extensions":["hvp"]},"application/vnd.yamaha.openscoreformat":{"source":"iana","extensions":["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{"source":"iana","compressible":true,"extensions":["osfpvg"]},"application/vnd.yamaha.remote-setup":{"source":"iana"},"application/vnd.yamaha.smaf-audio":{"source":"iana","extensions":["saf"]},"application/vnd.yamaha.smaf-phrase":{"source":"iana","extensions":["spf"]},"application/vnd.yamaha.through-ngn":{"source":"iana"},"application/vnd.yamaha.tunnel-udpencap":{"source":"iana"},"application/vnd.yaoweme":{"source":"iana"},"application/vnd.yellowriver-custom-menu":{"source":"iana","extensions":["cmp"]},"application/vnd.youtube.yt":{"source":"iana"},"application/vnd.zul":{"source":"iana","extensions":["zir","zirz"]},"application/vnd.zzazz.deck+xml":{"source":"iana","compressible":true,"extensions":["zaz"]},"application/voicexml+xml":{"source":"iana","compressible":true,"extensions":["vxml"]},"application/voucher-cms+json":{"source":"iana","compressible":true},"application/vq-rtcpxr":{"source":"iana"},"application/wasm":{"source":"iana","compressible":true,"extensions":["wasm"]},"application/watcherinfo+xml":{"source":"iana","compressible":true,"extensions":["wif"]},"application/webpush-options+json":{"source":"iana","compressible":true},"application/whoispp-query":{"source":"iana"},"application/whoispp-response":{"source":"iana"},"application/widget":{"source":"iana","extensions":["wgt"]},"application/winhlp":{"source":"apache","extensions":["hlp"]},"application/wita":{"source":"iana"},"application/wordperfect5.1":{"source":"iana"},"application/wsdl+xml":{"source":"iana","compressible":true,"extensions":["wsdl"]},"application/wspolicy+xml":{"source":"iana","compressible":true,"extensions":["wspolicy"]},"application/x-7z-compressed":{"source":"apache","compressible":false,"extensions":["7z"]},"application/x-abiword":{"source":"apache","extensions":["abw"]},"application/x-ace-compressed":{"source":"apache","extensions":["ace"]},"application/x-amf":{"source":"apache"},"application/x-apple-diskimage":{"source":"apache","extensions":["dmg"]},"application/x-arj":{"compressible":false,"extensions":["arj"]},"application/x-authorware-bin":{"source":"apache","extensions":["aab","x32","u32","vox"]},"application/x-authorware-map":{"source":"apache","extensions":["aam"]},"application/x-authorware-seg":{"source":"apache","extensions":["aas"]},"application/x-bcpio":{"source":"apache","extensions":["bcpio"]},"application/x-bdoc":{"compressible":false,"extensions":["bdoc"]},"application/x-bittorrent":{"source":"apache","extensions":["torrent"]},"application/x-blorb":{"source":"apache","extensions":["blb","blorb"]},"application/x-bzip":{"source":"apache","compressible":false,"extensions":["bz"]},"application/x-bzip2":{"source":"apache","compressible":false,"extensions":["bz2","boz"]},"application/x-cbr":{"source":"apache","extensions":["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{"source":"apache","extensions":["vcd"]},"application/x-cfs-compressed":{"source":"apache","extensions":["cfs"]},"application/x-chat":{"source":"apache","extensions":["chat"]},"application/x-chess-pgn":{"source":"apache","extensions":["pgn"]},"application/x-chrome-extension":{"extensions":["crx"]},"application/x-cocoa":{"source":"nginx","extensions":["cco"]},"application/x-compress":{"source":"apache"},"application/x-conference":{"source":"apache","extensions":["nsc"]},"application/x-cpio":{"source":"apache","extensions":["cpio"]},"application/x-csh":{"source":"apache","extensions":["csh"]},"application/x-deb":{"compressible":false},"application/x-debian-package":{"source":"apache","extensions":["deb","udeb"]},"application/x-dgc-compressed":{"source":"apache","extensions":["dgc"]},"application/x-director":{"source":"apache","extensions":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{"source":"apache","extensions":["wad"]},"application/x-dtbncx+xml":{"source":"apache","compressible":true,"extensions":["ncx"]},"application/x-dtbook+xml":{"source":"apache","compressible":true,"extensions":["dtb"]},"application/x-dtbresource+xml":{"source":"apache","compressible":true,"extensions":["res"]},"application/x-dvi":{"source":"apache","compressible":false,"extensions":["dvi"]},"application/x-envoy":{"source":"apache","extensions":["evy"]},"application/x-eva":{"source":"apache","extensions":["eva"]},"application/x-font-bdf":{"source":"apache","extensions":["bdf"]},"application/x-font-dos":{"source":"apache"},"application/x-font-framemaker":{"source":"apache"},"application/x-font-ghostscript":{"source":"apache","extensions":["gsf"]},"application/x-font-libgrx":{"source":"apache"},"application/x-font-linux-psf":{"source":"apache","extensions":["psf"]},"application/x-font-pcf":{"source":"apache","extensions":["pcf"]},"application/x-font-snf":{"source":"apache","extensions":["snf"]},"application/x-font-speedo":{"source":"apache"},"application/x-font-sunos-news":{"source":"apache"},"application/x-font-type1":{"source":"apache","extensions":["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{"source":"apache"},"application/x-freearc":{"source":"apache","extensions":["arc"]},"application/x-futuresplash":{"source":"apache","extensions":["spl"]},"application/x-gca-compressed":{"source":"apache","extensions":["gca"]},"application/x-glulx":{"source":"apache","extensions":["ulx"]},"application/x-gnumeric":{"source":"apache","extensions":["gnumeric"]},"application/x-gramps-xml":{"source":"apache","extensions":["gramps"]},"application/x-gtar":{"source":"apache","extensions":["gtar"]},"application/x-gzip":{"source":"apache"},"application/x-hdf":{"source":"apache","extensions":["hdf"]},"application/x-httpd-php":{"compressible":true,"extensions":["php"]},"application/x-install-instructions":{"source":"apache","extensions":["install"]},"application/x-iso9660-image":{"source":"apache","extensions":["iso"]},"application/x-iwork-keynote-sffkey":{"extensions":["key"]},"application/x-iwork-numbers-sffnumbers":{"extensions":["numbers"]},"application/x-iwork-pages-sffpages":{"extensions":["pages"]},"application/x-java-archive-diff":{"source":"nginx","extensions":["jardiff"]},"application/x-java-jnlp-file":{"source":"apache","compressible":false,"extensions":["jnlp"]},"application/x-javascript":{"compressible":true},"application/x-keepass2":{"extensions":["kdbx"]},"application/x-latex":{"source":"apache","compressible":false,"extensions":["latex"]},"application/x-lua-bytecode":{"extensions":["luac"]},"application/x-lzh-compressed":{"source":"apache","extensions":["lzh","lha"]},"application/x-makeself":{"source":"nginx","extensions":["run"]},"application/x-mie":{"source":"apache","extensions":["mie"]},"application/x-mobipocket-ebook":{"source":"apache","extensions":["prc","mobi"]},"application/x-mpegurl":{"compressible":false},"application/x-ms-application":{"source":"apache","extensions":["application"]},"application/x-ms-shortcut":{"source":"apache","extensions":["lnk"]},"application/x-ms-wmd":{"source":"apache","extensions":["wmd"]},"application/x-ms-wmz":{"source":"apache","extensions":["wmz"]},"application/x-ms-xbap":{"source":"apache","extensions":["xbap"]},"application/x-msaccess":{"source":"apache","extensions":["mdb"]},"application/x-msbinder":{"source":"apache","extensions":["obd"]},"application/x-mscardfile":{"source":"apache","extensions":["crd"]},"application/x-msclip":{"source":"apache","extensions":["clp"]},"application/x-msdos-program":{"extensions":["exe"]},"application/x-msdownload":{"source":"apache","extensions":["exe","dll","com","bat","msi"]},"application/x-msmediaview":{"source":"apache","extensions":["mvb","m13","m14"]},"application/x-msmetafile":{"source":"apache","extensions":["wmf","wmz","emf","emz"]},"application/x-msmoney":{"source":"apache","extensions":["mny"]},"application/x-mspublisher":{"source":"apache","extensions":["pub"]},"application/x-msschedule":{"source":"apache","extensions":["scd"]},"application/x-msterminal":{"source":"apache","extensions":["trm"]},"application/x-mswrite":{"source":"apache","extensions":["wri"]},"application/x-netcdf":{"source":"apache","extensions":["nc","cdf"]},"application/x-ns-proxy-autoconfig":{"compressible":true,"extensions":["pac"]},"application/x-nzb":{"source":"apache","extensions":["nzb"]},"application/x-perl":{"source":"nginx","extensions":["pl","pm"]},"application/x-pilot":{"source":"nginx","extensions":["prc","pdb"]},"application/x-pkcs12":{"source":"apache","compressible":false,"extensions":["p12","pfx"]},"application/x-pkcs7-certificates":{"source":"apache","extensions":["p7b","spc"]},"application/x-pkcs7-certreqresp":{"source":"apache","extensions":["p7r"]},"application/x-pki-message":{"source":"iana"},"application/x-rar-compressed":{"source":"apache","compressible":false,"extensions":["rar"]},"application/x-redhat-package-manager":{"source":"nginx","extensions":["rpm"]},"application/x-research-info-systems":{"source":"apache","extensions":["ris"]},"application/x-sea":{"source":"nginx","extensions":["sea"]},"application/x-sh":{"source":"apache","compressible":true,"extensions":["sh"]},"application/x-shar":{"source":"apache","extensions":["shar"]},"application/x-shockwave-flash":{"source":"apache","compressible":false,"extensions":["swf"]},"application/x-silverlight-app":{"source":"apache","extensions":["xap"]},"application/x-sql":{"source":"apache","extensions":["sql"]},"application/x-stuffit":{"source":"apache","compressible":false,"extensions":["sit"]},"application/x-stuffitx":{"source":"apache","extensions":["sitx"]},"application/x-subrip":{"source":"apache","extensions":["srt"]},"application/x-sv4cpio":{"source":"apache","extensions":["sv4cpio"]},"application/x-sv4crc":{"source":"apache","extensions":["sv4crc"]},"application/x-t3vm-image":{"source":"apache","extensions":["t3"]},"application/x-tads":{"source":"apache","extensions":["gam"]},"application/x-tar":{"source":"apache","compressible":true,"extensions":["tar"]},"application/x-tcl":{"source":"apache","extensions":["tcl","tk"]},"application/x-tex":{"source":"apache","extensions":["tex"]},"application/x-tex-tfm":{"source":"apache","extensions":["tfm"]},"application/x-texinfo":{"source":"apache","extensions":["texinfo","texi"]},"application/x-tgif":{"source":"apache","extensions":["obj"]},"application/x-ustar":{"source":"apache","extensions":["ustar"]},"application/x-virtualbox-hdd":{"compressible":true,"extensions":["hdd"]},"application/x-virtualbox-ova":{"compressible":true,"extensions":["ova"]},"application/x-virtualbox-ovf":{"compressible":true,"extensions":["ovf"]},"application/x-virtualbox-vbox":{"compressible":true,"extensions":["vbox"]},"application/x-virtualbox-vbox-extpack":{"compressible":false,"extensions":["vbox-extpack"]},"application/x-virtualbox-vdi":{"compressible":true,"extensions":["vdi"]},"application/x-virtualbox-vhd":{"compressible":true,"extensions":["vhd"]},"application/x-virtualbox-vmdk":{"compressible":true,"extensions":["vmdk"]},"application/x-wais-source":{"source":"apache","extensions":["src"]},"application/x-web-app-manifest+json":{"compressible":true,"extensions":["webapp"]},"application/x-www-form-urlencoded":{"source":"iana","compressible":true},"application/x-x509-ca-cert":{"source":"iana","extensions":["der","crt","pem"]},"application/x-x509-ca-ra-cert":{"source":"iana"},"application/x-x509-next-ca-cert":{"source":"iana"},"application/x-xfig":{"source":"apache","extensions":["fig"]},"application/x-xliff+xml":{"source":"apache","compressible":true,"extensions":["xlf"]},"application/x-xpinstall":{"source":"apache","compressible":false,"extensions":["xpi"]},"application/x-xz":{"source":"apache","extensions":["xz"]},"application/x-zmachine":{"source":"apache","extensions":["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{"source":"iana"},"application/xacml+xml":{"source":"iana","compressible":true},"application/xaml+xml":{"source":"apache","compressible":true,"extensions":["xaml"]},"application/xcap-att+xml":{"source":"iana","compressible":true,"extensions":["xav"]},"application/xcap-caps+xml":{"source":"iana","compressible":true,"extensions":["xca"]},"application/xcap-diff+xml":{"source":"iana","compressible":true,"extensions":["xdf"]},"application/xcap-el+xml":{"source":"iana","compressible":true,"extensions":["xel"]},"application/xcap-error+xml":{"source":"iana","compressible":true},"application/xcap-ns+xml":{"source":"iana","compressible":true,"extensions":["xns"]},"application/xcon-conference-info+xml":{"source":"iana","compressible":true},"application/xcon-conference-info-diff+xml":{"source":"iana","compressible":true},"application/xenc+xml":{"source":"iana","compressible":true,"extensions":["xenc"]},"application/xhtml+xml":{"source":"iana","compressible":true,"extensions":["xhtml","xht"]},"application/xhtml-voice+xml":{"source":"apache","compressible":true},"application/xliff+xml":{"source":"iana","compressible":true,"extensions":["xlf"]},"application/xml":{"source":"iana","compressible":true,"extensions":["xml","xsl","xsd","rng"]},"application/xml-dtd":{"source":"iana","compressible":true,"extensions":["dtd"]},"application/xml-external-parsed-entity":{"source":"iana"},"application/xml-patch+xml":{"source":"iana","compressible":true},"application/xmpp+xml":{"source":"iana","compressible":true},"application/xop+xml":{"source":"iana","compressible":true,"extensions":["xop"]},"application/xproc+xml":{"source":"apache","compressible":true,"extensions":["xpl"]},"application/xslt+xml":{"source":"iana","compressible":true,"extensions":["xsl","xslt"]},"application/xspf+xml":{"source":"apache","compressible":true,"extensions":["xspf"]},"application/xv+xml":{"source":"iana","compressible":true,"extensions":["mxml","xhvml","xvml","xvm"]},"application/yang":{"source":"iana","extensions":["yang"]},"application/yang-data+json":{"source":"iana","compressible":true},"application/yang-data+xml":{"source":"iana","compressible":true},"application/yang-patch+json":{"source":"iana","compressible":true},"application/yang-patch+xml":{"source":"iana","compressible":true},"application/yin+xml":{"source":"iana","compressible":true,"extensions":["yin"]},"application/zip":{"source":"iana","compressible":false,"extensions":["zip"]},"application/zlib":{"source":"iana"},"application/zstd":{"source":"iana"},"audio/1d-interleaved-parityfec":{"source":"iana"},"audio/32kadpcm":{"source":"iana"},"audio/3gpp":{"source":"iana","compressible":false,"extensions":["3gpp"]},"audio/3gpp2":{"source":"iana"},"audio/aac":{"source":"iana"},"audio/ac3":{"source":"iana"},"audio/adpcm":{"source":"apache","extensions":["adp"]},"audio/amr":{"source":"iana","extensions":["amr"]},"audio/amr-wb":{"source":"iana"},"audio/amr-wb+":{"source":"iana"},"audio/aptx":{"source":"iana"},"audio/asc":{"source":"iana"},"audio/atrac-advanced-lossless":{"source":"iana"},"audio/atrac-x":{"source":"iana"},"audio/atrac3":{"source":"iana"},"audio/basic":{"source":"iana","compressible":false,"extensions":["au","snd"]},"audio/bv16":{"source":"iana"},"audio/bv32":{"source":"iana"},"audio/clearmode":{"source":"iana"},"audio/cn":{"source":"iana"},"audio/dat12":{"source":"iana"},"audio/dls":{"source":"iana"},"audio/dsr-es201108":{"source":"iana"},"audio/dsr-es202050":{"source":"iana"},"audio/dsr-es202211":{"source":"iana"},"audio/dsr-es202212":{"source":"iana"},"audio/dv":{"source":"iana"},"audio/dvi4":{"source":"iana"},"audio/eac3":{"source":"iana"},"audio/encaprtp":{"source":"iana"},"audio/evrc":{"source":"iana"},"audio/evrc-qcp":{"source":"iana"},"audio/evrc0":{"source":"iana"},"audio/evrc1":{"source":"iana"},"audio/evrcb":{"source":"iana"},"audio/evrcb0":{"source":"iana"},"audio/evrcb1":{"source":"iana"},"audio/evrcnw":{"source":"iana"},"audio/evrcnw0":{"source":"iana"},"audio/evrcnw1":{"source":"iana"},"audio/evrcwb":{"source":"iana"},"audio/evrcwb0":{"source":"iana"},"audio/evrcwb1":{"source":"iana"},"audio/evs":{"source":"iana"},"audio/flexfec":{"source":"iana"},"audio/fwdred":{"source":"iana"},"audio/g711-0":{"source":"iana"},"audio/g719":{"source":"iana"},"audio/g722":{"source":"iana"},"audio/g7221":{"source":"iana"},"audio/g723":{"source":"iana"},"audio/g726-16":{"source":"iana"},"audio/g726-24":{"source":"iana"},"audio/g726-32":{"source":"iana"},"audio/g726-40":{"source":"iana"},"audio/g728":{"source":"iana"},"audio/g729":{"source":"iana"},"audio/g7291":{"source":"iana"},"audio/g729d":{"source":"iana"},"audio/g729e":{"source":"iana"},"audio/gsm":{"source":"iana"},"audio/gsm-efr":{"source":"iana"},"audio/gsm-hr-08":{"source":"iana"},"audio/ilbc":{"source":"iana"},"audio/ip-mr_v2.5":{"source":"iana"},"audio/isac":{"source":"apache"},"audio/l16":{"source":"iana"},"audio/l20":{"source":"iana"},"audio/l24":{"source":"iana","compressible":false},"audio/l8":{"source":"iana"},"audio/lpc":{"source":"iana"},"audio/melp":{"source":"iana"},"audio/melp1200":{"source":"iana"},"audio/melp2400":{"source":"iana"},"audio/melp600":{"source":"iana"},"audio/mhas":{"source":"iana"},"audio/midi":{"source":"apache","extensions":["mid","midi","kar","rmi"]},"audio/mobile-xmf":{"source":"iana","extensions":["mxmf"]},"audio/mp3":{"compressible":false,"extensions":["mp3"]},"audio/mp4":{"source":"iana","compressible":false,"extensions":["m4a","mp4a"]},"audio/mp4a-latm":{"source":"iana"},"audio/mpa":{"source":"iana"},"audio/mpa-robust":{"source":"iana"},"audio/mpeg":{"source":"iana","compressible":false,"extensions":["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{"source":"iana"},"audio/musepack":{"source":"apache"},"audio/ogg":{"source":"iana","compressible":false,"extensions":["oga","ogg","spx","opus"]},"audio/opus":{"source":"iana"},"audio/parityfec":{"source":"iana"},"audio/pcma":{"source":"iana"},"audio/pcma-wb":{"source":"iana"},"audio/pcmu":{"source":"iana"},"audio/pcmu-wb":{"source":"iana"},"audio/prs.sid":{"source":"iana"},"audio/qcelp":{"source":"iana"},"audio/raptorfec":{"source":"iana"},"audio/red":{"source":"iana"},"audio/rtp-enc-aescm128":{"source":"iana"},"audio/rtp-midi":{"source":"iana"},"audio/rtploopback":{"source":"iana"},"audio/rtx":{"source":"iana"},"audio/s3m":{"source":"apache","extensions":["s3m"]},"audio/scip":{"source":"iana"},"audio/silk":{"source":"apache","extensions":["sil"]},"audio/smv":{"source":"iana"},"audio/smv-qcp":{"source":"iana"},"audio/smv0":{"source":"iana"},"audio/sofa":{"source":"iana"},"audio/sp-midi":{"source":"iana"},"audio/speex":{"source":"iana"},"audio/t140c":{"source":"iana"},"audio/t38":{"source":"iana"},"audio/telephone-event":{"source":"iana"},"audio/tetra_acelp":{"source":"iana"},"audio/tetra_acelp_bb":{"source":"iana"},"audio/tone":{"source":"iana"},"audio/tsvcis":{"source":"iana"},"audio/uemclip":{"source":"iana"},"audio/ulpfec":{"source":"iana"},"audio/usac":{"source":"iana"},"audio/vdvi":{"source":"iana"},"audio/vmr-wb":{"source":"iana"},"audio/vnd.3gpp.iufp":{"source":"iana"},"audio/vnd.4sb":{"source":"iana"},"audio/vnd.audiokoz":{"source":"iana"},"audio/vnd.celp":{"source":"iana"},"audio/vnd.cisco.nse":{"source":"iana"},"audio/vnd.cmles.radio-events":{"source":"iana"},"audio/vnd.cns.anp1":{"source":"iana"},"audio/vnd.cns.inf1":{"source":"iana"},"audio/vnd.dece.audio":{"source":"iana","extensions":["uva","uvva"]},"audio/vnd.digital-winds":{"source":"iana","extensions":["eol"]},"audio/vnd.dlna.adts":{"source":"iana"},"audio/vnd.dolby.heaac.1":{"source":"iana"},"audio/vnd.dolby.heaac.2":{"source":"iana"},"audio/vnd.dolby.mlp":{"source":"iana"},"audio/vnd.dolby.mps":{"source":"iana"},"audio/vnd.dolby.pl2":{"source":"iana"},"audio/vnd.dolby.pl2x":{"source":"iana"},"audio/vnd.dolby.pl2z":{"source":"iana"},"audio/vnd.dolby.pulse.1":{"source":"iana"},"audio/vnd.dra":{"source":"iana","extensions":["dra"]},"audio/vnd.dts":{"source":"iana","extensions":["dts"]},"audio/vnd.dts.hd":{"source":"iana","extensions":["dtshd"]},"audio/vnd.dts.uhd":{"source":"iana"},"audio/vnd.dvb.file":{"source":"iana"},"audio/vnd.everad.plj":{"source":"iana"},"audio/vnd.hns.audio":{"source":"iana"},"audio/vnd.lucent.voice":{"source":"iana","extensions":["lvp"]},"audio/vnd.ms-playready.media.pya":{"source":"iana","extensions":["pya"]},"audio/vnd.nokia.mobile-xmf":{"source":"iana"},"audio/vnd.nortel.vbk":{"source":"iana"},"audio/vnd.nuera.ecelp4800":{"source":"iana","extensions":["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{"source":"iana","extensions":["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{"source":"iana","extensions":["ecelp9600"]},"audio/vnd.octel.sbc":{"source":"iana"},"audio/vnd.presonus.multitrack":{"source":"iana"},"audio/vnd.qcelp":{"source":"iana"},"audio/vnd.rhetorex.32kadpcm":{"source":"iana"},"audio/vnd.rip":{"source":"iana","extensions":["rip"]},"audio/vnd.rn-realaudio":{"compressible":false},"audio/vnd.sealedmedia.softseal.mpeg":{"source":"iana"},"audio/vnd.vmx.cvsd":{"source":"iana"},"audio/vnd.wave":{"compressible":false},"audio/vorbis":{"source":"iana","compressible":false},"audio/vorbis-config":{"source":"iana"},"audio/wav":{"compressible":false,"extensions":["wav"]},"audio/wave":{"compressible":false,"extensions":["wav"]},"audio/webm":{"source":"apache","compressible":false,"extensions":["weba"]},"audio/x-aac":{"source":"apache","compressible":false,"extensions":["aac"]},"audio/x-aiff":{"source":"apache","extensions":["aif","aiff","aifc"]},"audio/x-caf":{"source":"apache","compressible":false,"extensions":["caf"]},"audio/x-flac":{"source":"apache","extensions":["flac"]},"audio/x-m4a":{"source":"nginx","extensions":["m4a"]},"audio/x-matroska":{"source":"apache","extensions":["mka"]},"audio/x-mpegurl":{"source":"apache","extensions":["m3u"]},"audio/x-ms-wax":{"source":"apache","extensions":["wax"]},"audio/x-ms-wma":{"source":"apache","extensions":["wma"]},"audio/x-pn-realaudio":{"source":"apache","extensions":["ram","ra"]},"audio/x-pn-realaudio-plugin":{"source":"apache","extensions":["rmp"]},"audio/x-realaudio":{"source":"nginx","extensions":["ra"]},"audio/x-tta":{"source":"apache"},"audio/x-wav":{"source":"apache","extensions":["wav"]},"audio/xm":{"source":"apache","extensions":["xm"]},"chemical/x-cdx":{"source":"apache","extensions":["cdx"]},"chemical/x-cif":{"source":"apache","extensions":["cif"]},"chemical/x-cmdf":{"source":"apache","extensions":["cmdf"]},"chemical/x-cml":{"source":"apache","extensions":["cml"]},"chemical/x-csml":{"source":"apache","extensions":["csml"]},"chemical/x-pdb":{"source":"apache"},"chemical/x-xyz":{"source":"apache","extensions":["xyz"]},"font/collection":{"source":"iana","extensions":["ttc"]},"font/otf":{"source":"iana","compressible":true,"extensions":["otf"]},"font/sfnt":{"source":"iana"},"font/ttf":{"source":"iana","compressible":true,"extensions":["ttf"]},"font/woff":{"source":"iana","extensions":["woff"]},"font/woff2":{"source":"iana","extensions":["woff2"]},"image/aces":{"source":"iana","extensions":["exr"]},"image/apng":{"compressible":false,"extensions":["apng"]},"image/avci":{"source":"iana","extensions":["avci"]},"image/avcs":{"source":"iana","extensions":["avcs"]},"image/avif":{"source":"iana","compressible":false,"extensions":["avif"]},"image/bmp":{"source":"iana","compressible":true,"extensions":["bmp"]},"image/cgm":{"source":"iana","extensions":["cgm"]},"image/dicom-rle":{"source":"iana","extensions":["drle"]},"image/emf":{"source":"iana","extensions":["emf"]},"image/fits":{"source":"iana","extensions":["fits"]},"image/g3fax":{"source":"iana","extensions":["g3"]},"image/gif":{"source":"iana","compressible":false,"extensions":["gif"]},"image/heic":{"source":"iana","extensions":["heic"]},"image/heic-sequence":{"source":"iana","extensions":["heics"]},"image/heif":{"source":"iana","extensions":["heif"]},"image/heif-sequence":{"source":"iana","extensions":["heifs"]},"image/hej2k":{"source":"iana","extensions":["hej2"]},"image/hsj2":{"source":"iana","extensions":["hsj2"]},"image/ief":{"source":"iana","extensions":["ief"]},"image/jls":{"source":"iana","extensions":["jls"]},"image/jp2":{"source":"iana","compressible":false,"extensions":["jp2","jpg2"]},"image/jpeg":{"source":"iana","compressible":false,"extensions":["jpeg","jpg","jpe"]},"image/jph":{"source":"iana","extensions":["jph"]},"image/jphc":{"source":"iana","extensions":["jhc"]},"image/jpm":{"source":"iana","compressible":false,"extensions":["jpm"]},"image/jpx":{"source":"iana","compressible":false,"extensions":["jpx","jpf"]},"image/jxr":{"source":"iana","extensions":["jxr"]},"image/jxra":{"source":"iana","extensions":["jxra"]},"image/jxrs":{"source":"iana","extensions":["jxrs"]},"image/jxs":{"source":"iana","extensions":["jxs"]},"image/jxsc":{"source":"iana","extensions":["jxsc"]},"image/jxsi":{"source":"iana","extensions":["jxsi"]},"image/jxss":{"source":"iana","extensions":["jxss"]},"image/ktx":{"source":"iana","extensions":["ktx"]},"image/ktx2":{"source":"iana","extensions":["ktx2"]},"image/naplps":{"source":"iana"},"image/pjpeg":{"compressible":false},"image/png":{"source":"iana","compressible":false,"extensions":["png"]},"image/prs.btif":{"source":"iana","extensions":["btif"]},"image/prs.pti":{"source":"iana","extensions":["pti"]},"image/pwg-raster":{"source":"iana"},"image/sgi":{"source":"apache","extensions":["sgi"]},"image/svg+xml":{"source":"iana","compressible":true,"extensions":["svg","svgz"]},"image/t38":{"source":"iana","extensions":["t38"]},"image/tiff":{"source":"iana","compressible":false,"extensions":["tif","tiff"]},"image/tiff-fx":{"source":"iana","extensions":["tfx"]},"image/vnd.adobe.photoshop":{"source":"iana","compressible":true,"extensions":["psd"]},"image/vnd.airzip.accelerator.azv":{"source":"iana","extensions":["azv"]},"image/vnd.cns.inf2":{"source":"iana"},"image/vnd.dece.graphic":{"source":"iana","extensions":["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{"source":"iana","extensions":["djvu","djv"]},"image/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"image/vnd.dwg":{"source":"iana","extensions":["dwg"]},"image/vnd.dxf":{"source":"iana","extensions":["dxf"]},"image/vnd.fastbidsheet":{"source":"iana","extensions":["fbs"]},"image/vnd.fpx":{"source":"iana","extensions":["fpx"]},"image/vnd.fst":{"source":"iana","extensions":["fst"]},"image/vnd.fujixerox.edmics-mmr":{"source":"iana","extensions":["mmr"]},"image/vnd.fujixerox.edmics-rlc":{"source":"iana","extensions":["rlc"]},"image/vnd.globalgraphics.pgb":{"source":"iana"},"image/vnd.microsoft.icon":{"source":"iana","compressible":true,"extensions":["ico"]},"image/vnd.mix":{"source":"iana"},"image/vnd.mozilla.apng":{"source":"iana"},"image/vnd.ms-dds":{"compressible":true,"extensions":["dds"]},"image/vnd.ms-modi":{"source":"iana","extensions":["mdi"]},"image/vnd.ms-photo":{"source":"apache","extensions":["wdp"]},"image/vnd.net-fpx":{"source":"iana","extensions":["npx"]},"image/vnd.pco.b16":{"source":"iana","extensions":["b16"]},"image/vnd.radiance":{"source":"iana"},"image/vnd.sealed.png":{"source":"iana"},"image/vnd.sealedmedia.softseal.gif":{"source":"iana"},"image/vnd.sealedmedia.softseal.jpg":{"source":"iana"},"image/vnd.svf":{"source":"iana"},"image/vnd.tencent.tap":{"source":"iana","extensions":["tap"]},"image/vnd.valve.source.texture":{"source":"iana","extensions":["vtf"]},"image/vnd.wap.wbmp":{"source":"iana","extensions":["wbmp"]},"image/vnd.xiff":{"source":"iana","extensions":["xif"]},"image/vnd.zbrush.pcx":{"source":"iana","extensions":["pcx"]},"image/webp":{"source":"apache","extensions":["webp"]},"image/wmf":{"source":"iana","extensions":["wmf"]},"image/x-3ds":{"source":"apache","extensions":["3ds"]},"image/x-cmu-raster":{"source":"apache","extensions":["ras"]},"image/x-cmx":{"source":"apache","extensions":["cmx"]},"image/x-freehand":{"source":"apache","extensions":["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{"source":"apache","compressible":true,"extensions":["ico"]},"image/x-jng":{"source":"nginx","extensions":["jng"]},"image/x-mrsid-image":{"source":"apache","extensions":["sid"]},"image/x-ms-bmp":{"source":"nginx","compressible":true,"extensions":["bmp"]},"image/x-pcx":{"source":"apache","extensions":["pcx"]},"image/x-pict":{"source":"apache","extensions":["pic","pct"]},"image/x-portable-anymap":{"source":"apache","extensions":["pnm"]},"image/x-portable-bitmap":{"source":"apache","extensions":["pbm"]},"image/x-portable-graymap":{"source":"apache","extensions":["pgm"]},"image/x-portable-pixmap":{"source":"apache","extensions":["ppm"]},"image/x-rgb":{"source":"apache","extensions":["rgb"]},"image/x-tga":{"source":"apache","extensions":["tga"]},"image/x-xbitmap":{"source":"apache","extensions":["xbm"]},"image/x-xcf":{"compressible":false},"image/x-xpixmap":{"source":"apache","extensions":["xpm"]},"image/x-xwindowdump":{"source":"apache","extensions":["xwd"]},"message/cpim":{"source":"iana"},"message/delivery-status":{"source":"iana"},"message/disposition-notification":{"source":"iana","extensions":["disposition-notification"]},"message/external-body":{"source":"iana"},"message/feedback-report":{"source":"iana"},"message/global":{"source":"iana","extensions":["u8msg"]},"message/global-delivery-status":{"source":"iana","extensions":["u8dsn"]},"message/global-disposition-notification":{"source":"iana","extensions":["u8mdn"]},"message/global-headers":{"source":"iana","extensions":["u8hdr"]},"message/http":{"source":"iana","compressible":false},"message/imdn+xml":{"source":"iana","compressible":true},"message/news":{"source":"iana"},"message/partial":{"source":"iana","compressible":false},"message/rfc822":{"source":"iana","compressible":true,"extensions":["eml","mime"]},"message/s-http":{"source":"iana"},"message/sip":{"source":"iana"},"message/sipfrag":{"source":"iana"},"message/tracking-status":{"source":"iana"},"message/vnd.si.simp":{"source":"iana"},"message/vnd.wfa.wsc":{"source":"iana","extensions":["wsc"]},"model/3mf":{"source":"iana","extensions":["3mf"]},"model/e57":{"source":"iana"},"model/gltf+json":{"source":"iana","compressible":true,"extensions":["gltf"]},"model/gltf-binary":{"source":"iana","compressible":true,"extensions":["glb"]},"model/iges":{"source":"iana","compressible":false,"extensions":["igs","iges"]},"model/mesh":{"source":"iana","compressible":false,"extensions":["msh","mesh","silo"]},"model/mtl":{"source":"iana","extensions":["mtl"]},"model/obj":{"source":"iana","extensions":["obj"]},"model/step":{"source":"iana"},"model/step+xml":{"source":"iana","compressible":true,"extensions":["stpx"]},"model/step+zip":{"source":"iana","compressible":false,"extensions":["stpz"]},"model/step-xml+zip":{"source":"iana","compressible":false,"extensions":["stpxz"]},"model/stl":{"source":"iana","extensions":["stl"]},"model/vnd.collada+xml":{"source":"iana","compressible":true,"extensions":["dae"]},"model/vnd.dwf":{"source":"iana","extensions":["dwf"]},"model/vnd.flatland.3dml":{"source":"iana"},"model/vnd.gdl":{"source":"iana","extensions":["gdl"]},"model/vnd.gs-gdl":{"source":"apache"},"model/vnd.gs.gdl":{"source":"iana"},"model/vnd.gtw":{"source":"iana","extensions":["gtw"]},"model/vnd.moml+xml":{"source":"iana","compressible":true},"model/vnd.mts":{"source":"iana","extensions":["mts"]},"model/vnd.opengex":{"source":"iana","extensions":["ogex"]},"model/vnd.parasolid.transmit.binary":{"source":"iana","extensions":["x_b"]},"model/vnd.parasolid.transmit.text":{"source":"iana","extensions":["x_t"]},"model/vnd.pytha.pyox":{"source":"iana"},"model/vnd.rosette.annotated-data-model":{"source":"iana"},"model/vnd.sap.vds":{"source":"iana","extensions":["vds"]},"model/vnd.usdz+zip":{"source":"iana","compressible":false,"extensions":["usdz"]},"model/vnd.valve.source.compiled-map":{"source":"iana","extensions":["bsp"]},"model/vnd.vtu":{"source":"iana","extensions":["vtu"]},"model/vrml":{"source":"iana","compressible":false,"extensions":["wrl","vrml"]},"model/x3d+binary":{"source":"apache","compressible":false,"extensions":["x3db","x3dbz"]},"model/x3d+fastinfoset":{"source":"iana","extensions":["x3db"]},"model/x3d+vrml":{"source":"apache","compressible":false,"extensions":["x3dv","x3dvz"]},"model/x3d+xml":{"source":"iana","compressible":true,"extensions":["x3d","x3dz"]},"model/x3d-vrml":{"source":"iana","extensions":["x3dv"]},"multipart/alternative":{"source":"iana","compressible":false},"multipart/appledouble":{"source":"iana"},"multipart/byteranges":{"source":"iana"},"multipart/digest":{"source":"iana"},"multipart/encrypted":{"source":"iana","compressible":false},"multipart/form-data":{"source":"iana","compressible":false},"multipart/header-set":{"source":"iana"},"multipart/mixed":{"source":"iana"},"multipart/multilingual":{"source":"iana"},"multipart/parallel":{"source":"iana"},"multipart/related":{"source":"iana","compressible":false},"multipart/report":{"source":"iana"},"multipart/signed":{"source":"iana","compressible":false},"multipart/vnd.bint.med-plus":{"source":"iana"},"multipart/voice-message":{"source":"iana"},"multipart/x-mixed-replace":{"source":"iana"},"text/1d-interleaved-parityfec":{"source":"iana"},"text/cache-manifest":{"source":"iana","compressible":true,"extensions":["appcache","manifest"]},"text/calendar":{"source":"iana","extensions":["ics","ifb"]},"text/calender":{"compressible":true},"text/cmd":{"compressible":true},"text/coffeescript":{"extensions":["coffee","litcoffee"]},"text/cql":{"source":"iana"},"text/cql-expression":{"source":"iana"},"text/cql-identifier":{"source":"iana"},"text/css":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["css"]},"text/csv":{"source":"iana","compressible":true,"extensions":["csv"]},"text/csv-schema":{"source":"iana"},"text/directory":{"source":"iana"},"text/dns":{"source":"iana"},"text/ecmascript":{"source":"iana"},"text/encaprtp":{"source":"iana"},"text/enriched":{"source":"iana"},"text/fhirpath":{"source":"iana"},"text/flexfec":{"source":"iana"},"text/fwdred":{"source":"iana"},"text/gff3":{"source":"iana"},"text/grammar-ref-list":{"source":"iana"},"text/html":{"source":"iana","compressible":true,"extensions":["html","htm","shtml"]},"text/jade":{"extensions":["jade"]},"text/javascript":{"source":"iana","compressible":true},"text/jcr-cnd":{"source":"iana"},"text/jsx":{"compressible":true,"extensions":["jsx"]},"text/less":{"compressible":true,"extensions":["less"]},"text/markdown":{"source":"iana","compressible":true,"extensions":["markdown","md"]},"text/mathml":{"source":"nginx","extensions":["mml"]},"text/mdx":{"compressible":true,"extensions":["mdx"]},"text/mizar":{"source":"iana"},"text/n3":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["n3"]},"text/parameters":{"source":"iana","charset":"UTF-8"},"text/parityfec":{"source":"iana"},"text/plain":{"source":"iana","compressible":true,"extensions":["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{"source":"iana","charset":"UTF-8"},"text/prs.fallenstein.rst":{"source":"iana"},"text/prs.lines.tag":{"source":"iana","extensions":["dsc"]},"text/prs.prop.logic":{"source":"iana"},"text/raptorfec":{"source":"iana"},"text/red":{"source":"iana"},"text/rfc822-headers":{"source":"iana"},"text/richtext":{"source":"iana","compressible":true,"extensions":["rtx"]},"text/rtf":{"source":"iana","compressible":true,"extensions":["rtf"]},"text/rtp-enc-aescm128":{"source":"iana"},"text/rtploopback":{"source":"iana"},"text/rtx":{"source":"iana"},"text/sgml":{"source":"iana","extensions":["sgml","sgm"]},"text/shaclc":{"source":"iana"},"text/shex":{"source":"iana","extensions":["shex"]},"text/slim":{"extensions":["slim","slm"]},"text/spdx":{"source":"iana","extensions":["spdx"]},"text/strings":{"source":"iana"},"text/stylus":{"extensions":["stylus","styl"]},"text/t140":{"source":"iana"},"text/tab-separated-values":{"source":"iana","compressible":true,"extensions":["tsv"]},"text/troff":{"source":"iana","extensions":["t","tr","roff","man","me","ms"]},"text/turtle":{"source":"iana","charset":"UTF-8","extensions":["ttl"]},"text/ulpfec":{"source":"iana"},"text/uri-list":{"source":"iana","compressible":true,"extensions":["uri","uris","urls"]},"text/vcard":{"source":"iana","compressible":true,"extensions":["vcard"]},"text/vnd.a":{"source":"iana"},"text/vnd.abc":{"source":"iana"},"text/vnd.ascii-art":{"source":"iana"},"text/vnd.curl":{"source":"iana","extensions":["curl"]},"text/vnd.curl.dcurl":{"source":"apache","extensions":["dcurl"]},"text/vnd.curl.mcurl":{"source":"apache","extensions":["mcurl"]},"text/vnd.curl.scurl":{"source":"apache","extensions":["scurl"]},"text/vnd.debian.copyright":{"source":"iana","charset":"UTF-8"},"text/vnd.dmclientscript":{"source":"iana"},"text/vnd.dvb.subtitle":{"source":"iana","extensions":["sub"]},"text/vnd.esmertec.theme-descriptor":{"source":"iana","charset":"UTF-8"},"text/vnd.familysearch.gedcom":{"source":"iana","extensions":["ged"]},"text/vnd.ficlab.flt":{"source":"iana"},"text/vnd.fly":{"source":"iana","extensions":["fly"]},"text/vnd.fmi.flexstor":{"source":"iana","extensions":["flx"]},"text/vnd.gml":{"source":"iana"},"text/vnd.graphviz":{"source":"iana","extensions":["gv"]},"text/vnd.hans":{"source":"iana"},"text/vnd.hgl":{"source":"iana"},"text/vnd.in3d.3dml":{"source":"iana","extensions":["3dml"]},"text/vnd.in3d.spot":{"source":"iana","extensions":["spot"]},"text/vnd.iptc.newsml":{"source":"iana"},"text/vnd.iptc.nitf":{"source":"iana"},"text/vnd.latex-z":{"source":"iana"},"text/vnd.motorola.reflex":{"source":"iana"},"text/vnd.ms-mediapackage":{"source":"iana"},"text/vnd.net2phone.commcenter.command":{"source":"iana"},"text/vnd.radisys.msml-basic-layout":{"source":"iana"},"text/vnd.senx.warpscript":{"source":"iana"},"text/vnd.si.uricatalogue":{"source":"iana"},"text/vnd.sosi":{"source":"iana"},"text/vnd.sun.j2me.app-descriptor":{"source":"iana","charset":"UTF-8","extensions":["jad"]},"text/vnd.trolltech.linguist":{"source":"iana","charset":"UTF-8"},"text/vnd.wap.si":{"source":"iana"},"text/vnd.wap.sl":{"source":"iana"},"text/vnd.wap.wml":{"source":"iana","extensions":["wml"]},"text/vnd.wap.wmlscript":{"source":"iana","extensions":["wmls"]},"text/vtt":{"source":"iana","charset":"UTF-8","compressible":true,"extensions":["vtt"]},"text/x-asm":{"source":"apache","extensions":["s","asm"]},"text/x-c":{"source":"apache","extensions":["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{"source":"nginx","extensions":["htc"]},"text/x-fortran":{"source":"apache","extensions":["f","for","f77","f90"]},"text/x-gwt-rpc":{"compressible":true},"text/x-handlebars-template":{"extensions":["hbs"]},"text/x-java-source":{"source":"apache","extensions":["java"]},"text/x-jquery-tmpl":{"compressible":true},"text/x-lua":{"extensions":["lua"]},"text/x-markdown":{"compressible":true,"extensions":["mkd"]},"text/x-nfo":{"source":"apache","extensions":["nfo"]},"text/x-opml":{"source":"apache","extensions":["opml"]},"text/x-org":{"compressible":true,"extensions":["org"]},"text/x-pascal":{"source":"apache","extensions":["p","pas"]},"text/x-processing":{"compressible":true,"extensions":["pde"]},"text/x-sass":{"extensions":["sass"]},"text/x-scss":{"extensions":["scss"]},"text/x-setext":{"source":"apache","extensions":["etx"]},"text/x-sfv":{"source":"apache","extensions":["sfv"]},"text/x-suse-ymp":{"compressible":true,"extensions":["ymp"]},"text/x-uuencode":{"source":"apache","extensions":["uu"]},"text/x-vcalendar":{"source":"apache","extensions":["vcs"]},"text/x-vcard":{"source":"apache","extensions":["vcf"]},"text/xml":{"source":"iana","compressible":true,"extensions":["xml"]},"text/xml-external-parsed-entity":{"source":"iana"},"text/yaml":{"compressible":true,"extensions":["yaml","yml"]},"video/1d-interleaved-parityfec":{"source":"iana"},"video/3gpp":{"source":"iana","extensions":["3gp","3gpp"]},"video/3gpp-tt":{"source":"iana"},"video/3gpp2":{"source":"iana","extensions":["3g2"]},"video/av1":{"source":"iana"},"video/bmpeg":{"source":"iana"},"video/bt656":{"source":"iana"},"video/celb":{"source":"iana"},"video/dv":{"source":"iana"},"video/encaprtp":{"source":"iana"},"video/ffv1":{"source":"iana"},"video/flexfec":{"source":"iana"},"video/h261":{"source":"iana","extensions":["h261"]},"video/h263":{"source":"iana","extensions":["h263"]},"video/h263-1998":{"source":"iana"},"video/h263-2000":{"source":"iana"},"video/h264":{"source":"iana","extensions":["h264"]},"video/h264-rcdo":{"source":"iana"},"video/h264-svc":{"source":"iana"},"video/h265":{"source":"iana"},"video/iso.segment":{"source":"iana","extensions":["m4s"]},"video/jpeg":{"source":"iana","extensions":["jpgv"]},"video/jpeg2000":{"source":"iana"},"video/jpm":{"source":"apache","extensions":["jpm","jpgm"]},"video/jxsv":{"source":"iana"},"video/mj2":{"source":"iana","extensions":["mj2","mjp2"]},"video/mp1s":{"source":"iana"},"video/mp2p":{"source":"iana"},"video/mp2t":{"source":"iana","extensions":["ts"]},"video/mp4":{"source":"iana","compressible":false,"extensions":["mp4","mp4v","mpg4"]},"video/mp4v-es":{"source":"iana"},"video/mpeg":{"source":"iana","compressible":false,"extensions":["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{"source":"iana"},"video/mpv":{"source":"iana"},"video/nv":{"source":"iana"},"video/ogg":{"source":"iana","compressible":false,"extensions":["ogv"]},"video/parityfec":{"source":"iana"},"video/pointer":{"source":"iana"},"video/quicktime":{"source":"iana","compressible":false,"extensions":["qt","mov"]},"video/raptorfec":{"source":"iana"},"video/raw":{"source":"iana"},"video/rtp-enc-aescm128":{"source":"iana"},"video/rtploopback":{"source":"iana"},"video/rtx":{"source":"iana"},"video/scip":{"source":"iana"},"video/smpte291":{"source":"iana"},"video/smpte292m":{"source":"iana"},"video/ulpfec":{"source":"iana"},"video/vc1":{"source":"iana"},"video/vc2":{"source":"iana"},"video/vnd.cctv":{"source":"iana"},"video/vnd.dece.hd":{"source":"iana","extensions":["uvh","uvvh"]},"video/vnd.dece.mobile":{"source":"iana","extensions":["uvm","uvvm"]},"video/vnd.dece.mp4":{"source":"iana"},"video/vnd.dece.pd":{"source":"iana","extensions":["uvp","uvvp"]},"video/vnd.dece.sd":{"source":"iana","extensions":["uvs","uvvs"]},"video/vnd.dece.video":{"source":"iana","extensions":["uvv","uvvv"]},"video/vnd.directv.mpeg":{"source":"iana"},"video/vnd.directv.mpeg-tts":{"source":"iana"},"video/vnd.dlna.mpeg-tts":{"source":"iana"},"video/vnd.dvb.file":{"source":"iana","extensions":["dvb"]},"video/vnd.fvt":{"source":"iana","extensions":["fvt"]},"video/vnd.hns.video":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.1dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-1010":{"source":"iana"},"video/vnd.iptvforum.2dparityfec-2005":{"source":"iana"},"video/vnd.iptvforum.ttsavc":{"source":"iana"},"video/vnd.iptvforum.ttsmpeg2":{"source":"iana"},"video/vnd.motorola.video":{"source":"iana"},"video/vnd.motorola.videop":{"source":"iana"},"video/vnd.mpegurl":{"source":"iana","extensions":["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{"source":"iana","extensions":["pyv"]},"video/vnd.nokia.interleaved-multimedia":{"source":"iana"},"video/vnd.nokia.mp4vr":{"source":"iana"},"video/vnd.nokia.videovoip":{"source":"iana"},"video/vnd.objectvideo":{"source":"iana"},"video/vnd.radgamettools.bink":{"source":"iana"},"video/vnd.radgamettools.smacker":{"source":"iana"},"video/vnd.sealed.mpeg1":{"source":"iana"},"video/vnd.sealed.mpeg4":{"source":"iana"},"video/vnd.sealed.swf":{"source":"iana"},"video/vnd.sealedmedia.softseal.mov":{"source":"iana"},"video/vnd.uvvu.mp4":{"source":"iana","extensions":["uvu","uvvu"]},"video/vnd.vivo":{"source":"iana","extensions":["viv"]},"video/vnd.youtube.yt":{"source":"iana"},"video/vp8":{"source":"iana"},"video/vp9":{"source":"iana"},"video/webm":{"source":"apache","compressible":false,"extensions":["webm"]},"video/x-f4v":{"source":"apache","extensions":["f4v"]},"video/x-fli":{"source":"apache","extensions":["fli"]},"video/x-flv":{"source":"apache","compressible":false,"extensions":["flv"]},"video/x-m4v":{"source":"apache","extensions":["m4v"]},"video/x-matroska":{"source":"apache","compressible":false,"extensions":["mkv","mk3d","mks"]},"video/x-mng":{"source":"apache","extensions":["mng"]},"video/x-ms-asf":{"source":"apache","extensions":["asf","asx"]},"video/x-ms-vob":{"source":"apache","extensions":["vob"]},"video/x-ms-wm":{"source":"apache","extensions":["wm"]},"video/x-ms-wmv":{"source":"apache","compressible":false,"extensions":["wmv"]},"video/x-ms-wmx":{"source":"apache","extensions":["wmx"]},"video/x-ms-wvx":{"source":"apache","extensions":["wvx"]},"video/x-msvideo":{"source":"apache","extensions":["avi"]},"video/x-sgi-movie":{"source":"apache","extensions":["movie"]},"video/x-smv":{"source":"apache","extensions":["smv"]},"x-conference/x-cooltalk":{"source":"apache","extensions":["ice"]},"x-shader/x-fragment":{"compressible":true},"x-shader/x-vertex":{"compressible":true}}')}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{"use strict";var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.deactivate=e.activate=void 0;const t=n(1398),i=n(4200),o=n(2698),a=n(5568),s=n(5085),c=n(2566),l=n(365),u=n(4204),p=n(6905),d=n(2247),f=n(9146),h=i.loadMessageBundle(n(6928).join(__dirname,"main.ts"));e.activate=async function(e){const n=new a.PlatformService(e.globalStoragePath);await n.initialize();const r=new c.ToolsService(n),i=new o.NotebookService(n,e.extensionPath),m=new s.ResourceTypeService(n,r,i);m.loadResourceTypes(),e.subscriptions.push(t.extensions.onDidChange((()=>{m.loadResourceTypes()})));const v=new d.UriHandlerService(m);t.window.registerUriHandler(v);const g=(e,n,r,i)=>{const o=m.getResourceTypes().find((t=>t.name===e));o?new u.ResourceTypePickerDialog(m,o,n,r,i).open():t.window.showErrorMessage(h(0,null,e))};return e.subscriptions.push(t.commands.registerCommand("azdata.resource.sql-image.deploy",(()=>{g("sql-image")}))),e.subscriptions.push(t.commands.registerCommand("azdata.resource.deploy",((e,t,r,i)=>{if(t&&!Array.isArray(t)||t&&t.length>0&&"string"!=typeof t[0])throw new Error("resourceTypeNameFilters must either be undefined or an array of strings");if("string"==typeof e)g(e,t,r,i);else{let e;e="win32"===n.platform()?"sql-windows-setup":"sql-image",g(e,t,r,i)}}))),e.subscriptions.push(t.commands.registerCommand("azdata.openNotebookInputDialog",(e=>{new l.DeploymentInputDialog(i,n,r,e).open()}))),e.subscriptions.push(f.TelemetryReporter),(0,p.getExtensionApi)()},e.deactivate=function(){}})();var i=exports;for(var o in r)i[o]=r[o];r.__esModule&&Object.defineProperty(i,"__esModule",{value:!0})})(); //# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/extensions/resource-deployment/dist/main.js.map